1#! /bin/sh 2# From configure.in configure.in,v 1.2 1998/10/03 00:17:50 jmacd Exp. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.59. 5# 6# Copyright (C) 2003 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22fi 23DUALCASE=1; export DUALCASE # for MKS sh 24 25# Support unset when possible. 26if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27 as_unset=unset 28else 29 as_unset=false 30fi 31 32 33# Work around bugs in pre-3.0 UWIN ksh. 34$as_unset ENV MAIL MAILPATH 35PS1='$ ' 36PS2='> ' 37PS4='+ ' 38 39# NLS nuisances. 40for as_var in \ 41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43 LC_TELEPHONE LC_TIME 44do 45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 46 eval $as_var=C; export $as_var 47 else 48 $as_unset $as_var 49 fi 50done 51 52# Required to use basename. 53if expr a : '\(a\)' >/dev/null 2>&1; then 54 as_expr=expr 55else 56 as_expr=false 57fi 58 59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60 as_basename=basename 61else 62 as_basename=false 63fi 64 65 66# Name of the executable. 67as_me=`$as_basename "$0" || 68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72echo X/"$0" | 73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74 /^X\/\(\/\/\)$/{ s//\1/; q; } 75 /^X\/\(\/\).*/{ s//\1/; q; } 76 s/.*/./; q'` 77 78 79# PATH needs CR, and LINENO needs CR and PATH. 80# Avoid depending upon Character Ranges. 81as_cr_letters='abcdefghijklmnopqrstuvwxyz' 82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83as_cr_Letters=$as_cr_letters$as_cr_LETTERS 84as_cr_digits='0123456789' 85as_cr_alnum=$as_cr_Letters$as_cr_digits 86 87# The user is always right. 88if test "${PATH_SEPARATOR+set}" != set; then 89 echo "#! /bin/sh" >conf$$.sh 90 echo "exit 0" >>conf$$.sh 91 chmod +x conf$$.sh 92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93 PATH_SEPARATOR=';' 94 else 95 PATH_SEPARATOR=: 96 fi 97 rm -f conf$$.sh 98fi 99 100 101 as_lineno_1=$LINENO 102 as_lineno_2=$LINENO 103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104 test "x$as_lineno_1" != "x$as_lineno_2" && 105 test "x$as_lineno_3" = "x$as_lineno_2" || { 106 # Find who we are. Look in the path if we contain no path at all 107 # relative or not. 108 case $0 in 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111for as_dir in $PATH 112do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116done 117 118 ;; 119 esac 120 # We did not find ourselves, most probably we were run as `sh COMMAND' 121 # in which case we are not to be found in the path. 122 if test "x$as_myself" = x; then 123 as_myself=$0 124 fi 125 if test ! -f "$as_myself"; then 126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127 { (exit 1); exit 1; }; } 128 fi 129 case $CONFIG_SHELL in 130 '') 131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 for as_base in sh bash ksh sh5; do 137 case $as_dir in 138 /*) 139 if ("$as_dir/$as_base" -c ' 140 as_lineno_1=$LINENO 141 as_lineno_2=$LINENO 142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143 test "x$as_lineno_1" != "x$as_lineno_2" && 144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147 CONFIG_SHELL=$as_dir/$as_base 148 export CONFIG_SHELL 149 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150 fi;; 151 esac 152 done 153done 154;; 155 esac 156 157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158 # uniformly replaced by the line number. The first 'sed' inserts a 159 # line-number line before each line; the second 'sed' does the real 160 # work. The second script uses 'N' to pair each line-number line 161 # with the numbered line, and appends trailing '-' during 162 # substitution so that $LINENO is not a special case at line end. 163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165 sed '=' <$as_myself | 166 sed ' 167 N 168 s,$,-, 169 : loop 170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 171 t loop 172 s,-$,, 173 s,^['$as_cr_digits']*\n,, 174 ' >$as_me.lineno && 175 chmod +x $as_me.lineno || 176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177 { (exit 1); exit 1; }; } 178 179 # Don't try to exec as it changes $[0], causing all sort of problems 180 # (the dirname of $[0] is not the place where we might find the 181 # original and so on. Autoconf is especially sensible to this). 182 . ./$as_me.lineno 183 # Exit status is that of the last command. 184 exit 185} 186 187 188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189 *c*,-n*) ECHO_N= ECHO_C=' 190' ECHO_T=' ' ;; 191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 193esac 194 195if expr a : '\(a\)' >/dev/null 2>&1; then 196 as_expr=expr 197else 198 as_expr=false 199fi 200 201rm -f conf$$ conf$$.exe conf$$.file 202echo >conf$$.file 203if ln -s conf$$.file conf$$ 2>/dev/null; then 204 # We could just check for DJGPP; but this test a) works b) is more generic 205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206 if test -f conf$$.exe; then 207 # Don't use ln at all; we don't have any links 208 as_ln_s='cp -p' 209 else 210 as_ln_s='ln -s' 211 fi 212elif ln conf$$.file conf$$ 2>/dev/null; then 213 as_ln_s=ln 214else 215 as_ln_s='cp -p' 216fi 217rm -f conf$$ conf$$.exe conf$$.file 218 219if mkdir -p . 2>/dev/null; then 220 as_mkdir_p=: 221else 222 test -d ./-p && rmdir ./-p 223 as_mkdir_p=false 224fi 225 226as_executable_p="test -f" 227 228# Sed expression to map a string onto a valid CPP name. 229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 230 231# Sed expression to map a string onto a valid variable name. 232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 233 234 235# IFS 236# We need space, tab and new line, in precisely that order. 237as_nl=' 238' 239IFS=" $as_nl" 240 241# CDPATH. 242$as_unset CDPATH 243 244 245 246# Check that we are running under the correct shell. 247SHELL=${CONFIG_SHELL-/bin/sh} 248 249case X$ECHO in 250X*--fallback-echo) 251 # Remove one level of quotation (which was required for Make). 252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 253 ;; 254esac 255 256echo=${ECHO-echo} 257if test "X$1" = X--no-reexec; then 258 # Discard the --no-reexec flag, and continue. 259 shift 260elif test "X$1" = X--fallback-echo; then 261 # Avoid inline document here, it may be left over 262 : 263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 264 # Yippee, $echo works! 265 : 266else 267 # Restart under the correct shell. 268 exec $SHELL "$0" --no-reexec ${1+"$@"} 269fi 270 271if test "X$1" = X--fallback-echo; then 272 # used as fallback echo 273 shift 274 cat <<EOF 275$* 276EOF 277 exit 0 278fi 279 280# The HP-UX ksh and POSIX shell print the target directory to stdout 281# if CDPATH is set. 282(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 283 284if test -z "$ECHO"; then 285if test "X${echo_test_string+set}" != Xset; then 286# find a string as large as possible, as long as the shell can cope with it 287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 289 if (echo_test_string=`eval $cmd`) 2>/dev/null && 290 echo_test_string=`eval $cmd` && 291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 292 then 293 break 294 fi 295 done 296fi 297 298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 300 test "X$echo_testing_string" = "X$echo_test_string"; then 301 : 302else 303 # The Solaris, AIX, and Digital Unix default echo programs unquote 304 # backslashes. This makes it impossible to quote backslashes using 305 # echo "$something" | sed 's/\\/\\\\/g' 306 # 307 # So, first we look for a working echo in the user's PATH. 308 309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 310 for dir in $PATH /usr/ucb; do 311 IFS="$lt_save_ifs" 312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 315 test "X$echo_testing_string" = "X$echo_test_string"; then 316 echo="$dir/echo" 317 break 318 fi 319 done 320 IFS="$lt_save_ifs" 321 322 if test "X$echo" = Xecho; then 323 # We didn't find a better echo, so look for alternatives. 324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 326 test "X$echo_testing_string" = "X$echo_test_string"; then 327 # This shell has a builtin print -r that does the trick. 328 echo='print -r' 329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 330 test "X$CONFIG_SHELL" != X/bin/ksh; then 331 # If we have ksh, try running configure again with it. 332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 333 export ORIGINAL_CONFIG_SHELL 334 CONFIG_SHELL=/bin/ksh 335 export CONFIG_SHELL 336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 337 else 338 # Try using printf. 339 echo='printf %s\n' 340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 342 test "X$echo_testing_string" = "X$echo_test_string"; then 343 # Cool, printf works 344 : 345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 346 test "X$echo_testing_string" = 'X\t' && 347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 348 test "X$echo_testing_string" = "X$echo_test_string"; then 349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 350 export CONFIG_SHELL 351 SHELL="$CONFIG_SHELL" 352 export SHELL 353 echo="$CONFIG_SHELL $0 --fallback-echo" 354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 355 test "X$echo_testing_string" = 'X\t' && 356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 357 test "X$echo_testing_string" = "X$echo_test_string"; then 358 echo="$CONFIG_SHELL $0 --fallback-echo" 359 else 360 # maybe with a smaller string... 361 prev=: 362 363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 365 then 366 break 367 fi 368 prev="$cmd" 369 done 370 371 if test "$prev" != 'sed 50q "$0"'; then 372 echo_test_string=`eval $prev` 373 export echo_test_string 374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 375 else 376 # Oops. We lost completely, so just stick with echo. 377 echo=echo 378 fi 379 fi 380 fi 381 fi 382fi 383fi 384 385# Copy echo and quote the copy suitably for passing to libtool from 386# the Makefile, instead of quoting the original, which is used later. 387ECHO=$echo 388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 390fi 391 392 393 394 395tagnames=${tagnames+${tagnames},}CXX 396 397tagnames=${tagnames+${tagnames},}F77 398 399# Name of the host. 400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 401# so uname gets run too. 402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 403 404exec 6>&1 405 406# 407# Initializations. 408# 409ac_default_prefix=/usr/local 410ac_config_libobj_dir=. 411cross_compiling=no 412subdirs= 413MFLAGS= 414MAKEFLAGS= 415SHELL=${CONFIG_SHELL-/bin/sh} 416 417# Maximum number of lines to put in a shell here document. 418# This variable seems obsolete. It should probably be removed, and 419# only ac_max_sed_lines should be used. 420: ${ac_max_here_lines=38} 421 422# Identity of this package. 423PACKAGE_NAME= 424PACKAGE_TARNAME= 425PACKAGE_VERSION= 426PACKAGE_STRING= 427PACKAGE_BUGREPORT= 428 429ac_unique_file="xdelta.c" 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT CXX CXXFLAGS ac_ct_CXX CXXDE! PMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL EMACS top_srcdir_absolute PKG_CONFIG ac_pt_PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS LIBOBJS LTLIBOBJS' 468ac_subst_files='' 469 470# Initialize some variables set by options. 471ac_init_help= 472ac_init_version=false 473# The variables have the same names as the options, with 474# dashes changed to underlines. 475cache_file=/dev/null 476exec_prefix=NONE 477no_create= 478no_recursion= 479prefix=NONE 480program_prefix=NONE 481program_suffix=NONE 482program_transform_name=s,x,x, 483silent= 484site= 485srcdir= 486verbose= 487x_includes=NONE 488x_libraries=NONE 489 490# Installation directory options. 491# These are left unexpanded so users can "make install exec_prefix=/foo" 492# and all the variables that are supposed to be based on exec_prefix 493# by default will actually change. 494# Use braces instead of parens because sh, perl, etc. also accept them. 495bindir='${exec_prefix}/bin' 496sbindir='${exec_prefix}/sbin' 497libexecdir='${exec_prefix}/libexec' 498datadir='${prefix}/share' 499sysconfdir='${prefix}/etc' 500sharedstatedir='${prefix}/com' 501localstatedir='${prefix}/var' 502libdir='${exec_prefix}/lib' 503includedir='${prefix}/include' 504oldincludedir='/usr/include' 505infodir='${prefix}/info' 506mandir='${prefix}/man' 507 508ac_prev= 509for ac_option 510do 511 # If the previous option needs an argument, assign it. 512 if test -n "$ac_prev"; then 513 eval "$ac_prev=\$ac_option" 514 ac_prev= 515 continue 516 fi 517 518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 519 520 # Accept the important Cygnus configure options, so we can diagnose typos. 521 522 case $ac_option in 523 524 -bindir | --bindir | --bindi | --bind | --bin | --bi) 525 ac_prev=bindir ;; 526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 527 bindir=$ac_optarg ;; 528 529 -build | --build | --buil | --bui | --bu) 530 ac_prev=build_alias ;; 531 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 532 build_alias=$ac_optarg ;; 533 534 -cache-file | --cache-file | --cache-fil | --cache-fi \ 535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 536 ac_prev=cache_file ;; 537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 539 cache_file=$ac_optarg ;; 540 541 --config-cache | -C) 542 cache_file=config.cache ;; 543 544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 545 ac_prev=datadir ;; 546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 547 | --da=*) 548 datadir=$ac_optarg ;; 549 550 -disable-* | --disable-*) 551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 552 # Reject names that are not valid shell variable names. 553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 555 { (exit 1); exit 1; }; } 556 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 557 eval "enable_$ac_feature=no" ;; 558 559 -enable-* | --enable-*) 560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 561 # Reject names that are not valid shell variable names. 562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 564 { (exit 1); exit 1; }; } 565 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 566 case $ac_option in 567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 568 *) ac_optarg=yes ;; 569 esac 570 eval "enable_$ac_feature='$ac_optarg'" ;; 571 572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 574 | --exec | --exe | --ex) 575 ac_prev=exec_prefix ;; 576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 578 | --exec=* | --exe=* | --ex=*) 579 exec_prefix=$ac_optarg ;; 580 581 -gas | --gas | --ga | --g) 582 # Obsolete; use --with-gas. 583 with_gas=yes ;; 584 585 -help | --help | --hel | --he | -h) 586 ac_init_help=long ;; 587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 588 ac_init_help=recursive ;; 589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 590 ac_init_help=short ;; 591 592 -host | --host | --hos | --ho) 593 ac_prev=host_alias ;; 594 -host=* | --host=* | --hos=* | --ho=*) 595 host_alias=$ac_optarg ;; 596 597 -includedir | --includedir | --includedi | --included | --include \ 598 | --includ | --inclu | --incl | --inc) 599 ac_prev=includedir ;; 600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 601 | --includ=* | --inclu=* | --incl=* | --inc=*) 602 includedir=$ac_optarg ;; 603 604 -infodir | --infodir | --infodi | --infod | --info | --inf) 605 ac_prev=infodir ;; 606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 607 infodir=$ac_optarg ;; 608 609 -libdir | --libdir | --libdi | --libd) 610 ac_prev=libdir ;; 611 -libdir=* | --libdir=* | --libdi=* | --libd=*) 612 libdir=$ac_optarg ;; 613 614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 615 | --libexe | --libex | --libe) 616 ac_prev=libexecdir ;; 617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 618 | --libexe=* | --libex=* | --libe=*) 619 libexecdir=$ac_optarg ;; 620 621 -localstatedir | --localstatedir | --localstatedi | --localstated \ 622 | --localstate | --localstat | --localsta | --localst \ 623 | --locals | --local | --loca | --loc | --lo) 624 ac_prev=localstatedir ;; 625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 628 localstatedir=$ac_optarg ;; 629 630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 631 ac_prev=mandir ;; 632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 633 mandir=$ac_optarg ;; 634 635 -nfp | --nfp | --nf) 636 # Obsolete; use --without-fp. 637 with_fp=no ;; 638 639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 640 | --no-cr | --no-c | -n) 641 no_create=yes ;; 642 643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 645 no_recursion=yes ;; 646 647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 649 | --oldin | --oldi | --old | --ol | --o) 650 ac_prev=oldincludedir ;; 651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 654 oldincludedir=$ac_optarg ;; 655 656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 657 ac_prev=prefix ;; 658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 659 prefix=$ac_optarg ;; 660 661 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 662 | --program-pre | --program-pr | --program-p) 663 ac_prev=program_prefix ;; 664 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 666 program_prefix=$ac_optarg ;; 667 668 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 669 | --program-suf | --program-su | --program-s) 670 ac_prev=program_suffix ;; 671 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 673 program_suffix=$ac_optarg ;; 674 675 -program-transform-name | --program-transform-name \ 676 | --program-transform-nam | --program-transform-na \ 677 | --program-transform-n | --program-transform- \ 678 | --program-transform | --program-transfor \ 679 | --program-transfo | --program-transf \ 680 | --program-trans | --program-tran \ 681 | --progr-tra | --program-tr | --program-t) 682 ac_prev=program_transform_name ;; 683 -program-transform-name=* | --program-transform-name=* \ 684 | --program-transform-nam=* | --program-transform-na=* \ 685 | --program-transform-n=* | --program-transform-=* \ 686 | --program-transform=* | --program-transfor=* \ 687 | --program-transfo=* | --program-transf=* \ 688 | --program-trans=* | --program-tran=* \ 689 | --progr-tra=* | --program-tr=* | --program-t=*) 690 program_transform_name=$ac_optarg ;; 691 692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 693 | -silent | --silent | --silen | --sile | --sil) 694 silent=yes ;; 695 696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 697 ac_prev=sbindir ;; 698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 699 | --sbi=* | --sb=*) 700 sbindir=$ac_optarg ;; 701 702 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 704 | --sharedst | --shareds | --shared | --share | --shar \ 705 | --sha | --sh) 706 ac_prev=sharedstatedir ;; 707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 710 | --sha=* | --sh=*) 711 sharedstatedir=$ac_optarg ;; 712 713 -site | --site | --sit) 714 ac_prev=site ;; 715 -site=* | --site=* | --sit=*) 716 site=$ac_optarg ;; 717 718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 719 ac_prev=srcdir ;; 720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 721 srcdir=$ac_optarg ;; 722 723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 724 | --syscon | --sysco | --sysc | --sys | --sy) 725 ac_prev=sysconfdir ;; 726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 728 sysconfdir=$ac_optarg ;; 729 730 -target | --target | --targe | --targ | --tar | --ta | --t) 731 ac_prev=target_alias ;; 732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 733 target_alias=$ac_optarg ;; 734 735 -v | -verbose | --verbose | --verbos | --verbo | --verb) 736 verbose=yes ;; 737 738 -version | --version | --versio | --versi | --vers | -V) 739 ac_init_version=: ;; 740 741 -with-* | --with-*) 742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 743 # Reject names that are not valid shell variable names. 744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 745 { echo "$as_me: error: invalid package name: $ac_package" >&2 746 { (exit 1); exit 1; }; } 747 ac_package=`echo $ac_package| sed 's/-/_/g'` 748 case $ac_option in 749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 750 *) ac_optarg=yes ;; 751 esac 752 eval "with_$ac_package='$ac_optarg'" ;; 753 754 -without-* | --without-*) 755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 756 # Reject names that are not valid shell variable names. 757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 758 { echo "$as_me: error: invalid package name: $ac_package" >&2 759 { (exit 1); exit 1; }; } 760 ac_package=`echo $ac_package | sed 's/-/_/g'` 761 eval "with_$ac_package=no" ;; 762 763 --x) 764 # Obsolete; use --with-x. 765 with_x=yes ;; 766 767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 768 | --x-incl | --x-inc | --x-in | --x-i) 769 ac_prev=x_includes ;; 770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 772 x_includes=$ac_optarg ;; 773 774 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 776 ac_prev=x_libraries ;; 777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 779 x_libraries=$ac_optarg ;; 780 781 -*) { echo "$as_me: error: unrecognized option: $ac_option 782Try \`$0 --help' for more information." >&2 783 { (exit 1); exit 1; }; } 784 ;; 785 786 *=*) 787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 788 # Reject names that are not valid shell variable names. 789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 791 { (exit 1); exit 1; }; } 792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 793 eval "$ac_envvar='$ac_optarg'" 794 export $ac_envvar ;; 795 796 *) 797 # FIXME: should be removed in autoconf 3.0. 798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 802 ;; 803 804 esac 805done 806 807if test -n "$ac_prev"; then 808 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 809 { echo "$as_me: error: missing argument to $ac_option" >&2 810 { (exit 1); exit 1; }; } 811fi 812 813# Be sure to have absolute paths. 814for ac_var in exec_prefix prefix 815do 816 eval ac_val=$`echo $ac_var` 817 case $ac_val in 818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 820 { (exit 1); exit 1; }; };; 821 esac 822done 823 824# Be sure to have absolute paths. 825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 826 localstatedir libdir includedir oldincludedir infodir mandir 827do 828 eval ac_val=$`echo $ac_var` 829 case $ac_val in 830 [\\/$]* | ?:[\\/]* ) ;; 831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 832 { (exit 1); exit 1; }; };; 833 esac 834done 835 836# There might be people who depend on the old broken behavior: `$host' 837# used to hold the argument of --host etc. 838# FIXME: To remove some day. 839build=$build_alias 840host=$host_alias 841target=$target_alias 842 843# FIXME: To remove some day. 844if test "x$host_alias" != x; then 845 if test "x$build_alias" = x; then 846 cross_compiling=maybe 847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 848 If a cross compiler is detected then cross compile mode will be used." >&2 849 elif test "x$build_alias" != "x$host_alias"; then 850 cross_compiling=yes 851 fi 852fi 853 854ac_tool_prefix= 855test -n "$host_alias" && ac_tool_prefix=$host_alias- 856 857test "$silent" = yes && exec 6>/dev/null 858 859 860# Find the source files, if location was not specified. 861if test -z "$srcdir"; then 862 ac_srcdir_defaulted=yes 863 # Try the directory containing this script, then its parent. 864 ac_confdir=`(dirname "$0") 2>/dev/null || 865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 866 X"$0" : 'X\(//\)[^/]' \| \ 867 X"$0" : 'X\(//\)$' \| \ 868 X"$0" : 'X\(/\)' \| \ 869 . : '\(.\)' 2>/dev/null || 870echo X"$0" | 871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 872 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 873 /^X\(\/\/\)$/{ s//\1/; q; } 874 /^X\(\/\).*/{ s//\1/; q; } 875 s/.*/./; q'` 876 srcdir=$ac_confdir 877 if test ! -r "$srcdir/$ac_unique_file"; then 878 srcdir=.. 879 fi 880else 881 ac_srcdir_defaulted=no 882fi 883if test ! -r "$srcdir/$ac_unique_file"; then 884 if test "$ac_srcdir_defaulted" = yes; then 885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 886 { (exit 1); exit 1; }; } 887 else 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 889 { (exit 1); exit 1; }; } 890 fi 891fi 892(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null || 893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 894 { (exit 1); exit 1; }; } 895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 896ac_env_build_alias_set=${build_alias+set} 897ac_env_build_alias_value=$build_alias 898ac_cv_env_build_alias_set=${build_alias+set} 899ac_cv_env_build_alias_value=$build_alias 900ac_env_host_alias_set=${host_alias+set} 901ac_env_host_alias_value=$host_alias 902ac_cv_env_host_alias_set=${host_alias+set} 903ac_cv_env_host_alias_value=$host_alias 904ac_env_target_alias_set=${target_alias+set} 905ac_env_target_alias_value=$target_alias 906ac_cv_env_target_alias_set=${target_alias+set} 907ac_cv_env_target_alias_value=$target_alias 908ac_env_CC_set=${CC+set} 909ac_env_CC_value=$CC 910ac_cv_env_CC_set=${CC+set} 911ac_cv_env_CC_value=$CC 912ac_env_CFLAGS_set=${CFLAGS+set} 913ac_env_CFLAGS_value=$CFLAGS 914ac_cv_env_CFLAGS_set=${CFLAGS+set} 915ac_cv_env_CFLAGS_value=$CFLAGS 916ac_env_LDFLAGS_set=${LDFLAGS+set} 917ac_env_LDFLAGS_value=$LDFLAGS 918ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 919ac_cv_env_LDFLAGS_value=$LDFLAGS 920ac_env_CPPFLAGS_set=${CPPFLAGS+set} 921ac_env_CPPFLAGS_value=$CPPFLAGS 922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 923ac_cv_env_CPPFLAGS_value=$CPPFLAGS 924ac_env_CPP_set=${CPP+set} 925ac_env_CPP_value=$CPP 926ac_cv_env_CPP_set=${CPP+set} 927ac_cv_env_CPP_value=$CPP 928ac_env_CXX_set=${CXX+set} 929ac_env_CXX_value=$CXX 930ac_cv_env_CXX_set=${CXX+set} 931ac_cv_env_CXX_value=$CXX 932ac_env_CXXFLAGS_set=${CXXFLAGS+set} 933ac_env_CXXFLAGS_value=$CXXFLAGS 934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 935ac_cv_env_CXXFLAGS_value=$CXXFLAGS 936ac_env_CXXCPP_set=${CXXCPP+set} 937ac_env_CXXCPP_value=$CXXCPP 938ac_cv_env_CXXCPP_set=${CXXCPP+set} 939ac_cv_env_CXXCPP_value=$CXXCPP 940ac_env_F77_set=${F77+set} 941ac_env_F77_value=$F77 942ac_cv_env_F77_set=${F77+set} 943ac_cv_env_F77_value=$F77 944ac_env_FFLAGS_set=${FFLAGS+set} 945ac_env_FFLAGS_value=$FFLAGS 946ac_cv_env_FFLAGS_set=${FFLAGS+set} 947ac_cv_env_FFLAGS_value=$FFLAGS 948ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 949ac_env_PKG_CONFIG_value=$PKG_CONFIG 950ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 951ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 952 953# 954# Report the --help message. 955# 956if test "$ac_init_help" = "long"; then 957 # Omit some internal or obsolete options to make the list less imposing. 958 # This message is too long to be a string in the A/UX 3.1 sh. 959 cat <<_ACEOF 960\`configure' configures this package to adapt to many kinds of systems. 961 962Usage: $0 [OPTION]... [VAR=VALUE]... 963 964To assign environment variables (e.g., CC, CFLAGS...), specify them as 965VAR=VALUE. See below for descriptions of some of the useful variables. 966 967Defaults for the options are specified in brackets. 968 969Configuration: 970 -h, --help display this help and exit 971 --help=short display options specific to this package 972 --help=recursive display the short help of all the included packages 973 -V, --version display version information and exit 974 -q, --quiet, --silent do not print \`checking...' messages 975 --cache-file=FILE cache test results in FILE [disabled] 976 -C, --config-cache alias for \`--cache-file=config.cache' 977 -n, --no-create do not create output files 978 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 979 980_ACEOF 981 982 cat <<_ACEOF 983Installation directories: 984 --prefix=PREFIX install architecture-independent files in PREFIX 985 [$ac_default_prefix] 986 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 987 [PREFIX] 988 989By default, \`make install' will install all the files in 990\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 991an installation prefix other than \`$ac_default_prefix' using \`--prefix', 992for instance \`--prefix=\$HOME'. 993 994For better control, use the options below. 995 996Fine tuning of the installation directories: 997 --bindir=DIR user executables [EPREFIX/bin] 998 --sbindir=DIR system admin executables [EPREFIX/sbin] 999 --libexecdir=DIR program executables [EPREFIX/libexec] 1000 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1001 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1002 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1003 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1004 --libdir=DIR object code libraries [EPREFIX/lib] 1005 --includedir=DIR C header files [PREFIX/include] 1006 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1007 --infodir=DIR info documentation [PREFIX/info] 1008 --mandir=DIR man documentation [PREFIX/man] 1009_ACEOF 1010 1011 cat <<\_ACEOF 1012 1013Program names: 1014 --program-prefix=PREFIX prepend PREFIX to installed program names 1015 --program-suffix=SUFFIX append SUFFIX to installed program names 1016 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1017 1018System types: 1019 --build=BUILD configure for building on BUILD [guessed] 1020 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1021_ACEOF 1022fi 1023 1024if test -n "$ac_init_help"; then 1025 1026 cat <<\_ACEOF 1027 1028Optional Features: 1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1031 --enable-maintainer-mode enable make rules and dependencies not useful 1032 (and sometimes confusing) to the casual installer 1033 --enable-debug turn on debugging default=no 1034 --enable-profile turn on profiling default=no 1035 --enable-shared[=PKGS] 1036 build shared libraries [default=yes] 1037 --enable-static[=PKGS] 1038 build static libraries [default=yes] 1039 --enable-fast-install[=PKGS] 1040 optimize for fast installation [default=yes] 1041 --disable-libtool-lock avoid locking (might break parallel builds) 1042 --disable-glibtest Do not try to compile and run a test GLIB program 1043 1044Optional Packages: 1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1047 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1048 --with-pic try to use only PIC/non-PIC objects [default=use 1049 both] 1050 --with-tags[=TAGS] 1051 include additional configurations [automatic] 1052 --with-glib-prefix=PFX Prefix where GLIB is installed (optional) 1053 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) 1054 1055Some influential environment variables: 1056 CC C compiler command 1057 CFLAGS C compiler flags 1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1059 nonstandard directory <lib dir> 1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1061 headers in a nonstandard directory <include dir> 1062 CPP C preprocessor 1063 CXX C++ compiler command 1064 CXXFLAGS C++ compiler flags 1065 CXXCPP C++ preprocessor 1066 F77 Fortran 77 compiler command 1067 FFLAGS Fortran 77 compiler flags 1068 PKG_CONFIG path to pkg-config utility 1069 1070Use these variables to override the choices made by `configure' or to help 1071it to find libraries and programs with nonstandard names/locations. 1072 1073_ACEOF 1074fi 1075 1076if test "$ac_init_help" = "recursive"; then 1077 # If there are subdirs, report their specific --help. 1078 ac_popdir=`pwd` 1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1080 test -d $ac_dir || continue 1081 ac_builddir=. 1082 1083if test "$ac_dir" != .; then 1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1085 # A "../" for each directory in $ac_dir_suffix. 1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1087else 1088 ac_dir_suffix= ac_top_builddir= 1089fi 1090 1091case $srcdir in 1092 .) # No --srcdir option. We are building in place. 1093 ac_srcdir=. 1094 if test -z "$ac_top_builddir"; then 1095 ac_top_srcdir=. 1096 else 1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1098 fi ;; 1099 [\\/]* | ?:[\\/]* ) # Absolute path. 1100 ac_srcdir=$srcdir$ac_dir_suffix; 1101 ac_top_srcdir=$srcdir ;; 1102 *) # Relative path. 1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1104 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1105esac 1106 1107# Do not use `cd foo && pwd` to compute absolute paths, because 1108# the directories may not exist. 1109case `pwd` in 1110.) ac_abs_builddir="$ac_dir";; 1111*) 1112 case "$ac_dir" in 1113 .) ac_abs_builddir=`pwd`;; 1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1115 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1116 esac;; 1117esac 1118case $ac_abs_builddir in 1119.) ac_abs_top_builddir=${ac_top_builddir}.;; 1120*) 1121 case ${ac_top_builddir}. in 1122 .) ac_abs_top_builddir=$ac_abs_builddir;; 1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1125 esac;; 1126esac 1127case $ac_abs_builddir in 1128.) ac_abs_srcdir=$ac_srcdir;; 1129*) 1130 case $ac_srcdir in 1131 .) ac_abs_srcdir=$ac_abs_builddir;; 1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1134 esac;; 1135esac 1136case $ac_abs_builddir in 1137.) ac_abs_top_srcdir=$ac_top_srcdir;; 1138*) 1139 case $ac_top_srcdir in 1140 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1143 esac;; 1144esac 1145 1146 cd $ac_dir 1147 # Check for guested configure; otherwise get Cygnus style configure. 1148 if test -f $ac_srcdir/configure.gnu; then 1149 echo 1150 $SHELL $ac_srcdir/configure.gnu --help=recursive 1151 elif test -f $ac_srcdir/configure; then 1152 echo 1153 $SHELL $ac_srcdir/configure --help=recursive 1154 elif test -f $ac_srcdir/configure.ac || 1155 test -f $ac_srcdir/configure.in; then 1156 echo 1157 $ac_configure --help 1158 else 1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1160 fi 1161 cd $ac_popdir 1162 done 1163fi 1164 1165test -n "$ac_init_help" && exit 0 1166if $ac_init_version; then 1167 cat <<\_ACEOF 1168 1169Copyright (C) 2003 Free Software Foundation, Inc. 1170This configure script is free software; the Free Software Foundation 1171gives unlimited permission to copy, distribute and modify it. 1172_ACEOF 1173 exit 0 1174fi 1175exec 5>config.log 1176cat >&5 <<_ACEOF 1177This file contains any messages produced by compilers while 1178running configure, to aid debugging if configure makes a mistake. 1179 1180It was created by $as_me, which was 1181generated by GNU Autoconf 2.59. Invocation command line was 1182 1183 $ $0 $@ 1184 1185_ACEOF 1186{ 1187cat <<_ASUNAME 1188## --------- ## 1189## Platform. ## 1190## --------- ## 1191 1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1193uname -m = `(uname -m) 2>/dev/null || echo unknown` 1194uname -r = `(uname -r) 2>/dev/null || echo unknown` 1195uname -s = `(uname -s) 2>/dev/null || echo unknown` 1196uname -v = `(uname -v) 2>/dev/null || echo unknown` 1197 1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1199/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1200 1201/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1202/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1204hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1205/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1206/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1207/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1208 1209_ASUNAME 1210 1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1212for as_dir in $PATH 1213do 1214 IFS=$as_save_IFS 1215 test -z "$as_dir" && as_dir=. 1216 echo "PATH: $as_dir" 1217done 1218 1219} >&5 1220 1221cat >&5 <<_ACEOF 1222 1223 1224## ----------- ## 1225## Core tests. ## 1226## ----------- ## 1227 1228_ACEOF 1229 1230 1231# Keep a trace of the command line. 1232# Strip out --no-create and --no-recursion so they do not pile up. 1233# Strip out --silent because we don't want to record it for future runs. 1234# Also quote any args containing shell meta-characters. 1235# Make two passes to allow for proper duplicate-argument suppression. 1236ac_configure_args= 1237ac_configure_args0= 1238ac_configure_args1= 1239ac_sep= 1240ac_must_keep_next=false 1241for ac_pass in 1 2 1242do 1243 for ac_arg 1244 do 1245 case $ac_arg in 1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1248 | -silent | --silent | --silen | --sile | --sil) 1249 continue ;; 1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1252 esac 1253 case $ac_pass in 1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1255 2) 1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1257 if test $ac_must_keep_next = true; then 1258 ac_must_keep_next=false # Got value, back to normal. 1259 else 1260 case $ac_arg in 1261 *=* | --config-cache | -C | -disable-* | --disable-* \ 1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1264 | -with-* | --with-* | -without-* | --without-* | --x) 1265 case "$ac_configure_args0 " in 1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1267 esac 1268 ;; 1269 -* ) ac_must_keep_next=true ;; 1270 esac 1271 fi 1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1273 # Get rid of the leading space. 1274 ac_sep=" " 1275 ;; 1276 esac 1277 done 1278done 1279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1281 1282# When interrupted or exit'd, cleanup temporary files, and complete 1283# config.log. We remove comments because anyway the quotes in there 1284# would cause problems or look ugly. 1285# WARNING: Be sure not to use single quotes in there, as some shells, 1286# such as our DU 5.0 friend, will then `close' the trap. 1287trap 'exit_status=$? 1288 # Save into config.log some information that might help in debugging. 1289 { 1290 echo 1291 1292 cat <<\_ASBOX 1293## ---------------- ## 1294## Cache variables. ## 1295## ---------------- ## 1296_ASBOX 1297 echo 1298 # The following way of writing the cache mishandles newlines in values, 1299{ 1300 (set) 2>&1 | 1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1302 *ac_space=\ *) 1303 sed -n \ 1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1306 ;; 1307 *) 1308 sed -n \ 1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1310 ;; 1311 esac; 1312} 1313 echo 1314 1315 cat <<\_ASBOX 1316## ----------------- ## 1317## Output variables. ## 1318## ----------------- ## 1319_ASBOX 1320 echo 1321 for ac_var in $ac_subst_vars 1322 do 1323 eval ac_val=$`echo $ac_var` 1324 echo "$ac_var='"'"'$ac_val'"'"'" 1325 done | sort 1326 echo 1327 1328 if test -n "$ac_subst_files"; then 1329 cat <<\_ASBOX 1330## ------------- ## 1331## Output files. ## 1332## ------------- ## 1333_ASBOX 1334 echo 1335 for ac_var in $ac_subst_files 1336 do 1337 eval ac_val=$`echo $ac_var` 1338 echo "$ac_var='"'"'$ac_val'"'"'" 1339 done | sort 1340 echo 1341 fi 1342 1343 if test -s confdefs.h; then 1344 cat <<\_ASBOX 1345## ----------- ## 1346## confdefs.h. ## 1347## ----------- ## 1348_ASBOX 1349 echo 1350 sed "/^$/d" confdefs.h | sort 1351 echo 1352 fi 1353 test "$ac_signal" != 0 && 1354 echo "$as_me: caught signal $ac_signal" 1355 echo "$as_me: exit $exit_status" 1356 } >&5 1357 rm -f core *.core && 1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1359 exit $exit_status 1360 ' 0 1361for ac_signal in 1 2 13 15; do 1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1363done 1364ac_signal=0 1365 1366# confdefs.h avoids OS command line length limits that DEFS can exceed. 1367rm -rf conftest* confdefs.h 1368# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1369echo >confdefs.h 1370 1371# Predefined preprocessor variables. 1372 1373cat >>confdefs.h <<_ACEOF 1374#define PACKAGE_NAME "$PACKAGE_NAME" 1375_ACEOF 1376 1377 1378cat >>confdefs.h <<_ACEOF 1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1380_ACEOF 1381 1382 1383cat >>confdefs.h <<_ACEOF 1384#define PACKAGE_VERSION "$PACKAGE_VERSION" 1385_ACEOF 1386 1387 1388cat >>confdefs.h <<_ACEOF 1389#define PACKAGE_STRING "$PACKAGE_STRING" 1390_ACEOF 1391 1392 1393cat >>confdefs.h <<_ACEOF 1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1395_ACEOF 1396 1397 1398# Let the site file select an alternate cache file if it wants to. 1399# Prefer explicitly selected file to automatically selected ones. 1400if test -z "$CONFIG_SITE"; then 1401 if test "x$prefix" != xNONE; then 1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1403 else 1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1405 fi 1406fi 1407for ac_site_file in $CONFIG_SITE; do 1408 if test -r "$ac_site_file"; then 1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1410echo "$as_me: loading site script $ac_site_file" >&6;} 1411 sed 's/^/| /' "$ac_site_file" >&5 1412 . "$ac_site_file" 1413 fi 1414done 1415 1416if test -r "$cache_file"; then 1417 # Some versions of bash will fail to source /dev/null (special 1418 # files actually), so we avoid doing that. 1419 if test -f "$cache_file"; then 1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1421echo "$as_me: loading cache $cache_file" >&6;} 1422 case $cache_file in 1423 [\\/]* | ?:[\\/]* ) . $cache_file;; 1424 *) . ./$cache_file;; 1425 esac 1426 fi 1427else 1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1429echo "$as_me: creating cache $cache_file" >&6;} 1430 >$cache_file 1431fi 1432 1433# Check that the precious variables saved in the cache have kept the same 1434# value. 1435ac_cache_corrupted=false 1436for ac_var in `(set) 2>&1 | 1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1439 eval ac_new_set=\$ac_env_${ac_var}_set 1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1441 eval ac_new_val="\$ac_env_${ac_var}_value" 1442 case $ac_old_set,$ac_new_set in 1443 set,) 1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1446 ac_cache_corrupted=: ;; 1447 ,set) 1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1450 ac_cache_corrupted=: ;; 1451 ,);; 1452 *) 1453 if test "x$ac_old_val" != "x$ac_new_val"; then 1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1457echo "$as_me: former value: $ac_old_val" >&2;} 1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1459echo "$as_me: current value: $ac_new_val" >&2;} 1460 ac_cache_corrupted=: 1461 fi;; 1462 esac 1463 # Pass precious variables to config.status. 1464 if test "$ac_new_set" = set; then 1465 case $ac_new_val in 1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1468 *) ac_arg=$ac_var=$ac_new_val ;; 1469 esac 1470 case " $ac_configure_args " in 1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1473 esac 1474 fi 1475done 1476if $ac_cache_corrupted; then 1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1478echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1481 { (exit 1); exit 1; }; } 1482fi 1483 1484ac_ext=c 1485ac_cpp='$CPP $CPPFLAGS' 1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1488ac_compiler_gnu=$ac_cv_c_compiler_gnu 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 ac_config_headers="$ac_config_headers config.h" 1510 1511 ac_config_commands="$ac_config_commands default-1" 1512 1513 1514am__api_version="1.4" 1515ac_aux_dir= 1516for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1517 if test -f $ac_dir/install-sh; then 1518 ac_aux_dir=$ac_dir 1519 ac_install_sh="$ac_aux_dir/install-sh -c" 1520 break 1521 elif test -f $ac_dir/install.sh; then 1522 ac_aux_dir=$ac_dir 1523 ac_install_sh="$ac_aux_dir/install.sh -c" 1524 break 1525 elif test -f $ac_dir/shtool; then 1526 ac_aux_dir=$ac_dir 1527 ac_install_sh="$ac_aux_dir/shtool install -c" 1528 break 1529 fi 1530done 1531if test -z "$ac_aux_dir"; then 1532 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1533echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1534 { (exit 1); exit 1; }; } 1535fi 1536ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1537ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1538ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1539 1540# Find a good install program. We prefer a C program (faster), 1541# so one script is as good as another. But avoid the broken or 1542# incompatible versions: 1543# SysV /etc/install, /usr/sbin/install 1544# SunOS /usr/etc/install 1545# IRIX /sbin/install 1546# AIX /bin/install 1547# AmigaOS /C/install, which installs bootblocks on floppy discs 1548# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1549# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1550# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1551# OS/2's system install, which has a completely different semantic 1552# ./install, which can be erroneously created by make from ./install.sh. 1553echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1554echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1555if test -z "$INSTALL"; then 1556if test "${ac_cv_path_install+set}" = set; then 1557 echo $ECHO_N "(cached) $ECHO_C" >&6 1558else 1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1560for as_dir in $PATH 1561do 1562 IFS=$as_save_IFS 1563 test -z "$as_dir" && as_dir=. 1564 # Account for people who put trailing slashes in PATH elements. 1565case $as_dir/ in 1566 ./ | .// | /cC/* | \ 1567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1568 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1569 /usr/ucb/* ) ;; 1570 *) 1571 # OSF1 and SCO ODT 3.0 have their own names for install. 1572 # Don't use installbsd from OSF since it installs stuff as root 1573 # by default. 1574 for ac_prog in ginstall scoinst install; do 1575 for ac_exec_ext in '' $ac_executable_extensions; do 1576 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1577 if test $ac_prog = install && 1578 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1579 # AIX install. It has an incompatible calling convention. 1580 : 1581 elif test $ac_prog = install && 1582 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1583 # program-specific install script used by HP pwplus--don't use. 1584 : 1585 else 1586 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1587 break 3 1588 fi 1589 fi 1590 done 1591 done 1592 ;; 1593esac 1594done 1595 1596 1597fi 1598 if test "${ac_cv_path_install+set}" = set; then 1599 INSTALL=$ac_cv_path_install 1600 else 1601 # As a last resort, use the slow shell script. We don't cache a 1602 # path for INSTALL within a source directory, because that will 1603 # break other packages using the cache if that directory is 1604 # removed, or if the path is relative. 1605 INSTALL=$ac_install_sh 1606 fi 1607fi 1608echo "$as_me:$LINENO: result: $INSTALL" >&5 1609echo "${ECHO_T}$INSTALL" >&6 1610 1611# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1612# It thinks the first close brace ends the variable substitution. 1613test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1614 1615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1616 1617test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1618 1619echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1620echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1621# Just in case 1622sleep 1 1623echo timestamp > conftestfile 1624# Do `set' in a subshell so we don't clobber the current shell's 1625# arguments. Must try -L first in case configure is actually a 1626# symlink; some systems play weird games with the mod time of symlinks 1627# (eg FreeBSD returns the mod time of the symlink's containing 1628# directory). 1629if ( 1630 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 1631 if test "$*" = "X"; then 1632 # -L didn't work. 1633 set X `ls -t $srcdir/configure conftestfile` 1634 fi 1635 if test "$*" != "X $srcdir/configure conftestfile" \ 1636 && test "$*" != "X conftestfile $srcdir/configure"; then 1637 1638 # If neither matched, then we have a broken ls. This can happen 1639 # if, for instance, CONFIG_SHELL is bash and it inherits a 1640 # broken ls alias from the environment. This has actually 1641 # happened. Such a system could not be considered "sane". 1642 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1643alias in your environment" >&5 1644echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1645alias in your environment" >&2;} 1646 { (exit 1); exit 1; }; } 1647 fi 1648 1649 test "$2" = conftestfile 1650 ) 1651then 1652 # Ok. 1653 : 1654else 1655 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1656Check your system clock" >&5 1657echo "$as_me: error: newly created file is older than distributed files! 1658Check your system clock" >&2;} 1659 { (exit 1); exit 1; }; } 1660fi 1661rm -f conftest* 1662echo "$as_me:$LINENO: result: yes" >&5 1663echo "${ECHO_T}yes" >&6 1664test "$program_prefix" != NONE && 1665 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1666# Use a double $ so make ignores it. 1667test "$program_suffix" != NONE && 1668 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1669# Double any \ or $. echo might interpret backslashes. 1670# By default was `s,x,x', remove it if useless. 1671cat <<\_ACEOF >conftest.sed 1672s/[\\$]/&&/g;s/;s,x,x,$// 1673_ACEOF 1674program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1675rm conftest.sed 1676 1677echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1678echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1679set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1680if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1681 echo $ECHO_N "(cached) $ECHO_C" >&6 1682else 1683 cat >conftest.make <<\_ACEOF 1684all: 1685 @echo 'ac_maketemp="$(MAKE)"' 1686_ACEOF 1687# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1688eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1689if test -n "$ac_maketemp"; then 1690 eval ac_cv_prog_make_${ac_make}_set=yes 1691else 1692 eval ac_cv_prog_make_${ac_make}_set=no 1693fi 1694rm -f conftest.make 1695fi 1696if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1697 echo "$as_me:$LINENO: result: yes" >&5 1698echo "${ECHO_T}yes" >&6 1699 SET_MAKE= 1700else 1701 echo "$as_me:$LINENO: result: no" >&5 1702echo "${ECHO_T}no" >&6 1703 SET_MAKE="MAKE=${MAKE-make}" 1704fi 1705 1706 1707PACKAGE=xdelta 1708 1709VERSION=1.1.4 1710 1711if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 1712 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1713echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1714 { (exit 1); exit 1; }; } 1715fi 1716 1717 1718 1719missing_dir=`cd $ac_aux_dir && pwd` 1720echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 1721echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 1722# Run test in a subshell; some versions of sh will print an error if 1723# an executable is not found, even if stderr is redirected. 1724# Redirect stdin to placate older versions of autoconf. Sigh. 1725if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1726 ACLOCAL=aclocal-${am__api_version} 1727 echo "$as_me:$LINENO: result: found" >&5 1728echo "${ECHO_T}found" >&6 1729else 1730 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" 1731 echo "$as_me:$LINENO: result: missing" >&5 1732echo "${ECHO_T}missing" >&6 1733fi 1734 1735echo "$as_me:$LINENO: checking for working autoconf" >&5 1736echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 1737# Run test in a subshell; some versions of sh will print an error if 1738# an executable is not found, even if stderr is redirected. 1739# Redirect stdin to placate older versions of autoconf. Sigh. 1740if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1741 AUTOCONF=autoconf 1742 echo "$as_me:$LINENO: result: found" >&5 1743echo "${ECHO_T}found" >&6 1744else 1745 AUTOCONF="$missing_dir/missing autoconf" 1746 echo "$as_me:$LINENO: result: missing" >&5 1747echo "${ECHO_T}missing" >&6 1748fi 1749 1750echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 1751echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 1752# Run test in a subshell; some versions of sh will print an error if 1753# an executable is not found, even if stderr is redirected. 1754# Redirect stdin to placate older versions of autoconf. Sigh. 1755if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then 1756 AUTOMAKE=automake-${am__api_version} 1757 echo "$as_me:$LINENO: result: found" >&5 1758echo "${ECHO_T}found" >&6 1759else 1760 AUTOMAKE="$missing_dir/missing automake-${am__api_version}" 1761 echo "$as_me:$LINENO: result: missing" >&5 1762echo "${ECHO_T}missing" >&6 1763fi 1764 1765echo "$as_me:$LINENO: checking for working autoheader" >&5 1766echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 1767# Run test in a subshell; some versions of sh will print an error if 1768# an executable is not found, even if stderr is redirected. 1769# Redirect stdin to placate older versions of autoconf. Sigh. 1770if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1771 AUTOHEADER=autoheader 1772 echo "$as_me:$LINENO: result: found" >&5 1773echo "${ECHO_T}found" >&6 1774else 1775 AUTOHEADER="$missing_dir/missing autoheader" 1776 echo "$as_me:$LINENO: result: missing" >&5 1777echo "${ECHO_T}missing" >&6 1778fi 1779 1780echo "$as_me:$LINENO: checking for working makeinfo" >&5 1781echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 1782# Run test in a subshell; some versions of sh will print an error if 1783# an executable is not found, even if stderr is redirected. 1784# Redirect stdin to placate older versions of autoconf. Sigh. 1785if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1786 MAKEINFO=makeinfo 1787 echo "$as_me:$LINENO: result: found" >&5 1788echo "${ECHO_T}found" >&6 1789else 1790 MAKEINFO="$missing_dir/missing makeinfo" 1791 echo "$as_me:$LINENO: result: missing" >&5 1792echo "${ECHO_T}missing" >&6 1793fi 1794 1795 1796 1797echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1798echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1799 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1800if test "${enable_maintainer_mode+set}" = set; then 1801 enableval="$enable_maintainer_mode" 1802 USE_MAINTAINER_MODE=$enableval 1803else 1804 USE_MAINTAINER_MODE=no 1805fi; 1806 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1807echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1808 1809 1810if test $USE_MAINTAINER_MODE = yes; then 1811 MAINTAINER_MODE_TRUE= 1812 MAINTAINER_MODE_FALSE='#' 1813else 1814 MAINTAINER_MODE_TRUE='#' 1815 MAINTAINER_MODE_FALSE= 1816fi 1817 MAINT=$MAINTAINER_MODE_TRUE 1818 1819 1820 1821DEBUGFLAG= 1822PROFILEFLAG= 1823 1824# Check whether --enable-debug or --disable-debug was given. 1825if test "${enable_debug+set}" = set; then 1826 enableval="$enable_debug" 1827 1828fi; 1829# Check whether --enable-profile or --disable-profile was given. 1830if test "${enable_profile+set}" = set; then 1831 enableval="$enable_profile" 1832 1833fi; 1834 1835TMPCFLAGS="$CFLAGS" 1836CFLAGS= 1837 1838ac_ext=c 1839ac_cpp='$CPP $CPPFLAGS' 1840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1842ac_compiler_gnu=$ac_cv_c_compiler_gnu 1843if test -n "$ac_tool_prefix"; then 1844 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1845set dummy ${ac_tool_prefix}gcc; ac_word=$2 1846echo "$as_me:$LINENO: checking for $ac_word" >&5 1847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1848if test "${ac_cv_prog_CC+set}" = set; then 1849 echo $ECHO_N "(cached) $ECHO_C" >&6 1850else 1851 if test -n "$CC"; then 1852 ac_cv_prog_CC="$CC" # Let the user override the test. 1853else 1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1855for as_dir in $PATH 1856do 1857 IFS=$as_save_IFS 1858 test -z "$as_dir" && as_dir=. 1859 for ac_exec_ext in '' $ac_executable_extensions; do 1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1861 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1863 break 2 1864 fi 1865done 1866done 1867 1868fi 1869fi 1870CC=$ac_cv_prog_CC 1871if test -n "$CC"; then 1872 echo "$as_me:$LINENO: result: $CC" >&5 1873echo "${ECHO_T}$CC" >&6 1874else 1875 echo "$as_me:$LINENO: result: no" >&5 1876echo "${ECHO_T}no" >&6 1877fi 1878 1879fi 1880if test -z "$ac_cv_prog_CC"; then 1881 ac_ct_CC=$CC 1882 # Extract the first word of "gcc", so it can be a program name with args. 1883set dummy gcc; ac_word=$2 1884echo "$as_me:$LINENO: checking for $ac_word" >&5 1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1886if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1887 echo $ECHO_N "(cached) $ECHO_C" >&6 1888else 1889 if test -n "$ac_ct_CC"; then 1890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1891else 1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1893for as_dir in $PATH 1894do 1895 IFS=$as_save_IFS 1896 test -z "$as_dir" && as_dir=. 1897 for ac_exec_ext in '' $ac_executable_extensions; do 1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1899 ac_cv_prog_ac_ct_CC="gcc" 1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1901 break 2 1902 fi 1903done 1904done 1905 1906fi 1907fi 1908ac_ct_CC=$ac_cv_prog_ac_ct_CC 1909if test -n "$ac_ct_CC"; then 1910 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1911echo "${ECHO_T}$ac_ct_CC" >&6 1912else 1913 echo "$as_me:$LINENO: result: no" >&5 1914echo "${ECHO_T}no" >&6 1915fi 1916 1917 CC=$ac_ct_CC 1918else 1919 CC="$ac_cv_prog_CC" 1920fi 1921 1922if test -z "$CC"; then 1923 if test -n "$ac_tool_prefix"; then 1924 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1925set dummy ${ac_tool_prefix}cc; ac_word=$2 1926echo "$as_me:$LINENO: checking for $ac_word" >&5 1927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1928if test "${ac_cv_prog_CC+set}" = set; then 1929 echo $ECHO_N "(cached) $ECHO_C" >&6 1930else 1931 if test -n "$CC"; then 1932 ac_cv_prog_CC="$CC" # Let the user override the test. 1933else 1934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1935for as_dir in $PATH 1936do 1937 IFS=$as_save_IFS 1938 test -z "$as_dir" && as_dir=. 1939 for ac_exec_ext in '' $ac_executable_extensions; do 1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1941 ac_cv_prog_CC="${ac_tool_prefix}cc" 1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1943 break 2 1944 fi 1945done 1946done 1947 1948fi 1949fi 1950CC=$ac_cv_prog_CC 1951if test -n "$CC"; then 1952 echo "$as_me:$LINENO: result: $CC" >&5 1953echo "${ECHO_T}$CC" >&6 1954else 1955 echo "$as_me:$LINENO: result: no" >&5 1956echo "${ECHO_T}no" >&6 1957fi 1958 1959fi 1960if test -z "$ac_cv_prog_CC"; then 1961 ac_ct_CC=$CC 1962 # Extract the first word of "cc", so it can be a program name with args. 1963set dummy cc; ac_word=$2 1964echo "$as_me:$LINENO: checking for $ac_word" >&5 1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1966if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1967 echo $ECHO_N "(cached) $ECHO_C" >&6 1968else 1969 if test -n "$ac_ct_CC"; then 1970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1971else 1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1973for as_dir in $PATH 1974do 1975 IFS=$as_save_IFS 1976 test -z "$as_dir" && as_dir=. 1977 for ac_exec_ext in '' $ac_executable_extensions; do 1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1979 ac_cv_prog_ac_ct_CC="cc" 1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1981 break 2 1982 fi 1983done 1984done 1985 1986fi 1987fi 1988ac_ct_CC=$ac_cv_prog_ac_ct_CC 1989if test -n "$ac_ct_CC"; then 1990 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1991echo "${ECHO_T}$ac_ct_CC" >&6 1992else 1993 echo "$as_me:$LINENO: result: no" >&5 1994echo "${ECHO_T}no" >&6 1995fi 1996 1997 CC=$ac_ct_CC 1998else 1999 CC="$ac_cv_prog_CC" 2000fi 2001 2002fi 2003if test -z "$CC"; then 2004 # Extract the first word of "cc", so it can be a program name with args. 2005set dummy cc; ac_word=$2 2006echo "$as_me:$LINENO: checking for $ac_word" >&5 2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2008if test "${ac_cv_prog_CC+set}" = set; then 2009 echo $ECHO_N "(cached) $ECHO_C" >&6 2010else 2011 if test -n "$CC"; then 2012 ac_cv_prog_CC="$CC" # Let the user override the test. 2013else 2014 ac_prog_rejected=no 2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2016for as_dir in $PATH 2017do 2018 IFS=$as_save_IFS 2019 test -z "$as_dir" && as_dir=. 2020 for ac_exec_ext in '' $ac_executable_extensions; do 2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2022 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2023 ac_prog_rejected=yes 2024 continue 2025 fi 2026 ac_cv_prog_CC="cc" 2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2028 break 2 2029 fi 2030done 2031done 2032 2033if test $ac_prog_rejected = yes; then 2034 # We found a bogon in the path, so make sure we never use it. 2035 set dummy $ac_cv_prog_CC 2036 shift 2037 if test $# != 0; then 2038 # We chose a different compiler from the bogus one. 2039 # However, it has the same basename, so the bogon will be chosen 2040 # first if we set CC to just the basename; use the full file name. 2041 shift 2042 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2043 fi 2044fi 2045fi 2046fi 2047CC=$ac_cv_prog_CC 2048if test -n "$CC"; then 2049 echo "$as_me:$LINENO: result: $CC" >&5 2050echo "${ECHO_T}$CC" >&6 2051else 2052 echo "$as_me:$LINENO: result: no" >&5 2053echo "${ECHO_T}no" >&6 2054fi 2055 2056fi 2057if test -z "$CC"; then 2058 if test -n "$ac_tool_prefix"; then 2059 for ac_prog in cl 2060 do 2061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2062set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2063echo "$as_me:$LINENO: checking for $ac_word" >&5 2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2065if test "${ac_cv_prog_CC+set}" = set; then 2066 echo $ECHO_N "(cached) $ECHO_C" >&6 2067else 2068 if test -n "$CC"; then 2069 ac_cv_prog_CC="$CC" # Let the user override the test. 2070else 2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2072for as_dir in $PATH 2073do 2074 IFS=$as_save_IFS 2075 test -z "$as_dir" && as_dir=. 2076 for ac_exec_ext in '' $ac_executable_extensions; do 2077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2080 break 2 2081 fi 2082done 2083done 2084 2085fi 2086fi 2087CC=$ac_cv_prog_CC 2088if test -n "$CC"; then 2089 echo "$as_me:$LINENO: result: $CC" >&5 2090echo "${ECHO_T}$CC" >&6 2091else 2092 echo "$as_me:$LINENO: result: no" >&5 2093echo "${ECHO_T}no" >&6 2094fi 2095 2096 test -n "$CC" && break 2097 done 2098fi 2099if test -z "$CC"; then 2100 ac_ct_CC=$CC 2101 for ac_prog in cl 2102do 2103 # Extract the first word of "$ac_prog", so it can be a program name with args. 2104set dummy $ac_prog; ac_word=$2 2105echo "$as_me:$LINENO: checking for $ac_word" >&5 2106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2107if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2108 echo $ECHO_N "(cached) $ECHO_C" >&6 2109else 2110 if test -n "$ac_ct_CC"; then 2111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2112else 2113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2114for as_dir in $PATH 2115do 2116 IFS=$as_save_IFS 2117 test -z "$as_dir" && as_dir=. 2118 for ac_exec_ext in '' $ac_executable_extensions; do 2119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2120 ac_cv_prog_ac_ct_CC="$ac_prog" 2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2122 break 2 2123 fi 2124done 2125done 2126 2127fi 2128fi 2129ac_ct_CC=$ac_cv_prog_ac_ct_CC 2130if test -n "$ac_ct_CC"; then 2131 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2132echo "${ECHO_T}$ac_ct_CC" >&6 2133else 2134 echo "$as_me:$LINENO: result: no" >&5 2135echo "${ECHO_T}no" >&6 2136fi 2137 2138 test -n "$ac_ct_CC" && break 2139done 2140 2141 CC=$ac_ct_CC 2142fi 2143 2144fi 2145 2146 2147test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2148See \`config.log' for more details." >&5 2149echo "$as_me: error: no acceptable C compiler found in \$PATH 2150See \`config.log' for more details." >&2;} 2151 { (exit 1); exit 1; }; } 2152 2153# Provide some information about the compiler. 2154echo "$as_me:$LINENO:" \ 2155 "checking for C compiler version" >&5 2156ac_compiler=`set X $ac_compile; echo $2` 2157{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2158 (eval $ac_compiler --version </dev/null >&5) 2>&5 2159 ac_status=$? 2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2161 (exit $ac_status); } 2162{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2163 (eval $ac_compiler -v </dev/null >&5) 2>&5 2164 ac_status=$? 2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2166 (exit $ac_status); } 2167{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2168 (eval $ac_compiler -V </dev/null >&5) 2>&5 2169 ac_status=$? 2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2171 (exit $ac_status); } 2172 2173cat >conftest.$ac_ext <<_ACEOF 2174/* confdefs.h. */ 2175_ACEOF 2176cat confdefs.h >>conftest.$ac_ext 2177cat >>conftest.$ac_ext <<_ACEOF 2178/* end confdefs.h. */ 2179 2180int 2181main () 2182{ 2183 2184 ; 2185 return 0; 2186} 2187_ACEOF 2188ac_clean_files_save=$ac_clean_files 2189ac_clean_files="$ac_clean_files a.out a.exe b.out" 2190# Try to create an executable without -o first, disregard a.out. 2191# It will help us diagnose broken compilers, and finding out an intuition 2192# of exeext. 2193echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2194echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2195ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2196if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2197 (eval $ac_link_default) 2>&5 2198 ac_status=$? 2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2200 (exit $ac_status); }; then 2201 # Find the output, starting from the most likely. This scheme is 2202# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2203# resort. 2204 2205# Be careful to initialize this variable, since it used to be cached. 2206# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2207ac_cv_exeext= 2208# b.out is created by i960 compilers. 2209for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2210do 2211 test -f "$ac_file" || continue 2212 case $ac_file in 2213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2214 ;; 2215 conftest.$ac_ext ) 2216 # This is the source file. 2217 ;; 2218 [ab].out ) 2219 # We found the default executable, but exeext='' is most 2220 # certainly right. 2221 break;; 2222 *.* ) 2223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2224 # FIXME: I believe we export ac_cv_exeext for Libtool, 2225 # but it would be cool to find out if it's true. Does anybody 2226 # maintain Libtool? --akim. 2227 export ac_cv_exeext 2228 break;; 2229 * ) 2230 break;; 2231 esac 2232done 2233else 2234 echo "$as_me: failed program was:" >&5 2235sed 's/^/| /' conftest.$ac_ext >&5 2236 2237{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2238See \`config.log' for more details." >&5 2239echo "$as_me: error: C compiler cannot create executables 2240See \`config.log' for more details." >&2;} 2241 { (exit 77); exit 77; }; } 2242fi 2243 2244ac_exeext=$ac_cv_exeext 2245echo "$as_me:$LINENO: result: $ac_file" >&5 2246echo "${ECHO_T}$ac_file" >&6 2247 2248# Check the compiler produces executables we can run. If not, either 2249# the compiler is broken, or we cross compile. 2250echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2251echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2252# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2253# If not cross compiling, check that we can run a simple program. 2254if test "$cross_compiling" != yes; then 2255 if { ac_try='./$ac_file' 2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2257 (eval $ac_try) 2>&5 2258 ac_status=$? 2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2260 (exit $ac_status); }; }; then 2261 cross_compiling=no 2262 else 2263 if test "$cross_compiling" = maybe; then 2264 cross_compiling=yes 2265 else 2266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2267If you meant to cross compile, use \`--host'. 2268See \`config.log' for more details." >&5 2269echo "$as_me: error: cannot run C compiled programs. 2270If you meant to cross compile, use \`--host'. 2271See \`config.log' for more details." >&2;} 2272 { (exit 1); exit 1; }; } 2273 fi 2274 fi 2275fi 2276echo "$as_me:$LINENO: result: yes" >&5 2277echo "${ECHO_T}yes" >&6 2278 2279rm -f a.out a.exe conftest$ac_cv_exeext b.out 2280ac_clean_files=$ac_clean_files_save 2281# Check the compiler produces executables we can run. If not, either 2282# the compiler is broken, or we cross compile. 2283echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2284echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2285echo "$as_me:$LINENO: result: $cross_compiling" >&5 2286echo "${ECHO_T}$cross_compiling" >&6 2287 2288echo "$as_me:$LINENO: checking for suffix of executables" >&5 2289echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2291 (eval $ac_link) 2>&5 2292 ac_status=$? 2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2294 (exit $ac_status); }; then 2295 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2296# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2297# work properly (i.e., refer to `conftest.exe'), while it won't with 2298# `rm'. 2299for ac_file in conftest.exe conftest conftest.*; do 2300 test -f "$ac_file" || continue 2301 case $ac_file in 2302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2303 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2304 export ac_cv_exeext 2305 break;; 2306 * ) break;; 2307 esac 2308done 2309else 2310 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2311See \`config.log' for more details." >&5 2312echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2313See \`config.log' for more details." >&2;} 2314 { (exit 1); exit 1; }; } 2315fi 2316 2317rm -f conftest$ac_cv_exeext 2318echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2319echo "${ECHO_T}$ac_cv_exeext" >&6 2320 2321rm -f conftest.$ac_ext 2322EXEEXT=$ac_cv_exeext 2323ac_exeext=$EXEEXT 2324echo "$as_me:$LINENO: checking for suffix of object files" >&5 2325echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2326if test "${ac_cv_objext+set}" = set; then 2327 echo $ECHO_N "(cached) $ECHO_C" >&6 2328else 2329 cat >conftest.$ac_ext <<_ACEOF 2330/* confdefs.h. */ 2331_ACEOF 2332cat confdefs.h >>conftest.$ac_ext 2333cat >>conftest.$ac_ext <<_ACEOF 2334/* end confdefs.h. */ 2335 2336int 2337main () 2338{ 2339 2340 ; 2341 return 0; 2342} 2343_ACEOF 2344rm -f conftest.o conftest.obj 2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2346 (eval $ac_compile) 2>&5 2347 ac_status=$? 2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2349 (exit $ac_status); }; then 2350 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2351 case $ac_file in 2352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2353 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2354 break;; 2355 esac 2356done 2357else 2358 echo "$as_me: failed program was:" >&5 2359sed 's/^/| /' conftest.$ac_ext >&5 2360 2361{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2362See \`config.log' for more details." >&5 2363echo "$as_me: error: cannot compute suffix of object files: cannot compile 2364See \`config.log' for more details." >&2;} 2365 { (exit 1); exit 1; }; } 2366fi 2367 2368rm -f conftest.$ac_cv_objext conftest.$ac_ext 2369fi 2370echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2371echo "${ECHO_T}$ac_cv_objext" >&6 2372OBJEXT=$ac_cv_objext 2373ac_objext=$OBJEXT 2374echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2375echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2376if test "${ac_cv_c_compiler_gnu+set}" = set; then 2377 echo $ECHO_N "(cached) $ECHO_C" >&6 2378else 2379 cat >conftest.$ac_ext <<_ACEOF 2380/* confdefs.h. */ 2381_ACEOF 2382cat confdefs.h >>conftest.$ac_ext 2383cat >>conftest.$ac_ext <<_ACEOF 2384/* end confdefs.h. */ 2385 2386int 2387main () 2388{ 2389#ifndef __GNUC__ 2390 choke me 2391#endif 2392 2393 ; 2394 return 0; 2395} 2396_ACEOF 2397rm -f conftest.$ac_objext 2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2399 (eval $ac_compile) 2>conftest.er1 2400 ac_status=$? 2401 grep -v '^ *+' conftest.er1 >conftest.err 2402 rm -f conftest.er1 2403 cat conftest.err >&5 2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2405 (exit $ac_status); } && 2406 { ac_try='test -z "$ac_c_werror_flag" 2407 || test ! -s conftest.err' 2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2409 (eval $ac_try) 2>&5 2410 ac_status=$? 2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2412 (exit $ac_status); }; } && 2413 { ac_try='test -s conftest.$ac_objext' 2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2415 (eval $ac_try) 2>&5 2416 ac_status=$? 2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2418 (exit $ac_status); }; }; then 2419 ac_compiler_gnu=yes 2420else 2421 echo "$as_me: failed program was:" >&5 2422sed 's/^/| /' conftest.$ac_ext >&5 2423 2424ac_compiler_gnu=no 2425fi 2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2427ac_cv_c_compiler_gnu=$ac_compiler_gnu 2428 2429fi 2430echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2431echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2432GCC=`test $ac_compiler_gnu = yes && echo yes` 2433ac_test_CFLAGS=${CFLAGS+set} 2434ac_save_CFLAGS=$CFLAGS 2435CFLAGS="-g" 2436echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2437echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2438if test "${ac_cv_prog_cc_g+set}" = set; then 2439 echo $ECHO_N "(cached) $ECHO_C" >&6 2440else 2441 cat >conftest.$ac_ext <<_ACEOF 2442/* confdefs.h. */ 2443_ACEOF 2444cat confdefs.h >>conftest.$ac_ext 2445cat >>conftest.$ac_ext <<_ACEOF 2446/* end confdefs.h. */ 2447 2448int 2449main () 2450{ 2451 2452 ; 2453 return 0; 2454} 2455_ACEOF 2456rm -f conftest.$ac_objext 2457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2458 (eval $ac_compile) 2>conftest.er1 2459 ac_status=$? 2460 grep -v '^ *+' conftest.er1 >conftest.err 2461 rm -f conftest.er1 2462 cat conftest.err >&5 2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2464 (exit $ac_status); } && 2465 { ac_try='test -z "$ac_c_werror_flag" 2466 || test ! -s conftest.err' 2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2468 (eval $ac_try) 2>&5 2469 ac_status=$? 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); }; } && 2472 { ac_try='test -s conftest.$ac_objext' 2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2474 (eval $ac_try) 2>&5 2475 ac_status=$? 2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2477 (exit $ac_status); }; }; then 2478 ac_cv_prog_cc_g=yes 2479else 2480 echo "$as_me: failed program was:" >&5 2481sed 's/^/| /' conftest.$ac_ext >&5 2482 2483ac_cv_prog_cc_g=no 2484fi 2485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2486fi 2487echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2488echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2489if test "$ac_test_CFLAGS" = set; then 2490 CFLAGS=$ac_save_CFLAGS 2491elif test $ac_cv_prog_cc_g = yes; then 2492 if test "$GCC" = yes; then 2493 CFLAGS="-g -O2" 2494 else 2495 CFLAGS="-g" 2496 fi 2497else 2498 if test "$GCC" = yes; then 2499 CFLAGS="-O2" 2500 else 2501 CFLAGS= 2502 fi 2503fi 2504echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2505echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2506if test "${ac_cv_prog_cc_stdc+set}" = set; then 2507 echo $ECHO_N "(cached) $ECHO_C" >&6 2508else 2509 ac_cv_prog_cc_stdc=no 2510ac_save_CC=$CC 2511cat >conftest.$ac_ext <<_ACEOF 2512/* confdefs.h. */ 2513_ACEOF 2514cat confdefs.h >>conftest.$ac_ext 2515cat >>conftest.$ac_ext <<_ACEOF 2516/* end confdefs.h. */ 2517#include <stdarg.h> 2518#include <stdio.h> 2519#include <sys/types.h> 2520#include <sys/stat.h> 2521/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2522struct buf { int x; }; 2523FILE * (*rcsopen) (struct buf *, struct stat *, int); 2524static char *e (p, i) 2525 char **p; 2526 int i; 2527{ 2528 return p[i]; 2529} 2530static char *f (char * (*g) (char **, int), char **p, ...) 2531{ 2532 char *s; 2533 va_list v; 2534 va_start (v,p); 2535 s = g (p, va_arg (v,int)); 2536 va_end (v); 2537 return s; 2538} 2539 2540/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2541 function prototypes and stuff, but not '\xHH' hex character constants. 2542 These don't provoke an error unfortunately, instead are silently treated 2543 as 'x'. The following induces an error, until -std1 is added to get 2544 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2545 array size at least. It's necessary to write '\x00'==0 to get something 2546 that's true only with -std1. */ 2547int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2548 2549int test (int i, double x); 2550struct s1 {int (*f) (int a);}; 2551struct s2 {int (*f) (double a);}; 2552int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2553int argc; 2554char **argv; 2555int 2556main () 2557{ 2558return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2559 ; 2560 return 0; 2561} 2562_ACEOF 2563# Don't try gcc -ansi; that turns off useful extensions and 2564# breaks some systems' header files. 2565# AIX -qlanglvl=ansi 2566# Ultrix and OSF/1 -std1 2567# HP-UX 10.20 and later -Ae 2568# HP-UX older versions -Aa -D_HPUX_SOURCE 2569# SVR4 -Xc -D__EXTENSIONS__ 2570for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2571do 2572 CC="$ac_save_CC $ac_arg" 2573 rm -f conftest.$ac_objext 2574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2575 (eval $ac_compile) 2>conftest.er1 2576 ac_status=$? 2577 grep -v '^ *+' conftest.er1 >conftest.err 2578 rm -f conftest.er1 2579 cat conftest.err >&5 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); } && 2582 { ac_try='test -z "$ac_c_werror_flag" 2583 || test ! -s conftest.err' 2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2585 (eval $ac_try) 2>&5 2586 ac_status=$? 2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 (exit $ac_status); }; } && 2589 { ac_try='test -s conftest.$ac_objext' 2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2591 (eval $ac_try) 2>&5 2592 ac_status=$? 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); }; }; then 2595 ac_cv_prog_cc_stdc=$ac_arg 2596break 2597else 2598 echo "$as_me: failed program was:" >&5 2599sed 's/^/| /' conftest.$ac_ext >&5 2600 2601fi 2602rm -f conftest.err conftest.$ac_objext 2603done 2604rm -f conftest.$ac_ext conftest.$ac_objext 2605CC=$ac_save_CC 2606 2607fi 2608 2609case "x$ac_cv_prog_cc_stdc" in 2610 x|xno) 2611 echo "$as_me:$LINENO: result: none needed" >&5 2612echo "${ECHO_T}none needed" >&6 ;; 2613 *) 2614 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2615echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2616 CC="$CC $ac_cv_prog_cc_stdc" ;; 2617esac 2618 2619# Some people use a C++ compiler to compile C. Since we use `exit', 2620# in C++ we need to declare it. In case someone uses the same compiler 2621# for both compiling C and C++ we need to have the C++ compiler decide 2622# the declaration of exit, since it's the most demanding environment. 2623cat >conftest.$ac_ext <<_ACEOF 2624#ifndef __cplusplus 2625 choke me 2626#endif 2627_ACEOF 2628rm -f conftest.$ac_objext 2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2630 (eval $ac_compile) 2>conftest.er1 2631 ac_status=$? 2632 grep -v '^ *+' conftest.er1 >conftest.err 2633 rm -f conftest.er1 2634 cat conftest.err >&5 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2636 (exit $ac_status); } && 2637 { ac_try='test -z "$ac_c_werror_flag" 2638 || test ! -s conftest.err' 2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2640 (eval $ac_try) 2>&5 2641 ac_status=$? 2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2643 (exit $ac_status); }; } && 2644 { ac_try='test -s conftest.$ac_objext' 2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2646 (eval $ac_try) 2>&5 2647 ac_status=$? 2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2649 (exit $ac_status); }; }; then 2650 for ac_declaration in \ 2651 '' \ 2652 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2653 'extern "C" void std::exit (int); using std::exit;' \ 2654 'extern "C" void exit (int) throw ();' \ 2655 'extern "C" void exit (int);' \ 2656 'void exit (int);' 2657do 2658 cat >conftest.$ac_ext <<_ACEOF 2659/* confdefs.h. */ 2660_ACEOF 2661cat confdefs.h >>conftest.$ac_ext 2662cat >>conftest.$ac_ext <<_ACEOF 2663/* end confdefs.h. */ 2664$ac_declaration 2665#include <stdlib.h> 2666int 2667main () 2668{ 2669exit (42); 2670 ; 2671 return 0; 2672} 2673_ACEOF 2674rm -f conftest.$ac_objext 2675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2676 (eval $ac_compile) 2>conftest.er1 2677 ac_status=$? 2678 grep -v '^ *+' conftest.er1 >conftest.err 2679 rm -f conftest.er1 2680 cat conftest.err >&5 2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2682 (exit $ac_status); } && 2683 { ac_try='test -z "$ac_c_werror_flag" 2684 || test ! -s conftest.err' 2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2686 (eval $ac_try) 2>&5 2687 ac_status=$? 2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2689 (exit $ac_status); }; } && 2690 { ac_try='test -s conftest.$ac_objext' 2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2692 (eval $ac_try) 2>&5 2693 ac_status=$? 2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2695 (exit $ac_status); }; }; then 2696 : 2697else 2698 echo "$as_me: failed program was:" >&5 2699sed 's/^/| /' conftest.$ac_ext >&5 2700 2701continue 2702fi 2703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2704 cat >conftest.$ac_ext <<_ACEOF 2705/* confdefs.h. */ 2706_ACEOF 2707cat confdefs.h >>conftest.$ac_ext 2708cat >>conftest.$ac_ext <<_ACEOF 2709/* end confdefs.h. */ 2710$ac_declaration 2711int 2712main () 2713{ 2714exit (42); 2715 ; 2716 return 0; 2717} 2718_ACEOF 2719rm -f conftest.$ac_objext 2720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2721 (eval $ac_compile) 2>conftest.er1 2722 ac_status=$? 2723 grep -v '^ *+' conftest.er1 >conftest.err 2724 rm -f conftest.er1 2725 cat conftest.err >&5 2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2727 (exit $ac_status); } && 2728 { ac_try='test -z "$ac_c_werror_flag" 2729 || test ! -s conftest.err' 2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2731 (eval $ac_try) 2>&5 2732 ac_status=$? 2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2734 (exit $ac_status); }; } && 2735 { ac_try='test -s conftest.$ac_objext' 2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2737 (eval $ac_try) 2>&5 2738 ac_status=$? 2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740 (exit $ac_status); }; }; then 2741 break 2742else 2743 echo "$as_me: failed program was:" >&5 2744sed 's/^/| /' conftest.$ac_ext >&5 2745 2746fi 2747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2748done 2749rm -f conftest* 2750if test -n "$ac_declaration"; then 2751 echo '#ifdef __cplusplus' >>confdefs.h 2752 echo $ac_declaration >>confdefs.h 2753 echo '#endif' >>confdefs.h 2754fi 2755 2756else 2757 echo "$as_me: failed program was:" >&5 2758sed 's/^/| /' conftest.$ac_ext >&5 2759 2760fi 2761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2762ac_ext=c 2763ac_cpp='$CPP $CPPFLAGS' 2764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2766ac_compiler_gnu=$ac_cv_c_compiler_gnu 2767 2768ac_ext=c 2769ac_cpp='$CPP $CPPFLAGS' 2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2772ac_compiler_gnu=$ac_cv_c_compiler_gnu 2773echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2774echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2775# On Suns, sometimes $CPP names a directory. 2776if test -n "$CPP" && test -d "$CPP"; then 2777 CPP= 2778fi 2779if test -z "$CPP"; then 2780 if test "${ac_cv_prog_CPP+set}" = set; then 2781 echo $ECHO_N "(cached) $ECHO_C" >&6 2782else 2783 # Double quotes because CPP needs to be expanded 2784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2785 do 2786 ac_preproc_ok=false 2787for ac_c_preproc_warn_flag in '' yes 2788do 2789 # Use a header file that comes with gcc, so configuring glibc 2790 # with a fresh cross-compiler works. 2791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2792 # <limits.h> exists even on freestanding compilers. 2793 # On the NeXT, cc -E runs the code through the compiler's parser, 2794 # not just through cpp. "Syntax error" is here to catch this case. 2795 cat >conftest.$ac_ext <<_ACEOF 2796/* confdefs.h. */ 2797_ACEOF 2798cat confdefs.h >>conftest.$ac_ext 2799cat >>conftest.$ac_ext <<_ACEOF 2800/* end confdefs.h. */ 2801#ifdef __STDC__ 2802# include <limits.h> 2803#else 2804# include <assert.h> 2805#endif 2806 Syntax error 2807_ACEOF 2808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2810 ac_status=$? 2811 grep -v '^ *+' conftest.er1 >conftest.err 2812 rm -f conftest.er1 2813 cat conftest.err >&5 2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2815 (exit $ac_status); } >/dev/null; then 2816 if test -s conftest.err; then 2817 ac_cpp_err=$ac_c_preproc_warn_flag 2818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2819 else 2820 ac_cpp_err= 2821 fi 2822else 2823 ac_cpp_err=yes 2824fi 2825if test -z "$ac_cpp_err"; then 2826 : 2827else 2828 echo "$as_me: failed program was:" >&5 2829sed 's/^/| /' conftest.$ac_ext >&5 2830 2831 # Broken: fails on valid input. 2832continue 2833fi 2834rm -f conftest.err conftest.$ac_ext 2835 2836 # OK, works on sane cases. Now check whether non-existent headers 2837 # can be detected and how. 2838 cat >conftest.$ac_ext <<_ACEOF 2839/* confdefs.h. */ 2840_ACEOF 2841cat confdefs.h >>conftest.$ac_ext 2842cat >>conftest.$ac_ext <<_ACEOF 2843/* end confdefs.h. */ 2844#include <ac_nonexistent.h> 2845_ACEOF 2846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2848 ac_status=$? 2849 grep -v '^ *+' conftest.er1 >conftest.err 2850 rm -f conftest.er1 2851 cat conftest.err >&5 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); } >/dev/null; then 2854 if test -s conftest.err; then 2855 ac_cpp_err=$ac_c_preproc_warn_flag 2856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2857 else 2858 ac_cpp_err= 2859 fi 2860else 2861 ac_cpp_err=yes 2862fi 2863if test -z "$ac_cpp_err"; then 2864 # Broken: success on invalid input. 2865continue 2866else 2867 echo "$as_me: failed program was:" >&5 2868sed 's/^/| /' conftest.$ac_ext >&5 2869 2870 # Passes both tests. 2871ac_preproc_ok=: 2872break 2873fi 2874rm -f conftest.err conftest.$ac_ext 2875 2876done 2877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2878rm -f conftest.err conftest.$ac_ext 2879if $ac_preproc_ok; then 2880 break 2881fi 2882 2883 done 2884 ac_cv_prog_CPP=$CPP 2885 2886fi 2887 CPP=$ac_cv_prog_CPP 2888else 2889 ac_cv_prog_CPP=$CPP 2890fi 2891echo "$as_me:$LINENO: result: $CPP" >&5 2892echo "${ECHO_T}$CPP" >&6 2893ac_preproc_ok=false 2894for ac_c_preproc_warn_flag in '' yes 2895do 2896 # Use a header file that comes with gcc, so configuring glibc 2897 # with a fresh cross-compiler works. 2898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2899 # <limits.h> exists even on freestanding compilers. 2900 # On the NeXT, cc -E runs the code through the compiler's parser, 2901 # not just through cpp. "Syntax error" is here to catch this case. 2902 cat >conftest.$ac_ext <<_ACEOF 2903/* confdefs.h. */ 2904_ACEOF 2905cat confdefs.h >>conftest.$ac_ext 2906cat >>conftest.$ac_ext <<_ACEOF 2907/* end confdefs.h. */ 2908#ifdef __STDC__ 2909# include <limits.h> 2910#else 2911# include <assert.h> 2912#endif 2913 Syntax error 2914_ACEOF 2915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2917 ac_status=$? 2918 grep -v '^ *+' conftest.er1 >conftest.err 2919 rm -f conftest.er1 2920 cat conftest.err >&5 2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2922 (exit $ac_status); } >/dev/null; then 2923 if test -s conftest.err; then 2924 ac_cpp_err=$ac_c_preproc_warn_flag 2925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2926 else 2927 ac_cpp_err= 2928 fi 2929else 2930 ac_cpp_err=yes 2931fi 2932if test -z "$ac_cpp_err"; then 2933 : 2934else 2935 echo "$as_me: failed program was:" >&5 2936sed 's/^/| /' conftest.$ac_ext >&5 2937 2938 # Broken: fails on valid input. 2939continue 2940fi 2941rm -f conftest.err conftest.$ac_ext 2942 2943 # OK, works on sane cases. Now check whether non-existent headers 2944 # can be detected and how. 2945 cat >conftest.$ac_ext <<_ACEOF 2946/* confdefs.h. */ 2947_ACEOF 2948cat confdefs.h >>conftest.$ac_ext 2949cat >>conftest.$ac_ext <<_ACEOF 2950/* end confdefs.h. */ 2951#include <ac_nonexistent.h> 2952_ACEOF 2953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2955 ac_status=$? 2956 grep -v '^ *+' conftest.er1 >conftest.err 2957 rm -f conftest.er1 2958 cat conftest.err >&5 2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2960 (exit $ac_status); } >/dev/null; then 2961 if test -s conftest.err; then 2962 ac_cpp_err=$ac_c_preproc_warn_flag 2963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2964 else 2965 ac_cpp_err= 2966 fi 2967else 2968 ac_cpp_err=yes 2969fi 2970if test -z "$ac_cpp_err"; then 2971 # Broken: success on invalid input. 2972continue 2973else 2974 echo "$as_me: failed program was:" >&5 2975sed 's/^/| /' conftest.$ac_ext >&5 2976 2977 # Passes both tests. 2978ac_preproc_ok=: 2979break 2980fi 2981rm -f conftest.err conftest.$ac_ext 2982 2983done 2984# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2985rm -f conftest.err conftest.$ac_ext 2986if $ac_preproc_ok; then 2987 : 2988else 2989 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2990See \`config.log' for more details." >&5 2991echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2992See \`config.log' for more details." >&2;} 2993 { (exit 1); exit 1; }; } 2994fi 2995 2996ac_ext=c 2997ac_cpp='$CPP $CPPFLAGS' 2998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3000ac_compiler_gnu=$ac_cv_c_compiler_gnu 3001 3002 3003CFLAGS=$TMPCFLAGS 3004 3005if test "x$GCC" = "xyes"; then 3006 case " $CFLAGS " in 3007 *[\ \ ]-Wall[\ \ ]*) ;; 3008 *) CFLAGS="$CFLAGS -Wall" ;; 3009 esac 3010 3011 if test "x$enable_debug" = "xyes"; then 3012 DEBUGFLAG="-g" 3013 fi 3014 3015 if test "x$enable_profile" = "xyes"; then 3016 PROFILEFLAG="-pg" 3017 fi 3018 3019 if test -n "$DEBUGFLAG"; then 3020 case " $CFLAGS " in 3021 *[\ \ ]$DEBUGFLAG[\ \ ]*) ;; 3022 *) CFLAGS="$DEBUGFLAG $CFLAGS" ;; 3023 esac 3024 else 3025 case " $CFLAGS " in 3026 *[\ \ ]-O[0-9\ \ ]*) ;; 3027 *) CFLAGS="$CFLAGS -O3" ;; 3028 esac 3029 fi 3030 3031 if test -n "$PROFILEFLAG"; then 3032 case " $CFLAGS " in 3033 *[\ \ ]$PROFILEFLAG[\ \ ]*) ;; 3034 *) CFLAGS="$PROFILEFLAG $CFLAGS" ;; 3035 esac 3036 fi 3037fi 3038 3039# Check whether --enable-shared or --disable-shared was given. 3040if test "${enable_shared+set}" = set; then 3041 enableval="$enable_shared" 3042 p=${PACKAGE-default} 3043 case $enableval in 3044 yes) enable_shared=yes ;; 3045 no) enable_shared=no ;; 3046 *) 3047 enable_shared=no 3048 # Look at the argument we got. We use all the common list separators. 3049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3050 for pkg in $enableval; do 3051 IFS="$lt_save_ifs" 3052 if test "X$pkg" = "X$p"; then 3053 enable_shared=yes 3054 fi 3055 done 3056 IFS="$lt_save_ifs" 3057 ;; 3058 esac 3059else 3060 enable_shared=yes 3061fi; 3062 3063# Check whether --enable-static or --disable-static was given. 3064if test "${enable_static+set}" = set; then 3065 enableval="$enable_static" 3066 p=${PACKAGE-default} 3067 case $enableval in 3068 yes) enable_static=yes ;; 3069 no) enable_static=no ;; 3070 *) 3071 enable_static=no 3072 # Look at the argument we got. We use all the common list separators. 3073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3074 for pkg in $enableval; do 3075 IFS="$lt_save_ifs" 3076 if test "X$pkg" = "X$p"; then 3077 enable_static=yes 3078 fi 3079 done 3080 IFS="$lt_save_ifs" 3081 ;; 3082 esac 3083else 3084 enable_static=yes 3085fi; 3086 3087# Check whether --enable-fast-install or --disable-fast-install was given. 3088if test "${enable_fast_install+set}" = set; then 3089 enableval="$enable_fast_install" 3090 p=${PACKAGE-default} 3091 case $enableval in 3092 yes) enable_fast_install=yes ;; 3093 no) enable_fast_install=no ;; 3094 *) 3095 enable_fast_install=no 3096 # Look at the argument we got. We use all the common list separators. 3097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3098 for pkg in $enableval; do 3099 IFS="$lt_save_ifs" 3100 if test "X$pkg" = "X$p"; then 3101 enable_fast_install=yes 3102 fi 3103 done 3104 IFS="$lt_save_ifs" 3105 ;; 3106 esac 3107else 3108 enable_fast_install=yes 3109fi; 3110 3111# Make sure we can run config.sub. 3112$ac_config_sub sun4 >/dev/null 2>&1 || 3113 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3114echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3115 { (exit 1); exit 1; }; } 3116 3117echo "$as_me:$LINENO: checking build system type" >&5 3118echo $ECHO_N "checking build system type... $ECHO_C" >&6 3119if test "${ac_cv_build+set}" = set; then 3120 echo $ECHO_N "(cached) $ECHO_C" >&6 3121else 3122 ac_cv_build_alias=$build_alias 3123test -z "$ac_cv_build_alias" && 3124 ac_cv_build_alias=`$ac_config_guess` 3125test -z "$ac_cv_build_alias" && 3126 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3127echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3128 { (exit 1); exit 1; }; } 3129ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3130 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3131echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3132 { (exit 1); exit 1; }; } 3133 3134fi 3135echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3136echo "${ECHO_T}$ac_cv_build" >&6 3137build=$ac_cv_build 3138build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3139build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3140build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3141 3142 3143echo "$as_me:$LINENO: checking host system type" >&5 3144echo $ECHO_N "checking host system type... $ECHO_C" >&6 3145if test "${ac_cv_host+set}" = set; then 3146 echo $ECHO_N "(cached) $ECHO_C" >&6 3147else 3148 ac_cv_host_alias=$host_alias 3149test -z "$ac_cv_host_alias" && 3150 ac_cv_host_alias=$ac_cv_build_alias 3151ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3152 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3153echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3154 { (exit 1); exit 1; }; } 3155 3156fi 3157echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3158echo "${ECHO_T}$ac_cv_host" >&6 3159host=$ac_cv_host 3160host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3161host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3162host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3163 3164 3165echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3166echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3167if test "${lt_cv_path_SED+set}" = set; then 3168 echo $ECHO_N "(cached) $ECHO_C" >&6 3169else 3170 # Loop through the user's path and test for sed and gsed. 3171# Then use that list of sed's as ones to test for truncation. 3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3173for as_dir in $PATH 3174do 3175 IFS=$as_save_IFS 3176 test -z "$as_dir" && as_dir=. 3177 for lt_ac_prog in sed gsed; do 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3180 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3181 fi 3182 done 3183 done 3184done 3185lt_ac_max=0 3186lt_ac_count=0 3187# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3188# along with /bin/sed that truncates output. 3189for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3190 test ! -f $lt_ac_sed && continue 3191 cat /dev/null > conftest.in 3192 lt_ac_count=0 3193 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3194 # Check for GNU sed and select it if it is found. 3195 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3196 lt_cv_path_SED=$lt_ac_sed 3197 break 3198 fi 3199 while true; do 3200 cat conftest.in conftest.in >conftest.tmp 3201 mv conftest.tmp conftest.in 3202 cp conftest.in conftest.nl 3203 echo >>conftest.nl 3204 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3205 cmp -s conftest.out conftest.nl || break 3206 # 10000 chars as input seems more than enough 3207 test $lt_ac_count -gt 10 && break 3208 lt_ac_count=`expr $lt_ac_count + 1` 3209 if test $lt_ac_count -gt $lt_ac_max; then 3210 lt_ac_max=$lt_ac_count 3211 lt_cv_path_SED=$lt_ac_sed 3212 fi 3213 done 3214done 3215 3216fi 3217 3218SED=$lt_cv_path_SED 3219echo "$as_me:$LINENO: result: $SED" >&5 3220echo "${ECHO_T}$SED" >&6 3221 3222echo "$as_me:$LINENO: checking for egrep" >&5 3223echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3224if test "${ac_cv_prog_egrep+set}" = set; then 3225 echo $ECHO_N "(cached) $ECHO_C" >&6 3226else 3227 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3228 then ac_cv_prog_egrep='grep -E' 3229 else ac_cv_prog_egrep='egrep' 3230 fi 3231fi 3232echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3233echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3234 EGREP=$ac_cv_prog_egrep 3235 3236 3237 3238# Check whether --with-gnu-ld or --without-gnu-ld was given. 3239if test "${with_gnu_ld+set}" = set; then 3240 withval="$with_gnu_ld" 3241 test "$withval" = no || with_gnu_ld=yes 3242else 3243 with_gnu_ld=no 3244fi; 3245ac_prog=ld 3246if test "$GCC" = yes; then 3247 # Check if gcc -print-prog-name=ld gives a path. 3248 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3249echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3250 case $host in 3251 *-*-mingw*) 3252 # gcc leaves a trailing carriage return which upsets mingw 3253 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3254 *) 3255 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3256 esac 3257 case $ac_prog in 3258 # Accept absolute paths. 3259 [\\/]* | ?:[\\/]*) 3260 re_direlt='/[^/][^/]*/\.\./' 3261 # Canonicalize the pathname of ld 3262 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3263 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3264 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3265 done 3266 test -z "$LD" && LD="$ac_prog" 3267 ;; 3268 "") 3269 # If it fails, then pretend we aren't using GCC. 3270 ac_prog=ld 3271 ;; 3272 *) 3273 # If it is relative, then search for the first ld in PATH. 3274 with_gnu_ld=unknown 3275 ;; 3276 esac 3277elif test "$with_gnu_ld" = yes; then 3278 echo "$as_me:$LINENO: checking for GNU ld" >&5 3279echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3280else 3281 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3282echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3283fi 3284if test "${lt_cv_path_LD+set}" = set; then 3285 echo $ECHO_N "(cached) $ECHO_C" >&6 3286else 3287 if test -z "$LD"; then 3288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3289 for ac_dir in $PATH; do 3290 IFS="$lt_save_ifs" 3291 test -z "$ac_dir" && ac_dir=. 3292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3293 lt_cv_path_LD="$ac_dir/$ac_prog" 3294 # Check to see if the program is GNU ld. I'd rather use --version, 3295 # but apparently some variants of GNU ld only accept -v. 3296 # Break only if it was the GNU/non-GNU ld that we prefer. 3297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3298 *GNU* | *'with BFD'*) 3299 test "$with_gnu_ld" != no && break 3300 ;; 3301 *) 3302 test "$with_gnu_ld" != yes && break 3303 ;; 3304 esac 3305 fi 3306 done 3307 IFS="$lt_save_ifs" 3308else 3309 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3310fi 3311fi 3312 3313LD="$lt_cv_path_LD" 3314if test -n "$LD"; then 3315 echo "$as_me:$LINENO: result: $LD" >&5 3316echo "${ECHO_T}$LD" >&6 3317else 3318 echo "$as_me:$LINENO: result: no" >&5 3319echo "${ECHO_T}no" >&6 3320fi 3321test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3322echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3323 { (exit 1); exit 1; }; } 3324echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3325echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3326if test "${lt_cv_prog_gnu_ld+set}" = set; then 3327 echo $ECHO_N "(cached) $ECHO_C" >&6 3328else 3329 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3330case `$LD -v 2>&1 </dev/null` in 3331*GNU* | *'with BFD'*) 3332 lt_cv_prog_gnu_ld=yes 3333 ;; 3334*) 3335 lt_cv_prog_gnu_ld=no 3336 ;; 3337esac 3338fi 3339echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3340echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3341with_gnu_ld=$lt_cv_prog_gnu_ld 3342 3343 3344echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3345echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3346if test "${lt_cv_ld_reload_flag+set}" = set; then 3347 echo $ECHO_N "(cached) $ECHO_C" >&6 3348else 3349 lt_cv_ld_reload_flag='-r' 3350fi 3351echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3352echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3353reload_flag=$lt_cv_ld_reload_flag 3354case $reload_flag in 3355"" | " "*) ;; 3356*) reload_flag=" $reload_flag" ;; 3357esac 3358reload_cmds='$LD$reload_flag -o $output$reload_objs' 3359case $host_os in 3360 darwin*) 3361 if test "$GCC" = yes; then 3362 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3363 else 3364 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3365 fi 3366 ;; 3367esac 3368 3369echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3370echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3371if test "${lt_cv_path_NM+set}" = set; then 3372 echo $ECHO_N "(cached) $ECHO_C" >&6 3373else 3374 if test -n "$NM"; then 3375 # Let the user override the test. 3376 lt_cv_path_NM="$NM" 3377else 3378 lt_nm_to_check="${ac_tool_prefix}nm" 3379 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3380 lt_nm_to_check="$lt_nm_to_check nm" 3381 fi 3382 for lt_tmp_nm in $lt_nm_to_check; do 3383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3384 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3385 IFS="$lt_save_ifs" 3386 test -z "$ac_dir" && ac_dir=. 3387 tmp_nm="$ac_dir/$lt_tmp_nm" 3388 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3389 # Check to see if the nm accepts a BSD-compat flag. 3390 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3391 # nm: unknown option "B" ignored 3392 # Tru64's nm complains that /dev/null is an invalid object file 3393 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3394 */dev/null* | *'Invalid file or object type'*) 3395 lt_cv_path_NM="$tmp_nm -B" 3396 break 3397 ;; 3398 *) 3399 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3400 */dev/null*) 3401 lt_cv_path_NM="$tmp_nm -p" 3402 break 3403 ;; 3404 *) 3405 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3406 continue # so that we can try to find one that supports BSD flags 3407 ;; 3408 esac 3409 ;; 3410 esac 3411 fi 3412 done 3413 IFS="$lt_save_ifs" 3414 done 3415 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3416fi 3417fi 3418echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3419echo "${ECHO_T}$lt_cv_path_NM" >&6 3420NM="$lt_cv_path_NM" 3421 3422echo "$as_me:$LINENO: checking whether ln -s works" >&5 3423echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3424LN_S=$as_ln_s 3425if test "$LN_S" = "ln -s"; then 3426 echo "$as_me:$LINENO: result: yes" >&5 3427echo "${ECHO_T}yes" >&6 3428else 3429 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3430echo "${ECHO_T}no, using $LN_S" >&6 3431fi 3432 3433echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3434echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3435if test "${lt_cv_deplibs_check_method+set}" = set; then 3436 echo $ECHO_N "(cached) $ECHO_C" >&6 3437else 3438 lt_cv_file_magic_cmd='$MAGIC_CMD' 3439lt_cv_file_magic_test_file= 3440lt_cv_deplibs_check_method='unknown' 3441# Need to set the preceding variable on all platforms that support 3442# interlibrary dependencies. 3443# 'none' -- dependencies not supported. 3444# `unknown' -- same as none, but documents that we really don't know. 3445# 'pass_all' -- all dependencies passed with no checks. 3446# 'test_compile' -- check by making test program. 3447# 'file_magic [[regex]]' -- check by looking for files in library path 3448# which responds to the $file_magic_cmd with a given extended regex. 3449# If you have `file' or equivalent on your system and you're not sure 3450# whether `pass_all' will *always* work, you probably want this one. 3451 3452case $host_os in 3453aix4* | aix5*) 3454 lt_cv_deplibs_check_method=pass_all 3455 ;; 3456 3457beos*) 3458 lt_cv_deplibs_check_method=pass_all 3459 ;; 3460 3461bsdi[45]*) 3462 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3463 lt_cv_file_magic_cmd='/usr/bin/file -L' 3464 lt_cv_file_magic_test_file=/shlib/libc.so 3465 ;; 3466 3467cygwin*) 3468 # func_win32_libid is a shell function defined in ltmain.sh 3469 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3470 lt_cv_file_magic_cmd='func_win32_libid' 3471 ;; 3472 3473mingw* | pw32*) 3474 # Base MSYS/MinGW do not provide the 'file' command needed by 3475 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3476 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3477 lt_cv_file_magic_cmd='$OBJDUMP -f' 3478 ;; 3479 3480darwin* | rhapsody*) 3481 lt_cv_deplibs_check_method=pass_all 3482 ;; 3483 3484freebsd* | kfreebsd*-gnu | dragonfly*) 3485 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3486 case $host_cpu in 3487 i*86 ) 3488 # Not sure whether the presence of OpenBSD here was a mistake. 3489 # Let's accept both of them until this is cleared up. 3490 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3491 lt_cv_file_magic_cmd=/usr/bin/file 3492 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3493 ;; 3494 esac 3495 else 3496 lt_cv_deplibs_check_method=pass_all 3497 fi 3498 ;; 3499 3500gnu*) 3501 lt_cv_deplibs_check_method=pass_all 3502 ;; 3503 3504hpux10.20* | hpux11*) 3505 lt_cv_file_magic_cmd=/usr/bin/file 3506 case $host_cpu in 3507 ia64*) 3508 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3509 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3510 ;; 3511 hppa*64*) 3512 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]' 3513 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3514 ;; 3515 *) 3516 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3517 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3518 ;; 3519 esac 3520 ;; 3521 3522interix3*) 3523 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3525 ;; 3526 3527irix5* | irix6* | nonstopux*) 3528 case $LD in 3529 *-32|*"-32 ") libmagic=32-bit;; 3530 *-n32|*"-n32 ") libmagic=N32;; 3531 *-64|*"-64 ") libmagic=64-bit;; 3532 *) libmagic=never-match;; 3533 esac 3534 lt_cv_deplibs_check_method=pass_all 3535 ;; 3536 3537# This must be Linux ELF. 3538linux*) 3539 lt_cv_deplibs_check_method=pass_all 3540 ;; 3541 3542netbsd*) 3543 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3545 else 3546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3547 fi 3548 ;; 3549 3550newos6*) 3551 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3552 lt_cv_file_magic_cmd=/usr/bin/file 3553 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3554 ;; 3555 3556nto-qnx*) 3557 lt_cv_deplibs_check_method=unknown 3558 ;; 3559 3560openbsd*) 3561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3563 else 3564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3565 fi 3566 ;; 3567 3568osf3* | osf4* | osf5*) 3569 lt_cv_deplibs_check_method=pass_all 3570 ;; 3571 3572solaris*) 3573 lt_cv_deplibs_check_method=pass_all 3574 ;; 3575 3576sysv4 | sysv4.3*) 3577 case $host_vendor in 3578 motorola) 3579 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]' 3580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3581 ;; 3582 ncr) 3583 lt_cv_deplibs_check_method=pass_all 3584 ;; 3585 sequent) 3586 lt_cv_file_magic_cmd='/bin/file' 3587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3588 ;; 3589 sni) 3590 lt_cv_file_magic_cmd='/bin/file' 3591 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3592 lt_cv_file_magic_test_file=/lib/libc.so 3593 ;; 3594 siemens) 3595 lt_cv_deplibs_check_method=pass_all 3596 ;; 3597 pc) 3598 lt_cv_deplibs_check_method=pass_all 3599 ;; 3600 esac 3601 ;; 3602 3603sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3604 lt_cv_deplibs_check_method=pass_all 3605 ;; 3606esac 3607 3608fi 3609echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3610echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3611file_magic_cmd=$lt_cv_file_magic_cmd 3612deplibs_check_method=$lt_cv_deplibs_check_method 3613test -z "$deplibs_check_method" && deplibs_check_method=unknown 3614 3615 3616 3617 3618# If no C compiler was specified, use CC. 3619LTCC=${LTCC-"$CC"} 3620 3621# If no C compiler flags were specified, use CFLAGS. 3622LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3623 3624# Allow CC to be a program name with arguments. 3625compiler=$CC 3626 3627 3628# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3629if test "${enable_libtool_lock+set}" = set; then 3630 enableval="$enable_libtool_lock" 3631 3632fi; 3633test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3634 3635# Some flags need to be propagated to the compiler or linker for good 3636# libtool support. 3637case $host in 3638ia64-*-hpux*) 3639 # Find out which ABI we are using. 3640 echo 'int i;' > conftest.$ac_ext 3641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3642 (eval $ac_compile) 2>&5 3643 ac_status=$? 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3645 (exit $ac_status); }; then 3646 case `/usr/bin/file conftest.$ac_objext` in 3647 *ELF-32*) 3648 HPUX_IA64_MODE="32" 3649 ;; 3650 *ELF-64*) 3651 HPUX_IA64_MODE="64" 3652 ;; 3653 esac 3654 fi 3655 rm -rf conftest* 3656 ;; 3657*-*-irix6*) 3658 # Find out which ABI we are using. 3659 echo '#line 3654 "configure"' > conftest.$ac_ext 3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3661 (eval $ac_compile) 2>&5 3662 ac_status=$? 3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3664 (exit $ac_status); }; then 3665 if test "$lt_cv_prog_gnu_ld" = yes; then 3666 case `/usr/bin/file conftest.$ac_objext` in 3667 *32-bit*) 3668 LD="${LD-ld} -melf32bsmip" 3669 ;; 3670 *N32*) 3671 LD="${LD-ld} -melf32bmipn32" 3672 ;; 3673 *64-bit*) 3674 LD="${LD-ld} -melf64bmip" 3675 ;; 3676 esac 3677 else 3678 case `/usr/bin/file conftest.$ac_objext` in 3679 *32-bit*) 3680 LD="${LD-ld} -32" 3681 ;; 3682 *N32*) 3683 LD="${LD-ld} -n32" 3684 ;; 3685 *64-bit*) 3686 LD="${LD-ld} -64" 3687 ;; 3688 esac 3689 fi 3690 fi 3691 rm -rf conftest* 3692 ;; 3693 3694x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3695 # Find out which ABI we are using. 3696 echo 'int i;' > conftest.$ac_ext 3697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3698 (eval $ac_compile) 2>&5 3699 ac_status=$? 3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3701 (exit $ac_status); }; then 3702 case `/usr/bin/file conftest.o` in 3703 *32-bit*) 3704 case $host in 3705 x86_64-*linux*) 3706 LD="${LD-ld} -m elf_i386" 3707 ;; 3708 ppc64-*linux*|powerpc64-*linux*) 3709 LD="${LD-ld} -m elf32ppclinux" 3710 ;; 3711 s390x-*linux*) 3712 LD="${LD-ld} -m elf_s390" 3713 ;; 3714 sparc64-*linux*) 3715 LD="${LD-ld} -m elf32_sparc" 3716 ;; 3717 esac 3718 ;; 3719 *64-bit*) 3720 case $host in 3721 x86_64-*linux*) 3722 LD="${LD-ld} -m elf_x86_64" 3723 ;; 3724 ppc*-*linux*|powerpc*-*linux*) 3725 LD="${LD-ld} -m elf64ppc" 3726 ;; 3727 s390*-*linux*) 3728 LD="${LD-ld} -m elf64_s390" 3729 ;; 3730 sparc*-*linux*) 3731 LD="${LD-ld} -m elf64_sparc" 3732 ;; 3733 esac 3734 ;; 3735 esac 3736 fi 3737 rm -rf conftest* 3738 ;; 3739 3740*-*-sco3.2v5*) 3741 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3742 SAVE_CFLAGS="$CFLAGS" 3743 CFLAGS="$CFLAGS -belf" 3744 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3745echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3746if test "${lt_cv_cc_needs_belf+set}" = set; then 3747 echo $ECHO_N "(cached) $ECHO_C" >&6 3748else 3749 ac_ext=c 3750ac_cpp='$CPP $CPPFLAGS' 3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3753ac_compiler_gnu=$ac_cv_c_compiler_gnu 3754 3755 cat >conftest.$ac_ext <<_ACEOF 3756/* confdefs.h. */ 3757_ACEOF 3758cat confdefs.h >>conftest.$ac_ext 3759cat >>conftest.$ac_ext <<_ACEOF 3760/* end confdefs.h. */ 3761 3762int 3763main () 3764{ 3765 3766 ; 3767 return 0; 3768} 3769_ACEOF 3770rm -f conftest.$ac_objext conftest$ac_exeext 3771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3772 (eval $ac_link) 2>conftest.er1 3773 ac_status=$? 3774 grep -v '^ *+' conftest.er1 >conftest.err 3775 rm -f conftest.er1 3776 cat conftest.err >&5 3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3778 (exit $ac_status); } && 3779 { ac_try='test -z "$ac_c_werror_flag" 3780 || test ! -s conftest.err' 3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3782 (eval $ac_try) 2>&5 3783 ac_status=$? 3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3785 (exit $ac_status); }; } && 3786 { ac_try='test -s conftest$ac_exeext' 3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3788 (eval $ac_try) 2>&5 3789 ac_status=$? 3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3791 (exit $ac_status); }; }; then 3792 lt_cv_cc_needs_belf=yes 3793else 3794 echo "$as_me: failed program was:" >&5 3795sed 's/^/| /' conftest.$ac_ext >&5 3796 3797lt_cv_cc_needs_belf=no 3798fi 3799rm -f conftest.err conftest.$ac_objext \ 3800 conftest$ac_exeext conftest.$ac_ext 3801 ac_ext=c 3802ac_cpp='$CPP $CPPFLAGS' 3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3805ac_compiler_gnu=$ac_cv_c_compiler_gnu 3806 3807fi 3808echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3809echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3810 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3811 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3812 CFLAGS="$SAVE_CFLAGS" 3813 fi 3814 ;; 3815sparc*-*solaris*) 3816 # Find out which ABI we are using. 3817 echo 'int i;' > conftest.$ac_ext 3818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3819 (eval $ac_compile) 2>&5 3820 ac_status=$? 3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3822 (exit $ac_status); }; then 3823 case `/usr/bin/file conftest.o` in 3824 *64-bit*) 3825 case $lt_cv_prog_gnu_ld in 3826 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3827 *) LD="${LD-ld} -64" ;; 3828 esac 3829 ;; 3830 esac 3831 fi 3832 rm -rf conftest* 3833 ;; 3834 3835 3836esac 3837 3838need_locks="$enable_libtool_lock" 3839 3840 3841 3842echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3843echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3844if test "${ac_cv_header_stdc+set}" = set; then 3845 echo $ECHO_N "(cached) $ECHO_C" >&6 3846else 3847 cat >conftest.$ac_ext <<_ACEOF 3848/* confdefs.h. */ 3849_ACEOF 3850cat confdefs.h >>conftest.$ac_ext 3851cat >>conftest.$ac_ext <<_ACEOF 3852/* end confdefs.h. */ 3853#include <stdlib.h> 3854#include <stdarg.h> 3855#include <string.h> 3856#include <float.h> 3857 3858int 3859main () 3860{ 3861 3862 ; 3863 return 0; 3864} 3865_ACEOF 3866rm -f conftest.$ac_objext 3867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3868 (eval $ac_compile) 2>conftest.er1 3869 ac_status=$? 3870 grep -v '^ *+' conftest.er1 >conftest.err 3871 rm -f conftest.er1 3872 cat conftest.err >&5 3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3874 (exit $ac_status); } && 3875 { ac_try='test -z "$ac_c_werror_flag" 3876 || test ! -s conftest.err' 3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3878 (eval $ac_try) 2>&5 3879 ac_status=$? 3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3881 (exit $ac_status); }; } && 3882 { ac_try='test -s conftest.$ac_objext' 3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3884 (eval $ac_try) 2>&5 3885 ac_status=$? 3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3887 (exit $ac_status); }; }; then 3888 ac_cv_header_stdc=yes 3889else 3890 echo "$as_me: failed program was:" >&5 3891sed 's/^/| /' conftest.$ac_ext >&5 3892 3893ac_cv_header_stdc=no 3894fi 3895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3896 3897if test $ac_cv_header_stdc = yes; then 3898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3899 cat >conftest.$ac_ext <<_ACEOF 3900/* confdefs.h. */ 3901_ACEOF 3902cat confdefs.h >>conftest.$ac_ext 3903cat >>conftest.$ac_ext <<_ACEOF 3904/* end confdefs.h. */ 3905#include <string.h> 3906 3907_ACEOF 3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3909 $EGREP "memchr" >/dev/null 2>&1; then 3910 : 3911else 3912 ac_cv_header_stdc=no 3913fi 3914rm -f conftest* 3915 3916fi 3917 3918if test $ac_cv_header_stdc = yes; then 3919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3920 cat >conftest.$ac_ext <<_ACEOF 3921/* confdefs.h. */ 3922_ACEOF 3923cat confdefs.h >>conftest.$ac_ext 3924cat >>conftest.$ac_ext <<_ACEOF 3925/* end confdefs.h. */ 3926#include <stdlib.h> 3927 3928_ACEOF 3929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3930 $EGREP "free" >/dev/null 2>&1; then 3931 : 3932else 3933 ac_cv_header_stdc=no 3934fi 3935rm -f conftest* 3936 3937fi 3938 3939if test $ac_cv_header_stdc = yes; then 3940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3941 if test "$cross_compiling" = yes; then 3942 : 3943else 3944 cat >conftest.$ac_ext <<_ACEOF 3945/* confdefs.h. */ 3946_ACEOF 3947cat confdefs.h >>conftest.$ac_ext 3948cat >>conftest.$ac_ext <<_ACEOF 3949/* end confdefs.h. */ 3950#include <ctype.h> 3951#if ((' ' & 0x0FF) == 0x020) 3952# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3953# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3954#else 3955# define ISLOWER(c) \ 3956 (('a' <= (c) && (c) <= 'i') \ 3957 || ('j' <= (c) && (c) <= 'r') \ 3958 || ('s' <= (c) && (c) <= 'z')) 3959# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3960#endif 3961 3962#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3963int 3964main () 3965{ 3966 int i; 3967 for (i = 0; i < 256; i++) 3968 if (XOR (islower (i), ISLOWER (i)) 3969 || toupper (i) != TOUPPER (i)) 3970 exit(2); 3971 exit (0); 3972} 3973_ACEOF 3974rm -f conftest$ac_exeext 3975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3976 (eval $ac_link) 2>&5 3977 ac_status=$? 3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3981 (eval $ac_try) 2>&5 3982 ac_status=$? 3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3984 (exit $ac_status); }; }; then 3985 : 3986else 3987 echo "$as_me: program exited with status $ac_status" >&5 3988echo "$as_me: failed program was:" >&5 3989sed 's/^/| /' conftest.$ac_ext >&5 3990 3991( exit $ac_status ) 3992ac_cv_header_stdc=no 3993fi 3994rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3995fi 3996fi 3997fi 3998echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3999echo "${ECHO_T}$ac_cv_header_stdc" >&6 4000if test $ac_cv_header_stdc = yes; then 4001 4002cat >>confdefs.h <<\_ACEOF 4003#define STDC_HEADERS 1 4004_ACEOF 4005 4006fi 4007 4008# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4019 inttypes.h stdint.h unistd.h 4020do 4021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4022echo "$as_me:$LINENO: checking for $ac_header" >&5 4023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4024if eval "test \"\${$as_ac_Header+set}\" = set"; then 4025 echo $ECHO_N "(cached) $ECHO_C" >&6 4026else 4027 cat >conftest.$ac_ext <<_ACEOF 4028/* confdefs.h. */ 4029_ACEOF 4030cat confdefs.h >>conftest.$ac_ext 4031cat >>conftest.$ac_ext <<_ACEOF 4032/* end confdefs.h. */ 4033$ac_includes_default 4034 4035#include <$ac_header> 4036_ACEOF 4037rm -f conftest.$ac_objext 4038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4039 (eval $ac_compile) 2>conftest.er1 4040 ac_status=$? 4041 grep -v '^ *+' conftest.er1 >conftest.err 4042 rm -f conftest.er1 4043 cat conftest.err >&5 4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4045 (exit $ac_status); } && 4046 { ac_try='test -z "$ac_c_werror_flag" 4047 || test ! -s conftest.err' 4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4049 (eval $ac_try) 2>&5 4050 ac_status=$? 4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4052 (exit $ac_status); }; } && 4053 { ac_try='test -s conftest.$ac_objext' 4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4055 (eval $ac_try) 2>&5 4056 ac_status=$? 4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4058 (exit $ac_status); }; }; then 4059 eval "$as_ac_Header=yes" 4060else 4061 echo "$as_me: failed program was:" >&5 4062sed 's/^/| /' conftest.$ac_ext >&5 4063 4064eval "$as_ac_Header=no" 4065fi 4066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4067fi 4068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4070if test `eval echo '${'$as_ac_Header'}'` = yes; then 4071 cat >>confdefs.h <<_ACEOF 4072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4073_ACEOF 4074 4075fi 4076 4077done 4078 4079 4080 4081for ac_header in dlfcn.h 4082do 4083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4084if eval "test \"\${$as_ac_Header+set}\" = set"; then 4085 echo "$as_me:$LINENO: checking for $ac_header" >&5 4086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4087if eval "test \"\${$as_ac_Header+set}\" = set"; then 4088 echo $ECHO_N "(cached) $ECHO_C" >&6 4089fi 4090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4092else 4093 # Is the header compilable? 4094echo "$as_me:$LINENO: checking $ac_header usability" >&5 4095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4096cat >conftest.$ac_ext <<_ACEOF 4097/* confdefs.h. */ 4098_ACEOF 4099cat confdefs.h >>conftest.$ac_ext 4100cat >>conftest.$ac_ext <<_ACEOF 4101/* end confdefs.h. */ 4102$ac_includes_default 4103#include <$ac_header> 4104_ACEOF 4105rm -f conftest.$ac_objext 4106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4107 (eval $ac_compile) 2>conftest.er1 4108 ac_status=$? 4109 grep -v '^ *+' conftest.er1 >conftest.err 4110 rm -f conftest.er1 4111 cat conftest.err >&5 4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4113 (exit $ac_status); } && 4114 { ac_try='test -z "$ac_c_werror_flag" 4115 || test ! -s conftest.err' 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); }; } && 4121 { ac_try='test -s conftest.$ac_objext' 4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4123 (eval $ac_try) 2>&5 4124 ac_status=$? 4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4126 (exit $ac_status); }; }; then 4127 ac_header_compiler=yes 4128else 4129 echo "$as_me: failed program was:" >&5 4130sed 's/^/| /' conftest.$ac_ext >&5 4131 4132ac_header_compiler=no 4133fi 4134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4136echo "${ECHO_T}$ac_header_compiler" >&6 4137 4138# Is the header present? 4139echo "$as_me:$LINENO: checking $ac_header presence" >&5 4140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4141cat >conftest.$ac_ext <<_ACEOF 4142/* confdefs.h. */ 4143_ACEOF 4144cat confdefs.h >>conftest.$ac_ext 4145cat >>conftest.$ac_ext <<_ACEOF 4146/* end confdefs.h. */ 4147#include <$ac_header> 4148_ACEOF 4149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4151 ac_status=$? 4152 grep -v '^ *+' conftest.er1 >conftest.err 4153 rm -f conftest.er1 4154 cat conftest.err >&5 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); } >/dev/null; then 4157 if test -s conftest.err; then 4158 ac_cpp_err=$ac_c_preproc_warn_flag 4159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4160 else 4161 ac_cpp_err= 4162 fi 4163else 4164 ac_cpp_err=yes 4165fi 4166if test -z "$ac_cpp_err"; then 4167 ac_header_preproc=yes 4168else 4169 echo "$as_me: failed program was:" >&5 4170sed 's/^/| /' conftest.$ac_ext >&5 4171 4172 ac_header_preproc=no 4173fi 4174rm -f conftest.err conftest.$ac_ext 4175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4176echo "${ECHO_T}$ac_header_preproc" >&6 4177 4178# So? What about this header? 4179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4180 yes:no: ) 4181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4185 ac_header_preproc=yes 4186 ;; 4187 no:yes:* ) 4188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4200 ( 4201 cat <<\_ASBOX 4202## ------------------------------------------ ## 4203## Report this to the AC_PACKAGE_NAME lists. ## 4204## ------------------------------------------ ## 4205_ASBOX 4206 ) | 4207 sed "s/^/$as_me: WARNING: /" >&2 4208 ;; 4209esac 4210echo "$as_me:$LINENO: checking for $ac_header" >&5 4211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4212if eval "test \"\${$as_ac_Header+set}\" = set"; then 4213 echo $ECHO_N "(cached) $ECHO_C" >&6 4214else 4215 eval "$as_ac_Header=\$ac_header_preproc" 4216fi 4217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4219 4220fi 4221if test `eval echo '${'$as_ac_Header'}'` = yes; then 4222 cat >>confdefs.h <<_ACEOF 4223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4224_ACEOF 4225 4226fi 4227 4228done 4229 4230ac_ext=cc 4231ac_cpp='$CXXCPP $CPPFLAGS' 4232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4235if test -n "$ac_tool_prefix"; then 4236 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4237 do 4238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4239set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4240echo "$as_me:$LINENO: checking for $ac_word" >&5 4241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4242if test "${ac_cv_prog_CXX+set}" = set; then 4243 echo $ECHO_N "(cached) $ECHO_C" >&6 4244else 4245 if test -n "$CXX"; then 4246 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4247else 4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4249for as_dir in $PATH 4250do 4251 IFS=$as_save_IFS 4252 test -z "$as_dir" && as_dir=. 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4255 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4257 break 2 4258 fi 4259done 4260done 4261 4262fi 4263fi 4264CXX=$ac_cv_prog_CXX 4265if test -n "$CXX"; then 4266 echo "$as_me:$LINENO: result: $CXX" >&5 4267echo "${ECHO_T}$CXX" >&6 4268else 4269 echo "$as_me:$LINENO: result: no" >&5 4270echo "${ECHO_T}no" >&6 4271fi 4272 4273 test -n "$CXX" && break 4274 done 4275fi 4276if test -z "$CXX"; then 4277 ac_ct_CXX=$CXX 4278 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4279do 4280 # Extract the first word of "$ac_prog", so it can be a program name with args. 4281set dummy $ac_prog; ac_word=$2 4282echo "$as_me:$LINENO: checking for $ac_word" >&5 4283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4284if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4285 echo $ECHO_N "(cached) $ECHO_C" >&6 4286else 4287 if test -n "$ac_ct_CXX"; then 4288 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4289else 4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4291for as_dir in $PATH 4292do 4293 IFS=$as_save_IFS 4294 test -z "$as_dir" && as_dir=. 4295 for ac_exec_ext in '' $ac_executable_extensions; do 4296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4297 ac_cv_prog_ac_ct_CXX="$ac_prog" 4298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4299 break 2 4300 fi 4301done 4302done 4303 4304fi 4305fi 4306ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4307if test -n "$ac_ct_CXX"; then 4308 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4309echo "${ECHO_T}$ac_ct_CXX" >&6 4310else 4311 echo "$as_me:$LINENO: result: no" >&5 4312echo "${ECHO_T}no" >&6 4313fi 4314 4315 test -n "$ac_ct_CXX" && break 4316done 4317test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4318 4319 CXX=$ac_ct_CXX 4320fi 4321 4322 4323# Provide some information about the compiler. 4324echo "$as_me:$LINENO:" \ 4325 "checking for C++ compiler version" >&5 4326ac_compiler=`set X $ac_compile; echo $2` 4327{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4328 (eval $ac_compiler --version </dev/null >&5) 2>&5 4329 ac_status=$? 4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4331 (exit $ac_status); } 4332{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4333 (eval $ac_compiler -v </dev/null >&5) 2>&5 4334 ac_status=$? 4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4336 (exit $ac_status); } 4337{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4338 (eval $ac_compiler -V </dev/null >&5) 2>&5 4339 ac_status=$? 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4341 (exit $ac_status); } 4342 4343echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4344echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4345if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4346 echo $ECHO_N "(cached) $ECHO_C" >&6 4347else 4348 cat >conftest.$ac_ext <<_ACEOF 4349/* confdefs.h. */ 4350_ACEOF 4351cat confdefs.h >>conftest.$ac_ext 4352cat >>conftest.$ac_ext <<_ACEOF 4353/* end confdefs.h. */ 4354 4355int 4356main () 4357{ 4358#ifndef __GNUC__ 4359 choke me 4360#endif 4361 4362 ; 4363 return 0; 4364} 4365_ACEOF 4366rm -f conftest.$ac_objext 4367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4368 (eval $ac_compile) 2>conftest.er1 4369 ac_status=$? 4370 grep -v '^ *+' conftest.er1 >conftest.err 4371 rm -f conftest.er1 4372 cat conftest.err >&5 4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4374 (exit $ac_status); } && 4375 { ac_try='test -z "$ac_cxx_werror_flag" 4376 || test ! -s conftest.err' 4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4378 (eval $ac_try) 2>&5 4379 ac_status=$? 4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4381 (exit $ac_status); }; } && 4382 { ac_try='test -s conftest.$ac_objext' 4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4384 (eval $ac_try) 2>&5 4385 ac_status=$? 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); }; }; then 4388 ac_compiler_gnu=yes 4389else 4390 echo "$as_me: failed program was:" >&5 4391sed 's/^/| /' conftest.$ac_ext >&5 4392 4393ac_compiler_gnu=no 4394fi 4395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4396ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4397 4398fi 4399echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4400echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4401GXX=`test $ac_compiler_gnu = yes && echo yes` 4402ac_test_CXXFLAGS=${CXXFLAGS+set} 4403ac_save_CXXFLAGS=$CXXFLAGS 4404CXXFLAGS="-g" 4405echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4406echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4407if test "${ac_cv_prog_cxx_g+set}" = set; then 4408 echo $ECHO_N "(cached) $ECHO_C" >&6 4409else 4410 cat >conftest.$ac_ext <<_ACEOF 4411/* confdefs.h. */ 4412_ACEOF 4413cat confdefs.h >>conftest.$ac_ext 4414cat >>conftest.$ac_ext <<_ACEOF 4415/* end confdefs.h. */ 4416 4417int 4418main () 4419{ 4420 4421 ; 4422 return 0; 4423} 4424_ACEOF 4425rm -f conftest.$ac_objext 4426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4427 (eval $ac_compile) 2>conftest.er1 4428 ac_status=$? 4429 grep -v '^ *+' conftest.er1 >conftest.err 4430 rm -f conftest.er1 4431 cat conftest.err >&5 4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4433 (exit $ac_status); } && 4434 { ac_try='test -z "$ac_cxx_werror_flag" 4435 || test ! -s conftest.err' 4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4437 (eval $ac_try) 2>&5 4438 ac_status=$? 4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4440 (exit $ac_status); }; } && 4441 { ac_try='test -s conftest.$ac_objext' 4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4443 (eval $ac_try) 2>&5 4444 ac_status=$? 4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4446 (exit $ac_status); }; }; then 4447 ac_cv_prog_cxx_g=yes 4448else 4449 echo "$as_me: failed program was:" >&5 4450sed 's/^/| /' conftest.$ac_ext >&5 4451 4452ac_cv_prog_cxx_g=no 4453fi 4454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4455fi 4456echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4457echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4458if test "$ac_test_CXXFLAGS" = set; then 4459 CXXFLAGS=$ac_save_CXXFLAGS 4460elif test $ac_cv_prog_cxx_g = yes; then 4461 if test "$GXX" = yes; then 4462 CXXFLAGS="-g -O2" 4463 else 4464 CXXFLAGS="-g" 4465 fi 4466else 4467 if test "$GXX" = yes; then 4468 CXXFLAGS="-O2" 4469 else 4470 CXXFLAGS= 4471 fi 4472fi 4473for ac_declaration in \ 4474 '' \ 4475 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4476 'extern "C" void std::exit (int); using std::exit;' \ 4477 'extern "C" void exit (int) throw ();' \ 4478 'extern "C" void exit (int);' \ 4479 'void exit (int);' 4480do 4481 cat >conftest.$ac_ext <<_ACEOF 4482/* confdefs.h. */ 4483_ACEOF 4484cat confdefs.h >>conftest.$ac_ext 4485cat >>conftest.$ac_ext <<_ACEOF 4486/* end confdefs.h. */ 4487$ac_declaration 4488#include <stdlib.h> 4489int 4490main () 4491{ 4492exit (42); 4493 ; 4494 return 0; 4495} 4496_ACEOF 4497rm -f conftest.$ac_objext 4498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4499 (eval $ac_compile) 2>conftest.er1 4500 ac_status=$? 4501 grep -v '^ *+' conftest.er1 >conftest.err 4502 rm -f conftest.er1 4503 cat conftest.err >&5 4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4505 (exit $ac_status); } && 4506 { ac_try='test -z "$ac_cxx_werror_flag" 4507 || test ! -s conftest.err' 4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4509 (eval $ac_try) 2>&5 4510 ac_status=$? 4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4512 (exit $ac_status); }; } && 4513 { ac_try='test -s conftest.$ac_objext' 4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4515 (eval $ac_try) 2>&5 4516 ac_status=$? 4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4518 (exit $ac_status); }; }; then 4519 : 4520else 4521 echo "$as_me: failed program was:" >&5 4522sed 's/^/| /' conftest.$ac_ext >&5 4523 4524continue 4525fi 4526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4527 cat >conftest.$ac_ext <<_ACEOF 4528/* confdefs.h. */ 4529_ACEOF 4530cat confdefs.h >>conftest.$ac_ext 4531cat >>conftest.$ac_ext <<_ACEOF 4532/* end confdefs.h. */ 4533$ac_declaration 4534int 4535main () 4536{ 4537exit (42); 4538 ; 4539 return 0; 4540} 4541_ACEOF 4542rm -f conftest.$ac_objext 4543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4544 (eval $ac_compile) 2>conftest.er1 4545 ac_status=$? 4546 grep -v '^ *+' conftest.er1 >conftest.err 4547 rm -f conftest.er1 4548 cat conftest.err >&5 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4550 (exit $ac_status); } && 4551 { ac_try='test -z "$ac_cxx_werror_flag" 4552 || test ! -s conftest.err' 4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4554 (eval $ac_try) 2>&5 4555 ac_status=$? 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); }; } && 4558 { ac_try='test -s conftest.$ac_objext' 4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4560 (eval $ac_try) 2>&5 4561 ac_status=$? 4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); }; }; then 4564 break 4565else 4566 echo "$as_me: failed program was:" >&5 4567sed 's/^/| /' conftest.$ac_ext >&5 4568 4569fi 4570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4571done 4572rm -f conftest* 4573if test -n "$ac_declaration"; then 4574 echo '#ifdef __cplusplus' >>confdefs.h 4575 echo $ac_declaration >>confdefs.h 4576 echo '#endif' >>confdefs.h 4577fi 4578 4579ac_ext=cc 4580ac_cpp='$CXXCPP $CPPFLAGS' 4581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4584 4585 4586 4587if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4588 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4589 (test "X$CXX" != "Xg++"))) ; then 4590 ac_ext=cc 4591ac_cpp='$CXXCPP $CPPFLAGS' 4592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4595echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4596echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4597if test -z "$CXXCPP"; then 4598 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4599 echo $ECHO_N "(cached) $ECHO_C" >&6 4600else 4601 # Double quotes because CXXCPP needs to be expanded 4602 for CXXCPP in "$CXX -E" "/lib/cpp" 4603 do 4604 ac_preproc_ok=false 4605for ac_cxx_preproc_warn_flag in '' yes 4606do 4607 # Use a header file that comes with gcc, so configuring glibc 4608 # with a fresh cross-compiler works. 4609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4610 # <limits.h> exists even on freestanding compilers. 4611 # On the NeXT, cc -E runs the code through the compiler's parser, 4612 # not just through cpp. "Syntax error" is here to catch this case. 4613 cat >conftest.$ac_ext <<_ACEOF 4614/* confdefs.h. */ 4615_ACEOF 4616cat confdefs.h >>conftest.$ac_ext 4617cat >>conftest.$ac_ext <<_ACEOF 4618/* end confdefs.h. */ 4619#ifdef __STDC__ 4620# include <limits.h> 4621#else 4622# include <assert.h> 4623#endif 4624 Syntax error 4625_ACEOF 4626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4628 ac_status=$? 4629 grep -v '^ *+' conftest.er1 >conftest.err 4630 rm -f conftest.er1 4631 cat conftest.err >&5 4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4633 (exit $ac_status); } >/dev/null; then 4634 if test -s conftest.err; then 4635 ac_cpp_err=$ac_cxx_preproc_warn_flag 4636 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4637 else 4638 ac_cpp_err= 4639 fi 4640else 4641 ac_cpp_err=yes 4642fi 4643if test -z "$ac_cpp_err"; then 4644 : 4645else 4646 echo "$as_me: failed program was:" >&5 4647sed 's/^/| /' conftest.$ac_ext >&5 4648 4649 # Broken: fails on valid input. 4650continue 4651fi 4652rm -f conftest.err conftest.$ac_ext 4653 4654 # OK, works on sane cases. Now check whether non-existent headers 4655 # can be detected and how. 4656 cat >conftest.$ac_ext <<_ACEOF 4657/* confdefs.h. */ 4658_ACEOF 4659cat confdefs.h >>conftest.$ac_ext 4660cat >>conftest.$ac_ext <<_ACEOF 4661/* end confdefs.h. */ 4662#include <ac_nonexistent.h> 4663_ACEOF 4664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4666 ac_status=$? 4667 grep -v '^ *+' conftest.er1 >conftest.err 4668 rm -f conftest.er1 4669 cat conftest.err >&5 4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4671 (exit $ac_status); } >/dev/null; then 4672 if test -s conftest.err; then 4673 ac_cpp_err=$ac_cxx_preproc_warn_flag 4674 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4675 else 4676 ac_cpp_err= 4677 fi 4678else 4679 ac_cpp_err=yes 4680fi 4681if test -z "$ac_cpp_err"; then 4682 # Broken: success on invalid input. 4683continue 4684else 4685 echo "$as_me: failed program was:" >&5 4686sed 's/^/| /' conftest.$ac_ext >&5 4687 4688 # Passes both tests. 4689ac_preproc_ok=: 4690break 4691fi 4692rm -f conftest.err conftest.$ac_ext 4693 4694done 4695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4696rm -f conftest.err conftest.$ac_ext 4697if $ac_preproc_ok; then 4698 break 4699fi 4700 4701 done 4702 ac_cv_prog_CXXCPP=$CXXCPP 4703 4704fi 4705 CXXCPP=$ac_cv_prog_CXXCPP 4706else 4707 ac_cv_prog_CXXCPP=$CXXCPP 4708fi 4709echo "$as_me:$LINENO: result: $CXXCPP" >&5 4710echo "${ECHO_T}$CXXCPP" >&6 4711ac_preproc_ok=false 4712for ac_cxx_preproc_warn_flag in '' yes 4713do 4714 # Use a header file that comes with gcc, so configuring glibc 4715 # with a fresh cross-compiler works. 4716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4717 # <limits.h> exists even on freestanding compilers. 4718 # On the NeXT, cc -E runs the code through the compiler's parser, 4719 # not just through cpp. "Syntax error" is here to catch this case. 4720 cat >conftest.$ac_ext <<_ACEOF 4721/* confdefs.h. */ 4722_ACEOF 4723cat confdefs.h >>conftest.$ac_ext 4724cat >>conftest.$ac_ext <<_ACEOF 4725/* end confdefs.h. */ 4726#ifdef __STDC__ 4727# include <limits.h> 4728#else 4729# include <assert.h> 4730#endif 4731 Syntax error 4732_ACEOF 4733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4735 ac_status=$? 4736 grep -v '^ *+' conftest.er1 >conftest.err 4737 rm -f conftest.er1 4738 cat conftest.err >&5 4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4740 (exit $ac_status); } >/dev/null; then 4741 if test -s conftest.err; then 4742 ac_cpp_err=$ac_cxx_preproc_warn_flag 4743 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4744 else 4745 ac_cpp_err= 4746 fi 4747else 4748 ac_cpp_err=yes 4749fi 4750if test -z "$ac_cpp_err"; then 4751 : 4752else 4753 echo "$as_me: failed program was:" >&5 4754sed 's/^/| /' conftest.$ac_ext >&5 4755 4756 # Broken: fails on valid input. 4757continue 4758fi 4759rm -f conftest.err conftest.$ac_ext 4760 4761 # OK, works on sane cases. Now check whether non-existent headers 4762 # can be detected and how. 4763 cat >conftest.$ac_ext <<_ACEOF 4764/* confdefs.h. */ 4765_ACEOF 4766cat confdefs.h >>conftest.$ac_ext 4767cat >>conftest.$ac_ext <<_ACEOF 4768/* end confdefs.h. */ 4769#include <ac_nonexistent.h> 4770_ACEOF 4771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4773 ac_status=$? 4774 grep -v '^ *+' conftest.er1 >conftest.err 4775 rm -f conftest.er1 4776 cat conftest.err >&5 4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4778 (exit $ac_status); } >/dev/null; then 4779 if test -s conftest.err; then 4780 ac_cpp_err=$ac_cxx_preproc_warn_flag 4781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4782 else 4783 ac_cpp_err= 4784 fi 4785else 4786 ac_cpp_err=yes 4787fi 4788if test -z "$ac_cpp_err"; then 4789 # Broken: success on invalid input. 4790continue 4791else 4792 echo "$as_me: failed program was:" >&5 4793sed 's/^/| /' conftest.$ac_ext >&5 4794 4795 # Passes both tests. 4796ac_preproc_ok=: 4797break 4798fi 4799rm -f conftest.err conftest.$ac_ext 4800 4801done 4802# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4803rm -f conftest.err conftest.$ac_ext 4804if $ac_preproc_ok; then 4805 : 4806else 4807 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4808See \`config.log' for more details." >&5 4809echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4810See \`config.log' for more details." >&2;} 4811 { (exit 1); exit 1; }; } 4812fi 4813 4814ac_ext=cc 4815ac_cpp='$CXXCPP $CPPFLAGS' 4816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4819 4820fi 4821 4822 4823ac_ext=f 4824ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4825ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4826ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4827if test -n "$ac_tool_prefix"; then 4828 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4829 do 4830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4831set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4832echo "$as_me:$LINENO: checking for $ac_word" >&5 4833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4834if test "${ac_cv_prog_F77+set}" = set; then 4835 echo $ECHO_N "(cached) $ECHO_C" >&6 4836else 4837 if test -n "$F77"; then 4838 ac_cv_prog_F77="$F77" # Let the user override the test. 4839else 4840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4841for as_dir in $PATH 4842do 4843 IFS=$as_save_IFS 4844 test -z "$as_dir" && as_dir=. 4845 for ac_exec_ext in '' $ac_executable_extensions; do 4846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4847 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4849 break 2 4850 fi 4851done 4852done 4853 4854fi 4855fi 4856F77=$ac_cv_prog_F77 4857if test -n "$F77"; then 4858 echo "$as_me:$LINENO: result: $F77" >&5 4859echo "${ECHO_T}$F77" >&6 4860else 4861 echo "$as_me:$LINENO: result: no" >&5 4862echo "${ECHO_T}no" >&6 4863fi 4864 4865 test -n "$F77" && break 4866 done 4867fi 4868if test -z "$F77"; then 4869 ac_ct_F77=$F77 4870 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4871do 4872 # Extract the first word of "$ac_prog", so it can be a program name with args. 4873set dummy $ac_prog; ac_word=$2 4874echo "$as_me:$LINENO: checking for $ac_word" >&5 4875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4876if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4877 echo $ECHO_N "(cached) $ECHO_C" >&6 4878else 4879 if test -n "$ac_ct_F77"; then 4880 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4881else 4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4883for as_dir in $PATH 4884do 4885 IFS=$as_save_IFS 4886 test -z "$as_dir" && as_dir=. 4887 for ac_exec_ext in '' $ac_executable_extensions; do 4888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4889 ac_cv_prog_ac_ct_F77="$ac_prog" 4890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4891 break 2 4892 fi 4893done 4894done 4895 4896fi 4897fi 4898ac_ct_F77=$ac_cv_prog_ac_ct_F77 4899if test -n "$ac_ct_F77"; then 4900 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4901echo "${ECHO_T}$ac_ct_F77" >&6 4902else 4903 echo "$as_me:$LINENO: result: no" >&5 4904echo "${ECHO_T}no" >&6 4905fi 4906 4907 test -n "$ac_ct_F77" && break 4908done 4909 4910 F77=$ac_ct_F77 4911fi 4912 4913 4914# Provide some information about the compiler. 4915echo "$as_me:4910:" \ 4916 "checking for Fortran 77 compiler version" >&5 4917ac_compiler=`set X $ac_compile; echo $2` 4918{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4919 (eval $ac_compiler --version </dev/null >&5) 2>&5 4920 ac_status=$? 4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4922 (exit $ac_status); } 4923{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4924 (eval $ac_compiler -v </dev/null >&5) 2>&5 4925 ac_status=$? 4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4927 (exit $ac_status); } 4928{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4929 (eval $ac_compiler -V </dev/null >&5) 2>&5 4930 ac_status=$? 4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4932 (exit $ac_status); } 4933rm -f a.out 4934 4935# If we don't use `.F' as extension, the preprocessor is not run on the 4936# input file. (Note that this only needs to work for GNU compilers.) 4937ac_save_ext=$ac_ext 4938ac_ext=F 4939echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4940echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4941if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4942 echo $ECHO_N "(cached) $ECHO_C" >&6 4943else 4944 cat >conftest.$ac_ext <<_ACEOF 4945 program main 4946#ifndef __GNUC__ 4947 choke me 4948#endif 4949 4950 end 4951_ACEOF 4952rm -f conftest.$ac_objext 4953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4954 (eval $ac_compile) 2>conftest.er1 4955 ac_status=$? 4956 grep -v '^ *+' conftest.er1 >conftest.err 4957 rm -f conftest.er1 4958 cat conftest.err >&5 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4960 (exit $ac_status); } && 4961 { ac_try='test -z "$ac_f77_werror_flag" 4962 || test ! -s conftest.err' 4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4964 (eval $ac_try) 2>&5 4965 ac_status=$? 4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4967 (exit $ac_status); }; } && 4968 { ac_try='test -s conftest.$ac_objext' 4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4970 (eval $ac_try) 2>&5 4971 ac_status=$? 4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4973 (exit $ac_status); }; }; then 4974 ac_compiler_gnu=yes 4975else 4976 echo "$as_me: failed program was:" >&5 4977sed 's/^/| /' conftest.$ac_ext >&5 4978 4979ac_compiler_gnu=no 4980fi 4981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4982ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4983 4984fi 4985echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4986echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4987ac_ext=$ac_save_ext 4988ac_test_FFLAGS=${FFLAGS+set} 4989ac_save_FFLAGS=$FFLAGS 4990FFLAGS= 4991echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4992echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4993if test "${ac_cv_prog_f77_g+set}" = set; then 4994 echo $ECHO_N "(cached) $ECHO_C" >&6 4995else 4996 FFLAGS=-g 4997cat >conftest.$ac_ext <<_ACEOF 4998 program main 4999 5000 end 5001_ACEOF 5002rm -f conftest.$ac_objext 5003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5004 (eval $ac_compile) 2>conftest.er1 5005 ac_status=$? 5006 grep -v '^ *+' conftest.er1 >conftest.err 5007 rm -f conftest.er1 5008 cat conftest.err >&5 5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5010 (exit $ac_status); } && 5011 { ac_try='test -z "$ac_f77_werror_flag" 5012 || test ! -s conftest.err' 5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5014 (eval $ac_try) 2>&5 5015 ac_status=$? 5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5017 (exit $ac_status); }; } && 5018 { ac_try='test -s conftest.$ac_objext' 5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5020 (eval $ac_try) 2>&5 5021 ac_status=$? 5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5023 (exit $ac_status); }; }; then 5024 ac_cv_prog_f77_g=yes 5025else 5026 echo "$as_me: failed program was:" >&5 5027sed 's/^/| /' conftest.$ac_ext >&5 5028 5029ac_cv_prog_f77_g=no 5030fi 5031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5032 5033fi 5034echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5035echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5036if test "$ac_test_FFLAGS" = set; then 5037 FFLAGS=$ac_save_FFLAGS 5038elif test $ac_cv_prog_f77_g = yes; then 5039 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5040 FFLAGS="-g -O2" 5041 else 5042 FFLAGS="-g" 5043 fi 5044else 5045 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5046 FFLAGS="-O2" 5047 else 5048 FFLAGS= 5049 fi 5050fi 5051 5052G77=`test $ac_compiler_gnu = yes && echo yes` 5053ac_ext=c 5054ac_cpp='$CPP $CPPFLAGS' 5055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5057ac_compiler_gnu=$ac_cv_c_compiler_gnu 5058 5059 5060 5061# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5062 5063# find the maximum length of command line arguments 5064echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5065echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5066if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5067 echo $ECHO_N "(cached) $ECHO_C" >&6 5068else 5069 i=0 5070 teststring="ABCD" 5071 5072 case $build_os in 5073 msdosdjgpp*) 5074 # On DJGPP, this test can blow up pretty badly due to problems in libc 5075 # (any single argument exceeding 2000 bytes causes a buffer overrun 5076 # during glob expansion). Even if it were fixed, the result of this 5077 # check would be larger than it should be. 5078 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5079 ;; 5080 5081 gnu*) 5082 # Under GNU Hurd, this test is not required because there is 5083 # no limit to the length of command line arguments. 5084 # Libtool will interpret -1 as no limit whatsoever 5085 lt_cv_sys_max_cmd_len=-1; 5086 ;; 5087 5088 cygwin* | mingw*) 5089 # On Win9x/ME, this test blows up -- it succeeds, but takes 5090 # about 5 minutes as the teststring grows exponentially. 5091 # Worse, since 9x/ME are not pre-emptively multitasking, 5092 # you end up with a "frozen" computer, even though with patience 5093 # the test eventually succeeds (with a max line length of 256k). 5094 # Instead, let's just punt: use the minimum linelength reported by 5095 # all of the supported platforms: 8192 (on NT/2K/XP). 5096 lt_cv_sys_max_cmd_len=8192; 5097 ;; 5098 5099 amigaos*) 5100 # On AmigaOS with pdksh, this test takes hours, literally. 5101 # So we just punt and use a minimum line length of 8192. 5102 lt_cv_sys_max_cmd_len=8192; 5103 ;; 5104 5105 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5106 # This has been around since 386BSD, at least. Likely further. 5107 if test -x /sbin/sysctl; then 5108 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5109 elif test -x /usr/sbin/sysctl; then 5110 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5111 else 5112 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5113 fi 5114 # And add a safety zone 5115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5117 ;; 5118 5119 interix*) 5120 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5121 lt_cv_sys_max_cmd_len=196608 5122 ;; 5123 5124 osf*) 5125 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5126 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5127 # nice to cause kernel panics so lets avoid the loop below. 5128 # First set a reasonable default. 5129 lt_cv_sys_max_cmd_len=16384 5130 # 5131 if test -x /sbin/sysconfig; then 5132 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5133 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5134 esac 5135 fi 5136 ;; 5137 sco3.2v5*) 5138 lt_cv_sys_max_cmd_len=102400 5139 ;; 5140 sysv5* | sco5v6* | sysv4.2uw2*) 5141 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5142 if test -n "$kargmax"; then 5143 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5144 else 5145 lt_cv_sys_max_cmd_len=32768 5146 fi 5147 ;; 5148 *) 5149 # If test is not a shell built-in, we'll probably end up computing a 5150 # maximum length that is only half of the actual maximum length, but 5151 # we can't tell. 5152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5153 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5154 = "XX$teststring") >/dev/null 2>&1 && 5155 new_result=`expr "X$teststring" : ".*" 2>&1` && 5156 lt_cv_sys_max_cmd_len=$new_result && 5157 test $i != 17 # 1/2 MB should be enough 5158 do 5159 i=`expr $i + 1` 5160 teststring=$teststring$teststring 5161 done 5162 teststring= 5163 # Add a significant safety factor because C++ compilers can tack on massive 5164 # amounts of additional arguments before passing them to the linker. 5165 # It appears as though 1/2 is a usable value. 5166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5167 ;; 5168 esac 5169 5170fi 5171 5172if test -n $lt_cv_sys_max_cmd_len ; then 5173 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5174echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5175else 5176 echo "$as_me:$LINENO: result: none" >&5 5177echo "${ECHO_T}none" >&6 5178fi 5179 5180 5181 5182 5183# Check for command to grab the raw symbol name followed by C symbol from nm. 5184echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5185echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5186if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5187 echo $ECHO_N "(cached) $ECHO_C" >&6 5188else 5189 5190# These are sane defaults that work on at least a few old systems. 5191# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5192 5193# Character class describing NM global symbol codes. 5194symcode='[BCDEGRST]' 5195 5196# Regexp to match symbols that can be accessed directly from C. 5197sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5198 5199# Transform an extracted symbol line into a proper C declaration 5200lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5201 5202# Transform an extracted symbol line into symbol name and symbol address 5203lt_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'" 5204 5205# Define system-specific variables. 5206case $host_os in 5207aix*) 5208 symcode='[BCDT]' 5209 ;; 5210cygwin* | mingw* | pw32*) 5211 symcode='[ABCDGISTW]' 5212 ;; 5213hpux*) # Its linker distinguishes data from code symbols 5214 if test "$host_cpu" = ia64; then 5215 symcode='[ABCDEGRST]' 5216 fi 5217 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5218 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'" 5219 ;; 5220linux*) 5221 if test "$host_cpu" = ia64; then 5222 symcode='[ABCDGIRSTW]' 5223 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5224 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'" 5225 fi 5226 ;; 5227irix* | nonstopux*) 5228 symcode='[BCDEGRST]' 5229 ;; 5230osf*) 5231 symcode='[BCDEGQRST]' 5232 ;; 5233solaris*) 5234 symcode='[BDRT]' 5235 ;; 5236sco3.2v5*) 5237 symcode='[DT]' 5238 ;; 5239sysv4.2uw2*) 5240 symcode='[DT]' 5241 ;; 5242sysv5* | sco5v6* | unixware* | OpenUNIX*) 5243 symcode='[ABDT]' 5244 ;; 5245sysv4) 5246 symcode='[DFNSTU]' 5247 ;; 5248esac 5249 5250# Handle CRLF in mingw tool chain 5251opt_cr= 5252case $build_os in 5253mingw*) 5254 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5255 ;; 5256esac 5257 5258# If we're using GNU nm, then use its standard symbol codes. 5259case `$NM -V 2>&1` in 5260*GNU* | *'with BFD'*) 5261 symcode='[ABCDGIRSTW]' ;; 5262esac 5263 5264# Try without a prefix undercore, then with it. 5265for ac_symprfx in "" "_"; do 5266 5267 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5268 symxfrm="\\1 $ac_symprfx\\2 \\2" 5269 5270 # Write the raw and C identifiers. 5271 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5272 5273 # Check to see that the pipe works correctly. 5274 pipe_works=no 5275 5276 rm -f conftest* 5277 cat > conftest.$ac_ext <<EOF 5278#ifdef __cplusplus 5279extern "C" { 5280#endif 5281char nm_test_var; 5282void nm_test_func(){} 5283#ifdef __cplusplus 5284} 5285#endif 5286int main(){nm_test_var='a';nm_test_func();return(0);} 5287EOF 5288 5289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5290 (eval $ac_compile) 2>&5 5291 ac_status=$? 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); }; then 5294 # Now try to grab the symbols. 5295 nlist=conftest.nm 5296 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5297 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5298 ac_status=$? 5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5300 (exit $ac_status); } && test -s "$nlist"; then 5301 # Try sorting and uniquifying the output. 5302 if sort "$nlist" | uniq > "$nlist"T; then 5303 mv -f "$nlist"T "$nlist" 5304 else 5305 rm -f "$nlist"T 5306 fi 5307 5308 # Make sure that we snagged all the symbols we need. 5309 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5310 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5311 cat <<EOF > conftest.$ac_ext 5312#ifdef __cplusplus 5313extern "C" { 5314#endif 5315 5316EOF 5317 # Now generate the symbol file. 5318 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5319 5320 cat <<EOF >> conftest.$ac_ext 5321#if defined (__STDC__) && __STDC__ 5322# define lt_ptr_t void * 5323#else 5324# define lt_ptr_t char * 5325# define const 5326#endif 5327 5328/* The mapping between symbol names and symbols. */ 5329const struct { 5330 const char *name; 5331 lt_ptr_t address; 5332} 5333lt_preloaded_symbols[] = 5334{ 5335EOF 5336 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5337 cat <<\EOF >> conftest.$ac_ext 5338 {0, (lt_ptr_t) 0} 5339}; 5340 5341#ifdef __cplusplus 5342} 5343#endif 5344EOF 5345 # Now try linking the two files. 5346 mv conftest.$ac_objext conftstm.$ac_objext 5347 lt_save_LIBS="$LIBS" 5348 lt_save_CFLAGS="$CFLAGS" 5349 LIBS="conftstm.$ac_objext" 5350 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5352 (eval $ac_link) 2>&5 5353 ac_status=$? 5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5355 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5356 pipe_works=yes 5357 fi 5358 LIBS="$lt_save_LIBS" 5359 CFLAGS="$lt_save_CFLAGS" 5360 else 5361 echo "cannot find nm_test_func in $nlist" >&5 5362 fi 5363 else 5364 echo "cannot find nm_test_var in $nlist" >&5 5365 fi 5366 else 5367 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5368 fi 5369 else 5370 echo "$progname: failed program was:" >&5 5371 cat conftest.$ac_ext >&5 5372 fi 5373 rm -f conftest* conftst* 5374 5375 # Do not use the global_symbol_pipe unless it works. 5376 if test "$pipe_works" = yes; then 5377 break 5378 else 5379 lt_cv_sys_global_symbol_pipe= 5380 fi 5381done 5382 5383fi 5384 5385if test -z "$lt_cv_sys_global_symbol_pipe"; then 5386 lt_cv_sys_global_symbol_to_cdecl= 5387fi 5388if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5389 echo "$as_me:$LINENO: result: failed" >&5 5390echo "${ECHO_T}failed" >&6 5391else 5392 echo "$as_me:$LINENO: result: ok" >&5 5393echo "${ECHO_T}ok" >&6 5394fi 5395 5396echo "$as_me:$LINENO: checking for objdir" >&5 5397echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5398if test "${lt_cv_objdir+set}" = set; then 5399 echo $ECHO_N "(cached) $ECHO_C" >&6 5400else 5401 rm -f .libs 2>/dev/null 5402mkdir .libs 2>/dev/null 5403if test -d .libs; then 5404 lt_cv_objdir=.libs 5405else 5406 # MS-DOS does not allow filenames that begin with a dot. 5407 lt_cv_objdir=_libs 5408fi 5409rmdir .libs 2>/dev/null 5410fi 5411echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5412echo "${ECHO_T}$lt_cv_objdir" >&6 5413objdir=$lt_cv_objdir 5414 5415 5416 5417 5418 5419case $host_os in 5420aix3*) 5421 # AIX sometimes has problems with the GCC collect2 program. For some 5422 # reason, if we set the COLLECT_NAMES environment variable, the problems 5423 # vanish in a puff of smoke. 5424 if test "X${COLLECT_NAMES+set}" != Xset; then 5425 COLLECT_NAMES= 5426 export COLLECT_NAMES 5427 fi 5428 ;; 5429esac 5430 5431# Sed substitution that helps us do robust quoting. It backslashifies 5432# metacharacters that are still active within double-quoted strings. 5433Xsed='sed -e 1s/^X//' 5434sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5435 5436# Same as above, but do not quote variable references. 5437double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5438 5439# Sed substitution to delay expansion of an escaped shell variable in a 5440# double_quote_subst'ed string. 5441delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5442 5443# Sed substitution to avoid accidental globbing in evaled expressions 5444no_glob_subst='s/\*/\\\*/g' 5445 5446# Constants: 5447rm="rm -f" 5448 5449# Global variables: 5450default_ofile=libtool 5451can_build_shared=yes 5452 5453# All known linkers require a `.a' archive for static linking (except MSVC, 5454# which needs '.lib'). 5455libext=a 5456ltmain="$ac_aux_dir/ltmain.sh" 5457ofile="$default_ofile" 5458with_gnu_ld="$lt_cv_prog_gnu_ld" 5459 5460if test -n "$ac_tool_prefix"; then 5461 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5462set dummy ${ac_tool_prefix}ar; ac_word=$2 5463echo "$as_me:$LINENO: checking for $ac_word" >&5 5464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5465if test "${ac_cv_prog_AR+set}" = set; then 5466 echo $ECHO_N "(cached) $ECHO_C" >&6 5467else 5468 if test -n "$AR"; then 5469 ac_cv_prog_AR="$AR" # Let the user override the test. 5470else 5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5472for as_dir in $PATH 5473do 5474 IFS=$as_save_IFS 5475 test -z "$as_dir" && as_dir=. 5476 for ac_exec_ext in '' $ac_executable_extensions; do 5477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5478 ac_cv_prog_AR="${ac_tool_prefix}ar" 5479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5480 break 2 5481 fi 5482done 5483done 5484 5485fi 5486fi 5487AR=$ac_cv_prog_AR 5488if test -n "$AR"; then 5489 echo "$as_me:$LINENO: result: $AR" >&5 5490echo "${ECHO_T}$AR" >&6 5491else 5492 echo "$as_me:$LINENO: result: no" >&5 5493echo "${ECHO_T}no" >&6 5494fi 5495 5496fi 5497if test -z "$ac_cv_prog_AR"; then 5498 ac_ct_AR=$AR 5499 # Extract the first word of "ar", so it can be a program name with args. 5500set dummy ar; ac_word=$2 5501echo "$as_me:$LINENO: checking for $ac_word" >&5 5502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5503if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5504 echo $ECHO_N "(cached) $ECHO_C" >&6 5505else 5506 if test -n "$ac_ct_AR"; then 5507 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5508else 5509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5510for as_dir in $PATH 5511do 5512 IFS=$as_save_IFS 5513 test -z "$as_dir" && as_dir=. 5514 for ac_exec_ext in '' $ac_executable_extensions; do 5515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5516 ac_cv_prog_ac_ct_AR="ar" 5517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5518 break 2 5519 fi 5520done 5521done 5522 5523 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5524fi 5525fi 5526ac_ct_AR=$ac_cv_prog_ac_ct_AR 5527if test -n "$ac_ct_AR"; then 5528 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5529echo "${ECHO_T}$ac_ct_AR" >&6 5530else 5531 echo "$as_me:$LINENO: result: no" >&5 5532echo "${ECHO_T}no" >&6 5533fi 5534 5535 AR=$ac_ct_AR 5536else 5537 AR="$ac_cv_prog_AR" 5538fi 5539 5540if test -n "$ac_tool_prefix"; then 5541 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5542set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5543echo "$as_me:$LINENO: checking for $ac_word" >&5 5544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5545if test "${ac_cv_prog_RANLIB+set}" = set; then 5546 echo $ECHO_N "(cached) $ECHO_C" >&6 5547else 5548 if test -n "$RANLIB"; then 5549 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5550else 5551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5552for as_dir in $PATH 5553do 5554 IFS=$as_save_IFS 5555 test -z "$as_dir" && as_dir=. 5556 for ac_exec_ext in '' $ac_executable_extensions; do 5557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5558 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5560 break 2 5561 fi 5562done 5563done 5564 5565fi 5566fi 5567RANLIB=$ac_cv_prog_RANLIB 5568if test -n "$RANLIB"; then 5569 echo "$as_me:$LINENO: result: $RANLIB" >&5 5570echo "${ECHO_T}$RANLIB" >&6 5571else 5572 echo "$as_me:$LINENO: result: no" >&5 5573echo "${ECHO_T}no" >&6 5574fi 5575 5576fi 5577if test -z "$ac_cv_prog_RANLIB"; then 5578 ac_ct_RANLIB=$RANLIB 5579 # Extract the first word of "ranlib", so it can be a program name with args. 5580set dummy ranlib; ac_word=$2 5581echo "$as_me:$LINENO: checking for $ac_word" >&5 5582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5583if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5584 echo $ECHO_N "(cached) $ECHO_C" >&6 5585else 5586 if test -n "$ac_ct_RANLIB"; then 5587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5588else 5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5590for as_dir in $PATH 5591do 5592 IFS=$as_save_IFS 5593 test -z "$as_dir" && as_dir=. 5594 for ac_exec_ext in '' $ac_executable_extensions; do 5595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5596 ac_cv_prog_ac_ct_RANLIB="ranlib" 5597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5598 break 2 5599 fi 5600done 5601done 5602 5603 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5604fi 5605fi 5606ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5607if test -n "$ac_ct_RANLIB"; then 5608 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5609echo "${ECHO_T}$ac_ct_RANLIB" >&6 5610else 5611 echo "$as_me:$LINENO: result: no" >&5 5612echo "${ECHO_T}no" >&6 5613fi 5614 5615 RANLIB=$ac_ct_RANLIB 5616else 5617 RANLIB="$ac_cv_prog_RANLIB" 5618fi 5619 5620if test -n "$ac_tool_prefix"; then 5621 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5622set dummy ${ac_tool_prefix}strip; ac_word=$2 5623echo "$as_me:$LINENO: checking for $ac_word" >&5 5624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5625if test "${ac_cv_prog_STRIP+set}" = set; then 5626 echo $ECHO_N "(cached) $ECHO_C" >&6 5627else 5628 if test -n "$STRIP"; then 5629 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5630else 5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5632for as_dir in $PATH 5633do 5634 IFS=$as_save_IFS 5635 test -z "$as_dir" && as_dir=. 5636 for ac_exec_ext in '' $ac_executable_extensions; do 5637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5638 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5640 break 2 5641 fi 5642done 5643done 5644 5645fi 5646fi 5647STRIP=$ac_cv_prog_STRIP 5648if test -n "$STRIP"; then 5649 echo "$as_me:$LINENO: result: $STRIP" >&5 5650echo "${ECHO_T}$STRIP" >&6 5651else 5652 echo "$as_me:$LINENO: result: no" >&5 5653echo "${ECHO_T}no" >&6 5654fi 5655 5656fi 5657if test -z "$ac_cv_prog_STRIP"; then 5658 ac_ct_STRIP=$STRIP 5659 # Extract the first word of "strip", so it can be a program name with args. 5660set dummy strip; ac_word=$2 5661echo "$as_me:$LINENO: checking for $ac_word" >&5 5662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5663if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5664 echo $ECHO_N "(cached) $ECHO_C" >&6 5665else 5666 if test -n "$ac_ct_STRIP"; then 5667 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5668else 5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5670for as_dir in $PATH 5671do 5672 IFS=$as_save_IFS 5673 test -z "$as_dir" && as_dir=. 5674 for ac_exec_ext in '' $ac_executable_extensions; do 5675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5676 ac_cv_prog_ac_ct_STRIP="strip" 5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5678 break 2 5679 fi 5680done 5681done 5682 5683 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5684fi 5685fi 5686ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5687if test -n "$ac_ct_STRIP"; then 5688 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5689echo "${ECHO_T}$ac_ct_STRIP" >&6 5690else 5691 echo "$as_me:$LINENO: result: no" >&5 5692echo "${ECHO_T}no" >&6 5693fi 5694 5695 STRIP=$ac_ct_STRIP 5696else 5697 STRIP="$ac_cv_prog_STRIP" 5698fi 5699 5700 5701old_CC="$CC" 5702old_CFLAGS="$CFLAGS" 5703 5704# Set sane defaults for various variables 5705test -z "$AR" && AR=ar 5706test -z "$AR_FLAGS" && AR_FLAGS=cru 5707test -z "$AS" && AS=as 5708test -z "$CC" && CC=cc 5709test -z "$LTCC" && LTCC=$CC 5710test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 5711test -z "$DLLTOOL" && DLLTOOL=dlltool 5712test -z "$LD" && LD=ld 5713test -z "$LN_S" && LN_S="ln -s" 5714test -z "$MAGIC_CMD" && MAGIC_CMD=file 5715test -z "$NM" && NM=nm 5716test -z "$SED" && SED=sed 5717test -z "$OBJDUMP" && OBJDUMP=objdump 5718test -z "$RANLIB" && RANLIB=: 5719test -z "$STRIP" && STRIP=: 5720test -z "$ac_objext" && ac_objext=o 5721 5722# Determine commands to create old-style static archives. 5723old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5724old_postinstall_cmds='chmod 644 $oldlib' 5725old_postuninstall_cmds= 5726 5727if test -n "$RANLIB"; then 5728 case $host_os in 5729 openbsd*) 5730 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5731 ;; 5732 *) 5733 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5734 ;; 5735 esac 5736 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5737fi 5738 5739for cc_temp in $compiler""; do 5740 case $cc_temp in 5741 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5742 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5743 \-*) ;; 5744 *) break;; 5745 esac 5746done 5747cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 5748 5749 5750# Only perform the check for file, if the check method requires it 5751case $deplibs_check_method in 5752file_magic*) 5753 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5754 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5755echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5756if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5757 echo $ECHO_N "(cached) $ECHO_C" >&6 5758else 5759 case $MAGIC_CMD in 5760[\\/*] | ?:[\\/]*) 5761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5762 ;; 5763*) 5764 lt_save_MAGIC_CMD="$MAGIC_CMD" 5765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5766 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5767 for ac_dir in $ac_dummy; do 5768 IFS="$lt_save_ifs" 5769 test -z "$ac_dir" && ac_dir=. 5770 if test -f $ac_dir/${ac_tool_prefix}file; then 5771 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5772 if test -n "$file_magic_test_file"; then 5773 case $deplibs_check_method in 5774 "file_magic "*) 5775 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5778 $EGREP "$file_magic_regex" > /dev/null; then 5779 : 5780 else 5781 cat <<EOF 1>&2 5782 5783*** Warning: the command libtool uses to detect shared libraries, 5784*** $file_magic_cmd, produces output that libtool cannot recognize. 5785*** The result is that libtool may fail to recognize shared libraries 5786*** as such. This will affect the creation of libtool libraries that 5787*** depend on shared libraries, but programs linked with such libtool 5788*** libraries will work regardless of this problem. Nevertheless, you 5789*** may want to report the problem to your system manager and/or to 5790*** bug-libtool@gnu.org 5791 5792EOF 5793 fi ;; 5794 esac 5795 fi 5796 break 5797 fi 5798 done 5799 IFS="$lt_save_ifs" 5800 MAGIC_CMD="$lt_save_MAGIC_CMD" 5801 ;; 5802esac 5803fi 5804 5805MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5806if test -n "$MAGIC_CMD"; then 5807 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5808echo "${ECHO_T}$MAGIC_CMD" >&6 5809else 5810 echo "$as_me:$LINENO: result: no" >&5 5811echo "${ECHO_T}no" >&6 5812fi 5813 5814if test -z "$lt_cv_path_MAGIC_CMD"; then 5815 if test -n "$ac_tool_prefix"; then 5816 echo "$as_me:$LINENO: checking for file" >&5 5817echo $ECHO_N "checking for file... $ECHO_C" >&6 5818if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5819 echo $ECHO_N "(cached) $ECHO_C" >&6 5820else 5821 case $MAGIC_CMD in 5822[\\/*] | ?:[\\/]*) 5823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5824 ;; 5825*) 5826 lt_save_MAGIC_CMD="$MAGIC_CMD" 5827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5828 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5829 for ac_dir in $ac_dummy; do 5830 IFS="$lt_save_ifs" 5831 test -z "$ac_dir" && ac_dir=. 5832 if test -f $ac_dir/file; then 5833 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5834 if test -n "$file_magic_test_file"; then 5835 case $deplibs_check_method in 5836 "file_magic "*) 5837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5838 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5840 $EGREP "$file_magic_regex" > /dev/null; then 5841 : 5842 else 5843 cat <<EOF 1>&2 5844 5845*** Warning: the command libtool uses to detect shared libraries, 5846*** $file_magic_cmd, produces output that libtool cannot recognize. 5847*** The result is that libtool may fail to recognize shared libraries 5848*** as such. This will affect the creation of libtool libraries that 5849*** depend on shared libraries, but programs linked with such libtool 5850*** libraries will work regardless of this problem. Nevertheless, you 5851*** may want to report the problem to your system manager and/or to 5852*** bug-libtool@gnu.org 5853 5854EOF 5855 fi ;; 5856 esac 5857 fi 5858 break 5859 fi 5860 done 5861 IFS="$lt_save_ifs" 5862 MAGIC_CMD="$lt_save_MAGIC_CMD" 5863 ;; 5864esac 5865fi 5866 5867MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5868if test -n "$MAGIC_CMD"; then 5869 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5870echo "${ECHO_T}$MAGIC_CMD" >&6 5871else 5872 echo "$as_me:$LINENO: result: no" >&5 5873echo "${ECHO_T}no" >&6 5874fi 5875 5876 else 5877 MAGIC_CMD=: 5878 fi 5879fi 5880 5881 fi 5882 ;; 5883esac 5884 5885enable_dlopen=no 5886enable_win32_dll=no 5887 5888# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5889if test "${enable_libtool_lock+set}" = set; then 5890 enableval="$enable_libtool_lock" 5891 5892fi; 5893test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5894 5895 5896# Check whether --with-pic or --without-pic was given. 5897if test "${with_pic+set}" = set; then 5898 withval="$with_pic" 5899 pic_mode="$withval" 5900else 5901 pic_mode=default 5902fi; 5903test -z "$pic_mode" && pic_mode=default 5904 5905# Check if we have a version mismatch between libtool.m4 and ltmain.sh. 5906# 5907# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. 5908# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually 5909# calls AC_LIBTOOL_CONFIG and creates libtool. 5910# 5911echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 5912echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6 5913if test "x$ltmain" = "x" ; then 5914 echo "$as_me:$LINENO: result: no" >&5 5915echo "${ECHO_T}no" >&6 5916 { { echo "$as_me:$LINENO: error: 5917 5918*** [Gentoo] sanity check failed! *** 5919*** \$ltmain is not defined, please check the patch for consistency! *** 5920" >&5 5921echo "$as_me: error: 5922 5923*** [Gentoo] sanity check failed! *** 5924*** \$ltmain is not defined, please check the patch for consistency! *** 5925" >&2;} 5926 { (exit 1); exit 1; }; } 5927fi 5928gentoo_lt_version="1.5.22" 5929gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"` 5930if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then 5931 echo "$as_me:$LINENO: result: no" >&5 5932echo "${ECHO_T}no" >&6 5933 { { echo "$as_me:$LINENO: error: 5934 5935*** [Gentoo] sanity check failed! *** 5936*** libtool.m4 and ltmain.sh have a version mismatch! *** 5937*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 5938 5939Please run: 5940 5941 libtoolize --copy --force 5942 5943if appropriate, please contact the maintainer of this 5944package (or your distribution) for help. 5945" >&5 5946echo "$as_me: error: 5947 5948*** [Gentoo] sanity check failed! *** 5949*** libtool.m4 and ltmain.sh have a version mismatch! *** 5950*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** 5951 5952Please run: 5953 5954 libtoolize --copy --force 5955 5956if appropriate, please contact the maintainer of this 5957package (or your distribution) for help. 5958" >&2;} 5959 { (exit 1); exit 1; }; } 5960else 5961 echo "$as_me:$LINENO: result: yes" >&5 5962echo "${ECHO_T}yes" >&6 5963fi 5964 5965 5966# Use C for the default configuration in the libtool script 5967tagname= 5968lt_save_CC="$CC" 5969ac_ext=c 5970ac_cpp='$CPP $CPPFLAGS' 5971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5973ac_compiler_gnu=$ac_cv_c_compiler_gnu 5974 5975 5976# Source file extension for C test sources. 5977ac_ext=c 5978 5979# Object file extension for compiled C test sources. 5980objext=o 5981objext=$objext 5982 5983# Code to be used in simple compile tests 5984lt_simple_compile_test_code="int some_variable = 0;\n" 5985 5986# Code to be used in simple link tests 5987lt_simple_link_test_code='int main(){return(0);}\n' 5988 5989 5990# If no C compiler was specified, use CC. 5991LTCC=${LTCC-"$CC"} 5992 5993# If no C compiler flags were specified, use CFLAGS. 5994LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5995 5996# Allow CC to be a program name with arguments. 5997compiler=$CC 5998 5999 6000# save warnings/boilerplate of simple test code 6001ac_outfile=conftest.$ac_objext 6002printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6003eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6004_lt_compiler_boilerplate=`cat conftest.err` 6005$rm conftest* 6006 6007ac_outfile=conftest.$ac_objext 6008printf "$lt_simple_link_test_code" >conftest.$ac_ext 6009eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6010_lt_linker_boilerplate=`cat conftest.err` 6011$rm conftest* 6012 6013 6014 6015lt_prog_compiler_no_builtin_flag= 6016 6017if test "$GCC" = yes; then 6018 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6019 6020 6021echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6022echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6023if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6024 echo $ECHO_N "(cached) $ECHO_C" >&6 6025else 6026 lt_cv_prog_compiler_rtti_exceptions=no 6027 ac_outfile=conftest.$ac_objext 6028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6029 lt_compiler_flag="-fno-rtti -fno-exceptions" 6030 # Insert the option either (1) after the last *FLAGS variable, or 6031 # (2) before a word containing "conftest.", or (3) at the end. 6032 # Note that $ac_compile itself does not contain backslashes and begins 6033 # with a dollar sign (not a hyphen), so the echo should work correctly. 6034 # The option is referenced via a variable to avoid confusing sed. 6035 lt_compile=`echo "$ac_compile" | $SED \ 6036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6038 -e 's:$: $lt_compiler_flag:'` 6039 (eval echo "\"\$as_me:6034: $lt_compile\"" >&5) 6040 (eval "$lt_compile" 2>conftest.err) 6041 ac_status=$? 6042 cat conftest.err >&5 6043 echo "$as_me:6038: \$? = $ac_status" >&5 6044 if (exit $ac_status) && test -s "$ac_outfile"; then 6045 # The compiler can only warn and ignore the option if not recognized 6046 # So say no if there are warnings other than the usual output. 6047 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6050 lt_cv_prog_compiler_rtti_exceptions=yes 6051 fi 6052 fi 6053 $rm conftest* 6054 6055fi 6056echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6057echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6058 6059if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6060 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6061else 6062 : 6063fi 6064 6065fi 6066 6067lt_prog_compiler_wl= 6068lt_prog_compiler_pic= 6069lt_prog_compiler_static= 6070 6071echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6072echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6073 6074 if test "$GCC" = yes; then 6075 lt_prog_compiler_wl='-Wl,' 6076 lt_prog_compiler_static='-static' 6077 6078 case $host_os in 6079 aix*) 6080 # All AIX code is PIC. 6081 if test "$host_cpu" = ia64; then 6082 # AIX 5 now supports IA64 processor 6083 lt_prog_compiler_static='-Bstatic' 6084 fi 6085 ;; 6086 6087 amigaos*) 6088 # FIXME: we need at least 68020 code to build shared libraries, but 6089 # adding the `-m68020' flag to GCC prevents building anything better, 6090 # like `-m68040'. 6091 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6092 ;; 6093 6094 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6095 # PIC is the default for these OSes. 6096 ;; 6097 6098 mingw* | pw32* | os2*) 6099 # This hack is so that the source file can tell whether it is being 6100 # built for inclusion in a dll (and should export symbols for example). 6101 lt_prog_compiler_pic='-DDLL_EXPORT' 6102 ;; 6103 6104 darwin* | rhapsody*) 6105 # PIC is the default on this platform 6106 # Common symbols not allowed in MH_DYLIB files 6107 lt_prog_compiler_pic='-fno-common' 6108 ;; 6109 6110 interix3*) 6111 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6112 # Instead, we relocate shared libraries at runtime. 6113 ;; 6114 6115 msdosdjgpp*) 6116 # Just because we use GCC doesn't mean we suddenly get shared libraries 6117 # on systems that don't support them. 6118 lt_prog_compiler_can_build_shared=no 6119 enable_shared=no 6120 ;; 6121 6122 sysv4*MP*) 6123 if test -d /usr/nec; then 6124 lt_prog_compiler_pic=-Kconform_pic 6125 fi 6126 ;; 6127 6128 hpux*) 6129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6130 # not for PA HP-UX. 6131 case $host_cpu in 6132 hppa*64*|ia64*) 6133 # +Z the default 6134 ;; 6135 *) 6136 lt_prog_compiler_pic='-fPIC' 6137 ;; 6138 esac 6139 ;; 6140 6141 *) 6142 lt_prog_compiler_pic='-fPIC' 6143 ;; 6144 esac 6145 else 6146 # PORTME Check for flag to pass linker flags through the system compiler. 6147 case $host_os in 6148 aix*) 6149 lt_prog_compiler_wl='-Wl,' 6150 if test "$host_cpu" = ia64; then 6151 # AIX 5 now supports IA64 processor 6152 lt_prog_compiler_static='-Bstatic' 6153 else 6154 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6155 fi 6156 ;; 6157 darwin*) 6158 # PIC is the default on this platform 6159 # Common symbols not allowed in MH_DYLIB files 6160 case $cc_basename in 6161 xlc*) 6162 lt_prog_compiler_pic='-qnocommon' 6163 lt_prog_compiler_wl='-Wl,' 6164 ;; 6165 esac 6166 ;; 6167 6168 mingw* | pw32* | os2*) 6169 # This hack is so that the source file can tell whether it is being 6170 # built for inclusion in a dll (and should export symbols for example). 6171 lt_prog_compiler_pic='-DDLL_EXPORT' 6172 ;; 6173 6174 hpux9* | hpux10* | hpux11*) 6175 lt_prog_compiler_wl='-Wl,' 6176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6177 # not for PA HP-UX. 6178 case $host_cpu in 6179 hppa*64*|ia64*) 6180 # +Z the default 6181 ;; 6182 *) 6183 lt_prog_compiler_pic='+Z' 6184 ;; 6185 esac 6186 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6187 lt_prog_compiler_static='${wl}-a ${wl}archive' 6188 ;; 6189 6190 irix5* | irix6* | nonstopux*) 6191 lt_prog_compiler_wl='-Wl,' 6192 # PIC (with -KPIC) is the default. 6193 lt_prog_compiler_static='-non_shared' 6194 ;; 6195 6196 newsos6) 6197 lt_prog_compiler_pic='-KPIC' 6198 lt_prog_compiler_static='-Bstatic' 6199 ;; 6200 6201 linux*) 6202 case $cc_basename in 6203 icc* | ecc*) 6204 lt_prog_compiler_wl='-Wl,' 6205 lt_prog_compiler_pic='-KPIC' 6206 lt_prog_compiler_static='-static' 6207 ;; 6208 pgcc* | pgf77* | pgf90* | pgf95*) 6209 # Portland Group compilers (*not* the Pentium gcc compiler, 6210 # which looks to be a dead project) 6211 lt_prog_compiler_wl='-Wl,' 6212 lt_prog_compiler_pic='-fpic' 6213 lt_prog_compiler_static='-Bstatic' 6214 ;; 6215 ccc*) 6216 lt_prog_compiler_wl='-Wl,' 6217 # All Alpha code is PIC. 6218 lt_prog_compiler_static='-non_shared' 6219 ;; 6220 esac 6221 ;; 6222 6223 osf3* | osf4* | osf5*) 6224 lt_prog_compiler_wl='-Wl,' 6225 # All OSF/1 code is PIC. 6226 lt_prog_compiler_static='-non_shared' 6227 ;; 6228 6229 solaris*) 6230 lt_prog_compiler_pic='-KPIC' 6231 lt_prog_compiler_static='-Bstatic' 6232 case $cc_basename in 6233 f77* | f90* | f95*) 6234 lt_prog_compiler_wl='-Qoption ld ';; 6235 *) 6236 lt_prog_compiler_wl='-Wl,';; 6237 esac 6238 ;; 6239 6240 sunos4*) 6241 lt_prog_compiler_wl='-Qoption ld ' 6242 lt_prog_compiler_pic='-PIC' 6243 lt_prog_compiler_static='-Bstatic' 6244 ;; 6245 6246 sysv4 | sysv4.2uw2* | sysv4.3*) 6247 lt_prog_compiler_wl='-Wl,' 6248 lt_prog_compiler_pic='-KPIC' 6249 lt_prog_compiler_static='-Bstatic' 6250 ;; 6251 6252 sysv4*MP*) 6253 if test -d /usr/nec ;then 6254 lt_prog_compiler_pic='-Kconform_pic' 6255 lt_prog_compiler_static='-Bstatic' 6256 fi 6257 ;; 6258 6259 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6260 lt_prog_compiler_wl='-Wl,' 6261 lt_prog_compiler_pic='-KPIC' 6262 lt_prog_compiler_static='-Bstatic' 6263 ;; 6264 6265 unicos*) 6266 lt_prog_compiler_wl='-Wl,' 6267 lt_prog_compiler_can_build_shared=no 6268 ;; 6269 6270 uts4*) 6271 lt_prog_compiler_pic='-pic' 6272 lt_prog_compiler_static='-Bstatic' 6273 ;; 6274 6275 *) 6276 lt_prog_compiler_can_build_shared=no 6277 ;; 6278 esac 6279 fi 6280 6281echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6282echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6283 6284# 6285# Check to make sure the PIC flag actually works. 6286# 6287if test -n "$lt_prog_compiler_pic"; then 6288 6289echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6290echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6291if test "${lt_prog_compiler_pic_works+set}" = set; then 6292 echo $ECHO_N "(cached) $ECHO_C" >&6 6293else 6294 lt_prog_compiler_pic_works=no 6295 ac_outfile=conftest.$ac_objext 6296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6297 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6298 # Insert the option either (1) after the last *FLAGS variable, or 6299 # (2) before a word containing "conftest.", or (3) at the end. 6300 # Note that $ac_compile itself does not contain backslashes and begins 6301 # with a dollar sign (not a hyphen), so the echo should work correctly. 6302 # The option is referenced via a variable to avoid confusing sed. 6303 lt_compile=`echo "$ac_compile" | $SED \ 6304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6306 -e 's:$: $lt_compiler_flag:'` 6307 (eval echo "\"\$as_me:6302: $lt_compile\"" >&5) 6308 (eval "$lt_compile" 2>conftest.err) 6309 ac_status=$? 6310 cat conftest.err >&5 6311 echo "$as_me:6306: \$? = $ac_status" >&5 6312 if (exit $ac_status) && test -s "$ac_outfile"; then 6313 # The compiler can only warn and ignore the option if not recognized 6314 # So say no if there are warnings other than the usual output. 6315 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6318 lt_prog_compiler_pic_works=yes 6319 fi 6320 fi 6321 $rm conftest* 6322 6323fi 6324echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6325echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6326 6327if test x"$lt_prog_compiler_pic_works" = xyes; then 6328 case $lt_prog_compiler_pic in 6329 "" | " "*) ;; 6330 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6331 esac 6332else 6333 lt_prog_compiler_pic= 6334 lt_prog_compiler_can_build_shared=no 6335fi 6336 6337fi 6338case $host_os in 6339 # For platforms which do not support PIC, -DPIC is meaningless: 6340 *djgpp*) 6341 lt_prog_compiler_pic= 6342 ;; 6343 *) 6344 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6345 ;; 6346esac 6347 6348# 6349# Check to make sure the static flag actually works. 6350# 6351wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6352echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6353echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6354if test "${lt_prog_compiler_static_works+set}" = set; then 6355 echo $ECHO_N "(cached) $ECHO_C" >&6 6356else 6357 lt_prog_compiler_static_works=no 6358 save_LDFLAGS="$LDFLAGS" 6359 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6360 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6361 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6362 # The linker can only warn and ignore the option if not recognized 6363 # So say no if there are warnings 6364 if test -s conftest.err; then 6365 # Append any errors to the config.log. 6366 cat conftest.err 1>&5 6367 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6369 if diff conftest.exp conftest.er2 >/dev/null; then 6370 lt_prog_compiler_static_works=yes 6371 fi 6372 else 6373 lt_prog_compiler_static_works=yes 6374 fi 6375 fi 6376 $rm conftest* 6377 LDFLAGS="$save_LDFLAGS" 6378 6379fi 6380echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6381echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6382 6383if test x"$lt_prog_compiler_static_works" = xyes; then 6384 : 6385else 6386 lt_prog_compiler_static= 6387fi 6388 6389 6390echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6391echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6392if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6393 echo $ECHO_N "(cached) $ECHO_C" >&6 6394else 6395 lt_cv_prog_compiler_c_o=no 6396 $rm -r conftest 2>/dev/null 6397 mkdir conftest 6398 cd conftest 6399 mkdir out 6400 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6401 6402 lt_compiler_flag="-o out/conftest2.$ac_objext" 6403 # Insert the option either (1) after the last *FLAGS variable, or 6404 # (2) before a word containing "conftest.", or (3) at the end. 6405 # Note that $ac_compile itself does not contain backslashes and begins 6406 # with a dollar sign (not a hyphen), so the echo should work correctly. 6407 lt_compile=`echo "$ac_compile" | $SED \ 6408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6410 -e 's:$: $lt_compiler_flag:'` 6411 (eval echo "\"\$as_me:6406: $lt_compile\"" >&5) 6412 (eval "$lt_compile" 2>out/conftest.err) 6413 ac_status=$? 6414 cat out/conftest.err >&5 6415 echo "$as_me:6410: \$? = $ac_status" >&5 6416 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6417 then 6418 # The compiler can only warn and ignore the option if not recognized 6419 # So say no if there are warnings 6420 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6423 lt_cv_prog_compiler_c_o=yes 6424 fi 6425 fi 6426 chmod u+w . 2>&5 6427 $rm conftest* 6428 # SGI C++ compiler will create directory out/ii_files/ for 6429 # template instantiation 6430 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6431 $rm out/* && rmdir out 6432 cd .. 6433 rmdir conftest 6434 $rm conftest* 6435 6436fi 6437echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6438echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6439 6440 6441hard_links="nottested" 6442if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6443 # do not overwrite the value of need_locks provided by the user 6444 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6445echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6446 hard_links=yes 6447 $rm conftest* 6448 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6449 touch conftest.a 6450 ln conftest.a conftest.b 2>&5 || hard_links=no 6451 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6452 echo "$as_me:$LINENO: result: $hard_links" >&5 6453echo "${ECHO_T}$hard_links" >&6 6454 if test "$hard_links" = no; then 6455 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6456echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6457 need_locks=warn 6458 fi 6459else 6460 need_locks=no 6461fi 6462 6463echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6464echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6465 6466 runpath_var= 6467 allow_undefined_flag= 6468 enable_shared_with_static_runtimes=no 6469 archive_cmds= 6470 archive_expsym_cmds= 6471 old_archive_From_new_cmds= 6472 old_archive_from_expsyms_cmds= 6473 export_dynamic_flag_spec= 6474 whole_archive_flag_spec= 6475 thread_safe_flag_spec= 6476 hardcode_libdir_flag_spec= 6477 hardcode_libdir_flag_spec_ld= 6478 hardcode_libdir_separator= 6479 hardcode_direct=no 6480 hardcode_minus_L=no 6481 hardcode_shlibpath_var=unsupported 6482 link_all_deplibs=unknown 6483 hardcode_automatic=no 6484 module_cmds= 6485 module_expsym_cmds= 6486 always_export_symbols=no 6487 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6488 # include_expsyms should be a list of space-separated symbols to be *always* 6489 # included in the symbol list 6490 include_expsyms= 6491 # exclude_expsyms can be an extended regexp of symbols to exclude 6492 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6493 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6494 # as well as any symbol that contains `d'. 6495 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6496 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6497 # platforms (ab)use it in PIC code, but their linkers get confused if 6498 # the symbol is explicitly referenced. Since portable code cannot 6499 # rely on this symbol name, it's probably fine to never include it in 6500 # preloaded symbol tables. 6501 extract_expsyms_cmds= 6502 # Just being paranoid about ensuring that cc_basename is set. 6503 for cc_temp in $compiler""; do 6504 case $cc_temp in 6505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6507 \-*) ;; 6508 *) break;; 6509 esac 6510done 6511cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6512 6513 case $host_os in 6514 cygwin* | mingw* | pw32*) 6515 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6516 # When not using gcc, we currently assume that we are using 6517 # Microsoft Visual C++. 6518 if test "$GCC" != yes; then 6519 with_gnu_ld=no 6520 fi 6521 ;; 6522 interix*) 6523 # we just hope/assume this is gcc and not c89 (= MSVC++) 6524 with_gnu_ld=yes 6525 ;; 6526 openbsd*) 6527 with_gnu_ld=no 6528 ;; 6529 esac 6530 6531 ld_shlibs=yes 6532 if test "$with_gnu_ld" = yes; then 6533 # If archive_cmds runs LD, not CC, wlarc should be empty 6534 wlarc='${wl}' 6535 6536 # Set some defaults for GNU ld with shared library support. These 6537 # are reset later if shared libraries are not supported. Putting them 6538 # here allows them to be overridden if necessary. 6539 runpath_var=LD_RUN_PATH 6540 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6541 export_dynamic_flag_spec='${wl}--export-dynamic' 6542 # ancient GNU ld didn't support --whole-archive et. al. 6543 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6544 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6545 else 6546 whole_archive_flag_spec= 6547 fi 6548 supports_anon_versioning=no 6549 case `$LD -v 2>/dev/null` in 6550 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6551 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6552 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6553 *\ 2.11.*) ;; # other 2.11 versions 6554 *) supports_anon_versioning=yes ;; 6555 esac 6556 6557 # See if GNU ld supports shared libraries. 6558 case $host_os in 6559 aix3* | aix4* | aix5*) 6560 # On AIX/PPC, the GNU linker is very broken 6561 if test "$host_cpu" != ia64; then 6562 ld_shlibs=no 6563 cat <<EOF 1>&2 6564 6565*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6566*** to be unable to reliably create shared libraries on AIX. 6567*** Therefore, libtool is disabling shared libraries support. If you 6568*** really care for shared libraries, you may want to modify your PATH 6569*** so that a non-GNU linker is found, and then restart. 6570 6571EOF 6572 fi 6573 ;; 6574 6575 amigaos*) 6576 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)' 6577 hardcode_libdir_flag_spec='-L$libdir' 6578 hardcode_minus_L=yes 6579 6580 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6581 # that the semantics of dynamic libraries on AmigaOS, at least up 6582 # to version 4, is to share data among multiple programs linked 6583 # with the same dynamic library. Since this doesn't match the 6584 # behavior of shared libraries on other platforms, we can't use 6585 # them. 6586 ld_shlibs=no 6587 ;; 6588 6589 beos*) 6590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6591 allow_undefined_flag=unsupported 6592 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6593 # support --undefined. This deserves some investigation. FIXME 6594 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6595 else 6596 ld_shlibs=no 6597 fi 6598 ;; 6599 6600 cygwin* | mingw* | pw32*) 6601 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6602 # as there is no search path for DLLs. 6603 hardcode_libdir_flag_spec='-L$libdir' 6604 allow_undefined_flag=unsupported 6605 always_export_symbols=no 6606 enable_shared_with_static_runtimes=yes 6607 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6608 6609 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6611 # If the export-symbols file already is a .def file (1st line 6612 # is EXPORTS), use it as is; otherwise, prepend... 6613 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6614 cp $export_symbols $output_objdir/$soname.def; 6615 else 6616 echo EXPORTS > $output_objdir/$soname.def; 6617 cat $export_symbols >> $output_objdir/$soname.def; 6618 fi~ 6619 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6620 else 6621 ld_shlibs=no 6622 fi 6623 ;; 6624 6625 interix3*) 6626 hardcode_direct=no 6627 hardcode_shlibpath_var=no 6628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6629 export_dynamic_flag_spec='${wl}-E' 6630 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6631 # Instead, shared libraries are loaded at an image base (0x10000000 by 6632 # default) and relocated if they conflict, which is a slow very memory 6633 # consuming and fragmenting process. To avoid this, we pick a random, 6634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6635 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6637 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6638 ;; 6639 6640 linux*) 6641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6642 tmp_addflag= 6643 case $cc_basename,$host_cpu in 6644 pgcc*) # Portland Group C compiler 6645 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' 6646 tmp_addflag=' $pic_flag' 6647 ;; 6648 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6649 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' 6650 tmp_addflag=' $pic_flag -Mnomain' ;; 6651 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6652 tmp_addflag=' -i_dynamic' ;; 6653 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6654 tmp_addflag=' -i_dynamic -nofor_main' ;; 6655 ifc* | ifort*) # Intel Fortran compiler 6656 tmp_addflag=' -nofor_main' ;; 6657 esac 6658 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6659 6660 if test $supports_anon_versioning = yes; then 6661 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6663 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6664 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6665 fi 6666 else 6667 ld_shlibs=no 6668 fi 6669 ;; 6670 6671 netbsd*) 6672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6673 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6674 wlarc= 6675 else 6676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6677 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6678 fi 6679 ;; 6680 6681 solaris*) 6682 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6683 ld_shlibs=no 6684 cat <<EOF 1>&2 6685 6686*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6687*** create shared libraries on Solaris systems. Therefore, libtool 6688*** is disabling shared libraries support. We urge you to upgrade GNU 6689*** binutils to release 2.9.1 or newer. Another option is to modify 6690*** your PATH or compiler configuration so that the native linker is 6691*** used, and then restart. 6692 6693EOF 6694 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6697 else 6698 ld_shlibs=no 6699 fi 6700 ;; 6701 6702 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6703 case `$LD -v 2>&1` in 6704 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 6705 ld_shlibs=no 6706 cat <<_LT_EOF 1>&2 6707 6708*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6709*** reliably create shared libraries on SCO systems. Therefore, libtool 6710*** is disabling shared libraries support. We urge you to upgrade GNU 6711*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6712*** your PATH or compiler configuration so that the native linker is 6713*** used, and then restart. 6714 6715_LT_EOF 6716 ;; 6717 *) 6718 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6719 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 6720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 6721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 6722 else 6723 ld_shlibs=no 6724 fi 6725 ;; 6726 esac 6727 ;; 6728 6729 sunos4*) 6730 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6731 wlarc= 6732 hardcode_direct=yes 6733 hardcode_shlibpath_var=no 6734 ;; 6735 6736 *) 6737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6740 else 6741 ld_shlibs=no 6742 fi 6743 ;; 6744 esac 6745 6746 if test "$ld_shlibs" = no; then 6747 runpath_var= 6748 hardcode_libdir_flag_spec= 6749 export_dynamic_flag_spec= 6750 whole_archive_flag_spec= 6751 fi 6752 else 6753 # PORTME fill in a description of your system's linker (not GNU ld) 6754 case $host_os in 6755 aix3*) 6756 allow_undefined_flag=unsupported 6757 always_export_symbols=yes 6758 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' 6759 # Note: this linker hardcodes the directories in LIBPATH if there 6760 # are no directories specified by -L. 6761 hardcode_minus_L=yes 6762 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6763 # Neither direct hardcoding nor static linking is supported with a 6764 # broken collect2. 6765 hardcode_direct=unsupported 6766 fi 6767 ;; 6768 6769 aix4* | aix5*) 6770 if test "$host_cpu" = ia64; then 6771 # On IA64, the linker does run time linking by default, so we don't 6772 # have to do anything special. 6773 aix_use_runtimelinking=no 6774 exp_sym_flag='-Bexport' 6775 no_entry_flag="" 6776 else 6777 # If we're using GNU nm, then we don't want the "-C" option. 6778 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6779 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6780 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' 6781 else 6782 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' 6783 fi 6784 aix_use_runtimelinking=no 6785 6786 # Test if we are trying to use run time linking or normal 6787 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6788 # need to do runtime linking. 6789 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6790 for ld_flag in $LDFLAGS; do 6791 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6792 aix_use_runtimelinking=yes 6793 break 6794 fi 6795 done 6796 ;; 6797 esac 6798 6799 exp_sym_flag='-bexport' 6800 no_entry_flag='-bnoentry' 6801 fi 6802 6803 # When large executables or shared objects are built, AIX ld can 6804 # have problems creating the table of contents. If linking a library 6805 # or program results in "error TOC overflow" add -mminimal-toc to 6806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6808 6809 archive_cmds='' 6810 hardcode_direct=yes 6811 hardcode_libdir_separator=':' 6812 link_all_deplibs=yes 6813 6814 if test "$GCC" = yes; then 6815 case $host_os in aix4.[012]|aix4.[012].*) 6816 # We only want to do this on AIX 4.2 and lower, the check 6817 # below for broken collect2 doesn't work under 4.3+ 6818 collect2name=`${CC} -print-prog-name=collect2` 6819 if test -f "$collect2name" && \ 6820 strings "$collect2name" | grep resolve_lib_name >/dev/null 6821 then 6822 # We have reworked collect2 6823 hardcode_direct=yes 6824 else 6825 # We have old collect2 6826 hardcode_direct=unsupported 6827 # It fails to find uninstalled libraries when the uninstalled 6828 # path is not listed in the libpath. Setting hardcode_minus_L 6829 # to unsupported forces relinking 6830 hardcode_minus_L=yes 6831 hardcode_libdir_flag_spec='-L$libdir' 6832 hardcode_libdir_separator= 6833 fi 6834 ;; 6835 esac 6836 shared_flag='-shared' 6837 if test "$aix_use_runtimelinking" = yes; then 6838 shared_flag="$shared_flag "'${wl}-G' 6839 fi 6840 else 6841 # not using gcc 6842 if test "$host_cpu" = ia64; then 6843 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6844 # chokes on -Wl,-G. The following line is correct: 6845 shared_flag='-G' 6846 else 6847 if test "$aix_use_runtimelinking" = yes; then 6848 shared_flag='${wl}-G' 6849 else 6850 shared_flag='${wl}-bM:SRE' 6851 fi 6852 fi 6853 fi 6854 6855 # It seems that -bexpall does not export symbols beginning with 6856 # underscore (_), so it is better to generate a list of symbols to export. 6857 always_export_symbols=yes 6858 if test "$aix_use_runtimelinking" = yes; then 6859 # Warning - without using the other runtime loading flags (-brtl), 6860 # -berok will link without error, but may produce a broken library. 6861 allow_undefined_flag='-berok' 6862 # Determine the default libpath from the value encoded in an empty executable. 6863 cat >conftest.$ac_ext <<_ACEOF 6864/* confdefs.h. */ 6865_ACEOF 6866cat confdefs.h >>conftest.$ac_ext 6867cat >>conftest.$ac_ext <<_ACEOF 6868/* end confdefs.h. */ 6869 6870int 6871main () 6872{ 6873 6874 ; 6875 return 0; 6876} 6877_ACEOF 6878rm -f conftest.$ac_objext conftest$ac_exeext 6879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6880 (eval $ac_link) 2>conftest.er1 6881 ac_status=$? 6882 grep -v '^ *+' conftest.er1 >conftest.err 6883 rm -f conftest.er1 6884 cat conftest.err >&5 6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6886 (exit $ac_status); } && 6887 { ac_try='test -z "$ac_c_werror_flag" 6888 || test ! -s conftest.err' 6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6890 (eval $ac_try) 2>&5 6891 ac_status=$? 6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6893 (exit $ac_status); }; } && 6894 { ac_try='test -s conftest$ac_exeext' 6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6896 (eval $ac_try) 2>&5 6897 ac_status=$? 6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6899 (exit $ac_status); }; }; then 6900 6901aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6902}'` 6903# Check for a 64-bit object if we didn't find anything. 6904if 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; } 6905}'`; fi 6906else 6907 echo "$as_me: failed program was:" >&5 6908sed 's/^/| /' conftest.$ac_ext >&5 6909 6910fi 6911rm -f conftest.err conftest.$ac_objext \ 6912 conftest$ac_exeext conftest.$ac_ext 6913if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6914 6915 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6916 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6917 else 6918 if test "$host_cpu" = ia64; then 6919 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6920 allow_undefined_flag="-z nodefs" 6921 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 6922 else 6923 # Determine the default libpath from the value encoded in an empty executable. 6924 cat >conftest.$ac_ext <<_ACEOF 6925/* confdefs.h. */ 6926_ACEOF 6927cat confdefs.h >>conftest.$ac_ext 6928cat >>conftest.$ac_ext <<_ACEOF 6929/* end confdefs.h. */ 6930 6931int 6932main () 6933{ 6934 6935 ; 6936 return 0; 6937} 6938_ACEOF 6939rm -f conftest.$ac_objext conftest$ac_exeext 6940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6941 (eval $ac_link) 2>conftest.er1 6942 ac_status=$? 6943 grep -v '^ *+' conftest.er1 >conftest.err 6944 rm -f conftest.er1 6945 cat conftest.err >&5 6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6947 (exit $ac_status); } && 6948 { ac_try='test -z "$ac_c_werror_flag" 6949 || test ! -s conftest.err' 6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6951 (eval $ac_try) 2>&5 6952 ac_status=$? 6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6954 (exit $ac_status); }; } && 6955 { ac_try='test -s conftest$ac_exeext' 6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6957 (eval $ac_try) 2>&5 6958 ac_status=$? 6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6960 (exit $ac_status); }; }; then 6961 6962aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6963}'` 6964# Check for a 64-bit object if we didn't find anything. 6965if 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; } 6966}'`; fi 6967else 6968 echo "$as_me: failed program was:" >&5 6969sed 's/^/| /' conftest.$ac_ext >&5 6970 6971fi 6972rm -f conftest.err conftest.$ac_objext \ 6973 conftest$ac_exeext conftest.$ac_ext 6974if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6975 6976 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6977 # Warning - without using the other run time loading flags, 6978 # -berok will link without error, but may produce a broken library. 6979 no_undefined_flag=' ${wl}-bernotok' 6980 allow_undefined_flag=' ${wl}-berok' 6981 # Exported symbols can be pulled into shared objects from archives 6982 whole_archive_flag_spec='$convenience' 6983 archive_cmds_need_lc=yes 6984 # This is similar to how AIX traditionally builds its shared libraries. 6985 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6986 fi 6987 fi 6988 ;; 6989 6990 amigaos*) 6991 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)' 6992 hardcode_libdir_flag_spec='-L$libdir' 6993 hardcode_minus_L=yes 6994 # see comment about different semantics on the GNU ld section 6995 ld_shlibs=no 6996 ;; 6997 6998 bsdi[45]*) 6999 export_dynamic_flag_spec=-rdynamic 7000 ;; 7001 7002 cygwin* | mingw* | pw32*) 7003 # When not using gcc, we currently assume that we are using 7004 # Microsoft Visual C++. 7005 # hardcode_libdir_flag_spec is actually meaningless, as there is 7006 # no search path for DLLs. 7007 hardcode_libdir_flag_spec=' ' 7008 allow_undefined_flag=unsupported 7009 # Tell ltmain to make .lib files, not .a files. 7010 libext=lib 7011 # Tell ltmain to make .dll files, not .so files. 7012 shrext_cmds=".dll" 7013 # FIXME: Setting linknames here is a bad hack. 7014 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7015 # The linker will automatically build a .lib file if we build a DLL. 7016 old_archive_From_new_cmds='true' 7017 # FIXME: Should let the user specify the lib program. 7018 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7019 fix_srcfile_path='`cygpath -w "$srcfile"`' 7020 enable_shared_with_static_runtimes=yes 7021 ;; 7022 7023 darwin* | rhapsody*) 7024 case $host_os in 7025 rhapsody* | darwin1.[012]) 7026 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7027 ;; 7028 *) # Darwin 1.3 on 7029 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7030 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7031 else 7032 case ${MACOSX_DEPLOYMENT_TARGET} in 7033 10.[012]) 7034 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7035 ;; 7036 10.*) 7037 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7038 ;; 7039 esac 7040 fi 7041 ;; 7042 esac 7043 archive_cmds_need_lc=no 7044 hardcode_direct=no 7045 hardcode_automatic=yes 7046 hardcode_shlibpath_var=unsupported 7047 whole_archive_flag_spec='' 7048 link_all_deplibs=yes 7049 if test "$GCC" = yes ; then 7050 output_verbose_link_cmd='echo' 7051 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7052 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7053 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7054 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}' 7055 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}' 7056 else 7057 case $cc_basename in 7058 xlc*) 7059 output_verbose_link_cmd='echo' 7060 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7061 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7062 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7063 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}' 7064 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}' 7065 ;; 7066 *) 7067 ld_shlibs=no 7068 ;; 7069 esac 7070 fi 7071 ;; 7072 7073 dgux*) 7074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7075 hardcode_libdir_flag_spec='-L$libdir' 7076 hardcode_shlibpath_var=no 7077 ;; 7078 7079 freebsd1*) 7080 ld_shlibs=no 7081 ;; 7082 7083 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7084 # support. Future versions do this automatically, but an explicit c++rt0.o 7085 # does not break anything, and helps significantly (at the cost of a little 7086 # extra space). 7087 freebsd2.2*) 7088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7089 hardcode_libdir_flag_spec='-R$libdir' 7090 hardcode_direct=yes 7091 hardcode_shlibpath_var=no 7092 ;; 7093 7094 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7095 freebsd2*) 7096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7097 hardcode_direct=yes 7098 hardcode_minus_L=yes 7099 hardcode_shlibpath_var=no 7100 ;; 7101 7102 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7103 freebsd* | kfreebsd*-gnu | dragonfly*) 7104 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7105 hardcode_libdir_flag_spec='-R$libdir' 7106 hardcode_direct=yes 7107 hardcode_shlibpath_var=no 7108 ;; 7109 7110 hpux9*) 7111 if test "$GCC" = yes; then 7112 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' 7113 else 7114 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' 7115 fi 7116 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7117 hardcode_libdir_separator=: 7118 hardcode_direct=yes 7119 7120 # hardcode_minus_L: Not really in the search PATH, 7121 # but as the default location of the library. 7122 hardcode_minus_L=yes 7123 export_dynamic_flag_spec='${wl}-E' 7124 ;; 7125 7126 hpux10*) 7127 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7129 else 7130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7131 fi 7132 if test "$with_gnu_ld" = no; then 7133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7134 hardcode_libdir_separator=: 7135 7136 hardcode_direct=yes 7137 export_dynamic_flag_spec='${wl}-E' 7138 7139 # hardcode_minus_L: Not really in the search PATH, 7140 # but as the default location of the library. 7141 hardcode_minus_L=yes 7142 fi 7143 ;; 7144 7145 hpux11*) 7146 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7147 case $host_cpu in 7148 hppa*64*) 7149 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7150 ;; 7151 ia64*) 7152 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7153 ;; 7154 *) 7155 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7156 ;; 7157 esac 7158 else 7159 case $host_cpu in 7160 hppa*64*) 7161 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7162 ;; 7163 ia64*) 7164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7165 ;; 7166 *) 7167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7168 ;; 7169 esac 7170 fi 7171 if test "$with_gnu_ld" = no; then 7172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7173 hardcode_libdir_separator=: 7174 7175 case $host_cpu in 7176 hppa*64*|ia64*) 7177 hardcode_libdir_flag_spec_ld='+b $libdir' 7178 hardcode_direct=no 7179 hardcode_shlibpath_var=no 7180 ;; 7181 *) 7182 hardcode_direct=yes 7183 export_dynamic_flag_spec='${wl}-E' 7184 7185 # hardcode_minus_L: Not really in the search PATH, 7186 # but as the default location of the library. 7187 hardcode_minus_L=yes 7188 ;; 7189 esac 7190 fi 7191 ;; 7192 7193 irix5* | irix6* | nonstopux*) 7194 if test "$GCC" = yes; then 7195 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' 7196 else 7197 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' 7198 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7199 fi 7200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7201 hardcode_libdir_separator=: 7202 link_all_deplibs=yes 7203 ;; 7204 7205 netbsd*) 7206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7208 else 7209 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7210 fi 7211 hardcode_libdir_flag_spec='-R$libdir' 7212 hardcode_direct=yes 7213 hardcode_shlibpath_var=no 7214 ;; 7215 7216 newsos6) 7217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7218 hardcode_direct=yes 7219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7220 hardcode_libdir_separator=: 7221 hardcode_shlibpath_var=no 7222 ;; 7223 7224 openbsd*) 7225 hardcode_direct=yes 7226 hardcode_shlibpath_var=no 7227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7229 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7230 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7231 export_dynamic_flag_spec='${wl}-E' 7232 else 7233 case $host_os in 7234 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7235 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7236 hardcode_libdir_flag_spec='-R$libdir' 7237 ;; 7238 *) 7239 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7241 ;; 7242 esac 7243 fi 7244 ;; 7245 7246 os2*) 7247 hardcode_libdir_flag_spec='-L$libdir' 7248 hardcode_minus_L=yes 7249 allow_undefined_flag=unsupported 7250 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' 7251 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7252 ;; 7253 7254 osf3*) 7255 if test "$GCC" = yes; then 7256 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7257 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' 7258 else 7259 allow_undefined_flag=' -expect_unresolved \*' 7260 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' 7261 fi 7262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7263 hardcode_libdir_separator=: 7264 ;; 7265 7266 osf4* | osf5*) # as osf3* with the addition of -msym flag 7267 if test "$GCC" = yes; then 7268 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7269 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' 7270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7271 else 7272 allow_undefined_flag=' -expect_unresolved \*' 7273 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' 7274 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7275 $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' 7276 7277 # Both c and cxx compiler support -rpath directly 7278 hardcode_libdir_flag_spec='-rpath $libdir' 7279 fi 7280 hardcode_libdir_separator=: 7281 ;; 7282 7283 solaris*) 7284 no_undefined_flag=' -z text' 7285 if test "$GCC" = yes; then 7286 wlarc='${wl}' 7287 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7288 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7289 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7290 else 7291 wlarc='' 7292 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7293 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7294 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7295 fi 7296 hardcode_libdir_flag_spec='-R$libdir' 7297 hardcode_shlibpath_var=no 7298 case $host_os in 7299 solaris2.[0-5] | solaris2.[0-5].*) ;; 7300 *) 7301 # The compiler driver will combine linker options so we 7302 # cannot just pass the convience library names through 7303 # without $wl, iff we do not link with $LD. 7304 # Luckily, gcc supports the same syntax we need for Sun Studio. 7305 # Supported since Solaris 2.6 (maybe 2.5.1?) 7306 case $wlarc in 7307 '') 7308 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7309 *) 7310 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' ;; 7311 esac ;; 7312 esac 7313 link_all_deplibs=yes 7314 ;; 7315 7316 sunos4*) 7317 if test "x$host_vendor" = xsequent; then 7318 # Use $CC to link under sequent, because it throws in some extra .o 7319 # files that make .init and .fini sections work. 7320 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7321 else 7322 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7323 fi 7324 hardcode_libdir_flag_spec='-L$libdir' 7325 hardcode_direct=yes 7326 hardcode_minus_L=yes 7327 hardcode_shlibpath_var=no 7328 ;; 7329 7330 sysv4) 7331 case $host_vendor in 7332 sni) 7333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7334 hardcode_direct=yes # is this really true??? 7335 ;; 7336 siemens) 7337 ## LD is ld it makes a PLAMLIB 7338 ## CC just makes a GrossModule. 7339 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7340 reload_cmds='$CC -r -o $output$reload_objs' 7341 hardcode_direct=no 7342 ;; 7343 motorola) 7344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7345 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7346 ;; 7347 esac 7348 runpath_var='LD_RUN_PATH' 7349 hardcode_shlibpath_var=no 7350 ;; 7351 7352 sysv4.3*) 7353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7354 hardcode_shlibpath_var=no 7355 export_dynamic_flag_spec='-Bexport' 7356 ;; 7357 7358 sysv4*MP*) 7359 if test -d /usr/nec; then 7360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7361 hardcode_shlibpath_var=no 7362 runpath_var=LD_RUN_PATH 7363 hardcode_runpath_var=yes 7364 ld_shlibs=yes 7365 fi 7366 ;; 7367 7368 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7369 no_undefined_flag='${wl}-z,text' 7370 archive_cmds_need_lc=no 7371 hardcode_shlibpath_var=no 7372 runpath_var='LD_RUN_PATH' 7373 7374 if test "$GCC" = yes; then 7375 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7377 else 7378 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7380 fi 7381 ;; 7382 7383 sysv5* | sco3.2v5* | sco5v6*) 7384 # Note: We can NOT use -z defs as we might desire, because we do not 7385 # link with -lc, and that would cause any symbols used from libc to 7386 # always be unresolved, which means just about no library would 7387 # ever link correctly. If we're not using GNU ld we use -z text 7388 # though, which does catch some bad symbols but isn't as heavy-handed 7389 # as -z defs. 7390 no_undefined_flag='${wl}-z,text' 7391 allow_undefined_flag='${wl}-z,nodefs' 7392 archive_cmds_need_lc=no 7393 hardcode_shlibpath_var=no 7394 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7395 hardcode_libdir_separator=':' 7396 link_all_deplibs=yes 7397 export_dynamic_flag_spec='${wl}-Bexport' 7398 runpath_var='LD_RUN_PATH' 7399 7400 if test "$GCC" = yes; then 7401 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7402 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7403 else 7404 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7405 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7406 fi 7407 ;; 7408 7409 uts4*) 7410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7411 hardcode_libdir_flag_spec='-L$libdir' 7412 hardcode_shlibpath_var=no 7413 ;; 7414 7415 *) 7416 ld_shlibs=no 7417 ;; 7418 esac 7419 fi 7420 7421echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7422echo "${ECHO_T}$ld_shlibs" >&6 7423test "$ld_shlibs" = no && can_build_shared=no 7424 7425# 7426# Do we need to explicitly link libc? 7427# 7428case "x$archive_cmds_need_lc" in 7429x|xyes) 7430 # Assume -lc should be added 7431 archive_cmds_need_lc=yes 7432 7433 if test "$enable_shared" = yes && test "$GCC" = yes; then 7434 case $archive_cmds in 7435 *'~'*) 7436 # FIXME: we may have to deal with multi-command sequences. 7437 ;; 7438 '$CC '*) 7439 # Test whether the compiler implicitly links with -lc since on some 7440 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7441 # to ld, don't add -lc before -lgcc. 7442 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7443echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7444 $rm conftest* 7445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7446 7447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7448 (eval $ac_compile) 2>&5 7449 ac_status=$? 7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 (exit $ac_status); } 2>conftest.err; then 7452 soname=conftest 7453 lib=conftest 7454 libobjs=conftest.$ac_objext 7455 deplibs= 7456 wl=$lt_prog_compiler_wl 7457 pic_flag=$lt_prog_compiler_pic 7458 compiler_flags=-v 7459 linker_flags=-v 7460 verstring= 7461 output_objdir=. 7462 libname=conftest 7463 lt_save_allow_undefined_flag=$allow_undefined_flag 7464 allow_undefined_flag= 7465 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7466 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7467 ac_status=$? 7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7469 (exit $ac_status); } 7470 then 7471 archive_cmds_need_lc=no 7472 else 7473 archive_cmds_need_lc=yes 7474 fi 7475 allow_undefined_flag=$lt_save_allow_undefined_flag 7476 else 7477 cat conftest.err 1>&5 7478 fi 7479 $rm conftest* 7480 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7481echo "${ECHO_T}$archive_cmds_need_lc" >&6 7482 ;; 7483 esac 7484 fi 7485 ;; 7486esac 7487 7488echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7489echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7490library_names_spec= 7491libname_spec='lib$name' 7492soname_spec= 7493shrext_cmds=".so" 7494postinstall_cmds= 7495postuninstall_cmds= 7496finish_cmds= 7497finish_eval= 7498shlibpath_var= 7499shlibpath_overrides_runpath=unknown 7500version_type=none 7501dynamic_linker="$host_os ld.so" 7502sys_lib_dlsearch_path_spec="/lib /usr/lib" 7503if test "$GCC" = yes; then 7504 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7505 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7506 # if the path contains ";" then we assume it to be the separator 7507 # otherwise default to the standard path separator (i.e. ":") - it is 7508 # assumed that no part of a normal pathname contains ";" but that should 7509 # okay in the real world where ";" in dirpaths is itself problematic. 7510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7511 else 7512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7513 fi 7514else 7515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7516fi 7517need_lib_prefix=unknown 7518hardcode_into_libs=no 7519 7520# when you set need_version to no, make sure it does not cause -set_version 7521# flags to be left without arguments 7522need_version=unknown 7523 7524case $host_os in 7525aix3*) 7526 version_type=linux 7527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7528 shlibpath_var=LIBPATH 7529 7530 # AIX 3 has no versioning support, so we append a major version to the name. 7531 soname_spec='${libname}${release}${shared_ext}$major' 7532 ;; 7533 7534aix4* | aix5*) 7535 version_type=linux 7536 need_lib_prefix=no 7537 need_version=no 7538 hardcode_into_libs=yes 7539 if test "$host_cpu" = ia64; then 7540 # AIX 5 supports IA64 7541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7542 shlibpath_var=LD_LIBRARY_PATH 7543 else 7544 # With GCC up to 2.95.x, collect2 would create an import file 7545 # for dependence libraries. The import file would start with 7546 # the line `#! .'. This would cause the generated library to 7547 # depend on `.', always an invalid library. This was fixed in 7548 # development snapshots of GCC prior to 3.0. 7549 case $host_os in 7550 aix4 | aix4.[01] | aix4.[01].*) 7551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7552 echo ' yes ' 7553 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7554 : 7555 else 7556 can_build_shared=no 7557 fi 7558 ;; 7559 esac 7560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7561 # soname into executable. Probably we can add versioning support to 7562 # collect2, so additional links can be useful in future. 7563 if test "$aix_use_runtimelinking" = yes; then 7564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7565 # instead of lib<name>.a to let people know that these are not 7566 # typical AIX shared libraries. 7567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7568 else 7569 # We preserve .a as extension for shared libraries through AIX4.2 7570 # and later when we are not doing run time linking. 7571 library_names_spec='${libname}${release}.a $libname.a' 7572 soname_spec='${libname}${release}${shared_ext}$major' 7573 fi 7574 shlibpath_var=LIBPATH 7575 fi 7576 ;; 7577 7578amigaos*) 7579 library_names_spec='$libname.ixlibrary $libname.a' 7580 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7581 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' 7582 ;; 7583 7584beos*) 7585 library_names_spec='${libname}${shared_ext}' 7586 dynamic_linker="$host_os ld.so" 7587 shlibpath_var=LIBRARY_PATH 7588 ;; 7589 7590bsdi[45]*) 7591 version_type=linux 7592 need_version=no 7593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7594 soname_spec='${libname}${release}${shared_ext}$major' 7595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7596 shlibpath_var=LD_LIBRARY_PATH 7597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7599 # the default ld.so.conf also contains /usr/contrib/lib and 7600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7601 # libtool to hard-code these into programs 7602 ;; 7603 7604cygwin* | mingw* | pw32*) 7605 version_type=windows 7606 shrext_cmds=".dll" 7607 need_version=no 7608 need_lib_prefix=no 7609 7610 case $GCC,$host_os in 7611 yes,cygwin* | yes,mingw* | yes,pw32*) 7612 library_names_spec='$libname.dll.a' 7613 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7614 postinstall_cmds='base_file=`basename \${file}`~ 7615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7616 dldir=$destdir/`dirname \$dlpath`~ 7617 test -d \$dldir || mkdir -p \$dldir~ 7618 $install_prog $dir/$dlname \$dldir/$dlname~ 7619 chmod a+x \$dldir/$dlname' 7620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7621 dlpath=$dir/\$dldll~ 7622 $rm \$dlpath' 7623 shlibpath_overrides_runpath=yes 7624 7625 case $host_os in 7626 cygwin*) 7627 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7628 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7629 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7630 ;; 7631 mingw*) 7632 # MinGW DLLs use traditional 'lib' prefix 7633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7634 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7635 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7636 # It is most probably a Windows format PATH printed by 7637 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7638 # path with ; separators, and with drive letters. We can handle the 7639 # drive letters (cygwin fileutils understands them), so leave them, 7640 # especially as we might pass files found there to a mingw objdump, 7641 # which wouldn't understand a cygwinified path. Ahh. 7642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7643 else 7644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7645 fi 7646 ;; 7647 pw32*) 7648 # pw32 DLLs use 'pw' prefix rather than 'lib' 7649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7650 ;; 7651 esac 7652 ;; 7653 7654 linux*) 7655 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 7656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7657 supports_anon_versioning=no 7658 case `$LD -v 2>/dev/null` in 7659 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7660 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7661 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7662 *\ 2.11.*) ;; # other 2.11 versions 7663 *) supports_anon_versioning=yes ;; 7664 esac 7665 if test $supports_anon_versioning = yes; then 7666 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7667cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7668$echo "local: *; };" >> $output_objdir/$libname.ver~ 7669 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7670 else 7671 $archive_expsym_cmds="$archive_cmds" 7672 fi 7673 else 7674 ld_shlibs=no 7675 fi 7676 ;; 7677 7678 *) 7679 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7680 ;; 7681 esac 7682 dynamic_linker='Win32 ld.exe' 7683 # FIXME: first we should search . and the directory the executable is in 7684 shlibpath_var=PATH 7685 ;; 7686 7687darwin* | rhapsody*) 7688 dynamic_linker="$host_os dyld" 7689 version_type=darwin 7690 need_lib_prefix=no 7691 need_version=no 7692 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7693 soname_spec='${libname}${release}${major}$shared_ext' 7694 shlibpath_overrides_runpath=yes 7695 shlibpath_var=DYLD_LIBRARY_PATH 7696 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7697 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7698 if test "$GCC" = yes; then 7699 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"` 7700 else 7701 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7702 fi 7703 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7704 ;; 7705 7706dgux*) 7707 version_type=linux 7708 need_lib_prefix=no 7709 need_version=no 7710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7711 soname_spec='${libname}${release}${shared_ext}$major' 7712 shlibpath_var=LD_LIBRARY_PATH 7713 ;; 7714 7715freebsd1*) 7716 dynamic_linker=no 7717 ;; 7718 7719kfreebsd*-gnu) 7720 version_type=linux 7721 need_lib_prefix=no 7722 need_version=no 7723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7724 soname_spec='${libname}${release}${shared_ext}$major' 7725 shlibpath_var=LD_LIBRARY_PATH 7726 shlibpath_overrides_runpath=no 7727 hardcode_into_libs=yes 7728 dynamic_linker='GNU ld.so' 7729 ;; 7730 7731freebsd* | dragonfly*) 7732 # DragonFly does not have aout. When/if they implement a new 7733 # versioning mechanism, adjust this. 7734 if test -x /usr/bin/objformat; then 7735 objformat=`/usr/bin/objformat` 7736 else 7737 case $host_os in 7738 freebsd[123]*) objformat=aout ;; 7739 *) objformat=elf ;; 7740 esac 7741 fi 7742 # Handle Gentoo/FreeBSD as it was Linux 7743 case $host_vendor in 7744 gentoo) 7745 version_type=linux ;; 7746 *) 7747 version_type=freebsd-$objformat ;; 7748 esac 7749 7750 case $version_type in 7751 freebsd-elf*) 7752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7753 need_version=no 7754 need_lib_prefix=no 7755 ;; 7756 freebsd-*) 7757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7758 need_version=yes 7759 ;; 7760 linux) 7761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7762 soname_spec='${libname}${release}${shared_ext}$major' 7763 need_lib_prefix=no 7764 need_version=no 7765 ;; 7766 esac 7767 shlibpath_var=LD_LIBRARY_PATH 7768 case $host_os in 7769 freebsd2*) 7770 shlibpath_overrides_runpath=yes 7771 ;; 7772 freebsd3.[01]* | freebsdelf3.[01]*) 7773 shlibpath_overrides_runpath=yes 7774 hardcode_into_libs=yes 7775 ;; 7776 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 7777 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 7778 shlibpath_overrides_runpath=no 7779 hardcode_into_libs=yes 7780 ;; 7781 freebsd*) # from 4.6 on 7782 shlibpath_overrides_runpath=yes 7783 hardcode_into_libs=yes 7784 ;; 7785 esac 7786 ;; 7787 7788gnu*) 7789 version_type=linux 7790 need_lib_prefix=no 7791 need_version=no 7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7793 soname_spec='${libname}${release}${shared_ext}$major' 7794 shlibpath_var=LD_LIBRARY_PATH 7795 hardcode_into_libs=yes 7796 ;; 7797 7798hpux9* | hpux10* | hpux11*) 7799 # Give a soname corresponding to the major version so that dld.sl refuses to 7800 # link against other versions. 7801 version_type=sunos 7802 need_lib_prefix=no 7803 need_version=no 7804 case $host_cpu in 7805 ia64*) 7806 shrext_cmds='.so' 7807 hardcode_into_libs=yes 7808 dynamic_linker="$host_os dld.so" 7809 shlibpath_var=LD_LIBRARY_PATH 7810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7812 soname_spec='${libname}${release}${shared_ext}$major' 7813 if test "X$HPUX_IA64_MODE" = X32; then 7814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7815 else 7816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7817 fi 7818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7819 ;; 7820 hppa*64*) 7821 shrext_cmds='.sl' 7822 hardcode_into_libs=yes 7823 dynamic_linker="$host_os dld.sl" 7824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7827 soname_spec='${libname}${release}${shared_ext}$major' 7828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7830 ;; 7831 *) 7832 shrext_cmds='.sl' 7833 dynamic_linker="$host_os dld.sl" 7834 shlibpath_var=SHLIB_PATH 7835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7837 soname_spec='${libname}${release}${shared_ext}$major' 7838 ;; 7839 esac 7840 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7841 postinstall_cmds='chmod 555 $lib' 7842 ;; 7843 7844interix3*) 7845 version_type=linux 7846 need_lib_prefix=no 7847 need_version=no 7848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7849 soname_spec='${libname}${release}${shared_ext}$major' 7850 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 7851 shlibpath_var=LD_LIBRARY_PATH 7852 shlibpath_overrides_runpath=no 7853 hardcode_into_libs=yes 7854 ;; 7855 7856irix5* | irix6* | nonstopux*) 7857 case $host_os in 7858 nonstopux*) version_type=nonstopux ;; 7859 *) 7860 if test "$lt_cv_prog_gnu_ld" = yes; then 7861 version_type=linux 7862 else 7863 version_type=irix 7864 fi ;; 7865 esac 7866 need_lib_prefix=no 7867 need_version=no 7868 soname_spec='${libname}${release}${shared_ext}$major' 7869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7870 case $host_os in 7871 irix5* | nonstopux*) 7872 libsuff= shlibsuff= 7873 ;; 7874 *) 7875 case $LD in # libtool.m4 will add one of these switches to LD 7876 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7877 libsuff= shlibsuff= libmagic=32-bit;; 7878 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7879 libsuff=32 shlibsuff=N32 libmagic=N32;; 7880 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7881 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7882 *) libsuff= shlibsuff= libmagic=never-match;; 7883 esac 7884 ;; 7885 esac 7886 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7887 shlibpath_overrides_runpath=no 7888 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7889 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7890 hardcode_into_libs=yes 7891 ;; 7892 7893# No shared lib support for Linux oldld, aout, or coff. 7894linux*oldld* | linux*aout* | linux*coff*) 7895 dynamic_linker=no 7896 ;; 7897 7898# This must be Linux ELF. 7899linux*) 7900 version_type=linux 7901 need_lib_prefix=no 7902 need_version=no 7903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7904 soname_spec='${libname}${release}${shared_ext}$major' 7905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7906 shlibpath_var=LD_LIBRARY_PATH 7907 shlibpath_overrides_runpath=no 7908 # This implies no fast_install, which is unacceptable. 7909 # Some rework will be needed to allow for fast_install 7910 # before this can be enabled. 7911 hardcode_into_libs=yes 7912 7913 # Append ld.so.conf contents to the search path 7914 if test -f /etc/ld.so.conf; then 7915 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' ' '` 7916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 7917 fi 7918 7919 # We used to test for /lib/ld.so.1 and disable shared libraries on 7920 # powerpc, because MkLinux only supported shared libraries with the 7921 # GNU dynamic linker. Since this was broken with cross compilers, 7922 # most powerpc-linux boxes support dynamic linking these days and 7923 # people can always --disable-shared, the test was removed, and we 7924 # assume the GNU/Linux dynamic linker is in use. 7925 dynamic_linker='GNU/Linux ld.so' 7926 ;; 7927 7928knetbsd*-gnu) 7929 version_type=linux 7930 need_lib_prefix=no 7931 need_version=no 7932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7933 soname_spec='${libname}${release}${shared_ext}$major' 7934 shlibpath_var=LD_LIBRARY_PATH 7935 shlibpath_overrides_runpath=no 7936 hardcode_into_libs=yes 7937 dynamic_linker='GNU ld.so' 7938 ;; 7939 7940netbsd*) 7941 version_type=sunos 7942 need_lib_prefix=no 7943 need_version=no 7944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7947 dynamic_linker='NetBSD (a.out) ld.so' 7948 else 7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7950 soname_spec='${libname}${release}${shared_ext}$major' 7951 dynamic_linker='NetBSD ld.elf_so' 7952 fi 7953 shlibpath_var=LD_LIBRARY_PATH 7954 shlibpath_overrides_runpath=yes 7955 hardcode_into_libs=yes 7956 ;; 7957 7958newsos6) 7959 version_type=linux 7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7961 shlibpath_var=LD_LIBRARY_PATH 7962 shlibpath_overrides_runpath=yes 7963 ;; 7964 7965nto-qnx*) 7966 version_type=linux 7967 need_lib_prefix=no 7968 need_version=no 7969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7970 soname_spec='${libname}${release}${shared_ext}$major' 7971 shlibpath_var=LD_LIBRARY_PATH 7972 shlibpath_overrides_runpath=yes 7973 ;; 7974 7975openbsd*) 7976 version_type=sunos 7977 sys_lib_dlsearch_path_spec="/usr/lib" 7978 need_lib_prefix=no 7979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 7980 case $host_os in 7981 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 7982 *) need_version=no ;; 7983 esac 7984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7986 shlibpath_var=LD_LIBRARY_PATH 7987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7988 case $host_os in 7989 openbsd2.[89] | openbsd2.[89].*) 7990 shlibpath_overrides_runpath=no 7991 ;; 7992 *) 7993 shlibpath_overrides_runpath=yes 7994 ;; 7995 esac 7996 else 7997 shlibpath_overrides_runpath=yes 7998 fi 7999 ;; 8000 8001os2*) 8002 libname_spec='$name' 8003 shrext_cmds=".dll" 8004 need_lib_prefix=no 8005 library_names_spec='$libname${shared_ext} $libname.a' 8006 dynamic_linker='OS/2 ld.exe' 8007 shlibpath_var=LIBPATH 8008 ;; 8009 8010osf3* | osf4* | osf5*) 8011 version_type=osf 8012 need_lib_prefix=no 8013 need_version=no 8014 soname_spec='${libname}${release}${shared_ext}$major' 8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8016 shlibpath_var=LD_LIBRARY_PATH 8017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8019 ;; 8020 8021solaris*) 8022 version_type=linux 8023 need_lib_prefix=no 8024 need_version=no 8025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8026 soname_spec='${libname}${release}${shared_ext}$major' 8027 shlibpath_var=LD_LIBRARY_PATH 8028 shlibpath_overrides_runpath=yes 8029 hardcode_into_libs=yes 8030 # ldd complains unless libraries are executable 8031 postinstall_cmds='chmod +x $lib' 8032 ;; 8033 8034sunos4*) 8035 version_type=sunos 8036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8038 shlibpath_var=LD_LIBRARY_PATH 8039 shlibpath_overrides_runpath=yes 8040 if test "$with_gnu_ld" = yes; then 8041 need_lib_prefix=no 8042 fi 8043 need_version=yes 8044 ;; 8045 8046sysv4 | sysv4.3*) 8047 version_type=linux 8048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8049 soname_spec='${libname}${release}${shared_ext}$major' 8050 shlibpath_var=LD_LIBRARY_PATH 8051 case $host_vendor in 8052 sni) 8053 shlibpath_overrides_runpath=no 8054 need_lib_prefix=no 8055 export_dynamic_flag_spec='${wl}-Blargedynsym' 8056 runpath_var=LD_RUN_PATH 8057 ;; 8058 siemens) 8059 need_lib_prefix=no 8060 ;; 8061 motorola) 8062 need_lib_prefix=no 8063 need_version=no 8064 shlibpath_overrides_runpath=no 8065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8066 ;; 8067 esac 8068 ;; 8069 8070sysv4*MP*) 8071 if test -d /usr/nec ;then 8072 version_type=linux 8073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8074 soname_spec='$libname${shared_ext}.$major' 8075 shlibpath_var=LD_LIBRARY_PATH 8076 fi 8077 ;; 8078 8079sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8080 version_type=freebsd-elf 8081 need_lib_prefix=no 8082 need_version=no 8083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8084 soname_spec='${libname}${release}${shared_ext}$major' 8085 shlibpath_var=LD_LIBRARY_PATH 8086 hardcode_into_libs=yes 8087 if test "$with_gnu_ld" = yes; then 8088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8089 shlibpath_overrides_runpath=no 8090 else 8091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8092 shlibpath_overrides_runpath=yes 8093 case $host_os in 8094 sco3.2v5*) 8095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8096 ;; 8097 esac 8098 fi 8099 sys_lib_dlsearch_path_spec='/usr/lib' 8100 ;; 8101 8102uts4*) 8103 version_type=linux 8104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8105 soname_spec='${libname}${release}${shared_ext}$major' 8106 shlibpath_var=LD_LIBRARY_PATH 8107 ;; 8108 8109*) 8110 dynamic_linker=no 8111 ;; 8112esac 8113echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8114echo "${ECHO_T}$dynamic_linker" >&6 8115test "$dynamic_linker" = no && can_build_shared=no 8116 8117variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8118if test "$GCC" = yes; then 8119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8120fi 8121 8122echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8123echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8124hardcode_action= 8125if test -n "$hardcode_libdir_flag_spec" || \ 8126 test -n "$runpath_var" || \ 8127 test "X$hardcode_automatic" = "Xyes" ; then 8128 8129 # We can hardcode non-existant directories. 8130 if test "$hardcode_direct" != no && 8131 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8132 # have to relink, otherwise we might link with an installed library 8133 # when we should be linking with a yet-to-be-installed one 8134 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8135 test "$hardcode_minus_L" != no; then 8136 # Linking always hardcodes the temporary library directory. 8137 hardcode_action=relink 8138 else 8139 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8140 hardcode_action=immediate 8141 fi 8142else 8143 # We cannot hardcode anything, or else we can only hardcode existing 8144 # directories. 8145 hardcode_action=unsupported 8146fi 8147echo "$as_me:$LINENO: result: $hardcode_action" >&5 8148echo "${ECHO_T}$hardcode_action" >&6 8149 8150if test "$hardcode_action" = relink; then 8151 # Fast installation is not supported 8152 enable_fast_install=no 8153elif test "$shlibpath_overrides_runpath" = yes || 8154 test "$enable_shared" = no; then 8155 # Fast installation is not necessary 8156 enable_fast_install=needless 8157fi 8158 8159striplib= 8160old_striplib= 8161echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8162echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8163if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8164 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8165 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8166 echo "$as_me:$LINENO: result: yes" >&5 8167echo "${ECHO_T}yes" >&6 8168else 8169# FIXME - insert some real tests, host_os isn't really good enough 8170 case $host_os in 8171 darwin*) 8172 if test -n "$STRIP" ; then 8173 striplib="$STRIP -x" 8174 echo "$as_me:$LINENO: result: yes" >&5 8175echo "${ECHO_T}yes" >&6 8176 else 8177 echo "$as_me:$LINENO: result: no" >&5 8178echo "${ECHO_T}no" >&6 8179fi 8180 ;; 8181 *) 8182 echo "$as_me:$LINENO: result: no" >&5 8183echo "${ECHO_T}no" >&6 8184 ;; 8185 esac 8186fi 8187 8188if test "x$enable_dlopen" != xyes; then 8189 enable_dlopen=unknown 8190 enable_dlopen_self=unknown 8191 enable_dlopen_self_static=unknown 8192else 8193 lt_cv_dlopen=no 8194 lt_cv_dlopen_libs= 8195 8196 case $host_os in 8197 beos*) 8198 lt_cv_dlopen="load_add_on" 8199 lt_cv_dlopen_libs= 8200 lt_cv_dlopen_self=yes 8201 ;; 8202 8203 mingw* | pw32*) 8204 lt_cv_dlopen="LoadLibrary" 8205 lt_cv_dlopen_libs= 8206 ;; 8207 8208 cygwin*) 8209 lt_cv_dlopen="dlopen" 8210 lt_cv_dlopen_libs= 8211 ;; 8212 8213 darwin*) 8214 # if libdl is installed we need to link against it 8215 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8216echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8217if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8218 echo $ECHO_N "(cached) $ECHO_C" >&6 8219else 8220 ac_check_lib_save_LIBS=$LIBS 8221LIBS="-ldl $LIBS" 8222cat >conftest.$ac_ext <<_ACEOF 8223/* confdefs.h. */ 8224_ACEOF 8225cat confdefs.h >>conftest.$ac_ext 8226cat >>conftest.$ac_ext <<_ACEOF 8227/* end confdefs.h. */ 8228 8229/* Override any gcc2 internal prototype to avoid an error. */ 8230#ifdef __cplusplus 8231extern "C" 8232#endif 8233/* We use char because int might match the return type of a gcc2 8234 builtin and then its argument prototype would still apply. */ 8235char dlopen (); 8236int 8237main () 8238{ 8239dlopen (); 8240 ; 8241 return 0; 8242} 8243_ACEOF 8244rm -f conftest.$ac_objext conftest$ac_exeext 8245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8246 (eval $ac_link) 2>conftest.er1 8247 ac_status=$? 8248 grep -v '^ *+' conftest.er1 >conftest.err 8249 rm -f conftest.er1 8250 cat conftest.err >&5 8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8252 (exit $ac_status); } && 8253 { ac_try='test -z "$ac_c_werror_flag" 8254 || test ! -s conftest.err' 8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8256 (eval $ac_try) 2>&5 8257 ac_status=$? 8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8259 (exit $ac_status); }; } && 8260 { ac_try='test -s conftest$ac_exeext' 8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8262 (eval $ac_try) 2>&5 8263 ac_status=$? 8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8265 (exit $ac_status); }; }; then 8266 ac_cv_lib_dl_dlopen=yes 8267else 8268 echo "$as_me: failed program was:" >&5 8269sed 's/^/| /' conftest.$ac_ext >&5 8270 8271ac_cv_lib_dl_dlopen=no 8272fi 8273rm -f conftest.err conftest.$ac_objext \ 8274 conftest$ac_exeext conftest.$ac_ext 8275LIBS=$ac_check_lib_save_LIBS 8276fi 8277echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8278echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8279if test $ac_cv_lib_dl_dlopen = yes; then 8280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8281else 8282 8283 lt_cv_dlopen="dyld" 8284 lt_cv_dlopen_libs= 8285 lt_cv_dlopen_self=yes 8286 8287fi 8288 8289 ;; 8290 8291 *) 8292 echo "$as_me:$LINENO: checking for shl_load" >&5 8293echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8294if test "${ac_cv_func_shl_load+set}" = set; then 8295 echo $ECHO_N "(cached) $ECHO_C" >&6 8296else 8297 cat >conftest.$ac_ext <<_ACEOF 8298/* confdefs.h. */ 8299_ACEOF 8300cat confdefs.h >>conftest.$ac_ext 8301cat >>conftest.$ac_ext <<_ACEOF 8302/* end confdefs.h. */ 8303/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8304 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8305#define shl_load innocuous_shl_load 8306 8307/* System header to define __stub macros and hopefully few prototypes, 8308 which can conflict with char shl_load (); below. 8309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8310 <limits.h> exists even on freestanding compilers. */ 8311 8312#ifdef __STDC__ 8313# include <limits.h> 8314#else 8315# include <assert.h> 8316#endif 8317 8318#undef shl_load 8319 8320/* Override any gcc2 internal prototype to avoid an error. */ 8321#ifdef __cplusplus 8322extern "C" 8323{ 8324#endif 8325/* We use char because int might match the return type of a gcc2 8326 builtin and then its argument prototype would still apply. */ 8327char shl_load (); 8328/* The GNU C library defines this for functions which it implements 8329 to always fail with ENOSYS. Some functions are actually named 8330 something starting with __ and the normal name is an alias. */ 8331#if defined (__stub_shl_load) || defined (__stub___shl_load) 8332choke me 8333#else 8334char (*f) () = shl_load; 8335#endif 8336#ifdef __cplusplus 8337} 8338#endif 8339 8340int 8341main () 8342{ 8343return f != shl_load; 8344 ; 8345 return 0; 8346} 8347_ACEOF 8348rm -f conftest.$ac_objext conftest$ac_exeext 8349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8350 (eval $ac_link) 2>conftest.er1 8351 ac_status=$? 8352 grep -v '^ *+' conftest.er1 >conftest.err 8353 rm -f conftest.er1 8354 cat conftest.err >&5 8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8356 (exit $ac_status); } && 8357 { ac_try='test -z "$ac_c_werror_flag" 8358 || test ! -s conftest.err' 8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8360 (eval $ac_try) 2>&5 8361 ac_status=$? 8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8363 (exit $ac_status); }; } && 8364 { ac_try='test -s conftest$ac_exeext' 8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8366 (eval $ac_try) 2>&5 8367 ac_status=$? 8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8369 (exit $ac_status); }; }; then 8370 ac_cv_func_shl_load=yes 8371else 8372 echo "$as_me: failed program was:" >&5 8373sed 's/^/| /' conftest.$ac_ext >&5 8374 8375ac_cv_func_shl_load=no 8376fi 8377rm -f conftest.err conftest.$ac_objext \ 8378 conftest$ac_exeext conftest.$ac_ext 8379fi 8380echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8381echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8382if test $ac_cv_func_shl_load = yes; then 8383 lt_cv_dlopen="shl_load" 8384else 8385 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8386echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8387if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8388 echo $ECHO_N "(cached) $ECHO_C" >&6 8389else 8390 ac_check_lib_save_LIBS=$LIBS 8391LIBS="-ldld $LIBS" 8392cat >conftest.$ac_ext <<_ACEOF 8393/* confdefs.h. */ 8394_ACEOF 8395cat confdefs.h >>conftest.$ac_ext 8396cat >>conftest.$ac_ext <<_ACEOF 8397/* end confdefs.h. */ 8398 8399/* Override any gcc2 internal prototype to avoid an error. */ 8400#ifdef __cplusplus 8401extern "C" 8402#endif 8403/* We use char because int might match the return type of a gcc2 8404 builtin and then its argument prototype would still apply. */ 8405char shl_load (); 8406int 8407main () 8408{ 8409shl_load (); 8410 ; 8411 return 0; 8412} 8413_ACEOF 8414rm -f conftest.$ac_objext conftest$ac_exeext 8415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8416 (eval $ac_link) 2>conftest.er1 8417 ac_status=$? 8418 grep -v '^ *+' conftest.er1 >conftest.err 8419 rm -f conftest.er1 8420 cat conftest.err >&5 8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8422 (exit $ac_status); } && 8423 { ac_try='test -z "$ac_c_werror_flag" 8424 || test ! -s conftest.err' 8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8426 (eval $ac_try) 2>&5 8427 ac_status=$? 8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8429 (exit $ac_status); }; } && 8430 { ac_try='test -s conftest$ac_exeext' 8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8432 (eval $ac_try) 2>&5 8433 ac_status=$? 8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8435 (exit $ac_status); }; }; then 8436 ac_cv_lib_dld_shl_load=yes 8437else 8438 echo "$as_me: failed program was:" >&5 8439sed 's/^/| /' conftest.$ac_ext >&5 8440 8441ac_cv_lib_dld_shl_load=no 8442fi 8443rm -f conftest.err conftest.$ac_objext \ 8444 conftest$ac_exeext conftest.$ac_ext 8445LIBS=$ac_check_lib_save_LIBS 8446fi 8447echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8448echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8449if test $ac_cv_lib_dld_shl_load = yes; then 8450 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8451else 8452 echo "$as_me:$LINENO: checking for dlopen" >&5 8453echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8454if test "${ac_cv_func_dlopen+set}" = set; then 8455 echo $ECHO_N "(cached) $ECHO_C" >&6 8456else 8457 cat >conftest.$ac_ext <<_ACEOF 8458/* confdefs.h. */ 8459_ACEOF 8460cat confdefs.h >>conftest.$ac_ext 8461cat >>conftest.$ac_ext <<_ACEOF 8462/* end confdefs.h. */ 8463/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8464 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8465#define dlopen innocuous_dlopen 8466 8467/* System header to define __stub macros and hopefully few prototypes, 8468 which can conflict with char dlopen (); below. 8469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8470 <limits.h> exists even on freestanding compilers. */ 8471 8472#ifdef __STDC__ 8473# include <limits.h> 8474#else 8475# include <assert.h> 8476#endif 8477 8478#undef dlopen 8479 8480/* Override any gcc2 internal prototype to avoid an error. */ 8481#ifdef __cplusplus 8482extern "C" 8483{ 8484#endif 8485/* We use char because int might match the return type of a gcc2 8486 builtin and then its argument prototype would still apply. */ 8487char dlopen (); 8488/* The GNU C library defines this for functions which it implements 8489 to always fail with ENOSYS. Some functions are actually named 8490 something starting with __ and the normal name is an alias. */ 8491#if defined (__stub_dlopen) || defined (__stub___dlopen) 8492choke me 8493#else 8494char (*f) () = dlopen; 8495#endif 8496#ifdef __cplusplus 8497} 8498#endif 8499 8500int 8501main () 8502{ 8503return f != dlopen; 8504 ; 8505 return 0; 8506} 8507_ACEOF 8508rm -f conftest.$ac_objext conftest$ac_exeext 8509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8510 (eval $ac_link) 2>conftest.er1 8511 ac_status=$? 8512 grep -v '^ *+' conftest.er1 >conftest.err 8513 rm -f conftest.er1 8514 cat conftest.err >&5 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8516 (exit $ac_status); } && 8517 { ac_try='test -z "$ac_c_werror_flag" 8518 || test ! -s conftest.err' 8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8520 (eval $ac_try) 2>&5 8521 ac_status=$? 8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8523 (exit $ac_status); }; } && 8524 { ac_try='test -s conftest$ac_exeext' 8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8526 (eval $ac_try) 2>&5 8527 ac_status=$? 8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8529 (exit $ac_status); }; }; then 8530 ac_cv_func_dlopen=yes 8531else 8532 echo "$as_me: failed program was:" >&5 8533sed 's/^/| /' conftest.$ac_ext >&5 8534 8535ac_cv_func_dlopen=no 8536fi 8537rm -f conftest.err conftest.$ac_objext \ 8538 conftest$ac_exeext conftest.$ac_ext 8539fi 8540echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8541echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8542if test $ac_cv_func_dlopen = yes; then 8543 lt_cv_dlopen="dlopen" 8544else 8545 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8546echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8547if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8548 echo $ECHO_N "(cached) $ECHO_C" >&6 8549else 8550 ac_check_lib_save_LIBS=$LIBS 8551LIBS="-ldl $LIBS" 8552cat >conftest.$ac_ext <<_ACEOF 8553/* confdefs.h. */ 8554_ACEOF 8555cat confdefs.h >>conftest.$ac_ext 8556cat >>conftest.$ac_ext <<_ACEOF 8557/* end confdefs.h. */ 8558 8559/* Override any gcc2 internal prototype to avoid an error. */ 8560#ifdef __cplusplus 8561extern "C" 8562#endif 8563/* We use char because int might match the return type of a gcc2 8564 builtin and then its argument prototype would still apply. */ 8565char dlopen (); 8566int 8567main () 8568{ 8569dlopen (); 8570 ; 8571 return 0; 8572} 8573_ACEOF 8574rm -f conftest.$ac_objext conftest$ac_exeext 8575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8576 (eval $ac_link) 2>conftest.er1 8577 ac_status=$? 8578 grep -v '^ *+' conftest.er1 >conftest.err 8579 rm -f conftest.er1 8580 cat conftest.err >&5 8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8582 (exit $ac_status); } && 8583 { ac_try='test -z "$ac_c_werror_flag" 8584 || test ! -s conftest.err' 8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8586 (eval $ac_try) 2>&5 8587 ac_status=$? 8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 (exit $ac_status); }; } && 8590 { ac_try='test -s conftest$ac_exeext' 8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8592 (eval $ac_try) 2>&5 8593 ac_status=$? 8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8595 (exit $ac_status); }; }; then 8596 ac_cv_lib_dl_dlopen=yes 8597else 8598 echo "$as_me: failed program was:" >&5 8599sed 's/^/| /' conftest.$ac_ext >&5 8600 8601ac_cv_lib_dl_dlopen=no 8602fi 8603rm -f conftest.err conftest.$ac_objext \ 8604 conftest$ac_exeext conftest.$ac_ext 8605LIBS=$ac_check_lib_save_LIBS 8606fi 8607echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8608echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8609if test $ac_cv_lib_dl_dlopen = yes; then 8610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8611else 8612 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8613echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8614if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8615 echo $ECHO_N "(cached) $ECHO_C" >&6 8616else 8617 ac_check_lib_save_LIBS=$LIBS 8618LIBS="-lsvld $LIBS" 8619cat >conftest.$ac_ext <<_ACEOF 8620/* confdefs.h. */ 8621_ACEOF 8622cat confdefs.h >>conftest.$ac_ext 8623cat >>conftest.$ac_ext <<_ACEOF 8624/* end confdefs.h. */ 8625 8626/* Override any gcc2 internal prototype to avoid an error. */ 8627#ifdef __cplusplus 8628extern "C" 8629#endif 8630/* We use char because int might match the return type of a gcc2 8631 builtin and then its argument prototype would still apply. */ 8632char dlopen (); 8633int 8634main () 8635{ 8636dlopen (); 8637 ; 8638 return 0; 8639} 8640_ACEOF 8641rm -f conftest.$ac_objext conftest$ac_exeext 8642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8643 (eval $ac_link) 2>conftest.er1 8644 ac_status=$? 8645 grep -v '^ *+' conftest.er1 >conftest.err 8646 rm -f conftest.er1 8647 cat conftest.err >&5 8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8649 (exit $ac_status); } && 8650 { ac_try='test -z "$ac_c_werror_flag" 8651 || test ! -s conftest.err' 8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8653 (eval $ac_try) 2>&5 8654 ac_status=$? 8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8656 (exit $ac_status); }; } && 8657 { ac_try='test -s conftest$ac_exeext' 8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8659 (eval $ac_try) 2>&5 8660 ac_status=$? 8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8662 (exit $ac_status); }; }; then 8663 ac_cv_lib_svld_dlopen=yes 8664else 8665 echo "$as_me: failed program was:" >&5 8666sed 's/^/| /' conftest.$ac_ext >&5 8667 8668ac_cv_lib_svld_dlopen=no 8669fi 8670rm -f conftest.err conftest.$ac_objext \ 8671 conftest$ac_exeext conftest.$ac_ext 8672LIBS=$ac_check_lib_save_LIBS 8673fi 8674echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8675echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8676if test $ac_cv_lib_svld_dlopen = yes; then 8677 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8678else 8679 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8680echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8681if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8682 echo $ECHO_N "(cached) $ECHO_C" >&6 8683else 8684 ac_check_lib_save_LIBS=$LIBS 8685LIBS="-ldld $LIBS" 8686cat >conftest.$ac_ext <<_ACEOF 8687/* confdefs.h. */ 8688_ACEOF 8689cat confdefs.h >>conftest.$ac_ext 8690cat >>conftest.$ac_ext <<_ACEOF 8691/* end confdefs.h. */ 8692 8693/* Override any gcc2 internal prototype to avoid an error. */ 8694#ifdef __cplusplus 8695extern "C" 8696#endif 8697/* We use char because int might match the return type of a gcc2 8698 builtin and then its argument prototype would still apply. */ 8699char dld_link (); 8700int 8701main () 8702{ 8703dld_link (); 8704 ; 8705 return 0; 8706} 8707_ACEOF 8708rm -f conftest.$ac_objext conftest$ac_exeext 8709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8710 (eval $ac_link) 2>conftest.er1 8711 ac_status=$? 8712 grep -v '^ *+' conftest.er1 >conftest.err 8713 rm -f conftest.er1 8714 cat conftest.err >&5 8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8716 (exit $ac_status); } && 8717 { ac_try='test -z "$ac_c_werror_flag" 8718 || test ! -s conftest.err' 8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8720 (eval $ac_try) 2>&5 8721 ac_status=$? 8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8723 (exit $ac_status); }; } && 8724 { ac_try='test -s conftest$ac_exeext' 8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8726 (eval $ac_try) 2>&5 8727 ac_status=$? 8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8729 (exit $ac_status); }; }; then 8730 ac_cv_lib_dld_dld_link=yes 8731else 8732 echo "$as_me: failed program was:" >&5 8733sed 's/^/| /' conftest.$ac_ext >&5 8734 8735ac_cv_lib_dld_dld_link=no 8736fi 8737rm -f conftest.err conftest.$ac_objext \ 8738 conftest$ac_exeext conftest.$ac_ext 8739LIBS=$ac_check_lib_save_LIBS 8740fi 8741echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8742echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8743if test $ac_cv_lib_dld_dld_link = yes; then 8744 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8745fi 8746 8747 8748fi 8749 8750 8751fi 8752 8753 8754fi 8755 8756 8757fi 8758 8759 8760fi 8761 8762 ;; 8763 esac 8764 8765 if test "x$lt_cv_dlopen" != xno; then 8766 enable_dlopen=yes 8767 else 8768 enable_dlopen=no 8769 fi 8770 8771 case $lt_cv_dlopen in 8772 dlopen) 8773 save_CPPFLAGS="$CPPFLAGS" 8774 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8775 8776 save_LDFLAGS="$LDFLAGS" 8777 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8778 8779 save_LIBS="$LIBS" 8780 LIBS="$lt_cv_dlopen_libs $LIBS" 8781 8782 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8783echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8784if test "${lt_cv_dlopen_self+set}" = set; then 8785 echo $ECHO_N "(cached) $ECHO_C" >&6 8786else 8787 if test "$cross_compiling" = yes; then : 8788 lt_cv_dlopen_self=cross 8789else 8790 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8791 lt_status=$lt_dlunknown 8792 cat > conftest.$ac_ext <<EOF 8793#line 8788 "configure" 8794#include "confdefs.h" 8795 8796#if HAVE_DLFCN_H 8797#include <dlfcn.h> 8798#endif 8799 8800#include <stdio.h> 8801 8802#ifdef RTLD_GLOBAL 8803# define LT_DLGLOBAL RTLD_GLOBAL 8804#else 8805# ifdef DL_GLOBAL 8806# define LT_DLGLOBAL DL_GLOBAL 8807# else 8808# define LT_DLGLOBAL 0 8809# endif 8810#endif 8811 8812/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8813 find out it does not work in some platform. */ 8814#ifndef LT_DLLAZY_OR_NOW 8815# ifdef RTLD_LAZY 8816# define LT_DLLAZY_OR_NOW RTLD_LAZY 8817# else 8818# ifdef DL_LAZY 8819# define LT_DLLAZY_OR_NOW DL_LAZY 8820# else 8821# ifdef RTLD_NOW 8822# define LT_DLLAZY_OR_NOW RTLD_NOW 8823# else 8824# ifdef DL_NOW 8825# define LT_DLLAZY_OR_NOW DL_NOW 8826# else 8827# define LT_DLLAZY_OR_NOW 0 8828# endif 8829# endif 8830# endif 8831# endif 8832#endif 8833 8834#ifdef __cplusplus 8835extern "C" void exit (int); 8836#endif 8837 8838void fnord() { int i=42;} 8839int main () 8840{ 8841 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8842 int status = $lt_dlunknown; 8843 8844 if (self) 8845 { 8846 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8847 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8848 /* dlclose (self); */ 8849 } 8850 else 8851 puts (dlerror ()); 8852 8853 exit (status); 8854} 8855EOF 8856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8857 (eval $ac_link) 2>&5 8858 ac_status=$? 8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8860 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8861 (./conftest; exit; ) >&5 2>/dev/null 8862 lt_status=$? 8863 case x$lt_status in 8864 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8865 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8866 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 8867 esac 8868 else : 8869 # compilation failed 8870 lt_cv_dlopen_self=no 8871 fi 8872fi 8873rm -fr conftest* 8874 8875 8876fi 8877echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8878echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8879 8880 if test "x$lt_cv_dlopen_self" = xyes; then 8881 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 8882 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8883echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8884if test "${lt_cv_dlopen_self_static+set}" = set; then 8885 echo $ECHO_N "(cached) $ECHO_C" >&6 8886else 8887 if test "$cross_compiling" = yes; then : 8888 lt_cv_dlopen_self_static=cross 8889else 8890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8891 lt_status=$lt_dlunknown 8892 cat > conftest.$ac_ext <<EOF 8893#line 8888 "configure" 8894#include "confdefs.h" 8895 8896#if HAVE_DLFCN_H 8897#include <dlfcn.h> 8898#endif 8899 8900#include <stdio.h> 8901 8902#ifdef RTLD_GLOBAL 8903# define LT_DLGLOBAL RTLD_GLOBAL 8904#else 8905# ifdef DL_GLOBAL 8906# define LT_DLGLOBAL DL_GLOBAL 8907# else 8908# define LT_DLGLOBAL 0 8909# endif 8910#endif 8911 8912/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8913 find out it does not work in some platform. */ 8914#ifndef LT_DLLAZY_OR_NOW 8915# ifdef RTLD_LAZY 8916# define LT_DLLAZY_OR_NOW RTLD_LAZY 8917# else 8918# ifdef DL_LAZY 8919# define LT_DLLAZY_OR_NOW DL_LAZY 8920# else 8921# ifdef RTLD_NOW 8922# define LT_DLLAZY_OR_NOW RTLD_NOW 8923# else 8924# ifdef DL_NOW 8925# define LT_DLLAZY_OR_NOW DL_NOW 8926# else 8927# define LT_DLLAZY_OR_NOW 0 8928# endif 8929# endif 8930# endif 8931# endif 8932#endif 8933 8934#ifdef __cplusplus 8935extern "C" void exit (int); 8936#endif 8937 8938void fnord() { int i=42;} 8939int main () 8940{ 8941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8942 int status = $lt_dlunknown; 8943 8944 if (self) 8945 { 8946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8947 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8948 /* dlclose (self); */ 8949 } 8950 else 8951 puts (dlerror ()); 8952 8953 exit (status); 8954} 8955EOF 8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8957 (eval $ac_link) 2>&5 8958 ac_status=$? 8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8960 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8961 (./conftest; exit; ) >&5 2>/dev/null 8962 lt_status=$? 8963 case x$lt_status in 8964 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8965 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8966 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 8967 esac 8968 else : 8969 # compilation failed 8970 lt_cv_dlopen_self_static=no 8971 fi 8972fi 8973rm -fr conftest* 8974 8975 8976fi 8977echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8978echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8979 fi 8980 8981 CPPFLAGS="$save_CPPFLAGS" 8982 LDFLAGS="$save_LDFLAGS" 8983 LIBS="$save_LIBS" 8984 ;; 8985 esac 8986 8987 case $lt_cv_dlopen_self in 8988 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8989 *) enable_dlopen_self=unknown ;; 8990 esac 8991 8992 case $lt_cv_dlopen_self_static in 8993 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8994 *) enable_dlopen_self_static=unknown ;; 8995 esac 8996fi 8997 8998 8999# Report which library types will actually be built 9000echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9001echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9002echo "$as_me:$LINENO: result: $can_build_shared" >&5 9003echo "${ECHO_T}$can_build_shared" >&6 9004 9005echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9006echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9007test "$can_build_shared" = "no" && enable_shared=no 9008 9009# On AIX, shared libraries and static libraries use the same namespace, and 9010# are all built from PIC. 9011case $host_os in 9012aix3*) 9013 test "$enable_shared" = yes && enable_static=no 9014 if test -n "$RANLIB"; then 9015 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9016 postinstall_cmds='$RANLIB $lib' 9017 fi 9018 ;; 9019 9020aix4* | aix5*) 9021 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9022 test "$enable_shared" = yes && enable_static=no 9023 fi 9024 ;; 9025esac 9026echo "$as_me:$LINENO: result: $enable_shared" >&5 9027echo "${ECHO_T}$enable_shared" >&6 9028 9029echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9030echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9031# Make sure either enable_shared or enable_static is yes. 9032test "$enable_shared" = yes || enable_static=yes 9033echo "$as_me:$LINENO: result: $enable_static" >&5 9034echo "${ECHO_T}$enable_static" >&6 9035 9036# The else clause should only fire when bootstrapping the 9037# libtool distribution, otherwise you forgot to ship ltmain.sh 9038# with your package, and you will get complaints that there are 9039# no rules to generate ltmain.sh. 9040if test -f "$ltmain"; then 9041 # See if we are running on zsh, and set the options which allow our commands through 9042 # without removal of \ escapes. 9043 if test -n "${ZSH_VERSION+set}" ; then 9044 setopt NO_GLOB_SUBST 9045 fi 9046 # Now quote all the things that may contain metacharacters while being 9047 # careful not to overquote the AC_SUBSTed values. We take copies of the 9048 # variables and quote the copies for generation of the libtool script. 9049 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9050 SED SHELL STRIP \ 9051 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9052 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9053 deplibs_check_method reload_flag reload_cmds need_locks \ 9054 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9055 lt_cv_sys_global_symbol_to_c_name_address \ 9056 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9057 old_postinstall_cmds old_postuninstall_cmds \ 9058 compiler \ 9059 CC \ 9060 LD \ 9061 lt_prog_compiler_wl \ 9062 lt_prog_compiler_pic \ 9063 lt_prog_compiler_static \ 9064 lt_prog_compiler_no_builtin_flag \ 9065 export_dynamic_flag_spec \ 9066 thread_safe_flag_spec \ 9067 whole_archive_flag_spec \ 9068 enable_shared_with_static_runtimes \ 9069 old_archive_cmds \ 9070 old_archive_from_new_cmds \ 9071 predep_objects \ 9072 postdep_objects \ 9073 predeps \ 9074 postdeps \ 9075 compiler_lib_search_path \ 9076 archive_cmds \ 9077 archive_expsym_cmds \ 9078 postinstall_cmds \ 9079 postuninstall_cmds \ 9080 old_archive_from_expsyms_cmds \ 9081 allow_undefined_flag \ 9082 no_undefined_flag \ 9083 export_symbols_cmds \ 9084 hardcode_libdir_flag_spec \ 9085 hardcode_libdir_flag_spec_ld \ 9086 hardcode_libdir_separator \ 9087 hardcode_automatic \ 9088 module_cmds \ 9089 module_expsym_cmds \ 9090 lt_cv_prog_compiler_c_o \ 9091 exclude_expsyms \ 9092 include_expsyms; do 9093 9094 case $var in 9095 old_archive_cmds | \ 9096 old_archive_from_new_cmds | \ 9097 archive_cmds | \ 9098 archive_expsym_cmds | \ 9099 module_cmds | \ 9100 module_expsym_cmds | \ 9101 old_archive_from_expsyms_cmds | \ 9102 export_symbols_cmds | \ 9103 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9104 postinstall_cmds | postuninstall_cmds | \ 9105 old_postinstall_cmds | old_postuninstall_cmds | \ 9106 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9107 # Double-quote double-evaled strings. 9108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9109 ;; 9110 *) 9111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9112 ;; 9113 esac 9114 done 9115 9116 case $lt_echo in 9117 *'\$0 --fallback-echo"') 9118 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9119 ;; 9120 esac 9121 9122cfgfile="${ofile}T" 9123 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9124 $rm -f "$cfgfile" 9125 { echo "$as_me:$LINENO: creating $ofile" >&5 9126echo "$as_me: creating $ofile" >&6;} 9127 9128 cat <<__EOF__ >> "$cfgfile" 9129#! $SHELL 9130 9131# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9132# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9133# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9134# 9135# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9136# Free Software Foundation, Inc. 9137# 9138# This file is part of GNU Libtool: 9139# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9140# 9141# This program is free software; you can redistribute it and/or modify 9142# it under the terms of the GNU General Public License as published by 9143# the Free Software Foundation; either version 2 of the License, or 9144# (at your option) any later version. 9145# 9146# This program is distributed in the hope that it will be useful, but 9147# WITHOUT ANY WARRANTY; without even the implied warranty of 9148# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9149# General Public License for more details. 9150# 9151# You should have received a copy of the GNU General Public License 9152# along with this program; if not, write to the Free Software 9153# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9154# 9155# As a special exception to the GNU General Public License, if you 9156# distribute this file as part of a program that contains a 9157# configuration script generated by Autoconf, you may include it under 9158# the same distribution terms that you use for the rest of that program. 9159 9160# A sed program that does not truncate output. 9161SED=$lt_SED 9162 9163# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9164Xsed="$SED -e 1s/^X//" 9165 9166# The HP-UX ksh and POSIX shell print the target directory to stdout 9167# if CDPATH is set. 9168(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9169 9170# The names of the tagged configurations supported by this script. 9171available_tags= 9172 9173# ### BEGIN LIBTOOL CONFIG 9174 9175# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9176 9177# Shell to use when invoking shell scripts. 9178SHELL=$lt_SHELL 9179 9180# Whether or not to build shared libraries. 9181build_libtool_libs=$enable_shared 9182 9183# Whether or not to build static libraries. 9184build_old_libs=$enable_static 9185 9186# Whether or not to add -lc for building shared libraries. 9187build_libtool_need_lc=$archive_cmds_need_lc 9188 9189# Whether or not to disallow shared libs when runtime libs are static 9190allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9191 9192# Whether or not to optimize for fast installation. 9193fast_install=$enable_fast_install 9194 9195# The host system. 9196host_alias=$host_alias 9197host=$host 9198host_os=$host_os 9199 9200# The build system. 9201build_alias=$build_alias 9202build=$build 9203build_os=$build_os 9204 9205# An echo program that does not interpret backslashes. 9206echo=$lt_echo 9207 9208# The archiver. 9209AR=$lt_AR 9210AR_FLAGS=$lt_AR_FLAGS 9211 9212# A C compiler. 9213LTCC=$lt_LTCC 9214 9215# LTCC compiler flags. 9216LTCFLAGS=$lt_LTCFLAGS 9217 9218# A language-specific compiler. 9219CC=$lt_compiler 9220 9221# Is the compiler the GNU C compiler? 9222with_gcc=$GCC 9223 9224# An ERE matcher. 9225EGREP=$lt_EGREP 9226 9227# The linker used to build libraries. 9228LD=$lt_LD 9229 9230# Whether we need hard or soft links. 9231LN_S=$lt_LN_S 9232 9233# A BSD-compatible nm program. 9234NM=$lt_NM 9235 9236# A symbol stripping program 9237STRIP=$lt_STRIP 9238 9239# Used to examine libraries when file_magic_cmd begins "file" 9240MAGIC_CMD=$MAGIC_CMD 9241 9242# Used on cygwin: DLL creation program. 9243DLLTOOL="$DLLTOOL" 9244 9245# Used on cygwin: object dumper. 9246OBJDUMP="$OBJDUMP" 9247 9248# Used on cygwin: assembler. 9249AS="$AS" 9250 9251# The name of the directory that contains temporary libtool files. 9252objdir=$objdir 9253 9254# How to create reloadable object files. 9255reload_flag=$lt_reload_flag 9256reload_cmds=$lt_reload_cmds 9257 9258# How to pass a linker flag through the compiler. 9259wl=$lt_lt_prog_compiler_wl 9260 9261# Object file suffix (normally "o"). 9262objext="$ac_objext" 9263 9264# Old archive suffix (normally "a"). 9265libext="$libext" 9266 9267# Shared library suffix (normally ".so"). 9268shrext_cmds='$shrext_cmds' 9269 9270# Executable file suffix (normally ""). 9271exeext="$exeext" 9272 9273# Additional compiler flags for building library objects. 9274pic_flag=$lt_lt_prog_compiler_pic 9275pic_mode=$pic_mode 9276 9277# What is the maximum length of a command? 9278max_cmd_len=$lt_cv_sys_max_cmd_len 9279 9280# Does compiler simultaneously support -c and -o options? 9281compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9282 9283# Must we lock files when doing compilation? 9284need_locks=$lt_need_locks 9285 9286# Do we need the lib prefix for modules? 9287need_lib_prefix=$need_lib_prefix 9288 9289# Do we need a version for libraries? 9290need_version=$need_version 9291 9292# Whether dlopen is supported. 9293dlopen_support=$enable_dlopen 9294 9295# Whether dlopen of programs is supported. 9296dlopen_self=$enable_dlopen_self 9297 9298# Whether dlopen of statically linked programs is supported. 9299dlopen_self_static=$enable_dlopen_self_static 9300 9301# Compiler flag to prevent dynamic linking. 9302link_static_flag=$lt_lt_prog_compiler_static 9303 9304# Compiler flag to turn off builtin functions. 9305no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9306 9307# Compiler flag to allow reflexive dlopens. 9308export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9309 9310# Compiler flag to generate shared objects directly from archives. 9311whole_archive_flag_spec=$lt_whole_archive_flag_spec 9312 9313# Compiler flag to generate thread-safe objects. 9314thread_safe_flag_spec=$lt_thread_safe_flag_spec 9315 9316# Library versioning type. 9317version_type=$version_type 9318 9319# Format of library name prefix. 9320libname_spec=$lt_libname_spec 9321 9322# List of archive names. First name is the real one, the rest are links. 9323# The last name is the one that the linker finds with -lNAME. 9324library_names_spec=$lt_library_names_spec 9325 9326# The coded name of the library, if different from the real name. 9327soname_spec=$lt_soname_spec 9328 9329# Commands used to build and install an old-style archive. 9330RANLIB=$lt_RANLIB 9331old_archive_cmds=$lt_old_archive_cmds 9332old_postinstall_cmds=$lt_old_postinstall_cmds 9333old_postuninstall_cmds=$lt_old_postuninstall_cmds 9334 9335# Create an old-style archive from a shared archive. 9336old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9337 9338# Create a temporary old-style archive to link instead of a shared archive. 9339old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9340 9341# Commands used to build and install a shared archive. 9342archive_cmds=$lt_archive_cmds 9343archive_expsym_cmds=$lt_archive_expsym_cmds 9344postinstall_cmds=$lt_postinstall_cmds 9345postuninstall_cmds=$lt_postuninstall_cmds 9346 9347# Commands used to build a loadable module (assumed same as above if empty) 9348module_cmds=$lt_module_cmds 9349module_expsym_cmds=$lt_module_expsym_cmds 9350 9351# Commands to strip libraries. 9352old_striplib=$lt_old_striplib 9353striplib=$lt_striplib 9354 9355# Dependencies to place before the objects being linked to create a 9356# shared library. 9357predep_objects=$lt_predep_objects 9358 9359# Dependencies to place after the objects being linked to create a 9360# shared library. 9361postdep_objects=$lt_postdep_objects 9362 9363# Dependencies to place before the objects being linked to create a 9364# shared library. 9365predeps=$lt_predeps 9366 9367# Dependencies to place after the objects being linked to create a 9368# shared library. 9369postdeps=$lt_postdeps 9370 9371# The library search path used internally by the compiler when linking 9372# a shared library. 9373compiler_lib_search_path=$lt_compiler_lib_search_path 9374 9375# Method to check whether dependent libraries are shared objects. 9376deplibs_check_method=$lt_deplibs_check_method 9377 9378# Command to use when deplibs_check_method == file_magic. 9379file_magic_cmd=$lt_file_magic_cmd 9380 9381# Flag that allows shared libraries with undefined symbols to be built. 9382allow_undefined_flag=$lt_allow_undefined_flag 9383 9384# Flag that forces no undefined symbols. 9385no_undefined_flag=$lt_no_undefined_flag 9386 9387# Commands used to finish a libtool library installation in a directory. 9388finish_cmds=$lt_finish_cmds 9389 9390# Same as above, but a single script fragment to be evaled but not shown. 9391finish_eval=$lt_finish_eval 9392 9393# Take the output of nm and produce a listing of raw symbols and C names. 9394global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9395 9396# Transform the output of nm in a proper C declaration 9397global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9398 9399# Transform the output of nm in a C name address pair 9400global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9401 9402# This is the shared library runtime path variable. 9403runpath_var=$runpath_var 9404 9405# This is the shared library path variable. 9406shlibpath_var=$shlibpath_var 9407 9408# Is shlibpath searched before the hard-coded library search path? 9409shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9410 9411# How to hardcode a shared library path into an executable. 9412hardcode_action=$hardcode_action 9413 9414# Whether we should hardcode library paths into libraries. 9415hardcode_into_libs=$hardcode_into_libs 9416 9417# Flag to hardcode \$libdir into a binary during linking. 9418# This must work even if \$libdir does not exist. 9419hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9420 9421# If ld is used when linking, flag to hardcode \$libdir into 9422# a binary during linking. This must work even if \$libdir does 9423# not exist. 9424hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9425 9426# Whether we need a single -rpath flag with a separated argument. 9427hardcode_libdir_separator=$lt_hardcode_libdir_separator 9428 9429# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9430# resulting binary. 9431hardcode_direct=$hardcode_direct 9432 9433# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9434# resulting binary. 9435hardcode_minus_L=$hardcode_minus_L 9436 9437# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9438# the resulting binary. 9439hardcode_shlibpath_var=$hardcode_shlibpath_var 9440 9441# Set to yes if building a shared library automatically hardcodes DIR into the library 9442# and all subsequent libraries and executables linked against it. 9443hardcode_automatic=$hardcode_automatic 9444 9445# Variables whose values should be saved in libtool wrapper scripts and 9446# restored at relink time. 9447variables_saved_for_relink="$variables_saved_for_relink" 9448 9449# Whether libtool must link a program against all its dependency libraries. 9450link_all_deplibs=$link_all_deplibs 9451 9452# Compile-time system search path for libraries 9453sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9454 9455# Run-time system search path for libraries 9456sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9457 9458# Fix the shell variable \$srcfile for the compiler. 9459fix_srcfile_path="$fix_srcfile_path" 9460 9461# Set to yes if exported symbols are required. 9462always_export_symbols=$always_export_symbols 9463 9464# The commands to list exported symbols. 9465export_symbols_cmds=$lt_export_symbols_cmds 9466 9467# The commands to extract the exported symbol list from a shared archive. 9468extract_expsyms_cmds=$lt_extract_expsyms_cmds 9469 9470# Symbols that should not be listed in the preloaded symbols. 9471exclude_expsyms=$lt_exclude_expsyms 9472 9473# Symbols that must always be exported. 9474include_expsyms=$lt_include_expsyms 9475 9476# ### END LIBTOOL CONFIG 9477 9478__EOF__ 9479 9480 9481 case $host_os in 9482 aix3*) 9483 cat <<\EOF >> "$cfgfile" 9484 9485# AIX sometimes has problems with the GCC collect2 program. For some 9486# reason, if we set the COLLECT_NAMES environment variable, the problems 9487# vanish in a puff of smoke. 9488if test "X${COLLECT_NAMES+set}" != Xset; then 9489 COLLECT_NAMES= 9490 export COLLECT_NAMES 9491fi 9492EOF 9493 ;; 9494 esac 9495 9496 # We use sed instead of cat because bash on DJGPP gets confused if 9497 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9498 # text mode, it properly converts lines to CR/LF. This bash problem 9499 # is reportedly fixed, but why not run on old versions too? 9500 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9501 9502 mv -f "$cfgfile" "$ofile" || \ 9503 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9504 chmod +x "$ofile" 9505 9506else 9507 # If there is no Makefile yet, we rely on a make rule to execute 9508 # `config.status --recheck' to rerun these tests and create the 9509 # libtool script then. 9510 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9511 if test -f "$ltmain_in"; then 9512 test -f Makefile && make "$ltmain" 9513 fi 9514fi 9515 9516 9517ac_ext=c 9518ac_cpp='$CPP $CPPFLAGS' 9519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9521ac_compiler_gnu=$ac_cv_c_compiler_gnu 9522 9523CC="$lt_save_CC" 9524 9525 9526# Check whether --with-tags or --without-tags was given. 9527if test "${with_tags+set}" = set; then 9528 withval="$with_tags" 9529 tagnames="$withval" 9530fi; 9531 9532if test -f "$ltmain" && test -n "$tagnames"; then 9533 if test ! -f "${ofile}"; then 9534 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9535echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9536 fi 9537 9538 if test -z "$LTCC"; then 9539 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9540 if test -z "$LTCC"; then 9541 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9542echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9543 else 9544 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9545echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9546 fi 9547 fi 9548 if test -z "$LTCFLAGS"; then 9549 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9550 fi 9551 9552 # Extract list of available tagged configurations in $ofile. 9553 # Note that this assumes the entire list is on one line. 9554 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9555 9556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9557 for tagname in $tagnames; do 9558 IFS="$lt_save_ifs" 9559 # Check whether tagname contains only valid characters 9560 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9561 "") ;; 9562 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9563echo "$as_me: error: invalid tag name: $tagname" >&2;} 9564 { (exit 1); exit 1; }; } 9565 ;; 9566 esac 9567 9568 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9569 then 9570 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9571echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9572 { (exit 1); exit 1; }; } 9573 fi 9574 9575 # Update the list of available tags. 9576 if test -n "$tagname"; then 9577 echo appending configuration tag \"$tagname\" to $ofile 9578 9579 case $tagname in 9580 CXX) 9581 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9582 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9583 (test "X$CXX" != "Xg++"))) ; then 9584 ac_ext=cc 9585ac_cpp='$CXXCPP $CPPFLAGS' 9586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9589 9590 9591 9592 9593archive_cmds_need_lc_CXX=no 9594allow_undefined_flag_CXX= 9595always_export_symbols_CXX=no 9596archive_expsym_cmds_CXX= 9597export_dynamic_flag_spec_CXX= 9598hardcode_direct_CXX=no 9599hardcode_libdir_flag_spec_CXX= 9600hardcode_libdir_flag_spec_ld_CXX= 9601hardcode_libdir_separator_CXX= 9602hardcode_minus_L_CXX=no 9603hardcode_shlibpath_var_CXX=unsupported 9604hardcode_automatic_CXX=no 9605module_cmds_CXX= 9606module_expsym_cmds_CXX= 9607link_all_deplibs_CXX=unknown 9608old_archive_cmds_CXX=$old_archive_cmds 9609no_undefined_flag_CXX= 9610whole_archive_flag_spec_CXX= 9611enable_shared_with_static_runtimes_CXX=no 9612 9613# Dependencies to place before and after the object being linked: 9614predep_objects_CXX= 9615postdep_objects_CXX= 9616predeps_CXX= 9617postdeps_CXX= 9618compiler_lib_search_path_CXX= 9619 9620# Source file extension for C++ test sources. 9621ac_ext=cpp 9622 9623# Object file extension for compiled C++ test sources. 9624objext=o 9625objext_CXX=$objext 9626 9627# Code to be used in simple compile tests 9628lt_simple_compile_test_code="int some_variable = 0;\n" 9629 9630# Code to be used in simple link tests 9631lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9632 9633# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9634 9635# If no C compiler was specified, use CC. 9636LTCC=${LTCC-"$CC"} 9637 9638# If no C compiler flags were specified, use CFLAGS. 9639LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9640 9641# Allow CC to be a program name with arguments. 9642compiler=$CC 9643 9644 9645# save warnings/boilerplate of simple test code 9646ac_outfile=conftest.$ac_objext 9647printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9648eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9649_lt_compiler_boilerplate=`cat conftest.err` 9650$rm conftest* 9651 9652ac_outfile=conftest.$ac_objext 9653printf "$lt_simple_link_test_code" >conftest.$ac_ext 9654eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9655_lt_linker_boilerplate=`cat conftest.err` 9656$rm conftest* 9657 9658 9659# Allow CC to be a program name with arguments. 9660lt_save_CC=$CC 9661lt_save_LD=$LD 9662lt_save_GCC=$GCC 9663GCC=$GXX 9664lt_save_with_gnu_ld=$with_gnu_ld 9665lt_save_path_LD=$lt_cv_path_LD 9666if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9667 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9668else 9669 $as_unset lt_cv_prog_gnu_ld 9670fi 9671if test -n "${lt_cv_path_LDCXX+set}"; then 9672 lt_cv_path_LD=$lt_cv_path_LDCXX 9673else 9674 $as_unset lt_cv_path_LD 9675fi 9676test -z "${LDCXX+set}" || LD=$LDCXX 9677CC=${CXX-"c++"} 9678compiler=$CC 9679compiler_CXX=$CC 9680for cc_temp in $compiler""; do 9681 case $cc_temp in 9682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9684 \-*) ;; 9685 *) break;; 9686 esac 9687done 9688cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9689 9690 9691# We don't want -fno-exception wen compiling C++ code, so set the 9692# no_builtin_flag separately 9693if test "$GXX" = yes; then 9694 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9695else 9696 lt_prog_compiler_no_builtin_flag_CXX= 9697fi 9698 9699if test "$GXX" = yes; then 9700 # Set up default GNU C++ configuration 9701 9702 9703# Check whether --with-gnu-ld or --without-gnu-ld was given. 9704if test "${with_gnu_ld+set}" = set; then 9705 withval="$with_gnu_ld" 9706 test "$withval" = no || with_gnu_ld=yes 9707else 9708 with_gnu_ld=no 9709fi; 9710ac_prog=ld 9711if test "$GCC" = yes; then 9712 # Check if gcc -print-prog-name=ld gives a path. 9713 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9714echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9715 case $host in 9716 *-*-mingw*) 9717 # gcc leaves a trailing carriage return which upsets mingw 9718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9719 *) 9720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9721 esac 9722 case $ac_prog in 9723 # Accept absolute paths. 9724 [\\/]* | ?:[\\/]*) 9725 re_direlt='/[^/][^/]*/\.\./' 9726 # Canonicalize the pathname of ld 9727 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9728 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9729 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9730 done 9731 test -z "$LD" && LD="$ac_prog" 9732 ;; 9733 "") 9734 # If it fails, then pretend we aren't using GCC. 9735 ac_prog=ld 9736 ;; 9737 *) 9738 # If it is relative, then search for the first ld in PATH. 9739 with_gnu_ld=unknown 9740 ;; 9741 esac 9742elif test "$with_gnu_ld" = yes; then 9743 echo "$as_me:$LINENO: checking for GNU ld" >&5 9744echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9745else 9746 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9747echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9748fi 9749if test "${lt_cv_path_LD+set}" = set; then 9750 echo $ECHO_N "(cached) $ECHO_C" >&6 9751else 9752 if test -z "$LD"; then 9753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9754 for ac_dir in $PATH; do 9755 IFS="$lt_save_ifs" 9756 test -z "$ac_dir" && ac_dir=. 9757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9758 lt_cv_path_LD="$ac_dir/$ac_prog" 9759 # Check to see if the program is GNU ld. I'd rather use --version, 9760 # but apparently some variants of GNU ld only accept -v. 9761 # Break only if it was the GNU/non-GNU ld that we prefer. 9762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9763 *GNU* | *'with BFD'*) 9764 test "$with_gnu_ld" != no && break 9765 ;; 9766 *) 9767 test "$with_gnu_ld" != yes && break 9768 ;; 9769 esac 9770 fi 9771 done 9772 IFS="$lt_save_ifs" 9773else 9774 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9775fi 9776fi 9777 9778LD="$lt_cv_path_LD" 9779if test -n "$LD"; then 9780 echo "$as_me:$LINENO: result: $LD" >&5 9781echo "${ECHO_T}$LD" >&6 9782else 9783 echo "$as_me:$LINENO: result: no" >&5 9784echo "${ECHO_T}no" >&6 9785fi 9786test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9787echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9788 { (exit 1); exit 1; }; } 9789echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9790echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9791if test "${lt_cv_prog_gnu_ld+set}" = set; then 9792 echo $ECHO_N "(cached) $ECHO_C" >&6 9793else 9794 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9795case `$LD -v 2>&1 </dev/null` in 9796*GNU* | *'with BFD'*) 9797 lt_cv_prog_gnu_ld=yes 9798 ;; 9799*) 9800 lt_cv_prog_gnu_ld=no 9801 ;; 9802esac 9803fi 9804echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9805echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9806with_gnu_ld=$lt_cv_prog_gnu_ld 9807 9808 9809 9810 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9811 # archiving commands below assume that GNU ld is being used. 9812 if test "$with_gnu_ld" = yes; then 9813 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9814 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' 9815 9816 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9817 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9818 9819 # If archive_cmds runs LD, not CC, wlarc should be empty 9820 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9821 # investigate it a little bit more. (MM) 9822 wlarc='${wl}' 9823 9824 # ancient GNU ld didn't support --whole-archive et. al. 9825 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9826 grep 'no-whole-archive' > /dev/null; then 9827 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9828 else 9829 whole_archive_flag_spec_CXX= 9830 fi 9831 else 9832 with_gnu_ld=no 9833 wlarc= 9834 9835 # A generic and very simple default shared library creation 9836 # command for GNU C++ for the case where it uses the native 9837 # linker, instead of GNU ld. If possible, this setting should 9838 # overridden to take advantage of the native linker features on 9839 # the platform it is being used on. 9840 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9841 fi 9842 9843 # Commands to make compiler produce verbose output that lists 9844 # what "hidden" libraries, object files and flags are used when 9845 # linking a shared library. 9846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9847 9848else 9849 GXX=no 9850 with_gnu_ld=no 9851 wlarc= 9852fi 9853 9854# PORTME: fill in a description of your system's C++ link characteristics 9855echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9856echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9857ld_shlibs_CXX=yes 9858case $host_os in 9859 aix3*) 9860 # FIXME: insert proper C++ library support 9861 ld_shlibs_CXX=no 9862 ;; 9863 aix4* | aix5*) 9864 if test "$host_cpu" = ia64; then 9865 # On IA64, the linker does run time linking by default, so we don't 9866 # have to do anything special. 9867 aix_use_runtimelinking=no 9868 exp_sym_flag='-Bexport' 9869 no_entry_flag="" 9870 else 9871 aix_use_runtimelinking=no 9872 9873 # Test if we are trying to use run time linking or normal 9874 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9875 # need to do runtime linking. 9876 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9877 for ld_flag in $LDFLAGS; do 9878 case $ld_flag in 9879 *-brtl*) 9880 aix_use_runtimelinking=yes 9881 break 9882 ;; 9883 esac 9884 done 9885 ;; 9886 esac 9887 9888 exp_sym_flag='-bexport' 9889 no_entry_flag='-bnoentry' 9890 fi 9891 9892 # When large executables or shared objects are built, AIX ld can 9893 # have problems creating the table of contents. If linking a library 9894 # or program results in "error TOC overflow" add -mminimal-toc to 9895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9897 9898 archive_cmds_CXX='' 9899 hardcode_direct_CXX=yes 9900 hardcode_libdir_separator_CXX=':' 9901 link_all_deplibs_CXX=yes 9902 9903 if test "$GXX" = yes; then 9904 case $host_os in aix4.[012]|aix4.[012].*) 9905 # We only want to do this on AIX 4.2 and lower, the check 9906 # below for broken collect2 doesn't work under 4.3+ 9907 collect2name=`${CC} -print-prog-name=collect2` 9908 if test -f "$collect2name" && \ 9909 strings "$collect2name" | grep resolve_lib_name >/dev/null 9910 then 9911 # We have reworked collect2 9912 hardcode_direct_CXX=yes 9913 else 9914 # We have old collect2 9915 hardcode_direct_CXX=unsupported 9916 # It fails to find uninstalled libraries when the uninstalled 9917 # path is not listed in the libpath. Setting hardcode_minus_L 9918 # to unsupported forces relinking 9919 hardcode_minus_L_CXX=yes 9920 hardcode_libdir_flag_spec_CXX='-L$libdir' 9921 hardcode_libdir_separator_CXX= 9922 fi 9923 ;; 9924 esac 9925 shared_flag='-shared' 9926 if test "$aix_use_runtimelinking" = yes; then 9927 shared_flag="$shared_flag "'${wl}-G' 9928 fi 9929 else 9930 # not using gcc 9931 if test "$host_cpu" = ia64; then 9932 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9933 # chokes on -Wl,-G. The following line is correct: 9934 shared_flag='-G' 9935 else 9936 if test "$aix_use_runtimelinking" = yes; then 9937 shared_flag='${wl}-G' 9938 else 9939 shared_flag='${wl}-bM:SRE' 9940 fi 9941 fi 9942 fi 9943 9944 # It seems that -bexpall does not export symbols beginning with 9945 # underscore (_), so it is better to generate a list of symbols to export. 9946 always_export_symbols_CXX=yes 9947 if test "$aix_use_runtimelinking" = yes; then 9948 # Warning - without using the other runtime loading flags (-brtl), 9949 # -berok will link without error, but may produce a broken library. 9950 allow_undefined_flag_CXX='-berok' 9951 # Determine the default libpath from the value encoded in an empty executable. 9952 cat >conftest.$ac_ext <<_ACEOF 9953/* confdefs.h. */ 9954_ACEOF 9955cat confdefs.h >>conftest.$ac_ext 9956cat >>conftest.$ac_ext <<_ACEOF 9957/* end confdefs.h. */ 9958 9959int 9960main () 9961{ 9962 9963 ; 9964 return 0; 9965} 9966_ACEOF 9967rm -f conftest.$ac_objext conftest$ac_exeext 9968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9969 (eval $ac_link) 2>conftest.er1 9970 ac_status=$? 9971 grep -v '^ *+' conftest.er1 >conftest.err 9972 rm -f conftest.er1 9973 cat conftest.err >&5 9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9975 (exit $ac_status); } && 9976 { ac_try='test -z "$ac_cxx_werror_flag" 9977 || test ! -s conftest.err' 9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9979 (eval $ac_try) 2>&5 9980 ac_status=$? 9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9982 (exit $ac_status); }; } && 9983 { ac_try='test -s conftest$ac_exeext' 9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9985 (eval $ac_try) 2>&5 9986 ac_status=$? 9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9988 (exit $ac_status); }; }; then 9989 9990aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9991}'` 9992# Check for a 64-bit object if we didn't find anything. 9993if 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; } 9994}'`; fi 9995else 9996 echo "$as_me: failed program was:" >&5 9997sed 's/^/| /' conftest.$ac_ext >&5 9998 9999fi 10000rm -f conftest.err conftest.$ac_objext \ 10001 conftest$ac_exeext conftest.$ac_ext 10002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10003 10004 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10005 10006 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10007 else 10008 if test "$host_cpu" = ia64; then 10009 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10010 allow_undefined_flag_CXX="-z nodefs" 10011 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10012 else 10013 # Determine the default libpath from the value encoded in an empty executable. 10014 cat >conftest.$ac_ext <<_ACEOF 10015/* confdefs.h. */ 10016_ACEOF 10017cat confdefs.h >>conftest.$ac_ext 10018cat >>conftest.$ac_ext <<_ACEOF 10019/* end confdefs.h. */ 10020 10021int 10022main () 10023{ 10024 10025 ; 10026 return 0; 10027} 10028_ACEOF 10029rm -f conftest.$ac_objext conftest$ac_exeext 10030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10031 (eval $ac_link) 2>conftest.er1 10032 ac_status=$? 10033 grep -v '^ *+' conftest.er1 >conftest.err 10034 rm -f conftest.er1 10035 cat conftest.err >&5 10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10037 (exit $ac_status); } && 10038 { ac_try='test -z "$ac_cxx_werror_flag" 10039 || test ! -s conftest.err' 10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10041 (eval $ac_try) 2>&5 10042 ac_status=$? 10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10044 (exit $ac_status); }; } && 10045 { ac_try='test -s conftest$ac_exeext' 10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10047 (eval $ac_try) 2>&5 10048 ac_status=$? 10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10050 (exit $ac_status); }; }; then 10051 10052aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10053}'` 10054# Check for a 64-bit object if we didn't find anything. 10055if 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; } 10056}'`; fi 10057else 10058 echo "$as_me: failed program was:" >&5 10059sed 's/^/| /' conftest.$ac_ext >&5 10060 10061fi 10062rm -f conftest.err conftest.$ac_objext \ 10063 conftest$ac_exeext conftest.$ac_ext 10064if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10065 10066 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10067 # Warning - without using the other run time loading flags, 10068 # -berok will link without error, but may produce a broken library. 10069 no_undefined_flag_CXX=' ${wl}-bernotok' 10070 allow_undefined_flag_CXX=' ${wl}-berok' 10071 # Exported symbols can be pulled into shared objects from archives 10072 whole_archive_flag_spec_CXX='$convenience' 10073 archive_cmds_need_lc_CXX=yes 10074 # This is similar to how AIX traditionally builds its shared libraries. 10075 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10076 fi 10077 fi 10078 ;; 10079 10080 beos*) 10081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10082 allow_undefined_flag_CXX=unsupported 10083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10084 # support --undefined. This deserves some investigation. FIXME 10085 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10086 else 10087 ld_shlibs_CXX=no 10088 fi 10089 ;; 10090 10091 chorus*) 10092 case $cc_basename in 10093 *) 10094 # FIXME: insert proper C++ library support 10095 ld_shlibs_CXX=no 10096 ;; 10097 esac 10098 ;; 10099 10100 cygwin* | mingw* | pw32*) 10101 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10102 # as there is no search path for DLLs. 10103 hardcode_libdir_flag_spec_CXX='-L$libdir' 10104 allow_undefined_flag_CXX=unsupported 10105 always_export_symbols_CXX=no 10106 enable_shared_with_static_runtimes_CXX=yes 10107 10108 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10109 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10110 # If the export-symbols file already is a .def file (1st line 10111 # is EXPORTS), use it as is; otherwise, prepend... 10112 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10113 cp $export_symbols $output_objdir/$soname.def; 10114 else 10115 echo EXPORTS > $output_objdir/$soname.def; 10116 cat $export_symbols >> $output_objdir/$soname.def; 10117 fi~ 10118 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10119 else 10120 ld_shlibs_CXX=no 10121 fi 10122 ;; 10123 darwin* | rhapsody*) 10124 case $host_os in 10125 rhapsody* | darwin1.[012]) 10126 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10127 ;; 10128 *) # Darwin 1.3 on 10129 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10130 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10131 else 10132 case ${MACOSX_DEPLOYMENT_TARGET} in 10133 10.[012]) 10134 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10135 ;; 10136 10.*) 10137 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10138 ;; 10139 esac 10140 fi 10141 ;; 10142 esac 10143 archive_cmds_need_lc_CXX=no 10144 hardcode_direct_CXX=no 10145 hardcode_automatic_CXX=yes 10146 hardcode_shlibpath_var_CXX=unsupported 10147 whole_archive_flag_spec_CXX='' 10148 link_all_deplibs_CXX=yes 10149 10150 if test "$GXX" = yes ; then 10151 lt_int_apple_cc_single_mod=no 10152 output_verbose_link_cmd='echo' 10153 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10154 lt_int_apple_cc_single_mod=yes 10155 fi 10156 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10157 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10158 else 10159 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' 10160 fi 10161 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10162 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10163 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10164 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}' 10165 else 10166 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}' 10167 fi 10168 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}' 10169 else 10170 case $cc_basename in 10171 xlc*) 10172 output_verbose_link_cmd='echo' 10173 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' 10174 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10175 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10176 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}' 10177 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}' 10178 ;; 10179 *) 10180 ld_shlibs_CXX=no 10181 ;; 10182 esac 10183 fi 10184 ;; 10185 10186 dgux*) 10187 case $cc_basename in 10188 ec++*) 10189 # FIXME: insert proper C++ library support 10190 ld_shlibs_CXX=no 10191 ;; 10192 ghcx*) 10193 # Green Hills C++ Compiler 10194 # FIXME: insert proper C++ library support 10195 ld_shlibs_CXX=no 10196 ;; 10197 *) 10198 # FIXME: insert proper C++ library support 10199 ld_shlibs_CXX=no 10200 ;; 10201 esac 10202 ;; 10203 freebsd[12]*) 10204 # C++ shared libraries reported to be fairly broken before switch to ELF 10205 ld_shlibs_CXX=no 10206 ;; 10207 freebsd-elf*) 10208 archive_cmds_need_lc_CXX=no 10209 ;; 10210 freebsd* | kfreebsd*-gnu | dragonfly*) 10211 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10212 # conventions 10213 ld_shlibs_CXX=yes 10214 ;; 10215 gnu*) 10216 ;; 10217 hpux9*) 10218 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10219 hardcode_libdir_separator_CXX=: 10220 export_dynamic_flag_spec_CXX='${wl}-E' 10221 hardcode_direct_CXX=yes 10222 hardcode_minus_L_CXX=yes # Not in the search PATH, 10223 # but as the default 10224 # location of the library. 10225 10226 case $cc_basename in 10227 CC*) 10228 # FIXME: insert proper C++ library support 10229 ld_shlibs_CXX=no 10230 ;; 10231 aCC*) 10232 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' 10233 # Commands to make compiler produce verbose output that lists 10234 # what "hidden" libraries, object files and flags are used when 10235 # linking a shared library. 10236 # 10237 # There doesn't appear to be a way to prevent this compiler from 10238 # explicitly linking system object files so we need to strip them 10239 # from the output so that they don't get included in the library 10240 # dependencies. 10241 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' 10242 ;; 10243 *) 10244 if test "$GXX" = yes; then 10245 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' 10246 else 10247 # FIXME: insert proper C++ library support 10248 ld_shlibs_CXX=no 10249 fi 10250 ;; 10251 esac 10252 ;; 10253 hpux10*|hpux11*) 10254 if test $with_gnu_ld = no; then 10255 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10256 hardcode_libdir_separator_CXX=: 10257 10258 case $host_cpu in 10259 hppa*64*|ia64*) 10260 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10261 ;; 10262 *) 10263 export_dynamic_flag_spec_CXX='${wl}-E' 10264 ;; 10265 esac 10266 fi 10267 case $host_cpu in 10268 hppa*64*|ia64*) 10269 hardcode_direct_CXX=no 10270 hardcode_shlibpath_var_CXX=no 10271 ;; 10272 *) 10273 hardcode_direct_CXX=yes 10274 hardcode_minus_L_CXX=yes # Not in the search PATH, 10275 # but as the default 10276 # location of the library. 10277 ;; 10278 esac 10279 10280 case $cc_basename in 10281 CC*) 10282 # FIXME: insert proper C++ library support 10283 ld_shlibs_CXX=no 10284 ;; 10285 aCC*) 10286 case $host_cpu in 10287 hppa*64*) 10288 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10289 ;; 10290 ia64*) 10291 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10292 ;; 10293 *) 10294 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10295 ;; 10296 esac 10297 # Commands to make compiler produce verbose output that lists 10298 # what "hidden" libraries, object files and flags are used when 10299 # linking a shared library. 10300 # 10301 # There doesn't appear to be a way to prevent this compiler from 10302 # explicitly linking system object files so we need to strip them 10303 # from the output so that they don't get included in the library 10304 # dependencies. 10305 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' 10306 ;; 10307 *) 10308 if test "$GXX" = yes; then 10309 if test $with_gnu_ld = no; then 10310 case $host_cpu in 10311 hppa*64*) 10312 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10313 ;; 10314 ia64*) 10315 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10316 ;; 10317 *) 10318 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' 10319 ;; 10320 esac 10321 fi 10322 else 10323 # FIXME: insert proper C++ library support 10324 ld_shlibs_CXX=no 10325 fi 10326 ;; 10327 esac 10328 ;; 10329 interix3*) 10330 hardcode_direct_CXX=no 10331 hardcode_shlibpath_var_CXX=no 10332 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10333 export_dynamic_flag_spec_CXX='${wl}-E' 10334 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10335 # Instead, shared libraries are loaded at an image base (0x10000000 by 10336 # default) and relocated if they conflict, which is a slow very memory 10337 # consuming and fragmenting process. To avoid this, we pick a random, 10338 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10339 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10340 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10341 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10342 ;; 10343 irix5* | irix6*) 10344 case $cc_basename in 10345 CC*) 10346 # SGI C++ 10347 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' 10348 10349 # Archives containing C++ object files must be created using 10350 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10351 # necessary to make sure instantiated templates are included 10352 # in the archive. 10353 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10354 ;; 10355 *) 10356 if test "$GXX" = yes; then 10357 if test "$with_gnu_ld" = no; then 10358 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' 10359 else 10360 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' 10361 fi 10362 fi 10363 link_all_deplibs_CXX=yes 10364 ;; 10365 esac 10366 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10367 hardcode_libdir_separator_CXX=: 10368 ;; 10369 linux*) 10370 case $cc_basename in 10371 KCC*) 10372 # Kuck and Associates, Inc. (KAI) C++ Compiler 10373 10374 # KCC will only create a shared library if the output file 10375 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10376 # to its proper name (with version) after linking. 10377 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' 10378 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' 10379 # Commands to make compiler produce verbose output that lists 10380 # what "hidden" libraries, object files and flags are used when 10381 # linking a shared library. 10382 # 10383 # There doesn't appear to be a way to prevent this compiler from 10384 # explicitly linking system object files so we need to strip them 10385 # from the output so that they don't get included in the library 10386 # dependencies. 10387 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' 10388 10389 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10390 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10391 10392 # Archives containing C++ object files must be created using 10393 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10394 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10395 ;; 10396 icpc*) 10397 # Intel C++ 10398 with_gnu_ld=yes 10399 # version 8.0 and above of icpc choke on multiply defined symbols 10400 # if we add $predep_objects and $postdep_objects, however 7.1 and 10401 # earlier do not add the objects themselves. 10402 case `$CC -V 2>&1` in 10403 *"Version 7."*) 10404 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10405 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' 10406 ;; 10407 *) # Version 8.0 or newer 10408 tmp_idyn= 10409 case $host_cpu in 10410 ia64*) tmp_idyn=' -i_dynamic';; 10411 esac 10412 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10413 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' 10414 ;; 10415 esac 10416 archive_cmds_need_lc_CXX=no 10417 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10419 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10420 ;; 10421 pgCC*) 10422 # Portland Group C++ compiler 10423 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10424 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' 10425 10426 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10427 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10428 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' 10429 ;; 10430 cxx*) 10431 # Compaq C++ 10432 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10433 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' 10434 10435 runpath_var=LD_RUN_PATH 10436 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10437 hardcode_libdir_separator_CXX=: 10438 10439 # Commands to make compiler produce verbose output that lists 10440 # what "hidden" libraries, object files and flags are used when 10441 # linking a shared library. 10442 # 10443 # There doesn't appear to be a way to prevent this compiler from 10444 # explicitly linking system object files so we need to strip them 10445 # from the output so that they don't get included in the library 10446 # dependencies. 10447 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' 10448 ;; 10449 esac 10450 ;; 10451 lynxos*) 10452 # FIXME: insert proper C++ library support 10453 ld_shlibs_CXX=no 10454 ;; 10455 m88k*) 10456 # FIXME: insert proper C++ library support 10457 ld_shlibs_CXX=no 10458 ;; 10459 mvs*) 10460 case $cc_basename in 10461 cxx*) 10462 # FIXME: insert proper C++ library support 10463 ld_shlibs_CXX=no 10464 ;; 10465 *) 10466 # FIXME: insert proper C++ library support 10467 ld_shlibs_CXX=no 10468 ;; 10469 esac 10470 ;; 10471 netbsd*) 10472 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10473 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10474 wlarc= 10475 hardcode_libdir_flag_spec_CXX='-R$libdir' 10476 hardcode_direct_CXX=yes 10477 hardcode_shlibpath_var_CXX=no 10478 fi 10479 # Workaround some broken pre-1.5 toolchains 10480 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10481 ;; 10482 openbsd2*) 10483 # C++ shared libraries are fairly broken 10484 ld_shlibs_CXX=no 10485 ;; 10486 openbsd*) 10487 hardcode_direct_CXX=yes 10488 hardcode_shlibpath_var_CXX=no 10489 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10490 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10491 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10492 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10493 export_dynamic_flag_spec_CXX='${wl}-E' 10494 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10495 fi 10496 output_verbose_link_cmd='echo' 10497 ;; 10498 osf3*) 10499 case $cc_basename in 10500 KCC*) 10501 # Kuck and Associates, Inc. (KAI) C++ Compiler 10502 10503 # KCC will only create a shared library if the output file 10504 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10505 # to its proper name (with version) after linking. 10506 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' 10507 10508 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10509 hardcode_libdir_separator_CXX=: 10510 10511 # Archives containing C++ object files must be created using 10512 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10513 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10514 10515 ;; 10516 RCC*) 10517 # Rational C++ 2.4.1 10518 # FIXME: insert proper C++ library support 10519 ld_shlibs_CXX=no 10520 ;; 10521 cxx*) 10522 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10523 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' 10524 10525 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10526 hardcode_libdir_separator_CXX=: 10527 10528 # Commands to make compiler produce verbose output that lists 10529 # what "hidden" libraries, object files and flags are used when 10530 # linking a shared library. 10531 # 10532 # There doesn't appear to be a way to prevent this compiler from 10533 # explicitly linking system object files so we need to strip them 10534 # from the output so that they don't get included in the library 10535 # dependencies. 10536 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' 10537 ;; 10538 *) 10539 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10540 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10541 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' 10542 10543 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10544 hardcode_libdir_separator_CXX=: 10545 10546 # Commands to make compiler produce verbose output that lists 10547 # what "hidden" libraries, object files and flags are used when 10548 # linking a shared library. 10549 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10550 10551 else 10552 # FIXME: insert proper C++ library support 10553 ld_shlibs_CXX=no 10554 fi 10555 ;; 10556 esac 10557 ;; 10558 osf4* | osf5*) 10559 case $cc_basename in 10560 KCC*) 10561 # Kuck and Associates, Inc. (KAI) C++ Compiler 10562 10563 # KCC will only create a shared library if the output file 10564 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10565 # to its proper name (with version) after linking. 10566 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' 10567 10568 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10569 hardcode_libdir_separator_CXX=: 10570 10571 # Archives containing C++ object files must be created using 10572 # the KAI C++ compiler. 10573 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10574 ;; 10575 RCC*) 10576 # Rational C++ 2.4.1 10577 # FIXME: insert proper C++ library support 10578 ld_shlibs_CXX=no 10579 ;; 10580 cxx*) 10581 allow_undefined_flag_CXX=' -expect_unresolved \*' 10582 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' 10583 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10584 echo "-hidden">> $lib.exp~ 10585 $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~ 10586 $rm $lib.exp' 10587 10588 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10589 hardcode_libdir_separator_CXX=: 10590 10591 # Commands to make compiler produce verbose output that lists 10592 # what "hidden" libraries, object files and flags are used when 10593 # linking a shared library. 10594 # 10595 # There doesn't appear to be a way to prevent this compiler from 10596 # explicitly linking system object files so we need to strip them 10597 # from the output so that they don't get included in the library 10598 # dependencies. 10599 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' 10600 ;; 10601 *) 10602 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10603 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10604 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' 10605 10606 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10607 hardcode_libdir_separator_CXX=: 10608 10609 # Commands to make compiler produce verbose output that lists 10610 # what "hidden" libraries, object files and flags are used when 10611 # linking a shared library. 10612 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10613 10614 else 10615 # FIXME: insert proper C++ library support 10616 ld_shlibs_CXX=no 10617 fi 10618 ;; 10619 esac 10620 ;; 10621 psos*) 10622 # FIXME: insert proper C++ library support 10623 ld_shlibs_CXX=no 10624 ;; 10625 sunos4*) 10626 case $cc_basename in 10627 CC*) 10628 # Sun C++ 4.x 10629 # FIXME: insert proper C++ library support 10630 ld_shlibs_CXX=no 10631 ;; 10632 lcc*) 10633 # Lucid 10634 # FIXME: insert proper C++ library support 10635 ld_shlibs_CXX=no 10636 ;; 10637 *) 10638 # FIXME: insert proper C++ library support 10639 ld_shlibs_CXX=no 10640 ;; 10641 esac 10642 ;; 10643 solaris*) 10644 case $cc_basename in 10645 CC*) 10646 # Sun C++ 4.2, 5.x and Centerline C++ 10647 archive_cmds_need_lc_CXX=yes 10648 no_undefined_flag_CXX=' -zdefs' 10649 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10650 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10651 $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' 10652 10653 hardcode_libdir_flag_spec_CXX='-R$libdir' 10654 hardcode_shlibpath_var_CXX=no 10655 case $host_os in 10656 solaris2.[0-5] | solaris2.[0-5].*) ;; 10657 *) 10658 # The C++ compiler is used as linker so we must use $wl 10659 # flag to pass the commands to the underlying system 10660 # linker. We must also pass each convience library through 10661 # to the system linker between allextract/defaultextract. 10662 # The C++ compiler will combine linker options so we 10663 # cannot just pass the convience library names through 10664 # without $wl. 10665 # Supported since Solaris 2.6 (maybe 2.5.1?) 10666 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' 10667 ;; 10668 esac 10669 link_all_deplibs_CXX=yes 10670 10671 output_verbose_link_cmd='echo' 10672 10673 # Archives containing C++ object files must be created using 10674 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10675 # necessary to make sure instantiated templates are included 10676 # in the archive. 10677 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10678 ;; 10679 gcx*) 10680 # Green Hills C++ Compiler 10681 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10682 10683 # The C++ compiler must be used to create the archive. 10684 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10685 ;; 10686 *) 10687 # GNU C++ compiler with Solaris linker 10688 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10689 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10690 if $CC --version | grep -v '^2\.7' > /dev/null; then 10691 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10692 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10693 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10694 10695 # Commands to make compiler produce verbose output that lists 10696 # what "hidden" libraries, object files and flags are used when 10697 # linking a shared library. 10698 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10699 else 10700 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10701 # platform. 10702 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10703 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10704 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10705 10706 # Commands to make compiler produce verbose output that lists 10707 # what "hidden" libraries, object files and flags are used when 10708 # linking a shared library. 10709 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10710 fi 10711 10712 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10713 fi 10714 ;; 10715 esac 10716 ;; 10717 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10718 no_undefined_flag_CXX='${wl}-z,text' 10719 archive_cmds_need_lc_CXX=no 10720 hardcode_shlibpath_var_CXX=no 10721 runpath_var='LD_RUN_PATH' 10722 10723 case $cc_basename in 10724 CC*) 10725 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10726 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10727 ;; 10728 *) 10729 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10730 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10731 ;; 10732 esac 10733 ;; 10734 sysv5* | sco3.2v5* | sco5v6*) 10735 # Note: We can NOT use -z defs as we might desire, because we do not 10736 # link with -lc, and that would cause any symbols used from libc to 10737 # always be unresolved, which means just about no library would 10738 # ever link correctly. If we're not using GNU ld we use -z text 10739 # though, which does catch some bad symbols but isn't as heavy-handed 10740 # as -z defs. 10741 # For security reasons, it is highly recommended that you always 10742 # use absolute paths for naming shared libraries, and exclude the 10743 # DT_RUNPATH tag from executables and libraries. But doing so 10744 # requires that you compile everything twice, which is a pain. 10745 # So that behaviour is only enabled if SCOABSPATH is set to a 10746 # non-empty value in the environment. Most likely only useful for 10747 # creating official distributions of packages. 10748 # This is a hack until libtool officially supports absolute path 10749 # names for shared libraries. 10750 no_undefined_flag_CXX='${wl}-z,text' 10751 allow_undefined_flag_CXX='${wl}-z,nodefs' 10752 archive_cmds_need_lc_CXX=no 10753 hardcode_shlibpath_var_CXX=no 10754 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10755 hardcode_libdir_separator_CXX=':' 10756 link_all_deplibs_CXX=yes 10757 export_dynamic_flag_spec_CXX='${wl}-Bexport' 10758 runpath_var='LD_RUN_PATH' 10759 10760 case $cc_basename in 10761 CC*) 10762 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10763 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10764 ;; 10765 *) 10766 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10767 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10768 ;; 10769 esac 10770 ;; 10771 tandem*) 10772 case $cc_basename in 10773 NCC*) 10774 # NonStop-UX NCC 3.20 10775 # FIXME: insert proper C++ library support 10776 ld_shlibs_CXX=no 10777 ;; 10778 *) 10779 # FIXME: insert proper C++ library support 10780 ld_shlibs_CXX=no 10781 ;; 10782 esac 10783 ;; 10784 vxworks*) 10785 # FIXME: insert proper C++ library support 10786 ld_shlibs_CXX=no 10787 ;; 10788 *) 10789 # FIXME: insert proper C++ library support 10790 ld_shlibs_CXX=no 10791 ;; 10792esac 10793echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10794echo "${ECHO_T}$ld_shlibs_CXX" >&6 10795test "$ld_shlibs_CXX" = no && can_build_shared=no 10796 10797GCC_CXX="$GXX" 10798LD_CXX="$LD" 10799 10800 10801cat > conftest.$ac_ext <<EOF 10802class Foo 10803{ 10804public: 10805 Foo (void) { a = 0; } 10806private: 10807 int a; 10808}; 10809EOF 10810 10811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10812 (eval $ac_compile) 2>&5 10813 ac_status=$? 10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10815 (exit $ac_status); }; then 10816 # Parse the compiler output and extract the necessary 10817 # objects, libraries and library flags. 10818 10819 # Sentinel used to keep track of whether or not we are before 10820 # the conftest object file. 10821 pre_test_object_deps_done=no 10822 10823 # The `*' in the case matches for architectures that use `case' in 10824 # $output_verbose_cmd can trigger glob expansion during the loop 10825 # eval without this substitution. 10826 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 10827 10828 for p in `eval $output_verbose_link_cmd`; do 10829 case $p in 10830 10831 -L* | -R* | -l*) 10832 # Some compilers place space between "-{L,R}" and the path. 10833 # Remove the space. 10834 if test $p = "-L" \ 10835 || test $p = "-R"; then 10836 prev=$p 10837 continue 10838 else 10839 prev= 10840 fi 10841 10842 if test "$pre_test_object_deps_done" = no; then 10843 case $p in 10844 -L* | -R*) 10845 # Internal compiler library paths should come after those 10846 # provided the user. The postdeps already come after the 10847 # user supplied libs so there is no need to process them. 10848 if test -z "$compiler_lib_search_path_CXX"; then 10849 compiler_lib_search_path_CXX="${prev}${p}" 10850 else 10851 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10852 fi 10853 ;; 10854 # The "-l" case would never come before the object being 10855 # linked, so don't bother handling this case. 10856 esac 10857 else 10858 if test -z "$postdeps_CXX"; then 10859 postdeps_CXX="${prev}${p}" 10860 else 10861 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10862 fi 10863 fi 10864 ;; 10865 10866 *.$objext) 10867 # This assumes that the test object file only shows up 10868 # once in the compiler output. 10869 if test "$p" = "conftest.$objext"; then 10870 pre_test_object_deps_done=yes 10871 continue 10872 fi 10873 10874 if test "$pre_test_object_deps_done" = no; then 10875 if test -z "$predep_objects_CXX"; then 10876 predep_objects_CXX="$p" 10877 else 10878 predep_objects_CXX="$predep_objects_CXX $p" 10879 fi 10880 else 10881 if test -z "$postdep_objects_CXX"; then 10882 postdep_objects_CXX="$p" 10883 else 10884 postdep_objects_CXX="$postdep_objects_CXX $p" 10885 fi 10886 fi 10887 ;; 10888 10889 *) ;; # Ignore the rest. 10890 10891 esac 10892 done 10893 10894 # Clean up. 10895 rm -f a.out a.exe 10896else 10897 echo "libtool.m4: error: problem compiling CXX test program" 10898fi 10899 10900$rm -f confest.$objext 10901 10902# PORTME: override above test on systems where it is broken 10903case $host_os in 10904interix3*) 10905 # Interix 3.5 installs completely hosed .la files for C++, so rather than 10906 # hack all around it, let's just trust "g++" to DTRT. 10907 predep_objects_CXX= 10908 postdep_objects_CXX= 10909 postdeps_CXX= 10910 ;; 10911 10912solaris*) 10913 case $cc_basename in 10914 CC*) 10915 # Adding this requires a known-good setup of shared libraries for 10916 # Sun compiler versions before 5.6, else PIC objects from an old 10917 # archive will be linked into the output, leading to subtle bugs. 10918 postdeps_CXX='-lCstd -lCrun' 10919 ;; 10920 esac 10921 ;; 10922esac 10923 10924 10925case " $postdeps_CXX " in 10926*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10927esac 10928 10929lt_prog_compiler_wl_CXX= 10930lt_prog_compiler_pic_CXX= 10931lt_prog_compiler_static_CXX= 10932 10933echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10934echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10935 10936 # C++ specific cases for pic, static, wl, etc. 10937 if test "$GXX" = yes; then 10938 lt_prog_compiler_wl_CXX='-Wl,' 10939 lt_prog_compiler_static_CXX='-static' 10940 10941 case $host_os in 10942 aix*) 10943 # All AIX code is PIC. 10944 if test "$host_cpu" = ia64; then 10945 # AIX 5 now supports IA64 processor 10946 lt_prog_compiler_static_CXX='-Bstatic' 10947 fi 10948 ;; 10949 amigaos*) 10950 # FIXME: we need at least 68020 code to build shared libraries, but 10951 # adding the `-m68020' flag to GCC prevents building anything better, 10952 # like `-m68040'. 10953 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10954 ;; 10955 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10956 # PIC is the default for these OSes. 10957 ;; 10958 mingw* | os2* | pw32*) 10959 # This hack is so that the source file can tell whether it is being 10960 # built for inclusion in a dll (and should export symbols for example). 10961 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10962 ;; 10963 darwin* | rhapsody*) 10964 # PIC is the default on this platform 10965 # Common symbols not allowed in MH_DYLIB files 10966 lt_prog_compiler_pic_CXX='-fno-common' 10967 ;; 10968 *djgpp*) 10969 # DJGPP does not support shared libraries at all 10970 lt_prog_compiler_pic_CXX= 10971 ;; 10972 interix3*) 10973 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10974 # Instead, we relocate shared libraries at runtime. 10975 ;; 10976 sysv4*MP*) 10977 if test -d /usr/nec; then 10978 lt_prog_compiler_pic_CXX=-Kconform_pic 10979 fi 10980 ;; 10981 hpux*) 10982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10983 # not for PA HP-UX. 10984 case $host_cpu in 10985 hppa*64*|ia64*) 10986 ;; 10987 *) 10988 lt_prog_compiler_pic_CXX='-fPIC' 10989 ;; 10990 esac 10991 ;; 10992 *) 10993 lt_prog_compiler_pic_CXX='-fPIC' 10994 ;; 10995 esac 10996 else 10997 case $host_os in 10998 aix4* | aix5*) 10999 # All AIX code is PIC. 11000 if test "$host_cpu" = ia64; then 11001 # AIX 5 now supports IA64 processor 11002 lt_prog_compiler_static_CXX='-Bstatic' 11003 else 11004 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11005 fi 11006 ;; 11007 chorus*) 11008 case $cc_basename in 11009 cxch68*) 11010 # Green Hills C++ Compiler 11011 # _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" 11012 ;; 11013 esac 11014 ;; 11015 darwin*) 11016 # PIC is the default on this platform 11017 # Common symbols not allowed in MH_DYLIB files 11018 case $cc_basename in 11019 xlc*) 11020 lt_prog_compiler_pic_CXX='-qnocommon' 11021 lt_prog_compiler_wl_CXX='-Wl,' 11022 ;; 11023 esac 11024 ;; 11025 dgux*) 11026 case $cc_basename in 11027 ec++*) 11028 lt_prog_compiler_pic_CXX='-KPIC' 11029 ;; 11030 ghcx*) 11031 # Green Hills C++ Compiler 11032 lt_prog_compiler_pic_CXX='-pic' 11033 ;; 11034 *) 11035 ;; 11036 esac 11037 ;; 11038 freebsd* | kfreebsd*-gnu | dragonfly*) 11039 # FreeBSD uses GNU C++ 11040 ;; 11041 hpux9* | hpux10* | hpux11*) 11042 case $cc_basename in 11043 CC*) 11044 lt_prog_compiler_wl_CXX='-Wl,' 11045 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11046 if test "$host_cpu" != ia64; then 11047 lt_prog_compiler_pic_CXX='+Z' 11048 fi 11049 ;; 11050 aCC*) 11051 lt_prog_compiler_wl_CXX='-Wl,' 11052 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11053 case $host_cpu in 11054 hppa*64*|ia64*) 11055 # +Z the default 11056 ;; 11057 *) 11058 lt_prog_compiler_pic_CXX='+Z' 11059 ;; 11060 esac 11061 ;; 11062 *) 11063 ;; 11064 esac 11065 ;; 11066 interix*) 11067 # This is c89, which is MS Visual C++ (no shared libs) 11068 # Anyone wants to do a port? 11069 ;; 11070 irix5* | irix6* | nonstopux*) 11071 case $cc_basename in 11072 CC*) 11073 lt_prog_compiler_wl_CXX='-Wl,' 11074 lt_prog_compiler_static_CXX='-non_shared' 11075 # CC pic flag -KPIC is the default. 11076 ;; 11077 *) 11078 ;; 11079 esac 11080 ;; 11081 linux*) 11082 case $cc_basename in 11083 KCC*) 11084 # KAI C++ Compiler 11085 lt_prog_compiler_wl_CXX='--backend -Wl,' 11086 lt_prog_compiler_pic_CXX='-fPIC' 11087 ;; 11088 icpc* | ecpc*) 11089 # Intel C++ 11090 lt_prog_compiler_wl_CXX='-Wl,' 11091 lt_prog_compiler_pic_CXX='-KPIC' 11092 lt_prog_compiler_static_CXX='-static' 11093 ;; 11094 pgCC*) 11095 # Portland Group C++ compiler. 11096 lt_prog_compiler_wl_CXX='-Wl,' 11097 lt_prog_compiler_pic_CXX='-fpic' 11098 lt_prog_compiler_static_CXX='-Bstatic' 11099 ;; 11100 cxx*) 11101 # Compaq C++ 11102 # Make sure the PIC flag is empty. It appears that all Alpha 11103 # Linux and Compaq Tru64 Unix objects are PIC. 11104 lt_prog_compiler_pic_CXX= 11105 lt_prog_compiler_static_CXX='-non_shared' 11106 ;; 11107 *) 11108 ;; 11109 esac 11110 ;; 11111 lynxos*) 11112 ;; 11113 m88k*) 11114 ;; 11115 mvs*) 11116 case $cc_basename in 11117 cxx*) 11118 lt_prog_compiler_pic_CXX='-W c,exportall' 11119 ;; 11120 *) 11121 ;; 11122 esac 11123 ;; 11124 netbsd*) 11125 ;; 11126 osf3* | osf4* | osf5*) 11127 case $cc_basename in 11128 KCC*) 11129 lt_prog_compiler_wl_CXX='--backend -Wl,' 11130 ;; 11131 RCC*) 11132 # Rational C++ 2.4.1 11133 lt_prog_compiler_pic_CXX='-pic' 11134 ;; 11135 cxx*) 11136 # Digital/Compaq C++ 11137 lt_prog_compiler_wl_CXX='-Wl,' 11138 # Make sure the PIC flag is empty. It appears that all Alpha 11139 # Linux and Compaq Tru64 Unix objects are PIC. 11140 lt_prog_compiler_pic_CXX= 11141 lt_prog_compiler_static_CXX='-non_shared' 11142 ;; 11143 *) 11144 ;; 11145 esac 11146 ;; 11147 psos*) 11148 ;; 11149 solaris*) 11150 case $cc_basename in 11151 CC*) 11152 # Sun C++ 4.2, 5.x and Centerline C++ 11153 lt_prog_compiler_pic_CXX='-KPIC' 11154 lt_prog_compiler_static_CXX='-Bstatic' 11155 lt_prog_compiler_wl_CXX='-Qoption ld ' 11156 ;; 11157 gcx*) 11158 # Green Hills C++ Compiler 11159 lt_prog_compiler_pic_CXX='-PIC' 11160 ;; 11161 *) 11162 ;; 11163 esac 11164 ;; 11165 sunos4*) 11166 case $cc_basename in 11167 CC*) 11168 # Sun C++ 4.x 11169 lt_prog_compiler_pic_CXX='-pic' 11170 lt_prog_compiler_static_CXX='-Bstatic' 11171 ;; 11172 lcc*) 11173 # Lucid 11174 lt_prog_compiler_pic_CXX='-pic' 11175 ;; 11176 *) 11177 ;; 11178 esac 11179 ;; 11180 tandem*) 11181 case $cc_basename in 11182 NCC*) 11183 # NonStop-UX NCC 3.20 11184 lt_prog_compiler_pic_CXX='-KPIC' 11185 ;; 11186 *) 11187 ;; 11188 esac 11189 ;; 11190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11191 case $cc_basename in 11192 CC*) 11193 lt_prog_compiler_wl_CXX='-Wl,' 11194 lt_prog_compiler_pic_CXX='-KPIC' 11195 lt_prog_compiler_static_CXX='-Bstatic' 11196 ;; 11197 esac 11198 ;; 11199 vxworks*) 11200 ;; 11201 *) 11202 lt_prog_compiler_can_build_shared_CXX=no 11203 ;; 11204 esac 11205 fi 11206 11207echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11208echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11209 11210# 11211# Check to make sure the PIC flag actually works. 11212# 11213if test -n "$lt_prog_compiler_pic_CXX"; then 11214 11215echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11216echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11217if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11218 echo $ECHO_N "(cached) $ECHO_C" >&6 11219else 11220 lt_prog_compiler_pic_works_CXX=no 11221 ac_outfile=conftest.$ac_objext 11222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11223 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11224 # Insert the option either (1) after the last *FLAGS variable, or 11225 # (2) before a word containing "conftest.", or (3) at the end. 11226 # Note that $ac_compile itself does not contain backslashes and begins 11227 # with a dollar sign (not a hyphen), so the echo should work correctly. 11228 # The option is referenced via a variable to avoid confusing sed. 11229 lt_compile=`echo "$ac_compile" | $SED \ 11230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11232 -e 's:$: $lt_compiler_flag:'` 11233 (eval echo "\"\$as_me:11228: $lt_compile\"" >&5) 11234 (eval "$lt_compile" 2>conftest.err) 11235 ac_status=$? 11236 cat conftest.err >&5 11237 echo "$as_me:11232: \$? = $ac_status" >&5 11238 if (exit $ac_status) && test -s "$ac_outfile"; then 11239 # The compiler can only warn and ignore the option if not recognized 11240 # So say no if there are warnings other than the usual output. 11241 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11243 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11244 lt_prog_compiler_pic_works_CXX=yes 11245 fi 11246 fi 11247 $rm conftest* 11248 11249fi 11250echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11251echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11252 11253if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11254 case $lt_prog_compiler_pic_CXX in 11255 "" | " "*) ;; 11256 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11257 esac 11258else 11259 lt_prog_compiler_pic_CXX= 11260 lt_prog_compiler_can_build_shared_CXX=no 11261fi 11262 11263fi 11264case $host_os in 11265 # For platforms which do not support PIC, -DPIC is meaningless: 11266 *djgpp*) 11267 lt_prog_compiler_pic_CXX= 11268 ;; 11269 *) 11270 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11271 ;; 11272esac 11273 11274# 11275# Check to make sure the static flag actually works. 11276# 11277wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11278echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11279echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11280if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11281 echo $ECHO_N "(cached) $ECHO_C" >&6 11282else 11283 lt_prog_compiler_static_works_CXX=no 11284 save_LDFLAGS="$LDFLAGS" 11285 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11286 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11287 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11288 # The linker can only warn and ignore the option if not recognized 11289 # So say no if there are warnings 11290 if test -s conftest.err; then 11291 # Append any errors to the config.log. 11292 cat conftest.err 1>&5 11293 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11295 if diff conftest.exp conftest.er2 >/dev/null; then 11296 lt_prog_compiler_static_works_CXX=yes 11297 fi 11298 else 11299 lt_prog_compiler_static_works_CXX=yes 11300 fi 11301 fi 11302 $rm conftest* 11303 LDFLAGS="$save_LDFLAGS" 11304 11305fi 11306echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11307echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11308 11309if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11310 : 11311else 11312 lt_prog_compiler_static_CXX= 11313fi 11314 11315 11316echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11317echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11318if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11319 echo $ECHO_N "(cached) $ECHO_C" >&6 11320else 11321 lt_cv_prog_compiler_c_o_CXX=no 11322 $rm -r conftest 2>/dev/null 11323 mkdir conftest 11324 cd conftest 11325 mkdir out 11326 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11327 11328 lt_compiler_flag="-o out/conftest2.$ac_objext" 11329 # Insert the option either (1) after the last *FLAGS variable, or 11330 # (2) before a word containing "conftest.", or (3) at the end. 11331 # Note that $ac_compile itself does not contain backslashes and begins 11332 # with a dollar sign (not a hyphen), so the echo should work correctly. 11333 lt_compile=`echo "$ac_compile" | $SED \ 11334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11336 -e 's:$: $lt_compiler_flag:'` 11337 (eval echo "\"\$as_me:11332: $lt_compile\"" >&5) 11338 (eval "$lt_compile" 2>out/conftest.err) 11339 ac_status=$? 11340 cat out/conftest.err >&5 11341 echo "$as_me:11336: \$? = $ac_status" >&5 11342 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11343 then 11344 # The compiler can only warn and ignore the option if not recognized 11345 # So say no if there are warnings 11346 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11349 lt_cv_prog_compiler_c_o_CXX=yes 11350 fi 11351 fi 11352 chmod u+w . 2>&5 11353 $rm conftest* 11354 # SGI C++ compiler will create directory out/ii_files/ for 11355 # template instantiation 11356 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11357 $rm out/* && rmdir out 11358 cd .. 11359 rmdir conftest 11360 $rm conftest* 11361 11362fi 11363echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11364echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11365 11366 11367hard_links="nottested" 11368if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11369 # do not overwrite the value of need_locks provided by the user 11370 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11371echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11372 hard_links=yes 11373 $rm conftest* 11374 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11375 touch conftest.a 11376 ln conftest.a conftest.b 2>&5 || hard_links=no 11377 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11378 echo "$as_me:$LINENO: result: $hard_links" >&5 11379echo "${ECHO_T}$hard_links" >&6 11380 if test "$hard_links" = no; then 11381 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11382echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11383 need_locks=warn 11384 fi 11385else 11386 need_locks=no 11387fi 11388 11389echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11390echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11391 11392 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11393 case $host_os in 11394 aix4* | aix5*) 11395 # If we're using GNU nm, then we don't want the "-C" option. 11396 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11397 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11398 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' 11399 else 11400 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' 11401 fi 11402 ;; 11403 pw32*) 11404 export_symbols_cmds_CXX="$ltdll_cmds" 11405 ;; 11406 cygwin* | mingw*) 11407 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' 11408 ;; 11409 *) 11410 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11411 ;; 11412 esac 11413 11414echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11415echo "${ECHO_T}$ld_shlibs_CXX" >&6 11416test "$ld_shlibs_CXX" = no && can_build_shared=no 11417 11418# 11419# Do we need to explicitly link libc? 11420# 11421case "x$archive_cmds_need_lc_CXX" in 11422x|xyes) 11423 # Assume -lc should be added 11424 archive_cmds_need_lc_CXX=yes 11425 11426 if test "$enable_shared" = yes && test "$GCC" = yes; then 11427 case $archive_cmds_CXX in 11428 *'~'*) 11429 # FIXME: we may have to deal with multi-command sequences. 11430 ;; 11431 '$CC '*) 11432 # Test whether the compiler implicitly links with -lc since on some 11433 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11434 # to ld, don't add -lc before -lgcc. 11435 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11436echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11437 $rm conftest* 11438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11439 11440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11441 (eval $ac_compile) 2>&5 11442 ac_status=$? 11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11444 (exit $ac_status); } 2>conftest.err; then 11445 soname=conftest 11446 lib=conftest 11447 libobjs=conftest.$ac_objext 11448 deplibs= 11449 wl=$lt_prog_compiler_wl_CXX 11450 pic_flag=$lt_prog_compiler_pic_CXX 11451 compiler_flags=-v 11452 linker_flags=-v 11453 verstring= 11454 output_objdir=. 11455 libname=conftest 11456 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11457 allow_undefined_flag_CXX= 11458 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11459 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11460 ac_status=$? 11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11462 (exit $ac_status); } 11463 then 11464 archive_cmds_need_lc_CXX=no 11465 else 11466 archive_cmds_need_lc_CXX=yes 11467 fi 11468 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11469 else 11470 cat conftest.err 1>&5 11471 fi 11472 $rm conftest* 11473 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11474echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11475 ;; 11476 esac 11477 fi 11478 ;; 11479esac 11480 11481echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11482echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11483library_names_spec= 11484libname_spec='lib$name' 11485soname_spec= 11486shrext_cmds=".so" 11487postinstall_cmds= 11488postuninstall_cmds= 11489finish_cmds= 11490finish_eval= 11491shlibpath_var= 11492shlibpath_overrides_runpath=unknown 11493version_type=none 11494dynamic_linker="$host_os ld.so" 11495sys_lib_dlsearch_path_spec="/lib /usr/lib" 11496if test "$GCC" = yes; then 11497 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11498 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11499 # if the path contains ";" then we assume it to be the separator 11500 # otherwise default to the standard path separator (i.e. ":") - it is 11501 # assumed that no part of a normal pathname contains ";" but that should 11502 # okay in the real world where ";" in dirpaths is itself problematic. 11503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11504 else 11505 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11506 fi 11507else 11508 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11509fi 11510need_lib_prefix=unknown 11511hardcode_into_libs=no 11512 11513# when you set need_version to no, make sure it does not cause -set_version 11514# flags to be left without arguments 11515need_version=unknown 11516 11517case $host_os in 11518aix3*) 11519 version_type=linux 11520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11521 shlibpath_var=LIBPATH 11522 11523 # AIX 3 has no versioning support, so we append a major version to the name. 11524 soname_spec='${libname}${release}${shared_ext}$major' 11525 ;; 11526 11527aix4* | aix5*) 11528 version_type=linux 11529 need_lib_prefix=no 11530 need_version=no 11531 hardcode_into_libs=yes 11532 if test "$host_cpu" = ia64; then 11533 # AIX 5 supports IA64 11534 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11535 shlibpath_var=LD_LIBRARY_PATH 11536 else 11537 # With GCC up to 2.95.x, collect2 would create an import file 11538 # for dependence libraries. The import file would start with 11539 # the line `#! .'. This would cause the generated library to 11540 # depend on `.', always an invalid library. This was fixed in 11541 # development snapshots of GCC prior to 3.0. 11542 case $host_os in 11543 aix4 | aix4.[01] | aix4.[01].*) 11544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11545 echo ' yes ' 11546 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11547 : 11548 else 11549 can_build_shared=no 11550 fi 11551 ;; 11552 esac 11553 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11554 # soname into executable. Probably we can add versioning support to 11555 # collect2, so additional links can be useful in future. 11556 if test "$aix_use_runtimelinking" = yes; then 11557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11558 # instead of lib<name>.a to let people know that these are not 11559 # typical AIX shared libraries. 11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11561 else 11562 # We preserve .a as extension for shared libraries through AIX4.2 11563 # and later when we are not doing run time linking. 11564 library_names_spec='${libname}${release}.a $libname.a' 11565 soname_spec='${libname}${release}${shared_ext}$major' 11566 fi 11567 shlibpath_var=LIBPATH 11568 fi 11569 ;; 11570 11571amigaos*) 11572 library_names_spec='$libname.ixlibrary $libname.a' 11573 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11574 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' 11575 ;; 11576 11577beos*) 11578 library_names_spec='${libname}${shared_ext}' 11579 dynamic_linker="$host_os ld.so" 11580 shlibpath_var=LIBRARY_PATH 11581 ;; 11582 11583bsdi[45]*) 11584 version_type=linux 11585 need_version=no 11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11587 soname_spec='${libname}${release}${shared_ext}$major' 11588 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11589 shlibpath_var=LD_LIBRARY_PATH 11590 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11591 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11592 # the default ld.so.conf also contains /usr/contrib/lib and 11593 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11594 # libtool to hard-code these into programs 11595 ;; 11596 11597cygwin* | mingw* | pw32*) 11598 version_type=windows 11599 shrext_cmds=".dll" 11600 need_version=no 11601 need_lib_prefix=no 11602 11603 case $GCC,$host_os in 11604 yes,cygwin* | yes,mingw* | yes,pw32*) 11605 library_names_spec='$libname.dll.a' 11606 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11607 postinstall_cmds='base_file=`basename \${file}`~ 11608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11609 dldir=$destdir/`dirname \$dlpath`~ 11610 test -d \$dldir || mkdir -p \$dldir~ 11611 $install_prog $dir/$dlname \$dldir/$dlname~ 11612 chmod a+x \$dldir/$dlname' 11613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11614 dlpath=$dir/\$dldll~ 11615 $rm \$dlpath' 11616 shlibpath_overrides_runpath=yes 11617 11618 case $host_os in 11619 cygwin*) 11620 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11621 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11622 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11623 ;; 11624 mingw*) 11625 # MinGW DLLs use traditional 'lib' prefix 11626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11628 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11629 # It is most probably a Windows format PATH printed by 11630 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11631 # path with ; separators, and with drive letters. We can handle the 11632 # drive letters (cygwin fileutils understands them), so leave them, 11633 # especially as we might pass files found there to a mingw objdump, 11634 # which wouldn't understand a cygwinified path. Ahh. 11635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11636 else 11637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11638 fi 11639 ;; 11640 pw32*) 11641 # pw32 DLLs use 'pw' prefix rather than 'lib' 11642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11643 ;; 11644 esac 11645 ;; 11646 11647 linux*) 11648 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 11649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11650 supports_anon_versioning=no 11651 case `$LD -v 2>/dev/null` in 11652 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11653 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11654 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11655 *\ 2.11.*) ;; # other 2.11 versions 11656 *) supports_anon_versioning=yes ;; 11657 esac 11658 if test $supports_anon_versioning = yes; then 11659 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 11660cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11661$echo "local: *; };" >> $output_objdir/$libname.ver~ 11662 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11663 else 11664 $archive_expsym_cmds="$archive_cmds" 11665 fi 11666 else 11667 ld_shlibs=no 11668 fi 11669 ;; 11670 11671 *) 11672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11673 ;; 11674 esac 11675 dynamic_linker='Win32 ld.exe' 11676 # FIXME: first we should search . and the directory the executable is in 11677 shlibpath_var=PATH 11678 ;; 11679 11680darwin* | rhapsody*) 11681 dynamic_linker="$host_os dyld" 11682 version_type=darwin 11683 need_lib_prefix=no 11684 need_version=no 11685 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11686 soname_spec='${libname}${release}${major}$shared_ext' 11687 shlibpath_overrides_runpath=yes 11688 shlibpath_var=DYLD_LIBRARY_PATH 11689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11690 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11691 if test "$GCC" = yes; then 11692 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"` 11693 else 11694 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11695 fi 11696 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11697 ;; 11698 11699dgux*) 11700 version_type=linux 11701 need_lib_prefix=no 11702 need_version=no 11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11704 soname_spec='${libname}${release}${shared_ext}$major' 11705 shlibpath_var=LD_LIBRARY_PATH 11706 ;; 11707 11708freebsd1*) 11709 dynamic_linker=no 11710 ;; 11711 11712kfreebsd*-gnu) 11713 version_type=linux 11714 need_lib_prefix=no 11715 need_version=no 11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11717 soname_spec='${libname}${release}${shared_ext}$major' 11718 shlibpath_var=LD_LIBRARY_PATH 11719 shlibpath_overrides_runpath=no 11720 hardcode_into_libs=yes 11721 dynamic_linker='GNU ld.so' 11722 ;; 11723 11724freebsd* | dragonfly*) 11725 # DragonFly does not have aout. When/if they implement a new 11726 # versioning mechanism, adjust this. 11727 if test -x /usr/bin/objformat; then 11728 objformat=`/usr/bin/objformat` 11729 else 11730 case $host_os in 11731 freebsd[123]*) objformat=aout ;; 11732 *) objformat=elf ;; 11733 esac 11734 fi 11735 # Handle Gentoo/FreeBSD as it was Linux 11736 case $host_vendor in 11737 gentoo) 11738 version_type=linux ;; 11739 *) 11740 version_type=freebsd-$objformat ;; 11741 esac 11742 11743 case $version_type in 11744 freebsd-elf*) 11745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11746 need_version=no 11747 need_lib_prefix=no 11748 ;; 11749 freebsd-*) 11750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11751 need_version=yes 11752 ;; 11753 linux) 11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11755 soname_spec='${libname}${release}${shared_ext}$major' 11756 need_lib_prefix=no 11757 need_version=no 11758 ;; 11759 esac 11760 shlibpath_var=LD_LIBRARY_PATH 11761 case $host_os in 11762 freebsd2*) 11763 shlibpath_overrides_runpath=yes 11764 ;; 11765 freebsd3.[01]* | freebsdelf3.[01]*) 11766 shlibpath_overrides_runpath=yes 11767 hardcode_into_libs=yes 11768 ;; 11769 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11770 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11771 shlibpath_overrides_runpath=no 11772 hardcode_into_libs=yes 11773 ;; 11774 freebsd*) # from 4.6 on 11775 shlibpath_overrides_runpath=yes 11776 hardcode_into_libs=yes 11777 ;; 11778 esac 11779 ;; 11780 11781gnu*) 11782 version_type=linux 11783 need_lib_prefix=no 11784 need_version=no 11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11786 soname_spec='${libname}${release}${shared_ext}$major' 11787 shlibpath_var=LD_LIBRARY_PATH 11788 hardcode_into_libs=yes 11789 ;; 11790 11791hpux9* | hpux10* | hpux11*) 11792 # Give a soname corresponding to the major version so that dld.sl refuses to 11793 # link against other versions. 11794 version_type=sunos 11795 need_lib_prefix=no 11796 need_version=no 11797 case $host_cpu in 11798 ia64*) 11799 shrext_cmds='.so' 11800 hardcode_into_libs=yes 11801 dynamic_linker="$host_os dld.so" 11802 shlibpath_var=LD_LIBRARY_PATH 11803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 if test "X$HPUX_IA64_MODE" = X32; then 11807 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11808 else 11809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11810 fi 11811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11812 ;; 11813 hppa*64*) 11814 shrext_cmds='.sl' 11815 hardcode_into_libs=yes 11816 dynamic_linker="$host_os dld.sl" 11817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11820 soname_spec='${libname}${release}${shared_ext}$major' 11821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11823 ;; 11824 *) 11825 shrext_cmds='.sl' 11826 dynamic_linker="$host_os dld.sl" 11827 shlibpath_var=SHLIB_PATH 11828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11830 soname_spec='${libname}${release}${shared_ext}$major' 11831 ;; 11832 esac 11833 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11834 postinstall_cmds='chmod 555 $lib' 11835 ;; 11836 11837interix3*) 11838 version_type=linux 11839 need_lib_prefix=no 11840 need_version=no 11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11842 soname_spec='${libname}${release}${shared_ext}$major' 11843 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11844 shlibpath_var=LD_LIBRARY_PATH 11845 shlibpath_overrides_runpath=no 11846 hardcode_into_libs=yes 11847 ;; 11848 11849irix5* | irix6* | nonstopux*) 11850 case $host_os in 11851 nonstopux*) version_type=nonstopux ;; 11852 *) 11853 if test "$lt_cv_prog_gnu_ld" = yes; then 11854 version_type=linux 11855 else 11856 version_type=irix 11857 fi ;; 11858 esac 11859 need_lib_prefix=no 11860 need_version=no 11861 soname_spec='${libname}${release}${shared_ext}$major' 11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11863 case $host_os in 11864 irix5* | nonstopux*) 11865 libsuff= shlibsuff= 11866 ;; 11867 *) 11868 case $LD in # libtool.m4 will add one of these switches to LD 11869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11870 libsuff= shlibsuff= libmagic=32-bit;; 11871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11872 libsuff=32 shlibsuff=N32 libmagic=N32;; 11873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11874 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11875 *) libsuff= shlibsuff= libmagic=never-match;; 11876 esac 11877 ;; 11878 esac 11879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11880 shlibpath_overrides_runpath=no 11881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11883 hardcode_into_libs=yes 11884 ;; 11885 11886# No shared lib support for Linux oldld, aout, or coff. 11887linux*oldld* | linux*aout* | linux*coff*) 11888 dynamic_linker=no 11889 ;; 11890 11891# This must be Linux ELF. 11892linux*) 11893 version_type=linux 11894 need_lib_prefix=no 11895 need_version=no 11896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11897 soname_spec='${libname}${release}${shared_ext}$major' 11898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11899 shlibpath_var=LD_LIBRARY_PATH 11900 shlibpath_overrides_runpath=no 11901 # This implies no fast_install, which is unacceptable. 11902 # Some rework will be needed to allow for fast_install 11903 # before this can be enabled. 11904 hardcode_into_libs=yes 11905 11906 # Append ld.so.conf contents to the search path 11907 if test -f /etc/ld.so.conf; then 11908 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' ' '` 11909 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11910 fi 11911 11912 # We used to test for /lib/ld.so.1 and disable shared libraries on 11913 # powerpc, because MkLinux only supported shared libraries with the 11914 # GNU dynamic linker. Since this was broken with cross compilers, 11915 # most powerpc-linux boxes support dynamic linking these days and 11916 # people can always --disable-shared, the test was removed, and we 11917 # assume the GNU/Linux dynamic linker is in use. 11918 dynamic_linker='GNU/Linux ld.so' 11919 ;; 11920 11921knetbsd*-gnu) 11922 version_type=linux 11923 need_lib_prefix=no 11924 need_version=no 11925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11926 soname_spec='${libname}${release}${shared_ext}$major' 11927 shlibpath_var=LD_LIBRARY_PATH 11928 shlibpath_overrides_runpath=no 11929 hardcode_into_libs=yes 11930 dynamic_linker='GNU ld.so' 11931 ;; 11932 11933netbsd*) 11934 version_type=sunos 11935 need_lib_prefix=no 11936 need_version=no 11937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11940 dynamic_linker='NetBSD (a.out) ld.so' 11941 else 11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11943 soname_spec='${libname}${release}${shared_ext}$major' 11944 dynamic_linker='NetBSD ld.elf_so' 11945 fi 11946 shlibpath_var=LD_LIBRARY_PATH 11947 shlibpath_overrides_runpath=yes 11948 hardcode_into_libs=yes 11949 ;; 11950 11951newsos6) 11952 version_type=linux 11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11954 shlibpath_var=LD_LIBRARY_PATH 11955 shlibpath_overrides_runpath=yes 11956 ;; 11957 11958nto-qnx*) 11959 version_type=linux 11960 need_lib_prefix=no 11961 need_version=no 11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11963 soname_spec='${libname}${release}${shared_ext}$major' 11964 shlibpath_var=LD_LIBRARY_PATH 11965 shlibpath_overrides_runpath=yes 11966 ;; 11967 11968openbsd*) 11969 version_type=sunos 11970 sys_lib_dlsearch_path_spec="/usr/lib" 11971 need_lib_prefix=no 11972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11973 case $host_os in 11974 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11975 *) need_version=no ;; 11976 esac 11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11979 shlibpath_var=LD_LIBRARY_PATH 11980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11981 case $host_os in 11982 openbsd2.[89] | openbsd2.[89].*) 11983 shlibpath_overrides_runpath=no 11984 ;; 11985 *) 11986 shlibpath_overrides_runpath=yes 11987 ;; 11988 esac 11989 else 11990 shlibpath_overrides_runpath=yes 11991 fi 11992 ;; 11993 11994os2*) 11995 libname_spec='$name' 11996 shrext_cmds=".dll" 11997 need_lib_prefix=no 11998 library_names_spec='$libname${shared_ext} $libname.a' 11999 dynamic_linker='OS/2 ld.exe' 12000 shlibpath_var=LIBPATH 12001 ;; 12002 12003osf3* | osf4* | osf5*) 12004 version_type=osf 12005 need_lib_prefix=no 12006 need_version=no 12007 soname_spec='${libname}${release}${shared_ext}$major' 12008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12009 shlibpath_var=LD_LIBRARY_PATH 12010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12012 ;; 12013 12014solaris*) 12015 version_type=linux 12016 need_lib_prefix=no 12017 need_version=no 12018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12019 soname_spec='${libname}${release}${shared_ext}$major' 12020 shlibpath_var=LD_LIBRARY_PATH 12021 shlibpath_overrides_runpath=yes 12022 hardcode_into_libs=yes 12023 # ldd complains unless libraries are executable 12024 postinstall_cmds='chmod +x $lib' 12025 ;; 12026 12027sunos4*) 12028 version_type=sunos 12029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12030 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12031 shlibpath_var=LD_LIBRARY_PATH 12032 shlibpath_overrides_runpath=yes 12033 if test "$with_gnu_ld" = yes; then 12034 need_lib_prefix=no 12035 fi 12036 need_version=yes 12037 ;; 12038 12039sysv4 | sysv4.3*) 12040 version_type=linux 12041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12042 soname_spec='${libname}${release}${shared_ext}$major' 12043 shlibpath_var=LD_LIBRARY_PATH 12044 case $host_vendor in 12045 sni) 12046 shlibpath_overrides_runpath=no 12047 need_lib_prefix=no 12048 export_dynamic_flag_spec='${wl}-Blargedynsym' 12049 runpath_var=LD_RUN_PATH 12050 ;; 12051 siemens) 12052 need_lib_prefix=no 12053 ;; 12054 motorola) 12055 need_lib_prefix=no 12056 need_version=no 12057 shlibpath_overrides_runpath=no 12058 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12059 ;; 12060 esac 12061 ;; 12062 12063sysv4*MP*) 12064 if test -d /usr/nec ;then 12065 version_type=linux 12066 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12067 soname_spec='$libname${shared_ext}.$major' 12068 shlibpath_var=LD_LIBRARY_PATH 12069 fi 12070 ;; 12071 12072sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12073 version_type=freebsd-elf 12074 need_lib_prefix=no 12075 need_version=no 12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12077 soname_spec='${libname}${release}${shared_ext}$major' 12078 shlibpath_var=LD_LIBRARY_PATH 12079 hardcode_into_libs=yes 12080 if test "$with_gnu_ld" = yes; then 12081 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12082 shlibpath_overrides_runpath=no 12083 else 12084 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12085 shlibpath_overrides_runpath=yes 12086 case $host_os in 12087 sco3.2v5*) 12088 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12089 ;; 12090 esac 12091 fi 12092 sys_lib_dlsearch_path_spec='/usr/lib' 12093 ;; 12094 12095uts4*) 12096 version_type=linux 12097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12098 soname_spec='${libname}${release}${shared_ext}$major' 12099 shlibpath_var=LD_LIBRARY_PATH 12100 ;; 12101 12102*) 12103 dynamic_linker=no 12104 ;; 12105esac 12106echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12107echo "${ECHO_T}$dynamic_linker" >&6 12108test "$dynamic_linker" = no && can_build_shared=no 12109 12110variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12111if test "$GCC" = yes; then 12112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12113fi 12114 12115echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12116echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12117hardcode_action_CXX= 12118if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12119 test -n "$runpath_var_CXX" || \ 12120 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12121 12122 # We can hardcode non-existant directories. 12123 if test "$hardcode_direct_CXX" != no && 12124 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12125 # have to relink, otherwise we might link with an installed library 12126 # when we should be linking with a yet-to-be-installed one 12127 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12128 test "$hardcode_minus_L_CXX" != no; then 12129 # Linking always hardcodes the temporary library directory. 12130 hardcode_action_CXX=relink 12131 else 12132 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12133 hardcode_action_CXX=immediate 12134 fi 12135else 12136 # We cannot hardcode anything, or else we can only hardcode existing 12137 # directories. 12138 hardcode_action_CXX=unsupported 12139fi 12140echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12141echo "${ECHO_T}$hardcode_action_CXX" >&6 12142 12143if test "$hardcode_action_CXX" = relink; then 12144 # Fast installation is not supported 12145 enable_fast_install=no 12146elif test "$shlibpath_overrides_runpath" = yes || 12147 test "$enable_shared" = no; then 12148 # Fast installation is not necessary 12149 enable_fast_install=needless 12150fi 12151 12152 12153# The else clause should only fire when bootstrapping the 12154# libtool distribution, otherwise you forgot to ship ltmain.sh 12155# with your package, and you will get complaints that there are 12156# no rules to generate ltmain.sh. 12157if test -f "$ltmain"; then 12158 # See if we are running on zsh, and set the options which allow our commands through 12159 # without removal of \ escapes. 12160 if test -n "${ZSH_VERSION+set}" ; then 12161 setopt NO_GLOB_SUBST 12162 fi 12163 # Now quote all the things that may contain metacharacters while being 12164 # careful not to overquote the AC_SUBSTed values. We take copies of the 12165 # variables and quote the copies for generation of the libtool script. 12166 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12167 SED SHELL STRIP \ 12168 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12169 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12170 deplibs_check_method reload_flag reload_cmds need_locks \ 12171 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12172 lt_cv_sys_global_symbol_to_c_name_address \ 12173 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12174 old_postinstall_cmds old_postuninstall_cmds \ 12175 compiler_CXX \ 12176 CC_CXX \ 12177 LD_CXX \ 12178 lt_prog_compiler_wl_CXX \ 12179 lt_prog_compiler_pic_CXX \ 12180 lt_prog_compiler_static_CXX \ 12181 lt_prog_compiler_no_builtin_flag_CXX \ 12182 export_dynamic_flag_spec_CXX \ 12183 thread_safe_flag_spec_CXX \ 12184 whole_archive_flag_spec_CXX \ 12185 enable_shared_with_static_runtimes_CXX \ 12186 old_archive_cmds_CXX \ 12187 old_archive_from_new_cmds_CXX \ 12188 predep_objects_CXX \ 12189 postdep_objects_CXX \ 12190 predeps_CXX \ 12191 postdeps_CXX \ 12192 compiler_lib_search_path_CXX \ 12193 archive_cmds_CXX \ 12194 archive_expsym_cmds_CXX \ 12195 postinstall_cmds_CXX \ 12196 postuninstall_cmds_CXX \ 12197 old_archive_from_expsyms_cmds_CXX \ 12198 allow_undefined_flag_CXX \ 12199 no_undefined_flag_CXX \ 12200 export_symbols_cmds_CXX \ 12201 hardcode_libdir_flag_spec_CXX \ 12202 hardcode_libdir_flag_spec_ld_CXX \ 12203 hardcode_libdir_separator_CXX \ 12204 hardcode_automatic_CXX \ 12205 module_cmds_CXX \ 12206 module_expsym_cmds_CXX \ 12207 lt_cv_prog_compiler_c_o_CXX \ 12208 exclude_expsyms_CXX \ 12209 include_expsyms_CXX; do 12210 12211 case $var in 12212 old_archive_cmds_CXX | \ 12213 old_archive_from_new_cmds_CXX | \ 12214 archive_cmds_CXX | \ 12215 archive_expsym_cmds_CXX | \ 12216 module_cmds_CXX | \ 12217 module_expsym_cmds_CXX | \ 12218 old_archive_from_expsyms_cmds_CXX | \ 12219 export_symbols_cmds_CXX | \ 12220 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12221 postinstall_cmds | postuninstall_cmds | \ 12222 old_postinstall_cmds | old_postuninstall_cmds | \ 12223 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12224 # Double-quote double-evaled strings. 12225 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12226 ;; 12227 *) 12228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12229 ;; 12230 esac 12231 done 12232 12233 case $lt_echo in 12234 *'\$0 --fallback-echo"') 12235 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12236 ;; 12237 esac 12238 12239cfgfile="$ofile" 12240 12241 cat <<__EOF__ >> "$cfgfile" 12242# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12243 12244# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12245 12246# Shell to use when invoking shell scripts. 12247SHELL=$lt_SHELL 12248 12249# Whether or not to build shared libraries. 12250build_libtool_libs=$enable_shared 12251 12252# Whether or not to build static libraries. 12253build_old_libs=$enable_static 12254 12255# Whether or not to add -lc for building shared libraries. 12256build_libtool_need_lc=$archive_cmds_need_lc_CXX 12257 12258# Whether or not to disallow shared libs when runtime libs are static 12259allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12260 12261# Whether or not to optimize for fast installation. 12262fast_install=$enable_fast_install 12263 12264# The host system. 12265host_alias=$host_alias 12266host=$host 12267host_os=$host_os 12268 12269# The build system. 12270build_alias=$build_alias 12271build=$build 12272build_os=$build_os 12273 12274# An echo program that does not interpret backslashes. 12275echo=$lt_echo 12276 12277# The archiver. 12278AR=$lt_AR 12279AR_FLAGS=$lt_AR_FLAGS 12280 12281# A C compiler. 12282LTCC=$lt_LTCC 12283 12284# LTCC compiler flags. 12285LTCFLAGS=$lt_LTCFLAGS 12286 12287# A language-specific compiler. 12288CC=$lt_compiler_CXX 12289 12290# Is the compiler the GNU C compiler? 12291with_gcc=$GCC_CXX 12292 12293# An ERE matcher. 12294EGREP=$lt_EGREP 12295 12296# The linker used to build libraries. 12297LD=$lt_LD_CXX 12298 12299# Whether we need hard or soft links. 12300LN_S=$lt_LN_S 12301 12302# A BSD-compatible nm program. 12303NM=$lt_NM 12304 12305# A symbol stripping program 12306STRIP=$lt_STRIP 12307 12308# Used to examine libraries when file_magic_cmd begins "file" 12309MAGIC_CMD=$MAGIC_CMD 12310 12311# Used on cygwin: DLL creation program. 12312DLLTOOL="$DLLTOOL" 12313 12314# Used on cygwin: object dumper. 12315OBJDUMP="$OBJDUMP" 12316 12317# Used on cygwin: assembler. 12318AS="$AS" 12319 12320# The name of the directory that contains temporary libtool files. 12321objdir=$objdir 12322 12323# How to create reloadable object files. 12324reload_flag=$lt_reload_flag 12325reload_cmds=$lt_reload_cmds 12326 12327# How to pass a linker flag through the compiler. 12328wl=$lt_lt_prog_compiler_wl_CXX 12329 12330# Object file suffix (normally "o"). 12331objext="$ac_objext" 12332 12333# Old archive suffix (normally "a"). 12334libext="$libext" 12335 12336# Shared library suffix (normally ".so"). 12337shrext_cmds='$shrext_cmds' 12338 12339# Executable file suffix (normally ""). 12340exeext="$exeext" 12341 12342# Additional compiler flags for building library objects. 12343pic_flag=$lt_lt_prog_compiler_pic_CXX 12344pic_mode=$pic_mode 12345 12346# What is the maximum length of a command? 12347max_cmd_len=$lt_cv_sys_max_cmd_len 12348 12349# Does compiler simultaneously support -c and -o options? 12350compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12351 12352# Must we lock files when doing compilation? 12353need_locks=$lt_need_locks 12354 12355# Do we need the lib prefix for modules? 12356need_lib_prefix=$need_lib_prefix 12357 12358# Do we need a version for libraries? 12359need_version=$need_version 12360 12361# Whether dlopen is supported. 12362dlopen_support=$enable_dlopen 12363 12364# Whether dlopen of programs is supported. 12365dlopen_self=$enable_dlopen_self 12366 12367# Whether dlopen of statically linked programs is supported. 12368dlopen_self_static=$enable_dlopen_self_static 12369 12370# Compiler flag to prevent dynamic linking. 12371link_static_flag=$lt_lt_prog_compiler_static_CXX 12372 12373# Compiler flag to turn off builtin functions. 12374no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12375 12376# Compiler flag to allow reflexive dlopens. 12377export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12378 12379# Compiler flag to generate shared objects directly from archives. 12380whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12381 12382# Compiler flag to generate thread-safe objects. 12383thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12384 12385# Library versioning type. 12386version_type=$version_type 12387 12388# Format of library name prefix. 12389libname_spec=$lt_libname_spec 12390 12391# List of archive names. First name is the real one, the rest are links. 12392# The last name is the one that the linker finds with -lNAME. 12393library_names_spec=$lt_library_names_spec 12394 12395# The coded name of the library, if different from the real name. 12396soname_spec=$lt_soname_spec 12397 12398# Commands used to build and install an old-style archive. 12399RANLIB=$lt_RANLIB 12400old_archive_cmds=$lt_old_archive_cmds_CXX 12401old_postinstall_cmds=$lt_old_postinstall_cmds 12402old_postuninstall_cmds=$lt_old_postuninstall_cmds 12403 12404# Create an old-style archive from a shared archive. 12405old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12406 12407# Create a temporary old-style archive to link instead of a shared archive. 12408old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12409 12410# Commands used to build and install a shared archive. 12411archive_cmds=$lt_archive_cmds_CXX 12412archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12413postinstall_cmds=$lt_postinstall_cmds 12414postuninstall_cmds=$lt_postuninstall_cmds 12415 12416# Commands used to build a loadable module (assumed same as above if empty) 12417module_cmds=$lt_module_cmds_CXX 12418module_expsym_cmds=$lt_module_expsym_cmds_CXX 12419 12420# Commands to strip libraries. 12421old_striplib=$lt_old_striplib 12422striplib=$lt_striplib 12423 12424# Dependencies to place before the objects being linked to create a 12425# shared library. 12426predep_objects=$lt_predep_objects_CXX 12427 12428# Dependencies to place after the objects being linked to create a 12429# shared library. 12430postdep_objects=$lt_postdep_objects_CXX 12431 12432# Dependencies to place before the objects being linked to create a 12433# shared library. 12434predeps=$lt_predeps_CXX 12435 12436# Dependencies to place after the objects being linked to create a 12437# shared library. 12438postdeps=$lt_postdeps_CXX 12439 12440# The library search path used internally by the compiler when linking 12441# a shared library. 12442compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12443 12444# Method to check whether dependent libraries are shared objects. 12445deplibs_check_method=$lt_deplibs_check_method 12446 12447# Command to use when deplibs_check_method == file_magic. 12448file_magic_cmd=$lt_file_magic_cmd 12449 12450# Flag that allows shared libraries with undefined symbols to be built. 12451allow_undefined_flag=$lt_allow_undefined_flag_CXX 12452 12453# Flag that forces no undefined symbols. 12454no_undefined_flag=$lt_no_undefined_flag_CXX 12455 12456# Commands used to finish a libtool library installation in a directory. 12457finish_cmds=$lt_finish_cmds 12458 12459# Same as above, but a single script fragment to be evaled but not shown. 12460finish_eval=$lt_finish_eval 12461 12462# Take the output of nm and produce a listing of raw symbols and C names. 12463global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12464 12465# Transform the output of nm in a proper C declaration 12466global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12467 12468# Transform the output of nm in a C name address pair 12469global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12470 12471# This is the shared library runtime path variable. 12472runpath_var=$runpath_var 12473 12474# This is the shared library path variable. 12475shlibpath_var=$shlibpath_var 12476 12477# Is shlibpath searched before the hard-coded library search path? 12478shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12479 12480# How to hardcode a shared library path into an executable. 12481hardcode_action=$hardcode_action_CXX 12482 12483# Whether we should hardcode library paths into libraries. 12484hardcode_into_libs=$hardcode_into_libs 12485 12486# Flag to hardcode \$libdir into a binary during linking. 12487# This must work even if \$libdir does not exist. 12488hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12489 12490# If ld is used when linking, flag to hardcode \$libdir into 12491# a binary during linking. This must work even if \$libdir does 12492# not exist. 12493hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12494 12495# Whether we need a single -rpath flag with a separated argument. 12496hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12497 12498# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12499# resulting binary. 12500hardcode_direct=$hardcode_direct_CXX 12501 12502# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12503# resulting binary. 12504hardcode_minus_L=$hardcode_minus_L_CXX 12505 12506# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12507# the resulting binary. 12508hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12509 12510# Set to yes if building a shared library automatically hardcodes DIR into the library 12511# and all subsequent libraries and executables linked against it. 12512hardcode_automatic=$hardcode_automatic_CXX 12513 12514# Variables whose values should be saved in libtool wrapper scripts and 12515# restored at relink time. 12516variables_saved_for_relink="$variables_saved_for_relink" 12517 12518# Whether libtool must link a program against all its dependency libraries. 12519link_all_deplibs=$link_all_deplibs_CXX 12520 12521# Compile-time system search path for libraries 12522sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12523 12524# Run-time system search path for libraries 12525sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12526 12527# Fix the shell variable \$srcfile for the compiler. 12528fix_srcfile_path="$fix_srcfile_path_CXX" 12529 12530# Set to yes if exported symbols are required. 12531always_export_symbols=$always_export_symbols_CXX 12532 12533# The commands to list exported symbols. 12534export_symbols_cmds=$lt_export_symbols_cmds_CXX 12535 12536# The commands to extract the exported symbol list from a shared archive. 12537extract_expsyms_cmds=$lt_extract_expsyms_cmds 12538 12539# Symbols that should not be listed in the preloaded symbols. 12540exclude_expsyms=$lt_exclude_expsyms_CXX 12541 12542# Symbols that must always be exported. 12543include_expsyms=$lt_include_expsyms_CXX 12544 12545# ### END LIBTOOL TAG CONFIG: $tagname 12546 12547__EOF__ 12548 12549 12550else 12551 # If there is no Makefile yet, we rely on a make rule to execute 12552 # `config.status --recheck' to rerun these tests and create the 12553 # libtool script then. 12554 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12555 if test -f "$ltmain_in"; then 12556 test -f Makefile && make "$ltmain" 12557 fi 12558fi 12559 12560 12561ac_ext=c 12562ac_cpp='$CPP $CPPFLAGS' 12563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12565ac_compiler_gnu=$ac_cv_c_compiler_gnu 12566 12567CC=$lt_save_CC 12568LDCXX=$LD 12569LD=$lt_save_LD 12570GCC=$lt_save_GCC 12571with_gnu_ldcxx=$with_gnu_ld 12572with_gnu_ld=$lt_save_with_gnu_ld 12573lt_cv_path_LDCXX=$lt_cv_path_LD 12574lt_cv_path_LD=$lt_save_path_LD 12575lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12576lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12577 12578 else 12579 tagname="" 12580 fi 12581 ;; 12582 12583 F77) 12584 if test -n "$F77" && test "X$F77" != "Xno"; then 12585 12586ac_ext=f 12587ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12588ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12589ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12590 12591 12592archive_cmds_need_lc_F77=no 12593allow_undefined_flag_F77= 12594always_export_symbols_F77=no 12595archive_expsym_cmds_F77= 12596export_dynamic_flag_spec_F77= 12597hardcode_direct_F77=no 12598hardcode_libdir_flag_spec_F77= 12599hardcode_libdir_flag_spec_ld_F77= 12600hardcode_libdir_separator_F77= 12601hardcode_minus_L_F77=no 12602hardcode_automatic_F77=no 12603module_cmds_F77= 12604module_expsym_cmds_F77= 12605link_all_deplibs_F77=unknown 12606old_archive_cmds_F77=$old_archive_cmds 12607no_undefined_flag_F77= 12608whole_archive_flag_spec_F77= 12609enable_shared_with_static_runtimes_F77=no 12610 12611# Source file extension for f77 test sources. 12612ac_ext=f 12613 12614# Object file extension for compiled f77 test sources. 12615objext=o 12616objext_F77=$objext 12617 12618# Code to be used in simple compile tests 12619lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12620 12621# Code to be used in simple link tests 12622lt_simple_link_test_code=" program t\n end\n" 12623 12624# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12625 12626# If no C compiler was specified, use CC. 12627LTCC=${LTCC-"$CC"} 12628 12629# If no C compiler flags were specified, use CFLAGS. 12630LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12631 12632# Allow CC to be a program name with arguments. 12633compiler=$CC 12634 12635 12636# save warnings/boilerplate of simple test code 12637ac_outfile=conftest.$ac_objext 12638printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12640_lt_compiler_boilerplate=`cat conftest.err` 12641$rm conftest* 12642 12643ac_outfile=conftest.$ac_objext 12644printf "$lt_simple_link_test_code" >conftest.$ac_ext 12645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12646_lt_linker_boilerplate=`cat conftest.err` 12647$rm conftest* 12648 12649 12650# Allow CC to be a program name with arguments. 12651lt_save_CC="$CC" 12652CC=${F77-"f77"} 12653compiler=$CC 12654compiler_F77=$CC 12655for cc_temp in $compiler""; do 12656 case $cc_temp in 12657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12659 \-*) ;; 12660 *) break;; 12661 esac 12662done 12663cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12664 12665 12666echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12667echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12668echo "$as_me:$LINENO: result: $can_build_shared" >&5 12669echo "${ECHO_T}$can_build_shared" >&6 12670 12671echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12672echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12673test "$can_build_shared" = "no" && enable_shared=no 12674 12675# On AIX, shared libraries and static libraries use the same namespace, and 12676# are all built from PIC. 12677case $host_os in 12678aix3*) 12679 test "$enable_shared" = yes && enable_static=no 12680 if test -n "$RANLIB"; then 12681 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12682 postinstall_cmds='$RANLIB $lib' 12683 fi 12684 ;; 12685aix4* | aix5*) 12686 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12687 test "$enable_shared" = yes && enable_static=no 12688 fi 12689 ;; 12690esac 12691echo "$as_me:$LINENO: result: $enable_shared" >&5 12692echo "${ECHO_T}$enable_shared" >&6 12693 12694echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12695echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12696# Make sure either enable_shared or enable_static is yes. 12697test "$enable_shared" = yes || enable_static=yes 12698echo "$as_me:$LINENO: result: $enable_static" >&5 12699echo "${ECHO_T}$enable_static" >&6 12700 12701GCC_F77="$G77" 12702LD_F77="$LD" 12703 12704lt_prog_compiler_wl_F77= 12705lt_prog_compiler_pic_F77= 12706lt_prog_compiler_static_F77= 12707 12708echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12709echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12710 12711 if test "$GCC" = yes; then 12712 lt_prog_compiler_wl_F77='-Wl,' 12713 lt_prog_compiler_static_F77='-static' 12714 12715 case $host_os in 12716 aix*) 12717 # All AIX code is PIC. 12718 if test "$host_cpu" = ia64; then 12719 # AIX 5 now supports IA64 processor 12720 lt_prog_compiler_static_F77='-Bstatic' 12721 fi 12722 ;; 12723 12724 amigaos*) 12725 # FIXME: we need at least 68020 code to build shared libraries, but 12726 # adding the `-m68020' flag to GCC prevents building anything better, 12727 # like `-m68040'. 12728 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12729 ;; 12730 12731 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12732 # PIC is the default for these OSes. 12733 ;; 12734 12735 mingw* | pw32* | os2*) 12736 # This hack is so that the source file can tell whether it is being 12737 # built for inclusion in a dll (and should export symbols for example). 12738 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12739 ;; 12740 12741 darwin* | rhapsody*) 12742 # PIC is the default on this platform 12743 # Common symbols not allowed in MH_DYLIB files 12744 lt_prog_compiler_pic_F77='-fno-common' 12745 ;; 12746 12747 interix3*) 12748 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12749 # Instead, we relocate shared libraries at runtime. 12750 ;; 12751 12752 msdosdjgpp*) 12753 # Just because we use GCC doesn't mean we suddenly get shared libraries 12754 # on systems that don't support them. 12755 lt_prog_compiler_can_build_shared_F77=no 12756 enable_shared=no 12757 ;; 12758 12759 sysv4*MP*) 12760 if test -d /usr/nec; then 12761 lt_prog_compiler_pic_F77=-Kconform_pic 12762 fi 12763 ;; 12764 12765 hpux*) 12766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12767 # not for PA HP-UX. 12768 case $host_cpu in 12769 hppa*64*|ia64*) 12770 # +Z the default 12771 ;; 12772 *) 12773 lt_prog_compiler_pic_F77='-fPIC' 12774 ;; 12775 esac 12776 ;; 12777 12778 *) 12779 lt_prog_compiler_pic_F77='-fPIC' 12780 ;; 12781 esac 12782 else 12783 # PORTME Check for flag to pass linker flags through the system compiler. 12784 case $host_os in 12785 aix*) 12786 lt_prog_compiler_wl_F77='-Wl,' 12787 if test "$host_cpu" = ia64; then 12788 # AIX 5 now supports IA64 processor 12789 lt_prog_compiler_static_F77='-Bstatic' 12790 else 12791 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12792 fi 12793 ;; 12794 darwin*) 12795 # PIC is the default on this platform 12796 # Common symbols not allowed in MH_DYLIB files 12797 case $cc_basename in 12798 xlc*) 12799 lt_prog_compiler_pic_F77='-qnocommon' 12800 lt_prog_compiler_wl_F77='-Wl,' 12801 ;; 12802 esac 12803 ;; 12804 12805 mingw* | pw32* | os2*) 12806 # This hack is so that the source file can tell whether it is being 12807 # built for inclusion in a dll (and should export symbols for example). 12808 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12809 ;; 12810 12811 hpux9* | hpux10* | hpux11*) 12812 lt_prog_compiler_wl_F77='-Wl,' 12813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12814 # not for PA HP-UX. 12815 case $host_cpu in 12816 hppa*64*|ia64*) 12817 # +Z the default 12818 ;; 12819 *) 12820 lt_prog_compiler_pic_F77='+Z' 12821 ;; 12822 esac 12823 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12824 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 12825 ;; 12826 12827 irix5* | irix6* | nonstopux*) 12828 lt_prog_compiler_wl_F77='-Wl,' 12829 # PIC (with -KPIC) is the default. 12830 lt_prog_compiler_static_F77='-non_shared' 12831 ;; 12832 12833 newsos6) 12834 lt_prog_compiler_pic_F77='-KPIC' 12835 lt_prog_compiler_static_F77='-Bstatic' 12836 ;; 12837 12838 linux*) 12839 case $cc_basename in 12840 icc* | ecc*) 12841 lt_prog_compiler_wl_F77='-Wl,' 12842 lt_prog_compiler_pic_F77='-KPIC' 12843 lt_prog_compiler_static_F77='-static' 12844 ;; 12845 pgcc* | pgf77* | pgf90* | pgf95*) 12846 # Portland Group compilers (*not* the Pentium gcc compiler, 12847 # which looks to be a dead project) 12848 lt_prog_compiler_wl_F77='-Wl,' 12849 lt_prog_compiler_pic_F77='-fpic' 12850 lt_prog_compiler_static_F77='-Bstatic' 12851 ;; 12852 ccc*) 12853 lt_prog_compiler_wl_F77='-Wl,' 12854 # All Alpha code is PIC. 12855 lt_prog_compiler_static_F77='-non_shared' 12856 ;; 12857 esac 12858 ;; 12859 12860 osf3* | osf4* | osf5*) 12861 lt_prog_compiler_wl_F77='-Wl,' 12862 # All OSF/1 code is PIC. 12863 lt_prog_compiler_static_F77='-non_shared' 12864 ;; 12865 12866 solaris*) 12867 lt_prog_compiler_pic_F77='-KPIC' 12868 lt_prog_compiler_static_F77='-Bstatic' 12869 case $cc_basename in 12870 f77* | f90* | f95*) 12871 lt_prog_compiler_wl_F77='-Qoption ld ';; 12872 *) 12873 lt_prog_compiler_wl_F77='-Wl,';; 12874 esac 12875 ;; 12876 12877 sunos4*) 12878 lt_prog_compiler_wl_F77='-Qoption ld ' 12879 lt_prog_compiler_pic_F77='-PIC' 12880 lt_prog_compiler_static_F77='-Bstatic' 12881 ;; 12882 12883 sysv4 | sysv4.2uw2* | sysv4.3*) 12884 lt_prog_compiler_wl_F77='-Wl,' 12885 lt_prog_compiler_pic_F77='-KPIC' 12886 lt_prog_compiler_static_F77='-Bstatic' 12887 ;; 12888 12889 sysv4*MP*) 12890 if test -d /usr/nec ;then 12891 lt_prog_compiler_pic_F77='-Kconform_pic' 12892 lt_prog_compiler_static_F77='-Bstatic' 12893 fi 12894 ;; 12895 12896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12897 lt_prog_compiler_wl_F77='-Wl,' 12898 lt_prog_compiler_pic_F77='-KPIC' 12899 lt_prog_compiler_static_F77='-Bstatic' 12900 ;; 12901 12902 unicos*) 12903 lt_prog_compiler_wl_F77='-Wl,' 12904 lt_prog_compiler_can_build_shared_F77=no 12905 ;; 12906 12907 uts4*) 12908 lt_prog_compiler_pic_F77='-pic' 12909 lt_prog_compiler_static_F77='-Bstatic' 12910 ;; 12911 12912 *) 12913 lt_prog_compiler_can_build_shared_F77=no 12914 ;; 12915 esac 12916 fi 12917 12918echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 12919echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 12920 12921# 12922# Check to make sure the PIC flag actually works. 12923# 12924if test -n "$lt_prog_compiler_pic_F77"; then 12925 12926echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12927echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 12928if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 12929 echo $ECHO_N "(cached) $ECHO_C" >&6 12930else 12931 lt_prog_compiler_pic_works_F77=no 12932 ac_outfile=conftest.$ac_objext 12933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12934 lt_compiler_flag="$lt_prog_compiler_pic_F77" 12935 # Insert the option either (1) after the last *FLAGS variable, or 12936 # (2) before a word containing "conftest.", or (3) at the end. 12937 # Note that $ac_compile itself does not contain backslashes and begins 12938 # with a dollar sign (not a hyphen), so the echo should work correctly. 12939 # The option is referenced via a variable to avoid confusing sed. 12940 lt_compile=`echo "$ac_compile" | $SED \ 12941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12943 -e 's:$: $lt_compiler_flag:'` 12944 (eval echo "\"\$as_me:12939: $lt_compile\"" >&5) 12945 (eval "$lt_compile" 2>conftest.err) 12946 ac_status=$? 12947 cat conftest.err >&5 12948 echo "$as_me:12943: \$? = $ac_status" >&5 12949 if (exit $ac_status) && test -s "$ac_outfile"; then 12950 # The compiler can only warn and ignore the option if not recognized 12951 # So say no if there are warnings other than the usual output. 12952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12955 lt_prog_compiler_pic_works_F77=yes 12956 fi 12957 fi 12958 $rm conftest* 12959 12960fi 12961echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 12962echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 12963 12964if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 12965 case $lt_prog_compiler_pic_F77 in 12966 "" | " "*) ;; 12967 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12968 esac 12969else 12970 lt_prog_compiler_pic_F77= 12971 lt_prog_compiler_can_build_shared_F77=no 12972fi 12973 12974fi 12975case $host_os in 12976 # For platforms which do not support PIC, -DPIC is meaningless: 12977 *djgpp*) 12978 lt_prog_compiler_pic_F77= 12979 ;; 12980 *) 12981 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12982 ;; 12983esac 12984 12985# 12986# Check to make sure the static flag actually works. 12987# 12988wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 12989echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12990echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 12991if test "${lt_prog_compiler_static_works_F77+set}" = set; then 12992 echo $ECHO_N "(cached) $ECHO_C" >&6 12993else 12994 lt_prog_compiler_static_works_F77=no 12995 save_LDFLAGS="$LDFLAGS" 12996 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12997 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12998 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12999 # The linker can only warn and ignore the option if not recognized 13000 # So say no if there are warnings 13001 if test -s conftest.err; then 13002 # Append any errors to the config.log. 13003 cat conftest.err 1>&5 13004 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13006 if diff conftest.exp conftest.er2 >/dev/null; then 13007 lt_prog_compiler_static_works_F77=yes 13008 fi 13009 else 13010 lt_prog_compiler_static_works_F77=yes 13011 fi 13012 fi 13013 $rm conftest* 13014 LDFLAGS="$save_LDFLAGS" 13015 13016fi 13017echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13018echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13019 13020if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13021 : 13022else 13023 lt_prog_compiler_static_F77= 13024fi 13025 13026 13027echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13028echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13029if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13030 echo $ECHO_N "(cached) $ECHO_C" >&6 13031else 13032 lt_cv_prog_compiler_c_o_F77=no 13033 $rm -r conftest 2>/dev/null 13034 mkdir conftest 13035 cd conftest 13036 mkdir out 13037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13038 13039 lt_compiler_flag="-o out/conftest2.$ac_objext" 13040 # Insert the option either (1) after the last *FLAGS variable, or 13041 # (2) before a word containing "conftest.", or (3) at the end. 13042 # Note that $ac_compile itself does not contain backslashes and begins 13043 # with a dollar sign (not a hyphen), so the echo should work correctly. 13044 lt_compile=`echo "$ac_compile" | $SED \ 13045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13047 -e 's:$: $lt_compiler_flag:'` 13048 (eval echo "\"\$as_me:13043: $lt_compile\"" >&5) 13049 (eval "$lt_compile" 2>out/conftest.err) 13050 ac_status=$? 13051 cat out/conftest.err >&5 13052 echo "$as_me:13047: \$? = $ac_status" >&5 13053 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13054 then 13055 # The compiler can only warn and ignore the option if not recognized 13056 # So say no if there are warnings 13057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13060 lt_cv_prog_compiler_c_o_F77=yes 13061 fi 13062 fi 13063 chmod u+w . 2>&5 13064 $rm conftest* 13065 # SGI C++ compiler will create directory out/ii_files/ for 13066 # template instantiation 13067 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13068 $rm out/* && rmdir out 13069 cd .. 13070 rmdir conftest 13071 $rm conftest* 13072 13073fi 13074echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13075echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13076 13077 13078hard_links="nottested" 13079if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13080 # do not overwrite the value of need_locks provided by the user 13081 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13082echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13083 hard_links=yes 13084 $rm conftest* 13085 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13086 touch conftest.a 13087 ln conftest.a conftest.b 2>&5 || hard_links=no 13088 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13089 echo "$as_me:$LINENO: result: $hard_links" >&5 13090echo "${ECHO_T}$hard_links" >&6 13091 if test "$hard_links" = no; then 13092 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13093echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13094 need_locks=warn 13095 fi 13096else 13097 need_locks=no 13098fi 13099 13100echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13101echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13102 13103 runpath_var= 13104 allow_undefined_flag_F77= 13105 enable_shared_with_static_runtimes_F77=no 13106 archive_cmds_F77= 13107 archive_expsym_cmds_F77= 13108 old_archive_From_new_cmds_F77= 13109 old_archive_from_expsyms_cmds_F77= 13110 export_dynamic_flag_spec_F77= 13111 whole_archive_flag_spec_F77= 13112 thread_safe_flag_spec_F77= 13113 hardcode_libdir_flag_spec_F77= 13114 hardcode_libdir_flag_spec_ld_F77= 13115 hardcode_libdir_separator_F77= 13116 hardcode_direct_F77=no 13117 hardcode_minus_L_F77=no 13118 hardcode_shlibpath_var_F77=unsupported 13119 link_all_deplibs_F77=unknown 13120 hardcode_automatic_F77=no 13121 module_cmds_F77= 13122 module_expsym_cmds_F77= 13123 always_export_symbols_F77=no 13124 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13125 # include_expsyms should be a list of space-separated symbols to be *always* 13126 # included in the symbol list 13127 include_expsyms_F77= 13128 # exclude_expsyms can be an extended regexp of symbols to exclude 13129 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13131 # as well as any symbol that contains `d'. 13132 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13134 # platforms (ab)use it in PIC code, but their linkers get confused if 13135 # the symbol is explicitly referenced. Since portable code cannot 13136 # rely on this symbol name, it's probably fine to never include it in 13137 # preloaded symbol tables. 13138 extract_expsyms_cmds= 13139 # Just being paranoid about ensuring that cc_basename is set. 13140 for cc_temp in $compiler""; do 13141 case $cc_temp in 13142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13144 \-*) ;; 13145 *) break;; 13146 esac 13147done 13148cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13149 13150 case $host_os in 13151 cygwin* | mingw* | pw32*) 13152 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13153 # When not using gcc, we currently assume that we are using 13154 # Microsoft Visual C++. 13155 if test "$GCC" != yes; then 13156 with_gnu_ld=no 13157 fi 13158 ;; 13159 interix*) 13160 # we just hope/assume this is gcc and not c89 (= MSVC++) 13161 with_gnu_ld=yes 13162 ;; 13163 openbsd*) 13164 with_gnu_ld=no 13165 ;; 13166 esac 13167 13168 ld_shlibs_F77=yes 13169 if test "$with_gnu_ld" = yes; then 13170 # If archive_cmds runs LD, not CC, wlarc should be empty 13171 wlarc='${wl}' 13172 13173 # Set some defaults for GNU ld with shared library support. These 13174 # are reset later if shared libraries are not supported. Putting them 13175 # here allows them to be overridden if necessary. 13176 runpath_var=LD_RUN_PATH 13177 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13178 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13179 # ancient GNU ld didn't support --whole-archive et. al. 13180 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13181 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13182 else 13183 whole_archive_flag_spec_F77= 13184 fi 13185 supports_anon_versioning=no 13186 case `$LD -v 2>/dev/null` in 13187 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13188 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13189 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13190 *\ 2.11.*) ;; # other 2.11 versions 13191 *) supports_anon_versioning=yes ;; 13192 esac 13193 13194 # See if GNU ld supports shared libraries. 13195 case $host_os in 13196 aix3* | aix4* | aix5*) 13197 # On AIX/PPC, the GNU linker is very broken 13198 if test "$host_cpu" != ia64; then 13199 ld_shlibs_F77=no 13200 cat <<EOF 1>&2 13201 13202*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13203*** to be unable to reliably create shared libraries on AIX. 13204*** Therefore, libtool is disabling shared libraries support. If you 13205*** really care for shared libraries, you may want to modify your PATH 13206*** so that a non-GNU linker is found, and then restart. 13207 13208EOF 13209 fi 13210 ;; 13211 13212 amigaos*) 13213 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)' 13214 hardcode_libdir_flag_spec_F77='-L$libdir' 13215 hardcode_minus_L_F77=yes 13216 13217 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13218 # that the semantics of dynamic libraries on AmigaOS, at least up 13219 # to version 4, is to share data among multiple programs linked 13220 # with the same dynamic library. Since this doesn't match the 13221 # behavior of shared libraries on other platforms, we can't use 13222 # them. 13223 ld_shlibs_F77=no 13224 ;; 13225 13226 beos*) 13227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13228 allow_undefined_flag_F77=unsupported 13229 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13230 # support --undefined. This deserves some investigation. FIXME 13231 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13232 else 13233 ld_shlibs_F77=no 13234 fi 13235 ;; 13236 13237 cygwin* | mingw* | pw32*) 13238 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13239 # as there is no search path for DLLs. 13240 hardcode_libdir_flag_spec_F77='-L$libdir' 13241 allow_undefined_flag_F77=unsupported 13242 always_export_symbols_F77=no 13243 enable_shared_with_static_runtimes_F77=yes 13244 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13245 13246 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13247 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13248 # If the export-symbols file already is a .def file (1st line 13249 # is EXPORTS), use it as is; otherwise, prepend... 13250 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13251 cp $export_symbols $output_objdir/$soname.def; 13252 else 13253 echo EXPORTS > $output_objdir/$soname.def; 13254 cat $export_symbols >> $output_objdir/$soname.def; 13255 fi~ 13256 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13257 else 13258 ld_shlibs_F77=no 13259 fi 13260 ;; 13261 13262 interix3*) 13263 hardcode_direct_F77=no 13264 hardcode_shlibpath_var_F77=no 13265 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13266 export_dynamic_flag_spec_F77='${wl}-E' 13267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13268 # Instead, shared libraries are loaded at an image base (0x10000000 by 13269 # default) and relocated if they conflict, which is a slow very memory 13270 # consuming and fragmenting process. To avoid this, we pick a random, 13271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13272 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13273 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13274 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13275 ;; 13276 13277 linux*) 13278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13279 tmp_addflag= 13280 case $cc_basename,$host_cpu in 13281 pgcc*) # Portland Group C compiler 13282 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' 13283 tmp_addflag=' $pic_flag' 13284 ;; 13285 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13286 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' 13287 tmp_addflag=' $pic_flag -Mnomain' ;; 13288 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13289 tmp_addflag=' -i_dynamic' ;; 13290 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13291 tmp_addflag=' -i_dynamic -nofor_main' ;; 13292 ifc* | ifort*) # Intel Fortran compiler 13293 tmp_addflag=' -nofor_main' ;; 13294 esac 13295 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13296 13297 if test $supports_anon_versioning = yes; then 13298 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13300 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13301 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13302 fi 13303 else 13304 ld_shlibs_F77=no 13305 fi 13306 ;; 13307 13308 netbsd*) 13309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13310 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13311 wlarc= 13312 else 13313 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13314 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13315 fi 13316 ;; 13317 13318 solaris*) 13319 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13320 ld_shlibs_F77=no 13321 cat <<EOF 1>&2 13322 13323*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13324*** create shared libraries on Solaris systems. Therefore, libtool 13325*** is disabling shared libraries support. We urge you to upgrade GNU 13326*** binutils to release 2.9.1 or newer. Another option is to modify 13327*** your PATH or compiler configuration so that the native linker is 13328*** used, and then restart. 13329 13330EOF 13331 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13332 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13333 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13334 else 13335 ld_shlibs_F77=no 13336 fi 13337 ;; 13338 13339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13340 case `$LD -v 2>&1` in 13341 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13342 ld_shlibs_F77=no 13343 cat <<_LT_EOF 1>&2 13344 13345*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13346*** reliably create shared libraries on SCO systems. Therefore, libtool 13347*** is disabling shared libraries support. We urge you to upgrade GNU 13348*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13349*** your PATH or compiler configuration so that the native linker is 13350*** used, and then restart. 13351 13352_LT_EOF 13353 ;; 13354 *) 13355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13356 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13357 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13358 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13359 else 13360 ld_shlibs_F77=no 13361 fi 13362 ;; 13363 esac 13364 ;; 13365 13366 sunos4*) 13367 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13368 wlarc= 13369 hardcode_direct_F77=yes 13370 hardcode_shlibpath_var_F77=no 13371 ;; 13372 13373 *) 13374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13375 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13376 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13377 else 13378 ld_shlibs_F77=no 13379 fi 13380 ;; 13381 esac 13382 13383 if test "$ld_shlibs_F77" = no; then 13384 runpath_var= 13385 hardcode_libdir_flag_spec_F77= 13386 export_dynamic_flag_spec_F77= 13387 whole_archive_flag_spec_F77= 13388 fi 13389 else 13390 # PORTME fill in a description of your system's linker (not GNU ld) 13391 case $host_os in 13392 aix3*) 13393 allow_undefined_flag_F77=unsupported 13394 always_export_symbols_F77=yes 13395 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' 13396 # Note: this linker hardcodes the directories in LIBPATH if there 13397 # are no directories specified by -L. 13398 hardcode_minus_L_F77=yes 13399 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13400 # Neither direct hardcoding nor static linking is supported with a 13401 # broken collect2. 13402 hardcode_direct_F77=unsupported 13403 fi 13404 ;; 13405 13406 aix4* | aix5*) 13407 if test "$host_cpu" = ia64; then 13408 # On IA64, the linker does run time linking by default, so we don't 13409 # have to do anything special. 13410 aix_use_runtimelinking=no 13411 exp_sym_flag='-Bexport' 13412 no_entry_flag="" 13413 else 13414 # If we're using GNU nm, then we don't want the "-C" option. 13415 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13416 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13417 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' 13418 else 13419 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' 13420 fi 13421 aix_use_runtimelinking=no 13422 13423 # Test if we are trying to use run time linking or normal 13424 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13425 # need to do runtime linking. 13426 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13427 for ld_flag in $LDFLAGS; do 13428 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13429 aix_use_runtimelinking=yes 13430 break 13431 fi 13432 done 13433 ;; 13434 esac 13435 13436 exp_sym_flag='-bexport' 13437 no_entry_flag='-bnoentry' 13438 fi 13439 13440 # When large executables or shared objects are built, AIX ld can 13441 # have problems creating the table of contents. If linking a library 13442 # or program results in "error TOC overflow" add -mminimal-toc to 13443 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13444 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13445 13446 archive_cmds_F77='' 13447 hardcode_direct_F77=yes 13448 hardcode_libdir_separator_F77=':' 13449 link_all_deplibs_F77=yes 13450 13451 if test "$GCC" = yes; then 13452 case $host_os in aix4.[012]|aix4.[012].*) 13453 # We only want to do this on AIX 4.2 and lower, the check 13454 # below for broken collect2 doesn't work under 4.3+ 13455 collect2name=`${CC} -print-prog-name=collect2` 13456 if test -f "$collect2name" && \ 13457 strings "$collect2name" | grep resolve_lib_name >/dev/null 13458 then 13459 # We have reworked collect2 13460 hardcode_direct_F77=yes 13461 else 13462 # We have old collect2 13463 hardcode_direct_F77=unsupported 13464 # It fails to find uninstalled libraries when the uninstalled 13465 # path is not listed in the libpath. Setting hardcode_minus_L 13466 # to unsupported forces relinking 13467 hardcode_minus_L_F77=yes 13468 hardcode_libdir_flag_spec_F77='-L$libdir' 13469 hardcode_libdir_separator_F77= 13470 fi 13471 ;; 13472 esac 13473 shared_flag='-shared' 13474 if test "$aix_use_runtimelinking" = yes; then 13475 shared_flag="$shared_flag "'${wl}-G' 13476 fi 13477 else 13478 # not using gcc 13479 if test "$host_cpu" = ia64; then 13480 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13481 # chokes on -Wl,-G. The following line is correct: 13482 shared_flag='-G' 13483 else 13484 if test "$aix_use_runtimelinking" = yes; then 13485 shared_flag='${wl}-G' 13486 else 13487 shared_flag='${wl}-bM:SRE' 13488 fi 13489 fi 13490 fi 13491 13492 # It seems that -bexpall does not export symbols beginning with 13493 # underscore (_), so it is better to generate a list of symbols to export. 13494 always_export_symbols_F77=yes 13495 if test "$aix_use_runtimelinking" = yes; then 13496 # Warning - without using the other runtime loading flags (-brtl), 13497 # -berok will link without error, but may produce a broken library. 13498 allow_undefined_flag_F77='-berok' 13499 # Determine the default libpath from the value encoded in an empty executable. 13500 cat >conftest.$ac_ext <<_ACEOF 13501 program main 13502 13503 end 13504_ACEOF 13505rm -f conftest.$ac_objext conftest$ac_exeext 13506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13507 (eval $ac_link) 2>conftest.er1 13508 ac_status=$? 13509 grep -v '^ *+' conftest.er1 >conftest.err 13510 rm -f conftest.er1 13511 cat conftest.err >&5 13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13513 (exit $ac_status); } && 13514 { ac_try='test -z "$ac_f77_werror_flag" 13515 || test ! -s conftest.err' 13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13517 (eval $ac_try) 2>&5 13518 ac_status=$? 13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13520 (exit $ac_status); }; } && 13521 { ac_try='test -s conftest$ac_exeext' 13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13523 (eval $ac_try) 2>&5 13524 ac_status=$? 13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13526 (exit $ac_status); }; }; then 13527 13528aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13529}'` 13530# Check for a 64-bit object if we didn't find anything. 13531if 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; } 13532}'`; fi 13533else 13534 echo "$as_me: failed program was:" >&5 13535sed 's/^/| /' conftest.$ac_ext >&5 13536 13537fi 13538rm -f conftest.err conftest.$ac_objext \ 13539 conftest$ac_exeext conftest.$ac_ext 13540if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13541 13542 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13543 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13544 else 13545 if test "$host_cpu" = ia64; then 13546 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13547 allow_undefined_flag_F77="-z nodefs" 13548 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13549 else 13550 # Determine the default libpath from the value encoded in an empty executable. 13551 cat >conftest.$ac_ext <<_ACEOF 13552 program main 13553 13554 end 13555_ACEOF 13556rm -f conftest.$ac_objext conftest$ac_exeext 13557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13558 (eval $ac_link) 2>conftest.er1 13559 ac_status=$? 13560 grep -v '^ *+' conftest.er1 >conftest.err 13561 rm -f conftest.er1 13562 cat conftest.err >&5 13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13564 (exit $ac_status); } && 13565 { ac_try='test -z "$ac_f77_werror_flag" 13566 || test ! -s conftest.err' 13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13568 (eval $ac_try) 2>&5 13569 ac_status=$? 13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13571 (exit $ac_status); }; } && 13572 { ac_try='test -s conftest$ac_exeext' 13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13574 (eval $ac_try) 2>&5 13575 ac_status=$? 13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13577 (exit $ac_status); }; }; then 13578 13579aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13580}'` 13581# Check for a 64-bit object if we didn't find anything. 13582if 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; } 13583}'`; fi 13584else 13585 echo "$as_me: failed program was:" >&5 13586sed 's/^/| /' conftest.$ac_ext >&5 13587 13588fi 13589rm -f conftest.err conftest.$ac_objext \ 13590 conftest$ac_exeext conftest.$ac_ext 13591if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13592 13593 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13594 # Warning - without using the other run time loading flags, 13595 # -berok will link without error, but may produce a broken library. 13596 no_undefined_flag_F77=' ${wl}-bernotok' 13597 allow_undefined_flag_F77=' ${wl}-berok' 13598 # Exported symbols can be pulled into shared objects from archives 13599 whole_archive_flag_spec_F77='$convenience' 13600 archive_cmds_need_lc_F77=yes 13601 # This is similar to how AIX traditionally builds its shared libraries. 13602 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13603 fi 13604 fi 13605 ;; 13606 13607 amigaos*) 13608 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)' 13609 hardcode_libdir_flag_spec_F77='-L$libdir' 13610 hardcode_minus_L_F77=yes 13611 # see comment about different semantics on the GNU ld section 13612 ld_shlibs_F77=no 13613 ;; 13614 13615 bsdi[45]*) 13616 export_dynamic_flag_spec_F77=-rdynamic 13617 ;; 13618 13619 cygwin* | mingw* | pw32*) 13620 # When not using gcc, we currently assume that we are using 13621 # Microsoft Visual C++. 13622 # hardcode_libdir_flag_spec is actually meaningless, as there is 13623 # no search path for DLLs. 13624 hardcode_libdir_flag_spec_F77=' ' 13625 allow_undefined_flag_F77=unsupported 13626 # Tell ltmain to make .lib files, not .a files. 13627 libext=lib 13628 # Tell ltmain to make .dll files, not .so files. 13629 shrext_cmds=".dll" 13630 # FIXME: Setting linknames here is a bad hack. 13631 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13632 # The linker will automatically build a .lib file if we build a DLL. 13633 old_archive_From_new_cmds_F77='true' 13634 # FIXME: Should let the user specify the lib program. 13635 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13636 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13637 enable_shared_with_static_runtimes_F77=yes 13638 ;; 13639 13640 darwin* | rhapsody*) 13641 case $host_os in 13642 rhapsody* | darwin1.[012]) 13643 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13644 ;; 13645 *) # Darwin 1.3 on 13646 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13647 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13648 else 13649 case ${MACOSX_DEPLOYMENT_TARGET} in 13650 10.[012]) 13651 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13652 ;; 13653 10.*) 13654 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13655 ;; 13656 esac 13657 fi 13658 ;; 13659 esac 13660 archive_cmds_need_lc_F77=no 13661 hardcode_direct_F77=no 13662 hardcode_automatic_F77=yes 13663 hardcode_shlibpath_var_F77=unsupported 13664 whole_archive_flag_spec_F77='' 13665 link_all_deplibs_F77=yes 13666 if test "$GCC" = yes ; then 13667 output_verbose_link_cmd='echo' 13668 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13669 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13670 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13671 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}' 13672 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}' 13673 else 13674 case $cc_basename in 13675 xlc*) 13676 output_verbose_link_cmd='echo' 13677 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 13678 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13679 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13680 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}' 13681 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}' 13682 ;; 13683 *) 13684 ld_shlibs_F77=no 13685 ;; 13686 esac 13687 fi 13688 ;; 13689 13690 dgux*) 13691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13692 hardcode_libdir_flag_spec_F77='-L$libdir' 13693 hardcode_shlibpath_var_F77=no 13694 ;; 13695 13696 freebsd1*) 13697 ld_shlibs_F77=no 13698 ;; 13699 13700 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13701 # support. Future versions do this automatically, but an explicit c++rt0.o 13702 # does not break anything, and helps significantly (at the cost of a little 13703 # extra space). 13704 freebsd2.2*) 13705 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13706 hardcode_libdir_flag_spec_F77='-R$libdir' 13707 hardcode_direct_F77=yes 13708 hardcode_shlibpath_var_F77=no 13709 ;; 13710 13711 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13712 freebsd2*) 13713 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13714 hardcode_direct_F77=yes 13715 hardcode_minus_L_F77=yes 13716 hardcode_shlibpath_var_F77=no 13717 ;; 13718 13719 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13720 freebsd* | kfreebsd*-gnu | dragonfly*) 13721 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13722 hardcode_libdir_flag_spec_F77='-R$libdir' 13723 hardcode_direct_F77=yes 13724 hardcode_shlibpath_var_F77=no 13725 ;; 13726 13727 hpux9*) 13728 if test "$GCC" = yes; then 13729 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' 13730 else 13731 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' 13732 fi 13733 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13734 hardcode_libdir_separator_F77=: 13735 hardcode_direct_F77=yes 13736 13737 # hardcode_minus_L: Not really in the search PATH, 13738 # but as the default location of the library. 13739 hardcode_minus_L_F77=yes 13740 export_dynamic_flag_spec_F77='${wl}-E' 13741 ;; 13742 13743 hpux10*) 13744 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13745 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13746 else 13747 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13748 fi 13749 if test "$with_gnu_ld" = no; then 13750 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13751 hardcode_libdir_separator_F77=: 13752 13753 hardcode_direct_F77=yes 13754 export_dynamic_flag_spec_F77='${wl}-E' 13755 13756 # hardcode_minus_L: Not really in the search PATH, 13757 # but as the default location of the library. 13758 hardcode_minus_L_F77=yes 13759 fi 13760 ;; 13761 13762 hpux11*) 13763 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13764 case $host_cpu in 13765 hppa*64*) 13766 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13767 ;; 13768 ia64*) 13769 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13770 ;; 13771 *) 13772 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13773 ;; 13774 esac 13775 else 13776 case $host_cpu in 13777 hppa*64*) 13778 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13779 ;; 13780 ia64*) 13781 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13782 ;; 13783 *) 13784 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13785 ;; 13786 esac 13787 fi 13788 if test "$with_gnu_ld" = no; then 13789 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13790 hardcode_libdir_separator_F77=: 13791 13792 case $host_cpu in 13793 hppa*64*|ia64*) 13794 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13795 hardcode_direct_F77=no 13796 hardcode_shlibpath_var_F77=no 13797 ;; 13798 *) 13799 hardcode_direct_F77=yes 13800 export_dynamic_flag_spec_F77='${wl}-E' 13801 13802 # hardcode_minus_L: Not really in the search PATH, 13803 # but as the default location of the library. 13804 hardcode_minus_L_F77=yes 13805 ;; 13806 esac 13807 fi 13808 ;; 13809 13810 irix5* | irix6* | nonstopux*) 13811 if test "$GCC" = yes; then 13812 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' 13813 else 13814 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' 13815 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13816 fi 13817 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13818 hardcode_libdir_separator_F77=: 13819 link_all_deplibs_F77=yes 13820 ;; 13821 13822 netbsd*) 13823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13824 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13825 else 13826 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13827 fi 13828 hardcode_libdir_flag_spec_F77='-R$libdir' 13829 hardcode_direct_F77=yes 13830 hardcode_shlibpath_var_F77=no 13831 ;; 13832 13833 newsos6) 13834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13835 hardcode_direct_F77=yes 13836 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13837 hardcode_libdir_separator_F77=: 13838 hardcode_shlibpath_var_F77=no 13839 ;; 13840 13841 openbsd*) 13842 hardcode_direct_F77=yes 13843 hardcode_shlibpath_var_F77=no 13844 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13845 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13846 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13847 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13848 export_dynamic_flag_spec_F77='${wl}-E' 13849 else 13850 case $host_os in 13851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13852 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13853 hardcode_libdir_flag_spec_F77='-R$libdir' 13854 ;; 13855 *) 13856 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13857 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13858 ;; 13859 esac 13860 fi 13861 ;; 13862 13863 os2*) 13864 hardcode_libdir_flag_spec_F77='-L$libdir' 13865 hardcode_minus_L_F77=yes 13866 allow_undefined_flag_F77=unsupported 13867 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' 13868 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13869 ;; 13870 13871 osf3*) 13872 if test "$GCC" = yes; then 13873 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13874 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' 13875 else 13876 allow_undefined_flag_F77=' -expect_unresolved \*' 13877 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' 13878 fi 13879 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13880 hardcode_libdir_separator_F77=: 13881 ;; 13882 13883 osf4* | osf5*) # as osf3* with the addition of -msym flag 13884 if test "$GCC" = yes; then 13885 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13886 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' 13887 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13888 else 13889 allow_undefined_flag_F77=' -expect_unresolved \*' 13890 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' 13891 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~ 13892 $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' 13893 13894 # Both c and cxx compiler support -rpath directly 13895 hardcode_libdir_flag_spec_F77='-rpath $libdir' 13896 fi 13897 hardcode_libdir_separator_F77=: 13898 ;; 13899 13900 solaris*) 13901 no_undefined_flag_F77=' -z text' 13902 if test "$GCC" = yes; then 13903 wlarc='${wl}' 13904 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13905 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13906 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 13907 else 13908 wlarc='' 13909 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13910 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13911 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13912 fi 13913 hardcode_libdir_flag_spec_F77='-R$libdir' 13914 hardcode_shlibpath_var_F77=no 13915 case $host_os in 13916 solaris2.[0-5] | solaris2.[0-5].*) ;; 13917 *) 13918 # The compiler driver will combine linker options so we 13919 # cannot just pass the convience library names through 13920 # without $wl, iff we do not link with $LD. 13921 # Luckily, gcc supports the same syntax we need for Sun Studio. 13922 # Supported since Solaris 2.6 (maybe 2.5.1?) 13923 case $wlarc in 13924 '') 13925 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 13926 *) 13927 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' ;; 13928 esac ;; 13929 esac 13930 link_all_deplibs_F77=yes 13931 ;; 13932 13933 sunos4*) 13934 if test "x$host_vendor" = xsequent; then 13935 # Use $CC to link under sequent, because it throws in some extra .o 13936 # files that make .init and .fini sections work. 13937 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13938 else 13939 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13940 fi 13941 hardcode_libdir_flag_spec_F77='-L$libdir' 13942 hardcode_direct_F77=yes 13943 hardcode_minus_L_F77=yes 13944 hardcode_shlibpath_var_F77=no 13945 ;; 13946 13947 sysv4) 13948 case $host_vendor in 13949 sni) 13950 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13951 hardcode_direct_F77=yes # is this really true??? 13952 ;; 13953 siemens) 13954 ## LD is ld it makes a PLAMLIB 13955 ## CC just makes a GrossModule. 13956 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13957 reload_cmds_F77='$CC -r -o $output$reload_objs' 13958 hardcode_direct_F77=no 13959 ;; 13960 motorola) 13961 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13962 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 13963 ;; 13964 esac 13965 runpath_var='LD_RUN_PATH' 13966 hardcode_shlibpath_var_F77=no 13967 ;; 13968 13969 sysv4.3*) 13970 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13971 hardcode_shlibpath_var_F77=no 13972 export_dynamic_flag_spec_F77='-Bexport' 13973 ;; 13974 13975 sysv4*MP*) 13976 if test -d /usr/nec; then 13977 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13978 hardcode_shlibpath_var_F77=no 13979 runpath_var=LD_RUN_PATH 13980 hardcode_runpath_var=yes 13981 ld_shlibs_F77=yes 13982 fi 13983 ;; 13984 13985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 13986 no_undefined_flag_F77='${wl}-z,text' 13987 archive_cmds_need_lc_F77=no 13988 hardcode_shlibpath_var_F77=no 13989 runpath_var='LD_RUN_PATH' 13990 13991 if test "$GCC" = yes; then 13992 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13993 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13994 else 13995 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13996 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13997 fi 13998 ;; 13999 14000 sysv5* | sco3.2v5* | sco5v6*) 14001 # Note: We can NOT use -z defs as we might desire, because we do not 14002 # link with -lc, and that would cause any symbols used from libc to 14003 # always be unresolved, which means just about no library would 14004 # ever link correctly. If we're not using GNU ld we use -z text 14005 # though, which does catch some bad symbols but isn't as heavy-handed 14006 # as -z defs. 14007 no_undefined_flag_F77='${wl}-z,text' 14008 allow_undefined_flag_F77='${wl}-z,nodefs' 14009 archive_cmds_need_lc_F77=no 14010 hardcode_shlibpath_var_F77=no 14011 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14012 hardcode_libdir_separator_F77=':' 14013 link_all_deplibs_F77=yes 14014 export_dynamic_flag_spec_F77='${wl}-Bexport' 14015 runpath_var='LD_RUN_PATH' 14016 14017 if test "$GCC" = yes; then 14018 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14019 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14020 else 14021 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14022 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14023 fi 14024 ;; 14025 14026 uts4*) 14027 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14028 hardcode_libdir_flag_spec_F77='-L$libdir' 14029 hardcode_shlibpath_var_F77=no 14030 ;; 14031 14032 *) 14033 ld_shlibs_F77=no 14034 ;; 14035 esac 14036 fi 14037 14038echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14039echo "${ECHO_T}$ld_shlibs_F77" >&6 14040test "$ld_shlibs_F77" = no && can_build_shared=no 14041 14042# 14043# Do we need to explicitly link libc? 14044# 14045case "x$archive_cmds_need_lc_F77" in 14046x|xyes) 14047 # Assume -lc should be added 14048 archive_cmds_need_lc_F77=yes 14049 14050 if test "$enable_shared" = yes && test "$GCC" = yes; then 14051 case $archive_cmds_F77 in 14052 *'~'*) 14053 # FIXME: we may have to deal with multi-command sequences. 14054 ;; 14055 '$CC '*) 14056 # Test whether the compiler implicitly links with -lc since on some 14057 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14058 # to ld, don't add -lc before -lgcc. 14059 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14060echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14061 $rm conftest* 14062 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14063 14064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14065 (eval $ac_compile) 2>&5 14066 ac_status=$? 14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14068 (exit $ac_status); } 2>conftest.err; then 14069 soname=conftest 14070 lib=conftest 14071 libobjs=conftest.$ac_objext 14072 deplibs= 14073 wl=$lt_prog_compiler_wl_F77 14074 pic_flag=$lt_prog_compiler_pic_F77 14075 compiler_flags=-v 14076 linker_flags=-v 14077 verstring= 14078 output_objdir=. 14079 libname=conftest 14080 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14081 allow_undefined_flag_F77= 14082 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14083 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14084 ac_status=$? 14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14086 (exit $ac_status); } 14087 then 14088 archive_cmds_need_lc_F77=no 14089 else 14090 archive_cmds_need_lc_F77=yes 14091 fi 14092 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14093 else 14094 cat conftest.err 1>&5 14095 fi 14096 $rm conftest* 14097 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14098echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14099 ;; 14100 esac 14101 fi 14102 ;; 14103esac 14104 14105echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14106echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14107library_names_spec= 14108libname_spec='lib$name' 14109soname_spec= 14110shrext_cmds=".so" 14111postinstall_cmds= 14112postuninstall_cmds= 14113finish_cmds= 14114finish_eval= 14115shlibpath_var= 14116shlibpath_overrides_runpath=unknown 14117version_type=none 14118dynamic_linker="$host_os ld.so" 14119sys_lib_dlsearch_path_spec="/lib /usr/lib" 14120if test "$GCC" = yes; then 14121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14122 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14123 # if the path contains ";" then we assume it to be the separator 14124 # otherwise default to the standard path separator (i.e. ":") - it is 14125 # assumed that no part of a normal pathname contains ";" but that should 14126 # okay in the real world where ";" in dirpaths is itself problematic. 14127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14128 else 14129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14130 fi 14131else 14132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14133fi 14134need_lib_prefix=unknown 14135hardcode_into_libs=no 14136 14137# when you set need_version to no, make sure it does not cause -set_version 14138# flags to be left without arguments 14139need_version=unknown 14140 14141case $host_os in 14142aix3*) 14143 version_type=linux 14144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14145 shlibpath_var=LIBPATH 14146 14147 # AIX 3 has no versioning support, so we append a major version to the name. 14148 soname_spec='${libname}${release}${shared_ext}$major' 14149 ;; 14150 14151aix4* | aix5*) 14152 version_type=linux 14153 need_lib_prefix=no 14154 need_version=no 14155 hardcode_into_libs=yes 14156 if test "$host_cpu" = ia64; then 14157 # AIX 5 supports IA64 14158 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14159 shlibpath_var=LD_LIBRARY_PATH 14160 else 14161 # With GCC up to 2.95.x, collect2 would create an import file 14162 # for dependence libraries. The import file would start with 14163 # the line `#! .'. This would cause the generated library to 14164 # depend on `.', always an invalid library. This was fixed in 14165 # development snapshots of GCC prior to 3.0. 14166 case $host_os in 14167 aix4 | aix4.[01] | aix4.[01].*) 14168 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14169 echo ' yes ' 14170 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14171 : 14172 else 14173 can_build_shared=no 14174 fi 14175 ;; 14176 esac 14177 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14178 # soname into executable. Probably we can add versioning support to 14179 # collect2, so additional links can be useful in future. 14180 if test "$aix_use_runtimelinking" = yes; then 14181 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14182 # instead of lib<name>.a to let people know that these are not 14183 # typical AIX shared libraries. 14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14185 else 14186 # We preserve .a as extension for shared libraries through AIX4.2 14187 # and later when we are not doing run time linking. 14188 library_names_spec='${libname}${release}.a $libname.a' 14189 soname_spec='${libname}${release}${shared_ext}$major' 14190 fi 14191 shlibpath_var=LIBPATH 14192 fi 14193 ;; 14194 14195amigaos*) 14196 library_names_spec='$libname.ixlibrary $libname.a' 14197 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14198 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' 14199 ;; 14200 14201beos*) 14202 library_names_spec='${libname}${shared_ext}' 14203 dynamic_linker="$host_os ld.so" 14204 shlibpath_var=LIBRARY_PATH 14205 ;; 14206 14207bsdi[45]*) 14208 version_type=linux 14209 need_version=no 14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14211 soname_spec='${libname}${release}${shared_ext}$major' 14212 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14213 shlibpath_var=LD_LIBRARY_PATH 14214 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14215 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14216 # the default ld.so.conf also contains /usr/contrib/lib and 14217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14218 # libtool to hard-code these into programs 14219 ;; 14220 14221cygwin* | mingw* | pw32*) 14222 version_type=windows 14223 shrext_cmds=".dll" 14224 need_version=no 14225 need_lib_prefix=no 14226 14227 case $GCC,$host_os in 14228 yes,cygwin* | yes,mingw* | yes,pw32*) 14229 library_names_spec='$libname.dll.a' 14230 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14231 postinstall_cmds='base_file=`basename \${file}`~ 14232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14233 dldir=$destdir/`dirname \$dlpath`~ 14234 test -d \$dldir || mkdir -p \$dldir~ 14235 $install_prog $dir/$dlname \$dldir/$dlname~ 14236 chmod a+x \$dldir/$dlname' 14237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14238 dlpath=$dir/\$dldll~ 14239 $rm \$dlpath' 14240 shlibpath_overrides_runpath=yes 14241 14242 case $host_os in 14243 cygwin*) 14244 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14245 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14246 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14247 ;; 14248 mingw*) 14249 # MinGW DLLs use traditional 'lib' prefix 14250 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14251 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14252 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14253 # It is most probably a Windows format PATH printed by 14254 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14255 # path with ; separators, and with drive letters. We can handle the 14256 # drive letters (cygwin fileutils understands them), so leave them, 14257 # especially as we might pass files found there to a mingw objdump, 14258 # which wouldn't understand a cygwinified path. Ahh. 14259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14260 else 14261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14262 fi 14263 ;; 14264 pw32*) 14265 # pw32 DLLs use 'pw' prefix rather than 'lib' 14266 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14267 ;; 14268 esac 14269 ;; 14270 14271 linux*) 14272 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 14273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14274 supports_anon_versioning=no 14275 case `$LD -v 2>/dev/null` in 14276 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14277 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14278 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14279 *\ 2.11.*) ;; # other 2.11 versions 14280 *) supports_anon_versioning=yes ;; 14281 esac 14282 if test $supports_anon_versioning = yes; then 14283 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 14284cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14285$echo "local: *; };" >> $output_objdir/$libname.ver~ 14286 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14287 else 14288 $archive_expsym_cmds="$archive_cmds" 14289 fi 14290 else 14291 ld_shlibs=no 14292 fi 14293 ;; 14294 14295 *) 14296 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14297 ;; 14298 esac 14299 dynamic_linker='Win32 ld.exe' 14300 # FIXME: first we should search . and the directory the executable is in 14301 shlibpath_var=PATH 14302 ;; 14303 14304darwin* | rhapsody*) 14305 dynamic_linker="$host_os dyld" 14306 version_type=darwin 14307 need_lib_prefix=no 14308 need_version=no 14309 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14310 soname_spec='${libname}${release}${major}$shared_ext' 14311 shlibpath_overrides_runpath=yes 14312 shlibpath_var=DYLD_LIBRARY_PATH 14313 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14314 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14315 if test "$GCC" = yes; then 14316 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"` 14317 else 14318 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14319 fi 14320 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14321 ;; 14322 14323dgux*) 14324 version_type=linux 14325 need_lib_prefix=no 14326 need_version=no 14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14328 soname_spec='${libname}${release}${shared_ext}$major' 14329 shlibpath_var=LD_LIBRARY_PATH 14330 ;; 14331 14332freebsd1*) 14333 dynamic_linker=no 14334 ;; 14335 14336kfreebsd*-gnu) 14337 version_type=linux 14338 need_lib_prefix=no 14339 need_version=no 14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14341 soname_spec='${libname}${release}${shared_ext}$major' 14342 shlibpath_var=LD_LIBRARY_PATH 14343 shlibpath_overrides_runpath=no 14344 hardcode_into_libs=yes 14345 dynamic_linker='GNU ld.so' 14346 ;; 14347 14348freebsd* | dragonfly*) 14349 # DragonFly does not have aout. When/if they implement a new 14350 # versioning mechanism, adjust this. 14351 if test -x /usr/bin/objformat; then 14352 objformat=`/usr/bin/objformat` 14353 else 14354 case $host_os in 14355 freebsd[123]*) objformat=aout ;; 14356 *) objformat=elf ;; 14357 esac 14358 fi 14359 # Handle Gentoo/FreeBSD as it was Linux 14360 case $host_vendor in 14361 gentoo) 14362 version_type=linux ;; 14363 *) 14364 version_type=freebsd-$objformat ;; 14365 esac 14366 14367 case $version_type in 14368 freebsd-elf*) 14369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14370 need_version=no 14371 need_lib_prefix=no 14372 ;; 14373 freebsd-*) 14374 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14375 need_version=yes 14376 ;; 14377 linux) 14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14379 soname_spec='${libname}${release}${shared_ext}$major' 14380 need_lib_prefix=no 14381 need_version=no 14382 ;; 14383 esac 14384 shlibpath_var=LD_LIBRARY_PATH 14385 case $host_os in 14386 freebsd2*) 14387 shlibpath_overrides_runpath=yes 14388 ;; 14389 freebsd3.[01]* | freebsdelf3.[01]*) 14390 shlibpath_overrides_runpath=yes 14391 hardcode_into_libs=yes 14392 ;; 14393 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14394 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14395 shlibpath_overrides_runpath=no 14396 hardcode_into_libs=yes 14397 ;; 14398 freebsd*) # from 4.6 on 14399 shlibpath_overrides_runpath=yes 14400 hardcode_into_libs=yes 14401 ;; 14402 esac 14403 ;; 14404 14405gnu*) 14406 version_type=linux 14407 need_lib_prefix=no 14408 need_version=no 14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14410 soname_spec='${libname}${release}${shared_ext}$major' 14411 shlibpath_var=LD_LIBRARY_PATH 14412 hardcode_into_libs=yes 14413 ;; 14414 14415hpux9* | hpux10* | hpux11*) 14416 # Give a soname corresponding to the major version so that dld.sl refuses to 14417 # link against other versions. 14418 version_type=sunos 14419 need_lib_prefix=no 14420 need_version=no 14421 case $host_cpu in 14422 ia64*) 14423 shrext_cmds='.so' 14424 hardcode_into_libs=yes 14425 dynamic_linker="$host_os dld.so" 14426 shlibpath_var=LD_LIBRARY_PATH 14427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14429 soname_spec='${libname}${release}${shared_ext}$major' 14430 if test "X$HPUX_IA64_MODE" = X32; then 14431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14432 else 14433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14434 fi 14435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14436 ;; 14437 hppa*64*) 14438 shrext_cmds='.sl' 14439 hardcode_into_libs=yes 14440 dynamic_linker="$host_os dld.sl" 14441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14444 soname_spec='${libname}${release}${shared_ext}$major' 14445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14447 ;; 14448 *) 14449 shrext_cmds='.sl' 14450 dynamic_linker="$host_os dld.sl" 14451 shlibpath_var=SHLIB_PATH 14452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14454 soname_spec='${libname}${release}${shared_ext}$major' 14455 ;; 14456 esac 14457 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14458 postinstall_cmds='chmod 555 $lib' 14459 ;; 14460 14461interix3*) 14462 version_type=linux 14463 need_lib_prefix=no 14464 need_version=no 14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14466 soname_spec='${libname}${release}${shared_ext}$major' 14467 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14468 shlibpath_var=LD_LIBRARY_PATH 14469 shlibpath_overrides_runpath=no 14470 hardcode_into_libs=yes 14471 ;; 14472 14473irix5* | irix6* | nonstopux*) 14474 case $host_os in 14475 nonstopux*) version_type=nonstopux ;; 14476 *) 14477 if test "$lt_cv_prog_gnu_ld" = yes; then 14478 version_type=linux 14479 else 14480 version_type=irix 14481 fi ;; 14482 esac 14483 need_lib_prefix=no 14484 need_version=no 14485 soname_spec='${libname}${release}${shared_ext}$major' 14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14487 case $host_os in 14488 irix5* | nonstopux*) 14489 libsuff= shlibsuff= 14490 ;; 14491 *) 14492 case $LD in # libtool.m4 will add one of these switches to LD 14493 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14494 libsuff= shlibsuff= libmagic=32-bit;; 14495 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14496 libsuff=32 shlibsuff=N32 libmagic=N32;; 14497 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14498 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14499 *) libsuff= shlibsuff= libmagic=never-match;; 14500 esac 14501 ;; 14502 esac 14503 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14504 shlibpath_overrides_runpath=no 14505 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14506 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14507 hardcode_into_libs=yes 14508 ;; 14509 14510# No shared lib support for Linux oldld, aout, or coff. 14511linux*oldld* | linux*aout* | linux*coff*) 14512 dynamic_linker=no 14513 ;; 14514 14515# This must be Linux ELF. 14516linux*) 14517 version_type=linux 14518 need_lib_prefix=no 14519 need_version=no 14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14521 soname_spec='${libname}${release}${shared_ext}$major' 14522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14523 shlibpath_var=LD_LIBRARY_PATH 14524 shlibpath_overrides_runpath=no 14525 # This implies no fast_install, which is unacceptable. 14526 # Some rework will be needed to allow for fast_install 14527 # before this can be enabled. 14528 hardcode_into_libs=yes 14529 14530 # Append ld.so.conf contents to the search path 14531 if test -f /etc/ld.so.conf; then 14532 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' ' '` 14533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14534 fi 14535 14536 # We used to test for /lib/ld.so.1 and disable shared libraries on 14537 # powerpc, because MkLinux only supported shared libraries with the 14538 # GNU dynamic linker. Since this was broken with cross compilers, 14539 # most powerpc-linux boxes support dynamic linking these days and 14540 # people can always --disable-shared, the test was removed, and we 14541 # assume the GNU/Linux dynamic linker is in use. 14542 dynamic_linker='GNU/Linux ld.so' 14543 ;; 14544 14545knetbsd*-gnu) 14546 version_type=linux 14547 need_lib_prefix=no 14548 need_version=no 14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14550 soname_spec='${libname}${release}${shared_ext}$major' 14551 shlibpath_var=LD_LIBRARY_PATH 14552 shlibpath_overrides_runpath=no 14553 hardcode_into_libs=yes 14554 dynamic_linker='GNU ld.so' 14555 ;; 14556 14557netbsd*) 14558 version_type=sunos 14559 need_lib_prefix=no 14560 need_version=no 14561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14564 dynamic_linker='NetBSD (a.out) ld.so' 14565 else 14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14567 soname_spec='${libname}${release}${shared_ext}$major' 14568 dynamic_linker='NetBSD ld.elf_so' 14569 fi 14570 shlibpath_var=LD_LIBRARY_PATH 14571 shlibpath_overrides_runpath=yes 14572 hardcode_into_libs=yes 14573 ;; 14574 14575newsos6) 14576 version_type=linux 14577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14578 shlibpath_var=LD_LIBRARY_PATH 14579 shlibpath_overrides_runpath=yes 14580 ;; 14581 14582nto-qnx*) 14583 version_type=linux 14584 need_lib_prefix=no 14585 need_version=no 14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14587 soname_spec='${libname}${release}${shared_ext}$major' 14588 shlibpath_var=LD_LIBRARY_PATH 14589 shlibpath_overrides_runpath=yes 14590 ;; 14591 14592openbsd*) 14593 version_type=sunos 14594 sys_lib_dlsearch_path_spec="/usr/lib" 14595 need_lib_prefix=no 14596 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14597 case $host_os in 14598 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14599 *) need_version=no ;; 14600 esac 14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14603 shlibpath_var=LD_LIBRARY_PATH 14604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14605 case $host_os in 14606 openbsd2.[89] | openbsd2.[89].*) 14607 shlibpath_overrides_runpath=no 14608 ;; 14609 *) 14610 shlibpath_overrides_runpath=yes 14611 ;; 14612 esac 14613 else 14614 shlibpath_overrides_runpath=yes 14615 fi 14616 ;; 14617 14618os2*) 14619 libname_spec='$name' 14620 shrext_cmds=".dll" 14621 need_lib_prefix=no 14622 library_names_spec='$libname${shared_ext} $libname.a' 14623 dynamic_linker='OS/2 ld.exe' 14624 shlibpath_var=LIBPATH 14625 ;; 14626 14627osf3* | osf4* | osf5*) 14628 version_type=osf 14629 need_lib_prefix=no 14630 need_version=no 14631 soname_spec='${libname}${release}${shared_ext}$major' 14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14633 shlibpath_var=LD_LIBRARY_PATH 14634 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14635 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14636 ;; 14637 14638solaris*) 14639 version_type=linux 14640 need_lib_prefix=no 14641 need_version=no 14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14643 soname_spec='${libname}${release}${shared_ext}$major' 14644 shlibpath_var=LD_LIBRARY_PATH 14645 shlibpath_overrides_runpath=yes 14646 hardcode_into_libs=yes 14647 # ldd complains unless libraries are executable 14648 postinstall_cmds='chmod +x $lib' 14649 ;; 14650 14651sunos4*) 14652 version_type=sunos 14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14654 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14655 shlibpath_var=LD_LIBRARY_PATH 14656 shlibpath_overrides_runpath=yes 14657 if test "$with_gnu_ld" = yes; then 14658 need_lib_prefix=no 14659 fi 14660 need_version=yes 14661 ;; 14662 14663sysv4 | sysv4.3*) 14664 version_type=linux 14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14666 soname_spec='${libname}${release}${shared_ext}$major' 14667 shlibpath_var=LD_LIBRARY_PATH 14668 case $host_vendor in 14669 sni) 14670 shlibpath_overrides_runpath=no 14671 need_lib_prefix=no 14672 export_dynamic_flag_spec='${wl}-Blargedynsym' 14673 runpath_var=LD_RUN_PATH 14674 ;; 14675 siemens) 14676 need_lib_prefix=no 14677 ;; 14678 motorola) 14679 need_lib_prefix=no 14680 need_version=no 14681 shlibpath_overrides_runpath=no 14682 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14683 ;; 14684 esac 14685 ;; 14686 14687sysv4*MP*) 14688 if test -d /usr/nec ;then 14689 version_type=linux 14690 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14691 soname_spec='$libname${shared_ext}.$major' 14692 shlibpath_var=LD_LIBRARY_PATH 14693 fi 14694 ;; 14695 14696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14697 version_type=freebsd-elf 14698 need_lib_prefix=no 14699 need_version=no 14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14701 soname_spec='${libname}${release}${shared_ext}$major' 14702 shlibpath_var=LD_LIBRARY_PATH 14703 hardcode_into_libs=yes 14704 if test "$with_gnu_ld" = yes; then 14705 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14706 shlibpath_overrides_runpath=no 14707 else 14708 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14709 shlibpath_overrides_runpath=yes 14710 case $host_os in 14711 sco3.2v5*) 14712 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14713 ;; 14714 esac 14715 fi 14716 sys_lib_dlsearch_path_spec='/usr/lib' 14717 ;; 14718 14719uts4*) 14720 version_type=linux 14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14722 soname_spec='${libname}${release}${shared_ext}$major' 14723 shlibpath_var=LD_LIBRARY_PATH 14724 ;; 14725 14726*) 14727 dynamic_linker=no 14728 ;; 14729esac 14730echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14731echo "${ECHO_T}$dynamic_linker" >&6 14732test "$dynamic_linker" = no && can_build_shared=no 14733 14734variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14735if test "$GCC" = yes; then 14736 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14737fi 14738 14739echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14740echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14741hardcode_action_F77= 14742if test -n "$hardcode_libdir_flag_spec_F77" || \ 14743 test -n "$runpath_var_F77" || \ 14744 test "X$hardcode_automatic_F77" = "Xyes" ; then 14745 14746 # We can hardcode non-existant directories. 14747 if test "$hardcode_direct_F77" != no && 14748 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14749 # have to relink, otherwise we might link with an installed library 14750 # when we should be linking with a yet-to-be-installed one 14751 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14752 test "$hardcode_minus_L_F77" != no; then 14753 # Linking always hardcodes the temporary library directory. 14754 hardcode_action_F77=relink 14755 else 14756 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14757 hardcode_action_F77=immediate 14758 fi 14759else 14760 # We cannot hardcode anything, or else we can only hardcode existing 14761 # directories. 14762 hardcode_action_F77=unsupported 14763fi 14764echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 14765echo "${ECHO_T}$hardcode_action_F77" >&6 14766 14767if test "$hardcode_action_F77" = relink; then 14768 # Fast installation is not supported 14769 enable_fast_install=no 14770elif test "$shlibpath_overrides_runpath" = yes || 14771 test "$enable_shared" = no; then 14772 # Fast installation is not necessary 14773 enable_fast_install=needless 14774fi 14775 14776 14777# The else clause should only fire when bootstrapping the 14778# libtool distribution, otherwise you forgot to ship ltmain.sh 14779# with your package, and you will get complaints that there are 14780# no rules to generate ltmain.sh. 14781if test -f "$ltmain"; then 14782 # See if we are running on zsh, and set the options which allow our commands through 14783 # without removal of \ escapes. 14784 if test -n "${ZSH_VERSION+set}" ; then 14785 setopt NO_GLOB_SUBST 14786 fi 14787 # Now quote all the things that may contain metacharacters while being 14788 # careful not to overquote the AC_SUBSTed values. We take copies of the 14789 # variables and quote the copies for generation of the libtool script. 14790 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14791 SED SHELL STRIP \ 14792 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14793 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14794 deplibs_check_method reload_flag reload_cmds need_locks \ 14795 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14796 lt_cv_sys_global_symbol_to_c_name_address \ 14797 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14798 old_postinstall_cmds old_postuninstall_cmds \ 14799 compiler_F77 \ 14800 CC_F77 \ 14801 LD_F77 \ 14802 lt_prog_compiler_wl_F77 \ 14803 lt_prog_compiler_pic_F77 \ 14804 lt_prog_compiler_static_F77 \ 14805 lt_prog_compiler_no_builtin_flag_F77 \ 14806 export_dynamic_flag_spec_F77 \ 14807 thread_safe_flag_spec_F77 \ 14808 whole_archive_flag_spec_F77 \ 14809 enable_shared_with_static_runtimes_F77 \ 14810 old_archive_cmds_F77 \ 14811 old_archive_from_new_cmds_F77 \ 14812 predep_objects_F77 \ 14813 postdep_objects_F77 \ 14814 predeps_F77 \ 14815 postdeps_F77 \ 14816 compiler_lib_search_path_F77 \ 14817 archive_cmds_F77 \ 14818 archive_expsym_cmds_F77 \ 14819 postinstall_cmds_F77 \ 14820 postuninstall_cmds_F77 \ 14821 old_archive_from_expsyms_cmds_F77 \ 14822 allow_undefined_flag_F77 \ 14823 no_undefined_flag_F77 \ 14824 export_symbols_cmds_F77 \ 14825 hardcode_libdir_flag_spec_F77 \ 14826 hardcode_libdir_flag_spec_ld_F77 \ 14827 hardcode_libdir_separator_F77 \ 14828 hardcode_automatic_F77 \ 14829 module_cmds_F77 \ 14830 module_expsym_cmds_F77 \ 14831 lt_cv_prog_compiler_c_o_F77 \ 14832 exclude_expsyms_F77 \ 14833 include_expsyms_F77; do 14834 14835 case $var in 14836 old_archive_cmds_F77 | \ 14837 old_archive_from_new_cmds_F77 | \ 14838 archive_cmds_F77 | \ 14839 archive_expsym_cmds_F77 | \ 14840 module_cmds_F77 | \ 14841 module_expsym_cmds_F77 | \ 14842 old_archive_from_expsyms_cmds_F77 | \ 14843 export_symbols_cmds_F77 | \ 14844 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14845 postinstall_cmds | postuninstall_cmds | \ 14846 old_postinstall_cmds | old_postuninstall_cmds | \ 14847 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14848 # Double-quote double-evaled strings. 14849 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14850 ;; 14851 *) 14852 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14853 ;; 14854 esac 14855 done 14856 14857 case $lt_echo in 14858 *'\$0 --fallback-echo"') 14859 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14860 ;; 14861 esac 14862 14863cfgfile="$ofile" 14864 14865 cat <<__EOF__ >> "$cfgfile" 14866# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14867 14868# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14869 14870# Shell to use when invoking shell scripts. 14871SHELL=$lt_SHELL 14872 14873# Whether or not to build shared libraries. 14874build_libtool_libs=$enable_shared 14875 14876# Whether or not to build static libraries. 14877build_old_libs=$enable_static 14878 14879# Whether or not to add -lc for building shared libraries. 14880build_libtool_need_lc=$archive_cmds_need_lc_F77 14881 14882# Whether or not to disallow shared libs when runtime libs are static 14883allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14884 14885# Whether or not to optimize for fast installation. 14886fast_install=$enable_fast_install 14887 14888# The host system. 14889host_alias=$host_alias 14890host=$host 14891host_os=$host_os 14892 14893# The build system. 14894build_alias=$build_alias 14895build=$build 14896build_os=$build_os 14897 14898# An echo program that does not interpret backslashes. 14899echo=$lt_echo 14900 14901# The archiver. 14902AR=$lt_AR 14903AR_FLAGS=$lt_AR_FLAGS 14904 14905# A C compiler. 14906LTCC=$lt_LTCC 14907 14908# LTCC compiler flags. 14909LTCFLAGS=$lt_LTCFLAGS 14910 14911# A language-specific compiler. 14912CC=$lt_compiler_F77 14913 14914# Is the compiler the GNU C compiler? 14915with_gcc=$GCC_F77 14916 14917# An ERE matcher. 14918EGREP=$lt_EGREP 14919 14920# The linker used to build libraries. 14921LD=$lt_LD_F77 14922 14923# Whether we need hard or soft links. 14924LN_S=$lt_LN_S 14925 14926# A BSD-compatible nm program. 14927NM=$lt_NM 14928 14929# A symbol stripping program 14930STRIP=$lt_STRIP 14931 14932# Used to examine libraries when file_magic_cmd begins "file" 14933MAGIC_CMD=$MAGIC_CMD 14934 14935# Used on cygwin: DLL creation program. 14936DLLTOOL="$DLLTOOL" 14937 14938# Used on cygwin: object dumper. 14939OBJDUMP="$OBJDUMP" 14940 14941# Used on cygwin: assembler. 14942AS="$AS" 14943 14944# The name of the directory that contains temporary libtool files. 14945objdir=$objdir 14946 14947# How to create reloadable object files. 14948reload_flag=$lt_reload_flag 14949reload_cmds=$lt_reload_cmds 14950 14951# How to pass a linker flag through the compiler. 14952wl=$lt_lt_prog_compiler_wl_F77 14953 14954# Object file suffix (normally "o"). 14955objext="$ac_objext" 14956 14957# Old archive suffix (normally "a"). 14958libext="$libext" 14959 14960# Shared library suffix (normally ".so"). 14961shrext_cmds='$shrext_cmds' 14962 14963# Executable file suffix (normally ""). 14964exeext="$exeext" 14965 14966# Additional compiler flags for building library objects. 14967pic_flag=$lt_lt_prog_compiler_pic_F77 14968pic_mode=$pic_mode 14969 14970# What is the maximum length of a command? 14971max_cmd_len=$lt_cv_sys_max_cmd_len 14972 14973# Does compiler simultaneously support -c and -o options? 14974compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 14975 14976# Must we lock files when doing compilation? 14977need_locks=$lt_need_locks 14978 14979# Do we need the lib prefix for modules? 14980need_lib_prefix=$need_lib_prefix 14981 14982# Do we need a version for libraries? 14983need_version=$need_version 14984 14985# Whether dlopen is supported. 14986dlopen_support=$enable_dlopen 14987 14988# Whether dlopen of programs is supported. 14989dlopen_self=$enable_dlopen_self 14990 14991# Whether dlopen of statically linked programs is supported. 14992dlopen_self_static=$enable_dlopen_self_static 14993 14994# Compiler flag to prevent dynamic linking. 14995link_static_flag=$lt_lt_prog_compiler_static_F77 14996 14997# Compiler flag to turn off builtin functions. 14998no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 14999 15000# Compiler flag to allow reflexive dlopens. 15001export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15002 15003# Compiler flag to generate shared objects directly from archives. 15004whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15005 15006# Compiler flag to generate thread-safe objects. 15007thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15008 15009# Library versioning type. 15010version_type=$version_type 15011 15012# Format of library name prefix. 15013libname_spec=$lt_libname_spec 15014 15015# List of archive names. First name is the real one, the rest are links. 15016# The last name is the one that the linker finds with -lNAME. 15017library_names_spec=$lt_library_names_spec 15018 15019# The coded name of the library, if different from the real name. 15020soname_spec=$lt_soname_spec 15021 15022# Commands used to build and install an old-style archive. 15023RANLIB=$lt_RANLIB 15024old_archive_cmds=$lt_old_archive_cmds_F77 15025old_postinstall_cmds=$lt_old_postinstall_cmds 15026old_postuninstall_cmds=$lt_old_postuninstall_cmds 15027 15028# Create an old-style archive from a shared archive. 15029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15030 15031# Create a temporary old-style archive to link instead of a shared archive. 15032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15033 15034# Commands used to build and install a shared archive. 15035archive_cmds=$lt_archive_cmds_F77 15036archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15037postinstall_cmds=$lt_postinstall_cmds 15038postuninstall_cmds=$lt_postuninstall_cmds 15039 15040# Commands used to build a loadable module (assumed same as above if empty) 15041module_cmds=$lt_module_cmds_F77 15042module_expsym_cmds=$lt_module_expsym_cmds_F77 15043 15044# Commands to strip libraries. 15045old_striplib=$lt_old_striplib 15046striplib=$lt_striplib 15047 15048# Dependencies to place before the objects being linked to create a 15049# shared library. 15050predep_objects=$lt_predep_objects_F77 15051 15052# Dependencies to place after the objects being linked to create a 15053# shared library. 15054postdep_objects=$lt_postdep_objects_F77 15055 15056# Dependencies to place before the objects being linked to create a 15057# shared library. 15058predeps=$lt_predeps_F77 15059 15060# Dependencies to place after the objects being linked to create a 15061# shared library. 15062postdeps=$lt_postdeps_F77 15063 15064# The library search path used internally by the compiler when linking 15065# a shared library. 15066compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15067 15068# Method to check whether dependent libraries are shared objects. 15069deplibs_check_method=$lt_deplibs_check_method 15070 15071# Command to use when deplibs_check_method == file_magic. 15072file_magic_cmd=$lt_file_magic_cmd 15073 15074# Flag that allows shared libraries with undefined symbols to be built. 15075allow_undefined_flag=$lt_allow_undefined_flag_F77 15076 15077# Flag that forces no undefined symbols. 15078no_undefined_flag=$lt_no_undefined_flag_F77 15079 15080# Commands used to finish a libtool library installation in a directory. 15081finish_cmds=$lt_finish_cmds 15082 15083# Same as above, but a single script fragment to be evaled but not shown. 15084finish_eval=$lt_finish_eval 15085 15086# Take the output of nm and produce a listing of raw symbols and C names. 15087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15088 15089# Transform the output of nm in a proper C declaration 15090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15091 15092# Transform the output of nm in a C name address pair 15093global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15094 15095# This is the shared library runtime path variable. 15096runpath_var=$runpath_var 15097 15098# This is the shared library path variable. 15099shlibpath_var=$shlibpath_var 15100 15101# Is shlibpath searched before the hard-coded library search path? 15102shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15103 15104# How to hardcode a shared library path into an executable. 15105hardcode_action=$hardcode_action_F77 15106 15107# Whether we should hardcode library paths into libraries. 15108hardcode_into_libs=$hardcode_into_libs 15109 15110# Flag to hardcode \$libdir into a binary during linking. 15111# This must work even if \$libdir does not exist. 15112hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15113 15114# If ld is used when linking, flag to hardcode \$libdir into 15115# a binary during linking. This must work even if \$libdir does 15116# not exist. 15117hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15118 15119# Whether we need a single -rpath flag with a separated argument. 15120hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15121 15122# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15123# resulting binary. 15124hardcode_direct=$hardcode_direct_F77 15125 15126# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15127# resulting binary. 15128hardcode_minus_L=$hardcode_minus_L_F77 15129 15130# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15131# the resulting binary. 15132hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15133 15134# Set to yes if building a shared library automatically hardcodes DIR into the library 15135# and all subsequent libraries and executables linked against it. 15136hardcode_automatic=$hardcode_automatic_F77 15137 15138# Variables whose values should be saved in libtool wrapper scripts and 15139# restored at relink time. 15140variables_saved_for_relink="$variables_saved_for_relink" 15141 15142# Whether libtool must link a program against all its dependency libraries. 15143link_all_deplibs=$link_all_deplibs_F77 15144 15145# Compile-time system search path for libraries 15146sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15147 15148# Run-time system search path for libraries 15149sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15150 15151# Fix the shell variable \$srcfile for the compiler. 15152fix_srcfile_path="$fix_srcfile_path_F77" 15153 15154# Set to yes if exported symbols are required. 15155always_export_symbols=$always_export_symbols_F77 15156 15157# The commands to list exported symbols. 15158export_symbols_cmds=$lt_export_symbols_cmds_F77 15159 15160# The commands to extract the exported symbol list from a shared archive. 15161extract_expsyms_cmds=$lt_extract_expsyms_cmds 15162 15163# Symbols that should not be listed in the preloaded symbols. 15164exclude_expsyms=$lt_exclude_expsyms_F77 15165 15166# Symbols that must always be exported. 15167include_expsyms=$lt_include_expsyms_F77 15168 15169# ### END LIBTOOL TAG CONFIG: $tagname 15170 15171__EOF__ 15172 15173 15174else 15175 # If there is no Makefile yet, we rely on a make rule to execute 15176 # `config.status --recheck' to rerun these tests and create the 15177 # libtool script then. 15178 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15179 if test -f "$ltmain_in"; then 15180 test -f Makefile && make "$ltmain" 15181 fi 15182fi 15183 15184 15185ac_ext=c 15186ac_cpp='$CPP $CPPFLAGS' 15187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15189ac_compiler_gnu=$ac_cv_c_compiler_gnu 15190 15191CC="$lt_save_CC" 15192 15193 else 15194 tagname="" 15195 fi 15196 ;; 15197 15198 GCJ) 15199 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15200 15201 15202 15203# Source file extension for Java test sources. 15204ac_ext=java 15205 15206# Object file extension for compiled Java test sources. 15207objext=o 15208objext_GCJ=$objext 15209 15210# Code to be used in simple compile tests 15211lt_simple_compile_test_code="class foo {}\n" 15212 15213# Code to be used in simple link tests 15214lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15215 15216# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15217 15218# If no C compiler was specified, use CC. 15219LTCC=${LTCC-"$CC"} 15220 15221# If no C compiler flags were specified, use CFLAGS. 15222LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15223 15224# Allow CC to be a program name with arguments. 15225compiler=$CC 15226 15227 15228# save warnings/boilerplate of simple test code 15229ac_outfile=conftest.$ac_objext 15230printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15231eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15232_lt_compiler_boilerplate=`cat conftest.err` 15233$rm conftest* 15234 15235ac_outfile=conftest.$ac_objext 15236printf "$lt_simple_link_test_code" >conftest.$ac_ext 15237eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15238_lt_linker_boilerplate=`cat conftest.err` 15239$rm conftest* 15240 15241 15242# Allow CC to be a program name with arguments. 15243lt_save_CC="$CC" 15244CC=${GCJ-"gcj"} 15245compiler=$CC 15246compiler_GCJ=$CC 15247for cc_temp in $compiler""; do 15248 case $cc_temp in 15249 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15250 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15251 \-*) ;; 15252 *) break;; 15253 esac 15254done 15255cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15256 15257 15258# GCJ did not exist at the time GCC didn't implicitly link libc in. 15259archive_cmds_need_lc_GCJ=no 15260 15261old_archive_cmds_GCJ=$old_archive_cmds 15262 15263 15264lt_prog_compiler_no_builtin_flag_GCJ= 15265 15266if test "$GCC" = yes; then 15267 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15268 15269 15270echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15271echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15272if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15273 echo $ECHO_N "(cached) $ECHO_C" >&6 15274else 15275 lt_cv_prog_compiler_rtti_exceptions=no 15276 ac_outfile=conftest.$ac_objext 15277 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15278 lt_compiler_flag="-fno-rtti -fno-exceptions" 15279 # Insert the option either (1) after the last *FLAGS variable, or 15280 # (2) before a word containing "conftest.", or (3) at the end. 15281 # Note that $ac_compile itself does not contain backslashes and begins 15282 # with a dollar sign (not a hyphen), so the echo should work correctly. 15283 # The option is referenced via a variable to avoid confusing sed. 15284 lt_compile=`echo "$ac_compile" | $SED \ 15285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15287 -e 's:$: $lt_compiler_flag:'` 15288 (eval echo "\"\$as_me:15283: $lt_compile\"" >&5) 15289 (eval "$lt_compile" 2>conftest.err) 15290 ac_status=$? 15291 cat conftest.err >&5 15292 echo "$as_me:15287: \$? = $ac_status" >&5 15293 if (exit $ac_status) && test -s "$ac_outfile"; then 15294 # The compiler can only warn and ignore the option if not recognized 15295 # So say no if there are warnings other than the usual output. 15296 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15298 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15299 lt_cv_prog_compiler_rtti_exceptions=yes 15300 fi 15301 fi 15302 $rm conftest* 15303 15304fi 15305echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15306echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15307 15308if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15309 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15310else 15311 : 15312fi 15313 15314fi 15315 15316lt_prog_compiler_wl_GCJ= 15317lt_prog_compiler_pic_GCJ= 15318lt_prog_compiler_static_GCJ= 15319 15320echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15321echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15322 15323 if test "$GCC" = yes; then 15324 lt_prog_compiler_wl_GCJ='-Wl,' 15325 lt_prog_compiler_static_GCJ='-static' 15326 15327 case $host_os in 15328 aix*) 15329 # All AIX code is PIC. 15330 if test "$host_cpu" = ia64; then 15331 # AIX 5 now supports IA64 processor 15332 lt_prog_compiler_static_GCJ='-Bstatic' 15333 fi 15334 ;; 15335 15336 amigaos*) 15337 # FIXME: we need at least 68020 code to build shared libraries, but 15338 # adding the `-m68020' flag to GCC prevents building anything better, 15339 # like `-m68040'. 15340 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15341 ;; 15342 15343 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15344 # PIC is the default for these OSes. 15345 ;; 15346 15347 mingw* | pw32* | os2*) 15348 # This hack is so that the source file can tell whether it is being 15349 # built for inclusion in a dll (and should export symbols for example). 15350 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15351 ;; 15352 15353 darwin* | rhapsody*) 15354 # PIC is the default on this platform 15355 # Common symbols not allowed in MH_DYLIB files 15356 lt_prog_compiler_pic_GCJ='-fno-common' 15357 ;; 15358 15359 interix3*) 15360 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15361 # Instead, we relocate shared libraries at runtime. 15362 ;; 15363 15364 msdosdjgpp*) 15365 # Just because we use GCC doesn't mean we suddenly get shared libraries 15366 # on systems that don't support them. 15367 lt_prog_compiler_can_build_shared_GCJ=no 15368 enable_shared=no 15369 ;; 15370 15371 sysv4*MP*) 15372 if test -d /usr/nec; then 15373 lt_prog_compiler_pic_GCJ=-Kconform_pic 15374 fi 15375 ;; 15376 15377 hpux*) 15378 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15379 # not for PA HP-UX. 15380 case $host_cpu in 15381 hppa*64*|ia64*) 15382 # +Z the default 15383 ;; 15384 *) 15385 lt_prog_compiler_pic_GCJ='-fPIC' 15386 ;; 15387 esac 15388 ;; 15389 15390 *) 15391 lt_prog_compiler_pic_GCJ='-fPIC' 15392 ;; 15393 esac 15394 else 15395 # PORTME Check for flag to pass linker flags through the system compiler. 15396 case $host_os in 15397 aix*) 15398 lt_prog_compiler_wl_GCJ='-Wl,' 15399 if test "$host_cpu" = ia64; then 15400 # AIX 5 now supports IA64 processor 15401 lt_prog_compiler_static_GCJ='-Bstatic' 15402 else 15403 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15404 fi 15405 ;; 15406 darwin*) 15407 # PIC is the default on this platform 15408 # Common symbols not allowed in MH_DYLIB files 15409 case $cc_basename in 15410 xlc*) 15411 lt_prog_compiler_pic_GCJ='-qnocommon' 15412 lt_prog_compiler_wl_GCJ='-Wl,' 15413 ;; 15414 esac 15415 ;; 15416 15417 mingw* | pw32* | os2*) 15418 # This hack is so that the source file can tell whether it is being 15419 # built for inclusion in a dll (and should export symbols for example). 15420 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15421 ;; 15422 15423 hpux9* | hpux10* | hpux11*) 15424 lt_prog_compiler_wl_GCJ='-Wl,' 15425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15426 # not for PA HP-UX. 15427 case $host_cpu in 15428 hppa*64*|ia64*) 15429 # +Z the default 15430 ;; 15431 *) 15432 lt_prog_compiler_pic_GCJ='+Z' 15433 ;; 15434 esac 15435 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15436 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15437 ;; 15438 15439 irix5* | irix6* | nonstopux*) 15440 lt_prog_compiler_wl_GCJ='-Wl,' 15441 # PIC (with -KPIC) is the default. 15442 lt_prog_compiler_static_GCJ='-non_shared' 15443 ;; 15444 15445 newsos6) 15446 lt_prog_compiler_pic_GCJ='-KPIC' 15447 lt_prog_compiler_static_GCJ='-Bstatic' 15448 ;; 15449 15450 linux*) 15451 case $cc_basename in 15452 icc* | ecc*) 15453 lt_prog_compiler_wl_GCJ='-Wl,' 15454 lt_prog_compiler_pic_GCJ='-KPIC' 15455 lt_prog_compiler_static_GCJ='-static' 15456 ;; 15457 pgcc* | pgf77* | pgf90* | pgf95*) 15458 # Portland Group compilers (*not* the Pentium gcc compiler, 15459 # which looks to be a dead project) 15460 lt_prog_compiler_wl_GCJ='-Wl,' 15461 lt_prog_compiler_pic_GCJ='-fpic' 15462 lt_prog_compiler_static_GCJ='-Bstatic' 15463 ;; 15464 ccc*) 15465 lt_prog_compiler_wl_GCJ='-Wl,' 15466 # All Alpha code is PIC. 15467 lt_prog_compiler_static_GCJ='-non_shared' 15468 ;; 15469 esac 15470 ;; 15471 15472 osf3* | osf4* | osf5*) 15473 lt_prog_compiler_wl_GCJ='-Wl,' 15474 # All OSF/1 code is PIC. 15475 lt_prog_compiler_static_GCJ='-non_shared' 15476 ;; 15477 15478 solaris*) 15479 lt_prog_compiler_pic_GCJ='-KPIC' 15480 lt_prog_compiler_static_GCJ='-Bstatic' 15481 case $cc_basename in 15482 f77* | f90* | f95*) 15483 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15484 *) 15485 lt_prog_compiler_wl_GCJ='-Wl,';; 15486 esac 15487 ;; 15488 15489 sunos4*) 15490 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15491 lt_prog_compiler_pic_GCJ='-PIC' 15492 lt_prog_compiler_static_GCJ='-Bstatic' 15493 ;; 15494 15495 sysv4 | sysv4.2uw2* | sysv4.3*) 15496 lt_prog_compiler_wl_GCJ='-Wl,' 15497 lt_prog_compiler_pic_GCJ='-KPIC' 15498 lt_prog_compiler_static_GCJ='-Bstatic' 15499 ;; 15500 15501 sysv4*MP*) 15502 if test -d /usr/nec ;then 15503 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15504 lt_prog_compiler_static_GCJ='-Bstatic' 15505 fi 15506 ;; 15507 15508 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15509 lt_prog_compiler_wl_GCJ='-Wl,' 15510 lt_prog_compiler_pic_GCJ='-KPIC' 15511 lt_prog_compiler_static_GCJ='-Bstatic' 15512 ;; 15513 15514 unicos*) 15515 lt_prog_compiler_wl_GCJ='-Wl,' 15516 lt_prog_compiler_can_build_shared_GCJ=no 15517 ;; 15518 15519 uts4*) 15520 lt_prog_compiler_pic_GCJ='-pic' 15521 lt_prog_compiler_static_GCJ='-Bstatic' 15522 ;; 15523 15524 *) 15525 lt_prog_compiler_can_build_shared_GCJ=no 15526 ;; 15527 esac 15528 fi 15529 15530echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15531echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15532 15533# 15534# Check to make sure the PIC flag actually works. 15535# 15536if test -n "$lt_prog_compiler_pic_GCJ"; then 15537 15538echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15539echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15540if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15541 echo $ECHO_N "(cached) $ECHO_C" >&6 15542else 15543 lt_prog_compiler_pic_works_GCJ=no 15544 ac_outfile=conftest.$ac_objext 15545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15546 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15547 # Insert the option either (1) after the last *FLAGS variable, or 15548 # (2) before a word containing "conftest.", or (3) at the end. 15549 # Note that $ac_compile itself does not contain backslashes and begins 15550 # with a dollar sign (not a hyphen), so the echo should work correctly. 15551 # The option is referenced via a variable to avoid confusing sed. 15552 lt_compile=`echo "$ac_compile" | $SED \ 15553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15555 -e 's:$: $lt_compiler_flag:'` 15556 (eval echo "\"\$as_me:15551: $lt_compile\"" >&5) 15557 (eval "$lt_compile" 2>conftest.err) 15558 ac_status=$? 15559 cat conftest.err >&5 15560 echo "$as_me:15555: \$? = $ac_status" >&5 15561 if (exit $ac_status) && test -s "$ac_outfile"; then 15562 # The compiler can only warn and ignore the option if not recognized 15563 # So say no if there are warnings other than the usual output. 15564 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15566 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15567 lt_prog_compiler_pic_works_GCJ=yes 15568 fi 15569 fi 15570 $rm conftest* 15571 15572fi 15573echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15574echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15575 15576if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15577 case $lt_prog_compiler_pic_GCJ in 15578 "" | " "*) ;; 15579 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15580 esac 15581else 15582 lt_prog_compiler_pic_GCJ= 15583 lt_prog_compiler_can_build_shared_GCJ=no 15584fi 15585 15586fi 15587case $host_os in 15588 # For platforms which do not support PIC, -DPIC is meaningless: 15589 *djgpp*) 15590 lt_prog_compiler_pic_GCJ= 15591 ;; 15592 *) 15593 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15594 ;; 15595esac 15596 15597# 15598# Check to make sure the static flag actually works. 15599# 15600wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15601echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15602echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15603if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15604 echo $ECHO_N "(cached) $ECHO_C" >&6 15605else 15606 lt_prog_compiler_static_works_GCJ=no 15607 save_LDFLAGS="$LDFLAGS" 15608 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15609 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15610 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15611 # The linker can only warn and ignore the option if not recognized 15612 # So say no if there are warnings 15613 if test -s conftest.err; then 15614 # Append any errors to the config.log. 15615 cat conftest.err 1>&5 15616 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15618 if diff conftest.exp conftest.er2 >/dev/null; then 15619 lt_prog_compiler_static_works_GCJ=yes 15620 fi 15621 else 15622 lt_prog_compiler_static_works_GCJ=yes 15623 fi 15624 fi 15625 $rm conftest* 15626 LDFLAGS="$save_LDFLAGS" 15627 15628fi 15629echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15630echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15631 15632if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15633 : 15634else 15635 lt_prog_compiler_static_GCJ= 15636fi 15637 15638 15639echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15640echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15641if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15642 echo $ECHO_N "(cached) $ECHO_C" >&6 15643else 15644 lt_cv_prog_compiler_c_o_GCJ=no 15645 $rm -r conftest 2>/dev/null 15646 mkdir conftest 15647 cd conftest 15648 mkdir out 15649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15650 15651 lt_compiler_flag="-o out/conftest2.$ac_objext" 15652 # Insert the option either (1) after the last *FLAGS variable, or 15653 # (2) before a word containing "conftest.", or (3) at the end. 15654 # Note that $ac_compile itself does not contain backslashes and begins 15655 # with a dollar sign (not a hyphen), so the echo should work correctly. 15656 lt_compile=`echo "$ac_compile" | $SED \ 15657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15659 -e 's:$: $lt_compiler_flag:'` 15660 (eval echo "\"\$as_me:15655: $lt_compile\"" >&5) 15661 (eval "$lt_compile" 2>out/conftest.err) 15662 ac_status=$? 15663 cat out/conftest.err >&5 15664 echo "$as_me:15659: \$? = $ac_status" >&5 15665 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15666 then 15667 # The compiler can only warn and ignore the option if not recognized 15668 # So say no if there are warnings 15669 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15670 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15671 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15672 lt_cv_prog_compiler_c_o_GCJ=yes 15673 fi 15674 fi 15675 chmod u+w . 2>&5 15676 $rm conftest* 15677 # SGI C++ compiler will create directory out/ii_files/ for 15678 # template instantiation 15679 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15680 $rm out/* && rmdir out 15681 cd .. 15682 rmdir conftest 15683 $rm conftest* 15684 15685fi 15686echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15687echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15688 15689 15690hard_links="nottested" 15691if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15692 # do not overwrite the value of need_locks provided by the user 15693 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15694echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15695 hard_links=yes 15696 $rm conftest* 15697 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15698 touch conftest.a 15699 ln conftest.a conftest.b 2>&5 || hard_links=no 15700 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15701 echo "$as_me:$LINENO: result: $hard_links" >&5 15702echo "${ECHO_T}$hard_links" >&6 15703 if test "$hard_links" = no; then 15704 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15705echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15706 need_locks=warn 15707 fi 15708else 15709 need_locks=no 15710fi 15711 15712echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15713echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15714 15715 runpath_var= 15716 allow_undefined_flag_GCJ= 15717 enable_shared_with_static_runtimes_GCJ=no 15718 archive_cmds_GCJ= 15719 archive_expsym_cmds_GCJ= 15720 old_archive_From_new_cmds_GCJ= 15721 old_archive_from_expsyms_cmds_GCJ= 15722 export_dynamic_flag_spec_GCJ= 15723 whole_archive_flag_spec_GCJ= 15724 thread_safe_flag_spec_GCJ= 15725 hardcode_libdir_flag_spec_GCJ= 15726 hardcode_libdir_flag_spec_ld_GCJ= 15727 hardcode_libdir_separator_GCJ= 15728 hardcode_direct_GCJ=no 15729 hardcode_minus_L_GCJ=no 15730 hardcode_shlibpath_var_GCJ=unsupported 15731 link_all_deplibs_GCJ=unknown 15732 hardcode_automatic_GCJ=no 15733 module_cmds_GCJ= 15734 module_expsym_cmds_GCJ= 15735 always_export_symbols_GCJ=no 15736 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15737 # include_expsyms should be a list of space-separated symbols to be *always* 15738 # included in the symbol list 15739 include_expsyms_GCJ= 15740 # exclude_expsyms can be an extended regexp of symbols to exclude 15741 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15742 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15743 # as well as any symbol that contains `d'. 15744 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15745 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15746 # platforms (ab)use it in PIC code, but their linkers get confused if 15747 # the symbol is explicitly referenced. Since portable code cannot 15748 # rely on this symbol name, it's probably fine to never include it in 15749 # preloaded symbol tables. 15750 extract_expsyms_cmds= 15751 # Just being paranoid about ensuring that cc_basename is set. 15752 for cc_temp in $compiler""; do 15753 case $cc_temp in 15754 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15755 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15756 \-*) ;; 15757 *) break;; 15758 esac 15759done 15760cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15761 15762 case $host_os in 15763 cygwin* | mingw* | pw32*) 15764 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15765 # When not using gcc, we currently assume that we are using 15766 # Microsoft Visual C++. 15767 if test "$GCC" != yes; then 15768 with_gnu_ld=no 15769 fi 15770 ;; 15771 interix*) 15772 # we just hope/assume this is gcc and not c89 (= MSVC++) 15773 with_gnu_ld=yes 15774 ;; 15775 openbsd*) 15776 with_gnu_ld=no 15777 ;; 15778 esac 15779 15780 ld_shlibs_GCJ=yes 15781 if test "$with_gnu_ld" = yes; then 15782 # If archive_cmds runs LD, not CC, wlarc should be empty 15783 wlarc='${wl}' 15784 15785 # Set some defaults for GNU ld with shared library support. These 15786 # are reset later if shared libraries are not supported. Putting them 15787 # here allows them to be overridden if necessary. 15788 runpath_var=LD_RUN_PATH 15789 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15790 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15791 # ancient GNU ld didn't support --whole-archive et. al. 15792 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15793 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15794 else 15795 whole_archive_flag_spec_GCJ= 15796 fi 15797 supports_anon_versioning=no 15798 case `$LD -v 2>/dev/null` in 15799 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15800 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15801 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15802 *\ 2.11.*) ;; # other 2.11 versions 15803 *) supports_anon_versioning=yes ;; 15804 esac 15805 15806 # See if GNU ld supports shared libraries. 15807 case $host_os in 15808 aix3* | aix4* | aix5*) 15809 # On AIX/PPC, the GNU linker is very broken 15810 if test "$host_cpu" != ia64; then 15811 ld_shlibs_GCJ=no 15812 cat <<EOF 1>&2 15813 15814*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15815*** to be unable to reliably create shared libraries on AIX. 15816*** Therefore, libtool is disabling shared libraries support. If you 15817*** really care for shared libraries, you may want to modify your PATH 15818*** so that a non-GNU linker is found, and then restart. 15819 15820EOF 15821 fi 15822 ;; 15823 15824 amigaos*) 15825 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)' 15826 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15827 hardcode_minus_L_GCJ=yes 15828 15829 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15830 # that the semantics of dynamic libraries on AmigaOS, at least up 15831 # to version 4, is to share data among multiple programs linked 15832 # with the same dynamic library. Since this doesn't match the 15833 # behavior of shared libraries on other platforms, we can't use 15834 # them. 15835 ld_shlibs_GCJ=no 15836 ;; 15837 15838 beos*) 15839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15840 allow_undefined_flag_GCJ=unsupported 15841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15842 # support --undefined. This deserves some investigation. FIXME 15843 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15844 else 15845 ld_shlibs_GCJ=no 15846 fi 15847 ;; 15848 15849 cygwin* | mingw* | pw32*) 15850 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15851 # as there is no search path for DLLs. 15852 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15853 allow_undefined_flag_GCJ=unsupported 15854 always_export_symbols_GCJ=no 15855 enable_shared_with_static_runtimes_GCJ=yes 15856 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15857 15858 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15859 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15860 # If the export-symbols file already is a .def file (1st line 15861 # is EXPORTS), use it as is; otherwise, prepend... 15862 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15863 cp $export_symbols $output_objdir/$soname.def; 15864 else 15865 echo EXPORTS > $output_objdir/$soname.def; 15866 cat $export_symbols >> $output_objdir/$soname.def; 15867 fi~ 15868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15869 else 15870 ld_shlibs_GCJ=no 15871 fi 15872 ;; 15873 15874 interix3*) 15875 hardcode_direct_GCJ=no 15876 hardcode_shlibpath_var_GCJ=no 15877 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15878 export_dynamic_flag_spec_GCJ='${wl}-E' 15879 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15880 # Instead, shared libraries are loaded at an image base (0x10000000 by 15881 # default) and relocated if they conflict, which is a slow very memory 15882 # consuming and fragmenting process. To avoid this, we pick a random, 15883 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15884 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15885 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15886 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15887 ;; 15888 15889 linux*) 15890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15891 tmp_addflag= 15892 case $cc_basename,$host_cpu in 15893 pgcc*) # Portland Group C compiler 15894 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' 15895 tmp_addflag=' $pic_flag' 15896 ;; 15897 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15898 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' 15899 tmp_addflag=' $pic_flag -Mnomain' ;; 15900 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15901 tmp_addflag=' -i_dynamic' ;; 15902 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15903 tmp_addflag=' -i_dynamic -nofor_main' ;; 15904 ifc* | ifort*) # Intel Fortran compiler 15905 tmp_addflag=' -nofor_main' ;; 15906 esac 15907 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15908 15909 if test $supports_anon_versioning = yes; then 15910 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 15911 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15912 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15913 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15914 fi 15915 else 15916 ld_shlibs_GCJ=no 15917 fi 15918 ;; 15919 15920 netbsd*) 15921 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15922 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15923 wlarc= 15924 else 15925 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15926 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15927 fi 15928 ;; 15929 15930 solaris*) 15931 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15932 ld_shlibs_GCJ=no 15933 cat <<EOF 1>&2 15934 15935*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15936*** create shared libraries on Solaris systems. Therefore, libtool 15937*** is disabling shared libraries support. We urge you to upgrade GNU 15938*** binutils to release 2.9.1 or newer. Another option is to modify 15939*** your PATH or compiler configuration so that the native linker is 15940*** used, and then restart. 15941 15942EOF 15943 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15944 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15945 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15946 else 15947 ld_shlibs_GCJ=no 15948 fi 15949 ;; 15950 15951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15952 case `$LD -v 2>&1` in 15953 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15954 ld_shlibs_GCJ=no 15955 cat <<_LT_EOF 1>&2 15956 15957*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15958*** reliably create shared libraries on SCO systems. Therefore, libtool 15959*** is disabling shared libraries support. We urge you to upgrade GNU 15960*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15961*** your PATH or compiler configuration so that the native linker is 15962*** used, and then restart. 15963 15964_LT_EOF 15965 ;; 15966 *) 15967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15968 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15969 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15970 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15971 else 15972 ld_shlibs_GCJ=no 15973 fi 15974 ;; 15975 esac 15976 ;; 15977 15978 sunos4*) 15979 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15980 wlarc= 15981 hardcode_direct_GCJ=yes 15982 hardcode_shlibpath_var_GCJ=no 15983 ;; 15984 15985 *) 15986 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15988 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15989 else 15990 ld_shlibs_GCJ=no 15991 fi 15992 ;; 15993 esac 15994 15995 if test "$ld_shlibs_GCJ" = no; then 15996 runpath_var= 15997 hardcode_libdir_flag_spec_GCJ= 15998 export_dynamic_flag_spec_GCJ= 15999 whole_archive_flag_spec_GCJ= 16000 fi 16001 else 16002 # PORTME fill in a description of your system's linker (not GNU ld) 16003 case $host_os in 16004 aix3*) 16005 allow_undefined_flag_GCJ=unsupported 16006 always_export_symbols_GCJ=yes 16007 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' 16008 # Note: this linker hardcodes the directories in LIBPATH if there 16009 # are no directories specified by -L. 16010 hardcode_minus_L_GCJ=yes 16011 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16012 # Neither direct hardcoding nor static linking is supported with a 16013 # broken collect2. 16014 hardcode_direct_GCJ=unsupported 16015 fi 16016 ;; 16017 16018 aix4* | aix5*) 16019 if test "$host_cpu" = ia64; then 16020 # On IA64, the linker does run time linking by default, so we don't 16021 # have to do anything special. 16022 aix_use_runtimelinking=no 16023 exp_sym_flag='-Bexport' 16024 no_entry_flag="" 16025 else 16026 # If we're using GNU nm, then we don't want the "-C" option. 16027 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16028 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16029 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' 16030 else 16031 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' 16032 fi 16033 aix_use_runtimelinking=no 16034 16035 # Test if we are trying to use run time linking or normal 16036 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16037 # need to do runtime linking. 16038 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16039 for ld_flag in $LDFLAGS; do 16040 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16041 aix_use_runtimelinking=yes 16042 break 16043 fi 16044 done 16045 ;; 16046 esac 16047 16048 exp_sym_flag='-bexport' 16049 no_entry_flag='-bnoentry' 16050 fi 16051 16052 # When large executables or shared objects are built, AIX ld can 16053 # have problems creating the table of contents. If linking a library 16054 # or program results in "error TOC overflow" add -mminimal-toc to 16055 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16056 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16057 16058 archive_cmds_GCJ='' 16059 hardcode_direct_GCJ=yes 16060 hardcode_libdir_separator_GCJ=':' 16061 link_all_deplibs_GCJ=yes 16062 16063 if test "$GCC" = yes; then 16064 case $host_os in aix4.[012]|aix4.[012].*) 16065 # We only want to do this on AIX 4.2 and lower, the check 16066 # below for broken collect2 doesn't work under 4.3+ 16067 collect2name=`${CC} -print-prog-name=collect2` 16068 if test -f "$collect2name" && \ 16069 strings "$collect2name" | grep resolve_lib_name >/dev/null 16070 then 16071 # We have reworked collect2 16072 hardcode_direct_GCJ=yes 16073 else 16074 # We have old collect2 16075 hardcode_direct_GCJ=unsupported 16076 # It fails to find uninstalled libraries when the uninstalled 16077 # path is not listed in the libpath. Setting hardcode_minus_L 16078 # to unsupported forces relinking 16079 hardcode_minus_L_GCJ=yes 16080 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16081 hardcode_libdir_separator_GCJ= 16082 fi 16083 ;; 16084 esac 16085 shared_flag='-shared' 16086 if test "$aix_use_runtimelinking" = yes; then 16087 shared_flag="$shared_flag "'${wl}-G' 16088 fi 16089 else 16090 # not using gcc 16091 if test "$host_cpu" = ia64; then 16092 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16093 # chokes on -Wl,-G. The following line is correct: 16094 shared_flag='-G' 16095 else 16096 if test "$aix_use_runtimelinking" = yes; then 16097 shared_flag='${wl}-G' 16098 else 16099 shared_flag='${wl}-bM:SRE' 16100 fi 16101 fi 16102 fi 16103 16104 # It seems that -bexpall does not export symbols beginning with 16105 # underscore (_), so it is better to generate a list of symbols to export. 16106 always_export_symbols_GCJ=yes 16107 if test "$aix_use_runtimelinking" = yes; then 16108 # Warning - without using the other runtime loading flags (-brtl), 16109 # -berok will link without error, but may produce a broken library. 16110 allow_undefined_flag_GCJ='-berok' 16111 # Determine the default libpath from the value encoded in an empty executable. 16112 cat >conftest.$ac_ext <<_ACEOF 16113/* confdefs.h. */ 16114_ACEOF 16115cat confdefs.h >>conftest.$ac_ext 16116cat >>conftest.$ac_ext <<_ACEOF 16117/* end confdefs.h. */ 16118 16119int 16120main () 16121{ 16122 16123 ; 16124 return 0; 16125} 16126_ACEOF 16127rm -f conftest.$ac_objext conftest$ac_exeext 16128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16129 (eval $ac_link) 2>conftest.er1 16130 ac_status=$? 16131 grep -v '^ *+' conftest.er1 >conftest.err 16132 rm -f conftest.er1 16133 cat conftest.err >&5 16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16135 (exit $ac_status); } && 16136 { ac_try='test -z "$ac_c_werror_flag" 16137 || test ! -s conftest.err' 16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16139 (eval $ac_try) 2>&5 16140 ac_status=$? 16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16142 (exit $ac_status); }; } && 16143 { ac_try='test -s conftest$ac_exeext' 16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16145 (eval $ac_try) 2>&5 16146 ac_status=$? 16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16148 (exit $ac_status); }; }; then 16149 16150aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16151}'` 16152# Check for a 64-bit object if we didn't find anything. 16153if 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; } 16154}'`; fi 16155else 16156 echo "$as_me: failed program was:" >&5 16157sed 's/^/| /' conftest.$ac_ext >&5 16158 16159fi 16160rm -f conftest.err conftest.$ac_objext \ 16161 conftest$ac_exeext conftest.$ac_ext 16162if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16163 16164 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16165 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16166 else 16167 if test "$host_cpu" = ia64; then 16168 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16169 allow_undefined_flag_GCJ="-z nodefs" 16170 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 16171 else 16172 # Determine the default libpath from the value encoded in an empty executable. 16173 cat >conftest.$ac_ext <<_ACEOF 16174/* confdefs.h. */ 16175_ACEOF 16176cat confdefs.h >>conftest.$ac_ext 16177cat >>conftest.$ac_ext <<_ACEOF 16178/* end confdefs.h. */ 16179 16180int 16181main () 16182{ 16183 16184 ; 16185 return 0; 16186} 16187_ACEOF 16188rm -f conftest.$ac_objext conftest$ac_exeext 16189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16190 (eval $ac_link) 2>conftest.er1 16191 ac_status=$? 16192 grep -v '^ *+' conftest.er1 >conftest.err 16193 rm -f conftest.er1 16194 cat conftest.err >&5 16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16196 (exit $ac_status); } && 16197 { ac_try='test -z "$ac_c_werror_flag" 16198 || test ! -s conftest.err' 16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16200 (eval $ac_try) 2>&5 16201 ac_status=$? 16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16203 (exit $ac_status); }; } && 16204 { ac_try='test -s conftest$ac_exeext' 16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16206 (eval $ac_try) 2>&5 16207 ac_status=$? 16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16209 (exit $ac_status); }; }; then 16210 16211aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16212}'` 16213# Check for a 64-bit object if we didn't find anything. 16214if 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; } 16215}'`; fi 16216else 16217 echo "$as_me: failed program was:" >&5 16218sed 's/^/| /' conftest.$ac_ext >&5 16219 16220fi 16221rm -f conftest.err conftest.$ac_objext \ 16222 conftest$ac_exeext conftest.$ac_ext 16223if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16224 16225 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16226 # Warning - without using the other run time loading flags, 16227 # -berok will link without error, but may produce a broken library. 16228 no_undefined_flag_GCJ=' ${wl}-bernotok' 16229 allow_undefined_flag_GCJ=' ${wl}-berok' 16230 # Exported symbols can be pulled into shared objects from archives 16231 whole_archive_flag_spec_GCJ='$convenience' 16232 archive_cmds_need_lc_GCJ=yes 16233 # This is similar to how AIX traditionally builds its shared libraries. 16234 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16235 fi 16236 fi 16237 ;; 16238 16239 amigaos*) 16240 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)' 16241 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16242 hardcode_minus_L_GCJ=yes 16243 # see comment about different semantics on the GNU ld section 16244 ld_shlibs_GCJ=no 16245 ;; 16246 16247 bsdi[45]*) 16248 export_dynamic_flag_spec_GCJ=-rdynamic 16249 ;; 16250 16251 cygwin* | mingw* | pw32*) 16252 # When not using gcc, we currently assume that we are using 16253 # Microsoft Visual C++. 16254 # hardcode_libdir_flag_spec is actually meaningless, as there is 16255 # no search path for DLLs. 16256 hardcode_libdir_flag_spec_GCJ=' ' 16257 allow_undefined_flag_GCJ=unsupported 16258 # Tell ltmain to make .lib files, not .a files. 16259 libext=lib 16260 # Tell ltmain to make .dll files, not .so files. 16261 shrext_cmds=".dll" 16262 # FIXME: Setting linknames here is a bad hack. 16263 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16264 # The linker will automatically build a .lib file if we build a DLL. 16265 old_archive_From_new_cmds_GCJ='true' 16266 # FIXME: Should let the user specify the lib program. 16267 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16268 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16269 enable_shared_with_static_runtimes_GCJ=yes 16270 ;; 16271 16272 darwin* | rhapsody*) 16273 case $host_os in 16274 rhapsody* | darwin1.[012]) 16275 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16276 ;; 16277 *) # Darwin 1.3 on 16278 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16279 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16280 else 16281 case ${MACOSX_DEPLOYMENT_TARGET} in 16282 10.[012]) 16283 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16284 ;; 16285 10.*) 16286 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16287 ;; 16288 esac 16289 fi 16290 ;; 16291 esac 16292 archive_cmds_need_lc_GCJ=no 16293 hardcode_direct_GCJ=no 16294 hardcode_automatic_GCJ=yes 16295 hardcode_shlibpath_var_GCJ=unsupported 16296 whole_archive_flag_spec_GCJ='' 16297 link_all_deplibs_GCJ=yes 16298 if test "$GCC" = yes ; then 16299 output_verbose_link_cmd='echo' 16300 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16301 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16302 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16303 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}' 16304 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}' 16305 else 16306 case $cc_basename in 16307 xlc*) 16308 output_verbose_link_cmd='echo' 16309 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16310 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16311 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16312 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}' 16313 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}' 16314 ;; 16315 *) 16316 ld_shlibs_GCJ=no 16317 ;; 16318 esac 16319 fi 16320 ;; 16321 16322 dgux*) 16323 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16324 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16325 hardcode_shlibpath_var_GCJ=no 16326 ;; 16327 16328 freebsd1*) 16329 ld_shlibs_GCJ=no 16330 ;; 16331 16332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16333 # support. Future versions do this automatically, but an explicit c++rt0.o 16334 # does not break anything, and helps significantly (at the cost of a little 16335 # extra space). 16336 freebsd2.2*) 16337 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16338 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16339 hardcode_direct_GCJ=yes 16340 hardcode_shlibpath_var_GCJ=no 16341 ;; 16342 16343 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16344 freebsd2*) 16345 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16346 hardcode_direct_GCJ=yes 16347 hardcode_minus_L_GCJ=yes 16348 hardcode_shlibpath_var_GCJ=no 16349 ;; 16350 16351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16352 freebsd* | kfreebsd*-gnu | dragonfly*) 16353 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16354 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16355 hardcode_direct_GCJ=yes 16356 hardcode_shlibpath_var_GCJ=no 16357 ;; 16358 16359 hpux9*) 16360 if test "$GCC" = yes; then 16361 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' 16362 else 16363 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' 16364 fi 16365 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16366 hardcode_libdir_separator_GCJ=: 16367 hardcode_direct_GCJ=yes 16368 16369 # hardcode_minus_L: Not really in the search PATH, 16370 # but as the default location of the library. 16371 hardcode_minus_L_GCJ=yes 16372 export_dynamic_flag_spec_GCJ='${wl}-E' 16373 ;; 16374 16375 hpux10*) 16376 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16377 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16378 else 16379 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16380 fi 16381 if test "$with_gnu_ld" = no; then 16382 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16383 hardcode_libdir_separator_GCJ=: 16384 16385 hardcode_direct_GCJ=yes 16386 export_dynamic_flag_spec_GCJ='${wl}-E' 16387 16388 # hardcode_minus_L: Not really in the search PATH, 16389 # but as the default location of the library. 16390 hardcode_minus_L_GCJ=yes 16391 fi 16392 ;; 16393 16394 hpux11*) 16395 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16396 case $host_cpu in 16397 hppa*64*) 16398 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16399 ;; 16400 ia64*) 16401 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16402 ;; 16403 *) 16404 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16405 ;; 16406 esac 16407 else 16408 case $host_cpu in 16409 hppa*64*) 16410 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16411 ;; 16412 ia64*) 16413 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16414 ;; 16415 *) 16416 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16417 ;; 16418 esac 16419 fi 16420 if test "$with_gnu_ld" = no; then 16421 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16422 hardcode_libdir_separator_GCJ=: 16423 16424 case $host_cpu in 16425 hppa*64*|ia64*) 16426 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16427 hardcode_direct_GCJ=no 16428 hardcode_shlibpath_var_GCJ=no 16429 ;; 16430 *) 16431 hardcode_direct_GCJ=yes 16432 export_dynamic_flag_spec_GCJ='${wl}-E' 16433 16434 # hardcode_minus_L: Not really in the search PATH, 16435 # but as the default location of the library. 16436 hardcode_minus_L_GCJ=yes 16437 ;; 16438 esac 16439 fi 16440 ;; 16441 16442 irix5* | irix6* | nonstopux*) 16443 if test "$GCC" = yes; then 16444 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' 16445 else 16446 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' 16447 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16448 fi 16449 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16450 hardcode_libdir_separator_GCJ=: 16451 link_all_deplibs_GCJ=yes 16452 ;; 16453 16454 netbsd*) 16455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16456 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16457 else 16458 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16459 fi 16460 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16461 hardcode_direct_GCJ=yes 16462 hardcode_shlibpath_var_GCJ=no 16463 ;; 16464 16465 newsos6) 16466 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16467 hardcode_direct_GCJ=yes 16468 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16469 hardcode_libdir_separator_GCJ=: 16470 hardcode_shlibpath_var_GCJ=no 16471 ;; 16472 16473 openbsd*) 16474 hardcode_direct_GCJ=yes 16475 hardcode_shlibpath_var_GCJ=no 16476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16477 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16478 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16480 export_dynamic_flag_spec_GCJ='${wl}-E' 16481 else 16482 case $host_os in 16483 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16484 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16485 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16486 ;; 16487 *) 16488 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16490 ;; 16491 esac 16492 fi 16493 ;; 16494 16495 os2*) 16496 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16497 hardcode_minus_L_GCJ=yes 16498 allow_undefined_flag_GCJ=unsupported 16499 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' 16500 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16501 ;; 16502 16503 osf3*) 16504 if test "$GCC" = yes; then 16505 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16506 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' 16507 else 16508 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16509 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' 16510 fi 16511 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16512 hardcode_libdir_separator_GCJ=: 16513 ;; 16514 16515 osf4* | osf5*) # as osf3* with the addition of -msym flag 16516 if test "$GCC" = yes; then 16517 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16518 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' 16519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16520 else 16521 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16522 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' 16523 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~ 16524 $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' 16525 16526 # Both c and cxx compiler support -rpath directly 16527 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16528 fi 16529 hardcode_libdir_separator_GCJ=: 16530 ;; 16531 16532 solaris*) 16533 no_undefined_flag_GCJ=' -z text' 16534 if test "$GCC" = yes; then 16535 wlarc='${wl}' 16536 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16537 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16538 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16539 else 16540 wlarc='' 16541 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16542 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16543 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16544 fi 16545 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16546 hardcode_shlibpath_var_GCJ=no 16547 case $host_os in 16548 solaris2.[0-5] | solaris2.[0-5].*) ;; 16549 *) 16550 # The compiler driver will combine linker options so we 16551 # cannot just pass the convience library names through 16552 # without $wl, iff we do not link with $LD. 16553 # Luckily, gcc supports the same syntax we need for Sun Studio. 16554 # Supported since Solaris 2.6 (maybe 2.5.1?) 16555 case $wlarc in 16556 '') 16557 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16558 *) 16559 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' ;; 16560 esac ;; 16561 esac 16562 link_all_deplibs_GCJ=yes 16563 ;; 16564 16565 sunos4*) 16566 if test "x$host_vendor" = xsequent; then 16567 # Use $CC to link under sequent, because it throws in some extra .o 16568 # files that make .init and .fini sections work. 16569 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16570 else 16571 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16572 fi 16573 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16574 hardcode_direct_GCJ=yes 16575 hardcode_minus_L_GCJ=yes 16576 hardcode_shlibpath_var_GCJ=no 16577 ;; 16578 16579 sysv4) 16580 case $host_vendor in 16581 sni) 16582 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16583 hardcode_direct_GCJ=yes # is this really true??? 16584 ;; 16585 siemens) 16586 ## LD is ld it makes a PLAMLIB 16587 ## CC just makes a GrossModule. 16588 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16589 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16590 hardcode_direct_GCJ=no 16591 ;; 16592 motorola) 16593 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16594 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16595 ;; 16596 esac 16597 runpath_var='LD_RUN_PATH' 16598 hardcode_shlibpath_var_GCJ=no 16599 ;; 16600 16601 sysv4.3*) 16602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16603 hardcode_shlibpath_var_GCJ=no 16604 export_dynamic_flag_spec_GCJ='-Bexport' 16605 ;; 16606 16607 sysv4*MP*) 16608 if test -d /usr/nec; then 16609 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16610 hardcode_shlibpath_var_GCJ=no 16611 runpath_var=LD_RUN_PATH 16612 hardcode_runpath_var=yes 16613 ld_shlibs_GCJ=yes 16614 fi 16615 ;; 16616 16617 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16618 no_undefined_flag_GCJ='${wl}-z,text' 16619 archive_cmds_need_lc_GCJ=no 16620 hardcode_shlibpath_var_GCJ=no 16621 runpath_var='LD_RUN_PATH' 16622 16623 if test "$GCC" = yes; then 16624 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16625 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16626 else 16627 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16628 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16629 fi 16630 ;; 16631 16632 sysv5* | sco3.2v5* | sco5v6*) 16633 # Note: We can NOT use -z defs as we might desire, because we do not 16634 # link with -lc, and that would cause any symbols used from libc to 16635 # always be unresolved, which means just about no library would 16636 # ever link correctly. If we're not using GNU ld we use -z text 16637 # though, which does catch some bad symbols but isn't as heavy-handed 16638 # as -z defs. 16639 no_undefined_flag_GCJ='${wl}-z,text' 16640 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16641 archive_cmds_need_lc_GCJ=no 16642 hardcode_shlibpath_var_GCJ=no 16643 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16644 hardcode_libdir_separator_GCJ=':' 16645 link_all_deplibs_GCJ=yes 16646 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16647 runpath_var='LD_RUN_PATH' 16648 16649 if test "$GCC" = yes; then 16650 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16651 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16652 else 16653 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16654 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16655 fi 16656 ;; 16657 16658 uts4*) 16659 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16660 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16661 hardcode_shlibpath_var_GCJ=no 16662 ;; 16663 16664 *) 16665 ld_shlibs_GCJ=no 16666 ;; 16667 esac 16668 fi 16669 16670echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16671echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16672test "$ld_shlibs_GCJ" = no && can_build_shared=no 16673 16674# 16675# Do we need to explicitly link libc? 16676# 16677case "x$archive_cmds_need_lc_GCJ" in 16678x|xyes) 16679 # Assume -lc should be added 16680 archive_cmds_need_lc_GCJ=yes 16681 16682 if test "$enable_shared" = yes && test "$GCC" = yes; then 16683 case $archive_cmds_GCJ in 16684 *'~'*) 16685 # FIXME: we may have to deal with multi-command sequences. 16686 ;; 16687 '$CC '*) 16688 # Test whether the compiler implicitly links with -lc since on some 16689 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16690 # to ld, don't add -lc before -lgcc. 16691 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16692echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16693 $rm conftest* 16694 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16695 16696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16697 (eval $ac_compile) 2>&5 16698 ac_status=$? 16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16700 (exit $ac_status); } 2>conftest.err; then 16701 soname=conftest 16702 lib=conftest 16703 libobjs=conftest.$ac_objext 16704 deplibs= 16705 wl=$lt_prog_compiler_wl_GCJ 16706 pic_flag=$lt_prog_compiler_pic_GCJ 16707 compiler_flags=-v 16708 linker_flags=-v 16709 verstring= 16710 output_objdir=. 16711 libname=conftest 16712 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16713 allow_undefined_flag_GCJ= 16714 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16715 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16716 ac_status=$? 16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16718 (exit $ac_status); } 16719 then 16720 archive_cmds_need_lc_GCJ=no 16721 else 16722 archive_cmds_need_lc_GCJ=yes 16723 fi 16724 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16725 else 16726 cat conftest.err 1>&5 16727 fi 16728 $rm conftest* 16729 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16730echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16731 ;; 16732 esac 16733 fi 16734 ;; 16735esac 16736 16737echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16738echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16739library_names_spec= 16740libname_spec='lib$name' 16741soname_spec= 16742shrext_cmds=".so" 16743postinstall_cmds= 16744postuninstall_cmds= 16745finish_cmds= 16746finish_eval= 16747shlibpath_var= 16748shlibpath_overrides_runpath=unknown 16749version_type=none 16750dynamic_linker="$host_os ld.so" 16751sys_lib_dlsearch_path_spec="/lib /usr/lib" 16752if test "$GCC" = yes; then 16753 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16754 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16755 # if the path contains ";" then we assume it to be the separator 16756 # otherwise default to the standard path separator (i.e. ":") - it is 16757 # assumed that no part of a normal pathname contains ";" but that should 16758 # okay in the real world where ";" in dirpaths is itself problematic. 16759 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16760 else 16761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16762 fi 16763else 16764 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16765fi 16766need_lib_prefix=unknown 16767hardcode_into_libs=no 16768 16769# when you set need_version to no, make sure it does not cause -set_version 16770# flags to be left without arguments 16771need_version=unknown 16772 16773case $host_os in 16774aix3*) 16775 version_type=linux 16776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16777 shlibpath_var=LIBPATH 16778 16779 # AIX 3 has no versioning support, so we append a major version to the name. 16780 soname_spec='${libname}${release}${shared_ext}$major' 16781 ;; 16782 16783aix4* | aix5*) 16784 version_type=linux 16785 need_lib_prefix=no 16786 need_version=no 16787 hardcode_into_libs=yes 16788 if test "$host_cpu" = ia64; then 16789 # AIX 5 supports IA64 16790 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16791 shlibpath_var=LD_LIBRARY_PATH 16792 else 16793 # With GCC up to 2.95.x, collect2 would create an import file 16794 # for dependence libraries. The import file would start with 16795 # the line `#! .'. This would cause the generated library to 16796 # depend on `.', always an invalid library. This was fixed in 16797 # development snapshots of GCC prior to 3.0. 16798 case $host_os in 16799 aix4 | aix4.[01] | aix4.[01].*) 16800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16801 echo ' yes ' 16802 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16803 : 16804 else 16805 can_build_shared=no 16806 fi 16807 ;; 16808 esac 16809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16810 # soname into executable. Probably we can add versioning support to 16811 # collect2, so additional links can be useful in future. 16812 if test "$aix_use_runtimelinking" = yes; then 16813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16814 # instead of lib<name>.a to let people know that these are not 16815 # typical AIX shared libraries. 16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16817 else 16818 # We preserve .a as extension for shared libraries through AIX4.2 16819 # and later when we are not doing run time linking. 16820 library_names_spec='${libname}${release}.a $libname.a' 16821 soname_spec='${libname}${release}${shared_ext}$major' 16822 fi 16823 shlibpath_var=LIBPATH 16824 fi 16825 ;; 16826 16827amigaos*) 16828 library_names_spec='$libname.ixlibrary $libname.a' 16829 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16830 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' 16831 ;; 16832 16833beos*) 16834 library_names_spec='${libname}${shared_ext}' 16835 dynamic_linker="$host_os ld.so" 16836 shlibpath_var=LIBRARY_PATH 16837 ;; 16838 16839bsdi[45]*) 16840 version_type=linux 16841 need_version=no 16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16843 soname_spec='${libname}${release}${shared_ext}$major' 16844 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16845 shlibpath_var=LD_LIBRARY_PATH 16846 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16847 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16848 # the default ld.so.conf also contains /usr/contrib/lib and 16849 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16850 # libtool to hard-code these into programs 16851 ;; 16852 16853cygwin* | mingw* | pw32*) 16854 version_type=windows 16855 shrext_cmds=".dll" 16856 need_version=no 16857 need_lib_prefix=no 16858 16859 case $GCC,$host_os in 16860 yes,cygwin* | yes,mingw* | yes,pw32*) 16861 library_names_spec='$libname.dll.a' 16862 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16863 postinstall_cmds='base_file=`basename \${file}`~ 16864 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16865 dldir=$destdir/`dirname \$dlpath`~ 16866 test -d \$dldir || mkdir -p \$dldir~ 16867 $install_prog $dir/$dlname \$dldir/$dlname~ 16868 chmod a+x \$dldir/$dlname' 16869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16870 dlpath=$dir/\$dldll~ 16871 $rm \$dlpath' 16872 shlibpath_overrides_runpath=yes 16873 16874 case $host_os in 16875 cygwin*) 16876 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16877 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16878 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16879 ;; 16880 mingw*) 16881 # MinGW DLLs use traditional 'lib' prefix 16882 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16883 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16884 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16885 # It is most probably a Windows format PATH printed by 16886 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16887 # path with ; separators, and with drive letters. We can handle the 16888 # drive letters (cygwin fileutils understands them), so leave them, 16889 # especially as we might pass files found there to a mingw objdump, 16890 # which wouldn't understand a cygwinified path. Ahh. 16891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16892 else 16893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16894 fi 16895 ;; 16896 pw32*) 16897 # pw32 DLLs use 'pw' prefix rather than 'lib' 16898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16899 ;; 16900 esac 16901 ;; 16902 16903 linux*) 16904 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 16905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16906 supports_anon_versioning=no 16907 case `$LD -v 2>/dev/null` in 16908 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16911 *\ 2.11.*) ;; # other 2.11 versions 16912 *) supports_anon_versioning=yes ;; 16913 esac 16914 if test $supports_anon_versioning = yes; then 16915 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 16916cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16917$echo "local: *; };" >> $output_objdir/$libname.ver~ 16918 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16919 else 16920 $archive_expsym_cmds="$archive_cmds" 16921 fi 16922 else 16923 ld_shlibs=no 16924 fi 16925 ;; 16926 16927 *) 16928 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16929 ;; 16930 esac 16931 dynamic_linker='Win32 ld.exe' 16932 # FIXME: first we should search . and the directory the executable is in 16933 shlibpath_var=PATH 16934 ;; 16935 16936darwin* | rhapsody*) 16937 dynamic_linker="$host_os dyld" 16938 version_type=darwin 16939 need_lib_prefix=no 16940 need_version=no 16941 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16942 soname_spec='${libname}${release}${major}$shared_ext' 16943 shlibpath_overrides_runpath=yes 16944 shlibpath_var=DYLD_LIBRARY_PATH 16945 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16946 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16947 if test "$GCC" = yes; then 16948 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"` 16949 else 16950 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16951 fi 16952 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16953 ;; 16954 16955dgux*) 16956 version_type=linux 16957 need_lib_prefix=no 16958 need_version=no 16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16960 soname_spec='${libname}${release}${shared_ext}$major' 16961 shlibpath_var=LD_LIBRARY_PATH 16962 ;; 16963 16964freebsd1*) 16965 dynamic_linker=no 16966 ;; 16967 16968kfreebsd*-gnu) 16969 version_type=linux 16970 need_lib_prefix=no 16971 need_version=no 16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16973 soname_spec='${libname}${release}${shared_ext}$major' 16974 shlibpath_var=LD_LIBRARY_PATH 16975 shlibpath_overrides_runpath=no 16976 hardcode_into_libs=yes 16977 dynamic_linker='GNU ld.so' 16978 ;; 16979 16980freebsd* | dragonfly*) 16981 # DragonFly does not have aout. When/if they implement a new 16982 # versioning mechanism, adjust this. 16983 if test -x /usr/bin/objformat; then 16984 objformat=`/usr/bin/objformat` 16985 else 16986 case $host_os in 16987 freebsd[123]*) objformat=aout ;; 16988 *) objformat=elf ;; 16989 esac 16990 fi 16991 # Handle Gentoo/FreeBSD as it was Linux 16992 case $host_vendor in 16993 gentoo) 16994 version_type=linux ;; 16995 *) 16996 version_type=freebsd-$objformat ;; 16997 esac 16998 16999 case $version_type in 17000 freebsd-elf*) 17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17002 need_version=no 17003 need_lib_prefix=no 17004 ;; 17005 freebsd-*) 17006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17007 need_version=yes 17008 ;; 17009 linux) 17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17011 soname_spec='${libname}${release}${shared_ext}$major' 17012 need_lib_prefix=no 17013 need_version=no 17014 ;; 17015 esac 17016 shlibpath_var=LD_LIBRARY_PATH 17017 case $host_os in 17018 freebsd2*) 17019 shlibpath_overrides_runpath=yes 17020 ;; 17021 freebsd3.[01]* | freebsdelf3.[01]*) 17022 shlibpath_overrides_runpath=yes 17023 hardcode_into_libs=yes 17024 ;; 17025 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17026 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17027 shlibpath_overrides_runpath=no 17028 hardcode_into_libs=yes 17029 ;; 17030 freebsd*) # from 4.6 on 17031 shlibpath_overrides_runpath=yes 17032 hardcode_into_libs=yes 17033 ;; 17034 esac 17035 ;; 17036 17037gnu*) 17038 version_type=linux 17039 need_lib_prefix=no 17040 need_version=no 17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17042 soname_spec='${libname}${release}${shared_ext}$major' 17043 shlibpath_var=LD_LIBRARY_PATH 17044 hardcode_into_libs=yes 17045 ;; 17046 17047hpux9* | hpux10* | hpux11*) 17048 # Give a soname corresponding to the major version so that dld.sl refuses to 17049 # link against other versions. 17050 version_type=sunos 17051 need_lib_prefix=no 17052 need_version=no 17053 case $host_cpu in 17054 ia64*) 17055 shrext_cmds='.so' 17056 hardcode_into_libs=yes 17057 dynamic_linker="$host_os dld.so" 17058 shlibpath_var=LD_LIBRARY_PATH 17059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17061 soname_spec='${libname}${release}${shared_ext}$major' 17062 if test "X$HPUX_IA64_MODE" = X32; then 17063 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17064 else 17065 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17066 fi 17067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17068 ;; 17069 hppa*64*) 17070 shrext_cmds='.sl' 17071 hardcode_into_libs=yes 17072 dynamic_linker="$host_os dld.sl" 17073 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17076 soname_spec='${libname}${release}${shared_ext}$major' 17077 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17079 ;; 17080 *) 17081 shrext_cmds='.sl' 17082 dynamic_linker="$host_os dld.sl" 17083 shlibpath_var=SHLIB_PATH 17084 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17086 soname_spec='${libname}${release}${shared_ext}$major' 17087 ;; 17088 esac 17089 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17090 postinstall_cmds='chmod 555 $lib' 17091 ;; 17092 17093interix3*) 17094 version_type=linux 17095 need_lib_prefix=no 17096 need_version=no 17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17098 soname_spec='${libname}${release}${shared_ext}$major' 17099 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17100 shlibpath_var=LD_LIBRARY_PATH 17101 shlibpath_overrides_runpath=no 17102 hardcode_into_libs=yes 17103 ;; 17104 17105irix5* | irix6* | nonstopux*) 17106 case $host_os in 17107 nonstopux*) version_type=nonstopux ;; 17108 *) 17109 if test "$lt_cv_prog_gnu_ld" = yes; then 17110 version_type=linux 17111 else 17112 version_type=irix 17113 fi ;; 17114 esac 17115 need_lib_prefix=no 17116 need_version=no 17117 soname_spec='${libname}${release}${shared_ext}$major' 17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17119 case $host_os in 17120 irix5* | nonstopux*) 17121 libsuff= shlibsuff= 17122 ;; 17123 *) 17124 case $LD in # libtool.m4 will add one of these switches to LD 17125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17126 libsuff= shlibsuff= libmagic=32-bit;; 17127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17128 libsuff=32 shlibsuff=N32 libmagic=N32;; 17129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17130 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17131 *) libsuff= shlibsuff= libmagic=never-match;; 17132 esac 17133 ;; 17134 esac 17135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17136 shlibpath_overrides_runpath=no 17137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17139 hardcode_into_libs=yes 17140 ;; 17141 17142# No shared lib support for Linux oldld, aout, or coff. 17143linux*oldld* | linux*aout* | linux*coff*) 17144 dynamic_linker=no 17145 ;; 17146 17147# This must be Linux ELF. 17148linux*) 17149 version_type=linux 17150 need_lib_prefix=no 17151 need_version=no 17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17153 soname_spec='${libname}${release}${shared_ext}$major' 17154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17155 shlibpath_var=LD_LIBRARY_PATH 17156 shlibpath_overrides_runpath=no 17157 # This implies no fast_install, which is unacceptable. 17158 # Some rework will be needed to allow for fast_install 17159 # before this can be enabled. 17160 hardcode_into_libs=yes 17161 17162 # Append ld.so.conf contents to the search path 17163 if test -f /etc/ld.so.conf; then 17164 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' ' '` 17165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17166 fi 17167 17168 # We used to test for /lib/ld.so.1 and disable shared libraries on 17169 # powerpc, because MkLinux only supported shared libraries with the 17170 # GNU dynamic linker. Since this was broken with cross compilers, 17171 # most powerpc-linux boxes support dynamic linking these days and 17172 # people can always --disable-shared, the test was removed, and we 17173 # assume the GNU/Linux dynamic linker is in use. 17174 dynamic_linker='GNU/Linux ld.so' 17175 ;; 17176 17177knetbsd*-gnu) 17178 version_type=linux 17179 need_lib_prefix=no 17180 need_version=no 17181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17182 soname_spec='${libname}${release}${shared_ext}$major' 17183 shlibpath_var=LD_LIBRARY_PATH 17184 shlibpath_overrides_runpath=no 17185 hardcode_into_libs=yes 17186 dynamic_linker='GNU ld.so' 17187 ;; 17188 17189netbsd*) 17190 version_type=sunos 17191 need_lib_prefix=no 17192 need_version=no 17193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17196 dynamic_linker='NetBSD (a.out) ld.so' 17197 else 17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17199 soname_spec='${libname}${release}${shared_ext}$major' 17200 dynamic_linker='NetBSD ld.elf_so' 17201 fi 17202 shlibpath_var=LD_LIBRARY_PATH 17203 shlibpath_overrides_runpath=yes 17204 hardcode_into_libs=yes 17205 ;; 17206 17207newsos6) 17208 version_type=linux 17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17210 shlibpath_var=LD_LIBRARY_PATH 17211 shlibpath_overrides_runpath=yes 17212 ;; 17213 17214nto-qnx*) 17215 version_type=linux 17216 need_lib_prefix=no 17217 need_version=no 17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17219 soname_spec='${libname}${release}${shared_ext}$major' 17220 shlibpath_var=LD_LIBRARY_PATH 17221 shlibpath_overrides_runpath=yes 17222 ;; 17223 17224openbsd*) 17225 version_type=sunos 17226 sys_lib_dlsearch_path_spec="/usr/lib" 17227 need_lib_prefix=no 17228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17229 case $host_os in 17230 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17231 *) need_version=no ;; 17232 esac 17233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17235 shlibpath_var=LD_LIBRARY_PATH 17236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17237 case $host_os in 17238 openbsd2.[89] | openbsd2.[89].*) 17239 shlibpath_overrides_runpath=no 17240 ;; 17241 *) 17242 shlibpath_overrides_runpath=yes 17243 ;; 17244 esac 17245 else 17246 shlibpath_overrides_runpath=yes 17247 fi 17248 ;; 17249 17250os2*) 17251 libname_spec='$name' 17252 shrext_cmds=".dll" 17253 need_lib_prefix=no 17254 library_names_spec='$libname${shared_ext} $libname.a' 17255 dynamic_linker='OS/2 ld.exe' 17256 shlibpath_var=LIBPATH 17257 ;; 17258 17259osf3* | osf4* | osf5*) 17260 version_type=osf 17261 need_lib_prefix=no 17262 need_version=no 17263 soname_spec='${libname}${release}${shared_ext}$major' 17264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17265 shlibpath_var=LD_LIBRARY_PATH 17266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17268 ;; 17269 17270solaris*) 17271 version_type=linux 17272 need_lib_prefix=no 17273 need_version=no 17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17275 soname_spec='${libname}${release}${shared_ext}$major' 17276 shlibpath_var=LD_LIBRARY_PATH 17277 shlibpath_overrides_runpath=yes 17278 hardcode_into_libs=yes 17279 # ldd complains unless libraries are executable 17280 postinstall_cmds='chmod +x $lib' 17281 ;; 17282 17283sunos4*) 17284 version_type=sunos 17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17287 shlibpath_var=LD_LIBRARY_PATH 17288 shlibpath_overrides_runpath=yes 17289 if test "$with_gnu_ld" = yes; then 17290 need_lib_prefix=no 17291 fi 17292 need_version=yes 17293 ;; 17294 17295sysv4 | sysv4.3*) 17296 version_type=linux 17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17298 soname_spec='${libname}${release}${shared_ext}$major' 17299 shlibpath_var=LD_LIBRARY_PATH 17300 case $host_vendor in 17301 sni) 17302 shlibpath_overrides_runpath=no 17303 need_lib_prefix=no 17304 export_dynamic_flag_spec='${wl}-Blargedynsym' 17305 runpath_var=LD_RUN_PATH 17306 ;; 17307 siemens) 17308 need_lib_prefix=no 17309 ;; 17310 motorola) 17311 need_lib_prefix=no 17312 need_version=no 17313 shlibpath_overrides_runpath=no 17314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17315 ;; 17316 esac 17317 ;; 17318 17319sysv4*MP*) 17320 if test -d /usr/nec ;then 17321 version_type=linux 17322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17323 soname_spec='$libname${shared_ext}.$major' 17324 shlibpath_var=LD_LIBRARY_PATH 17325 fi 17326 ;; 17327 17328sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17329 version_type=freebsd-elf 17330 need_lib_prefix=no 17331 need_version=no 17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17333 soname_spec='${libname}${release}${shared_ext}$major' 17334 shlibpath_var=LD_LIBRARY_PATH 17335 hardcode_into_libs=yes 17336 if test "$with_gnu_ld" = yes; then 17337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17338 shlibpath_overrides_runpath=no 17339 else 17340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17341 shlibpath_overrides_runpath=yes 17342 case $host_os in 17343 sco3.2v5*) 17344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17345 ;; 17346 esac 17347 fi 17348 sys_lib_dlsearch_path_spec='/usr/lib' 17349 ;; 17350 17351uts4*) 17352 version_type=linux 17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17354 soname_spec='${libname}${release}${shared_ext}$major' 17355 shlibpath_var=LD_LIBRARY_PATH 17356 ;; 17357 17358*) 17359 dynamic_linker=no 17360 ;; 17361esac 17362echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17363echo "${ECHO_T}$dynamic_linker" >&6 17364test "$dynamic_linker" = no && can_build_shared=no 17365 17366variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17367if test "$GCC" = yes; then 17368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17369fi 17370 17371echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17372echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17373hardcode_action_GCJ= 17374if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17375 test -n "$runpath_var_GCJ" || \ 17376 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17377 17378 # We can hardcode non-existant directories. 17379 if test "$hardcode_direct_GCJ" != no && 17380 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17381 # have to relink, otherwise we might link with an installed library 17382 # when we should be linking with a yet-to-be-installed one 17383 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17384 test "$hardcode_minus_L_GCJ" != no; then 17385 # Linking always hardcodes the temporary library directory. 17386 hardcode_action_GCJ=relink 17387 else 17388 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17389 hardcode_action_GCJ=immediate 17390 fi 17391else 17392 # We cannot hardcode anything, or else we can only hardcode existing 17393 # directories. 17394 hardcode_action_GCJ=unsupported 17395fi 17396echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17397echo "${ECHO_T}$hardcode_action_GCJ" >&6 17398 17399if test "$hardcode_action_GCJ" = relink; then 17400 # Fast installation is not supported 17401 enable_fast_install=no 17402elif test "$shlibpath_overrides_runpath" = yes || 17403 test "$enable_shared" = no; then 17404 # Fast installation is not necessary 17405 enable_fast_install=needless 17406fi 17407 17408 17409# The else clause should only fire when bootstrapping the 17410# libtool distribution, otherwise you forgot to ship ltmain.sh 17411# with your package, and you will get complaints that there are 17412# no rules to generate ltmain.sh. 17413if test -f "$ltmain"; then 17414 # See if we are running on zsh, and set the options which allow our commands through 17415 # without removal of \ escapes. 17416 if test -n "${ZSH_VERSION+set}" ; then 17417 setopt NO_GLOB_SUBST 17418 fi 17419 # Now quote all the things that may contain metacharacters while being 17420 # careful not to overquote the AC_SUBSTed values. We take copies of the 17421 # variables and quote the copies for generation of the libtool script. 17422 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17423 SED SHELL STRIP \ 17424 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17425 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17426 deplibs_check_method reload_flag reload_cmds need_locks \ 17427 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17428 lt_cv_sys_global_symbol_to_c_name_address \ 17429 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17430 old_postinstall_cmds old_postuninstall_cmds \ 17431 compiler_GCJ \ 17432 CC_GCJ \ 17433 LD_GCJ \ 17434 lt_prog_compiler_wl_GCJ \ 17435 lt_prog_compiler_pic_GCJ \ 17436 lt_prog_compiler_static_GCJ \ 17437 lt_prog_compiler_no_builtin_flag_GCJ \ 17438 export_dynamic_flag_spec_GCJ \ 17439 thread_safe_flag_spec_GCJ \ 17440 whole_archive_flag_spec_GCJ \ 17441 enable_shared_with_static_runtimes_GCJ \ 17442 old_archive_cmds_GCJ \ 17443 old_archive_from_new_cmds_GCJ \ 17444 predep_objects_GCJ \ 17445 postdep_objects_GCJ \ 17446 predeps_GCJ \ 17447 postdeps_GCJ \ 17448 compiler_lib_search_path_GCJ \ 17449 archive_cmds_GCJ \ 17450 archive_expsym_cmds_GCJ \ 17451 postinstall_cmds_GCJ \ 17452 postuninstall_cmds_GCJ \ 17453 old_archive_from_expsyms_cmds_GCJ \ 17454 allow_undefined_flag_GCJ \ 17455 no_undefined_flag_GCJ \ 17456 export_symbols_cmds_GCJ \ 17457 hardcode_libdir_flag_spec_GCJ \ 17458 hardcode_libdir_flag_spec_ld_GCJ \ 17459 hardcode_libdir_separator_GCJ \ 17460 hardcode_automatic_GCJ \ 17461 module_cmds_GCJ \ 17462 module_expsym_cmds_GCJ \ 17463 lt_cv_prog_compiler_c_o_GCJ \ 17464 exclude_expsyms_GCJ \ 17465 include_expsyms_GCJ; do 17466 17467 case $var in 17468 old_archive_cmds_GCJ | \ 17469 old_archive_from_new_cmds_GCJ | \ 17470 archive_cmds_GCJ | \ 17471 archive_expsym_cmds_GCJ | \ 17472 module_cmds_GCJ | \ 17473 module_expsym_cmds_GCJ | \ 17474 old_archive_from_expsyms_cmds_GCJ | \ 17475 export_symbols_cmds_GCJ | \ 17476 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17477 postinstall_cmds | postuninstall_cmds | \ 17478 old_postinstall_cmds | old_postuninstall_cmds | \ 17479 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17480 # Double-quote double-evaled strings. 17481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17482 ;; 17483 *) 17484 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17485 ;; 17486 esac 17487 done 17488 17489 case $lt_echo in 17490 *'\$0 --fallback-echo"') 17491 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17492 ;; 17493 esac 17494 17495cfgfile="$ofile" 17496 17497 cat <<__EOF__ >> "$cfgfile" 17498# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17499 17500# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17501 17502# Shell to use when invoking shell scripts. 17503SHELL=$lt_SHELL 17504 17505# Whether or not to build shared libraries. 17506build_libtool_libs=$enable_shared 17507 17508# Whether or not to build static libraries. 17509build_old_libs=$enable_static 17510 17511# Whether or not to add -lc for building shared libraries. 17512build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17513 17514# Whether or not to disallow shared libs when runtime libs are static 17515allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17516 17517# Whether or not to optimize for fast installation. 17518fast_install=$enable_fast_install 17519 17520# The host system. 17521host_alias=$host_alias 17522host=$host 17523host_os=$host_os 17524 17525# The build system. 17526build_alias=$build_alias 17527build=$build 17528build_os=$build_os 17529 17530# An echo program that does not interpret backslashes. 17531echo=$lt_echo 17532 17533# The archiver. 17534AR=$lt_AR 17535AR_FLAGS=$lt_AR_FLAGS 17536 17537# A C compiler. 17538LTCC=$lt_LTCC 17539 17540# LTCC compiler flags. 17541LTCFLAGS=$lt_LTCFLAGS 17542 17543# A language-specific compiler. 17544CC=$lt_compiler_GCJ 17545 17546# Is the compiler the GNU C compiler? 17547with_gcc=$GCC_GCJ 17548 17549# An ERE matcher. 17550EGREP=$lt_EGREP 17551 17552# The linker used to build libraries. 17553LD=$lt_LD_GCJ 17554 17555# Whether we need hard or soft links. 17556LN_S=$lt_LN_S 17557 17558# A BSD-compatible nm program. 17559NM=$lt_NM 17560 17561# A symbol stripping program 17562STRIP=$lt_STRIP 17563 17564# Used to examine libraries when file_magic_cmd begins "file" 17565MAGIC_CMD=$MAGIC_CMD 17566 17567# Used on cygwin: DLL creation program. 17568DLLTOOL="$DLLTOOL" 17569 17570# Used on cygwin: object dumper. 17571OBJDUMP="$OBJDUMP" 17572 17573# Used on cygwin: assembler. 17574AS="$AS" 17575 17576# The name of the directory that contains temporary libtool files. 17577objdir=$objdir 17578 17579# How to create reloadable object files. 17580reload_flag=$lt_reload_flag 17581reload_cmds=$lt_reload_cmds 17582 17583# How to pass a linker flag through the compiler. 17584wl=$lt_lt_prog_compiler_wl_GCJ 17585 17586# Object file suffix (normally "o"). 17587objext="$ac_objext" 17588 17589# Old archive suffix (normally "a"). 17590libext="$libext" 17591 17592# Shared library suffix (normally ".so"). 17593shrext_cmds='$shrext_cmds' 17594 17595# Executable file suffix (normally ""). 17596exeext="$exeext" 17597 17598# Additional compiler flags for building library objects. 17599pic_flag=$lt_lt_prog_compiler_pic_GCJ 17600pic_mode=$pic_mode 17601 17602# What is the maximum length of a command? 17603max_cmd_len=$lt_cv_sys_max_cmd_len 17604 17605# Does compiler simultaneously support -c and -o options? 17606compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17607 17608# Must we lock files when doing compilation? 17609need_locks=$lt_need_locks 17610 17611# Do we need the lib prefix for modules? 17612need_lib_prefix=$need_lib_prefix 17613 17614# Do we need a version for libraries? 17615need_version=$need_version 17616 17617# Whether dlopen is supported. 17618dlopen_support=$enable_dlopen 17619 17620# Whether dlopen of programs is supported. 17621dlopen_self=$enable_dlopen_self 17622 17623# Whether dlopen of statically linked programs is supported. 17624dlopen_self_static=$enable_dlopen_self_static 17625 17626# Compiler flag to prevent dynamic linking. 17627link_static_flag=$lt_lt_prog_compiler_static_GCJ 17628 17629# Compiler flag to turn off builtin functions. 17630no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17631 17632# Compiler flag to allow reflexive dlopens. 17633export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17634 17635# Compiler flag to generate shared objects directly from archives. 17636whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17637 17638# Compiler flag to generate thread-safe objects. 17639thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17640 17641# Library versioning type. 17642version_type=$version_type 17643 17644# Format of library name prefix. 17645libname_spec=$lt_libname_spec 17646 17647# List of archive names. First name is the real one, the rest are links. 17648# The last name is the one that the linker finds with -lNAME. 17649library_names_spec=$lt_library_names_spec 17650 17651# The coded name of the library, if different from the real name. 17652soname_spec=$lt_soname_spec 17653 17654# Commands used to build and install an old-style archive. 17655RANLIB=$lt_RANLIB 17656old_archive_cmds=$lt_old_archive_cmds_GCJ 17657old_postinstall_cmds=$lt_old_postinstall_cmds 17658old_postuninstall_cmds=$lt_old_postuninstall_cmds 17659 17660# Create an old-style archive from a shared archive. 17661old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17662 17663# Create a temporary old-style archive to link instead of a shared archive. 17664old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17665 17666# Commands used to build and install a shared archive. 17667archive_cmds=$lt_archive_cmds_GCJ 17668archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17669postinstall_cmds=$lt_postinstall_cmds 17670postuninstall_cmds=$lt_postuninstall_cmds 17671 17672# Commands used to build a loadable module (assumed same as above if empty) 17673module_cmds=$lt_module_cmds_GCJ 17674module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17675 17676# Commands to strip libraries. 17677old_striplib=$lt_old_striplib 17678striplib=$lt_striplib 17679 17680# Dependencies to place before the objects being linked to create a 17681# shared library. 17682predep_objects=$lt_predep_objects_GCJ 17683 17684# Dependencies to place after the objects being linked to create a 17685# shared library. 17686postdep_objects=$lt_postdep_objects_GCJ 17687 17688# Dependencies to place before the objects being linked to create a 17689# shared library. 17690predeps=$lt_predeps_GCJ 17691 17692# Dependencies to place after the objects being linked to create a 17693# shared library. 17694postdeps=$lt_postdeps_GCJ 17695 17696# The library search path used internally by the compiler when linking 17697# a shared library. 17698compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17699 17700# Method to check whether dependent libraries are shared objects. 17701deplibs_check_method=$lt_deplibs_check_method 17702 17703# Command to use when deplibs_check_method == file_magic. 17704file_magic_cmd=$lt_file_magic_cmd 17705 17706# Flag that allows shared libraries with undefined symbols to be built. 17707allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17708 17709# Flag that forces no undefined symbols. 17710no_undefined_flag=$lt_no_undefined_flag_GCJ 17711 17712# Commands used to finish a libtool library installation in a directory. 17713finish_cmds=$lt_finish_cmds 17714 17715# Same as above, but a single script fragment to be evaled but not shown. 17716finish_eval=$lt_finish_eval 17717 17718# Take the output of nm and produce a listing of raw symbols and C names. 17719global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17720 17721# Transform the output of nm in a proper C declaration 17722global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17723 17724# Transform the output of nm in a C name address pair 17725global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17726 17727# This is the shared library runtime path variable. 17728runpath_var=$runpath_var 17729 17730# This is the shared library path variable. 17731shlibpath_var=$shlibpath_var 17732 17733# Is shlibpath searched before the hard-coded library search path? 17734shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17735 17736# How to hardcode a shared library path into an executable. 17737hardcode_action=$hardcode_action_GCJ 17738 17739# Whether we should hardcode library paths into libraries. 17740hardcode_into_libs=$hardcode_into_libs 17741 17742# Flag to hardcode \$libdir into a binary during linking. 17743# This must work even if \$libdir does not exist. 17744hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17745 17746# If ld is used when linking, flag to hardcode \$libdir into 17747# a binary during linking. This must work even if \$libdir does 17748# not exist. 17749hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17750 17751# Whether we need a single -rpath flag with a separated argument. 17752hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17753 17754# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17755# resulting binary. 17756hardcode_direct=$hardcode_direct_GCJ 17757 17758# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17759# resulting binary. 17760hardcode_minus_L=$hardcode_minus_L_GCJ 17761 17762# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17763# the resulting binary. 17764hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17765 17766# Set to yes if building a shared library automatically hardcodes DIR into the library 17767# and all subsequent libraries and executables linked against it. 17768hardcode_automatic=$hardcode_automatic_GCJ 17769 17770# Variables whose values should be saved in libtool wrapper scripts and 17771# restored at relink time. 17772variables_saved_for_relink="$variables_saved_for_relink" 17773 17774# Whether libtool must link a program against all its dependency libraries. 17775link_all_deplibs=$link_all_deplibs_GCJ 17776 17777# Compile-time system search path for libraries 17778sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17779 17780# Run-time system search path for libraries 17781sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17782 17783# Fix the shell variable \$srcfile for the compiler. 17784fix_srcfile_path="$fix_srcfile_path_GCJ" 17785 17786# Set to yes if exported symbols are required. 17787always_export_symbols=$always_export_symbols_GCJ 17788 17789# The commands to list exported symbols. 17790export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17791 17792# The commands to extract the exported symbol list from a shared archive. 17793extract_expsyms_cmds=$lt_extract_expsyms_cmds 17794 17795# Symbols that should not be listed in the preloaded symbols. 17796exclude_expsyms=$lt_exclude_expsyms_GCJ 17797 17798# Symbols that must always be exported. 17799include_expsyms=$lt_include_expsyms_GCJ 17800 17801# ### END LIBTOOL TAG CONFIG: $tagname 17802 17803__EOF__ 17804 17805 17806else 17807 # If there is no Makefile yet, we rely on a make rule to execute 17808 # `config.status --recheck' to rerun these tests and create the 17809 # libtool script then. 17810 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17811 if test -f "$ltmain_in"; then 17812 test -f Makefile && make "$ltmain" 17813 fi 17814fi 17815 17816 17817ac_ext=c 17818ac_cpp='$CPP $CPPFLAGS' 17819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17821ac_compiler_gnu=$ac_cv_c_compiler_gnu 17822 17823CC="$lt_save_CC" 17824 17825 else 17826 tagname="" 17827 fi 17828 ;; 17829 17830 RC) 17831 17832 17833 17834# Source file extension for RC test sources. 17835ac_ext=rc 17836 17837# Object file extension for compiled RC test sources. 17838objext=o 17839objext_RC=$objext 17840 17841# Code to be used in simple compile tests 17842lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 17843 17844# Code to be used in simple link tests 17845lt_simple_link_test_code="$lt_simple_compile_test_code" 17846 17847# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17848 17849# If no C compiler was specified, use CC. 17850LTCC=${LTCC-"$CC"} 17851 17852# If no C compiler flags were specified, use CFLAGS. 17853LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17854 17855# Allow CC to be a program name with arguments. 17856compiler=$CC 17857 17858 17859# save warnings/boilerplate of simple test code 17860ac_outfile=conftest.$ac_objext 17861printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17862eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17863_lt_compiler_boilerplate=`cat conftest.err` 17864$rm conftest* 17865 17866ac_outfile=conftest.$ac_objext 17867printf "$lt_simple_link_test_code" >conftest.$ac_ext 17868eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17869_lt_linker_boilerplate=`cat conftest.err` 17870$rm conftest* 17871 17872 17873# Allow CC to be a program name with arguments. 17874lt_save_CC="$CC" 17875CC=${RC-"windres"} 17876compiler=$CC 17877compiler_RC=$CC 17878for cc_temp in $compiler""; do 17879 case $cc_temp in 17880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17882 \-*) ;; 17883 *) break;; 17884 esac 17885done 17886cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17887 17888lt_cv_prog_compiler_c_o_RC=yes 17889 17890# The else clause should only fire when bootstrapping the 17891# libtool distribution, otherwise you forgot to ship ltmain.sh 17892# with your package, and you will get complaints that there are 17893# no rules to generate ltmain.sh. 17894if test -f "$ltmain"; then 17895 # See if we are running on zsh, and set the options which allow our commands through 17896 # without removal of \ escapes. 17897 if test -n "${ZSH_VERSION+set}" ; then 17898 setopt NO_GLOB_SUBST 17899 fi 17900 # Now quote all the things that may contain metacharacters while being 17901 # careful not to overquote the AC_SUBSTed values. We take copies of the 17902 # variables and quote the copies for generation of the libtool script. 17903 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17904 SED SHELL STRIP \ 17905 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17906 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17907 deplibs_check_method reload_flag reload_cmds need_locks \ 17908 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17909 lt_cv_sys_global_symbol_to_c_name_address \ 17910 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17911 old_postinstall_cmds old_postuninstall_cmds \ 17912 compiler_RC \ 17913 CC_RC \ 17914 LD_RC \ 17915 lt_prog_compiler_wl_RC \ 17916 lt_prog_compiler_pic_RC \ 17917 lt_prog_compiler_static_RC \ 17918 lt_prog_compiler_no_builtin_flag_RC \ 17919 export_dynamic_flag_spec_RC \ 17920 thread_safe_flag_spec_RC \ 17921 whole_archive_flag_spec_RC \ 17922 enable_shared_with_static_runtimes_RC \ 17923 old_archive_cmds_RC \ 17924 old_archive_from_new_cmds_RC \ 17925 predep_objects_RC \ 17926 postdep_objects_RC \ 17927 predeps_RC \ 17928 postdeps_RC \ 17929 compiler_lib_search_path_RC \ 17930 archive_cmds_RC \ 17931 archive_expsym_cmds_RC \ 17932 postinstall_cmds_RC \ 17933 postuninstall_cmds_RC \ 17934 old_archive_from_expsyms_cmds_RC \ 17935 allow_undefined_flag_RC \ 17936 no_undefined_flag_RC \ 17937 export_symbols_cmds_RC \ 17938 hardcode_libdir_flag_spec_RC \ 17939 hardcode_libdir_flag_spec_ld_RC \ 17940 hardcode_libdir_separator_RC \ 17941 hardcode_automatic_RC \ 17942 module_cmds_RC \ 17943 module_expsym_cmds_RC \ 17944 lt_cv_prog_compiler_c_o_RC \ 17945 exclude_expsyms_RC \ 17946 include_expsyms_RC; do 17947 17948 case $var in 17949 old_archive_cmds_RC | \ 17950 old_archive_from_new_cmds_RC | \ 17951 archive_cmds_RC | \ 17952 archive_expsym_cmds_RC | \ 17953 module_cmds_RC | \ 17954 module_expsym_cmds_RC | \ 17955 old_archive_from_expsyms_cmds_RC | \ 17956 export_symbols_cmds_RC | \ 17957 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17958 postinstall_cmds | postuninstall_cmds | \ 17959 old_postinstall_cmds | old_postuninstall_cmds | \ 17960 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17961 # Double-quote double-evaled strings. 17962 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17963 ;; 17964 *) 17965 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17966 ;; 17967 esac 17968 done 17969 17970 case $lt_echo in 17971 *'\$0 --fallback-echo"') 17972 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17973 ;; 17974 esac 17975 17976cfgfile="$ofile" 17977 17978 cat <<__EOF__ >> "$cfgfile" 17979# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17980 17981# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17982 17983# Shell to use when invoking shell scripts. 17984SHELL=$lt_SHELL 17985 17986# Whether or not to build shared libraries. 17987build_libtool_libs=$enable_shared 17988 17989# Whether or not to build static libraries. 17990build_old_libs=$enable_static 17991 17992# Whether or not to add -lc for building shared libraries. 17993build_libtool_need_lc=$archive_cmds_need_lc_RC 17994 17995# Whether or not to disallow shared libs when runtime libs are static 17996allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 17997 17998# Whether or not to optimize for fast installation. 17999fast_install=$enable_fast_install 18000 18001# The host system. 18002host_alias=$host_alias 18003host=$host 18004host_os=$host_os 18005 18006# The build system. 18007build_alias=$build_alias 18008build=$build 18009build_os=$build_os 18010 18011# An echo program that does not interpret backslashes. 18012echo=$lt_echo 18013 18014# The archiver. 18015AR=$lt_AR 18016AR_FLAGS=$lt_AR_FLAGS 18017 18018# A C compiler. 18019LTCC=$lt_LTCC 18020 18021# LTCC compiler flags. 18022LTCFLAGS=$lt_LTCFLAGS 18023 18024# A language-specific compiler. 18025CC=$lt_compiler_RC 18026 18027# Is the compiler the GNU C compiler? 18028with_gcc=$GCC_RC 18029 18030# An ERE matcher. 18031EGREP=$lt_EGREP 18032 18033# The linker used to build libraries. 18034LD=$lt_LD_RC 18035 18036# Whether we need hard or soft links. 18037LN_S=$lt_LN_S 18038 18039# A BSD-compatible nm program. 18040NM=$lt_NM 18041 18042# A symbol stripping program 18043STRIP=$lt_STRIP 18044 18045# Used to examine libraries when file_magic_cmd begins "file" 18046MAGIC_CMD=$MAGIC_CMD 18047 18048# Used on cygwin: DLL creation program. 18049DLLTOOL="$DLLTOOL" 18050 18051# Used on cygwin: object dumper. 18052OBJDUMP="$OBJDUMP" 18053 18054# Used on cygwin: assembler. 18055AS="$AS" 18056 18057# The name of the directory that contains temporary libtool files. 18058objdir=$objdir 18059 18060# How to create reloadable object files. 18061reload_flag=$lt_reload_flag 18062reload_cmds=$lt_reload_cmds 18063 18064# How to pass a linker flag through the compiler. 18065wl=$lt_lt_prog_compiler_wl_RC 18066 18067# Object file suffix (normally "o"). 18068objext="$ac_objext" 18069 18070# Old archive suffix (normally "a"). 18071libext="$libext" 18072 18073# Shared library suffix (normally ".so"). 18074shrext_cmds='$shrext_cmds' 18075 18076# Executable file suffix (normally ""). 18077exeext="$exeext" 18078 18079# Additional compiler flags for building library objects. 18080pic_flag=$lt_lt_prog_compiler_pic_RC 18081pic_mode=$pic_mode 18082 18083# What is the maximum length of a command? 18084max_cmd_len=$lt_cv_sys_max_cmd_len 18085 18086# Does compiler simultaneously support -c and -o options? 18087compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18088 18089# Must we lock files when doing compilation? 18090need_locks=$lt_need_locks 18091 18092# Do we need the lib prefix for modules? 18093need_lib_prefix=$need_lib_prefix 18094 18095# Do we need a version for libraries? 18096need_version=$need_version 18097 18098# Whether dlopen is supported. 18099dlopen_support=$enable_dlopen 18100 18101# Whether dlopen of programs is supported. 18102dlopen_self=$enable_dlopen_self 18103 18104# Whether dlopen of statically linked programs is supported. 18105dlopen_self_static=$enable_dlopen_self_static 18106 18107# Compiler flag to prevent dynamic linking. 18108link_static_flag=$lt_lt_prog_compiler_static_RC 18109 18110# Compiler flag to turn off builtin functions. 18111no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18112 18113# Compiler flag to allow reflexive dlopens. 18114export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18115 18116# Compiler flag to generate shared objects directly from archives. 18117whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18118 18119# Compiler flag to generate thread-safe objects. 18120thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18121 18122# Library versioning type. 18123version_type=$version_type 18124 18125# Format of library name prefix. 18126libname_spec=$lt_libname_spec 18127 18128# List of archive names. First name is the real one, the rest are links. 18129# The last name is the one that the linker finds with -lNAME. 18130library_names_spec=$lt_library_names_spec 18131 18132# The coded name of the library, if different from the real name. 18133soname_spec=$lt_soname_spec 18134 18135# Commands used to build and install an old-style archive. 18136RANLIB=$lt_RANLIB 18137old_archive_cmds=$lt_old_archive_cmds_RC 18138old_postinstall_cmds=$lt_old_postinstall_cmds 18139old_postuninstall_cmds=$lt_old_postuninstall_cmds 18140 18141# Create an old-style archive from a shared archive. 18142old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18143 18144# Create a temporary old-style archive to link instead of a shared archive. 18145old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18146 18147# Commands used to build and install a shared archive. 18148archive_cmds=$lt_archive_cmds_RC 18149archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18150postinstall_cmds=$lt_postinstall_cmds 18151postuninstall_cmds=$lt_postuninstall_cmds 18152 18153# Commands used to build a loadable module (assumed same as above if empty) 18154module_cmds=$lt_module_cmds_RC 18155module_expsym_cmds=$lt_module_expsym_cmds_RC 18156 18157# Commands to strip libraries. 18158old_striplib=$lt_old_striplib 18159striplib=$lt_striplib 18160 18161# Dependencies to place before the objects being linked to create a 18162# shared library. 18163predep_objects=$lt_predep_objects_RC 18164 18165# Dependencies to place after the objects being linked to create a 18166# shared library. 18167postdep_objects=$lt_postdep_objects_RC 18168 18169# Dependencies to place before the objects being linked to create a 18170# shared library. 18171predeps=$lt_predeps_RC 18172 18173# Dependencies to place after the objects being linked to create a 18174# shared library. 18175postdeps=$lt_postdeps_RC 18176 18177# The library search path used internally by the compiler when linking 18178# a shared library. 18179compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18180 18181# Method to check whether dependent libraries are shared objects. 18182deplibs_check_method=$lt_deplibs_check_method 18183 18184# Command to use when deplibs_check_method == file_magic. 18185file_magic_cmd=$lt_file_magic_cmd 18186 18187# Flag that allows shared libraries with undefined symbols to be built. 18188allow_undefined_flag=$lt_allow_undefined_flag_RC 18189 18190# Flag that forces no undefined symbols. 18191no_undefined_flag=$lt_no_undefined_flag_RC 18192 18193# Commands used to finish a libtool library installation in a directory. 18194finish_cmds=$lt_finish_cmds 18195 18196# Same as above, but a single script fragment to be evaled but not shown. 18197finish_eval=$lt_finish_eval 18198 18199# Take the output of nm and produce a listing of raw symbols and C names. 18200global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18201 18202# Transform the output of nm in a proper C declaration 18203global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18204 18205# Transform the output of nm in a C name address pair 18206global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18207 18208# This is the shared library runtime path variable. 18209runpath_var=$runpath_var 18210 18211# This is the shared library path variable. 18212shlibpath_var=$shlibpath_var 18213 18214# Is shlibpath searched before the hard-coded library search path? 18215shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18216 18217# How to hardcode a shared library path into an executable. 18218hardcode_action=$hardcode_action_RC 18219 18220# Whether we should hardcode library paths into libraries. 18221hardcode_into_libs=$hardcode_into_libs 18222 18223# Flag to hardcode \$libdir into a binary during linking. 18224# This must work even if \$libdir does not exist. 18225hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18226 18227# If ld is used when linking, flag to hardcode \$libdir into 18228# a binary during linking. This must work even if \$libdir does 18229# not exist. 18230hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18231 18232# Whether we need a single -rpath flag with a separated argument. 18233hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18234 18235# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18236# resulting binary. 18237hardcode_direct=$hardcode_direct_RC 18238 18239# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18240# resulting binary. 18241hardcode_minus_L=$hardcode_minus_L_RC 18242 18243# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18244# the resulting binary. 18245hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18246 18247# Set to yes if building a shared library automatically hardcodes DIR into the library 18248# and all subsequent libraries and executables linked against it. 18249hardcode_automatic=$hardcode_automatic_RC 18250 18251# Variables whose values should be saved in libtool wrapper scripts and 18252# restored at relink time. 18253variables_saved_for_relink="$variables_saved_for_relink" 18254 18255# Whether libtool must link a program against all its dependency libraries. 18256link_all_deplibs=$link_all_deplibs_RC 18257 18258# Compile-time system search path for libraries 18259sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18260 18261# Run-time system search path for libraries 18262sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18263 18264# Fix the shell variable \$srcfile for the compiler. 18265fix_srcfile_path="$fix_srcfile_path_RC" 18266 18267# Set to yes if exported symbols are required. 18268always_export_symbols=$always_export_symbols_RC 18269 18270# The commands to list exported symbols. 18271export_symbols_cmds=$lt_export_symbols_cmds_RC 18272 18273# The commands to extract the exported symbol list from a shared archive. 18274extract_expsyms_cmds=$lt_extract_expsyms_cmds 18275 18276# Symbols that should not be listed in the preloaded symbols. 18277exclude_expsyms=$lt_exclude_expsyms_RC 18278 18279# Symbols that must always be exported. 18280include_expsyms=$lt_include_expsyms_RC 18281 18282# ### END LIBTOOL TAG CONFIG: $tagname 18283 18284__EOF__ 18285 18286 18287else 18288 # If there is no Makefile yet, we rely on a make rule to execute 18289 # `config.status --recheck' to rerun these tests and create the 18290 # libtool script then. 18291 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18292 if test -f "$ltmain_in"; then 18293 test -f Makefile && make "$ltmain" 18294 fi 18295fi 18296 18297 18298ac_ext=c 18299ac_cpp='$CPP $CPPFLAGS' 18300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18302ac_compiler_gnu=$ac_cv_c_compiler_gnu 18303 18304CC="$lt_save_CC" 18305 18306 ;; 18307 18308 *) 18309 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18310echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18311 { (exit 1); exit 1; }; } 18312 ;; 18313 esac 18314 18315 # Append the new tag name to the list of available tags. 18316 if test -n "$tagname" ; then 18317 available_tags="$available_tags $tagname" 18318 fi 18319 fi 18320 done 18321 IFS="$lt_save_ifs" 18322 18323 # Now substitute the updated list of available tags. 18324 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18325 mv "${ofile}T" "$ofile" 18326 chmod +x "$ofile" 18327 else 18328 rm -f "${ofile}T" 18329 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18330echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18331 { (exit 1); exit 1; }; } 18332 fi 18333fi 18334 18335 18336 18337# This can be used to rebuild libtool when needed 18338LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18339 18340# Always use our own libtool. 18341LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18342 18343# Prevent multiple expansion 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364echo "$as_me:$LINENO: checking for ANSI C header files" >&5 18365echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 18366if test "${ac_cv_header_stdc+set}" = set; then 18367 echo $ECHO_N "(cached) $ECHO_C" >&6 18368else 18369 cat >conftest.$ac_ext <<_ACEOF 18370/* confdefs.h. */ 18371_ACEOF 18372cat confdefs.h >>conftest.$ac_ext 18373cat >>conftest.$ac_ext <<_ACEOF 18374/* end confdefs.h. */ 18375#include <stdlib.h> 18376#include <stdarg.h> 18377#include <string.h> 18378#include <float.h> 18379 18380int 18381main () 18382{ 18383 18384 ; 18385 return 0; 18386} 18387_ACEOF 18388rm -f conftest.$ac_objext 18389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18390 (eval $ac_compile) 2>conftest.er1 18391 ac_status=$? 18392 grep -v '^ *+' conftest.er1 >conftest.err 18393 rm -f conftest.er1 18394 cat conftest.err >&5 18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18396 (exit $ac_status); } && 18397 { ac_try='test -z "$ac_c_werror_flag" 18398 || test ! -s conftest.err' 18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18400 (eval $ac_try) 2>&5 18401 ac_status=$? 18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18403 (exit $ac_status); }; } && 18404 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 18410 ac_cv_header_stdc=yes 18411else 18412 echo "$as_me: failed program was:" >&5 18413sed 's/^/| /' conftest.$ac_ext >&5 18414 18415ac_cv_header_stdc=no 18416fi 18417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18418 18419if test $ac_cv_header_stdc = yes; then 18420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18421 cat >conftest.$ac_ext <<_ACEOF 18422/* confdefs.h. */ 18423_ACEOF 18424cat confdefs.h >>conftest.$ac_ext 18425cat >>conftest.$ac_ext <<_ACEOF 18426/* end confdefs.h. */ 18427#include <string.h> 18428 18429_ACEOF 18430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18431 $EGREP "memchr" >/dev/null 2>&1; then 18432 : 18433else 18434 ac_cv_header_stdc=no 18435fi 18436rm -f conftest* 18437 18438fi 18439 18440if test $ac_cv_header_stdc = yes; then 18441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18442 cat >conftest.$ac_ext <<_ACEOF 18443/* confdefs.h. */ 18444_ACEOF 18445cat confdefs.h >>conftest.$ac_ext 18446cat >>conftest.$ac_ext <<_ACEOF 18447/* end confdefs.h. */ 18448#include <stdlib.h> 18449 18450_ACEOF 18451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18452 $EGREP "free" >/dev/null 2>&1; then 18453 : 18454else 18455 ac_cv_header_stdc=no 18456fi 18457rm -f conftest* 18458 18459fi 18460 18461if test $ac_cv_header_stdc = yes; then 18462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18463 if test "$cross_compiling" = yes; then 18464 : 18465else 18466 cat >conftest.$ac_ext <<_ACEOF 18467/* confdefs.h. */ 18468_ACEOF 18469cat confdefs.h >>conftest.$ac_ext 18470cat >>conftest.$ac_ext <<_ACEOF 18471/* end confdefs.h. */ 18472#include <ctype.h> 18473#if ((' ' & 0x0FF) == 0x020) 18474# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18475# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18476#else 18477# define ISLOWER(c) \ 18478 (('a' <= (c) && (c) <= 'i') \ 18479 || ('j' <= (c) && (c) <= 'r') \ 18480 || ('s' <= (c) && (c) <= 'z')) 18481# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18482#endif 18483 18484#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18485int 18486main () 18487{ 18488 int i; 18489 for (i = 0; i < 256; i++) 18490 if (XOR (islower (i), ISLOWER (i)) 18491 || toupper (i) != TOUPPER (i)) 18492 exit(2); 18493 exit (0); 18494} 18495_ACEOF 18496rm -f conftest$ac_exeext 18497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18498 (eval $ac_link) 2>&5 18499 ac_status=$? 18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18503 (eval $ac_try) 2>&5 18504 ac_status=$? 18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18506 (exit $ac_status); }; }; then 18507 : 18508else 18509 echo "$as_me: program exited with status $ac_status" >&5 18510echo "$as_me: failed program was:" >&5 18511sed 's/^/| /' conftest.$ac_ext >&5 18512 18513( exit $ac_status ) 18514ac_cv_header_stdc=no 18515fi 18516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18517fi 18518fi 18519fi 18520echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 18521echo "${ECHO_T}$ac_cv_header_stdc" >&6 18522if test $ac_cv_header_stdc = yes; then 18523 18524cat >>confdefs.h <<\_ACEOF 18525#define STDC_HEADERS 1 18526_ACEOF 18527 18528fi 18529 18530echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 18531echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 18532set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 18533if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 18534 echo $ECHO_N "(cached) $ECHO_C" >&6 18535else 18536 cat >conftest.make <<\_ACEOF 18537all: 18538 @echo 'ac_maketemp="$(MAKE)"' 18539_ACEOF 18540# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 18541eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 18542if test -n "$ac_maketemp"; then 18543 eval ac_cv_prog_make_${ac_make}_set=yes 18544else 18545 eval ac_cv_prog_make_${ac_make}_set=no 18546fi 18547rm -f conftest.make 18548fi 18549if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 18550 echo "$as_me:$LINENO: result: yes" >&5 18551echo "${ECHO_T}yes" >&6 18552 SET_MAKE= 18553else 18554 echo "$as_me:$LINENO: result: no" >&5 18555echo "${ECHO_T}no" >&6 18556 SET_MAKE="MAKE=${MAKE-make}" 18557fi 18558 18559 18560 18561for ac_func in gettimeofday 18562do 18563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18564echo "$as_me:$LINENO: checking for $ac_func" >&5 18565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18566if eval "test \"\${$as_ac_var+set}\" = set"; then 18567 echo $ECHO_N "(cached) $ECHO_C" >&6 18568else 18569 cat >conftest.$ac_ext <<_ACEOF 18570/* confdefs.h. */ 18571_ACEOF 18572cat confdefs.h >>conftest.$ac_ext 18573cat >>conftest.$ac_ext <<_ACEOF 18574/* end confdefs.h. */ 18575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18576 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18577#define $ac_func innocuous_$ac_func 18578 18579/* System header to define __stub macros and hopefully few prototypes, 18580 which can conflict with char $ac_func (); below. 18581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18582 <limits.h> exists even on freestanding compilers. */ 18583 18584#ifdef __STDC__ 18585# include <limits.h> 18586#else 18587# include <assert.h> 18588#endif 18589 18590#undef $ac_func 18591 18592/* Override any gcc2 internal prototype to avoid an error. */ 18593#ifdef __cplusplus 18594extern "C" 18595{ 18596#endif 18597/* We use char because int might match the return type of a gcc2 18598 builtin and then its argument prototype would still apply. */ 18599char $ac_func (); 18600/* The GNU C library defines this for functions which it implements 18601 to always fail with ENOSYS. Some functions are actually named 18602 something starting with __ and the normal name is an alias. */ 18603#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18604choke me 18605#else 18606char (*f) () = $ac_func; 18607#endif 18608#ifdef __cplusplus 18609} 18610#endif 18611 18612int 18613main () 18614{ 18615return f != $ac_func; 18616 ; 18617 return 0; 18618} 18619_ACEOF 18620rm -f conftest.$ac_objext conftest$ac_exeext 18621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18622 (eval $ac_link) 2>conftest.er1 18623 ac_status=$? 18624 grep -v '^ *+' conftest.er1 >conftest.err 18625 rm -f conftest.er1 18626 cat conftest.err >&5 18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18628 (exit $ac_status); } && 18629 { ac_try='test -z "$ac_c_werror_flag" 18630 || test ! -s conftest.err' 18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18632 (eval $ac_try) 2>&5 18633 ac_status=$? 18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18635 (exit $ac_status); }; } && 18636 { ac_try='test -s conftest$ac_exeext' 18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18638 (eval $ac_try) 2>&5 18639 ac_status=$? 18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18641 (exit $ac_status); }; }; then 18642 eval "$as_ac_var=yes" 18643else 18644 echo "$as_me: failed program was:" >&5 18645sed 's/^/| /' conftest.$ac_ext >&5 18646 18647eval "$as_ac_var=no" 18648fi 18649rm -f conftest.err conftest.$ac_objext \ 18650 conftest$ac_exeext conftest.$ac_ext 18651fi 18652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 18653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18654if test `eval echo '${'$as_ac_var'}'` = yes; then 18655 cat >>confdefs.h <<_ACEOF 18656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18657_ACEOF 18658 18659fi 18660done 18661 18662echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 18663echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 18664if test "${ac_cv_header_time+set}" = set; then 18665 echo $ECHO_N "(cached) $ECHO_C" >&6 18666else 18667 cat >conftest.$ac_ext <<_ACEOF 18668/* confdefs.h. */ 18669_ACEOF 18670cat confdefs.h >>conftest.$ac_ext 18671cat >>conftest.$ac_ext <<_ACEOF 18672/* end confdefs.h. */ 18673#include <sys/types.h> 18674#include <sys/time.h> 18675#include <time.h> 18676 18677int 18678main () 18679{ 18680if ((struct tm *) 0) 18681return 0; 18682 ; 18683 return 0; 18684} 18685_ACEOF 18686rm -f conftest.$ac_objext 18687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18688 (eval $ac_compile) 2>conftest.er1 18689 ac_status=$? 18690 grep -v '^ *+' conftest.er1 >conftest.err 18691 rm -f conftest.er1 18692 cat conftest.err >&5 18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18694 (exit $ac_status); } && 18695 { ac_try='test -z "$ac_c_werror_flag" 18696 || test ! -s conftest.err' 18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18698 (eval $ac_try) 2>&5 18699 ac_status=$? 18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18701 (exit $ac_status); }; } && 18702 { ac_try='test -s conftest.$ac_objext' 18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18704 (eval $ac_try) 2>&5 18705 ac_status=$? 18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18707 (exit $ac_status); }; }; then 18708 ac_cv_header_time=yes 18709else 18710 echo "$as_me: failed program was:" >&5 18711sed 's/^/| /' conftest.$ac_ext >&5 18712 18713ac_cv_header_time=no 18714fi 18715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18716fi 18717echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 18718echo "${ECHO_T}$ac_cv_header_time" >&6 18719if test $ac_cv_header_time = yes; then 18720 18721cat >>confdefs.h <<\_ACEOF 18722#define TIME_WITH_SYS_TIME 1 18723_ACEOF 18724 18725fi 18726 18727 18728for ac_prog in emacs xemacs 18729do 18730 # Extract the first word of "$ac_prog", so it can be a program name with args. 18731set dummy $ac_prog; ac_word=$2 18732echo "$as_me:$LINENO: checking for $ac_word" >&5 18733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18734if test "${ac_cv_path_EMACS+set}" = set; then 18735 echo $ECHO_N "(cached) $ECHO_C" >&6 18736else 18737 case $EMACS in 18738 [\\/]* | ?:[\\/]*) 18739 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path. 18740 ;; 18741 *) 18742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18743for as_dir in $PATH 18744do 18745 IFS=$as_save_IFS 18746 test -z "$as_dir" && as_dir=. 18747 for ac_exec_ext in '' $ac_executable_extensions; do 18748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18749 ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext" 18750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18751 break 2 18752 fi 18753done 18754done 18755 18756 ;; 18757esac 18758fi 18759EMACS=$ac_cv_path_EMACS 18760 18761if test -n "$EMACS"; then 18762 echo "$as_me:$LINENO: result: $EMACS" >&5 18763echo "${ECHO_T}$EMACS" >&6 18764else 18765 echo "$as_me:$LINENO: result: no" >&5 18766echo "${ECHO_T}no" >&6 18767fi 18768 18769 test -n "$EMACS" && break 18770done 18771test -n "$EMACS" || EMACS="emacs" 18772 18773 18774top_srcdir_absolute=`cd $srcdir; pwd` 18775 18776 18777# Check whether --enable-glibtest or --disable-glibtest was given. 18778if test "${enable_glibtest+set}" = set; then 18779 enableval="$enable_glibtest" 18780 18781else 18782 enable_glibtest=yes 18783fi; 18784 18785 pkg_config_args=glib-2.0 18786 for module in . 18787 do 18788 case "$module" in 18789 gmodule) 18790 pkg_config_args="$pkg_config_args gmodule-2.0" 18791 ;; 18792 gmodule-no-export) 18793 pkg_config_args="$pkg_config_args gmodule-no-export-2.0" 18794 ;; 18795 gobject) 18796 pkg_config_args="$pkg_config_args gobject-2.0" 18797 ;; 18798 gthread) 18799 pkg_config_args="$pkg_config_args gthread-2.0" 18800 ;; 18801 gio*) 18802 pkg_config_args="$pkg_config_args $module-2.0" 18803 ;; 18804 esac 18805 done 18806 18807 18808 18809if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18810 if test -n "$ac_tool_prefix"; then 18811 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18812set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18813echo "$as_me:$LINENO: checking for $ac_word" >&5 18814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18815if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 18816 echo $ECHO_N "(cached) $ECHO_C" >&6 18817else 18818 case $PKG_CONFIG in 18819 [\\/]* | ?:[\\/]*) 18820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18821 ;; 18822 *) 18823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18824for as_dir in $PATH 18825do 18826 IFS=$as_save_IFS 18827 test -z "$as_dir" && as_dir=. 18828 for ac_exec_ext in '' $ac_executable_extensions; do 18829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18832 break 2 18833 fi 18834done 18835done 18836 18837 ;; 18838esac 18839fi 18840PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18841 18842if test -n "$PKG_CONFIG"; then 18843 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 18844echo "${ECHO_T}$PKG_CONFIG" >&6 18845else 18846 echo "$as_me:$LINENO: result: no" >&5 18847echo "${ECHO_T}no" >&6 18848fi 18849 18850fi 18851if test -z "$ac_cv_path_PKG_CONFIG"; then 18852 ac_pt_PKG_CONFIG=$PKG_CONFIG 18853 # Extract the first word of "pkg-config", so it can be a program name with args. 18854set dummy pkg-config; ac_word=$2 18855echo "$as_me:$LINENO: checking for $ac_word" >&5 18856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18857if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 18858 echo $ECHO_N "(cached) $ECHO_C" >&6 18859else 18860 case $ac_pt_PKG_CONFIG in 18861 [\\/]* | ?:[\\/]*) 18862 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18863 ;; 18864 *) 18865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18866for as_dir in $PATH 18867do 18868 IFS=$as_save_IFS 18869 test -z "$as_dir" && as_dir=. 18870 for ac_exec_ext in '' $ac_executable_extensions; do 18871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18872 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18874 break 2 18875 fi 18876done 18877done 18878 18879 ;; 18880esac 18881fi 18882ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18883 18884if test -n "$ac_pt_PKG_CONFIG"; then 18885 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 18886echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 18887else 18888 echo "$as_me:$LINENO: result: no" >&5 18889echo "${ECHO_T}no" >&6 18890fi 18891 18892 PKG_CONFIG=$ac_pt_PKG_CONFIG 18893else 18894 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18895fi 18896 18897fi 18898if test -n "$PKG_CONFIG"; then 18899 _pkg_min_version=0.16 18900 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 18901echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 18902 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18903 echo "$as_me:$LINENO: result: yes" >&5 18904echo "${ECHO_T}yes" >&6 18905 else 18906 echo "$as_me:$LINENO: result: no" >&5 18907echo "${ECHO_T}no" >&6 18908 PKG_CONFIG="" 18909 fi 18910 18911fi 18912 18913 no_glib="" 18914 18915 if test "x$PKG_CONFIG" = x ; then 18916 no_glib=yes 18917 PKG_CONFIG=no 18918 fi 18919 18920 min_glib_version=2.10.0 18921 echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 18922echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6 18923 18924 if test x$PKG_CONFIG != xno ; then 18925 ## don't try to run the test against uninstalled libtool libs 18926 if $PKG_CONFIG --uninstalled $pkg_config_args; then 18927 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" 18928 enable_glibtest=no 18929 fi 18930 18931 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then 18932 : 18933 else 18934 no_glib=yes 18935 fi 18936 fi 18937 18938 if test x"$no_glib" = x ; then 18939 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` 18940 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` 18941 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` 18942 18943 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` 18944 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` 18945 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ 18946 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 18947 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ 18948 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 18949 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ 18950 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 18951 if test "x$enable_glibtest" = "xyes" ; then 18952 ac_save_CFLAGS="$CFLAGS" 18953 ac_save_LIBS="$LIBS" 18954 CFLAGS="$CFLAGS $GLIB_CFLAGS" 18955 LIBS="$GLIB_LIBS $LIBS" 18956 rm -f conf.glibtest 18957 if test "$cross_compiling" = yes; then 18958 echo $ac_n "cross compiling; assumed OK... $ac_c" 18959else 18960 cat >conftest.$ac_ext <<_ACEOF 18961/* confdefs.h. */ 18962_ACEOF 18963cat confdefs.h >>conftest.$ac_ext 18964cat >>conftest.$ac_ext <<_ACEOF 18965/* end confdefs.h. */ 18966 18967#include <glib.h> 18968#include <stdio.h> 18969#include <stdlib.h> 18970 18971int 18972main () 18973{ 18974 int major, minor, micro; 18975 char *tmp_version; 18976 18977 system ("touch conf.glibtest"); 18978 18979 /* HP/UX 9 (%@#!) writes to sscanf strings */ 18980 tmp_version = g_strdup("$min_glib_version"); 18981 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 18982 printf("%s, bad version string\n", "$min_glib_version"); 18983 exit(1); 18984 } 18985 18986 if ((glib_major_version != $glib_config_major_version) || 18987 (glib_minor_version != $glib_config_minor_version) || 18988 (glib_micro_version != $glib_config_micro_version)) 18989 { 18990 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 18991 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, 18992 glib_major_version, glib_minor_version, glib_micro_version); 18993 printf ("*** was found! If pkg-config was correct, then it is best\n"); 18994 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); 18995 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 18996 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 18997 printf("*** required on your system.\n"); 18998 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 18999 printf("*** to point to the correct configuration files\n"); 19000 } 19001 else if ((glib_major_version != GLIB_MAJOR_VERSION) || 19002 (glib_minor_version != GLIB_MINOR_VERSION) || 19003 (glib_micro_version != GLIB_MICRO_VERSION)) 19004 { 19005 printf("*** GLIB header files (version %d.%d.%d) do not match\n", 19006 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); 19007 printf("*** library (version %d.%d.%d)\n", 19008 glib_major_version, glib_minor_version, glib_micro_version); 19009 } 19010 else 19011 { 19012 if ((glib_major_version > major) || 19013 ((glib_major_version == major) && (glib_minor_version > minor)) || 19014 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) 19015 { 19016 return 0; 19017 } 19018 else 19019 { 19020 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", 19021 glib_major_version, glib_minor_version, glib_micro_version); 19022 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", 19023 major, minor, micro); 19024 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); 19025 printf("***\n"); 19026 printf("*** If you have already installed a sufficiently new version, this error\n"); 19027 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 19028 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 19029 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); 19030 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 19031 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 19032 printf("*** so that the correct libraries are found at run-time))\n"); 19033 } 19034 } 19035 return 1; 19036} 19037 19038_ACEOF 19039rm -f conftest$ac_exeext 19040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19041 (eval $ac_link) 2>&5 19042 ac_status=$? 19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19046 (eval $ac_try) 2>&5 19047 ac_status=$? 19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19049 (exit $ac_status); }; }; then 19050 : 19051else 19052 echo "$as_me: program exited with status $ac_status" >&5 19053echo "$as_me: failed program was:" >&5 19054sed 's/^/| /' conftest.$ac_ext >&5 19055 19056( exit $ac_status ) 19057no_glib=yes 19058fi 19059rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19060fi 19061 CFLAGS="$ac_save_CFLAGS" 19062 LIBS="$ac_save_LIBS" 19063 fi 19064 fi 19065 if test "x$no_glib" = x ; then 19066 echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 19067echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6 19068 : 19069 else 19070 echo "$as_me:$LINENO: result: no" >&5 19071echo "${ECHO_T}no" >&6 19072 if test "$PKG_CONFIG" = "no" ; then 19073 echo "*** A new enough version of pkg-config was not found." 19074 echo "*** See http://www.freedesktop.org/software/pkgconfig/" 19075 else 19076 if test -f conf.glibtest ; then 19077 : 19078 else 19079 echo "*** Could not run GLIB test program, checking why..." 19080 ac_save_CFLAGS="$CFLAGS" 19081 ac_save_LIBS="$LIBS" 19082 CFLAGS="$CFLAGS $GLIB_CFLAGS" 19083 LIBS="$LIBS $GLIB_LIBS" 19084 cat >conftest.$ac_ext <<_ACEOF 19085/* confdefs.h. */ 19086_ACEOF 19087cat confdefs.h >>conftest.$ac_ext 19088cat >>conftest.$ac_ext <<_ACEOF 19089/* end confdefs.h. */ 19090 19091#include <glib.h> 19092#include <stdio.h> 19093 19094int 19095main () 19096{ 19097 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 19098 ; 19099 return 0; 19100} 19101_ACEOF 19102rm -f conftest.$ac_objext conftest$ac_exeext 19103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19104 (eval $ac_link) 2>conftest.er1 19105 ac_status=$? 19106 grep -v '^ *+' conftest.er1 >conftest.err 19107 rm -f conftest.er1 19108 cat conftest.err >&5 19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19110 (exit $ac_status); } && 19111 { ac_try='test -z "$ac_c_werror_flag" 19112 || test ! -s conftest.err' 19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19114 (eval $ac_try) 2>&5 19115 ac_status=$? 19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19117 (exit $ac_status); }; } && 19118 { ac_try='test -s conftest$ac_exeext' 19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19120 (eval $ac_try) 2>&5 19121 ac_status=$? 19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19123 (exit $ac_status); }; }; then 19124 echo "*** The test program compiled, but did not run. This usually means" 19125 echo "*** that the run-time linker is not finding GLIB or finding the wrong" 19126 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" 19127 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 19128 echo "*** to the installed location Also, make sure you have run ldconfig if that" 19129 echo "*** is required on your system" 19130 echo "***" 19131 echo "*** If you have an old version installed, it is best to remove it, although" 19132 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 19133else 19134 echo "$as_me: failed program was:" >&5 19135sed 's/^/| /' conftest.$ac_ext >&5 19136 19137 echo "*** The test program failed to compile or link. See the file config.log for the" 19138 echo "*** exact error that occurred. This usually means GLIB is incorrectly installed." 19139fi 19140rm -f conftest.err conftest.$ac_objext \ 19141 conftest$ac_exeext conftest.$ac_ext 19142 CFLAGS="$ac_save_CFLAGS" 19143 LIBS="$ac_save_LIBS" 19144 fi 19145 fi 19146 GLIB_CFLAGS="" 19147 GLIB_LIBS="" 19148 GLIB_GENMARSHAL="" 19149 GOBJECT_QUERY="" 19150 GLIB_MKENUMS="" 19151 { { echo "$as_me:$LINENO: error: Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/glib/" >&5 19152echo "$as_me: error: Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/glib/" >&2;} 19153 { (exit 1); exit 1; }; } 19154 fi 19155 19156 19157 19158 19159 19160 rm -f conf.glibtest 19161 19162 19163 19164 ac_config_files="$ac_config_files Makefile doc/Makefile test/Makefile djgpp/Makefile xdelta-config libedsio/Makefile libedsio/edsio-comp" 19165 ac_config_commands="$ac_config_commands default" 19166cat >confcache <<\_ACEOF 19167# This file is a shell script that caches the results of configure 19168# tests run on this system so they can be shared between configure 19169# scripts and configure runs, see configure's option --config-cache. 19170# It is not useful on other systems. If it contains results you don't 19171# want to keep, you may remove or edit it. 19172# 19173# config.status only pays attention to the cache file if you give it 19174# the --recheck option to rerun configure. 19175# 19176# `ac_cv_env_foo' variables (set or unset) will be overridden when 19177# loading this file, other *unset* `ac_cv_foo' will be assigned the 19178# following values. 19179 19180_ACEOF 19181 19182# The following way of writing the cache mishandles newlines in values, 19183# but we know of no workaround that is simple, portable, and efficient. 19184# So, don't put newlines in cache variables' values. 19185# Ultrix sh set writes to stderr and can't be redirected directly, 19186# and sets the high bit in the cache file unless we assign to the vars. 19187{ 19188 (set) 2>&1 | 19189 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19190 *ac_space=\ *) 19191 # `set' does not quote correctly, so add quotes (double-quote 19192 # substitution turns \\\\ into \\, and sed turns \\ into \). 19193 sed -n \ 19194 "s/'/'\\\\''/g; 19195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19196 ;; 19197 *) 19198 # `set' quotes correctly as required by POSIX, so do not add quotes. 19199 sed -n \ 19200 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19201 ;; 19202 esac; 19203} | 19204 sed ' 19205 t clear 19206 : clear 19207 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19208 t end 19209 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19210 : end' >>confcache 19211if diff $cache_file confcache >/dev/null 2>&1; then :; else 19212 if test -w $cache_file; then 19213 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19214 cat confcache >$cache_file 19215 else 19216 echo "not updating unwritable cache $cache_file" 19217 fi 19218fi 19219rm -f confcache 19220 19221test "x$prefix" = xNONE && prefix=$ac_default_prefix 19222# Let make expand exec_prefix. 19223test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19224 19225# VPATH may cause trouble with some makes, so we remove $(srcdir), 19226# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19227# trailing colons and then remove the whole line if VPATH becomes empty 19228# (actually we leave an empty line to preserve line numbers). 19229if test "x$srcdir" = x.; then 19230 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19231s/:*\$(srcdir):*/:/; 19232s/:*\${srcdir}:*/:/; 19233s/:*@srcdir@:*/:/; 19234s/^\([^=]*=[ ]*\):*/\1/; 19235s/:*$//; 19236s/^[^=]*=[ ]*$//; 19237}' 19238fi 19239 19240DEFS=-DHAVE_CONFIG_H 19241 19242ac_libobjs= 19243ac_ltlibobjs= 19244for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19245 # 1. Remove the extension, and $U if already installed. 19246 ac_i=`echo "$ac_i" | 19247 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 19248 # 2. Add them. 19249 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 19250 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 19251done 19252LIBOBJS=$ac_libobjs 19253 19254LTLIBOBJS=$ac_ltlibobjs 19255 19256 19257 19258: ${CONFIG_STATUS=./config.status} 19259ac_clean_files_save=$ac_clean_files 19260ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19261{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19262echo "$as_me: creating $CONFIG_STATUS" >&6;} 19263cat >$CONFIG_STATUS <<_ACEOF 19264#! $SHELL 19265# Generated by $as_me. 19266# Run this file to recreate the current configuration. 19267# Compiler output produced by configure, useful for debugging 19268# configure, is in config.log if it exists. 19269 19270debug=false 19271ac_cs_recheck=false 19272ac_cs_silent=false 19273SHELL=\${CONFIG_SHELL-$SHELL} 19274_ACEOF 19275 19276cat >>$CONFIG_STATUS <<\_ACEOF 19277## --------------------- ## 19278## M4sh Initialization. ## 19279## --------------------- ## 19280 19281# Be Bourne compatible 19282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19283 emulate sh 19284 NULLCMD=: 19285 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19286 # is contrary to our usage. Disable this feature. 19287 alias -g '${1+"$@"}'='"$@"' 19288elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19289 set -o posix 19290fi 19291DUALCASE=1; export DUALCASE # for MKS sh 19292 19293# Support unset when possible. 19294if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19295 as_unset=unset 19296else 19297 as_unset=false 19298fi 19299 19300 19301# Work around bugs in pre-3.0 UWIN ksh. 19302$as_unset ENV MAIL MAILPATH 19303PS1='$ ' 19304PS2='> ' 19305PS4='+ ' 19306 19307# NLS nuisances. 19308for as_var in \ 19309 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19310 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19311 LC_TELEPHONE LC_TIME 19312do 19313 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19314 eval $as_var=C; export $as_var 19315 else 19316 $as_unset $as_var 19317 fi 19318done 19319 19320# Required to use basename. 19321if expr a : '\(a\)' >/dev/null 2>&1; then 19322 as_expr=expr 19323else 19324 as_expr=false 19325fi 19326 19327if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 19328 as_basename=basename 19329else 19330 as_basename=false 19331fi 19332 19333 19334# Name of the executable. 19335as_me=`$as_basename "$0" || 19336$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19337 X"$0" : 'X\(//\)$' \| \ 19338 X"$0" : 'X\(/\)$' \| \ 19339 . : '\(.\)' 2>/dev/null || 19340echo X/"$0" | 19341 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 19342 /^X\/\(\/\/\)$/{ s//\1/; q; } 19343 /^X\/\(\/\).*/{ s//\1/; q; } 19344 s/.*/./; q'` 19345 19346 19347# PATH needs CR, and LINENO needs CR and PATH. 19348# Avoid depending upon Character Ranges. 19349as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19350as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19351as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19352as_cr_digits='0123456789' 19353as_cr_alnum=$as_cr_Letters$as_cr_digits 19354 19355# The user is always right. 19356if test "${PATH_SEPARATOR+set}" != set; then 19357 echo "#! /bin/sh" >conf$$.sh 19358 echo "exit 0" >>conf$$.sh 19359 chmod +x conf$$.sh 19360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19361 PATH_SEPARATOR=';' 19362 else 19363 PATH_SEPARATOR=: 19364 fi 19365 rm -f conf$$.sh 19366fi 19367 19368 19369 as_lineno_1=$LINENO 19370 as_lineno_2=$LINENO 19371 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19372 test "x$as_lineno_1" != "x$as_lineno_2" && 19373 test "x$as_lineno_3" = "x$as_lineno_2" || { 19374 # Find who we are. Look in the path if we contain no path at all 19375 # relative or not. 19376 case $0 in 19377 *[\\/]* ) as_myself=$0 ;; 19378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19379for as_dir in $PATH 19380do 19381 IFS=$as_save_IFS 19382 test -z "$as_dir" && as_dir=. 19383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19384done 19385 19386 ;; 19387 esac 19388 # We did not find ourselves, most probably we were run as `sh COMMAND' 19389 # in which case we are not to be found in the path. 19390 if test "x$as_myself" = x; then 19391 as_myself=$0 19392 fi 19393 if test ! -f "$as_myself"; then 19394 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 19395echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 19396 { (exit 1); exit 1; }; } 19397 fi 19398 case $CONFIG_SHELL in 19399 '') 19400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19401for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19402do 19403 IFS=$as_save_IFS 19404 test -z "$as_dir" && as_dir=. 19405 for as_base in sh bash ksh sh5; do 19406 case $as_dir in 19407 /*) 19408 if ("$as_dir/$as_base" -c ' 19409 as_lineno_1=$LINENO 19410 as_lineno_2=$LINENO 19411 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19412 test "x$as_lineno_1" != "x$as_lineno_2" && 19413 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 19414 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 19415 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 19416 CONFIG_SHELL=$as_dir/$as_base 19417 export CONFIG_SHELL 19418 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 19419 fi;; 19420 esac 19421 done 19422done 19423;; 19424 esac 19425 19426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19427 # uniformly replaced by the line number. The first 'sed' inserts a 19428 # line-number line before each line; the second 'sed' does the real 19429 # work. The second script uses 'N' to pair each line-number line 19430 # with the numbered line, and appends trailing '-' during 19431 # substitution so that $LINENO is not a special case at line end. 19432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19433 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 19434 sed '=' <$as_myself | 19435 sed ' 19436 N 19437 s,$,-, 19438 : loop 19439 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 19440 t loop 19441 s,-$,, 19442 s,^['$as_cr_digits']*\n,, 19443 ' >$as_me.lineno && 19444 chmod +x $as_me.lineno || 19445 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 19446echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 19447 { (exit 1); exit 1; }; } 19448 19449 # Don't try to exec as it changes $[0], causing all sort of problems 19450 # (the dirname of $[0] is not the place where we might find the 19451 # original and so on. Autoconf is especially sensible to this). 19452 . ./$as_me.lineno 19453 # Exit status is that of the last command. 19454 exit 19455} 19456 19457 19458case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 19459 *c*,-n*) ECHO_N= ECHO_C=' 19460' ECHO_T=' ' ;; 19461 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 19462 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 19463esac 19464 19465if expr a : '\(a\)' >/dev/null 2>&1; then 19466 as_expr=expr 19467else 19468 as_expr=false 19469fi 19470 19471rm -f conf$$ conf$$.exe conf$$.file 19472echo >conf$$.file 19473if ln -s conf$$.file conf$$ 2>/dev/null; then 19474 # We could just check for DJGPP; but this test a) works b) is more generic 19475 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19476 if test -f conf$$.exe; then 19477 # Don't use ln at all; we don't have any links 19478 as_ln_s='cp -p' 19479 else 19480 as_ln_s='ln -s' 19481 fi 19482elif ln conf$$.file conf$$ 2>/dev/null; then 19483 as_ln_s=ln 19484else 19485 as_ln_s='cp -p' 19486fi 19487rm -f conf$$ conf$$.exe conf$$.file 19488 19489if mkdir -p . 2>/dev/null; then 19490 as_mkdir_p=: 19491else 19492 test -d ./-p && rmdir ./-p 19493 as_mkdir_p=false 19494fi 19495 19496as_executable_p="test -f" 19497 19498# Sed expression to map a string onto a valid CPP name. 19499as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19500 19501# Sed expression to map a string onto a valid variable name. 19502as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19503 19504 19505# IFS 19506# We need space, tab and new line, in precisely that order. 19507as_nl=' 19508' 19509IFS=" $as_nl" 19510 19511# CDPATH. 19512$as_unset CDPATH 19513 19514exec 6>&1 19515 19516# Open the log real soon, to keep \$[0] and so on meaningful, and to 19517# report actual input values of CONFIG_FILES etc. instead of their 19518# values after options handling. Logging --version etc. is OK. 19519exec 5>>config.log 19520{ 19521 echo 19522 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19523## Running $as_me. ## 19524_ASBOX 19525} >&5 19526cat >&5 <<_CSEOF 19527 19528This file was extended by $as_me, which was 19529generated by GNU Autoconf 2.59. Invocation command line was 19530 19531 CONFIG_FILES = $CONFIG_FILES 19532 CONFIG_HEADERS = $CONFIG_HEADERS 19533 CONFIG_LINKS = $CONFIG_LINKS 19534 CONFIG_COMMANDS = $CONFIG_COMMANDS 19535 $ $0 $@ 19536 19537_CSEOF 19538echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 19539echo >&5 19540_ACEOF 19541 19542# Files that config.status was made for. 19543if test -n "$ac_config_files"; then 19544 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19545fi 19546 19547if test -n "$ac_config_headers"; then 19548 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19549fi 19550 19551if test -n "$ac_config_links"; then 19552 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19553fi 19554 19555if test -n "$ac_config_commands"; then 19556 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19557fi 19558 19559cat >>$CONFIG_STATUS <<\_ACEOF 19560 19561ac_cs_usage="\ 19562\`$as_me' instantiates files from templates according to the 19563current configuration. 19564 19565Usage: $0 [OPTIONS] [FILE]... 19566 19567 -h, --help print this help, then exit 19568 -V, --version print version number, then exit 19569 -q, --quiet do not print progress messages 19570 -d, --debug don't remove temporary files 19571 --recheck update $as_me by reconfiguring in the same conditions 19572 --file=FILE[:TEMPLATE] 19573 instantiate the configuration file FILE 19574 --header=FILE[:TEMPLATE] 19575 instantiate the configuration header FILE 19576 19577Configuration files: 19578$config_files 19579 19580Configuration headers: 19581$config_headers 19582 19583Configuration commands: 19584$config_commands 19585 19586Report bugs to <bug-autoconf@gnu.org>." 19587_ACEOF 19588 19589cat >>$CONFIG_STATUS <<_ACEOF 19590ac_cs_version="\\ 19591config.status 19592configured by $0, generated by GNU Autoconf 2.59, 19593 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19594 19595Copyright (C) 2003 Free Software Foundation, Inc. 19596This config.status script is free software; the Free Software Foundation 19597gives unlimited permission to copy, distribute and modify it." 19598srcdir=$srcdir 19599INSTALL="$INSTALL" 19600_ACEOF 19601 19602cat >>$CONFIG_STATUS <<\_ACEOF 19603# If no file are specified by the user, then we need to provide default 19604# value. By we need to know if files were specified by the user. 19605ac_need_defaults=: 19606while test $# != 0 19607do 19608 case $1 in 19609 --*=*) 19610 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19611 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19612 ac_shift=: 19613 ;; 19614 -*) 19615 ac_option=$1 19616 ac_optarg=$2 19617 ac_shift=shift 19618 ;; 19619 *) # This is not an option, so the user has probably given explicit 19620 # arguments. 19621 ac_option=$1 19622 ac_need_defaults=false;; 19623 esac 19624 19625 case $ac_option in 19626 # Handling of the options. 19627_ACEOF 19628cat >>$CONFIG_STATUS <<\_ACEOF 19629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19630 ac_cs_recheck=: ;; 19631 --version | --vers* | -V ) 19632 echo "$ac_cs_version"; exit 0 ;; 19633 --he | --h) 19634 # Conflict between --help and --header 19635 { { echo "$as_me:$LINENO: error: ambiguous option: $1 19636Try \`$0 --help' for more information." >&5 19637echo "$as_me: error: ambiguous option: $1 19638Try \`$0 --help' for more information." >&2;} 19639 { (exit 1); exit 1; }; };; 19640 --help | --hel | -h ) 19641 echo "$ac_cs_usage"; exit 0 ;; 19642 --debug | --d* | -d ) 19643 debug=: ;; 19644 --file | --fil | --fi | --f ) 19645 $ac_shift 19646 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 19647 ac_need_defaults=false;; 19648 --header | --heade | --head | --hea ) 19649 $ac_shift 19650 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 19651 ac_need_defaults=false;; 19652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19653 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19654 ac_cs_silent=: ;; 19655 19656 # This is an error. 19657 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 19658Try \`$0 --help' for more information." >&5 19659echo "$as_me: error: unrecognized option: $1 19660Try \`$0 --help' for more information." >&2;} 19661 { (exit 1); exit 1; }; } ;; 19662 19663 *) ac_config_targets="$ac_config_targets $1" ;; 19664 19665 esac 19666 shift 19667done 19668 19669ac_configure_extra_args= 19670 19671if $ac_cs_silent; then 19672 exec 6>/dev/null 19673 ac_configure_extra_args="$ac_configure_extra_args --silent" 19674fi 19675 19676_ACEOF 19677cat >>$CONFIG_STATUS <<_ACEOF 19678if \$ac_cs_recheck; then 19679 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 19680 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19681fi 19682 19683_ACEOF 19684 19685cat >>$CONFIG_STATUS <<_ACEOF 19686# 19687# INIT-COMMANDS section. 19688# 19689 19690 19691 19692_ACEOF 19693 19694 19695 19696cat >>$CONFIG_STATUS <<\_ACEOF 19697for ac_config_target in $ac_config_targets 19698do 19699 case "$ac_config_target" in 19700 # Handling of arguments. 19701 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19702 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19703 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 19704 "djgpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES djgpp/Makefile" ;; 19705 "xdelta-config" ) CONFIG_FILES="$CONFIG_FILES xdelta-config" ;; 19706 "libedsio/Makefile" ) CONFIG_FILES="$CONFIG_FILES libedsio/Makefile" ;; 19707 "libedsio/edsio-comp" ) CONFIG_FILES="$CONFIG_FILES libedsio/edsio-comp" ;; 19708 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 19709 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 19710 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19711 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 19712echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19713 { (exit 1); exit 1; }; };; 19714 esac 19715done 19716 19717# If the user did not use the arguments to specify the items to instantiate, 19718# then the envvar interface is used. Set only those that are not. 19719# We use the long form for the default assignment because of an extremely 19720# bizarre bug on SunOS 4.1.3. 19721if $ac_need_defaults; then 19722 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19723 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19724 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19725fi 19726 19727# Have a temporary directory for convenience. Make it in the build tree 19728# simply because there is no reason to put it here, and in addition, 19729# creating and moving files from /tmp can sometimes cause problems. 19730# Create a temporary directory, and hook for its removal unless debugging. 19731$debug || 19732{ 19733 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 19734 trap '{ (exit 1); exit 1; }' 1 2 13 15 19735} 19736 19737# Create a (secure) tmp directory for tmp files. 19738 19739{ 19740 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 19741 test -n "$tmp" && test -d "$tmp" 19742} || 19743{ 19744 tmp=./confstat$$-$RANDOM 19745 (umask 077 && mkdir $tmp) 19746} || 19747{ 19748 echo "$me: cannot create a temporary directory in ." >&2 19749 { (exit 1); exit 1; } 19750} 19751 19752_ACEOF 19753 19754cat >>$CONFIG_STATUS <<_ACEOF 19755 19756# 19757# CONFIG_FILES section. 19758# 19759 19760# No need to generate the scripts if there are no CONFIG_FILES. 19761# This happens for instance when ./config.status config.h 19762if test -n "\$CONFIG_FILES"; then 19763 # Protect against being on the right side of a sed subst in config.status. 19764 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 19765 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 19766s,@SHELL@,$SHELL,;t t 19767s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 19768s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 19769s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 19770s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 19771s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 19772s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 19773s,@exec_prefix@,$exec_prefix,;t t 19774s,@prefix@,$prefix,;t t 19775s,@program_transform_name@,$program_transform_name,;t t 19776s,@bindir@,$bindir,;t t 19777s,@sbindir@,$sbindir,;t t 19778s,@libexecdir@,$libexecdir,;t t 19779s,@datadir@,$datadir,;t t 19780s,@sysconfdir@,$sysconfdir,;t t 19781s,@sharedstatedir@,$sharedstatedir,;t t 19782s,@localstatedir@,$localstatedir,;t t 19783s,@libdir@,$libdir,;t t 19784s,@includedir@,$includedir,;t t 19785s,@oldincludedir@,$oldincludedir,;t t 19786s,@infodir@,$infodir,;t t 19787s,@mandir@,$mandir,;t t 19788s,@build_alias@,$build_alias,;t t 19789s,@host_alias@,$host_alias,;t t 19790s,@target_alias@,$target_alias,;t t 19791s,@DEFS@,$DEFS,;t t 19792s,@ECHO_C@,$ECHO_C,;t t 19793s,@ECHO_N@,$ECHO_N,;t t 19794s,@ECHO_T@,$ECHO_T,;t t 19795s,@LIBS@,$LIBS,;t t 19796s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 19797s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 19798s,@INSTALL_DATA@,$INSTALL_DATA,;t t 19799s,@PACKAGE@,$PACKAGE,;t t 19800s,@VERSION@,$VERSION,;t t 19801s,@ACLOCAL@,$ACLOCAL,;t t 19802s,@AUTOCONF@,$AUTOCONF,;t t 19803s,@AUTOMAKE@,$AUTOMAKE,;t t 19804s,@AUTOHEADER@,$AUTOHEADER,;t t 19805s,@MAKEINFO@,$MAKEINFO,;t t 19806s,@SET_MAKE@,$SET_MAKE,;t t 19807s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 19808s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 19809s,@MAINT@,$MAINT,;t t 19810s,@CC@,$CC,;t t 19811s,@CFLAGS@,$CFLAGS,;t t 19812s,@LDFLAGS@,$LDFLAGS,;t t 19813s,@CPPFLAGS@,$CPPFLAGS,;t t 19814s,@ac_ct_CC@,$ac_ct_CC,;t t 19815s,@EXEEXT@,$EXEEXT,;t t 19816s,@OBJEXT@,$OBJEXT,;t t 19817s,@CPP@,$CPP,;t t 19818s,@build@,$build,;t t 19819s,@build_cpu@,$build_cpu,;t t 19820s,@build_vendor@,$build_vendor,;t t 19821s,@build_os@,$build_os,;t t 19822s,@host@,$host,;t t 19823s,@host_cpu@,$host_cpu,;t t 19824s,@host_vendor@,$host_vendor,;t t 19825s,@host_os@,$host_os,;t t 19826s,@EGREP@,$EGREP,;t t 19827s,@LN_S@,$LN_S,;t t 19828s,@ECHO@,$ECHO,;t t 19829s,@AR@,$AR,;t t 19830s,@ac_ct_AR@,$ac_ct_AR,;t t 19831s,@RANLIB@,$RANLIB,;t t 19832s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 19833s,@STRIP@,$STRIP,;t t 19834s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 19835s,@CXX@,$CXX,;t t 19836s,@CXXFLAGS@,$CXXFLAGS,;t t 19837s,@ac_ct_CXX@,$ac_ct_CXX,;t t 19838s,@CXXCPP@,$CXXCPP,;t t 19839s,@F77@,$F77,;t t 19840s,@FFLAGS@,$FFLAGS,;t t 19841s,@ac_ct_F77@,$ac_ct_F77,;t t 19842s,@LIBTOOL@,$LIBTOOL,;t t 19843s,@EMACS@,$EMACS,;t t 19844s,@top_srcdir_absolute@,$top_srcdir_absolute,;t t 19845s,@PKG_CONFIG@,$PKG_CONFIG,;t t 19846s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 19847s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t 19848s,@GLIB_LIBS@,$GLIB_LIBS,;t t 19849s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t 19850s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t 19851s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t 19852s,@LIBOBJS@,$LIBOBJS,;t t 19853s,@LTLIBOBJS@,$LTLIBOBJS,;t t 19854CEOF 19855 19856_ACEOF 19857 19858 cat >>$CONFIG_STATUS <<\_ACEOF 19859 # Split the substitutions into bite-sized pieces for seds with 19860 # small command number limits, like on Digital OSF/1 and HP-UX. 19861 ac_max_sed_lines=48 19862 ac_sed_frag=1 # Number of current file. 19863 ac_beg=1 # First line for current file. 19864 ac_end=$ac_max_sed_lines # Line after last line for current file. 19865 ac_more_lines=: 19866 ac_sed_cmds= 19867 while $ac_more_lines; do 19868 if test $ac_beg -gt 1; then 19869 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19870 else 19871 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19872 fi 19873 if test ! -s $tmp/subs.frag; then 19874 ac_more_lines=false 19875 else 19876 # The purpose of the label and of the branching condition is to 19877 # speed up the sed processing (if there are no `@' at all, there 19878 # is no need to browse any of the substitutions). 19879 # These are the two extra sed commands mentioned above. 19880 (echo ':t 19881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 19882 if test -z "$ac_sed_cmds"; then 19883 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 19884 else 19885 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 19886 fi 19887 ac_sed_frag=`expr $ac_sed_frag + 1` 19888 ac_beg=$ac_end 19889 ac_end=`expr $ac_end + $ac_max_sed_lines` 19890 fi 19891 done 19892 if test -z "$ac_sed_cmds"; then 19893 ac_sed_cmds=cat 19894 fi 19895fi # test -n "$CONFIG_FILES" 19896 19897_ACEOF 19898cat >>$CONFIG_STATUS <<\_ACEOF 19899for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 19900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19901 case $ac_file in 19902 - | *:- | *:-:* ) # input from stdin 19903 cat >$tmp/stdin 19904 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19905 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19906 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19907 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19908 * ) ac_file_in=$ac_file.in ;; 19909 esac 19910 19911 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 19912 ac_dir=`(dirname "$ac_file") 2>/dev/null || 19913$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19914 X"$ac_file" : 'X\(//\)[^/]' \| \ 19915 X"$ac_file" : 'X\(//\)$' \| \ 19916 X"$ac_file" : 'X\(/\)' \| \ 19917 . : '\(.\)' 2>/dev/null || 19918echo X"$ac_file" | 19919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19920 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19921 /^X\(\/\/\)$/{ s//\1/; q; } 19922 /^X\(\/\).*/{ s//\1/; q; } 19923 s/.*/./; q'` 19924 { if $as_mkdir_p; then 19925 mkdir -p "$ac_dir" 19926 else 19927 as_dir="$ac_dir" 19928 as_dirs= 19929 while test ! -d "$as_dir"; do 19930 as_dirs="$as_dir $as_dirs" 19931 as_dir=`(dirname "$as_dir") 2>/dev/null || 19932$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19933 X"$as_dir" : 'X\(//\)[^/]' \| \ 19934 X"$as_dir" : 'X\(//\)$' \| \ 19935 X"$as_dir" : 'X\(/\)' \| \ 19936 . : '\(.\)' 2>/dev/null || 19937echo X"$as_dir" | 19938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19939 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19940 /^X\(\/\/\)$/{ s//\1/; q; } 19941 /^X\(\/\).*/{ s//\1/; q; } 19942 s/.*/./; q'` 19943 done 19944 test ! -n "$as_dirs" || mkdir $as_dirs 19945 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 19946echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 19947 { (exit 1); exit 1; }; }; } 19948 19949 ac_builddir=. 19950 19951if test "$ac_dir" != .; then 19952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19953 # A "../" for each directory in $ac_dir_suffix. 19954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 19955else 19956 ac_dir_suffix= ac_top_builddir= 19957fi 19958 19959case $srcdir in 19960 .) # No --srcdir option. We are building in place. 19961 ac_srcdir=. 19962 if test -z "$ac_top_builddir"; then 19963 ac_top_srcdir=. 19964 else 19965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 19966 fi ;; 19967 [\\/]* | ?:[\\/]* ) # Absolute path. 19968 ac_srcdir=$srcdir$ac_dir_suffix; 19969 ac_top_srcdir=$srcdir ;; 19970 *) # Relative path. 19971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 19972 ac_top_srcdir=$ac_top_builddir$srcdir ;; 19973esac 19974 19975# Do not use `cd foo && pwd` to compute absolute paths, because 19976# the directories may not exist. 19977case `pwd` in 19978.) ac_abs_builddir="$ac_dir";; 19979*) 19980 case "$ac_dir" in 19981 .) ac_abs_builddir=`pwd`;; 19982 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 19983 *) ac_abs_builddir=`pwd`/"$ac_dir";; 19984 esac;; 19985esac 19986case $ac_abs_builddir in 19987.) ac_abs_top_builddir=${ac_top_builddir}.;; 19988*) 19989 case ${ac_top_builddir}. in 19990 .) ac_abs_top_builddir=$ac_abs_builddir;; 19991 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 19992 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 19993 esac;; 19994esac 19995case $ac_abs_builddir in 19996.) ac_abs_srcdir=$ac_srcdir;; 19997*) 19998 case $ac_srcdir in 19999 .) ac_abs_srcdir=$ac_abs_builddir;; 20000 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20001 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20002 esac;; 20003esac 20004case $ac_abs_builddir in 20005.) ac_abs_top_srcdir=$ac_top_srcdir;; 20006*) 20007 case $ac_top_srcdir in 20008 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20009 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20010 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20011 esac;; 20012esac 20013 20014 20015 case $INSTALL in 20016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20017 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 20018 esac 20019 20020 if test x"$ac_file" != x-; then 20021 { echo "$as_me:$LINENO: creating $ac_file" >&5 20022echo "$as_me: creating $ac_file" >&6;} 20023 rm -f "$ac_file" 20024 fi 20025 # Let's still pretend it is `configure' which instantiates (i.e., don't 20026 # use $as_me), people would be surprised to read: 20027 # /* config.h. Generated by config.status. */ 20028 if test x"$ac_file" = x-; then 20029 configure_input= 20030 else 20031 configure_input="$ac_file. " 20032 fi 20033 configure_input=$configure_input"Generated from `echo $ac_file_in | 20034 sed 's,.*/,,'` by configure." 20035 20036 # First look for the input files in the build tree, otherwise in the 20037 # src tree. 20038 ac_file_inputs=`IFS=: 20039 for f in $ac_file_in; do 20040 case $f in 20041 -) echo $tmp/stdin ;; 20042 [\\/$]*) 20043 # Absolute (can't be DOS-style, as IFS=:) 20044 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20045echo "$as_me: error: cannot find input file: $f" >&2;} 20046 { (exit 1); exit 1; }; } 20047 echo "$f";; 20048 *) # Relative 20049 if test -f "$f"; then 20050 # Build tree 20051 echo "$f" 20052 elif test -f "$srcdir/$f"; then 20053 # Source tree 20054 echo "$srcdir/$f" 20055 else 20056 # /dev/null tree 20057 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20058echo "$as_me: error: cannot find input file: $f" >&2;} 20059 { (exit 1); exit 1; }; } 20060 fi;; 20061 esac 20062 done` || { (exit 1); exit 1; } 20063_ACEOF 20064cat >>$CONFIG_STATUS <<_ACEOF 20065 sed "$ac_vpsub 20066$extrasub 20067_ACEOF 20068cat >>$CONFIG_STATUS <<\_ACEOF 20069:t 20070/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20071s,@configure_input@,$configure_input,;t t 20072s,@srcdir@,$ac_srcdir,;t t 20073s,@abs_srcdir@,$ac_abs_srcdir,;t t 20074s,@top_srcdir@,$ac_top_srcdir,;t t 20075s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20076s,@builddir@,$ac_builddir,;t t 20077s,@abs_builddir@,$ac_abs_builddir,;t t 20078s,@top_builddir@,$ac_top_builddir,;t t 20079s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20080s,@INSTALL@,$ac_INSTALL,;t t 20081" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20082 rm -f $tmp/stdin 20083 if test x"$ac_file" != x-; then 20084 mv $tmp/out $ac_file 20085 else 20086 cat $tmp/out 20087 rm -f $tmp/out 20088 fi 20089 20090done 20091_ACEOF 20092cat >>$CONFIG_STATUS <<\_ACEOF 20093 20094# 20095# CONFIG_HEADER section. 20096# 20097 20098# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20099# NAME is the cpp macro being defined and VALUE is the value it is being given. 20100# 20101# ac_d sets the value in "#define NAME VALUE" lines. 20102ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20103ac_dB='[ ].*$,\1#\2' 20104ac_dC=' ' 20105ac_dD=',;t' 20106# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20107ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20108ac_uB='$,\1#\2define\3' 20109ac_uC=' ' 20110ac_uD=',;t' 20111 20112for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20113 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20114 case $ac_file in 20115 - | *:- | *:-:* ) # input from stdin 20116 cat >$tmp/stdin 20117 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20118 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20119 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20120 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20121 * ) ac_file_in=$ac_file.in ;; 20122 esac 20123 20124 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 20125echo "$as_me: creating $ac_file" >&6;} 20126 20127 # First look for the input files in the build tree, otherwise in the 20128 # src tree. 20129 ac_file_inputs=`IFS=: 20130 for f in $ac_file_in; do 20131 case $f in 20132 -) echo $tmp/stdin ;; 20133 [\\/$]*) 20134 # Absolute (can't be DOS-style, as IFS=:) 20135 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20136echo "$as_me: error: cannot find input file: $f" >&2;} 20137 { (exit 1); exit 1; }; } 20138 # Do quote $f, to prevent DOS paths from being IFS'd. 20139 echo "$f";; 20140 *) # Relative 20141 if test -f "$f"; then 20142 # Build tree 20143 echo "$f" 20144 elif test -f "$srcdir/$f"; then 20145 # Source tree 20146 echo "$srcdir/$f" 20147 else 20148 # /dev/null tree 20149 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20150echo "$as_me: error: cannot find input file: $f" >&2;} 20151 { (exit 1); exit 1; }; } 20152 fi;; 20153 esac 20154 done` || { (exit 1); exit 1; } 20155 # Remove the trailing spaces. 20156 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20157 20158_ACEOF 20159 20160# Transform confdefs.h into two sed scripts, `conftest.defines' and 20161# `conftest.undefs', that substitutes the proper values into 20162# config.h.in to produce config.h. The first handles `#define' 20163# templates, and the second `#undef' templates. 20164# And first: Protect against being on the right side of a sed subst in 20165# config.status. Protect against being in an unquoted here document 20166# in config.status. 20167rm -f conftest.defines conftest.undefs 20168# Using a here document instead of a string reduces the quoting nightmare. 20169# Putting comments in sed scripts is not portable. 20170# 20171# `end' is used to avoid that the second main sed command (meant for 20172# 0-ary CPP macros) applies to n-ary macro definitions. 20173# See the Autoconf documentation for `clear'. 20174cat >confdef2sed.sed <<\_ACEOF 20175s/[\\&,]/\\&/g 20176s,[\\$`],\\&,g 20177t clear 20178: clear 20179s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 20180t end 20181s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20182: end 20183_ACEOF 20184# If some macros were called several times there might be several times 20185# the same #defines, which is useless. Nevertheless, we may not want to 20186# sort them, since we want the *last* AC-DEFINE to be honored. 20187uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20188sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20189rm -f confdef2sed.sed 20190 20191# This sed command replaces #undef with comments. This is necessary, for 20192# example, in the case of _POSIX_SOURCE, which is predefined and required 20193# on some systems where configure will not decide to define it. 20194cat >>conftest.undefs <<\_ACEOF 20195s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20196_ACEOF 20197 20198# Break up conftest.defines because some shells have a limit on the size 20199# of here documents, and old seds have small limits too (100 cmds). 20200echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20201echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20202echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20203echo ' :' >>$CONFIG_STATUS 20204rm -f conftest.tail 20205while grep . conftest.defines >/dev/null 20206do 20207 # Write a limited-size here document to $tmp/defines.sed. 20208 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20209 # Speed up: don't consider the non `#define' lines. 20210 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20211 # Work around the forget-to-reset-the-flag bug. 20212 echo 't clr' >>$CONFIG_STATUS 20213 echo ': clr' >>$CONFIG_STATUS 20214 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20215 echo 'CEOF 20216 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20217 rm -f $tmp/in 20218 mv $tmp/out $tmp/in 20219' >>$CONFIG_STATUS 20220 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 20221 rm -f conftest.defines 20222 mv conftest.tail conftest.defines 20223done 20224rm -f conftest.defines 20225echo ' fi # grep' >>$CONFIG_STATUS 20226echo >>$CONFIG_STATUS 20227 20228# Break up conftest.undefs because some shells have a limit on the size 20229# of here documents, and old seds have small limits too (100 cmds). 20230echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 20231rm -f conftest.tail 20232while grep . conftest.undefs >/dev/null 20233do 20234 # Write a limited-size here document to $tmp/undefs.sed. 20235 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 20236 # Speed up: don't consider the non `#undef' 20237 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 20238 # Work around the forget-to-reset-the-flag bug. 20239 echo 't clr' >>$CONFIG_STATUS 20240 echo ': clr' >>$CONFIG_STATUS 20241 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 20242 echo 'CEOF 20243 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 20244 rm -f $tmp/in 20245 mv $tmp/out $tmp/in 20246' >>$CONFIG_STATUS 20247 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 20248 rm -f conftest.undefs 20249 mv conftest.tail conftest.undefs 20250done 20251rm -f conftest.undefs 20252 20253cat >>$CONFIG_STATUS <<\_ACEOF 20254 # Let's still pretend it is `configure' which instantiates (i.e., don't 20255 # use $as_me), people would be surprised to read: 20256 # /* config.h. Generated by config.status. */ 20257 if test x"$ac_file" = x-; then 20258 echo "/* Generated by configure. */" >$tmp/config.h 20259 else 20260 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 20261 fi 20262 cat $tmp/in >>$tmp/config.h 20263 rm -f $tmp/in 20264 if test x"$ac_file" != x-; then 20265 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 20266 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20267echo "$as_me: $ac_file is unchanged" >&6;} 20268 else 20269 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20270$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20271 X"$ac_file" : 'X\(//\)[^/]' \| \ 20272 X"$ac_file" : 'X\(//\)$' \| \ 20273 X"$ac_file" : 'X\(/\)' \| \ 20274 . : '\(.\)' 2>/dev/null || 20275echo X"$ac_file" | 20276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20277 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20278 /^X\(\/\/\)$/{ s//\1/; q; } 20279 /^X\(\/\).*/{ s//\1/; q; } 20280 s/.*/./; q'` 20281 { if $as_mkdir_p; then 20282 mkdir -p "$ac_dir" 20283 else 20284 as_dir="$ac_dir" 20285 as_dirs= 20286 while test ! -d "$as_dir"; do 20287 as_dirs="$as_dir $as_dirs" 20288 as_dir=`(dirname "$as_dir") 2>/dev/null || 20289$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20290 X"$as_dir" : 'X\(//\)[^/]' \| \ 20291 X"$as_dir" : 'X\(//\)$' \| \ 20292 X"$as_dir" : 'X\(/\)' \| \ 20293 . : '\(.\)' 2>/dev/null || 20294echo X"$as_dir" | 20295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20296 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20297 /^X\(\/\/\)$/{ s//\1/; q; } 20298 /^X\(\/\).*/{ s//\1/; q; } 20299 s/.*/./; q'` 20300 done 20301 test ! -n "$as_dirs" || mkdir $as_dirs 20302 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20303echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20304 { (exit 1); exit 1; }; }; } 20305 20306 rm -f $ac_file 20307 mv $tmp/config.h $ac_file 20308 fi 20309 else 20310 cat $tmp/config.h 20311 rm -f $tmp/config.h 20312 fi 20313done 20314_ACEOF 20315cat >>$CONFIG_STATUS <<\_ACEOF 20316 20317# 20318# CONFIG_COMMANDS section. 20319# 20320for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 20321 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 20322 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 20323 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 20324$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20325 X"$ac_dest" : 'X\(//\)[^/]' \| \ 20326 X"$ac_dest" : 'X\(//\)$' \| \ 20327 X"$ac_dest" : 'X\(/\)' \| \ 20328 . : '\(.\)' 2>/dev/null || 20329echo X"$ac_dest" | 20330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20331 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20332 /^X\(\/\/\)$/{ s//\1/; q; } 20333 /^X\(\/\).*/{ s//\1/; q; } 20334 s/.*/./; q'` 20335 { if $as_mkdir_p; then 20336 mkdir -p "$ac_dir" 20337 else 20338 as_dir="$ac_dir" 20339 as_dirs= 20340 while test ! -d "$as_dir"; do 20341 as_dirs="$as_dir $as_dirs" 20342 as_dir=`(dirname "$as_dir") 2>/dev/null || 20343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20344 X"$as_dir" : 'X\(//\)[^/]' \| \ 20345 X"$as_dir" : 'X\(//\)$' \| \ 20346 X"$as_dir" : 'X\(/\)' \| \ 20347 . : '\(.\)' 2>/dev/null || 20348echo X"$as_dir" | 20349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20350 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20351 /^X\(\/\/\)$/{ s//\1/; q; } 20352 /^X\(\/\).*/{ s//\1/; q; } 20353 s/.*/./; q'` 20354 done 20355 test ! -n "$as_dirs" || mkdir $as_dirs 20356 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20357echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20358 { (exit 1); exit 1; }; }; } 20359 20360 ac_builddir=. 20361 20362if test "$ac_dir" != .; then 20363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20364 # A "../" for each directory in $ac_dir_suffix. 20365 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20366else 20367 ac_dir_suffix= ac_top_builddir= 20368fi 20369 20370case $srcdir in 20371 .) # No --srcdir option. We are building in place. 20372 ac_srcdir=. 20373 if test -z "$ac_top_builddir"; then 20374 ac_top_srcdir=. 20375 else 20376 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20377 fi ;; 20378 [\\/]* | ?:[\\/]* ) # Absolute path. 20379 ac_srcdir=$srcdir$ac_dir_suffix; 20380 ac_top_srcdir=$srcdir ;; 20381 *) # Relative path. 20382 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20383 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20384esac 20385 20386# Do not use `cd foo && pwd` to compute absolute paths, because 20387# the directories may not exist. 20388case `pwd` in 20389.) ac_abs_builddir="$ac_dir";; 20390*) 20391 case "$ac_dir" in 20392 .) ac_abs_builddir=`pwd`;; 20393 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20394 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20395 esac;; 20396esac 20397case $ac_abs_builddir in 20398.) ac_abs_top_builddir=${ac_top_builddir}.;; 20399*) 20400 case ${ac_top_builddir}. in 20401 .) ac_abs_top_builddir=$ac_abs_builddir;; 20402 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20403 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20404 esac;; 20405esac 20406case $ac_abs_builddir in 20407.) ac_abs_srcdir=$ac_srcdir;; 20408*) 20409 case $ac_srcdir in 20410 .) ac_abs_srcdir=$ac_abs_builddir;; 20411 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20412 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20413 esac;; 20414esac 20415case $ac_abs_builddir in 20416.) ac_abs_top_srcdir=$ac_top_srcdir;; 20417*) 20418 case $ac_top_srcdir in 20419 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20420 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20421 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20422 esac;; 20423esac 20424 20425 20426 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 20427echo "$as_me: executing $ac_dest commands" >&6;} 20428 case $ac_dest in 20429 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 20430 default ) chmod +x libedsio/edsio-comp xdelta-config 20431 ;; 20432 esac 20433done 20434_ACEOF 20435 20436cat >>$CONFIG_STATUS <<\_ACEOF 20437 20438{ (exit 0); exit 0; } 20439_ACEOF 20440chmod +x $CONFIG_STATUS 20441ac_clean_files=$ac_clean_files_save 20442 20443 20444# configure is writing to config.log, and then calls config.status. 20445# config.status does its own redirection, appending to config.log. 20446# Unfortunately, on DOS this fails, as config.log is still kept open 20447# by configure, so config.status won't be able to write to it; its 20448# output is simply discarded. So we exec the FD to /dev/null, 20449# effectively closing config.log, so it can be properly (re)opened and 20450# appended to by config.status. When coming back to configure, we 20451# need to make the FD available again. 20452if test "$no_create" != yes; then 20453 ac_cs_success=: 20454 ac_config_status_args= 20455 test "$silent" = yes && 20456 ac_config_status_args="$ac_config_status_args --quiet" 20457 exec 5>/dev/null 20458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20459 exec 5>>config.log 20460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20461 # would make configure fail if this is the last instruction. 20462 $ac_cs_success || { (exit 1); exit 1; } 20463fi 20464 20465