1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 (OpenPKG-CURRENT). 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string=`eval $cmd`) 2>/dev/null && 289 echo_test_string=`eval $cmd` && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME= 423PACKAGE_TARNAME= 424PACKAGE_VERSION= 425PACKAGE_STRING= 426PACKAGE_BUGREPORT= 427 428ac_unique_file="popt.h" 429# Factoring default headers for most tests. 430ac_includes_default="\ 431#include <stdio.h> 432#if HAVE_SYS_TYPES_H 433# include <sys/types.h> 434#endif 435#if HAVE_SYS_STAT_H 436# include <sys/stat.h> 437#endif 438#if STDC_HEADERS 439# include <stdlib.h> 440# include <stddef.h> 441#else 442# if HAVE_STDLIB_H 443# include <stdlib.h> 444# endif 445#endif 446#if HAVE_STRING_H 447# if !STDC_HEADERS && HAVE_MEMORY_H 448# include <memory.h> 449# endif 450# include <string.h> 451#endif 452#if HAVE_STRINGS_H 453# include <strings.h> 454#endif 455#if HAVE_INTTYPES_H 456# include <inttypes.h> 457#else 458# if HAVE_STDINT_H 459# include <stdint.h> 460# endif 461#endif 462#if HAVE_UNISTD_H 463# include <unistd.h> 464#endif" 465 466ac_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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures this package to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008System types: 1009 --build=BUILD configure for building on BUILD [guessed] 1010 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1011_ACEOF 1012fi 1013 1014if test -n "$ac_init_help"; then 1015 1016 cat <<\_ACEOF 1017 1018Optional Features: 1019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1021 --enable-debug build for debugging (default=no) 1022 --enable-shared[=PKGS] 1023 build shared libraries [default=yes] 1024 --enable-static[=PKGS] 1025 build static libraries [default=yes] 1026 --enable-fast-install[=PKGS] 1027 optimize for fast installation [default=yes] 1028 --disable-libtool-lock avoid locking (might break parallel builds) 1029 1030Optional Packages: 1031 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1032 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1033 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1034 --with-pic try to use only PIC/non-PIC objects [default=use 1035 both] 1036 --with-tags[=TAGS] 1037 include additional configurations [automatic] 1038 1039Some influential environment variables: 1040 CC C compiler command 1041 CFLAGS C compiler flags 1042 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1043 nonstandard directory <lib dir> 1044 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1045 headers in a nonstandard directory <include dir> 1046 CPP C preprocessor 1047 CXX C++ compiler command 1048 CXXFLAGS C++ compiler flags 1049 CXXCPP C++ preprocessor 1050 F77 Fortran 77 compiler command 1051 FFLAGS Fortran 77 compiler flags 1052 1053Use these variables to override the choices made by `configure' or to help 1054it to find libraries and programs with nonstandard names/locations. 1055 1056_ACEOF 1057fi 1058 1059if test "$ac_init_help" = "recursive"; then 1060 # If there are subdirs, report their specific --help. 1061 ac_popdir=`pwd` 1062 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1063 test -d $ac_dir || continue 1064 ac_builddir=. 1065 1066if test "$ac_dir" != .; then 1067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1068 # A "../" for each directory in $ac_dir_suffix. 1069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1070else 1071 ac_dir_suffix= ac_top_builddir= 1072fi 1073 1074case $srcdir in 1075 .) # No --srcdir option. We are building in place. 1076 ac_srcdir=. 1077 if test -z "$ac_top_builddir"; then 1078 ac_top_srcdir=. 1079 else 1080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1081 fi ;; 1082 [\\/]* | ?:[\\/]* ) # Absolute path. 1083 ac_srcdir=$srcdir$ac_dir_suffix; 1084 ac_top_srcdir=$srcdir ;; 1085 *) # Relative path. 1086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1087 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1088esac 1089 1090# Do not use `cd foo && pwd` to compute absolute paths, because 1091# the directories may not exist. 1092case `pwd` in 1093.) ac_abs_builddir="$ac_dir";; 1094*) 1095 case "$ac_dir" in 1096 .) ac_abs_builddir=`pwd`;; 1097 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1098 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1099 esac;; 1100esac 1101case $ac_abs_builddir in 1102.) ac_abs_top_builddir=${ac_top_builddir}.;; 1103*) 1104 case ${ac_top_builddir}. in 1105 .) ac_abs_top_builddir=$ac_abs_builddir;; 1106 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1107 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1108 esac;; 1109esac 1110case $ac_abs_builddir in 1111.) ac_abs_srcdir=$ac_srcdir;; 1112*) 1113 case $ac_srcdir in 1114 .) ac_abs_srcdir=$ac_abs_builddir;; 1115 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1116 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1117 esac;; 1118esac 1119case $ac_abs_builddir in 1120.) ac_abs_top_srcdir=$ac_top_srcdir;; 1121*) 1122 case $ac_top_srcdir in 1123 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1124 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1125 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1126 esac;; 1127esac 1128 1129 cd $ac_dir 1130 # Check for guested configure; otherwise get Cygnus style configure. 1131 if test -f $ac_srcdir/configure.gnu; then 1132 echo 1133 $SHELL $ac_srcdir/configure.gnu --help=recursive 1134 elif test -f $ac_srcdir/configure; then 1135 echo 1136 $SHELL $ac_srcdir/configure --help=recursive 1137 elif test -f $ac_srcdir/configure.ac || 1138 test -f $ac_srcdir/configure.in; then 1139 echo 1140 $ac_configure --help 1141 else 1142 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1143 fi 1144 cd $ac_popdir 1145 done 1146fi 1147 1148test -n "$ac_init_help" && exit 0 1149if $ac_init_version; then 1150 cat <<\_ACEOF 1151 1152Copyright (C) 2003 Free Software Foundation, Inc. 1153This configure script is free software; the Free Software Foundation 1154gives unlimited permission to copy, distribute and modify it. 1155_ACEOF 1156 exit 0 1157fi 1158exec 5>config.log 1159cat >&5 <<_ACEOF 1160This file contains any messages produced by compilers while 1161running configure, to aid debugging if configure makes a mistake. 1162 1163It was created by $as_me, which was 1164generated by GNU Autoconf 2.59 (OpenPKG-CURRENT). Invocation command line was 1165 1166 $ $0 $@ 1167 1168_ACEOF 1169{ 1170cat <<_ASUNAME 1171## --------- ## 1172## Platform. ## 1173## --------- ## 1174 1175hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1176uname -m = `(uname -m) 2>/dev/null || echo unknown` 1177uname -r = `(uname -r) 2>/dev/null || echo unknown` 1178uname -s = `(uname -s) 2>/dev/null || echo unknown` 1179uname -v = `(uname -v) 2>/dev/null || echo unknown` 1180 1181/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1182/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1183 1184/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1185/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1186/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1187hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1188/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1189/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1190/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1191 1192_ASUNAME 1193 1194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1195for as_dir in $PATH 1196do 1197 IFS=$as_save_IFS 1198 test -z "$as_dir" && as_dir=. 1199 echo "PATH: $as_dir" 1200done 1201 1202} >&5 1203 1204cat >&5 <<_ACEOF 1205 1206 1207## ----------- ## 1208## Core tests. ## 1209## ----------- ## 1210 1211_ACEOF 1212 1213 1214# Keep a trace of the command line. 1215# Strip out --no-create and --no-recursion so they do not pile up. 1216# Strip out --silent because we don't want to record it for future runs. 1217# Also quote any args containing shell meta-characters. 1218# Make two passes to allow for proper duplicate-argument suppression. 1219ac_configure_args= 1220ac_configure_args0= 1221ac_configure_args1= 1222ac_sep= 1223ac_must_keep_next=false 1224for ac_pass in 1 2 1225do 1226 for ac_arg 1227 do 1228 case $ac_arg in 1229 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1231 | -silent | --silent | --silen | --sile | --sil) 1232 continue ;; 1233 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1234 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1235 esac 1236 case $ac_pass in 1237 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1238 2) 1239 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1240 if test $ac_must_keep_next = true; then 1241 ac_must_keep_next=false # Got value, back to normal. 1242 else 1243 case $ac_arg in 1244 *=* | --config-cache | -C | -disable-* | --disable-* \ 1245 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1246 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1247 | -with-* | --with-* | -without-* | --without-* | --x) 1248 case "$ac_configure_args0 " in 1249 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1250 esac 1251 ;; 1252 -* ) ac_must_keep_next=true ;; 1253 esac 1254 fi 1255 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1256 # Get rid of the leading space. 1257 ac_sep=" " 1258 ;; 1259 esac 1260 done 1261done 1262$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1263$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1264 1265# When interrupted or exit'd, cleanup temporary files, and complete 1266# config.log. We remove comments because anyway the quotes in there 1267# would cause problems or look ugly. 1268# WARNING: Be sure not to use single quotes in there, as some shells, 1269# such as our DU 5.0 friend, will then `close' the trap. 1270trap 'exit_status=$? 1271 # Save into config.log some information that might help in debugging. 1272 { 1273 echo 1274 1275 cat <<\_ASBOX 1276## ---------------- ## 1277## Cache variables. ## 1278## ---------------- ## 1279_ASBOX 1280 echo 1281 # The following way of writing the cache mishandles newlines in values, 1282{ 1283 (set) 2>&1 | 1284 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1285 *ac_space=\ *) 1286 sed -n \ 1287 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1289 ;; 1290 *) 1291 sed -n \ 1292 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1293 ;; 1294 esac; 1295} 1296 echo 1297 1298 cat <<\_ASBOX 1299## ----------------- ## 1300## Output variables. ## 1301## ----------------- ## 1302_ASBOX 1303 echo 1304 for ac_var in $ac_subst_vars 1305 do 1306 eval ac_val=$`echo $ac_var` 1307 echo "$ac_var='"'"'$ac_val'"'"'" 1308 done | sort 1309 echo 1310 1311 if test -n "$ac_subst_files"; then 1312 cat <<\_ASBOX 1313## ------------- ## 1314## Output files. ## 1315## ------------- ## 1316_ASBOX 1317 echo 1318 for ac_var in $ac_subst_files 1319 do 1320 eval ac_val=$`echo $ac_var` 1321 echo "$ac_var='"'"'$ac_val'"'"'" 1322 done | sort 1323 echo 1324 fi 1325 1326 if test -s confdefs.h; then 1327 cat <<\_ASBOX 1328## ----------- ## 1329## confdefs.h. ## 1330## ----------- ## 1331_ASBOX 1332 echo 1333 sed "/^$/d" confdefs.h | sort 1334 echo 1335 fi 1336 test "$ac_signal" != 0 && 1337 echo "$as_me: caught signal $ac_signal" 1338 echo "$as_me: exit $exit_status" 1339 } >&5 1340 rm -f core *.core && 1341 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1342 exit $exit_status 1343 ' 0 1344for ac_signal in 1 2 13 15; do 1345 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1346done 1347ac_signal=0 1348 1349# confdefs.h avoids OS command line length limits that DEFS can exceed. 1350rm -rf conftest* confdefs.h 1351# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1352echo >confdefs.h 1353 1354# Predefined preprocessor variables. 1355 1356cat >>confdefs.h <<_ACEOF 1357#define PACKAGE_NAME "$PACKAGE_NAME" 1358_ACEOF 1359 1360 1361cat >>confdefs.h <<_ACEOF 1362#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1363_ACEOF 1364 1365 1366cat >>confdefs.h <<_ACEOF 1367#define PACKAGE_VERSION "$PACKAGE_VERSION" 1368_ACEOF 1369 1370 1371cat >>confdefs.h <<_ACEOF 1372#define PACKAGE_STRING "$PACKAGE_STRING" 1373_ACEOF 1374 1375 1376cat >>confdefs.h <<_ACEOF 1377#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1378_ACEOF 1379 1380 1381# Let the site file select an alternate cache file if it wants to. 1382# Prefer explicitly selected file to automatically selected ones. 1383if test -z "$CONFIG_SITE"; then 1384 if test "x$prefix" != xNONE; then 1385 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1386 else 1387 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1388 fi 1389fi 1390for ac_site_file in $CONFIG_SITE; do 1391 if test -r "$ac_site_file"; then 1392 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1393echo "$as_me: loading site script $ac_site_file" >&6;} 1394 sed 's/^/| /' "$ac_site_file" >&5 1395 . "$ac_site_file" 1396 fi 1397done 1398 1399if test -r "$cache_file"; then 1400 # Some versions of bash will fail to source /dev/null (special 1401 # files actually), so we avoid doing that. 1402 if test -f "$cache_file"; then 1403 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1404echo "$as_me: loading cache $cache_file" >&6;} 1405 case $cache_file in 1406 [\\/]* | ?:[\\/]* ) . $cache_file;; 1407 *) . ./$cache_file;; 1408 esac 1409 fi 1410else 1411 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1412echo "$as_me: creating cache $cache_file" >&6;} 1413 >$cache_file 1414fi 1415 1416# Check that the precious variables saved in the cache have kept the same 1417# value. 1418ac_cache_corrupted=false 1419for ac_var in `(set) 2>&1 | 1420 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1421 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1422 eval ac_new_set=\$ac_env_${ac_var}_set 1423 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1424 eval ac_new_val="\$ac_env_${ac_var}_value" 1425 case $ac_old_set,$ac_new_set in 1426 set,) 1427 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1428echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1429 ac_cache_corrupted=: ;; 1430 ,set) 1431 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1432echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1433 ac_cache_corrupted=: ;; 1434 ,);; 1435 *) 1436 if test "x$ac_old_val" != "x$ac_new_val"; then 1437 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1439 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1440echo "$as_me: former value: $ac_old_val" >&2;} 1441 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1442echo "$as_me: current value: $ac_new_val" >&2;} 1443 ac_cache_corrupted=: 1444 fi;; 1445 esac 1446 # Pass precious variables to config.status. 1447 if test "$ac_new_set" = set; then 1448 case $ac_new_val in 1449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1450 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1451 *) ac_arg=$ac_var=$ac_new_val ;; 1452 esac 1453 case " $ac_configure_args " in 1454 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1455 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1456 esac 1457 fi 1458done 1459if $ac_cache_corrupted; then 1460 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1461echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1462 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1463echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1464 { (exit 1); exit 1; }; } 1465fi 1466 1467ac_ext=c 1468ac_cpp='$CPP $CPPFLAGS' 1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1471ac_compiler_gnu=$ac_cv_c_compiler_gnu 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491V=`./shtool version -l txt -d long VERSION` 1492./shtool echo -e "Configuring %BOSSP popt%b (Option Parsing), Version %B${V}%b" 1493 1494 1495echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1496echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1497set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1498if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1499 echo $ECHO_N "(cached) $ECHO_C" >&6 1500else 1501 cat >conftest.make <<\_ACEOF 1502all: 1503 @echo 'ac_maketemp="$(MAKE)"' 1504_ACEOF 1505# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1506eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1507if test -n "$ac_maketemp"; then 1508 eval ac_cv_prog_make_${ac_make}_set=yes 1509else 1510 eval ac_cv_prog_make_${ac_make}_set=no 1511fi 1512rm -f conftest.make 1513fi 1514if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1515 echo "$as_me:$LINENO: result: yes" >&5 1516echo "${ECHO_T}yes" >&6 1517 SET_MAKE= 1518else 1519 echo "$as_me:$LINENO: result: no" >&5 1520echo "${ECHO_T}no" >&6 1521 SET_MAKE="MAKE=${MAKE-make}" 1522fi 1523 1524ac_ext=c 1525ac_cpp='$CPP $CPPFLAGS' 1526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1528ac_compiler_gnu=$ac_cv_c_compiler_gnu 1529if test -n "$ac_tool_prefix"; then 1530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1531set dummy ${ac_tool_prefix}gcc; ac_word=$2 1532echo "$as_me:$LINENO: checking for $ac_word" >&5 1533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1534if test "${ac_cv_prog_CC+set}" = set; then 1535 echo $ECHO_N "(cached) $ECHO_C" >&6 1536else 1537 if test -n "$CC"; then 1538 ac_cv_prog_CC="$CC" # Let the user override the test. 1539else 1540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1541for as_dir in $PATH 1542do 1543 IFS=$as_save_IFS 1544 test -z "$as_dir" && as_dir=. 1545 for ac_exec_ext in '' $ac_executable_extensions; do 1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1547 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1549 break 2 1550 fi 1551done 1552done 1553 1554fi 1555fi 1556CC=$ac_cv_prog_CC 1557if test -n "$CC"; then 1558 echo "$as_me:$LINENO: result: $CC" >&5 1559echo "${ECHO_T}$CC" >&6 1560else 1561 echo "$as_me:$LINENO: result: no" >&5 1562echo "${ECHO_T}no" >&6 1563fi 1564 1565fi 1566if test -z "$ac_cv_prog_CC"; then 1567 ac_ct_CC=$CC 1568 # Extract the first word of "gcc", so it can be a program name with args. 1569set dummy gcc; ac_word=$2 1570echo "$as_me:$LINENO: checking for $ac_word" >&5 1571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1572if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1573 echo $ECHO_N "(cached) $ECHO_C" >&6 1574else 1575 if test -n "$ac_ct_CC"; then 1576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1577else 1578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1579for as_dir in $PATH 1580do 1581 IFS=$as_save_IFS 1582 test -z "$as_dir" && as_dir=. 1583 for ac_exec_ext in '' $ac_executable_extensions; do 1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1585 ac_cv_prog_ac_ct_CC="gcc" 1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1587 break 2 1588 fi 1589done 1590done 1591 1592fi 1593fi 1594ac_ct_CC=$ac_cv_prog_ac_ct_CC 1595if test -n "$ac_ct_CC"; then 1596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1597echo "${ECHO_T}$ac_ct_CC" >&6 1598else 1599 echo "$as_me:$LINENO: result: no" >&5 1600echo "${ECHO_T}no" >&6 1601fi 1602 1603 CC=$ac_ct_CC 1604else 1605 CC="$ac_cv_prog_CC" 1606fi 1607 1608if test -z "$CC"; then 1609 if test -n "$ac_tool_prefix"; then 1610 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1611set dummy ${ac_tool_prefix}cc; ac_word=$2 1612echo "$as_me:$LINENO: checking for $ac_word" >&5 1613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1614if test "${ac_cv_prog_CC+set}" = set; then 1615 echo $ECHO_N "(cached) $ECHO_C" >&6 1616else 1617 if test -n "$CC"; then 1618 ac_cv_prog_CC="$CC" # Let the user override the test. 1619else 1620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1621for as_dir in $PATH 1622do 1623 IFS=$as_save_IFS 1624 test -z "$as_dir" && as_dir=. 1625 for ac_exec_ext in '' $ac_executable_extensions; do 1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1627 ac_cv_prog_CC="${ac_tool_prefix}cc" 1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1629 break 2 1630 fi 1631done 1632done 1633 1634fi 1635fi 1636CC=$ac_cv_prog_CC 1637if test -n "$CC"; then 1638 echo "$as_me:$LINENO: result: $CC" >&5 1639echo "${ECHO_T}$CC" >&6 1640else 1641 echo "$as_me:$LINENO: result: no" >&5 1642echo "${ECHO_T}no" >&6 1643fi 1644 1645fi 1646if test -z "$ac_cv_prog_CC"; then 1647 ac_ct_CC=$CC 1648 # Extract the first word of "cc", so it can be a program name with args. 1649set dummy cc; ac_word=$2 1650echo "$as_me:$LINENO: checking for $ac_word" >&5 1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1653 echo $ECHO_N "(cached) $ECHO_C" >&6 1654else 1655 if test -n "$ac_ct_CC"; then 1656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1657else 1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1659for as_dir in $PATH 1660do 1661 IFS=$as_save_IFS 1662 test -z "$as_dir" && as_dir=. 1663 for ac_exec_ext in '' $ac_executable_extensions; do 1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1665 ac_cv_prog_ac_ct_CC="cc" 1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1667 break 2 1668 fi 1669done 1670done 1671 1672fi 1673fi 1674ac_ct_CC=$ac_cv_prog_ac_ct_CC 1675if test -n "$ac_ct_CC"; then 1676 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1677echo "${ECHO_T}$ac_ct_CC" >&6 1678else 1679 echo "$as_me:$LINENO: result: no" >&5 1680echo "${ECHO_T}no" >&6 1681fi 1682 1683 CC=$ac_ct_CC 1684else 1685 CC="$ac_cv_prog_CC" 1686fi 1687 1688fi 1689if test -z "$CC"; then 1690 # Extract the first word of "cc", so it can be a program name with args. 1691set dummy cc; ac_word=$2 1692echo "$as_me:$LINENO: checking for $ac_word" >&5 1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1694if test "${ac_cv_prog_CC+set}" = set; then 1695 echo $ECHO_N "(cached) $ECHO_C" >&6 1696else 1697 if test -n "$CC"; then 1698 ac_cv_prog_CC="$CC" # Let the user override the test. 1699else 1700 ac_prog_rejected=no 1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1702for as_dir in $PATH 1703do 1704 IFS=$as_save_IFS 1705 test -z "$as_dir" && as_dir=. 1706 for ac_exec_ext in '' $ac_executable_extensions; do 1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1709 ac_prog_rejected=yes 1710 continue 1711 fi 1712 ac_cv_prog_CC="cc" 1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1714 break 2 1715 fi 1716done 1717done 1718 1719if test $ac_prog_rejected = yes; then 1720 # We found a bogon in the path, so make sure we never use it. 1721 set dummy $ac_cv_prog_CC 1722 shift 1723 if test $# != 0; then 1724 # We chose a different compiler from the bogus one. 1725 # However, it has the same basename, so the bogon will be chosen 1726 # first if we set CC to just the basename; use the full file name. 1727 shift 1728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1729 fi 1730fi 1731fi 1732fi 1733CC=$ac_cv_prog_CC 1734if test -n "$CC"; then 1735 echo "$as_me:$LINENO: result: $CC" >&5 1736echo "${ECHO_T}$CC" >&6 1737else 1738 echo "$as_me:$LINENO: result: no" >&5 1739echo "${ECHO_T}no" >&6 1740fi 1741 1742fi 1743if test -z "$CC"; then 1744 if test -n "$ac_tool_prefix"; then 1745 for ac_prog in cl 1746 do 1747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1748set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1749echo "$as_me:$LINENO: checking for $ac_word" >&5 1750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1751if test "${ac_cv_prog_CC+set}" = set; then 1752 echo $ECHO_N "(cached) $ECHO_C" >&6 1753else 1754 if test -n "$CC"; then 1755 ac_cv_prog_CC="$CC" # Let the user override the test. 1756else 1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1758for as_dir in $PATH 1759do 1760 IFS=$as_save_IFS 1761 test -z "$as_dir" && as_dir=. 1762 for ac_exec_ext in '' $ac_executable_extensions; do 1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1766 break 2 1767 fi 1768done 1769done 1770 1771fi 1772fi 1773CC=$ac_cv_prog_CC 1774if test -n "$CC"; then 1775 echo "$as_me:$LINENO: result: $CC" >&5 1776echo "${ECHO_T}$CC" >&6 1777else 1778 echo "$as_me:$LINENO: result: no" >&5 1779echo "${ECHO_T}no" >&6 1780fi 1781 1782 test -n "$CC" && break 1783 done 1784fi 1785if test -z "$CC"; then 1786 ac_ct_CC=$CC 1787 for ac_prog in cl 1788do 1789 # Extract the first word of "$ac_prog", so it can be a program name with args. 1790set dummy $ac_prog; ac_word=$2 1791echo "$as_me:$LINENO: checking for $ac_word" >&5 1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1793if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1794 echo $ECHO_N "(cached) $ECHO_C" >&6 1795else 1796 if test -n "$ac_ct_CC"; then 1797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1798else 1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1800for as_dir in $PATH 1801do 1802 IFS=$as_save_IFS 1803 test -z "$as_dir" && as_dir=. 1804 for ac_exec_ext in '' $ac_executable_extensions; do 1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1806 ac_cv_prog_ac_ct_CC="$ac_prog" 1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1808 break 2 1809 fi 1810done 1811done 1812 1813fi 1814fi 1815ac_ct_CC=$ac_cv_prog_ac_ct_CC 1816if test -n "$ac_ct_CC"; then 1817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1818echo "${ECHO_T}$ac_ct_CC" >&6 1819else 1820 echo "$as_me:$LINENO: result: no" >&5 1821echo "${ECHO_T}no" >&6 1822fi 1823 1824 test -n "$ac_ct_CC" && break 1825done 1826 1827 CC=$ac_ct_CC 1828fi 1829 1830fi 1831 1832 1833test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1834See \`config.log' for more details." >&5 1835echo "$as_me: error: no acceptable C compiler found in \$PATH 1836See \`config.log' for more details." >&2;} 1837 { (exit 1); exit 1; }; } 1838 1839# Provide some information about the compiler. 1840echo "$as_me:$LINENO:" \ 1841 "checking for C compiler version" >&5 1842ac_compiler=`set X $ac_compile; echo $2` 1843{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1844 (eval $ac_compiler --version </dev/null >&5) 2>&5 1845 ac_status=$? 1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1847 (exit $ac_status); } 1848{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1849 (eval $ac_compiler -v </dev/null >&5) 2>&5 1850 ac_status=$? 1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1852 (exit $ac_status); } 1853{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1854 (eval $ac_compiler -V </dev/null >&5) 2>&5 1855 ac_status=$? 1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1857 (exit $ac_status); } 1858 1859cat >conftest.$ac_ext <<_ACEOF 1860/* confdefs.h. */ 1861_ACEOF 1862cat confdefs.h >>conftest.$ac_ext 1863cat >>conftest.$ac_ext <<_ACEOF 1864/* end confdefs.h. */ 1865 1866int 1867main () 1868{ 1869 1870 ; 1871 return 0; 1872} 1873_ACEOF 1874ac_clean_files_save=$ac_clean_files 1875ac_clean_files="$ac_clean_files a.out a.exe b.out" 1876# Try to create an executable without -o first, disregard a.out. 1877# It will help us diagnose broken compilers, and finding out an intuition 1878# of exeext. 1879echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1880echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1881ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1882if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1883 (eval $ac_link_default) 2>&5 1884 ac_status=$? 1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1886 (exit $ac_status); }; then 1887 # Find the output, starting from the most likely. This scheme is 1888# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1889# resort. 1890 1891# Be careful to initialize this variable, since it used to be cached. 1892# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1893ac_cv_exeext= 1894# b.out is created by i960 compilers. 1895for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1896do 1897 test -f "$ac_file" || continue 1898 case $ac_file in 1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1900 ;; 1901 conftest.$ac_ext ) 1902 # This is the source file. 1903 ;; 1904 [ab].out ) 1905 # We found the default executable, but exeext='' is most 1906 # certainly right. 1907 break;; 1908 *.* ) 1909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1910 # FIXME: I believe we export ac_cv_exeext for Libtool, 1911 # but it would be cool to find out if it's true. Does anybody 1912 # maintain Libtool? --akim. 1913 export ac_cv_exeext 1914 break;; 1915 * ) 1916 break;; 1917 esac 1918done 1919else 1920 echo "$as_me: failed program was:" >&5 1921sed 's/^/| /' conftest.$ac_ext >&5 1922 1923{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1924See \`config.log' for more details." >&5 1925echo "$as_me: error: C compiler cannot create executables 1926See \`config.log' for more details." >&2;} 1927 { (exit 77); exit 77; }; } 1928fi 1929 1930ac_exeext=$ac_cv_exeext 1931echo "$as_me:$LINENO: result: $ac_file" >&5 1932echo "${ECHO_T}$ac_file" >&6 1933 1934# Check the compiler produces executables we can run. If not, either 1935# the compiler is broken, or we cross compile. 1936echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1937echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1938# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1939# If not cross compiling, check that we can run a simple program. 1940if test "$cross_compiling" != yes; then 1941 if { ac_try='./$ac_file' 1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1943 (eval $ac_try) 2>&5 1944 ac_status=$? 1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1946 (exit $ac_status); }; }; then 1947 cross_compiling=no 1948 else 1949 if test "$cross_compiling" = maybe; then 1950 cross_compiling=yes 1951 else 1952 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1953If you meant to cross compile, use \`--host'. 1954See \`config.log' for more details." >&5 1955echo "$as_me: error: cannot run C compiled programs. 1956If you meant to cross compile, use \`--host'. 1957See \`config.log' for more details." >&2;} 1958 { (exit 1); exit 1; }; } 1959 fi 1960 fi 1961fi 1962echo "$as_me:$LINENO: result: yes" >&5 1963echo "${ECHO_T}yes" >&6 1964 1965rm -f a.out a.exe conftest$ac_cv_exeext b.out 1966ac_clean_files=$ac_clean_files_save 1967# Check the compiler produces executables we can run. If not, either 1968# the compiler is broken, or we cross compile. 1969echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1970echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1971echo "$as_me:$LINENO: result: $cross_compiling" >&5 1972echo "${ECHO_T}$cross_compiling" >&6 1973 1974echo "$as_me:$LINENO: checking for suffix of executables" >&5 1975echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1977 (eval $ac_link) 2>&5 1978 ac_status=$? 1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1980 (exit $ac_status); }; then 1981 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1982# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1983# work properly (i.e., refer to `conftest.exe'), while it won't with 1984# `rm'. 1985for ac_file in conftest.exe conftest conftest.*; do 1986 test -f "$ac_file" || continue 1987 case $ac_file in 1988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1990 export ac_cv_exeext 1991 break;; 1992 * ) break;; 1993 esac 1994done 1995else 1996 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1997See \`config.log' for more details." >&5 1998echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1999See \`config.log' for more details." >&2;} 2000 { (exit 1); exit 1; }; } 2001fi 2002 2003rm -f conftest$ac_cv_exeext 2004echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2005echo "${ECHO_T}$ac_cv_exeext" >&6 2006 2007rm -f conftest.$ac_ext 2008EXEEXT=$ac_cv_exeext 2009ac_exeext=$EXEEXT 2010echo "$as_me:$LINENO: checking for suffix of object files" >&5 2011echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2012if test "${ac_cv_objext+set}" = set; then 2013 echo $ECHO_N "(cached) $ECHO_C" >&6 2014else 2015 cat >conftest.$ac_ext <<_ACEOF 2016/* confdefs.h. */ 2017_ACEOF 2018cat confdefs.h >>conftest.$ac_ext 2019cat >>conftest.$ac_ext <<_ACEOF 2020/* end confdefs.h. */ 2021 2022int 2023main () 2024{ 2025 2026 ; 2027 return 0; 2028} 2029_ACEOF 2030rm -f conftest.o conftest.obj 2031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2032 (eval $ac_compile) 2>&5 2033 ac_status=$? 2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2035 (exit $ac_status); }; then 2036 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2037 case $ac_file in 2038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2040 break;; 2041 esac 2042done 2043else 2044 echo "$as_me: failed program was:" >&5 2045sed 's/^/| /' conftest.$ac_ext >&5 2046 2047{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2048See \`config.log' for more details." >&5 2049echo "$as_me: error: cannot compute suffix of object files: cannot compile 2050See \`config.log' for more details." >&2;} 2051 { (exit 1); exit 1; }; } 2052fi 2053 2054rm -f conftest.$ac_cv_objext conftest.$ac_ext 2055fi 2056echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2057echo "${ECHO_T}$ac_cv_objext" >&6 2058OBJEXT=$ac_cv_objext 2059ac_objext=$OBJEXT 2060echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2061echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2062if test "${ac_cv_c_compiler_gnu+set}" = set; then 2063 echo $ECHO_N "(cached) $ECHO_C" >&6 2064else 2065 cat >conftest.$ac_ext <<_ACEOF 2066/* confdefs.h. */ 2067_ACEOF 2068cat confdefs.h >>conftest.$ac_ext 2069cat >>conftest.$ac_ext <<_ACEOF 2070/* end confdefs.h. */ 2071 2072int 2073main () 2074{ 2075#ifndef __GNUC__ 2076 choke me 2077#endif 2078 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083rm -f conftest.$ac_objext 2084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2085 (eval $ac_compile) 2>conftest.er1 2086 ac_status=$? 2087 grep -v '^ *+' conftest.er1 >conftest.err 2088 rm -f conftest.er1 2089 cat conftest.err >&5 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2091 (exit $ac_status); } && 2092 { ac_try='test -z "$ac_c_werror_flag" 2093 || test ! -s conftest.err' 2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2095 (eval $ac_try) 2>&5 2096 ac_status=$? 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2098 (exit $ac_status); }; } && 2099 { ac_try='test -s conftest.$ac_objext' 2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2101 (eval $ac_try) 2>&5 2102 ac_status=$? 2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2104 (exit $ac_status); }; }; then 2105 ac_compiler_gnu=yes 2106else 2107 echo "$as_me: failed program was:" >&5 2108sed 's/^/| /' conftest.$ac_ext >&5 2109 2110ac_compiler_gnu=no 2111fi 2112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2113ac_cv_c_compiler_gnu=$ac_compiler_gnu 2114 2115fi 2116echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2117echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2118GCC=`test $ac_compiler_gnu = yes && echo yes` 2119ac_test_CFLAGS=${CFLAGS+set} 2120ac_save_CFLAGS=$CFLAGS 2121CFLAGS="-g" 2122echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2123echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2124if test "${ac_cv_prog_cc_g+set}" = set; then 2125 echo $ECHO_N "(cached) $ECHO_C" >&6 2126else 2127 cat >conftest.$ac_ext <<_ACEOF 2128/* confdefs.h. */ 2129_ACEOF 2130cat confdefs.h >>conftest.$ac_ext 2131cat >>conftest.$ac_ext <<_ACEOF 2132/* end confdefs.h. */ 2133 2134int 2135main () 2136{ 2137 2138 ; 2139 return 0; 2140} 2141_ACEOF 2142rm -f conftest.$ac_objext 2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2144 (eval $ac_compile) 2>conftest.er1 2145 ac_status=$? 2146 grep -v '^ *+' conftest.er1 >conftest.err 2147 rm -f conftest.er1 2148 cat conftest.err >&5 2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2150 (exit $ac_status); } && 2151 { ac_try='test -z "$ac_c_werror_flag" 2152 || test ! -s conftest.err' 2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2154 (eval $ac_try) 2>&5 2155 ac_status=$? 2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2157 (exit $ac_status); }; } && 2158 { ac_try='test -s conftest.$ac_objext' 2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2160 (eval $ac_try) 2>&5 2161 ac_status=$? 2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2163 (exit $ac_status); }; }; then 2164 ac_cv_prog_cc_g=yes 2165else 2166 echo "$as_me: failed program was:" >&5 2167sed 's/^/| /' conftest.$ac_ext >&5 2168 2169ac_cv_prog_cc_g=no 2170fi 2171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2172fi 2173echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2174echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2175if test "$ac_test_CFLAGS" = set; then 2176 CFLAGS=$ac_save_CFLAGS 2177elif test $ac_cv_prog_cc_g = yes; then 2178 if test "$GCC" = yes; then 2179 CFLAGS="-g -O2" 2180 else 2181 CFLAGS="-g" 2182 fi 2183else 2184 if test "$GCC" = yes; then 2185 CFLAGS="-O2" 2186 else 2187 CFLAGS= 2188 fi 2189fi 2190echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2191echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2192if test "${ac_cv_prog_cc_stdc+set}" = set; then 2193 echo $ECHO_N "(cached) $ECHO_C" >&6 2194else 2195 ac_cv_prog_cc_stdc=no 2196ac_save_CC=$CC 2197cat >conftest.$ac_ext <<_ACEOF 2198/* confdefs.h. */ 2199_ACEOF 2200cat confdefs.h >>conftest.$ac_ext 2201cat >>conftest.$ac_ext <<_ACEOF 2202/* end confdefs.h. */ 2203#include <stdarg.h> 2204#include <stdio.h> 2205#include <sys/types.h> 2206#include <sys/stat.h> 2207/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2208struct buf { int x; }; 2209FILE * (*rcsopen) (struct buf *, struct stat *, int); 2210static char *e (p, i) 2211 char **p; 2212 int i; 2213{ 2214 return p[i]; 2215} 2216static char *f (char * (*g) (char **, int), char **p, ...) 2217{ 2218 char *s; 2219 va_list v; 2220 va_start (v,p); 2221 s = g (p, va_arg (v,int)); 2222 va_end (v); 2223 return s; 2224} 2225 2226/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2227 function prototypes and stuff, but not '\xHH' hex character constants. 2228 These don't provoke an error unfortunately, instead are silently treated 2229 as 'x'. The following induces an error, until -std1 is added to get 2230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2231 array size at least. It's necessary to write '\x00'==0 to get something 2232 that's true only with -std1. */ 2233int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2234 2235int test (int i, double x); 2236struct s1 {int (*f) (int a);}; 2237struct s2 {int (*f) (double a);}; 2238int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2239int argc; 2240char **argv; 2241int 2242main () 2243{ 2244return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2245 ; 2246 return 0; 2247} 2248_ACEOF 2249# Don't try gcc -ansi; that turns off useful extensions and 2250# breaks some systems' header files. 2251# AIX -qlanglvl=ansi 2252# Ultrix and OSF/1 -std1 2253# HP-UX 10.20 and later -Ae 2254# HP-UX older versions -Aa -D_HPUX_SOURCE 2255# SVR4 -Xc -D__EXTENSIONS__ 2256for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2257do 2258 CC="$ac_save_CC $ac_arg" 2259 rm -f conftest.$ac_objext 2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2261 (eval $ac_compile) 2>conftest.er1 2262 ac_status=$? 2263 grep -v '^ *+' conftest.er1 >conftest.err 2264 rm -f conftest.er1 2265 cat conftest.err >&5 2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2267 (exit $ac_status); } && 2268 { ac_try='test -z "$ac_c_werror_flag" 2269 || test ! -s conftest.err' 2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2271 (eval $ac_try) 2>&5 2272 ac_status=$? 2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 (exit $ac_status); }; } && 2275 { ac_try='test -s conftest.$ac_objext' 2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2277 (eval $ac_try) 2>&5 2278 ac_status=$? 2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2280 (exit $ac_status); }; }; then 2281 ac_cv_prog_cc_stdc=$ac_arg 2282break 2283else 2284 echo "$as_me: failed program was:" >&5 2285sed 's/^/| /' conftest.$ac_ext >&5 2286 2287fi 2288rm -f conftest.err conftest.$ac_objext 2289done 2290rm -f conftest.$ac_ext conftest.$ac_objext 2291CC=$ac_save_CC 2292 2293fi 2294 2295case "x$ac_cv_prog_cc_stdc" in 2296 x|xno) 2297 echo "$as_me:$LINENO: result: none needed" >&5 2298echo "${ECHO_T}none needed" >&6 ;; 2299 *) 2300 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2301echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2302 CC="$CC $ac_cv_prog_cc_stdc" ;; 2303esac 2304 2305# Some people use a C++ compiler to compile C. Since we use `exit', 2306# in C++ we need to declare it. In case someone uses the same compiler 2307# for both compiling C and C++ we need to have the C++ compiler decide 2308# the declaration of exit, since it's the most demanding environment. 2309cat >conftest.$ac_ext <<_ACEOF 2310#ifndef __cplusplus 2311 choke me 2312#endif 2313_ACEOF 2314rm -f conftest.$ac_objext 2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2316 (eval $ac_compile) 2>conftest.er1 2317 ac_status=$? 2318 grep -v '^ *+' conftest.er1 >conftest.err 2319 rm -f conftest.er1 2320 cat conftest.err >&5 2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2322 (exit $ac_status); } && 2323 { ac_try='test -z "$ac_c_werror_flag" 2324 || test ! -s conftest.err' 2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2326 (eval $ac_try) 2>&5 2327 ac_status=$? 2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2329 (exit $ac_status); }; } && 2330 { ac_try='test -s conftest.$ac_objext' 2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2332 (eval $ac_try) 2>&5 2333 ac_status=$? 2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2335 (exit $ac_status); }; }; then 2336 for ac_declaration in \ 2337 '' \ 2338 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2339 'extern "C" void std::exit (int); using std::exit;' \ 2340 'extern "C" void exit (int) throw ();' \ 2341 'extern "C" void exit (int);' \ 2342 'void exit (int);' 2343do 2344 cat >conftest.$ac_ext <<_ACEOF 2345/* confdefs.h. */ 2346_ACEOF 2347cat confdefs.h >>conftest.$ac_ext 2348cat >>conftest.$ac_ext <<_ACEOF 2349/* end confdefs.h. */ 2350$ac_declaration 2351#include <stdlib.h> 2352int 2353main () 2354{ 2355exit (42); 2356 ; 2357 return 0; 2358} 2359_ACEOF 2360rm -f conftest.$ac_objext 2361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2362 (eval $ac_compile) 2>conftest.er1 2363 ac_status=$? 2364 grep -v '^ *+' conftest.er1 >conftest.err 2365 rm -f conftest.er1 2366 cat conftest.err >&5 2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2368 (exit $ac_status); } && 2369 { ac_try='test -z "$ac_c_werror_flag" 2370 || test ! -s conftest.err' 2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2372 (eval $ac_try) 2>&5 2373 ac_status=$? 2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2375 (exit $ac_status); }; } && 2376 { ac_try='test -s conftest.$ac_objext' 2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2378 (eval $ac_try) 2>&5 2379 ac_status=$? 2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2381 (exit $ac_status); }; }; then 2382 : 2383else 2384 echo "$as_me: failed program was:" >&5 2385sed 's/^/| /' conftest.$ac_ext >&5 2386 2387continue 2388fi 2389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2390 cat >conftest.$ac_ext <<_ACEOF 2391/* confdefs.h. */ 2392_ACEOF 2393cat confdefs.h >>conftest.$ac_ext 2394cat >>conftest.$ac_ext <<_ACEOF 2395/* end confdefs.h. */ 2396$ac_declaration 2397int 2398main () 2399{ 2400exit (42); 2401 ; 2402 return 0; 2403} 2404_ACEOF 2405rm -f conftest.$ac_objext 2406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2407 (eval $ac_compile) 2>conftest.er1 2408 ac_status=$? 2409 grep -v '^ *+' conftest.er1 >conftest.err 2410 rm -f conftest.er1 2411 cat conftest.err >&5 2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2413 (exit $ac_status); } && 2414 { ac_try='test -z "$ac_c_werror_flag" 2415 || test ! -s conftest.err' 2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2417 (eval $ac_try) 2>&5 2418 ac_status=$? 2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2420 (exit $ac_status); }; } && 2421 { ac_try='test -s conftest.$ac_objext' 2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2423 (eval $ac_try) 2>&5 2424 ac_status=$? 2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2426 (exit $ac_status); }; }; then 2427 break 2428else 2429 echo "$as_me: failed program was:" >&5 2430sed 's/^/| /' conftest.$ac_ext >&5 2431 2432fi 2433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2434done 2435rm -f conftest* 2436if test -n "$ac_declaration"; then 2437 echo '#ifdef __cplusplus' >>confdefs.h 2438 echo $ac_declaration >>confdefs.h 2439 echo '#endif' >>confdefs.h 2440fi 2441 2442else 2443 echo "$as_me: failed program was:" >&5 2444sed 's/^/| /' conftest.$ac_ext >&5 2445 2446fi 2447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2448ac_ext=c 2449ac_cpp='$CPP $CPPFLAGS' 2450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2452ac_compiler_gnu=$ac_cv_c_compiler_gnu 2453 2454 2455# Check whether --enable-debug or --disable-debug was given. 2456if test "${enable_debug+set}" = set; then 2457 enableval="$enable_debug" 2458 if test ".$ac_cv_c_compiler_gnu" = ".yes"; then 2459 case "$CFLAGS" in 2460 *-O* ) ;; 2461 * ) CFLAGS="$CFLAGS -O2" ;; 2462 esac 2463 case "$CFLAGS" in 2464 *-g* ) ;; 2465 * ) CFLAGS="$CFLAGS -g" ;; 2466 esac 2467 case "$CFLAGS" in 2468 *-pipe* ) ;; 2469 * ) echo "$as_me:$LINENO: checking whether compiler option(s) -pipe work" >&5 2470echo $ECHO_N "checking whether compiler option(s) -pipe work... $ECHO_C" >&6 2471if test "${ac_cv_compiler_option_pipe+set}" = set; then 2472 echo $ECHO_N "(cached) $ECHO_C" >&6 2473else 2474 2475SAVE_CFLAGS="$CFLAGS" 2476CFLAGS="$CFLAGS -pipe" 2477cat >conftest.$ac_ext <<_ACEOF 2478/* confdefs.h. */ 2479_ACEOF 2480cat confdefs.h >>conftest.$ac_ext 2481cat >>conftest.$ac_ext <<_ACEOF 2482/* end confdefs.h. */ 2483 2484int 2485main () 2486{ 2487 2488 ; 2489 return 0; 2490} 2491_ACEOF 2492rm -f conftest.$ac_objext 2493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2494 (eval $ac_compile) 2>conftest.er1 2495 ac_status=$? 2496 grep -v '^ *+' conftest.er1 >conftest.err 2497 rm -f conftest.er1 2498 cat conftest.err >&5 2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2500 (exit $ac_status); } && 2501 { ac_try='test -z "$ac_c_werror_flag" 2502 || test ! -s conftest.err' 2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2504 (eval $ac_try) 2>&5 2505 ac_status=$? 2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2507 (exit $ac_status); }; } && 2508 { ac_try='test -s conftest.$ac_objext' 2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2510 (eval $ac_try) 2>&5 2511 ac_status=$? 2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2513 (exit $ac_status); }; }; then 2514 ac_cv_compiler_option_pipe=yes 2515else 2516 echo "$as_me: failed program was:" >&5 2517sed 's/^/| /' conftest.$ac_ext >&5 2518 2519ac_cv_compiler_option_pipe=no 2520fi 2521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2522CFLAGS="$SAVE_CFLAGS" 2523 2524fi 2525if test ".$ac_cv_compiler_option_pipe" = .yes; then 2526 CFLAGS="$CFLAGS -pipe" 2527else 2528 : 2529fi 2530echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5 2531echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6 2532 ;; 2533 esac 2534 echo "$as_me:$LINENO: checking whether compiler option(s) -DDEBUG work" >&5 2535echo $ECHO_N "checking whether compiler option(s) -DDEBUG work... $ECHO_C" >&6 2536if test "${ac_cv_compiler_option_defdbg+set}" = set; then 2537 echo $ECHO_N "(cached) $ECHO_C" >&6 2538else 2539 2540SAVE_CFLAGS="$CFLAGS" 2541CFLAGS="$CFLAGS -DDEBUG" 2542cat >conftest.$ac_ext <<_ACEOF 2543/* confdefs.h. */ 2544_ACEOF 2545cat confdefs.h >>conftest.$ac_ext 2546cat >>conftest.$ac_ext <<_ACEOF 2547/* end confdefs.h. */ 2548 2549int 2550main () 2551{ 2552 2553 ; 2554 return 0; 2555} 2556_ACEOF 2557rm -f conftest.$ac_objext 2558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2559 (eval $ac_compile) 2>conftest.er1 2560 ac_status=$? 2561 grep -v '^ *+' conftest.er1 >conftest.err 2562 rm -f conftest.er1 2563 cat conftest.err >&5 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); } && 2566 { ac_try='test -z "$ac_c_werror_flag" 2567 || test ! -s conftest.err' 2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2569 (eval $ac_try) 2>&5 2570 ac_status=$? 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); }; } && 2573 { ac_try='test -s conftest.$ac_objext' 2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2575 (eval $ac_try) 2>&5 2576 ac_status=$? 2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2578 (exit $ac_status); }; }; then 2579 ac_cv_compiler_option_defdbg=yes 2580else 2581 echo "$as_me: failed program was:" >&5 2582sed 's/^/| /' conftest.$ac_ext >&5 2583 2584ac_cv_compiler_option_defdbg=no 2585fi 2586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2587CFLAGS="$SAVE_CFLAGS" 2588 2589fi 2590if test ".$ac_cv_compiler_option_defdbg" = .yes; then 2591 CFLAGS="$CFLAGS -DDEBUG" 2592else 2593 : 2594fi 2595echo "$as_me:$LINENO: result: $ac_cv_compiler_option_defdbg" >&5 2596echo "${ECHO_T}$ac_cv_compiler_option_defdbg" >&6 2597 2598 echo "$as_me:$LINENO: checking whether compiler option(s) -ggdb3 work" >&5 2599echo $ECHO_N "checking whether compiler option(s) -ggdb3 work... $ECHO_C" >&6 2600if test "${ac_cv_compiler_option_ggdb3+set}" = set; then 2601 echo $ECHO_N "(cached) $ECHO_C" >&6 2602else 2603 2604SAVE_CFLAGS="$CFLAGS" 2605CFLAGS="$CFLAGS -ggdb3" 2606cat >conftest.$ac_ext <<_ACEOF 2607/* confdefs.h. */ 2608_ACEOF 2609cat confdefs.h >>conftest.$ac_ext 2610cat >>conftest.$ac_ext <<_ACEOF 2611/* end confdefs.h. */ 2612 2613int 2614main () 2615{ 2616 2617 ; 2618 return 0; 2619} 2620_ACEOF 2621rm -f conftest.$ac_objext 2622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2623 (eval $ac_compile) 2>conftest.er1 2624 ac_status=$? 2625 grep -v '^ *+' conftest.er1 >conftest.err 2626 rm -f conftest.er1 2627 cat conftest.err >&5 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); } && 2630 { ac_try='test -z "$ac_c_werror_flag" 2631 || test ! -s conftest.err' 2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2633 (eval $ac_try) 2>&5 2634 ac_status=$? 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2636 (exit $ac_status); }; } && 2637 { ac_try='test -s conftest.$ac_objext' 2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2639 (eval $ac_try) 2>&5 2640 ac_status=$? 2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2642 (exit $ac_status); }; }; then 2643 ac_cv_compiler_option_ggdb3=yes 2644else 2645 echo "$as_me: failed program was:" >&5 2646sed 's/^/| /' conftest.$ac_ext >&5 2647 2648ac_cv_compiler_option_ggdb3=no 2649fi 2650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2651CFLAGS="$SAVE_CFLAGS" 2652 2653fi 2654if test ".$ac_cv_compiler_option_ggdb3" = .yes; then 2655 CFLAGS="$CFLAGS -ggdb3" 2656else 2657 : 2658fi 2659echo "$as_me:$LINENO: result: $ac_cv_compiler_option_ggdb3" >&5 2660echo "${ECHO_T}$ac_cv_compiler_option_ggdb3" >&6 2661 2662 CFLAGS="$CFLAGS -pedantic" 2663 CFLAGS="$CFLAGS -Wall" 2664 WMORE="-Wshadow -Wpointer-arith -Wcast-align -Winline" 2665 WMORE="$WMORE -Wmissing-prototypes -Wmissing-declarations -Wnested-externs" 2666 echo "$as_me:$LINENO: checking whether compiler option(s) -W<xxx> work" >&5 2667echo $ECHO_N "checking whether compiler option(s) -W<xxx> work... $ECHO_C" >&6 2668if test "${ac_cv_compiler_option_wmore+set}" = set; then 2669 echo $ECHO_N "(cached) $ECHO_C" >&6 2670else 2671 2672SAVE_CFLAGS="$CFLAGS" 2673CFLAGS="$CFLAGS $WMORE" 2674cat >conftest.$ac_ext <<_ACEOF 2675/* confdefs.h. */ 2676_ACEOF 2677cat confdefs.h >>conftest.$ac_ext 2678cat >>conftest.$ac_ext <<_ACEOF 2679/* end confdefs.h. */ 2680 2681int 2682main () 2683{ 2684 2685 ; 2686 return 0; 2687} 2688_ACEOF 2689rm -f conftest.$ac_objext 2690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2691 (eval $ac_compile) 2>conftest.er1 2692 ac_status=$? 2693 grep -v '^ *+' conftest.er1 >conftest.err 2694 rm -f conftest.er1 2695 cat conftest.err >&5 2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2697 (exit $ac_status); } && 2698 { ac_try='test -z "$ac_c_werror_flag" 2699 || test ! -s conftest.err' 2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2701 (eval $ac_try) 2>&5 2702 ac_status=$? 2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); }; } && 2705 { ac_try='test -s conftest.$ac_objext' 2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2707 (eval $ac_try) 2>&5 2708 ac_status=$? 2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2710 (exit $ac_status); }; }; then 2711 ac_cv_compiler_option_wmore=yes 2712else 2713 echo "$as_me: failed program was:" >&5 2714sed 's/^/| /' conftest.$ac_ext >&5 2715 2716ac_cv_compiler_option_wmore=no 2717fi 2718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2719CFLAGS="$SAVE_CFLAGS" 2720 2721fi 2722if test ".$ac_cv_compiler_option_wmore" = .yes; then 2723 CFLAGS="$CFLAGS $WMORE" 2724else 2725 : 2726fi 2727echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wmore" >&5 2728echo "${ECHO_T}$ac_cv_compiler_option_wmore" >&6 2729 2730 echo "$as_me:$LINENO: checking whether compiler option(s) -Wno-long-long work" >&5 2731echo $ECHO_N "checking whether compiler option(s) -Wno-long-long work... $ECHO_C" >&6 2732if test "${ac_cv_compiler_option_wnolonglong+set}" = set; then 2733 echo $ECHO_N "(cached) $ECHO_C" >&6 2734else 2735 2736SAVE_CFLAGS="$CFLAGS" 2737CFLAGS="$CFLAGS -Wno-long-long" 2738cat >conftest.$ac_ext <<_ACEOF 2739/* confdefs.h. */ 2740_ACEOF 2741cat confdefs.h >>conftest.$ac_ext 2742cat >>conftest.$ac_ext <<_ACEOF 2743/* end confdefs.h. */ 2744 2745int 2746main () 2747{ 2748 2749 ; 2750 return 0; 2751} 2752_ACEOF 2753rm -f conftest.$ac_objext 2754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2755 (eval $ac_compile) 2>conftest.er1 2756 ac_status=$? 2757 grep -v '^ *+' conftest.er1 >conftest.err 2758 rm -f conftest.er1 2759 cat conftest.err >&5 2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2761 (exit $ac_status); } && 2762 { ac_try='test -z "$ac_c_werror_flag" 2763 || test ! -s conftest.err' 2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2765 (eval $ac_try) 2>&5 2766 ac_status=$? 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2768 (exit $ac_status); }; } && 2769 { ac_try='test -s conftest.$ac_objext' 2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2771 (eval $ac_try) 2>&5 2772 ac_status=$? 2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2774 (exit $ac_status); }; }; then 2775 ac_cv_compiler_option_wnolonglong=yes 2776else 2777 echo "$as_me: failed program was:" >&5 2778sed 's/^/| /' conftest.$ac_ext >&5 2779 2780ac_cv_compiler_option_wnolonglong=no 2781fi 2782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2783CFLAGS="$SAVE_CFLAGS" 2784 2785fi 2786if test ".$ac_cv_compiler_option_wnolonglong" = .yes; then 2787 CFLAGS="$CFLAGS -Wno-long-long" 2788else 2789 : 2790fi 2791echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wnolonglong" >&5 2792echo "${ECHO_T}$ac_cv_compiler_option_wnolonglong" >&6 2793 2794else 2795 case "$CFLAGS" in 2796 *-g* ) ;; 2797 * ) CFLAGS="$CFLAGS -g" ;; 2798 esac 2799fi 2800msg="enabled" 2801 2802else 2803 2804if test ".$ac_cv_c_compiler_gnu" = ".yes"; then 2805case "$CFLAGS" in 2806 *-pipe* ) ;; 2807 * ) echo "$as_me:$LINENO: checking whether compiler option(s) -pipe work" >&5 2808echo $ECHO_N "checking whether compiler option(s) -pipe work... $ECHO_C" >&6 2809if test "${ac_cv_compiler_option_pipe+set}" = set; then 2810 echo $ECHO_N "(cached) $ECHO_C" >&6 2811else 2812 2813SAVE_CFLAGS="$CFLAGS" 2814CFLAGS="$CFLAGS -pipe" 2815cat >conftest.$ac_ext <<_ACEOF 2816/* confdefs.h. */ 2817_ACEOF 2818cat confdefs.h >>conftest.$ac_ext 2819cat >>conftest.$ac_ext <<_ACEOF 2820/* end confdefs.h. */ 2821 2822int 2823main () 2824{ 2825 2826 ; 2827 return 0; 2828} 2829_ACEOF 2830rm -f conftest.$ac_objext 2831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2832 (eval $ac_compile) 2>conftest.er1 2833 ac_status=$? 2834 grep -v '^ *+' conftest.er1 >conftest.err 2835 rm -f conftest.er1 2836 cat conftest.err >&5 2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2838 (exit $ac_status); } && 2839 { ac_try='test -z "$ac_c_werror_flag" 2840 || test ! -s conftest.err' 2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2842 (eval $ac_try) 2>&5 2843 ac_status=$? 2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2845 (exit $ac_status); }; } && 2846 { ac_try='test -s conftest.$ac_objext' 2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2848 (eval $ac_try) 2>&5 2849 ac_status=$? 2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2851 (exit $ac_status); }; }; then 2852 ac_cv_compiler_option_pipe=yes 2853else 2854 echo "$as_me: failed program was:" >&5 2855sed 's/^/| /' conftest.$ac_ext >&5 2856 2857ac_cv_compiler_option_pipe=no 2858fi 2859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2860CFLAGS="$SAVE_CFLAGS" 2861 2862fi 2863if test ".$ac_cv_compiler_option_pipe" = .yes; then 2864 CFLAGS="$CFLAGS -pipe" 2865else 2866 : 2867fi 2868echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5 2869echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6 2870 ;; 2871esac 2872fi 2873case "$CFLAGS" in 2874 *-g* ) CFLAGS=`echo "$CFLAGS" |\ 2875 sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;; 2876esac 2877case "$CXXFLAGS" in 2878 *-g* ) CXXFLAGS=`echo "$CXXFLAGS" |\ 2879 sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;; 2880esac 2881msg=disabled 2882 2883fi; echo "$as_me:$LINENO: checking for compilation debug mode" >&5 2884echo $ECHO_N "checking for compilation debug mode... $ECHO_C" >&6 2885echo "$as_me:$LINENO: result: $msg" >&5 2886echo "${ECHO_T}$msg" >&6 2887if test ".$msg" = .enabled; then 2888 enable_shared=no 2889fi 2890 2891 2892# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2893## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 2894## Free Software Foundation, Inc. 2895## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 2896## 2897## This file is free software; the Free Software Foundation gives 2898## unlimited permission to copy and/or distribute it, with or without 2899## modifications, as long as this notice is preserved. 2900 2901# serial 47 AC_PROG_LIBTOOL 2902 2903 2904# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 2905# ----------------------------------------------------------- 2906# If this macro is not defined by Autoconf, define it here. 2907 2908 2909 2910# AC_PROG_LIBTOOL 2911# --------------- 2912# AC_PROG_LIBTOOL 2913 2914 2915# _AC_PROG_LIBTOOL 2916# ---------------- 2917# _AC_PROG_LIBTOOL 2918 2919 2920# AC_LIBTOOL_SETUP 2921# ---------------- 2922# AC_LIBTOOL_SETUP 2923 2924 2925# _LT_AC_SYS_COMPILER 2926# ------------------- 2927# _LT_AC_SYS_COMPILER 2928 2929 2930# _LT_CC_BASENAME(CC) 2931# ------------------- 2932# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 2933 2934 2935 2936# _LT_COMPILER_BOILERPLATE 2937# ------------------------ 2938# Check for compiler boilerplate output or warnings with 2939# the simple compiler test code. 2940# _LT_COMPILER_BOILERPLATE 2941 2942 2943# _LT_LINKER_BOILERPLATE 2944# ---------------------- 2945# Check for linker boilerplate output or warnings with 2946# the simple link test code. 2947# _LT_LINKER_BOILERPLATE 2948 2949 2950# _LT_AC_SYS_LIBPATH_AIX 2951# ---------------------- 2952# Links a minimal program and checks the executable 2953# for the system default hardcoded library path. In most cases, 2954# this is /usr/lib:/lib, but when the MPI compilers are used 2955# the location of the communication and MPI libs are included too. 2956# If we don't find anything, use the default library path according 2957# to the aix ld manual. 2958# _LT_AC_SYS_LIBPATH_AIX 2959 2960 2961# _LT_AC_SHELL_INIT(ARG) 2962# ---------------------- 2963# _LT_AC_SHELL_INIT 2964 2965 2966# _LT_AC_PROG_ECHO_BACKSLASH 2967# -------------------------- 2968# Add some code to the start of the generated configure script which 2969# will find an echo command which doesn't interpret backslashes. 2970# _LT_AC_PROG_ECHO_BACKSLASH 2971 2972 2973# _LT_AC_LOCK 2974# ----------- 2975# _LT_AC_LOCK 2976 2977 2978# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2979# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 2980# ---------------------------------------------------------------- 2981# Check whether the given compiler option works 2982# AC_LIBTOOL_COMPILER_OPTION 2983 2984 2985# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2986# [ACTION-SUCCESS], [ACTION-FAILURE]) 2987# ------------------------------------------------------------ 2988# Check whether the given compiler option works 2989# AC_LIBTOOL_LINKER_OPTION 2990 2991 2992# AC_LIBTOOL_SYS_MAX_CMD_LEN 2993# -------------------------- 2994# AC_LIBTOOL_SYS_MAX_CMD_LEN 2995 2996 2997# _LT_AC_CHECK_DLFCN 2998# -------------------- 2999# _LT_AC_CHECK_DLFCN 3000 3001 3002# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3003# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3004# ------------------------------------------------------------------ 3005# _LT_AC_TRY_DLOPEN_SELF 3006 3007 3008# AC_LIBTOOL_DLOPEN_SELF 3009# ------------------- 3010# AC_LIBTOOL_DLOPEN_SELF 3011 3012 3013# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 3014# --------------------------------- 3015# Check to see if options -c and -o are simultaneously supported by compiler 3016# AC_LIBTOOL_PROG_CC_C_O 3017 3018 3019# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 3020# ----------------------------------------- 3021# Check to see if we can do hard links to lock some files if needed 3022# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 3023 3024 3025# AC_LIBTOOL_OBJDIR 3026# ----------------- 3027# AC_LIBTOOL_OBJDIR 3028 3029 3030# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 3031# ---------------------------------------------- 3032# Check hardcoding attributes. 3033# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 3034 3035 3036# AC_LIBTOOL_SYS_LIB_STRIP 3037# ------------------------ 3038# AC_LIBTOOL_SYS_LIB_STRIP 3039 3040 3041# AC_LIBTOOL_SYS_DYNAMIC_LINKER 3042# ----------------------------- 3043# PORTME Fill in your ld.so characteristics 3044# AC_LIBTOOL_SYS_DYNAMIC_LINKER 3045 3046 3047# _LT_AC_TAGCONFIG 3048# ---------------- 3049# _LT_AC_TAGCONFIG 3050 3051 3052# AC_LIBTOOL_DLOPEN 3053# ----------------- 3054# enable checks for dlopen support 3055# AC_LIBTOOL_DLOPEN 3056 3057 3058# AC_LIBTOOL_WIN32_DLL 3059# -------------------- 3060# declare package support for building win32 DLLs 3061# AC_LIBTOOL_WIN32_DLL 3062 3063 3064# AC_ENABLE_SHARED([DEFAULT]) 3065# --------------------------- 3066# implement the --enable-shared flag 3067# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3068# AC_ENABLE_SHARED 3069 3070 3071# AC_DISABLE_SHARED 3072# ----------------- 3073#- set the default shared flag to --disable-shared 3074# AC_DISABLE_SHARED 3075 3076 3077# AC_ENABLE_STATIC([DEFAULT]) 3078# --------------------------- 3079# implement the --enable-static flag 3080# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3081# AC_ENABLE_STATIC 3082 3083 3084# AC_DISABLE_STATIC 3085# ----------------- 3086# set the default static flag to --disable-static 3087# AC_DISABLE_STATIC 3088 3089 3090# AC_ENABLE_FAST_INSTALL([DEFAULT]) 3091# --------------------------------- 3092# implement the --enable-fast-install flag 3093# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3094# AC_ENABLE_FAST_INSTALL 3095 3096 3097# AC_DISABLE_FAST_INSTALL 3098# ----------------------- 3099# set the default to --disable-fast-install 3100# AC_DISABLE_FAST_INSTALL 3101 3102 3103# AC_LIBTOOL_PICMODE([MODE]) 3104# -------------------------- 3105# implement the --with-pic flag 3106# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 3107# AC_LIBTOOL_PICMODE 3108 3109 3110# AC_PROG_EGREP 3111# ------------- 3112# This is predefined starting with Autoconf 2.54, so this conditional 3113# definition can be removed once we require Autoconf 2.54 or later. 3114 3115 3116 3117# AC_PATH_TOOL_PREFIX 3118# ------------------- 3119# find a file program which can recognise shared library 3120# AC_PATH_TOOL_PREFIX 3121 3122 3123# AC_PATH_MAGIC 3124# ------------- 3125# find a file program which can recognise a shared library 3126# AC_PATH_MAGIC 3127 3128 3129# AC_PROG_LD 3130# ---------- 3131# find the pathname to the GNU or non-GNU linker 3132# AC_PROG_LD 3133 3134 3135# AC_PROG_LD_GNU 3136# -------------- 3137# AC_PROG_LD_GNU 3138 3139 3140# AC_PROG_LD_RELOAD_FLAG 3141# ---------------------- 3142# find reload flag for linker 3143# -- PORTME Some linkers may need a different reload flag. 3144# AC_PROG_LD_RELOAD_FLAG 3145 3146 3147# AC_DEPLIBS_CHECK_METHOD 3148# ----------------------- 3149# how to check for library dependencies 3150# -- PORTME fill in with the dynamic library characteristics 3151# AC_DEPLIBS_CHECK_METHOD 3152 3153 3154# AC_PROG_NM 3155# ---------- 3156# find the pathname to a BSD-compatible name lister 3157# AC_PROG_NM 3158 3159 3160# AC_CHECK_LIBM 3161# ------------- 3162# check for math library 3163# AC_CHECK_LIBM 3164 3165 3166# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 3167# ----------------------------------- 3168# sets LIBLTDL to the link flags for the libltdl convenience library and 3169# LTDLINCL to the include flags for the libltdl header and adds 3170# --enable-ltdl-convenience to the configure arguments. Note that 3171# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3172# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 3173# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 3174# (note the single quotes!). If your package is not flat and you're not 3175# using automake, define top_builddir and top_srcdir appropriately in 3176# the Makefiles. 3177# AC_LIBLTDL_CONVENIENCE 3178 3179 3180# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 3181# ----------------------------------- 3182# sets LIBLTDL to the link flags for the libltdl installable library and 3183# LTDLINCL to the include flags for the libltdl header and adds 3184# --enable-ltdl-install to the configure arguments. Note that 3185# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3186# and an installed libltdl is not found, it is assumed to be `libltdl'. 3187# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 3188# '${top_srcdir}/' (note the single quotes!). If your package is not 3189# flat and you're not using automake, define top_builddir and top_srcdir 3190# appropriately in the Makefiles. 3191# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 3192# AC_LIBLTDL_INSTALLABLE 3193 3194 3195# AC_LIBTOOL_CXX 3196# -------------- 3197# enable support for C++ libraries 3198# AC_LIBTOOL_CXX 3199 3200 3201# _LT_AC_LANG_CXX 3202# --------------- 3203# _LT_AC_LANG_CXX 3204 3205# _LT_AC_PROG_CXXCPP 3206# --------------- 3207# _LT_AC_PROG_CXXCPP 3208 3209# AC_LIBTOOL_F77 3210# -------------- 3211# enable support for Fortran 77 libraries 3212# AC_LIBTOOL_F77 3213 3214 3215# _LT_AC_LANG_F77 3216# --------------- 3217# _LT_AC_LANG_F77 3218 3219 3220# AC_LIBTOOL_GCJ 3221# -------------- 3222# enable support for GCJ libraries 3223# AC_LIBTOOL_GCJ 3224 3225 3226# _LT_AC_LANG_GCJ 3227# --------------- 3228# _LT_AC_LANG_GCJ 3229 3230 3231# AC_LIBTOOL_RC 3232# -------------- 3233# enable support for Windows resource files 3234# AC_LIBTOOL_RC 3235 3236 3237# AC_LIBTOOL_LANG_C_CONFIG 3238# ------------------------ 3239# Ensure that the configuration vars for the C compiler are 3240# suitably defined. Those variables are subsequently used by 3241# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3242 3243# AC_LIBTOOL_LANG_C_CONFIG 3244 3245 3246# AC_LIBTOOL_LANG_CXX_CONFIG 3247# -------------------------- 3248# Ensure that the configuration vars for the C compiler are 3249# suitably defined. Those variables are subsequently used by 3250# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3251 3252# AC_LIBTOOL_LANG_CXX_CONFIG 3253 3254# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 3255# ------------------------ 3256# Figure out "hidden" library dependencies from verbose 3257# compiler output when linking a shared library. 3258# Parse the compiler output and extract the necessary 3259# objects, libraries and library flags. 3260# AC_LIBTOOL_POSTDEP_PREDEP 3261 3262# AC_LIBTOOL_LANG_F77_CONFIG 3263# ------------------------ 3264# Ensure that the configuration vars for the C compiler are 3265# suitably defined. Those variables are subsequently used by 3266# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3267 3268# AC_LIBTOOL_LANG_F77_CONFIG 3269 3270 3271# AC_LIBTOOL_LANG_GCJ_CONFIG 3272# -------------------------- 3273# Ensure that the configuration vars for the C compiler are 3274# suitably defined. Those variables are subsequently used by 3275# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3276 3277# AC_LIBTOOL_LANG_GCJ_CONFIG 3278 3279 3280# AC_LIBTOOL_LANG_RC_CONFIG 3281# -------------------------- 3282# Ensure that the configuration vars for the Windows resource compiler are 3283# suitably defined. Those variables are subsequently used by 3284# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3285 3286# AC_LIBTOOL_LANG_RC_CONFIG 3287 3288 3289# AC_LIBTOOL_CONFIG([TAGNAME]) 3290# ---------------------------- 3291# If TAGNAME is not passed, then create an initial libtool script 3292# with a default configuration from the untagged config vars. Otherwise 3293# add code to config.status for appending the configuration named by 3294# TAGNAME from the matching tagged config vars. 3295# AC_LIBTOOL_CONFIG 3296 3297 3298# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 3299# ------------------------------------------- 3300# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 3301 3302 3303# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 3304# --------------------------------- 3305 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 3306 3307 3308# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 3309# --------------------------------------- 3310 3311 3312 3313# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 3314# ------------------------------------ 3315# See if the linker supports building shared libraries. 3316# AC_LIBTOOL_PROG_LD_SHLIBS 3317 3318 3319# _LT_AC_FILE_LTDLL_C 3320# ------------------- 3321# Be careful that the start marker always follows a newline. 3322# _LT_AC_FILE_LTDLL_C 3323 3324 3325# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 3326# --------------------------------- 3327 3328 3329 3330# old names 3331 3332 3333 3334 3335 3336 3337 3338 3339# This is just to silence aclocal about the macro not being used 3340 3341 3342 3343 3344 3345 3346############################################################ 3347# NOTE: This macro has been submitted for inclusion into # 3348# GNU Autoconf as AC_PROG_SED. When it is available in # 3349# a released version of Autoconf we should remove this # 3350# macro and use it instead. # 3351############################################################ 3352# LT_AC_PROG_SED 3353# -------------- 3354# Check for a fully-functional sed program, that truncates 3355# as few characters as possible. Prefer GNU sed if found. 3356 3357 3358# Check whether --enable-shared or --disable-shared was given. 3359if test "${enable_shared+set}" = set; then 3360 enableval="$enable_shared" 3361 p=${PACKAGE-default} 3362 case $enableval in 3363 yes) enable_shared=yes ;; 3364 no) enable_shared=no ;; 3365 *) 3366 enable_shared=no 3367 # Look at the argument we got. We use all the common list separators. 3368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3369 for pkg in $enableval; do 3370 IFS="$lt_save_ifs" 3371 if test "X$pkg" = "X$p"; then 3372 enable_shared=yes 3373 fi 3374 done 3375 IFS="$lt_save_ifs" 3376 ;; 3377 esac 3378else 3379 enable_shared=yes 3380fi; 3381 3382# Check whether --enable-static or --disable-static was given. 3383if test "${enable_static+set}" = set; then 3384 enableval="$enable_static" 3385 p=${PACKAGE-default} 3386 case $enableval in 3387 yes) enable_static=yes ;; 3388 no) enable_static=no ;; 3389 *) 3390 enable_static=no 3391 # Look at the argument we got. We use all the common list separators. 3392 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3393 for pkg in $enableval; do 3394 IFS="$lt_save_ifs" 3395 if test "X$pkg" = "X$p"; then 3396 enable_static=yes 3397 fi 3398 done 3399 IFS="$lt_save_ifs" 3400 ;; 3401 esac 3402else 3403 enable_static=yes 3404fi; 3405 3406# Check whether --enable-fast-install or --disable-fast-install was given. 3407if test "${enable_fast_install+set}" = set; then 3408 enableval="$enable_fast_install" 3409 p=${PACKAGE-default} 3410 case $enableval in 3411 yes) enable_fast_install=yes ;; 3412 no) enable_fast_install=no ;; 3413 *) 3414 enable_fast_install=no 3415 # Look at the argument we got. We use all the common list separators. 3416 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3417 for pkg in $enableval; do 3418 IFS="$lt_save_ifs" 3419 if test "X$pkg" = "X$p"; then 3420 enable_fast_install=yes 3421 fi 3422 done 3423 IFS="$lt_save_ifs" 3424 ;; 3425 esac 3426else 3427 enable_fast_install=yes 3428fi; 3429 3430ac_aux_dir= 3431for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 3432 if test -f $ac_dir/install-sh; then 3433 ac_aux_dir=$ac_dir 3434 ac_install_sh="$ac_aux_dir/install-sh -c" 3435 break 3436 elif test -f $ac_dir/install.sh; then 3437 ac_aux_dir=$ac_dir 3438 ac_install_sh="$ac_aux_dir/install.sh -c" 3439 break 3440 elif test -f $ac_dir/shtool; then 3441 ac_aux_dir=$ac_dir 3442 ac_install_sh="$ac_aux_dir/shtool install -c" 3443 break 3444 fi 3445done 3446if test -z "$ac_aux_dir"; then 3447 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 3448echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 3449 { (exit 1); exit 1; }; } 3450fi 3451ac_config_guess="$SHELL $ac_aux_dir/config.guess" 3452ac_config_sub="$SHELL $ac_aux_dir/config.sub" 3453ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 3454 3455# Make sure we can run config.sub. 3456$ac_config_sub sun4 >/dev/null 2>&1 || 3457 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3458echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3459 { (exit 1); exit 1; }; } 3460 3461echo "$as_me:$LINENO: checking build system type" >&5 3462echo $ECHO_N "checking build system type... $ECHO_C" >&6 3463if test "${ac_cv_build+set}" = set; then 3464 echo $ECHO_N "(cached) $ECHO_C" >&6 3465else 3466 ac_cv_build_alias=$build_alias 3467test -z "$ac_cv_build_alias" && 3468 ac_cv_build_alias=`$ac_config_guess` 3469test -z "$ac_cv_build_alias" && 3470 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3471echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3472 { (exit 1); exit 1; }; } 3473ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3475echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3476 { (exit 1); exit 1; }; } 3477 3478fi 3479echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3480echo "${ECHO_T}$ac_cv_build" >&6 3481build=$ac_cv_build 3482build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3483build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3484build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3485 3486 3487echo "$as_me:$LINENO: checking host system type" >&5 3488echo $ECHO_N "checking host system type... $ECHO_C" >&6 3489if test "${ac_cv_host+set}" = set; then 3490 echo $ECHO_N "(cached) $ECHO_C" >&6 3491else 3492 ac_cv_host_alias=$host_alias 3493test -z "$ac_cv_host_alias" && 3494 ac_cv_host_alias=$ac_cv_build_alias 3495ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3496 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3497echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3498 { (exit 1); exit 1; }; } 3499 3500fi 3501echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3502echo "${ECHO_T}$ac_cv_host" >&6 3503host=$ac_cv_host 3504host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3505host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3506host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3507 3508 3509echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3510echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3511if test "${lt_cv_path_SED+set}" = set; then 3512 echo $ECHO_N "(cached) $ECHO_C" >&6 3513else 3514 # Loop through the user's path and test for sed and gsed. 3515# Then use that list of sed's as ones to test for truncation. 3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3517for as_dir in $PATH 3518do 3519 IFS=$as_save_IFS 3520 test -z "$as_dir" && as_dir=. 3521 for lt_ac_prog in sed gsed; do 3522 for ac_exec_ext in '' $ac_executable_extensions; do 3523 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3524 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3525 fi 3526 done 3527 done 3528done 3529lt_ac_max=0 3530lt_ac_count=0 3531# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3532# along with /bin/sed that truncates output. 3533for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3534 test ! -f $lt_ac_sed && continue 3535 cat /dev/null > conftest.in 3536 lt_ac_count=0 3537 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3538 # Check for GNU sed and select it if it is found. 3539 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3540 lt_cv_path_SED=$lt_ac_sed 3541 break 3542 fi 3543 while true; do 3544 cat conftest.in conftest.in >conftest.tmp 3545 mv conftest.tmp conftest.in 3546 cp conftest.in conftest.nl 3547 echo >>conftest.nl 3548 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3549 cmp -s conftest.out conftest.nl || break 3550 # 10000 chars as input seems more than enough 3551 test $lt_ac_count -gt 10 && break 3552 lt_ac_count=`expr $lt_ac_count + 1` 3553 if test $lt_ac_count -gt $lt_ac_max; then 3554 lt_ac_max=$lt_ac_count 3555 lt_cv_path_SED=$lt_ac_sed 3556 fi 3557 done 3558done 3559 3560fi 3561 3562SED=$lt_cv_path_SED 3563echo "$as_me:$LINENO: result: $SED" >&5 3564echo "${ECHO_T}$SED" >&6 3565 3566echo "$as_me:$LINENO: checking for egrep" >&5 3567echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3568if test "${ac_cv_prog_egrep+set}" = set; then 3569 echo $ECHO_N "(cached) $ECHO_C" >&6 3570else 3571 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3572 then ac_cv_prog_egrep='grep -E' 3573 else ac_cv_prog_egrep='egrep' 3574 fi 3575fi 3576echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3577echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3578 EGREP=$ac_cv_prog_egrep 3579 3580 3581 3582# Check whether --with-gnu-ld or --without-gnu-ld was given. 3583if test "${with_gnu_ld+set}" = set; then 3584 withval="$with_gnu_ld" 3585 test "$withval" = no || with_gnu_ld=yes 3586else 3587 with_gnu_ld=no 3588fi; 3589ac_prog=ld 3590if test "$GCC" = yes; then 3591 # Check if gcc -print-prog-name=ld gives a path. 3592 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3593echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3594 case $host in 3595 *-*-mingw*) 3596 # gcc leaves a trailing carriage return which upsets mingw 3597 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3598 *) 3599 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3600 esac 3601 case $ac_prog in 3602 # Accept absolute paths. 3603 [\\/]* | ?:[\\/]*) 3604 re_direlt='/[^/][^/]*/\.\./' 3605 # Canonicalize the pathname of ld 3606 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3607 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3608 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3609 done 3610 test -z "$LD" && LD="$ac_prog" 3611 ;; 3612 "") 3613 # If it fails, then pretend we aren't using GCC. 3614 ac_prog=ld 3615 ;; 3616 *) 3617 # If it is relative, then search for the first ld in PATH. 3618 with_gnu_ld=unknown 3619 ;; 3620 esac 3621elif test "$with_gnu_ld" = yes; then 3622 echo "$as_me:$LINENO: checking for GNU ld" >&5 3623echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3624else 3625 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3626echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3627fi 3628if test "${lt_cv_path_LD+set}" = set; then 3629 echo $ECHO_N "(cached) $ECHO_C" >&6 3630else 3631 if test -z "$LD"; then 3632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3633 for ac_dir in $PATH; do 3634 IFS="$lt_save_ifs" 3635 test -z "$ac_dir" && ac_dir=. 3636 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3637 lt_cv_path_LD="$ac_dir/$ac_prog" 3638 # Check to see if the program is GNU ld. I'd rather use --version, 3639 # but apparently some variants of GNU ld only accept -v. 3640 # Break only if it was the GNU/non-GNU ld that we prefer. 3641 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3642 *GNU* | *'with BFD'*) 3643 test "$with_gnu_ld" != no && break 3644 ;; 3645 *) 3646 test "$with_gnu_ld" != yes && break 3647 ;; 3648 esac 3649 fi 3650 done 3651 IFS="$lt_save_ifs" 3652else 3653 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3654fi 3655fi 3656 3657LD="$lt_cv_path_LD" 3658if test -n "$LD"; then 3659 echo "$as_me:$LINENO: result: $LD" >&5 3660echo "${ECHO_T}$LD" >&6 3661else 3662 echo "$as_me:$LINENO: result: no" >&5 3663echo "${ECHO_T}no" >&6 3664fi 3665test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3666echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3667 { (exit 1); exit 1; }; } 3668echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3669echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3670if test "${lt_cv_prog_gnu_ld+set}" = set; then 3671 echo $ECHO_N "(cached) $ECHO_C" >&6 3672else 3673 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3674case `$LD -v 2>&1 </dev/null` in 3675*GNU* | *'with BFD'*) 3676 lt_cv_prog_gnu_ld=yes 3677 ;; 3678*) 3679 lt_cv_prog_gnu_ld=no 3680 ;; 3681esac 3682fi 3683echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3684echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3685with_gnu_ld=$lt_cv_prog_gnu_ld 3686 3687 3688echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3689echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3690if test "${lt_cv_ld_reload_flag+set}" = set; then 3691 echo $ECHO_N "(cached) $ECHO_C" >&6 3692else 3693 lt_cv_ld_reload_flag='-r' 3694fi 3695echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3696echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3697reload_flag=$lt_cv_ld_reload_flag 3698case $reload_flag in 3699"" | " "*) ;; 3700*) reload_flag=" $reload_flag" ;; 3701esac 3702reload_cmds='$LD$reload_flag -o $output$reload_objs' 3703case $host_os in 3704 darwin*) 3705 if test "$GCC" = yes; then 3706 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3707 else 3708 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3709 fi 3710 ;; 3711esac 3712 3713echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3714echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3715if test "${lt_cv_path_NM+set}" = set; then 3716 echo $ECHO_N "(cached) $ECHO_C" >&6 3717else 3718 if test -n "$NM"; then 3719 # Let the user override the test. 3720 lt_cv_path_NM="$NM" 3721else 3722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3723 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3724 IFS="$lt_save_ifs" 3725 test -z "$ac_dir" && ac_dir=. 3726 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3727 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3728 # Check to see if the nm accepts a BSD-compat flag. 3729 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3730 # nm: unknown option "B" ignored 3731 # Tru64's nm complains that /dev/null is an invalid object file 3732 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3733 */dev/null* | *'Invalid file or object type'*) 3734 lt_cv_path_NM="$tmp_nm -B" 3735 break 3736 ;; 3737 *) 3738 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3739 */dev/null*) 3740 lt_cv_path_NM="$tmp_nm -p" 3741 break 3742 ;; 3743 *) 3744 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3745 continue # so that we can try to find one that supports BSD flags 3746 ;; 3747 esac 3748 esac 3749 fi 3750 done 3751 IFS="$lt_save_ifs" 3752 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3753fi 3754fi 3755echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3756echo "${ECHO_T}$lt_cv_path_NM" >&6 3757NM="$lt_cv_path_NM" 3758 3759echo "$as_me:$LINENO: checking whether ln -s works" >&5 3760echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3761LN_S=$as_ln_s 3762if test "$LN_S" = "ln -s"; then 3763 echo "$as_me:$LINENO: result: yes" >&5 3764echo "${ECHO_T}yes" >&6 3765else 3766 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3767echo "${ECHO_T}no, using $LN_S" >&6 3768fi 3769 3770echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3771echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3772if test "${lt_cv_deplibs_check_method+set}" = set; then 3773 echo $ECHO_N "(cached) $ECHO_C" >&6 3774else 3775 lt_cv_file_magic_cmd='$MAGIC_CMD' 3776lt_cv_file_magic_test_file= 3777lt_cv_deplibs_check_method='unknown' 3778# Need to set the preceding variable on all platforms that support 3779# interlibrary dependencies. 3780# 'none' -- dependencies not supported. 3781# `unknown' -- same as none, but documents that we really don't know. 3782# 'pass_all' -- all dependencies passed with no checks. 3783# 'test_compile' -- check by making test program. 3784# 'file_magic [[regex]]' -- check by looking for files in library path 3785# which responds to the $file_magic_cmd with a given extended regex. 3786# If you have `file' or equivalent on your system and you're not sure 3787# whether `pass_all' will *always* work, you probably want this one. 3788 3789case $host_os in 3790aix4* | aix5*) 3791 lt_cv_deplibs_check_method=pass_all 3792 ;; 3793 3794beos*) 3795 lt_cv_deplibs_check_method=pass_all 3796 ;; 3797 3798bsdi[45]*) 3799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3800 lt_cv_file_magic_cmd='/usr/bin/file -L' 3801 lt_cv_file_magic_test_file=/shlib/libc.so 3802 ;; 3803 3804cygwin*) 3805 # func_win32_libid is a shell function defined in ltmain.sh 3806 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3807 lt_cv_file_magic_cmd='func_win32_libid' 3808 ;; 3809 3810mingw* | pw32*) 3811 # Base MSYS/MinGW do not provide the 'file' command needed by 3812 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3813 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3814 lt_cv_file_magic_cmd='$OBJDUMP -f' 3815 ;; 3816 3817darwin* | rhapsody*) 3818 lt_cv_deplibs_check_method=pass_all 3819 ;; 3820 3821freebsd* | kfreebsd*-gnu | dragonfly*) 3822 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3823 case $host_cpu in 3824 i*86 ) 3825 # Not sure whether the presence of OpenBSD here was a mistake. 3826 # Let's accept both of them until this is cleared up. 3827 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3828 lt_cv_file_magic_cmd=/usr/bin/file 3829 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3830 ;; 3831 esac 3832 else 3833 lt_cv_deplibs_check_method=pass_all 3834 fi 3835 ;; 3836 3837gnu*) 3838 lt_cv_deplibs_check_method=pass_all 3839 ;; 3840 3841hpux10.20* | hpux11*) 3842 lt_cv_file_magic_cmd=/usr/bin/file 3843 case $host_cpu in 3844 ia64*) 3845 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3846 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3847 ;; 3848 hppa*64*) 3849 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]' 3850 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3851 ;; 3852 *) 3853 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3854 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3855 ;; 3856 esac 3857 ;; 3858 3859irix5* | irix6* | nonstopux*) 3860 case $LD in 3861 *-32|*"-32 ") libmagic=32-bit;; 3862 *-n32|*"-n32 ") libmagic=N32;; 3863 *-64|*"-64 ") libmagic=64-bit;; 3864 *) libmagic=never-match;; 3865 esac 3866 lt_cv_deplibs_check_method=pass_all 3867 ;; 3868 3869# This must be Linux ELF. 3870linux*) 3871 lt_cv_deplibs_check_method=pass_all 3872 ;; 3873 3874netbsd*) 3875 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3877 else 3878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3879 fi 3880 ;; 3881 3882newos6*) 3883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3884 lt_cv_file_magic_cmd=/usr/bin/file 3885 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3886 ;; 3887 3888nto-qnx*) 3889 lt_cv_deplibs_check_method=unknown 3890 ;; 3891 3892openbsd*) 3893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3895 else 3896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3897 fi 3898 ;; 3899 3900osf3* | osf4* | osf5*) 3901 lt_cv_deplibs_check_method=pass_all 3902 ;; 3903 3904sco3.2v5*) 3905 lt_cv_deplibs_check_method=pass_all 3906 ;; 3907 3908solaris*) 3909 lt_cv_deplibs_check_method=pass_all 3910 ;; 3911 3912sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3913 case $host_vendor in 3914 motorola) 3915 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]' 3916 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3917 ;; 3918 ncr) 3919 lt_cv_deplibs_check_method=pass_all 3920 ;; 3921 sequent) 3922 lt_cv_file_magic_cmd='/bin/file' 3923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3924 ;; 3925 sni) 3926 lt_cv_file_magic_cmd='/bin/file' 3927 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3928 lt_cv_file_magic_test_file=/lib/libc.so 3929 ;; 3930 siemens) 3931 lt_cv_deplibs_check_method=pass_all 3932 ;; 3933 esac 3934 ;; 3935 3936sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3937 lt_cv_deplibs_check_method=pass_all 3938 ;; 3939esac 3940 3941fi 3942echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3943echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3944file_magic_cmd=$lt_cv_file_magic_cmd 3945deplibs_check_method=$lt_cv_deplibs_check_method 3946test -z "$deplibs_check_method" && deplibs_check_method=unknown 3947 3948 3949 3950 3951# If no C compiler was specified, use CC. 3952LTCC=${LTCC-"$CC"} 3953 3954# Allow CC to be a program name with arguments. 3955compiler=$CC 3956 3957# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3958if test "${enable_libtool_lock+set}" = set; then 3959 enableval="$enable_libtool_lock" 3960 3961fi; 3962test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3963 3964# Some flags need to be propagated to the compiler or linker for good 3965# libtool support. 3966case $host in 3967ia64-*-hpux*) 3968 # Find out which ABI we are using. 3969 echo 'int i;' > conftest.$ac_ext 3970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3971 (eval $ac_compile) 2>&5 3972 ac_status=$? 3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3974 (exit $ac_status); }; then 3975 case `/usr/bin/file conftest.$ac_objext` in 3976 *ELF-32*) 3977 HPUX_IA64_MODE="32" 3978 ;; 3979 *ELF-64*) 3980 HPUX_IA64_MODE="64" 3981 ;; 3982 esac 3983 fi 3984 rm -rf conftest* 3985 ;; 3986*-*-irix6*) 3987 # Find out which ABI we are using. 3988 echo '#line 3988 "configure"' > conftest.$ac_ext 3989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3990 (eval $ac_compile) 2>&5 3991 ac_status=$? 3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3993 (exit $ac_status); }; then 3994 if test "$lt_cv_prog_gnu_ld" = yes; then 3995 case `/usr/bin/file conftest.$ac_objext` in 3996 *32-bit*) 3997 LD="${LD-ld} -melf32bsmip" 3998 ;; 3999 *N32*) 4000 LD="${LD-ld} -melf32bmipn32" 4001 ;; 4002 *64-bit*) 4003 LD="${LD-ld} -melf64bmip" 4004 ;; 4005 esac 4006 else 4007 case `/usr/bin/file conftest.$ac_objext` in 4008 *32-bit*) 4009 LD="${LD-ld} -32" 4010 ;; 4011 *N32*) 4012 LD="${LD-ld} -n32" 4013 ;; 4014 *64-bit*) 4015 LD="${LD-ld} -64" 4016 ;; 4017 esac 4018 fi 4019 fi 4020 rm -rf conftest* 4021 ;; 4022 4023x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4024 # Find out which ABI we are using. 4025 echo 'int i;' > conftest.$ac_ext 4026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4027 (eval $ac_compile) 2>&5 4028 ac_status=$? 4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4030 (exit $ac_status); }; then 4031 case `/usr/bin/file conftest.o` in 4032 *32-bit*) 4033 case $host in 4034 x86_64-*linux*) 4035 LD="${LD-ld} -m elf_i386" 4036 ;; 4037 ppc64-*linux*|powerpc64-*linux*) 4038 LD="${LD-ld} -m elf32ppclinux" 4039 ;; 4040 s390x-*linux*) 4041 LD="${LD-ld} -m elf_s390" 4042 ;; 4043 sparc64-*linux*) 4044 LD="${LD-ld} -m elf32_sparc" 4045 ;; 4046 esac 4047 ;; 4048 *64-bit*) 4049 case $host in 4050 x86_64-*linux*) 4051 LD="${LD-ld} -m elf_x86_64" 4052 ;; 4053 ppc*-*linux*|powerpc*-*linux*) 4054 LD="${LD-ld} -m elf64ppc" 4055 ;; 4056 s390*-*linux*) 4057 LD="${LD-ld} -m elf64_s390" 4058 ;; 4059 sparc*-*linux*) 4060 LD="${LD-ld} -m elf64_sparc" 4061 ;; 4062 esac 4063 ;; 4064 esac 4065 fi 4066 rm -rf conftest* 4067 ;; 4068 4069*-*-sco3.2v5*) 4070 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4071 SAVE_CFLAGS="$CFLAGS" 4072 CFLAGS="$CFLAGS -belf" 4073 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4074echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4075if test "${lt_cv_cc_needs_belf+set}" = set; then 4076 echo $ECHO_N "(cached) $ECHO_C" >&6 4077else 4078 ac_ext=c 4079ac_cpp='$CPP $CPPFLAGS' 4080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4082ac_compiler_gnu=$ac_cv_c_compiler_gnu 4083 4084 cat >conftest.$ac_ext <<_ACEOF 4085/* confdefs.h. */ 4086_ACEOF 4087cat confdefs.h >>conftest.$ac_ext 4088cat >>conftest.$ac_ext <<_ACEOF 4089/* end confdefs.h. */ 4090 4091int 4092main () 4093{ 4094 4095 ; 4096 return 0; 4097} 4098_ACEOF 4099rm -f conftest.$ac_objext conftest$ac_exeext 4100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4101 (eval $ac_link) 2>conftest.er1 4102 ac_status=$? 4103 grep -v '^ *+' conftest.er1 >conftest.err 4104 rm -f conftest.er1 4105 cat conftest.err >&5 4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4107 (exit $ac_status); } && 4108 { ac_try='test -z "$ac_c_werror_flag" 4109 || test ! -s conftest.err' 4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4111 (eval $ac_try) 2>&5 4112 ac_status=$? 4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4114 (exit $ac_status); }; } && 4115 { ac_try='test -s conftest$ac_exeext' 4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4117 (eval $ac_try) 2>&5 4118 ac_status=$? 4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4120 (exit $ac_status); }; }; then 4121 lt_cv_cc_needs_belf=yes 4122else 4123 echo "$as_me: failed program was:" >&5 4124sed 's/^/| /' conftest.$ac_ext >&5 4125 4126lt_cv_cc_needs_belf=no 4127fi 4128rm -f conftest.err conftest.$ac_objext \ 4129 conftest$ac_exeext conftest.$ac_ext 4130 ac_ext=c 4131ac_cpp='$CPP $CPPFLAGS' 4132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4134ac_compiler_gnu=$ac_cv_c_compiler_gnu 4135 4136fi 4137echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4138echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4139 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4140 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4141 CFLAGS="$SAVE_CFLAGS" 4142 fi 4143 ;; 4144 4145esac 4146 4147need_locks="$enable_libtool_lock" 4148 4149 4150ac_ext=c 4151ac_cpp='$CPP $CPPFLAGS' 4152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4154ac_compiler_gnu=$ac_cv_c_compiler_gnu 4155echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4156echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4157# On Suns, sometimes $CPP names a directory. 4158if test -n "$CPP" && test -d "$CPP"; then 4159 CPP= 4160fi 4161if test -z "$CPP"; then 4162 if test "${ac_cv_prog_CPP+set}" = set; then 4163 echo $ECHO_N "(cached) $ECHO_C" >&6 4164else 4165 # Double quotes because CPP needs to be expanded 4166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4167 do 4168 ac_preproc_ok=false 4169for ac_c_preproc_warn_flag in '' yes 4170do 4171 # Use a header file that comes with gcc, so configuring glibc 4172 # with a fresh cross-compiler works. 4173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4174 # <limits.h> exists even on freestanding compilers. 4175 # On the NeXT, cc -E runs the code through the compiler's parser, 4176 # not just through cpp. "Syntax error" is here to catch this case. 4177 cat >conftest.$ac_ext <<_ACEOF 4178/* confdefs.h. */ 4179_ACEOF 4180cat confdefs.h >>conftest.$ac_ext 4181cat >>conftest.$ac_ext <<_ACEOF 4182/* end confdefs.h. */ 4183#ifdef __STDC__ 4184# include <limits.h> 4185#else 4186# include <assert.h> 4187#endif 4188 Syntax error 4189_ACEOF 4190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4192 ac_status=$? 4193 grep -v '^ *+' conftest.er1 >conftest.err 4194 rm -f conftest.er1 4195 cat conftest.err >&5 4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4197 (exit $ac_status); } >/dev/null; then 4198 if test -s conftest.err; then 4199 ac_cpp_err=$ac_c_preproc_warn_flag 4200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4201 else 4202 ac_cpp_err= 4203 fi 4204else 4205 ac_cpp_err=yes 4206fi 4207if test -z "$ac_cpp_err"; then 4208 : 4209else 4210 echo "$as_me: failed program was:" >&5 4211sed 's/^/| /' conftest.$ac_ext >&5 4212 4213 # Broken: fails on valid input. 4214continue 4215fi 4216rm -f conftest.err conftest.$ac_ext 4217 4218 # OK, works on sane cases. Now check whether non-existent headers 4219 # can be detected and how. 4220 cat >conftest.$ac_ext <<_ACEOF 4221/* confdefs.h. */ 4222_ACEOF 4223cat confdefs.h >>conftest.$ac_ext 4224cat >>conftest.$ac_ext <<_ACEOF 4225/* end confdefs.h. */ 4226#include <ac_nonexistent.h> 4227_ACEOF 4228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4230 ac_status=$? 4231 grep -v '^ *+' conftest.er1 >conftest.err 4232 rm -f conftest.er1 4233 cat conftest.err >&5 4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4235 (exit $ac_status); } >/dev/null; then 4236 if test -s conftest.err; then 4237 ac_cpp_err=$ac_c_preproc_warn_flag 4238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4239 else 4240 ac_cpp_err= 4241 fi 4242else 4243 ac_cpp_err=yes 4244fi 4245if test -z "$ac_cpp_err"; then 4246 # Broken: success on invalid input. 4247continue 4248else 4249 echo "$as_me: failed program was:" >&5 4250sed 's/^/| /' conftest.$ac_ext >&5 4251 4252 # Passes both tests. 4253ac_preproc_ok=: 4254break 4255fi 4256rm -f conftest.err conftest.$ac_ext 4257 4258done 4259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4260rm -f conftest.err conftest.$ac_ext 4261if $ac_preproc_ok; then 4262 break 4263fi 4264 4265 done 4266 ac_cv_prog_CPP=$CPP 4267 4268fi 4269 CPP=$ac_cv_prog_CPP 4270else 4271 ac_cv_prog_CPP=$CPP 4272fi 4273echo "$as_me:$LINENO: result: $CPP" >&5 4274echo "${ECHO_T}$CPP" >&6 4275ac_preproc_ok=false 4276for ac_c_preproc_warn_flag in '' yes 4277do 4278 # Use a header file that comes with gcc, so configuring glibc 4279 # with a fresh cross-compiler works. 4280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4281 # <limits.h> exists even on freestanding compilers. 4282 # On the NeXT, cc -E runs the code through the compiler's parser, 4283 # not just through cpp. "Syntax error" is here to catch this case. 4284 cat >conftest.$ac_ext <<_ACEOF 4285/* confdefs.h. */ 4286_ACEOF 4287cat confdefs.h >>conftest.$ac_ext 4288cat >>conftest.$ac_ext <<_ACEOF 4289/* end confdefs.h. */ 4290#ifdef __STDC__ 4291# include <limits.h> 4292#else 4293# include <assert.h> 4294#endif 4295 Syntax error 4296_ACEOF 4297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4299 ac_status=$? 4300 grep -v '^ *+' conftest.er1 >conftest.err 4301 rm -f conftest.er1 4302 cat conftest.err >&5 4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4304 (exit $ac_status); } >/dev/null; then 4305 if test -s conftest.err; then 4306 ac_cpp_err=$ac_c_preproc_warn_flag 4307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4308 else 4309 ac_cpp_err= 4310 fi 4311else 4312 ac_cpp_err=yes 4313fi 4314if test -z "$ac_cpp_err"; then 4315 : 4316else 4317 echo "$as_me: failed program was:" >&5 4318sed 's/^/| /' conftest.$ac_ext >&5 4319 4320 # Broken: fails on valid input. 4321continue 4322fi 4323rm -f conftest.err conftest.$ac_ext 4324 4325 # OK, works on sane cases. Now check whether non-existent headers 4326 # can be detected and how. 4327 cat >conftest.$ac_ext <<_ACEOF 4328/* confdefs.h. */ 4329_ACEOF 4330cat confdefs.h >>conftest.$ac_ext 4331cat >>conftest.$ac_ext <<_ACEOF 4332/* end confdefs.h. */ 4333#include <ac_nonexistent.h> 4334_ACEOF 4335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4337 ac_status=$? 4338 grep -v '^ *+' conftest.er1 >conftest.err 4339 rm -f conftest.er1 4340 cat conftest.err >&5 4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4342 (exit $ac_status); } >/dev/null; then 4343 if test -s conftest.err; then 4344 ac_cpp_err=$ac_c_preproc_warn_flag 4345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4346 else 4347 ac_cpp_err= 4348 fi 4349else 4350 ac_cpp_err=yes 4351fi 4352if test -z "$ac_cpp_err"; then 4353 # Broken: success on invalid input. 4354continue 4355else 4356 echo "$as_me: failed program was:" >&5 4357sed 's/^/| /' conftest.$ac_ext >&5 4358 4359 # Passes both tests. 4360ac_preproc_ok=: 4361break 4362fi 4363rm -f conftest.err conftest.$ac_ext 4364 4365done 4366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4367rm -f conftest.err conftest.$ac_ext 4368if $ac_preproc_ok; then 4369 : 4370else 4371 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4372See \`config.log' for more details." >&5 4373echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4374See \`config.log' for more details." >&2;} 4375 { (exit 1); exit 1; }; } 4376fi 4377 4378ac_ext=c 4379ac_cpp='$CPP $CPPFLAGS' 4380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4382ac_compiler_gnu=$ac_cv_c_compiler_gnu 4383 4384 4385echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4386echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4387if test "${ac_cv_header_stdc+set}" = set; then 4388 echo $ECHO_N "(cached) $ECHO_C" >&6 4389else 4390 cat >conftest.$ac_ext <<_ACEOF 4391/* confdefs.h. */ 4392_ACEOF 4393cat confdefs.h >>conftest.$ac_ext 4394cat >>conftest.$ac_ext <<_ACEOF 4395/* end confdefs.h. */ 4396#include <stdlib.h> 4397#include <stdarg.h> 4398#include <string.h> 4399#include <float.h> 4400 4401int 4402main () 4403{ 4404 4405 ; 4406 return 0; 4407} 4408_ACEOF 4409rm -f conftest.$ac_objext 4410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4411 (eval $ac_compile) 2>conftest.er1 4412 ac_status=$? 4413 grep -v '^ *+' conftest.er1 >conftest.err 4414 rm -f conftest.er1 4415 cat conftest.err >&5 4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4417 (exit $ac_status); } && 4418 { ac_try='test -z "$ac_c_werror_flag" 4419 || test ! -s conftest.err' 4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4421 (eval $ac_try) 2>&5 4422 ac_status=$? 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); }; } && 4425 { ac_try='test -s conftest.$ac_objext' 4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4427 (eval $ac_try) 2>&5 4428 ac_status=$? 4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4430 (exit $ac_status); }; }; then 4431 ac_cv_header_stdc=yes 4432else 4433 echo "$as_me: failed program was:" >&5 4434sed 's/^/| /' conftest.$ac_ext >&5 4435 4436ac_cv_header_stdc=no 4437fi 4438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4439 4440if test $ac_cv_header_stdc = yes; then 4441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4442 cat >conftest.$ac_ext <<_ACEOF 4443/* confdefs.h. */ 4444_ACEOF 4445cat confdefs.h >>conftest.$ac_ext 4446cat >>conftest.$ac_ext <<_ACEOF 4447/* end confdefs.h. */ 4448#include <string.h> 4449 4450_ACEOF 4451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4452 $EGREP "memchr" >/dev/null 2>&1; then 4453 : 4454else 4455 ac_cv_header_stdc=no 4456fi 4457rm -f conftest* 4458 4459fi 4460 4461if test $ac_cv_header_stdc = yes; then 4462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4463 cat >conftest.$ac_ext <<_ACEOF 4464/* confdefs.h. */ 4465_ACEOF 4466cat confdefs.h >>conftest.$ac_ext 4467cat >>conftest.$ac_ext <<_ACEOF 4468/* end confdefs.h. */ 4469#include <stdlib.h> 4470 4471_ACEOF 4472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4473 $EGREP "free" >/dev/null 2>&1; then 4474 : 4475else 4476 ac_cv_header_stdc=no 4477fi 4478rm -f conftest* 4479 4480fi 4481 4482if test $ac_cv_header_stdc = yes; then 4483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4484 if test "$cross_compiling" = yes; then 4485 : 4486else 4487 cat >conftest.$ac_ext <<_ACEOF 4488/* confdefs.h. */ 4489_ACEOF 4490cat confdefs.h >>conftest.$ac_ext 4491cat >>conftest.$ac_ext <<_ACEOF 4492/* end confdefs.h. */ 4493#include <ctype.h> 4494#if ((' ' & 0x0FF) == 0x020) 4495# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4496# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4497#else 4498# define ISLOWER(c) \ 4499 (('a' <= (c) && (c) <= 'i') \ 4500 || ('j' <= (c) && (c) <= 'r') \ 4501 || ('s' <= (c) && (c) <= 'z')) 4502# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4503#endif 4504 4505#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4506int 4507main () 4508{ 4509 int i; 4510 for (i = 0; i < 256; i++) 4511 if (XOR (islower (i), ISLOWER (i)) 4512 || toupper (i) != TOUPPER (i)) 4513 exit(2); 4514 exit (0); 4515} 4516_ACEOF 4517rm -f conftest$ac_exeext 4518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4519 (eval $ac_link) 2>&5 4520 ac_status=$? 4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4524 (eval $ac_try) 2>&5 4525 ac_status=$? 4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4527 (exit $ac_status); }; }; then 4528 : 4529else 4530 echo "$as_me: program exited with status $ac_status" >&5 4531echo "$as_me: failed program was:" >&5 4532sed 's/^/| /' conftest.$ac_ext >&5 4533 4534( exit $ac_status ) 4535ac_cv_header_stdc=no 4536fi 4537rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4538fi 4539fi 4540fi 4541echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4542echo "${ECHO_T}$ac_cv_header_stdc" >&6 4543if test $ac_cv_header_stdc = yes; then 4544 4545cat >>confdefs.h <<\_ACEOF 4546#define STDC_HEADERS 1 4547_ACEOF 4548 4549fi 4550 4551# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4562 inttypes.h stdint.h unistd.h 4563do 4564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4565echo "$as_me:$LINENO: checking for $ac_header" >&5 4566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4567if eval "test \"\${$as_ac_Header+set}\" = set"; then 4568 echo $ECHO_N "(cached) $ECHO_C" >&6 4569else 4570 cat >conftest.$ac_ext <<_ACEOF 4571/* confdefs.h. */ 4572_ACEOF 4573cat confdefs.h >>conftest.$ac_ext 4574cat >>conftest.$ac_ext <<_ACEOF 4575/* end confdefs.h. */ 4576$ac_includes_default 4577 4578#include <$ac_header> 4579_ACEOF 4580rm -f conftest.$ac_objext 4581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4582 (eval $ac_compile) 2>conftest.er1 4583 ac_status=$? 4584 grep -v '^ *+' conftest.er1 >conftest.err 4585 rm -f conftest.er1 4586 cat conftest.err >&5 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); } && 4589 { ac_try='test -z "$ac_c_werror_flag" 4590 || test ! -s conftest.err' 4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4592 (eval $ac_try) 2>&5 4593 ac_status=$? 4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4595 (exit $ac_status); }; } && 4596 { ac_try='test -s conftest.$ac_objext' 4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4598 (eval $ac_try) 2>&5 4599 ac_status=$? 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); }; }; then 4602 eval "$as_ac_Header=yes" 4603else 4604 echo "$as_me: failed program was:" >&5 4605sed 's/^/| /' conftest.$ac_ext >&5 4606 4607eval "$as_ac_Header=no" 4608fi 4609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4610fi 4611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4613if test `eval echo '${'$as_ac_Header'}'` = yes; then 4614 cat >>confdefs.h <<_ACEOF 4615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4616_ACEOF 4617 4618fi 4619 4620done 4621 4622 4623 4624for ac_header in dlfcn.h 4625do 4626as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4627if eval "test \"\${$as_ac_Header+set}\" = set"; then 4628 echo "$as_me:$LINENO: checking for $ac_header" >&5 4629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4630if eval "test \"\${$as_ac_Header+set}\" = set"; then 4631 echo $ECHO_N "(cached) $ECHO_C" >&6 4632fi 4633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4635else 4636 # Is the header compilable? 4637echo "$as_me:$LINENO: checking $ac_header usability" >&5 4638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4639cat >conftest.$ac_ext <<_ACEOF 4640/* confdefs.h. */ 4641_ACEOF 4642cat confdefs.h >>conftest.$ac_ext 4643cat >>conftest.$ac_ext <<_ACEOF 4644/* end confdefs.h. */ 4645$ac_includes_default 4646#include <$ac_header> 4647_ACEOF 4648rm -f conftest.$ac_objext 4649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4650 (eval $ac_compile) 2>conftest.er1 4651 ac_status=$? 4652 grep -v '^ *+' conftest.er1 >conftest.err 4653 rm -f conftest.er1 4654 cat conftest.err >&5 4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4656 (exit $ac_status); } && 4657 { ac_try='test -z "$ac_c_werror_flag" 4658 || test ! -s conftest.err' 4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4660 (eval $ac_try) 2>&5 4661 ac_status=$? 4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4663 (exit $ac_status); }; } && 4664 { ac_try='test -s conftest.$ac_objext' 4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4666 (eval $ac_try) 2>&5 4667 ac_status=$? 4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4669 (exit $ac_status); }; }; then 4670 ac_header_compiler=yes 4671else 4672 echo "$as_me: failed program was:" >&5 4673sed 's/^/| /' conftest.$ac_ext >&5 4674 4675ac_header_compiler=no 4676fi 4677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4678echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4679echo "${ECHO_T}$ac_header_compiler" >&6 4680 4681# Is the header present? 4682echo "$as_me:$LINENO: checking $ac_header presence" >&5 4683echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4684cat >conftest.$ac_ext <<_ACEOF 4685/* confdefs.h. */ 4686_ACEOF 4687cat confdefs.h >>conftest.$ac_ext 4688cat >>conftest.$ac_ext <<_ACEOF 4689/* end confdefs.h. */ 4690#include <$ac_header> 4691_ACEOF 4692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4694 ac_status=$? 4695 grep -v '^ *+' conftest.er1 >conftest.err 4696 rm -f conftest.er1 4697 cat conftest.err >&5 4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4699 (exit $ac_status); } >/dev/null; then 4700 if test -s conftest.err; then 4701 ac_cpp_err=$ac_c_preproc_warn_flag 4702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4703 else 4704 ac_cpp_err= 4705 fi 4706else 4707 ac_cpp_err=yes 4708fi 4709if test -z "$ac_cpp_err"; then 4710 ac_header_preproc=yes 4711else 4712 echo "$as_me: failed program was:" >&5 4713sed 's/^/| /' conftest.$ac_ext >&5 4714 4715 ac_header_preproc=no 4716fi 4717rm -f conftest.err conftest.$ac_ext 4718echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4719echo "${ECHO_T}$ac_header_preproc" >&6 4720 4721# So? What about this header? 4722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4723 yes:no: ) 4724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4725echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4727echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4728 ac_header_preproc=yes 4729 ;; 4730 no:yes:* ) 4731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4732echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4734echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4736echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4738echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4740echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4742echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4743 ( 4744 cat <<\_ASBOX 4745## ------------------------------------------ ## 4746## Report this to the AC_PACKAGE_NAME lists. ## 4747## ------------------------------------------ ## 4748_ASBOX 4749 ) | 4750 sed "s/^/$as_me: WARNING: /" >&2 4751 ;; 4752esac 4753echo "$as_me:$LINENO: checking for $ac_header" >&5 4754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4755if eval "test \"\${$as_ac_Header+set}\" = set"; then 4756 echo $ECHO_N "(cached) $ECHO_C" >&6 4757else 4758 eval "$as_ac_Header=\$ac_header_preproc" 4759fi 4760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4762 4763fi 4764if test `eval echo '${'$as_ac_Header'}'` = yes; then 4765 cat >>confdefs.h <<_ACEOF 4766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4767_ACEOF 4768 4769fi 4770 4771done 4772 4773ac_ext=cc 4774ac_cpp='$CXXCPP $CPPFLAGS' 4775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4778if test -n "$ac_tool_prefix"; then 4779 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4780 do 4781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4782set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4783echo "$as_me:$LINENO: checking for $ac_word" >&5 4784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4785if test "${ac_cv_prog_CXX+set}" = set; then 4786 echo $ECHO_N "(cached) $ECHO_C" >&6 4787else 4788 if test -n "$CXX"; then 4789 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4790else 4791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4792for as_dir in $PATH 4793do 4794 IFS=$as_save_IFS 4795 test -z "$as_dir" && as_dir=. 4796 for ac_exec_ext in '' $ac_executable_extensions; do 4797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4798 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4800 break 2 4801 fi 4802done 4803done 4804 4805fi 4806fi 4807CXX=$ac_cv_prog_CXX 4808if test -n "$CXX"; then 4809 echo "$as_me:$LINENO: result: $CXX" >&5 4810echo "${ECHO_T}$CXX" >&6 4811else 4812 echo "$as_me:$LINENO: result: no" >&5 4813echo "${ECHO_T}no" >&6 4814fi 4815 4816 test -n "$CXX" && break 4817 done 4818fi 4819if test -z "$CXX"; then 4820 ac_ct_CXX=$CXX 4821 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4822do 4823 # Extract the first word of "$ac_prog", so it can be a program name with args. 4824set dummy $ac_prog; ac_word=$2 4825echo "$as_me:$LINENO: checking for $ac_word" >&5 4826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4827if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4828 echo $ECHO_N "(cached) $ECHO_C" >&6 4829else 4830 if test -n "$ac_ct_CXX"; then 4831 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4832else 4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4834for as_dir in $PATH 4835do 4836 IFS=$as_save_IFS 4837 test -z "$as_dir" && as_dir=. 4838 for ac_exec_ext in '' $ac_executable_extensions; do 4839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4840 ac_cv_prog_ac_ct_CXX="$ac_prog" 4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4842 break 2 4843 fi 4844done 4845done 4846 4847fi 4848fi 4849ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4850if test -n "$ac_ct_CXX"; then 4851 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4852echo "${ECHO_T}$ac_ct_CXX" >&6 4853else 4854 echo "$as_me:$LINENO: result: no" >&5 4855echo "${ECHO_T}no" >&6 4856fi 4857 4858 test -n "$ac_ct_CXX" && break 4859done 4860test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4861 4862 CXX=$ac_ct_CXX 4863fi 4864 4865 4866# Provide some information about the compiler. 4867echo "$as_me:$LINENO:" \ 4868 "checking for C++ compiler version" >&5 4869ac_compiler=`set X $ac_compile; echo $2` 4870{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4871 (eval $ac_compiler --version </dev/null >&5) 2>&5 4872 ac_status=$? 4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4874 (exit $ac_status); } 4875{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4876 (eval $ac_compiler -v </dev/null >&5) 2>&5 4877 ac_status=$? 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); } 4880{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4881 (eval $ac_compiler -V </dev/null >&5) 2>&5 4882 ac_status=$? 4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4884 (exit $ac_status); } 4885 4886echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4887echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4888if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4889 echo $ECHO_N "(cached) $ECHO_C" >&6 4890else 4891 cat >conftest.$ac_ext <<_ACEOF 4892/* confdefs.h. */ 4893_ACEOF 4894cat confdefs.h >>conftest.$ac_ext 4895cat >>conftest.$ac_ext <<_ACEOF 4896/* end confdefs.h. */ 4897 4898int 4899main () 4900{ 4901#ifndef __GNUC__ 4902 choke me 4903#endif 4904 4905 ; 4906 return 0; 4907} 4908_ACEOF 4909rm -f conftest.$ac_objext 4910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4911 (eval $ac_compile) 2>conftest.er1 4912 ac_status=$? 4913 grep -v '^ *+' conftest.er1 >conftest.err 4914 rm -f conftest.er1 4915 cat conftest.err >&5 4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4917 (exit $ac_status); } && 4918 { ac_try='test -z "$ac_cxx_werror_flag" 4919 || test ! -s conftest.err' 4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4921 (eval $ac_try) 2>&5 4922 ac_status=$? 4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4924 (exit $ac_status); }; } && 4925 { ac_try='test -s conftest.$ac_objext' 4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4927 (eval $ac_try) 2>&5 4928 ac_status=$? 4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4930 (exit $ac_status); }; }; then 4931 ac_compiler_gnu=yes 4932else 4933 echo "$as_me: failed program was:" >&5 4934sed 's/^/| /' conftest.$ac_ext >&5 4935 4936ac_compiler_gnu=no 4937fi 4938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4939ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4940 4941fi 4942echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4943echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4944GXX=`test $ac_compiler_gnu = yes && echo yes` 4945ac_test_CXXFLAGS=${CXXFLAGS+set} 4946ac_save_CXXFLAGS=$CXXFLAGS 4947CXXFLAGS="-g" 4948echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4949echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4950if test "${ac_cv_prog_cxx_g+set}" = set; then 4951 echo $ECHO_N "(cached) $ECHO_C" >&6 4952else 4953 cat >conftest.$ac_ext <<_ACEOF 4954/* confdefs.h. */ 4955_ACEOF 4956cat confdefs.h >>conftest.$ac_ext 4957cat >>conftest.$ac_ext <<_ACEOF 4958/* end confdefs.h. */ 4959 4960int 4961main () 4962{ 4963 4964 ; 4965 return 0; 4966} 4967_ACEOF 4968rm -f conftest.$ac_objext 4969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4970 (eval $ac_compile) 2>conftest.er1 4971 ac_status=$? 4972 grep -v '^ *+' conftest.er1 >conftest.err 4973 rm -f conftest.er1 4974 cat conftest.err >&5 4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4976 (exit $ac_status); } && 4977 { ac_try='test -z "$ac_cxx_werror_flag" 4978 || test ! -s conftest.err' 4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4980 (eval $ac_try) 2>&5 4981 ac_status=$? 4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4983 (exit $ac_status); }; } && 4984 { ac_try='test -s conftest.$ac_objext' 4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4986 (eval $ac_try) 2>&5 4987 ac_status=$? 4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4989 (exit $ac_status); }; }; then 4990 ac_cv_prog_cxx_g=yes 4991else 4992 echo "$as_me: failed program was:" >&5 4993sed 's/^/| /' conftest.$ac_ext >&5 4994 4995ac_cv_prog_cxx_g=no 4996fi 4997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4998fi 4999echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5000echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5001if test "$ac_test_CXXFLAGS" = set; then 5002 CXXFLAGS=$ac_save_CXXFLAGS 5003elif test $ac_cv_prog_cxx_g = yes; then 5004 if test "$GXX" = yes; then 5005 CXXFLAGS="-g -O2" 5006 else 5007 CXXFLAGS="-g" 5008 fi 5009else 5010 if test "$GXX" = yes; then 5011 CXXFLAGS="-O2" 5012 else 5013 CXXFLAGS= 5014 fi 5015fi 5016for ac_declaration in \ 5017 '' \ 5018 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5019 'extern "C" void std::exit (int); using std::exit;' \ 5020 'extern "C" void exit (int) throw ();' \ 5021 'extern "C" void exit (int);' \ 5022 'void exit (int);' 5023do 5024 cat >conftest.$ac_ext <<_ACEOF 5025/* confdefs.h. */ 5026_ACEOF 5027cat confdefs.h >>conftest.$ac_ext 5028cat >>conftest.$ac_ext <<_ACEOF 5029/* end confdefs.h. */ 5030$ac_declaration 5031#include <stdlib.h> 5032int 5033main () 5034{ 5035exit (42); 5036 ; 5037 return 0; 5038} 5039_ACEOF 5040rm -f conftest.$ac_objext 5041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5042 (eval $ac_compile) 2>conftest.er1 5043 ac_status=$? 5044 grep -v '^ *+' conftest.er1 >conftest.err 5045 rm -f conftest.er1 5046 cat conftest.err >&5 5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5048 (exit $ac_status); } && 5049 { ac_try='test -z "$ac_cxx_werror_flag" 5050 || test ! -s conftest.err' 5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5052 (eval $ac_try) 2>&5 5053 ac_status=$? 5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5055 (exit $ac_status); }; } && 5056 { ac_try='test -s conftest.$ac_objext' 5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5058 (eval $ac_try) 2>&5 5059 ac_status=$? 5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); }; }; then 5062 : 5063else 5064 echo "$as_me: failed program was:" >&5 5065sed 's/^/| /' conftest.$ac_ext >&5 5066 5067continue 5068fi 5069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5070 cat >conftest.$ac_ext <<_ACEOF 5071/* confdefs.h. */ 5072_ACEOF 5073cat confdefs.h >>conftest.$ac_ext 5074cat >>conftest.$ac_ext <<_ACEOF 5075/* end confdefs.h. */ 5076$ac_declaration 5077int 5078main () 5079{ 5080exit (42); 5081 ; 5082 return 0; 5083} 5084_ACEOF 5085rm -f conftest.$ac_objext 5086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5087 (eval $ac_compile) 2>conftest.er1 5088 ac_status=$? 5089 grep -v '^ *+' conftest.er1 >conftest.err 5090 rm -f conftest.er1 5091 cat conftest.err >&5 5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5093 (exit $ac_status); } && 5094 { ac_try='test -z "$ac_cxx_werror_flag" 5095 || test ! -s conftest.err' 5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5097 (eval $ac_try) 2>&5 5098 ac_status=$? 5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5100 (exit $ac_status); }; } && 5101 { ac_try='test -s conftest.$ac_objext' 5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5103 (eval $ac_try) 2>&5 5104 ac_status=$? 5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5106 (exit $ac_status); }; }; then 5107 break 5108else 5109 echo "$as_me: failed program was:" >&5 5110sed 's/^/| /' conftest.$ac_ext >&5 5111 5112fi 5113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5114done 5115rm -f conftest* 5116if test -n "$ac_declaration"; then 5117 echo '#ifdef __cplusplus' >>confdefs.h 5118 echo $ac_declaration >>confdefs.h 5119 echo '#endif' >>confdefs.h 5120fi 5121 5122ac_ext=cc 5123ac_cpp='$CXXCPP $CPPFLAGS' 5124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5127 5128 5129 5130if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5131 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5132 (test "X$CXX" != "Xg++"))) ; then 5133 ac_ext=cc 5134ac_cpp='$CXXCPP $CPPFLAGS' 5135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5138echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5139echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5140if test -z "$CXXCPP"; then 5141 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5142 echo $ECHO_N "(cached) $ECHO_C" >&6 5143else 5144 # Double quotes because CXXCPP needs to be expanded 5145 for CXXCPP in "$CXX -E" "/lib/cpp" 5146 do 5147 ac_preproc_ok=false 5148for ac_cxx_preproc_warn_flag in '' yes 5149do 5150 # Use a header file that comes with gcc, so configuring glibc 5151 # with a fresh cross-compiler works. 5152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5153 # <limits.h> exists even on freestanding compilers. 5154 # On the NeXT, cc -E runs the code through the compiler's parser, 5155 # not just through cpp. "Syntax error" is here to catch this case. 5156 cat >conftest.$ac_ext <<_ACEOF 5157/* confdefs.h. */ 5158_ACEOF 5159cat confdefs.h >>conftest.$ac_ext 5160cat >>conftest.$ac_ext <<_ACEOF 5161/* end confdefs.h. */ 5162#ifdef __STDC__ 5163# include <limits.h> 5164#else 5165# include <assert.h> 5166#endif 5167 Syntax error 5168_ACEOF 5169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5171 ac_status=$? 5172 grep -v '^ *+' conftest.er1 >conftest.err 5173 rm -f conftest.er1 5174 cat conftest.err >&5 5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5176 (exit $ac_status); } >/dev/null; then 5177 if test -s conftest.err; then 5178 ac_cpp_err=$ac_cxx_preproc_warn_flag 5179 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5180 else 5181 ac_cpp_err= 5182 fi 5183else 5184 ac_cpp_err=yes 5185fi 5186if test -z "$ac_cpp_err"; then 5187 : 5188else 5189 echo "$as_me: failed program was:" >&5 5190sed 's/^/| /' conftest.$ac_ext >&5 5191 5192 # Broken: fails on valid input. 5193continue 5194fi 5195rm -f conftest.err conftest.$ac_ext 5196 5197 # OK, works on sane cases. Now check whether non-existent headers 5198 # can be detected and how. 5199 cat >conftest.$ac_ext <<_ACEOF 5200/* confdefs.h. */ 5201_ACEOF 5202cat confdefs.h >>conftest.$ac_ext 5203cat >>conftest.$ac_ext <<_ACEOF 5204/* end confdefs.h. */ 5205#include <ac_nonexistent.h> 5206_ACEOF 5207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5209 ac_status=$? 5210 grep -v '^ *+' conftest.er1 >conftest.err 5211 rm -f conftest.er1 5212 cat conftest.err >&5 5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5214 (exit $ac_status); } >/dev/null; then 5215 if test -s conftest.err; then 5216 ac_cpp_err=$ac_cxx_preproc_warn_flag 5217 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5218 else 5219 ac_cpp_err= 5220 fi 5221else 5222 ac_cpp_err=yes 5223fi 5224if test -z "$ac_cpp_err"; then 5225 # Broken: success on invalid input. 5226continue 5227else 5228 echo "$as_me: failed program was:" >&5 5229sed 's/^/| /' conftest.$ac_ext >&5 5230 5231 # Passes both tests. 5232ac_preproc_ok=: 5233break 5234fi 5235rm -f conftest.err conftest.$ac_ext 5236 5237done 5238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5239rm -f conftest.err conftest.$ac_ext 5240if $ac_preproc_ok; then 5241 break 5242fi 5243 5244 done 5245 ac_cv_prog_CXXCPP=$CXXCPP 5246 5247fi 5248 CXXCPP=$ac_cv_prog_CXXCPP 5249else 5250 ac_cv_prog_CXXCPP=$CXXCPP 5251fi 5252echo "$as_me:$LINENO: result: $CXXCPP" >&5 5253echo "${ECHO_T}$CXXCPP" >&6 5254ac_preproc_ok=false 5255for ac_cxx_preproc_warn_flag in '' yes 5256do 5257 # Use a header file that comes with gcc, so configuring glibc 5258 # with a fresh cross-compiler works. 5259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5260 # <limits.h> exists even on freestanding compilers. 5261 # On the NeXT, cc -E runs the code through the compiler's parser, 5262 # not just through cpp. "Syntax error" is here to catch this case. 5263 cat >conftest.$ac_ext <<_ACEOF 5264/* confdefs.h. */ 5265_ACEOF 5266cat confdefs.h >>conftest.$ac_ext 5267cat >>conftest.$ac_ext <<_ACEOF 5268/* end confdefs.h. */ 5269#ifdef __STDC__ 5270# include <limits.h> 5271#else 5272# include <assert.h> 5273#endif 5274 Syntax error 5275_ACEOF 5276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5278 ac_status=$? 5279 grep -v '^ *+' conftest.er1 >conftest.err 5280 rm -f conftest.er1 5281 cat conftest.err >&5 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); } >/dev/null; then 5284 if test -s conftest.err; then 5285 ac_cpp_err=$ac_cxx_preproc_warn_flag 5286 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5287 else 5288 ac_cpp_err= 5289 fi 5290else 5291 ac_cpp_err=yes 5292fi 5293if test -z "$ac_cpp_err"; then 5294 : 5295else 5296 echo "$as_me: failed program was:" >&5 5297sed 's/^/| /' conftest.$ac_ext >&5 5298 5299 # Broken: fails on valid input. 5300continue 5301fi 5302rm -f conftest.err conftest.$ac_ext 5303 5304 # OK, works on sane cases. Now check whether non-existent headers 5305 # can be detected and how. 5306 cat >conftest.$ac_ext <<_ACEOF 5307/* confdefs.h. */ 5308_ACEOF 5309cat confdefs.h >>conftest.$ac_ext 5310cat >>conftest.$ac_ext <<_ACEOF 5311/* end confdefs.h. */ 5312#include <ac_nonexistent.h> 5313_ACEOF 5314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5316 ac_status=$? 5317 grep -v '^ *+' conftest.er1 >conftest.err 5318 rm -f conftest.er1 5319 cat conftest.err >&5 5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5321 (exit $ac_status); } >/dev/null; then 5322 if test -s conftest.err; then 5323 ac_cpp_err=$ac_cxx_preproc_warn_flag 5324 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5325 else 5326 ac_cpp_err= 5327 fi 5328else 5329 ac_cpp_err=yes 5330fi 5331if test -z "$ac_cpp_err"; then 5332 # Broken: success on invalid input. 5333continue 5334else 5335 echo "$as_me: failed program was:" >&5 5336sed 's/^/| /' conftest.$ac_ext >&5 5337 5338 # Passes both tests. 5339ac_preproc_ok=: 5340break 5341fi 5342rm -f conftest.err conftest.$ac_ext 5343 5344done 5345# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5346rm -f conftest.err conftest.$ac_ext 5347if $ac_preproc_ok; then 5348 : 5349else 5350 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5351See \`config.log' for more details." >&5 5352echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5353See \`config.log' for more details." >&2;} 5354 { (exit 1); exit 1; }; } 5355fi 5356 5357ac_ext=cc 5358ac_cpp='$CXXCPP $CPPFLAGS' 5359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5362 5363fi 5364 5365 5366ac_ext=f 5367ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5368ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5369ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5370if test -n "$ac_tool_prefix"; then 5371 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5372 do 5373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5374set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5375echo "$as_me:$LINENO: checking for $ac_word" >&5 5376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5377if test "${ac_cv_prog_F77+set}" = set; then 5378 echo $ECHO_N "(cached) $ECHO_C" >&6 5379else 5380 if test -n "$F77"; then 5381 ac_cv_prog_F77="$F77" # Let the user override the test. 5382else 5383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5384for as_dir in $PATH 5385do 5386 IFS=$as_save_IFS 5387 test -z "$as_dir" && as_dir=. 5388 for ac_exec_ext in '' $ac_executable_extensions; do 5389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5390 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5392 break 2 5393 fi 5394done 5395done 5396 5397fi 5398fi 5399F77=$ac_cv_prog_F77 5400if test -n "$F77"; then 5401 echo "$as_me:$LINENO: result: $F77" >&5 5402echo "${ECHO_T}$F77" >&6 5403else 5404 echo "$as_me:$LINENO: result: no" >&5 5405echo "${ECHO_T}no" >&6 5406fi 5407 5408 test -n "$F77" && break 5409 done 5410fi 5411if test -z "$F77"; then 5412 ac_ct_F77=$F77 5413 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5414do 5415 # Extract the first word of "$ac_prog", so it can be a program name with args. 5416set dummy $ac_prog; ac_word=$2 5417echo "$as_me:$LINENO: checking for $ac_word" >&5 5418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5419if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5420 echo $ECHO_N "(cached) $ECHO_C" >&6 5421else 5422 if test -n "$ac_ct_F77"; then 5423 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5424else 5425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5426for as_dir in $PATH 5427do 5428 IFS=$as_save_IFS 5429 test -z "$as_dir" && as_dir=. 5430 for ac_exec_ext in '' $ac_executable_extensions; do 5431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5432 ac_cv_prog_ac_ct_F77="$ac_prog" 5433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5434 break 2 5435 fi 5436done 5437done 5438 5439fi 5440fi 5441ac_ct_F77=$ac_cv_prog_ac_ct_F77 5442if test -n "$ac_ct_F77"; then 5443 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5444echo "${ECHO_T}$ac_ct_F77" >&6 5445else 5446 echo "$as_me:$LINENO: result: no" >&5 5447echo "${ECHO_T}no" >&6 5448fi 5449 5450 test -n "$ac_ct_F77" && break 5451done 5452 5453 F77=$ac_ct_F77 5454fi 5455 5456 5457# Provide some information about the compiler. 5458echo "$as_me:5458:" \ 5459 "checking for Fortran 77 compiler version" >&5 5460ac_compiler=`set X $ac_compile; echo $2` 5461{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5462 (eval $ac_compiler --version </dev/null >&5) 2>&5 5463 ac_status=$? 5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5465 (exit $ac_status); } 5466{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5467 (eval $ac_compiler -v </dev/null >&5) 2>&5 5468 ac_status=$? 5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5470 (exit $ac_status); } 5471{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5472 (eval $ac_compiler -V </dev/null >&5) 2>&5 5473 ac_status=$? 5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5475 (exit $ac_status); } 5476rm -f a.out 5477 5478# If we don't use `.F' as extension, the preprocessor is not run on the 5479# input file. (Note that this only needs to work for GNU compilers.) 5480ac_save_ext=$ac_ext 5481ac_ext=F 5482echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5483echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5484if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5485 echo $ECHO_N "(cached) $ECHO_C" >&6 5486else 5487 cat >conftest.$ac_ext <<_ACEOF 5488 program main 5489#ifndef __GNUC__ 5490 choke me 5491#endif 5492 5493 end 5494_ACEOF 5495rm -f conftest.$ac_objext 5496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5497 (eval $ac_compile) 2>conftest.er1 5498 ac_status=$? 5499 grep -v '^ *+' conftest.er1 >conftest.err 5500 rm -f conftest.er1 5501 cat conftest.err >&5 5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5503 (exit $ac_status); } && 5504 { ac_try='test -z "$ac_f77_werror_flag" 5505 || test ! -s conftest.err' 5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5507 (eval $ac_try) 2>&5 5508 ac_status=$? 5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5510 (exit $ac_status); }; } && 5511 { ac_try='test -s conftest.$ac_objext' 5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5513 (eval $ac_try) 2>&5 5514 ac_status=$? 5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5516 (exit $ac_status); }; }; then 5517 ac_compiler_gnu=yes 5518else 5519 echo "$as_me: failed program was:" >&5 5520sed 's/^/| /' conftest.$ac_ext >&5 5521 5522ac_compiler_gnu=no 5523fi 5524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5525ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5526 5527fi 5528echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5529echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5530ac_ext=$ac_save_ext 5531ac_test_FFLAGS=${FFLAGS+set} 5532ac_save_FFLAGS=$FFLAGS 5533FFLAGS= 5534echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5535echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5536if test "${ac_cv_prog_f77_g+set}" = set; then 5537 echo $ECHO_N "(cached) $ECHO_C" >&6 5538else 5539 FFLAGS=-g 5540cat >conftest.$ac_ext <<_ACEOF 5541 program main 5542 5543 end 5544_ACEOF 5545rm -f conftest.$ac_objext 5546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5547 (eval $ac_compile) 2>conftest.er1 5548 ac_status=$? 5549 grep -v '^ *+' conftest.er1 >conftest.err 5550 rm -f conftest.er1 5551 cat conftest.err >&5 5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5553 (exit $ac_status); } && 5554 { ac_try='test -z "$ac_f77_werror_flag" 5555 || test ! -s conftest.err' 5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5557 (eval $ac_try) 2>&5 5558 ac_status=$? 5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5560 (exit $ac_status); }; } && 5561 { ac_try='test -s conftest.$ac_objext' 5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5563 (eval $ac_try) 2>&5 5564 ac_status=$? 5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5566 (exit $ac_status); }; }; then 5567 ac_cv_prog_f77_g=yes 5568else 5569 echo "$as_me: failed program was:" >&5 5570sed 's/^/| /' conftest.$ac_ext >&5 5571 5572ac_cv_prog_f77_g=no 5573fi 5574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5575 5576fi 5577echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5578echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5579if test "$ac_test_FFLAGS" = set; then 5580 FFLAGS=$ac_save_FFLAGS 5581elif test $ac_cv_prog_f77_g = yes; then 5582 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5583 FFLAGS="-g -O2" 5584 else 5585 FFLAGS="-g" 5586 fi 5587else 5588 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5589 FFLAGS="-O2" 5590 else 5591 FFLAGS= 5592 fi 5593fi 5594 5595G77=`test $ac_compiler_gnu = yes && echo yes` 5596ac_ext=c 5597ac_cpp='$CPP $CPPFLAGS' 5598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5600ac_compiler_gnu=$ac_cv_c_compiler_gnu 5601 5602 5603 5604# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5605 5606# find the maximum length of command line arguments 5607echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5608echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5609if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5610 echo $ECHO_N "(cached) $ECHO_C" >&6 5611else 5612 i=0 5613 teststring="ABCD" 5614 5615 case $build_os in 5616 msdosdjgpp*) 5617 # On DJGPP, this test can blow up pretty badly due to problems in libc 5618 # (any single argument exceeding 2000 bytes causes a buffer overrun 5619 # during glob expansion). Even if it were fixed, the result of this 5620 # check would be larger than it should be. 5621 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5622 ;; 5623 5624 gnu*) 5625 # Under GNU Hurd, this test is not required because there is 5626 # no limit to the length of command line arguments. 5627 # Libtool will interpret -1 as no limit whatsoever 5628 lt_cv_sys_max_cmd_len=-1; 5629 ;; 5630 5631 cygwin* | mingw*) 5632 # On Win9x/ME, this test blows up -- it succeeds, but takes 5633 # about 5 minutes as the teststring grows exponentially. 5634 # Worse, since 9x/ME are not pre-emptively multitasking, 5635 # you end up with a "frozen" computer, even though with patience 5636 # the test eventually succeeds (with a max line length of 256k). 5637 # Instead, let's just punt: use the minimum linelength reported by 5638 # all of the supported platforms: 8192 (on NT/2K/XP). 5639 lt_cv_sys_max_cmd_len=8192; 5640 ;; 5641 5642 amigaos*) 5643 # On AmigaOS with pdksh, this test takes hours, literally. 5644 # So we just punt and use a minimum line length of 8192. 5645 lt_cv_sys_max_cmd_len=8192; 5646 ;; 5647 5648 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5649 # This has been around since 386BSD, at least. Likely further. 5650 if test -x /sbin/sysctl; then 5651 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5652 elif test -x /usr/sbin/sysctl; then 5653 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5654 else 5655 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5656 fi 5657 # And add a safety zone 5658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5660 ;; 5661 osf*) 5662 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5663 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5664 # nice to cause kernel panics so lets avoid the loop below. 5665 # First set a reasonable default. 5666 lt_cv_sys_max_cmd_len=16384 5667 # 5668 if test -x /sbin/sysconfig; then 5669 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5670 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5671 esac 5672 fi 5673 ;; 5674 *) 5675 # If test is not a shell built-in, we'll probably end up computing a 5676 # maximum length that is only half of the actual maximum length, but 5677 # we can't tell. 5678 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5679 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5680 = "XX$teststring") >/dev/null 2>&1 && 5681 new_result=`expr "X$teststring" : ".*" 2>&1` && 5682 lt_cv_sys_max_cmd_len=$new_result && 5683 test $i != 17 # 1/2 MB should be enough 5684 do 5685 i=`expr $i + 1` 5686 teststring=$teststring$teststring 5687 done 5688 teststring= 5689 # Add a significant safety factor because C++ compilers can tack on massive 5690 # amounts of additional arguments before passing them to the linker. 5691 # It appears as though 1/2 is a usable value. 5692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5693 ;; 5694 esac 5695 5696fi 5697 5698if test -n $lt_cv_sys_max_cmd_len ; then 5699 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5700echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5701else 5702 echo "$as_me:$LINENO: result: none" >&5 5703echo "${ECHO_T}none" >&6 5704fi 5705 5706 5707 5708 5709# Check for command to grab the raw symbol name followed by C symbol from nm. 5710echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5711echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5712if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5713 echo $ECHO_N "(cached) $ECHO_C" >&6 5714else 5715 5716# These are sane defaults that work on at least a few old systems. 5717# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5718 5719# Character class describing NM global symbol codes. 5720symcode='[BCDEGRST]' 5721 5722# Regexp to match symbols that can be accessed directly from C. 5723sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5724 5725# Transform an extracted symbol line into a proper C declaration 5726lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5727 5728# Transform an extracted symbol line into symbol name and symbol address 5729lt_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'" 5730 5731# Define system-specific variables. 5732case $host_os in 5733aix*) 5734 symcode='[BCDT]' 5735 ;; 5736cygwin* | mingw* | pw32*) 5737 symcode='[ABCDGISTW]' 5738 ;; 5739hpux*) # Its linker distinguishes data from code symbols 5740 if test "$host_cpu" = ia64; then 5741 symcode='[ABCDEGRST]' 5742 fi 5743 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5744 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'" 5745 ;; 5746linux*) 5747 if test "$host_cpu" = ia64; then 5748 symcode='[ABCDGIRSTW]' 5749 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5750 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'" 5751 fi 5752 ;; 5753irix* | nonstopux*) 5754 symcode='[BCDEGRST]' 5755 ;; 5756osf*) 5757 symcode='[BCDEGQRST]' 5758 ;; 5759solaris* | sysv5*) 5760 symcode='[BDRT]' 5761 ;; 5762sysv4) 5763 symcode='[DFNSTU]' 5764 ;; 5765esac 5766 5767# Handle CRLF in mingw tool chain 5768opt_cr= 5769case $build_os in 5770mingw*) 5771 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5772 ;; 5773esac 5774 5775# If we're using GNU nm, then use its standard symbol codes. 5776case `$NM -V 2>&1` in 5777*GNU* | *'with BFD'*) 5778 symcode='[ABCDGIRSTW]' ;; 5779esac 5780 5781# Try without a prefix undercore, then with it. 5782for ac_symprfx in "" "_"; do 5783 5784 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5785 symxfrm="\\1 $ac_symprfx\\2 \\2" 5786 5787 # Write the raw and C identifiers. 5788 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5789 5790 # Check to see that the pipe works correctly. 5791 pipe_works=no 5792 5793 rm -f conftest* 5794 cat > conftest.$ac_ext <<EOF 5795#ifdef __cplusplus 5796extern "C" { 5797#endif 5798char nm_test_var; 5799void nm_test_func(){} 5800#ifdef __cplusplus 5801} 5802#endif 5803int main(){nm_test_var='a';nm_test_func();return(0);} 5804EOF 5805 5806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5807 (eval $ac_compile) 2>&5 5808 ac_status=$? 5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5810 (exit $ac_status); }; then 5811 # Now try to grab the symbols. 5812 nlist=conftest.nm 5813 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5814 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5815 ac_status=$? 5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5817 (exit $ac_status); } && test -s "$nlist"; then 5818 # Try sorting and uniquifying the output. 5819 if sort "$nlist" | uniq > "$nlist"T; then 5820 mv -f "$nlist"T "$nlist" 5821 else 5822 rm -f "$nlist"T 5823 fi 5824 5825 # Make sure that we snagged all the symbols we need. 5826 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5827 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5828 cat <<EOF > conftest.$ac_ext 5829#ifdef __cplusplus 5830extern "C" { 5831#endif 5832 5833EOF 5834 # Now generate the symbol file. 5835 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5836 5837 cat <<EOF >> conftest.$ac_ext 5838#if defined (__STDC__) && __STDC__ 5839# define lt_ptr_t void * 5840#else 5841# define lt_ptr_t char * 5842# define const 5843#endif 5844 5845/* The mapping between symbol names and symbols. */ 5846const struct { 5847 const char *name; 5848 lt_ptr_t address; 5849} 5850lt_preloaded_symbols[] = 5851{ 5852EOF 5853 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5854 cat <<\EOF >> conftest.$ac_ext 5855 {0, (lt_ptr_t) 0} 5856}; 5857 5858#ifdef __cplusplus 5859} 5860#endif 5861EOF 5862 # Now try linking the two files. 5863 mv conftest.$ac_objext conftstm.$ac_objext 5864 lt_save_LIBS="$LIBS" 5865 lt_save_CFLAGS="$CFLAGS" 5866 LIBS="conftstm.$ac_objext" 5867 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5869 (eval $ac_link) 2>&5 5870 ac_status=$? 5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5872 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5873 pipe_works=yes 5874 fi 5875 LIBS="$lt_save_LIBS" 5876 CFLAGS="$lt_save_CFLAGS" 5877 else 5878 echo "cannot find nm_test_func in $nlist" >&5 5879 fi 5880 else 5881 echo "cannot find nm_test_var in $nlist" >&5 5882 fi 5883 else 5884 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5885 fi 5886 else 5887 echo "$progname: failed program was:" >&5 5888 cat conftest.$ac_ext >&5 5889 fi 5890 rm -f conftest* conftst* 5891 5892 # Do not use the global_symbol_pipe unless it works. 5893 if test "$pipe_works" = yes; then 5894 break 5895 else 5896 lt_cv_sys_global_symbol_pipe= 5897 fi 5898done 5899 5900fi 5901 5902if test -z "$lt_cv_sys_global_symbol_pipe"; then 5903 lt_cv_sys_global_symbol_to_cdecl= 5904fi 5905if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5906 echo "$as_me:$LINENO: result: failed" >&5 5907echo "${ECHO_T}failed" >&6 5908else 5909 echo "$as_me:$LINENO: result: ok" >&5 5910echo "${ECHO_T}ok" >&6 5911fi 5912 5913echo "$as_me:$LINENO: checking for objdir" >&5 5914echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5915if test "${lt_cv_objdir+set}" = set; then 5916 echo $ECHO_N "(cached) $ECHO_C" >&6 5917else 5918 rm -f .libs 2>/dev/null 5919mkdir .libs 2>/dev/null 5920if test -d .libs; then 5921 lt_cv_objdir=.libs 5922else 5923 # MS-DOS does not allow filenames that begin with a dot. 5924 lt_cv_objdir=_libs 5925fi 5926rmdir .libs 2>/dev/null 5927fi 5928echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5929echo "${ECHO_T}$lt_cv_objdir" >&6 5930objdir=$lt_cv_objdir 5931 5932 5933 5934 5935 5936case $host_os in 5937aix3*) 5938 # AIX sometimes has problems with the GCC collect2 program. For some 5939 # reason, if we set the COLLECT_NAMES environment variable, the problems 5940 # vanish in a puff of smoke. 5941 if test "X${COLLECT_NAMES+set}" != Xset; then 5942 COLLECT_NAMES= 5943 export COLLECT_NAMES 5944 fi 5945 ;; 5946esac 5947 5948# Sed substitution that helps us do robust quoting. It backslashifies 5949# metacharacters that are still active within double-quoted strings. 5950Xsed='sed -e 1s/^X//' 5951sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5952 5953# Same as above, but do not quote variable references. 5954double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5955 5956# Sed substitution to delay expansion of an escaped shell variable in a 5957# double_quote_subst'ed string. 5958delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5959 5960# Sed substitution to avoid accidental globbing in evaled expressions 5961no_glob_subst='s/\*/\\\*/g' 5962 5963# Constants: 5964rm="rm -f" 5965 5966# Global variables: 5967default_ofile=libtool 5968can_build_shared=yes 5969 5970# All known linkers require a `.a' archive for static linking (except MSVC, 5971# which needs '.lib'). 5972libext=a 5973ltmain="$ac_aux_dir/ltmain.sh" 5974ofile="$default_ofile" 5975with_gnu_ld="$lt_cv_prog_gnu_ld" 5976 5977if test -n "$ac_tool_prefix"; then 5978 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5979set dummy ${ac_tool_prefix}ar; ac_word=$2 5980echo "$as_me:$LINENO: checking for $ac_word" >&5 5981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5982if test "${ac_cv_prog_AR+set}" = set; then 5983 echo $ECHO_N "(cached) $ECHO_C" >&6 5984else 5985 if test -n "$AR"; then 5986 ac_cv_prog_AR="$AR" # Let the user override the test. 5987else 5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5989for as_dir in $PATH 5990do 5991 IFS=$as_save_IFS 5992 test -z "$as_dir" && as_dir=. 5993 for ac_exec_ext in '' $ac_executable_extensions; do 5994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5995 ac_cv_prog_AR="${ac_tool_prefix}ar" 5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5997 break 2 5998 fi 5999done 6000done 6001 6002fi 6003fi 6004AR=$ac_cv_prog_AR 6005if test -n "$AR"; then 6006 echo "$as_me:$LINENO: result: $AR" >&5 6007echo "${ECHO_T}$AR" >&6 6008else 6009 echo "$as_me:$LINENO: result: no" >&5 6010echo "${ECHO_T}no" >&6 6011fi 6012 6013fi 6014if test -z "$ac_cv_prog_AR"; then 6015 ac_ct_AR=$AR 6016 # Extract the first word of "ar", so it can be a program name with args. 6017set dummy ar; ac_word=$2 6018echo "$as_me:$LINENO: checking for $ac_word" >&5 6019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6020if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6021 echo $ECHO_N "(cached) $ECHO_C" >&6 6022else 6023 if test -n "$ac_ct_AR"; then 6024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6025else 6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6027for as_dir in $PATH 6028do 6029 IFS=$as_save_IFS 6030 test -z "$as_dir" && as_dir=. 6031 for ac_exec_ext in '' $ac_executable_extensions; do 6032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6033 ac_cv_prog_ac_ct_AR="ar" 6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6035 break 2 6036 fi 6037done 6038done 6039 6040 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6041fi 6042fi 6043ac_ct_AR=$ac_cv_prog_ac_ct_AR 6044if test -n "$ac_ct_AR"; then 6045 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6046echo "${ECHO_T}$ac_ct_AR" >&6 6047else 6048 echo "$as_me:$LINENO: result: no" >&5 6049echo "${ECHO_T}no" >&6 6050fi 6051 6052 AR=$ac_ct_AR 6053else 6054 AR="$ac_cv_prog_AR" 6055fi 6056 6057if test -n "$ac_tool_prefix"; then 6058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6059set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6060echo "$as_me:$LINENO: checking for $ac_word" >&5 6061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6062if test "${ac_cv_prog_RANLIB+set}" = set; then 6063 echo $ECHO_N "(cached) $ECHO_C" >&6 6064else 6065 if test -n "$RANLIB"; then 6066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6067else 6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6069for as_dir in $PATH 6070do 6071 IFS=$as_save_IFS 6072 test -z "$as_dir" && as_dir=. 6073 for ac_exec_ext in '' $ac_executable_extensions; do 6074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6077 break 2 6078 fi 6079done 6080done 6081 6082fi 6083fi 6084RANLIB=$ac_cv_prog_RANLIB 6085if test -n "$RANLIB"; then 6086 echo "$as_me:$LINENO: result: $RANLIB" >&5 6087echo "${ECHO_T}$RANLIB" >&6 6088else 6089 echo "$as_me:$LINENO: result: no" >&5 6090echo "${ECHO_T}no" >&6 6091fi 6092 6093fi 6094if test -z "$ac_cv_prog_RANLIB"; then 6095 ac_ct_RANLIB=$RANLIB 6096 # Extract the first word of "ranlib", so it can be a program name with args. 6097set dummy ranlib; ac_word=$2 6098echo "$as_me:$LINENO: checking for $ac_word" >&5 6099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6100if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6101 echo $ECHO_N "(cached) $ECHO_C" >&6 6102else 6103 if test -n "$ac_ct_RANLIB"; then 6104 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6105else 6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107for as_dir in $PATH 6108do 6109 IFS=$as_save_IFS 6110 test -z "$as_dir" && as_dir=. 6111 for ac_exec_ext in '' $ac_executable_extensions; do 6112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6113 ac_cv_prog_ac_ct_RANLIB="ranlib" 6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6115 break 2 6116 fi 6117done 6118done 6119 6120 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6121fi 6122fi 6123ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6124if test -n "$ac_ct_RANLIB"; then 6125 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6126echo "${ECHO_T}$ac_ct_RANLIB" >&6 6127else 6128 echo "$as_me:$LINENO: result: no" >&5 6129echo "${ECHO_T}no" >&6 6130fi 6131 6132 RANLIB=$ac_ct_RANLIB 6133else 6134 RANLIB="$ac_cv_prog_RANLIB" 6135fi 6136 6137if test -n "$ac_tool_prefix"; then 6138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6139set dummy ${ac_tool_prefix}strip; ac_word=$2 6140echo "$as_me:$LINENO: checking for $ac_word" >&5 6141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6142if test "${ac_cv_prog_STRIP+set}" = set; then 6143 echo $ECHO_N "(cached) $ECHO_C" >&6 6144else 6145 if test -n "$STRIP"; then 6146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6147else 6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6149for as_dir in $PATH 6150do 6151 IFS=$as_save_IFS 6152 test -z "$as_dir" && as_dir=. 6153 for ac_exec_ext in '' $ac_executable_extensions; do 6154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6155 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6157 break 2 6158 fi 6159done 6160done 6161 6162fi 6163fi 6164STRIP=$ac_cv_prog_STRIP 6165if test -n "$STRIP"; then 6166 echo "$as_me:$LINENO: result: $STRIP" >&5 6167echo "${ECHO_T}$STRIP" >&6 6168else 6169 echo "$as_me:$LINENO: result: no" >&5 6170echo "${ECHO_T}no" >&6 6171fi 6172 6173fi 6174if test -z "$ac_cv_prog_STRIP"; then 6175 ac_ct_STRIP=$STRIP 6176 # Extract the first word of "strip", so it can be a program name with args. 6177set dummy strip; ac_word=$2 6178echo "$as_me:$LINENO: checking for $ac_word" >&5 6179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6180if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6181 echo $ECHO_N "(cached) $ECHO_C" >&6 6182else 6183 if test -n "$ac_ct_STRIP"; then 6184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6185else 6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6187for as_dir in $PATH 6188do 6189 IFS=$as_save_IFS 6190 test -z "$as_dir" && as_dir=. 6191 for ac_exec_ext in '' $ac_executable_extensions; do 6192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6193 ac_cv_prog_ac_ct_STRIP="strip" 6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6195 break 2 6196 fi 6197done 6198done 6199 6200 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6201fi 6202fi 6203ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6204if test -n "$ac_ct_STRIP"; then 6205 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6206echo "${ECHO_T}$ac_ct_STRIP" >&6 6207else 6208 echo "$as_me:$LINENO: result: no" >&5 6209echo "${ECHO_T}no" >&6 6210fi 6211 6212 STRIP=$ac_ct_STRIP 6213else 6214 STRIP="$ac_cv_prog_STRIP" 6215fi 6216 6217 6218old_CC="$CC" 6219old_CFLAGS="$CFLAGS" 6220 6221# Set sane defaults for various variables 6222test -z "$AR" && AR=ar 6223test -z "$AR_FLAGS" && AR_FLAGS=cru 6224test -z "$AS" && AS=as 6225test -z "$CC" && CC=cc 6226test -z "$LTCC" && LTCC=$CC 6227test -z "$DLLTOOL" && DLLTOOL=dlltool 6228test -z "$LD" && LD=ld 6229test -z "$LN_S" && LN_S="ln -s" 6230test -z "$MAGIC_CMD" && MAGIC_CMD=file 6231test -z "$NM" && NM=nm 6232test -z "$SED" && SED=sed 6233test -z "$OBJDUMP" && OBJDUMP=objdump 6234test -z "$RANLIB" && RANLIB=: 6235test -z "$STRIP" && STRIP=: 6236test -z "$ac_objext" && ac_objext=o 6237 6238# Determine commands to create old-style static archives. 6239old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6240old_postinstall_cmds='chmod 644 $oldlib' 6241old_postuninstall_cmds= 6242 6243if test -n "$RANLIB"; then 6244 case $host_os in 6245 openbsd*) 6246 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6247 ;; 6248 *) 6249 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6250 ;; 6251 esac 6252 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6253fi 6254 6255for cc_temp in $compiler""; do 6256 case $cc_temp in 6257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6259 \-*) ;; 6260 *) break;; 6261 esac 6262done 6263cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6264 6265 6266# Only perform the check for file, if the check method requires it 6267case $deplibs_check_method in 6268file_magic*) 6269 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6270 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6271echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6272if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6273 echo $ECHO_N "(cached) $ECHO_C" >&6 6274else 6275 case $MAGIC_CMD in 6276[\\/*] | ?:[\\/]*) 6277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6278 ;; 6279*) 6280 lt_save_MAGIC_CMD="$MAGIC_CMD" 6281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6283 for ac_dir in $ac_dummy; do 6284 IFS="$lt_save_ifs" 6285 test -z "$ac_dir" && ac_dir=. 6286 if test -f $ac_dir/${ac_tool_prefix}file; then 6287 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6288 if test -n "$file_magic_test_file"; then 6289 case $deplibs_check_method in 6290 "file_magic "*) 6291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6294 $EGREP "$file_magic_regex" > /dev/null; then 6295 : 6296 else 6297 cat <<EOF 1>&2 6298 6299*** Warning: the command libtool uses to detect shared libraries, 6300*** $file_magic_cmd, produces output that libtool cannot recognize. 6301*** The result is that libtool may fail to recognize shared libraries 6302*** as such. This will affect the creation of libtool libraries that 6303*** depend on shared libraries, but programs linked with such libtool 6304*** libraries will work regardless of this problem. Nevertheless, you 6305*** may want to report the problem to your system manager and/or to 6306*** bug-libtool@gnu.org 6307 6308EOF 6309 fi ;; 6310 esac 6311 fi 6312 break 6313 fi 6314 done 6315 IFS="$lt_save_ifs" 6316 MAGIC_CMD="$lt_save_MAGIC_CMD" 6317 ;; 6318esac 6319fi 6320 6321MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6322if test -n "$MAGIC_CMD"; then 6323 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6324echo "${ECHO_T}$MAGIC_CMD" >&6 6325else 6326 echo "$as_me:$LINENO: result: no" >&5 6327echo "${ECHO_T}no" >&6 6328fi 6329 6330if test -z "$lt_cv_path_MAGIC_CMD"; then 6331 if test -n "$ac_tool_prefix"; then 6332 echo "$as_me:$LINENO: checking for file" >&5 6333echo $ECHO_N "checking for file... $ECHO_C" >&6 6334if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6335 echo $ECHO_N "(cached) $ECHO_C" >&6 6336else 6337 case $MAGIC_CMD in 6338[\\/*] | ?:[\\/]*) 6339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6340 ;; 6341*) 6342 lt_save_MAGIC_CMD="$MAGIC_CMD" 6343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6344 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6345 for ac_dir in $ac_dummy; do 6346 IFS="$lt_save_ifs" 6347 test -z "$ac_dir" && ac_dir=. 6348 if test -f $ac_dir/file; then 6349 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6350 if test -n "$file_magic_test_file"; then 6351 case $deplibs_check_method in 6352 "file_magic "*) 6353 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6356 $EGREP "$file_magic_regex" > /dev/null; then 6357 : 6358 else 6359 cat <<EOF 1>&2 6360 6361*** Warning: the command libtool uses to detect shared libraries, 6362*** $file_magic_cmd, produces output that libtool cannot recognize. 6363*** The result is that libtool may fail to recognize shared libraries 6364*** as such. This will affect the creation of libtool libraries that 6365*** depend on shared libraries, but programs linked with such libtool 6366*** libraries will work regardless of this problem. Nevertheless, you 6367*** may want to report the problem to your system manager and/or to 6368*** bug-libtool@gnu.org 6369 6370EOF 6371 fi ;; 6372 esac 6373 fi 6374 break 6375 fi 6376 done 6377 IFS="$lt_save_ifs" 6378 MAGIC_CMD="$lt_save_MAGIC_CMD" 6379 ;; 6380esac 6381fi 6382 6383MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6384if test -n "$MAGIC_CMD"; then 6385 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6386echo "${ECHO_T}$MAGIC_CMD" >&6 6387else 6388 echo "$as_me:$LINENO: result: no" >&5 6389echo "${ECHO_T}no" >&6 6390fi 6391 6392 else 6393 MAGIC_CMD=: 6394 fi 6395fi 6396 6397 fi 6398 ;; 6399esac 6400 6401enable_dlopen=no 6402enable_win32_dll=no 6403 6404# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6405if test "${enable_libtool_lock+set}" = set; then 6406 enableval="$enable_libtool_lock" 6407 6408fi; 6409test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6410 6411 6412# Check whether --with-pic or --without-pic was given. 6413if test "${with_pic+set}" = set; then 6414 withval="$with_pic" 6415 pic_mode="$withval" 6416else 6417 pic_mode=default 6418fi; 6419test -z "$pic_mode" && pic_mode=default 6420 6421# Use C for the default configuration in the libtool script 6422tagname= 6423lt_save_CC="$CC" 6424ac_ext=c 6425ac_cpp='$CPP $CPPFLAGS' 6426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6428ac_compiler_gnu=$ac_cv_c_compiler_gnu 6429 6430 6431# Source file extension for C test sources. 6432ac_ext=c 6433 6434# Object file extension for compiled C test sources. 6435objext=o 6436objext=$objext 6437 6438# Code to be used in simple compile tests 6439lt_simple_compile_test_code="int some_variable = 0;\n" 6440 6441# Code to be used in simple link tests 6442lt_simple_link_test_code='int main(){return(0);}\n' 6443 6444 6445# If no C compiler was specified, use CC. 6446LTCC=${LTCC-"$CC"} 6447 6448# Allow CC to be a program name with arguments. 6449compiler=$CC 6450 6451 6452# save warnings/boilerplate of simple test code 6453ac_outfile=conftest.$ac_objext 6454printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6455eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6456_lt_compiler_boilerplate=`cat conftest.err` 6457$rm conftest* 6458 6459ac_outfile=conftest.$ac_objext 6460printf "$lt_simple_link_test_code" >conftest.$ac_ext 6461eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6462_lt_linker_boilerplate=`cat conftest.err` 6463$rm conftest* 6464 6465 6466# 6467# Check for any special shared library compilation flags. 6468# 6469lt_prog_cc_shlib= 6470if test "$GCC" = no; then 6471 case $host_os in 6472 sco3.2v5*) 6473 lt_prog_cc_shlib='-belf' 6474 ;; 6475 esac 6476fi 6477if test -n "$lt_prog_cc_shlib"; then 6478 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6479echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6480 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6481 else 6482 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6483echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6484 lt_cv_prog_cc_can_build_shared=no 6485 fi 6486fi 6487 6488 6489# 6490# Check to make sure the static flag actually works. 6491# 6492echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6493echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6494if test "${lt_prog_compiler_static_works+set}" = set; then 6495 echo $ECHO_N "(cached) $ECHO_C" >&6 6496else 6497 lt_prog_compiler_static_works=no 6498 save_LDFLAGS="$LDFLAGS" 6499 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6500 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6501 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6502 # The linker can only warn and ignore the option if not recognized 6503 # So say no if there are warnings 6504 if test -s conftest.err; then 6505 # Append any errors to the config.log. 6506 cat conftest.err 1>&5 6507 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6508 $SED '/^$/d' conftest.err >conftest.er2 6509 if diff conftest.exp conftest.er2 >/dev/null; then 6510 lt_prog_compiler_static_works=yes 6511 fi 6512 else 6513 lt_prog_compiler_static_works=yes 6514 fi 6515 fi 6516 $rm conftest* 6517 LDFLAGS="$save_LDFLAGS" 6518 6519fi 6520echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6521echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6522 6523if test x"$lt_prog_compiler_static_works" = xyes; then 6524 : 6525else 6526 lt_prog_compiler_static= 6527fi 6528 6529 6530 6531## CAVEAT EMPTOR: 6532## There is no encapsulation within the following macros, do not change 6533## the running order or otherwise move them around unless you know exactly 6534## what you are doing... 6535 6536lt_prog_compiler_no_builtin_flag= 6537 6538if test "$GCC" = yes; then 6539 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6540 6541 6542echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6543echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6544if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6545 echo $ECHO_N "(cached) $ECHO_C" >&6 6546else 6547 lt_cv_prog_compiler_rtti_exceptions=no 6548 ac_outfile=conftest.$ac_objext 6549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6550 lt_compiler_flag="-fno-rtti -fno-exceptions" 6551 # Insert the option either (1) after the last *FLAGS variable, or 6552 # (2) before a word containing "conftest.", or (3) at the end. 6553 # Note that $ac_compile itself does not contain backslashes and begins 6554 # with a dollar sign (not a hyphen), so the echo should work correctly. 6555 # The option is referenced via a variable to avoid confusing sed. 6556 lt_compile=`echo "$ac_compile" | $SED \ 6557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6559 -e 's:$: $lt_compiler_flag:'` 6560 (eval echo "\"\$as_me:6560: $lt_compile\"" >&5) 6561 (eval "$lt_compile" 2>conftest.err) 6562 ac_status=$? 6563 cat conftest.err >&5 6564 echo "$as_me:6564: \$? = $ac_status" >&5 6565 if (exit $ac_status) && test -s "$ac_outfile"; then 6566 # The compiler can only warn and ignore the option if not recognized 6567 # So say no if there are warnings other than the usual output. 6568 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6569 $SED '/^$/d' conftest.err >conftest.er2 6570 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6571 lt_cv_prog_compiler_rtti_exceptions=yes 6572 fi 6573 fi 6574 $rm conftest* 6575 6576fi 6577echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6578echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6579 6580if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6581 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6582else 6583 : 6584fi 6585 6586fi 6587 6588lt_prog_compiler_wl= 6589lt_prog_compiler_pic= 6590lt_prog_compiler_static= 6591 6592echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6593echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6594 6595 if test "$GCC" = yes; then 6596 lt_prog_compiler_wl='-Wl,' 6597 lt_prog_compiler_static='-static' 6598 6599 case $host_os in 6600 aix*) 6601 # All AIX code is PIC. 6602 if test "$host_cpu" = ia64; then 6603 # AIX 5 now supports IA64 processor 6604 lt_prog_compiler_static='-Bstatic' 6605 fi 6606 ;; 6607 6608 amigaos*) 6609 # FIXME: we need at least 68020 code to build shared libraries, but 6610 # adding the `-m68020' flag to GCC prevents building anything better, 6611 # like `-m68040'. 6612 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6613 ;; 6614 6615 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6616 # PIC is the default for these OSes. 6617 ;; 6618 6619 mingw* | pw32* | os2*) 6620 # This hack is so that the source file can tell whether it is being 6621 # built for inclusion in a dll (and should export symbols for example). 6622 lt_prog_compiler_pic='-DDLL_EXPORT' 6623 ;; 6624 6625 darwin* | rhapsody*) 6626 # PIC is the default on this platform 6627 # Common symbols not allowed in MH_DYLIB files 6628 lt_prog_compiler_pic='-fno-common' 6629 ;; 6630 6631 msdosdjgpp*) 6632 # Just because we use GCC doesn't mean we suddenly get shared libraries 6633 # on systems that don't support them. 6634 lt_prog_compiler_can_build_shared=no 6635 enable_shared=no 6636 ;; 6637 6638 sysv4*MP*) 6639 if test -d /usr/nec; then 6640 lt_prog_compiler_pic=-Kconform_pic 6641 fi 6642 ;; 6643 6644 hpux*) 6645 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6646 # not for PA HP-UX. 6647 case $host_cpu in 6648 hppa*64*|ia64*) 6649 # +Z the default 6650 ;; 6651 *) 6652 lt_prog_compiler_pic='-fPIC' 6653 ;; 6654 esac 6655 ;; 6656 6657 *) 6658 lt_prog_compiler_pic='-fPIC' 6659 ;; 6660 esac 6661 else 6662 # PORTME Check for flag to pass linker flags through the system compiler. 6663 case $host_os in 6664 aix*) 6665 lt_prog_compiler_wl='-Wl,' 6666 if test "$host_cpu" = ia64; then 6667 # AIX 5 now supports IA64 processor 6668 lt_prog_compiler_static='-Bstatic' 6669 else 6670 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6671 fi 6672 ;; 6673 darwin*) 6674 # PIC is the default on this platform 6675 # Common symbols not allowed in MH_DYLIB files 6676 case $cc_basename in 6677 xlc*) 6678 lt_prog_compiler_pic='-qnocommon' 6679 lt_prog_compiler_wl='-Wl,' 6680 ;; 6681 esac 6682 ;; 6683 6684 mingw* | pw32* | os2*) 6685 # This hack is so that the source file can tell whether it is being 6686 # built for inclusion in a dll (and should export symbols for example). 6687 lt_prog_compiler_pic='-DDLL_EXPORT' 6688 ;; 6689 6690 hpux9* | hpux10* | hpux11*) 6691 lt_prog_compiler_wl='-Wl,' 6692 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6693 # not for PA HP-UX. 6694 case $host_cpu in 6695 hppa*64*|ia64*) 6696 # +Z the default 6697 ;; 6698 *) 6699 lt_prog_compiler_pic='+Z' 6700 ;; 6701 esac 6702 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6703 lt_prog_compiler_static='${wl}-a ${wl}archive' 6704 ;; 6705 6706 irix5* | irix6* | nonstopux*) 6707 lt_prog_compiler_wl='-Wl,' 6708 # PIC (with -KPIC) is the default. 6709 lt_prog_compiler_static='-non_shared' 6710 ;; 6711 6712 newsos6) 6713 lt_prog_compiler_pic='-KPIC' 6714 lt_prog_compiler_static='-Bstatic' 6715 ;; 6716 6717 linux*) 6718 case $cc_basename in 6719 icc* | ecc*) 6720 lt_prog_compiler_wl='-Wl,' 6721 lt_prog_compiler_pic='-KPIC' 6722 lt_prog_compiler_static='-static' 6723 ;; 6724 pgcc* | pgf77* | pgf90* | pgf95*) 6725 # Portland Group compilers (*not* the Pentium gcc compiler, 6726 # which looks to be a dead project) 6727 lt_prog_compiler_wl='-Wl,' 6728 lt_prog_compiler_pic='-fpic' 6729 lt_prog_compiler_static='-Bstatic' 6730 ;; 6731 ccc*) 6732 lt_prog_compiler_wl='-Wl,' 6733 # All Alpha code is PIC. 6734 lt_prog_compiler_static='-non_shared' 6735 ;; 6736 esac 6737 ;; 6738 6739 osf3* | osf4* | osf5*) 6740 lt_prog_compiler_wl='-Wl,' 6741 # All OSF/1 code is PIC. 6742 lt_prog_compiler_static='-non_shared' 6743 ;; 6744 6745 sco3.2v5*) 6746 lt_prog_compiler_pic='-Kpic' 6747 lt_prog_compiler_static='-dn' 6748 ;; 6749 6750 solaris*) 6751 lt_prog_compiler_pic='-KPIC' 6752 lt_prog_compiler_static='-Bstatic' 6753 case $cc_basename in 6754 f77* | f90* | f95*) 6755 lt_prog_compiler_wl='-Qoption ld ';; 6756 *) 6757 lt_prog_compiler_wl='-Wl,';; 6758 esac 6759 ;; 6760 6761 sunos4*) 6762 lt_prog_compiler_wl='-Qoption ld ' 6763 lt_prog_compiler_pic='-PIC' 6764 lt_prog_compiler_static='-Bstatic' 6765 ;; 6766 6767 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6768 lt_prog_compiler_wl='-Wl,' 6769 lt_prog_compiler_pic='-KPIC' 6770 lt_prog_compiler_static='-Bstatic' 6771 ;; 6772 6773 sysv4*MP*) 6774 if test -d /usr/nec ;then 6775 lt_prog_compiler_pic='-Kconform_pic' 6776 lt_prog_compiler_static='-Bstatic' 6777 fi 6778 ;; 6779 6780 unicos*) 6781 lt_prog_compiler_wl='-Wl,' 6782 lt_prog_compiler_can_build_shared=no 6783 ;; 6784 6785 uts4*) 6786 lt_prog_compiler_pic='-pic' 6787 lt_prog_compiler_static='-Bstatic' 6788 ;; 6789 6790 *) 6791 lt_prog_compiler_can_build_shared=no 6792 ;; 6793 esac 6794 fi 6795 6796echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6797echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6798 6799# 6800# Check to make sure the PIC flag actually works. 6801# 6802if test -n "$lt_prog_compiler_pic"; then 6803 6804echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6805echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6806if test "${lt_prog_compiler_pic_works+set}" = set; then 6807 echo $ECHO_N "(cached) $ECHO_C" >&6 6808else 6809 lt_prog_compiler_pic_works=no 6810 ac_outfile=conftest.$ac_objext 6811 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6812 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6813 # Insert the option either (1) after the last *FLAGS variable, or 6814 # (2) before a word containing "conftest.", or (3) at the end. 6815 # Note that $ac_compile itself does not contain backslashes and begins 6816 # with a dollar sign (not a hyphen), so the echo should work correctly. 6817 # The option is referenced via a variable to avoid confusing sed. 6818 lt_compile=`echo "$ac_compile" | $SED \ 6819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6821 -e 's:$: $lt_compiler_flag:'` 6822 (eval echo "\"\$as_me:6822: $lt_compile\"" >&5) 6823 (eval "$lt_compile" 2>conftest.err) 6824 ac_status=$? 6825 cat conftest.err >&5 6826 echo "$as_me:6826: \$? = $ac_status" >&5 6827 if (exit $ac_status) && test -s "$ac_outfile"; then 6828 # The compiler can only warn and ignore the option if not recognized 6829 # So say no if there are warnings other than the usual output. 6830 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6831 $SED '/^$/d' conftest.err >conftest.er2 6832 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6833 lt_prog_compiler_pic_works=yes 6834 fi 6835 fi 6836 $rm conftest* 6837 6838fi 6839echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6840echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6841 6842if test x"$lt_prog_compiler_pic_works" = xyes; then 6843 case $lt_prog_compiler_pic in 6844 "" | " "*) ;; 6845 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6846 esac 6847else 6848 lt_prog_compiler_pic= 6849 lt_prog_compiler_can_build_shared=no 6850fi 6851 6852fi 6853case $host_os in 6854 # For platforms which do not support PIC, -DPIC is meaningless: 6855 *djgpp*) 6856 lt_prog_compiler_pic= 6857 ;; 6858 *) 6859 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6860 ;; 6861esac 6862 6863echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6864echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6865if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6866 echo $ECHO_N "(cached) $ECHO_C" >&6 6867else 6868 lt_cv_prog_compiler_c_o=no 6869 $rm -r conftest 2>/dev/null 6870 mkdir conftest 6871 cd conftest 6872 mkdir out 6873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6874 6875 lt_compiler_flag="-o out/conftest2.$ac_objext" 6876 # Insert the option either (1) after the last *FLAGS variable, or 6877 # (2) before a word containing "conftest.", or (3) at the end. 6878 # Note that $ac_compile itself does not contain backslashes and begins 6879 # with a dollar sign (not a hyphen), so the echo should work correctly. 6880 lt_compile=`echo "$ac_compile" | $SED \ 6881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6883 -e 's:$: $lt_compiler_flag:'` 6884 (eval echo "\"\$as_me:6884: $lt_compile\"" >&5) 6885 (eval "$lt_compile" 2>out/conftest.err) 6886 ac_status=$? 6887 cat out/conftest.err >&5 6888 echo "$as_me:6888: \$? = $ac_status" >&5 6889 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6890 then 6891 # The compiler can only warn and ignore the option if not recognized 6892 # So say no if there are warnings 6893 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 6894 $SED '/^$/d' out/conftest.err >out/conftest.er2 6895 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6896 lt_cv_prog_compiler_c_o=yes 6897 fi 6898 fi 6899 chmod u+w . 2>&5 6900 $rm conftest* 6901 # SGI C++ compiler will create directory out/ii_files/ for 6902 # template instantiation 6903 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6904 $rm out/* && rmdir out 6905 cd .. 6906 rmdir conftest 6907 $rm conftest* 6908 6909fi 6910echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6911echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6912 6913 6914hard_links="nottested" 6915if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6916 # do not overwrite the value of need_locks provided by the user 6917 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6918echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6919 hard_links=yes 6920 $rm conftest* 6921 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6922 touch conftest.a 6923 ln conftest.a conftest.b 2>&5 || hard_links=no 6924 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6925 echo "$as_me:$LINENO: result: $hard_links" >&5 6926echo "${ECHO_T}$hard_links" >&6 6927 if test "$hard_links" = no; then 6928 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6929echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6930 need_locks=warn 6931 fi 6932else 6933 need_locks=no 6934fi 6935 6936echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6937echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6938 6939 runpath_var= 6940 allow_undefined_flag= 6941 enable_shared_with_static_runtimes=no 6942 archive_cmds= 6943 archive_expsym_cmds= 6944 old_archive_From_new_cmds= 6945 old_archive_from_expsyms_cmds= 6946 export_dynamic_flag_spec= 6947 whole_archive_flag_spec= 6948 thread_safe_flag_spec= 6949 hardcode_libdir_flag_spec= 6950 hardcode_libdir_flag_spec_ld= 6951 hardcode_libdir_separator= 6952 hardcode_direct=no 6953 hardcode_minus_L=no 6954 hardcode_shlibpath_var=unsupported 6955 link_all_deplibs=unknown 6956 hardcode_automatic=no 6957 module_cmds= 6958 module_expsym_cmds= 6959 always_export_symbols=no 6960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6961 # include_expsyms should be a list of space-separated symbols to be *always* 6962 # included in the symbol list 6963 include_expsyms= 6964 # exclude_expsyms can be an extended regexp of symbols to exclude 6965 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6966 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6967 # as well as any symbol that contains `d'. 6968 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6969 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6970 # platforms (ab)use it in PIC code, but their linkers get confused if 6971 # the symbol is explicitly referenced. Since portable code cannot 6972 # rely on this symbol name, it's probably fine to never include it in 6973 # preloaded symbol tables. 6974 extract_expsyms_cmds= 6975 # Just being paranoid about ensuring that cc_basename is set. 6976 for cc_temp in $compiler""; do 6977 case $cc_temp in 6978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6980 \-*) ;; 6981 *) break;; 6982 esac 6983done 6984cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6985 6986 case $host_os in 6987 cygwin* | mingw* | pw32*) 6988 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6989 # When not using gcc, we currently assume that we are using 6990 # Microsoft Visual C++. 6991 if test "$GCC" != yes; then 6992 with_gnu_ld=no 6993 fi 6994 ;; 6995 openbsd*) 6996 with_gnu_ld=no 6997 ;; 6998 esac 6999 7000 ld_shlibs=yes 7001 if test "$with_gnu_ld" = yes; then 7002 # If archive_cmds runs LD, not CC, wlarc should be empty 7003 wlarc='${wl}' 7004 7005 # Set some defaults for GNU ld with shared library support. These 7006 # are reset later if shared libraries are not supported. Putting them 7007 # here allows them to be overridden if necessary. 7008 runpath_var=LD_RUN_PATH 7009 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7010 export_dynamic_flag_spec='${wl}--export-dynamic' 7011 # ancient GNU ld didn't support --whole-archive et. al. 7012 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7013 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7014 else 7015 whole_archive_flag_spec= 7016 fi 7017 supports_anon_versioning=no 7018 case `$LD -v 2>/dev/null` in 7019 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7020 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7021 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7022 *\ 2.11.*) ;; # other 2.11 versions 7023 *) supports_anon_versioning=yes ;; 7024 esac 7025 7026 # See if GNU ld supports shared libraries. 7027 case $host_os in 7028 aix3* | aix4* | aix5*) 7029 # On AIX/PPC, the GNU linker is very broken 7030 if test "$host_cpu" != ia64; then 7031 ld_shlibs=no 7032 cat <<EOF 1>&2 7033 7034*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7035*** to be unable to reliably create shared libraries on AIX. 7036*** Therefore, libtool is disabling shared libraries support. If you 7037*** really care for shared libraries, you may want to modify your PATH 7038*** so that a non-GNU linker is found, and then restart. 7039 7040EOF 7041 fi 7042 ;; 7043 7044 amigaos*) 7045 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)' 7046 hardcode_libdir_flag_spec='-L$libdir' 7047 hardcode_minus_L=yes 7048 7049 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7050 # that the semantics of dynamic libraries on AmigaOS, at least up 7051 # to version 4, is to share data among multiple programs linked 7052 # with the same dynamic library. Since this doesn't match the 7053 # behavior of shared libraries on other platforms, we can't use 7054 # them. 7055 ld_shlibs=no 7056 ;; 7057 7058 beos*) 7059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7060 allow_undefined_flag=unsupported 7061 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7062 # support --undefined. This deserves some investigation. FIXME 7063 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7064 else 7065 ld_shlibs=no 7066 fi 7067 ;; 7068 7069 cygwin* | mingw* | pw32*) 7070 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7071 # as there is no search path for DLLs. 7072 hardcode_libdir_flag_spec='-L$libdir' 7073 allow_undefined_flag=unsupported 7074 always_export_symbols=no 7075 enable_shared_with_static_runtimes=yes 7076 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7077 7078 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7080 # If the export-symbols file already is a .def file (1st line 7081 # is EXPORTS), use it as is; otherwise, prepend... 7082 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7083 cp $export_symbols $output_objdir/$soname.def; 7084 else 7085 echo EXPORTS > $output_objdir/$soname.def; 7086 cat $export_symbols >> $output_objdir/$soname.def; 7087 fi~ 7088 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7089 else 7090 ld_shlibs=no 7091 fi 7092 ;; 7093 7094 linux*) 7095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7096 tmp_addflag= 7097 case $cc_basename,$host_cpu in 7098 pgcc*) # Portland Group C compiler 7099 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7100 tmp_addflag=' $pic_flag' 7101 ;; 7102 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7103 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7104 tmp_addflag=' $pic_flag -Mnomain' ;; 7105 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7106 tmp_addflag=' -i_dynamic' ;; 7107 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7108 tmp_addflag=' -i_dynamic -nofor_main' ;; 7109 ifc* | ifort*) # Intel Fortran compiler 7110 tmp_addflag=' -nofor_main' ;; 7111 esac 7112 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7113 7114 if test $supports_anon_versioning = yes; then 7115 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7117 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7118 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7119 fi 7120 else 7121 ld_shlibs=no 7122 fi 7123 ;; 7124 7125 netbsd*) 7126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7127 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7128 wlarc= 7129 else 7130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7132 fi 7133 ;; 7134 7135 solaris* | sysv5*) 7136 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7137 ld_shlibs=no 7138 cat <<EOF 1>&2 7139 7140*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7141*** create shared libraries on Solaris systems. Therefore, libtool 7142*** is disabling shared libraries support. We urge you to upgrade GNU 7143*** binutils to release 2.9.1 or newer. Another option is to modify 7144*** your PATH or compiler configuration so that the native linker is 7145*** used, and then restart. 7146 7147EOF 7148 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7151 else 7152 ld_shlibs=no 7153 fi 7154 ;; 7155 7156 sunos4*) 7157 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7158 wlarc= 7159 hardcode_direct=yes 7160 hardcode_shlibpath_var=no 7161 ;; 7162 7163 *) 7164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7167 else 7168 ld_shlibs=no 7169 fi 7170 ;; 7171 esac 7172 7173 if test "$ld_shlibs" = no; then 7174 runpath_var= 7175 hardcode_libdir_flag_spec= 7176 export_dynamic_flag_spec= 7177 whole_archive_flag_spec= 7178 fi 7179 else 7180 # PORTME fill in a description of your system's linker (not GNU ld) 7181 case $host_os in 7182 aix3*) 7183 allow_undefined_flag=unsupported 7184 always_export_symbols=yes 7185 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' 7186 # Note: this linker hardcodes the directories in LIBPATH if there 7187 # are no directories specified by -L. 7188 hardcode_minus_L=yes 7189 if test "$GCC" = yes && test -z "$link_static_flag"; then 7190 # Neither direct hardcoding nor static linking is supported with a 7191 # broken collect2. 7192 hardcode_direct=unsupported 7193 fi 7194 ;; 7195 7196 aix4* | aix5*) 7197 if test "$host_cpu" = ia64; then 7198 # On IA64, the linker does run time linking by default, so we don't 7199 # have to do anything special. 7200 aix_use_runtimelinking=no 7201 exp_sym_flag='-Bexport' 7202 no_entry_flag="" 7203 else 7204 # If we're using GNU nm, then we don't want the "-C" option. 7205 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7206 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7207 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' 7208 else 7209 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' 7210 fi 7211 aix_use_runtimelinking=no 7212 7213 # Test if we are trying to use run time linking or normal 7214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7215 # need to do runtime linking. 7216 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7217 for ld_flag in $LDFLAGS; do 7218 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7219 aix_use_runtimelinking=yes 7220 break 7221 fi 7222 done 7223 esac 7224 7225 exp_sym_flag='-bexport' 7226 no_entry_flag='-bnoentry' 7227 fi 7228 7229 # When large executables or shared objects are built, AIX ld can 7230 # have problems creating the table of contents. If linking a library 7231 # or program results in "error TOC overflow" add -mminimal-toc to 7232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7234 7235 archive_cmds='' 7236 hardcode_direct=yes 7237 hardcode_libdir_separator=':' 7238 link_all_deplibs=yes 7239 7240 if test "$GCC" = yes; then 7241 case $host_os in aix4.[012]|aix4.[012].*) 7242 # We only want to do this on AIX 4.2 and lower, the check 7243 # below for broken collect2 doesn't work under 4.3+ 7244 collect2name=`${CC} -print-prog-name=collect2` 7245 if test -f "$collect2name" && \ 7246 strings "$collect2name" | grep resolve_lib_name >/dev/null 7247 then 7248 # We have reworked collect2 7249 hardcode_direct=yes 7250 else 7251 # We have old collect2 7252 hardcode_direct=unsupported 7253 # It fails to find uninstalled libraries when the uninstalled 7254 # path is not listed in the libpath. Setting hardcode_minus_L 7255 # to unsupported forces relinking 7256 hardcode_minus_L=yes 7257 hardcode_libdir_flag_spec='-L$libdir' 7258 hardcode_libdir_separator= 7259 fi 7260 esac 7261 shared_flag='-shared' 7262 if test "$aix_use_runtimelinking" = yes; then 7263 shared_flag="$shared_flag "'${wl}-G' 7264 fi 7265 else 7266 # not using gcc 7267 if test "$host_cpu" = ia64; then 7268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7269 # chokes on -Wl,-G. The following line is correct: 7270 shared_flag='-G' 7271 else 7272 if test "$aix_use_runtimelinking" = yes; then 7273 shared_flag='${wl}-G' 7274 else 7275 shared_flag='${wl}-bM:SRE' 7276 fi 7277 fi 7278 fi 7279 7280 # It seems that -bexpall does not export symbols beginning with 7281 # underscore (_), so it is better to generate a list of symbols to export. 7282 always_export_symbols=yes 7283 if test "$aix_use_runtimelinking" = yes; then 7284 # Warning - without using the other runtime loading flags (-brtl), 7285 # -berok will link without error, but may produce a broken library. 7286 allow_undefined_flag='-berok' 7287 # Determine the default libpath from the value encoded in an empty executable. 7288 cat >conftest.$ac_ext <<_ACEOF 7289/* confdefs.h. */ 7290_ACEOF 7291cat confdefs.h >>conftest.$ac_ext 7292cat >>conftest.$ac_ext <<_ACEOF 7293/* end confdefs.h. */ 7294 7295int 7296main () 7297{ 7298 7299 ; 7300 return 0; 7301} 7302_ACEOF 7303rm -f conftest.$ac_objext conftest$ac_exeext 7304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7305 (eval $ac_link) 2>conftest.er1 7306 ac_status=$? 7307 grep -v '^ *+' conftest.er1 >conftest.err 7308 rm -f conftest.er1 7309 cat conftest.err >&5 7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7311 (exit $ac_status); } && 7312 { ac_try='test -z "$ac_c_werror_flag" 7313 || test ! -s conftest.err' 7314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7315 (eval $ac_try) 2>&5 7316 ac_status=$? 7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7318 (exit $ac_status); }; } && 7319 { ac_try='test -s conftest$ac_exeext' 7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7321 (eval $ac_try) 2>&5 7322 ac_status=$? 7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7324 (exit $ac_status); }; }; then 7325 7326aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7327}'` 7328# Check for a 64-bit object if we didn't find anything. 7329if 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; } 7330}'`; fi 7331else 7332 echo "$as_me: failed program was:" >&5 7333sed 's/^/| /' conftest.$ac_ext >&5 7334 7335fi 7336rm -f conftest.err conftest.$ac_objext \ 7337 conftest$ac_exeext conftest.$ac_ext 7338if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7339 7340 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7341 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" 7342 else 7343 if test "$host_cpu" = ia64; then 7344 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7345 allow_undefined_flag="-z nodefs" 7346 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" 7347 else 7348 # Determine the default libpath from the value encoded in an empty executable. 7349 cat >conftest.$ac_ext <<_ACEOF 7350/* confdefs.h. */ 7351_ACEOF 7352cat confdefs.h >>conftest.$ac_ext 7353cat >>conftest.$ac_ext <<_ACEOF 7354/* end confdefs.h. */ 7355 7356int 7357main () 7358{ 7359 7360 ; 7361 return 0; 7362} 7363_ACEOF 7364rm -f conftest.$ac_objext conftest$ac_exeext 7365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7366 (eval $ac_link) 2>conftest.er1 7367 ac_status=$? 7368 grep -v '^ *+' conftest.er1 >conftest.err 7369 rm -f conftest.er1 7370 cat conftest.err >&5 7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7372 (exit $ac_status); } && 7373 { ac_try='test -z "$ac_c_werror_flag" 7374 || test ! -s conftest.err' 7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7376 (eval $ac_try) 2>&5 7377 ac_status=$? 7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7379 (exit $ac_status); }; } && 7380 { ac_try='test -s conftest$ac_exeext' 7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7382 (eval $ac_try) 2>&5 7383 ac_status=$? 7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7385 (exit $ac_status); }; }; then 7386 7387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7388}'` 7389# Check for a 64-bit object if we didn't find anything. 7390if 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; } 7391}'`; fi 7392else 7393 echo "$as_me: failed program was:" >&5 7394sed 's/^/| /' conftest.$ac_ext >&5 7395 7396fi 7397rm -f conftest.err conftest.$ac_objext \ 7398 conftest$ac_exeext conftest.$ac_ext 7399if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7400 7401 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7402 # Warning - without using the other run time loading flags, 7403 # -berok will link without error, but may produce a broken library. 7404 no_undefined_flag=' ${wl}-bernotok' 7405 allow_undefined_flag=' ${wl}-berok' 7406 # -bexpall does not export symbols beginning with underscore (_) 7407 always_export_symbols=yes 7408 # Exported symbols can be pulled into shared objects from archives 7409 whole_archive_flag_spec=' ' 7410 archive_cmds_need_lc=yes 7411 # This is similar to how AIX traditionally builds its shared libraries. 7412 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' 7413 fi 7414 fi 7415 ;; 7416 7417 amigaos*) 7418 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)' 7419 hardcode_libdir_flag_spec='-L$libdir' 7420 hardcode_minus_L=yes 7421 # see comment about different semantics on the GNU ld section 7422 ld_shlibs=no 7423 ;; 7424 7425 bsdi[45]*) 7426 export_dynamic_flag_spec=-rdynamic 7427 ;; 7428 7429 cygwin* | mingw* | pw32*) 7430 # When not using gcc, we currently assume that we are using 7431 # Microsoft Visual C++. 7432 # hardcode_libdir_flag_spec is actually meaningless, as there is 7433 # no search path for DLLs. 7434 hardcode_libdir_flag_spec=' ' 7435 allow_undefined_flag=unsupported 7436 # Tell ltmain to make .lib files, not .a files. 7437 libext=lib 7438 # Tell ltmain to make .dll files, not .so files. 7439 shrext_cmds=".dll" 7440 # FIXME: Setting linknames here is a bad hack. 7441 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7442 # The linker will automatically build a .lib file if we build a DLL. 7443 old_archive_From_new_cmds='true' 7444 # FIXME: Should let the user specify the lib program. 7445 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7446 fix_srcfile_path='`cygpath -w "$srcfile"`' 7447 enable_shared_with_static_runtimes=yes 7448 ;; 7449 7450 darwin* | rhapsody*) 7451 case $host_os in 7452 rhapsody* | darwin1.[012]) 7453 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7454 ;; 7455 *) # Darwin 1.3 on 7456 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7457 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7458 else 7459 case ${MACOSX_DEPLOYMENT_TARGET} in 7460 10.[012]) 7461 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7462 ;; 7463 10.*) 7464 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7465 ;; 7466 esac 7467 fi 7468 ;; 7469 esac 7470 archive_cmds_need_lc=no 7471 hardcode_direct=no 7472 hardcode_automatic=yes 7473 hardcode_shlibpath_var=unsupported 7474 whole_archive_flag_spec='' 7475 link_all_deplibs=yes 7476 if test "$GCC" = yes ; then 7477 output_verbose_link_cmd='echo' 7478 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7479 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7480 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7481 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}' 7482 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7483 else 7484 case $cc_basename in 7485 xlc*) 7486 output_verbose_link_cmd='echo' 7487 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7488 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7490 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7491 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7492 ;; 7493 *) 7494 ld_shlibs=no 7495 ;; 7496 esac 7497 fi 7498 ;; 7499 7500 dgux*) 7501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7502 hardcode_libdir_flag_spec='-L$libdir' 7503 hardcode_shlibpath_var=no 7504 ;; 7505 7506 freebsd1*) 7507 ld_shlibs=no 7508 ;; 7509 7510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7511 # support. Future versions do this automatically, but an explicit c++rt0.o 7512 # does not break anything, and helps significantly (at the cost of a little 7513 # extra space). 7514 freebsd2.2*) 7515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7516 hardcode_libdir_flag_spec='-R$libdir' 7517 hardcode_direct=yes 7518 hardcode_shlibpath_var=no 7519 ;; 7520 7521 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7522 freebsd2*) 7523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7524 hardcode_direct=yes 7525 hardcode_minus_L=yes 7526 hardcode_shlibpath_var=no 7527 ;; 7528 7529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7530 freebsd* | kfreebsd*-gnu | dragonfly*) 7531 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7532 hardcode_libdir_flag_spec='-R$libdir' 7533 hardcode_direct=yes 7534 hardcode_shlibpath_var=no 7535 ;; 7536 7537 hpux9*) 7538 if test "$GCC" = yes; then 7539 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' 7540 else 7541 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' 7542 fi 7543 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7544 hardcode_libdir_separator=: 7545 hardcode_direct=yes 7546 7547 # hardcode_minus_L: Not really in the search PATH, 7548 # but as the default location of the library. 7549 hardcode_minus_L=yes 7550 export_dynamic_flag_spec='${wl}-E' 7551 ;; 7552 7553 hpux10* | hpux11*) 7554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7555 case $host_cpu in 7556 hppa*64*|ia64*) 7557 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7558 ;; 7559 *) 7560 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7561 ;; 7562 esac 7563 else 7564 case $host_cpu in 7565 hppa*64*|ia64*) 7566 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7567 ;; 7568 *) 7569 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7570 ;; 7571 esac 7572 fi 7573 if test "$with_gnu_ld" = no; then 7574 case $host_cpu in 7575 hppa*64*) 7576 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7577 hardcode_libdir_flag_spec_ld='+b $libdir' 7578 hardcode_libdir_separator=: 7579 hardcode_direct=no 7580 hardcode_shlibpath_var=no 7581 ;; 7582 ia64*) 7583 hardcode_libdir_flag_spec='-L$libdir' 7584 hardcode_direct=no 7585 hardcode_shlibpath_var=no 7586 7587 # hardcode_minus_L: Not really in the search PATH, 7588 # but as the default location of the library. 7589 hardcode_minus_L=yes 7590 ;; 7591 *) 7592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7593 hardcode_libdir_separator=: 7594 hardcode_direct=yes 7595 export_dynamic_flag_spec='${wl}-E' 7596 7597 # hardcode_minus_L: Not really in the search PATH, 7598 # but as the default location of the library. 7599 hardcode_minus_L=yes 7600 ;; 7601 esac 7602 fi 7603 ;; 7604 7605 irix5* | irix6* | nonstopux*) 7606 if test "$GCC" = yes; then 7607 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' 7608 else 7609 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' 7610 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7611 fi 7612 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7613 hardcode_libdir_separator=: 7614 link_all_deplibs=yes 7615 ;; 7616 7617 netbsd*) 7618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7620 else 7621 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7622 fi 7623 hardcode_libdir_flag_spec='-R$libdir' 7624 hardcode_direct=yes 7625 hardcode_shlibpath_var=no 7626 ;; 7627 7628 newsos6) 7629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7630 hardcode_direct=yes 7631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7632 hardcode_libdir_separator=: 7633 hardcode_shlibpath_var=no 7634 ;; 7635 7636 openbsd*) 7637 hardcode_direct=yes 7638 hardcode_shlibpath_var=no 7639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7641 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7643 export_dynamic_flag_spec='${wl}-E' 7644 else 7645 case $host_os in 7646 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7648 hardcode_libdir_flag_spec='-R$libdir' 7649 ;; 7650 *) 7651 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7652 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7653 ;; 7654 esac 7655 fi 7656 ;; 7657 7658 os2*) 7659 hardcode_libdir_flag_spec='-L$libdir' 7660 hardcode_minus_L=yes 7661 allow_undefined_flag=unsupported 7662 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' 7663 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7664 ;; 7665 7666 osf3*) 7667 if test "$GCC" = yes; then 7668 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7669 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' 7670 else 7671 allow_undefined_flag=' -expect_unresolved \*' 7672 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' 7673 fi 7674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7675 hardcode_libdir_separator=: 7676 ;; 7677 7678 osf4* | osf5*) # as osf3* with the addition of -msym flag 7679 if test "$GCC" = yes; then 7680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7681 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' 7682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7683 else 7684 allow_undefined_flag=' -expect_unresolved \*' 7685 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' 7686 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7687 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 7688 7689 # Both c and cxx compiler support -rpath directly 7690 hardcode_libdir_flag_spec='-rpath $libdir' 7691 fi 7692 hardcode_libdir_separator=: 7693 ;; 7694 7695 sco3.2v5*) 7696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7697 hardcode_shlibpath_var=no 7698 export_dynamic_flag_spec='${wl}-Bexport' 7699 runpath_var=LD_RUN_PATH 7700 hardcode_runpath_var=yes 7701 ;; 7702 7703 solaris*) 7704 no_undefined_flag=' -z text' 7705 if test "$GCC" = yes; then 7706 wlarc='${wl}' 7707 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7708 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7709 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7710 else 7711 wlarc='' 7712 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7713 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7714 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7715 fi 7716 hardcode_libdir_flag_spec='-R$libdir' 7717 hardcode_shlibpath_var=no 7718 case $host_os in 7719 solaris2.[0-5] | solaris2.[0-5].*) ;; 7720 *) 7721 # The compiler driver will combine linker options so we 7722 # cannot just pass the convience library names through 7723 # without $wl, iff we do not link with $LD. 7724 # Luckily, gcc supports the same syntax we need for Sun Studio. 7725 # Supported since Solaris 2.6 (maybe 2.5.1?) 7726 case $wlarc in 7727 '') 7728 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7729 *) 7730 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 7731 esac ;; 7732 esac 7733 link_all_deplibs=yes 7734 ;; 7735 7736 sunos4*) 7737 if test "x$host_vendor" = xsequent; then 7738 # Use $CC to link under sequent, because it throws in some extra .o 7739 # files that make .init and .fini sections work. 7740 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7741 else 7742 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7743 fi 7744 hardcode_libdir_flag_spec='-L$libdir' 7745 hardcode_direct=yes 7746 hardcode_minus_L=yes 7747 hardcode_shlibpath_var=no 7748 ;; 7749 7750 sysv4) 7751 case $host_vendor in 7752 sni) 7753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7754 hardcode_direct=yes # is this really true??? 7755 ;; 7756 siemens) 7757 ## LD is ld it makes a PLAMLIB 7758 ## CC just makes a GrossModule. 7759 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7760 reload_cmds='$CC -r -o $output$reload_objs' 7761 hardcode_direct=no 7762 ;; 7763 motorola) 7764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7765 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7766 ;; 7767 esac 7768 runpath_var='LD_RUN_PATH' 7769 hardcode_shlibpath_var=no 7770 ;; 7771 7772 sysv4.3*) 7773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7774 hardcode_shlibpath_var=no 7775 export_dynamic_flag_spec='-Bexport' 7776 ;; 7777 7778 sysv4*MP*) 7779 if test -d /usr/nec; then 7780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7781 hardcode_shlibpath_var=no 7782 runpath_var=LD_RUN_PATH 7783 hardcode_runpath_var=yes 7784 ld_shlibs=yes 7785 fi 7786 ;; 7787 7788 sysv4.2uw2*) 7789 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7790 hardcode_direct=yes 7791 hardcode_minus_L=no 7792 hardcode_shlibpath_var=no 7793 hardcode_runpath_var=yes 7794 runpath_var=LD_RUN_PATH 7795 ;; 7796 7797 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7798 no_undefined_flag='${wl}-z ${wl}text' 7799 if test "$GCC" = yes; then 7800 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7801 else 7802 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7803 fi 7804 runpath_var='LD_RUN_PATH' 7805 hardcode_shlibpath_var=no 7806 ;; 7807 7808 sysv5*) 7809 no_undefined_flag=' -z text' 7810 # $CC -shared without GNU ld will not create a library from C++ 7811 # object files and a static libstdc++, better avoid it by now 7812 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7813 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7815 hardcode_libdir_flag_spec= 7816 hardcode_shlibpath_var=no 7817 runpath_var='LD_RUN_PATH' 7818 ;; 7819 7820 uts4*) 7821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7822 hardcode_libdir_flag_spec='-L$libdir' 7823 hardcode_shlibpath_var=no 7824 ;; 7825 7826 *) 7827 ld_shlibs=no 7828 ;; 7829 esac 7830 fi 7831 7832echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7833echo "${ECHO_T}$ld_shlibs" >&6 7834test "$ld_shlibs" = no && can_build_shared=no 7835 7836variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7837if test "$GCC" = yes; then 7838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7839fi 7840 7841# 7842# Do we need to explicitly link libc? 7843# 7844case "x$archive_cmds_need_lc" in 7845x|xyes) 7846 # Assume -lc should be added 7847 archive_cmds_need_lc=yes 7848 7849 if test "$enable_shared" = yes && test "$GCC" = yes; then 7850 case $archive_cmds in 7851 *'~'*) 7852 # FIXME: we may have to deal with multi-command sequences. 7853 ;; 7854 '$CC '*) 7855 # Test whether the compiler implicitly links with -lc since on some 7856 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7857 # to ld, don't add -lc before -lgcc. 7858 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7859echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7860 $rm conftest* 7861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7862 7863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7864 (eval $ac_compile) 2>&5 7865 ac_status=$? 7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7867 (exit $ac_status); } 2>conftest.err; then 7868 soname=conftest 7869 lib=conftest 7870 libobjs=conftest.$ac_objext 7871 deplibs= 7872 wl=$lt_prog_compiler_wl 7873 compiler_flags=-v 7874 linker_flags=-v 7875 verstring= 7876 output_objdir=. 7877 libname=conftest 7878 lt_save_allow_undefined_flag=$allow_undefined_flag 7879 allow_undefined_flag= 7880 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7881 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7882 ac_status=$? 7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7884 (exit $ac_status); } 7885 then 7886 archive_cmds_need_lc=no 7887 else 7888 archive_cmds_need_lc=yes 7889 fi 7890 allow_undefined_flag=$lt_save_allow_undefined_flag 7891 else 7892 cat conftest.err 1>&5 7893 fi 7894 $rm conftest* 7895 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7896echo "${ECHO_T}$archive_cmds_need_lc" >&6 7897 ;; 7898 esac 7899 fi 7900 ;; 7901esac 7902 7903echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7904echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7905library_names_spec= 7906libname_spec='lib$name' 7907soname_spec= 7908shrext_cmds=".so" 7909postinstall_cmds= 7910postuninstall_cmds= 7911finish_cmds= 7912finish_eval= 7913shlibpath_var= 7914shlibpath_overrides_runpath=unknown 7915version_type=none 7916dynamic_linker="$host_os ld.so" 7917sys_lib_dlsearch_path_spec="/lib /usr/lib" 7918if test "$GCC" = yes; then 7919 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7920 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7921 # if the path contains ";" then we assume it to be the separator 7922 # otherwise default to the standard path separator (i.e. ":") - it is 7923 # assumed that no part of a normal pathname contains ";" but that should 7924 # okay in the real world where ";" in dirpaths is itself problematic. 7925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7926 else 7927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7928 fi 7929else 7930 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7931fi 7932need_lib_prefix=unknown 7933hardcode_into_libs=no 7934 7935# when you set need_version to no, make sure it does not cause -set_version 7936# flags to be left without arguments 7937need_version=unknown 7938 7939case $host_os in 7940aix3*) 7941 version_type=linux 7942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7943 shlibpath_var=LIBPATH 7944 7945 # AIX 3 has no versioning support, so we append a major version to the name. 7946 soname_spec='${libname}${release}${shared_ext}$major' 7947 ;; 7948 7949aix4* | aix5*) 7950 version_type=linux 7951 need_lib_prefix=no 7952 need_version=no 7953 hardcode_into_libs=yes 7954 if test "$host_cpu" = ia64; then 7955 # AIX 5 supports IA64 7956 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7957 shlibpath_var=LD_LIBRARY_PATH 7958 else 7959 # With GCC up to 2.95.x, collect2 would create an import file 7960 # for dependence libraries. The import file would start with 7961 # the line `#! .'. This would cause the generated library to 7962 # depend on `.', always an invalid library. This was fixed in 7963 # development snapshots of GCC prior to 3.0. 7964 case $host_os in 7965 aix4 | aix4.[01] | aix4.[01].*) 7966 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7967 echo ' yes ' 7968 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7969 : 7970 else 7971 can_build_shared=no 7972 fi 7973 ;; 7974 esac 7975 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7976 # soname into executable. Probably we can add versioning support to 7977 # collect2, so additional links can be useful in future. 7978 if test "$aix_use_runtimelinking" = yes; then 7979 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7980 # instead of lib<name>.a to let people know that these are not 7981 # typical AIX shared libraries. 7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7983 else 7984 # We preserve .a as extension for shared libraries through AIX4.2 7985 # and later when we are not doing run time linking. 7986 library_names_spec='${libname}${release}.a $libname.a' 7987 soname_spec='${libname}${release}${shared_ext}$major' 7988 fi 7989 shlibpath_var=LIBPATH 7990 fi 7991 ;; 7992 7993amigaos*) 7994 library_names_spec='$libname.ixlibrary $libname.a' 7995 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7996 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' 7997 ;; 7998 7999beos*) 8000 library_names_spec='${libname}${shared_ext}' 8001 dynamic_linker="$host_os ld.so" 8002 shlibpath_var=LIBRARY_PATH 8003 ;; 8004 8005bsdi[45]*) 8006 version_type=linux 8007 need_version=no 8008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8009 soname_spec='${libname}${release}${shared_ext}$major' 8010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8011 shlibpath_var=LD_LIBRARY_PATH 8012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8014 # the default ld.so.conf also contains /usr/contrib/lib and 8015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8016 # libtool to hard-code these into programs 8017 ;; 8018 8019cygwin* | mingw* | pw32*) 8020 version_type=windows 8021 shrext_cmds=".dll" 8022 need_version=no 8023 need_lib_prefix=no 8024 8025 case $GCC,$host_os in 8026 yes,cygwin* | yes,mingw* | yes,pw32*) 8027 library_names_spec='$libname.dll.a' 8028 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8029 postinstall_cmds='base_file=`basename \${file}`~ 8030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8031 dldir=$destdir/`dirname \$dlpath`~ 8032 test -d \$dldir || mkdir -p \$dldir~ 8033 $install_prog $dir/$dlname \$dldir/$dlname~ 8034 chmod a+x \$dldir/$dlname' 8035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8036 dlpath=$dir/\$dldll~ 8037 $rm \$dlpath' 8038 shlibpath_overrides_runpath=yes 8039 8040 case $host_os in 8041 cygwin*) 8042 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8043 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8044 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8045 ;; 8046 mingw*) 8047 # MinGW DLLs use traditional 'lib' prefix 8048 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8049 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8050 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8051 # It is most probably a Windows format PATH printed by 8052 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8053 # path with ; separators, and with drive letters. We can handle the 8054 # drive letters (cygwin fileutils understands them), so leave them, 8055 # especially as we might pass files found there to a mingw objdump, 8056 # which wouldn't understand a cygwinified path. Ahh. 8057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8058 else 8059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8060 fi 8061 ;; 8062 pw32*) 8063 # pw32 DLLs use 'pw' prefix rather than 'lib' 8064 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8065 ;; 8066 esac 8067 ;; 8068 8069 *) 8070 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8071 ;; 8072 esac 8073 dynamic_linker='Win32 ld.exe' 8074 # FIXME: first we should search . and the directory the executable is in 8075 shlibpath_var=PATH 8076 ;; 8077 8078darwin* | rhapsody*) 8079 dynamic_linker="$host_os dyld" 8080 version_type=darwin 8081 need_lib_prefix=no 8082 need_version=no 8083 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8084 soname_spec='${libname}${release}${major}$shared_ext' 8085 shlibpath_overrides_runpath=yes 8086 shlibpath_var=DYLD_LIBRARY_PATH 8087 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8088 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8089 if test "$GCC" = yes; then 8090 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"` 8091 else 8092 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8093 fi 8094 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8095 ;; 8096 8097dgux*) 8098 version_type=linux 8099 need_lib_prefix=no 8100 need_version=no 8101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8102 soname_spec='${libname}${release}${shared_ext}$major' 8103 shlibpath_var=LD_LIBRARY_PATH 8104 ;; 8105 8106freebsd1*) 8107 dynamic_linker=no 8108 ;; 8109 8110kfreebsd*-gnu) 8111 version_type=linux 8112 need_lib_prefix=no 8113 need_version=no 8114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8115 soname_spec='${libname}${release}${shared_ext}$major' 8116 shlibpath_var=LD_LIBRARY_PATH 8117 shlibpath_overrides_runpath=no 8118 hardcode_into_libs=yes 8119 dynamic_linker='GNU ld.so' 8120 ;; 8121 8122freebsd* | dragonfly*) 8123 # DragonFly does not have aout. When/if they implement a new 8124 # versioning mechanism, adjust this. 8125 if test -x /usr/bin/objformat; then 8126 objformat=`/usr/bin/objformat` 8127 else 8128 case $host_os in 8129 freebsd[123]*) objformat=aout ;; 8130 *) objformat=elf ;; 8131 esac 8132 fi 8133 version_type=freebsd-$objformat 8134 case $version_type in 8135 freebsd-elf*) 8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8137 need_version=no 8138 need_lib_prefix=no 8139 ;; 8140 freebsd-*) 8141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8142 need_version=yes 8143 ;; 8144 esac 8145 shlibpath_var=LD_LIBRARY_PATH 8146 case $host_os in 8147 freebsd2*) 8148 shlibpath_overrides_runpath=yes 8149 ;; 8150 freebsd3.[01]* | freebsdelf3.[01]*) 8151 shlibpath_overrides_runpath=yes 8152 hardcode_into_libs=yes 8153 ;; 8154 *) # from 3.2 on 8155 shlibpath_overrides_runpath=no 8156 hardcode_into_libs=yes 8157 ;; 8158 esac 8159 ;; 8160 8161gnu*) 8162 version_type=linux 8163 need_lib_prefix=no 8164 need_version=no 8165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8166 soname_spec='${libname}${release}${shared_ext}$major' 8167 shlibpath_var=LD_LIBRARY_PATH 8168 hardcode_into_libs=yes 8169 ;; 8170 8171hpux9* | hpux10* | hpux11*) 8172 # Give a soname corresponding to the major version so that dld.sl refuses to 8173 # link against other versions. 8174 version_type=sunos 8175 need_lib_prefix=no 8176 need_version=no 8177 case $host_cpu in 8178 ia64*) 8179 shrext_cmds='.so' 8180 hardcode_into_libs=yes 8181 dynamic_linker="$host_os dld.so" 8182 shlibpath_var=LD_LIBRARY_PATH 8183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8185 soname_spec='${libname}${release}${shared_ext}$major' 8186 if test "X$HPUX_IA64_MODE" = X32; then 8187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8188 else 8189 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8190 fi 8191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8192 ;; 8193 hppa*64*) 8194 shrext_cmds='.sl' 8195 hardcode_into_libs=yes 8196 dynamic_linker="$host_os dld.sl" 8197 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8200 soname_spec='${libname}${release}${shared_ext}$major' 8201 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8203 ;; 8204 *) 8205 shrext_cmds='.sl' 8206 dynamic_linker="$host_os dld.sl" 8207 shlibpath_var=SHLIB_PATH 8208 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8210 soname_spec='${libname}${release}${shared_ext}$major' 8211 ;; 8212 esac 8213 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8214 postinstall_cmds='chmod 555 $lib' 8215 ;; 8216 8217irix5* | irix6* | nonstopux*) 8218 case $host_os in 8219 nonstopux*) version_type=nonstopux ;; 8220 *) 8221 if test "$lt_cv_prog_gnu_ld" = yes; then 8222 version_type=linux 8223 else 8224 version_type=irix 8225 fi ;; 8226 esac 8227 need_lib_prefix=no 8228 need_version=no 8229 soname_spec='${libname}${release}${shared_ext}$major' 8230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8231 case $host_os in 8232 irix5* | nonstopux*) 8233 libsuff= shlibsuff= 8234 ;; 8235 *) 8236 case $LD in # libtool.m4 will add one of these switches to LD 8237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8238 libsuff= shlibsuff= libmagic=32-bit;; 8239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8240 libsuff=32 shlibsuff=N32 libmagic=N32;; 8241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8242 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8243 *) libsuff= shlibsuff= libmagic=never-match;; 8244 esac 8245 ;; 8246 esac 8247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8248 shlibpath_overrides_runpath=no 8249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8251 hardcode_into_libs=yes 8252 ;; 8253 8254# No shared lib support for Linux oldld, aout, or coff. 8255linux*oldld* | linux*aout* | linux*coff*) 8256 dynamic_linker=no 8257 ;; 8258 8259# This must be Linux ELF. 8260linux*) 8261 version_type=linux 8262 need_lib_prefix=no 8263 need_version=no 8264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8265 soname_spec='${libname}${release}${shared_ext}$major' 8266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8267 shlibpath_var=LD_LIBRARY_PATH 8268 shlibpath_overrides_runpath=no 8269 # This implies no fast_install, which is unacceptable. 8270 # Some rework will be needed to allow for fast_install 8271 # before this can be enabled. 8272 hardcode_into_libs=yes 8273 8274 # Append ld.so.conf contents to the search path 8275 if test -f /etc/ld.so.conf; then 8276 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8278 fi 8279 8280 # We used to test for /lib/ld.so.1 and disable shared libraries on 8281 # powerpc, because MkLinux only supported shared libraries with the 8282 # GNU dynamic linker. Since this was broken with cross compilers, 8283 # most powerpc-linux boxes support dynamic linking these days and 8284 # people can always --disable-shared, the test was removed, and we 8285 # assume the GNU/Linux dynamic linker is in use. 8286 dynamic_linker='GNU/Linux ld.so' 8287 ;; 8288 8289knetbsd*-gnu) 8290 version_type=linux 8291 need_lib_prefix=no 8292 need_version=no 8293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8294 soname_spec='${libname}${release}${shared_ext}$major' 8295 shlibpath_var=LD_LIBRARY_PATH 8296 shlibpath_overrides_runpath=no 8297 hardcode_into_libs=yes 8298 dynamic_linker='GNU ld.so' 8299 ;; 8300 8301netbsd*) 8302 version_type=sunos 8303 need_lib_prefix=no 8304 need_version=no 8305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8308 dynamic_linker='NetBSD (a.out) ld.so' 8309 else 8310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8311 soname_spec='${libname}${release}${shared_ext}$major' 8312 dynamic_linker='NetBSD ld.elf_so' 8313 fi 8314 shlibpath_var=LD_LIBRARY_PATH 8315 shlibpath_overrides_runpath=yes 8316 hardcode_into_libs=yes 8317 ;; 8318 8319newsos6) 8320 version_type=linux 8321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8322 shlibpath_var=LD_LIBRARY_PATH 8323 shlibpath_overrides_runpath=yes 8324 ;; 8325 8326nto-qnx*) 8327 version_type=linux 8328 need_lib_prefix=no 8329 need_version=no 8330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8331 soname_spec='${libname}${release}${shared_ext}$major' 8332 shlibpath_var=LD_LIBRARY_PATH 8333 shlibpath_overrides_runpath=yes 8334 ;; 8335 8336openbsd*) 8337 version_type=sunos 8338 need_lib_prefix=no 8339 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8340 case $host_os in 8341 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8342 *) need_version=no ;; 8343 esac 8344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8346 shlibpath_var=LD_LIBRARY_PATH 8347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8348 case $host_os in 8349 openbsd2.[89] | openbsd2.[89].*) 8350 shlibpath_overrides_runpath=no 8351 ;; 8352 *) 8353 shlibpath_overrides_runpath=yes 8354 ;; 8355 esac 8356 else 8357 shlibpath_overrides_runpath=yes 8358 fi 8359 ;; 8360 8361os2*) 8362 libname_spec='$name' 8363 shrext_cmds=".dll" 8364 need_lib_prefix=no 8365 library_names_spec='$libname${shared_ext} $libname.a' 8366 dynamic_linker='OS/2 ld.exe' 8367 shlibpath_var=LIBPATH 8368 ;; 8369 8370osf3* | osf4* | osf5*) 8371 version_type=osf 8372 need_lib_prefix=no 8373 need_version=no 8374 soname_spec='${libname}${release}${shared_ext}$major' 8375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8376 shlibpath_var=LD_LIBRARY_PATH 8377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8378 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8379 ;; 8380 8381sco3.2v5*) 8382 version_type=osf 8383 soname_spec='${libname}${release}${shared_ext}$major' 8384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8385 shlibpath_var=LD_LIBRARY_PATH 8386 ;; 8387 8388solaris*) 8389 version_type=linux 8390 need_lib_prefix=no 8391 need_version=no 8392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8393 soname_spec='${libname}${release}${shared_ext}$major' 8394 shlibpath_var=LD_LIBRARY_PATH 8395 shlibpath_overrides_runpath=yes 8396 hardcode_into_libs=yes 8397 # ldd complains unless libraries are executable 8398 postinstall_cmds='chmod +x $lib' 8399 ;; 8400 8401sunos4*) 8402 version_type=sunos 8403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8405 shlibpath_var=LD_LIBRARY_PATH 8406 shlibpath_overrides_runpath=yes 8407 if test "$with_gnu_ld" = yes; then 8408 need_lib_prefix=no 8409 fi 8410 need_version=yes 8411 ;; 8412 8413sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8414 version_type=linux 8415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8416 soname_spec='${libname}${release}${shared_ext}$major' 8417 shlibpath_var=LD_LIBRARY_PATH 8418 case $host_vendor in 8419 sni) 8420 shlibpath_overrides_runpath=no 8421 need_lib_prefix=no 8422 export_dynamic_flag_spec='${wl}-Blargedynsym' 8423 runpath_var=LD_RUN_PATH 8424 ;; 8425 siemens) 8426 need_lib_prefix=no 8427 ;; 8428 motorola) 8429 need_lib_prefix=no 8430 need_version=no 8431 shlibpath_overrides_runpath=no 8432 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8433 ;; 8434 esac 8435 ;; 8436 8437sysv4*MP*) 8438 if test -d /usr/nec ;then 8439 version_type=linux 8440 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8441 soname_spec='$libname${shared_ext}.$major' 8442 shlibpath_var=LD_LIBRARY_PATH 8443 fi 8444 ;; 8445 8446uts4*) 8447 version_type=linux 8448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8449 soname_spec='${libname}${release}${shared_ext}$major' 8450 shlibpath_var=LD_LIBRARY_PATH 8451 ;; 8452 8453*) 8454 dynamic_linker=no 8455 ;; 8456esac 8457echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8458echo "${ECHO_T}$dynamic_linker" >&6 8459test "$dynamic_linker" = no && can_build_shared=no 8460 8461echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8462echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8463hardcode_action= 8464if test -n "$hardcode_libdir_flag_spec" || \ 8465 test -n "$runpath_var" || \ 8466 test "X$hardcode_automatic" = "Xyes" ; then 8467 8468 # We can hardcode non-existant directories. 8469 if test "$hardcode_direct" != no && 8470 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8471 # have to relink, otherwise we might link with an installed library 8472 # when we should be linking with a yet-to-be-installed one 8473 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8474 test "$hardcode_minus_L" != no; then 8475 # Linking always hardcodes the temporary library directory. 8476 hardcode_action=relink 8477 else 8478 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8479 hardcode_action=immediate 8480 fi 8481else 8482 # We cannot hardcode anything, or else we can only hardcode existing 8483 # directories. 8484 hardcode_action=unsupported 8485fi 8486echo "$as_me:$LINENO: result: $hardcode_action" >&5 8487echo "${ECHO_T}$hardcode_action" >&6 8488 8489if test "$hardcode_action" = relink; then 8490 # Fast installation is not supported 8491 enable_fast_install=no 8492elif test "$shlibpath_overrides_runpath" = yes || 8493 test "$enable_shared" = no; then 8494 # Fast installation is not necessary 8495 enable_fast_install=needless 8496fi 8497 8498striplib= 8499old_striplib= 8500echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8501echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8502if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8503 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8504 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8505 echo "$as_me:$LINENO: result: yes" >&5 8506echo "${ECHO_T}yes" >&6 8507else 8508# FIXME - insert some real tests, host_os isn't really good enough 8509 case $host_os in 8510 darwin*) 8511 if test -n "$STRIP" ; then 8512 striplib="$STRIP -x" 8513 echo "$as_me:$LINENO: result: yes" >&5 8514echo "${ECHO_T}yes" >&6 8515 else 8516 echo "$as_me:$LINENO: result: no" >&5 8517echo "${ECHO_T}no" >&6 8518fi 8519 ;; 8520 *) 8521 echo "$as_me:$LINENO: result: no" >&5 8522echo "${ECHO_T}no" >&6 8523 ;; 8524 esac 8525fi 8526 8527if test "x$enable_dlopen" != xyes; then 8528 enable_dlopen=unknown 8529 enable_dlopen_self=unknown 8530 enable_dlopen_self_static=unknown 8531else 8532 lt_cv_dlopen=no 8533 lt_cv_dlopen_libs= 8534 8535 case $host_os in 8536 beos*) 8537 lt_cv_dlopen="load_add_on" 8538 lt_cv_dlopen_libs= 8539 lt_cv_dlopen_self=yes 8540 ;; 8541 8542 mingw* | pw32*) 8543 lt_cv_dlopen="LoadLibrary" 8544 lt_cv_dlopen_libs= 8545 ;; 8546 8547 cygwin*) 8548 lt_cv_dlopen="dlopen" 8549 lt_cv_dlopen_libs= 8550 ;; 8551 8552 darwin*) 8553 # if libdl is installed we need to link against it 8554 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8555echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8556if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8557 echo $ECHO_N "(cached) $ECHO_C" >&6 8558else 8559 ac_check_lib_save_LIBS=$LIBS 8560LIBS="-ldl $LIBS" 8561cat >conftest.$ac_ext <<_ACEOF 8562/* confdefs.h. */ 8563_ACEOF 8564cat confdefs.h >>conftest.$ac_ext 8565cat >>conftest.$ac_ext <<_ACEOF 8566/* end confdefs.h. */ 8567 8568/* Override any gcc2 internal prototype to avoid an error. */ 8569#ifdef __cplusplus 8570extern "C" 8571#endif 8572/* We use char because int might match the return type of a gcc2 8573 builtin and then its argument prototype would still apply. */ 8574char dlopen (); 8575int 8576main () 8577{ 8578dlopen (); 8579 ; 8580 return 0; 8581} 8582_ACEOF 8583rm -f conftest.$ac_objext conftest$ac_exeext 8584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8585 (eval $ac_link) 2>conftest.er1 8586 ac_status=$? 8587 grep -v '^ *+' conftest.er1 >conftest.err 8588 rm -f conftest.er1 8589 cat conftest.err >&5 8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8591 (exit $ac_status); } && 8592 { ac_try='test -z "$ac_c_werror_flag" 8593 || test ! -s conftest.err' 8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8595 (eval $ac_try) 2>&5 8596 ac_status=$? 8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8598 (exit $ac_status); }; } && 8599 { ac_try='test -s conftest$ac_exeext' 8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8601 (eval $ac_try) 2>&5 8602 ac_status=$? 8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8604 (exit $ac_status); }; }; then 8605 ac_cv_lib_dl_dlopen=yes 8606else 8607 echo "$as_me: failed program was:" >&5 8608sed 's/^/| /' conftest.$ac_ext >&5 8609 8610ac_cv_lib_dl_dlopen=no 8611fi 8612rm -f conftest.err conftest.$ac_objext \ 8613 conftest$ac_exeext conftest.$ac_ext 8614LIBS=$ac_check_lib_save_LIBS 8615fi 8616echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8617echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8618if test $ac_cv_lib_dl_dlopen = yes; then 8619 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8620else 8621 8622 lt_cv_dlopen="dyld" 8623 lt_cv_dlopen_libs= 8624 lt_cv_dlopen_self=yes 8625 8626fi 8627 8628 ;; 8629 8630 *) 8631 echo "$as_me:$LINENO: checking for shl_load" >&5 8632echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8633if test "${ac_cv_func_shl_load+set}" = set; then 8634 echo $ECHO_N "(cached) $ECHO_C" >&6 8635else 8636 cat >conftest.$ac_ext <<_ACEOF 8637/* confdefs.h. */ 8638_ACEOF 8639cat confdefs.h >>conftest.$ac_ext 8640cat >>conftest.$ac_ext <<_ACEOF 8641/* end confdefs.h. */ 8642/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8643 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8644#define shl_load innocuous_shl_load 8645 8646/* System header to define __stub macros and hopefully few prototypes, 8647 which can conflict with char shl_load (); below. 8648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8649 <limits.h> exists even on freestanding compilers. */ 8650 8651#ifdef __STDC__ 8652# include <limits.h> 8653#else 8654# include <assert.h> 8655#endif 8656 8657#undef shl_load 8658 8659/* Override any gcc2 internal prototype to avoid an error. */ 8660#ifdef __cplusplus 8661extern "C" 8662{ 8663#endif 8664/* We use char because int might match the return type of a gcc2 8665 builtin and then its argument prototype would still apply. */ 8666char shl_load (); 8667/* The GNU C library defines this for functions which it implements 8668 to always fail with ENOSYS. Some functions are actually named 8669 something starting with __ and the normal name is an alias. */ 8670#if defined (__stub_shl_load) || defined (__stub___shl_load) 8671choke me 8672#else 8673char (*f) () = shl_load; 8674#endif 8675#ifdef __cplusplus 8676} 8677#endif 8678 8679int 8680main () 8681{ 8682return f != shl_load; 8683 ; 8684 return 0; 8685} 8686_ACEOF 8687rm -f conftest.$ac_objext conftest$ac_exeext 8688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8689 (eval $ac_link) 2>conftest.er1 8690 ac_status=$? 8691 grep -v '^ *+' conftest.er1 >conftest.err 8692 rm -f conftest.er1 8693 cat conftest.err >&5 8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8695 (exit $ac_status); } && 8696 { ac_try='test -z "$ac_c_werror_flag" 8697 || test ! -s conftest.err' 8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8699 (eval $ac_try) 2>&5 8700 ac_status=$? 8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8702 (exit $ac_status); }; } && 8703 { ac_try='test -s conftest$ac_exeext' 8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8705 (eval $ac_try) 2>&5 8706 ac_status=$? 8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8708 (exit $ac_status); }; }; then 8709 ac_cv_func_shl_load=yes 8710else 8711 echo "$as_me: failed program was:" >&5 8712sed 's/^/| /' conftest.$ac_ext >&5 8713 8714ac_cv_func_shl_load=no 8715fi 8716rm -f conftest.err conftest.$ac_objext \ 8717 conftest$ac_exeext conftest.$ac_ext 8718fi 8719echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8720echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8721if test $ac_cv_func_shl_load = yes; then 8722 lt_cv_dlopen="shl_load" 8723else 8724 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8725echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8726if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8727 echo $ECHO_N "(cached) $ECHO_C" >&6 8728else 8729 ac_check_lib_save_LIBS=$LIBS 8730LIBS="-ldld $LIBS" 8731cat >conftest.$ac_ext <<_ACEOF 8732/* confdefs.h. */ 8733_ACEOF 8734cat confdefs.h >>conftest.$ac_ext 8735cat >>conftest.$ac_ext <<_ACEOF 8736/* end confdefs.h. */ 8737 8738/* Override any gcc2 internal prototype to avoid an error. */ 8739#ifdef __cplusplus 8740extern "C" 8741#endif 8742/* We use char because int might match the return type of a gcc2 8743 builtin and then its argument prototype would still apply. */ 8744char shl_load (); 8745int 8746main () 8747{ 8748shl_load (); 8749 ; 8750 return 0; 8751} 8752_ACEOF 8753rm -f conftest.$ac_objext conftest$ac_exeext 8754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8755 (eval $ac_link) 2>conftest.er1 8756 ac_status=$? 8757 grep -v '^ *+' conftest.er1 >conftest.err 8758 rm -f conftest.er1 8759 cat conftest.err >&5 8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8761 (exit $ac_status); } && 8762 { ac_try='test -z "$ac_c_werror_flag" 8763 || test ! -s conftest.err' 8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8765 (eval $ac_try) 2>&5 8766 ac_status=$? 8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8768 (exit $ac_status); }; } && 8769 { ac_try='test -s conftest$ac_exeext' 8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8771 (eval $ac_try) 2>&5 8772 ac_status=$? 8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8774 (exit $ac_status); }; }; then 8775 ac_cv_lib_dld_shl_load=yes 8776else 8777 echo "$as_me: failed program was:" >&5 8778sed 's/^/| /' conftest.$ac_ext >&5 8779 8780ac_cv_lib_dld_shl_load=no 8781fi 8782rm -f conftest.err conftest.$ac_objext \ 8783 conftest$ac_exeext conftest.$ac_ext 8784LIBS=$ac_check_lib_save_LIBS 8785fi 8786echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8787echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8788if test $ac_cv_lib_dld_shl_load = yes; then 8789 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8790else 8791 echo "$as_me:$LINENO: checking for dlopen" >&5 8792echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8793if test "${ac_cv_func_dlopen+set}" = set; then 8794 echo $ECHO_N "(cached) $ECHO_C" >&6 8795else 8796 cat >conftest.$ac_ext <<_ACEOF 8797/* confdefs.h. */ 8798_ACEOF 8799cat confdefs.h >>conftest.$ac_ext 8800cat >>conftest.$ac_ext <<_ACEOF 8801/* end confdefs.h. */ 8802/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8803 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8804#define dlopen innocuous_dlopen 8805 8806/* System header to define __stub macros and hopefully few prototypes, 8807 which can conflict with char dlopen (); below. 8808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8809 <limits.h> exists even on freestanding compilers. */ 8810 8811#ifdef __STDC__ 8812# include <limits.h> 8813#else 8814# include <assert.h> 8815#endif 8816 8817#undef dlopen 8818 8819/* Override any gcc2 internal prototype to avoid an error. */ 8820#ifdef __cplusplus 8821extern "C" 8822{ 8823#endif 8824/* We use char because int might match the return type of a gcc2 8825 builtin and then its argument prototype would still apply. */ 8826char dlopen (); 8827/* The GNU C library defines this for functions which it implements 8828 to always fail with ENOSYS. Some functions are actually named 8829 something starting with __ and the normal name is an alias. */ 8830#if defined (__stub_dlopen) || defined (__stub___dlopen) 8831choke me 8832#else 8833char (*f) () = dlopen; 8834#endif 8835#ifdef __cplusplus 8836} 8837#endif 8838 8839int 8840main () 8841{ 8842return f != dlopen; 8843 ; 8844 return 0; 8845} 8846_ACEOF 8847rm -f conftest.$ac_objext conftest$ac_exeext 8848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8849 (eval $ac_link) 2>conftest.er1 8850 ac_status=$? 8851 grep -v '^ *+' conftest.er1 >conftest.err 8852 rm -f conftest.er1 8853 cat conftest.err >&5 8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8855 (exit $ac_status); } && 8856 { ac_try='test -z "$ac_c_werror_flag" 8857 || test ! -s conftest.err' 8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8859 (eval $ac_try) 2>&5 8860 ac_status=$? 8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8862 (exit $ac_status); }; } && 8863 { ac_try='test -s conftest$ac_exeext' 8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8865 (eval $ac_try) 2>&5 8866 ac_status=$? 8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8868 (exit $ac_status); }; }; then 8869 ac_cv_func_dlopen=yes 8870else 8871 echo "$as_me: failed program was:" >&5 8872sed 's/^/| /' conftest.$ac_ext >&5 8873 8874ac_cv_func_dlopen=no 8875fi 8876rm -f conftest.err conftest.$ac_objext \ 8877 conftest$ac_exeext conftest.$ac_ext 8878fi 8879echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8880echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8881if test $ac_cv_func_dlopen = yes; then 8882 lt_cv_dlopen="dlopen" 8883else 8884 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8885echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8886if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8887 echo $ECHO_N "(cached) $ECHO_C" >&6 8888else 8889 ac_check_lib_save_LIBS=$LIBS 8890LIBS="-ldl $LIBS" 8891cat >conftest.$ac_ext <<_ACEOF 8892/* confdefs.h. */ 8893_ACEOF 8894cat confdefs.h >>conftest.$ac_ext 8895cat >>conftest.$ac_ext <<_ACEOF 8896/* end confdefs.h. */ 8897 8898/* Override any gcc2 internal prototype to avoid an error. */ 8899#ifdef __cplusplus 8900extern "C" 8901#endif 8902/* We use char because int might match the return type of a gcc2 8903 builtin and then its argument prototype would still apply. */ 8904char dlopen (); 8905int 8906main () 8907{ 8908dlopen (); 8909 ; 8910 return 0; 8911} 8912_ACEOF 8913rm -f conftest.$ac_objext conftest$ac_exeext 8914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8915 (eval $ac_link) 2>conftest.er1 8916 ac_status=$? 8917 grep -v '^ *+' conftest.er1 >conftest.err 8918 rm -f conftest.er1 8919 cat conftest.err >&5 8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8921 (exit $ac_status); } && 8922 { ac_try='test -z "$ac_c_werror_flag" 8923 || test ! -s conftest.err' 8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8925 (eval $ac_try) 2>&5 8926 ac_status=$? 8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8928 (exit $ac_status); }; } && 8929 { ac_try='test -s conftest$ac_exeext' 8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8931 (eval $ac_try) 2>&5 8932 ac_status=$? 8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8934 (exit $ac_status); }; }; then 8935 ac_cv_lib_dl_dlopen=yes 8936else 8937 echo "$as_me: failed program was:" >&5 8938sed 's/^/| /' conftest.$ac_ext >&5 8939 8940ac_cv_lib_dl_dlopen=no 8941fi 8942rm -f conftest.err conftest.$ac_objext \ 8943 conftest$ac_exeext conftest.$ac_ext 8944LIBS=$ac_check_lib_save_LIBS 8945fi 8946echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8947echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8948if test $ac_cv_lib_dl_dlopen = yes; then 8949 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8950else 8951 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8952echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8953if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8954 echo $ECHO_N "(cached) $ECHO_C" >&6 8955else 8956 ac_check_lib_save_LIBS=$LIBS 8957LIBS="-lsvld $LIBS" 8958cat >conftest.$ac_ext <<_ACEOF 8959/* confdefs.h. */ 8960_ACEOF 8961cat confdefs.h >>conftest.$ac_ext 8962cat >>conftest.$ac_ext <<_ACEOF 8963/* end confdefs.h. */ 8964 8965/* Override any gcc2 internal prototype to avoid an error. */ 8966#ifdef __cplusplus 8967extern "C" 8968#endif 8969/* We use char because int might match the return type of a gcc2 8970 builtin and then its argument prototype would still apply. */ 8971char dlopen (); 8972int 8973main () 8974{ 8975dlopen (); 8976 ; 8977 return 0; 8978} 8979_ACEOF 8980rm -f conftest.$ac_objext conftest$ac_exeext 8981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8982 (eval $ac_link) 2>conftest.er1 8983 ac_status=$? 8984 grep -v '^ *+' conftest.er1 >conftest.err 8985 rm -f conftest.er1 8986 cat conftest.err >&5 8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8988 (exit $ac_status); } && 8989 { ac_try='test -z "$ac_c_werror_flag" 8990 || test ! -s conftest.err' 8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8992 (eval $ac_try) 2>&5 8993 ac_status=$? 8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8995 (exit $ac_status); }; } && 8996 { ac_try='test -s conftest$ac_exeext' 8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8998 (eval $ac_try) 2>&5 8999 ac_status=$? 9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9001 (exit $ac_status); }; }; then 9002 ac_cv_lib_svld_dlopen=yes 9003else 9004 echo "$as_me: failed program was:" >&5 9005sed 's/^/| /' conftest.$ac_ext >&5 9006 9007ac_cv_lib_svld_dlopen=no 9008fi 9009rm -f conftest.err conftest.$ac_objext \ 9010 conftest$ac_exeext conftest.$ac_ext 9011LIBS=$ac_check_lib_save_LIBS 9012fi 9013echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9014echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9015if test $ac_cv_lib_svld_dlopen = yes; then 9016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9017else 9018 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9019echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9020if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9021 echo $ECHO_N "(cached) $ECHO_C" >&6 9022else 9023 ac_check_lib_save_LIBS=$LIBS 9024LIBS="-ldld $LIBS" 9025cat >conftest.$ac_ext <<_ACEOF 9026/* confdefs.h. */ 9027_ACEOF 9028cat confdefs.h >>conftest.$ac_ext 9029cat >>conftest.$ac_ext <<_ACEOF 9030/* end confdefs.h. */ 9031 9032/* Override any gcc2 internal prototype to avoid an error. */ 9033#ifdef __cplusplus 9034extern "C" 9035#endif 9036/* We use char because int might match the return type of a gcc2 9037 builtin and then its argument prototype would still apply. */ 9038char dld_link (); 9039int 9040main () 9041{ 9042dld_link (); 9043 ; 9044 return 0; 9045} 9046_ACEOF 9047rm -f conftest.$ac_objext conftest$ac_exeext 9048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9049 (eval $ac_link) 2>conftest.er1 9050 ac_status=$? 9051 grep -v '^ *+' conftest.er1 >conftest.err 9052 rm -f conftest.er1 9053 cat conftest.err >&5 9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9055 (exit $ac_status); } && 9056 { ac_try='test -z "$ac_c_werror_flag" 9057 || test ! -s conftest.err' 9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9059 (eval $ac_try) 2>&5 9060 ac_status=$? 9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9062 (exit $ac_status); }; } && 9063 { ac_try='test -s conftest$ac_exeext' 9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9065 (eval $ac_try) 2>&5 9066 ac_status=$? 9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9068 (exit $ac_status); }; }; then 9069 ac_cv_lib_dld_dld_link=yes 9070else 9071 echo "$as_me: failed program was:" >&5 9072sed 's/^/| /' conftest.$ac_ext >&5 9073 9074ac_cv_lib_dld_dld_link=no 9075fi 9076rm -f conftest.err conftest.$ac_objext \ 9077 conftest$ac_exeext conftest.$ac_ext 9078LIBS=$ac_check_lib_save_LIBS 9079fi 9080echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9081echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9082if test $ac_cv_lib_dld_dld_link = yes; then 9083 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9084fi 9085 9086 9087fi 9088 9089 9090fi 9091 9092 9093fi 9094 9095 9096fi 9097 9098 9099fi 9100 9101 ;; 9102 esac 9103 9104 if test "x$lt_cv_dlopen" != xno; then 9105 enable_dlopen=yes 9106 else 9107 enable_dlopen=no 9108 fi 9109 9110 case $lt_cv_dlopen in 9111 dlopen) 9112 save_CPPFLAGS="$CPPFLAGS" 9113 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9114 9115 save_LDFLAGS="$LDFLAGS" 9116 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9117 9118 save_LIBS="$LIBS" 9119 LIBS="$lt_cv_dlopen_libs $LIBS" 9120 9121 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9122echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9123if test "${lt_cv_dlopen_self+set}" = set; then 9124 echo $ECHO_N "(cached) $ECHO_C" >&6 9125else 9126 if test "$cross_compiling" = yes; then : 9127 lt_cv_dlopen_self=cross 9128else 9129 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9130 lt_status=$lt_dlunknown 9131 cat > conftest.$ac_ext <<EOF 9132#line 9132 "configure" 9133#include "confdefs.h" 9134 9135#if HAVE_DLFCN_H 9136#include <dlfcn.h> 9137#endif 9138 9139#include <stdio.h> 9140 9141#ifdef RTLD_GLOBAL 9142# define LT_DLGLOBAL RTLD_GLOBAL 9143#else 9144# ifdef DL_GLOBAL 9145# define LT_DLGLOBAL DL_GLOBAL 9146# else 9147# define LT_DLGLOBAL 0 9148# endif 9149#endif 9150 9151/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9152 find out it does not work in some platform. */ 9153#ifndef LT_DLLAZY_OR_NOW 9154# ifdef RTLD_LAZY 9155# define LT_DLLAZY_OR_NOW RTLD_LAZY 9156# else 9157# ifdef DL_LAZY 9158# define LT_DLLAZY_OR_NOW DL_LAZY 9159# else 9160# ifdef RTLD_NOW 9161# define LT_DLLAZY_OR_NOW RTLD_NOW 9162# else 9163# ifdef DL_NOW 9164# define LT_DLLAZY_OR_NOW DL_NOW 9165# else 9166# define LT_DLLAZY_OR_NOW 0 9167# endif 9168# endif 9169# endif 9170# endif 9171#endif 9172 9173#ifdef __cplusplus 9174extern "C" void exit (int); 9175#endif 9176 9177void fnord() { int i=42;} 9178int main () 9179{ 9180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9181 int status = $lt_dlunknown; 9182 9183 if (self) 9184 { 9185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9186 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9187 /* dlclose (self); */ 9188 } 9189 9190 exit (status); 9191} 9192EOF 9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9194 (eval $ac_link) 2>&5 9195 ac_status=$? 9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9198 (./conftest; exit; ) >&5 2>/dev/null 9199 lt_status=$? 9200 case x$lt_status in 9201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9203 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9204 esac 9205 else : 9206 # compilation failed 9207 lt_cv_dlopen_self=no 9208 fi 9209fi 9210rm -fr conftest* 9211 9212 9213fi 9214echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9215echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9216 9217 if test "x$lt_cv_dlopen_self" = xyes; then 9218 LDFLAGS="$LDFLAGS $link_static_flag" 9219 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9220echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9221if test "${lt_cv_dlopen_self_static+set}" = set; then 9222 echo $ECHO_N "(cached) $ECHO_C" >&6 9223else 9224 if test "$cross_compiling" = yes; then : 9225 lt_cv_dlopen_self_static=cross 9226else 9227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9228 lt_status=$lt_dlunknown 9229 cat > conftest.$ac_ext <<EOF 9230#line 9230 "configure" 9231#include "confdefs.h" 9232 9233#if HAVE_DLFCN_H 9234#include <dlfcn.h> 9235#endif 9236 9237#include <stdio.h> 9238 9239#ifdef RTLD_GLOBAL 9240# define LT_DLGLOBAL RTLD_GLOBAL 9241#else 9242# ifdef DL_GLOBAL 9243# define LT_DLGLOBAL DL_GLOBAL 9244# else 9245# define LT_DLGLOBAL 0 9246# endif 9247#endif 9248 9249/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9250 find out it does not work in some platform. */ 9251#ifndef LT_DLLAZY_OR_NOW 9252# ifdef RTLD_LAZY 9253# define LT_DLLAZY_OR_NOW RTLD_LAZY 9254# else 9255# ifdef DL_LAZY 9256# define LT_DLLAZY_OR_NOW DL_LAZY 9257# else 9258# ifdef RTLD_NOW 9259# define LT_DLLAZY_OR_NOW RTLD_NOW 9260# else 9261# ifdef DL_NOW 9262# define LT_DLLAZY_OR_NOW DL_NOW 9263# else 9264# define LT_DLLAZY_OR_NOW 0 9265# endif 9266# endif 9267# endif 9268# endif 9269#endif 9270 9271#ifdef __cplusplus 9272extern "C" void exit (int); 9273#endif 9274 9275void fnord() { int i=42;} 9276int main () 9277{ 9278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9279 int status = $lt_dlunknown; 9280 9281 if (self) 9282 { 9283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9284 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9285 /* dlclose (self); */ 9286 } 9287 9288 exit (status); 9289} 9290EOF 9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9292 (eval $ac_link) 2>&5 9293 ac_status=$? 9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9295 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9296 (./conftest; exit; ) >&5 2>/dev/null 9297 lt_status=$? 9298 case x$lt_status in 9299 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9300 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9301 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9302 esac 9303 else : 9304 # compilation failed 9305 lt_cv_dlopen_self_static=no 9306 fi 9307fi 9308rm -fr conftest* 9309 9310 9311fi 9312echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9313echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9314 fi 9315 9316 CPPFLAGS="$save_CPPFLAGS" 9317 LDFLAGS="$save_LDFLAGS" 9318 LIBS="$save_LIBS" 9319 ;; 9320 esac 9321 9322 case $lt_cv_dlopen_self in 9323 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9324 *) enable_dlopen_self=unknown ;; 9325 esac 9326 9327 case $lt_cv_dlopen_self_static in 9328 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9329 *) enable_dlopen_self_static=unknown ;; 9330 esac 9331fi 9332 9333 9334# Report which librarie types wil actually be built 9335echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9336echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9337echo "$as_me:$LINENO: result: $can_build_shared" >&5 9338echo "${ECHO_T}$can_build_shared" >&6 9339 9340echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9341echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9342test "$can_build_shared" = "no" && enable_shared=no 9343 9344# On AIX, shared libraries and static libraries use the same namespace, and 9345# are all built from PIC. 9346case $host_os in 9347aix3*) 9348 test "$enable_shared" = yes && enable_static=no 9349 if test -n "$RANLIB"; then 9350 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9351 postinstall_cmds='$RANLIB $lib' 9352 fi 9353 ;; 9354 9355aix4* | aix5*) 9356 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9357 test "$enable_shared" = yes && enable_static=no 9358 fi 9359 ;; 9360esac 9361echo "$as_me:$LINENO: result: $enable_shared" >&5 9362echo "${ECHO_T}$enable_shared" >&6 9363 9364echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9365echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9366# Make sure either enable_shared or enable_static is yes. 9367test "$enable_shared" = yes || enable_static=yes 9368echo "$as_me:$LINENO: result: $enable_static" >&5 9369echo "${ECHO_T}$enable_static" >&6 9370 9371# The else clause should only fire when bootstrapping the 9372# libtool distribution, otherwise you forgot to ship ltmain.sh 9373# with your package, and you will get complaints that there are 9374# no rules to generate ltmain.sh. 9375if test -f "$ltmain"; then 9376 # See if we are running on zsh, and set the options which allow our commands through 9377 # without removal of \ escapes. 9378 if test -n "${ZSH_VERSION+set}" ; then 9379 setopt NO_GLOB_SUBST 9380 fi 9381 # Now quote all the things that may contain metacharacters while being 9382 # careful not to overquote the AC_SUBSTed values. We take copies of the 9383 # variables and quote the copies for generation of the libtool script. 9384 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9385 SED SHELL STRIP \ 9386 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9387 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9388 deplibs_check_method reload_flag reload_cmds need_locks \ 9389 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9390 lt_cv_sys_global_symbol_to_c_name_address \ 9391 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9392 old_postinstall_cmds old_postuninstall_cmds \ 9393 compiler \ 9394 CC \ 9395 LD \ 9396 lt_prog_compiler_wl \ 9397 lt_prog_compiler_pic \ 9398 lt_prog_compiler_static \ 9399 lt_prog_compiler_no_builtin_flag \ 9400 export_dynamic_flag_spec \ 9401 thread_safe_flag_spec \ 9402 whole_archive_flag_spec \ 9403 enable_shared_with_static_runtimes \ 9404 old_archive_cmds \ 9405 old_archive_from_new_cmds \ 9406 predep_objects \ 9407 postdep_objects \ 9408 predeps \ 9409 postdeps \ 9410 compiler_lib_search_path \ 9411 archive_cmds \ 9412 archive_expsym_cmds \ 9413 postinstall_cmds \ 9414 postuninstall_cmds \ 9415 old_archive_from_expsyms_cmds \ 9416 allow_undefined_flag \ 9417 no_undefined_flag \ 9418 export_symbols_cmds \ 9419 hardcode_libdir_flag_spec \ 9420 hardcode_libdir_flag_spec_ld \ 9421 hardcode_libdir_separator \ 9422 hardcode_automatic \ 9423 module_cmds \ 9424 module_expsym_cmds \ 9425 lt_cv_prog_compiler_c_o \ 9426 exclude_expsyms \ 9427 include_expsyms; do 9428 9429 case $var in 9430 old_archive_cmds | \ 9431 old_archive_from_new_cmds | \ 9432 archive_cmds | \ 9433 archive_expsym_cmds | \ 9434 module_cmds | \ 9435 module_expsym_cmds | \ 9436 old_archive_from_expsyms_cmds | \ 9437 export_symbols_cmds | \ 9438 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9439 postinstall_cmds | postuninstall_cmds | \ 9440 old_postinstall_cmds | old_postuninstall_cmds | \ 9441 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9442 # Double-quote double-evaled strings. 9443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9444 ;; 9445 *) 9446 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9447 ;; 9448 esac 9449 done 9450 9451 case $lt_echo in 9452 *'\$0 --fallback-echo"') 9453 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9454 ;; 9455 esac 9456 9457cfgfile="${ofile}T" 9458 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9459 $rm -f "$cfgfile" 9460 { echo "$as_me:$LINENO: creating $ofile" >&5 9461echo "$as_me: creating $ofile" >&6;} 9462 9463 cat <<__EOF__ >> "$cfgfile" 9464#! $SHELL 9465 9466# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9467# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9468# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9469# 9470# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9471# Free Software Foundation, Inc. 9472# 9473# This file is part of GNU Libtool: 9474# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9475# 9476# This program is free software; you can redistribute it and/or modify 9477# it under the terms of the GNU General Public License as published by 9478# the Free Software Foundation; either version 2 of the License, or 9479# (at your option) any later version. 9480# 9481# This program is distributed in the hope that it will be useful, but 9482# WITHOUT ANY WARRANTY; without even the implied warranty of 9483# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9484# General Public License for more details. 9485# 9486# You should have received a copy of the GNU General Public License 9487# along with this program; if not, write to the Free Software 9488# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9489# 9490# As a special exception to the GNU General Public License, if you 9491# distribute this file as part of a program that contains a 9492# configuration script generated by Autoconf, you may include it under 9493# the same distribution terms that you use for the rest of that program. 9494 9495# A sed program that does not truncate output. 9496SED=$lt_SED 9497 9498# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9499Xsed="$SED -e 1s/^X//" 9500 9501# The HP-UX ksh and POSIX shell print the target directory to stdout 9502# if CDPATH is set. 9503(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9504 9505# The names of the tagged configurations supported by this script. 9506available_tags= 9507 9508# ### BEGIN LIBTOOL CONFIG 9509 9510# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9511 9512# Shell to use when invoking shell scripts. 9513SHELL=$lt_SHELL 9514 9515# Whether or not to build shared libraries. 9516build_libtool_libs=$enable_shared 9517 9518# Whether or not to build static libraries. 9519build_old_libs=$enable_static 9520 9521# Whether or not to add -lc for building shared libraries. 9522build_libtool_need_lc=$archive_cmds_need_lc 9523 9524# Whether or not to disallow shared libs when runtime libs are static 9525allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9526 9527# Whether or not to optimize for fast installation. 9528fast_install=$enable_fast_install 9529 9530# The host system. 9531host_alias=$host_alias 9532host=$host 9533host_os=$host_os 9534 9535# The build system. 9536build_alias=$build_alias 9537build=$build 9538build_os=$build_os 9539 9540# An echo program that does not interpret backslashes. 9541echo=$lt_echo 9542 9543# The archiver. 9544AR=$lt_AR 9545AR_FLAGS=$lt_AR_FLAGS 9546 9547# A C compiler. 9548LTCC=$lt_LTCC 9549 9550# A language-specific compiler. 9551CC=$lt_compiler 9552 9553# Is the compiler the GNU C compiler? 9554with_gcc=$GCC 9555 9556# An ERE matcher. 9557EGREP=$lt_EGREP 9558 9559# The linker used to build libraries. 9560LD=$lt_LD 9561 9562# Whether we need hard or soft links. 9563LN_S=$lt_LN_S 9564 9565# A BSD-compatible nm program. 9566NM=$lt_NM 9567 9568# A symbol stripping program 9569STRIP=$lt_STRIP 9570 9571# Used to examine libraries when file_magic_cmd begins "file" 9572MAGIC_CMD=$MAGIC_CMD 9573 9574# Used on cygwin: DLL creation program. 9575DLLTOOL="$DLLTOOL" 9576 9577# Used on cygwin: object dumper. 9578OBJDUMP="$OBJDUMP" 9579 9580# Used on cygwin: assembler. 9581AS="$AS" 9582 9583# The name of the directory that contains temporary libtool files. 9584objdir=$objdir 9585 9586# How to create reloadable object files. 9587reload_flag=$lt_reload_flag 9588reload_cmds=$lt_reload_cmds 9589 9590# How to pass a linker flag through the compiler. 9591wl=$lt_lt_prog_compiler_wl 9592 9593# Object file suffix (normally "o"). 9594objext="$ac_objext" 9595 9596# Old archive suffix (normally "a"). 9597libext="$libext" 9598 9599# Shared library suffix (normally ".so"). 9600shrext_cmds='$shrext_cmds' 9601 9602# Executable file suffix (normally ""). 9603exeext="$exeext" 9604 9605# Additional compiler flags for building library objects. 9606pic_flag=$lt_lt_prog_compiler_pic 9607pic_mode=$pic_mode 9608 9609# What is the maximum length of a command? 9610max_cmd_len=$lt_cv_sys_max_cmd_len 9611 9612# Does compiler simultaneously support -c and -o options? 9613compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9614 9615# Must we lock files when doing compilation? 9616need_locks=$lt_need_locks 9617 9618# Do we need the lib prefix for modules? 9619need_lib_prefix=$need_lib_prefix 9620 9621# Do we need a version for libraries? 9622need_version=$need_version 9623 9624# Whether dlopen is supported. 9625dlopen_support=$enable_dlopen 9626 9627# Whether dlopen of programs is supported. 9628dlopen_self=$enable_dlopen_self 9629 9630# Whether dlopen of statically linked programs is supported. 9631dlopen_self_static=$enable_dlopen_self_static 9632 9633# Compiler flag to prevent dynamic linking. 9634link_static_flag=$lt_lt_prog_compiler_static 9635 9636# Compiler flag to turn off builtin functions. 9637no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9638 9639# Compiler flag to allow reflexive dlopens. 9640export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9641 9642# Compiler flag to generate shared objects directly from archives. 9643whole_archive_flag_spec=$lt_whole_archive_flag_spec 9644 9645# Compiler flag to generate thread-safe objects. 9646thread_safe_flag_spec=$lt_thread_safe_flag_spec 9647 9648# Library versioning type. 9649version_type=$version_type 9650 9651# Format of library name prefix. 9652libname_spec=$lt_libname_spec 9653 9654# List of archive names. First name is the real one, the rest are links. 9655# The last name is the one that the linker finds with -lNAME. 9656library_names_spec=$lt_library_names_spec 9657 9658# The coded name of the library, if different from the real name. 9659soname_spec=$lt_soname_spec 9660 9661# Commands used to build and install an old-style archive. 9662RANLIB=$lt_RANLIB 9663old_archive_cmds=$lt_old_archive_cmds 9664old_postinstall_cmds=$lt_old_postinstall_cmds 9665old_postuninstall_cmds=$lt_old_postuninstall_cmds 9666 9667# Create an old-style archive from a shared archive. 9668old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9669 9670# Create a temporary old-style archive to link instead of a shared archive. 9671old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9672 9673# Commands used to build and install a shared archive. 9674archive_cmds=$lt_archive_cmds 9675archive_expsym_cmds=$lt_archive_expsym_cmds 9676postinstall_cmds=$lt_postinstall_cmds 9677postuninstall_cmds=$lt_postuninstall_cmds 9678 9679# Commands used to build a loadable module (assumed same as above if empty) 9680module_cmds=$lt_module_cmds 9681module_expsym_cmds=$lt_module_expsym_cmds 9682 9683# Commands to strip libraries. 9684old_striplib=$lt_old_striplib 9685striplib=$lt_striplib 9686 9687# Dependencies to place before the objects being linked to create a 9688# shared library. 9689predep_objects=$lt_predep_objects 9690 9691# Dependencies to place after the objects being linked to create a 9692# shared library. 9693postdep_objects=$lt_postdep_objects 9694 9695# Dependencies to place before the objects being linked to create a 9696# shared library. 9697predeps=$lt_predeps 9698 9699# Dependencies to place after the objects being linked to create a 9700# shared library. 9701postdeps=$lt_postdeps 9702 9703# The library search path used internally by the compiler when linking 9704# a shared library. 9705compiler_lib_search_path=$lt_compiler_lib_search_path 9706 9707# Method to check whether dependent libraries are shared objects. 9708deplibs_check_method=$lt_deplibs_check_method 9709 9710# Command to use when deplibs_check_method == file_magic. 9711file_magic_cmd=$lt_file_magic_cmd 9712 9713# Flag that allows shared libraries with undefined symbols to be built. 9714allow_undefined_flag=$lt_allow_undefined_flag 9715 9716# Flag that forces no undefined symbols. 9717no_undefined_flag=$lt_no_undefined_flag 9718 9719# Commands used to finish a libtool library installation in a directory. 9720finish_cmds=$lt_finish_cmds 9721 9722# Same as above, but a single script fragment to be evaled but not shown. 9723finish_eval=$lt_finish_eval 9724 9725# Take the output of nm and produce a listing of raw symbols and C names. 9726global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9727 9728# Transform the output of nm in a proper C declaration 9729global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9730 9731# Transform the output of nm in a C name address pair 9732global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9733 9734# This is the shared library runtime path variable. 9735runpath_var=$runpath_var 9736 9737# This is the shared library path variable. 9738shlibpath_var=$shlibpath_var 9739 9740# Is shlibpath searched before the hard-coded library search path? 9741shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9742 9743# How to hardcode a shared library path into an executable. 9744hardcode_action=$hardcode_action 9745 9746# Whether we should hardcode library paths into libraries. 9747hardcode_into_libs=$hardcode_into_libs 9748 9749# Flag to hardcode \$libdir into a binary during linking. 9750# This must work even if \$libdir does not exist. 9751hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9752 9753# If ld is used when linking, flag to hardcode \$libdir into 9754# a binary during linking. This must work even if \$libdir does 9755# not exist. 9756hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9757 9758# Whether we need a single -rpath flag with a separated argument. 9759hardcode_libdir_separator=$lt_hardcode_libdir_separator 9760 9761# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9762# resulting binary. 9763hardcode_direct=$hardcode_direct 9764 9765# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9766# resulting binary. 9767hardcode_minus_L=$hardcode_minus_L 9768 9769# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9770# the resulting binary. 9771hardcode_shlibpath_var=$hardcode_shlibpath_var 9772 9773# Set to yes if building a shared library automatically hardcodes DIR into the library 9774# and all subsequent libraries and executables linked against it. 9775hardcode_automatic=$hardcode_automatic 9776 9777# Variables whose values should be saved in libtool wrapper scripts and 9778# restored at relink time. 9779variables_saved_for_relink="$variables_saved_for_relink" 9780 9781# Whether libtool must link a program against all its dependency libraries. 9782link_all_deplibs=$link_all_deplibs 9783 9784# Compile-time system search path for libraries 9785sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9786 9787# Run-time system search path for libraries 9788sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9789 9790# Fix the shell variable \$srcfile for the compiler. 9791fix_srcfile_path="$fix_srcfile_path" 9792 9793# Set to yes if exported symbols are required. 9794always_export_symbols=$always_export_symbols 9795 9796# The commands to list exported symbols. 9797export_symbols_cmds=$lt_export_symbols_cmds 9798 9799# The commands to extract the exported symbol list from a shared archive. 9800extract_expsyms_cmds=$lt_extract_expsyms_cmds 9801 9802# Symbols that should not be listed in the preloaded symbols. 9803exclude_expsyms=$lt_exclude_expsyms 9804 9805# Symbols that must always be exported. 9806include_expsyms=$lt_include_expsyms 9807 9808# ### END LIBTOOL CONFIG 9809 9810__EOF__ 9811 9812 9813 case $host_os in 9814 aix3*) 9815 cat <<\EOF >> "$cfgfile" 9816 9817# AIX sometimes has problems with the GCC collect2 program. For some 9818# reason, if we set the COLLECT_NAMES environment variable, the problems 9819# vanish in a puff of smoke. 9820if test "X${COLLECT_NAMES+set}" != Xset; then 9821 COLLECT_NAMES= 9822 export COLLECT_NAMES 9823fi 9824EOF 9825 ;; 9826 esac 9827 9828 # We use sed instead of cat because bash on DJGPP gets confused if 9829 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9830 # text mode, it properly converts lines to CR/LF. This bash problem 9831 # is reportedly fixed, but why not run on old versions too? 9832 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9833 9834 mv -f "$cfgfile" "$ofile" || \ 9835 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9836 chmod +x "$ofile" 9837 9838else 9839 # If there is no Makefile yet, we rely on a make rule to execute 9840 # `config.status --recheck' to rerun these tests and create the 9841 # libtool script then. 9842 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9843 if test -f "$ltmain_in"; then 9844 test -f Makefile && make "$ltmain" 9845 fi 9846fi 9847 9848 9849ac_ext=c 9850ac_cpp='$CPP $CPPFLAGS' 9851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9853ac_compiler_gnu=$ac_cv_c_compiler_gnu 9854 9855CC="$lt_save_CC" 9856 9857 9858# Check whether --with-tags or --without-tags was given. 9859if test "${with_tags+set}" = set; then 9860 withval="$with_tags" 9861 tagnames="$withval" 9862fi; 9863 9864if test -f "$ltmain" && test -n "$tagnames"; then 9865 if test ! -f "${ofile}"; then 9866 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9867echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9868 fi 9869 9870 if test -z "$LTCC"; then 9871 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9872 if test -z "$LTCC"; then 9873 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9874echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9875 else 9876 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9877echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9878 fi 9879 fi 9880 9881 # Extract list of available tagged configurations in $ofile. 9882 # Note that this assumes the entire list is on one line. 9883 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9884 9885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9886 for tagname in $tagnames; do 9887 IFS="$lt_save_ifs" 9888 # Check whether tagname contains only valid characters 9889 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9890 "") ;; 9891 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9892echo "$as_me: error: invalid tag name: $tagname" >&2;} 9893 { (exit 1); exit 1; }; } 9894 ;; 9895 esac 9896 9897 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9898 then 9899 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9900echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9901 { (exit 1); exit 1; }; } 9902 fi 9903 9904 # Update the list of available tags. 9905 if test -n "$tagname"; then 9906 echo appending configuration tag \"$tagname\" to $ofile 9907 9908 case $tagname in 9909 CXX) 9910 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9911 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9912 (test "X$CXX" != "Xg++"))) ; then 9913 ac_ext=cc 9914ac_cpp='$CXXCPP $CPPFLAGS' 9915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9918 9919 9920 9921 9922archive_cmds_need_lc_CXX=no 9923allow_undefined_flag_CXX= 9924always_export_symbols_CXX=no 9925archive_expsym_cmds_CXX= 9926export_dynamic_flag_spec_CXX= 9927hardcode_direct_CXX=no 9928hardcode_libdir_flag_spec_CXX= 9929hardcode_libdir_flag_spec_ld_CXX= 9930hardcode_libdir_separator_CXX= 9931hardcode_minus_L_CXX=no 9932hardcode_automatic_CXX=no 9933module_cmds_CXX= 9934module_expsym_cmds_CXX= 9935link_all_deplibs_CXX=unknown 9936old_archive_cmds_CXX=$old_archive_cmds 9937no_undefined_flag_CXX= 9938whole_archive_flag_spec_CXX= 9939enable_shared_with_static_runtimes_CXX=no 9940 9941# Dependencies to place before and after the object being linked: 9942predep_objects_CXX= 9943postdep_objects_CXX= 9944predeps_CXX= 9945postdeps_CXX= 9946compiler_lib_search_path_CXX= 9947 9948# Source file extension for C++ test sources. 9949ac_ext=cpp 9950 9951# Object file extension for compiled C++ test sources. 9952objext=o 9953objext_CXX=$objext 9954 9955# Code to be used in simple compile tests 9956lt_simple_compile_test_code="int some_variable = 0;\n" 9957 9958# Code to be used in simple link tests 9959lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9960 9961# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9962 9963# If no C compiler was specified, use CC. 9964LTCC=${LTCC-"$CC"} 9965 9966# Allow CC to be a program name with arguments. 9967compiler=$CC 9968 9969 9970# save warnings/boilerplate of simple test code 9971ac_outfile=conftest.$ac_objext 9972printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9973eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9974_lt_compiler_boilerplate=`cat conftest.err` 9975$rm conftest* 9976 9977ac_outfile=conftest.$ac_objext 9978printf "$lt_simple_link_test_code" >conftest.$ac_ext 9979eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9980_lt_linker_boilerplate=`cat conftest.err` 9981$rm conftest* 9982 9983 9984# Allow CC to be a program name with arguments. 9985lt_save_CC=$CC 9986lt_save_LD=$LD 9987lt_save_GCC=$GCC 9988GCC=$GXX 9989lt_save_with_gnu_ld=$with_gnu_ld 9990lt_save_path_LD=$lt_cv_path_LD 9991if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9992 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9993else 9994 unset lt_cv_prog_gnu_ld 9995fi 9996if test -n "${lt_cv_path_LDCXX+set}"; then 9997 lt_cv_path_LD=$lt_cv_path_LDCXX 9998else 9999 unset lt_cv_path_LD 10000fi 10001test -z "${LDCXX+set}" || LD=$LDCXX 10002CC=${CXX-"c++"} 10003compiler=$CC 10004compiler_CXX=$CC 10005for cc_temp in $compiler""; do 10006 case $cc_temp in 10007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10009 \-*) ;; 10010 *) break;; 10011 esac 10012done 10013cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10014 10015 10016# We don't want -fno-exception wen compiling C++ code, so set the 10017# no_builtin_flag separately 10018if test "$GXX" = yes; then 10019 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10020else 10021 lt_prog_compiler_no_builtin_flag_CXX= 10022fi 10023 10024if test "$GXX" = yes; then 10025 # Set up default GNU C++ configuration 10026 10027 10028# Check whether --with-gnu-ld or --without-gnu-ld was given. 10029if test "${with_gnu_ld+set}" = set; then 10030 withval="$with_gnu_ld" 10031 test "$withval" = no || with_gnu_ld=yes 10032else 10033 with_gnu_ld=no 10034fi; 10035ac_prog=ld 10036if test "$GCC" = yes; then 10037 # Check if gcc -print-prog-name=ld gives a path. 10038 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10039echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10040 case $host in 10041 *-*-mingw*) 10042 # gcc leaves a trailing carriage return which upsets mingw 10043 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10044 *) 10045 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10046 esac 10047 case $ac_prog in 10048 # Accept absolute paths. 10049 [\\/]* | ?:[\\/]*) 10050 re_direlt='/[^/][^/]*/\.\./' 10051 # Canonicalize the pathname of ld 10052 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10053 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10054 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10055 done 10056 test -z "$LD" && LD="$ac_prog" 10057 ;; 10058 "") 10059 # If it fails, then pretend we aren't using GCC. 10060 ac_prog=ld 10061 ;; 10062 *) 10063 # If it is relative, then search for the first ld in PATH. 10064 with_gnu_ld=unknown 10065 ;; 10066 esac 10067elif test "$with_gnu_ld" = yes; then 10068 echo "$as_me:$LINENO: checking for GNU ld" >&5 10069echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10070else 10071 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10072echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10073fi 10074if test "${lt_cv_path_LD+set}" = set; then 10075 echo $ECHO_N "(cached) $ECHO_C" >&6 10076else 10077 if test -z "$LD"; then 10078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10079 for ac_dir in $PATH; do 10080 IFS="$lt_save_ifs" 10081 test -z "$ac_dir" && ac_dir=. 10082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10083 lt_cv_path_LD="$ac_dir/$ac_prog" 10084 # Check to see if the program is GNU ld. I'd rather use --version, 10085 # but apparently some variants of GNU ld only accept -v. 10086 # Break only if it was the GNU/non-GNU ld that we prefer. 10087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10088 *GNU* | *'with BFD'*) 10089 test "$with_gnu_ld" != no && break 10090 ;; 10091 *) 10092 test "$with_gnu_ld" != yes && break 10093 ;; 10094 esac 10095 fi 10096 done 10097 IFS="$lt_save_ifs" 10098else 10099 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10100fi 10101fi 10102 10103LD="$lt_cv_path_LD" 10104if test -n "$LD"; then 10105 echo "$as_me:$LINENO: result: $LD" >&5 10106echo "${ECHO_T}$LD" >&6 10107else 10108 echo "$as_me:$LINENO: result: no" >&5 10109echo "${ECHO_T}no" >&6 10110fi 10111test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10112echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10113 { (exit 1); exit 1; }; } 10114echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10115echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10116if test "${lt_cv_prog_gnu_ld+set}" = set; then 10117 echo $ECHO_N "(cached) $ECHO_C" >&6 10118else 10119 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10120case `$LD -v 2>&1 </dev/null` in 10121*GNU* | *'with BFD'*) 10122 lt_cv_prog_gnu_ld=yes 10123 ;; 10124*) 10125 lt_cv_prog_gnu_ld=no 10126 ;; 10127esac 10128fi 10129echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10130echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10131with_gnu_ld=$lt_cv_prog_gnu_ld 10132 10133 10134 10135 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10136 # archiving commands below assume that GNU ld is being used. 10137 if test "$with_gnu_ld" = yes; then 10138 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10139 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' 10140 10141 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10142 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10143 10144 # If archive_cmds runs LD, not CC, wlarc should be empty 10145 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10146 # investigate it a little bit more. (MM) 10147 wlarc='${wl}' 10148 10149 # ancient GNU ld didn't support --whole-archive et. al. 10150 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10151 grep 'no-whole-archive' > /dev/null; then 10152 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10153 else 10154 whole_archive_flag_spec_CXX= 10155 fi 10156 else 10157 with_gnu_ld=no 10158 wlarc= 10159 10160 # A generic and very simple default shared library creation 10161 # command for GNU C++ for the case where it uses the native 10162 # linker, instead of GNU ld. If possible, this setting should 10163 # overridden to take advantage of the native linker features on 10164 # the platform it is being used on. 10165 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10166 fi 10167 10168 # Commands to make compiler produce verbose output that lists 10169 # what "hidden" libraries, object files and flags are used when 10170 # linking a shared library. 10171 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10172 10173else 10174 GXX=no 10175 with_gnu_ld=no 10176 wlarc= 10177fi 10178 10179# PORTME: fill in a description of your system's C++ link characteristics 10180echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10181echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10182ld_shlibs_CXX=yes 10183case $host_os in 10184 aix3*) 10185 # FIXME: insert proper C++ library support 10186 ld_shlibs_CXX=no 10187 ;; 10188 aix4* | aix5*) 10189 if test "$host_cpu" = ia64; then 10190 # On IA64, the linker does run time linking by default, so we don't 10191 # have to do anything special. 10192 aix_use_runtimelinking=no 10193 exp_sym_flag='-Bexport' 10194 no_entry_flag="" 10195 else 10196 aix_use_runtimelinking=no 10197 10198 # Test if we are trying to use run time linking or normal 10199 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10200 # need to do runtime linking. 10201 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10202 for ld_flag in $LDFLAGS; do 10203 case $ld_flag in 10204 *-brtl*) 10205 aix_use_runtimelinking=yes 10206 break 10207 ;; 10208 esac 10209 done 10210 esac 10211 10212 exp_sym_flag='-bexport' 10213 no_entry_flag='-bnoentry' 10214 fi 10215 10216 # When large executables or shared objects are built, AIX ld can 10217 # have problems creating the table of contents. If linking a library 10218 # or program results in "error TOC overflow" add -mminimal-toc to 10219 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10220 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10221 10222 archive_cmds_CXX='' 10223 hardcode_direct_CXX=yes 10224 hardcode_libdir_separator_CXX=':' 10225 link_all_deplibs_CXX=yes 10226 10227 if test "$GXX" = yes; then 10228 case $host_os in aix4.[012]|aix4.[012].*) 10229 # We only want to do this on AIX 4.2 and lower, the check 10230 # below for broken collect2 doesn't work under 4.3+ 10231 collect2name=`${CC} -print-prog-name=collect2` 10232 if test -f "$collect2name" && \ 10233 strings "$collect2name" | grep resolve_lib_name >/dev/null 10234 then 10235 # We have reworked collect2 10236 hardcode_direct_CXX=yes 10237 else 10238 # We have old collect2 10239 hardcode_direct_CXX=unsupported 10240 # It fails to find uninstalled libraries when the uninstalled 10241 # path is not listed in the libpath. Setting hardcode_minus_L 10242 # to unsupported forces relinking 10243 hardcode_minus_L_CXX=yes 10244 hardcode_libdir_flag_spec_CXX='-L$libdir' 10245 hardcode_libdir_separator_CXX= 10246 fi 10247 esac 10248 shared_flag='-shared' 10249 if test "$aix_use_runtimelinking" = yes; then 10250 shared_flag="$shared_flag "'${wl}-G' 10251 fi 10252 else 10253 # not using gcc 10254 if test "$host_cpu" = ia64; then 10255 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10256 # chokes on -Wl,-G. The following line is correct: 10257 shared_flag='-G' 10258 else 10259 if test "$aix_use_runtimelinking" = yes; then 10260 shared_flag='${wl}-G' 10261 else 10262 shared_flag='${wl}-bM:SRE' 10263 fi 10264 fi 10265 fi 10266 10267 # It seems that -bexpall does not export symbols beginning with 10268 # underscore (_), so it is better to generate a list of symbols to export. 10269 always_export_symbols_CXX=yes 10270 if test "$aix_use_runtimelinking" = yes; then 10271 # Warning - without using the other runtime loading flags (-brtl), 10272 # -berok will link without error, but may produce a broken library. 10273 allow_undefined_flag_CXX='-berok' 10274 # Determine the default libpath from the value encoded in an empty executable. 10275 cat >conftest.$ac_ext <<_ACEOF 10276/* confdefs.h. */ 10277_ACEOF 10278cat confdefs.h >>conftest.$ac_ext 10279cat >>conftest.$ac_ext <<_ACEOF 10280/* end confdefs.h. */ 10281 10282int 10283main () 10284{ 10285 10286 ; 10287 return 0; 10288} 10289_ACEOF 10290rm -f conftest.$ac_objext conftest$ac_exeext 10291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10292 (eval $ac_link) 2>conftest.er1 10293 ac_status=$? 10294 grep -v '^ *+' conftest.er1 >conftest.err 10295 rm -f conftest.er1 10296 cat conftest.err >&5 10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10298 (exit $ac_status); } && 10299 { ac_try='test -z "$ac_cxx_werror_flag" 10300 || test ! -s conftest.err' 10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10302 (eval $ac_try) 2>&5 10303 ac_status=$? 10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10305 (exit $ac_status); }; } && 10306 { ac_try='test -s conftest$ac_exeext' 10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10308 (eval $ac_try) 2>&5 10309 ac_status=$? 10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10311 (exit $ac_status); }; }; then 10312 10313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10314}'` 10315# Check for a 64-bit object if we didn't find anything. 10316if 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; } 10317}'`; fi 10318else 10319 echo "$as_me: failed program was:" >&5 10320sed 's/^/| /' conftest.$ac_ext >&5 10321 10322fi 10323rm -f conftest.err conftest.$ac_objext \ 10324 conftest$ac_exeext conftest.$ac_ext 10325if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10326 10327 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10328 10329 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" 10330 else 10331 if test "$host_cpu" = ia64; then 10332 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10333 allow_undefined_flag_CXX="-z nodefs" 10334 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" 10335 else 10336 # Determine the default libpath from the value encoded in an empty executable. 10337 cat >conftest.$ac_ext <<_ACEOF 10338/* confdefs.h. */ 10339_ACEOF 10340cat confdefs.h >>conftest.$ac_ext 10341cat >>conftest.$ac_ext <<_ACEOF 10342/* end confdefs.h. */ 10343 10344int 10345main () 10346{ 10347 10348 ; 10349 return 0; 10350} 10351_ACEOF 10352rm -f conftest.$ac_objext conftest$ac_exeext 10353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10354 (eval $ac_link) 2>conftest.er1 10355 ac_status=$? 10356 grep -v '^ *+' conftest.er1 >conftest.err 10357 rm -f conftest.er1 10358 cat conftest.err >&5 10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10360 (exit $ac_status); } && 10361 { ac_try='test -z "$ac_cxx_werror_flag" 10362 || test ! -s conftest.err' 10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10364 (eval $ac_try) 2>&5 10365 ac_status=$? 10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10367 (exit $ac_status); }; } && 10368 { ac_try='test -s conftest$ac_exeext' 10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10370 (eval $ac_try) 2>&5 10371 ac_status=$? 10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10373 (exit $ac_status); }; }; then 10374 10375aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10376}'` 10377# Check for a 64-bit object if we didn't find anything. 10378if 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; } 10379}'`; fi 10380else 10381 echo "$as_me: failed program was:" >&5 10382sed 's/^/| /' conftest.$ac_ext >&5 10383 10384fi 10385rm -f conftest.err conftest.$ac_objext \ 10386 conftest$ac_exeext conftest.$ac_ext 10387if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10388 10389 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10390 # Warning - without using the other run time loading flags, 10391 # -berok will link without error, but may produce a broken library. 10392 no_undefined_flag_CXX=' ${wl}-bernotok' 10393 allow_undefined_flag_CXX=' ${wl}-berok' 10394 # -bexpall does not export symbols beginning with underscore (_) 10395 always_export_symbols_CXX=yes 10396 # Exported symbols can be pulled into shared objects from archives 10397 whole_archive_flag_spec_CXX=' ' 10398 archive_cmds_need_lc_CXX=yes 10399 # This is similar to how AIX traditionally builds its shared libraries. 10400 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' 10401 fi 10402 fi 10403 ;; 10404 chorus*) 10405 case $cc_basename in 10406 *) 10407 # FIXME: insert proper C++ library support 10408 ld_shlibs_CXX=no 10409 ;; 10410 esac 10411 ;; 10412 10413 10414 cygwin* | mingw* | pw32*) 10415 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10416 # as there is no search path for DLLs. 10417 hardcode_libdir_flag_spec_CXX='-L$libdir' 10418 allow_undefined_flag_CXX=unsupported 10419 always_export_symbols_CXX=no 10420 enable_shared_with_static_runtimes_CXX=yes 10421 10422 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10423 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' 10424 # If the export-symbols file already is a .def file (1st line 10425 # is EXPORTS), use it as is; otherwise, prepend... 10426 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10427 cp $export_symbols $output_objdir/$soname.def; 10428 else 10429 echo EXPORTS > $output_objdir/$soname.def; 10430 cat $export_symbols >> $output_objdir/$soname.def; 10431 fi~ 10432 $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' 10433 else 10434 ld_shlibs_CXX=no 10435 fi 10436 ;; 10437 darwin* | rhapsody*) 10438 case $host_os in 10439 rhapsody* | darwin1.[012]) 10440 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10441 ;; 10442 *) # Darwin 1.3 on 10443 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10444 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10445 else 10446 case ${MACOSX_DEPLOYMENT_TARGET} in 10447 10.[012]) 10448 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10449 ;; 10450 10.*) 10451 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10452 ;; 10453 esac 10454 fi 10455 ;; 10456 esac 10457 archive_cmds_need_lc_CXX=no 10458 hardcode_direct_CXX=no 10459 hardcode_automatic_CXX=yes 10460 hardcode_shlibpath_var_CXX=unsupported 10461 whole_archive_flag_spec_CXX='' 10462 link_all_deplibs_CXX=yes 10463 10464 if test "$GXX" = yes ; then 10465 lt_int_apple_cc_single_mod=no 10466 output_verbose_link_cmd='echo' 10467 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10468 lt_int_apple_cc_single_mod=yes 10469 fi 10470 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10471 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10472 else 10473 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10474 fi 10475 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10476 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10477 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10478 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}' 10479 else 10480 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10481 fi 10482 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10483 else 10484 case $cc_basename in 10485 xlc*) 10486 output_verbose_link_cmd='echo' 10487 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10488 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10490 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10491 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10492 ;; 10493 *) 10494 ld_shlibs_CXX=no 10495 ;; 10496 esac 10497 fi 10498 ;; 10499 10500 dgux*) 10501 case $cc_basename in 10502 ec++*) 10503 # FIXME: insert proper C++ library support 10504 ld_shlibs_CXX=no 10505 ;; 10506 ghcx*) 10507 # Green Hills C++ Compiler 10508 # FIXME: insert proper C++ library support 10509 ld_shlibs_CXX=no 10510 ;; 10511 *) 10512 # FIXME: insert proper C++ library support 10513 ld_shlibs_CXX=no 10514 ;; 10515 esac 10516 ;; 10517 freebsd[12]*) 10518 # C++ shared libraries reported to be fairly broken before switch to ELF 10519 ld_shlibs_CXX=no 10520 ;; 10521 freebsd-elf*) 10522 archive_cmds_need_lc_CXX=no 10523 ;; 10524 freebsd* | kfreebsd*-gnu | dragonfly*) 10525 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10526 # conventions 10527 ld_shlibs_CXX=yes 10528 ;; 10529 gnu*) 10530 ;; 10531 hpux9*) 10532 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10533 hardcode_libdir_separator_CXX=: 10534 export_dynamic_flag_spec_CXX='${wl}-E' 10535 hardcode_direct_CXX=yes 10536 hardcode_minus_L_CXX=yes # Not in the search PATH, 10537 # but as the default 10538 # location of the library. 10539 10540 case $cc_basename in 10541 CC*) 10542 # FIXME: insert proper C++ library support 10543 ld_shlibs_CXX=no 10544 ;; 10545 aCC*) 10546 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' 10547 # Commands to make compiler produce verbose output that lists 10548 # what "hidden" libraries, object files and flags are used when 10549 # linking a shared library. 10550 # 10551 # There doesn't appear to be a way to prevent this compiler from 10552 # explicitly linking system object files so we need to strip them 10553 # from the output so that they don't get included in the library 10554 # dependencies. 10555 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' 10556 ;; 10557 *) 10558 if test "$GXX" = yes; then 10559 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' 10560 else 10561 # FIXME: insert proper C++ library support 10562 ld_shlibs_CXX=no 10563 fi 10564 ;; 10565 esac 10566 ;; 10567 hpux10*|hpux11*) 10568 if test $with_gnu_ld = no; then 10569 case $host_cpu in 10570 hppa*64*) 10571 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10572 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10573 hardcode_libdir_separator_CXX=: 10574 ;; 10575 ia64*) 10576 hardcode_libdir_flag_spec_CXX='-L$libdir' 10577 ;; 10578 *) 10579 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10580 hardcode_libdir_separator_CXX=: 10581 export_dynamic_flag_spec_CXX='${wl}-E' 10582 ;; 10583 esac 10584 fi 10585 case $host_cpu in 10586 hppa*64*) 10587 hardcode_direct_CXX=no 10588 hardcode_shlibpath_var_CXX=no 10589 ;; 10590 ia64*) 10591 hardcode_direct_CXX=no 10592 hardcode_shlibpath_var_CXX=no 10593 hardcode_minus_L_CXX=yes # Not in the search PATH, 10594 # but as the default 10595 # location of the library. 10596 ;; 10597 *) 10598 hardcode_direct_CXX=yes 10599 hardcode_minus_L_CXX=yes # Not in the search PATH, 10600 # but as the default 10601 # location of the library. 10602 ;; 10603 esac 10604 10605 case $cc_basename in 10606 CC*) 10607 # FIXME: insert proper C++ library support 10608 ld_shlibs_CXX=no 10609 ;; 10610 aCC*) 10611 case $host_cpu in 10612 hppa*64*|ia64*) 10613 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10614 ;; 10615 *) 10616 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10617 ;; 10618 esac 10619 # Commands to make compiler produce verbose output that lists 10620 # what "hidden" libraries, object files and flags are used when 10621 # linking a shared library. 10622 # 10623 # There doesn't appear to be a way to prevent this compiler from 10624 # explicitly linking system object files so we need to strip them 10625 # from the output so that they don't get included in the library 10626 # dependencies. 10627 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' 10628 ;; 10629 *) 10630 if test "$GXX" = yes; then 10631 if test $with_gnu_ld = no; then 10632 case $host_cpu in 10633 ia64*|hppa*64*) 10634 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10635 ;; 10636 *) 10637 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' 10638 ;; 10639 esac 10640 fi 10641 else 10642 # FIXME: insert proper C++ library support 10643 ld_shlibs_CXX=no 10644 fi 10645 ;; 10646 esac 10647 ;; 10648 irix5* | irix6*) 10649 case $cc_basename in 10650 CC*) 10651 # SGI C++ 10652 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10653 10654 # Archives containing C++ object files must be created using 10655 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10656 # necessary to make sure instantiated templates are included 10657 # in the archive. 10658 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10659 ;; 10660 *) 10661 if test "$GXX" = yes; then 10662 if test "$with_gnu_ld" = no; then 10663 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10664 else 10665 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' 10666 fi 10667 fi 10668 link_all_deplibs_CXX=yes 10669 ;; 10670 esac 10671 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10672 hardcode_libdir_separator_CXX=: 10673 ;; 10674 linux*) 10675 case $cc_basename in 10676 KCC*) 10677 # Kuck and Associates, Inc. (KAI) C++ Compiler 10678 10679 # KCC will only create a shared library if the output file 10680 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10681 # to its proper name (with version) after linking. 10682 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' 10683 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' 10684 # Commands to make compiler produce verbose output that lists 10685 # what "hidden" libraries, object files and flags are used when 10686 # linking a shared library. 10687 # 10688 # There doesn't appear to be a way to prevent this compiler from 10689 # explicitly linking system object files so we need to strip them 10690 # from the output so that they don't get included in the library 10691 # dependencies. 10692 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' 10693 10694 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10695 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10696 10697 # Archives containing C++ object files must be created using 10698 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10699 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10700 ;; 10701 icpc*) 10702 # Intel C++ 10703 with_gnu_ld=yes 10704 # version 8.0 and above of icpc choke on multiply defined symbols 10705 # if we add $predep_objects and $postdep_objects, however 7.1 and 10706 # earlier do not add the objects themselves. 10707 case `$CC -V 2>&1` in 10708 *"Version 7."*) 10709 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10710 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' 10711 ;; 10712 *) # Version 8.0 or newer 10713 tmp_idyn= 10714 case $host_cpu in 10715 ia64*) tmp_idyn=' -i_dynamic';; 10716 esac 10717 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10718 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10719 ;; 10720 esac 10721 archive_cmds_need_lc_CXX=no 10722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10723 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10724 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10725 ;; 10726 pgCC*) 10727 # Portland Group C++ compiler 10728 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10729 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 10730 10731 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10732 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10733 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10734 ;; 10735 cxx*) 10736 # Compaq C++ 10737 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10738 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' 10739 10740 runpath_var=LD_RUN_PATH 10741 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10742 hardcode_libdir_separator_CXX=: 10743 10744 # Commands to make compiler produce verbose output that lists 10745 # what "hidden" libraries, object files and flags are used when 10746 # linking a shared library. 10747 # 10748 # There doesn't appear to be a way to prevent this compiler from 10749 # explicitly linking system object files so we need to strip them 10750 # from the output so that they don't get included in the library 10751 # dependencies. 10752 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' 10753 ;; 10754 esac 10755 ;; 10756 lynxos*) 10757 # FIXME: insert proper C++ library support 10758 ld_shlibs_CXX=no 10759 ;; 10760 m88k*) 10761 # FIXME: insert proper C++ library support 10762 ld_shlibs_CXX=no 10763 ;; 10764 mvs*) 10765 case $cc_basename in 10766 cxx*) 10767 # FIXME: insert proper C++ library support 10768 ld_shlibs_CXX=no 10769 ;; 10770 *) 10771 # FIXME: insert proper C++ library support 10772 ld_shlibs_CXX=no 10773 ;; 10774 esac 10775 ;; 10776 netbsd*) 10777 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10778 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10779 wlarc= 10780 hardcode_libdir_flag_spec_CXX='-R$libdir' 10781 hardcode_direct_CXX=yes 10782 hardcode_shlibpath_var_CXX=no 10783 fi 10784 # Workaround some broken pre-1.5 toolchains 10785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10786 ;; 10787 openbsd2*) 10788 # C++ shared libraries are fairly broken 10789 ld_shlibs_CXX=no 10790 ;; 10791 openbsd*) 10792 hardcode_direct_CXX=yes 10793 hardcode_shlibpath_var_CXX=no 10794 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10796 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10797 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10798 export_dynamic_flag_spec_CXX='${wl}-E' 10799 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10800 fi 10801 output_verbose_link_cmd='echo' 10802 ;; 10803 osf3*) 10804 case $cc_basename in 10805 KCC*) 10806 # Kuck and Associates, Inc. (KAI) C++ Compiler 10807 10808 # KCC will only create a shared library if the output file 10809 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10810 # to its proper name (with version) after linking. 10811 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' 10812 10813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10814 hardcode_libdir_separator_CXX=: 10815 10816 # Archives containing C++ object files must be created using 10817 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10818 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10819 10820 ;; 10821 RCC*) 10822 # Rational C++ 2.4.1 10823 # FIXME: insert proper C++ library support 10824 ld_shlibs_CXX=no 10825 ;; 10826 cxx*) 10827 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10828 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10829 10830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10831 hardcode_libdir_separator_CXX=: 10832 10833 # Commands to make compiler produce verbose output that lists 10834 # what "hidden" libraries, object files and flags are used when 10835 # linking a shared library. 10836 # 10837 # There doesn't appear to be a way to prevent this compiler from 10838 # explicitly linking system object files so we need to strip them 10839 # from the output so that they don't get included in the library 10840 # dependencies. 10841 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' 10842 ;; 10843 *) 10844 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10845 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10846 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10847 10848 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10849 hardcode_libdir_separator_CXX=: 10850 10851 # Commands to make compiler produce verbose output that lists 10852 # what "hidden" libraries, object files and flags are used when 10853 # linking a shared library. 10854 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10855 10856 else 10857 # FIXME: insert proper C++ library support 10858 ld_shlibs_CXX=no 10859 fi 10860 ;; 10861 esac 10862 ;; 10863 osf4* | osf5*) 10864 case $cc_basename in 10865 KCC*) 10866 # Kuck and Associates, Inc. (KAI) C++ Compiler 10867 10868 # KCC will only create a shared library if the output file 10869 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10870 # to its proper name (with version) after linking. 10871 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' 10872 10873 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10874 hardcode_libdir_separator_CXX=: 10875 10876 # Archives containing C++ object files must be created using 10877 # the KAI C++ compiler. 10878 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10879 ;; 10880 RCC*) 10881 # Rational C++ 2.4.1 10882 # FIXME: insert proper C++ library support 10883 ld_shlibs_CXX=no 10884 ;; 10885 cxx*) 10886 allow_undefined_flag_CXX=' -expect_unresolved \*' 10887 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10888 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10889 echo "-hidden">> $lib.exp~ 10890 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 10891 $rm $lib.exp' 10892 10893 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10894 hardcode_libdir_separator_CXX=: 10895 10896 # Commands to make compiler produce verbose output that lists 10897 # what "hidden" libraries, object files and flags are used when 10898 # linking a shared library. 10899 # 10900 # There doesn't appear to be a way to prevent this compiler from 10901 # explicitly linking system object files so we need to strip them 10902 # from the output so that they don't get included in the library 10903 # dependencies. 10904 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' 10905 ;; 10906 *) 10907 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10908 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10909 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10910 10911 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10912 hardcode_libdir_separator_CXX=: 10913 10914 # Commands to make compiler produce verbose output that lists 10915 # what "hidden" libraries, object files and flags are used when 10916 # linking a shared library. 10917 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10918 10919 else 10920 # FIXME: insert proper C++ library support 10921 ld_shlibs_CXX=no 10922 fi 10923 ;; 10924 esac 10925 ;; 10926 psos*) 10927 # FIXME: insert proper C++ library support 10928 ld_shlibs_CXX=no 10929 ;; 10930 sco*) 10931 archive_cmds_need_lc_CXX=no 10932 case $cc_basename in 10933 CC*) 10934 # FIXME: insert proper C++ library support 10935 ld_shlibs_CXX=no 10936 ;; 10937 *) 10938 # FIXME: insert proper C++ library support 10939 ld_shlibs_CXX=no 10940 ;; 10941 esac 10942 ;; 10943 sunos4*) 10944 case $cc_basename in 10945 CC*) 10946 # Sun C++ 4.x 10947 # FIXME: insert proper C++ library support 10948 ld_shlibs_CXX=no 10949 ;; 10950 lcc*) 10951 # Lucid 10952 # FIXME: insert proper C++ library support 10953 ld_shlibs_CXX=no 10954 ;; 10955 *) 10956 # FIXME: insert proper C++ library support 10957 ld_shlibs_CXX=no 10958 ;; 10959 esac 10960 ;; 10961 solaris*) 10962 case $cc_basename in 10963 CC*) 10964 # Sun C++ 4.2, 5.x and Centerline C++ 10965 archive_cmds_need_lc_CXX=yes 10966 no_undefined_flag_CXX=' -zdefs' 10967 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10968 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10969 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10970 10971 hardcode_libdir_flag_spec_CXX='-R$libdir' 10972 hardcode_shlibpath_var_CXX=no 10973 case $host_os in 10974 solaris2.[0-5] | solaris2.[0-5].*) ;; 10975 *) 10976 # The C++ compiler is used as linker so we must use $wl 10977 # flag to pass the commands to the underlying system 10978 # linker. We must also pass each convience library through 10979 # to the system linker between allextract/defaultextract. 10980 # The C++ compiler will combine linker options so we 10981 # cannot just pass the convience library names through 10982 # without $wl. 10983 # Supported since Solaris 2.6 (maybe 2.5.1?) 10984 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 10985 ;; 10986 esac 10987 link_all_deplibs_CXX=yes 10988 10989 output_verbose_link_cmd='echo' 10990 10991 # Archives containing C++ object files must be created using 10992 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10993 # necessary to make sure instantiated templates are included 10994 # in the archive. 10995 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10996 ;; 10997 gcx*) 10998 # Green Hills C++ Compiler 10999 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11000 11001 # The C++ compiler must be used to create the archive. 11002 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11003 ;; 11004 *) 11005 # GNU C++ compiler with Solaris linker 11006 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11007 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11008 if $CC --version | grep -v '^2\.7' > /dev/null; then 11009 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11010 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11011 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11012 11013 # Commands to make compiler produce verbose output that lists 11014 # what "hidden" libraries, object files and flags are used when 11015 # linking a shared library. 11016 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11017 else 11018 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11019 # platform. 11020 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11021 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11022 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11023 11024 # Commands to make compiler produce verbose output that lists 11025 # what "hidden" libraries, object files and flags are used when 11026 # linking a shared library. 11027 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11028 fi 11029 11030 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11031 fi 11032 ;; 11033 esac 11034 ;; 11035 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 11036 archive_cmds_need_lc_CXX=no 11037 ;; 11038 tandem*) 11039 case $cc_basename in 11040 NCC*) 11041 # NonStop-UX NCC 3.20 11042 # FIXME: insert proper C++ library support 11043 ld_shlibs_CXX=no 11044 ;; 11045 *) 11046 # FIXME: insert proper C++ library support 11047 ld_shlibs_CXX=no 11048 ;; 11049 esac 11050 ;; 11051 vxworks*) 11052 # FIXME: insert proper C++ library support 11053 ld_shlibs_CXX=no 11054 ;; 11055 *) 11056 # FIXME: insert proper C++ library support 11057 ld_shlibs_CXX=no 11058 ;; 11059esac 11060echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11061echo "${ECHO_T}$ld_shlibs_CXX" >&6 11062test "$ld_shlibs_CXX" = no && can_build_shared=no 11063 11064GCC_CXX="$GXX" 11065LD_CXX="$LD" 11066 11067## CAVEAT EMPTOR: 11068## There is no encapsulation within the following macros, do not change 11069## the running order or otherwise move them around unless you know exactly 11070## what you are doing... 11071 11072cat > conftest.$ac_ext <<EOF 11073class Foo 11074{ 11075public: 11076 Foo (void) { a = 0; } 11077private: 11078 int a; 11079}; 11080EOF 11081 11082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11083 (eval $ac_compile) 2>&5 11084 ac_status=$? 11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11086 (exit $ac_status); }; then 11087 # Parse the compiler output and extract the necessary 11088 # objects, libraries and library flags. 11089 11090 # Sentinel used to keep track of whether or not we are before 11091 # the conftest object file. 11092 pre_test_object_deps_done=no 11093 11094 # The `*' in the case matches for architectures that use `case' in 11095 # $output_verbose_cmd can trigger glob expansion during the loop 11096 # eval without this substitution. 11097 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11098 11099 for p in `eval $output_verbose_link_cmd`; do 11100 case $p in 11101 11102 -L* | -R* | -l*) 11103 # Some compilers place space between "-{L,R}" and the path. 11104 # Remove the space. 11105 if test $p = "-L" \ 11106 || test $p = "-R"; then 11107 prev=$p 11108 continue 11109 else 11110 prev= 11111 fi 11112 11113 if test "$pre_test_object_deps_done" = no; then 11114 case $p in 11115 -L* | -R*) 11116 # Internal compiler library paths should come after those 11117 # provided the user. The postdeps already come after the 11118 # user supplied libs so there is no need to process them. 11119 if test -z "$compiler_lib_search_path_CXX"; then 11120 compiler_lib_search_path_CXX="${prev}${p}" 11121 else 11122 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11123 fi 11124 ;; 11125 # The "-l" case would never come before the object being 11126 # linked, so don't bother handling this case. 11127 esac 11128 else 11129 if test -z "$postdeps_CXX"; then 11130 postdeps_CXX="${prev}${p}" 11131 else 11132 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11133 fi 11134 fi 11135 ;; 11136 11137 *.$objext) 11138 # This assumes that the test object file only shows up 11139 # once in the compiler output. 11140 if test "$p" = "conftest.$objext"; then 11141 pre_test_object_deps_done=yes 11142 continue 11143 fi 11144 11145 if test "$pre_test_object_deps_done" = no; then 11146 if test -z "$predep_objects_CXX"; then 11147 predep_objects_CXX="$p" 11148 else 11149 predep_objects_CXX="$predep_objects_CXX $p" 11150 fi 11151 else 11152 if test -z "$postdep_objects_CXX"; then 11153 postdep_objects_CXX="$p" 11154 else 11155 postdep_objects_CXX="$postdep_objects_CXX $p" 11156 fi 11157 fi 11158 ;; 11159 11160 *) ;; # Ignore the rest. 11161 11162 esac 11163 done 11164 11165 # Clean up. 11166 rm -f a.out a.exe 11167else 11168 echo "libtool.m4: error: problem compiling CXX test program" 11169fi 11170 11171$rm -f confest.$objext 11172 11173# PORTME: override above test on systems where it is broken 11174case $host_os in 11175solaris*) 11176 case $cc_basename in 11177 CC*) 11178 # Adding this requires a known-good setup of shared libraries for 11179 # Sun compiler versions before 5.6, else PIC objects from an old 11180 # archive will be linked into the output, leading to subtle bugs. 11181 postdeps_CXX='-lCstd -lCrun' 11182 ;; 11183 esac 11184esac 11185 11186 11187case " $postdeps_CXX " in 11188*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11189esac 11190 11191lt_prog_compiler_wl_CXX= 11192lt_prog_compiler_pic_CXX= 11193lt_prog_compiler_static_CXX= 11194 11195echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11196echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11197 11198 # C++ specific cases for pic, static, wl, etc. 11199 if test "$GXX" = yes; then 11200 lt_prog_compiler_wl_CXX='-Wl,' 11201 lt_prog_compiler_static_CXX='-static' 11202 11203 case $host_os in 11204 aix*) 11205 # All AIX code is PIC. 11206 if test "$host_cpu" = ia64; then 11207 # AIX 5 now supports IA64 processor 11208 lt_prog_compiler_static_CXX='-Bstatic' 11209 fi 11210 ;; 11211 amigaos*) 11212 # FIXME: we need at least 68020 code to build shared libraries, but 11213 # adding the `-m68020' flag to GCC prevents building anything better, 11214 # like `-m68040'. 11215 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11216 ;; 11217 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11218 # PIC is the default for these OSes. 11219 ;; 11220 mingw* | os2* | pw32*) 11221 # This hack is so that the source file can tell whether it is being 11222 # built for inclusion in a dll (and should export symbols for example). 11223 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11224 ;; 11225 darwin* | rhapsody*) 11226 # PIC is the default on this platform 11227 # Common symbols not allowed in MH_DYLIB files 11228 lt_prog_compiler_pic_CXX='-fno-common' 11229 ;; 11230 *djgpp*) 11231 # DJGPP does not support shared libraries at all 11232 lt_prog_compiler_pic_CXX= 11233 ;; 11234 sysv4*MP*) 11235 if test -d /usr/nec; then 11236 lt_prog_compiler_pic_CXX=-Kconform_pic 11237 fi 11238 ;; 11239 hpux*) 11240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11241 # not for PA HP-UX. 11242 case $host_cpu in 11243 hppa*64*|ia64*) 11244 ;; 11245 *) 11246 lt_prog_compiler_pic_CXX='-fPIC' 11247 ;; 11248 esac 11249 ;; 11250 *) 11251 lt_prog_compiler_pic_CXX='-fPIC' 11252 ;; 11253 esac 11254 else 11255 case $host_os in 11256 aix4* | aix5*) 11257 # All AIX code is PIC. 11258 if test "$host_cpu" = ia64; then 11259 # AIX 5 now supports IA64 processor 11260 lt_prog_compiler_static_CXX='-Bstatic' 11261 else 11262 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11263 fi 11264 ;; 11265 chorus*) 11266 case $cc_basename in 11267 cxch68*) 11268 # Green Hills C++ Compiler 11269 # _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" 11270 ;; 11271 esac 11272 ;; 11273 darwin*) 11274 # PIC is the default on this platform 11275 # Common symbols not allowed in MH_DYLIB files 11276 case $cc_basename in 11277 xlc*) 11278 lt_prog_compiler_pic_CXX='-qnocommon' 11279 lt_prog_compiler_wl_CXX='-Wl,' 11280 ;; 11281 esac 11282 ;; 11283 dgux*) 11284 case $cc_basename in 11285 ec++*) 11286 lt_prog_compiler_pic_CXX='-KPIC' 11287 ;; 11288 ghcx*) 11289 # Green Hills C++ Compiler 11290 lt_prog_compiler_pic_CXX='-pic' 11291 ;; 11292 *) 11293 ;; 11294 esac 11295 ;; 11296 freebsd* | kfreebsd*-gnu | dragonfly*) 11297 # FreeBSD uses GNU C++ 11298 ;; 11299 hpux9* | hpux10* | hpux11*) 11300 case $cc_basename in 11301 CC*) 11302 lt_prog_compiler_wl_CXX='-Wl,' 11303 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11304 if test "$host_cpu" != ia64; then 11305 lt_prog_compiler_pic_CXX='+Z' 11306 fi 11307 ;; 11308 aCC*) 11309 lt_prog_compiler_wl_CXX='-Wl,' 11310 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11311 case $host_cpu in 11312 hppa*64*|ia64*) 11313 # +Z the default 11314 ;; 11315 *) 11316 lt_prog_compiler_pic_CXX='+Z' 11317 ;; 11318 esac 11319 ;; 11320 *) 11321 ;; 11322 esac 11323 ;; 11324 irix5* | irix6* | nonstopux*) 11325 case $cc_basename in 11326 CC*) 11327 lt_prog_compiler_wl_CXX='-Wl,' 11328 lt_prog_compiler_static_CXX='-non_shared' 11329 # CC pic flag -KPIC is the default. 11330 ;; 11331 *) 11332 ;; 11333 esac 11334 ;; 11335 linux*) 11336 case $cc_basename in 11337 KCC*) 11338 # KAI C++ Compiler 11339 lt_prog_compiler_wl_CXX='--backend -Wl,' 11340 lt_prog_compiler_pic_CXX='-fPIC' 11341 ;; 11342 icpc* | ecpc*) 11343 # Intel C++ 11344 lt_prog_compiler_wl_CXX='-Wl,' 11345 lt_prog_compiler_pic_CXX='-KPIC' 11346 lt_prog_compiler_static_CXX='-static' 11347 ;; 11348 pgCC*) 11349 # Portland Group C++ compiler. 11350 lt_prog_compiler_wl_CXX='-Wl,' 11351 lt_prog_compiler_pic_CXX='-fpic' 11352 lt_prog_compiler_static_CXX='-Bstatic' 11353 ;; 11354 cxx*) 11355 # Compaq C++ 11356 # Make sure the PIC flag is empty. It appears that all Alpha 11357 # Linux and Compaq Tru64 Unix objects are PIC. 11358 lt_prog_compiler_pic_CXX= 11359 lt_prog_compiler_static_CXX='-non_shared' 11360 ;; 11361 *) 11362 ;; 11363 esac 11364 ;; 11365 lynxos*) 11366 ;; 11367 m88k*) 11368 ;; 11369 mvs*) 11370 case $cc_basename in 11371 cxx*) 11372 lt_prog_compiler_pic_CXX='-W c,exportall' 11373 ;; 11374 *) 11375 ;; 11376 esac 11377 ;; 11378 netbsd*) 11379 ;; 11380 osf3* | osf4* | osf5*) 11381 case $cc_basename in 11382 KCC*) 11383 lt_prog_compiler_wl_CXX='--backend -Wl,' 11384 ;; 11385 RCC*) 11386 # Rational C++ 2.4.1 11387 lt_prog_compiler_pic_CXX='-pic' 11388 ;; 11389 cxx*) 11390 # Digital/Compaq C++ 11391 lt_prog_compiler_wl_CXX='-Wl,' 11392 # Make sure the PIC flag is empty. It appears that all Alpha 11393 # Linux and Compaq Tru64 Unix objects are PIC. 11394 lt_prog_compiler_pic_CXX= 11395 lt_prog_compiler_static_CXX='-non_shared' 11396 ;; 11397 *) 11398 ;; 11399 esac 11400 ;; 11401 psos*) 11402 ;; 11403 sco*) 11404 case $cc_basename in 11405 CC*) 11406 lt_prog_compiler_pic_CXX='-fPIC' 11407 ;; 11408 *) 11409 ;; 11410 esac 11411 ;; 11412 solaris*) 11413 case $cc_basename in 11414 CC*) 11415 # Sun C++ 4.2, 5.x and Centerline C++ 11416 lt_prog_compiler_pic_CXX='-KPIC' 11417 lt_prog_compiler_static_CXX='-Bstatic' 11418 lt_prog_compiler_wl_CXX='-Qoption ld ' 11419 ;; 11420 gcx*) 11421 # Green Hills C++ Compiler 11422 lt_prog_compiler_pic_CXX='-PIC' 11423 ;; 11424 *) 11425 ;; 11426 esac 11427 ;; 11428 sunos4*) 11429 case $cc_basename in 11430 CC*) 11431 # Sun C++ 4.x 11432 lt_prog_compiler_pic_CXX='-pic' 11433 lt_prog_compiler_static_CXX='-Bstatic' 11434 ;; 11435 lcc*) 11436 # Lucid 11437 lt_prog_compiler_pic_CXX='-pic' 11438 ;; 11439 *) 11440 ;; 11441 esac 11442 ;; 11443 tandem*) 11444 case $cc_basename in 11445 NCC*) 11446 # NonStop-UX NCC 3.20 11447 lt_prog_compiler_pic_CXX='-KPIC' 11448 ;; 11449 *) 11450 ;; 11451 esac 11452 ;; 11453 unixware*) 11454 ;; 11455 vxworks*) 11456 ;; 11457 *) 11458 lt_prog_compiler_can_build_shared_CXX=no 11459 ;; 11460 esac 11461 fi 11462 11463echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11464echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11465 11466# 11467# Check to make sure the PIC flag actually works. 11468# 11469if test -n "$lt_prog_compiler_pic_CXX"; then 11470 11471echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11472echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11473if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11474 echo $ECHO_N "(cached) $ECHO_C" >&6 11475else 11476 lt_prog_compiler_pic_works_CXX=no 11477 ac_outfile=conftest.$ac_objext 11478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11479 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11480 # Insert the option either (1) after the last *FLAGS variable, or 11481 # (2) before a word containing "conftest.", or (3) at the end. 11482 # Note that $ac_compile itself does not contain backslashes and begins 11483 # with a dollar sign (not a hyphen), so the echo should work correctly. 11484 # The option is referenced via a variable to avoid confusing sed. 11485 lt_compile=`echo "$ac_compile" | $SED \ 11486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11488 -e 's:$: $lt_compiler_flag:'` 11489 (eval echo "\"\$as_me:11489: $lt_compile\"" >&5) 11490 (eval "$lt_compile" 2>conftest.err) 11491 ac_status=$? 11492 cat conftest.err >&5 11493 echo "$as_me:11493: \$? = $ac_status" >&5 11494 if (exit $ac_status) && test -s "$ac_outfile"; then 11495 # The compiler can only warn and ignore the option if not recognized 11496 # So say no if there are warnings other than the usual output. 11497 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11498 $SED '/^$/d' conftest.err >conftest.er2 11499 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11500 lt_prog_compiler_pic_works_CXX=yes 11501 fi 11502 fi 11503 $rm conftest* 11504 11505fi 11506echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11507echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11508 11509if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11510 case $lt_prog_compiler_pic_CXX in 11511 "" | " "*) ;; 11512 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11513 esac 11514else 11515 lt_prog_compiler_pic_CXX= 11516 lt_prog_compiler_can_build_shared_CXX=no 11517fi 11518 11519fi 11520case $host_os in 11521 # For platforms which do not support PIC, -DPIC is meaningless: 11522 *djgpp*) 11523 lt_prog_compiler_pic_CXX= 11524 ;; 11525 *) 11526 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11527 ;; 11528esac 11529 11530echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11531echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11532if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11533 echo $ECHO_N "(cached) $ECHO_C" >&6 11534else 11535 lt_cv_prog_compiler_c_o_CXX=no 11536 $rm -r conftest 2>/dev/null 11537 mkdir conftest 11538 cd conftest 11539 mkdir out 11540 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11541 11542 lt_compiler_flag="-o out/conftest2.$ac_objext" 11543 # Insert the option either (1) after the last *FLAGS variable, or 11544 # (2) before a word containing "conftest.", or (3) at the end. 11545 # Note that $ac_compile itself does not contain backslashes and begins 11546 # with a dollar sign (not a hyphen), so the echo should work correctly. 11547 lt_compile=`echo "$ac_compile" | $SED \ 11548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11550 -e 's:$: $lt_compiler_flag:'` 11551 (eval echo "\"\$as_me:11551: $lt_compile\"" >&5) 11552 (eval "$lt_compile" 2>out/conftest.err) 11553 ac_status=$? 11554 cat out/conftest.err >&5 11555 echo "$as_me:11555: \$? = $ac_status" >&5 11556 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11557 then 11558 # The compiler can only warn and ignore the option if not recognized 11559 # So say no if there are warnings 11560 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11561 $SED '/^$/d' out/conftest.err >out/conftest.er2 11562 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11563 lt_cv_prog_compiler_c_o_CXX=yes 11564 fi 11565 fi 11566 chmod u+w . 2>&5 11567 $rm conftest* 11568 # SGI C++ compiler will create directory out/ii_files/ for 11569 # template instantiation 11570 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11571 $rm out/* && rmdir out 11572 cd .. 11573 rmdir conftest 11574 $rm conftest* 11575 11576fi 11577echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11578echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11579 11580 11581hard_links="nottested" 11582if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11583 # do not overwrite the value of need_locks provided by the user 11584 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11585echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11586 hard_links=yes 11587 $rm conftest* 11588 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11589 touch conftest.a 11590 ln conftest.a conftest.b 2>&5 || hard_links=no 11591 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11592 echo "$as_me:$LINENO: result: $hard_links" >&5 11593echo "${ECHO_T}$hard_links" >&6 11594 if test "$hard_links" = no; then 11595 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11596echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11597 need_locks=warn 11598 fi 11599else 11600 need_locks=no 11601fi 11602 11603echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11604echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11605 11606 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11607 case $host_os in 11608 aix4* | aix5*) 11609 # If we're using GNU nm, then we don't want the "-C" option. 11610 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11611 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11612 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' 11613 else 11614 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' 11615 fi 11616 ;; 11617 pw32*) 11618 export_symbols_cmds_CXX="$ltdll_cmds" 11619 ;; 11620 cygwin* | mingw*) 11621 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11622 ;; 11623 *) 11624 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11625 ;; 11626 esac 11627 11628echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11629echo "${ECHO_T}$ld_shlibs_CXX" >&6 11630test "$ld_shlibs_CXX" = no && can_build_shared=no 11631 11632variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11633if test "$GCC" = yes; then 11634 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11635fi 11636 11637# 11638# Do we need to explicitly link libc? 11639# 11640case "x$archive_cmds_need_lc_CXX" in 11641x|xyes) 11642 # Assume -lc should be added 11643 archive_cmds_need_lc_CXX=yes 11644 11645 if test "$enable_shared" = yes && test "$GCC" = yes; then 11646 case $archive_cmds_CXX in 11647 *'~'*) 11648 # FIXME: we may have to deal with multi-command sequences. 11649 ;; 11650 '$CC '*) 11651 # Test whether the compiler implicitly links with -lc since on some 11652 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11653 # to ld, don't add -lc before -lgcc. 11654 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11655echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11656 $rm conftest* 11657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11658 11659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11660 (eval $ac_compile) 2>&5 11661 ac_status=$? 11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11663 (exit $ac_status); } 2>conftest.err; then 11664 soname=conftest 11665 lib=conftest 11666 libobjs=conftest.$ac_objext 11667 deplibs= 11668 wl=$lt_prog_compiler_wl_CXX 11669 compiler_flags=-v 11670 linker_flags=-v 11671 verstring= 11672 output_objdir=. 11673 libname=conftest 11674 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11675 allow_undefined_flag_CXX= 11676 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11677 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11678 ac_status=$? 11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11680 (exit $ac_status); } 11681 then 11682 archive_cmds_need_lc_CXX=no 11683 else 11684 archive_cmds_need_lc_CXX=yes 11685 fi 11686 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11687 else 11688 cat conftest.err 1>&5 11689 fi 11690 $rm conftest* 11691 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11692echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11693 ;; 11694 esac 11695 fi 11696 ;; 11697esac 11698 11699echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11700echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11701library_names_spec= 11702libname_spec='lib$name' 11703soname_spec= 11704shrext_cmds=".so" 11705postinstall_cmds= 11706postuninstall_cmds= 11707finish_cmds= 11708finish_eval= 11709shlibpath_var= 11710shlibpath_overrides_runpath=unknown 11711version_type=none 11712dynamic_linker="$host_os ld.so" 11713sys_lib_dlsearch_path_spec="/lib /usr/lib" 11714if test "$GCC" = yes; then 11715 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11716 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11717 # if the path contains ";" then we assume it to be the separator 11718 # otherwise default to the standard path separator (i.e. ":") - it is 11719 # assumed that no part of a normal pathname contains ";" but that should 11720 # okay in the real world where ";" in dirpaths is itself problematic. 11721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11722 else 11723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11724 fi 11725else 11726 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11727fi 11728need_lib_prefix=unknown 11729hardcode_into_libs=no 11730 11731# when you set need_version to no, make sure it does not cause -set_version 11732# flags to be left without arguments 11733need_version=unknown 11734 11735case $host_os in 11736aix3*) 11737 version_type=linux 11738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11739 shlibpath_var=LIBPATH 11740 11741 # AIX 3 has no versioning support, so we append a major version to the name. 11742 soname_spec='${libname}${release}${shared_ext}$major' 11743 ;; 11744 11745aix4* | aix5*) 11746 version_type=linux 11747 need_lib_prefix=no 11748 need_version=no 11749 hardcode_into_libs=yes 11750 if test "$host_cpu" = ia64; then 11751 # AIX 5 supports IA64 11752 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11753 shlibpath_var=LD_LIBRARY_PATH 11754 else 11755 # With GCC up to 2.95.x, collect2 would create an import file 11756 # for dependence libraries. The import file would start with 11757 # the line `#! .'. This would cause the generated library to 11758 # depend on `.', always an invalid library. This was fixed in 11759 # development snapshots of GCC prior to 3.0. 11760 case $host_os in 11761 aix4 | aix4.[01] | aix4.[01].*) 11762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11763 echo ' yes ' 11764 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11765 : 11766 else 11767 can_build_shared=no 11768 fi 11769 ;; 11770 esac 11771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11772 # soname into executable. Probably we can add versioning support to 11773 # collect2, so additional links can be useful in future. 11774 if test "$aix_use_runtimelinking" = yes; then 11775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11776 # instead of lib<name>.a to let people know that these are not 11777 # typical AIX shared libraries. 11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11779 else 11780 # We preserve .a as extension for shared libraries through AIX4.2 11781 # and later when we are not doing run time linking. 11782 library_names_spec='${libname}${release}.a $libname.a' 11783 soname_spec='${libname}${release}${shared_ext}$major' 11784 fi 11785 shlibpath_var=LIBPATH 11786 fi 11787 ;; 11788 11789amigaos*) 11790 library_names_spec='$libname.ixlibrary $libname.a' 11791 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11792 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' 11793 ;; 11794 11795beos*) 11796 library_names_spec='${libname}${shared_ext}' 11797 dynamic_linker="$host_os ld.so" 11798 shlibpath_var=LIBRARY_PATH 11799 ;; 11800 11801bsdi[45]*) 11802 version_type=linux 11803 need_version=no 11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11805 soname_spec='${libname}${release}${shared_ext}$major' 11806 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11807 shlibpath_var=LD_LIBRARY_PATH 11808 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11809 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11810 # the default ld.so.conf also contains /usr/contrib/lib and 11811 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11812 # libtool to hard-code these into programs 11813 ;; 11814 11815cygwin* | mingw* | pw32*) 11816 version_type=windows 11817 shrext_cmds=".dll" 11818 need_version=no 11819 need_lib_prefix=no 11820 11821 case $GCC,$host_os in 11822 yes,cygwin* | yes,mingw* | yes,pw32*) 11823 library_names_spec='$libname.dll.a' 11824 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11825 postinstall_cmds='base_file=`basename \${file}`~ 11826 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11827 dldir=$destdir/`dirname \$dlpath`~ 11828 test -d \$dldir || mkdir -p \$dldir~ 11829 $install_prog $dir/$dlname \$dldir/$dlname~ 11830 chmod a+x \$dldir/$dlname' 11831 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11832 dlpath=$dir/\$dldll~ 11833 $rm \$dlpath' 11834 shlibpath_overrides_runpath=yes 11835 11836 case $host_os in 11837 cygwin*) 11838 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11839 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11840 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11841 ;; 11842 mingw*) 11843 # MinGW DLLs use traditional 'lib' prefix 11844 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11845 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11846 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11847 # It is most probably a Windows format PATH printed by 11848 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11849 # path with ; separators, and with drive letters. We can handle the 11850 # drive letters (cygwin fileutils understands them), so leave them, 11851 # especially as we might pass files found there to a mingw objdump, 11852 # which wouldn't understand a cygwinified path. Ahh. 11853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11854 else 11855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11856 fi 11857 ;; 11858 pw32*) 11859 # pw32 DLLs use 'pw' prefix rather than 'lib' 11860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11861 ;; 11862 esac 11863 ;; 11864 11865 *) 11866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11867 ;; 11868 esac 11869 dynamic_linker='Win32 ld.exe' 11870 # FIXME: first we should search . and the directory the executable is in 11871 shlibpath_var=PATH 11872 ;; 11873 11874darwin* | rhapsody*) 11875 dynamic_linker="$host_os dyld" 11876 version_type=darwin 11877 need_lib_prefix=no 11878 need_version=no 11879 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11880 soname_spec='${libname}${release}${major}$shared_ext' 11881 shlibpath_overrides_runpath=yes 11882 shlibpath_var=DYLD_LIBRARY_PATH 11883 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11884 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11885 if test "$GCC" = yes; then 11886 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"` 11887 else 11888 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11889 fi 11890 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11891 ;; 11892 11893dgux*) 11894 version_type=linux 11895 need_lib_prefix=no 11896 need_version=no 11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11898 soname_spec='${libname}${release}${shared_ext}$major' 11899 shlibpath_var=LD_LIBRARY_PATH 11900 ;; 11901 11902freebsd1*) 11903 dynamic_linker=no 11904 ;; 11905 11906kfreebsd*-gnu) 11907 version_type=linux 11908 need_lib_prefix=no 11909 need_version=no 11910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11911 soname_spec='${libname}${release}${shared_ext}$major' 11912 shlibpath_var=LD_LIBRARY_PATH 11913 shlibpath_overrides_runpath=no 11914 hardcode_into_libs=yes 11915 dynamic_linker='GNU ld.so' 11916 ;; 11917 11918freebsd* | dragonfly*) 11919 # DragonFly does not have aout. When/if they implement a new 11920 # versioning mechanism, adjust this. 11921 if test -x /usr/bin/objformat; then 11922 objformat=`/usr/bin/objformat` 11923 else 11924 case $host_os in 11925 freebsd[123]*) objformat=aout ;; 11926 *) objformat=elf ;; 11927 esac 11928 fi 11929 version_type=freebsd-$objformat 11930 case $version_type in 11931 freebsd-elf*) 11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11933 need_version=no 11934 need_lib_prefix=no 11935 ;; 11936 freebsd-*) 11937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11938 need_version=yes 11939 ;; 11940 esac 11941 shlibpath_var=LD_LIBRARY_PATH 11942 case $host_os in 11943 freebsd2*) 11944 shlibpath_overrides_runpath=yes 11945 ;; 11946 freebsd3.[01]* | freebsdelf3.[01]*) 11947 shlibpath_overrides_runpath=yes 11948 hardcode_into_libs=yes 11949 ;; 11950 *) # from 3.2 on 11951 shlibpath_overrides_runpath=no 11952 hardcode_into_libs=yes 11953 ;; 11954 esac 11955 ;; 11956 11957gnu*) 11958 version_type=linux 11959 need_lib_prefix=no 11960 need_version=no 11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11962 soname_spec='${libname}${release}${shared_ext}$major' 11963 shlibpath_var=LD_LIBRARY_PATH 11964 hardcode_into_libs=yes 11965 ;; 11966 11967hpux9* | hpux10* | hpux11*) 11968 # Give a soname corresponding to the major version so that dld.sl refuses to 11969 # link against other versions. 11970 version_type=sunos 11971 need_lib_prefix=no 11972 need_version=no 11973 case $host_cpu in 11974 ia64*) 11975 shrext_cmds='.so' 11976 hardcode_into_libs=yes 11977 dynamic_linker="$host_os dld.so" 11978 shlibpath_var=LD_LIBRARY_PATH 11979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11981 soname_spec='${libname}${release}${shared_ext}$major' 11982 if test "X$HPUX_IA64_MODE" = X32; then 11983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11984 else 11985 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11986 fi 11987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11988 ;; 11989 hppa*64*) 11990 shrext_cmds='.sl' 11991 hardcode_into_libs=yes 11992 dynamic_linker="$host_os dld.sl" 11993 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11996 soname_spec='${libname}${release}${shared_ext}$major' 11997 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11999 ;; 12000 *) 12001 shrext_cmds='.sl' 12002 dynamic_linker="$host_os dld.sl" 12003 shlibpath_var=SHLIB_PATH 12004 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12006 soname_spec='${libname}${release}${shared_ext}$major' 12007 ;; 12008 esac 12009 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12010 postinstall_cmds='chmod 555 $lib' 12011 ;; 12012 12013irix5* | irix6* | nonstopux*) 12014 case $host_os in 12015 nonstopux*) version_type=nonstopux ;; 12016 *) 12017 if test "$lt_cv_prog_gnu_ld" = yes; then 12018 version_type=linux 12019 else 12020 version_type=irix 12021 fi ;; 12022 esac 12023 need_lib_prefix=no 12024 need_version=no 12025 soname_spec='${libname}${release}${shared_ext}$major' 12026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12027 case $host_os in 12028 irix5* | nonstopux*) 12029 libsuff= shlibsuff= 12030 ;; 12031 *) 12032 case $LD in # libtool.m4 will add one of these switches to LD 12033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12034 libsuff= shlibsuff= libmagic=32-bit;; 12035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12036 libsuff=32 shlibsuff=N32 libmagic=N32;; 12037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12038 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12039 *) libsuff= shlibsuff= libmagic=never-match;; 12040 esac 12041 ;; 12042 esac 12043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12044 shlibpath_overrides_runpath=no 12045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12047 hardcode_into_libs=yes 12048 ;; 12049 12050# No shared lib support for Linux oldld, aout, or coff. 12051linux*oldld* | linux*aout* | linux*coff*) 12052 dynamic_linker=no 12053 ;; 12054 12055# This must be Linux ELF. 12056linux*) 12057 version_type=linux 12058 need_lib_prefix=no 12059 need_version=no 12060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12061 soname_spec='${libname}${release}${shared_ext}$major' 12062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12063 shlibpath_var=LD_LIBRARY_PATH 12064 shlibpath_overrides_runpath=no 12065 # This implies no fast_install, which is unacceptable. 12066 # Some rework will be needed to allow for fast_install 12067 # before this can be enabled. 12068 hardcode_into_libs=yes 12069 12070 # Append ld.so.conf contents to the search path 12071 if test -f /etc/ld.so.conf; then 12072 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12073 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12074 fi 12075 12076 # We used to test for /lib/ld.so.1 and disable shared libraries on 12077 # powerpc, because MkLinux only supported shared libraries with the 12078 # GNU dynamic linker. Since this was broken with cross compilers, 12079 # most powerpc-linux boxes support dynamic linking these days and 12080 # people can always --disable-shared, the test was removed, and we 12081 # assume the GNU/Linux dynamic linker is in use. 12082 dynamic_linker='GNU/Linux ld.so' 12083 ;; 12084 12085knetbsd*-gnu) 12086 version_type=linux 12087 need_lib_prefix=no 12088 need_version=no 12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12090 soname_spec='${libname}${release}${shared_ext}$major' 12091 shlibpath_var=LD_LIBRARY_PATH 12092 shlibpath_overrides_runpath=no 12093 hardcode_into_libs=yes 12094 dynamic_linker='GNU ld.so' 12095 ;; 12096 12097netbsd*) 12098 version_type=sunos 12099 need_lib_prefix=no 12100 need_version=no 12101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12104 dynamic_linker='NetBSD (a.out) ld.so' 12105 else 12106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12107 soname_spec='${libname}${release}${shared_ext}$major' 12108 dynamic_linker='NetBSD ld.elf_so' 12109 fi 12110 shlibpath_var=LD_LIBRARY_PATH 12111 shlibpath_overrides_runpath=yes 12112 hardcode_into_libs=yes 12113 ;; 12114 12115newsos6) 12116 version_type=linux 12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12118 shlibpath_var=LD_LIBRARY_PATH 12119 shlibpath_overrides_runpath=yes 12120 ;; 12121 12122nto-qnx*) 12123 version_type=linux 12124 need_lib_prefix=no 12125 need_version=no 12126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12127 soname_spec='${libname}${release}${shared_ext}$major' 12128 shlibpath_var=LD_LIBRARY_PATH 12129 shlibpath_overrides_runpath=yes 12130 ;; 12131 12132openbsd*) 12133 version_type=sunos 12134 need_lib_prefix=no 12135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12136 case $host_os in 12137 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12138 *) need_version=no ;; 12139 esac 12140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12142 shlibpath_var=LD_LIBRARY_PATH 12143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12144 case $host_os in 12145 openbsd2.[89] | openbsd2.[89].*) 12146 shlibpath_overrides_runpath=no 12147 ;; 12148 *) 12149 shlibpath_overrides_runpath=yes 12150 ;; 12151 esac 12152 else 12153 shlibpath_overrides_runpath=yes 12154 fi 12155 ;; 12156 12157os2*) 12158 libname_spec='$name' 12159 shrext_cmds=".dll" 12160 need_lib_prefix=no 12161 library_names_spec='$libname${shared_ext} $libname.a' 12162 dynamic_linker='OS/2 ld.exe' 12163 shlibpath_var=LIBPATH 12164 ;; 12165 12166osf3* | osf4* | osf5*) 12167 version_type=osf 12168 need_lib_prefix=no 12169 need_version=no 12170 soname_spec='${libname}${release}${shared_ext}$major' 12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12172 shlibpath_var=LD_LIBRARY_PATH 12173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12175 ;; 12176 12177sco3.2v5*) 12178 version_type=osf 12179 soname_spec='${libname}${release}${shared_ext}$major' 12180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12181 shlibpath_var=LD_LIBRARY_PATH 12182 ;; 12183 12184solaris*) 12185 version_type=linux 12186 need_lib_prefix=no 12187 need_version=no 12188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12189 soname_spec='${libname}${release}${shared_ext}$major' 12190 shlibpath_var=LD_LIBRARY_PATH 12191 shlibpath_overrides_runpath=yes 12192 hardcode_into_libs=yes 12193 # ldd complains unless libraries are executable 12194 postinstall_cmds='chmod +x $lib' 12195 ;; 12196 12197sunos4*) 12198 version_type=sunos 12199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12200 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12201 shlibpath_var=LD_LIBRARY_PATH 12202 shlibpath_overrides_runpath=yes 12203 if test "$with_gnu_ld" = yes; then 12204 need_lib_prefix=no 12205 fi 12206 need_version=yes 12207 ;; 12208 12209sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12210 version_type=linux 12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12212 soname_spec='${libname}${release}${shared_ext}$major' 12213 shlibpath_var=LD_LIBRARY_PATH 12214 case $host_vendor in 12215 sni) 12216 shlibpath_overrides_runpath=no 12217 need_lib_prefix=no 12218 export_dynamic_flag_spec='${wl}-Blargedynsym' 12219 runpath_var=LD_RUN_PATH 12220 ;; 12221 siemens) 12222 need_lib_prefix=no 12223 ;; 12224 motorola) 12225 need_lib_prefix=no 12226 need_version=no 12227 shlibpath_overrides_runpath=no 12228 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12229 ;; 12230 esac 12231 ;; 12232 12233sysv4*MP*) 12234 if test -d /usr/nec ;then 12235 version_type=linux 12236 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12237 soname_spec='$libname${shared_ext}.$major' 12238 shlibpath_var=LD_LIBRARY_PATH 12239 fi 12240 ;; 12241 12242uts4*) 12243 version_type=linux 12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12245 soname_spec='${libname}${release}${shared_ext}$major' 12246 shlibpath_var=LD_LIBRARY_PATH 12247 ;; 12248 12249*) 12250 dynamic_linker=no 12251 ;; 12252esac 12253echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12254echo "${ECHO_T}$dynamic_linker" >&6 12255test "$dynamic_linker" = no && can_build_shared=no 12256 12257echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12258echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12259hardcode_action_CXX= 12260if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12261 test -n "$runpath_var_CXX" || \ 12262 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12263 12264 # We can hardcode non-existant directories. 12265 if test "$hardcode_direct_CXX" != no && 12266 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12267 # have to relink, otherwise we might link with an installed library 12268 # when we should be linking with a yet-to-be-installed one 12269 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12270 test "$hardcode_minus_L_CXX" != no; then 12271 # Linking always hardcodes the temporary library directory. 12272 hardcode_action_CXX=relink 12273 else 12274 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12275 hardcode_action_CXX=immediate 12276 fi 12277else 12278 # We cannot hardcode anything, or else we can only hardcode existing 12279 # directories. 12280 hardcode_action_CXX=unsupported 12281fi 12282echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12283echo "${ECHO_T}$hardcode_action_CXX" >&6 12284 12285if test "$hardcode_action_CXX" = relink; then 12286 # Fast installation is not supported 12287 enable_fast_install=no 12288elif test "$shlibpath_overrides_runpath" = yes || 12289 test "$enable_shared" = no; then 12290 # Fast installation is not necessary 12291 enable_fast_install=needless 12292fi 12293 12294striplib= 12295old_striplib= 12296echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12297echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12298if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12299 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12300 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12301 echo "$as_me:$LINENO: result: yes" >&5 12302echo "${ECHO_T}yes" >&6 12303else 12304# FIXME - insert some real tests, host_os isn't really good enough 12305 case $host_os in 12306 darwin*) 12307 if test -n "$STRIP" ; then 12308 striplib="$STRIP -x" 12309 echo "$as_me:$LINENO: result: yes" >&5 12310echo "${ECHO_T}yes" >&6 12311 else 12312 echo "$as_me:$LINENO: result: no" >&5 12313echo "${ECHO_T}no" >&6 12314fi 12315 ;; 12316 *) 12317 echo "$as_me:$LINENO: result: no" >&5 12318echo "${ECHO_T}no" >&6 12319 ;; 12320 esac 12321fi 12322 12323if test "x$enable_dlopen" != xyes; then 12324 enable_dlopen=unknown 12325 enable_dlopen_self=unknown 12326 enable_dlopen_self_static=unknown 12327else 12328 lt_cv_dlopen=no 12329 lt_cv_dlopen_libs= 12330 12331 case $host_os in 12332 beos*) 12333 lt_cv_dlopen="load_add_on" 12334 lt_cv_dlopen_libs= 12335 lt_cv_dlopen_self=yes 12336 ;; 12337 12338 mingw* | pw32*) 12339 lt_cv_dlopen="LoadLibrary" 12340 lt_cv_dlopen_libs= 12341 ;; 12342 12343 cygwin*) 12344 lt_cv_dlopen="dlopen" 12345 lt_cv_dlopen_libs= 12346 ;; 12347 12348 darwin*) 12349 # if libdl is installed we need to link against it 12350 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12351echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12352if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12353 echo $ECHO_N "(cached) $ECHO_C" >&6 12354else 12355 ac_check_lib_save_LIBS=$LIBS 12356LIBS="-ldl $LIBS" 12357cat >conftest.$ac_ext <<_ACEOF 12358/* confdefs.h. */ 12359_ACEOF 12360cat confdefs.h >>conftest.$ac_ext 12361cat >>conftest.$ac_ext <<_ACEOF 12362/* end confdefs.h. */ 12363 12364/* Override any gcc2 internal prototype to avoid an error. */ 12365#ifdef __cplusplus 12366extern "C" 12367#endif 12368/* We use char because int might match the return type of a gcc2 12369 builtin and then its argument prototype would still apply. */ 12370char dlopen (); 12371int 12372main () 12373{ 12374dlopen (); 12375 ; 12376 return 0; 12377} 12378_ACEOF 12379rm -f conftest.$ac_objext conftest$ac_exeext 12380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12381 (eval $ac_link) 2>conftest.er1 12382 ac_status=$? 12383 grep -v '^ *+' conftest.er1 >conftest.err 12384 rm -f conftest.er1 12385 cat conftest.err >&5 12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12387 (exit $ac_status); } && 12388 { ac_try='test -z "$ac_cxx_werror_flag" 12389 || test ! -s conftest.err' 12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12391 (eval $ac_try) 2>&5 12392 ac_status=$? 12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12394 (exit $ac_status); }; } && 12395 { ac_try='test -s conftest$ac_exeext' 12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12397 (eval $ac_try) 2>&5 12398 ac_status=$? 12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12400 (exit $ac_status); }; }; then 12401 ac_cv_lib_dl_dlopen=yes 12402else 12403 echo "$as_me: failed program was:" >&5 12404sed 's/^/| /' conftest.$ac_ext >&5 12405 12406ac_cv_lib_dl_dlopen=no 12407fi 12408rm -f conftest.err conftest.$ac_objext \ 12409 conftest$ac_exeext conftest.$ac_ext 12410LIBS=$ac_check_lib_save_LIBS 12411fi 12412echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12413echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12414if test $ac_cv_lib_dl_dlopen = yes; then 12415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12416else 12417 12418 lt_cv_dlopen="dyld" 12419 lt_cv_dlopen_libs= 12420 lt_cv_dlopen_self=yes 12421 12422fi 12423 12424 ;; 12425 12426 *) 12427 echo "$as_me:$LINENO: checking for shl_load" >&5 12428echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12429if test "${ac_cv_func_shl_load+set}" = set; then 12430 echo $ECHO_N "(cached) $ECHO_C" >&6 12431else 12432 cat >conftest.$ac_ext <<_ACEOF 12433/* confdefs.h. */ 12434_ACEOF 12435cat confdefs.h >>conftest.$ac_ext 12436cat >>conftest.$ac_ext <<_ACEOF 12437/* end confdefs.h. */ 12438/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12439 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12440#define shl_load innocuous_shl_load 12441 12442/* System header to define __stub macros and hopefully few prototypes, 12443 which can conflict with char shl_load (); below. 12444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12445 <limits.h> exists even on freestanding compilers. */ 12446 12447#ifdef __STDC__ 12448# include <limits.h> 12449#else 12450# include <assert.h> 12451#endif 12452 12453#undef shl_load 12454 12455/* Override any gcc2 internal prototype to avoid an error. */ 12456#ifdef __cplusplus 12457extern "C" 12458{ 12459#endif 12460/* We use char because int might match the return type of a gcc2 12461 builtin and then its argument prototype would still apply. */ 12462char shl_load (); 12463/* The GNU C library defines this for functions which it implements 12464 to always fail with ENOSYS. Some functions are actually named 12465 something starting with __ and the normal name is an alias. */ 12466#if defined (__stub_shl_load) || defined (__stub___shl_load) 12467choke me 12468#else 12469char (*f) () = shl_load; 12470#endif 12471#ifdef __cplusplus 12472} 12473#endif 12474 12475int 12476main () 12477{ 12478return f != shl_load; 12479 ; 12480 return 0; 12481} 12482_ACEOF 12483rm -f conftest.$ac_objext conftest$ac_exeext 12484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12485 (eval $ac_link) 2>conftest.er1 12486 ac_status=$? 12487 grep -v '^ *+' conftest.er1 >conftest.err 12488 rm -f conftest.er1 12489 cat conftest.err >&5 12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12491 (exit $ac_status); } && 12492 { ac_try='test -z "$ac_cxx_werror_flag" 12493 || test ! -s conftest.err' 12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12495 (eval $ac_try) 2>&5 12496 ac_status=$? 12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12498 (exit $ac_status); }; } && 12499 { ac_try='test -s conftest$ac_exeext' 12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12501 (eval $ac_try) 2>&5 12502 ac_status=$? 12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12504 (exit $ac_status); }; }; then 12505 ac_cv_func_shl_load=yes 12506else 12507 echo "$as_me: failed program was:" >&5 12508sed 's/^/| /' conftest.$ac_ext >&5 12509 12510ac_cv_func_shl_load=no 12511fi 12512rm -f conftest.err conftest.$ac_objext \ 12513 conftest$ac_exeext conftest.$ac_ext 12514fi 12515echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12516echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12517if test $ac_cv_func_shl_load = yes; then 12518 lt_cv_dlopen="shl_load" 12519else 12520 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12521echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12522if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12523 echo $ECHO_N "(cached) $ECHO_C" >&6 12524else 12525 ac_check_lib_save_LIBS=$LIBS 12526LIBS="-ldld $LIBS" 12527cat >conftest.$ac_ext <<_ACEOF 12528/* confdefs.h. */ 12529_ACEOF 12530cat confdefs.h >>conftest.$ac_ext 12531cat >>conftest.$ac_ext <<_ACEOF 12532/* end confdefs.h. */ 12533 12534/* Override any gcc2 internal prototype to avoid an error. */ 12535#ifdef __cplusplus 12536extern "C" 12537#endif 12538/* We use char because int might match the return type of a gcc2 12539 builtin and then its argument prototype would still apply. */ 12540char shl_load (); 12541int 12542main () 12543{ 12544shl_load (); 12545 ; 12546 return 0; 12547} 12548_ACEOF 12549rm -f conftest.$ac_objext conftest$ac_exeext 12550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12551 (eval $ac_link) 2>conftest.er1 12552 ac_status=$? 12553 grep -v '^ *+' conftest.er1 >conftest.err 12554 rm -f conftest.er1 12555 cat conftest.err >&5 12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12557 (exit $ac_status); } && 12558 { ac_try='test -z "$ac_cxx_werror_flag" 12559 || test ! -s conftest.err' 12560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12561 (eval $ac_try) 2>&5 12562 ac_status=$? 12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12564 (exit $ac_status); }; } && 12565 { ac_try='test -s conftest$ac_exeext' 12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12567 (eval $ac_try) 2>&5 12568 ac_status=$? 12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12570 (exit $ac_status); }; }; then 12571 ac_cv_lib_dld_shl_load=yes 12572else 12573 echo "$as_me: failed program was:" >&5 12574sed 's/^/| /' conftest.$ac_ext >&5 12575 12576ac_cv_lib_dld_shl_load=no 12577fi 12578rm -f conftest.err conftest.$ac_objext \ 12579 conftest$ac_exeext conftest.$ac_ext 12580LIBS=$ac_check_lib_save_LIBS 12581fi 12582echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12583echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12584if test $ac_cv_lib_dld_shl_load = yes; then 12585 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12586else 12587 echo "$as_me:$LINENO: checking for dlopen" >&5 12588echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12589if test "${ac_cv_func_dlopen+set}" = set; then 12590 echo $ECHO_N "(cached) $ECHO_C" >&6 12591else 12592 cat >conftest.$ac_ext <<_ACEOF 12593/* confdefs.h. */ 12594_ACEOF 12595cat confdefs.h >>conftest.$ac_ext 12596cat >>conftest.$ac_ext <<_ACEOF 12597/* end confdefs.h. */ 12598/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12599 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12600#define dlopen innocuous_dlopen 12601 12602/* System header to define __stub macros and hopefully few prototypes, 12603 which can conflict with char dlopen (); below. 12604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12605 <limits.h> exists even on freestanding compilers. */ 12606 12607#ifdef __STDC__ 12608# include <limits.h> 12609#else 12610# include <assert.h> 12611#endif 12612 12613#undef dlopen 12614 12615/* Override any gcc2 internal prototype to avoid an error. */ 12616#ifdef __cplusplus 12617extern "C" 12618{ 12619#endif 12620/* We use char because int might match the return type of a gcc2 12621 builtin and then its argument prototype would still apply. */ 12622char dlopen (); 12623/* The GNU C library defines this for functions which it implements 12624 to always fail with ENOSYS. Some functions are actually named 12625 something starting with __ and the normal name is an alias. */ 12626#if defined (__stub_dlopen) || defined (__stub___dlopen) 12627choke me 12628#else 12629char (*f) () = dlopen; 12630#endif 12631#ifdef __cplusplus 12632} 12633#endif 12634 12635int 12636main () 12637{ 12638return f != dlopen; 12639 ; 12640 return 0; 12641} 12642_ACEOF 12643rm -f conftest.$ac_objext conftest$ac_exeext 12644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12645 (eval $ac_link) 2>conftest.er1 12646 ac_status=$? 12647 grep -v '^ *+' conftest.er1 >conftest.err 12648 rm -f conftest.er1 12649 cat conftest.err >&5 12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12651 (exit $ac_status); } && 12652 { ac_try='test -z "$ac_cxx_werror_flag" 12653 || test ! -s conftest.err' 12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12655 (eval $ac_try) 2>&5 12656 ac_status=$? 12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12658 (exit $ac_status); }; } && 12659 { ac_try='test -s conftest$ac_exeext' 12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12661 (eval $ac_try) 2>&5 12662 ac_status=$? 12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12664 (exit $ac_status); }; }; then 12665 ac_cv_func_dlopen=yes 12666else 12667 echo "$as_me: failed program was:" >&5 12668sed 's/^/| /' conftest.$ac_ext >&5 12669 12670ac_cv_func_dlopen=no 12671fi 12672rm -f conftest.err conftest.$ac_objext \ 12673 conftest$ac_exeext conftest.$ac_ext 12674fi 12675echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12676echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12677if test $ac_cv_func_dlopen = yes; then 12678 lt_cv_dlopen="dlopen" 12679else 12680 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12681echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12682if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12683 echo $ECHO_N "(cached) $ECHO_C" >&6 12684else 12685 ac_check_lib_save_LIBS=$LIBS 12686LIBS="-ldl $LIBS" 12687cat >conftest.$ac_ext <<_ACEOF 12688/* confdefs.h. */ 12689_ACEOF 12690cat confdefs.h >>conftest.$ac_ext 12691cat >>conftest.$ac_ext <<_ACEOF 12692/* end confdefs.h. */ 12693 12694/* Override any gcc2 internal prototype to avoid an error. */ 12695#ifdef __cplusplus 12696extern "C" 12697#endif 12698/* We use char because int might match the return type of a gcc2 12699 builtin and then its argument prototype would still apply. */ 12700char dlopen (); 12701int 12702main () 12703{ 12704dlopen (); 12705 ; 12706 return 0; 12707} 12708_ACEOF 12709rm -f conftest.$ac_objext conftest$ac_exeext 12710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12711 (eval $ac_link) 2>conftest.er1 12712 ac_status=$? 12713 grep -v '^ *+' conftest.er1 >conftest.err 12714 rm -f conftest.er1 12715 cat conftest.err >&5 12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12717 (exit $ac_status); } && 12718 { ac_try='test -z "$ac_cxx_werror_flag" 12719 || test ! -s conftest.err' 12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12721 (eval $ac_try) 2>&5 12722 ac_status=$? 12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12724 (exit $ac_status); }; } && 12725 { ac_try='test -s conftest$ac_exeext' 12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12727 (eval $ac_try) 2>&5 12728 ac_status=$? 12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12730 (exit $ac_status); }; }; then 12731 ac_cv_lib_dl_dlopen=yes 12732else 12733 echo "$as_me: failed program was:" >&5 12734sed 's/^/| /' conftest.$ac_ext >&5 12735 12736ac_cv_lib_dl_dlopen=no 12737fi 12738rm -f conftest.err conftest.$ac_objext \ 12739 conftest$ac_exeext conftest.$ac_ext 12740LIBS=$ac_check_lib_save_LIBS 12741fi 12742echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12743echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12744if test $ac_cv_lib_dl_dlopen = yes; then 12745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12746else 12747 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12748echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12749if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12750 echo $ECHO_N "(cached) $ECHO_C" >&6 12751else 12752 ac_check_lib_save_LIBS=$LIBS 12753LIBS="-lsvld $LIBS" 12754cat >conftest.$ac_ext <<_ACEOF 12755/* confdefs.h. */ 12756_ACEOF 12757cat confdefs.h >>conftest.$ac_ext 12758cat >>conftest.$ac_ext <<_ACEOF 12759/* end confdefs.h. */ 12760 12761/* Override any gcc2 internal prototype to avoid an error. */ 12762#ifdef __cplusplus 12763extern "C" 12764#endif 12765/* We use char because int might match the return type of a gcc2 12766 builtin and then its argument prototype would still apply. */ 12767char dlopen (); 12768int 12769main () 12770{ 12771dlopen (); 12772 ; 12773 return 0; 12774} 12775_ACEOF 12776rm -f conftest.$ac_objext conftest$ac_exeext 12777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12778 (eval $ac_link) 2>conftest.er1 12779 ac_status=$? 12780 grep -v '^ *+' conftest.er1 >conftest.err 12781 rm -f conftest.er1 12782 cat conftest.err >&5 12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12784 (exit $ac_status); } && 12785 { ac_try='test -z "$ac_cxx_werror_flag" 12786 || test ! -s conftest.err' 12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12788 (eval $ac_try) 2>&5 12789 ac_status=$? 12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12791 (exit $ac_status); }; } && 12792 { ac_try='test -s conftest$ac_exeext' 12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12794 (eval $ac_try) 2>&5 12795 ac_status=$? 12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12797 (exit $ac_status); }; }; then 12798 ac_cv_lib_svld_dlopen=yes 12799else 12800 echo "$as_me: failed program was:" >&5 12801sed 's/^/| /' conftest.$ac_ext >&5 12802 12803ac_cv_lib_svld_dlopen=no 12804fi 12805rm -f conftest.err conftest.$ac_objext \ 12806 conftest$ac_exeext conftest.$ac_ext 12807LIBS=$ac_check_lib_save_LIBS 12808fi 12809echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12810echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12811if test $ac_cv_lib_svld_dlopen = yes; then 12812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12813else 12814 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12815echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12816if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12817 echo $ECHO_N "(cached) $ECHO_C" >&6 12818else 12819 ac_check_lib_save_LIBS=$LIBS 12820LIBS="-ldld $LIBS" 12821cat >conftest.$ac_ext <<_ACEOF 12822/* confdefs.h. */ 12823_ACEOF 12824cat confdefs.h >>conftest.$ac_ext 12825cat >>conftest.$ac_ext <<_ACEOF 12826/* end confdefs.h. */ 12827 12828/* Override any gcc2 internal prototype to avoid an error. */ 12829#ifdef __cplusplus 12830extern "C" 12831#endif 12832/* We use char because int might match the return type of a gcc2 12833 builtin and then its argument prototype would still apply. */ 12834char dld_link (); 12835int 12836main () 12837{ 12838dld_link (); 12839 ; 12840 return 0; 12841} 12842_ACEOF 12843rm -f conftest.$ac_objext conftest$ac_exeext 12844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12845 (eval $ac_link) 2>conftest.er1 12846 ac_status=$? 12847 grep -v '^ *+' conftest.er1 >conftest.err 12848 rm -f conftest.er1 12849 cat conftest.err >&5 12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12851 (exit $ac_status); } && 12852 { ac_try='test -z "$ac_cxx_werror_flag" 12853 || test ! -s conftest.err' 12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12855 (eval $ac_try) 2>&5 12856 ac_status=$? 12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12858 (exit $ac_status); }; } && 12859 { ac_try='test -s conftest$ac_exeext' 12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12861 (eval $ac_try) 2>&5 12862 ac_status=$? 12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12864 (exit $ac_status); }; }; then 12865 ac_cv_lib_dld_dld_link=yes 12866else 12867 echo "$as_me: failed program was:" >&5 12868sed 's/^/| /' conftest.$ac_ext >&5 12869 12870ac_cv_lib_dld_dld_link=no 12871fi 12872rm -f conftest.err conftest.$ac_objext \ 12873 conftest$ac_exeext conftest.$ac_ext 12874LIBS=$ac_check_lib_save_LIBS 12875fi 12876echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12877echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12878if test $ac_cv_lib_dld_dld_link = yes; then 12879 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12880fi 12881 12882 12883fi 12884 12885 12886fi 12887 12888 12889fi 12890 12891 12892fi 12893 12894 12895fi 12896 12897 ;; 12898 esac 12899 12900 if test "x$lt_cv_dlopen" != xno; then 12901 enable_dlopen=yes 12902 else 12903 enable_dlopen=no 12904 fi 12905 12906 case $lt_cv_dlopen in 12907 dlopen) 12908 save_CPPFLAGS="$CPPFLAGS" 12909 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12910 12911 save_LDFLAGS="$LDFLAGS" 12912 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12913 12914 save_LIBS="$LIBS" 12915 LIBS="$lt_cv_dlopen_libs $LIBS" 12916 12917 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12918echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12919if test "${lt_cv_dlopen_self+set}" = set; then 12920 echo $ECHO_N "(cached) $ECHO_C" >&6 12921else 12922 if test "$cross_compiling" = yes; then : 12923 lt_cv_dlopen_self=cross 12924else 12925 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12926 lt_status=$lt_dlunknown 12927 cat > conftest.$ac_ext <<EOF 12928#line 12928 "configure" 12929#include "confdefs.h" 12930 12931#if HAVE_DLFCN_H 12932#include <dlfcn.h> 12933#endif 12934 12935#include <stdio.h> 12936 12937#ifdef RTLD_GLOBAL 12938# define LT_DLGLOBAL RTLD_GLOBAL 12939#else 12940# ifdef DL_GLOBAL 12941# define LT_DLGLOBAL DL_GLOBAL 12942# else 12943# define LT_DLGLOBAL 0 12944# endif 12945#endif 12946 12947/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12948 find out it does not work in some platform. */ 12949#ifndef LT_DLLAZY_OR_NOW 12950# ifdef RTLD_LAZY 12951# define LT_DLLAZY_OR_NOW RTLD_LAZY 12952# else 12953# ifdef DL_LAZY 12954# define LT_DLLAZY_OR_NOW DL_LAZY 12955# else 12956# ifdef RTLD_NOW 12957# define LT_DLLAZY_OR_NOW RTLD_NOW 12958# else 12959# ifdef DL_NOW 12960# define LT_DLLAZY_OR_NOW DL_NOW 12961# else 12962# define LT_DLLAZY_OR_NOW 0 12963# endif 12964# endif 12965# endif 12966# endif 12967#endif 12968 12969#ifdef __cplusplus 12970extern "C" void exit (int); 12971#endif 12972 12973void fnord() { int i=42;} 12974int main () 12975{ 12976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12977 int status = $lt_dlunknown; 12978 12979 if (self) 12980 { 12981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12982 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12983 /* dlclose (self); */ 12984 } 12985 12986 exit (status); 12987} 12988EOF 12989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12990 (eval $ac_link) 2>&5 12991 ac_status=$? 12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12993 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12994 (./conftest; exit; ) >&5 2>/dev/null 12995 lt_status=$? 12996 case x$lt_status in 12997 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12998 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12999 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 13000 esac 13001 else : 13002 # compilation failed 13003 lt_cv_dlopen_self=no 13004 fi 13005fi 13006rm -fr conftest* 13007 13008 13009fi 13010echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 13011echo "${ECHO_T}$lt_cv_dlopen_self" >&6 13012 13013 if test "x$lt_cv_dlopen_self" = xyes; then 13014 LDFLAGS="$LDFLAGS $link_static_flag" 13015 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 13016echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 13017if test "${lt_cv_dlopen_self_static+set}" = set; then 13018 echo $ECHO_N "(cached) $ECHO_C" >&6 13019else 13020 if test "$cross_compiling" = yes; then : 13021 lt_cv_dlopen_self_static=cross 13022else 13023 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13024 lt_status=$lt_dlunknown 13025 cat > conftest.$ac_ext <<EOF 13026#line 13026 "configure" 13027#include "confdefs.h" 13028 13029#if HAVE_DLFCN_H 13030#include <dlfcn.h> 13031#endif 13032 13033#include <stdio.h> 13034 13035#ifdef RTLD_GLOBAL 13036# define LT_DLGLOBAL RTLD_GLOBAL 13037#else 13038# ifdef DL_GLOBAL 13039# define LT_DLGLOBAL DL_GLOBAL 13040# else 13041# define LT_DLGLOBAL 0 13042# endif 13043#endif 13044 13045/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13046 find out it does not work in some platform. */ 13047#ifndef LT_DLLAZY_OR_NOW 13048# ifdef RTLD_LAZY 13049# define LT_DLLAZY_OR_NOW RTLD_LAZY 13050# else 13051# ifdef DL_LAZY 13052# define LT_DLLAZY_OR_NOW DL_LAZY 13053# else 13054# ifdef RTLD_NOW 13055# define LT_DLLAZY_OR_NOW RTLD_NOW 13056# else 13057# ifdef DL_NOW 13058# define LT_DLLAZY_OR_NOW DL_NOW 13059# else 13060# define LT_DLLAZY_OR_NOW 0 13061# endif 13062# endif 13063# endif 13064# endif 13065#endif 13066 13067#ifdef __cplusplus 13068extern "C" void exit (int); 13069#endif 13070 13071void fnord() { int i=42;} 13072int main () 13073{ 13074 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13075 int status = $lt_dlunknown; 13076 13077 if (self) 13078 { 13079 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13080 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13081 /* dlclose (self); */ 13082 } 13083 13084 exit (status); 13085} 13086EOF 13087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13088 (eval $ac_link) 2>&5 13089 ac_status=$? 13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13091 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13092 (./conftest; exit; ) >&5 2>/dev/null 13093 lt_status=$? 13094 case x$lt_status in 13095 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13096 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13097 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13098 esac 13099 else : 13100 # compilation failed 13101 lt_cv_dlopen_self_static=no 13102 fi 13103fi 13104rm -fr conftest* 13105 13106 13107fi 13108echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13109echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13110 fi 13111 13112 CPPFLAGS="$save_CPPFLAGS" 13113 LDFLAGS="$save_LDFLAGS" 13114 LIBS="$save_LIBS" 13115 ;; 13116 esac 13117 13118 case $lt_cv_dlopen_self in 13119 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13120 *) enable_dlopen_self=unknown ;; 13121 esac 13122 13123 case $lt_cv_dlopen_self_static in 13124 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13125 *) enable_dlopen_self_static=unknown ;; 13126 esac 13127fi 13128 13129 13130# The else clause should only fire when bootstrapping the 13131# libtool distribution, otherwise you forgot to ship ltmain.sh 13132# with your package, and you will get complaints that there are 13133# no rules to generate ltmain.sh. 13134if test -f "$ltmain"; then 13135 # See if we are running on zsh, and set the options which allow our commands through 13136 # without removal of \ escapes. 13137 if test -n "${ZSH_VERSION+set}" ; then 13138 setopt NO_GLOB_SUBST 13139 fi 13140 # Now quote all the things that may contain metacharacters while being 13141 # careful not to overquote the AC_SUBSTed values. We take copies of the 13142 # variables and quote the copies for generation of the libtool script. 13143 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13144 SED SHELL STRIP \ 13145 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13146 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13147 deplibs_check_method reload_flag reload_cmds need_locks \ 13148 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13149 lt_cv_sys_global_symbol_to_c_name_address \ 13150 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13151 old_postinstall_cmds old_postuninstall_cmds \ 13152 compiler_CXX \ 13153 CC_CXX \ 13154 LD_CXX \ 13155 lt_prog_compiler_wl_CXX \ 13156 lt_prog_compiler_pic_CXX \ 13157 lt_prog_compiler_static_CXX \ 13158 lt_prog_compiler_no_builtin_flag_CXX \ 13159 export_dynamic_flag_spec_CXX \ 13160 thread_safe_flag_spec_CXX \ 13161 whole_archive_flag_spec_CXX \ 13162 enable_shared_with_static_runtimes_CXX \ 13163 old_archive_cmds_CXX \ 13164 old_archive_from_new_cmds_CXX \ 13165 predep_objects_CXX \ 13166 postdep_objects_CXX \ 13167 predeps_CXX \ 13168 postdeps_CXX \ 13169 compiler_lib_search_path_CXX \ 13170 archive_cmds_CXX \ 13171 archive_expsym_cmds_CXX \ 13172 postinstall_cmds_CXX \ 13173 postuninstall_cmds_CXX \ 13174 old_archive_from_expsyms_cmds_CXX \ 13175 allow_undefined_flag_CXX \ 13176 no_undefined_flag_CXX \ 13177 export_symbols_cmds_CXX \ 13178 hardcode_libdir_flag_spec_CXX \ 13179 hardcode_libdir_flag_spec_ld_CXX \ 13180 hardcode_libdir_separator_CXX \ 13181 hardcode_automatic_CXX \ 13182 module_cmds_CXX \ 13183 module_expsym_cmds_CXX \ 13184 lt_cv_prog_compiler_c_o_CXX \ 13185 exclude_expsyms_CXX \ 13186 include_expsyms_CXX; do 13187 13188 case $var in 13189 old_archive_cmds_CXX | \ 13190 old_archive_from_new_cmds_CXX | \ 13191 archive_cmds_CXX | \ 13192 archive_expsym_cmds_CXX | \ 13193 module_cmds_CXX | \ 13194 module_expsym_cmds_CXX | \ 13195 old_archive_from_expsyms_cmds_CXX | \ 13196 export_symbols_cmds_CXX | \ 13197 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13198 postinstall_cmds | postuninstall_cmds | \ 13199 old_postinstall_cmds | old_postuninstall_cmds | \ 13200 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13201 # Double-quote double-evaled strings. 13202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13203 ;; 13204 *) 13205 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13206 ;; 13207 esac 13208 done 13209 13210 case $lt_echo in 13211 *'\$0 --fallback-echo"') 13212 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13213 ;; 13214 esac 13215 13216cfgfile="$ofile" 13217 13218 cat <<__EOF__ >> "$cfgfile" 13219# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13220 13221# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13222 13223# Shell to use when invoking shell scripts. 13224SHELL=$lt_SHELL 13225 13226# Whether or not to build shared libraries. 13227build_libtool_libs=$enable_shared 13228 13229# Whether or not to build static libraries. 13230build_old_libs=$enable_static 13231 13232# Whether or not to add -lc for building shared libraries. 13233build_libtool_need_lc=$archive_cmds_need_lc_CXX 13234 13235# Whether or not to disallow shared libs when runtime libs are static 13236allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13237 13238# Whether or not to optimize for fast installation. 13239fast_install=$enable_fast_install 13240 13241# The host system. 13242host_alias=$host_alias 13243host=$host 13244host_os=$host_os 13245 13246# The build system. 13247build_alias=$build_alias 13248build=$build 13249build_os=$build_os 13250 13251# An echo program that does not interpret backslashes. 13252echo=$lt_echo 13253 13254# The archiver. 13255AR=$lt_AR 13256AR_FLAGS=$lt_AR_FLAGS 13257 13258# A C compiler. 13259LTCC=$lt_LTCC 13260 13261# A language-specific compiler. 13262CC=$lt_compiler_CXX 13263 13264# Is the compiler the GNU C compiler? 13265with_gcc=$GCC_CXX 13266 13267# An ERE matcher. 13268EGREP=$lt_EGREP 13269 13270# The linker used to build libraries. 13271LD=$lt_LD_CXX 13272 13273# Whether we need hard or soft links. 13274LN_S=$lt_LN_S 13275 13276# A BSD-compatible nm program. 13277NM=$lt_NM 13278 13279# A symbol stripping program 13280STRIP=$lt_STRIP 13281 13282# Used to examine libraries when file_magic_cmd begins "file" 13283MAGIC_CMD=$MAGIC_CMD 13284 13285# Used on cygwin: DLL creation program. 13286DLLTOOL="$DLLTOOL" 13287 13288# Used on cygwin: object dumper. 13289OBJDUMP="$OBJDUMP" 13290 13291# Used on cygwin: assembler. 13292AS="$AS" 13293 13294# The name of the directory that contains temporary libtool files. 13295objdir=$objdir 13296 13297# How to create reloadable object files. 13298reload_flag=$lt_reload_flag 13299reload_cmds=$lt_reload_cmds 13300 13301# How to pass a linker flag through the compiler. 13302wl=$lt_lt_prog_compiler_wl_CXX 13303 13304# Object file suffix (normally "o"). 13305objext="$ac_objext" 13306 13307# Old archive suffix (normally "a"). 13308libext="$libext" 13309 13310# Shared library suffix (normally ".so"). 13311shrext_cmds='$shrext_cmds' 13312 13313# Executable file suffix (normally ""). 13314exeext="$exeext" 13315 13316# Additional compiler flags for building library objects. 13317pic_flag=$lt_lt_prog_compiler_pic_CXX 13318pic_mode=$pic_mode 13319 13320# What is the maximum length of a command? 13321max_cmd_len=$lt_cv_sys_max_cmd_len 13322 13323# Does compiler simultaneously support -c and -o options? 13324compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13325 13326# Must we lock files when doing compilation? 13327need_locks=$lt_need_locks 13328 13329# Do we need the lib prefix for modules? 13330need_lib_prefix=$need_lib_prefix 13331 13332# Do we need a version for libraries? 13333need_version=$need_version 13334 13335# Whether dlopen is supported. 13336dlopen_support=$enable_dlopen 13337 13338# Whether dlopen of programs is supported. 13339dlopen_self=$enable_dlopen_self 13340 13341# Whether dlopen of statically linked programs is supported. 13342dlopen_self_static=$enable_dlopen_self_static 13343 13344# Compiler flag to prevent dynamic linking. 13345link_static_flag=$lt_lt_prog_compiler_static_CXX 13346 13347# Compiler flag to turn off builtin functions. 13348no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13349 13350# Compiler flag to allow reflexive dlopens. 13351export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13352 13353# Compiler flag to generate shared objects directly from archives. 13354whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13355 13356# Compiler flag to generate thread-safe objects. 13357thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13358 13359# Library versioning type. 13360version_type=$version_type 13361 13362# Format of library name prefix. 13363libname_spec=$lt_libname_spec 13364 13365# List of archive names. First name is the real one, the rest are links. 13366# The last name is the one that the linker finds with -lNAME. 13367library_names_spec=$lt_library_names_spec 13368 13369# The coded name of the library, if different from the real name. 13370soname_spec=$lt_soname_spec 13371 13372# Commands used to build and install an old-style archive. 13373RANLIB=$lt_RANLIB 13374old_archive_cmds=$lt_old_archive_cmds_CXX 13375old_postinstall_cmds=$lt_old_postinstall_cmds 13376old_postuninstall_cmds=$lt_old_postuninstall_cmds 13377 13378# Create an old-style archive from a shared archive. 13379old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13380 13381# Create a temporary old-style archive to link instead of a shared archive. 13382old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13383 13384# Commands used to build and install a shared archive. 13385archive_cmds=$lt_archive_cmds_CXX 13386archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13387postinstall_cmds=$lt_postinstall_cmds 13388postuninstall_cmds=$lt_postuninstall_cmds 13389 13390# Commands used to build a loadable module (assumed same as above if empty) 13391module_cmds=$lt_module_cmds_CXX 13392module_expsym_cmds=$lt_module_expsym_cmds_CXX 13393 13394# Commands to strip libraries. 13395old_striplib=$lt_old_striplib 13396striplib=$lt_striplib 13397 13398# Dependencies to place before the objects being linked to create a 13399# shared library. 13400predep_objects=$lt_predep_objects_CXX 13401 13402# Dependencies to place after the objects being linked to create a 13403# shared library. 13404postdep_objects=$lt_postdep_objects_CXX 13405 13406# Dependencies to place before the objects being linked to create a 13407# shared library. 13408predeps=$lt_predeps_CXX 13409 13410# Dependencies to place after the objects being linked to create a 13411# shared library. 13412postdeps=$lt_postdeps_CXX 13413 13414# The library search path used internally by the compiler when linking 13415# a shared library. 13416compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13417 13418# Method to check whether dependent libraries are shared objects. 13419deplibs_check_method=$lt_deplibs_check_method 13420 13421# Command to use when deplibs_check_method == file_magic. 13422file_magic_cmd=$lt_file_magic_cmd 13423 13424# Flag that allows shared libraries with undefined symbols to be built. 13425allow_undefined_flag=$lt_allow_undefined_flag_CXX 13426 13427# Flag that forces no undefined symbols. 13428no_undefined_flag=$lt_no_undefined_flag_CXX 13429 13430# Commands used to finish a libtool library installation in a directory. 13431finish_cmds=$lt_finish_cmds 13432 13433# Same as above, but a single script fragment to be evaled but not shown. 13434finish_eval=$lt_finish_eval 13435 13436# Take the output of nm and produce a listing of raw symbols and C names. 13437global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13438 13439# Transform the output of nm in a proper C declaration 13440global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13441 13442# Transform the output of nm in a C name address pair 13443global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13444 13445# This is the shared library runtime path variable. 13446runpath_var=$runpath_var 13447 13448# This is the shared library path variable. 13449shlibpath_var=$shlibpath_var 13450 13451# Is shlibpath searched before the hard-coded library search path? 13452shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13453 13454# How to hardcode a shared library path into an executable. 13455hardcode_action=$hardcode_action_CXX 13456 13457# Whether we should hardcode library paths into libraries. 13458hardcode_into_libs=$hardcode_into_libs 13459 13460# Flag to hardcode \$libdir into a binary during linking. 13461# This must work even if \$libdir does not exist. 13462hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13463 13464# If ld is used when linking, flag to hardcode \$libdir into 13465# a binary during linking. This must work even if \$libdir does 13466# not exist. 13467hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13468 13469# Whether we need a single -rpath flag with a separated argument. 13470hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13471 13472# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13473# resulting binary. 13474hardcode_direct=$hardcode_direct_CXX 13475 13476# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13477# resulting binary. 13478hardcode_minus_L=$hardcode_minus_L_CXX 13479 13480# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13481# the resulting binary. 13482hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13483 13484# Set to yes if building a shared library automatically hardcodes DIR into the library 13485# and all subsequent libraries and executables linked against it. 13486hardcode_automatic=$hardcode_automatic_CXX 13487 13488# Variables whose values should be saved in libtool wrapper scripts and 13489# restored at relink time. 13490variables_saved_for_relink="$variables_saved_for_relink" 13491 13492# Whether libtool must link a program against all its dependency libraries. 13493link_all_deplibs=$link_all_deplibs_CXX 13494 13495# Compile-time system search path for libraries 13496sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13497 13498# Run-time system search path for libraries 13499sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13500 13501# Fix the shell variable \$srcfile for the compiler. 13502fix_srcfile_path="$fix_srcfile_path_CXX" 13503 13504# Set to yes if exported symbols are required. 13505always_export_symbols=$always_export_symbols_CXX 13506 13507# The commands to list exported symbols. 13508export_symbols_cmds=$lt_export_symbols_cmds_CXX 13509 13510# The commands to extract the exported symbol list from a shared archive. 13511extract_expsyms_cmds=$lt_extract_expsyms_cmds 13512 13513# Symbols that should not be listed in the preloaded symbols. 13514exclude_expsyms=$lt_exclude_expsyms_CXX 13515 13516# Symbols that must always be exported. 13517include_expsyms=$lt_include_expsyms_CXX 13518 13519# ### END LIBTOOL TAG CONFIG: $tagname 13520 13521__EOF__ 13522 13523 13524else 13525 # If there is no Makefile yet, we rely on a make rule to execute 13526 # `config.status --recheck' to rerun these tests and create the 13527 # libtool script then. 13528 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13529 if test -f "$ltmain_in"; then 13530 test -f Makefile && make "$ltmain" 13531 fi 13532fi 13533 13534 13535ac_ext=c 13536ac_cpp='$CPP $CPPFLAGS' 13537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13539ac_compiler_gnu=$ac_cv_c_compiler_gnu 13540 13541CC=$lt_save_CC 13542LDCXX=$LD 13543LD=$lt_save_LD 13544GCC=$lt_save_GCC 13545with_gnu_ldcxx=$with_gnu_ld 13546with_gnu_ld=$lt_save_with_gnu_ld 13547lt_cv_path_LDCXX=$lt_cv_path_LD 13548lt_cv_path_LD=$lt_save_path_LD 13549lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13550lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13551 13552 else 13553 tagname="" 13554 fi 13555 ;; 13556 13557 F77) 13558 if test -n "$F77" && test "X$F77" != "Xno"; then 13559 13560ac_ext=f 13561ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13562ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13563ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13564 13565 13566archive_cmds_need_lc_F77=no 13567allow_undefined_flag_F77= 13568always_export_symbols_F77=no 13569archive_expsym_cmds_F77= 13570export_dynamic_flag_spec_F77= 13571hardcode_direct_F77=no 13572hardcode_libdir_flag_spec_F77= 13573hardcode_libdir_flag_spec_ld_F77= 13574hardcode_libdir_separator_F77= 13575hardcode_minus_L_F77=no 13576hardcode_automatic_F77=no 13577module_cmds_F77= 13578module_expsym_cmds_F77= 13579link_all_deplibs_F77=unknown 13580old_archive_cmds_F77=$old_archive_cmds 13581no_undefined_flag_F77= 13582whole_archive_flag_spec_F77= 13583enable_shared_with_static_runtimes_F77=no 13584 13585# Source file extension for f77 test sources. 13586ac_ext=f 13587 13588# Object file extension for compiled f77 test sources. 13589objext=o 13590objext_F77=$objext 13591 13592# Code to be used in simple compile tests 13593lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13594 13595# Code to be used in simple link tests 13596lt_simple_link_test_code=" program t\n end\n" 13597 13598# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13599 13600# If no C compiler was specified, use CC. 13601LTCC=${LTCC-"$CC"} 13602 13603# Allow CC to be a program name with arguments. 13604compiler=$CC 13605 13606 13607# save warnings/boilerplate of simple test code 13608ac_outfile=conftest.$ac_objext 13609printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13610eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13611_lt_compiler_boilerplate=`cat conftest.err` 13612$rm conftest* 13613 13614ac_outfile=conftest.$ac_objext 13615printf "$lt_simple_link_test_code" >conftest.$ac_ext 13616eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13617_lt_linker_boilerplate=`cat conftest.err` 13618$rm conftest* 13619 13620 13621# Allow CC to be a program name with arguments. 13622lt_save_CC="$CC" 13623CC=${F77-"f77"} 13624compiler=$CC 13625compiler_F77=$CC 13626for cc_temp in $compiler""; do 13627 case $cc_temp in 13628 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13629 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13630 \-*) ;; 13631 *) break;; 13632 esac 13633done 13634cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13635 13636 13637echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13638echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13639echo "$as_me:$LINENO: result: $can_build_shared" >&5 13640echo "${ECHO_T}$can_build_shared" >&6 13641 13642echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13643echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13644test "$can_build_shared" = "no" && enable_shared=no 13645 13646# On AIX, shared libraries and static libraries use the same namespace, and 13647# are all built from PIC. 13648case $host_os in 13649aix3*) 13650 test "$enable_shared" = yes && enable_static=no 13651 if test -n "$RANLIB"; then 13652 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13653 postinstall_cmds='$RANLIB $lib' 13654 fi 13655 ;; 13656aix4* | aix5*) 13657 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13658 test "$enable_shared" = yes && enable_static=no 13659 fi 13660 ;; 13661esac 13662echo "$as_me:$LINENO: result: $enable_shared" >&5 13663echo "${ECHO_T}$enable_shared" >&6 13664 13665echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13666echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13667# Make sure either enable_shared or enable_static is yes. 13668test "$enable_shared" = yes || enable_static=yes 13669echo "$as_me:$LINENO: result: $enable_static" >&5 13670echo "${ECHO_T}$enable_static" >&6 13671 13672test "$ld_shlibs_F77" = no && can_build_shared=no 13673 13674GCC_F77="$G77" 13675LD_F77="$LD" 13676 13677lt_prog_compiler_wl_F77= 13678lt_prog_compiler_pic_F77= 13679lt_prog_compiler_static_F77= 13680 13681echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13682echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13683 13684 if test "$GCC" = yes; then 13685 lt_prog_compiler_wl_F77='-Wl,' 13686 lt_prog_compiler_static_F77='-static' 13687 13688 case $host_os in 13689 aix*) 13690 # All AIX code is PIC. 13691 if test "$host_cpu" = ia64; then 13692 # AIX 5 now supports IA64 processor 13693 lt_prog_compiler_static_F77='-Bstatic' 13694 fi 13695 ;; 13696 13697 amigaos*) 13698 # FIXME: we need at least 68020 code to build shared libraries, but 13699 # adding the `-m68020' flag to GCC prevents building anything better, 13700 # like `-m68040'. 13701 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13702 ;; 13703 13704 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13705 # PIC is the default for these OSes. 13706 ;; 13707 13708 mingw* | pw32* | os2*) 13709 # This hack is so that the source file can tell whether it is being 13710 # built for inclusion in a dll (and should export symbols for example). 13711 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13712 ;; 13713 13714 darwin* | rhapsody*) 13715 # PIC is the default on this platform 13716 # Common symbols not allowed in MH_DYLIB files 13717 lt_prog_compiler_pic_F77='-fno-common' 13718 ;; 13719 13720 msdosdjgpp*) 13721 # Just because we use GCC doesn't mean we suddenly get shared libraries 13722 # on systems that don't support them. 13723 lt_prog_compiler_can_build_shared_F77=no 13724 enable_shared=no 13725 ;; 13726 13727 sysv4*MP*) 13728 if test -d /usr/nec; then 13729 lt_prog_compiler_pic_F77=-Kconform_pic 13730 fi 13731 ;; 13732 13733 hpux*) 13734 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13735 # not for PA HP-UX. 13736 case $host_cpu in 13737 hppa*64*|ia64*) 13738 # +Z the default 13739 ;; 13740 *) 13741 lt_prog_compiler_pic_F77='-fPIC' 13742 ;; 13743 esac 13744 ;; 13745 13746 *) 13747 lt_prog_compiler_pic_F77='-fPIC' 13748 ;; 13749 esac 13750 else 13751 # PORTME Check for flag to pass linker flags through the system compiler. 13752 case $host_os in 13753 aix*) 13754 lt_prog_compiler_wl_F77='-Wl,' 13755 if test "$host_cpu" = ia64; then 13756 # AIX 5 now supports IA64 processor 13757 lt_prog_compiler_static_F77='-Bstatic' 13758 else 13759 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13760 fi 13761 ;; 13762 darwin*) 13763 # PIC is the default on this platform 13764 # Common symbols not allowed in MH_DYLIB files 13765 case $cc_basename in 13766 xlc*) 13767 lt_prog_compiler_pic_F77='-qnocommon' 13768 lt_prog_compiler_wl_F77='-Wl,' 13769 ;; 13770 esac 13771 ;; 13772 13773 mingw* | pw32* | os2*) 13774 # This hack is so that the source file can tell whether it is being 13775 # built for inclusion in a dll (and should export symbols for example). 13776 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13777 ;; 13778 13779 hpux9* | hpux10* | hpux11*) 13780 lt_prog_compiler_wl_F77='-Wl,' 13781 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13782 # not for PA HP-UX. 13783 case $host_cpu in 13784 hppa*64*|ia64*) 13785 # +Z the default 13786 ;; 13787 *) 13788 lt_prog_compiler_pic_F77='+Z' 13789 ;; 13790 esac 13791 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13792 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13793 ;; 13794 13795 irix5* | irix6* | nonstopux*) 13796 lt_prog_compiler_wl_F77='-Wl,' 13797 # PIC (with -KPIC) is the default. 13798 lt_prog_compiler_static_F77='-non_shared' 13799 ;; 13800 13801 newsos6) 13802 lt_prog_compiler_pic_F77='-KPIC' 13803 lt_prog_compiler_static_F77='-Bstatic' 13804 ;; 13805 13806 linux*) 13807 case $cc_basename in 13808 icc* | ecc*) 13809 lt_prog_compiler_wl_F77='-Wl,' 13810 lt_prog_compiler_pic_F77='-KPIC' 13811 lt_prog_compiler_static_F77='-static' 13812 ;; 13813 pgcc* | pgf77* | pgf90* | pgf95*) 13814 # Portland Group compilers (*not* the Pentium gcc compiler, 13815 # which looks to be a dead project) 13816 lt_prog_compiler_wl_F77='-Wl,' 13817 lt_prog_compiler_pic_F77='-fpic' 13818 lt_prog_compiler_static_F77='-Bstatic' 13819 ;; 13820 ccc*) 13821 lt_prog_compiler_wl_F77='-Wl,' 13822 # All Alpha code is PIC. 13823 lt_prog_compiler_static_F77='-non_shared' 13824 ;; 13825 esac 13826 ;; 13827 13828 osf3* | osf4* | osf5*) 13829 lt_prog_compiler_wl_F77='-Wl,' 13830 # All OSF/1 code is PIC. 13831 lt_prog_compiler_static_F77='-non_shared' 13832 ;; 13833 13834 sco3.2v5*) 13835 lt_prog_compiler_pic_F77='-Kpic' 13836 lt_prog_compiler_static_F77='-dn' 13837 ;; 13838 13839 solaris*) 13840 lt_prog_compiler_pic_F77='-KPIC' 13841 lt_prog_compiler_static_F77='-Bstatic' 13842 case $cc_basename in 13843 f77* | f90* | f95*) 13844 lt_prog_compiler_wl_F77='-Qoption ld ';; 13845 *) 13846 lt_prog_compiler_wl_F77='-Wl,';; 13847 esac 13848 ;; 13849 13850 sunos4*) 13851 lt_prog_compiler_wl_F77='-Qoption ld ' 13852 lt_prog_compiler_pic_F77='-PIC' 13853 lt_prog_compiler_static_F77='-Bstatic' 13854 ;; 13855 13856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13857 lt_prog_compiler_wl_F77='-Wl,' 13858 lt_prog_compiler_pic_F77='-KPIC' 13859 lt_prog_compiler_static_F77='-Bstatic' 13860 ;; 13861 13862 sysv4*MP*) 13863 if test -d /usr/nec ;then 13864 lt_prog_compiler_pic_F77='-Kconform_pic' 13865 lt_prog_compiler_static_F77='-Bstatic' 13866 fi 13867 ;; 13868 13869 unicos*) 13870 lt_prog_compiler_wl_F77='-Wl,' 13871 lt_prog_compiler_can_build_shared_F77=no 13872 ;; 13873 13874 uts4*) 13875 lt_prog_compiler_pic_F77='-pic' 13876 lt_prog_compiler_static_F77='-Bstatic' 13877 ;; 13878 13879 *) 13880 lt_prog_compiler_can_build_shared_F77=no 13881 ;; 13882 esac 13883 fi 13884 13885echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13886echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13887 13888# 13889# Check to make sure the PIC flag actually works. 13890# 13891if test -n "$lt_prog_compiler_pic_F77"; then 13892 13893echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13894echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13895if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13896 echo $ECHO_N "(cached) $ECHO_C" >&6 13897else 13898 lt_prog_compiler_pic_works_F77=no 13899 ac_outfile=conftest.$ac_objext 13900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13901 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13902 # Insert the option either (1) after the last *FLAGS variable, or 13903 # (2) before a word containing "conftest.", or (3) at the end. 13904 # Note that $ac_compile itself does not contain backslashes and begins 13905 # with a dollar sign (not a hyphen), so the echo should work correctly. 13906 # The option is referenced via a variable to avoid confusing sed. 13907 lt_compile=`echo "$ac_compile" | $SED \ 13908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13910 -e 's:$: $lt_compiler_flag:'` 13911 (eval echo "\"\$as_me:13911: $lt_compile\"" >&5) 13912 (eval "$lt_compile" 2>conftest.err) 13913 ac_status=$? 13914 cat conftest.err >&5 13915 echo "$as_me:13915: \$? = $ac_status" >&5 13916 if (exit $ac_status) && test -s "$ac_outfile"; then 13917 # The compiler can only warn and ignore the option if not recognized 13918 # So say no if there are warnings other than the usual output. 13919 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13920 $SED '/^$/d' conftest.err >conftest.er2 13921 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13922 lt_prog_compiler_pic_works_F77=yes 13923 fi 13924 fi 13925 $rm conftest* 13926 13927fi 13928echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13929echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13930 13931if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13932 case $lt_prog_compiler_pic_F77 in 13933 "" | " "*) ;; 13934 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13935 esac 13936else 13937 lt_prog_compiler_pic_F77= 13938 lt_prog_compiler_can_build_shared_F77=no 13939fi 13940 13941fi 13942case $host_os in 13943 # For platforms which do not support PIC, -DPIC is meaningless: 13944 *djgpp*) 13945 lt_prog_compiler_pic_F77= 13946 ;; 13947 *) 13948 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13949 ;; 13950esac 13951 13952echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13953echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13954if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13955 echo $ECHO_N "(cached) $ECHO_C" >&6 13956else 13957 lt_cv_prog_compiler_c_o_F77=no 13958 $rm -r conftest 2>/dev/null 13959 mkdir conftest 13960 cd conftest 13961 mkdir out 13962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13963 13964 lt_compiler_flag="-o out/conftest2.$ac_objext" 13965 # Insert the option either (1) after the last *FLAGS variable, or 13966 # (2) before a word containing "conftest.", or (3) at the end. 13967 # Note that $ac_compile itself does not contain backslashes and begins 13968 # with a dollar sign (not a hyphen), so the echo should work correctly. 13969 lt_compile=`echo "$ac_compile" | $SED \ 13970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13972 -e 's:$: $lt_compiler_flag:'` 13973 (eval echo "\"\$as_me:13973: $lt_compile\"" >&5) 13974 (eval "$lt_compile" 2>out/conftest.err) 13975 ac_status=$? 13976 cat out/conftest.err >&5 13977 echo "$as_me:13977: \$? = $ac_status" >&5 13978 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13979 then 13980 # The compiler can only warn and ignore the option if not recognized 13981 # So say no if there are warnings 13982 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13983 $SED '/^$/d' out/conftest.err >out/conftest.er2 13984 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13985 lt_cv_prog_compiler_c_o_F77=yes 13986 fi 13987 fi 13988 chmod u+w . 2>&5 13989 $rm conftest* 13990 # SGI C++ compiler will create directory out/ii_files/ for 13991 # template instantiation 13992 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13993 $rm out/* && rmdir out 13994 cd .. 13995 rmdir conftest 13996 $rm conftest* 13997 13998fi 13999echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14000echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14001 14002 14003hard_links="nottested" 14004if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14005 # do not overwrite the value of need_locks provided by the user 14006 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14007echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14008 hard_links=yes 14009 $rm conftest* 14010 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14011 touch conftest.a 14012 ln conftest.a conftest.b 2>&5 || hard_links=no 14013 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14014 echo "$as_me:$LINENO: result: $hard_links" >&5 14015echo "${ECHO_T}$hard_links" >&6 14016 if test "$hard_links" = no; then 14017 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14018echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14019 need_locks=warn 14020 fi 14021else 14022 need_locks=no 14023fi 14024 14025echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14026echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14027 14028 runpath_var= 14029 allow_undefined_flag_F77= 14030 enable_shared_with_static_runtimes_F77=no 14031 archive_cmds_F77= 14032 archive_expsym_cmds_F77= 14033 old_archive_From_new_cmds_F77= 14034 old_archive_from_expsyms_cmds_F77= 14035 export_dynamic_flag_spec_F77= 14036 whole_archive_flag_spec_F77= 14037 thread_safe_flag_spec_F77= 14038 hardcode_libdir_flag_spec_F77= 14039 hardcode_libdir_flag_spec_ld_F77= 14040 hardcode_libdir_separator_F77= 14041 hardcode_direct_F77=no 14042 hardcode_minus_L_F77=no 14043 hardcode_shlibpath_var_F77=unsupported 14044 link_all_deplibs_F77=unknown 14045 hardcode_automatic_F77=no 14046 module_cmds_F77= 14047 module_expsym_cmds_F77= 14048 always_export_symbols_F77=no 14049 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14050 # include_expsyms should be a list of space-separated symbols to be *always* 14051 # included in the symbol list 14052 include_expsyms_F77= 14053 # exclude_expsyms can be an extended regexp of symbols to exclude 14054 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14055 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14056 # as well as any symbol that contains `d'. 14057 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14058 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14059 # platforms (ab)use it in PIC code, but their linkers get confused if 14060 # the symbol is explicitly referenced. Since portable code cannot 14061 # rely on this symbol name, it's probably fine to never include it in 14062 # preloaded symbol tables. 14063 extract_expsyms_cmds= 14064 # Just being paranoid about ensuring that cc_basename is set. 14065 for cc_temp in $compiler""; do 14066 case $cc_temp in 14067 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14068 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14069 \-*) ;; 14070 *) break;; 14071 esac 14072done 14073cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14074 14075 case $host_os in 14076 cygwin* | mingw* | pw32*) 14077 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14078 # When not using gcc, we currently assume that we are using 14079 # Microsoft Visual C++. 14080 if test "$GCC" != yes; then 14081 with_gnu_ld=no 14082 fi 14083 ;; 14084 openbsd*) 14085 with_gnu_ld=no 14086 ;; 14087 esac 14088 14089 ld_shlibs_F77=yes 14090 if test "$with_gnu_ld" = yes; then 14091 # If archive_cmds runs LD, not CC, wlarc should be empty 14092 wlarc='${wl}' 14093 14094 # Set some defaults for GNU ld with shared library support. These 14095 # are reset later if shared libraries are not supported. Putting them 14096 # here allows them to be overridden if necessary. 14097 runpath_var=LD_RUN_PATH 14098 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14099 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14100 # ancient GNU ld didn't support --whole-archive et. al. 14101 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14102 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14103 else 14104 whole_archive_flag_spec_F77= 14105 fi 14106 supports_anon_versioning=no 14107 case `$LD -v 2>/dev/null` in 14108 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14109 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14110 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14111 *\ 2.11.*) ;; # other 2.11 versions 14112 *) supports_anon_versioning=yes ;; 14113 esac 14114 14115 # See if GNU ld supports shared libraries. 14116 case $host_os in 14117 aix3* | aix4* | aix5*) 14118 # On AIX/PPC, the GNU linker is very broken 14119 if test "$host_cpu" != ia64; then 14120 ld_shlibs_F77=no 14121 cat <<EOF 1>&2 14122 14123*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14124*** to be unable to reliably create shared libraries on AIX. 14125*** Therefore, libtool is disabling shared libraries support. If you 14126*** really care for shared libraries, you may want to modify your PATH 14127*** so that a non-GNU linker is found, and then restart. 14128 14129EOF 14130 fi 14131 ;; 14132 14133 amigaos*) 14134 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)' 14135 hardcode_libdir_flag_spec_F77='-L$libdir' 14136 hardcode_minus_L_F77=yes 14137 14138 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14139 # that the semantics of dynamic libraries on AmigaOS, at least up 14140 # to version 4, is to share data among multiple programs linked 14141 # with the same dynamic library. Since this doesn't match the 14142 # behavior of shared libraries on other platforms, we can't use 14143 # them. 14144 ld_shlibs_F77=no 14145 ;; 14146 14147 beos*) 14148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14149 allow_undefined_flag_F77=unsupported 14150 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14151 # support --undefined. This deserves some investigation. FIXME 14152 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14153 else 14154 ld_shlibs_F77=no 14155 fi 14156 ;; 14157 14158 cygwin* | mingw* | pw32*) 14159 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14160 # as there is no search path for DLLs. 14161 hardcode_libdir_flag_spec_F77='-L$libdir' 14162 allow_undefined_flag_F77=unsupported 14163 always_export_symbols_F77=no 14164 enable_shared_with_static_runtimes_F77=yes 14165 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14166 14167 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14168 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14169 # If the export-symbols file already is a .def file (1st line 14170 # is EXPORTS), use it as is; otherwise, prepend... 14171 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14172 cp $export_symbols $output_objdir/$soname.def; 14173 else 14174 echo EXPORTS > $output_objdir/$soname.def; 14175 cat $export_symbols >> $output_objdir/$soname.def; 14176 fi~ 14177 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14178 else 14179 ld_shlibs_F77=no 14180 fi 14181 ;; 14182 14183 linux*) 14184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14185 tmp_addflag= 14186 case $cc_basename,$host_cpu in 14187 pgcc*) # Portland Group C compiler 14188 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14189 tmp_addflag=' $pic_flag' 14190 ;; 14191 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14192 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14193 tmp_addflag=' $pic_flag -Mnomain' ;; 14194 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14195 tmp_addflag=' -i_dynamic' ;; 14196 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14197 tmp_addflag=' -i_dynamic -nofor_main' ;; 14198 ifc* | ifort*) # Intel Fortran compiler 14199 tmp_addflag=' -nofor_main' ;; 14200 esac 14201 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14202 14203 if test $supports_anon_versioning = yes; then 14204 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14205 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14206 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14207 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14208 fi 14209 else 14210 ld_shlibs_F77=no 14211 fi 14212 ;; 14213 14214 netbsd*) 14215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14216 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14217 wlarc= 14218 else 14219 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14220 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14221 fi 14222 ;; 14223 14224 solaris* | sysv5*) 14225 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14226 ld_shlibs_F77=no 14227 cat <<EOF 1>&2 14228 14229*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14230*** create shared libraries on Solaris systems. Therefore, libtool 14231*** is disabling shared libraries support. We urge you to upgrade GNU 14232*** binutils to release 2.9.1 or newer. Another option is to modify 14233*** your PATH or compiler configuration so that the native linker is 14234*** used, and then restart. 14235 14236EOF 14237 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14239 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14240 else 14241 ld_shlibs_F77=no 14242 fi 14243 ;; 14244 14245 sunos4*) 14246 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14247 wlarc= 14248 hardcode_direct_F77=yes 14249 hardcode_shlibpath_var_F77=no 14250 ;; 14251 14252 *) 14253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14254 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14255 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14256 else 14257 ld_shlibs_F77=no 14258 fi 14259 ;; 14260 esac 14261 14262 if test "$ld_shlibs_F77" = no; then 14263 runpath_var= 14264 hardcode_libdir_flag_spec_F77= 14265 export_dynamic_flag_spec_F77= 14266 whole_archive_flag_spec_F77= 14267 fi 14268 else 14269 # PORTME fill in a description of your system's linker (not GNU ld) 14270 case $host_os in 14271 aix3*) 14272 allow_undefined_flag_F77=unsupported 14273 always_export_symbols_F77=yes 14274 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' 14275 # Note: this linker hardcodes the directories in LIBPATH if there 14276 # are no directories specified by -L. 14277 hardcode_minus_L_F77=yes 14278 if test "$GCC" = yes && test -z "$link_static_flag"; then 14279 # Neither direct hardcoding nor static linking is supported with a 14280 # broken collect2. 14281 hardcode_direct_F77=unsupported 14282 fi 14283 ;; 14284 14285 aix4* | aix5*) 14286 if test "$host_cpu" = ia64; then 14287 # On IA64, the linker does run time linking by default, so we don't 14288 # have to do anything special. 14289 aix_use_runtimelinking=no 14290 exp_sym_flag='-Bexport' 14291 no_entry_flag="" 14292 else 14293 # If we're using GNU nm, then we don't want the "-C" option. 14294 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14295 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14296 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' 14297 else 14298 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' 14299 fi 14300 aix_use_runtimelinking=no 14301 14302 # Test if we are trying to use run time linking or normal 14303 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14304 # need to do runtime linking. 14305 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14306 for ld_flag in $LDFLAGS; do 14307 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14308 aix_use_runtimelinking=yes 14309 break 14310 fi 14311 done 14312 esac 14313 14314 exp_sym_flag='-bexport' 14315 no_entry_flag='-bnoentry' 14316 fi 14317 14318 # When large executables or shared objects are built, AIX ld can 14319 # have problems creating the table of contents. If linking a library 14320 # or program results in "error TOC overflow" add -mminimal-toc to 14321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14323 14324 archive_cmds_F77='' 14325 hardcode_direct_F77=yes 14326 hardcode_libdir_separator_F77=':' 14327 link_all_deplibs_F77=yes 14328 14329 if test "$GCC" = yes; then 14330 case $host_os in aix4.[012]|aix4.[012].*) 14331 # We only want to do this on AIX 4.2 and lower, the check 14332 # below for broken collect2 doesn't work under 4.3+ 14333 collect2name=`${CC} -print-prog-name=collect2` 14334 if test -f "$collect2name" && \ 14335 strings "$collect2name" | grep resolve_lib_name >/dev/null 14336 then 14337 # We have reworked collect2 14338 hardcode_direct_F77=yes 14339 else 14340 # We have old collect2 14341 hardcode_direct_F77=unsupported 14342 # It fails to find uninstalled libraries when the uninstalled 14343 # path is not listed in the libpath. Setting hardcode_minus_L 14344 # to unsupported forces relinking 14345 hardcode_minus_L_F77=yes 14346 hardcode_libdir_flag_spec_F77='-L$libdir' 14347 hardcode_libdir_separator_F77= 14348 fi 14349 esac 14350 shared_flag='-shared' 14351 if test "$aix_use_runtimelinking" = yes; then 14352 shared_flag="$shared_flag "'${wl}-G' 14353 fi 14354 else 14355 # not using gcc 14356 if test "$host_cpu" = ia64; then 14357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14358 # chokes on -Wl,-G. The following line is correct: 14359 shared_flag='-G' 14360 else 14361 if test "$aix_use_runtimelinking" = yes; then 14362 shared_flag='${wl}-G' 14363 else 14364 shared_flag='${wl}-bM:SRE' 14365 fi 14366 fi 14367 fi 14368 14369 # It seems that -bexpall does not export symbols beginning with 14370 # underscore (_), so it is better to generate a list of symbols to export. 14371 always_export_symbols_F77=yes 14372 if test "$aix_use_runtimelinking" = yes; then 14373 # Warning - without using the other runtime loading flags (-brtl), 14374 # -berok will link without error, but may produce a broken library. 14375 allow_undefined_flag_F77='-berok' 14376 # Determine the default libpath from the value encoded in an empty executable. 14377 cat >conftest.$ac_ext <<_ACEOF 14378 program main 14379 14380 end 14381_ACEOF 14382rm -f conftest.$ac_objext conftest$ac_exeext 14383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14384 (eval $ac_link) 2>conftest.er1 14385 ac_status=$? 14386 grep -v '^ *+' conftest.er1 >conftest.err 14387 rm -f conftest.er1 14388 cat conftest.err >&5 14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14390 (exit $ac_status); } && 14391 { ac_try='test -z "$ac_f77_werror_flag" 14392 || test ! -s conftest.err' 14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14394 (eval $ac_try) 2>&5 14395 ac_status=$? 14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14397 (exit $ac_status); }; } && 14398 { ac_try='test -s conftest$ac_exeext' 14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14400 (eval $ac_try) 2>&5 14401 ac_status=$? 14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14403 (exit $ac_status); }; }; then 14404 14405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14406}'` 14407# Check for a 64-bit object if we didn't find anything. 14408if 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; } 14409}'`; fi 14410else 14411 echo "$as_me: failed program was:" >&5 14412sed 's/^/| /' conftest.$ac_ext >&5 14413 14414fi 14415rm -f conftest.err conftest.$ac_objext \ 14416 conftest$ac_exeext conftest.$ac_ext 14417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14418 14419 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14420 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" 14421 else 14422 if test "$host_cpu" = ia64; then 14423 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14424 allow_undefined_flag_F77="-z nodefs" 14425 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" 14426 else 14427 # Determine the default libpath from the value encoded in an empty executable. 14428 cat >conftest.$ac_ext <<_ACEOF 14429 program main 14430 14431 end 14432_ACEOF 14433rm -f conftest.$ac_objext conftest$ac_exeext 14434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14435 (eval $ac_link) 2>conftest.er1 14436 ac_status=$? 14437 grep -v '^ *+' conftest.er1 >conftest.err 14438 rm -f conftest.er1 14439 cat conftest.err >&5 14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14441 (exit $ac_status); } && 14442 { ac_try='test -z "$ac_f77_werror_flag" 14443 || test ! -s conftest.err' 14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14445 (eval $ac_try) 2>&5 14446 ac_status=$? 14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14448 (exit $ac_status); }; } && 14449 { ac_try='test -s conftest$ac_exeext' 14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14451 (eval $ac_try) 2>&5 14452 ac_status=$? 14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14454 (exit $ac_status); }; }; then 14455 14456aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14457}'` 14458# Check for a 64-bit object if we didn't find anything. 14459if 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; } 14460}'`; fi 14461else 14462 echo "$as_me: failed program was:" >&5 14463sed 's/^/| /' conftest.$ac_ext >&5 14464 14465fi 14466rm -f conftest.err conftest.$ac_objext \ 14467 conftest$ac_exeext conftest.$ac_ext 14468if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14469 14470 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14471 # Warning - without using the other run time loading flags, 14472 # -berok will link without error, but may produce a broken library. 14473 no_undefined_flag_F77=' ${wl}-bernotok' 14474 allow_undefined_flag_F77=' ${wl}-berok' 14475 # -bexpall does not export symbols beginning with underscore (_) 14476 always_export_symbols_F77=yes 14477 # Exported symbols can be pulled into shared objects from archives 14478 whole_archive_flag_spec_F77=' ' 14479 archive_cmds_need_lc_F77=yes 14480 # This is similar to how AIX traditionally builds its shared libraries. 14481 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' 14482 fi 14483 fi 14484 ;; 14485 14486 amigaos*) 14487 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)' 14488 hardcode_libdir_flag_spec_F77='-L$libdir' 14489 hardcode_minus_L_F77=yes 14490 # see comment about different semantics on the GNU ld section 14491 ld_shlibs_F77=no 14492 ;; 14493 14494 bsdi[45]*) 14495 export_dynamic_flag_spec_F77=-rdynamic 14496 ;; 14497 14498 cygwin* | mingw* | pw32*) 14499 # When not using gcc, we currently assume that we are using 14500 # Microsoft Visual C++. 14501 # hardcode_libdir_flag_spec is actually meaningless, as there is 14502 # no search path for DLLs. 14503 hardcode_libdir_flag_spec_F77=' ' 14504 allow_undefined_flag_F77=unsupported 14505 # Tell ltmain to make .lib files, not .a files. 14506 libext=lib 14507 # Tell ltmain to make .dll files, not .so files. 14508 shrext_cmds=".dll" 14509 # FIXME: Setting linknames here is a bad hack. 14510 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14511 # The linker will automatically build a .lib file if we build a DLL. 14512 old_archive_From_new_cmds_F77='true' 14513 # FIXME: Should let the user specify the lib program. 14514 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14515 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14516 enable_shared_with_static_runtimes_F77=yes 14517 ;; 14518 14519 darwin* | rhapsody*) 14520 case $host_os in 14521 rhapsody* | darwin1.[012]) 14522 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14523 ;; 14524 *) # Darwin 1.3 on 14525 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14526 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14527 else 14528 case ${MACOSX_DEPLOYMENT_TARGET} in 14529 10.[012]) 14530 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14531 ;; 14532 10.*) 14533 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14534 ;; 14535 esac 14536 fi 14537 ;; 14538 esac 14539 archive_cmds_need_lc_F77=no 14540 hardcode_direct_F77=no 14541 hardcode_automatic_F77=yes 14542 hardcode_shlibpath_var_F77=unsupported 14543 whole_archive_flag_spec_F77='' 14544 link_all_deplibs_F77=yes 14545 if test "$GCC" = yes ; then 14546 output_verbose_link_cmd='echo' 14547 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14548 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14549 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14550 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14551 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14552 else 14553 case $cc_basename in 14554 xlc*) 14555 output_verbose_link_cmd='echo' 14556 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14557 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14558 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14559 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14560 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14561 ;; 14562 *) 14563 ld_shlibs_F77=no 14564 ;; 14565 esac 14566 fi 14567 ;; 14568 14569 dgux*) 14570 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14571 hardcode_libdir_flag_spec_F77='-L$libdir' 14572 hardcode_shlibpath_var_F77=no 14573 ;; 14574 14575 freebsd1*) 14576 ld_shlibs_F77=no 14577 ;; 14578 14579 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14580 # support. Future versions do this automatically, but an explicit c++rt0.o 14581 # does not break anything, and helps significantly (at the cost of a little 14582 # extra space). 14583 freebsd2.2*) 14584 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14585 hardcode_libdir_flag_spec_F77='-R$libdir' 14586 hardcode_direct_F77=yes 14587 hardcode_shlibpath_var_F77=no 14588 ;; 14589 14590 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14591 freebsd2*) 14592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14593 hardcode_direct_F77=yes 14594 hardcode_minus_L_F77=yes 14595 hardcode_shlibpath_var_F77=no 14596 ;; 14597 14598 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14599 freebsd* | kfreebsd*-gnu | dragonfly*) 14600 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14601 hardcode_libdir_flag_spec_F77='-R$libdir' 14602 hardcode_direct_F77=yes 14603 hardcode_shlibpath_var_F77=no 14604 ;; 14605 14606 hpux9*) 14607 if test "$GCC" = yes; then 14608 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' 14609 else 14610 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' 14611 fi 14612 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14613 hardcode_libdir_separator_F77=: 14614 hardcode_direct_F77=yes 14615 14616 # hardcode_minus_L: Not really in the search PATH, 14617 # but as the default location of the library. 14618 hardcode_minus_L_F77=yes 14619 export_dynamic_flag_spec_F77='${wl}-E' 14620 ;; 14621 14622 hpux10* | hpux11*) 14623 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14624 case $host_cpu in 14625 hppa*64*|ia64*) 14626 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14627 ;; 14628 *) 14629 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14630 ;; 14631 esac 14632 else 14633 case $host_cpu in 14634 hppa*64*|ia64*) 14635 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14636 ;; 14637 *) 14638 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14639 ;; 14640 esac 14641 fi 14642 if test "$with_gnu_ld" = no; then 14643 case $host_cpu in 14644 hppa*64*) 14645 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14646 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14647 hardcode_libdir_separator_F77=: 14648 hardcode_direct_F77=no 14649 hardcode_shlibpath_var_F77=no 14650 ;; 14651 ia64*) 14652 hardcode_libdir_flag_spec_F77='-L$libdir' 14653 hardcode_direct_F77=no 14654 hardcode_shlibpath_var_F77=no 14655 14656 # hardcode_minus_L: Not really in the search PATH, 14657 # but as the default location of the library. 14658 hardcode_minus_L_F77=yes 14659 ;; 14660 *) 14661 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14662 hardcode_libdir_separator_F77=: 14663 hardcode_direct_F77=yes 14664 export_dynamic_flag_spec_F77='${wl}-E' 14665 14666 # hardcode_minus_L: Not really in the search PATH, 14667 # but as the default location of the library. 14668 hardcode_minus_L_F77=yes 14669 ;; 14670 esac 14671 fi 14672 ;; 14673 14674 irix5* | irix6* | nonstopux*) 14675 if test "$GCC" = yes; then 14676 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' 14677 else 14678 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' 14679 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14680 fi 14681 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14682 hardcode_libdir_separator_F77=: 14683 link_all_deplibs_F77=yes 14684 ;; 14685 14686 netbsd*) 14687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14688 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14689 else 14690 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14691 fi 14692 hardcode_libdir_flag_spec_F77='-R$libdir' 14693 hardcode_direct_F77=yes 14694 hardcode_shlibpath_var_F77=no 14695 ;; 14696 14697 newsos6) 14698 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14699 hardcode_direct_F77=yes 14700 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14701 hardcode_libdir_separator_F77=: 14702 hardcode_shlibpath_var_F77=no 14703 ;; 14704 14705 openbsd*) 14706 hardcode_direct_F77=yes 14707 hardcode_shlibpath_var_F77=no 14708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14709 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14710 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14711 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14712 export_dynamic_flag_spec_F77='${wl}-E' 14713 else 14714 case $host_os in 14715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14716 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14717 hardcode_libdir_flag_spec_F77='-R$libdir' 14718 ;; 14719 *) 14720 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14721 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14722 ;; 14723 esac 14724 fi 14725 ;; 14726 14727 os2*) 14728 hardcode_libdir_flag_spec_F77='-L$libdir' 14729 hardcode_minus_L_F77=yes 14730 allow_undefined_flag_F77=unsupported 14731 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' 14732 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14733 ;; 14734 14735 osf3*) 14736 if test "$GCC" = yes; then 14737 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14738 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' 14739 else 14740 allow_undefined_flag_F77=' -expect_unresolved \*' 14741 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' 14742 fi 14743 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14744 hardcode_libdir_separator_F77=: 14745 ;; 14746 14747 osf4* | osf5*) # as osf3* with the addition of -msym flag 14748 if test "$GCC" = yes; then 14749 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14750 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' 14751 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14752 else 14753 allow_undefined_flag_F77=' -expect_unresolved \*' 14754 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' 14755 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~ 14756 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14757 14758 # Both c and cxx compiler support -rpath directly 14759 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14760 fi 14761 hardcode_libdir_separator_F77=: 14762 ;; 14763 14764 sco3.2v5*) 14765 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14766 hardcode_shlibpath_var_F77=no 14767 export_dynamic_flag_spec_F77='${wl}-Bexport' 14768 runpath_var=LD_RUN_PATH 14769 hardcode_runpath_var=yes 14770 ;; 14771 14772 solaris*) 14773 no_undefined_flag_F77=' -z text' 14774 if test "$GCC" = yes; then 14775 wlarc='${wl}' 14776 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14777 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14778 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14779 else 14780 wlarc='' 14781 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14782 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14783 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14784 fi 14785 hardcode_libdir_flag_spec_F77='-R$libdir' 14786 hardcode_shlibpath_var_F77=no 14787 case $host_os in 14788 solaris2.[0-5] | solaris2.[0-5].*) ;; 14789 *) 14790 # The compiler driver will combine linker options so we 14791 # cannot just pass the convience library names through 14792 # without $wl, iff we do not link with $LD. 14793 # Luckily, gcc supports the same syntax we need for Sun Studio. 14794 # Supported since Solaris 2.6 (maybe 2.5.1?) 14795 case $wlarc in 14796 '') 14797 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14798 *) 14799 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14800 esac ;; 14801 esac 14802 link_all_deplibs_F77=yes 14803 ;; 14804 14805 sunos4*) 14806 if test "x$host_vendor" = xsequent; then 14807 # Use $CC to link under sequent, because it throws in some extra .o 14808 # files that make .init and .fini sections work. 14809 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14810 else 14811 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14812 fi 14813 hardcode_libdir_flag_spec_F77='-L$libdir' 14814 hardcode_direct_F77=yes 14815 hardcode_minus_L_F77=yes 14816 hardcode_shlibpath_var_F77=no 14817 ;; 14818 14819 sysv4) 14820 case $host_vendor in 14821 sni) 14822 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14823 hardcode_direct_F77=yes # is this really true??? 14824 ;; 14825 siemens) 14826 ## LD is ld it makes a PLAMLIB 14827 ## CC just makes a GrossModule. 14828 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14829 reload_cmds_F77='$CC -r -o $output$reload_objs' 14830 hardcode_direct_F77=no 14831 ;; 14832 motorola) 14833 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14834 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14835 ;; 14836 esac 14837 runpath_var='LD_RUN_PATH' 14838 hardcode_shlibpath_var_F77=no 14839 ;; 14840 14841 sysv4.3*) 14842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14843 hardcode_shlibpath_var_F77=no 14844 export_dynamic_flag_spec_F77='-Bexport' 14845 ;; 14846 14847 sysv4*MP*) 14848 if test -d /usr/nec; then 14849 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14850 hardcode_shlibpath_var_F77=no 14851 runpath_var=LD_RUN_PATH 14852 hardcode_runpath_var=yes 14853 ld_shlibs_F77=yes 14854 fi 14855 ;; 14856 14857 sysv4.2uw2*) 14858 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14859 hardcode_direct_F77=yes 14860 hardcode_minus_L_F77=no 14861 hardcode_shlibpath_var_F77=no 14862 hardcode_runpath_var=yes 14863 runpath_var=LD_RUN_PATH 14864 ;; 14865 14866 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14867 no_undefined_flag_F77='${wl}-z ${wl}text' 14868 if test "$GCC" = yes; then 14869 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14870 else 14871 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14872 fi 14873 runpath_var='LD_RUN_PATH' 14874 hardcode_shlibpath_var_F77=no 14875 ;; 14876 14877 sysv5*) 14878 no_undefined_flag_F77=' -z text' 14879 # $CC -shared without GNU ld will not create a library from C++ 14880 # object files and a static libstdc++, better avoid it by now 14881 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14882 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14883 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14884 hardcode_libdir_flag_spec_F77= 14885 hardcode_shlibpath_var_F77=no 14886 runpath_var='LD_RUN_PATH' 14887 ;; 14888 14889 uts4*) 14890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14891 hardcode_libdir_flag_spec_F77='-L$libdir' 14892 hardcode_shlibpath_var_F77=no 14893 ;; 14894 14895 *) 14896 ld_shlibs_F77=no 14897 ;; 14898 esac 14899 fi 14900 14901echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14902echo "${ECHO_T}$ld_shlibs_F77" >&6 14903test "$ld_shlibs_F77" = no && can_build_shared=no 14904 14905variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14906if test "$GCC" = yes; then 14907 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14908fi 14909 14910# 14911# Do we need to explicitly link libc? 14912# 14913case "x$archive_cmds_need_lc_F77" in 14914x|xyes) 14915 # Assume -lc should be added 14916 archive_cmds_need_lc_F77=yes 14917 14918 if test "$enable_shared" = yes && test "$GCC" = yes; then 14919 case $archive_cmds_F77 in 14920 *'~'*) 14921 # FIXME: we may have to deal with multi-command sequences. 14922 ;; 14923 '$CC '*) 14924 # Test whether the compiler implicitly links with -lc since on some 14925 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14926 # to ld, don't add -lc before -lgcc. 14927 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14928echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14929 $rm conftest* 14930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14931 14932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14933 (eval $ac_compile) 2>&5 14934 ac_status=$? 14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14936 (exit $ac_status); } 2>conftest.err; then 14937 soname=conftest 14938 lib=conftest 14939 libobjs=conftest.$ac_objext 14940 deplibs= 14941 wl=$lt_prog_compiler_wl_F77 14942 compiler_flags=-v 14943 linker_flags=-v 14944 verstring= 14945 output_objdir=. 14946 libname=conftest 14947 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14948 allow_undefined_flag_F77= 14949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14950 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14951 ac_status=$? 14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14953 (exit $ac_status); } 14954 then 14955 archive_cmds_need_lc_F77=no 14956 else 14957 archive_cmds_need_lc_F77=yes 14958 fi 14959 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14960 else 14961 cat conftest.err 1>&5 14962 fi 14963 $rm conftest* 14964 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14965echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14966 ;; 14967 esac 14968 fi 14969 ;; 14970esac 14971 14972echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14973echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14974library_names_spec= 14975libname_spec='lib$name' 14976soname_spec= 14977shrext_cmds=".so" 14978postinstall_cmds= 14979postuninstall_cmds= 14980finish_cmds= 14981finish_eval= 14982shlibpath_var= 14983shlibpath_overrides_runpath=unknown 14984version_type=none 14985dynamic_linker="$host_os ld.so" 14986sys_lib_dlsearch_path_spec="/lib /usr/lib" 14987if test "$GCC" = yes; then 14988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14989 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14990 # if the path contains ";" then we assume it to be the separator 14991 # otherwise default to the standard path separator (i.e. ":") - it is 14992 # assumed that no part of a normal pathname contains ";" but that should 14993 # okay in the real world where ";" in dirpaths is itself problematic. 14994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14995 else 14996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14997 fi 14998else 14999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15000fi 15001need_lib_prefix=unknown 15002hardcode_into_libs=no 15003 15004# when you set need_version to no, make sure it does not cause -set_version 15005# flags to be left without arguments 15006need_version=unknown 15007 15008case $host_os in 15009aix3*) 15010 version_type=linux 15011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15012 shlibpath_var=LIBPATH 15013 15014 # AIX 3 has no versioning support, so we append a major version to the name. 15015 soname_spec='${libname}${release}${shared_ext}$major' 15016 ;; 15017 15018aix4* | aix5*) 15019 version_type=linux 15020 need_lib_prefix=no 15021 need_version=no 15022 hardcode_into_libs=yes 15023 if test "$host_cpu" = ia64; then 15024 # AIX 5 supports IA64 15025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15026 shlibpath_var=LD_LIBRARY_PATH 15027 else 15028 # With GCC up to 2.95.x, collect2 would create an import file 15029 # for dependence libraries. The import file would start with 15030 # the line `#! .'. This would cause the generated library to 15031 # depend on `.', always an invalid library. This was fixed in 15032 # development snapshots of GCC prior to 3.0. 15033 case $host_os in 15034 aix4 | aix4.[01] | aix4.[01].*) 15035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15036 echo ' yes ' 15037 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15038 : 15039 else 15040 can_build_shared=no 15041 fi 15042 ;; 15043 esac 15044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15045 # soname into executable. Probably we can add versioning support to 15046 # collect2, so additional links can be useful in future. 15047 if test "$aix_use_runtimelinking" = yes; then 15048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15049 # instead of lib<name>.a to let people know that these are not 15050 # typical AIX shared libraries. 15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15052 else 15053 # We preserve .a as extension for shared libraries through AIX4.2 15054 # and later when we are not doing run time linking. 15055 library_names_spec='${libname}${release}.a $libname.a' 15056 soname_spec='${libname}${release}${shared_ext}$major' 15057 fi 15058 shlibpath_var=LIBPATH 15059 fi 15060 ;; 15061 15062amigaos*) 15063 library_names_spec='$libname.ixlibrary $libname.a' 15064 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15065 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' 15066 ;; 15067 15068beos*) 15069 library_names_spec='${libname}${shared_ext}' 15070 dynamic_linker="$host_os ld.so" 15071 shlibpath_var=LIBRARY_PATH 15072 ;; 15073 15074bsdi[45]*) 15075 version_type=linux 15076 need_version=no 15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15078 soname_spec='${libname}${release}${shared_ext}$major' 15079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15080 shlibpath_var=LD_LIBRARY_PATH 15081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15083 # the default ld.so.conf also contains /usr/contrib/lib and 15084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15085 # libtool to hard-code these into programs 15086 ;; 15087 15088cygwin* | mingw* | pw32*) 15089 version_type=windows 15090 shrext_cmds=".dll" 15091 need_version=no 15092 need_lib_prefix=no 15093 15094 case $GCC,$host_os in 15095 yes,cygwin* | yes,mingw* | yes,pw32*) 15096 library_names_spec='$libname.dll.a' 15097 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15098 postinstall_cmds='base_file=`basename \${file}`~ 15099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15100 dldir=$destdir/`dirname \$dlpath`~ 15101 test -d \$dldir || mkdir -p \$dldir~ 15102 $install_prog $dir/$dlname \$dldir/$dlname~ 15103 chmod a+x \$dldir/$dlname' 15104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15105 dlpath=$dir/\$dldll~ 15106 $rm \$dlpath' 15107 shlibpath_overrides_runpath=yes 15108 15109 case $host_os in 15110 cygwin*) 15111 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15113 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15114 ;; 15115 mingw*) 15116 # MinGW DLLs use traditional 'lib' prefix 15117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15119 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15120 # It is most probably a Windows format PATH printed by 15121 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15122 # path with ; separators, and with drive letters. We can handle the 15123 # drive letters (cygwin fileutils understands them), so leave them, 15124 # especially as we might pass files found there to a mingw objdump, 15125 # which wouldn't understand a cygwinified path. Ahh. 15126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15127 else 15128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15129 fi 15130 ;; 15131 pw32*) 15132 # pw32 DLLs use 'pw' prefix rather than 'lib' 15133 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15134 ;; 15135 esac 15136 ;; 15137 15138 *) 15139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15140 ;; 15141 esac 15142 dynamic_linker='Win32 ld.exe' 15143 # FIXME: first we should search . and the directory the executable is in 15144 shlibpath_var=PATH 15145 ;; 15146 15147darwin* | rhapsody*) 15148 dynamic_linker="$host_os dyld" 15149 version_type=darwin 15150 need_lib_prefix=no 15151 need_version=no 15152 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15153 soname_spec='${libname}${release}${major}$shared_ext' 15154 shlibpath_overrides_runpath=yes 15155 shlibpath_var=DYLD_LIBRARY_PATH 15156 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15157 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15158 if test "$GCC" = yes; then 15159 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"` 15160 else 15161 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15162 fi 15163 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15164 ;; 15165 15166dgux*) 15167 version_type=linux 15168 need_lib_prefix=no 15169 need_version=no 15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15171 soname_spec='${libname}${release}${shared_ext}$major' 15172 shlibpath_var=LD_LIBRARY_PATH 15173 ;; 15174 15175freebsd1*) 15176 dynamic_linker=no 15177 ;; 15178 15179kfreebsd*-gnu) 15180 version_type=linux 15181 need_lib_prefix=no 15182 need_version=no 15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15184 soname_spec='${libname}${release}${shared_ext}$major' 15185 shlibpath_var=LD_LIBRARY_PATH 15186 shlibpath_overrides_runpath=no 15187 hardcode_into_libs=yes 15188 dynamic_linker='GNU ld.so' 15189 ;; 15190 15191freebsd* | dragonfly*) 15192 # DragonFly does not have aout. When/if they implement a new 15193 # versioning mechanism, adjust this. 15194 if test -x /usr/bin/objformat; then 15195 objformat=`/usr/bin/objformat` 15196 else 15197 case $host_os in 15198 freebsd[123]*) objformat=aout ;; 15199 *) objformat=elf ;; 15200 esac 15201 fi 15202 version_type=freebsd-$objformat 15203 case $version_type in 15204 freebsd-elf*) 15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15206 need_version=no 15207 need_lib_prefix=no 15208 ;; 15209 freebsd-*) 15210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15211 need_version=yes 15212 ;; 15213 esac 15214 shlibpath_var=LD_LIBRARY_PATH 15215 case $host_os in 15216 freebsd2*) 15217 shlibpath_overrides_runpath=yes 15218 ;; 15219 freebsd3.[01]* | freebsdelf3.[01]*) 15220 shlibpath_overrides_runpath=yes 15221 hardcode_into_libs=yes 15222 ;; 15223 *) # from 3.2 on 15224 shlibpath_overrides_runpath=no 15225 hardcode_into_libs=yes 15226 ;; 15227 esac 15228 ;; 15229 15230gnu*) 15231 version_type=linux 15232 need_lib_prefix=no 15233 need_version=no 15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15235 soname_spec='${libname}${release}${shared_ext}$major' 15236 shlibpath_var=LD_LIBRARY_PATH 15237 hardcode_into_libs=yes 15238 ;; 15239 15240hpux9* | hpux10* | hpux11*) 15241 # Give a soname corresponding to the major version so that dld.sl refuses to 15242 # link against other versions. 15243 version_type=sunos 15244 need_lib_prefix=no 15245 need_version=no 15246 case $host_cpu in 15247 ia64*) 15248 shrext_cmds='.so' 15249 hardcode_into_libs=yes 15250 dynamic_linker="$host_os dld.so" 15251 shlibpath_var=LD_LIBRARY_PATH 15252 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15254 soname_spec='${libname}${release}${shared_ext}$major' 15255 if test "X$HPUX_IA64_MODE" = X32; then 15256 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15257 else 15258 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15259 fi 15260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15261 ;; 15262 hppa*64*) 15263 shrext_cmds='.sl' 15264 hardcode_into_libs=yes 15265 dynamic_linker="$host_os dld.sl" 15266 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15269 soname_spec='${libname}${release}${shared_ext}$major' 15270 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15272 ;; 15273 *) 15274 shrext_cmds='.sl' 15275 dynamic_linker="$host_os dld.sl" 15276 shlibpath_var=SHLIB_PATH 15277 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15279 soname_spec='${libname}${release}${shared_ext}$major' 15280 ;; 15281 esac 15282 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15283 postinstall_cmds='chmod 555 $lib' 15284 ;; 15285 15286irix5* | irix6* | nonstopux*) 15287 case $host_os in 15288 nonstopux*) version_type=nonstopux ;; 15289 *) 15290 if test "$lt_cv_prog_gnu_ld" = yes; then 15291 version_type=linux 15292 else 15293 version_type=irix 15294 fi ;; 15295 esac 15296 need_lib_prefix=no 15297 need_version=no 15298 soname_spec='${libname}${release}${shared_ext}$major' 15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15300 case $host_os in 15301 irix5* | nonstopux*) 15302 libsuff= shlibsuff= 15303 ;; 15304 *) 15305 case $LD in # libtool.m4 will add one of these switches to LD 15306 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15307 libsuff= shlibsuff= libmagic=32-bit;; 15308 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15309 libsuff=32 shlibsuff=N32 libmagic=N32;; 15310 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15311 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15312 *) libsuff= shlibsuff= libmagic=never-match;; 15313 esac 15314 ;; 15315 esac 15316 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15317 shlibpath_overrides_runpath=no 15318 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15319 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15320 hardcode_into_libs=yes 15321 ;; 15322 15323# No shared lib support for Linux oldld, aout, or coff. 15324linux*oldld* | linux*aout* | linux*coff*) 15325 dynamic_linker=no 15326 ;; 15327 15328# This must be Linux ELF. 15329linux*) 15330 version_type=linux 15331 need_lib_prefix=no 15332 need_version=no 15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15334 soname_spec='${libname}${release}${shared_ext}$major' 15335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15336 shlibpath_var=LD_LIBRARY_PATH 15337 shlibpath_overrides_runpath=no 15338 # This implies no fast_install, which is unacceptable. 15339 # Some rework will be needed to allow for fast_install 15340 # before this can be enabled. 15341 hardcode_into_libs=yes 15342 15343 # Append ld.so.conf contents to the search path 15344 if test -f /etc/ld.so.conf; then 15345 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15347 fi 15348 15349 # We used to test for /lib/ld.so.1 and disable shared libraries on 15350 # powerpc, because MkLinux only supported shared libraries with the 15351 # GNU dynamic linker. Since this was broken with cross compilers, 15352 # most powerpc-linux boxes support dynamic linking these days and 15353 # people can always --disable-shared, the test was removed, and we 15354 # assume the GNU/Linux dynamic linker is in use. 15355 dynamic_linker='GNU/Linux ld.so' 15356 ;; 15357 15358knetbsd*-gnu) 15359 version_type=linux 15360 need_lib_prefix=no 15361 need_version=no 15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15363 soname_spec='${libname}${release}${shared_ext}$major' 15364 shlibpath_var=LD_LIBRARY_PATH 15365 shlibpath_overrides_runpath=no 15366 hardcode_into_libs=yes 15367 dynamic_linker='GNU ld.so' 15368 ;; 15369 15370netbsd*) 15371 version_type=sunos 15372 need_lib_prefix=no 15373 need_version=no 15374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15377 dynamic_linker='NetBSD (a.out) ld.so' 15378 else 15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15380 soname_spec='${libname}${release}${shared_ext}$major' 15381 dynamic_linker='NetBSD ld.elf_so' 15382 fi 15383 shlibpath_var=LD_LIBRARY_PATH 15384 shlibpath_overrides_runpath=yes 15385 hardcode_into_libs=yes 15386 ;; 15387 15388newsos6) 15389 version_type=linux 15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15391 shlibpath_var=LD_LIBRARY_PATH 15392 shlibpath_overrides_runpath=yes 15393 ;; 15394 15395nto-qnx*) 15396 version_type=linux 15397 need_lib_prefix=no 15398 need_version=no 15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15400 soname_spec='${libname}${release}${shared_ext}$major' 15401 shlibpath_var=LD_LIBRARY_PATH 15402 shlibpath_overrides_runpath=yes 15403 ;; 15404 15405openbsd*) 15406 version_type=sunos 15407 need_lib_prefix=no 15408 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15409 case $host_os in 15410 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15411 *) need_version=no ;; 15412 esac 15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15415 shlibpath_var=LD_LIBRARY_PATH 15416 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15417 case $host_os in 15418 openbsd2.[89] | openbsd2.[89].*) 15419 shlibpath_overrides_runpath=no 15420 ;; 15421 *) 15422 shlibpath_overrides_runpath=yes 15423 ;; 15424 esac 15425 else 15426 shlibpath_overrides_runpath=yes 15427 fi 15428 ;; 15429 15430os2*) 15431 libname_spec='$name' 15432 shrext_cmds=".dll" 15433 need_lib_prefix=no 15434 library_names_spec='$libname${shared_ext} $libname.a' 15435 dynamic_linker='OS/2 ld.exe' 15436 shlibpath_var=LIBPATH 15437 ;; 15438 15439osf3* | osf4* | osf5*) 15440 version_type=osf 15441 need_lib_prefix=no 15442 need_version=no 15443 soname_spec='${libname}${release}${shared_ext}$major' 15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15445 shlibpath_var=LD_LIBRARY_PATH 15446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15448 ;; 15449 15450sco3.2v5*) 15451 version_type=osf 15452 soname_spec='${libname}${release}${shared_ext}$major' 15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15454 shlibpath_var=LD_LIBRARY_PATH 15455 ;; 15456 15457solaris*) 15458 version_type=linux 15459 need_lib_prefix=no 15460 need_version=no 15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15462 soname_spec='${libname}${release}${shared_ext}$major' 15463 shlibpath_var=LD_LIBRARY_PATH 15464 shlibpath_overrides_runpath=yes 15465 hardcode_into_libs=yes 15466 # ldd complains unless libraries are executable 15467 postinstall_cmds='chmod +x $lib' 15468 ;; 15469 15470sunos4*) 15471 version_type=sunos 15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15474 shlibpath_var=LD_LIBRARY_PATH 15475 shlibpath_overrides_runpath=yes 15476 if test "$with_gnu_ld" = yes; then 15477 need_lib_prefix=no 15478 fi 15479 need_version=yes 15480 ;; 15481 15482sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15483 version_type=linux 15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15485 soname_spec='${libname}${release}${shared_ext}$major' 15486 shlibpath_var=LD_LIBRARY_PATH 15487 case $host_vendor in 15488 sni) 15489 shlibpath_overrides_runpath=no 15490 need_lib_prefix=no 15491 export_dynamic_flag_spec='${wl}-Blargedynsym' 15492 runpath_var=LD_RUN_PATH 15493 ;; 15494 siemens) 15495 need_lib_prefix=no 15496 ;; 15497 motorola) 15498 need_lib_prefix=no 15499 need_version=no 15500 shlibpath_overrides_runpath=no 15501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15502 ;; 15503 esac 15504 ;; 15505 15506sysv4*MP*) 15507 if test -d /usr/nec ;then 15508 version_type=linux 15509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15510 soname_spec='$libname${shared_ext}.$major' 15511 shlibpath_var=LD_LIBRARY_PATH 15512 fi 15513 ;; 15514 15515uts4*) 15516 version_type=linux 15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15518 soname_spec='${libname}${release}${shared_ext}$major' 15519 shlibpath_var=LD_LIBRARY_PATH 15520 ;; 15521 15522*) 15523 dynamic_linker=no 15524 ;; 15525esac 15526echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15527echo "${ECHO_T}$dynamic_linker" >&6 15528test "$dynamic_linker" = no && can_build_shared=no 15529 15530echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15531echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15532hardcode_action_F77= 15533if test -n "$hardcode_libdir_flag_spec_F77" || \ 15534 test -n "$runpath_var_F77" || \ 15535 test "X$hardcode_automatic_F77" = "Xyes" ; then 15536 15537 # We can hardcode non-existant directories. 15538 if test "$hardcode_direct_F77" != no && 15539 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15540 # have to relink, otherwise we might link with an installed library 15541 # when we should be linking with a yet-to-be-installed one 15542 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15543 test "$hardcode_minus_L_F77" != no; then 15544 # Linking always hardcodes the temporary library directory. 15545 hardcode_action_F77=relink 15546 else 15547 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15548 hardcode_action_F77=immediate 15549 fi 15550else 15551 # We cannot hardcode anything, or else we can only hardcode existing 15552 # directories. 15553 hardcode_action_F77=unsupported 15554fi 15555echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15556echo "${ECHO_T}$hardcode_action_F77" >&6 15557 15558if test "$hardcode_action_F77" = relink; then 15559 # Fast installation is not supported 15560 enable_fast_install=no 15561elif test "$shlibpath_overrides_runpath" = yes || 15562 test "$enable_shared" = no; then 15563 # Fast installation is not necessary 15564 enable_fast_install=needless 15565fi 15566 15567striplib= 15568old_striplib= 15569echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15570echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15571if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15572 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15573 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15574 echo "$as_me:$LINENO: result: yes" >&5 15575echo "${ECHO_T}yes" >&6 15576else 15577# FIXME - insert some real tests, host_os isn't really good enough 15578 case $host_os in 15579 darwin*) 15580 if test -n "$STRIP" ; then 15581 striplib="$STRIP -x" 15582 echo "$as_me:$LINENO: result: yes" >&5 15583echo "${ECHO_T}yes" >&6 15584 else 15585 echo "$as_me:$LINENO: result: no" >&5 15586echo "${ECHO_T}no" >&6 15587fi 15588 ;; 15589 *) 15590 echo "$as_me:$LINENO: result: no" >&5 15591echo "${ECHO_T}no" >&6 15592 ;; 15593 esac 15594fi 15595 15596 15597 15598# The else clause should only fire when bootstrapping the 15599# libtool distribution, otherwise you forgot to ship ltmain.sh 15600# with your package, and you will get complaints that there are 15601# no rules to generate ltmain.sh. 15602if test -f "$ltmain"; then 15603 # See if we are running on zsh, and set the options which allow our commands through 15604 # without removal of \ escapes. 15605 if test -n "${ZSH_VERSION+set}" ; then 15606 setopt NO_GLOB_SUBST 15607 fi 15608 # Now quote all the things that may contain metacharacters while being 15609 # careful not to overquote the AC_SUBSTed values. We take copies of the 15610 # variables and quote the copies for generation of the libtool script. 15611 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15612 SED SHELL STRIP \ 15613 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15614 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15615 deplibs_check_method reload_flag reload_cmds need_locks \ 15616 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15617 lt_cv_sys_global_symbol_to_c_name_address \ 15618 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15619 old_postinstall_cmds old_postuninstall_cmds \ 15620 compiler_F77 \ 15621 CC_F77 \ 15622 LD_F77 \ 15623 lt_prog_compiler_wl_F77 \ 15624 lt_prog_compiler_pic_F77 \ 15625 lt_prog_compiler_static_F77 \ 15626 lt_prog_compiler_no_builtin_flag_F77 \ 15627 export_dynamic_flag_spec_F77 \ 15628 thread_safe_flag_spec_F77 \ 15629 whole_archive_flag_spec_F77 \ 15630 enable_shared_with_static_runtimes_F77 \ 15631 old_archive_cmds_F77 \ 15632 old_archive_from_new_cmds_F77 \ 15633 predep_objects_F77 \ 15634 postdep_objects_F77 \ 15635 predeps_F77 \ 15636 postdeps_F77 \ 15637 compiler_lib_search_path_F77 \ 15638 archive_cmds_F77 \ 15639 archive_expsym_cmds_F77 \ 15640 postinstall_cmds_F77 \ 15641 postuninstall_cmds_F77 \ 15642 old_archive_from_expsyms_cmds_F77 \ 15643 allow_undefined_flag_F77 \ 15644 no_undefined_flag_F77 \ 15645 export_symbols_cmds_F77 \ 15646 hardcode_libdir_flag_spec_F77 \ 15647 hardcode_libdir_flag_spec_ld_F77 \ 15648 hardcode_libdir_separator_F77 \ 15649 hardcode_automatic_F77 \ 15650 module_cmds_F77 \ 15651 module_expsym_cmds_F77 \ 15652 lt_cv_prog_compiler_c_o_F77 \ 15653 exclude_expsyms_F77 \ 15654 include_expsyms_F77; do 15655 15656 case $var in 15657 old_archive_cmds_F77 | \ 15658 old_archive_from_new_cmds_F77 | \ 15659 archive_cmds_F77 | \ 15660 archive_expsym_cmds_F77 | \ 15661 module_cmds_F77 | \ 15662 module_expsym_cmds_F77 | \ 15663 old_archive_from_expsyms_cmds_F77 | \ 15664 export_symbols_cmds_F77 | \ 15665 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15666 postinstall_cmds | postuninstall_cmds | \ 15667 old_postinstall_cmds | old_postuninstall_cmds | \ 15668 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15669 # Double-quote double-evaled strings. 15670 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15671 ;; 15672 *) 15673 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15674 ;; 15675 esac 15676 done 15677 15678 case $lt_echo in 15679 *'\$0 --fallback-echo"') 15680 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15681 ;; 15682 esac 15683 15684cfgfile="$ofile" 15685 15686 cat <<__EOF__ >> "$cfgfile" 15687# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15688 15689# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15690 15691# Shell to use when invoking shell scripts. 15692SHELL=$lt_SHELL 15693 15694# Whether or not to build shared libraries. 15695build_libtool_libs=$enable_shared 15696 15697# Whether or not to build static libraries. 15698build_old_libs=$enable_static 15699 15700# Whether or not to add -lc for building shared libraries. 15701build_libtool_need_lc=$archive_cmds_need_lc_F77 15702 15703# Whether or not to disallow shared libs when runtime libs are static 15704allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15705 15706# Whether or not to optimize for fast installation. 15707fast_install=$enable_fast_install 15708 15709# The host system. 15710host_alias=$host_alias 15711host=$host 15712host_os=$host_os 15713 15714# The build system. 15715build_alias=$build_alias 15716build=$build 15717build_os=$build_os 15718 15719# An echo program that does not interpret backslashes. 15720echo=$lt_echo 15721 15722# The archiver. 15723AR=$lt_AR 15724AR_FLAGS=$lt_AR_FLAGS 15725 15726# A C compiler. 15727LTCC=$lt_LTCC 15728 15729# A language-specific compiler. 15730CC=$lt_compiler_F77 15731 15732# Is the compiler the GNU C compiler? 15733with_gcc=$GCC_F77 15734 15735# An ERE matcher. 15736EGREP=$lt_EGREP 15737 15738# The linker used to build libraries. 15739LD=$lt_LD_F77 15740 15741# Whether we need hard or soft links. 15742LN_S=$lt_LN_S 15743 15744# A BSD-compatible nm program. 15745NM=$lt_NM 15746 15747# A symbol stripping program 15748STRIP=$lt_STRIP 15749 15750# Used to examine libraries when file_magic_cmd begins "file" 15751MAGIC_CMD=$MAGIC_CMD 15752 15753# Used on cygwin: DLL creation program. 15754DLLTOOL="$DLLTOOL" 15755 15756# Used on cygwin: object dumper. 15757OBJDUMP="$OBJDUMP" 15758 15759# Used on cygwin: assembler. 15760AS="$AS" 15761 15762# The name of the directory that contains temporary libtool files. 15763objdir=$objdir 15764 15765# How to create reloadable object files. 15766reload_flag=$lt_reload_flag 15767reload_cmds=$lt_reload_cmds 15768 15769# How to pass a linker flag through the compiler. 15770wl=$lt_lt_prog_compiler_wl_F77 15771 15772# Object file suffix (normally "o"). 15773objext="$ac_objext" 15774 15775# Old archive suffix (normally "a"). 15776libext="$libext" 15777 15778# Shared library suffix (normally ".so"). 15779shrext_cmds='$shrext_cmds' 15780 15781# Executable file suffix (normally ""). 15782exeext="$exeext" 15783 15784# Additional compiler flags for building library objects. 15785pic_flag=$lt_lt_prog_compiler_pic_F77 15786pic_mode=$pic_mode 15787 15788# What is the maximum length of a command? 15789max_cmd_len=$lt_cv_sys_max_cmd_len 15790 15791# Does compiler simultaneously support -c and -o options? 15792compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15793 15794# Must we lock files when doing compilation? 15795need_locks=$lt_need_locks 15796 15797# Do we need the lib prefix for modules? 15798need_lib_prefix=$need_lib_prefix 15799 15800# Do we need a version for libraries? 15801need_version=$need_version 15802 15803# Whether dlopen is supported. 15804dlopen_support=$enable_dlopen 15805 15806# Whether dlopen of programs is supported. 15807dlopen_self=$enable_dlopen_self 15808 15809# Whether dlopen of statically linked programs is supported. 15810dlopen_self_static=$enable_dlopen_self_static 15811 15812# Compiler flag to prevent dynamic linking. 15813link_static_flag=$lt_lt_prog_compiler_static_F77 15814 15815# Compiler flag to turn off builtin functions. 15816no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15817 15818# Compiler flag to allow reflexive dlopens. 15819export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15820 15821# Compiler flag to generate shared objects directly from archives. 15822whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15823 15824# Compiler flag to generate thread-safe objects. 15825thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15826 15827# Library versioning type. 15828version_type=$version_type 15829 15830# Format of library name prefix. 15831libname_spec=$lt_libname_spec 15832 15833# List of archive names. First name is the real one, the rest are links. 15834# The last name is the one that the linker finds with -lNAME. 15835library_names_spec=$lt_library_names_spec 15836 15837# The coded name of the library, if different from the real name. 15838soname_spec=$lt_soname_spec 15839 15840# Commands used to build and install an old-style archive. 15841RANLIB=$lt_RANLIB 15842old_archive_cmds=$lt_old_archive_cmds_F77 15843old_postinstall_cmds=$lt_old_postinstall_cmds 15844old_postuninstall_cmds=$lt_old_postuninstall_cmds 15845 15846# Create an old-style archive from a shared archive. 15847old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15848 15849# Create a temporary old-style archive to link instead of a shared archive. 15850old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15851 15852# Commands used to build and install a shared archive. 15853archive_cmds=$lt_archive_cmds_F77 15854archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15855postinstall_cmds=$lt_postinstall_cmds 15856postuninstall_cmds=$lt_postuninstall_cmds 15857 15858# Commands used to build a loadable module (assumed same as above if empty) 15859module_cmds=$lt_module_cmds_F77 15860module_expsym_cmds=$lt_module_expsym_cmds_F77 15861 15862# Commands to strip libraries. 15863old_striplib=$lt_old_striplib 15864striplib=$lt_striplib 15865 15866# Dependencies to place before the objects being linked to create a 15867# shared library. 15868predep_objects=$lt_predep_objects_F77 15869 15870# Dependencies to place after the objects being linked to create a 15871# shared library. 15872postdep_objects=$lt_postdep_objects_F77 15873 15874# Dependencies to place before the objects being linked to create a 15875# shared library. 15876predeps=$lt_predeps_F77 15877 15878# Dependencies to place after the objects being linked to create a 15879# shared library. 15880postdeps=$lt_postdeps_F77 15881 15882# The library search path used internally by the compiler when linking 15883# a shared library. 15884compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15885 15886# Method to check whether dependent libraries are shared objects. 15887deplibs_check_method=$lt_deplibs_check_method 15888 15889# Command to use when deplibs_check_method == file_magic. 15890file_magic_cmd=$lt_file_magic_cmd 15891 15892# Flag that allows shared libraries with undefined symbols to be built. 15893allow_undefined_flag=$lt_allow_undefined_flag_F77 15894 15895# Flag that forces no undefined symbols. 15896no_undefined_flag=$lt_no_undefined_flag_F77 15897 15898# Commands used to finish a libtool library installation in a directory. 15899finish_cmds=$lt_finish_cmds 15900 15901# Same as above, but a single script fragment to be evaled but not shown. 15902finish_eval=$lt_finish_eval 15903 15904# Take the output of nm and produce a listing of raw symbols and C names. 15905global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15906 15907# Transform the output of nm in a proper C declaration 15908global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15909 15910# Transform the output of nm in a C name address pair 15911global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15912 15913# This is the shared library runtime path variable. 15914runpath_var=$runpath_var 15915 15916# This is the shared library path variable. 15917shlibpath_var=$shlibpath_var 15918 15919# Is shlibpath searched before the hard-coded library search path? 15920shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15921 15922# How to hardcode a shared library path into an executable. 15923hardcode_action=$hardcode_action_F77 15924 15925# Whether we should hardcode library paths into libraries. 15926hardcode_into_libs=$hardcode_into_libs 15927 15928# Flag to hardcode \$libdir into a binary during linking. 15929# This must work even if \$libdir does not exist. 15930hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15931 15932# If ld is used when linking, flag to hardcode \$libdir into 15933# a binary during linking. This must work even if \$libdir does 15934# not exist. 15935hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15936 15937# Whether we need a single -rpath flag with a separated argument. 15938hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15939 15940# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15941# resulting binary. 15942hardcode_direct=$hardcode_direct_F77 15943 15944# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15945# resulting binary. 15946hardcode_minus_L=$hardcode_minus_L_F77 15947 15948# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15949# the resulting binary. 15950hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15951 15952# Set to yes if building a shared library automatically hardcodes DIR into the library 15953# and all subsequent libraries and executables linked against it. 15954hardcode_automatic=$hardcode_automatic_F77 15955 15956# Variables whose values should be saved in libtool wrapper scripts and 15957# restored at relink time. 15958variables_saved_for_relink="$variables_saved_for_relink" 15959 15960# Whether libtool must link a program against all its dependency libraries. 15961link_all_deplibs=$link_all_deplibs_F77 15962 15963# Compile-time system search path for libraries 15964sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15965 15966# Run-time system search path for libraries 15967sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15968 15969# Fix the shell variable \$srcfile for the compiler. 15970fix_srcfile_path="$fix_srcfile_path_F77" 15971 15972# Set to yes if exported symbols are required. 15973always_export_symbols=$always_export_symbols_F77 15974 15975# The commands to list exported symbols. 15976export_symbols_cmds=$lt_export_symbols_cmds_F77 15977 15978# The commands to extract the exported symbol list from a shared archive. 15979extract_expsyms_cmds=$lt_extract_expsyms_cmds 15980 15981# Symbols that should not be listed in the preloaded symbols. 15982exclude_expsyms=$lt_exclude_expsyms_F77 15983 15984# Symbols that must always be exported. 15985include_expsyms=$lt_include_expsyms_F77 15986 15987# ### END LIBTOOL TAG CONFIG: $tagname 15988 15989__EOF__ 15990 15991 15992else 15993 # If there is no Makefile yet, we rely on a make rule to execute 15994 # `config.status --recheck' to rerun these tests and create the 15995 # libtool script then. 15996 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15997 if test -f "$ltmain_in"; then 15998 test -f Makefile && make "$ltmain" 15999 fi 16000fi 16001 16002 16003ac_ext=c 16004ac_cpp='$CPP $CPPFLAGS' 16005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16007ac_compiler_gnu=$ac_cv_c_compiler_gnu 16008 16009CC="$lt_save_CC" 16010 16011 else 16012 tagname="" 16013 fi 16014 ;; 16015 16016 GCJ) 16017 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16018 16019 16020 16021# Source file extension for Java test sources. 16022ac_ext=java 16023 16024# Object file extension for compiled Java test sources. 16025objext=o 16026objext_GCJ=$objext 16027 16028# Code to be used in simple compile tests 16029lt_simple_compile_test_code="class foo {}\n" 16030 16031# Code to be used in simple link tests 16032lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16033 16034# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16035 16036# If no C compiler was specified, use CC. 16037LTCC=${LTCC-"$CC"} 16038 16039# Allow CC to be a program name with arguments. 16040compiler=$CC 16041 16042 16043# save warnings/boilerplate of simple test code 16044ac_outfile=conftest.$ac_objext 16045printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16046eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16047_lt_compiler_boilerplate=`cat conftest.err` 16048$rm conftest* 16049 16050ac_outfile=conftest.$ac_objext 16051printf "$lt_simple_link_test_code" >conftest.$ac_ext 16052eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16053_lt_linker_boilerplate=`cat conftest.err` 16054$rm conftest* 16055 16056 16057# Allow CC to be a program name with arguments. 16058lt_save_CC="$CC" 16059CC=${GCJ-"gcj"} 16060compiler=$CC 16061compiler_GCJ=$CC 16062for cc_temp in $compiler""; do 16063 case $cc_temp in 16064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16066 \-*) ;; 16067 *) break;; 16068 esac 16069done 16070cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16071 16072 16073# GCJ did not exist at the time GCC didn't implicitly link libc in. 16074archive_cmds_need_lc_GCJ=no 16075 16076old_archive_cmds_GCJ=$old_archive_cmds 16077 16078## CAVEAT EMPTOR: 16079## There is no encapsulation within the following macros, do not change 16080## the running order or otherwise move them around unless you know exactly 16081## what you are doing... 16082 16083lt_prog_compiler_no_builtin_flag_GCJ= 16084 16085if test "$GCC" = yes; then 16086 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16087 16088 16089echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16090echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16091if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16092 echo $ECHO_N "(cached) $ECHO_C" >&6 16093else 16094 lt_cv_prog_compiler_rtti_exceptions=no 16095 ac_outfile=conftest.$ac_objext 16096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16097 lt_compiler_flag="-fno-rtti -fno-exceptions" 16098 # Insert the option either (1) after the last *FLAGS variable, or 16099 # (2) before a word containing "conftest.", or (3) at the end. 16100 # Note that $ac_compile itself does not contain backslashes and begins 16101 # with a dollar sign (not a hyphen), so the echo should work correctly. 16102 # The option is referenced via a variable to avoid confusing sed. 16103 lt_compile=`echo "$ac_compile" | $SED \ 16104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16106 -e 's:$: $lt_compiler_flag:'` 16107 (eval echo "\"\$as_me:16107: $lt_compile\"" >&5) 16108 (eval "$lt_compile" 2>conftest.err) 16109 ac_status=$? 16110 cat conftest.err >&5 16111 echo "$as_me:16111: \$? = $ac_status" >&5 16112 if (exit $ac_status) && test -s "$ac_outfile"; then 16113 # The compiler can only warn and ignore the option if not recognized 16114 # So say no if there are warnings other than the usual output. 16115 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16116 $SED '/^$/d' conftest.err >conftest.er2 16117 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16118 lt_cv_prog_compiler_rtti_exceptions=yes 16119 fi 16120 fi 16121 $rm conftest* 16122 16123fi 16124echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16125echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16126 16127if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16128 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16129else 16130 : 16131fi 16132 16133fi 16134 16135lt_prog_compiler_wl_GCJ= 16136lt_prog_compiler_pic_GCJ= 16137lt_prog_compiler_static_GCJ= 16138 16139echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16140echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16141 16142 if test "$GCC" = yes; then 16143 lt_prog_compiler_wl_GCJ='-Wl,' 16144 lt_prog_compiler_static_GCJ='-static' 16145 16146 case $host_os in 16147 aix*) 16148 # All AIX code is PIC. 16149 if test "$host_cpu" = ia64; then 16150 # AIX 5 now supports IA64 processor 16151 lt_prog_compiler_static_GCJ='-Bstatic' 16152 fi 16153 ;; 16154 16155 amigaos*) 16156 # FIXME: we need at least 68020 code to build shared libraries, but 16157 # adding the `-m68020' flag to GCC prevents building anything better, 16158 # like `-m68040'. 16159 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16160 ;; 16161 16162 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16163 # PIC is the default for these OSes. 16164 ;; 16165 16166 mingw* | pw32* | os2*) 16167 # This hack is so that the source file can tell whether it is being 16168 # built for inclusion in a dll (and should export symbols for example). 16169 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16170 ;; 16171 16172 darwin* | rhapsody*) 16173 # PIC is the default on this platform 16174 # Common symbols not allowed in MH_DYLIB files 16175 lt_prog_compiler_pic_GCJ='-fno-common' 16176 ;; 16177 16178 msdosdjgpp*) 16179 # Just because we use GCC doesn't mean we suddenly get shared libraries 16180 # on systems that don't support them. 16181 lt_prog_compiler_can_build_shared_GCJ=no 16182 enable_shared=no 16183 ;; 16184 16185 sysv4*MP*) 16186 if test -d /usr/nec; then 16187 lt_prog_compiler_pic_GCJ=-Kconform_pic 16188 fi 16189 ;; 16190 16191 hpux*) 16192 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16193 # not for PA HP-UX. 16194 case $host_cpu in 16195 hppa*64*|ia64*) 16196 # +Z the default 16197 ;; 16198 *) 16199 lt_prog_compiler_pic_GCJ='-fPIC' 16200 ;; 16201 esac 16202 ;; 16203 16204 *) 16205 lt_prog_compiler_pic_GCJ='-fPIC' 16206 ;; 16207 esac 16208 else 16209 # PORTME Check for flag to pass linker flags through the system compiler. 16210 case $host_os in 16211 aix*) 16212 lt_prog_compiler_wl_GCJ='-Wl,' 16213 if test "$host_cpu" = ia64; then 16214 # AIX 5 now supports IA64 processor 16215 lt_prog_compiler_static_GCJ='-Bstatic' 16216 else 16217 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16218 fi 16219 ;; 16220 darwin*) 16221 # PIC is the default on this platform 16222 # Common symbols not allowed in MH_DYLIB files 16223 case $cc_basename in 16224 xlc*) 16225 lt_prog_compiler_pic_GCJ='-qnocommon' 16226 lt_prog_compiler_wl_GCJ='-Wl,' 16227 ;; 16228 esac 16229 ;; 16230 16231 mingw* | pw32* | os2*) 16232 # This hack is so that the source file can tell whether it is being 16233 # built for inclusion in a dll (and should export symbols for example). 16234 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16235 ;; 16236 16237 hpux9* | hpux10* | hpux11*) 16238 lt_prog_compiler_wl_GCJ='-Wl,' 16239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16240 # not for PA HP-UX. 16241 case $host_cpu in 16242 hppa*64*|ia64*) 16243 # +Z the default 16244 ;; 16245 *) 16246 lt_prog_compiler_pic_GCJ='+Z' 16247 ;; 16248 esac 16249 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16250 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16251 ;; 16252 16253 irix5* | irix6* | nonstopux*) 16254 lt_prog_compiler_wl_GCJ='-Wl,' 16255 # PIC (with -KPIC) is the default. 16256 lt_prog_compiler_static_GCJ='-non_shared' 16257 ;; 16258 16259 newsos6) 16260 lt_prog_compiler_pic_GCJ='-KPIC' 16261 lt_prog_compiler_static_GCJ='-Bstatic' 16262 ;; 16263 16264 linux*) 16265 case $cc_basename in 16266 icc* | ecc*) 16267 lt_prog_compiler_wl_GCJ='-Wl,' 16268 lt_prog_compiler_pic_GCJ='-KPIC' 16269 lt_prog_compiler_static_GCJ='-static' 16270 ;; 16271 pgcc* | pgf77* | pgf90* | pgf95*) 16272 # Portland Group compilers (*not* the Pentium gcc compiler, 16273 # which looks to be a dead project) 16274 lt_prog_compiler_wl_GCJ='-Wl,' 16275 lt_prog_compiler_pic_GCJ='-fpic' 16276 lt_prog_compiler_static_GCJ='-Bstatic' 16277 ;; 16278 ccc*) 16279 lt_prog_compiler_wl_GCJ='-Wl,' 16280 # All Alpha code is PIC. 16281 lt_prog_compiler_static_GCJ='-non_shared' 16282 ;; 16283 esac 16284 ;; 16285 16286 osf3* | osf4* | osf5*) 16287 lt_prog_compiler_wl_GCJ='-Wl,' 16288 # All OSF/1 code is PIC. 16289 lt_prog_compiler_static_GCJ='-non_shared' 16290 ;; 16291 16292 sco3.2v5*) 16293 lt_prog_compiler_pic_GCJ='-Kpic' 16294 lt_prog_compiler_static_GCJ='-dn' 16295 ;; 16296 16297 solaris*) 16298 lt_prog_compiler_pic_GCJ='-KPIC' 16299 lt_prog_compiler_static_GCJ='-Bstatic' 16300 case $cc_basename in 16301 f77* | f90* | f95*) 16302 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16303 *) 16304 lt_prog_compiler_wl_GCJ='-Wl,';; 16305 esac 16306 ;; 16307 16308 sunos4*) 16309 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16310 lt_prog_compiler_pic_GCJ='-PIC' 16311 lt_prog_compiler_static_GCJ='-Bstatic' 16312 ;; 16313 16314 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16315 lt_prog_compiler_wl_GCJ='-Wl,' 16316 lt_prog_compiler_pic_GCJ='-KPIC' 16317 lt_prog_compiler_static_GCJ='-Bstatic' 16318 ;; 16319 16320 sysv4*MP*) 16321 if test -d /usr/nec ;then 16322 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16323 lt_prog_compiler_static_GCJ='-Bstatic' 16324 fi 16325 ;; 16326 16327 unicos*) 16328 lt_prog_compiler_wl_GCJ='-Wl,' 16329 lt_prog_compiler_can_build_shared_GCJ=no 16330 ;; 16331 16332 uts4*) 16333 lt_prog_compiler_pic_GCJ='-pic' 16334 lt_prog_compiler_static_GCJ='-Bstatic' 16335 ;; 16336 16337 *) 16338 lt_prog_compiler_can_build_shared_GCJ=no 16339 ;; 16340 esac 16341 fi 16342 16343echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16344echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16345 16346# 16347# Check to make sure the PIC flag actually works. 16348# 16349if test -n "$lt_prog_compiler_pic_GCJ"; then 16350 16351echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16352echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16353if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16354 echo $ECHO_N "(cached) $ECHO_C" >&6 16355else 16356 lt_prog_compiler_pic_works_GCJ=no 16357 ac_outfile=conftest.$ac_objext 16358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16359 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16360 # Insert the option either (1) after the last *FLAGS variable, or 16361 # (2) before a word containing "conftest.", or (3) at the end. 16362 # Note that $ac_compile itself does not contain backslashes and begins 16363 # with a dollar sign (not a hyphen), so the echo should work correctly. 16364 # The option is referenced via a variable to avoid confusing sed. 16365 lt_compile=`echo "$ac_compile" | $SED \ 16366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16368 -e 's:$: $lt_compiler_flag:'` 16369 (eval echo "\"\$as_me:16369: $lt_compile\"" >&5) 16370 (eval "$lt_compile" 2>conftest.err) 16371 ac_status=$? 16372 cat conftest.err >&5 16373 echo "$as_me:16373: \$? = $ac_status" >&5 16374 if (exit $ac_status) && test -s "$ac_outfile"; then 16375 # The compiler can only warn and ignore the option if not recognized 16376 # So say no if there are warnings other than the usual output. 16377 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16378 $SED '/^$/d' conftest.err >conftest.er2 16379 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16380 lt_prog_compiler_pic_works_GCJ=yes 16381 fi 16382 fi 16383 $rm conftest* 16384 16385fi 16386echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16387echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16388 16389if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16390 case $lt_prog_compiler_pic_GCJ in 16391 "" | " "*) ;; 16392 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16393 esac 16394else 16395 lt_prog_compiler_pic_GCJ= 16396 lt_prog_compiler_can_build_shared_GCJ=no 16397fi 16398 16399fi 16400case $host_os in 16401 # For platforms which do not support PIC, -DPIC is meaningless: 16402 *djgpp*) 16403 lt_prog_compiler_pic_GCJ= 16404 ;; 16405 *) 16406 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16407 ;; 16408esac 16409 16410echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16411echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16412if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16413 echo $ECHO_N "(cached) $ECHO_C" >&6 16414else 16415 lt_cv_prog_compiler_c_o_GCJ=no 16416 $rm -r conftest 2>/dev/null 16417 mkdir conftest 16418 cd conftest 16419 mkdir out 16420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16421 16422 lt_compiler_flag="-o out/conftest2.$ac_objext" 16423 # Insert the option either (1) after the last *FLAGS variable, or 16424 # (2) before a word containing "conftest.", or (3) at the end. 16425 # Note that $ac_compile itself does not contain backslashes and begins 16426 # with a dollar sign (not a hyphen), so the echo should work correctly. 16427 lt_compile=`echo "$ac_compile" | $SED \ 16428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16430 -e 's:$: $lt_compiler_flag:'` 16431 (eval echo "\"\$as_me:16431: $lt_compile\"" >&5) 16432 (eval "$lt_compile" 2>out/conftest.err) 16433 ac_status=$? 16434 cat out/conftest.err >&5 16435 echo "$as_me:16435: \$? = $ac_status" >&5 16436 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16437 then 16438 # The compiler can only warn and ignore the option if not recognized 16439 # So say no if there are warnings 16440 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16441 $SED '/^$/d' out/conftest.err >out/conftest.er2 16442 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16443 lt_cv_prog_compiler_c_o_GCJ=yes 16444 fi 16445 fi 16446 chmod u+w . 2>&5 16447 $rm conftest* 16448 # SGI C++ compiler will create directory out/ii_files/ for 16449 # template instantiation 16450 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16451 $rm out/* && rmdir out 16452 cd .. 16453 rmdir conftest 16454 $rm conftest* 16455 16456fi 16457echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16458echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16459 16460 16461hard_links="nottested" 16462if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16463 # do not overwrite the value of need_locks provided by the user 16464 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16465echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16466 hard_links=yes 16467 $rm conftest* 16468 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16469 touch conftest.a 16470 ln conftest.a conftest.b 2>&5 || hard_links=no 16471 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16472 echo "$as_me:$LINENO: result: $hard_links" >&5 16473echo "${ECHO_T}$hard_links" >&6 16474 if test "$hard_links" = no; then 16475 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16476echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16477 need_locks=warn 16478 fi 16479else 16480 need_locks=no 16481fi 16482 16483echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16484echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16485 16486 runpath_var= 16487 allow_undefined_flag_GCJ= 16488 enable_shared_with_static_runtimes_GCJ=no 16489 archive_cmds_GCJ= 16490 archive_expsym_cmds_GCJ= 16491 old_archive_From_new_cmds_GCJ= 16492 old_archive_from_expsyms_cmds_GCJ= 16493 export_dynamic_flag_spec_GCJ= 16494 whole_archive_flag_spec_GCJ= 16495 thread_safe_flag_spec_GCJ= 16496 hardcode_libdir_flag_spec_GCJ= 16497 hardcode_libdir_flag_spec_ld_GCJ= 16498 hardcode_libdir_separator_GCJ= 16499 hardcode_direct_GCJ=no 16500 hardcode_minus_L_GCJ=no 16501 hardcode_shlibpath_var_GCJ=unsupported 16502 link_all_deplibs_GCJ=unknown 16503 hardcode_automatic_GCJ=no 16504 module_cmds_GCJ= 16505 module_expsym_cmds_GCJ= 16506 always_export_symbols_GCJ=no 16507 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16508 # include_expsyms should be a list of space-separated symbols to be *always* 16509 # included in the symbol list 16510 include_expsyms_GCJ= 16511 # exclude_expsyms can be an extended regexp of symbols to exclude 16512 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16513 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16514 # as well as any symbol that contains `d'. 16515 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16516 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16517 # platforms (ab)use it in PIC code, but their linkers get confused if 16518 # the symbol is explicitly referenced. Since portable code cannot 16519 # rely on this symbol name, it's probably fine to never include it in 16520 # preloaded symbol tables. 16521 extract_expsyms_cmds= 16522 # Just being paranoid about ensuring that cc_basename is set. 16523 for cc_temp in $compiler""; do 16524 case $cc_temp in 16525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16527 \-*) ;; 16528 *) break;; 16529 esac 16530done 16531cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16532 16533 case $host_os in 16534 cygwin* | mingw* | pw32*) 16535 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16536 # When not using gcc, we currently assume that we are using 16537 # Microsoft Visual C++. 16538 if test "$GCC" != yes; then 16539 with_gnu_ld=no 16540 fi 16541 ;; 16542 openbsd*) 16543 with_gnu_ld=no 16544 ;; 16545 esac 16546 16547 ld_shlibs_GCJ=yes 16548 if test "$with_gnu_ld" = yes; then 16549 # If archive_cmds runs LD, not CC, wlarc should be empty 16550 wlarc='${wl}' 16551 16552 # Set some defaults for GNU ld with shared library support. These 16553 # are reset later if shared libraries are not supported. Putting them 16554 # here allows them to be overridden if necessary. 16555 runpath_var=LD_RUN_PATH 16556 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16557 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16558 # ancient GNU ld didn't support --whole-archive et. al. 16559 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16560 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16561 else 16562 whole_archive_flag_spec_GCJ= 16563 fi 16564 supports_anon_versioning=no 16565 case `$LD -v 2>/dev/null` in 16566 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16567 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16568 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16569 *\ 2.11.*) ;; # other 2.11 versions 16570 *) supports_anon_versioning=yes ;; 16571 esac 16572 16573 # See if GNU ld supports shared libraries. 16574 case $host_os in 16575 aix3* | aix4* | aix5*) 16576 # On AIX/PPC, the GNU linker is very broken 16577 if test "$host_cpu" != ia64; then 16578 ld_shlibs_GCJ=no 16579 cat <<EOF 1>&2 16580 16581*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16582*** to be unable to reliably create shared libraries on AIX. 16583*** Therefore, libtool is disabling shared libraries support. If you 16584*** really care for shared libraries, you may want to modify your PATH 16585*** so that a non-GNU linker is found, and then restart. 16586 16587EOF 16588 fi 16589 ;; 16590 16591 amigaos*) 16592 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)' 16593 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16594 hardcode_minus_L_GCJ=yes 16595 16596 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16597 # that the semantics of dynamic libraries on AmigaOS, at least up 16598 # to version 4, is to share data among multiple programs linked 16599 # with the same dynamic library. Since this doesn't match the 16600 # behavior of shared libraries on other platforms, we can't use 16601 # them. 16602 ld_shlibs_GCJ=no 16603 ;; 16604 16605 beos*) 16606 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16607 allow_undefined_flag_GCJ=unsupported 16608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16609 # support --undefined. This deserves some investigation. FIXME 16610 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16611 else 16612 ld_shlibs_GCJ=no 16613 fi 16614 ;; 16615 16616 cygwin* | mingw* | pw32*) 16617 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16618 # as there is no search path for DLLs. 16619 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16620 allow_undefined_flag_GCJ=unsupported 16621 always_export_symbols_GCJ=no 16622 enable_shared_with_static_runtimes_GCJ=yes 16623 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16624 16625 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16626 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16627 # If the export-symbols file already is a .def file (1st line 16628 # is EXPORTS), use it as is; otherwise, prepend... 16629 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16630 cp $export_symbols $output_objdir/$soname.def; 16631 else 16632 echo EXPORTS > $output_objdir/$soname.def; 16633 cat $export_symbols >> $output_objdir/$soname.def; 16634 fi~ 16635 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16636 else 16637 ld_shlibs_GCJ=no 16638 fi 16639 ;; 16640 16641 linux*) 16642 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16643 tmp_addflag= 16644 case $cc_basename,$host_cpu in 16645 pgcc*) # Portland Group C compiler 16646 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16647 tmp_addflag=' $pic_flag' 16648 ;; 16649 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16650 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16651 tmp_addflag=' $pic_flag -Mnomain' ;; 16652 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16653 tmp_addflag=' -i_dynamic' ;; 16654 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16655 tmp_addflag=' -i_dynamic -nofor_main' ;; 16656 ifc* | ifort*) # Intel Fortran compiler 16657 tmp_addflag=' -nofor_main' ;; 16658 esac 16659 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16660 16661 if test $supports_anon_versioning = yes; then 16662 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16664 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16665 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16666 fi 16667 else 16668 ld_shlibs_GCJ=no 16669 fi 16670 ;; 16671 16672 netbsd*) 16673 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16674 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16675 wlarc= 16676 else 16677 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16678 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16679 fi 16680 ;; 16681 16682 solaris* | sysv5*) 16683 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16684 ld_shlibs_GCJ=no 16685 cat <<EOF 1>&2 16686 16687*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16688*** create shared libraries on Solaris systems. Therefore, libtool 16689*** is disabling shared libraries support. We urge you to upgrade GNU 16690*** binutils to release 2.9.1 or newer. Another option is to modify 16691*** your PATH or compiler configuration so that the native linker is 16692*** used, and then restart. 16693 16694EOF 16695 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16696 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16697 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16698 else 16699 ld_shlibs_GCJ=no 16700 fi 16701 ;; 16702 16703 sunos4*) 16704 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16705 wlarc= 16706 hardcode_direct_GCJ=yes 16707 hardcode_shlibpath_var_GCJ=no 16708 ;; 16709 16710 *) 16711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16712 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16713 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16714 else 16715 ld_shlibs_GCJ=no 16716 fi 16717 ;; 16718 esac 16719 16720 if test "$ld_shlibs_GCJ" = no; then 16721 runpath_var= 16722 hardcode_libdir_flag_spec_GCJ= 16723 export_dynamic_flag_spec_GCJ= 16724 whole_archive_flag_spec_GCJ= 16725 fi 16726 else 16727 # PORTME fill in a description of your system's linker (not GNU ld) 16728 case $host_os in 16729 aix3*) 16730 allow_undefined_flag_GCJ=unsupported 16731 always_export_symbols_GCJ=yes 16732 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' 16733 # Note: this linker hardcodes the directories in LIBPATH if there 16734 # are no directories specified by -L. 16735 hardcode_minus_L_GCJ=yes 16736 if test "$GCC" = yes && test -z "$link_static_flag"; then 16737 # Neither direct hardcoding nor static linking is supported with a 16738 # broken collect2. 16739 hardcode_direct_GCJ=unsupported 16740 fi 16741 ;; 16742 16743 aix4* | aix5*) 16744 if test "$host_cpu" = ia64; then 16745 # On IA64, the linker does run time linking by default, so we don't 16746 # have to do anything special. 16747 aix_use_runtimelinking=no 16748 exp_sym_flag='-Bexport' 16749 no_entry_flag="" 16750 else 16751 # If we're using GNU nm, then we don't want the "-C" option. 16752 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16753 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16754 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' 16755 else 16756 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' 16757 fi 16758 aix_use_runtimelinking=no 16759 16760 # Test if we are trying to use run time linking or normal 16761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16762 # need to do runtime linking. 16763 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16764 for ld_flag in $LDFLAGS; do 16765 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16766 aix_use_runtimelinking=yes 16767 break 16768 fi 16769 done 16770 esac 16771 16772 exp_sym_flag='-bexport' 16773 no_entry_flag='-bnoentry' 16774 fi 16775 16776 # When large executables or shared objects are built, AIX ld can 16777 # have problems creating the table of contents. If linking a library 16778 # or program results in "error TOC overflow" add -mminimal-toc to 16779 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16780 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16781 16782 archive_cmds_GCJ='' 16783 hardcode_direct_GCJ=yes 16784 hardcode_libdir_separator_GCJ=':' 16785 link_all_deplibs_GCJ=yes 16786 16787 if test "$GCC" = yes; then 16788 case $host_os in aix4.[012]|aix4.[012].*) 16789 # We only want to do this on AIX 4.2 and lower, the check 16790 # below for broken collect2 doesn't work under 4.3+ 16791 collect2name=`${CC} -print-prog-name=collect2` 16792 if test -f "$collect2name" && \ 16793 strings "$collect2name" | grep resolve_lib_name >/dev/null 16794 then 16795 # We have reworked collect2 16796 hardcode_direct_GCJ=yes 16797 else 16798 # We have old collect2 16799 hardcode_direct_GCJ=unsupported 16800 # It fails to find uninstalled libraries when the uninstalled 16801 # path is not listed in the libpath. Setting hardcode_minus_L 16802 # to unsupported forces relinking 16803 hardcode_minus_L_GCJ=yes 16804 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16805 hardcode_libdir_separator_GCJ= 16806 fi 16807 esac 16808 shared_flag='-shared' 16809 if test "$aix_use_runtimelinking" = yes; then 16810 shared_flag="$shared_flag "'${wl}-G' 16811 fi 16812 else 16813 # not using gcc 16814 if test "$host_cpu" = ia64; then 16815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16816 # chokes on -Wl,-G. The following line is correct: 16817 shared_flag='-G' 16818 else 16819 if test "$aix_use_runtimelinking" = yes; then 16820 shared_flag='${wl}-G' 16821 else 16822 shared_flag='${wl}-bM:SRE' 16823 fi 16824 fi 16825 fi 16826 16827 # It seems that -bexpall does not export symbols beginning with 16828 # underscore (_), so it is better to generate a list of symbols to export. 16829 always_export_symbols_GCJ=yes 16830 if test "$aix_use_runtimelinking" = yes; then 16831 # Warning - without using the other runtime loading flags (-brtl), 16832 # -berok will link without error, but may produce a broken library. 16833 allow_undefined_flag_GCJ='-berok' 16834 # Determine the default libpath from the value encoded in an empty executable. 16835 cat >conftest.$ac_ext <<_ACEOF 16836/* confdefs.h. */ 16837_ACEOF 16838cat confdefs.h >>conftest.$ac_ext 16839cat >>conftest.$ac_ext <<_ACEOF 16840/* end confdefs.h. */ 16841 16842int 16843main () 16844{ 16845 16846 ; 16847 return 0; 16848} 16849_ACEOF 16850rm -f conftest.$ac_objext conftest$ac_exeext 16851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16852 (eval $ac_link) 2>conftest.er1 16853 ac_status=$? 16854 grep -v '^ *+' conftest.er1 >conftest.err 16855 rm -f conftest.er1 16856 cat conftest.err >&5 16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16858 (exit $ac_status); } && 16859 { ac_try='test -z "$ac_c_werror_flag" 16860 || test ! -s conftest.err' 16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16862 (eval $ac_try) 2>&5 16863 ac_status=$? 16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16865 (exit $ac_status); }; } && 16866 { ac_try='test -s conftest$ac_exeext' 16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16868 (eval $ac_try) 2>&5 16869 ac_status=$? 16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16871 (exit $ac_status); }; }; then 16872 16873aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16874}'` 16875# Check for a 64-bit object if we didn't find anything. 16876if 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; } 16877}'`; fi 16878else 16879 echo "$as_me: failed program was:" >&5 16880sed 's/^/| /' conftest.$ac_ext >&5 16881 16882fi 16883rm -f conftest.err conftest.$ac_objext \ 16884 conftest$ac_exeext conftest.$ac_ext 16885if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16886 16887 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16888 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" 16889 else 16890 if test "$host_cpu" = ia64; then 16891 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16892 allow_undefined_flag_GCJ="-z nodefs" 16893 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" 16894 else 16895 # Determine the default libpath from the value encoded in an empty executable. 16896 cat >conftest.$ac_ext <<_ACEOF 16897/* confdefs.h. */ 16898_ACEOF 16899cat confdefs.h >>conftest.$ac_ext 16900cat >>conftest.$ac_ext <<_ACEOF 16901/* end confdefs.h. */ 16902 16903int 16904main () 16905{ 16906 16907 ; 16908 return 0; 16909} 16910_ACEOF 16911rm -f conftest.$ac_objext conftest$ac_exeext 16912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16913 (eval $ac_link) 2>conftest.er1 16914 ac_status=$? 16915 grep -v '^ *+' conftest.er1 >conftest.err 16916 rm -f conftest.er1 16917 cat conftest.err >&5 16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16919 (exit $ac_status); } && 16920 { ac_try='test -z "$ac_c_werror_flag" 16921 || test ! -s conftest.err' 16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16923 (eval $ac_try) 2>&5 16924 ac_status=$? 16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16926 (exit $ac_status); }; } && 16927 { ac_try='test -s conftest$ac_exeext' 16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16929 (eval $ac_try) 2>&5 16930 ac_status=$? 16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16932 (exit $ac_status); }; }; then 16933 16934aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16935}'` 16936# Check for a 64-bit object if we didn't find anything. 16937if 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; } 16938}'`; fi 16939else 16940 echo "$as_me: failed program was:" >&5 16941sed 's/^/| /' conftest.$ac_ext >&5 16942 16943fi 16944rm -f conftest.err conftest.$ac_objext \ 16945 conftest$ac_exeext conftest.$ac_ext 16946if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16947 16948 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16949 # Warning - without using the other run time loading flags, 16950 # -berok will link without error, but may produce a broken library. 16951 no_undefined_flag_GCJ=' ${wl}-bernotok' 16952 allow_undefined_flag_GCJ=' ${wl}-berok' 16953 # -bexpall does not export symbols beginning with underscore (_) 16954 always_export_symbols_GCJ=yes 16955 # Exported symbols can be pulled into shared objects from archives 16956 whole_archive_flag_spec_GCJ=' ' 16957 archive_cmds_need_lc_GCJ=yes 16958 # This is similar to how AIX traditionally builds its shared libraries. 16959 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' 16960 fi 16961 fi 16962 ;; 16963 16964 amigaos*) 16965 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)' 16966 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16967 hardcode_minus_L_GCJ=yes 16968 # see comment about different semantics on the GNU ld section 16969 ld_shlibs_GCJ=no 16970 ;; 16971 16972 bsdi[45]*) 16973 export_dynamic_flag_spec_GCJ=-rdynamic 16974 ;; 16975 16976 cygwin* | mingw* | pw32*) 16977 # When not using gcc, we currently assume that we are using 16978 # Microsoft Visual C++. 16979 # hardcode_libdir_flag_spec is actually meaningless, as there is 16980 # no search path for DLLs. 16981 hardcode_libdir_flag_spec_GCJ=' ' 16982 allow_undefined_flag_GCJ=unsupported 16983 # Tell ltmain to make .lib files, not .a files. 16984 libext=lib 16985 # Tell ltmain to make .dll files, not .so files. 16986 shrext_cmds=".dll" 16987 # FIXME: Setting linknames here is a bad hack. 16988 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16989 # The linker will automatically build a .lib file if we build a DLL. 16990 old_archive_From_new_cmds_GCJ='true' 16991 # FIXME: Should let the user specify the lib program. 16992 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16993 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16994 enable_shared_with_static_runtimes_GCJ=yes 16995 ;; 16996 16997 darwin* | rhapsody*) 16998 case $host_os in 16999 rhapsody* | darwin1.[012]) 17000 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17001 ;; 17002 *) # Darwin 1.3 on 17003 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17004 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17005 else 17006 case ${MACOSX_DEPLOYMENT_TARGET} in 17007 10.[012]) 17008 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17009 ;; 17010 10.*) 17011 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17012 ;; 17013 esac 17014 fi 17015 ;; 17016 esac 17017 archive_cmds_need_lc_GCJ=no 17018 hardcode_direct_GCJ=no 17019 hardcode_automatic_GCJ=yes 17020 hardcode_shlibpath_var_GCJ=unsupported 17021 whole_archive_flag_spec_GCJ='' 17022 link_all_deplibs_GCJ=yes 17023 if test "$GCC" = yes ; then 17024 output_verbose_link_cmd='echo' 17025 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17026 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17027 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17028 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17029 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17030 else 17031 case $cc_basename in 17032 xlc*) 17033 output_verbose_link_cmd='echo' 17034 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17035 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17036 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17037 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17038 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17039 ;; 17040 *) 17041 ld_shlibs_GCJ=no 17042 ;; 17043 esac 17044 fi 17045 ;; 17046 17047 dgux*) 17048 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17049 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17050 hardcode_shlibpath_var_GCJ=no 17051 ;; 17052 17053 freebsd1*) 17054 ld_shlibs_GCJ=no 17055 ;; 17056 17057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17058 # support. Future versions do this automatically, but an explicit c++rt0.o 17059 # does not break anything, and helps significantly (at the cost of a little 17060 # extra space). 17061 freebsd2.2*) 17062 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17063 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17064 hardcode_direct_GCJ=yes 17065 hardcode_shlibpath_var_GCJ=no 17066 ;; 17067 17068 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17069 freebsd2*) 17070 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17071 hardcode_direct_GCJ=yes 17072 hardcode_minus_L_GCJ=yes 17073 hardcode_shlibpath_var_GCJ=no 17074 ;; 17075 17076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17077 freebsd* | kfreebsd*-gnu | dragonfly*) 17078 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17079 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17080 hardcode_direct_GCJ=yes 17081 hardcode_shlibpath_var_GCJ=no 17082 ;; 17083 17084 hpux9*) 17085 if test "$GCC" = yes; then 17086 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' 17087 else 17088 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' 17089 fi 17090 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17091 hardcode_libdir_separator_GCJ=: 17092 hardcode_direct_GCJ=yes 17093 17094 # hardcode_minus_L: Not really in the search PATH, 17095 # but as the default location of the library. 17096 hardcode_minus_L_GCJ=yes 17097 export_dynamic_flag_spec_GCJ='${wl}-E' 17098 ;; 17099 17100 hpux10* | hpux11*) 17101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17102 case $host_cpu in 17103 hppa*64*|ia64*) 17104 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17105 ;; 17106 *) 17107 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17108 ;; 17109 esac 17110 else 17111 case $host_cpu in 17112 hppa*64*|ia64*) 17113 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17114 ;; 17115 *) 17116 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17117 ;; 17118 esac 17119 fi 17120 if test "$with_gnu_ld" = no; then 17121 case $host_cpu in 17122 hppa*64*) 17123 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17124 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17125 hardcode_libdir_separator_GCJ=: 17126 hardcode_direct_GCJ=no 17127 hardcode_shlibpath_var_GCJ=no 17128 ;; 17129 ia64*) 17130 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17131 hardcode_direct_GCJ=no 17132 hardcode_shlibpath_var_GCJ=no 17133 17134 # hardcode_minus_L: Not really in the search PATH, 17135 # but as the default location of the library. 17136 hardcode_minus_L_GCJ=yes 17137 ;; 17138 *) 17139 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17140 hardcode_libdir_separator_GCJ=: 17141 hardcode_direct_GCJ=yes 17142 export_dynamic_flag_spec_GCJ='${wl}-E' 17143 17144 # hardcode_minus_L: Not really in the search PATH, 17145 # but as the default location of the library. 17146 hardcode_minus_L_GCJ=yes 17147 ;; 17148 esac 17149 fi 17150 ;; 17151 17152 irix5* | irix6* | nonstopux*) 17153 if test "$GCC" = yes; then 17154 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' 17155 else 17156 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' 17157 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17158 fi 17159 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17160 hardcode_libdir_separator_GCJ=: 17161 link_all_deplibs_GCJ=yes 17162 ;; 17163 17164 netbsd*) 17165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17166 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17167 else 17168 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17169 fi 17170 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17171 hardcode_direct_GCJ=yes 17172 hardcode_shlibpath_var_GCJ=no 17173 ;; 17174 17175 newsos6) 17176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17177 hardcode_direct_GCJ=yes 17178 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17179 hardcode_libdir_separator_GCJ=: 17180 hardcode_shlibpath_var_GCJ=no 17181 ;; 17182 17183 openbsd*) 17184 hardcode_direct_GCJ=yes 17185 hardcode_shlibpath_var_GCJ=no 17186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17187 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17188 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17189 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17190 export_dynamic_flag_spec_GCJ='${wl}-E' 17191 else 17192 case $host_os in 17193 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17194 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17195 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17196 ;; 17197 *) 17198 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17199 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17200 ;; 17201 esac 17202 fi 17203 ;; 17204 17205 os2*) 17206 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17207 hardcode_minus_L_GCJ=yes 17208 allow_undefined_flag_GCJ=unsupported 17209 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' 17210 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17211 ;; 17212 17213 osf3*) 17214 if test "$GCC" = yes; then 17215 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17216 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' 17217 else 17218 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17219 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' 17220 fi 17221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17222 hardcode_libdir_separator_GCJ=: 17223 ;; 17224 17225 osf4* | osf5*) # as osf3* with the addition of -msym flag 17226 if test "$GCC" = yes; then 17227 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17228 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' 17229 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17230 else 17231 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17232 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' 17233 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~ 17234 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17235 17236 # Both c and cxx compiler support -rpath directly 17237 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17238 fi 17239 hardcode_libdir_separator_GCJ=: 17240 ;; 17241 17242 sco3.2v5*) 17243 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17244 hardcode_shlibpath_var_GCJ=no 17245 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17246 runpath_var=LD_RUN_PATH 17247 hardcode_runpath_var=yes 17248 ;; 17249 17250 solaris*) 17251 no_undefined_flag_GCJ=' -z text' 17252 if test "$GCC" = yes; then 17253 wlarc='${wl}' 17254 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17255 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17256 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17257 else 17258 wlarc='' 17259 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17260 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17261 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17262 fi 17263 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17264 hardcode_shlibpath_var_GCJ=no 17265 case $host_os in 17266 solaris2.[0-5] | solaris2.[0-5].*) ;; 17267 *) 17268 # The compiler driver will combine linker options so we 17269 # cannot just pass the convience library names through 17270 # without $wl, iff we do not link with $LD. 17271 # Luckily, gcc supports the same syntax we need for Sun Studio. 17272 # Supported since Solaris 2.6 (maybe 2.5.1?) 17273 case $wlarc in 17274 '') 17275 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17276 *) 17277 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17278 esac ;; 17279 esac 17280 link_all_deplibs_GCJ=yes 17281 ;; 17282 17283 sunos4*) 17284 if test "x$host_vendor" = xsequent; then 17285 # Use $CC to link under sequent, because it throws in some extra .o 17286 # files that make .init and .fini sections work. 17287 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17288 else 17289 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17290 fi 17291 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17292 hardcode_direct_GCJ=yes 17293 hardcode_minus_L_GCJ=yes 17294 hardcode_shlibpath_var_GCJ=no 17295 ;; 17296 17297 sysv4) 17298 case $host_vendor in 17299 sni) 17300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17301 hardcode_direct_GCJ=yes # is this really true??? 17302 ;; 17303 siemens) 17304 ## LD is ld it makes a PLAMLIB 17305 ## CC just makes a GrossModule. 17306 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17307 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17308 hardcode_direct_GCJ=no 17309 ;; 17310 motorola) 17311 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17312 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17313 ;; 17314 esac 17315 runpath_var='LD_RUN_PATH' 17316 hardcode_shlibpath_var_GCJ=no 17317 ;; 17318 17319 sysv4.3*) 17320 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17321 hardcode_shlibpath_var_GCJ=no 17322 export_dynamic_flag_spec_GCJ='-Bexport' 17323 ;; 17324 17325 sysv4*MP*) 17326 if test -d /usr/nec; then 17327 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17328 hardcode_shlibpath_var_GCJ=no 17329 runpath_var=LD_RUN_PATH 17330 hardcode_runpath_var=yes 17331 ld_shlibs_GCJ=yes 17332 fi 17333 ;; 17334 17335 sysv4.2uw2*) 17336 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17337 hardcode_direct_GCJ=yes 17338 hardcode_minus_L_GCJ=no 17339 hardcode_shlibpath_var_GCJ=no 17340 hardcode_runpath_var=yes 17341 runpath_var=LD_RUN_PATH 17342 ;; 17343 17344 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17345 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17346 if test "$GCC" = yes; then 17347 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17348 else 17349 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17350 fi 17351 runpath_var='LD_RUN_PATH' 17352 hardcode_shlibpath_var_GCJ=no 17353 ;; 17354 17355 sysv5*) 17356 no_undefined_flag_GCJ=' -z text' 17357 # $CC -shared without GNU ld will not create a library from C++ 17358 # object files and a static libstdc++, better avoid it by now 17359 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17360 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17362 hardcode_libdir_flag_spec_GCJ= 17363 hardcode_shlibpath_var_GCJ=no 17364 runpath_var='LD_RUN_PATH' 17365 ;; 17366 17367 uts4*) 17368 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17369 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17370 hardcode_shlibpath_var_GCJ=no 17371 ;; 17372 17373 *) 17374 ld_shlibs_GCJ=no 17375 ;; 17376 esac 17377 fi 17378 17379echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17380echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17381test "$ld_shlibs_GCJ" = no && can_build_shared=no 17382 17383variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17384if test "$GCC" = yes; then 17385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17386fi 17387 17388# 17389# Do we need to explicitly link libc? 17390# 17391case "x$archive_cmds_need_lc_GCJ" in 17392x|xyes) 17393 # Assume -lc should be added 17394 archive_cmds_need_lc_GCJ=yes 17395 17396 if test "$enable_shared" = yes && test "$GCC" = yes; then 17397 case $archive_cmds_GCJ in 17398 *'~'*) 17399 # FIXME: we may have to deal with multi-command sequences. 17400 ;; 17401 '$CC '*) 17402 # Test whether the compiler implicitly links with -lc since on some 17403 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17404 # to ld, don't add -lc before -lgcc. 17405 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17406echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17407 $rm conftest* 17408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17409 17410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17411 (eval $ac_compile) 2>&5 17412 ac_status=$? 17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17414 (exit $ac_status); } 2>conftest.err; then 17415 soname=conftest 17416 lib=conftest 17417 libobjs=conftest.$ac_objext 17418 deplibs= 17419 wl=$lt_prog_compiler_wl_GCJ 17420 compiler_flags=-v 17421 linker_flags=-v 17422 verstring= 17423 output_objdir=. 17424 libname=conftest 17425 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17426 allow_undefined_flag_GCJ= 17427 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17428 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17429 ac_status=$? 17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17431 (exit $ac_status); } 17432 then 17433 archive_cmds_need_lc_GCJ=no 17434 else 17435 archive_cmds_need_lc_GCJ=yes 17436 fi 17437 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17438 else 17439 cat conftest.err 1>&5 17440 fi 17441 $rm conftest* 17442 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17443echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17444 ;; 17445 esac 17446 fi 17447 ;; 17448esac 17449 17450echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17451echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17452library_names_spec= 17453libname_spec='lib$name' 17454soname_spec= 17455shrext_cmds=".so" 17456postinstall_cmds= 17457postuninstall_cmds= 17458finish_cmds= 17459finish_eval= 17460shlibpath_var= 17461shlibpath_overrides_runpath=unknown 17462version_type=none 17463dynamic_linker="$host_os ld.so" 17464sys_lib_dlsearch_path_spec="/lib /usr/lib" 17465if test "$GCC" = yes; then 17466 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17467 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17468 # if the path contains ";" then we assume it to be the separator 17469 # otherwise default to the standard path separator (i.e. ":") - it is 17470 # assumed that no part of a normal pathname contains ";" but that should 17471 # okay in the real world where ";" in dirpaths is itself problematic. 17472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17473 else 17474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17475 fi 17476else 17477 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17478fi 17479need_lib_prefix=unknown 17480hardcode_into_libs=no 17481 17482# when you set need_version to no, make sure it does not cause -set_version 17483# flags to be left without arguments 17484need_version=unknown 17485 17486case $host_os in 17487aix3*) 17488 version_type=linux 17489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17490 shlibpath_var=LIBPATH 17491 17492 # AIX 3 has no versioning support, so we append a major version to the name. 17493 soname_spec='${libname}${release}${shared_ext}$major' 17494 ;; 17495 17496aix4* | aix5*) 17497 version_type=linux 17498 need_lib_prefix=no 17499 need_version=no 17500 hardcode_into_libs=yes 17501 if test "$host_cpu" = ia64; then 17502 # AIX 5 supports IA64 17503 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17504 shlibpath_var=LD_LIBRARY_PATH 17505 else 17506 # With GCC up to 2.95.x, collect2 would create an import file 17507 # for dependence libraries. The import file would start with 17508 # the line `#! .'. This would cause the generated library to 17509 # depend on `.', always an invalid library. This was fixed in 17510 # development snapshots of GCC prior to 3.0. 17511 case $host_os in 17512 aix4 | aix4.[01] | aix4.[01].*) 17513 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17514 echo ' yes ' 17515 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17516 : 17517 else 17518 can_build_shared=no 17519 fi 17520 ;; 17521 esac 17522 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17523 # soname into executable. Probably we can add versioning support to 17524 # collect2, so additional links can be useful in future. 17525 if test "$aix_use_runtimelinking" = yes; then 17526 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17527 # instead of lib<name>.a to let people know that these are not 17528 # typical AIX shared libraries. 17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17530 else 17531 # We preserve .a as extension for shared libraries through AIX4.2 17532 # and later when we are not doing run time linking. 17533 library_names_spec='${libname}${release}.a $libname.a' 17534 soname_spec='${libname}${release}${shared_ext}$major' 17535 fi 17536 shlibpath_var=LIBPATH 17537 fi 17538 ;; 17539 17540amigaos*) 17541 library_names_spec='$libname.ixlibrary $libname.a' 17542 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17543 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' 17544 ;; 17545 17546beos*) 17547 library_names_spec='${libname}${shared_ext}' 17548 dynamic_linker="$host_os ld.so" 17549 shlibpath_var=LIBRARY_PATH 17550 ;; 17551 17552bsdi[45]*) 17553 version_type=linux 17554 need_version=no 17555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17556 soname_spec='${libname}${release}${shared_ext}$major' 17557 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17558 shlibpath_var=LD_LIBRARY_PATH 17559 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17560 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17561 # the default ld.so.conf also contains /usr/contrib/lib and 17562 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17563 # libtool to hard-code these into programs 17564 ;; 17565 17566cygwin* | mingw* | pw32*) 17567 version_type=windows 17568 shrext_cmds=".dll" 17569 need_version=no 17570 need_lib_prefix=no 17571 17572 case $GCC,$host_os in 17573 yes,cygwin* | yes,mingw* | yes,pw32*) 17574 library_names_spec='$libname.dll.a' 17575 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17576 postinstall_cmds='base_file=`basename \${file}`~ 17577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17578 dldir=$destdir/`dirname \$dlpath`~ 17579 test -d \$dldir || mkdir -p \$dldir~ 17580 $install_prog $dir/$dlname \$dldir/$dlname~ 17581 chmod a+x \$dldir/$dlname' 17582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17583 dlpath=$dir/\$dldll~ 17584 $rm \$dlpath' 17585 shlibpath_overrides_runpath=yes 17586 17587 case $host_os in 17588 cygwin*) 17589 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17590 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17591 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17592 ;; 17593 mingw*) 17594 # MinGW DLLs use traditional 'lib' prefix 17595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17596 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17597 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17598 # It is most probably a Windows format PATH printed by 17599 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17600 # path with ; separators, and with drive letters. We can handle the 17601 # drive letters (cygwin fileutils understands them), so leave them, 17602 # especially as we might pass files found there to a mingw objdump, 17603 # which wouldn't understand a cygwinified path. Ahh. 17604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17605 else 17606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17607 fi 17608 ;; 17609 pw32*) 17610 # pw32 DLLs use 'pw' prefix rather than 'lib' 17611 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17612 ;; 17613 esac 17614 ;; 17615 17616 *) 17617 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17618 ;; 17619 esac 17620 dynamic_linker='Win32 ld.exe' 17621 # FIXME: first we should search . and the directory the executable is in 17622 shlibpath_var=PATH 17623 ;; 17624 17625darwin* | rhapsody*) 17626 dynamic_linker="$host_os dyld" 17627 version_type=darwin 17628 need_lib_prefix=no 17629 need_version=no 17630 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17631 soname_spec='${libname}${release}${major}$shared_ext' 17632 shlibpath_overrides_runpath=yes 17633 shlibpath_var=DYLD_LIBRARY_PATH 17634 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17635 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17636 if test "$GCC" = yes; then 17637 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"` 17638 else 17639 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17640 fi 17641 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17642 ;; 17643 17644dgux*) 17645 version_type=linux 17646 need_lib_prefix=no 17647 need_version=no 17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17649 soname_spec='${libname}${release}${shared_ext}$major' 17650 shlibpath_var=LD_LIBRARY_PATH 17651 ;; 17652 17653freebsd1*) 17654 dynamic_linker=no 17655 ;; 17656 17657kfreebsd*-gnu) 17658 version_type=linux 17659 need_lib_prefix=no 17660 need_version=no 17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17662 soname_spec='${libname}${release}${shared_ext}$major' 17663 shlibpath_var=LD_LIBRARY_PATH 17664 shlibpath_overrides_runpath=no 17665 hardcode_into_libs=yes 17666 dynamic_linker='GNU ld.so' 17667 ;; 17668 17669freebsd* | dragonfly*) 17670 # DragonFly does not have aout. When/if they implement a new 17671 # versioning mechanism, adjust this. 17672 if test -x /usr/bin/objformat; then 17673 objformat=`/usr/bin/objformat` 17674 else 17675 case $host_os in 17676 freebsd[123]*) objformat=aout ;; 17677 *) objformat=elf ;; 17678 esac 17679 fi 17680 version_type=freebsd-$objformat 17681 case $version_type in 17682 freebsd-elf*) 17683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17684 need_version=no 17685 need_lib_prefix=no 17686 ;; 17687 freebsd-*) 17688 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17689 need_version=yes 17690 ;; 17691 esac 17692 shlibpath_var=LD_LIBRARY_PATH 17693 case $host_os in 17694 freebsd2*) 17695 shlibpath_overrides_runpath=yes 17696 ;; 17697 freebsd3.[01]* | freebsdelf3.[01]*) 17698 shlibpath_overrides_runpath=yes 17699 hardcode_into_libs=yes 17700 ;; 17701 *) # from 3.2 on 17702 shlibpath_overrides_runpath=no 17703 hardcode_into_libs=yes 17704 ;; 17705 esac 17706 ;; 17707 17708gnu*) 17709 version_type=linux 17710 need_lib_prefix=no 17711 need_version=no 17712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17713 soname_spec='${libname}${release}${shared_ext}$major' 17714 shlibpath_var=LD_LIBRARY_PATH 17715 hardcode_into_libs=yes 17716 ;; 17717 17718hpux9* | hpux10* | hpux11*) 17719 # Give a soname corresponding to the major version so that dld.sl refuses to 17720 # link against other versions. 17721 version_type=sunos 17722 need_lib_prefix=no 17723 need_version=no 17724 case $host_cpu in 17725 ia64*) 17726 shrext_cmds='.so' 17727 hardcode_into_libs=yes 17728 dynamic_linker="$host_os dld.so" 17729 shlibpath_var=LD_LIBRARY_PATH 17730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17732 soname_spec='${libname}${release}${shared_ext}$major' 17733 if test "X$HPUX_IA64_MODE" = X32; then 17734 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17735 else 17736 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17737 fi 17738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17739 ;; 17740 hppa*64*) 17741 shrext_cmds='.sl' 17742 hardcode_into_libs=yes 17743 dynamic_linker="$host_os dld.sl" 17744 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17747 soname_spec='${libname}${release}${shared_ext}$major' 17748 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17750 ;; 17751 *) 17752 shrext_cmds='.sl' 17753 dynamic_linker="$host_os dld.sl" 17754 shlibpath_var=SHLIB_PATH 17755 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17757 soname_spec='${libname}${release}${shared_ext}$major' 17758 ;; 17759 esac 17760 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17761 postinstall_cmds='chmod 555 $lib' 17762 ;; 17763 17764irix5* | irix6* | nonstopux*) 17765 case $host_os in 17766 nonstopux*) version_type=nonstopux ;; 17767 *) 17768 if test "$lt_cv_prog_gnu_ld" = yes; then 17769 version_type=linux 17770 else 17771 version_type=irix 17772 fi ;; 17773 esac 17774 need_lib_prefix=no 17775 need_version=no 17776 soname_spec='${libname}${release}${shared_ext}$major' 17777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17778 case $host_os in 17779 irix5* | nonstopux*) 17780 libsuff= shlibsuff= 17781 ;; 17782 *) 17783 case $LD in # libtool.m4 will add one of these switches to LD 17784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17785 libsuff= shlibsuff= libmagic=32-bit;; 17786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17787 libsuff=32 shlibsuff=N32 libmagic=N32;; 17788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17789 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17790 *) libsuff= shlibsuff= libmagic=never-match;; 17791 esac 17792 ;; 17793 esac 17794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17795 shlibpath_overrides_runpath=no 17796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17798 hardcode_into_libs=yes 17799 ;; 17800 17801# No shared lib support for Linux oldld, aout, or coff. 17802linux*oldld* | linux*aout* | linux*coff*) 17803 dynamic_linker=no 17804 ;; 17805 17806# This must be Linux ELF. 17807linux*) 17808 version_type=linux 17809 need_lib_prefix=no 17810 need_version=no 17811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17812 soname_spec='${libname}${release}${shared_ext}$major' 17813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17814 shlibpath_var=LD_LIBRARY_PATH 17815 shlibpath_overrides_runpath=no 17816 # This implies no fast_install, which is unacceptable. 17817 # Some rework will be needed to allow for fast_install 17818 # before this can be enabled. 17819 hardcode_into_libs=yes 17820 17821 # Append ld.so.conf contents to the search path 17822 if test -f /etc/ld.so.conf; then 17823 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17824 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17825 fi 17826 17827 # We used to test for /lib/ld.so.1 and disable shared libraries on 17828 # powerpc, because MkLinux only supported shared libraries with the 17829 # GNU dynamic linker. Since this was broken with cross compilers, 17830 # most powerpc-linux boxes support dynamic linking these days and 17831 # people can always --disable-shared, the test was removed, and we 17832 # assume the GNU/Linux dynamic linker is in use. 17833 dynamic_linker='GNU/Linux ld.so' 17834 ;; 17835 17836knetbsd*-gnu) 17837 version_type=linux 17838 need_lib_prefix=no 17839 need_version=no 17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17841 soname_spec='${libname}${release}${shared_ext}$major' 17842 shlibpath_var=LD_LIBRARY_PATH 17843 shlibpath_overrides_runpath=no 17844 hardcode_into_libs=yes 17845 dynamic_linker='GNU ld.so' 17846 ;; 17847 17848netbsd*) 17849 version_type=sunos 17850 need_lib_prefix=no 17851 need_version=no 17852 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17855 dynamic_linker='NetBSD (a.out) ld.so' 17856 else 17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17858 soname_spec='${libname}${release}${shared_ext}$major' 17859 dynamic_linker='NetBSD ld.elf_so' 17860 fi 17861 shlibpath_var=LD_LIBRARY_PATH 17862 shlibpath_overrides_runpath=yes 17863 hardcode_into_libs=yes 17864 ;; 17865 17866newsos6) 17867 version_type=linux 17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17869 shlibpath_var=LD_LIBRARY_PATH 17870 shlibpath_overrides_runpath=yes 17871 ;; 17872 17873nto-qnx*) 17874 version_type=linux 17875 need_lib_prefix=no 17876 need_version=no 17877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17878 soname_spec='${libname}${release}${shared_ext}$major' 17879 shlibpath_var=LD_LIBRARY_PATH 17880 shlibpath_overrides_runpath=yes 17881 ;; 17882 17883openbsd*) 17884 version_type=sunos 17885 need_lib_prefix=no 17886 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17887 case $host_os in 17888 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17889 *) need_version=no ;; 17890 esac 17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17893 shlibpath_var=LD_LIBRARY_PATH 17894 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17895 case $host_os in 17896 openbsd2.[89] | openbsd2.[89].*) 17897 shlibpath_overrides_runpath=no 17898 ;; 17899 *) 17900 shlibpath_overrides_runpath=yes 17901 ;; 17902 esac 17903 else 17904 shlibpath_overrides_runpath=yes 17905 fi 17906 ;; 17907 17908os2*) 17909 libname_spec='$name' 17910 shrext_cmds=".dll" 17911 need_lib_prefix=no 17912 library_names_spec='$libname${shared_ext} $libname.a' 17913 dynamic_linker='OS/2 ld.exe' 17914 shlibpath_var=LIBPATH 17915 ;; 17916 17917osf3* | osf4* | osf5*) 17918 version_type=osf 17919 need_lib_prefix=no 17920 need_version=no 17921 soname_spec='${libname}${release}${shared_ext}$major' 17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17923 shlibpath_var=LD_LIBRARY_PATH 17924 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17925 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17926 ;; 17927 17928sco3.2v5*) 17929 version_type=osf 17930 soname_spec='${libname}${release}${shared_ext}$major' 17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17932 shlibpath_var=LD_LIBRARY_PATH 17933 ;; 17934 17935solaris*) 17936 version_type=linux 17937 need_lib_prefix=no 17938 need_version=no 17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17940 soname_spec='${libname}${release}${shared_ext}$major' 17941 shlibpath_var=LD_LIBRARY_PATH 17942 shlibpath_overrides_runpath=yes 17943 hardcode_into_libs=yes 17944 # ldd complains unless libraries are executable 17945 postinstall_cmds='chmod +x $lib' 17946 ;; 17947 17948sunos4*) 17949 version_type=sunos 17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17951 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17952 shlibpath_var=LD_LIBRARY_PATH 17953 shlibpath_overrides_runpath=yes 17954 if test "$with_gnu_ld" = yes; then 17955 need_lib_prefix=no 17956 fi 17957 need_version=yes 17958 ;; 17959 17960sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17961 version_type=linux 17962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17963 soname_spec='${libname}${release}${shared_ext}$major' 17964 shlibpath_var=LD_LIBRARY_PATH 17965 case $host_vendor in 17966 sni) 17967 shlibpath_overrides_runpath=no 17968 need_lib_prefix=no 17969 export_dynamic_flag_spec='${wl}-Blargedynsym' 17970 runpath_var=LD_RUN_PATH 17971 ;; 17972 siemens) 17973 need_lib_prefix=no 17974 ;; 17975 motorola) 17976 need_lib_prefix=no 17977 need_version=no 17978 shlibpath_overrides_runpath=no 17979 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17980 ;; 17981 esac 17982 ;; 17983 17984sysv4*MP*) 17985 if test -d /usr/nec ;then 17986 version_type=linux 17987 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17988 soname_spec='$libname${shared_ext}.$major' 17989 shlibpath_var=LD_LIBRARY_PATH 17990 fi 17991 ;; 17992 17993uts4*) 17994 version_type=linux 17995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17996 soname_spec='${libname}${release}${shared_ext}$major' 17997 shlibpath_var=LD_LIBRARY_PATH 17998 ;; 17999 18000*) 18001 dynamic_linker=no 18002 ;; 18003esac 18004echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18005echo "${ECHO_T}$dynamic_linker" >&6 18006test "$dynamic_linker" = no && can_build_shared=no 18007 18008echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18009echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18010hardcode_action_GCJ= 18011if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18012 test -n "$runpath_var_GCJ" || \ 18013 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18014 18015 # We can hardcode non-existant directories. 18016 if test "$hardcode_direct_GCJ" != no && 18017 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18018 # have to relink, otherwise we might link with an installed library 18019 # when we should be linking with a yet-to-be-installed one 18020 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18021 test "$hardcode_minus_L_GCJ" != no; then 18022 # Linking always hardcodes the temporary library directory. 18023 hardcode_action_GCJ=relink 18024 else 18025 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18026 hardcode_action_GCJ=immediate 18027 fi 18028else 18029 # We cannot hardcode anything, or else we can only hardcode existing 18030 # directories. 18031 hardcode_action_GCJ=unsupported 18032fi 18033echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18034echo "${ECHO_T}$hardcode_action_GCJ" >&6 18035 18036if test "$hardcode_action_GCJ" = relink; then 18037 # Fast installation is not supported 18038 enable_fast_install=no 18039elif test "$shlibpath_overrides_runpath" = yes || 18040 test "$enable_shared" = no; then 18041 # Fast installation is not necessary 18042 enable_fast_install=needless 18043fi 18044 18045striplib= 18046old_striplib= 18047echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 18048echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 18049if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 18050 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18051 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18052 echo "$as_me:$LINENO: result: yes" >&5 18053echo "${ECHO_T}yes" >&6 18054else 18055# FIXME - insert some real tests, host_os isn't really good enough 18056 case $host_os in 18057 darwin*) 18058 if test -n "$STRIP" ; then 18059 striplib="$STRIP -x" 18060 echo "$as_me:$LINENO: result: yes" >&5 18061echo "${ECHO_T}yes" >&6 18062 else 18063 echo "$as_me:$LINENO: result: no" >&5 18064echo "${ECHO_T}no" >&6 18065fi 18066 ;; 18067 *) 18068 echo "$as_me:$LINENO: result: no" >&5 18069echo "${ECHO_T}no" >&6 18070 ;; 18071 esac 18072fi 18073 18074if test "x$enable_dlopen" != xyes; then 18075 enable_dlopen=unknown 18076 enable_dlopen_self=unknown 18077 enable_dlopen_self_static=unknown 18078else 18079 lt_cv_dlopen=no 18080 lt_cv_dlopen_libs= 18081 18082 case $host_os in 18083 beos*) 18084 lt_cv_dlopen="load_add_on" 18085 lt_cv_dlopen_libs= 18086 lt_cv_dlopen_self=yes 18087 ;; 18088 18089 mingw* | pw32*) 18090 lt_cv_dlopen="LoadLibrary" 18091 lt_cv_dlopen_libs= 18092 ;; 18093 18094 cygwin*) 18095 lt_cv_dlopen="dlopen" 18096 lt_cv_dlopen_libs= 18097 ;; 18098 18099 darwin*) 18100 # if libdl is installed we need to link against it 18101 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18102echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18103if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18104 echo $ECHO_N "(cached) $ECHO_C" >&6 18105else 18106 ac_check_lib_save_LIBS=$LIBS 18107LIBS="-ldl $LIBS" 18108cat >conftest.$ac_ext <<_ACEOF 18109/* confdefs.h. */ 18110_ACEOF 18111cat confdefs.h >>conftest.$ac_ext 18112cat >>conftest.$ac_ext <<_ACEOF 18113/* end confdefs.h. */ 18114 18115/* Override any gcc2 internal prototype to avoid an error. */ 18116#ifdef __cplusplus 18117extern "C" 18118#endif 18119/* We use char because int might match the return type of a gcc2 18120 builtin and then its argument prototype would still apply. */ 18121char dlopen (); 18122int 18123main () 18124{ 18125dlopen (); 18126 ; 18127 return 0; 18128} 18129_ACEOF 18130rm -f conftest.$ac_objext conftest$ac_exeext 18131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18132 (eval $ac_link) 2>conftest.er1 18133 ac_status=$? 18134 grep -v '^ *+' conftest.er1 >conftest.err 18135 rm -f conftest.er1 18136 cat conftest.err >&5 18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18138 (exit $ac_status); } && 18139 { ac_try='test -z "$ac_c_werror_flag" 18140 || test ! -s conftest.err' 18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18142 (eval $ac_try) 2>&5 18143 ac_status=$? 18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18145 (exit $ac_status); }; } && 18146 { ac_try='test -s conftest$ac_exeext' 18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18148 (eval $ac_try) 2>&5 18149 ac_status=$? 18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18151 (exit $ac_status); }; }; then 18152 ac_cv_lib_dl_dlopen=yes 18153else 18154 echo "$as_me: failed program was:" >&5 18155sed 's/^/| /' conftest.$ac_ext >&5 18156 18157ac_cv_lib_dl_dlopen=no 18158fi 18159rm -f conftest.err conftest.$ac_objext \ 18160 conftest$ac_exeext conftest.$ac_ext 18161LIBS=$ac_check_lib_save_LIBS 18162fi 18163echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18164echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18165if test $ac_cv_lib_dl_dlopen = yes; then 18166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18167else 18168 18169 lt_cv_dlopen="dyld" 18170 lt_cv_dlopen_libs= 18171 lt_cv_dlopen_self=yes 18172 18173fi 18174 18175 ;; 18176 18177 *) 18178 echo "$as_me:$LINENO: checking for shl_load" >&5 18179echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18180if test "${ac_cv_func_shl_load+set}" = set; then 18181 echo $ECHO_N "(cached) $ECHO_C" >&6 18182else 18183 cat >conftest.$ac_ext <<_ACEOF 18184/* confdefs.h. */ 18185_ACEOF 18186cat confdefs.h >>conftest.$ac_ext 18187cat >>conftest.$ac_ext <<_ACEOF 18188/* end confdefs.h. */ 18189/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18190 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18191#define shl_load innocuous_shl_load 18192 18193/* System header to define __stub macros and hopefully few prototypes, 18194 which can conflict with char shl_load (); below. 18195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18196 <limits.h> exists even on freestanding compilers. */ 18197 18198#ifdef __STDC__ 18199# include <limits.h> 18200#else 18201# include <assert.h> 18202#endif 18203 18204#undef shl_load 18205 18206/* Override any gcc2 internal prototype to avoid an error. */ 18207#ifdef __cplusplus 18208extern "C" 18209{ 18210#endif 18211/* We use char because int might match the return type of a gcc2 18212 builtin and then its argument prototype would still apply. */ 18213char shl_load (); 18214/* The GNU C library defines this for functions which it implements 18215 to always fail with ENOSYS. Some functions are actually named 18216 something starting with __ and the normal name is an alias. */ 18217#if defined (__stub_shl_load) || defined (__stub___shl_load) 18218choke me 18219#else 18220char (*f) () = shl_load; 18221#endif 18222#ifdef __cplusplus 18223} 18224#endif 18225 18226int 18227main () 18228{ 18229return f != shl_load; 18230 ; 18231 return 0; 18232} 18233_ACEOF 18234rm -f conftest.$ac_objext conftest$ac_exeext 18235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18236 (eval $ac_link) 2>conftest.er1 18237 ac_status=$? 18238 grep -v '^ *+' conftest.er1 >conftest.err 18239 rm -f conftest.er1 18240 cat conftest.err >&5 18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18242 (exit $ac_status); } && 18243 { ac_try='test -z "$ac_c_werror_flag" 18244 || test ! -s conftest.err' 18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18246 (eval $ac_try) 2>&5 18247 ac_status=$? 18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18249 (exit $ac_status); }; } && 18250 { ac_try='test -s conftest$ac_exeext' 18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18252 (eval $ac_try) 2>&5 18253 ac_status=$? 18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18255 (exit $ac_status); }; }; then 18256 ac_cv_func_shl_load=yes 18257else 18258 echo "$as_me: failed program was:" >&5 18259sed 's/^/| /' conftest.$ac_ext >&5 18260 18261ac_cv_func_shl_load=no 18262fi 18263rm -f conftest.err conftest.$ac_objext \ 18264 conftest$ac_exeext conftest.$ac_ext 18265fi 18266echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18267echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18268if test $ac_cv_func_shl_load = yes; then 18269 lt_cv_dlopen="shl_load" 18270else 18271 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18272echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18273if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18274 echo $ECHO_N "(cached) $ECHO_C" >&6 18275else 18276 ac_check_lib_save_LIBS=$LIBS 18277LIBS="-ldld $LIBS" 18278cat >conftest.$ac_ext <<_ACEOF 18279/* confdefs.h. */ 18280_ACEOF 18281cat confdefs.h >>conftest.$ac_ext 18282cat >>conftest.$ac_ext <<_ACEOF 18283/* end confdefs.h. */ 18284 18285/* Override any gcc2 internal prototype to avoid an error. */ 18286#ifdef __cplusplus 18287extern "C" 18288#endif 18289/* We use char because int might match the return type of a gcc2 18290 builtin and then its argument prototype would still apply. */ 18291char shl_load (); 18292int 18293main () 18294{ 18295shl_load (); 18296 ; 18297 return 0; 18298} 18299_ACEOF 18300rm -f conftest.$ac_objext conftest$ac_exeext 18301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18302 (eval $ac_link) 2>conftest.er1 18303 ac_status=$? 18304 grep -v '^ *+' conftest.er1 >conftest.err 18305 rm -f conftest.er1 18306 cat conftest.err >&5 18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18308 (exit $ac_status); } && 18309 { ac_try='test -z "$ac_c_werror_flag" 18310 || test ! -s conftest.err' 18311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18312 (eval $ac_try) 2>&5 18313 ac_status=$? 18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18315 (exit $ac_status); }; } && 18316 { ac_try='test -s conftest$ac_exeext' 18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18318 (eval $ac_try) 2>&5 18319 ac_status=$? 18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18321 (exit $ac_status); }; }; then 18322 ac_cv_lib_dld_shl_load=yes 18323else 18324 echo "$as_me: failed program was:" >&5 18325sed 's/^/| /' conftest.$ac_ext >&5 18326 18327ac_cv_lib_dld_shl_load=no 18328fi 18329rm -f conftest.err conftest.$ac_objext \ 18330 conftest$ac_exeext conftest.$ac_ext 18331LIBS=$ac_check_lib_save_LIBS 18332fi 18333echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18334echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18335if test $ac_cv_lib_dld_shl_load = yes; then 18336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18337else 18338 echo "$as_me:$LINENO: checking for dlopen" >&5 18339echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18340if test "${ac_cv_func_dlopen+set}" = set; then 18341 echo $ECHO_N "(cached) $ECHO_C" >&6 18342else 18343 cat >conftest.$ac_ext <<_ACEOF 18344/* confdefs.h. */ 18345_ACEOF 18346cat confdefs.h >>conftest.$ac_ext 18347cat >>conftest.$ac_ext <<_ACEOF 18348/* end confdefs.h. */ 18349/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18350 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18351#define dlopen innocuous_dlopen 18352 18353/* System header to define __stub macros and hopefully few prototypes, 18354 which can conflict with char dlopen (); below. 18355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18356 <limits.h> exists even on freestanding compilers. */ 18357 18358#ifdef __STDC__ 18359# include <limits.h> 18360#else 18361# include <assert.h> 18362#endif 18363 18364#undef dlopen 18365 18366/* Override any gcc2 internal prototype to avoid an error. */ 18367#ifdef __cplusplus 18368extern "C" 18369{ 18370#endif 18371/* We use char because int might match the return type of a gcc2 18372 builtin and then its argument prototype would still apply. */ 18373char dlopen (); 18374/* The GNU C library defines this for functions which it implements 18375 to always fail with ENOSYS. Some functions are actually named 18376 something starting with __ and the normal name is an alias. */ 18377#if defined (__stub_dlopen) || defined (__stub___dlopen) 18378choke me 18379#else 18380char (*f) () = dlopen; 18381#endif 18382#ifdef __cplusplus 18383} 18384#endif 18385 18386int 18387main () 18388{ 18389return f != dlopen; 18390 ; 18391 return 0; 18392} 18393_ACEOF 18394rm -f conftest.$ac_objext conftest$ac_exeext 18395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18396 (eval $ac_link) 2>conftest.er1 18397 ac_status=$? 18398 grep -v '^ *+' conftest.er1 >conftest.err 18399 rm -f conftest.er1 18400 cat conftest.err >&5 18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18402 (exit $ac_status); } && 18403 { ac_try='test -z "$ac_c_werror_flag" 18404 || test ! -s conftest.err' 18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18406 (eval $ac_try) 2>&5 18407 ac_status=$? 18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18409 (exit $ac_status); }; } && 18410 { ac_try='test -s conftest$ac_exeext' 18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18412 (eval $ac_try) 2>&5 18413 ac_status=$? 18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18415 (exit $ac_status); }; }; then 18416 ac_cv_func_dlopen=yes 18417else 18418 echo "$as_me: failed program was:" >&5 18419sed 's/^/| /' conftest.$ac_ext >&5 18420 18421ac_cv_func_dlopen=no 18422fi 18423rm -f conftest.err conftest.$ac_objext \ 18424 conftest$ac_exeext conftest.$ac_ext 18425fi 18426echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18427echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18428if test $ac_cv_func_dlopen = yes; then 18429 lt_cv_dlopen="dlopen" 18430else 18431 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18432echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18433if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18434 echo $ECHO_N "(cached) $ECHO_C" >&6 18435else 18436 ac_check_lib_save_LIBS=$LIBS 18437LIBS="-ldl $LIBS" 18438cat >conftest.$ac_ext <<_ACEOF 18439/* confdefs.h. */ 18440_ACEOF 18441cat confdefs.h >>conftest.$ac_ext 18442cat >>conftest.$ac_ext <<_ACEOF 18443/* end confdefs.h. */ 18444 18445/* Override any gcc2 internal prototype to avoid an error. */ 18446#ifdef __cplusplus 18447extern "C" 18448#endif 18449/* We use char because int might match the return type of a gcc2 18450 builtin and then its argument prototype would still apply. */ 18451char dlopen (); 18452int 18453main () 18454{ 18455dlopen (); 18456 ; 18457 return 0; 18458} 18459_ACEOF 18460rm -f conftest.$ac_objext conftest$ac_exeext 18461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18462 (eval $ac_link) 2>conftest.er1 18463 ac_status=$? 18464 grep -v '^ *+' conftest.er1 >conftest.err 18465 rm -f conftest.er1 18466 cat conftest.err >&5 18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18468 (exit $ac_status); } && 18469 { ac_try='test -z "$ac_c_werror_flag" 18470 || test ! -s conftest.err' 18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18472 (eval $ac_try) 2>&5 18473 ac_status=$? 18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18475 (exit $ac_status); }; } && 18476 { ac_try='test -s conftest$ac_exeext' 18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18478 (eval $ac_try) 2>&5 18479 ac_status=$? 18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18481 (exit $ac_status); }; }; then 18482 ac_cv_lib_dl_dlopen=yes 18483else 18484 echo "$as_me: failed program was:" >&5 18485sed 's/^/| /' conftest.$ac_ext >&5 18486 18487ac_cv_lib_dl_dlopen=no 18488fi 18489rm -f conftest.err conftest.$ac_objext \ 18490 conftest$ac_exeext conftest.$ac_ext 18491LIBS=$ac_check_lib_save_LIBS 18492fi 18493echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18494echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18495if test $ac_cv_lib_dl_dlopen = yes; then 18496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18497else 18498 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18499echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18500if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18501 echo $ECHO_N "(cached) $ECHO_C" >&6 18502else 18503 ac_check_lib_save_LIBS=$LIBS 18504LIBS="-lsvld $LIBS" 18505cat >conftest.$ac_ext <<_ACEOF 18506/* confdefs.h. */ 18507_ACEOF 18508cat confdefs.h >>conftest.$ac_ext 18509cat >>conftest.$ac_ext <<_ACEOF 18510/* end confdefs.h. */ 18511 18512/* Override any gcc2 internal prototype to avoid an error. */ 18513#ifdef __cplusplus 18514extern "C" 18515#endif 18516/* We use char because int might match the return type of a gcc2 18517 builtin and then its argument prototype would still apply. */ 18518char dlopen (); 18519int 18520main () 18521{ 18522dlopen (); 18523 ; 18524 return 0; 18525} 18526_ACEOF 18527rm -f conftest.$ac_objext conftest$ac_exeext 18528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18529 (eval $ac_link) 2>conftest.er1 18530 ac_status=$? 18531 grep -v '^ *+' conftest.er1 >conftest.err 18532 rm -f conftest.er1 18533 cat conftest.err >&5 18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18535 (exit $ac_status); } && 18536 { ac_try='test -z "$ac_c_werror_flag" 18537 || test ! -s conftest.err' 18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18539 (eval $ac_try) 2>&5 18540 ac_status=$? 18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18542 (exit $ac_status); }; } && 18543 { ac_try='test -s conftest$ac_exeext' 18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18545 (eval $ac_try) 2>&5 18546 ac_status=$? 18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18548 (exit $ac_status); }; }; then 18549 ac_cv_lib_svld_dlopen=yes 18550else 18551 echo "$as_me: failed program was:" >&5 18552sed 's/^/| /' conftest.$ac_ext >&5 18553 18554ac_cv_lib_svld_dlopen=no 18555fi 18556rm -f conftest.err conftest.$ac_objext \ 18557 conftest$ac_exeext conftest.$ac_ext 18558LIBS=$ac_check_lib_save_LIBS 18559fi 18560echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18561echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18562if test $ac_cv_lib_svld_dlopen = yes; then 18563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18564else 18565 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18566echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18567if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18568 echo $ECHO_N "(cached) $ECHO_C" >&6 18569else 18570 ac_check_lib_save_LIBS=$LIBS 18571LIBS="-ldld $LIBS" 18572cat >conftest.$ac_ext <<_ACEOF 18573/* confdefs.h. */ 18574_ACEOF 18575cat confdefs.h >>conftest.$ac_ext 18576cat >>conftest.$ac_ext <<_ACEOF 18577/* end confdefs.h. */ 18578 18579/* Override any gcc2 internal prototype to avoid an error. */ 18580#ifdef __cplusplus 18581extern "C" 18582#endif 18583/* We use char because int might match the return type of a gcc2 18584 builtin and then its argument prototype would still apply. */ 18585char dld_link (); 18586int 18587main () 18588{ 18589dld_link (); 18590 ; 18591 return 0; 18592} 18593_ACEOF 18594rm -f conftest.$ac_objext conftest$ac_exeext 18595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18596 (eval $ac_link) 2>conftest.er1 18597 ac_status=$? 18598 grep -v '^ *+' conftest.er1 >conftest.err 18599 rm -f conftest.er1 18600 cat conftest.err >&5 18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18602 (exit $ac_status); } && 18603 { ac_try='test -z "$ac_c_werror_flag" 18604 || test ! -s conftest.err' 18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18606 (eval $ac_try) 2>&5 18607 ac_status=$? 18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18609 (exit $ac_status); }; } && 18610 { ac_try='test -s conftest$ac_exeext' 18611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18612 (eval $ac_try) 2>&5 18613 ac_status=$? 18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18615 (exit $ac_status); }; }; then 18616 ac_cv_lib_dld_dld_link=yes 18617else 18618 echo "$as_me: failed program was:" >&5 18619sed 's/^/| /' conftest.$ac_ext >&5 18620 18621ac_cv_lib_dld_dld_link=no 18622fi 18623rm -f conftest.err conftest.$ac_objext \ 18624 conftest$ac_exeext conftest.$ac_ext 18625LIBS=$ac_check_lib_save_LIBS 18626fi 18627echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18628echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18629if test $ac_cv_lib_dld_dld_link = yes; then 18630 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18631fi 18632 18633 18634fi 18635 18636 18637fi 18638 18639 18640fi 18641 18642 18643fi 18644 18645 18646fi 18647 18648 ;; 18649 esac 18650 18651 if test "x$lt_cv_dlopen" != xno; then 18652 enable_dlopen=yes 18653 else 18654 enable_dlopen=no 18655 fi 18656 18657 case $lt_cv_dlopen in 18658 dlopen) 18659 save_CPPFLAGS="$CPPFLAGS" 18660 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18661 18662 save_LDFLAGS="$LDFLAGS" 18663 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18664 18665 save_LIBS="$LIBS" 18666 LIBS="$lt_cv_dlopen_libs $LIBS" 18667 18668 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18669echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18670if test "${lt_cv_dlopen_self+set}" = set; then 18671 echo $ECHO_N "(cached) $ECHO_C" >&6 18672else 18673 if test "$cross_compiling" = yes; then : 18674 lt_cv_dlopen_self=cross 18675else 18676 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18677 lt_status=$lt_dlunknown 18678 cat > conftest.$ac_ext <<EOF 18679#line 18679 "configure" 18680#include "confdefs.h" 18681 18682#if HAVE_DLFCN_H 18683#include <dlfcn.h> 18684#endif 18685 18686#include <stdio.h> 18687 18688#ifdef RTLD_GLOBAL 18689# define LT_DLGLOBAL RTLD_GLOBAL 18690#else 18691# ifdef DL_GLOBAL 18692# define LT_DLGLOBAL DL_GLOBAL 18693# else 18694# define LT_DLGLOBAL 0 18695# endif 18696#endif 18697 18698/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18699 find out it does not work in some platform. */ 18700#ifndef LT_DLLAZY_OR_NOW 18701# ifdef RTLD_LAZY 18702# define LT_DLLAZY_OR_NOW RTLD_LAZY 18703# else 18704# ifdef DL_LAZY 18705# define LT_DLLAZY_OR_NOW DL_LAZY 18706# else 18707# ifdef RTLD_NOW 18708# define LT_DLLAZY_OR_NOW RTLD_NOW 18709# else 18710# ifdef DL_NOW 18711# define LT_DLLAZY_OR_NOW DL_NOW 18712# else 18713# define LT_DLLAZY_OR_NOW 0 18714# endif 18715# endif 18716# endif 18717# endif 18718#endif 18719 18720#ifdef __cplusplus 18721extern "C" void exit (int); 18722#endif 18723 18724void fnord() { int i=42;} 18725int main () 18726{ 18727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18728 int status = $lt_dlunknown; 18729 18730 if (self) 18731 { 18732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18733 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18734 /* dlclose (self); */ 18735 } 18736 18737 exit (status); 18738} 18739EOF 18740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18741 (eval $ac_link) 2>&5 18742 ac_status=$? 18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18744 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18745 (./conftest; exit; ) >&5 2>/dev/null 18746 lt_status=$? 18747 case x$lt_status in 18748 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18749 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18750 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18751 esac 18752 else : 18753 # compilation failed 18754 lt_cv_dlopen_self=no 18755 fi 18756fi 18757rm -fr conftest* 18758 18759 18760fi 18761echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18762echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18763 18764 if test "x$lt_cv_dlopen_self" = xyes; then 18765 LDFLAGS="$LDFLAGS $link_static_flag" 18766 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18767echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18768if test "${lt_cv_dlopen_self_static+set}" = set; then 18769 echo $ECHO_N "(cached) $ECHO_C" >&6 18770else 18771 if test "$cross_compiling" = yes; then : 18772 lt_cv_dlopen_self_static=cross 18773else 18774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18775 lt_status=$lt_dlunknown 18776 cat > conftest.$ac_ext <<EOF 18777#line 18777 "configure" 18778#include "confdefs.h" 18779 18780#if HAVE_DLFCN_H 18781#include <dlfcn.h> 18782#endif 18783 18784#include <stdio.h> 18785 18786#ifdef RTLD_GLOBAL 18787# define LT_DLGLOBAL RTLD_GLOBAL 18788#else 18789# ifdef DL_GLOBAL 18790# define LT_DLGLOBAL DL_GLOBAL 18791# else 18792# define LT_DLGLOBAL 0 18793# endif 18794#endif 18795 18796/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18797 find out it does not work in some platform. */ 18798#ifndef LT_DLLAZY_OR_NOW 18799# ifdef RTLD_LAZY 18800# define LT_DLLAZY_OR_NOW RTLD_LAZY 18801# else 18802# ifdef DL_LAZY 18803# define LT_DLLAZY_OR_NOW DL_LAZY 18804# else 18805# ifdef RTLD_NOW 18806# define LT_DLLAZY_OR_NOW RTLD_NOW 18807# else 18808# ifdef DL_NOW 18809# define LT_DLLAZY_OR_NOW DL_NOW 18810# else 18811# define LT_DLLAZY_OR_NOW 0 18812# endif 18813# endif 18814# endif 18815# endif 18816#endif 18817 18818#ifdef __cplusplus 18819extern "C" void exit (int); 18820#endif 18821 18822void fnord() { int i=42;} 18823int main () 18824{ 18825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18826 int status = $lt_dlunknown; 18827 18828 if (self) 18829 { 18830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18831 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18832 /* dlclose (self); */ 18833 } 18834 18835 exit (status); 18836} 18837EOF 18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18839 (eval $ac_link) 2>&5 18840 ac_status=$? 18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18842 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18843 (./conftest; exit; ) >&5 2>/dev/null 18844 lt_status=$? 18845 case x$lt_status in 18846 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18847 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18848 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18849 esac 18850 else : 18851 # compilation failed 18852 lt_cv_dlopen_self_static=no 18853 fi 18854fi 18855rm -fr conftest* 18856 18857 18858fi 18859echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18860echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18861 fi 18862 18863 CPPFLAGS="$save_CPPFLAGS" 18864 LDFLAGS="$save_LDFLAGS" 18865 LIBS="$save_LIBS" 18866 ;; 18867 esac 18868 18869 case $lt_cv_dlopen_self in 18870 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18871 *) enable_dlopen_self=unknown ;; 18872 esac 18873 18874 case $lt_cv_dlopen_self_static in 18875 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18876 *) enable_dlopen_self_static=unknown ;; 18877 esac 18878fi 18879 18880 18881# The else clause should only fire when bootstrapping the 18882# libtool distribution, otherwise you forgot to ship ltmain.sh 18883# with your package, and you will get complaints that there are 18884# no rules to generate ltmain.sh. 18885if test -f "$ltmain"; then 18886 # See if we are running on zsh, and set the options which allow our commands through 18887 # without removal of \ escapes. 18888 if test -n "${ZSH_VERSION+set}" ; then 18889 setopt NO_GLOB_SUBST 18890 fi 18891 # Now quote all the things that may contain metacharacters while being 18892 # careful not to overquote the AC_SUBSTed values. We take copies of the 18893 # variables and quote the copies for generation of the libtool script. 18894 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18895 SED SHELL STRIP \ 18896 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18897 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18898 deplibs_check_method reload_flag reload_cmds need_locks \ 18899 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18900 lt_cv_sys_global_symbol_to_c_name_address \ 18901 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18902 old_postinstall_cmds old_postuninstall_cmds \ 18903 compiler_GCJ \ 18904 CC_GCJ \ 18905 LD_GCJ \ 18906 lt_prog_compiler_wl_GCJ \ 18907 lt_prog_compiler_pic_GCJ \ 18908 lt_prog_compiler_static_GCJ \ 18909 lt_prog_compiler_no_builtin_flag_GCJ \ 18910 export_dynamic_flag_spec_GCJ \ 18911 thread_safe_flag_spec_GCJ \ 18912 whole_archive_flag_spec_GCJ \ 18913 enable_shared_with_static_runtimes_GCJ \ 18914 old_archive_cmds_GCJ \ 18915 old_archive_from_new_cmds_GCJ \ 18916 predep_objects_GCJ \ 18917 postdep_objects_GCJ \ 18918 predeps_GCJ \ 18919 postdeps_GCJ \ 18920 compiler_lib_search_path_GCJ \ 18921 archive_cmds_GCJ \ 18922 archive_expsym_cmds_GCJ \ 18923 postinstall_cmds_GCJ \ 18924 postuninstall_cmds_GCJ \ 18925 old_archive_from_expsyms_cmds_GCJ \ 18926 allow_undefined_flag_GCJ \ 18927 no_undefined_flag_GCJ \ 18928 export_symbols_cmds_GCJ \ 18929 hardcode_libdir_flag_spec_GCJ \ 18930 hardcode_libdir_flag_spec_ld_GCJ \ 18931 hardcode_libdir_separator_GCJ \ 18932 hardcode_automatic_GCJ \ 18933 module_cmds_GCJ \ 18934 module_expsym_cmds_GCJ \ 18935 lt_cv_prog_compiler_c_o_GCJ \ 18936 exclude_expsyms_GCJ \ 18937 include_expsyms_GCJ; do 18938 18939 case $var in 18940 old_archive_cmds_GCJ | \ 18941 old_archive_from_new_cmds_GCJ | \ 18942 archive_cmds_GCJ | \ 18943 archive_expsym_cmds_GCJ | \ 18944 module_cmds_GCJ | \ 18945 module_expsym_cmds_GCJ | \ 18946 old_archive_from_expsyms_cmds_GCJ | \ 18947 export_symbols_cmds_GCJ | \ 18948 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18949 postinstall_cmds | postuninstall_cmds | \ 18950 old_postinstall_cmds | old_postuninstall_cmds | \ 18951 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18952 # Double-quote double-evaled strings. 18953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18954 ;; 18955 *) 18956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18957 ;; 18958 esac 18959 done 18960 18961 case $lt_echo in 18962 *'\$0 --fallback-echo"') 18963 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18964 ;; 18965 esac 18966 18967cfgfile="$ofile" 18968 18969 cat <<__EOF__ >> "$cfgfile" 18970# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18971 18972# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18973 18974# Shell to use when invoking shell scripts. 18975SHELL=$lt_SHELL 18976 18977# Whether or not to build shared libraries. 18978build_libtool_libs=$enable_shared 18979 18980# Whether or not to build static libraries. 18981build_old_libs=$enable_static 18982 18983# Whether or not to add -lc for building shared libraries. 18984build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18985 18986# Whether or not to disallow shared libs when runtime libs are static 18987allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18988 18989# Whether or not to optimize for fast installation. 18990fast_install=$enable_fast_install 18991 18992# The host system. 18993host_alias=$host_alias 18994host=$host 18995host_os=$host_os 18996 18997# The build system. 18998build_alias=$build_alias 18999build=$build 19000build_os=$build_os 19001 19002# An echo program that does not interpret backslashes. 19003echo=$lt_echo 19004 19005# The archiver. 19006AR=$lt_AR 19007AR_FLAGS=$lt_AR_FLAGS 19008 19009# A C compiler. 19010LTCC=$lt_LTCC 19011 19012# A language-specific compiler. 19013CC=$lt_compiler_GCJ 19014 19015# Is the compiler the GNU C compiler? 19016with_gcc=$GCC_GCJ 19017 19018# An ERE matcher. 19019EGREP=$lt_EGREP 19020 19021# The linker used to build libraries. 19022LD=$lt_LD_GCJ 19023 19024# Whether we need hard or soft links. 19025LN_S=$lt_LN_S 19026 19027# A BSD-compatible nm program. 19028NM=$lt_NM 19029 19030# A symbol stripping program 19031STRIP=$lt_STRIP 19032 19033# Used to examine libraries when file_magic_cmd begins "file" 19034MAGIC_CMD=$MAGIC_CMD 19035 19036# Used on cygwin: DLL creation program. 19037DLLTOOL="$DLLTOOL" 19038 19039# Used on cygwin: object dumper. 19040OBJDUMP="$OBJDUMP" 19041 19042# Used on cygwin: assembler. 19043AS="$AS" 19044 19045# The name of the directory that contains temporary libtool files. 19046objdir=$objdir 19047 19048# How to create reloadable object files. 19049reload_flag=$lt_reload_flag 19050reload_cmds=$lt_reload_cmds 19051 19052# How to pass a linker flag through the compiler. 19053wl=$lt_lt_prog_compiler_wl_GCJ 19054 19055# Object file suffix (normally "o"). 19056objext="$ac_objext" 19057 19058# Old archive suffix (normally "a"). 19059libext="$libext" 19060 19061# Shared library suffix (normally ".so"). 19062shrext_cmds='$shrext_cmds' 19063 19064# Executable file suffix (normally ""). 19065exeext="$exeext" 19066 19067# Additional compiler flags for building library objects. 19068pic_flag=$lt_lt_prog_compiler_pic_GCJ 19069pic_mode=$pic_mode 19070 19071# What is the maximum length of a command? 19072max_cmd_len=$lt_cv_sys_max_cmd_len 19073 19074# Does compiler simultaneously support -c and -o options? 19075compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19076 19077# Must we lock files when doing compilation? 19078need_locks=$lt_need_locks 19079 19080# Do we need the lib prefix for modules? 19081need_lib_prefix=$need_lib_prefix 19082 19083# Do we need a version for libraries? 19084need_version=$need_version 19085 19086# Whether dlopen is supported. 19087dlopen_support=$enable_dlopen 19088 19089# Whether dlopen of programs is supported. 19090dlopen_self=$enable_dlopen_self 19091 19092# Whether dlopen of statically linked programs is supported. 19093dlopen_self_static=$enable_dlopen_self_static 19094 19095# Compiler flag to prevent dynamic linking. 19096link_static_flag=$lt_lt_prog_compiler_static_GCJ 19097 19098# Compiler flag to turn off builtin functions. 19099no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19100 19101# Compiler flag to allow reflexive dlopens. 19102export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19103 19104# Compiler flag to generate shared objects directly from archives. 19105whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19106 19107# Compiler flag to generate thread-safe objects. 19108thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19109 19110# Library versioning type. 19111version_type=$version_type 19112 19113# Format of library name prefix. 19114libname_spec=$lt_libname_spec 19115 19116# List of archive names. First name is the real one, the rest are links. 19117# The last name is the one that the linker finds with -lNAME. 19118library_names_spec=$lt_library_names_spec 19119 19120# The coded name of the library, if different from the real name. 19121soname_spec=$lt_soname_spec 19122 19123# Commands used to build and install an old-style archive. 19124RANLIB=$lt_RANLIB 19125old_archive_cmds=$lt_old_archive_cmds_GCJ 19126old_postinstall_cmds=$lt_old_postinstall_cmds 19127old_postuninstall_cmds=$lt_old_postuninstall_cmds 19128 19129# Create an old-style archive from a shared archive. 19130old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19131 19132# Create a temporary old-style archive to link instead of a shared archive. 19133old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19134 19135# Commands used to build and install a shared archive. 19136archive_cmds=$lt_archive_cmds_GCJ 19137archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19138postinstall_cmds=$lt_postinstall_cmds 19139postuninstall_cmds=$lt_postuninstall_cmds 19140 19141# Commands used to build a loadable module (assumed same as above if empty) 19142module_cmds=$lt_module_cmds_GCJ 19143module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19144 19145# Commands to strip libraries. 19146old_striplib=$lt_old_striplib 19147striplib=$lt_striplib 19148 19149# Dependencies to place before the objects being linked to create a 19150# shared library. 19151predep_objects=$lt_predep_objects_GCJ 19152 19153# Dependencies to place after the objects being linked to create a 19154# shared library. 19155postdep_objects=$lt_postdep_objects_GCJ 19156 19157# Dependencies to place before the objects being linked to create a 19158# shared library. 19159predeps=$lt_predeps_GCJ 19160 19161# Dependencies to place after the objects being linked to create a 19162# shared library. 19163postdeps=$lt_postdeps_GCJ 19164 19165# The library search path used internally by the compiler when linking 19166# a shared library. 19167compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19168 19169# Method to check whether dependent libraries are shared objects. 19170deplibs_check_method=$lt_deplibs_check_method 19171 19172# Command to use when deplibs_check_method == file_magic. 19173file_magic_cmd=$lt_file_magic_cmd 19174 19175# Flag that allows shared libraries with undefined symbols to be built. 19176allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19177 19178# Flag that forces no undefined symbols. 19179no_undefined_flag=$lt_no_undefined_flag_GCJ 19180 19181# Commands used to finish a libtool library installation in a directory. 19182finish_cmds=$lt_finish_cmds 19183 19184# Same as above, but a single script fragment to be evaled but not shown. 19185finish_eval=$lt_finish_eval 19186 19187# Take the output of nm and produce a listing of raw symbols and C names. 19188global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19189 19190# Transform the output of nm in a proper C declaration 19191global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19192 19193# Transform the output of nm in a C name address pair 19194global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19195 19196# This is the shared library runtime path variable. 19197runpath_var=$runpath_var 19198 19199# This is the shared library path variable. 19200shlibpath_var=$shlibpath_var 19201 19202# Is shlibpath searched before the hard-coded library search path? 19203shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19204 19205# How to hardcode a shared library path into an executable. 19206hardcode_action=$hardcode_action_GCJ 19207 19208# Whether we should hardcode library paths into libraries. 19209hardcode_into_libs=$hardcode_into_libs 19210 19211# Flag to hardcode \$libdir into a binary during linking. 19212# This must work even if \$libdir does not exist. 19213hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19214 19215# If ld is used when linking, flag to hardcode \$libdir into 19216# a binary during linking. This must work even if \$libdir does 19217# not exist. 19218hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19219 19220# Whether we need a single -rpath flag with a separated argument. 19221hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19222 19223# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19224# resulting binary. 19225hardcode_direct=$hardcode_direct_GCJ 19226 19227# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19228# resulting binary. 19229hardcode_minus_L=$hardcode_minus_L_GCJ 19230 19231# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19232# the resulting binary. 19233hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19234 19235# Set to yes if building a shared library automatically hardcodes DIR into the library 19236# and all subsequent libraries and executables linked against it. 19237hardcode_automatic=$hardcode_automatic_GCJ 19238 19239# Variables whose values should be saved in libtool wrapper scripts and 19240# restored at relink time. 19241variables_saved_for_relink="$variables_saved_for_relink" 19242 19243# Whether libtool must link a program against all its dependency libraries. 19244link_all_deplibs=$link_all_deplibs_GCJ 19245 19246# Compile-time system search path for libraries 19247sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19248 19249# Run-time system search path for libraries 19250sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19251 19252# Fix the shell variable \$srcfile for the compiler. 19253fix_srcfile_path="$fix_srcfile_path_GCJ" 19254 19255# Set to yes if exported symbols are required. 19256always_export_symbols=$always_export_symbols_GCJ 19257 19258# The commands to list exported symbols. 19259export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19260 19261# The commands to extract the exported symbol list from a shared archive. 19262extract_expsyms_cmds=$lt_extract_expsyms_cmds 19263 19264# Symbols that should not be listed in the preloaded symbols. 19265exclude_expsyms=$lt_exclude_expsyms_GCJ 19266 19267# Symbols that must always be exported. 19268include_expsyms=$lt_include_expsyms_GCJ 19269 19270# ### END LIBTOOL TAG CONFIG: $tagname 19271 19272__EOF__ 19273 19274 19275else 19276 # If there is no Makefile yet, we rely on a make rule to execute 19277 # `config.status --recheck' to rerun these tests and create the 19278 # libtool script then. 19279 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19280 if test -f "$ltmain_in"; then 19281 test -f Makefile && make "$ltmain" 19282 fi 19283fi 19284 19285 19286ac_ext=c 19287ac_cpp='$CPP $CPPFLAGS' 19288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19290ac_compiler_gnu=$ac_cv_c_compiler_gnu 19291 19292CC="$lt_save_CC" 19293 19294 else 19295 tagname="" 19296 fi 19297 ;; 19298 19299 RC) 19300 19301 19302 19303# Source file extension for RC test sources. 19304ac_ext=rc 19305 19306# Object file extension for compiled RC test sources. 19307objext=o 19308objext_RC=$objext 19309 19310# Code to be used in simple compile tests 19311lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19312 19313# Code to be used in simple link tests 19314lt_simple_link_test_code="$lt_simple_compile_test_code" 19315 19316# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19317 19318# If no C compiler was specified, use CC. 19319LTCC=${LTCC-"$CC"} 19320 19321# Allow CC to be a program name with arguments. 19322compiler=$CC 19323 19324 19325# save warnings/boilerplate of simple test code 19326ac_outfile=conftest.$ac_objext 19327printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19328eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19329_lt_compiler_boilerplate=`cat conftest.err` 19330$rm conftest* 19331 19332ac_outfile=conftest.$ac_objext 19333printf "$lt_simple_link_test_code" >conftest.$ac_ext 19334eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19335_lt_linker_boilerplate=`cat conftest.err` 19336$rm conftest* 19337 19338 19339# Allow CC to be a program name with arguments. 19340lt_save_CC="$CC" 19341CC=${RC-"windres"} 19342compiler=$CC 19343compiler_RC=$CC 19344for cc_temp in $compiler""; do 19345 case $cc_temp in 19346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19348 \-*) ;; 19349 *) break;; 19350 esac 19351done 19352cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19353 19354lt_cv_prog_compiler_c_o_RC=yes 19355 19356# The else clause should only fire when bootstrapping the 19357# libtool distribution, otherwise you forgot to ship ltmain.sh 19358# with your package, and you will get complaints that there are 19359# no rules to generate ltmain.sh. 19360if test -f "$ltmain"; then 19361 # See if we are running on zsh, and set the options which allow our commands through 19362 # without removal of \ escapes. 19363 if test -n "${ZSH_VERSION+set}" ; then 19364 setopt NO_GLOB_SUBST 19365 fi 19366 # Now quote all the things that may contain metacharacters while being 19367 # careful not to overquote the AC_SUBSTed values. We take copies of the 19368 # variables and quote the copies for generation of the libtool script. 19369 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19370 SED SHELL STRIP \ 19371 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19372 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19373 deplibs_check_method reload_flag reload_cmds need_locks \ 19374 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19375 lt_cv_sys_global_symbol_to_c_name_address \ 19376 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19377 old_postinstall_cmds old_postuninstall_cmds \ 19378 compiler_RC \ 19379 CC_RC \ 19380 LD_RC \ 19381 lt_prog_compiler_wl_RC \ 19382 lt_prog_compiler_pic_RC \ 19383 lt_prog_compiler_static_RC \ 19384 lt_prog_compiler_no_builtin_flag_RC \ 19385 export_dynamic_flag_spec_RC \ 19386 thread_safe_flag_spec_RC \ 19387 whole_archive_flag_spec_RC \ 19388 enable_shared_with_static_runtimes_RC \ 19389 old_archive_cmds_RC \ 19390 old_archive_from_new_cmds_RC \ 19391 predep_objects_RC \ 19392 postdep_objects_RC \ 19393 predeps_RC \ 19394 postdeps_RC \ 19395 compiler_lib_search_path_RC \ 19396 archive_cmds_RC \ 19397 archive_expsym_cmds_RC \ 19398 postinstall_cmds_RC \ 19399 postuninstall_cmds_RC \ 19400 old_archive_from_expsyms_cmds_RC \ 19401 allow_undefined_flag_RC \ 19402 no_undefined_flag_RC \ 19403 export_symbols_cmds_RC \ 19404 hardcode_libdir_flag_spec_RC \ 19405 hardcode_libdir_flag_spec_ld_RC \ 19406 hardcode_libdir_separator_RC \ 19407 hardcode_automatic_RC \ 19408 module_cmds_RC \ 19409 module_expsym_cmds_RC \ 19410 lt_cv_prog_compiler_c_o_RC \ 19411 exclude_expsyms_RC \ 19412 include_expsyms_RC; do 19413 19414 case $var in 19415 old_archive_cmds_RC | \ 19416 old_archive_from_new_cmds_RC | \ 19417 archive_cmds_RC | \ 19418 archive_expsym_cmds_RC | \ 19419 module_cmds_RC | \ 19420 module_expsym_cmds_RC | \ 19421 old_archive_from_expsyms_cmds_RC | \ 19422 export_symbols_cmds_RC | \ 19423 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19424 postinstall_cmds | postuninstall_cmds | \ 19425 old_postinstall_cmds | old_postuninstall_cmds | \ 19426 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19427 # Double-quote double-evaled strings. 19428 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19429 ;; 19430 *) 19431 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19432 ;; 19433 esac 19434 done 19435 19436 case $lt_echo in 19437 *'\$0 --fallback-echo"') 19438 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19439 ;; 19440 esac 19441 19442cfgfile="$ofile" 19443 19444 cat <<__EOF__ >> "$cfgfile" 19445# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19446 19447# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19448 19449# Shell to use when invoking shell scripts. 19450SHELL=$lt_SHELL 19451 19452# Whether or not to build shared libraries. 19453build_libtool_libs=$enable_shared 19454 19455# Whether or not to build static libraries. 19456build_old_libs=$enable_static 19457 19458# Whether or not to add -lc for building shared libraries. 19459build_libtool_need_lc=$archive_cmds_need_lc_RC 19460 19461# Whether or not to disallow shared libs when runtime libs are static 19462allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19463 19464# Whether or not to optimize for fast installation. 19465fast_install=$enable_fast_install 19466 19467# The host system. 19468host_alias=$host_alias 19469host=$host 19470host_os=$host_os 19471 19472# The build system. 19473build_alias=$build_alias 19474build=$build 19475build_os=$build_os 19476 19477# An echo program that does not interpret backslashes. 19478echo=$lt_echo 19479 19480# The archiver. 19481AR=$lt_AR 19482AR_FLAGS=$lt_AR_FLAGS 19483 19484# A C compiler. 19485LTCC=$lt_LTCC 19486 19487# A language-specific compiler. 19488CC=$lt_compiler_RC 19489 19490# Is the compiler the GNU C compiler? 19491with_gcc=$GCC_RC 19492 19493# An ERE matcher. 19494EGREP=$lt_EGREP 19495 19496# The linker used to build libraries. 19497LD=$lt_LD_RC 19498 19499# Whether we need hard or soft links. 19500LN_S=$lt_LN_S 19501 19502# A BSD-compatible nm program. 19503NM=$lt_NM 19504 19505# A symbol stripping program 19506STRIP=$lt_STRIP 19507 19508# Used to examine libraries when file_magic_cmd begins "file" 19509MAGIC_CMD=$MAGIC_CMD 19510 19511# Used on cygwin: DLL creation program. 19512DLLTOOL="$DLLTOOL" 19513 19514# Used on cygwin: object dumper. 19515OBJDUMP="$OBJDUMP" 19516 19517# Used on cygwin: assembler. 19518AS="$AS" 19519 19520# The name of the directory that contains temporary libtool files. 19521objdir=$objdir 19522 19523# How to create reloadable object files. 19524reload_flag=$lt_reload_flag 19525reload_cmds=$lt_reload_cmds 19526 19527# How to pass a linker flag through the compiler. 19528wl=$lt_lt_prog_compiler_wl_RC 19529 19530# Object file suffix (normally "o"). 19531objext="$ac_objext" 19532 19533# Old archive suffix (normally "a"). 19534libext="$libext" 19535 19536# Shared library suffix (normally ".so"). 19537shrext_cmds='$shrext_cmds' 19538 19539# Executable file suffix (normally ""). 19540exeext="$exeext" 19541 19542# Additional compiler flags for building library objects. 19543pic_flag=$lt_lt_prog_compiler_pic_RC 19544pic_mode=$pic_mode 19545 19546# What is the maximum length of a command? 19547max_cmd_len=$lt_cv_sys_max_cmd_len 19548 19549# Does compiler simultaneously support -c and -o options? 19550compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19551 19552# Must we lock files when doing compilation? 19553need_locks=$lt_need_locks 19554 19555# Do we need the lib prefix for modules? 19556need_lib_prefix=$need_lib_prefix 19557 19558# Do we need a version for libraries? 19559need_version=$need_version 19560 19561# Whether dlopen is supported. 19562dlopen_support=$enable_dlopen 19563 19564# Whether dlopen of programs is supported. 19565dlopen_self=$enable_dlopen_self 19566 19567# Whether dlopen of statically linked programs is supported. 19568dlopen_self_static=$enable_dlopen_self_static 19569 19570# Compiler flag to prevent dynamic linking. 19571link_static_flag=$lt_lt_prog_compiler_static_RC 19572 19573# Compiler flag to turn off builtin functions. 19574no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19575 19576# Compiler flag to allow reflexive dlopens. 19577export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19578 19579# Compiler flag to generate shared objects directly from archives. 19580whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19581 19582# Compiler flag to generate thread-safe objects. 19583thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19584 19585# Library versioning type. 19586version_type=$version_type 19587 19588# Format of library name prefix. 19589libname_spec=$lt_libname_spec 19590 19591# List of archive names. First name is the real one, the rest are links. 19592# The last name is the one that the linker finds with -lNAME. 19593library_names_spec=$lt_library_names_spec 19594 19595# The coded name of the library, if different from the real name. 19596soname_spec=$lt_soname_spec 19597 19598# Commands used to build and install an old-style archive. 19599RANLIB=$lt_RANLIB 19600old_archive_cmds=$lt_old_archive_cmds_RC 19601old_postinstall_cmds=$lt_old_postinstall_cmds 19602old_postuninstall_cmds=$lt_old_postuninstall_cmds 19603 19604# Create an old-style archive from a shared archive. 19605old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19606 19607# Create a temporary old-style archive to link instead of a shared archive. 19608old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19609 19610# Commands used to build and install a shared archive. 19611archive_cmds=$lt_archive_cmds_RC 19612archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19613postinstall_cmds=$lt_postinstall_cmds 19614postuninstall_cmds=$lt_postuninstall_cmds 19615 19616# Commands used to build a loadable module (assumed same as above if empty) 19617module_cmds=$lt_module_cmds_RC 19618module_expsym_cmds=$lt_module_expsym_cmds_RC 19619 19620# Commands to strip libraries. 19621old_striplib=$lt_old_striplib 19622striplib=$lt_striplib 19623 19624# Dependencies to place before the objects being linked to create a 19625# shared library. 19626predep_objects=$lt_predep_objects_RC 19627 19628# Dependencies to place after the objects being linked to create a 19629# shared library. 19630postdep_objects=$lt_postdep_objects_RC 19631 19632# Dependencies to place before the objects being linked to create a 19633# shared library. 19634predeps=$lt_predeps_RC 19635 19636# Dependencies to place after the objects being linked to create a 19637# shared library. 19638postdeps=$lt_postdeps_RC 19639 19640# The library search path used internally by the compiler when linking 19641# a shared library. 19642compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19643 19644# Method to check whether dependent libraries are shared objects. 19645deplibs_check_method=$lt_deplibs_check_method 19646 19647# Command to use when deplibs_check_method == file_magic. 19648file_magic_cmd=$lt_file_magic_cmd 19649 19650# Flag that allows shared libraries with undefined symbols to be built. 19651allow_undefined_flag=$lt_allow_undefined_flag_RC 19652 19653# Flag that forces no undefined symbols. 19654no_undefined_flag=$lt_no_undefined_flag_RC 19655 19656# Commands used to finish a libtool library installation in a directory. 19657finish_cmds=$lt_finish_cmds 19658 19659# Same as above, but a single script fragment to be evaled but not shown. 19660finish_eval=$lt_finish_eval 19661 19662# Take the output of nm and produce a listing of raw symbols and C names. 19663global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19664 19665# Transform the output of nm in a proper C declaration 19666global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19667 19668# Transform the output of nm in a C name address pair 19669global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19670 19671# This is the shared library runtime path variable. 19672runpath_var=$runpath_var 19673 19674# This is the shared library path variable. 19675shlibpath_var=$shlibpath_var 19676 19677# Is shlibpath searched before the hard-coded library search path? 19678shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19679 19680# How to hardcode a shared library path into an executable. 19681hardcode_action=$hardcode_action_RC 19682 19683# Whether we should hardcode library paths into libraries. 19684hardcode_into_libs=$hardcode_into_libs 19685 19686# Flag to hardcode \$libdir into a binary during linking. 19687# This must work even if \$libdir does not exist. 19688hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19689 19690# If ld is used when linking, flag to hardcode \$libdir into 19691# a binary during linking. This must work even if \$libdir does 19692# not exist. 19693hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19694 19695# Whether we need a single -rpath flag with a separated argument. 19696hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19697 19698# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19699# resulting binary. 19700hardcode_direct=$hardcode_direct_RC 19701 19702# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19703# resulting binary. 19704hardcode_minus_L=$hardcode_minus_L_RC 19705 19706# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19707# the resulting binary. 19708hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19709 19710# Set to yes if building a shared library automatically hardcodes DIR into the library 19711# and all subsequent libraries and executables linked against it. 19712hardcode_automatic=$hardcode_automatic_RC 19713 19714# Variables whose values should be saved in libtool wrapper scripts and 19715# restored at relink time. 19716variables_saved_for_relink="$variables_saved_for_relink" 19717 19718# Whether libtool must link a program against all its dependency libraries. 19719link_all_deplibs=$link_all_deplibs_RC 19720 19721# Compile-time system search path for libraries 19722sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19723 19724# Run-time system search path for libraries 19725sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19726 19727# Fix the shell variable \$srcfile for the compiler. 19728fix_srcfile_path="$fix_srcfile_path_RC" 19729 19730# Set to yes if exported symbols are required. 19731always_export_symbols=$always_export_symbols_RC 19732 19733# The commands to list exported symbols. 19734export_symbols_cmds=$lt_export_symbols_cmds_RC 19735 19736# The commands to extract the exported symbol list from a shared archive. 19737extract_expsyms_cmds=$lt_extract_expsyms_cmds 19738 19739# Symbols that should not be listed in the preloaded symbols. 19740exclude_expsyms=$lt_exclude_expsyms_RC 19741 19742# Symbols that must always be exported. 19743include_expsyms=$lt_include_expsyms_RC 19744 19745# ### END LIBTOOL TAG CONFIG: $tagname 19746 19747__EOF__ 19748 19749 19750else 19751 # If there is no Makefile yet, we rely on a make rule to execute 19752 # `config.status --recheck' to rerun these tests and create the 19753 # libtool script then. 19754 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19755 if test -f "$ltmain_in"; then 19756 test -f Makefile && make "$ltmain" 19757 fi 19758fi 19759 19760 19761ac_ext=c 19762ac_cpp='$CPP $CPPFLAGS' 19763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19765ac_compiler_gnu=$ac_cv_c_compiler_gnu 19766 19767CC="$lt_save_CC" 19768 19769 ;; 19770 19771 *) 19772 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19773echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19774 { (exit 1); exit 1; }; } 19775 ;; 19776 esac 19777 19778 # Append the new tag name to the list of available tags. 19779 if test -n "$tagname" ; then 19780 available_tags="$available_tags $tagname" 19781 fi 19782 fi 19783 done 19784 IFS="$lt_save_ifs" 19785 19786 # Now substitute the updated list of available tags. 19787 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19788 mv "${ofile}T" "$ofile" 19789 chmod +x "$ofile" 19790 else 19791 rm -f "${ofile}T" 19792 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19793echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19794 { (exit 1); exit 1; }; } 19795 fi 19796fi 19797 19798 19799 19800# This can be used to rebuild libtool when needed 19801LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19802 19803# Always use our own libtool. 19804LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19805 19806# Prevent multiple expansion 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832for ac_header in alloca.h float.h 19833do 19834as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19835if eval "test \"\${$as_ac_Header+set}\" = set"; then 19836 echo "$as_me:$LINENO: checking for $ac_header" >&5 19837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19838if eval "test \"\${$as_ac_Header+set}\" = set"; then 19839 echo $ECHO_N "(cached) $ECHO_C" >&6 19840fi 19841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19843else 19844 # Is the header compilable? 19845echo "$as_me:$LINENO: checking $ac_header usability" >&5 19846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19847cat >conftest.$ac_ext <<_ACEOF 19848/* confdefs.h. */ 19849_ACEOF 19850cat confdefs.h >>conftest.$ac_ext 19851cat >>conftest.$ac_ext <<_ACEOF 19852/* end confdefs.h. */ 19853$ac_includes_default 19854#include <$ac_header> 19855_ACEOF 19856rm -f conftest.$ac_objext 19857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19858 (eval $ac_compile) 2>conftest.er1 19859 ac_status=$? 19860 grep -v '^ *+' conftest.er1 >conftest.err 19861 rm -f conftest.er1 19862 cat conftest.err >&5 19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19864 (exit $ac_status); } && 19865 { ac_try='test -z "$ac_c_werror_flag" 19866 || test ! -s conftest.err' 19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19868 (eval $ac_try) 2>&5 19869 ac_status=$? 19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19871 (exit $ac_status); }; } && 19872 { ac_try='test -s conftest.$ac_objext' 19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19874 (eval $ac_try) 2>&5 19875 ac_status=$? 19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19877 (exit $ac_status); }; }; then 19878 ac_header_compiler=yes 19879else 19880 echo "$as_me: failed program was:" >&5 19881sed 's/^/| /' conftest.$ac_ext >&5 19882 19883ac_header_compiler=no 19884fi 19885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19887echo "${ECHO_T}$ac_header_compiler" >&6 19888 19889# Is the header present? 19890echo "$as_me:$LINENO: checking $ac_header presence" >&5 19891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19892cat >conftest.$ac_ext <<_ACEOF 19893/* confdefs.h. */ 19894_ACEOF 19895cat confdefs.h >>conftest.$ac_ext 19896cat >>conftest.$ac_ext <<_ACEOF 19897/* end confdefs.h. */ 19898#include <$ac_header> 19899_ACEOF 19900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19902 ac_status=$? 19903 grep -v '^ *+' conftest.er1 >conftest.err 19904 rm -f conftest.er1 19905 cat conftest.err >&5 19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19907 (exit $ac_status); } >/dev/null; then 19908 if test -s conftest.err; then 19909 ac_cpp_err=$ac_c_preproc_warn_flag 19910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19911 else 19912 ac_cpp_err= 19913 fi 19914else 19915 ac_cpp_err=yes 19916fi 19917if test -z "$ac_cpp_err"; then 19918 ac_header_preproc=yes 19919else 19920 echo "$as_me: failed program was:" >&5 19921sed 's/^/| /' conftest.$ac_ext >&5 19922 19923 ac_header_preproc=no 19924fi 19925rm -f conftest.err conftest.$ac_ext 19926echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19927echo "${ECHO_T}$ac_header_preproc" >&6 19928 19929# So? What about this header? 19930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19931 yes:no: ) 19932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19936 ac_header_preproc=yes 19937 ;; 19938 no:yes:* ) 19939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19951 ( 19952 cat <<\_ASBOX 19953## ------------------------------------------ ## 19954## Report this to the AC_PACKAGE_NAME lists. ## 19955## ------------------------------------------ ## 19956_ASBOX 19957 ) | 19958 sed "s/^/$as_me: WARNING: /" >&2 19959 ;; 19960esac 19961echo "$as_me:$LINENO: checking for $ac_header" >&5 19962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19963if eval "test \"\${$as_ac_Header+set}\" = set"; then 19964 echo $ECHO_N "(cached) $ECHO_C" >&6 19965else 19966 eval "$as_ac_Header=\$ac_header_preproc" 19967fi 19968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19970 19971fi 19972if test `eval echo '${'$as_ac_Header'}'` = yes; then 19973 cat >>confdefs.h <<_ACEOF 19974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19975_ACEOF 19976 19977fi 19978 19979done 19980 19981 19982 19983 ac_config_headers="$ac_config_headers config.h" 19984 19985 ac_config_files="$ac_config_files Makefile popt-config" 19986 19987 ac_config_commands="$ac_config_commands adjustment" 19988 19989cat >confcache <<\_ACEOF 19990# This file is a shell script that caches the results of configure 19991# tests run on this system so they can be shared between configure 19992# scripts and configure runs, see configure's option --config-cache. 19993# It is not useful on other systems. If it contains results you don't 19994# want to keep, you may remove or edit it. 19995# 19996# config.status only pays attention to the cache file if you give it 19997# the --recheck option to rerun configure. 19998# 19999# `ac_cv_env_foo' variables (set or unset) will be overridden when 20000# loading this file, other *unset* `ac_cv_foo' will be assigned the 20001# following values. 20002 20003_ACEOF 20004 20005# The following way of writing the cache mishandles newlines in values, 20006# but we know of no workaround that is simple, portable, and efficient. 20007# So, don't put newlines in cache variables' values. 20008# Ultrix sh set writes to stderr and can't be redirected directly, 20009# and sets the high bit in the cache file unless we assign to the vars. 20010{ 20011 (set) 2>&1 | 20012 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20013 *ac_space=\ *) 20014 # `set' does not quote correctly, so add quotes (double-quote 20015 # substitution turns \\\\ into \\, and sed turns \\ into \). 20016 sed -n \ 20017 "s/'/'\\\\''/g; 20018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20019 ;; 20020 *) 20021 # `set' quotes correctly as required by POSIX, so do not add quotes. 20022 sed -n \ 20023 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20024 ;; 20025 esac; 20026} | 20027 sed ' 20028 t clear 20029 : clear 20030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20031 t end 20032 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20033 : end' >>confcache 20034if diff $cache_file confcache >/dev/null 2>&1; then :; else 20035 if test -w $cache_file; then 20036 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20037 cat confcache >$cache_file 20038 else 20039 echo "not updating unwritable cache $cache_file" 20040 fi 20041fi 20042rm -f confcache 20043 20044test "x$prefix" = xNONE && prefix=$ac_default_prefix 20045# Let make expand exec_prefix. 20046test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20047 20048# VPATH may cause trouble with some makes, so we remove $(srcdir), 20049# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20050# trailing colons and then remove the whole line if VPATH becomes empty 20051# (actually we leave an empty line to preserve line numbers). 20052if test "x$srcdir" = x.; then 20053 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20054s/:*\$(srcdir):*/:/; 20055s/:*\${srcdir}:*/:/; 20056s/:*@srcdir@:*/:/; 20057s/^\([^=]*=[ ]*\):*/\1/; 20058s/:*$//; 20059s/^[^=]*=[ ]*$//; 20060}' 20061fi 20062 20063DEFS=-DHAVE_CONFIG_H 20064 20065ac_libobjs= 20066ac_ltlibobjs= 20067for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20068 # 1. Remove the extension, and $U if already installed. 20069 ac_i=`echo "$ac_i" | 20070 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20071 # 2. Add them. 20072 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20073 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20074done 20075LIBOBJS=$ac_libobjs 20076 20077LTLIBOBJS=$ac_ltlibobjs 20078 20079 20080 20081: ${CONFIG_STATUS=./config.status} 20082ac_clean_files_save=$ac_clean_files 20083ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20084{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20085echo "$as_me: creating $CONFIG_STATUS" >&6;} 20086cat >$CONFIG_STATUS <<_ACEOF 20087#! $SHELL 20088# Generated by $as_me. 20089# Run this file to recreate the current configuration. 20090# Compiler output produced by configure, useful for debugging 20091# configure, is in config.log if it exists. 20092 20093debug=false 20094ac_cs_recheck=false 20095ac_cs_silent=false 20096SHELL=\${CONFIG_SHELL-$SHELL} 20097_ACEOF 20098 20099cat >>$CONFIG_STATUS <<\_ACEOF 20100## --------------------- ## 20101## M4sh Initialization. ## 20102## --------------------- ## 20103 20104# Be Bourne compatible 20105if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20106 emulate sh 20107 NULLCMD=: 20108 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20109 # is contrary to our usage. Disable this feature. 20110 alias -g '${1+"$@"}'='"$@"' 20111elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20112 set -o posix 20113fi 20114DUALCASE=1; export DUALCASE # for MKS sh 20115 20116# Support unset when possible. 20117if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20118 as_unset=unset 20119else 20120 as_unset=false 20121fi 20122 20123 20124# Work around bugs in pre-3.0 UWIN ksh. 20125$as_unset ENV MAIL MAILPATH 20126PS1='$ ' 20127PS2='> ' 20128PS4='+ ' 20129 20130# NLS nuisances. 20131for as_var in \ 20132 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20133 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20134 LC_TELEPHONE LC_TIME 20135do 20136 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20137 eval $as_var=C; export $as_var 20138 else 20139 $as_unset $as_var 20140 fi 20141done 20142 20143# Required to use basename. 20144if expr a : '\(a\)' >/dev/null 2>&1; then 20145 as_expr=expr 20146else 20147 as_expr=false 20148fi 20149 20150if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20151 as_basename=basename 20152else 20153 as_basename=false 20154fi 20155 20156 20157# Name of the executable. 20158as_me=`$as_basename "$0" || 20159$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20160 X"$0" : 'X\(//\)$' \| \ 20161 X"$0" : 'X\(/\)$' \| \ 20162 . : '\(.\)' 2>/dev/null || 20163echo X/"$0" | 20164 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20165 /^X\/\(\/\/\)$/{ s//\1/; q; } 20166 /^X\/\(\/\).*/{ s//\1/; q; } 20167 s/.*/./; q'` 20168 20169 20170# PATH needs CR, and LINENO needs CR and PATH. 20171# Avoid depending upon Character Ranges. 20172as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20173as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20174as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20175as_cr_digits='0123456789' 20176as_cr_alnum=$as_cr_Letters$as_cr_digits 20177 20178# The user is always right. 20179if test "${PATH_SEPARATOR+set}" != set; then 20180 echo "#! /bin/sh" >conf$$.sh 20181 echo "exit 0" >>conf$$.sh 20182 chmod +x conf$$.sh 20183 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20184 PATH_SEPARATOR=';' 20185 else 20186 PATH_SEPARATOR=: 20187 fi 20188 rm -f conf$$.sh 20189fi 20190 20191 20192 as_lineno_1=$LINENO 20193 as_lineno_2=$LINENO 20194 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20195 test "x$as_lineno_1" != "x$as_lineno_2" && 20196 test "x$as_lineno_3" = "x$as_lineno_2" || { 20197 # Find who we are. Look in the path if we contain no path at all 20198 # relative or not. 20199 case $0 in 20200 *[\\/]* ) as_myself=$0 ;; 20201 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20202for as_dir in $PATH 20203do 20204 IFS=$as_save_IFS 20205 test -z "$as_dir" && as_dir=. 20206 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20207done 20208 20209 ;; 20210 esac 20211 # We did not find ourselves, most probably we were run as `sh COMMAND' 20212 # in which case we are not to be found in the path. 20213 if test "x$as_myself" = x; then 20214 as_myself=$0 20215 fi 20216 if test ! -f "$as_myself"; then 20217 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20218echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20219 { (exit 1); exit 1; }; } 20220 fi 20221 case $CONFIG_SHELL in 20222 '') 20223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20225do 20226 IFS=$as_save_IFS 20227 test -z "$as_dir" && as_dir=. 20228 for as_base in sh bash ksh sh5; do 20229 case $as_dir in 20230 /*) 20231 if ("$as_dir/$as_base" -c ' 20232 as_lineno_1=$LINENO 20233 as_lineno_2=$LINENO 20234 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20235 test "x$as_lineno_1" != "x$as_lineno_2" && 20236 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20237 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20238 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20239 CONFIG_SHELL=$as_dir/$as_base 20240 export CONFIG_SHELL 20241 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20242 fi;; 20243 esac 20244 done 20245done 20246;; 20247 esac 20248 20249 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20250 # uniformly replaced by the line number. The first 'sed' inserts a 20251 # line-number line before each line; the second 'sed' does the real 20252 # work. The second script uses 'N' to pair each line-number line 20253 # with the numbered line, and appends trailing '-' during 20254 # substitution so that $LINENO is not a special case at line end. 20255 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20256 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20257 sed '=' <$as_myself | 20258 sed ' 20259 N 20260 s,$,-, 20261 : loop 20262 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20263 t loop 20264 s,-$,, 20265 s,^['$as_cr_digits']*\n,, 20266 ' >$as_me.lineno && 20267 chmod +x $as_me.lineno || 20268 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20269echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20270 { (exit 1); exit 1; }; } 20271 20272 # Don't try to exec as it changes $[0], causing all sort of problems 20273 # (the dirname of $[0] is not the place where we might find the 20274 # original and so on. Autoconf is especially sensible to this). 20275 . ./$as_me.lineno 20276 # Exit status is that of the last command. 20277 exit 20278} 20279 20280 20281case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20282 *c*,-n*) ECHO_N= ECHO_C=' 20283' ECHO_T=' ' ;; 20284 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20285 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20286esac 20287 20288if expr a : '\(a\)' >/dev/null 2>&1; then 20289 as_expr=expr 20290else 20291 as_expr=false 20292fi 20293 20294rm -f conf$$ conf$$.exe conf$$.file 20295echo >conf$$.file 20296if ln -s conf$$.file conf$$ 2>/dev/null; then 20297 # We could just check for DJGPP; but this test a) works b) is more generic 20298 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20299 if test -f conf$$.exe; then 20300 # Don't use ln at all; we don't have any links 20301 as_ln_s='cp -p' 20302 else 20303 as_ln_s='ln -s' 20304 fi 20305elif ln conf$$.file conf$$ 2>/dev/null; then 20306 as_ln_s=ln 20307else 20308 as_ln_s='cp -p' 20309fi 20310rm -f conf$$ conf$$.exe conf$$.file 20311 20312if mkdir -p . 2>/dev/null; then 20313 as_mkdir_p=: 20314else 20315 test -d ./-p && rmdir ./-p 20316 as_mkdir_p=false 20317fi 20318 20319as_executable_p="test -f" 20320 20321# Sed expression to map a string onto a valid CPP name. 20322as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20323 20324# Sed expression to map a string onto a valid variable name. 20325as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20326 20327 20328# IFS 20329# We need space, tab and new line, in precisely that order. 20330as_nl=' 20331' 20332IFS=" $as_nl" 20333 20334# CDPATH. 20335$as_unset CDPATH 20336 20337exec 6>&1 20338 20339# Open the log real soon, to keep \$[0] and so on meaningful, and to 20340# report actual input values of CONFIG_FILES etc. instead of their 20341# values after options handling. Logging --version etc. is OK. 20342exec 5>>config.log 20343{ 20344 echo 20345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20346## Running $as_me. ## 20347_ASBOX 20348} >&5 20349cat >&5 <<_CSEOF 20350 20351This file was extended by $as_me, which was 20352generated by GNU Autoconf 2.59 (OpenPKG-CURRENT). Invocation command line was 20353 20354 CONFIG_FILES = $CONFIG_FILES 20355 CONFIG_HEADERS = $CONFIG_HEADERS 20356 CONFIG_LINKS = $CONFIG_LINKS 20357 CONFIG_COMMANDS = $CONFIG_COMMANDS 20358 $ $0 $@ 20359 20360_CSEOF 20361echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20362echo >&5 20363_ACEOF 20364 20365# Files that config.status was made for. 20366if test -n "$ac_config_files"; then 20367 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20368fi 20369 20370if test -n "$ac_config_headers"; then 20371 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20372fi 20373 20374if test -n "$ac_config_links"; then 20375 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20376fi 20377 20378if test -n "$ac_config_commands"; then 20379 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20380fi 20381 20382cat >>$CONFIG_STATUS <<\_ACEOF 20383 20384ac_cs_usage="\ 20385\`$as_me' instantiates files from templates according to the 20386current configuration. 20387 20388Usage: $0 [OPTIONS] [FILE]... 20389 20390 -h, --help print this help, then exit 20391 -V, --version print version number, then exit 20392 -q, --quiet do not print progress messages 20393 -d, --debug don't remove temporary files 20394 --recheck update $as_me by reconfiguring in the same conditions 20395 --file=FILE[:TEMPLATE] 20396 instantiate the configuration file FILE 20397 --header=FILE[:TEMPLATE] 20398 instantiate the configuration header FILE 20399 20400Configuration files: 20401$config_files 20402 20403Configuration headers: 20404$config_headers 20405 20406Configuration commands: 20407$config_commands 20408 20409Report bugs to <bug-autoconf@gnu.org>." 20410_ACEOF 20411 20412cat >>$CONFIG_STATUS <<_ACEOF 20413ac_cs_version="\\ 20414config.status 20415configured by $0, generated by GNU Autoconf 2.59 (OpenPKG-CURRENT), 20416 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20417 20418Copyright (C) 2003 Free Software Foundation, Inc. 20419This config.status script is free software; the Free Software Foundation 20420gives unlimited permission to copy, distribute and modify it." 20421srcdir=$srcdir 20422_ACEOF 20423 20424cat >>$CONFIG_STATUS <<\_ACEOF 20425# If no file are specified by the user, then we need to provide default 20426# value. By we need to know if files were specified by the user. 20427ac_need_defaults=: 20428while test $# != 0 20429do 20430 case $1 in 20431 --*=*) 20432 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20433 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20434 ac_shift=: 20435 ;; 20436 -*) 20437 ac_option=$1 20438 ac_optarg=$2 20439 ac_shift=shift 20440 ;; 20441 *) # This is not an option, so the user has probably given explicit 20442 # arguments. 20443 ac_option=$1 20444 ac_need_defaults=false;; 20445 esac 20446 20447 case $ac_option in 20448 # Handling of the options. 20449_ACEOF 20450cat >>$CONFIG_STATUS <<\_ACEOF 20451 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20452 ac_cs_recheck=: ;; 20453 --version | --vers* | -V ) 20454 echo "$ac_cs_version"; exit 0 ;; 20455 --he | --h) 20456 # Conflict between --help and --header 20457 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20458Try \`$0 --help' for more information." >&5 20459echo "$as_me: error: ambiguous option: $1 20460Try \`$0 --help' for more information." >&2;} 20461 { (exit 1); exit 1; }; };; 20462 --help | --hel | -h ) 20463 echo "$ac_cs_usage"; exit 0 ;; 20464 --debug | --d* | -d ) 20465 debug=: ;; 20466 --file | --fil | --fi | --f ) 20467 $ac_shift 20468 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20469 ac_need_defaults=false;; 20470 --header | --heade | --head | --hea ) 20471 $ac_shift 20472 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20473 ac_need_defaults=false;; 20474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20475 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20476 ac_cs_silent=: ;; 20477 20478 # This is an error. 20479 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20480Try \`$0 --help' for more information." >&5 20481echo "$as_me: error: unrecognized option: $1 20482Try \`$0 --help' for more information." >&2;} 20483 { (exit 1); exit 1; }; } ;; 20484 20485 *) ac_config_targets="$ac_config_targets $1" ;; 20486 20487 esac 20488 shift 20489done 20490 20491ac_configure_extra_args= 20492 20493if $ac_cs_silent; then 20494 exec 6>/dev/null 20495 ac_configure_extra_args="$ac_configure_extra_args --silent" 20496fi 20497 20498_ACEOF 20499cat >>$CONFIG_STATUS <<_ACEOF 20500if \$ac_cs_recheck; then 20501 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20502 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20503fi 20504 20505_ACEOF 20506 20507 20508 20509 20510 20511cat >>$CONFIG_STATUS <<\_ACEOF 20512for ac_config_target in $ac_config_targets 20513do 20514 case "$ac_config_target" in 20515 # Handling of arguments. 20516 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20517 "popt-config" ) CONFIG_FILES="$CONFIG_FILES popt-config" ;; 20518 "adjustment" ) CONFIG_COMMANDS="$CONFIG_COMMANDS adjustment" ;; 20519 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20520 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20521echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20522 { (exit 1); exit 1; }; };; 20523 esac 20524done 20525 20526# If the user did not use the arguments to specify the items to instantiate, 20527# then the envvar interface is used. Set only those that are not. 20528# We use the long form for the default assignment because of an extremely 20529# bizarre bug on SunOS 4.1.3. 20530if $ac_need_defaults; then 20531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20534fi 20535 20536# Have a temporary directory for convenience. Make it in the build tree 20537# simply because there is no reason to put it here, and in addition, 20538# creating and moving files from /tmp can sometimes cause problems. 20539# Create a temporary directory, and hook for its removal unless debugging. 20540$debug || 20541{ 20542 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20543 trap '{ (exit 1); exit 1; }' 1 2 13 15 20544} 20545 20546# Create a (secure) tmp directory for tmp files. 20547 20548{ 20549 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20550 test -n "$tmp" && test -d "$tmp" 20551} || 20552{ 20553 tmp=./confstat$$-$RANDOM 20554 (umask 077 && mkdir $tmp) 20555} || 20556{ 20557 echo "$me: cannot create a temporary directory in ." >&2 20558 { (exit 1); exit 1; } 20559} 20560 20561_ACEOF 20562 20563cat >>$CONFIG_STATUS <<_ACEOF 20564 20565# 20566# CONFIG_FILES section. 20567# 20568 20569# No need to generate the scripts if there are no CONFIG_FILES. 20570# This happens for instance when ./config.status config.h 20571if test -n "\$CONFIG_FILES"; then 20572 # Protect against being on the right side of a sed subst in config.status. 20573 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20574 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20575s,@SHELL@,$SHELL,;t t 20576s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20577s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20578s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20579s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20580s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20581s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20582s,@exec_prefix@,$exec_prefix,;t t 20583s,@prefix@,$prefix,;t t 20584s,@program_transform_name@,$program_transform_name,;t t 20585s,@bindir@,$bindir,;t t 20586s,@sbindir@,$sbindir,;t t 20587s,@libexecdir@,$libexecdir,;t t 20588s,@datadir@,$datadir,;t t 20589s,@sysconfdir@,$sysconfdir,;t t 20590s,@sharedstatedir@,$sharedstatedir,;t t 20591s,@localstatedir@,$localstatedir,;t t 20592s,@libdir@,$libdir,;t t 20593s,@includedir@,$includedir,;t t 20594s,@oldincludedir@,$oldincludedir,;t t 20595s,@infodir@,$infodir,;t t 20596s,@mandir@,$mandir,;t t 20597s,@build_alias@,$build_alias,;t t 20598s,@host_alias@,$host_alias,;t t 20599s,@target_alias@,$target_alias,;t t 20600s,@DEFS@,$DEFS,;t t 20601s,@ECHO_C@,$ECHO_C,;t t 20602s,@ECHO_N@,$ECHO_N,;t t 20603s,@ECHO_T@,$ECHO_T,;t t 20604s,@LIBS@,$LIBS,;t t 20605s,@SET_MAKE@,$SET_MAKE,;t t 20606s,@CC@,$CC,;t t 20607s,@CFLAGS@,$CFLAGS,;t t 20608s,@LDFLAGS@,$LDFLAGS,;t t 20609s,@CPPFLAGS@,$CPPFLAGS,;t t 20610s,@ac_ct_CC@,$ac_ct_CC,;t t 20611s,@EXEEXT@,$EXEEXT,;t t 20612s,@OBJEXT@,$OBJEXT,;t t 20613s,@build@,$build,;t t 20614s,@build_cpu@,$build_cpu,;t t 20615s,@build_vendor@,$build_vendor,;t t 20616s,@build_os@,$build_os,;t t 20617s,@host@,$host,;t t 20618s,@host_cpu@,$host_cpu,;t t 20619s,@host_vendor@,$host_vendor,;t t 20620s,@host_os@,$host_os,;t t 20621s,@EGREP@,$EGREP,;t t 20622s,@LN_S@,$LN_S,;t t 20623s,@ECHO@,$ECHO,;t t 20624s,@AR@,$AR,;t t 20625s,@ac_ct_AR@,$ac_ct_AR,;t t 20626s,@RANLIB@,$RANLIB,;t t 20627s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20628s,@STRIP@,$STRIP,;t t 20629s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20630s,@CPP@,$CPP,;t t 20631s,@CXX@,$CXX,;t t 20632s,@CXXFLAGS@,$CXXFLAGS,;t t 20633s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20634s,@CXXCPP@,$CXXCPP,;t t 20635s,@F77@,$F77,;t t 20636s,@FFLAGS@,$FFLAGS,;t t 20637s,@ac_ct_F77@,$ac_ct_F77,;t t 20638s,@LIBTOOL@,$LIBTOOL,;t t 20639s,@LIBOBJS@,$LIBOBJS,;t t 20640s,@LTLIBOBJS@,$LTLIBOBJS,;t t 20641CEOF 20642 20643_ACEOF 20644 20645 cat >>$CONFIG_STATUS <<\_ACEOF 20646 # Split the substitutions into bite-sized pieces for seds with 20647 # small command number limits, like on Digital OSF/1 and HP-UX. 20648 ac_max_sed_lines=48 20649 ac_sed_frag=1 # Number of current file. 20650 ac_beg=1 # First line for current file. 20651 ac_end=$ac_max_sed_lines # Line after last line for current file. 20652 ac_more_lines=: 20653 ac_sed_cmds= 20654 while $ac_more_lines; do 20655 if test $ac_beg -gt 1; then 20656 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20657 else 20658 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20659 fi 20660 if test ! -s $tmp/subs.frag; then 20661 ac_more_lines=false 20662 else 20663 # The purpose of the label and of the branching condition is to 20664 # speed up the sed processing (if there are no `@' at all, there 20665 # is no need to browse any of the substitutions). 20666 # These are the two extra sed commands mentioned above. 20667 (echo ':t 20668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20669 if test -z "$ac_sed_cmds"; then 20670 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20671 else 20672 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20673 fi 20674 ac_sed_frag=`expr $ac_sed_frag + 1` 20675 ac_beg=$ac_end 20676 ac_end=`expr $ac_end + $ac_max_sed_lines` 20677 fi 20678 done 20679 if test -z "$ac_sed_cmds"; then 20680 ac_sed_cmds=cat 20681 fi 20682fi # test -n "$CONFIG_FILES" 20683 20684_ACEOF 20685cat >>$CONFIG_STATUS <<\_ACEOF 20686for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20688 case $ac_file in 20689 - | *:- | *:-:* ) # input from stdin 20690 cat >$tmp/stdin 20691 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20693 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20695 * ) ac_file_in=$ac_file.in ;; 20696 esac 20697 20698 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20699 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20700$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20701 X"$ac_file" : 'X\(//\)[^/]' \| \ 20702 X"$ac_file" : 'X\(//\)$' \| \ 20703 X"$ac_file" : 'X\(/\)' \| \ 20704 . : '\(.\)' 2>/dev/null || 20705echo X"$ac_file" | 20706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20707 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20708 /^X\(\/\/\)$/{ s//\1/; q; } 20709 /^X\(\/\).*/{ s//\1/; q; } 20710 s/.*/./; q'` 20711 { if $as_mkdir_p; then 20712 mkdir -p "$ac_dir" 20713 else 20714 as_dir="$ac_dir" 20715 as_dirs= 20716 while test ! -d "$as_dir"; do 20717 as_dirs="$as_dir $as_dirs" 20718 as_dir=`(dirname "$as_dir") 2>/dev/null || 20719$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20720 X"$as_dir" : 'X\(//\)[^/]' \| \ 20721 X"$as_dir" : 'X\(//\)$' \| \ 20722 X"$as_dir" : 'X\(/\)' \| \ 20723 . : '\(.\)' 2>/dev/null || 20724echo X"$as_dir" | 20725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20726 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20727 /^X\(\/\/\)$/{ s//\1/; q; } 20728 /^X\(\/\).*/{ s//\1/; q; } 20729 s/.*/./; q'` 20730 done 20731 test ! -n "$as_dirs" || mkdir $as_dirs 20732 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20733echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20734 { (exit 1); exit 1; }; }; } 20735 20736 ac_builddir=. 20737 20738if test "$ac_dir" != .; then 20739 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20740 # A "../" for each directory in $ac_dir_suffix. 20741 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20742else 20743 ac_dir_suffix= ac_top_builddir= 20744fi 20745 20746case $srcdir in 20747 .) # No --srcdir option. We are building in place. 20748 ac_srcdir=. 20749 if test -z "$ac_top_builddir"; then 20750 ac_top_srcdir=. 20751 else 20752 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20753 fi ;; 20754 [\\/]* | ?:[\\/]* ) # Absolute path. 20755 ac_srcdir=$srcdir$ac_dir_suffix; 20756 ac_top_srcdir=$srcdir ;; 20757 *) # Relative path. 20758 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20759 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20760esac 20761 20762# Do not use `cd foo && pwd` to compute absolute paths, because 20763# the directories may not exist. 20764case `pwd` in 20765.) ac_abs_builddir="$ac_dir";; 20766*) 20767 case "$ac_dir" in 20768 .) ac_abs_builddir=`pwd`;; 20769 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20770 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20771 esac;; 20772esac 20773case $ac_abs_builddir in 20774.) ac_abs_top_builddir=${ac_top_builddir}.;; 20775*) 20776 case ${ac_top_builddir}. in 20777 .) ac_abs_top_builddir=$ac_abs_builddir;; 20778 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20779 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20780 esac;; 20781esac 20782case $ac_abs_builddir in 20783.) ac_abs_srcdir=$ac_srcdir;; 20784*) 20785 case $ac_srcdir in 20786 .) ac_abs_srcdir=$ac_abs_builddir;; 20787 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20788 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20789 esac;; 20790esac 20791case $ac_abs_builddir in 20792.) ac_abs_top_srcdir=$ac_top_srcdir;; 20793*) 20794 case $ac_top_srcdir in 20795 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20796 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20797 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20798 esac;; 20799esac 20800 20801 20802 20803 if test x"$ac_file" != x-; then 20804 { echo "$as_me:$LINENO: creating $ac_file" >&5 20805echo "$as_me: creating $ac_file" >&6;} 20806 rm -f "$ac_file" 20807 fi 20808 # Let's still pretend it is `configure' which instantiates (i.e., don't 20809 # use $as_me), people would be surprised to read: 20810 # /* config.h. Generated by config.status. */ 20811 if test x"$ac_file" = x-; then 20812 configure_input= 20813 else 20814 configure_input="$ac_file. " 20815 fi 20816 configure_input=$configure_input"Generated from `echo $ac_file_in | 20817 sed 's,.*/,,'` by configure." 20818 20819 # First look for the input files in the build tree, otherwise in the 20820 # src tree. 20821 ac_file_inputs=`IFS=: 20822 for f in $ac_file_in; do 20823 case $f in 20824 -) echo $tmp/stdin ;; 20825 [\\/$]*) 20826 # Absolute (can't be DOS-style, as IFS=:) 20827 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20828echo "$as_me: error: cannot find input file: $f" >&2;} 20829 { (exit 1); exit 1; }; } 20830 echo "$f";; 20831 *) # Relative 20832 if test -f "$f"; then 20833 # Build tree 20834 echo "$f" 20835 elif test -f "$srcdir/$f"; then 20836 # Source tree 20837 echo "$srcdir/$f" 20838 else 20839 # /dev/null tree 20840 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20841echo "$as_me: error: cannot find input file: $f" >&2;} 20842 { (exit 1); exit 1; }; } 20843 fi;; 20844 esac 20845 done` || { (exit 1); exit 1; } 20846_ACEOF 20847cat >>$CONFIG_STATUS <<_ACEOF 20848 sed "$ac_vpsub 20849$extrasub 20850_ACEOF 20851cat >>$CONFIG_STATUS <<\_ACEOF 20852:t 20853/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20854s,@configure_input@,$configure_input,;t t 20855s,@srcdir@,$ac_srcdir,;t t 20856s,@abs_srcdir@,$ac_abs_srcdir,;t t 20857s,@top_srcdir@,$ac_top_srcdir,;t t 20858s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20859s,@builddir@,$ac_builddir,;t t 20860s,@abs_builddir@,$ac_abs_builddir,;t t 20861s,@top_builddir@,$ac_top_builddir,;t t 20862s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20863" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20864 rm -f $tmp/stdin 20865 if test x"$ac_file" != x-; then 20866 mv $tmp/out $ac_file 20867 else 20868 cat $tmp/out 20869 rm -f $tmp/out 20870 fi 20871 20872done 20873_ACEOF 20874cat >>$CONFIG_STATUS <<\_ACEOF 20875 20876# 20877# CONFIG_HEADER section. 20878# 20879 20880# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20881# NAME is the cpp macro being defined and VALUE is the value it is being given. 20882# 20883# ac_d sets the value in "#define NAME VALUE" lines. 20884ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20885ac_dB='[ ].*$,\1#\2' 20886ac_dC=' ' 20887ac_dD=',;t' 20888# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20889ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20890ac_uB='$,\1#\2define\3' 20891ac_uC=' ' 20892ac_uD=',;t' 20893 20894for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20896 case $ac_file in 20897 - | *:- | *:-:* ) # input from stdin 20898 cat >$tmp/stdin 20899 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20901 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20903 * ) ac_file_in=$ac_file.in ;; 20904 esac 20905 20906 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 20907echo "$as_me: creating $ac_file" >&6;} 20908 20909 # First look for the input files in the build tree, otherwise in the 20910 # src tree. 20911 ac_file_inputs=`IFS=: 20912 for f in $ac_file_in; do 20913 case $f in 20914 -) echo $tmp/stdin ;; 20915 [\\/$]*) 20916 # Absolute (can't be DOS-style, as IFS=:) 20917 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20918echo "$as_me: error: cannot find input file: $f" >&2;} 20919 { (exit 1); exit 1; }; } 20920 # Do quote $f, to prevent DOS paths from being IFS'd. 20921 echo "$f";; 20922 *) # Relative 20923 if test -f "$f"; then 20924 # Build tree 20925 echo "$f" 20926 elif test -f "$srcdir/$f"; then 20927 # Source tree 20928 echo "$srcdir/$f" 20929 else 20930 # /dev/null tree 20931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20932echo "$as_me: error: cannot find input file: $f" >&2;} 20933 { (exit 1); exit 1; }; } 20934 fi;; 20935 esac 20936 done` || { (exit 1); exit 1; } 20937 # Remove the trailing spaces. 20938 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20939 20940_ACEOF 20941 20942# Transform confdefs.h into two sed scripts, `conftest.defines' and 20943# `conftest.undefs', that substitutes the proper values into 20944# config.h.in to produce config.h. The first handles `#define' 20945# templates, and the second `#undef' templates. 20946# And first: Protect against being on the right side of a sed subst in 20947# config.status. Protect against being in an unquoted here document 20948# in config.status. 20949rm -f conftest.defines conftest.undefs 20950# Using a here document instead of a string reduces the quoting nightmare. 20951# Putting comments in sed scripts is not portable. 20952# 20953# `end' is used to avoid that the second main sed command (meant for 20954# 0-ary CPP macros) applies to n-ary macro definitions. 20955# See the Autoconf documentation for `clear'. 20956cat >confdef2sed.sed <<\_ACEOF 20957s/[\\&,]/\\&/g 20958s,[\\$`],\\&,g 20959t clear 20960: clear 20961s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 20962t end 20963s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20964: end 20965_ACEOF 20966# If some macros were called several times there might be several times 20967# the same #defines, which is useless. Nevertheless, we may not want to 20968# sort them, since we want the *last* AC-DEFINE to be honored. 20969uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20970sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20971rm -f confdef2sed.sed 20972 20973# This sed command replaces #undef with comments. This is necessary, for 20974# example, in the case of _POSIX_SOURCE, which is predefined and required 20975# on some systems where configure will not decide to define it. 20976cat >>conftest.undefs <<\_ACEOF 20977s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20978_ACEOF 20979 20980# Break up conftest.defines because some shells have a limit on the size 20981# of here documents, and old seds have small limits too (100 cmds). 20982echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20983echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20984echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20985echo ' :' >>$CONFIG_STATUS 20986rm -f conftest.tail 20987while grep . conftest.defines >/dev/null 20988do 20989 # Write a limited-size here document to $tmp/defines.sed. 20990 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20991 # Speed up: don't consider the non `#define' lines. 20992 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20993 # Work around the forget-to-reset-the-flag bug. 20994 echo 't clr' >>$CONFIG_STATUS 20995 echo ': clr' >>$CONFIG_STATUS 20996 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20997 echo 'CEOF 20998 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20999 rm -f $tmp/in 21000 mv $tmp/out $tmp/in 21001' >>$CONFIG_STATUS 21002 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21003 rm -f conftest.defines 21004 mv conftest.tail conftest.defines 21005done 21006rm -f conftest.defines 21007echo ' fi # grep' >>$CONFIG_STATUS 21008echo >>$CONFIG_STATUS 21009 21010# Break up conftest.undefs because some shells have a limit on the size 21011# of here documents, and old seds have small limits too (100 cmds). 21012echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21013rm -f conftest.tail 21014while grep . conftest.undefs >/dev/null 21015do 21016 # Write a limited-size here document to $tmp/undefs.sed. 21017 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21018 # Speed up: don't consider the non `#undef' 21019 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21020 # Work around the forget-to-reset-the-flag bug. 21021 echo 't clr' >>$CONFIG_STATUS 21022 echo ': clr' >>$CONFIG_STATUS 21023 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21024 echo 'CEOF 21025 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21026 rm -f $tmp/in 21027 mv $tmp/out $tmp/in 21028' >>$CONFIG_STATUS 21029 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21030 rm -f conftest.undefs 21031 mv conftest.tail conftest.undefs 21032done 21033rm -f conftest.undefs 21034 21035cat >>$CONFIG_STATUS <<\_ACEOF 21036 # Let's still pretend it is `configure' which instantiates (i.e., don't 21037 # use $as_me), people would be surprised to read: 21038 # /* config.h. Generated by config.status. */ 21039 if test x"$ac_file" = x-; then 21040 echo "/* Generated by configure. */" >$tmp/config.h 21041 else 21042 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21043 fi 21044 cat $tmp/in >>$tmp/config.h 21045 rm -f $tmp/in 21046 if test x"$ac_file" != x-; then 21047 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21048 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21049echo "$as_me: $ac_file is unchanged" >&6;} 21050 else 21051 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21053 X"$ac_file" : 'X\(//\)[^/]' \| \ 21054 X"$ac_file" : 'X\(//\)$' \| \ 21055 X"$ac_file" : 'X\(/\)' \| \ 21056 . : '\(.\)' 2>/dev/null || 21057echo X"$ac_file" | 21058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21059 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21060 /^X\(\/\/\)$/{ s//\1/; q; } 21061 /^X\(\/\).*/{ s//\1/; q; } 21062 s/.*/./; q'` 21063 { if $as_mkdir_p; then 21064 mkdir -p "$ac_dir" 21065 else 21066 as_dir="$ac_dir" 21067 as_dirs= 21068 while test ! -d "$as_dir"; do 21069 as_dirs="$as_dir $as_dirs" 21070 as_dir=`(dirname "$as_dir") 2>/dev/null || 21071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21072 X"$as_dir" : 'X\(//\)[^/]' \| \ 21073 X"$as_dir" : 'X\(//\)$' \| \ 21074 X"$as_dir" : 'X\(/\)' \| \ 21075 . : '\(.\)' 2>/dev/null || 21076echo X"$as_dir" | 21077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21078 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21079 /^X\(\/\/\)$/{ s//\1/; q; } 21080 /^X\(\/\).*/{ s//\1/; q; } 21081 s/.*/./; q'` 21082 done 21083 test ! -n "$as_dirs" || mkdir $as_dirs 21084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21085echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21086 { (exit 1); exit 1; }; }; } 21087 21088 rm -f $ac_file 21089 mv $tmp/config.h $ac_file 21090 fi 21091 else 21092 cat $tmp/config.h 21093 rm -f $tmp/config.h 21094 fi 21095done 21096_ACEOF 21097cat >>$CONFIG_STATUS <<\_ACEOF 21098 21099# 21100# CONFIG_COMMANDS section. 21101# 21102for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21103 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21104 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21105 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21106$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21107 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21108 X"$ac_dest" : 'X\(//\)$' \| \ 21109 X"$ac_dest" : 'X\(/\)' \| \ 21110 . : '\(.\)' 2>/dev/null || 21111echo X"$ac_dest" | 21112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21113 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21114 /^X\(\/\/\)$/{ s//\1/; q; } 21115 /^X\(\/\).*/{ s//\1/; q; } 21116 s/.*/./; q'` 21117 { if $as_mkdir_p; then 21118 mkdir -p "$ac_dir" 21119 else 21120 as_dir="$ac_dir" 21121 as_dirs= 21122 while test ! -d "$as_dir"; do 21123 as_dirs="$as_dir $as_dirs" 21124 as_dir=`(dirname "$as_dir") 2>/dev/null || 21125$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21126 X"$as_dir" : 'X\(//\)[^/]' \| \ 21127 X"$as_dir" : 'X\(//\)$' \| \ 21128 X"$as_dir" : 'X\(/\)' \| \ 21129 . : '\(.\)' 2>/dev/null || 21130echo X"$as_dir" | 21131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21132 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21133 /^X\(\/\/\)$/{ s//\1/; q; } 21134 /^X\(\/\).*/{ s//\1/; q; } 21135 s/.*/./; q'` 21136 done 21137 test ! -n "$as_dirs" || mkdir $as_dirs 21138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21139echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21140 { (exit 1); exit 1; }; }; } 21141 21142 ac_builddir=. 21143 21144if test "$ac_dir" != .; then 21145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21146 # A "../" for each directory in $ac_dir_suffix. 21147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21148else 21149 ac_dir_suffix= ac_top_builddir= 21150fi 21151 21152case $srcdir in 21153 .) # No --srcdir option. We are building in place. 21154 ac_srcdir=. 21155 if test -z "$ac_top_builddir"; then 21156 ac_top_srcdir=. 21157 else 21158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21159 fi ;; 21160 [\\/]* | ?:[\\/]* ) # Absolute path. 21161 ac_srcdir=$srcdir$ac_dir_suffix; 21162 ac_top_srcdir=$srcdir ;; 21163 *) # Relative path. 21164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21165 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21166esac 21167 21168# Do not use `cd foo && pwd` to compute absolute paths, because 21169# the directories may not exist. 21170case `pwd` in 21171.) ac_abs_builddir="$ac_dir";; 21172*) 21173 case "$ac_dir" in 21174 .) ac_abs_builddir=`pwd`;; 21175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21176 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21177 esac;; 21178esac 21179case $ac_abs_builddir in 21180.) ac_abs_top_builddir=${ac_top_builddir}.;; 21181*) 21182 case ${ac_top_builddir}. in 21183 .) ac_abs_top_builddir=$ac_abs_builddir;; 21184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21186 esac;; 21187esac 21188case $ac_abs_builddir in 21189.) ac_abs_srcdir=$ac_srcdir;; 21190*) 21191 case $ac_srcdir in 21192 .) ac_abs_srcdir=$ac_abs_builddir;; 21193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21195 esac;; 21196esac 21197case $ac_abs_builddir in 21198.) ac_abs_top_srcdir=$ac_top_srcdir;; 21199*) 21200 case $ac_top_srcdir in 21201 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21204 esac;; 21205esac 21206 21207 21208 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21209echo "$as_me: executing $ac_dest commands" >&6;} 21210 case $ac_dest in 21211 adjustment ) chmod a+x popt-config ;; 21212 esac 21213done 21214_ACEOF 21215 21216cat >>$CONFIG_STATUS <<\_ACEOF 21217 21218{ (exit 0); exit 0; } 21219_ACEOF 21220chmod +x $CONFIG_STATUS 21221ac_clean_files=$ac_clean_files_save 21222 21223 21224# configure is writing to config.log, and then calls config.status. 21225# config.status does its own redirection, appending to config.log. 21226# Unfortunately, on DOS this fails, as config.log is still kept open 21227# by configure, so config.status won't be able to write to it; its 21228# output is simply discarded. So we exec the FD to /dev/null, 21229# effectively closing config.log, so it can be properly (re)opened and 21230# appended to by config.status. When coming back to configure, we 21231# need to make the FD available again. 21232if test "$no_create" != yes; then 21233 ac_cs_success=: 21234 ac_config_status_args= 21235 test "$silent" = yes && 21236 ac_config_status_args="$ac_config_status_args --quiet" 21237 exec 5>/dev/null 21238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21239 exec 5>>config.log 21240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21241 # would make configure fail if this is the last instruction. 21242 $ac_cs_success || { (exit 1); exit 1; } 21243fi 21244 21245 21246