1#! /bin/sh 2# From configure.ac 1.0. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.59 (OpenPKG-CURRENT). 5# 6# Copyright (C) 2003 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22fi 23DUALCASE=1; export DUALCASE # for MKS sh 24 25# Support unset when possible. 26if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27 as_unset=unset 28else 29 as_unset=false 30fi 31 32 33# Work around bugs in pre-3.0 UWIN ksh. 34$as_unset ENV MAIL MAILPATH 35PS1='$ ' 36PS2='> ' 37PS4='+ ' 38 39# NLS nuisances. 40for as_var in \ 41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43 LC_TELEPHONE LC_TIME 44do 45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 46 eval $as_var=C; export $as_var 47 else 48 $as_unset $as_var 49 fi 50done 51 52# Required to use basename. 53if expr a : '\(a\)' >/dev/null 2>&1; then 54 as_expr=expr 55else 56 as_expr=false 57fi 58 59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60 as_basename=basename 61else 62 as_basename=false 63fi 64 65 66# Name of the executable. 67as_me=`$as_basename "$0" || 68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72echo X/"$0" | 73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74 /^X\/\(\/\/\)$/{ s//\1/; q; } 75 /^X\/\(\/\).*/{ s//\1/; q; } 76 s/.*/./; q'` 77 78 79# PATH needs CR, and LINENO needs CR and PATH. 80# Avoid depending upon Character Ranges. 81as_cr_letters='abcdefghijklmnopqrstuvwxyz' 82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83as_cr_Letters=$as_cr_letters$as_cr_LETTERS 84as_cr_digits='0123456789' 85as_cr_alnum=$as_cr_Letters$as_cr_digits 86 87# The user is always right. 88if test "${PATH_SEPARATOR+set}" != set; then 89 echo "#! /bin/sh" >conf$$.sh 90 echo "exit 0" >>conf$$.sh 91 chmod +x conf$$.sh 92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93 PATH_SEPARATOR=';' 94 else 95 PATH_SEPARATOR=: 96 fi 97 rm -f conf$$.sh 98fi 99 100 101 as_lineno_1=$LINENO 102 as_lineno_2=$LINENO 103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104 test "x$as_lineno_1" != "x$as_lineno_2" && 105 test "x$as_lineno_3" = "x$as_lineno_2" || { 106 # Find who we are. Look in the path if we contain no path at all 107 # relative or not. 108 case $0 in 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111for as_dir in $PATH 112do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116done 117 118 ;; 119 esac 120 # We did not find ourselves, most probably we were run as `sh COMMAND' 121 # in which case we are not to be found in the path. 122 if test "x$as_myself" = x; then 123 as_myself=$0 124 fi 125 if test ! -f "$as_myself"; then 126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127 { (exit 1); exit 1; }; } 128 fi 129 case $CONFIG_SHELL in 130 '') 131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 for as_base in sh bash ksh sh5; do 137 case $as_dir in 138 /*) 139 if ("$as_dir/$as_base" -c ' 140 as_lineno_1=$LINENO 141 as_lineno_2=$LINENO 142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143 test "x$as_lineno_1" != "x$as_lineno_2" && 144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147 CONFIG_SHELL=$as_dir/$as_base 148 export CONFIG_SHELL 149 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150 fi;; 151 esac 152 done 153done 154;; 155 esac 156 157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158 # uniformly replaced by the line number. The first 'sed' inserts a 159 # line-number line before each line; the second 'sed' does the real 160 # work. The second script uses 'N' to pair each line-number line 161 # with the numbered line, and appends trailing '-' during 162 # substitution so that $LINENO is not a special case at line end. 163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165 sed '=' <$as_myself | 166 sed ' 167 N 168 s,$,-, 169 : loop 170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 171 t loop 172 s,-$,, 173 s,^['$as_cr_digits']*\n,, 174 ' >$as_me.lineno && 175 chmod +x $as_me.lineno || 176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177 { (exit 1); exit 1; }; } 178 179 # Don't try to exec as it changes $[0], causing all sort of problems 180 # (the dirname of $[0] is not the place where we might find the 181 # original and so on. Autoconf is especially sensible to this). 182 . ./$as_me.lineno 183 # Exit status is that of the last command. 184 exit 185} 186 187 188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189 *c*,-n*) ECHO_N= ECHO_C=' 190' ECHO_T=' ' ;; 191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 193esac 194 195if expr a : '\(a\)' >/dev/null 2>&1; then 196 as_expr=expr 197else 198 as_expr=false 199fi 200 201rm -f conf$$ conf$$.exe conf$$.file 202echo >conf$$.file 203if ln -s conf$$.file conf$$ 2>/dev/null; then 204 # We could just check for DJGPP; but this test a) works b) is more generic 205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206 if test -f conf$$.exe; then 207 # Don't use ln at all; we don't have any links 208 as_ln_s='cp -p' 209 else 210 as_ln_s='ln -s' 211 fi 212elif ln conf$$.file conf$$ 2>/dev/null; then 213 as_ln_s=ln 214else 215 as_ln_s='cp -p' 216fi 217rm -f conf$$ conf$$.exe conf$$.file 218 219if mkdir -p . 2>/dev/null; then 220 as_mkdir_p=: 221else 222 test -d ./-p && rmdir ./-p 223 as_mkdir_p=false 224fi 225 226as_executable_p="test -f" 227 228# Sed expression to map a string onto a valid CPP name. 229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 230 231# Sed expression to map a string onto a valid variable name. 232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 233 234 235# IFS 236# We need space, tab and new line, in precisely that order. 237as_nl=' 238' 239IFS=" $as_nl" 240 241# CDPATH. 242$as_unset CDPATH 243 244 245ac_prev="" 246ac_param="" 247if test -f config.param; then 248 ac_param="config.param:common" 249fi 250for ac_option 251do 252 if test ".$ac_prev" != .; then 253 eval "$ac_prev=\$ac_option" 254 ac_prev="" 255 continue 256 fi 257 case "$ac_option" in 258 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 259 *) ac_optarg="" ;; 260 esac 261 case "$ac_option" in 262 --with-param=* ) 263 case $ac_optarg in 264 *:* ) 265 ac_from=`echo $ac_optarg | sed -e 's/:.*//'` 266 ac_what=`echo $ac_optarg | sed -e 's/.*://'` 267 ;; 268 * ) 269 ac_from="config.param" 270 ac_what="$ac_optarg" 271 ;; 272 esac 273 if test ".$ac_param" = .; then 274 ac_param="$ac_from:$ac_what" 275 else 276 ac_param="$ac_param,$ac_from:$ac_what" 277 fi 278 ;; 279 esac 280done 281if test ".$ac_param" != .; then 282 # echo "loading parameters" 283 OIFS="$IFS" 284 IFS="," 285 pconf="/tmp/autoconf.$$" 286 echo "ac_options=''" >$pconf 287 ac_from="config.param" 288 for ac_section in $ac_param; do 289 290 case $ac_section in 291 *:* ) 292 ac_from=`echo "$ac_section" | sed -e 's/:.*//'` 293 ac_section=`echo "$ac_section" | sed -e 's/.*://'` 294 ;; 295 esac 296 (echo ''; cat $ac_from; echo '') |\ 297 sed -e "1,/[ ]*[ ]*${ac_section}[ ]*{[ ]*/d" \ 298 -e '/[ ]*}[ ]*/,$d' \ 299 -e ':join' -e '/\\[ ]*$/N' -e 's/\\[ ]*\n[ ]*//' -e 'tjoin' \ 300 -e 's/^[ ]*//g' \ 301 -e 's/^\([^-].*=.*\) IF \(.*\)$/if \2; then \1; fi/' \ 302 -e 's/^\(--.*=.*\) IF \(.*\)$/if \2; then ac_options="$ac_options \1"; fi/' \ 303 -e 's/^\(--.*\) IF \(.*\)$/if \2; then ac_options="$ac_options \1"; fi/' \ 304 -e 's/^\(--.*=.*\)$/ac_options="$ac_options \1"/' \ 305 -e 's/^\(--.*\)$/ac_options="$ac_options \1"/' \ 306 >>$pconf 307 308 done 309 IFS="$OIFS" 310 . $pconf 311 rm -f $pconf >/dev/null 2>&1 312 if test ".$*" = .; then 313 set -- $ac_options 314 else 315 set -- "$@" $ac_options 316 fi 317fi 318 319 320# Check that we are running under the correct shell. 321SHELL=${CONFIG_SHELL-/bin/sh} 322 323case X$ECHO in 324X*--fallback-echo) 325 # Remove one level of quotation (which was required for Make). 326 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 327 ;; 328esac 329 330echo=${ECHO-echo} 331if test "X$1" = X--no-reexec; then 332 # Discard the --no-reexec flag, and continue. 333 shift 334elif test "X$1" = X--fallback-echo; then 335 # Avoid inline document here, it may be left over 336 : 337elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 338 # Yippee, $echo works! 339 : 340else 341 # Restart under the correct shell. 342 exec $SHELL "$0" --no-reexec ${1+"$@"} 343fi 344 345if test "X$1" = X--fallback-echo; then 346 # used as fallback echo 347 shift 348 cat <<EOF 349$* 350EOF 351 exit 0 352fi 353 354# The HP-UX ksh and POSIX shell print the target directory to stdout 355# if CDPATH is set. 356(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 357 358if test -z "$ECHO"; then 359if test "X${echo_test_string+set}" != Xset; then 360# find a string as large as possible, as long as the shell can cope with it 361 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 362 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 363 if (echo_test_string=`eval $cmd`) 2>/dev/null && 364 echo_test_string=`eval $cmd` && 365 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 366 then 367 break 368 fi 369 done 370fi 371 372if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 373 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 374 test "X$echo_testing_string" = "X$echo_test_string"; then 375 : 376else 377 # The Solaris, AIX, and Digital Unix default echo programs unquote 378 # backslashes. This makes it impossible to quote backslashes using 379 # echo "$something" | sed 's/\\/\\\\/g' 380 # 381 # So, first we look for a working echo in the user's PATH. 382 383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 384 for dir in $PATH /usr/ucb; do 385 IFS="$lt_save_ifs" 386 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 387 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 388 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 389 test "X$echo_testing_string" = "X$echo_test_string"; then 390 echo="$dir/echo" 391 break 392 fi 393 done 394 IFS="$lt_save_ifs" 395 396 if test "X$echo" = Xecho; then 397 # We didn't find a better echo, so look for alternatives. 398 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 399 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 400 test "X$echo_testing_string" = "X$echo_test_string"; then 401 # This shell has a builtin print -r that does the trick. 402 echo='print -r' 403 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 404 test "X$CONFIG_SHELL" != X/bin/ksh; then 405 # If we have ksh, try running configure again with it. 406 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 407 export ORIGINAL_CONFIG_SHELL 408 CONFIG_SHELL=/bin/ksh 409 export CONFIG_SHELL 410 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 411 else 412 # Try using printf. 413 echo='printf %s\n' 414 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 415 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 416 test "X$echo_testing_string" = "X$echo_test_string"; then 417 # Cool, printf works 418 : 419 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 420 test "X$echo_testing_string" = 'X\t' && 421 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 422 test "X$echo_testing_string" = "X$echo_test_string"; then 423 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 424 export CONFIG_SHELL 425 SHELL="$CONFIG_SHELL" 426 export SHELL 427 echo="$CONFIG_SHELL $0 --fallback-echo" 428 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 429 test "X$echo_testing_string" = 'X\t' && 430 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 431 test "X$echo_testing_string" = "X$echo_test_string"; then 432 echo="$CONFIG_SHELL $0 --fallback-echo" 433 else 434 # maybe with a smaller string... 435 prev=: 436 437 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 438 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 439 then 440 break 441 fi 442 prev="$cmd" 443 done 444 445 if test "$prev" != 'sed 50q "$0"'; then 446 echo_test_string=`eval $prev` 447 export echo_test_string 448 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 449 else 450 # Oops. We lost completely, so just stick with echo. 451 echo=echo 452 fi 453 fi 454 fi 455 fi 456fi 457fi 458 459# Copy echo and quote the copy suitably for passing to libtool from 460# the Makefile, instead of quoting the original, which is used later. 461ECHO=$echo 462if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 463 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 464fi 465 466 467 468 469tagnames=${tagnames+${tagnames},}CXX 470 471tagnames=${tagnames+${tagnames},}F77 472 473# Name of the host. 474# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 475# so uname gets run too. 476ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 477 478exec 6>&1 479 480# 481# Initializations. 482# 483ac_default_prefix=/usr/local 484ac_config_libobj_dir=. 485cross_compiling=no 486subdirs= 487MFLAGS= 488MAKEFLAGS= 489SHELL=${CONFIG_SHELL-/bin/sh} 490 491# Maximum number of lines to put in a shell here document. 492# This variable seems obsolete. It should probably be removed, and 493# only ac_max_sed_lines should be used. 494: ${ac_max_here_lines=38} 495 496# Identity of this package. 497PACKAGE_NAME= 498PACKAGE_TARNAME= 499PACKAGE_VERSION= 500PACKAGE_STRING= 501PACKAGE_BUGREPORT= 502 503ac_unique_file="README" 504ac_default_prefix=/usr/local 505# Factoring default headers for most tests. 506ac_includes_default="\ 507#include <stdio.h> 508#if HAVE_SYS_TYPES_H 509# include <sys/types.h> 510#endif 511#if HAVE_SYS_STAT_H 512# include <sys/stat.h> 513#endif 514#if STDC_HEADERS 515# include <stdlib.h> 516# include <stddef.h> 517#else 518# if HAVE_STDLIB_H 519# include <stdlib.h> 520# endif 521#endif 522#if HAVE_STRING_H 523# if !STDC_HEADERS && HAVE_MEMORY_H 524# include <memory.h> 525# endif 526# include <string.h> 527#endif 528#if HAVE_STRINGS_H 529# include <strings.h> 530#endif 531#if HAVE_INTTYPES_H 532# include <inttypes.h> 533#else 534# if HAVE_STDINT_H 535# include <stdint.h> 536# endif 537#endif 538#if HAVE_UNISTD_H 539# include <unistd.h> 540#endif" 541 542ac_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 srcdir_prefix PTH_VERSION_STR PTH_VERSION_HEX PLATFORM CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PTH_FDSETSIZE PTH_FAKE_POLL PTH_FAKE_RWV EXTRA_INCLUDE_SYS_SELECT_H FALLBACK_SIG_ATOMIC_T FALLBACK_PID_T FALLBACK_SIZE_T FALLBACK_SSIZE_T FALLBACK_OFF_T FALLBACK_SOCKLEN_T FALLBACK_NFDS_T PTH_STACK_GROWTH pth_skaddr_makecontext pth_sksize_makecontext pth_skaddr_sigaltstack pth_sksize_sigaltstack pth_skaddr_sigstack pth_sksize_sigstack pth_sigjmpbuf pth_sigsetjmp pth_siglongjmp PTH_MCTX_ID PTH_SYSCALL_SOFT PTH_SYSCALL_HARD BATCH TARGET_ALL PTHREAD_O LIBPTHREAD_A LIBPTHREAD_LA PTHREAD_CONFIG_1 PTHREAD_3 INSTALL_PTHREAD UNINSTALL_PTHREAD TEST_PTHREAD PTH_EXT_SFIO LIBOBJS LTLIBOBJS' 543ac_subst_files='' 544 545# Initialize some variables set by options. 546ac_init_help= 547ac_init_version=false 548# The variables have the same names as the options, with 549# dashes changed to underlines. 550cache_file=/dev/null 551exec_prefix=NONE 552no_create= 553no_recursion= 554prefix=NONE 555program_prefix=NONE 556program_suffix=NONE 557program_transform_name=s,x,x, 558silent= 559site= 560srcdir= 561verbose= 562x_includes=NONE 563x_libraries=NONE 564 565# Installation directory options. 566# These are left unexpanded so users can "make install exec_prefix=/foo" 567# and all the variables that are supposed to be based on exec_prefix 568# by default will actually change. 569# Use braces instead of parens because sh, perl, etc. also accept them. 570bindir='${exec_prefix}/bin' 571sbindir='${exec_prefix}/sbin' 572libexecdir='${exec_prefix}/libexec' 573datadir='${prefix}/share' 574sysconfdir='${prefix}/etc' 575sharedstatedir='${prefix}/com' 576localstatedir='${prefix}/var' 577libdir='${exec_prefix}/lib' 578includedir='${prefix}/include' 579oldincludedir='/usr/include' 580infodir='${prefix}/info' 581mandir='${prefix}/man' 582 583ac_prev= 584for ac_option 585do 586 # If the previous option needs an argument, assign it. 587 if test -n "$ac_prev"; then 588 eval "$ac_prev=\$ac_option" 589 ac_prev= 590 continue 591 fi 592 593 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 594 595 # Accept the important Cygnus configure options, so we can diagnose typos. 596 597 case $ac_option in 598 599 -bindir | --bindir | --bindi | --bind | --bin | --bi) 600 ac_prev=bindir ;; 601 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 602 bindir=$ac_optarg ;; 603 604 -build | --build | --buil | --bui | --bu) 605 ac_prev=build_alias ;; 606 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 607 build_alias=$ac_optarg ;; 608 609 -cache-file | --cache-file | --cache-fil | --cache-fi \ 610 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 611 ac_prev=cache_file ;; 612 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 613 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 614 cache_file=$ac_optarg ;; 615 616 --config-cache | -C) 617 cache_file=config.cache ;; 618 619 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 620 ac_prev=datadir ;; 621 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 622 | --da=*) 623 datadir=$ac_optarg ;; 624 625 -disable-* | --disable-*) 626 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 627 # Reject names that are not valid shell variable names. 628 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 629 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 630 { (exit 1); exit 1; }; } 631 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 632 eval "enable_$ac_feature=no" ;; 633 634 -enable-* | --enable-*) 635 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 636 # Reject names that are not valid shell variable names. 637 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 638 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 639 { (exit 1); exit 1; }; } 640 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 641 case $ac_option in 642 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 643 *) ac_optarg=yes ;; 644 esac 645 eval "enable_$ac_feature='$ac_optarg'" ;; 646 647 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 648 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 649 | --exec | --exe | --ex) 650 ac_prev=exec_prefix ;; 651 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 652 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 653 | --exec=* | --exe=* | --ex=*) 654 exec_prefix=$ac_optarg ;; 655 656 -gas | --gas | --ga | --g) 657 # Obsolete; use --with-gas. 658 with_gas=yes ;; 659 660 -help | --help | --hel | --he | -h) 661 ac_init_help=long ;; 662 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 663 ac_init_help=recursive ;; 664 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 665 ac_init_help=short ;; 666 667 -host | --host | --hos | --ho) 668 ac_prev=host_alias ;; 669 -host=* | --host=* | --hos=* | --ho=*) 670 host_alias=$ac_optarg ;; 671 672 -includedir | --includedir | --includedi | --included | --include \ 673 | --includ | --inclu | --incl | --inc) 674 ac_prev=includedir ;; 675 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 676 | --includ=* | --inclu=* | --incl=* | --inc=*) 677 includedir=$ac_optarg ;; 678 679 -infodir | --infodir | --infodi | --infod | --info | --inf) 680 ac_prev=infodir ;; 681 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 682 infodir=$ac_optarg ;; 683 684 -libdir | --libdir | --libdi | --libd) 685 ac_prev=libdir ;; 686 -libdir=* | --libdir=* | --libdi=* | --libd=*) 687 libdir=$ac_optarg ;; 688 689 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 690 | --libexe | --libex | --libe) 691 ac_prev=libexecdir ;; 692 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 693 | --libexe=* | --libex=* | --libe=*) 694 libexecdir=$ac_optarg ;; 695 696 -localstatedir | --localstatedir | --localstatedi | --localstated \ 697 | --localstate | --localstat | --localsta | --localst \ 698 | --locals | --local | --loca | --loc | --lo) 699 ac_prev=localstatedir ;; 700 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 701 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 702 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 703 localstatedir=$ac_optarg ;; 704 705 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 706 ac_prev=mandir ;; 707 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 708 mandir=$ac_optarg ;; 709 710 -nfp | --nfp | --nf) 711 # Obsolete; use --without-fp. 712 with_fp=no ;; 713 714 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 715 | --no-cr | --no-c | -n) 716 no_create=yes ;; 717 718 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 719 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 720 no_recursion=yes ;; 721 722 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 723 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 724 | --oldin | --oldi | --old | --ol | --o) 725 ac_prev=oldincludedir ;; 726 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 727 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 728 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 729 oldincludedir=$ac_optarg ;; 730 731 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 732 ac_prev=prefix ;; 733 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 734 prefix=$ac_optarg ;; 735 736 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 737 | --program-pre | --program-pr | --program-p) 738 ac_prev=program_prefix ;; 739 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 740 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 741 program_prefix=$ac_optarg ;; 742 743 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 744 | --program-suf | --program-su | --program-s) 745 ac_prev=program_suffix ;; 746 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 747 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 748 program_suffix=$ac_optarg ;; 749 750 -program-transform-name | --program-transform-name \ 751 | --program-transform-nam | --program-transform-na \ 752 | --program-transform-n | --program-transform- \ 753 | --program-transform | --program-transfor \ 754 | --program-transfo | --program-transf \ 755 | --program-trans | --program-tran \ 756 | --progr-tra | --program-tr | --program-t) 757 ac_prev=program_transform_name ;; 758 -program-transform-name=* | --program-transform-name=* \ 759 | --program-transform-nam=* | --program-transform-na=* \ 760 | --program-transform-n=* | --program-transform-=* \ 761 | --program-transform=* | --program-transfor=* \ 762 | --program-transfo=* | --program-transf=* \ 763 | --program-trans=* | --program-tran=* \ 764 | --progr-tra=* | --program-tr=* | --program-t=*) 765 program_transform_name=$ac_optarg ;; 766 767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 768 | -silent | --silent | --silen | --sile | --sil) 769 silent=yes ;; 770 771 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 772 ac_prev=sbindir ;; 773 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 774 | --sbi=* | --sb=*) 775 sbindir=$ac_optarg ;; 776 777 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 778 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 779 | --sharedst | --shareds | --shared | --share | --shar \ 780 | --sha | --sh) 781 ac_prev=sharedstatedir ;; 782 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 783 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 784 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 785 | --sha=* | --sh=*) 786 sharedstatedir=$ac_optarg ;; 787 788 -site | --site | --sit) 789 ac_prev=site ;; 790 -site=* | --site=* | --sit=*) 791 site=$ac_optarg ;; 792 793 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 794 ac_prev=srcdir ;; 795 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 796 srcdir=$ac_optarg ;; 797 798 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 799 | --syscon | --sysco | --sysc | --sys | --sy) 800 ac_prev=sysconfdir ;; 801 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 802 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 803 sysconfdir=$ac_optarg ;; 804 805 -target | --target | --targe | --targ | --tar | --ta | --t) 806 ac_prev=target_alias ;; 807 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 808 target_alias=$ac_optarg ;; 809 810 -v | -verbose | --verbose | --verbos | --verbo | --verb) 811 verbose=yes ;; 812 813 -version | --version | --versio | --versi | --vers | -V) 814 ac_init_version=: ;; 815 816 -with-* | --with-*) 817 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 818 # Reject names that are not valid shell variable names. 819 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 820 { echo "$as_me: error: invalid package name: $ac_package" >&2 821 { (exit 1); exit 1; }; } 822 ac_package=`echo $ac_package| sed 's/-/_/g'` 823 case $ac_option in 824 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 825 *) ac_optarg=yes ;; 826 esac 827 eval "with_$ac_package='$ac_optarg'" ;; 828 829 -without-* | --without-*) 830 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 831 # Reject names that are not valid shell variable names. 832 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 833 { echo "$as_me: error: invalid package name: $ac_package" >&2 834 { (exit 1); exit 1; }; } 835 ac_package=`echo $ac_package | sed 's/-/_/g'` 836 eval "with_$ac_package=no" ;; 837 838 --x) 839 # Obsolete; use --with-x. 840 with_x=yes ;; 841 842 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 843 | --x-incl | --x-inc | --x-in | --x-i) 844 ac_prev=x_includes ;; 845 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 846 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 847 x_includes=$ac_optarg ;; 848 849 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 850 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 851 ac_prev=x_libraries ;; 852 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 853 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 854 x_libraries=$ac_optarg ;; 855 856 -*) { echo "$as_me: error: unrecognized option: $ac_option 857Try \`$0 --help' for more information." >&2 858 { (exit 1); exit 1; }; } 859 ;; 860 861 *=*) 862 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 863 # Reject names that are not valid shell variable names. 864 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 865 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 866 { (exit 1); exit 1; }; } 867 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 868 eval "$ac_envvar='$ac_optarg'" 869 export $ac_envvar ;; 870 871 *) 872 # FIXME: should be removed in autoconf 3.0. 873 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 874 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 875 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 876 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 877 ;; 878 879 esac 880done 881 882if test -n "$ac_prev"; then 883 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 884 { echo "$as_me: error: missing argument to $ac_option" >&2 885 { (exit 1); exit 1; }; } 886fi 887 888# Be sure to have absolute paths. 889for ac_var in exec_prefix prefix 890do 891 eval ac_val=$`echo $ac_var` 892 case $ac_val in 893 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 894 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 895 { (exit 1); exit 1; }; };; 896 esac 897done 898 899# Be sure to have absolute paths. 900for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 901 localstatedir libdir includedir oldincludedir infodir mandir 902do 903 eval ac_val=$`echo $ac_var` 904 case $ac_val in 905 [\\/$]* | ?:[\\/]* ) ;; 906 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 907 { (exit 1); exit 1; }; };; 908 esac 909done 910 911# There might be people who depend on the old broken behavior: `$host' 912# used to hold the argument of --host etc. 913# FIXME: To remove some day. 914build=$build_alias 915host=$host_alias 916target=$target_alias 917 918# FIXME: To remove some day. 919if test "x$host_alias" != x; then 920 if test "x$build_alias" = x; then 921 cross_compiling=maybe 922 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 923 If a cross compiler is detected then cross compile mode will be used." >&2 924 elif test "x$build_alias" != "x$host_alias"; then 925 cross_compiling=yes 926 fi 927fi 928 929ac_tool_prefix= 930test -n "$host_alias" && ac_tool_prefix=$host_alias- 931 932test "$silent" = yes && exec 6>/dev/null 933 934 935# Find the source files, if location was not specified. 936if test -z "$srcdir"; then 937 ac_srcdir_defaulted=yes 938 # Try the directory containing this script, then its parent. 939 ac_confdir=`(dirname "$0") 2>/dev/null || 940$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 941 X"$0" : 'X\(//\)[^/]' \| \ 942 X"$0" : 'X\(//\)$' \| \ 943 X"$0" : 'X\(/\)' \| \ 944 . : '\(.\)' 2>/dev/null || 945echo X"$0" | 946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 947 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 948 /^X\(\/\/\)$/{ s//\1/; q; } 949 /^X\(\/\).*/{ s//\1/; q; } 950 s/.*/./; q'` 951 srcdir=$ac_confdir 952 if test ! -r $srcdir/$ac_unique_file; then 953 srcdir=.. 954 fi 955else 956 ac_srcdir_defaulted=no 957fi 958if test ! -r $srcdir/$ac_unique_file; then 959 if test "$ac_srcdir_defaulted" = yes; then 960 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 961 { (exit 1); exit 1; }; } 962 else 963 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 964 { (exit 1); exit 1; }; } 965 fi 966fi 967(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 968 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 969 { (exit 1); exit 1; }; } 970srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 971ac_env_build_alias_set=${build_alias+set} 972ac_env_build_alias_value=$build_alias 973ac_cv_env_build_alias_set=${build_alias+set} 974ac_cv_env_build_alias_value=$build_alias 975ac_env_host_alias_set=${host_alias+set} 976ac_env_host_alias_value=$host_alias 977ac_cv_env_host_alias_set=${host_alias+set} 978ac_cv_env_host_alias_value=$host_alias 979ac_env_target_alias_set=${target_alias+set} 980ac_env_target_alias_value=$target_alias 981ac_cv_env_target_alias_set=${target_alias+set} 982ac_cv_env_target_alias_value=$target_alias 983ac_env_CC_set=${CC+set} 984ac_env_CC_value=$CC 985ac_cv_env_CC_set=${CC+set} 986ac_cv_env_CC_value=$CC 987ac_env_CFLAGS_set=${CFLAGS+set} 988ac_env_CFLAGS_value=$CFLAGS 989ac_cv_env_CFLAGS_set=${CFLAGS+set} 990ac_cv_env_CFLAGS_value=$CFLAGS 991ac_env_LDFLAGS_set=${LDFLAGS+set} 992ac_env_LDFLAGS_value=$LDFLAGS 993ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 994ac_cv_env_LDFLAGS_value=$LDFLAGS 995ac_env_CPPFLAGS_set=${CPPFLAGS+set} 996ac_env_CPPFLAGS_value=$CPPFLAGS 997ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 998ac_cv_env_CPPFLAGS_value=$CPPFLAGS 999ac_env_CPP_set=${CPP+set} 1000ac_env_CPP_value=$CPP 1001ac_cv_env_CPP_set=${CPP+set} 1002ac_cv_env_CPP_value=$CPP 1003ac_env_CXX_set=${CXX+set} 1004ac_env_CXX_value=$CXX 1005ac_cv_env_CXX_set=${CXX+set} 1006ac_cv_env_CXX_value=$CXX 1007ac_env_CXXFLAGS_set=${CXXFLAGS+set} 1008ac_env_CXXFLAGS_value=$CXXFLAGS 1009ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 1010ac_cv_env_CXXFLAGS_value=$CXXFLAGS 1011ac_env_CXXCPP_set=${CXXCPP+set} 1012ac_env_CXXCPP_value=$CXXCPP 1013ac_cv_env_CXXCPP_set=${CXXCPP+set} 1014ac_cv_env_CXXCPP_value=$CXXCPP 1015ac_env_F77_set=${F77+set} 1016ac_env_F77_value=$F77 1017ac_cv_env_F77_set=${F77+set} 1018ac_cv_env_F77_value=$F77 1019ac_env_FFLAGS_set=${FFLAGS+set} 1020ac_env_FFLAGS_value=$FFLAGS 1021ac_cv_env_FFLAGS_set=${FFLAGS+set} 1022ac_cv_env_FFLAGS_value=$FFLAGS 1023 1024# 1025# Report the --help message. 1026# 1027if test "$ac_init_help" = "long"; then 1028 # Omit some internal or obsolete options to make the list less imposing. 1029 # This message is too long to be a string in the A/UX 3.1 sh. 1030 cat <<_ACEOF 1031\`configure' configures this package to adapt to many kinds of systems. 1032 1033Usage: $0 [OPTION]... [VAR=VALUE]... 1034 1035To assign environment variables (e.g., CC, CFLAGS...), specify them as 1036VAR=VALUE. See below for descriptions of some of the useful variables. 1037 1038Defaults for the options are specified in brackets. 1039 1040Configuration: 1041 -h, --help display this help and exit 1042 --help=short display options specific to this package 1043 --help=recursive display the short help of all the included packages 1044 -V, --version display version information and exit 1045 -q, --quiet, --silent do not print \`checking...' messages 1046 --cache-file=FILE cache test results in FILE [disabled] 1047 -C, --config-cache alias for \`--cache-file=config.cache' 1048 -n, --no-create do not create output files 1049 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1050 1051_ACEOF 1052 1053 cat <<_ACEOF 1054Installation directories: 1055 --prefix=PREFIX install architecture-independent files in PREFIX 1056 [$ac_default_prefix] 1057 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1058 [PREFIX] 1059 1060By default, \`make install' will install all the files in 1061\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1062an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1063for instance \`--prefix=\$HOME'. 1064 1065For better control, use the options below. 1066 1067Fine tuning of the installation directories: 1068 --bindir=DIR user executables [EPREFIX/bin] 1069 --sbindir=DIR system admin executables [EPREFIX/sbin] 1070 --libexecdir=DIR program executables [EPREFIX/libexec] 1071 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1072 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1073 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1074 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1075 --libdir=DIR object code libraries [EPREFIX/lib] 1076 --includedir=DIR C header files [PREFIX/include] 1077 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1078 --infodir=DIR info documentation [PREFIX/info] 1079 --mandir=DIR man documentation [PREFIX/man] 1080_ACEOF 1081 1082 cat <<\_ACEOF 1083 1084System types: 1085 --build=BUILD configure for building on BUILD [guessed] 1086 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1087_ACEOF 1088fi 1089 1090if test -n "$ac_init_help"; then 1091 1092 cat <<\_ACEOF 1093 1094Optional Features: 1095 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1096 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1097 --enable-subdir enable local building as subdirectory (default=no) 1098 --enable-debug build for debugging (default=no) 1099 --enable-profile build for profiling (default=no) 1100 --enable-optimize build with optimization (default=no) 1101 --enable-shared[=PKGS] 1102 build shared libraries [default=yes] 1103 --enable-static[=PKGS] 1104 build static libraries [default=yes] 1105 --enable-fast-install[=PKGS] 1106 optimize for fast installation [default=yes] 1107 --disable-libtool-lock avoid locking (might break parallel builds) 1108 --enable-syscall-soft enable soft system call mapping (default=no) 1109 --enable-syscall-hard enable hard system call mapping (default=no) 1110 --enable-batch enable batch build mode (default=no) 1111 --enable-maintainer enable maintainer build targets (default=no) 1112 --enable-tests enable test build targets (default=yes) 1113 --enable-pthread build Pthread library (default=no) 1114 1115Optional Packages: 1116 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1117 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1118 --with-param=ID[,ID,..] load parameters from config.param 1119 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1120 --with-pic try to use only PIC/non-PIC objects [default=use 1121 both] 1122 --with-tags[=TAGS] 1123 include additional configurations [automatic] 1124 --with-fdsetsize=NUM set FD_SETSIZE while building GNU Pth 1125 --with-mctx-mth=ID force mctx method (mcsc,sjlj) 1126 --with-mctx-dsp=ID force mctx dispatching (sc,ssjlj,sjlj,usjlj,sjlje,...) 1127 --with-mctx-stk=ID force mctx stack setup (mc,ss,sas,...) 1128 --with-ex[=DIR] build with external OSSP ex library (default=no) 1129 --with-sfio[=DIR] build with external Sfio library (default=no) 1130 --with-dmalloc[=DIR] build with external Dmalloc library (default=no) 1131 1132Some influential environment variables: 1133 CC C compiler command 1134 CFLAGS C compiler flags 1135 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1136 nonstandard directory <lib dir> 1137 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1138 headers in a nonstandard directory <include dir> 1139 CPP C preprocessor 1140 CXX C++ compiler command 1141 CXXFLAGS C++ compiler flags 1142 CXXCPP C++ preprocessor 1143 F77 Fortran 77 compiler command 1144 FFLAGS Fortran 77 compiler flags 1145 1146Use these variables to override the choices made by `configure' or to help 1147it to find libraries and programs with nonstandard names/locations. 1148 1149_ACEOF 1150fi 1151 1152if test "$ac_init_help" = "recursive"; then 1153 # If there are subdirs, report their specific --help. 1154 ac_popdir=`pwd` 1155 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1156 test -d $ac_dir || continue 1157 ac_builddir=. 1158 1159if test "$ac_dir" != .; then 1160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1161 # A "../" for each directory in $ac_dir_suffix. 1162 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1163else 1164 ac_dir_suffix= ac_top_builddir= 1165fi 1166 1167case $srcdir in 1168 .) # No --srcdir option. We are building in place. 1169 ac_srcdir=. 1170 if test -z "$ac_top_builddir"; then 1171 ac_top_srcdir=. 1172 else 1173 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1174 fi ;; 1175 [\\/]* | ?:[\\/]* ) # Absolute path. 1176 ac_srcdir=$srcdir$ac_dir_suffix; 1177 ac_top_srcdir=$srcdir ;; 1178 *) # Relative path. 1179 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1180 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1181esac 1182 1183# Do not use `cd foo && pwd` to compute absolute paths, because 1184# the directories may not exist. 1185case `pwd` in 1186.) ac_abs_builddir="$ac_dir";; 1187*) 1188 case "$ac_dir" in 1189 .) ac_abs_builddir=`pwd`;; 1190 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1191 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1192 esac;; 1193esac 1194case $ac_abs_builddir in 1195.) ac_abs_top_builddir=${ac_top_builddir}.;; 1196*) 1197 case ${ac_top_builddir}. in 1198 .) ac_abs_top_builddir=$ac_abs_builddir;; 1199 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1200 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1201 esac;; 1202esac 1203case $ac_abs_builddir in 1204.) ac_abs_srcdir=$ac_srcdir;; 1205*) 1206 case $ac_srcdir in 1207 .) ac_abs_srcdir=$ac_abs_builddir;; 1208 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1209 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1210 esac;; 1211esac 1212case $ac_abs_builddir in 1213.) ac_abs_top_srcdir=$ac_top_srcdir;; 1214*) 1215 case $ac_top_srcdir in 1216 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1217 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1218 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1219 esac;; 1220esac 1221 1222 cd $ac_dir 1223 # Check for guested configure; otherwise get Cygnus style configure. 1224 if test -f $ac_srcdir/configure.gnu; then 1225 echo 1226 $SHELL $ac_srcdir/configure.gnu --help=recursive 1227 elif test -f $ac_srcdir/configure; then 1228 echo 1229 $SHELL $ac_srcdir/configure --help=recursive 1230 elif test -f $ac_srcdir/configure.ac || 1231 test -f $ac_srcdir/configure.in; then 1232 echo 1233 $ac_configure --help 1234 else 1235 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1236 fi 1237 cd $ac_popdir 1238 done 1239fi 1240 1241test -n "$ac_init_help" && exit 0 1242if $ac_init_version; then 1243 cat <<\_ACEOF 1244 1245Copyright (C) 2003 Free Software Foundation, Inc. 1246This configure script is free software; the Free Software Foundation 1247gives unlimited permission to copy, distribute and modify it. 1248_ACEOF 1249 exit 0 1250fi 1251exec 5>config.log 1252cat >&5 <<_ACEOF 1253This file contains any messages produced by compilers while 1254running configure, to aid debugging if configure makes a mistake. 1255 1256It was created by $as_me, which was 1257generated by GNU Autoconf 2.59 (OpenPKG-CURRENT). Invocation command line was 1258 1259 $ $0 $@ 1260 1261_ACEOF 1262{ 1263cat <<_ASUNAME 1264## --------- ## 1265## Platform. ## 1266## --------- ## 1267 1268hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1269uname -m = `(uname -m) 2>/dev/null || echo unknown` 1270uname -r = `(uname -r) 2>/dev/null || echo unknown` 1271uname -s = `(uname -s) 2>/dev/null || echo unknown` 1272uname -v = `(uname -v) 2>/dev/null || echo unknown` 1273 1274/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1275/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1276 1277/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1278/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1279/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1280hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1281/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1282/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1283/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1284 1285_ASUNAME 1286 1287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1288for as_dir in $PATH 1289do 1290 IFS=$as_save_IFS 1291 test -z "$as_dir" && as_dir=. 1292 echo "PATH: $as_dir" 1293done 1294 1295} >&5 1296 1297cat >&5 <<_ACEOF 1298 1299 1300## ----------- ## 1301## Core tests. ## 1302## ----------- ## 1303 1304_ACEOF 1305 1306 1307# Keep a trace of the command line. 1308# Strip out --no-create and --no-recursion so they do not pile up. 1309# Strip out --silent because we don't want to record it for future runs. 1310# Also quote any args containing shell meta-characters. 1311# Make two passes to allow for proper duplicate-argument suppression. 1312ac_configure_args= 1313ac_configure_args0= 1314ac_configure_args1= 1315ac_sep= 1316ac_must_keep_next=false 1317for ac_pass in 1 2 1318do 1319 for ac_arg 1320 do 1321 case $ac_arg in 1322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1324 | -silent | --silent | --silen | --sile | --sil) 1325 continue ;; 1326 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1327 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1328 esac 1329 case $ac_pass in 1330 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1331 2) 1332 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1333 if test $ac_must_keep_next = true; then 1334 ac_must_keep_next=false # Got value, back to normal. 1335 else 1336 case $ac_arg in 1337 *=* | --config-cache | -C | -disable-* | --disable-* \ 1338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1340 | -with-* | --with-* | -without-* | --without-* | --x) 1341 case "$ac_configure_args0 " in 1342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1343 esac 1344 ;; 1345 -* ) ac_must_keep_next=true ;; 1346 esac 1347 fi 1348 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1349 # Get rid of the leading space. 1350 ac_sep=" " 1351 ;; 1352 esac 1353 done 1354done 1355$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1356$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1357 1358# When interrupted or exit'd, cleanup temporary files, and complete 1359# config.log. We remove comments because anyway the quotes in there 1360# would cause problems or look ugly. 1361# WARNING: Be sure not to use single quotes in there, as some shells, 1362# such as our DU 5.0 friend, will then `close' the trap. 1363trap 'exit_status=$? 1364 # Save into config.log some information that might help in debugging. 1365 { 1366 echo 1367 1368 cat <<\_ASBOX 1369## ---------------- ## 1370## Cache variables. ## 1371## ---------------- ## 1372_ASBOX 1373 echo 1374 # The following way of writing the cache mishandles newlines in values, 1375{ 1376 (set) 2>&1 | 1377 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1378 *ac_space=\ *) 1379 sed -n \ 1380 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1382 ;; 1383 *) 1384 sed -n \ 1385 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1386 ;; 1387 esac; 1388} 1389 echo 1390 1391 cat <<\_ASBOX 1392## ----------------- ## 1393## Output variables. ## 1394## ----------------- ## 1395_ASBOX 1396 echo 1397 for ac_var in $ac_subst_vars 1398 do 1399 eval ac_val=$`echo $ac_var` 1400 echo "$ac_var='"'"'$ac_val'"'"'" 1401 done | sort 1402 echo 1403 1404 if test -n "$ac_subst_files"; then 1405 cat <<\_ASBOX 1406## ------------- ## 1407## Output files. ## 1408## ------------- ## 1409_ASBOX 1410 echo 1411 for ac_var in $ac_subst_files 1412 do 1413 eval ac_val=$`echo $ac_var` 1414 echo "$ac_var='"'"'$ac_val'"'"'" 1415 done | sort 1416 echo 1417 fi 1418 1419 if test -s confdefs.h; then 1420 cat <<\_ASBOX 1421## ----------- ## 1422## confdefs.h. ## 1423## ----------- ## 1424_ASBOX 1425 echo 1426 sed "/^$/d" confdefs.h | sort 1427 echo 1428 fi 1429 test "$ac_signal" != 0 && 1430 echo "$as_me: caught signal $ac_signal" 1431 echo "$as_me: exit $exit_status" 1432 } >&5 1433 rm -f core *.core && 1434 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1435 exit $exit_status 1436 ' 0 1437for ac_signal in 1 2 13 15; do 1438 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1439done 1440ac_signal=0 1441 1442# confdefs.h avoids OS command line length limits that DEFS can exceed. 1443rm -rf conftest* confdefs.h 1444# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1445echo >confdefs.h 1446 1447# Predefined preprocessor variables. 1448 1449cat >>confdefs.h <<_ACEOF 1450#define PACKAGE_NAME "$PACKAGE_NAME" 1451_ACEOF 1452 1453 1454cat >>confdefs.h <<_ACEOF 1455#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1456_ACEOF 1457 1458 1459cat >>confdefs.h <<_ACEOF 1460#define PACKAGE_VERSION "$PACKAGE_VERSION" 1461_ACEOF 1462 1463 1464cat >>confdefs.h <<_ACEOF 1465#define PACKAGE_STRING "$PACKAGE_STRING" 1466_ACEOF 1467 1468 1469cat >>confdefs.h <<_ACEOF 1470#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1471_ACEOF 1472 1473 1474# Let the site file select an alternate cache file if it wants to. 1475# Prefer explicitly selected file to automatically selected ones. 1476if test -z "$CONFIG_SITE"; then 1477 if test "x$prefix" != xNONE; then 1478 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1479 else 1480 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1481 fi 1482fi 1483for ac_site_file in $CONFIG_SITE; do 1484 if test -r "$ac_site_file"; then 1485 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1486echo "$as_me: loading site script $ac_site_file" >&6;} 1487 sed 's/^/| /' "$ac_site_file" >&5 1488 . "$ac_site_file" 1489 fi 1490done 1491 1492if test -r "$cache_file"; then 1493 # Some versions of bash will fail to source /dev/null (special 1494 # files actually), so we avoid doing that. 1495 if test -f "$cache_file"; then 1496 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1497echo "$as_me: loading cache $cache_file" >&6;} 1498 case $cache_file in 1499 [\\/]* | ?:[\\/]* ) . $cache_file;; 1500 *) . ./$cache_file;; 1501 esac 1502 fi 1503else 1504 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1505echo "$as_me: creating cache $cache_file" >&6;} 1506 >$cache_file 1507fi 1508 1509# Check that the precious variables saved in the cache have kept the same 1510# value. 1511ac_cache_corrupted=false 1512for ac_var in `(set) 2>&1 | 1513 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1514 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1515 eval ac_new_set=\$ac_env_${ac_var}_set 1516 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1517 eval ac_new_val="\$ac_env_${ac_var}_value" 1518 case $ac_old_set,$ac_new_set in 1519 set,) 1520 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1521echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1522 ac_cache_corrupted=: ;; 1523 ,set) 1524 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1525echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1526 ac_cache_corrupted=: ;; 1527 ,);; 1528 *) 1529 if test "x$ac_old_val" != "x$ac_new_val"; then 1530 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1531echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1532 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1533echo "$as_me: former value: $ac_old_val" >&2;} 1534 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1535echo "$as_me: current value: $ac_new_val" >&2;} 1536 ac_cache_corrupted=: 1537 fi;; 1538 esac 1539 # Pass precious variables to config.status. 1540 if test "$ac_new_set" = set; then 1541 case $ac_new_val in 1542 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1543 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1544 *) ac_arg=$ac_var=$ac_new_val ;; 1545 esac 1546 case " $ac_configure_args " in 1547 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1548 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1549 esac 1550 fi 1551done 1552if $ac_cache_corrupted; then 1553 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1554echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1555 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1556echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1557 { (exit 1); exit 1; }; } 1558fi 1559 1560ac_ext=c 1561ac_cpp='$CPP $CPPFLAGS' 1562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1564ac_compiler_gnu=$ac_cv_c_compiler_gnu 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585# Check whether --enable-subdir or --disable-subdir was given. 1586if test "${enable_subdir+set}" = set; then 1587 enableval="$enable_subdir" 1588 1589else 1590 enable_subdir=no 1591 1592fi; if test ".$enable_subdir" = .yes; then 1593 enable_batch=yes 1594 enable_shared=no 1595fi 1596 1597 1598ac_prog=$0 1599ac_srcdir=`echo $ac_prog | sed -e 's%/[^/][^/]*$%%' -e 's%\([^/]\)/*$%\1%'` 1600if test ".$ac_srcdir" = ".$ac_prog"; then 1601 ac_srcdir="" 1602elif test "x$ac_srcdir" = "x."; then 1603 ac_srcdir="" 1604else 1605 if test ".$CFLAGS" = .; then 1606 CFLAGS="-I$ac_srcdir" 1607 else 1608 CFLAGS="$CFLAGS -I$ac_srcdir" 1609 fi 1610 ac_srcdir="$ac_srcdir/" 1611fi 1612srcdir_prefix="$ac_srcdir" 1613 1614 1615# configuration header 1616if test ".`echo dummy $@ | grep enable-subdir`" != .; then 1617 enable_subdir=yes 1618fi 1619if test ".`echo dummy $@ | grep help`" = .; then 1620 # bootstrapping shtool 1621 ac_prog=$0 1622 ac_srcdir=`echo $ac_prog | sed -e 's%/[^/][^/]*$%%' -e 's%\([^/]\)/*$%\1%'` 1623 test ".$ac_srcdir" = ".$ac_prog" && ac_srcdir=. 1624 ac_shtool="${CONFIG_SHELL-/bin/sh} $ac_srcdir/shtool" 1625 1626 # find out terminal sequences 1627 if test ".$enable_subdir" != .yes; then 1628 TB=`$ac_shtool echo -n -e %B 2>/dev/null` 1629 TN=`$ac_shtool echo -n -e %b 2>/dev/null` 1630 else 1631 TB='' 1632 TN='' 1633 fi 1634 1635 # find out package version 1636 PTH_VERSION_STR="`$ac_shtool version -lc -dlong $ac_srcdir/pth_vers.c`" 1637 1638 1639 # friendly header ;) 1640 if test ".$enable_subdir" != .yes; then 1641 echo "Configuring ${TB}GNU Pth${TN} (Portable Threads), Version ${TB}${PTH_VERSION_STR}${TN}" 1642 echo "Copyright (c) 1999-2006 Ralf S. Engelschall <rse@engelschall.com>" 1643 fi 1644 1645 # additionally find out hex version 1646 PTH_VERSION_HEX="`$ac_shtool version -lc -dhex $ac_srcdir/pth_vers.c`" 1647 1648fi 1649 1650 1651 1652 1653 1654 ac_config_headers="$ac_config_headers pth_acdef.h" 1655 1656 1657if test ".$host" != .; then 1658 PLATFORM="$host" 1659else 1660 PLATFORM=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess` 1661fi 1662PLATFORM=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub $PLATFORM` || exit 1 1663 1664if test ".$enable_subdir" != .yes; then 1665 echo "Platform: ${TB}${PLATFORM}${TN}" 1666fi 1667 1668 1669 1670if test ".$enable_subdir" != .yes; then 1671 echo "$as_me:$LINENO: result: " >&5 1672echo "${ECHO_T}" >&6 1673 echo "$as_me:$LINENO: result: ${TB}Build Tools:${TN}" >&5 1674echo "${ECHO_T}${TB}Build Tools:${TN}" >&6 1675fi 1676 1677 1678ac_ext=c 1679ac_cpp='$CPP $CPPFLAGS' 1680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1682ac_compiler_gnu=$ac_cv_c_compiler_gnu 1683if test -n "$ac_tool_prefix"; then 1684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1685set dummy ${ac_tool_prefix}gcc; ac_word=$2 1686echo "$as_me:$LINENO: checking for $ac_word" >&5 1687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1688if test "${ac_cv_prog_CC+set}" = set; then 1689 echo $ECHO_N "(cached) $ECHO_C" >&6 1690else 1691 if test -n "$CC"; then 1692 ac_cv_prog_CC="$CC" # Let the user override the test. 1693else 1694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1695for as_dir in $PATH 1696do 1697 IFS=$as_save_IFS 1698 test -z "$as_dir" && as_dir=. 1699 for ac_exec_ext in '' $ac_executable_extensions; do 1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1701 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1703 break 2 1704 fi 1705done 1706done 1707 1708fi 1709fi 1710CC=$ac_cv_prog_CC 1711if test -n "$CC"; then 1712 echo "$as_me:$LINENO: result: $CC" >&5 1713echo "${ECHO_T}$CC" >&6 1714else 1715 echo "$as_me:$LINENO: result: no" >&5 1716echo "${ECHO_T}no" >&6 1717fi 1718 1719fi 1720if test -z "$ac_cv_prog_CC"; then 1721 ac_ct_CC=$CC 1722 # Extract the first word of "gcc", so it can be a program name with args. 1723set dummy gcc; ac_word=$2 1724echo "$as_me:$LINENO: checking for $ac_word" >&5 1725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1726if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1727 echo $ECHO_N "(cached) $ECHO_C" >&6 1728else 1729 if test -n "$ac_ct_CC"; then 1730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1731else 1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1733for as_dir in $PATH 1734do 1735 IFS=$as_save_IFS 1736 test -z "$as_dir" && as_dir=. 1737 for ac_exec_ext in '' $ac_executable_extensions; do 1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1739 ac_cv_prog_ac_ct_CC="gcc" 1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1741 break 2 1742 fi 1743done 1744done 1745 1746fi 1747fi 1748ac_ct_CC=$ac_cv_prog_ac_ct_CC 1749if test -n "$ac_ct_CC"; then 1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1751echo "${ECHO_T}$ac_ct_CC" >&6 1752else 1753 echo "$as_me:$LINENO: result: no" >&5 1754echo "${ECHO_T}no" >&6 1755fi 1756 1757 CC=$ac_ct_CC 1758else 1759 CC="$ac_cv_prog_CC" 1760fi 1761 1762if test -z "$CC"; then 1763 if test -n "$ac_tool_prefix"; then 1764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1765set dummy ${ac_tool_prefix}cc; ac_word=$2 1766echo "$as_me:$LINENO: checking for $ac_word" >&5 1767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1768if test "${ac_cv_prog_CC+set}" = set; then 1769 echo $ECHO_N "(cached) $ECHO_C" >&6 1770else 1771 if test -n "$CC"; then 1772 ac_cv_prog_CC="$CC" # Let the user override the test. 1773else 1774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1775for as_dir in $PATH 1776do 1777 IFS=$as_save_IFS 1778 test -z "$as_dir" && as_dir=. 1779 for ac_exec_ext in '' $ac_executable_extensions; do 1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1781 ac_cv_prog_CC="${ac_tool_prefix}cc" 1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1783 break 2 1784 fi 1785done 1786done 1787 1788fi 1789fi 1790CC=$ac_cv_prog_CC 1791if test -n "$CC"; then 1792 echo "$as_me:$LINENO: result: $CC" >&5 1793echo "${ECHO_T}$CC" >&6 1794else 1795 echo "$as_me:$LINENO: result: no" >&5 1796echo "${ECHO_T}no" >&6 1797fi 1798 1799fi 1800if test -z "$ac_cv_prog_CC"; then 1801 ac_ct_CC=$CC 1802 # Extract the first word of "cc", so it can be a program name with args. 1803set dummy cc; ac_word=$2 1804echo "$as_me:$LINENO: checking for $ac_word" >&5 1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1806if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1807 echo $ECHO_N "(cached) $ECHO_C" >&6 1808else 1809 if test -n "$ac_ct_CC"; then 1810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1811else 1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1813for as_dir in $PATH 1814do 1815 IFS=$as_save_IFS 1816 test -z "$as_dir" && as_dir=. 1817 for ac_exec_ext in '' $ac_executable_extensions; do 1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1819 ac_cv_prog_ac_ct_CC="cc" 1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1821 break 2 1822 fi 1823done 1824done 1825 1826fi 1827fi 1828ac_ct_CC=$ac_cv_prog_ac_ct_CC 1829if test -n "$ac_ct_CC"; then 1830 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1831echo "${ECHO_T}$ac_ct_CC" >&6 1832else 1833 echo "$as_me:$LINENO: result: no" >&5 1834echo "${ECHO_T}no" >&6 1835fi 1836 1837 CC=$ac_ct_CC 1838else 1839 CC="$ac_cv_prog_CC" 1840fi 1841 1842fi 1843if test -z "$CC"; then 1844 # Extract the first word of "cc", so it can be a program name with args. 1845set dummy cc; ac_word=$2 1846echo "$as_me:$LINENO: checking for $ac_word" >&5 1847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1848if test "${ac_cv_prog_CC+set}" = set; then 1849 echo $ECHO_N "(cached) $ECHO_C" >&6 1850else 1851 if test -n "$CC"; then 1852 ac_cv_prog_CC="$CC" # Let the user override the test. 1853else 1854 ac_prog_rejected=no 1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1856for as_dir in $PATH 1857do 1858 IFS=$as_save_IFS 1859 test -z "$as_dir" && as_dir=. 1860 for ac_exec_ext in '' $ac_executable_extensions; do 1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1863 ac_prog_rejected=yes 1864 continue 1865 fi 1866 ac_cv_prog_CC="cc" 1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1868 break 2 1869 fi 1870done 1871done 1872 1873if test $ac_prog_rejected = yes; then 1874 # We found a bogon in the path, so make sure we never use it. 1875 set dummy $ac_cv_prog_CC 1876 shift 1877 if test $# != 0; then 1878 # We chose a different compiler from the bogus one. 1879 # However, it has the same basename, so the bogon will be chosen 1880 # first if we set CC to just the basename; use the full file name. 1881 shift 1882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1883 fi 1884fi 1885fi 1886fi 1887CC=$ac_cv_prog_CC 1888if test -n "$CC"; then 1889 echo "$as_me:$LINENO: result: $CC" >&5 1890echo "${ECHO_T}$CC" >&6 1891else 1892 echo "$as_me:$LINENO: result: no" >&5 1893echo "${ECHO_T}no" >&6 1894fi 1895 1896fi 1897if test -z "$CC"; then 1898 if test -n "$ac_tool_prefix"; then 1899 for ac_prog in cl 1900 do 1901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1902set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1903echo "$as_me:$LINENO: checking for $ac_word" >&5 1904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1905if test "${ac_cv_prog_CC+set}" = set; then 1906 echo $ECHO_N "(cached) $ECHO_C" >&6 1907else 1908 if test -n "$CC"; then 1909 ac_cv_prog_CC="$CC" # Let the user override the test. 1910else 1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1912for as_dir in $PATH 1913do 1914 IFS=$as_save_IFS 1915 test -z "$as_dir" && as_dir=. 1916 for ac_exec_ext in '' $ac_executable_extensions; do 1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1920 break 2 1921 fi 1922done 1923done 1924 1925fi 1926fi 1927CC=$ac_cv_prog_CC 1928if test -n "$CC"; then 1929 echo "$as_me:$LINENO: result: $CC" >&5 1930echo "${ECHO_T}$CC" >&6 1931else 1932 echo "$as_me:$LINENO: result: no" >&5 1933echo "${ECHO_T}no" >&6 1934fi 1935 1936 test -n "$CC" && break 1937 done 1938fi 1939if test -z "$CC"; then 1940 ac_ct_CC=$CC 1941 for ac_prog in cl 1942do 1943 # Extract the first word of "$ac_prog", so it can be a program name with args. 1944set dummy $ac_prog; ac_word=$2 1945echo "$as_me:$LINENO: checking for $ac_word" >&5 1946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1947if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1948 echo $ECHO_N "(cached) $ECHO_C" >&6 1949else 1950 if test -n "$ac_ct_CC"; then 1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1952else 1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1954for as_dir in $PATH 1955do 1956 IFS=$as_save_IFS 1957 test -z "$as_dir" && as_dir=. 1958 for ac_exec_ext in '' $ac_executable_extensions; do 1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1960 ac_cv_prog_ac_ct_CC="$ac_prog" 1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1962 break 2 1963 fi 1964done 1965done 1966 1967fi 1968fi 1969ac_ct_CC=$ac_cv_prog_ac_ct_CC 1970if test -n "$ac_ct_CC"; then 1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1972echo "${ECHO_T}$ac_ct_CC" >&6 1973else 1974 echo "$as_me:$LINENO: result: no" >&5 1975echo "${ECHO_T}no" >&6 1976fi 1977 1978 test -n "$ac_ct_CC" && break 1979done 1980 1981 CC=$ac_ct_CC 1982fi 1983 1984fi 1985 1986 1987test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1988See \`config.log' for more details." >&5 1989echo "$as_me: error: no acceptable C compiler found in \$PATH 1990See \`config.log' for more details." >&2;} 1991 { (exit 1); exit 1; }; } 1992 1993# Provide some information about the compiler. 1994echo "$as_me:$LINENO:" \ 1995 "checking for C compiler version" >&5 1996ac_compiler=`set X $ac_compile; echo $2` 1997{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1998 (eval $ac_compiler --version </dev/null >&5) 2>&5 1999 ac_status=$? 2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2001 (exit $ac_status); } 2002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2003 (eval $ac_compiler -v </dev/null >&5) 2>&5 2004 ac_status=$? 2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2006 (exit $ac_status); } 2007{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2008 (eval $ac_compiler -V </dev/null >&5) 2>&5 2009 ac_status=$? 2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2011 (exit $ac_status); } 2012 2013cat >conftest.$ac_ext <<_ACEOF 2014/* confdefs.h. */ 2015_ACEOF 2016cat confdefs.h >>conftest.$ac_ext 2017cat >>conftest.$ac_ext <<_ACEOF 2018/* end confdefs.h. */ 2019 2020int 2021main () 2022{ 2023 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028ac_clean_files_save=$ac_clean_files 2029ac_clean_files="$ac_clean_files a.out a.exe b.out" 2030# Try to create an executable without -o first, disregard a.out. 2031# It will help us diagnose broken compilers, and finding out an intuition 2032# of exeext. 2033echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2034echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2035ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2036if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2037 (eval $ac_link_default) 2>&5 2038 ac_status=$? 2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2040 (exit $ac_status); }; then 2041 # Find the output, starting from the most likely. This scheme is 2042# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2043# resort. 2044 2045# Be careful to initialize this variable, since it used to be cached. 2046# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2047ac_cv_exeext= 2048# b.out is created by i960 compilers. 2049for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2050do 2051 test -f "$ac_file" || continue 2052 case $ac_file in 2053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2054 ;; 2055 conftest.$ac_ext ) 2056 # This is the source file. 2057 ;; 2058 [ab].out ) 2059 # We found the default executable, but exeext='' is most 2060 # certainly right. 2061 break;; 2062 *.* ) 2063 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2064 # FIXME: I believe we export ac_cv_exeext for Libtool, 2065 # but it would be cool to find out if it's true. Does anybody 2066 # maintain Libtool? --akim. 2067 export ac_cv_exeext 2068 break;; 2069 * ) 2070 break;; 2071 esac 2072done 2073else 2074 echo "$as_me: failed program was:" >&5 2075sed 's/^/| /' conftest.$ac_ext >&5 2076 2077{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2078See \`config.log' for more details." >&5 2079echo "$as_me: error: C compiler cannot create executables 2080See \`config.log' for more details." >&2;} 2081 { (exit 77); exit 77; }; } 2082fi 2083 2084ac_exeext=$ac_cv_exeext 2085echo "$as_me:$LINENO: result: $ac_file" >&5 2086echo "${ECHO_T}$ac_file" >&6 2087 2088# Check the compiler produces executables we can run. If not, either 2089# the compiler is broken, or we cross compile. 2090echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2091echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2092# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2093# If not cross compiling, check that we can run a simple program. 2094if test "$cross_compiling" != yes; then 2095 if { ac_try='./$ac_file' 2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2097 (eval $ac_try) 2>&5 2098 ac_status=$? 2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2100 (exit $ac_status); }; }; then 2101 cross_compiling=no 2102 else 2103 if test "$cross_compiling" = maybe; then 2104 cross_compiling=yes 2105 else 2106 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2107If you meant to cross compile, use \`--host'. 2108See \`config.log' for more details." >&5 2109echo "$as_me: error: cannot run C compiled programs. 2110If you meant to cross compile, use \`--host'. 2111See \`config.log' for more details." >&2;} 2112 { (exit 1); exit 1; }; } 2113 fi 2114 fi 2115fi 2116echo "$as_me:$LINENO: result: yes" >&5 2117echo "${ECHO_T}yes" >&6 2118 2119rm -f a.out a.exe conftest$ac_cv_exeext b.out 2120ac_clean_files=$ac_clean_files_save 2121# Check the compiler produces executables we can run. If not, either 2122# the compiler is broken, or we cross compile. 2123echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2124echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2125echo "$as_me:$LINENO: result: $cross_compiling" >&5 2126echo "${ECHO_T}$cross_compiling" >&6 2127 2128echo "$as_me:$LINENO: checking for suffix of executables" >&5 2129echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2131 (eval $ac_link) 2>&5 2132 ac_status=$? 2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2134 (exit $ac_status); }; then 2135 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2136# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2137# work properly (i.e., refer to `conftest.exe'), while it won't with 2138# `rm'. 2139for ac_file in conftest.exe conftest conftest.*; do 2140 test -f "$ac_file" || continue 2141 case $ac_file in 2142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2143 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2144 export ac_cv_exeext 2145 break;; 2146 * ) break;; 2147 esac 2148done 2149else 2150 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2151See \`config.log' for more details." >&5 2152echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2153See \`config.log' for more details." >&2;} 2154 { (exit 1); exit 1; }; } 2155fi 2156 2157rm -f conftest$ac_cv_exeext 2158echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2159echo "${ECHO_T}$ac_cv_exeext" >&6 2160 2161rm -f conftest.$ac_ext 2162EXEEXT=$ac_cv_exeext 2163ac_exeext=$EXEEXT 2164echo "$as_me:$LINENO: checking for suffix of object files" >&5 2165echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2166if test "${ac_cv_objext+set}" = set; then 2167 echo $ECHO_N "(cached) $ECHO_C" >&6 2168else 2169 cat >conftest.$ac_ext <<_ACEOF 2170/* confdefs.h. */ 2171_ACEOF 2172cat confdefs.h >>conftest.$ac_ext 2173cat >>conftest.$ac_ext <<_ACEOF 2174/* end confdefs.h. */ 2175 2176int 2177main () 2178{ 2179 2180 ; 2181 return 0; 2182} 2183_ACEOF 2184rm -f conftest.o conftest.obj 2185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2186 (eval $ac_compile) 2>&5 2187 ac_status=$? 2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2189 (exit $ac_status); }; then 2190 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2191 case $ac_file in 2192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2193 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2194 break;; 2195 esac 2196done 2197else 2198 echo "$as_me: failed program was:" >&5 2199sed 's/^/| /' conftest.$ac_ext >&5 2200 2201{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2202See \`config.log' for more details." >&5 2203echo "$as_me: error: cannot compute suffix of object files: cannot compile 2204See \`config.log' for more details." >&2;} 2205 { (exit 1); exit 1; }; } 2206fi 2207 2208rm -f conftest.$ac_cv_objext conftest.$ac_ext 2209fi 2210echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2211echo "${ECHO_T}$ac_cv_objext" >&6 2212OBJEXT=$ac_cv_objext 2213ac_objext=$OBJEXT 2214echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2215echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2216if test "${ac_cv_c_compiler_gnu+set}" = set; then 2217 echo $ECHO_N "(cached) $ECHO_C" >&6 2218else 2219 cat >conftest.$ac_ext <<_ACEOF 2220/* confdefs.h. */ 2221_ACEOF 2222cat confdefs.h >>conftest.$ac_ext 2223cat >>conftest.$ac_ext <<_ACEOF 2224/* end confdefs.h. */ 2225 2226int 2227main () 2228{ 2229#ifndef __GNUC__ 2230 choke me 2231#endif 2232 2233 ; 2234 return 0; 2235} 2236_ACEOF 2237rm -f conftest.$ac_objext 2238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2239 (eval $ac_compile) 2>conftest.er1 2240 ac_status=$? 2241 grep -v '^ *+' conftest.er1 >conftest.err 2242 rm -f conftest.er1 2243 cat conftest.err >&5 2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2245 (exit $ac_status); } && 2246 { ac_try='test -z "$ac_c_werror_flag" 2247 || test ! -s conftest.err' 2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2249 (eval $ac_try) 2>&5 2250 ac_status=$? 2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2252 (exit $ac_status); }; } && 2253 { ac_try='test -s conftest.$ac_objext' 2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2255 (eval $ac_try) 2>&5 2256 ac_status=$? 2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2258 (exit $ac_status); }; }; then 2259 ac_compiler_gnu=yes 2260else 2261 echo "$as_me: failed program was:" >&5 2262sed 's/^/| /' conftest.$ac_ext >&5 2263 2264ac_compiler_gnu=no 2265fi 2266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2267ac_cv_c_compiler_gnu=$ac_compiler_gnu 2268 2269fi 2270echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2271echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2272GCC=`test $ac_compiler_gnu = yes && echo yes` 2273ac_test_CFLAGS=${CFLAGS+set} 2274ac_save_CFLAGS=$CFLAGS 2275CFLAGS="-g" 2276echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2277echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2278if test "${ac_cv_prog_cc_g+set}" = set; then 2279 echo $ECHO_N "(cached) $ECHO_C" >&6 2280else 2281 cat >conftest.$ac_ext <<_ACEOF 2282/* confdefs.h. */ 2283_ACEOF 2284cat confdefs.h >>conftest.$ac_ext 2285cat >>conftest.$ac_ext <<_ACEOF 2286/* end confdefs.h. */ 2287 2288int 2289main () 2290{ 2291 2292 ; 2293 return 0; 2294} 2295_ACEOF 2296rm -f conftest.$ac_objext 2297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2298 (eval $ac_compile) 2>conftest.er1 2299 ac_status=$? 2300 grep -v '^ *+' conftest.er1 >conftest.err 2301 rm -f conftest.er1 2302 cat conftest.err >&5 2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2304 (exit $ac_status); } && 2305 { ac_try='test -z "$ac_c_werror_flag" 2306 || test ! -s conftest.err' 2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2308 (eval $ac_try) 2>&5 2309 ac_status=$? 2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2311 (exit $ac_status); }; } && 2312 { ac_try='test -s conftest.$ac_objext' 2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2314 (eval $ac_try) 2>&5 2315 ac_status=$? 2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2317 (exit $ac_status); }; }; then 2318 ac_cv_prog_cc_g=yes 2319else 2320 echo "$as_me: failed program was:" >&5 2321sed 's/^/| /' conftest.$ac_ext >&5 2322 2323ac_cv_prog_cc_g=no 2324fi 2325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2326fi 2327echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2328echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2329if test "$ac_test_CFLAGS" = set; then 2330 CFLAGS=$ac_save_CFLAGS 2331elif test $ac_cv_prog_cc_g = yes; then 2332 if test "$GCC" = yes; then 2333 CFLAGS="-g -O2" 2334 else 2335 CFLAGS="-g" 2336 fi 2337else 2338 if test "$GCC" = yes; then 2339 CFLAGS="-O2" 2340 else 2341 CFLAGS= 2342 fi 2343fi 2344echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2345echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2346if test "${ac_cv_prog_cc_stdc+set}" = set; then 2347 echo $ECHO_N "(cached) $ECHO_C" >&6 2348else 2349 ac_cv_prog_cc_stdc=no 2350ac_save_CC=$CC 2351cat >conftest.$ac_ext <<_ACEOF 2352/* confdefs.h. */ 2353_ACEOF 2354cat confdefs.h >>conftest.$ac_ext 2355cat >>conftest.$ac_ext <<_ACEOF 2356/* end confdefs.h. */ 2357#include <stdarg.h> 2358#include <stdio.h> 2359#include <sys/types.h> 2360#include <sys/stat.h> 2361/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2362struct buf { int x; }; 2363FILE * (*rcsopen) (struct buf *, struct stat *, int); 2364static char *e (p, i) 2365 char **p; 2366 int i; 2367{ 2368 return p[i]; 2369} 2370static char *f (char * (*g) (char **, int), char **p, ...) 2371{ 2372 char *s; 2373 va_list v; 2374 va_start (v,p); 2375 s = g (p, va_arg (v,int)); 2376 va_end (v); 2377 return s; 2378} 2379 2380/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2381 function prototypes and stuff, but not '\xHH' hex character constants. 2382 These don't provoke an error unfortunately, instead are silently treated 2383 as 'x'. The following induces an error, until -std1 is added to get 2384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2385 array size at least. It's necessary to write '\x00'==0 to get something 2386 that's true only with -std1. */ 2387int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2388 2389int test (int i, double x); 2390struct s1 {int (*f) (int a);}; 2391struct s2 {int (*f) (double a);}; 2392int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2393int argc; 2394char **argv; 2395int 2396main () 2397{ 2398return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2399 ; 2400 return 0; 2401} 2402_ACEOF 2403# Don't try gcc -ansi; that turns off useful extensions and 2404# breaks some systems' header files. 2405# AIX -qlanglvl=ansi 2406# Ultrix and OSF/1 -std1 2407# HP-UX 10.20 and later -Ae 2408# HP-UX older versions -Aa -D_HPUX_SOURCE 2409# SVR4 -Xc -D__EXTENSIONS__ 2410for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2411do 2412 CC="$ac_save_CC $ac_arg" 2413 rm -f conftest.$ac_objext 2414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2415 (eval $ac_compile) 2>conftest.er1 2416 ac_status=$? 2417 grep -v '^ *+' conftest.er1 >conftest.err 2418 rm -f conftest.er1 2419 cat conftest.err >&5 2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2421 (exit $ac_status); } && 2422 { ac_try='test -z "$ac_c_werror_flag" 2423 || test ! -s conftest.err' 2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2425 (eval $ac_try) 2>&5 2426 ac_status=$? 2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2428 (exit $ac_status); }; } && 2429 { ac_try='test -s conftest.$ac_objext' 2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2431 (eval $ac_try) 2>&5 2432 ac_status=$? 2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2434 (exit $ac_status); }; }; then 2435 ac_cv_prog_cc_stdc=$ac_arg 2436break 2437else 2438 echo "$as_me: failed program was:" >&5 2439sed 's/^/| /' conftest.$ac_ext >&5 2440 2441fi 2442rm -f conftest.err conftest.$ac_objext 2443done 2444rm -f conftest.$ac_ext conftest.$ac_objext 2445CC=$ac_save_CC 2446 2447fi 2448 2449case "x$ac_cv_prog_cc_stdc" in 2450 x|xno) 2451 echo "$as_me:$LINENO: result: none needed" >&5 2452echo "${ECHO_T}none needed" >&6 ;; 2453 *) 2454 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2455echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2456 CC="$CC $ac_cv_prog_cc_stdc" ;; 2457esac 2458 2459# Some people use a C++ compiler to compile C. Since we use `exit', 2460# in C++ we need to declare it. In case someone uses the same compiler 2461# for both compiling C and C++ we need to have the C++ compiler decide 2462# the declaration of exit, since it's the most demanding environment. 2463cat >conftest.$ac_ext <<_ACEOF 2464#ifndef __cplusplus 2465 choke me 2466#endif 2467_ACEOF 2468rm -f conftest.$ac_objext 2469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2470 (eval $ac_compile) 2>conftest.er1 2471 ac_status=$? 2472 grep -v '^ *+' conftest.er1 >conftest.err 2473 rm -f conftest.er1 2474 cat conftest.err >&5 2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2476 (exit $ac_status); } && 2477 { ac_try='test -z "$ac_c_werror_flag" 2478 || test ! -s conftest.err' 2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2480 (eval $ac_try) 2>&5 2481 ac_status=$? 2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2483 (exit $ac_status); }; } && 2484 { ac_try='test -s conftest.$ac_objext' 2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2486 (eval $ac_try) 2>&5 2487 ac_status=$? 2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2489 (exit $ac_status); }; }; then 2490 for ac_declaration in \ 2491 '' \ 2492 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2493 'extern "C" void std::exit (int); using std::exit;' \ 2494 'extern "C" void exit (int) throw ();' \ 2495 'extern "C" void exit (int);' \ 2496 'void exit (int);' 2497do 2498 cat >conftest.$ac_ext <<_ACEOF 2499/* confdefs.h. */ 2500_ACEOF 2501cat confdefs.h >>conftest.$ac_ext 2502cat >>conftest.$ac_ext <<_ACEOF 2503/* end confdefs.h. */ 2504$ac_declaration 2505#include <stdlib.h> 2506int 2507main () 2508{ 2509exit (42); 2510 ; 2511 return 0; 2512} 2513_ACEOF 2514rm -f conftest.$ac_objext 2515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2516 (eval $ac_compile) 2>conftest.er1 2517 ac_status=$? 2518 grep -v '^ *+' conftest.er1 >conftest.err 2519 rm -f conftest.er1 2520 cat conftest.err >&5 2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2522 (exit $ac_status); } && 2523 { ac_try='test -z "$ac_c_werror_flag" 2524 || test ! -s conftest.err' 2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2526 (eval $ac_try) 2>&5 2527 ac_status=$? 2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2529 (exit $ac_status); }; } && 2530 { ac_try='test -s conftest.$ac_objext' 2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2532 (eval $ac_try) 2>&5 2533 ac_status=$? 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); }; }; then 2536 : 2537else 2538 echo "$as_me: failed program was:" >&5 2539sed 's/^/| /' conftest.$ac_ext >&5 2540 2541continue 2542fi 2543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2544 cat >conftest.$ac_ext <<_ACEOF 2545/* confdefs.h. */ 2546_ACEOF 2547cat confdefs.h >>conftest.$ac_ext 2548cat >>conftest.$ac_ext <<_ACEOF 2549/* end confdefs.h. */ 2550$ac_declaration 2551int 2552main () 2553{ 2554exit (42); 2555 ; 2556 return 0; 2557} 2558_ACEOF 2559rm -f conftest.$ac_objext 2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2561 (eval $ac_compile) 2>conftest.er1 2562 ac_status=$? 2563 grep -v '^ *+' conftest.er1 >conftest.err 2564 rm -f conftest.er1 2565 cat conftest.err >&5 2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2567 (exit $ac_status); } && 2568 { ac_try='test -z "$ac_c_werror_flag" 2569 || test ! -s conftest.err' 2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2571 (eval $ac_try) 2>&5 2572 ac_status=$? 2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2574 (exit $ac_status); }; } && 2575 { ac_try='test -s conftest.$ac_objext' 2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2577 (eval $ac_try) 2>&5 2578 ac_status=$? 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); }; }; then 2581 break 2582else 2583 echo "$as_me: failed program was:" >&5 2584sed 's/^/| /' conftest.$ac_ext >&5 2585 2586fi 2587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2588done 2589rm -f conftest* 2590if test -n "$ac_declaration"; then 2591 echo '#ifdef __cplusplus' >>confdefs.h 2592 echo $ac_declaration >>confdefs.h 2593 echo '#endif' >>confdefs.h 2594fi 2595 2596else 2597 echo "$as_me: failed program was:" >&5 2598sed 's/^/| /' conftest.$ac_ext >&5 2599 2600fi 2601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2602ac_ext=c 2603ac_cpp='$CPP $CPPFLAGS' 2604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2606ac_compiler_gnu=$ac_cv_c_compiler_gnu 2607 2608ac_ext=c 2609ac_cpp='$CPP $CPPFLAGS' 2610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2612ac_compiler_gnu=$ac_cv_c_compiler_gnu 2613echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2614echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2615# On Suns, sometimes $CPP names a directory. 2616if test -n "$CPP" && test -d "$CPP"; then 2617 CPP= 2618fi 2619if test -z "$CPP"; then 2620 if test "${ac_cv_prog_CPP+set}" = set; then 2621 echo $ECHO_N "(cached) $ECHO_C" >&6 2622else 2623 # Double quotes because CPP needs to be expanded 2624 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2625 do 2626 ac_preproc_ok=false 2627for ac_c_preproc_warn_flag in '' yes 2628do 2629 # Use a header file that comes with gcc, so configuring glibc 2630 # with a fresh cross-compiler works. 2631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2632 # <limits.h> exists even on freestanding compilers. 2633 # On the NeXT, cc -E runs the code through the compiler's parser, 2634 # not just through cpp. "Syntax error" is here to catch this case. 2635 cat >conftest.$ac_ext <<_ACEOF 2636/* confdefs.h. */ 2637_ACEOF 2638cat confdefs.h >>conftest.$ac_ext 2639cat >>conftest.$ac_ext <<_ACEOF 2640/* end confdefs.h. */ 2641#ifdef __STDC__ 2642# include <limits.h> 2643#else 2644# include <assert.h> 2645#endif 2646 Syntax error 2647_ACEOF 2648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2650 ac_status=$? 2651 grep -v '^ *+' conftest.er1 >conftest.err 2652 rm -f conftest.er1 2653 cat conftest.err >&5 2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2655 (exit $ac_status); } >/dev/null; then 2656 if test -s conftest.err; then 2657 ac_cpp_err=$ac_c_preproc_warn_flag 2658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2659 else 2660 ac_cpp_err= 2661 fi 2662else 2663 ac_cpp_err=yes 2664fi 2665if test -z "$ac_cpp_err"; then 2666 : 2667else 2668 echo "$as_me: failed program was:" >&5 2669sed 's/^/| /' conftest.$ac_ext >&5 2670 2671 # Broken: fails on valid input. 2672continue 2673fi 2674rm -f conftest.err conftest.$ac_ext 2675 2676 # OK, works on sane cases. Now check whether non-existent headers 2677 # can be detected and how. 2678 cat >conftest.$ac_ext <<_ACEOF 2679/* confdefs.h. */ 2680_ACEOF 2681cat confdefs.h >>conftest.$ac_ext 2682cat >>conftest.$ac_ext <<_ACEOF 2683/* end confdefs.h. */ 2684#include <ac_nonexistent.h> 2685_ACEOF 2686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2688 ac_status=$? 2689 grep -v '^ *+' conftest.er1 >conftest.err 2690 rm -f conftest.er1 2691 cat conftest.err >&5 2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2693 (exit $ac_status); } >/dev/null; then 2694 if test -s conftest.err; then 2695 ac_cpp_err=$ac_c_preproc_warn_flag 2696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2697 else 2698 ac_cpp_err= 2699 fi 2700else 2701 ac_cpp_err=yes 2702fi 2703if test -z "$ac_cpp_err"; then 2704 # Broken: success on invalid input. 2705continue 2706else 2707 echo "$as_me: failed program was:" >&5 2708sed 's/^/| /' conftest.$ac_ext >&5 2709 2710 # Passes both tests. 2711ac_preproc_ok=: 2712break 2713fi 2714rm -f conftest.err conftest.$ac_ext 2715 2716done 2717# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2718rm -f conftest.err conftest.$ac_ext 2719if $ac_preproc_ok; then 2720 break 2721fi 2722 2723 done 2724 ac_cv_prog_CPP=$CPP 2725 2726fi 2727 CPP=$ac_cv_prog_CPP 2728else 2729 ac_cv_prog_CPP=$CPP 2730fi 2731echo "$as_me:$LINENO: result: $CPP" >&5 2732echo "${ECHO_T}$CPP" >&6 2733ac_preproc_ok=false 2734for ac_c_preproc_warn_flag in '' yes 2735do 2736 # Use a header file that comes with gcc, so configuring glibc 2737 # with a fresh cross-compiler works. 2738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2739 # <limits.h> exists even on freestanding compilers. 2740 # On the NeXT, cc -E runs the code through the compiler's parser, 2741 # not just through cpp. "Syntax error" is here to catch this case. 2742 cat >conftest.$ac_ext <<_ACEOF 2743/* confdefs.h. */ 2744_ACEOF 2745cat confdefs.h >>conftest.$ac_ext 2746cat >>conftest.$ac_ext <<_ACEOF 2747/* end confdefs.h. */ 2748#ifdef __STDC__ 2749# include <limits.h> 2750#else 2751# include <assert.h> 2752#endif 2753 Syntax error 2754_ACEOF 2755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2757 ac_status=$? 2758 grep -v '^ *+' conftest.er1 >conftest.err 2759 rm -f conftest.er1 2760 cat conftest.err >&5 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); } >/dev/null; then 2763 if test -s conftest.err; then 2764 ac_cpp_err=$ac_c_preproc_warn_flag 2765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2766 else 2767 ac_cpp_err= 2768 fi 2769else 2770 ac_cpp_err=yes 2771fi 2772if test -z "$ac_cpp_err"; then 2773 : 2774else 2775 echo "$as_me: failed program was:" >&5 2776sed 's/^/| /' conftest.$ac_ext >&5 2777 2778 # Broken: fails on valid input. 2779continue 2780fi 2781rm -f conftest.err conftest.$ac_ext 2782 2783 # OK, works on sane cases. Now check whether non-existent headers 2784 # can be detected and how. 2785 cat >conftest.$ac_ext <<_ACEOF 2786/* confdefs.h. */ 2787_ACEOF 2788cat confdefs.h >>conftest.$ac_ext 2789cat >>conftest.$ac_ext <<_ACEOF 2790/* end confdefs.h. */ 2791#include <ac_nonexistent.h> 2792_ACEOF 2793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2795 ac_status=$? 2796 grep -v '^ *+' conftest.er1 >conftest.err 2797 rm -f conftest.er1 2798 cat conftest.err >&5 2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2800 (exit $ac_status); } >/dev/null; then 2801 if test -s conftest.err; then 2802 ac_cpp_err=$ac_c_preproc_warn_flag 2803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2804 else 2805 ac_cpp_err= 2806 fi 2807else 2808 ac_cpp_err=yes 2809fi 2810if test -z "$ac_cpp_err"; then 2811 # Broken: success on invalid input. 2812continue 2813else 2814 echo "$as_me: failed program was:" >&5 2815sed 's/^/| /' conftest.$ac_ext >&5 2816 2817 # Passes both tests. 2818ac_preproc_ok=: 2819break 2820fi 2821rm -f conftest.err conftest.$ac_ext 2822 2823done 2824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2825rm -f conftest.err conftest.$ac_ext 2826if $ac_preproc_ok; then 2827 : 2828else 2829 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2830See \`config.log' for more details." >&5 2831echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2832See \`config.log' for more details." >&2;} 2833 { (exit 1); exit 1; }; } 2834fi 2835 2836ac_ext=c 2837ac_cpp='$CPP $CPPFLAGS' 2838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2840ac_compiler_gnu=$ac_cv_c_compiler_gnu 2841 2842echo "$as_me:$LINENO: checking for egrep" >&5 2843echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2844if test "${ac_cv_prog_egrep+set}" = set; then 2845 echo $ECHO_N "(cached) $ECHO_C" >&6 2846else 2847 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2848 then ac_cv_prog_egrep='grep -E' 2849 else ac_cv_prog_egrep='egrep' 2850 fi 2851fi 2852echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2853echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2854 EGREP=$ac_cv_prog_egrep 2855 2856 2857echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2858echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2859set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2860if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2861 echo $ECHO_N "(cached) $ECHO_C" >&6 2862else 2863 cat >conftest.make <<\_ACEOF 2864all: 2865 @echo 'ac_maketemp="$(MAKE)"' 2866_ACEOF 2867# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2868eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2869if test -n "$ac_maketemp"; then 2870 eval ac_cv_prog_make_${ac_make}_set=yes 2871else 2872 eval ac_cv_prog_make_${ac_make}_set=no 2873fi 2874rm -f conftest.make 2875fi 2876if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2877 echo "$as_me:$LINENO: result: yes" >&5 2878echo "${ECHO_T}yes" >&6 2879 SET_MAKE= 2880else 2881 echo "$as_me:$LINENO: result: no" >&5 2882echo "${ECHO_T}no" >&6 2883 SET_MAKE="MAKE=${MAKE-make}" 2884fi 2885 2886# Check whether --enable-debug or --disable-debug was given. 2887if test "${enable_debug+set}" = set; then 2888 enableval="$enable_debug" 2889 if test ".$ac_cv_c_compiler_gnu" = ".yes"; then 2890 case "$CFLAGS" in 2891 *-O* ) ;; 2892 * ) CFLAGS="$CFLAGS -O2" ;; 2893 esac 2894 case "$CFLAGS" in 2895 *-g* ) ;; 2896 * ) CFLAGS="$CFLAGS -g" ;; 2897 esac 2898 case "$CFLAGS" in 2899 *-pipe* ) ;; 2900 * ) echo "$as_me:$LINENO: checking for compiler option -pipe" >&5 2901echo $ECHO_N "checking for compiler option -pipe... $ECHO_C" >&6 2902if test "${ac_cv_compiler_option_pipe+set}" = set; then 2903 echo $ECHO_N "(cached) $ECHO_C" >&6 2904else 2905 2906cat >conftest.$ac_ext <<EOF 2907int main() { return 0; } 2908EOF 2909${CC-cc} -c $CFLAGS $CPPFLAGS -pipe conftest.$ac_ext 1>conftest.out 2>conftest.err 2910if test $? -ne 0 -o -s conftest.err; then 2911 ac_cv_compiler_option_pipe=no 2912else 2913 ac_cv_compiler_option_pipe=yes 2914fi 2915rm -f conftest.$ac_ext conftest.out conftest.err 2916 2917fi 2918if test ".$ac_cv_compiler_option_pipe" = .yes; then 2919 CFLAGS="$CFLAGS -pipe" 2920else 2921 : 2922fi 2923echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5 2924echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6 2925 ;; 2926 esac 2927 case $PLATFORM in 2928 *-*-freebsd*|*-*-solaris* ) CFLAGS="$CFLAGS -pedantic" ;; 2929 esac 2930 CFLAGS="$CFLAGS -Wall" 2931 WMORE="-Wshadow -Wpointer-arith -Wcast-align -Winline" 2932 WMORE="$WMORE -Wmissing-prototypes -Wmissing-declarations -Wnested-externs" 2933 echo "$as_me:$LINENO: checking for compiler option -W<xxx>" >&5 2934echo $ECHO_N "checking for compiler option -W<xxx>... $ECHO_C" >&6 2935if test "${ac_cv_compiler_option_wmore+set}" = set; then 2936 echo $ECHO_N "(cached) $ECHO_C" >&6 2937else 2938 2939cat >conftest.$ac_ext <<EOF 2940int main() { return 0; } 2941EOF 2942${CC-cc} -c $CFLAGS $CPPFLAGS $WMORE conftest.$ac_ext 1>conftest.out 2>conftest.err 2943if test $? -ne 0 -o -s conftest.err; then 2944 ac_cv_compiler_option_wmore=no 2945else 2946 ac_cv_compiler_option_wmore=yes 2947fi 2948rm -f conftest.$ac_ext conftest.out conftest.err 2949 2950fi 2951if test ".$ac_cv_compiler_option_wmore" = .yes; then 2952 CFLAGS="$CFLAGS $WMORE" 2953else 2954 : 2955fi 2956echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wmore" >&5 2957echo "${ECHO_T}$ac_cv_compiler_option_wmore" >&6 2958 2959 echo "$as_me:$LINENO: checking for compiler option -Wno-long-long" >&5 2960echo $ECHO_N "checking for compiler option -Wno-long-long... $ECHO_C" >&6 2961if test "${ac_cv_compiler_option_wnolonglong+set}" = set; then 2962 echo $ECHO_N "(cached) $ECHO_C" >&6 2963else 2964 2965cat >conftest.$ac_ext <<EOF 2966int main() { return 0; } 2967EOF 2968${CC-cc} -c $CFLAGS $CPPFLAGS -Wno-long-long conftest.$ac_ext 1>conftest.out 2>conftest.err 2969if test $? -ne 0 -o -s conftest.err; then 2970 ac_cv_compiler_option_wnolonglong=no 2971else 2972 ac_cv_compiler_option_wnolonglong=yes 2973fi 2974rm -f conftest.$ac_ext conftest.out conftest.err 2975 2976fi 2977if test ".$ac_cv_compiler_option_wnolonglong" = .yes; then 2978 CFLAGS="$CFLAGS -Wno-long-long" 2979else 2980 : 2981fi 2982echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wnolonglong" >&5 2983echo "${ECHO_T}$ac_cv_compiler_option_wnolonglong" >&6 2984 2985 echo "$as_me:$LINENO: checking for compiler option -fno-strict-aliasing" >&5 2986echo $ECHO_N "checking for compiler option -fno-strict-aliasing... $ECHO_C" >&6 2987if test "${ac_cv_compiler_option_fnostrictaliasing+set}" = set; then 2988 echo $ECHO_N "(cached) $ECHO_C" >&6 2989else 2990 2991cat >conftest.$ac_ext <<EOF 2992int main() { return 0; } 2993EOF 2994${CC-cc} -c $CFLAGS $CPPFLAGS -fno-strict-aliasing conftest.$ac_ext 1>conftest.out 2>conftest.err 2995if test $? -ne 0 -o -s conftest.err; then 2996 ac_cv_compiler_option_fnostrictaliasing=no 2997else 2998 ac_cv_compiler_option_fnostrictaliasing=yes 2999fi 3000rm -f conftest.$ac_ext conftest.out conftest.err 3001 3002fi 3003if test ".$ac_cv_compiler_option_fnostrictaliasing" = .yes; then 3004 CFLAGS="$CFLAGS -fno-strict-aliasing" 3005else 3006 : 3007fi 3008echo "$as_me:$LINENO: result: $ac_cv_compiler_option_fnostrictaliasing" >&5 3009echo "${ECHO_T}$ac_cv_compiler_option_fnostrictaliasing" >&6 3010 3011else 3012 case "$CFLAGS" in 3013 *-g* ) ;; 3014 * ) CFLAGS="$CFLAGS -g" ;; 3015 esac 3016fi 3017msg="enabled" 3018 3019cat >>confdefs.h <<\_ACEOF 3020#define PTH_DEBUG 1 3021_ACEOF 3022 3023 3024else 3025 3026if test ".$ac_cv_c_compiler_gnu" = ".yes"; then 3027case "$CFLAGS" in 3028 *-pipe* ) ;; 3029 * ) echo "$as_me:$LINENO: checking for compiler option -pipe" >&5 3030echo $ECHO_N "checking for compiler option -pipe... $ECHO_C" >&6 3031if test "${ac_cv_compiler_option_pipe+set}" = set; then 3032 echo $ECHO_N "(cached) $ECHO_C" >&6 3033else 3034 3035cat >conftest.$ac_ext <<EOF 3036int main() { return 0; } 3037EOF 3038${CC-cc} -c $CFLAGS $CPPFLAGS -pipe conftest.$ac_ext 1>conftest.out 2>conftest.err 3039if test $? -ne 0 -o -s conftest.err; then 3040 ac_cv_compiler_option_pipe=no 3041else 3042 ac_cv_compiler_option_pipe=yes 3043fi 3044rm -f conftest.$ac_ext conftest.out conftest.err 3045 3046fi 3047if test ".$ac_cv_compiler_option_pipe" = .yes; then 3048 CFLAGS="$CFLAGS -pipe" 3049else 3050 : 3051fi 3052echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5 3053echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6 3054 ;; 3055esac 3056fi 3057case "$CFLAGS" in 3058 *-g* ) CFLAGS=`echo "$CFLAGS" |\ 3059 sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;; 3060esac 3061case "$CXXFLAGS" in 3062 *-g* ) CXXFLAGS=`echo "$CXXFLAGS" |\ 3063 sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;; 3064esac 3065msg="disabled" 3066 3067fi; echo "$as_me:$LINENO: checking for compilation debug mode" >&5 3068echo $ECHO_N "checking for compilation debug mode... $ECHO_C" >&6 3069echo "$as_me:$LINENO: result: $msg" >&5 3070echo "${ECHO_T}$msg" >&6 3071if test ".$msg" = .enabled; then 3072 enable_shared=no 3073fi 3074 3075echo "$as_me:$LINENO: checking for compilation profile mode" >&5 3076echo $ECHO_N "checking for compilation profile mode... $ECHO_C" >&6 3077# Check whether --enable-profile or --disable-profile was given. 3078if test "${enable_profile+set}" = set; then 3079 enableval="$enable_profile" 3080 if test ".$ac_cv_c_compiler_gnu" = ".no"; then 3081 { { echo "$as_me:$LINENO: error: profiling requires gcc and gprof" >&5 3082echo "$as_me: error: profiling requires gcc and gprof" >&2;} 3083 { (exit 1); exit 1; }; } 3084fi 3085CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2//g'` 3086CFLAGS="$CFLAGS -O0 -pg" 3087LDFLAGS="$LDFLAGS -pg" 3088msg="enabled" 3089 3090else 3091 3092msg="disabled" 3093 3094fi; echo "$as_me:$LINENO: result: $msg" >&5 3095echo "${ECHO_T}$msg" >&6 3096if test ".$msg" = .enabled; then 3097 enable_shared=no 3098fi 3099 3100# Check whether --enable-optimize or --disable-optimize was given. 3101if test "${enable_optimize+set}" = set; then 3102 enableval="$enable_optimize" 3103 if test ".$ac_cv_c_compiler_gnu" = ".yes"; then 3104 # compiler is gcc 3105 case "$CFLAGS" in 3106 *-O* ) ;; 3107 * ) CFLAGS="$CFLAGS -O2" ;; 3108 esac 3109 case "$CFLAGS" in 3110 *-pipe* ) ;; 3111 * ) echo "$as_me:$LINENO: checking for compiler option -pipe" >&5 3112echo $ECHO_N "checking for compiler option -pipe... $ECHO_C" >&6 3113if test "${ac_cv_compiler_option_pipe+set}" = set; then 3114 echo $ECHO_N "(cached) $ECHO_C" >&6 3115else 3116 3117cat >conftest.$ac_ext <<EOF 3118int main() { return 0; } 3119EOF 3120${CC-cc} -c $CFLAGS $CPPFLAGS -pipe conftest.$ac_ext 1>conftest.out 2>conftest.err 3121if test $? -ne 0 -o -s conftest.err; then 3122 ac_cv_compiler_option_pipe=no 3123else 3124 ac_cv_compiler_option_pipe=yes 3125fi 3126rm -f conftest.$ac_ext conftest.out conftest.err 3127 3128fi 3129if test ".$ac_cv_compiler_option_pipe" = .yes; then 3130 CFLAGS="$CFLAGS -pipe" 3131else 3132 : 3133fi 3134echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5 3135echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6 3136 ;; 3137 esac 3138 OPT_CFLAGS='-funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math' 3139 echo "$as_me:$LINENO: checking for compiler option -f<xxx> for optimizations" >&5 3140echo $ECHO_N "checking for compiler option -f<xxx> for optimizations... $ECHO_C" >&6 3141if test "${ac_cv_compiler_option_optimize_std+set}" = set; then 3142 echo $ECHO_N "(cached) $ECHO_C" >&6 3143else 3144 3145cat >conftest.$ac_ext <<EOF 3146int main() { return 0; } 3147EOF 3148${CC-cc} -c $CFLAGS $CPPFLAGS $OPT_CFLAGS conftest.$ac_ext 1>conftest.out 2>conftest.err 3149if test $? -ne 0 -o -s conftest.err; then 3150 ac_cv_compiler_option_optimize_std=no 3151else 3152 ac_cv_compiler_option_optimize_std=yes 3153fi 3154rm -f conftest.$ac_ext conftest.out conftest.err 3155 3156fi 3157if test ".$ac_cv_compiler_option_optimize_std" = .yes; then 3158 CFLAGS="$CFLAGS $OPT_CFLAGS" 3159else 3160 : 3161fi 3162echo "$as_me:$LINENO: result: $ac_cv_compiler_option_optimize_std" >&5 3163echo "${ECHO_T}$ac_cv_compiler_option_optimize_std" >&6 3164 3165 case $PLATFORM in 3166 i?86*-*-*|?86*-*-* ) 3167 OPT_CFLAGS='-malign-functions=4 -malign-jumps=4 -malign-loops=4' 3168 echo "$as_me:$LINENO: checking for compiler option -f<xxx> for Intel x86 CPU" >&5 3169echo $ECHO_N "checking for compiler option -f<xxx> for Intel x86 CPU... $ECHO_C" >&6 3170if test "${ac_cv_compiler_option_optimize_x86+set}" = set; then 3171 echo $ECHO_N "(cached) $ECHO_C" >&6 3172else 3173 3174cat >conftest.$ac_ext <<EOF 3175int main() { return 0; } 3176EOF 3177${CC-cc} -c $CFLAGS $CPPFLAGS $OPT_CFLAGS conftest.$ac_ext 1>conftest.out 2>conftest.err 3178if test $? -ne 0 -o -s conftest.err; then 3179 ac_cv_compiler_option_optimize_x86=no 3180else 3181 ac_cv_compiler_option_optimize_x86=yes 3182fi 3183rm -f conftest.$ac_ext conftest.out conftest.err 3184 3185fi 3186if test ".$ac_cv_compiler_option_optimize_x86" = .yes; then 3187 CFLAGS="$CFLAGS $OPT_CFLAGS" 3188else 3189 : 3190fi 3191echo "$as_me:$LINENO: result: $ac_cv_compiler_option_optimize_x86" >&5 3192echo "${ECHO_T}$ac_cv_compiler_option_optimize_x86" >&6 3193 3194 ;; 3195 esac 3196else 3197 # compiler is NOT gcc 3198 case "$CFLAGS" in 3199 *-O* ) ;; 3200 * ) CFLAGS="$CFLAGS -O" ;; 3201 esac 3202 case $PLATFORM in 3203 *-*-solaris* ) 3204 echo "$as_me:$LINENO: checking for compiler option -fast" >&5 3205echo $ECHO_N "checking for compiler option -fast... $ECHO_C" >&6 3206if test "${ac_cv_compiler_option_fast+set}" = set; then 3207 echo $ECHO_N "(cached) $ECHO_C" >&6 3208else 3209 3210cat >conftest.$ac_ext <<EOF 3211int main() { return 0; } 3212EOF 3213${CC-cc} -c $CFLAGS $CPPFLAGS -fast conftest.$ac_ext 1>conftest.out 2>conftest.err 3214if test $? -ne 0 -o -s conftest.err; then 3215 ac_cv_compiler_option_fast=no 3216else 3217 ac_cv_compiler_option_fast=yes 3218fi 3219rm -f conftest.$ac_ext conftest.out conftest.err 3220 3221fi 3222if test ".$ac_cv_compiler_option_fast" = .yes; then 3223 CFLAGS="$CFLAGS -fast" 3224else 3225 : 3226fi 3227echo "$as_me:$LINENO: result: $ac_cv_compiler_option_fast" >&5 3228echo "${ECHO_T}$ac_cv_compiler_option_fast" >&6 3229 3230 ;; 3231 esac 3232fi 3233msg="enabled" 3234 3235else 3236 3237msg="disabled" 3238 3239fi; echo "$as_me:$LINENO: checking for compilation optimization mode" >&5 3240echo $ECHO_N "checking for compilation optimization mode... $ECHO_C" >&6 3241echo "$as_me:$LINENO: result: $msg" >&5 3242echo "${ECHO_T}$msg" >&6 3243 3244if test -f "$srcdir/ltmain.sh"; then 3245 case "$PLATFORM" in 3246 # Solaris 2.7/x86 is slightly broken 3247 *-pc-solaris2.[78] ) enable_shared=no ;; 3248 esac 3249 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 3250## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 3251## Free Software Foundation, Inc. 3252## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 3253## 3254## This file is free software; the Free Software Foundation gives 3255## unlimited permission to copy and/or distribute it, with or without 3256## modifications, as long as this notice is preserved. 3257 3258# serial 48 AC_PROG_LIBTOOL 3259 3260 3261# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 3262# ----------------------------------------------------------- 3263# If this macro is not defined by Autoconf, define it here. 3264 3265 3266 3267# AC_PROG_LIBTOOL 3268# --------------- 3269# AC_PROG_LIBTOOL 3270 3271 3272# _AC_PROG_LIBTOOL 3273# ---------------- 3274# _AC_PROG_LIBTOOL 3275 3276 3277# AC_LIBTOOL_SETUP 3278# ---------------- 3279# AC_LIBTOOL_SETUP 3280 3281 3282# _LT_AC_SYS_COMPILER 3283# ------------------- 3284# _LT_AC_SYS_COMPILER 3285 3286 3287# _LT_CC_BASENAME(CC) 3288# ------------------- 3289# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 3290 3291 3292 3293# _LT_COMPILER_BOILERPLATE 3294# ------------------------ 3295# Check for compiler boilerplate output or warnings with 3296# the simple compiler test code. 3297# _LT_COMPILER_BOILERPLATE 3298 3299 3300# _LT_LINKER_BOILERPLATE 3301# ---------------------- 3302# Check for linker boilerplate output or warnings with 3303# the simple link test code. 3304# _LT_LINKER_BOILERPLATE 3305 3306 3307# _LT_AC_SYS_LIBPATH_AIX 3308# ---------------------- 3309# Links a minimal program and checks the executable 3310# for the system default hardcoded library path. In most cases, 3311# this is /usr/lib:/lib, but when the MPI compilers are used 3312# the location of the communication and MPI libs are included too. 3313# If we don't find anything, use the default library path according 3314# to the aix ld manual. 3315# _LT_AC_SYS_LIBPATH_AIX 3316 3317 3318# _LT_AC_SHELL_INIT(ARG) 3319# ---------------------- 3320# _LT_AC_SHELL_INIT 3321 3322 3323# _LT_AC_PROG_ECHO_BACKSLASH 3324# -------------------------- 3325# Add some code to the start of the generated configure script which 3326# will find an echo command which doesn't interpret backslashes. 3327# _LT_AC_PROG_ECHO_BACKSLASH 3328 3329 3330# _LT_AC_LOCK 3331# ----------- 3332# _LT_AC_LOCK 3333 3334 3335# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3336# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3337# ---------------------------------------------------------------- 3338# Check whether the given compiler option works 3339# AC_LIBTOOL_COMPILER_OPTION 3340 3341 3342# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3343# [ACTION-SUCCESS], [ACTION-FAILURE]) 3344# ------------------------------------------------------------ 3345# Check whether the given compiler option works 3346# AC_LIBTOOL_LINKER_OPTION 3347 3348 3349# AC_LIBTOOL_SYS_MAX_CMD_LEN 3350# -------------------------- 3351# AC_LIBTOOL_SYS_MAX_CMD_LEN 3352 3353 3354# _LT_AC_CHECK_DLFCN 3355# ------------------ 3356# _LT_AC_CHECK_DLFCN 3357 3358 3359# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3360# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3361# --------------------------------------------------------------------- 3362# _LT_AC_TRY_DLOPEN_SELF 3363 3364 3365# AC_LIBTOOL_DLOPEN_SELF 3366# ---------------------- 3367# AC_LIBTOOL_DLOPEN_SELF 3368 3369 3370# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 3371# --------------------------------- 3372# Check to see if options -c and -o are simultaneously supported by compiler 3373# AC_LIBTOOL_PROG_CC_C_O 3374 3375 3376# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 3377# ----------------------------------------- 3378# Check to see if we can do hard links to lock some files if needed 3379# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 3380 3381 3382# AC_LIBTOOL_OBJDIR 3383# ----------------- 3384# AC_LIBTOOL_OBJDIR 3385 3386 3387# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 3388# ---------------------------------------------- 3389# Check hardcoding attributes. 3390# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 3391 3392 3393# AC_LIBTOOL_SYS_LIB_STRIP 3394# ------------------------ 3395# AC_LIBTOOL_SYS_LIB_STRIP 3396 3397 3398# AC_LIBTOOL_SYS_DYNAMIC_LINKER 3399# ----------------------------- 3400# PORTME Fill in your ld.so characteristics 3401# AC_LIBTOOL_SYS_DYNAMIC_LINKER 3402 3403 3404# _LT_AC_TAGCONFIG 3405# ---------------- 3406# _LT_AC_TAGCONFIG 3407 3408 3409# AC_LIBTOOL_DLOPEN 3410# ----------------- 3411# enable checks for dlopen support 3412# AC_LIBTOOL_DLOPEN 3413 3414 3415# AC_LIBTOOL_WIN32_DLL 3416# -------------------- 3417# declare package support for building win32 DLLs 3418# AC_LIBTOOL_WIN32_DLL 3419 3420 3421# AC_ENABLE_SHARED([DEFAULT]) 3422# --------------------------- 3423# implement the --enable-shared flag 3424# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3425# AC_ENABLE_SHARED 3426 3427 3428# AC_DISABLE_SHARED 3429# ----------------- 3430# set the default shared flag to --disable-shared 3431# AC_DISABLE_SHARED 3432 3433 3434# AC_ENABLE_STATIC([DEFAULT]) 3435# --------------------------- 3436# implement the --enable-static flag 3437# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3438# AC_ENABLE_STATIC 3439 3440 3441# AC_DISABLE_STATIC 3442# ----------------- 3443# set the default static flag to --disable-static 3444# AC_DISABLE_STATIC 3445 3446 3447# AC_ENABLE_FAST_INSTALL([DEFAULT]) 3448# --------------------------------- 3449# implement the --enable-fast-install flag 3450# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3451# AC_ENABLE_FAST_INSTALL 3452 3453 3454# AC_DISABLE_FAST_INSTALL 3455# ----------------------- 3456# set the default to --disable-fast-install 3457# AC_DISABLE_FAST_INSTALL 3458 3459 3460# AC_LIBTOOL_PICMODE([MODE]) 3461# -------------------------- 3462# implement the --with-pic flag 3463# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 3464# AC_LIBTOOL_PICMODE 3465 3466 3467# AC_PROG_EGREP 3468# ------------- 3469# This is predefined starting with Autoconf 2.54, so this conditional 3470# definition can be removed once we require Autoconf 2.54 or later. 3471 3472 3473 3474# AC_PATH_TOOL_PREFIX 3475# ------------------- 3476# find a file program which can recognise shared library 3477# AC_PATH_TOOL_PREFIX 3478 3479 3480# AC_PATH_MAGIC 3481# ------------- 3482# find a file program which can recognise a shared library 3483# AC_PATH_MAGIC 3484 3485 3486# AC_PROG_LD 3487# ---------- 3488# find the pathname to the GNU or non-GNU linker 3489# AC_PROG_LD 3490 3491 3492# AC_PROG_LD_GNU 3493# -------------- 3494# AC_PROG_LD_GNU 3495 3496 3497# AC_PROG_LD_RELOAD_FLAG 3498# ---------------------- 3499# find reload flag for linker 3500# -- PORTME Some linkers may need a different reload flag. 3501# AC_PROG_LD_RELOAD_FLAG 3502 3503 3504# AC_DEPLIBS_CHECK_METHOD 3505# ----------------------- 3506# how to check for library dependencies 3507# -- PORTME fill in with the dynamic library characteristics 3508# AC_DEPLIBS_CHECK_METHOD 3509 3510 3511# AC_PROG_NM 3512# ---------- 3513# find the pathname to a BSD-compatible name lister 3514# AC_PROG_NM 3515 3516 3517# AC_CHECK_LIBM 3518# ------------- 3519# check for math library 3520# AC_CHECK_LIBM 3521 3522 3523# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 3524# ----------------------------------- 3525# sets LIBLTDL to the link flags for the libltdl convenience library and 3526# LTDLINCL to the include flags for the libltdl header and adds 3527# --enable-ltdl-convenience to the configure arguments. Note that 3528# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3529# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 3530# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 3531# (note the single quotes!). If your package is not flat and you're not 3532# using automake, define top_builddir and top_srcdir appropriately in 3533# the Makefiles. 3534# AC_LIBLTDL_CONVENIENCE 3535 3536 3537# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 3538# ----------------------------------- 3539# sets LIBLTDL to the link flags for the libltdl installable library and 3540# LTDLINCL to the include flags for the libltdl header and adds 3541# --enable-ltdl-install to the configure arguments. Note that 3542# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3543# and an installed libltdl is not found, it is assumed to be `libltdl'. 3544# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 3545# '${top_srcdir}/' (note the single quotes!). If your package is not 3546# flat and you're not using automake, define top_builddir and top_srcdir 3547# appropriately in the Makefiles. 3548# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 3549# AC_LIBLTDL_INSTALLABLE 3550 3551 3552# AC_LIBTOOL_CXX 3553# -------------- 3554# enable support for C++ libraries 3555# AC_LIBTOOL_CXX 3556 3557 3558# _LT_AC_LANG_CXX 3559# --------------- 3560# _LT_AC_LANG_CXX 3561 3562# _LT_AC_PROG_CXXCPP 3563# ------------------ 3564# _LT_AC_PROG_CXXCPP 3565 3566# AC_LIBTOOL_F77 3567# -------------- 3568# enable support for Fortran 77 libraries 3569# AC_LIBTOOL_F77 3570 3571 3572# _LT_AC_LANG_F77 3573# --------------- 3574# _LT_AC_LANG_F77 3575 3576 3577# AC_LIBTOOL_GCJ 3578# -------------- 3579# enable support for GCJ libraries 3580# AC_LIBTOOL_GCJ 3581 3582 3583# _LT_AC_LANG_GCJ 3584# --------------- 3585# _LT_AC_LANG_GCJ 3586 3587 3588# AC_LIBTOOL_RC 3589# ------------- 3590# enable support for Windows resource files 3591# AC_LIBTOOL_RC 3592 3593 3594# AC_LIBTOOL_LANG_C_CONFIG 3595# ------------------------ 3596# Ensure that the configuration vars for the C compiler are 3597# suitably defined. Those variables are subsequently used by 3598# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3599 3600# AC_LIBTOOL_LANG_C_CONFIG 3601 3602 3603# AC_LIBTOOL_LANG_CXX_CONFIG 3604# -------------------------- 3605# Ensure that the configuration vars for the C compiler are 3606# suitably defined. Those variables are subsequently used by 3607# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3608 3609# AC_LIBTOOL_LANG_CXX_CONFIG 3610 3611# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 3612# ------------------------------------ 3613# Figure out "hidden" library dependencies from verbose 3614# compiler output when linking a shared library. 3615# Parse the compiler output and extract the necessary 3616# objects, libraries and library flags. 3617# AC_LIBTOOL_POSTDEP_PREDEP 3618 3619# AC_LIBTOOL_LANG_F77_CONFIG 3620# -------------------------- 3621# Ensure that the configuration vars for the C compiler are 3622# suitably defined. Those variables are subsequently used by 3623# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3624 3625# AC_LIBTOOL_LANG_F77_CONFIG 3626 3627 3628# AC_LIBTOOL_LANG_GCJ_CONFIG 3629# -------------------------- 3630# Ensure that the configuration vars for the C compiler are 3631# suitably defined. Those variables are subsequently used by 3632# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3633 3634# AC_LIBTOOL_LANG_GCJ_CONFIG 3635 3636 3637# AC_LIBTOOL_LANG_RC_CONFIG 3638# ------------------------- 3639# Ensure that the configuration vars for the Windows resource compiler are 3640# suitably defined. Those variables are subsequently used by 3641# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3642 3643# AC_LIBTOOL_LANG_RC_CONFIG 3644 3645 3646# AC_LIBTOOL_CONFIG([TAGNAME]) 3647# ---------------------------- 3648# If TAGNAME is not passed, then create an initial libtool script 3649# with a default configuration from the untagged config vars. Otherwise 3650# add code to config.status for appending the configuration named by 3651# TAGNAME from the matching tagged config vars. 3652# AC_LIBTOOL_CONFIG 3653 3654 3655# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 3656# ------------------------------------------- 3657# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 3658 3659 3660# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 3661# --------------------------------- 3662 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 3663 3664 3665# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 3666# --------------------------------------- 3667 3668 3669 3670# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 3671# ------------------------------------ 3672# See if the linker supports building shared libraries. 3673# AC_LIBTOOL_PROG_LD_SHLIBS 3674 3675 3676# _LT_AC_FILE_LTDLL_C 3677# ------------------- 3678# Be careful that the start marker always follows a newline. 3679# _LT_AC_FILE_LTDLL_C 3680 3681 3682# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 3683# --------------------------------- 3684 3685 3686 3687# old names 3688 3689 3690 3691 3692 3693 3694 3695 3696# This is just to silence aclocal about the macro not being used 3697 3698 3699 3700 3701 3702 3703############################################################ 3704# NOTE: This macro has been submitted for inclusion into # 3705# GNU Autoconf as AC_PROG_SED. When it is available in # 3706# a released version of Autoconf we should remove this # 3707# macro and use it instead. # 3708############################################################ 3709# LT_AC_PROG_SED 3710# -------------- 3711# Check for a fully-functional sed program, that truncates 3712# as few characters as possible. Prefer GNU sed if found. 3713 3714 3715 # Check whether --enable-shared or --disable-shared was given. 3716if test "${enable_shared+set}" = set; then 3717 enableval="$enable_shared" 3718 p=${PACKAGE-default} 3719 case $enableval in 3720 yes) enable_shared=yes ;; 3721 no) enable_shared=no ;; 3722 *) 3723 enable_shared=no 3724 # Look at the argument we got. We use all the common list separators. 3725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3726 for pkg in $enableval; do 3727 IFS="$lt_save_ifs" 3728 if test "X$pkg" = "X$p"; then 3729 enable_shared=yes 3730 fi 3731 done 3732 IFS="$lt_save_ifs" 3733 ;; 3734 esac 3735else 3736 enable_shared=yes 3737fi; 3738 3739# Check whether --enable-static or --disable-static was given. 3740if test "${enable_static+set}" = set; then 3741 enableval="$enable_static" 3742 p=${PACKAGE-default} 3743 case $enableval in 3744 yes) enable_static=yes ;; 3745 no) enable_static=no ;; 3746 *) 3747 enable_static=no 3748 # Look at the argument we got. We use all the common list separators. 3749 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3750 for pkg in $enableval; do 3751 IFS="$lt_save_ifs" 3752 if test "X$pkg" = "X$p"; then 3753 enable_static=yes 3754 fi 3755 done 3756 IFS="$lt_save_ifs" 3757 ;; 3758 esac 3759else 3760 enable_static=yes 3761fi; 3762 3763# Check whether --enable-fast-install or --disable-fast-install was given. 3764if test "${enable_fast_install+set}" = set; then 3765 enableval="$enable_fast_install" 3766 p=${PACKAGE-default} 3767 case $enableval in 3768 yes) enable_fast_install=yes ;; 3769 no) enable_fast_install=no ;; 3770 *) 3771 enable_fast_install=no 3772 # Look at the argument we got. We use all the common list separators. 3773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3774 for pkg in $enableval; do 3775 IFS="$lt_save_ifs" 3776 if test "X$pkg" = "X$p"; then 3777 enable_fast_install=yes 3778 fi 3779 done 3780 IFS="$lt_save_ifs" 3781 ;; 3782 esac 3783else 3784 enable_fast_install=yes 3785fi; 3786 3787ac_aux_dir= 3788for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 3789 if test -f $ac_dir/install-sh; then 3790 ac_aux_dir=$ac_dir 3791 ac_install_sh="$ac_aux_dir/install-sh -c" 3792 break 3793 elif test -f $ac_dir/install.sh; then 3794 ac_aux_dir=$ac_dir 3795 ac_install_sh="$ac_aux_dir/install.sh -c" 3796 break 3797 elif test -f $ac_dir/shtool; then 3798 ac_aux_dir=$ac_dir 3799 ac_install_sh="$ac_aux_dir/shtool install -c" 3800 break 3801 fi 3802done 3803if test -z "$ac_aux_dir"; then 3804 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 3805echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 3806 { (exit 1); exit 1; }; } 3807fi 3808ac_config_guess="$SHELL $ac_aux_dir/config.guess" 3809ac_config_sub="$SHELL $ac_aux_dir/config.sub" 3810ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 3811 3812# Make sure we can run config.sub. 3813$ac_config_sub sun4 >/dev/null 2>&1 || 3814 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3815echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3816 { (exit 1); exit 1; }; } 3817 3818echo "$as_me:$LINENO: checking build system type" >&5 3819echo $ECHO_N "checking build system type... $ECHO_C" >&6 3820if test "${ac_cv_build+set}" = set; then 3821 echo $ECHO_N "(cached) $ECHO_C" >&6 3822else 3823 ac_cv_build_alias=$build_alias 3824test -z "$ac_cv_build_alias" && 3825 ac_cv_build_alias=`$ac_config_guess` 3826test -z "$ac_cv_build_alias" && 3827 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3828echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3829 { (exit 1); exit 1; }; } 3830ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3831 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3832echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3833 { (exit 1); exit 1; }; } 3834 3835fi 3836echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3837echo "${ECHO_T}$ac_cv_build" >&6 3838build=$ac_cv_build 3839build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3840build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3841build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3842 3843 3844echo "$as_me:$LINENO: checking host system type" >&5 3845echo $ECHO_N "checking host system type... $ECHO_C" >&6 3846if test "${ac_cv_host+set}" = set; then 3847 echo $ECHO_N "(cached) $ECHO_C" >&6 3848else 3849 ac_cv_host_alias=$host_alias 3850test -z "$ac_cv_host_alias" && 3851 ac_cv_host_alias=$ac_cv_build_alias 3852ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3853 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3854echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3855 { (exit 1); exit 1; }; } 3856 3857fi 3858echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3859echo "${ECHO_T}$ac_cv_host" >&6 3860host=$ac_cv_host 3861host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3862host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3863host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3864 3865 3866echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3867echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3868if test "${lt_cv_path_SED+set}" = set; then 3869 echo $ECHO_N "(cached) $ECHO_C" >&6 3870else 3871 # Loop through the user's path and test for sed and gsed. 3872# Then use that list of sed's as ones to test for truncation. 3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3874for as_dir in $PATH 3875do 3876 IFS=$as_save_IFS 3877 test -z "$as_dir" && as_dir=. 3878 for lt_ac_prog in sed gsed; do 3879 for ac_exec_ext in '' $ac_executable_extensions; do 3880 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3881 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3882 fi 3883 done 3884 done 3885done 3886lt_ac_max=0 3887lt_ac_count=0 3888# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3889# along with /bin/sed that truncates output. 3890for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3891 test ! -f $lt_ac_sed && continue 3892 cat /dev/null > conftest.in 3893 lt_ac_count=0 3894 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3895 # Check for GNU sed and select it if it is found. 3896 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3897 lt_cv_path_SED=$lt_ac_sed 3898 break 3899 fi 3900 while true; do 3901 cat conftest.in conftest.in >conftest.tmp 3902 mv conftest.tmp conftest.in 3903 cp conftest.in conftest.nl 3904 echo >>conftest.nl 3905 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3906 cmp -s conftest.out conftest.nl || break 3907 # 10000 chars as input seems more than enough 3908 test $lt_ac_count -gt 10 && break 3909 lt_ac_count=`expr $lt_ac_count + 1` 3910 if test $lt_ac_count -gt $lt_ac_max; then 3911 lt_ac_max=$lt_ac_count 3912 lt_cv_path_SED=$lt_ac_sed 3913 fi 3914 done 3915done 3916 3917fi 3918 3919SED=$lt_cv_path_SED 3920echo "$as_me:$LINENO: result: $SED" >&5 3921echo "${ECHO_T}$SED" >&6 3922 3923 3924# Check whether --with-gnu-ld or --without-gnu-ld was given. 3925if test "${with_gnu_ld+set}" = set; then 3926 withval="$with_gnu_ld" 3927 test "$withval" = no || with_gnu_ld=yes 3928else 3929 with_gnu_ld=no 3930fi; 3931ac_prog=ld 3932if test "$GCC" = yes; then 3933 # Check if gcc -print-prog-name=ld gives a path. 3934 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3935echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3936 case $host in 3937 *-*-mingw*) 3938 # gcc leaves a trailing carriage return which upsets mingw 3939 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3940 *) 3941 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3942 esac 3943 case $ac_prog in 3944 # Accept absolute paths. 3945 [\\/]* | ?:[\\/]*) 3946 re_direlt='/[^/][^/]*/\.\./' 3947 # Canonicalize the pathname of ld 3948 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3949 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3950 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3951 done 3952 test -z "$LD" && LD="$ac_prog" 3953 ;; 3954 "") 3955 # If it fails, then pretend we aren't using GCC. 3956 ac_prog=ld 3957 ;; 3958 *) 3959 # If it is relative, then search for the first ld in PATH. 3960 with_gnu_ld=unknown 3961 ;; 3962 esac 3963elif test "$with_gnu_ld" = yes; then 3964 echo "$as_me:$LINENO: checking for GNU ld" >&5 3965echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3966else 3967 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3968echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3969fi 3970if test "${lt_cv_path_LD+set}" = set; then 3971 echo $ECHO_N "(cached) $ECHO_C" >&6 3972else 3973 if test -z "$LD"; then 3974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3975 for ac_dir in $PATH; do 3976 IFS="$lt_save_ifs" 3977 test -z "$ac_dir" && ac_dir=. 3978 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3979 lt_cv_path_LD="$ac_dir/$ac_prog" 3980 # Check to see if the program is GNU ld. I'd rather use --version, 3981 # but apparently some variants of GNU ld only accept -v. 3982 # Break only if it was the GNU/non-GNU ld that we prefer. 3983 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3984 *GNU* | *'with BFD'*) 3985 test "$with_gnu_ld" != no && break 3986 ;; 3987 *) 3988 test "$with_gnu_ld" != yes && break 3989 ;; 3990 esac 3991 fi 3992 done 3993 IFS="$lt_save_ifs" 3994else 3995 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3996fi 3997fi 3998 3999LD="$lt_cv_path_LD" 4000if test -n "$LD"; then 4001 echo "$as_me:$LINENO: result: $LD" >&5 4002echo "${ECHO_T}$LD" >&6 4003else 4004 echo "$as_me:$LINENO: result: no" >&5 4005echo "${ECHO_T}no" >&6 4006fi 4007test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4008echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4009 { (exit 1); exit 1; }; } 4010echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4011echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4012if test "${lt_cv_prog_gnu_ld+set}" = set; then 4013 echo $ECHO_N "(cached) $ECHO_C" >&6 4014else 4015 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4016case `$LD -v 2>&1 </dev/null` in 4017*GNU* | *'with BFD'*) 4018 lt_cv_prog_gnu_ld=yes 4019 ;; 4020*) 4021 lt_cv_prog_gnu_ld=no 4022 ;; 4023esac 4024fi 4025echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4026echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4027with_gnu_ld=$lt_cv_prog_gnu_ld 4028 4029 4030echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4031echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4032if test "${lt_cv_ld_reload_flag+set}" = set; then 4033 echo $ECHO_N "(cached) $ECHO_C" >&6 4034else 4035 lt_cv_ld_reload_flag='-r' 4036fi 4037echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4038echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4039reload_flag=$lt_cv_ld_reload_flag 4040case $reload_flag in 4041"" | " "*) ;; 4042*) reload_flag=" $reload_flag" ;; 4043esac 4044reload_cmds='$LD$reload_flag -o $output$reload_objs' 4045case $host_os in 4046 darwin*) 4047 if test "$GCC" = yes; then 4048 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4049 else 4050 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4051 fi 4052 ;; 4053esac 4054 4055echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4056echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4057if test "${lt_cv_path_NM+set}" = set; then 4058 echo $ECHO_N "(cached) $ECHO_C" >&6 4059else 4060 if test -n "$NM"; then 4061 # Let the user override the test. 4062 lt_cv_path_NM="$NM" 4063else 4064 lt_nm_to_check="${ac_tool_prefix}nm" 4065 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4066 lt_nm_to_check="$lt_nm_to_check nm" 4067 fi 4068 for lt_tmp_nm in $lt_nm_to_check; do 4069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4070 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4071 IFS="$lt_save_ifs" 4072 test -z "$ac_dir" && ac_dir=. 4073 tmp_nm="$ac_dir/$lt_tmp_nm" 4074 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4075 # Check to see if the nm accepts a BSD-compat flag. 4076 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4077 # nm: unknown option "B" ignored 4078 # Tru64's nm complains that /dev/null is an invalid object file 4079 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4080 */dev/null* | *'Invalid file or object type'*) 4081 lt_cv_path_NM="$tmp_nm -B" 4082 break 4083 ;; 4084 *) 4085 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4086 */dev/null*) 4087 lt_cv_path_NM="$tmp_nm -p" 4088 break 4089 ;; 4090 *) 4091 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4092 continue # so that we can try to find one that supports BSD flags 4093 ;; 4094 esac 4095 ;; 4096 esac 4097 fi 4098 done 4099 IFS="$lt_save_ifs" 4100 done 4101 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4102fi 4103fi 4104echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4105echo "${ECHO_T}$lt_cv_path_NM" >&6 4106NM="$lt_cv_path_NM" 4107 4108echo "$as_me:$LINENO: checking whether ln -s works" >&5 4109echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4110LN_S=$as_ln_s 4111if test "$LN_S" = "ln -s"; then 4112 echo "$as_me:$LINENO: result: yes" >&5 4113echo "${ECHO_T}yes" >&6 4114else 4115 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4116echo "${ECHO_T}no, using $LN_S" >&6 4117fi 4118 4119echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4120echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4121if test "${lt_cv_deplibs_check_method+set}" = set; then 4122 echo $ECHO_N "(cached) $ECHO_C" >&6 4123else 4124 lt_cv_file_magic_cmd='$MAGIC_CMD' 4125lt_cv_file_magic_test_file= 4126lt_cv_deplibs_check_method='unknown' 4127# Need to set the preceding variable on all platforms that support 4128# interlibrary dependencies. 4129# 'none' -- dependencies not supported. 4130# `unknown' -- same as none, but documents that we really don't know. 4131# 'pass_all' -- all dependencies passed with no checks. 4132# 'test_compile' -- check by making test program. 4133# 'file_magic [[regex]]' -- check by looking for files in library path 4134# which responds to the $file_magic_cmd with a given extended regex. 4135# If you have `file' or equivalent on your system and you're not sure 4136# whether `pass_all' will *always* work, you probably want this one. 4137 4138case $host_os in 4139aix4* | aix5*) 4140 lt_cv_deplibs_check_method=pass_all 4141 ;; 4142 4143beos*) 4144 lt_cv_deplibs_check_method=pass_all 4145 ;; 4146 4147bsdi[45]*) 4148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4149 lt_cv_file_magic_cmd='/usr/bin/file -L' 4150 lt_cv_file_magic_test_file=/shlib/libc.so 4151 ;; 4152 4153cygwin*) 4154 # func_win32_libid is a shell function defined in ltmain.sh 4155 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4156 lt_cv_file_magic_cmd='func_win32_libid' 4157 ;; 4158 4159mingw* | pw32*) 4160 # Base MSYS/MinGW do not provide the 'file' command needed by 4161 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4162 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4163 lt_cv_file_magic_cmd='$OBJDUMP -f' 4164 ;; 4165 4166darwin* | rhapsody*) 4167 lt_cv_deplibs_check_method=pass_all 4168 ;; 4169 4170freebsd* | kfreebsd*-gnu | dragonfly*) 4171 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4172 case $host_cpu in 4173 i*86 ) 4174 # Not sure whether the presence of OpenBSD here was a mistake. 4175 # Let's accept both of them until this is cleared up. 4176 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4177 lt_cv_file_magic_cmd=/usr/bin/file 4178 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4179 ;; 4180 esac 4181 else 4182 lt_cv_deplibs_check_method=pass_all 4183 fi 4184 ;; 4185 4186gnu*) 4187 lt_cv_deplibs_check_method=pass_all 4188 ;; 4189 4190hpux10.20* | hpux11*) 4191 lt_cv_file_magic_cmd=/usr/bin/file 4192 case $host_cpu in 4193 ia64*) 4194 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4195 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4196 ;; 4197 hppa*64*) 4198 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]' 4199 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4200 ;; 4201 *) 4202 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4203 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4204 ;; 4205 esac 4206 ;; 4207 4208interix3*) 4209 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4211 ;; 4212 4213irix5* | irix6* | nonstopux*) 4214 case $LD in 4215 *-32|*"-32 ") libmagic=32-bit;; 4216 *-n32|*"-n32 ") libmagic=N32;; 4217 *-64|*"-64 ") libmagic=64-bit;; 4218 *) libmagic=never-match;; 4219 esac 4220 lt_cv_deplibs_check_method=pass_all 4221 ;; 4222 4223# This must be Linux ELF. 4224linux*) 4225 lt_cv_deplibs_check_method=pass_all 4226 ;; 4227 4228netbsd*) 4229 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4231 else 4232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4233 fi 4234 ;; 4235 4236newos6*) 4237 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4238 lt_cv_file_magic_cmd=/usr/bin/file 4239 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4240 ;; 4241 4242nto-qnx*) 4243 lt_cv_deplibs_check_method=unknown 4244 ;; 4245 4246openbsd*) 4247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4249 else 4250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4251 fi 4252 ;; 4253 4254osf3* | osf4* | osf5*) 4255 lt_cv_deplibs_check_method=pass_all 4256 ;; 4257 4258solaris*) 4259 lt_cv_deplibs_check_method=pass_all 4260 ;; 4261 4262sysv4 | sysv4.3*) 4263 case $host_vendor in 4264 motorola) 4265 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]' 4266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4267 ;; 4268 ncr) 4269 lt_cv_deplibs_check_method=pass_all 4270 ;; 4271 sequent) 4272 lt_cv_file_magic_cmd='/bin/file' 4273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4274 ;; 4275 sni) 4276 lt_cv_file_magic_cmd='/bin/file' 4277 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4278 lt_cv_file_magic_test_file=/lib/libc.so 4279 ;; 4280 siemens) 4281 lt_cv_deplibs_check_method=pass_all 4282 ;; 4283 pc) 4284 lt_cv_deplibs_check_method=pass_all 4285 ;; 4286 esac 4287 ;; 4288 4289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4290 lt_cv_deplibs_check_method=pass_all 4291 ;; 4292esac 4293 4294fi 4295echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4296echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4297file_magic_cmd=$lt_cv_file_magic_cmd 4298deplibs_check_method=$lt_cv_deplibs_check_method 4299test -z "$deplibs_check_method" && deplibs_check_method=unknown 4300 4301 4302 4303 4304# If no C compiler was specified, use CC. 4305LTCC=${LTCC-"$CC"} 4306 4307# If no C compiler flags were specified, use CFLAGS. 4308LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4309 4310# Allow CC to be a program name with arguments. 4311compiler=$CC 4312 4313 4314# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4315if test "${enable_libtool_lock+set}" = set; then 4316 enableval="$enable_libtool_lock" 4317 4318fi; 4319test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4320 4321# Some flags need to be propagated to the compiler or linker for good 4322# libtool support. 4323case $host in 4324ia64-*-hpux*) 4325 # Find out which ABI we are using. 4326 echo 'int i;' > conftest.$ac_ext 4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4328 (eval $ac_compile) 2>&5 4329 ac_status=$? 4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4331 (exit $ac_status); }; then 4332 case `/usr/bin/file conftest.$ac_objext` in 4333 *ELF-32*) 4334 HPUX_IA64_MODE="32" 4335 ;; 4336 *ELF-64*) 4337 HPUX_IA64_MODE="64" 4338 ;; 4339 esac 4340 fi 4341 rm -rf conftest* 4342 ;; 4343*-*-irix6*) 4344 # Find out which ABI we are using. 4345 echo '#line 4345 "configure"' > conftest.$ac_ext 4346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4347 (eval $ac_compile) 2>&5 4348 ac_status=$? 4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4350 (exit $ac_status); }; then 4351 if test "$lt_cv_prog_gnu_ld" = yes; then 4352 case `/usr/bin/file conftest.$ac_objext` in 4353 *32-bit*) 4354 LD="${LD-ld} -melf32bsmip" 4355 ;; 4356 *N32*) 4357 LD="${LD-ld} -melf32bmipn32" 4358 ;; 4359 *64-bit*) 4360 LD="${LD-ld} -melf64bmip" 4361 ;; 4362 esac 4363 else 4364 case `/usr/bin/file conftest.$ac_objext` in 4365 *32-bit*) 4366 LD="${LD-ld} -32" 4367 ;; 4368 *N32*) 4369 LD="${LD-ld} -n32" 4370 ;; 4371 *64-bit*) 4372 LD="${LD-ld} -64" 4373 ;; 4374 esac 4375 fi 4376 fi 4377 rm -rf conftest* 4378 ;; 4379 4380x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4381 # Find out which ABI we are using. 4382 echo 'int i;' > conftest.$ac_ext 4383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4384 (eval $ac_compile) 2>&5 4385 ac_status=$? 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); }; then 4388 case `/usr/bin/file conftest.o` in 4389 *32-bit*) 4390 case $host in 4391 x86_64-*linux*) 4392 LD="${LD-ld} -m elf_i386" 4393 ;; 4394 ppc64-*linux*|powerpc64-*linux*) 4395 LD="${LD-ld} -m elf32ppclinux" 4396 ;; 4397 s390x-*linux*) 4398 LD="${LD-ld} -m elf_s390" 4399 ;; 4400 sparc64-*linux*) 4401 LD="${LD-ld} -m elf32_sparc" 4402 ;; 4403 esac 4404 ;; 4405 *64-bit*) 4406 case $host in 4407 x86_64-*linux*) 4408 LD="${LD-ld} -m elf_x86_64" 4409 ;; 4410 ppc*-*linux*|powerpc*-*linux*) 4411 LD="${LD-ld} -m elf64ppc" 4412 ;; 4413 s390*-*linux*) 4414 LD="${LD-ld} -m elf64_s390" 4415 ;; 4416 sparc*-*linux*) 4417 LD="${LD-ld} -m elf64_sparc" 4418 ;; 4419 esac 4420 ;; 4421 esac 4422 fi 4423 rm -rf conftest* 4424 ;; 4425 4426*-*-sco3.2v5*) 4427 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4428 SAVE_CFLAGS="$CFLAGS" 4429 CFLAGS="$CFLAGS -belf" 4430 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4431echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4432if test "${lt_cv_cc_needs_belf+set}" = set; then 4433 echo $ECHO_N "(cached) $ECHO_C" >&6 4434else 4435 ac_ext=c 4436ac_cpp='$CPP $CPPFLAGS' 4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4439ac_compiler_gnu=$ac_cv_c_compiler_gnu 4440 4441 cat >conftest.$ac_ext <<_ACEOF 4442/* confdefs.h. */ 4443_ACEOF 4444cat confdefs.h >>conftest.$ac_ext 4445cat >>conftest.$ac_ext <<_ACEOF 4446/* end confdefs.h. */ 4447 4448int 4449main () 4450{ 4451 4452 ; 4453 return 0; 4454} 4455_ACEOF 4456rm -f conftest.$ac_objext conftest$ac_exeext 4457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4458 (eval $ac_link) 2>conftest.er1 4459 ac_status=$? 4460 grep -v '^ *+' conftest.er1 >conftest.err 4461 rm -f conftest.er1 4462 cat conftest.err >&5 4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4464 (exit $ac_status); } && 4465 { ac_try='test -z "$ac_c_werror_flag" 4466 || test ! -s conftest.err' 4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4468 (eval $ac_try) 2>&5 4469 ac_status=$? 4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4471 (exit $ac_status); }; } && 4472 { ac_try='test -s conftest$ac_exeext' 4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4474 (eval $ac_try) 2>&5 4475 ac_status=$? 4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4477 (exit $ac_status); }; }; then 4478 lt_cv_cc_needs_belf=yes 4479else 4480 echo "$as_me: failed program was:" >&5 4481sed 's/^/| /' conftest.$ac_ext >&5 4482 4483lt_cv_cc_needs_belf=no 4484fi 4485rm -f conftest.err conftest.$ac_objext \ 4486 conftest$ac_exeext conftest.$ac_ext 4487 ac_ext=c 4488ac_cpp='$CPP $CPPFLAGS' 4489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4491ac_compiler_gnu=$ac_cv_c_compiler_gnu 4492 4493fi 4494echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4495echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4496 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4497 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4498 CFLAGS="$SAVE_CFLAGS" 4499 fi 4500 ;; 4501sparc*-*solaris*) 4502 # Find out which ABI we are using. 4503 echo 'int i;' > conftest.$ac_ext 4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4505 (eval $ac_compile) 2>&5 4506 ac_status=$? 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); }; then 4509 case `/usr/bin/file conftest.o` in 4510 *64-bit*) 4511 case $lt_cv_prog_gnu_ld in 4512 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4513 *) LD="${LD-ld} -64" ;; 4514 esac 4515 ;; 4516 esac 4517 fi 4518 rm -rf conftest* 4519 ;; 4520 4521 4522esac 4523 4524need_locks="$enable_libtool_lock" 4525 4526 4527 4528echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4529echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4530if test "${ac_cv_header_stdc+set}" = set; then 4531 echo $ECHO_N "(cached) $ECHO_C" >&6 4532else 4533 cat >conftest.$ac_ext <<_ACEOF 4534/* confdefs.h. */ 4535_ACEOF 4536cat confdefs.h >>conftest.$ac_ext 4537cat >>conftest.$ac_ext <<_ACEOF 4538/* end confdefs.h. */ 4539#include <stdlib.h> 4540#include <stdarg.h> 4541#include <string.h> 4542#include <float.h> 4543 4544int 4545main () 4546{ 4547 4548 ; 4549 return 0; 4550} 4551_ACEOF 4552rm -f conftest.$ac_objext 4553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4554 (eval $ac_compile) 2>conftest.er1 4555 ac_status=$? 4556 grep -v '^ *+' conftest.er1 >conftest.err 4557 rm -f conftest.er1 4558 cat conftest.err >&5 4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4560 (exit $ac_status); } && 4561 { ac_try='test -z "$ac_c_werror_flag" 4562 || test ! -s conftest.err' 4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4564 (eval $ac_try) 2>&5 4565 ac_status=$? 4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4567 (exit $ac_status); }; } && 4568 { ac_try='test -s conftest.$ac_objext' 4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4570 (eval $ac_try) 2>&5 4571 ac_status=$? 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); }; }; then 4574 ac_cv_header_stdc=yes 4575else 4576 echo "$as_me: failed program was:" >&5 4577sed 's/^/| /' conftest.$ac_ext >&5 4578 4579ac_cv_header_stdc=no 4580fi 4581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4582 4583if test $ac_cv_header_stdc = yes; then 4584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4585 cat >conftest.$ac_ext <<_ACEOF 4586/* confdefs.h. */ 4587_ACEOF 4588cat confdefs.h >>conftest.$ac_ext 4589cat >>conftest.$ac_ext <<_ACEOF 4590/* end confdefs.h. */ 4591#include <string.h> 4592 4593_ACEOF 4594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4595 $EGREP "memchr" >/dev/null 2>&1; then 4596 : 4597else 4598 ac_cv_header_stdc=no 4599fi 4600rm -f conftest* 4601 4602fi 4603 4604if test $ac_cv_header_stdc = yes; then 4605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4606 cat >conftest.$ac_ext <<_ACEOF 4607/* confdefs.h. */ 4608_ACEOF 4609cat confdefs.h >>conftest.$ac_ext 4610cat >>conftest.$ac_ext <<_ACEOF 4611/* end confdefs.h. */ 4612#include <stdlib.h> 4613 4614_ACEOF 4615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4616 $EGREP "free" >/dev/null 2>&1; then 4617 : 4618else 4619 ac_cv_header_stdc=no 4620fi 4621rm -f conftest* 4622 4623fi 4624 4625if test $ac_cv_header_stdc = yes; then 4626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4627 if test "$cross_compiling" = yes; then 4628 : 4629else 4630 cat >conftest.$ac_ext <<_ACEOF 4631/* confdefs.h. */ 4632_ACEOF 4633cat confdefs.h >>conftest.$ac_ext 4634cat >>conftest.$ac_ext <<_ACEOF 4635/* end confdefs.h. */ 4636#include <ctype.h> 4637#if ((' ' & 0x0FF) == 0x020) 4638# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4639# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4640#else 4641# define ISLOWER(c) \ 4642 (('a' <= (c) && (c) <= 'i') \ 4643 || ('j' <= (c) && (c) <= 'r') \ 4644 || ('s' <= (c) && (c) <= 'z')) 4645# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4646#endif 4647 4648#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4649int 4650main () 4651{ 4652 int i; 4653 for (i = 0; i < 256; i++) 4654 if (XOR (islower (i), ISLOWER (i)) 4655 || toupper (i) != TOUPPER (i)) 4656 exit(2); 4657 exit (0); 4658} 4659_ACEOF 4660rm -f conftest$ac_exeext 4661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4662 (eval $ac_link) 2>&5 4663 ac_status=$? 4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4667 (eval $ac_try) 2>&5 4668 ac_status=$? 4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4670 (exit $ac_status); }; }; then 4671 : 4672else 4673 echo "$as_me: program exited with status $ac_status" >&5 4674echo "$as_me: failed program was:" >&5 4675sed 's/^/| /' conftest.$ac_ext >&5 4676 4677( exit $ac_status ) 4678ac_cv_header_stdc=no 4679fi 4680rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4681fi 4682fi 4683fi 4684echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4685echo "${ECHO_T}$ac_cv_header_stdc" >&6 4686if test $ac_cv_header_stdc = yes; then 4687 4688cat >>confdefs.h <<\_ACEOF 4689#define STDC_HEADERS 1 4690_ACEOF 4691 4692fi 4693 4694# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4705 inttypes.h stdint.h unistd.h 4706do 4707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4708echo "$as_me:$LINENO: checking for $ac_header" >&5 4709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4710if eval "test \"\${$as_ac_Header+set}\" = set"; then 4711 echo $ECHO_N "(cached) $ECHO_C" >&6 4712else 4713 cat >conftest.$ac_ext <<_ACEOF 4714/* confdefs.h. */ 4715_ACEOF 4716cat confdefs.h >>conftest.$ac_ext 4717cat >>conftest.$ac_ext <<_ACEOF 4718/* end confdefs.h. */ 4719$ac_includes_default 4720 4721#include <$ac_header> 4722_ACEOF 4723rm -f conftest.$ac_objext 4724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4725 (eval $ac_compile) 2>conftest.er1 4726 ac_status=$? 4727 grep -v '^ *+' conftest.er1 >conftest.err 4728 rm -f conftest.er1 4729 cat conftest.err >&5 4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4731 (exit $ac_status); } && 4732 { ac_try='test -z "$ac_c_werror_flag" 4733 || test ! -s conftest.err' 4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4735 (eval $ac_try) 2>&5 4736 ac_status=$? 4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4738 (exit $ac_status); }; } && 4739 { ac_try='test -s conftest.$ac_objext' 4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4741 (eval $ac_try) 2>&5 4742 ac_status=$? 4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4744 (exit $ac_status); }; }; then 4745 eval "$as_ac_Header=yes" 4746else 4747 echo "$as_me: failed program was:" >&5 4748sed 's/^/| /' conftest.$ac_ext >&5 4749 4750eval "$as_ac_Header=no" 4751fi 4752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4753fi 4754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4756if test `eval echo '${'$as_ac_Header'}'` = yes; then 4757 cat >>confdefs.h <<_ACEOF 4758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4759_ACEOF 4760 4761fi 4762 4763done 4764 4765 4766 4767for ac_header in dlfcn.h 4768do 4769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4770if eval "test \"\${$as_ac_Header+set}\" = set"; then 4771 echo "$as_me:$LINENO: checking for $ac_header" >&5 4772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4773if eval "test \"\${$as_ac_Header+set}\" = set"; then 4774 echo $ECHO_N "(cached) $ECHO_C" >&6 4775fi 4776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4778else 4779 # Is the header compilable? 4780echo "$as_me:$LINENO: checking $ac_header usability" >&5 4781echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4782cat >conftest.$ac_ext <<_ACEOF 4783/* confdefs.h. */ 4784_ACEOF 4785cat confdefs.h >>conftest.$ac_ext 4786cat >>conftest.$ac_ext <<_ACEOF 4787/* end confdefs.h. */ 4788$ac_includes_default 4789#include <$ac_header> 4790_ACEOF 4791rm -f conftest.$ac_objext 4792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4793 (eval $ac_compile) 2>conftest.er1 4794 ac_status=$? 4795 grep -v '^ *+' conftest.er1 >conftest.err 4796 rm -f conftest.er1 4797 cat conftest.err >&5 4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4799 (exit $ac_status); } && 4800 { ac_try='test -z "$ac_c_werror_flag" 4801 || test ! -s conftest.err' 4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4803 (eval $ac_try) 2>&5 4804 ac_status=$? 4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4806 (exit $ac_status); }; } && 4807 { ac_try='test -s conftest.$ac_objext' 4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4809 (eval $ac_try) 2>&5 4810 ac_status=$? 4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4812 (exit $ac_status); }; }; then 4813 ac_header_compiler=yes 4814else 4815 echo "$as_me: failed program was:" >&5 4816sed 's/^/| /' conftest.$ac_ext >&5 4817 4818ac_header_compiler=no 4819fi 4820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4821echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4822echo "${ECHO_T}$ac_header_compiler" >&6 4823 4824# Is the header present? 4825echo "$as_me:$LINENO: checking $ac_header presence" >&5 4826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4827cat >conftest.$ac_ext <<_ACEOF 4828/* confdefs.h. */ 4829_ACEOF 4830cat confdefs.h >>conftest.$ac_ext 4831cat >>conftest.$ac_ext <<_ACEOF 4832/* end confdefs.h. */ 4833#include <$ac_header> 4834_ACEOF 4835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4837 ac_status=$? 4838 grep -v '^ *+' conftest.er1 >conftest.err 4839 rm -f conftest.er1 4840 cat conftest.err >&5 4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4842 (exit $ac_status); } >/dev/null; then 4843 if test -s conftest.err; then 4844 ac_cpp_err=$ac_c_preproc_warn_flag 4845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4846 else 4847 ac_cpp_err= 4848 fi 4849else 4850 ac_cpp_err=yes 4851fi 4852if test -z "$ac_cpp_err"; then 4853 ac_header_preproc=yes 4854else 4855 echo "$as_me: failed program was:" >&5 4856sed 's/^/| /' conftest.$ac_ext >&5 4857 4858 ac_header_preproc=no 4859fi 4860rm -f conftest.err conftest.$ac_ext 4861echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4862echo "${ECHO_T}$ac_header_preproc" >&6 4863 4864# So? What about this header? 4865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4866 yes:no: ) 4867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4870echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4871 ac_header_preproc=yes 4872 ;; 4873 no:yes:* ) 4874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4879echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4881echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4885echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4886 ( 4887 cat <<\_ASBOX 4888## ------------------------------------------ ## 4889## Report this to the AC_PACKAGE_NAME lists. ## 4890## ------------------------------------------ ## 4891_ASBOX 4892 ) | 4893 sed "s/^/$as_me: WARNING: /" >&2 4894 ;; 4895esac 4896echo "$as_me:$LINENO: checking for $ac_header" >&5 4897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4898if eval "test \"\${$as_ac_Header+set}\" = set"; then 4899 echo $ECHO_N "(cached) $ECHO_C" >&6 4900else 4901 eval "$as_ac_Header=\$ac_header_preproc" 4902fi 4903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4905 4906fi 4907if test `eval echo '${'$as_ac_Header'}'` = yes; then 4908 cat >>confdefs.h <<_ACEOF 4909#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4910_ACEOF 4911 4912fi 4913 4914done 4915 4916ac_ext=cc 4917ac_cpp='$CXXCPP $CPPFLAGS' 4918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4921if test -n "$ac_tool_prefix"; then 4922 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4923 do 4924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4925set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4926echo "$as_me:$LINENO: checking for $ac_word" >&5 4927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4928if test "${ac_cv_prog_CXX+set}" = set; then 4929 echo $ECHO_N "(cached) $ECHO_C" >&6 4930else 4931 if test -n "$CXX"; then 4932 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4933else 4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4935for as_dir in $PATH 4936do 4937 IFS=$as_save_IFS 4938 test -z "$as_dir" && as_dir=. 4939 for ac_exec_ext in '' $ac_executable_extensions; do 4940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4941 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4943 break 2 4944 fi 4945done 4946done 4947 4948fi 4949fi 4950CXX=$ac_cv_prog_CXX 4951if test -n "$CXX"; then 4952 echo "$as_me:$LINENO: result: $CXX" >&5 4953echo "${ECHO_T}$CXX" >&6 4954else 4955 echo "$as_me:$LINENO: result: no" >&5 4956echo "${ECHO_T}no" >&6 4957fi 4958 4959 test -n "$CXX" && break 4960 done 4961fi 4962if test -z "$CXX"; then 4963 ac_ct_CXX=$CXX 4964 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4965do 4966 # Extract the first word of "$ac_prog", so it can be a program name with args. 4967set dummy $ac_prog; ac_word=$2 4968echo "$as_me:$LINENO: checking for $ac_word" >&5 4969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4970if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4971 echo $ECHO_N "(cached) $ECHO_C" >&6 4972else 4973 if test -n "$ac_ct_CXX"; then 4974 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4975else 4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4977for as_dir in $PATH 4978do 4979 IFS=$as_save_IFS 4980 test -z "$as_dir" && as_dir=. 4981 for ac_exec_ext in '' $ac_executable_extensions; do 4982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4983 ac_cv_prog_ac_ct_CXX="$ac_prog" 4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4985 break 2 4986 fi 4987done 4988done 4989 4990fi 4991fi 4992ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4993if test -n "$ac_ct_CXX"; then 4994 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4995echo "${ECHO_T}$ac_ct_CXX" >&6 4996else 4997 echo "$as_me:$LINENO: result: no" >&5 4998echo "${ECHO_T}no" >&6 4999fi 5000 5001 test -n "$ac_ct_CXX" && break 5002done 5003test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 5004 5005 CXX=$ac_ct_CXX 5006fi 5007 5008 5009# Provide some information about the compiler. 5010echo "$as_me:$LINENO:" \ 5011 "checking for C++ compiler version" >&5 5012ac_compiler=`set X $ac_compile; echo $2` 5013{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5014 (eval $ac_compiler --version </dev/null >&5) 2>&5 5015 ac_status=$? 5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5017 (exit $ac_status); } 5018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5019 (eval $ac_compiler -v </dev/null >&5) 2>&5 5020 ac_status=$? 5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5022 (exit $ac_status); } 5023{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5024 (eval $ac_compiler -V </dev/null >&5) 2>&5 5025 ac_status=$? 5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5027 (exit $ac_status); } 5028 5029echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5030echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 5031if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5032 echo $ECHO_N "(cached) $ECHO_C" >&6 5033else 5034 cat >conftest.$ac_ext <<_ACEOF 5035/* confdefs.h. */ 5036_ACEOF 5037cat confdefs.h >>conftest.$ac_ext 5038cat >>conftest.$ac_ext <<_ACEOF 5039/* end confdefs.h. */ 5040 5041int 5042main () 5043{ 5044#ifndef __GNUC__ 5045 choke me 5046#endif 5047 5048 ; 5049 return 0; 5050} 5051_ACEOF 5052rm -f conftest.$ac_objext 5053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5054 (eval $ac_compile) 2>conftest.er1 5055 ac_status=$? 5056 grep -v '^ *+' conftest.er1 >conftest.err 5057 rm -f conftest.er1 5058 cat conftest.err >&5 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5060 (exit $ac_status); } && 5061 { ac_try='test -z "$ac_cxx_werror_flag" 5062 || test ! -s conftest.err' 5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5064 (eval $ac_try) 2>&5 5065 ac_status=$? 5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5067 (exit $ac_status); }; } && 5068 { ac_try='test -s conftest.$ac_objext' 5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5070 (eval $ac_try) 2>&5 5071 ac_status=$? 5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5073 (exit $ac_status); }; }; then 5074 ac_compiler_gnu=yes 5075else 5076 echo "$as_me: failed program was:" >&5 5077sed 's/^/| /' conftest.$ac_ext >&5 5078 5079ac_compiler_gnu=no 5080fi 5081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5082ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5083 5084fi 5085echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5086echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 5087GXX=`test $ac_compiler_gnu = yes && echo yes` 5088ac_test_CXXFLAGS=${CXXFLAGS+set} 5089ac_save_CXXFLAGS=$CXXFLAGS 5090CXXFLAGS="-g" 5091echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5092echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 5093if test "${ac_cv_prog_cxx_g+set}" = set; then 5094 echo $ECHO_N "(cached) $ECHO_C" >&6 5095else 5096 cat >conftest.$ac_ext <<_ACEOF 5097/* confdefs.h. */ 5098_ACEOF 5099cat confdefs.h >>conftest.$ac_ext 5100cat >>conftest.$ac_ext <<_ACEOF 5101/* end confdefs.h. */ 5102 5103int 5104main () 5105{ 5106 5107 ; 5108 return 0; 5109} 5110_ACEOF 5111rm -f conftest.$ac_objext 5112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5113 (eval $ac_compile) 2>conftest.er1 5114 ac_status=$? 5115 grep -v '^ *+' conftest.er1 >conftest.err 5116 rm -f conftest.er1 5117 cat conftest.err >&5 5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5119 (exit $ac_status); } && 5120 { ac_try='test -z "$ac_cxx_werror_flag" 5121 || test ! -s conftest.err' 5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5123 (eval $ac_try) 2>&5 5124 ac_status=$? 5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5126 (exit $ac_status); }; } && 5127 { ac_try='test -s conftest.$ac_objext' 5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5129 (eval $ac_try) 2>&5 5130 ac_status=$? 5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5132 (exit $ac_status); }; }; then 5133 ac_cv_prog_cxx_g=yes 5134else 5135 echo "$as_me: failed program was:" >&5 5136sed 's/^/| /' conftest.$ac_ext >&5 5137 5138ac_cv_prog_cxx_g=no 5139fi 5140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5141fi 5142echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5143echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5144if test "$ac_test_CXXFLAGS" = set; then 5145 CXXFLAGS=$ac_save_CXXFLAGS 5146elif test $ac_cv_prog_cxx_g = yes; then 5147 if test "$GXX" = yes; then 5148 CXXFLAGS="-g -O2" 5149 else 5150 CXXFLAGS="-g" 5151 fi 5152else 5153 if test "$GXX" = yes; then 5154 CXXFLAGS="-O2" 5155 else 5156 CXXFLAGS= 5157 fi 5158fi 5159for ac_declaration in \ 5160 '' \ 5161 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5162 'extern "C" void std::exit (int); using std::exit;' \ 5163 'extern "C" void exit (int) throw ();' \ 5164 'extern "C" void exit (int);' \ 5165 'void exit (int);' 5166do 5167 cat >conftest.$ac_ext <<_ACEOF 5168/* confdefs.h. */ 5169_ACEOF 5170cat confdefs.h >>conftest.$ac_ext 5171cat >>conftest.$ac_ext <<_ACEOF 5172/* end confdefs.h. */ 5173$ac_declaration 5174#include <stdlib.h> 5175int 5176main () 5177{ 5178exit (42); 5179 ; 5180 return 0; 5181} 5182_ACEOF 5183rm -f conftest.$ac_objext 5184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5185 (eval $ac_compile) 2>conftest.er1 5186 ac_status=$? 5187 grep -v '^ *+' conftest.er1 >conftest.err 5188 rm -f conftest.er1 5189 cat conftest.err >&5 5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5191 (exit $ac_status); } && 5192 { ac_try='test -z "$ac_cxx_werror_flag" 5193 || test ! -s conftest.err' 5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5195 (eval $ac_try) 2>&5 5196 ac_status=$? 5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5198 (exit $ac_status); }; } && 5199 { ac_try='test -s conftest.$ac_objext' 5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5201 (eval $ac_try) 2>&5 5202 ac_status=$? 5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5204 (exit $ac_status); }; }; then 5205 : 5206else 5207 echo "$as_me: failed program was:" >&5 5208sed 's/^/| /' conftest.$ac_ext >&5 5209 5210continue 5211fi 5212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5213 cat >conftest.$ac_ext <<_ACEOF 5214/* confdefs.h. */ 5215_ACEOF 5216cat confdefs.h >>conftest.$ac_ext 5217cat >>conftest.$ac_ext <<_ACEOF 5218/* end confdefs.h. */ 5219$ac_declaration 5220int 5221main () 5222{ 5223exit (42); 5224 ; 5225 return 0; 5226} 5227_ACEOF 5228rm -f conftest.$ac_objext 5229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5230 (eval $ac_compile) 2>conftest.er1 5231 ac_status=$? 5232 grep -v '^ *+' conftest.er1 >conftest.err 5233 rm -f conftest.er1 5234 cat conftest.err >&5 5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5236 (exit $ac_status); } && 5237 { ac_try='test -z "$ac_cxx_werror_flag" 5238 || test ! -s conftest.err' 5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5240 (eval $ac_try) 2>&5 5241 ac_status=$? 5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5243 (exit $ac_status); }; } && 5244 { ac_try='test -s conftest.$ac_objext' 5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5246 (eval $ac_try) 2>&5 5247 ac_status=$? 5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5249 (exit $ac_status); }; }; then 5250 break 5251else 5252 echo "$as_me: failed program was:" >&5 5253sed 's/^/| /' conftest.$ac_ext >&5 5254 5255fi 5256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5257done 5258rm -f conftest* 5259if test -n "$ac_declaration"; then 5260 echo '#ifdef __cplusplus' >>confdefs.h 5261 echo $ac_declaration >>confdefs.h 5262 echo '#endif' >>confdefs.h 5263fi 5264 5265ac_ext=cc 5266ac_cpp='$CXXCPP $CPPFLAGS' 5267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5270 5271 5272 5273if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5274 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5275 (test "X$CXX" != "Xg++"))) ; then 5276 ac_ext=cc 5277ac_cpp='$CXXCPP $CPPFLAGS' 5278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5281echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5282echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5283if test -z "$CXXCPP"; then 5284 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5285 echo $ECHO_N "(cached) $ECHO_C" >&6 5286else 5287 # Double quotes because CXXCPP needs to be expanded 5288 for CXXCPP in "$CXX -E" "/lib/cpp" 5289 do 5290 ac_preproc_ok=false 5291for ac_cxx_preproc_warn_flag in '' yes 5292do 5293 # Use a header file that comes with gcc, so configuring glibc 5294 # with a fresh cross-compiler works. 5295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5296 # <limits.h> exists even on freestanding compilers. 5297 # On the NeXT, cc -E runs the code through the compiler's parser, 5298 # not just through cpp. "Syntax error" is here to catch this case. 5299 cat >conftest.$ac_ext <<_ACEOF 5300/* confdefs.h. */ 5301_ACEOF 5302cat confdefs.h >>conftest.$ac_ext 5303cat >>conftest.$ac_ext <<_ACEOF 5304/* end confdefs.h. */ 5305#ifdef __STDC__ 5306# include <limits.h> 5307#else 5308# include <assert.h> 5309#endif 5310 Syntax error 5311_ACEOF 5312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5314 ac_status=$? 5315 grep -v '^ *+' conftest.er1 >conftest.err 5316 rm -f conftest.er1 5317 cat conftest.err >&5 5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5319 (exit $ac_status); } >/dev/null; then 5320 if test -s conftest.err; then 5321 ac_cpp_err=$ac_cxx_preproc_warn_flag 5322 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5323 else 5324 ac_cpp_err= 5325 fi 5326else 5327 ac_cpp_err=yes 5328fi 5329if test -z "$ac_cpp_err"; then 5330 : 5331else 5332 echo "$as_me: failed program was:" >&5 5333sed 's/^/| /' conftest.$ac_ext >&5 5334 5335 # Broken: fails on valid input. 5336continue 5337fi 5338rm -f conftest.err conftest.$ac_ext 5339 5340 # OK, works on sane cases. Now check whether non-existent headers 5341 # can be detected and how. 5342 cat >conftest.$ac_ext <<_ACEOF 5343/* confdefs.h. */ 5344_ACEOF 5345cat confdefs.h >>conftest.$ac_ext 5346cat >>conftest.$ac_ext <<_ACEOF 5347/* end confdefs.h. */ 5348#include <ac_nonexistent.h> 5349_ACEOF 5350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5352 ac_status=$? 5353 grep -v '^ *+' conftest.er1 >conftest.err 5354 rm -f conftest.er1 5355 cat conftest.err >&5 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); } >/dev/null; then 5358 if test -s conftest.err; then 5359 ac_cpp_err=$ac_cxx_preproc_warn_flag 5360 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5361 else 5362 ac_cpp_err= 5363 fi 5364else 5365 ac_cpp_err=yes 5366fi 5367if test -z "$ac_cpp_err"; then 5368 # Broken: success on invalid input. 5369continue 5370else 5371 echo "$as_me: failed program was:" >&5 5372sed 's/^/| /' conftest.$ac_ext >&5 5373 5374 # Passes both tests. 5375ac_preproc_ok=: 5376break 5377fi 5378rm -f conftest.err conftest.$ac_ext 5379 5380done 5381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5382rm -f conftest.err conftest.$ac_ext 5383if $ac_preproc_ok; then 5384 break 5385fi 5386 5387 done 5388 ac_cv_prog_CXXCPP=$CXXCPP 5389 5390fi 5391 CXXCPP=$ac_cv_prog_CXXCPP 5392else 5393 ac_cv_prog_CXXCPP=$CXXCPP 5394fi 5395echo "$as_me:$LINENO: result: $CXXCPP" >&5 5396echo "${ECHO_T}$CXXCPP" >&6 5397ac_preproc_ok=false 5398for ac_cxx_preproc_warn_flag in '' yes 5399do 5400 # Use a header file that comes with gcc, so configuring glibc 5401 # with a fresh cross-compiler works. 5402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5403 # <limits.h> exists even on freestanding compilers. 5404 # On the NeXT, cc -E runs the code through the compiler's parser, 5405 # not just through cpp. "Syntax error" is here to catch this case. 5406 cat >conftest.$ac_ext <<_ACEOF 5407/* confdefs.h. */ 5408_ACEOF 5409cat confdefs.h >>conftest.$ac_ext 5410cat >>conftest.$ac_ext <<_ACEOF 5411/* end confdefs.h. */ 5412#ifdef __STDC__ 5413# include <limits.h> 5414#else 5415# include <assert.h> 5416#endif 5417 Syntax error 5418_ACEOF 5419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5421 ac_status=$? 5422 grep -v '^ *+' conftest.er1 >conftest.err 5423 rm -f conftest.er1 5424 cat conftest.err >&5 5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5426 (exit $ac_status); } >/dev/null; then 5427 if test -s conftest.err; then 5428 ac_cpp_err=$ac_cxx_preproc_warn_flag 5429 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5430 else 5431 ac_cpp_err= 5432 fi 5433else 5434 ac_cpp_err=yes 5435fi 5436if test -z "$ac_cpp_err"; then 5437 : 5438else 5439 echo "$as_me: failed program was:" >&5 5440sed 's/^/| /' conftest.$ac_ext >&5 5441 5442 # Broken: fails on valid input. 5443continue 5444fi 5445rm -f conftest.err conftest.$ac_ext 5446 5447 # OK, works on sane cases. Now check whether non-existent headers 5448 # can be detected and how. 5449 cat >conftest.$ac_ext <<_ACEOF 5450/* confdefs.h. */ 5451_ACEOF 5452cat confdefs.h >>conftest.$ac_ext 5453cat >>conftest.$ac_ext <<_ACEOF 5454/* end confdefs.h. */ 5455#include <ac_nonexistent.h> 5456_ACEOF 5457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5459 ac_status=$? 5460 grep -v '^ *+' conftest.er1 >conftest.err 5461 rm -f conftest.er1 5462 cat conftest.err >&5 5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5464 (exit $ac_status); } >/dev/null; then 5465 if test -s conftest.err; then 5466 ac_cpp_err=$ac_cxx_preproc_warn_flag 5467 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5468 else 5469 ac_cpp_err= 5470 fi 5471else 5472 ac_cpp_err=yes 5473fi 5474if test -z "$ac_cpp_err"; then 5475 # Broken: success on invalid input. 5476continue 5477else 5478 echo "$as_me: failed program was:" >&5 5479sed 's/^/| /' conftest.$ac_ext >&5 5480 5481 # Passes both tests. 5482ac_preproc_ok=: 5483break 5484fi 5485rm -f conftest.err conftest.$ac_ext 5486 5487done 5488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5489rm -f conftest.err conftest.$ac_ext 5490if $ac_preproc_ok; then 5491 : 5492else 5493 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5494See \`config.log' for more details." >&5 5495echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5496See \`config.log' for more details." >&2;} 5497 { (exit 1); exit 1; }; } 5498fi 5499 5500ac_ext=cc 5501ac_cpp='$CXXCPP $CPPFLAGS' 5502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5505 5506fi 5507 5508 5509ac_ext=f 5510ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5511ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5512ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5513if test -n "$ac_tool_prefix"; then 5514 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5515 do 5516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5517set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5518echo "$as_me:$LINENO: checking for $ac_word" >&5 5519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5520if test "${ac_cv_prog_F77+set}" = set; then 5521 echo $ECHO_N "(cached) $ECHO_C" >&6 5522else 5523 if test -n "$F77"; then 5524 ac_cv_prog_F77="$F77" # Let the user override the test. 5525else 5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5527for as_dir in $PATH 5528do 5529 IFS=$as_save_IFS 5530 test -z "$as_dir" && as_dir=. 5531 for ac_exec_ext in '' $ac_executable_extensions; do 5532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5533 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5535 break 2 5536 fi 5537done 5538done 5539 5540fi 5541fi 5542F77=$ac_cv_prog_F77 5543if test -n "$F77"; then 5544 echo "$as_me:$LINENO: result: $F77" >&5 5545echo "${ECHO_T}$F77" >&6 5546else 5547 echo "$as_me:$LINENO: result: no" >&5 5548echo "${ECHO_T}no" >&6 5549fi 5550 5551 test -n "$F77" && break 5552 done 5553fi 5554if test -z "$F77"; then 5555 ac_ct_F77=$F77 5556 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5557do 5558 # Extract the first word of "$ac_prog", so it can be a program name with args. 5559set dummy $ac_prog; ac_word=$2 5560echo "$as_me:$LINENO: checking for $ac_word" >&5 5561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5562if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5563 echo $ECHO_N "(cached) $ECHO_C" >&6 5564else 5565 if test -n "$ac_ct_F77"; then 5566 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5567else 5568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5569for as_dir in $PATH 5570do 5571 IFS=$as_save_IFS 5572 test -z "$as_dir" && as_dir=. 5573 for ac_exec_ext in '' $ac_executable_extensions; do 5574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5575 ac_cv_prog_ac_ct_F77="$ac_prog" 5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5577 break 2 5578 fi 5579done 5580done 5581 5582fi 5583fi 5584ac_ct_F77=$ac_cv_prog_ac_ct_F77 5585if test -n "$ac_ct_F77"; then 5586 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5587echo "${ECHO_T}$ac_ct_F77" >&6 5588else 5589 echo "$as_me:$LINENO: result: no" >&5 5590echo "${ECHO_T}no" >&6 5591fi 5592 5593 test -n "$ac_ct_F77" && break 5594done 5595 5596 F77=$ac_ct_F77 5597fi 5598 5599 5600# Provide some information about the compiler. 5601echo "$as_me:5601:" \ 5602 "checking for Fortran 77 compiler version" >&5 5603ac_compiler=`set X $ac_compile; echo $2` 5604{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5605 (eval $ac_compiler --version </dev/null >&5) 2>&5 5606 ac_status=$? 5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5608 (exit $ac_status); } 5609{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5610 (eval $ac_compiler -v </dev/null >&5) 2>&5 5611 ac_status=$? 5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5613 (exit $ac_status); } 5614{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5615 (eval $ac_compiler -V </dev/null >&5) 2>&5 5616 ac_status=$? 5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5618 (exit $ac_status); } 5619rm -f a.out 5620 5621# If we don't use `.F' as extension, the preprocessor is not run on the 5622# input file. (Note that this only needs to work for GNU compilers.) 5623ac_save_ext=$ac_ext 5624ac_ext=F 5625echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5626echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5627if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5628 echo $ECHO_N "(cached) $ECHO_C" >&6 5629else 5630 cat >conftest.$ac_ext <<_ACEOF 5631 program main 5632#ifndef __GNUC__ 5633 choke me 5634#endif 5635 5636 end 5637_ACEOF 5638rm -f conftest.$ac_objext 5639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5640 (eval $ac_compile) 2>conftest.er1 5641 ac_status=$? 5642 grep -v '^ *+' conftest.er1 >conftest.err 5643 rm -f conftest.er1 5644 cat conftest.err >&5 5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5646 (exit $ac_status); } && 5647 { ac_try='test -z "$ac_f77_werror_flag" 5648 || test ! -s conftest.err' 5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5650 (eval $ac_try) 2>&5 5651 ac_status=$? 5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5653 (exit $ac_status); }; } && 5654 { ac_try='test -s conftest.$ac_objext' 5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5656 (eval $ac_try) 2>&5 5657 ac_status=$? 5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5659 (exit $ac_status); }; }; then 5660 ac_compiler_gnu=yes 5661else 5662 echo "$as_me: failed program was:" >&5 5663sed 's/^/| /' conftest.$ac_ext >&5 5664 5665ac_compiler_gnu=no 5666fi 5667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5668ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5669 5670fi 5671echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5672echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5673ac_ext=$ac_save_ext 5674ac_test_FFLAGS=${FFLAGS+set} 5675ac_save_FFLAGS=$FFLAGS 5676FFLAGS= 5677echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5678echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5679if test "${ac_cv_prog_f77_g+set}" = set; then 5680 echo $ECHO_N "(cached) $ECHO_C" >&6 5681else 5682 FFLAGS=-g 5683cat >conftest.$ac_ext <<_ACEOF 5684 program main 5685 5686 end 5687_ACEOF 5688rm -f conftest.$ac_objext 5689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5690 (eval $ac_compile) 2>conftest.er1 5691 ac_status=$? 5692 grep -v '^ *+' conftest.er1 >conftest.err 5693 rm -f conftest.er1 5694 cat conftest.err >&5 5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5696 (exit $ac_status); } && 5697 { ac_try='test -z "$ac_f77_werror_flag" 5698 || test ! -s conftest.err' 5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5700 (eval $ac_try) 2>&5 5701 ac_status=$? 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5703 (exit $ac_status); }; } && 5704 { ac_try='test -s conftest.$ac_objext' 5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5706 (eval $ac_try) 2>&5 5707 ac_status=$? 5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5709 (exit $ac_status); }; }; then 5710 ac_cv_prog_f77_g=yes 5711else 5712 echo "$as_me: failed program was:" >&5 5713sed 's/^/| /' conftest.$ac_ext >&5 5714 5715ac_cv_prog_f77_g=no 5716fi 5717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5718 5719fi 5720echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5721echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5722if test "$ac_test_FFLAGS" = set; then 5723 FFLAGS=$ac_save_FFLAGS 5724elif test $ac_cv_prog_f77_g = yes; then 5725 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5726 FFLAGS="-g -O2" 5727 else 5728 FFLAGS="-g" 5729 fi 5730else 5731 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5732 FFLAGS="-O2" 5733 else 5734 FFLAGS= 5735 fi 5736fi 5737 5738G77=`test $ac_compiler_gnu = yes && echo yes` 5739ac_ext=c 5740ac_cpp='$CPP $CPPFLAGS' 5741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5743ac_compiler_gnu=$ac_cv_c_compiler_gnu 5744 5745 5746 5747# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5748 5749# find the maximum length of command line arguments 5750echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5751echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5752if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5753 echo $ECHO_N "(cached) $ECHO_C" >&6 5754else 5755 i=0 5756 teststring="ABCD" 5757 5758 case $build_os in 5759 msdosdjgpp*) 5760 # On DJGPP, this test can blow up pretty badly due to problems in libc 5761 # (any single argument exceeding 2000 bytes causes a buffer overrun 5762 # during glob expansion). Even if it were fixed, the result of this 5763 # check would be larger than it should be. 5764 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5765 ;; 5766 5767 gnu*) 5768 # Under GNU Hurd, this test is not required because there is 5769 # no limit to the length of command line arguments. 5770 # Libtool will interpret -1 as no limit whatsoever 5771 lt_cv_sys_max_cmd_len=-1; 5772 ;; 5773 5774 cygwin* | mingw*) 5775 # On Win9x/ME, this test blows up -- it succeeds, but takes 5776 # about 5 minutes as the teststring grows exponentially. 5777 # Worse, since 9x/ME are not pre-emptively multitasking, 5778 # you end up with a "frozen" computer, even though with patience 5779 # the test eventually succeeds (with a max line length of 256k). 5780 # Instead, let's just punt: use the minimum linelength reported by 5781 # all of the supported platforms: 8192 (on NT/2K/XP). 5782 lt_cv_sys_max_cmd_len=8192; 5783 ;; 5784 5785 amigaos*) 5786 # On AmigaOS with pdksh, this test takes hours, literally. 5787 # So we just punt and use a minimum line length of 8192. 5788 lt_cv_sys_max_cmd_len=8192; 5789 ;; 5790 5791 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5792 # This has been around since 386BSD, at least. Likely further. 5793 if test -x /sbin/sysctl; then 5794 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5795 elif test -x /usr/sbin/sysctl; then 5796 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5797 else 5798 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5799 fi 5800 # And add a safety zone 5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5803 ;; 5804 5805 interix*) 5806 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5807 lt_cv_sys_max_cmd_len=196608 5808 ;; 5809 5810 osf*) 5811 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5812 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5813 # nice to cause kernel panics so lets avoid the loop below. 5814 # First set a reasonable default. 5815 lt_cv_sys_max_cmd_len=16384 5816 # 5817 if test -x /sbin/sysconfig; then 5818 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5819 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5820 esac 5821 fi 5822 ;; 5823 sco3.2v5*) 5824 lt_cv_sys_max_cmd_len=102400 5825 ;; 5826 sysv5* | sco5v6* | sysv4.2uw2*) 5827 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5828 if test -n "$kargmax"; then 5829 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5830 else 5831 lt_cv_sys_max_cmd_len=32768 5832 fi 5833 ;; 5834 *) 5835 # If test is not a shell built-in, we'll probably end up computing a 5836 # maximum length that is only half of the actual maximum length, but 5837 # we can't tell. 5838 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5839 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5840 = "XX$teststring") >/dev/null 2>&1 && 5841 new_result=`expr "X$teststring" : ".*" 2>&1` && 5842 lt_cv_sys_max_cmd_len=$new_result && 5843 test $i != 17 # 1/2 MB should be enough 5844 do 5845 i=`expr $i + 1` 5846 teststring=$teststring$teststring 5847 done 5848 teststring= 5849 # Add a significant safety factor because C++ compilers can tack on massive 5850 # amounts of additional arguments before passing them to the linker. 5851 # It appears as though 1/2 is a usable value. 5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5853 ;; 5854 esac 5855 5856fi 5857 5858if test -n $lt_cv_sys_max_cmd_len ; then 5859 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5860echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5861else 5862 echo "$as_me:$LINENO: result: none" >&5 5863echo "${ECHO_T}none" >&6 5864fi 5865 5866 5867 5868 5869# Check for command to grab the raw symbol name followed by C symbol from nm. 5870echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5871echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5872if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5873 echo $ECHO_N "(cached) $ECHO_C" >&6 5874else 5875 5876# These are sane defaults that work on at least a few old systems. 5877# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5878 5879# Character class describing NM global symbol codes. 5880symcode='[BCDEGRST]' 5881 5882# Regexp to match symbols that can be accessed directly from C. 5883sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5884 5885# Transform an extracted symbol line into a proper C declaration 5886lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5887 5888# Transform an extracted symbol line into symbol name and symbol address 5889lt_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'" 5890 5891# Define system-specific variables. 5892case $host_os in 5893aix*) 5894 symcode='[BCDT]' 5895 ;; 5896cygwin* | mingw* | pw32*) 5897 symcode='[ABCDGISTW]' 5898 ;; 5899hpux*) # Its linker distinguishes data from code symbols 5900 if test "$host_cpu" = ia64; then 5901 symcode='[ABCDEGRST]' 5902 fi 5903 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5904 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'" 5905 ;; 5906linux*) 5907 if test "$host_cpu" = ia64; then 5908 symcode='[ABCDGIRSTW]' 5909 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5910 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'" 5911 fi 5912 ;; 5913irix* | nonstopux*) 5914 symcode='[BCDEGRST]' 5915 ;; 5916osf*) 5917 symcode='[BCDEGQRST]' 5918 ;; 5919solaris*) 5920 symcode='[BDRT]' 5921 ;; 5922sco3.2v5*) 5923 symcode='[DT]' 5924 ;; 5925sysv4.2uw2*) 5926 symcode='[DT]' 5927 ;; 5928sysv5* | sco5v6* | unixware* | OpenUNIX*) 5929 symcode='[ABDT]' 5930 ;; 5931sysv4) 5932 symcode='[DFNSTU]' 5933 ;; 5934esac 5935 5936# Handle CRLF in mingw tool chain 5937opt_cr= 5938case $build_os in 5939mingw*) 5940 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5941 ;; 5942esac 5943 5944# If we're using GNU nm, then use its standard symbol codes. 5945case `$NM -V 2>&1` in 5946*GNU* | *'with BFD'*) 5947 symcode='[ABCDGIRSTW]' ;; 5948esac 5949 5950# Try without a prefix undercore, then with it. 5951for ac_symprfx in "" "_"; do 5952 5953 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5954 symxfrm="\\1 $ac_symprfx\\2 \\2" 5955 5956 # Write the raw and C identifiers. 5957 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5958 5959 # Check to see that the pipe works correctly. 5960 pipe_works=no 5961 5962 rm -f conftest* 5963 cat > conftest.$ac_ext <<EOF 5964#ifdef __cplusplus 5965extern "C" { 5966#endif 5967char nm_test_var; 5968void nm_test_func(){} 5969#ifdef __cplusplus 5970} 5971#endif 5972int main(){nm_test_var='a';nm_test_func();return(0);} 5973EOF 5974 5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5976 (eval $ac_compile) 2>&5 5977 ac_status=$? 5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5979 (exit $ac_status); }; then 5980 # Now try to grab the symbols. 5981 nlist=conftest.nm 5982 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5983 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5984 ac_status=$? 5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5986 (exit $ac_status); } && test -s "$nlist"; then 5987 # Try sorting and uniquifying the output. 5988 if sort "$nlist" | uniq > "$nlist"T; then 5989 mv -f "$nlist"T "$nlist" 5990 else 5991 rm -f "$nlist"T 5992 fi 5993 5994 # Make sure that we snagged all the symbols we need. 5995 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5996 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5997 cat <<EOF > conftest.$ac_ext 5998#ifdef __cplusplus 5999extern "C" { 6000#endif 6001 6002EOF 6003 # Now generate the symbol file. 6004 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6005 6006 cat <<EOF >> conftest.$ac_ext 6007#if defined (__STDC__) && __STDC__ 6008# define lt_ptr_t void * 6009#else 6010# define lt_ptr_t char * 6011# define const 6012#endif 6013 6014/* The mapping between symbol names and symbols. */ 6015const struct { 6016 const char *name; 6017 lt_ptr_t address; 6018} 6019lt_preloaded_symbols[] = 6020{ 6021EOF 6022 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6023 cat <<\EOF >> conftest.$ac_ext 6024 {0, (lt_ptr_t) 0} 6025}; 6026 6027#ifdef __cplusplus 6028} 6029#endif 6030EOF 6031 # Now try linking the two files. 6032 mv conftest.$ac_objext conftstm.$ac_objext 6033 lt_save_LIBS="$LIBS" 6034 lt_save_CFLAGS="$CFLAGS" 6035 LIBS="conftstm.$ac_objext" 6036 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6038 (eval $ac_link) 2>&5 6039 ac_status=$? 6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6041 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6042 pipe_works=yes 6043 fi 6044 LIBS="$lt_save_LIBS" 6045 CFLAGS="$lt_save_CFLAGS" 6046 else 6047 echo "cannot find nm_test_func in $nlist" >&5 6048 fi 6049 else 6050 echo "cannot find nm_test_var in $nlist" >&5 6051 fi 6052 else 6053 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6054 fi 6055 else 6056 echo "$progname: failed program was:" >&5 6057 cat conftest.$ac_ext >&5 6058 fi 6059 rm -f conftest* conftst* 6060 6061 # Do not use the global_symbol_pipe unless it works. 6062 if test "$pipe_works" = yes; then 6063 break 6064 else 6065 lt_cv_sys_global_symbol_pipe= 6066 fi 6067done 6068 6069fi 6070 6071if test -z "$lt_cv_sys_global_symbol_pipe"; then 6072 lt_cv_sys_global_symbol_to_cdecl= 6073fi 6074if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6075 echo "$as_me:$LINENO: result: failed" >&5 6076echo "${ECHO_T}failed" >&6 6077else 6078 echo "$as_me:$LINENO: result: ok" >&5 6079echo "${ECHO_T}ok" >&6 6080fi 6081 6082echo "$as_me:$LINENO: checking for objdir" >&5 6083echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6084if test "${lt_cv_objdir+set}" = set; then 6085 echo $ECHO_N "(cached) $ECHO_C" >&6 6086else 6087 rm -f .libs 2>/dev/null 6088mkdir .libs 2>/dev/null 6089if test -d .libs; then 6090 lt_cv_objdir=.libs 6091else 6092 # MS-DOS does not allow filenames that begin with a dot. 6093 lt_cv_objdir=_libs 6094fi 6095rmdir .libs 2>/dev/null 6096fi 6097echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6098echo "${ECHO_T}$lt_cv_objdir" >&6 6099objdir=$lt_cv_objdir 6100 6101 6102 6103 6104 6105case $host_os in 6106aix3*) 6107 # AIX sometimes has problems with the GCC collect2 program. For some 6108 # reason, if we set the COLLECT_NAMES environment variable, the problems 6109 # vanish in a puff of smoke. 6110 if test "X${COLLECT_NAMES+set}" != Xset; then 6111 COLLECT_NAMES= 6112 export COLLECT_NAMES 6113 fi 6114 ;; 6115esac 6116 6117# Sed substitution that helps us do robust quoting. It backslashifies 6118# metacharacters that are still active within double-quoted strings. 6119Xsed='sed -e 1s/^X//' 6120sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6121 6122# Same as above, but do not quote variable references. 6123double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6124 6125# Sed substitution to delay expansion of an escaped shell variable in a 6126# double_quote_subst'ed string. 6127delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6128 6129# Sed substitution to avoid accidental globbing in evaled expressions 6130no_glob_subst='s/\*/\\\*/g' 6131 6132# Constants: 6133rm="rm -f" 6134 6135# Global variables: 6136default_ofile=libtool 6137can_build_shared=yes 6138 6139# All known linkers require a `.a' archive for static linking (except MSVC, 6140# which needs '.lib'). 6141libext=a 6142ltmain="$ac_aux_dir/ltmain.sh" 6143ofile="$default_ofile" 6144with_gnu_ld="$lt_cv_prog_gnu_ld" 6145 6146if test -n "$ac_tool_prefix"; then 6147 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6148set dummy ${ac_tool_prefix}ar; ac_word=$2 6149echo "$as_me:$LINENO: checking for $ac_word" >&5 6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6151if test "${ac_cv_prog_AR+set}" = set; then 6152 echo $ECHO_N "(cached) $ECHO_C" >&6 6153else 6154 if test -n "$AR"; then 6155 ac_cv_prog_AR="$AR" # Let the user override the test. 6156else 6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6158for as_dir in $PATH 6159do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6164 ac_cv_prog_AR="${ac_tool_prefix}ar" 6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169done 6170 6171fi 6172fi 6173AR=$ac_cv_prog_AR 6174if test -n "$AR"; then 6175 echo "$as_me:$LINENO: result: $AR" >&5 6176echo "${ECHO_T}$AR" >&6 6177else 6178 echo "$as_me:$LINENO: result: no" >&5 6179echo "${ECHO_T}no" >&6 6180fi 6181 6182fi 6183if test -z "$ac_cv_prog_AR"; then 6184 ac_ct_AR=$AR 6185 # Extract the first word of "ar", so it can be a program name with args. 6186set dummy ar; ac_word=$2 6187echo "$as_me:$LINENO: checking for $ac_word" >&5 6188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6189if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6190 echo $ECHO_N "(cached) $ECHO_C" >&6 6191else 6192 if test -n "$ac_ct_AR"; then 6193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 test -z "$as_dir" && as_dir=. 6200 for ac_exec_ext in '' $ac_executable_extensions; do 6201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6202 ac_cv_prog_ac_ct_AR="ar" 6203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6204 break 2 6205 fi 6206done 6207done 6208 6209 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6210fi 6211fi 6212ac_ct_AR=$ac_cv_prog_ac_ct_AR 6213if test -n "$ac_ct_AR"; then 6214 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6215echo "${ECHO_T}$ac_ct_AR" >&6 6216else 6217 echo "$as_me:$LINENO: result: no" >&5 6218echo "${ECHO_T}no" >&6 6219fi 6220 6221 AR=$ac_ct_AR 6222else 6223 AR="$ac_cv_prog_AR" 6224fi 6225 6226if test -n "$ac_tool_prefix"; then 6227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6228set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6229echo "$as_me:$LINENO: checking for $ac_word" >&5 6230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6231if test "${ac_cv_prog_RANLIB+set}" = set; then 6232 echo $ECHO_N "(cached) $ECHO_C" >&6 6233else 6234 if test -n "$RANLIB"; then 6235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6236else 6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6238for as_dir in $PATH 6239do 6240 IFS=$as_save_IFS 6241 test -z "$as_dir" && as_dir=. 6242 for ac_exec_ext in '' $ac_executable_extensions; do 6243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6246 break 2 6247 fi 6248done 6249done 6250 6251fi 6252fi 6253RANLIB=$ac_cv_prog_RANLIB 6254if test -n "$RANLIB"; then 6255 echo "$as_me:$LINENO: result: $RANLIB" >&5 6256echo "${ECHO_T}$RANLIB" >&6 6257else 6258 echo "$as_me:$LINENO: result: no" >&5 6259echo "${ECHO_T}no" >&6 6260fi 6261 6262fi 6263if test -z "$ac_cv_prog_RANLIB"; then 6264 ac_ct_RANLIB=$RANLIB 6265 # Extract the first word of "ranlib", so it can be a program name with args. 6266set dummy ranlib; ac_word=$2 6267echo "$as_me:$LINENO: checking for $ac_word" >&5 6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6269if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6270 echo $ECHO_N "(cached) $ECHO_C" >&6 6271else 6272 if test -n "$ac_ct_RANLIB"; then 6273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6274else 6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6276for as_dir in $PATH 6277do 6278 IFS=$as_save_IFS 6279 test -z "$as_dir" && as_dir=. 6280 for ac_exec_ext in '' $ac_executable_extensions; do 6281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6282 ac_cv_prog_ac_ct_RANLIB="ranlib" 6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6284 break 2 6285 fi 6286done 6287done 6288 6289 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6290fi 6291fi 6292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6293if test -n "$ac_ct_RANLIB"; then 6294 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6295echo "${ECHO_T}$ac_ct_RANLIB" >&6 6296else 6297 echo "$as_me:$LINENO: result: no" >&5 6298echo "${ECHO_T}no" >&6 6299fi 6300 6301 RANLIB=$ac_ct_RANLIB 6302else 6303 RANLIB="$ac_cv_prog_RANLIB" 6304fi 6305 6306if test -n "$ac_tool_prefix"; then 6307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6308set dummy ${ac_tool_prefix}strip; ac_word=$2 6309echo "$as_me:$LINENO: checking for $ac_word" >&5 6310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6311if test "${ac_cv_prog_STRIP+set}" = set; then 6312 echo $ECHO_N "(cached) $ECHO_C" >&6 6313else 6314 if test -n "$STRIP"; then 6315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6316else 6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6318for as_dir in $PATH 6319do 6320 IFS=$as_save_IFS 6321 test -z "$as_dir" && as_dir=. 6322 for ac_exec_ext in '' $ac_executable_extensions; do 6323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6324 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6326 break 2 6327 fi 6328done 6329done 6330 6331fi 6332fi 6333STRIP=$ac_cv_prog_STRIP 6334if test -n "$STRIP"; then 6335 echo "$as_me:$LINENO: result: $STRIP" >&5 6336echo "${ECHO_T}$STRIP" >&6 6337else 6338 echo "$as_me:$LINENO: result: no" >&5 6339echo "${ECHO_T}no" >&6 6340fi 6341 6342fi 6343if test -z "$ac_cv_prog_STRIP"; then 6344 ac_ct_STRIP=$STRIP 6345 # Extract the first word of "strip", so it can be a program name with args. 6346set dummy strip; ac_word=$2 6347echo "$as_me:$LINENO: checking for $ac_word" >&5 6348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6349if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6350 echo $ECHO_N "(cached) $ECHO_C" >&6 6351else 6352 if test -n "$ac_ct_STRIP"; then 6353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6354else 6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6356for as_dir in $PATH 6357do 6358 IFS=$as_save_IFS 6359 test -z "$as_dir" && as_dir=. 6360 for ac_exec_ext in '' $ac_executable_extensions; do 6361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6362 ac_cv_prog_ac_ct_STRIP="strip" 6363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6364 break 2 6365 fi 6366done 6367done 6368 6369 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6370fi 6371fi 6372ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6373if test -n "$ac_ct_STRIP"; then 6374 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6375echo "${ECHO_T}$ac_ct_STRIP" >&6 6376else 6377 echo "$as_me:$LINENO: result: no" >&5 6378echo "${ECHO_T}no" >&6 6379fi 6380 6381 STRIP=$ac_ct_STRIP 6382else 6383 STRIP="$ac_cv_prog_STRIP" 6384fi 6385 6386 6387old_CC="$CC" 6388old_CFLAGS="$CFLAGS" 6389 6390# Set sane defaults for various variables 6391test -z "$AR" && AR=ar 6392test -z "$AR_FLAGS" && AR_FLAGS=cru 6393test -z "$AS" && AS=as 6394test -z "$CC" && CC=cc 6395test -z "$LTCC" && LTCC=$CC 6396test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6397test -z "$DLLTOOL" && DLLTOOL=dlltool 6398test -z "$LD" && LD=ld 6399test -z "$LN_S" && LN_S="ln -s" 6400test -z "$MAGIC_CMD" && MAGIC_CMD=file 6401test -z "$NM" && NM=nm 6402test -z "$SED" && SED=sed 6403test -z "$OBJDUMP" && OBJDUMP=objdump 6404test -z "$RANLIB" && RANLIB=: 6405test -z "$STRIP" && STRIP=: 6406test -z "$ac_objext" && ac_objext=o 6407 6408# Determine commands to create old-style static archives. 6409old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6410old_postinstall_cmds='chmod 644 $oldlib' 6411old_postuninstall_cmds= 6412 6413if test -n "$RANLIB"; then 6414 case $host_os in 6415 openbsd*) 6416 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6417 ;; 6418 *) 6419 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6420 ;; 6421 esac 6422 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6423fi 6424 6425for cc_temp in $compiler""; do 6426 case $cc_temp in 6427 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6428 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6429 \-*) ;; 6430 *) break;; 6431 esac 6432done 6433cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6434 6435 6436# Only perform the check for file, if the check method requires it 6437case $deplibs_check_method in 6438file_magic*) 6439 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6440 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6441echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6442if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6443 echo $ECHO_N "(cached) $ECHO_C" >&6 6444else 6445 case $MAGIC_CMD in 6446[\\/*] | ?:[\\/]*) 6447 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6448 ;; 6449*) 6450 lt_save_MAGIC_CMD="$MAGIC_CMD" 6451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6453 for ac_dir in $ac_dummy; do 6454 IFS="$lt_save_ifs" 6455 test -z "$ac_dir" && ac_dir=. 6456 if test -f $ac_dir/${ac_tool_prefix}file; then 6457 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6458 if test -n "$file_magic_test_file"; then 6459 case $deplibs_check_method in 6460 "file_magic "*) 6461 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6464 $EGREP "$file_magic_regex" > /dev/null; then 6465 : 6466 else 6467 cat <<EOF 1>&2 6468 6469*** Warning: the command libtool uses to detect shared libraries, 6470*** $file_magic_cmd, produces output that libtool cannot recognize. 6471*** The result is that libtool may fail to recognize shared libraries 6472*** as such. This will affect the creation of libtool libraries that 6473*** depend on shared libraries, but programs linked with such libtool 6474*** libraries will work regardless of this problem. Nevertheless, you 6475*** may want to report the problem to your system manager and/or to 6476*** bug-libtool@gnu.org 6477 6478EOF 6479 fi ;; 6480 esac 6481 fi 6482 break 6483 fi 6484 done 6485 IFS="$lt_save_ifs" 6486 MAGIC_CMD="$lt_save_MAGIC_CMD" 6487 ;; 6488esac 6489fi 6490 6491MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6492if test -n "$MAGIC_CMD"; then 6493 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6494echo "${ECHO_T}$MAGIC_CMD" >&6 6495else 6496 echo "$as_me:$LINENO: result: no" >&5 6497echo "${ECHO_T}no" >&6 6498fi 6499 6500if test -z "$lt_cv_path_MAGIC_CMD"; then 6501 if test -n "$ac_tool_prefix"; then 6502 echo "$as_me:$LINENO: checking for file" >&5 6503echo $ECHO_N "checking for file... $ECHO_C" >&6 6504if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6505 echo $ECHO_N "(cached) $ECHO_C" >&6 6506else 6507 case $MAGIC_CMD in 6508[\\/*] | ?:[\\/]*) 6509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6510 ;; 6511*) 6512 lt_save_MAGIC_CMD="$MAGIC_CMD" 6513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6515 for ac_dir in $ac_dummy; do 6516 IFS="$lt_save_ifs" 6517 test -z "$ac_dir" && ac_dir=. 6518 if test -f $ac_dir/file; then 6519 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6520 if test -n "$file_magic_test_file"; then 6521 case $deplibs_check_method in 6522 "file_magic "*) 6523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6526 $EGREP "$file_magic_regex" > /dev/null; then 6527 : 6528 else 6529 cat <<EOF 1>&2 6530 6531*** Warning: the command libtool uses to detect shared libraries, 6532*** $file_magic_cmd, produces output that libtool cannot recognize. 6533*** The result is that libtool may fail to recognize shared libraries 6534*** as such. This will affect the creation of libtool libraries that 6535*** depend on shared libraries, but programs linked with such libtool 6536*** libraries will work regardless of this problem. Nevertheless, you 6537*** may want to report the problem to your system manager and/or to 6538*** bug-libtool@gnu.org 6539 6540EOF 6541 fi ;; 6542 esac 6543 fi 6544 break 6545 fi 6546 done 6547 IFS="$lt_save_ifs" 6548 MAGIC_CMD="$lt_save_MAGIC_CMD" 6549 ;; 6550esac 6551fi 6552 6553MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6554if test -n "$MAGIC_CMD"; then 6555 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6556echo "${ECHO_T}$MAGIC_CMD" >&6 6557else 6558 echo "$as_me:$LINENO: result: no" >&5 6559echo "${ECHO_T}no" >&6 6560fi 6561 6562 else 6563 MAGIC_CMD=: 6564 fi 6565fi 6566 6567 fi 6568 ;; 6569esac 6570 6571enable_dlopen=no 6572enable_win32_dll=no 6573 6574# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6575if test "${enable_libtool_lock+set}" = set; then 6576 enableval="$enable_libtool_lock" 6577 6578fi; 6579test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6580 6581 6582# Check whether --with-pic or --without-pic was given. 6583if test "${with_pic+set}" = set; then 6584 withval="$with_pic" 6585 pic_mode="$withval" 6586else 6587 pic_mode=default 6588fi; 6589test -z "$pic_mode" && pic_mode=default 6590 6591# Use C for the default configuration in the libtool script 6592tagname= 6593lt_save_CC="$CC" 6594ac_ext=c 6595ac_cpp='$CPP $CPPFLAGS' 6596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6598ac_compiler_gnu=$ac_cv_c_compiler_gnu 6599 6600 6601# Source file extension for C test sources. 6602ac_ext=c 6603 6604# Object file extension for compiled C test sources. 6605objext=o 6606objext=$objext 6607 6608# Code to be used in simple compile tests 6609lt_simple_compile_test_code="int some_variable = 0;\n" 6610 6611# Code to be used in simple link tests 6612lt_simple_link_test_code='int main(){return(0);}\n' 6613 6614 6615# If no C compiler was specified, use CC. 6616LTCC=${LTCC-"$CC"} 6617 6618# If no C compiler flags were specified, use CFLAGS. 6619LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6620 6621# Allow CC to be a program name with arguments. 6622compiler=$CC 6623 6624 6625# save warnings/boilerplate of simple test code 6626ac_outfile=conftest.$ac_objext 6627printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6628eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6629_lt_compiler_boilerplate=`cat conftest.err` 6630$rm conftest* 6631 6632ac_outfile=conftest.$ac_objext 6633printf "$lt_simple_link_test_code" >conftest.$ac_ext 6634eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6635_lt_linker_boilerplate=`cat conftest.err` 6636$rm conftest* 6637 6638 6639## CAVEAT EMPTOR: 6640## There is no encapsulation within the following macros, do not change 6641## the running order or otherwise move them around unless you know exactly 6642## what you are doing... 6643 6644lt_prog_compiler_no_builtin_flag= 6645 6646if test "$GCC" = yes; then 6647 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6648 6649 6650echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6651echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6652if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6653 echo $ECHO_N "(cached) $ECHO_C" >&6 6654else 6655 lt_cv_prog_compiler_rtti_exceptions=no 6656 ac_outfile=conftest.$ac_objext 6657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6658 lt_compiler_flag="-fno-rtti -fno-exceptions" 6659 # Insert the option either (1) after the last *FLAGS variable, or 6660 # (2) before a word containing "conftest.", or (3) at the end. 6661 # Note that $ac_compile itself does not contain backslashes and begins 6662 # with a dollar sign (not a hyphen), so the echo should work correctly. 6663 # The option is referenced via a variable to avoid confusing sed. 6664 lt_compile=`echo "$ac_compile" | $SED \ 6665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6667 -e 's:$: $lt_compiler_flag:'` 6668 (eval echo "\"\$as_me:6668: $lt_compile\"" >&5) 6669 (eval "$lt_compile" 2>conftest.err) 6670 ac_status=$? 6671 cat conftest.err >&5 6672 echo "$as_me:6672: \$? = $ac_status" >&5 6673 if (exit $ac_status) && test -s "$ac_outfile"; then 6674 # The compiler can only warn and ignore the option if not recognized 6675 # So say no if there are warnings other than the usual output. 6676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6679 lt_cv_prog_compiler_rtti_exceptions=yes 6680 fi 6681 fi 6682 $rm conftest* 6683 6684fi 6685echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6686echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6687 6688if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6689 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6690else 6691 : 6692fi 6693 6694fi 6695 6696lt_prog_compiler_wl= 6697lt_prog_compiler_pic= 6698lt_prog_compiler_static= 6699 6700echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6701echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6702 6703 if test "$GCC" = yes; then 6704 lt_prog_compiler_wl='-Wl,' 6705 lt_prog_compiler_static='-static' 6706 6707 case $host_os in 6708 aix*) 6709 # All AIX code is PIC. 6710 if test "$host_cpu" = ia64; then 6711 # AIX 5 now supports IA64 processor 6712 lt_prog_compiler_static='-Bstatic' 6713 fi 6714 ;; 6715 6716 amigaos*) 6717 # FIXME: we need at least 68020 code to build shared libraries, but 6718 # adding the `-m68020' flag to GCC prevents building anything better, 6719 # like `-m68040'. 6720 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6721 ;; 6722 6723 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6724 # PIC is the default for these OSes. 6725 ;; 6726 6727 mingw* | pw32* | os2*) 6728 # This hack is so that the source file can tell whether it is being 6729 # built for inclusion in a dll (and should export symbols for example). 6730 lt_prog_compiler_pic='-DDLL_EXPORT' 6731 ;; 6732 6733 darwin* | rhapsody*) 6734 # PIC is the default on this platform 6735 # Common symbols not allowed in MH_DYLIB files 6736 lt_prog_compiler_pic='-fno-common' 6737 ;; 6738 6739 interix3*) 6740 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6741 # Instead, we relocate shared libraries at runtime. 6742 ;; 6743 6744 msdosdjgpp*) 6745 # Just because we use GCC doesn't mean we suddenly get shared libraries 6746 # on systems that don't support them. 6747 lt_prog_compiler_can_build_shared=no 6748 enable_shared=no 6749 ;; 6750 6751 sysv4*MP*) 6752 if test -d /usr/nec; then 6753 lt_prog_compiler_pic=-Kconform_pic 6754 fi 6755 ;; 6756 6757 hpux*) 6758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6759 # not for PA HP-UX. 6760 case $host_cpu in 6761 hppa*64*|ia64*) 6762 # +Z the default 6763 ;; 6764 *) 6765 lt_prog_compiler_pic='-fPIC' 6766 ;; 6767 esac 6768 ;; 6769 6770 *) 6771 lt_prog_compiler_pic='-fPIC' 6772 ;; 6773 esac 6774 else 6775 # PORTME Check for flag to pass linker flags through the system compiler. 6776 case $host_os in 6777 aix*) 6778 lt_prog_compiler_wl='-Wl,' 6779 if test "$host_cpu" = ia64; then 6780 # AIX 5 now supports IA64 processor 6781 lt_prog_compiler_static='-Bstatic' 6782 else 6783 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6784 fi 6785 ;; 6786 darwin*) 6787 # PIC is the default on this platform 6788 # Common symbols not allowed in MH_DYLIB files 6789 case $cc_basename in 6790 xlc*) 6791 lt_prog_compiler_pic='-qnocommon' 6792 lt_prog_compiler_wl='-Wl,' 6793 ;; 6794 esac 6795 ;; 6796 6797 mingw* | pw32* | os2*) 6798 # This hack is so that the source file can tell whether it is being 6799 # built for inclusion in a dll (and should export symbols for example). 6800 lt_prog_compiler_pic='-DDLL_EXPORT' 6801 ;; 6802 6803 hpux9* | hpux10* | hpux11*) 6804 lt_prog_compiler_wl='-Wl,' 6805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6806 # not for PA HP-UX. 6807 case $host_cpu in 6808 hppa*64*|ia64*) 6809 # +Z the default 6810 ;; 6811 *) 6812 lt_prog_compiler_pic='+Z' 6813 ;; 6814 esac 6815 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6816 lt_prog_compiler_static='${wl}-a ${wl}archive' 6817 ;; 6818 6819 irix5* | irix6* | nonstopux*) 6820 lt_prog_compiler_wl='-Wl,' 6821 # PIC (with -KPIC) is the default. 6822 lt_prog_compiler_static='-non_shared' 6823 ;; 6824 6825 newsos6) 6826 lt_prog_compiler_pic='-KPIC' 6827 lt_prog_compiler_static='-Bstatic' 6828 ;; 6829 6830 linux*) 6831 case $cc_basename in 6832 icc* | ecc*) 6833 lt_prog_compiler_wl='-Wl,' 6834 lt_prog_compiler_pic='-KPIC' 6835 lt_prog_compiler_static='-static' 6836 ;; 6837 pgcc* | pgf77* | pgf90* | pgf95*) 6838 # Portland Group compilers (*not* the Pentium gcc compiler, 6839 # which looks to be a dead project) 6840 lt_prog_compiler_wl='-Wl,' 6841 lt_prog_compiler_pic='-fpic' 6842 lt_prog_compiler_static='-Bstatic' 6843 ;; 6844 ccc*) 6845 lt_prog_compiler_wl='-Wl,' 6846 # All Alpha code is PIC. 6847 lt_prog_compiler_static='-non_shared' 6848 ;; 6849 esac 6850 ;; 6851 6852 osf3* | osf4* | osf5*) 6853 lt_prog_compiler_wl='-Wl,' 6854 # All OSF/1 code is PIC. 6855 lt_prog_compiler_static='-non_shared' 6856 ;; 6857 6858 solaris*) 6859 lt_prog_compiler_pic='-KPIC' 6860 lt_prog_compiler_static='-Bstatic' 6861 case $cc_basename in 6862 f77* | f90* | f95*) 6863 lt_prog_compiler_wl='-Qoption ld ';; 6864 *) 6865 lt_prog_compiler_wl='-Wl,';; 6866 esac 6867 ;; 6868 6869 sunos4*) 6870 lt_prog_compiler_wl='-Qoption ld ' 6871 lt_prog_compiler_pic='-PIC' 6872 lt_prog_compiler_static='-Bstatic' 6873 ;; 6874 6875 sysv4 | sysv4.2uw2* | sysv4.3*) 6876 lt_prog_compiler_wl='-Wl,' 6877 lt_prog_compiler_pic='-KPIC' 6878 lt_prog_compiler_static='-Bstatic' 6879 ;; 6880 6881 sysv4*MP*) 6882 if test -d /usr/nec ;then 6883 lt_prog_compiler_pic='-Kconform_pic' 6884 lt_prog_compiler_static='-Bstatic' 6885 fi 6886 ;; 6887 6888 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6889 lt_prog_compiler_wl='-Wl,' 6890 lt_prog_compiler_pic='-KPIC' 6891 lt_prog_compiler_static='-Bstatic' 6892 ;; 6893 6894 unicos*) 6895 lt_prog_compiler_wl='-Wl,' 6896 lt_prog_compiler_can_build_shared=no 6897 ;; 6898 6899 uts4*) 6900 lt_prog_compiler_pic='-pic' 6901 lt_prog_compiler_static='-Bstatic' 6902 ;; 6903 6904 *) 6905 lt_prog_compiler_can_build_shared=no 6906 ;; 6907 esac 6908 fi 6909 6910echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6911echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6912 6913# 6914# Check to make sure the PIC flag actually works. 6915# 6916if test -n "$lt_prog_compiler_pic"; then 6917 6918echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6919echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6920if test "${lt_prog_compiler_pic_works+set}" = set; then 6921 echo $ECHO_N "(cached) $ECHO_C" >&6 6922else 6923 lt_prog_compiler_pic_works=no 6924 ac_outfile=conftest.$ac_objext 6925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6926 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6927 # Insert the option either (1) after the last *FLAGS variable, or 6928 # (2) before a word containing "conftest.", or (3) at the end. 6929 # Note that $ac_compile itself does not contain backslashes and begins 6930 # with a dollar sign (not a hyphen), so the echo should work correctly. 6931 # The option is referenced via a variable to avoid confusing sed. 6932 lt_compile=`echo "$ac_compile" | $SED \ 6933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6935 -e 's:$: $lt_compiler_flag:'` 6936 (eval echo "\"\$as_me:6936: $lt_compile\"" >&5) 6937 (eval "$lt_compile" 2>conftest.err) 6938 ac_status=$? 6939 cat conftest.err >&5 6940 echo "$as_me:6940: \$? = $ac_status" >&5 6941 if (exit $ac_status) && test -s "$ac_outfile"; then 6942 # The compiler can only warn and ignore the option if not recognized 6943 # So say no if there are warnings other than the usual output. 6944 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6947 lt_prog_compiler_pic_works=yes 6948 fi 6949 fi 6950 $rm conftest* 6951 6952fi 6953echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6954echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6955 6956if test x"$lt_prog_compiler_pic_works" = xyes; then 6957 case $lt_prog_compiler_pic in 6958 "" | " "*) ;; 6959 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6960 esac 6961else 6962 lt_prog_compiler_pic= 6963 lt_prog_compiler_can_build_shared=no 6964fi 6965 6966fi 6967case $host_os in 6968 # For platforms which do not support PIC, -DPIC is meaningless: 6969 *djgpp*) 6970 lt_prog_compiler_pic= 6971 ;; 6972 *) 6973 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6974 ;; 6975esac 6976 6977# 6978# Check to make sure the static flag actually works. 6979# 6980wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6981echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6982echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6983if test "${lt_prog_compiler_static_works+set}" = set; then 6984 echo $ECHO_N "(cached) $ECHO_C" >&6 6985else 6986 lt_prog_compiler_static_works=no 6987 save_LDFLAGS="$LDFLAGS" 6988 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6989 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6990 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6991 # The linker can only warn and ignore the option if not recognized 6992 # So say no if there are warnings 6993 if test -s conftest.err; then 6994 # Append any errors to the config.log. 6995 cat conftest.err 1>&5 6996 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6998 if diff conftest.exp conftest.er2 >/dev/null; then 6999 lt_prog_compiler_static_works=yes 7000 fi 7001 else 7002 lt_prog_compiler_static_works=yes 7003 fi 7004 fi 7005 $rm conftest* 7006 LDFLAGS="$save_LDFLAGS" 7007 7008fi 7009echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7010echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 7011 7012if test x"$lt_prog_compiler_static_works" = xyes; then 7013 : 7014else 7015 lt_prog_compiler_static= 7016fi 7017 7018 7019echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7020echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7021if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7022 echo $ECHO_N "(cached) $ECHO_C" >&6 7023else 7024 lt_cv_prog_compiler_c_o=no 7025 $rm -r conftest 2>/dev/null 7026 mkdir conftest 7027 cd conftest 7028 mkdir out 7029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7030 7031 lt_compiler_flag="-o out/conftest2.$ac_objext" 7032 # Insert the option either (1) after the last *FLAGS variable, or 7033 # (2) before a word containing "conftest.", or (3) at the end. 7034 # Note that $ac_compile itself does not contain backslashes and begins 7035 # with a dollar sign (not a hyphen), so the echo should work correctly. 7036 lt_compile=`echo "$ac_compile" | $SED \ 7037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7039 -e 's:$: $lt_compiler_flag:'` 7040 (eval echo "\"\$as_me:7040: $lt_compile\"" >&5) 7041 (eval "$lt_compile" 2>out/conftest.err) 7042 ac_status=$? 7043 cat out/conftest.err >&5 7044 echo "$as_me:7044: \$? = $ac_status" >&5 7045 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7046 then 7047 # The compiler can only warn and ignore the option if not recognized 7048 # So say no if there are warnings 7049 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7052 lt_cv_prog_compiler_c_o=yes 7053 fi 7054 fi 7055 chmod u+w . 2>&5 7056 $rm conftest* 7057 # SGI C++ compiler will create directory out/ii_files/ for 7058 # template instantiation 7059 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7060 $rm out/* && rmdir out 7061 cd .. 7062 rmdir conftest 7063 $rm conftest* 7064 7065fi 7066echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7067echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7068 7069 7070hard_links="nottested" 7071if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7072 # do not overwrite the value of need_locks provided by the user 7073 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7074echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7075 hard_links=yes 7076 $rm conftest* 7077 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7078 touch conftest.a 7079 ln conftest.a conftest.b 2>&5 || hard_links=no 7080 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7081 echo "$as_me:$LINENO: result: $hard_links" >&5 7082echo "${ECHO_T}$hard_links" >&6 7083 if test "$hard_links" = no; then 7084 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7085echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7086 need_locks=warn 7087 fi 7088else 7089 need_locks=no 7090fi 7091 7092echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7093echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7094 7095 runpath_var= 7096 allow_undefined_flag= 7097 enable_shared_with_static_runtimes=no 7098 archive_cmds= 7099 archive_expsym_cmds= 7100 old_archive_From_new_cmds= 7101 old_archive_from_expsyms_cmds= 7102 export_dynamic_flag_spec= 7103 whole_archive_flag_spec= 7104 thread_safe_flag_spec= 7105 hardcode_libdir_flag_spec= 7106 hardcode_libdir_flag_spec_ld= 7107 hardcode_libdir_separator= 7108 hardcode_direct=no 7109 hardcode_minus_L=no 7110 hardcode_shlibpath_var=unsupported 7111 link_all_deplibs=unknown 7112 hardcode_automatic=no 7113 module_cmds= 7114 module_expsym_cmds= 7115 always_export_symbols=no 7116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7117 # include_expsyms should be a list of space-separated symbols to be *always* 7118 # included in the symbol list 7119 include_expsyms= 7120 # exclude_expsyms can be an extended regexp of symbols to exclude 7121 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7122 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7123 # as well as any symbol that contains `d'. 7124 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7125 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7126 # platforms (ab)use it in PIC code, but their linkers get confused if 7127 # the symbol is explicitly referenced. Since portable code cannot 7128 # rely on this symbol name, it's probably fine to never include it in 7129 # preloaded symbol tables. 7130 extract_expsyms_cmds= 7131 # Just being paranoid about ensuring that cc_basename is set. 7132 for cc_temp in $compiler""; do 7133 case $cc_temp in 7134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7136 \-*) ;; 7137 *) break;; 7138 esac 7139done 7140cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7141 7142 case $host_os in 7143 cygwin* | mingw* | pw32*) 7144 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7145 # When not using gcc, we currently assume that we are using 7146 # Microsoft Visual C++. 7147 if test "$GCC" != yes; then 7148 with_gnu_ld=no 7149 fi 7150 ;; 7151 interix*) 7152 # we just hope/assume this is gcc and not c89 (= MSVC++) 7153 with_gnu_ld=yes 7154 ;; 7155 openbsd*) 7156 with_gnu_ld=no 7157 ;; 7158 esac 7159 7160 ld_shlibs=yes 7161 if test "$with_gnu_ld" = yes; then 7162 # If archive_cmds runs LD, not CC, wlarc should be empty 7163 wlarc='${wl}' 7164 7165 # Set some defaults for GNU ld with shared library support. These 7166 # are reset later if shared libraries are not supported. Putting them 7167 # here allows them to be overridden if necessary. 7168 runpath_var=LD_RUN_PATH 7169 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7170 export_dynamic_flag_spec='${wl}--export-dynamic' 7171 # ancient GNU ld didn't support --whole-archive et. al. 7172 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7173 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7174 else 7175 whole_archive_flag_spec= 7176 fi 7177 supports_anon_versioning=no 7178 case `$LD -v 2>/dev/null` in 7179 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7180 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7181 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7182 *\ 2.11.*) ;; # other 2.11 versions 7183 *) supports_anon_versioning=yes ;; 7184 esac 7185 7186 # See if GNU ld supports shared libraries. 7187 case $host_os in 7188 aix3* | aix4* | aix5*) 7189 # On AIX/PPC, the GNU linker is very broken 7190 if test "$host_cpu" != ia64; then 7191 ld_shlibs=no 7192 cat <<EOF 1>&2 7193 7194*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7195*** to be unable to reliably create shared libraries on AIX. 7196*** Therefore, libtool is disabling shared libraries support. If you 7197*** really care for shared libraries, you may want to modify your PATH 7198*** so that a non-GNU linker is found, and then restart. 7199 7200EOF 7201 fi 7202 ;; 7203 7204 amigaos*) 7205 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)' 7206 hardcode_libdir_flag_spec='-L$libdir' 7207 hardcode_minus_L=yes 7208 7209 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7210 # that the semantics of dynamic libraries on AmigaOS, at least up 7211 # to version 4, is to share data among multiple programs linked 7212 # with the same dynamic library. Since this doesn't match the 7213 # behavior of shared libraries on other platforms, we can't use 7214 # them. 7215 ld_shlibs=no 7216 ;; 7217 7218 beos*) 7219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7220 allow_undefined_flag=unsupported 7221 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7222 # support --undefined. This deserves some investigation. FIXME 7223 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7224 else 7225 ld_shlibs=no 7226 fi 7227 ;; 7228 7229 cygwin* | mingw* | pw32*) 7230 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7231 # as there is no search path for DLLs. 7232 hardcode_libdir_flag_spec='-L$libdir' 7233 allow_undefined_flag=unsupported 7234 always_export_symbols=no 7235 enable_shared_with_static_runtimes=yes 7236 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7237 7238 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7240 # If the export-symbols file already is a .def file (1st line 7241 # is EXPORTS), use it as is; otherwise, prepend... 7242 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7243 cp $export_symbols $output_objdir/$soname.def; 7244 else 7245 echo EXPORTS > $output_objdir/$soname.def; 7246 cat $export_symbols >> $output_objdir/$soname.def; 7247 fi~ 7248 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7249 else 7250 ld_shlibs=no 7251 fi 7252 ;; 7253 7254 interix3*) 7255 hardcode_direct=no 7256 hardcode_shlibpath_var=no 7257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7258 export_dynamic_flag_spec='${wl}-E' 7259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7260 # Instead, shared libraries are loaded at an image base (0x10000000 by 7261 # default) and relocated if they conflict, which is a slow very memory 7262 # consuming and fragmenting process. To avoid this, we pick a random, 7263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7264 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7266 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7267 ;; 7268 7269 linux*) 7270 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7271 tmp_addflag= 7272 case $cc_basename,$host_cpu in 7273 pgcc*) # Portland Group C compiler 7274 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7275 tmp_addflag=' $pic_flag' 7276 ;; 7277 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7278 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7279 tmp_addflag=' $pic_flag -Mnomain' ;; 7280 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7281 tmp_addflag=' -i_dynamic' ;; 7282 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7283 tmp_addflag=' -i_dynamic -nofor_main' ;; 7284 ifc* | ifort*) # Intel Fortran compiler 7285 tmp_addflag=' -nofor_main' ;; 7286 esac 7287 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7288 7289 if test $supports_anon_versioning = yes; then 7290 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7292 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7293 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7294 fi 7295 else 7296 ld_shlibs=no 7297 fi 7298 ;; 7299 7300 netbsd*) 7301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7302 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7303 wlarc= 7304 else 7305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7307 fi 7308 ;; 7309 7310 solaris*) 7311 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7312 ld_shlibs=no 7313 cat <<EOF 1>&2 7314 7315*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7316*** create shared libraries on Solaris systems. Therefore, libtool 7317*** is disabling shared libraries support. We urge you to upgrade GNU 7318*** binutils to release 2.9.1 or newer. Another option is to modify 7319*** your PATH or compiler configuration so that the native linker is 7320*** used, and then restart. 7321 7322EOF 7323 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7326 else 7327 ld_shlibs=no 7328 fi 7329 ;; 7330 7331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7332 case `$LD -v 2>&1` in 7333 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7334 ld_shlibs=no 7335 cat <<_LT_EOF 1>&2 7336 7337*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7338*** reliably create shared libraries on SCO systems. Therefore, libtool 7339*** is disabling shared libraries support. We urge you to upgrade GNU 7340*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7341*** your PATH or compiler configuration so that the native linker is 7342*** used, and then restart. 7343 7344_LT_EOF 7345 ;; 7346 *) 7347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7348 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7351 else 7352 ld_shlibs=no 7353 fi 7354 ;; 7355 esac 7356 ;; 7357 7358 sunos4*) 7359 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7360 wlarc= 7361 hardcode_direct=yes 7362 hardcode_shlibpath_var=no 7363 ;; 7364 7365 *) 7366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7369 else 7370 ld_shlibs=no 7371 fi 7372 ;; 7373 esac 7374 7375 if test "$ld_shlibs" = no; then 7376 runpath_var= 7377 hardcode_libdir_flag_spec= 7378 export_dynamic_flag_spec= 7379 whole_archive_flag_spec= 7380 fi 7381 else 7382 # PORTME fill in a description of your system's linker (not GNU ld) 7383 case $host_os in 7384 aix3*) 7385 allow_undefined_flag=unsupported 7386 always_export_symbols=yes 7387 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' 7388 # Note: this linker hardcodes the directories in LIBPATH if there 7389 # are no directories specified by -L. 7390 hardcode_minus_L=yes 7391 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7392 # Neither direct hardcoding nor static linking is supported with a 7393 # broken collect2. 7394 hardcode_direct=unsupported 7395 fi 7396 ;; 7397 7398 aix4* | aix5*) 7399 if test "$host_cpu" = ia64; then 7400 # On IA64, the linker does run time linking by default, so we don't 7401 # have to do anything special. 7402 aix_use_runtimelinking=no 7403 exp_sym_flag='-Bexport' 7404 no_entry_flag="" 7405 else 7406 # If we're using GNU nm, then we don't want the "-C" option. 7407 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7408 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7409 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' 7410 else 7411 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' 7412 fi 7413 aix_use_runtimelinking=no 7414 7415 # Test if we are trying to use run time linking or normal 7416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7417 # need to do runtime linking. 7418 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7419 for ld_flag in $LDFLAGS; do 7420 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7421 aix_use_runtimelinking=yes 7422 break 7423 fi 7424 done 7425 ;; 7426 esac 7427 7428 exp_sym_flag='-bexport' 7429 no_entry_flag='-bnoentry' 7430 fi 7431 7432 # When large executables or shared objects are built, AIX ld can 7433 # have problems creating the table of contents. If linking a library 7434 # or program results in "error TOC overflow" add -mminimal-toc to 7435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7437 7438 archive_cmds='' 7439 hardcode_direct=yes 7440 hardcode_libdir_separator=':' 7441 link_all_deplibs=yes 7442 7443 if test "$GCC" = yes; then 7444 case $host_os in aix4.[012]|aix4.[012].*) 7445 # We only want to do this on AIX 4.2 and lower, the check 7446 # below for broken collect2 doesn't work under 4.3+ 7447 collect2name=`${CC} -print-prog-name=collect2` 7448 if test -f "$collect2name" && \ 7449 strings "$collect2name" | grep resolve_lib_name >/dev/null 7450 then 7451 # We have reworked collect2 7452 hardcode_direct=yes 7453 else 7454 # We have old collect2 7455 hardcode_direct=unsupported 7456 # It fails to find uninstalled libraries when the uninstalled 7457 # path is not listed in the libpath. Setting hardcode_minus_L 7458 # to unsupported forces relinking 7459 hardcode_minus_L=yes 7460 hardcode_libdir_flag_spec='-L$libdir' 7461 hardcode_libdir_separator= 7462 fi 7463 ;; 7464 esac 7465 shared_flag='-shared' 7466 if test "$aix_use_runtimelinking" = yes; then 7467 shared_flag="$shared_flag "'${wl}-G' 7468 fi 7469 else 7470 # not using gcc 7471 if test "$host_cpu" = ia64; then 7472 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7473 # chokes on -Wl,-G. The following line is correct: 7474 shared_flag='-G' 7475 else 7476 if test "$aix_use_runtimelinking" = yes; then 7477 shared_flag='${wl}-G' 7478 else 7479 shared_flag='${wl}-bM:SRE' 7480 fi 7481 fi 7482 fi 7483 7484 # It seems that -bexpall does not export symbols beginning with 7485 # underscore (_), so it is better to generate a list of symbols to export. 7486 always_export_symbols=yes 7487 if test "$aix_use_runtimelinking" = yes; then 7488 # Warning - without using the other runtime loading flags (-brtl), 7489 # -berok will link without error, but may produce a broken library. 7490 allow_undefined_flag='-berok' 7491 # Determine the default libpath from the value encoded in an empty executable. 7492 cat >conftest.$ac_ext <<_ACEOF 7493/* confdefs.h. */ 7494_ACEOF 7495cat confdefs.h >>conftest.$ac_ext 7496cat >>conftest.$ac_ext <<_ACEOF 7497/* end confdefs.h. */ 7498 7499int 7500main () 7501{ 7502 7503 ; 7504 return 0; 7505} 7506_ACEOF 7507rm -f conftest.$ac_objext conftest$ac_exeext 7508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7509 (eval $ac_link) 2>conftest.er1 7510 ac_status=$? 7511 grep -v '^ *+' conftest.er1 >conftest.err 7512 rm -f conftest.er1 7513 cat conftest.err >&5 7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7515 (exit $ac_status); } && 7516 { ac_try='test -z "$ac_c_werror_flag" 7517 || test ! -s conftest.err' 7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7519 (eval $ac_try) 2>&5 7520 ac_status=$? 7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7522 (exit $ac_status); }; } && 7523 { ac_try='test -s conftest$ac_exeext' 7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7525 (eval $ac_try) 2>&5 7526 ac_status=$? 7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7528 (exit $ac_status); }; }; then 7529 7530aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7531}'` 7532# Check for a 64-bit object if we didn't find anything. 7533if 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; } 7534}'`; fi 7535else 7536 echo "$as_me: failed program was:" >&5 7537sed 's/^/| /' conftest.$ac_ext >&5 7538 7539fi 7540rm -f conftest.err conftest.$ac_objext \ 7541 conftest$ac_exeext conftest.$ac_ext 7542if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7543 7544 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7545 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7546 else 7547 if test "$host_cpu" = ia64; then 7548 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7549 allow_undefined_flag="-z nodefs" 7550 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 7551 else 7552 # Determine the default libpath from the value encoded in an empty executable. 7553 cat >conftest.$ac_ext <<_ACEOF 7554/* confdefs.h. */ 7555_ACEOF 7556cat confdefs.h >>conftest.$ac_ext 7557cat >>conftest.$ac_ext <<_ACEOF 7558/* end confdefs.h. */ 7559 7560int 7561main () 7562{ 7563 7564 ; 7565 return 0; 7566} 7567_ACEOF 7568rm -f conftest.$ac_objext conftest$ac_exeext 7569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7570 (eval $ac_link) 2>conftest.er1 7571 ac_status=$? 7572 grep -v '^ *+' conftest.er1 >conftest.err 7573 rm -f conftest.er1 7574 cat conftest.err >&5 7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7576 (exit $ac_status); } && 7577 { ac_try='test -z "$ac_c_werror_flag" 7578 || test ! -s conftest.err' 7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7580 (eval $ac_try) 2>&5 7581 ac_status=$? 7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7583 (exit $ac_status); }; } && 7584 { ac_try='test -s conftest$ac_exeext' 7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7586 (eval $ac_try) 2>&5 7587 ac_status=$? 7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7589 (exit $ac_status); }; }; then 7590 7591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7592}'` 7593# Check for a 64-bit object if we didn't find anything. 7594if 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; } 7595}'`; fi 7596else 7597 echo "$as_me: failed program was:" >&5 7598sed 's/^/| /' conftest.$ac_ext >&5 7599 7600fi 7601rm -f conftest.err conftest.$ac_objext \ 7602 conftest$ac_exeext conftest.$ac_ext 7603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7604 7605 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7606 # Warning - without using the other run time loading flags, 7607 # -berok will link without error, but may produce a broken library. 7608 no_undefined_flag=' ${wl}-bernotok' 7609 allow_undefined_flag=' ${wl}-berok' 7610 # Exported symbols can be pulled into shared objects from archives 7611 whole_archive_flag_spec='$convenience' 7612 archive_cmds_need_lc=yes 7613 # This is similar to how AIX traditionally builds its shared libraries. 7614 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7615 fi 7616 fi 7617 ;; 7618 7619 amigaos*) 7620 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)' 7621 hardcode_libdir_flag_spec='-L$libdir' 7622 hardcode_minus_L=yes 7623 # see comment about different semantics on the GNU ld section 7624 ld_shlibs=no 7625 ;; 7626 7627 bsdi[45]*) 7628 export_dynamic_flag_spec=-rdynamic 7629 ;; 7630 7631 cygwin* | mingw* | pw32*) 7632 # When not using gcc, we currently assume that we are using 7633 # Microsoft Visual C++. 7634 # hardcode_libdir_flag_spec is actually meaningless, as there is 7635 # no search path for DLLs. 7636 hardcode_libdir_flag_spec=' ' 7637 allow_undefined_flag=unsupported 7638 # Tell ltmain to make .lib files, not .a files. 7639 libext=lib 7640 # Tell ltmain to make .dll files, not .so files. 7641 shrext_cmds=".dll" 7642 # FIXME: Setting linknames here is a bad hack. 7643 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7644 # The linker will automatically build a .lib file if we build a DLL. 7645 old_archive_From_new_cmds='true' 7646 # FIXME: Should let the user specify the lib program. 7647 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7648 fix_srcfile_path='`cygpath -w "$srcfile"`' 7649 enable_shared_with_static_runtimes=yes 7650 ;; 7651 7652 darwin* | rhapsody*) 7653 case $host_os in 7654 rhapsody* | darwin1.[012]) 7655 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7656 ;; 7657 *) # Darwin 1.3 on 7658 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7659 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7660 else 7661 case ${MACOSX_DEPLOYMENT_TARGET} in 7662 10.[012]) 7663 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7664 ;; 7665 10.*) 7666 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7667 ;; 7668 esac 7669 fi 7670 ;; 7671 esac 7672 archive_cmds_need_lc=no 7673 hardcode_direct=no 7674 hardcode_automatic=yes 7675 hardcode_shlibpath_var=unsupported 7676 whole_archive_flag_spec='' 7677 link_all_deplibs=yes 7678 if test "$GCC" = yes ; then 7679 output_verbose_link_cmd='echo' 7680 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7681 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7682 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7683 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}' 7684 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}' 7685 else 7686 case $cc_basename in 7687 xlc*) 7688 output_verbose_link_cmd='echo' 7689 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7690 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7691 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7692 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7693 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}' 7694 ;; 7695 *) 7696 ld_shlibs=no 7697 ;; 7698 esac 7699 fi 7700 ;; 7701 7702 dgux*) 7703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7704 hardcode_libdir_flag_spec='-L$libdir' 7705 hardcode_shlibpath_var=no 7706 ;; 7707 7708 freebsd1*) 7709 ld_shlibs=no 7710 ;; 7711 7712 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7713 # support. Future versions do this automatically, but an explicit c++rt0.o 7714 # does not break anything, and helps significantly (at the cost of a little 7715 # extra space). 7716 freebsd2.2*) 7717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7718 hardcode_libdir_flag_spec='-R$libdir' 7719 hardcode_direct=yes 7720 hardcode_shlibpath_var=no 7721 ;; 7722 7723 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7724 freebsd2*) 7725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7726 hardcode_direct=yes 7727 hardcode_minus_L=yes 7728 hardcode_shlibpath_var=no 7729 ;; 7730 7731 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7732 freebsd* | kfreebsd*-gnu | dragonfly*) 7733 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7734 hardcode_libdir_flag_spec='-R$libdir' 7735 hardcode_direct=yes 7736 hardcode_shlibpath_var=no 7737 ;; 7738 7739 hpux9*) 7740 if test "$GCC" = yes; then 7741 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' 7742 else 7743 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' 7744 fi 7745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7746 hardcode_libdir_separator=: 7747 hardcode_direct=yes 7748 7749 # hardcode_minus_L: Not really in the search PATH, 7750 # but as the default location of the library. 7751 hardcode_minus_L=yes 7752 export_dynamic_flag_spec='${wl}-E' 7753 ;; 7754 7755 hpux10*) 7756 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7758 else 7759 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7760 fi 7761 if test "$with_gnu_ld" = no; then 7762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7763 hardcode_libdir_separator=: 7764 7765 hardcode_direct=yes 7766 export_dynamic_flag_spec='${wl}-E' 7767 7768 # hardcode_minus_L: Not really in the search PATH, 7769 # but as the default location of the library. 7770 hardcode_minus_L=yes 7771 fi 7772 ;; 7773 7774 hpux11*) 7775 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7776 case $host_cpu in 7777 hppa*64*) 7778 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7779 ;; 7780 ia64*) 7781 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7782 ;; 7783 *) 7784 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7785 ;; 7786 esac 7787 else 7788 case $host_cpu in 7789 hppa*64*) 7790 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7791 ;; 7792 ia64*) 7793 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7794 ;; 7795 *) 7796 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7797 ;; 7798 esac 7799 fi 7800 if test "$with_gnu_ld" = no; then 7801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7802 hardcode_libdir_separator=: 7803 7804 case $host_cpu in 7805 hppa*64*|ia64*) 7806 hardcode_libdir_flag_spec_ld='+b $libdir' 7807 hardcode_direct=no 7808 hardcode_shlibpath_var=no 7809 ;; 7810 *) 7811 hardcode_direct=yes 7812 export_dynamic_flag_spec='${wl}-E' 7813 7814 # hardcode_minus_L: Not really in the search PATH, 7815 # but as the default location of the library. 7816 hardcode_minus_L=yes 7817 ;; 7818 esac 7819 fi 7820 ;; 7821 7822 irix5* | irix6* | nonstopux*) 7823 if test "$GCC" = yes; then 7824 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' 7825 else 7826 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' 7827 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7828 fi 7829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7830 hardcode_libdir_separator=: 7831 link_all_deplibs=yes 7832 ;; 7833 7834 netbsd*) 7835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7837 else 7838 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7839 fi 7840 hardcode_libdir_flag_spec='-R$libdir' 7841 hardcode_direct=yes 7842 hardcode_shlibpath_var=no 7843 ;; 7844 7845 newsos6) 7846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7847 hardcode_direct=yes 7848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7849 hardcode_libdir_separator=: 7850 hardcode_shlibpath_var=no 7851 ;; 7852 7853 openbsd*) 7854 hardcode_direct=yes 7855 hardcode_shlibpath_var=no 7856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7860 export_dynamic_flag_spec='${wl}-E' 7861 else 7862 case $host_os in 7863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7865 hardcode_libdir_flag_spec='-R$libdir' 7866 ;; 7867 *) 7868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7870 ;; 7871 esac 7872 fi 7873 ;; 7874 7875 os2*) 7876 hardcode_libdir_flag_spec='-L$libdir' 7877 hardcode_minus_L=yes 7878 allow_undefined_flag=unsupported 7879 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' 7880 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7881 ;; 7882 7883 osf3*) 7884 if test "$GCC" = yes; then 7885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7886 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' 7887 else 7888 allow_undefined_flag=' -expect_unresolved \*' 7889 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' 7890 fi 7891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7892 hardcode_libdir_separator=: 7893 ;; 7894 7895 osf4* | osf5*) # as osf3* with the addition of -msym flag 7896 if test "$GCC" = yes; then 7897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7898 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' 7899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7900 else 7901 allow_undefined_flag=' -expect_unresolved \*' 7902 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' 7903 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7904 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 7905 7906 # Both c and cxx compiler support -rpath directly 7907 hardcode_libdir_flag_spec='-rpath $libdir' 7908 fi 7909 hardcode_libdir_separator=: 7910 ;; 7911 7912 solaris*) 7913 no_undefined_flag=' -z text' 7914 if test "$GCC" = yes; then 7915 wlarc='${wl}' 7916 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7917 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7918 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7919 else 7920 wlarc='' 7921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7924 fi 7925 hardcode_libdir_flag_spec='-R$libdir' 7926 hardcode_shlibpath_var=no 7927 case $host_os in 7928 solaris2.[0-5] | solaris2.[0-5].*) ;; 7929 *) 7930 # The compiler driver will combine linker options so we 7931 # cannot just pass the convience library names through 7932 # without $wl, iff we do not link with $LD. 7933 # Luckily, gcc supports the same syntax we need for Sun Studio. 7934 # Supported since Solaris 2.6 (maybe 2.5.1?) 7935 case $wlarc in 7936 '') 7937 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7938 *) 7939 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 7940 esac ;; 7941 esac 7942 link_all_deplibs=yes 7943 ;; 7944 7945 sunos4*) 7946 if test "x$host_vendor" = xsequent; then 7947 # Use $CC to link under sequent, because it throws in some extra .o 7948 # files that make .init and .fini sections work. 7949 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7950 else 7951 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7952 fi 7953 hardcode_libdir_flag_spec='-L$libdir' 7954 hardcode_direct=yes 7955 hardcode_minus_L=yes 7956 hardcode_shlibpath_var=no 7957 ;; 7958 7959 sysv4) 7960 case $host_vendor in 7961 sni) 7962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7963 hardcode_direct=yes # is this really true??? 7964 ;; 7965 siemens) 7966 ## LD is ld it makes a PLAMLIB 7967 ## CC just makes a GrossModule. 7968 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7969 reload_cmds='$CC -r -o $output$reload_objs' 7970 hardcode_direct=no 7971 ;; 7972 motorola) 7973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7974 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7975 ;; 7976 esac 7977 runpath_var='LD_RUN_PATH' 7978 hardcode_shlibpath_var=no 7979 ;; 7980 7981 sysv4.3*) 7982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7983 hardcode_shlibpath_var=no 7984 export_dynamic_flag_spec='-Bexport' 7985 ;; 7986 7987 sysv4*MP*) 7988 if test -d /usr/nec; then 7989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7990 hardcode_shlibpath_var=no 7991 runpath_var=LD_RUN_PATH 7992 hardcode_runpath_var=yes 7993 ld_shlibs=yes 7994 fi 7995 ;; 7996 7997 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7998 no_undefined_flag='${wl}-z,text' 7999 archive_cmds_need_lc=no 8000 hardcode_shlibpath_var=no 8001 runpath_var='LD_RUN_PATH' 8002 8003 if test "$GCC" = yes; then 8004 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8005 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8006 else 8007 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8008 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8009 fi 8010 ;; 8011 8012 sysv5* | sco3.2v5* | sco5v6*) 8013 # Note: We can NOT use -z defs as we might desire, because we do not 8014 # link with -lc, and that would cause any symbols used from libc to 8015 # always be unresolved, which means just about no library would 8016 # ever link correctly. If we're not using GNU ld we use -z text 8017 # though, which does catch some bad symbols but isn't as heavy-handed 8018 # as -z defs. 8019 no_undefined_flag='${wl}-z,text' 8020 allow_undefined_flag='${wl}-z,nodefs' 8021 archive_cmds_need_lc=no 8022 hardcode_shlibpath_var=no 8023 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8024 hardcode_libdir_separator=':' 8025 link_all_deplibs=yes 8026 export_dynamic_flag_spec='${wl}-Bexport' 8027 runpath_var='LD_RUN_PATH' 8028 8029 if test "$GCC" = yes; then 8030 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8031 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8032 else 8033 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8034 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8035 fi 8036 ;; 8037 8038 uts4*) 8039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8040 hardcode_libdir_flag_spec='-L$libdir' 8041 hardcode_shlibpath_var=no 8042 ;; 8043 8044 *) 8045 ld_shlibs=no 8046 ;; 8047 esac 8048 fi 8049 8050echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8051echo "${ECHO_T}$ld_shlibs" >&6 8052test "$ld_shlibs" = no && can_build_shared=no 8053 8054# 8055# Do we need to explicitly link libc? 8056# 8057case "x$archive_cmds_need_lc" in 8058x|xyes) 8059 # Assume -lc should be added 8060 archive_cmds_need_lc=yes 8061 8062 if test "$enable_shared" = yes && test "$GCC" = yes; then 8063 case $archive_cmds in 8064 *'~'*) 8065 # FIXME: we may have to deal with multi-command sequences. 8066 ;; 8067 '$CC '*) 8068 # Test whether the compiler implicitly links with -lc since on some 8069 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8070 # to ld, don't add -lc before -lgcc. 8071 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8072echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8073 $rm conftest* 8074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8075 8076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8077 (eval $ac_compile) 2>&5 8078 ac_status=$? 8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8080 (exit $ac_status); } 2>conftest.err; then 8081 soname=conftest 8082 lib=conftest 8083 libobjs=conftest.$ac_objext 8084 deplibs= 8085 wl=$lt_prog_compiler_wl 8086 pic_flag=$lt_prog_compiler_pic 8087 compiler_flags=-v 8088 linker_flags=-v 8089 verstring= 8090 output_objdir=. 8091 libname=conftest 8092 lt_save_allow_undefined_flag=$allow_undefined_flag 8093 allow_undefined_flag= 8094 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8095 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8096 ac_status=$? 8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8098 (exit $ac_status); } 8099 then 8100 archive_cmds_need_lc=no 8101 else 8102 archive_cmds_need_lc=yes 8103 fi 8104 allow_undefined_flag=$lt_save_allow_undefined_flag 8105 else 8106 cat conftest.err 1>&5 8107 fi 8108 $rm conftest* 8109 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8110echo "${ECHO_T}$archive_cmds_need_lc" >&6 8111 ;; 8112 esac 8113 fi 8114 ;; 8115esac 8116 8117echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8118echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8119library_names_spec= 8120libname_spec='lib$name' 8121soname_spec= 8122shrext_cmds=".so" 8123postinstall_cmds= 8124postuninstall_cmds= 8125finish_cmds= 8126finish_eval= 8127shlibpath_var= 8128shlibpath_overrides_runpath=unknown 8129version_type=none 8130dynamic_linker="$host_os ld.so" 8131sys_lib_dlsearch_path_spec="/lib /usr/lib" 8132if test "$GCC" = yes; then 8133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8134 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8135 # if the path contains ";" then we assume it to be the separator 8136 # otherwise default to the standard path separator (i.e. ":") - it is 8137 # assumed that no part of a normal pathname contains ";" but that should 8138 # okay in the real world where ";" in dirpaths is itself problematic. 8139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8140 else 8141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8142 fi 8143else 8144 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8145fi 8146need_lib_prefix=unknown 8147hardcode_into_libs=no 8148 8149# when you set need_version to no, make sure it does not cause -set_version 8150# flags to be left without arguments 8151need_version=unknown 8152 8153case $host_os in 8154aix3*) 8155 version_type=linux 8156 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8157 shlibpath_var=LIBPATH 8158 8159 # AIX 3 has no versioning support, so we append a major version to the name. 8160 soname_spec='${libname}${release}${shared_ext}$major' 8161 ;; 8162 8163aix4* | aix5*) 8164 version_type=linux 8165 need_lib_prefix=no 8166 need_version=no 8167 hardcode_into_libs=yes 8168 if test "$host_cpu" = ia64; then 8169 # AIX 5 supports IA64 8170 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8171 shlibpath_var=LD_LIBRARY_PATH 8172 else 8173 # With GCC up to 2.95.x, collect2 would create an import file 8174 # for dependence libraries. The import file would start with 8175 # the line `#! .'. This would cause the generated library to 8176 # depend on `.', always an invalid library. This was fixed in 8177 # development snapshots of GCC prior to 3.0. 8178 case $host_os in 8179 aix4 | aix4.[01] | aix4.[01].*) 8180 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8181 echo ' yes ' 8182 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8183 : 8184 else 8185 can_build_shared=no 8186 fi 8187 ;; 8188 esac 8189 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8190 # soname into executable. Probably we can add versioning support to 8191 # collect2, so additional links can be useful in future. 8192 if test "$aix_use_runtimelinking" = yes; then 8193 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8194 # instead of lib<name>.a to let people know that these are not 8195 # typical AIX shared libraries. 8196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8197 else 8198 # We preserve .a as extension for shared libraries through AIX4.2 8199 # and later when we are not doing run time linking. 8200 library_names_spec='${libname}${release}.a $libname.a' 8201 soname_spec='${libname}${release}${shared_ext}$major' 8202 fi 8203 shlibpath_var=LIBPATH 8204 fi 8205 ;; 8206 8207amigaos*) 8208 library_names_spec='$libname.ixlibrary $libname.a' 8209 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8210 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' 8211 ;; 8212 8213beos*) 8214 library_names_spec='${libname}${shared_ext}' 8215 dynamic_linker="$host_os ld.so" 8216 shlibpath_var=LIBRARY_PATH 8217 ;; 8218 8219bsdi[45]*) 8220 version_type=linux 8221 need_version=no 8222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8223 soname_spec='${libname}${release}${shared_ext}$major' 8224 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8225 shlibpath_var=LD_LIBRARY_PATH 8226 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8227 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8228 # the default ld.so.conf also contains /usr/contrib/lib and 8229 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8230 # libtool to hard-code these into programs 8231 ;; 8232 8233cygwin* | mingw* | pw32*) 8234 version_type=windows 8235 shrext_cmds=".dll" 8236 need_version=no 8237 need_lib_prefix=no 8238 8239 case $GCC,$host_os in 8240 yes,cygwin* | yes,mingw* | yes,pw32*) 8241 library_names_spec='$libname.dll.a' 8242 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8243 postinstall_cmds='base_file=`basename \${file}`~ 8244 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8245 dldir=$destdir/`dirname \$dlpath`~ 8246 test -d \$dldir || mkdir -p \$dldir~ 8247 $install_prog $dir/$dlname \$dldir/$dlname~ 8248 chmod a+x \$dldir/$dlname' 8249 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8250 dlpath=$dir/\$dldll~ 8251 $rm \$dlpath' 8252 shlibpath_overrides_runpath=yes 8253 8254 case $host_os in 8255 cygwin*) 8256 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8257 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8258 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8259 ;; 8260 mingw*) 8261 # MinGW DLLs use traditional 'lib' prefix 8262 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8263 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8264 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8265 # It is most probably a Windows format PATH printed by 8266 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8267 # path with ; separators, and with drive letters. We can handle the 8268 # drive letters (cygwin fileutils understands them), so leave them, 8269 # especially as we might pass files found there to a mingw objdump, 8270 # which wouldn't understand a cygwinified path. Ahh. 8271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8272 else 8273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8274 fi 8275 ;; 8276 pw32*) 8277 # pw32 DLLs use 'pw' prefix rather than 'lib' 8278 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8279 ;; 8280 esac 8281 ;; 8282 8283 *) 8284 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8285 ;; 8286 esac 8287 dynamic_linker='Win32 ld.exe' 8288 # FIXME: first we should search . and the directory the executable is in 8289 shlibpath_var=PATH 8290 ;; 8291 8292darwin* | rhapsody*) 8293 dynamic_linker="$host_os dyld" 8294 version_type=darwin 8295 need_lib_prefix=no 8296 need_version=no 8297 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8298 soname_spec='${libname}${release}${major}$shared_ext' 8299 shlibpath_overrides_runpath=yes 8300 shlibpath_var=DYLD_LIBRARY_PATH 8301 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8302 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8303 if test "$GCC" = yes; then 8304 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"` 8305 else 8306 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8307 fi 8308 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8309 ;; 8310 8311dgux*) 8312 version_type=linux 8313 need_lib_prefix=no 8314 need_version=no 8315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8316 soname_spec='${libname}${release}${shared_ext}$major' 8317 shlibpath_var=LD_LIBRARY_PATH 8318 ;; 8319 8320freebsd1*) 8321 dynamic_linker=no 8322 ;; 8323 8324kfreebsd*-gnu) 8325 version_type=linux 8326 need_lib_prefix=no 8327 need_version=no 8328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8329 soname_spec='${libname}${release}${shared_ext}$major' 8330 shlibpath_var=LD_LIBRARY_PATH 8331 shlibpath_overrides_runpath=no 8332 hardcode_into_libs=yes 8333 dynamic_linker='GNU ld.so' 8334 ;; 8335 8336freebsd* | dragonfly*) 8337 # DragonFly does not have aout. When/if they implement a new 8338 # versioning mechanism, adjust this. 8339 if test -x /usr/bin/objformat; then 8340 objformat=`/usr/bin/objformat` 8341 else 8342 case $host_os in 8343 freebsd[123]*) objformat=aout ;; 8344 *) objformat=elf ;; 8345 esac 8346 fi 8347 version_type=freebsd-$objformat 8348 case $version_type in 8349 freebsd-elf*) 8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8351 need_version=no 8352 need_lib_prefix=no 8353 ;; 8354 freebsd-*) 8355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8356 need_version=yes 8357 ;; 8358 esac 8359 shlibpath_var=LD_LIBRARY_PATH 8360 case $host_os in 8361 freebsd2*) 8362 shlibpath_overrides_runpath=yes 8363 ;; 8364 freebsd3.[01]* | freebsdelf3.[01]*) 8365 shlibpath_overrides_runpath=yes 8366 hardcode_into_libs=yes 8367 ;; 8368 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8369 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8370 shlibpath_overrides_runpath=no 8371 hardcode_into_libs=yes 8372 ;; 8373 freebsd*) # from 4.6 on 8374 shlibpath_overrides_runpath=yes 8375 hardcode_into_libs=yes 8376 ;; 8377 esac 8378 ;; 8379 8380gnu*) 8381 version_type=linux 8382 need_lib_prefix=no 8383 need_version=no 8384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8385 soname_spec='${libname}${release}${shared_ext}$major' 8386 shlibpath_var=LD_LIBRARY_PATH 8387 hardcode_into_libs=yes 8388 ;; 8389 8390hpux9* | hpux10* | hpux11*) 8391 # Give a soname corresponding to the major version so that dld.sl refuses to 8392 # link against other versions. 8393 version_type=sunos 8394 need_lib_prefix=no 8395 need_version=no 8396 case $host_cpu in 8397 ia64*) 8398 shrext_cmds='.so' 8399 hardcode_into_libs=yes 8400 dynamic_linker="$host_os dld.so" 8401 shlibpath_var=LD_LIBRARY_PATH 8402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8404 soname_spec='${libname}${release}${shared_ext}$major' 8405 if test "X$HPUX_IA64_MODE" = X32; then 8406 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8407 else 8408 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8409 fi 8410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8411 ;; 8412 hppa*64*) 8413 shrext_cmds='.sl' 8414 hardcode_into_libs=yes 8415 dynamic_linker="$host_os dld.sl" 8416 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8419 soname_spec='${libname}${release}${shared_ext}$major' 8420 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8422 ;; 8423 *) 8424 shrext_cmds='.sl' 8425 dynamic_linker="$host_os dld.sl" 8426 shlibpath_var=SHLIB_PATH 8427 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8429 soname_spec='${libname}${release}${shared_ext}$major' 8430 ;; 8431 esac 8432 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8433 postinstall_cmds='chmod 555 $lib' 8434 ;; 8435 8436interix3*) 8437 version_type=linux 8438 need_lib_prefix=no 8439 need_version=no 8440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8441 soname_spec='${libname}${release}${shared_ext}$major' 8442 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8443 shlibpath_var=LD_LIBRARY_PATH 8444 shlibpath_overrides_runpath=no 8445 hardcode_into_libs=yes 8446 ;; 8447 8448irix5* | irix6* | nonstopux*) 8449 case $host_os in 8450 nonstopux*) version_type=nonstopux ;; 8451 *) 8452 if test "$lt_cv_prog_gnu_ld" = yes; then 8453 version_type=linux 8454 else 8455 version_type=irix 8456 fi ;; 8457 esac 8458 need_lib_prefix=no 8459 need_version=no 8460 soname_spec='${libname}${release}${shared_ext}$major' 8461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8462 case $host_os in 8463 irix5* | nonstopux*) 8464 libsuff= shlibsuff= 8465 ;; 8466 *) 8467 case $LD in # libtool.m4 will add one of these switches to LD 8468 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8469 libsuff= shlibsuff= libmagic=32-bit;; 8470 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8471 libsuff=32 shlibsuff=N32 libmagic=N32;; 8472 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8473 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8474 *) libsuff= shlibsuff= libmagic=never-match;; 8475 esac 8476 ;; 8477 esac 8478 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8479 shlibpath_overrides_runpath=no 8480 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8481 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8482 hardcode_into_libs=yes 8483 ;; 8484 8485# No shared lib support for Linux oldld, aout, or coff. 8486linux*oldld* | linux*aout* | linux*coff*) 8487 dynamic_linker=no 8488 ;; 8489 8490# This must be Linux ELF. 8491linux*) 8492 version_type=linux 8493 need_lib_prefix=no 8494 need_version=no 8495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8496 soname_spec='${libname}${release}${shared_ext}$major' 8497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8498 shlibpath_var=LD_LIBRARY_PATH 8499 shlibpath_overrides_runpath=no 8500 # This implies no fast_install, which is unacceptable. 8501 # Some rework will be needed to allow for fast_install 8502 # before this can be enabled. 8503 hardcode_into_libs=yes 8504 8505 # Append ld.so.conf contents to the search path 8506 if test -f /etc/ld.so.conf; then 8507 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8508 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8509 fi 8510 8511 # We used to test for /lib/ld.so.1 and disable shared libraries on 8512 # powerpc, because MkLinux only supported shared libraries with the 8513 # GNU dynamic linker. Since this was broken with cross compilers, 8514 # most powerpc-linux boxes support dynamic linking these days and 8515 # people can always --disable-shared, the test was removed, and we 8516 # assume the GNU/Linux dynamic linker is in use. 8517 dynamic_linker='GNU/Linux ld.so' 8518 ;; 8519 8520knetbsd*-gnu) 8521 version_type=linux 8522 need_lib_prefix=no 8523 need_version=no 8524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8525 soname_spec='${libname}${release}${shared_ext}$major' 8526 shlibpath_var=LD_LIBRARY_PATH 8527 shlibpath_overrides_runpath=no 8528 hardcode_into_libs=yes 8529 dynamic_linker='GNU ld.so' 8530 ;; 8531 8532netbsd*) 8533 version_type=sunos 8534 need_lib_prefix=no 8535 need_version=no 8536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8539 dynamic_linker='NetBSD (a.out) ld.so' 8540 else 8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8542 soname_spec='${libname}${release}${shared_ext}$major' 8543 dynamic_linker='NetBSD ld.elf_so' 8544 fi 8545 shlibpath_var=LD_LIBRARY_PATH 8546 shlibpath_overrides_runpath=yes 8547 hardcode_into_libs=yes 8548 ;; 8549 8550newsos6) 8551 version_type=linux 8552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8553 shlibpath_var=LD_LIBRARY_PATH 8554 shlibpath_overrides_runpath=yes 8555 ;; 8556 8557nto-qnx*) 8558 version_type=linux 8559 need_lib_prefix=no 8560 need_version=no 8561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8562 soname_spec='${libname}${release}${shared_ext}$major' 8563 shlibpath_var=LD_LIBRARY_PATH 8564 shlibpath_overrides_runpath=yes 8565 ;; 8566 8567openbsd*) 8568 version_type=sunos 8569 sys_lib_dlsearch_path_spec="/usr/lib" 8570 need_lib_prefix=no 8571 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8572 case $host_os in 8573 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8574 *) need_version=no ;; 8575 esac 8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8578 shlibpath_var=LD_LIBRARY_PATH 8579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8580 case $host_os in 8581 openbsd2.[89] | openbsd2.[89].*) 8582 shlibpath_overrides_runpath=no 8583 ;; 8584 *) 8585 shlibpath_overrides_runpath=yes 8586 ;; 8587 esac 8588 else 8589 shlibpath_overrides_runpath=yes 8590 fi 8591 ;; 8592 8593os2*) 8594 libname_spec='$name' 8595 shrext_cmds=".dll" 8596 need_lib_prefix=no 8597 library_names_spec='$libname${shared_ext} $libname.a' 8598 dynamic_linker='OS/2 ld.exe' 8599 shlibpath_var=LIBPATH 8600 ;; 8601 8602osf3* | osf4* | osf5*) 8603 version_type=osf 8604 need_lib_prefix=no 8605 need_version=no 8606 soname_spec='${libname}${release}${shared_ext}$major' 8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8608 shlibpath_var=LD_LIBRARY_PATH 8609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8611 ;; 8612 8613solaris*) 8614 version_type=linux 8615 need_lib_prefix=no 8616 need_version=no 8617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8618 soname_spec='${libname}${release}${shared_ext}$major' 8619 shlibpath_var=LD_LIBRARY_PATH 8620 shlibpath_overrides_runpath=yes 8621 hardcode_into_libs=yes 8622 # ldd complains unless libraries are executable 8623 postinstall_cmds='chmod +x $lib' 8624 ;; 8625 8626sunos4*) 8627 version_type=sunos 8628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8629 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8630 shlibpath_var=LD_LIBRARY_PATH 8631 shlibpath_overrides_runpath=yes 8632 if test "$with_gnu_ld" = yes; then 8633 need_lib_prefix=no 8634 fi 8635 need_version=yes 8636 ;; 8637 8638sysv4 | sysv4.3*) 8639 version_type=linux 8640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8641 soname_spec='${libname}${release}${shared_ext}$major' 8642 shlibpath_var=LD_LIBRARY_PATH 8643 case $host_vendor in 8644 sni) 8645 shlibpath_overrides_runpath=no 8646 need_lib_prefix=no 8647 export_dynamic_flag_spec='${wl}-Blargedynsym' 8648 runpath_var=LD_RUN_PATH 8649 ;; 8650 siemens) 8651 need_lib_prefix=no 8652 ;; 8653 motorola) 8654 need_lib_prefix=no 8655 need_version=no 8656 shlibpath_overrides_runpath=no 8657 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8658 ;; 8659 esac 8660 ;; 8661 8662sysv4*MP*) 8663 if test -d /usr/nec ;then 8664 version_type=linux 8665 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8666 soname_spec='$libname${shared_ext}.$major' 8667 shlibpath_var=LD_LIBRARY_PATH 8668 fi 8669 ;; 8670 8671sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8672 version_type=freebsd-elf 8673 need_lib_prefix=no 8674 need_version=no 8675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8676 soname_spec='${libname}${release}${shared_ext}$major' 8677 shlibpath_var=LD_LIBRARY_PATH 8678 hardcode_into_libs=yes 8679 if test "$with_gnu_ld" = yes; then 8680 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8681 shlibpath_overrides_runpath=no 8682 else 8683 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8684 shlibpath_overrides_runpath=yes 8685 case $host_os in 8686 sco3.2v5*) 8687 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8688 ;; 8689 esac 8690 fi 8691 sys_lib_dlsearch_path_spec='/usr/lib' 8692 ;; 8693 8694uts4*) 8695 version_type=linux 8696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8697 soname_spec='${libname}${release}${shared_ext}$major' 8698 shlibpath_var=LD_LIBRARY_PATH 8699 ;; 8700 8701*) 8702 dynamic_linker=no 8703 ;; 8704esac 8705echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8706echo "${ECHO_T}$dynamic_linker" >&6 8707test "$dynamic_linker" = no && can_build_shared=no 8708 8709variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8710if test "$GCC" = yes; then 8711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8712fi 8713 8714echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8715echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8716hardcode_action= 8717if test -n "$hardcode_libdir_flag_spec" || \ 8718 test -n "$runpath_var" || \ 8719 test "X$hardcode_automatic" = "Xyes" ; then 8720 8721 # We can hardcode non-existant directories. 8722 if test "$hardcode_direct" != no && 8723 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8724 # have to relink, otherwise we might link with an installed library 8725 # when we should be linking with a yet-to-be-installed one 8726 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8727 test "$hardcode_minus_L" != no; then 8728 # Linking always hardcodes the temporary library directory. 8729 hardcode_action=relink 8730 else 8731 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8732 hardcode_action=immediate 8733 fi 8734else 8735 # We cannot hardcode anything, or else we can only hardcode existing 8736 # directories. 8737 hardcode_action=unsupported 8738fi 8739echo "$as_me:$LINENO: result: $hardcode_action" >&5 8740echo "${ECHO_T}$hardcode_action" >&6 8741 8742if test "$hardcode_action" = relink; then 8743 # Fast installation is not supported 8744 enable_fast_install=no 8745elif test "$shlibpath_overrides_runpath" = yes || 8746 test "$enable_shared" = no; then 8747 # Fast installation is not necessary 8748 enable_fast_install=needless 8749fi 8750 8751striplib= 8752old_striplib= 8753echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8754echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8755if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8756 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8757 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8758 echo "$as_me:$LINENO: result: yes" >&5 8759echo "${ECHO_T}yes" >&6 8760else 8761# FIXME - insert some real tests, host_os isn't really good enough 8762 case $host_os in 8763 darwin*) 8764 if test -n "$STRIP" ; then 8765 striplib="$STRIP -x" 8766 echo "$as_me:$LINENO: result: yes" >&5 8767echo "${ECHO_T}yes" >&6 8768 else 8769 echo "$as_me:$LINENO: result: no" >&5 8770echo "${ECHO_T}no" >&6 8771fi 8772 ;; 8773 *) 8774 echo "$as_me:$LINENO: result: no" >&5 8775echo "${ECHO_T}no" >&6 8776 ;; 8777 esac 8778fi 8779 8780if test "x$enable_dlopen" != xyes; then 8781 enable_dlopen=unknown 8782 enable_dlopen_self=unknown 8783 enable_dlopen_self_static=unknown 8784else 8785 lt_cv_dlopen=no 8786 lt_cv_dlopen_libs= 8787 8788 case $host_os in 8789 beos*) 8790 lt_cv_dlopen="load_add_on" 8791 lt_cv_dlopen_libs= 8792 lt_cv_dlopen_self=yes 8793 ;; 8794 8795 mingw* | pw32*) 8796 lt_cv_dlopen="LoadLibrary" 8797 lt_cv_dlopen_libs= 8798 ;; 8799 8800 cygwin*) 8801 lt_cv_dlopen="dlopen" 8802 lt_cv_dlopen_libs= 8803 ;; 8804 8805 darwin*) 8806 # if libdl is installed we need to link against it 8807 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8808echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8809if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8810 echo $ECHO_N "(cached) $ECHO_C" >&6 8811else 8812 ac_check_lib_save_LIBS=$LIBS 8813LIBS="-ldl $LIBS" 8814cat >conftest.$ac_ext <<_ACEOF 8815/* confdefs.h. */ 8816_ACEOF 8817cat confdefs.h >>conftest.$ac_ext 8818cat >>conftest.$ac_ext <<_ACEOF 8819/* end confdefs.h. */ 8820 8821/* Override any gcc2 internal prototype to avoid an error. */ 8822#ifdef __cplusplus 8823extern "C" 8824#endif 8825/* We use char because int might match the return type of a gcc2 8826 builtin and then its argument prototype would still apply. */ 8827char dlopen (); 8828int 8829main () 8830{ 8831dlopen (); 8832 ; 8833 return 0; 8834} 8835_ACEOF 8836rm -f conftest.$ac_objext conftest$ac_exeext 8837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8838 (eval $ac_link) 2>conftest.er1 8839 ac_status=$? 8840 grep -v '^ *+' conftest.er1 >conftest.err 8841 rm -f conftest.er1 8842 cat conftest.err >&5 8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8844 (exit $ac_status); } && 8845 { ac_try='test -z "$ac_c_werror_flag" 8846 || test ! -s conftest.err' 8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8848 (eval $ac_try) 2>&5 8849 ac_status=$? 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 (exit $ac_status); }; } && 8852 { ac_try='test -s conftest$ac_exeext' 8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8854 (eval $ac_try) 2>&5 8855 ac_status=$? 8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8857 (exit $ac_status); }; }; then 8858 ac_cv_lib_dl_dlopen=yes 8859else 8860 echo "$as_me: failed program was:" >&5 8861sed 's/^/| /' conftest.$ac_ext >&5 8862 8863ac_cv_lib_dl_dlopen=no 8864fi 8865rm -f conftest.err conftest.$ac_objext \ 8866 conftest$ac_exeext conftest.$ac_ext 8867LIBS=$ac_check_lib_save_LIBS 8868fi 8869echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8870echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8871if test $ac_cv_lib_dl_dlopen = yes; then 8872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8873else 8874 8875 lt_cv_dlopen="dyld" 8876 lt_cv_dlopen_libs= 8877 lt_cv_dlopen_self=yes 8878 8879fi 8880 8881 ;; 8882 8883 *) 8884 echo "$as_me:$LINENO: checking for shl_load" >&5 8885echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8886if test "${ac_cv_func_shl_load+set}" = set; then 8887 echo $ECHO_N "(cached) $ECHO_C" >&6 8888else 8889 cat >conftest.$ac_ext <<_ACEOF 8890/* confdefs.h. */ 8891_ACEOF 8892cat confdefs.h >>conftest.$ac_ext 8893cat >>conftest.$ac_ext <<_ACEOF 8894/* end confdefs.h. */ 8895/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8896 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8897#define shl_load innocuous_shl_load 8898 8899/* System header to define __stub macros and hopefully few prototypes, 8900 which can conflict with char shl_load (); below. 8901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8902 <limits.h> exists even on freestanding compilers. */ 8903 8904#ifdef __STDC__ 8905# include <limits.h> 8906#else 8907# include <assert.h> 8908#endif 8909 8910#undef shl_load 8911 8912/* Override any gcc2 internal prototype to avoid an error. */ 8913#ifdef __cplusplus 8914extern "C" 8915{ 8916#endif 8917/* We use char because int might match the return type of a gcc2 8918 builtin and then its argument prototype would still apply. */ 8919char shl_load (); 8920/* The GNU C library defines this for functions which it implements 8921 to always fail with ENOSYS. Some functions are actually named 8922 something starting with __ and the normal name is an alias. */ 8923#if defined (__stub_shl_load) || defined (__stub___shl_load) 8924choke me 8925#else 8926char (*f) () = shl_load; 8927#endif 8928#ifdef __cplusplus 8929} 8930#endif 8931 8932int 8933main () 8934{ 8935return f != shl_load; 8936 ; 8937 return 0; 8938} 8939_ACEOF 8940rm -f conftest.$ac_objext conftest$ac_exeext 8941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8942 (eval $ac_link) 2>conftest.er1 8943 ac_status=$? 8944 grep -v '^ *+' conftest.er1 >conftest.err 8945 rm -f conftest.er1 8946 cat conftest.err >&5 8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8948 (exit $ac_status); } && 8949 { ac_try='test -z "$ac_c_werror_flag" 8950 || test ! -s conftest.err' 8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8952 (eval $ac_try) 2>&5 8953 ac_status=$? 8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8955 (exit $ac_status); }; } && 8956 { ac_try='test -s conftest$ac_exeext' 8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8958 (eval $ac_try) 2>&5 8959 ac_status=$? 8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8961 (exit $ac_status); }; }; then 8962 ac_cv_func_shl_load=yes 8963else 8964 echo "$as_me: failed program was:" >&5 8965sed 's/^/| /' conftest.$ac_ext >&5 8966 8967ac_cv_func_shl_load=no 8968fi 8969rm -f conftest.err conftest.$ac_objext \ 8970 conftest$ac_exeext conftest.$ac_ext 8971fi 8972echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8973echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8974if test $ac_cv_func_shl_load = yes; then 8975 lt_cv_dlopen="shl_load" 8976else 8977 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8978echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8979if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8980 echo $ECHO_N "(cached) $ECHO_C" >&6 8981else 8982 ac_check_lib_save_LIBS=$LIBS 8983LIBS="-ldld $LIBS" 8984cat >conftest.$ac_ext <<_ACEOF 8985/* confdefs.h. */ 8986_ACEOF 8987cat confdefs.h >>conftest.$ac_ext 8988cat >>conftest.$ac_ext <<_ACEOF 8989/* end confdefs.h. */ 8990 8991/* Override any gcc2 internal prototype to avoid an error. */ 8992#ifdef __cplusplus 8993extern "C" 8994#endif 8995/* We use char because int might match the return type of a gcc2 8996 builtin and then its argument prototype would still apply. */ 8997char shl_load (); 8998int 8999main () 9000{ 9001shl_load (); 9002 ; 9003 return 0; 9004} 9005_ACEOF 9006rm -f conftest.$ac_objext conftest$ac_exeext 9007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9008 (eval $ac_link) 2>conftest.er1 9009 ac_status=$? 9010 grep -v '^ *+' conftest.er1 >conftest.err 9011 rm -f conftest.er1 9012 cat conftest.err >&5 9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9014 (exit $ac_status); } && 9015 { ac_try='test -z "$ac_c_werror_flag" 9016 || test ! -s conftest.err' 9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9018 (eval $ac_try) 2>&5 9019 ac_status=$? 9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9021 (exit $ac_status); }; } && 9022 { ac_try='test -s conftest$ac_exeext' 9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9024 (eval $ac_try) 2>&5 9025 ac_status=$? 9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9027 (exit $ac_status); }; }; then 9028 ac_cv_lib_dld_shl_load=yes 9029else 9030 echo "$as_me: failed program was:" >&5 9031sed 's/^/| /' conftest.$ac_ext >&5 9032 9033ac_cv_lib_dld_shl_load=no 9034fi 9035rm -f conftest.err conftest.$ac_objext \ 9036 conftest$ac_exeext conftest.$ac_ext 9037LIBS=$ac_check_lib_save_LIBS 9038fi 9039echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9040echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9041if test $ac_cv_lib_dld_shl_load = yes; then 9042 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9043else 9044 echo "$as_me:$LINENO: checking for dlopen" >&5 9045echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9046if test "${ac_cv_func_dlopen+set}" = set; then 9047 echo $ECHO_N "(cached) $ECHO_C" >&6 9048else 9049 cat >conftest.$ac_ext <<_ACEOF 9050/* confdefs.h. */ 9051_ACEOF 9052cat confdefs.h >>conftest.$ac_ext 9053cat >>conftest.$ac_ext <<_ACEOF 9054/* end confdefs.h. */ 9055/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9056 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9057#define dlopen innocuous_dlopen 9058 9059/* System header to define __stub macros and hopefully few prototypes, 9060 which can conflict with char dlopen (); below. 9061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9062 <limits.h> exists even on freestanding compilers. */ 9063 9064#ifdef __STDC__ 9065# include <limits.h> 9066#else 9067# include <assert.h> 9068#endif 9069 9070#undef dlopen 9071 9072/* Override any gcc2 internal prototype to avoid an error. */ 9073#ifdef __cplusplus 9074extern "C" 9075{ 9076#endif 9077/* We use char because int might match the return type of a gcc2 9078 builtin and then its argument prototype would still apply. */ 9079char dlopen (); 9080/* The GNU C library defines this for functions which it implements 9081 to always fail with ENOSYS. Some functions are actually named 9082 something starting with __ and the normal name is an alias. */ 9083#if defined (__stub_dlopen) || defined (__stub___dlopen) 9084choke me 9085#else 9086char (*f) () = dlopen; 9087#endif 9088#ifdef __cplusplus 9089} 9090#endif 9091 9092int 9093main () 9094{ 9095return f != dlopen; 9096 ; 9097 return 0; 9098} 9099_ACEOF 9100rm -f conftest.$ac_objext conftest$ac_exeext 9101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9102 (eval $ac_link) 2>conftest.er1 9103 ac_status=$? 9104 grep -v '^ *+' conftest.er1 >conftest.err 9105 rm -f conftest.er1 9106 cat conftest.err >&5 9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9108 (exit $ac_status); } && 9109 { ac_try='test -z "$ac_c_werror_flag" 9110 || test ! -s conftest.err' 9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9112 (eval $ac_try) 2>&5 9113 ac_status=$? 9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9115 (exit $ac_status); }; } && 9116 { ac_try='test -s conftest$ac_exeext' 9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9118 (eval $ac_try) 2>&5 9119 ac_status=$? 9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9121 (exit $ac_status); }; }; then 9122 ac_cv_func_dlopen=yes 9123else 9124 echo "$as_me: failed program was:" >&5 9125sed 's/^/| /' conftest.$ac_ext >&5 9126 9127ac_cv_func_dlopen=no 9128fi 9129rm -f conftest.err conftest.$ac_objext \ 9130 conftest$ac_exeext conftest.$ac_ext 9131fi 9132echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9133echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9134if test $ac_cv_func_dlopen = yes; then 9135 lt_cv_dlopen="dlopen" 9136else 9137 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9138echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9139if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9140 echo $ECHO_N "(cached) $ECHO_C" >&6 9141else 9142 ac_check_lib_save_LIBS=$LIBS 9143LIBS="-ldl $LIBS" 9144cat >conftest.$ac_ext <<_ACEOF 9145/* confdefs.h. */ 9146_ACEOF 9147cat confdefs.h >>conftest.$ac_ext 9148cat >>conftest.$ac_ext <<_ACEOF 9149/* end confdefs.h. */ 9150 9151/* Override any gcc2 internal prototype to avoid an error. */ 9152#ifdef __cplusplus 9153extern "C" 9154#endif 9155/* We use char because int might match the return type of a gcc2 9156 builtin and then its argument prototype would still apply. */ 9157char dlopen (); 9158int 9159main () 9160{ 9161dlopen (); 9162 ; 9163 return 0; 9164} 9165_ACEOF 9166rm -f conftest.$ac_objext conftest$ac_exeext 9167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9168 (eval $ac_link) 2>conftest.er1 9169 ac_status=$? 9170 grep -v '^ *+' conftest.er1 >conftest.err 9171 rm -f conftest.er1 9172 cat conftest.err >&5 9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9174 (exit $ac_status); } && 9175 { ac_try='test -z "$ac_c_werror_flag" 9176 || test ! -s conftest.err' 9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9178 (eval $ac_try) 2>&5 9179 ac_status=$? 9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9181 (exit $ac_status); }; } && 9182 { ac_try='test -s conftest$ac_exeext' 9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9184 (eval $ac_try) 2>&5 9185 ac_status=$? 9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9187 (exit $ac_status); }; }; then 9188 ac_cv_lib_dl_dlopen=yes 9189else 9190 echo "$as_me: failed program was:" >&5 9191sed 's/^/| /' conftest.$ac_ext >&5 9192 9193ac_cv_lib_dl_dlopen=no 9194fi 9195rm -f conftest.err conftest.$ac_objext \ 9196 conftest$ac_exeext conftest.$ac_ext 9197LIBS=$ac_check_lib_save_LIBS 9198fi 9199echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9200echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9201if test $ac_cv_lib_dl_dlopen = yes; then 9202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9203else 9204 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9205echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9206if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9207 echo $ECHO_N "(cached) $ECHO_C" >&6 9208else 9209 ac_check_lib_save_LIBS=$LIBS 9210LIBS="-lsvld $LIBS" 9211cat >conftest.$ac_ext <<_ACEOF 9212/* confdefs.h. */ 9213_ACEOF 9214cat confdefs.h >>conftest.$ac_ext 9215cat >>conftest.$ac_ext <<_ACEOF 9216/* end confdefs.h. */ 9217 9218/* Override any gcc2 internal prototype to avoid an error. */ 9219#ifdef __cplusplus 9220extern "C" 9221#endif 9222/* We use char because int might match the return type of a gcc2 9223 builtin and then its argument prototype would still apply. */ 9224char dlopen (); 9225int 9226main () 9227{ 9228dlopen (); 9229 ; 9230 return 0; 9231} 9232_ACEOF 9233rm -f conftest.$ac_objext conftest$ac_exeext 9234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9235 (eval $ac_link) 2>conftest.er1 9236 ac_status=$? 9237 grep -v '^ *+' conftest.er1 >conftest.err 9238 rm -f conftest.er1 9239 cat conftest.err >&5 9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9241 (exit $ac_status); } && 9242 { ac_try='test -z "$ac_c_werror_flag" 9243 || test ! -s conftest.err' 9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9245 (eval $ac_try) 2>&5 9246 ac_status=$? 9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9248 (exit $ac_status); }; } && 9249 { ac_try='test -s conftest$ac_exeext' 9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9251 (eval $ac_try) 2>&5 9252 ac_status=$? 9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9254 (exit $ac_status); }; }; then 9255 ac_cv_lib_svld_dlopen=yes 9256else 9257 echo "$as_me: failed program was:" >&5 9258sed 's/^/| /' conftest.$ac_ext >&5 9259 9260ac_cv_lib_svld_dlopen=no 9261fi 9262rm -f conftest.err conftest.$ac_objext \ 9263 conftest$ac_exeext conftest.$ac_ext 9264LIBS=$ac_check_lib_save_LIBS 9265fi 9266echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9267echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9268if test $ac_cv_lib_svld_dlopen = yes; then 9269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9270else 9271 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9272echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9273if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9274 echo $ECHO_N "(cached) $ECHO_C" >&6 9275else 9276 ac_check_lib_save_LIBS=$LIBS 9277LIBS="-ldld $LIBS" 9278cat >conftest.$ac_ext <<_ACEOF 9279/* confdefs.h. */ 9280_ACEOF 9281cat confdefs.h >>conftest.$ac_ext 9282cat >>conftest.$ac_ext <<_ACEOF 9283/* end confdefs.h. */ 9284 9285/* Override any gcc2 internal prototype to avoid an error. */ 9286#ifdef __cplusplus 9287extern "C" 9288#endif 9289/* We use char because int might match the return type of a gcc2 9290 builtin and then its argument prototype would still apply. */ 9291char dld_link (); 9292int 9293main () 9294{ 9295dld_link (); 9296 ; 9297 return 0; 9298} 9299_ACEOF 9300rm -f conftest.$ac_objext conftest$ac_exeext 9301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9302 (eval $ac_link) 2>conftest.er1 9303 ac_status=$? 9304 grep -v '^ *+' conftest.er1 >conftest.err 9305 rm -f conftest.er1 9306 cat conftest.err >&5 9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9308 (exit $ac_status); } && 9309 { ac_try='test -z "$ac_c_werror_flag" 9310 || test ! -s conftest.err' 9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9312 (eval $ac_try) 2>&5 9313 ac_status=$? 9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9315 (exit $ac_status); }; } && 9316 { ac_try='test -s conftest$ac_exeext' 9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9318 (eval $ac_try) 2>&5 9319 ac_status=$? 9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9321 (exit $ac_status); }; }; then 9322 ac_cv_lib_dld_dld_link=yes 9323else 9324 echo "$as_me: failed program was:" >&5 9325sed 's/^/| /' conftest.$ac_ext >&5 9326 9327ac_cv_lib_dld_dld_link=no 9328fi 9329rm -f conftest.err conftest.$ac_objext \ 9330 conftest$ac_exeext conftest.$ac_ext 9331LIBS=$ac_check_lib_save_LIBS 9332fi 9333echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9334echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9335if test $ac_cv_lib_dld_dld_link = yes; then 9336 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9337fi 9338 9339 9340fi 9341 9342 9343fi 9344 9345 9346fi 9347 9348 9349fi 9350 9351 9352fi 9353 9354 ;; 9355 esac 9356 9357 if test "x$lt_cv_dlopen" != xno; then 9358 enable_dlopen=yes 9359 else 9360 enable_dlopen=no 9361 fi 9362 9363 case $lt_cv_dlopen in 9364 dlopen) 9365 save_CPPFLAGS="$CPPFLAGS" 9366 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9367 9368 save_LDFLAGS="$LDFLAGS" 9369 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9370 9371 save_LIBS="$LIBS" 9372 LIBS="$lt_cv_dlopen_libs $LIBS" 9373 9374 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9375echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9376if test "${lt_cv_dlopen_self+set}" = set; then 9377 echo $ECHO_N "(cached) $ECHO_C" >&6 9378else 9379 if test "$cross_compiling" = yes; then : 9380 lt_cv_dlopen_self=cross 9381else 9382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9383 lt_status=$lt_dlunknown 9384 cat > conftest.$ac_ext <<EOF 9385#line 9385 "configure" 9386#include "confdefs.h" 9387 9388#if HAVE_DLFCN_H 9389#include <dlfcn.h> 9390#endif 9391 9392#include <stdio.h> 9393 9394#ifdef RTLD_GLOBAL 9395# define LT_DLGLOBAL RTLD_GLOBAL 9396#else 9397# ifdef DL_GLOBAL 9398# define LT_DLGLOBAL DL_GLOBAL 9399# else 9400# define LT_DLGLOBAL 0 9401# endif 9402#endif 9403 9404/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9405 find out it does not work in some platform. */ 9406#ifndef LT_DLLAZY_OR_NOW 9407# ifdef RTLD_LAZY 9408# define LT_DLLAZY_OR_NOW RTLD_LAZY 9409# else 9410# ifdef DL_LAZY 9411# define LT_DLLAZY_OR_NOW DL_LAZY 9412# else 9413# ifdef RTLD_NOW 9414# define LT_DLLAZY_OR_NOW RTLD_NOW 9415# else 9416# ifdef DL_NOW 9417# define LT_DLLAZY_OR_NOW DL_NOW 9418# else 9419# define LT_DLLAZY_OR_NOW 0 9420# endif 9421# endif 9422# endif 9423# endif 9424#endif 9425 9426#ifdef __cplusplus 9427extern "C" void exit (int); 9428#endif 9429 9430void fnord() { int i=42;} 9431int main () 9432{ 9433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9434 int status = $lt_dlunknown; 9435 9436 if (self) 9437 { 9438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9439 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9440 /* dlclose (self); */ 9441 } 9442 else 9443 puts (dlerror ()); 9444 9445 exit (status); 9446} 9447EOF 9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9449 (eval $ac_link) 2>&5 9450 ac_status=$? 9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9452 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9453 (./conftest; exit; ) >&5 2>/dev/null 9454 lt_status=$? 9455 case x$lt_status in 9456 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9457 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9458 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9459 esac 9460 else : 9461 # compilation failed 9462 lt_cv_dlopen_self=no 9463 fi 9464fi 9465rm -fr conftest* 9466 9467 9468fi 9469echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9470echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9471 9472 if test "x$lt_cv_dlopen_self" = xyes; then 9473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9474 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9475echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9476if test "${lt_cv_dlopen_self_static+set}" = set; then 9477 echo $ECHO_N "(cached) $ECHO_C" >&6 9478else 9479 if test "$cross_compiling" = yes; then : 9480 lt_cv_dlopen_self_static=cross 9481else 9482 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9483 lt_status=$lt_dlunknown 9484 cat > conftest.$ac_ext <<EOF 9485#line 9485 "configure" 9486#include "confdefs.h" 9487 9488#if HAVE_DLFCN_H 9489#include <dlfcn.h> 9490#endif 9491 9492#include <stdio.h> 9493 9494#ifdef RTLD_GLOBAL 9495# define LT_DLGLOBAL RTLD_GLOBAL 9496#else 9497# ifdef DL_GLOBAL 9498# define LT_DLGLOBAL DL_GLOBAL 9499# else 9500# define LT_DLGLOBAL 0 9501# endif 9502#endif 9503 9504/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9505 find out it does not work in some platform. */ 9506#ifndef LT_DLLAZY_OR_NOW 9507# ifdef RTLD_LAZY 9508# define LT_DLLAZY_OR_NOW RTLD_LAZY 9509# else 9510# ifdef DL_LAZY 9511# define LT_DLLAZY_OR_NOW DL_LAZY 9512# else 9513# ifdef RTLD_NOW 9514# define LT_DLLAZY_OR_NOW RTLD_NOW 9515# else 9516# ifdef DL_NOW 9517# define LT_DLLAZY_OR_NOW DL_NOW 9518# else 9519# define LT_DLLAZY_OR_NOW 0 9520# endif 9521# endif 9522# endif 9523# endif 9524#endif 9525 9526#ifdef __cplusplus 9527extern "C" void exit (int); 9528#endif 9529 9530void fnord() { int i=42;} 9531int main () 9532{ 9533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9534 int status = $lt_dlunknown; 9535 9536 if (self) 9537 { 9538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9539 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9540 /* dlclose (self); */ 9541 } 9542 else 9543 puts (dlerror ()); 9544 9545 exit (status); 9546} 9547EOF 9548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9549 (eval $ac_link) 2>&5 9550 ac_status=$? 9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9553 (./conftest; exit; ) >&5 2>/dev/null 9554 lt_status=$? 9555 case x$lt_status in 9556 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9557 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9558 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9559 esac 9560 else : 9561 # compilation failed 9562 lt_cv_dlopen_self_static=no 9563 fi 9564fi 9565rm -fr conftest* 9566 9567 9568fi 9569echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9570echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9571 fi 9572 9573 CPPFLAGS="$save_CPPFLAGS" 9574 LDFLAGS="$save_LDFLAGS" 9575 LIBS="$save_LIBS" 9576 ;; 9577 esac 9578 9579 case $lt_cv_dlopen_self in 9580 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9581 *) enable_dlopen_self=unknown ;; 9582 esac 9583 9584 case $lt_cv_dlopen_self_static in 9585 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9586 *) enable_dlopen_self_static=unknown ;; 9587 esac 9588fi 9589 9590 9591# Report which library types will actually be built 9592echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9593echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9594echo "$as_me:$LINENO: result: $can_build_shared" >&5 9595echo "${ECHO_T}$can_build_shared" >&6 9596 9597echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9598echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9599test "$can_build_shared" = "no" && enable_shared=no 9600 9601# On AIX, shared libraries and static libraries use the same namespace, and 9602# are all built from PIC. 9603case $host_os in 9604aix3*) 9605 test "$enable_shared" = yes && enable_static=no 9606 if test -n "$RANLIB"; then 9607 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9608 postinstall_cmds='$RANLIB $lib' 9609 fi 9610 ;; 9611 9612aix4* | aix5*) 9613 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9614 test "$enable_shared" = yes && enable_static=no 9615 fi 9616 ;; 9617esac 9618echo "$as_me:$LINENO: result: $enable_shared" >&5 9619echo "${ECHO_T}$enable_shared" >&6 9620 9621echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9622echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9623# Make sure either enable_shared or enable_static is yes. 9624test "$enable_shared" = yes || enable_static=yes 9625echo "$as_me:$LINENO: result: $enable_static" >&5 9626echo "${ECHO_T}$enable_static" >&6 9627 9628# The else clause should only fire when bootstrapping the 9629# libtool distribution, otherwise you forgot to ship ltmain.sh 9630# with your package, and you will get complaints that there are 9631# no rules to generate ltmain.sh. 9632if test -f "$ltmain"; then 9633 # See if we are running on zsh, and set the options which allow our commands through 9634 # without removal of \ escapes. 9635 if test -n "${ZSH_VERSION+set}" ; then 9636 setopt NO_GLOB_SUBST 9637 fi 9638 # Now quote all the things that may contain metacharacters while being 9639 # careful not to overquote the AC_SUBSTed values. We take copies of the 9640 # variables and quote the copies for generation of the libtool script. 9641 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9642 SED SHELL STRIP \ 9643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9645 deplibs_check_method reload_flag reload_cmds need_locks \ 9646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9647 lt_cv_sys_global_symbol_to_c_name_address \ 9648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9649 old_postinstall_cmds old_postuninstall_cmds \ 9650 compiler \ 9651 CC \ 9652 LD \ 9653 lt_prog_compiler_wl \ 9654 lt_prog_compiler_pic \ 9655 lt_prog_compiler_static \ 9656 lt_prog_compiler_no_builtin_flag \ 9657 export_dynamic_flag_spec \ 9658 thread_safe_flag_spec \ 9659 whole_archive_flag_spec \ 9660 enable_shared_with_static_runtimes \ 9661 old_archive_cmds \ 9662 old_archive_from_new_cmds \ 9663 predep_objects \ 9664 postdep_objects \ 9665 predeps \ 9666 postdeps \ 9667 compiler_lib_search_path \ 9668 archive_cmds \ 9669 archive_expsym_cmds \ 9670 postinstall_cmds \ 9671 postuninstall_cmds \ 9672 old_archive_from_expsyms_cmds \ 9673 allow_undefined_flag \ 9674 no_undefined_flag \ 9675 export_symbols_cmds \ 9676 hardcode_libdir_flag_spec \ 9677 hardcode_libdir_flag_spec_ld \ 9678 hardcode_libdir_separator \ 9679 hardcode_automatic \ 9680 module_cmds \ 9681 module_expsym_cmds \ 9682 lt_cv_prog_compiler_c_o \ 9683 exclude_expsyms \ 9684 include_expsyms; do 9685 9686 case $var in 9687 old_archive_cmds | \ 9688 old_archive_from_new_cmds | \ 9689 archive_cmds | \ 9690 archive_expsym_cmds | \ 9691 module_cmds | \ 9692 module_expsym_cmds | \ 9693 old_archive_from_expsyms_cmds | \ 9694 export_symbols_cmds | \ 9695 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9696 postinstall_cmds | postuninstall_cmds | \ 9697 old_postinstall_cmds | old_postuninstall_cmds | \ 9698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9699 # Double-quote double-evaled strings. 9700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9701 ;; 9702 *) 9703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9704 ;; 9705 esac 9706 done 9707 9708 case $lt_echo in 9709 *'\$0 --fallback-echo"') 9710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9711 ;; 9712 esac 9713 9714cfgfile="${ofile}T" 9715 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9716 $rm -f "$cfgfile" 9717 { echo "$as_me:$LINENO: creating $ofile" >&5 9718echo "$as_me: creating $ofile" >&6;} 9719 9720 cat <<__EOF__ >> "$cfgfile" 9721#! $SHELL 9722 9723# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9724# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9725# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9726# 9727# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9728# Free Software Foundation, Inc. 9729# 9730# This file is part of GNU Libtool: 9731# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9732# 9733# This program is free software; you can redistribute it and/or modify 9734# it under the terms of the GNU General Public License as published by 9735# the Free Software Foundation; either version 2 of the License, or 9736# (at your option) any later version. 9737# 9738# This program is distributed in the hope that it will be useful, but 9739# WITHOUT ANY WARRANTY; without even the implied warranty of 9740# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9741# General Public License for more details. 9742# 9743# You should have received a copy of the GNU General Public License 9744# along with this program; if not, write to the Free Software 9745# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9746# 9747# As a special exception to the GNU General Public License, if you 9748# distribute this file as part of a program that contains a 9749# configuration script generated by Autoconf, you may include it under 9750# the same distribution terms that you use for the rest of that program. 9751 9752# A sed program that does not truncate output. 9753SED=$lt_SED 9754 9755# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9756Xsed="$SED -e 1s/^X//" 9757 9758# The HP-UX ksh and POSIX shell print the target directory to stdout 9759# if CDPATH is set. 9760(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9761 9762# The names of the tagged configurations supported by this script. 9763available_tags= 9764 9765# ### BEGIN LIBTOOL CONFIG 9766 9767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9768 9769# Shell to use when invoking shell scripts. 9770SHELL=$lt_SHELL 9771 9772# Whether or not to build shared libraries. 9773build_libtool_libs=$enable_shared 9774 9775# Whether or not to build static libraries. 9776build_old_libs=$enable_static 9777 9778# Whether or not to add -lc for building shared libraries. 9779build_libtool_need_lc=$archive_cmds_need_lc 9780 9781# Whether or not to disallow shared libs when runtime libs are static 9782allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9783 9784# Whether or not to optimize for fast installation. 9785fast_install=$enable_fast_install 9786 9787# The host system. 9788host_alias=$host_alias 9789host=$host 9790host_os=$host_os 9791 9792# The build system. 9793build_alias=$build_alias 9794build=$build 9795build_os=$build_os 9796 9797# An echo program that does not interpret backslashes. 9798echo=$lt_echo 9799 9800# The archiver. 9801AR=$lt_AR 9802AR_FLAGS=$lt_AR_FLAGS 9803 9804# A C compiler. 9805LTCC=$lt_LTCC 9806 9807# LTCC compiler flags. 9808LTCFLAGS=$lt_LTCFLAGS 9809 9810# A language-specific compiler. 9811CC=$lt_compiler 9812 9813# Is the compiler the GNU C compiler? 9814with_gcc=$GCC 9815 9816# An ERE matcher. 9817EGREP=$lt_EGREP 9818 9819# The linker used to build libraries. 9820LD=$lt_LD 9821 9822# Whether we need hard or soft links. 9823LN_S=$lt_LN_S 9824 9825# A BSD-compatible nm program. 9826NM=$lt_NM 9827 9828# A symbol stripping program 9829STRIP=$lt_STRIP 9830 9831# Used to examine libraries when file_magic_cmd begins "file" 9832MAGIC_CMD=$MAGIC_CMD 9833 9834# Used on cygwin: DLL creation program. 9835DLLTOOL="$DLLTOOL" 9836 9837# Used on cygwin: object dumper. 9838OBJDUMP="$OBJDUMP" 9839 9840# Used on cygwin: assembler. 9841AS="$AS" 9842 9843# The name of the directory that contains temporary libtool files. 9844objdir=$objdir 9845 9846# How to create reloadable object files. 9847reload_flag=$lt_reload_flag 9848reload_cmds=$lt_reload_cmds 9849 9850# How to pass a linker flag through the compiler. 9851wl=$lt_lt_prog_compiler_wl 9852 9853# Object file suffix (normally "o"). 9854objext="$ac_objext" 9855 9856# Old archive suffix (normally "a"). 9857libext="$libext" 9858 9859# Shared library suffix (normally ".so"). 9860shrext_cmds='$shrext_cmds' 9861 9862# Executable file suffix (normally ""). 9863exeext="$exeext" 9864 9865# Additional compiler flags for building library objects. 9866pic_flag=$lt_lt_prog_compiler_pic 9867pic_mode=$pic_mode 9868 9869# What is the maximum length of a command? 9870max_cmd_len=$lt_cv_sys_max_cmd_len 9871 9872# Does compiler simultaneously support -c and -o options? 9873compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9874 9875# Must we lock files when doing compilation? 9876need_locks=$lt_need_locks 9877 9878# Do we need the lib prefix for modules? 9879need_lib_prefix=$need_lib_prefix 9880 9881# Do we need a version for libraries? 9882need_version=$need_version 9883 9884# Whether dlopen is supported. 9885dlopen_support=$enable_dlopen 9886 9887# Whether dlopen of programs is supported. 9888dlopen_self=$enable_dlopen_self 9889 9890# Whether dlopen of statically linked programs is supported. 9891dlopen_self_static=$enable_dlopen_self_static 9892 9893# Compiler flag to prevent dynamic linking. 9894link_static_flag=$lt_lt_prog_compiler_static 9895 9896# Compiler flag to turn off builtin functions. 9897no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9898 9899# Compiler flag to allow reflexive dlopens. 9900export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9901 9902# Compiler flag to generate shared objects directly from archives. 9903whole_archive_flag_spec=$lt_whole_archive_flag_spec 9904 9905# Compiler flag to generate thread-safe objects. 9906thread_safe_flag_spec=$lt_thread_safe_flag_spec 9907 9908# Library versioning type. 9909version_type=$version_type 9910 9911# Format of library name prefix. 9912libname_spec=$lt_libname_spec 9913 9914# List of archive names. First name is the real one, the rest are links. 9915# The last name is the one that the linker finds with -lNAME. 9916library_names_spec=$lt_library_names_spec 9917 9918# The coded name of the library, if different from the real name. 9919soname_spec=$lt_soname_spec 9920 9921# Commands used to build and install an old-style archive. 9922RANLIB=$lt_RANLIB 9923old_archive_cmds=$lt_old_archive_cmds 9924old_postinstall_cmds=$lt_old_postinstall_cmds 9925old_postuninstall_cmds=$lt_old_postuninstall_cmds 9926 9927# Create an old-style archive from a shared archive. 9928old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9929 9930# Create a temporary old-style archive to link instead of a shared archive. 9931old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9932 9933# Commands used to build and install a shared archive. 9934archive_cmds=$lt_archive_cmds 9935archive_expsym_cmds=$lt_archive_expsym_cmds 9936postinstall_cmds=$lt_postinstall_cmds 9937postuninstall_cmds=$lt_postuninstall_cmds 9938 9939# Commands used to build a loadable module (assumed same as above if empty) 9940module_cmds=$lt_module_cmds 9941module_expsym_cmds=$lt_module_expsym_cmds 9942 9943# Commands to strip libraries. 9944old_striplib=$lt_old_striplib 9945striplib=$lt_striplib 9946 9947# Dependencies to place before the objects being linked to create a 9948# shared library. 9949predep_objects=$lt_predep_objects 9950 9951# Dependencies to place after the objects being linked to create a 9952# shared library. 9953postdep_objects=$lt_postdep_objects 9954 9955# Dependencies to place before the objects being linked to create a 9956# shared library. 9957predeps=$lt_predeps 9958 9959# Dependencies to place after the objects being linked to create a 9960# shared library. 9961postdeps=$lt_postdeps 9962 9963# The library search path used internally by the compiler when linking 9964# a shared library. 9965compiler_lib_search_path=$lt_compiler_lib_search_path 9966 9967# Method to check whether dependent libraries are shared objects. 9968deplibs_check_method=$lt_deplibs_check_method 9969 9970# Command to use when deplibs_check_method == file_magic. 9971file_magic_cmd=$lt_file_magic_cmd 9972 9973# Flag that allows shared libraries with undefined symbols to be built. 9974allow_undefined_flag=$lt_allow_undefined_flag 9975 9976# Flag that forces no undefined symbols. 9977no_undefined_flag=$lt_no_undefined_flag 9978 9979# Commands used to finish a libtool library installation in a directory. 9980finish_cmds=$lt_finish_cmds 9981 9982# Same as above, but a single script fragment to be evaled but not shown. 9983finish_eval=$lt_finish_eval 9984 9985# Take the output of nm and produce a listing of raw symbols and C names. 9986global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9987 9988# Transform the output of nm in a proper C declaration 9989global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9990 9991# Transform the output of nm in a C name address pair 9992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9993 9994# This is the shared library runtime path variable. 9995runpath_var=$runpath_var 9996 9997# This is the shared library path variable. 9998shlibpath_var=$shlibpath_var 9999 10000# Is shlibpath searched before the hard-coded library search path? 10001shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10002 10003# How to hardcode a shared library path into an executable. 10004hardcode_action=$hardcode_action 10005 10006# Whether we should hardcode library paths into libraries. 10007hardcode_into_libs=$hardcode_into_libs 10008 10009# Flag to hardcode \$libdir into a binary during linking. 10010# This must work even if \$libdir does not exist. 10011hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10012 10013# If ld is used when linking, flag to hardcode \$libdir into 10014# a binary during linking. This must work even if \$libdir does 10015# not exist. 10016hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10017 10018# Whether we need a single -rpath flag with a separated argument. 10019hardcode_libdir_separator=$lt_hardcode_libdir_separator 10020 10021# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10022# resulting binary. 10023hardcode_direct=$hardcode_direct 10024 10025# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10026# resulting binary. 10027hardcode_minus_L=$hardcode_minus_L 10028 10029# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10030# the resulting binary. 10031hardcode_shlibpath_var=$hardcode_shlibpath_var 10032 10033# Set to yes if building a shared library automatically hardcodes DIR into the library 10034# and all subsequent libraries and executables linked against it. 10035hardcode_automatic=$hardcode_automatic 10036 10037# Variables whose values should be saved in libtool wrapper scripts and 10038# restored at relink time. 10039variables_saved_for_relink="$variables_saved_for_relink" 10040 10041# Whether libtool must link a program against all its dependency libraries. 10042link_all_deplibs=$link_all_deplibs 10043 10044# Compile-time system search path for libraries 10045sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10046 10047# Run-time system search path for libraries 10048sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10049 10050# Fix the shell variable \$srcfile for the compiler. 10051fix_srcfile_path="$fix_srcfile_path" 10052 10053# Set to yes if exported symbols are required. 10054always_export_symbols=$always_export_symbols 10055 10056# The commands to list exported symbols. 10057export_symbols_cmds=$lt_export_symbols_cmds 10058 10059# The commands to extract the exported symbol list from a shared archive. 10060extract_expsyms_cmds=$lt_extract_expsyms_cmds 10061 10062# Symbols that should not be listed in the preloaded symbols. 10063exclude_expsyms=$lt_exclude_expsyms 10064 10065# Symbols that must always be exported. 10066include_expsyms=$lt_include_expsyms 10067 10068# ### END LIBTOOL CONFIG 10069 10070__EOF__ 10071 10072 10073 case $host_os in 10074 aix3*) 10075 cat <<\EOF >> "$cfgfile" 10076 10077# AIX sometimes has problems with the GCC collect2 program. For some 10078# reason, if we set the COLLECT_NAMES environment variable, the problems 10079# vanish in a puff of smoke. 10080if test "X${COLLECT_NAMES+set}" != Xset; then 10081 COLLECT_NAMES= 10082 export COLLECT_NAMES 10083fi 10084EOF 10085 ;; 10086 esac 10087 10088 # We use sed instead of cat because bash on DJGPP gets confused if 10089 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10090 # text mode, it properly converts lines to CR/LF. This bash problem 10091 # is reportedly fixed, but why not run on old versions too? 10092 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10093 10094 mv -f "$cfgfile" "$ofile" || \ 10095 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10096 chmod +x "$ofile" 10097 10098else 10099 # If there is no Makefile yet, we rely on a make rule to execute 10100 # `config.status --recheck' to rerun these tests and create the 10101 # libtool script then. 10102 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10103 if test -f "$ltmain_in"; then 10104 test -f Makefile && make "$ltmain" 10105 fi 10106fi 10107 10108 10109ac_ext=c 10110ac_cpp='$CPP $CPPFLAGS' 10111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10113ac_compiler_gnu=$ac_cv_c_compiler_gnu 10114 10115CC="$lt_save_CC" 10116 10117 10118# Check whether --with-tags or --without-tags was given. 10119if test "${with_tags+set}" = set; then 10120 withval="$with_tags" 10121 tagnames="$withval" 10122fi; 10123 10124if test -f "$ltmain" && test -n "$tagnames"; then 10125 if test ! -f "${ofile}"; then 10126 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10127echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10128 fi 10129 10130 if test -z "$LTCC"; then 10131 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10132 if test -z "$LTCC"; then 10133 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10134echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10135 else 10136 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10137echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10138 fi 10139 fi 10140 if test -z "$LTCFLAGS"; then 10141 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10142 fi 10143 10144 # Extract list of available tagged configurations in $ofile. 10145 # Note that this assumes the entire list is on one line. 10146 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10147 10148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10149 for tagname in $tagnames; do 10150 IFS="$lt_save_ifs" 10151 # Check whether tagname contains only valid characters 10152 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10153 "") ;; 10154 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10155echo "$as_me: error: invalid tag name: $tagname" >&2;} 10156 { (exit 1); exit 1; }; } 10157 ;; 10158 esac 10159 10160 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10161 then 10162 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10163echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10164 { (exit 1); exit 1; }; } 10165 fi 10166 10167 # Update the list of available tags. 10168 if test -n "$tagname"; then 10169 echo appending configuration tag \"$tagname\" to $ofile 10170 10171 case $tagname in 10172 CXX) 10173 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10174 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10175 (test "X$CXX" != "Xg++"))) ; then 10176 ac_ext=cc 10177ac_cpp='$CXXCPP $CPPFLAGS' 10178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10181 10182 10183 10184 10185archive_cmds_need_lc_CXX=no 10186allow_undefined_flag_CXX= 10187always_export_symbols_CXX=no 10188archive_expsym_cmds_CXX= 10189export_dynamic_flag_spec_CXX= 10190hardcode_direct_CXX=no 10191hardcode_libdir_flag_spec_CXX= 10192hardcode_libdir_flag_spec_ld_CXX= 10193hardcode_libdir_separator_CXX= 10194hardcode_minus_L_CXX=no 10195hardcode_shlibpath_var_CXX=unsupported 10196hardcode_automatic_CXX=no 10197module_cmds_CXX= 10198module_expsym_cmds_CXX= 10199link_all_deplibs_CXX=unknown 10200old_archive_cmds_CXX=$old_archive_cmds 10201no_undefined_flag_CXX= 10202whole_archive_flag_spec_CXX= 10203enable_shared_with_static_runtimes_CXX=no 10204 10205# Dependencies to place before and after the object being linked: 10206predep_objects_CXX= 10207postdep_objects_CXX= 10208predeps_CXX= 10209postdeps_CXX= 10210compiler_lib_search_path_CXX= 10211 10212# Source file extension for C++ test sources. 10213ac_ext=cpp 10214 10215# Object file extension for compiled C++ test sources. 10216objext=o 10217objext_CXX=$objext 10218 10219# Code to be used in simple compile tests 10220lt_simple_compile_test_code="int some_variable = 0;\n" 10221 10222# Code to be used in simple link tests 10223lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10224 10225# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10226 10227# If no C compiler was specified, use CC. 10228LTCC=${LTCC-"$CC"} 10229 10230# If no C compiler flags were specified, use CFLAGS. 10231LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10232 10233# Allow CC to be a program name with arguments. 10234compiler=$CC 10235 10236 10237# save warnings/boilerplate of simple test code 10238ac_outfile=conftest.$ac_objext 10239printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10240eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10241_lt_compiler_boilerplate=`cat conftest.err` 10242$rm conftest* 10243 10244ac_outfile=conftest.$ac_objext 10245printf "$lt_simple_link_test_code" >conftest.$ac_ext 10246eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10247_lt_linker_boilerplate=`cat conftest.err` 10248$rm conftest* 10249 10250 10251# Allow CC to be a program name with arguments. 10252lt_save_CC=$CC 10253lt_save_LD=$LD 10254lt_save_GCC=$GCC 10255GCC=$GXX 10256lt_save_with_gnu_ld=$with_gnu_ld 10257lt_save_path_LD=$lt_cv_path_LD 10258if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10259 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10260else 10261 $as_unset lt_cv_prog_gnu_ld 10262fi 10263if test -n "${lt_cv_path_LDCXX+set}"; then 10264 lt_cv_path_LD=$lt_cv_path_LDCXX 10265else 10266 $as_unset lt_cv_path_LD 10267fi 10268test -z "${LDCXX+set}" || LD=$LDCXX 10269CC=${CXX-"c++"} 10270compiler=$CC 10271compiler_CXX=$CC 10272for cc_temp in $compiler""; do 10273 case $cc_temp in 10274 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10275 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10276 \-*) ;; 10277 *) break;; 10278 esac 10279done 10280cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10281 10282 10283# We don't want -fno-exception wen compiling C++ code, so set the 10284# no_builtin_flag separately 10285if test "$GXX" = yes; then 10286 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10287else 10288 lt_prog_compiler_no_builtin_flag_CXX= 10289fi 10290 10291if test "$GXX" = yes; then 10292 # Set up default GNU C++ configuration 10293 10294 10295# Check whether --with-gnu-ld or --without-gnu-ld was given. 10296if test "${with_gnu_ld+set}" = set; then 10297 withval="$with_gnu_ld" 10298 test "$withval" = no || with_gnu_ld=yes 10299else 10300 with_gnu_ld=no 10301fi; 10302ac_prog=ld 10303if test "$GCC" = yes; then 10304 # Check if gcc -print-prog-name=ld gives a path. 10305 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10306echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10307 case $host in 10308 *-*-mingw*) 10309 # gcc leaves a trailing carriage return which upsets mingw 10310 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10311 *) 10312 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10313 esac 10314 case $ac_prog in 10315 # Accept absolute paths. 10316 [\\/]* | ?:[\\/]*) 10317 re_direlt='/[^/][^/]*/\.\./' 10318 # Canonicalize the pathname of ld 10319 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10320 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10321 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10322 done 10323 test -z "$LD" && LD="$ac_prog" 10324 ;; 10325 "") 10326 # If it fails, then pretend we aren't using GCC. 10327 ac_prog=ld 10328 ;; 10329 *) 10330 # If it is relative, then search for the first ld in PATH. 10331 with_gnu_ld=unknown 10332 ;; 10333 esac 10334elif test "$with_gnu_ld" = yes; then 10335 echo "$as_me:$LINENO: checking for GNU ld" >&5 10336echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10337else 10338 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10339echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10340fi 10341if test "${lt_cv_path_LD+set}" = set; then 10342 echo $ECHO_N "(cached) $ECHO_C" >&6 10343else 10344 if test -z "$LD"; then 10345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10346 for ac_dir in $PATH; do 10347 IFS="$lt_save_ifs" 10348 test -z "$ac_dir" && ac_dir=. 10349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10350 lt_cv_path_LD="$ac_dir/$ac_prog" 10351 # Check to see if the program is GNU ld. I'd rather use --version, 10352 # but apparently some variants of GNU ld only accept -v. 10353 # Break only if it was the GNU/non-GNU ld that we prefer. 10354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10355 *GNU* | *'with BFD'*) 10356 test "$with_gnu_ld" != no && break 10357 ;; 10358 *) 10359 test "$with_gnu_ld" != yes && break 10360 ;; 10361 esac 10362 fi 10363 done 10364 IFS="$lt_save_ifs" 10365else 10366 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10367fi 10368fi 10369 10370LD="$lt_cv_path_LD" 10371if test -n "$LD"; then 10372 echo "$as_me:$LINENO: result: $LD" >&5 10373echo "${ECHO_T}$LD" >&6 10374else 10375 echo "$as_me:$LINENO: result: no" >&5 10376echo "${ECHO_T}no" >&6 10377fi 10378test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10379echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10380 { (exit 1); exit 1; }; } 10381echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10382echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10383if test "${lt_cv_prog_gnu_ld+set}" = set; then 10384 echo $ECHO_N "(cached) $ECHO_C" >&6 10385else 10386 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10387case `$LD -v 2>&1 </dev/null` in 10388*GNU* | *'with BFD'*) 10389 lt_cv_prog_gnu_ld=yes 10390 ;; 10391*) 10392 lt_cv_prog_gnu_ld=no 10393 ;; 10394esac 10395fi 10396echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10397echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10398with_gnu_ld=$lt_cv_prog_gnu_ld 10399 10400 10401 10402 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10403 # archiving commands below assume that GNU ld is being used. 10404 if test "$with_gnu_ld" = yes; then 10405 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10406 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' 10407 10408 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10410 10411 # If archive_cmds runs LD, not CC, wlarc should be empty 10412 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10413 # investigate it a little bit more. (MM) 10414 wlarc='${wl}' 10415 10416 # ancient GNU ld didn't support --whole-archive et. al. 10417 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10418 grep 'no-whole-archive' > /dev/null; then 10419 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10420 else 10421 whole_archive_flag_spec_CXX= 10422 fi 10423 else 10424 with_gnu_ld=no 10425 wlarc= 10426 10427 # A generic and very simple default shared library creation 10428 # command for GNU C++ for the case where it uses the native 10429 # linker, instead of GNU ld. If possible, this setting should 10430 # overridden to take advantage of the native linker features on 10431 # the platform it is being used on. 10432 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10433 fi 10434 10435 # Commands to make compiler produce verbose output that lists 10436 # what "hidden" libraries, object files and flags are used when 10437 # linking a shared library. 10438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10439 10440else 10441 GXX=no 10442 with_gnu_ld=no 10443 wlarc= 10444fi 10445 10446# PORTME: fill in a description of your system's C++ link characteristics 10447echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10448echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10449ld_shlibs_CXX=yes 10450case $host_os in 10451 aix3*) 10452 # FIXME: insert proper C++ library support 10453 ld_shlibs_CXX=no 10454 ;; 10455 aix4* | aix5*) 10456 if test "$host_cpu" = ia64; then 10457 # On IA64, the linker does run time linking by default, so we don't 10458 # have to do anything special. 10459 aix_use_runtimelinking=no 10460 exp_sym_flag='-Bexport' 10461 no_entry_flag="" 10462 else 10463 aix_use_runtimelinking=no 10464 10465 # Test if we are trying to use run time linking or normal 10466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10467 # need to do runtime linking. 10468 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10469 for ld_flag in $LDFLAGS; do 10470 case $ld_flag in 10471 *-brtl*) 10472 aix_use_runtimelinking=yes 10473 break 10474 ;; 10475 esac 10476 done 10477 ;; 10478 esac 10479 10480 exp_sym_flag='-bexport' 10481 no_entry_flag='-bnoentry' 10482 fi 10483 10484 # When large executables or shared objects are built, AIX ld can 10485 # have problems creating the table of contents. If linking a library 10486 # or program results in "error TOC overflow" add -mminimal-toc to 10487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10489 10490 archive_cmds_CXX='' 10491 hardcode_direct_CXX=yes 10492 hardcode_libdir_separator_CXX=':' 10493 link_all_deplibs_CXX=yes 10494 10495 if test "$GXX" = yes; then 10496 case $host_os in aix4.[012]|aix4.[012].*) 10497 # We only want to do this on AIX 4.2 and lower, the check 10498 # below for broken collect2 doesn't work under 4.3+ 10499 collect2name=`${CC} -print-prog-name=collect2` 10500 if test -f "$collect2name" && \ 10501 strings "$collect2name" | grep resolve_lib_name >/dev/null 10502 then 10503 # We have reworked collect2 10504 hardcode_direct_CXX=yes 10505 else 10506 # We have old collect2 10507 hardcode_direct_CXX=unsupported 10508 # It fails to find uninstalled libraries when the uninstalled 10509 # path is not listed in the libpath. Setting hardcode_minus_L 10510 # to unsupported forces relinking 10511 hardcode_minus_L_CXX=yes 10512 hardcode_libdir_flag_spec_CXX='-L$libdir' 10513 hardcode_libdir_separator_CXX= 10514 fi 10515 ;; 10516 esac 10517 shared_flag='-shared' 10518 if test "$aix_use_runtimelinking" = yes; then 10519 shared_flag="$shared_flag "'${wl}-G' 10520 fi 10521 else 10522 # not using gcc 10523 if test "$host_cpu" = ia64; then 10524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10525 # chokes on -Wl,-G. The following line is correct: 10526 shared_flag='-G' 10527 else 10528 if test "$aix_use_runtimelinking" = yes; then 10529 shared_flag='${wl}-G' 10530 else 10531 shared_flag='${wl}-bM:SRE' 10532 fi 10533 fi 10534 fi 10535 10536 # It seems that -bexpall does not export symbols beginning with 10537 # underscore (_), so it is better to generate a list of symbols to export. 10538 always_export_symbols_CXX=yes 10539 if test "$aix_use_runtimelinking" = yes; then 10540 # Warning - without using the other runtime loading flags (-brtl), 10541 # -berok will link without error, but may produce a broken library. 10542 allow_undefined_flag_CXX='-berok' 10543 # Determine the default libpath from the value encoded in an empty executable. 10544 cat >conftest.$ac_ext <<_ACEOF 10545/* confdefs.h. */ 10546_ACEOF 10547cat confdefs.h >>conftest.$ac_ext 10548cat >>conftest.$ac_ext <<_ACEOF 10549/* end confdefs.h. */ 10550 10551int 10552main () 10553{ 10554 10555 ; 10556 return 0; 10557} 10558_ACEOF 10559rm -f conftest.$ac_objext conftest$ac_exeext 10560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10561 (eval $ac_link) 2>conftest.er1 10562 ac_status=$? 10563 grep -v '^ *+' conftest.er1 >conftest.err 10564 rm -f conftest.er1 10565 cat conftest.err >&5 10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10567 (exit $ac_status); } && 10568 { ac_try='test -z "$ac_cxx_werror_flag" 10569 || test ! -s conftest.err' 10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10571 (eval $ac_try) 2>&5 10572 ac_status=$? 10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10574 (exit $ac_status); }; } && 10575 { ac_try='test -s conftest$ac_exeext' 10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10577 (eval $ac_try) 2>&5 10578 ac_status=$? 10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10580 (exit $ac_status); }; }; then 10581 10582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10583}'` 10584# Check for a 64-bit object if we didn't find anything. 10585if 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; } 10586}'`; fi 10587else 10588 echo "$as_me: failed program was:" >&5 10589sed 's/^/| /' conftest.$ac_ext >&5 10590 10591fi 10592rm -f conftest.err conftest.$ac_objext \ 10593 conftest$ac_exeext conftest.$ac_ext 10594if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10595 10596 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10597 10598 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10599 else 10600 if test "$host_cpu" = ia64; then 10601 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10602 allow_undefined_flag_CXX="-z nodefs" 10603 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10604 else 10605 # Determine the default libpath from the value encoded in an empty executable. 10606 cat >conftest.$ac_ext <<_ACEOF 10607/* confdefs.h. */ 10608_ACEOF 10609cat confdefs.h >>conftest.$ac_ext 10610cat >>conftest.$ac_ext <<_ACEOF 10611/* end confdefs.h. */ 10612 10613int 10614main () 10615{ 10616 10617 ; 10618 return 0; 10619} 10620_ACEOF 10621rm -f conftest.$ac_objext conftest$ac_exeext 10622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10623 (eval $ac_link) 2>conftest.er1 10624 ac_status=$? 10625 grep -v '^ *+' conftest.er1 >conftest.err 10626 rm -f conftest.er1 10627 cat conftest.err >&5 10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10629 (exit $ac_status); } && 10630 { ac_try='test -z "$ac_cxx_werror_flag" 10631 || test ! -s conftest.err' 10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10633 (eval $ac_try) 2>&5 10634 ac_status=$? 10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10636 (exit $ac_status); }; } && 10637 { ac_try='test -s conftest$ac_exeext' 10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10639 (eval $ac_try) 2>&5 10640 ac_status=$? 10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10642 (exit $ac_status); }; }; then 10643 10644aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10645}'` 10646# Check for a 64-bit object if we didn't find anything. 10647if 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; } 10648}'`; fi 10649else 10650 echo "$as_me: failed program was:" >&5 10651sed 's/^/| /' conftest.$ac_ext >&5 10652 10653fi 10654rm -f conftest.err conftest.$ac_objext \ 10655 conftest$ac_exeext conftest.$ac_ext 10656if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10657 10658 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10659 # Warning - without using the other run time loading flags, 10660 # -berok will link without error, but may produce a broken library. 10661 no_undefined_flag_CXX=' ${wl}-bernotok' 10662 allow_undefined_flag_CXX=' ${wl}-berok' 10663 # Exported symbols can be pulled into shared objects from archives 10664 whole_archive_flag_spec_CXX='$convenience' 10665 archive_cmds_need_lc_CXX=yes 10666 # This is similar to how AIX traditionally builds its shared libraries. 10667 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10668 fi 10669 fi 10670 ;; 10671 10672 beos*) 10673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10674 allow_undefined_flag_CXX=unsupported 10675 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10676 # support --undefined. This deserves some investigation. FIXME 10677 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10678 else 10679 ld_shlibs_CXX=no 10680 fi 10681 ;; 10682 10683 chorus*) 10684 case $cc_basename in 10685 *) 10686 # FIXME: insert proper C++ library support 10687 ld_shlibs_CXX=no 10688 ;; 10689 esac 10690 ;; 10691 10692 cygwin* | mingw* | pw32*) 10693 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10694 # as there is no search path for DLLs. 10695 hardcode_libdir_flag_spec_CXX='-L$libdir' 10696 allow_undefined_flag_CXX=unsupported 10697 always_export_symbols_CXX=no 10698 enable_shared_with_static_runtimes_CXX=yes 10699 10700 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10701 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10702 # If the export-symbols file already is a .def file (1st line 10703 # is EXPORTS), use it as is; otherwise, prepend... 10704 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10705 cp $export_symbols $output_objdir/$soname.def; 10706 else 10707 echo EXPORTS > $output_objdir/$soname.def; 10708 cat $export_symbols >> $output_objdir/$soname.def; 10709 fi~ 10710 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10711 else 10712 ld_shlibs_CXX=no 10713 fi 10714 ;; 10715 darwin* | rhapsody*) 10716 case $host_os in 10717 rhapsody* | darwin1.[012]) 10718 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10719 ;; 10720 *) # Darwin 1.3 on 10721 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10722 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10723 else 10724 case ${MACOSX_DEPLOYMENT_TARGET} in 10725 10.[012]) 10726 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10727 ;; 10728 10.*) 10729 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10730 ;; 10731 esac 10732 fi 10733 ;; 10734 esac 10735 archive_cmds_need_lc_CXX=no 10736 hardcode_direct_CXX=no 10737 hardcode_automatic_CXX=yes 10738 hardcode_shlibpath_var_CXX=unsupported 10739 whole_archive_flag_spec_CXX='' 10740 link_all_deplibs_CXX=yes 10741 10742 if test "$GXX" = yes ; then 10743 lt_int_apple_cc_single_mod=no 10744 output_verbose_link_cmd='echo' 10745 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10746 lt_int_apple_cc_single_mod=yes 10747 fi 10748 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10749 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10750 else 10751 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10752 fi 10753 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10754 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10755 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10756 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}' 10757 else 10758 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10759 fi 10760 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}' 10761 else 10762 case $cc_basename in 10763 xlc*) 10764 output_verbose_link_cmd='echo' 10765 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10766 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10767 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10768 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10769 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}' 10770 ;; 10771 *) 10772 ld_shlibs_CXX=no 10773 ;; 10774 esac 10775 fi 10776 ;; 10777 10778 dgux*) 10779 case $cc_basename in 10780 ec++*) 10781 # FIXME: insert proper C++ library support 10782 ld_shlibs_CXX=no 10783 ;; 10784 ghcx*) 10785 # Green Hills C++ Compiler 10786 # FIXME: insert proper C++ library support 10787 ld_shlibs_CXX=no 10788 ;; 10789 *) 10790 # FIXME: insert proper C++ library support 10791 ld_shlibs_CXX=no 10792 ;; 10793 esac 10794 ;; 10795 freebsd[12]*) 10796 # C++ shared libraries reported to be fairly broken before switch to ELF 10797 ld_shlibs_CXX=no 10798 ;; 10799 freebsd-elf*) 10800 archive_cmds_need_lc_CXX=no 10801 ;; 10802 freebsd* | kfreebsd*-gnu | dragonfly*) 10803 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10804 # conventions 10805 ld_shlibs_CXX=yes 10806 ;; 10807 gnu*) 10808 ;; 10809 hpux9*) 10810 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10811 hardcode_libdir_separator_CXX=: 10812 export_dynamic_flag_spec_CXX='${wl}-E' 10813 hardcode_direct_CXX=yes 10814 hardcode_minus_L_CXX=yes # Not in the search PATH, 10815 # but as the default 10816 # location of the library. 10817 10818 case $cc_basename in 10819 CC*) 10820 # FIXME: insert proper C++ library support 10821 ld_shlibs_CXX=no 10822 ;; 10823 aCC*) 10824 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' 10825 # Commands to make compiler produce verbose output that lists 10826 # what "hidden" libraries, object files and flags are used when 10827 # linking a shared library. 10828 # 10829 # There doesn't appear to be a way to prevent this compiler from 10830 # explicitly linking system object files so we need to strip them 10831 # from the output so that they don't get included in the library 10832 # dependencies. 10833 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' 10834 ;; 10835 *) 10836 if test "$GXX" = yes; then 10837 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' 10838 else 10839 # FIXME: insert proper C++ library support 10840 ld_shlibs_CXX=no 10841 fi 10842 ;; 10843 esac 10844 ;; 10845 hpux10*|hpux11*) 10846 if test $with_gnu_ld = no; then 10847 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10848 hardcode_libdir_separator_CXX=: 10849 10850 case $host_cpu in 10851 hppa*64*|ia64*) 10852 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10853 ;; 10854 *) 10855 export_dynamic_flag_spec_CXX='${wl}-E' 10856 ;; 10857 esac 10858 fi 10859 case $host_cpu in 10860 hppa*64*|ia64*) 10861 hardcode_direct_CXX=no 10862 hardcode_shlibpath_var_CXX=no 10863 ;; 10864 *) 10865 hardcode_direct_CXX=yes 10866 hardcode_minus_L_CXX=yes # Not in the search PATH, 10867 # but as the default 10868 # location of the library. 10869 ;; 10870 esac 10871 10872 case $cc_basename in 10873 CC*) 10874 # FIXME: insert proper C++ library support 10875 ld_shlibs_CXX=no 10876 ;; 10877 aCC*) 10878 case $host_cpu in 10879 hppa*64*) 10880 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10881 ;; 10882 ia64*) 10883 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10884 ;; 10885 *) 10886 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10887 ;; 10888 esac 10889 # Commands to make compiler produce verbose output that lists 10890 # what "hidden" libraries, object files and flags are used when 10891 # linking a shared library. 10892 # 10893 # There doesn't appear to be a way to prevent this compiler from 10894 # explicitly linking system object files so we need to strip them 10895 # from the output so that they don't get included in the library 10896 # dependencies. 10897 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' 10898 ;; 10899 *) 10900 if test "$GXX" = yes; then 10901 if test $with_gnu_ld = no; then 10902 case $host_cpu in 10903 hppa*64*) 10904 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10905 ;; 10906 ia64*) 10907 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10908 ;; 10909 *) 10910 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' 10911 ;; 10912 esac 10913 fi 10914 else 10915 # FIXME: insert proper C++ library support 10916 ld_shlibs_CXX=no 10917 fi 10918 ;; 10919 esac 10920 ;; 10921 interix3*) 10922 hardcode_direct_CXX=no 10923 hardcode_shlibpath_var_CXX=no 10924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10925 export_dynamic_flag_spec_CXX='${wl}-E' 10926 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10927 # Instead, shared libraries are loaded at an image base (0x10000000 by 10928 # default) and relocated if they conflict, which is a slow very memory 10929 # consuming and fragmenting process. To avoid this, we pick a random, 10930 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10931 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10932 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10933 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10934 ;; 10935 irix5* | irix6*) 10936 case $cc_basename in 10937 CC*) 10938 # SGI C++ 10939 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10940 10941 # Archives containing C++ object files must be created using 10942 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10943 # necessary to make sure instantiated templates are included 10944 # in the archive. 10945 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10946 ;; 10947 *) 10948 if test "$GXX" = yes; then 10949 if test "$with_gnu_ld" = no; then 10950 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10951 else 10952 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' 10953 fi 10954 fi 10955 link_all_deplibs_CXX=yes 10956 ;; 10957 esac 10958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10959 hardcode_libdir_separator_CXX=: 10960 ;; 10961 linux*) 10962 case $cc_basename in 10963 KCC*) 10964 # Kuck and Associates, Inc. (KAI) C++ Compiler 10965 10966 # KCC will only create a shared library if the output file 10967 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10968 # to its proper name (with version) after linking. 10969 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' 10970 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' 10971 # Commands to make compiler produce verbose output that lists 10972 # what "hidden" libraries, object files and flags are used when 10973 # linking a shared library. 10974 # 10975 # There doesn't appear to be a way to prevent this compiler from 10976 # explicitly linking system object files so we need to strip them 10977 # from the output so that they don't get included in the library 10978 # dependencies. 10979 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' 10980 10981 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10983 10984 # Archives containing C++ object files must be created using 10985 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10986 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10987 ;; 10988 icpc*) 10989 # Intel C++ 10990 with_gnu_ld=yes 10991 # version 8.0 and above of icpc choke on multiply defined symbols 10992 # if we add $predep_objects and $postdep_objects, however 7.1 and 10993 # earlier do not add the objects themselves. 10994 case `$CC -V 2>&1` in 10995 *"Version 7."*) 10996 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10997 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' 10998 ;; 10999 *) # Version 8.0 or newer 11000 tmp_idyn= 11001 case $host_cpu in 11002 ia64*) tmp_idyn=' -i_dynamic';; 11003 esac 11004 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11005 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11006 ;; 11007 esac 11008 archive_cmds_need_lc_CXX=no 11009 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11010 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11011 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11012 ;; 11013 pgCC*) 11014 # Portland Group C++ compiler 11015 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11016 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 11017 11018 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11020 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11021 ;; 11022 cxx*) 11023 # Compaq C++ 11024 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11025 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' 11026 11027 runpath_var=LD_RUN_PATH 11028 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11029 hardcode_libdir_separator_CXX=: 11030 11031 # Commands to make compiler produce verbose output that lists 11032 # what "hidden" libraries, object files and flags are used when 11033 # linking a shared library. 11034 # 11035 # There doesn't appear to be a way to prevent this compiler from 11036 # explicitly linking system object files so we need to strip them 11037 # from the output so that they don't get included in the library 11038 # dependencies. 11039 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' 11040 ;; 11041 esac 11042 ;; 11043 lynxos*) 11044 # FIXME: insert proper C++ library support 11045 ld_shlibs_CXX=no 11046 ;; 11047 m88k*) 11048 # FIXME: insert proper C++ library support 11049 ld_shlibs_CXX=no 11050 ;; 11051 mvs*) 11052 case $cc_basename in 11053 cxx*) 11054 # FIXME: insert proper C++ library support 11055 ld_shlibs_CXX=no 11056 ;; 11057 *) 11058 # FIXME: insert proper C++ library support 11059 ld_shlibs_CXX=no 11060 ;; 11061 esac 11062 ;; 11063 netbsd*) 11064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11065 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11066 wlarc= 11067 hardcode_libdir_flag_spec_CXX='-R$libdir' 11068 hardcode_direct_CXX=yes 11069 hardcode_shlibpath_var_CXX=no 11070 fi 11071 # Workaround some broken pre-1.5 toolchains 11072 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11073 ;; 11074 openbsd2*) 11075 # C++ shared libraries are fairly broken 11076 ld_shlibs_CXX=no 11077 ;; 11078 openbsd*) 11079 hardcode_direct_CXX=yes 11080 hardcode_shlibpath_var_CXX=no 11081 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11082 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11083 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11084 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11085 export_dynamic_flag_spec_CXX='${wl}-E' 11086 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11087 fi 11088 output_verbose_link_cmd='echo' 11089 ;; 11090 osf3*) 11091 case $cc_basename in 11092 KCC*) 11093 # Kuck and Associates, Inc. (KAI) C++ Compiler 11094 11095 # KCC will only create a shared library if the output file 11096 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11097 # to its proper name (with version) after linking. 11098 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' 11099 11100 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11101 hardcode_libdir_separator_CXX=: 11102 11103 # Archives containing C++ object files must be created using 11104 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11105 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11106 11107 ;; 11108 RCC*) 11109 # Rational C++ 2.4.1 11110 # FIXME: insert proper C++ library support 11111 ld_shlibs_CXX=no 11112 ;; 11113 cxx*) 11114 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11115 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11116 11117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11118 hardcode_libdir_separator_CXX=: 11119 11120 # Commands to make compiler produce verbose output that lists 11121 # what "hidden" libraries, object files and flags are used when 11122 # linking a shared library. 11123 # 11124 # There doesn't appear to be a way to prevent this compiler from 11125 # explicitly linking system object files so we need to strip them 11126 # from the output so that they don't get included in the library 11127 # dependencies. 11128 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' 11129 ;; 11130 *) 11131 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11132 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11133 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11134 11135 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11136 hardcode_libdir_separator_CXX=: 11137 11138 # Commands to make compiler produce verbose output that lists 11139 # what "hidden" libraries, object files and flags are used when 11140 # linking a shared library. 11141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11142 11143 else 11144 # FIXME: insert proper C++ library support 11145 ld_shlibs_CXX=no 11146 fi 11147 ;; 11148 esac 11149 ;; 11150 osf4* | osf5*) 11151 case $cc_basename in 11152 KCC*) 11153 # Kuck and Associates, Inc. (KAI) C++ Compiler 11154 11155 # KCC will only create a shared library if the output file 11156 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11157 # to its proper name (with version) after linking. 11158 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' 11159 11160 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11161 hardcode_libdir_separator_CXX=: 11162 11163 # Archives containing C++ object files must be created using 11164 # the KAI C++ compiler. 11165 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11166 ;; 11167 RCC*) 11168 # Rational C++ 2.4.1 11169 # FIXME: insert proper C++ library support 11170 ld_shlibs_CXX=no 11171 ;; 11172 cxx*) 11173 allow_undefined_flag_CXX=' -expect_unresolved \*' 11174 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11175 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11176 echo "-hidden">> $lib.exp~ 11177 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 11178 $rm $lib.exp' 11179 11180 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11181 hardcode_libdir_separator_CXX=: 11182 11183 # Commands to make compiler produce verbose output that lists 11184 # what "hidden" libraries, object files and flags are used when 11185 # linking a shared library. 11186 # 11187 # There doesn't appear to be a way to prevent this compiler from 11188 # explicitly linking system object files so we need to strip them 11189 # from the output so that they don't get included in the library 11190 # dependencies. 11191 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' 11192 ;; 11193 *) 11194 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11195 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11196 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11197 11198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11199 hardcode_libdir_separator_CXX=: 11200 11201 # Commands to make compiler produce verbose output that lists 11202 # what "hidden" libraries, object files and flags are used when 11203 # linking a shared library. 11204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11205 11206 else 11207 # FIXME: insert proper C++ library support 11208 ld_shlibs_CXX=no 11209 fi 11210 ;; 11211 esac 11212 ;; 11213 psos*) 11214 # FIXME: insert proper C++ library support 11215 ld_shlibs_CXX=no 11216 ;; 11217 sunos4*) 11218 case $cc_basename in 11219 CC*) 11220 # Sun C++ 4.x 11221 # FIXME: insert proper C++ library support 11222 ld_shlibs_CXX=no 11223 ;; 11224 lcc*) 11225 # Lucid 11226 # FIXME: insert proper C++ library support 11227 ld_shlibs_CXX=no 11228 ;; 11229 *) 11230 # FIXME: insert proper C++ library support 11231 ld_shlibs_CXX=no 11232 ;; 11233 esac 11234 ;; 11235 solaris*) 11236 case $cc_basename in 11237 CC*) 11238 # Sun C++ 4.2, 5.x and Centerline C++ 11239 archive_cmds_need_lc_CXX=yes 11240 no_undefined_flag_CXX=' -zdefs' 11241 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11242 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11243 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11244 11245 hardcode_libdir_flag_spec_CXX='-R$libdir' 11246 hardcode_shlibpath_var_CXX=no 11247 case $host_os in 11248 solaris2.[0-5] | solaris2.[0-5].*) ;; 11249 *) 11250 # The C++ compiler is used as linker so we must use $wl 11251 # flag to pass the commands to the underlying system 11252 # linker. We must also pass each convience library through 11253 # to the system linker between allextract/defaultextract. 11254 # The C++ compiler will combine linker options so we 11255 # cannot just pass the convience library names through 11256 # without $wl. 11257 # Supported since Solaris 2.6 (maybe 2.5.1?) 11258 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 11259 ;; 11260 esac 11261 link_all_deplibs_CXX=yes 11262 11263 output_verbose_link_cmd='echo' 11264 11265 # Archives containing C++ object files must be created using 11266 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11267 # necessary to make sure instantiated templates are included 11268 # in the archive. 11269 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11270 ;; 11271 gcx*) 11272 # Green Hills C++ Compiler 11273 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11274 11275 # The C++ compiler must be used to create the archive. 11276 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11277 ;; 11278 *) 11279 # GNU C++ compiler with Solaris linker 11280 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11281 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11282 if $CC --version | grep -v '^2\.7' > /dev/null; then 11283 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11284 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11285 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11286 11287 # Commands to make compiler produce verbose output that lists 11288 # what "hidden" libraries, object files and flags are used when 11289 # linking a shared library. 11290 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11291 else 11292 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11293 # platform. 11294 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11295 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11296 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11297 11298 # Commands to make compiler produce verbose output that lists 11299 # what "hidden" libraries, object files and flags are used when 11300 # linking a shared library. 11301 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11302 fi 11303 11304 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11305 fi 11306 ;; 11307 esac 11308 ;; 11309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11310 no_undefined_flag_CXX='${wl}-z,text' 11311 archive_cmds_need_lc_CXX=no 11312 hardcode_shlibpath_var_CXX=no 11313 runpath_var='LD_RUN_PATH' 11314 11315 case $cc_basename in 11316 CC*) 11317 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11318 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11319 ;; 11320 *) 11321 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11322 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11323 ;; 11324 esac 11325 ;; 11326 sysv5* | sco3.2v5* | sco5v6*) 11327 # Note: We can NOT use -z defs as we might desire, because we do not 11328 # link with -lc, and that would cause any symbols used from libc to 11329 # always be unresolved, which means just about no library would 11330 # ever link correctly. If we're not using GNU ld we use -z text 11331 # though, which does catch some bad symbols but isn't as heavy-handed 11332 # as -z defs. 11333 # For security reasons, it is highly recommended that you always 11334 # use absolute paths for naming shared libraries, and exclude the 11335 # DT_RUNPATH tag from executables and libraries. But doing so 11336 # requires that you compile everything twice, which is a pain. 11337 # So that behaviour is only enabled if SCOABSPATH is set to a 11338 # non-empty value in the environment. Most likely only useful for 11339 # creating official distributions of packages. 11340 # This is a hack until libtool officially supports absolute path 11341 # names for shared libraries. 11342 no_undefined_flag_CXX='${wl}-z,text' 11343 allow_undefined_flag_CXX='${wl}-z,nodefs' 11344 archive_cmds_need_lc_CXX=no 11345 hardcode_shlibpath_var_CXX=no 11346 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11347 hardcode_libdir_separator_CXX=':' 11348 link_all_deplibs_CXX=yes 11349 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11350 runpath_var='LD_RUN_PATH' 11351 11352 case $cc_basename in 11353 CC*) 11354 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11355 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11356 ;; 11357 *) 11358 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11359 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11360 ;; 11361 esac 11362 ;; 11363 tandem*) 11364 case $cc_basename in 11365 NCC*) 11366 # NonStop-UX NCC 3.20 11367 # FIXME: insert proper C++ library support 11368 ld_shlibs_CXX=no 11369 ;; 11370 *) 11371 # FIXME: insert proper C++ library support 11372 ld_shlibs_CXX=no 11373 ;; 11374 esac 11375 ;; 11376 vxworks*) 11377 # FIXME: insert proper C++ library support 11378 ld_shlibs_CXX=no 11379 ;; 11380 *) 11381 # FIXME: insert proper C++ library support 11382 ld_shlibs_CXX=no 11383 ;; 11384esac 11385echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11386echo "${ECHO_T}$ld_shlibs_CXX" >&6 11387test "$ld_shlibs_CXX" = no && can_build_shared=no 11388 11389GCC_CXX="$GXX" 11390LD_CXX="$LD" 11391 11392## CAVEAT EMPTOR: 11393## There is no encapsulation within the following macros, do not change 11394## the running order or otherwise move them around unless you know exactly 11395## what you are doing... 11396 11397cat > conftest.$ac_ext <<EOF 11398class Foo 11399{ 11400public: 11401 Foo (void) { a = 0; } 11402private: 11403 int a; 11404}; 11405EOF 11406 11407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11408 (eval $ac_compile) 2>&5 11409 ac_status=$? 11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11411 (exit $ac_status); }; then 11412 # Parse the compiler output and extract the necessary 11413 # objects, libraries and library flags. 11414 11415 # Sentinel used to keep track of whether or not we are before 11416 # the conftest object file. 11417 pre_test_object_deps_done=no 11418 11419 # The `*' in the case matches for architectures that use `case' in 11420 # $output_verbose_cmd can trigger glob expansion during the loop 11421 # eval without this substitution. 11422 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11423 11424 for p in `eval $output_verbose_link_cmd`; do 11425 case $p in 11426 11427 -L* | -R* | -l*) 11428 # Some compilers place space between "-{L,R}" and the path. 11429 # Remove the space. 11430 if test $p = "-L" \ 11431 || test $p = "-R"; then 11432 prev=$p 11433 continue 11434 else 11435 prev= 11436 fi 11437 11438 if test "$pre_test_object_deps_done" = no; then 11439 case $p in 11440 -L* | -R*) 11441 # Internal compiler library paths should come after those 11442 # provided the user. The postdeps already come after the 11443 # user supplied libs so there is no need to process them. 11444 if test -z "$compiler_lib_search_path_CXX"; then 11445 compiler_lib_search_path_CXX="${prev}${p}" 11446 else 11447 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11448 fi 11449 ;; 11450 # The "-l" case would never come before the object being 11451 # linked, so don't bother handling this case. 11452 esac 11453 else 11454 if test -z "$postdeps_CXX"; then 11455 postdeps_CXX="${prev}${p}" 11456 else 11457 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11458 fi 11459 fi 11460 ;; 11461 11462 *.$objext) 11463 # This assumes that the test object file only shows up 11464 # once in the compiler output. 11465 if test "$p" = "conftest.$objext"; then 11466 pre_test_object_deps_done=yes 11467 continue 11468 fi 11469 11470 if test "$pre_test_object_deps_done" = no; then 11471 if test -z "$predep_objects_CXX"; then 11472 predep_objects_CXX="$p" 11473 else 11474 predep_objects_CXX="$predep_objects_CXX $p" 11475 fi 11476 else 11477 if test -z "$postdep_objects_CXX"; then 11478 postdep_objects_CXX="$p" 11479 else 11480 postdep_objects_CXX="$postdep_objects_CXX $p" 11481 fi 11482 fi 11483 ;; 11484 11485 *) ;; # Ignore the rest. 11486 11487 esac 11488 done 11489 11490 # Clean up. 11491 rm -f a.out a.exe 11492else 11493 echo "libtool.m4: error: problem compiling CXX test program" 11494fi 11495 11496$rm -f confest.$objext 11497 11498# PORTME: override above test on systems where it is broken 11499case $host_os in 11500interix3*) 11501 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11502 # hack all around it, let's just trust "g++" to DTRT. 11503 predep_objects_CXX= 11504 postdep_objects_CXX= 11505 postdeps_CXX= 11506 ;; 11507 11508solaris*) 11509 case $cc_basename in 11510 CC*) 11511 # Adding this requires a known-good setup of shared libraries for 11512 # Sun compiler versions before 5.6, else PIC objects from an old 11513 # archive will be linked into the output, leading to subtle bugs. 11514 postdeps_CXX='-lCstd -lCrun' 11515 ;; 11516 esac 11517 ;; 11518esac 11519 11520 11521case " $postdeps_CXX " in 11522*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11523esac 11524 11525lt_prog_compiler_wl_CXX= 11526lt_prog_compiler_pic_CXX= 11527lt_prog_compiler_static_CXX= 11528 11529echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11530echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11531 11532 # C++ specific cases for pic, static, wl, etc. 11533 if test "$GXX" = yes; then 11534 lt_prog_compiler_wl_CXX='-Wl,' 11535 lt_prog_compiler_static_CXX='-static' 11536 11537 case $host_os in 11538 aix*) 11539 # All AIX code is PIC. 11540 if test "$host_cpu" = ia64; then 11541 # AIX 5 now supports IA64 processor 11542 lt_prog_compiler_static_CXX='-Bstatic' 11543 fi 11544 ;; 11545 amigaos*) 11546 # FIXME: we need at least 68020 code to build shared libraries, but 11547 # adding the `-m68020' flag to GCC prevents building anything better, 11548 # like `-m68040'. 11549 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11550 ;; 11551 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11552 # PIC is the default for these OSes. 11553 ;; 11554 mingw* | os2* | pw32*) 11555 # This hack is so that the source file can tell whether it is being 11556 # built for inclusion in a dll (and should export symbols for example). 11557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11558 ;; 11559 darwin* | rhapsody*) 11560 # PIC is the default on this platform 11561 # Common symbols not allowed in MH_DYLIB files 11562 lt_prog_compiler_pic_CXX='-fno-common' 11563 ;; 11564 *djgpp*) 11565 # DJGPP does not support shared libraries at all 11566 lt_prog_compiler_pic_CXX= 11567 ;; 11568 interix3*) 11569 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11570 # Instead, we relocate shared libraries at runtime. 11571 ;; 11572 sysv4*MP*) 11573 if test -d /usr/nec; then 11574 lt_prog_compiler_pic_CXX=-Kconform_pic 11575 fi 11576 ;; 11577 hpux*) 11578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11579 # not for PA HP-UX. 11580 case $host_cpu in 11581 hppa*64*|ia64*) 11582 ;; 11583 *) 11584 lt_prog_compiler_pic_CXX='-fPIC' 11585 ;; 11586 esac 11587 ;; 11588 *) 11589 lt_prog_compiler_pic_CXX='-fPIC' 11590 ;; 11591 esac 11592 else 11593 case $host_os in 11594 aix4* | aix5*) 11595 # All AIX code is PIC. 11596 if test "$host_cpu" = ia64; then 11597 # AIX 5 now supports IA64 processor 11598 lt_prog_compiler_static_CXX='-Bstatic' 11599 else 11600 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11601 fi 11602 ;; 11603 chorus*) 11604 case $cc_basename in 11605 cxch68*) 11606 # Green Hills C++ Compiler 11607 # _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" 11608 ;; 11609 esac 11610 ;; 11611 darwin*) 11612 # PIC is the default on this platform 11613 # Common symbols not allowed in MH_DYLIB files 11614 case $cc_basename in 11615 xlc*) 11616 lt_prog_compiler_pic_CXX='-qnocommon' 11617 lt_prog_compiler_wl_CXX='-Wl,' 11618 ;; 11619 esac 11620 ;; 11621 dgux*) 11622 case $cc_basename in 11623 ec++*) 11624 lt_prog_compiler_pic_CXX='-KPIC' 11625 ;; 11626 ghcx*) 11627 # Green Hills C++ Compiler 11628 lt_prog_compiler_pic_CXX='-pic' 11629 ;; 11630 *) 11631 ;; 11632 esac 11633 ;; 11634 freebsd* | kfreebsd*-gnu | dragonfly*) 11635 # FreeBSD uses GNU C++ 11636 ;; 11637 hpux9* | hpux10* | hpux11*) 11638 case $cc_basename in 11639 CC*) 11640 lt_prog_compiler_wl_CXX='-Wl,' 11641 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11642 if test "$host_cpu" != ia64; then 11643 lt_prog_compiler_pic_CXX='+Z' 11644 fi 11645 ;; 11646 aCC*) 11647 lt_prog_compiler_wl_CXX='-Wl,' 11648 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11649 case $host_cpu in 11650 hppa*64*|ia64*) 11651 # +Z the default 11652 ;; 11653 *) 11654 lt_prog_compiler_pic_CXX='+Z' 11655 ;; 11656 esac 11657 ;; 11658 *) 11659 ;; 11660 esac 11661 ;; 11662 interix*) 11663 # This is c89, which is MS Visual C++ (no shared libs) 11664 # Anyone wants to do a port? 11665 ;; 11666 irix5* | irix6* | nonstopux*) 11667 case $cc_basename in 11668 CC*) 11669 lt_prog_compiler_wl_CXX='-Wl,' 11670 lt_prog_compiler_static_CXX='-non_shared' 11671 # CC pic flag -KPIC is the default. 11672 ;; 11673 *) 11674 ;; 11675 esac 11676 ;; 11677 linux*) 11678 case $cc_basename in 11679 KCC*) 11680 # KAI C++ Compiler 11681 lt_prog_compiler_wl_CXX='--backend -Wl,' 11682 lt_prog_compiler_pic_CXX='-fPIC' 11683 ;; 11684 icpc* | ecpc*) 11685 # Intel C++ 11686 lt_prog_compiler_wl_CXX='-Wl,' 11687 lt_prog_compiler_pic_CXX='-KPIC' 11688 lt_prog_compiler_static_CXX='-static' 11689 ;; 11690 pgCC*) 11691 # Portland Group C++ compiler. 11692 lt_prog_compiler_wl_CXX='-Wl,' 11693 lt_prog_compiler_pic_CXX='-fpic' 11694 lt_prog_compiler_static_CXX='-Bstatic' 11695 ;; 11696 cxx*) 11697 # Compaq C++ 11698 # Make sure the PIC flag is empty. It appears that all Alpha 11699 # Linux and Compaq Tru64 Unix objects are PIC. 11700 lt_prog_compiler_pic_CXX= 11701 lt_prog_compiler_static_CXX='-non_shared' 11702 ;; 11703 *) 11704 ;; 11705 esac 11706 ;; 11707 lynxos*) 11708 ;; 11709 m88k*) 11710 ;; 11711 mvs*) 11712 case $cc_basename in 11713 cxx*) 11714 lt_prog_compiler_pic_CXX='-W c,exportall' 11715 ;; 11716 *) 11717 ;; 11718 esac 11719 ;; 11720 netbsd*) 11721 ;; 11722 osf3* | osf4* | osf5*) 11723 case $cc_basename in 11724 KCC*) 11725 lt_prog_compiler_wl_CXX='--backend -Wl,' 11726 ;; 11727 RCC*) 11728 # Rational C++ 2.4.1 11729 lt_prog_compiler_pic_CXX='-pic' 11730 ;; 11731 cxx*) 11732 # Digital/Compaq C++ 11733 lt_prog_compiler_wl_CXX='-Wl,' 11734 # Make sure the PIC flag is empty. It appears that all Alpha 11735 # Linux and Compaq Tru64 Unix objects are PIC. 11736 lt_prog_compiler_pic_CXX= 11737 lt_prog_compiler_static_CXX='-non_shared' 11738 ;; 11739 *) 11740 ;; 11741 esac 11742 ;; 11743 psos*) 11744 ;; 11745 solaris*) 11746 case $cc_basename in 11747 CC*) 11748 # Sun C++ 4.2, 5.x and Centerline C++ 11749 lt_prog_compiler_pic_CXX='-KPIC' 11750 lt_prog_compiler_static_CXX='-Bstatic' 11751 lt_prog_compiler_wl_CXX='-Qoption ld ' 11752 ;; 11753 gcx*) 11754 # Green Hills C++ Compiler 11755 lt_prog_compiler_pic_CXX='-PIC' 11756 ;; 11757 *) 11758 ;; 11759 esac 11760 ;; 11761 sunos4*) 11762 case $cc_basename in 11763 CC*) 11764 # Sun C++ 4.x 11765 lt_prog_compiler_pic_CXX='-pic' 11766 lt_prog_compiler_static_CXX='-Bstatic' 11767 ;; 11768 lcc*) 11769 # Lucid 11770 lt_prog_compiler_pic_CXX='-pic' 11771 ;; 11772 *) 11773 ;; 11774 esac 11775 ;; 11776 tandem*) 11777 case $cc_basename in 11778 NCC*) 11779 # NonStop-UX NCC 3.20 11780 lt_prog_compiler_pic_CXX='-KPIC' 11781 ;; 11782 *) 11783 ;; 11784 esac 11785 ;; 11786 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11787 case $cc_basename in 11788 CC*) 11789 lt_prog_compiler_wl_CXX='-Wl,' 11790 lt_prog_compiler_pic_CXX='-KPIC' 11791 lt_prog_compiler_static_CXX='-Bstatic' 11792 ;; 11793 esac 11794 ;; 11795 vxworks*) 11796 ;; 11797 *) 11798 lt_prog_compiler_can_build_shared_CXX=no 11799 ;; 11800 esac 11801 fi 11802 11803echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11804echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11805 11806# 11807# Check to make sure the PIC flag actually works. 11808# 11809if test -n "$lt_prog_compiler_pic_CXX"; then 11810 11811echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11812echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11813if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11814 echo $ECHO_N "(cached) $ECHO_C" >&6 11815else 11816 lt_prog_compiler_pic_works_CXX=no 11817 ac_outfile=conftest.$ac_objext 11818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11819 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11820 # Insert the option either (1) after the last *FLAGS variable, or 11821 # (2) before a word containing "conftest.", or (3) at the end. 11822 # Note that $ac_compile itself does not contain backslashes and begins 11823 # with a dollar sign (not a hyphen), so the echo should work correctly. 11824 # The option is referenced via a variable to avoid confusing sed. 11825 lt_compile=`echo "$ac_compile" | $SED \ 11826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11828 -e 's:$: $lt_compiler_flag:'` 11829 (eval echo "\"\$as_me:11829: $lt_compile\"" >&5) 11830 (eval "$lt_compile" 2>conftest.err) 11831 ac_status=$? 11832 cat conftest.err >&5 11833 echo "$as_me:11833: \$? = $ac_status" >&5 11834 if (exit $ac_status) && test -s "$ac_outfile"; then 11835 # The compiler can only warn and ignore the option if not recognized 11836 # So say no if there are warnings other than the usual output. 11837 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11840 lt_prog_compiler_pic_works_CXX=yes 11841 fi 11842 fi 11843 $rm conftest* 11844 11845fi 11846echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11847echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11848 11849if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11850 case $lt_prog_compiler_pic_CXX in 11851 "" | " "*) ;; 11852 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11853 esac 11854else 11855 lt_prog_compiler_pic_CXX= 11856 lt_prog_compiler_can_build_shared_CXX=no 11857fi 11858 11859fi 11860case $host_os in 11861 # For platforms which do not support PIC, -DPIC is meaningless: 11862 *djgpp*) 11863 lt_prog_compiler_pic_CXX= 11864 ;; 11865 *) 11866 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11867 ;; 11868esac 11869 11870# 11871# Check to make sure the static flag actually works. 11872# 11873wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11874echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11875echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11876if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11877 echo $ECHO_N "(cached) $ECHO_C" >&6 11878else 11879 lt_prog_compiler_static_works_CXX=no 11880 save_LDFLAGS="$LDFLAGS" 11881 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11882 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11884 # The linker can only warn and ignore the option if not recognized 11885 # So say no if there are warnings 11886 if test -s conftest.err; then 11887 # Append any errors to the config.log. 11888 cat conftest.err 1>&5 11889 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11891 if diff conftest.exp conftest.er2 >/dev/null; then 11892 lt_prog_compiler_static_works_CXX=yes 11893 fi 11894 else 11895 lt_prog_compiler_static_works_CXX=yes 11896 fi 11897 fi 11898 $rm conftest* 11899 LDFLAGS="$save_LDFLAGS" 11900 11901fi 11902echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11903echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11904 11905if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11906 : 11907else 11908 lt_prog_compiler_static_CXX= 11909fi 11910 11911 11912echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11913echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11914if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11915 echo $ECHO_N "(cached) $ECHO_C" >&6 11916else 11917 lt_cv_prog_compiler_c_o_CXX=no 11918 $rm -r conftest 2>/dev/null 11919 mkdir conftest 11920 cd conftest 11921 mkdir out 11922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11923 11924 lt_compiler_flag="-o out/conftest2.$ac_objext" 11925 # Insert the option either (1) after the last *FLAGS variable, or 11926 # (2) before a word containing "conftest.", or (3) at the end. 11927 # Note that $ac_compile itself does not contain backslashes and begins 11928 # with a dollar sign (not a hyphen), so the echo should work correctly. 11929 lt_compile=`echo "$ac_compile" | $SED \ 11930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11932 -e 's:$: $lt_compiler_flag:'` 11933 (eval echo "\"\$as_me:11933: $lt_compile\"" >&5) 11934 (eval "$lt_compile" 2>out/conftest.err) 11935 ac_status=$? 11936 cat out/conftest.err >&5 11937 echo "$as_me:11937: \$? = $ac_status" >&5 11938 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11939 then 11940 # The compiler can only warn and ignore the option if not recognized 11941 # So say no if there are warnings 11942 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11943 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11944 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11945 lt_cv_prog_compiler_c_o_CXX=yes 11946 fi 11947 fi 11948 chmod u+w . 2>&5 11949 $rm conftest* 11950 # SGI C++ compiler will create directory out/ii_files/ for 11951 # template instantiation 11952 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11953 $rm out/* && rmdir out 11954 cd .. 11955 rmdir conftest 11956 $rm conftest* 11957 11958fi 11959echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11960echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11961 11962 11963hard_links="nottested" 11964if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11965 # do not overwrite the value of need_locks provided by the user 11966 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11967echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11968 hard_links=yes 11969 $rm conftest* 11970 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11971 touch conftest.a 11972 ln conftest.a conftest.b 2>&5 || hard_links=no 11973 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11974 echo "$as_me:$LINENO: result: $hard_links" >&5 11975echo "${ECHO_T}$hard_links" >&6 11976 if test "$hard_links" = no; then 11977 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11978echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11979 need_locks=warn 11980 fi 11981else 11982 need_locks=no 11983fi 11984 11985echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11986echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11987 11988 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11989 case $host_os in 11990 aix4* | aix5*) 11991 # If we're using GNU nm, then we don't want the "-C" option. 11992 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11993 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11994 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' 11995 else 11996 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' 11997 fi 11998 ;; 11999 pw32*) 12000 export_symbols_cmds_CXX="$ltdll_cmds" 12001 ;; 12002 cygwin* | mingw*) 12003 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12004 ;; 12005 *) 12006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12007 ;; 12008 esac 12009 12010echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12011echo "${ECHO_T}$ld_shlibs_CXX" >&6 12012test "$ld_shlibs_CXX" = no && can_build_shared=no 12013 12014# 12015# Do we need to explicitly link libc? 12016# 12017case "x$archive_cmds_need_lc_CXX" in 12018x|xyes) 12019 # Assume -lc should be added 12020 archive_cmds_need_lc_CXX=yes 12021 12022 if test "$enable_shared" = yes && test "$GCC" = yes; then 12023 case $archive_cmds_CXX in 12024 *'~'*) 12025 # FIXME: we may have to deal with multi-command sequences. 12026 ;; 12027 '$CC '*) 12028 # Test whether the compiler implicitly links with -lc since on some 12029 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12030 # to ld, don't add -lc before -lgcc. 12031 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12032echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12033 $rm conftest* 12034 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12035 12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12037 (eval $ac_compile) 2>&5 12038 ac_status=$? 12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12040 (exit $ac_status); } 2>conftest.err; then 12041 soname=conftest 12042 lib=conftest 12043 libobjs=conftest.$ac_objext 12044 deplibs= 12045 wl=$lt_prog_compiler_wl_CXX 12046 pic_flag=$lt_prog_compiler_pic_CXX 12047 compiler_flags=-v 12048 linker_flags=-v 12049 verstring= 12050 output_objdir=. 12051 libname=conftest 12052 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12053 allow_undefined_flag_CXX= 12054 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12055 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12056 ac_status=$? 12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12058 (exit $ac_status); } 12059 then 12060 archive_cmds_need_lc_CXX=no 12061 else 12062 archive_cmds_need_lc_CXX=yes 12063 fi 12064 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12065 else 12066 cat conftest.err 1>&5 12067 fi 12068 $rm conftest* 12069 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12070echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12071 ;; 12072 esac 12073 fi 12074 ;; 12075esac 12076 12077echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12078echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12079library_names_spec= 12080libname_spec='lib$name' 12081soname_spec= 12082shrext_cmds=".so" 12083postinstall_cmds= 12084postuninstall_cmds= 12085finish_cmds= 12086finish_eval= 12087shlibpath_var= 12088shlibpath_overrides_runpath=unknown 12089version_type=none 12090dynamic_linker="$host_os ld.so" 12091sys_lib_dlsearch_path_spec="/lib /usr/lib" 12092if test "$GCC" = yes; then 12093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12094 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12095 # if the path contains ";" then we assume it to be the separator 12096 # otherwise default to the standard path separator (i.e. ":") - it is 12097 # assumed that no part of a normal pathname contains ";" but that should 12098 # okay in the real world where ";" in dirpaths is itself problematic. 12099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12100 else 12101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12102 fi 12103else 12104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12105fi 12106need_lib_prefix=unknown 12107hardcode_into_libs=no 12108 12109# when you set need_version to no, make sure it does not cause -set_version 12110# flags to be left without arguments 12111need_version=unknown 12112 12113case $host_os in 12114aix3*) 12115 version_type=linux 12116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12117 shlibpath_var=LIBPATH 12118 12119 # AIX 3 has no versioning support, so we append a major version to the name. 12120 soname_spec='${libname}${release}${shared_ext}$major' 12121 ;; 12122 12123aix4* | aix5*) 12124 version_type=linux 12125 need_lib_prefix=no 12126 need_version=no 12127 hardcode_into_libs=yes 12128 if test "$host_cpu" = ia64; then 12129 # AIX 5 supports IA64 12130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12131 shlibpath_var=LD_LIBRARY_PATH 12132 else 12133 # With GCC up to 2.95.x, collect2 would create an import file 12134 # for dependence libraries. The import file would start with 12135 # the line `#! .'. This would cause the generated library to 12136 # depend on `.', always an invalid library. This was fixed in 12137 # development snapshots of GCC prior to 3.0. 12138 case $host_os in 12139 aix4 | aix4.[01] | aix4.[01].*) 12140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12141 echo ' yes ' 12142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12143 : 12144 else 12145 can_build_shared=no 12146 fi 12147 ;; 12148 esac 12149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12150 # soname into executable. Probably we can add versioning support to 12151 # collect2, so additional links can be useful in future. 12152 if test "$aix_use_runtimelinking" = yes; then 12153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12154 # instead of lib<name>.a to let people know that these are not 12155 # typical AIX shared libraries. 12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12157 else 12158 # We preserve .a as extension for shared libraries through AIX4.2 12159 # and later when we are not doing run time linking. 12160 library_names_spec='${libname}${release}.a $libname.a' 12161 soname_spec='${libname}${release}${shared_ext}$major' 12162 fi 12163 shlibpath_var=LIBPATH 12164 fi 12165 ;; 12166 12167amigaos*) 12168 library_names_spec='$libname.ixlibrary $libname.a' 12169 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12170 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' 12171 ;; 12172 12173beos*) 12174 library_names_spec='${libname}${shared_ext}' 12175 dynamic_linker="$host_os ld.so" 12176 shlibpath_var=LIBRARY_PATH 12177 ;; 12178 12179bsdi[45]*) 12180 version_type=linux 12181 need_version=no 12182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12183 soname_spec='${libname}${release}${shared_ext}$major' 12184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12185 shlibpath_var=LD_LIBRARY_PATH 12186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12188 # the default ld.so.conf also contains /usr/contrib/lib and 12189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12190 # libtool to hard-code these into programs 12191 ;; 12192 12193cygwin* | mingw* | pw32*) 12194 version_type=windows 12195 shrext_cmds=".dll" 12196 need_version=no 12197 need_lib_prefix=no 12198 12199 case $GCC,$host_os in 12200 yes,cygwin* | yes,mingw* | yes,pw32*) 12201 library_names_spec='$libname.dll.a' 12202 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12203 postinstall_cmds='base_file=`basename \${file}`~ 12204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12205 dldir=$destdir/`dirname \$dlpath`~ 12206 test -d \$dldir || mkdir -p \$dldir~ 12207 $install_prog $dir/$dlname \$dldir/$dlname~ 12208 chmod a+x \$dldir/$dlname' 12209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12210 dlpath=$dir/\$dldll~ 12211 $rm \$dlpath' 12212 shlibpath_overrides_runpath=yes 12213 12214 case $host_os in 12215 cygwin*) 12216 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12218 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12219 ;; 12220 mingw*) 12221 # MinGW DLLs use traditional 'lib' prefix 12222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12224 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12225 # It is most probably a Windows format PATH printed by 12226 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12227 # path with ; separators, and with drive letters. We can handle the 12228 # drive letters (cygwin fileutils understands them), so leave them, 12229 # especially as we might pass files found there to a mingw objdump, 12230 # which wouldn't understand a cygwinified path. Ahh. 12231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12232 else 12233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12234 fi 12235 ;; 12236 pw32*) 12237 # pw32 DLLs use 'pw' prefix rather than 'lib' 12238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12239 ;; 12240 esac 12241 ;; 12242 12243 *) 12244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12245 ;; 12246 esac 12247 dynamic_linker='Win32 ld.exe' 12248 # FIXME: first we should search . and the directory the executable is in 12249 shlibpath_var=PATH 12250 ;; 12251 12252darwin* | rhapsody*) 12253 dynamic_linker="$host_os dyld" 12254 version_type=darwin 12255 need_lib_prefix=no 12256 need_version=no 12257 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12258 soname_spec='${libname}${release}${major}$shared_ext' 12259 shlibpath_overrides_runpath=yes 12260 shlibpath_var=DYLD_LIBRARY_PATH 12261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12262 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12263 if test "$GCC" = yes; then 12264 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"` 12265 else 12266 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12267 fi 12268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12269 ;; 12270 12271dgux*) 12272 version_type=linux 12273 need_lib_prefix=no 12274 need_version=no 12275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12276 soname_spec='${libname}${release}${shared_ext}$major' 12277 shlibpath_var=LD_LIBRARY_PATH 12278 ;; 12279 12280freebsd1*) 12281 dynamic_linker=no 12282 ;; 12283 12284kfreebsd*-gnu) 12285 version_type=linux 12286 need_lib_prefix=no 12287 need_version=no 12288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12289 soname_spec='${libname}${release}${shared_ext}$major' 12290 shlibpath_var=LD_LIBRARY_PATH 12291 shlibpath_overrides_runpath=no 12292 hardcode_into_libs=yes 12293 dynamic_linker='GNU ld.so' 12294 ;; 12295 12296freebsd* | dragonfly*) 12297 # DragonFly does not have aout. When/if they implement a new 12298 # versioning mechanism, adjust this. 12299 if test -x /usr/bin/objformat; then 12300 objformat=`/usr/bin/objformat` 12301 else 12302 case $host_os in 12303 freebsd[123]*) objformat=aout ;; 12304 *) objformat=elf ;; 12305 esac 12306 fi 12307 version_type=freebsd-$objformat 12308 case $version_type in 12309 freebsd-elf*) 12310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12311 need_version=no 12312 need_lib_prefix=no 12313 ;; 12314 freebsd-*) 12315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12316 need_version=yes 12317 ;; 12318 esac 12319 shlibpath_var=LD_LIBRARY_PATH 12320 case $host_os in 12321 freebsd2*) 12322 shlibpath_overrides_runpath=yes 12323 ;; 12324 freebsd3.[01]* | freebsdelf3.[01]*) 12325 shlibpath_overrides_runpath=yes 12326 hardcode_into_libs=yes 12327 ;; 12328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12330 shlibpath_overrides_runpath=no 12331 hardcode_into_libs=yes 12332 ;; 12333 freebsd*) # from 4.6 on 12334 shlibpath_overrides_runpath=yes 12335 hardcode_into_libs=yes 12336 ;; 12337 esac 12338 ;; 12339 12340gnu*) 12341 version_type=linux 12342 need_lib_prefix=no 12343 need_version=no 12344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12345 soname_spec='${libname}${release}${shared_ext}$major' 12346 shlibpath_var=LD_LIBRARY_PATH 12347 hardcode_into_libs=yes 12348 ;; 12349 12350hpux9* | hpux10* | hpux11*) 12351 # Give a soname corresponding to the major version so that dld.sl refuses to 12352 # link against other versions. 12353 version_type=sunos 12354 need_lib_prefix=no 12355 need_version=no 12356 case $host_cpu in 12357 ia64*) 12358 shrext_cmds='.so' 12359 hardcode_into_libs=yes 12360 dynamic_linker="$host_os dld.so" 12361 shlibpath_var=LD_LIBRARY_PATH 12362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12364 soname_spec='${libname}${release}${shared_ext}$major' 12365 if test "X$HPUX_IA64_MODE" = X32; then 12366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12367 else 12368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12369 fi 12370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12371 ;; 12372 hppa*64*) 12373 shrext_cmds='.sl' 12374 hardcode_into_libs=yes 12375 dynamic_linker="$host_os dld.sl" 12376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12379 soname_spec='${libname}${release}${shared_ext}$major' 12380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12382 ;; 12383 *) 12384 shrext_cmds='.sl' 12385 dynamic_linker="$host_os dld.sl" 12386 shlibpath_var=SHLIB_PATH 12387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12389 soname_spec='${libname}${release}${shared_ext}$major' 12390 ;; 12391 esac 12392 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12393 postinstall_cmds='chmod 555 $lib' 12394 ;; 12395 12396interix3*) 12397 version_type=linux 12398 need_lib_prefix=no 12399 need_version=no 12400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12401 soname_spec='${libname}${release}${shared_ext}$major' 12402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12403 shlibpath_var=LD_LIBRARY_PATH 12404 shlibpath_overrides_runpath=no 12405 hardcode_into_libs=yes 12406 ;; 12407 12408irix5* | irix6* | nonstopux*) 12409 case $host_os in 12410 nonstopux*) version_type=nonstopux ;; 12411 *) 12412 if test "$lt_cv_prog_gnu_ld" = yes; then 12413 version_type=linux 12414 else 12415 version_type=irix 12416 fi ;; 12417 esac 12418 need_lib_prefix=no 12419 need_version=no 12420 soname_spec='${libname}${release}${shared_ext}$major' 12421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12422 case $host_os in 12423 irix5* | nonstopux*) 12424 libsuff= shlibsuff= 12425 ;; 12426 *) 12427 case $LD in # libtool.m4 will add one of these switches to LD 12428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12429 libsuff= shlibsuff= libmagic=32-bit;; 12430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12431 libsuff=32 shlibsuff=N32 libmagic=N32;; 12432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12433 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12434 *) libsuff= shlibsuff= libmagic=never-match;; 12435 esac 12436 ;; 12437 esac 12438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12439 shlibpath_overrides_runpath=no 12440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12442 hardcode_into_libs=yes 12443 ;; 12444 12445# No shared lib support for Linux oldld, aout, or coff. 12446linux*oldld* | linux*aout* | linux*coff*) 12447 dynamic_linker=no 12448 ;; 12449 12450# This must be Linux ELF. 12451linux*) 12452 version_type=linux 12453 need_lib_prefix=no 12454 need_version=no 12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12456 soname_spec='${libname}${release}${shared_ext}$major' 12457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12458 shlibpath_var=LD_LIBRARY_PATH 12459 shlibpath_overrides_runpath=no 12460 # This implies no fast_install, which is unacceptable. 12461 # Some rework will be needed to allow for fast_install 12462 # before this can be enabled. 12463 hardcode_into_libs=yes 12464 12465 # Append ld.so.conf contents to the search path 12466 if test -f /etc/ld.so.conf; then 12467 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12469 fi 12470 12471 # We used to test for /lib/ld.so.1 and disable shared libraries on 12472 # powerpc, because MkLinux only supported shared libraries with the 12473 # GNU dynamic linker. Since this was broken with cross compilers, 12474 # most powerpc-linux boxes support dynamic linking these days and 12475 # people can always --disable-shared, the test was removed, and we 12476 # assume the GNU/Linux dynamic linker is in use. 12477 dynamic_linker='GNU/Linux ld.so' 12478 ;; 12479 12480knetbsd*-gnu) 12481 version_type=linux 12482 need_lib_prefix=no 12483 need_version=no 12484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12485 soname_spec='${libname}${release}${shared_ext}$major' 12486 shlibpath_var=LD_LIBRARY_PATH 12487 shlibpath_overrides_runpath=no 12488 hardcode_into_libs=yes 12489 dynamic_linker='GNU ld.so' 12490 ;; 12491 12492netbsd*) 12493 version_type=sunos 12494 need_lib_prefix=no 12495 need_version=no 12496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12499 dynamic_linker='NetBSD (a.out) ld.so' 12500 else 12501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12502 soname_spec='${libname}${release}${shared_ext}$major' 12503 dynamic_linker='NetBSD ld.elf_so' 12504 fi 12505 shlibpath_var=LD_LIBRARY_PATH 12506 shlibpath_overrides_runpath=yes 12507 hardcode_into_libs=yes 12508 ;; 12509 12510newsos6) 12511 version_type=linux 12512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12513 shlibpath_var=LD_LIBRARY_PATH 12514 shlibpath_overrides_runpath=yes 12515 ;; 12516 12517nto-qnx*) 12518 version_type=linux 12519 need_lib_prefix=no 12520 need_version=no 12521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12522 soname_spec='${libname}${release}${shared_ext}$major' 12523 shlibpath_var=LD_LIBRARY_PATH 12524 shlibpath_overrides_runpath=yes 12525 ;; 12526 12527openbsd*) 12528 version_type=sunos 12529 sys_lib_dlsearch_path_spec="/usr/lib" 12530 need_lib_prefix=no 12531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12532 case $host_os in 12533 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12534 *) need_version=no ;; 12535 esac 12536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12538 shlibpath_var=LD_LIBRARY_PATH 12539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12540 case $host_os in 12541 openbsd2.[89] | openbsd2.[89].*) 12542 shlibpath_overrides_runpath=no 12543 ;; 12544 *) 12545 shlibpath_overrides_runpath=yes 12546 ;; 12547 esac 12548 else 12549 shlibpath_overrides_runpath=yes 12550 fi 12551 ;; 12552 12553os2*) 12554 libname_spec='$name' 12555 shrext_cmds=".dll" 12556 need_lib_prefix=no 12557 library_names_spec='$libname${shared_ext} $libname.a' 12558 dynamic_linker='OS/2 ld.exe' 12559 shlibpath_var=LIBPATH 12560 ;; 12561 12562osf3* | osf4* | osf5*) 12563 version_type=osf 12564 need_lib_prefix=no 12565 need_version=no 12566 soname_spec='${libname}${release}${shared_ext}$major' 12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12568 shlibpath_var=LD_LIBRARY_PATH 12569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12571 ;; 12572 12573solaris*) 12574 version_type=linux 12575 need_lib_prefix=no 12576 need_version=no 12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12578 soname_spec='${libname}${release}${shared_ext}$major' 12579 shlibpath_var=LD_LIBRARY_PATH 12580 shlibpath_overrides_runpath=yes 12581 hardcode_into_libs=yes 12582 # ldd complains unless libraries are executable 12583 postinstall_cmds='chmod +x $lib' 12584 ;; 12585 12586sunos4*) 12587 version_type=sunos 12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12589 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12590 shlibpath_var=LD_LIBRARY_PATH 12591 shlibpath_overrides_runpath=yes 12592 if test "$with_gnu_ld" = yes; then 12593 need_lib_prefix=no 12594 fi 12595 need_version=yes 12596 ;; 12597 12598sysv4 | sysv4.3*) 12599 version_type=linux 12600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12601 soname_spec='${libname}${release}${shared_ext}$major' 12602 shlibpath_var=LD_LIBRARY_PATH 12603 case $host_vendor in 12604 sni) 12605 shlibpath_overrides_runpath=no 12606 need_lib_prefix=no 12607 export_dynamic_flag_spec='${wl}-Blargedynsym' 12608 runpath_var=LD_RUN_PATH 12609 ;; 12610 siemens) 12611 need_lib_prefix=no 12612 ;; 12613 motorola) 12614 need_lib_prefix=no 12615 need_version=no 12616 shlibpath_overrides_runpath=no 12617 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12618 ;; 12619 esac 12620 ;; 12621 12622sysv4*MP*) 12623 if test -d /usr/nec ;then 12624 version_type=linux 12625 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12626 soname_spec='$libname${shared_ext}.$major' 12627 shlibpath_var=LD_LIBRARY_PATH 12628 fi 12629 ;; 12630 12631sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12632 version_type=freebsd-elf 12633 need_lib_prefix=no 12634 need_version=no 12635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12636 soname_spec='${libname}${release}${shared_ext}$major' 12637 shlibpath_var=LD_LIBRARY_PATH 12638 hardcode_into_libs=yes 12639 if test "$with_gnu_ld" = yes; then 12640 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12641 shlibpath_overrides_runpath=no 12642 else 12643 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12644 shlibpath_overrides_runpath=yes 12645 case $host_os in 12646 sco3.2v5*) 12647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12648 ;; 12649 esac 12650 fi 12651 sys_lib_dlsearch_path_spec='/usr/lib' 12652 ;; 12653 12654uts4*) 12655 version_type=linux 12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12657 soname_spec='${libname}${release}${shared_ext}$major' 12658 shlibpath_var=LD_LIBRARY_PATH 12659 ;; 12660 12661*) 12662 dynamic_linker=no 12663 ;; 12664esac 12665echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12666echo "${ECHO_T}$dynamic_linker" >&6 12667test "$dynamic_linker" = no && can_build_shared=no 12668 12669variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12670if test "$GCC" = yes; then 12671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12672fi 12673 12674echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12675echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12676hardcode_action_CXX= 12677if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12678 test -n "$runpath_var_CXX" || \ 12679 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12680 12681 # We can hardcode non-existant directories. 12682 if test "$hardcode_direct_CXX" != no && 12683 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12684 # have to relink, otherwise we might link with an installed library 12685 # when we should be linking with a yet-to-be-installed one 12686 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12687 test "$hardcode_minus_L_CXX" != no; then 12688 # Linking always hardcodes the temporary library directory. 12689 hardcode_action_CXX=relink 12690 else 12691 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12692 hardcode_action_CXX=immediate 12693 fi 12694else 12695 # We cannot hardcode anything, or else we can only hardcode existing 12696 # directories. 12697 hardcode_action_CXX=unsupported 12698fi 12699echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12700echo "${ECHO_T}$hardcode_action_CXX" >&6 12701 12702if test "$hardcode_action_CXX" = relink; then 12703 # Fast installation is not supported 12704 enable_fast_install=no 12705elif test "$shlibpath_overrides_runpath" = yes || 12706 test "$enable_shared" = no; then 12707 # Fast installation is not necessary 12708 enable_fast_install=needless 12709fi 12710 12711 12712# The else clause should only fire when bootstrapping the 12713# libtool distribution, otherwise you forgot to ship ltmain.sh 12714# with your package, and you will get complaints that there are 12715# no rules to generate ltmain.sh. 12716if test -f "$ltmain"; then 12717 # See if we are running on zsh, and set the options which allow our commands through 12718 # without removal of \ escapes. 12719 if test -n "${ZSH_VERSION+set}" ; then 12720 setopt NO_GLOB_SUBST 12721 fi 12722 # Now quote all the things that may contain metacharacters while being 12723 # careful not to overquote the AC_SUBSTed values. We take copies of the 12724 # variables and quote the copies for generation of the libtool script. 12725 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12726 SED SHELL STRIP \ 12727 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12728 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12729 deplibs_check_method reload_flag reload_cmds need_locks \ 12730 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12731 lt_cv_sys_global_symbol_to_c_name_address \ 12732 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12733 old_postinstall_cmds old_postuninstall_cmds \ 12734 compiler_CXX \ 12735 CC_CXX \ 12736 LD_CXX \ 12737 lt_prog_compiler_wl_CXX \ 12738 lt_prog_compiler_pic_CXX \ 12739 lt_prog_compiler_static_CXX \ 12740 lt_prog_compiler_no_builtin_flag_CXX \ 12741 export_dynamic_flag_spec_CXX \ 12742 thread_safe_flag_spec_CXX \ 12743 whole_archive_flag_spec_CXX \ 12744 enable_shared_with_static_runtimes_CXX \ 12745 old_archive_cmds_CXX \ 12746 old_archive_from_new_cmds_CXX \ 12747 predep_objects_CXX \ 12748 postdep_objects_CXX \ 12749 predeps_CXX \ 12750 postdeps_CXX \ 12751 compiler_lib_search_path_CXX \ 12752 archive_cmds_CXX \ 12753 archive_expsym_cmds_CXX \ 12754 postinstall_cmds_CXX \ 12755 postuninstall_cmds_CXX \ 12756 old_archive_from_expsyms_cmds_CXX \ 12757 allow_undefined_flag_CXX \ 12758 no_undefined_flag_CXX \ 12759 export_symbols_cmds_CXX \ 12760 hardcode_libdir_flag_spec_CXX \ 12761 hardcode_libdir_flag_spec_ld_CXX \ 12762 hardcode_libdir_separator_CXX \ 12763 hardcode_automatic_CXX \ 12764 module_cmds_CXX \ 12765 module_expsym_cmds_CXX \ 12766 lt_cv_prog_compiler_c_o_CXX \ 12767 exclude_expsyms_CXX \ 12768 include_expsyms_CXX; do 12769 12770 case $var in 12771 old_archive_cmds_CXX | \ 12772 old_archive_from_new_cmds_CXX | \ 12773 archive_cmds_CXX | \ 12774 archive_expsym_cmds_CXX | \ 12775 module_cmds_CXX | \ 12776 module_expsym_cmds_CXX | \ 12777 old_archive_from_expsyms_cmds_CXX | \ 12778 export_symbols_cmds_CXX | \ 12779 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12780 postinstall_cmds | postuninstall_cmds | \ 12781 old_postinstall_cmds | old_postuninstall_cmds | \ 12782 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12783 # Double-quote double-evaled strings. 12784 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12785 ;; 12786 *) 12787 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12788 ;; 12789 esac 12790 done 12791 12792 case $lt_echo in 12793 *'\$0 --fallback-echo"') 12794 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12795 ;; 12796 esac 12797 12798cfgfile="$ofile" 12799 12800 cat <<__EOF__ >> "$cfgfile" 12801# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12802 12803# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12804 12805# Shell to use when invoking shell scripts. 12806SHELL=$lt_SHELL 12807 12808# Whether or not to build shared libraries. 12809build_libtool_libs=$enable_shared 12810 12811# Whether or not to build static libraries. 12812build_old_libs=$enable_static 12813 12814# Whether or not to add -lc for building shared libraries. 12815build_libtool_need_lc=$archive_cmds_need_lc_CXX 12816 12817# Whether or not to disallow shared libs when runtime libs are static 12818allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12819 12820# Whether or not to optimize for fast installation. 12821fast_install=$enable_fast_install 12822 12823# The host system. 12824host_alias=$host_alias 12825host=$host 12826host_os=$host_os 12827 12828# The build system. 12829build_alias=$build_alias 12830build=$build 12831build_os=$build_os 12832 12833# An echo program that does not interpret backslashes. 12834echo=$lt_echo 12835 12836# The archiver. 12837AR=$lt_AR 12838AR_FLAGS=$lt_AR_FLAGS 12839 12840# A C compiler. 12841LTCC=$lt_LTCC 12842 12843# LTCC compiler flags. 12844LTCFLAGS=$lt_LTCFLAGS 12845 12846# A language-specific compiler. 12847CC=$lt_compiler_CXX 12848 12849# Is the compiler the GNU C compiler? 12850with_gcc=$GCC_CXX 12851 12852# An ERE matcher. 12853EGREP=$lt_EGREP 12854 12855# The linker used to build libraries. 12856LD=$lt_LD_CXX 12857 12858# Whether we need hard or soft links. 12859LN_S=$lt_LN_S 12860 12861# A BSD-compatible nm program. 12862NM=$lt_NM 12863 12864# A symbol stripping program 12865STRIP=$lt_STRIP 12866 12867# Used to examine libraries when file_magic_cmd begins "file" 12868MAGIC_CMD=$MAGIC_CMD 12869 12870# Used on cygwin: DLL creation program. 12871DLLTOOL="$DLLTOOL" 12872 12873# Used on cygwin: object dumper. 12874OBJDUMP="$OBJDUMP" 12875 12876# Used on cygwin: assembler. 12877AS="$AS" 12878 12879# The name of the directory that contains temporary libtool files. 12880objdir=$objdir 12881 12882# How to create reloadable object files. 12883reload_flag=$lt_reload_flag 12884reload_cmds=$lt_reload_cmds 12885 12886# How to pass a linker flag through the compiler. 12887wl=$lt_lt_prog_compiler_wl_CXX 12888 12889# Object file suffix (normally "o"). 12890objext="$ac_objext" 12891 12892# Old archive suffix (normally "a"). 12893libext="$libext" 12894 12895# Shared library suffix (normally ".so"). 12896shrext_cmds='$shrext_cmds' 12897 12898# Executable file suffix (normally ""). 12899exeext="$exeext" 12900 12901# Additional compiler flags for building library objects. 12902pic_flag=$lt_lt_prog_compiler_pic_CXX 12903pic_mode=$pic_mode 12904 12905# What is the maximum length of a command? 12906max_cmd_len=$lt_cv_sys_max_cmd_len 12907 12908# Does compiler simultaneously support -c and -o options? 12909compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12910 12911# Must we lock files when doing compilation? 12912need_locks=$lt_need_locks 12913 12914# Do we need the lib prefix for modules? 12915need_lib_prefix=$need_lib_prefix 12916 12917# Do we need a version for libraries? 12918need_version=$need_version 12919 12920# Whether dlopen is supported. 12921dlopen_support=$enable_dlopen 12922 12923# Whether dlopen of programs is supported. 12924dlopen_self=$enable_dlopen_self 12925 12926# Whether dlopen of statically linked programs is supported. 12927dlopen_self_static=$enable_dlopen_self_static 12928 12929# Compiler flag to prevent dynamic linking. 12930link_static_flag=$lt_lt_prog_compiler_static_CXX 12931 12932# Compiler flag to turn off builtin functions. 12933no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12934 12935# Compiler flag to allow reflexive dlopens. 12936export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12937 12938# Compiler flag to generate shared objects directly from archives. 12939whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12940 12941# Compiler flag to generate thread-safe objects. 12942thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12943 12944# Library versioning type. 12945version_type=$version_type 12946 12947# Format of library name prefix. 12948libname_spec=$lt_libname_spec 12949 12950# List of archive names. First name is the real one, the rest are links. 12951# The last name is the one that the linker finds with -lNAME. 12952library_names_spec=$lt_library_names_spec 12953 12954# The coded name of the library, if different from the real name. 12955soname_spec=$lt_soname_spec 12956 12957# Commands used to build and install an old-style archive. 12958RANLIB=$lt_RANLIB 12959old_archive_cmds=$lt_old_archive_cmds_CXX 12960old_postinstall_cmds=$lt_old_postinstall_cmds 12961old_postuninstall_cmds=$lt_old_postuninstall_cmds 12962 12963# Create an old-style archive from a shared archive. 12964old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12965 12966# Create a temporary old-style archive to link instead of a shared archive. 12967old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12968 12969# Commands used to build and install a shared archive. 12970archive_cmds=$lt_archive_cmds_CXX 12971archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12972postinstall_cmds=$lt_postinstall_cmds 12973postuninstall_cmds=$lt_postuninstall_cmds 12974 12975# Commands used to build a loadable module (assumed same as above if empty) 12976module_cmds=$lt_module_cmds_CXX 12977module_expsym_cmds=$lt_module_expsym_cmds_CXX 12978 12979# Commands to strip libraries. 12980old_striplib=$lt_old_striplib 12981striplib=$lt_striplib 12982 12983# Dependencies to place before the objects being linked to create a 12984# shared library. 12985predep_objects=$lt_predep_objects_CXX 12986 12987# Dependencies to place after the objects being linked to create a 12988# shared library. 12989postdep_objects=$lt_postdep_objects_CXX 12990 12991# Dependencies to place before the objects being linked to create a 12992# shared library. 12993predeps=$lt_predeps_CXX 12994 12995# Dependencies to place after the objects being linked to create a 12996# shared library. 12997postdeps=$lt_postdeps_CXX 12998 12999# The library search path used internally by the compiler when linking 13000# a shared library. 13001compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13002 13003# Method to check whether dependent libraries are shared objects. 13004deplibs_check_method=$lt_deplibs_check_method 13005 13006# Command to use when deplibs_check_method == file_magic. 13007file_magic_cmd=$lt_file_magic_cmd 13008 13009# Flag that allows shared libraries with undefined symbols to be built. 13010allow_undefined_flag=$lt_allow_undefined_flag_CXX 13011 13012# Flag that forces no undefined symbols. 13013no_undefined_flag=$lt_no_undefined_flag_CXX 13014 13015# Commands used to finish a libtool library installation in a directory. 13016finish_cmds=$lt_finish_cmds 13017 13018# Same as above, but a single script fragment to be evaled but not shown. 13019finish_eval=$lt_finish_eval 13020 13021# Take the output of nm and produce a listing of raw symbols and C names. 13022global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13023 13024# Transform the output of nm in a proper C declaration 13025global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13026 13027# Transform the output of nm in a C name address pair 13028global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13029 13030# This is the shared library runtime path variable. 13031runpath_var=$runpath_var 13032 13033# This is the shared library path variable. 13034shlibpath_var=$shlibpath_var 13035 13036# Is shlibpath searched before the hard-coded library search path? 13037shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13038 13039# How to hardcode a shared library path into an executable. 13040hardcode_action=$hardcode_action_CXX 13041 13042# Whether we should hardcode library paths into libraries. 13043hardcode_into_libs=$hardcode_into_libs 13044 13045# Flag to hardcode \$libdir into a binary during linking. 13046# This must work even if \$libdir does not exist. 13047hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13048 13049# If ld is used when linking, flag to hardcode \$libdir into 13050# a binary during linking. This must work even if \$libdir does 13051# not exist. 13052hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13053 13054# Whether we need a single -rpath flag with a separated argument. 13055hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13056 13057# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13058# resulting binary. 13059hardcode_direct=$hardcode_direct_CXX 13060 13061# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13062# resulting binary. 13063hardcode_minus_L=$hardcode_minus_L_CXX 13064 13065# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13066# the resulting binary. 13067hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13068 13069# Set to yes if building a shared library automatically hardcodes DIR into the library 13070# and all subsequent libraries and executables linked against it. 13071hardcode_automatic=$hardcode_automatic_CXX 13072 13073# Variables whose values should be saved in libtool wrapper scripts and 13074# restored at relink time. 13075variables_saved_for_relink="$variables_saved_for_relink" 13076 13077# Whether libtool must link a program against all its dependency libraries. 13078link_all_deplibs=$link_all_deplibs_CXX 13079 13080# Compile-time system search path for libraries 13081sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13082 13083# Run-time system search path for libraries 13084sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13085 13086# Fix the shell variable \$srcfile for the compiler. 13087fix_srcfile_path="$fix_srcfile_path_CXX" 13088 13089# Set to yes if exported symbols are required. 13090always_export_symbols=$always_export_symbols_CXX 13091 13092# The commands to list exported symbols. 13093export_symbols_cmds=$lt_export_symbols_cmds_CXX 13094 13095# The commands to extract the exported symbol list from a shared archive. 13096extract_expsyms_cmds=$lt_extract_expsyms_cmds 13097 13098# Symbols that should not be listed in the preloaded symbols. 13099exclude_expsyms=$lt_exclude_expsyms_CXX 13100 13101# Symbols that must always be exported. 13102include_expsyms=$lt_include_expsyms_CXX 13103 13104# ### END LIBTOOL TAG CONFIG: $tagname 13105 13106__EOF__ 13107 13108 13109else 13110 # If there is no Makefile yet, we rely on a make rule to execute 13111 # `config.status --recheck' to rerun these tests and create the 13112 # libtool script then. 13113 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13114 if test -f "$ltmain_in"; then 13115 test -f Makefile && make "$ltmain" 13116 fi 13117fi 13118 13119 13120ac_ext=c 13121ac_cpp='$CPP $CPPFLAGS' 13122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13124ac_compiler_gnu=$ac_cv_c_compiler_gnu 13125 13126CC=$lt_save_CC 13127LDCXX=$LD 13128LD=$lt_save_LD 13129GCC=$lt_save_GCC 13130with_gnu_ldcxx=$with_gnu_ld 13131with_gnu_ld=$lt_save_with_gnu_ld 13132lt_cv_path_LDCXX=$lt_cv_path_LD 13133lt_cv_path_LD=$lt_save_path_LD 13134lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13135lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13136 13137 else 13138 tagname="" 13139 fi 13140 ;; 13141 13142 F77) 13143 if test -n "$F77" && test "X$F77" != "Xno"; then 13144 13145ac_ext=f 13146ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13147ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13148ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13149 13150 13151archive_cmds_need_lc_F77=no 13152allow_undefined_flag_F77= 13153always_export_symbols_F77=no 13154archive_expsym_cmds_F77= 13155export_dynamic_flag_spec_F77= 13156hardcode_direct_F77=no 13157hardcode_libdir_flag_spec_F77= 13158hardcode_libdir_flag_spec_ld_F77= 13159hardcode_libdir_separator_F77= 13160hardcode_minus_L_F77=no 13161hardcode_automatic_F77=no 13162module_cmds_F77= 13163module_expsym_cmds_F77= 13164link_all_deplibs_F77=unknown 13165old_archive_cmds_F77=$old_archive_cmds 13166no_undefined_flag_F77= 13167whole_archive_flag_spec_F77= 13168enable_shared_with_static_runtimes_F77=no 13169 13170# Source file extension for f77 test sources. 13171ac_ext=f 13172 13173# Object file extension for compiled f77 test sources. 13174objext=o 13175objext_F77=$objext 13176 13177# Code to be used in simple compile tests 13178lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13179 13180# Code to be used in simple link tests 13181lt_simple_link_test_code=" program t\n end\n" 13182 13183# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13184 13185# If no C compiler was specified, use CC. 13186LTCC=${LTCC-"$CC"} 13187 13188# If no C compiler flags were specified, use CFLAGS. 13189LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13190 13191# Allow CC to be a program name with arguments. 13192compiler=$CC 13193 13194 13195# save warnings/boilerplate of simple test code 13196ac_outfile=conftest.$ac_objext 13197printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13198eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13199_lt_compiler_boilerplate=`cat conftest.err` 13200$rm conftest* 13201 13202ac_outfile=conftest.$ac_objext 13203printf "$lt_simple_link_test_code" >conftest.$ac_ext 13204eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13205_lt_linker_boilerplate=`cat conftest.err` 13206$rm conftest* 13207 13208 13209# Allow CC to be a program name with arguments. 13210lt_save_CC="$CC" 13211CC=${F77-"f77"} 13212compiler=$CC 13213compiler_F77=$CC 13214for cc_temp in $compiler""; do 13215 case $cc_temp in 13216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13218 \-*) ;; 13219 *) break;; 13220 esac 13221done 13222cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13223 13224 13225echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13226echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13227echo "$as_me:$LINENO: result: $can_build_shared" >&5 13228echo "${ECHO_T}$can_build_shared" >&6 13229 13230echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13231echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13232test "$can_build_shared" = "no" && enable_shared=no 13233 13234# On AIX, shared libraries and static libraries use the same namespace, and 13235# are all built from PIC. 13236case $host_os in 13237aix3*) 13238 test "$enable_shared" = yes && enable_static=no 13239 if test -n "$RANLIB"; then 13240 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13241 postinstall_cmds='$RANLIB $lib' 13242 fi 13243 ;; 13244aix4* | aix5*) 13245 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13246 test "$enable_shared" = yes && enable_static=no 13247 fi 13248 ;; 13249esac 13250echo "$as_me:$LINENO: result: $enable_shared" >&5 13251echo "${ECHO_T}$enable_shared" >&6 13252 13253echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13254echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13255# Make sure either enable_shared or enable_static is yes. 13256test "$enable_shared" = yes || enable_static=yes 13257echo "$as_me:$LINENO: result: $enable_static" >&5 13258echo "${ECHO_T}$enable_static" >&6 13259 13260GCC_F77="$G77" 13261LD_F77="$LD" 13262 13263lt_prog_compiler_wl_F77= 13264lt_prog_compiler_pic_F77= 13265lt_prog_compiler_static_F77= 13266 13267echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13268echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13269 13270 if test "$GCC" = yes; then 13271 lt_prog_compiler_wl_F77='-Wl,' 13272 lt_prog_compiler_static_F77='-static' 13273 13274 case $host_os in 13275 aix*) 13276 # All AIX code is PIC. 13277 if test "$host_cpu" = ia64; then 13278 # AIX 5 now supports IA64 processor 13279 lt_prog_compiler_static_F77='-Bstatic' 13280 fi 13281 ;; 13282 13283 amigaos*) 13284 # FIXME: we need at least 68020 code to build shared libraries, but 13285 # adding the `-m68020' flag to GCC prevents building anything better, 13286 # like `-m68040'. 13287 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13288 ;; 13289 13290 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13291 # PIC is the default for these OSes. 13292 ;; 13293 13294 mingw* | pw32* | os2*) 13295 # This hack is so that the source file can tell whether it is being 13296 # built for inclusion in a dll (and should export symbols for example). 13297 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13298 ;; 13299 13300 darwin* | rhapsody*) 13301 # PIC is the default on this platform 13302 # Common symbols not allowed in MH_DYLIB files 13303 lt_prog_compiler_pic_F77='-fno-common' 13304 ;; 13305 13306 interix3*) 13307 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13308 # Instead, we relocate shared libraries at runtime. 13309 ;; 13310 13311 msdosdjgpp*) 13312 # Just because we use GCC doesn't mean we suddenly get shared libraries 13313 # on systems that don't support them. 13314 lt_prog_compiler_can_build_shared_F77=no 13315 enable_shared=no 13316 ;; 13317 13318 sysv4*MP*) 13319 if test -d /usr/nec; then 13320 lt_prog_compiler_pic_F77=-Kconform_pic 13321 fi 13322 ;; 13323 13324 hpux*) 13325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13326 # not for PA HP-UX. 13327 case $host_cpu in 13328 hppa*64*|ia64*) 13329 # +Z the default 13330 ;; 13331 *) 13332 lt_prog_compiler_pic_F77='-fPIC' 13333 ;; 13334 esac 13335 ;; 13336 13337 *) 13338 lt_prog_compiler_pic_F77='-fPIC' 13339 ;; 13340 esac 13341 else 13342 # PORTME Check for flag to pass linker flags through the system compiler. 13343 case $host_os in 13344 aix*) 13345 lt_prog_compiler_wl_F77='-Wl,' 13346 if test "$host_cpu" = ia64; then 13347 # AIX 5 now supports IA64 processor 13348 lt_prog_compiler_static_F77='-Bstatic' 13349 else 13350 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13351 fi 13352 ;; 13353 darwin*) 13354 # PIC is the default on this platform 13355 # Common symbols not allowed in MH_DYLIB files 13356 case $cc_basename in 13357 xlc*) 13358 lt_prog_compiler_pic_F77='-qnocommon' 13359 lt_prog_compiler_wl_F77='-Wl,' 13360 ;; 13361 esac 13362 ;; 13363 13364 mingw* | pw32* | os2*) 13365 # This hack is so that the source file can tell whether it is being 13366 # built for inclusion in a dll (and should export symbols for example). 13367 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13368 ;; 13369 13370 hpux9* | hpux10* | hpux11*) 13371 lt_prog_compiler_wl_F77='-Wl,' 13372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13373 # not for PA HP-UX. 13374 case $host_cpu in 13375 hppa*64*|ia64*) 13376 # +Z the default 13377 ;; 13378 *) 13379 lt_prog_compiler_pic_F77='+Z' 13380 ;; 13381 esac 13382 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13383 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13384 ;; 13385 13386 irix5* | irix6* | nonstopux*) 13387 lt_prog_compiler_wl_F77='-Wl,' 13388 # PIC (with -KPIC) is the default. 13389 lt_prog_compiler_static_F77='-non_shared' 13390 ;; 13391 13392 newsos6) 13393 lt_prog_compiler_pic_F77='-KPIC' 13394 lt_prog_compiler_static_F77='-Bstatic' 13395 ;; 13396 13397 linux*) 13398 case $cc_basename in 13399 icc* | ecc*) 13400 lt_prog_compiler_wl_F77='-Wl,' 13401 lt_prog_compiler_pic_F77='-KPIC' 13402 lt_prog_compiler_static_F77='-static' 13403 ;; 13404 pgcc* | pgf77* | pgf90* | pgf95*) 13405 # Portland Group compilers (*not* the Pentium gcc compiler, 13406 # which looks to be a dead project) 13407 lt_prog_compiler_wl_F77='-Wl,' 13408 lt_prog_compiler_pic_F77='-fpic' 13409 lt_prog_compiler_static_F77='-Bstatic' 13410 ;; 13411 ccc*) 13412 lt_prog_compiler_wl_F77='-Wl,' 13413 # All Alpha code is PIC. 13414 lt_prog_compiler_static_F77='-non_shared' 13415 ;; 13416 esac 13417 ;; 13418 13419 osf3* | osf4* | osf5*) 13420 lt_prog_compiler_wl_F77='-Wl,' 13421 # All OSF/1 code is PIC. 13422 lt_prog_compiler_static_F77='-non_shared' 13423 ;; 13424 13425 solaris*) 13426 lt_prog_compiler_pic_F77='-KPIC' 13427 lt_prog_compiler_static_F77='-Bstatic' 13428 case $cc_basename in 13429 f77* | f90* | f95*) 13430 lt_prog_compiler_wl_F77='-Qoption ld ';; 13431 *) 13432 lt_prog_compiler_wl_F77='-Wl,';; 13433 esac 13434 ;; 13435 13436 sunos4*) 13437 lt_prog_compiler_wl_F77='-Qoption ld ' 13438 lt_prog_compiler_pic_F77='-PIC' 13439 lt_prog_compiler_static_F77='-Bstatic' 13440 ;; 13441 13442 sysv4 | sysv4.2uw2* | sysv4.3*) 13443 lt_prog_compiler_wl_F77='-Wl,' 13444 lt_prog_compiler_pic_F77='-KPIC' 13445 lt_prog_compiler_static_F77='-Bstatic' 13446 ;; 13447 13448 sysv4*MP*) 13449 if test -d /usr/nec ;then 13450 lt_prog_compiler_pic_F77='-Kconform_pic' 13451 lt_prog_compiler_static_F77='-Bstatic' 13452 fi 13453 ;; 13454 13455 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13456 lt_prog_compiler_wl_F77='-Wl,' 13457 lt_prog_compiler_pic_F77='-KPIC' 13458 lt_prog_compiler_static_F77='-Bstatic' 13459 ;; 13460 13461 unicos*) 13462 lt_prog_compiler_wl_F77='-Wl,' 13463 lt_prog_compiler_can_build_shared_F77=no 13464 ;; 13465 13466 uts4*) 13467 lt_prog_compiler_pic_F77='-pic' 13468 lt_prog_compiler_static_F77='-Bstatic' 13469 ;; 13470 13471 *) 13472 lt_prog_compiler_can_build_shared_F77=no 13473 ;; 13474 esac 13475 fi 13476 13477echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13478echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13479 13480# 13481# Check to make sure the PIC flag actually works. 13482# 13483if test -n "$lt_prog_compiler_pic_F77"; then 13484 13485echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13486echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13487if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13488 echo $ECHO_N "(cached) $ECHO_C" >&6 13489else 13490 lt_prog_compiler_pic_works_F77=no 13491 ac_outfile=conftest.$ac_objext 13492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13493 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13494 # Insert the option either (1) after the last *FLAGS variable, or 13495 # (2) before a word containing "conftest.", or (3) at the end. 13496 # Note that $ac_compile itself does not contain backslashes and begins 13497 # with a dollar sign (not a hyphen), so the echo should work correctly. 13498 # The option is referenced via a variable to avoid confusing sed. 13499 lt_compile=`echo "$ac_compile" | $SED \ 13500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13502 -e 's:$: $lt_compiler_flag:'` 13503 (eval echo "\"\$as_me:13503: $lt_compile\"" >&5) 13504 (eval "$lt_compile" 2>conftest.err) 13505 ac_status=$? 13506 cat conftest.err >&5 13507 echo "$as_me:13507: \$? = $ac_status" >&5 13508 if (exit $ac_status) && test -s "$ac_outfile"; then 13509 # The compiler can only warn and ignore the option if not recognized 13510 # So say no if there are warnings other than the usual output. 13511 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13514 lt_prog_compiler_pic_works_F77=yes 13515 fi 13516 fi 13517 $rm conftest* 13518 13519fi 13520echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13521echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13522 13523if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13524 case $lt_prog_compiler_pic_F77 in 13525 "" | " "*) ;; 13526 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13527 esac 13528else 13529 lt_prog_compiler_pic_F77= 13530 lt_prog_compiler_can_build_shared_F77=no 13531fi 13532 13533fi 13534case $host_os in 13535 # For platforms which do not support PIC, -DPIC is meaningless: 13536 *djgpp*) 13537 lt_prog_compiler_pic_F77= 13538 ;; 13539 *) 13540 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13541 ;; 13542esac 13543 13544# 13545# Check to make sure the static flag actually works. 13546# 13547wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13548echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13549echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13550if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13551 echo $ECHO_N "(cached) $ECHO_C" >&6 13552else 13553 lt_prog_compiler_static_works_F77=no 13554 save_LDFLAGS="$LDFLAGS" 13555 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13556 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13558 # The linker can only warn and ignore the option if not recognized 13559 # So say no if there are warnings 13560 if test -s conftest.err; then 13561 # Append any errors to the config.log. 13562 cat conftest.err 1>&5 13563 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13565 if diff conftest.exp conftest.er2 >/dev/null; then 13566 lt_prog_compiler_static_works_F77=yes 13567 fi 13568 else 13569 lt_prog_compiler_static_works_F77=yes 13570 fi 13571 fi 13572 $rm conftest* 13573 LDFLAGS="$save_LDFLAGS" 13574 13575fi 13576echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13577echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13578 13579if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13580 : 13581else 13582 lt_prog_compiler_static_F77= 13583fi 13584 13585 13586echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13587echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13588if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13589 echo $ECHO_N "(cached) $ECHO_C" >&6 13590else 13591 lt_cv_prog_compiler_c_o_F77=no 13592 $rm -r conftest 2>/dev/null 13593 mkdir conftest 13594 cd conftest 13595 mkdir out 13596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13597 13598 lt_compiler_flag="-o out/conftest2.$ac_objext" 13599 # Insert the option either (1) after the last *FLAGS variable, or 13600 # (2) before a word containing "conftest.", or (3) at the end. 13601 # Note that $ac_compile itself does not contain backslashes and begins 13602 # with a dollar sign (not a hyphen), so the echo should work correctly. 13603 lt_compile=`echo "$ac_compile" | $SED \ 13604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13606 -e 's:$: $lt_compiler_flag:'` 13607 (eval echo "\"\$as_me:13607: $lt_compile\"" >&5) 13608 (eval "$lt_compile" 2>out/conftest.err) 13609 ac_status=$? 13610 cat out/conftest.err >&5 13611 echo "$as_me:13611: \$? = $ac_status" >&5 13612 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13613 then 13614 # The compiler can only warn and ignore the option if not recognized 13615 # So say no if there are warnings 13616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13619 lt_cv_prog_compiler_c_o_F77=yes 13620 fi 13621 fi 13622 chmod u+w . 2>&5 13623 $rm conftest* 13624 # SGI C++ compiler will create directory out/ii_files/ for 13625 # template instantiation 13626 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13627 $rm out/* && rmdir out 13628 cd .. 13629 rmdir conftest 13630 $rm conftest* 13631 13632fi 13633echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13634echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13635 13636 13637hard_links="nottested" 13638if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13639 # do not overwrite the value of need_locks provided by the user 13640 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13641echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13642 hard_links=yes 13643 $rm conftest* 13644 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13645 touch conftest.a 13646 ln conftest.a conftest.b 2>&5 || hard_links=no 13647 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13648 echo "$as_me:$LINENO: result: $hard_links" >&5 13649echo "${ECHO_T}$hard_links" >&6 13650 if test "$hard_links" = no; then 13651 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13652echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13653 need_locks=warn 13654 fi 13655else 13656 need_locks=no 13657fi 13658 13659echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13660echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13661 13662 runpath_var= 13663 allow_undefined_flag_F77= 13664 enable_shared_with_static_runtimes_F77=no 13665 archive_cmds_F77= 13666 archive_expsym_cmds_F77= 13667 old_archive_From_new_cmds_F77= 13668 old_archive_from_expsyms_cmds_F77= 13669 export_dynamic_flag_spec_F77= 13670 whole_archive_flag_spec_F77= 13671 thread_safe_flag_spec_F77= 13672 hardcode_libdir_flag_spec_F77= 13673 hardcode_libdir_flag_spec_ld_F77= 13674 hardcode_libdir_separator_F77= 13675 hardcode_direct_F77=no 13676 hardcode_minus_L_F77=no 13677 hardcode_shlibpath_var_F77=unsupported 13678 link_all_deplibs_F77=unknown 13679 hardcode_automatic_F77=no 13680 module_cmds_F77= 13681 module_expsym_cmds_F77= 13682 always_export_symbols_F77=no 13683 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13684 # include_expsyms should be a list of space-separated symbols to be *always* 13685 # included in the symbol list 13686 include_expsyms_F77= 13687 # exclude_expsyms can be an extended regexp of symbols to exclude 13688 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13689 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13690 # as well as any symbol that contains `d'. 13691 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13692 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13693 # platforms (ab)use it in PIC code, but their linkers get confused if 13694 # the symbol is explicitly referenced. Since portable code cannot 13695 # rely on this symbol name, it's probably fine to never include it in 13696 # preloaded symbol tables. 13697 extract_expsyms_cmds= 13698 # Just being paranoid about ensuring that cc_basename is set. 13699 for cc_temp in $compiler""; do 13700 case $cc_temp in 13701 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13702 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13703 \-*) ;; 13704 *) break;; 13705 esac 13706done 13707cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13708 13709 case $host_os in 13710 cygwin* | mingw* | pw32*) 13711 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13712 # When not using gcc, we currently assume that we are using 13713 # Microsoft Visual C++. 13714 if test "$GCC" != yes; then 13715 with_gnu_ld=no 13716 fi 13717 ;; 13718 interix*) 13719 # we just hope/assume this is gcc and not c89 (= MSVC++) 13720 with_gnu_ld=yes 13721 ;; 13722 openbsd*) 13723 with_gnu_ld=no 13724 ;; 13725 esac 13726 13727 ld_shlibs_F77=yes 13728 if test "$with_gnu_ld" = yes; then 13729 # If archive_cmds runs LD, not CC, wlarc should be empty 13730 wlarc='${wl}' 13731 13732 # Set some defaults for GNU ld with shared library support. These 13733 # are reset later if shared libraries are not supported. Putting them 13734 # here allows them to be overridden if necessary. 13735 runpath_var=LD_RUN_PATH 13736 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13737 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13738 # ancient GNU ld didn't support --whole-archive et. al. 13739 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13740 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13741 else 13742 whole_archive_flag_spec_F77= 13743 fi 13744 supports_anon_versioning=no 13745 case `$LD -v 2>/dev/null` in 13746 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13747 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13748 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13749 *\ 2.11.*) ;; # other 2.11 versions 13750 *) supports_anon_versioning=yes ;; 13751 esac 13752 13753 # See if GNU ld supports shared libraries. 13754 case $host_os in 13755 aix3* | aix4* | aix5*) 13756 # On AIX/PPC, the GNU linker is very broken 13757 if test "$host_cpu" != ia64; then 13758 ld_shlibs_F77=no 13759 cat <<EOF 1>&2 13760 13761*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13762*** to be unable to reliably create shared libraries on AIX. 13763*** Therefore, libtool is disabling shared libraries support. If you 13764*** really care for shared libraries, you may want to modify your PATH 13765*** so that a non-GNU linker is found, and then restart. 13766 13767EOF 13768 fi 13769 ;; 13770 13771 amigaos*) 13772 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)' 13773 hardcode_libdir_flag_spec_F77='-L$libdir' 13774 hardcode_minus_L_F77=yes 13775 13776 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13777 # that the semantics of dynamic libraries on AmigaOS, at least up 13778 # to version 4, is to share data among multiple programs linked 13779 # with the same dynamic library. Since this doesn't match the 13780 # behavior of shared libraries on other platforms, we can't use 13781 # them. 13782 ld_shlibs_F77=no 13783 ;; 13784 13785 beos*) 13786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13787 allow_undefined_flag_F77=unsupported 13788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13789 # support --undefined. This deserves some investigation. FIXME 13790 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13791 else 13792 ld_shlibs_F77=no 13793 fi 13794 ;; 13795 13796 cygwin* | mingw* | pw32*) 13797 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13798 # as there is no search path for DLLs. 13799 hardcode_libdir_flag_spec_F77='-L$libdir' 13800 allow_undefined_flag_F77=unsupported 13801 always_export_symbols_F77=no 13802 enable_shared_with_static_runtimes_F77=yes 13803 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13804 13805 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13806 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13807 # If the export-symbols file already is a .def file (1st line 13808 # is EXPORTS), use it as is; otherwise, prepend... 13809 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13810 cp $export_symbols $output_objdir/$soname.def; 13811 else 13812 echo EXPORTS > $output_objdir/$soname.def; 13813 cat $export_symbols >> $output_objdir/$soname.def; 13814 fi~ 13815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13816 else 13817 ld_shlibs_F77=no 13818 fi 13819 ;; 13820 13821 interix3*) 13822 hardcode_direct_F77=no 13823 hardcode_shlibpath_var_F77=no 13824 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13825 export_dynamic_flag_spec_F77='${wl}-E' 13826 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13827 # Instead, shared libraries are loaded at an image base (0x10000000 by 13828 # default) and relocated if they conflict, which is a slow very memory 13829 # consuming and fragmenting process. To avoid this, we pick a random, 13830 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13831 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13832 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13833 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13834 ;; 13835 13836 linux*) 13837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13838 tmp_addflag= 13839 case $cc_basename,$host_cpu in 13840 pgcc*) # Portland Group C compiler 13841 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13842 tmp_addflag=' $pic_flag' 13843 ;; 13844 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13845 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13846 tmp_addflag=' $pic_flag -Mnomain' ;; 13847 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13848 tmp_addflag=' -i_dynamic' ;; 13849 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13850 tmp_addflag=' -i_dynamic -nofor_main' ;; 13851 ifc* | ifort*) # Intel Fortran compiler 13852 tmp_addflag=' -nofor_main' ;; 13853 esac 13854 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13855 13856 if test $supports_anon_versioning = yes; then 13857 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13859 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13860 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13861 fi 13862 else 13863 ld_shlibs_F77=no 13864 fi 13865 ;; 13866 13867 netbsd*) 13868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13869 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13870 wlarc= 13871 else 13872 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13873 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13874 fi 13875 ;; 13876 13877 solaris*) 13878 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13879 ld_shlibs_F77=no 13880 cat <<EOF 1>&2 13881 13882*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13883*** create shared libraries on Solaris systems. Therefore, libtool 13884*** is disabling shared libraries support. We urge you to upgrade GNU 13885*** binutils to release 2.9.1 or newer. Another option is to modify 13886*** your PATH or compiler configuration so that the native linker is 13887*** used, and then restart. 13888 13889EOF 13890 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13891 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13892 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13893 else 13894 ld_shlibs_F77=no 13895 fi 13896 ;; 13897 13898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13899 case `$LD -v 2>&1` in 13900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13901 ld_shlibs_F77=no 13902 cat <<_LT_EOF 1>&2 13903 13904*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13905*** reliably create shared libraries on SCO systems. Therefore, libtool 13906*** is disabling shared libraries support. We urge you to upgrade GNU 13907*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13908*** your PATH or compiler configuration so that the native linker is 13909*** used, and then restart. 13910 13911_LT_EOF 13912 ;; 13913 *) 13914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13915 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13916 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13917 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13918 else 13919 ld_shlibs_F77=no 13920 fi 13921 ;; 13922 esac 13923 ;; 13924 13925 sunos4*) 13926 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13927 wlarc= 13928 hardcode_direct_F77=yes 13929 hardcode_shlibpath_var_F77=no 13930 ;; 13931 13932 *) 13933 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13934 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13935 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13936 else 13937 ld_shlibs_F77=no 13938 fi 13939 ;; 13940 esac 13941 13942 if test "$ld_shlibs_F77" = no; then 13943 runpath_var= 13944 hardcode_libdir_flag_spec_F77= 13945 export_dynamic_flag_spec_F77= 13946 whole_archive_flag_spec_F77= 13947 fi 13948 else 13949 # PORTME fill in a description of your system's linker (not GNU ld) 13950 case $host_os in 13951 aix3*) 13952 allow_undefined_flag_F77=unsupported 13953 always_export_symbols_F77=yes 13954 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' 13955 # Note: this linker hardcodes the directories in LIBPATH if there 13956 # are no directories specified by -L. 13957 hardcode_minus_L_F77=yes 13958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13959 # Neither direct hardcoding nor static linking is supported with a 13960 # broken collect2. 13961 hardcode_direct_F77=unsupported 13962 fi 13963 ;; 13964 13965 aix4* | aix5*) 13966 if test "$host_cpu" = ia64; then 13967 # On IA64, the linker does run time linking by default, so we don't 13968 # have to do anything special. 13969 aix_use_runtimelinking=no 13970 exp_sym_flag='-Bexport' 13971 no_entry_flag="" 13972 else 13973 # If we're using GNU nm, then we don't want the "-C" option. 13974 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13975 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13976 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' 13977 else 13978 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' 13979 fi 13980 aix_use_runtimelinking=no 13981 13982 # Test if we are trying to use run time linking or normal 13983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13984 # need to do runtime linking. 13985 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13986 for ld_flag in $LDFLAGS; do 13987 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13988 aix_use_runtimelinking=yes 13989 break 13990 fi 13991 done 13992 ;; 13993 esac 13994 13995 exp_sym_flag='-bexport' 13996 no_entry_flag='-bnoentry' 13997 fi 13998 13999 # When large executables or shared objects are built, AIX ld can 14000 # have problems creating the table of contents. If linking a library 14001 # or program results in "error TOC overflow" add -mminimal-toc to 14002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14004 14005 archive_cmds_F77='' 14006 hardcode_direct_F77=yes 14007 hardcode_libdir_separator_F77=':' 14008 link_all_deplibs_F77=yes 14009 14010 if test "$GCC" = yes; then 14011 case $host_os in aix4.[012]|aix4.[012].*) 14012 # We only want to do this on AIX 4.2 and lower, the check 14013 # below for broken collect2 doesn't work under 4.3+ 14014 collect2name=`${CC} -print-prog-name=collect2` 14015 if test -f "$collect2name" && \ 14016 strings "$collect2name" | grep resolve_lib_name >/dev/null 14017 then 14018 # We have reworked collect2 14019 hardcode_direct_F77=yes 14020 else 14021 # We have old collect2 14022 hardcode_direct_F77=unsupported 14023 # It fails to find uninstalled libraries when the uninstalled 14024 # path is not listed in the libpath. Setting hardcode_minus_L 14025 # to unsupported forces relinking 14026 hardcode_minus_L_F77=yes 14027 hardcode_libdir_flag_spec_F77='-L$libdir' 14028 hardcode_libdir_separator_F77= 14029 fi 14030 ;; 14031 esac 14032 shared_flag='-shared' 14033 if test "$aix_use_runtimelinking" = yes; then 14034 shared_flag="$shared_flag "'${wl}-G' 14035 fi 14036 else 14037 # not using gcc 14038 if test "$host_cpu" = ia64; then 14039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14040 # chokes on -Wl,-G. The following line is correct: 14041 shared_flag='-G' 14042 else 14043 if test "$aix_use_runtimelinking" = yes; then 14044 shared_flag='${wl}-G' 14045 else 14046 shared_flag='${wl}-bM:SRE' 14047 fi 14048 fi 14049 fi 14050 14051 # It seems that -bexpall does not export symbols beginning with 14052 # underscore (_), so it is better to generate a list of symbols to export. 14053 always_export_symbols_F77=yes 14054 if test "$aix_use_runtimelinking" = yes; then 14055 # Warning - without using the other runtime loading flags (-brtl), 14056 # -berok will link without error, but may produce a broken library. 14057 allow_undefined_flag_F77='-berok' 14058 # Determine the default libpath from the value encoded in an empty executable. 14059 cat >conftest.$ac_ext <<_ACEOF 14060 program main 14061 14062 end 14063_ACEOF 14064rm -f conftest.$ac_objext conftest$ac_exeext 14065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14066 (eval $ac_link) 2>conftest.er1 14067 ac_status=$? 14068 grep -v '^ *+' conftest.er1 >conftest.err 14069 rm -f conftest.er1 14070 cat conftest.err >&5 14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14072 (exit $ac_status); } && 14073 { ac_try='test -z "$ac_f77_werror_flag" 14074 || test ! -s conftest.err' 14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14076 (eval $ac_try) 2>&5 14077 ac_status=$? 14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14079 (exit $ac_status); }; } && 14080 { ac_try='test -s conftest$ac_exeext' 14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14082 (eval $ac_try) 2>&5 14083 ac_status=$? 14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14085 (exit $ac_status); }; }; then 14086 14087aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14088}'` 14089# Check for a 64-bit object if we didn't find anything. 14090if 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; } 14091}'`; fi 14092else 14093 echo "$as_me: failed program was:" >&5 14094sed 's/^/| /' conftest.$ac_ext >&5 14095 14096fi 14097rm -f conftest.err conftest.$ac_objext \ 14098 conftest$ac_exeext conftest.$ac_ext 14099if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14100 14101 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14102 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14103 else 14104 if test "$host_cpu" = ia64; then 14105 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14106 allow_undefined_flag_F77="-z nodefs" 14107 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 14108 else 14109 # Determine the default libpath from the value encoded in an empty executable. 14110 cat >conftest.$ac_ext <<_ACEOF 14111 program main 14112 14113 end 14114_ACEOF 14115rm -f conftest.$ac_objext conftest$ac_exeext 14116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14117 (eval $ac_link) 2>conftest.er1 14118 ac_status=$? 14119 grep -v '^ *+' conftest.er1 >conftest.err 14120 rm -f conftest.er1 14121 cat conftest.err >&5 14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14123 (exit $ac_status); } && 14124 { ac_try='test -z "$ac_f77_werror_flag" 14125 || test ! -s conftest.err' 14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14127 (eval $ac_try) 2>&5 14128 ac_status=$? 14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14130 (exit $ac_status); }; } && 14131 { ac_try='test -s conftest$ac_exeext' 14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14133 (eval $ac_try) 2>&5 14134 ac_status=$? 14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14136 (exit $ac_status); }; }; then 14137 14138aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14139}'` 14140# Check for a 64-bit object if we didn't find anything. 14141if 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; } 14142}'`; fi 14143else 14144 echo "$as_me: failed program was:" >&5 14145sed 's/^/| /' conftest.$ac_ext >&5 14146 14147fi 14148rm -f conftest.err conftest.$ac_objext \ 14149 conftest$ac_exeext conftest.$ac_ext 14150if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14151 14152 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14153 # Warning - without using the other run time loading flags, 14154 # -berok will link without error, but may produce a broken library. 14155 no_undefined_flag_F77=' ${wl}-bernotok' 14156 allow_undefined_flag_F77=' ${wl}-berok' 14157 # Exported symbols can be pulled into shared objects from archives 14158 whole_archive_flag_spec_F77='$convenience' 14159 archive_cmds_need_lc_F77=yes 14160 # This is similar to how AIX traditionally builds its shared libraries. 14161 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14162 fi 14163 fi 14164 ;; 14165 14166 amigaos*) 14167 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)' 14168 hardcode_libdir_flag_spec_F77='-L$libdir' 14169 hardcode_minus_L_F77=yes 14170 # see comment about different semantics on the GNU ld section 14171 ld_shlibs_F77=no 14172 ;; 14173 14174 bsdi[45]*) 14175 export_dynamic_flag_spec_F77=-rdynamic 14176 ;; 14177 14178 cygwin* | mingw* | pw32*) 14179 # When not using gcc, we currently assume that we are using 14180 # Microsoft Visual C++. 14181 # hardcode_libdir_flag_spec is actually meaningless, as there is 14182 # no search path for DLLs. 14183 hardcode_libdir_flag_spec_F77=' ' 14184 allow_undefined_flag_F77=unsupported 14185 # Tell ltmain to make .lib files, not .a files. 14186 libext=lib 14187 # Tell ltmain to make .dll files, not .so files. 14188 shrext_cmds=".dll" 14189 # FIXME: Setting linknames here is a bad hack. 14190 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14191 # The linker will automatically build a .lib file if we build a DLL. 14192 old_archive_From_new_cmds_F77='true' 14193 # FIXME: Should let the user specify the lib program. 14194 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14195 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14196 enable_shared_with_static_runtimes_F77=yes 14197 ;; 14198 14199 darwin* | rhapsody*) 14200 case $host_os in 14201 rhapsody* | darwin1.[012]) 14202 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14203 ;; 14204 *) # Darwin 1.3 on 14205 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14206 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14207 else 14208 case ${MACOSX_DEPLOYMENT_TARGET} in 14209 10.[012]) 14210 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14211 ;; 14212 10.*) 14213 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14214 ;; 14215 esac 14216 fi 14217 ;; 14218 esac 14219 archive_cmds_need_lc_F77=no 14220 hardcode_direct_F77=no 14221 hardcode_automatic_F77=yes 14222 hardcode_shlibpath_var_F77=unsupported 14223 whole_archive_flag_spec_F77='' 14224 link_all_deplibs_F77=yes 14225 if test "$GCC" = yes ; then 14226 output_verbose_link_cmd='echo' 14227 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14228 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14229 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14230 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14231 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}' 14232 else 14233 case $cc_basename in 14234 xlc*) 14235 output_verbose_link_cmd='echo' 14236 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14237 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14238 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14239 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14240 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}' 14241 ;; 14242 *) 14243 ld_shlibs_F77=no 14244 ;; 14245 esac 14246 fi 14247 ;; 14248 14249 dgux*) 14250 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14251 hardcode_libdir_flag_spec_F77='-L$libdir' 14252 hardcode_shlibpath_var_F77=no 14253 ;; 14254 14255 freebsd1*) 14256 ld_shlibs_F77=no 14257 ;; 14258 14259 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14260 # support. Future versions do this automatically, but an explicit c++rt0.o 14261 # does not break anything, and helps significantly (at the cost of a little 14262 # extra space). 14263 freebsd2.2*) 14264 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14265 hardcode_libdir_flag_spec_F77='-R$libdir' 14266 hardcode_direct_F77=yes 14267 hardcode_shlibpath_var_F77=no 14268 ;; 14269 14270 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14271 freebsd2*) 14272 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14273 hardcode_direct_F77=yes 14274 hardcode_minus_L_F77=yes 14275 hardcode_shlibpath_var_F77=no 14276 ;; 14277 14278 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14279 freebsd* | kfreebsd*-gnu | dragonfly*) 14280 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14281 hardcode_libdir_flag_spec_F77='-R$libdir' 14282 hardcode_direct_F77=yes 14283 hardcode_shlibpath_var_F77=no 14284 ;; 14285 14286 hpux9*) 14287 if test "$GCC" = yes; then 14288 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' 14289 else 14290 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' 14291 fi 14292 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14293 hardcode_libdir_separator_F77=: 14294 hardcode_direct_F77=yes 14295 14296 # hardcode_minus_L: Not really in the search PATH, 14297 # but as the default location of the library. 14298 hardcode_minus_L_F77=yes 14299 export_dynamic_flag_spec_F77='${wl}-E' 14300 ;; 14301 14302 hpux10*) 14303 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14304 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14305 else 14306 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14307 fi 14308 if test "$with_gnu_ld" = no; then 14309 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14310 hardcode_libdir_separator_F77=: 14311 14312 hardcode_direct_F77=yes 14313 export_dynamic_flag_spec_F77='${wl}-E' 14314 14315 # hardcode_minus_L: Not really in the search PATH, 14316 # but as the default location of the library. 14317 hardcode_minus_L_F77=yes 14318 fi 14319 ;; 14320 14321 hpux11*) 14322 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14323 case $host_cpu in 14324 hppa*64*) 14325 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14326 ;; 14327 ia64*) 14328 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14329 ;; 14330 *) 14331 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14332 ;; 14333 esac 14334 else 14335 case $host_cpu in 14336 hppa*64*) 14337 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14338 ;; 14339 ia64*) 14340 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14341 ;; 14342 *) 14343 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14344 ;; 14345 esac 14346 fi 14347 if test "$with_gnu_ld" = no; then 14348 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14349 hardcode_libdir_separator_F77=: 14350 14351 case $host_cpu in 14352 hppa*64*|ia64*) 14353 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14354 hardcode_direct_F77=no 14355 hardcode_shlibpath_var_F77=no 14356 ;; 14357 *) 14358 hardcode_direct_F77=yes 14359 export_dynamic_flag_spec_F77='${wl}-E' 14360 14361 # hardcode_minus_L: Not really in the search PATH, 14362 # but as the default location of the library. 14363 hardcode_minus_L_F77=yes 14364 ;; 14365 esac 14366 fi 14367 ;; 14368 14369 irix5* | irix6* | nonstopux*) 14370 if test "$GCC" = yes; then 14371 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' 14372 else 14373 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' 14374 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14375 fi 14376 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14377 hardcode_libdir_separator_F77=: 14378 link_all_deplibs_F77=yes 14379 ;; 14380 14381 netbsd*) 14382 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14383 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14384 else 14385 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14386 fi 14387 hardcode_libdir_flag_spec_F77='-R$libdir' 14388 hardcode_direct_F77=yes 14389 hardcode_shlibpath_var_F77=no 14390 ;; 14391 14392 newsos6) 14393 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14394 hardcode_direct_F77=yes 14395 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14396 hardcode_libdir_separator_F77=: 14397 hardcode_shlibpath_var_F77=no 14398 ;; 14399 14400 openbsd*) 14401 hardcode_direct_F77=yes 14402 hardcode_shlibpath_var_F77=no 14403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14404 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14405 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14406 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14407 export_dynamic_flag_spec_F77='${wl}-E' 14408 else 14409 case $host_os in 14410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14411 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14412 hardcode_libdir_flag_spec_F77='-R$libdir' 14413 ;; 14414 *) 14415 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14416 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14417 ;; 14418 esac 14419 fi 14420 ;; 14421 14422 os2*) 14423 hardcode_libdir_flag_spec_F77='-L$libdir' 14424 hardcode_minus_L_F77=yes 14425 allow_undefined_flag_F77=unsupported 14426 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' 14427 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14428 ;; 14429 14430 osf3*) 14431 if test "$GCC" = yes; then 14432 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14433 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' 14434 else 14435 allow_undefined_flag_F77=' -expect_unresolved \*' 14436 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' 14437 fi 14438 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14439 hardcode_libdir_separator_F77=: 14440 ;; 14441 14442 osf4* | osf5*) # as osf3* with the addition of -msym flag 14443 if test "$GCC" = yes; then 14444 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14445 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' 14446 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14447 else 14448 allow_undefined_flag_F77=' -expect_unresolved \*' 14449 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' 14450 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~ 14451 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14452 14453 # Both c and cxx compiler support -rpath directly 14454 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14455 fi 14456 hardcode_libdir_separator_F77=: 14457 ;; 14458 14459 solaris*) 14460 no_undefined_flag_F77=' -z text' 14461 if test "$GCC" = yes; then 14462 wlarc='${wl}' 14463 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14464 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14465 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14466 else 14467 wlarc='' 14468 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14469 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14470 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14471 fi 14472 hardcode_libdir_flag_spec_F77='-R$libdir' 14473 hardcode_shlibpath_var_F77=no 14474 case $host_os in 14475 solaris2.[0-5] | solaris2.[0-5].*) ;; 14476 *) 14477 # The compiler driver will combine linker options so we 14478 # cannot just pass the convience library names through 14479 # without $wl, iff we do not link with $LD. 14480 # Luckily, gcc supports the same syntax we need for Sun Studio. 14481 # Supported since Solaris 2.6 (maybe 2.5.1?) 14482 case $wlarc in 14483 '') 14484 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14485 *) 14486 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14487 esac ;; 14488 esac 14489 link_all_deplibs_F77=yes 14490 ;; 14491 14492 sunos4*) 14493 if test "x$host_vendor" = xsequent; then 14494 # Use $CC to link under sequent, because it throws in some extra .o 14495 # files that make .init and .fini sections work. 14496 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14497 else 14498 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14499 fi 14500 hardcode_libdir_flag_spec_F77='-L$libdir' 14501 hardcode_direct_F77=yes 14502 hardcode_minus_L_F77=yes 14503 hardcode_shlibpath_var_F77=no 14504 ;; 14505 14506 sysv4) 14507 case $host_vendor in 14508 sni) 14509 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14510 hardcode_direct_F77=yes # is this really true??? 14511 ;; 14512 siemens) 14513 ## LD is ld it makes a PLAMLIB 14514 ## CC just makes a GrossModule. 14515 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14516 reload_cmds_F77='$CC -r -o $output$reload_objs' 14517 hardcode_direct_F77=no 14518 ;; 14519 motorola) 14520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14521 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14522 ;; 14523 esac 14524 runpath_var='LD_RUN_PATH' 14525 hardcode_shlibpath_var_F77=no 14526 ;; 14527 14528 sysv4.3*) 14529 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14530 hardcode_shlibpath_var_F77=no 14531 export_dynamic_flag_spec_F77='-Bexport' 14532 ;; 14533 14534 sysv4*MP*) 14535 if test -d /usr/nec; then 14536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14537 hardcode_shlibpath_var_F77=no 14538 runpath_var=LD_RUN_PATH 14539 hardcode_runpath_var=yes 14540 ld_shlibs_F77=yes 14541 fi 14542 ;; 14543 14544 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14545 no_undefined_flag_F77='${wl}-z,text' 14546 archive_cmds_need_lc_F77=no 14547 hardcode_shlibpath_var_F77=no 14548 runpath_var='LD_RUN_PATH' 14549 14550 if test "$GCC" = yes; then 14551 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14552 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14553 else 14554 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14555 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14556 fi 14557 ;; 14558 14559 sysv5* | sco3.2v5* | sco5v6*) 14560 # Note: We can NOT use -z defs as we might desire, because we do not 14561 # link with -lc, and that would cause any symbols used from libc to 14562 # always be unresolved, which means just about no library would 14563 # ever link correctly. If we're not using GNU ld we use -z text 14564 # though, which does catch some bad symbols but isn't as heavy-handed 14565 # as -z defs. 14566 no_undefined_flag_F77='${wl}-z,text' 14567 allow_undefined_flag_F77='${wl}-z,nodefs' 14568 archive_cmds_need_lc_F77=no 14569 hardcode_shlibpath_var_F77=no 14570 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14571 hardcode_libdir_separator_F77=':' 14572 link_all_deplibs_F77=yes 14573 export_dynamic_flag_spec_F77='${wl}-Bexport' 14574 runpath_var='LD_RUN_PATH' 14575 14576 if test "$GCC" = yes; then 14577 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14578 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14579 else 14580 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14581 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14582 fi 14583 ;; 14584 14585 uts4*) 14586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14587 hardcode_libdir_flag_spec_F77='-L$libdir' 14588 hardcode_shlibpath_var_F77=no 14589 ;; 14590 14591 *) 14592 ld_shlibs_F77=no 14593 ;; 14594 esac 14595 fi 14596 14597echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14598echo "${ECHO_T}$ld_shlibs_F77" >&6 14599test "$ld_shlibs_F77" = no && can_build_shared=no 14600 14601# 14602# Do we need to explicitly link libc? 14603# 14604case "x$archive_cmds_need_lc_F77" in 14605x|xyes) 14606 # Assume -lc should be added 14607 archive_cmds_need_lc_F77=yes 14608 14609 if test "$enable_shared" = yes && test "$GCC" = yes; then 14610 case $archive_cmds_F77 in 14611 *'~'*) 14612 # FIXME: we may have to deal with multi-command sequences. 14613 ;; 14614 '$CC '*) 14615 # Test whether the compiler implicitly links with -lc since on some 14616 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14617 # to ld, don't add -lc before -lgcc. 14618 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14619echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14620 $rm conftest* 14621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14622 14623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14624 (eval $ac_compile) 2>&5 14625 ac_status=$? 14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14627 (exit $ac_status); } 2>conftest.err; then 14628 soname=conftest 14629 lib=conftest 14630 libobjs=conftest.$ac_objext 14631 deplibs= 14632 wl=$lt_prog_compiler_wl_F77 14633 pic_flag=$lt_prog_compiler_pic_F77 14634 compiler_flags=-v 14635 linker_flags=-v 14636 verstring= 14637 output_objdir=. 14638 libname=conftest 14639 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14640 allow_undefined_flag_F77= 14641 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14642 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14643 ac_status=$? 14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14645 (exit $ac_status); } 14646 then 14647 archive_cmds_need_lc_F77=no 14648 else 14649 archive_cmds_need_lc_F77=yes 14650 fi 14651 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14652 else 14653 cat conftest.err 1>&5 14654 fi 14655 $rm conftest* 14656 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14657echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14658 ;; 14659 esac 14660 fi 14661 ;; 14662esac 14663 14664echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14665echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14666library_names_spec= 14667libname_spec='lib$name' 14668soname_spec= 14669shrext_cmds=".so" 14670postinstall_cmds= 14671postuninstall_cmds= 14672finish_cmds= 14673finish_eval= 14674shlibpath_var= 14675shlibpath_overrides_runpath=unknown 14676version_type=none 14677dynamic_linker="$host_os ld.so" 14678sys_lib_dlsearch_path_spec="/lib /usr/lib" 14679if test "$GCC" = yes; then 14680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14681 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14682 # if the path contains ";" then we assume it to be the separator 14683 # otherwise default to the standard path separator (i.e. ":") - it is 14684 # assumed that no part of a normal pathname contains ";" but that should 14685 # okay in the real world where ";" in dirpaths is itself problematic. 14686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14687 else 14688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14689 fi 14690else 14691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14692fi 14693need_lib_prefix=unknown 14694hardcode_into_libs=no 14695 14696# when you set need_version to no, make sure it does not cause -set_version 14697# flags to be left without arguments 14698need_version=unknown 14699 14700case $host_os in 14701aix3*) 14702 version_type=linux 14703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14704 shlibpath_var=LIBPATH 14705 14706 # AIX 3 has no versioning support, so we append a major version to the name. 14707 soname_spec='${libname}${release}${shared_ext}$major' 14708 ;; 14709 14710aix4* | aix5*) 14711 version_type=linux 14712 need_lib_prefix=no 14713 need_version=no 14714 hardcode_into_libs=yes 14715 if test "$host_cpu" = ia64; then 14716 # AIX 5 supports IA64 14717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14718 shlibpath_var=LD_LIBRARY_PATH 14719 else 14720 # With GCC up to 2.95.x, collect2 would create an import file 14721 # for dependence libraries. The import file would start with 14722 # the line `#! .'. This would cause the generated library to 14723 # depend on `.', always an invalid library. This was fixed in 14724 # development snapshots of GCC prior to 3.0. 14725 case $host_os in 14726 aix4 | aix4.[01] | aix4.[01].*) 14727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14728 echo ' yes ' 14729 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14730 : 14731 else 14732 can_build_shared=no 14733 fi 14734 ;; 14735 esac 14736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14737 # soname into executable. Probably we can add versioning support to 14738 # collect2, so additional links can be useful in future. 14739 if test "$aix_use_runtimelinking" = yes; then 14740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14741 # instead of lib<name>.a to let people know that these are not 14742 # typical AIX shared libraries. 14743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14744 else 14745 # We preserve .a as extension for shared libraries through AIX4.2 14746 # and later when we are not doing run time linking. 14747 library_names_spec='${libname}${release}.a $libname.a' 14748 soname_spec='${libname}${release}${shared_ext}$major' 14749 fi 14750 shlibpath_var=LIBPATH 14751 fi 14752 ;; 14753 14754amigaos*) 14755 library_names_spec='$libname.ixlibrary $libname.a' 14756 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14757 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' 14758 ;; 14759 14760beos*) 14761 library_names_spec='${libname}${shared_ext}' 14762 dynamic_linker="$host_os ld.so" 14763 shlibpath_var=LIBRARY_PATH 14764 ;; 14765 14766bsdi[45]*) 14767 version_type=linux 14768 need_version=no 14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14770 soname_spec='${libname}${release}${shared_ext}$major' 14771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14772 shlibpath_var=LD_LIBRARY_PATH 14773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14775 # the default ld.so.conf also contains /usr/contrib/lib and 14776 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14777 # libtool to hard-code these into programs 14778 ;; 14779 14780cygwin* | mingw* | pw32*) 14781 version_type=windows 14782 shrext_cmds=".dll" 14783 need_version=no 14784 need_lib_prefix=no 14785 14786 case $GCC,$host_os in 14787 yes,cygwin* | yes,mingw* | yes,pw32*) 14788 library_names_spec='$libname.dll.a' 14789 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14790 postinstall_cmds='base_file=`basename \${file}`~ 14791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14792 dldir=$destdir/`dirname \$dlpath`~ 14793 test -d \$dldir || mkdir -p \$dldir~ 14794 $install_prog $dir/$dlname \$dldir/$dlname~ 14795 chmod a+x \$dldir/$dlname' 14796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14797 dlpath=$dir/\$dldll~ 14798 $rm \$dlpath' 14799 shlibpath_overrides_runpath=yes 14800 14801 case $host_os in 14802 cygwin*) 14803 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14804 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14805 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14806 ;; 14807 mingw*) 14808 # MinGW DLLs use traditional 'lib' prefix 14809 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14810 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14811 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14812 # It is most probably a Windows format PATH printed by 14813 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14814 # path with ; separators, and with drive letters. We can handle the 14815 # drive letters (cygwin fileutils understands them), so leave them, 14816 # especially as we might pass files found there to a mingw objdump, 14817 # which wouldn't understand a cygwinified path. Ahh. 14818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14819 else 14820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14821 fi 14822 ;; 14823 pw32*) 14824 # pw32 DLLs use 'pw' prefix rather than 'lib' 14825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14826 ;; 14827 esac 14828 ;; 14829 14830 *) 14831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14832 ;; 14833 esac 14834 dynamic_linker='Win32 ld.exe' 14835 # FIXME: first we should search . and the directory the executable is in 14836 shlibpath_var=PATH 14837 ;; 14838 14839darwin* | rhapsody*) 14840 dynamic_linker="$host_os dyld" 14841 version_type=darwin 14842 need_lib_prefix=no 14843 need_version=no 14844 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14845 soname_spec='${libname}${release}${major}$shared_ext' 14846 shlibpath_overrides_runpath=yes 14847 shlibpath_var=DYLD_LIBRARY_PATH 14848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14849 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14850 if test "$GCC" = yes; then 14851 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"` 14852 else 14853 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14854 fi 14855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14856 ;; 14857 14858dgux*) 14859 version_type=linux 14860 need_lib_prefix=no 14861 need_version=no 14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14863 soname_spec='${libname}${release}${shared_ext}$major' 14864 shlibpath_var=LD_LIBRARY_PATH 14865 ;; 14866 14867freebsd1*) 14868 dynamic_linker=no 14869 ;; 14870 14871kfreebsd*-gnu) 14872 version_type=linux 14873 need_lib_prefix=no 14874 need_version=no 14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14876 soname_spec='${libname}${release}${shared_ext}$major' 14877 shlibpath_var=LD_LIBRARY_PATH 14878 shlibpath_overrides_runpath=no 14879 hardcode_into_libs=yes 14880 dynamic_linker='GNU ld.so' 14881 ;; 14882 14883freebsd* | dragonfly*) 14884 # DragonFly does not have aout. When/if they implement a new 14885 # versioning mechanism, adjust this. 14886 if test -x /usr/bin/objformat; then 14887 objformat=`/usr/bin/objformat` 14888 else 14889 case $host_os in 14890 freebsd[123]*) objformat=aout ;; 14891 *) objformat=elf ;; 14892 esac 14893 fi 14894 version_type=freebsd-$objformat 14895 case $version_type in 14896 freebsd-elf*) 14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14898 need_version=no 14899 need_lib_prefix=no 14900 ;; 14901 freebsd-*) 14902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14903 need_version=yes 14904 ;; 14905 esac 14906 shlibpath_var=LD_LIBRARY_PATH 14907 case $host_os in 14908 freebsd2*) 14909 shlibpath_overrides_runpath=yes 14910 ;; 14911 freebsd3.[01]* | freebsdelf3.[01]*) 14912 shlibpath_overrides_runpath=yes 14913 hardcode_into_libs=yes 14914 ;; 14915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14917 shlibpath_overrides_runpath=no 14918 hardcode_into_libs=yes 14919 ;; 14920 freebsd*) # from 4.6 on 14921 shlibpath_overrides_runpath=yes 14922 hardcode_into_libs=yes 14923 ;; 14924 esac 14925 ;; 14926 14927gnu*) 14928 version_type=linux 14929 need_lib_prefix=no 14930 need_version=no 14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14932 soname_spec='${libname}${release}${shared_ext}$major' 14933 shlibpath_var=LD_LIBRARY_PATH 14934 hardcode_into_libs=yes 14935 ;; 14936 14937hpux9* | hpux10* | hpux11*) 14938 # Give a soname corresponding to the major version so that dld.sl refuses to 14939 # link against other versions. 14940 version_type=sunos 14941 need_lib_prefix=no 14942 need_version=no 14943 case $host_cpu in 14944 ia64*) 14945 shrext_cmds='.so' 14946 hardcode_into_libs=yes 14947 dynamic_linker="$host_os dld.so" 14948 shlibpath_var=LD_LIBRARY_PATH 14949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14951 soname_spec='${libname}${release}${shared_ext}$major' 14952 if test "X$HPUX_IA64_MODE" = X32; then 14953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14954 else 14955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14956 fi 14957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14958 ;; 14959 hppa*64*) 14960 shrext_cmds='.sl' 14961 hardcode_into_libs=yes 14962 dynamic_linker="$host_os dld.sl" 14963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14966 soname_spec='${libname}${release}${shared_ext}$major' 14967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14969 ;; 14970 *) 14971 shrext_cmds='.sl' 14972 dynamic_linker="$host_os dld.sl" 14973 shlibpath_var=SHLIB_PATH 14974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14976 soname_spec='${libname}${release}${shared_ext}$major' 14977 ;; 14978 esac 14979 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14980 postinstall_cmds='chmod 555 $lib' 14981 ;; 14982 14983interix3*) 14984 version_type=linux 14985 need_lib_prefix=no 14986 need_version=no 14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14988 soname_spec='${libname}${release}${shared_ext}$major' 14989 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14990 shlibpath_var=LD_LIBRARY_PATH 14991 shlibpath_overrides_runpath=no 14992 hardcode_into_libs=yes 14993 ;; 14994 14995irix5* | irix6* | nonstopux*) 14996 case $host_os in 14997 nonstopux*) version_type=nonstopux ;; 14998 *) 14999 if test "$lt_cv_prog_gnu_ld" = yes; then 15000 version_type=linux 15001 else 15002 version_type=irix 15003 fi ;; 15004 esac 15005 need_lib_prefix=no 15006 need_version=no 15007 soname_spec='${libname}${release}${shared_ext}$major' 15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15009 case $host_os in 15010 irix5* | nonstopux*) 15011 libsuff= shlibsuff= 15012 ;; 15013 *) 15014 case $LD in # libtool.m4 will add one of these switches to LD 15015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15016 libsuff= shlibsuff= libmagic=32-bit;; 15017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15018 libsuff=32 shlibsuff=N32 libmagic=N32;; 15019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15020 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15021 *) libsuff= shlibsuff= libmagic=never-match;; 15022 esac 15023 ;; 15024 esac 15025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15026 shlibpath_overrides_runpath=no 15027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15029 hardcode_into_libs=yes 15030 ;; 15031 15032# No shared lib support for Linux oldld, aout, or coff. 15033linux*oldld* | linux*aout* | linux*coff*) 15034 dynamic_linker=no 15035 ;; 15036 15037# This must be Linux ELF. 15038linux*) 15039 version_type=linux 15040 need_lib_prefix=no 15041 need_version=no 15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15043 soname_spec='${libname}${release}${shared_ext}$major' 15044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15045 shlibpath_var=LD_LIBRARY_PATH 15046 shlibpath_overrides_runpath=no 15047 # This implies no fast_install, which is unacceptable. 15048 # Some rework will be needed to allow for fast_install 15049 # before this can be enabled. 15050 hardcode_into_libs=yes 15051 15052 # Append ld.so.conf contents to the search path 15053 if test -f /etc/ld.so.conf; then 15054 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15055 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15056 fi 15057 15058 # We used to test for /lib/ld.so.1 and disable shared libraries on 15059 # powerpc, because MkLinux only supported shared libraries with the 15060 # GNU dynamic linker. Since this was broken with cross compilers, 15061 # most powerpc-linux boxes support dynamic linking these days and 15062 # people can always --disable-shared, the test was removed, and we 15063 # assume the GNU/Linux dynamic linker is in use. 15064 dynamic_linker='GNU/Linux ld.so' 15065 ;; 15066 15067knetbsd*-gnu) 15068 version_type=linux 15069 need_lib_prefix=no 15070 need_version=no 15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15072 soname_spec='${libname}${release}${shared_ext}$major' 15073 shlibpath_var=LD_LIBRARY_PATH 15074 shlibpath_overrides_runpath=no 15075 hardcode_into_libs=yes 15076 dynamic_linker='GNU ld.so' 15077 ;; 15078 15079netbsd*) 15080 version_type=sunos 15081 need_lib_prefix=no 15082 need_version=no 15083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15086 dynamic_linker='NetBSD (a.out) ld.so' 15087 else 15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15089 soname_spec='${libname}${release}${shared_ext}$major' 15090 dynamic_linker='NetBSD ld.elf_so' 15091 fi 15092 shlibpath_var=LD_LIBRARY_PATH 15093 shlibpath_overrides_runpath=yes 15094 hardcode_into_libs=yes 15095 ;; 15096 15097newsos6) 15098 version_type=linux 15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15100 shlibpath_var=LD_LIBRARY_PATH 15101 shlibpath_overrides_runpath=yes 15102 ;; 15103 15104nto-qnx*) 15105 version_type=linux 15106 need_lib_prefix=no 15107 need_version=no 15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15109 soname_spec='${libname}${release}${shared_ext}$major' 15110 shlibpath_var=LD_LIBRARY_PATH 15111 shlibpath_overrides_runpath=yes 15112 ;; 15113 15114openbsd*) 15115 version_type=sunos 15116 sys_lib_dlsearch_path_spec="/usr/lib" 15117 need_lib_prefix=no 15118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15119 case $host_os in 15120 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15121 *) need_version=no ;; 15122 esac 15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15125 shlibpath_var=LD_LIBRARY_PATH 15126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15127 case $host_os in 15128 openbsd2.[89] | openbsd2.[89].*) 15129 shlibpath_overrides_runpath=no 15130 ;; 15131 *) 15132 shlibpath_overrides_runpath=yes 15133 ;; 15134 esac 15135 else 15136 shlibpath_overrides_runpath=yes 15137 fi 15138 ;; 15139 15140os2*) 15141 libname_spec='$name' 15142 shrext_cmds=".dll" 15143 need_lib_prefix=no 15144 library_names_spec='$libname${shared_ext} $libname.a' 15145 dynamic_linker='OS/2 ld.exe' 15146 shlibpath_var=LIBPATH 15147 ;; 15148 15149osf3* | osf4* | osf5*) 15150 version_type=osf 15151 need_lib_prefix=no 15152 need_version=no 15153 soname_spec='${libname}${release}${shared_ext}$major' 15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15155 shlibpath_var=LD_LIBRARY_PATH 15156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15158 ;; 15159 15160solaris*) 15161 version_type=linux 15162 need_lib_prefix=no 15163 need_version=no 15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15165 soname_spec='${libname}${release}${shared_ext}$major' 15166 shlibpath_var=LD_LIBRARY_PATH 15167 shlibpath_overrides_runpath=yes 15168 hardcode_into_libs=yes 15169 # ldd complains unless libraries are executable 15170 postinstall_cmds='chmod +x $lib' 15171 ;; 15172 15173sunos4*) 15174 version_type=sunos 15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15177 shlibpath_var=LD_LIBRARY_PATH 15178 shlibpath_overrides_runpath=yes 15179 if test "$with_gnu_ld" = yes; then 15180 need_lib_prefix=no 15181 fi 15182 need_version=yes 15183 ;; 15184 15185sysv4 | sysv4.3*) 15186 version_type=linux 15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15188 soname_spec='${libname}${release}${shared_ext}$major' 15189 shlibpath_var=LD_LIBRARY_PATH 15190 case $host_vendor in 15191 sni) 15192 shlibpath_overrides_runpath=no 15193 need_lib_prefix=no 15194 export_dynamic_flag_spec='${wl}-Blargedynsym' 15195 runpath_var=LD_RUN_PATH 15196 ;; 15197 siemens) 15198 need_lib_prefix=no 15199 ;; 15200 motorola) 15201 need_lib_prefix=no 15202 need_version=no 15203 shlibpath_overrides_runpath=no 15204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15205 ;; 15206 esac 15207 ;; 15208 15209sysv4*MP*) 15210 if test -d /usr/nec ;then 15211 version_type=linux 15212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15213 soname_spec='$libname${shared_ext}.$major' 15214 shlibpath_var=LD_LIBRARY_PATH 15215 fi 15216 ;; 15217 15218sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15219 version_type=freebsd-elf 15220 need_lib_prefix=no 15221 need_version=no 15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15223 soname_spec='${libname}${release}${shared_ext}$major' 15224 shlibpath_var=LD_LIBRARY_PATH 15225 hardcode_into_libs=yes 15226 if test "$with_gnu_ld" = yes; then 15227 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15228 shlibpath_overrides_runpath=no 15229 else 15230 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15231 shlibpath_overrides_runpath=yes 15232 case $host_os in 15233 sco3.2v5*) 15234 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15235 ;; 15236 esac 15237 fi 15238 sys_lib_dlsearch_path_spec='/usr/lib' 15239 ;; 15240 15241uts4*) 15242 version_type=linux 15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15244 soname_spec='${libname}${release}${shared_ext}$major' 15245 shlibpath_var=LD_LIBRARY_PATH 15246 ;; 15247 15248*) 15249 dynamic_linker=no 15250 ;; 15251esac 15252echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15253echo "${ECHO_T}$dynamic_linker" >&6 15254test "$dynamic_linker" = no && can_build_shared=no 15255 15256variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15257if test "$GCC" = yes; then 15258 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15259fi 15260 15261echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15262echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15263hardcode_action_F77= 15264if test -n "$hardcode_libdir_flag_spec_F77" || \ 15265 test -n "$runpath_var_F77" || \ 15266 test "X$hardcode_automatic_F77" = "Xyes" ; then 15267 15268 # We can hardcode non-existant directories. 15269 if test "$hardcode_direct_F77" != no && 15270 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15271 # have to relink, otherwise we might link with an installed library 15272 # when we should be linking with a yet-to-be-installed one 15273 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15274 test "$hardcode_minus_L_F77" != no; then 15275 # Linking always hardcodes the temporary library directory. 15276 hardcode_action_F77=relink 15277 else 15278 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15279 hardcode_action_F77=immediate 15280 fi 15281else 15282 # We cannot hardcode anything, or else we can only hardcode existing 15283 # directories. 15284 hardcode_action_F77=unsupported 15285fi 15286echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15287echo "${ECHO_T}$hardcode_action_F77" >&6 15288 15289if test "$hardcode_action_F77" = relink; then 15290 # Fast installation is not supported 15291 enable_fast_install=no 15292elif test "$shlibpath_overrides_runpath" = yes || 15293 test "$enable_shared" = no; then 15294 # Fast installation is not necessary 15295 enable_fast_install=needless 15296fi 15297 15298 15299# The else clause should only fire when bootstrapping the 15300# libtool distribution, otherwise you forgot to ship ltmain.sh 15301# with your package, and you will get complaints that there are 15302# no rules to generate ltmain.sh. 15303if test -f "$ltmain"; then 15304 # See if we are running on zsh, and set the options which allow our commands through 15305 # without removal of \ escapes. 15306 if test -n "${ZSH_VERSION+set}" ; then 15307 setopt NO_GLOB_SUBST 15308 fi 15309 # Now quote all the things that may contain metacharacters while being 15310 # careful not to overquote the AC_SUBSTed values. We take copies of the 15311 # variables and quote the copies for generation of the libtool script. 15312 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15313 SED SHELL STRIP \ 15314 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15315 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15316 deplibs_check_method reload_flag reload_cmds need_locks \ 15317 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15318 lt_cv_sys_global_symbol_to_c_name_address \ 15319 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15320 old_postinstall_cmds old_postuninstall_cmds \ 15321 compiler_F77 \ 15322 CC_F77 \ 15323 LD_F77 \ 15324 lt_prog_compiler_wl_F77 \ 15325 lt_prog_compiler_pic_F77 \ 15326 lt_prog_compiler_static_F77 \ 15327 lt_prog_compiler_no_builtin_flag_F77 \ 15328 export_dynamic_flag_spec_F77 \ 15329 thread_safe_flag_spec_F77 \ 15330 whole_archive_flag_spec_F77 \ 15331 enable_shared_with_static_runtimes_F77 \ 15332 old_archive_cmds_F77 \ 15333 old_archive_from_new_cmds_F77 \ 15334 predep_objects_F77 \ 15335 postdep_objects_F77 \ 15336 predeps_F77 \ 15337 postdeps_F77 \ 15338 compiler_lib_search_path_F77 \ 15339 archive_cmds_F77 \ 15340 archive_expsym_cmds_F77 \ 15341 postinstall_cmds_F77 \ 15342 postuninstall_cmds_F77 \ 15343 old_archive_from_expsyms_cmds_F77 \ 15344 allow_undefined_flag_F77 \ 15345 no_undefined_flag_F77 \ 15346 export_symbols_cmds_F77 \ 15347 hardcode_libdir_flag_spec_F77 \ 15348 hardcode_libdir_flag_spec_ld_F77 \ 15349 hardcode_libdir_separator_F77 \ 15350 hardcode_automatic_F77 \ 15351 module_cmds_F77 \ 15352 module_expsym_cmds_F77 \ 15353 lt_cv_prog_compiler_c_o_F77 \ 15354 exclude_expsyms_F77 \ 15355 include_expsyms_F77; do 15356 15357 case $var in 15358 old_archive_cmds_F77 | \ 15359 old_archive_from_new_cmds_F77 | \ 15360 archive_cmds_F77 | \ 15361 archive_expsym_cmds_F77 | \ 15362 module_cmds_F77 | \ 15363 module_expsym_cmds_F77 | \ 15364 old_archive_from_expsyms_cmds_F77 | \ 15365 export_symbols_cmds_F77 | \ 15366 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15367 postinstall_cmds | postuninstall_cmds | \ 15368 old_postinstall_cmds | old_postuninstall_cmds | \ 15369 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15370 # Double-quote double-evaled strings. 15371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15372 ;; 15373 *) 15374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15375 ;; 15376 esac 15377 done 15378 15379 case $lt_echo in 15380 *'\$0 --fallback-echo"') 15381 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15382 ;; 15383 esac 15384 15385cfgfile="$ofile" 15386 15387 cat <<__EOF__ >> "$cfgfile" 15388# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15389 15390# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15391 15392# Shell to use when invoking shell scripts. 15393SHELL=$lt_SHELL 15394 15395# Whether or not to build shared libraries. 15396build_libtool_libs=$enable_shared 15397 15398# Whether or not to build static libraries. 15399build_old_libs=$enable_static 15400 15401# Whether or not to add -lc for building shared libraries. 15402build_libtool_need_lc=$archive_cmds_need_lc_F77 15403 15404# Whether or not to disallow shared libs when runtime libs are static 15405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15406 15407# Whether or not to optimize for fast installation. 15408fast_install=$enable_fast_install 15409 15410# The host system. 15411host_alias=$host_alias 15412host=$host 15413host_os=$host_os 15414 15415# The build system. 15416build_alias=$build_alias 15417build=$build 15418build_os=$build_os 15419 15420# An echo program that does not interpret backslashes. 15421echo=$lt_echo 15422 15423# The archiver. 15424AR=$lt_AR 15425AR_FLAGS=$lt_AR_FLAGS 15426 15427# A C compiler. 15428LTCC=$lt_LTCC 15429 15430# LTCC compiler flags. 15431LTCFLAGS=$lt_LTCFLAGS 15432 15433# A language-specific compiler. 15434CC=$lt_compiler_F77 15435 15436# Is the compiler the GNU C compiler? 15437with_gcc=$GCC_F77 15438 15439# An ERE matcher. 15440EGREP=$lt_EGREP 15441 15442# The linker used to build libraries. 15443LD=$lt_LD_F77 15444 15445# Whether we need hard or soft links. 15446LN_S=$lt_LN_S 15447 15448# A BSD-compatible nm program. 15449NM=$lt_NM 15450 15451# A symbol stripping program 15452STRIP=$lt_STRIP 15453 15454# Used to examine libraries when file_magic_cmd begins "file" 15455MAGIC_CMD=$MAGIC_CMD 15456 15457# Used on cygwin: DLL creation program. 15458DLLTOOL="$DLLTOOL" 15459 15460# Used on cygwin: object dumper. 15461OBJDUMP="$OBJDUMP" 15462 15463# Used on cygwin: assembler. 15464AS="$AS" 15465 15466# The name of the directory that contains temporary libtool files. 15467objdir=$objdir 15468 15469# How to create reloadable object files. 15470reload_flag=$lt_reload_flag 15471reload_cmds=$lt_reload_cmds 15472 15473# How to pass a linker flag through the compiler. 15474wl=$lt_lt_prog_compiler_wl_F77 15475 15476# Object file suffix (normally "o"). 15477objext="$ac_objext" 15478 15479# Old archive suffix (normally "a"). 15480libext="$libext" 15481 15482# Shared library suffix (normally ".so"). 15483shrext_cmds='$shrext_cmds' 15484 15485# Executable file suffix (normally ""). 15486exeext="$exeext" 15487 15488# Additional compiler flags for building library objects. 15489pic_flag=$lt_lt_prog_compiler_pic_F77 15490pic_mode=$pic_mode 15491 15492# What is the maximum length of a command? 15493max_cmd_len=$lt_cv_sys_max_cmd_len 15494 15495# Does compiler simultaneously support -c and -o options? 15496compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15497 15498# Must we lock files when doing compilation? 15499need_locks=$lt_need_locks 15500 15501# Do we need the lib prefix for modules? 15502need_lib_prefix=$need_lib_prefix 15503 15504# Do we need a version for libraries? 15505need_version=$need_version 15506 15507# Whether dlopen is supported. 15508dlopen_support=$enable_dlopen 15509 15510# Whether dlopen of programs is supported. 15511dlopen_self=$enable_dlopen_self 15512 15513# Whether dlopen of statically linked programs is supported. 15514dlopen_self_static=$enable_dlopen_self_static 15515 15516# Compiler flag to prevent dynamic linking. 15517link_static_flag=$lt_lt_prog_compiler_static_F77 15518 15519# Compiler flag to turn off builtin functions. 15520no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15521 15522# Compiler flag to allow reflexive dlopens. 15523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15524 15525# Compiler flag to generate shared objects directly from archives. 15526whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15527 15528# Compiler flag to generate thread-safe objects. 15529thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15530 15531# Library versioning type. 15532version_type=$version_type 15533 15534# Format of library name prefix. 15535libname_spec=$lt_libname_spec 15536 15537# List of archive names. First name is the real one, the rest are links. 15538# The last name is the one that the linker finds with -lNAME. 15539library_names_spec=$lt_library_names_spec 15540 15541# The coded name of the library, if different from the real name. 15542soname_spec=$lt_soname_spec 15543 15544# Commands used to build and install an old-style archive. 15545RANLIB=$lt_RANLIB 15546old_archive_cmds=$lt_old_archive_cmds_F77 15547old_postinstall_cmds=$lt_old_postinstall_cmds 15548old_postuninstall_cmds=$lt_old_postuninstall_cmds 15549 15550# Create an old-style archive from a shared archive. 15551old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15552 15553# Create a temporary old-style archive to link instead of a shared archive. 15554old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15555 15556# Commands used to build and install a shared archive. 15557archive_cmds=$lt_archive_cmds_F77 15558archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15559postinstall_cmds=$lt_postinstall_cmds 15560postuninstall_cmds=$lt_postuninstall_cmds 15561 15562# Commands used to build a loadable module (assumed same as above if empty) 15563module_cmds=$lt_module_cmds_F77 15564module_expsym_cmds=$lt_module_expsym_cmds_F77 15565 15566# Commands to strip libraries. 15567old_striplib=$lt_old_striplib 15568striplib=$lt_striplib 15569 15570# Dependencies to place before the objects being linked to create a 15571# shared library. 15572predep_objects=$lt_predep_objects_F77 15573 15574# Dependencies to place after the objects being linked to create a 15575# shared library. 15576postdep_objects=$lt_postdep_objects_F77 15577 15578# Dependencies to place before the objects being linked to create a 15579# shared library. 15580predeps=$lt_predeps_F77 15581 15582# Dependencies to place after the objects being linked to create a 15583# shared library. 15584postdeps=$lt_postdeps_F77 15585 15586# The library search path used internally by the compiler when linking 15587# a shared library. 15588compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15589 15590# Method to check whether dependent libraries are shared objects. 15591deplibs_check_method=$lt_deplibs_check_method 15592 15593# Command to use when deplibs_check_method == file_magic. 15594file_magic_cmd=$lt_file_magic_cmd 15595 15596# Flag that allows shared libraries with undefined symbols to be built. 15597allow_undefined_flag=$lt_allow_undefined_flag_F77 15598 15599# Flag that forces no undefined symbols. 15600no_undefined_flag=$lt_no_undefined_flag_F77 15601 15602# Commands used to finish a libtool library installation in a directory. 15603finish_cmds=$lt_finish_cmds 15604 15605# Same as above, but a single script fragment to be evaled but not shown. 15606finish_eval=$lt_finish_eval 15607 15608# Take the output of nm and produce a listing of raw symbols and C names. 15609global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15610 15611# Transform the output of nm in a proper C declaration 15612global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15613 15614# Transform the output of nm in a C name address pair 15615global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15616 15617# This is the shared library runtime path variable. 15618runpath_var=$runpath_var 15619 15620# This is the shared library path variable. 15621shlibpath_var=$shlibpath_var 15622 15623# Is shlibpath searched before the hard-coded library search path? 15624shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15625 15626# How to hardcode a shared library path into an executable. 15627hardcode_action=$hardcode_action_F77 15628 15629# Whether we should hardcode library paths into libraries. 15630hardcode_into_libs=$hardcode_into_libs 15631 15632# Flag to hardcode \$libdir into a binary during linking. 15633# This must work even if \$libdir does not exist. 15634hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15635 15636# If ld is used when linking, flag to hardcode \$libdir into 15637# a binary during linking. This must work even if \$libdir does 15638# not exist. 15639hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15640 15641# Whether we need a single -rpath flag with a separated argument. 15642hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15643 15644# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15645# resulting binary. 15646hardcode_direct=$hardcode_direct_F77 15647 15648# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15649# resulting binary. 15650hardcode_minus_L=$hardcode_minus_L_F77 15651 15652# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15653# the resulting binary. 15654hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15655 15656# Set to yes if building a shared library automatically hardcodes DIR into the library 15657# and all subsequent libraries and executables linked against it. 15658hardcode_automatic=$hardcode_automatic_F77 15659 15660# Variables whose values should be saved in libtool wrapper scripts and 15661# restored at relink time. 15662variables_saved_for_relink="$variables_saved_for_relink" 15663 15664# Whether libtool must link a program against all its dependency libraries. 15665link_all_deplibs=$link_all_deplibs_F77 15666 15667# Compile-time system search path for libraries 15668sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15669 15670# Run-time system search path for libraries 15671sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15672 15673# Fix the shell variable \$srcfile for the compiler. 15674fix_srcfile_path="$fix_srcfile_path_F77" 15675 15676# Set to yes if exported symbols are required. 15677always_export_symbols=$always_export_symbols_F77 15678 15679# The commands to list exported symbols. 15680export_symbols_cmds=$lt_export_symbols_cmds_F77 15681 15682# The commands to extract the exported symbol list from a shared archive. 15683extract_expsyms_cmds=$lt_extract_expsyms_cmds 15684 15685# Symbols that should not be listed in the preloaded symbols. 15686exclude_expsyms=$lt_exclude_expsyms_F77 15687 15688# Symbols that must always be exported. 15689include_expsyms=$lt_include_expsyms_F77 15690 15691# ### END LIBTOOL TAG CONFIG: $tagname 15692 15693__EOF__ 15694 15695 15696else 15697 # If there is no Makefile yet, we rely on a make rule to execute 15698 # `config.status --recheck' to rerun these tests and create the 15699 # libtool script then. 15700 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15701 if test -f "$ltmain_in"; then 15702 test -f Makefile && make "$ltmain" 15703 fi 15704fi 15705 15706 15707ac_ext=c 15708ac_cpp='$CPP $CPPFLAGS' 15709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15711ac_compiler_gnu=$ac_cv_c_compiler_gnu 15712 15713CC="$lt_save_CC" 15714 15715 else 15716 tagname="" 15717 fi 15718 ;; 15719 15720 GCJ) 15721 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15722 15723 15724 15725# Source file extension for Java test sources. 15726ac_ext=java 15727 15728# Object file extension for compiled Java test sources. 15729objext=o 15730objext_GCJ=$objext 15731 15732# Code to be used in simple compile tests 15733lt_simple_compile_test_code="class foo {}\n" 15734 15735# Code to be used in simple link tests 15736lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15737 15738# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15739 15740# If no C compiler was specified, use CC. 15741LTCC=${LTCC-"$CC"} 15742 15743# If no C compiler flags were specified, use CFLAGS. 15744LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15745 15746# Allow CC to be a program name with arguments. 15747compiler=$CC 15748 15749 15750# save warnings/boilerplate of simple test code 15751ac_outfile=conftest.$ac_objext 15752printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15753eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15754_lt_compiler_boilerplate=`cat conftest.err` 15755$rm conftest* 15756 15757ac_outfile=conftest.$ac_objext 15758printf "$lt_simple_link_test_code" >conftest.$ac_ext 15759eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15760_lt_linker_boilerplate=`cat conftest.err` 15761$rm conftest* 15762 15763 15764# Allow CC to be a program name with arguments. 15765lt_save_CC="$CC" 15766CC=${GCJ-"gcj"} 15767compiler=$CC 15768compiler_GCJ=$CC 15769for cc_temp in $compiler""; do 15770 case $cc_temp in 15771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15773 \-*) ;; 15774 *) break;; 15775 esac 15776done 15777cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15778 15779 15780# GCJ did not exist at the time GCC didn't implicitly link libc in. 15781archive_cmds_need_lc_GCJ=no 15782 15783old_archive_cmds_GCJ=$old_archive_cmds 15784 15785## CAVEAT EMPTOR: 15786## There is no encapsulation within the following macros, do not change 15787## the running order or otherwise move them around unless you know exactly 15788## what you are doing... 15789 15790lt_prog_compiler_no_builtin_flag_GCJ= 15791 15792if test "$GCC" = yes; then 15793 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15794 15795 15796echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15797echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15798if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15799 echo $ECHO_N "(cached) $ECHO_C" >&6 15800else 15801 lt_cv_prog_compiler_rtti_exceptions=no 15802 ac_outfile=conftest.$ac_objext 15803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15804 lt_compiler_flag="-fno-rtti -fno-exceptions" 15805 # Insert the option either (1) after the last *FLAGS variable, or 15806 # (2) before a word containing "conftest.", or (3) at the end. 15807 # Note that $ac_compile itself does not contain backslashes and begins 15808 # with a dollar sign (not a hyphen), so the echo should work correctly. 15809 # The option is referenced via a variable to avoid confusing sed. 15810 lt_compile=`echo "$ac_compile" | $SED \ 15811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15813 -e 's:$: $lt_compiler_flag:'` 15814 (eval echo "\"\$as_me:15814: $lt_compile\"" >&5) 15815 (eval "$lt_compile" 2>conftest.err) 15816 ac_status=$? 15817 cat conftest.err >&5 15818 echo "$as_me:15818: \$? = $ac_status" >&5 15819 if (exit $ac_status) && test -s "$ac_outfile"; then 15820 # The compiler can only warn and ignore the option if not recognized 15821 # So say no if there are warnings other than the usual output. 15822 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15825 lt_cv_prog_compiler_rtti_exceptions=yes 15826 fi 15827 fi 15828 $rm conftest* 15829 15830fi 15831echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15832echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15833 15834if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15835 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15836else 15837 : 15838fi 15839 15840fi 15841 15842lt_prog_compiler_wl_GCJ= 15843lt_prog_compiler_pic_GCJ= 15844lt_prog_compiler_static_GCJ= 15845 15846echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15847echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15848 15849 if test "$GCC" = yes; then 15850 lt_prog_compiler_wl_GCJ='-Wl,' 15851 lt_prog_compiler_static_GCJ='-static' 15852 15853 case $host_os in 15854 aix*) 15855 # All AIX code is PIC. 15856 if test "$host_cpu" = ia64; then 15857 # AIX 5 now supports IA64 processor 15858 lt_prog_compiler_static_GCJ='-Bstatic' 15859 fi 15860 ;; 15861 15862 amigaos*) 15863 # FIXME: we need at least 68020 code to build shared libraries, but 15864 # adding the `-m68020' flag to GCC prevents building anything better, 15865 # like `-m68040'. 15866 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15867 ;; 15868 15869 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15870 # PIC is the default for these OSes. 15871 ;; 15872 15873 mingw* | pw32* | os2*) 15874 # This hack is so that the source file can tell whether it is being 15875 # built for inclusion in a dll (and should export symbols for example). 15876 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15877 ;; 15878 15879 darwin* | rhapsody*) 15880 # PIC is the default on this platform 15881 # Common symbols not allowed in MH_DYLIB files 15882 lt_prog_compiler_pic_GCJ='-fno-common' 15883 ;; 15884 15885 interix3*) 15886 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15887 # Instead, we relocate shared libraries at runtime. 15888 ;; 15889 15890 msdosdjgpp*) 15891 # Just because we use GCC doesn't mean we suddenly get shared libraries 15892 # on systems that don't support them. 15893 lt_prog_compiler_can_build_shared_GCJ=no 15894 enable_shared=no 15895 ;; 15896 15897 sysv4*MP*) 15898 if test -d /usr/nec; then 15899 lt_prog_compiler_pic_GCJ=-Kconform_pic 15900 fi 15901 ;; 15902 15903 hpux*) 15904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15905 # not for PA HP-UX. 15906 case $host_cpu in 15907 hppa*64*|ia64*) 15908 # +Z the default 15909 ;; 15910 *) 15911 lt_prog_compiler_pic_GCJ='-fPIC' 15912 ;; 15913 esac 15914 ;; 15915 15916 *) 15917 lt_prog_compiler_pic_GCJ='-fPIC' 15918 ;; 15919 esac 15920 else 15921 # PORTME Check for flag to pass linker flags through the system compiler. 15922 case $host_os in 15923 aix*) 15924 lt_prog_compiler_wl_GCJ='-Wl,' 15925 if test "$host_cpu" = ia64; then 15926 # AIX 5 now supports IA64 processor 15927 lt_prog_compiler_static_GCJ='-Bstatic' 15928 else 15929 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15930 fi 15931 ;; 15932 darwin*) 15933 # PIC is the default on this platform 15934 # Common symbols not allowed in MH_DYLIB files 15935 case $cc_basename in 15936 xlc*) 15937 lt_prog_compiler_pic_GCJ='-qnocommon' 15938 lt_prog_compiler_wl_GCJ='-Wl,' 15939 ;; 15940 esac 15941 ;; 15942 15943 mingw* | pw32* | os2*) 15944 # This hack is so that the source file can tell whether it is being 15945 # built for inclusion in a dll (and should export symbols for example). 15946 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15947 ;; 15948 15949 hpux9* | hpux10* | hpux11*) 15950 lt_prog_compiler_wl_GCJ='-Wl,' 15951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15952 # not for PA HP-UX. 15953 case $host_cpu in 15954 hppa*64*|ia64*) 15955 # +Z the default 15956 ;; 15957 *) 15958 lt_prog_compiler_pic_GCJ='+Z' 15959 ;; 15960 esac 15961 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15962 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15963 ;; 15964 15965 irix5* | irix6* | nonstopux*) 15966 lt_prog_compiler_wl_GCJ='-Wl,' 15967 # PIC (with -KPIC) is the default. 15968 lt_prog_compiler_static_GCJ='-non_shared' 15969 ;; 15970 15971 newsos6) 15972 lt_prog_compiler_pic_GCJ='-KPIC' 15973 lt_prog_compiler_static_GCJ='-Bstatic' 15974 ;; 15975 15976 linux*) 15977 case $cc_basename in 15978 icc* | ecc*) 15979 lt_prog_compiler_wl_GCJ='-Wl,' 15980 lt_prog_compiler_pic_GCJ='-KPIC' 15981 lt_prog_compiler_static_GCJ='-static' 15982 ;; 15983 pgcc* | pgf77* | pgf90* | pgf95*) 15984 # Portland Group compilers (*not* the Pentium gcc compiler, 15985 # which looks to be a dead project) 15986 lt_prog_compiler_wl_GCJ='-Wl,' 15987 lt_prog_compiler_pic_GCJ='-fpic' 15988 lt_prog_compiler_static_GCJ='-Bstatic' 15989 ;; 15990 ccc*) 15991 lt_prog_compiler_wl_GCJ='-Wl,' 15992 # All Alpha code is PIC. 15993 lt_prog_compiler_static_GCJ='-non_shared' 15994 ;; 15995 esac 15996 ;; 15997 15998 osf3* | osf4* | osf5*) 15999 lt_prog_compiler_wl_GCJ='-Wl,' 16000 # All OSF/1 code is PIC. 16001 lt_prog_compiler_static_GCJ='-non_shared' 16002 ;; 16003 16004 solaris*) 16005 lt_prog_compiler_pic_GCJ='-KPIC' 16006 lt_prog_compiler_static_GCJ='-Bstatic' 16007 case $cc_basename in 16008 f77* | f90* | f95*) 16009 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16010 *) 16011 lt_prog_compiler_wl_GCJ='-Wl,';; 16012 esac 16013 ;; 16014 16015 sunos4*) 16016 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16017 lt_prog_compiler_pic_GCJ='-PIC' 16018 lt_prog_compiler_static_GCJ='-Bstatic' 16019 ;; 16020 16021 sysv4 | sysv4.2uw2* | sysv4.3*) 16022 lt_prog_compiler_wl_GCJ='-Wl,' 16023 lt_prog_compiler_pic_GCJ='-KPIC' 16024 lt_prog_compiler_static_GCJ='-Bstatic' 16025 ;; 16026 16027 sysv4*MP*) 16028 if test -d /usr/nec ;then 16029 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16030 lt_prog_compiler_static_GCJ='-Bstatic' 16031 fi 16032 ;; 16033 16034 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16035 lt_prog_compiler_wl_GCJ='-Wl,' 16036 lt_prog_compiler_pic_GCJ='-KPIC' 16037 lt_prog_compiler_static_GCJ='-Bstatic' 16038 ;; 16039 16040 unicos*) 16041 lt_prog_compiler_wl_GCJ='-Wl,' 16042 lt_prog_compiler_can_build_shared_GCJ=no 16043 ;; 16044 16045 uts4*) 16046 lt_prog_compiler_pic_GCJ='-pic' 16047 lt_prog_compiler_static_GCJ='-Bstatic' 16048 ;; 16049 16050 *) 16051 lt_prog_compiler_can_build_shared_GCJ=no 16052 ;; 16053 esac 16054 fi 16055 16056echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16057echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16058 16059# 16060# Check to make sure the PIC flag actually works. 16061# 16062if test -n "$lt_prog_compiler_pic_GCJ"; then 16063 16064echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16065echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16066if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16067 echo $ECHO_N "(cached) $ECHO_C" >&6 16068else 16069 lt_prog_compiler_pic_works_GCJ=no 16070 ac_outfile=conftest.$ac_objext 16071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16072 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16073 # Insert the option either (1) after the last *FLAGS variable, or 16074 # (2) before a word containing "conftest.", or (3) at the end. 16075 # Note that $ac_compile itself does not contain backslashes and begins 16076 # with a dollar sign (not a hyphen), so the echo should work correctly. 16077 # The option is referenced via a variable to avoid confusing sed. 16078 lt_compile=`echo "$ac_compile" | $SED \ 16079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16081 -e 's:$: $lt_compiler_flag:'` 16082 (eval echo "\"\$as_me:16082: $lt_compile\"" >&5) 16083 (eval "$lt_compile" 2>conftest.err) 16084 ac_status=$? 16085 cat conftest.err >&5 16086 echo "$as_me:16086: \$? = $ac_status" >&5 16087 if (exit $ac_status) && test -s "$ac_outfile"; then 16088 # The compiler can only warn and ignore the option if not recognized 16089 # So say no if there are warnings other than the usual output. 16090 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16091 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16092 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16093 lt_prog_compiler_pic_works_GCJ=yes 16094 fi 16095 fi 16096 $rm conftest* 16097 16098fi 16099echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16100echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16101 16102if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16103 case $lt_prog_compiler_pic_GCJ in 16104 "" | " "*) ;; 16105 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16106 esac 16107else 16108 lt_prog_compiler_pic_GCJ= 16109 lt_prog_compiler_can_build_shared_GCJ=no 16110fi 16111 16112fi 16113case $host_os in 16114 # For platforms which do not support PIC, -DPIC is meaningless: 16115 *djgpp*) 16116 lt_prog_compiler_pic_GCJ= 16117 ;; 16118 *) 16119 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16120 ;; 16121esac 16122 16123# 16124# Check to make sure the static flag actually works. 16125# 16126wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16127echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16128echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 16129if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16130 echo $ECHO_N "(cached) $ECHO_C" >&6 16131else 16132 lt_prog_compiler_static_works_GCJ=no 16133 save_LDFLAGS="$LDFLAGS" 16134 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16135 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16136 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16137 # The linker can only warn and ignore the option if not recognized 16138 # So say no if there are warnings 16139 if test -s conftest.err; then 16140 # Append any errors to the config.log. 16141 cat conftest.err 1>&5 16142 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16144 if diff conftest.exp conftest.er2 >/dev/null; then 16145 lt_prog_compiler_static_works_GCJ=yes 16146 fi 16147 else 16148 lt_prog_compiler_static_works_GCJ=yes 16149 fi 16150 fi 16151 $rm conftest* 16152 LDFLAGS="$save_LDFLAGS" 16153 16154fi 16155echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16156echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 16157 16158if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16159 : 16160else 16161 lt_prog_compiler_static_GCJ= 16162fi 16163 16164 16165echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16166echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16167if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16168 echo $ECHO_N "(cached) $ECHO_C" >&6 16169else 16170 lt_cv_prog_compiler_c_o_GCJ=no 16171 $rm -r conftest 2>/dev/null 16172 mkdir conftest 16173 cd conftest 16174 mkdir out 16175 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16176 16177 lt_compiler_flag="-o out/conftest2.$ac_objext" 16178 # Insert the option either (1) after the last *FLAGS variable, or 16179 # (2) before a word containing "conftest.", or (3) at the end. 16180 # Note that $ac_compile itself does not contain backslashes and begins 16181 # with a dollar sign (not a hyphen), so the echo should work correctly. 16182 lt_compile=`echo "$ac_compile" | $SED \ 16183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16185 -e 's:$: $lt_compiler_flag:'` 16186 (eval echo "\"\$as_me:16186: $lt_compile\"" >&5) 16187 (eval "$lt_compile" 2>out/conftest.err) 16188 ac_status=$? 16189 cat out/conftest.err >&5 16190 echo "$as_me:16190: \$? = $ac_status" >&5 16191 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16192 then 16193 # The compiler can only warn and ignore the option if not recognized 16194 # So say no if there are warnings 16195 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16198 lt_cv_prog_compiler_c_o_GCJ=yes 16199 fi 16200 fi 16201 chmod u+w . 2>&5 16202 $rm conftest* 16203 # SGI C++ compiler will create directory out/ii_files/ for 16204 # template instantiation 16205 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16206 $rm out/* && rmdir out 16207 cd .. 16208 rmdir conftest 16209 $rm conftest* 16210 16211fi 16212echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16213echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16214 16215 16216hard_links="nottested" 16217if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16218 # do not overwrite the value of need_locks provided by the user 16219 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16220echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16221 hard_links=yes 16222 $rm conftest* 16223 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16224 touch conftest.a 16225 ln conftest.a conftest.b 2>&5 || hard_links=no 16226 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16227 echo "$as_me:$LINENO: result: $hard_links" >&5 16228echo "${ECHO_T}$hard_links" >&6 16229 if test "$hard_links" = no; then 16230 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16231echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16232 need_locks=warn 16233 fi 16234else 16235 need_locks=no 16236fi 16237 16238echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16239echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16240 16241 runpath_var= 16242 allow_undefined_flag_GCJ= 16243 enable_shared_with_static_runtimes_GCJ=no 16244 archive_cmds_GCJ= 16245 archive_expsym_cmds_GCJ= 16246 old_archive_From_new_cmds_GCJ= 16247 old_archive_from_expsyms_cmds_GCJ= 16248 export_dynamic_flag_spec_GCJ= 16249 whole_archive_flag_spec_GCJ= 16250 thread_safe_flag_spec_GCJ= 16251 hardcode_libdir_flag_spec_GCJ= 16252 hardcode_libdir_flag_spec_ld_GCJ= 16253 hardcode_libdir_separator_GCJ= 16254 hardcode_direct_GCJ=no 16255 hardcode_minus_L_GCJ=no 16256 hardcode_shlibpath_var_GCJ=unsupported 16257 link_all_deplibs_GCJ=unknown 16258 hardcode_automatic_GCJ=no 16259 module_cmds_GCJ= 16260 module_expsym_cmds_GCJ= 16261 always_export_symbols_GCJ=no 16262 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16263 # include_expsyms should be a list of space-separated symbols to be *always* 16264 # included in the symbol list 16265 include_expsyms_GCJ= 16266 # exclude_expsyms can be an extended regexp of symbols to exclude 16267 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16269 # as well as any symbol that contains `d'. 16270 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16272 # platforms (ab)use it in PIC code, but their linkers get confused if 16273 # the symbol is explicitly referenced. Since portable code cannot 16274 # rely on this symbol name, it's probably fine to never include it in 16275 # preloaded symbol tables. 16276 extract_expsyms_cmds= 16277 # Just being paranoid about ensuring that cc_basename is set. 16278 for cc_temp in $compiler""; do 16279 case $cc_temp in 16280 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16281 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16282 \-*) ;; 16283 *) break;; 16284 esac 16285done 16286cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16287 16288 case $host_os in 16289 cygwin* | mingw* | pw32*) 16290 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16291 # When not using gcc, we currently assume that we are using 16292 # Microsoft Visual C++. 16293 if test "$GCC" != yes; then 16294 with_gnu_ld=no 16295 fi 16296 ;; 16297 interix*) 16298 # we just hope/assume this is gcc and not c89 (= MSVC++) 16299 with_gnu_ld=yes 16300 ;; 16301 openbsd*) 16302 with_gnu_ld=no 16303 ;; 16304 esac 16305 16306 ld_shlibs_GCJ=yes 16307 if test "$with_gnu_ld" = yes; then 16308 # If archive_cmds runs LD, not CC, wlarc should be empty 16309 wlarc='${wl}' 16310 16311 # Set some defaults for GNU ld with shared library support. These 16312 # are reset later if shared libraries are not supported. Putting them 16313 # here allows them to be overridden if necessary. 16314 runpath_var=LD_RUN_PATH 16315 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16316 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16317 # ancient GNU ld didn't support --whole-archive et. al. 16318 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16319 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16320 else 16321 whole_archive_flag_spec_GCJ= 16322 fi 16323 supports_anon_versioning=no 16324 case `$LD -v 2>/dev/null` in 16325 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16326 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16327 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16328 *\ 2.11.*) ;; # other 2.11 versions 16329 *) supports_anon_versioning=yes ;; 16330 esac 16331 16332 # See if GNU ld supports shared libraries. 16333 case $host_os in 16334 aix3* | aix4* | aix5*) 16335 # On AIX/PPC, the GNU linker is very broken 16336 if test "$host_cpu" != ia64; then 16337 ld_shlibs_GCJ=no 16338 cat <<EOF 1>&2 16339 16340*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16341*** to be unable to reliably create shared libraries on AIX. 16342*** Therefore, libtool is disabling shared libraries support. If you 16343*** really care for shared libraries, you may want to modify your PATH 16344*** so that a non-GNU linker is found, and then restart. 16345 16346EOF 16347 fi 16348 ;; 16349 16350 amigaos*) 16351 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)' 16352 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16353 hardcode_minus_L_GCJ=yes 16354 16355 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16356 # that the semantics of dynamic libraries on AmigaOS, at least up 16357 # to version 4, is to share data among multiple programs linked 16358 # with the same dynamic library. Since this doesn't match the 16359 # behavior of shared libraries on other platforms, we can't use 16360 # them. 16361 ld_shlibs_GCJ=no 16362 ;; 16363 16364 beos*) 16365 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16366 allow_undefined_flag_GCJ=unsupported 16367 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16368 # support --undefined. This deserves some investigation. FIXME 16369 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16370 else 16371 ld_shlibs_GCJ=no 16372 fi 16373 ;; 16374 16375 cygwin* | mingw* | pw32*) 16376 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16377 # as there is no search path for DLLs. 16378 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16379 allow_undefined_flag_GCJ=unsupported 16380 always_export_symbols_GCJ=no 16381 enable_shared_with_static_runtimes_GCJ=yes 16382 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16383 16384 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16385 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16386 # If the export-symbols file already is a .def file (1st line 16387 # is EXPORTS), use it as is; otherwise, prepend... 16388 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16389 cp $export_symbols $output_objdir/$soname.def; 16390 else 16391 echo EXPORTS > $output_objdir/$soname.def; 16392 cat $export_symbols >> $output_objdir/$soname.def; 16393 fi~ 16394 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16395 else 16396 ld_shlibs_GCJ=no 16397 fi 16398 ;; 16399 16400 interix3*) 16401 hardcode_direct_GCJ=no 16402 hardcode_shlibpath_var_GCJ=no 16403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16404 export_dynamic_flag_spec_GCJ='${wl}-E' 16405 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16406 # Instead, shared libraries are loaded at an image base (0x10000000 by 16407 # default) and relocated if they conflict, which is a slow very memory 16408 # consuming and fragmenting process. To avoid this, we pick a random, 16409 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16410 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16411 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16412 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16413 ;; 16414 16415 linux*) 16416 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16417 tmp_addflag= 16418 case $cc_basename,$host_cpu in 16419 pgcc*) # Portland Group C compiler 16420 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16421 tmp_addflag=' $pic_flag' 16422 ;; 16423 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16424 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16425 tmp_addflag=' $pic_flag -Mnomain' ;; 16426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16427 tmp_addflag=' -i_dynamic' ;; 16428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16429 tmp_addflag=' -i_dynamic -nofor_main' ;; 16430 ifc* | ifort*) # Intel Fortran compiler 16431 tmp_addflag=' -nofor_main' ;; 16432 esac 16433 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16434 16435 if test $supports_anon_versioning = yes; then 16436 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16438 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16439 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16440 fi 16441 else 16442 ld_shlibs_GCJ=no 16443 fi 16444 ;; 16445 16446 netbsd*) 16447 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16448 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16449 wlarc= 16450 else 16451 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16452 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16453 fi 16454 ;; 16455 16456 solaris*) 16457 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16458 ld_shlibs_GCJ=no 16459 cat <<EOF 1>&2 16460 16461*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16462*** create shared libraries on Solaris systems. Therefore, libtool 16463*** is disabling shared libraries support. We urge you to upgrade GNU 16464*** binutils to release 2.9.1 or newer. Another option is to modify 16465*** your PATH or compiler configuration so that the native linker is 16466*** used, and then restart. 16467 16468EOF 16469 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16470 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16471 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16472 else 16473 ld_shlibs_GCJ=no 16474 fi 16475 ;; 16476 16477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16478 case `$LD -v 2>&1` in 16479 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16480 ld_shlibs_GCJ=no 16481 cat <<_LT_EOF 1>&2 16482 16483*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16484*** reliably create shared libraries on SCO systems. Therefore, libtool 16485*** is disabling shared libraries support. We urge you to upgrade GNU 16486*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16487*** your PATH or compiler configuration so that the native linker is 16488*** used, and then restart. 16489 16490_LT_EOF 16491 ;; 16492 *) 16493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16494 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16495 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16496 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16497 else 16498 ld_shlibs_GCJ=no 16499 fi 16500 ;; 16501 esac 16502 ;; 16503 16504 sunos4*) 16505 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16506 wlarc= 16507 hardcode_direct_GCJ=yes 16508 hardcode_shlibpath_var_GCJ=no 16509 ;; 16510 16511 *) 16512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16513 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16514 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16515 else 16516 ld_shlibs_GCJ=no 16517 fi 16518 ;; 16519 esac 16520 16521 if test "$ld_shlibs_GCJ" = no; then 16522 runpath_var= 16523 hardcode_libdir_flag_spec_GCJ= 16524 export_dynamic_flag_spec_GCJ= 16525 whole_archive_flag_spec_GCJ= 16526 fi 16527 else 16528 # PORTME fill in a description of your system's linker (not GNU ld) 16529 case $host_os in 16530 aix3*) 16531 allow_undefined_flag_GCJ=unsupported 16532 always_export_symbols_GCJ=yes 16533 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' 16534 # Note: this linker hardcodes the directories in LIBPATH if there 16535 # are no directories specified by -L. 16536 hardcode_minus_L_GCJ=yes 16537 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16538 # Neither direct hardcoding nor static linking is supported with a 16539 # broken collect2. 16540 hardcode_direct_GCJ=unsupported 16541 fi 16542 ;; 16543 16544 aix4* | aix5*) 16545 if test "$host_cpu" = ia64; then 16546 # On IA64, the linker does run time linking by default, so we don't 16547 # have to do anything special. 16548 aix_use_runtimelinking=no 16549 exp_sym_flag='-Bexport' 16550 no_entry_flag="" 16551 else 16552 # If we're using GNU nm, then we don't want the "-C" option. 16553 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16554 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16555 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' 16556 else 16557 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' 16558 fi 16559 aix_use_runtimelinking=no 16560 16561 # Test if we are trying to use run time linking or normal 16562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16563 # need to do runtime linking. 16564 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16565 for ld_flag in $LDFLAGS; do 16566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16567 aix_use_runtimelinking=yes 16568 break 16569 fi 16570 done 16571 ;; 16572 esac 16573 16574 exp_sym_flag='-bexport' 16575 no_entry_flag='-bnoentry' 16576 fi 16577 16578 # When large executables or shared objects are built, AIX ld can 16579 # have problems creating the table of contents. If linking a library 16580 # or program results in "error TOC overflow" add -mminimal-toc to 16581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16583 16584 archive_cmds_GCJ='' 16585 hardcode_direct_GCJ=yes 16586 hardcode_libdir_separator_GCJ=':' 16587 link_all_deplibs_GCJ=yes 16588 16589 if test "$GCC" = yes; then 16590 case $host_os in aix4.[012]|aix4.[012].*) 16591 # We only want to do this on AIX 4.2 and lower, the check 16592 # below for broken collect2 doesn't work under 4.3+ 16593 collect2name=`${CC} -print-prog-name=collect2` 16594 if test -f "$collect2name" && \ 16595 strings "$collect2name" | grep resolve_lib_name >/dev/null 16596 then 16597 # We have reworked collect2 16598 hardcode_direct_GCJ=yes 16599 else 16600 # We have old collect2 16601 hardcode_direct_GCJ=unsupported 16602 # It fails to find uninstalled libraries when the uninstalled 16603 # path is not listed in the libpath. Setting hardcode_minus_L 16604 # to unsupported forces relinking 16605 hardcode_minus_L_GCJ=yes 16606 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16607 hardcode_libdir_separator_GCJ= 16608 fi 16609 ;; 16610 esac 16611 shared_flag='-shared' 16612 if test "$aix_use_runtimelinking" = yes; then 16613 shared_flag="$shared_flag "'${wl}-G' 16614 fi 16615 else 16616 # not using gcc 16617 if test "$host_cpu" = ia64; then 16618 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16619 # chokes on -Wl,-G. The following line is correct: 16620 shared_flag='-G' 16621 else 16622 if test "$aix_use_runtimelinking" = yes; then 16623 shared_flag='${wl}-G' 16624 else 16625 shared_flag='${wl}-bM:SRE' 16626 fi 16627 fi 16628 fi 16629 16630 # It seems that -bexpall does not export symbols beginning with 16631 # underscore (_), so it is better to generate a list of symbols to export. 16632 always_export_symbols_GCJ=yes 16633 if test "$aix_use_runtimelinking" = yes; then 16634 # Warning - without using the other runtime loading flags (-brtl), 16635 # -berok will link without error, but may produce a broken library. 16636 allow_undefined_flag_GCJ='-berok' 16637 # Determine the default libpath from the value encoded in an empty executable. 16638 cat >conftest.$ac_ext <<_ACEOF 16639/* confdefs.h. */ 16640_ACEOF 16641cat confdefs.h >>conftest.$ac_ext 16642cat >>conftest.$ac_ext <<_ACEOF 16643/* end confdefs.h. */ 16644 16645int 16646main () 16647{ 16648 16649 ; 16650 return 0; 16651} 16652_ACEOF 16653rm -f conftest.$ac_objext conftest$ac_exeext 16654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16655 (eval $ac_link) 2>conftest.er1 16656 ac_status=$? 16657 grep -v '^ *+' conftest.er1 >conftest.err 16658 rm -f conftest.er1 16659 cat conftest.err >&5 16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16661 (exit $ac_status); } && 16662 { ac_try='test -z "$ac_c_werror_flag" 16663 || test ! -s conftest.err' 16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16665 (eval $ac_try) 2>&5 16666 ac_status=$? 16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16668 (exit $ac_status); }; } && 16669 { ac_try='test -s conftest$ac_exeext' 16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16671 (eval $ac_try) 2>&5 16672 ac_status=$? 16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16674 (exit $ac_status); }; }; then 16675 16676aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16677}'` 16678# Check for a 64-bit object if we didn't find anything. 16679if 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; } 16680}'`; fi 16681else 16682 echo "$as_me: failed program was:" >&5 16683sed 's/^/| /' conftest.$ac_ext >&5 16684 16685fi 16686rm -f conftest.err conftest.$ac_objext \ 16687 conftest$ac_exeext conftest.$ac_ext 16688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16689 16690 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16691 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16692 else 16693 if test "$host_cpu" = ia64; then 16694 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16695 allow_undefined_flag_GCJ="-z nodefs" 16696 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 16697 else 16698 # Determine the default libpath from the value encoded in an empty executable. 16699 cat >conftest.$ac_ext <<_ACEOF 16700/* confdefs.h. */ 16701_ACEOF 16702cat confdefs.h >>conftest.$ac_ext 16703cat >>conftest.$ac_ext <<_ACEOF 16704/* end confdefs.h. */ 16705 16706int 16707main () 16708{ 16709 16710 ; 16711 return 0; 16712} 16713_ACEOF 16714rm -f conftest.$ac_objext conftest$ac_exeext 16715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16716 (eval $ac_link) 2>conftest.er1 16717 ac_status=$? 16718 grep -v '^ *+' conftest.er1 >conftest.err 16719 rm -f conftest.er1 16720 cat conftest.err >&5 16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16722 (exit $ac_status); } && 16723 { ac_try='test -z "$ac_c_werror_flag" 16724 || test ! -s conftest.err' 16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16726 (eval $ac_try) 2>&5 16727 ac_status=$? 16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16729 (exit $ac_status); }; } && 16730 { ac_try='test -s conftest$ac_exeext' 16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16732 (eval $ac_try) 2>&5 16733 ac_status=$? 16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16735 (exit $ac_status); }; }; then 16736 16737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16738}'` 16739# Check for a 64-bit object if we didn't find anything. 16740if 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; } 16741}'`; fi 16742else 16743 echo "$as_me: failed program was:" >&5 16744sed 's/^/| /' conftest.$ac_ext >&5 16745 16746fi 16747rm -f conftest.err conftest.$ac_objext \ 16748 conftest$ac_exeext conftest.$ac_ext 16749if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16750 16751 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16752 # Warning - without using the other run time loading flags, 16753 # -berok will link without error, but may produce a broken library. 16754 no_undefined_flag_GCJ=' ${wl}-bernotok' 16755 allow_undefined_flag_GCJ=' ${wl}-berok' 16756 # Exported symbols can be pulled into shared objects from archives 16757 whole_archive_flag_spec_GCJ='$convenience' 16758 archive_cmds_need_lc_GCJ=yes 16759 # This is similar to how AIX traditionally builds its shared libraries. 16760 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16761 fi 16762 fi 16763 ;; 16764 16765 amigaos*) 16766 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)' 16767 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16768 hardcode_minus_L_GCJ=yes 16769 # see comment about different semantics on the GNU ld section 16770 ld_shlibs_GCJ=no 16771 ;; 16772 16773 bsdi[45]*) 16774 export_dynamic_flag_spec_GCJ=-rdynamic 16775 ;; 16776 16777 cygwin* | mingw* | pw32*) 16778 # When not using gcc, we currently assume that we are using 16779 # Microsoft Visual C++. 16780 # hardcode_libdir_flag_spec is actually meaningless, as there is 16781 # no search path for DLLs. 16782 hardcode_libdir_flag_spec_GCJ=' ' 16783 allow_undefined_flag_GCJ=unsupported 16784 # Tell ltmain to make .lib files, not .a files. 16785 libext=lib 16786 # Tell ltmain to make .dll files, not .so files. 16787 shrext_cmds=".dll" 16788 # FIXME: Setting linknames here is a bad hack. 16789 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16790 # The linker will automatically build a .lib file if we build a DLL. 16791 old_archive_From_new_cmds_GCJ='true' 16792 # FIXME: Should let the user specify the lib program. 16793 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16794 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16795 enable_shared_with_static_runtimes_GCJ=yes 16796 ;; 16797 16798 darwin* | rhapsody*) 16799 case $host_os in 16800 rhapsody* | darwin1.[012]) 16801 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16802 ;; 16803 *) # Darwin 1.3 on 16804 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16805 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16806 else 16807 case ${MACOSX_DEPLOYMENT_TARGET} in 16808 10.[012]) 16809 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16810 ;; 16811 10.*) 16812 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16813 ;; 16814 esac 16815 fi 16816 ;; 16817 esac 16818 archive_cmds_need_lc_GCJ=no 16819 hardcode_direct_GCJ=no 16820 hardcode_automatic_GCJ=yes 16821 hardcode_shlibpath_var_GCJ=unsupported 16822 whole_archive_flag_spec_GCJ='' 16823 link_all_deplibs_GCJ=yes 16824 if test "$GCC" = yes ; then 16825 output_verbose_link_cmd='echo' 16826 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16827 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16829 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16830 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}' 16831 else 16832 case $cc_basename in 16833 xlc*) 16834 output_verbose_link_cmd='echo' 16835 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16836 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16837 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16838 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16839 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}' 16840 ;; 16841 *) 16842 ld_shlibs_GCJ=no 16843 ;; 16844 esac 16845 fi 16846 ;; 16847 16848 dgux*) 16849 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16850 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16851 hardcode_shlibpath_var_GCJ=no 16852 ;; 16853 16854 freebsd1*) 16855 ld_shlibs_GCJ=no 16856 ;; 16857 16858 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16859 # support. Future versions do this automatically, but an explicit c++rt0.o 16860 # does not break anything, and helps significantly (at the cost of a little 16861 # extra space). 16862 freebsd2.2*) 16863 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16864 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16865 hardcode_direct_GCJ=yes 16866 hardcode_shlibpath_var_GCJ=no 16867 ;; 16868 16869 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16870 freebsd2*) 16871 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16872 hardcode_direct_GCJ=yes 16873 hardcode_minus_L_GCJ=yes 16874 hardcode_shlibpath_var_GCJ=no 16875 ;; 16876 16877 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16878 freebsd* | kfreebsd*-gnu | dragonfly*) 16879 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16880 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16881 hardcode_direct_GCJ=yes 16882 hardcode_shlibpath_var_GCJ=no 16883 ;; 16884 16885 hpux9*) 16886 if test "$GCC" = yes; then 16887 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' 16888 else 16889 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' 16890 fi 16891 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16892 hardcode_libdir_separator_GCJ=: 16893 hardcode_direct_GCJ=yes 16894 16895 # hardcode_minus_L: Not really in the search PATH, 16896 # but as the default location of the library. 16897 hardcode_minus_L_GCJ=yes 16898 export_dynamic_flag_spec_GCJ='${wl}-E' 16899 ;; 16900 16901 hpux10*) 16902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16903 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16904 else 16905 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16906 fi 16907 if test "$with_gnu_ld" = no; then 16908 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16909 hardcode_libdir_separator_GCJ=: 16910 16911 hardcode_direct_GCJ=yes 16912 export_dynamic_flag_spec_GCJ='${wl}-E' 16913 16914 # hardcode_minus_L: Not really in the search PATH, 16915 # but as the default location of the library. 16916 hardcode_minus_L_GCJ=yes 16917 fi 16918 ;; 16919 16920 hpux11*) 16921 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16922 case $host_cpu in 16923 hppa*64*) 16924 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16925 ;; 16926 ia64*) 16927 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16928 ;; 16929 *) 16930 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16931 ;; 16932 esac 16933 else 16934 case $host_cpu in 16935 hppa*64*) 16936 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16937 ;; 16938 ia64*) 16939 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16940 ;; 16941 *) 16942 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16943 ;; 16944 esac 16945 fi 16946 if test "$with_gnu_ld" = no; then 16947 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16948 hardcode_libdir_separator_GCJ=: 16949 16950 case $host_cpu in 16951 hppa*64*|ia64*) 16952 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16953 hardcode_direct_GCJ=no 16954 hardcode_shlibpath_var_GCJ=no 16955 ;; 16956 *) 16957 hardcode_direct_GCJ=yes 16958 export_dynamic_flag_spec_GCJ='${wl}-E' 16959 16960 # hardcode_minus_L: Not really in the search PATH, 16961 # but as the default location of the library. 16962 hardcode_minus_L_GCJ=yes 16963 ;; 16964 esac 16965 fi 16966 ;; 16967 16968 irix5* | irix6* | nonstopux*) 16969 if test "$GCC" = yes; then 16970 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' 16971 else 16972 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' 16973 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16974 fi 16975 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16976 hardcode_libdir_separator_GCJ=: 16977 link_all_deplibs_GCJ=yes 16978 ;; 16979 16980 netbsd*) 16981 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16982 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16983 else 16984 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16985 fi 16986 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16987 hardcode_direct_GCJ=yes 16988 hardcode_shlibpath_var_GCJ=no 16989 ;; 16990 16991 newsos6) 16992 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16993 hardcode_direct_GCJ=yes 16994 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16995 hardcode_libdir_separator_GCJ=: 16996 hardcode_shlibpath_var_GCJ=no 16997 ;; 16998 16999 openbsd*) 17000 hardcode_direct_GCJ=yes 17001 hardcode_shlibpath_var_GCJ=no 17002 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17003 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17004 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17006 export_dynamic_flag_spec_GCJ='${wl}-E' 17007 else 17008 case $host_os in 17009 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17010 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17011 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17012 ;; 17013 *) 17014 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17016 ;; 17017 esac 17018 fi 17019 ;; 17020 17021 os2*) 17022 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17023 hardcode_minus_L_GCJ=yes 17024 allow_undefined_flag_GCJ=unsupported 17025 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' 17026 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17027 ;; 17028 17029 osf3*) 17030 if test "$GCC" = yes; then 17031 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17032 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' 17033 else 17034 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17035 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' 17036 fi 17037 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17038 hardcode_libdir_separator_GCJ=: 17039 ;; 17040 17041 osf4* | osf5*) # as osf3* with the addition of -msym flag 17042 if test "$GCC" = yes; then 17043 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17044 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' 17045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17046 else 17047 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17048 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' 17049 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~ 17050 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17051 17052 # Both c and cxx compiler support -rpath directly 17053 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17054 fi 17055 hardcode_libdir_separator_GCJ=: 17056 ;; 17057 17058 solaris*) 17059 no_undefined_flag_GCJ=' -z text' 17060 if test "$GCC" = yes; then 17061 wlarc='${wl}' 17062 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17063 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17064 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17065 else 17066 wlarc='' 17067 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17068 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17070 fi 17071 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17072 hardcode_shlibpath_var_GCJ=no 17073 case $host_os in 17074 solaris2.[0-5] | solaris2.[0-5].*) ;; 17075 *) 17076 # The compiler driver will combine linker options so we 17077 # cannot just pass the convience library names through 17078 # without $wl, iff we do not link with $LD. 17079 # Luckily, gcc supports the same syntax we need for Sun Studio. 17080 # Supported since Solaris 2.6 (maybe 2.5.1?) 17081 case $wlarc in 17082 '') 17083 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17084 *) 17085 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17086 esac ;; 17087 esac 17088 link_all_deplibs_GCJ=yes 17089 ;; 17090 17091 sunos4*) 17092 if test "x$host_vendor" = xsequent; then 17093 # Use $CC to link under sequent, because it throws in some extra .o 17094 # files that make .init and .fini sections work. 17095 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17096 else 17097 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17098 fi 17099 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17100 hardcode_direct_GCJ=yes 17101 hardcode_minus_L_GCJ=yes 17102 hardcode_shlibpath_var_GCJ=no 17103 ;; 17104 17105 sysv4) 17106 case $host_vendor in 17107 sni) 17108 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17109 hardcode_direct_GCJ=yes # is this really true??? 17110 ;; 17111 siemens) 17112 ## LD is ld it makes a PLAMLIB 17113 ## CC just makes a GrossModule. 17114 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17115 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17116 hardcode_direct_GCJ=no 17117 ;; 17118 motorola) 17119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17120 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17121 ;; 17122 esac 17123 runpath_var='LD_RUN_PATH' 17124 hardcode_shlibpath_var_GCJ=no 17125 ;; 17126 17127 sysv4.3*) 17128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17129 hardcode_shlibpath_var_GCJ=no 17130 export_dynamic_flag_spec_GCJ='-Bexport' 17131 ;; 17132 17133 sysv4*MP*) 17134 if test -d /usr/nec; then 17135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17136 hardcode_shlibpath_var_GCJ=no 17137 runpath_var=LD_RUN_PATH 17138 hardcode_runpath_var=yes 17139 ld_shlibs_GCJ=yes 17140 fi 17141 ;; 17142 17143 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17144 no_undefined_flag_GCJ='${wl}-z,text' 17145 archive_cmds_need_lc_GCJ=no 17146 hardcode_shlibpath_var_GCJ=no 17147 runpath_var='LD_RUN_PATH' 17148 17149 if test "$GCC" = yes; then 17150 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17151 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17152 else 17153 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17154 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17155 fi 17156 ;; 17157 17158 sysv5* | sco3.2v5* | sco5v6*) 17159 # Note: We can NOT use -z defs as we might desire, because we do not 17160 # link with -lc, and that would cause any symbols used from libc to 17161 # always be unresolved, which means just about no library would 17162 # ever link correctly. If we're not using GNU ld we use -z text 17163 # though, which does catch some bad symbols but isn't as heavy-handed 17164 # as -z defs. 17165 no_undefined_flag_GCJ='${wl}-z,text' 17166 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17167 archive_cmds_need_lc_GCJ=no 17168 hardcode_shlibpath_var_GCJ=no 17169 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17170 hardcode_libdir_separator_GCJ=':' 17171 link_all_deplibs_GCJ=yes 17172 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17173 runpath_var='LD_RUN_PATH' 17174 17175 if test "$GCC" = yes; then 17176 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17177 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17178 else 17179 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17180 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17181 fi 17182 ;; 17183 17184 uts4*) 17185 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17186 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17187 hardcode_shlibpath_var_GCJ=no 17188 ;; 17189 17190 *) 17191 ld_shlibs_GCJ=no 17192 ;; 17193 esac 17194 fi 17195 17196echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17197echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17198test "$ld_shlibs_GCJ" = no && can_build_shared=no 17199 17200# 17201# Do we need to explicitly link libc? 17202# 17203case "x$archive_cmds_need_lc_GCJ" in 17204x|xyes) 17205 # Assume -lc should be added 17206 archive_cmds_need_lc_GCJ=yes 17207 17208 if test "$enable_shared" = yes && test "$GCC" = yes; then 17209 case $archive_cmds_GCJ in 17210 *'~'*) 17211 # FIXME: we may have to deal with multi-command sequences. 17212 ;; 17213 '$CC '*) 17214 # Test whether the compiler implicitly links with -lc since on some 17215 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17216 # to ld, don't add -lc before -lgcc. 17217 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17218echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17219 $rm conftest* 17220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17221 17222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17223 (eval $ac_compile) 2>&5 17224 ac_status=$? 17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17226 (exit $ac_status); } 2>conftest.err; then 17227 soname=conftest 17228 lib=conftest 17229 libobjs=conftest.$ac_objext 17230 deplibs= 17231 wl=$lt_prog_compiler_wl_GCJ 17232 pic_flag=$lt_prog_compiler_pic_GCJ 17233 compiler_flags=-v 17234 linker_flags=-v 17235 verstring= 17236 output_objdir=. 17237 libname=conftest 17238 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17239 allow_undefined_flag_GCJ= 17240 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17241 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17242 ac_status=$? 17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17244 (exit $ac_status); } 17245 then 17246 archive_cmds_need_lc_GCJ=no 17247 else 17248 archive_cmds_need_lc_GCJ=yes 17249 fi 17250 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17251 else 17252 cat conftest.err 1>&5 17253 fi 17254 $rm conftest* 17255 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17256echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17257 ;; 17258 esac 17259 fi 17260 ;; 17261esac 17262 17263echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17264echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17265library_names_spec= 17266libname_spec='lib$name' 17267soname_spec= 17268shrext_cmds=".so" 17269postinstall_cmds= 17270postuninstall_cmds= 17271finish_cmds= 17272finish_eval= 17273shlibpath_var= 17274shlibpath_overrides_runpath=unknown 17275version_type=none 17276dynamic_linker="$host_os ld.so" 17277sys_lib_dlsearch_path_spec="/lib /usr/lib" 17278if test "$GCC" = yes; then 17279 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17280 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17281 # if the path contains ";" then we assume it to be the separator 17282 # otherwise default to the standard path separator (i.e. ":") - it is 17283 # assumed that no part of a normal pathname contains ";" but that should 17284 # okay in the real world where ";" in dirpaths is itself problematic. 17285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17286 else 17287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17288 fi 17289else 17290 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17291fi 17292need_lib_prefix=unknown 17293hardcode_into_libs=no 17294 17295# when you set need_version to no, make sure it does not cause -set_version 17296# flags to be left without arguments 17297need_version=unknown 17298 17299case $host_os in 17300aix3*) 17301 version_type=linux 17302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17303 shlibpath_var=LIBPATH 17304 17305 # AIX 3 has no versioning support, so we append a major version to the name. 17306 soname_spec='${libname}${release}${shared_ext}$major' 17307 ;; 17308 17309aix4* | aix5*) 17310 version_type=linux 17311 need_lib_prefix=no 17312 need_version=no 17313 hardcode_into_libs=yes 17314 if test "$host_cpu" = ia64; then 17315 # AIX 5 supports IA64 17316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17317 shlibpath_var=LD_LIBRARY_PATH 17318 else 17319 # With GCC up to 2.95.x, collect2 would create an import file 17320 # for dependence libraries. The import file would start with 17321 # the line `#! .'. This would cause the generated library to 17322 # depend on `.', always an invalid library. This was fixed in 17323 # development snapshots of GCC prior to 3.0. 17324 case $host_os in 17325 aix4 | aix4.[01] | aix4.[01].*) 17326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17327 echo ' yes ' 17328 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17329 : 17330 else 17331 can_build_shared=no 17332 fi 17333 ;; 17334 esac 17335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17336 # soname into executable. Probably we can add versioning support to 17337 # collect2, so additional links can be useful in future. 17338 if test "$aix_use_runtimelinking" = yes; then 17339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17340 # instead of lib<name>.a to let people know that these are not 17341 # typical AIX shared libraries. 17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17343 else 17344 # We preserve .a as extension for shared libraries through AIX4.2 17345 # and later when we are not doing run time linking. 17346 library_names_spec='${libname}${release}.a $libname.a' 17347 soname_spec='${libname}${release}${shared_ext}$major' 17348 fi 17349 shlibpath_var=LIBPATH 17350 fi 17351 ;; 17352 17353amigaos*) 17354 library_names_spec='$libname.ixlibrary $libname.a' 17355 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17356 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' 17357 ;; 17358 17359beos*) 17360 library_names_spec='${libname}${shared_ext}' 17361 dynamic_linker="$host_os ld.so" 17362 shlibpath_var=LIBRARY_PATH 17363 ;; 17364 17365bsdi[45]*) 17366 version_type=linux 17367 need_version=no 17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17369 soname_spec='${libname}${release}${shared_ext}$major' 17370 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17371 shlibpath_var=LD_LIBRARY_PATH 17372 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17373 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17374 # the default ld.so.conf also contains /usr/contrib/lib and 17375 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17376 # libtool to hard-code these into programs 17377 ;; 17378 17379cygwin* | mingw* | pw32*) 17380 version_type=windows 17381 shrext_cmds=".dll" 17382 need_version=no 17383 need_lib_prefix=no 17384 17385 case $GCC,$host_os in 17386 yes,cygwin* | yes,mingw* | yes,pw32*) 17387 library_names_spec='$libname.dll.a' 17388 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17389 postinstall_cmds='base_file=`basename \${file}`~ 17390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17391 dldir=$destdir/`dirname \$dlpath`~ 17392 test -d \$dldir || mkdir -p \$dldir~ 17393 $install_prog $dir/$dlname \$dldir/$dlname~ 17394 chmod a+x \$dldir/$dlname' 17395 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17396 dlpath=$dir/\$dldll~ 17397 $rm \$dlpath' 17398 shlibpath_overrides_runpath=yes 17399 17400 case $host_os in 17401 cygwin*) 17402 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17403 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17404 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17405 ;; 17406 mingw*) 17407 # MinGW DLLs use traditional 'lib' prefix 17408 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17409 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17410 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17411 # It is most probably a Windows format PATH printed by 17412 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17413 # path with ; separators, and with drive letters. We can handle the 17414 # drive letters (cygwin fileutils understands them), so leave them, 17415 # especially as we might pass files found there to a mingw objdump, 17416 # which wouldn't understand a cygwinified path. Ahh. 17417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17418 else 17419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17420 fi 17421 ;; 17422 pw32*) 17423 # pw32 DLLs use 'pw' prefix rather than 'lib' 17424 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17425 ;; 17426 esac 17427 ;; 17428 17429 *) 17430 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17431 ;; 17432 esac 17433 dynamic_linker='Win32 ld.exe' 17434 # FIXME: first we should search . and the directory the executable is in 17435 shlibpath_var=PATH 17436 ;; 17437 17438darwin* | rhapsody*) 17439 dynamic_linker="$host_os dyld" 17440 version_type=darwin 17441 need_lib_prefix=no 17442 need_version=no 17443 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17444 soname_spec='${libname}${release}${major}$shared_ext' 17445 shlibpath_overrides_runpath=yes 17446 shlibpath_var=DYLD_LIBRARY_PATH 17447 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17448 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17449 if test "$GCC" = yes; then 17450 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"` 17451 else 17452 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17453 fi 17454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17455 ;; 17456 17457dgux*) 17458 version_type=linux 17459 need_lib_prefix=no 17460 need_version=no 17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17462 soname_spec='${libname}${release}${shared_ext}$major' 17463 shlibpath_var=LD_LIBRARY_PATH 17464 ;; 17465 17466freebsd1*) 17467 dynamic_linker=no 17468 ;; 17469 17470kfreebsd*-gnu) 17471 version_type=linux 17472 need_lib_prefix=no 17473 need_version=no 17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17475 soname_spec='${libname}${release}${shared_ext}$major' 17476 shlibpath_var=LD_LIBRARY_PATH 17477 shlibpath_overrides_runpath=no 17478 hardcode_into_libs=yes 17479 dynamic_linker='GNU ld.so' 17480 ;; 17481 17482freebsd* | dragonfly*) 17483 # DragonFly does not have aout. When/if they implement a new 17484 # versioning mechanism, adjust this. 17485 if test -x /usr/bin/objformat; then 17486 objformat=`/usr/bin/objformat` 17487 else 17488 case $host_os in 17489 freebsd[123]*) objformat=aout ;; 17490 *) objformat=elf ;; 17491 esac 17492 fi 17493 version_type=freebsd-$objformat 17494 case $version_type in 17495 freebsd-elf*) 17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17497 need_version=no 17498 need_lib_prefix=no 17499 ;; 17500 freebsd-*) 17501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17502 need_version=yes 17503 ;; 17504 esac 17505 shlibpath_var=LD_LIBRARY_PATH 17506 case $host_os in 17507 freebsd2*) 17508 shlibpath_overrides_runpath=yes 17509 ;; 17510 freebsd3.[01]* | freebsdelf3.[01]*) 17511 shlibpath_overrides_runpath=yes 17512 hardcode_into_libs=yes 17513 ;; 17514 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17515 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17516 shlibpath_overrides_runpath=no 17517 hardcode_into_libs=yes 17518 ;; 17519 freebsd*) # from 4.6 on 17520 shlibpath_overrides_runpath=yes 17521 hardcode_into_libs=yes 17522 ;; 17523 esac 17524 ;; 17525 17526gnu*) 17527 version_type=linux 17528 need_lib_prefix=no 17529 need_version=no 17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17531 soname_spec='${libname}${release}${shared_ext}$major' 17532 shlibpath_var=LD_LIBRARY_PATH 17533 hardcode_into_libs=yes 17534 ;; 17535 17536hpux9* | hpux10* | hpux11*) 17537 # Give a soname corresponding to the major version so that dld.sl refuses to 17538 # link against other versions. 17539 version_type=sunos 17540 need_lib_prefix=no 17541 need_version=no 17542 case $host_cpu in 17543 ia64*) 17544 shrext_cmds='.so' 17545 hardcode_into_libs=yes 17546 dynamic_linker="$host_os dld.so" 17547 shlibpath_var=LD_LIBRARY_PATH 17548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17550 soname_spec='${libname}${release}${shared_ext}$major' 17551 if test "X$HPUX_IA64_MODE" = X32; then 17552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17553 else 17554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17555 fi 17556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17557 ;; 17558 hppa*64*) 17559 shrext_cmds='.sl' 17560 hardcode_into_libs=yes 17561 dynamic_linker="$host_os dld.sl" 17562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17565 soname_spec='${libname}${release}${shared_ext}$major' 17566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17568 ;; 17569 *) 17570 shrext_cmds='.sl' 17571 dynamic_linker="$host_os dld.sl" 17572 shlibpath_var=SHLIB_PATH 17573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17575 soname_spec='${libname}${release}${shared_ext}$major' 17576 ;; 17577 esac 17578 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17579 postinstall_cmds='chmod 555 $lib' 17580 ;; 17581 17582interix3*) 17583 version_type=linux 17584 need_lib_prefix=no 17585 need_version=no 17586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17587 soname_spec='${libname}${release}${shared_ext}$major' 17588 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17589 shlibpath_var=LD_LIBRARY_PATH 17590 shlibpath_overrides_runpath=no 17591 hardcode_into_libs=yes 17592 ;; 17593 17594irix5* | irix6* | nonstopux*) 17595 case $host_os in 17596 nonstopux*) version_type=nonstopux ;; 17597 *) 17598 if test "$lt_cv_prog_gnu_ld" = yes; then 17599 version_type=linux 17600 else 17601 version_type=irix 17602 fi ;; 17603 esac 17604 need_lib_prefix=no 17605 need_version=no 17606 soname_spec='${libname}${release}${shared_ext}$major' 17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17608 case $host_os in 17609 irix5* | nonstopux*) 17610 libsuff= shlibsuff= 17611 ;; 17612 *) 17613 case $LD in # libtool.m4 will add one of these switches to LD 17614 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17615 libsuff= shlibsuff= libmagic=32-bit;; 17616 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17617 libsuff=32 shlibsuff=N32 libmagic=N32;; 17618 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17619 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17620 *) libsuff= shlibsuff= libmagic=never-match;; 17621 esac 17622 ;; 17623 esac 17624 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17625 shlibpath_overrides_runpath=no 17626 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17627 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17628 hardcode_into_libs=yes 17629 ;; 17630 17631# No shared lib support for Linux oldld, aout, or coff. 17632linux*oldld* | linux*aout* | linux*coff*) 17633 dynamic_linker=no 17634 ;; 17635 17636# This must be Linux ELF. 17637linux*) 17638 version_type=linux 17639 need_lib_prefix=no 17640 need_version=no 17641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17642 soname_spec='${libname}${release}${shared_ext}$major' 17643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17644 shlibpath_var=LD_LIBRARY_PATH 17645 shlibpath_overrides_runpath=no 17646 # This implies no fast_install, which is unacceptable. 17647 # Some rework will be needed to allow for fast_install 17648 # before this can be enabled. 17649 hardcode_into_libs=yes 17650 17651 # Append ld.so.conf contents to the search path 17652 if test -f /etc/ld.so.conf; then 17653 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17654 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17655 fi 17656 17657 # We used to test for /lib/ld.so.1 and disable shared libraries on 17658 # powerpc, because MkLinux only supported shared libraries with the 17659 # GNU dynamic linker. Since this was broken with cross compilers, 17660 # most powerpc-linux boxes support dynamic linking these days and 17661 # people can always --disable-shared, the test was removed, and we 17662 # assume the GNU/Linux dynamic linker is in use. 17663 dynamic_linker='GNU/Linux ld.so' 17664 ;; 17665 17666knetbsd*-gnu) 17667 version_type=linux 17668 need_lib_prefix=no 17669 need_version=no 17670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17671 soname_spec='${libname}${release}${shared_ext}$major' 17672 shlibpath_var=LD_LIBRARY_PATH 17673 shlibpath_overrides_runpath=no 17674 hardcode_into_libs=yes 17675 dynamic_linker='GNU ld.so' 17676 ;; 17677 17678netbsd*) 17679 version_type=sunos 17680 need_lib_prefix=no 17681 need_version=no 17682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17685 dynamic_linker='NetBSD (a.out) ld.so' 17686 else 17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17688 soname_spec='${libname}${release}${shared_ext}$major' 17689 dynamic_linker='NetBSD ld.elf_so' 17690 fi 17691 shlibpath_var=LD_LIBRARY_PATH 17692 shlibpath_overrides_runpath=yes 17693 hardcode_into_libs=yes 17694 ;; 17695 17696newsos6) 17697 version_type=linux 17698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17699 shlibpath_var=LD_LIBRARY_PATH 17700 shlibpath_overrides_runpath=yes 17701 ;; 17702 17703nto-qnx*) 17704 version_type=linux 17705 need_lib_prefix=no 17706 need_version=no 17707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17708 soname_spec='${libname}${release}${shared_ext}$major' 17709 shlibpath_var=LD_LIBRARY_PATH 17710 shlibpath_overrides_runpath=yes 17711 ;; 17712 17713openbsd*) 17714 version_type=sunos 17715 sys_lib_dlsearch_path_spec="/usr/lib" 17716 need_lib_prefix=no 17717 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17718 case $host_os in 17719 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17720 *) need_version=no ;; 17721 esac 17722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17724 shlibpath_var=LD_LIBRARY_PATH 17725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17726 case $host_os in 17727 openbsd2.[89] | openbsd2.[89].*) 17728 shlibpath_overrides_runpath=no 17729 ;; 17730 *) 17731 shlibpath_overrides_runpath=yes 17732 ;; 17733 esac 17734 else 17735 shlibpath_overrides_runpath=yes 17736 fi 17737 ;; 17738 17739os2*) 17740 libname_spec='$name' 17741 shrext_cmds=".dll" 17742 need_lib_prefix=no 17743 library_names_spec='$libname${shared_ext} $libname.a' 17744 dynamic_linker='OS/2 ld.exe' 17745 shlibpath_var=LIBPATH 17746 ;; 17747 17748osf3* | osf4* | osf5*) 17749 version_type=osf 17750 need_lib_prefix=no 17751 need_version=no 17752 soname_spec='${libname}${release}${shared_ext}$major' 17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17754 shlibpath_var=LD_LIBRARY_PATH 17755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17756 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17757 ;; 17758 17759solaris*) 17760 version_type=linux 17761 need_lib_prefix=no 17762 need_version=no 17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17764 soname_spec='${libname}${release}${shared_ext}$major' 17765 shlibpath_var=LD_LIBRARY_PATH 17766 shlibpath_overrides_runpath=yes 17767 hardcode_into_libs=yes 17768 # ldd complains unless libraries are executable 17769 postinstall_cmds='chmod +x $lib' 17770 ;; 17771 17772sunos4*) 17773 version_type=sunos 17774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17776 shlibpath_var=LD_LIBRARY_PATH 17777 shlibpath_overrides_runpath=yes 17778 if test "$with_gnu_ld" = yes; then 17779 need_lib_prefix=no 17780 fi 17781 need_version=yes 17782 ;; 17783 17784sysv4 | sysv4.3*) 17785 version_type=linux 17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17787 soname_spec='${libname}${release}${shared_ext}$major' 17788 shlibpath_var=LD_LIBRARY_PATH 17789 case $host_vendor in 17790 sni) 17791 shlibpath_overrides_runpath=no 17792 need_lib_prefix=no 17793 export_dynamic_flag_spec='${wl}-Blargedynsym' 17794 runpath_var=LD_RUN_PATH 17795 ;; 17796 siemens) 17797 need_lib_prefix=no 17798 ;; 17799 motorola) 17800 need_lib_prefix=no 17801 need_version=no 17802 shlibpath_overrides_runpath=no 17803 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17804 ;; 17805 esac 17806 ;; 17807 17808sysv4*MP*) 17809 if test -d /usr/nec ;then 17810 version_type=linux 17811 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17812 soname_spec='$libname${shared_ext}.$major' 17813 shlibpath_var=LD_LIBRARY_PATH 17814 fi 17815 ;; 17816 17817sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17818 version_type=freebsd-elf 17819 need_lib_prefix=no 17820 need_version=no 17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17822 soname_spec='${libname}${release}${shared_ext}$major' 17823 shlibpath_var=LD_LIBRARY_PATH 17824 hardcode_into_libs=yes 17825 if test "$with_gnu_ld" = yes; then 17826 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17827 shlibpath_overrides_runpath=no 17828 else 17829 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17830 shlibpath_overrides_runpath=yes 17831 case $host_os in 17832 sco3.2v5*) 17833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17834 ;; 17835 esac 17836 fi 17837 sys_lib_dlsearch_path_spec='/usr/lib' 17838 ;; 17839 17840uts4*) 17841 version_type=linux 17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17843 soname_spec='${libname}${release}${shared_ext}$major' 17844 shlibpath_var=LD_LIBRARY_PATH 17845 ;; 17846 17847*) 17848 dynamic_linker=no 17849 ;; 17850esac 17851echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17852echo "${ECHO_T}$dynamic_linker" >&6 17853test "$dynamic_linker" = no && can_build_shared=no 17854 17855variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17856if test "$GCC" = yes; then 17857 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17858fi 17859 17860echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17861echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17862hardcode_action_GCJ= 17863if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17864 test -n "$runpath_var_GCJ" || \ 17865 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17866 17867 # We can hardcode non-existant directories. 17868 if test "$hardcode_direct_GCJ" != no && 17869 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17870 # have to relink, otherwise we might link with an installed library 17871 # when we should be linking with a yet-to-be-installed one 17872 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17873 test "$hardcode_minus_L_GCJ" != no; then 17874 # Linking always hardcodes the temporary library directory. 17875 hardcode_action_GCJ=relink 17876 else 17877 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17878 hardcode_action_GCJ=immediate 17879 fi 17880else 17881 # We cannot hardcode anything, or else we can only hardcode existing 17882 # directories. 17883 hardcode_action_GCJ=unsupported 17884fi 17885echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17886echo "${ECHO_T}$hardcode_action_GCJ" >&6 17887 17888if test "$hardcode_action_GCJ" = relink; then 17889 # Fast installation is not supported 17890 enable_fast_install=no 17891elif test "$shlibpath_overrides_runpath" = yes || 17892 test "$enable_shared" = no; then 17893 # Fast installation is not necessary 17894 enable_fast_install=needless 17895fi 17896 17897 17898# The else clause should only fire when bootstrapping the 17899# libtool distribution, otherwise you forgot to ship ltmain.sh 17900# with your package, and you will get complaints that there are 17901# no rules to generate ltmain.sh. 17902if test -f "$ltmain"; then 17903 # See if we are running on zsh, and set the options which allow our commands through 17904 # without removal of \ escapes. 17905 if test -n "${ZSH_VERSION+set}" ; then 17906 setopt NO_GLOB_SUBST 17907 fi 17908 # Now quote all the things that may contain metacharacters while being 17909 # careful not to overquote the AC_SUBSTed values. We take copies of the 17910 # variables and quote the copies for generation of the libtool script. 17911 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17912 SED SHELL STRIP \ 17913 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17914 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17915 deplibs_check_method reload_flag reload_cmds need_locks \ 17916 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17917 lt_cv_sys_global_symbol_to_c_name_address \ 17918 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17919 old_postinstall_cmds old_postuninstall_cmds \ 17920 compiler_GCJ \ 17921 CC_GCJ \ 17922 LD_GCJ \ 17923 lt_prog_compiler_wl_GCJ \ 17924 lt_prog_compiler_pic_GCJ \ 17925 lt_prog_compiler_static_GCJ \ 17926 lt_prog_compiler_no_builtin_flag_GCJ \ 17927 export_dynamic_flag_spec_GCJ \ 17928 thread_safe_flag_spec_GCJ \ 17929 whole_archive_flag_spec_GCJ \ 17930 enable_shared_with_static_runtimes_GCJ \ 17931 old_archive_cmds_GCJ \ 17932 old_archive_from_new_cmds_GCJ \ 17933 predep_objects_GCJ \ 17934 postdep_objects_GCJ \ 17935 predeps_GCJ \ 17936 postdeps_GCJ \ 17937 compiler_lib_search_path_GCJ \ 17938 archive_cmds_GCJ \ 17939 archive_expsym_cmds_GCJ \ 17940 postinstall_cmds_GCJ \ 17941 postuninstall_cmds_GCJ \ 17942 old_archive_from_expsyms_cmds_GCJ \ 17943 allow_undefined_flag_GCJ \ 17944 no_undefined_flag_GCJ \ 17945 export_symbols_cmds_GCJ \ 17946 hardcode_libdir_flag_spec_GCJ \ 17947 hardcode_libdir_flag_spec_ld_GCJ \ 17948 hardcode_libdir_separator_GCJ \ 17949 hardcode_automatic_GCJ \ 17950 module_cmds_GCJ \ 17951 module_expsym_cmds_GCJ \ 17952 lt_cv_prog_compiler_c_o_GCJ \ 17953 exclude_expsyms_GCJ \ 17954 include_expsyms_GCJ; do 17955 17956 case $var in 17957 old_archive_cmds_GCJ | \ 17958 old_archive_from_new_cmds_GCJ | \ 17959 archive_cmds_GCJ | \ 17960 archive_expsym_cmds_GCJ | \ 17961 module_cmds_GCJ | \ 17962 module_expsym_cmds_GCJ | \ 17963 old_archive_from_expsyms_cmds_GCJ | \ 17964 export_symbols_cmds_GCJ | \ 17965 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17966 postinstall_cmds | postuninstall_cmds | \ 17967 old_postinstall_cmds | old_postuninstall_cmds | \ 17968 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17969 # Double-quote double-evaled strings. 17970 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17971 ;; 17972 *) 17973 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17974 ;; 17975 esac 17976 done 17977 17978 case $lt_echo in 17979 *'\$0 --fallback-echo"') 17980 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17981 ;; 17982 esac 17983 17984cfgfile="$ofile" 17985 17986 cat <<__EOF__ >> "$cfgfile" 17987# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17988 17989# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17990 17991# Shell to use when invoking shell scripts. 17992SHELL=$lt_SHELL 17993 17994# Whether or not to build shared libraries. 17995build_libtool_libs=$enable_shared 17996 17997# Whether or not to build static libraries. 17998build_old_libs=$enable_static 17999 18000# Whether or not to add -lc for building shared libraries. 18001build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18002 18003# Whether or not to disallow shared libs when runtime libs are static 18004allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18005 18006# Whether or not to optimize for fast installation. 18007fast_install=$enable_fast_install 18008 18009# The host system. 18010host_alias=$host_alias 18011host=$host 18012host_os=$host_os 18013 18014# The build system. 18015build_alias=$build_alias 18016build=$build 18017build_os=$build_os 18018 18019# An echo program that does not interpret backslashes. 18020echo=$lt_echo 18021 18022# The archiver. 18023AR=$lt_AR 18024AR_FLAGS=$lt_AR_FLAGS 18025 18026# A C compiler. 18027LTCC=$lt_LTCC 18028 18029# LTCC compiler flags. 18030LTCFLAGS=$lt_LTCFLAGS 18031 18032# A language-specific compiler. 18033CC=$lt_compiler_GCJ 18034 18035# Is the compiler the GNU C compiler? 18036with_gcc=$GCC_GCJ 18037 18038# An ERE matcher. 18039EGREP=$lt_EGREP 18040 18041# The linker used to build libraries. 18042LD=$lt_LD_GCJ 18043 18044# Whether we need hard or soft links. 18045LN_S=$lt_LN_S 18046 18047# A BSD-compatible nm program. 18048NM=$lt_NM 18049 18050# A symbol stripping program 18051STRIP=$lt_STRIP 18052 18053# Used to examine libraries when file_magic_cmd begins "file" 18054MAGIC_CMD=$MAGIC_CMD 18055 18056# Used on cygwin: DLL creation program. 18057DLLTOOL="$DLLTOOL" 18058 18059# Used on cygwin: object dumper. 18060OBJDUMP="$OBJDUMP" 18061 18062# Used on cygwin: assembler. 18063AS="$AS" 18064 18065# The name of the directory that contains temporary libtool files. 18066objdir=$objdir 18067 18068# How to create reloadable object files. 18069reload_flag=$lt_reload_flag 18070reload_cmds=$lt_reload_cmds 18071 18072# How to pass a linker flag through the compiler. 18073wl=$lt_lt_prog_compiler_wl_GCJ 18074 18075# Object file suffix (normally "o"). 18076objext="$ac_objext" 18077 18078# Old archive suffix (normally "a"). 18079libext="$libext" 18080 18081# Shared library suffix (normally ".so"). 18082shrext_cmds='$shrext_cmds' 18083 18084# Executable file suffix (normally ""). 18085exeext="$exeext" 18086 18087# Additional compiler flags for building library objects. 18088pic_flag=$lt_lt_prog_compiler_pic_GCJ 18089pic_mode=$pic_mode 18090 18091# What is the maximum length of a command? 18092max_cmd_len=$lt_cv_sys_max_cmd_len 18093 18094# Does compiler simultaneously support -c and -o options? 18095compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18096 18097# Must we lock files when doing compilation? 18098need_locks=$lt_need_locks 18099 18100# Do we need the lib prefix for modules? 18101need_lib_prefix=$need_lib_prefix 18102 18103# Do we need a version for libraries? 18104need_version=$need_version 18105 18106# Whether dlopen is supported. 18107dlopen_support=$enable_dlopen 18108 18109# Whether dlopen of programs is supported. 18110dlopen_self=$enable_dlopen_self 18111 18112# Whether dlopen of statically linked programs is supported. 18113dlopen_self_static=$enable_dlopen_self_static 18114 18115# Compiler flag to prevent dynamic linking. 18116link_static_flag=$lt_lt_prog_compiler_static_GCJ 18117 18118# Compiler flag to turn off builtin functions. 18119no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18120 18121# Compiler flag to allow reflexive dlopens. 18122export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18123 18124# Compiler flag to generate shared objects directly from archives. 18125whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18126 18127# Compiler flag to generate thread-safe objects. 18128thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18129 18130# Library versioning type. 18131version_type=$version_type 18132 18133# Format of library name prefix. 18134libname_spec=$lt_libname_spec 18135 18136# List of archive names. First name is the real one, the rest are links. 18137# The last name is the one that the linker finds with -lNAME. 18138library_names_spec=$lt_library_names_spec 18139 18140# The coded name of the library, if different from the real name. 18141soname_spec=$lt_soname_spec 18142 18143# Commands used to build and install an old-style archive. 18144RANLIB=$lt_RANLIB 18145old_archive_cmds=$lt_old_archive_cmds_GCJ 18146old_postinstall_cmds=$lt_old_postinstall_cmds 18147old_postuninstall_cmds=$lt_old_postuninstall_cmds 18148 18149# Create an old-style archive from a shared archive. 18150old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18151 18152# Create a temporary old-style archive to link instead of a shared archive. 18153old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18154 18155# Commands used to build and install a shared archive. 18156archive_cmds=$lt_archive_cmds_GCJ 18157archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18158postinstall_cmds=$lt_postinstall_cmds 18159postuninstall_cmds=$lt_postuninstall_cmds 18160 18161# Commands used to build a loadable module (assumed same as above if empty) 18162module_cmds=$lt_module_cmds_GCJ 18163module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18164 18165# Commands to strip libraries. 18166old_striplib=$lt_old_striplib 18167striplib=$lt_striplib 18168 18169# Dependencies to place before the objects being linked to create a 18170# shared library. 18171predep_objects=$lt_predep_objects_GCJ 18172 18173# Dependencies to place after the objects being linked to create a 18174# shared library. 18175postdep_objects=$lt_postdep_objects_GCJ 18176 18177# Dependencies to place before the objects being linked to create a 18178# shared library. 18179predeps=$lt_predeps_GCJ 18180 18181# Dependencies to place after the objects being linked to create a 18182# shared library. 18183postdeps=$lt_postdeps_GCJ 18184 18185# The library search path used internally by the compiler when linking 18186# a shared library. 18187compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18188 18189# Method to check whether dependent libraries are shared objects. 18190deplibs_check_method=$lt_deplibs_check_method 18191 18192# Command to use when deplibs_check_method == file_magic. 18193file_magic_cmd=$lt_file_magic_cmd 18194 18195# Flag that allows shared libraries with undefined symbols to be built. 18196allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18197 18198# Flag that forces no undefined symbols. 18199no_undefined_flag=$lt_no_undefined_flag_GCJ 18200 18201# Commands used to finish a libtool library installation in a directory. 18202finish_cmds=$lt_finish_cmds 18203 18204# Same as above, but a single script fragment to be evaled but not shown. 18205finish_eval=$lt_finish_eval 18206 18207# Take the output of nm and produce a listing of raw symbols and C names. 18208global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18209 18210# Transform the output of nm in a proper C declaration 18211global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18212 18213# Transform the output of nm in a C name address pair 18214global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18215 18216# This is the shared library runtime path variable. 18217runpath_var=$runpath_var 18218 18219# This is the shared library path variable. 18220shlibpath_var=$shlibpath_var 18221 18222# Is shlibpath searched before the hard-coded library search path? 18223shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18224 18225# How to hardcode a shared library path into an executable. 18226hardcode_action=$hardcode_action_GCJ 18227 18228# Whether we should hardcode library paths into libraries. 18229hardcode_into_libs=$hardcode_into_libs 18230 18231# Flag to hardcode \$libdir into a binary during linking. 18232# This must work even if \$libdir does not exist. 18233hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18234 18235# If ld is used when linking, flag to hardcode \$libdir into 18236# a binary during linking. This must work even if \$libdir does 18237# not exist. 18238hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18239 18240# Whether we need a single -rpath flag with a separated argument. 18241hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18242 18243# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18244# resulting binary. 18245hardcode_direct=$hardcode_direct_GCJ 18246 18247# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18248# resulting binary. 18249hardcode_minus_L=$hardcode_minus_L_GCJ 18250 18251# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18252# the resulting binary. 18253hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18254 18255# Set to yes if building a shared library automatically hardcodes DIR into the library 18256# and all subsequent libraries and executables linked against it. 18257hardcode_automatic=$hardcode_automatic_GCJ 18258 18259# Variables whose values should be saved in libtool wrapper scripts and 18260# restored at relink time. 18261variables_saved_for_relink="$variables_saved_for_relink" 18262 18263# Whether libtool must link a program against all its dependency libraries. 18264link_all_deplibs=$link_all_deplibs_GCJ 18265 18266# Compile-time system search path for libraries 18267sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18268 18269# Run-time system search path for libraries 18270sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18271 18272# Fix the shell variable \$srcfile for the compiler. 18273fix_srcfile_path="$fix_srcfile_path_GCJ" 18274 18275# Set to yes if exported symbols are required. 18276always_export_symbols=$always_export_symbols_GCJ 18277 18278# The commands to list exported symbols. 18279export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18280 18281# The commands to extract the exported symbol list from a shared archive. 18282extract_expsyms_cmds=$lt_extract_expsyms_cmds 18283 18284# Symbols that should not be listed in the preloaded symbols. 18285exclude_expsyms=$lt_exclude_expsyms_GCJ 18286 18287# Symbols that must always be exported. 18288include_expsyms=$lt_include_expsyms_GCJ 18289 18290# ### END LIBTOOL TAG CONFIG: $tagname 18291 18292__EOF__ 18293 18294 18295else 18296 # If there is no Makefile yet, we rely on a make rule to execute 18297 # `config.status --recheck' to rerun these tests and create the 18298 # libtool script then. 18299 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18300 if test -f "$ltmain_in"; then 18301 test -f Makefile && make "$ltmain" 18302 fi 18303fi 18304 18305 18306ac_ext=c 18307ac_cpp='$CPP $CPPFLAGS' 18308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18310ac_compiler_gnu=$ac_cv_c_compiler_gnu 18311 18312CC="$lt_save_CC" 18313 18314 else 18315 tagname="" 18316 fi 18317 ;; 18318 18319 RC) 18320 18321 18322 18323# Source file extension for RC test sources. 18324ac_ext=rc 18325 18326# Object file extension for compiled RC test sources. 18327objext=o 18328objext_RC=$objext 18329 18330# Code to be used in simple compile tests 18331lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18332 18333# Code to be used in simple link tests 18334lt_simple_link_test_code="$lt_simple_compile_test_code" 18335 18336# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18337 18338# If no C compiler was specified, use CC. 18339LTCC=${LTCC-"$CC"} 18340 18341# If no C compiler flags were specified, use CFLAGS. 18342LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18343 18344# Allow CC to be a program name with arguments. 18345compiler=$CC 18346 18347 18348# save warnings/boilerplate of simple test code 18349ac_outfile=conftest.$ac_objext 18350printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18351eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18352_lt_compiler_boilerplate=`cat conftest.err` 18353$rm conftest* 18354 18355ac_outfile=conftest.$ac_objext 18356printf "$lt_simple_link_test_code" >conftest.$ac_ext 18357eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18358_lt_linker_boilerplate=`cat conftest.err` 18359$rm conftest* 18360 18361 18362# Allow CC to be a program name with arguments. 18363lt_save_CC="$CC" 18364CC=${RC-"windres"} 18365compiler=$CC 18366compiler_RC=$CC 18367for cc_temp in $compiler""; do 18368 case $cc_temp in 18369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18371 \-*) ;; 18372 *) break;; 18373 esac 18374done 18375cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18376 18377lt_cv_prog_compiler_c_o_RC=yes 18378 18379# The else clause should only fire when bootstrapping the 18380# libtool distribution, otherwise you forgot to ship ltmain.sh 18381# with your package, and you will get complaints that there are 18382# no rules to generate ltmain.sh. 18383if test -f "$ltmain"; then 18384 # See if we are running on zsh, and set the options which allow our commands through 18385 # without removal of \ escapes. 18386 if test -n "${ZSH_VERSION+set}" ; then 18387 setopt NO_GLOB_SUBST 18388 fi 18389 # Now quote all the things that may contain metacharacters while being 18390 # careful not to overquote the AC_SUBSTed values. We take copies of the 18391 # variables and quote the copies for generation of the libtool script. 18392 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18393 SED SHELL STRIP \ 18394 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18395 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18396 deplibs_check_method reload_flag reload_cmds need_locks \ 18397 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18398 lt_cv_sys_global_symbol_to_c_name_address \ 18399 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18400 old_postinstall_cmds old_postuninstall_cmds \ 18401 compiler_RC \ 18402 CC_RC \ 18403 LD_RC \ 18404 lt_prog_compiler_wl_RC \ 18405 lt_prog_compiler_pic_RC \ 18406 lt_prog_compiler_static_RC \ 18407 lt_prog_compiler_no_builtin_flag_RC \ 18408 export_dynamic_flag_spec_RC \ 18409 thread_safe_flag_spec_RC \ 18410 whole_archive_flag_spec_RC \ 18411 enable_shared_with_static_runtimes_RC \ 18412 old_archive_cmds_RC \ 18413 old_archive_from_new_cmds_RC \ 18414 predep_objects_RC \ 18415 postdep_objects_RC \ 18416 predeps_RC \ 18417 postdeps_RC \ 18418 compiler_lib_search_path_RC \ 18419 archive_cmds_RC \ 18420 archive_expsym_cmds_RC \ 18421 postinstall_cmds_RC \ 18422 postuninstall_cmds_RC \ 18423 old_archive_from_expsyms_cmds_RC \ 18424 allow_undefined_flag_RC \ 18425 no_undefined_flag_RC \ 18426 export_symbols_cmds_RC \ 18427 hardcode_libdir_flag_spec_RC \ 18428 hardcode_libdir_flag_spec_ld_RC \ 18429 hardcode_libdir_separator_RC \ 18430 hardcode_automatic_RC \ 18431 module_cmds_RC \ 18432 module_expsym_cmds_RC \ 18433 lt_cv_prog_compiler_c_o_RC \ 18434 exclude_expsyms_RC \ 18435 include_expsyms_RC; do 18436 18437 case $var in 18438 old_archive_cmds_RC | \ 18439 old_archive_from_new_cmds_RC | \ 18440 archive_cmds_RC | \ 18441 archive_expsym_cmds_RC | \ 18442 module_cmds_RC | \ 18443 module_expsym_cmds_RC | \ 18444 old_archive_from_expsyms_cmds_RC | \ 18445 export_symbols_cmds_RC | \ 18446 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18447 postinstall_cmds | postuninstall_cmds | \ 18448 old_postinstall_cmds | old_postuninstall_cmds | \ 18449 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18450 # Double-quote double-evaled strings. 18451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18452 ;; 18453 *) 18454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18455 ;; 18456 esac 18457 done 18458 18459 case $lt_echo in 18460 *'\$0 --fallback-echo"') 18461 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18462 ;; 18463 esac 18464 18465cfgfile="$ofile" 18466 18467 cat <<__EOF__ >> "$cfgfile" 18468# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18469 18470# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18471 18472# Shell to use when invoking shell scripts. 18473SHELL=$lt_SHELL 18474 18475# Whether or not to build shared libraries. 18476build_libtool_libs=$enable_shared 18477 18478# Whether or not to build static libraries. 18479build_old_libs=$enable_static 18480 18481# Whether or not to add -lc for building shared libraries. 18482build_libtool_need_lc=$archive_cmds_need_lc_RC 18483 18484# Whether or not to disallow shared libs when runtime libs are static 18485allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18486 18487# Whether or not to optimize for fast installation. 18488fast_install=$enable_fast_install 18489 18490# The host system. 18491host_alias=$host_alias 18492host=$host 18493host_os=$host_os 18494 18495# The build system. 18496build_alias=$build_alias 18497build=$build 18498build_os=$build_os 18499 18500# An echo program that does not interpret backslashes. 18501echo=$lt_echo 18502 18503# The archiver. 18504AR=$lt_AR 18505AR_FLAGS=$lt_AR_FLAGS 18506 18507# A C compiler. 18508LTCC=$lt_LTCC 18509 18510# LTCC compiler flags. 18511LTCFLAGS=$lt_LTCFLAGS 18512 18513# A language-specific compiler. 18514CC=$lt_compiler_RC 18515 18516# Is the compiler the GNU C compiler? 18517with_gcc=$GCC_RC 18518 18519# An ERE matcher. 18520EGREP=$lt_EGREP 18521 18522# The linker used to build libraries. 18523LD=$lt_LD_RC 18524 18525# Whether we need hard or soft links. 18526LN_S=$lt_LN_S 18527 18528# A BSD-compatible nm program. 18529NM=$lt_NM 18530 18531# A symbol stripping program 18532STRIP=$lt_STRIP 18533 18534# Used to examine libraries when file_magic_cmd begins "file" 18535MAGIC_CMD=$MAGIC_CMD 18536 18537# Used on cygwin: DLL creation program. 18538DLLTOOL="$DLLTOOL" 18539 18540# Used on cygwin: object dumper. 18541OBJDUMP="$OBJDUMP" 18542 18543# Used on cygwin: assembler. 18544AS="$AS" 18545 18546# The name of the directory that contains temporary libtool files. 18547objdir=$objdir 18548 18549# How to create reloadable object files. 18550reload_flag=$lt_reload_flag 18551reload_cmds=$lt_reload_cmds 18552 18553# How to pass a linker flag through the compiler. 18554wl=$lt_lt_prog_compiler_wl_RC 18555 18556# Object file suffix (normally "o"). 18557objext="$ac_objext" 18558 18559# Old archive suffix (normally "a"). 18560libext="$libext" 18561 18562# Shared library suffix (normally ".so"). 18563shrext_cmds='$shrext_cmds' 18564 18565# Executable file suffix (normally ""). 18566exeext="$exeext" 18567 18568# Additional compiler flags for building library objects. 18569pic_flag=$lt_lt_prog_compiler_pic_RC 18570pic_mode=$pic_mode 18571 18572# What is the maximum length of a command? 18573max_cmd_len=$lt_cv_sys_max_cmd_len 18574 18575# Does compiler simultaneously support -c and -o options? 18576compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18577 18578# Must we lock files when doing compilation? 18579need_locks=$lt_need_locks 18580 18581# Do we need the lib prefix for modules? 18582need_lib_prefix=$need_lib_prefix 18583 18584# Do we need a version for libraries? 18585need_version=$need_version 18586 18587# Whether dlopen is supported. 18588dlopen_support=$enable_dlopen 18589 18590# Whether dlopen of programs is supported. 18591dlopen_self=$enable_dlopen_self 18592 18593# Whether dlopen of statically linked programs is supported. 18594dlopen_self_static=$enable_dlopen_self_static 18595 18596# Compiler flag to prevent dynamic linking. 18597link_static_flag=$lt_lt_prog_compiler_static_RC 18598 18599# Compiler flag to turn off builtin functions. 18600no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18601 18602# Compiler flag to allow reflexive dlopens. 18603export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18604 18605# Compiler flag to generate shared objects directly from archives. 18606whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18607 18608# Compiler flag to generate thread-safe objects. 18609thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18610 18611# Library versioning type. 18612version_type=$version_type 18613 18614# Format of library name prefix. 18615libname_spec=$lt_libname_spec 18616 18617# List of archive names. First name is the real one, the rest are links. 18618# The last name is the one that the linker finds with -lNAME. 18619library_names_spec=$lt_library_names_spec 18620 18621# The coded name of the library, if different from the real name. 18622soname_spec=$lt_soname_spec 18623 18624# Commands used to build and install an old-style archive. 18625RANLIB=$lt_RANLIB 18626old_archive_cmds=$lt_old_archive_cmds_RC 18627old_postinstall_cmds=$lt_old_postinstall_cmds 18628old_postuninstall_cmds=$lt_old_postuninstall_cmds 18629 18630# Create an old-style archive from a shared archive. 18631old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18632 18633# Create a temporary old-style archive to link instead of a shared archive. 18634old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18635 18636# Commands used to build and install a shared archive. 18637archive_cmds=$lt_archive_cmds_RC 18638archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18639postinstall_cmds=$lt_postinstall_cmds 18640postuninstall_cmds=$lt_postuninstall_cmds 18641 18642# Commands used to build a loadable module (assumed same as above if empty) 18643module_cmds=$lt_module_cmds_RC 18644module_expsym_cmds=$lt_module_expsym_cmds_RC 18645 18646# Commands to strip libraries. 18647old_striplib=$lt_old_striplib 18648striplib=$lt_striplib 18649 18650# Dependencies to place before the objects being linked to create a 18651# shared library. 18652predep_objects=$lt_predep_objects_RC 18653 18654# Dependencies to place after the objects being linked to create a 18655# shared library. 18656postdep_objects=$lt_postdep_objects_RC 18657 18658# Dependencies to place before the objects being linked to create a 18659# shared library. 18660predeps=$lt_predeps_RC 18661 18662# Dependencies to place after the objects being linked to create a 18663# shared library. 18664postdeps=$lt_postdeps_RC 18665 18666# The library search path used internally by the compiler when linking 18667# a shared library. 18668compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18669 18670# Method to check whether dependent libraries are shared objects. 18671deplibs_check_method=$lt_deplibs_check_method 18672 18673# Command to use when deplibs_check_method == file_magic. 18674file_magic_cmd=$lt_file_magic_cmd 18675 18676# Flag that allows shared libraries with undefined symbols to be built. 18677allow_undefined_flag=$lt_allow_undefined_flag_RC 18678 18679# Flag that forces no undefined symbols. 18680no_undefined_flag=$lt_no_undefined_flag_RC 18681 18682# Commands used to finish a libtool library installation in a directory. 18683finish_cmds=$lt_finish_cmds 18684 18685# Same as above, but a single script fragment to be evaled but not shown. 18686finish_eval=$lt_finish_eval 18687 18688# Take the output of nm and produce a listing of raw symbols and C names. 18689global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18690 18691# Transform the output of nm in a proper C declaration 18692global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18693 18694# Transform the output of nm in a C name address pair 18695global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18696 18697# This is the shared library runtime path variable. 18698runpath_var=$runpath_var 18699 18700# This is the shared library path variable. 18701shlibpath_var=$shlibpath_var 18702 18703# Is shlibpath searched before the hard-coded library search path? 18704shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18705 18706# How to hardcode a shared library path into an executable. 18707hardcode_action=$hardcode_action_RC 18708 18709# Whether we should hardcode library paths into libraries. 18710hardcode_into_libs=$hardcode_into_libs 18711 18712# Flag to hardcode \$libdir into a binary during linking. 18713# This must work even if \$libdir does not exist. 18714hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18715 18716# If ld is used when linking, flag to hardcode \$libdir into 18717# a binary during linking. This must work even if \$libdir does 18718# not exist. 18719hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18720 18721# Whether we need a single -rpath flag with a separated argument. 18722hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18723 18724# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18725# resulting binary. 18726hardcode_direct=$hardcode_direct_RC 18727 18728# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18729# resulting binary. 18730hardcode_minus_L=$hardcode_minus_L_RC 18731 18732# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18733# the resulting binary. 18734hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18735 18736# Set to yes if building a shared library automatically hardcodes DIR into the library 18737# and all subsequent libraries and executables linked against it. 18738hardcode_automatic=$hardcode_automatic_RC 18739 18740# Variables whose values should be saved in libtool wrapper scripts and 18741# restored at relink time. 18742variables_saved_for_relink="$variables_saved_for_relink" 18743 18744# Whether libtool must link a program against all its dependency libraries. 18745link_all_deplibs=$link_all_deplibs_RC 18746 18747# Compile-time system search path for libraries 18748sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18749 18750# Run-time system search path for libraries 18751sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18752 18753# Fix the shell variable \$srcfile for the compiler. 18754fix_srcfile_path="$fix_srcfile_path_RC" 18755 18756# Set to yes if exported symbols are required. 18757always_export_symbols=$always_export_symbols_RC 18758 18759# The commands to list exported symbols. 18760export_symbols_cmds=$lt_export_symbols_cmds_RC 18761 18762# The commands to extract the exported symbol list from a shared archive. 18763extract_expsyms_cmds=$lt_extract_expsyms_cmds 18764 18765# Symbols that should not be listed in the preloaded symbols. 18766exclude_expsyms=$lt_exclude_expsyms_RC 18767 18768# Symbols that must always be exported. 18769include_expsyms=$lt_include_expsyms_RC 18770 18771# ### END LIBTOOL TAG CONFIG: $tagname 18772 18773__EOF__ 18774 18775 18776else 18777 # If there is no Makefile yet, we rely on a make rule to execute 18778 # `config.status --recheck' to rerun these tests and create the 18779 # libtool script then. 18780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18781 if test -f "$ltmain_in"; then 18782 test -f Makefile && make "$ltmain" 18783 fi 18784fi 18785 18786 18787ac_ext=c 18788ac_cpp='$CPP $CPPFLAGS' 18789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18791ac_compiler_gnu=$ac_cv_c_compiler_gnu 18792 18793CC="$lt_save_CC" 18794 18795 ;; 18796 18797 *) 18798 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18799echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18800 { (exit 1); exit 1; }; } 18801 ;; 18802 esac 18803 18804 # Append the new tag name to the list of available tags. 18805 if test -n "$tagname" ; then 18806 available_tags="$available_tags $tagname" 18807 fi 18808 fi 18809 done 18810 IFS="$lt_save_ifs" 18811 18812 # Now substitute the updated list of available tags. 18813 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18814 mv "${ofile}T" "$ofile" 18815 chmod +x "$ofile" 18816 else 18817 rm -f "${ofile}T" 18818 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18819echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18820 { (exit 1); exit 1; }; } 18821 fi 18822fi 18823 18824 18825 18826# This can be used to rebuild libtool when needed 18827LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18828 18829# Always use our own libtool. 18830LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18831 18832# Prevent multiple expansion 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853else 18854 # Extract the first word of "ar", so it can be a program name with args. 18855set dummy ar; ac_word=$2 18856echo "$as_me:$LINENO: checking for $ac_word" >&5 18857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18858if test "${ac_cv_prog_AR+set}" = set; then 18859 echo $ECHO_N "(cached) $ECHO_C" >&6 18860else 18861 if test -n "$AR"; then 18862 ac_cv_prog_AR="$AR" # Let the user override the test. 18863else 18864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18865for as_dir in $PATH 18866do 18867 IFS=$as_save_IFS 18868 test -z "$as_dir" && as_dir=. 18869 for ac_exec_ext in '' $ac_executable_extensions; do 18870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18871 ac_cv_prog_AR="ar" 18872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18873 break 2 18874 fi 18875done 18876done 18877 18878fi 18879fi 18880AR=$ac_cv_prog_AR 18881if test -n "$AR"; then 18882 echo "$as_me:$LINENO: result: $AR" >&5 18883echo "${ECHO_T}$AR" >&6 18884else 18885 echo "$as_me:$LINENO: result: no" >&5 18886echo "${ECHO_T}no" >&6 18887fi 18888 18889 if test -n "$ac_tool_prefix"; then 18890 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 18891set dummy ${ac_tool_prefix}ranlib; ac_word=$2 18892echo "$as_me:$LINENO: checking for $ac_word" >&5 18893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18894if test "${ac_cv_prog_RANLIB+set}" = set; then 18895 echo $ECHO_N "(cached) $ECHO_C" >&6 18896else 18897 if test -n "$RANLIB"; then 18898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 18899else 18900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18901for as_dir in $PATH 18902do 18903 IFS=$as_save_IFS 18904 test -z "$as_dir" && as_dir=. 18905 for ac_exec_ext in '' $ac_executable_extensions; do 18906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18907 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 18908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18909 break 2 18910 fi 18911done 18912done 18913 18914fi 18915fi 18916RANLIB=$ac_cv_prog_RANLIB 18917if test -n "$RANLIB"; then 18918 echo "$as_me:$LINENO: result: $RANLIB" >&5 18919echo "${ECHO_T}$RANLIB" >&6 18920else 18921 echo "$as_me:$LINENO: result: no" >&5 18922echo "${ECHO_T}no" >&6 18923fi 18924 18925fi 18926if test -z "$ac_cv_prog_RANLIB"; then 18927 ac_ct_RANLIB=$RANLIB 18928 # Extract the first word of "ranlib", so it can be a program name with args. 18929set dummy ranlib; ac_word=$2 18930echo "$as_me:$LINENO: checking for $ac_word" >&5 18931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18932if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 18933 echo $ECHO_N "(cached) $ECHO_C" >&6 18934else 18935 if test -n "$ac_ct_RANLIB"; then 18936 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 18937else 18938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18939for as_dir in $PATH 18940do 18941 IFS=$as_save_IFS 18942 test -z "$as_dir" && as_dir=. 18943 for ac_exec_ext in '' $ac_executable_extensions; do 18944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18945 ac_cv_prog_ac_ct_RANLIB="ranlib" 18946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18947 break 2 18948 fi 18949done 18950done 18951 18952 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 18953fi 18954fi 18955ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 18956if test -n "$ac_ct_RANLIB"; then 18957 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 18958echo "${ECHO_T}$ac_ct_RANLIB" >&6 18959else 18960 echo "$as_me:$LINENO: result: no" >&5 18961echo "${ECHO_T}no" >&6 18962fi 18963 18964 RANLIB=$ac_ct_RANLIB 18965else 18966 RANLIB="$ac_cv_prog_RANLIB" 18967fi 18968 18969fi 18970 18971case "$PLATFORM:$CC" in 18972 *-sun-solaris2*:cc ) 18973 # shut-up harmless warnings caused by do-while macros on Solaris 18974 test ".$ac_cv_c_compiler_gnu" = ".no" && CFLAGS="$CFLAGS -w" 18975 ;; 18976 *-*-sysv*uw[27]*:cc ) 18977 # shut-up harmless warnings caused by do-while macros on UnixWare 18978 CFLAGS="$CFLAGS -w" 18979 ;; 18980 *-hp-hpux*:cc ) 18981 # HPUX needs a few special options to find its ANSI C brain 18982 CFLAGS="$CFLAGS -Ae -O" 18983 ;; 18984 *-hp-hpux*:CC ) 18985 # HPUX outputs useless warnings 18986 CFLAGS="$CFLAGS -w" 18987 ;; 18988 *-sgi-irix6.2:cc ) 18989 # shut-up warnings caused by IRIX brain-dead 32/64 bit stuff 18990 LDFLAGS="$LDFLAGS -woff 85 -Wl,-woff,84 -Wl,-woff,85" 18991 ;; 18992 *-sgi-irix6.5.[2-9]:cc ) 18993 # since IRIX 6.5.2 the C compiler is smart enough, 18994 # but the linker is still complaining, of course 18995 LDFLAGS="$LDFLAGS -woff 84,85,134" 18996 ;; 18997 *-sgi-irix6.5:cc ) 18998 # shut-up warnings caused by IRIX brain-dead 32/64 bit stuff 18999 CFLAGS="$CFLAGS -woff 1110,1048" 19000 LDFLAGS="$LDFLAGS -woff 84,85,134" 19001 ;; 19002 *-dec-osf4*:cc ) 19003 # make sure the standard compliant functions are used on Tru64/OSF1 4.x 19004 CFLAGS="$CFLAGS -std" 19005 ;; 19006 *-dec-osf5*:cc ) 19007 # make sure the standard compliant functions are used on Tru64/OSF1 5.x 19008 CFLAGS="$CFLAGS -std -D_XOPEN_SOURCE_EXTENDED" 19009 ;; 19010 *-*-isc*:* ) 19011 # ISC is brain-dead and needs a bunch of options to find its brain 19012 CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE"; 19013 LIBS="$LIBS -lcposix -linet"; 19014 ;; 19015 *-*-aix4.1*:cc ) 19016 # AIX 4.1.x' cc complains about our use of "volatile" 19017 CPPFLAGS="$CPPFLAGS '-Dvolatile=/**/'"; 19018 ;; 19019esac 19020 19021 19022if test ".$enable_subdir" != .yes; then 19023 echo "$as_me:$LINENO: result: " >&5 19024echo "${ECHO_T}" >&6 19025 echo "$as_me:$LINENO: result: ${TB}Mandatory Platform Environment:${TN}" >&5 19026echo "${ECHO_T}${TB}Mandatory Platform Environment:${TN}" >&6 19027fi 19028 19029 19030echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19031echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19032if test "${ac_cv_header_stdc+set}" = set; then 19033 echo $ECHO_N "(cached) $ECHO_C" >&6 19034else 19035 cat >conftest.$ac_ext <<_ACEOF 19036/* confdefs.h. */ 19037_ACEOF 19038cat confdefs.h >>conftest.$ac_ext 19039cat >>conftest.$ac_ext <<_ACEOF 19040/* end confdefs.h. */ 19041#include <stdlib.h> 19042#include <stdarg.h> 19043#include <string.h> 19044#include <float.h> 19045 19046int 19047main () 19048{ 19049 19050 ; 19051 return 0; 19052} 19053_ACEOF 19054rm -f conftest.$ac_objext 19055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19056 (eval $ac_compile) 2>conftest.er1 19057 ac_status=$? 19058 grep -v '^ *+' conftest.er1 >conftest.err 19059 rm -f conftest.er1 19060 cat conftest.err >&5 19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19062 (exit $ac_status); } && 19063 { ac_try='test -z "$ac_c_werror_flag" 19064 || test ! -s conftest.err' 19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19066 (eval $ac_try) 2>&5 19067 ac_status=$? 19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19069 (exit $ac_status); }; } && 19070 { ac_try='test -s conftest.$ac_objext' 19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19072 (eval $ac_try) 2>&5 19073 ac_status=$? 19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19075 (exit $ac_status); }; }; then 19076 ac_cv_header_stdc=yes 19077else 19078 echo "$as_me: failed program was:" >&5 19079sed 's/^/| /' conftest.$ac_ext >&5 19080 19081ac_cv_header_stdc=no 19082fi 19083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19084 19085if test $ac_cv_header_stdc = yes; then 19086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19087 cat >conftest.$ac_ext <<_ACEOF 19088/* confdefs.h. */ 19089_ACEOF 19090cat confdefs.h >>conftest.$ac_ext 19091cat >>conftest.$ac_ext <<_ACEOF 19092/* end confdefs.h. */ 19093#include <string.h> 19094 19095_ACEOF 19096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19097 $EGREP "memchr" >/dev/null 2>&1; then 19098 : 19099else 19100 ac_cv_header_stdc=no 19101fi 19102rm -f conftest* 19103 19104fi 19105 19106if test $ac_cv_header_stdc = yes; then 19107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19108 cat >conftest.$ac_ext <<_ACEOF 19109/* confdefs.h. */ 19110_ACEOF 19111cat confdefs.h >>conftest.$ac_ext 19112cat >>conftest.$ac_ext <<_ACEOF 19113/* end confdefs.h. */ 19114#include <stdlib.h> 19115 19116_ACEOF 19117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19118 $EGREP "free" >/dev/null 2>&1; then 19119 : 19120else 19121 ac_cv_header_stdc=no 19122fi 19123rm -f conftest* 19124 19125fi 19126 19127if test $ac_cv_header_stdc = yes; then 19128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19129 if test "$cross_compiling" = yes; then 19130 : 19131else 19132 cat >conftest.$ac_ext <<_ACEOF 19133/* confdefs.h. */ 19134_ACEOF 19135cat confdefs.h >>conftest.$ac_ext 19136cat >>conftest.$ac_ext <<_ACEOF 19137/* end confdefs.h. */ 19138#include <ctype.h> 19139#if ((' ' & 0x0FF) == 0x020) 19140# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19141# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19142#else 19143# define ISLOWER(c) \ 19144 (('a' <= (c) && (c) <= 'i') \ 19145 || ('j' <= (c) && (c) <= 'r') \ 19146 || ('s' <= (c) && (c) <= 'z')) 19147# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19148#endif 19149 19150#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19151int 19152main () 19153{ 19154 int i; 19155 for (i = 0; i < 256; i++) 19156 if (XOR (islower (i), ISLOWER (i)) 19157 || toupper (i) != TOUPPER (i)) 19158 exit(2); 19159 exit (0); 19160} 19161_ACEOF 19162rm -f conftest$ac_exeext 19163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19164 (eval $ac_link) 2>&5 19165 ac_status=$? 19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19169 (eval $ac_try) 2>&5 19170 ac_status=$? 19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19172 (exit $ac_status); }; }; then 19173 : 19174else 19175 echo "$as_me: program exited with status $ac_status" >&5 19176echo "$as_me: failed program was:" >&5 19177sed 's/^/| /' conftest.$ac_ext >&5 19178 19179( exit $ac_status ) 19180ac_cv_header_stdc=no 19181fi 19182rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19183fi 19184fi 19185fi 19186echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19187echo "${ECHO_T}$ac_cv_header_stdc" >&6 19188if test $ac_cv_header_stdc = yes; then 19189 19190cat >>confdefs.h <<\_ACEOF 19191#define STDC_HEADERS 1 19192_ACEOF 19193 19194fi 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210for ac_header in stdio.h stdlib.h stdarg.h string.h signal.h unistd.h setjmp.h fcntl.h errno.h sys/types.h sys/time.h sys/wait.h sys/stat.h sys/socket.h 19211do 19212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19213if eval "test \"\${$as_ac_Header+set}\" = set"; then 19214 echo "$as_me:$LINENO: checking for $ac_header" >&5 19215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19216if eval "test \"\${$as_ac_Header+set}\" = set"; then 19217 echo $ECHO_N "(cached) $ECHO_C" >&6 19218fi 19219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19221else 19222 # Is the header compilable? 19223echo "$as_me:$LINENO: checking $ac_header usability" >&5 19224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19225cat >conftest.$ac_ext <<_ACEOF 19226/* confdefs.h. */ 19227_ACEOF 19228cat confdefs.h >>conftest.$ac_ext 19229cat >>conftest.$ac_ext <<_ACEOF 19230/* end confdefs.h. */ 19231$ac_includes_default 19232#include <$ac_header> 19233_ACEOF 19234rm -f conftest.$ac_objext 19235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19236 (eval $ac_compile) 2>conftest.er1 19237 ac_status=$? 19238 grep -v '^ *+' conftest.er1 >conftest.err 19239 rm -f conftest.er1 19240 cat conftest.err >&5 19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19242 (exit $ac_status); } && 19243 { ac_try='test -z "$ac_c_werror_flag" 19244 || test ! -s conftest.err' 19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19246 (eval $ac_try) 2>&5 19247 ac_status=$? 19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19249 (exit $ac_status); }; } && 19250 { ac_try='test -s conftest.$ac_objext' 19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19252 (eval $ac_try) 2>&5 19253 ac_status=$? 19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19255 (exit $ac_status); }; }; then 19256 ac_header_compiler=yes 19257else 19258 echo "$as_me: failed program was:" >&5 19259sed 's/^/| /' conftest.$ac_ext >&5 19260 19261ac_header_compiler=no 19262fi 19263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19264echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19265echo "${ECHO_T}$ac_header_compiler" >&6 19266 19267# Is the header present? 19268echo "$as_me:$LINENO: checking $ac_header presence" >&5 19269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19270cat >conftest.$ac_ext <<_ACEOF 19271/* confdefs.h. */ 19272_ACEOF 19273cat confdefs.h >>conftest.$ac_ext 19274cat >>conftest.$ac_ext <<_ACEOF 19275/* end confdefs.h. */ 19276#include <$ac_header> 19277_ACEOF 19278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19280 ac_status=$? 19281 grep -v '^ *+' conftest.er1 >conftest.err 19282 rm -f conftest.er1 19283 cat conftest.err >&5 19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19285 (exit $ac_status); } >/dev/null; then 19286 if test -s conftest.err; then 19287 ac_cpp_err=$ac_c_preproc_warn_flag 19288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19289 else 19290 ac_cpp_err= 19291 fi 19292else 19293 ac_cpp_err=yes 19294fi 19295if test -z "$ac_cpp_err"; then 19296 ac_header_preproc=yes 19297else 19298 echo "$as_me: failed program was:" >&5 19299sed 's/^/| /' conftest.$ac_ext >&5 19300 19301 ac_header_preproc=no 19302fi 19303rm -f conftest.err conftest.$ac_ext 19304echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19305echo "${ECHO_T}$ac_header_preproc" >&6 19306 19307# So? What about this header? 19308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19309 yes:no: ) 19310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19314 ac_header_preproc=yes 19315 ;; 19316 no:yes:* ) 19317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19329 ( 19330 cat <<\_ASBOX 19331## ------------------------------------------ ## 19332## Report this to the AC_PACKAGE_NAME lists. ## 19333## ------------------------------------------ ## 19334_ASBOX 19335 ) | 19336 sed "s/^/$as_me: WARNING: /" >&2 19337 ;; 19338esac 19339echo "$as_me:$LINENO: checking for $ac_header" >&5 19340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19341if eval "test \"\${$as_ac_Header+set}\" = set"; then 19342 echo $ECHO_N "(cached) $ECHO_C" >&6 19343else 19344 eval "$as_ac_Header=\$ac_header_preproc" 19345fi 19346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19348 19349fi 19350if test `eval echo '${'$as_ac_Header'}'` = yes; then 19351 cat >>confdefs.h <<_ACEOF 19352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19353_ACEOF 19354 19355fi 19356 19357done 19358 19359 19360 19361 19362 19363 19364 19365for ac_func in gettimeofday select sigaction sigprocmask sigpending sigsuspend 19366do 19367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19368echo "$as_me:$LINENO: checking for $ac_func" >&5 19369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19370if eval "test \"\${$as_ac_var+set}\" = set"; then 19371 echo $ECHO_N "(cached) $ECHO_C" >&6 19372else 19373 cat >conftest.$ac_ext <<_ACEOF 19374/* confdefs.h. */ 19375_ACEOF 19376cat confdefs.h >>conftest.$ac_ext 19377cat >>conftest.$ac_ext <<_ACEOF 19378/* end confdefs.h. */ 19379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19380 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19381#define $ac_func innocuous_$ac_func 19382 19383/* System header to define __stub macros and hopefully few prototypes, 19384 which can conflict with char $ac_func (); below. 19385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19386 <limits.h> exists even on freestanding compilers. */ 19387 19388#ifdef __STDC__ 19389# include <limits.h> 19390#else 19391# include <assert.h> 19392#endif 19393 19394#undef $ac_func 19395 19396/* Override any gcc2 internal prototype to avoid an error. */ 19397#ifdef __cplusplus 19398extern "C" 19399{ 19400#endif 19401/* We use char because int might match the return type of a gcc2 19402 builtin and then its argument prototype would still apply. */ 19403char $ac_func (); 19404/* The GNU C library defines this for functions which it implements 19405 to always fail with ENOSYS. Some functions are actually named 19406 something starting with __ and the normal name is an alias. */ 19407#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19408choke me 19409#else 19410char (*f) () = $ac_func; 19411#endif 19412#ifdef __cplusplus 19413} 19414#endif 19415 19416int 19417main () 19418{ 19419return f != $ac_func; 19420 ; 19421 return 0; 19422} 19423_ACEOF 19424rm -f conftest.$ac_objext conftest$ac_exeext 19425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19426 (eval $ac_link) 2>conftest.er1 19427 ac_status=$? 19428 grep -v '^ *+' conftest.er1 >conftest.err 19429 rm -f conftest.er1 19430 cat conftest.err >&5 19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19432 (exit $ac_status); } && 19433 { ac_try='test -z "$ac_c_werror_flag" 19434 || test ! -s conftest.err' 19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19436 (eval $ac_try) 2>&5 19437 ac_status=$? 19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19439 (exit $ac_status); }; } && 19440 { ac_try='test -s conftest$ac_exeext' 19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19442 (eval $ac_try) 2>&5 19443 ac_status=$? 19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19445 (exit $ac_status); }; }; then 19446 eval "$as_ac_var=yes" 19447else 19448 echo "$as_me: failed program was:" >&5 19449sed 's/^/| /' conftest.$ac_ext >&5 19450 19451eval "$as_ac_var=no" 19452fi 19453rm -f conftest.err conftest.$ac_objext \ 19454 conftest$ac_exeext conftest.$ac_ext 19455fi 19456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19457echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19458if test `eval echo '${'$as_ac_var'}'` = yes; then 19459 cat >>confdefs.h <<_ACEOF 19460#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19461_ACEOF 19462 19463fi 19464done 19465 19466ac_decision_item='mandatory system headers and functions' 19467ac_decision_msg='FAILED' 19468ac_decision='' 19469 19470ac_rc=yes 19471for ac_spec in header:stdio.h header:stdlib.h header:stdarg.h header:string.h header:signal.h header:unistd.h header:setjmp.h header:fcntl.h header:errno.h header:sys/types.h header:sys/time.h header:sys/wait.h header:sys/stat.h header:sys/socket.h func:gettimeofday func:select func:sigaction func:sigprocmask func:sigpending func:sigsuspend; do 19472 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 19473 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 19474 case $ac_type in 19475 header ) 19476 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 19477 ac_var="ac_cv_header_$ac_item" 19478 ;; 19479 file ) 19480 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 19481 ac_var="ac_cv_file_$ac_item" 19482 ;; 19483 func ) ac_var="ac_cv_func_$ac_item" ;; 19484 lib ) ac_var="ac_cv_lib_$ac_item" ;; 19485 define ) ac_var="ac_cv_define_$ac_item" ;; 19486 typedef ) ac_var="ac_cv_typedef_$ac_item" ;; 19487 custom ) ac_var="$ac_item" ;; 19488 esac 19489 eval "ac_val=\$$ac_var" 19490 if test ".$ac_val" != .yes; then 19491 ac_rc=no 19492 break 19493 fi 19494done 19495if test ".$ac_rc" = .yes; then 19496 : 19497 ac_decision='fine' 19498ac_decision_msg='all fine' 19499ac_decision_fine=yes 19500ac_decision_fine_msg='all fine' 19501 19502else 19503 : 19504 19505fi 19506 19507if test ".$ac_decision" = .; then 19508 echo "$0:Error: decision on $ac_decision_item failed." 1>&2 19509 echo "$0:Hint: see config.log for more details!" 1>&2 19510 exit 1 19511else 19512 if test ".$ac_decision_msg" = .; then 19513 ac_decision_msg="$ac_decision" 19514 fi 19515 echo "$as_me:$LINENO: result: decision on $ac_decision_item... ${TB}$ac_decision_msg${TN}" >&5 19516echo "${ECHO_T}decision on $ac_decision_item... ${TB}$ac_decision_msg${TN}" >&6 19517fi 19518 19519 19520 19521 19522if test ".$enable_subdir" != .yes; then 19523 echo "$as_me:$LINENO: result: " >&5 19524echo "${ECHO_T}" >&6 19525 echo "$as_me:$LINENO: result: ${TB}Optional Platform Environment:${TN}" >&5 19526echo "${ECHO_T}${TB}Optional Platform Environment:${TN}" >&6 19527fi 19528 19529 19530echo "$as_me:$LINENO: checking for number of signals" >&5 19531echo $ECHO_N "checking for number of signals... $ECHO_C" >&6 19532cross_compiling=no 19533if test "$cross_compiling" = yes; then 19534 nsig=32 19535 19536else 19537 cat >conftest.$ac_ext <<_ACEOF 19538/* confdefs.h. */ 19539_ACEOF 19540cat confdefs.h >>conftest.$ac_ext 19541cat >>conftest.$ac_ext <<_ACEOF 19542/* end confdefs.h. */ 19543 19544#include <stdio.h> 19545#include <sys/types.h> 19546#include <signal.h> 19547 19548int main(int argc, char *argv[]) 19549{ 19550 FILE *fp; 19551 int nsig; 19552 19553#if defined(NSIG) 19554 nsig = NSIG; 19555#elif defined(_NSIG) 19556 nsig = _NSIG; 19557#else 19558 nsig = (sizeof(sigset_t)*8); 19559 if (nsig < 32) 19560 nsig = 32; 19561#endif 19562 if ((fp = fopen("conftestval", "w")) == NULL) 19563 exit(1); 19564 fprintf(fp, "%d\n", nsig); 19565 fclose(fp); 19566 exit(0); 19567} 19568 19569 19570_ACEOF 19571rm -f conftest$ac_exeext 19572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19573 (eval $ac_link) 2>&5 19574 ac_status=$? 19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19578 (eval $ac_try) 2>&5 19579 ac_status=$? 19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19581 (exit $ac_status); }; }; then 19582 nsig=`cat conftestval` 19583else 19584 echo "$as_me: program exited with status $ac_status" >&5 19585echo "$as_me: failed program was:" >&5 19586sed 's/^/| /' conftest.$ac_ext >&5 19587 19588( exit $ac_status ) 19589nsig=32 19590fi 19591rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19592fi 19593echo "$as_me:$LINENO: result: $nsig" >&5 19594echo "${ECHO_T}$nsig" >&6 19595 19596cat >>confdefs.h <<_ACEOF 19597#define PTH_NSIG $nsig 19598_ACEOF 19599 19600 19601 19602echo "$as_me:$LINENO: checking for default value of FD_SETSIZE" >&5 19603echo $ECHO_N "checking for default value of FD_SETSIZE... $ECHO_C" >&6 19604cross_compiling=no 19605if test "$cross_compiling" = yes; then 19606 ac_fdsetsize=1024 19607 19608else 19609 cat >conftest.$ac_ext <<_ACEOF 19610/* confdefs.h. */ 19611_ACEOF 19612cat confdefs.h >>conftest.$ac_ext 19613cat >>conftest.$ac_ext <<_ACEOF 19614/* end confdefs.h. */ 19615 19616#include <stdio.h> 19617#include <sys/types.h> 19618#include <unistd.h> 19619int main(int argc, char *argv[]) 19620{ 19621 FILE *fp; 19622 int ac_fdsetsize; 19623#if defined(FD_SETSIZE) 19624 ac_fdsetsize = FD_SETSIZE; 19625#else 19626 ac_fdsetsize = (sizeof(fd_set)*8); 19627#endif 19628 if ((fp = fopen("conftestval", "w")) == NULL) 19629 exit(1); 19630 fprintf(fp, "%d\n", ac_fdsetsize); 19631 fclose(fp); 19632 exit(0); 19633} 19634 19635 19636_ACEOF 19637rm -f conftest$ac_exeext 19638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19639 (eval $ac_link) 2>&5 19640 ac_status=$? 19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19644 (eval $ac_try) 2>&5 19645 ac_status=$? 19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19647 (exit $ac_status); }; }; then 19648 ac_fdsetsize=`cat conftestval` 19649else 19650 echo "$as_me: program exited with status $ac_status" >&5 19651echo "$as_me: failed program was:" >&5 19652sed 's/^/| /' conftest.$ac_ext >&5 19653 19654( exit $ac_status ) 19655ac_fdsetsize=1024 19656fi 19657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19658fi 19659echo "$as_me:$LINENO: result: $ac_fdsetsize" >&5 19660echo "${ECHO_T}$ac_fdsetsize" >&6 19661PTH_FDSETSIZE="$ac_fdsetsize" 19662 19663 19664 19665# Check whether --with-fdsetsize or --without-fdsetsize was given. 19666if test "${with_fdsetsize+set}" = set; then 19667 withval="$with_fdsetsize" 19668 19669case $withval in 19670 [1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]) PTH_FDSETSIZE=$withval ;; 19671 * ) { { echo "$as_me:$LINENO: error: invalid FD_SETSIZE specified -- allowed: 10-9999" >&5 19672echo "$as_me: error: invalid FD_SETSIZE specified -- allowed: 10-9999" >&2;} 19673 { (exit 1); exit 1; }; } ;; 19674esac 19675CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PTH_FDSETSIZE" 19676echo "$as_me:$LINENO: checking for overridden FD_SETSIZE value" >&5 19677echo $ECHO_N "checking for overridden FD_SETSIZE value... $ECHO_C" >&6 19678echo "$as_me:$LINENO: result: $PTH_FDSETSIZE" >&5 19679echo "${ECHO_T}$PTH_FDSETSIZE" >&6 19680 19681fi; 19682 19683 19684 19685 19686for ac_func in poll 19687do 19688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19689echo "$as_me:$LINENO: checking for $ac_func" >&5 19690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19691if eval "test \"\${$as_ac_var+set}\" = set"; then 19692 echo $ECHO_N "(cached) $ECHO_C" >&6 19693else 19694 cat >conftest.$ac_ext <<_ACEOF 19695/* confdefs.h. */ 19696_ACEOF 19697cat confdefs.h >>conftest.$ac_ext 19698cat >>conftest.$ac_ext <<_ACEOF 19699/* end confdefs.h. */ 19700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19701 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19702#define $ac_func innocuous_$ac_func 19703 19704/* System header to define __stub macros and hopefully few prototypes, 19705 which can conflict with char $ac_func (); below. 19706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19707 <limits.h> exists even on freestanding compilers. */ 19708 19709#ifdef __STDC__ 19710# include <limits.h> 19711#else 19712# include <assert.h> 19713#endif 19714 19715#undef $ac_func 19716 19717/* Override any gcc2 internal prototype to avoid an error. */ 19718#ifdef __cplusplus 19719extern "C" 19720{ 19721#endif 19722/* We use char because int might match the return type of a gcc2 19723 builtin and then its argument prototype would still apply. */ 19724char $ac_func (); 19725/* The GNU C library defines this for functions which it implements 19726 to always fail with ENOSYS. Some functions are actually named 19727 something starting with __ and the normal name is an alias. */ 19728#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19729choke me 19730#else 19731char (*f) () = $ac_func; 19732#endif 19733#ifdef __cplusplus 19734} 19735#endif 19736 19737int 19738main () 19739{ 19740return f != $ac_func; 19741 ; 19742 return 0; 19743} 19744_ACEOF 19745rm -f conftest.$ac_objext conftest$ac_exeext 19746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19747 (eval $ac_link) 2>conftest.er1 19748 ac_status=$? 19749 grep -v '^ *+' conftest.er1 >conftest.err 19750 rm -f conftest.er1 19751 cat conftest.err >&5 19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19753 (exit $ac_status); } && 19754 { ac_try='test -z "$ac_c_werror_flag" 19755 || test ! -s conftest.err' 19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19757 (eval $ac_try) 2>&5 19758 ac_status=$? 19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19760 (exit $ac_status); }; } && 19761 { ac_try='test -s conftest$ac_exeext' 19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19763 (eval $ac_try) 2>&5 19764 ac_status=$? 19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19766 (exit $ac_status); }; }; then 19767 eval "$as_ac_var=yes" 19768else 19769 echo "$as_me: failed program was:" >&5 19770sed 's/^/| /' conftest.$ac_ext >&5 19771 19772eval "$as_ac_var=no" 19773fi 19774rm -f conftest.err conftest.$ac_objext \ 19775 conftest$ac_exeext conftest.$ac_ext 19776fi 19777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19778echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19779if test `eval echo '${'$as_ac_var'}'` = yes; then 19780 cat >>confdefs.h <<_ACEOF 19781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19782_ACEOF 19783 19784fi 19785done 19786 19787echo "$as_me:$LINENO: checking for define POLLIN in poll.h" >&5 19788echo $ECHO_N "checking for define POLLIN in poll.h... $ECHO_C" >&6 19789if test "${ac_cv_define_POLLIN+set}" = set; then 19790 echo $ECHO_N "(cached) $ECHO_C" >&6 19791else 19792 cat >conftest.$ac_ext <<_ACEOF 19793/* confdefs.h. */ 19794_ACEOF 19795cat confdefs.h >>conftest.$ac_ext 19796cat >>conftest.$ac_ext <<_ACEOF 19797/* end confdefs.h. */ 19798 19799#include <poll.h> 19800#ifdef POLLIN 19801YES_IS_DEFINED 19802#endif 19803 19804_ACEOF 19805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19806 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then 19807 ac_cv_define_POLLIN=yes 19808else 19809 ac_cv_define_POLLIN=no 19810fi 19811rm -f conftest* 19812 19813fi 19814echo "$as_me:$LINENO: result: $ac_cv_define_POLLIN" >&5 19815echo "${ECHO_T}$ac_cv_define_POLLIN" >&6 19816if test $ac_cv_define_POLLIN = yes; then 19817 19818cat >>confdefs.h <<\_ACEOF 19819#define HAVE_POLLIN 1 19820_ACEOF 19821 19822fi 19823 19824echo "$as_me:$LINENO: checking whether poll(2) facility has to be faked" >&5 19825echo $ECHO_N "checking whether poll(2) facility has to be faked... $ECHO_C" >&6 19826ac_rc=yes 19827for ac_spec in func:poll define:POLLIN; do 19828 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 19829 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 19830 case $ac_type in 19831 header ) 19832 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 19833 ac_var="ac_cv_header_$ac_item" 19834 ;; 19835 file ) 19836 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 19837 ac_var="ac_cv_file_$ac_item" 19838 ;; 19839 func ) ac_var="ac_cv_func_$ac_item" ;; 19840 lib ) ac_var="ac_cv_lib_$ac_item" ;; 19841 define ) ac_var="ac_cv_define_$ac_item" ;; 19842 typedef ) ac_var="ac_cv_typedef_$ac_item" ;; 19843 custom ) ac_var="$ac_item" ;; 19844 esac 19845 eval "ac_val=\$$ac_var" 19846 if test ".$ac_val" != .yes; then 19847 ac_rc=no 19848 break 19849 fi 19850done 19851if test ".$ac_rc" = .yes; then 19852 : 19853 PTH_FAKE_POLL=0 19854else 19855 : 19856 PTH_FAKE_POLL=1 19857fi 19858 19859if test .$PTH_FAKE_POLL = .1; then 19860 msg="yes" 19861else 19862 msg="no" 19863fi 19864 19865echo "$as_me:$LINENO: result: $msg" >&5 19866echo "${ECHO_T}$msg" >&6 19867 19868 19869for ac_header in sys/uio.h 19870do 19871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19872if eval "test \"\${$as_ac_Header+set}\" = set"; then 19873 echo "$as_me:$LINENO: checking for $ac_header" >&5 19874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19875if eval "test \"\${$as_ac_Header+set}\" = set"; then 19876 echo $ECHO_N "(cached) $ECHO_C" >&6 19877fi 19878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19880else 19881 # Is the header compilable? 19882echo "$as_me:$LINENO: checking $ac_header usability" >&5 19883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19884cat >conftest.$ac_ext <<_ACEOF 19885/* confdefs.h. */ 19886_ACEOF 19887cat confdefs.h >>conftest.$ac_ext 19888cat >>conftest.$ac_ext <<_ACEOF 19889/* end confdefs.h. */ 19890$ac_includes_default 19891#include <$ac_header> 19892_ACEOF 19893rm -f conftest.$ac_objext 19894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19895 (eval $ac_compile) 2>conftest.er1 19896 ac_status=$? 19897 grep -v '^ *+' conftest.er1 >conftest.err 19898 rm -f conftest.er1 19899 cat conftest.err >&5 19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19901 (exit $ac_status); } && 19902 { ac_try='test -z "$ac_c_werror_flag" 19903 || test ! -s conftest.err' 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); }; } && 19909 { ac_try='test -s conftest.$ac_objext' 19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19911 (eval $ac_try) 2>&5 19912 ac_status=$? 19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19914 (exit $ac_status); }; }; then 19915 ac_header_compiler=yes 19916else 19917 echo "$as_me: failed program was:" >&5 19918sed 's/^/| /' conftest.$ac_ext >&5 19919 19920ac_header_compiler=no 19921fi 19922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19923echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19924echo "${ECHO_T}$ac_header_compiler" >&6 19925 19926# Is the header present? 19927echo "$as_me:$LINENO: checking $ac_header presence" >&5 19928echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19929cat >conftest.$ac_ext <<_ACEOF 19930/* confdefs.h. */ 19931_ACEOF 19932cat confdefs.h >>conftest.$ac_ext 19933cat >>conftest.$ac_ext <<_ACEOF 19934/* end confdefs.h. */ 19935#include <$ac_header> 19936_ACEOF 19937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19939 ac_status=$? 19940 grep -v '^ *+' conftest.er1 >conftest.err 19941 rm -f conftest.er1 19942 cat conftest.err >&5 19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19944 (exit $ac_status); } >/dev/null; then 19945 if test -s conftest.err; then 19946 ac_cpp_err=$ac_c_preproc_warn_flag 19947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19948 else 19949 ac_cpp_err= 19950 fi 19951else 19952 ac_cpp_err=yes 19953fi 19954if test -z "$ac_cpp_err"; then 19955 ac_header_preproc=yes 19956else 19957 echo "$as_me: failed program was:" >&5 19958sed 's/^/| /' conftest.$ac_ext >&5 19959 19960 ac_header_preproc=no 19961fi 19962rm -f conftest.err conftest.$ac_ext 19963echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19964echo "${ECHO_T}$ac_header_preproc" >&6 19965 19966# So? What about this header? 19967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19968 yes:no: ) 19969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19973 ac_header_preproc=yes 19974 ;; 19975 no:yes:* ) 19976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19983echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19988 ( 19989 cat <<\_ASBOX 19990## ------------------------------------------ ## 19991## Report this to the AC_PACKAGE_NAME lists. ## 19992## ------------------------------------------ ## 19993_ASBOX 19994 ) | 19995 sed "s/^/$as_me: WARNING: /" >&2 19996 ;; 19997esac 19998echo "$as_me:$LINENO: checking for $ac_header" >&5 19999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20000if eval "test \"\${$as_ac_Header+set}\" = set"; then 20001 echo $ECHO_N "(cached) $ECHO_C" >&6 20002else 20003 eval "$as_ac_Header=\$ac_header_preproc" 20004fi 20005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20007 20008fi 20009if test `eval echo '${'$as_ac_Header'}'` = yes; then 20010 cat >>confdefs.h <<_ACEOF 20011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20012_ACEOF 20013 20014fi 20015 20016done 20017 20018 20019 20020for ac_func in readv writev 20021do 20022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20023echo "$as_me:$LINENO: checking for $ac_func" >&5 20024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20025if eval "test \"\${$as_ac_var+set}\" = set"; then 20026 echo $ECHO_N "(cached) $ECHO_C" >&6 20027else 20028 cat >conftest.$ac_ext <<_ACEOF 20029/* confdefs.h. */ 20030_ACEOF 20031cat confdefs.h >>conftest.$ac_ext 20032cat >>conftest.$ac_ext <<_ACEOF 20033/* end confdefs.h. */ 20034/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20035 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20036#define $ac_func innocuous_$ac_func 20037 20038/* System header to define __stub macros and hopefully few prototypes, 20039 which can conflict with char $ac_func (); below. 20040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20041 <limits.h> exists even on freestanding compilers. */ 20042 20043#ifdef __STDC__ 20044# include <limits.h> 20045#else 20046# include <assert.h> 20047#endif 20048 20049#undef $ac_func 20050 20051/* Override any gcc2 internal prototype to avoid an error. */ 20052#ifdef __cplusplus 20053extern "C" 20054{ 20055#endif 20056/* We use char because int might match the return type of a gcc2 20057 builtin and then its argument prototype would still apply. */ 20058char $ac_func (); 20059/* The GNU C library defines this for functions which it implements 20060 to always fail with ENOSYS. Some functions are actually named 20061 something starting with __ and the normal name is an alias. */ 20062#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20063choke me 20064#else 20065char (*f) () = $ac_func; 20066#endif 20067#ifdef __cplusplus 20068} 20069#endif 20070 20071int 20072main () 20073{ 20074return f != $ac_func; 20075 ; 20076 return 0; 20077} 20078_ACEOF 20079rm -f conftest.$ac_objext conftest$ac_exeext 20080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20081 (eval $ac_link) 2>conftest.er1 20082 ac_status=$? 20083 grep -v '^ *+' conftest.er1 >conftest.err 20084 rm -f conftest.er1 20085 cat conftest.err >&5 20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20087 (exit $ac_status); } && 20088 { ac_try='test -z "$ac_c_werror_flag" 20089 || test ! -s conftest.err' 20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20091 (eval $ac_try) 2>&5 20092 ac_status=$? 20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20094 (exit $ac_status); }; } && 20095 { ac_try='test -s conftest$ac_exeext' 20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20097 (eval $ac_try) 2>&5 20098 ac_status=$? 20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20100 (exit $ac_status); }; }; then 20101 eval "$as_ac_var=yes" 20102else 20103 echo "$as_me: failed program was:" >&5 20104sed 's/^/| /' conftest.$ac_ext >&5 20105 20106eval "$as_ac_var=no" 20107fi 20108rm -f conftest.err conftest.$ac_objext \ 20109 conftest$ac_exeext conftest.$ac_ext 20110fi 20111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20112echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20113if test `eval echo '${'$as_ac_var'}'` = yes; then 20114 cat >>confdefs.h <<_ACEOF 20115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20116_ACEOF 20117 20118fi 20119done 20120 20121echo "$as_me:$LINENO: checking whether readv(2)/writev(2) facility has to be faked" >&5 20122echo $ECHO_N "checking whether readv(2)/writev(2) facility has to be faked... $ECHO_C" >&6 20123ac_rc=yes 20124for ac_spec in func:readv func:writev header:sys/uio.h; do 20125 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 20126 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 20127 case $ac_type in 20128 header ) 20129 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 20130 ac_var="ac_cv_header_$ac_item" 20131 ;; 20132 file ) 20133 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 20134 ac_var="ac_cv_file_$ac_item" 20135 ;; 20136 func ) ac_var="ac_cv_func_$ac_item" ;; 20137 lib ) ac_var="ac_cv_lib_$ac_item" ;; 20138 define ) ac_var="ac_cv_define_$ac_item" ;; 20139 typedef ) ac_var="ac_cv_typedef_$ac_item" ;; 20140 custom ) ac_var="$ac_item" ;; 20141 esac 20142 eval "ac_val=\$$ac_var" 20143 if test ".$ac_val" != .yes; then 20144 ac_rc=no 20145 break 20146 fi 20147done 20148if test ".$ac_rc" = .yes; then 20149 : 20150 PTH_FAKE_RWV=0 20151else 20152 : 20153 PTH_FAKE_RWV=1 20154fi 20155 20156if test .$PTH_FAKE_RWV = .1; then 20157 msg="yes" 20158else 20159 msg="no" 20160fi 20161 20162echo "$as_me:$LINENO: result: $msg" >&5 20163echo "${ECHO_T}$msg" >&6 20164 20165 20166 20167for ac_func in usleep strerror 20168do 20169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20170echo "$as_me:$LINENO: checking for $ac_func" >&5 20171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20172if eval "test \"\${$as_ac_var+set}\" = set"; then 20173 echo $ECHO_N "(cached) $ECHO_C" >&6 20174else 20175 cat >conftest.$ac_ext <<_ACEOF 20176/* confdefs.h. */ 20177_ACEOF 20178cat confdefs.h >>conftest.$ac_ext 20179cat >>conftest.$ac_ext <<_ACEOF 20180/* end confdefs.h. */ 20181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20182 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20183#define $ac_func innocuous_$ac_func 20184 20185/* System header to define __stub macros and hopefully few prototypes, 20186 which can conflict with char $ac_func (); below. 20187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20188 <limits.h> exists even on freestanding compilers. */ 20189 20190#ifdef __STDC__ 20191# include <limits.h> 20192#else 20193# include <assert.h> 20194#endif 20195 20196#undef $ac_func 20197 20198/* Override any gcc2 internal prototype to avoid an error. */ 20199#ifdef __cplusplus 20200extern "C" 20201{ 20202#endif 20203/* We use char because int might match the return type of a gcc2 20204 builtin and then its argument prototype would still apply. */ 20205char $ac_func (); 20206/* The GNU C library defines this for functions which it implements 20207 to always fail with ENOSYS. Some functions are actually named 20208 something starting with __ and the normal name is an alias. */ 20209#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20210choke me 20211#else 20212char (*f) () = $ac_func; 20213#endif 20214#ifdef __cplusplus 20215} 20216#endif 20217 20218int 20219main () 20220{ 20221return f != $ac_func; 20222 ; 20223 return 0; 20224} 20225_ACEOF 20226rm -f conftest.$ac_objext conftest$ac_exeext 20227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20228 (eval $ac_link) 2>conftest.er1 20229 ac_status=$? 20230 grep -v '^ *+' conftest.er1 >conftest.err 20231 rm -f conftest.er1 20232 cat conftest.err >&5 20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20234 (exit $ac_status); } && 20235 { ac_try='test -z "$ac_c_werror_flag" 20236 || test ! -s conftest.err' 20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20238 (eval $ac_try) 2>&5 20239 ac_status=$? 20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20241 (exit $ac_status); }; } && 20242 { ac_try='test -s conftest$ac_exeext' 20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20244 (eval $ac_try) 2>&5 20245 ac_status=$? 20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20247 (exit $ac_status); }; }; then 20248 eval "$as_ac_var=yes" 20249else 20250 echo "$as_me: failed program was:" >&5 20251sed 's/^/| /' conftest.$ac_ext >&5 20252 20253eval "$as_ac_var=no" 20254fi 20255rm -f conftest.err conftest.$ac_objext \ 20256 conftest$ac_exeext conftest.$ac_ext 20257fi 20258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20259echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20260if test `eval echo '${'$as_ac_var'}'` = yes; then 20261 cat >>confdefs.h <<_ACEOF 20262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20263_ACEOF 20264 20265fi 20266done 20267 20268 20269 20270 20271 20272for ac_header in sys/resource.h net/errno.h paths.h 20273do 20274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20275if eval "test \"\${$as_ac_Header+set}\" = set"; then 20276 echo "$as_me:$LINENO: checking for $ac_header" >&5 20277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20278if eval "test \"\${$as_ac_Header+set}\" = set"; then 20279 echo $ECHO_N "(cached) $ECHO_C" >&6 20280fi 20281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20283else 20284 # Is the header compilable? 20285echo "$as_me:$LINENO: checking $ac_header usability" >&5 20286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20287cat >conftest.$ac_ext <<_ACEOF 20288/* confdefs.h. */ 20289_ACEOF 20290cat confdefs.h >>conftest.$ac_ext 20291cat >>conftest.$ac_ext <<_ACEOF 20292/* end confdefs.h. */ 20293$ac_includes_default 20294#include <$ac_header> 20295_ACEOF 20296rm -f conftest.$ac_objext 20297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20298 (eval $ac_compile) 2>conftest.er1 20299 ac_status=$? 20300 grep -v '^ *+' conftest.er1 >conftest.err 20301 rm -f conftest.er1 20302 cat conftest.err >&5 20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20304 (exit $ac_status); } && 20305 { ac_try='test -z "$ac_c_werror_flag" 20306 || test ! -s conftest.err' 20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20308 (eval $ac_try) 2>&5 20309 ac_status=$? 20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20311 (exit $ac_status); }; } && 20312 { ac_try='test -s conftest.$ac_objext' 20313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20314 (eval $ac_try) 2>&5 20315 ac_status=$? 20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20317 (exit $ac_status); }; }; then 20318 ac_header_compiler=yes 20319else 20320 echo "$as_me: failed program was:" >&5 20321sed 's/^/| /' conftest.$ac_ext >&5 20322 20323ac_header_compiler=no 20324fi 20325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20326echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20327echo "${ECHO_T}$ac_header_compiler" >&6 20328 20329# Is the header present? 20330echo "$as_me:$LINENO: checking $ac_header presence" >&5 20331echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20332cat >conftest.$ac_ext <<_ACEOF 20333/* confdefs.h. */ 20334_ACEOF 20335cat confdefs.h >>conftest.$ac_ext 20336cat >>conftest.$ac_ext <<_ACEOF 20337/* end confdefs.h. */ 20338#include <$ac_header> 20339_ACEOF 20340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20342 ac_status=$? 20343 grep -v '^ *+' conftest.er1 >conftest.err 20344 rm -f conftest.er1 20345 cat conftest.err >&5 20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20347 (exit $ac_status); } >/dev/null; then 20348 if test -s conftest.err; then 20349 ac_cpp_err=$ac_c_preproc_warn_flag 20350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20351 else 20352 ac_cpp_err= 20353 fi 20354else 20355 ac_cpp_err=yes 20356fi 20357if test -z "$ac_cpp_err"; then 20358 ac_header_preproc=yes 20359else 20360 echo "$as_me: failed program was:" >&5 20361sed 's/^/| /' conftest.$ac_ext >&5 20362 20363 ac_header_preproc=no 20364fi 20365rm -f conftest.err conftest.$ac_ext 20366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20367echo "${ECHO_T}$ac_header_preproc" >&6 20368 20369# So? What about this header? 20370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20371 yes:no: ) 20372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20376 ac_header_preproc=yes 20377 ;; 20378 no:yes:* ) 20379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20382echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20386echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20391 ( 20392 cat <<\_ASBOX 20393## ------------------------------------------ ## 20394## Report this to the AC_PACKAGE_NAME lists. ## 20395## ------------------------------------------ ## 20396_ASBOX 20397 ) | 20398 sed "s/^/$as_me: WARNING: /" >&2 20399 ;; 20400esac 20401echo "$as_me:$LINENO: checking for $ac_header" >&5 20402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20403if eval "test \"\${$as_ac_Header+set}\" = set"; then 20404 echo $ECHO_N "(cached) $ECHO_C" >&6 20405else 20406 eval "$as_ac_Header=\$ac_header_preproc" 20407fi 20408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20410 20411fi 20412if test `eval echo '${'$as_ac_Header'}'` = yes; then 20413 cat >>confdefs.h <<_ACEOF 20414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20415_ACEOF 20416 20417fi 20418 20419done 20420 20421 20422 20423echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5 20424echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6 20425if test "${ac_cv_lib_nsl_gethostname+set}" = set; then 20426 echo $ECHO_N "(cached) $ECHO_C" >&6 20427else 20428 ac_check_lib_save_LIBS=$LIBS 20429LIBS="-lnsl $LIBS" 20430cat >conftest.$ac_ext <<_ACEOF 20431/* confdefs.h. */ 20432_ACEOF 20433cat confdefs.h >>conftest.$ac_ext 20434cat >>conftest.$ac_ext <<_ACEOF 20435/* end confdefs.h. */ 20436 20437/* Override any gcc2 internal prototype to avoid an error. */ 20438#ifdef __cplusplus 20439extern "C" 20440#endif 20441/* We use char because int might match the return type of a gcc2 20442 builtin and then its argument prototype would still apply. */ 20443char gethostname (); 20444int 20445main () 20446{ 20447gethostname (); 20448 ; 20449 return 0; 20450} 20451_ACEOF 20452rm -f conftest.$ac_objext conftest$ac_exeext 20453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20454 (eval $ac_link) 2>conftest.er1 20455 ac_status=$? 20456 grep -v '^ *+' conftest.er1 >conftest.err 20457 rm -f conftest.er1 20458 cat conftest.err >&5 20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20460 (exit $ac_status); } && 20461 { ac_try='test -z "$ac_c_werror_flag" 20462 || test ! -s conftest.err' 20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20464 (eval $ac_try) 2>&5 20465 ac_status=$? 20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20467 (exit $ac_status); }; } && 20468 { ac_try='test -s conftest$ac_exeext' 20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20470 (eval $ac_try) 2>&5 20471 ac_status=$? 20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20473 (exit $ac_status); }; }; then 20474 ac_cv_lib_nsl_gethostname=yes 20475else 20476 echo "$as_me: failed program was:" >&5 20477sed 's/^/| /' conftest.$ac_ext >&5 20478 20479ac_cv_lib_nsl_gethostname=no 20480fi 20481rm -f conftest.err conftest.$ac_objext \ 20482 conftest$ac_exeext conftest.$ac_ext 20483LIBS=$ac_check_lib_save_LIBS 20484fi 20485echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5 20486echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6 20487if test $ac_cv_lib_nsl_gethostname = yes; then 20488 cat >>confdefs.h <<_ACEOF 20489#define HAVE_LIBNSL 1 20490_ACEOF 20491 20492 LIBS="-lnsl $LIBS" 20493 20494fi 20495 20496if test ".`echo $LIBS | grep nsl`" = .; then 20497 20498echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 20499echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 20500if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 20501 echo $ECHO_N "(cached) $ECHO_C" >&6 20502else 20503 ac_check_lib_save_LIBS=$LIBS 20504LIBS="-lnsl $LIBS" 20505cat >conftest.$ac_ext <<_ACEOF 20506/* confdefs.h. */ 20507_ACEOF 20508cat confdefs.h >>conftest.$ac_ext 20509cat >>conftest.$ac_ext <<_ACEOF 20510/* end confdefs.h. */ 20511 20512/* Override any gcc2 internal prototype to avoid an error. */ 20513#ifdef __cplusplus 20514extern "C" 20515#endif 20516/* We use char because int might match the return type of a gcc2 20517 builtin and then its argument prototype would still apply. */ 20518char gethostbyname (); 20519int 20520main () 20521{ 20522gethostbyname (); 20523 ; 20524 return 0; 20525} 20526_ACEOF 20527rm -f conftest.$ac_objext conftest$ac_exeext 20528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20529 (eval $ac_link) 2>conftest.er1 20530 ac_status=$? 20531 grep -v '^ *+' conftest.er1 >conftest.err 20532 rm -f conftest.er1 20533 cat conftest.err >&5 20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20535 (exit $ac_status); } && 20536 { ac_try='test -z "$ac_c_werror_flag" 20537 || test ! -s conftest.err' 20538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20539 (eval $ac_try) 2>&5 20540 ac_status=$? 20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20542 (exit $ac_status); }; } && 20543 { ac_try='test -s conftest$ac_exeext' 20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20545 (eval $ac_try) 2>&5 20546 ac_status=$? 20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20548 (exit $ac_status); }; }; then 20549 ac_cv_lib_nsl_gethostbyname=yes 20550else 20551 echo "$as_me: failed program was:" >&5 20552sed 's/^/| /' conftest.$ac_ext >&5 20553 20554ac_cv_lib_nsl_gethostbyname=no 20555fi 20556rm -f conftest.err conftest.$ac_objext \ 20557 conftest$ac_exeext conftest.$ac_ext 20558LIBS=$ac_check_lib_save_LIBS 20559fi 20560echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 20561echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 20562if test $ac_cv_lib_nsl_gethostbyname = yes; then 20563 cat >>confdefs.h <<_ACEOF 20564#define HAVE_LIBNSL 1 20565_ACEOF 20566 20567 LIBS="-lnsl $LIBS" 20568 20569fi 20570 20571fi 20572 20573echo "$as_me:$LINENO: checking for accept in -lsocket" >&5 20574echo $ECHO_N "checking for accept in -lsocket... $ECHO_C" >&6 20575if test "${ac_cv_lib_socket_accept+set}" = set; then 20576 echo $ECHO_N "(cached) $ECHO_C" >&6 20577else 20578 ac_check_lib_save_LIBS=$LIBS 20579LIBS="-lsocket $LIBS" 20580cat >conftest.$ac_ext <<_ACEOF 20581/* confdefs.h. */ 20582_ACEOF 20583cat confdefs.h >>conftest.$ac_ext 20584cat >>conftest.$ac_ext <<_ACEOF 20585/* end confdefs.h. */ 20586 20587/* Override any gcc2 internal prototype to avoid an error. */ 20588#ifdef __cplusplus 20589extern "C" 20590#endif 20591/* We use char because int might match the return type of a gcc2 20592 builtin and then its argument prototype would still apply. */ 20593char accept (); 20594int 20595main () 20596{ 20597accept (); 20598 ; 20599 return 0; 20600} 20601_ACEOF 20602rm -f conftest.$ac_objext conftest$ac_exeext 20603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20604 (eval $ac_link) 2>conftest.er1 20605 ac_status=$? 20606 grep -v '^ *+' conftest.er1 >conftest.err 20607 rm -f conftest.er1 20608 cat conftest.err >&5 20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20610 (exit $ac_status); } && 20611 { ac_try='test -z "$ac_c_werror_flag" 20612 || test ! -s conftest.err' 20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20614 (eval $ac_try) 2>&5 20615 ac_status=$? 20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20617 (exit $ac_status); }; } && 20618 { ac_try='test -s conftest$ac_exeext' 20619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20620 (eval $ac_try) 2>&5 20621 ac_status=$? 20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20623 (exit $ac_status); }; }; then 20624 ac_cv_lib_socket_accept=yes 20625else 20626 echo "$as_me: failed program was:" >&5 20627sed 's/^/| /' conftest.$ac_ext >&5 20628 20629ac_cv_lib_socket_accept=no 20630fi 20631rm -f conftest.err conftest.$ac_objext \ 20632 conftest$ac_exeext conftest.$ac_ext 20633LIBS=$ac_check_lib_save_LIBS 20634fi 20635echo "$as_me:$LINENO: result: $ac_cv_lib_socket_accept" >&5 20636echo "${ECHO_T}$ac_cv_lib_socket_accept" >&6 20637if test $ac_cv_lib_socket_accept = yes; then 20638 cat >>confdefs.h <<_ACEOF 20639#define HAVE_LIBSOCKET 1 20640_ACEOF 20641 20642 LIBS="-lsocket $LIBS" 20643 20644fi 20645 20646 20647 20648for ac_header in sys/select.h 20649do 20650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20651if eval "test \"\${$as_ac_Header+set}\" = set"; then 20652 echo "$as_me:$LINENO: checking for $ac_header" >&5 20653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20654if eval "test \"\${$as_ac_Header+set}\" = set"; then 20655 echo $ECHO_N "(cached) $ECHO_C" >&6 20656fi 20657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20659else 20660 # Is the header compilable? 20661echo "$as_me:$LINENO: checking $ac_header usability" >&5 20662echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20663cat >conftest.$ac_ext <<_ACEOF 20664/* confdefs.h. */ 20665_ACEOF 20666cat confdefs.h >>conftest.$ac_ext 20667cat >>conftest.$ac_ext <<_ACEOF 20668/* end confdefs.h. */ 20669$ac_includes_default 20670#include <$ac_header> 20671_ACEOF 20672rm -f conftest.$ac_objext 20673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20674 (eval $ac_compile) 2>conftest.er1 20675 ac_status=$? 20676 grep -v '^ *+' conftest.er1 >conftest.err 20677 rm -f conftest.er1 20678 cat conftest.err >&5 20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20680 (exit $ac_status); } && 20681 { ac_try='test -z "$ac_c_werror_flag" 20682 || test ! -s conftest.err' 20683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20684 (eval $ac_try) 2>&5 20685 ac_status=$? 20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20687 (exit $ac_status); }; } && 20688 { ac_try='test -s conftest.$ac_objext' 20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20690 (eval $ac_try) 2>&5 20691 ac_status=$? 20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20693 (exit $ac_status); }; }; then 20694 ac_header_compiler=yes 20695else 20696 echo "$as_me: failed program was:" >&5 20697sed 's/^/| /' conftest.$ac_ext >&5 20698 20699ac_header_compiler=no 20700fi 20701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20702echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20703echo "${ECHO_T}$ac_header_compiler" >&6 20704 20705# Is the header present? 20706echo "$as_me:$LINENO: checking $ac_header presence" >&5 20707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20708cat >conftest.$ac_ext <<_ACEOF 20709/* confdefs.h. */ 20710_ACEOF 20711cat confdefs.h >>conftest.$ac_ext 20712cat >>conftest.$ac_ext <<_ACEOF 20713/* end confdefs.h. */ 20714#include <$ac_header> 20715_ACEOF 20716if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20718 ac_status=$? 20719 grep -v '^ *+' conftest.er1 >conftest.err 20720 rm -f conftest.er1 20721 cat conftest.err >&5 20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20723 (exit $ac_status); } >/dev/null; then 20724 if test -s conftest.err; then 20725 ac_cpp_err=$ac_c_preproc_warn_flag 20726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20727 else 20728 ac_cpp_err= 20729 fi 20730else 20731 ac_cpp_err=yes 20732fi 20733if test -z "$ac_cpp_err"; then 20734 ac_header_preproc=yes 20735else 20736 echo "$as_me: failed program was:" >&5 20737sed 's/^/| /' conftest.$ac_ext >&5 20738 20739 ac_header_preproc=no 20740fi 20741rm -f conftest.err conftest.$ac_ext 20742echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20743echo "${ECHO_T}$ac_header_preproc" >&6 20744 20745# So? What about this header? 20746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20747 yes:no: ) 20748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20751echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20752 ac_header_preproc=yes 20753 ;; 20754 no:yes:* ) 20755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20756echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20758echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20760echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20762echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20766echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20767 ( 20768 cat <<\_ASBOX 20769## ------------------------------------------ ## 20770## Report this to the AC_PACKAGE_NAME lists. ## 20771## ------------------------------------------ ## 20772_ASBOX 20773 ) | 20774 sed "s/^/$as_me: WARNING: /" >&2 20775 ;; 20776esac 20777echo "$as_me:$LINENO: checking for $ac_header" >&5 20778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20779if eval "test \"\${$as_ac_Header+set}\" = set"; then 20780 echo $ECHO_N "(cached) $ECHO_C" >&6 20781else 20782 eval "$as_ac_Header=\$ac_header_preproc" 20783fi 20784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20786 20787fi 20788if test `eval echo '${'$as_ac_Header'}'` = yes; then 20789 cat >>confdefs.h <<_ACEOF 20790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20791_ACEOF 20792 20793fi 20794 20795done 20796 20797EXTRA_INCLUDE_SYS_SELECT_H="#include <sys/select.h>" 20798if test ".$ac_cv_header_sys_select_h" != .yes; then 20799 EXTRA_INCLUDE_SYS_SELECT_H="/* $EXTRA_INCLUDE_SYS_SELECT_H */" 20800fi 20801 20802 20803echo "$as_me:$LINENO: checking for typedef sig_atomic_t" >&5 20804echo $ECHO_N "checking for typedef sig_atomic_t... $ECHO_C" >&6 20805if test "${ac_cv_typedef_sig_atomic_t+set}" = set; then 20806 echo $ECHO_N "(cached) $ECHO_C" >&6 20807else 20808 cat >conftest.$ac_ext <<_ACEOF 20809/* confdefs.h. */ 20810_ACEOF 20811cat confdefs.h >>conftest.$ac_ext 20812cat >>conftest.$ac_ext <<_ACEOF 20813/* end confdefs.h. */ 20814 20815#include <signal.h> 20816 20817_ACEOF 20818if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20819 $EGREP "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 20820 ac_cv_typedef_sig_atomic_t=yes 20821else 20822 ac_cv_typedef_sig_atomic_t=no 20823fi 20824rm -f conftest* 20825 20826fi 20827echo "$as_me:$LINENO: result: $ac_cv_typedef_sig_atomic_t" >&5 20828echo "${ECHO_T}$ac_cv_typedef_sig_atomic_t" >&6 20829if test $ac_cv_typedef_sig_atomic_t = yes; then 20830 20831cat >>confdefs.h <<\_ACEOF 20832#define HAVE_SIG_ATOMIC_T 1 20833_ACEOF 20834 20835fi 20836 20837FALLBACK_SIG_ATOMIC_T="typedef int sig_atomic_t;" 20838if test ".$ac_cv_typedef_sig_atomic_t" = .yes; then 20839 FALLBACK_SIG_ATOMIC_T="/* $FALLBACK_SIG_ATOMIC_T */" 20840fi 20841 20842 20843echo "$as_me:$LINENO: checking for typedef pid_t" >&5 20844echo $ECHO_N "checking for typedef pid_t... $ECHO_C" >&6 20845if test "${ac_cv_typedef_pid_t+set}" = set; then 20846 echo $ECHO_N "(cached) $ECHO_C" >&6 20847else 20848 cat >conftest.$ac_ext <<_ACEOF 20849/* confdefs.h. */ 20850_ACEOF 20851cat confdefs.h >>conftest.$ac_ext 20852cat >>conftest.$ac_ext <<_ACEOF 20853/* end confdefs.h. */ 20854 20855#include <sys/types.h> 20856 20857_ACEOF 20858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20859 $EGREP "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 20860 ac_cv_typedef_pid_t=yes 20861else 20862 ac_cv_typedef_pid_t=no 20863fi 20864rm -f conftest* 20865 20866fi 20867echo "$as_me:$LINENO: result: $ac_cv_typedef_pid_t" >&5 20868echo "${ECHO_T}$ac_cv_typedef_pid_t" >&6 20869if test $ac_cv_typedef_pid_t = yes; then 20870 20871cat >>confdefs.h <<\_ACEOF 20872#define HAVE_PID_T 1 20873_ACEOF 20874 20875fi 20876 20877FALLBACK_PID_T="typedef int pid_t;" 20878if test ".$ac_cv_typedef_pid_t" = .yes; then 20879 FALLBACK_PID_T="/* $FALLBACK_PID_T */" 20880fi 20881 20882 20883echo "$as_me:$LINENO: checking for typedef size_t" >&5 20884echo $ECHO_N "checking for typedef size_t... $ECHO_C" >&6 20885if test "${ac_cv_typedef_size_t+set}" = set; then 20886 echo $ECHO_N "(cached) $ECHO_C" >&6 20887else 20888 cat >conftest.$ac_ext <<_ACEOF 20889/* confdefs.h. */ 20890_ACEOF 20891cat confdefs.h >>conftest.$ac_ext 20892cat >>conftest.$ac_ext <<_ACEOF 20893/* end confdefs.h. */ 20894 20895#include <stdlib.h> 20896 20897_ACEOF 20898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20899 $EGREP "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 20900 ac_cv_typedef_size_t=yes 20901else 20902 ac_cv_typedef_size_t=no 20903fi 20904rm -f conftest* 20905 20906fi 20907echo "$as_me:$LINENO: result: $ac_cv_typedef_size_t" >&5 20908echo "${ECHO_T}$ac_cv_typedef_size_t" >&6 20909if test $ac_cv_typedef_size_t = yes; then 20910 20911cat >>confdefs.h <<\_ACEOF 20912#define HAVE_SIZE_T 1 20913_ACEOF 20914 20915fi 20916 20917FALLBACK_SIZE_T="typedef unsigned int size_t;" 20918if test ".$ac_cv_typedef_size_t" = .yes; then 20919 FALLBACK_SIZE_T="/* $FALLBACK_SIZE_T */" 20920fi 20921 20922 20923echo "$as_me:$LINENO: checking for typedef ssize_t" >&5 20924echo $ECHO_N "checking for typedef ssize_t... $ECHO_C" >&6 20925if test "${ac_cv_typedef_ssize_t+set}" = set; then 20926 echo $ECHO_N "(cached) $ECHO_C" >&6 20927else 20928 cat >conftest.$ac_ext <<_ACEOF 20929/* confdefs.h. */ 20930_ACEOF 20931cat confdefs.h >>conftest.$ac_ext 20932cat >>conftest.$ac_ext <<_ACEOF 20933/* end confdefs.h. */ 20934 20935#include <sys/types.h> 20936 20937_ACEOF 20938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20939 $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 20940 ac_cv_typedef_ssize_t=yes 20941else 20942 ac_cv_typedef_ssize_t=no 20943fi 20944rm -f conftest* 20945 20946fi 20947echo "$as_me:$LINENO: result: $ac_cv_typedef_ssize_t" >&5 20948echo "${ECHO_T}$ac_cv_typedef_ssize_t" >&6 20949if test $ac_cv_typedef_ssize_t = yes; then 20950 20951cat >>confdefs.h <<\_ACEOF 20952#define HAVE_SSIZE_T 1 20953_ACEOF 20954 20955fi 20956 20957FALLBACK_SSIZE_T="typedef unsigned int ssize_t;" 20958if test ".$ac_cv_typedef_ssize_t" = .yes; then 20959 FALLBACK_SSIZE_T="/* $FALLBACK_SSIZE_T */" 20960fi 20961 20962 20963echo "$as_me:$LINENO: checking for typedef off_t" >&5 20964echo $ECHO_N "checking for typedef off_t... $ECHO_C" >&6 20965if test "${ac_cv_typedef_off_t+set}" = set; then 20966 echo $ECHO_N "(cached) $ECHO_C" >&6 20967else 20968 cat >conftest.$ac_ext <<_ACEOF 20969/* confdefs.h. */ 20970_ACEOF 20971cat confdefs.h >>conftest.$ac_ext 20972cat >>conftest.$ac_ext <<_ACEOF 20973/* end confdefs.h. */ 20974 20975#include <sys/types.h> 20976 20977_ACEOF 20978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20979 $EGREP "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 20980 ac_cv_typedef_off_t=yes 20981else 20982 ac_cv_typedef_off_t=no 20983fi 20984rm -f conftest* 20985 20986fi 20987echo "$as_me:$LINENO: result: $ac_cv_typedef_off_t" >&5 20988echo "${ECHO_T}$ac_cv_typedef_off_t" >&6 20989if test $ac_cv_typedef_off_t = yes; then 20990 20991cat >>confdefs.h <<\_ACEOF 20992#define HAVE_OFF_T 1 20993_ACEOF 20994 20995fi 20996 20997FALLBACK_OFF_T="typedef int off_t;" 20998if test ".$ac_cv_typedef_off_t" = .yes; then 20999 FALLBACK_OFF_T="/* $FALLBACK_OFF_T */" 21000fi 21001 21002 21003echo "$as_me:$LINENO: checking for typedef stack_t" >&5 21004echo $ECHO_N "checking for typedef stack_t... $ECHO_C" >&6 21005if test "${ac_cv_typedef_stack_t+set}" = set; then 21006 echo $ECHO_N "(cached) $ECHO_C" >&6 21007else 21008 cat >conftest.$ac_ext <<_ACEOF 21009/* confdefs.h. */ 21010_ACEOF 21011cat confdefs.h >>conftest.$ac_ext 21012cat >>conftest.$ac_ext <<_ACEOF 21013/* end confdefs.h. */ 21014 21015#include <signal.h> 21016 21017_ACEOF 21018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21019 $EGREP "(^|[^a-zA-Z_0-9])stack_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 21020 ac_cv_typedef_stack_t=yes 21021else 21022 ac_cv_typedef_stack_t=no 21023fi 21024rm -f conftest* 21025 21026fi 21027echo "$as_me:$LINENO: result: $ac_cv_typedef_stack_t" >&5 21028echo "${ECHO_T}$ac_cv_typedef_stack_t" >&6 21029if test $ac_cv_typedef_stack_t = yes; then 21030 21031cat >>confdefs.h <<\_ACEOF 21032#define HAVE_STACK_T 1 21033_ACEOF 21034 21035fi 21036 21037 21038echo "$as_me:$LINENO: checking for attribute ss_base in struct sigaltstack from sys/signal.h" >&5 21039echo $ECHO_N "checking for attribute ss_base in struct sigaltstack from sys/signal.h... $ECHO_C" >&6 21040if test "${ac_cv_structattr_ss_base+set}" = set; then 21041 echo $ECHO_N "(cached) $ECHO_C" >&6 21042else 21043 cat >conftest.$ac_ext <<_ACEOF 21044/* confdefs.h. */ 21045_ACEOF 21046cat confdefs.h >>conftest.$ac_ext 21047cat >>conftest.$ac_ext <<_ACEOF 21048/* end confdefs.h. */ 21049 21050#include <sys/types.h> 21051#include <sys/signal.h> 21052 21053int 21054main () 21055{ 21056 21057struct sigaltstack *sp1; 21058struct sigaltstack *sp2; 21059sp1->ss_base = sp2->ss_base; 21060 21061 ; 21062 return 0; 21063} 21064_ACEOF 21065rm -f conftest.$ac_objext conftest$ac_exeext 21066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21067 (eval $ac_link) 2>conftest.er1 21068 ac_status=$? 21069 grep -v '^ *+' conftest.er1 >conftest.err 21070 rm -f conftest.er1 21071 cat conftest.err >&5 21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21073 (exit $ac_status); } && 21074 { ac_try='test -z "$ac_c_werror_flag" 21075 || test ! -s conftest.err' 21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21077 (eval $ac_try) 2>&5 21078 ac_status=$? 21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21080 (exit $ac_status); }; } && 21081 { ac_try='test -s conftest$ac_exeext' 21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21083 (eval $ac_try) 2>&5 21084 ac_status=$? 21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21086 (exit $ac_status); }; }; then 21087 ac_cv_structattr_ss_base=yes 21088else 21089 echo "$as_me: failed program was:" >&5 21090sed 's/^/| /' conftest.$ac_ext >&5 21091 21092ac_cv_structattr_ss_base=no 21093fi 21094rm -f conftest.err conftest.$ac_objext \ 21095 conftest$ac_exeext conftest.$ac_ext 21096fi 21097echo "$as_me:$LINENO: result: $ac_cv_structattr_ss_base" >&5 21098echo "${ECHO_T}$ac_cv_structattr_ss_base" >&6 21099if test $ac_cv_structattr_ss_base = yes; then 21100 21101cat >>confdefs.h <<\_ACEOF 21102#define HAVE_SS_BASE 1 21103_ACEOF 21104 21105fi 21106 21107echo "$as_me:$LINENO: checking for attribute ss_sp in struct sigaltstack from sys/signal.h" >&5 21108echo $ECHO_N "checking for attribute ss_sp in struct sigaltstack from sys/signal.h... $ECHO_C" >&6 21109if test "${ac_cv_structattr_ss_sp+set}" = set; then 21110 echo $ECHO_N "(cached) $ECHO_C" >&6 21111else 21112 cat >conftest.$ac_ext <<_ACEOF 21113/* confdefs.h. */ 21114_ACEOF 21115cat confdefs.h >>conftest.$ac_ext 21116cat >>conftest.$ac_ext <<_ACEOF 21117/* end confdefs.h. */ 21118 21119#include <sys/types.h> 21120#include <sys/signal.h> 21121 21122int 21123main () 21124{ 21125 21126struct sigaltstack *sp1; 21127struct sigaltstack *sp2; 21128sp1->ss_sp = sp2->ss_sp; 21129 21130 ; 21131 return 0; 21132} 21133_ACEOF 21134rm -f conftest.$ac_objext conftest$ac_exeext 21135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21136 (eval $ac_link) 2>conftest.er1 21137 ac_status=$? 21138 grep -v '^ *+' conftest.er1 >conftest.err 21139 rm -f conftest.er1 21140 cat conftest.err >&5 21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21142 (exit $ac_status); } && 21143 { ac_try='test -z "$ac_c_werror_flag" 21144 || test ! -s conftest.err' 21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21146 (eval $ac_try) 2>&5 21147 ac_status=$? 21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21149 (exit $ac_status); }; } && 21150 { ac_try='test -s conftest$ac_exeext' 21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21152 (eval $ac_try) 2>&5 21153 ac_status=$? 21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21155 (exit $ac_status); }; }; then 21156 ac_cv_structattr_ss_sp=yes 21157else 21158 echo "$as_me: failed program was:" >&5 21159sed 's/^/| /' conftest.$ac_ext >&5 21160 21161ac_cv_structattr_ss_sp=no 21162fi 21163rm -f conftest.err conftest.$ac_objext \ 21164 conftest$ac_exeext conftest.$ac_ext 21165fi 21166echo "$as_me:$LINENO: result: $ac_cv_structattr_ss_sp" >&5 21167echo "${ECHO_T}$ac_cv_structattr_ss_sp" >&6 21168if test $ac_cv_structattr_ss_sp = yes; then 21169 21170cat >>confdefs.h <<\_ACEOF 21171#define HAVE_SS_SP 1 21172_ACEOF 21173 21174fi 21175 21176 21177echo "$as_me:$LINENO: checking for a single-argument based gettimeofday" >&5 21178echo $ECHO_N "checking for a single-argument based gettimeofday... $ECHO_C" >&6 21179cross_compile=no 21180cat >conftest.$ac_ext <<_ACEOF 21181/* confdefs.h. */ 21182_ACEOF 21183cat confdefs.h >>conftest.$ac_ext 21184cat >>conftest.$ac_ext <<_ACEOF 21185/* end confdefs.h. */ 21186 21187#include <sys/types.h> 21188#include <sys/time.h> 21189#include <unistd.h> 21190 21191int 21192main () 21193{ 21194 21195struct timeval tv; 21196(void)gettimeofday(&tv); 21197 21198 ; 21199 return 0; 21200} 21201_ACEOF 21202rm -f conftest.$ac_objext 21203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21204 (eval $ac_compile) 2>conftest.er1 21205 ac_status=$? 21206 grep -v '^ *+' conftest.er1 >conftest.err 21207 rm -f conftest.er1 21208 cat conftest.err >&5 21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21210 (exit $ac_status); } && 21211 { ac_try='test -z "$ac_c_werror_flag" 21212 || test ! -s conftest.err' 21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21214 (eval $ac_try) 2>&5 21215 ac_status=$? 21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21217 (exit $ac_status); }; } && 21218 { ac_try='test -s conftest.$ac_objext' 21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21220 (eval $ac_try) 2>&5 21221 ac_status=$? 21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21223 (exit $ac_status); }; }; then 21224 msg="yes" 21225 21226else 21227 echo "$as_me: failed program was:" >&5 21228sed 's/^/| /' conftest.$ac_ext >&5 21229 21230msg="no" 21231 21232fi 21233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21234case $PLATFORM in 21235 *-*-aix4* ) msg="no" ;; # on AIX the compiler test doesn't work 21236 *-*-isc* ) msg="no" ;; # on ISC the compiler test doesn't work 21237esac 21238if test ".$msg" = .yes; then 21239 21240cat >>confdefs.h <<\_ACEOF 21241#define HAVE_GETTIMEOFDAY_ARGS1 1 21242_ACEOF 21243 21244fi 21245echo "$as_me:$LINENO: result: $msg" >&5 21246echo "${ECHO_T}$msg" >&6 21247 21248echo "$as_me:$LINENO: checking for struct timespec" >&5 21249echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6 21250cross_compile=no 21251cat >conftest.$ac_ext <<_ACEOF 21252/* confdefs.h. */ 21253_ACEOF 21254cat confdefs.h >>conftest.$ac_ext 21255cat >>conftest.$ac_ext <<_ACEOF 21256/* end confdefs.h. */ 21257 21258#include <time.h> 21259#include <sys/time.h> 21260 21261int 21262main () 21263{ 21264 21265struct timespec ts; 21266 21267 ; 21268 return 0; 21269} 21270_ACEOF 21271rm -f conftest.$ac_objext 21272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21273 (eval $ac_compile) 2>conftest.er1 21274 ac_status=$? 21275 grep -v '^ *+' conftest.er1 >conftest.err 21276 rm -f conftest.er1 21277 cat conftest.err >&5 21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21279 (exit $ac_status); } && 21280 { ac_try='test -z "$ac_c_werror_flag" 21281 || test ! -s conftest.err' 21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21283 (eval $ac_try) 2>&5 21284 ac_status=$? 21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21286 (exit $ac_status); }; } && 21287 { ac_try='test -s conftest.$ac_objext' 21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21289 (eval $ac_try) 2>&5 21290 ac_status=$? 21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21292 (exit $ac_status); }; }; then 21293 msg="yes" 21294 21295else 21296 echo "$as_me: failed program was:" >&5 21297sed 's/^/| /' conftest.$ac_ext >&5 21298 21299msg="no" 21300 21301fi 21302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21303if test ".$msg" = .yes; then 21304 21305cat >>confdefs.h <<\_ACEOF 21306#define HAVE_STRUCT_TIMESPEC 1 21307_ACEOF 21308 21309fi 21310echo "$as_me:$LINENO: result: $msg" >&5 21311echo "${ECHO_T}$msg" >&6 21312 21313echo "$as_me:$LINENO: checking for typedef socklen_t" >&5 21314echo $ECHO_N "checking for typedef socklen_t... $ECHO_C" >&6 21315if test "${ac_cv_typedef_socklen_t+set}" = set; then 21316 echo $ECHO_N "(cached) $ECHO_C" >&6 21317else 21318 cat >conftest.$ac_ext <<_ACEOF 21319/* confdefs.h. */ 21320_ACEOF 21321cat confdefs.h >>conftest.$ac_ext 21322cat >>conftest.$ac_ext <<_ACEOF 21323/* end confdefs.h. */ 21324 21325#include <sys/socket.h> 21326 21327_ACEOF 21328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21329 $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 21330 ac_cv_typedef_socklen_t=yes 21331else 21332 ac_cv_typedef_socklen_t=no 21333fi 21334rm -f conftest* 21335 21336fi 21337echo "$as_me:$LINENO: result: $ac_cv_typedef_socklen_t" >&5 21338echo "${ECHO_T}$ac_cv_typedef_socklen_t" >&6 21339if test $ac_cv_typedef_socklen_t = yes; then 21340 21341cat >>confdefs.h <<\_ACEOF 21342#define HAVE_SOCKLEN_T 1 21343_ACEOF 21344 21345fi 21346 21347echo "$as_me:$LINENO: checking for type of argument 3 for accept()" >&5 21348echo $ECHO_N "checking for type of argument 3 for accept()... $ECHO_C" >&6 21349if test "${ac_cv_argtype_accept3+set}" = set; then 21350 echo $ECHO_N "(cached) $ECHO_C" >&6 21351else 21352 21353cat >conftest.$ac_ext <<EOF 21354#line 21354 "configure" 21355#include "confdefs.h" 21356EOF 21357for ifile in sys/types.h sys/socket.h; do 21358 echo "#include <$ifile>" >>conftest.$ac_ext 21359done 21360gpat='' 21361spat='' 21362i=1 21363while test $i -le 3; do 21364 gpat="$gpat[^,]*" 21365 if test $i -eq 3; then 21366 spat="$spat\\([^,]*\\)" 21367 else 21368 spat="$spat[^,]*" 21369 fi 21370 if test $i -lt 3; then 21371 gpat="$gpat," 21372 spat="$spat," 21373 fi 21374 i=`expr $i + 1` 21375done 21376(eval "$ac_cpp conftest.$ac_ext") 2>&5 |\ 21377sed -e ':join' \ 21378 -e '/,[ ]*$/N' \ 21379 -e 's/,[ ]*\n[ ]*/, /' \ 21380 -e 'tjoin' |\ 21381egrep "[^a-zA-Z0-9_]accept[ ]*\\($gpat\\)" | head -1 |\ 21382sed -e "s/.*[^a-zA-Z0-9_]accept[ ]*($spat).*/\\1/" \ 21383 -e 's/(\*[a-zA-Z_][a-zA-Z_0-9]*)/(*)/' \ 21384 -e 's/^[ ]*//' -e 's/[ ]*$//' \ 21385 -e 's/^/arg:/' \ 21386 -e 's/^arg:\([^ ]*\)$/type:\1/' \ 21387 -e 's/^arg:\(.*_t\)*$/type:\1/' \ 21388 -e 's/^arg:\(.*\*\)$/type:\1/' \ 21389 -e 's/^arg:\(.*[ ]\*\)[_a-zA-Z][_a-zA-Z0-9]*$/type:\1/' \ 21390 -e 's/^arg:\(.*[ ]char\)$/type:\1/' \ 21391 -e 's/^arg:\(.*[ ]short\)$/type:\1/' \ 21392 -e 's/^arg:\(.*[ ]int\)$/type:\1/' \ 21393 -e 's/^arg:\(.*[ ]long\)$/type:\1/' \ 21394 -e 's/^arg:\(.*[ ]float\)$/type:\1/' \ 21395 -e 's/^arg:\(.*[ ]double\)$/type:\1/' \ 21396 -e 's/^arg:\(.*[ ]unsigned\)$/type:\1/' \ 21397 -e 's/^arg:\(.*[ ]signed\)$/type:\1/' \ 21398 -e 's/^arg:\(.*struct[ ][_a-zA-Z][_a-zA-Z0-9]*\)$/type:\1/' \ 21399 -e 's/^arg:\(.*\)[ ]_[_a-zA-Z0-9]*$/type:\1/' \ 21400 -e 's/^arg:\(.*\)[ ]\([^ ]*\)$/type:\1/' \ 21401 -e 's/^type://' >conftest.output 21402ac_cv_argtype_accept3=`cat conftest.output` 21403rm -f conftest* 21404 21405fi 21406 21407echo "$as_me:$LINENO: result: $ac_cv_argtype_accept3" >&5 21408echo "${ECHO_T}$ac_cv_argtype_accept3" >&6 21409ac_type="$ac_cv_argtype_accept3" 21410: 21411 21412echo "$as_me:$LINENO: checking for fallback socklen_t" >&5 21413echo $ECHO_N "checking for fallback socklen_t... $ECHO_C" >&6 21414if test "${ac_cv_check_socklentype+set}" = set; then 21415 echo $ECHO_N "(cached) $ECHO_C" >&6 21416else 21417 21418if test ".$ac_cv_typedef_socklen_t" = .yes; then 21419 ac_cv_check_socklentype='socklen_t' 21420elif test ".$ac_type" != .; then 21421 ac_cv_check_socklentype=`echo "$ac_type" | sed -e 's/ *\*$//'` 21422else 21423 ac_cv_check_socklentype='int' 21424fi 21425 21426fi 21427 21428echo "$as_me:$LINENO: result: $ac_cv_check_socklentype" >&5 21429echo "${ECHO_T}$ac_cv_check_socklentype" >&6 21430ac_type="$ac_cv_check_socklentype" 21431 21432FALLBACK_SOCKLEN_T="typedef ${ac_type} socklen_t;" 21433if test ".$ac_type" = ".socklen_t"; then 21434 FALLBACK_SOCKLEN_T="/* $FALLBACK_SOCKLEN_T */" 21435fi 21436 21437 21438 21439 21440echo "$as_me:$LINENO: checking for typedef nfds_t" >&5 21441echo $ECHO_N "checking for typedef nfds_t... $ECHO_C" >&6 21442if test "${ac_cv_typedef_nfds_t+set}" = set; then 21443 echo $ECHO_N "(cached) $ECHO_C" >&6 21444else 21445 cat >conftest.$ac_ext <<_ACEOF 21446/* confdefs.h. */ 21447_ACEOF 21448cat confdefs.h >>conftest.$ac_ext 21449cat >>conftest.$ac_ext <<_ACEOF 21450/* end confdefs.h. */ 21451 21452#include <poll.h> 21453 21454_ACEOF 21455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21456 $EGREP "(^|[^a-zA-Z_0-9])nfds_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 21457 ac_cv_typedef_nfds_t=yes 21458else 21459 ac_cv_typedef_nfds_t=no 21460fi 21461rm -f conftest* 21462 21463fi 21464echo "$as_me:$LINENO: result: $ac_cv_typedef_nfds_t" >&5 21465echo "${ECHO_T}$ac_cv_typedef_nfds_t" >&6 21466if test $ac_cv_typedef_nfds_t = yes; then 21467 21468cat >>confdefs.h <<\_ACEOF 21469#define HAVE_NFDS_T 1 21470_ACEOF 21471 21472fi 21473 21474echo "$as_me:$LINENO: checking for type of argument 2 for poll()" >&5 21475echo $ECHO_N "checking for type of argument 2 for poll()... $ECHO_C" >&6 21476if test "${ac_cv_argtype_poll2+set}" = set; then 21477 echo $ECHO_N "(cached) $ECHO_C" >&6 21478else 21479 21480cat >conftest.$ac_ext <<EOF 21481#line 21481 "configure" 21482#include "confdefs.h" 21483EOF 21484for ifile in sys/types.h poll.h; do 21485 echo "#include <$ifile>" >>conftest.$ac_ext 21486done 21487gpat='' 21488spat='' 21489i=1 21490while test $i -le 3; do 21491 gpat="$gpat[^,]*" 21492 if test $i -eq 2; then 21493 spat="$spat\\([^,]*\\)" 21494 else 21495 spat="$spat[^,]*" 21496 fi 21497 if test $i -lt 3; then 21498 gpat="$gpat," 21499 spat="$spat," 21500 fi 21501 i=`expr $i + 1` 21502done 21503(eval "$ac_cpp conftest.$ac_ext") 2>&5 |\ 21504sed -e ':join' \ 21505 -e '/,[ ]*$/N' \ 21506 -e 's/,[ ]*\n[ ]*/, /' \ 21507 -e 'tjoin' |\ 21508egrep "[^a-zA-Z0-9_]poll[ ]*\\($gpat\\)" | head -1 |\ 21509sed -e "s/.*[^a-zA-Z0-9_]poll[ ]*($spat).*/\\1/" \ 21510 -e 's/(\*[a-zA-Z_][a-zA-Z_0-9]*)/(*)/' \ 21511 -e 's/^[ ]*//' -e 's/[ ]*$//' \ 21512 -e 's/^/arg:/' \ 21513 -e 's/^arg:\([^ ]*\)$/type:\1/' \ 21514 -e 's/^arg:\(.*_t\)*$/type:\1/' \ 21515 -e 's/^arg:\(.*\*\)$/type:\1/' \ 21516 -e 's/^arg:\(.*[ ]\*\)[_a-zA-Z][_a-zA-Z0-9]*$/type:\1/' \ 21517 -e 's/^arg:\(.*[ ]char\)$/type:\1/' \ 21518 -e 's/^arg:\(.*[ ]short\)$/type:\1/' \ 21519 -e 's/^arg:\(.*[ ]int\)$/type:\1/' \ 21520 -e 's/^arg:\(.*[ ]long\)$/type:\1/' \ 21521 -e 's/^arg:\(.*[ ]float\)$/type:\1/' \ 21522 -e 's/^arg:\(.*[ ]double\)$/type:\1/' \ 21523 -e 's/^arg:\(.*[ ]unsigned\)$/type:\1/' \ 21524 -e 's/^arg:\(.*[ ]signed\)$/type:\1/' \ 21525 -e 's/^arg:\(.*struct[ ][_a-zA-Z][_a-zA-Z0-9]*\)$/type:\1/' \ 21526 -e 's/^arg:\(.*\)[ ]_[_a-zA-Z0-9]*$/type:\1/' \ 21527 -e 's/^arg:\(.*\)[ ]\([^ ]*\)$/type:\1/' \ 21528 -e 's/^type://' >conftest.output 21529ac_cv_argtype_poll2=`cat conftest.output` 21530rm -f conftest* 21531 21532fi 21533 21534echo "$as_me:$LINENO: result: $ac_cv_argtype_poll2" >&5 21535echo "${ECHO_T}$ac_cv_argtype_poll2" >&6 21536ac_type="$ac_cv_argtype_poll2" 21537: 21538 21539echo "$as_me:$LINENO: checking for fallback nfds_t" >&5 21540echo $ECHO_N "checking for fallback nfds_t... $ECHO_C" >&6 21541if test "${ac_cv_check_nfdstype+set}" = set; then 21542 echo $ECHO_N "(cached) $ECHO_C" >&6 21543else 21544 21545if test ".$ac_cv_typedef_nfds_t" = .yes; then 21546 ac_cv_check_nfdstype='nfds_t' 21547elif test ".$ac_type" != .; then 21548 ac_cv_check_nfdstype=`echo "$ac_type" | sed -e 's/ *\*$//'` 21549else 21550 ac_cv_check_nfdstype='unsigned int' 21551fi 21552 21553fi 21554 21555echo "$as_me:$LINENO: result: $ac_cv_check_nfdstype" >&5 21556echo "${ECHO_T}$ac_cv_check_nfdstype" >&6 21557ac_type="$ac_cv_check_nfdstype" 21558 21559FALLBACK_NFDS_T="typedef ${ac_type} nfds_t;" 21560if test ".$ac_type" = ".nfds_t"; then 21561 FALLBACK_NFDS_T="/* $FALLBACK_NFDS_T */" 21562fi 21563 21564 21565 21566 21567echo "$as_me:$LINENO: checking for built-in type long long" >&5 21568echo $ECHO_N "checking for built-in type long long... $ECHO_C" >&6 21569 if test "${ac_cv_type_longlong+set}" = set; then 21570 echo $ECHO_N "(cached) $ECHO_C" >&6 21571else 21572 cat >conftest.$ac_ext <<_ACEOF 21573/* confdefs.h. */ 21574_ACEOF 21575cat confdefs.h >>conftest.$ac_ext 21576cat >>conftest.$ac_ext <<_ACEOF 21577/* end confdefs.h. */ 21578 21579#include <sys/types.h> 21580 21581int 21582main () 21583{ 21584 21585 long long X = 2, Y = 1, Z; 21586 Z = X / Y; 21587 21588 ; 21589 return 0; 21590} 21591_ACEOF 21592rm -f conftest.$ac_objext conftest$ac_exeext 21593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21594 (eval $ac_link) 2>conftest.er1 21595 ac_status=$? 21596 grep -v '^ *+' conftest.er1 >conftest.err 21597 rm -f conftest.er1 21598 cat conftest.err >&5 21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21600 (exit $ac_status); } && 21601 { ac_try='test -z "$ac_c_werror_flag" 21602 || test ! -s conftest.err' 21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21604 (eval $ac_try) 2>&5 21605 ac_status=$? 21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21607 (exit $ac_status); }; } && 21608 { ac_try='test -s conftest$ac_exeext' 21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21610 (eval $ac_try) 2>&5 21611 ac_status=$? 21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21613 (exit $ac_status); }; }; then 21614 ac_cv_type_longlong=yes 21615else 21616 echo "$as_me: failed program was:" >&5 21617sed 's/^/| /' conftest.$ac_ext >&5 21618 21619ac_cv_type_longlong=no 21620 21621fi 21622rm -f conftest.err conftest.$ac_objext \ 21623 conftest$ac_exeext conftest.$ac_ext 21624fi 21625echo "$as_me:$LINENO: result: $ac_cv_type_longlong" >&5 21626echo "${ECHO_T}$ac_cv_type_longlong" >&6 21627if test ".$ac_cv_type_longlong" = .yes; then 21628 21629cat >>confdefs.h <<\_ACEOF 21630#define HAVE_LONGLONG 1 21631_ACEOF 21632 21633fi 21634 21635echo "$as_me:$LINENO: checking for built-in type long double" >&5 21636echo $ECHO_N "checking for built-in type long double... $ECHO_C" >&6 21637 if test "${ac_cv_type_longdouble+set}" = set; then 21638 echo $ECHO_N "(cached) $ECHO_C" >&6 21639else 21640 cat >conftest.$ac_ext <<_ACEOF 21641/* confdefs.h. */ 21642_ACEOF 21643cat confdefs.h >>conftest.$ac_ext 21644cat >>conftest.$ac_ext <<_ACEOF 21645/* end confdefs.h. */ 21646 21647#include <sys/types.h> 21648 21649int 21650main () 21651{ 21652 21653 long double X = 2, Y = 1, Z; 21654 Z = X / Y; 21655 21656 ; 21657 return 0; 21658} 21659_ACEOF 21660rm -f conftest.$ac_objext conftest$ac_exeext 21661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21662 (eval $ac_link) 2>conftest.er1 21663 ac_status=$? 21664 grep -v '^ *+' conftest.er1 >conftest.err 21665 rm -f conftest.er1 21666 cat conftest.err >&5 21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21668 (exit $ac_status); } && 21669 { ac_try='test -z "$ac_c_werror_flag" 21670 || test ! -s conftest.err' 21671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21672 (eval $ac_try) 2>&5 21673 ac_status=$? 21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21675 (exit $ac_status); }; } && 21676 { ac_try='test -s conftest$ac_exeext' 21677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21678 (eval $ac_try) 2>&5 21679 ac_status=$? 21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21681 (exit $ac_status); }; }; then 21682 ac_cv_type_longdouble=yes 21683else 21684 echo "$as_me: failed program was:" >&5 21685sed 's/^/| /' conftest.$ac_ext >&5 21686 21687ac_cv_type_longdouble=no 21688 21689fi 21690rm -f conftest.err conftest.$ac_objext \ 21691 conftest$ac_exeext conftest.$ac_ext 21692fi 21693echo "$as_me:$LINENO: result: $ac_cv_type_longdouble" >&5 21694echo "${ECHO_T}$ac_cv_type_longdouble" >&6 21695if test ".$ac_cv_type_longdouble" = .yes; then 21696 21697cat >>confdefs.h <<\_ACEOF 21698#define HAVE_LONGDOUBLE 1 21699_ACEOF 21700 21701fi 21702 21703 21704 21705if test ".$enable_subdir" != .yes; then 21706 echo "$as_me:$LINENO: result: " >&5 21707echo "${ECHO_T}" >&6 21708 echo "$as_me:$LINENO: result: ${TB}Machine Context Implementation:${TN}" >&5 21709echo "${ECHO_T}${TB}Machine Context Implementation:${TN}" >&6 21710fi 21711 21712 21713 21714echo "$as_me:$LINENO: checking for ucontext.h" >&5 21715echo $ECHO_N "checking for ucontext.h... $ECHO_C" >&6 21716if test "${ac_cv_header_ucontext_h+set}" = set; then 21717 echo $ECHO_N "(cached) $ECHO_C" >&6 21718else 21719 cat >conftest.$ac_ext <<_ACEOF 21720/* confdefs.h. */ 21721_ACEOF 21722cat confdefs.h >>conftest.$ac_ext 21723cat >>conftest.$ac_ext <<_ACEOF 21724/* end confdefs.h. */ 21725#include <sys/types.h> 21726 21727#include <ucontext.h> 21728_ACEOF 21729rm -f conftest.$ac_objext 21730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21731 (eval $ac_compile) 2>conftest.er1 21732 ac_status=$? 21733 grep -v '^ *+' conftest.er1 >conftest.err 21734 rm -f conftest.er1 21735 cat conftest.err >&5 21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21737 (exit $ac_status); } && 21738 { ac_try='test -z "$ac_c_werror_flag" 21739 || test ! -s conftest.err' 21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21741 (eval $ac_try) 2>&5 21742 ac_status=$? 21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21744 (exit $ac_status); }; } && 21745 { ac_try='test -s conftest.$ac_objext' 21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21747 (eval $ac_try) 2>&5 21748 ac_status=$? 21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21750 (exit $ac_status); }; }; then 21751 ac_cv_header_ucontext_h=yes 21752else 21753 echo "$as_me: failed program was:" >&5 21754sed 's/^/| /' conftest.$ac_ext >&5 21755 21756ac_cv_header_ucontext_h=no 21757fi 21758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21759fi 21760echo "$as_me:$LINENO: result: $ac_cv_header_ucontext_h" >&5 21761echo "${ECHO_T}$ac_cv_header_ucontext_h" >&6 21762 21763 21764 21765 21766 21767 21768for ac_func in makecontext swapcontext getcontext setcontext 21769do 21770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21771echo "$as_me:$LINENO: checking for $ac_func" >&5 21772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21773if eval "test \"\${$as_ac_var+set}\" = set"; then 21774 echo $ECHO_N "(cached) $ECHO_C" >&6 21775else 21776 cat >conftest.$ac_ext <<_ACEOF 21777/* confdefs.h. */ 21778_ACEOF 21779cat confdefs.h >>conftest.$ac_ext 21780cat >>conftest.$ac_ext <<_ACEOF 21781/* end confdefs.h. */ 21782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21783 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21784#define $ac_func innocuous_$ac_func 21785 21786/* System header to define __stub macros and hopefully few prototypes, 21787 which can conflict with char $ac_func (); below. 21788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21789 <limits.h> exists even on freestanding compilers. */ 21790 21791#ifdef __STDC__ 21792# include <limits.h> 21793#else 21794# include <assert.h> 21795#endif 21796 21797#undef $ac_func 21798 21799/* Override any gcc2 internal prototype to avoid an error. */ 21800#ifdef __cplusplus 21801extern "C" 21802{ 21803#endif 21804/* We use char because int might match the return type of a gcc2 21805 builtin and then its argument prototype would still apply. */ 21806char $ac_func (); 21807/* The GNU C library defines this for functions which it implements 21808 to always fail with ENOSYS. Some functions are actually named 21809 something starting with __ and the normal name is an alias. */ 21810#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21811choke me 21812#else 21813char (*f) () = $ac_func; 21814#endif 21815#ifdef __cplusplus 21816} 21817#endif 21818 21819int 21820main () 21821{ 21822return f != $ac_func; 21823 ; 21824 return 0; 21825} 21826_ACEOF 21827rm -f conftest.$ac_objext conftest$ac_exeext 21828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21829 (eval $ac_link) 2>conftest.er1 21830 ac_status=$? 21831 grep -v '^ *+' conftest.er1 >conftest.err 21832 rm -f conftest.er1 21833 cat conftest.err >&5 21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21835 (exit $ac_status); } && 21836 { ac_try='test -z "$ac_c_werror_flag" 21837 || test ! -s conftest.err' 21838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21839 (eval $ac_try) 2>&5 21840 ac_status=$? 21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21842 (exit $ac_status); }; } && 21843 { ac_try='test -s conftest$ac_exeext' 21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21845 (eval $ac_try) 2>&5 21846 ac_status=$? 21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21848 (exit $ac_status); }; }; then 21849 eval "$as_ac_var=yes" 21850else 21851 echo "$as_me: failed program was:" >&5 21852sed 's/^/| /' conftest.$ac_ext >&5 21853 21854eval "$as_ac_var=no" 21855fi 21856rm -f conftest.err conftest.$ac_objext \ 21857 conftest$ac_exeext conftest.$ac_ext 21858fi 21859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21861if test `eval echo '${'$as_ac_var'}'` = yes; then 21862 cat >>confdefs.h <<_ACEOF 21863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21864_ACEOF 21865 21866fi 21867done 21868 21869 21870echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5 21871echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6 21872if test "${ac_cv_check_mcsc+set}" = set; then 21873 echo $ECHO_N "(cached) $ECHO_C" >&6 21874else 21875 21876if test "$cross_compiling" = yes; then 21877 ac_cv_check_mcsc=no 21878 21879else 21880 cat >conftest.$ac_ext <<_ACEOF 21881/* confdefs.h. */ 21882_ACEOF 21883cat confdefs.h >>conftest.$ac_ext 21884cat >>conftest.$ac_ext <<_ACEOF 21885/* end confdefs.h. */ 21886 21887 21888#include <stdio.h> 21889#include <stdlib.h> 21890#include <ucontext.h> 21891 21892ucontext_t uc_child; 21893ucontext_t uc_main; 21894 21895void child(void *arg) 21896{ 21897 if (arg != (void *)12345) 21898 exit(1); 21899 if (swapcontext(&uc_child, &uc_main) != 0) 21900 exit(1); 21901} 21902 21903int main(int argc, char *argv[]) 21904{ 21905 FILE *fp; 21906 void *stack; 21907 21908 /* the default is that it fails */ 21909 if ((fp = fopen("conftestval", "w")) == NULL) 21910 exit(1); 21911 fprintf(fp, "no\n"); 21912 fclose(fp); 21913 21914 /* configure a child user-space context */ 21915 if ((stack = malloc(64*1024)) == NULL) 21916 exit(1); 21917 if (getcontext(&uc_child) != 0) 21918 exit(1); 21919 uc_child.uc_link = NULL; 21920 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024); 21921 uc_child.uc_stack.ss_size = 32*1024; 21922 uc_child.uc_stack.ss_flags = 0; 21923 makecontext(&uc_child, child, 2, (void *)12345); 21924 21925 /* switch into the user context */ 21926 if (swapcontext(&uc_main, &uc_child) != 0) 21927 exit(1); 21928 21929 /* Fine, child came home */ 21930 if ((fp = fopen("conftestval", "w")) == NULL) 21931 exit(1); 21932 fprintf(fp, "yes\n"); 21933 fclose(fp); 21934 21935 /* die successfully */ 21936 exit(0); 21937} 21938 21939_ACEOF 21940rm -f conftest$ac_exeext 21941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21942 (eval $ac_link) 2>&5 21943 ac_status=$? 21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21947 (eval $ac_try) 2>&5 21948 ac_status=$? 21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21950 (exit $ac_status); }; }; then 21951 ac_cv_check_mcsc=`cat conftestval` 21952else 21953 echo "$as_me: program exited with status $ac_status" >&5 21954echo "$as_me: failed program was:" >&5 21955sed 's/^/| /' conftest.$ac_ext >&5 21956 21957( exit $ac_status ) 21958ac_cv_check_mcsc=no 21959fi 21960rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21961fi 21962fi 21963echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5 21964echo "${ECHO_T}$ac_cv_check_mcsc" >&6 21965if test ".$ac_cv_check_mcsc" = .yes; then 21966 mcsc=yes 21967else 21968 mcsc=no 21969fi 21970 21971 21972 21973for ac_header in signal.h 21974do 21975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21976if eval "test \"\${$as_ac_Header+set}\" = set"; then 21977 echo "$as_me:$LINENO: checking for $ac_header" >&5 21978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21979if eval "test \"\${$as_ac_Header+set}\" = set"; then 21980 echo $ECHO_N "(cached) $ECHO_C" >&6 21981fi 21982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21984else 21985 # Is the header compilable? 21986echo "$as_me:$LINENO: checking $ac_header usability" >&5 21987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21988cat >conftest.$ac_ext <<_ACEOF 21989/* confdefs.h. */ 21990_ACEOF 21991cat confdefs.h >>conftest.$ac_ext 21992cat >>conftest.$ac_ext <<_ACEOF 21993/* end confdefs.h. */ 21994$ac_includes_default 21995#include <$ac_header> 21996_ACEOF 21997rm -f conftest.$ac_objext 21998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21999 (eval $ac_compile) 2>conftest.er1 22000 ac_status=$? 22001 grep -v '^ *+' conftest.er1 >conftest.err 22002 rm -f conftest.er1 22003 cat conftest.err >&5 22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22005 (exit $ac_status); } && 22006 { ac_try='test -z "$ac_c_werror_flag" 22007 || test ! -s conftest.err' 22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22009 (eval $ac_try) 2>&5 22010 ac_status=$? 22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22012 (exit $ac_status); }; } && 22013 { ac_try='test -s conftest.$ac_objext' 22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22015 (eval $ac_try) 2>&5 22016 ac_status=$? 22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22018 (exit $ac_status); }; }; then 22019 ac_header_compiler=yes 22020else 22021 echo "$as_me: failed program was:" >&5 22022sed 's/^/| /' conftest.$ac_ext >&5 22023 22024ac_header_compiler=no 22025fi 22026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22028echo "${ECHO_T}$ac_header_compiler" >&6 22029 22030# Is the header present? 22031echo "$as_me:$LINENO: checking $ac_header presence" >&5 22032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 22033cat >conftest.$ac_ext <<_ACEOF 22034/* confdefs.h. */ 22035_ACEOF 22036cat confdefs.h >>conftest.$ac_ext 22037cat >>conftest.$ac_ext <<_ACEOF 22038/* end confdefs.h. */ 22039#include <$ac_header> 22040_ACEOF 22041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 22042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 22043 ac_status=$? 22044 grep -v '^ *+' conftest.er1 >conftest.err 22045 rm -f conftest.er1 22046 cat conftest.err >&5 22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22048 (exit $ac_status); } >/dev/null; then 22049 if test -s conftest.err; then 22050 ac_cpp_err=$ac_c_preproc_warn_flag 22051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22052 else 22053 ac_cpp_err= 22054 fi 22055else 22056 ac_cpp_err=yes 22057fi 22058if test -z "$ac_cpp_err"; then 22059 ac_header_preproc=yes 22060else 22061 echo "$as_me: failed program was:" >&5 22062sed 's/^/| /' conftest.$ac_ext >&5 22063 22064 ac_header_preproc=no 22065fi 22066rm -f conftest.err conftest.$ac_ext 22067echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22068echo "${ECHO_T}$ac_header_preproc" >&6 22069 22070# So? What about this header? 22071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22072 yes:no: ) 22073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22077 ac_header_preproc=yes 22078 ;; 22079 no:yes:* ) 22080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22083echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22087echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22092 ( 22093 cat <<\_ASBOX 22094## ------------------------------------------ ## 22095## Report this to the AC_PACKAGE_NAME lists. ## 22096## ------------------------------------------ ## 22097_ASBOX 22098 ) | 22099 sed "s/^/$as_me: WARNING: /" >&2 22100 ;; 22101esac 22102echo "$as_me:$LINENO: checking for $ac_header" >&5 22103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22104if eval "test \"\${$as_ac_Header+set}\" = set"; then 22105 echo $ECHO_N "(cached) $ECHO_C" >&6 22106else 22107 eval "$as_ac_Header=\$ac_header_preproc" 22108fi 22109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22111 22112fi 22113if test `eval echo '${'$as_ac_Header'}'` = yes; then 22114 cat >>confdefs.h <<_ACEOF 22115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22116_ACEOF 22117 22118fi 22119 22120done 22121 22122 22123 22124 22125 22126 22127 22128for ac_func in sigsetjmp siglongjmp setjmp longjmp _setjmp _longjmp 22129do 22130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22131echo "$as_me:$LINENO: checking for $ac_func" >&5 22132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22133if eval "test \"\${$as_ac_var+set}\" = set"; then 22134 echo $ECHO_N "(cached) $ECHO_C" >&6 22135else 22136 cat >conftest.$ac_ext <<_ACEOF 22137/* confdefs.h. */ 22138_ACEOF 22139cat confdefs.h >>conftest.$ac_ext 22140cat >>conftest.$ac_ext <<_ACEOF 22141/* end confdefs.h. */ 22142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22143 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22144#define $ac_func innocuous_$ac_func 22145 22146/* System header to define __stub macros and hopefully few prototypes, 22147 which can conflict with char $ac_func (); below. 22148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22149 <limits.h> exists even on freestanding compilers. */ 22150 22151#ifdef __STDC__ 22152# include <limits.h> 22153#else 22154# include <assert.h> 22155#endif 22156 22157#undef $ac_func 22158 22159/* Override any gcc2 internal prototype to avoid an error. */ 22160#ifdef __cplusplus 22161extern "C" 22162{ 22163#endif 22164/* We use char because int might match the return type of a gcc2 22165 builtin and then its argument prototype would still apply. */ 22166char $ac_func (); 22167/* The GNU C library defines this for functions which it implements 22168 to always fail with ENOSYS. Some functions are actually named 22169 something starting with __ and the normal name is an alias. */ 22170#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22171choke me 22172#else 22173char (*f) () = $ac_func; 22174#endif 22175#ifdef __cplusplus 22176} 22177#endif 22178 22179int 22180main () 22181{ 22182return f != $ac_func; 22183 ; 22184 return 0; 22185} 22186_ACEOF 22187rm -f conftest.$ac_objext conftest$ac_exeext 22188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22189 (eval $ac_link) 2>conftest.er1 22190 ac_status=$? 22191 grep -v '^ *+' conftest.er1 >conftest.err 22192 rm -f conftest.er1 22193 cat conftest.err >&5 22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22195 (exit $ac_status); } && 22196 { ac_try='test -z "$ac_c_werror_flag" 22197 || test ! -s conftest.err' 22198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22199 (eval $ac_try) 2>&5 22200 ac_status=$? 22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22202 (exit $ac_status); }; } && 22203 { ac_try='test -s conftest$ac_exeext' 22204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22205 (eval $ac_try) 2>&5 22206 ac_status=$? 22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22208 (exit $ac_status); }; }; then 22209 eval "$as_ac_var=yes" 22210else 22211 echo "$as_me: failed program was:" >&5 22212sed 's/^/| /' conftest.$ac_ext >&5 22213 22214eval "$as_ac_var=no" 22215fi 22216rm -f conftest.err conftest.$ac_objext \ 22217 conftest$ac_exeext conftest.$ac_ext 22218fi 22219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22221if test `eval echo '${'$as_ac_var'}'` = yes; then 22222 cat >>confdefs.h <<_ACEOF 22223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22224_ACEOF 22225 22226fi 22227done 22228 22229 22230 22231for ac_func in sigaltstack sigstack 22232do 22233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22234echo "$as_me:$LINENO: checking for $ac_func" >&5 22235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22236if eval "test \"\${$as_ac_var+set}\" = set"; then 22237 echo $ECHO_N "(cached) $ECHO_C" >&6 22238else 22239 cat >conftest.$ac_ext <<_ACEOF 22240/* confdefs.h. */ 22241_ACEOF 22242cat confdefs.h >>conftest.$ac_ext 22243cat >>conftest.$ac_ext <<_ACEOF 22244/* end confdefs.h. */ 22245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22246 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22247#define $ac_func innocuous_$ac_func 22248 22249/* System header to define __stub macros and hopefully few prototypes, 22250 which can conflict with char $ac_func (); below. 22251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22252 <limits.h> exists even on freestanding compilers. */ 22253 22254#ifdef __STDC__ 22255# include <limits.h> 22256#else 22257# include <assert.h> 22258#endif 22259 22260#undef $ac_func 22261 22262/* Override any gcc2 internal prototype to avoid an error. */ 22263#ifdef __cplusplus 22264extern "C" 22265{ 22266#endif 22267/* We use char because int might match the return type of a gcc2 22268 builtin and then its argument prototype would still apply. */ 22269char $ac_func (); 22270/* The GNU C library defines this for functions which it implements 22271 to always fail with ENOSYS. Some functions are actually named 22272 something starting with __ and the normal name is an alias. */ 22273#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22274choke me 22275#else 22276char (*f) () = $ac_func; 22277#endif 22278#ifdef __cplusplus 22279} 22280#endif 22281 22282int 22283main () 22284{ 22285return f != $ac_func; 22286 ; 22287 return 0; 22288} 22289_ACEOF 22290rm -f conftest.$ac_objext conftest$ac_exeext 22291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22292 (eval $ac_link) 2>conftest.er1 22293 ac_status=$? 22294 grep -v '^ *+' conftest.er1 >conftest.err 22295 rm -f conftest.er1 22296 cat conftest.err >&5 22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22298 (exit $ac_status); } && 22299 { ac_try='test -z "$ac_c_werror_flag" 22300 || test ! -s conftest.err' 22301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22302 (eval $ac_try) 2>&5 22303 ac_status=$? 22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22305 (exit $ac_status); }; } && 22306 { ac_try='test -s conftest$ac_exeext' 22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22308 (eval $ac_try) 2>&5 22309 ac_status=$? 22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22311 (exit $ac_status); }; }; then 22312 eval "$as_ac_var=yes" 22313else 22314 echo "$as_me: failed program was:" >&5 22315sed 's/^/| /' conftest.$ac_ext >&5 22316 22317eval "$as_ac_var=no" 22318fi 22319rm -f conftest.err conftest.$ac_objext \ 22320 conftest$ac_exeext conftest.$ac_ext 22321fi 22322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22324if test `eval echo '${'$as_ac_var'}'` = yes; then 22325 cat >>confdefs.h <<_ACEOF 22326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22327_ACEOF 22328 22329fi 22330done 22331 22332echo "$as_me:$LINENO: checking for signal-mask aware setjmp(3)/longjmp(3)" >&5 22333echo $ECHO_N "checking for signal-mask aware setjmp(3)/longjmp(3)... $ECHO_C" >&6 22334if test "${ac_cv_check_sjlj+set}" = set; then 22335 echo $ECHO_N "(cached) $ECHO_C" >&6 22336else 22337 22338ac_rc=yes 22339for ac_spec in func:setjmp func:longjmp; do 22340 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 22341 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 22342 case $ac_type in 22343 header ) 22344 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22345 ac_var="ac_cv_header_$ac_item" 22346 ;; 22347 file ) 22348 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22349 ac_var="ac_cv_file_$ac_item" 22350 ;; 22351 func ) ac_var="ac_cv_func_$ac_item" ;; 22352 lib ) ac_var="ac_cv_lib_$ac_item" ;; 22353 define ) ac_var="ac_cv_define_$ac_item" ;; 22354 typedef ) ac_var="ac_cv_typedef_$ac_item" ;; 22355 custom ) ac_var="$ac_item" ;; 22356 esac 22357 eval "ac_val=\$$ac_var" 22358 if test ".$ac_val" != .yes; then 22359 ac_rc=no 22360 break 22361 fi 22362done 22363if test ".$ac_rc" = .yes; then 22364 : 22365 ac_cv_check_sjlj=sjlje 22366else 22367 : 22368 ac_cv_check_sjlj=none 22369fi 22370 22371cross_compiling=no 22372for testtype in ssjlj sjlj usjlj; do 22373OCFLAGS="$CFLAGS" 22374CFLAGS="$CFLAGS -DTEST_${testtype}" 22375if test "$cross_compiling" = yes; then 22376 rc=failed 22377 22378else 22379 cat >conftest.$ac_ext <<_ACEOF 22380/* confdefs.h. */ 22381_ACEOF 22382cat confdefs.h >>conftest.$ac_ext 22383cat >>conftest.$ac_ext <<_ACEOF 22384/* end confdefs.h. */ 22385 22386#if defined(TEST_ssjlj) 22387#define __JMP_BUF sigjmp_buf 22388#define __SETJMP(buf) sigsetjmp(buf,1) 22389#define __LONGJMP(buf,val) siglongjmp(buf,val) 22390#elif defined(TEST_sjlj) 22391#define __JMP_BUF jmp_buf 22392#define __SETJMP(buf) setjmp(buf) 22393#define __LONGJMP(buf,val) longjmp(buf,val) 22394#elif defined(TEST_usjlj) 22395#define __JMP_BUF jmp_buf 22396#define __SETJMP(buf) _setjmp(buf) 22397#define __LONGJMP(buf,val) _longjmp(buf,val) 22398#endif 22399 22400#include <stdio.h> 22401#include <sys/types.h> 22402#include <signal.h> 22403#include <setjmp.h> 22404#include <unistd.h> 22405 22406static __JMP_BUF jb; 22407 22408static void sighandler(int sig) 22409{ 22410 sigset_t sigs; 22411 22412 /* get signal mask */ 22413 sigprocmask(SIG_SETMASK, NULL, &sigs); 22414 22415 /* make sure USR1 is still blocked */ 22416 if (!sigismember(&sigs, SIGUSR1)) 22417 exit(1); 22418 22419 /* block USR2 for us */ 22420 sigaddset(&sigs, SIGUSR2); 22421 sigprocmask(SIG_SETMASK, &sigs, NULL); 22422 22423 /* jump back to main */ 22424 __LONGJMP(jb, 1); 22425 exit(1); 22426} 22427 22428int main(int argc, char *argv[]) 22429{ 22430 FILE *fp; 22431 sigset_t sigs; 22432 struct sigaction sa; 22433 22434 /* the default is that it fails */ 22435 if ((fp = fopen("conftestval", "w")) == NULL) 22436 exit(1); 22437 fprintf(fp, "failed\n"); 22438 fclose(fp); 22439 22440 /* block USR1 and unblock USR2 signal */ 22441 sigprocmask(SIG_SETMASK, NULL, &sigs); 22442 sigaddset(&sigs, SIGUSR1); 22443 sigdelset(&sigs, SIGUSR2); 22444 sigprocmask(SIG_SETMASK, &sigs, NULL); 22445 22446 /* set jump buffer */ 22447 if (__SETJMP(jb) == 0) { 22448 22449 /* install signal handler for USR1 */ 22450 memset((void *)&sa, 0, sizeof(struct sigaction)); 22451 sigemptyset(&sa.sa_mask); 22452 sa.sa_handler = sighandler; 22453 sa.sa_flags = 0; 22454 sigaction(SIGUSR1, &sa, NULL); 22455 22456 /* send USR1 signal (which is still blocked) */ 22457 kill(getpid(), SIGUSR1); 22458 22459 /* unblock USR1 and wait for it */ 22460 sigprocmask(SIG_SETMASK, NULL, &sigs); 22461 sigdelset(&sigs, SIGUSR1); 22462 sigsuspend(&sigs); 22463 exit(1); 22464 } 22465 22466 /* get signal mask again */ 22467 sigprocmask(SIG_SETMASK, NULL, &sigs); 22468 22469 /* make sure USR2 is again unblocked */ 22470 if (sigismember(&sigs, SIGUSR2)) 22471 exit(1); 22472 22473 /* Fine... */ 22474 if ((fp = fopen("conftestval", "w")) == NULL) 22475 exit(1); 22476 fprintf(fp, "ok\n"); 22477 fclose(fp); 22478 exit(0); 22479} 22480 22481 22482_ACEOF 22483rm -f conftest$ac_exeext 22484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22485 (eval $ac_link) 2>&5 22486 ac_status=$? 22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22490 (eval $ac_try) 2>&5 22491 ac_status=$? 22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22493 (exit $ac_status); }; }; then 22494 rc=`cat conftestval` 22495else 22496 echo "$as_me: program exited with status $ac_status" >&5 22497echo "$as_me: failed program was:" >&5 22498sed 's/^/| /' conftest.$ac_ext >&5 22499 22500( exit $ac_status ) 22501rc=failed 22502fi 22503rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22504fi 22505CFLAGS="$OCFLAGS" 22506if test ".$rc" = .ok; then 22507 ac_cv_check_sjlj=$testtype 22508 break 22509fi 22510done 22511case $PLATFORM in 22512 *-*-linux* ) 22513 braindead=no 22514 case "x`uname -r`" in 22515 x2.[23456789]* ) ;; 22516 22517 * ) braindead=yes ;; 22518 esac 22519 case `grep __GLIBC_MINOR /usr/include/features.h | grep '#define' |\ 22520 awk '{ printf("%s", $3 >= 1 ? "yes" : "no"); }'` in 22521 yes ) ;; 22522 * ) braindead=yes ;; 22523 esac 22524 case $braindead in 22525 yes ) ac_cv_check_sjlj=sjljlx ;; 22526 no ) ac_cv_check_sjlj=ssjlj ;; 22527 esac 22528 ;; 22529 *86-*-gnu0* ) 22530 # GNU/Hurd is similar to linux 2.0 in that it has 22531 # non-functional stubs for sigstack and sigaltstack. 22532 ac_cv_check_sjlj=sjljlx 22533 ;; 22534 *-*-isc* ) 22535 ac_cv_check_sjlj=sjljisc 22536 ;; 22537 *-*-interix ) 22538 # Interix is a POSIX sub-system on Windows-NT which 22539 # can use the Interactive UNIX dispatching code. 22540 ac_cv_check_sjlj=sjljisc 22541 ;; 22542 *-*-cygwin* ) 22543 ac_cv_check_sjlj=sjljw32 22544 ;; 22545esac 22546 22547fi 22548sjlj_type="$ac_cv_check_sjlj" 22549if test ".$ac_cv_check_sjlj" != .none; then 22550 echo "$as_me:$LINENO: result: yes: $ac_cv_check_sjlj" >&5 22551echo "${ECHO_T}yes: $ac_cv_check_sjlj" >&6 22552 sjlj=yes 22553else 22554 echo "$as_me:$LINENO: result: no" >&5 22555echo "${ECHO_T}no" >&6 22556 sjlj=no 22557fi 22558 22559 22560 22561if test ".$mcsc" = .yes; then 22562 mctx_mth=mcsc 22563 mctx_dsp=sc 22564 mctx_stk=mc 22565elif test ".$sjlj" = .yes; then 22566 mctx_mth=sjlj 22567 mctx_dsp=$sjlj_type 22568 mctx_stk=none 22569 ac_rc=yes 22570for ac_spec in func:sigstack; do 22571 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 22572 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 22573 case $ac_type in 22574 header ) 22575 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22576 ac_var="ac_cv_header_$ac_item" 22577 ;; 22578 file ) 22579 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22580 ac_var="ac_cv_file_$ac_item" 22581 ;; 22582 func ) ac_var="ac_cv_func_$ac_item" ;; 22583 lib ) ac_var="ac_cv_lib_$ac_item" ;; 22584 define ) ac_var="ac_cv_define_$ac_item" ;; 22585 typedef ) ac_var="ac_cv_typedef_$ac_item" ;; 22586 custom ) ac_var="$ac_item" ;; 22587 esac 22588 eval "ac_val=\$$ac_var" 22589 if test ".$ac_val" != .yes; then 22590 ac_rc=no 22591 break 22592 fi 22593done 22594if test ".$ac_rc" = .yes; then 22595 : 22596 mctx_stk=ss 22597else 22598 : 22599 22600fi 22601 22602 ac_rc=yes 22603for ac_spec in func:sigaltstack; do 22604 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 22605 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 22606 case $ac_type in 22607 header ) 22608 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22609 ac_var="ac_cv_header_$ac_item" 22610 ;; 22611 file ) 22612 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22613 ac_var="ac_cv_file_$ac_item" 22614 ;; 22615 func ) ac_var="ac_cv_func_$ac_item" ;; 22616 lib ) ac_var="ac_cv_lib_$ac_item" ;; 22617 define ) ac_var="ac_cv_define_$ac_item" ;; 22618 typedef ) ac_var="ac_cv_typedef_$ac_item" ;; 22619 custom ) ac_var="$ac_item" ;; 22620 esac 22621 eval "ac_val=\$$ac_var" 22622 if test ".$ac_val" != .yes; then 22623 ac_rc=no 22624 break 22625 fi 22626done 22627if test ".$ac_rc" = .yes; then 22628 : 22629 mctx_stk=sas 22630else 22631 : 22632 22633fi 22634 22635 case $mctx_dsp in 22636 sjljlx|sjljisc|sjljw32 ) mctx_stk=none 22637 esac 22638else 22639 { { echo "$as_me:$LINENO: error: no appropriate mctx method found" >&5 22640echo "$as_me: error: no appropriate mctx method found" >&2;} 22641 { (exit 1); exit 1; }; } 22642fi 22643 22644 22645 22646# Check whether --with-mctx-mth or --without-mctx-mth was given. 22647if test "${with_mctx_mth+set}" = set; then 22648 withval="$with_mctx_mth" 22649 22650case $withval in 22651 mcsc|sjlj ) mctx_mth=$withval ;; 22652 * ) { { echo "$as_me:$LINENO: error: invalid mctx method -- allowed: mcsc,sjlj" >&5 22653echo "$as_me: error: invalid mctx method -- allowed: mcsc,sjlj" >&2;} 22654 { (exit 1); exit 1; }; } ;; 22655esac 22656 22657fi; 22658# Check whether --with-mctx-dsp or --without-mctx-dsp was given. 22659if test "${with_mctx_dsp+set}" = set; then 22660 withval="$with_mctx_dsp" 22661 22662case $withval in 22663 sc|ssjlj|sjlj|usjlj|sjlje|sjljlx|sjljisc|sjljw32 ) mctx_dsp=$withval ;; 22664 * ) { { echo "$as_me:$LINENO: error: invalid mctx dispatching -- allowed: sc,ssjlj,sjlj,usjlj,sjlje,sjljlx,sjljisc,sjljw32" >&5 22665echo "$as_me: error: invalid mctx dispatching -- allowed: sc,ssjlj,sjlj,usjlj,sjlje,sjljlx,sjljisc,sjljw32" >&2;} 22666 { (exit 1); exit 1; }; } ;; 22667esac 22668 22669fi; 22670# Check whether --with-mctx-stk or --without-mctx-stk was given. 22671if test "${with_mctx_stk+set}" = set; then 22672 withval="$with_mctx_stk" 22673 22674case $withval in 22675 mc|ss|sas|none ) mctx_stk=$withval ;; 22676 * ) { { echo "$as_me:$LINENO: error: invalid mctx stack setup -- allowed: mc,ss,sas,none" >&5 22677echo "$as_me: error: invalid mctx stack setup -- allowed: mc,ss,sas,none" >&2;} 22678 { (exit 1); exit 1; }; } ;; 22679esac 22680 22681fi; 22682 22683echo "$as_me:$LINENO: checking for typedef stack_t" >&5 22684echo $ECHO_N "checking for typedef stack_t... $ECHO_C" >&6 22685if test "${ac_cv_typedef_stack_t+set}" = set; then 22686 echo $ECHO_N "(cached) $ECHO_C" >&6 22687else 22688 cat >conftest.$ac_ext <<_ACEOF 22689/* confdefs.h. */ 22690_ACEOF 22691cat confdefs.h >>conftest.$ac_ext 22692cat >>conftest.$ac_ext <<_ACEOF 22693/* end confdefs.h. */ 22694 22695#include <signal.h> 22696 22697_ACEOF 22698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22699 $EGREP "(^|[^a-zA-Z_0-9])stack_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 22700 ac_cv_typedef_stack_t=yes 22701else 22702 ac_cv_typedef_stack_t=no 22703fi 22704rm -f conftest* 22705 22706fi 22707echo "$as_me:$LINENO: result: $ac_cv_typedef_stack_t" >&5 22708echo "${ECHO_T}$ac_cv_typedef_stack_t" >&6 22709if test $ac_cv_typedef_stack_t = yes; then 22710 22711cat >>confdefs.h <<\_ACEOF 22712#define HAVE_STACK_T 1 22713_ACEOF 22714 22715fi 22716 22717 22718echo "$as_me:$LINENO: checking for direction of stack growth" >&5 22719echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6 22720if test "${ac_cv_check_stackgrowth+set}" = set; then 22721 echo $ECHO_N "(cached) $ECHO_C" >&6 22722else 22723 22724cross_compiling=no 22725if test "$cross_compiling" = yes; then 22726 ac_cv_check_stackgrowth=down 22727 22728else 22729 cat >conftest.$ac_ext <<_ACEOF 22730/* confdefs.h. */ 22731_ACEOF 22732cat confdefs.h >>conftest.$ac_ext 22733cat >>conftest.$ac_ext <<_ACEOF 22734/* end confdefs.h. */ 22735 22736#include <stdio.h> 22737#include <stdlib.h> 22738static int iterate = 10; 22739static int growsdown(int *x) 22740{ 22741 auto int y; 22742 y = (x > &y); 22743 if (--iterate > 0) 22744 y = growsdown(&y); 22745 if (y != (x > &y)) 22746 exit(1); 22747 return y; 22748} 22749int main(int argc, char *argv[]) 22750{ 22751 FILE *f; 22752 auto int x; 22753 if ((f = fopen("conftestval", "w")) == NULL) 22754 exit(1); 22755 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");; 22756 fclose(f); 22757 exit(0); 22758} 22759 22760 22761_ACEOF 22762rm -f conftest$ac_exeext 22763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22764 (eval $ac_link) 2>&5 22765 ac_status=$? 22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22769 (eval $ac_try) 2>&5 22770 ac_status=$? 22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22772 (exit $ac_status); }; }; then 22773 ac_cv_check_stackgrowth=`cat conftestval` 22774else 22775 echo "$as_me: program exited with status $ac_status" >&5 22776echo "$as_me: failed program was:" >&5 22777sed 's/^/| /' conftest.$ac_ext >&5 22778 22779( exit $ac_status ) 22780ac_cv_check_stackgrowth=down 22781fi 22782rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22783fi 22784fi 22785echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5 22786echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6 22787if test ".$ac_cv_check_stackgrowth" = ".down"; then 22788 val="-1" 22789else 22790 val="+1" 22791fi 22792 22793cat >>confdefs.h <<_ACEOF 22794#define PTH_STACKGROWTH $val 22795_ACEOF 22796 22797 22798if test ".$ac_cv_check_stackgrowth" = ".down"; then 22799 PTH_STACK_GROWTH="down" 22800else 22801 PTH_STACK_GROWTH="up" 22802fi 22803 22804 22805case $PLATFORM in 22806 *86-*-gnu0* ) ac_cv_func_sigaltstack="no"; ac_cv_func_sigstack="no" ;; 22807esac 22808 22809 22810 22811 22812 22813for ac_func in makecontext 22814do 22815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22816echo "$as_me:$LINENO: checking for $ac_func" >&5 22817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 22818if eval "test \"\${$as_ac_var+set}\" = set"; then 22819 echo $ECHO_N "(cached) $ECHO_C" >&6 22820else 22821 cat >conftest.$ac_ext <<_ACEOF 22822/* confdefs.h. */ 22823_ACEOF 22824cat confdefs.h >>conftest.$ac_ext 22825cat >>conftest.$ac_ext <<_ACEOF 22826/* end confdefs.h. */ 22827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22828 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22829#define $ac_func innocuous_$ac_func 22830 22831/* System header to define __stub macros and hopefully few prototypes, 22832 which can conflict with char $ac_func (); below. 22833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22834 <limits.h> exists even on freestanding compilers. */ 22835 22836#ifdef __STDC__ 22837# include <limits.h> 22838#else 22839# include <assert.h> 22840#endif 22841 22842#undef $ac_func 22843 22844/* Override any gcc2 internal prototype to avoid an error. */ 22845#ifdef __cplusplus 22846extern "C" 22847{ 22848#endif 22849/* We use char because int might match the return type of a gcc2 22850 builtin and then its argument prototype would still apply. */ 22851char $ac_func (); 22852/* The GNU C library defines this for functions which it implements 22853 to always fail with ENOSYS. Some functions are actually named 22854 something starting with __ and the normal name is an alias. */ 22855#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 22856choke me 22857#else 22858char (*f) () = $ac_func; 22859#endif 22860#ifdef __cplusplus 22861} 22862#endif 22863 22864int 22865main () 22866{ 22867return f != $ac_func; 22868 ; 22869 return 0; 22870} 22871_ACEOF 22872rm -f conftest.$ac_objext conftest$ac_exeext 22873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22874 (eval $ac_link) 2>conftest.er1 22875 ac_status=$? 22876 grep -v '^ *+' conftest.er1 >conftest.err 22877 rm -f conftest.er1 22878 cat conftest.err >&5 22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22880 (exit $ac_status); } && 22881 { ac_try='test -z "$ac_c_werror_flag" 22882 || test ! -s conftest.err' 22883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22884 (eval $ac_try) 2>&5 22885 ac_status=$? 22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22887 (exit $ac_status); }; } && 22888 { ac_try='test -s conftest$ac_exeext' 22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22890 (eval $ac_try) 2>&5 22891 ac_status=$? 22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22893 (exit $ac_status); }; }; then 22894 eval "$as_ac_var=yes" 22895else 22896 echo "$as_me: failed program was:" >&5 22897sed 's/^/| /' conftest.$ac_ext >&5 22898 22899eval "$as_ac_var=no" 22900fi 22901rm -f conftest.err conftest.$ac_objext \ 22902 conftest$ac_exeext conftest.$ac_ext 22903fi 22904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 22905echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 22906if test `eval echo '${'$as_ac_var'}'` = yes; then 22907 cat >>confdefs.h <<_ACEOF 22908#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22909_ACEOF 22910 22911fi 22912done 22913 22914 22915echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5 22916echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6 22917if test "${ac_cv_stacksetup_makecontext+set}" = set; then 22918 echo $ECHO_N "(cached) $ECHO_C" >&6 22919else 22920 22921if test ".$ac_cv_func_makecontext" = .no; then 22922 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/" 22923else 22924 OCFLAGS="$CFLAGS" 22925 CFLAGS="$CFLAGS -DTEST_makecontext" 22926 cross_compiling=no 22927 if test "$cross_compiling" = yes; then 22928 22929ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)' 22930 22931else 22932 cat >conftest.$ac_ext <<_ACEOF 22933/* confdefs.h. */ 22934_ACEOF 22935cat confdefs.h >>conftest.$ac_ext 22936cat >>conftest.$ac_ext <<_ACEOF 22937/* end confdefs.h. */ 22938 22939#include <stdio.h> 22940#include <stdlib.h> 22941#include <string.h> 22942#if defined(TEST_sigstack) || defined(TEST_sigaltstack) 22943#include <sys/types.h> 22944#include <signal.h> 22945#include <unistd.h> 22946#endif 22947#if defined(TEST_makecontext) 22948#include <ucontext.h> 22949#endif 22950union alltypes { 22951 long l; 22952 double d; 22953 void *vp; 22954 void (*fp)(void); 22955 char *cp; 22956}; 22957static volatile char *handler_addr = (char *)0xDEAD; 22958#if defined(TEST_sigstack) || defined(TEST_sigaltstack) 22959static volatile int handler_done = 0; 22960void handler(int sig) 22961{ 22962 char garbage[1024]; 22963 int i; 22964 auto int dummy; 22965 for (i = 0; i < 1024; i++) 22966 garbage[i] = 'X'; 22967 handler_addr = (char *)&dummy; 22968 handler_done = 1; 22969 return; 22970} 22971#endif 22972#if defined(TEST_makecontext) 22973static ucontext_t uc_handler; 22974static ucontext_t uc_main; 22975void handler(void) 22976{ 22977 char garbage[1024]; 22978 int i; 22979 auto int dummy; 22980 for (i = 0; i < 1024; i++) 22981 garbage[i] = 'X'; 22982 handler_addr = (char *)&dummy; 22983 swapcontext(&uc_handler, &uc_main); 22984 return; 22985} 22986#endif 22987int main(int argc, char *argv[]) 22988{ 22989 FILE *f; 22990 char *skaddr; 22991 char *skbuf; 22992 int sksize; 22993 char result[1024]; 22994 int i; 22995 sksize = 32768; 22996 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes)); 22997 if (skbuf == NULL) 22998 exit(1); 22999 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++) 23000 skbuf[i] = 'A'; 23001 skaddr = skbuf+sizeof(union alltypes); 23002#if defined(TEST_sigstack) || defined(TEST_sigaltstack) 23003 { 23004 struct sigaction sa; 23005#if defined(TEST_sigstack) 23006 struct sigstack ss; 23007#elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T) 23008 stack_t ss; 23009#else 23010 struct sigaltstack ss; 23011#endif 23012#if defined(TEST_sigstack) 23013 ss.ss_sp = (void *)(skaddr + sksize); 23014 ss.ss_onstack = 0; 23015 if (sigstack(&ss, NULL) < 0) 23016 exit(1); 23017#elif defined(TEST_sigaltstack) 23018 ss.ss_sp = (void *)(skaddr + sksize); 23019 ss.ss_size = sksize; 23020 ss.ss_flags = 0; 23021 if (sigaltstack(&ss, NULL) < 0) 23022 exit(1); 23023#endif 23024 memset((void *)&sa, 0, sizeof(struct sigaction)); 23025 sa.sa_handler = handler; 23026 sa.sa_flags = SA_ONSTACK; 23027 sigemptyset(&sa.sa_mask); 23028 sigaction(SIGUSR1, &sa, NULL); 23029 kill(getpid(), SIGUSR1); 23030 while (!handler_done) 23031 /*nop*/; 23032 } 23033#endif 23034#if defined(TEST_makecontext) 23035 { 23036 if (getcontext(&uc_handler) != 0) 23037 exit(1); 23038 uc_handler.uc_link = NULL; 23039 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize); 23040 uc_handler.uc_stack.ss_size = sksize; 23041 uc_handler.uc_stack.ss_flags = 0; 23042 makecontext(&uc_handler, handler, 1); 23043 swapcontext(&uc_main, &uc_handler); 23044 } 23045#endif 23046 if (handler_addr == (char *)0xDEAD) 23047 exit(1); 23048 if (handler_addr < skaddr+sksize) { 23049 /* stack was placed into lower area */ 23050 if (*(skaddr+sksize) != 'A') 23051 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d", 23052 sizeof(union alltypes), sizeof(union alltypes)); 23053 else 23054 strcpy(result, "(skaddr)+(sksize),(sksize)"); 23055 } 23056 else { 23057 /* stack was placed into higher area */ 23058 if (*(skaddr+sksize*2) != 'A') 23059 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes)); 23060 else 23061 strcpy(result, "(skaddr),(sksize)"); 23062 } 23063 if ((f = fopen("conftestval", "w")) == NULL) 23064 exit(1); 23065 fprintf(f, "%s\n", result); 23066 fclose(f); 23067 exit(0); 23068} 23069 23070_ACEOF 23071rm -f conftest$ac_exeext 23072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23073 (eval $ac_link) 2>&5 23074 ac_status=$? 23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23078 (eval $ac_try) 2>&5 23079 ac_status=$? 23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23081 (exit $ac_status); }; }; then 23082 23083ac_cv_stacksetup_makecontext=`cat conftestval` 23084ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext" 23085 23086else 23087 echo "$as_me: program exited with status $ac_status" >&5 23088echo "$as_me: failed program was:" >&5 23089sed 's/^/| /' conftest.$ac_ext >&5 23090 23091( exit $ac_status ) 23092 23093ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)' 23094 23095fi 23096rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23097fi 23098CFLAGS="$OCFLAGS" 23099 23100fi 23101fi 23102type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'` 23103addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'` 23104size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'` 23105pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)" 23106pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)" 23107echo "$as_me:$LINENO: result: $type" >&5 23108echo "${ECHO_T}$type" >&6 23109if test ".$verbose" = .yes; then 23110 echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5 23111echo "${ECHO_T} $pth_skaddr_makecontext" >&6 23112fi 23113 23114if test ".$verbose" = .yes; then 23115 echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5 23116echo "${ECHO_T} $pth_sksize_makecontext" >&6 23117fi 23118 23119 23120 23121 23122 23123for ac_func in sigaltstack 23124do 23125as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23126echo "$as_me:$LINENO: checking for $ac_func" >&5 23127echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23128if eval "test \"\${$as_ac_var+set}\" = set"; then 23129 echo $ECHO_N "(cached) $ECHO_C" >&6 23130else 23131 cat >conftest.$ac_ext <<_ACEOF 23132/* confdefs.h. */ 23133_ACEOF 23134cat confdefs.h >>conftest.$ac_ext 23135cat >>conftest.$ac_ext <<_ACEOF 23136/* end confdefs.h. */ 23137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23138 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23139#define $ac_func innocuous_$ac_func 23140 23141/* System header to define __stub macros and hopefully few prototypes, 23142 which can conflict with char $ac_func (); below. 23143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23144 <limits.h> exists even on freestanding compilers. */ 23145 23146#ifdef __STDC__ 23147# include <limits.h> 23148#else 23149# include <assert.h> 23150#endif 23151 23152#undef $ac_func 23153 23154/* Override any gcc2 internal prototype to avoid an error. */ 23155#ifdef __cplusplus 23156extern "C" 23157{ 23158#endif 23159/* We use char because int might match the return type of a gcc2 23160 builtin and then its argument prototype would still apply. */ 23161char $ac_func (); 23162/* The GNU C library defines this for functions which it implements 23163 to always fail with ENOSYS. Some functions are actually named 23164 something starting with __ and the normal name is an alias. */ 23165#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23166choke me 23167#else 23168char (*f) () = $ac_func; 23169#endif 23170#ifdef __cplusplus 23171} 23172#endif 23173 23174int 23175main () 23176{ 23177return f != $ac_func; 23178 ; 23179 return 0; 23180} 23181_ACEOF 23182rm -f conftest.$ac_objext conftest$ac_exeext 23183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23184 (eval $ac_link) 2>conftest.er1 23185 ac_status=$? 23186 grep -v '^ *+' conftest.er1 >conftest.err 23187 rm -f conftest.er1 23188 cat conftest.err >&5 23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23190 (exit $ac_status); } && 23191 { ac_try='test -z "$ac_c_werror_flag" 23192 || test ! -s conftest.err' 23193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23194 (eval $ac_try) 2>&5 23195 ac_status=$? 23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23197 (exit $ac_status); }; } && 23198 { ac_try='test -s conftest$ac_exeext' 23199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23200 (eval $ac_try) 2>&5 23201 ac_status=$? 23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23203 (exit $ac_status); }; }; then 23204 eval "$as_ac_var=yes" 23205else 23206 echo "$as_me: failed program was:" >&5 23207sed 's/^/| /' conftest.$ac_ext >&5 23208 23209eval "$as_ac_var=no" 23210fi 23211rm -f conftest.err conftest.$ac_objext \ 23212 conftest$ac_exeext conftest.$ac_ext 23213fi 23214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23216if test `eval echo '${'$as_ac_var'}'` = yes; then 23217 cat >>confdefs.h <<_ACEOF 23218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23219_ACEOF 23220 23221fi 23222done 23223 23224 23225 23226 23227 23228 23229 echo "$as_me:$LINENO: checking for typedef stack_t" >&5 23230echo $ECHO_N "checking for typedef stack_t... $ECHO_C" >&6 23231if test "${ac_cv_typedef_stack_t+set}" = set; then 23232 echo $ECHO_N "(cached) $ECHO_C" >&6 23233else 23234 cat >conftest.$ac_ext <<_ACEOF 23235/* confdefs.h. */ 23236_ACEOF 23237cat confdefs.h >>conftest.$ac_ext 23238cat >>conftest.$ac_ext <<_ACEOF 23239/* end confdefs.h. */ 23240 23241#include <signal.h> 23242 23243_ACEOF 23244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23245 $EGREP "(^|[^a-zA-Z_0-9])stack_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 23246 ac_cv_typedef_stack_t=yes 23247else 23248 ac_cv_typedef_stack_t=no 23249fi 23250rm -f conftest* 23251 23252fi 23253echo "$as_me:$LINENO: result: $ac_cv_typedef_stack_t" >&5 23254echo "${ECHO_T}$ac_cv_typedef_stack_t" >&6 23255if test $ac_cv_typedef_stack_t = yes; then 23256 23257cat >>confdefs.h <<\_ACEOF 23258#define HAVE_STACK_T 1 23259_ACEOF 23260 23261fi 23262 23263 23264 23265 23266echo "$as_me:$LINENO: checking for stack setup via sigaltstack" >&5 23267echo $ECHO_N "checking for stack setup via sigaltstack... $ECHO_C" >&6 23268if test "${ac_cv_stacksetup_sigaltstack+set}" = set; then 23269 echo $ECHO_N "(cached) $ECHO_C" >&6 23270else 23271 23272if test ".$ac_cv_func_sigaltstack" = .no; then 23273 ac_cv_stacksetup_sigaltstack="N.A.:/*N.A.*/,/*N.A.*/" 23274else 23275 OCFLAGS="$CFLAGS" 23276 CFLAGS="$CFLAGS -DTEST_sigaltstack" 23277 cross_compiling=no 23278 if test "$cross_compiling" = yes; then 23279 23280ac_cv_stacksetup_sigaltstack='guessed:(skaddr),(sksize)' 23281 23282else 23283 cat >conftest.$ac_ext <<_ACEOF 23284/* confdefs.h. */ 23285_ACEOF 23286cat confdefs.h >>conftest.$ac_ext 23287cat >>conftest.$ac_ext <<_ACEOF 23288/* end confdefs.h. */ 23289 23290#include <stdio.h> 23291#include <stdlib.h> 23292#include <string.h> 23293#if defined(TEST_sigstack) || defined(TEST_sigaltstack) 23294#include <sys/types.h> 23295#include <signal.h> 23296#include <unistd.h> 23297#endif 23298#if defined(TEST_makecontext) 23299#include <ucontext.h> 23300#endif 23301union alltypes { 23302 long l; 23303 double d; 23304 void *vp; 23305 void (*fp)(void); 23306 char *cp; 23307}; 23308static volatile char *handler_addr = (char *)0xDEAD; 23309#if defined(TEST_sigstack) || defined(TEST_sigaltstack) 23310static volatile int handler_done = 0; 23311void handler(int sig) 23312{ 23313 char garbage[1024]; 23314 int i; 23315 auto int dummy; 23316 for (i = 0; i < 1024; i++) 23317 garbage[i] = 'X'; 23318 handler_addr = (char *)&dummy; 23319 handler_done = 1; 23320 return; 23321} 23322#endif 23323#if defined(TEST_makecontext) 23324static ucontext_t uc_handler; 23325static ucontext_t uc_main; 23326void handler(void) 23327{ 23328 char garbage[1024]; 23329 int i; 23330 auto int dummy; 23331 for (i = 0; i < 1024; i++) 23332 garbage[i] = 'X'; 23333 handler_addr = (char *)&dummy; 23334 swapcontext(&uc_handler, &uc_main); 23335 return; 23336} 23337#endif 23338int main(int argc, char *argv[]) 23339{ 23340 FILE *f; 23341 char *skaddr; 23342 char *skbuf; 23343 int sksize; 23344 char result[1024]; 23345 int i; 23346 sksize = 32768; 23347 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes)); 23348 if (skbuf == NULL) 23349 exit(1); 23350 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++) 23351 skbuf[i] = 'A'; 23352 skaddr = skbuf+sizeof(union alltypes); 23353#if defined(TEST_sigstack) || defined(TEST_sigaltstack) 23354 { 23355 struct sigaction sa; 23356#if defined(TEST_sigstack) 23357 struct sigstack ss; 23358#elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T) 23359 stack_t ss; 23360#else 23361 struct sigaltstack ss; 23362#endif 23363#if defined(TEST_sigstack) 23364 ss.ss_sp = (void *)(skaddr + sksize); 23365 ss.ss_onstack = 0; 23366 if (sigstack(&ss, NULL) < 0) 23367 exit(1); 23368#elif defined(TEST_sigaltstack) 23369 ss.ss_sp = (void *)(skaddr + sksize); 23370 ss.ss_size = sksize; 23371 ss.ss_flags = 0; 23372 if (sigaltstack(&ss, NULL) < 0) 23373 exit(1); 23374#endif 23375 memset((void *)&sa, 0, sizeof(struct sigaction)); 23376 sa.sa_handler = handler; 23377 sa.sa_flags = SA_ONSTACK; 23378 sigemptyset(&sa.sa_mask); 23379 sigaction(SIGUSR1, &sa, NULL); 23380 kill(getpid(), SIGUSR1); 23381 while (!handler_done) 23382 /*nop*/; 23383 } 23384#endif 23385#if defined(TEST_makecontext) 23386 { 23387 if (getcontext(&uc_handler) != 0) 23388 exit(1); 23389 uc_handler.uc_link = NULL; 23390 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize); 23391 uc_handler.uc_stack.ss_size = sksize; 23392 uc_handler.uc_stack.ss_flags = 0; 23393 makecontext(&uc_handler, handler, 1); 23394 swapcontext(&uc_main, &uc_handler); 23395 } 23396#endif 23397 if (handler_addr == (char *)0xDEAD) 23398 exit(1); 23399 if (handler_addr < skaddr+sksize) { 23400 /* stack was placed into lower area */ 23401 if (*(skaddr+sksize) != 'A') 23402 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d", 23403 sizeof(union alltypes), sizeof(union alltypes)); 23404 else 23405 strcpy(result, "(skaddr)+(sksize),(sksize)"); 23406 } 23407 else { 23408 /* stack was placed into higher area */ 23409 if (*(skaddr+sksize*2) != 'A') 23410 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes)); 23411 else 23412 strcpy(result, "(skaddr),(sksize)"); 23413 } 23414 if ((f = fopen("conftestval", "w")) == NULL) 23415 exit(1); 23416 fprintf(f, "%s\n", result); 23417 fclose(f); 23418 exit(0); 23419} 23420 23421_ACEOF 23422rm -f conftest$ac_exeext 23423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23424 (eval $ac_link) 2>&5 23425 ac_status=$? 23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23429 (eval $ac_try) 2>&5 23430 ac_status=$? 23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23432 (exit $ac_status); }; }; then 23433 23434ac_cv_stacksetup_sigaltstack=`cat conftestval` 23435ac_cv_stacksetup_sigaltstack="ok:$ac_cv_stacksetup_sigaltstack" 23436 23437else 23438 echo "$as_me: program exited with status $ac_status" >&5 23439echo "$as_me: failed program was:" >&5 23440sed 's/^/| /' conftest.$ac_ext >&5 23441 23442( exit $ac_status ) 23443 23444ac_cv_stacksetup_sigaltstack='guessed:(skaddr),(sksize)' 23445 23446fi 23447rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23448fi 23449CFLAGS="$OCFLAGS" 23450 23451fi 23452fi 23453type=`echo $ac_cv_stacksetup_sigaltstack | sed -e 's;:.*$;;'` 23454addr=`echo $ac_cv_stacksetup_sigaltstack | sed -e 's;^.*:;;' -e 's;,.*$;;'` 23455size=`echo $ac_cv_stacksetup_sigaltstack | sed -e 's;^.*:;;' -e 's;^.*,;;'` 23456pth_skaddr_sigaltstack="#define pth_skaddr_sigaltstack(skaddr,sksize) ($addr)" 23457pth_sksize_sigaltstack="#define pth_sksize_sigaltstack(skaddr,sksize) ($size)" 23458echo "$as_me:$LINENO: result: $type" >&5 23459echo "${ECHO_T}$type" >&6 23460if test ".$verbose" = .yes; then 23461 echo "$as_me:$LINENO: result: $pth_skaddr_sigaltstack" >&5 23462echo "${ECHO_T} $pth_skaddr_sigaltstack" >&6 23463fi 23464 23465if test ".$verbose" = .yes; then 23466 echo "$as_me:$LINENO: result: $pth_sksize_sigaltstack" >&5 23467echo "${ECHO_T} $pth_sksize_sigaltstack" >&6 23468fi 23469 23470 23471 23472 23473for ac_func in sigstack 23474do 23475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23476echo "$as_me:$LINENO: checking for $ac_func" >&5 23477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23478if eval "test \"\${$as_ac_var+set}\" = set"; then 23479 echo $ECHO_N "(cached) $ECHO_C" >&6 23480else 23481 cat >conftest.$ac_ext <<_ACEOF 23482/* confdefs.h. */ 23483_ACEOF 23484cat confdefs.h >>conftest.$ac_ext 23485cat >>conftest.$ac_ext <<_ACEOF 23486/* end confdefs.h. */ 23487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23488 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23489#define $ac_func innocuous_$ac_func 23490 23491/* System header to define __stub macros and hopefully few prototypes, 23492 which can conflict with char $ac_func (); below. 23493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23494 <limits.h> exists even on freestanding compilers. */ 23495 23496#ifdef __STDC__ 23497# include <limits.h> 23498#else 23499# include <assert.h> 23500#endif 23501 23502#undef $ac_func 23503 23504/* Override any gcc2 internal prototype to avoid an error. */ 23505#ifdef __cplusplus 23506extern "C" 23507{ 23508#endif 23509/* We use char because int might match the return type of a gcc2 23510 builtin and then its argument prototype would still apply. */ 23511char $ac_func (); 23512/* The GNU C library defines this for functions which it implements 23513 to always fail with ENOSYS. Some functions are actually named 23514 something starting with __ and the normal name is an alias. */ 23515#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23516choke me 23517#else 23518char (*f) () = $ac_func; 23519#endif 23520#ifdef __cplusplus 23521} 23522#endif 23523 23524int 23525main () 23526{ 23527return f != $ac_func; 23528 ; 23529 return 0; 23530} 23531_ACEOF 23532rm -f conftest.$ac_objext conftest$ac_exeext 23533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23534 (eval $ac_link) 2>conftest.er1 23535 ac_status=$? 23536 grep -v '^ *+' conftest.er1 >conftest.err 23537 rm -f conftest.er1 23538 cat conftest.err >&5 23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23540 (exit $ac_status); } && 23541 { ac_try='test -z "$ac_c_werror_flag" 23542 || test ! -s conftest.err' 23543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23544 (eval $ac_try) 2>&5 23545 ac_status=$? 23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23547 (exit $ac_status); }; } && 23548 { ac_try='test -s conftest$ac_exeext' 23549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23550 (eval $ac_try) 2>&5 23551 ac_status=$? 23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23553 (exit $ac_status); }; }; then 23554 eval "$as_ac_var=yes" 23555else 23556 echo "$as_me: failed program was:" >&5 23557sed 's/^/| /' conftest.$ac_ext >&5 23558 23559eval "$as_ac_var=no" 23560fi 23561rm -f conftest.err conftest.$ac_objext \ 23562 conftest$ac_exeext conftest.$ac_ext 23563fi 23564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23566if test `eval echo '${'$as_ac_var'}'` = yes; then 23567 cat >>confdefs.h <<_ACEOF 23568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23569_ACEOF 23570 23571fi 23572done 23573 23574 23575echo "$as_me:$LINENO: checking for stack setup via sigstack" >&5 23576echo $ECHO_N "checking for stack setup via sigstack... $ECHO_C" >&6 23577if test "${ac_cv_stacksetup_sigstack+set}" = set; then 23578 echo $ECHO_N "(cached) $ECHO_C" >&6 23579else 23580 23581if test ".$ac_cv_func_sigstack" = .no; then 23582 ac_cv_stacksetup_sigstack="N.A.:/*N.A.*/,/*N.A.*/" 23583else 23584 OCFLAGS="$CFLAGS" 23585 CFLAGS="$CFLAGS -DTEST_sigstack" 23586 cross_compiling=no 23587 if test "$cross_compiling" = yes; then 23588 23589ac_cv_stacksetup_sigstack='guessed:(skaddr),(sksize)' 23590 23591else 23592 cat >conftest.$ac_ext <<_ACEOF 23593/* confdefs.h. */ 23594_ACEOF 23595cat confdefs.h >>conftest.$ac_ext 23596cat >>conftest.$ac_ext <<_ACEOF 23597/* end confdefs.h. */ 23598 23599#include <stdio.h> 23600#include <stdlib.h> 23601#include <string.h> 23602#if defined(TEST_sigstack) || defined(TEST_sigaltstack) 23603#include <sys/types.h> 23604#include <signal.h> 23605#include <unistd.h> 23606#endif 23607#if defined(TEST_makecontext) 23608#include <ucontext.h> 23609#endif 23610union alltypes { 23611 long l; 23612 double d; 23613 void *vp; 23614 void (*fp)(void); 23615 char *cp; 23616}; 23617static volatile char *handler_addr = (char *)0xDEAD; 23618#if defined(TEST_sigstack) || defined(TEST_sigaltstack) 23619static volatile int handler_done = 0; 23620void handler(int sig) 23621{ 23622 char garbage[1024]; 23623 int i; 23624 auto int dummy; 23625 for (i = 0; i < 1024; i++) 23626 garbage[i] = 'X'; 23627 handler_addr = (char *)&dummy; 23628 handler_done = 1; 23629 return; 23630} 23631#endif 23632#if defined(TEST_makecontext) 23633static ucontext_t uc_handler; 23634static ucontext_t uc_main; 23635void handler(void) 23636{ 23637 char garbage[1024]; 23638 int i; 23639 auto int dummy; 23640 for (i = 0; i < 1024; i++) 23641 garbage[i] = 'X'; 23642 handler_addr = (char *)&dummy; 23643 swapcontext(&uc_handler, &uc_main); 23644 return; 23645} 23646#endif 23647int main(int argc, char *argv[]) 23648{ 23649 FILE *f; 23650 char *skaddr; 23651 char *skbuf; 23652 int sksize; 23653 char result[1024]; 23654 int i; 23655 sksize = 32768; 23656 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes)); 23657 if (skbuf == NULL) 23658 exit(1); 23659 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++) 23660 skbuf[i] = 'A'; 23661 skaddr = skbuf+sizeof(union alltypes); 23662#if defined(TEST_sigstack) || defined(TEST_sigaltstack) 23663 { 23664 struct sigaction sa; 23665#if defined(TEST_sigstack) 23666 struct sigstack ss; 23667#elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T) 23668 stack_t ss; 23669#else 23670 struct sigaltstack ss; 23671#endif 23672#if defined(TEST_sigstack) 23673 ss.ss_sp = (void *)(skaddr + sksize); 23674 ss.ss_onstack = 0; 23675 if (sigstack(&ss, NULL) < 0) 23676 exit(1); 23677#elif defined(TEST_sigaltstack) 23678 ss.ss_sp = (void *)(skaddr + sksize); 23679 ss.ss_size = sksize; 23680 ss.ss_flags = 0; 23681 if (sigaltstack(&ss, NULL) < 0) 23682 exit(1); 23683#endif 23684 memset((void *)&sa, 0, sizeof(struct sigaction)); 23685 sa.sa_handler = handler; 23686 sa.sa_flags = SA_ONSTACK; 23687 sigemptyset(&sa.sa_mask); 23688 sigaction(SIGUSR1, &sa, NULL); 23689 kill(getpid(), SIGUSR1); 23690 while (!handler_done) 23691 /*nop*/; 23692 } 23693#endif 23694#if defined(TEST_makecontext) 23695 { 23696 if (getcontext(&uc_handler) != 0) 23697 exit(1); 23698 uc_handler.uc_link = NULL; 23699 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize); 23700 uc_handler.uc_stack.ss_size = sksize; 23701 uc_handler.uc_stack.ss_flags = 0; 23702 makecontext(&uc_handler, handler, 1); 23703 swapcontext(&uc_main, &uc_handler); 23704 } 23705#endif 23706 if (handler_addr == (char *)0xDEAD) 23707 exit(1); 23708 if (handler_addr < skaddr+sksize) { 23709 /* stack was placed into lower area */ 23710 if (*(skaddr+sksize) != 'A') 23711 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d", 23712 sizeof(union alltypes), sizeof(union alltypes)); 23713 else 23714 strcpy(result, "(skaddr)+(sksize),(sksize)"); 23715 } 23716 else { 23717 /* stack was placed into higher area */ 23718 if (*(skaddr+sksize*2) != 'A') 23719 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes)); 23720 else 23721 strcpy(result, "(skaddr),(sksize)"); 23722 } 23723 if ((f = fopen("conftestval", "w")) == NULL) 23724 exit(1); 23725 fprintf(f, "%s\n", result); 23726 fclose(f); 23727 exit(0); 23728} 23729 23730_ACEOF 23731rm -f conftest$ac_exeext 23732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23733 (eval $ac_link) 2>&5 23734 ac_status=$? 23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23738 (eval $ac_try) 2>&5 23739 ac_status=$? 23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23741 (exit $ac_status); }; }; then 23742 23743ac_cv_stacksetup_sigstack=`cat conftestval` 23744ac_cv_stacksetup_sigstack="ok:$ac_cv_stacksetup_sigstack" 23745 23746else 23747 echo "$as_me: program exited with status $ac_status" >&5 23748echo "$as_me: failed program was:" >&5 23749sed 's/^/| /' conftest.$ac_ext >&5 23750 23751( exit $ac_status ) 23752 23753ac_cv_stacksetup_sigstack='guessed:(skaddr),(sksize)' 23754 23755fi 23756rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23757fi 23758CFLAGS="$OCFLAGS" 23759 23760fi 23761fi 23762type=`echo $ac_cv_stacksetup_sigstack | sed -e 's;:.*$;;'` 23763addr=`echo $ac_cv_stacksetup_sigstack | sed -e 's;^.*:;;' -e 's;,.*$;;'` 23764size=`echo $ac_cv_stacksetup_sigstack | sed -e 's;^.*:;;' -e 's;^.*,;;'` 23765pth_skaddr_sigstack="#define pth_skaddr_sigstack(skaddr,sksize) ($addr)" 23766pth_sksize_sigstack="#define pth_sksize_sigstack(skaddr,sksize) ($size)" 23767echo "$as_me:$LINENO: result: $type" >&5 23768echo "${ECHO_T}$type" >&6 23769if test ".$verbose" = .yes; then 23770 echo "$as_me:$LINENO: result: $pth_skaddr_sigstack" >&5 23771echo "${ECHO_T} $pth_skaddr_sigstack" >&6 23772fi 23773 23774if test ".$verbose" = .yes; then 23775 echo "$as_me:$LINENO: result: $pth_sksize_sigstack" >&5 23776echo "${ECHO_T} $pth_sksize_sigstack" >&6 23777fi 23778 23779 23780 23781case $mctx_dsp in 23782 ssjlj ) 23783 pth_sigjmpbuf='sigjmp_buf' 23784 pth_sigsetjmp='sigsetjmp(buf,1)' 23785 pth_siglongjmp='siglongjmp(buf,val)' 23786 ;; 23787 sjlj ) 23788 pth_sigjmpbuf='jmp_buf' 23789 pth_sigsetjmp='setjmp(buf)' 23790 pth_siglongjmp='longjmp(buf,val)' 23791 ;; 23792 usjlj ) 23793 pth_sigjmpbuf='jmp_buf' 23794 pth_sigsetjmp='_setjmp(buf)' 23795 pth_siglongjmp='_longjmp(buf,val)' 23796 ;; 23797 sjlje ) 23798 pth_sigjmpbuf='jmp_buf' 23799 pth_sigsetjmp='setjmp(buf)' 23800 pth_siglongjmp='longjmp(buf,val)' 23801 ;; 23802 sjljlx|sjljisc|sjljw32 ) 23803 pth_sigjmpbuf='sigjmp_buf' 23804 pth_sigsetjmp='sigsetjmp(buf,1)' 23805 pth_siglongjmp='siglongjmp(buf,val)' 23806 ;; 23807 esac 23808pth_sigjmpbuf="#define pth_sigjmpbuf $pth_sigjmpbuf" 23809pth_sigsetjmp="#define pth_sigsetjmp(buf) $pth_sigsetjmp" 23810pth_siglongjmp="#define pth_siglongjmp(buf,val) $pth_siglongjmp" 23811 23812 23813 23814 23815 23816 23817cat >>confdefs.h <<_ACEOF 23818#define PTH_MCTX_MTH_use PTH_MCTX_MTH_$mctx_mth 23819_ACEOF 23820 23821 23822cat >>confdefs.h <<_ACEOF 23823#define PTH_MCTX_DSP_use PTH_MCTX_DSP_$mctx_dsp 23824_ACEOF 23825 23826 23827cat >>confdefs.h <<_ACEOF 23828#define PTH_MCTX_STK_use PTH_MCTX_STK_$mctx_stk 23829_ACEOF 23830 23831 23832PTH_MCTX_ID="$mctx_mth/$mctx_dsp/$mctx_stk" 23833echo "$as_me:$LINENO: result: decision on mctx implementation... ${TB}${PTH_MCTX_ID}${TN}" >&5 23834echo "${ECHO_T}decision on mctx implementation... ${TB}${PTH_MCTX_ID}${TN}" >&6 23835 23836 23837if test ".$verbose" = .yes; then 23838 echo "$as_me:$LINENO: result: decided mctx method: $mctx_mth" >&5 23839echo "${ECHO_T} decided mctx method: $mctx_mth" >&6 23840fi 23841 23842if test ".$verbose" = .yes; then 23843 echo "$as_me:$LINENO: result: decided mctx dispatching: $mctx_dsp" >&5 23844echo "${ECHO_T} decided mctx dispatching: $mctx_dsp" >&6 23845fi 23846 23847if test ".$verbose" = .yes; then 23848 echo "$as_me:$LINENO: result: decided mctx stack setup: $mctx_stk" >&5 23849echo "${ECHO_T} decided mctx stack setup: $mctx_stk" >&6 23850fi 23851 23852 23853 23854 23855if test ".$enable_subdir" != .yes; then 23856 echo "$as_me:$LINENO: result: " >&5 23857echo "${ECHO_T}" >&6 23858 echo "$as_me:$LINENO: result: ${TB}System Call Mapping:${TN}" >&5 23859echo "${ECHO_T}${TB}System Call Mapping:${TN}" >&6 23860fi 23861 23862 23863 23864 23865for ac_header in sys/syscall.h sys/socketcall.h 23866do 23867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23868if eval "test \"\${$as_ac_Header+set}\" = set"; then 23869 echo "$as_me:$LINENO: checking for $ac_header" >&5 23870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23871if eval "test \"\${$as_ac_Header+set}\" = set"; then 23872 echo $ECHO_N "(cached) $ECHO_C" >&6 23873fi 23874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23876else 23877 # Is the header compilable? 23878echo "$as_me:$LINENO: checking $ac_header usability" >&5 23879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 23880cat >conftest.$ac_ext <<_ACEOF 23881/* confdefs.h. */ 23882_ACEOF 23883cat confdefs.h >>conftest.$ac_ext 23884cat >>conftest.$ac_ext <<_ACEOF 23885/* end confdefs.h. */ 23886$ac_includes_default 23887#include <$ac_header> 23888_ACEOF 23889rm -f conftest.$ac_objext 23890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23891 (eval $ac_compile) 2>conftest.er1 23892 ac_status=$? 23893 grep -v '^ *+' conftest.er1 >conftest.err 23894 rm -f conftest.er1 23895 cat conftest.err >&5 23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23897 (exit $ac_status); } && 23898 { ac_try='test -z "$ac_c_werror_flag" 23899 || test ! -s conftest.err' 23900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23901 (eval $ac_try) 2>&5 23902 ac_status=$? 23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23904 (exit $ac_status); }; } && 23905 { ac_try='test -s conftest.$ac_objext' 23906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23907 (eval $ac_try) 2>&5 23908 ac_status=$? 23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23910 (exit $ac_status); }; }; then 23911 ac_header_compiler=yes 23912else 23913 echo "$as_me: failed program was:" >&5 23914sed 's/^/| /' conftest.$ac_ext >&5 23915 23916ac_header_compiler=no 23917fi 23918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23920echo "${ECHO_T}$ac_header_compiler" >&6 23921 23922# Is the header present? 23923echo "$as_me:$LINENO: checking $ac_header presence" >&5 23924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 23925cat >conftest.$ac_ext <<_ACEOF 23926/* confdefs.h. */ 23927_ACEOF 23928cat confdefs.h >>conftest.$ac_ext 23929cat >>conftest.$ac_ext <<_ACEOF 23930/* end confdefs.h. */ 23931#include <$ac_header> 23932_ACEOF 23933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 23934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 23935 ac_status=$? 23936 grep -v '^ *+' conftest.er1 >conftest.err 23937 rm -f conftest.er1 23938 cat conftest.err >&5 23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23940 (exit $ac_status); } >/dev/null; then 23941 if test -s conftest.err; then 23942 ac_cpp_err=$ac_c_preproc_warn_flag 23943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 23944 else 23945 ac_cpp_err= 23946 fi 23947else 23948 ac_cpp_err=yes 23949fi 23950if test -z "$ac_cpp_err"; then 23951 ac_header_preproc=yes 23952else 23953 echo "$as_me: failed program was:" >&5 23954sed 's/^/| /' conftest.$ac_ext >&5 23955 23956 ac_header_preproc=no 23957fi 23958rm -f conftest.err conftest.$ac_ext 23959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23960echo "${ECHO_T}$ac_header_preproc" >&6 23961 23962# So? What about this header? 23963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23964 yes:no: ) 23965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 23966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 23967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 23968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 23969 ac_header_preproc=yes 23970 ;; 23971 no:yes:* ) 23972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 23973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 23974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 23975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 23978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 23979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 23980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 23981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 23982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 23983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23984 ( 23985 cat <<\_ASBOX 23986## ------------------------------------------ ## 23987## Report this to the AC_PACKAGE_NAME lists. ## 23988## ------------------------------------------ ## 23989_ASBOX 23990 ) | 23991 sed "s/^/$as_me: WARNING: /" >&2 23992 ;; 23993esac 23994echo "$as_me:$LINENO: checking for $ac_header" >&5 23995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23996if eval "test \"\${$as_ac_Header+set}\" = set"; then 23997 echo $ECHO_N "(cached) $ECHO_C" >&6 23998else 23999 eval "$as_ac_Header=\$ac_header_preproc" 24000fi 24001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24003 24004fi 24005if test `eval echo '${'$as_ac_Header'}'` = yes; then 24006 cat >>confdefs.h <<_ACEOF 24007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24008_ACEOF 24009 24010fi 24011 24012done 24013 24014 24015for ac_func in syscall 24016do 24017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24018echo "$as_me:$LINENO: checking for $ac_func" >&5 24019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24020if eval "test \"\${$as_ac_var+set}\" = set"; then 24021 echo $ECHO_N "(cached) $ECHO_C" >&6 24022else 24023 cat >conftest.$ac_ext <<_ACEOF 24024/* confdefs.h. */ 24025_ACEOF 24026cat confdefs.h >>conftest.$ac_ext 24027cat >>conftest.$ac_ext <<_ACEOF 24028/* end confdefs.h. */ 24029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24030 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24031#define $ac_func innocuous_$ac_func 24032 24033/* System header to define __stub macros and hopefully few prototypes, 24034 which can conflict with char $ac_func (); below. 24035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24036 <limits.h> exists even on freestanding compilers. */ 24037 24038#ifdef __STDC__ 24039# include <limits.h> 24040#else 24041# include <assert.h> 24042#endif 24043 24044#undef $ac_func 24045 24046/* Override any gcc2 internal prototype to avoid an error. */ 24047#ifdef __cplusplus 24048extern "C" 24049{ 24050#endif 24051/* We use char because int might match the return type of a gcc2 24052 builtin and then its argument prototype would still apply. */ 24053char $ac_func (); 24054/* The GNU C library defines this for functions which it implements 24055 to always fail with ENOSYS. Some functions are actually named 24056 something starting with __ and the normal name is an alias. */ 24057#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24058choke me 24059#else 24060char (*f) () = $ac_func; 24061#endif 24062#ifdef __cplusplus 24063} 24064#endif 24065 24066int 24067main () 24068{ 24069return f != $ac_func; 24070 ; 24071 return 0; 24072} 24073_ACEOF 24074rm -f conftest.$ac_objext conftest$ac_exeext 24075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24076 (eval $ac_link) 2>conftest.er1 24077 ac_status=$? 24078 grep -v '^ *+' conftest.er1 >conftest.err 24079 rm -f conftest.er1 24080 cat conftest.err >&5 24081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24082 (exit $ac_status); } && 24083 { ac_try='test -z "$ac_c_werror_flag" 24084 || test ! -s conftest.err' 24085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24086 (eval $ac_try) 2>&5 24087 ac_status=$? 24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24089 (exit $ac_status); }; } && 24090 { ac_try='test -s conftest$ac_exeext' 24091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24092 (eval $ac_try) 2>&5 24093 ac_status=$? 24094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24095 (exit $ac_status); }; }; then 24096 eval "$as_ac_var=yes" 24097else 24098 echo "$as_me: failed program was:" >&5 24099sed 's/^/| /' conftest.$ac_ext >&5 24100 24101eval "$as_ac_var=no" 24102fi 24103rm -f conftest.err conftest.$ac_objext \ 24104 conftest$ac_exeext conftest.$ac_ext 24105fi 24106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 24107echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 24108if test `eval echo '${'$as_ac_var'}'` = yes; then 24109 cat >>confdefs.h <<_ACEOF 24110#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24111_ACEOF 24112 24113fi 24114done 24115 24116echo "$as_me:$LINENO: checking for define SYS_read in sys/syscall.h" >&5 24117echo $ECHO_N "checking for define SYS_read in sys/syscall.h... $ECHO_C" >&6 24118if test "${ac_cv_define_SYS_read+set}" = set; then 24119 echo $ECHO_N "(cached) $ECHO_C" >&6 24120else 24121 cat >conftest.$ac_ext <<_ACEOF 24122/* confdefs.h. */ 24123_ACEOF 24124cat confdefs.h >>conftest.$ac_ext 24125cat >>conftest.$ac_ext <<_ACEOF 24126/* end confdefs.h. */ 24127 24128#include <sys/syscall.h> 24129#ifdef SYS_read 24130YES_IS_DEFINED 24131#endif 24132 24133_ACEOF 24134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24135 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then 24136 ac_cv_define_SYS_read=yes 24137else 24138 ac_cv_define_SYS_read=no 24139fi 24140rm -f conftest* 24141 24142fi 24143echo "$as_me:$LINENO: result: $ac_cv_define_SYS_read" >&5 24144echo "${ECHO_T}$ac_cv_define_SYS_read" >&6 24145if test $ac_cv_define_SYS_read = yes; then 24146 24147cat >>confdefs.h <<\_ACEOF 24148#define HAVE_SYS_READ 1 24149_ACEOF 24150 24151fi 24152 24153 24154 24155for ac_header in dlfcn.h 24156do 24157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24158if eval "test \"\${$as_ac_Header+set}\" = set"; then 24159 echo "$as_me:$LINENO: checking for $ac_header" >&5 24160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24161if eval "test \"\${$as_ac_Header+set}\" = set"; then 24162 echo $ECHO_N "(cached) $ECHO_C" >&6 24163fi 24164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24166else 24167 # Is the header compilable? 24168echo "$as_me:$LINENO: checking $ac_header usability" >&5 24169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 24170cat >conftest.$ac_ext <<_ACEOF 24171/* confdefs.h. */ 24172_ACEOF 24173cat confdefs.h >>conftest.$ac_ext 24174cat >>conftest.$ac_ext <<_ACEOF 24175/* end confdefs.h. */ 24176$ac_includes_default 24177#include <$ac_header> 24178_ACEOF 24179rm -f conftest.$ac_objext 24180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24181 (eval $ac_compile) 2>conftest.er1 24182 ac_status=$? 24183 grep -v '^ *+' conftest.er1 >conftest.err 24184 rm -f conftest.er1 24185 cat conftest.err >&5 24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24187 (exit $ac_status); } && 24188 { ac_try='test -z "$ac_c_werror_flag" 24189 || test ! -s conftest.err' 24190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24191 (eval $ac_try) 2>&5 24192 ac_status=$? 24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24194 (exit $ac_status); }; } && 24195 { ac_try='test -s conftest.$ac_objext' 24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24197 (eval $ac_try) 2>&5 24198 ac_status=$? 24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24200 (exit $ac_status); }; }; then 24201 ac_header_compiler=yes 24202else 24203 echo "$as_me: failed program was:" >&5 24204sed 's/^/| /' conftest.$ac_ext >&5 24205 24206ac_header_compiler=no 24207fi 24208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24210echo "${ECHO_T}$ac_header_compiler" >&6 24211 24212# Is the header present? 24213echo "$as_me:$LINENO: checking $ac_header presence" >&5 24214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 24215cat >conftest.$ac_ext <<_ACEOF 24216/* confdefs.h. */ 24217_ACEOF 24218cat confdefs.h >>conftest.$ac_ext 24219cat >>conftest.$ac_ext <<_ACEOF 24220/* end confdefs.h. */ 24221#include <$ac_header> 24222_ACEOF 24223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 24224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 24225 ac_status=$? 24226 grep -v '^ *+' conftest.er1 >conftest.err 24227 rm -f conftest.er1 24228 cat conftest.err >&5 24229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24230 (exit $ac_status); } >/dev/null; then 24231 if test -s conftest.err; then 24232 ac_cpp_err=$ac_c_preproc_warn_flag 24233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 24234 else 24235 ac_cpp_err= 24236 fi 24237else 24238 ac_cpp_err=yes 24239fi 24240if test -z "$ac_cpp_err"; then 24241 ac_header_preproc=yes 24242else 24243 echo "$as_me: failed program was:" >&5 24244sed 's/^/| /' conftest.$ac_ext >&5 24245 24246 ac_header_preproc=no 24247fi 24248rm -f conftest.err conftest.$ac_ext 24249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24250echo "${ECHO_T}$ac_header_preproc" >&6 24251 24252# So? What about this header? 24253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24254 yes:no: ) 24255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24259 ac_header_preproc=yes 24260 ;; 24261 no:yes:* ) 24262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24274 ( 24275 cat <<\_ASBOX 24276## ------------------------------------------ ## 24277## Report this to the AC_PACKAGE_NAME lists. ## 24278## ------------------------------------------ ## 24279_ASBOX 24280 ) | 24281 sed "s/^/$as_me: WARNING: /" >&2 24282 ;; 24283esac 24284echo "$as_me:$LINENO: checking for $ac_header" >&5 24285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24286if eval "test \"\${$as_ac_Header+set}\" = set"; then 24287 echo $ECHO_N "(cached) $ECHO_C" >&6 24288else 24289 eval "$as_ac_Header=\$ac_header_preproc" 24290fi 24291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24293 24294fi 24295if test `eval echo '${'$as_ac_Header'}'` = yes; then 24296 cat >>confdefs.h <<_ACEOF 24297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24298_ACEOF 24299 24300fi 24301 24302done 24303 24304 24305echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 24306echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 24307if test "${ac_cv_lib_dl_dlsym+set}" = set; then 24308 echo $ECHO_N "(cached) $ECHO_C" >&6 24309else 24310 ac_check_lib_save_LIBS=$LIBS 24311LIBS="-ldl $LIBS" 24312cat >conftest.$ac_ext <<_ACEOF 24313/* confdefs.h. */ 24314_ACEOF 24315cat confdefs.h >>conftest.$ac_ext 24316cat >>conftest.$ac_ext <<_ACEOF 24317/* end confdefs.h. */ 24318 24319/* Override any gcc2 internal prototype to avoid an error. */ 24320#ifdef __cplusplus 24321extern "C" 24322#endif 24323/* We use char because int might match the return type of a gcc2 24324 builtin and then its argument prototype would still apply. */ 24325char dlsym (); 24326int 24327main () 24328{ 24329dlsym (); 24330 ; 24331 return 0; 24332} 24333_ACEOF 24334rm -f conftest.$ac_objext conftest$ac_exeext 24335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24336 (eval $ac_link) 2>conftest.er1 24337 ac_status=$? 24338 grep -v '^ *+' conftest.er1 >conftest.err 24339 rm -f conftest.er1 24340 cat conftest.err >&5 24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24342 (exit $ac_status); } && 24343 { ac_try='test -z "$ac_c_werror_flag" 24344 || test ! -s conftest.err' 24345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24346 (eval $ac_try) 2>&5 24347 ac_status=$? 24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24349 (exit $ac_status); }; } && 24350 { ac_try='test -s conftest$ac_exeext' 24351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24352 (eval $ac_try) 2>&5 24353 ac_status=$? 24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24355 (exit $ac_status); }; }; then 24356 ac_cv_lib_dl_dlsym=yes 24357else 24358 echo "$as_me: failed program was:" >&5 24359sed 's/^/| /' conftest.$ac_ext >&5 24360 24361ac_cv_lib_dl_dlsym=no 24362fi 24363rm -f conftest.err conftest.$ac_objext \ 24364 conftest$ac_exeext conftest.$ac_ext 24365LIBS=$ac_check_lib_save_LIBS 24366fi 24367echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 24368echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 24369if test $ac_cv_lib_dl_dlsym = yes; then 24370 cat >>confdefs.h <<_ACEOF 24371#define HAVE_LIBDL 1 24372_ACEOF 24373 24374 LIBS="-ldl $LIBS" 24375 24376fi 24377 24378 24379 24380 24381for ac_func in dlopen dlsym dlclose 24382do 24383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24384echo "$as_me:$LINENO: checking for $ac_func" >&5 24385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24386if eval "test \"\${$as_ac_var+set}\" = set"; then 24387 echo $ECHO_N "(cached) $ECHO_C" >&6 24388else 24389 cat >conftest.$ac_ext <<_ACEOF 24390/* confdefs.h. */ 24391_ACEOF 24392cat confdefs.h >>conftest.$ac_ext 24393cat >>conftest.$ac_ext <<_ACEOF 24394/* end confdefs.h. */ 24395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 24396 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 24397#define $ac_func innocuous_$ac_func 24398 24399/* System header to define __stub macros and hopefully few prototypes, 24400 which can conflict with char $ac_func (); below. 24401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24402 <limits.h> exists even on freestanding compilers. */ 24403 24404#ifdef __STDC__ 24405# include <limits.h> 24406#else 24407# include <assert.h> 24408#endif 24409 24410#undef $ac_func 24411 24412/* Override any gcc2 internal prototype to avoid an error. */ 24413#ifdef __cplusplus 24414extern "C" 24415{ 24416#endif 24417/* We use char because int might match the return type of a gcc2 24418 builtin and then its argument prototype would still apply. */ 24419char $ac_func (); 24420/* The GNU C library defines this for functions which it implements 24421 to always fail with ENOSYS. Some functions are actually named 24422 something starting with __ and the normal name is an alias. */ 24423#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24424choke me 24425#else 24426char (*f) () = $ac_func; 24427#endif 24428#ifdef __cplusplus 24429} 24430#endif 24431 24432int 24433main () 24434{ 24435return f != $ac_func; 24436 ; 24437 return 0; 24438} 24439_ACEOF 24440rm -f conftest.$ac_objext conftest$ac_exeext 24441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24442 (eval $ac_link) 2>conftest.er1 24443 ac_status=$? 24444 grep -v '^ *+' conftest.er1 >conftest.err 24445 rm -f conftest.er1 24446 cat conftest.err >&5 24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24448 (exit $ac_status); } && 24449 { ac_try='test -z "$ac_c_werror_flag" 24450 || test ! -s conftest.err' 24451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24452 (eval $ac_try) 2>&5 24453 ac_status=$? 24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24455 (exit $ac_status); }; } && 24456 { ac_try='test -s conftest$ac_exeext' 24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24458 (eval $ac_try) 2>&5 24459 ac_status=$? 24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24461 (exit $ac_status); }; }; then 24462 eval "$as_ac_var=yes" 24463else 24464 echo "$as_me: failed program was:" >&5 24465sed 's/^/| /' conftest.$ac_ext >&5 24466 24467eval "$as_ac_var=no" 24468fi 24469rm -f conftest.err conftest.$ac_objext \ 24470 conftest$ac_exeext conftest.$ac_ext 24471fi 24472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 24473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 24474if test `eval echo '${'$as_ac_var'}'` = yes; then 24475 cat >>confdefs.h <<_ACEOF 24476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24477_ACEOF 24478 24479fi 24480done 24481 24482echo "$as_me:$LINENO: checking for define RTLD_NEXT in dlfcn.h" >&5 24483echo $ECHO_N "checking for define RTLD_NEXT in dlfcn.h... $ECHO_C" >&6 24484if test "${ac_cv_define_RTLD_NEXT+set}" = set; then 24485 echo $ECHO_N "(cached) $ECHO_C" >&6 24486else 24487 cat >conftest.$ac_ext <<_ACEOF 24488/* confdefs.h. */ 24489_ACEOF 24490cat confdefs.h >>conftest.$ac_ext 24491cat >>conftest.$ac_ext <<_ACEOF 24492/* end confdefs.h. */ 24493 24494#include <dlfcn.h> 24495#ifdef RTLD_NEXT 24496YES_IS_DEFINED 24497#endif 24498 24499_ACEOF 24500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24501 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then 24502 ac_cv_define_RTLD_NEXT=yes 24503else 24504 ac_cv_define_RTLD_NEXT=no 24505fi 24506rm -f conftest* 24507 24508fi 24509echo "$as_me:$LINENO: result: $ac_cv_define_RTLD_NEXT" >&5 24510echo "${ECHO_T}$ac_cv_define_RTLD_NEXT" >&6 24511if test $ac_cv_define_RTLD_NEXT = yes; then 24512 24513cat >>confdefs.h <<\_ACEOF 24514#define HAVE_RTLD_NEXT 1 24515_ACEOF 24516 24517fi 24518 24519 24520echo "$as_me:$LINENO: checking for syscall dynamic libraries" >&5 24521echo $ECHO_N "checking for syscall dynamic libraries... $ECHO_C" >&6 24522pth_syscall_libs="" 24523dirs=`echo "$LDFLAGS" |\ 24524 sed -e 's;-L\([^ ]*\);<\1>;g' |\ 24525 sed -e 's;^[^<]*<;;' -e 's;>[^<]*<; ;g' -e 's;>.*$;;'` 24526dirs="$dirs /usr/lib /lib" 24527libs=`echo "$LIBS" |\ 24528 sed -e 's;-l\([^ ]*\);<\1>;g' |\ 24529 sed -e 's;^[^<]*<;;' -e 's;>[^<]*<; ;g' -e 's;>.*$;;'` 24530libs="$libs c" 24531for lib in $libs; do 24532 for dir in $dirs; do 24533 for ext in so sl; do 24534 if test -f "${dir}/lib${lib}.${ext}"; then 24535 if test ".$pth_syscall_libs" = .; then 24536 pth_syscall_libs="${dir}/lib${lib}.${ext}" 24537 else 24538 pth_syscall_libs="${pth_syscall_libs}:${dir}/lib${lib}.${ext}" 24539 fi 24540 fi 24541 done 24542 done 24543done 24544echo "$as_me:$LINENO: result: $pth_syscall_libs" >&5 24545echo "${ECHO_T}$pth_syscall_libs" >&6 24546 24547cat >>confdefs.h <<_ACEOF 24548#define PTH_SYSCALL_LIBS "$pth_syscall_libs" 24549_ACEOF 24550 24551 24552echo "$as_me:$LINENO: checking whether soft system call mapping is used" >&5 24553echo $ECHO_N "checking whether soft system call mapping is used... $ECHO_C" >&6 24554# Check whether --enable-syscall-soft or --disable-syscall-soft was given. 24555if test "${enable_syscall_soft+set}" = set; then 24556 enableval="$enable_syscall_soft" 24557 enable_syscall_soft="$enableval" 24558else 24559 if test ".$enable_syscall_soft" = .; then 24560 enable_syscall_soft=no 24561fi 24562 24563fi; if test .$enable_syscall_soft = .yes; then 24564 PTH_SYSCALL_SOFT=1 24565 msg="yes" 24566else 24567 PTH_SYSCALL_SOFT=0 24568 msg="no" 24569fi 24570echo "$as_me:$LINENO: result: $msg" >&5 24571echo "${ECHO_T}$msg" >&6 24572 24573 24574echo "$as_me:$LINENO: checking whether hard system call mapping is used" >&5 24575echo $ECHO_N "checking whether hard system call mapping is used... $ECHO_C" >&6 24576# Check whether --enable-syscall-hard or --disable-syscall-hard was given. 24577if test "${enable_syscall_hard+set}" = set; then 24578 enableval="$enable_syscall_hard" 24579 enable_syscall_hard="$enableval" 24580else 24581 24582if test ".$enable_syscall_hard" = .; then 24583 enable_syscall_hard=no 24584fi 24585 24586fi; if test ".$enable_syscall_hard" = .yes; then 24587 ac_rc=yes 24588for ac_spec in func:syscall header:sys/syscall.h define:SYS_read; do 24589 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 24590 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 24591 case $ac_type in 24592 header ) 24593 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 24594 ac_var="ac_cv_header_$ac_item" 24595 ;; 24596 file ) 24597 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 24598 ac_var="ac_cv_file_$ac_item" 24599 ;; 24600 func ) ac_var="ac_cv_func_$ac_item" ;; 24601 lib ) ac_var="ac_cv_lib_$ac_item" ;; 24602 define ) ac_var="ac_cv_define_$ac_item" ;; 24603 typedef ) ac_var="ac_cv_typedef_$ac_item" ;; 24604 custom ) ac_var="$ac_item" ;; 24605 esac 24606 eval "ac_val=\$$ac_var" 24607 if test ".$ac_val" != .yes; then 24608 ac_rc=no 24609 break 24610 fi 24611done 24612if test ".$ac_rc" = .yes; then 24613 : 24614 enable_syscall_hard=yes 24615else 24616 : 24617 enable_syscall_hard=no 24618fi 24619 24620fi 24621if test ".$enable_syscall_hard" = .yes; then 24622 PTH_SYSCALL_HARD=1 24623 msg="yes" 24624else 24625 PTH_SYSCALL_HARD=0 24626 msg="no" 24627fi 24628echo "$as_me:$LINENO: result: $msg" >&5 24629echo "${ECHO_T}$msg" >&6 24630 24631if test ".$enable_syscall_hard" = .yes; then 24632 echo "${TB}Warning: The hard system call mapping variant is an experimental feature.${TN}" 24633 echo "${TB} It is not guaranteed to work if the mapped system calls on your${TN}" 24634 echo "${TB} platform do not 100% comply to the POSIX.1-2001/SUSv3 prototypes.${TN}" 24635fi 24636 24637 24638 24639if test ".$enable_subdir" != .yes; then 24640 echo "$as_me:$LINENO: result: " >&5 24641echo "${ECHO_T}" >&6 24642 echo "$as_me:$LINENO: result: ${TB}Build Parameters:${TN}" >&5 24643echo "${ECHO_T}${TB}Build Parameters:${TN}" >&6 24644fi 24645 24646 24647echo "$as_me:$LINENO: checking whether to activate batch build mode" >&5 24648echo $ECHO_N "checking whether to activate batch build mode... $ECHO_C" >&6 24649# Check whether --enable-batch or --disable-batch was given. 24650if test "${enable_batch+set}" = set; then 24651 enableval="$enable_batch" 24652 24653else 24654 enable_batch=no 24655 24656fi; if test ".$silent" = .yes; then 24657 enable_batch=yes 24658fi 24659echo "$as_me:$LINENO: result: $enable_batch" >&5 24660echo "${ECHO_T}$enable_batch" >&6 24661BATCH="$enable_batch" 24662 24663TARGET_ALL='$(TARGET_PREQ) $(TARGET_LIBS)' 24664echo "$as_me:$LINENO: checking whether to activate maintainer build targets" >&5 24665echo $ECHO_N "checking whether to activate maintainer build targets... $ECHO_C" >&6 24666# Check whether --enable-maintainer or --disable-maintainer was given. 24667if test "${enable_maintainer+set}" = set; then 24668 enableval="$enable_maintainer" 24669 24670else 24671 enable_maintainer=no 24672 24673fi; echo "$as_me:$LINENO: result: $enable_maintainer" >&5 24674echo "${ECHO_T}$enable_maintainer" >&6 24675if test ".$enable_maintainer" = .yes; then 24676 TARGET_ALL="$TARGET_ALL \$(TARGET_MANS)" 24677fi 24678echo "$as_me:$LINENO: checking whether to activate test build targets" >&5 24679echo $ECHO_N "checking whether to activate test build targets... $ECHO_C" >&6 24680# Check whether --enable-tests or --disable-tests was given. 24681if test "${enable_tests+set}" = set; then 24682 enableval="$enable_tests" 24683 24684else 24685 enable_tests=yes 24686 24687fi; echo "$as_me:$LINENO: result: $enable_tests" >&5 24688echo "${ECHO_T}$enable_tests" >&6 24689if test ".$enable_tests" = .yes; then 24690 TARGET_ALL="$TARGET_ALL \$(TARGET_TEST)" 24691fi 24692 24693 24694 24695echo "$as_me:$LINENO: checking whether to build Pthread library" >&5 24696echo $ECHO_N "checking whether to build Pthread library... $ECHO_C" >&6 24697# Check whether --enable-pthread or --disable-pthread was given. 24698if test "${enable_pthread+set}" = set; then 24699 enableval="$enable_pthread" 24700 enable_pthread="$enableval" 24701else 24702 if test ".$enable_pthread" = .; then 24703 enable_pthread=no 24704fi 24705 24706fi; echo "$as_me:$LINENO: result: $enable_pthread" >&5 24707echo "${ECHO_T}$enable_pthread" >&6 24708if test ".$enable_pthread" = .yes; then 24709 PTHREAD_O=pthread.o LIBPTHREAD_A=libpthread.a LIBPTHREAD_LA=libpthread.la 24710 PTHREAD_CONFIG_1='$(S)pthread-config.1' 24711 PTHREAD_3='$(S)pthread.3' 24712 INSTALL_PTHREAD=install-pthread 24713 UNINSTALL_PTHREAD=uninstall-pthread 24714 TEST_PTHREAD=test_pthread 24715 enable_syscall_soft=yes 24716 PTH_SYSCALL_SOFT=1 24717 24718for ac_header in pthread.h 24719do 24720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24721if eval "test \"\${$as_ac_Header+set}\" = set"; then 24722 echo "$as_me:$LINENO: checking for $ac_header" >&5 24723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24724if eval "test \"\${$as_ac_Header+set}\" = set"; then 24725 echo $ECHO_N "(cached) $ECHO_C" >&6 24726fi 24727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24729else 24730 # Is the header compilable? 24731echo "$as_me:$LINENO: checking $ac_header usability" >&5 24732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 24733cat >conftest.$ac_ext <<_ACEOF 24734/* confdefs.h. */ 24735_ACEOF 24736cat confdefs.h >>conftest.$ac_ext 24737cat >>conftest.$ac_ext <<_ACEOF 24738/* end confdefs.h. */ 24739$ac_includes_default 24740#include <$ac_header> 24741_ACEOF 24742rm -f conftest.$ac_objext 24743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24744 (eval $ac_compile) 2>conftest.er1 24745 ac_status=$? 24746 grep -v '^ *+' conftest.er1 >conftest.err 24747 rm -f conftest.er1 24748 cat conftest.err >&5 24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24750 (exit $ac_status); } && 24751 { ac_try='test -z "$ac_c_werror_flag" 24752 || test ! -s conftest.err' 24753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24754 (eval $ac_try) 2>&5 24755 ac_status=$? 24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24757 (exit $ac_status); }; } && 24758 { ac_try='test -s conftest.$ac_objext' 24759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24760 (eval $ac_try) 2>&5 24761 ac_status=$? 24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24763 (exit $ac_status); }; }; then 24764 ac_header_compiler=yes 24765else 24766 echo "$as_me: failed program was:" >&5 24767sed 's/^/| /' conftest.$ac_ext >&5 24768 24769ac_header_compiler=no 24770fi 24771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 24773echo "${ECHO_T}$ac_header_compiler" >&6 24774 24775# Is the header present? 24776echo "$as_me:$LINENO: checking $ac_header presence" >&5 24777echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 24778cat >conftest.$ac_ext <<_ACEOF 24779/* confdefs.h. */ 24780_ACEOF 24781cat confdefs.h >>conftest.$ac_ext 24782cat >>conftest.$ac_ext <<_ACEOF 24783/* end confdefs.h. */ 24784#include <$ac_header> 24785_ACEOF 24786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 24787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 24788 ac_status=$? 24789 grep -v '^ *+' conftest.er1 >conftest.err 24790 rm -f conftest.er1 24791 cat conftest.err >&5 24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24793 (exit $ac_status); } >/dev/null; then 24794 if test -s conftest.err; then 24795 ac_cpp_err=$ac_c_preproc_warn_flag 24796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 24797 else 24798 ac_cpp_err= 24799 fi 24800else 24801 ac_cpp_err=yes 24802fi 24803if test -z "$ac_cpp_err"; then 24804 ac_header_preproc=yes 24805else 24806 echo "$as_me: failed program was:" >&5 24807sed 's/^/| /' conftest.$ac_ext >&5 24808 24809 ac_header_preproc=no 24810fi 24811rm -f conftest.err conftest.$ac_ext 24812echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 24813echo "${ECHO_T}$ac_header_preproc" >&6 24814 24815# So? What about this header? 24816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 24817 yes:no: ) 24818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 24819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 24820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 24821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 24822 ac_header_preproc=yes 24823 ;; 24824 no:yes:* ) 24825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 24826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 24827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 24828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 24829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 24830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 24831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 24832echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 24833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 24834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 24835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 24836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 24837 ( 24838 cat <<\_ASBOX 24839## ------------------------------------------ ## 24840## Report this to the AC_PACKAGE_NAME lists. ## 24841## ------------------------------------------ ## 24842_ASBOX 24843 ) | 24844 sed "s/^/$as_me: WARNING: /" >&2 24845 ;; 24846esac 24847echo "$as_me:$LINENO: checking for $ac_header" >&5 24848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24849if eval "test \"\${$as_ac_Header+set}\" = set"; then 24850 echo $ECHO_N "(cached) $ECHO_C" >&6 24851else 24852 eval "$as_ac_Header=\$ac_header_preproc" 24853fi 24854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24856 24857fi 24858if test `eval echo '${'$as_ac_Header'}'` = yes; then 24859 cat >>confdefs.h <<_ACEOF 24860#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 24861_ACEOF 24862 24863fi 24864 24865done 24866 24867 ac_warn=no 24868 if test ".$ac_cv_header_pthread_h" = .yes; then 24869 warn=yes 24870 24871 case $PLATFORM in 24872 *-*-freebsd* ) ac_warn=no ;; 24873 *-*-linux* ) ac_warn=no ;; 24874 *-*-solaris* ) ac_warn=no ;; 24875 *-*-irix* ) ac_warn=no ;; 24876 esac 24877 24878 fi 24879 if test ".$ac_warn" = .yes; then 24880 echo "${TB}Warning: You seem to have a vendor Pthread library installed.${TN}" 24881 echo "${TB} There might be conflicts with its pthread.h under compile-time!${TN}" 24882 fi 24883else 24884 PTHREAD_O="" LIBPTHREAD_A="" LIBPTHREAD_LA="" 24885 PTHREAD_CONFIG_1="" 24886 PTHREAD_3="" 24887 INSTALL_PTHREAD="" 24888 UNINSTALL_PTHREAD="" 24889 TEST_PTHREAD="" 24890fi 24891 24892 24893 24894 24895 24896 24897 24898 24899 24900 24901# Check whether --with-ex or --without-ex was given. 24902if test "${with_ex+set}" = set; then 24903 withval="$with_ex" 24904 if test ".$with_ex" = .yes; then 24905 # via config script in PATH 24906 ex_version=`(ex-config --version) 2>/dev/null` 24907 if test ".$ex_version" != .; then 24908 CPPFLAGS="$CPPFLAGS `ex-config --cflags`" 24909 CFLAGS="$CFLAGS `ex-config --cflags`" 24910 LDFLAGS="$LDFLAGS `ex-config --ldflags`" 24911 fi 24912 else 24913 if test -d "$with_ex"; then 24914 found=0 24915 # via config script 24916 for dir in $with_ex/bin $with_ex; do 24917 if test -f "$dir/ex-config" && test ! -f "$dir/ex-config.in"; then 24918 ex_version=`($dir/ex-config --version) 2>/dev/null` 24919 if test ".$ex_version" != .; then 24920 CPPFLAGS="$CPPFLAGS `$dir/ex-config --cflags`" 24921 CFLAGS="$CFLAGS `$dir/ex-config --cflags`" 24922 LDFLAGS="$LDFLAGS `$dir/ex-config --ldflags`" 24923 found=1 24924 break 24925 fi 24926 fi 24927 done 24928 # in standard sub-areas 24929 if test ".$found" = .0; then 24930 for dir in $with_ex/include/ex $with_ex/include $with_ex; do 24931 if test -f "$dir/ex.h"; then 24932 CPPFLAGS="$CPPFLAGS -I$dir" 24933 CFLAGS="$CFLAGS -I$dir" 24934 found=1 24935 break 24936 fi 24937 done 24938 for dir in $with_ex/lib/ex $with_ex/lib $with_ex; do 24939 if test -f "$dir/libex.la" && test -d "$dir/.libs"; then 24940 LDFLAGS="$LDFLAGS -L$dir -L$dir/.libs" 24941 found=1 24942 break 24943 elif test -f "$dir/libex.a" || test -f "$dir/libex.so"; then 24944 LDFLAGS="$LDFLAGS -L$dir" 24945 found=1 24946 break 24947 fi 24948 done 24949 fi 24950 # in any sub-area 24951 if test ".$found" = .0; then 24952 for file in x `find $with_ex -name "ex.h" -type f -print`; do 24953 test .$file = .x && continue 24954 dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` 24955 CPPFLAGS="$CPPFLAGS -I$dir" 24956 CFLAGS="$CFLAGS -I$dir" 24957 done 24958 for file in x `find $with_ex -name "libex.[aso]" -type f -print`; do 24959 test .$file = .x && continue 24960 dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` 24961 LDFLAGS="$LDFLAGS -L$dir" 24962 done 24963 fi 24964 fi 24965 fi 24966 24967for ac_header in ex.h 24968do 24969as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 24970if eval "test \"\${$as_ac_Header+set}\" = set"; then 24971 echo "$as_me:$LINENO: checking for $ac_header" >&5 24972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 24973if eval "test \"\${$as_ac_Header+set}\" = set"; then 24974 echo $ECHO_N "(cached) $ECHO_C" >&6 24975fi 24976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 24977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 24978else 24979 # Is the header compilable? 24980echo "$as_me:$LINENO: checking $ac_header usability" >&5 24981echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 24982cat >conftest.$ac_ext <<_ACEOF 24983/* confdefs.h. */ 24984_ACEOF 24985cat confdefs.h >>conftest.$ac_ext 24986cat >>conftest.$ac_ext <<_ACEOF 24987/* end confdefs.h. */ 24988$ac_includes_default 24989#include <$ac_header> 24990_ACEOF 24991rm -f conftest.$ac_objext 24992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24993 (eval $ac_compile) 2>conftest.er1 24994 ac_status=$? 24995 grep -v '^ *+' conftest.er1 >conftest.err 24996 rm -f conftest.er1 24997 cat conftest.err >&5 24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24999 (exit $ac_status); } && 25000 { ac_try='test -z "$ac_c_werror_flag" 25001 || test ! -s conftest.err' 25002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25003 (eval $ac_try) 2>&5 25004 ac_status=$? 25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25006 (exit $ac_status); }; } && 25007 { ac_try='test -s conftest.$ac_objext' 25008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25009 (eval $ac_try) 2>&5 25010 ac_status=$? 25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25012 (exit $ac_status); }; }; then 25013 ac_header_compiler=yes 25014else 25015 echo "$as_me: failed program was:" >&5 25016sed 's/^/| /' conftest.$ac_ext >&5 25017 25018ac_header_compiler=no 25019fi 25020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25021echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 25022echo "${ECHO_T}$ac_header_compiler" >&6 25023 25024# Is the header present? 25025echo "$as_me:$LINENO: checking $ac_header presence" >&5 25026echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 25027cat >conftest.$ac_ext <<_ACEOF 25028/* confdefs.h. */ 25029_ACEOF 25030cat confdefs.h >>conftest.$ac_ext 25031cat >>conftest.$ac_ext <<_ACEOF 25032/* end confdefs.h. */ 25033#include <$ac_header> 25034_ACEOF 25035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 25036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 25037 ac_status=$? 25038 grep -v '^ *+' conftest.er1 >conftest.err 25039 rm -f conftest.er1 25040 cat conftest.err >&5 25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25042 (exit $ac_status); } >/dev/null; then 25043 if test -s conftest.err; then 25044 ac_cpp_err=$ac_c_preproc_warn_flag 25045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 25046 else 25047 ac_cpp_err= 25048 fi 25049else 25050 ac_cpp_err=yes 25051fi 25052if test -z "$ac_cpp_err"; then 25053 ac_header_preproc=yes 25054else 25055 echo "$as_me: failed program was:" >&5 25056sed 's/^/| /' conftest.$ac_ext >&5 25057 25058 ac_header_preproc=no 25059fi 25060rm -f conftest.err conftest.$ac_ext 25061echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 25062echo "${ECHO_T}$ac_header_preproc" >&6 25063 25064# So? What about this header? 25065case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 25066 yes:no: ) 25067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 25068echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 25069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 25070echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 25071 ac_header_preproc=yes 25072 ;; 25073 no:yes:* ) 25074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 25075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 25076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 25077echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 25078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 25079echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 25080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 25081echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 25082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 25083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 25084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 25085echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 25086 ( 25087 cat <<\_ASBOX 25088## ------------------------------------------ ## 25089## Report this to the AC_PACKAGE_NAME lists. ## 25090## ------------------------------------------ ## 25091_ASBOX 25092 ) | 25093 sed "s/^/$as_me: WARNING: /" >&2 25094 ;; 25095esac 25096echo "$as_me:$LINENO: checking for $ac_header" >&5 25097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 25098if eval "test \"\${$as_ac_Header+set}\" = set"; then 25099 echo $ECHO_N "(cached) $ECHO_C" >&6 25100else 25101 eval "$as_ac_Header=\$ac_header_preproc" 25102fi 25103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 25104echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 25105 25106fi 25107if test `eval echo '${'$as_ac_Header'}'` = yes; then 25108 cat >>confdefs.h <<_ACEOF 25109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25110_ACEOF 25111 25112fi 25113 25114done 25115 25116 25117echo "$as_me:$LINENO: checking for __ex_ctx in -lex" >&5 25118echo $ECHO_N "checking for __ex_ctx in -lex... $ECHO_C" >&6 25119if test "${ac_cv_lib_ex___ex_ctx+set}" = set; then 25120 echo $ECHO_N "(cached) $ECHO_C" >&6 25121else 25122 ac_check_lib_save_LIBS=$LIBS 25123LIBS="-lex $LIBS" 25124cat >conftest.$ac_ext <<_ACEOF 25125/* confdefs.h. */ 25126_ACEOF 25127cat confdefs.h >>conftest.$ac_ext 25128cat >>conftest.$ac_ext <<_ACEOF 25129/* end confdefs.h. */ 25130 25131/* Override any gcc2 internal prototype to avoid an error. */ 25132#ifdef __cplusplus 25133extern "C" 25134#endif 25135/* We use char because int might match the return type of a gcc2 25136 builtin and then its argument prototype would still apply. */ 25137char __ex_ctx (); 25138int 25139main () 25140{ 25141__ex_ctx (); 25142 ; 25143 return 0; 25144} 25145_ACEOF 25146rm -f conftest.$ac_objext conftest$ac_exeext 25147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25148 (eval $ac_link) 2>conftest.er1 25149 ac_status=$? 25150 grep -v '^ *+' conftest.er1 >conftest.err 25151 rm -f conftest.er1 25152 cat conftest.err >&5 25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25154 (exit $ac_status); } && 25155 { ac_try='test -z "$ac_c_werror_flag" 25156 || test ! -s conftest.err' 25157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25158 (eval $ac_try) 2>&5 25159 ac_status=$? 25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25161 (exit $ac_status); }; } && 25162 { ac_try='test -s conftest$ac_exeext' 25163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25164 (eval $ac_try) 2>&5 25165 ac_status=$? 25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25167 (exit $ac_status); }; }; then 25168 ac_cv_lib_ex___ex_ctx=yes 25169else 25170 echo "$as_me: failed program was:" >&5 25171sed 's/^/| /' conftest.$ac_ext >&5 25172 25173ac_cv_lib_ex___ex_ctx=no 25174fi 25175rm -f conftest.err conftest.$ac_objext \ 25176 conftest$ac_exeext conftest.$ac_ext 25177LIBS=$ac_check_lib_save_LIBS 25178fi 25179echo "$as_me:$LINENO: result: $ac_cv_lib_ex___ex_ctx" >&5 25180echo "${ECHO_T}$ac_cv_lib_ex___ex_ctx" >&6 25181if test $ac_cv_lib_ex___ex_ctx = yes; then 25182 cat >>confdefs.h <<_ACEOF 25183#define HAVE_LIBEX 1 25184_ACEOF 25185 25186 LIBS="-lex $LIBS" 25187 25188fi 25189 25190 with_ex=yes 25191 ac_var="ac_cv_header_`echo ex.h | sed 'y%./+-%__p_%'`" 25192 eval "ac_val=\$$ac_var" 25193 if test ".$ac_val" != .yes; then 25194 with_ex=no 25195 fi 25196 if test ".$ac_cv_lib_ex___ex_ctx" != .yes; then 25197 with_ex=no 25198 fi 25199 if test ".$with_ex" = .no; then 25200 { { echo "$as_me:$LINENO: error: Unable to find OSSP ex library" >&5 25201echo "$as_me: error: Unable to find OSSP ex library" >&2;} 25202 { (exit 1); exit 1; }; } 25203 fi 25204 25205else 25206 if test ".$with_ex" = .; then 25207 with_ex=no 25208fi 25209 25210fi; echo "$as_me:$LINENO: checking whether to build against external OSSP ex library" >&5 25211echo $ECHO_N "checking whether to build against external OSSP ex library... $ECHO_C" >&6 25212if test ".$with_ex" = .yes; then 25213 25214cat >>confdefs.h <<\_ACEOF 25215#define PTH_EX 1 25216_ACEOF 25217 25218else 25219 : 25220fi 25221echo "$as_me:$LINENO: result: $with_ex" >&5 25222echo "${ECHO_T}$with_ex" >&6 25223 25224 25225PTH_EXT_SFIO=0 25226 25227# Check whether --with-sfio or --without-sfio was given. 25228if test "${with_sfio+set}" = set; then 25229 withval="$with_sfio" 25230 if test ".$with_sfio" = .yes; then 25231 # via config script in PATH 25232 sfio_version=`(sfio-config --version) 2>/dev/null` 25233 if test ".$sfio_version" != .; then 25234 CPPFLAGS="$CPPFLAGS `sfio-config --cflags`" 25235 CFLAGS="$CFLAGS `sfio-config --cflags`" 25236 LDFLAGS="$LDFLAGS `sfio-config --ldflags`" 25237 fi 25238 else 25239 if test -d "$with_sfio"; then 25240 found=0 25241 # via config script 25242 for dir in $with_sfio/bin $with_sfio; do 25243 if test -f "$dir/sfio-config" && test ! -f "$dir/sfio-config.in"; then 25244 sfio_version=`($dir/sfio-config --version) 2>/dev/null` 25245 if test ".$sfio_version" != .; then 25246 CPPFLAGS="$CPPFLAGS `$dir/sfio-config --cflags`" 25247 CFLAGS="$CFLAGS `$dir/sfio-config --cflags`" 25248 LDFLAGS="$LDFLAGS `$dir/sfio-config --ldflags`" 25249 found=1 25250 break 25251 fi 25252 fi 25253 done 25254 # in standard sub-areas 25255 if test ".$found" = .0; then 25256 for dir in $with_sfio/include/sfio $with_sfio/include $with_sfio; do 25257 if test -f "$dir/sfio.h"; then 25258 CPPFLAGS="$CPPFLAGS -I$dir" 25259 CFLAGS="$CFLAGS -I$dir" 25260 found=1 25261 break 25262 fi 25263 done 25264 for dir in $with_sfio/lib/sfio $with_sfio/lib $with_sfio; do 25265 if test -f "$dir/libsfio.la" && test -d "$dir/.libs"; then 25266 LDFLAGS="$LDFLAGS -L$dir -L$dir/.libs" 25267 found=1 25268 break 25269 elif test -f "$dir/libsfio.a" || test -f "$dir/libsfio.so"; then 25270 LDFLAGS="$LDFLAGS -L$dir" 25271 found=1 25272 break 25273 fi 25274 done 25275 fi 25276 # in any sub-area 25277 if test ".$found" = .0; then 25278 for file in x `find $with_sfio -name "sfio.h" -type f -print`; do 25279 test .$file = .x && continue 25280 dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` 25281 CPPFLAGS="$CPPFLAGS -I$dir" 25282 CFLAGS="$CFLAGS -I$dir" 25283 done 25284 for file in x `find $with_sfio -name "libsfio.[aso]" -type f -print`; do 25285 test .$file = .x && continue 25286 dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` 25287 LDFLAGS="$LDFLAGS -L$dir" 25288 done 25289 fi 25290 fi 25291 fi 25292 25293for ac_header in sfio.h 25294do 25295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25296if eval "test \"\${$as_ac_Header+set}\" = set"; then 25297 echo "$as_me:$LINENO: checking for $ac_header" >&5 25298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 25299if eval "test \"\${$as_ac_Header+set}\" = set"; then 25300 echo $ECHO_N "(cached) $ECHO_C" >&6 25301fi 25302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 25303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 25304else 25305 # Is the header compilable? 25306echo "$as_me:$LINENO: checking $ac_header usability" >&5 25307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 25308cat >conftest.$ac_ext <<_ACEOF 25309/* confdefs.h. */ 25310_ACEOF 25311cat confdefs.h >>conftest.$ac_ext 25312cat >>conftest.$ac_ext <<_ACEOF 25313/* end confdefs.h. */ 25314$ac_includes_default 25315#include <$ac_header> 25316_ACEOF 25317rm -f conftest.$ac_objext 25318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25319 (eval $ac_compile) 2>conftest.er1 25320 ac_status=$? 25321 grep -v '^ *+' conftest.er1 >conftest.err 25322 rm -f conftest.er1 25323 cat conftest.err >&5 25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25325 (exit $ac_status); } && 25326 { ac_try='test -z "$ac_c_werror_flag" 25327 || test ! -s conftest.err' 25328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25329 (eval $ac_try) 2>&5 25330 ac_status=$? 25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25332 (exit $ac_status); }; } && 25333 { ac_try='test -s conftest.$ac_objext' 25334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25335 (eval $ac_try) 2>&5 25336 ac_status=$? 25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25338 (exit $ac_status); }; }; then 25339 ac_header_compiler=yes 25340else 25341 echo "$as_me: failed program was:" >&5 25342sed 's/^/| /' conftest.$ac_ext >&5 25343 25344ac_header_compiler=no 25345fi 25346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 25348echo "${ECHO_T}$ac_header_compiler" >&6 25349 25350# Is the header present? 25351echo "$as_me:$LINENO: checking $ac_header presence" >&5 25352echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 25353cat >conftest.$ac_ext <<_ACEOF 25354/* confdefs.h. */ 25355_ACEOF 25356cat confdefs.h >>conftest.$ac_ext 25357cat >>conftest.$ac_ext <<_ACEOF 25358/* end confdefs.h. */ 25359#include <$ac_header> 25360_ACEOF 25361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 25362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 25363 ac_status=$? 25364 grep -v '^ *+' conftest.er1 >conftest.err 25365 rm -f conftest.er1 25366 cat conftest.err >&5 25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25368 (exit $ac_status); } >/dev/null; then 25369 if test -s conftest.err; then 25370 ac_cpp_err=$ac_c_preproc_warn_flag 25371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 25372 else 25373 ac_cpp_err= 25374 fi 25375else 25376 ac_cpp_err=yes 25377fi 25378if test -z "$ac_cpp_err"; then 25379 ac_header_preproc=yes 25380else 25381 echo "$as_me: failed program was:" >&5 25382sed 's/^/| /' conftest.$ac_ext >&5 25383 25384 ac_header_preproc=no 25385fi 25386rm -f conftest.err conftest.$ac_ext 25387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 25388echo "${ECHO_T}$ac_header_preproc" >&6 25389 25390# So? What about this header? 25391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 25392 yes:no: ) 25393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 25394echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 25395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 25396echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 25397 ac_header_preproc=yes 25398 ;; 25399 no:yes:* ) 25400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 25401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 25402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 25403echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 25404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 25405echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 25406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 25407echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 25408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 25409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 25410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 25411echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 25412 ( 25413 cat <<\_ASBOX 25414## ------------------------------------------ ## 25415## Report this to the AC_PACKAGE_NAME lists. ## 25416## ------------------------------------------ ## 25417_ASBOX 25418 ) | 25419 sed "s/^/$as_me: WARNING: /" >&2 25420 ;; 25421esac 25422echo "$as_me:$LINENO: checking for $ac_header" >&5 25423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 25424if eval "test \"\${$as_ac_Header+set}\" = set"; then 25425 echo $ECHO_N "(cached) $ECHO_C" >&6 25426else 25427 eval "$as_ac_Header=\$ac_header_preproc" 25428fi 25429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 25430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 25431 25432fi 25433if test `eval echo '${'$as_ac_Header'}'` = yes; then 25434 cat >>confdefs.h <<_ACEOF 25435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25436_ACEOF 25437 25438fi 25439 25440done 25441 25442 25443echo "$as_me:$LINENO: checking for sfdisc in -lsfio" >&5 25444echo $ECHO_N "checking for sfdisc in -lsfio... $ECHO_C" >&6 25445if test "${ac_cv_lib_sfio_sfdisc+set}" = set; then 25446 echo $ECHO_N "(cached) $ECHO_C" >&6 25447else 25448 ac_check_lib_save_LIBS=$LIBS 25449LIBS="-lsfio $LIBS" 25450cat >conftest.$ac_ext <<_ACEOF 25451/* confdefs.h. */ 25452_ACEOF 25453cat confdefs.h >>conftest.$ac_ext 25454cat >>conftest.$ac_ext <<_ACEOF 25455/* end confdefs.h. */ 25456 25457/* Override any gcc2 internal prototype to avoid an error. */ 25458#ifdef __cplusplus 25459extern "C" 25460#endif 25461/* We use char because int might match the return type of a gcc2 25462 builtin and then its argument prototype would still apply. */ 25463char sfdisc (); 25464int 25465main () 25466{ 25467sfdisc (); 25468 ; 25469 return 0; 25470} 25471_ACEOF 25472rm -f conftest.$ac_objext conftest$ac_exeext 25473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25474 (eval $ac_link) 2>conftest.er1 25475 ac_status=$? 25476 grep -v '^ *+' conftest.er1 >conftest.err 25477 rm -f conftest.er1 25478 cat conftest.err >&5 25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25480 (exit $ac_status); } && 25481 { ac_try='test -z "$ac_c_werror_flag" 25482 || test ! -s conftest.err' 25483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25484 (eval $ac_try) 2>&5 25485 ac_status=$? 25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25487 (exit $ac_status); }; } && 25488 { ac_try='test -s conftest$ac_exeext' 25489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25490 (eval $ac_try) 2>&5 25491 ac_status=$? 25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25493 (exit $ac_status); }; }; then 25494 ac_cv_lib_sfio_sfdisc=yes 25495else 25496 echo "$as_me: failed program was:" >&5 25497sed 's/^/| /' conftest.$ac_ext >&5 25498 25499ac_cv_lib_sfio_sfdisc=no 25500fi 25501rm -f conftest.err conftest.$ac_objext \ 25502 conftest$ac_exeext conftest.$ac_ext 25503LIBS=$ac_check_lib_save_LIBS 25504fi 25505echo "$as_me:$LINENO: result: $ac_cv_lib_sfio_sfdisc" >&5 25506echo "${ECHO_T}$ac_cv_lib_sfio_sfdisc" >&6 25507if test $ac_cv_lib_sfio_sfdisc = yes; then 25508 cat >>confdefs.h <<_ACEOF 25509#define HAVE_LIBSFIO 1 25510_ACEOF 25511 25512 LIBS="-lsfio $LIBS" 25513 25514fi 25515 25516 with_sfio=yes 25517 ac_var="ac_cv_header_`echo sfio.h | sed 'y%./+-%__p_%'`" 25518 eval "ac_val=\$$ac_var" 25519 if test ".$ac_val" != .yes; then 25520 with_sfio=no 25521 fi 25522 if test ".$ac_cv_lib_sfio_sfdisc" != .yes; then 25523 with_sfio=no 25524 fi 25525 if test ".$with_sfio" = .no; then 25526 { { echo "$as_me:$LINENO: error: Unable to find Sfio library" >&5 25527echo "$as_me: error: Unable to find Sfio library" >&2;} 25528 { (exit 1); exit 1; }; } 25529 fi 25530 25531else 25532 if test ".$with_sfio" = .; then 25533 with_sfio=no 25534fi 25535 25536fi; echo "$as_me:$LINENO: checking whether to build against external Sfio library" >&5 25537echo $ECHO_N "checking whether to build against external Sfio library... $ECHO_C" >&6 25538if test ".$with_sfio" = .yes; then 25539 PTH_EXT_SFIO=1 25540else 25541 : 25542fi 25543echo "$as_me:$LINENO: result: $with_sfio" >&5 25544echo "${ECHO_T}$with_sfio" >&6 25545 25546 25547 25548 25549# Check whether --with-dmalloc or --without-dmalloc was given. 25550if test "${with_dmalloc+set}" = set; then 25551 withval="$with_dmalloc" 25552 if test ".$with_dmalloc" = .yes; then 25553 # via config script in PATH 25554 dmalloc_version=`(dmalloc-config --version) 2>/dev/null` 25555 if test ".$dmalloc_version" != .; then 25556 CPPFLAGS="$CPPFLAGS `dmalloc-config --cflags`" 25557 CFLAGS="$CFLAGS `dmalloc-config --cflags`" 25558 LDFLAGS="$LDFLAGS `dmalloc-config --ldflags`" 25559 fi 25560 else 25561 if test -d "$with_dmalloc"; then 25562 found=0 25563 # via config script 25564 for dir in $with_dmalloc/bin $with_dmalloc; do 25565 if test -f "$dir/dmalloc-config" && test ! -f "$dir/dmalloc-config.in"; then 25566 dmalloc_version=`($dir/dmalloc-config --version) 2>/dev/null` 25567 if test ".$dmalloc_version" != .; then 25568 CPPFLAGS="$CPPFLAGS `$dir/dmalloc-config --cflags`" 25569 CFLAGS="$CFLAGS `$dir/dmalloc-config --cflags`" 25570 LDFLAGS="$LDFLAGS `$dir/dmalloc-config --ldflags`" 25571 found=1 25572 break 25573 fi 25574 fi 25575 done 25576 # in standard sub-areas 25577 if test ".$found" = .0; then 25578 for dir in $with_dmalloc/include/dmalloc $with_dmalloc/include $with_dmalloc; do 25579 if test -f "$dir/dmalloc.h"; then 25580 CPPFLAGS="$CPPFLAGS -I$dir" 25581 CFLAGS="$CFLAGS -I$dir" 25582 found=1 25583 break 25584 fi 25585 done 25586 for dir in $with_dmalloc/lib/dmalloc $with_dmalloc/lib $with_dmalloc; do 25587 if test -f "$dir/libdmalloc.la" && test -d "$dir/.libs"; then 25588 LDFLAGS="$LDFLAGS -L$dir -L$dir/.libs" 25589 found=1 25590 break 25591 elif test -f "$dir/libdmalloc.a" || test -f "$dir/libdmalloc.so"; then 25592 LDFLAGS="$LDFLAGS -L$dir" 25593 found=1 25594 break 25595 fi 25596 done 25597 fi 25598 # in any sub-area 25599 if test ".$found" = .0; then 25600 for file in x `find $with_dmalloc -name "dmalloc.h" -type f -print`; do 25601 test .$file = .x && continue 25602 dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` 25603 CPPFLAGS="$CPPFLAGS -I$dir" 25604 CFLAGS="$CFLAGS -I$dir" 25605 done 25606 for file in x `find $with_dmalloc -name "libdmalloc.[aso]" -type f -print`; do 25607 test .$file = .x && continue 25608 dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` 25609 LDFLAGS="$LDFLAGS -L$dir" 25610 done 25611 fi 25612 fi 25613 fi 25614 25615for ac_header in dmalloc.h 25616do 25617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25618if eval "test \"\${$as_ac_Header+set}\" = set"; then 25619 echo "$as_me:$LINENO: checking for $ac_header" >&5 25620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 25621if eval "test \"\${$as_ac_Header+set}\" = set"; then 25622 echo $ECHO_N "(cached) $ECHO_C" >&6 25623fi 25624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 25625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 25626else 25627 # Is the header compilable? 25628echo "$as_me:$LINENO: checking $ac_header usability" >&5 25629echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 25630cat >conftest.$ac_ext <<_ACEOF 25631/* confdefs.h. */ 25632_ACEOF 25633cat confdefs.h >>conftest.$ac_ext 25634cat >>conftest.$ac_ext <<_ACEOF 25635/* end confdefs.h. */ 25636$ac_includes_default 25637#include <$ac_header> 25638_ACEOF 25639rm -f conftest.$ac_objext 25640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25641 (eval $ac_compile) 2>conftest.er1 25642 ac_status=$? 25643 grep -v '^ *+' conftest.er1 >conftest.err 25644 rm -f conftest.er1 25645 cat conftest.err >&5 25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25647 (exit $ac_status); } && 25648 { ac_try='test -z "$ac_c_werror_flag" 25649 || test ! -s conftest.err' 25650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25651 (eval $ac_try) 2>&5 25652 ac_status=$? 25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25654 (exit $ac_status); }; } && 25655 { ac_try='test -s conftest.$ac_objext' 25656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25657 (eval $ac_try) 2>&5 25658 ac_status=$? 25659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25660 (exit $ac_status); }; }; then 25661 ac_header_compiler=yes 25662else 25663 echo "$as_me: failed program was:" >&5 25664sed 's/^/| /' conftest.$ac_ext >&5 25665 25666ac_header_compiler=no 25667fi 25668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 25669echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 25670echo "${ECHO_T}$ac_header_compiler" >&6 25671 25672# Is the header present? 25673echo "$as_me:$LINENO: checking $ac_header presence" >&5 25674echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 25675cat >conftest.$ac_ext <<_ACEOF 25676/* confdefs.h. */ 25677_ACEOF 25678cat confdefs.h >>conftest.$ac_ext 25679cat >>conftest.$ac_ext <<_ACEOF 25680/* end confdefs.h. */ 25681#include <$ac_header> 25682_ACEOF 25683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 25684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 25685 ac_status=$? 25686 grep -v '^ *+' conftest.er1 >conftest.err 25687 rm -f conftest.er1 25688 cat conftest.err >&5 25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25690 (exit $ac_status); } >/dev/null; then 25691 if test -s conftest.err; then 25692 ac_cpp_err=$ac_c_preproc_warn_flag 25693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 25694 else 25695 ac_cpp_err= 25696 fi 25697else 25698 ac_cpp_err=yes 25699fi 25700if test -z "$ac_cpp_err"; then 25701 ac_header_preproc=yes 25702else 25703 echo "$as_me: failed program was:" >&5 25704sed 's/^/| /' conftest.$ac_ext >&5 25705 25706 ac_header_preproc=no 25707fi 25708rm -f conftest.err conftest.$ac_ext 25709echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 25710echo "${ECHO_T}$ac_header_preproc" >&6 25711 25712# So? What about this header? 25713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 25714 yes:no: ) 25715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 25716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 25717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 25718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 25719 ac_header_preproc=yes 25720 ;; 25721 no:yes:* ) 25722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 25723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 25724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 25725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 25726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 25727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 25728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 25729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 25730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 25731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 25732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 25733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 25734 ( 25735 cat <<\_ASBOX 25736## ------------------------------------------ ## 25737## Report this to the AC_PACKAGE_NAME lists. ## 25738## ------------------------------------------ ## 25739_ASBOX 25740 ) | 25741 sed "s/^/$as_me: WARNING: /" >&2 25742 ;; 25743esac 25744echo "$as_me:$LINENO: checking for $ac_header" >&5 25745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 25746if eval "test \"\${$as_ac_Header+set}\" = set"; then 25747 echo $ECHO_N "(cached) $ECHO_C" >&6 25748else 25749 eval "$as_ac_Header=\$ac_header_preproc" 25750fi 25751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 25752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 25753 25754fi 25755if test `eval echo '${'$as_ac_Header'}'` = yes; then 25756 cat >>confdefs.h <<_ACEOF 25757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25758_ACEOF 25759 25760fi 25761 25762done 25763 25764 25765echo "$as_me:$LINENO: checking for dmalloc_debug in -ldmalloc" >&5 25766echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6 25767if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then 25768 echo $ECHO_N "(cached) $ECHO_C" >&6 25769else 25770 ac_check_lib_save_LIBS=$LIBS 25771LIBS="-ldmalloc $LIBS" 25772cat >conftest.$ac_ext <<_ACEOF 25773/* confdefs.h. */ 25774_ACEOF 25775cat confdefs.h >>conftest.$ac_ext 25776cat >>conftest.$ac_ext <<_ACEOF 25777/* end confdefs.h. */ 25778 25779/* Override any gcc2 internal prototype to avoid an error. */ 25780#ifdef __cplusplus 25781extern "C" 25782#endif 25783/* We use char because int might match the return type of a gcc2 25784 builtin and then its argument prototype would still apply. */ 25785char dmalloc_debug (); 25786int 25787main () 25788{ 25789dmalloc_debug (); 25790 ; 25791 return 0; 25792} 25793_ACEOF 25794rm -f conftest.$ac_objext conftest$ac_exeext 25795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25796 (eval $ac_link) 2>conftest.er1 25797 ac_status=$? 25798 grep -v '^ *+' conftest.er1 >conftest.err 25799 rm -f conftest.er1 25800 cat conftest.err >&5 25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25802 (exit $ac_status); } && 25803 { ac_try='test -z "$ac_c_werror_flag" 25804 || test ! -s conftest.err' 25805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25806 (eval $ac_try) 2>&5 25807 ac_status=$? 25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25809 (exit $ac_status); }; } && 25810 { ac_try='test -s conftest$ac_exeext' 25811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25812 (eval $ac_try) 2>&5 25813 ac_status=$? 25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25815 (exit $ac_status); }; }; then 25816 ac_cv_lib_dmalloc_dmalloc_debug=yes 25817else 25818 echo "$as_me: failed program was:" >&5 25819sed 's/^/| /' conftest.$ac_ext >&5 25820 25821ac_cv_lib_dmalloc_dmalloc_debug=no 25822fi 25823rm -f conftest.err conftest.$ac_objext \ 25824 conftest$ac_exeext conftest.$ac_ext 25825LIBS=$ac_check_lib_save_LIBS 25826fi 25827echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 25828echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6 25829if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then 25830 cat >>confdefs.h <<_ACEOF 25831#define HAVE_LIBDMALLOC 1 25832_ACEOF 25833 25834 LIBS="-ldmalloc $LIBS" 25835 25836fi 25837 25838 with_dmalloc=yes 25839 ac_var="ac_cv_header_`echo dmalloc.h | sed 'y%./+-%__p_%'`" 25840 eval "ac_val=\$$ac_var" 25841 if test ".$ac_val" != .yes; then 25842 with_dmalloc=no 25843 fi 25844 if test ".$ac_cv_lib_dmalloc_dmalloc_debug" != .yes; then 25845 with_dmalloc=no 25846 fi 25847 if test ".$with_dmalloc" = .no; then 25848 { { echo "$as_me:$LINENO: error: Unable to find Dmalloc library" >&5 25849echo "$as_me: error: Unable to find Dmalloc library" >&2;} 25850 { (exit 1); exit 1; }; } 25851 fi 25852 25853else 25854 if test ".$with_dmalloc" = .; then 25855 with_dmalloc=no 25856fi 25857 25858fi; echo "$as_me:$LINENO: checking whether to build against external Dmalloc library" >&5 25859echo $ECHO_N "checking whether to build against external Dmalloc library... $ECHO_C" >&6 25860if test ".$with_dmalloc" = .yes; then 25861 25862cat >>confdefs.h <<\_ACEOF 25863#define PTH_DMALLOC 1 25864_ACEOF 25865 25866else 25867 : 25868fi 25869echo "$as_me:$LINENO: result: $with_dmalloc" >&5 25870echo "${ECHO_T}$with_dmalloc" >&6 25871 25872 25873 25874if test ".$enable_subdir" != .yes; then 25875 echo "$as_me:$LINENO: result: " >&5 25876echo "${ECHO_T}" >&6 25877 echo "$as_me:$LINENO: result: ${TB}Output Substitution:${TN}" >&5 25878echo "${ECHO_T}${TB}Output Substitution:${TN}" >&6 25879fi 25880 25881 25882 ac_config_files="$ac_config_files Makefile pthread-config pthread.h pth-config pth.h pth_acmac.h" 25883 ac_config_commands="$ac_config_commands default" 25884cat >confcache <<\_ACEOF 25885# This file is a shell script that caches the results of configure 25886# tests run on this system so they can be shared between configure 25887# scripts and configure runs, see configure's option --config-cache. 25888# It is not useful on other systems. If it contains results you don't 25889# want to keep, you may remove or edit it. 25890# 25891# config.status only pays attention to the cache file if you give it 25892# the --recheck option to rerun configure. 25893# 25894# `ac_cv_env_foo' variables (set or unset) will be overridden when 25895# loading this file, other *unset* `ac_cv_foo' will be assigned the 25896# following values. 25897 25898_ACEOF 25899 25900# The following way of writing the cache mishandles newlines in values, 25901# but we know of no workaround that is simple, portable, and efficient. 25902# So, don't put newlines in cache variables' values. 25903# Ultrix sh set writes to stderr and can't be redirected directly, 25904# and sets the high bit in the cache file unless we assign to the vars. 25905{ 25906 (set) 2>&1 | 25907 case `(ac_space=' '; set | grep ac_space) 2>&1` in 25908 *ac_space=\ *) 25909 # `set' does not quote correctly, so add quotes (double-quote 25910 # substitution turns \\\\ into \\, and sed turns \\ into \). 25911 sed -n \ 25912 "s/'/'\\\\''/g; 25913 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25914 ;; 25915 *) 25916 # `set' quotes correctly as required by POSIX, so do not add quotes. 25917 sed -n \ 25918 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 25919 ;; 25920 esac; 25921} | 25922 sed ' 25923 t clear 25924 : clear 25925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25926 t end 25927 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25928 : end' >>confcache 25929if diff $cache_file confcache >/dev/null 2>&1; then :; else 25930 if test -w $cache_file; then 25931 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 25932 cat confcache >$cache_file 25933 else 25934 echo "not updating unwritable cache $cache_file" 25935 fi 25936fi 25937rm -f confcache 25938 25939test "x$prefix" = xNONE && prefix=$ac_default_prefix 25940# Let make expand exec_prefix. 25941test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25942 25943# VPATH may cause trouble with some makes, so we remove $(srcdir), 25944# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 25945# trailing colons and then remove the whole line if VPATH becomes empty 25946# (actually we leave an empty line to preserve line numbers). 25947if test "x$srcdir" = x.; then 25948 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 25949s/:*\$(srcdir):*/:/; 25950s/:*\${srcdir}:*/:/; 25951s/:*@srcdir@:*/:/; 25952s/^\([^=]*=[ ]*\):*/\1/; 25953s/:*$//; 25954s/^[^=]*=[ ]*$//; 25955}' 25956fi 25957 25958DEFS=-DHAVE_CONFIG_H 25959 25960ac_libobjs= 25961ac_ltlibobjs= 25962for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25963 # 1. Remove the extension, and $U if already installed. 25964 ac_i=`echo "$ac_i" | 25965 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 25966 # 2. Add them. 25967 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 25968 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 25969done 25970LIBOBJS=$ac_libobjs 25971 25972LTLIBOBJS=$ac_ltlibobjs 25973 25974 25975 25976: ${CONFIG_STATUS=./config.status} 25977ac_clean_files_save=$ac_clean_files 25978ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25979{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 25980echo "$as_me: creating $CONFIG_STATUS" >&6;} 25981cat >$CONFIG_STATUS <<_ACEOF 25982#! $SHELL 25983# Generated by $as_me. 25984# Run this file to recreate the current configuration. 25985# Compiler output produced by configure, useful for debugging 25986# configure, is in config.log if it exists. 25987 25988debug=false 25989ac_cs_recheck=false 25990ac_cs_silent=false 25991SHELL=\${CONFIG_SHELL-$SHELL} 25992_ACEOF 25993 25994cat >>$CONFIG_STATUS <<\_ACEOF 25995## --------------------- ## 25996## M4sh Initialization. ## 25997## --------------------- ## 25998 25999# Be Bourne compatible 26000if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26001 emulate sh 26002 NULLCMD=: 26003 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 26004 # is contrary to our usage. Disable this feature. 26005 alias -g '${1+"$@"}'='"$@"' 26006elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 26007 set -o posix 26008fi 26009DUALCASE=1; export DUALCASE # for MKS sh 26010 26011# Support unset when possible. 26012if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26013 as_unset=unset 26014else 26015 as_unset=false 26016fi 26017 26018 26019# Work around bugs in pre-3.0 UWIN ksh. 26020$as_unset ENV MAIL MAILPATH 26021PS1='$ ' 26022PS2='> ' 26023PS4='+ ' 26024 26025# NLS nuisances. 26026for as_var in \ 26027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 26028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 26029 LC_TELEPHONE LC_TIME 26030do 26031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 26032 eval $as_var=C; export $as_var 26033 else 26034 $as_unset $as_var 26035 fi 26036done 26037 26038# Required to use basename. 26039if expr a : '\(a\)' >/dev/null 2>&1; then 26040 as_expr=expr 26041else 26042 as_expr=false 26043fi 26044 26045if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 26046 as_basename=basename 26047else 26048 as_basename=false 26049fi 26050 26051 26052# Name of the executable. 26053as_me=`$as_basename "$0" || 26054$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26055 X"$0" : 'X\(//\)$' \| \ 26056 X"$0" : 'X\(/\)$' \| \ 26057 . : '\(.\)' 2>/dev/null || 26058echo X/"$0" | 26059 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 26060 /^X\/\(\/\/\)$/{ s//\1/; q; } 26061 /^X\/\(\/\).*/{ s//\1/; q; } 26062 s/.*/./; q'` 26063 26064 26065# PATH needs CR, and LINENO needs CR and PATH. 26066# Avoid depending upon Character Ranges. 26067as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26068as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26069as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26070as_cr_digits='0123456789' 26071as_cr_alnum=$as_cr_Letters$as_cr_digits 26072 26073# The user is always right. 26074if test "${PATH_SEPARATOR+set}" != set; then 26075 echo "#! /bin/sh" >conf$$.sh 26076 echo "exit 0" >>conf$$.sh 26077 chmod +x conf$$.sh 26078 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 26079 PATH_SEPARATOR=';' 26080 else 26081 PATH_SEPARATOR=: 26082 fi 26083 rm -f conf$$.sh 26084fi 26085 26086 26087 as_lineno_1=$LINENO 26088 as_lineno_2=$LINENO 26089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 26090 test "x$as_lineno_1" != "x$as_lineno_2" && 26091 test "x$as_lineno_3" = "x$as_lineno_2" || { 26092 # Find who we are. Look in the path if we contain no path at all 26093 # relative or not. 26094 case $0 in 26095 *[\\/]* ) as_myself=$0 ;; 26096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26097for as_dir in $PATH 26098do 26099 IFS=$as_save_IFS 26100 test -z "$as_dir" && as_dir=. 26101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26102done 26103 26104 ;; 26105 esac 26106 # We did not find ourselves, most probably we were run as `sh COMMAND' 26107 # in which case we are not to be found in the path. 26108 if test "x$as_myself" = x; then 26109 as_myself=$0 26110 fi 26111 if test ! -f "$as_myself"; then 26112 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 26113echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 26114 { (exit 1); exit 1; }; } 26115 fi 26116 case $CONFIG_SHELL in 26117 '') 26118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26119for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 26120do 26121 IFS=$as_save_IFS 26122 test -z "$as_dir" && as_dir=. 26123 for as_base in sh bash ksh sh5; do 26124 case $as_dir in 26125 /*) 26126 if ("$as_dir/$as_base" -c ' 26127 as_lineno_1=$LINENO 26128 as_lineno_2=$LINENO 26129 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 26130 test "x$as_lineno_1" != "x$as_lineno_2" && 26131 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 26132 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 26133 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 26134 CONFIG_SHELL=$as_dir/$as_base 26135 export CONFIG_SHELL 26136 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 26137 fi;; 26138 esac 26139 done 26140done 26141;; 26142 esac 26143 26144 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 26145 # uniformly replaced by the line number. The first 'sed' inserts a 26146 # line-number line before each line; the second 'sed' does the real 26147 # work. The second script uses 'N' to pair each line-number line 26148 # with the numbered line, and appends trailing '-' during 26149 # substitution so that $LINENO is not a special case at line end. 26150 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 26151 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 26152 sed '=' <$as_myself | 26153 sed ' 26154 N 26155 s,$,-, 26156 : loop 26157 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 26158 t loop 26159 s,-$,, 26160 s,^['$as_cr_digits']*\n,, 26161 ' >$as_me.lineno && 26162 chmod +x $as_me.lineno || 26163 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 26164echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 26165 { (exit 1); exit 1; }; } 26166 26167 # Don't try to exec as it changes $[0], causing all sort of problems 26168 # (the dirname of $[0] is not the place where we might find the 26169 # original and so on. Autoconf is especially sensible to this). 26170 . ./$as_me.lineno 26171 # Exit status is that of the last command. 26172 exit 26173} 26174 26175 26176case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 26177 *c*,-n*) ECHO_N= ECHO_C=' 26178' ECHO_T=' ' ;; 26179 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 26180 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 26181esac 26182 26183if expr a : '\(a\)' >/dev/null 2>&1; then 26184 as_expr=expr 26185else 26186 as_expr=false 26187fi 26188 26189rm -f conf$$ conf$$.exe conf$$.file 26190echo >conf$$.file 26191if ln -s conf$$.file conf$$ 2>/dev/null; then 26192 # We could just check for DJGPP; but this test a) works b) is more generic 26193 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 26194 if test -f conf$$.exe; then 26195 # Don't use ln at all; we don't have any links 26196 as_ln_s='cp -p' 26197 else 26198 as_ln_s='ln -s' 26199 fi 26200elif ln conf$$.file conf$$ 2>/dev/null; then 26201 as_ln_s=ln 26202else 26203 as_ln_s='cp -p' 26204fi 26205rm -f conf$$ conf$$.exe conf$$.file 26206 26207if mkdir -p . 2>/dev/null; then 26208 as_mkdir_p=: 26209else 26210 test -d ./-p && rmdir ./-p 26211 as_mkdir_p=false 26212fi 26213 26214as_executable_p="test -f" 26215 26216# Sed expression to map a string onto a valid CPP name. 26217as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 26218 26219# Sed expression to map a string onto a valid variable name. 26220as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 26221 26222 26223# IFS 26224# We need space, tab and new line, in precisely that order. 26225as_nl=' 26226' 26227IFS=" $as_nl" 26228 26229# CDPATH. 26230$as_unset CDPATH 26231 26232exec 6>&1 26233 26234# Open the log real soon, to keep \$[0] and so on meaningful, and to 26235# report actual input values of CONFIG_FILES etc. instead of their 26236# values after options handling. Logging --version etc. is OK. 26237exec 5>>config.log 26238{ 26239 echo 26240 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 26241## Running $as_me. ## 26242_ASBOX 26243} >&5 26244cat >&5 <<_CSEOF 26245 26246This file was extended by $as_me, which was 26247generated by GNU Autoconf 2.59 (OpenPKG-CURRENT). Invocation command line was 26248 26249 CONFIG_FILES = $CONFIG_FILES 26250 CONFIG_HEADERS = $CONFIG_HEADERS 26251 CONFIG_LINKS = $CONFIG_LINKS 26252 CONFIG_COMMANDS = $CONFIG_COMMANDS 26253 $ $0 $@ 26254 26255_CSEOF 26256echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 26257echo >&5 26258_ACEOF 26259 26260# Files that config.status was made for. 26261if test -n "$ac_config_files"; then 26262 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 26263fi 26264 26265if test -n "$ac_config_headers"; then 26266 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 26267fi 26268 26269if test -n "$ac_config_links"; then 26270 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 26271fi 26272 26273if test -n "$ac_config_commands"; then 26274 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 26275fi 26276 26277cat >>$CONFIG_STATUS <<\_ACEOF 26278 26279ac_cs_usage="\ 26280\`$as_me' instantiates files from templates according to the 26281current configuration. 26282 26283Usage: $0 [OPTIONS] [FILE]... 26284 26285 -h, --help print this help, then exit 26286 -V, --version print version number, then exit 26287 -q, --quiet do not print progress messages 26288 -d, --debug don't remove temporary files 26289 --recheck update $as_me by reconfiguring in the same conditions 26290 --file=FILE[:TEMPLATE] 26291 instantiate the configuration file FILE 26292 --header=FILE[:TEMPLATE] 26293 instantiate the configuration header FILE 26294 26295Configuration files: 26296$config_files 26297 26298Configuration headers: 26299$config_headers 26300 26301Configuration commands: 26302$config_commands 26303 26304Report bugs to <bug-autoconf@gnu.org>." 26305_ACEOF 26306 26307cat >>$CONFIG_STATUS <<_ACEOF 26308ac_cs_version="\\ 26309config.status 26310configured by $0, generated by GNU Autoconf 2.59 (OpenPKG-CURRENT), 26311 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 26312 26313Copyright (C) 2003 Free Software Foundation, Inc. 26314This config.status script is free software; the Free Software Foundation 26315gives unlimited permission to copy, distribute and modify it." 26316srcdir=$srcdir 26317_ACEOF 26318 26319cat >>$CONFIG_STATUS <<\_ACEOF 26320# If no file are specified by the user, then we need to provide default 26321# value. By we need to know if files were specified by the user. 26322ac_need_defaults=: 26323while test $# != 0 26324do 26325 case $1 in 26326 --*=*) 26327 ac_option=`expr "x$1" : 'x\([^=]*\)='` 26328 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 26329 ac_shift=: 26330 ;; 26331 -*) 26332 ac_option=$1 26333 ac_optarg=$2 26334 ac_shift=shift 26335 ;; 26336 *) # This is not an option, so the user has probably given explicit 26337 # arguments. 26338 ac_option=$1 26339 ac_need_defaults=false;; 26340 esac 26341 26342 case $ac_option in 26343 # Handling of the options. 26344_ACEOF 26345cat >>$CONFIG_STATUS <<\_ACEOF 26346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 26347 ac_cs_recheck=: ;; 26348 --version | --vers* | -V ) 26349 echo "$ac_cs_version"; exit 0 ;; 26350 --he | --h) 26351 # Conflict between --help and --header 26352 { { echo "$as_me:$LINENO: error: ambiguous option: $1 26353Try \`$0 --help' for more information." >&5 26354echo "$as_me: error: ambiguous option: $1 26355Try \`$0 --help' for more information." >&2;} 26356 { (exit 1); exit 1; }; };; 26357 --help | --hel | -h ) 26358 echo "$ac_cs_usage"; exit 0 ;; 26359 --debug | --d* | -d ) 26360 debug=: ;; 26361 --file | --fil | --fi | --f ) 26362 $ac_shift 26363 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 26364 ac_need_defaults=false;; 26365 --header | --heade | --head | --hea ) 26366 $ac_shift 26367 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 26368 ac_need_defaults=false;; 26369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26370 | -silent | --silent | --silen | --sile | --sil | --si | --s) 26371 ac_cs_silent=: ;; 26372 26373 # This is an error. 26374 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 26375Try \`$0 --help' for more information." >&5 26376echo "$as_me: error: unrecognized option: $1 26377Try \`$0 --help' for more information." >&2;} 26378 { (exit 1); exit 1; }; } ;; 26379 26380 *) ac_config_targets="$ac_config_targets $1" ;; 26381 26382 esac 26383 shift 26384done 26385 26386ac_configure_extra_args= 26387 26388if $ac_cs_silent; then 26389 exec 6>/dev/null 26390 ac_configure_extra_args="$ac_configure_extra_args --silent" 26391fi 26392 26393_ACEOF 26394cat >>$CONFIG_STATUS <<_ACEOF 26395if \$ac_cs_recheck; then 26396 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 26397 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 26398fi 26399 26400_ACEOF 26401 26402 26403 26404 26405 26406cat >>$CONFIG_STATUS <<\_ACEOF 26407for ac_config_target in $ac_config_targets 26408do 26409 case "$ac_config_target" in 26410 # Handling of arguments. 26411 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26412 "pthread-config" ) CONFIG_FILES="$CONFIG_FILES pthread-config" ;; 26413 "pthread.h" ) CONFIG_FILES="$CONFIG_FILES pthread.h" ;; 26414 "pth-config" ) CONFIG_FILES="$CONFIG_FILES pth-config" ;; 26415 "pth.h" ) CONFIG_FILES="$CONFIG_FILES pth.h" ;; 26416 "pth_acmac.h" ) CONFIG_FILES="$CONFIG_FILES pth_acmac.h" ;; 26417 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 26418 "pth_acdef.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pth_acdef.h" ;; 26419 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 26420echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 26421 { (exit 1); exit 1; }; };; 26422 esac 26423done 26424 26425# If the user did not use the arguments to specify the items to instantiate, 26426# then the envvar interface is used. Set only those that are not. 26427# We use the long form for the default assignment because of an extremely 26428# bizarre bug on SunOS 4.1.3. 26429if $ac_need_defaults; then 26430 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26431 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26432 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 26433fi 26434 26435# Have a temporary directory for convenience. Make it in the build tree 26436# simply because there is no reason to put it here, and in addition, 26437# creating and moving files from /tmp can sometimes cause problems. 26438# Create a temporary directory, and hook for its removal unless debugging. 26439$debug || 26440{ 26441 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 26442 trap '{ (exit 1); exit 1; }' 1 2 13 15 26443} 26444 26445# Create a (secure) tmp directory for tmp files. 26446 26447{ 26448 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 26449 test -n "$tmp" && test -d "$tmp" 26450} || 26451{ 26452 tmp=./confstat$$-$RANDOM 26453 (umask 077 && mkdir $tmp) 26454} || 26455{ 26456 echo "$me: cannot create a temporary directory in ." >&2 26457 { (exit 1); exit 1; } 26458} 26459 26460_ACEOF 26461 26462cat >>$CONFIG_STATUS <<_ACEOF 26463 26464# 26465# CONFIG_FILES section. 26466# 26467 26468# No need to generate the scripts if there are no CONFIG_FILES. 26469# This happens for instance when ./config.status config.h 26470if test -n "\$CONFIG_FILES"; then 26471 # Protect against being on the right side of a sed subst in config.status. 26472 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 26473 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 26474s,@SHELL@,$SHELL,;t t 26475s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 26476s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 26477s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 26478s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 26479s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 26480s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 26481s,@exec_prefix@,$exec_prefix,;t t 26482s,@prefix@,$prefix,;t t 26483s,@program_transform_name@,$program_transform_name,;t t 26484s,@bindir@,$bindir,;t t 26485s,@sbindir@,$sbindir,;t t 26486s,@libexecdir@,$libexecdir,;t t 26487s,@datadir@,$datadir,;t t 26488s,@sysconfdir@,$sysconfdir,;t t 26489s,@sharedstatedir@,$sharedstatedir,;t t 26490s,@localstatedir@,$localstatedir,;t t 26491s,@libdir@,$libdir,;t t 26492s,@includedir@,$includedir,;t t 26493s,@oldincludedir@,$oldincludedir,;t t 26494s,@infodir@,$infodir,;t t 26495s,@mandir@,$mandir,;t t 26496s,@build_alias@,$build_alias,;t t 26497s,@host_alias@,$host_alias,;t t 26498s,@target_alias@,$target_alias,;t t 26499s,@DEFS@,$DEFS,;t t 26500s,@ECHO_C@,$ECHO_C,;t t 26501s,@ECHO_N@,$ECHO_N,;t t 26502s,@ECHO_T@,$ECHO_T,;t t 26503s,@LIBS@,$LIBS,;t t 26504s,@srcdir_prefix@,$srcdir_prefix,;t t 26505s,@PTH_VERSION_STR@,$PTH_VERSION_STR,;t t 26506s,@PTH_VERSION_HEX@,$PTH_VERSION_HEX,;t t 26507s,@PLATFORM@,$PLATFORM,;t t 26508s,@CC@,$CC,;t t 26509s,@CFLAGS@,$CFLAGS,;t t 26510s,@LDFLAGS@,$LDFLAGS,;t t 26511s,@CPPFLAGS@,$CPPFLAGS,;t t 26512s,@ac_ct_CC@,$ac_ct_CC,;t t 26513s,@EXEEXT@,$EXEEXT,;t t 26514s,@OBJEXT@,$OBJEXT,;t t 26515s,@CPP@,$CPP,;t t 26516s,@EGREP@,$EGREP,;t t 26517s,@SET_MAKE@,$SET_MAKE,;t t 26518s,@build@,$build,;t t 26519s,@build_cpu@,$build_cpu,;t t 26520s,@build_vendor@,$build_vendor,;t t 26521s,@build_os@,$build_os,;t t 26522s,@host@,$host,;t t 26523s,@host_cpu@,$host_cpu,;t t 26524s,@host_vendor@,$host_vendor,;t t 26525s,@host_os@,$host_os,;t t 26526s,@LN_S@,$LN_S,;t t 26527s,@ECHO@,$ECHO,;t t 26528s,@AR@,$AR,;t t 26529s,@ac_ct_AR@,$ac_ct_AR,;t t 26530s,@RANLIB@,$RANLIB,;t t 26531s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 26532s,@STRIP@,$STRIP,;t t 26533s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 26534s,@CXX@,$CXX,;t t 26535s,@CXXFLAGS@,$CXXFLAGS,;t t 26536s,@ac_ct_CXX@,$ac_ct_CXX,;t t 26537s,@CXXCPP@,$CXXCPP,;t t 26538s,@F77@,$F77,;t t 26539s,@FFLAGS@,$FFLAGS,;t t 26540s,@ac_ct_F77@,$ac_ct_F77,;t t 26541s,@LIBTOOL@,$LIBTOOL,;t t 26542s,@PTH_FDSETSIZE@,$PTH_FDSETSIZE,;t t 26543s,@PTH_FAKE_POLL@,$PTH_FAKE_POLL,;t t 26544s,@PTH_FAKE_RWV@,$PTH_FAKE_RWV,;t t 26545s,@EXTRA_INCLUDE_SYS_SELECT_H@,$EXTRA_INCLUDE_SYS_SELECT_H,;t t 26546s,@FALLBACK_SIG_ATOMIC_T@,$FALLBACK_SIG_ATOMIC_T,;t t 26547s,@FALLBACK_PID_T@,$FALLBACK_PID_T,;t t 26548s,@FALLBACK_SIZE_T@,$FALLBACK_SIZE_T,;t t 26549s,@FALLBACK_SSIZE_T@,$FALLBACK_SSIZE_T,;t t 26550s,@FALLBACK_OFF_T@,$FALLBACK_OFF_T,;t t 26551s,@FALLBACK_SOCKLEN_T@,$FALLBACK_SOCKLEN_T,;t t 26552s,@FALLBACK_NFDS_T@,$FALLBACK_NFDS_T,;t t 26553s,@PTH_STACK_GROWTH@,$PTH_STACK_GROWTH,;t t 26554s,@pth_skaddr_makecontext@,$pth_skaddr_makecontext,;t t 26555s,@pth_sksize_makecontext@,$pth_sksize_makecontext,;t t 26556s,@pth_skaddr_sigaltstack@,$pth_skaddr_sigaltstack,;t t 26557s,@pth_sksize_sigaltstack@,$pth_sksize_sigaltstack,;t t 26558s,@pth_skaddr_sigstack@,$pth_skaddr_sigstack,;t t 26559s,@pth_sksize_sigstack@,$pth_sksize_sigstack,;t t 26560s,@pth_sigjmpbuf@,$pth_sigjmpbuf,;t t 26561s,@pth_sigsetjmp@,$pth_sigsetjmp,;t t 26562s,@pth_siglongjmp@,$pth_siglongjmp,;t t 26563s,@PTH_MCTX_ID@,$PTH_MCTX_ID,;t t 26564s,@PTH_SYSCALL_SOFT@,$PTH_SYSCALL_SOFT,;t t 26565s,@PTH_SYSCALL_HARD@,$PTH_SYSCALL_HARD,;t t 26566s,@BATCH@,$BATCH,;t t 26567s,@TARGET_ALL@,$TARGET_ALL,;t t 26568s,@PTHREAD_O@,$PTHREAD_O,;t t 26569s,@LIBPTHREAD_A@,$LIBPTHREAD_A,;t t 26570s,@LIBPTHREAD_LA@,$LIBPTHREAD_LA,;t t 26571s,@PTHREAD_CONFIG_1@,$PTHREAD_CONFIG_1,;t t 26572s,@PTHREAD_3@,$PTHREAD_3,;t t 26573s,@INSTALL_PTHREAD@,$INSTALL_PTHREAD,;t t 26574s,@UNINSTALL_PTHREAD@,$UNINSTALL_PTHREAD,;t t 26575s,@TEST_PTHREAD@,$TEST_PTHREAD,;t t 26576s,@PTH_EXT_SFIO@,$PTH_EXT_SFIO,;t t 26577s,@LIBOBJS@,$LIBOBJS,;t t 26578s,@LTLIBOBJS@,$LTLIBOBJS,;t t 26579CEOF 26580 26581_ACEOF 26582 26583 cat >>$CONFIG_STATUS <<\_ACEOF 26584 # Split the substitutions into bite-sized pieces for seds with 26585 # small command number limits, like on Digital OSF/1 and HP-UX. 26586 ac_max_sed_lines=48 26587 ac_sed_frag=1 # Number of current file. 26588 ac_beg=1 # First line for current file. 26589 ac_end=$ac_max_sed_lines # Line after last line for current file. 26590 ac_more_lines=: 26591 ac_sed_cmds= 26592 while $ac_more_lines; do 26593 if test $ac_beg -gt 1; then 26594 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 26595 else 26596 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 26597 fi 26598 if test ! -s $tmp/subs.frag; then 26599 ac_more_lines=false 26600 else 26601 # The purpose of the label and of the branching condition is to 26602 # speed up the sed processing (if there are no `@' at all, there 26603 # is no need to browse any of the substitutions). 26604 # These are the two extra sed commands mentioned above. 26605 (echo ':t 26606 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 26607 if test -z "$ac_sed_cmds"; then 26608 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 26609 else 26610 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 26611 fi 26612 ac_sed_frag=`expr $ac_sed_frag + 1` 26613 ac_beg=$ac_end 26614 ac_end=`expr $ac_end + $ac_max_sed_lines` 26615 fi 26616 done 26617 if test -z "$ac_sed_cmds"; then 26618 ac_sed_cmds=cat 26619 fi 26620fi # test -n "$CONFIG_FILES" 26621 26622_ACEOF 26623cat >>$CONFIG_STATUS <<\_ACEOF 26624for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 26625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 26626 case $ac_file in 26627 - | *:- | *:-:* ) # input from stdin 26628 cat >$tmp/stdin 26629 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26630 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26631 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26633 * ) ac_file_in=$ac_file.in ;; 26634 esac 26635 26636 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 26637 ac_dir=`(dirname "$ac_file") 2>/dev/null || 26638$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26639 X"$ac_file" : 'X\(//\)[^/]' \| \ 26640 X"$ac_file" : 'X\(//\)$' \| \ 26641 X"$ac_file" : 'X\(/\)' \| \ 26642 . : '\(.\)' 2>/dev/null || 26643echo X"$ac_file" | 26644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26645 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26646 /^X\(\/\/\)$/{ s//\1/; q; } 26647 /^X\(\/\).*/{ s//\1/; q; } 26648 s/.*/./; q'` 26649 { if $as_mkdir_p; then 26650 mkdir -p "$ac_dir" 26651 else 26652 as_dir="$ac_dir" 26653 as_dirs= 26654 while test ! -d "$as_dir"; do 26655 as_dirs="$as_dir $as_dirs" 26656 as_dir=`(dirname "$as_dir") 2>/dev/null || 26657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26658 X"$as_dir" : 'X\(//\)[^/]' \| \ 26659 X"$as_dir" : 'X\(//\)$' \| \ 26660 X"$as_dir" : 'X\(/\)' \| \ 26661 . : '\(.\)' 2>/dev/null || 26662echo X"$as_dir" | 26663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26664 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26665 /^X\(\/\/\)$/{ s//\1/; q; } 26666 /^X\(\/\).*/{ s//\1/; q; } 26667 s/.*/./; q'` 26668 done 26669 test ! -n "$as_dirs" || mkdir $as_dirs 26670 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 26671echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 26672 { (exit 1); exit 1; }; }; } 26673 26674 ac_builddir=. 26675 26676if test "$ac_dir" != .; then 26677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 26678 # A "../" for each directory in $ac_dir_suffix. 26679 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 26680else 26681 ac_dir_suffix= ac_top_builddir= 26682fi 26683 26684case $srcdir in 26685 .) # No --srcdir option. We are building in place. 26686 ac_srcdir=. 26687 if test -z "$ac_top_builddir"; then 26688 ac_top_srcdir=. 26689 else 26690 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 26691 fi ;; 26692 [\\/]* | ?:[\\/]* ) # Absolute path. 26693 ac_srcdir=$srcdir$ac_dir_suffix; 26694 ac_top_srcdir=$srcdir ;; 26695 *) # Relative path. 26696 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 26697 ac_top_srcdir=$ac_top_builddir$srcdir ;; 26698esac 26699 26700# Do not use `cd foo && pwd` to compute absolute paths, because 26701# the directories may not exist. 26702case `pwd` in 26703.) ac_abs_builddir="$ac_dir";; 26704*) 26705 case "$ac_dir" in 26706 .) ac_abs_builddir=`pwd`;; 26707 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 26708 *) ac_abs_builddir=`pwd`/"$ac_dir";; 26709 esac;; 26710esac 26711case $ac_abs_builddir in 26712.) ac_abs_top_builddir=${ac_top_builddir}.;; 26713*) 26714 case ${ac_top_builddir}. in 26715 .) ac_abs_top_builddir=$ac_abs_builddir;; 26716 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 26717 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 26718 esac;; 26719esac 26720case $ac_abs_builddir in 26721.) ac_abs_srcdir=$ac_srcdir;; 26722*) 26723 case $ac_srcdir in 26724 .) ac_abs_srcdir=$ac_abs_builddir;; 26725 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 26726 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 26727 esac;; 26728esac 26729case $ac_abs_builddir in 26730.) ac_abs_top_srcdir=$ac_top_srcdir;; 26731*) 26732 case $ac_top_srcdir in 26733 .) ac_abs_top_srcdir=$ac_abs_builddir;; 26734 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 26735 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 26736 esac;; 26737esac 26738 26739 26740 26741 if test x"$ac_file" != x-; then 26742 { echo "$as_me:$LINENO: creating $ac_file" >&5 26743echo "$as_me: creating $ac_file" >&6;} 26744 rm -f "$ac_file" 26745 fi 26746 # Let's still pretend it is `configure' which instantiates (i.e., don't 26747 # use $as_me), people would be surprised to read: 26748 # /* config.h. Generated by config.status. */ 26749 if test x"$ac_file" = x-; then 26750 configure_input= 26751 else 26752 configure_input="$ac_file. " 26753 fi 26754 configure_input=$configure_input"Generated from `echo $ac_file_in | 26755 sed 's,.*/,,'` by configure." 26756 26757 # First look for the input files in the build tree, otherwise in the 26758 # src tree. 26759 ac_file_inputs=`IFS=: 26760 for f in $ac_file_in; do 26761 case $f in 26762 -) echo $tmp/stdin ;; 26763 [\\/$]*) 26764 # Absolute (can't be DOS-style, as IFS=:) 26765 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 26766echo "$as_me: error: cannot find input file: $f" >&2;} 26767 { (exit 1); exit 1; }; } 26768 echo "$f";; 26769 *) # Relative 26770 if test -f "$f"; then 26771 # Build tree 26772 echo "$f" 26773 elif test -f "$srcdir/$f"; then 26774 # Source tree 26775 echo "$srcdir/$f" 26776 else 26777 # /dev/null tree 26778 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 26779echo "$as_me: error: cannot find input file: $f" >&2;} 26780 { (exit 1); exit 1; }; } 26781 fi;; 26782 esac 26783 done` || { (exit 1); exit 1; } 26784_ACEOF 26785cat >>$CONFIG_STATUS <<_ACEOF 26786 sed "$ac_vpsub 26787$extrasub 26788_ACEOF 26789cat >>$CONFIG_STATUS <<\_ACEOF 26790:t 26791/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26792s,@configure_input@,$configure_input,;t t 26793s,@srcdir@,$ac_srcdir,;t t 26794s,@abs_srcdir@,$ac_abs_srcdir,;t t 26795s,@top_srcdir@,$ac_top_srcdir,;t t 26796s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 26797s,@builddir@,$ac_builddir,;t t 26798s,@abs_builddir@,$ac_abs_builddir,;t t 26799s,@top_builddir@,$ac_top_builddir,;t t 26800s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 26801" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 26802 rm -f $tmp/stdin 26803 if test x"$ac_file" != x-; then 26804 mv $tmp/out $ac_file 26805 else 26806 cat $tmp/out 26807 rm -f $tmp/out 26808 fi 26809 26810done 26811_ACEOF 26812cat >>$CONFIG_STATUS <<\_ACEOF 26813 26814# 26815# CONFIG_HEADER section. 26816# 26817 26818# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 26819# NAME is the cpp macro being defined and VALUE is the value it is being given. 26820# 26821# ac_d sets the value in "#define NAME VALUE" lines. 26822ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 26823ac_dB='[ ].*$,\1#\2' 26824ac_dC=' ' 26825ac_dD=',;t' 26826# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 26827ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 26828ac_uB='$,\1#\2define\3' 26829ac_uC=' ' 26830ac_uD=',;t' 26831 26832for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 26833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 26834 case $ac_file in 26835 - | *:- | *:-:* ) # input from stdin 26836 cat >$tmp/stdin 26837 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26839 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 26840 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 26841 * ) ac_file_in=$ac_file.in ;; 26842 esac 26843 26844 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 26845echo "$as_me: creating $ac_file" >&6;} 26846 26847 # First look for the input files in the build tree, otherwise in the 26848 # src tree. 26849 ac_file_inputs=`IFS=: 26850 for f in $ac_file_in; do 26851 case $f in 26852 -) echo $tmp/stdin ;; 26853 [\\/$]*) 26854 # Absolute (can't be DOS-style, as IFS=:) 26855 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 26856echo "$as_me: error: cannot find input file: $f" >&2;} 26857 { (exit 1); exit 1; }; } 26858 # Do quote $f, to prevent DOS paths from being IFS'd. 26859 echo "$f";; 26860 *) # Relative 26861 if test -f "$f"; then 26862 # Build tree 26863 echo "$f" 26864 elif test -f "$srcdir/$f"; then 26865 # Source tree 26866 echo "$srcdir/$f" 26867 else 26868 # /dev/null tree 26869 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 26870echo "$as_me: error: cannot find input file: $f" >&2;} 26871 { (exit 1); exit 1; }; } 26872 fi;; 26873 esac 26874 done` || { (exit 1); exit 1; } 26875 # Remove the trailing spaces. 26876 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 26877 26878_ACEOF 26879 26880# Transform confdefs.h into two sed scripts, `conftest.defines' and 26881# `conftest.undefs', that substitutes the proper values into 26882# config.h.in to produce config.h. The first handles `#define' 26883# templates, and the second `#undef' templates. 26884# And first: Protect against being on the right side of a sed subst in 26885# config.status. Protect against being in an unquoted here document 26886# in config.status. 26887rm -f conftest.defines conftest.undefs 26888# Using a here document instead of a string reduces the quoting nightmare. 26889# Putting comments in sed scripts is not portable. 26890# 26891# `end' is used to avoid that the second main sed command (meant for 26892# 0-ary CPP macros) applies to n-ary macro definitions. 26893# See the Autoconf documentation for `clear'. 26894cat >confdef2sed.sed <<\_ACEOF 26895s/[\\&,]/\\&/g 26896s,[\\$`],\\&,g 26897t clear 26898: clear 26899s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 26900t end 26901s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 26902: end 26903_ACEOF 26904# If some macros were called several times there might be several times 26905# the same #defines, which is useless. Nevertheless, we may not want to 26906# sort them, since we want the *last* AC-DEFINE to be honored. 26907uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 26908sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 26909rm -f confdef2sed.sed 26910 26911# This sed command replaces #undef with comments. This is necessary, for 26912# example, in the case of _POSIX_SOURCE, which is predefined and required 26913# on some systems where configure will not decide to define it. 26914cat >>conftest.undefs <<\_ACEOF 26915s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 26916_ACEOF 26917 26918# Break up conftest.defines because some shells have a limit on the size 26919# of here documents, and old seds have small limits too (100 cmds). 26920echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 26921echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 26922echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 26923echo ' :' >>$CONFIG_STATUS 26924rm -f conftest.tail 26925while grep . conftest.defines >/dev/null 26926do 26927 # Write a limited-size here document to $tmp/defines.sed. 26928 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 26929 # Speed up: don't consider the non `#define' lines. 26930 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 26931 # Work around the forget-to-reset-the-flag bug. 26932 echo 't clr' >>$CONFIG_STATUS 26933 echo ': clr' >>$CONFIG_STATUS 26934 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 26935 echo 'CEOF 26936 sed -f $tmp/defines.sed $tmp/in >$tmp/out 26937 rm -f $tmp/in 26938 mv $tmp/out $tmp/in 26939' >>$CONFIG_STATUS 26940 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 26941 rm -f conftest.defines 26942 mv conftest.tail conftest.defines 26943done 26944rm -f conftest.defines 26945echo ' fi # grep' >>$CONFIG_STATUS 26946echo >>$CONFIG_STATUS 26947 26948# Break up conftest.undefs because some shells have a limit on the size 26949# of here documents, and old seds have small limits too (100 cmds). 26950echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 26951rm -f conftest.tail 26952while grep . conftest.undefs >/dev/null 26953do 26954 # Write a limited-size here document to $tmp/undefs.sed. 26955 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 26956 # Speed up: don't consider the non `#undef' 26957 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 26958 # Work around the forget-to-reset-the-flag bug. 26959 echo 't clr' >>$CONFIG_STATUS 26960 echo ': clr' >>$CONFIG_STATUS 26961 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 26962 echo 'CEOF 26963 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 26964 rm -f $tmp/in 26965 mv $tmp/out $tmp/in 26966' >>$CONFIG_STATUS 26967 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 26968 rm -f conftest.undefs 26969 mv conftest.tail conftest.undefs 26970done 26971rm -f conftest.undefs 26972 26973cat >>$CONFIG_STATUS <<\_ACEOF 26974 # Let's still pretend it is `configure' which instantiates (i.e., don't 26975 # use $as_me), people would be surprised to read: 26976 # /* config.h. Generated by config.status. */ 26977 if test x"$ac_file" = x-; then 26978 echo "/* Generated by configure. */" >$tmp/config.h 26979 else 26980 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 26981 fi 26982 cat $tmp/in >>$tmp/config.h 26983 rm -f $tmp/in 26984 if test x"$ac_file" != x-; then 26985 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 26986 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 26987echo "$as_me: $ac_file is unchanged" >&6;} 26988 else 26989 ac_dir=`(dirname "$ac_file") 2>/dev/null || 26990$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26991 X"$ac_file" : 'X\(//\)[^/]' \| \ 26992 X"$ac_file" : 'X\(//\)$' \| \ 26993 X"$ac_file" : 'X\(/\)' \| \ 26994 . : '\(.\)' 2>/dev/null || 26995echo X"$ac_file" | 26996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 26997 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 26998 /^X\(\/\/\)$/{ s//\1/; q; } 26999 /^X\(\/\).*/{ s//\1/; q; } 27000 s/.*/./; q'` 27001 { if $as_mkdir_p; then 27002 mkdir -p "$ac_dir" 27003 else 27004 as_dir="$ac_dir" 27005 as_dirs= 27006 while test ! -d "$as_dir"; do 27007 as_dirs="$as_dir $as_dirs" 27008 as_dir=`(dirname "$as_dir") 2>/dev/null || 27009$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27010 X"$as_dir" : 'X\(//\)[^/]' \| \ 27011 X"$as_dir" : 'X\(//\)$' \| \ 27012 X"$as_dir" : 'X\(/\)' \| \ 27013 . : '\(.\)' 2>/dev/null || 27014echo X"$as_dir" | 27015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 27016 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 27017 /^X\(\/\/\)$/{ s//\1/; q; } 27018 /^X\(\/\).*/{ s//\1/; q; } 27019 s/.*/./; q'` 27020 done 27021 test ! -n "$as_dirs" || mkdir $as_dirs 27022 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 27023echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 27024 { (exit 1); exit 1; }; }; } 27025 27026 rm -f $ac_file 27027 mv $tmp/config.h $ac_file 27028 fi 27029 else 27030 cat $tmp/config.h 27031 rm -f $tmp/config.h 27032 fi 27033done 27034_ACEOF 27035cat >>$CONFIG_STATUS <<\_ACEOF 27036 27037# 27038# CONFIG_COMMANDS section. 27039# 27040for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 27041 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 27042 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 27043 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 27044$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27045 X"$ac_dest" : 'X\(//\)[^/]' \| \ 27046 X"$ac_dest" : 'X\(//\)$' \| \ 27047 X"$ac_dest" : 'X\(/\)' \| \ 27048 . : '\(.\)' 2>/dev/null || 27049echo X"$ac_dest" | 27050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 27051 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 27052 /^X\(\/\/\)$/{ s//\1/; q; } 27053 /^X\(\/\).*/{ s//\1/; q; } 27054 s/.*/./; q'` 27055 { if $as_mkdir_p; then 27056 mkdir -p "$ac_dir" 27057 else 27058 as_dir="$ac_dir" 27059 as_dirs= 27060 while test ! -d "$as_dir"; do 27061 as_dirs="$as_dir $as_dirs" 27062 as_dir=`(dirname "$as_dir") 2>/dev/null || 27063$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27064 X"$as_dir" : 'X\(//\)[^/]' \| \ 27065 X"$as_dir" : 'X\(//\)$' \| \ 27066 X"$as_dir" : 'X\(/\)' \| \ 27067 . : '\(.\)' 2>/dev/null || 27068echo X"$as_dir" | 27069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 27070 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 27071 /^X\(\/\/\)$/{ s//\1/; q; } 27072 /^X\(\/\).*/{ s//\1/; q; } 27073 s/.*/./; q'` 27074 done 27075 test ! -n "$as_dirs" || mkdir $as_dirs 27076 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 27077echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 27078 { (exit 1); exit 1; }; }; } 27079 27080 ac_builddir=. 27081 27082if test "$ac_dir" != .; then 27083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 27084 # A "../" for each directory in $ac_dir_suffix. 27085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 27086else 27087 ac_dir_suffix= ac_top_builddir= 27088fi 27089 27090case $srcdir in 27091 .) # No --srcdir option. We are building in place. 27092 ac_srcdir=. 27093 if test -z "$ac_top_builddir"; then 27094 ac_top_srcdir=. 27095 else 27096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 27097 fi ;; 27098 [\\/]* | ?:[\\/]* ) # Absolute path. 27099 ac_srcdir=$srcdir$ac_dir_suffix; 27100 ac_top_srcdir=$srcdir ;; 27101 *) # Relative path. 27102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 27103 ac_top_srcdir=$ac_top_builddir$srcdir ;; 27104esac 27105 27106# Do not use `cd foo && pwd` to compute absolute paths, because 27107# the directories may not exist. 27108case `pwd` in 27109.) ac_abs_builddir="$ac_dir";; 27110*) 27111 case "$ac_dir" in 27112 .) ac_abs_builddir=`pwd`;; 27113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 27114 *) ac_abs_builddir=`pwd`/"$ac_dir";; 27115 esac;; 27116esac 27117case $ac_abs_builddir in 27118.) ac_abs_top_builddir=${ac_top_builddir}.;; 27119*) 27120 case ${ac_top_builddir}. in 27121 .) ac_abs_top_builddir=$ac_abs_builddir;; 27122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 27123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 27124 esac;; 27125esac 27126case $ac_abs_builddir in 27127.) ac_abs_srcdir=$ac_srcdir;; 27128*) 27129 case $ac_srcdir in 27130 .) ac_abs_srcdir=$ac_abs_builddir;; 27131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 27132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 27133 esac;; 27134esac 27135case $ac_abs_builddir in 27136.) ac_abs_top_srcdir=$ac_top_srcdir;; 27137*) 27138 case $ac_top_srcdir in 27139 .) ac_abs_top_srcdir=$ac_abs_builddir;; 27140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 27141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 27142 esac;; 27143esac 27144 27145 27146 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 27147echo "$as_me: executing $ac_dest commands" >&6;} 27148 case $ac_dest in 27149 default ) chmod +rx pthread-config 27150chmod +rx pth-config 27151 ;; 27152 esac 27153done 27154_ACEOF 27155 27156cat >>$CONFIG_STATUS <<\_ACEOF 27157 27158{ (exit 0); exit 0; } 27159_ACEOF 27160chmod +x $CONFIG_STATUS 27161ac_clean_files=$ac_clean_files_save 27162 27163 27164# configure is writing to config.log, and then calls config.status. 27165# config.status does its own redirection, appending to config.log. 27166# Unfortunately, on DOS this fails, as config.log is still kept open 27167# by configure, so config.status won't be able to write to it; its 27168# output is simply discarded. So we exec the FD to /dev/null, 27169# effectively closing config.log, so it can be properly (re)opened and 27170# appended to by config.status. When coming back to configure, we 27171# need to make the FD available again. 27172if test "$no_create" != yes; then 27173 ac_cs_success=: 27174 ac_config_status_args= 27175 test "$silent" = yes && 27176 ac_config_status_args="$ac_config_status_args --quiet" 27177 exec 5>/dev/null 27178 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27179 exec 5>>config.log 27180 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27181 # would make configure fail if this is the last instruction. 27182 $ac_cs_success || { (exit 1); exit 1; } 27183fi 27184if test ".$enable_pthread" = .no; then 27185 rm -f pthread-config 27186 rm -f pthread.h 27187fi 27188 27189if test ".$enable_batch" != .yes; then 27190 echo "" 27191 echo "Now please type \`${TB}make${TN}' to compile. Good luck." 27192 echo "" 27193fi 27194 27195