1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for jclassinfo 0.19.1. 4# 5# Report bugs to <anarxia@gmx.net>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string="`eval $cmd`") 2>/dev/null && 291 echo_test_string="`eval $cmd`" && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='jclassinfo' 425PACKAGE_TARNAME='jclassinfo' 426PACKAGE_VERSION='0.19.1' 427PACKAGE_STRING='jclassinfo 0.19.1' 428PACKAGE_BUGREPORT='anarxia@gmx.net' 429 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT JCLASS_CURRENT JCLASS_RELEASE JCLASS_AGE JCLASS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GETOPT_INCLUDES GETOPT_LIB GETOPT_OBJS ENABLE_JCLASSINFO_TRUE ENABLE_JCLASSINFO_FALSE HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE 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 948 949# 950# Report the --help message. 951# 952if test "$ac_init_help" = "long"; then 953 # Omit some internal or obsolete options to make the list less imposing. 954 # This message is too long to be a string in the A/UX 3.1 sh. 955 cat <<_ACEOF 956\`configure' configures jclassinfo 0.19.1 to adapt to many kinds of systems. 957 958Usage: $0 [OPTION]... [VAR=VALUE]... 959 960To assign environment variables (e.g., CC, CFLAGS...), specify them as 961VAR=VALUE. See below for descriptions of some of the useful variables. 962 963Defaults for the options are specified in brackets. 964 965Configuration: 966 -h, --help display this help and exit 967 --help=short display options specific to this package 968 --help=recursive display the short help of all the included packages 969 -V, --version display version information and exit 970 -q, --quiet, --silent do not print \`checking...' messages 971 --cache-file=FILE cache test results in FILE [disabled] 972 -C, --config-cache alias for \`--cache-file=config.cache' 973 -n, --no-create do not create output files 974 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 975 976_ACEOF 977 978 cat <<_ACEOF 979Installation directories: 980 --prefix=PREFIX install architecture-independent files in PREFIX 981 [$ac_default_prefix] 982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 983 [PREFIX] 984 985By default, \`make install' will install all the files in 986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 987an installation prefix other than \`$ac_default_prefix' using \`--prefix', 988for instance \`--prefix=\$HOME'. 989 990For better control, use the options below. 991 992Fine tuning of the installation directories: 993 --bindir=DIR user executables [EPREFIX/bin] 994 --sbindir=DIR system admin executables [EPREFIX/sbin] 995 --libexecdir=DIR program executables [EPREFIX/libexec] 996 --datadir=DIR read-only architecture-independent data [PREFIX/share] 997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 999 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1000 --libdir=DIR object code libraries [EPREFIX/lib] 1001 --includedir=DIR C header files [PREFIX/include] 1002 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1003 --infodir=DIR info documentation [PREFIX/info] 1004 --mandir=DIR man documentation [PREFIX/man] 1005_ACEOF 1006 1007 cat <<\_ACEOF 1008 1009Program names: 1010 --program-prefix=PREFIX prepend PREFIX to installed program names 1011 --program-suffix=SUFFIX append SUFFIX to installed program names 1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1013 1014System types: 1015 --build=BUILD configure for building on BUILD [guessed] 1016 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1017_ACEOF 1018fi 1019 1020if test -n "$ac_init_help"; then 1021 case $ac_init_help in 1022 short | recursive ) echo "Configuration of jclassinfo 0.19.1:";; 1023 esac 1024 cat <<\_ACEOF 1025 1026Optional Features: 1027 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1028 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1029 --enable-maintainer-mode enable make rules and dependencies not useful 1030 (and sometimes confusing) to the casual installer 1031 --enable-shared[=PKGS] 1032 build shared libraries [default=yes] 1033 --enable-static[=PKGS] 1034 build static libraries [default=yes] 1035 --enable-fast-install[=PKGS] 1036 optimize for fast installation [default=yes] 1037 --disable-dependency-tracking Speeds up one-time builds 1038 --enable-dependency-tracking Do not reject slow dependency extractors 1039 --disable-libtool-lock avoid locking (might break parallel builds) 1040 --enable-jclassinfo build jclassinfo (default=yes) 1041 --enable-gtk-doc use gtk-doc to build API documentation (default=no) 1042 1043Optional Packages: 1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1047 --with-pic try to use only PIC/non-PIC objects [default=use 1048 both] 1049 --with-tags[=TAGS] 1050 include additional configurations [automatic] 1051 --with-html-dir=PATH path to install API documentation 1052 1053Some influential environment variables: 1054 CC C compiler command 1055 CFLAGS C compiler flags 1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1057 nonstandard directory <lib dir> 1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1059 headers in a nonstandard directory <include dir> 1060 CPP C preprocessor 1061 CXX C++ compiler command 1062 CXXFLAGS C++ compiler flags 1063 CXXCPP C++ preprocessor 1064 F77 Fortran 77 compiler command 1065 FFLAGS Fortran 77 compiler flags 1066 1067Use these variables to override the choices made by `configure' or to help 1068it to find libraries and programs with nonstandard names/locations. 1069 1070Report bugs to <anarxia@gmx.net>. 1071_ACEOF 1072fi 1073 1074if test "$ac_init_help" = "recursive"; then 1075 # If there are subdirs, report their specific --help. 1076 ac_popdir=`pwd` 1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1078 test -d $ac_dir || continue 1079 ac_builddir=. 1080 1081if test "$ac_dir" != .; then 1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1083 # A "../" for each directory in $ac_dir_suffix. 1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1085else 1086 ac_dir_suffix= ac_top_builddir= 1087fi 1088 1089case $srcdir in 1090 .) # No --srcdir option. We are building in place. 1091 ac_srcdir=. 1092 if test -z "$ac_top_builddir"; then 1093 ac_top_srcdir=. 1094 else 1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1096 fi ;; 1097 [\\/]* | ?:[\\/]* ) # Absolute path. 1098 ac_srcdir=$srcdir$ac_dir_suffix; 1099 ac_top_srcdir=$srcdir ;; 1100 *) # Relative path. 1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1102 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1103esac 1104 1105# Do not use `cd foo && pwd` to compute absolute paths, because 1106# the directories may not exist. 1107case `pwd` in 1108.) ac_abs_builddir="$ac_dir";; 1109*) 1110 case "$ac_dir" in 1111 .) ac_abs_builddir=`pwd`;; 1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1113 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1114 esac;; 1115esac 1116case $ac_abs_builddir in 1117.) ac_abs_top_builddir=${ac_top_builddir}.;; 1118*) 1119 case ${ac_top_builddir}. in 1120 .) ac_abs_top_builddir=$ac_abs_builddir;; 1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1123 esac;; 1124esac 1125case $ac_abs_builddir in 1126.) ac_abs_srcdir=$ac_srcdir;; 1127*) 1128 case $ac_srcdir in 1129 .) ac_abs_srcdir=$ac_abs_builddir;; 1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1132 esac;; 1133esac 1134case $ac_abs_builddir in 1135.) ac_abs_top_srcdir=$ac_top_srcdir;; 1136*) 1137 case $ac_top_srcdir in 1138 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1141 esac;; 1142esac 1143 1144 cd $ac_dir 1145 # Check for guested configure; otherwise get Cygnus style configure. 1146 if test -f $ac_srcdir/configure.gnu; then 1147 echo 1148 $SHELL $ac_srcdir/configure.gnu --help=recursive 1149 elif test -f $ac_srcdir/configure; then 1150 echo 1151 $SHELL $ac_srcdir/configure --help=recursive 1152 elif test -f $ac_srcdir/configure.ac || 1153 test -f $ac_srcdir/configure.in; then 1154 echo 1155 $ac_configure --help 1156 else 1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1158 fi 1159 cd "$ac_popdir" 1160 done 1161fi 1162 1163test -n "$ac_init_help" && exit 0 1164if $ac_init_version; then 1165 cat <<\_ACEOF 1166jclassinfo configure 0.19.1 1167generated by GNU Autoconf 2.59 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 jclassinfo $as_me 0.19.1, 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 1510 1511 1512 1513 1514 1515 1516am__api_version="1.7" 1517ac_aux_dir= 1518for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1519 if test -f $ac_dir/install-sh; then 1520 ac_aux_dir=$ac_dir 1521 ac_install_sh="$ac_aux_dir/install-sh -c" 1522 break 1523 elif test -f $ac_dir/install.sh; then 1524 ac_aux_dir=$ac_dir 1525 ac_install_sh="$ac_aux_dir/install.sh -c" 1526 break 1527 elif test -f $ac_dir/shtool; then 1528 ac_aux_dir=$ac_dir 1529 ac_install_sh="$ac_aux_dir/shtool install -c" 1530 break 1531 fi 1532done 1533if test -z "$ac_aux_dir"; then 1534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1535echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1536 { (exit 1); exit 1; }; } 1537fi 1538ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1539ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1540ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1541 1542# Find a good install program. We prefer a C program (faster), 1543# so one script is as good as another. But avoid the broken or 1544# incompatible versions: 1545# SysV /etc/install, /usr/sbin/install 1546# SunOS /usr/etc/install 1547# IRIX /sbin/install 1548# AIX /bin/install 1549# AmigaOS /C/install, which installs bootblocks on floppy discs 1550# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1551# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1552# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1553# OS/2's system install, which has a completely different semantic 1554# ./install, which can be erroneously created by make from ./install.sh. 1555echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1556echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1557if test -z "$INSTALL"; then 1558if test "${ac_cv_path_install+set}" = set; then 1559 echo $ECHO_N "(cached) $ECHO_C" >&6 1560else 1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1562for as_dir in $PATH 1563do 1564 IFS=$as_save_IFS 1565 test -z "$as_dir" && as_dir=. 1566 # Account for people who put trailing slashes in PATH elements. 1567case $as_dir/ in 1568 ./ | .// | /cC/* | \ 1569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1570 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1571 /usr/ucb/* ) ;; 1572 *) 1573 # OSF1 and SCO ODT 3.0 have their own names for install. 1574 # Don't use installbsd from OSF since it installs stuff as root 1575 # by default. 1576 for ac_prog in ginstall scoinst install; do 1577 for ac_exec_ext in '' $ac_executable_extensions; do 1578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1579 if test $ac_prog = install && 1580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1581 # AIX install. It has an incompatible calling convention. 1582 : 1583 elif test $ac_prog = install && 1584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1585 # program-specific install script used by HP pwplus--don't use. 1586 : 1587 else 1588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1589 break 3 1590 fi 1591 fi 1592 done 1593 done 1594 ;; 1595esac 1596done 1597 1598 1599fi 1600 if test "${ac_cv_path_install+set}" = set; then 1601 INSTALL=$ac_cv_path_install 1602 else 1603 # As a last resort, use the slow shell script. We don't cache a 1604 # path for INSTALL within a source directory, because that will 1605 # break other packages using the cache if that directory is 1606 # removed, or if the path is relative. 1607 INSTALL=$ac_install_sh 1608 fi 1609fi 1610echo "$as_me:$LINENO: result: $INSTALL" >&5 1611echo "${ECHO_T}$INSTALL" >&6 1612 1613# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1614# It thinks the first close brace ends the variable substitution. 1615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1616 1617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1618 1619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1620 1621echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1622echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1623# Just in case 1624sleep 1 1625echo timestamp > conftest.file 1626# Do `set' in a subshell so we don't clobber the current shell's 1627# arguments. Must try -L first in case configure is actually a 1628# symlink; some systems play weird games with the mod time of symlinks 1629# (eg FreeBSD returns the mod time of the symlink's containing 1630# directory). 1631if ( 1632 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1633 if test "$*" = "X"; then 1634 # -L didn't work. 1635 set X `ls -t $srcdir/configure conftest.file` 1636 fi 1637 rm -f conftest.file 1638 if test "$*" != "X $srcdir/configure conftest.file" \ 1639 && test "$*" != "X conftest.file $srcdir/configure"; then 1640 1641 # If neither matched, then we have a broken ls. This can happen 1642 # if, for instance, CONFIG_SHELL is bash and it inherits a 1643 # broken ls alias from the environment. This has actually 1644 # happened. Such a system could not be considered "sane". 1645 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1646alias in your environment" >&5 1647echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1648alias in your environment" >&2;} 1649 { (exit 1); exit 1; }; } 1650 fi 1651 1652 test "$2" = conftest.file 1653 ) 1654then 1655 # Ok. 1656 : 1657else 1658 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1659Check your system clock" >&5 1660echo "$as_me: error: newly created file is older than distributed files! 1661Check your system clock" >&2;} 1662 { (exit 1); exit 1; }; } 1663fi 1664echo "$as_me:$LINENO: result: yes" >&5 1665echo "${ECHO_T}yes" >&6 1666test "$program_prefix" != NONE && 1667 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1668# Use a double $ so make ignores it. 1669test "$program_suffix" != NONE && 1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1671# Double any \ or $. echo might interpret backslashes. 1672# By default was `s,x,x', remove it if useless. 1673cat <<\_ACEOF >conftest.sed 1674s/[\\$]/&&/g;s/;s,x,x,$// 1675_ACEOF 1676program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1677rm conftest.sed 1678 1679 1680# expand $ac_aux_dir to an absolute path 1681am_aux_dir=`cd $ac_aux_dir && pwd` 1682 1683test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1684# Use eval to expand $SHELL 1685if eval "$MISSING --run true"; then 1686 am_missing_run="$MISSING --run " 1687else 1688 am_missing_run= 1689 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1690echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1691fi 1692 1693for ac_prog in gawk mawk nawk awk 1694do 1695 # Extract the first word of "$ac_prog", so it can be a program name with args. 1696set dummy $ac_prog; ac_word=$2 1697echo "$as_me:$LINENO: checking for $ac_word" >&5 1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1699if test "${ac_cv_prog_AWK+set}" = set; then 1700 echo $ECHO_N "(cached) $ECHO_C" >&6 1701else 1702 if test -n "$AWK"; then 1703 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1704else 1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1706for as_dir in $PATH 1707do 1708 IFS=$as_save_IFS 1709 test -z "$as_dir" && as_dir=. 1710 for ac_exec_ext in '' $ac_executable_extensions; do 1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1712 ac_cv_prog_AWK="$ac_prog" 1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1714 break 2 1715 fi 1716done 1717done 1718 1719fi 1720fi 1721AWK=$ac_cv_prog_AWK 1722if test -n "$AWK"; then 1723 echo "$as_me:$LINENO: result: $AWK" >&5 1724echo "${ECHO_T}$AWK" >&6 1725else 1726 echo "$as_me:$LINENO: result: no" >&5 1727echo "${ECHO_T}no" >&6 1728fi 1729 1730 test -n "$AWK" && break 1731done 1732 1733echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1734echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1735set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1736if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1737 echo $ECHO_N "(cached) $ECHO_C" >&6 1738else 1739 cat >conftest.make <<\_ACEOF 1740all: 1741 @echo 'ac_maketemp="$(MAKE)"' 1742_ACEOF 1743# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1744eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1745if test -n "$ac_maketemp"; then 1746 eval ac_cv_prog_make_${ac_make}_set=yes 1747else 1748 eval ac_cv_prog_make_${ac_make}_set=no 1749fi 1750rm -f conftest.make 1751fi 1752if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1753 echo "$as_me:$LINENO: result: yes" >&5 1754echo "${ECHO_T}yes" >&6 1755 SET_MAKE= 1756else 1757 echo "$as_me:$LINENO: result: no" >&5 1758echo "${ECHO_T}no" >&6 1759 SET_MAKE="MAKE=${MAKE-make}" 1760fi 1761 1762rm -rf .tst 2>/dev/null 1763mkdir .tst 2>/dev/null 1764if test -d .tst; then 1765 am__leading_dot=. 1766else 1767 am__leading_dot=_ 1768fi 1769rmdir .tst 2>/dev/null 1770 1771 # test to see if srcdir already configured 1772if test "`cd $srcdir && pwd`" != "`pwd`" && 1773 test -f $srcdir/config.status; then 1774 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1775echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1776 { (exit 1); exit 1; }; } 1777fi 1778 1779# test whether we have cygpath 1780if test -z "$CYGPATH_W"; then 1781 if (cygpath --version) >/dev/null 2>/dev/null; then 1782 CYGPATH_W='cygpath -w' 1783 else 1784 CYGPATH_W=echo 1785 fi 1786fi 1787 1788 1789# Define the identity of the package. 1790 PACKAGE='jclassinfo' 1791 VERSION='0.19.1' 1792 1793 1794# Some tools Automake needs. 1795 1796ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1797 1798 1799AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1800 1801 1802AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1803 1804 1805AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1806 1807 1808MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1809 1810 1811AMTAR=${AMTAR-"${am_missing_run}tar"} 1812 1813install_sh=${install_sh-"$am_aux_dir/install-sh"} 1814 1815# Installed binaries are usually stripped using `strip' when the user 1816# run `make install-strip'. However `strip' might not be the right 1817# tool to use in cross-compilation environments, therefore Automake 1818# will honor the `STRIP' environment variable to overrule this program. 1819if test "$cross_compiling" != no; then 1820 if test -n "$ac_tool_prefix"; then 1821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1822set dummy ${ac_tool_prefix}strip; ac_word=$2 1823echo "$as_me:$LINENO: checking for $ac_word" >&5 1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1825if test "${ac_cv_prog_STRIP+set}" = set; then 1826 echo $ECHO_N "(cached) $ECHO_C" >&6 1827else 1828 if test -n "$STRIP"; then 1829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1830else 1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1832for as_dir in $PATH 1833do 1834 IFS=$as_save_IFS 1835 test -z "$as_dir" && as_dir=. 1836 for ac_exec_ext in '' $ac_executable_extensions; do 1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1838 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1840 break 2 1841 fi 1842done 1843done 1844 1845fi 1846fi 1847STRIP=$ac_cv_prog_STRIP 1848if test -n "$STRIP"; then 1849 echo "$as_me:$LINENO: result: $STRIP" >&5 1850echo "${ECHO_T}$STRIP" >&6 1851else 1852 echo "$as_me:$LINENO: result: no" >&5 1853echo "${ECHO_T}no" >&6 1854fi 1855 1856fi 1857if test -z "$ac_cv_prog_STRIP"; then 1858 ac_ct_STRIP=$STRIP 1859 # Extract the first word of "strip", so it can be a program name with args. 1860set dummy strip; ac_word=$2 1861echo "$as_me:$LINENO: checking for $ac_word" >&5 1862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1863if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1864 echo $ECHO_N "(cached) $ECHO_C" >&6 1865else 1866 if test -n "$ac_ct_STRIP"; then 1867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1868else 1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1870for as_dir in $PATH 1871do 1872 IFS=$as_save_IFS 1873 test -z "$as_dir" && as_dir=. 1874 for ac_exec_ext in '' $ac_executable_extensions; do 1875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1876 ac_cv_prog_ac_ct_STRIP="strip" 1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1878 break 2 1879 fi 1880done 1881done 1882 1883 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1884fi 1885fi 1886ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1887if test -n "$ac_ct_STRIP"; then 1888 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1889echo "${ECHO_T}$ac_ct_STRIP" >&6 1890else 1891 echo "$as_me:$LINENO: result: no" >&5 1892echo "${ECHO_T}no" >&6 1893fi 1894 1895 STRIP=$ac_ct_STRIP 1896else 1897 STRIP="$ac_cv_prog_STRIP" 1898fi 1899 1900fi 1901INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1902 1903# We need awk for the "check" target. The system "awk" is bad on 1904# some platforms. 1905 1906 1907 1908 ac_config_headers="$ac_config_headers config.h jclassconfig.h" 1909 1910echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1911echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1912 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1913if test "${enable_maintainer_mode+set}" = set; then 1914 enableval="$enable_maintainer_mode" 1915 USE_MAINTAINER_MODE=$enableval 1916else 1917 USE_MAINTAINER_MODE=no 1918fi; 1919 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1920echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1921 1922 1923if test $USE_MAINTAINER_MODE = yes; then 1924 MAINTAINER_MODE_TRUE= 1925 MAINTAINER_MODE_FALSE='#' 1926else 1927 MAINTAINER_MODE_TRUE='#' 1928 MAINTAINER_MODE_FALSE= 1929fi 1930 1931 MAINT=$MAINTAINER_MODE_TRUE 1932 1933 1934 1935JCLASS_CURRENT="3" 1936JCLASS_RELEASE="1" 1937JCLASS_AGE="0" 1938JCLASS_VERSION="0.5" 1939 1940 1941 1942 1943 1944 1945cat >>confdefs.h <<_ACEOF 1946#define JCLASS_CURRENT ${JCLASS_CURRENT} 1947_ACEOF 1948 1949 1950cat >>confdefs.h <<_ACEOF 1951#define JCLASS_RELEASE ${JCLASS_RELEASE} 1952_ACEOF 1953 1954 1955cat >>confdefs.h <<_ACEOF 1956#define JCLASS_AGE ${JCLASS_AGE} 1957_ACEOF 1958 1959 1960cat >>confdefs.h <<_ACEOF 1961#define JCLASS_VERSION ${JCLASS_VERSION} 1962_ACEOF 1963 1964 1965ac_ext=c 1966ac_cpp='$CPP $CPPFLAGS' 1967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1969ac_compiler_gnu=$ac_cv_c_compiler_gnu 1970 1971 1972 1973# Check whether --enable-shared or --disable-shared was given. 1974if test "${enable_shared+set}" = set; then 1975 enableval="$enable_shared" 1976 p=${PACKAGE-default} 1977 case $enableval in 1978 yes) enable_shared=yes ;; 1979 no) enable_shared=no ;; 1980 *) 1981 enable_shared=no 1982 # Look at the argument we got. We use all the common list separators. 1983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1984 for pkg in $enableval; do 1985 IFS="$lt_save_ifs" 1986 if test "X$pkg" = "X$p"; then 1987 enable_shared=yes 1988 fi 1989 done 1990 IFS="$lt_save_ifs" 1991 ;; 1992 esac 1993else 1994 enable_shared=yes 1995fi; 1996 1997# Check whether --enable-static or --disable-static was given. 1998if test "${enable_static+set}" = set; then 1999 enableval="$enable_static" 2000 p=${PACKAGE-default} 2001 case $enableval in 2002 yes) enable_static=yes ;; 2003 no) enable_static=no ;; 2004 *) 2005 enable_static=no 2006 # Look at the argument we got. We use all the common list separators. 2007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2008 for pkg in $enableval; do 2009 IFS="$lt_save_ifs" 2010 if test "X$pkg" = "X$p"; then 2011 enable_static=yes 2012 fi 2013 done 2014 IFS="$lt_save_ifs" 2015 ;; 2016 esac 2017else 2018 enable_static=yes 2019fi; 2020 2021# Check whether --enable-fast-install or --disable-fast-install was given. 2022if test "${enable_fast_install+set}" = set; then 2023 enableval="$enable_fast_install" 2024 p=${PACKAGE-default} 2025 case $enableval in 2026 yes) enable_fast_install=yes ;; 2027 no) enable_fast_install=no ;; 2028 *) 2029 enable_fast_install=no 2030 # Look at the argument we got. We use all the common list separators. 2031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2032 for pkg in $enableval; do 2033 IFS="$lt_save_ifs" 2034 if test "X$pkg" = "X$p"; then 2035 enable_fast_install=yes 2036 fi 2037 done 2038 IFS="$lt_save_ifs" 2039 ;; 2040 esac 2041else 2042 enable_fast_install=yes 2043fi; 2044 2045# Make sure we can run config.sub. 2046$ac_config_sub sun4 >/dev/null 2>&1 || 2047 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2048echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2049 { (exit 1); exit 1; }; } 2050 2051echo "$as_me:$LINENO: checking build system type" >&5 2052echo $ECHO_N "checking build system type... $ECHO_C" >&6 2053if test "${ac_cv_build+set}" = set; then 2054 echo $ECHO_N "(cached) $ECHO_C" >&6 2055else 2056 ac_cv_build_alias=$build_alias 2057test -z "$ac_cv_build_alias" && 2058 ac_cv_build_alias=`$ac_config_guess` 2059test -z "$ac_cv_build_alias" && 2060 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2061echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2062 { (exit 1); exit 1; }; } 2063ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2064 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2065echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2066 { (exit 1); exit 1; }; } 2067 2068fi 2069echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2070echo "${ECHO_T}$ac_cv_build" >&6 2071build=$ac_cv_build 2072build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2073build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2074build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2075 2076 2077echo "$as_me:$LINENO: checking host system type" >&5 2078echo $ECHO_N "checking host system type... $ECHO_C" >&6 2079if test "${ac_cv_host+set}" = set; then 2080 echo $ECHO_N "(cached) $ECHO_C" >&6 2081else 2082 ac_cv_host_alias=$host_alias 2083test -z "$ac_cv_host_alias" && 2084 ac_cv_host_alias=$ac_cv_build_alias 2085ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2086 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2087echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2088 { (exit 1); exit 1; }; } 2089 2090fi 2091echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2092echo "${ECHO_T}$ac_cv_host" >&6 2093host=$ac_cv_host 2094host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2095host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2096host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2097 2098 2099DEPDIR="${am__leading_dot}deps" 2100 2101 ac_config_commands="$ac_config_commands depfiles" 2102 2103 2104am_make=${MAKE-make} 2105cat > confinc << 'END' 2106am__doit: 2107 @echo done 2108.PHONY: am__doit 2109END 2110# If we don't find an include directive, just comment out the code. 2111echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2112echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2113am__include="#" 2114am__quote= 2115_am_result=none 2116# First try GNU make style include. 2117echo "include confinc" > confmf 2118# We grep out `Entering directory' and `Leaving directory' 2119# messages which can occur if `w' ends up in MAKEFLAGS. 2120# In particular we don't look at `^make:' because GNU make might 2121# be invoked under some other name (usually "gmake"), in which 2122# case it prints its new name instead of `make'. 2123if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2124 am__include=include 2125 am__quote= 2126 _am_result=GNU 2127fi 2128# Now try BSD make style include. 2129if test "$am__include" = "#"; then 2130 echo '.include "confinc"' > confmf 2131 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2132 am__include=.include 2133 am__quote="\"" 2134 _am_result=BSD 2135 fi 2136fi 2137 2138 2139echo "$as_me:$LINENO: result: $_am_result" >&5 2140echo "${ECHO_T}$_am_result" >&6 2141rm -f confinc confmf 2142 2143# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2144if test "${enable_dependency_tracking+set}" = set; then 2145 enableval="$enable_dependency_tracking" 2146 2147fi; 2148if test "x$enable_dependency_tracking" != xno; then 2149 am_depcomp="$ac_aux_dir/depcomp" 2150 AMDEPBACKSLASH='\' 2151fi 2152 2153 2154if test "x$enable_dependency_tracking" != xno; then 2155 AMDEP_TRUE= 2156 AMDEP_FALSE='#' 2157else 2158 AMDEP_TRUE='#' 2159 AMDEP_FALSE= 2160fi 2161 2162 2163 2164ac_ext=c 2165ac_cpp='$CPP $CPPFLAGS' 2166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2168ac_compiler_gnu=$ac_cv_c_compiler_gnu 2169if test -n "$ac_tool_prefix"; then 2170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2171set dummy ${ac_tool_prefix}gcc; ac_word=$2 2172echo "$as_me:$LINENO: checking for $ac_word" >&5 2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2174if test "${ac_cv_prog_CC+set}" = set; then 2175 echo $ECHO_N "(cached) $ECHO_C" >&6 2176else 2177 if test -n "$CC"; then 2178 ac_cv_prog_CC="$CC" # Let the user override the test. 2179else 2180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2181for as_dir in $PATH 2182do 2183 IFS=$as_save_IFS 2184 test -z "$as_dir" && as_dir=. 2185 for ac_exec_ext in '' $ac_executable_extensions; do 2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2187 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2189 break 2 2190 fi 2191done 2192done 2193 2194fi 2195fi 2196CC=$ac_cv_prog_CC 2197if test -n "$CC"; then 2198 echo "$as_me:$LINENO: result: $CC" >&5 2199echo "${ECHO_T}$CC" >&6 2200else 2201 echo "$as_me:$LINENO: result: no" >&5 2202echo "${ECHO_T}no" >&6 2203fi 2204 2205fi 2206if test -z "$ac_cv_prog_CC"; then 2207 ac_ct_CC=$CC 2208 # Extract the first word of "gcc", so it can be a program name with args. 2209set dummy gcc; ac_word=$2 2210echo "$as_me:$LINENO: checking for $ac_word" >&5 2211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2212if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2213 echo $ECHO_N "(cached) $ECHO_C" >&6 2214else 2215 if test -n "$ac_ct_CC"; then 2216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2217else 2218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2219for as_dir in $PATH 2220do 2221 IFS=$as_save_IFS 2222 test -z "$as_dir" && as_dir=. 2223 for ac_exec_ext in '' $ac_executable_extensions; do 2224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2225 ac_cv_prog_ac_ct_CC="gcc" 2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2227 break 2 2228 fi 2229done 2230done 2231 2232fi 2233fi 2234ac_ct_CC=$ac_cv_prog_ac_ct_CC 2235if test -n "$ac_ct_CC"; then 2236 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2237echo "${ECHO_T}$ac_ct_CC" >&6 2238else 2239 echo "$as_me:$LINENO: result: no" >&5 2240echo "${ECHO_T}no" >&6 2241fi 2242 2243 CC=$ac_ct_CC 2244else 2245 CC="$ac_cv_prog_CC" 2246fi 2247 2248if test -z "$CC"; then 2249 if test -n "$ac_tool_prefix"; then 2250 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2251set dummy ${ac_tool_prefix}cc; ac_word=$2 2252echo "$as_me:$LINENO: checking for $ac_word" >&5 2253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2254if test "${ac_cv_prog_CC+set}" = set; then 2255 echo $ECHO_N "(cached) $ECHO_C" >&6 2256else 2257 if test -n "$CC"; then 2258 ac_cv_prog_CC="$CC" # Let the user override the test. 2259else 2260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2261for as_dir in $PATH 2262do 2263 IFS=$as_save_IFS 2264 test -z "$as_dir" && as_dir=. 2265 for ac_exec_ext in '' $ac_executable_extensions; do 2266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2267 ac_cv_prog_CC="${ac_tool_prefix}cc" 2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2269 break 2 2270 fi 2271done 2272done 2273 2274fi 2275fi 2276CC=$ac_cv_prog_CC 2277if test -n "$CC"; then 2278 echo "$as_me:$LINENO: result: $CC" >&5 2279echo "${ECHO_T}$CC" >&6 2280else 2281 echo "$as_me:$LINENO: result: no" >&5 2282echo "${ECHO_T}no" >&6 2283fi 2284 2285fi 2286if test -z "$ac_cv_prog_CC"; then 2287 ac_ct_CC=$CC 2288 # Extract the first word of "cc", so it can be a program name with args. 2289set dummy cc; ac_word=$2 2290echo "$as_me:$LINENO: checking for $ac_word" >&5 2291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2292if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2293 echo $ECHO_N "(cached) $ECHO_C" >&6 2294else 2295 if test -n "$ac_ct_CC"; then 2296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2297else 2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2299for as_dir in $PATH 2300do 2301 IFS=$as_save_IFS 2302 test -z "$as_dir" && as_dir=. 2303 for ac_exec_ext in '' $ac_executable_extensions; do 2304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2305 ac_cv_prog_ac_ct_CC="cc" 2306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2307 break 2 2308 fi 2309done 2310done 2311 2312fi 2313fi 2314ac_ct_CC=$ac_cv_prog_ac_ct_CC 2315if test -n "$ac_ct_CC"; then 2316 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2317echo "${ECHO_T}$ac_ct_CC" >&6 2318else 2319 echo "$as_me:$LINENO: result: no" >&5 2320echo "${ECHO_T}no" >&6 2321fi 2322 2323 CC=$ac_ct_CC 2324else 2325 CC="$ac_cv_prog_CC" 2326fi 2327 2328fi 2329if test -z "$CC"; then 2330 # Extract the first word of "cc", so it can be a program name with args. 2331set dummy cc; ac_word=$2 2332echo "$as_me:$LINENO: checking for $ac_word" >&5 2333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2334if test "${ac_cv_prog_CC+set}" = set; then 2335 echo $ECHO_N "(cached) $ECHO_C" >&6 2336else 2337 if test -n "$CC"; then 2338 ac_cv_prog_CC="$CC" # Let the user override the test. 2339else 2340 ac_prog_rejected=no 2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342for as_dir in $PATH 2343do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2348 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2349 ac_prog_rejected=yes 2350 continue 2351 fi 2352 ac_cv_prog_CC="cc" 2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2354 break 2 2355 fi 2356done 2357done 2358 2359if test $ac_prog_rejected = yes; then 2360 # We found a bogon in the path, so make sure we never use it. 2361 set dummy $ac_cv_prog_CC 2362 shift 2363 if test $# != 0; then 2364 # We chose a different compiler from the bogus one. 2365 # However, it has the same basename, so the bogon will be chosen 2366 # first if we set CC to just the basename; use the full file name. 2367 shift 2368 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2369 fi 2370fi 2371fi 2372fi 2373CC=$ac_cv_prog_CC 2374if test -n "$CC"; then 2375 echo "$as_me:$LINENO: result: $CC" >&5 2376echo "${ECHO_T}$CC" >&6 2377else 2378 echo "$as_me:$LINENO: result: no" >&5 2379echo "${ECHO_T}no" >&6 2380fi 2381 2382fi 2383if test -z "$CC"; then 2384 if test -n "$ac_tool_prefix"; then 2385 for ac_prog in cl 2386 do 2387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2388set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2389echo "$as_me:$LINENO: checking for $ac_word" >&5 2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2391if test "${ac_cv_prog_CC+set}" = set; then 2392 echo $ECHO_N "(cached) $ECHO_C" >&6 2393else 2394 if test -n "$CC"; then 2395 ac_cv_prog_CC="$CC" # Let the user override the test. 2396else 2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2398for as_dir in $PATH 2399do 2400 IFS=$as_save_IFS 2401 test -z "$as_dir" && as_dir=. 2402 for ac_exec_ext in '' $ac_executable_extensions; do 2403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2406 break 2 2407 fi 2408done 2409done 2410 2411fi 2412fi 2413CC=$ac_cv_prog_CC 2414if test -n "$CC"; then 2415 echo "$as_me:$LINENO: result: $CC" >&5 2416echo "${ECHO_T}$CC" >&6 2417else 2418 echo "$as_me:$LINENO: result: no" >&5 2419echo "${ECHO_T}no" >&6 2420fi 2421 2422 test -n "$CC" && break 2423 done 2424fi 2425if test -z "$CC"; then 2426 ac_ct_CC=$CC 2427 for ac_prog in cl 2428do 2429 # Extract the first word of "$ac_prog", so it can be a program name with args. 2430set dummy $ac_prog; ac_word=$2 2431echo "$as_me:$LINENO: checking for $ac_word" >&5 2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2433if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2434 echo $ECHO_N "(cached) $ECHO_C" >&6 2435else 2436 if test -n "$ac_ct_CC"; then 2437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2438else 2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440for as_dir in $PATH 2441do 2442 IFS=$as_save_IFS 2443 test -z "$as_dir" && as_dir=. 2444 for ac_exec_ext in '' $ac_executable_extensions; do 2445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2446 ac_cv_prog_ac_ct_CC="$ac_prog" 2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2448 break 2 2449 fi 2450done 2451done 2452 2453fi 2454fi 2455ac_ct_CC=$ac_cv_prog_ac_ct_CC 2456if test -n "$ac_ct_CC"; then 2457 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2458echo "${ECHO_T}$ac_ct_CC" >&6 2459else 2460 echo "$as_me:$LINENO: result: no" >&5 2461echo "${ECHO_T}no" >&6 2462fi 2463 2464 test -n "$ac_ct_CC" && break 2465done 2466 2467 CC=$ac_ct_CC 2468fi 2469 2470fi 2471 2472 2473test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2474See \`config.log' for more details." >&5 2475echo "$as_me: error: no acceptable C compiler found in \$PATH 2476See \`config.log' for more details." >&2;} 2477 { (exit 1); exit 1; }; } 2478 2479# Provide some information about the compiler. 2480echo "$as_me:$LINENO:" \ 2481 "checking for C compiler version" >&5 2482ac_compiler=`set X $ac_compile; echo $2` 2483{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2484 (eval $ac_compiler --version </dev/null >&5) 2>&5 2485 ac_status=$? 2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2487 (exit $ac_status); } 2488{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2489 (eval $ac_compiler -v </dev/null >&5) 2>&5 2490 ac_status=$? 2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2492 (exit $ac_status); } 2493{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2494 (eval $ac_compiler -V </dev/null >&5) 2>&5 2495 ac_status=$? 2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2497 (exit $ac_status); } 2498 2499cat >conftest.$ac_ext <<_ACEOF 2500/* confdefs.h. */ 2501_ACEOF 2502cat confdefs.h >>conftest.$ac_ext 2503cat >>conftest.$ac_ext <<_ACEOF 2504/* end confdefs.h. */ 2505 2506int 2507main () 2508{ 2509 2510 ; 2511 return 0; 2512} 2513_ACEOF 2514ac_clean_files_save=$ac_clean_files 2515ac_clean_files="$ac_clean_files a.out a.exe b.out" 2516# Try to create an executable without -o first, disregard a.out. 2517# It will help us diagnose broken compilers, and finding out an intuition 2518# of exeext. 2519echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2520echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2521ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2522if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2523 (eval $ac_link_default) 2>&5 2524 ac_status=$? 2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2526 (exit $ac_status); }; then 2527 # Find the output, starting from the most likely. This scheme is 2528# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2529# resort. 2530 2531# Be careful to initialize this variable, since it used to be cached. 2532# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2533ac_cv_exeext= 2534# b.out is created by i960 compilers. 2535for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2536do 2537 test -f "$ac_file" || continue 2538 case $ac_file in 2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2540 ;; 2541 conftest.$ac_ext ) 2542 # This is the source file. 2543 ;; 2544 [ab].out ) 2545 # We found the default executable, but exeext='' is most 2546 # certainly right. 2547 break;; 2548 *.* ) 2549 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2550 # FIXME: I believe we export ac_cv_exeext for Libtool, 2551 # but it would be cool to find out if it's true. Does anybody 2552 # maintain Libtool? --akim. 2553 export ac_cv_exeext 2554 break;; 2555 * ) 2556 break;; 2557 esac 2558done 2559else 2560 echo "$as_me: failed program was:" >&5 2561sed 's/^/| /' conftest.$ac_ext >&5 2562 2563{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2564See \`config.log' for more details." >&5 2565echo "$as_me: error: C compiler cannot create executables 2566See \`config.log' for more details." >&2;} 2567 { (exit 77); exit 77; }; } 2568fi 2569 2570ac_exeext=$ac_cv_exeext 2571echo "$as_me:$LINENO: result: $ac_file" >&5 2572echo "${ECHO_T}$ac_file" >&6 2573 2574# Check the compiler produces executables we can run. If not, either 2575# the compiler is broken, or we cross compile. 2576echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2577echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2578# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2579# If not cross compiling, check that we can run a simple program. 2580if test "$cross_compiling" != yes; then 2581 if { ac_try='./$ac_file' 2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2583 (eval $ac_try) 2>&5 2584 ac_status=$? 2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2586 (exit $ac_status); }; }; then 2587 cross_compiling=no 2588 else 2589 if test "$cross_compiling" = maybe; then 2590 cross_compiling=yes 2591 else 2592 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2593If you meant to cross compile, use \`--host'. 2594See \`config.log' for more details." >&5 2595echo "$as_me: error: cannot run C compiled programs. 2596If you meant to cross compile, use \`--host'. 2597See \`config.log' for more details." >&2;} 2598 { (exit 1); exit 1; }; } 2599 fi 2600 fi 2601fi 2602echo "$as_me:$LINENO: result: yes" >&5 2603echo "${ECHO_T}yes" >&6 2604 2605rm -f a.out a.exe conftest$ac_cv_exeext b.out 2606ac_clean_files=$ac_clean_files_save 2607# Check the compiler produces executables we can run. If not, either 2608# the compiler is broken, or we cross compile. 2609echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2610echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2611echo "$as_me:$LINENO: result: $cross_compiling" >&5 2612echo "${ECHO_T}$cross_compiling" >&6 2613 2614echo "$as_me:$LINENO: checking for suffix of executables" >&5 2615echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2617 (eval $ac_link) 2>&5 2618 ac_status=$? 2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2620 (exit $ac_status); }; then 2621 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2622# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2623# work properly (i.e., refer to `conftest.exe'), while it won't with 2624# `rm'. 2625for ac_file in conftest.exe conftest conftest.*; do 2626 test -f "$ac_file" || continue 2627 case $ac_file in 2628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2629 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2630 export ac_cv_exeext 2631 break;; 2632 * ) break;; 2633 esac 2634done 2635else 2636 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2637See \`config.log' for more details." >&5 2638echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2639See \`config.log' for more details." >&2;} 2640 { (exit 1); exit 1; }; } 2641fi 2642 2643rm -f conftest$ac_cv_exeext 2644echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2645echo "${ECHO_T}$ac_cv_exeext" >&6 2646 2647rm -f conftest.$ac_ext 2648EXEEXT=$ac_cv_exeext 2649ac_exeext=$EXEEXT 2650echo "$as_me:$LINENO: checking for suffix of object files" >&5 2651echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2652if test "${ac_cv_objext+set}" = set; then 2653 echo $ECHO_N "(cached) $ECHO_C" >&6 2654else 2655 cat >conftest.$ac_ext <<_ACEOF 2656/* confdefs.h. */ 2657_ACEOF 2658cat confdefs.h >>conftest.$ac_ext 2659cat >>conftest.$ac_ext <<_ACEOF 2660/* end confdefs.h. */ 2661 2662int 2663main () 2664{ 2665 2666 ; 2667 return 0; 2668} 2669_ACEOF 2670rm -f conftest.o conftest.obj 2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2672 (eval $ac_compile) 2>&5 2673 ac_status=$? 2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2675 (exit $ac_status); }; then 2676 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2677 case $ac_file in 2678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2679 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2680 break;; 2681 esac 2682done 2683else 2684 echo "$as_me: failed program was:" >&5 2685sed 's/^/| /' conftest.$ac_ext >&5 2686 2687{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2688See \`config.log' for more details." >&5 2689echo "$as_me: error: cannot compute suffix of object files: cannot compile 2690See \`config.log' for more details." >&2;} 2691 { (exit 1); exit 1; }; } 2692fi 2693 2694rm -f conftest.$ac_cv_objext conftest.$ac_ext 2695fi 2696echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2697echo "${ECHO_T}$ac_cv_objext" >&6 2698OBJEXT=$ac_cv_objext 2699ac_objext=$OBJEXT 2700echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2701echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2702if test "${ac_cv_c_compiler_gnu+set}" = set; then 2703 echo $ECHO_N "(cached) $ECHO_C" >&6 2704else 2705 cat >conftest.$ac_ext <<_ACEOF 2706/* confdefs.h. */ 2707_ACEOF 2708cat confdefs.h >>conftest.$ac_ext 2709cat >>conftest.$ac_ext <<_ACEOF 2710/* end confdefs.h. */ 2711 2712int 2713main () 2714{ 2715#ifndef __GNUC__ 2716 choke me 2717#endif 2718 2719 ; 2720 return 0; 2721} 2722_ACEOF 2723rm -f conftest.$ac_objext 2724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2725 (eval $ac_compile) 2>conftest.er1 2726 ac_status=$? 2727 grep -v '^ *+' conftest.er1 >conftest.err 2728 rm -f conftest.er1 2729 cat conftest.err >&5 2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2731 (exit $ac_status); } && 2732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2734 (eval $ac_try) 2>&5 2735 ac_status=$? 2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2737 (exit $ac_status); }; } && 2738 { ac_try='test -s conftest.$ac_objext' 2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2740 (eval $ac_try) 2>&5 2741 ac_status=$? 2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2743 (exit $ac_status); }; }; then 2744 ac_compiler_gnu=yes 2745else 2746 echo "$as_me: failed program was:" >&5 2747sed 's/^/| /' conftest.$ac_ext >&5 2748 2749ac_compiler_gnu=no 2750fi 2751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2752ac_cv_c_compiler_gnu=$ac_compiler_gnu 2753 2754fi 2755echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2756echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2757GCC=`test $ac_compiler_gnu = yes && echo yes` 2758ac_test_CFLAGS=${CFLAGS+set} 2759ac_save_CFLAGS=$CFLAGS 2760CFLAGS="-g" 2761echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2762echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2763if test "${ac_cv_prog_cc_g+set}" = set; then 2764 echo $ECHO_N "(cached) $ECHO_C" >&6 2765else 2766 cat >conftest.$ac_ext <<_ACEOF 2767/* confdefs.h. */ 2768_ACEOF 2769cat confdefs.h >>conftest.$ac_ext 2770cat >>conftest.$ac_ext <<_ACEOF 2771/* end confdefs.h. */ 2772 2773int 2774main () 2775{ 2776 2777 ; 2778 return 0; 2779} 2780_ACEOF 2781rm -f conftest.$ac_objext 2782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2783 (eval $ac_compile) 2>conftest.er1 2784 ac_status=$? 2785 grep -v '^ *+' conftest.er1 >conftest.err 2786 rm -f conftest.er1 2787 cat conftest.err >&5 2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2789 (exit $ac_status); } && 2790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2792 (eval $ac_try) 2>&5 2793 ac_status=$? 2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2795 (exit $ac_status); }; } && 2796 { ac_try='test -s conftest.$ac_objext' 2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2798 (eval $ac_try) 2>&5 2799 ac_status=$? 2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2801 (exit $ac_status); }; }; then 2802 ac_cv_prog_cc_g=yes 2803else 2804 echo "$as_me: failed program was:" >&5 2805sed 's/^/| /' conftest.$ac_ext >&5 2806 2807ac_cv_prog_cc_g=no 2808fi 2809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2810fi 2811echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2812echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2813if test "$ac_test_CFLAGS" = set; then 2814 CFLAGS=$ac_save_CFLAGS 2815elif test $ac_cv_prog_cc_g = yes; then 2816 if test "$GCC" = yes; then 2817 CFLAGS="-g -O2" 2818 else 2819 CFLAGS="-g" 2820 fi 2821else 2822 if test "$GCC" = yes; then 2823 CFLAGS="-O2" 2824 else 2825 CFLAGS= 2826 fi 2827fi 2828echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2829echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2830if test "${ac_cv_prog_cc_stdc+set}" = set; then 2831 echo $ECHO_N "(cached) $ECHO_C" >&6 2832else 2833 ac_cv_prog_cc_stdc=no 2834ac_save_CC=$CC 2835cat >conftest.$ac_ext <<_ACEOF 2836/* confdefs.h. */ 2837_ACEOF 2838cat confdefs.h >>conftest.$ac_ext 2839cat >>conftest.$ac_ext <<_ACEOF 2840/* end confdefs.h. */ 2841#include <stdarg.h> 2842#include <stdio.h> 2843#include <sys/types.h> 2844#include <sys/stat.h> 2845/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2846struct buf { int x; }; 2847FILE * (*rcsopen) (struct buf *, struct stat *, int); 2848static char *e (p, i) 2849 char **p; 2850 int i; 2851{ 2852 return p[i]; 2853} 2854static char *f (char * (*g) (char **, int), char **p, ...) 2855{ 2856 char *s; 2857 va_list v; 2858 va_start (v,p); 2859 s = g (p, va_arg (v,int)); 2860 va_end (v); 2861 return s; 2862} 2863 2864/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2865 function prototypes and stuff, but not '\xHH' hex character constants. 2866 These don't provoke an error unfortunately, instead are silently treated 2867 as 'x'. The following induces an error, until -std1 is added to get 2868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2869 array size at least. It's necessary to write '\x00'==0 to get something 2870 that's true only with -std1. */ 2871int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2872 2873int test (int i, double x); 2874struct s1 {int (*f) (int a);}; 2875struct s2 {int (*f) (double a);}; 2876int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2877int argc; 2878char **argv; 2879int 2880main () 2881{ 2882return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2883 ; 2884 return 0; 2885} 2886_ACEOF 2887# Don't try gcc -ansi; that turns off useful extensions and 2888# breaks some systems' header files. 2889# AIX -qlanglvl=ansi 2890# Ultrix and OSF/1 -std1 2891# HP-UX 10.20 and later -Ae 2892# HP-UX older versions -Aa -D_HPUX_SOURCE 2893# SVR4 -Xc -D__EXTENSIONS__ 2894for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2895do 2896 CC="$ac_save_CC $ac_arg" 2897 rm -f conftest.$ac_objext 2898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2899 (eval $ac_compile) 2>conftest.er1 2900 ac_status=$? 2901 grep -v '^ *+' conftest.er1 >conftest.err 2902 rm -f conftest.er1 2903 cat conftest.err >&5 2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2905 (exit $ac_status); } && 2906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2908 (eval $ac_try) 2>&5 2909 ac_status=$? 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); }; } && 2912 { ac_try='test -s conftest.$ac_objext' 2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2914 (eval $ac_try) 2>&5 2915 ac_status=$? 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); }; }; then 2918 ac_cv_prog_cc_stdc=$ac_arg 2919break 2920else 2921 echo "$as_me: failed program was:" >&5 2922sed 's/^/| /' conftest.$ac_ext >&5 2923 2924fi 2925rm -f conftest.err conftest.$ac_objext 2926done 2927rm -f conftest.$ac_ext conftest.$ac_objext 2928CC=$ac_save_CC 2929 2930fi 2931 2932case "x$ac_cv_prog_cc_stdc" in 2933 x|xno) 2934 echo "$as_me:$LINENO: result: none needed" >&5 2935echo "${ECHO_T}none needed" >&6 ;; 2936 *) 2937 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2938echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2939 CC="$CC $ac_cv_prog_cc_stdc" ;; 2940esac 2941 2942# Some people use a C++ compiler to compile C. Since we use `exit', 2943# in C++ we need to declare it. In case someone uses the same compiler 2944# for both compiling C and C++ we need to have the C++ compiler decide 2945# the declaration of exit, since it's the most demanding environment. 2946cat >conftest.$ac_ext <<_ACEOF 2947#ifndef __cplusplus 2948 choke me 2949#endif 2950_ACEOF 2951rm -f conftest.$ac_objext 2952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2953 (eval $ac_compile) 2>conftest.er1 2954 ac_status=$? 2955 grep -v '^ *+' conftest.er1 >conftest.err 2956 rm -f conftest.er1 2957 cat conftest.err >&5 2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2959 (exit $ac_status); } && 2960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2962 (eval $ac_try) 2>&5 2963 ac_status=$? 2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2965 (exit $ac_status); }; } && 2966 { ac_try='test -s conftest.$ac_objext' 2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2968 (eval $ac_try) 2>&5 2969 ac_status=$? 2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2971 (exit $ac_status); }; }; then 2972 for ac_declaration in \ 2973 '' \ 2974 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2975 'extern "C" void std::exit (int); using std::exit;' \ 2976 'extern "C" void exit (int) throw ();' \ 2977 'extern "C" void exit (int);' \ 2978 'void exit (int);' 2979do 2980 cat >conftest.$ac_ext <<_ACEOF 2981/* confdefs.h. */ 2982_ACEOF 2983cat confdefs.h >>conftest.$ac_ext 2984cat >>conftest.$ac_ext <<_ACEOF 2985/* end confdefs.h. */ 2986$ac_declaration 2987#include <stdlib.h> 2988int 2989main () 2990{ 2991exit (42); 2992 ; 2993 return 0; 2994} 2995_ACEOF 2996rm -f conftest.$ac_objext 2997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2998 (eval $ac_compile) 2>conftest.er1 2999 ac_status=$? 3000 grep -v '^ *+' conftest.er1 >conftest.err 3001 rm -f conftest.er1 3002 cat conftest.err >&5 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); } && 3005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3007 (eval $ac_try) 2>&5 3008 ac_status=$? 3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3010 (exit $ac_status); }; } && 3011 { ac_try='test -s conftest.$ac_objext' 3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3013 (eval $ac_try) 2>&5 3014 ac_status=$? 3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3016 (exit $ac_status); }; }; then 3017 : 3018else 3019 echo "$as_me: failed program was:" >&5 3020sed 's/^/| /' conftest.$ac_ext >&5 3021 3022continue 3023fi 3024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3025 cat >conftest.$ac_ext <<_ACEOF 3026/* confdefs.h. */ 3027_ACEOF 3028cat confdefs.h >>conftest.$ac_ext 3029cat >>conftest.$ac_ext <<_ACEOF 3030/* end confdefs.h. */ 3031$ac_declaration 3032int 3033main () 3034{ 3035exit (42); 3036 ; 3037 return 0; 3038} 3039_ACEOF 3040rm -f conftest.$ac_objext 3041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3042 (eval $ac_compile) 2>conftest.er1 3043 ac_status=$? 3044 grep -v '^ *+' conftest.er1 >conftest.err 3045 rm -f conftest.er1 3046 cat conftest.err >&5 3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3048 (exit $ac_status); } && 3049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3051 (eval $ac_try) 2>&5 3052 ac_status=$? 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); }; } && 3055 { ac_try='test -s conftest.$ac_objext' 3056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3057 (eval $ac_try) 2>&5 3058 ac_status=$? 3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060 (exit $ac_status); }; }; then 3061 break 3062else 3063 echo "$as_me: failed program was:" >&5 3064sed 's/^/| /' conftest.$ac_ext >&5 3065 3066fi 3067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3068done 3069rm -f conftest* 3070if test -n "$ac_declaration"; then 3071 echo '#ifdef __cplusplus' >>confdefs.h 3072 echo $ac_declaration >>confdefs.h 3073 echo '#endif' >>confdefs.h 3074fi 3075 3076else 3077 echo "$as_me: failed program was:" >&5 3078sed 's/^/| /' conftest.$ac_ext >&5 3079 3080fi 3081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3082ac_ext=c 3083ac_cpp='$CPP $CPPFLAGS' 3084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3086ac_compiler_gnu=$ac_cv_c_compiler_gnu 3087 3088depcc="$CC" am_compiler_list= 3089 3090echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3091echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3092if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3093 echo $ECHO_N "(cached) $ECHO_C" >&6 3094else 3095 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3096 # We make a subdir and do the tests there. Otherwise we can end up 3097 # making bogus files that we don't know about and never remove. For 3098 # instance it was reported that on HP-UX the gcc test will end up 3099 # making a dummy file named `D' -- because `-MD' means `put the output 3100 # in D'. 3101 mkdir conftest.dir 3102 # Copy depcomp to subdir because otherwise we won't find it if we're 3103 # using a relative directory. 3104 cp "$am_depcomp" conftest.dir 3105 cd conftest.dir 3106 # We will build objects and dependencies in a subdirectory because 3107 # it helps to detect inapplicable dependency modes. For instance 3108 # both Tru64's cc and ICC support -MD to output dependencies as a 3109 # side effect of compilation, but ICC will put the dependencies in 3110 # the current directory while Tru64 will put them in the object 3111 # directory. 3112 mkdir sub 3113 3114 am_cv_CC_dependencies_compiler_type=none 3115 if test "$am_compiler_list" = ""; then 3116 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3117 fi 3118 for depmode in $am_compiler_list; do 3119 # Setup a source with many dependencies, because some compilers 3120 # like to wrap large dependency lists on column 80 (with \), and 3121 # we should not choose a depcomp mode which is confused by this. 3122 # 3123 # We need to recreate these files for each test, as the compiler may 3124 # overwrite some of them when testing with obscure command lines. 3125 # This happens at least with the AIX C compiler. 3126 : > sub/conftest.c 3127 for i in 1 2 3 4 5 6; do 3128 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3129 : > sub/conftst$i.h 3130 done 3131 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3132 3133 case $depmode in 3134 nosideeffect) 3135 # after this tag, mechanisms are not by side-effect, so they'll 3136 # only be used when explicitly requested 3137 if test "x$enable_dependency_tracking" = xyes; then 3138 continue 3139 else 3140 break 3141 fi 3142 ;; 3143 none) break ;; 3144 esac 3145 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3146 # mode. It turns out that the SunPro C++ compiler does not properly 3147 # handle `-M -o', and we need to detect this. 3148 if depmode=$depmode \ 3149 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3150 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3151 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3152 >/dev/null 2>conftest.err && 3153 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3154 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3155 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3156 # icc doesn't choke on unknown options, it will just issue warnings 3157 # (even with -Werror). So we grep stderr for any message 3158 # that says an option was ignored. 3159 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3160 am_cv_CC_dependencies_compiler_type=$depmode 3161 break 3162 fi 3163 fi 3164 done 3165 3166 cd .. 3167 rm -rf conftest.dir 3168else 3169 am_cv_CC_dependencies_compiler_type=none 3170fi 3171 3172fi 3173echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3174echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3175CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3176 3177 3178 3179if 3180 test "x$enable_dependency_tracking" != xno \ 3181 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3182 am__fastdepCC_TRUE= 3183 am__fastdepCC_FALSE='#' 3184else 3185 am__fastdepCC_TRUE='#' 3186 am__fastdepCC_FALSE= 3187fi 3188 3189 3190echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3191echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3192if test "${lt_cv_path_SED+set}" = set; then 3193 echo $ECHO_N "(cached) $ECHO_C" >&6 3194else 3195 # Loop through the user's path and test for sed and gsed. 3196# Then use that list of sed's as ones to test for truncation. 3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3198for as_dir in $PATH 3199do 3200 IFS=$as_save_IFS 3201 test -z "$as_dir" && as_dir=. 3202 for lt_ac_prog in sed gsed; do 3203 for ac_exec_ext in '' $ac_executable_extensions; do 3204 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3205 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3206 fi 3207 done 3208 done 3209done 3210lt_ac_max=0 3211lt_ac_count=0 3212# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3213# along with /bin/sed that truncates output. 3214for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3215 test ! -f $lt_ac_sed && break 3216 cat /dev/null > conftest.in 3217 lt_ac_count=0 3218 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3219 # Check for GNU sed and select it if it is found. 3220 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3221 lt_cv_path_SED=$lt_ac_sed 3222 break 3223 fi 3224 while true; do 3225 cat conftest.in conftest.in >conftest.tmp 3226 mv conftest.tmp conftest.in 3227 cp conftest.in conftest.nl 3228 echo >>conftest.nl 3229 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3230 cmp -s conftest.out conftest.nl || break 3231 # 10000 chars as input seems more than enough 3232 test $lt_ac_count -gt 10 && break 3233 lt_ac_count=`expr $lt_ac_count + 1` 3234 if test $lt_ac_count -gt $lt_ac_max; then 3235 lt_ac_max=$lt_ac_count 3236 lt_cv_path_SED=$lt_ac_sed 3237 fi 3238 done 3239done 3240SED=$lt_cv_path_SED 3241 3242fi 3243 3244echo "$as_me:$LINENO: result: $SED" >&5 3245echo "${ECHO_T}$SED" >&6 3246 3247echo "$as_me:$LINENO: checking for egrep" >&5 3248echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3249if test "${ac_cv_prog_egrep+set}" = set; then 3250 echo $ECHO_N "(cached) $ECHO_C" >&6 3251else 3252 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3253 then ac_cv_prog_egrep='grep -E' 3254 else ac_cv_prog_egrep='egrep' 3255 fi 3256fi 3257echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3258echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3259 EGREP=$ac_cv_prog_egrep 3260 3261 3262 3263# Check whether --with-gnu-ld or --without-gnu-ld was given. 3264if test "${with_gnu_ld+set}" = set; then 3265 withval="$with_gnu_ld" 3266 test "$withval" = no || with_gnu_ld=yes 3267else 3268 with_gnu_ld=no 3269fi; 3270ac_prog=ld 3271if test "$GCC" = yes; then 3272 # Check if gcc -print-prog-name=ld gives a path. 3273 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3274echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3275 case $host in 3276 *-*-mingw*) 3277 # gcc leaves a trailing carriage return which upsets mingw 3278 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3279 *) 3280 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3281 esac 3282 case $ac_prog in 3283 # Accept absolute paths. 3284 [\\/]* | ?:[\\/]*) 3285 re_direlt='/[^/][^/]*/\.\./' 3286 # Canonicalize the pathname of ld 3287 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3288 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3289 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3290 done 3291 test -z "$LD" && LD="$ac_prog" 3292 ;; 3293 "") 3294 # If it fails, then pretend we aren't using GCC. 3295 ac_prog=ld 3296 ;; 3297 *) 3298 # If it is relative, then search for the first ld in PATH. 3299 with_gnu_ld=unknown 3300 ;; 3301 esac 3302elif test "$with_gnu_ld" = yes; then 3303 echo "$as_me:$LINENO: checking for GNU ld" >&5 3304echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3305else 3306 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3307echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3308fi 3309if test "${lt_cv_path_LD+set}" = set; then 3310 echo $ECHO_N "(cached) $ECHO_C" >&6 3311else 3312 if test -z "$LD"; then 3313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3314 for ac_dir in $PATH; do 3315 IFS="$lt_save_ifs" 3316 test -z "$ac_dir" && ac_dir=. 3317 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3318 lt_cv_path_LD="$ac_dir/$ac_prog" 3319 # Check to see if the program is GNU ld. I'd rather use --version, 3320 # but apparently some GNU ld's only accept -v. 3321 # Break only if it was the GNU/non-GNU ld that we prefer. 3322 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3323 *GNU* | *'with BFD'*) 3324 test "$with_gnu_ld" != no && break 3325 ;; 3326 *) 3327 test "$with_gnu_ld" != yes && break 3328 ;; 3329 esac 3330 fi 3331 done 3332 IFS="$lt_save_ifs" 3333else 3334 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3335fi 3336fi 3337 3338LD="$lt_cv_path_LD" 3339if test -n "$LD"; then 3340 echo "$as_me:$LINENO: result: $LD" >&5 3341echo "${ECHO_T}$LD" >&6 3342else 3343 echo "$as_me:$LINENO: result: no" >&5 3344echo "${ECHO_T}no" >&6 3345fi 3346test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3347echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3348 { (exit 1); exit 1; }; } 3349echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3350echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3351if test "${lt_cv_prog_gnu_ld+set}" = set; then 3352 echo $ECHO_N "(cached) $ECHO_C" >&6 3353else 3354 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3355case `$LD -v 2>&1 </dev/null` in 3356*GNU* | *'with BFD'*) 3357 lt_cv_prog_gnu_ld=yes 3358 ;; 3359*) 3360 lt_cv_prog_gnu_ld=no 3361 ;; 3362esac 3363fi 3364echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3365echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3366with_gnu_ld=$lt_cv_prog_gnu_ld 3367 3368 3369echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3370echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3371if test "${lt_cv_ld_reload_flag+set}" = set; then 3372 echo $ECHO_N "(cached) $ECHO_C" >&6 3373else 3374 lt_cv_ld_reload_flag='-r' 3375fi 3376echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3377echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3378reload_flag=$lt_cv_ld_reload_flag 3379case $reload_flag in 3380"" | " "*) ;; 3381*) reload_flag=" $reload_flag" ;; 3382esac 3383reload_cmds='$LD$reload_flag -o $output$reload_objs' 3384 3385echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3386echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3387if test "${lt_cv_path_NM+set}" = set; then 3388 echo $ECHO_N "(cached) $ECHO_C" >&6 3389else 3390 if test -n "$NM"; then 3391 # Let the user override the test. 3392 lt_cv_path_NM="$NM" 3393else 3394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3395 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3396 IFS="$lt_save_ifs" 3397 test -z "$ac_dir" && ac_dir=. 3398 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3399 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3400 # Check to see if the nm accepts a BSD-compat flag. 3401 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3402 # nm: unknown option "B" ignored 3403 # Tru64's nm complains that /dev/null is an invalid object file 3404 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3405 */dev/null* | *'Invalid file or object type'*) 3406 lt_cv_path_NM="$tmp_nm -B" 3407 break 3408 ;; 3409 *) 3410 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3411 */dev/null*) 3412 lt_cv_path_NM="$tmp_nm -p" 3413 break 3414 ;; 3415 *) 3416 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3417 continue # so that we can try to find one that supports BSD flags 3418 ;; 3419 esac 3420 esac 3421 fi 3422 done 3423 IFS="$lt_save_ifs" 3424 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3425fi 3426fi 3427echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3428echo "${ECHO_T}$lt_cv_path_NM" >&6 3429NM="$lt_cv_path_NM" 3430 3431echo "$as_me:$LINENO: checking whether ln -s works" >&5 3432echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3433LN_S=$as_ln_s 3434if test "$LN_S" = "ln -s"; then 3435 echo "$as_me:$LINENO: result: yes" >&5 3436echo "${ECHO_T}yes" >&6 3437else 3438 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3439echo "${ECHO_T}no, using $LN_S" >&6 3440fi 3441 3442echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3443echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3444if test "${lt_cv_deplibs_check_method+set}" = set; then 3445 echo $ECHO_N "(cached) $ECHO_C" >&6 3446else 3447 lt_cv_file_magic_cmd='$MAGIC_CMD' 3448lt_cv_file_magic_test_file= 3449lt_cv_deplibs_check_method='unknown' 3450# Need to set the preceding variable on all platforms that support 3451# interlibrary dependencies. 3452# 'none' -- dependencies not supported. 3453# `unknown' -- same as none, but documents that we really don't know. 3454# 'pass_all' -- all dependencies passed with no checks. 3455# 'test_compile' -- check by making test program. 3456# 'file_magic [[regex]]' -- check by looking for files in library path 3457# which responds to the $file_magic_cmd with a given extended regex. 3458# If you have `file' or equivalent on your system and you're not sure 3459# whether `pass_all' will *always* work, you probably want this one. 3460 3461case $host_os in 3462aix4* | aix5*) 3463 lt_cv_deplibs_check_method=pass_all 3464 ;; 3465 3466beos*) 3467 lt_cv_deplibs_check_method=pass_all 3468 ;; 3469 3470bsdi4*) 3471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3472 lt_cv_file_magic_cmd='/usr/bin/file -L' 3473 lt_cv_file_magic_test_file=/shlib/libc.so 3474 ;; 3475 3476cygwin*) 3477 # func_win32_libid is a shell function defined in ltmain.sh 3478 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3479 lt_cv_file_magic_cmd='func_win32_libid' 3480 ;; 3481 3482mingw* | pw32*) 3483 # Base MSYS/MinGW do not provide the 'file' command needed by 3484 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3485 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3486 lt_cv_file_magic_cmd='$OBJDUMP -f' 3487 ;; 3488 3489darwin* | rhapsody*) 3490 lt_cv_deplibs_check_method=pass_all 3491 ;; 3492 3493freebsd* | kfreebsd*-gnu) 3494 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3495 case $host_cpu in 3496 i*86 ) 3497 # Not sure whether the presence of OpenBSD here was a mistake. 3498 # Let's accept both of them until this is cleared up. 3499 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3500 lt_cv_file_magic_cmd=/usr/bin/file 3501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3502 ;; 3503 esac 3504 else 3505 lt_cv_deplibs_check_method=pass_all 3506 fi 3507 ;; 3508 3509gnu*) 3510 lt_cv_deplibs_check_method=pass_all 3511 ;; 3512 3513hpux10.20* | hpux11*) 3514 lt_cv_file_magic_cmd=/usr/bin/file 3515 case "$host_cpu" in 3516 ia64*) 3517 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3518 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3519 ;; 3520 hppa*64*) 3521 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]' 3522 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3523 ;; 3524 *) 3525 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3526 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3527 ;; 3528 esac 3529 ;; 3530 3531irix5* | irix6* | nonstopux*) 3532 case $LD in 3533 *-32|*"-32 ") libmagic=32-bit;; 3534 *-n32|*"-n32 ") libmagic=N32;; 3535 *-64|*"-64 ") libmagic=64-bit;; 3536 *) libmagic=never-match;; 3537 esac 3538 lt_cv_deplibs_check_method=pass_all 3539 ;; 3540 3541# This must be Linux ELF. 3542linux*) 3543 lt_cv_deplibs_check_method=pass_all 3544 ;; 3545 3546netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 3547 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3549 else 3550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3551 fi 3552 ;; 3553 3554newos6*) 3555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3556 lt_cv_file_magic_cmd=/usr/bin/file 3557 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3558 ;; 3559 3560nto-qnx*) 3561 lt_cv_deplibs_check_method=unknown 3562 ;; 3563 3564openbsd*) 3565 lt_cv_file_magic_cmd=/usr/bin/file 3566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3569 else 3570 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3571 fi 3572 ;; 3573 3574osf3* | osf4* | osf5*) 3575 lt_cv_deplibs_check_method=pass_all 3576 ;; 3577 3578sco3.2v5*) 3579 lt_cv_deplibs_check_method=pass_all 3580 ;; 3581 3582solaris*) 3583 lt_cv_deplibs_check_method=pass_all 3584 ;; 3585 3586sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3587 case $host_vendor in 3588 motorola) 3589 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]' 3590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3591 ;; 3592 ncr) 3593 lt_cv_deplibs_check_method=pass_all 3594 ;; 3595 sequent) 3596 lt_cv_file_magic_cmd='/bin/file' 3597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3598 ;; 3599 sni) 3600 lt_cv_file_magic_cmd='/bin/file' 3601 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3602 lt_cv_file_magic_test_file=/lib/libc.so 3603 ;; 3604 siemens) 3605 lt_cv_deplibs_check_method=pass_all 3606 ;; 3607 esac 3608 ;; 3609 3610sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3611 lt_cv_deplibs_check_method=pass_all 3612 ;; 3613esac 3614 3615fi 3616echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3617echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3618file_magic_cmd=$lt_cv_file_magic_cmd 3619deplibs_check_method=$lt_cv_deplibs_check_method 3620test -z "$deplibs_check_method" && deplibs_check_method=unknown 3621 3622 3623 3624 3625# If no C compiler was specified, use CC. 3626LTCC=${LTCC-"$CC"} 3627 3628# Allow CC to be a program name with arguments. 3629compiler=$CC 3630 3631 3632# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3633if test "${enable_libtool_lock+set}" = set; then 3634 enableval="$enable_libtool_lock" 3635 3636fi; 3637test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3638 3639# Some flags need to be propagated to the compiler or linker for good 3640# libtool support. 3641case $host in 3642ia64-*-hpux*) 3643 # Find out which ABI we are using. 3644 echo 'int i;' > conftest.$ac_ext 3645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3646 (eval $ac_compile) 2>&5 3647 ac_status=$? 3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3649 (exit $ac_status); }; then 3650 case `/usr/bin/file conftest.$ac_objext` in 3651 *ELF-32*) 3652 HPUX_IA64_MODE="32" 3653 ;; 3654 *ELF-64*) 3655 HPUX_IA64_MODE="64" 3656 ;; 3657 esac 3658 fi 3659 rm -rf conftest* 3660 ;; 3661*-*-irix6*) 3662 # Find out which ABI we are using. 3663 echo '#line 3663 "configure"' > conftest.$ac_ext 3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3665 (eval $ac_compile) 2>&5 3666 ac_status=$? 3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3668 (exit $ac_status); }; then 3669 if test "$lt_cv_prog_gnu_ld" = yes; then 3670 case `/usr/bin/file conftest.$ac_objext` in 3671 *32-bit*) 3672 LD="${LD-ld} -melf32bsmip" 3673 ;; 3674 *N32*) 3675 LD="${LD-ld} -melf32bmipn32" 3676 ;; 3677 *64-bit*) 3678 LD="${LD-ld} -melf64bmip" 3679 ;; 3680 esac 3681 else 3682 case `/usr/bin/file conftest.$ac_objext` in 3683 *32-bit*) 3684 LD="${LD-ld} -32" 3685 ;; 3686 *N32*) 3687 LD="${LD-ld} -n32" 3688 ;; 3689 *64-bit*) 3690 LD="${LD-ld} -64" 3691 ;; 3692 esac 3693 fi 3694 fi 3695 rm -rf conftest* 3696 ;; 3697 3698x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3699 # Find out which ABI we are using. 3700 echo 'int i;' > conftest.$ac_ext 3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3702 (eval $ac_compile) 2>&5 3703 ac_status=$? 3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3705 (exit $ac_status); }; then 3706 case "`/usr/bin/file conftest.o`" in 3707 *32-bit*) 3708 case $host in 3709 x86_64-*linux*) 3710 LD="${LD-ld} -m elf_i386" 3711 ;; 3712 ppc64-*linux*|powerpc64-*linux*) 3713 LD="${LD-ld} -m elf32ppclinux" 3714 ;; 3715 s390x-*linux*) 3716 LD="${LD-ld} -m elf_s390" 3717 ;; 3718 sparc64-*linux*) 3719 LD="${LD-ld} -m elf32_sparc" 3720 ;; 3721 esac 3722 ;; 3723 *64-bit*) 3724 case $host in 3725 x86_64-*linux*) 3726 LD="${LD-ld} -m elf_x86_64" 3727 ;; 3728 ppc*-*linux*|powerpc*-*linux*) 3729 LD="${LD-ld} -m elf64ppc" 3730 ;; 3731 s390*-*linux*) 3732 LD="${LD-ld} -m elf64_s390" 3733 ;; 3734 sparc*-*linux*) 3735 LD="${LD-ld} -m elf64_sparc" 3736 ;; 3737 esac 3738 ;; 3739 esac 3740 fi 3741 rm -rf conftest* 3742 ;; 3743 3744*-*-sco3.2v5*) 3745 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3746 SAVE_CFLAGS="$CFLAGS" 3747 CFLAGS="$CFLAGS -belf" 3748 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3749echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3750if test "${lt_cv_cc_needs_belf+set}" = set; then 3751 echo $ECHO_N "(cached) $ECHO_C" >&6 3752else 3753 ac_ext=c 3754ac_cpp='$CPP $CPPFLAGS' 3755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3757ac_compiler_gnu=$ac_cv_c_compiler_gnu 3758 3759 cat >conftest.$ac_ext <<_ACEOF 3760/* confdefs.h. */ 3761_ACEOF 3762cat confdefs.h >>conftest.$ac_ext 3763cat >>conftest.$ac_ext <<_ACEOF 3764/* end confdefs.h. */ 3765 3766int 3767main () 3768{ 3769 3770 ; 3771 return 0; 3772} 3773_ACEOF 3774rm -f conftest.$ac_objext conftest$ac_exeext 3775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3776 (eval $ac_link) 2>conftest.er1 3777 ac_status=$? 3778 grep -v '^ *+' conftest.er1 >conftest.err 3779 rm -f conftest.er1 3780 cat conftest.err >&5 3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3782 (exit $ac_status); } && 3783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3785 (eval $ac_try) 2>&5 3786 ac_status=$? 3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3788 (exit $ac_status); }; } && 3789 { ac_try='test -s conftest$ac_exeext' 3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3791 (eval $ac_try) 2>&5 3792 ac_status=$? 3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3794 (exit $ac_status); }; }; then 3795 lt_cv_cc_needs_belf=yes 3796else 3797 echo "$as_me: failed program was:" >&5 3798sed 's/^/| /' conftest.$ac_ext >&5 3799 3800lt_cv_cc_needs_belf=no 3801fi 3802rm -f conftest.err conftest.$ac_objext \ 3803 conftest$ac_exeext conftest.$ac_ext 3804 ac_ext=c 3805ac_cpp='$CPP $CPPFLAGS' 3806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3808ac_compiler_gnu=$ac_cv_c_compiler_gnu 3809 3810fi 3811echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3812echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3813 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3814 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3815 CFLAGS="$SAVE_CFLAGS" 3816 fi 3817 ;; 3818*-*-cygwin* | *-*-mingw* | *-*-pw32*) 3819 if test -n "$ac_tool_prefix"; then 3820 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 3821set dummy ${ac_tool_prefix}dlltool; ac_word=$2 3822echo "$as_me:$LINENO: checking for $ac_word" >&5 3823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3824if test "${ac_cv_prog_DLLTOOL+set}" = set; then 3825 echo $ECHO_N "(cached) $ECHO_C" >&6 3826else 3827 if test -n "$DLLTOOL"; then 3828 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3829else 3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3831for as_dir in $PATH 3832do 3833 IFS=$as_save_IFS 3834 test -z "$as_dir" && as_dir=. 3835 for ac_exec_ext in '' $ac_executable_extensions; do 3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3837 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3839 break 2 3840 fi 3841done 3842done 3843 3844fi 3845fi 3846DLLTOOL=$ac_cv_prog_DLLTOOL 3847if test -n "$DLLTOOL"; then 3848 echo "$as_me:$LINENO: result: $DLLTOOL" >&5 3849echo "${ECHO_T}$DLLTOOL" >&6 3850else 3851 echo "$as_me:$LINENO: result: no" >&5 3852echo "${ECHO_T}no" >&6 3853fi 3854 3855fi 3856if test -z "$ac_cv_prog_DLLTOOL"; then 3857 ac_ct_DLLTOOL=$DLLTOOL 3858 # Extract the first word of "dlltool", so it can be a program name with args. 3859set dummy dlltool; ac_word=$2 3860echo "$as_me:$LINENO: checking for $ac_word" >&5 3861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3862if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 3863 echo $ECHO_N "(cached) $ECHO_C" >&6 3864else 3865 if test -n "$ac_ct_DLLTOOL"; then 3866 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_exec_ext in '' $ac_executable_extensions; do 3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3875 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3877 break 2 3878 fi 3879done 3880done 3881 3882 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" 3883fi 3884fi 3885ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 3886if test -n "$ac_ct_DLLTOOL"; then 3887 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 3888echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 3889else 3890 echo "$as_me:$LINENO: result: no" >&5 3891echo "${ECHO_T}no" >&6 3892fi 3893 3894 DLLTOOL=$ac_ct_DLLTOOL 3895else 3896 DLLTOOL="$ac_cv_prog_DLLTOOL" 3897fi 3898 3899 if test -n "$ac_tool_prefix"; then 3900 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3901set dummy ${ac_tool_prefix}as; ac_word=$2 3902echo "$as_me:$LINENO: checking for $ac_word" >&5 3903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3904if test "${ac_cv_prog_AS+set}" = set; then 3905 echo $ECHO_N "(cached) $ECHO_C" >&6 3906else 3907 if test -n "$AS"; then 3908 ac_cv_prog_AS="$AS" # Let the user override the test. 3909else 3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3911for as_dir in $PATH 3912do 3913 IFS=$as_save_IFS 3914 test -z "$as_dir" && as_dir=. 3915 for ac_exec_ext in '' $ac_executable_extensions; do 3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3917 ac_cv_prog_AS="${ac_tool_prefix}as" 3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3919 break 2 3920 fi 3921done 3922done 3923 3924fi 3925fi 3926AS=$ac_cv_prog_AS 3927if test -n "$AS"; then 3928 echo "$as_me:$LINENO: result: $AS" >&5 3929echo "${ECHO_T}$AS" >&6 3930else 3931 echo "$as_me:$LINENO: result: no" >&5 3932echo "${ECHO_T}no" >&6 3933fi 3934 3935fi 3936if test -z "$ac_cv_prog_AS"; then 3937 ac_ct_AS=$AS 3938 # Extract the first word of "as", so it can be a program name with args. 3939set dummy as; ac_word=$2 3940echo "$as_me:$LINENO: checking for $ac_word" >&5 3941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3942if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 3943 echo $ECHO_N "(cached) $ECHO_C" >&6 3944else 3945 if test -n "$ac_ct_AS"; then 3946 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3947else 3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3949for as_dir in $PATH 3950do 3951 IFS=$as_save_IFS 3952 test -z "$as_dir" && as_dir=. 3953 for ac_exec_ext in '' $ac_executable_extensions; do 3954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3955 ac_cv_prog_ac_ct_AS="as" 3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3957 break 2 3958 fi 3959done 3960done 3961 3962 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" 3963fi 3964fi 3965ac_ct_AS=$ac_cv_prog_ac_ct_AS 3966if test -n "$ac_ct_AS"; then 3967 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 3968echo "${ECHO_T}$ac_ct_AS" >&6 3969else 3970 echo "$as_me:$LINENO: result: no" >&5 3971echo "${ECHO_T}no" >&6 3972fi 3973 3974 AS=$ac_ct_AS 3975else 3976 AS="$ac_cv_prog_AS" 3977fi 3978 3979 if test -n "$ac_tool_prefix"; then 3980 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 3981set dummy ${ac_tool_prefix}objdump; ac_word=$2 3982echo "$as_me:$LINENO: checking for $ac_word" >&5 3983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3984if test "${ac_cv_prog_OBJDUMP+set}" = set; then 3985 echo $ECHO_N "(cached) $ECHO_C" >&6 3986else 3987 if test -n "$OBJDUMP"; then 3988 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 3989else 3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3991for as_dir in $PATH 3992do 3993 IFS=$as_save_IFS 3994 test -z "$as_dir" && as_dir=. 3995 for ac_exec_ext in '' $ac_executable_extensions; do 3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3997 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3999 break 2 4000 fi 4001done 4002done 4003 4004fi 4005fi 4006OBJDUMP=$ac_cv_prog_OBJDUMP 4007if test -n "$OBJDUMP"; then 4008 echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4009echo "${ECHO_T}$OBJDUMP" >&6 4010else 4011 echo "$as_me:$LINENO: result: no" >&5 4012echo "${ECHO_T}no" >&6 4013fi 4014 4015fi 4016if test -z "$ac_cv_prog_OBJDUMP"; then 4017 ac_ct_OBJDUMP=$OBJDUMP 4018 # Extract the first word of "objdump", so it can be a program name with args. 4019set dummy objdump; ac_word=$2 4020echo "$as_me:$LINENO: checking for $ac_word" >&5 4021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4022if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4023 echo $ECHO_N "(cached) $ECHO_C" >&6 4024else 4025 if test -n "$ac_ct_OBJDUMP"; then 4026 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4027else 4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4029for as_dir in $PATH 4030do 4031 IFS=$as_save_IFS 4032 test -z "$as_dir" && as_dir=. 4033 for ac_exec_ext in '' $ac_executable_extensions; do 4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4035 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4037 break 2 4038 fi 4039done 4040done 4041 4042 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" 4043fi 4044fi 4045ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4046if test -n "$ac_ct_OBJDUMP"; then 4047 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4048echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 4049else 4050 echo "$as_me:$LINENO: result: no" >&5 4051echo "${ECHO_T}no" >&6 4052fi 4053 4054 OBJDUMP=$ac_ct_OBJDUMP 4055else 4056 OBJDUMP="$ac_cv_prog_OBJDUMP" 4057fi 4058 4059 ;; 4060 4061esac 4062 4063need_locks="$enable_libtool_lock" 4064 4065 4066ac_ext=c 4067ac_cpp='$CPP $CPPFLAGS' 4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4070ac_compiler_gnu=$ac_cv_c_compiler_gnu 4071echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4072echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 4073# On Suns, sometimes $CPP names a directory. 4074if test -n "$CPP" && test -d "$CPP"; then 4075 CPP= 4076fi 4077if test -z "$CPP"; then 4078 if test "${ac_cv_prog_CPP+set}" = set; then 4079 echo $ECHO_N "(cached) $ECHO_C" >&6 4080else 4081 # Double quotes because CPP needs to be expanded 4082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4083 do 4084 ac_preproc_ok=false 4085for ac_c_preproc_warn_flag in '' yes 4086do 4087 # Use a header file that comes with gcc, so configuring glibc 4088 # with a fresh cross-compiler works. 4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4090 # <limits.h> exists even on freestanding compilers. 4091 # On the NeXT, cc -E runs the code through the compiler's parser, 4092 # not just through cpp. "Syntax error" is here to catch this case. 4093 cat >conftest.$ac_ext <<_ACEOF 4094/* confdefs.h. */ 4095_ACEOF 4096cat confdefs.h >>conftest.$ac_ext 4097cat >>conftest.$ac_ext <<_ACEOF 4098/* end confdefs.h. */ 4099#ifdef __STDC__ 4100# include <limits.h> 4101#else 4102# include <assert.h> 4103#endif 4104 Syntax error 4105_ACEOF 4106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4107 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then 4114 if test -s conftest.err; then 4115 ac_cpp_err=$ac_c_preproc_warn_flag 4116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4117 else 4118 ac_cpp_err= 4119 fi 4120else 4121 ac_cpp_err=yes 4122fi 4123if test -z "$ac_cpp_err"; then 4124 : 4125else 4126 echo "$as_me: failed program was:" >&5 4127sed 's/^/| /' conftest.$ac_ext >&5 4128 4129 # Broken: fails on valid input. 4130continue 4131fi 4132rm -f conftest.err conftest.$ac_ext 4133 4134 # OK, works on sane cases. Now check whether non-existent headers 4135 # can be detected and how. 4136 cat >conftest.$ac_ext <<_ACEOF 4137/* confdefs.h. */ 4138_ACEOF 4139cat confdefs.h >>conftest.$ac_ext 4140cat >>conftest.$ac_ext <<_ACEOF 4141/* end confdefs.h. */ 4142#include <ac_nonexistent.h> 4143_ACEOF 4144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4146 ac_status=$? 4147 grep -v '^ *+' conftest.er1 >conftest.err 4148 rm -f conftest.er1 4149 cat conftest.err >&5 4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4151 (exit $ac_status); } >/dev/null; then 4152 if test -s conftest.err; then 4153 ac_cpp_err=$ac_c_preproc_warn_flag 4154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4155 else 4156 ac_cpp_err= 4157 fi 4158else 4159 ac_cpp_err=yes 4160fi 4161if test -z "$ac_cpp_err"; then 4162 # Broken: success on invalid input. 4163continue 4164else 4165 echo "$as_me: failed program was:" >&5 4166sed 's/^/| /' conftest.$ac_ext >&5 4167 4168 # Passes both tests. 4169ac_preproc_ok=: 4170break 4171fi 4172rm -f conftest.err conftest.$ac_ext 4173 4174done 4175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4176rm -f conftest.err conftest.$ac_ext 4177if $ac_preproc_ok; then 4178 break 4179fi 4180 4181 done 4182 ac_cv_prog_CPP=$CPP 4183 4184fi 4185 CPP=$ac_cv_prog_CPP 4186else 4187 ac_cv_prog_CPP=$CPP 4188fi 4189echo "$as_me:$LINENO: result: $CPP" >&5 4190echo "${ECHO_T}$CPP" >&6 4191ac_preproc_ok=false 4192for ac_c_preproc_warn_flag in '' yes 4193do 4194 # Use a header file that comes with gcc, so configuring glibc 4195 # with a fresh cross-compiler works. 4196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4197 # <limits.h> exists even on freestanding compilers. 4198 # On the NeXT, cc -E runs the code through the compiler's parser, 4199 # not just through cpp. "Syntax error" is here to catch this case. 4200 cat >conftest.$ac_ext <<_ACEOF 4201/* confdefs.h. */ 4202_ACEOF 4203cat confdefs.h >>conftest.$ac_ext 4204cat >>conftest.$ac_ext <<_ACEOF 4205/* end confdefs.h. */ 4206#ifdef __STDC__ 4207# include <limits.h> 4208#else 4209# include <assert.h> 4210#endif 4211 Syntax error 4212_ACEOF 4213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4215 ac_status=$? 4216 grep -v '^ *+' conftest.er1 >conftest.err 4217 rm -f conftest.er1 4218 cat conftest.err >&5 4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4220 (exit $ac_status); } >/dev/null; then 4221 if test -s conftest.err; then 4222 ac_cpp_err=$ac_c_preproc_warn_flag 4223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4224 else 4225 ac_cpp_err= 4226 fi 4227else 4228 ac_cpp_err=yes 4229fi 4230if test -z "$ac_cpp_err"; then 4231 : 4232else 4233 echo "$as_me: failed program was:" >&5 4234sed 's/^/| /' conftest.$ac_ext >&5 4235 4236 # Broken: fails on valid input. 4237continue 4238fi 4239rm -f conftest.err conftest.$ac_ext 4240 4241 # OK, works on sane cases. Now check whether non-existent headers 4242 # can be detected and how. 4243 cat >conftest.$ac_ext <<_ACEOF 4244/* confdefs.h. */ 4245_ACEOF 4246cat confdefs.h >>conftest.$ac_ext 4247cat >>conftest.$ac_ext <<_ACEOF 4248/* end confdefs.h. */ 4249#include <ac_nonexistent.h> 4250_ACEOF 4251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4253 ac_status=$? 4254 grep -v '^ *+' conftest.er1 >conftest.err 4255 rm -f conftest.er1 4256 cat conftest.err >&5 4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4258 (exit $ac_status); } >/dev/null; then 4259 if test -s conftest.err; then 4260 ac_cpp_err=$ac_c_preproc_warn_flag 4261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4262 else 4263 ac_cpp_err= 4264 fi 4265else 4266 ac_cpp_err=yes 4267fi 4268if test -z "$ac_cpp_err"; then 4269 # Broken: success on invalid input. 4270continue 4271else 4272 echo "$as_me: failed program was:" >&5 4273sed 's/^/| /' conftest.$ac_ext >&5 4274 4275 # Passes both tests. 4276ac_preproc_ok=: 4277break 4278fi 4279rm -f conftest.err conftest.$ac_ext 4280 4281done 4282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4283rm -f conftest.err conftest.$ac_ext 4284if $ac_preproc_ok; then 4285 : 4286else 4287 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4288See \`config.log' for more details." >&5 4289echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4290See \`config.log' for more details." >&2;} 4291 { (exit 1); exit 1; }; } 4292fi 4293 4294ac_ext=c 4295ac_cpp='$CPP $CPPFLAGS' 4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4298ac_compiler_gnu=$ac_cv_c_compiler_gnu 4299 4300 4301echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4302echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4303if test "${ac_cv_header_stdc+set}" = set; then 4304 echo $ECHO_N "(cached) $ECHO_C" >&6 4305else 4306 cat >conftest.$ac_ext <<_ACEOF 4307/* confdefs.h. */ 4308_ACEOF 4309cat confdefs.h >>conftest.$ac_ext 4310cat >>conftest.$ac_ext <<_ACEOF 4311/* end confdefs.h. */ 4312#include <stdlib.h> 4313#include <stdarg.h> 4314#include <string.h> 4315#include <float.h> 4316 4317int 4318main () 4319{ 4320 4321 ; 4322 return 0; 4323} 4324_ACEOF 4325rm -f conftest.$ac_objext 4326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4327 (eval $ac_compile) 2>conftest.er1 4328 ac_status=$? 4329 grep -v '^ *+' conftest.er1 >conftest.err 4330 rm -f conftest.er1 4331 cat conftest.err >&5 4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4333 (exit $ac_status); } && 4334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4336 (eval $ac_try) 2>&5 4337 ac_status=$? 4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4339 (exit $ac_status); }; } && 4340 { ac_try='test -s conftest.$ac_objext' 4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4342 (eval $ac_try) 2>&5 4343 ac_status=$? 4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4345 (exit $ac_status); }; }; then 4346 ac_cv_header_stdc=yes 4347else 4348 echo "$as_me: failed program was:" >&5 4349sed 's/^/| /' conftest.$ac_ext >&5 4350 4351ac_cv_header_stdc=no 4352fi 4353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4354 4355if test $ac_cv_header_stdc = yes; then 4356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4357 cat >conftest.$ac_ext <<_ACEOF 4358/* confdefs.h. */ 4359_ACEOF 4360cat confdefs.h >>conftest.$ac_ext 4361cat >>conftest.$ac_ext <<_ACEOF 4362/* end confdefs.h. */ 4363#include <string.h> 4364 4365_ACEOF 4366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4367 $EGREP "memchr" >/dev/null 2>&1; then 4368 : 4369else 4370 ac_cv_header_stdc=no 4371fi 4372rm -f conftest* 4373 4374fi 4375 4376if test $ac_cv_header_stdc = yes; then 4377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4378 cat >conftest.$ac_ext <<_ACEOF 4379/* confdefs.h. */ 4380_ACEOF 4381cat confdefs.h >>conftest.$ac_ext 4382cat >>conftest.$ac_ext <<_ACEOF 4383/* end confdefs.h. */ 4384#include <stdlib.h> 4385 4386_ACEOF 4387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4388 $EGREP "free" >/dev/null 2>&1; then 4389 : 4390else 4391 ac_cv_header_stdc=no 4392fi 4393rm -f conftest* 4394 4395fi 4396 4397if test $ac_cv_header_stdc = yes; then 4398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4399 if test "$cross_compiling" = yes; then 4400 : 4401else 4402 cat >conftest.$ac_ext <<_ACEOF 4403/* confdefs.h. */ 4404_ACEOF 4405cat confdefs.h >>conftest.$ac_ext 4406cat >>conftest.$ac_ext <<_ACEOF 4407/* end confdefs.h. */ 4408#include <ctype.h> 4409#if ((' ' & 0x0FF) == 0x020) 4410# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4411# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4412#else 4413# define ISLOWER(c) \ 4414 (('a' <= (c) && (c) <= 'i') \ 4415 || ('j' <= (c) && (c) <= 'r') \ 4416 || ('s' <= (c) && (c) <= 'z')) 4417# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4418#endif 4419 4420#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4421int 4422main () 4423{ 4424 int i; 4425 for (i = 0; i < 256; i++) 4426 if (XOR (islower (i), ISLOWER (i)) 4427 || toupper (i) != TOUPPER (i)) 4428 exit(2); 4429 exit (0); 4430} 4431_ACEOF 4432rm -f conftest$ac_exeext 4433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4434 (eval $ac_link) 2>&5 4435 ac_status=$? 4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4439 (eval $ac_try) 2>&5 4440 ac_status=$? 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); }; }; then 4443 : 4444else 4445 echo "$as_me: program exited with status $ac_status" >&5 4446echo "$as_me: failed program was:" >&5 4447sed 's/^/| /' conftest.$ac_ext >&5 4448 4449( exit $ac_status ) 4450ac_cv_header_stdc=no 4451fi 4452rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4453fi 4454fi 4455fi 4456echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4457echo "${ECHO_T}$ac_cv_header_stdc" >&6 4458if test $ac_cv_header_stdc = yes; then 4459 4460cat >>confdefs.h <<\_ACEOF 4461#define STDC_HEADERS 1 4462_ACEOF 4463 4464fi 4465 4466# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4477 inttypes.h stdint.h unistd.h 4478do 4479as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4480echo "$as_me:$LINENO: checking for $ac_header" >&5 4481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4482if eval "test \"\${$as_ac_Header+set}\" = set"; then 4483 echo $ECHO_N "(cached) $ECHO_C" >&6 4484else 4485 cat >conftest.$ac_ext <<_ACEOF 4486/* confdefs.h. */ 4487_ACEOF 4488cat confdefs.h >>conftest.$ac_ext 4489cat >>conftest.$ac_ext <<_ACEOF 4490/* end confdefs.h. */ 4491$ac_includes_default 4492 4493#include <$ac_header> 4494_ACEOF 4495rm -f conftest.$ac_objext 4496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4497 (eval $ac_compile) 2>conftest.er1 4498 ac_status=$? 4499 grep -v '^ *+' conftest.er1 >conftest.err 4500 rm -f conftest.er1 4501 cat conftest.err >&5 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); } && 4504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4506 (eval $ac_try) 2>&5 4507 ac_status=$? 4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4509 (exit $ac_status); }; } && 4510 { ac_try='test -s conftest.$ac_objext' 4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4512 (eval $ac_try) 2>&5 4513 ac_status=$? 4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4515 (exit $ac_status); }; }; then 4516 eval "$as_ac_Header=yes" 4517else 4518 echo "$as_me: failed program was:" >&5 4519sed 's/^/| /' conftest.$ac_ext >&5 4520 4521eval "$as_ac_Header=no" 4522fi 4523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4524fi 4525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4527if test `eval echo '${'$as_ac_Header'}'` = yes; then 4528 cat >>confdefs.h <<_ACEOF 4529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4530_ACEOF 4531 4532fi 4533 4534done 4535 4536 4537 4538for ac_header in dlfcn.h 4539do 4540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4541if eval "test \"\${$as_ac_Header+set}\" = set"; then 4542 echo "$as_me:$LINENO: checking for $ac_header" >&5 4543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4544if eval "test \"\${$as_ac_Header+set}\" = set"; then 4545 echo $ECHO_N "(cached) $ECHO_C" >&6 4546fi 4547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4549else 4550 # Is the header compilable? 4551echo "$as_me:$LINENO: checking $ac_header usability" >&5 4552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4553cat >conftest.$ac_ext <<_ACEOF 4554/* confdefs.h. */ 4555_ACEOF 4556cat confdefs.h >>conftest.$ac_ext 4557cat >>conftest.$ac_ext <<_ACEOF 4558/* end confdefs.h. */ 4559$ac_includes_default 4560#include <$ac_header> 4561_ACEOF 4562rm -f conftest.$ac_objext 4563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4564 (eval $ac_compile) 2>conftest.er1 4565 ac_status=$? 4566 grep -v '^ *+' conftest.er1 >conftest.err 4567 rm -f conftest.er1 4568 cat conftest.err >&5 4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4570 (exit $ac_status); } && 4571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4573 (eval $ac_try) 2>&5 4574 ac_status=$? 4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4576 (exit $ac_status); }; } && 4577 { ac_try='test -s conftest.$ac_objext' 4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4579 (eval $ac_try) 2>&5 4580 ac_status=$? 4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4582 (exit $ac_status); }; }; then 4583 ac_header_compiler=yes 4584else 4585 echo "$as_me: failed program was:" >&5 4586sed 's/^/| /' conftest.$ac_ext >&5 4587 4588ac_header_compiler=no 4589fi 4590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4591echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4592echo "${ECHO_T}$ac_header_compiler" >&6 4593 4594# Is the header present? 4595echo "$as_me:$LINENO: checking $ac_header presence" >&5 4596echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4597cat >conftest.$ac_ext <<_ACEOF 4598/* confdefs.h. */ 4599_ACEOF 4600cat confdefs.h >>conftest.$ac_ext 4601cat >>conftest.$ac_ext <<_ACEOF 4602/* end confdefs.h. */ 4603#include <$ac_header> 4604_ACEOF 4605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4607 ac_status=$? 4608 grep -v '^ *+' conftest.er1 >conftest.err 4609 rm -f conftest.er1 4610 cat conftest.err >&5 4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4612 (exit $ac_status); } >/dev/null; then 4613 if test -s conftest.err; then 4614 ac_cpp_err=$ac_c_preproc_warn_flag 4615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4616 else 4617 ac_cpp_err= 4618 fi 4619else 4620 ac_cpp_err=yes 4621fi 4622if test -z "$ac_cpp_err"; then 4623 ac_header_preproc=yes 4624else 4625 echo "$as_me: failed program was:" >&5 4626sed 's/^/| /' conftest.$ac_ext >&5 4627 4628 ac_header_preproc=no 4629fi 4630rm -f conftest.err conftest.$ac_ext 4631echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4632echo "${ECHO_T}$ac_header_preproc" >&6 4633 4634# So? What about this header? 4635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4636 yes:no: ) 4637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4640echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4641 ac_header_preproc=yes 4642 ;; 4643 no:yes:* ) 4644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4647echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4649echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4651echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4655echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4656 ( 4657 cat <<\_ASBOX 4658## ------------------------------ ## 4659## Report this to anarxia@gmx.net ## 4660## ------------------------------ ## 4661_ASBOX 4662 ) | 4663 sed "s/^/$as_me: WARNING: /" >&2 4664 ;; 4665esac 4666echo "$as_me:$LINENO: checking for $ac_header" >&5 4667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4668if eval "test \"\${$as_ac_Header+set}\" = set"; then 4669 echo $ECHO_N "(cached) $ECHO_C" >&6 4670else 4671 eval "$as_ac_Header=\$ac_header_preproc" 4672fi 4673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4675 4676fi 4677if test `eval echo '${'$as_ac_Header'}'` = yes; then 4678 cat >>confdefs.h <<_ACEOF 4679#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4680_ACEOF 4681 4682fi 4683 4684done 4685 4686ac_ext=cc 4687ac_cpp='$CXXCPP $CPPFLAGS' 4688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4691if test -n "$ac_tool_prefix"; then 4692 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4693 do 4694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4695set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4696echo "$as_me:$LINENO: checking for $ac_word" >&5 4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4698if test "${ac_cv_prog_CXX+set}" = set; then 4699 echo $ECHO_N "(cached) $ECHO_C" >&6 4700else 4701 if test -n "$CXX"; then 4702 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4703else 4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4705for as_dir in $PATH 4706do 4707 IFS=$as_save_IFS 4708 test -z "$as_dir" && as_dir=. 4709 for ac_exec_ext in '' $ac_executable_extensions; do 4710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4711 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4713 break 2 4714 fi 4715done 4716done 4717 4718fi 4719fi 4720CXX=$ac_cv_prog_CXX 4721if test -n "$CXX"; then 4722 echo "$as_me:$LINENO: result: $CXX" >&5 4723echo "${ECHO_T}$CXX" >&6 4724else 4725 echo "$as_me:$LINENO: result: no" >&5 4726echo "${ECHO_T}no" >&6 4727fi 4728 4729 test -n "$CXX" && break 4730 done 4731fi 4732if test -z "$CXX"; then 4733 ac_ct_CXX=$CXX 4734 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4735do 4736 # Extract the first word of "$ac_prog", so it can be a program name with args. 4737set dummy $ac_prog; ac_word=$2 4738echo "$as_me:$LINENO: checking for $ac_word" >&5 4739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4740if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4741 echo $ECHO_N "(cached) $ECHO_C" >&6 4742else 4743 if test -n "$ac_ct_CXX"; then 4744 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4745else 4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4747for as_dir in $PATH 4748do 4749 IFS=$as_save_IFS 4750 test -z "$as_dir" && as_dir=. 4751 for ac_exec_ext in '' $ac_executable_extensions; do 4752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4753 ac_cv_prog_ac_ct_CXX="$ac_prog" 4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4755 break 2 4756 fi 4757done 4758done 4759 4760fi 4761fi 4762ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4763if test -n "$ac_ct_CXX"; then 4764 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4765echo "${ECHO_T}$ac_ct_CXX" >&6 4766else 4767 echo "$as_me:$LINENO: result: no" >&5 4768echo "${ECHO_T}no" >&6 4769fi 4770 4771 test -n "$ac_ct_CXX" && break 4772done 4773test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4774 4775 CXX=$ac_ct_CXX 4776fi 4777 4778 4779# Provide some information about the compiler. 4780echo "$as_me:$LINENO:" \ 4781 "checking for C++ compiler version" >&5 4782ac_compiler=`set X $ac_compile; echo $2` 4783{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4784 (eval $ac_compiler --version </dev/null >&5) 2>&5 4785 ac_status=$? 4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4787 (exit $ac_status); } 4788{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4789 (eval $ac_compiler -v </dev/null >&5) 2>&5 4790 ac_status=$? 4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4792 (exit $ac_status); } 4793{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4794 (eval $ac_compiler -V </dev/null >&5) 2>&5 4795 ac_status=$? 4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4797 (exit $ac_status); } 4798 4799echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4800echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4801if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4802 echo $ECHO_N "(cached) $ECHO_C" >&6 4803else 4804 cat >conftest.$ac_ext <<_ACEOF 4805/* confdefs.h. */ 4806_ACEOF 4807cat confdefs.h >>conftest.$ac_ext 4808cat >>conftest.$ac_ext <<_ACEOF 4809/* end confdefs.h. */ 4810 4811int 4812main () 4813{ 4814#ifndef __GNUC__ 4815 choke me 4816#endif 4817 4818 ; 4819 return 0; 4820} 4821_ACEOF 4822rm -f conftest.$ac_objext 4823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4824 (eval $ac_compile) 2>conftest.er1 4825 ac_status=$? 4826 grep -v '^ *+' conftest.er1 >conftest.err 4827 rm -f conftest.er1 4828 cat conftest.err >&5 4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4830 (exit $ac_status); } && 4831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4833 (eval $ac_try) 2>&5 4834 ac_status=$? 4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4836 (exit $ac_status); }; } && 4837 { ac_try='test -s conftest.$ac_objext' 4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4839 (eval $ac_try) 2>&5 4840 ac_status=$? 4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4842 (exit $ac_status); }; }; then 4843 ac_compiler_gnu=yes 4844else 4845 echo "$as_me: failed program was:" >&5 4846sed 's/^/| /' conftest.$ac_ext >&5 4847 4848ac_compiler_gnu=no 4849fi 4850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4851ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4852 4853fi 4854echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4855echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4856GXX=`test $ac_compiler_gnu = yes && echo yes` 4857ac_test_CXXFLAGS=${CXXFLAGS+set} 4858ac_save_CXXFLAGS=$CXXFLAGS 4859CXXFLAGS="-g" 4860echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4861echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4862if test "${ac_cv_prog_cxx_g+set}" = set; then 4863 echo $ECHO_N "(cached) $ECHO_C" >&6 4864else 4865 cat >conftest.$ac_ext <<_ACEOF 4866/* confdefs.h. */ 4867_ACEOF 4868cat confdefs.h >>conftest.$ac_ext 4869cat >>conftest.$ac_ext <<_ACEOF 4870/* end confdefs.h. */ 4871 4872int 4873main () 4874{ 4875 4876 ; 4877 return 0; 4878} 4879_ACEOF 4880rm -f conftest.$ac_objext 4881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4882 (eval $ac_compile) 2>conftest.er1 4883 ac_status=$? 4884 grep -v '^ *+' conftest.er1 >conftest.err 4885 rm -f conftest.er1 4886 cat conftest.err >&5 4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4888 (exit $ac_status); } && 4889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4891 (eval $ac_try) 2>&5 4892 ac_status=$? 4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4894 (exit $ac_status); }; } && 4895 { ac_try='test -s conftest.$ac_objext' 4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4897 (eval $ac_try) 2>&5 4898 ac_status=$? 4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4900 (exit $ac_status); }; }; then 4901 ac_cv_prog_cxx_g=yes 4902else 4903 echo "$as_me: failed program was:" >&5 4904sed 's/^/| /' conftest.$ac_ext >&5 4905 4906ac_cv_prog_cxx_g=no 4907fi 4908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4909fi 4910echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4911echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4912if test "$ac_test_CXXFLAGS" = set; then 4913 CXXFLAGS=$ac_save_CXXFLAGS 4914elif test $ac_cv_prog_cxx_g = yes; then 4915 if test "$GXX" = yes; then 4916 CXXFLAGS="-g -O2" 4917 else 4918 CXXFLAGS="-g" 4919 fi 4920else 4921 if test "$GXX" = yes; then 4922 CXXFLAGS="-O2" 4923 else 4924 CXXFLAGS= 4925 fi 4926fi 4927for ac_declaration in \ 4928 '' \ 4929 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4930 'extern "C" void std::exit (int); using std::exit;' \ 4931 'extern "C" void exit (int) throw ();' \ 4932 'extern "C" void exit (int);' \ 4933 'void exit (int);' 4934do 4935 cat >conftest.$ac_ext <<_ACEOF 4936/* confdefs.h. */ 4937_ACEOF 4938cat confdefs.h >>conftest.$ac_ext 4939cat >>conftest.$ac_ext <<_ACEOF 4940/* end confdefs.h. */ 4941$ac_declaration 4942#include <stdlib.h> 4943int 4944main () 4945{ 4946exit (42); 4947 ; 4948 return 0; 4949} 4950_ACEOF 4951rm -f conftest.$ac_objext 4952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4953 (eval $ac_compile) 2>conftest.er1 4954 ac_status=$? 4955 grep -v '^ *+' conftest.er1 >conftest.err 4956 rm -f conftest.er1 4957 cat conftest.err >&5 4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4959 (exit $ac_status); } && 4960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4962 (eval $ac_try) 2>&5 4963 ac_status=$? 4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4965 (exit $ac_status); }; } && 4966 { ac_try='test -s conftest.$ac_objext' 4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4968 (eval $ac_try) 2>&5 4969 ac_status=$? 4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4971 (exit $ac_status); }; }; then 4972 : 4973else 4974 echo "$as_me: failed program was:" >&5 4975sed 's/^/| /' conftest.$ac_ext >&5 4976 4977continue 4978fi 4979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4980 cat >conftest.$ac_ext <<_ACEOF 4981/* confdefs.h. */ 4982_ACEOF 4983cat confdefs.h >>conftest.$ac_ext 4984cat >>conftest.$ac_ext <<_ACEOF 4985/* end confdefs.h. */ 4986$ac_declaration 4987int 4988main () 4989{ 4990exit (42); 4991 ; 4992 return 0; 4993} 4994_ACEOF 4995rm -f conftest.$ac_objext 4996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4997 (eval $ac_compile) 2>conftest.er1 4998 ac_status=$? 4999 grep -v '^ *+' conftest.er1 >conftest.err 5000 rm -f conftest.er1 5001 cat conftest.err >&5 5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5003 (exit $ac_status); } && 5004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5006 (eval $ac_try) 2>&5 5007 ac_status=$? 5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5009 (exit $ac_status); }; } && 5010 { ac_try='test -s conftest.$ac_objext' 5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5012 (eval $ac_try) 2>&5 5013 ac_status=$? 5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5015 (exit $ac_status); }; }; then 5016 break 5017else 5018 echo "$as_me: failed program was:" >&5 5019sed 's/^/| /' conftest.$ac_ext >&5 5020 5021fi 5022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5023done 5024rm -f conftest* 5025if test -n "$ac_declaration"; then 5026 echo '#ifdef __cplusplus' >>confdefs.h 5027 echo $ac_declaration >>confdefs.h 5028 echo '#endif' >>confdefs.h 5029fi 5030 5031ac_ext=cc 5032ac_cpp='$CXXCPP $CPPFLAGS' 5033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5036 5037depcc="$CXX" am_compiler_list= 5038 5039echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5040echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5041if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5042 echo $ECHO_N "(cached) $ECHO_C" >&6 5043else 5044 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5045 # We make a subdir and do the tests there. Otherwise we can end up 5046 # making bogus files that we don't know about and never remove. For 5047 # instance it was reported that on HP-UX the gcc test will end up 5048 # making a dummy file named `D' -- because `-MD' means `put the output 5049 # in D'. 5050 mkdir conftest.dir 5051 # Copy depcomp to subdir because otherwise we won't find it if we're 5052 # using a relative directory. 5053 cp "$am_depcomp" conftest.dir 5054 cd conftest.dir 5055 # We will build objects and dependencies in a subdirectory because 5056 # it helps to detect inapplicable dependency modes. For instance 5057 # both Tru64's cc and ICC support -MD to output dependencies as a 5058 # side effect of compilation, but ICC will put the dependencies in 5059 # the current directory while Tru64 will put them in the object 5060 # directory. 5061 mkdir sub 5062 5063 am_cv_CXX_dependencies_compiler_type=none 5064 if test "$am_compiler_list" = ""; then 5065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5066 fi 5067 for depmode in $am_compiler_list; do 5068 # Setup a source with many dependencies, because some compilers 5069 # like to wrap large dependency lists on column 80 (with \), and 5070 # we should not choose a depcomp mode which is confused by this. 5071 # 5072 # We need to recreate these files for each test, as the compiler may 5073 # overwrite some of them when testing with obscure command lines. 5074 # This happens at least with the AIX C compiler. 5075 : > sub/conftest.c 5076 for i in 1 2 3 4 5 6; do 5077 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5078 : > sub/conftst$i.h 5079 done 5080 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5081 5082 case $depmode in 5083 nosideeffect) 5084 # after this tag, mechanisms are not by side-effect, so they'll 5085 # only be used when explicitly requested 5086 if test "x$enable_dependency_tracking" = xyes; then 5087 continue 5088 else 5089 break 5090 fi 5091 ;; 5092 none) break ;; 5093 esac 5094 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5095 # mode. It turns out that the SunPro C++ compiler does not properly 5096 # handle `-M -o', and we need to detect this. 5097 if depmode=$depmode \ 5098 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5099 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5100 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5101 >/dev/null 2>conftest.err && 5102 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5103 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5104 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5105 # icc doesn't choke on unknown options, it will just issue warnings 5106 # (even with -Werror). So we grep stderr for any message 5107 # that says an option was ignored. 5108 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 5109 am_cv_CXX_dependencies_compiler_type=$depmode 5110 break 5111 fi 5112 fi 5113 done 5114 5115 cd .. 5116 rm -rf conftest.dir 5117else 5118 am_cv_CXX_dependencies_compiler_type=none 5119fi 5120 5121fi 5122echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5123echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5124CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5125 5126 5127 5128if 5129 test "x$enable_dependency_tracking" != xno \ 5130 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5131 am__fastdepCXX_TRUE= 5132 am__fastdepCXX_FALSE='#' 5133else 5134 am__fastdepCXX_TRUE='#' 5135 am__fastdepCXX_FALSE= 5136fi 5137 5138 5139ac_ext=cc 5140ac_cpp='$CXXCPP $CPPFLAGS' 5141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5144echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5145echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5146if test -z "$CXXCPP"; then 5147 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5148 echo $ECHO_N "(cached) $ECHO_C" >&6 5149else 5150 # Double quotes because CXXCPP needs to be expanded 5151 for CXXCPP in "$CXX -E" "/lib/cpp" 5152 do 5153 ac_preproc_ok=false 5154for ac_cxx_preproc_warn_flag in '' yes 5155do 5156 # Use a header file that comes with gcc, so configuring glibc 5157 # with a fresh cross-compiler works. 5158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5159 # <limits.h> exists even on freestanding compilers. 5160 # On the NeXT, cc -E runs the code through the compiler's parser, 5161 # not just through cpp. "Syntax error" is here to catch this case. 5162 cat >conftest.$ac_ext <<_ACEOF 5163/* confdefs.h. */ 5164_ACEOF 5165cat confdefs.h >>conftest.$ac_ext 5166cat >>conftest.$ac_ext <<_ACEOF 5167/* end confdefs.h. */ 5168#ifdef __STDC__ 5169# include <limits.h> 5170#else 5171# include <assert.h> 5172#endif 5173 Syntax error 5174_ACEOF 5175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5177 ac_status=$? 5178 grep -v '^ *+' conftest.er1 >conftest.err 5179 rm -f conftest.er1 5180 cat conftest.err >&5 5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5182 (exit $ac_status); } >/dev/null; then 5183 if test -s conftest.err; then 5184 ac_cpp_err=$ac_cxx_preproc_warn_flag 5185 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5186 else 5187 ac_cpp_err= 5188 fi 5189else 5190 ac_cpp_err=yes 5191fi 5192if test -z "$ac_cpp_err"; then 5193 : 5194else 5195 echo "$as_me: failed program was:" >&5 5196sed 's/^/| /' conftest.$ac_ext >&5 5197 5198 # Broken: fails on valid input. 5199continue 5200fi 5201rm -f conftest.err conftest.$ac_ext 5202 5203 # OK, works on sane cases. Now check whether non-existent headers 5204 # can be detected and how. 5205 cat >conftest.$ac_ext <<_ACEOF 5206/* confdefs.h. */ 5207_ACEOF 5208cat confdefs.h >>conftest.$ac_ext 5209cat >>conftest.$ac_ext <<_ACEOF 5210/* end confdefs.h. */ 5211#include <ac_nonexistent.h> 5212_ACEOF 5213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5215 ac_status=$? 5216 grep -v '^ *+' conftest.er1 >conftest.err 5217 rm -f conftest.er1 5218 cat conftest.err >&5 5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5220 (exit $ac_status); } >/dev/null; then 5221 if test -s conftest.err; then 5222 ac_cpp_err=$ac_cxx_preproc_warn_flag 5223 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5224 else 5225 ac_cpp_err= 5226 fi 5227else 5228 ac_cpp_err=yes 5229fi 5230if test -z "$ac_cpp_err"; then 5231 # Broken: success on invalid input. 5232continue 5233else 5234 echo "$as_me: failed program was:" >&5 5235sed 's/^/| /' conftest.$ac_ext >&5 5236 5237 # Passes both tests. 5238ac_preproc_ok=: 5239break 5240fi 5241rm -f conftest.err conftest.$ac_ext 5242 5243done 5244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5245rm -f conftest.err conftest.$ac_ext 5246if $ac_preproc_ok; then 5247 break 5248fi 5249 5250 done 5251 ac_cv_prog_CXXCPP=$CXXCPP 5252 5253fi 5254 CXXCPP=$ac_cv_prog_CXXCPP 5255else 5256 ac_cv_prog_CXXCPP=$CXXCPP 5257fi 5258echo "$as_me:$LINENO: result: $CXXCPP" >&5 5259echo "${ECHO_T}$CXXCPP" >&6 5260ac_preproc_ok=false 5261for ac_cxx_preproc_warn_flag in '' yes 5262do 5263 # Use a header file that comes with gcc, so configuring glibc 5264 # with a fresh cross-compiler works. 5265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5266 # <limits.h> exists even on freestanding compilers. 5267 # On the NeXT, cc -E runs the code through the compiler's parser, 5268 # not just through cpp. "Syntax error" is here to catch this case. 5269 cat >conftest.$ac_ext <<_ACEOF 5270/* confdefs.h. */ 5271_ACEOF 5272cat confdefs.h >>conftest.$ac_ext 5273cat >>conftest.$ac_ext <<_ACEOF 5274/* end confdefs.h. */ 5275#ifdef __STDC__ 5276# include <limits.h> 5277#else 5278# include <assert.h> 5279#endif 5280 Syntax error 5281_ACEOF 5282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5284 ac_status=$? 5285 grep -v '^ *+' conftest.er1 >conftest.err 5286 rm -f conftest.er1 5287 cat conftest.err >&5 5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5289 (exit $ac_status); } >/dev/null; then 5290 if test -s conftest.err; then 5291 ac_cpp_err=$ac_cxx_preproc_warn_flag 5292 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5293 else 5294 ac_cpp_err= 5295 fi 5296else 5297 ac_cpp_err=yes 5298fi 5299if test -z "$ac_cpp_err"; then 5300 : 5301else 5302 echo "$as_me: failed program was:" >&5 5303sed 's/^/| /' conftest.$ac_ext >&5 5304 5305 # Broken: fails on valid input. 5306continue 5307fi 5308rm -f conftest.err conftest.$ac_ext 5309 5310 # OK, works on sane cases. Now check whether non-existent headers 5311 # can be detected and how. 5312 cat >conftest.$ac_ext <<_ACEOF 5313/* confdefs.h. */ 5314_ACEOF 5315cat confdefs.h >>conftest.$ac_ext 5316cat >>conftest.$ac_ext <<_ACEOF 5317/* end confdefs.h. */ 5318#include <ac_nonexistent.h> 5319_ACEOF 5320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5322 ac_status=$? 5323 grep -v '^ *+' conftest.er1 >conftest.err 5324 rm -f conftest.er1 5325 cat conftest.err >&5 5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5327 (exit $ac_status); } >/dev/null; then 5328 if test -s conftest.err; then 5329 ac_cpp_err=$ac_cxx_preproc_warn_flag 5330 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5331 else 5332 ac_cpp_err= 5333 fi 5334else 5335 ac_cpp_err=yes 5336fi 5337if test -z "$ac_cpp_err"; then 5338 # Broken: success on invalid input. 5339continue 5340else 5341 echo "$as_me: failed program was:" >&5 5342sed 's/^/| /' conftest.$ac_ext >&5 5343 5344 # Passes both tests. 5345ac_preproc_ok=: 5346break 5347fi 5348rm -f conftest.err conftest.$ac_ext 5349 5350done 5351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5352rm -f conftest.err conftest.$ac_ext 5353if $ac_preproc_ok; then 5354 : 5355else 5356 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5357See \`config.log' for more details." >&5 5358echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5359See \`config.log' for more details." >&2;} 5360 { (exit 1); exit 1; }; } 5361fi 5362 5363ac_ext=cc 5364ac_cpp='$CXXCPP $CPPFLAGS' 5365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5368 5369 5370ac_ext=f 5371ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5372ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5373ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5374if test -n "$ac_tool_prefix"; then 5375 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5376 do 5377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5378set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5379echo "$as_me:$LINENO: checking for $ac_word" >&5 5380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5381if test "${ac_cv_prog_F77+set}" = set; then 5382 echo $ECHO_N "(cached) $ECHO_C" >&6 5383else 5384 if test -n "$F77"; then 5385 ac_cv_prog_F77="$F77" # Let the user override the test. 5386else 5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5388for as_dir in $PATH 5389do 5390 IFS=$as_save_IFS 5391 test -z "$as_dir" && as_dir=. 5392 for ac_exec_ext in '' $ac_executable_extensions; do 5393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5394 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5396 break 2 5397 fi 5398done 5399done 5400 5401fi 5402fi 5403F77=$ac_cv_prog_F77 5404if test -n "$F77"; then 5405 echo "$as_me:$LINENO: result: $F77" >&5 5406echo "${ECHO_T}$F77" >&6 5407else 5408 echo "$as_me:$LINENO: result: no" >&5 5409echo "${ECHO_T}no" >&6 5410fi 5411 5412 test -n "$F77" && break 5413 done 5414fi 5415if test -z "$F77"; then 5416 ac_ct_F77=$F77 5417 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5418do 5419 # Extract the first word of "$ac_prog", so it can be a program name with args. 5420set dummy $ac_prog; ac_word=$2 5421echo "$as_me:$LINENO: checking for $ac_word" >&5 5422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5423if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5424 echo $ECHO_N "(cached) $ECHO_C" >&6 5425else 5426 if test -n "$ac_ct_F77"; then 5427 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5428else 5429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5430for as_dir in $PATH 5431do 5432 IFS=$as_save_IFS 5433 test -z "$as_dir" && as_dir=. 5434 for ac_exec_ext in '' $ac_executable_extensions; do 5435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5436 ac_cv_prog_ac_ct_F77="$ac_prog" 5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5438 break 2 5439 fi 5440done 5441done 5442 5443fi 5444fi 5445ac_ct_F77=$ac_cv_prog_ac_ct_F77 5446if test -n "$ac_ct_F77"; then 5447 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5448echo "${ECHO_T}$ac_ct_F77" >&6 5449else 5450 echo "$as_me:$LINENO: result: no" >&5 5451echo "${ECHO_T}no" >&6 5452fi 5453 5454 test -n "$ac_ct_F77" && break 5455done 5456 5457 F77=$ac_ct_F77 5458fi 5459 5460 5461# Provide some information about the compiler. 5462echo "$as_me:5462:" \ 5463 "checking for Fortran 77 compiler version" >&5 5464ac_compiler=`set X $ac_compile; echo $2` 5465{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5466 (eval $ac_compiler --version </dev/null >&5) 2>&5 5467 ac_status=$? 5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5469 (exit $ac_status); } 5470{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5471 (eval $ac_compiler -v </dev/null >&5) 2>&5 5472 ac_status=$? 5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5474 (exit $ac_status); } 5475{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5476 (eval $ac_compiler -V </dev/null >&5) 2>&5 5477 ac_status=$? 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); } 5480rm -f a.out 5481 5482# If we don't use `.F' as extension, the preprocessor is not run on the 5483# input file. (Note that this only needs to work for GNU compilers.) 5484ac_save_ext=$ac_ext 5485ac_ext=F 5486echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5487echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5488if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5489 echo $ECHO_N "(cached) $ECHO_C" >&6 5490else 5491 cat >conftest.$ac_ext <<_ACEOF 5492 program main 5493#ifndef __GNUC__ 5494 choke me 5495#endif 5496 5497 end 5498_ACEOF 5499rm -f conftest.$ac_objext 5500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5501 (eval $ac_compile) 2>conftest.er1 5502 ac_status=$? 5503 grep -v '^ *+' conftest.er1 >conftest.err 5504 rm -f conftest.er1 5505 cat conftest.err >&5 5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5507 (exit $ac_status); } && 5508 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5510 (eval $ac_try) 2>&5 5511 ac_status=$? 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5513 (exit $ac_status); }; } && 5514 { ac_try='test -s conftest.$ac_objext' 5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5516 (eval $ac_try) 2>&5 5517 ac_status=$? 5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519 (exit $ac_status); }; }; then 5520 ac_compiler_gnu=yes 5521else 5522 echo "$as_me: failed program was:" >&5 5523sed 's/^/| /' conftest.$ac_ext >&5 5524 5525ac_compiler_gnu=no 5526fi 5527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5528ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5529 5530fi 5531echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5532echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5533ac_ext=$ac_save_ext 5534ac_test_FFLAGS=${FFLAGS+set} 5535ac_save_FFLAGS=$FFLAGS 5536FFLAGS= 5537echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5538echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5539if test "${ac_cv_prog_f77_g+set}" = set; then 5540 echo $ECHO_N "(cached) $ECHO_C" >&6 5541else 5542 FFLAGS=-g 5543cat >conftest.$ac_ext <<_ACEOF 5544 program main 5545 5546 end 5547_ACEOF 5548rm -f conftest.$ac_objext 5549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5550 (eval $ac_compile) 2>conftest.er1 5551 ac_status=$? 5552 grep -v '^ *+' conftest.er1 >conftest.err 5553 rm -f conftest.er1 5554 cat conftest.err >&5 5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5556 (exit $ac_status); } && 5557 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5559 (eval $ac_try) 2>&5 5560 ac_status=$? 5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5562 (exit $ac_status); }; } && 5563 { ac_try='test -s conftest.$ac_objext' 5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5565 (eval $ac_try) 2>&5 5566 ac_status=$? 5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5568 (exit $ac_status); }; }; then 5569 ac_cv_prog_f77_g=yes 5570else 5571 echo "$as_me: failed program was:" >&5 5572sed 's/^/| /' conftest.$ac_ext >&5 5573 5574ac_cv_prog_f77_g=no 5575fi 5576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5577 5578fi 5579echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5580echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5581if test "$ac_test_FFLAGS" = set; then 5582 FFLAGS=$ac_save_FFLAGS 5583elif test $ac_cv_prog_f77_g = yes; then 5584 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5585 FFLAGS="-g -O2" 5586 else 5587 FFLAGS="-g" 5588 fi 5589else 5590 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5591 FFLAGS="-O2" 5592 else 5593 FFLAGS= 5594 fi 5595fi 5596 5597G77=`test $ac_compiler_gnu = yes && echo yes` 5598ac_ext=c 5599ac_cpp='$CPP $CPPFLAGS' 5600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5602ac_compiler_gnu=$ac_cv_c_compiler_gnu 5603 5604 5605 5606# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5607 5608# find the maximum length of command line arguments 5609echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5610echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5611if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5612 echo $ECHO_N "(cached) $ECHO_C" >&6 5613else 5614 i=0 5615 teststring="ABCD" 5616 5617 case $build_os in 5618 msdosdjgpp*) 5619 # On DJGPP, this test can blow up pretty badly due to problems in libc 5620 # (any single argument exceeding 2000 bytes causes a buffer overrun 5621 # during glob expansion). Even if it were fixed, the result of this 5622 # check would be larger than it should be. 5623 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5624 ;; 5625 5626 gnu*) 5627 # Under GNU Hurd, this test is not required because there is 5628 # no limit to the length of command line arguments. 5629 # Libtool will interpret -1 as no limit whatsoever 5630 lt_cv_sys_max_cmd_len=-1; 5631 ;; 5632 5633 cygwin* | mingw*) 5634 # On Win9x/ME, this test blows up -- it succeeds, but takes 5635 # about 5 minutes as the teststring grows exponentially. 5636 # Worse, since 9x/ME are not pre-emptively multitasking, 5637 # you end up with a "frozen" computer, even though with patience 5638 # the test eventually succeeds (with a max line length of 256k). 5639 # Instead, let's just punt: use the minimum linelength reported by 5640 # all of the supported platforms: 8192 (on NT/2K/XP). 5641 lt_cv_sys_max_cmd_len=8192; 5642 ;; 5643 5644 amigaos*) 5645 # On AmigaOS with pdksh, this test takes hours, literally. 5646 # So we just punt and use a minimum line length of 8192. 5647 lt_cv_sys_max_cmd_len=8192; 5648 ;; 5649 5650 *) 5651 # If test is not a shell built-in, we'll probably end up computing a 5652 # maximum length that is only half of the actual maximum length, but 5653 # we can't tell. 5654 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5655 = "XX$teststring") >/dev/null 2>&1 && 5656 new_result=`expr "X$teststring" : ".*" 2>&1` && 5657 lt_cv_sys_max_cmd_len=$new_result && 5658 test $i != 17 # 1/2 MB should be enough 5659 do 5660 i=`expr $i + 1` 5661 teststring=$teststring$teststring 5662 done 5663 teststring= 5664 # Add a significant safety factor because C++ compilers can tack on massive 5665 # amounts of additional arguments before passing them to the linker. 5666 # It appears as though 1/2 is a usable value. 5667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5668 ;; 5669 esac 5670 5671fi 5672 5673if test -n $lt_cv_sys_max_cmd_len ; then 5674 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5675echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5676else 5677 echo "$as_me:$LINENO: result: none" >&5 5678echo "${ECHO_T}none" >&6 5679fi 5680 5681 5682 5683 5684# Check for command to grab the raw symbol name followed by C symbol from nm. 5685echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5686echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5687if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5688 echo $ECHO_N "(cached) $ECHO_C" >&6 5689else 5690 5691# These are sane defaults that work on at least a few old systems. 5692# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5693 5694# Character class describing NM global symbol codes. 5695symcode='[BCDEGRST]' 5696 5697# Regexp to match symbols that can be accessed directly from C. 5698sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5699 5700# Transform the above into a raw symbol and a C symbol. 5701symxfrm='\1 \2\3 \3' 5702 5703# Transform an extracted symbol line into a proper C declaration 5704lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5705 5706# Transform an extracted symbol line into symbol name and symbol address 5707lt_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'" 5708 5709# Define system-specific variables. 5710case $host_os in 5711aix*) 5712 symcode='[BCDT]' 5713 ;; 5714cygwin* | mingw* | pw32*) 5715 symcode='[ABCDGISTW]' 5716 ;; 5717hpux*) # Its linker distinguishes data from code symbols 5718 if test "$host_cpu" = ia64; then 5719 symcode='[ABCDEGRST]' 5720 fi 5721 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5722 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'" 5723 ;; 5724irix* | nonstopux*) 5725 symcode='[BCDEGRST]' 5726 ;; 5727osf*) 5728 symcode='[BCDEGQRST]' 5729 ;; 5730solaris* | sysv5*) 5731 symcode='[BDRT]' 5732 ;; 5733sysv4) 5734 symcode='[DFNSTU]' 5735 ;; 5736esac 5737 5738# Handle CRLF in mingw tool chain 5739opt_cr= 5740case $build_os in 5741mingw*) 5742 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5743 ;; 5744esac 5745 5746# If we're using GNU nm, then use its standard symbol codes. 5747case `$NM -V 2>&1` in 5748*GNU* | *'with BFD'*) 5749 symcode='[ABCDGIRSTW]' ;; 5750esac 5751 5752# Try without a prefix undercore, then with it. 5753for ac_symprfx in "" "_"; do 5754 5755 # Write the raw and C identifiers. 5756 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5757 5758 # Check to see that the pipe works correctly. 5759 pipe_works=no 5760 5761 rm -f conftest* 5762 cat > conftest.$ac_ext <<EOF 5763#ifdef __cplusplus 5764extern "C" { 5765#endif 5766char nm_test_var; 5767void nm_test_func(){} 5768#ifdef __cplusplus 5769} 5770#endif 5771int main(){nm_test_var='a';nm_test_func();return(0);} 5772EOF 5773 5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5775 (eval $ac_compile) 2>&5 5776 ac_status=$? 5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5778 (exit $ac_status); }; then 5779 # Now try to grab the symbols. 5780 nlist=conftest.nm 5781 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5782 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5783 ac_status=$? 5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5785 (exit $ac_status); } && test -s "$nlist"; then 5786 # Try sorting and uniquifying the output. 5787 if sort "$nlist" | uniq > "$nlist"T; then 5788 mv -f "$nlist"T "$nlist" 5789 else 5790 rm -f "$nlist"T 5791 fi 5792 5793 # Make sure that we snagged all the symbols we need. 5794 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5795 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5796 cat <<EOF > conftest.$ac_ext 5797#ifdef __cplusplus 5798extern "C" { 5799#endif 5800 5801EOF 5802 # Now generate the symbol file. 5803 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5804 5805 cat <<EOF >> conftest.$ac_ext 5806#if defined (__STDC__) && __STDC__ 5807# define lt_ptr_t void * 5808#else 5809# define lt_ptr_t char * 5810# define const 5811#endif 5812 5813/* The mapping between symbol names and symbols. */ 5814const struct { 5815 const char *name; 5816 lt_ptr_t address; 5817} 5818lt_preloaded_symbols[] = 5819{ 5820EOF 5821 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5822 cat <<\EOF >> conftest.$ac_ext 5823 {0, (lt_ptr_t) 0} 5824}; 5825 5826#ifdef __cplusplus 5827} 5828#endif 5829EOF 5830 # Now try linking the two files. 5831 mv conftest.$ac_objext conftstm.$ac_objext 5832 lt_save_LIBS="$LIBS" 5833 lt_save_CFLAGS="$CFLAGS" 5834 LIBS="conftstm.$ac_objext" 5835 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5837 (eval $ac_link) 2>&5 5838 ac_status=$? 5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5840 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5841 pipe_works=yes 5842 fi 5843 LIBS="$lt_save_LIBS" 5844 CFLAGS="$lt_save_CFLAGS" 5845 else 5846 echo "cannot find nm_test_func in $nlist" >&5 5847 fi 5848 else 5849 echo "cannot find nm_test_var in $nlist" >&5 5850 fi 5851 else 5852 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5853 fi 5854 else 5855 echo "$progname: failed program was:" >&5 5856 cat conftest.$ac_ext >&5 5857 fi 5858 rm -f conftest* conftst* 5859 5860 # Do not use the global_symbol_pipe unless it works. 5861 if test "$pipe_works" = yes; then 5862 break 5863 else 5864 lt_cv_sys_global_symbol_pipe= 5865 fi 5866done 5867 5868fi 5869 5870if test -z "$lt_cv_sys_global_symbol_pipe"; then 5871 lt_cv_sys_global_symbol_to_cdecl= 5872fi 5873if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5874 echo "$as_me:$LINENO: result: failed" >&5 5875echo "${ECHO_T}failed" >&6 5876else 5877 echo "$as_me:$LINENO: result: ok" >&5 5878echo "${ECHO_T}ok" >&6 5879fi 5880 5881echo "$as_me:$LINENO: checking for objdir" >&5 5882echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5883if test "${lt_cv_objdir+set}" = set; then 5884 echo $ECHO_N "(cached) $ECHO_C" >&6 5885else 5886 rm -f .libs 2>/dev/null 5887mkdir .libs 2>/dev/null 5888if test -d .libs; then 5889 lt_cv_objdir=.libs 5890else 5891 # MS-DOS does not allow filenames that begin with a dot. 5892 lt_cv_objdir=_libs 5893fi 5894rmdir .libs 2>/dev/null 5895fi 5896echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5897echo "${ECHO_T}$lt_cv_objdir" >&6 5898objdir=$lt_cv_objdir 5899 5900 5901 5902 5903 5904case $host_os in 5905aix3*) 5906 # AIX sometimes has problems with the GCC collect2 program. For some 5907 # reason, if we set the COLLECT_NAMES environment variable, the problems 5908 # vanish in a puff of smoke. 5909 if test "X${COLLECT_NAMES+set}" != Xset; then 5910 COLLECT_NAMES= 5911 export COLLECT_NAMES 5912 fi 5913 ;; 5914esac 5915 5916# Sed substitution that helps us do robust quoting. It backslashifies 5917# metacharacters that are still active within double-quoted strings. 5918Xsed='sed -e s/^X//' 5919sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5920 5921# Same as above, but do not quote variable references. 5922double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5923 5924# Sed substitution to delay expansion of an escaped shell variable in a 5925# double_quote_subst'ed string. 5926delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5927 5928# Sed substitution to avoid accidental globbing in evaled expressions 5929no_glob_subst='s/\*/\\\*/g' 5930 5931# Constants: 5932rm="rm -f" 5933 5934# Global variables: 5935default_ofile=libtool 5936can_build_shared=yes 5937 5938# All known linkers require a `.a' archive for static linking (except M$VC, 5939# which needs '.lib'). 5940libext=a 5941ltmain="$ac_aux_dir/ltmain.sh" 5942ofile="$default_ofile" 5943with_gnu_ld="$lt_cv_prog_gnu_ld" 5944 5945if test -n "$ac_tool_prefix"; then 5946 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5947set dummy ${ac_tool_prefix}ar; ac_word=$2 5948echo "$as_me:$LINENO: checking for $ac_word" >&5 5949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5950if test "${ac_cv_prog_AR+set}" = set; then 5951 echo $ECHO_N "(cached) $ECHO_C" >&6 5952else 5953 if test -n "$AR"; then 5954 ac_cv_prog_AR="$AR" # Let the user override the test. 5955else 5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5957for as_dir in $PATH 5958do 5959 IFS=$as_save_IFS 5960 test -z "$as_dir" && as_dir=. 5961 for ac_exec_ext in '' $ac_executable_extensions; do 5962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5963 ac_cv_prog_AR="${ac_tool_prefix}ar" 5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5965 break 2 5966 fi 5967done 5968done 5969 5970fi 5971fi 5972AR=$ac_cv_prog_AR 5973if test -n "$AR"; then 5974 echo "$as_me:$LINENO: result: $AR" >&5 5975echo "${ECHO_T}$AR" >&6 5976else 5977 echo "$as_me:$LINENO: result: no" >&5 5978echo "${ECHO_T}no" >&6 5979fi 5980 5981fi 5982if test -z "$ac_cv_prog_AR"; then 5983 ac_ct_AR=$AR 5984 # Extract the first word of "ar", so it can be a program name with args. 5985set dummy ar; ac_word=$2 5986echo "$as_me:$LINENO: checking for $ac_word" >&5 5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5988if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5989 echo $ECHO_N "(cached) $ECHO_C" >&6 5990else 5991 if test -n "$ac_ct_AR"; then 5992 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5993else 5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995for as_dir in $PATH 5996do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_exec_ext in '' $ac_executable_extensions; do 6000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6001 ac_cv_prog_ac_ct_AR="ar" 6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6003 break 2 6004 fi 6005done 6006done 6007 6008 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6009fi 6010fi 6011ac_ct_AR=$ac_cv_prog_ac_ct_AR 6012if test -n "$ac_ct_AR"; then 6013 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6014echo "${ECHO_T}$ac_ct_AR" >&6 6015else 6016 echo "$as_me:$LINENO: result: no" >&5 6017echo "${ECHO_T}no" >&6 6018fi 6019 6020 AR=$ac_ct_AR 6021else 6022 AR="$ac_cv_prog_AR" 6023fi 6024 6025if test -n "$ac_tool_prefix"; then 6026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6027set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6028echo "$as_me:$LINENO: checking for $ac_word" >&5 6029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6030if test "${ac_cv_prog_RANLIB+set}" = set; then 6031 echo $ECHO_N "(cached) $ECHO_C" >&6 6032else 6033 if test -n "$RANLIB"; then 6034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6035else 6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6037for as_dir in $PATH 6038do 6039 IFS=$as_save_IFS 6040 test -z "$as_dir" && as_dir=. 6041 for ac_exec_ext in '' $ac_executable_extensions; do 6042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6045 break 2 6046 fi 6047done 6048done 6049 6050fi 6051fi 6052RANLIB=$ac_cv_prog_RANLIB 6053if test -n "$RANLIB"; then 6054 echo "$as_me:$LINENO: result: $RANLIB" >&5 6055echo "${ECHO_T}$RANLIB" >&6 6056else 6057 echo "$as_me:$LINENO: result: no" >&5 6058echo "${ECHO_T}no" >&6 6059fi 6060 6061fi 6062if test -z "$ac_cv_prog_RANLIB"; then 6063 ac_ct_RANLIB=$RANLIB 6064 # Extract the first word of "ranlib", so it can be a program name with args. 6065set dummy ranlib; ac_word=$2 6066echo "$as_me:$LINENO: checking for $ac_word" >&5 6067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6068if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6069 echo $ECHO_N "(cached) $ECHO_C" >&6 6070else 6071 if test -n "$ac_ct_RANLIB"; then 6072 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6073else 6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6075for as_dir in $PATH 6076do 6077 IFS=$as_save_IFS 6078 test -z "$as_dir" && as_dir=. 6079 for ac_exec_ext in '' $ac_executable_extensions; do 6080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6081 ac_cv_prog_ac_ct_RANLIB="ranlib" 6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6083 break 2 6084 fi 6085done 6086done 6087 6088 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6089fi 6090fi 6091ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6092if test -n "$ac_ct_RANLIB"; then 6093 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6094echo "${ECHO_T}$ac_ct_RANLIB" >&6 6095else 6096 echo "$as_me:$LINENO: result: no" >&5 6097echo "${ECHO_T}no" >&6 6098fi 6099 6100 RANLIB=$ac_ct_RANLIB 6101else 6102 RANLIB="$ac_cv_prog_RANLIB" 6103fi 6104 6105if test -n "$ac_tool_prefix"; then 6106 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6107set dummy ${ac_tool_prefix}strip; ac_word=$2 6108echo "$as_me:$LINENO: checking for $ac_word" >&5 6109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6110if test "${ac_cv_prog_STRIP+set}" = set; then 6111 echo $ECHO_N "(cached) $ECHO_C" >&6 6112else 6113 if test -n "$STRIP"; then 6114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6115else 6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6117for as_dir in $PATH 6118do 6119 IFS=$as_save_IFS 6120 test -z "$as_dir" && as_dir=. 6121 for ac_exec_ext in '' $ac_executable_extensions; do 6122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6123 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6125 break 2 6126 fi 6127done 6128done 6129 6130fi 6131fi 6132STRIP=$ac_cv_prog_STRIP 6133if test -n "$STRIP"; then 6134 echo "$as_me:$LINENO: result: $STRIP" >&5 6135echo "${ECHO_T}$STRIP" >&6 6136else 6137 echo "$as_me:$LINENO: result: no" >&5 6138echo "${ECHO_T}no" >&6 6139fi 6140 6141fi 6142if test -z "$ac_cv_prog_STRIP"; then 6143 ac_ct_STRIP=$STRIP 6144 # Extract the first word of "strip", so it can be a program name with args. 6145set dummy strip; ac_word=$2 6146echo "$as_me:$LINENO: checking for $ac_word" >&5 6147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6148if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6149 echo $ECHO_N "(cached) $ECHO_C" >&6 6150else 6151 if test -n "$ac_ct_STRIP"; then 6152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6153else 6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6155for as_dir in $PATH 6156do 6157 IFS=$as_save_IFS 6158 test -z "$as_dir" && as_dir=. 6159 for ac_exec_ext in '' $ac_executable_extensions; do 6160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6161 ac_cv_prog_ac_ct_STRIP="strip" 6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6163 break 2 6164 fi 6165done 6166done 6167 6168 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6169fi 6170fi 6171ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6172if test -n "$ac_ct_STRIP"; then 6173 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6174echo "${ECHO_T}$ac_ct_STRIP" >&6 6175else 6176 echo "$as_me:$LINENO: result: no" >&5 6177echo "${ECHO_T}no" >&6 6178fi 6179 6180 STRIP=$ac_ct_STRIP 6181else 6182 STRIP="$ac_cv_prog_STRIP" 6183fi 6184 6185 6186old_CC="$CC" 6187old_CFLAGS="$CFLAGS" 6188 6189# Set sane defaults for various variables 6190test -z "$AR" && AR=ar 6191test -z "$AR_FLAGS" && AR_FLAGS=cru 6192test -z "$AS" && AS=as 6193test -z "$CC" && CC=cc 6194test -z "$LTCC" && LTCC=$CC 6195test -z "$DLLTOOL" && DLLTOOL=dlltool 6196test -z "$LD" && LD=ld 6197test -z "$LN_S" && LN_S="ln -s" 6198test -z "$MAGIC_CMD" && MAGIC_CMD=file 6199test -z "$NM" && NM=nm 6200test -z "$SED" && SED=sed 6201test -z "$OBJDUMP" && OBJDUMP=objdump 6202test -z "$RANLIB" && RANLIB=: 6203test -z "$STRIP" && STRIP=: 6204test -z "$ac_objext" && ac_objext=o 6205 6206# Determine commands to create old-style static archives. 6207old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6208old_postinstall_cmds='chmod 644 $oldlib' 6209old_postuninstall_cmds= 6210 6211if test -n "$RANLIB"; then 6212 case $host_os in 6213 openbsd*) 6214 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6215 ;; 6216 *) 6217 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6218 ;; 6219 esac 6220 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6221fi 6222 6223# Only perform the check for file, if the check method requires it 6224case $deplibs_check_method in 6225file_magic*) 6226 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6227 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6228echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6229if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6230 echo $ECHO_N "(cached) $ECHO_C" >&6 6231else 6232 case $MAGIC_CMD in 6233[\\/*] | ?:[\\/]*) 6234 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6235 ;; 6236*) 6237 lt_save_MAGIC_CMD="$MAGIC_CMD" 6238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6239 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6240 for ac_dir in $ac_dummy; do 6241 IFS="$lt_save_ifs" 6242 test -z "$ac_dir" && ac_dir=. 6243 if test -f $ac_dir/${ac_tool_prefix}file; then 6244 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6245 if test -n "$file_magic_test_file"; then 6246 case $deplibs_check_method in 6247 "file_magic "*) 6248 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6250 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6251 $EGREP "$file_magic_regex" > /dev/null; then 6252 : 6253 else 6254 cat <<EOF 1>&2 6255 6256*** Warning: the command libtool uses to detect shared libraries, 6257*** $file_magic_cmd, produces output that libtool cannot recognize. 6258*** The result is that libtool may fail to recognize shared libraries 6259*** as such. This will affect the creation of libtool libraries that 6260*** depend on shared libraries, but programs linked with such libtool 6261*** libraries will work regardless of this problem. Nevertheless, you 6262*** may want to report the problem to your system manager and/or to 6263*** bug-libtool@gnu.org 6264 6265EOF 6266 fi ;; 6267 esac 6268 fi 6269 break 6270 fi 6271 done 6272 IFS="$lt_save_ifs" 6273 MAGIC_CMD="$lt_save_MAGIC_CMD" 6274 ;; 6275esac 6276fi 6277 6278MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6279if test -n "$MAGIC_CMD"; then 6280 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6281echo "${ECHO_T}$MAGIC_CMD" >&6 6282else 6283 echo "$as_me:$LINENO: result: no" >&5 6284echo "${ECHO_T}no" >&6 6285fi 6286 6287if test -z "$lt_cv_path_MAGIC_CMD"; then 6288 if test -n "$ac_tool_prefix"; then 6289 echo "$as_me:$LINENO: checking for file" >&5 6290echo $ECHO_N "checking for file... $ECHO_C" >&6 6291if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6292 echo $ECHO_N "(cached) $ECHO_C" >&6 6293else 6294 case $MAGIC_CMD in 6295[\\/*] | ?:[\\/]*) 6296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6297 ;; 6298*) 6299 lt_save_MAGIC_CMD="$MAGIC_CMD" 6300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6302 for ac_dir in $ac_dummy; do 6303 IFS="$lt_save_ifs" 6304 test -z "$ac_dir" && ac_dir=. 6305 if test -f $ac_dir/file; then 6306 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6307 if test -n "$file_magic_test_file"; then 6308 case $deplibs_check_method in 6309 "file_magic "*) 6310 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6313 $EGREP "$file_magic_regex" > /dev/null; then 6314 : 6315 else 6316 cat <<EOF 1>&2 6317 6318*** Warning: the command libtool uses to detect shared libraries, 6319*** $file_magic_cmd, produces output that libtool cannot recognize. 6320*** The result is that libtool may fail to recognize shared libraries 6321*** as such. This will affect the creation of libtool libraries that 6322*** depend on shared libraries, but programs linked with such libtool 6323*** libraries will work regardless of this problem. Nevertheless, you 6324*** may want to report the problem to your system manager and/or to 6325*** bug-libtool@gnu.org 6326 6327EOF 6328 fi ;; 6329 esac 6330 fi 6331 break 6332 fi 6333 done 6334 IFS="$lt_save_ifs" 6335 MAGIC_CMD="$lt_save_MAGIC_CMD" 6336 ;; 6337esac 6338fi 6339 6340MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6341if test -n "$MAGIC_CMD"; then 6342 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6343echo "${ECHO_T}$MAGIC_CMD" >&6 6344else 6345 echo "$as_me:$LINENO: result: no" >&5 6346echo "${ECHO_T}no" >&6 6347fi 6348 6349 else 6350 MAGIC_CMD=: 6351 fi 6352fi 6353 6354 fi 6355 ;; 6356esac 6357 6358enable_dlopen=no 6359enable_win32_dll=yes 6360 6361# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6362if test "${enable_libtool_lock+set}" = set; then 6363 enableval="$enable_libtool_lock" 6364 6365fi; 6366test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6367 6368 6369# Check whether --with-pic or --without-pic was given. 6370if test "${with_pic+set}" = set; then 6371 withval="$with_pic" 6372 pic_mode="$withval" 6373else 6374 pic_mode=default 6375fi; 6376test -z "$pic_mode" && pic_mode=default 6377 6378# Use C for the default configuration in the libtool script 6379tagname= 6380lt_save_CC="$CC" 6381ac_ext=c 6382ac_cpp='$CPP $CPPFLAGS' 6383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6385ac_compiler_gnu=$ac_cv_c_compiler_gnu 6386 6387 6388# Source file extension for C test sources. 6389ac_ext=c 6390 6391# Object file extension for compiled C test sources. 6392objext=o 6393objext=$objext 6394 6395# Code to be used in simple compile tests 6396lt_simple_compile_test_code="int some_variable = 0;\n" 6397 6398# Code to be used in simple link tests 6399lt_simple_link_test_code='int main(){return(0);}\n' 6400 6401 6402# If no C compiler was specified, use CC. 6403LTCC=${LTCC-"$CC"} 6404 6405# Allow CC to be a program name with arguments. 6406compiler=$CC 6407 6408 6409# 6410# Check for any special shared library compilation flags. 6411# 6412lt_prog_cc_shlib= 6413if test "$GCC" = no; then 6414 case $host_os in 6415 sco3.2v5*) 6416 lt_prog_cc_shlib='-belf' 6417 ;; 6418 esac 6419fi 6420if test -n "$lt_prog_cc_shlib"; then 6421 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6422echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6423 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6424 else 6425 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6426echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6427 lt_cv_prog_cc_can_build_shared=no 6428 fi 6429fi 6430 6431 6432# 6433# Check to make sure the static flag actually works. 6434# 6435echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6436echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6437if test "${lt_prog_compiler_static_works+set}" = set; then 6438 echo $ECHO_N "(cached) $ECHO_C" >&6 6439else 6440 lt_prog_compiler_static_works=no 6441 save_LDFLAGS="$LDFLAGS" 6442 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6443 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6445 # The compiler can only warn and ignore the option if not recognized 6446 # So say no if there are warnings 6447 if test -s conftest.err; then 6448 # Append any errors to the config.log. 6449 cat conftest.err 1>&5 6450 else 6451 lt_prog_compiler_static_works=yes 6452 fi 6453 fi 6454 $rm conftest* 6455 LDFLAGS="$save_LDFLAGS" 6456 6457fi 6458echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6459echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6460 6461if test x"$lt_prog_compiler_static_works" = xyes; then 6462 : 6463else 6464 lt_prog_compiler_static= 6465fi 6466 6467 6468 6469 6470lt_prog_compiler_no_builtin_flag= 6471 6472if test "$GCC" = yes; then 6473 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6474 6475 6476echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6477echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6478if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6479 echo $ECHO_N "(cached) $ECHO_C" >&6 6480else 6481 lt_cv_prog_compiler_rtti_exceptions=no 6482 ac_outfile=conftest.$ac_objext 6483 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6484 lt_compiler_flag="-fno-rtti -fno-exceptions" 6485 # Insert the option either (1) after the last *FLAGS variable, or 6486 # (2) before a word containing "conftest.", or (3) at the end. 6487 # Note that $ac_compile itself does not contain backslashes and begins 6488 # with a dollar sign (not a hyphen), so the echo should work correctly. 6489 # The option is referenced via a variable to avoid confusing sed. 6490 lt_compile=`echo "$ac_compile" | $SED \ 6491 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6493 -e 's:$: $lt_compiler_flag:'` 6494 (eval echo "\"\$as_me:6494: $lt_compile\"" >&5) 6495 (eval "$lt_compile" 2>conftest.err) 6496 ac_status=$? 6497 cat conftest.err >&5 6498 echo "$as_me:6498: \$? = $ac_status" >&5 6499 if (exit $ac_status) && test -s "$ac_outfile"; then 6500 # The compiler can only warn and ignore the option if not recognized 6501 # So say no if there are warnings 6502 if test ! -s conftest.err; then 6503 lt_cv_prog_compiler_rtti_exceptions=yes 6504 fi 6505 fi 6506 $rm conftest* 6507 6508fi 6509echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6510echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6511 6512if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6513 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6514else 6515 : 6516fi 6517 6518fi 6519 6520lt_prog_compiler_wl= 6521lt_prog_compiler_pic= 6522lt_prog_compiler_static= 6523 6524echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6525echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6526 6527 if test "$GCC" = yes; then 6528 lt_prog_compiler_wl='-Wl,' 6529 lt_prog_compiler_static='-static' 6530 6531 case $host_os in 6532 aix*) 6533 # All AIX code is PIC. 6534 if test "$host_cpu" = ia64; then 6535 # AIX 5 now supports IA64 processor 6536 lt_prog_compiler_static='-Bstatic' 6537 fi 6538 ;; 6539 6540 amigaos*) 6541 # FIXME: we need at least 68020 code to build shared libraries, but 6542 # adding the `-m68020' flag to GCC prevents building anything better, 6543 # like `-m68040'. 6544 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6545 ;; 6546 6547 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6548 # PIC is the default for these OSes. 6549 ;; 6550 6551 mingw* | pw32* | os2*) 6552 # This hack is so that the source file can tell whether it is being 6553 # built for inclusion in a dll (and should export symbols for example). 6554 lt_prog_compiler_pic='-DDLL_EXPORT' 6555 ;; 6556 6557 darwin* | rhapsody*) 6558 # PIC is the default on this platform 6559 # Common symbols not allowed in MH_DYLIB files 6560 lt_prog_compiler_pic='-fno-common' 6561 ;; 6562 6563 msdosdjgpp*) 6564 # Just because we use GCC doesn't mean we suddenly get shared libraries 6565 # on systems that don't support them. 6566 lt_prog_compiler_can_build_shared=no 6567 enable_shared=no 6568 ;; 6569 6570 sysv4*MP*) 6571 if test -d /usr/nec; then 6572 lt_prog_compiler_pic=-Kconform_pic 6573 fi 6574 ;; 6575 6576 hpux*) 6577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6578 # not for PA HP-UX. 6579 case "$host_cpu" in 6580 hppa*64*|ia64*) 6581 # +Z the default 6582 ;; 6583 *) 6584 lt_prog_compiler_pic='-fPIC' 6585 ;; 6586 esac 6587 ;; 6588 6589 *) 6590 lt_prog_compiler_pic='-fPIC' 6591 ;; 6592 esac 6593 else 6594 # PORTME Check for flag to pass linker flags through the system compiler. 6595 case $host_os in 6596 aix*) 6597 lt_prog_compiler_wl='-Wl,' 6598 if test "$host_cpu" = ia64; then 6599 # AIX 5 now supports IA64 processor 6600 lt_prog_compiler_static='-Bstatic' 6601 else 6602 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6603 fi 6604 ;; 6605 6606 mingw* | pw32* | os2*) 6607 # This hack is so that the source file can tell whether it is being 6608 # built for inclusion in a dll (and should export symbols for example). 6609 lt_prog_compiler_pic='-DDLL_EXPORT' 6610 ;; 6611 6612 hpux9* | hpux10* | hpux11*) 6613 lt_prog_compiler_wl='-Wl,' 6614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6615 # not for PA HP-UX. 6616 case "$host_cpu" in 6617 hppa*64*|ia64*) 6618 # +Z the default 6619 ;; 6620 *) 6621 lt_prog_compiler_pic='+Z' 6622 ;; 6623 esac 6624 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6625 lt_prog_compiler_static='${wl}-a ${wl}archive' 6626 ;; 6627 6628 irix5* | irix6* | nonstopux*) 6629 lt_prog_compiler_wl='-Wl,' 6630 # PIC (with -KPIC) is the default. 6631 lt_prog_compiler_static='-non_shared' 6632 ;; 6633 6634 newsos6) 6635 lt_prog_compiler_pic='-KPIC' 6636 lt_prog_compiler_static='-Bstatic' 6637 ;; 6638 6639 linux*) 6640 case $CC in 6641 icc* | ecc*) 6642 lt_prog_compiler_wl='-Wl,' 6643 lt_prog_compiler_pic='-KPIC' 6644 lt_prog_compiler_static='-static' 6645 ;; 6646 ccc*) 6647 lt_prog_compiler_wl='-Wl,' 6648 # All Alpha code is PIC. 6649 lt_prog_compiler_static='-non_shared' 6650 ;; 6651 esac 6652 ;; 6653 6654 osf3* | osf4* | osf5*) 6655 lt_prog_compiler_wl='-Wl,' 6656 # All OSF/1 code is PIC. 6657 lt_prog_compiler_static='-non_shared' 6658 ;; 6659 6660 sco3.2v5*) 6661 lt_prog_compiler_pic='-Kpic' 6662 lt_prog_compiler_static='-dn' 6663 ;; 6664 6665 solaris*) 6666 lt_prog_compiler_wl='-Wl,' 6667 lt_prog_compiler_pic='-KPIC' 6668 lt_prog_compiler_static='-Bstatic' 6669 ;; 6670 6671 sunos4*) 6672 lt_prog_compiler_wl='-Qoption ld ' 6673 lt_prog_compiler_pic='-PIC' 6674 lt_prog_compiler_static='-Bstatic' 6675 ;; 6676 6677 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6678 lt_prog_compiler_wl='-Wl,' 6679 lt_prog_compiler_pic='-KPIC' 6680 lt_prog_compiler_static='-Bstatic' 6681 ;; 6682 6683 sysv4*MP*) 6684 if test -d /usr/nec ;then 6685 lt_prog_compiler_pic='-Kconform_pic' 6686 lt_prog_compiler_static='-Bstatic' 6687 fi 6688 ;; 6689 6690 uts4*) 6691 lt_prog_compiler_pic='-pic' 6692 lt_prog_compiler_static='-Bstatic' 6693 ;; 6694 6695 *) 6696 lt_prog_compiler_can_build_shared=no 6697 ;; 6698 esac 6699 fi 6700 6701echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6702echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6703 6704# 6705# Check to make sure the PIC flag actually works. 6706# 6707if test -n "$lt_prog_compiler_pic"; then 6708 6709echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6710echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6711if test "${lt_prog_compiler_pic_works+set}" = set; then 6712 echo $ECHO_N "(cached) $ECHO_C" >&6 6713else 6714 lt_prog_compiler_pic_works=no 6715 ac_outfile=conftest.$ac_objext 6716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6718 # Insert the option either (1) after the last *FLAGS variable, or 6719 # (2) before a word containing "conftest.", or (3) at the end. 6720 # Note that $ac_compile itself does not contain backslashes and begins 6721 # with a dollar sign (not a hyphen), so the echo should work correctly. 6722 # The option is referenced via a variable to avoid confusing sed. 6723 lt_compile=`echo "$ac_compile" | $SED \ 6724 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6726 -e 's:$: $lt_compiler_flag:'` 6727 (eval echo "\"\$as_me:6727: $lt_compile\"" >&5) 6728 (eval "$lt_compile" 2>conftest.err) 6729 ac_status=$? 6730 cat conftest.err >&5 6731 echo "$as_me:6731: \$? = $ac_status" >&5 6732 if (exit $ac_status) && test -s "$ac_outfile"; then 6733 # The compiler can only warn and ignore the option if not recognized 6734 # So say no if there are warnings 6735 if test ! -s conftest.err; then 6736 lt_prog_compiler_pic_works=yes 6737 fi 6738 fi 6739 $rm conftest* 6740 6741fi 6742echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6743echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6744 6745if test x"$lt_prog_compiler_pic_works" = xyes; then 6746 case $lt_prog_compiler_pic in 6747 "" | " "*) ;; 6748 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6749 esac 6750else 6751 lt_prog_compiler_pic= 6752 lt_prog_compiler_can_build_shared=no 6753fi 6754 6755fi 6756case "$host_os" in 6757 # For platforms which do not support PIC, -DPIC is meaningless: 6758 *djgpp*) 6759 lt_prog_compiler_pic= 6760 ;; 6761 *) 6762 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6763 ;; 6764esac 6765 6766echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6767echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6768if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6769 echo $ECHO_N "(cached) $ECHO_C" >&6 6770else 6771 lt_cv_prog_compiler_c_o=no 6772 $rm -r conftest 2>/dev/null 6773 mkdir conftest 6774 cd conftest 6775 mkdir out 6776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6777 6778 lt_compiler_flag="-o out/conftest2.$ac_objext" 6779 # Insert the option either (1) after the last *FLAGS variable, or 6780 # (2) before a word containing "conftest.", or (3) at the end. 6781 # Note that $ac_compile itself does not contain backslashes and begins 6782 # with a dollar sign (not a hyphen), so the echo should work correctly. 6783 lt_compile=`echo "$ac_compile" | $SED \ 6784 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6786 -e 's:$: $lt_compiler_flag:'` 6787 (eval echo "\"\$as_me:6787: $lt_compile\"" >&5) 6788 (eval "$lt_compile" 2>out/conftest.err) 6789 ac_status=$? 6790 cat out/conftest.err >&5 6791 echo "$as_me:6791: \$? = $ac_status" >&5 6792 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6793 then 6794 # The compiler can only warn and ignore the option if not recognized 6795 # So say no if there are warnings 6796 if test ! -s out/conftest.err; then 6797 lt_cv_prog_compiler_c_o=yes 6798 fi 6799 fi 6800 chmod u+w . 6801 $rm conftest* 6802 # SGI C++ compiler will create directory out/ii_files/ for 6803 # template instantiation 6804 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6805 $rm out/* && rmdir out 6806 cd .. 6807 rmdir conftest 6808 $rm conftest* 6809 6810fi 6811echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6812echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6813 6814 6815hard_links="nottested" 6816if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6817 # do not overwrite the value of need_locks provided by the user 6818 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6819echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6820 hard_links=yes 6821 $rm conftest* 6822 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6823 touch conftest.a 6824 ln conftest.a conftest.b 2>&5 || hard_links=no 6825 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6826 echo "$as_me:$LINENO: result: $hard_links" >&5 6827echo "${ECHO_T}$hard_links" >&6 6828 if test "$hard_links" = no; then 6829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6830echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6831 need_locks=warn 6832 fi 6833else 6834 need_locks=no 6835fi 6836 6837echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6838echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6839 6840 runpath_var= 6841 allow_undefined_flag= 6842 enable_shared_with_static_runtimes=no 6843 archive_cmds= 6844 archive_expsym_cmds= 6845 old_archive_From_new_cmds= 6846 old_archive_from_expsyms_cmds= 6847 export_dynamic_flag_spec= 6848 whole_archive_flag_spec= 6849 thread_safe_flag_spec= 6850 hardcode_libdir_flag_spec= 6851 hardcode_libdir_flag_spec_ld= 6852 hardcode_libdir_separator= 6853 hardcode_direct=no 6854 hardcode_minus_L=no 6855 hardcode_shlibpath_var=unsupported 6856 link_all_deplibs=unknown 6857 hardcode_automatic=no 6858 module_cmds= 6859 module_expsym_cmds= 6860 always_export_symbols=no 6861 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6862 # include_expsyms should be a list of space-separated symbols to be *always* 6863 # included in the symbol list 6864 include_expsyms= 6865 # exclude_expsyms can be an extended regexp of symbols to exclude 6866 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6868 # as well as any symbol that contains `d'. 6869 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6871 # platforms (ab)use it in PIC code, but their linkers get confused if 6872 # the symbol is explicitly referenced. Since portable code cannot 6873 # rely on this symbol name, it's probably fine to never include it in 6874 # preloaded symbol tables. 6875 extract_expsyms_cmds= 6876 6877 case $host_os in 6878 cygwin* | mingw* | pw32*) 6879 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6880 # When not using gcc, we currently assume that we are using 6881 # Microsoft Visual C++. 6882 if test "$GCC" != yes; then 6883 with_gnu_ld=no 6884 fi 6885 ;; 6886 openbsd*) 6887 with_gnu_ld=no 6888 ;; 6889 esac 6890 6891 ld_shlibs=yes 6892 if test "$with_gnu_ld" = yes; then 6893 # If archive_cmds runs LD, not CC, wlarc should be empty 6894 wlarc='${wl}' 6895 6896 # See if GNU ld supports shared libraries. 6897 case $host_os in 6898 aix3* | aix4* | aix5*) 6899 # On AIX/PPC, the GNU linker is very broken 6900 if test "$host_cpu" != ia64; then 6901 ld_shlibs=no 6902 cat <<EOF 1>&2 6903 6904*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6905*** to be unable to reliably create shared libraries on AIX. 6906*** Therefore, libtool is disabling shared libraries support. If you 6907*** really care for shared libraries, you may want to modify your PATH 6908*** so that a non-GNU linker is found, and then restart. 6909 6910EOF 6911 fi 6912 ;; 6913 6914 amigaos*) 6915 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)' 6916 hardcode_libdir_flag_spec='-L$libdir' 6917 hardcode_minus_L=yes 6918 6919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6920 # that the semantics of dynamic libraries on AmigaOS, at least up 6921 # to version 4, is to share data among multiple programs linked 6922 # with the same dynamic library. Since this doesn't match the 6923 # behavior of shared libraries on other platforms, we can't use 6924 # them. 6925 ld_shlibs=no 6926 ;; 6927 6928 beos*) 6929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6930 allow_undefined_flag=unsupported 6931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6932 # support --undefined. This deserves some investigation. FIXME 6933 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6934 else 6935 ld_shlibs=no 6936 fi 6937 ;; 6938 6939 cygwin* | mingw* | pw32*) 6940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6941 # as there is no search path for DLLs. 6942 hardcode_libdir_flag_spec='-L$libdir' 6943 allow_undefined_flag=unsupported 6944 always_export_symbols=no 6945 enable_shared_with_static_runtimes=yes 6946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6947 6948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6950 # If the export-symbols file already is a .def file (1st line 6951 # is EXPORTS), use it as is; otherwise, prepend... 6952 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6953 cp $export_symbols $output_objdir/$soname.def; 6954 else 6955 echo EXPORTS > $output_objdir/$soname.def; 6956 cat $export_symbols >> $output_objdir/$soname.def; 6957 fi~ 6958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6959 else 6960 ld_shlibs=no 6961 fi 6962 ;; 6963 6964 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6966 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6967 wlarc= 6968 else 6969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6971 fi 6972 ;; 6973 6974 solaris* | sysv5*) 6975 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6976 ld_shlibs=no 6977 cat <<EOF 1>&2 6978 6979*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6980*** create shared libraries on Solaris systems. Therefore, libtool 6981*** is disabling shared libraries support. We urge you to upgrade GNU 6982*** binutils to release 2.9.1 or newer. Another option is to modify 6983*** your PATH or compiler configuration so that the native linker is 6984*** used, and then restart. 6985 6986EOF 6987 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6990 else 6991 ld_shlibs=no 6992 fi 6993 ;; 6994 6995 sunos4*) 6996 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6997 wlarc= 6998 hardcode_direct=yes 6999 hardcode_shlibpath_var=no 7000 ;; 7001 7002 linux*) 7003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7004 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7005 archive_cmds="$tmp_archive_cmds" 7006 supports_anon_versioning=no 7007 case `$LD -v 2>/dev/null` in 7008 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7009 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7010 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7011 *\ 2.11.*) ;; # other 2.11 versions 7012 *) supports_anon_versioning=yes ;; 7013 esac 7014 if test $supports_anon_versioning = yes; then 7015 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7016cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7017$echo "local: *; };" >> $output_objdir/$libname.ver~ 7018 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7019 else 7020 archive_expsym_cmds="$tmp_archive_cmds" 7021 fi 7022 link_all_deplibs=no 7023 else 7024 ld_shlibs=no 7025 fi 7026 ;; 7027 7028 *) 7029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7032 else 7033 ld_shlibs=no 7034 fi 7035 ;; 7036 esac 7037 7038 if test "$ld_shlibs" = yes; then 7039 runpath_var=LD_RUN_PATH 7040 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7041 export_dynamic_flag_spec='${wl}--export-dynamic' 7042 # ancient GNU ld didn't support --whole-archive et. al. 7043 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7044 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7045 else 7046 whole_archive_flag_spec= 7047 fi 7048 fi 7049 else 7050 # PORTME fill in a description of your system's linker (not GNU ld) 7051 case $host_os in 7052 aix3*) 7053 allow_undefined_flag=unsupported 7054 always_export_symbols=yes 7055 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' 7056 # Note: this linker hardcodes the directories in LIBPATH if there 7057 # are no directories specified by -L. 7058 hardcode_minus_L=yes 7059 if test "$GCC" = yes && test -z "$link_static_flag"; then 7060 # Neither direct hardcoding nor static linking is supported with a 7061 # broken collect2. 7062 hardcode_direct=unsupported 7063 fi 7064 ;; 7065 7066 aix4* | aix5*) 7067 if test "$host_cpu" = ia64; then 7068 # On IA64, the linker does run time linking by default, so we don't 7069 # have to do anything special. 7070 aix_use_runtimelinking=no 7071 exp_sym_flag='-Bexport' 7072 no_entry_flag="" 7073 else 7074 # If we're using GNU nm, then we don't want the "-C" option. 7075 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7076 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7077 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' 7078 else 7079 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' 7080 fi 7081 aix_use_runtimelinking=no 7082 7083 # Test if we are trying to use run time linking or normal 7084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7085 # need to do runtime linking. 7086 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7087 for ld_flag in $LDFLAGS; do 7088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7089 aix_use_runtimelinking=yes 7090 break 7091 fi 7092 done 7093 esac 7094 7095 exp_sym_flag='-bexport' 7096 no_entry_flag='-bnoentry' 7097 fi 7098 7099 # When large executables or shared objects are built, AIX ld can 7100 # have problems creating the table of contents. If linking a library 7101 # or program results in "error TOC overflow" add -mminimal-toc to 7102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7104 7105 archive_cmds='' 7106 hardcode_direct=yes 7107 hardcode_libdir_separator=':' 7108 link_all_deplibs=yes 7109 7110 if test "$GCC" = yes; then 7111 case $host_os in aix4.012|aix4.012.*) 7112 # We only want to do this on AIX 4.2 and lower, the check 7113 # below for broken collect2 doesn't work under 4.3+ 7114 collect2name=`${CC} -print-prog-name=collect2` 7115 if test -f "$collect2name" && \ 7116 strings "$collect2name" | grep resolve_lib_name >/dev/null 7117 then 7118 # We have reworked collect2 7119 hardcode_direct=yes 7120 else 7121 # We have old collect2 7122 hardcode_direct=unsupported 7123 # It fails to find uninstalled libraries when the uninstalled 7124 # path is not listed in the libpath. Setting hardcode_minus_L 7125 # to unsupported forces relinking 7126 hardcode_minus_L=yes 7127 hardcode_libdir_flag_spec='-L$libdir' 7128 hardcode_libdir_separator= 7129 fi 7130 esac 7131 shared_flag='-shared' 7132 else 7133 # not using gcc 7134 if test "$host_cpu" = ia64; then 7135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7136 # chokes on -Wl,-G. The following line is correct: 7137 shared_flag='-G' 7138 else 7139 if test "$aix_use_runtimelinking" = yes; then 7140 shared_flag='${wl}-G' 7141 else 7142 shared_flag='${wl}-bM:SRE' 7143 fi 7144 fi 7145 fi 7146 7147 # It seems that -bexpall does not export symbols beginning with 7148 # underscore (_), so it is better to generate a list of symbols to export. 7149 always_export_symbols=yes 7150 if test "$aix_use_runtimelinking" = yes; then 7151 # Warning - without using the other runtime loading flags (-brtl), 7152 # -berok will link without error, but may produce a broken library. 7153 allow_undefined_flag='-berok' 7154 # Determine the default libpath from the value encoded in an empty executable. 7155 cat >conftest.$ac_ext <<_ACEOF 7156/* confdefs.h. */ 7157_ACEOF 7158cat confdefs.h >>conftest.$ac_ext 7159cat >>conftest.$ac_ext <<_ACEOF 7160/* end confdefs.h. */ 7161 7162int 7163main () 7164{ 7165 7166 ; 7167 return 0; 7168} 7169_ACEOF 7170rm -f conftest.$ac_objext conftest$ac_exeext 7171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7172 (eval $ac_link) 2>conftest.er1 7173 ac_status=$? 7174 grep -v '^ *+' conftest.er1 >conftest.err 7175 rm -f conftest.er1 7176 cat conftest.err >&5 7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7178 (exit $ac_status); } && 7179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7181 (eval $ac_try) 2>&5 7182 ac_status=$? 7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7184 (exit $ac_status); }; } && 7185 { ac_try='test -s conftest$ac_exeext' 7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7187 (eval $ac_try) 2>&5 7188 ac_status=$? 7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7190 (exit $ac_status); }; }; then 7191 7192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7193}'` 7194# Check for a 64-bit object if we didn't find anything. 7195if 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; } 7196}'`; fi 7197else 7198 echo "$as_me: failed program was:" >&5 7199sed 's/^/| /' conftest.$ac_ext >&5 7200 7201fi 7202rm -f conftest.err conftest.$ac_objext \ 7203 conftest$ac_exeext conftest.$ac_ext 7204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7205 7206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7207 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7208 else 7209 if test "$host_cpu" = ia64; then 7210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7211 allow_undefined_flag="-z nodefs" 7212 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 7213 else 7214 # Determine the default libpath from the value encoded in an empty executable. 7215 cat >conftest.$ac_ext <<_ACEOF 7216/* confdefs.h. */ 7217_ACEOF 7218cat confdefs.h >>conftest.$ac_ext 7219cat >>conftest.$ac_ext <<_ACEOF 7220/* end confdefs.h. */ 7221 7222int 7223main () 7224{ 7225 7226 ; 7227 return 0; 7228} 7229_ACEOF 7230rm -f conftest.$ac_objext conftest$ac_exeext 7231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7232 (eval $ac_link) 2>conftest.er1 7233 ac_status=$? 7234 grep -v '^ *+' conftest.er1 >conftest.err 7235 rm -f conftest.er1 7236 cat conftest.err >&5 7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7238 (exit $ac_status); } && 7239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7241 (eval $ac_try) 2>&5 7242 ac_status=$? 7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7244 (exit $ac_status); }; } && 7245 { ac_try='test -s conftest$ac_exeext' 7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7247 (eval $ac_try) 2>&5 7248 ac_status=$? 7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7250 (exit $ac_status); }; }; then 7251 7252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7253}'` 7254# Check for a 64-bit object if we didn't find anything. 7255if 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; } 7256}'`; fi 7257else 7258 echo "$as_me: failed program was:" >&5 7259sed 's/^/| /' conftest.$ac_ext >&5 7260 7261fi 7262rm -f conftest.err conftest.$ac_objext \ 7263 conftest$ac_exeext conftest.$ac_ext 7264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7265 7266 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7267 # Warning - without using the other run time loading flags, 7268 # -berok will link without error, but may produce a broken library. 7269 no_undefined_flag=' ${wl}-bernotok' 7270 allow_undefined_flag=' ${wl}-berok' 7271 # -bexpall does not export symbols beginning with underscore (_) 7272 always_export_symbols=yes 7273 # Exported symbols can be pulled into shared objects from archives 7274 whole_archive_flag_spec=' ' 7275 archive_cmds_need_lc=yes 7276 # This is similar to how AIX traditionally builds it's shared libraries. 7277 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7278 fi 7279 fi 7280 ;; 7281 7282 amigaos*) 7283 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)' 7284 hardcode_libdir_flag_spec='-L$libdir' 7285 hardcode_minus_L=yes 7286 # see comment about different semantics on the GNU ld section 7287 ld_shlibs=no 7288 ;; 7289 7290 bsdi4*) 7291 export_dynamic_flag_spec=-rdynamic 7292 ;; 7293 7294 cygwin* | mingw* | pw32*) 7295 # When not using gcc, we currently assume that we are using 7296 # Microsoft Visual C++. 7297 # hardcode_libdir_flag_spec is actually meaningless, as there is 7298 # no search path for DLLs. 7299 hardcode_libdir_flag_spec=' ' 7300 allow_undefined_flag=unsupported 7301 # Tell ltmain to make .lib files, not .a files. 7302 libext=lib 7303 # Tell ltmain to make .dll files, not .so files. 7304 shrext_cmds=".dll" 7305 # FIXME: Setting linknames here is a bad hack. 7306 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7307 # The linker will automatically build a .lib file if we build a DLL. 7308 old_archive_From_new_cmds='true' 7309 # FIXME: Should let the user specify the lib program. 7310 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7311 fix_srcfile_path='`cygpath -w "$srcfile"`' 7312 enable_shared_with_static_runtimes=yes 7313 ;; 7314 7315 darwin* | rhapsody*) 7316 if test "$GXX" = yes ; then 7317 archive_cmds_need_lc=no 7318 case "$host_os" in 7319 rhapsody* | darwin1.[012]) 7320 allow_undefined_flag='-undefined suppress' 7321 ;; 7322 *) # Darwin 1.3 on 7323 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7324 allow_undefined_flag='-flat_namespace -undefined suppress' 7325 else 7326 case ${MACOSX_DEPLOYMENT_TARGET} in 7327 10.[012]) 7328 allow_undefined_flag='-flat_namespace -undefined suppress' 7329 ;; 7330 10.*) 7331 allow_undefined_flag='-undefined dynamic_lookup' 7332 ;; 7333 esac 7334 fi 7335 ;; 7336 esac 7337 lt_int_apple_cc_single_mod=no 7338 output_verbose_link_cmd='echo' 7339 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 7340 lt_int_apple_cc_single_mod=yes 7341 fi 7342 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7343 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7344 else 7345 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7346 fi 7347 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7348 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7349 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7350 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7351 else 7352 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7353 fi 7354 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}' 7355 hardcode_direct=no 7356 hardcode_automatic=yes 7357 hardcode_shlibpath_var=unsupported 7358 whole_archive_flag_spec='-all_load $convenience' 7359 link_all_deplibs=yes 7360 else 7361 ld_shlibs=no 7362 fi 7363 ;; 7364 7365 dgux*) 7366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7367 hardcode_libdir_flag_spec='-L$libdir' 7368 hardcode_shlibpath_var=no 7369 ;; 7370 7371 freebsd1*) 7372 ld_shlibs=no 7373 ;; 7374 7375 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7376 # support. Future versions do this automatically, but an explicit c++rt0.o 7377 # does not break anything, and helps significantly (at the cost of a little 7378 # extra space). 7379 freebsd2.2*) 7380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7381 hardcode_libdir_flag_spec='-R$libdir' 7382 hardcode_direct=yes 7383 hardcode_shlibpath_var=no 7384 ;; 7385 7386 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7387 freebsd2*) 7388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7389 hardcode_direct=yes 7390 hardcode_minus_L=yes 7391 hardcode_shlibpath_var=no 7392 ;; 7393 7394 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7395 freebsd* | kfreebsd*-gnu) 7396 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7397 hardcode_libdir_flag_spec='-R$libdir' 7398 hardcode_direct=yes 7399 hardcode_shlibpath_var=no 7400 ;; 7401 7402 hpux9*) 7403 if test "$GCC" = yes; then 7404 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' 7405 else 7406 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' 7407 fi 7408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7409 hardcode_libdir_separator=: 7410 hardcode_direct=yes 7411 7412 # hardcode_minus_L: Not really in the search PATH, 7413 # but as the default location of the library. 7414 hardcode_minus_L=yes 7415 export_dynamic_flag_spec='${wl}-E' 7416 ;; 7417 7418 hpux10* | hpux11*) 7419 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7420 case "$host_cpu" in 7421 hppa*64*|ia64*) 7422 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7423 ;; 7424 *) 7425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7426 ;; 7427 esac 7428 else 7429 case "$host_cpu" in 7430 hppa*64*|ia64*) 7431 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7432 ;; 7433 *) 7434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7435 ;; 7436 esac 7437 fi 7438 if test "$with_gnu_ld" = no; then 7439 case "$host_cpu" in 7440 hppa*64*) 7441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7442 hardcode_libdir_flag_spec_ld='+b $libdir' 7443 hardcode_libdir_separator=: 7444 hardcode_direct=no 7445 hardcode_shlibpath_var=no 7446 ;; 7447 ia64*) 7448 hardcode_libdir_flag_spec='-L$libdir' 7449 hardcode_direct=no 7450 hardcode_shlibpath_var=no 7451 7452 # hardcode_minus_L: Not really in the search PATH, 7453 # but as the default location of the library. 7454 hardcode_minus_L=yes 7455 ;; 7456 *) 7457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7458 hardcode_libdir_separator=: 7459 hardcode_direct=yes 7460 export_dynamic_flag_spec='${wl}-E' 7461 7462 # hardcode_minus_L: Not really in the search PATH, 7463 # but as the default location of the library. 7464 hardcode_minus_L=yes 7465 ;; 7466 esac 7467 fi 7468 ;; 7469 7470 irix5* | irix6* | nonstopux*) 7471 if test "$GCC" = yes; then 7472 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' 7473 else 7474 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' 7475 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7476 fi 7477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7478 hardcode_libdir_separator=: 7479 link_all_deplibs=yes 7480 ;; 7481 7482 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 7483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7485 else 7486 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7487 fi 7488 hardcode_libdir_flag_spec='-R$libdir' 7489 hardcode_direct=yes 7490 hardcode_shlibpath_var=no 7491 ;; 7492 7493 newsos6) 7494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7495 hardcode_direct=yes 7496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7497 hardcode_libdir_separator=: 7498 hardcode_shlibpath_var=no 7499 ;; 7500 7501 openbsd*) 7502 hardcode_direct=yes 7503 hardcode_shlibpath_var=no 7504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7505 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7507 export_dynamic_flag_spec='${wl}-E' 7508 else 7509 case $host_os in 7510 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7512 hardcode_libdir_flag_spec='-R$libdir' 7513 ;; 7514 *) 7515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7516 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7517 ;; 7518 esac 7519 fi 7520 ;; 7521 7522 os2*) 7523 hardcode_libdir_flag_spec='-L$libdir' 7524 hardcode_minus_L=yes 7525 allow_undefined_flag=unsupported 7526 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' 7527 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7528 ;; 7529 7530 osf3*) 7531 if test "$GCC" = yes; then 7532 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7533 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' 7534 else 7535 allow_undefined_flag=' -expect_unresolved \*' 7536 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' 7537 fi 7538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7539 hardcode_libdir_separator=: 7540 ;; 7541 7542 osf4* | osf5*) # as osf3* with the addition of -msym flag 7543 if test "$GCC" = yes; then 7544 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7545 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' 7546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7547 else 7548 allow_undefined_flag=' -expect_unresolved \*' 7549 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' 7550 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7551 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 7552 7553 # Both c and cxx compiler support -rpath directly 7554 hardcode_libdir_flag_spec='-rpath $libdir' 7555 fi 7556 hardcode_libdir_separator=: 7557 ;; 7558 7559 sco3.2v5*) 7560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7561 hardcode_shlibpath_var=no 7562 export_dynamic_flag_spec='${wl}-Bexport' 7563 runpath_var=LD_RUN_PATH 7564 hardcode_runpath_var=yes 7565 ;; 7566 7567 solaris*) 7568 no_undefined_flag=' -z text' 7569 if test "$GCC" = yes; then 7570 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7571 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7572 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7573 else 7574 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7575 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7576 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7577 fi 7578 hardcode_libdir_flag_spec='-R$libdir' 7579 hardcode_shlibpath_var=no 7580 case $host_os in 7581 solaris2.[0-5] | solaris2.[0-5].*) ;; 7582 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7583 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7584 esac 7585 link_all_deplibs=yes 7586 ;; 7587 7588 sunos4*) 7589 if test "x$host_vendor" = xsequent; then 7590 # Use $CC to link under sequent, because it throws in some extra .o 7591 # files that make .init and .fini sections work. 7592 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7593 else 7594 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7595 fi 7596 hardcode_libdir_flag_spec='-L$libdir' 7597 hardcode_direct=yes 7598 hardcode_minus_L=yes 7599 hardcode_shlibpath_var=no 7600 ;; 7601 7602 sysv4) 7603 case $host_vendor in 7604 sni) 7605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7606 hardcode_direct=yes # is this really true??? 7607 ;; 7608 siemens) 7609 ## LD is ld it makes a PLAMLIB 7610 ## CC just makes a GrossModule. 7611 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7612 reload_cmds='$CC -r -o $output$reload_objs' 7613 hardcode_direct=no 7614 ;; 7615 motorola) 7616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7617 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7618 ;; 7619 esac 7620 runpath_var='LD_RUN_PATH' 7621 hardcode_shlibpath_var=no 7622 ;; 7623 7624 sysv4.3*) 7625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7626 hardcode_shlibpath_var=no 7627 export_dynamic_flag_spec='-Bexport' 7628 ;; 7629 7630 sysv4*MP*) 7631 if test -d /usr/nec; then 7632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7633 hardcode_shlibpath_var=no 7634 runpath_var=LD_RUN_PATH 7635 hardcode_runpath_var=yes 7636 ld_shlibs=yes 7637 fi 7638 ;; 7639 7640 sysv4.2uw2*) 7641 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7642 hardcode_direct=yes 7643 hardcode_minus_L=no 7644 hardcode_shlibpath_var=no 7645 hardcode_runpath_var=yes 7646 runpath_var=LD_RUN_PATH 7647 ;; 7648 7649 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7650 no_undefined_flag='${wl}-z ${wl}text' 7651 if test "$GCC" = yes; then 7652 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7653 else 7654 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7655 fi 7656 runpath_var='LD_RUN_PATH' 7657 hardcode_shlibpath_var=no 7658 ;; 7659 7660 sysv5*) 7661 no_undefined_flag=' -z text' 7662 # $CC -shared without GNU ld will not create a library from C++ 7663 # object files and a static libstdc++, better avoid it by now 7664 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7665 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7667 hardcode_libdir_flag_spec= 7668 hardcode_shlibpath_var=no 7669 runpath_var='LD_RUN_PATH' 7670 ;; 7671 7672 uts4*) 7673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7674 hardcode_libdir_flag_spec='-L$libdir' 7675 hardcode_shlibpath_var=no 7676 ;; 7677 7678 *) 7679 ld_shlibs=no 7680 ;; 7681 esac 7682 fi 7683 7684echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7685echo "${ECHO_T}$ld_shlibs" >&6 7686test "$ld_shlibs" = no && can_build_shared=no 7687 7688variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7689if test "$GCC" = yes; then 7690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7691fi 7692 7693# 7694# Do we need to explicitly link libc? 7695# 7696case "x$archive_cmds_need_lc" in 7697x|xyes) 7698 # Assume -lc should be added 7699 archive_cmds_need_lc=yes 7700 7701 if test "$enable_shared" = yes && test "$GCC" = yes; then 7702 case $archive_cmds in 7703 *'~'*) 7704 # FIXME: we may have to deal with multi-command sequences. 7705 ;; 7706 '$CC '*) 7707 # Test whether the compiler implicitly links with -lc since on some 7708 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7709 # to ld, don't add -lc before -lgcc. 7710 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7711echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7712 $rm conftest* 7713 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7714 7715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7716 (eval $ac_compile) 2>&5 7717 ac_status=$? 7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7719 (exit $ac_status); } 2>conftest.err; then 7720 soname=conftest 7721 lib=conftest 7722 libobjs=conftest.$ac_objext 7723 deplibs= 7724 wl=$lt_prog_compiler_wl 7725 compiler_flags=-v 7726 linker_flags=-v 7727 verstring= 7728 output_objdir=. 7729 libname=conftest 7730 lt_save_allow_undefined_flag=$allow_undefined_flag 7731 allow_undefined_flag= 7732 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7733 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7734 ac_status=$? 7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7736 (exit $ac_status); } 7737 then 7738 archive_cmds_need_lc=no 7739 else 7740 archive_cmds_need_lc=yes 7741 fi 7742 allow_undefined_flag=$lt_save_allow_undefined_flag 7743 else 7744 cat conftest.err 1>&5 7745 fi 7746 $rm conftest* 7747 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7748echo "${ECHO_T}$archive_cmds_need_lc" >&6 7749 ;; 7750 esac 7751 fi 7752 ;; 7753esac 7754 7755echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7756echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7757library_names_spec= 7758libname_spec='lib$name' 7759soname_spec= 7760shrext_cmds=".so" 7761postinstall_cmds= 7762postuninstall_cmds= 7763finish_cmds= 7764finish_eval= 7765shlibpath_var= 7766shlibpath_overrides_runpath=unknown 7767version_type=none 7768dynamic_linker="$host_os ld.so" 7769sys_lib_dlsearch_path_spec="/lib /usr/lib" 7770if test "$GCC" = yes; then 7771 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7772 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7773 # if the path contains ";" then we assume it to be the separator 7774 # otherwise default to the standard path separator (i.e. ":") - it is 7775 # assumed that no part of a normal pathname contains ";" but that should 7776 # okay in the real world where ";" in dirpaths is itself problematic. 7777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7778 else 7779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7780 fi 7781else 7782 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7783fi 7784need_lib_prefix=unknown 7785hardcode_into_libs=no 7786 7787# when you set need_version to no, make sure it does not cause -set_version 7788# flags to be left without arguments 7789need_version=unknown 7790 7791case $host_os in 7792aix3*) 7793 version_type=linux 7794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7795 shlibpath_var=LIBPATH 7796 7797 # AIX 3 has no versioning support, so we append a major version to the name. 7798 soname_spec='${libname}${release}${shared_ext}$major' 7799 ;; 7800 7801aix4* | aix5*) 7802 version_type=linux 7803 need_lib_prefix=no 7804 need_version=no 7805 hardcode_into_libs=yes 7806 if test "$host_cpu" = ia64; then 7807 # AIX 5 supports IA64 7808 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7809 shlibpath_var=LD_LIBRARY_PATH 7810 else 7811 # With GCC up to 2.95.x, collect2 would create an import file 7812 # for dependence libraries. The import file would start with 7813 # the line `#! .'. This would cause the generated library to 7814 # depend on `.', always an invalid library. This was fixed in 7815 # development snapshots of GCC prior to 3.0. 7816 case $host_os in 7817 aix4 | aix4.[01] | aix4.[01].*) 7818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7819 echo ' yes ' 7820 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7821 : 7822 else 7823 can_build_shared=no 7824 fi 7825 ;; 7826 esac 7827 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7828 # soname into executable. Probably we can add versioning support to 7829 # collect2, so additional links can be useful in future. 7830 if test "$aix_use_runtimelinking" = yes; then 7831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7832 # instead of lib<name>.a to let people know that these are not 7833 # typical AIX shared libraries. 7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7835 else 7836 # We preserve .a as extension for shared libraries through AIX4.2 7837 # and later when we are not doing run time linking. 7838 library_names_spec='${libname}${release}.a $libname.a' 7839 soname_spec='${libname}${release}${shared_ext}$major' 7840 fi 7841 shlibpath_var=LIBPATH 7842 fi 7843 ;; 7844 7845amigaos*) 7846 library_names_spec='$libname.ixlibrary $libname.a' 7847 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7848 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' 7849 ;; 7850 7851beos*) 7852 library_names_spec='${libname}${shared_ext}' 7853 dynamic_linker="$host_os ld.so" 7854 shlibpath_var=LIBRARY_PATH 7855 ;; 7856 7857bsdi4*) 7858 version_type=linux 7859 need_version=no 7860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7861 soname_spec='${libname}${release}${shared_ext}$major' 7862 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7863 shlibpath_var=LD_LIBRARY_PATH 7864 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7865 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7866 # the default ld.so.conf also contains /usr/contrib/lib and 7867 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7868 # libtool to hard-code these into programs 7869 ;; 7870 7871cygwin* | mingw* | pw32*) 7872 version_type=windows 7873 shrext_cmds=".dll" 7874 need_version=no 7875 need_lib_prefix=no 7876 7877 case $GCC,$host_os in 7878 yes,cygwin* | yes,mingw* | yes,pw32*) 7879 library_names_spec='$libname.dll.a' 7880 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7881 postinstall_cmds='base_file=`basename \${file}`~ 7882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7883 dldir=$destdir/`dirname \$dlpath`~ 7884 test -d \$dldir || mkdir -p \$dldir~ 7885 $install_prog $dir/$dlname \$dldir/$dlname' 7886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7887 dlpath=$dir/\$dldll~ 7888 $rm \$dlpath' 7889 shlibpath_overrides_runpath=yes 7890 7891 case $host_os in 7892 cygwin*) 7893 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7895 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7896 ;; 7897 mingw*) 7898 # MinGW DLLs use traditional 'lib' prefix 7899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7900 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7901 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7902 # It is most probably a Windows format PATH printed by 7903 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7904 # path with ; separators, and with drive letters. We can handle the 7905 # drive letters (cygwin fileutils understands them), so leave them, 7906 # especially as we might pass files found there to a mingw objdump, 7907 # which wouldn't understand a cygwinified path. Ahh. 7908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7909 else 7910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7911 fi 7912 ;; 7913 pw32*) 7914 # pw32 DLLs use 'pw' prefix rather than 'lib' 7915 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7916 ;; 7917 esac 7918 ;; 7919 7920 *) 7921 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7922 ;; 7923 esac 7924 dynamic_linker='Win32 ld.exe' 7925 # FIXME: first we should search . and the directory the executable is in 7926 shlibpath_var=PATH 7927 ;; 7928 7929darwin* | rhapsody*) 7930 dynamic_linker="$host_os dyld" 7931 version_type=darwin 7932 need_lib_prefix=no 7933 need_version=no 7934 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7935 soname_spec='${libname}${release}${major}$shared_ext' 7936 shlibpath_overrides_runpath=yes 7937 shlibpath_var=DYLD_LIBRARY_PATH 7938 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7939 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7940 if test "$GCC" = yes; then 7941 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"` 7942 else 7943 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7944 fi 7945 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7946 ;; 7947 7948dgux*) 7949 version_type=linux 7950 need_lib_prefix=no 7951 need_version=no 7952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7953 soname_spec='${libname}${release}${shared_ext}$major' 7954 shlibpath_var=LD_LIBRARY_PATH 7955 ;; 7956 7957freebsd1*) 7958 dynamic_linker=no 7959 ;; 7960 7961kfreebsd*-gnu) 7962 version_type=linux 7963 need_lib_prefix=no 7964 need_version=no 7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7966 soname_spec='${libname}${release}${shared_ext}$major' 7967 shlibpath_var=LD_LIBRARY_PATH 7968 shlibpath_overrides_runpath=no 7969 hardcode_into_libs=yes 7970 dynamic_linker='GNU ld.so' 7971 ;; 7972 7973freebsd*) 7974 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7975 version_type=freebsd-$objformat 7976 case $version_type in 7977 freebsd-elf*) 7978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7979 need_version=no 7980 need_lib_prefix=no 7981 ;; 7982 freebsd-*) 7983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7984 need_version=yes 7985 ;; 7986 esac 7987 shlibpath_var=LD_LIBRARY_PATH 7988 case $host_os in 7989 freebsd2*) 7990 shlibpath_overrides_runpath=yes 7991 ;; 7992 freebsd3.01* | freebsdelf3.01*) 7993 shlibpath_overrides_runpath=yes 7994 hardcode_into_libs=yes 7995 ;; 7996 *) # from 3.2 on 7997 shlibpath_overrides_runpath=no 7998 hardcode_into_libs=yes 7999 ;; 8000 esac 8001 ;; 8002 8003gnu*) 8004 version_type=linux 8005 need_lib_prefix=no 8006 need_version=no 8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8008 soname_spec='${libname}${release}${shared_ext}$major' 8009 shlibpath_var=LD_LIBRARY_PATH 8010 hardcode_into_libs=yes 8011 ;; 8012 8013hpux9* | hpux10* | hpux11*) 8014 # Give a soname corresponding to the major version so that dld.sl refuses to 8015 # link against other versions. 8016 version_type=sunos 8017 need_lib_prefix=no 8018 need_version=no 8019 case "$host_cpu" in 8020 ia64*) 8021 shrext_cmds='.so' 8022 hardcode_into_libs=yes 8023 dynamic_linker="$host_os dld.so" 8024 shlibpath_var=LD_LIBRARY_PATH 8025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8027 soname_spec='${libname}${release}${shared_ext}$major' 8028 if test "X$HPUX_IA64_MODE" = X32; then 8029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8030 else 8031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8032 fi 8033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8034 ;; 8035 hppa*64*) 8036 shrext_cmds='.sl' 8037 hardcode_into_libs=yes 8038 dynamic_linker="$host_os dld.sl" 8039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8042 soname_spec='${libname}${release}${shared_ext}$major' 8043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8045 ;; 8046 *) 8047 shrext_cmds='.sl' 8048 dynamic_linker="$host_os dld.sl" 8049 shlibpath_var=SHLIB_PATH 8050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8052 soname_spec='${libname}${release}${shared_ext}$major' 8053 ;; 8054 esac 8055 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8056 postinstall_cmds='chmod 555 $lib' 8057 ;; 8058 8059irix5* | irix6* | nonstopux*) 8060 case $host_os in 8061 nonstopux*) version_type=nonstopux ;; 8062 *) 8063 if test "$lt_cv_prog_gnu_ld" = yes; then 8064 version_type=linux 8065 else 8066 version_type=irix 8067 fi ;; 8068 esac 8069 need_lib_prefix=no 8070 need_version=no 8071 soname_spec='${libname}${release}${shared_ext}$major' 8072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8073 case $host_os in 8074 irix5* | nonstopux*) 8075 libsuff= shlibsuff= 8076 ;; 8077 *) 8078 case $LD in # libtool.m4 will add one of these switches to LD 8079 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8080 libsuff= shlibsuff= libmagic=32-bit;; 8081 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8082 libsuff=32 shlibsuff=N32 libmagic=N32;; 8083 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8084 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8085 *) libsuff= shlibsuff= libmagic=never-match;; 8086 esac 8087 ;; 8088 esac 8089 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8090 shlibpath_overrides_runpath=no 8091 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8092 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8093 hardcode_into_libs=yes 8094 ;; 8095 8096# No shared lib support for Linux oldld, aout, or coff. 8097linux*oldld* | linux*aout* | linux*coff*) 8098 dynamic_linker=no 8099 ;; 8100 8101# This must be Linux ELF. 8102linux*) 8103 version_type=linux 8104 need_lib_prefix=no 8105 need_version=no 8106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8107 soname_spec='${libname}${release}${shared_ext}$major' 8108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8109 shlibpath_var=LD_LIBRARY_PATH 8110 shlibpath_overrides_runpath=no 8111 # This implies no fast_install, which is unacceptable. 8112 # Some rework will be needed to allow for fast_install 8113 # before this can be enabled. 8114 hardcode_into_libs=yes 8115 8116 # Append ld.so.conf contents to the search path 8117 if test -f /etc/ld.so.conf; then 8118 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 8119 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8120 fi 8121 8122 # We used to test for /lib/ld.so.1 and disable shared libraries on 8123 # powerpc, because MkLinux only supported shared libraries with the 8124 # GNU dynamic linker. Since this was broken with cross compilers, 8125 # most powerpc-linux boxes support dynamic linking these days and 8126 # people can always --disable-shared, the test was removed, and we 8127 # assume the GNU/Linux dynamic linker is in use. 8128 dynamic_linker='GNU/Linux ld.so' 8129 ;; 8130 8131netbsdelf*-gnu) 8132 version_type=linux 8133 need_lib_prefix=no 8134 need_version=no 8135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8136 soname_spec='${libname}${release}${shared_ext}$major' 8137 shlibpath_var=LD_LIBRARY_PATH 8138 shlibpath_overrides_runpath=no 8139 hardcode_into_libs=yes 8140 dynamic_linker='NetBSD ld.elf_so' 8141 ;; 8142 8143knetbsd*-gnu) 8144 version_type=linux 8145 need_lib_prefix=no 8146 need_version=no 8147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8148 soname_spec='${libname}${release}${shared_ext}$major' 8149 shlibpath_var=LD_LIBRARY_PATH 8150 shlibpath_overrides_runpath=no 8151 hardcode_into_libs=yes 8152 dynamic_linker='GNU ld.so' 8153 ;; 8154 8155netbsd*) 8156 version_type=sunos 8157 need_lib_prefix=no 8158 need_version=no 8159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8162 dynamic_linker='NetBSD (a.out) ld.so' 8163 else 8164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8165 soname_spec='${libname}${release}${shared_ext}$major' 8166 dynamic_linker='NetBSD ld.elf_so' 8167 fi 8168 shlibpath_var=LD_LIBRARY_PATH 8169 shlibpath_overrides_runpath=yes 8170 hardcode_into_libs=yes 8171 ;; 8172 8173newsos6) 8174 version_type=linux 8175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8176 shlibpath_var=LD_LIBRARY_PATH 8177 shlibpath_overrides_runpath=yes 8178 ;; 8179 8180nto-qnx*) 8181 version_type=linux 8182 need_lib_prefix=no 8183 need_version=no 8184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8185 soname_spec='${libname}${release}${shared_ext}$major' 8186 shlibpath_var=LD_LIBRARY_PATH 8187 shlibpath_overrides_runpath=yes 8188 ;; 8189 8190openbsd*) 8191 version_type=sunos 8192 need_lib_prefix=no 8193 need_version=yes 8194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8196 shlibpath_var=LD_LIBRARY_PATH 8197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8198 case $host_os in 8199 openbsd2.[89] | openbsd2.[89].*) 8200 shlibpath_overrides_runpath=no 8201 ;; 8202 *) 8203 shlibpath_overrides_runpath=yes 8204 ;; 8205 esac 8206 else 8207 shlibpath_overrides_runpath=yes 8208 fi 8209 ;; 8210 8211os2*) 8212 libname_spec='$name' 8213 shrext_cmds=".dll" 8214 need_lib_prefix=no 8215 library_names_spec='$libname${shared_ext} $libname.a' 8216 dynamic_linker='OS/2 ld.exe' 8217 shlibpath_var=LIBPATH 8218 ;; 8219 8220osf3* | osf4* | osf5*) 8221 version_type=osf 8222 need_lib_prefix=no 8223 need_version=no 8224 soname_spec='${libname}${release}${shared_ext}$major' 8225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8226 shlibpath_var=LD_LIBRARY_PATH 8227 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8228 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8229 ;; 8230 8231sco3.2v5*) 8232 version_type=osf 8233 soname_spec='${libname}${release}${shared_ext}$major' 8234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8235 shlibpath_var=LD_LIBRARY_PATH 8236 ;; 8237 8238solaris*) 8239 version_type=linux 8240 need_lib_prefix=no 8241 need_version=no 8242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8243 soname_spec='${libname}${release}${shared_ext}$major' 8244 shlibpath_var=LD_LIBRARY_PATH 8245 shlibpath_overrides_runpath=yes 8246 hardcode_into_libs=yes 8247 # ldd complains unless libraries are executable 8248 postinstall_cmds='chmod +x $lib' 8249 ;; 8250 8251sunos4*) 8252 version_type=sunos 8253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8255 shlibpath_var=LD_LIBRARY_PATH 8256 shlibpath_overrides_runpath=yes 8257 if test "$with_gnu_ld" = yes; then 8258 need_lib_prefix=no 8259 fi 8260 need_version=yes 8261 ;; 8262 8263sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8264 version_type=linux 8265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8266 soname_spec='${libname}${release}${shared_ext}$major' 8267 shlibpath_var=LD_LIBRARY_PATH 8268 case $host_vendor in 8269 sni) 8270 shlibpath_overrides_runpath=no 8271 need_lib_prefix=no 8272 export_dynamic_flag_spec='${wl}-Blargedynsym' 8273 runpath_var=LD_RUN_PATH 8274 ;; 8275 siemens) 8276 need_lib_prefix=no 8277 ;; 8278 motorola) 8279 need_lib_prefix=no 8280 need_version=no 8281 shlibpath_overrides_runpath=no 8282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8283 ;; 8284 esac 8285 ;; 8286 8287sysv4*MP*) 8288 if test -d /usr/nec ;then 8289 version_type=linux 8290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8291 soname_spec='$libname${shared_ext}.$major' 8292 shlibpath_var=LD_LIBRARY_PATH 8293 fi 8294 ;; 8295 8296uts4*) 8297 version_type=linux 8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8299 soname_spec='${libname}${release}${shared_ext}$major' 8300 shlibpath_var=LD_LIBRARY_PATH 8301 ;; 8302 8303*) 8304 dynamic_linker=no 8305 ;; 8306esac 8307echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8308echo "${ECHO_T}$dynamic_linker" >&6 8309test "$dynamic_linker" = no && can_build_shared=no 8310 8311echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8312echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8313hardcode_action= 8314if test -n "$hardcode_libdir_flag_spec" || \ 8315 test -n "$runpath_var " || \ 8316 test "X$hardcode_automatic"="Xyes" ; then 8317 8318 # We can hardcode non-existant directories. 8319 if test "$hardcode_direct" != no && 8320 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8321 # have to relink, otherwise we might link with an installed library 8322 # when we should be linking with a yet-to-be-installed one 8323 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8324 test "$hardcode_minus_L" != no; then 8325 # Linking always hardcodes the temporary library directory. 8326 hardcode_action=relink 8327 else 8328 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8329 hardcode_action=immediate 8330 fi 8331else 8332 # We cannot hardcode anything, or else we can only hardcode existing 8333 # directories. 8334 hardcode_action=unsupported 8335fi 8336echo "$as_me:$LINENO: result: $hardcode_action" >&5 8337echo "${ECHO_T}$hardcode_action" >&6 8338 8339if test "$hardcode_action" = relink; then 8340 # Fast installation is not supported 8341 enable_fast_install=no 8342elif test "$shlibpath_overrides_runpath" = yes || 8343 test "$enable_shared" = no; then 8344 # Fast installation is not necessary 8345 enable_fast_install=needless 8346fi 8347 8348striplib= 8349old_striplib= 8350echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8351echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8352if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8353 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8354 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8355 echo "$as_me:$LINENO: result: yes" >&5 8356echo "${ECHO_T}yes" >&6 8357else 8358# FIXME - insert some real tests, host_os isn't really good enough 8359 case $host_os in 8360 darwin*) 8361 if test -n "$STRIP" ; then 8362 striplib="$STRIP -x" 8363 echo "$as_me:$LINENO: result: yes" >&5 8364echo "${ECHO_T}yes" >&6 8365 else 8366 echo "$as_me:$LINENO: result: no" >&5 8367echo "${ECHO_T}no" >&6 8368fi 8369 ;; 8370 *) 8371 echo "$as_me:$LINENO: result: no" >&5 8372echo "${ECHO_T}no" >&6 8373 ;; 8374 esac 8375fi 8376 8377if test "x$enable_dlopen" != xyes; then 8378 enable_dlopen=unknown 8379 enable_dlopen_self=unknown 8380 enable_dlopen_self_static=unknown 8381else 8382 lt_cv_dlopen=no 8383 lt_cv_dlopen_libs= 8384 8385 case $host_os in 8386 beos*) 8387 lt_cv_dlopen="load_add_on" 8388 lt_cv_dlopen_libs= 8389 lt_cv_dlopen_self=yes 8390 ;; 8391 8392 mingw* | pw32*) 8393 lt_cv_dlopen="LoadLibrary" 8394 lt_cv_dlopen_libs= 8395 ;; 8396 8397 cygwin*) 8398 lt_cv_dlopen="dlopen" 8399 lt_cv_dlopen_libs= 8400 ;; 8401 8402 darwin*) 8403 # if libdl is installed we need to link against it 8404 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8405echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8406if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8407 echo $ECHO_N "(cached) $ECHO_C" >&6 8408else 8409 ac_check_lib_save_LIBS=$LIBS 8410LIBS="-ldl $LIBS" 8411cat >conftest.$ac_ext <<_ACEOF 8412/* confdefs.h. */ 8413_ACEOF 8414cat confdefs.h >>conftest.$ac_ext 8415cat >>conftest.$ac_ext <<_ACEOF 8416/* end confdefs.h. */ 8417 8418/* Override any gcc2 internal prototype to avoid an error. */ 8419#ifdef __cplusplus 8420extern "C" 8421#endif 8422/* We use char because int might match the return type of a gcc2 8423 builtin and then its argument prototype would still apply. */ 8424char dlopen (); 8425int 8426main () 8427{ 8428dlopen (); 8429 ; 8430 return 0; 8431} 8432_ACEOF 8433rm -f conftest.$ac_objext conftest$ac_exeext 8434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8435 (eval $ac_link) 2>conftest.er1 8436 ac_status=$? 8437 grep -v '^ *+' conftest.er1 >conftest.err 8438 rm -f conftest.er1 8439 cat conftest.err >&5 8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8441 (exit $ac_status); } && 8442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8444 (eval $ac_try) 2>&5 8445 ac_status=$? 8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8447 (exit $ac_status); }; } && 8448 { ac_try='test -s conftest$ac_exeext' 8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8450 (eval $ac_try) 2>&5 8451 ac_status=$? 8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8453 (exit $ac_status); }; }; then 8454 ac_cv_lib_dl_dlopen=yes 8455else 8456 echo "$as_me: failed program was:" >&5 8457sed 's/^/| /' conftest.$ac_ext >&5 8458 8459ac_cv_lib_dl_dlopen=no 8460fi 8461rm -f conftest.err conftest.$ac_objext \ 8462 conftest$ac_exeext conftest.$ac_ext 8463LIBS=$ac_check_lib_save_LIBS 8464fi 8465echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8466echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8467if test $ac_cv_lib_dl_dlopen = yes; then 8468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8469else 8470 8471 lt_cv_dlopen="dyld" 8472 lt_cv_dlopen_libs= 8473 lt_cv_dlopen_self=yes 8474 8475fi 8476 8477 ;; 8478 8479 *) 8480 echo "$as_me:$LINENO: checking for shl_load" >&5 8481echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8482if test "${ac_cv_func_shl_load+set}" = set; then 8483 echo $ECHO_N "(cached) $ECHO_C" >&6 8484else 8485 cat >conftest.$ac_ext <<_ACEOF 8486/* confdefs.h. */ 8487_ACEOF 8488cat confdefs.h >>conftest.$ac_ext 8489cat >>conftest.$ac_ext <<_ACEOF 8490/* end confdefs.h. */ 8491/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8492 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8493#define shl_load innocuous_shl_load 8494 8495/* System header to define __stub macros and hopefully few prototypes, 8496 which can conflict with char shl_load (); below. 8497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8498 <limits.h> exists even on freestanding compilers. */ 8499 8500#ifdef __STDC__ 8501# include <limits.h> 8502#else 8503# include <assert.h> 8504#endif 8505 8506#undef shl_load 8507 8508/* Override any gcc2 internal prototype to avoid an error. */ 8509#ifdef __cplusplus 8510extern "C" 8511{ 8512#endif 8513/* We use char because int might match the return type of a gcc2 8514 builtin and then its argument prototype would still apply. */ 8515char shl_load (); 8516/* The GNU C library defines this for functions which it implements 8517 to always fail with ENOSYS. Some functions are actually named 8518 something starting with __ and the normal name is an alias. */ 8519#if defined (__stub_shl_load) || defined (__stub___shl_load) 8520choke me 8521#else 8522char (*f) () = shl_load; 8523#endif 8524#ifdef __cplusplus 8525} 8526#endif 8527 8528int 8529main () 8530{ 8531return f != shl_load; 8532 ; 8533 return 0; 8534} 8535_ACEOF 8536rm -f conftest.$ac_objext conftest$ac_exeext 8537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8538 (eval $ac_link) 2>conftest.er1 8539 ac_status=$? 8540 grep -v '^ *+' conftest.er1 >conftest.err 8541 rm -f conftest.er1 8542 cat conftest.err >&5 8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8544 (exit $ac_status); } && 8545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8547 (eval $ac_try) 2>&5 8548 ac_status=$? 8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8550 (exit $ac_status); }; } && 8551 { ac_try='test -s conftest$ac_exeext' 8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8553 (eval $ac_try) 2>&5 8554 ac_status=$? 8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8556 (exit $ac_status); }; }; then 8557 ac_cv_func_shl_load=yes 8558else 8559 echo "$as_me: failed program was:" >&5 8560sed 's/^/| /' conftest.$ac_ext >&5 8561 8562ac_cv_func_shl_load=no 8563fi 8564rm -f conftest.err conftest.$ac_objext \ 8565 conftest$ac_exeext conftest.$ac_ext 8566fi 8567echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8568echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8569if test $ac_cv_func_shl_load = yes; then 8570 lt_cv_dlopen="shl_load" 8571else 8572 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8573echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8574if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8575 echo $ECHO_N "(cached) $ECHO_C" >&6 8576else 8577 ac_check_lib_save_LIBS=$LIBS 8578LIBS="-ldld $LIBS" 8579cat >conftest.$ac_ext <<_ACEOF 8580/* confdefs.h. */ 8581_ACEOF 8582cat confdefs.h >>conftest.$ac_ext 8583cat >>conftest.$ac_ext <<_ACEOF 8584/* end confdefs.h. */ 8585 8586/* Override any gcc2 internal prototype to avoid an error. */ 8587#ifdef __cplusplus 8588extern "C" 8589#endif 8590/* We use char because int might match the return type of a gcc2 8591 builtin and then its argument prototype would still apply. */ 8592char shl_load (); 8593int 8594main () 8595{ 8596shl_load (); 8597 ; 8598 return 0; 8599} 8600_ACEOF 8601rm -f conftest.$ac_objext conftest$ac_exeext 8602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8603 (eval $ac_link) 2>conftest.er1 8604 ac_status=$? 8605 grep -v '^ *+' conftest.er1 >conftest.err 8606 rm -f conftest.er1 8607 cat conftest.err >&5 8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8609 (exit $ac_status); } && 8610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8612 (eval $ac_try) 2>&5 8613 ac_status=$? 8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8615 (exit $ac_status); }; } && 8616 { ac_try='test -s conftest$ac_exeext' 8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8618 (eval $ac_try) 2>&5 8619 ac_status=$? 8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8621 (exit $ac_status); }; }; then 8622 ac_cv_lib_dld_shl_load=yes 8623else 8624 echo "$as_me: failed program was:" >&5 8625sed 's/^/| /' conftest.$ac_ext >&5 8626 8627ac_cv_lib_dld_shl_load=no 8628fi 8629rm -f conftest.err conftest.$ac_objext \ 8630 conftest$ac_exeext conftest.$ac_ext 8631LIBS=$ac_check_lib_save_LIBS 8632fi 8633echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8634echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8635if test $ac_cv_lib_dld_shl_load = yes; then 8636 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8637else 8638 echo "$as_me:$LINENO: checking for dlopen" >&5 8639echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8640if test "${ac_cv_func_dlopen+set}" = set; then 8641 echo $ECHO_N "(cached) $ECHO_C" >&6 8642else 8643 cat >conftest.$ac_ext <<_ACEOF 8644/* confdefs.h. */ 8645_ACEOF 8646cat confdefs.h >>conftest.$ac_ext 8647cat >>conftest.$ac_ext <<_ACEOF 8648/* end confdefs.h. */ 8649/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8650 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8651#define dlopen innocuous_dlopen 8652 8653/* System header to define __stub macros and hopefully few prototypes, 8654 which can conflict with char dlopen (); below. 8655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8656 <limits.h> exists even on freestanding compilers. */ 8657 8658#ifdef __STDC__ 8659# include <limits.h> 8660#else 8661# include <assert.h> 8662#endif 8663 8664#undef dlopen 8665 8666/* Override any gcc2 internal prototype to avoid an error. */ 8667#ifdef __cplusplus 8668extern "C" 8669{ 8670#endif 8671/* We use char because int might match the return type of a gcc2 8672 builtin and then its argument prototype would still apply. */ 8673char dlopen (); 8674/* The GNU C library defines this for functions which it implements 8675 to always fail with ENOSYS. Some functions are actually named 8676 something starting with __ and the normal name is an alias. */ 8677#if defined (__stub_dlopen) || defined (__stub___dlopen) 8678choke me 8679#else 8680char (*f) () = dlopen; 8681#endif 8682#ifdef __cplusplus 8683} 8684#endif 8685 8686int 8687main () 8688{ 8689return f != dlopen; 8690 ; 8691 return 0; 8692} 8693_ACEOF 8694rm -f conftest.$ac_objext conftest$ac_exeext 8695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8696 (eval $ac_link) 2>conftest.er1 8697 ac_status=$? 8698 grep -v '^ *+' conftest.er1 >conftest.err 8699 rm -f conftest.er1 8700 cat conftest.err >&5 8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8702 (exit $ac_status); } && 8703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8705 (eval $ac_try) 2>&5 8706 ac_status=$? 8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8708 (exit $ac_status); }; } && 8709 { ac_try='test -s conftest$ac_exeext' 8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8711 (eval $ac_try) 2>&5 8712 ac_status=$? 8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8714 (exit $ac_status); }; }; then 8715 ac_cv_func_dlopen=yes 8716else 8717 echo "$as_me: failed program was:" >&5 8718sed 's/^/| /' conftest.$ac_ext >&5 8719 8720ac_cv_func_dlopen=no 8721fi 8722rm -f conftest.err conftest.$ac_objext \ 8723 conftest$ac_exeext conftest.$ac_ext 8724fi 8725echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8726echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8727if test $ac_cv_func_dlopen = yes; then 8728 lt_cv_dlopen="dlopen" 8729else 8730 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8731echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8732if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8733 echo $ECHO_N "(cached) $ECHO_C" >&6 8734else 8735 ac_check_lib_save_LIBS=$LIBS 8736LIBS="-ldl $LIBS" 8737cat >conftest.$ac_ext <<_ACEOF 8738/* confdefs.h. */ 8739_ACEOF 8740cat confdefs.h >>conftest.$ac_ext 8741cat >>conftest.$ac_ext <<_ACEOF 8742/* end confdefs.h. */ 8743 8744/* Override any gcc2 internal prototype to avoid an error. */ 8745#ifdef __cplusplus 8746extern "C" 8747#endif 8748/* We use char because int might match the return type of a gcc2 8749 builtin and then its argument prototype would still apply. */ 8750char dlopen (); 8751int 8752main () 8753{ 8754dlopen (); 8755 ; 8756 return 0; 8757} 8758_ACEOF 8759rm -f conftest.$ac_objext conftest$ac_exeext 8760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8761 (eval $ac_link) 2>conftest.er1 8762 ac_status=$? 8763 grep -v '^ *+' conftest.er1 >conftest.err 8764 rm -f conftest.er1 8765 cat conftest.err >&5 8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8767 (exit $ac_status); } && 8768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8770 (eval $ac_try) 2>&5 8771 ac_status=$? 8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8773 (exit $ac_status); }; } && 8774 { ac_try='test -s conftest$ac_exeext' 8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8776 (eval $ac_try) 2>&5 8777 ac_status=$? 8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8779 (exit $ac_status); }; }; then 8780 ac_cv_lib_dl_dlopen=yes 8781else 8782 echo "$as_me: failed program was:" >&5 8783sed 's/^/| /' conftest.$ac_ext >&5 8784 8785ac_cv_lib_dl_dlopen=no 8786fi 8787rm -f conftest.err conftest.$ac_objext \ 8788 conftest$ac_exeext conftest.$ac_ext 8789LIBS=$ac_check_lib_save_LIBS 8790fi 8791echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8792echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8793if test $ac_cv_lib_dl_dlopen = yes; then 8794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8795else 8796 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8797echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8798if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8799 echo $ECHO_N "(cached) $ECHO_C" >&6 8800else 8801 ac_check_lib_save_LIBS=$LIBS 8802LIBS="-lsvld $LIBS" 8803cat >conftest.$ac_ext <<_ACEOF 8804/* confdefs.h. */ 8805_ACEOF 8806cat confdefs.h >>conftest.$ac_ext 8807cat >>conftest.$ac_ext <<_ACEOF 8808/* end confdefs.h. */ 8809 8810/* Override any gcc2 internal prototype to avoid an error. */ 8811#ifdef __cplusplus 8812extern "C" 8813#endif 8814/* We use char because int might match the return type of a gcc2 8815 builtin and then its argument prototype would still apply. */ 8816char dlopen (); 8817int 8818main () 8819{ 8820dlopen (); 8821 ; 8822 return 0; 8823} 8824_ACEOF 8825rm -f conftest.$ac_objext conftest$ac_exeext 8826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8827 (eval $ac_link) 2>conftest.er1 8828 ac_status=$? 8829 grep -v '^ *+' conftest.er1 >conftest.err 8830 rm -f conftest.er1 8831 cat conftest.err >&5 8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8833 (exit $ac_status); } && 8834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8836 (eval $ac_try) 2>&5 8837 ac_status=$? 8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8839 (exit $ac_status); }; } && 8840 { ac_try='test -s conftest$ac_exeext' 8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8842 (eval $ac_try) 2>&5 8843 ac_status=$? 8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8845 (exit $ac_status); }; }; then 8846 ac_cv_lib_svld_dlopen=yes 8847else 8848 echo "$as_me: failed program was:" >&5 8849sed 's/^/| /' conftest.$ac_ext >&5 8850 8851ac_cv_lib_svld_dlopen=no 8852fi 8853rm -f conftest.err conftest.$ac_objext \ 8854 conftest$ac_exeext conftest.$ac_ext 8855LIBS=$ac_check_lib_save_LIBS 8856fi 8857echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8858echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8859if test $ac_cv_lib_svld_dlopen = yes; then 8860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8861else 8862 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8863echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8864if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8865 echo $ECHO_N "(cached) $ECHO_C" >&6 8866else 8867 ac_check_lib_save_LIBS=$LIBS 8868LIBS="-ldld $LIBS" 8869cat >conftest.$ac_ext <<_ACEOF 8870/* confdefs.h. */ 8871_ACEOF 8872cat confdefs.h >>conftest.$ac_ext 8873cat >>conftest.$ac_ext <<_ACEOF 8874/* end confdefs.h. */ 8875 8876/* Override any gcc2 internal prototype to avoid an error. */ 8877#ifdef __cplusplus 8878extern "C" 8879#endif 8880/* We use char because int might match the return type of a gcc2 8881 builtin and then its argument prototype would still apply. */ 8882char dld_link (); 8883int 8884main () 8885{ 8886dld_link (); 8887 ; 8888 return 0; 8889} 8890_ACEOF 8891rm -f conftest.$ac_objext conftest$ac_exeext 8892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8893 (eval $ac_link) 2>conftest.er1 8894 ac_status=$? 8895 grep -v '^ *+' conftest.er1 >conftest.err 8896 rm -f conftest.er1 8897 cat conftest.err >&5 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 (exit $ac_status); } && 8900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8902 (eval $ac_try) 2>&5 8903 ac_status=$? 8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8905 (exit $ac_status); }; } && 8906 { ac_try='test -s conftest$ac_exeext' 8907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8908 (eval $ac_try) 2>&5 8909 ac_status=$? 8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8911 (exit $ac_status); }; }; then 8912 ac_cv_lib_dld_dld_link=yes 8913else 8914 echo "$as_me: failed program was:" >&5 8915sed 's/^/| /' conftest.$ac_ext >&5 8916 8917ac_cv_lib_dld_dld_link=no 8918fi 8919rm -f conftest.err conftest.$ac_objext \ 8920 conftest$ac_exeext conftest.$ac_ext 8921LIBS=$ac_check_lib_save_LIBS 8922fi 8923echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8924echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8925if test $ac_cv_lib_dld_dld_link = yes; then 8926 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8927fi 8928 8929 8930fi 8931 8932 8933fi 8934 8935 8936fi 8937 8938 8939fi 8940 8941 8942fi 8943 8944 ;; 8945 esac 8946 8947 if test "x$lt_cv_dlopen" != xno; then 8948 enable_dlopen=yes 8949 else 8950 enable_dlopen=no 8951 fi 8952 8953 case $lt_cv_dlopen in 8954 dlopen) 8955 save_CPPFLAGS="$CPPFLAGS" 8956 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8957 8958 save_LDFLAGS="$LDFLAGS" 8959 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8960 8961 save_LIBS="$LIBS" 8962 LIBS="$lt_cv_dlopen_libs $LIBS" 8963 8964 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8965echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8966if test "${lt_cv_dlopen_self+set}" = set; then 8967 echo $ECHO_N "(cached) $ECHO_C" >&6 8968else 8969 if test "$cross_compiling" = yes; then : 8970 lt_cv_dlopen_self=cross 8971else 8972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8973 lt_status=$lt_dlunknown 8974 cat > conftest.$ac_ext <<EOF 8975#line 8975 "configure" 8976#include "confdefs.h" 8977 8978#if HAVE_DLFCN_H 8979#include <dlfcn.h> 8980#endif 8981 8982#include <stdio.h> 8983 8984#ifdef RTLD_GLOBAL 8985# define LT_DLGLOBAL RTLD_GLOBAL 8986#else 8987# ifdef DL_GLOBAL 8988# define LT_DLGLOBAL DL_GLOBAL 8989# else 8990# define LT_DLGLOBAL 0 8991# endif 8992#endif 8993 8994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8995 find out it does not work in some platform. */ 8996#ifndef LT_DLLAZY_OR_NOW 8997# ifdef RTLD_LAZY 8998# define LT_DLLAZY_OR_NOW RTLD_LAZY 8999# else 9000# ifdef DL_LAZY 9001# define LT_DLLAZY_OR_NOW DL_LAZY 9002# else 9003# ifdef RTLD_NOW 9004# define LT_DLLAZY_OR_NOW RTLD_NOW 9005# else 9006# ifdef DL_NOW 9007# define LT_DLLAZY_OR_NOW DL_NOW 9008# else 9009# define LT_DLLAZY_OR_NOW 0 9010# endif 9011# endif 9012# endif 9013# endif 9014#endif 9015 9016#ifdef __cplusplus 9017extern "C" void exit (int); 9018#endif 9019 9020void fnord() { int i=42;} 9021int main () 9022{ 9023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9024 int status = $lt_dlunknown; 9025 9026 if (self) 9027 { 9028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9030 /* dlclose (self); */ 9031 } 9032 9033 exit (status); 9034} 9035EOF 9036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9037 (eval $ac_link) 2>&5 9038 ac_status=$? 9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9040 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9041 (./conftest; exit; ) 2>/dev/null 9042 lt_status=$? 9043 case x$lt_status in 9044 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9045 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9046 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9047 esac 9048 else : 9049 # compilation failed 9050 lt_cv_dlopen_self=no 9051 fi 9052fi 9053rm -fr conftest* 9054 9055 9056fi 9057echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9058echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9059 9060 if test "x$lt_cv_dlopen_self" = xyes; then 9061 LDFLAGS="$LDFLAGS $link_static_flag" 9062 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9063echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9064if test "${lt_cv_dlopen_self_static+set}" = set; then 9065 echo $ECHO_N "(cached) $ECHO_C" >&6 9066else 9067 if test "$cross_compiling" = yes; then : 9068 lt_cv_dlopen_self_static=cross 9069else 9070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9071 lt_status=$lt_dlunknown 9072 cat > conftest.$ac_ext <<EOF 9073#line 9073 "configure" 9074#include "confdefs.h" 9075 9076#if HAVE_DLFCN_H 9077#include <dlfcn.h> 9078#endif 9079 9080#include <stdio.h> 9081 9082#ifdef RTLD_GLOBAL 9083# define LT_DLGLOBAL RTLD_GLOBAL 9084#else 9085# ifdef DL_GLOBAL 9086# define LT_DLGLOBAL DL_GLOBAL 9087# else 9088# define LT_DLGLOBAL 0 9089# endif 9090#endif 9091 9092/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9093 find out it does not work in some platform. */ 9094#ifndef LT_DLLAZY_OR_NOW 9095# ifdef RTLD_LAZY 9096# define LT_DLLAZY_OR_NOW RTLD_LAZY 9097# else 9098# ifdef DL_LAZY 9099# define LT_DLLAZY_OR_NOW DL_LAZY 9100# else 9101# ifdef RTLD_NOW 9102# define LT_DLLAZY_OR_NOW RTLD_NOW 9103# else 9104# ifdef DL_NOW 9105# define LT_DLLAZY_OR_NOW DL_NOW 9106# else 9107# define LT_DLLAZY_OR_NOW 0 9108# endif 9109# endif 9110# endif 9111# endif 9112#endif 9113 9114#ifdef __cplusplus 9115extern "C" void exit (int); 9116#endif 9117 9118void fnord() { int i=42;} 9119int main () 9120{ 9121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9122 int status = $lt_dlunknown; 9123 9124 if (self) 9125 { 9126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9128 /* dlclose (self); */ 9129 } 9130 9131 exit (status); 9132} 9133EOF 9134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9135 (eval $ac_link) 2>&5 9136 ac_status=$? 9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9138 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9139 (./conftest; exit; ) 2>/dev/null 9140 lt_status=$? 9141 case x$lt_status in 9142 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9143 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9144 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9145 esac 9146 else : 9147 # compilation failed 9148 lt_cv_dlopen_self_static=no 9149 fi 9150fi 9151rm -fr conftest* 9152 9153 9154fi 9155echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9156echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9157 fi 9158 9159 CPPFLAGS="$save_CPPFLAGS" 9160 LDFLAGS="$save_LDFLAGS" 9161 LIBS="$save_LIBS" 9162 ;; 9163 esac 9164 9165 case $lt_cv_dlopen_self in 9166 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9167 *) enable_dlopen_self=unknown ;; 9168 esac 9169 9170 case $lt_cv_dlopen_self_static in 9171 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9172 *) enable_dlopen_self_static=unknown ;; 9173 esac 9174fi 9175 9176 9177# Report which librarie types wil actually be built 9178echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9179echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9180echo "$as_me:$LINENO: result: $can_build_shared" >&5 9181echo "${ECHO_T}$can_build_shared" >&6 9182 9183echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9184echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9185test "$can_build_shared" = "no" && enable_shared=no 9186 9187# On AIX, shared libraries and static libraries use the same namespace, and 9188# are all built from PIC. 9189case "$host_os" in 9190aix3*) 9191 test "$enable_shared" = yes && enable_static=no 9192 if test -n "$RANLIB"; then 9193 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9194 postinstall_cmds='$RANLIB $lib' 9195 fi 9196 ;; 9197 9198aix4* | aix5*) 9199 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9200 test "$enable_shared" = yes && enable_static=no 9201 fi 9202 ;; 9203 darwin* | rhapsody*) 9204 if test "$GCC" = yes; then 9205 archive_cmds_need_lc=no 9206 case "$host_os" in 9207 rhapsody* | darwin1.[012]) 9208 allow_undefined_flag='-undefined suppress' 9209 ;; 9210 *) # Darwin 1.3 on 9211 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9212 allow_undefined_flag='-flat_namespace -undefined suppress' 9213 else 9214 case ${MACOSX_DEPLOYMENT_TARGET} in 9215 10.[012]) 9216 allow_undefined_flag='-flat_namespace -undefined suppress' 9217 ;; 9218 10.*) 9219 allow_undefined_flag='-undefined dynamic_lookup' 9220 ;; 9221 esac 9222 fi 9223 ;; 9224 esac 9225 output_verbose_link_cmd='echo' 9226 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 9227 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9228 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9229 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}' 9230 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}' 9231 hardcode_direct=no 9232 hardcode_automatic=yes 9233 hardcode_shlibpath_var=unsupported 9234 whole_archive_flag_spec='-all_load $convenience' 9235 link_all_deplibs=yes 9236 else 9237 ld_shlibs=no 9238 fi 9239 ;; 9240esac 9241echo "$as_me:$LINENO: result: $enable_shared" >&5 9242echo "${ECHO_T}$enable_shared" >&6 9243 9244echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9245echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9246# Make sure either enable_shared or enable_static is yes. 9247test "$enable_shared" = yes || enable_static=yes 9248echo "$as_me:$LINENO: result: $enable_static" >&5 9249echo "${ECHO_T}$enable_static" >&6 9250 9251# The else clause should only fire when bootstrapping the 9252# libtool distribution, otherwise you forgot to ship ltmain.sh 9253# with your package, and you will get complaints that there are 9254# no rules to generate ltmain.sh. 9255if test -f "$ltmain"; then 9256 # See if we are running on zsh, and set the options which allow our commands through 9257 # without removal of \ escapes. 9258 if test -n "${ZSH_VERSION+set}" ; then 9259 setopt NO_GLOB_SUBST 9260 fi 9261 # Now quote all the things that may contain metacharacters while being 9262 # careful not to overquote the AC_SUBSTed values. We take copies of the 9263 # variables and quote the copies for generation of the libtool script. 9264 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9265 SED SHELL STRIP \ 9266 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9267 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9268 deplibs_check_method reload_flag reload_cmds need_locks \ 9269 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9270 lt_cv_sys_global_symbol_to_c_name_address \ 9271 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9272 old_postinstall_cmds old_postuninstall_cmds \ 9273 compiler \ 9274 CC \ 9275 LD \ 9276 lt_prog_compiler_wl \ 9277 lt_prog_compiler_pic \ 9278 lt_prog_compiler_static \ 9279 lt_prog_compiler_no_builtin_flag \ 9280 export_dynamic_flag_spec \ 9281 thread_safe_flag_spec \ 9282 whole_archive_flag_spec \ 9283 enable_shared_with_static_runtimes \ 9284 old_archive_cmds \ 9285 old_archive_from_new_cmds \ 9286 predep_objects \ 9287 postdep_objects \ 9288 predeps \ 9289 postdeps \ 9290 compiler_lib_search_path \ 9291 archive_cmds \ 9292 archive_expsym_cmds \ 9293 postinstall_cmds \ 9294 postuninstall_cmds \ 9295 old_archive_from_expsyms_cmds \ 9296 allow_undefined_flag \ 9297 no_undefined_flag \ 9298 export_symbols_cmds \ 9299 hardcode_libdir_flag_spec \ 9300 hardcode_libdir_flag_spec_ld \ 9301 hardcode_libdir_separator \ 9302 hardcode_automatic \ 9303 module_cmds \ 9304 module_expsym_cmds \ 9305 lt_cv_prog_compiler_c_o \ 9306 exclude_expsyms \ 9307 include_expsyms; do 9308 9309 case $var in 9310 old_archive_cmds | \ 9311 old_archive_from_new_cmds | \ 9312 archive_cmds | \ 9313 archive_expsym_cmds | \ 9314 module_cmds | \ 9315 module_expsym_cmds | \ 9316 old_archive_from_expsyms_cmds | \ 9317 export_symbols_cmds | \ 9318 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9319 postinstall_cmds | postuninstall_cmds | \ 9320 old_postinstall_cmds | old_postuninstall_cmds | \ 9321 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9322 # Double-quote double-evaled strings. 9323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9324 ;; 9325 *) 9326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9327 ;; 9328 esac 9329 done 9330 9331 case $lt_echo in 9332 *'\$0 --fallback-echo"') 9333 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9334 ;; 9335 esac 9336 9337cfgfile="${ofile}T" 9338 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9339 $rm -f "$cfgfile" 9340 { echo "$as_me:$LINENO: creating $ofile" >&5 9341echo "$as_me: creating $ofile" >&6;} 9342 9343 cat <<__EOF__ >> "$cfgfile" 9344#! $SHELL 9345 9346# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9347# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9348# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9349# 9350# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9351# Free Software Foundation, Inc. 9352# 9353# This file is part of GNU Libtool: 9354# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9355# 9356# This program is free software; you can redistribute it and/or modify 9357# it under the terms of the GNU General Public License as published by 9358# the Free Software Foundation; either version 2 of the License, or 9359# (at your option) any later version. 9360# 9361# This program is distributed in the hope that it will be useful, but 9362# WITHOUT ANY WARRANTY; without even the implied warranty of 9363# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9364# General Public License for more details. 9365# 9366# You should have received a copy of the GNU General Public License 9367# along with this program; if not, write to the Free Software 9368# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9369# 9370# As a special exception to the GNU General Public License, if you 9371# distribute this file as part of a program that contains a 9372# configuration script generated by Autoconf, you may include it under 9373# the same distribution terms that you use for the rest of that program. 9374 9375# A sed program that does not truncate output. 9376SED=$lt_SED 9377 9378# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9379Xsed="$SED -e s/^X//" 9380 9381# The HP-UX ksh and POSIX shell print the target directory to stdout 9382# if CDPATH is set. 9383if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 9384 9385# The names of the tagged configurations supported by this script. 9386available_tags= 9387 9388# ### BEGIN LIBTOOL CONFIG 9389 9390# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9391 9392# Shell to use when invoking shell scripts. 9393SHELL=$lt_SHELL 9394 9395# Whether or not to build shared libraries. 9396build_libtool_libs=$enable_shared 9397 9398# Whether or not to build static libraries. 9399build_old_libs=$enable_static 9400 9401# Whether or not to add -lc for building shared libraries. 9402build_libtool_need_lc=$archive_cmds_need_lc 9403 9404# Whether or not to disallow shared libs when runtime libs are static 9405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9406 9407# Whether or not to optimize for fast installation. 9408fast_install=$enable_fast_install 9409 9410# The host system. 9411host_alias=$host_alias 9412host=$host 9413 9414# An echo program that does not interpret backslashes. 9415echo=$lt_echo 9416 9417# The archiver. 9418AR=$lt_AR 9419AR_FLAGS=$lt_AR_FLAGS 9420 9421# A C compiler. 9422LTCC=$lt_LTCC 9423 9424# A language-specific compiler. 9425CC=$lt_compiler 9426 9427# Is the compiler the GNU C compiler? 9428with_gcc=$GCC 9429 9430# An ERE matcher. 9431EGREP=$lt_EGREP 9432 9433# The linker used to build libraries. 9434LD=$lt_LD 9435 9436# Whether we need hard or soft links. 9437LN_S=$lt_LN_S 9438 9439# A BSD-compatible nm program. 9440NM=$lt_NM 9441 9442# A symbol stripping program 9443STRIP=$lt_STRIP 9444 9445# Used to examine libraries when file_magic_cmd begins "file" 9446MAGIC_CMD=$MAGIC_CMD 9447 9448# Used on cygwin: DLL creation program. 9449DLLTOOL="$DLLTOOL" 9450 9451# Used on cygwin: object dumper. 9452OBJDUMP="$OBJDUMP" 9453 9454# Used on cygwin: assembler. 9455AS="$AS" 9456 9457# The name of the directory that contains temporary libtool files. 9458objdir=$objdir 9459 9460# How to create reloadable object files. 9461reload_flag=$lt_reload_flag 9462reload_cmds=$lt_reload_cmds 9463 9464# How to pass a linker flag through the compiler. 9465wl=$lt_lt_prog_compiler_wl 9466 9467# Object file suffix (normally "o"). 9468objext="$ac_objext" 9469 9470# Old archive suffix (normally "a"). 9471libext="$libext" 9472 9473# Shared library suffix (normally ".so"). 9474shrext_cmds='$shrext_cmds' 9475 9476# Executable file suffix (normally ""). 9477exeext="$exeext" 9478 9479# Additional compiler flags for building library objects. 9480pic_flag=$lt_lt_prog_compiler_pic 9481pic_mode=$pic_mode 9482 9483# What is the maximum length of a command? 9484max_cmd_len=$lt_cv_sys_max_cmd_len 9485 9486# Does compiler simultaneously support -c and -o options? 9487compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9488 9489# Must we lock files when doing compilation ? 9490need_locks=$lt_need_locks 9491 9492# Do we need the lib prefix for modules? 9493need_lib_prefix=$need_lib_prefix 9494 9495# Do we need a version for libraries? 9496need_version=$need_version 9497 9498# Whether dlopen is supported. 9499dlopen_support=$enable_dlopen 9500 9501# Whether dlopen of programs is supported. 9502dlopen_self=$enable_dlopen_self 9503 9504# Whether dlopen of statically linked programs is supported. 9505dlopen_self_static=$enable_dlopen_self_static 9506 9507# Compiler flag to prevent dynamic linking. 9508link_static_flag=$lt_lt_prog_compiler_static 9509 9510# Compiler flag to turn off builtin functions. 9511no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9512 9513# Compiler flag to allow reflexive dlopens. 9514export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9515 9516# Compiler flag to generate shared objects directly from archives. 9517whole_archive_flag_spec=$lt_whole_archive_flag_spec 9518 9519# Compiler flag to generate thread-safe objects. 9520thread_safe_flag_spec=$lt_thread_safe_flag_spec 9521 9522# Library versioning type. 9523version_type=$version_type 9524 9525# Format of library name prefix. 9526libname_spec=$lt_libname_spec 9527 9528# List of archive names. First name is the real one, the rest are links. 9529# The last name is the one that the linker finds with -lNAME. 9530library_names_spec=$lt_library_names_spec 9531 9532# The coded name of the library, if different from the real name. 9533soname_spec=$lt_soname_spec 9534 9535# Commands used to build and install an old-style archive. 9536RANLIB=$lt_RANLIB 9537old_archive_cmds=$lt_old_archive_cmds 9538old_postinstall_cmds=$lt_old_postinstall_cmds 9539old_postuninstall_cmds=$lt_old_postuninstall_cmds 9540 9541# Create an old-style archive from a shared archive. 9542old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9543 9544# Create a temporary old-style archive to link instead of a shared archive. 9545old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9546 9547# Commands used to build and install a shared archive. 9548archive_cmds=$lt_archive_cmds 9549archive_expsym_cmds=$lt_archive_expsym_cmds 9550postinstall_cmds=$lt_postinstall_cmds 9551postuninstall_cmds=$lt_postuninstall_cmds 9552 9553# Commands used to build a loadable module (assumed same as above if empty) 9554module_cmds=$lt_module_cmds 9555module_expsym_cmds=$lt_module_expsym_cmds 9556 9557# Commands to strip libraries. 9558old_striplib=$lt_old_striplib 9559striplib=$lt_striplib 9560 9561# Dependencies to place before the objects being linked to create a 9562# shared library. 9563predep_objects=$lt_predep_objects 9564 9565# Dependencies to place after the objects being linked to create a 9566# shared library. 9567postdep_objects=$lt_postdep_objects 9568 9569# Dependencies to place before the objects being linked to create a 9570# shared library. 9571predeps=$lt_predeps 9572 9573# Dependencies to place after the objects being linked to create a 9574# shared library. 9575postdeps=$lt_postdeps 9576 9577# The library search path used internally by the compiler when linking 9578# a shared library. 9579compiler_lib_search_path=$lt_compiler_lib_search_path 9580 9581# Method to check whether dependent libraries are shared objects. 9582deplibs_check_method=$lt_deplibs_check_method 9583 9584# Command to use when deplibs_check_method == file_magic. 9585file_magic_cmd=$lt_file_magic_cmd 9586 9587# Flag that allows shared libraries with undefined symbols to be built. 9588allow_undefined_flag=$lt_allow_undefined_flag 9589 9590# Flag that forces no undefined symbols. 9591no_undefined_flag=$lt_no_undefined_flag 9592 9593# Commands used to finish a libtool library installation in a directory. 9594finish_cmds=$lt_finish_cmds 9595 9596# Same as above, but a single script fragment to be evaled but not shown. 9597finish_eval=$lt_finish_eval 9598 9599# Take the output of nm and produce a listing of raw symbols and C names. 9600global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9601 9602# Transform the output of nm in a proper C declaration 9603global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9604 9605# Transform the output of nm in a C name address pair 9606global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9607 9608# This is the shared library runtime path variable. 9609runpath_var=$runpath_var 9610 9611# This is the shared library path variable. 9612shlibpath_var=$shlibpath_var 9613 9614# Is shlibpath searched before the hard-coded library search path? 9615shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9616 9617# How to hardcode a shared library path into an executable. 9618hardcode_action=$hardcode_action 9619 9620# Whether we should hardcode library paths into libraries. 9621hardcode_into_libs=$hardcode_into_libs 9622 9623# Flag to hardcode \$libdir into a binary during linking. 9624# This must work even if \$libdir does not exist. 9625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9626 9627# If ld is used when linking, flag to hardcode \$libdir into 9628# a binary during linking. This must work even if \$libdir does 9629# not exist. 9630hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9631 9632# Whether we need a single -rpath flag with a separated argument. 9633hardcode_libdir_separator=$lt_hardcode_libdir_separator 9634 9635# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9636# resulting binary. 9637hardcode_direct=$hardcode_direct 9638 9639# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9640# resulting binary. 9641hardcode_minus_L=$hardcode_minus_L 9642 9643# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9644# the resulting binary. 9645hardcode_shlibpath_var=$hardcode_shlibpath_var 9646 9647# Set to yes if building a shared library automatically hardcodes DIR into the library 9648# and all subsequent libraries and executables linked against it. 9649hardcode_automatic=$hardcode_automatic 9650 9651# Variables whose values should be saved in libtool wrapper scripts and 9652# restored at relink time. 9653variables_saved_for_relink="$variables_saved_for_relink" 9654 9655# Whether libtool must link a program against all its dependency libraries. 9656link_all_deplibs=$link_all_deplibs 9657 9658# Compile-time system search path for libraries 9659sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9660 9661# Run-time system search path for libraries 9662sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9663 9664# Fix the shell variable \$srcfile for the compiler. 9665fix_srcfile_path="$fix_srcfile_path" 9666 9667# Set to yes if exported symbols are required. 9668always_export_symbols=$always_export_symbols 9669 9670# The commands to list exported symbols. 9671export_symbols_cmds=$lt_export_symbols_cmds 9672 9673# The commands to extract the exported symbol list from a shared archive. 9674extract_expsyms_cmds=$lt_extract_expsyms_cmds 9675 9676# Symbols that should not be listed in the preloaded symbols. 9677exclude_expsyms=$lt_exclude_expsyms 9678 9679# Symbols that must always be exported. 9680include_expsyms=$lt_include_expsyms 9681 9682# ### END LIBTOOL CONFIG 9683 9684__EOF__ 9685 9686 9687 case $host_os in 9688 aix3*) 9689 cat <<\EOF >> "$cfgfile" 9690 9691# AIX sometimes has problems with the GCC collect2 program. For some 9692# reason, if we set the COLLECT_NAMES environment variable, the problems 9693# vanish in a puff of smoke. 9694if test "X${COLLECT_NAMES+set}" != Xset; then 9695 COLLECT_NAMES= 9696 export COLLECT_NAMES 9697fi 9698EOF 9699 ;; 9700 esac 9701 9702 # We use sed instead of cat because bash on DJGPP gets confused if 9703 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9704 # text mode, it properly converts lines to CR/LF. This bash problem 9705 # is reportedly fixed, but why not run on old versions too? 9706 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9707 9708 mv -f "$cfgfile" "$ofile" || \ 9709 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9710 chmod +x "$ofile" 9711 9712else 9713 # If there is no Makefile yet, we rely on a make rule to execute 9714 # `config.status --recheck' to rerun these tests and create the 9715 # libtool script then. 9716 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9717 if test -f "$ltmain_in"; then 9718 test -f Makefile && make "$ltmain" 9719 fi 9720fi 9721 9722 9723ac_ext=c 9724ac_cpp='$CPP $CPPFLAGS' 9725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9727ac_compiler_gnu=$ac_cv_c_compiler_gnu 9728 9729CC="$lt_save_CC" 9730 9731 9732# Check whether --with-tags or --without-tags was given. 9733if test "${with_tags+set}" = set; then 9734 withval="$with_tags" 9735 tagnames="$withval" 9736fi; 9737 9738if test -f "$ltmain" && test -n "$tagnames"; then 9739 if test ! -f "${ofile}"; then 9740 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9741echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9742 fi 9743 9744 if test -z "$LTCC"; then 9745 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9746 if test -z "$LTCC"; then 9747 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9748echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9749 else 9750 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9751echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9752 fi 9753 fi 9754 9755 # Extract list of available tagged configurations in $ofile. 9756 # Note that this assumes the entire list is on one line. 9757 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9758 9759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9760 for tagname in $tagnames; do 9761 IFS="$lt_save_ifs" 9762 # Check whether tagname contains only valid characters 9763 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9764 "") ;; 9765 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9766echo "$as_me: error: invalid tag name: $tagname" >&2;} 9767 { (exit 1); exit 1; }; } 9768 ;; 9769 esac 9770 9771 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9772 then 9773 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9774echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9775 { (exit 1); exit 1; }; } 9776 fi 9777 9778 # Update the list of available tags. 9779 if test -n "$tagname"; then 9780 echo appending configuration tag \"$tagname\" to $ofile 9781 9782 case $tagname in 9783 CXX) 9784 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9785 ac_ext=cc 9786ac_cpp='$CXXCPP $CPPFLAGS' 9787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9790 9791 9792 9793 9794archive_cmds_need_lc_CXX=no 9795allow_undefined_flag_CXX= 9796always_export_symbols_CXX=no 9797archive_expsym_cmds_CXX= 9798export_dynamic_flag_spec_CXX= 9799hardcode_direct_CXX=no 9800hardcode_libdir_flag_spec_CXX= 9801hardcode_libdir_flag_spec_ld_CXX= 9802hardcode_libdir_separator_CXX= 9803hardcode_minus_L_CXX=no 9804hardcode_automatic_CXX=no 9805module_cmds_CXX= 9806module_expsym_cmds_CXX= 9807link_all_deplibs_CXX=unknown 9808old_archive_cmds_CXX=$old_archive_cmds 9809no_undefined_flag_CXX= 9810whole_archive_flag_spec_CXX= 9811enable_shared_with_static_runtimes_CXX=no 9812 9813# Dependencies to place before and after the object being linked: 9814predep_objects_CXX= 9815postdep_objects_CXX= 9816predeps_CXX= 9817postdeps_CXX= 9818compiler_lib_search_path_CXX= 9819 9820# Source file extension for C++ test sources. 9821ac_ext=cc 9822 9823# Object file extension for compiled C++ test sources. 9824objext=o 9825objext_CXX=$objext 9826 9827# Code to be used in simple compile tests 9828lt_simple_compile_test_code="int some_variable = 0;\n" 9829 9830# Code to be used in simple link tests 9831lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9832 9833# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9834 9835# If no C compiler was specified, use CC. 9836LTCC=${LTCC-"$CC"} 9837 9838# Allow CC to be a program name with arguments. 9839compiler=$CC 9840 9841 9842# Allow CC to be a program name with arguments. 9843lt_save_CC=$CC 9844lt_save_LD=$LD 9845lt_save_GCC=$GCC 9846GCC=$GXX 9847lt_save_with_gnu_ld=$with_gnu_ld 9848lt_save_path_LD=$lt_cv_path_LD 9849if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9850 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9851else 9852 unset lt_cv_prog_gnu_ld 9853fi 9854if test -n "${lt_cv_path_LDCXX+set}"; then 9855 lt_cv_path_LD=$lt_cv_path_LDCXX 9856else 9857 unset lt_cv_path_LD 9858fi 9859test -z "${LDCXX+set}" || LD=$LDCXX 9860CC=${CXX-"c++"} 9861compiler=$CC 9862compiler_CXX=$CC 9863cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9864 9865# We don't want -fno-exception wen compiling C++ code, so set the 9866# no_builtin_flag separately 9867if test "$GXX" = yes; then 9868 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9869else 9870 lt_prog_compiler_no_builtin_flag_CXX= 9871fi 9872 9873if test "$GXX" = yes; then 9874 # Set up default GNU C++ configuration 9875 9876 9877# Check whether --with-gnu-ld or --without-gnu-ld was given. 9878if test "${with_gnu_ld+set}" = set; then 9879 withval="$with_gnu_ld" 9880 test "$withval" = no || with_gnu_ld=yes 9881else 9882 with_gnu_ld=no 9883fi; 9884ac_prog=ld 9885if test "$GCC" = yes; then 9886 # Check if gcc -print-prog-name=ld gives a path. 9887 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9888echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9889 case $host in 9890 *-*-mingw*) 9891 # gcc leaves a trailing carriage return which upsets mingw 9892 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9893 *) 9894 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9895 esac 9896 case $ac_prog in 9897 # Accept absolute paths. 9898 [\\/]* | ?:[\\/]*) 9899 re_direlt='/[^/][^/]*/\.\./' 9900 # Canonicalize the pathname of ld 9901 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9902 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9903 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9904 done 9905 test -z "$LD" && LD="$ac_prog" 9906 ;; 9907 "") 9908 # If it fails, then pretend we aren't using GCC. 9909 ac_prog=ld 9910 ;; 9911 *) 9912 # If it is relative, then search for the first ld in PATH. 9913 with_gnu_ld=unknown 9914 ;; 9915 esac 9916elif test "$with_gnu_ld" = yes; then 9917 echo "$as_me:$LINENO: checking for GNU ld" >&5 9918echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9919else 9920 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9921echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9922fi 9923if test "${lt_cv_path_LD+set}" = set; then 9924 echo $ECHO_N "(cached) $ECHO_C" >&6 9925else 9926 if test -z "$LD"; then 9927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9928 for ac_dir in $PATH; do 9929 IFS="$lt_save_ifs" 9930 test -z "$ac_dir" && ac_dir=. 9931 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9932 lt_cv_path_LD="$ac_dir/$ac_prog" 9933 # Check to see if the program is GNU ld. I'd rather use --version, 9934 # but apparently some GNU ld's only accept -v. 9935 # Break only if it was the GNU/non-GNU ld that we prefer. 9936 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9937 *GNU* | *'with BFD'*) 9938 test "$with_gnu_ld" != no && break 9939 ;; 9940 *) 9941 test "$with_gnu_ld" != yes && break 9942 ;; 9943 esac 9944 fi 9945 done 9946 IFS="$lt_save_ifs" 9947else 9948 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9949fi 9950fi 9951 9952LD="$lt_cv_path_LD" 9953if test -n "$LD"; then 9954 echo "$as_me:$LINENO: result: $LD" >&5 9955echo "${ECHO_T}$LD" >&6 9956else 9957 echo "$as_me:$LINENO: result: no" >&5 9958echo "${ECHO_T}no" >&6 9959fi 9960test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9961echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9962 { (exit 1); exit 1; }; } 9963echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9964echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9965if test "${lt_cv_prog_gnu_ld+set}" = set; then 9966 echo $ECHO_N "(cached) $ECHO_C" >&6 9967else 9968 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9969case `$LD -v 2>&1 </dev/null` in 9970*GNU* | *'with BFD'*) 9971 lt_cv_prog_gnu_ld=yes 9972 ;; 9973*) 9974 lt_cv_prog_gnu_ld=no 9975 ;; 9976esac 9977fi 9978echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9979echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9980with_gnu_ld=$lt_cv_prog_gnu_ld 9981 9982 9983 9984 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9985 # archiving commands below assume that GNU ld is being used. 9986 if test "$with_gnu_ld" = yes; then 9987 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9988 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' 9989 9990 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9992 9993 # If archive_cmds runs LD, not CC, wlarc should be empty 9994 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9995 # investigate it a little bit more. (MM) 9996 wlarc='${wl}' 9997 9998 # ancient GNU ld didn't support --whole-archive et. al. 9999 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10000 grep 'no-whole-archive' > /dev/null; then 10001 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10002 else 10003 whole_archive_flag_spec_CXX= 10004 fi 10005 else 10006 with_gnu_ld=no 10007 wlarc= 10008 10009 # A generic and very simple default shared library creation 10010 # command for GNU C++ for the case where it uses the native 10011 # linker, instead of GNU ld. If possible, this setting should 10012 # overridden to take advantage of the native linker features on 10013 # the platform it is being used on. 10014 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10015 fi 10016 10017 # Commands to make compiler produce verbose output that lists 10018 # what "hidden" libraries, object files and flags are used when 10019 # linking a shared library. 10020 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10021 10022else 10023 GXX=no 10024 with_gnu_ld=no 10025 wlarc= 10026fi 10027 10028# PORTME: fill in a description of your system's C++ link characteristics 10029echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10030echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10031ld_shlibs_CXX=yes 10032case $host_os in 10033 aix3*) 10034 # FIXME: insert proper C++ library support 10035 ld_shlibs_CXX=no 10036 ;; 10037 aix4* | aix5*) 10038 if test "$host_cpu" = ia64; then 10039 # On IA64, the linker does run time linking by default, so we don't 10040 # have to do anything special. 10041 aix_use_runtimelinking=no 10042 exp_sym_flag='-Bexport' 10043 no_entry_flag="" 10044 else 10045 aix_use_runtimelinking=no 10046 10047 # Test if we are trying to use run time linking or normal 10048 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10049 # need to do runtime linking. 10050 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10051 for ld_flag in $LDFLAGS; do 10052 case $ld_flag in 10053 *-brtl*) 10054 aix_use_runtimelinking=yes 10055 break 10056 ;; 10057 esac 10058 done 10059 esac 10060 10061 exp_sym_flag='-bexport' 10062 no_entry_flag='-bnoentry' 10063 fi 10064 10065 # When large executables or shared objects are built, AIX ld can 10066 # have problems creating the table of contents. If linking a library 10067 # or program results in "error TOC overflow" add -mminimal-toc to 10068 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10069 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10070 10071 archive_cmds_CXX='' 10072 hardcode_direct_CXX=yes 10073 hardcode_libdir_separator_CXX=':' 10074 link_all_deplibs_CXX=yes 10075 10076 if test "$GXX" = yes; then 10077 case $host_os in aix4.012|aix4.012.*) 10078 # We only want to do this on AIX 4.2 and lower, the check 10079 # below for broken collect2 doesn't work under 4.3+ 10080 collect2name=`${CC} -print-prog-name=collect2` 10081 if test -f "$collect2name" && \ 10082 strings "$collect2name" | grep resolve_lib_name >/dev/null 10083 then 10084 # We have reworked collect2 10085 hardcode_direct_CXX=yes 10086 else 10087 # We have old collect2 10088 hardcode_direct_CXX=unsupported 10089 # It fails to find uninstalled libraries when the uninstalled 10090 # path is not listed in the libpath. Setting hardcode_minus_L 10091 # to unsupported forces relinking 10092 hardcode_minus_L_CXX=yes 10093 hardcode_libdir_flag_spec_CXX='-L$libdir' 10094 hardcode_libdir_separator_CXX= 10095 fi 10096 esac 10097 shared_flag='-shared' 10098 else 10099 # not using gcc 10100 if test "$host_cpu" = ia64; then 10101 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10102 # chokes on -Wl,-G. The following line is correct: 10103 shared_flag='-G' 10104 else 10105 if test "$aix_use_runtimelinking" = yes; then 10106 shared_flag='${wl}-G' 10107 else 10108 shared_flag='${wl}-bM:SRE' 10109 fi 10110 fi 10111 fi 10112 10113 # It seems that -bexpall does not export symbols beginning with 10114 # underscore (_), so it is better to generate a list of symbols to export. 10115 always_export_symbols_CXX=yes 10116 if test "$aix_use_runtimelinking" = yes; then 10117 # Warning - without using the other runtime loading flags (-brtl), 10118 # -berok will link without error, but may produce a broken library. 10119 allow_undefined_flag_CXX='-berok' 10120 # Determine the default libpath from the value encoded in an empty executable. 10121 cat >conftest.$ac_ext <<_ACEOF 10122/* confdefs.h. */ 10123_ACEOF 10124cat confdefs.h >>conftest.$ac_ext 10125cat >>conftest.$ac_ext <<_ACEOF 10126/* end confdefs.h. */ 10127 10128int 10129main () 10130{ 10131 10132 ; 10133 return 0; 10134} 10135_ACEOF 10136rm -f conftest.$ac_objext conftest$ac_exeext 10137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10138 (eval $ac_link) 2>conftest.er1 10139 ac_status=$? 10140 grep -v '^ *+' conftest.er1 >conftest.err 10141 rm -f conftest.er1 10142 cat conftest.err >&5 10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10144 (exit $ac_status); } && 10145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10147 (eval $ac_try) 2>&5 10148 ac_status=$? 10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10150 (exit $ac_status); }; } && 10151 { ac_try='test -s conftest$ac_exeext' 10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10153 (eval $ac_try) 2>&5 10154 ac_status=$? 10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10156 (exit $ac_status); }; }; then 10157 10158aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10159}'` 10160# Check for a 64-bit object if we didn't find anything. 10161if 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; } 10162}'`; fi 10163else 10164 echo "$as_me: failed program was:" >&5 10165sed 's/^/| /' conftest.$ac_ext >&5 10166 10167fi 10168rm -f conftest.err conftest.$ac_objext \ 10169 conftest$ac_exeext conftest.$ac_ext 10170if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10171 10172 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10173 10174 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10175 else 10176 if test "$host_cpu" = ia64; then 10177 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10178 allow_undefined_flag_CXX="-z nodefs" 10179 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 10180 else 10181 # Determine the default libpath from the value encoded in an empty executable. 10182 cat >conftest.$ac_ext <<_ACEOF 10183/* confdefs.h. */ 10184_ACEOF 10185cat confdefs.h >>conftest.$ac_ext 10186cat >>conftest.$ac_ext <<_ACEOF 10187/* end confdefs.h. */ 10188 10189int 10190main () 10191{ 10192 10193 ; 10194 return 0; 10195} 10196_ACEOF 10197rm -f conftest.$ac_objext conftest$ac_exeext 10198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10199 (eval $ac_link) 2>conftest.er1 10200 ac_status=$? 10201 grep -v '^ *+' conftest.er1 >conftest.err 10202 rm -f conftest.er1 10203 cat conftest.err >&5 10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10205 (exit $ac_status); } && 10206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10208 (eval $ac_try) 2>&5 10209 ac_status=$? 10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10211 (exit $ac_status); }; } && 10212 { ac_try='test -s conftest$ac_exeext' 10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10214 (eval $ac_try) 2>&5 10215 ac_status=$? 10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10217 (exit $ac_status); }; }; then 10218 10219aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10220}'` 10221# Check for a 64-bit object if we didn't find anything. 10222if 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; } 10223}'`; fi 10224else 10225 echo "$as_me: failed program was:" >&5 10226sed 's/^/| /' conftest.$ac_ext >&5 10227 10228fi 10229rm -f conftest.err conftest.$ac_objext \ 10230 conftest$ac_exeext conftest.$ac_ext 10231if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10232 10233 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10234 # Warning - without using the other run time loading flags, 10235 # -berok will link without error, but may produce a broken library. 10236 no_undefined_flag_CXX=' ${wl}-bernotok' 10237 allow_undefined_flag_CXX=' ${wl}-berok' 10238 # -bexpall does not export symbols beginning with underscore (_) 10239 always_export_symbols_CXX=yes 10240 # Exported symbols can be pulled into shared objects from archives 10241 whole_archive_flag_spec_CXX=' ' 10242 archive_cmds_need_lc_CXX=yes 10243 # This is similar to how AIX traditionally builds it's shared libraries. 10244 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10245 fi 10246 fi 10247 ;; 10248 chorus*) 10249 case $cc_basename in 10250 *) 10251 # FIXME: insert proper C++ library support 10252 ld_shlibs_CXX=no 10253 ;; 10254 esac 10255 ;; 10256 10257 cygwin* | mingw* | pw32*) 10258 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10259 # as there is no search path for DLLs. 10260 hardcode_libdir_flag_spec_CXX='-L$libdir' 10261 allow_undefined_flag_CXX=unsupported 10262 always_export_symbols_CXX=no 10263 enable_shared_with_static_runtimes_CXX=yes 10264 10265 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10266 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10267 # If the export-symbols file already is a .def file (1st line 10268 # is EXPORTS), use it as is; otherwise, prepend... 10269 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10270 cp $export_symbols $output_objdir/$soname.def; 10271 else 10272 echo EXPORTS > $output_objdir/$soname.def; 10273 cat $export_symbols >> $output_objdir/$soname.def; 10274 fi~ 10275 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10276 else 10277 ld_shlibs_CXX=no 10278 fi 10279 ;; 10280 10281 darwin* | rhapsody*) 10282 if test "$GXX" = yes; then 10283 archive_cmds_need_lc_CXX=no 10284 case "$host_os" in 10285 rhapsody* | darwin1.[012]) 10286 allow_undefined_flag_CXX='-undefined suppress' 10287 ;; 10288 *) # Darwin 1.3 on 10289 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10290 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10291 else 10292 case ${MACOSX_DEPLOYMENT_TARGET} in 10293 10.[012]) 10294 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10295 ;; 10296 10.*) 10297 allow_undefined_flag_CXX='-undefined dynamic_lookup' 10298 ;; 10299 esac 10300 fi 10301 ;; 10302 esac 10303 lt_int_apple_cc_single_mod=no 10304 output_verbose_link_cmd='echo' 10305 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 10306 lt_int_apple_cc_single_mod=yes 10307 fi 10308 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10309 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10310 else 10311 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10312 fi 10313 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10314 10315 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10316 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10317 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}' 10318 else 10319 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10320 fi 10321 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}' 10322 hardcode_direct_CXX=no 10323 hardcode_automatic_CXX=yes 10324 hardcode_shlibpath_var_CXX=unsupported 10325 whole_archive_flag_spec_CXX='-all_load $convenience' 10326 link_all_deplibs_CXX=yes 10327 else 10328 ld_shlibs_CXX=no 10329 fi 10330 ;; 10331 10332 dgux*) 10333 case $cc_basename in 10334 ec++) 10335 # FIXME: insert proper C++ library support 10336 ld_shlibs_CXX=no 10337 ;; 10338 ghcx) 10339 # Green Hills C++ Compiler 10340 # FIXME: insert proper C++ library support 10341 ld_shlibs_CXX=no 10342 ;; 10343 *) 10344 # FIXME: insert proper C++ library support 10345 ld_shlibs_CXX=no 10346 ;; 10347 esac 10348 ;; 10349 freebsd12*) 10350 # C++ shared libraries reported to be fairly broken before switch to ELF 10351 ld_shlibs_CXX=no 10352 ;; 10353 freebsd-elf*) 10354 archive_cmds_need_lc_CXX=no 10355 ;; 10356 freebsd* | kfreebsd*-gnu) 10357 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10358 # conventions 10359 ld_shlibs_CXX=yes 10360 ;; 10361 gnu*) 10362 ;; 10363 hpux9*) 10364 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10365 hardcode_libdir_separator_CXX=: 10366 export_dynamic_flag_spec_CXX='${wl}-E' 10367 hardcode_direct_CXX=yes 10368 hardcode_minus_L_CXX=yes # Not in the search PATH, 10369 # but as the default 10370 # location of the library. 10371 10372 case $cc_basename in 10373 CC) 10374 # FIXME: insert proper C++ library support 10375 ld_shlibs_CXX=no 10376 ;; 10377 aCC) 10378 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' 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 -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' 10388 ;; 10389 *) 10390 if test "$GXX" = yes; then 10391 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' 10392 else 10393 # FIXME: insert proper C++ library support 10394 ld_shlibs_CXX=no 10395 fi 10396 ;; 10397 esac 10398 ;; 10399 hpux10*|hpux11*) 10400 if test $with_gnu_ld = no; then 10401 case "$host_cpu" in 10402 hppa*64*) 10403 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10404 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10405 hardcode_libdir_separator_CXX=: 10406 ;; 10407 ia64*) 10408 hardcode_libdir_flag_spec_CXX='-L$libdir' 10409 ;; 10410 *) 10411 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10412 hardcode_libdir_separator_CXX=: 10413 export_dynamic_flag_spec_CXX='${wl}-E' 10414 ;; 10415 esac 10416 fi 10417 case "$host_cpu" in 10418 hppa*64*) 10419 hardcode_direct_CXX=no 10420 hardcode_shlibpath_var_CXX=no 10421 ;; 10422 ia64*) 10423 hardcode_direct_CXX=no 10424 hardcode_shlibpath_var_CXX=no 10425 hardcode_minus_L_CXX=yes # Not in the search PATH, 10426 # but as the default 10427 # location of the library. 10428 ;; 10429 *) 10430 hardcode_direct_CXX=yes 10431 hardcode_minus_L_CXX=yes # Not in the search PATH, 10432 # but as the default 10433 # location of the library. 10434 ;; 10435 esac 10436 10437 case $cc_basename in 10438 CC) 10439 # FIXME: insert proper C++ library support 10440 ld_shlibs_CXX=no 10441 ;; 10442 aCC) 10443 case "$host_cpu" in 10444 hppa*64*|ia64*) 10445 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10446 ;; 10447 *) 10448 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10449 ;; 10450 esac 10451 # Commands to make compiler produce verbose output that lists 10452 # what "hidden" libraries, object files and flags are used when 10453 # linking a shared library. 10454 # 10455 # There doesn't appear to be a way to prevent this compiler from 10456 # explicitly linking system object files so we need to strip them 10457 # from the output so that they don't get included in the library 10458 # dependencies. 10459 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' 10460 ;; 10461 *) 10462 if test "$GXX" = yes; then 10463 if test $with_gnu_ld = no; then 10464 case "$host_cpu" in 10465 ia64*|hppa*64*) 10466 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10467 ;; 10468 *) 10469 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' 10470 ;; 10471 esac 10472 fi 10473 else 10474 # FIXME: insert proper C++ library support 10475 ld_shlibs_CXX=no 10476 fi 10477 ;; 10478 esac 10479 ;; 10480 irix5* | irix6*) 10481 case $cc_basename in 10482 CC) 10483 # SGI C++ 10484 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10485 10486 # Archives containing C++ object files must be created using 10487 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10488 # necessary to make sure instantiated templates are included 10489 # in the archive. 10490 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10491 ;; 10492 *) 10493 if test "$GXX" = yes; then 10494 if test "$with_gnu_ld" = no; then 10495 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 10496 else 10497 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' 10498 fi 10499 fi 10500 link_all_deplibs_CXX=yes 10501 ;; 10502 esac 10503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10504 hardcode_libdir_separator_CXX=: 10505 ;; 10506 linux*) 10507 case $cc_basename in 10508 KCC) 10509 # Kuck and Associates, Inc. (KAI) C++ Compiler 10510 10511 # KCC will only create a shared library if the output file 10512 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10513 # to its proper name (with version) after linking. 10514 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' 10515 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' 10516 # Commands to make compiler produce verbose output that lists 10517 # what "hidden" libraries, object files and flags are used when 10518 # linking a shared library. 10519 # 10520 # There doesn't appear to be a way to prevent this compiler from 10521 # explicitly linking system object files so we need to strip them 10522 # from the output so that they don't get included in the library 10523 # dependencies. 10524 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' 10525 10526 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10528 10529 # Archives containing C++ object files must be created using 10530 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10531 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10532 ;; 10533 icpc) 10534 # Intel C++ 10535 with_gnu_ld=yes 10536 archive_cmds_need_lc_CXX=no 10537 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10538 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' 10539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10540 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10541 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10542 ;; 10543 cxx) 10544 # Compaq C++ 10545 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10546 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' 10547 10548 runpath_var=LD_RUN_PATH 10549 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10550 hardcode_libdir_separator_CXX=: 10551 10552 # Commands to make compiler produce verbose output that lists 10553 # what "hidden" libraries, object files and flags are used when 10554 # linking a shared library. 10555 # 10556 # There doesn't appear to be a way to prevent this compiler from 10557 # explicitly linking system object files so we need to strip them 10558 # from the output so that they don't get included in the library 10559 # dependencies. 10560 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' 10561 ;; 10562 esac 10563 ;; 10564 lynxos*) 10565 # FIXME: insert proper C++ library support 10566 ld_shlibs_CXX=no 10567 ;; 10568 m88k*) 10569 # FIXME: insert proper C++ library support 10570 ld_shlibs_CXX=no 10571 ;; 10572 mvs*) 10573 case $cc_basename in 10574 cxx) 10575 # FIXME: insert proper C++ library support 10576 ld_shlibs_CXX=no 10577 ;; 10578 *) 10579 # FIXME: insert proper C++ library support 10580 ld_shlibs_CXX=no 10581 ;; 10582 esac 10583 ;; 10584 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 10585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10586 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10587 wlarc= 10588 hardcode_libdir_flag_spec_CXX='-R$libdir' 10589 hardcode_direct_CXX=yes 10590 hardcode_shlibpath_var_CXX=no 10591 fi 10592 # Workaround some broken pre-1.5 toolchains 10593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10594 ;; 10595 osf3*) 10596 case $cc_basename in 10597 KCC) 10598 # Kuck and Associates, Inc. (KAI) C++ Compiler 10599 10600 # KCC will only create a shared library if the output file 10601 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10602 # to its proper name (with version) after linking. 10603 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' 10604 10605 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10606 hardcode_libdir_separator_CXX=: 10607 10608 # Archives containing C++ object files must be created using 10609 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10610 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10611 10612 ;; 10613 RCC) 10614 # Rational C++ 2.4.1 10615 # FIXME: insert proper C++ library support 10616 ld_shlibs_CXX=no 10617 ;; 10618 cxx) 10619 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10620 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10621 10622 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10623 hardcode_libdir_separator_CXX=: 10624 10625 # Commands to make compiler produce verbose output that lists 10626 # what "hidden" libraries, object files and flags are used when 10627 # linking a shared library. 10628 # 10629 # There doesn't appear to be a way to prevent this compiler from 10630 # explicitly linking system object files so we need to strip them 10631 # from the output so that they don't get included in the library 10632 # dependencies. 10633 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' 10634 ;; 10635 *) 10636 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10637 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10638 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 10639 10640 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10641 hardcode_libdir_separator_CXX=: 10642 10643 # Commands to make compiler produce verbose output that lists 10644 # what "hidden" libraries, object files and flags are used when 10645 # linking a shared library. 10646 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10647 10648 else 10649 # FIXME: insert proper C++ library support 10650 ld_shlibs_CXX=no 10651 fi 10652 ;; 10653 esac 10654 ;; 10655 osf4* | osf5*) 10656 case $cc_basename in 10657 KCC) 10658 # Kuck and Associates, Inc. (KAI) C++ Compiler 10659 10660 # KCC will only create a shared library if the output file 10661 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10662 # to its proper name (with version) after linking. 10663 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' 10664 10665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10666 hardcode_libdir_separator_CXX=: 10667 10668 # Archives containing C++ object files must be created using 10669 # the KAI C++ compiler. 10670 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10671 ;; 10672 RCC) 10673 # Rational C++ 2.4.1 10674 # FIXME: insert proper C++ library support 10675 ld_shlibs_CXX=no 10676 ;; 10677 cxx) 10678 allow_undefined_flag_CXX=' -expect_unresolved \*' 10679 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10680 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10681 echo "-hidden">> $lib.exp~ 10682 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ 10683 $rm $lib.exp' 10684 10685 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10686 hardcode_libdir_separator_CXX=: 10687 10688 # Commands to make compiler produce verbose output that lists 10689 # what "hidden" libraries, object files and flags are used when 10690 # linking a shared library. 10691 # 10692 # There doesn't appear to be a way to prevent this compiler from 10693 # explicitly linking system object files so we need to strip them 10694 # from the output so that they don't get included in the library 10695 # dependencies. 10696 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' 10697 ;; 10698 *) 10699 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10700 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10701 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 10702 10703 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10704 hardcode_libdir_separator_CXX=: 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 -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10710 10711 else 10712 # FIXME: insert proper C++ library support 10713 ld_shlibs_CXX=no 10714 fi 10715 ;; 10716 esac 10717 ;; 10718 psos*) 10719 # FIXME: insert proper C++ library support 10720 ld_shlibs_CXX=no 10721 ;; 10722 sco*) 10723 archive_cmds_need_lc_CXX=no 10724 case $cc_basename in 10725 CC) 10726 # FIXME: insert proper C++ library support 10727 ld_shlibs_CXX=no 10728 ;; 10729 *) 10730 # FIXME: insert proper C++ library support 10731 ld_shlibs_CXX=no 10732 ;; 10733 esac 10734 ;; 10735 sunos4*) 10736 case $cc_basename in 10737 CC) 10738 # Sun C++ 4.x 10739 # FIXME: insert proper C++ library support 10740 ld_shlibs_CXX=no 10741 ;; 10742 lcc) 10743 # Lucid 10744 # FIXME: insert proper C++ library support 10745 ld_shlibs_CXX=no 10746 ;; 10747 *) 10748 # FIXME: insert proper C++ library support 10749 ld_shlibs_CXX=no 10750 ;; 10751 esac 10752 ;; 10753 solaris*) 10754 case $cc_basename in 10755 CC) 10756 # Sun C++ 4.2, 5.x and Centerline C++ 10757 no_undefined_flag_CXX=' -zdefs' 10758 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10759 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10760 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10761 10762 hardcode_libdir_flag_spec_CXX='-R$libdir' 10763 hardcode_shlibpath_var_CXX=no 10764 case $host_os in 10765 solaris2.0-5 | solaris2.0-5.*) ;; 10766 *) 10767 # The C++ compiler is used as linker so we must use $wl 10768 # flag to pass the commands to the underlying system 10769 # linker. 10770 # Supported since Solaris 2.6 (maybe 2.5.1?) 10771 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10772 ;; 10773 esac 10774 link_all_deplibs_CXX=yes 10775 10776 # Commands to make compiler produce verbose output that lists 10777 # what "hidden" libraries, object files and flags are used when 10778 # linking a shared library. 10779 # 10780 # There doesn't appear to be a way to prevent this compiler from 10781 # explicitly linking system object files so we need to strip them 10782 # from the output so that they don't get included in the library 10783 # dependencies. 10784 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10785 10786 # Archives containing C++ object files must be created using 10787 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10788 # necessary to make sure instantiated templates are included 10789 # in the archive. 10790 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10791 ;; 10792 gcx) 10793 # Green Hills C++ Compiler 10794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10795 10796 # The C++ compiler must be used to create the archive. 10797 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10798 ;; 10799 *) 10800 # GNU C++ compiler with Solaris linker 10801 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10802 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10803 if $CC --version | grep -v '^2\.7' > /dev/null; then 10804 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10805 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10806 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10807 10808 # Commands to make compiler produce verbose output that lists 10809 # what "hidden" libraries, object files and flags are used when 10810 # linking a shared library. 10811 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10812 else 10813 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10814 # platform. 10815 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10816 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10817 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10818 10819 # Commands to make compiler produce verbose output that lists 10820 # what "hidden" libraries, object files and flags are used when 10821 # linking a shared library. 10822 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10823 fi 10824 10825 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10826 fi 10827 ;; 10828 esac 10829 ;; 10830 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10831 archive_cmds_need_lc_CXX=no 10832 ;; 10833 tandem*) 10834 case $cc_basename in 10835 NCC) 10836 # NonStop-UX NCC 3.20 10837 # FIXME: insert proper C++ library support 10838 ld_shlibs_CXX=no 10839 ;; 10840 *) 10841 # FIXME: insert proper C++ library support 10842 ld_shlibs_CXX=no 10843 ;; 10844 esac 10845 ;; 10846 vxworks*) 10847 # FIXME: insert proper C++ library support 10848 ld_shlibs_CXX=no 10849 ;; 10850 *) 10851 # FIXME: insert proper C++ library support 10852 ld_shlibs_CXX=no 10853 ;; 10854esac 10855echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10856echo "${ECHO_T}$ld_shlibs_CXX" >&6 10857test "$ld_shlibs_CXX" = no && can_build_shared=no 10858 10859GCC_CXX="$GXX" 10860LD_CXX="$LD" 10861 10862 10863cat > conftest.$ac_ext <<EOF 10864class Foo 10865{ 10866public: 10867 Foo (void) { a = 0; } 10868private: 10869 int a; 10870}; 10871EOF 10872 10873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10874 (eval $ac_compile) 2>&5 10875 ac_status=$? 10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10877 (exit $ac_status); }; then 10878 # Parse the compiler output and extract the necessary 10879 # objects, libraries and library flags. 10880 10881 # Sentinel used to keep track of whether or not we are before 10882 # the conftest object file. 10883 pre_test_object_deps_done=no 10884 10885 # The `*' in the case matches for architectures that use `case' in 10886 # $output_verbose_cmd can trigger glob expansion during the loop 10887 # eval without this substitution. 10888 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10889 10890 for p in `eval $output_verbose_link_cmd`; do 10891 case $p in 10892 10893 -L* | -R* | -l*) 10894 # Some compilers place space between "-{L,R}" and the path. 10895 # Remove the space. 10896 if test $p = "-L" \ 10897 || test $p = "-R"; then 10898 prev=$p 10899 continue 10900 else 10901 prev= 10902 fi 10903 10904 if test "$pre_test_object_deps_done" = no; then 10905 case $p in 10906 -L* | -R*) 10907 # Internal compiler library paths should come after those 10908 # provided the user. The postdeps already come after the 10909 # user supplied libs so there is no need to process them. 10910 if test -z "$compiler_lib_search_path_CXX"; then 10911 compiler_lib_search_path_CXX="${prev}${p}" 10912 else 10913 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10914 fi 10915 ;; 10916 # The "-l" case would never come before the object being 10917 # linked, so don't bother handling this case. 10918 esac 10919 else 10920 if test -z "$postdeps_CXX"; then 10921 postdeps_CXX="${prev}${p}" 10922 else 10923 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10924 fi 10925 fi 10926 ;; 10927 10928 *.$objext) 10929 # This assumes that the test object file only shows up 10930 # once in the compiler output. 10931 if test "$p" = "conftest.$objext"; then 10932 pre_test_object_deps_done=yes 10933 continue 10934 fi 10935 10936 if test "$pre_test_object_deps_done" = no; then 10937 if test -z "$predep_objects_CXX"; then 10938 predep_objects_CXX="$p" 10939 else 10940 predep_objects_CXX="$predep_objects_CXX $p" 10941 fi 10942 else 10943 if test -z "$postdep_objects_CXX"; then 10944 postdep_objects_CXX="$p" 10945 else 10946 postdep_objects_CXX="$postdep_objects_CXX $p" 10947 fi 10948 fi 10949 ;; 10950 10951 *) ;; # Ignore the rest. 10952 10953 esac 10954 done 10955 10956 # Clean up. 10957 rm -f a.out a.exe 10958else 10959 echo "libtool.m4: error: problem compiling CXX test program" 10960fi 10961 10962$rm -f confest.$objext 10963 10964case " $postdeps_CXX " in 10965*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10966esac 10967 10968lt_prog_compiler_wl_CXX= 10969lt_prog_compiler_pic_CXX= 10970lt_prog_compiler_static_CXX= 10971 10972echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10973echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10974 10975 # C++ specific cases for pic, static, wl, etc. 10976 if test "$GXX" = yes; then 10977 lt_prog_compiler_wl_CXX='-Wl,' 10978 lt_prog_compiler_static_CXX='-static' 10979 10980 case $host_os in 10981 aix*) 10982 # All AIX code is PIC. 10983 if test "$host_cpu" = ia64; then 10984 # AIX 5 now supports IA64 processor 10985 lt_prog_compiler_static_CXX='-Bstatic' 10986 fi 10987 ;; 10988 amigaos*) 10989 # FIXME: we need at least 68020 code to build shared libraries, but 10990 # adding the `-m68020' flag to GCC prevents building anything better, 10991 # like `-m68040'. 10992 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10993 ;; 10994 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10995 # PIC is the default for these OSes. 10996 ;; 10997 mingw* | os2* | pw32*) 10998 # This hack is so that the source file can tell whether it is being 10999 # built for inclusion in a dll (and should export symbols for example). 11000 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11001 ;; 11002 darwin* | rhapsody*) 11003 # PIC is the default on this platform 11004 # Common symbols not allowed in MH_DYLIB files 11005 lt_prog_compiler_pic_CXX='-fno-common' 11006 ;; 11007 *djgpp*) 11008 # DJGPP does not support shared libraries at all 11009 lt_prog_compiler_pic_CXX= 11010 ;; 11011 sysv4*MP*) 11012 if test -d /usr/nec; then 11013 lt_prog_compiler_pic_CXX=-Kconform_pic 11014 fi 11015 ;; 11016 hpux*) 11017 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11018 # not for PA HP-UX. 11019 case "$host_cpu" in 11020 hppa*64*|ia64*) 11021 ;; 11022 *) 11023 lt_prog_compiler_pic_CXX='-fPIC' 11024 ;; 11025 esac 11026 ;; 11027 *) 11028 lt_prog_compiler_pic_CXX='-fPIC' 11029 ;; 11030 esac 11031 else 11032 case $host_os in 11033 aix4* | aix5*) 11034 # All AIX code is PIC. 11035 if test "$host_cpu" = ia64; then 11036 # AIX 5 now supports IA64 processor 11037 lt_prog_compiler_static_CXX='-Bstatic' 11038 else 11039 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11040 fi 11041 ;; 11042 chorus*) 11043 case $cc_basename in 11044 cxch68) 11045 # Green Hills C++ Compiler 11046 # _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" 11047 ;; 11048 esac 11049 ;; 11050 dgux*) 11051 case $cc_basename in 11052 ec++) 11053 lt_prog_compiler_pic_CXX='-KPIC' 11054 ;; 11055 ghcx) 11056 # Green Hills C++ Compiler 11057 lt_prog_compiler_pic_CXX='-pic' 11058 ;; 11059 *) 11060 ;; 11061 esac 11062 ;; 11063 freebsd* | kfreebsd*-gnu) 11064 # FreeBSD uses GNU C++ 11065 ;; 11066 hpux9* | hpux10* | hpux11*) 11067 case $cc_basename in 11068 CC) 11069 lt_prog_compiler_wl_CXX='-Wl,' 11070 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11071 if test "$host_cpu" != ia64; then 11072 lt_prog_compiler_pic_CXX='+Z' 11073 fi 11074 ;; 11075 aCC) 11076 lt_prog_compiler_wl_CXX='-Wl,' 11077 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11078 case "$host_cpu" in 11079 hppa*64*|ia64*) 11080 # +Z the default 11081 ;; 11082 *) 11083 lt_prog_compiler_pic_CXX='+Z' 11084 ;; 11085 esac 11086 ;; 11087 *) 11088 ;; 11089 esac 11090 ;; 11091 irix5* | irix6* | nonstopux*) 11092 case $cc_basename in 11093 CC) 11094 lt_prog_compiler_wl_CXX='-Wl,' 11095 lt_prog_compiler_static_CXX='-non_shared' 11096 # CC pic flag -KPIC is the default. 11097 ;; 11098 *) 11099 ;; 11100 esac 11101 ;; 11102 linux*) 11103 case $cc_basename in 11104 KCC) 11105 # KAI C++ Compiler 11106 lt_prog_compiler_wl_CXX='--backend -Wl,' 11107 lt_prog_compiler_pic_CXX='-fPIC' 11108 ;; 11109 icpc) 11110 # Intel C++ 11111 lt_prog_compiler_wl_CXX='-Wl,' 11112 lt_prog_compiler_pic_CXX='-KPIC' 11113 lt_prog_compiler_static_CXX='-static' 11114 ;; 11115 cxx) 11116 # Compaq C++ 11117 # Make sure the PIC flag is empty. It appears that all Alpha 11118 # Linux and Compaq Tru64 Unix objects are PIC. 11119 lt_prog_compiler_pic_CXX= 11120 lt_prog_compiler_static_CXX='-non_shared' 11121 ;; 11122 *) 11123 ;; 11124 esac 11125 ;; 11126 lynxos*) 11127 ;; 11128 m88k*) 11129 ;; 11130 mvs*) 11131 case $cc_basename in 11132 cxx) 11133 lt_prog_compiler_pic_CXX='-W c,exportall' 11134 ;; 11135 *) 11136 ;; 11137 esac 11138 ;; 11139 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 11140 ;; 11141 osf3* | osf4* | osf5*) 11142 case $cc_basename in 11143 KCC) 11144 lt_prog_compiler_wl_CXX='--backend -Wl,' 11145 ;; 11146 RCC) 11147 # Rational C++ 2.4.1 11148 lt_prog_compiler_pic_CXX='-pic' 11149 ;; 11150 cxx) 11151 # Digital/Compaq C++ 11152 lt_prog_compiler_wl_CXX='-Wl,' 11153 # Make sure the PIC flag is empty. It appears that all Alpha 11154 # Linux and Compaq Tru64 Unix objects are PIC. 11155 lt_prog_compiler_pic_CXX= 11156 lt_prog_compiler_static_CXX='-non_shared' 11157 ;; 11158 *) 11159 ;; 11160 esac 11161 ;; 11162 psos*) 11163 ;; 11164 sco*) 11165 case $cc_basename in 11166 CC) 11167 lt_prog_compiler_pic_CXX='-fPIC' 11168 ;; 11169 *) 11170 ;; 11171 esac 11172 ;; 11173 solaris*) 11174 case $cc_basename in 11175 CC) 11176 # Sun C++ 4.2, 5.x and Centerline C++ 11177 lt_prog_compiler_pic_CXX='-KPIC' 11178 lt_prog_compiler_static_CXX='-Bstatic' 11179 lt_prog_compiler_wl_CXX='-Qoption ld ' 11180 ;; 11181 gcx) 11182 # Green Hills C++ Compiler 11183 lt_prog_compiler_pic_CXX='-PIC' 11184 ;; 11185 *) 11186 ;; 11187 esac 11188 ;; 11189 sunos4*) 11190 case $cc_basename in 11191 CC) 11192 # Sun C++ 4.x 11193 lt_prog_compiler_pic_CXX='-pic' 11194 lt_prog_compiler_static_CXX='-Bstatic' 11195 ;; 11196 lcc) 11197 # Lucid 11198 lt_prog_compiler_pic_CXX='-pic' 11199 ;; 11200 *) 11201 ;; 11202 esac 11203 ;; 11204 tandem*) 11205 case $cc_basename in 11206 NCC) 11207 # NonStop-UX NCC 3.20 11208 lt_prog_compiler_pic_CXX='-KPIC' 11209 ;; 11210 *) 11211 ;; 11212 esac 11213 ;; 11214 unixware*) 11215 ;; 11216 vxworks*) 11217 ;; 11218 *) 11219 lt_prog_compiler_can_build_shared_CXX=no 11220 ;; 11221 esac 11222 fi 11223 11224echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11225echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11226 11227# 11228# Check to make sure the PIC flag actually works. 11229# 11230if test -n "$lt_prog_compiler_pic_CXX"; then 11231 11232echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11233echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11234if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11235 echo $ECHO_N "(cached) $ECHO_C" >&6 11236else 11237 lt_prog_compiler_pic_works_CXX=no 11238 ac_outfile=conftest.$ac_objext 11239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11240 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11241 # Insert the option either (1) after the last *FLAGS variable, or 11242 # (2) before a word containing "conftest.", or (3) at the end. 11243 # Note that $ac_compile itself does not contain backslashes and begins 11244 # with a dollar sign (not a hyphen), so the echo should work correctly. 11245 # The option is referenced via a variable to avoid confusing sed. 11246 lt_compile=`echo "$ac_compile" | $SED \ 11247 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11249 -e 's:$: $lt_compiler_flag:'` 11250 (eval echo "\"\$as_me:11250: $lt_compile\"" >&5) 11251 (eval "$lt_compile" 2>conftest.err) 11252 ac_status=$? 11253 cat conftest.err >&5 11254 echo "$as_me:11254: \$? = $ac_status" >&5 11255 if (exit $ac_status) && test -s "$ac_outfile"; then 11256 # The compiler can only warn and ignore the option if not recognized 11257 # So say no if there are warnings 11258 if test ! -s conftest.err; then 11259 lt_prog_compiler_pic_works_CXX=yes 11260 fi 11261 fi 11262 $rm conftest* 11263 11264fi 11265echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11266echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11267 11268if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11269 case $lt_prog_compiler_pic_CXX in 11270 "" | " "*) ;; 11271 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11272 esac 11273else 11274 lt_prog_compiler_pic_CXX= 11275 lt_prog_compiler_can_build_shared_CXX=no 11276fi 11277 11278fi 11279case "$host_os" in 11280 # For platforms which do not support PIC, -DPIC is meaningless: 11281 *djgpp*) 11282 lt_prog_compiler_pic_CXX= 11283 ;; 11284 *) 11285 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11286 ;; 11287esac 11288 11289echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11290echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11291if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11292 echo $ECHO_N "(cached) $ECHO_C" >&6 11293else 11294 lt_cv_prog_compiler_c_o_CXX=no 11295 $rm -r conftest 2>/dev/null 11296 mkdir conftest 11297 cd conftest 11298 mkdir out 11299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11300 11301 lt_compiler_flag="-o out/conftest2.$ac_objext" 11302 # Insert the option either (1) after the last *FLAGS variable, or 11303 # (2) before a word containing "conftest.", or (3) at the end. 11304 # Note that $ac_compile itself does not contain backslashes and begins 11305 # with a dollar sign (not a hyphen), so the echo should work correctly. 11306 lt_compile=`echo "$ac_compile" | $SED \ 11307 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11309 -e 's:$: $lt_compiler_flag:'` 11310 (eval echo "\"\$as_me:11310: $lt_compile\"" >&5) 11311 (eval "$lt_compile" 2>out/conftest.err) 11312 ac_status=$? 11313 cat out/conftest.err >&5 11314 echo "$as_me:11314: \$? = $ac_status" >&5 11315 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11316 then 11317 # The compiler can only warn and ignore the option if not recognized 11318 # So say no if there are warnings 11319 if test ! -s out/conftest.err; then 11320 lt_cv_prog_compiler_c_o_CXX=yes 11321 fi 11322 fi 11323 chmod u+w . 11324 $rm conftest* 11325 # SGI C++ compiler will create directory out/ii_files/ for 11326 # template instantiation 11327 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11328 $rm out/* && rmdir out 11329 cd .. 11330 rmdir conftest 11331 $rm conftest* 11332 11333fi 11334echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11335echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11336 11337 11338hard_links="nottested" 11339if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11340 # do not overwrite the value of need_locks provided by the user 11341 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11342echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11343 hard_links=yes 11344 $rm conftest* 11345 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11346 touch conftest.a 11347 ln conftest.a conftest.b 2>&5 || hard_links=no 11348 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11349 echo "$as_me:$LINENO: result: $hard_links" >&5 11350echo "${ECHO_T}$hard_links" >&6 11351 if test "$hard_links" = no; then 11352 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11353echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11354 need_locks=warn 11355 fi 11356else 11357 need_locks=no 11358fi 11359 11360echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11361echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11362 11363 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11364 case $host_os in 11365 aix4* | aix5*) 11366 # If we're using GNU nm, then we don't want the "-C" option. 11367 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11368 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11369 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' 11370 else 11371 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' 11372 fi 11373 ;; 11374 pw32*) 11375 export_symbols_cmds_CXX="$ltdll_cmds" 11376 ;; 11377 cygwin* | mingw*) 11378 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11379 ;; 11380 linux*) 11381 link_all_deplibs_CXX=no 11382 ;; 11383 *) 11384 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11385 ;; 11386 esac 11387 11388echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11389echo "${ECHO_T}$ld_shlibs_CXX" >&6 11390test "$ld_shlibs_CXX" = no && can_build_shared=no 11391 11392variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11393if test "$GCC" = yes; then 11394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11395fi 11396 11397# 11398# Do we need to explicitly link libc? 11399# 11400case "x$archive_cmds_need_lc_CXX" in 11401x|xyes) 11402 # Assume -lc should be added 11403 archive_cmds_need_lc_CXX=yes 11404 11405 if test "$enable_shared" = yes && test "$GCC" = yes; then 11406 case $archive_cmds_CXX in 11407 *'~'*) 11408 # FIXME: we may have to deal with multi-command sequences. 11409 ;; 11410 '$CC '*) 11411 # Test whether the compiler implicitly links with -lc since on some 11412 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11413 # to ld, don't add -lc before -lgcc. 11414 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11415echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11416 $rm conftest* 11417 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11418 11419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11420 (eval $ac_compile) 2>&5 11421 ac_status=$? 11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11423 (exit $ac_status); } 2>conftest.err; then 11424 soname=conftest 11425 lib=conftest 11426 libobjs=conftest.$ac_objext 11427 deplibs= 11428 wl=$lt_prog_compiler_wl_CXX 11429 compiler_flags=-v 11430 linker_flags=-v 11431 verstring= 11432 output_objdir=. 11433 libname=conftest 11434 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11435 allow_undefined_flag_CXX= 11436 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11437 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11438 ac_status=$? 11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11440 (exit $ac_status); } 11441 then 11442 archive_cmds_need_lc_CXX=no 11443 else 11444 archive_cmds_need_lc_CXX=yes 11445 fi 11446 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11447 else 11448 cat conftest.err 1>&5 11449 fi 11450 $rm conftest* 11451 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11452echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11453 ;; 11454 esac 11455 fi 11456 ;; 11457esac 11458 11459echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11460echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11461library_names_spec= 11462libname_spec='lib$name' 11463soname_spec= 11464shrext_cmds=".so" 11465postinstall_cmds= 11466postuninstall_cmds= 11467finish_cmds= 11468finish_eval= 11469shlibpath_var= 11470shlibpath_overrides_runpath=unknown 11471version_type=none 11472dynamic_linker="$host_os ld.so" 11473sys_lib_dlsearch_path_spec="/lib /usr/lib" 11474if test "$GCC" = yes; then 11475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11476 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11477 # if the path contains ";" then we assume it to be the separator 11478 # otherwise default to the standard path separator (i.e. ":") - it is 11479 # assumed that no part of a normal pathname contains ";" but that should 11480 # okay in the real world where ";" in dirpaths is itself problematic. 11481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11482 else 11483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11484 fi 11485else 11486 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11487fi 11488need_lib_prefix=unknown 11489hardcode_into_libs=no 11490 11491# when you set need_version to no, make sure it does not cause -set_version 11492# flags to be left without arguments 11493need_version=unknown 11494 11495case $host_os in 11496aix3*) 11497 version_type=linux 11498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11499 shlibpath_var=LIBPATH 11500 11501 # AIX 3 has no versioning support, so we append a major version to the name. 11502 soname_spec='${libname}${release}${shared_ext}$major' 11503 ;; 11504 11505aix4* | aix5*) 11506 version_type=linux 11507 need_lib_prefix=no 11508 need_version=no 11509 hardcode_into_libs=yes 11510 if test "$host_cpu" = ia64; then 11511 # AIX 5 supports IA64 11512 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11513 shlibpath_var=LD_LIBRARY_PATH 11514 else 11515 # With GCC up to 2.95.x, collect2 would create an import file 11516 # for dependence libraries. The import file would start with 11517 # the line `#! .'. This would cause the generated library to 11518 # depend on `.', always an invalid library. This was fixed in 11519 # development snapshots of GCC prior to 3.0. 11520 case $host_os in 11521 aix4 | aix4.[01] | aix4.[01].*) 11522 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11523 echo ' yes ' 11524 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11525 : 11526 else 11527 can_build_shared=no 11528 fi 11529 ;; 11530 esac 11531 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11532 # soname into executable. Probably we can add versioning support to 11533 # collect2, so additional links can be useful in future. 11534 if test "$aix_use_runtimelinking" = yes; then 11535 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11536 # instead of lib<name>.a to let people know that these are not 11537 # typical AIX shared libraries. 11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11539 else 11540 # We preserve .a as extension for shared libraries through AIX4.2 11541 # and later when we are not doing run time linking. 11542 library_names_spec='${libname}${release}.a $libname.a' 11543 soname_spec='${libname}${release}${shared_ext}$major' 11544 fi 11545 shlibpath_var=LIBPATH 11546 fi 11547 ;; 11548 11549amigaos*) 11550 library_names_spec='$libname.ixlibrary $libname.a' 11551 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11552 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' 11553 ;; 11554 11555beos*) 11556 library_names_spec='${libname}${shared_ext}' 11557 dynamic_linker="$host_os ld.so" 11558 shlibpath_var=LIBRARY_PATH 11559 ;; 11560 11561bsdi4*) 11562 version_type=linux 11563 need_version=no 11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11565 soname_spec='${libname}${release}${shared_ext}$major' 11566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11567 shlibpath_var=LD_LIBRARY_PATH 11568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11570 # the default ld.so.conf also contains /usr/contrib/lib and 11571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11572 # libtool to hard-code these into programs 11573 ;; 11574 11575cygwin* | mingw* | pw32*) 11576 version_type=windows 11577 shrext_cmds=".dll" 11578 need_version=no 11579 need_lib_prefix=no 11580 11581 case $GCC,$host_os in 11582 yes,cygwin* | yes,mingw* | yes,pw32*) 11583 library_names_spec='$libname.dll.a' 11584 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11585 postinstall_cmds='base_file=`basename \${file}`~ 11586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11587 dldir=$destdir/`dirname \$dlpath`~ 11588 test -d \$dldir || mkdir -p \$dldir~ 11589 $install_prog $dir/$dlname \$dldir/$dlname' 11590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11591 dlpath=$dir/\$dldll~ 11592 $rm \$dlpath' 11593 shlibpath_overrides_runpath=yes 11594 11595 case $host_os in 11596 cygwin*) 11597 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11598 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11599 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11600 ;; 11601 mingw*) 11602 # MinGW DLLs use traditional 'lib' prefix 11603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11604 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11605 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11606 # It is most probably a Windows format PATH printed by 11607 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11608 # path with ; separators, and with drive letters. We can handle the 11609 # drive letters (cygwin fileutils understands them), so leave them, 11610 # especially as we might pass files found there to a mingw objdump, 11611 # which wouldn't understand a cygwinified path. Ahh. 11612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11613 else 11614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11615 fi 11616 ;; 11617 pw32*) 11618 # pw32 DLLs use 'pw' prefix rather than 'lib' 11619 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 11620 ;; 11621 esac 11622 ;; 11623 11624 *) 11625 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11626 ;; 11627 esac 11628 dynamic_linker='Win32 ld.exe' 11629 # FIXME: first we should search . and the directory the executable is in 11630 shlibpath_var=PATH 11631 ;; 11632 11633darwin* | rhapsody*) 11634 dynamic_linker="$host_os dyld" 11635 version_type=darwin 11636 need_lib_prefix=no 11637 need_version=no 11638 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11639 soname_spec='${libname}${release}${major}$shared_ext' 11640 shlibpath_overrides_runpath=yes 11641 shlibpath_var=DYLD_LIBRARY_PATH 11642 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11643 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11644 if test "$GCC" = yes; then 11645 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"` 11646 else 11647 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11648 fi 11649 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11650 ;; 11651 11652dgux*) 11653 version_type=linux 11654 need_lib_prefix=no 11655 need_version=no 11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11657 soname_spec='${libname}${release}${shared_ext}$major' 11658 shlibpath_var=LD_LIBRARY_PATH 11659 ;; 11660 11661freebsd1*) 11662 dynamic_linker=no 11663 ;; 11664 11665kfreebsd*-gnu) 11666 version_type=linux 11667 need_lib_prefix=no 11668 need_version=no 11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11670 soname_spec='${libname}${release}${shared_ext}$major' 11671 shlibpath_var=LD_LIBRARY_PATH 11672 shlibpath_overrides_runpath=no 11673 hardcode_into_libs=yes 11674 dynamic_linker='GNU ld.so' 11675 ;; 11676 11677freebsd*) 11678 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11679 version_type=freebsd-$objformat 11680 case $version_type in 11681 freebsd-elf*) 11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11683 need_version=no 11684 need_lib_prefix=no 11685 ;; 11686 freebsd-*) 11687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11688 need_version=yes 11689 ;; 11690 esac 11691 shlibpath_var=LD_LIBRARY_PATH 11692 case $host_os in 11693 freebsd2*) 11694 shlibpath_overrides_runpath=yes 11695 ;; 11696 freebsd3.01* | freebsdelf3.01*) 11697 shlibpath_overrides_runpath=yes 11698 hardcode_into_libs=yes 11699 ;; 11700 *) # from 3.2 on 11701 shlibpath_overrides_runpath=no 11702 hardcode_into_libs=yes 11703 ;; 11704 esac 11705 ;; 11706 11707gnu*) 11708 version_type=linux 11709 need_lib_prefix=no 11710 need_version=no 11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11712 soname_spec='${libname}${release}${shared_ext}$major' 11713 shlibpath_var=LD_LIBRARY_PATH 11714 hardcode_into_libs=yes 11715 ;; 11716 11717hpux9* | hpux10* | hpux11*) 11718 # Give a soname corresponding to the major version so that dld.sl refuses to 11719 # link against other versions. 11720 version_type=sunos 11721 need_lib_prefix=no 11722 need_version=no 11723 case "$host_cpu" in 11724 ia64*) 11725 shrext_cmds='.so' 11726 hardcode_into_libs=yes 11727 dynamic_linker="$host_os dld.so" 11728 shlibpath_var=LD_LIBRARY_PATH 11729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11731 soname_spec='${libname}${release}${shared_ext}$major' 11732 if test "X$HPUX_IA64_MODE" = X32; then 11733 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11734 else 11735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11736 fi 11737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11738 ;; 11739 hppa*64*) 11740 shrext_cmds='.sl' 11741 hardcode_into_libs=yes 11742 dynamic_linker="$host_os dld.sl" 11743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11746 soname_spec='${libname}${release}${shared_ext}$major' 11747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11749 ;; 11750 *) 11751 shrext_cmds='.sl' 11752 dynamic_linker="$host_os dld.sl" 11753 shlibpath_var=SHLIB_PATH 11754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11756 soname_spec='${libname}${release}${shared_ext}$major' 11757 ;; 11758 esac 11759 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11760 postinstall_cmds='chmod 555 $lib' 11761 ;; 11762 11763irix5* | irix6* | nonstopux*) 11764 case $host_os in 11765 nonstopux*) version_type=nonstopux ;; 11766 *) 11767 if test "$lt_cv_prog_gnu_ld" = yes; then 11768 version_type=linux 11769 else 11770 version_type=irix 11771 fi ;; 11772 esac 11773 need_lib_prefix=no 11774 need_version=no 11775 soname_spec='${libname}${release}${shared_ext}$major' 11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11777 case $host_os in 11778 irix5* | nonstopux*) 11779 libsuff= shlibsuff= 11780 ;; 11781 *) 11782 case $LD in # libtool.m4 will add one of these switches to LD 11783 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11784 libsuff= shlibsuff= libmagic=32-bit;; 11785 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11786 libsuff=32 shlibsuff=N32 libmagic=N32;; 11787 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11788 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11789 *) libsuff= shlibsuff= libmagic=never-match;; 11790 esac 11791 ;; 11792 esac 11793 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11794 shlibpath_overrides_runpath=no 11795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11797 hardcode_into_libs=yes 11798 ;; 11799 11800# No shared lib support for Linux oldld, aout, or coff. 11801linux*oldld* | linux*aout* | linux*coff*) 11802 dynamic_linker=no 11803 ;; 11804 11805# This must be Linux ELF. 11806linux*) 11807 version_type=linux 11808 need_lib_prefix=no 11809 need_version=no 11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11811 soname_spec='${libname}${release}${shared_ext}$major' 11812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11813 shlibpath_var=LD_LIBRARY_PATH 11814 shlibpath_overrides_runpath=no 11815 # This implies no fast_install, which is unacceptable. 11816 # Some rework will be needed to allow for fast_install 11817 # before this can be enabled. 11818 hardcode_into_libs=yes 11819 11820 # Append ld.so.conf contents to the search path 11821 if test -f /etc/ld.so.conf; then 11822 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 11823 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11824 fi 11825 11826 # We used to test for /lib/ld.so.1 and disable shared libraries on 11827 # powerpc, because MkLinux only supported shared libraries with the 11828 # GNU dynamic linker. Since this was broken with cross compilers, 11829 # most powerpc-linux boxes support dynamic linking these days and 11830 # people can always --disable-shared, the test was removed, and we 11831 # assume the GNU/Linux dynamic linker is in use. 11832 dynamic_linker='GNU/Linux ld.so' 11833 ;; 11834 11835netbsdelf*-gnu) 11836 version_type=linux 11837 need_lib_prefix=no 11838 need_version=no 11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11840 soname_spec='${libname}${release}${shared_ext}$major' 11841 shlibpath_var=LD_LIBRARY_PATH 11842 shlibpath_overrides_runpath=no 11843 hardcode_into_libs=yes 11844 dynamic_linker='NetBSD ld.elf_so' 11845 ;; 11846 11847knetbsd*-gnu) 11848 version_type=linux 11849 need_lib_prefix=no 11850 need_version=no 11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11852 soname_spec='${libname}${release}${shared_ext}$major' 11853 shlibpath_var=LD_LIBRARY_PATH 11854 shlibpath_overrides_runpath=no 11855 hardcode_into_libs=yes 11856 dynamic_linker='GNU ld.so' 11857 ;; 11858 11859netbsd*) 11860 version_type=sunos 11861 need_lib_prefix=no 11862 need_version=no 11863 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11866 dynamic_linker='NetBSD (a.out) ld.so' 11867 else 11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11869 soname_spec='${libname}${release}${shared_ext}$major' 11870 dynamic_linker='NetBSD ld.elf_so' 11871 fi 11872 shlibpath_var=LD_LIBRARY_PATH 11873 shlibpath_overrides_runpath=yes 11874 hardcode_into_libs=yes 11875 ;; 11876 11877newsos6) 11878 version_type=linux 11879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11880 shlibpath_var=LD_LIBRARY_PATH 11881 shlibpath_overrides_runpath=yes 11882 ;; 11883 11884nto-qnx*) 11885 version_type=linux 11886 need_lib_prefix=no 11887 need_version=no 11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11889 soname_spec='${libname}${release}${shared_ext}$major' 11890 shlibpath_var=LD_LIBRARY_PATH 11891 shlibpath_overrides_runpath=yes 11892 ;; 11893 11894openbsd*) 11895 version_type=sunos 11896 need_lib_prefix=no 11897 need_version=yes 11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11900 shlibpath_var=LD_LIBRARY_PATH 11901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11902 case $host_os in 11903 openbsd2.[89] | openbsd2.[89].*) 11904 shlibpath_overrides_runpath=no 11905 ;; 11906 *) 11907 shlibpath_overrides_runpath=yes 11908 ;; 11909 esac 11910 else 11911 shlibpath_overrides_runpath=yes 11912 fi 11913 ;; 11914 11915os2*) 11916 libname_spec='$name' 11917 shrext_cmds=".dll" 11918 need_lib_prefix=no 11919 library_names_spec='$libname${shared_ext} $libname.a' 11920 dynamic_linker='OS/2 ld.exe' 11921 shlibpath_var=LIBPATH 11922 ;; 11923 11924osf3* | osf4* | osf5*) 11925 version_type=osf 11926 need_lib_prefix=no 11927 need_version=no 11928 soname_spec='${libname}${release}${shared_ext}$major' 11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11930 shlibpath_var=LD_LIBRARY_PATH 11931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11933 ;; 11934 11935sco3.2v5*) 11936 version_type=osf 11937 soname_spec='${libname}${release}${shared_ext}$major' 11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11939 shlibpath_var=LD_LIBRARY_PATH 11940 ;; 11941 11942solaris*) 11943 version_type=linux 11944 need_lib_prefix=no 11945 need_version=no 11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11947 soname_spec='${libname}${release}${shared_ext}$major' 11948 shlibpath_var=LD_LIBRARY_PATH 11949 shlibpath_overrides_runpath=yes 11950 hardcode_into_libs=yes 11951 # ldd complains unless libraries are executable 11952 postinstall_cmds='chmod +x $lib' 11953 ;; 11954 11955sunos4*) 11956 version_type=sunos 11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11958 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11959 shlibpath_var=LD_LIBRARY_PATH 11960 shlibpath_overrides_runpath=yes 11961 if test "$with_gnu_ld" = yes; then 11962 need_lib_prefix=no 11963 fi 11964 need_version=yes 11965 ;; 11966 11967sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11968 version_type=linux 11969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11970 soname_spec='${libname}${release}${shared_ext}$major' 11971 shlibpath_var=LD_LIBRARY_PATH 11972 case $host_vendor in 11973 sni) 11974 shlibpath_overrides_runpath=no 11975 need_lib_prefix=no 11976 export_dynamic_flag_spec='${wl}-Blargedynsym' 11977 runpath_var=LD_RUN_PATH 11978 ;; 11979 siemens) 11980 need_lib_prefix=no 11981 ;; 11982 motorola) 11983 need_lib_prefix=no 11984 need_version=no 11985 shlibpath_overrides_runpath=no 11986 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11987 ;; 11988 esac 11989 ;; 11990 11991sysv4*MP*) 11992 if test -d /usr/nec ;then 11993 version_type=linux 11994 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11995 soname_spec='$libname${shared_ext}.$major' 11996 shlibpath_var=LD_LIBRARY_PATH 11997 fi 11998 ;; 11999 12000uts4*) 12001 version_type=linux 12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12003 soname_spec='${libname}${release}${shared_ext}$major' 12004 shlibpath_var=LD_LIBRARY_PATH 12005 ;; 12006 12007*) 12008 dynamic_linker=no 12009 ;; 12010esac 12011echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12012echo "${ECHO_T}$dynamic_linker" >&6 12013test "$dynamic_linker" = no && can_build_shared=no 12014 12015echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12016echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12017hardcode_action_CXX= 12018if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12019 test -n "$runpath_var CXX" || \ 12020 test "X$hardcode_automatic_CXX"="Xyes" ; then 12021 12022 # We can hardcode non-existant directories. 12023 if test "$hardcode_direct_CXX" != no && 12024 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12025 # have to relink, otherwise we might link with an installed library 12026 # when we should be linking with a yet-to-be-installed one 12027 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12028 test "$hardcode_minus_L_CXX" != no; then 12029 # Linking always hardcodes the temporary library directory. 12030 hardcode_action_CXX=relink 12031 else 12032 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12033 hardcode_action_CXX=immediate 12034 fi 12035else 12036 # We cannot hardcode anything, or else we can only hardcode existing 12037 # directories. 12038 hardcode_action_CXX=unsupported 12039fi 12040echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12041echo "${ECHO_T}$hardcode_action_CXX" >&6 12042 12043if test "$hardcode_action_CXX" = relink; then 12044 # Fast installation is not supported 12045 enable_fast_install=no 12046elif test "$shlibpath_overrides_runpath" = yes || 12047 test "$enable_shared" = no; then 12048 # Fast installation is not necessary 12049 enable_fast_install=needless 12050fi 12051 12052striplib= 12053old_striplib= 12054echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12055echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12056if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12057 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12058 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12059 echo "$as_me:$LINENO: result: yes" >&5 12060echo "${ECHO_T}yes" >&6 12061else 12062# FIXME - insert some real tests, host_os isn't really good enough 12063 case $host_os in 12064 darwin*) 12065 if test -n "$STRIP" ; then 12066 striplib="$STRIP -x" 12067 echo "$as_me:$LINENO: result: yes" >&5 12068echo "${ECHO_T}yes" >&6 12069 else 12070 echo "$as_me:$LINENO: result: no" >&5 12071echo "${ECHO_T}no" >&6 12072fi 12073 ;; 12074 *) 12075 echo "$as_me:$LINENO: result: no" >&5 12076echo "${ECHO_T}no" >&6 12077 ;; 12078 esac 12079fi 12080 12081if test "x$enable_dlopen" != xyes; then 12082 enable_dlopen=unknown 12083 enable_dlopen_self=unknown 12084 enable_dlopen_self_static=unknown 12085else 12086 lt_cv_dlopen=no 12087 lt_cv_dlopen_libs= 12088 12089 case $host_os in 12090 beos*) 12091 lt_cv_dlopen="load_add_on" 12092 lt_cv_dlopen_libs= 12093 lt_cv_dlopen_self=yes 12094 ;; 12095 12096 mingw* | pw32*) 12097 lt_cv_dlopen="LoadLibrary" 12098 lt_cv_dlopen_libs= 12099 ;; 12100 12101 cygwin*) 12102 lt_cv_dlopen="dlopen" 12103 lt_cv_dlopen_libs= 12104 ;; 12105 12106 darwin*) 12107 # if libdl is installed we need to link against it 12108 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12109echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12110if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12111 echo $ECHO_N "(cached) $ECHO_C" >&6 12112else 12113 ac_check_lib_save_LIBS=$LIBS 12114LIBS="-ldl $LIBS" 12115cat >conftest.$ac_ext <<_ACEOF 12116/* confdefs.h. */ 12117_ACEOF 12118cat confdefs.h >>conftest.$ac_ext 12119cat >>conftest.$ac_ext <<_ACEOF 12120/* end confdefs.h. */ 12121 12122/* Override any gcc2 internal prototype to avoid an error. */ 12123#ifdef __cplusplus 12124extern "C" 12125#endif 12126/* We use char because int might match the return type of a gcc2 12127 builtin and then its argument prototype would still apply. */ 12128char dlopen (); 12129int 12130main () 12131{ 12132dlopen (); 12133 ; 12134 return 0; 12135} 12136_ACEOF 12137rm -f conftest.$ac_objext conftest$ac_exeext 12138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12139 (eval $ac_link) 2>conftest.er1 12140 ac_status=$? 12141 grep -v '^ *+' conftest.er1 >conftest.err 12142 rm -f conftest.er1 12143 cat conftest.err >&5 12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12145 (exit $ac_status); } && 12146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12148 (eval $ac_try) 2>&5 12149 ac_status=$? 12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12151 (exit $ac_status); }; } && 12152 { ac_try='test -s conftest$ac_exeext' 12153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12154 (eval $ac_try) 2>&5 12155 ac_status=$? 12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12157 (exit $ac_status); }; }; then 12158 ac_cv_lib_dl_dlopen=yes 12159else 12160 echo "$as_me: failed program was:" >&5 12161sed 's/^/| /' conftest.$ac_ext >&5 12162 12163ac_cv_lib_dl_dlopen=no 12164fi 12165rm -f conftest.err conftest.$ac_objext \ 12166 conftest$ac_exeext conftest.$ac_ext 12167LIBS=$ac_check_lib_save_LIBS 12168fi 12169echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12170echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12171if test $ac_cv_lib_dl_dlopen = yes; then 12172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12173else 12174 12175 lt_cv_dlopen="dyld" 12176 lt_cv_dlopen_libs= 12177 lt_cv_dlopen_self=yes 12178 12179fi 12180 12181 ;; 12182 12183 *) 12184 echo "$as_me:$LINENO: checking for shl_load" >&5 12185echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12186if test "${ac_cv_func_shl_load+set}" = set; then 12187 echo $ECHO_N "(cached) $ECHO_C" >&6 12188else 12189 cat >conftest.$ac_ext <<_ACEOF 12190/* confdefs.h. */ 12191_ACEOF 12192cat confdefs.h >>conftest.$ac_ext 12193cat >>conftest.$ac_ext <<_ACEOF 12194/* end confdefs.h. */ 12195/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12196 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12197#define shl_load innocuous_shl_load 12198 12199/* System header to define __stub macros and hopefully few prototypes, 12200 which can conflict with char shl_load (); below. 12201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12202 <limits.h> exists even on freestanding compilers. */ 12203 12204#ifdef __STDC__ 12205# include <limits.h> 12206#else 12207# include <assert.h> 12208#endif 12209 12210#undef shl_load 12211 12212/* Override any gcc2 internal prototype to avoid an error. */ 12213#ifdef __cplusplus 12214extern "C" 12215{ 12216#endif 12217/* We use char because int might match the return type of a gcc2 12218 builtin and then its argument prototype would still apply. */ 12219char shl_load (); 12220/* The GNU C library defines this for functions which it implements 12221 to always fail with ENOSYS. Some functions are actually named 12222 something starting with __ and the normal name is an alias. */ 12223#if defined (__stub_shl_load) || defined (__stub___shl_load) 12224choke me 12225#else 12226char (*f) () = shl_load; 12227#endif 12228#ifdef __cplusplus 12229} 12230#endif 12231 12232int 12233main () 12234{ 12235return f != shl_load; 12236 ; 12237 return 0; 12238} 12239_ACEOF 12240rm -f conftest.$ac_objext conftest$ac_exeext 12241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12242 (eval $ac_link) 2>conftest.er1 12243 ac_status=$? 12244 grep -v '^ *+' conftest.er1 >conftest.err 12245 rm -f conftest.er1 12246 cat conftest.err >&5 12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12248 (exit $ac_status); } && 12249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12251 (eval $ac_try) 2>&5 12252 ac_status=$? 12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12254 (exit $ac_status); }; } && 12255 { ac_try='test -s conftest$ac_exeext' 12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12257 (eval $ac_try) 2>&5 12258 ac_status=$? 12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12260 (exit $ac_status); }; }; then 12261 ac_cv_func_shl_load=yes 12262else 12263 echo "$as_me: failed program was:" >&5 12264sed 's/^/| /' conftest.$ac_ext >&5 12265 12266ac_cv_func_shl_load=no 12267fi 12268rm -f conftest.err conftest.$ac_objext \ 12269 conftest$ac_exeext conftest.$ac_ext 12270fi 12271echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12272echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12273if test $ac_cv_func_shl_load = yes; then 12274 lt_cv_dlopen="shl_load" 12275else 12276 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12277echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12278if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12279 echo $ECHO_N "(cached) $ECHO_C" >&6 12280else 12281 ac_check_lib_save_LIBS=$LIBS 12282LIBS="-ldld $LIBS" 12283cat >conftest.$ac_ext <<_ACEOF 12284/* confdefs.h. */ 12285_ACEOF 12286cat confdefs.h >>conftest.$ac_ext 12287cat >>conftest.$ac_ext <<_ACEOF 12288/* end confdefs.h. */ 12289 12290/* Override any gcc2 internal prototype to avoid an error. */ 12291#ifdef __cplusplus 12292extern "C" 12293#endif 12294/* We use char because int might match the return type of a gcc2 12295 builtin and then its argument prototype would still apply. */ 12296char shl_load (); 12297int 12298main () 12299{ 12300shl_load (); 12301 ; 12302 return 0; 12303} 12304_ACEOF 12305rm -f conftest.$ac_objext conftest$ac_exeext 12306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12307 (eval $ac_link) 2>conftest.er1 12308 ac_status=$? 12309 grep -v '^ *+' conftest.er1 >conftest.err 12310 rm -f conftest.er1 12311 cat conftest.err >&5 12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12313 (exit $ac_status); } && 12314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12316 (eval $ac_try) 2>&5 12317 ac_status=$? 12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12319 (exit $ac_status); }; } && 12320 { ac_try='test -s conftest$ac_exeext' 12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12322 (eval $ac_try) 2>&5 12323 ac_status=$? 12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12325 (exit $ac_status); }; }; then 12326 ac_cv_lib_dld_shl_load=yes 12327else 12328 echo "$as_me: failed program was:" >&5 12329sed 's/^/| /' conftest.$ac_ext >&5 12330 12331ac_cv_lib_dld_shl_load=no 12332fi 12333rm -f conftest.err conftest.$ac_objext \ 12334 conftest$ac_exeext conftest.$ac_ext 12335LIBS=$ac_check_lib_save_LIBS 12336fi 12337echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12338echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12339if test $ac_cv_lib_dld_shl_load = yes; then 12340 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12341else 12342 echo "$as_me:$LINENO: checking for dlopen" >&5 12343echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12344if test "${ac_cv_func_dlopen+set}" = set; then 12345 echo $ECHO_N "(cached) $ECHO_C" >&6 12346else 12347 cat >conftest.$ac_ext <<_ACEOF 12348/* confdefs.h. */ 12349_ACEOF 12350cat confdefs.h >>conftest.$ac_ext 12351cat >>conftest.$ac_ext <<_ACEOF 12352/* end confdefs.h. */ 12353/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12354 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12355#define dlopen innocuous_dlopen 12356 12357/* System header to define __stub macros and hopefully few prototypes, 12358 which can conflict with char dlopen (); below. 12359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12360 <limits.h> exists even on freestanding compilers. */ 12361 12362#ifdef __STDC__ 12363# include <limits.h> 12364#else 12365# include <assert.h> 12366#endif 12367 12368#undef dlopen 12369 12370/* Override any gcc2 internal prototype to avoid an error. */ 12371#ifdef __cplusplus 12372extern "C" 12373{ 12374#endif 12375/* We use char because int might match the return type of a gcc2 12376 builtin and then its argument prototype would still apply. */ 12377char dlopen (); 12378/* The GNU C library defines this for functions which it implements 12379 to always fail with ENOSYS. Some functions are actually named 12380 something starting with __ and the normal name is an alias. */ 12381#if defined (__stub_dlopen) || defined (__stub___dlopen) 12382choke me 12383#else 12384char (*f) () = dlopen; 12385#endif 12386#ifdef __cplusplus 12387} 12388#endif 12389 12390int 12391main () 12392{ 12393return f != dlopen; 12394 ; 12395 return 0; 12396} 12397_ACEOF 12398rm -f conftest.$ac_objext conftest$ac_exeext 12399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12400 (eval $ac_link) 2>conftest.er1 12401 ac_status=$? 12402 grep -v '^ *+' conftest.er1 >conftest.err 12403 rm -f conftest.er1 12404 cat conftest.err >&5 12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12406 (exit $ac_status); } && 12407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12409 (eval $ac_try) 2>&5 12410 ac_status=$? 12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12412 (exit $ac_status); }; } && 12413 { ac_try='test -s conftest$ac_exeext' 12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12415 (eval $ac_try) 2>&5 12416 ac_status=$? 12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12418 (exit $ac_status); }; }; then 12419 ac_cv_func_dlopen=yes 12420else 12421 echo "$as_me: failed program was:" >&5 12422sed 's/^/| /' conftest.$ac_ext >&5 12423 12424ac_cv_func_dlopen=no 12425fi 12426rm -f conftest.err conftest.$ac_objext \ 12427 conftest$ac_exeext conftest.$ac_ext 12428fi 12429echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12430echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12431if test $ac_cv_func_dlopen = yes; then 12432 lt_cv_dlopen="dlopen" 12433else 12434 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12435echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12436if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12437 echo $ECHO_N "(cached) $ECHO_C" >&6 12438else 12439 ac_check_lib_save_LIBS=$LIBS 12440LIBS="-ldl $LIBS" 12441cat >conftest.$ac_ext <<_ACEOF 12442/* confdefs.h. */ 12443_ACEOF 12444cat confdefs.h >>conftest.$ac_ext 12445cat >>conftest.$ac_ext <<_ACEOF 12446/* end confdefs.h. */ 12447 12448/* Override any gcc2 internal prototype to avoid an error. */ 12449#ifdef __cplusplus 12450extern "C" 12451#endif 12452/* We use char because int might match the return type of a gcc2 12453 builtin and then its argument prototype would still apply. */ 12454char dlopen (); 12455int 12456main () 12457{ 12458dlopen (); 12459 ; 12460 return 0; 12461} 12462_ACEOF 12463rm -f conftest.$ac_objext conftest$ac_exeext 12464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12465 (eval $ac_link) 2>conftest.er1 12466 ac_status=$? 12467 grep -v '^ *+' conftest.er1 >conftest.err 12468 rm -f conftest.er1 12469 cat conftest.err >&5 12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12471 (exit $ac_status); } && 12472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12474 (eval $ac_try) 2>&5 12475 ac_status=$? 12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12477 (exit $ac_status); }; } && 12478 { ac_try='test -s conftest$ac_exeext' 12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12480 (eval $ac_try) 2>&5 12481 ac_status=$? 12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12483 (exit $ac_status); }; }; then 12484 ac_cv_lib_dl_dlopen=yes 12485else 12486 echo "$as_me: failed program was:" >&5 12487sed 's/^/| /' conftest.$ac_ext >&5 12488 12489ac_cv_lib_dl_dlopen=no 12490fi 12491rm -f conftest.err conftest.$ac_objext \ 12492 conftest$ac_exeext conftest.$ac_ext 12493LIBS=$ac_check_lib_save_LIBS 12494fi 12495echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12496echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12497if test $ac_cv_lib_dl_dlopen = yes; then 12498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12499else 12500 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12501echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12502if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12503 echo $ECHO_N "(cached) $ECHO_C" >&6 12504else 12505 ac_check_lib_save_LIBS=$LIBS 12506LIBS="-lsvld $LIBS" 12507cat >conftest.$ac_ext <<_ACEOF 12508/* confdefs.h. */ 12509_ACEOF 12510cat confdefs.h >>conftest.$ac_ext 12511cat >>conftest.$ac_ext <<_ACEOF 12512/* end confdefs.h. */ 12513 12514/* Override any gcc2 internal prototype to avoid an error. */ 12515#ifdef __cplusplus 12516extern "C" 12517#endif 12518/* We use char because int might match the return type of a gcc2 12519 builtin and then its argument prototype would still apply. */ 12520char dlopen (); 12521int 12522main () 12523{ 12524dlopen (); 12525 ; 12526 return 0; 12527} 12528_ACEOF 12529rm -f conftest.$ac_objext conftest$ac_exeext 12530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12531 (eval $ac_link) 2>conftest.er1 12532 ac_status=$? 12533 grep -v '^ *+' conftest.er1 >conftest.err 12534 rm -f conftest.er1 12535 cat conftest.err >&5 12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12537 (exit $ac_status); } && 12538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12540 (eval $ac_try) 2>&5 12541 ac_status=$? 12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12543 (exit $ac_status); }; } && 12544 { ac_try='test -s conftest$ac_exeext' 12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12546 (eval $ac_try) 2>&5 12547 ac_status=$? 12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12549 (exit $ac_status); }; }; then 12550 ac_cv_lib_svld_dlopen=yes 12551else 12552 echo "$as_me: failed program was:" >&5 12553sed 's/^/| /' conftest.$ac_ext >&5 12554 12555ac_cv_lib_svld_dlopen=no 12556fi 12557rm -f conftest.err conftest.$ac_objext \ 12558 conftest$ac_exeext conftest.$ac_ext 12559LIBS=$ac_check_lib_save_LIBS 12560fi 12561echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12562echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12563if test $ac_cv_lib_svld_dlopen = yes; then 12564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12565else 12566 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12567echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12568if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12569 echo $ECHO_N "(cached) $ECHO_C" >&6 12570else 12571 ac_check_lib_save_LIBS=$LIBS 12572LIBS="-ldld $LIBS" 12573cat >conftest.$ac_ext <<_ACEOF 12574/* confdefs.h. */ 12575_ACEOF 12576cat confdefs.h >>conftest.$ac_ext 12577cat >>conftest.$ac_ext <<_ACEOF 12578/* end confdefs.h. */ 12579 12580/* Override any gcc2 internal prototype to avoid an error. */ 12581#ifdef __cplusplus 12582extern "C" 12583#endif 12584/* We use char because int might match the return type of a gcc2 12585 builtin and then its argument prototype would still apply. */ 12586char dld_link (); 12587int 12588main () 12589{ 12590dld_link (); 12591 ; 12592 return 0; 12593} 12594_ACEOF 12595rm -f conftest.$ac_objext conftest$ac_exeext 12596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12597 (eval $ac_link) 2>conftest.er1 12598 ac_status=$? 12599 grep -v '^ *+' conftest.er1 >conftest.err 12600 rm -f conftest.er1 12601 cat conftest.err >&5 12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12603 (exit $ac_status); } && 12604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12606 (eval $ac_try) 2>&5 12607 ac_status=$? 12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12609 (exit $ac_status); }; } && 12610 { ac_try='test -s conftest$ac_exeext' 12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12612 (eval $ac_try) 2>&5 12613 ac_status=$? 12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12615 (exit $ac_status); }; }; then 12616 ac_cv_lib_dld_dld_link=yes 12617else 12618 echo "$as_me: failed program was:" >&5 12619sed 's/^/| /' conftest.$ac_ext >&5 12620 12621ac_cv_lib_dld_dld_link=no 12622fi 12623rm -f conftest.err conftest.$ac_objext \ 12624 conftest$ac_exeext conftest.$ac_ext 12625LIBS=$ac_check_lib_save_LIBS 12626fi 12627echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12628echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12629if test $ac_cv_lib_dld_dld_link = yes; then 12630 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12631fi 12632 12633 12634fi 12635 12636 12637fi 12638 12639 12640fi 12641 12642 12643fi 12644 12645 12646fi 12647 12648 ;; 12649 esac 12650 12651 if test "x$lt_cv_dlopen" != xno; then 12652 enable_dlopen=yes 12653 else 12654 enable_dlopen=no 12655 fi 12656 12657 case $lt_cv_dlopen in 12658 dlopen) 12659 save_CPPFLAGS="$CPPFLAGS" 12660 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12661 12662 save_LDFLAGS="$LDFLAGS" 12663 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12664 12665 save_LIBS="$LIBS" 12666 LIBS="$lt_cv_dlopen_libs $LIBS" 12667 12668 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12669echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12670if test "${lt_cv_dlopen_self+set}" = set; then 12671 echo $ECHO_N "(cached) $ECHO_C" >&6 12672else 12673 if test "$cross_compiling" = yes; then : 12674 lt_cv_dlopen_self=cross 12675else 12676 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12677 lt_status=$lt_dlunknown 12678 cat > conftest.$ac_ext <<EOF 12679#line 12679 "configure" 12680#include "confdefs.h" 12681 12682#if HAVE_DLFCN_H 12683#include <dlfcn.h> 12684#endif 12685 12686#include <stdio.h> 12687 12688#ifdef RTLD_GLOBAL 12689# define LT_DLGLOBAL RTLD_GLOBAL 12690#else 12691# ifdef DL_GLOBAL 12692# define LT_DLGLOBAL DL_GLOBAL 12693# else 12694# define LT_DLGLOBAL 0 12695# endif 12696#endif 12697 12698/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12699 find out it does not work in some platform. */ 12700#ifndef LT_DLLAZY_OR_NOW 12701# ifdef RTLD_LAZY 12702# define LT_DLLAZY_OR_NOW RTLD_LAZY 12703# else 12704# ifdef DL_LAZY 12705# define LT_DLLAZY_OR_NOW DL_LAZY 12706# else 12707# ifdef RTLD_NOW 12708# define LT_DLLAZY_OR_NOW RTLD_NOW 12709# else 12710# ifdef DL_NOW 12711# define LT_DLLAZY_OR_NOW DL_NOW 12712# else 12713# define LT_DLLAZY_OR_NOW 0 12714# endif 12715# endif 12716# endif 12717# endif 12718#endif 12719 12720#ifdef __cplusplus 12721extern "C" void exit (int); 12722#endif 12723 12724void fnord() { int i=42;} 12725int main () 12726{ 12727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12728 int status = $lt_dlunknown; 12729 12730 if (self) 12731 { 12732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12733 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12734 /* dlclose (self); */ 12735 } 12736 12737 exit (status); 12738} 12739EOF 12740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12741 (eval $ac_link) 2>&5 12742 ac_status=$? 12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12744 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12745 (./conftest; exit; ) 2>/dev/null 12746 lt_status=$? 12747 case x$lt_status in 12748 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12749 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12750 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12751 esac 12752 else : 12753 # compilation failed 12754 lt_cv_dlopen_self=no 12755 fi 12756fi 12757rm -fr conftest* 12758 12759 12760fi 12761echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12762echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12763 12764 if test "x$lt_cv_dlopen_self" = xyes; then 12765 LDFLAGS="$LDFLAGS $link_static_flag" 12766 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12767echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12768if test "${lt_cv_dlopen_self_static+set}" = set; then 12769 echo $ECHO_N "(cached) $ECHO_C" >&6 12770else 12771 if test "$cross_compiling" = yes; then : 12772 lt_cv_dlopen_self_static=cross 12773else 12774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12775 lt_status=$lt_dlunknown 12776 cat > conftest.$ac_ext <<EOF 12777#line 12777 "configure" 12778#include "confdefs.h" 12779 12780#if HAVE_DLFCN_H 12781#include <dlfcn.h> 12782#endif 12783 12784#include <stdio.h> 12785 12786#ifdef RTLD_GLOBAL 12787# define LT_DLGLOBAL RTLD_GLOBAL 12788#else 12789# ifdef DL_GLOBAL 12790# define LT_DLGLOBAL DL_GLOBAL 12791# else 12792# define LT_DLGLOBAL 0 12793# endif 12794#endif 12795 12796/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12797 find out it does not work in some platform. */ 12798#ifndef LT_DLLAZY_OR_NOW 12799# ifdef RTLD_LAZY 12800# define LT_DLLAZY_OR_NOW RTLD_LAZY 12801# else 12802# ifdef DL_LAZY 12803# define LT_DLLAZY_OR_NOW DL_LAZY 12804# else 12805# ifdef RTLD_NOW 12806# define LT_DLLAZY_OR_NOW RTLD_NOW 12807# else 12808# ifdef DL_NOW 12809# define LT_DLLAZY_OR_NOW DL_NOW 12810# else 12811# define LT_DLLAZY_OR_NOW 0 12812# endif 12813# endif 12814# endif 12815# endif 12816#endif 12817 12818#ifdef __cplusplus 12819extern "C" void exit (int); 12820#endif 12821 12822void fnord() { int i=42;} 12823int main () 12824{ 12825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12826 int status = $lt_dlunknown; 12827 12828 if (self) 12829 { 12830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12831 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12832 /* dlclose (self); */ 12833 } 12834 12835 exit (status); 12836} 12837EOF 12838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12839 (eval $ac_link) 2>&5 12840 ac_status=$? 12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12842 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12843 (./conftest; exit; ) 2>/dev/null 12844 lt_status=$? 12845 case x$lt_status in 12846 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12847 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12848 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12849 esac 12850 else : 12851 # compilation failed 12852 lt_cv_dlopen_self_static=no 12853 fi 12854fi 12855rm -fr conftest* 12856 12857 12858fi 12859echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12860echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12861 fi 12862 12863 CPPFLAGS="$save_CPPFLAGS" 12864 LDFLAGS="$save_LDFLAGS" 12865 LIBS="$save_LIBS" 12866 ;; 12867 esac 12868 12869 case $lt_cv_dlopen_self in 12870 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12871 *) enable_dlopen_self=unknown ;; 12872 esac 12873 12874 case $lt_cv_dlopen_self_static in 12875 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12876 *) enable_dlopen_self_static=unknown ;; 12877 esac 12878fi 12879 12880 12881# The else clause should only fire when bootstrapping the 12882# libtool distribution, otherwise you forgot to ship ltmain.sh 12883# with your package, and you will get complaints that there are 12884# no rules to generate ltmain.sh. 12885if test -f "$ltmain"; then 12886 # See if we are running on zsh, and set the options which allow our commands through 12887 # without removal of \ escapes. 12888 if test -n "${ZSH_VERSION+set}" ; then 12889 setopt NO_GLOB_SUBST 12890 fi 12891 # Now quote all the things that may contain metacharacters while being 12892 # careful not to overquote the AC_SUBSTed values. We take copies of the 12893 # variables and quote the copies for generation of the libtool script. 12894 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12895 SED SHELL STRIP \ 12896 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12897 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12898 deplibs_check_method reload_flag reload_cmds need_locks \ 12899 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12900 lt_cv_sys_global_symbol_to_c_name_address \ 12901 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12902 old_postinstall_cmds old_postuninstall_cmds \ 12903 compiler_CXX \ 12904 CC_CXX \ 12905 LD_CXX \ 12906 lt_prog_compiler_wl_CXX \ 12907 lt_prog_compiler_pic_CXX \ 12908 lt_prog_compiler_static_CXX \ 12909 lt_prog_compiler_no_builtin_flag_CXX \ 12910 export_dynamic_flag_spec_CXX \ 12911 thread_safe_flag_spec_CXX \ 12912 whole_archive_flag_spec_CXX \ 12913 enable_shared_with_static_runtimes_CXX \ 12914 old_archive_cmds_CXX \ 12915 old_archive_from_new_cmds_CXX \ 12916 predep_objects_CXX \ 12917 postdep_objects_CXX \ 12918 predeps_CXX \ 12919 postdeps_CXX \ 12920 compiler_lib_search_path_CXX \ 12921 archive_cmds_CXX \ 12922 archive_expsym_cmds_CXX \ 12923 postinstall_cmds_CXX \ 12924 postuninstall_cmds_CXX \ 12925 old_archive_from_expsyms_cmds_CXX \ 12926 allow_undefined_flag_CXX \ 12927 no_undefined_flag_CXX \ 12928 export_symbols_cmds_CXX \ 12929 hardcode_libdir_flag_spec_CXX \ 12930 hardcode_libdir_flag_spec_ld_CXX \ 12931 hardcode_libdir_separator_CXX \ 12932 hardcode_automatic_CXX \ 12933 module_cmds_CXX \ 12934 module_expsym_cmds_CXX \ 12935 lt_cv_prog_compiler_c_o_CXX \ 12936 exclude_expsyms_CXX \ 12937 include_expsyms_CXX; do 12938 12939 case $var in 12940 old_archive_cmds_CXX | \ 12941 old_archive_from_new_cmds_CXX | \ 12942 archive_cmds_CXX | \ 12943 archive_expsym_cmds_CXX | \ 12944 module_cmds_CXX | \ 12945 module_expsym_cmds_CXX | \ 12946 old_archive_from_expsyms_cmds_CXX | \ 12947 export_symbols_cmds_CXX | \ 12948 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12949 postinstall_cmds | postuninstall_cmds | \ 12950 old_postinstall_cmds | old_postuninstall_cmds | \ 12951 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12952 # Double-quote double-evaled strings. 12953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12954 ;; 12955 *) 12956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12957 ;; 12958 esac 12959 done 12960 12961 case $lt_echo in 12962 *'\$0 --fallback-echo"') 12963 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12964 ;; 12965 esac 12966 12967cfgfile="$ofile" 12968 12969 cat <<__EOF__ >> "$cfgfile" 12970# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12971 12972# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12973 12974# Shell to use when invoking shell scripts. 12975SHELL=$lt_SHELL 12976 12977# Whether or not to build shared libraries. 12978build_libtool_libs=$enable_shared 12979 12980# Whether or not to build static libraries. 12981build_old_libs=$enable_static 12982 12983# Whether or not to add -lc for building shared libraries. 12984build_libtool_need_lc=$archive_cmds_need_lc_CXX 12985 12986# Whether or not to disallow shared libs when runtime libs are static 12987allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12988 12989# Whether or not to optimize for fast installation. 12990fast_install=$enable_fast_install 12991 12992# The host system. 12993host_alias=$host_alias 12994host=$host 12995 12996# An echo program that does not interpret backslashes. 12997echo=$lt_echo 12998 12999# The archiver. 13000AR=$lt_AR 13001AR_FLAGS=$lt_AR_FLAGS 13002 13003# A C compiler. 13004LTCC=$lt_LTCC 13005 13006# A language-specific compiler. 13007CC=$lt_compiler_CXX 13008 13009# Is the compiler the GNU C compiler? 13010with_gcc=$GCC_CXX 13011 13012# An ERE matcher. 13013EGREP=$lt_EGREP 13014 13015# The linker used to build libraries. 13016LD=$lt_LD_CXX 13017 13018# Whether we need hard or soft links. 13019LN_S=$lt_LN_S 13020 13021# A BSD-compatible nm program. 13022NM=$lt_NM 13023 13024# A symbol stripping program 13025STRIP=$lt_STRIP 13026 13027# Used to examine libraries when file_magic_cmd begins "file" 13028MAGIC_CMD=$MAGIC_CMD 13029 13030# Used on cygwin: DLL creation program. 13031DLLTOOL="$DLLTOOL" 13032 13033# Used on cygwin: object dumper. 13034OBJDUMP="$OBJDUMP" 13035 13036# Used on cygwin: assembler. 13037AS="$AS" 13038 13039# The name of the directory that contains temporary libtool files. 13040objdir=$objdir 13041 13042# How to create reloadable object files. 13043reload_flag=$lt_reload_flag 13044reload_cmds=$lt_reload_cmds 13045 13046# How to pass a linker flag through the compiler. 13047wl=$lt_lt_prog_compiler_wl_CXX 13048 13049# Object file suffix (normally "o"). 13050objext="$ac_objext" 13051 13052# Old archive suffix (normally "a"). 13053libext="$libext" 13054 13055# Shared library suffix (normally ".so"). 13056shrext_cmds='$shrext_cmds' 13057 13058# Executable file suffix (normally ""). 13059exeext="$exeext" 13060 13061# Additional compiler flags for building library objects. 13062pic_flag=$lt_lt_prog_compiler_pic_CXX 13063pic_mode=$pic_mode 13064 13065# What is the maximum length of a command? 13066max_cmd_len=$lt_cv_sys_max_cmd_len 13067 13068# Does compiler simultaneously support -c and -o options? 13069compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13070 13071# Must we lock files when doing compilation ? 13072need_locks=$lt_need_locks 13073 13074# Do we need the lib prefix for modules? 13075need_lib_prefix=$need_lib_prefix 13076 13077# Do we need a version for libraries? 13078need_version=$need_version 13079 13080# Whether dlopen is supported. 13081dlopen_support=$enable_dlopen 13082 13083# Whether dlopen of programs is supported. 13084dlopen_self=$enable_dlopen_self 13085 13086# Whether dlopen of statically linked programs is supported. 13087dlopen_self_static=$enable_dlopen_self_static 13088 13089# Compiler flag to prevent dynamic linking. 13090link_static_flag=$lt_lt_prog_compiler_static_CXX 13091 13092# Compiler flag to turn off builtin functions. 13093no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13094 13095# Compiler flag to allow reflexive dlopens. 13096export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13097 13098# Compiler flag to generate shared objects directly from archives. 13099whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13100 13101# Compiler flag to generate thread-safe objects. 13102thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13103 13104# Library versioning type. 13105version_type=$version_type 13106 13107# Format of library name prefix. 13108libname_spec=$lt_libname_spec 13109 13110# List of archive names. First name is the real one, the rest are links. 13111# The last name is the one that the linker finds with -lNAME. 13112library_names_spec=$lt_library_names_spec 13113 13114# The coded name of the library, if different from the real name. 13115soname_spec=$lt_soname_spec 13116 13117# Commands used to build and install an old-style archive. 13118RANLIB=$lt_RANLIB 13119old_archive_cmds=$lt_old_archive_cmds_CXX 13120old_postinstall_cmds=$lt_old_postinstall_cmds 13121old_postuninstall_cmds=$lt_old_postuninstall_cmds 13122 13123# Create an old-style archive from a shared archive. 13124old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13125 13126# Create a temporary old-style archive to link instead of a shared archive. 13127old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13128 13129# Commands used to build and install a shared archive. 13130archive_cmds=$lt_archive_cmds_CXX 13131archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13132postinstall_cmds=$lt_postinstall_cmds 13133postuninstall_cmds=$lt_postuninstall_cmds 13134 13135# Commands used to build a loadable module (assumed same as above if empty) 13136module_cmds=$lt_module_cmds_CXX 13137module_expsym_cmds=$lt_module_expsym_cmds_CXX 13138 13139# Commands to strip libraries. 13140old_striplib=$lt_old_striplib 13141striplib=$lt_striplib 13142 13143# Dependencies to place before the objects being linked to create a 13144# shared library. 13145predep_objects=$lt_predep_objects_CXX 13146 13147# Dependencies to place after the objects being linked to create a 13148# shared library. 13149postdep_objects=$lt_postdep_objects_CXX 13150 13151# Dependencies to place before the objects being linked to create a 13152# shared library. 13153predeps=$lt_predeps_CXX 13154 13155# Dependencies to place after the objects being linked to create a 13156# shared library. 13157postdeps=$lt_postdeps_CXX 13158 13159# The library search path used internally by the compiler when linking 13160# a shared library. 13161compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13162 13163# Method to check whether dependent libraries are shared objects. 13164deplibs_check_method=$lt_deplibs_check_method 13165 13166# Command to use when deplibs_check_method == file_magic. 13167file_magic_cmd=$lt_file_magic_cmd 13168 13169# Flag that allows shared libraries with undefined symbols to be built. 13170allow_undefined_flag=$lt_allow_undefined_flag_CXX 13171 13172# Flag that forces no undefined symbols. 13173no_undefined_flag=$lt_no_undefined_flag_CXX 13174 13175# Commands used to finish a libtool library installation in a directory. 13176finish_cmds=$lt_finish_cmds 13177 13178# Same as above, but a single script fragment to be evaled but not shown. 13179finish_eval=$lt_finish_eval 13180 13181# Take the output of nm and produce a listing of raw symbols and C names. 13182global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13183 13184# Transform the output of nm in a proper C declaration 13185global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13186 13187# Transform the output of nm in a C name address pair 13188global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13189 13190# This is the shared library runtime path variable. 13191runpath_var=$runpath_var 13192 13193# This is the shared library path variable. 13194shlibpath_var=$shlibpath_var 13195 13196# Is shlibpath searched before the hard-coded library search path? 13197shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13198 13199# How to hardcode a shared library path into an executable. 13200hardcode_action=$hardcode_action_CXX 13201 13202# Whether we should hardcode library paths into libraries. 13203hardcode_into_libs=$hardcode_into_libs 13204 13205# Flag to hardcode \$libdir into a binary during linking. 13206# This must work even if \$libdir does not exist. 13207hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13208 13209# If ld is used when linking, flag to hardcode \$libdir into 13210# a binary during linking. This must work even if \$libdir does 13211# not exist. 13212hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13213 13214# Whether we need a single -rpath flag with a separated argument. 13215hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13216 13217# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13218# resulting binary. 13219hardcode_direct=$hardcode_direct_CXX 13220 13221# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13222# resulting binary. 13223hardcode_minus_L=$hardcode_minus_L_CXX 13224 13225# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13226# the resulting binary. 13227hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13228 13229# Set to yes if building a shared library automatically hardcodes DIR into the library 13230# and all subsequent libraries and executables linked against it. 13231hardcode_automatic=$hardcode_automatic_CXX 13232 13233# Variables whose values should be saved in libtool wrapper scripts and 13234# restored at relink time. 13235variables_saved_for_relink="$variables_saved_for_relink" 13236 13237# Whether libtool must link a program against all its dependency libraries. 13238link_all_deplibs=$link_all_deplibs_CXX 13239 13240# Compile-time system search path for libraries 13241sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13242 13243# Run-time system search path for libraries 13244sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13245 13246# Fix the shell variable \$srcfile for the compiler. 13247fix_srcfile_path="$fix_srcfile_path_CXX" 13248 13249# Set to yes if exported symbols are required. 13250always_export_symbols=$always_export_symbols_CXX 13251 13252# The commands to list exported symbols. 13253export_symbols_cmds=$lt_export_symbols_cmds_CXX 13254 13255# The commands to extract the exported symbol list from a shared archive. 13256extract_expsyms_cmds=$lt_extract_expsyms_cmds 13257 13258# Symbols that should not be listed in the preloaded symbols. 13259exclude_expsyms=$lt_exclude_expsyms_CXX 13260 13261# Symbols that must always be exported. 13262include_expsyms=$lt_include_expsyms_CXX 13263 13264# ### END LIBTOOL TAG CONFIG: $tagname 13265 13266__EOF__ 13267 13268 13269else 13270 # If there is no Makefile yet, we rely on a make rule to execute 13271 # `config.status --recheck' to rerun these tests and create the 13272 # libtool script then. 13273 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13274 if test -f "$ltmain_in"; then 13275 test -f Makefile && make "$ltmain" 13276 fi 13277fi 13278 13279 13280ac_ext=c 13281ac_cpp='$CPP $CPPFLAGS' 13282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13284ac_compiler_gnu=$ac_cv_c_compiler_gnu 13285 13286CC=$lt_save_CC 13287LDCXX=$LD 13288LD=$lt_save_LD 13289GCC=$lt_save_GCC 13290with_gnu_ldcxx=$with_gnu_ld 13291with_gnu_ld=$lt_save_with_gnu_ld 13292lt_cv_path_LDCXX=$lt_cv_path_LD 13293lt_cv_path_LD=$lt_save_path_LD 13294lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13295lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13296 13297 else 13298 tagname="" 13299 fi 13300 ;; 13301 13302 F77) 13303 if test -n "$F77" && test "X$F77" != "Xno"; then 13304 13305ac_ext=f 13306ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13307ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13308ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13309 13310 13311archive_cmds_need_lc_F77=no 13312allow_undefined_flag_F77= 13313always_export_symbols_F77=no 13314archive_expsym_cmds_F77= 13315export_dynamic_flag_spec_F77= 13316hardcode_direct_F77=no 13317hardcode_libdir_flag_spec_F77= 13318hardcode_libdir_flag_spec_ld_F77= 13319hardcode_libdir_separator_F77= 13320hardcode_minus_L_F77=no 13321hardcode_automatic_F77=no 13322module_cmds_F77= 13323module_expsym_cmds_F77= 13324link_all_deplibs_F77=unknown 13325old_archive_cmds_F77=$old_archive_cmds 13326no_undefined_flag_F77= 13327whole_archive_flag_spec_F77= 13328enable_shared_with_static_runtimes_F77=no 13329 13330# Source file extension for f77 test sources. 13331ac_ext=f 13332 13333# Object file extension for compiled f77 test sources. 13334objext=o 13335objext_F77=$objext 13336 13337# Code to be used in simple compile tests 13338lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13339 13340# Code to be used in simple link tests 13341lt_simple_link_test_code=" program t\n end\n" 13342 13343# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13344 13345# If no C compiler was specified, use CC. 13346LTCC=${LTCC-"$CC"} 13347 13348# Allow CC to be a program name with arguments. 13349compiler=$CC 13350 13351 13352# Allow CC to be a program name with arguments. 13353lt_save_CC="$CC" 13354CC=${F77-"f77"} 13355compiler=$CC 13356compiler_F77=$CC 13357cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13358 13359echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13360echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13361echo "$as_me:$LINENO: result: $can_build_shared" >&5 13362echo "${ECHO_T}$can_build_shared" >&6 13363 13364echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13365echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13366test "$can_build_shared" = "no" && enable_shared=no 13367 13368# On AIX, shared libraries and static libraries use the same namespace, and 13369# are all built from PIC. 13370case "$host_os" in 13371aix3*) 13372 test "$enable_shared" = yes && enable_static=no 13373 if test -n "$RANLIB"; then 13374 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13375 postinstall_cmds='$RANLIB $lib' 13376 fi 13377 ;; 13378aix4* | aix5*) 13379 test "$enable_shared" = yes && enable_static=no 13380 ;; 13381esac 13382echo "$as_me:$LINENO: result: $enable_shared" >&5 13383echo "${ECHO_T}$enable_shared" >&6 13384 13385echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13386echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13387# Make sure either enable_shared or enable_static is yes. 13388test "$enable_shared" = yes || enable_static=yes 13389echo "$as_me:$LINENO: result: $enable_static" >&5 13390echo "${ECHO_T}$enable_static" >&6 13391 13392test "$ld_shlibs_F77" = no && can_build_shared=no 13393 13394GCC_F77="$G77" 13395LD_F77="$LD" 13396 13397lt_prog_compiler_wl_F77= 13398lt_prog_compiler_pic_F77= 13399lt_prog_compiler_static_F77= 13400 13401echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13402echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13403 13404 if test "$GCC" = yes; then 13405 lt_prog_compiler_wl_F77='-Wl,' 13406 lt_prog_compiler_static_F77='-static' 13407 13408 case $host_os in 13409 aix*) 13410 # All AIX code is PIC. 13411 if test "$host_cpu" = ia64; then 13412 # AIX 5 now supports IA64 processor 13413 lt_prog_compiler_static_F77='-Bstatic' 13414 fi 13415 ;; 13416 13417 amigaos*) 13418 # FIXME: we need at least 68020 code to build shared libraries, but 13419 # adding the `-m68020' flag to GCC prevents building anything better, 13420 # like `-m68040'. 13421 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13422 ;; 13423 13424 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13425 # PIC is the default for these OSes. 13426 ;; 13427 13428 mingw* | pw32* | os2*) 13429 # This hack is so that the source file can tell whether it is being 13430 # built for inclusion in a dll (and should export symbols for example). 13431 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13432 ;; 13433 13434 darwin* | rhapsody*) 13435 # PIC is the default on this platform 13436 # Common symbols not allowed in MH_DYLIB files 13437 lt_prog_compiler_pic_F77='-fno-common' 13438 ;; 13439 13440 msdosdjgpp*) 13441 # Just because we use GCC doesn't mean we suddenly get shared libraries 13442 # on systems that don't support them. 13443 lt_prog_compiler_can_build_shared_F77=no 13444 enable_shared=no 13445 ;; 13446 13447 sysv4*MP*) 13448 if test -d /usr/nec; then 13449 lt_prog_compiler_pic_F77=-Kconform_pic 13450 fi 13451 ;; 13452 13453 hpux*) 13454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13455 # not for PA HP-UX. 13456 case "$host_cpu" in 13457 hppa*64*|ia64*) 13458 # +Z the default 13459 ;; 13460 *) 13461 lt_prog_compiler_pic_F77='-fPIC' 13462 ;; 13463 esac 13464 ;; 13465 13466 *) 13467 lt_prog_compiler_pic_F77='-fPIC' 13468 ;; 13469 esac 13470 else 13471 # PORTME Check for flag to pass linker flags through the system compiler. 13472 case $host_os in 13473 aix*) 13474 lt_prog_compiler_wl_F77='-Wl,' 13475 if test "$host_cpu" = ia64; then 13476 # AIX 5 now supports IA64 processor 13477 lt_prog_compiler_static_F77='-Bstatic' 13478 else 13479 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13480 fi 13481 ;; 13482 13483 mingw* | pw32* | os2*) 13484 # This hack is so that the source file can tell whether it is being 13485 # built for inclusion in a dll (and should export symbols for example). 13486 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13487 ;; 13488 13489 hpux9* | hpux10* | hpux11*) 13490 lt_prog_compiler_wl_F77='-Wl,' 13491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13492 # not for PA HP-UX. 13493 case "$host_cpu" in 13494 hppa*64*|ia64*) 13495 # +Z the default 13496 ;; 13497 *) 13498 lt_prog_compiler_pic_F77='+Z' 13499 ;; 13500 esac 13501 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13502 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13503 ;; 13504 13505 irix5* | irix6* | nonstopux*) 13506 lt_prog_compiler_wl_F77='-Wl,' 13507 # PIC (with -KPIC) is the default. 13508 lt_prog_compiler_static_F77='-non_shared' 13509 ;; 13510 13511 newsos6) 13512 lt_prog_compiler_pic_F77='-KPIC' 13513 lt_prog_compiler_static_F77='-Bstatic' 13514 ;; 13515 13516 linux*) 13517 case $CC in 13518 icc* | ecc*) 13519 lt_prog_compiler_wl_F77='-Wl,' 13520 lt_prog_compiler_pic_F77='-KPIC' 13521 lt_prog_compiler_static_F77='-static' 13522 ;; 13523 ccc*) 13524 lt_prog_compiler_wl_F77='-Wl,' 13525 # All Alpha code is PIC. 13526 lt_prog_compiler_static_F77='-non_shared' 13527 ;; 13528 esac 13529 ;; 13530 13531 osf3* | osf4* | osf5*) 13532 lt_prog_compiler_wl_F77='-Wl,' 13533 # All OSF/1 code is PIC. 13534 lt_prog_compiler_static_F77='-non_shared' 13535 ;; 13536 13537 sco3.2v5*) 13538 lt_prog_compiler_pic_F77='-Kpic' 13539 lt_prog_compiler_static_F77='-dn' 13540 ;; 13541 13542 solaris*) 13543 lt_prog_compiler_wl_F77='-Wl,' 13544 lt_prog_compiler_pic_F77='-KPIC' 13545 lt_prog_compiler_static_F77='-Bstatic' 13546 ;; 13547 13548 sunos4*) 13549 lt_prog_compiler_wl_F77='-Qoption ld ' 13550 lt_prog_compiler_pic_F77='-PIC' 13551 lt_prog_compiler_static_F77='-Bstatic' 13552 ;; 13553 13554 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13555 lt_prog_compiler_wl_F77='-Wl,' 13556 lt_prog_compiler_pic_F77='-KPIC' 13557 lt_prog_compiler_static_F77='-Bstatic' 13558 ;; 13559 13560 sysv4*MP*) 13561 if test -d /usr/nec ;then 13562 lt_prog_compiler_pic_F77='-Kconform_pic' 13563 lt_prog_compiler_static_F77='-Bstatic' 13564 fi 13565 ;; 13566 13567 uts4*) 13568 lt_prog_compiler_pic_F77='-pic' 13569 lt_prog_compiler_static_F77='-Bstatic' 13570 ;; 13571 13572 *) 13573 lt_prog_compiler_can_build_shared_F77=no 13574 ;; 13575 esac 13576 fi 13577 13578echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13579echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13580 13581# 13582# Check to make sure the PIC flag actually works. 13583# 13584if test -n "$lt_prog_compiler_pic_F77"; then 13585 13586echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13587echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13588if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13589 echo $ECHO_N "(cached) $ECHO_C" >&6 13590else 13591 lt_prog_compiler_pic_works_F77=no 13592 ac_outfile=conftest.$ac_objext 13593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13594 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13595 # Insert the option either (1) after the last *FLAGS variable, or 13596 # (2) before a word containing "conftest.", or (3) at the end. 13597 # Note that $ac_compile itself does not contain backslashes and begins 13598 # with a dollar sign (not a hyphen), so the echo should work correctly. 13599 # The option is referenced via a variable to avoid confusing sed. 13600 lt_compile=`echo "$ac_compile" | $SED \ 13601 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13603 -e 's:$: $lt_compiler_flag:'` 13604 (eval echo "\"\$as_me:13604: $lt_compile\"" >&5) 13605 (eval "$lt_compile" 2>conftest.err) 13606 ac_status=$? 13607 cat conftest.err >&5 13608 echo "$as_me:13608: \$? = $ac_status" >&5 13609 if (exit $ac_status) && test -s "$ac_outfile"; then 13610 # The compiler can only warn and ignore the option if not recognized 13611 # So say no if there are warnings 13612 if test ! -s conftest.err; then 13613 lt_prog_compiler_pic_works_F77=yes 13614 fi 13615 fi 13616 $rm conftest* 13617 13618fi 13619echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13620echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13621 13622if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13623 case $lt_prog_compiler_pic_F77 in 13624 "" | " "*) ;; 13625 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13626 esac 13627else 13628 lt_prog_compiler_pic_F77= 13629 lt_prog_compiler_can_build_shared_F77=no 13630fi 13631 13632fi 13633case "$host_os" in 13634 # For platforms which do not support PIC, -DPIC is meaningless: 13635 *djgpp*) 13636 lt_prog_compiler_pic_F77= 13637 ;; 13638 *) 13639 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13640 ;; 13641esac 13642 13643echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13644echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13645if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13646 echo $ECHO_N "(cached) $ECHO_C" >&6 13647else 13648 lt_cv_prog_compiler_c_o_F77=no 13649 $rm -r conftest 2>/dev/null 13650 mkdir conftest 13651 cd conftest 13652 mkdir out 13653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13654 13655 lt_compiler_flag="-o out/conftest2.$ac_objext" 13656 # Insert the option either (1) after the last *FLAGS variable, or 13657 # (2) before a word containing "conftest.", or (3) at the end. 13658 # Note that $ac_compile itself does not contain backslashes and begins 13659 # with a dollar sign (not a hyphen), so the echo should work correctly. 13660 lt_compile=`echo "$ac_compile" | $SED \ 13661 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13663 -e 's:$: $lt_compiler_flag:'` 13664 (eval echo "\"\$as_me:13664: $lt_compile\"" >&5) 13665 (eval "$lt_compile" 2>out/conftest.err) 13666 ac_status=$? 13667 cat out/conftest.err >&5 13668 echo "$as_me:13668: \$? = $ac_status" >&5 13669 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13670 then 13671 # The compiler can only warn and ignore the option if not recognized 13672 # So say no if there are warnings 13673 if test ! -s out/conftest.err; then 13674 lt_cv_prog_compiler_c_o_F77=yes 13675 fi 13676 fi 13677 chmod u+w . 13678 $rm conftest* 13679 # SGI C++ compiler will create directory out/ii_files/ for 13680 # template instantiation 13681 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13682 $rm out/* && rmdir out 13683 cd .. 13684 rmdir conftest 13685 $rm conftest* 13686 13687fi 13688echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13689echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13690 13691 13692hard_links="nottested" 13693if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13694 # do not overwrite the value of need_locks provided by the user 13695 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13696echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13697 hard_links=yes 13698 $rm conftest* 13699 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13700 touch conftest.a 13701 ln conftest.a conftest.b 2>&5 || hard_links=no 13702 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13703 echo "$as_me:$LINENO: result: $hard_links" >&5 13704echo "${ECHO_T}$hard_links" >&6 13705 if test "$hard_links" = no; then 13706 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13707echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13708 need_locks=warn 13709 fi 13710else 13711 need_locks=no 13712fi 13713 13714echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13715echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13716 13717 runpath_var= 13718 allow_undefined_flag_F77= 13719 enable_shared_with_static_runtimes_F77=no 13720 archive_cmds_F77= 13721 archive_expsym_cmds_F77= 13722 old_archive_From_new_cmds_F77= 13723 old_archive_from_expsyms_cmds_F77= 13724 export_dynamic_flag_spec_F77= 13725 whole_archive_flag_spec_F77= 13726 thread_safe_flag_spec_F77= 13727 hardcode_libdir_flag_spec_F77= 13728 hardcode_libdir_flag_spec_ld_F77= 13729 hardcode_libdir_separator_F77= 13730 hardcode_direct_F77=no 13731 hardcode_minus_L_F77=no 13732 hardcode_shlibpath_var_F77=unsupported 13733 link_all_deplibs_F77=unknown 13734 hardcode_automatic_F77=no 13735 module_cmds_F77= 13736 module_expsym_cmds_F77= 13737 always_export_symbols_F77=no 13738 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13739 # include_expsyms should be a list of space-separated symbols to be *always* 13740 # included in the symbol list 13741 include_expsyms_F77= 13742 # exclude_expsyms can be an extended regexp of symbols to exclude 13743 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13744 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13745 # as well as any symbol that contains `d'. 13746 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13747 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13748 # platforms (ab)use it in PIC code, but their linkers get confused if 13749 # the symbol is explicitly referenced. Since portable code cannot 13750 # rely on this symbol name, it's probably fine to never include it in 13751 # preloaded symbol tables. 13752 extract_expsyms_cmds= 13753 13754 case $host_os in 13755 cygwin* | mingw* | pw32*) 13756 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13757 # When not using gcc, we currently assume that we are using 13758 # Microsoft Visual C++. 13759 if test "$GCC" != yes; then 13760 with_gnu_ld=no 13761 fi 13762 ;; 13763 openbsd*) 13764 with_gnu_ld=no 13765 ;; 13766 esac 13767 13768 ld_shlibs_F77=yes 13769 if test "$with_gnu_ld" = yes; then 13770 # If archive_cmds runs LD, not CC, wlarc should be empty 13771 wlarc='${wl}' 13772 13773 # See if GNU ld supports shared libraries. 13774 case $host_os in 13775 aix3* | aix4* | aix5*) 13776 # On AIX/PPC, the GNU linker is very broken 13777 if test "$host_cpu" != ia64; then 13778 ld_shlibs_F77=no 13779 cat <<EOF 1>&2 13780 13781*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13782*** to be unable to reliably create shared libraries on AIX. 13783*** Therefore, libtool is disabling shared libraries support. If you 13784*** really care for shared libraries, you may want to modify your PATH 13785*** so that a non-GNU linker is found, and then restart. 13786 13787EOF 13788 fi 13789 ;; 13790 13791 amigaos*) 13792 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)' 13793 hardcode_libdir_flag_spec_F77='-L$libdir' 13794 hardcode_minus_L_F77=yes 13795 13796 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13797 # that the semantics of dynamic libraries on AmigaOS, at least up 13798 # to version 4, is to share data among multiple programs linked 13799 # with the same dynamic library. Since this doesn't match the 13800 # behavior of shared libraries on other platforms, we can't use 13801 # them. 13802 ld_shlibs_F77=no 13803 ;; 13804 13805 beos*) 13806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13807 allow_undefined_flag_F77=unsupported 13808 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13809 # support --undefined. This deserves some investigation. FIXME 13810 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13811 else 13812 ld_shlibs_F77=no 13813 fi 13814 ;; 13815 13816 cygwin* | mingw* | pw32*) 13817 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13818 # as there is no search path for DLLs. 13819 hardcode_libdir_flag_spec_F77='-L$libdir' 13820 allow_undefined_flag_F77=unsupported 13821 always_export_symbols_F77=no 13822 enable_shared_with_static_runtimes_F77=yes 13823 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13824 13825 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13826 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13827 # If the export-symbols file already is a .def file (1st line 13828 # is EXPORTS), use it as is; otherwise, prepend... 13829 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13830 cp $export_symbols $output_objdir/$soname.def; 13831 else 13832 echo EXPORTS > $output_objdir/$soname.def; 13833 cat $export_symbols >> $output_objdir/$soname.def; 13834 fi~ 13835 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13836 else 13837 ld_shlibs=no 13838 fi 13839 ;; 13840 13841 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 13842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13843 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13844 wlarc= 13845 else 13846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13847 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13848 fi 13849 ;; 13850 13851 solaris* | sysv5*) 13852 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13853 ld_shlibs_F77=no 13854 cat <<EOF 1>&2 13855 13856*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13857*** create shared libraries on Solaris systems. Therefore, libtool 13858*** is disabling shared libraries support. We urge you to upgrade GNU 13859*** binutils to release 2.9.1 or newer. Another option is to modify 13860*** your PATH or compiler configuration so that the native linker is 13861*** used, and then restart. 13862 13863EOF 13864 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13865 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13866 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13867 else 13868 ld_shlibs_F77=no 13869 fi 13870 ;; 13871 13872 sunos4*) 13873 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13874 wlarc= 13875 hardcode_direct_F77=yes 13876 hardcode_shlibpath_var_F77=no 13877 ;; 13878 13879 linux*) 13880 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13881 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13882 archive_cmds_F77="$tmp_archive_cmds" 13883 supports_anon_versioning=no 13884 case `$LD -v 2>/dev/null` in 13885 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13886 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13887 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13888 *\ 2.11.*) ;; # other 2.11 versions 13889 *) supports_anon_versioning=yes ;; 13890 esac 13891 if test $supports_anon_versioning = yes; then 13892 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13893cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13894$echo "local: *; };" >> $output_objdir/$libname.ver~ 13895 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13896 else 13897 archive_expsym_cmds_F77="$tmp_archive_cmds" 13898 fi 13899 link_all_deplibs_F77=no 13900 else 13901 ld_shlibs_F77=no 13902 fi 13903 ;; 13904 13905 *) 13906 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13907 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13908 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13909 else 13910 ld_shlibs_F77=no 13911 fi 13912 ;; 13913 esac 13914 13915 if test "$ld_shlibs_F77" = yes; then 13916 runpath_var=LD_RUN_PATH 13917 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13918 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13919 # ancient GNU ld didn't support --whole-archive et. al. 13920 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13921 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13922 else 13923 whole_archive_flag_spec_F77= 13924 fi 13925 fi 13926 else 13927 # PORTME fill in a description of your system's linker (not GNU ld) 13928 case $host_os in 13929 aix3*) 13930 allow_undefined_flag_F77=unsupported 13931 always_export_symbols_F77=yes 13932 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' 13933 # Note: this linker hardcodes the directories in LIBPATH if there 13934 # are no directories specified by -L. 13935 hardcode_minus_L_F77=yes 13936 if test "$GCC" = yes && test -z "$link_static_flag"; then 13937 # Neither direct hardcoding nor static linking is supported with a 13938 # broken collect2. 13939 hardcode_direct_F77=unsupported 13940 fi 13941 ;; 13942 13943 aix4* | aix5*) 13944 if test "$host_cpu" = ia64; then 13945 # On IA64, the linker does run time linking by default, so we don't 13946 # have to do anything special. 13947 aix_use_runtimelinking=no 13948 exp_sym_flag='-Bexport' 13949 no_entry_flag="" 13950 else 13951 # If we're using GNU nm, then we don't want the "-C" option. 13952 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13953 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13954 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' 13955 else 13956 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' 13957 fi 13958 aix_use_runtimelinking=no 13959 13960 # Test if we are trying to use run time linking or normal 13961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13962 # need to do runtime linking. 13963 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13964 for ld_flag in $LDFLAGS; do 13965 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13966 aix_use_runtimelinking=yes 13967 break 13968 fi 13969 done 13970 esac 13971 13972 exp_sym_flag='-bexport' 13973 no_entry_flag='-bnoentry' 13974 fi 13975 13976 # When large executables or shared objects are built, AIX ld can 13977 # have problems creating the table of contents. If linking a library 13978 # or program results in "error TOC overflow" add -mminimal-toc to 13979 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13980 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13981 13982 archive_cmds_F77='' 13983 hardcode_direct_F77=yes 13984 hardcode_libdir_separator_F77=':' 13985 link_all_deplibs_F77=yes 13986 13987 if test "$GCC" = yes; then 13988 case $host_os in aix4.012|aix4.012.*) 13989 # We only want to do this on AIX 4.2 and lower, the check 13990 # below for broken collect2 doesn't work under 4.3+ 13991 collect2name=`${CC} -print-prog-name=collect2` 13992 if test -f "$collect2name" && \ 13993 strings "$collect2name" | grep resolve_lib_name >/dev/null 13994 then 13995 # We have reworked collect2 13996 hardcode_direct_F77=yes 13997 else 13998 # We have old collect2 13999 hardcode_direct_F77=unsupported 14000 # It fails to find uninstalled libraries when the uninstalled 14001 # path is not listed in the libpath. Setting hardcode_minus_L 14002 # to unsupported forces relinking 14003 hardcode_minus_L_F77=yes 14004 hardcode_libdir_flag_spec_F77='-L$libdir' 14005 hardcode_libdir_separator_F77= 14006 fi 14007 esac 14008 shared_flag='-shared' 14009 else 14010 # not using gcc 14011 if test "$host_cpu" = ia64; then 14012 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14013 # chokes on -Wl,-G. The following line is correct: 14014 shared_flag='-G' 14015 else 14016 if test "$aix_use_runtimelinking" = yes; then 14017 shared_flag='${wl}-G' 14018 else 14019 shared_flag='${wl}-bM:SRE' 14020 fi 14021 fi 14022 fi 14023 14024 # It seems that -bexpall does not export symbols beginning with 14025 # underscore (_), so it is better to generate a list of symbols to export. 14026 always_export_symbols_F77=yes 14027 if test "$aix_use_runtimelinking" = yes; then 14028 # Warning - without using the other runtime loading flags (-brtl), 14029 # -berok will link without error, but may produce a broken library. 14030 allow_undefined_flag_F77='-berok' 14031 # Determine the default libpath from the value encoded in an empty executable. 14032 cat >conftest.$ac_ext <<_ACEOF 14033 program main 14034 14035 end 14036_ACEOF 14037rm -f conftest.$ac_objext conftest$ac_exeext 14038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14039 (eval $ac_link) 2>conftest.er1 14040 ac_status=$? 14041 grep -v '^ *+' conftest.er1 >conftest.err 14042 rm -f conftest.er1 14043 cat conftest.err >&5 14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14045 (exit $ac_status); } && 14046 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14048 (eval $ac_try) 2>&5 14049 ac_status=$? 14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14051 (exit $ac_status); }; } && 14052 { ac_try='test -s conftest$ac_exeext' 14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14054 (eval $ac_try) 2>&5 14055 ac_status=$? 14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14057 (exit $ac_status); }; }; then 14058 14059aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14060}'` 14061# Check for a 64-bit object if we didn't find anything. 14062if 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; } 14063}'`; fi 14064else 14065 echo "$as_me: failed program was:" >&5 14066sed 's/^/| /' conftest.$ac_ext >&5 14067 14068fi 14069rm -f conftest.err conftest.$ac_objext \ 14070 conftest$ac_exeext conftest.$ac_ext 14071if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14072 14073 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14074 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14075 else 14076 if test "$host_cpu" = ia64; then 14077 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14078 allow_undefined_flag_F77="-z nodefs" 14079 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 14080 else 14081 # Determine the default libpath from the value encoded in an empty executable. 14082 cat >conftest.$ac_ext <<_ACEOF 14083 program main 14084 14085 end 14086_ACEOF 14087rm -f conftest.$ac_objext conftest$ac_exeext 14088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14089 (eval $ac_link) 2>conftest.er1 14090 ac_status=$? 14091 grep -v '^ *+' conftest.er1 >conftest.err 14092 rm -f conftest.er1 14093 cat conftest.err >&5 14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14095 (exit $ac_status); } && 14096 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14098 (eval $ac_try) 2>&5 14099 ac_status=$? 14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14101 (exit $ac_status); }; } && 14102 { ac_try='test -s conftest$ac_exeext' 14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14104 (eval $ac_try) 2>&5 14105 ac_status=$? 14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14107 (exit $ac_status); }; }; then 14108 14109aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14110}'` 14111# Check for a 64-bit object if we didn't find anything. 14112if 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; } 14113}'`; fi 14114else 14115 echo "$as_me: failed program was:" >&5 14116sed 's/^/| /' conftest.$ac_ext >&5 14117 14118fi 14119rm -f conftest.err conftest.$ac_objext \ 14120 conftest$ac_exeext conftest.$ac_ext 14121if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14122 14123 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14124 # Warning - without using the other run time loading flags, 14125 # -berok will link without error, but may produce a broken library. 14126 no_undefined_flag_F77=' ${wl}-bernotok' 14127 allow_undefined_flag_F77=' ${wl}-berok' 14128 # -bexpall does not export symbols beginning with underscore (_) 14129 always_export_symbols_F77=yes 14130 # Exported symbols can be pulled into shared objects from archives 14131 whole_archive_flag_spec_F77=' ' 14132 archive_cmds_need_lc_F77=yes 14133 # This is similar to how AIX traditionally builds it's shared libraries. 14134 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14135 fi 14136 fi 14137 ;; 14138 14139 amigaos*) 14140 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)' 14141 hardcode_libdir_flag_spec_F77='-L$libdir' 14142 hardcode_minus_L_F77=yes 14143 # see comment about different semantics on the GNU ld section 14144 ld_shlibs_F77=no 14145 ;; 14146 14147 bsdi4*) 14148 export_dynamic_flag_spec_F77=-rdynamic 14149 ;; 14150 14151 cygwin* | mingw* | pw32*) 14152 # When not using gcc, we currently assume that we are using 14153 # Microsoft Visual C++. 14154 # hardcode_libdir_flag_spec is actually meaningless, as there is 14155 # no search path for DLLs. 14156 hardcode_libdir_flag_spec_F77=' ' 14157 allow_undefined_flag_F77=unsupported 14158 # Tell ltmain to make .lib files, not .a files. 14159 libext=lib 14160 # Tell ltmain to make .dll files, not .so files. 14161 shrext_cmds=".dll" 14162 # FIXME: Setting linknames here is a bad hack. 14163 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14164 # The linker will automatically build a .lib file if we build a DLL. 14165 old_archive_From_new_cmds_F77='true' 14166 # FIXME: Should let the user specify the lib program. 14167 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14168 fix_srcfile_path='`cygpath -w "$srcfile"`' 14169 enable_shared_with_static_runtimes_F77=yes 14170 ;; 14171 14172 darwin* | rhapsody*) 14173 if test "$GXX" = yes ; then 14174 archive_cmds_need_lc_F77=no 14175 case "$host_os" in 14176 rhapsody* | darwin1.[012]) 14177 allow_undefined_flag_F77='-undefined suppress' 14178 ;; 14179 *) # Darwin 1.3 on 14180 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14181 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 14182 else 14183 case ${MACOSX_DEPLOYMENT_TARGET} in 14184 10.[012]) 14185 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 14186 ;; 14187 10.*) 14188 allow_undefined_flag_F77='-undefined dynamic_lookup' 14189 ;; 14190 esac 14191 fi 14192 ;; 14193 esac 14194 lt_int_apple_cc_single_mod=no 14195 output_verbose_link_cmd='echo' 14196 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 14197 lt_int_apple_cc_single_mod=yes 14198 fi 14199 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14200 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14201 else 14202 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14203 fi 14204 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14206 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14207 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14208 else 14209 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14210 fi 14211 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}' 14212 hardcode_direct_F77=no 14213 hardcode_automatic_F77=yes 14214 hardcode_shlibpath_var_F77=unsupported 14215 whole_archive_flag_spec_F77='-all_load $convenience' 14216 link_all_deplibs_F77=yes 14217 else 14218 ld_shlibs_F77=no 14219 fi 14220 ;; 14221 14222 dgux*) 14223 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14224 hardcode_libdir_flag_spec_F77='-L$libdir' 14225 hardcode_shlibpath_var_F77=no 14226 ;; 14227 14228 freebsd1*) 14229 ld_shlibs_F77=no 14230 ;; 14231 14232 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14233 # support. Future versions do this automatically, but an explicit c++rt0.o 14234 # does not break anything, and helps significantly (at the cost of a little 14235 # extra space). 14236 freebsd2.2*) 14237 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14238 hardcode_libdir_flag_spec_F77='-R$libdir' 14239 hardcode_direct_F77=yes 14240 hardcode_shlibpath_var_F77=no 14241 ;; 14242 14243 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14244 freebsd2*) 14245 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14246 hardcode_direct_F77=yes 14247 hardcode_minus_L_F77=yes 14248 hardcode_shlibpath_var_F77=no 14249 ;; 14250 14251 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14252 freebsd* | kfreebsd*-gnu) 14253 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14254 hardcode_libdir_flag_spec_F77='-R$libdir' 14255 hardcode_direct_F77=yes 14256 hardcode_shlibpath_var_F77=no 14257 ;; 14258 14259 hpux9*) 14260 if test "$GCC" = yes; then 14261 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' 14262 else 14263 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' 14264 fi 14265 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14266 hardcode_libdir_separator_F77=: 14267 hardcode_direct_F77=yes 14268 14269 # hardcode_minus_L: Not really in the search PATH, 14270 # but as the default location of the library. 14271 hardcode_minus_L_F77=yes 14272 export_dynamic_flag_spec_F77='${wl}-E' 14273 ;; 14274 14275 hpux10* | hpux11*) 14276 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14277 case "$host_cpu" in 14278 hppa*64*|ia64*) 14279 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14280 ;; 14281 *) 14282 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14283 ;; 14284 esac 14285 else 14286 case "$host_cpu" in 14287 hppa*64*|ia64*) 14288 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14289 ;; 14290 *) 14291 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14292 ;; 14293 esac 14294 fi 14295 if test "$with_gnu_ld" = no; then 14296 case "$host_cpu" in 14297 hppa*64*) 14298 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14299 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14300 hardcode_libdir_separator_F77=: 14301 hardcode_direct_F77=no 14302 hardcode_shlibpath_var_F77=no 14303 ;; 14304 ia64*) 14305 hardcode_libdir_flag_spec_F77='-L$libdir' 14306 hardcode_direct_F77=no 14307 hardcode_shlibpath_var_F77=no 14308 14309 # hardcode_minus_L: Not really in the search PATH, 14310 # but as the default location of the library. 14311 hardcode_minus_L_F77=yes 14312 ;; 14313 *) 14314 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14315 hardcode_libdir_separator_F77=: 14316 hardcode_direct_F77=yes 14317 export_dynamic_flag_spec_F77='${wl}-E' 14318 14319 # hardcode_minus_L: Not really in the search PATH, 14320 # but as the default location of the library. 14321 hardcode_minus_L_F77=yes 14322 ;; 14323 esac 14324 fi 14325 ;; 14326 14327 irix5* | irix6* | nonstopux*) 14328 if test "$GCC" = yes; then 14329 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' 14330 else 14331 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' 14332 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14333 fi 14334 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14335 hardcode_libdir_separator_F77=: 14336 link_all_deplibs_F77=yes 14337 ;; 14338 14339 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 14340 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14341 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14342 else 14343 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14344 fi 14345 hardcode_libdir_flag_spec_F77='-R$libdir' 14346 hardcode_direct_F77=yes 14347 hardcode_shlibpath_var_F77=no 14348 ;; 14349 14350 newsos6) 14351 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14352 hardcode_direct_F77=yes 14353 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14354 hardcode_libdir_separator_F77=: 14355 hardcode_shlibpath_var_F77=no 14356 ;; 14357 14358 openbsd*) 14359 hardcode_direct_F77=yes 14360 hardcode_shlibpath_var_F77=no 14361 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14362 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14363 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14364 export_dynamic_flag_spec_F77='${wl}-E' 14365 else 14366 case $host_os in 14367 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14368 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14369 hardcode_libdir_flag_spec_F77='-R$libdir' 14370 ;; 14371 *) 14372 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14373 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14374 ;; 14375 esac 14376 fi 14377 ;; 14378 14379 os2*) 14380 hardcode_libdir_flag_spec_F77='-L$libdir' 14381 hardcode_minus_L_F77=yes 14382 allow_undefined_flag_F77=unsupported 14383 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' 14384 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14385 ;; 14386 14387 osf3*) 14388 if test "$GCC" = yes; then 14389 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14390 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' 14391 else 14392 allow_undefined_flag_F77=' -expect_unresolved \*' 14393 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' 14394 fi 14395 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14396 hardcode_libdir_separator_F77=: 14397 ;; 14398 14399 osf4* | osf5*) # as osf3* with the addition of -msym flag 14400 if test "$GCC" = yes; then 14401 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14402 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' 14403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14404 else 14405 allow_undefined_flag_F77=' -expect_unresolved \*' 14406 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' 14407 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~ 14408 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 14409 14410 # Both c and cxx compiler support -rpath directly 14411 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14412 fi 14413 hardcode_libdir_separator_F77=: 14414 ;; 14415 14416 sco3.2v5*) 14417 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14418 hardcode_shlibpath_var_F77=no 14419 export_dynamic_flag_spec_F77='${wl}-Bexport' 14420 runpath_var=LD_RUN_PATH 14421 hardcode_runpath_var=yes 14422 ;; 14423 14424 solaris*) 14425 no_undefined_flag_F77=' -z text' 14426 if test "$GCC" = yes; then 14427 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14428 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14429 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14430 else 14431 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14432 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14433 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14434 fi 14435 hardcode_libdir_flag_spec_F77='-R$libdir' 14436 hardcode_shlibpath_var_F77=no 14437 case $host_os in 14438 solaris2.[0-5] | solaris2.[0-5].*) ;; 14439 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14440 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14441 esac 14442 link_all_deplibs_F77=yes 14443 ;; 14444 14445 sunos4*) 14446 if test "x$host_vendor" = xsequent; then 14447 # Use $CC to link under sequent, because it throws in some extra .o 14448 # files that make .init and .fini sections work. 14449 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14450 else 14451 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14452 fi 14453 hardcode_libdir_flag_spec_F77='-L$libdir' 14454 hardcode_direct_F77=yes 14455 hardcode_minus_L_F77=yes 14456 hardcode_shlibpath_var_F77=no 14457 ;; 14458 14459 sysv4) 14460 case $host_vendor in 14461 sni) 14462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14463 hardcode_direct_F77=yes # is this really true??? 14464 ;; 14465 siemens) 14466 ## LD is ld it makes a PLAMLIB 14467 ## CC just makes a GrossModule. 14468 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14469 reload_cmds_F77='$CC -r -o $output$reload_objs' 14470 hardcode_direct_F77=no 14471 ;; 14472 motorola) 14473 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14474 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14475 ;; 14476 esac 14477 runpath_var='LD_RUN_PATH' 14478 hardcode_shlibpath_var_F77=no 14479 ;; 14480 14481 sysv4.3*) 14482 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14483 hardcode_shlibpath_var_F77=no 14484 export_dynamic_flag_spec_F77='-Bexport' 14485 ;; 14486 14487 sysv4*MP*) 14488 if test -d /usr/nec; then 14489 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14490 hardcode_shlibpath_var_F77=no 14491 runpath_var=LD_RUN_PATH 14492 hardcode_runpath_var=yes 14493 ld_shlibs_F77=yes 14494 fi 14495 ;; 14496 14497 sysv4.2uw2*) 14498 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14499 hardcode_direct_F77=yes 14500 hardcode_minus_L_F77=no 14501 hardcode_shlibpath_var_F77=no 14502 hardcode_runpath_var=yes 14503 runpath_var=LD_RUN_PATH 14504 ;; 14505 14506 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14507 no_undefined_flag_F77='${wl}-z ${wl}text' 14508 if test "$GCC" = yes; then 14509 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14510 else 14511 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14512 fi 14513 runpath_var='LD_RUN_PATH' 14514 hardcode_shlibpath_var_F77=no 14515 ;; 14516 14517 sysv5*) 14518 no_undefined_flag_F77=' -z text' 14519 # $CC -shared without GNU ld will not create a library from C++ 14520 # object files and a static libstdc++, better avoid it by now 14521 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14522 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14523 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14524 hardcode_libdir_flag_spec_F77= 14525 hardcode_shlibpath_var_F77=no 14526 runpath_var='LD_RUN_PATH' 14527 ;; 14528 14529 uts4*) 14530 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14531 hardcode_libdir_flag_spec_F77='-L$libdir' 14532 hardcode_shlibpath_var_F77=no 14533 ;; 14534 14535 *) 14536 ld_shlibs_F77=no 14537 ;; 14538 esac 14539 fi 14540 14541echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14542echo "${ECHO_T}$ld_shlibs_F77" >&6 14543test "$ld_shlibs_F77" = no && can_build_shared=no 14544 14545variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14546if test "$GCC" = yes; then 14547 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14548fi 14549 14550# 14551# Do we need to explicitly link libc? 14552# 14553case "x$archive_cmds_need_lc_F77" in 14554x|xyes) 14555 # Assume -lc should be added 14556 archive_cmds_need_lc_F77=yes 14557 14558 if test "$enable_shared" = yes && test "$GCC" = yes; then 14559 case $archive_cmds_F77 in 14560 *'~'*) 14561 # FIXME: we may have to deal with multi-command sequences. 14562 ;; 14563 '$CC '*) 14564 # Test whether the compiler implicitly links with -lc since on some 14565 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14566 # to ld, don't add -lc before -lgcc. 14567 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14568echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14569 $rm conftest* 14570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14571 14572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14573 (eval $ac_compile) 2>&5 14574 ac_status=$? 14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14576 (exit $ac_status); } 2>conftest.err; then 14577 soname=conftest 14578 lib=conftest 14579 libobjs=conftest.$ac_objext 14580 deplibs= 14581 wl=$lt_prog_compiler_wl_F77 14582 compiler_flags=-v 14583 linker_flags=-v 14584 verstring= 14585 output_objdir=. 14586 libname=conftest 14587 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14588 allow_undefined_flag_F77= 14589 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14590 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14591 ac_status=$? 14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14593 (exit $ac_status); } 14594 then 14595 archive_cmds_need_lc_F77=no 14596 else 14597 archive_cmds_need_lc_F77=yes 14598 fi 14599 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14600 else 14601 cat conftest.err 1>&5 14602 fi 14603 $rm conftest* 14604 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14605echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14606 ;; 14607 esac 14608 fi 14609 ;; 14610esac 14611 14612echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14613echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14614library_names_spec= 14615libname_spec='lib$name' 14616soname_spec= 14617shrext_cmds=".so" 14618postinstall_cmds= 14619postuninstall_cmds= 14620finish_cmds= 14621finish_eval= 14622shlibpath_var= 14623shlibpath_overrides_runpath=unknown 14624version_type=none 14625dynamic_linker="$host_os ld.so" 14626sys_lib_dlsearch_path_spec="/lib /usr/lib" 14627if test "$GCC" = yes; then 14628 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14629 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14630 # if the path contains ";" then we assume it to be the separator 14631 # otherwise default to the standard path separator (i.e. ":") - it is 14632 # assumed that no part of a normal pathname contains ";" but that should 14633 # okay in the real world where ";" in dirpaths is itself problematic. 14634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14635 else 14636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14637 fi 14638else 14639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14640fi 14641need_lib_prefix=unknown 14642hardcode_into_libs=no 14643 14644# when you set need_version to no, make sure it does not cause -set_version 14645# flags to be left without arguments 14646need_version=unknown 14647 14648case $host_os in 14649aix3*) 14650 version_type=linux 14651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14652 shlibpath_var=LIBPATH 14653 14654 # AIX 3 has no versioning support, so we append a major version to the name. 14655 soname_spec='${libname}${release}${shared_ext}$major' 14656 ;; 14657 14658aix4* | aix5*) 14659 version_type=linux 14660 need_lib_prefix=no 14661 need_version=no 14662 hardcode_into_libs=yes 14663 if test "$host_cpu" = ia64; then 14664 # AIX 5 supports IA64 14665 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14666 shlibpath_var=LD_LIBRARY_PATH 14667 else 14668 # With GCC up to 2.95.x, collect2 would create an import file 14669 # for dependence libraries. The import file would start with 14670 # the line `#! .'. This would cause the generated library to 14671 # depend on `.', always an invalid library. This was fixed in 14672 # development snapshots of GCC prior to 3.0. 14673 case $host_os in 14674 aix4 | aix4.[01] | aix4.[01].*) 14675 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14676 echo ' yes ' 14677 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14678 : 14679 else 14680 can_build_shared=no 14681 fi 14682 ;; 14683 esac 14684 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14685 # soname into executable. Probably we can add versioning support to 14686 # collect2, so additional links can be useful in future. 14687 if test "$aix_use_runtimelinking" = yes; then 14688 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14689 # instead of lib<name>.a to let people know that these are not 14690 # typical AIX shared libraries. 14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14692 else 14693 # We preserve .a as extension for shared libraries through AIX4.2 14694 # and later when we are not doing run time linking. 14695 library_names_spec='${libname}${release}.a $libname.a' 14696 soname_spec='${libname}${release}${shared_ext}$major' 14697 fi 14698 shlibpath_var=LIBPATH 14699 fi 14700 ;; 14701 14702amigaos*) 14703 library_names_spec='$libname.ixlibrary $libname.a' 14704 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14705 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' 14706 ;; 14707 14708beos*) 14709 library_names_spec='${libname}${shared_ext}' 14710 dynamic_linker="$host_os ld.so" 14711 shlibpath_var=LIBRARY_PATH 14712 ;; 14713 14714bsdi4*) 14715 version_type=linux 14716 need_version=no 14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14718 soname_spec='${libname}${release}${shared_ext}$major' 14719 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14720 shlibpath_var=LD_LIBRARY_PATH 14721 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14722 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14723 # the default ld.so.conf also contains /usr/contrib/lib and 14724 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14725 # libtool to hard-code these into programs 14726 ;; 14727 14728cygwin* | mingw* | pw32*) 14729 version_type=windows 14730 shrext_cmds=".dll" 14731 need_version=no 14732 need_lib_prefix=no 14733 14734 case $GCC,$host_os in 14735 yes,cygwin* | yes,mingw* | yes,pw32*) 14736 library_names_spec='$libname.dll.a' 14737 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14738 postinstall_cmds='base_file=`basename \${file}`~ 14739 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14740 dldir=$destdir/`dirname \$dlpath`~ 14741 test -d \$dldir || mkdir -p \$dldir~ 14742 $install_prog $dir/$dlname \$dldir/$dlname' 14743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14744 dlpath=$dir/\$dldll~ 14745 $rm \$dlpath' 14746 shlibpath_overrides_runpath=yes 14747 14748 case $host_os in 14749 cygwin*) 14750 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14751 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14752 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14753 ;; 14754 mingw*) 14755 # MinGW DLLs use traditional 'lib' prefix 14756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14758 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14759 # It is most probably a Windows format PATH printed by 14760 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14761 # path with ; separators, and with drive letters. We can handle the 14762 # drive letters (cygwin fileutils understands them), so leave them, 14763 # especially as we might pass files found there to a mingw objdump, 14764 # which wouldn't understand a cygwinified path. Ahh. 14765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14766 else 14767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14768 fi 14769 ;; 14770 pw32*) 14771 # pw32 DLLs use 'pw' prefix rather than 'lib' 14772 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14773 ;; 14774 esac 14775 ;; 14776 14777 *) 14778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14779 ;; 14780 esac 14781 dynamic_linker='Win32 ld.exe' 14782 # FIXME: first we should search . and the directory the executable is in 14783 shlibpath_var=PATH 14784 ;; 14785 14786darwin* | rhapsody*) 14787 dynamic_linker="$host_os dyld" 14788 version_type=darwin 14789 need_lib_prefix=no 14790 need_version=no 14791 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14792 soname_spec='${libname}${release}${major}$shared_ext' 14793 shlibpath_overrides_runpath=yes 14794 shlibpath_var=DYLD_LIBRARY_PATH 14795 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14796 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14797 if test "$GCC" = yes; then 14798 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"` 14799 else 14800 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14801 fi 14802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14803 ;; 14804 14805dgux*) 14806 version_type=linux 14807 need_lib_prefix=no 14808 need_version=no 14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14810 soname_spec='${libname}${release}${shared_ext}$major' 14811 shlibpath_var=LD_LIBRARY_PATH 14812 ;; 14813 14814freebsd1*) 14815 dynamic_linker=no 14816 ;; 14817 14818kfreebsd*-gnu) 14819 version_type=linux 14820 need_lib_prefix=no 14821 need_version=no 14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14823 soname_spec='${libname}${release}${shared_ext}$major' 14824 shlibpath_var=LD_LIBRARY_PATH 14825 shlibpath_overrides_runpath=no 14826 hardcode_into_libs=yes 14827 dynamic_linker='GNU ld.so' 14828 ;; 14829 14830freebsd*) 14831 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14832 version_type=freebsd-$objformat 14833 case $version_type in 14834 freebsd-elf*) 14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14836 need_version=no 14837 need_lib_prefix=no 14838 ;; 14839 freebsd-*) 14840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14841 need_version=yes 14842 ;; 14843 esac 14844 shlibpath_var=LD_LIBRARY_PATH 14845 case $host_os in 14846 freebsd2*) 14847 shlibpath_overrides_runpath=yes 14848 ;; 14849 freebsd3.01* | freebsdelf3.01*) 14850 shlibpath_overrides_runpath=yes 14851 hardcode_into_libs=yes 14852 ;; 14853 *) # from 3.2 on 14854 shlibpath_overrides_runpath=no 14855 hardcode_into_libs=yes 14856 ;; 14857 esac 14858 ;; 14859 14860gnu*) 14861 version_type=linux 14862 need_lib_prefix=no 14863 need_version=no 14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14865 soname_spec='${libname}${release}${shared_ext}$major' 14866 shlibpath_var=LD_LIBRARY_PATH 14867 hardcode_into_libs=yes 14868 ;; 14869 14870hpux9* | hpux10* | hpux11*) 14871 # Give a soname corresponding to the major version so that dld.sl refuses to 14872 # link against other versions. 14873 version_type=sunos 14874 need_lib_prefix=no 14875 need_version=no 14876 case "$host_cpu" in 14877 ia64*) 14878 shrext_cmds='.so' 14879 hardcode_into_libs=yes 14880 dynamic_linker="$host_os dld.so" 14881 shlibpath_var=LD_LIBRARY_PATH 14882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14884 soname_spec='${libname}${release}${shared_ext}$major' 14885 if test "X$HPUX_IA64_MODE" = X32; then 14886 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14887 else 14888 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14889 fi 14890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14891 ;; 14892 hppa*64*) 14893 shrext_cmds='.sl' 14894 hardcode_into_libs=yes 14895 dynamic_linker="$host_os dld.sl" 14896 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14899 soname_spec='${libname}${release}${shared_ext}$major' 14900 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14902 ;; 14903 *) 14904 shrext_cmds='.sl' 14905 dynamic_linker="$host_os dld.sl" 14906 shlibpath_var=SHLIB_PATH 14907 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14909 soname_spec='${libname}${release}${shared_ext}$major' 14910 ;; 14911 esac 14912 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14913 postinstall_cmds='chmod 555 $lib' 14914 ;; 14915 14916irix5* | irix6* | nonstopux*) 14917 case $host_os in 14918 nonstopux*) version_type=nonstopux ;; 14919 *) 14920 if test "$lt_cv_prog_gnu_ld" = yes; then 14921 version_type=linux 14922 else 14923 version_type=irix 14924 fi ;; 14925 esac 14926 need_lib_prefix=no 14927 need_version=no 14928 soname_spec='${libname}${release}${shared_ext}$major' 14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14930 case $host_os in 14931 irix5* | nonstopux*) 14932 libsuff= shlibsuff= 14933 ;; 14934 *) 14935 case $LD in # libtool.m4 will add one of these switches to LD 14936 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14937 libsuff= shlibsuff= libmagic=32-bit;; 14938 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14939 libsuff=32 shlibsuff=N32 libmagic=N32;; 14940 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14941 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14942 *) libsuff= shlibsuff= libmagic=never-match;; 14943 esac 14944 ;; 14945 esac 14946 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14947 shlibpath_overrides_runpath=no 14948 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14949 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14950 hardcode_into_libs=yes 14951 ;; 14952 14953# No shared lib support for Linux oldld, aout, or coff. 14954linux*oldld* | linux*aout* | linux*coff*) 14955 dynamic_linker=no 14956 ;; 14957 14958# This must be Linux ELF. 14959linux*) 14960 version_type=linux 14961 need_lib_prefix=no 14962 need_version=no 14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14964 soname_spec='${libname}${release}${shared_ext}$major' 14965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14966 shlibpath_var=LD_LIBRARY_PATH 14967 shlibpath_overrides_runpath=no 14968 # This implies no fast_install, which is unacceptable. 14969 # Some rework will be needed to allow for fast_install 14970 # before this can be enabled. 14971 hardcode_into_libs=yes 14972 14973 # Append ld.so.conf contents to the search path 14974 if test -f /etc/ld.so.conf; then 14975 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 14976 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14977 fi 14978 14979 # We used to test for /lib/ld.so.1 and disable shared libraries on 14980 # powerpc, because MkLinux only supported shared libraries with the 14981 # GNU dynamic linker. Since this was broken with cross compilers, 14982 # most powerpc-linux boxes support dynamic linking these days and 14983 # people can always --disable-shared, the test was removed, and we 14984 # assume the GNU/Linux dynamic linker is in use. 14985 dynamic_linker='GNU/Linux ld.so' 14986 ;; 14987 14988netbsdelf*-gnu) 14989 version_type=linux 14990 need_lib_prefix=no 14991 need_version=no 14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14993 soname_spec='${libname}${release}${shared_ext}$major' 14994 shlibpath_var=LD_LIBRARY_PATH 14995 shlibpath_overrides_runpath=no 14996 hardcode_into_libs=yes 14997 dynamic_linker='NetBSD ld.elf_so' 14998 ;; 14999 15000knetbsd*-gnu) 15001 version_type=linux 15002 need_lib_prefix=no 15003 need_version=no 15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15005 soname_spec='${libname}${release}${shared_ext}$major' 15006 shlibpath_var=LD_LIBRARY_PATH 15007 shlibpath_overrides_runpath=no 15008 hardcode_into_libs=yes 15009 dynamic_linker='GNU ld.so' 15010 ;; 15011 15012netbsd*) 15013 version_type=sunos 15014 need_lib_prefix=no 15015 need_version=no 15016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15019 dynamic_linker='NetBSD (a.out) ld.so' 15020 else 15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15022 soname_spec='${libname}${release}${shared_ext}$major' 15023 dynamic_linker='NetBSD ld.elf_so' 15024 fi 15025 shlibpath_var=LD_LIBRARY_PATH 15026 shlibpath_overrides_runpath=yes 15027 hardcode_into_libs=yes 15028 ;; 15029 15030newsos6) 15031 version_type=linux 15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15033 shlibpath_var=LD_LIBRARY_PATH 15034 shlibpath_overrides_runpath=yes 15035 ;; 15036 15037nto-qnx*) 15038 version_type=linux 15039 need_lib_prefix=no 15040 need_version=no 15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15042 soname_spec='${libname}${release}${shared_ext}$major' 15043 shlibpath_var=LD_LIBRARY_PATH 15044 shlibpath_overrides_runpath=yes 15045 ;; 15046 15047openbsd*) 15048 version_type=sunos 15049 need_lib_prefix=no 15050 need_version=yes 15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15053 shlibpath_var=LD_LIBRARY_PATH 15054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15055 case $host_os in 15056 openbsd2.[89] | openbsd2.[89].*) 15057 shlibpath_overrides_runpath=no 15058 ;; 15059 *) 15060 shlibpath_overrides_runpath=yes 15061 ;; 15062 esac 15063 else 15064 shlibpath_overrides_runpath=yes 15065 fi 15066 ;; 15067 15068os2*) 15069 libname_spec='$name' 15070 shrext_cmds=".dll" 15071 need_lib_prefix=no 15072 library_names_spec='$libname${shared_ext} $libname.a' 15073 dynamic_linker='OS/2 ld.exe' 15074 shlibpath_var=LIBPATH 15075 ;; 15076 15077osf3* | osf4* | osf5*) 15078 version_type=osf 15079 need_lib_prefix=no 15080 need_version=no 15081 soname_spec='${libname}${release}${shared_ext}$major' 15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15083 shlibpath_var=LD_LIBRARY_PATH 15084 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15085 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15086 ;; 15087 15088sco3.2v5*) 15089 version_type=osf 15090 soname_spec='${libname}${release}${shared_ext}$major' 15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15092 shlibpath_var=LD_LIBRARY_PATH 15093 ;; 15094 15095solaris*) 15096 version_type=linux 15097 need_lib_prefix=no 15098 need_version=no 15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15100 soname_spec='${libname}${release}${shared_ext}$major' 15101 shlibpath_var=LD_LIBRARY_PATH 15102 shlibpath_overrides_runpath=yes 15103 hardcode_into_libs=yes 15104 # ldd complains unless libraries are executable 15105 postinstall_cmds='chmod +x $lib' 15106 ;; 15107 15108sunos4*) 15109 version_type=sunos 15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15111 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15112 shlibpath_var=LD_LIBRARY_PATH 15113 shlibpath_overrides_runpath=yes 15114 if test "$with_gnu_ld" = yes; then 15115 need_lib_prefix=no 15116 fi 15117 need_version=yes 15118 ;; 15119 15120sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15121 version_type=linux 15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15123 soname_spec='${libname}${release}${shared_ext}$major' 15124 shlibpath_var=LD_LIBRARY_PATH 15125 case $host_vendor in 15126 sni) 15127 shlibpath_overrides_runpath=no 15128 need_lib_prefix=no 15129 export_dynamic_flag_spec='${wl}-Blargedynsym' 15130 runpath_var=LD_RUN_PATH 15131 ;; 15132 siemens) 15133 need_lib_prefix=no 15134 ;; 15135 motorola) 15136 need_lib_prefix=no 15137 need_version=no 15138 shlibpath_overrides_runpath=no 15139 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15140 ;; 15141 esac 15142 ;; 15143 15144sysv4*MP*) 15145 if test -d /usr/nec ;then 15146 version_type=linux 15147 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15148 soname_spec='$libname${shared_ext}.$major' 15149 shlibpath_var=LD_LIBRARY_PATH 15150 fi 15151 ;; 15152 15153uts4*) 15154 version_type=linux 15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15156 soname_spec='${libname}${release}${shared_ext}$major' 15157 shlibpath_var=LD_LIBRARY_PATH 15158 ;; 15159 15160*) 15161 dynamic_linker=no 15162 ;; 15163esac 15164echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15165echo "${ECHO_T}$dynamic_linker" >&6 15166test "$dynamic_linker" = no && can_build_shared=no 15167 15168echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15169echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15170hardcode_action_F77= 15171if test -n "$hardcode_libdir_flag_spec_F77" || \ 15172 test -n "$runpath_var F77" || \ 15173 test "X$hardcode_automatic_F77"="Xyes" ; then 15174 15175 # We can hardcode non-existant directories. 15176 if test "$hardcode_direct_F77" != no && 15177 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15178 # have to relink, otherwise we might link with an installed library 15179 # when we should be linking with a yet-to-be-installed one 15180 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15181 test "$hardcode_minus_L_F77" != no; then 15182 # Linking always hardcodes the temporary library directory. 15183 hardcode_action_F77=relink 15184 else 15185 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15186 hardcode_action_F77=immediate 15187 fi 15188else 15189 # We cannot hardcode anything, or else we can only hardcode existing 15190 # directories. 15191 hardcode_action_F77=unsupported 15192fi 15193echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15194echo "${ECHO_T}$hardcode_action_F77" >&6 15195 15196if test "$hardcode_action_F77" = relink; then 15197 # Fast installation is not supported 15198 enable_fast_install=no 15199elif test "$shlibpath_overrides_runpath" = yes || 15200 test "$enable_shared" = no; then 15201 # Fast installation is not necessary 15202 enable_fast_install=needless 15203fi 15204 15205striplib= 15206old_striplib= 15207echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15208echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15209if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15211 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15212 echo "$as_me:$LINENO: result: yes" >&5 15213echo "${ECHO_T}yes" >&6 15214else 15215# FIXME - insert some real tests, host_os isn't really good enough 15216 case $host_os in 15217 darwin*) 15218 if test -n "$STRIP" ; then 15219 striplib="$STRIP -x" 15220 echo "$as_me:$LINENO: result: yes" >&5 15221echo "${ECHO_T}yes" >&6 15222 else 15223 echo "$as_me:$LINENO: result: no" >&5 15224echo "${ECHO_T}no" >&6 15225fi 15226 ;; 15227 *) 15228 echo "$as_me:$LINENO: result: no" >&5 15229echo "${ECHO_T}no" >&6 15230 ;; 15231 esac 15232fi 15233 15234 15235 15236# The else clause should only fire when bootstrapping the 15237# libtool distribution, otherwise you forgot to ship ltmain.sh 15238# with your package, and you will get complaints that there are 15239# no rules to generate ltmain.sh. 15240if test -f "$ltmain"; then 15241 # See if we are running on zsh, and set the options which allow our commands through 15242 # without removal of \ escapes. 15243 if test -n "${ZSH_VERSION+set}" ; then 15244 setopt NO_GLOB_SUBST 15245 fi 15246 # Now quote all the things that may contain metacharacters while being 15247 # careful not to overquote the AC_SUBSTed values. We take copies of the 15248 # variables and quote the copies for generation of the libtool script. 15249 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15250 SED SHELL STRIP \ 15251 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15252 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15253 deplibs_check_method reload_flag reload_cmds need_locks \ 15254 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15255 lt_cv_sys_global_symbol_to_c_name_address \ 15256 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15257 old_postinstall_cmds old_postuninstall_cmds \ 15258 compiler_F77 \ 15259 CC_F77 \ 15260 LD_F77 \ 15261 lt_prog_compiler_wl_F77 \ 15262 lt_prog_compiler_pic_F77 \ 15263 lt_prog_compiler_static_F77 \ 15264 lt_prog_compiler_no_builtin_flag_F77 \ 15265 export_dynamic_flag_spec_F77 \ 15266 thread_safe_flag_spec_F77 \ 15267 whole_archive_flag_spec_F77 \ 15268 enable_shared_with_static_runtimes_F77 \ 15269 old_archive_cmds_F77 \ 15270 old_archive_from_new_cmds_F77 \ 15271 predep_objects_F77 \ 15272 postdep_objects_F77 \ 15273 predeps_F77 \ 15274 postdeps_F77 \ 15275 compiler_lib_search_path_F77 \ 15276 archive_cmds_F77 \ 15277 archive_expsym_cmds_F77 \ 15278 postinstall_cmds_F77 \ 15279 postuninstall_cmds_F77 \ 15280 old_archive_from_expsyms_cmds_F77 \ 15281 allow_undefined_flag_F77 \ 15282 no_undefined_flag_F77 \ 15283 export_symbols_cmds_F77 \ 15284 hardcode_libdir_flag_spec_F77 \ 15285 hardcode_libdir_flag_spec_ld_F77 \ 15286 hardcode_libdir_separator_F77 \ 15287 hardcode_automatic_F77 \ 15288 module_cmds_F77 \ 15289 module_expsym_cmds_F77 \ 15290 lt_cv_prog_compiler_c_o_F77 \ 15291 exclude_expsyms_F77 \ 15292 include_expsyms_F77; do 15293 15294 case $var in 15295 old_archive_cmds_F77 | \ 15296 old_archive_from_new_cmds_F77 | \ 15297 archive_cmds_F77 | \ 15298 archive_expsym_cmds_F77 | \ 15299 module_cmds_F77 | \ 15300 module_expsym_cmds_F77 | \ 15301 old_archive_from_expsyms_cmds_F77 | \ 15302 export_symbols_cmds_F77 | \ 15303 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15304 postinstall_cmds | postuninstall_cmds | \ 15305 old_postinstall_cmds | old_postuninstall_cmds | \ 15306 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15307 # Double-quote double-evaled strings. 15308 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15309 ;; 15310 *) 15311 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15312 ;; 15313 esac 15314 done 15315 15316 case $lt_echo in 15317 *'\$0 --fallback-echo"') 15318 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15319 ;; 15320 esac 15321 15322cfgfile="$ofile" 15323 15324 cat <<__EOF__ >> "$cfgfile" 15325# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15326 15327# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15328 15329# Shell to use when invoking shell scripts. 15330SHELL=$lt_SHELL 15331 15332# Whether or not to build shared libraries. 15333build_libtool_libs=$enable_shared 15334 15335# Whether or not to build static libraries. 15336build_old_libs=$enable_static 15337 15338# Whether or not to add -lc for building shared libraries. 15339build_libtool_need_lc=$archive_cmds_need_lc_F77 15340 15341# Whether or not to disallow shared libs when runtime libs are static 15342allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15343 15344# Whether or not to optimize for fast installation. 15345fast_install=$enable_fast_install 15346 15347# The host system. 15348host_alias=$host_alias 15349host=$host 15350 15351# An echo program that does not interpret backslashes. 15352echo=$lt_echo 15353 15354# The archiver. 15355AR=$lt_AR 15356AR_FLAGS=$lt_AR_FLAGS 15357 15358# A C compiler. 15359LTCC=$lt_LTCC 15360 15361# A language-specific compiler. 15362CC=$lt_compiler_F77 15363 15364# Is the compiler the GNU C compiler? 15365with_gcc=$GCC_F77 15366 15367# An ERE matcher. 15368EGREP=$lt_EGREP 15369 15370# The linker used to build libraries. 15371LD=$lt_LD_F77 15372 15373# Whether we need hard or soft links. 15374LN_S=$lt_LN_S 15375 15376# A BSD-compatible nm program. 15377NM=$lt_NM 15378 15379# A symbol stripping program 15380STRIP=$lt_STRIP 15381 15382# Used to examine libraries when file_magic_cmd begins "file" 15383MAGIC_CMD=$MAGIC_CMD 15384 15385# Used on cygwin: DLL creation program. 15386DLLTOOL="$DLLTOOL" 15387 15388# Used on cygwin: object dumper. 15389OBJDUMP="$OBJDUMP" 15390 15391# Used on cygwin: assembler. 15392AS="$AS" 15393 15394# The name of the directory that contains temporary libtool files. 15395objdir=$objdir 15396 15397# How to create reloadable object files. 15398reload_flag=$lt_reload_flag 15399reload_cmds=$lt_reload_cmds 15400 15401# How to pass a linker flag through the compiler. 15402wl=$lt_lt_prog_compiler_wl_F77 15403 15404# Object file suffix (normally "o"). 15405objext="$ac_objext" 15406 15407# Old archive suffix (normally "a"). 15408libext="$libext" 15409 15410# Shared library suffix (normally ".so"). 15411shrext_cmds='$shrext_cmds' 15412 15413# Executable file suffix (normally ""). 15414exeext="$exeext" 15415 15416# Additional compiler flags for building library objects. 15417pic_flag=$lt_lt_prog_compiler_pic_F77 15418pic_mode=$pic_mode 15419 15420# What is the maximum length of a command? 15421max_cmd_len=$lt_cv_sys_max_cmd_len 15422 15423# Does compiler simultaneously support -c and -o options? 15424compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15425 15426# Must we lock files when doing compilation ? 15427need_locks=$lt_need_locks 15428 15429# Do we need the lib prefix for modules? 15430need_lib_prefix=$need_lib_prefix 15431 15432# Do we need a version for libraries? 15433need_version=$need_version 15434 15435# Whether dlopen is supported. 15436dlopen_support=$enable_dlopen 15437 15438# Whether dlopen of programs is supported. 15439dlopen_self=$enable_dlopen_self 15440 15441# Whether dlopen of statically linked programs is supported. 15442dlopen_self_static=$enable_dlopen_self_static 15443 15444# Compiler flag to prevent dynamic linking. 15445link_static_flag=$lt_lt_prog_compiler_static_F77 15446 15447# Compiler flag to turn off builtin functions. 15448no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15449 15450# Compiler flag to allow reflexive dlopens. 15451export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15452 15453# Compiler flag to generate shared objects directly from archives. 15454whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15455 15456# Compiler flag to generate thread-safe objects. 15457thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15458 15459# Library versioning type. 15460version_type=$version_type 15461 15462# Format of library name prefix. 15463libname_spec=$lt_libname_spec 15464 15465# List of archive names. First name is the real one, the rest are links. 15466# The last name is the one that the linker finds with -lNAME. 15467library_names_spec=$lt_library_names_spec 15468 15469# The coded name of the library, if different from the real name. 15470soname_spec=$lt_soname_spec 15471 15472# Commands used to build and install an old-style archive. 15473RANLIB=$lt_RANLIB 15474old_archive_cmds=$lt_old_archive_cmds_F77 15475old_postinstall_cmds=$lt_old_postinstall_cmds 15476old_postuninstall_cmds=$lt_old_postuninstall_cmds 15477 15478# Create an old-style archive from a shared archive. 15479old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15480 15481# Create a temporary old-style archive to link instead of a shared archive. 15482old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15483 15484# Commands used to build and install a shared archive. 15485archive_cmds=$lt_archive_cmds_F77 15486archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15487postinstall_cmds=$lt_postinstall_cmds 15488postuninstall_cmds=$lt_postuninstall_cmds 15489 15490# Commands used to build a loadable module (assumed same as above if empty) 15491module_cmds=$lt_module_cmds_F77 15492module_expsym_cmds=$lt_module_expsym_cmds_F77 15493 15494# Commands to strip libraries. 15495old_striplib=$lt_old_striplib 15496striplib=$lt_striplib 15497 15498# Dependencies to place before the objects being linked to create a 15499# shared library. 15500predep_objects=$lt_predep_objects_F77 15501 15502# Dependencies to place after the objects being linked to create a 15503# shared library. 15504postdep_objects=$lt_postdep_objects_F77 15505 15506# Dependencies to place before the objects being linked to create a 15507# shared library. 15508predeps=$lt_predeps_F77 15509 15510# Dependencies to place after the objects being linked to create a 15511# shared library. 15512postdeps=$lt_postdeps_F77 15513 15514# The library search path used internally by the compiler when linking 15515# a shared library. 15516compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15517 15518# Method to check whether dependent libraries are shared objects. 15519deplibs_check_method=$lt_deplibs_check_method 15520 15521# Command to use when deplibs_check_method == file_magic. 15522file_magic_cmd=$lt_file_magic_cmd 15523 15524# Flag that allows shared libraries with undefined symbols to be built. 15525allow_undefined_flag=$lt_allow_undefined_flag_F77 15526 15527# Flag that forces no undefined symbols. 15528no_undefined_flag=$lt_no_undefined_flag_F77 15529 15530# Commands used to finish a libtool library installation in a directory. 15531finish_cmds=$lt_finish_cmds 15532 15533# Same as above, but a single script fragment to be evaled but not shown. 15534finish_eval=$lt_finish_eval 15535 15536# Take the output of nm and produce a listing of raw symbols and C names. 15537global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15538 15539# Transform the output of nm in a proper C declaration 15540global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15541 15542# Transform the output of nm in a C name address pair 15543global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15544 15545# This is the shared library runtime path variable. 15546runpath_var=$runpath_var 15547 15548# This is the shared library path variable. 15549shlibpath_var=$shlibpath_var 15550 15551# Is shlibpath searched before the hard-coded library search path? 15552shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15553 15554# How to hardcode a shared library path into an executable. 15555hardcode_action=$hardcode_action_F77 15556 15557# Whether we should hardcode library paths into libraries. 15558hardcode_into_libs=$hardcode_into_libs 15559 15560# Flag to hardcode \$libdir into a binary during linking. 15561# This must work even if \$libdir does not exist. 15562hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15563 15564# If ld is used when linking, flag to hardcode \$libdir into 15565# a binary during linking. This must work even if \$libdir does 15566# not exist. 15567hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15568 15569# Whether we need a single -rpath flag with a separated argument. 15570hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15571 15572# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15573# resulting binary. 15574hardcode_direct=$hardcode_direct_F77 15575 15576# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15577# resulting binary. 15578hardcode_minus_L=$hardcode_minus_L_F77 15579 15580# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15581# the resulting binary. 15582hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15583 15584# Set to yes if building a shared library automatically hardcodes DIR into the library 15585# and all subsequent libraries and executables linked against it. 15586hardcode_automatic=$hardcode_automatic_F77 15587 15588# Variables whose values should be saved in libtool wrapper scripts and 15589# restored at relink time. 15590variables_saved_for_relink="$variables_saved_for_relink" 15591 15592# Whether libtool must link a program against all its dependency libraries. 15593link_all_deplibs=$link_all_deplibs_F77 15594 15595# Compile-time system search path for libraries 15596sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15597 15598# Run-time system search path for libraries 15599sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15600 15601# Fix the shell variable \$srcfile for the compiler. 15602fix_srcfile_path="$fix_srcfile_path_F77" 15603 15604# Set to yes if exported symbols are required. 15605always_export_symbols=$always_export_symbols_F77 15606 15607# The commands to list exported symbols. 15608export_symbols_cmds=$lt_export_symbols_cmds_F77 15609 15610# The commands to extract the exported symbol list from a shared archive. 15611extract_expsyms_cmds=$lt_extract_expsyms_cmds 15612 15613# Symbols that should not be listed in the preloaded symbols. 15614exclude_expsyms=$lt_exclude_expsyms_F77 15615 15616# Symbols that must always be exported. 15617include_expsyms=$lt_include_expsyms_F77 15618 15619# ### END LIBTOOL TAG CONFIG: $tagname 15620 15621__EOF__ 15622 15623 15624else 15625 # If there is no Makefile yet, we rely on a make rule to execute 15626 # `config.status --recheck' to rerun these tests and create the 15627 # libtool script then. 15628 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15629 if test -f "$ltmain_in"; then 15630 test -f Makefile && make "$ltmain" 15631 fi 15632fi 15633 15634 15635ac_ext=c 15636ac_cpp='$CPP $CPPFLAGS' 15637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15639ac_compiler_gnu=$ac_cv_c_compiler_gnu 15640 15641CC="$lt_save_CC" 15642 15643 else 15644 tagname="" 15645 fi 15646 ;; 15647 15648 GCJ) 15649 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15650 15651 15652 15653# Source file extension for Java test sources. 15654ac_ext=java 15655 15656# Object file extension for compiled Java test sources. 15657objext=o 15658objext_GCJ=$objext 15659 15660# Code to be used in simple compile tests 15661lt_simple_compile_test_code="class foo {}\n" 15662 15663# Code to be used in simple link tests 15664lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 15665 15666# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15667 15668# If no C compiler was specified, use CC. 15669LTCC=${LTCC-"$CC"} 15670 15671# Allow CC to be a program name with arguments. 15672compiler=$CC 15673 15674 15675# Allow CC to be a program name with arguments. 15676lt_save_CC="$CC" 15677CC=${GCJ-"gcj"} 15678compiler=$CC 15679compiler_GCJ=$CC 15680 15681# GCJ did not exist at the time GCC didn't implicitly link libc in. 15682archive_cmds_need_lc_GCJ=no 15683 15684 15685lt_prog_compiler_no_builtin_flag_GCJ= 15686 15687if test "$GCC" = yes; then 15688 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15689 15690 15691echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15692echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15693if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15694 echo $ECHO_N "(cached) $ECHO_C" >&6 15695else 15696 lt_cv_prog_compiler_rtti_exceptions=no 15697 ac_outfile=conftest.$ac_objext 15698 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15699 lt_compiler_flag="-fno-rtti -fno-exceptions" 15700 # Insert the option either (1) after the last *FLAGS variable, or 15701 # (2) before a word containing "conftest.", or (3) at the end. 15702 # Note that $ac_compile itself does not contain backslashes and begins 15703 # with a dollar sign (not a hyphen), so the echo should work correctly. 15704 # The option is referenced via a variable to avoid confusing sed. 15705 lt_compile=`echo "$ac_compile" | $SED \ 15706 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15708 -e 's:$: $lt_compiler_flag:'` 15709 (eval echo "\"\$as_me:15709: $lt_compile\"" >&5) 15710 (eval "$lt_compile" 2>conftest.err) 15711 ac_status=$? 15712 cat conftest.err >&5 15713 echo "$as_me:15713: \$? = $ac_status" >&5 15714 if (exit $ac_status) && test -s "$ac_outfile"; then 15715 # The compiler can only warn and ignore the option if not recognized 15716 # So say no if there are warnings 15717 if test ! -s conftest.err; then 15718 lt_cv_prog_compiler_rtti_exceptions=yes 15719 fi 15720 fi 15721 $rm conftest* 15722 15723fi 15724echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15725echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15726 15727if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15728 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15729else 15730 : 15731fi 15732 15733fi 15734 15735lt_prog_compiler_wl_GCJ= 15736lt_prog_compiler_pic_GCJ= 15737lt_prog_compiler_static_GCJ= 15738 15739echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15740echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15741 15742 if test "$GCC" = yes; then 15743 lt_prog_compiler_wl_GCJ='-Wl,' 15744 lt_prog_compiler_static_GCJ='-static' 15745 15746 case $host_os in 15747 aix*) 15748 # All AIX code is PIC. 15749 if test "$host_cpu" = ia64; then 15750 # AIX 5 now supports IA64 processor 15751 lt_prog_compiler_static_GCJ='-Bstatic' 15752 fi 15753 ;; 15754 15755 amigaos*) 15756 # FIXME: we need at least 68020 code to build shared libraries, but 15757 # adding the `-m68020' flag to GCC prevents building anything better, 15758 # like `-m68040'. 15759 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15760 ;; 15761 15762 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15763 # PIC is the default for these OSes. 15764 ;; 15765 15766 mingw* | pw32* | os2*) 15767 # This hack is so that the source file can tell whether it is being 15768 # built for inclusion in a dll (and should export symbols for example). 15769 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15770 ;; 15771 15772 darwin* | rhapsody*) 15773 # PIC is the default on this platform 15774 # Common symbols not allowed in MH_DYLIB files 15775 lt_prog_compiler_pic_GCJ='-fno-common' 15776 ;; 15777 15778 msdosdjgpp*) 15779 # Just because we use GCC doesn't mean we suddenly get shared libraries 15780 # on systems that don't support them. 15781 lt_prog_compiler_can_build_shared_GCJ=no 15782 enable_shared=no 15783 ;; 15784 15785 sysv4*MP*) 15786 if test -d /usr/nec; then 15787 lt_prog_compiler_pic_GCJ=-Kconform_pic 15788 fi 15789 ;; 15790 15791 hpux*) 15792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15793 # not for PA HP-UX. 15794 case "$host_cpu" in 15795 hppa*64*|ia64*) 15796 # +Z the default 15797 ;; 15798 *) 15799 lt_prog_compiler_pic_GCJ='-fPIC' 15800 ;; 15801 esac 15802 ;; 15803 15804 *) 15805 lt_prog_compiler_pic_GCJ='-fPIC' 15806 ;; 15807 esac 15808 else 15809 # PORTME Check for flag to pass linker flags through the system compiler. 15810 case $host_os in 15811 aix*) 15812 lt_prog_compiler_wl_GCJ='-Wl,' 15813 if test "$host_cpu" = ia64; then 15814 # AIX 5 now supports IA64 processor 15815 lt_prog_compiler_static_GCJ='-Bstatic' 15816 else 15817 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15818 fi 15819 ;; 15820 15821 mingw* | pw32* | os2*) 15822 # This hack is so that the source file can tell whether it is being 15823 # built for inclusion in a dll (and should export symbols for example). 15824 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15825 ;; 15826 15827 hpux9* | hpux10* | hpux11*) 15828 lt_prog_compiler_wl_GCJ='-Wl,' 15829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15830 # not for PA HP-UX. 15831 case "$host_cpu" in 15832 hppa*64*|ia64*) 15833 # +Z the default 15834 ;; 15835 *) 15836 lt_prog_compiler_pic_GCJ='+Z' 15837 ;; 15838 esac 15839 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15840 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15841 ;; 15842 15843 irix5* | irix6* | nonstopux*) 15844 lt_prog_compiler_wl_GCJ='-Wl,' 15845 # PIC (with -KPIC) is the default. 15846 lt_prog_compiler_static_GCJ='-non_shared' 15847 ;; 15848 15849 newsos6) 15850 lt_prog_compiler_pic_GCJ='-KPIC' 15851 lt_prog_compiler_static_GCJ='-Bstatic' 15852 ;; 15853 15854 linux*) 15855 case $CC in 15856 icc* | ecc*) 15857 lt_prog_compiler_wl_GCJ='-Wl,' 15858 lt_prog_compiler_pic_GCJ='-KPIC' 15859 lt_prog_compiler_static_GCJ='-static' 15860 ;; 15861 ccc*) 15862 lt_prog_compiler_wl_GCJ='-Wl,' 15863 # All Alpha code is PIC. 15864 lt_prog_compiler_static_GCJ='-non_shared' 15865 ;; 15866 esac 15867 ;; 15868 15869 osf3* | osf4* | osf5*) 15870 lt_prog_compiler_wl_GCJ='-Wl,' 15871 # All OSF/1 code is PIC. 15872 lt_prog_compiler_static_GCJ='-non_shared' 15873 ;; 15874 15875 sco3.2v5*) 15876 lt_prog_compiler_pic_GCJ='-Kpic' 15877 lt_prog_compiler_static_GCJ='-dn' 15878 ;; 15879 15880 solaris*) 15881 lt_prog_compiler_wl_GCJ='-Wl,' 15882 lt_prog_compiler_pic_GCJ='-KPIC' 15883 lt_prog_compiler_static_GCJ='-Bstatic' 15884 ;; 15885 15886 sunos4*) 15887 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15888 lt_prog_compiler_pic_GCJ='-PIC' 15889 lt_prog_compiler_static_GCJ='-Bstatic' 15890 ;; 15891 15892 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15893 lt_prog_compiler_wl_GCJ='-Wl,' 15894 lt_prog_compiler_pic_GCJ='-KPIC' 15895 lt_prog_compiler_static_GCJ='-Bstatic' 15896 ;; 15897 15898 sysv4*MP*) 15899 if test -d /usr/nec ;then 15900 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15901 lt_prog_compiler_static_GCJ='-Bstatic' 15902 fi 15903 ;; 15904 15905 uts4*) 15906 lt_prog_compiler_pic_GCJ='-pic' 15907 lt_prog_compiler_static_GCJ='-Bstatic' 15908 ;; 15909 15910 *) 15911 lt_prog_compiler_can_build_shared_GCJ=no 15912 ;; 15913 esac 15914 fi 15915 15916echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15917echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15918 15919# 15920# Check to make sure the PIC flag actually works. 15921# 15922if test -n "$lt_prog_compiler_pic_GCJ"; then 15923 15924echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15925echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15926if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15927 echo $ECHO_N "(cached) $ECHO_C" >&6 15928else 15929 lt_prog_compiler_pic_works_GCJ=no 15930 ac_outfile=conftest.$ac_objext 15931 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15932 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15933 # Insert the option either (1) after the last *FLAGS variable, or 15934 # (2) before a word containing "conftest.", or (3) at the end. 15935 # Note that $ac_compile itself does not contain backslashes and begins 15936 # with a dollar sign (not a hyphen), so the echo should work correctly. 15937 # The option is referenced via a variable to avoid confusing sed. 15938 lt_compile=`echo "$ac_compile" | $SED \ 15939 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15941 -e 's:$: $lt_compiler_flag:'` 15942 (eval echo "\"\$as_me:15942: $lt_compile\"" >&5) 15943 (eval "$lt_compile" 2>conftest.err) 15944 ac_status=$? 15945 cat conftest.err >&5 15946 echo "$as_me:15946: \$? = $ac_status" >&5 15947 if (exit $ac_status) && test -s "$ac_outfile"; then 15948 # The compiler can only warn and ignore the option if not recognized 15949 # So say no if there are warnings 15950 if test ! -s conftest.err; then 15951 lt_prog_compiler_pic_works_GCJ=yes 15952 fi 15953 fi 15954 $rm conftest* 15955 15956fi 15957echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15958echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15959 15960if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15961 case $lt_prog_compiler_pic_GCJ in 15962 "" | " "*) ;; 15963 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15964 esac 15965else 15966 lt_prog_compiler_pic_GCJ= 15967 lt_prog_compiler_can_build_shared_GCJ=no 15968fi 15969 15970fi 15971case "$host_os" in 15972 # For platforms which do not support PIC, -DPIC is meaningless: 15973 *djgpp*) 15974 lt_prog_compiler_pic_GCJ= 15975 ;; 15976 *) 15977 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15978 ;; 15979esac 15980 15981echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15982echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15983if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15984 echo $ECHO_N "(cached) $ECHO_C" >&6 15985else 15986 lt_cv_prog_compiler_c_o_GCJ=no 15987 $rm -r conftest 2>/dev/null 15988 mkdir conftest 15989 cd conftest 15990 mkdir out 15991 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15992 15993 lt_compiler_flag="-o out/conftest2.$ac_objext" 15994 # Insert the option either (1) after the last *FLAGS variable, or 15995 # (2) before a word containing "conftest.", or (3) at the end. 15996 # Note that $ac_compile itself does not contain backslashes and begins 15997 # with a dollar sign (not a hyphen), so the echo should work correctly. 15998 lt_compile=`echo "$ac_compile" | $SED \ 15999 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16001 -e 's:$: $lt_compiler_flag:'` 16002 (eval echo "\"\$as_me:16002: $lt_compile\"" >&5) 16003 (eval "$lt_compile" 2>out/conftest.err) 16004 ac_status=$? 16005 cat out/conftest.err >&5 16006 echo "$as_me:16006: \$? = $ac_status" >&5 16007 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16008 then 16009 # The compiler can only warn and ignore the option if not recognized 16010 # So say no if there are warnings 16011 if test ! -s out/conftest.err; then 16012 lt_cv_prog_compiler_c_o_GCJ=yes 16013 fi 16014 fi 16015 chmod u+w . 16016 $rm conftest* 16017 # SGI C++ compiler will create directory out/ii_files/ for 16018 # template instantiation 16019 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16020 $rm out/* && rmdir out 16021 cd .. 16022 rmdir conftest 16023 $rm conftest* 16024 16025fi 16026echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16027echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16028 16029 16030hard_links="nottested" 16031if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16032 # do not overwrite the value of need_locks provided by the user 16033 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16034echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16035 hard_links=yes 16036 $rm conftest* 16037 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16038 touch conftest.a 16039 ln conftest.a conftest.b 2>&5 || hard_links=no 16040 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16041 echo "$as_me:$LINENO: result: $hard_links" >&5 16042echo "${ECHO_T}$hard_links" >&6 16043 if test "$hard_links" = no; then 16044 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16045echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16046 need_locks=warn 16047 fi 16048else 16049 need_locks=no 16050fi 16051 16052echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16053echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16054 16055 runpath_var= 16056 allow_undefined_flag_GCJ= 16057 enable_shared_with_static_runtimes_GCJ=no 16058 archive_cmds_GCJ= 16059 archive_expsym_cmds_GCJ= 16060 old_archive_From_new_cmds_GCJ= 16061 old_archive_from_expsyms_cmds_GCJ= 16062 export_dynamic_flag_spec_GCJ= 16063 whole_archive_flag_spec_GCJ= 16064 thread_safe_flag_spec_GCJ= 16065 hardcode_libdir_flag_spec_GCJ= 16066 hardcode_libdir_flag_spec_ld_GCJ= 16067 hardcode_libdir_separator_GCJ= 16068 hardcode_direct_GCJ=no 16069 hardcode_minus_L_GCJ=no 16070 hardcode_shlibpath_var_GCJ=unsupported 16071 link_all_deplibs_GCJ=unknown 16072 hardcode_automatic_GCJ=no 16073 module_cmds_GCJ= 16074 module_expsym_cmds_GCJ= 16075 always_export_symbols_GCJ=no 16076 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16077 # include_expsyms should be a list of space-separated symbols to be *always* 16078 # included in the symbol list 16079 include_expsyms_GCJ= 16080 # exclude_expsyms can be an extended regexp of symbols to exclude 16081 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16082 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16083 # as well as any symbol that contains `d'. 16084 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16085 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16086 # platforms (ab)use it in PIC code, but their linkers get confused if 16087 # the symbol is explicitly referenced. Since portable code cannot 16088 # rely on this symbol name, it's probably fine to never include it in 16089 # preloaded symbol tables. 16090 extract_expsyms_cmds= 16091 16092 case $host_os in 16093 cygwin* | mingw* | pw32*) 16094 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16095 # When not using gcc, we currently assume that we are using 16096 # Microsoft Visual C++. 16097 if test "$GCC" != yes; then 16098 with_gnu_ld=no 16099 fi 16100 ;; 16101 openbsd*) 16102 with_gnu_ld=no 16103 ;; 16104 esac 16105 16106 ld_shlibs_GCJ=yes 16107 if test "$with_gnu_ld" = yes; then 16108 # If archive_cmds runs LD, not CC, wlarc should be empty 16109 wlarc='${wl}' 16110 16111 # See if GNU ld supports shared libraries. 16112 case $host_os in 16113 aix3* | aix4* | aix5*) 16114 # On AIX/PPC, the GNU linker is very broken 16115 if test "$host_cpu" != ia64; then 16116 ld_shlibs_GCJ=no 16117 cat <<EOF 1>&2 16118 16119*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16120*** to be unable to reliably create shared libraries on AIX. 16121*** Therefore, libtool is disabling shared libraries support. If you 16122*** really care for shared libraries, you may want to modify your PATH 16123*** so that a non-GNU linker is found, and then restart. 16124 16125EOF 16126 fi 16127 ;; 16128 16129 amigaos*) 16130 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)' 16131 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16132 hardcode_minus_L_GCJ=yes 16133 16134 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16135 # that the semantics of dynamic libraries on AmigaOS, at least up 16136 # to version 4, is to share data among multiple programs linked 16137 # with the same dynamic library. Since this doesn't match the 16138 # behavior of shared libraries on other platforms, we can't use 16139 # them. 16140 ld_shlibs_GCJ=no 16141 ;; 16142 16143 beos*) 16144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16145 allow_undefined_flag_GCJ=unsupported 16146 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16147 # support --undefined. This deserves some investigation. FIXME 16148 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16149 else 16150 ld_shlibs_GCJ=no 16151 fi 16152 ;; 16153 16154 cygwin* | mingw* | pw32*) 16155 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16156 # as there is no search path for DLLs. 16157 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16158 allow_undefined_flag_GCJ=unsupported 16159 always_export_symbols_GCJ=no 16160 enable_shared_with_static_runtimes_GCJ=yes 16161 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16162 16163 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16164 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16165 # If the export-symbols file already is a .def file (1st line 16166 # is EXPORTS), use it as is; otherwise, prepend... 16167 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16168 cp $export_symbols $output_objdir/$soname.def; 16169 else 16170 echo EXPORTS > $output_objdir/$soname.def; 16171 cat $export_symbols >> $output_objdir/$soname.def; 16172 fi~ 16173 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16174 else 16175 ld_shlibs=no 16176 fi 16177 ;; 16178 16179 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 16180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16181 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16182 wlarc= 16183 else 16184 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16185 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16186 fi 16187 ;; 16188 16189 solaris* | sysv5*) 16190 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16191 ld_shlibs_GCJ=no 16192 cat <<EOF 1>&2 16193 16194*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16195*** create shared libraries on Solaris systems. Therefore, libtool 16196*** is disabling shared libraries support. We urge you to upgrade GNU 16197*** binutils to release 2.9.1 or newer. Another option is to modify 16198*** your PATH or compiler configuration so that the native linker is 16199*** used, and then restart. 16200 16201EOF 16202 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16203 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16204 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16205 else 16206 ld_shlibs_GCJ=no 16207 fi 16208 ;; 16209 16210 sunos4*) 16211 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16212 wlarc= 16213 hardcode_direct_GCJ=yes 16214 hardcode_shlibpath_var_GCJ=no 16215 ;; 16216 16217 linux*) 16218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16219 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16220 archive_cmds_GCJ="$tmp_archive_cmds" 16221 supports_anon_versioning=no 16222 case `$LD -v 2>/dev/null` in 16223 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16224 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16225 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16226 *\ 2.11.*) ;; # other 2.11 versions 16227 *) supports_anon_versioning=yes ;; 16228 esac 16229 if test $supports_anon_versioning = yes; then 16230 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16231cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16232$echo "local: *; };" >> $output_objdir/$libname.ver~ 16233 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16234 else 16235 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 16236 fi 16237 link_all_deplibs_GCJ=no 16238 else 16239 ld_shlibs_GCJ=no 16240 fi 16241 ;; 16242 16243 *) 16244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16245 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16246 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16247 else 16248 ld_shlibs_GCJ=no 16249 fi 16250 ;; 16251 esac 16252 16253 if test "$ld_shlibs_GCJ" = yes; then 16254 runpath_var=LD_RUN_PATH 16255 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16256 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16257 # ancient GNU ld didn't support --whole-archive et. al. 16258 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16259 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16260 else 16261 whole_archive_flag_spec_GCJ= 16262 fi 16263 fi 16264 else 16265 # PORTME fill in a description of your system's linker (not GNU ld) 16266 case $host_os in 16267 aix3*) 16268 allow_undefined_flag_GCJ=unsupported 16269 always_export_symbols_GCJ=yes 16270 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' 16271 # Note: this linker hardcodes the directories in LIBPATH if there 16272 # are no directories specified by -L. 16273 hardcode_minus_L_GCJ=yes 16274 if test "$GCC" = yes && test -z "$link_static_flag"; then 16275 # Neither direct hardcoding nor static linking is supported with a 16276 # broken collect2. 16277 hardcode_direct_GCJ=unsupported 16278 fi 16279 ;; 16280 16281 aix4* | aix5*) 16282 if test "$host_cpu" = ia64; then 16283 # On IA64, the linker does run time linking by default, so we don't 16284 # have to do anything special. 16285 aix_use_runtimelinking=no 16286 exp_sym_flag='-Bexport' 16287 no_entry_flag="" 16288 else 16289 # If we're using GNU nm, then we don't want the "-C" option. 16290 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16291 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16292 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' 16293 else 16294 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' 16295 fi 16296 aix_use_runtimelinking=no 16297 16298 # Test if we are trying to use run time linking or normal 16299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16300 # need to do runtime linking. 16301 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16302 for ld_flag in $LDFLAGS; do 16303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16304 aix_use_runtimelinking=yes 16305 break 16306 fi 16307 done 16308 esac 16309 16310 exp_sym_flag='-bexport' 16311 no_entry_flag='-bnoentry' 16312 fi 16313 16314 # When large executables or shared objects are built, AIX ld can 16315 # have problems creating the table of contents. If linking a library 16316 # or program results in "error TOC overflow" add -mminimal-toc to 16317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16319 16320 archive_cmds_GCJ='' 16321 hardcode_direct_GCJ=yes 16322 hardcode_libdir_separator_GCJ=':' 16323 link_all_deplibs_GCJ=yes 16324 16325 if test "$GCC" = yes; then 16326 case $host_os in aix4.012|aix4.012.*) 16327 # We only want to do this on AIX 4.2 and lower, the check 16328 # below for broken collect2 doesn't work under 4.3+ 16329 collect2name=`${CC} -print-prog-name=collect2` 16330 if test -f "$collect2name" && \ 16331 strings "$collect2name" | grep resolve_lib_name >/dev/null 16332 then 16333 # We have reworked collect2 16334 hardcode_direct_GCJ=yes 16335 else 16336 # We have old collect2 16337 hardcode_direct_GCJ=unsupported 16338 # It fails to find uninstalled libraries when the uninstalled 16339 # path is not listed in the libpath. Setting hardcode_minus_L 16340 # to unsupported forces relinking 16341 hardcode_minus_L_GCJ=yes 16342 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16343 hardcode_libdir_separator_GCJ= 16344 fi 16345 esac 16346 shared_flag='-shared' 16347 else 16348 # not using gcc 16349 if test "$host_cpu" = ia64; then 16350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16351 # chokes on -Wl,-G. The following line is correct: 16352 shared_flag='-G' 16353 else 16354 if test "$aix_use_runtimelinking" = yes; then 16355 shared_flag='${wl}-G' 16356 else 16357 shared_flag='${wl}-bM:SRE' 16358 fi 16359 fi 16360 fi 16361 16362 # It seems that -bexpall does not export symbols beginning with 16363 # underscore (_), so it is better to generate a list of symbols to export. 16364 always_export_symbols_GCJ=yes 16365 if test "$aix_use_runtimelinking" = yes; then 16366 # Warning - without using the other runtime loading flags (-brtl), 16367 # -berok will link without error, but may produce a broken library. 16368 allow_undefined_flag_GCJ='-berok' 16369 # Determine the default libpath from the value encoded in an empty executable. 16370 cat >conftest.$ac_ext <<_ACEOF 16371/* confdefs.h. */ 16372_ACEOF 16373cat confdefs.h >>conftest.$ac_ext 16374cat >>conftest.$ac_ext <<_ACEOF 16375/* end confdefs.h. */ 16376 16377int 16378main () 16379{ 16380 16381 ; 16382 return 0; 16383} 16384_ACEOF 16385rm -f conftest.$ac_objext conftest$ac_exeext 16386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16387 (eval $ac_link) 2>conftest.er1 16388 ac_status=$? 16389 grep -v '^ *+' conftest.er1 >conftest.err 16390 rm -f conftest.er1 16391 cat conftest.err >&5 16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16393 (exit $ac_status); } && 16394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16396 (eval $ac_try) 2>&5 16397 ac_status=$? 16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16399 (exit $ac_status); }; } && 16400 { ac_try='test -s conftest$ac_exeext' 16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16402 (eval $ac_try) 2>&5 16403 ac_status=$? 16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16405 (exit $ac_status); }; }; then 16406 16407aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16408}'` 16409# Check for a 64-bit object if we didn't find anything. 16410if 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; } 16411}'`; fi 16412else 16413 echo "$as_me: failed program was:" >&5 16414sed 's/^/| /' conftest.$ac_ext >&5 16415 16416fi 16417rm -f conftest.err conftest.$ac_objext \ 16418 conftest$ac_exeext conftest.$ac_ext 16419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16420 16421 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16422 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16423 else 16424 if test "$host_cpu" = ia64; then 16425 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16426 allow_undefined_flag_GCJ="-z nodefs" 16427 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 16428 else 16429 # Determine the default libpath from the value encoded in an empty executable. 16430 cat >conftest.$ac_ext <<_ACEOF 16431/* confdefs.h. */ 16432_ACEOF 16433cat confdefs.h >>conftest.$ac_ext 16434cat >>conftest.$ac_ext <<_ACEOF 16435/* end confdefs.h. */ 16436 16437int 16438main () 16439{ 16440 16441 ; 16442 return 0; 16443} 16444_ACEOF 16445rm -f conftest.$ac_objext conftest$ac_exeext 16446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16447 (eval $ac_link) 2>conftest.er1 16448 ac_status=$? 16449 grep -v '^ *+' conftest.er1 >conftest.err 16450 rm -f conftest.er1 16451 cat conftest.err >&5 16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16453 (exit $ac_status); } && 16454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16456 (eval $ac_try) 2>&5 16457 ac_status=$? 16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16459 (exit $ac_status); }; } && 16460 { ac_try='test -s conftest$ac_exeext' 16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16462 (eval $ac_try) 2>&5 16463 ac_status=$? 16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16465 (exit $ac_status); }; }; then 16466 16467aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16468}'` 16469# Check for a 64-bit object if we didn't find anything. 16470if 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; } 16471}'`; fi 16472else 16473 echo "$as_me: failed program was:" >&5 16474sed 's/^/| /' conftest.$ac_ext >&5 16475 16476fi 16477rm -f conftest.err conftest.$ac_objext \ 16478 conftest$ac_exeext conftest.$ac_ext 16479if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16480 16481 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16482 # Warning - without using the other run time loading flags, 16483 # -berok will link without error, but may produce a broken library. 16484 no_undefined_flag_GCJ=' ${wl}-bernotok' 16485 allow_undefined_flag_GCJ=' ${wl}-berok' 16486 # -bexpall does not export symbols beginning with underscore (_) 16487 always_export_symbols_GCJ=yes 16488 # Exported symbols can be pulled into shared objects from archives 16489 whole_archive_flag_spec_GCJ=' ' 16490 archive_cmds_need_lc_GCJ=yes 16491 # This is similar to how AIX traditionally builds it's shared libraries. 16492 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16493 fi 16494 fi 16495 ;; 16496 16497 amigaos*) 16498 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)' 16499 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16500 hardcode_minus_L_GCJ=yes 16501 # see comment about different semantics on the GNU ld section 16502 ld_shlibs_GCJ=no 16503 ;; 16504 16505 bsdi4*) 16506 export_dynamic_flag_spec_GCJ=-rdynamic 16507 ;; 16508 16509 cygwin* | mingw* | pw32*) 16510 # When not using gcc, we currently assume that we are using 16511 # Microsoft Visual C++. 16512 # hardcode_libdir_flag_spec is actually meaningless, as there is 16513 # no search path for DLLs. 16514 hardcode_libdir_flag_spec_GCJ=' ' 16515 allow_undefined_flag_GCJ=unsupported 16516 # Tell ltmain to make .lib files, not .a files. 16517 libext=lib 16518 # Tell ltmain to make .dll files, not .so files. 16519 shrext_cmds=".dll" 16520 # FIXME: Setting linknames here is a bad hack. 16521 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16522 # The linker will automatically build a .lib file if we build a DLL. 16523 old_archive_From_new_cmds_GCJ='true' 16524 # FIXME: Should let the user specify the lib program. 16525 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16526 fix_srcfile_path='`cygpath -w "$srcfile"`' 16527 enable_shared_with_static_runtimes_GCJ=yes 16528 ;; 16529 16530 darwin* | rhapsody*) 16531 if test "$GXX" = yes ; then 16532 archive_cmds_need_lc_GCJ=no 16533 case "$host_os" in 16534 rhapsody* | darwin1.[012]) 16535 allow_undefined_flag_GCJ='-undefined suppress' 16536 ;; 16537 *) # Darwin 1.3 on 16538 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16539 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16540 else 16541 case ${MACOSX_DEPLOYMENT_TARGET} in 16542 10.[012]) 16543 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16544 ;; 16545 10.*) 16546 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 16547 ;; 16548 esac 16549 fi 16550 ;; 16551 esac 16552 lt_int_apple_cc_single_mod=no 16553 output_verbose_link_cmd='echo' 16554 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 16555 lt_int_apple_cc_single_mod=yes 16556 fi 16557 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16558 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16559 else 16560 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16561 fi 16562 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16563 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16564 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16565 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16566 else 16567 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16568 fi 16569 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}' 16570 hardcode_direct_GCJ=no 16571 hardcode_automatic_GCJ=yes 16572 hardcode_shlibpath_var_GCJ=unsupported 16573 whole_archive_flag_spec_GCJ='-all_load $convenience' 16574 link_all_deplibs_GCJ=yes 16575 else 16576 ld_shlibs_GCJ=no 16577 fi 16578 ;; 16579 16580 dgux*) 16581 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16582 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16583 hardcode_shlibpath_var_GCJ=no 16584 ;; 16585 16586 freebsd1*) 16587 ld_shlibs_GCJ=no 16588 ;; 16589 16590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16591 # support. Future versions do this automatically, but an explicit c++rt0.o 16592 # does not break anything, and helps significantly (at the cost of a little 16593 # extra space). 16594 freebsd2.2*) 16595 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16596 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16597 hardcode_direct_GCJ=yes 16598 hardcode_shlibpath_var_GCJ=no 16599 ;; 16600 16601 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16602 freebsd2*) 16603 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16604 hardcode_direct_GCJ=yes 16605 hardcode_minus_L_GCJ=yes 16606 hardcode_shlibpath_var_GCJ=no 16607 ;; 16608 16609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16610 freebsd* | kfreebsd*-gnu) 16611 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16612 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16613 hardcode_direct_GCJ=yes 16614 hardcode_shlibpath_var_GCJ=no 16615 ;; 16616 16617 hpux9*) 16618 if test "$GCC" = yes; then 16619 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' 16620 else 16621 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' 16622 fi 16623 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16624 hardcode_libdir_separator_GCJ=: 16625 hardcode_direct_GCJ=yes 16626 16627 # hardcode_minus_L: Not really in the search PATH, 16628 # but as the default location of the library. 16629 hardcode_minus_L_GCJ=yes 16630 export_dynamic_flag_spec_GCJ='${wl}-E' 16631 ;; 16632 16633 hpux10* | hpux11*) 16634 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16635 case "$host_cpu" in 16636 hppa*64*|ia64*) 16637 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16638 ;; 16639 *) 16640 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16641 ;; 16642 esac 16643 else 16644 case "$host_cpu" in 16645 hppa*64*|ia64*) 16646 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16647 ;; 16648 *) 16649 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16650 ;; 16651 esac 16652 fi 16653 if test "$with_gnu_ld" = no; then 16654 case "$host_cpu" in 16655 hppa*64*) 16656 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16657 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16658 hardcode_libdir_separator_GCJ=: 16659 hardcode_direct_GCJ=no 16660 hardcode_shlibpath_var_GCJ=no 16661 ;; 16662 ia64*) 16663 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16664 hardcode_direct_GCJ=no 16665 hardcode_shlibpath_var_GCJ=no 16666 16667 # hardcode_minus_L: Not really in the search PATH, 16668 # but as the default location of the library. 16669 hardcode_minus_L_GCJ=yes 16670 ;; 16671 *) 16672 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16673 hardcode_libdir_separator_GCJ=: 16674 hardcode_direct_GCJ=yes 16675 export_dynamic_flag_spec_GCJ='${wl}-E' 16676 16677 # hardcode_minus_L: Not really in the search PATH, 16678 # but as the default location of the library. 16679 hardcode_minus_L_GCJ=yes 16680 ;; 16681 esac 16682 fi 16683 ;; 16684 16685 irix5* | irix6* | nonstopux*) 16686 if test "$GCC" = yes; then 16687 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' 16688 else 16689 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' 16690 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16691 fi 16692 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16693 hardcode_libdir_separator_GCJ=: 16694 link_all_deplibs_GCJ=yes 16695 ;; 16696 16697 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 16698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16699 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16700 else 16701 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16702 fi 16703 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16704 hardcode_direct_GCJ=yes 16705 hardcode_shlibpath_var_GCJ=no 16706 ;; 16707 16708 newsos6) 16709 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16710 hardcode_direct_GCJ=yes 16711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16712 hardcode_libdir_separator_GCJ=: 16713 hardcode_shlibpath_var_GCJ=no 16714 ;; 16715 16716 openbsd*) 16717 hardcode_direct_GCJ=yes 16718 hardcode_shlibpath_var_GCJ=no 16719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16720 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16721 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16722 export_dynamic_flag_spec_GCJ='${wl}-E' 16723 else 16724 case $host_os in 16725 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16726 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16727 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16728 ;; 16729 *) 16730 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16732 ;; 16733 esac 16734 fi 16735 ;; 16736 16737 os2*) 16738 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16739 hardcode_minus_L_GCJ=yes 16740 allow_undefined_flag_GCJ=unsupported 16741 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' 16742 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16743 ;; 16744 16745 osf3*) 16746 if test "$GCC" = yes; then 16747 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16748 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' 16749 else 16750 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16751 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' 16752 fi 16753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16754 hardcode_libdir_separator_GCJ=: 16755 ;; 16756 16757 osf4* | osf5*) # as osf3* with the addition of -msym flag 16758 if test "$GCC" = yes; then 16759 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16760 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' 16761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16762 else 16763 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16764 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' 16765 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~ 16766 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 16767 16768 # Both c and cxx compiler support -rpath directly 16769 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16770 fi 16771 hardcode_libdir_separator_GCJ=: 16772 ;; 16773 16774 sco3.2v5*) 16775 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16776 hardcode_shlibpath_var_GCJ=no 16777 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16778 runpath_var=LD_RUN_PATH 16779 hardcode_runpath_var=yes 16780 ;; 16781 16782 solaris*) 16783 no_undefined_flag_GCJ=' -z text' 16784 if test "$GCC" = yes; then 16785 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16786 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16787 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16788 else 16789 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16790 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16791 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16792 fi 16793 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16794 hardcode_shlibpath_var_GCJ=no 16795 case $host_os in 16796 solaris2.[0-5] | solaris2.[0-5].*) ;; 16797 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16798 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16799 esac 16800 link_all_deplibs_GCJ=yes 16801 ;; 16802 16803 sunos4*) 16804 if test "x$host_vendor" = xsequent; then 16805 # Use $CC to link under sequent, because it throws in some extra .o 16806 # files that make .init and .fini sections work. 16807 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16808 else 16809 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16810 fi 16811 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16812 hardcode_direct_GCJ=yes 16813 hardcode_minus_L_GCJ=yes 16814 hardcode_shlibpath_var_GCJ=no 16815 ;; 16816 16817 sysv4) 16818 case $host_vendor in 16819 sni) 16820 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16821 hardcode_direct_GCJ=yes # is this really true??? 16822 ;; 16823 siemens) 16824 ## LD is ld it makes a PLAMLIB 16825 ## CC just makes a GrossModule. 16826 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16827 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16828 hardcode_direct_GCJ=no 16829 ;; 16830 motorola) 16831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16832 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16833 ;; 16834 esac 16835 runpath_var='LD_RUN_PATH' 16836 hardcode_shlibpath_var_GCJ=no 16837 ;; 16838 16839 sysv4.3*) 16840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16841 hardcode_shlibpath_var_GCJ=no 16842 export_dynamic_flag_spec_GCJ='-Bexport' 16843 ;; 16844 16845 sysv4*MP*) 16846 if test -d /usr/nec; then 16847 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16848 hardcode_shlibpath_var_GCJ=no 16849 runpath_var=LD_RUN_PATH 16850 hardcode_runpath_var=yes 16851 ld_shlibs_GCJ=yes 16852 fi 16853 ;; 16854 16855 sysv4.2uw2*) 16856 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16857 hardcode_direct_GCJ=yes 16858 hardcode_minus_L_GCJ=no 16859 hardcode_shlibpath_var_GCJ=no 16860 hardcode_runpath_var=yes 16861 runpath_var=LD_RUN_PATH 16862 ;; 16863 16864 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16865 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16866 if test "$GCC" = yes; then 16867 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16868 else 16869 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16870 fi 16871 runpath_var='LD_RUN_PATH' 16872 hardcode_shlibpath_var_GCJ=no 16873 ;; 16874 16875 sysv5*) 16876 no_undefined_flag_GCJ=' -z text' 16877 # $CC -shared without GNU ld will not create a library from C++ 16878 # object files and a static libstdc++, better avoid it by now 16879 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16880 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16881 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16882 hardcode_libdir_flag_spec_GCJ= 16883 hardcode_shlibpath_var_GCJ=no 16884 runpath_var='LD_RUN_PATH' 16885 ;; 16886 16887 uts4*) 16888 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16889 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16890 hardcode_shlibpath_var_GCJ=no 16891 ;; 16892 16893 *) 16894 ld_shlibs_GCJ=no 16895 ;; 16896 esac 16897 fi 16898 16899echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16900echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16901test "$ld_shlibs_GCJ" = no && can_build_shared=no 16902 16903variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16904if test "$GCC" = yes; then 16905 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16906fi 16907 16908# 16909# Do we need to explicitly link libc? 16910# 16911case "x$archive_cmds_need_lc_GCJ" in 16912x|xyes) 16913 # Assume -lc should be added 16914 archive_cmds_need_lc_GCJ=yes 16915 16916 if test "$enable_shared" = yes && test "$GCC" = yes; then 16917 case $archive_cmds_GCJ in 16918 *'~'*) 16919 # FIXME: we may have to deal with multi-command sequences. 16920 ;; 16921 '$CC '*) 16922 # Test whether the compiler implicitly links with -lc since on some 16923 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16924 # to ld, don't add -lc before -lgcc. 16925 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16926echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16927 $rm conftest* 16928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16929 16930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16931 (eval $ac_compile) 2>&5 16932 ac_status=$? 16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16934 (exit $ac_status); } 2>conftest.err; then 16935 soname=conftest 16936 lib=conftest 16937 libobjs=conftest.$ac_objext 16938 deplibs= 16939 wl=$lt_prog_compiler_wl_GCJ 16940 compiler_flags=-v 16941 linker_flags=-v 16942 verstring= 16943 output_objdir=. 16944 libname=conftest 16945 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16946 allow_undefined_flag_GCJ= 16947 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16948 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16949 ac_status=$? 16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16951 (exit $ac_status); } 16952 then 16953 archive_cmds_need_lc_GCJ=no 16954 else 16955 archive_cmds_need_lc_GCJ=yes 16956 fi 16957 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16958 else 16959 cat conftest.err 1>&5 16960 fi 16961 $rm conftest* 16962 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16963echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16964 ;; 16965 esac 16966 fi 16967 ;; 16968esac 16969 16970echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16971echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16972library_names_spec= 16973libname_spec='lib$name' 16974soname_spec= 16975shrext_cmds=".so" 16976postinstall_cmds= 16977postuninstall_cmds= 16978finish_cmds= 16979finish_eval= 16980shlibpath_var= 16981shlibpath_overrides_runpath=unknown 16982version_type=none 16983dynamic_linker="$host_os ld.so" 16984sys_lib_dlsearch_path_spec="/lib /usr/lib" 16985if test "$GCC" = yes; then 16986 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16987 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16988 # if the path contains ";" then we assume it to be the separator 16989 # otherwise default to the standard path separator (i.e. ":") - it is 16990 # assumed that no part of a normal pathname contains ";" but that should 16991 # okay in the real world where ";" in dirpaths is itself problematic. 16992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16993 else 16994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16995 fi 16996else 16997 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16998fi 16999need_lib_prefix=unknown 17000hardcode_into_libs=no 17001 17002# when you set need_version to no, make sure it does not cause -set_version 17003# flags to be left without arguments 17004need_version=unknown 17005 17006case $host_os in 17007aix3*) 17008 version_type=linux 17009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17010 shlibpath_var=LIBPATH 17011 17012 # AIX 3 has no versioning support, so we append a major version to the name. 17013 soname_spec='${libname}${release}${shared_ext}$major' 17014 ;; 17015 17016aix4* | aix5*) 17017 version_type=linux 17018 need_lib_prefix=no 17019 need_version=no 17020 hardcode_into_libs=yes 17021 if test "$host_cpu" = ia64; then 17022 # AIX 5 supports IA64 17023 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17024 shlibpath_var=LD_LIBRARY_PATH 17025 else 17026 # With GCC up to 2.95.x, collect2 would create an import file 17027 # for dependence libraries. The import file would start with 17028 # the line `#! .'. This would cause the generated library to 17029 # depend on `.', always an invalid library. This was fixed in 17030 # development snapshots of GCC prior to 3.0. 17031 case $host_os in 17032 aix4 | aix4.[01] | aix4.[01].*) 17033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17034 echo ' yes ' 17035 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17036 : 17037 else 17038 can_build_shared=no 17039 fi 17040 ;; 17041 esac 17042 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17043 # soname into executable. Probably we can add versioning support to 17044 # collect2, so additional links can be useful in future. 17045 if test "$aix_use_runtimelinking" = yes; then 17046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17047 # instead of lib<name>.a to let people know that these are not 17048 # typical AIX shared libraries. 17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17050 else 17051 # We preserve .a as extension for shared libraries through AIX4.2 17052 # and later when we are not doing run time linking. 17053 library_names_spec='${libname}${release}.a $libname.a' 17054 soname_spec='${libname}${release}${shared_ext}$major' 17055 fi 17056 shlibpath_var=LIBPATH 17057 fi 17058 ;; 17059 17060amigaos*) 17061 library_names_spec='$libname.ixlibrary $libname.a' 17062 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17063 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' 17064 ;; 17065 17066beos*) 17067 library_names_spec='${libname}${shared_ext}' 17068 dynamic_linker="$host_os ld.so" 17069 shlibpath_var=LIBRARY_PATH 17070 ;; 17071 17072bsdi4*) 17073 version_type=linux 17074 need_version=no 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17078 shlibpath_var=LD_LIBRARY_PATH 17079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17081 # the default ld.so.conf also contains /usr/contrib/lib and 17082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17083 # libtool to hard-code these into programs 17084 ;; 17085 17086cygwin* | mingw* | pw32*) 17087 version_type=windows 17088 shrext_cmds=".dll" 17089 need_version=no 17090 need_lib_prefix=no 17091 17092 case $GCC,$host_os in 17093 yes,cygwin* | yes,mingw* | yes,pw32*) 17094 library_names_spec='$libname.dll.a' 17095 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17096 postinstall_cmds='base_file=`basename \${file}`~ 17097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17098 dldir=$destdir/`dirname \$dlpath`~ 17099 test -d \$dldir || mkdir -p \$dldir~ 17100 $install_prog $dir/$dlname \$dldir/$dlname' 17101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17102 dlpath=$dir/\$dldll~ 17103 $rm \$dlpath' 17104 shlibpath_overrides_runpath=yes 17105 17106 case $host_os in 17107 cygwin*) 17108 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17110 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17111 ;; 17112 mingw*) 17113 # MinGW DLLs use traditional 'lib' prefix 17114 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17116 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17117 # It is most probably a Windows format PATH printed by 17118 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17119 # path with ; separators, and with drive letters. We can handle the 17120 # drive letters (cygwin fileutils understands them), so leave them, 17121 # especially as we might pass files found there to a mingw objdump, 17122 # which wouldn't understand a cygwinified path. Ahh. 17123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17124 else 17125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17126 fi 17127 ;; 17128 pw32*) 17129 # pw32 DLLs use 'pw' prefix rather than 'lib' 17130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 17131 ;; 17132 esac 17133 ;; 17134 17135 *) 17136 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17137 ;; 17138 esac 17139 dynamic_linker='Win32 ld.exe' 17140 # FIXME: first we should search . and the directory the executable is in 17141 shlibpath_var=PATH 17142 ;; 17143 17144darwin* | rhapsody*) 17145 dynamic_linker="$host_os dyld" 17146 version_type=darwin 17147 need_lib_prefix=no 17148 need_version=no 17149 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17150 soname_spec='${libname}${release}${major}$shared_ext' 17151 shlibpath_overrides_runpath=yes 17152 shlibpath_var=DYLD_LIBRARY_PATH 17153 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 17154 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17155 if test "$GCC" = yes; then 17156 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"` 17157 else 17158 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17159 fi 17160 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17161 ;; 17162 17163dgux*) 17164 version_type=linux 17165 need_lib_prefix=no 17166 need_version=no 17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17168 soname_spec='${libname}${release}${shared_ext}$major' 17169 shlibpath_var=LD_LIBRARY_PATH 17170 ;; 17171 17172freebsd1*) 17173 dynamic_linker=no 17174 ;; 17175 17176kfreebsd*-gnu) 17177 version_type=linux 17178 need_lib_prefix=no 17179 need_version=no 17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17181 soname_spec='${libname}${release}${shared_ext}$major' 17182 shlibpath_var=LD_LIBRARY_PATH 17183 shlibpath_overrides_runpath=no 17184 hardcode_into_libs=yes 17185 dynamic_linker='GNU ld.so' 17186 ;; 17187 17188freebsd*) 17189 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17190 version_type=freebsd-$objformat 17191 case $version_type in 17192 freebsd-elf*) 17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17194 need_version=no 17195 need_lib_prefix=no 17196 ;; 17197 freebsd-*) 17198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17199 need_version=yes 17200 ;; 17201 esac 17202 shlibpath_var=LD_LIBRARY_PATH 17203 case $host_os in 17204 freebsd2*) 17205 shlibpath_overrides_runpath=yes 17206 ;; 17207 freebsd3.01* | freebsdelf3.01*) 17208 shlibpath_overrides_runpath=yes 17209 hardcode_into_libs=yes 17210 ;; 17211 *) # from 3.2 on 17212 shlibpath_overrides_runpath=no 17213 hardcode_into_libs=yes 17214 ;; 17215 esac 17216 ;; 17217 17218gnu*) 17219 version_type=linux 17220 need_lib_prefix=no 17221 need_version=no 17222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17223 soname_spec='${libname}${release}${shared_ext}$major' 17224 shlibpath_var=LD_LIBRARY_PATH 17225 hardcode_into_libs=yes 17226 ;; 17227 17228hpux9* | hpux10* | hpux11*) 17229 # Give a soname corresponding to the major version so that dld.sl refuses to 17230 # link against other versions. 17231 version_type=sunos 17232 need_lib_prefix=no 17233 need_version=no 17234 case "$host_cpu" in 17235 ia64*) 17236 shrext_cmds='.so' 17237 hardcode_into_libs=yes 17238 dynamic_linker="$host_os dld.so" 17239 shlibpath_var=LD_LIBRARY_PATH 17240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17242 soname_spec='${libname}${release}${shared_ext}$major' 17243 if test "X$HPUX_IA64_MODE" = X32; then 17244 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17245 else 17246 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17247 fi 17248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17249 ;; 17250 hppa*64*) 17251 shrext_cmds='.sl' 17252 hardcode_into_libs=yes 17253 dynamic_linker="$host_os dld.sl" 17254 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17257 soname_spec='${libname}${release}${shared_ext}$major' 17258 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17260 ;; 17261 *) 17262 shrext_cmds='.sl' 17263 dynamic_linker="$host_os dld.sl" 17264 shlibpath_var=SHLIB_PATH 17265 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17267 soname_spec='${libname}${release}${shared_ext}$major' 17268 ;; 17269 esac 17270 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17271 postinstall_cmds='chmod 555 $lib' 17272 ;; 17273 17274irix5* | irix6* | nonstopux*) 17275 case $host_os in 17276 nonstopux*) version_type=nonstopux ;; 17277 *) 17278 if test "$lt_cv_prog_gnu_ld" = yes; then 17279 version_type=linux 17280 else 17281 version_type=irix 17282 fi ;; 17283 esac 17284 need_lib_prefix=no 17285 need_version=no 17286 soname_spec='${libname}${release}${shared_ext}$major' 17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17288 case $host_os in 17289 irix5* | nonstopux*) 17290 libsuff= shlibsuff= 17291 ;; 17292 *) 17293 case $LD in # libtool.m4 will add one of these switches to LD 17294 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17295 libsuff= shlibsuff= libmagic=32-bit;; 17296 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17297 libsuff=32 shlibsuff=N32 libmagic=N32;; 17298 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17299 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17300 *) libsuff= shlibsuff= libmagic=never-match;; 17301 esac 17302 ;; 17303 esac 17304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17305 shlibpath_overrides_runpath=no 17306 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17307 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17308 hardcode_into_libs=yes 17309 ;; 17310 17311# No shared lib support for Linux oldld, aout, or coff. 17312linux*oldld* | linux*aout* | linux*coff*) 17313 dynamic_linker=no 17314 ;; 17315 17316# This must be Linux ELF. 17317linux*) 17318 version_type=linux 17319 need_lib_prefix=no 17320 need_version=no 17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17322 soname_spec='${libname}${release}${shared_ext}$major' 17323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17324 shlibpath_var=LD_LIBRARY_PATH 17325 shlibpath_overrides_runpath=no 17326 # This implies no fast_install, which is unacceptable. 17327 # Some rework will be needed to allow for fast_install 17328 # before this can be enabled. 17329 hardcode_into_libs=yes 17330 17331 # Append ld.so.conf contents to the search path 17332 if test -f /etc/ld.so.conf; then 17333 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 17334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17335 fi 17336 17337 # We used to test for /lib/ld.so.1 and disable shared libraries on 17338 # powerpc, because MkLinux only supported shared libraries with the 17339 # GNU dynamic linker. Since this was broken with cross compilers, 17340 # most powerpc-linux boxes support dynamic linking these days and 17341 # people can always --disable-shared, the test was removed, and we 17342 # assume the GNU/Linux dynamic linker is in use. 17343 dynamic_linker='GNU/Linux ld.so' 17344 ;; 17345 17346netbsdelf*-gnu) 17347 version_type=linux 17348 need_lib_prefix=no 17349 need_version=no 17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17351 soname_spec='${libname}${release}${shared_ext}$major' 17352 shlibpath_var=LD_LIBRARY_PATH 17353 shlibpath_overrides_runpath=no 17354 hardcode_into_libs=yes 17355 dynamic_linker='NetBSD ld.elf_so' 17356 ;; 17357 17358knetbsd*-gnu) 17359 version_type=linux 17360 need_lib_prefix=no 17361 need_version=no 17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17363 soname_spec='${libname}${release}${shared_ext}$major' 17364 shlibpath_var=LD_LIBRARY_PATH 17365 shlibpath_overrides_runpath=no 17366 hardcode_into_libs=yes 17367 dynamic_linker='GNU ld.so' 17368 ;; 17369 17370netbsd*) 17371 version_type=sunos 17372 need_lib_prefix=no 17373 need_version=no 17374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17377 dynamic_linker='NetBSD (a.out) ld.so' 17378 else 17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17380 soname_spec='${libname}${release}${shared_ext}$major' 17381 dynamic_linker='NetBSD ld.elf_so' 17382 fi 17383 shlibpath_var=LD_LIBRARY_PATH 17384 shlibpath_overrides_runpath=yes 17385 hardcode_into_libs=yes 17386 ;; 17387 17388newsos6) 17389 version_type=linux 17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17391 shlibpath_var=LD_LIBRARY_PATH 17392 shlibpath_overrides_runpath=yes 17393 ;; 17394 17395nto-qnx*) 17396 version_type=linux 17397 need_lib_prefix=no 17398 need_version=no 17399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17400 soname_spec='${libname}${release}${shared_ext}$major' 17401 shlibpath_var=LD_LIBRARY_PATH 17402 shlibpath_overrides_runpath=yes 17403 ;; 17404 17405openbsd*) 17406 version_type=sunos 17407 need_lib_prefix=no 17408 need_version=yes 17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17411 shlibpath_var=LD_LIBRARY_PATH 17412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17413 case $host_os in 17414 openbsd2.[89] | openbsd2.[89].*) 17415 shlibpath_overrides_runpath=no 17416 ;; 17417 *) 17418 shlibpath_overrides_runpath=yes 17419 ;; 17420 esac 17421 else 17422 shlibpath_overrides_runpath=yes 17423 fi 17424 ;; 17425 17426os2*) 17427 libname_spec='$name' 17428 shrext_cmds=".dll" 17429 need_lib_prefix=no 17430 library_names_spec='$libname${shared_ext} $libname.a' 17431 dynamic_linker='OS/2 ld.exe' 17432 shlibpath_var=LIBPATH 17433 ;; 17434 17435osf3* | osf4* | osf5*) 17436 version_type=osf 17437 need_lib_prefix=no 17438 need_version=no 17439 soname_spec='${libname}${release}${shared_ext}$major' 17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17441 shlibpath_var=LD_LIBRARY_PATH 17442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17444 ;; 17445 17446sco3.2v5*) 17447 version_type=osf 17448 soname_spec='${libname}${release}${shared_ext}$major' 17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17450 shlibpath_var=LD_LIBRARY_PATH 17451 ;; 17452 17453solaris*) 17454 version_type=linux 17455 need_lib_prefix=no 17456 need_version=no 17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17458 soname_spec='${libname}${release}${shared_ext}$major' 17459 shlibpath_var=LD_LIBRARY_PATH 17460 shlibpath_overrides_runpath=yes 17461 hardcode_into_libs=yes 17462 # ldd complains unless libraries are executable 17463 postinstall_cmds='chmod +x $lib' 17464 ;; 17465 17466sunos4*) 17467 version_type=sunos 17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17470 shlibpath_var=LD_LIBRARY_PATH 17471 shlibpath_overrides_runpath=yes 17472 if test "$with_gnu_ld" = yes; then 17473 need_lib_prefix=no 17474 fi 17475 need_version=yes 17476 ;; 17477 17478sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17479 version_type=linux 17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17481 soname_spec='${libname}${release}${shared_ext}$major' 17482 shlibpath_var=LD_LIBRARY_PATH 17483 case $host_vendor in 17484 sni) 17485 shlibpath_overrides_runpath=no 17486 need_lib_prefix=no 17487 export_dynamic_flag_spec='${wl}-Blargedynsym' 17488 runpath_var=LD_RUN_PATH 17489 ;; 17490 siemens) 17491 need_lib_prefix=no 17492 ;; 17493 motorola) 17494 need_lib_prefix=no 17495 need_version=no 17496 shlibpath_overrides_runpath=no 17497 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17498 ;; 17499 esac 17500 ;; 17501 17502sysv4*MP*) 17503 if test -d /usr/nec ;then 17504 version_type=linux 17505 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17506 soname_spec='$libname${shared_ext}.$major' 17507 shlibpath_var=LD_LIBRARY_PATH 17508 fi 17509 ;; 17510 17511uts4*) 17512 version_type=linux 17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17514 soname_spec='${libname}${release}${shared_ext}$major' 17515 shlibpath_var=LD_LIBRARY_PATH 17516 ;; 17517 17518*) 17519 dynamic_linker=no 17520 ;; 17521esac 17522echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17523echo "${ECHO_T}$dynamic_linker" >&6 17524test "$dynamic_linker" = no && can_build_shared=no 17525 17526echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17527echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17528hardcode_action_GCJ= 17529if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17530 test -n "$runpath_var GCJ" || \ 17531 test "X$hardcode_automatic_GCJ"="Xyes" ; then 17532 17533 # We can hardcode non-existant directories. 17534 if test "$hardcode_direct_GCJ" != no && 17535 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17536 # have to relink, otherwise we might link with an installed library 17537 # when we should be linking with a yet-to-be-installed one 17538 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17539 test "$hardcode_minus_L_GCJ" != no; then 17540 # Linking always hardcodes the temporary library directory. 17541 hardcode_action_GCJ=relink 17542 else 17543 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17544 hardcode_action_GCJ=immediate 17545 fi 17546else 17547 # We cannot hardcode anything, or else we can only hardcode existing 17548 # directories. 17549 hardcode_action_GCJ=unsupported 17550fi 17551echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17552echo "${ECHO_T}$hardcode_action_GCJ" >&6 17553 17554if test "$hardcode_action_GCJ" = relink; then 17555 # Fast installation is not supported 17556 enable_fast_install=no 17557elif test "$shlibpath_overrides_runpath" = yes || 17558 test "$enable_shared" = no; then 17559 # Fast installation is not necessary 17560 enable_fast_install=needless 17561fi 17562 17563striplib= 17564old_striplib= 17565echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17566echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17567if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17568 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17569 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17570 echo "$as_me:$LINENO: result: yes" >&5 17571echo "${ECHO_T}yes" >&6 17572else 17573# FIXME - insert some real tests, host_os isn't really good enough 17574 case $host_os in 17575 darwin*) 17576 if test -n "$STRIP" ; then 17577 striplib="$STRIP -x" 17578 echo "$as_me:$LINENO: result: yes" >&5 17579echo "${ECHO_T}yes" >&6 17580 else 17581 echo "$as_me:$LINENO: result: no" >&5 17582echo "${ECHO_T}no" >&6 17583fi 17584 ;; 17585 *) 17586 echo "$as_me:$LINENO: result: no" >&5 17587echo "${ECHO_T}no" >&6 17588 ;; 17589 esac 17590fi 17591 17592if test "x$enable_dlopen" != xyes; then 17593 enable_dlopen=unknown 17594 enable_dlopen_self=unknown 17595 enable_dlopen_self_static=unknown 17596else 17597 lt_cv_dlopen=no 17598 lt_cv_dlopen_libs= 17599 17600 case $host_os in 17601 beos*) 17602 lt_cv_dlopen="load_add_on" 17603 lt_cv_dlopen_libs= 17604 lt_cv_dlopen_self=yes 17605 ;; 17606 17607 mingw* | pw32*) 17608 lt_cv_dlopen="LoadLibrary" 17609 lt_cv_dlopen_libs= 17610 ;; 17611 17612 cygwin*) 17613 lt_cv_dlopen="dlopen" 17614 lt_cv_dlopen_libs= 17615 ;; 17616 17617 darwin*) 17618 # if libdl is installed we need to link against it 17619 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17620echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17621if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17622 echo $ECHO_N "(cached) $ECHO_C" >&6 17623else 17624 ac_check_lib_save_LIBS=$LIBS 17625LIBS="-ldl $LIBS" 17626cat >conftest.$ac_ext <<_ACEOF 17627/* confdefs.h. */ 17628_ACEOF 17629cat confdefs.h >>conftest.$ac_ext 17630cat >>conftest.$ac_ext <<_ACEOF 17631/* end confdefs.h. */ 17632 17633/* Override any gcc2 internal prototype to avoid an error. */ 17634#ifdef __cplusplus 17635extern "C" 17636#endif 17637/* We use char because int might match the return type of a gcc2 17638 builtin and then its argument prototype would still apply. */ 17639char dlopen (); 17640int 17641main () 17642{ 17643dlopen (); 17644 ; 17645 return 0; 17646} 17647_ACEOF 17648rm -f conftest.$ac_objext conftest$ac_exeext 17649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17650 (eval $ac_link) 2>conftest.er1 17651 ac_status=$? 17652 grep -v '^ *+' conftest.er1 >conftest.err 17653 rm -f conftest.er1 17654 cat conftest.err >&5 17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17656 (exit $ac_status); } && 17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17659 (eval $ac_try) 2>&5 17660 ac_status=$? 17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17662 (exit $ac_status); }; } && 17663 { ac_try='test -s conftest$ac_exeext' 17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17665 (eval $ac_try) 2>&5 17666 ac_status=$? 17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17668 (exit $ac_status); }; }; then 17669 ac_cv_lib_dl_dlopen=yes 17670else 17671 echo "$as_me: failed program was:" >&5 17672sed 's/^/| /' conftest.$ac_ext >&5 17673 17674ac_cv_lib_dl_dlopen=no 17675fi 17676rm -f conftest.err conftest.$ac_objext \ 17677 conftest$ac_exeext conftest.$ac_ext 17678LIBS=$ac_check_lib_save_LIBS 17679fi 17680echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17681echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17682if test $ac_cv_lib_dl_dlopen = yes; then 17683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17684else 17685 17686 lt_cv_dlopen="dyld" 17687 lt_cv_dlopen_libs= 17688 lt_cv_dlopen_self=yes 17689 17690fi 17691 17692 ;; 17693 17694 *) 17695 echo "$as_me:$LINENO: checking for shl_load" >&5 17696echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17697if test "${ac_cv_func_shl_load+set}" = set; then 17698 echo $ECHO_N "(cached) $ECHO_C" >&6 17699else 17700 cat >conftest.$ac_ext <<_ACEOF 17701/* confdefs.h. */ 17702_ACEOF 17703cat confdefs.h >>conftest.$ac_ext 17704cat >>conftest.$ac_ext <<_ACEOF 17705/* end confdefs.h. */ 17706/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17708#define shl_load innocuous_shl_load 17709 17710/* System header to define __stub macros and hopefully few prototypes, 17711 which can conflict with char shl_load (); below. 17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17713 <limits.h> exists even on freestanding compilers. */ 17714 17715#ifdef __STDC__ 17716# include <limits.h> 17717#else 17718# include <assert.h> 17719#endif 17720 17721#undef shl_load 17722 17723/* Override any gcc2 internal prototype to avoid an error. */ 17724#ifdef __cplusplus 17725extern "C" 17726{ 17727#endif 17728/* We use char because int might match the return type of a gcc2 17729 builtin and then its argument prototype would still apply. */ 17730char shl_load (); 17731/* The GNU C library defines this for functions which it implements 17732 to always fail with ENOSYS. Some functions are actually named 17733 something starting with __ and the normal name is an alias. */ 17734#if defined (__stub_shl_load) || defined (__stub___shl_load) 17735choke me 17736#else 17737char (*f) () = shl_load; 17738#endif 17739#ifdef __cplusplus 17740} 17741#endif 17742 17743int 17744main () 17745{ 17746return f != shl_load; 17747 ; 17748 return 0; 17749} 17750_ACEOF 17751rm -f conftest.$ac_objext conftest$ac_exeext 17752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17753 (eval $ac_link) 2>conftest.er1 17754 ac_status=$? 17755 grep -v '^ *+' conftest.er1 >conftest.err 17756 rm -f conftest.er1 17757 cat conftest.err >&5 17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17759 (exit $ac_status); } && 17760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17762 (eval $ac_try) 2>&5 17763 ac_status=$? 17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17765 (exit $ac_status); }; } && 17766 { ac_try='test -s conftest$ac_exeext' 17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17768 (eval $ac_try) 2>&5 17769 ac_status=$? 17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17771 (exit $ac_status); }; }; then 17772 ac_cv_func_shl_load=yes 17773else 17774 echo "$as_me: failed program was:" >&5 17775sed 's/^/| /' conftest.$ac_ext >&5 17776 17777ac_cv_func_shl_load=no 17778fi 17779rm -f conftest.err conftest.$ac_objext \ 17780 conftest$ac_exeext conftest.$ac_ext 17781fi 17782echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17783echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17784if test $ac_cv_func_shl_load = yes; then 17785 lt_cv_dlopen="shl_load" 17786else 17787 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17789if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17790 echo $ECHO_N "(cached) $ECHO_C" >&6 17791else 17792 ac_check_lib_save_LIBS=$LIBS 17793LIBS="-ldld $LIBS" 17794cat >conftest.$ac_ext <<_ACEOF 17795/* confdefs.h. */ 17796_ACEOF 17797cat confdefs.h >>conftest.$ac_ext 17798cat >>conftest.$ac_ext <<_ACEOF 17799/* end confdefs.h. */ 17800 17801/* Override any gcc2 internal prototype to avoid an error. */ 17802#ifdef __cplusplus 17803extern "C" 17804#endif 17805/* We use char because int might match the return type of a gcc2 17806 builtin and then its argument prototype would still apply. */ 17807char shl_load (); 17808int 17809main () 17810{ 17811shl_load (); 17812 ; 17813 return 0; 17814} 17815_ACEOF 17816rm -f conftest.$ac_objext conftest$ac_exeext 17817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17818 (eval $ac_link) 2>conftest.er1 17819 ac_status=$? 17820 grep -v '^ *+' conftest.er1 >conftest.err 17821 rm -f conftest.er1 17822 cat conftest.err >&5 17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17824 (exit $ac_status); } && 17825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17827 (eval $ac_try) 2>&5 17828 ac_status=$? 17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17830 (exit $ac_status); }; } && 17831 { ac_try='test -s conftest$ac_exeext' 17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17833 (eval $ac_try) 2>&5 17834 ac_status=$? 17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17836 (exit $ac_status); }; }; then 17837 ac_cv_lib_dld_shl_load=yes 17838else 17839 echo "$as_me: failed program was:" >&5 17840sed 's/^/| /' conftest.$ac_ext >&5 17841 17842ac_cv_lib_dld_shl_load=no 17843fi 17844rm -f conftest.err conftest.$ac_objext \ 17845 conftest$ac_exeext conftest.$ac_ext 17846LIBS=$ac_check_lib_save_LIBS 17847fi 17848echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17849echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17850if test $ac_cv_lib_dld_shl_load = yes; then 17851 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17852else 17853 echo "$as_me:$LINENO: checking for dlopen" >&5 17854echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17855if test "${ac_cv_func_dlopen+set}" = set; then 17856 echo $ECHO_N "(cached) $ECHO_C" >&6 17857else 17858 cat >conftest.$ac_ext <<_ACEOF 17859/* confdefs.h. */ 17860_ACEOF 17861cat confdefs.h >>conftest.$ac_ext 17862cat >>conftest.$ac_ext <<_ACEOF 17863/* end confdefs.h. */ 17864/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17865 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17866#define dlopen innocuous_dlopen 17867 17868/* System header to define __stub macros and hopefully few prototypes, 17869 which can conflict with char dlopen (); below. 17870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17871 <limits.h> exists even on freestanding compilers. */ 17872 17873#ifdef __STDC__ 17874# include <limits.h> 17875#else 17876# include <assert.h> 17877#endif 17878 17879#undef dlopen 17880 17881/* Override any gcc2 internal prototype to avoid an error. */ 17882#ifdef __cplusplus 17883extern "C" 17884{ 17885#endif 17886/* We use char because int might match the return type of a gcc2 17887 builtin and then its argument prototype would still apply. */ 17888char dlopen (); 17889/* The GNU C library defines this for functions which it implements 17890 to always fail with ENOSYS. Some functions are actually named 17891 something starting with __ and the normal name is an alias. */ 17892#if defined (__stub_dlopen) || defined (__stub___dlopen) 17893choke me 17894#else 17895char (*f) () = dlopen; 17896#endif 17897#ifdef __cplusplus 17898} 17899#endif 17900 17901int 17902main () 17903{ 17904return f != dlopen; 17905 ; 17906 return 0; 17907} 17908_ACEOF 17909rm -f conftest.$ac_objext conftest$ac_exeext 17910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17911 (eval $ac_link) 2>conftest.er1 17912 ac_status=$? 17913 grep -v '^ *+' conftest.er1 >conftest.err 17914 rm -f conftest.er1 17915 cat conftest.err >&5 17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17917 (exit $ac_status); } && 17918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17920 (eval $ac_try) 2>&5 17921 ac_status=$? 17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17923 (exit $ac_status); }; } && 17924 { ac_try='test -s conftest$ac_exeext' 17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17926 (eval $ac_try) 2>&5 17927 ac_status=$? 17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17929 (exit $ac_status); }; }; then 17930 ac_cv_func_dlopen=yes 17931else 17932 echo "$as_me: failed program was:" >&5 17933sed 's/^/| /' conftest.$ac_ext >&5 17934 17935ac_cv_func_dlopen=no 17936fi 17937rm -f conftest.err conftest.$ac_objext \ 17938 conftest$ac_exeext conftest.$ac_ext 17939fi 17940echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17941echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17942if test $ac_cv_func_dlopen = yes; then 17943 lt_cv_dlopen="dlopen" 17944else 17945 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17946echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17947if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17948 echo $ECHO_N "(cached) $ECHO_C" >&6 17949else 17950 ac_check_lib_save_LIBS=$LIBS 17951LIBS="-ldl $LIBS" 17952cat >conftest.$ac_ext <<_ACEOF 17953/* confdefs.h. */ 17954_ACEOF 17955cat confdefs.h >>conftest.$ac_ext 17956cat >>conftest.$ac_ext <<_ACEOF 17957/* end confdefs.h. */ 17958 17959/* Override any gcc2 internal prototype to avoid an error. */ 17960#ifdef __cplusplus 17961extern "C" 17962#endif 17963/* We use char because int might match the return type of a gcc2 17964 builtin and then its argument prototype would still apply. */ 17965char dlopen (); 17966int 17967main () 17968{ 17969dlopen (); 17970 ; 17971 return 0; 17972} 17973_ACEOF 17974rm -f conftest.$ac_objext conftest$ac_exeext 17975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17976 (eval $ac_link) 2>conftest.er1 17977 ac_status=$? 17978 grep -v '^ *+' conftest.er1 >conftest.err 17979 rm -f conftest.er1 17980 cat conftest.err >&5 17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17982 (exit $ac_status); } && 17983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17985 (eval $ac_try) 2>&5 17986 ac_status=$? 17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17988 (exit $ac_status); }; } && 17989 { ac_try='test -s conftest$ac_exeext' 17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17991 (eval $ac_try) 2>&5 17992 ac_status=$? 17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17994 (exit $ac_status); }; }; then 17995 ac_cv_lib_dl_dlopen=yes 17996else 17997 echo "$as_me: failed program was:" >&5 17998sed 's/^/| /' conftest.$ac_ext >&5 17999 18000ac_cv_lib_dl_dlopen=no 18001fi 18002rm -f conftest.err conftest.$ac_objext \ 18003 conftest$ac_exeext conftest.$ac_ext 18004LIBS=$ac_check_lib_save_LIBS 18005fi 18006echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18007echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18008if test $ac_cv_lib_dl_dlopen = yes; then 18009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18010else 18011 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18012echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18013if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18014 echo $ECHO_N "(cached) $ECHO_C" >&6 18015else 18016 ac_check_lib_save_LIBS=$LIBS 18017LIBS="-lsvld $LIBS" 18018cat >conftest.$ac_ext <<_ACEOF 18019/* confdefs.h. */ 18020_ACEOF 18021cat confdefs.h >>conftest.$ac_ext 18022cat >>conftest.$ac_ext <<_ACEOF 18023/* end confdefs.h. */ 18024 18025/* Override any gcc2 internal prototype to avoid an error. */ 18026#ifdef __cplusplus 18027extern "C" 18028#endif 18029/* We use char because int might match the return type of a gcc2 18030 builtin and then its argument prototype would still apply. */ 18031char dlopen (); 18032int 18033main () 18034{ 18035dlopen (); 18036 ; 18037 return 0; 18038} 18039_ACEOF 18040rm -f conftest.$ac_objext conftest$ac_exeext 18041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18042 (eval $ac_link) 2>conftest.er1 18043 ac_status=$? 18044 grep -v '^ *+' conftest.er1 >conftest.err 18045 rm -f conftest.er1 18046 cat conftest.err >&5 18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18048 (exit $ac_status); } && 18049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18051 (eval $ac_try) 2>&5 18052 ac_status=$? 18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18054 (exit $ac_status); }; } && 18055 { ac_try='test -s conftest$ac_exeext' 18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18057 (eval $ac_try) 2>&5 18058 ac_status=$? 18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18060 (exit $ac_status); }; }; then 18061 ac_cv_lib_svld_dlopen=yes 18062else 18063 echo "$as_me: failed program was:" >&5 18064sed 's/^/| /' conftest.$ac_ext >&5 18065 18066ac_cv_lib_svld_dlopen=no 18067fi 18068rm -f conftest.err conftest.$ac_objext \ 18069 conftest$ac_exeext conftest.$ac_ext 18070LIBS=$ac_check_lib_save_LIBS 18071fi 18072echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18073echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18074if test $ac_cv_lib_svld_dlopen = yes; then 18075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18076else 18077 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18078echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18079if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18080 echo $ECHO_N "(cached) $ECHO_C" >&6 18081else 18082 ac_check_lib_save_LIBS=$LIBS 18083LIBS="-ldld $LIBS" 18084cat >conftest.$ac_ext <<_ACEOF 18085/* confdefs.h. */ 18086_ACEOF 18087cat confdefs.h >>conftest.$ac_ext 18088cat >>conftest.$ac_ext <<_ACEOF 18089/* end confdefs.h. */ 18090 18091/* Override any gcc2 internal prototype to avoid an error. */ 18092#ifdef __cplusplus 18093extern "C" 18094#endif 18095/* We use char because int might match the return type of a gcc2 18096 builtin and then its argument prototype would still apply. */ 18097char dld_link (); 18098int 18099main () 18100{ 18101dld_link (); 18102 ; 18103 return 0; 18104} 18105_ACEOF 18106rm -f conftest.$ac_objext conftest$ac_exeext 18107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18108 (eval $ac_link) 2>conftest.er1 18109 ac_status=$? 18110 grep -v '^ *+' conftest.er1 >conftest.err 18111 rm -f conftest.er1 18112 cat conftest.err >&5 18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18114 (exit $ac_status); } && 18115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18117 (eval $ac_try) 2>&5 18118 ac_status=$? 18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18120 (exit $ac_status); }; } && 18121 { ac_try='test -s conftest$ac_exeext' 18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18123 (eval $ac_try) 2>&5 18124 ac_status=$? 18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18126 (exit $ac_status); }; }; then 18127 ac_cv_lib_dld_dld_link=yes 18128else 18129 echo "$as_me: failed program was:" >&5 18130sed 's/^/| /' conftest.$ac_ext >&5 18131 18132ac_cv_lib_dld_dld_link=no 18133fi 18134rm -f conftest.err conftest.$ac_objext \ 18135 conftest$ac_exeext conftest.$ac_ext 18136LIBS=$ac_check_lib_save_LIBS 18137fi 18138echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18139echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18140if test $ac_cv_lib_dld_dld_link = yes; then 18141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18142fi 18143 18144 18145fi 18146 18147 18148fi 18149 18150 18151fi 18152 18153 18154fi 18155 18156 18157fi 18158 18159 ;; 18160 esac 18161 18162 if test "x$lt_cv_dlopen" != xno; then 18163 enable_dlopen=yes 18164 else 18165 enable_dlopen=no 18166 fi 18167 18168 case $lt_cv_dlopen in 18169 dlopen) 18170 save_CPPFLAGS="$CPPFLAGS" 18171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18172 18173 save_LDFLAGS="$LDFLAGS" 18174 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18175 18176 save_LIBS="$LIBS" 18177 LIBS="$lt_cv_dlopen_libs $LIBS" 18178 18179 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18180echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18181if test "${lt_cv_dlopen_self+set}" = set; then 18182 echo $ECHO_N "(cached) $ECHO_C" >&6 18183else 18184 if test "$cross_compiling" = yes; then : 18185 lt_cv_dlopen_self=cross 18186else 18187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18188 lt_status=$lt_dlunknown 18189 cat > conftest.$ac_ext <<EOF 18190#line 18190 "configure" 18191#include "confdefs.h" 18192 18193#if HAVE_DLFCN_H 18194#include <dlfcn.h> 18195#endif 18196 18197#include <stdio.h> 18198 18199#ifdef RTLD_GLOBAL 18200# define LT_DLGLOBAL RTLD_GLOBAL 18201#else 18202# ifdef DL_GLOBAL 18203# define LT_DLGLOBAL DL_GLOBAL 18204# else 18205# define LT_DLGLOBAL 0 18206# endif 18207#endif 18208 18209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18210 find out it does not work in some platform. */ 18211#ifndef LT_DLLAZY_OR_NOW 18212# ifdef RTLD_LAZY 18213# define LT_DLLAZY_OR_NOW RTLD_LAZY 18214# else 18215# ifdef DL_LAZY 18216# define LT_DLLAZY_OR_NOW DL_LAZY 18217# else 18218# ifdef RTLD_NOW 18219# define LT_DLLAZY_OR_NOW RTLD_NOW 18220# else 18221# ifdef DL_NOW 18222# define LT_DLLAZY_OR_NOW DL_NOW 18223# else 18224# define LT_DLLAZY_OR_NOW 0 18225# endif 18226# endif 18227# endif 18228# endif 18229#endif 18230 18231#ifdef __cplusplus 18232extern "C" void exit (int); 18233#endif 18234 18235void fnord() { int i=42;} 18236int main () 18237{ 18238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18239 int status = $lt_dlunknown; 18240 18241 if (self) 18242 { 18243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18245 /* dlclose (self); */ 18246 } 18247 18248 exit (status); 18249} 18250EOF 18251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18252 (eval $ac_link) 2>&5 18253 ac_status=$? 18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18256 (./conftest; exit; ) 2>/dev/null 18257 lt_status=$? 18258 case x$lt_status in 18259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18261 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18262 esac 18263 else : 18264 # compilation failed 18265 lt_cv_dlopen_self=no 18266 fi 18267fi 18268rm -fr conftest* 18269 18270 18271fi 18272echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18273echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18274 18275 if test "x$lt_cv_dlopen_self" = xyes; then 18276 LDFLAGS="$LDFLAGS $link_static_flag" 18277 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18278echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18279if test "${lt_cv_dlopen_self_static+set}" = set; then 18280 echo $ECHO_N "(cached) $ECHO_C" >&6 18281else 18282 if test "$cross_compiling" = yes; then : 18283 lt_cv_dlopen_self_static=cross 18284else 18285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18286 lt_status=$lt_dlunknown 18287 cat > conftest.$ac_ext <<EOF 18288#line 18288 "configure" 18289#include "confdefs.h" 18290 18291#if HAVE_DLFCN_H 18292#include <dlfcn.h> 18293#endif 18294 18295#include <stdio.h> 18296 18297#ifdef RTLD_GLOBAL 18298# define LT_DLGLOBAL RTLD_GLOBAL 18299#else 18300# ifdef DL_GLOBAL 18301# define LT_DLGLOBAL DL_GLOBAL 18302# else 18303# define LT_DLGLOBAL 0 18304# endif 18305#endif 18306 18307/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18308 find out it does not work in some platform. */ 18309#ifndef LT_DLLAZY_OR_NOW 18310# ifdef RTLD_LAZY 18311# define LT_DLLAZY_OR_NOW RTLD_LAZY 18312# else 18313# ifdef DL_LAZY 18314# define LT_DLLAZY_OR_NOW DL_LAZY 18315# else 18316# ifdef RTLD_NOW 18317# define LT_DLLAZY_OR_NOW RTLD_NOW 18318# else 18319# ifdef DL_NOW 18320# define LT_DLLAZY_OR_NOW DL_NOW 18321# else 18322# define LT_DLLAZY_OR_NOW 0 18323# endif 18324# endif 18325# endif 18326# endif 18327#endif 18328 18329#ifdef __cplusplus 18330extern "C" void exit (int); 18331#endif 18332 18333void fnord() { int i=42;} 18334int main () 18335{ 18336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18337 int status = $lt_dlunknown; 18338 18339 if (self) 18340 { 18341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18342 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18343 /* dlclose (self); */ 18344 } 18345 18346 exit (status); 18347} 18348EOF 18349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18350 (eval $ac_link) 2>&5 18351 ac_status=$? 18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18353 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18354 (./conftest; exit; ) 2>/dev/null 18355 lt_status=$? 18356 case x$lt_status in 18357 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18358 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18359 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18360 esac 18361 else : 18362 # compilation failed 18363 lt_cv_dlopen_self_static=no 18364 fi 18365fi 18366rm -fr conftest* 18367 18368 18369fi 18370echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18371echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18372 fi 18373 18374 CPPFLAGS="$save_CPPFLAGS" 18375 LDFLAGS="$save_LDFLAGS" 18376 LIBS="$save_LIBS" 18377 ;; 18378 esac 18379 18380 case $lt_cv_dlopen_self in 18381 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18382 *) enable_dlopen_self=unknown ;; 18383 esac 18384 18385 case $lt_cv_dlopen_self_static in 18386 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18387 *) enable_dlopen_self_static=unknown ;; 18388 esac 18389fi 18390 18391 18392# The else clause should only fire when bootstrapping the 18393# libtool distribution, otherwise you forgot to ship ltmain.sh 18394# with your package, and you will get complaints that there are 18395# no rules to generate ltmain.sh. 18396if test -f "$ltmain"; then 18397 # See if we are running on zsh, and set the options which allow our commands through 18398 # without removal of \ escapes. 18399 if test -n "${ZSH_VERSION+set}" ; then 18400 setopt NO_GLOB_SUBST 18401 fi 18402 # Now quote all the things that may contain metacharacters while being 18403 # careful not to overquote the AC_SUBSTed values. We take copies of the 18404 # variables and quote the copies for generation of the libtool script. 18405 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18406 SED SHELL STRIP \ 18407 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18408 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18409 deplibs_check_method reload_flag reload_cmds need_locks \ 18410 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18411 lt_cv_sys_global_symbol_to_c_name_address \ 18412 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18413 old_postinstall_cmds old_postuninstall_cmds \ 18414 compiler_GCJ \ 18415 CC_GCJ \ 18416 LD_GCJ \ 18417 lt_prog_compiler_wl_GCJ \ 18418 lt_prog_compiler_pic_GCJ \ 18419 lt_prog_compiler_static_GCJ \ 18420 lt_prog_compiler_no_builtin_flag_GCJ \ 18421 export_dynamic_flag_spec_GCJ \ 18422 thread_safe_flag_spec_GCJ \ 18423 whole_archive_flag_spec_GCJ \ 18424 enable_shared_with_static_runtimes_GCJ \ 18425 old_archive_cmds_GCJ \ 18426 old_archive_from_new_cmds_GCJ \ 18427 predep_objects_GCJ \ 18428 postdep_objects_GCJ \ 18429 predeps_GCJ \ 18430 postdeps_GCJ \ 18431 compiler_lib_search_path_GCJ \ 18432 archive_cmds_GCJ \ 18433 archive_expsym_cmds_GCJ \ 18434 postinstall_cmds_GCJ \ 18435 postuninstall_cmds_GCJ \ 18436 old_archive_from_expsyms_cmds_GCJ \ 18437 allow_undefined_flag_GCJ \ 18438 no_undefined_flag_GCJ \ 18439 export_symbols_cmds_GCJ \ 18440 hardcode_libdir_flag_spec_GCJ \ 18441 hardcode_libdir_flag_spec_ld_GCJ \ 18442 hardcode_libdir_separator_GCJ \ 18443 hardcode_automatic_GCJ \ 18444 module_cmds_GCJ \ 18445 module_expsym_cmds_GCJ \ 18446 lt_cv_prog_compiler_c_o_GCJ \ 18447 exclude_expsyms_GCJ \ 18448 include_expsyms_GCJ; do 18449 18450 case $var in 18451 old_archive_cmds_GCJ | \ 18452 old_archive_from_new_cmds_GCJ | \ 18453 archive_cmds_GCJ | \ 18454 archive_expsym_cmds_GCJ | \ 18455 module_cmds_GCJ | \ 18456 module_expsym_cmds_GCJ | \ 18457 old_archive_from_expsyms_cmds_GCJ | \ 18458 export_symbols_cmds_GCJ | \ 18459 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18460 postinstall_cmds | postuninstall_cmds | \ 18461 old_postinstall_cmds | old_postuninstall_cmds | \ 18462 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18463 # Double-quote double-evaled strings. 18464 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18465 ;; 18466 *) 18467 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18468 ;; 18469 esac 18470 done 18471 18472 case $lt_echo in 18473 *'\$0 --fallback-echo"') 18474 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18475 ;; 18476 esac 18477 18478cfgfile="$ofile" 18479 18480 cat <<__EOF__ >> "$cfgfile" 18481# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18482 18483# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18484 18485# Shell to use when invoking shell scripts. 18486SHELL=$lt_SHELL 18487 18488# Whether or not to build shared libraries. 18489build_libtool_libs=$enable_shared 18490 18491# Whether or not to build static libraries. 18492build_old_libs=$enable_static 18493 18494# Whether or not to add -lc for building shared libraries. 18495build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18496 18497# Whether or not to disallow shared libs when runtime libs are static 18498allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18499 18500# Whether or not to optimize for fast installation. 18501fast_install=$enable_fast_install 18502 18503# The host system. 18504host_alias=$host_alias 18505host=$host 18506 18507# An echo program that does not interpret backslashes. 18508echo=$lt_echo 18509 18510# The archiver. 18511AR=$lt_AR 18512AR_FLAGS=$lt_AR_FLAGS 18513 18514# A C compiler. 18515LTCC=$lt_LTCC 18516 18517# A language-specific compiler. 18518CC=$lt_compiler_GCJ 18519 18520# Is the compiler the GNU C compiler? 18521with_gcc=$GCC_GCJ 18522 18523# An ERE matcher. 18524EGREP=$lt_EGREP 18525 18526# The linker used to build libraries. 18527LD=$lt_LD_GCJ 18528 18529# Whether we need hard or soft links. 18530LN_S=$lt_LN_S 18531 18532# A BSD-compatible nm program. 18533NM=$lt_NM 18534 18535# A symbol stripping program 18536STRIP=$lt_STRIP 18537 18538# Used to examine libraries when file_magic_cmd begins "file" 18539MAGIC_CMD=$MAGIC_CMD 18540 18541# Used on cygwin: DLL creation program. 18542DLLTOOL="$DLLTOOL" 18543 18544# Used on cygwin: object dumper. 18545OBJDUMP="$OBJDUMP" 18546 18547# Used on cygwin: assembler. 18548AS="$AS" 18549 18550# The name of the directory that contains temporary libtool files. 18551objdir=$objdir 18552 18553# How to create reloadable object files. 18554reload_flag=$lt_reload_flag 18555reload_cmds=$lt_reload_cmds 18556 18557# How to pass a linker flag through the compiler. 18558wl=$lt_lt_prog_compiler_wl_GCJ 18559 18560# Object file suffix (normally "o"). 18561objext="$ac_objext" 18562 18563# Old archive suffix (normally "a"). 18564libext="$libext" 18565 18566# Shared library suffix (normally ".so"). 18567shrext_cmds='$shrext_cmds' 18568 18569# Executable file suffix (normally ""). 18570exeext="$exeext" 18571 18572# Additional compiler flags for building library objects. 18573pic_flag=$lt_lt_prog_compiler_pic_GCJ 18574pic_mode=$pic_mode 18575 18576# What is the maximum length of a command? 18577max_cmd_len=$lt_cv_sys_max_cmd_len 18578 18579# Does compiler simultaneously support -c and -o options? 18580compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18581 18582# Must we lock files when doing compilation ? 18583need_locks=$lt_need_locks 18584 18585# Do we need the lib prefix for modules? 18586need_lib_prefix=$need_lib_prefix 18587 18588# Do we need a version for libraries? 18589need_version=$need_version 18590 18591# Whether dlopen is supported. 18592dlopen_support=$enable_dlopen 18593 18594# Whether dlopen of programs is supported. 18595dlopen_self=$enable_dlopen_self 18596 18597# Whether dlopen of statically linked programs is supported. 18598dlopen_self_static=$enable_dlopen_self_static 18599 18600# Compiler flag to prevent dynamic linking. 18601link_static_flag=$lt_lt_prog_compiler_static_GCJ 18602 18603# Compiler flag to turn off builtin functions. 18604no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18605 18606# Compiler flag to allow reflexive dlopens. 18607export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18608 18609# Compiler flag to generate shared objects directly from archives. 18610whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18611 18612# Compiler flag to generate thread-safe objects. 18613thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18614 18615# Library versioning type. 18616version_type=$version_type 18617 18618# Format of library name prefix. 18619libname_spec=$lt_libname_spec 18620 18621# List of archive names. First name is the real one, the rest are links. 18622# The last name is the one that the linker finds with -lNAME. 18623library_names_spec=$lt_library_names_spec 18624 18625# The coded name of the library, if different from the real name. 18626soname_spec=$lt_soname_spec 18627 18628# Commands used to build and install an old-style archive. 18629RANLIB=$lt_RANLIB 18630old_archive_cmds=$lt_old_archive_cmds_GCJ 18631old_postinstall_cmds=$lt_old_postinstall_cmds 18632old_postuninstall_cmds=$lt_old_postuninstall_cmds 18633 18634# Create an old-style archive from a shared archive. 18635old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18636 18637# Create a temporary old-style archive to link instead of a shared archive. 18638old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18639 18640# Commands used to build and install a shared archive. 18641archive_cmds=$lt_archive_cmds_GCJ 18642archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18643postinstall_cmds=$lt_postinstall_cmds 18644postuninstall_cmds=$lt_postuninstall_cmds 18645 18646# Commands used to build a loadable module (assumed same as above if empty) 18647module_cmds=$lt_module_cmds_GCJ 18648module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18649 18650# Commands to strip libraries. 18651old_striplib=$lt_old_striplib 18652striplib=$lt_striplib 18653 18654# Dependencies to place before the objects being linked to create a 18655# shared library. 18656predep_objects=$lt_predep_objects_GCJ 18657 18658# Dependencies to place after the objects being linked to create a 18659# shared library. 18660postdep_objects=$lt_postdep_objects_GCJ 18661 18662# Dependencies to place before the objects being linked to create a 18663# shared library. 18664predeps=$lt_predeps_GCJ 18665 18666# Dependencies to place after the objects being linked to create a 18667# shared library. 18668postdeps=$lt_postdeps_GCJ 18669 18670# The library search path used internally by the compiler when linking 18671# a shared library. 18672compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18673 18674# Method to check whether dependent libraries are shared objects. 18675deplibs_check_method=$lt_deplibs_check_method 18676 18677# Command to use when deplibs_check_method == file_magic. 18678file_magic_cmd=$lt_file_magic_cmd 18679 18680# Flag that allows shared libraries with undefined symbols to be built. 18681allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18682 18683# Flag that forces no undefined symbols. 18684no_undefined_flag=$lt_no_undefined_flag_GCJ 18685 18686# Commands used to finish a libtool library installation in a directory. 18687finish_cmds=$lt_finish_cmds 18688 18689# Same as above, but a single script fragment to be evaled but not shown. 18690finish_eval=$lt_finish_eval 18691 18692# Take the output of nm and produce a listing of raw symbols and C names. 18693global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18694 18695# Transform the output of nm in a proper C declaration 18696global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18697 18698# Transform the output of nm in a C name address pair 18699global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18700 18701# This is the shared library runtime path variable. 18702runpath_var=$runpath_var 18703 18704# This is the shared library path variable. 18705shlibpath_var=$shlibpath_var 18706 18707# Is shlibpath searched before the hard-coded library search path? 18708shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18709 18710# How to hardcode a shared library path into an executable. 18711hardcode_action=$hardcode_action_GCJ 18712 18713# Whether we should hardcode library paths into libraries. 18714hardcode_into_libs=$hardcode_into_libs 18715 18716# Flag to hardcode \$libdir into a binary during linking. 18717# This must work even if \$libdir does not exist. 18718hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18719 18720# If ld is used when linking, flag to hardcode \$libdir into 18721# a binary during linking. This must work even if \$libdir does 18722# not exist. 18723hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18724 18725# Whether we need a single -rpath flag with a separated argument. 18726hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18727 18728# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18729# resulting binary. 18730hardcode_direct=$hardcode_direct_GCJ 18731 18732# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18733# resulting binary. 18734hardcode_minus_L=$hardcode_minus_L_GCJ 18735 18736# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18737# the resulting binary. 18738hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18739 18740# Set to yes if building a shared library automatically hardcodes DIR into the library 18741# and all subsequent libraries and executables linked against it. 18742hardcode_automatic=$hardcode_automatic_GCJ 18743 18744# Variables whose values should be saved in libtool wrapper scripts and 18745# restored at relink time. 18746variables_saved_for_relink="$variables_saved_for_relink" 18747 18748# Whether libtool must link a program against all its dependency libraries. 18749link_all_deplibs=$link_all_deplibs_GCJ 18750 18751# Compile-time system search path for libraries 18752sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18753 18754# Run-time system search path for libraries 18755sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18756 18757# Fix the shell variable \$srcfile for the compiler. 18758fix_srcfile_path="$fix_srcfile_path_GCJ" 18759 18760# Set to yes if exported symbols are required. 18761always_export_symbols=$always_export_symbols_GCJ 18762 18763# The commands to list exported symbols. 18764export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18765 18766# The commands to extract the exported symbol list from a shared archive. 18767extract_expsyms_cmds=$lt_extract_expsyms_cmds 18768 18769# Symbols that should not be listed in the preloaded symbols. 18770exclude_expsyms=$lt_exclude_expsyms_GCJ 18771 18772# Symbols that must always be exported. 18773include_expsyms=$lt_include_expsyms_GCJ 18774 18775# ### END LIBTOOL TAG CONFIG: $tagname 18776 18777__EOF__ 18778 18779 18780else 18781 # If there is no Makefile yet, we rely on a make rule to execute 18782 # `config.status --recheck' to rerun these tests and create the 18783 # libtool script then. 18784 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18785 if test -f "$ltmain_in"; then 18786 test -f Makefile && make "$ltmain" 18787 fi 18788fi 18789 18790 18791ac_ext=c 18792ac_cpp='$CPP $CPPFLAGS' 18793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18795ac_compiler_gnu=$ac_cv_c_compiler_gnu 18796 18797CC="$lt_save_CC" 18798 18799 else 18800 tagname="" 18801 fi 18802 ;; 18803 18804 RC) 18805 18806 18807 18808# Source file extension for RC test sources. 18809ac_ext=rc 18810 18811# Object file extension for compiled RC test sources. 18812objext=o 18813objext_RC=$objext 18814 18815# Code to be used in simple compile tests 18816lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18817 18818# Code to be used in simple link tests 18819lt_simple_link_test_code="$lt_simple_compile_test_code" 18820 18821# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18822 18823# If no C compiler was specified, use CC. 18824LTCC=${LTCC-"$CC"} 18825 18826# Allow CC to be a program name with arguments. 18827compiler=$CC 18828 18829 18830# Allow CC to be a program name with arguments. 18831lt_save_CC="$CC" 18832CC=${RC-"windres"} 18833compiler=$CC 18834compiler_RC=$CC 18835lt_cv_prog_compiler_c_o_RC=yes 18836 18837# The else clause should only fire when bootstrapping the 18838# libtool distribution, otherwise you forgot to ship ltmain.sh 18839# with your package, and you will get complaints that there are 18840# no rules to generate ltmain.sh. 18841if test -f "$ltmain"; then 18842 # See if we are running on zsh, and set the options which allow our commands through 18843 # without removal of \ escapes. 18844 if test -n "${ZSH_VERSION+set}" ; then 18845 setopt NO_GLOB_SUBST 18846 fi 18847 # Now quote all the things that may contain metacharacters while being 18848 # careful not to overquote the AC_SUBSTed values. We take copies of the 18849 # variables and quote the copies for generation of the libtool script. 18850 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18851 SED SHELL STRIP \ 18852 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18853 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18854 deplibs_check_method reload_flag reload_cmds need_locks \ 18855 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18856 lt_cv_sys_global_symbol_to_c_name_address \ 18857 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18858 old_postinstall_cmds old_postuninstall_cmds \ 18859 compiler_RC \ 18860 CC_RC \ 18861 LD_RC \ 18862 lt_prog_compiler_wl_RC \ 18863 lt_prog_compiler_pic_RC \ 18864 lt_prog_compiler_static_RC \ 18865 lt_prog_compiler_no_builtin_flag_RC \ 18866 export_dynamic_flag_spec_RC \ 18867 thread_safe_flag_spec_RC \ 18868 whole_archive_flag_spec_RC \ 18869 enable_shared_with_static_runtimes_RC \ 18870 old_archive_cmds_RC \ 18871 old_archive_from_new_cmds_RC \ 18872 predep_objects_RC \ 18873 postdep_objects_RC \ 18874 predeps_RC \ 18875 postdeps_RC \ 18876 compiler_lib_search_path_RC \ 18877 archive_cmds_RC \ 18878 archive_expsym_cmds_RC \ 18879 postinstall_cmds_RC \ 18880 postuninstall_cmds_RC \ 18881 old_archive_from_expsyms_cmds_RC \ 18882 allow_undefined_flag_RC \ 18883 no_undefined_flag_RC \ 18884 export_symbols_cmds_RC \ 18885 hardcode_libdir_flag_spec_RC \ 18886 hardcode_libdir_flag_spec_ld_RC \ 18887 hardcode_libdir_separator_RC \ 18888 hardcode_automatic_RC \ 18889 module_cmds_RC \ 18890 module_expsym_cmds_RC \ 18891 lt_cv_prog_compiler_c_o_RC \ 18892 exclude_expsyms_RC \ 18893 include_expsyms_RC; do 18894 18895 case $var in 18896 old_archive_cmds_RC | \ 18897 old_archive_from_new_cmds_RC | \ 18898 archive_cmds_RC | \ 18899 archive_expsym_cmds_RC | \ 18900 module_cmds_RC | \ 18901 module_expsym_cmds_RC | \ 18902 old_archive_from_expsyms_cmds_RC | \ 18903 export_symbols_cmds_RC | \ 18904 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18905 postinstall_cmds | postuninstall_cmds | \ 18906 old_postinstall_cmds | old_postuninstall_cmds | \ 18907 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18908 # Double-quote double-evaled strings. 18909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18910 ;; 18911 *) 18912 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18913 ;; 18914 esac 18915 done 18916 18917 case $lt_echo in 18918 *'\$0 --fallback-echo"') 18919 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18920 ;; 18921 esac 18922 18923cfgfile="$ofile" 18924 18925 cat <<__EOF__ >> "$cfgfile" 18926# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18927 18928# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18929 18930# Shell to use when invoking shell scripts. 18931SHELL=$lt_SHELL 18932 18933# Whether or not to build shared libraries. 18934build_libtool_libs=$enable_shared 18935 18936# Whether or not to build static libraries. 18937build_old_libs=$enable_static 18938 18939# Whether or not to add -lc for building shared libraries. 18940build_libtool_need_lc=$archive_cmds_need_lc_RC 18941 18942# Whether or not to disallow shared libs when runtime libs are static 18943allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18944 18945# Whether or not to optimize for fast installation. 18946fast_install=$enable_fast_install 18947 18948# The host system. 18949host_alias=$host_alias 18950host=$host 18951 18952# An echo program that does not interpret backslashes. 18953echo=$lt_echo 18954 18955# The archiver. 18956AR=$lt_AR 18957AR_FLAGS=$lt_AR_FLAGS 18958 18959# A C compiler. 18960LTCC=$lt_LTCC 18961 18962# A language-specific compiler. 18963CC=$lt_compiler_RC 18964 18965# Is the compiler the GNU C compiler? 18966with_gcc=$GCC_RC 18967 18968# An ERE matcher. 18969EGREP=$lt_EGREP 18970 18971# The linker used to build libraries. 18972LD=$lt_LD_RC 18973 18974# Whether we need hard or soft links. 18975LN_S=$lt_LN_S 18976 18977# A BSD-compatible nm program. 18978NM=$lt_NM 18979 18980# A symbol stripping program 18981STRIP=$lt_STRIP 18982 18983# Used to examine libraries when file_magic_cmd begins "file" 18984MAGIC_CMD=$MAGIC_CMD 18985 18986# Used on cygwin: DLL creation program. 18987DLLTOOL="$DLLTOOL" 18988 18989# Used on cygwin: object dumper. 18990OBJDUMP="$OBJDUMP" 18991 18992# Used on cygwin: assembler. 18993AS="$AS" 18994 18995# The name of the directory that contains temporary libtool files. 18996objdir=$objdir 18997 18998# How to create reloadable object files. 18999reload_flag=$lt_reload_flag 19000reload_cmds=$lt_reload_cmds 19001 19002# How to pass a linker flag through the compiler. 19003wl=$lt_lt_prog_compiler_wl_RC 19004 19005# Object file suffix (normally "o"). 19006objext="$ac_objext" 19007 19008# Old archive suffix (normally "a"). 19009libext="$libext" 19010 19011# Shared library suffix (normally ".so"). 19012shrext_cmds='$shrext_cmds' 19013 19014# Executable file suffix (normally ""). 19015exeext="$exeext" 19016 19017# Additional compiler flags for building library objects. 19018pic_flag=$lt_lt_prog_compiler_pic_RC 19019pic_mode=$pic_mode 19020 19021# What is the maximum length of a command? 19022max_cmd_len=$lt_cv_sys_max_cmd_len 19023 19024# Does compiler simultaneously support -c and -o options? 19025compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19026 19027# Must we lock files when doing compilation ? 19028need_locks=$lt_need_locks 19029 19030# Do we need the lib prefix for modules? 19031need_lib_prefix=$need_lib_prefix 19032 19033# Do we need a version for libraries? 19034need_version=$need_version 19035 19036# Whether dlopen is supported. 19037dlopen_support=$enable_dlopen 19038 19039# Whether dlopen of programs is supported. 19040dlopen_self=$enable_dlopen_self 19041 19042# Whether dlopen of statically linked programs is supported. 19043dlopen_self_static=$enable_dlopen_self_static 19044 19045# Compiler flag to prevent dynamic linking. 19046link_static_flag=$lt_lt_prog_compiler_static_RC 19047 19048# Compiler flag to turn off builtin functions. 19049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19050 19051# Compiler flag to allow reflexive dlopens. 19052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19053 19054# Compiler flag to generate shared objects directly from archives. 19055whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19056 19057# Compiler flag to generate thread-safe objects. 19058thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19059 19060# Library versioning type. 19061version_type=$version_type 19062 19063# Format of library name prefix. 19064libname_spec=$lt_libname_spec 19065 19066# List of archive names. First name is the real one, the rest are links. 19067# The last name is the one that the linker finds with -lNAME. 19068library_names_spec=$lt_library_names_spec 19069 19070# The coded name of the library, if different from the real name. 19071soname_spec=$lt_soname_spec 19072 19073# Commands used to build and install an old-style archive. 19074RANLIB=$lt_RANLIB 19075old_archive_cmds=$lt_old_archive_cmds_RC 19076old_postinstall_cmds=$lt_old_postinstall_cmds 19077old_postuninstall_cmds=$lt_old_postuninstall_cmds 19078 19079# Create an old-style archive from a shared archive. 19080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19081 19082# Create a temporary old-style archive to link instead of a shared archive. 19083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19084 19085# Commands used to build and install a shared archive. 19086archive_cmds=$lt_archive_cmds_RC 19087archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19088postinstall_cmds=$lt_postinstall_cmds 19089postuninstall_cmds=$lt_postuninstall_cmds 19090 19091# Commands used to build a loadable module (assumed same as above if empty) 19092module_cmds=$lt_module_cmds_RC 19093module_expsym_cmds=$lt_module_expsym_cmds_RC 19094 19095# Commands to strip libraries. 19096old_striplib=$lt_old_striplib 19097striplib=$lt_striplib 19098 19099# Dependencies to place before the objects being linked to create a 19100# shared library. 19101predep_objects=$lt_predep_objects_RC 19102 19103# Dependencies to place after the objects being linked to create a 19104# shared library. 19105postdep_objects=$lt_postdep_objects_RC 19106 19107# Dependencies to place before the objects being linked to create a 19108# shared library. 19109predeps=$lt_predeps_RC 19110 19111# Dependencies to place after the objects being linked to create a 19112# shared library. 19113postdeps=$lt_postdeps_RC 19114 19115# The library search path used internally by the compiler when linking 19116# a shared library. 19117compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19118 19119# Method to check whether dependent libraries are shared objects. 19120deplibs_check_method=$lt_deplibs_check_method 19121 19122# Command to use when deplibs_check_method == file_magic. 19123file_magic_cmd=$lt_file_magic_cmd 19124 19125# Flag that allows shared libraries with undefined symbols to be built. 19126allow_undefined_flag=$lt_allow_undefined_flag_RC 19127 19128# Flag that forces no undefined symbols. 19129no_undefined_flag=$lt_no_undefined_flag_RC 19130 19131# Commands used to finish a libtool library installation in a directory. 19132finish_cmds=$lt_finish_cmds 19133 19134# Same as above, but a single script fragment to be evaled but not shown. 19135finish_eval=$lt_finish_eval 19136 19137# Take the output of nm and produce a listing of raw symbols and C names. 19138global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19139 19140# Transform the output of nm in a proper C declaration 19141global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19142 19143# Transform the output of nm in a C name address pair 19144global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19145 19146# This is the shared library runtime path variable. 19147runpath_var=$runpath_var 19148 19149# This is the shared library path variable. 19150shlibpath_var=$shlibpath_var 19151 19152# Is shlibpath searched before the hard-coded library search path? 19153shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19154 19155# How to hardcode a shared library path into an executable. 19156hardcode_action=$hardcode_action_RC 19157 19158# Whether we should hardcode library paths into libraries. 19159hardcode_into_libs=$hardcode_into_libs 19160 19161# Flag to hardcode \$libdir into a binary during linking. 19162# This must work even if \$libdir does not exist. 19163hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19164 19165# If ld is used when linking, flag to hardcode \$libdir into 19166# a binary during linking. This must work even if \$libdir does 19167# not exist. 19168hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19169 19170# Whether we need a single -rpath flag with a separated argument. 19171hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19172 19173# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19174# resulting binary. 19175hardcode_direct=$hardcode_direct_RC 19176 19177# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19178# resulting binary. 19179hardcode_minus_L=$hardcode_minus_L_RC 19180 19181# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19182# the resulting binary. 19183hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19184 19185# Set to yes if building a shared library automatically hardcodes DIR into the library 19186# and all subsequent libraries and executables linked against it. 19187hardcode_automatic=$hardcode_automatic_RC 19188 19189# Variables whose values should be saved in libtool wrapper scripts and 19190# restored at relink time. 19191variables_saved_for_relink="$variables_saved_for_relink" 19192 19193# Whether libtool must link a program against all its dependency libraries. 19194link_all_deplibs=$link_all_deplibs_RC 19195 19196# Compile-time system search path for libraries 19197sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19198 19199# Run-time system search path for libraries 19200sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19201 19202# Fix the shell variable \$srcfile for the compiler. 19203fix_srcfile_path="$fix_srcfile_path_RC" 19204 19205# Set to yes if exported symbols are required. 19206always_export_symbols=$always_export_symbols_RC 19207 19208# The commands to list exported symbols. 19209export_symbols_cmds=$lt_export_symbols_cmds_RC 19210 19211# The commands to extract the exported symbol list from a shared archive. 19212extract_expsyms_cmds=$lt_extract_expsyms_cmds 19213 19214# Symbols that should not be listed in the preloaded symbols. 19215exclude_expsyms=$lt_exclude_expsyms_RC 19216 19217# Symbols that must always be exported. 19218include_expsyms=$lt_include_expsyms_RC 19219 19220# ### END LIBTOOL TAG CONFIG: $tagname 19221 19222__EOF__ 19223 19224 19225else 19226 # If there is no Makefile yet, we rely on a make rule to execute 19227 # `config.status --recheck' to rerun these tests and create the 19228 # libtool script then. 19229 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19230 if test -f "$ltmain_in"; then 19231 test -f Makefile && make "$ltmain" 19232 fi 19233fi 19234 19235 19236ac_ext=c 19237ac_cpp='$CPP $CPPFLAGS' 19238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19240ac_compiler_gnu=$ac_cv_c_compiler_gnu 19241 19242CC="$lt_save_CC" 19243 19244 ;; 19245 19246 *) 19247 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19248echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19249 { (exit 1); exit 1; }; } 19250 ;; 19251 esac 19252 19253 # Append the new tag name to the list of available tags. 19254 if test -n "$tagname" ; then 19255 available_tags="$available_tags $tagname" 19256 fi 19257 fi 19258 done 19259 IFS="$lt_save_ifs" 19260 19261 # Now substitute the updated list of available tags. 19262 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19263 mv "${ofile}T" "$ofile" 19264 chmod +x "$ofile" 19265 else 19266 rm -f "${ofile}T" 19267 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19268echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19269 { (exit 1); exit 1; }; } 19270 fi 19271fi 19272 19273 19274 19275# This can be used to rebuild libtool when needed 19276LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19277 19278# Always use our own libtool. 19279LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19280 19281# Prevent multiple expansion 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302ac_ext=c 19303ac_cpp='$CPP $CPPFLAGS' 19304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19306ac_compiler_gnu=$ac_cv_c_compiler_gnu 19307if test -n "$ac_tool_prefix"; then 19308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19309set dummy ${ac_tool_prefix}gcc; ac_word=$2 19310echo "$as_me:$LINENO: checking for $ac_word" >&5 19311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19312if test "${ac_cv_prog_CC+set}" = set; then 19313 echo $ECHO_N "(cached) $ECHO_C" >&6 19314else 19315 if test -n "$CC"; then 19316 ac_cv_prog_CC="$CC" # Let the user override the test. 19317else 19318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19319for as_dir in $PATH 19320do 19321 IFS=$as_save_IFS 19322 test -z "$as_dir" && as_dir=. 19323 for ac_exec_ext in '' $ac_executable_extensions; do 19324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19325 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19327 break 2 19328 fi 19329done 19330done 19331 19332fi 19333fi 19334CC=$ac_cv_prog_CC 19335if test -n "$CC"; then 19336 echo "$as_me:$LINENO: result: $CC" >&5 19337echo "${ECHO_T}$CC" >&6 19338else 19339 echo "$as_me:$LINENO: result: no" >&5 19340echo "${ECHO_T}no" >&6 19341fi 19342 19343fi 19344if test -z "$ac_cv_prog_CC"; then 19345 ac_ct_CC=$CC 19346 # Extract the first word of "gcc", so it can be a program name with args. 19347set dummy gcc; ac_word=$2 19348echo "$as_me:$LINENO: checking for $ac_word" >&5 19349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19350if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19351 echo $ECHO_N "(cached) $ECHO_C" >&6 19352else 19353 if test -n "$ac_ct_CC"; then 19354 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19355else 19356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19357for as_dir in $PATH 19358do 19359 IFS=$as_save_IFS 19360 test -z "$as_dir" && as_dir=. 19361 for ac_exec_ext in '' $ac_executable_extensions; do 19362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19363 ac_cv_prog_ac_ct_CC="gcc" 19364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19365 break 2 19366 fi 19367done 19368done 19369 19370fi 19371fi 19372ac_ct_CC=$ac_cv_prog_ac_ct_CC 19373if test -n "$ac_ct_CC"; then 19374 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19375echo "${ECHO_T}$ac_ct_CC" >&6 19376else 19377 echo "$as_me:$LINENO: result: no" >&5 19378echo "${ECHO_T}no" >&6 19379fi 19380 19381 CC=$ac_ct_CC 19382else 19383 CC="$ac_cv_prog_CC" 19384fi 19385 19386if test -z "$CC"; then 19387 if test -n "$ac_tool_prefix"; then 19388 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19389set dummy ${ac_tool_prefix}cc; ac_word=$2 19390echo "$as_me:$LINENO: checking for $ac_word" >&5 19391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19392if test "${ac_cv_prog_CC+set}" = set; then 19393 echo $ECHO_N "(cached) $ECHO_C" >&6 19394else 19395 if test -n "$CC"; then 19396 ac_cv_prog_CC="$CC" # Let the user override the test. 19397else 19398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19399for as_dir in $PATH 19400do 19401 IFS=$as_save_IFS 19402 test -z "$as_dir" && as_dir=. 19403 for ac_exec_ext in '' $ac_executable_extensions; do 19404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19405 ac_cv_prog_CC="${ac_tool_prefix}cc" 19406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19407 break 2 19408 fi 19409done 19410done 19411 19412fi 19413fi 19414CC=$ac_cv_prog_CC 19415if test -n "$CC"; then 19416 echo "$as_me:$LINENO: result: $CC" >&5 19417echo "${ECHO_T}$CC" >&6 19418else 19419 echo "$as_me:$LINENO: result: no" >&5 19420echo "${ECHO_T}no" >&6 19421fi 19422 19423fi 19424if test -z "$ac_cv_prog_CC"; then 19425 ac_ct_CC=$CC 19426 # Extract the first word of "cc", so it can be a program name with args. 19427set dummy cc; ac_word=$2 19428echo "$as_me:$LINENO: checking for $ac_word" >&5 19429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19430if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19431 echo $ECHO_N "(cached) $ECHO_C" >&6 19432else 19433 if test -n "$ac_ct_CC"; then 19434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19435else 19436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19437for as_dir in $PATH 19438do 19439 IFS=$as_save_IFS 19440 test -z "$as_dir" && as_dir=. 19441 for ac_exec_ext in '' $ac_executable_extensions; do 19442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19443 ac_cv_prog_ac_ct_CC="cc" 19444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19445 break 2 19446 fi 19447done 19448done 19449 19450fi 19451fi 19452ac_ct_CC=$ac_cv_prog_ac_ct_CC 19453if test -n "$ac_ct_CC"; then 19454 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19455echo "${ECHO_T}$ac_ct_CC" >&6 19456else 19457 echo "$as_me:$LINENO: result: no" >&5 19458echo "${ECHO_T}no" >&6 19459fi 19460 19461 CC=$ac_ct_CC 19462else 19463 CC="$ac_cv_prog_CC" 19464fi 19465 19466fi 19467if test -z "$CC"; then 19468 # Extract the first word of "cc", so it can be a program name with args. 19469set dummy cc; ac_word=$2 19470echo "$as_me:$LINENO: checking for $ac_word" >&5 19471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19472if test "${ac_cv_prog_CC+set}" = set; then 19473 echo $ECHO_N "(cached) $ECHO_C" >&6 19474else 19475 if test -n "$CC"; then 19476 ac_cv_prog_CC="$CC" # Let the user override the test. 19477else 19478 ac_prog_rejected=no 19479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19480for as_dir in $PATH 19481do 19482 IFS=$as_save_IFS 19483 test -z "$as_dir" && as_dir=. 19484 for ac_exec_ext in '' $ac_executable_extensions; do 19485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19487 ac_prog_rejected=yes 19488 continue 19489 fi 19490 ac_cv_prog_CC="cc" 19491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19492 break 2 19493 fi 19494done 19495done 19496 19497if test $ac_prog_rejected = yes; then 19498 # We found a bogon in the path, so make sure we never use it. 19499 set dummy $ac_cv_prog_CC 19500 shift 19501 if test $# != 0; then 19502 # We chose a different compiler from the bogus one. 19503 # However, it has the same basename, so the bogon will be chosen 19504 # first if we set CC to just the basename; use the full file name. 19505 shift 19506 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19507 fi 19508fi 19509fi 19510fi 19511CC=$ac_cv_prog_CC 19512if test -n "$CC"; then 19513 echo "$as_me:$LINENO: result: $CC" >&5 19514echo "${ECHO_T}$CC" >&6 19515else 19516 echo "$as_me:$LINENO: result: no" >&5 19517echo "${ECHO_T}no" >&6 19518fi 19519 19520fi 19521if test -z "$CC"; then 19522 if test -n "$ac_tool_prefix"; then 19523 for ac_prog in cl 19524 do 19525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19526set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19527echo "$as_me:$LINENO: checking for $ac_word" >&5 19528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19529if test "${ac_cv_prog_CC+set}" = set; then 19530 echo $ECHO_N "(cached) $ECHO_C" >&6 19531else 19532 if test -n "$CC"; then 19533 ac_cv_prog_CC="$CC" # Let the user override the test. 19534else 19535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19536for as_dir in $PATH 19537do 19538 IFS=$as_save_IFS 19539 test -z "$as_dir" && as_dir=. 19540 for ac_exec_ext in '' $ac_executable_extensions; do 19541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19544 break 2 19545 fi 19546done 19547done 19548 19549fi 19550fi 19551CC=$ac_cv_prog_CC 19552if test -n "$CC"; then 19553 echo "$as_me:$LINENO: result: $CC" >&5 19554echo "${ECHO_T}$CC" >&6 19555else 19556 echo "$as_me:$LINENO: result: no" >&5 19557echo "${ECHO_T}no" >&6 19558fi 19559 19560 test -n "$CC" && break 19561 done 19562fi 19563if test -z "$CC"; then 19564 ac_ct_CC=$CC 19565 for ac_prog in cl 19566do 19567 # Extract the first word of "$ac_prog", so it can be a program name with args. 19568set dummy $ac_prog; ac_word=$2 19569echo "$as_me:$LINENO: checking for $ac_word" >&5 19570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19571if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19572 echo $ECHO_N "(cached) $ECHO_C" >&6 19573else 19574 if test -n "$ac_ct_CC"; then 19575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19576else 19577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19578for as_dir in $PATH 19579do 19580 IFS=$as_save_IFS 19581 test -z "$as_dir" && as_dir=. 19582 for ac_exec_ext in '' $ac_executable_extensions; do 19583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19584 ac_cv_prog_ac_ct_CC="$ac_prog" 19585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19586 break 2 19587 fi 19588done 19589done 19590 19591fi 19592fi 19593ac_ct_CC=$ac_cv_prog_ac_ct_CC 19594if test -n "$ac_ct_CC"; then 19595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19596echo "${ECHO_T}$ac_ct_CC" >&6 19597else 19598 echo "$as_me:$LINENO: result: no" >&5 19599echo "${ECHO_T}no" >&6 19600fi 19601 19602 test -n "$ac_ct_CC" && break 19603done 19604 19605 CC=$ac_ct_CC 19606fi 19607 19608fi 19609 19610 19611test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19612See \`config.log' for more details." >&5 19613echo "$as_me: error: no acceptable C compiler found in \$PATH 19614See \`config.log' for more details." >&2;} 19615 { (exit 1); exit 1; }; } 19616 19617# Provide some information about the compiler. 19618echo "$as_me:$LINENO:" \ 19619 "checking for C compiler version" >&5 19620ac_compiler=`set X $ac_compile; echo $2` 19621{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 19622 (eval $ac_compiler --version </dev/null >&5) 2>&5 19623 ac_status=$? 19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19625 (exit $ac_status); } 19626{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 19627 (eval $ac_compiler -v </dev/null >&5) 2>&5 19628 ac_status=$? 19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19630 (exit $ac_status); } 19631{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 19632 (eval $ac_compiler -V </dev/null >&5) 2>&5 19633 ac_status=$? 19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19635 (exit $ac_status); } 19636 19637echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19638echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 19639if test "${ac_cv_c_compiler_gnu+set}" = set; then 19640 echo $ECHO_N "(cached) $ECHO_C" >&6 19641else 19642 cat >conftest.$ac_ext <<_ACEOF 19643/* confdefs.h. */ 19644_ACEOF 19645cat confdefs.h >>conftest.$ac_ext 19646cat >>conftest.$ac_ext <<_ACEOF 19647/* end confdefs.h. */ 19648 19649int 19650main () 19651{ 19652#ifndef __GNUC__ 19653 choke me 19654#endif 19655 19656 ; 19657 return 0; 19658} 19659_ACEOF 19660rm -f conftest.$ac_objext 19661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19662 (eval $ac_compile) 2>conftest.er1 19663 ac_status=$? 19664 grep -v '^ *+' conftest.er1 >conftest.err 19665 rm -f conftest.er1 19666 cat conftest.err >&5 19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19668 (exit $ac_status); } && 19669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19671 (eval $ac_try) 2>&5 19672 ac_status=$? 19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19674 (exit $ac_status); }; } && 19675 { ac_try='test -s conftest.$ac_objext' 19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19677 (eval $ac_try) 2>&5 19678 ac_status=$? 19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19680 (exit $ac_status); }; }; then 19681 ac_compiler_gnu=yes 19682else 19683 echo "$as_me: failed program was:" >&5 19684sed 's/^/| /' conftest.$ac_ext >&5 19685 19686ac_compiler_gnu=no 19687fi 19688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19689ac_cv_c_compiler_gnu=$ac_compiler_gnu 19690 19691fi 19692echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19693echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 19694GCC=`test $ac_compiler_gnu = yes && echo yes` 19695ac_test_CFLAGS=${CFLAGS+set} 19696ac_save_CFLAGS=$CFLAGS 19697CFLAGS="-g" 19698echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19699echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 19700if test "${ac_cv_prog_cc_g+set}" = set; then 19701 echo $ECHO_N "(cached) $ECHO_C" >&6 19702else 19703 cat >conftest.$ac_ext <<_ACEOF 19704/* confdefs.h. */ 19705_ACEOF 19706cat confdefs.h >>conftest.$ac_ext 19707cat >>conftest.$ac_ext <<_ACEOF 19708/* end confdefs.h. */ 19709 19710int 19711main () 19712{ 19713 19714 ; 19715 return 0; 19716} 19717_ACEOF 19718rm -f conftest.$ac_objext 19719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19720 (eval $ac_compile) 2>conftest.er1 19721 ac_status=$? 19722 grep -v '^ *+' conftest.er1 >conftest.err 19723 rm -f conftest.er1 19724 cat conftest.err >&5 19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19726 (exit $ac_status); } && 19727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19729 (eval $ac_try) 2>&5 19730 ac_status=$? 19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19732 (exit $ac_status); }; } && 19733 { ac_try='test -s conftest.$ac_objext' 19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19735 (eval $ac_try) 2>&5 19736 ac_status=$? 19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19738 (exit $ac_status); }; }; then 19739 ac_cv_prog_cc_g=yes 19740else 19741 echo "$as_me: failed program was:" >&5 19742sed 's/^/| /' conftest.$ac_ext >&5 19743 19744ac_cv_prog_cc_g=no 19745fi 19746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19747fi 19748echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19749echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 19750if test "$ac_test_CFLAGS" = set; then 19751 CFLAGS=$ac_save_CFLAGS 19752elif test $ac_cv_prog_cc_g = yes; then 19753 if test "$GCC" = yes; then 19754 CFLAGS="-g -O2" 19755 else 19756 CFLAGS="-g" 19757 fi 19758else 19759 if test "$GCC" = yes; then 19760 CFLAGS="-O2" 19761 else 19762 CFLAGS= 19763 fi 19764fi 19765echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 19766echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 19767if test "${ac_cv_prog_cc_stdc+set}" = set; then 19768 echo $ECHO_N "(cached) $ECHO_C" >&6 19769else 19770 ac_cv_prog_cc_stdc=no 19771ac_save_CC=$CC 19772cat >conftest.$ac_ext <<_ACEOF 19773/* confdefs.h. */ 19774_ACEOF 19775cat confdefs.h >>conftest.$ac_ext 19776cat >>conftest.$ac_ext <<_ACEOF 19777/* end confdefs.h. */ 19778#include <stdarg.h> 19779#include <stdio.h> 19780#include <sys/types.h> 19781#include <sys/stat.h> 19782/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19783struct buf { int x; }; 19784FILE * (*rcsopen) (struct buf *, struct stat *, int); 19785static char *e (p, i) 19786 char **p; 19787 int i; 19788{ 19789 return p[i]; 19790} 19791static char *f (char * (*g) (char **, int), char **p, ...) 19792{ 19793 char *s; 19794 va_list v; 19795 va_start (v,p); 19796 s = g (p, va_arg (v,int)); 19797 va_end (v); 19798 return s; 19799} 19800 19801/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19802 function prototypes and stuff, but not '\xHH' hex character constants. 19803 These don't provoke an error unfortunately, instead are silently treated 19804 as 'x'. The following induces an error, until -std1 is added to get 19805 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19806 array size at least. It's necessary to write '\x00'==0 to get something 19807 that's true only with -std1. */ 19808int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19809 19810int test (int i, double x); 19811struct s1 {int (*f) (int a);}; 19812struct s2 {int (*f) (double a);}; 19813int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19814int argc; 19815char **argv; 19816int 19817main () 19818{ 19819return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19820 ; 19821 return 0; 19822} 19823_ACEOF 19824# Don't try gcc -ansi; that turns off useful extensions and 19825# breaks some systems' header files. 19826# AIX -qlanglvl=ansi 19827# Ultrix and OSF/1 -std1 19828# HP-UX 10.20 and later -Ae 19829# HP-UX older versions -Aa -D_HPUX_SOURCE 19830# SVR4 -Xc -D__EXTENSIONS__ 19831for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19832do 19833 CC="$ac_save_CC $ac_arg" 19834 rm -f conftest.$ac_objext 19835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19836 (eval $ac_compile) 2>conftest.er1 19837 ac_status=$? 19838 grep -v '^ *+' conftest.er1 >conftest.err 19839 rm -f conftest.er1 19840 cat conftest.err >&5 19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19842 (exit $ac_status); } && 19843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19845 (eval $ac_try) 2>&5 19846 ac_status=$? 19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19848 (exit $ac_status); }; } && 19849 { ac_try='test -s conftest.$ac_objext' 19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19851 (eval $ac_try) 2>&5 19852 ac_status=$? 19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19854 (exit $ac_status); }; }; then 19855 ac_cv_prog_cc_stdc=$ac_arg 19856break 19857else 19858 echo "$as_me: failed program was:" >&5 19859sed 's/^/| /' conftest.$ac_ext >&5 19860 19861fi 19862rm -f conftest.err conftest.$ac_objext 19863done 19864rm -f conftest.$ac_ext conftest.$ac_objext 19865CC=$ac_save_CC 19866 19867fi 19868 19869case "x$ac_cv_prog_cc_stdc" in 19870 x|xno) 19871 echo "$as_me:$LINENO: result: none needed" >&5 19872echo "${ECHO_T}none needed" >&6 ;; 19873 *) 19874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 19875echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 19876 CC="$CC $ac_cv_prog_cc_stdc" ;; 19877esac 19878 19879# Some people use a C++ compiler to compile C. Since we use `exit', 19880# in C++ we need to declare it. In case someone uses the same compiler 19881# for both compiling C and C++ we need to have the C++ compiler decide 19882# the declaration of exit, since it's the most demanding environment. 19883cat >conftest.$ac_ext <<_ACEOF 19884#ifndef __cplusplus 19885 choke me 19886#endif 19887_ACEOF 19888rm -f conftest.$ac_objext 19889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19890 (eval $ac_compile) 2>conftest.er1 19891 ac_status=$? 19892 grep -v '^ *+' conftest.er1 >conftest.err 19893 rm -f conftest.er1 19894 cat conftest.err >&5 19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19896 (exit $ac_status); } && 19897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19899 (eval $ac_try) 2>&5 19900 ac_status=$? 19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19902 (exit $ac_status); }; } && 19903 { ac_try='test -s conftest.$ac_objext' 19904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19905 (eval $ac_try) 2>&5 19906 ac_status=$? 19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19908 (exit $ac_status); }; }; then 19909 for ac_declaration in \ 19910 '' \ 19911 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19912 'extern "C" void std::exit (int); using std::exit;' \ 19913 'extern "C" void exit (int) throw ();' \ 19914 'extern "C" void exit (int);' \ 19915 'void exit (int);' 19916do 19917 cat >conftest.$ac_ext <<_ACEOF 19918/* confdefs.h. */ 19919_ACEOF 19920cat confdefs.h >>conftest.$ac_ext 19921cat >>conftest.$ac_ext <<_ACEOF 19922/* end confdefs.h. */ 19923$ac_declaration 19924#include <stdlib.h> 19925int 19926main () 19927{ 19928exit (42); 19929 ; 19930 return 0; 19931} 19932_ACEOF 19933rm -f conftest.$ac_objext 19934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19935 (eval $ac_compile) 2>conftest.er1 19936 ac_status=$? 19937 grep -v '^ *+' conftest.er1 >conftest.err 19938 rm -f conftest.er1 19939 cat conftest.err >&5 19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19941 (exit $ac_status); } && 19942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19944 (eval $ac_try) 2>&5 19945 ac_status=$? 19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19947 (exit $ac_status); }; } && 19948 { ac_try='test -s conftest.$ac_objext' 19949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19950 (eval $ac_try) 2>&5 19951 ac_status=$? 19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19953 (exit $ac_status); }; }; then 19954 : 19955else 19956 echo "$as_me: failed program was:" >&5 19957sed 's/^/| /' conftest.$ac_ext >&5 19958 19959continue 19960fi 19961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19962 cat >conftest.$ac_ext <<_ACEOF 19963/* confdefs.h. */ 19964_ACEOF 19965cat confdefs.h >>conftest.$ac_ext 19966cat >>conftest.$ac_ext <<_ACEOF 19967/* end confdefs.h. */ 19968$ac_declaration 19969int 19970main () 19971{ 19972exit (42); 19973 ; 19974 return 0; 19975} 19976_ACEOF 19977rm -f conftest.$ac_objext 19978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19979 (eval $ac_compile) 2>conftest.er1 19980 ac_status=$? 19981 grep -v '^ *+' conftest.er1 >conftest.err 19982 rm -f conftest.er1 19983 cat conftest.err >&5 19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19985 (exit $ac_status); } && 19986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19988 (eval $ac_try) 2>&5 19989 ac_status=$? 19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19991 (exit $ac_status); }; } && 19992 { ac_try='test -s conftest.$ac_objext' 19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19994 (eval $ac_try) 2>&5 19995 ac_status=$? 19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19997 (exit $ac_status); }; }; then 19998 break 19999else 20000 echo "$as_me: failed program was:" >&5 20001sed 's/^/| /' conftest.$ac_ext >&5 20002 20003fi 20004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20005done 20006rm -f conftest* 20007if test -n "$ac_declaration"; then 20008 echo '#ifdef __cplusplus' >>confdefs.h 20009 echo $ac_declaration >>confdefs.h 20010 echo '#endif' >>confdefs.h 20011fi 20012 20013else 20014 echo "$as_me: failed program was:" >&5 20015sed 's/^/| /' conftest.$ac_ext >&5 20016 20017fi 20018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20019ac_ext=c 20020ac_cpp='$CPP $CPPFLAGS' 20021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20023ac_compiler_gnu=$ac_cv_c_compiler_gnu 20024 20025depcc="$CC" am_compiler_list= 20026 20027echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20028echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 20029if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20030 echo $ECHO_N "(cached) $ECHO_C" >&6 20031else 20032 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20033 # We make a subdir and do the tests there. Otherwise we can end up 20034 # making bogus files that we don't know about and never remove. For 20035 # instance it was reported that on HP-UX the gcc test will end up 20036 # making a dummy file named `D' -- because `-MD' means `put the output 20037 # in D'. 20038 mkdir conftest.dir 20039 # Copy depcomp to subdir because otherwise we won't find it if we're 20040 # using a relative directory. 20041 cp "$am_depcomp" conftest.dir 20042 cd conftest.dir 20043 # We will build objects and dependencies in a subdirectory because 20044 # it helps to detect inapplicable dependency modes. For instance 20045 # both Tru64's cc and ICC support -MD to output dependencies as a 20046 # side effect of compilation, but ICC will put the dependencies in 20047 # the current directory while Tru64 will put them in the object 20048 # directory. 20049 mkdir sub 20050 20051 am_cv_CC_dependencies_compiler_type=none 20052 if test "$am_compiler_list" = ""; then 20053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20054 fi 20055 for depmode in $am_compiler_list; do 20056 # Setup a source with many dependencies, because some compilers 20057 # like to wrap large dependency lists on column 80 (with \), and 20058 # we should not choose a depcomp mode which is confused by this. 20059 # 20060 # We need to recreate these files for each test, as the compiler may 20061 # overwrite some of them when testing with obscure command lines. 20062 # This happens at least with the AIX C compiler. 20063 : > sub/conftest.c 20064 for i in 1 2 3 4 5 6; do 20065 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20066 : > sub/conftst$i.h 20067 done 20068 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20069 20070 case $depmode in 20071 nosideeffect) 20072 # after this tag, mechanisms are not by side-effect, so they'll 20073 # only be used when explicitly requested 20074 if test "x$enable_dependency_tracking" = xyes; then 20075 continue 20076 else 20077 break 20078 fi 20079 ;; 20080 none) break ;; 20081 esac 20082 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20083 # mode. It turns out that the SunPro C++ compiler does not properly 20084 # handle `-M -o', and we need to detect this. 20085 if depmode=$depmode \ 20086 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20087 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20088 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20089 >/dev/null 2>conftest.err && 20090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20091 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20093 # icc doesn't choke on unknown options, it will just issue warnings 20094 # (even with -Werror). So we grep stderr for any message 20095 # that says an option was ignored. 20096 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 20097 am_cv_CC_dependencies_compiler_type=$depmode 20098 break 20099 fi 20100 fi 20101 done 20102 20103 cd .. 20104 rm -rf conftest.dir 20105else 20106 am_cv_CC_dependencies_compiler_type=none 20107fi 20108 20109fi 20110echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20111echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 20112CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20113 20114 20115 20116if 20117 test "x$enable_dependency_tracking" != xno \ 20118 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20119 am__fastdepCC_TRUE= 20120 am__fastdepCC_FALSE='#' 20121else 20122 am__fastdepCC_TRUE='#' 20123 am__fastdepCC_FALSE= 20124fi 20125 20126 20127 20128CFLAGS="$CFLAGS -Wall" 20129 20130echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 20131echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 20132if test "${ac_cv_c_bigendian+set}" = set; then 20133 echo $ECHO_N "(cached) $ECHO_C" >&6 20134else 20135 # See if sys/param.h defines the BYTE_ORDER macro. 20136cat >conftest.$ac_ext <<_ACEOF 20137/* confdefs.h. */ 20138_ACEOF 20139cat confdefs.h >>conftest.$ac_ext 20140cat >>conftest.$ac_ext <<_ACEOF 20141/* end confdefs.h. */ 20142#include <sys/types.h> 20143#include <sys/param.h> 20144 20145int 20146main () 20147{ 20148#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 20149 bogus endian macros 20150#endif 20151 20152 ; 20153 return 0; 20154} 20155_ACEOF 20156rm -f conftest.$ac_objext 20157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20158 (eval $ac_compile) 2>conftest.er1 20159 ac_status=$? 20160 grep -v '^ *+' conftest.er1 >conftest.err 20161 rm -f conftest.er1 20162 cat conftest.err >&5 20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20164 (exit $ac_status); } && 20165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20167 (eval $ac_try) 2>&5 20168 ac_status=$? 20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20170 (exit $ac_status); }; } && 20171 { ac_try='test -s conftest.$ac_objext' 20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20173 (eval $ac_try) 2>&5 20174 ac_status=$? 20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20176 (exit $ac_status); }; }; then 20177 # It does; now see whether it defined to BIG_ENDIAN or not. 20178cat >conftest.$ac_ext <<_ACEOF 20179/* confdefs.h. */ 20180_ACEOF 20181cat confdefs.h >>conftest.$ac_ext 20182cat >>conftest.$ac_ext <<_ACEOF 20183/* end confdefs.h. */ 20184#include <sys/types.h> 20185#include <sys/param.h> 20186 20187int 20188main () 20189{ 20190#if BYTE_ORDER != BIG_ENDIAN 20191 not big endian 20192#endif 20193 20194 ; 20195 return 0; 20196} 20197_ACEOF 20198rm -f conftest.$ac_objext 20199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20200 (eval $ac_compile) 2>conftest.er1 20201 ac_status=$? 20202 grep -v '^ *+' conftest.er1 >conftest.err 20203 rm -f conftest.er1 20204 cat conftest.err >&5 20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20206 (exit $ac_status); } && 20207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20209 (eval $ac_try) 2>&5 20210 ac_status=$? 20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20212 (exit $ac_status); }; } && 20213 { ac_try='test -s conftest.$ac_objext' 20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20215 (eval $ac_try) 2>&5 20216 ac_status=$? 20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20218 (exit $ac_status); }; }; then 20219 ac_cv_c_bigendian=yes 20220else 20221 echo "$as_me: failed program was:" >&5 20222sed 's/^/| /' conftest.$ac_ext >&5 20223 20224ac_cv_c_bigendian=no 20225fi 20226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20227else 20228 echo "$as_me: failed program was:" >&5 20229sed 's/^/| /' conftest.$ac_ext >&5 20230 20231# It does not; compile a test program. 20232if test "$cross_compiling" = yes; then 20233 # try to guess the endianness by grepping values into an object file 20234 ac_cv_c_bigendian=unknown 20235 cat >conftest.$ac_ext <<_ACEOF 20236/* confdefs.h. */ 20237_ACEOF 20238cat confdefs.h >>conftest.$ac_ext 20239cat >>conftest.$ac_ext <<_ACEOF 20240/* end confdefs.h. */ 20241short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 20242short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 20243void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 20244short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 20245short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 20246void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 20247int 20248main () 20249{ 20250 _ascii (); _ebcdic (); 20251 ; 20252 return 0; 20253} 20254_ACEOF 20255rm -f conftest.$ac_objext 20256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20257 (eval $ac_compile) 2>conftest.er1 20258 ac_status=$? 20259 grep -v '^ *+' conftest.er1 >conftest.err 20260 rm -f conftest.er1 20261 cat conftest.err >&5 20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20263 (exit $ac_status); } && 20264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20266 (eval $ac_try) 2>&5 20267 ac_status=$? 20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20269 (exit $ac_status); }; } && 20270 { ac_try='test -s conftest.$ac_objext' 20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20272 (eval $ac_try) 2>&5 20273 ac_status=$? 20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20275 (exit $ac_status); }; }; then 20276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 20277 ac_cv_c_bigendian=yes 20278fi 20279if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 20280 if test "$ac_cv_c_bigendian" = unknown; then 20281 ac_cv_c_bigendian=no 20282 else 20283 # finding both strings is unlikely to happen, but who knows? 20284 ac_cv_c_bigendian=unknown 20285 fi 20286fi 20287else 20288 echo "$as_me: failed program was:" >&5 20289sed 's/^/| /' conftest.$ac_ext >&5 20290 20291fi 20292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20293else 20294 cat >conftest.$ac_ext <<_ACEOF 20295/* confdefs.h. */ 20296_ACEOF 20297cat confdefs.h >>conftest.$ac_ext 20298cat >>conftest.$ac_ext <<_ACEOF 20299/* end confdefs.h. */ 20300int 20301main () 20302{ 20303 /* Are we little or big endian? From Harbison&Steele. */ 20304 union 20305 { 20306 long l; 20307 char c[sizeof (long)]; 20308 } u; 20309 u.l = 1; 20310 exit (u.c[sizeof (long) - 1] == 1); 20311} 20312_ACEOF 20313rm -f conftest$ac_exeext 20314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20315 (eval $ac_link) 2>&5 20316 ac_status=$? 20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20320 (eval $ac_try) 2>&5 20321 ac_status=$? 20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20323 (exit $ac_status); }; }; then 20324 ac_cv_c_bigendian=no 20325else 20326 echo "$as_me: program exited with status $ac_status" >&5 20327echo "$as_me: failed program was:" >&5 20328sed 's/^/| /' conftest.$ac_ext >&5 20329 20330( exit $ac_status ) 20331ac_cv_c_bigendian=yes 20332fi 20333rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20334fi 20335fi 20336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20337fi 20338echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 20339echo "${ECHO_T}$ac_cv_c_bigendian" >&6 20340case $ac_cv_c_bigendian in 20341 yes) 20342 20343cat >>confdefs.h <<\_ACEOF 20344#define JCLASS_BIGENDIAN 1 20345_ACEOF 20346 ;; 20347 no) 20348 ;; 20349 *) 20350 { { echo "$as_me:$LINENO: error: unknown endianness 20351presetting ac_cv_c_bigendian=no (or yes) will help" >&5 20352echo "$as_me: error: unknown endianness 20353presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 20354 { (exit 1); exit 1; }; } ;; 20355esac 20356 20357echo "$as_me:$LINENO: checking for long" >&5 20358echo $ECHO_N "checking for long... $ECHO_C" >&6 20359if test "${ac_cv_type_long+set}" = set; then 20360 echo $ECHO_N "(cached) $ECHO_C" >&6 20361else 20362 cat >conftest.$ac_ext <<_ACEOF 20363/* confdefs.h. */ 20364_ACEOF 20365cat confdefs.h >>conftest.$ac_ext 20366cat >>conftest.$ac_ext <<_ACEOF 20367/* end confdefs.h. */ 20368$ac_includes_default 20369int 20370main () 20371{ 20372if ((long *) 0) 20373 return 0; 20374if (sizeof (long)) 20375 return 0; 20376 ; 20377 return 0; 20378} 20379_ACEOF 20380rm -f conftest.$ac_objext 20381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20382 (eval $ac_compile) 2>conftest.er1 20383 ac_status=$? 20384 grep -v '^ *+' conftest.er1 >conftest.err 20385 rm -f conftest.er1 20386 cat conftest.err >&5 20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20388 (exit $ac_status); } && 20389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20391 (eval $ac_try) 2>&5 20392 ac_status=$? 20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20394 (exit $ac_status); }; } && 20395 { ac_try='test -s conftest.$ac_objext' 20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20397 (eval $ac_try) 2>&5 20398 ac_status=$? 20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20400 (exit $ac_status); }; }; then 20401 ac_cv_type_long=yes 20402else 20403 echo "$as_me: failed program was:" >&5 20404sed 's/^/| /' conftest.$ac_ext >&5 20405 20406ac_cv_type_long=no 20407fi 20408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20409fi 20410echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 20411echo "${ECHO_T}$ac_cv_type_long" >&6 20412 20413echo "$as_me:$LINENO: checking size of long" >&5 20414echo $ECHO_N "checking size of long... $ECHO_C" >&6 20415if test "${ac_cv_sizeof_long+set}" = set; then 20416 echo $ECHO_N "(cached) $ECHO_C" >&6 20417else 20418 if test "$ac_cv_type_long" = yes; then 20419 # The cast to unsigned long works around a bug in the HP C Compiler 20420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20422 # This bug is HP SR number 8606223364. 20423 if test "$cross_compiling" = yes; then 20424 # Depending upon the size, compute the lo and hi bounds. 20425cat >conftest.$ac_ext <<_ACEOF 20426/* confdefs.h. */ 20427_ACEOF 20428cat confdefs.h >>conftest.$ac_ext 20429cat >>conftest.$ac_ext <<_ACEOF 20430/* end confdefs.h. */ 20431$ac_includes_default 20432int 20433main () 20434{ 20435static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 20436test_array [0] = 0 20437 20438 ; 20439 return 0; 20440} 20441_ACEOF 20442rm -f conftest.$ac_objext 20443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20444 (eval $ac_compile) 2>conftest.er1 20445 ac_status=$? 20446 grep -v '^ *+' conftest.er1 >conftest.err 20447 rm -f conftest.er1 20448 cat conftest.err >&5 20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20450 (exit $ac_status); } && 20451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20453 (eval $ac_try) 2>&5 20454 ac_status=$? 20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20456 (exit $ac_status); }; } && 20457 { ac_try='test -s conftest.$ac_objext' 20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20459 (eval $ac_try) 2>&5 20460 ac_status=$? 20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20462 (exit $ac_status); }; }; then 20463 ac_lo=0 ac_mid=0 20464 while :; do 20465 cat >conftest.$ac_ext <<_ACEOF 20466/* confdefs.h. */ 20467_ACEOF 20468cat confdefs.h >>conftest.$ac_ext 20469cat >>conftest.$ac_ext <<_ACEOF 20470/* end confdefs.h. */ 20471$ac_includes_default 20472int 20473main () 20474{ 20475static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 20476test_array [0] = 0 20477 20478 ; 20479 return 0; 20480} 20481_ACEOF 20482rm -f conftest.$ac_objext 20483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20484 (eval $ac_compile) 2>conftest.er1 20485 ac_status=$? 20486 grep -v '^ *+' conftest.er1 >conftest.err 20487 rm -f conftest.er1 20488 cat conftest.err >&5 20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20490 (exit $ac_status); } && 20491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20493 (eval $ac_try) 2>&5 20494 ac_status=$? 20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20496 (exit $ac_status); }; } && 20497 { ac_try='test -s conftest.$ac_objext' 20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20499 (eval $ac_try) 2>&5 20500 ac_status=$? 20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20502 (exit $ac_status); }; }; then 20503 ac_hi=$ac_mid; break 20504else 20505 echo "$as_me: failed program was:" >&5 20506sed 's/^/| /' conftest.$ac_ext >&5 20507 20508ac_lo=`expr $ac_mid + 1` 20509 if test $ac_lo -le $ac_mid; then 20510 ac_lo= ac_hi= 20511 break 20512 fi 20513 ac_mid=`expr 2 '*' $ac_mid + 1` 20514fi 20515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20516 done 20517else 20518 echo "$as_me: failed program was:" >&5 20519sed 's/^/| /' conftest.$ac_ext >&5 20520 20521cat >conftest.$ac_ext <<_ACEOF 20522/* confdefs.h. */ 20523_ACEOF 20524cat confdefs.h >>conftest.$ac_ext 20525cat >>conftest.$ac_ext <<_ACEOF 20526/* end confdefs.h. */ 20527$ac_includes_default 20528int 20529main () 20530{ 20531static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 20532test_array [0] = 0 20533 20534 ; 20535 return 0; 20536} 20537_ACEOF 20538rm -f conftest.$ac_objext 20539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20540 (eval $ac_compile) 2>conftest.er1 20541 ac_status=$? 20542 grep -v '^ *+' conftest.er1 >conftest.err 20543 rm -f conftest.er1 20544 cat conftest.err >&5 20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20546 (exit $ac_status); } && 20547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20549 (eval $ac_try) 2>&5 20550 ac_status=$? 20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20552 (exit $ac_status); }; } && 20553 { ac_try='test -s conftest.$ac_objext' 20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20555 (eval $ac_try) 2>&5 20556 ac_status=$? 20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20558 (exit $ac_status); }; }; then 20559 ac_hi=-1 ac_mid=-1 20560 while :; do 20561 cat >conftest.$ac_ext <<_ACEOF 20562/* confdefs.h. */ 20563_ACEOF 20564cat confdefs.h >>conftest.$ac_ext 20565cat >>conftest.$ac_ext <<_ACEOF 20566/* end confdefs.h. */ 20567$ac_includes_default 20568int 20569main () 20570{ 20571static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 20572test_array [0] = 0 20573 20574 ; 20575 return 0; 20576} 20577_ACEOF 20578rm -f conftest.$ac_objext 20579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20580 (eval $ac_compile) 2>conftest.er1 20581 ac_status=$? 20582 grep -v '^ *+' conftest.er1 >conftest.err 20583 rm -f conftest.er1 20584 cat conftest.err >&5 20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20586 (exit $ac_status); } && 20587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20589 (eval $ac_try) 2>&5 20590 ac_status=$? 20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20592 (exit $ac_status); }; } && 20593 { ac_try='test -s conftest.$ac_objext' 20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20595 (eval $ac_try) 2>&5 20596 ac_status=$? 20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20598 (exit $ac_status); }; }; then 20599 ac_lo=$ac_mid; break 20600else 20601 echo "$as_me: failed program was:" >&5 20602sed 's/^/| /' conftest.$ac_ext >&5 20603 20604ac_hi=`expr '(' $ac_mid ')' - 1` 20605 if test $ac_mid -le $ac_hi; then 20606 ac_lo= ac_hi= 20607 break 20608 fi 20609 ac_mid=`expr 2 '*' $ac_mid` 20610fi 20611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20612 done 20613else 20614 echo "$as_me: failed program was:" >&5 20615sed 's/^/| /' conftest.$ac_ext >&5 20616 20617ac_lo= ac_hi= 20618fi 20619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20620fi 20621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20622# Binary search between lo and hi bounds. 20623while test "x$ac_lo" != "x$ac_hi"; do 20624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20625 cat >conftest.$ac_ext <<_ACEOF 20626/* confdefs.h. */ 20627_ACEOF 20628cat confdefs.h >>conftest.$ac_ext 20629cat >>conftest.$ac_ext <<_ACEOF 20630/* end confdefs.h. */ 20631$ac_includes_default 20632int 20633main () 20634{ 20635static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 20636test_array [0] = 0 20637 20638 ; 20639 return 0; 20640} 20641_ACEOF 20642rm -f conftest.$ac_objext 20643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20644 (eval $ac_compile) 2>conftest.er1 20645 ac_status=$? 20646 grep -v '^ *+' conftest.er1 >conftest.err 20647 rm -f conftest.er1 20648 cat conftest.err >&5 20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20650 (exit $ac_status); } && 20651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20653 (eval $ac_try) 2>&5 20654 ac_status=$? 20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20656 (exit $ac_status); }; } && 20657 { ac_try='test -s conftest.$ac_objext' 20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20659 (eval $ac_try) 2>&5 20660 ac_status=$? 20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20662 (exit $ac_status); }; }; then 20663 ac_hi=$ac_mid 20664else 20665 echo "$as_me: failed program was:" >&5 20666sed 's/^/| /' conftest.$ac_ext >&5 20667 20668ac_lo=`expr '(' $ac_mid ')' + 1` 20669fi 20670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20671done 20672case $ac_lo in 20673?*) ac_cv_sizeof_long=$ac_lo;; 20674'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 20675See \`config.log' for more details." >&5 20676echo "$as_me: error: cannot compute sizeof (long), 77 20677See \`config.log' for more details." >&2;} 20678 { (exit 1); exit 1; }; } ;; 20679esac 20680else 20681 if test "$cross_compiling" = yes; then 20682 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 20683echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 20684 { (exit 1); exit 1; }; } 20685else 20686 cat >conftest.$ac_ext <<_ACEOF 20687/* confdefs.h. */ 20688_ACEOF 20689cat confdefs.h >>conftest.$ac_ext 20690cat >>conftest.$ac_ext <<_ACEOF 20691/* end confdefs.h. */ 20692$ac_includes_default 20693long longval () { return (long) (sizeof (long)); } 20694unsigned long ulongval () { return (long) (sizeof (long)); } 20695#include <stdio.h> 20696#include <stdlib.h> 20697int 20698main () 20699{ 20700 20701 FILE *f = fopen ("conftest.val", "w"); 20702 if (! f) 20703 exit (1); 20704 if (((long) (sizeof (long))) < 0) 20705 { 20706 long i = longval (); 20707 if (i != ((long) (sizeof (long)))) 20708 exit (1); 20709 fprintf (f, "%ld\n", i); 20710 } 20711 else 20712 { 20713 unsigned long i = ulongval (); 20714 if (i != ((long) (sizeof (long)))) 20715 exit (1); 20716 fprintf (f, "%lu\n", i); 20717 } 20718 exit (ferror (f) || fclose (f) != 0); 20719 20720 ; 20721 return 0; 20722} 20723_ACEOF 20724rm -f conftest$ac_exeext 20725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20726 (eval $ac_link) 2>&5 20727 ac_status=$? 20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20731 (eval $ac_try) 2>&5 20732 ac_status=$? 20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20734 (exit $ac_status); }; }; then 20735 ac_cv_sizeof_long=`cat conftest.val` 20736else 20737 echo "$as_me: program exited with status $ac_status" >&5 20738echo "$as_me: failed program was:" >&5 20739sed 's/^/| /' conftest.$ac_ext >&5 20740 20741( exit $ac_status ) 20742{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 20743See \`config.log' for more details." >&5 20744echo "$as_me: error: cannot compute sizeof (long), 77 20745See \`config.log' for more details." >&2;} 20746 { (exit 1); exit 1; }; } 20747fi 20748rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20749fi 20750fi 20751rm -f conftest.val 20752else 20753 ac_cv_sizeof_long=0 20754fi 20755fi 20756echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 20757echo "${ECHO_T}$ac_cv_sizeof_long" >&6 20758cat >>confdefs.h <<_ACEOF 20759#define SIZEOF_LONG $ac_cv_sizeof_long 20760_ACEOF 20761 20762 20763echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20764echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 20765if test "${ac_cv_c_const+set}" = set; then 20766 echo $ECHO_N "(cached) $ECHO_C" >&6 20767else 20768 cat >conftest.$ac_ext <<_ACEOF 20769/* confdefs.h. */ 20770_ACEOF 20771cat confdefs.h >>conftest.$ac_ext 20772cat >>conftest.$ac_ext <<_ACEOF 20773/* end confdefs.h. */ 20774 20775int 20776main () 20777{ 20778/* FIXME: Include the comments suggested by Paul. */ 20779#ifndef __cplusplus 20780 /* Ultrix mips cc rejects this. */ 20781 typedef int charset[2]; 20782 const charset x; 20783 /* SunOS 4.1.1 cc rejects this. */ 20784 char const *const *ccp; 20785 char **p; 20786 /* NEC SVR4.0.2 mips cc rejects this. */ 20787 struct point {int x, y;}; 20788 static struct point const zero = {0,0}; 20789 /* AIX XL C 1.02.0.0 rejects this. 20790 It does not let you subtract one const X* pointer from another in 20791 an arm of an if-expression whose if-part is not a constant 20792 expression */ 20793 const char *g = "string"; 20794 ccp = &g + (g ? g-g : 0); 20795 /* HPUX 7.0 cc rejects these. */ 20796 ++ccp; 20797 p = (char**) ccp; 20798 ccp = (char const *const *) p; 20799 { /* SCO 3.2v4 cc rejects this. */ 20800 char *t; 20801 char const *s = 0 ? (char *) 0 : (char const *) 0; 20802 20803 *t++ = 0; 20804 } 20805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20806 int x[] = {25, 17}; 20807 const int *foo = &x[0]; 20808 ++foo; 20809 } 20810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20811 typedef const int *iptr; 20812 iptr p = 0; 20813 ++p; 20814 } 20815 { /* AIX XL C 1.02.0.0 rejects this saying 20816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20817 struct s { int j; const int *ap[3]; }; 20818 struct s *b; b->j = 5; 20819 } 20820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20821 const int foo = 10; 20822 } 20823#endif 20824 20825 ; 20826 return 0; 20827} 20828_ACEOF 20829rm -f conftest.$ac_objext 20830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20831 (eval $ac_compile) 2>conftest.er1 20832 ac_status=$? 20833 grep -v '^ *+' conftest.er1 >conftest.err 20834 rm -f conftest.er1 20835 cat conftest.err >&5 20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20837 (exit $ac_status); } && 20838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20840 (eval $ac_try) 2>&5 20841 ac_status=$? 20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20843 (exit $ac_status); }; } && 20844 { ac_try='test -s conftest.$ac_objext' 20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20846 (eval $ac_try) 2>&5 20847 ac_status=$? 20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20849 (exit $ac_status); }; }; then 20850 ac_cv_c_const=yes 20851else 20852 echo "$as_me: failed program was:" >&5 20853sed 's/^/| /' conftest.$ac_ext >&5 20854 20855ac_cv_c_const=no 20856fi 20857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20858fi 20859echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20860echo "${ECHO_T}$ac_cv_c_const" >&6 20861if test $ac_cv_c_const = no; then 20862 20863cat >>confdefs.h <<\_ACEOF 20864#define const 20865_ACEOF 20866 20867fi 20868 20869 20870 20871echo "$as_me:$LINENO: checking for pow in -lm" >&5 20872echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 20873if test "${ac_cv_lib_m_pow+set}" = set; then 20874 echo $ECHO_N "(cached) $ECHO_C" >&6 20875else 20876 ac_check_lib_save_LIBS=$LIBS 20877LIBS="-lm $LIBS" 20878cat >conftest.$ac_ext <<_ACEOF 20879/* confdefs.h. */ 20880_ACEOF 20881cat confdefs.h >>conftest.$ac_ext 20882cat >>conftest.$ac_ext <<_ACEOF 20883/* end confdefs.h. */ 20884 20885/* Override any gcc2 internal prototype to avoid an error. */ 20886#ifdef __cplusplus 20887extern "C" 20888#endif 20889/* We use char because int might match the return type of a gcc2 20890 builtin and then its argument prototype would still apply. */ 20891char pow (); 20892int 20893main () 20894{ 20895pow (); 20896 ; 20897 return 0; 20898} 20899_ACEOF 20900rm -f conftest.$ac_objext conftest$ac_exeext 20901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20902 (eval $ac_link) 2>conftest.er1 20903 ac_status=$? 20904 grep -v '^ *+' conftest.er1 >conftest.err 20905 rm -f conftest.er1 20906 cat conftest.err >&5 20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20908 (exit $ac_status); } && 20909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20911 (eval $ac_try) 2>&5 20912 ac_status=$? 20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20914 (exit $ac_status); }; } && 20915 { ac_try='test -s conftest$ac_exeext' 20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20917 (eval $ac_try) 2>&5 20918 ac_status=$? 20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20920 (exit $ac_status); }; }; then 20921 ac_cv_lib_m_pow=yes 20922else 20923 echo "$as_me: failed program was:" >&5 20924sed 's/^/| /' conftest.$ac_ext >&5 20925 20926ac_cv_lib_m_pow=no 20927fi 20928rm -f conftest.err conftest.$ac_objext \ 20929 conftest$ac_exeext conftest.$ac_ext 20930LIBS=$ac_check_lib_save_LIBS 20931fi 20932echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 20933echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 20934if test $ac_cv_lib_m_pow = yes; then 20935 cat >>confdefs.h <<_ACEOF 20936#define HAVE_LIBM 1 20937_ACEOF 20938 20939 LIBS="-lm $LIBS" 20940 20941fi 20942 20943 20944echo "$as_me:$LINENO: checking for inflate in -lz" >&5 20945echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6 20946if test "${ac_cv_lib_z_inflate+set}" = set; then 20947 echo $ECHO_N "(cached) $ECHO_C" >&6 20948else 20949 ac_check_lib_save_LIBS=$LIBS 20950LIBS="-lz $LIBS" 20951cat >conftest.$ac_ext <<_ACEOF 20952/* confdefs.h. */ 20953_ACEOF 20954cat confdefs.h >>conftest.$ac_ext 20955cat >>conftest.$ac_ext <<_ACEOF 20956/* end confdefs.h. */ 20957 20958/* Override any gcc2 internal prototype to avoid an error. */ 20959#ifdef __cplusplus 20960extern "C" 20961#endif 20962/* We use char because int might match the return type of a gcc2 20963 builtin and then its argument prototype would still apply. */ 20964char inflate (); 20965int 20966main () 20967{ 20968inflate (); 20969 ; 20970 return 0; 20971} 20972_ACEOF 20973rm -f conftest.$ac_objext conftest$ac_exeext 20974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20975 (eval $ac_link) 2>conftest.er1 20976 ac_status=$? 20977 grep -v '^ *+' conftest.er1 >conftest.err 20978 rm -f conftest.er1 20979 cat conftest.err >&5 20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20981 (exit $ac_status); } && 20982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20984 (eval $ac_try) 2>&5 20985 ac_status=$? 20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20987 (exit $ac_status); }; } && 20988 { ac_try='test -s conftest$ac_exeext' 20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20990 (eval $ac_try) 2>&5 20991 ac_status=$? 20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20993 (exit $ac_status); }; }; then 20994 ac_cv_lib_z_inflate=yes 20995else 20996 echo "$as_me: failed program was:" >&5 20997sed 's/^/| /' conftest.$ac_ext >&5 20998 20999ac_cv_lib_z_inflate=no 21000fi 21001rm -f conftest.err conftest.$ac_objext \ 21002 conftest$ac_exeext conftest.$ac_ext 21003LIBS=$ac_check_lib_save_LIBS 21004fi 21005echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5 21006echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6 21007if test $ac_cv_lib_z_inflate = yes; then 21008 cat >>confdefs.h <<_ACEOF 21009#define HAVE_LIBZ 1 21010_ACEOF 21011 21012 LIBS="-lz $LIBS" 21013 21014else 21015 { { echo "$as_me:$LINENO: error: zlib not found" >&5 21016echo "$as_me: error: zlib not found" >&2;} 21017 { (exit 1); exit 1; }; } 21018fi 21019 21020 21021 21022 21023for ac_func in strchr strdup strtok_r 21024do 21025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21026echo "$as_me:$LINENO: checking for $ac_func" >&5 21027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21028if eval "test \"\${$as_ac_var+set}\" = set"; then 21029 echo $ECHO_N "(cached) $ECHO_C" >&6 21030else 21031 cat >conftest.$ac_ext <<_ACEOF 21032/* confdefs.h. */ 21033_ACEOF 21034cat confdefs.h >>conftest.$ac_ext 21035cat >>conftest.$ac_ext <<_ACEOF 21036/* end confdefs.h. */ 21037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21038 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21039#define $ac_func innocuous_$ac_func 21040 21041/* System header to define __stub macros and hopefully few prototypes, 21042 which can conflict with char $ac_func (); below. 21043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21044 <limits.h> exists even on freestanding compilers. */ 21045 21046#ifdef __STDC__ 21047# include <limits.h> 21048#else 21049# include <assert.h> 21050#endif 21051 21052#undef $ac_func 21053 21054/* Override any gcc2 internal prototype to avoid an error. */ 21055#ifdef __cplusplus 21056extern "C" 21057{ 21058#endif 21059/* We use char because int might match the return type of a gcc2 21060 builtin and then its argument prototype would still apply. */ 21061char $ac_func (); 21062/* The GNU C library defines this for functions which it implements 21063 to always fail with ENOSYS. Some functions are actually named 21064 something starting with __ and the normal name is an alias. */ 21065#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21066choke me 21067#else 21068char (*f) () = $ac_func; 21069#endif 21070#ifdef __cplusplus 21071} 21072#endif 21073 21074int 21075main () 21076{ 21077return f != $ac_func; 21078 ; 21079 return 0; 21080} 21081_ACEOF 21082rm -f conftest.$ac_objext conftest$ac_exeext 21083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21084 (eval $ac_link) 2>conftest.er1 21085 ac_status=$? 21086 grep -v '^ *+' conftest.er1 >conftest.err 21087 rm -f conftest.er1 21088 cat conftest.err >&5 21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21090 (exit $ac_status); } && 21091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21093 (eval $ac_try) 2>&5 21094 ac_status=$? 21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21096 (exit $ac_status); }; } && 21097 { ac_try='test -s conftest$ac_exeext' 21098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21099 (eval $ac_try) 2>&5 21100 ac_status=$? 21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21102 (exit $ac_status); }; }; then 21103 eval "$as_ac_var=yes" 21104else 21105 echo "$as_me: failed program was:" >&5 21106sed 's/^/| /' conftest.$ac_ext >&5 21107 21108eval "$as_ac_var=no" 21109fi 21110rm -f conftest.err conftest.$ac_objext \ 21111 conftest$ac_exeext conftest.$ac_ext 21112fi 21113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21114echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21115if test `eval echo '${'$as_ac_var'}'` = yes; then 21116 cat >>confdefs.h <<_ACEOF 21117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21118_ACEOF 21119 21120fi 21121done 21122 21123if test "${ac_cv_header_inttypes_h+set}" = set; then 21124 echo "$as_me:$LINENO: checking for inttypes.h" >&5 21125echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 21126if test "${ac_cv_header_inttypes_h+set}" = set; then 21127 echo $ECHO_N "(cached) $ECHO_C" >&6 21128fi 21129echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 21130echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 21131else 21132 # Is the header compilable? 21133echo "$as_me:$LINENO: checking inttypes.h usability" >&5 21134echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6 21135cat >conftest.$ac_ext <<_ACEOF 21136/* confdefs.h. */ 21137_ACEOF 21138cat confdefs.h >>conftest.$ac_ext 21139cat >>conftest.$ac_ext <<_ACEOF 21140/* end confdefs.h. */ 21141$ac_includes_default 21142#include <inttypes.h> 21143_ACEOF 21144rm -f conftest.$ac_objext 21145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21146 (eval $ac_compile) 2>conftest.er1 21147 ac_status=$? 21148 grep -v '^ *+' conftest.er1 >conftest.err 21149 rm -f conftest.er1 21150 cat conftest.err >&5 21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21152 (exit $ac_status); } && 21153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21155 (eval $ac_try) 2>&5 21156 ac_status=$? 21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21158 (exit $ac_status); }; } && 21159 { ac_try='test -s conftest.$ac_objext' 21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21161 (eval $ac_try) 2>&5 21162 ac_status=$? 21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21164 (exit $ac_status); }; }; then 21165 ac_header_compiler=yes 21166else 21167 echo "$as_me: failed program was:" >&5 21168sed 's/^/| /' conftest.$ac_ext >&5 21169 21170ac_header_compiler=no 21171fi 21172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21173echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21174echo "${ECHO_T}$ac_header_compiler" >&6 21175 21176# Is the header present? 21177echo "$as_me:$LINENO: checking inttypes.h presence" >&5 21178echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6 21179cat >conftest.$ac_ext <<_ACEOF 21180/* confdefs.h. */ 21181_ACEOF 21182cat confdefs.h >>conftest.$ac_ext 21183cat >>conftest.$ac_ext <<_ACEOF 21184/* end confdefs.h. */ 21185#include <inttypes.h> 21186_ACEOF 21187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21189 ac_status=$? 21190 grep -v '^ *+' conftest.er1 >conftest.err 21191 rm -f conftest.er1 21192 cat conftest.err >&5 21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21194 (exit $ac_status); } >/dev/null; then 21195 if test -s conftest.err; then 21196 ac_cpp_err=$ac_c_preproc_warn_flag 21197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21198 else 21199 ac_cpp_err= 21200 fi 21201else 21202 ac_cpp_err=yes 21203fi 21204if test -z "$ac_cpp_err"; then 21205 ac_header_preproc=yes 21206else 21207 echo "$as_me: failed program was:" >&5 21208sed 's/^/| /' conftest.$ac_ext >&5 21209 21210 ac_header_preproc=no 21211fi 21212rm -f conftest.err conftest.$ac_ext 21213echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21214echo "${ECHO_T}$ac_header_preproc" >&6 21215 21216# So? What about this header? 21217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21218 yes:no: ) 21219 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 21220echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21221 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5 21222echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;} 21223 ac_header_preproc=yes 21224 ;; 21225 no:yes:* ) 21226 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5 21227echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;} 21228 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5 21229echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;} 21230 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5 21231echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;} 21232 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5 21233echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;} 21234 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 21235echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;} 21236 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5 21237echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;} 21238 ( 21239 cat <<\_ASBOX 21240## ------------------------------ ## 21241## Report this to anarxia@gmx.net ## 21242## ------------------------------ ## 21243_ASBOX 21244 ) | 21245 sed "s/^/$as_me: WARNING: /" >&2 21246 ;; 21247esac 21248echo "$as_me:$LINENO: checking for inttypes.h" >&5 21249echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 21250if test "${ac_cv_header_inttypes_h+set}" = set; then 21251 echo $ECHO_N "(cached) $ECHO_C" >&6 21252else 21253 ac_cv_header_inttypes_h=$ac_header_preproc 21254fi 21255echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 21256echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 21257 21258fi 21259if test $ac_cv_header_inttypes_h = yes; then 21260 21261cat >>confdefs.h <<\_ACEOF 21262#define JCLASS_INTTYPES_H <inttypes.h> 21263_ACEOF 21264 21265 21266cat >>confdefs.h <<\_ACEOF 21267#define JCLASS_INTTYPES_H <stdint.h> 21268_ACEOF 21269 21270fi 21271 21272 21273 21274# Check whether --enable-jclassinfo or --disable-jclassinfo was given. 21275if test "${enable_jclassinfo+set}" = set; then 21276 enableval="$enable_jclassinfo" 21277 enable_jclassinfo="$enableval" 21278else 21279 enable_jclassinfo=yes 21280fi; 21281 21282if test x$enable_jclassinfo = xyes ; then 21283 21284 21285 21286 21287 if test "${ac_cv_header_getopt_h+set}" = set; then 21288 echo "$as_me:$LINENO: checking for getopt.h" >&5 21289echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6 21290if test "${ac_cv_header_getopt_h+set}" = set; then 21291 echo $ECHO_N "(cached) $ECHO_C" >&6 21292fi 21293echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5 21294echo "${ECHO_T}$ac_cv_header_getopt_h" >&6 21295else 21296 # Is the header compilable? 21297echo "$as_me:$LINENO: checking getopt.h usability" >&5 21298echo $ECHO_N "checking getopt.h usability... $ECHO_C" >&6 21299cat >conftest.$ac_ext <<_ACEOF 21300/* confdefs.h. */ 21301_ACEOF 21302cat confdefs.h >>conftest.$ac_ext 21303cat >>conftest.$ac_ext <<_ACEOF 21304/* end confdefs.h. */ 21305$ac_includes_default 21306#include <getopt.h> 21307_ACEOF 21308rm -f conftest.$ac_objext 21309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21310 (eval $ac_compile) 2>conftest.er1 21311 ac_status=$? 21312 grep -v '^ *+' conftest.er1 >conftest.err 21313 rm -f conftest.er1 21314 cat conftest.err >&5 21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21316 (exit $ac_status); } && 21317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21319 (eval $ac_try) 2>&5 21320 ac_status=$? 21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21322 (exit $ac_status); }; } && 21323 { ac_try='test -s conftest.$ac_objext' 21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21325 (eval $ac_try) 2>&5 21326 ac_status=$? 21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21328 (exit $ac_status); }; }; then 21329 ac_header_compiler=yes 21330else 21331 echo "$as_me: failed program was:" >&5 21332sed 's/^/| /' conftest.$ac_ext >&5 21333 21334ac_header_compiler=no 21335fi 21336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21338echo "${ECHO_T}$ac_header_compiler" >&6 21339 21340# Is the header present? 21341echo "$as_me:$LINENO: checking getopt.h presence" >&5 21342echo $ECHO_N "checking getopt.h presence... $ECHO_C" >&6 21343cat >conftest.$ac_ext <<_ACEOF 21344/* confdefs.h. */ 21345_ACEOF 21346cat confdefs.h >>conftest.$ac_ext 21347cat >>conftest.$ac_ext <<_ACEOF 21348/* end confdefs.h. */ 21349#include <getopt.h> 21350_ACEOF 21351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21353 ac_status=$? 21354 grep -v '^ *+' conftest.er1 >conftest.err 21355 rm -f conftest.er1 21356 cat conftest.err >&5 21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21358 (exit $ac_status); } >/dev/null; then 21359 if test -s conftest.err; then 21360 ac_cpp_err=$ac_c_preproc_warn_flag 21361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21362 else 21363 ac_cpp_err= 21364 fi 21365else 21366 ac_cpp_err=yes 21367fi 21368if test -z "$ac_cpp_err"; then 21369 ac_header_preproc=yes 21370else 21371 echo "$as_me: failed program was:" >&5 21372sed 's/^/| /' conftest.$ac_ext >&5 21373 21374 ac_header_preproc=no 21375fi 21376rm -f conftest.err conftest.$ac_ext 21377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21378echo "${ECHO_T}$ac_header_preproc" >&6 21379 21380# So? What about this header? 21381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21382 yes:no: ) 21383 { echo "$as_me:$LINENO: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&5 21384echo "$as_me: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21385 { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the compiler's result" >&5 21386echo "$as_me: WARNING: getopt.h: proceeding with the compiler's result" >&2;} 21387 ac_header_preproc=yes 21388 ;; 21389 no:yes:* ) 21390 { echo "$as_me:$LINENO: WARNING: getopt.h: present but cannot be compiled" >&5 21391echo "$as_me: WARNING: getopt.h: present but cannot be compiled" >&2;} 21392 { echo "$as_me:$LINENO: WARNING: getopt.h: check for missing prerequisite headers?" >&5 21393echo "$as_me: WARNING: getopt.h: check for missing prerequisite headers?" >&2;} 21394 { echo "$as_me:$LINENO: WARNING: getopt.h: see the Autoconf documentation" >&5 21395echo "$as_me: WARNING: getopt.h: see the Autoconf documentation" >&2;} 21396 { echo "$as_me:$LINENO: WARNING: getopt.h: section \"Present But Cannot Be Compiled\"" >&5 21397echo "$as_me: WARNING: getopt.h: section \"Present But Cannot Be Compiled\"" >&2;} 21398 { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5 21399echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;} 21400 { echo "$as_me:$LINENO: WARNING: getopt.h: in the future, the compiler will take precedence" >&5 21401echo "$as_me: WARNING: getopt.h: in the future, the compiler will take precedence" >&2;} 21402 ( 21403 cat <<\_ASBOX 21404## ------------------------------ ## 21405## Report this to anarxia@gmx.net ## 21406## ------------------------------ ## 21407_ASBOX 21408 ) | 21409 sed "s/^/$as_me: WARNING: /" >&2 21410 ;; 21411esac 21412echo "$as_me:$LINENO: checking for getopt.h" >&5 21413echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6 21414if test "${ac_cv_header_getopt_h+set}" = set; then 21415 echo $ECHO_N "(cached) $ECHO_C" >&6 21416else 21417 ac_cv_header_getopt_h=$ac_header_preproc 21418fi 21419echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5 21420echo "${ECHO_T}$ac_cv_header_getopt_h" >&6 21421 21422fi 21423if test $ac_cv_header_getopt_h = yes; then 21424 : 21425else 21426 GETOPT_INCLUDES="-I../getopt" 21427fi 21428 21429 21430 echo "$as_me:$LINENO: checking for getopt_long_only" >&5 21431echo $ECHO_N "checking for getopt_long_only... $ECHO_C" >&6 21432if test "${ac_cv_func_getopt_long_only+set}" = set; then 21433 echo $ECHO_N "(cached) $ECHO_C" >&6 21434else 21435 cat >conftest.$ac_ext <<_ACEOF 21436/* confdefs.h. */ 21437_ACEOF 21438cat confdefs.h >>conftest.$ac_ext 21439cat >>conftest.$ac_ext <<_ACEOF 21440/* end confdefs.h. */ 21441/* Define getopt_long_only to an innocuous variant, in case <limits.h> declares getopt_long_only. 21442 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21443#define getopt_long_only innocuous_getopt_long_only 21444 21445/* System header to define __stub macros and hopefully few prototypes, 21446 which can conflict with char getopt_long_only (); below. 21447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21448 <limits.h> exists even on freestanding compilers. */ 21449 21450#ifdef __STDC__ 21451# include <limits.h> 21452#else 21453# include <assert.h> 21454#endif 21455 21456#undef getopt_long_only 21457 21458/* Override any gcc2 internal prototype to avoid an error. */ 21459#ifdef __cplusplus 21460extern "C" 21461{ 21462#endif 21463/* We use char because int might match the return type of a gcc2 21464 builtin and then its argument prototype would still apply. */ 21465char getopt_long_only (); 21466/* The GNU C library defines this for functions which it implements 21467 to always fail with ENOSYS. Some functions are actually named 21468 something starting with __ and the normal name is an alias. */ 21469#if defined (__stub_getopt_long_only) || defined (__stub___getopt_long_only) 21470choke me 21471#else 21472char (*f) () = getopt_long_only; 21473#endif 21474#ifdef __cplusplus 21475} 21476#endif 21477 21478int 21479main () 21480{ 21481return f != getopt_long_only; 21482 ; 21483 return 0; 21484} 21485_ACEOF 21486rm -f conftest.$ac_objext conftest$ac_exeext 21487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21488 (eval $ac_link) 2>conftest.er1 21489 ac_status=$? 21490 grep -v '^ *+' conftest.er1 >conftest.err 21491 rm -f conftest.er1 21492 cat conftest.err >&5 21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21494 (exit $ac_status); } && 21495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21497 (eval $ac_try) 2>&5 21498 ac_status=$? 21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21500 (exit $ac_status); }; } && 21501 { ac_try='test -s conftest$ac_exeext' 21502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21503 (eval $ac_try) 2>&5 21504 ac_status=$? 21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21506 (exit $ac_status); }; }; then 21507 ac_cv_func_getopt_long_only=yes 21508else 21509 echo "$as_me: failed program was:" >&5 21510sed 's/^/| /' conftest.$ac_ext >&5 21511 21512ac_cv_func_getopt_long_only=no 21513fi 21514rm -f conftest.err conftest.$ac_objext \ 21515 conftest$ac_exeext conftest.$ac_ext 21516fi 21517echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long_only" >&5 21518echo "${ECHO_T}$ac_cv_func_getopt_long_only" >&6 21519if test $ac_cv_func_getopt_long_only = yes; then 21520 : 21521else 21522 21523 echo "$as_me:$LINENO: checking for getopt_long_only in -lgnugetopt" >&5 21524echo $ECHO_N "checking for getopt_long_only in -lgnugetopt... $ECHO_C" >&6 21525if test "${ac_cv_lib_gnugetopt_getopt_long_only+set}" = set; then 21526 echo $ECHO_N "(cached) $ECHO_C" >&6 21527else 21528 ac_check_lib_save_LIBS=$LIBS 21529LIBS="-lgnugetopt $LIBS" 21530cat >conftest.$ac_ext <<_ACEOF 21531/* confdefs.h. */ 21532_ACEOF 21533cat confdefs.h >>conftest.$ac_ext 21534cat >>conftest.$ac_ext <<_ACEOF 21535/* end confdefs.h. */ 21536 21537/* Override any gcc2 internal prototype to avoid an error. */ 21538#ifdef __cplusplus 21539extern "C" 21540#endif 21541/* We use char because int might match the return type of a gcc2 21542 builtin and then its argument prototype would still apply. */ 21543char getopt_long_only (); 21544int 21545main () 21546{ 21547getopt_long_only (); 21548 ; 21549 return 0; 21550} 21551_ACEOF 21552rm -f conftest.$ac_objext conftest$ac_exeext 21553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21554 (eval $ac_link) 2>conftest.er1 21555 ac_status=$? 21556 grep -v '^ *+' conftest.er1 >conftest.err 21557 rm -f conftest.er1 21558 cat conftest.err >&5 21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21560 (exit $ac_status); } && 21561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21563 (eval $ac_try) 2>&5 21564 ac_status=$? 21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21566 (exit $ac_status); }; } && 21567 { ac_try='test -s conftest$ac_exeext' 21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21569 (eval $ac_try) 2>&5 21570 ac_status=$? 21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21572 (exit $ac_status); }; }; then 21573 ac_cv_lib_gnugetopt_getopt_long_only=yes 21574else 21575 echo "$as_me: failed program was:" >&5 21576sed 's/^/| /' conftest.$ac_ext >&5 21577 21578ac_cv_lib_gnugetopt_getopt_long_only=no 21579fi 21580rm -f conftest.err conftest.$ac_objext \ 21581 conftest$ac_exeext conftest.$ac_ext 21582LIBS=$ac_check_lib_save_LIBS 21583fi 21584echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long_only" >&5 21585echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long_only" >&6 21586if test $ac_cv_lib_gnugetopt_getopt_long_only = yes; then 21587 GETOPT_LIB="-lgnugetopt" 21588else 21589 21590 echo "$as_me:$LINENO: checking for getopt_long_only in -liberty" >&5 21591echo $ECHO_N "checking for getopt_long_only in -liberty... $ECHO_C" >&6 21592if test "${ac_cv_lib_iberty_getopt_long_only+set}" = set; then 21593 echo $ECHO_N "(cached) $ECHO_C" >&6 21594else 21595 ac_check_lib_save_LIBS=$LIBS 21596LIBS="-liberty $LIBS" 21597cat >conftest.$ac_ext <<_ACEOF 21598/* confdefs.h. */ 21599_ACEOF 21600cat confdefs.h >>conftest.$ac_ext 21601cat >>conftest.$ac_ext <<_ACEOF 21602/* end confdefs.h. */ 21603 21604/* Override any gcc2 internal prototype to avoid an error. */ 21605#ifdef __cplusplus 21606extern "C" 21607#endif 21608/* We use char because int might match the return type of a gcc2 21609 builtin and then its argument prototype would still apply. */ 21610char getopt_long_only (); 21611int 21612main () 21613{ 21614getopt_long_only (); 21615 ; 21616 return 0; 21617} 21618_ACEOF 21619rm -f conftest.$ac_objext conftest$ac_exeext 21620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21621 (eval $ac_link) 2>conftest.er1 21622 ac_status=$? 21623 grep -v '^ *+' conftest.er1 >conftest.err 21624 rm -f conftest.er1 21625 cat conftest.err >&5 21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21627 (exit $ac_status); } && 21628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21630 (eval $ac_try) 2>&5 21631 ac_status=$? 21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21633 (exit $ac_status); }; } && 21634 { ac_try='test -s conftest$ac_exeext' 21635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21636 (eval $ac_try) 2>&5 21637 ac_status=$? 21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21639 (exit $ac_status); }; }; then 21640 ac_cv_lib_iberty_getopt_long_only=yes 21641else 21642 echo "$as_me: failed program was:" >&5 21643sed 's/^/| /' conftest.$ac_ext >&5 21644 21645ac_cv_lib_iberty_getopt_long_only=no 21646fi 21647rm -f conftest.err conftest.$ac_objext \ 21648 conftest$ac_exeext conftest.$ac_ext 21649LIBS=$ac_check_lib_save_LIBS 21650fi 21651echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_getopt_long_only" >&5 21652echo "${ECHO_T}$ac_cv_lib_iberty_getopt_long_only" >&6 21653if test $ac_cv_lib_iberty_getopt_long_only = yes; then 21654 GETOPT_LIB="-liberty" 21655else 21656 21657 ac_sources="getopt/getopt.c getopt/getopt1.c" 21658ac_dests="jclassinfo/getopt.c jclassinfo/getopt1.c" 21659while test -n "$ac_sources"; do 21660 set $ac_dests; ac_dest=$1; shift; ac_dests=$* 21661 set $ac_sources; ac_source=$1; shift; ac_sources=$* 21662 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" 21663done 21664 ac_config_links="$ac_config_links $ac_config_links_1" 21665 21666 GETOPT_OBJS="getopt.$OBJEXT getopt1.$OBJEXT" 21667 21668fi 21669 21670 21671fi 21672 21673 21674fi 21675 21676 21677fi 21678 21679 21680 21681if test x$enable_jclassinfo = xyes; then 21682 ENABLE_JCLASSINFO_TRUE= 21683 ENABLE_JCLASSINFO_FALSE='#' 21684else 21685 ENABLE_JCLASSINFO_TRUE='#' 21686 ENABLE_JCLASSINFO_FALSE= 21687fi 21688 21689 21690 21691# Check whether --with-html-dir or --without-html-dir was given. 21692if test "${with_html_dir+set}" = set; then 21693 withval="$with_html_dir" 21694 21695fi; 21696 21697if test "x$with_html_dir" = "x" ; then 21698 HTML_DIR='${datadir}/doc/libjclass/html' 21699else 21700 HTML_DIR=$with_html_dir 21701fi 21702 21703 21704 21705# Check whether --enable-gtk-doc or --disable-gtk-doc was given. 21706if test "${enable_gtk_doc+set}" = set; then 21707 enableval="$enable_gtk_doc" 21708 enable_gtk_doc="$enableval" 21709else 21710 enable_gtk_doc=no 21711fi; 21712 21713if test x$enable_gtk_doc = xauto ; then 21714 gtk_doc_min_version=1.0 21715 echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5 21716echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6 21717 if pkg-config --atleast-version=$gtk_doc_min_version gtk-doc; then 21718 echo "$as_me:$LINENO: result: yes" >&5 21719echo "${ECHO_T}yes" >&6 21720 enable_gtk_doc=yes 21721 else 21722 echo "$as_me:$LINENO: result: no" >&5 21723echo "${ECHO_T}no" >&6 21724 enable_gtk_doc=no 21725 fi 21726fi 21727 21728 21729 21730if test x$enable_gtk_doc = xyes; then 21731 ENABLE_GTK_DOC_TRUE= 21732 ENABLE_GTK_DOC_FALSE='#' 21733else 21734 ENABLE_GTK_DOC_TRUE='#' 21735 ENABLE_GTK_DOC_FALSE= 21736fi 21737 21738 21739 ac_config_files="$ac_config_files jclass.pc jclassinfo.spec Makefile jclass/Makefile jclassinfo/Makefile xml/Makefile docs/Makefile" 21740 21741 21742cat >confcache <<\_ACEOF 21743# This file is a shell script that caches the results of configure 21744# tests run on this system so they can be shared between configure 21745# scripts and configure runs, see configure's option --config-cache. 21746# It is not useful on other systems. If it contains results you don't 21747# want to keep, you may remove or edit it. 21748# 21749# config.status only pays attention to the cache file if you give it 21750# the --recheck option to rerun configure. 21751# 21752# `ac_cv_env_foo' variables (set or unset) will be overridden when 21753# loading this file, other *unset* `ac_cv_foo' will be assigned the 21754# following values. 21755 21756_ACEOF 21757 21758# The following way of writing the cache mishandles newlines in values, 21759# but we know of no workaround that is simple, portable, and efficient. 21760# So, don't put newlines in cache variables' values. 21761# Ultrix sh set writes to stderr and can't be redirected directly, 21762# and sets the high bit in the cache file unless we assign to the vars. 21763{ 21764 (set) 2>&1 | 21765 case `(ac_space=' '; set | grep ac_space) 2>&1` in 21766 *ac_space=\ *) 21767 # `set' does not quote correctly, so add quotes (double-quote 21768 # substitution turns \\\\ into \\, and sed turns \\ into \). 21769 sed -n \ 21770 "s/'/'\\\\''/g; 21771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21772 ;; 21773 *) 21774 # `set' quotes correctly as required by POSIX, so do not add quotes. 21775 sed -n \ 21776 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 21777 ;; 21778 esac; 21779} | 21780 sed ' 21781 t clear 21782 : clear 21783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21784 t end 21785 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21786 : end' >>confcache 21787if diff $cache_file confcache >/dev/null 2>&1; then :; else 21788 if test -w $cache_file; then 21789 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 21790 cat confcache >$cache_file 21791 else 21792 echo "not updating unwritable cache $cache_file" 21793 fi 21794fi 21795rm -f confcache 21796 21797test "x$prefix" = xNONE && prefix=$ac_default_prefix 21798# Let make expand exec_prefix. 21799test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21800 21801# VPATH may cause trouble with some makes, so we remove $(srcdir), 21802# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21803# trailing colons and then remove the whole line if VPATH becomes empty 21804# (actually we leave an empty line to preserve line numbers). 21805if test "x$srcdir" = x.; then 21806 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21807s/:*\$(srcdir):*/:/; 21808s/:*\${srcdir}:*/:/; 21809s/:*@srcdir@:*/:/; 21810s/^\([^=]*=[ ]*\):*/\1/; 21811s/:*$//; 21812s/^[^=]*=[ ]*$//; 21813}' 21814fi 21815 21816DEFS=-DHAVE_CONFIG_H 21817 21818ac_libobjs= 21819ac_ltlibobjs= 21820for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21821 # 1. Remove the extension, and $U if already installed. 21822 ac_i=`echo "$ac_i" | 21823 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 21824 # 2. Add them. 21825 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 21826 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 21827done 21828LIBOBJS=$ac_libobjs 21829 21830LTLIBOBJS=$ac_ltlibobjs 21831 21832 21833if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21834 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21835Usually this means the macro was only invoked conditionally." >&5 21836echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21837Usually this means the macro was only invoked conditionally." >&2;} 21838 { (exit 1); exit 1; }; } 21839fi 21840if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21841 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21842Usually this means the macro was only invoked conditionally." >&5 21843echo "$as_me: error: conditional \"AMDEP\" was never defined. 21844Usually this means the macro was only invoked conditionally." >&2;} 21845 { (exit 1); exit 1; }; } 21846fi 21847if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21848 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21849Usually this means the macro was only invoked conditionally." >&5 21850echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21851Usually this means the macro was only invoked conditionally." >&2;} 21852 { (exit 1); exit 1; }; } 21853fi 21854if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21855 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21856Usually this means the macro was only invoked conditionally." >&5 21857echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21858Usually this means the macro was only invoked conditionally." >&2;} 21859 { (exit 1); exit 1; }; } 21860fi 21861if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21862 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21863Usually this means the macro was only invoked conditionally." >&5 21864echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21865Usually this means the macro was only invoked conditionally." >&2;} 21866 { (exit 1); exit 1; }; } 21867fi 21868if test -z "${ENABLE_JCLASSINFO_TRUE}" && test -z "${ENABLE_JCLASSINFO_FALSE}"; then 21869 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_JCLASSINFO\" was never defined. 21870Usually this means the macro was only invoked conditionally." >&5 21871echo "$as_me: error: conditional \"ENABLE_JCLASSINFO\" was never defined. 21872Usually this means the macro was only invoked conditionally." >&2;} 21873 { (exit 1); exit 1; }; } 21874fi 21875if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 21876 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined. 21877Usually this means the macro was only invoked conditionally." >&5 21878echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined. 21879Usually this means the macro was only invoked conditionally." >&2;} 21880 { (exit 1); exit 1; }; } 21881fi 21882 21883: ${CONFIG_STATUS=./config.status} 21884ac_clean_files_save=$ac_clean_files 21885ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21886{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21887echo "$as_me: creating $CONFIG_STATUS" >&6;} 21888cat >$CONFIG_STATUS <<_ACEOF 21889#! $SHELL 21890# Generated by $as_me. 21891# Run this file to recreate the current configuration. 21892# Compiler output produced by configure, useful for debugging 21893# configure, is in config.log if it exists. 21894 21895debug=false 21896ac_cs_recheck=false 21897ac_cs_silent=false 21898SHELL=\${CONFIG_SHELL-$SHELL} 21899_ACEOF 21900 21901cat >>$CONFIG_STATUS <<\_ACEOF 21902## --------------------- ## 21903## M4sh Initialization. ## 21904## --------------------- ## 21905 21906# Be Bourne compatible 21907if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21908 emulate sh 21909 NULLCMD=: 21910 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21911 # is contrary to our usage. Disable this feature. 21912 alias -g '${1+"$@"}'='"$@"' 21913elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21914 set -o posix 21915fi 21916DUALCASE=1; export DUALCASE # for MKS sh 21917 21918# Support unset when possible. 21919if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21920 as_unset=unset 21921else 21922 as_unset=false 21923fi 21924 21925 21926# Work around bugs in pre-3.0 UWIN ksh. 21927$as_unset ENV MAIL MAILPATH 21928PS1='$ ' 21929PS2='> ' 21930PS4='+ ' 21931 21932# NLS nuisances. 21933for as_var in \ 21934 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21935 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21936 LC_TELEPHONE LC_TIME 21937do 21938 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21939 eval $as_var=C; export $as_var 21940 else 21941 $as_unset $as_var 21942 fi 21943done 21944 21945# Required to use basename. 21946if expr a : '\(a\)' >/dev/null 2>&1; then 21947 as_expr=expr 21948else 21949 as_expr=false 21950fi 21951 21952if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 21953 as_basename=basename 21954else 21955 as_basename=false 21956fi 21957 21958 21959# Name of the executable. 21960as_me=`$as_basename "$0" || 21961$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21962 X"$0" : 'X\(//\)$' \| \ 21963 X"$0" : 'X\(/\)$' \| \ 21964 . : '\(.\)' 2>/dev/null || 21965echo X/"$0" | 21966 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 21967 /^X\/\(\/\/\)$/{ s//\1/; q; } 21968 /^X\/\(\/\).*/{ s//\1/; q; } 21969 s/.*/./; q'` 21970 21971 21972# PATH needs CR, and LINENO needs CR and PATH. 21973# Avoid depending upon Character Ranges. 21974as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21975as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21976as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21977as_cr_digits='0123456789' 21978as_cr_alnum=$as_cr_Letters$as_cr_digits 21979 21980# The user is always right. 21981if test "${PATH_SEPARATOR+set}" != set; then 21982 echo "#! /bin/sh" >conf$$.sh 21983 echo "exit 0" >>conf$$.sh 21984 chmod +x conf$$.sh 21985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21986 PATH_SEPARATOR=';' 21987 else 21988 PATH_SEPARATOR=: 21989 fi 21990 rm -f conf$$.sh 21991fi 21992 21993 21994 as_lineno_1=$LINENO 21995 as_lineno_2=$LINENO 21996 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21997 test "x$as_lineno_1" != "x$as_lineno_2" && 21998 test "x$as_lineno_3" = "x$as_lineno_2" || { 21999 # Find who we are. Look in the path if we contain no path at all 22000 # relative or not. 22001 case $0 in 22002 *[\\/]* ) as_myself=$0 ;; 22003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22004for as_dir in $PATH 22005do 22006 IFS=$as_save_IFS 22007 test -z "$as_dir" && as_dir=. 22008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22009done 22010 22011 ;; 22012 esac 22013 # We did not find ourselves, most probably we were run as `sh COMMAND' 22014 # in which case we are not to be found in the path. 22015 if test "x$as_myself" = x; then 22016 as_myself=$0 22017 fi 22018 if test ! -f "$as_myself"; then 22019 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22020echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22021 { (exit 1); exit 1; }; } 22022 fi 22023 case $CONFIG_SHELL in 22024 '') 22025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22026for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22027do 22028 IFS=$as_save_IFS 22029 test -z "$as_dir" && as_dir=. 22030 for as_base in sh bash ksh sh5; do 22031 case $as_dir in 22032 /*) 22033 if ("$as_dir/$as_base" -c ' 22034 as_lineno_1=$LINENO 22035 as_lineno_2=$LINENO 22036 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22037 test "x$as_lineno_1" != "x$as_lineno_2" && 22038 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22039 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22040 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22041 CONFIG_SHELL=$as_dir/$as_base 22042 export CONFIG_SHELL 22043 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22044 fi;; 22045 esac 22046 done 22047done 22048;; 22049 esac 22050 22051 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22052 # uniformly replaced by the line number. The first 'sed' inserts a 22053 # line-number line before each line; the second 'sed' does the real 22054 # work. The second script uses 'N' to pair each line-number line 22055 # with the numbered line, and appends trailing '-' during 22056 # substitution so that $LINENO is not a special case at line end. 22057 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22058 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22059 sed '=' <$as_myself | 22060 sed ' 22061 N 22062 s,$,-, 22063 : loop 22064 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22065 t loop 22066 s,-$,, 22067 s,^['$as_cr_digits']*\n,, 22068 ' >$as_me.lineno && 22069 chmod +x $as_me.lineno || 22070 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22071echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22072 { (exit 1); exit 1; }; } 22073 22074 # Don't try to exec as it changes $[0], causing all sort of problems 22075 # (the dirname of $[0] is not the place where we might find the 22076 # original and so on. Autoconf is especially sensible to this). 22077 . ./$as_me.lineno 22078 # Exit status is that of the last command. 22079 exit 22080} 22081 22082 22083case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22084 *c*,-n*) ECHO_N= ECHO_C=' 22085' ECHO_T=' ' ;; 22086 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22087 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22088esac 22089 22090if expr a : '\(a\)' >/dev/null 2>&1; then 22091 as_expr=expr 22092else 22093 as_expr=false 22094fi 22095 22096rm -f conf$$ conf$$.exe conf$$.file 22097echo >conf$$.file 22098if ln -s conf$$.file conf$$ 2>/dev/null; then 22099 # We could just check for DJGPP; but this test a) works b) is more generic 22100 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22101 if test -f conf$$.exe; then 22102 # Don't use ln at all; we don't have any links 22103 as_ln_s='cp -p' 22104 else 22105 as_ln_s='ln -s' 22106 fi 22107elif ln conf$$.file conf$$ 2>/dev/null; then 22108 as_ln_s=ln 22109else 22110 as_ln_s='cp -p' 22111fi 22112rm -f conf$$ conf$$.exe conf$$.file 22113 22114if mkdir -p . 2>/dev/null; then 22115 as_mkdir_p=: 22116else 22117 test -d ./-p && rmdir ./-p 22118 as_mkdir_p=false 22119fi 22120 22121as_executable_p="test -f" 22122 22123# Sed expression to map a string onto a valid CPP name. 22124as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22125 22126# Sed expression to map a string onto a valid variable name. 22127as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22128 22129 22130# IFS 22131# We need space, tab and new line, in precisely that order. 22132as_nl=' 22133' 22134IFS=" $as_nl" 22135 22136# CDPATH. 22137$as_unset CDPATH 22138 22139exec 6>&1 22140 22141# Open the log real soon, to keep \$[0] and so on meaningful, and to 22142# report actual input values of CONFIG_FILES etc. instead of their 22143# values after options handling. Logging --version etc. is OK. 22144exec 5>>config.log 22145{ 22146 echo 22147 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22148## Running $as_me. ## 22149_ASBOX 22150} >&5 22151cat >&5 <<_CSEOF 22152 22153This file was extended by jclassinfo $as_me 0.19.1, which was 22154generated by GNU Autoconf 2.59. Invocation command line was 22155 22156 CONFIG_FILES = $CONFIG_FILES 22157 CONFIG_HEADERS = $CONFIG_HEADERS 22158 CONFIG_LINKS = $CONFIG_LINKS 22159 CONFIG_COMMANDS = $CONFIG_COMMANDS 22160 $ $0 $@ 22161 22162_CSEOF 22163echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22164echo >&5 22165_ACEOF 22166 22167# Files that config.status was made for. 22168if test -n "$ac_config_files"; then 22169 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22170fi 22171 22172if test -n "$ac_config_headers"; then 22173 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22174fi 22175 22176if test -n "$ac_config_links"; then 22177 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22178fi 22179 22180if test -n "$ac_config_commands"; then 22181 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22182fi 22183 22184cat >>$CONFIG_STATUS <<\_ACEOF 22185 22186ac_cs_usage="\ 22187\`$as_me' instantiates files from templates according to the 22188current configuration. 22189 22190Usage: $0 [OPTIONS] [FILE]... 22191 22192 -h, --help print this help, then exit 22193 -V, --version print version number, then exit 22194 -q, --quiet do not print progress messages 22195 -d, --debug don't remove temporary files 22196 --recheck update $as_me by reconfiguring in the same conditions 22197 --file=FILE[:TEMPLATE] 22198 instantiate the configuration file FILE 22199 --header=FILE[:TEMPLATE] 22200 instantiate the configuration header FILE 22201 22202Configuration files: 22203$config_files 22204 22205Configuration headers: 22206$config_headers 22207 22208Configuration links: 22209$config_links 22210 22211Configuration commands: 22212$config_commands 22213 22214Report bugs to <bug-autoconf@gnu.org>." 22215_ACEOF 22216 22217cat >>$CONFIG_STATUS <<_ACEOF 22218ac_cs_version="\\ 22219jclassinfo config.status 0.19.1 22220configured by $0, generated by GNU Autoconf 2.59, 22221 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22222 22223Copyright (C) 2003 Free Software Foundation, Inc. 22224This config.status script is free software; the Free Software Foundation 22225gives unlimited permission to copy, distribute and modify it." 22226srcdir=$srcdir 22227INSTALL="$INSTALL" 22228_ACEOF 22229 22230cat >>$CONFIG_STATUS <<\_ACEOF 22231# If no file are specified by the user, then we need to provide default 22232# value. By we need to know if files were specified by the user. 22233ac_need_defaults=: 22234while test $# != 0 22235do 22236 case $1 in 22237 --*=*) 22238 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22239 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22240 ac_shift=: 22241 ;; 22242 -*) 22243 ac_option=$1 22244 ac_optarg=$2 22245 ac_shift=shift 22246 ;; 22247 *) # This is not an option, so the user has probably given explicit 22248 # arguments. 22249 ac_option=$1 22250 ac_need_defaults=false;; 22251 esac 22252 22253 case $ac_option in 22254 # Handling of the options. 22255_ACEOF 22256cat >>$CONFIG_STATUS <<\_ACEOF 22257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22258 ac_cs_recheck=: ;; 22259 --version | --vers* | -V ) 22260 echo "$ac_cs_version"; exit 0 ;; 22261 --he | --h) 22262 # Conflict between --help and --header 22263 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22264Try \`$0 --help' for more information." >&5 22265echo "$as_me: error: ambiguous option: $1 22266Try \`$0 --help' for more information." >&2;} 22267 { (exit 1); exit 1; }; };; 22268 --help | --hel | -h ) 22269 echo "$ac_cs_usage"; exit 0 ;; 22270 --debug | --d* | -d ) 22271 debug=: ;; 22272 --file | --fil | --fi | --f ) 22273 $ac_shift 22274 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22275 ac_need_defaults=false;; 22276 --header | --heade | --head | --hea ) 22277 $ac_shift 22278 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22279 ac_need_defaults=false;; 22280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22281 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22282 ac_cs_silent=: ;; 22283 22284 # This is an error. 22285 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22286Try \`$0 --help' for more information." >&5 22287echo "$as_me: error: unrecognized option: $1 22288Try \`$0 --help' for more information." >&2;} 22289 { (exit 1); exit 1; }; } ;; 22290 22291 *) ac_config_targets="$ac_config_targets $1" ;; 22292 22293 esac 22294 shift 22295done 22296 22297ac_configure_extra_args= 22298 22299if $ac_cs_silent; then 22300 exec 6>/dev/null 22301 ac_configure_extra_args="$ac_configure_extra_args --silent" 22302fi 22303 22304_ACEOF 22305cat >>$CONFIG_STATUS <<_ACEOF 22306if \$ac_cs_recheck; then 22307 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22308 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22309fi 22310 22311_ACEOF 22312 22313cat >>$CONFIG_STATUS <<_ACEOF 22314# 22315# INIT-COMMANDS section. 22316# 22317 22318AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22319 22320_ACEOF 22321 22322 22323 22324cat >>$CONFIG_STATUS <<\_ACEOF 22325for ac_config_target in $ac_config_targets 22326do 22327 case "$ac_config_target" in 22328 # Handling of arguments. 22329 "jclass.pc" ) CONFIG_FILES="$CONFIG_FILES jclass.pc" ;; 22330 "jclassinfo.spec" ) CONFIG_FILES="$CONFIG_FILES jclassinfo.spec" ;; 22331 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22332 "jclass/Makefile" ) CONFIG_FILES="$CONFIG_FILES jclass/Makefile" ;; 22333 "jclassinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES jclassinfo/Makefile" ;; 22334 "xml/Makefile" ) CONFIG_FILES="$CONFIG_FILES xml/Makefile" ;; 22335 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 22336 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; 22337 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22338 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22339 "jclassconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS jclassconfig.h" ;; 22340 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22341echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22342 { (exit 1); exit 1; }; };; 22343 esac 22344done 22345 22346# If the user did not use the arguments to specify the items to instantiate, 22347# then the envvar interface is used. Set only those that are not. 22348# We use the long form for the default assignment because of an extremely 22349# bizarre bug on SunOS 4.1.3. 22350if $ac_need_defaults; then 22351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22352 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22353 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 22354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22355fi 22356 22357# Have a temporary directory for convenience. Make it in the build tree 22358# simply because there is no reason to put it here, and in addition, 22359# creating and moving files from /tmp can sometimes cause problems. 22360# Create a temporary directory, and hook for its removal unless debugging. 22361$debug || 22362{ 22363 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22364 trap '{ (exit 1); exit 1; }' 1 2 13 15 22365} 22366 22367# Create a (secure) tmp directory for tmp files. 22368 22369{ 22370 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 22371 test -n "$tmp" && test -d "$tmp" 22372} || 22373{ 22374 tmp=./confstat$$-$RANDOM 22375 (umask 077 && mkdir $tmp) 22376} || 22377{ 22378 echo "$me: cannot create a temporary directory in ." >&2 22379 { (exit 1); exit 1; } 22380} 22381 22382_ACEOF 22383 22384cat >>$CONFIG_STATUS <<_ACEOF 22385 22386# 22387# CONFIG_FILES section. 22388# 22389 22390# No need to generate the scripts if there are no CONFIG_FILES. 22391# This happens for instance when ./config.status config.h 22392if test -n "\$CONFIG_FILES"; then 22393 # Protect against being on the right side of a sed subst in config.status. 22394 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22395 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22396s,@SHELL@,$SHELL,;t t 22397s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 22398s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22399s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22400s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22401s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22402s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22403s,@exec_prefix@,$exec_prefix,;t t 22404s,@prefix@,$prefix,;t t 22405s,@program_transform_name@,$program_transform_name,;t t 22406s,@bindir@,$bindir,;t t 22407s,@sbindir@,$sbindir,;t t 22408s,@libexecdir@,$libexecdir,;t t 22409s,@datadir@,$datadir,;t t 22410s,@sysconfdir@,$sysconfdir,;t t 22411s,@sharedstatedir@,$sharedstatedir,;t t 22412s,@localstatedir@,$localstatedir,;t t 22413s,@libdir@,$libdir,;t t 22414s,@includedir@,$includedir,;t t 22415s,@oldincludedir@,$oldincludedir,;t t 22416s,@infodir@,$infodir,;t t 22417s,@mandir@,$mandir,;t t 22418s,@build_alias@,$build_alias,;t t 22419s,@host_alias@,$host_alias,;t t 22420s,@target_alias@,$target_alias,;t t 22421s,@DEFS@,$DEFS,;t t 22422s,@ECHO_C@,$ECHO_C,;t t 22423s,@ECHO_N@,$ECHO_N,;t t 22424s,@ECHO_T@,$ECHO_T,;t t 22425s,@LIBS@,$LIBS,;t t 22426s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22427s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22428s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22429s,@CYGPATH_W@,$CYGPATH_W,;t t 22430s,@PACKAGE@,$PACKAGE,;t t 22431s,@VERSION@,$VERSION,;t t 22432s,@ACLOCAL@,$ACLOCAL,;t t 22433s,@AUTOCONF@,$AUTOCONF,;t t 22434s,@AUTOMAKE@,$AUTOMAKE,;t t 22435s,@AUTOHEADER@,$AUTOHEADER,;t t 22436s,@MAKEINFO@,$MAKEINFO,;t t 22437s,@AMTAR@,$AMTAR,;t t 22438s,@install_sh@,$install_sh,;t t 22439s,@STRIP@,$STRIP,;t t 22440s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22441s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 22442s,@AWK@,$AWK,;t t 22443s,@SET_MAKE@,$SET_MAKE,;t t 22444s,@am__leading_dot@,$am__leading_dot,;t t 22445s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 22446s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 22447s,@MAINT@,$MAINT,;t t 22448s,@JCLASS_CURRENT@,$JCLASS_CURRENT,;t t 22449s,@JCLASS_RELEASE@,$JCLASS_RELEASE,;t t 22450s,@JCLASS_AGE@,$JCLASS_AGE,;t t 22451s,@JCLASS_VERSION@,$JCLASS_VERSION,;t t 22452s,@build@,$build,;t t 22453s,@build_cpu@,$build_cpu,;t t 22454s,@build_vendor@,$build_vendor,;t t 22455s,@build_os@,$build_os,;t t 22456s,@host@,$host,;t t 22457s,@host_cpu@,$host_cpu,;t t 22458s,@host_vendor@,$host_vendor,;t t 22459s,@host_os@,$host_os,;t t 22460s,@CC@,$CC,;t t 22461s,@CFLAGS@,$CFLAGS,;t t 22462s,@LDFLAGS@,$LDFLAGS,;t t 22463s,@CPPFLAGS@,$CPPFLAGS,;t t 22464s,@ac_ct_CC@,$ac_ct_CC,;t t 22465s,@EXEEXT@,$EXEEXT,;t t 22466s,@OBJEXT@,$OBJEXT,;t t 22467s,@DEPDIR@,$DEPDIR,;t t 22468s,@am__include@,$am__include,;t t 22469s,@am__quote@,$am__quote,;t t 22470s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 22471s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 22472s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22473s,@CCDEPMODE@,$CCDEPMODE,;t t 22474s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 22475s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 22476s,@EGREP@,$EGREP,;t t 22477s,@LN_S@,$LN_S,;t t 22478s,@ECHO@,$ECHO,;t t 22479s,@AR@,$AR,;t t 22480s,@ac_ct_AR@,$ac_ct_AR,;t t 22481s,@RANLIB@,$RANLIB,;t t 22482s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22483s,@DLLTOOL@,$DLLTOOL,;t t 22484s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t 22485s,@AS@,$AS,;t t 22486s,@ac_ct_AS@,$ac_ct_AS,;t t 22487s,@OBJDUMP@,$OBJDUMP,;t t 22488s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t 22489s,@CPP@,$CPP,;t t 22490s,@CXX@,$CXX,;t t 22491s,@CXXFLAGS@,$CXXFLAGS,;t t 22492s,@ac_ct_CXX@,$ac_ct_CXX,;t t 22493s,@CXXDEPMODE@,$CXXDEPMODE,;t t 22494s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 22495s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 22496s,@CXXCPP@,$CXXCPP,;t t 22497s,@F77@,$F77,;t t 22498s,@FFLAGS@,$FFLAGS,;t t 22499s,@ac_ct_F77@,$ac_ct_F77,;t t 22500s,@LIBTOOL@,$LIBTOOL,;t t 22501s,@GETOPT_INCLUDES@,$GETOPT_INCLUDES,;t t 22502s,@GETOPT_LIB@,$GETOPT_LIB,;t t 22503s,@GETOPT_OBJS@,$GETOPT_OBJS,;t t 22504s,@ENABLE_JCLASSINFO_TRUE@,$ENABLE_JCLASSINFO_TRUE,;t t 22505s,@ENABLE_JCLASSINFO_FALSE@,$ENABLE_JCLASSINFO_FALSE,;t t 22506s,@HTML_DIR@,$HTML_DIR,;t t 22507s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t 22508s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t 22509s,@LIBOBJS@,$LIBOBJS,;t t 22510s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22511CEOF 22512 22513_ACEOF 22514 22515 cat >>$CONFIG_STATUS <<\_ACEOF 22516 # Split the substitutions into bite-sized pieces for seds with 22517 # small command number limits, like on Digital OSF/1 and HP-UX. 22518 ac_max_sed_lines=48 22519 ac_sed_frag=1 # Number of current file. 22520 ac_beg=1 # First line for current file. 22521 ac_end=$ac_max_sed_lines # Line after last line for current file. 22522 ac_more_lines=: 22523 ac_sed_cmds= 22524 while $ac_more_lines; do 22525 if test $ac_beg -gt 1; then 22526 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22527 else 22528 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22529 fi 22530 if test ! -s $tmp/subs.frag; then 22531 ac_more_lines=false 22532 else 22533 # The purpose of the label and of the branching condition is to 22534 # speed up the sed processing (if there are no `@' at all, there 22535 # is no need to browse any of the substitutions). 22536 # These are the two extra sed commands mentioned above. 22537 (echo ':t 22538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22539 if test -z "$ac_sed_cmds"; then 22540 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22541 else 22542 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22543 fi 22544 ac_sed_frag=`expr $ac_sed_frag + 1` 22545 ac_beg=$ac_end 22546 ac_end=`expr $ac_end + $ac_max_sed_lines` 22547 fi 22548 done 22549 if test -z "$ac_sed_cmds"; then 22550 ac_sed_cmds=cat 22551 fi 22552fi # test -n "$CONFIG_FILES" 22553 22554_ACEOF 22555cat >>$CONFIG_STATUS <<\_ACEOF 22556for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22557 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22558 case $ac_file in 22559 - | *:- | *:-:* ) # input from stdin 22560 cat >$tmp/stdin 22561 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22562 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22563 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22564 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22565 * ) ac_file_in=$ac_file.in ;; 22566 esac 22567 22568 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22569 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22570$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22571 X"$ac_file" : 'X\(//\)[^/]' \| \ 22572 X"$ac_file" : 'X\(//\)$' \| \ 22573 X"$ac_file" : 'X\(/\)' \| \ 22574 . : '\(.\)' 2>/dev/null || 22575echo X"$ac_file" | 22576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22577 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22578 /^X\(\/\/\)$/{ s//\1/; q; } 22579 /^X\(\/\).*/{ s//\1/; q; } 22580 s/.*/./; q'` 22581 { if $as_mkdir_p; then 22582 mkdir -p "$ac_dir" 22583 else 22584 as_dir="$ac_dir" 22585 as_dirs= 22586 while test ! -d "$as_dir"; do 22587 as_dirs="$as_dir $as_dirs" 22588 as_dir=`(dirname "$as_dir") 2>/dev/null || 22589$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22590 X"$as_dir" : 'X\(//\)[^/]' \| \ 22591 X"$as_dir" : 'X\(//\)$' \| \ 22592 X"$as_dir" : 'X\(/\)' \| \ 22593 . : '\(.\)' 2>/dev/null || 22594echo X"$as_dir" | 22595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22596 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22597 /^X\(\/\/\)$/{ s//\1/; q; } 22598 /^X\(\/\).*/{ s//\1/; q; } 22599 s/.*/./; q'` 22600 done 22601 test ! -n "$as_dirs" || mkdir $as_dirs 22602 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22603echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22604 { (exit 1); exit 1; }; }; } 22605 22606 ac_builddir=. 22607 22608if test "$ac_dir" != .; then 22609 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22610 # A "../" for each directory in $ac_dir_suffix. 22611 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22612else 22613 ac_dir_suffix= ac_top_builddir= 22614fi 22615 22616case $srcdir in 22617 .) # No --srcdir option. We are building in place. 22618 ac_srcdir=. 22619 if test -z "$ac_top_builddir"; then 22620 ac_top_srcdir=. 22621 else 22622 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22623 fi ;; 22624 [\\/]* | ?:[\\/]* ) # Absolute path. 22625 ac_srcdir=$srcdir$ac_dir_suffix; 22626 ac_top_srcdir=$srcdir ;; 22627 *) # Relative path. 22628 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22629 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22630esac 22631 22632# Do not use `cd foo && pwd` to compute absolute paths, because 22633# the directories may not exist. 22634case `pwd` in 22635.) ac_abs_builddir="$ac_dir";; 22636*) 22637 case "$ac_dir" in 22638 .) ac_abs_builddir=`pwd`;; 22639 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22640 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22641 esac;; 22642esac 22643case $ac_abs_builddir in 22644.) ac_abs_top_builddir=${ac_top_builddir}.;; 22645*) 22646 case ${ac_top_builddir}. in 22647 .) ac_abs_top_builddir=$ac_abs_builddir;; 22648 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22649 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22650 esac;; 22651esac 22652case $ac_abs_builddir in 22653.) ac_abs_srcdir=$ac_srcdir;; 22654*) 22655 case $ac_srcdir in 22656 .) ac_abs_srcdir=$ac_abs_builddir;; 22657 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22658 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22659 esac;; 22660esac 22661case $ac_abs_builddir in 22662.) ac_abs_top_srcdir=$ac_top_srcdir;; 22663*) 22664 case $ac_top_srcdir in 22665 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22666 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22667 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22668 esac;; 22669esac 22670 22671 22672 case $INSTALL in 22673 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22674 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 22675 esac 22676 22677 # Let's still pretend it is `configure' which instantiates (i.e., don't 22678 # use $as_me), people would be surprised to read: 22679 # /* config.h. Generated by config.status. */ 22680 if test x"$ac_file" = x-; then 22681 configure_input= 22682 else 22683 configure_input="$ac_file. " 22684 fi 22685 configure_input=$configure_input"Generated from `echo $ac_file_in | 22686 sed 's,.*/,,'` by configure." 22687 22688 # First look for the input files in the build tree, otherwise in the 22689 # src tree. 22690 ac_file_inputs=`IFS=: 22691 for f in $ac_file_in; do 22692 case $f in 22693 -) echo $tmp/stdin ;; 22694 [\\/$]*) 22695 # Absolute (can't be DOS-style, as IFS=:) 22696 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22697echo "$as_me: error: cannot find input file: $f" >&2;} 22698 { (exit 1); exit 1; }; } 22699 echo "$f";; 22700 *) # Relative 22701 if test -f "$f"; then 22702 # Build tree 22703 echo "$f" 22704 elif test -f "$srcdir/$f"; then 22705 # Source tree 22706 echo "$srcdir/$f" 22707 else 22708 # /dev/null tree 22709 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22710echo "$as_me: error: cannot find input file: $f" >&2;} 22711 { (exit 1); exit 1; }; } 22712 fi;; 22713 esac 22714 done` || { (exit 1); exit 1; } 22715 22716 if test x"$ac_file" != x-; then 22717 { echo "$as_me:$LINENO: creating $ac_file" >&5 22718echo "$as_me: creating $ac_file" >&6;} 22719 rm -f "$ac_file" 22720 fi 22721_ACEOF 22722cat >>$CONFIG_STATUS <<_ACEOF 22723 sed "$ac_vpsub 22724$extrasub 22725_ACEOF 22726cat >>$CONFIG_STATUS <<\_ACEOF 22727:t 22728/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22729s,@configure_input@,$configure_input,;t t 22730s,@srcdir@,$ac_srcdir,;t t 22731s,@abs_srcdir@,$ac_abs_srcdir,;t t 22732s,@top_srcdir@,$ac_top_srcdir,;t t 22733s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 22734s,@builddir@,$ac_builddir,;t t 22735s,@abs_builddir@,$ac_abs_builddir,;t t 22736s,@top_builddir@,$ac_top_builddir,;t t 22737s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 22738s,@INSTALL@,$ac_INSTALL,;t t 22739" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 22740 rm -f $tmp/stdin 22741 if test x"$ac_file" != x-; then 22742 mv $tmp/out $ac_file 22743 else 22744 cat $tmp/out 22745 rm -f $tmp/out 22746 fi 22747 22748done 22749_ACEOF 22750cat >>$CONFIG_STATUS <<\_ACEOF 22751 22752# 22753# CONFIG_HEADER section. 22754# 22755 22756# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 22757# NAME is the cpp macro being defined and VALUE is the value it is being given. 22758# 22759# ac_d sets the value in "#define NAME VALUE" lines. 22760ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 22761ac_dB='[ ].*$,\1#\2' 22762ac_dC=' ' 22763ac_dD=',;t' 22764# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 22765ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 22766ac_uB='$,\1#\2define\3' 22767ac_uC=' ' 22768ac_uD=',;t' 22769 22770for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 22771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22772 case $ac_file in 22773 - | *:- | *:-:* ) # input from stdin 22774 cat >$tmp/stdin 22775 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22777 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22778 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22779 * ) ac_file_in=$ac_file.in ;; 22780 esac 22781 22782 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 22783echo "$as_me: creating $ac_file" >&6;} 22784 22785 # First look for the input files in the build tree, otherwise in the 22786 # src tree. 22787 ac_file_inputs=`IFS=: 22788 for f in $ac_file_in; do 22789 case $f in 22790 -) echo $tmp/stdin ;; 22791 [\\/$]*) 22792 # Absolute (can't be DOS-style, as IFS=:) 22793 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22794echo "$as_me: error: cannot find input file: $f" >&2;} 22795 { (exit 1); exit 1; }; } 22796 # Do quote $f, to prevent DOS paths from being IFS'd. 22797 echo "$f";; 22798 *) # Relative 22799 if test -f "$f"; then 22800 # Build tree 22801 echo "$f" 22802 elif test -f "$srcdir/$f"; then 22803 # Source tree 22804 echo "$srcdir/$f" 22805 else 22806 # /dev/null tree 22807 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22808echo "$as_me: error: cannot find input file: $f" >&2;} 22809 { (exit 1); exit 1; }; } 22810 fi;; 22811 esac 22812 done` || { (exit 1); exit 1; } 22813 # Remove the trailing spaces. 22814 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 22815 22816_ACEOF 22817 22818# Transform confdefs.h into two sed scripts, `conftest.defines' and 22819# `conftest.undefs', that substitutes the proper values into 22820# config.h.in to produce config.h. The first handles `#define' 22821# templates, and the second `#undef' templates. 22822# And first: Protect against being on the right side of a sed subst in 22823# config.status. Protect against being in an unquoted here document 22824# in config.status. 22825rm -f conftest.defines conftest.undefs 22826# Using a here document instead of a string reduces the quoting nightmare. 22827# Putting comments in sed scripts is not portable. 22828# 22829# `end' is used to avoid that the second main sed command (meant for 22830# 0-ary CPP macros) applies to n-ary macro definitions. 22831# See the Autoconf documentation for `clear'. 22832cat >confdef2sed.sed <<\_ACEOF 22833s/[\\&,]/\\&/g 22834s,[\\$`],\\&,g 22835t clear 22836: clear 22837s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 22838t end 22839s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 22840: end 22841_ACEOF 22842# If some macros were called several times there might be several times 22843# the same #defines, which is useless. Nevertheless, we may not want to 22844# sort them, since we want the *last* AC-DEFINE to be honored. 22845uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 22846sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 22847rm -f confdef2sed.sed 22848 22849# This sed command replaces #undef with comments. This is necessary, for 22850# example, in the case of _POSIX_SOURCE, which is predefined and required 22851# on some systems where configure will not decide to define it. 22852cat >>conftest.undefs <<\_ACEOF 22853s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 22854_ACEOF 22855 22856# Break up conftest.defines because some shells have a limit on the size 22857# of here documents, and old seds have small limits too (100 cmds). 22858echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 22859echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 22860echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 22861echo ' :' >>$CONFIG_STATUS 22862rm -f conftest.tail 22863while grep . conftest.defines >/dev/null 22864do 22865 # Write a limited-size here document to $tmp/defines.sed. 22866 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 22867 # Speed up: don't consider the non `#define' lines. 22868 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 22869 # Work around the forget-to-reset-the-flag bug. 22870 echo 't clr' >>$CONFIG_STATUS 22871 echo ': clr' >>$CONFIG_STATUS 22872 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 22873 echo 'CEOF 22874 sed -f $tmp/defines.sed $tmp/in >$tmp/out 22875 rm -f $tmp/in 22876 mv $tmp/out $tmp/in 22877' >>$CONFIG_STATUS 22878 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 22879 rm -f conftest.defines 22880 mv conftest.tail conftest.defines 22881done 22882rm -f conftest.defines 22883echo ' fi # grep' >>$CONFIG_STATUS 22884echo >>$CONFIG_STATUS 22885 22886# Break up conftest.undefs because some shells have a limit on the size 22887# of here documents, and old seds have small limits too (100 cmds). 22888echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 22889rm -f conftest.tail 22890while grep . conftest.undefs >/dev/null 22891do 22892 # Write a limited-size here document to $tmp/undefs.sed. 22893 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 22894 # Speed up: don't consider the non `#undef' 22895 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 22896 # Work around the forget-to-reset-the-flag bug. 22897 echo 't clr' >>$CONFIG_STATUS 22898 echo ': clr' >>$CONFIG_STATUS 22899 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 22900 echo 'CEOF 22901 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 22902 rm -f $tmp/in 22903 mv $tmp/out $tmp/in 22904' >>$CONFIG_STATUS 22905 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 22906 rm -f conftest.undefs 22907 mv conftest.tail conftest.undefs 22908done 22909rm -f conftest.undefs 22910 22911cat >>$CONFIG_STATUS <<\_ACEOF 22912 # Let's still pretend it is `configure' which instantiates (i.e., don't 22913 # use $as_me), people would be surprised to read: 22914 # /* config.h. Generated by config.status. */ 22915 if test x"$ac_file" = x-; then 22916 echo "/* Generated by configure. */" >$tmp/config.h 22917 else 22918 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 22919 fi 22920 cat $tmp/in >>$tmp/config.h 22921 rm -f $tmp/in 22922 if test x"$ac_file" != x-; then 22923 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 22924 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22925echo "$as_me: $ac_file is unchanged" >&6;} 22926 else 22927 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22928$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22929 X"$ac_file" : 'X\(//\)[^/]' \| \ 22930 X"$ac_file" : 'X\(//\)$' \| \ 22931 X"$ac_file" : 'X\(/\)' \| \ 22932 . : '\(.\)' 2>/dev/null || 22933echo X"$ac_file" | 22934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22935 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22936 /^X\(\/\/\)$/{ s//\1/; q; } 22937 /^X\(\/\).*/{ s//\1/; q; } 22938 s/.*/./; q'` 22939 { if $as_mkdir_p; then 22940 mkdir -p "$ac_dir" 22941 else 22942 as_dir="$ac_dir" 22943 as_dirs= 22944 while test ! -d "$as_dir"; do 22945 as_dirs="$as_dir $as_dirs" 22946 as_dir=`(dirname "$as_dir") 2>/dev/null || 22947$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22948 X"$as_dir" : 'X\(//\)[^/]' \| \ 22949 X"$as_dir" : 'X\(//\)$' \| \ 22950 X"$as_dir" : 'X\(/\)' \| \ 22951 . : '\(.\)' 2>/dev/null || 22952echo X"$as_dir" | 22953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22954 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22955 /^X\(\/\/\)$/{ s//\1/; q; } 22956 /^X\(\/\).*/{ s//\1/; q; } 22957 s/.*/./; q'` 22958 done 22959 test ! -n "$as_dirs" || mkdir $as_dirs 22960 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22961echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22962 { (exit 1); exit 1; }; }; } 22963 22964 rm -f $ac_file 22965 mv $tmp/config.h $ac_file 22966 fi 22967 else 22968 cat $tmp/config.h 22969 rm -f $tmp/config.h 22970 fi 22971# Compute $ac_file's index in $config_headers. 22972_am_stamp_count=1 22973for _am_header in $config_headers :; do 22974 case $_am_header in 22975 $ac_file | $ac_file:* ) 22976 break ;; 22977 * ) 22978 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22979 esac 22980done 22981echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 22982$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22983 X$ac_file : 'X\(//\)[^/]' \| \ 22984 X$ac_file : 'X\(//\)$' \| \ 22985 X$ac_file : 'X\(/\)' \| \ 22986 . : '\(.\)' 2>/dev/null || 22987echo X$ac_file | 22988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22989 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22990 /^X\(\/\/\)$/{ s//\1/; q; } 22991 /^X\(\/\).*/{ s//\1/; q; } 22992 s/.*/./; q'`/stamp-h$_am_stamp_count 22993done 22994_ACEOF 22995cat >>$CONFIG_STATUS <<\_ACEOF 22996 22997# 22998# CONFIG_LINKS section. 22999# 23000 23001for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue 23002 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23003 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23004 23005 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 23006echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} 23007 23008 if test ! -r $srcdir/$ac_source; then 23009 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 23010echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} 23011 { (exit 1); exit 1; }; } 23012 fi 23013 rm -f $ac_dest 23014 23015 # Make relative symlinks. 23016 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || 23017$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23018 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23019 X"$ac_dest" : 'X\(//\)$' \| \ 23020 X"$ac_dest" : 'X\(/\)' \| \ 23021 . : '\(.\)' 2>/dev/null || 23022echo X"$ac_dest" | 23023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23024 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23025 /^X\(\/\/\)$/{ s//\1/; q; } 23026 /^X\(\/\).*/{ s//\1/; q; } 23027 s/.*/./; q'` 23028 { if $as_mkdir_p; then 23029 mkdir -p "$ac_dest_dir" 23030 else 23031 as_dir="$ac_dest_dir" 23032 as_dirs= 23033 while test ! -d "$as_dir"; do 23034 as_dirs="$as_dir $as_dirs" 23035 as_dir=`(dirname "$as_dir") 2>/dev/null || 23036$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23037 X"$as_dir" : 'X\(//\)[^/]' \| \ 23038 X"$as_dir" : 'X\(//\)$' \| \ 23039 X"$as_dir" : 'X\(/\)' \| \ 23040 . : '\(.\)' 2>/dev/null || 23041echo X"$as_dir" | 23042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23043 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23044 /^X\(\/\/\)$/{ s//\1/; q; } 23045 /^X\(\/\).*/{ s//\1/; q; } 23046 s/.*/./; q'` 23047 done 23048 test ! -n "$as_dirs" || mkdir $as_dirs 23049 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 23050echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} 23051 { (exit 1); exit 1; }; }; } 23052 23053 ac_builddir=. 23054 23055if test "$ac_dest_dir" != .; then 23056 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` 23057 # A "../" for each directory in $ac_dir_suffix. 23058 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23059else 23060 ac_dir_suffix= ac_top_builddir= 23061fi 23062 23063case $srcdir in 23064 .) # No --srcdir option. We are building in place. 23065 ac_srcdir=. 23066 if test -z "$ac_top_builddir"; then 23067 ac_top_srcdir=. 23068 else 23069 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23070 fi ;; 23071 [\\/]* | ?:[\\/]* ) # Absolute path. 23072 ac_srcdir=$srcdir$ac_dir_suffix; 23073 ac_top_srcdir=$srcdir ;; 23074 *) # Relative path. 23075 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23076 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23077esac 23078 23079# Do not use `cd foo && pwd` to compute absolute paths, because 23080# the directories may not exist. 23081case `pwd` in 23082.) ac_abs_builddir="$ac_dest_dir";; 23083*) 23084 case "$ac_dest_dir" in 23085 .) ac_abs_builddir=`pwd`;; 23086 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; 23087 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; 23088 esac;; 23089esac 23090case $ac_abs_builddir in 23091.) ac_abs_top_builddir=${ac_top_builddir}.;; 23092*) 23093 case ${ac_top_builddir}. in 23094 .) ac_abs_top_builddir=$ac_abs_builddir;; 23095 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23096 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23097 esac;; 23098esac 23099case $ac_abs_builddir in 23100.) ac_abs_srcdir=$ac_srcdir;; 23101*) 23102 case $ac_srcdir in 23103 .) ac_abs_srcdir=$ac_abs_builddir;; 23104 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23105 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23106 esac;; 23107esac 23108case $ac_abs_builddir in 23109.) ac_abs_top_srcdir=$ac_top_srcdir;; 23110*) 23111 case $ac_top_srcdir in 23112 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23113 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23114 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23115 esac;; 23116esac 23117 23118 23119 case $srcdir in 23120 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; 23121 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; 23122 esac 23123 23124 # Try a symlink, then a hard link, then a copy. 23125 ln -s $ac_rel_source $ac_dest 2>/dev/null || 23126 ln $srcdir/$ac_source $ac_dest 2>/dev/null || 23127 cp -p $srcdir/$ac_source $ac_dest || 23128 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 23129echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} 23130 { (exit 1); exit 1; }; } 23131done 23132_ACEOF 23133cat >>$CONFIG_STATUS <<\_ACEOF 23134 23135# 23136# CONFIG_COMMANDS section. 23137# 23138for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23139 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23140 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23141 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23142$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23143 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23144 X"$ac_dest" : 'X\(//\)$' \| \ 23145 X"$ac_dest" : 'X\(/\)' \| \ 23146 . : '\(.\)' 2>/dev/null || 23147echo X"$ac_dest" | 23148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23149 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23150 /^X\(\/\/\)$/{ s//\1/; q; } 23151 /^X\(\/\).*/{ s//\1/; q; } 23152 s/.*/./; q'` 23153 { if $as_mkdir_p; then 23154 mkdir -p "$ac_dir" 23155 else 23156 as_dir="$ac_dir" 23157 as_dirs= 23158 while test ! -d "$as_dir"; do 23159 as_dirs="$as_dir $as_dirs" 23160 as_dir=`(dirname "$as_dir") 2>/dev/null || 23161$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23162 X"$as_dir" : 'X\(//\)[^/]' \| \ 23163 X"$as_dir" : 'X\(//\)$' \| \ 23164 X"$as_dir" : 'X\(/\)' \| \ 23165 . : '\(.\)' 2>/dev/null || 23166echo X"$as_dir" | 23167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23168 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23169 /^X\(\/\/\)$/{ s//\1/; q; } 23170 /^X\(\/\).*/{ s//\1/; q; } 23171 s/.*/./; q'` 23172 done 23173 test ! -n "$as_dirs" || mkdir $as_dirs 23174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23175echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23176 { (exit 1); exit 1; }; }; } 23177 23178 ac_builddir=. 23179 23180if test "$ac_dir" != .; then 23181 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23182 # A "../" for each directory in $ac_dir_suffix. 23183 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23184else 23185 ac_dir_suffix= ac_top_builddir= 23186fi 23187 23188case $srcdir in 23189 .) # No --srcdir option. We are building in place. 23190 ac_srcdir=. 23191 if test -z "$ac_top_builddir"; then 23192 ac_top_srcdir=. 23193 else 23194 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23195 fi ;; 23196 [\\/]* | ?:[\\/]* ) # Absolute path. 23197 ac_srcdir=$srcdir$ac_dir_suffix; 23198 ac_top_srcdir=$srcdir ;; 23199 *) # Relative path. 23200 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23201 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23202esac 23203 23204# Do not use `cd foo && pwd` to compute absolute paths, because 23205# the directories may not exist. 23206case `pwd` in 23207.) ac_abs_builddir="$ac_dir";; 23208*) 23209 case "$ac_dir" in 23210 .) ac_abs_builddir=`pwd`;; 23211 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23212 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23213 esac;; 23214esac 23215case $ac_abs_builddir in 23216.) ac_abs_top_builddir=${ac_top_builddir}.;; 23217*) 23218 case ${ac_top_builddir}. in 23219 .) ac_abs_top_builddir=$ac_abs_builddir;; 23220 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23221 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23222 esac;; 23223esac 23224case $ac_abs_builddir in 23225.) ac_abs_srcdir=$ac_srcdir;; 23226*) 23227 case $ac_srcdir in 23228 .) ac_abs_srcdir=$ac_abs_builddir;; 23229 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23230 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23231 esac;; 23232esac 23233case $ac_abs_builddir in 23234.) ac_abs_top_srcdir=$ac_top_srcdir;; 23235*) 23236 case $ac_top_srcdir in 23237 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23238 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23239 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23240 esac;; 23241esac 23242 23243 23244 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23245echo "$as_me: executing $ac_dest commands" >&6;} 23246 case $ac_dest in 23247 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23248 # Strip MF so we end up with the name of the file. 23249 mf=`echo "$mf" | sed -e 's/:.*$//'` 23250 # Check whether this is an Automake generated Makefile or not. 23251 # We used to match only the files named `Makefile.in', but 23252 # some people rename them; so instead we look at the file content. 23253 # Grep'ing the first line is not enough: some people post-process 23254 # each Makefile.in and add a new line on top of each file to say so. 23255 # So let's grep whole file. 23256 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23257 dirpart=`(dirname "$mf") 2>/dev/null || 23258$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23259 X"$mf" : 'X\(//\)[^/]' \| \ 23260 X"$mf" : 'X\(//\)$' \| \ 23261 X"$mf" : 'X\(/\)' \| \ 23262 . : '\(.\)' 2>/dev/null || 23263echo X"$mf" | 23264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23265 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23266 /^X\(\/\/\)$/{ s//\1/; q; } 23267 /^X\(\/\).*/{ s//\1/; q; } 23268 s/.*/./; q'` 23269 else 23270 continue 23271 fi 23272 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 23273 # Extract the definition of DEP_FILES from the Makefile without 23274 # running `make'. 23275 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 23276 test -z "$DEPDIR" && continue 23277 # When using ansi2knr, U may be empty or an underscore; expand it 23278 U=`sed -n -e '/^U = / s///p' < "$mf"` 23279 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 23280 # We invoke sed twice because it is the simplest approach to 23281 # changing $(DEPDIR) to its actual value in the expansion. 23282 for file in `sed -n -e ' 23283 /^DEP_FILES = .*\\\\$/ { 23284 s/^DEP_FILES = // 23285 :loop 23286 s/\\\\$// 23287 p 23288 n 23289 /\\\\$/ b loop 23290 p 23291 } 23292 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 23293 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23294 # Make sure the directory exists. 23295 test -f "$dirpart/$file" && continue 23296 fdir=`(dirname "$file") 2>/dev/null || 23297$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23298 X"$file" : 'X\(//\)[^/]' \| \ 23299 X"$file" : 'X\(//\)$' \| \ 23300 X"$file" : 'X\(/\)' \| \ 23301 . : '\(.\)' 2>/dev/null || 23302echo X"$file" | 23303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23304 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23305 /^X\(\/\/\)$/{ s//\1/; q; } 23306 /^X\(\/\).*/{ s//\1/; q; } 23307 s/.*/./; q'` 23308 { if $as_mkdir_p; then 23309 mkdir -p $dirpart/$fdir 23310 else 23311 as_dir=$dirpart/$fdir 23312 as_dirs= 23313 while test ! -d "$as_dir"; do 23314 as_dirs="$as_dir $as_dirs" 23315 as_dir=`(dirname "$as_dir") 2>/dev/null || 23316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23317 X"$as_dir" : 'X\(//\)[^/]' \| \ 23318 X"$as_dir" : 'X\(//\)$' \| \ 23319 X"$as_dir" : 'X\(/\)' \| \ 23320 . : '\(.\)' 2>/dev/null || 23321echo X"$as_dir" | 23322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23323 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23324 /^X\(\/\/\)$/{ s//\1/; q; } 23325 /^X\(\/\).*/{ s//\1/; q; } 23326 s/.*/./; q'` 23327 done 23328 test ! -n "$as_dirs" || mkdir $as_dirs 23329 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23330echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 23331 { (exit 1); exit 1; }; }; } 23332 23333 # echo "creating $dirpart/$file" 23334 echo '# dummy' > "$dirpart/$file" 23335 done 23336done 23337 ;; 23338 esac 23339done 23340_ACEOF 23341 23342cat >>$CONFIG_STATUS <<\_ACEOF 23343 23344{ (exit 0); exit 0; } 23345_ACEOF 23346chmod +x $CONFIG_STATUS 23347ac_clean_files=$ac_clean_files_save 23348 23349 23350# configure is writing to config.log, and then calls config.status. 23351# config.status does its own redirection, appending to config.log. 23352# Unfortunately, on DOS this fails, as config.log is still kept open 23353# by configure, so config.status won't be able to write to it; its 23354# output is simply discarded. So we exec the FD to /dev/null, 23355# effectively closing config.log, so it can be properly (re)opened and 23356# appended to by config.status. When coming back to configure, we 23357# need to make the FD available again. 23358if test "$no_create" != yes; then 23359 ac_cs_success=: 23360 ac_config_status_args= 23361 test "$silent" = yes && 23362 ac_config_status_args="$ac_config_status_args --quiet" 23363 exec 5>/dev/null 23364 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23365 exec 5>>config.log 23366 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23367 # would make configure fail if this is the last instruction. 23368 $ac_cs_success || { (exit 1); exit 1; } 23369fi 23370 23371