1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string=`eval $cmd`) 2>/dev/null && 289 echo_test_string=`eval $cmd` && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME= 423PACKAGE_TARNAME= 424PACKAGE_VERSION= 425PACKAGE_STRING= 426PACKAGE_BUGREPORT= 427 428ac_unique_file="aclocal.m4" 429# Factoring default headers for most tests. 430ac_includes_default="\ 431#include <stdio.h> 432#if HAVE_SYS_TYPES_H 433# include <sys/types.h> 434#endif 435#if HAVE_SYS_STAT_H 436# include <sys/stat.h> 437#endif 438#if STDC_HEADERS 439# include <stdlib.h> 440# include <stddef.h> 441#else 442# if HAVE_STDLIB_H 443# include <stdlib.h> 444# endif 445#endif 446#if HAVE_STRING_H 447# if !STDC_HEADERS && HAVE_MEMORY_H 448# include <memory.h> 449# endif 450# include <string.h> 451#endif 452#if HAVE_STRINGS_H 453# include <strings.h> 454#endif 455#if HAVE_INTTYPES_H 456# include <inttypes.h> 457#else 458# if HAVE_STDINT_H 459# include <stdint.h> 460# endif 461#endif 462#if HAVE_UNISTD_H 463# include <unistd.h> 464#endif" 465 466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MACOSX LIBUSB_CONFIG WITH_LIBUSB MACOSX_TRUE MACOSX_FALSE WITH_LIBUSB_TRUE WITH_LIBUSB_FALSE LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures this package to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008Program names: 1009 --program-prefix=PREFIX prepend PREFIX to installed program names 1010 --program-suffix=SUFFIX append SUFFIX to installed program names 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1012 1013System types: 1014 --build=BUILD configure for building on BUILD [guessed] 1015 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1016_ACEOF 1017fi 1018 1019if test -n "$ac_init_help"; then 1020 1021 cat <<\_ACEOF 1022 1023Optional Features: 1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1026 --enable-shared[=PKGS] 1027 build shared libraries [default=yes] 1028 --enable-static[=PKGS] 1029 build static libraries [default=yes] 1030 --enable-fast-install[=PKGS] 1031 optimize for fast installation [default=yes] 1032 --disable-dependency-tracking speeds up one-time build 1033 --enable-dependency-tracking do not reject slow dependency extractors 1034 --disable-libtool-lock avoid locking (might break parallel builds) 1035 1036Optional Packages: 1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1040 --with-pic try to use only PIC/non-PIC objects [default=use 1041 both] 1042 --with-tags[=TAGS] 1043 include additional configurations [automatic] 1044 --with-libusb Include libusb support (default) 1045 --without-libusb Don't include libusb support 1046 1047Some influential environment variables: 1048 CC C compiler command 1049 CFLAGS C compiler flags 1050 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1051 nonstandard directory <lib dir> 1052 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1053 headers in a nonstandard directory <include dir> 1054 CPP C preprocessor 1055 CXX C++ compiler command 1056 CXXFLAGS C++ compiler flags 1057 CXXCPP C++ preprocessor 1058 F77 Fortran 77 compiler command 1059 FFLAGS Fortran 77 compiler flags 1060 1061Use these variables to override the choices made by `configure' or to help 1062it to find libraries and programs with nonstandard names/locations. 1063 1064_ACEOF 1065fi 1066 1067if test "$ac_init_help" = "recursive"; then 1068 # If there are subdirs, report their specific --help. 1069 ac_popdir=`pwd` 1070 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1071 test -d $ac_dir || continue 1072 ac_builddir=. 1073 1074if test "$ac_dir" != .; then 1075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1076 # A "../" for each directory in $ac_dir_suffix. 1077 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1078else 1079 ac_dir_suffix= ac_top_builddir= 1080fi 1081 1082case $srcdir in 1083 .) # No --srcdir option. We are building in place. 1084 ac_srcdir=. 1085 if test -z "$ac_top_builddir"; then 1086 ac_top_srcdir=. 1087 else 1088 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1089 fi ;; 1090 [\\/]* | ?:[\\/]* ) # Absolute path. 1091 ac_srcdir=$srcdir$ac_dir_suffix; 1092 ac_top_srcdir=$srcdir ;; 1093 *) # Relative path. 1094 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1095 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1096esac 1097 1098# Do not use `cd foo && pwd` to compute absolute paths, because 1099# the directories may not exist. 1100case `pwd` in 1101.) ac_abs_builddir="$ac_dir";; 1102*) 1103 case "$ac_dir" in 1104 .) ac_abs_builddir=`pwd`;; 1105 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1106 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1107 esac;; 1108esac 1109case $ac_abs_builddir in 1110.) ac_abs_top_builddir=${ac_top_builddir}.;; 1111*) 1112 case ${ac_top_builddir}. in 1113 .) ac_abs_top_builddir=$ac_abs_builddir;; 1114 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1115 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1116 esac;; 1117esac 1118case $ac_abs_builddir in 1119.) ac_abs_srcdir=$ac_srcdir;; 1120*) 1121 case $ac_srcdir in 1122 .) ac_abs_srcdir=$ac_abs_builddir;; 1123 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1124 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1125 esac;; 1126esac 1127case $ac_abs_builddir in 1128.) ac_abs_top_srcdir=$ac_top_srcdir;; 1129*) 1130 case $ac_top_srcdir in 1131 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1132 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1133 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1134 esac;; 1135esac 1136 1137 cd $ac_dir 1138 # Check for guested configure; otherwise get Cygnus style configure. 1139 if test -f $ac_srcdir/configure.gnu; then 1140 echo 1141 $SHELL $ac_srcdir/configure.gnu --help=recursive 1142 elif test -f $ac_srcdir/configure; then 1143 echo 1144 $SHELL $ac_srcdir/configure --help=recursive 1145 elif test -f $ac_srcdir/configure.ac || 1146 test -f $ac_srcdir/configure.in; then 1147 echo 1148 $ac_configure --help 1149 else 1150 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1151 fi 1152 cd $ac_popdir 1153 done 1154fi 1155 1156test -n "$ac_init_help" && exit 0 1157if $ac_init_version; then 1158 cat <<\_ACEOF 1159 1160Copyright (C) 2003 Free Software Foundation, Inc. 1161This configure script is free software; the Free Software Foundation 1162gives unlimited permission to copy, distribute and modify it. 1163_ACEOF 1164 exit 0 1165fi 1166exec 5>config.log 1167cat >&5 <<_ACEOF 1168This file contains any messages produced by compilers while 1169running configure, to aid debugging if configure makes a mistake. 1170 1171It was created by $as_me, which was 1172generated by GNU Autoconf 2.59. Invocation command line was 1173 1174 $ $0 $@ 1175 1176_ACEOF 1177{ 1178cat <<_ASUNAME 1179## --------- ## 1180## Platform. ## 1181## --------- ## 1182 1183hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1184uname -m = `(uname -m) 2>/dev/null || echo unknown` 1185uname -r = `(uname -r) 2>/dev/null || echo unknown` 1186uname -s = `(uname -s) 2>/dev/null || echo unknown` 1187uname -v = `(uname -v) 2>/dev/null || echo unknown` 1188 1189/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1190/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1191 1192/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1193/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1194/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1195hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1196/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1197/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1198/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1199 1200_ASUNAME 1201 1202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1203for as_dir in $PATH 1204do 1205 IFS=$as_save_IFS 1206 test -z "$as_dir" && as_dir=. 1207 echo "PATH: $as_dir" 1208done 1209 1210} >&5 1211 1212cat >&5 <<_ACEOF 1213 1214 1215## ----------- ## 1216## Core tests. ## 1217## ----------- ## 1218 1219_ACEOF 1220 1221 1222# Keep a trace of the command line. 1223# Strip out --no-create and --no-recursion so they do not pile up. 1224# Strip out --silent because we don't want to record it for future runs. 1225# Also quote any args containing shell meta-characters. 1226# Make two passes to allow for proper duplicate-argument suppression. 1227ac_configure_args= 1228ac_configure_args0= 1229ac_configure_args1= 1230ac_sep= 1231ac_must_keep_next=false 1232for ac_pass in 1 2 1233do 1234 for ac_arg 1235 do 1236 case $ac_arg in 1237 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1239 | -silent | --silent | --silen | --sile | --sil) 1240 continue ;; 1241 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1242 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1243 esac 1244 case $ac_pass in 1245 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1246 2) 1247 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1248 if test $ac_must_keep_next = true; then 1249 ac_must_keep_next=false # Got value, back to normal. 1250 else 1251 case $ac_arg in 1252 *=* | --config-cache | -C | -disable-* | --disable-* \ 1253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1255 | -with-* | --with-* | -without-* | --without-* | --x) 1256 case "$ac_configure_args0 " in 1257 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1258 esac 1259 ;; 1260 -* ) ac_must_keep_next=true ;; 1261 esac 1262 fi 1263 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1264 # Get rid of the leading space. 1265 ac_sep=" " 1266 ;; 1267 esac 1268 done 1269done 1270$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1271$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1272 1273# When interrupted or exit'd, cleanup temporary files, and complete 1274# config.log. We remove comments because anyway the quotes in there 1275# would cause problems or look ugly. 1276# WARNING: Be sure not to use single quotes in there, as some shells, 1277# such as our DU 5.0 friend, will then `close' the trap. 1278trap 'exit_status=$? 1279 # Save into config.log some information that might help in debugging. 1280 { 1281 echo 1282 1283 cat <<\_ASBOX 1284## ---------------- ## 1285## Cache variables. ## 1286## ---------------- ## 1287_ASBOX 1288 echo 1289 # The following way of writing the cache mishandles newlines in values, 1290{ 1291 (set) 2>&1 | 1292 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1293 *ac_space=\ *) 1294 sed -n \ 1295 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1297 ;; 1298 *) 1299 sed -n \ 1300 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1301 ;; 1302 esac; 1303} 1304 echo 1305 1306 cat <<\_ASBOX 1307## ----------------- ## 1308## Output variables. ## 1309## ----------------- ## 1310_ASBOX 1311 echo 1312 for ac_var in $ac_subst_vars 1313 do 1314 eval ac_val=$`echo $ac_var` 1315 echo "$ac_var='"'"'$ac_val'"'"'" 1316 done | sort 1317 echo 1318 1319 if test -n "$ac_subst_files"; then 1320 cat <<\_ASBOX 1321## ------------- ## 1322## Output files. ## 1323## ------------- ## 1324_ASBOX 1325 echo 1326 for ac_var in $ac_subst_files 1327 do 1328 eval ac_val=$`echo $ac_var` 1329 echo "$ac_var='"'"'$ac_val'"'"'" 1330 done | sort 1331 echo 1332 fi 1333 1334 if test -s confdefs.h; then 1335 cat <<\_ASBOX 1336## ----------- ## 1337## confdefs.h. ## 1338## ----------- ## 1339_ASBOX 1340 echo 1341 sed "/^$/d" confdefs.h | sort 1342 echo 1343 fi 1344 test "$ac_signal" != 0 && 1345 echo "$as_me: caught signal $ac_signal" 1346 echo "$as_me: exit $exit_status" 1347 } >&5 1348 rm -f core *.core && 1349 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1350 exit $exit_status 1351 ' 0 1352for ac_signal in 1 2 13 15; do 1353 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1354done 1355ac_signal=0 1356 1357# confdefs.h avoids OS command line length limits that DEFS can exceed. 1358rm -rf conftest* confdefs.h 1359# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1360echo >confdefs.h 1361 1362# Predefined preprocessor variables. 1363 1364cat >>confdefs.h <<_ACEOF 1365#define PACKAGE_NAME "$PACKAGE_NAME" 1366_ACEOF 1367 1368 1369cat >>confdefs.h <<_ACEOF 1370#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1371_ACEOF 1372 1373 1374cat >>confdefs.h <<_ACEOF 1375#define PACKAGE_VERSION "$PACKAGE_VERSION" 1376_ACEOF 1377 1378 1379cat >>confdefs.h <<_ACEOF 1380#define PACKAGE_STRING "$PACKAGE_STRING" 1381_ACEOF 1382 1383 1384cat >>confdefs.h <<_ACEOF 1385#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1386_ACEOF 1387 1388 1389# Let the site file select an alternate cache file if it wants to. 1390# Prefer explicitly selected file to automatically selected ones. 1391if test -z "$CONFIG_SITE"; then 1392 if test "x$prefix" != xNONE; then 1393 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1394 else 1395 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1396 fi 1397fi 1398for ac_site_file in $CONFIG_SITE; do 1399 if test -r "$ac_site_file"; then 1400 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1401echo "$as_me: loading site script $ac_site_file" >&6;} 1402 sed 's/^/| /' "$ac_site_file" >&5 1403 . "$ac_site_file" 1404 fi 1405done 1406 1407if test -r "$cache_file"; then 1408 # Some versions of bash will fail to source /dev/null (special 1409 # files actually), so we avoid doing that. 1410 if test -f "$cache_file"; then 1411 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1412echo "$as_me: loading cache $cache_file" >&6;} 1413 case $cache_file in 1414 [\\/]* | ?:[\\/]* ) . $cache_file;; 1415 *) . ./$cache_file;; 1416 esac 1417 fi 1418else 1419 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1420echo "$as_me: creating cache $cache_file" >&6;} 1421 >$cache_file 1422fi 1423 1424# Check that the precious variables saved in the cache have kept the same 1425# value. 1426ac_cache_corrupted=false 1427for ac_var in `(set) 2>&1 | 1428 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1429 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1430 eval ac_new_set=\$ac_env_${ac_var}_set 1431 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1432 eval ac_new_val="\$ac_env_${ac_var}_value" 1433 case $ac_old_set,$ac_new_set in 1434 set,) 1435 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1436echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1437 ac_cache_corrupted=: ;; 1438 ,set) 1439 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1440echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1441 ac_cache_corrupted=: ;; 1442 ,);; 1443 *) 1444 if test "x$ac_old_val" != "x$ac_new_val"; then 1445 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1446echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1447 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1448echo "$as_me: former value: $ac_old_val" >&2;} 1449 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1450echo "$as_me: current value: $ac_new_val" >&2;} 1451 ac_cache_corrupted=: 1452 fi;; 1453 esac 1454 # Pass precious variables to config.status. 1455 if test "$ac_new_set" = set; then 1456 case $ac_new_val in 1457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1458 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1459 *) ac_arg=$ac_var=$ac_new_val ;; 1460 esac 1461 case " $ac_configure_args " in 1462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1463 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1464 esac 1465 fi 1466done 1467if $ac_cache_corrupted; then 1468 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1469echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1470 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1471echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1472 { (exit 1); exit 1; }; } 1473fi 1474 1475ac_ext=c 1476ac_cpp='$CPP $CPPFLAGS' 1477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1479ac_compiler_gnu=$ac_cv_c_compiler_gnu 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500am__api_version="1.9" 1501ac_aux_dir= 1502for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1503 if test -f $ac_dir/install-sh; then 1504 ac_aux_dir=$ac_dir 1505 ac_install_sh="$ac_aux_dir/install-sh -c" 1506 break 1507 elif test -f $ac_dir/install.sh; then 1508 ac_aux_dir=$ac_dir 1509 ac_install_sh="$ac_aux_dir/install.sh -c" 1510 break 1511 elif test -f $ac_dir/shtool; then 1512 ac_aux_dir=$ac_dir 1513 ac_install_sh="$ac_aux_dir/shtool install -c" 1514 break 1515 fi 1516done 1517if test -z "$ac_aux_dir"; then 1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1519echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1520 { (exit 1); exit 1; }; } 1521fi 1522ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1523ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1524ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1525 1526# Find a good install program. We prefer a C program (faster), 1527# so one script is as good as another. But avoid the broken or 1528# incompatible versions: 1529# SysV /etc/install, /usr/sbin/install 1530# SunOS /usr/etc/install 1531# IRIX /sbin/install 1532# AIX /bin/install 1533# AmigaOS /C/install, which installs bootblocks on floppy discs 1534# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1535# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1536# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1537# OS/2's system install, which has a completely different semantic 1538# ./install, which can be erroneously created by make from ./install.sh. 1539echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1540echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1541if test -z "$INSTALL"; then 1542if test "${ac_cv_path_install+set}" = set; then 1543 echo $ECHO_N "(cached) $ECHO_C" >&6 1544else 1545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1546for as_dir in $PATH 1547do 1548 IFS=$as_save_IFS 1549 test -z "$as_dir" && as_dir=. 1550 # Account for people who put trailing slashes in PATH elements. 1551case $as_dir/ in 1552 ./ | .// | /cC/* | \ 1553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1554 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1555 /usr/ucb/* ) ;; 1556 *) 1557 # OSF1 and SCO ODT 3.0 have their own names for install. 1558 # Don't use installbsd from OSF since it installs stuff as root 1559 # by default. 1560 for ac_prog in ginstall scoinst install; do 1561 for ac_exec_ext in '' $ac_executable_extensions; do 1562 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1563 if test $ac_prog = install && 1564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1565 # AIX install. It has an incompatible calling convention. 1566 : 1567 elif test $ac_prog = install && 1568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1569 # program-specific install script used by HP pwplus--don't use. 1570 : 1571 else 1572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1573 break 3 1574 fi 1575 fi 1576 done 1577 done 1578 ;; 1579esac 1580done 1581 1582 1583fi 1584 if test "${ac_cv_path_install+set}" = set; then 1585 INSTALL=$ac_cv_path_install 1586 else 1587 # As a last resort, use the slow shell script. We don't cache a 1588 # path for INSTALL within a source directory, because that will 1589 # break other packages using the cache if that directory is 1590 # removed, or if the path is relative. 1591 INSTALL=$ac_install_sh 1592 fi 1593fi 1594echo "$as_me:$LINENO: result: $INSTALL" >&5 1595echo "${ECHO_T}$INSTALL" >&6 1596 1597# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1598# It thinks the first close brace ends the variable substitution. 1599test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1600 1601test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1602 1603test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1604 1605echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1606echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1607# Just in case 1608sleep 1 1609echo timestamp > conftest.file 1610# Do `set' in a subshell so we don't clobber the current shell's 1611# arguments. Must try -L first in case configure is actually a 1612# symlink; some systems play weird games with the mod time of symlinks 1613# (eg FreeBSD returns the mod time of the symlink's containing 1614# directory). 1615if ( 1616 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1617 if test "$*" = "X"; then 1618 # -L didn't work. 1619 set X `ls -t $srcdir/configure conftest.file` 1620 fi 1621 rm -f conftest.file 1622 if test "$*" != "X $srcdir/configure conftest.file" \ 1623 && test "$*" != "X conftest.file $srcdir/configure"; then 1624 1625 # If neither matched, then we have a broken ls. This can happen 1626 # if, for instance, CONFIG_SHELL is bash and it inherits a 1627 # broken ls alias from the environment. This has actually 1628 # happened. Such a system could not be considered "sane". 1629 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1630alias in your environment" >&5 1631echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1632alias in your environment" >&2;} 1633 { (exit 1); exit 1; }; } 1634 fi 1635 1636 test "$2" = conftest.file 1637 ) 1638then 1639 # Ok. 1640 : 1641else 1642 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1643Check your system clock" >&5 1644echo "$as_me: error: newly created file is older than distributed files! 1645Check your system clock" >&2;} 1646 { (exit 1); exit 1; }; } 1647fi 1648echo "$as_me:$LINENO: result: yes" >&5 1649echo "${ECHO_T}yes" >&6 1650test "$program_prefix" != NONE && 1651 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1652# Use a double $ so make ignores it. 1653test "$program_suffix" != NONE && 1654 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1655# Double any \ or $. echo might interpret backslashes. 1656# By default was `s,x,x', remove it if useless. 1657cat <<\_ACEOF >conftest.sed 1658s/[\\$]/&&/g;s/;s,x,x,$// 1659_ACEOF 1660program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1661rm conftest.sed 1662 1663# expand $ac_aux_dir to an absolute path 1664am_aux_dir=`cd $ac_aux_dir && pwd` 1665 1666test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1667# Use eval to expand $SHELL 1668if eval "$MISSING --run true"; then 1669 am_missing_run="$MISSING --run " 1670else 1671 am_missing_run= 1672 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1673echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1674fi 1675 1676if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1677 # We used to keeping the `.' as first argument, in order to 1678 # allow $(mkdir_p) to be used without argument. As in 1679 # $(mkdir_p) $(somedir) 1680 # where $(somedir) is conditionally defined. However this is wrong 1681 # for two reasons: 1682 # 1. if the package is installed by a user who cannot write `.' 1683 # make install will fail, 1684 # 2. the above comment should most certainly read 1685 # $(mkdir_p) $(DESTDIR)$(somedir) 1686 # so it does not work when $(somedir) is undefined and 1687 # $(DESTDIR) is not. 1688 # To support the latter case, we have to write 1689 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1690 # so the `.' trick is pointless. 1691 mkdir_p='mkdir -p --' 1692else 1693 # On NextStep and OpenStep, the `mkdir' command does not 1694 # recognize any option. It will interpret all options as 1695 # directories to create, and then abort because `.' already 1696 # exists. 1697 for d in ./-p ./--version; 1698 do 1699 test -d $d && rmdir $d 1700 done 1701 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1702 if test -f "$ac_aux_dir/mkinstalldirs"; then 1703 mkdir_p='$(mkinstalldirs)' 1704 else 1705 mkdir_p='$(install_sh) -d' 1706 fi 1707fi 1708 1709for ac_prog in gawk mawk nawk awk 1710do 1711 # Extract the first word of "$ac_prog", so it can be a program name with args. 1712set dummy $ac_prog; ac_word=$2 1713echo "$as_me:$LINENO: checking for $ac_word" >&5 1714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1715if test "${ac_cv_prog_AWK+set}" = set; then 1716 echo $ECHO_N "(cached) $ECHO_C" >&6 1717else 1718 if test -n "$AWK"; then 1719 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1720else 1721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1722for as_dir in $PATH 1723do 1724 IFS=$as_save_IFS 1725 test -z "$as_dir" && as_dir=. 1726 for ac_exec_ext in '' $ac_executable_extensions; do 1727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1728 ac_cv_prog_AWK="$ac_prog" 1729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1730 break 2 1731 fi 1732done 1733done 1734 1735fi 1736fi 1737AWK=$ac_cv_prog_AWK 1738if test -n "$AWK"; then 1739 echo "$as_me:$LINENO: result: $AWK" >&5 1740echo "${ECHO_T}$AWK" >&6 1741else 1742 echo "$as_me:$LINENO: result: no" >&5 1743echo "${ECHO_T}no" >&6 1744fi 1745 1746 test -n "$AWK" && break 1747done 1748 1749echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1750echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1751set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1752if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1753 echo $ECHO_N "(cached) $ECHO_C" >&6 1754else 1755 cat >conftest.make <<\_ACEOF 1756all: 1757 @echo 'ac_maketemp="$(MAKE)"' 1758_ACEOF 1759# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1760eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1761if test -n "$ac_maketemp"; then 1762 eval ac_cv_prog_make_${ac_make}_set=yes 1763else 1764 eval ac_cv_prog_make_${ac_make}_set=no 1765fi 1766rm -f conftest.make 1767fi 1768if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1769 echo "$as_me:$LINENO: result: yes" >&5 1770echo "${ECHO_T}yes" >&6 1771 SET_MAKE= 1772else 1773 echo "$as_me:$LINENO: result: no" >&5 1774echo "${ECHO_T}no" >&6 1775 SET_MAKE="MAKE=${MAKE-make}" 1776fi 1777 1778rm -rf .tst 2>/dev/null 1779mkdir .tst 2>/dev/null 1780if test -d .tst; then 1781 am__leading_dot=. 1782else 1783 am__leading_dot=_ 1784fi 1785rmdir .tst 2>/dev/null 1786 1787# test to see if srcdir already configured 1788if test "`cd $srcdir && pwd`" != "`pwd`" && 1789 test -f $srcdir/config.status; then 1790 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1791echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1792 { (exit 1); exit 1; }; } 1793fi 1794 1795# test whether we have cygpath 1796if test -z "$CYGPATH_W"; then 1797 if (cygpath --version) >/dev/null 2>/dev/null; then 1798 CYGPATH_W='cygpath -w' 1799 else 1800 CYGPATH_W=echo 1801 fi 1802fi 1803 1804 1805# Define the identity of the package. 1806 PACKAGE=rioutil 1807 VERSION=1.5.0 1808 1809 1810cat >>confdefs.h <<_ACEOF 1811#define PACKAGE "$PACKAGE" 1812_ACEOF 1813 1814 1815cat >>confdefs.h <<_ACEOF 1816#define VERSION "$VERSION" 1817_ACEOF 1818 1819# Some tools Automake needs. 1820 1821ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1822 1823 1824AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1825 1826 1827AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1828 1829 1830AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1831 1832 1833MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1834 1835install_sh=${install_sh-"$am_aux_dir/install-sh"} 1836 1837# Installed binaries are usually stripped using `strip' when the user 1838# run `make install-strip'. However `strip' might not be the right 1839# tool to use in cross-compilation environments, therefore Automake 1840# will honor the `STRIP' environment variable to overrule this program. 1841if test "$cross_compiling" != no; then 1842 if test -n "$ac_tool_prefix"; then 1843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1844set dummy ${ac_tool_prefix}strip; ac_word=$2 1845echo "$as_me:$LINENO: checking for $ac_word" >&5 1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1847if test "${ac_cv_prog_STRIP+set}" = set; then 1848 echo $ECHO_N "(cached) $ECHO_C" >&6 1849else 1850 if test -n "$STRIP"; then 1851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1852else 1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1854for as_dir in $PATH 1855do 1856 IFS=$as_save_IFS 1857 test -z "$as_dir" && as_dir=. 1858 for ac_exec_ext in '' $ac_executable_extensions; do 1859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1860 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1862 break 2 1863 fi 1864done 1865done 1866 1867fi 1868fi 1869STRIP=$ac_cv_prog_STRIP 1870if test -n "$STRIP"; then 1871 echo "$as_me:$LINENO: result: $STRIP" >&5 1872echo "${ECHO_T}$STRIP" >&6 1873else 1874 echo "$as_me:$LINENO: result: no" >&5 1875echo "${ECHO_T}no" >&6 1876fi 1877 1878fi 1879if test -z "$ac_cv_prog_STRIP"; then 1880 ac_ct_STRIP=$STRIP 1881 # Extract the first word of "strip", so it can be a program name with args. 1882set dummy strip; ac_word=$2 1883echo "$as_me:$LINENO: checking for $ac_word" >&5 1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1885if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1886 echo $ECHO_N "(cached) $ECHO_C" >&6 1887else 1888 if test -n "$ac_ct_STRIP"; then 1889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1890else 1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1892for as_dir in $PATH 1893do 1894 IFS=$as_save_IFS 1895 test -z "$as_dir" && as_dir=. 1896 for ac_exec_ext in '' $ac_executable_extensions; do 1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1898 ac_cv_prog_ac_ct_STRIP="strip" 1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1900 break 2 1901 fi 1902done 1903done 1904 1905 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1906fi 1907fi 1908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1909if test -n "$ac_ct_STRIP"; then 1910 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1911echo "${ECHO_T}$ac_ct_STRIP" >&6 1912else 1913 echo "$as_me:$LINENO: result: no" >&5 1914echo "${ECHO_T}no" >&6 1915fi 1916 1917 STRIP=$ac_ct_STRIP 1918else 1919 STRIP="$ac_cv_prog_STRIP" 1920fi 1921 1922fi 1923INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1924 1925# We need awk for the "check" target. The system "awk" is bad on 1926# some platforms. 1927# Always define AMTAR for backward compatibility. 1928 1929AMTAR=${AMTAR-"${am_missing_run}tar"} 1930 1931am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1932 1933 1934 1935 1936 1937 ac_config_headers="$ac_config_headers include/config.h" 1938 1939 1940# Check whether --enable-shared or --disable-shared was given. 1941if test "${enable_shared+set}" = set; then 1942 enableval="$enable_shared" 1943 p=${PACKAGE-default} 1944 case $enableval in 1945 yes) enable_shared=yes ;; 1946 no) enable_shared=no ;; 1947 *) 1948 enable_shared=no 1949 # Look at the argument we got. We use all the common list separators. 1950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1951 for pkg in $enableval; do 1952 IFS="$lt_save_ifs" 1953 if test "X$pkg" = "X$p"; then 1954 enable_shared=yes 1955 fi 1956 done 1957 IFS="$lt_save_ifs" 1958 ;; 1959 esac 1960else 1961 enable_shared=yes 1962fi; 1963 1964# Check whether --enable-static or --disable-static was given. 1965if test "${enable_static+set}" = set; then 1966 enableval="$enable_static" 1967 p=${PACKAGE-default} 1968 case $enableval in 1969 yes) enable_static=yes ;; 1970 no) enable_static=no ;; 1971 *) 1972 enable_static=no 1973 # Look at the argument we got. We use all the common list separators. 1974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1975 for pkg in $enableval; do 1976 IFS="$lt_save_ifs" 1977 if test "X$pkg" = "X$p"; then 1978 enable_static=yes 1979 fi 1980 done 1981 IFS="$lt_save_ifs" 1982 ;; 1983 esac 1984else 1985 enable_static=yes 1986fi; 1987 1988# Check whether --enable-fast-install or --disable-fast-install was given. 1989if test "${enable_fast_install+set}" = set; then 1990 enableval="$enable_fast_install" 1991 p=${PACKAGE-default} 1992 case $enableval in 1993 yes) enable_fast_install=yes ;; 1994 no) enable_fast_install=no ;; 1995 *) 1996 enable_fast_install=no 1997 # Look at the argument we got. We use all the common list separators. 1998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1999 for pkg in $enableval; do 2000 IFS="$lt_save_ifs" 2001 if test "X$pkg" = "X$p"; then 2002 enable_fast_install=yes 2003 fi 2004 done 2005 IFS="$lt_save_ifs" 2006 ;; 2007 esac 2008else 2009 enable_fast_install=yes 2010fi; 2011 2012# Make sure we can run config.sub. 2013$ac_config_sub sun4 >/dev/null 2>&1 || 2014 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2015echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2016 { (exit 1); exit 1; }; } 2017 2018echo "$as_me:$LINENO: checking build system type" >&5 2019echo $ECHO_N "checking build system type... $ECHO_C" >&6 2020if test "${ac_cv_build+set}" = set; then 2021 echo $ECHO_N "(cached) $ECHO_C" >&6 2022else 2023 ac_cv_build_alias=$build_alias 2024test -z "$ac_cv_build_alias" && 2025 ac_cv_build_alias=`$ac_config_guess` 2026test -z "$ac_cv_build_alias" && 2027 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2028echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2029 { (exit 1); exit 1; }; } 2030ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2031 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2032echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2033 { (exit 1); exit 1; }; } 2034 2035fi 2036echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2037echo "${ECHO_T}$ac_cv_build" >&6 2038build=$ac_cv_build 2039build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2040build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2041build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2042 2043 2044echo "$as_me:$LINENO: checking host system type" >&5 2045echo $ECHO_N "checking host system type... $ECHO_C" >&6 2046if test "${ac_cv_host+set}" = set; then 2047 echo $ECHO_N "(cached) $ECHO_C" >&6 2048else 2049 ac_cv_host_alias=$host_alias 2050test -z "$ac_cv_host_alias" && 2051 ac_cv_host_alias=$ac_cv_build_alias 2052ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2053 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2054echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2055 { (exit 1); exit 1; }; } 2056 2057fi 2058echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2059echo "${ECHO_T}$ac_cv_host" >&6 2060host=$ac_cv_host 2061host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2062host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2063host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2064 2065 2066DEPDIR="${am__leading_dot}deps" 2067 2068 ac_config_commands="$ac_config_commands depfiles" 2069 2070 2071am_make=${MAKE-make} 2072cat > confinc << 'END' 2073am__doit: 2074 @echo done 2075.PHONY: am__doit 2076END 2077# If we don't find an include directive, just comment out the code. 2078echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2079echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2080am__include="#" 2081am__quote= 2082_am_result=none 2083# First try GNU make style include. 2084echo "include confinc" > confmf 2085# We grep out `Entering directory' and `Leaving directory' 2086# messages which can occur if `w' ends up in MAKEFLAGS. 2087# In particular we don't look at `^make:' because GNU make might 2088# be invoked under some other name (usually "gmake"), in which 2089# case it prints its new name instead of `make'. 2090if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2091 am__include=include 2092 am__quote= 2093 _am_result=GNU 2094fi 2095# Now try BSD make style include. 2096if test "$am__include" = "#"; then 2097 echo '.include "confinc"' > confmf 2098 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2099 am__include=.include 2100 am__quote="\"" 2101 _am_result=BSD 2102 fi 2103fi 2104 2105 2106echo "$as_me:$LINENO: result: $_am_result" >&5 2107echo "${ECHO_T}$_am_result" >&6 2108rm -f confinc confmf 2109 2110# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2111if test "${enable_dependency_tracking+set}" = set; then 2112 enableval="$enable_dependency_tracking" 2113 2114fi; 2115if test "x$enable_dependency_tracking" != xno; then 2116 am_depcomp="$ac_aux_dir/depcomp" 2117 AMDEPBACKSLASH='\' 2118fi 2119 2120 2121if test "x$enable_dependency_tracking" != xno; then 2122 AMDEP_TRUE= 2123 AMDEP_FALSE='#' 2124else 2125 AMDEP_TRUE='#' 2126 AMDEP_FALSE= 2127fi 2128 2129 2130 2131ac_ext=c 2132ac_cpp='$CPP $CPPFLAGS' 2133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2135ac_compiler_gnu=$ac_cv_c_compiler_gnu 2136if test -n "$ac_tool_prefix"; then 2137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2138set dummy ${ac_tool_prefix}gcc; ac_word=$2 2139echo "$as_me:$LINENO: checking for $ac_word" >&5 2140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2141if test "${ac_cv_prog_CC+set}" = set; then 2142 echo $ECHO_N "(cached) $ECHO_C" >&6 2143else 2144 if test -n "$CC"; then 2145 ac_cv_prog_CC="$CC" # Let the user override the test. 2146else 2147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2148for as_dir in $PATH 2149do 2150 IFS=$as_save_IFS 2151 test -z "$as_dir" && as_dir=. 2152 for ac_exec_ext in '' $ac_executable_extensions; do 2153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2154 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2156 break 2 2157 fi 2158done 2159done 2160 2161fi 2162fi 2163CC=$ac_cv_prog_CC 2164if test -n "$CC"; then 2165 echo "$as_me:$LINENO: result: $CC" >&5 2166echo "${ECHO_T}$CC" >&6 2167else 2168 echo "$as_me:$LINENO: result: no" >&5 2169echo "${ECHO_T}no" >&6 2170fi 2171 2172fi 2173if test -z "$ac_cv_prog_CC"; then 2174 ac_ct_CC=$CC 2175 # Extract the first word of "gcc", so it can be a program name with args. 2176set dummy gcc; ac_word=$2 2177echo "$as_me:$LINENO: checking for $ac_word" >&5 2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2179if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2180 echo $ECHO_N "(cached) $ECHO_C" >&6 2181else 2182 if test -n "$ac_ct_CC"; then 2183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2184else 2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2186for as_dir in $PATH 2187do 2188 IFS=$as_save_IFS 2189 test -z "$as_dir" && as_dir=. 2190 for ac_exec_ext in '' $ac_executable_extensions; do 2191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2192 ac_cv_prog_ac_ct_CC="gcc" 2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2194 break 2 2195 fi 2196done 2197done 2198 2199fi 2200fi 2201ac_ct_CC=$ac_cv_prog_ac_ct_CC 2202if test -n "$ac_ct_CC"; then 2203 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2204echo "${ECHO_T}$ac_ct_CC" >&6 2205else 2206 echo "$as_me:$LINENO: result: no" >&5 2207echo "${ECHO_T}no" >&6 2208fi 2209 2210 CC=$ac_ct_CC 2211else 2212 CC="$ac_cv_prog_CC" 2213fi 2214 2215if test -z "$CC"; then 2216 if test -n "$ac_tool_prefix"; then 2217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2218set dummy ${ac_tool_prefix}cc; ac_word=$2 2219echo "$as_me:$LINENO: checking for $ac_word" >&5 2220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2221if test "${ac_cv_prog_CC+set}" = set; then 2222 echo $ECHO_N "(cached) $ECHO_C" >&6 2223else 2224 if test -n "$CC"; then 2225 ac_cv_prog_CC="$CC" # Let the user override the test. 2226else 2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2228for as_dir in $PATH 2229do 2230 IFS=$as_save_IFS 2231 test -z "$as_dir" && as_dir=. 2232 for ac_exec_ext in '' $ac_executable_extensions; do 2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2234 ac_cv_prog_CC="${ac_tool_prefix}cc" 2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2236 break 2 2237 fi 2238done 2239done 2240 2241fi 2242fi 2243CC=$ac_cv_prog_CC 2244if test -n "$CC"; then 2245 echo "$as_me:$LINENO: result: $CC" >&5 2246echo "${ECHO_T}$CC" >&6 2247else 2248 echo "$as_me:$LINENO: result: no" >&5 2249echo "${ECHO_T}no" >&6 2250fi 2251 2252fi 2253if test -z "$ac_cv_prog_CC"; then 2254 ac_ct_CC=$CC 2255 # Extract the first word of "cc", so it can be a program name with args. 2256set dummy cc; ac_word=$2 2257echo "$as_me:$LINENO: checking for $ac_word" >&5 2258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2259if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2260 echo $ECHO_N "(cached) $ECHO_C" >&6 2261else 2262 if test -n "$ac_ct_CC"; then 2263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2264else 2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2266for as_dir in $PATH 2267do 2268 IFS=$as_save_IFS 2269 test -z "$as_dir" && as_dir=. 2270 for ac_exec_ext in '' $ac_executable_extensions; do 2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2272 ac_cv_prog_ac_ct_CC="cc" 2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2274 break 2 2275 fi 2276done 2277done 2278 2279fi 2280fi 2281ac_ct_CC=$ac_cv_prog_ac_ct_CC 2282if test -n "$ac_ct_CC"; then 2283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2284echo "${ECHO_T}$ac_ct_CC" >&6 2285else 2286 echo "$as_me:$LINENO: result: no" >&5 2287echo "${ECHO_T}no" >&6 2288fi 2289 2290 CC=$ac_ct_CC 2291else 2292 CC="$ac_cv_prog_CC" 2293fi 2294 2295fi 2296if test -z "$CC"; then 2297 # Extract the first word of "cc", so it can be a program name with args. 2298set dummy cc; ac_word=$2 2299echo "$as_me:$LINENO: checking for $ac_word" >&5 2300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2301if test "${ac_cv_prog_CC+set}" = set; then 2302 echo $ECHO_N "(cached) $ECHO_C" >&6 2303else 2304 if test -n "$CC"; then 2305 ac_cv_prog_CC="$CC" # Let the user override the test. 2306else 2307 ac_prog_rejected=no 2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2309for as_dir in $PATH 2310do 2311 IFS=$as_save_IFS 2312 test -z "$as_dir" && as_dir=. 2313 for ac_exec_ext in '' $ac_executable_extensions; do 2314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2315 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2316 ac_prog_rejected=yes 2317 continue 2318 fi 2319 ac_cv_prog_CC="cc" 2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2321 break 2 2322 fi 2323done 2324done 2325 2326if test $ac_prog_rejected = yes; then 2327 # We found a bogon in the path, so make sure we never use it. 2328 set dummy $ac_cv_prog_CC 2329 shift 2330 if test $# != 0; then 2331 # We chose a different compiler from the bogus one. 2332 # However, it has the same basename, so the bogon will be chosen 2333 # first if we set CC to just the basename; use the full file name. 2334 shift 2335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2336 fi 2337fi 2338fi 2339fi 2340CC=$ac_cv_prog_CC 2341if test -n "$CC"; then 2342 echo "$as_me:$LINENO: result: $CC" >&5 2343echo "${ECHO_T}$CC" >&6 2344else 2345 echo "$as_me:$LINENO: result: no" >&5 2346echo "${ECHO_T}no" >&6 2347fi 2348 2349fi 2350if test -z "$CC"; then 2351 if test -n "$ac_tool_prefix"; then 2352 for ac_prog in cl 2353 do 2354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2355set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2356echo "$as_me:$LINENO: checking for $ac_word" >&5 2357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2358if test "${ac_cv_prog_CC+set}" = set; then 2359 echo $ECHO_N "(cached) $ECHO_C" >&6 2360else 2361 if test -n "$CC"; then 2362 ac_cv_prog_CC="$CC" # Let the user override the test. 2363else 2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2365for as_dir in $PATH 2366do 2367 IFS=$as_save_IFS 2368 test -z "$as_dir" && as_dir=. 2369 for ac_exec_ext in '' $ac_executable_extensions; do 2370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2371 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2373 break 2 2374 fi 2375done 2376done 2377 2378fi 2379fi 2380CC=$ac_cv_prog_CC 2381if test -n "$CC"; then 2382 echo "$as_me:$LINENO: result: $CC" >&5 2383echo "${ECHO_T}$CC" >&6 2384else 2385 echo "$as_me:$LINENO: result: no" >&5 2386echo "${ECHO_T}no" >&6 2387fi 2388 2389 test -n "$CC" && break 2390 done 2391fi 2392if test -z "$CC"; then 2393 ac_ct_CC=$CC 2394 for ac_prog in cl 2395do 2396 # Extract the first word of "$ac_prog", so it can be a program name with args. 2397set dummy $ac_prog; ac_word=$2 2398echo "$as_me:$LINENO: checking for $ac_word" >&5 2399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2400if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2401 echo $ECHO_N "(cached) $ECHO_C" >&6 2402else 2403 if test -n "$ac_ct_CC"; then 2404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2405else 2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2407for as_dir in $PATH 2408do 2409 IFS=$as_save_IFS 2410 test -z "$as_dir" && as_dir=. 2411 for ac_exec_ext in '' $ac_executable_extensions; do 2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2413 ac_cv_prog_ac_ct_CC="$ac_prog" 2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2415 break 2 2416 fi 2417done 2418done 2419 2420fi 2421fi 2422ac_ct_CC=$ac_cv_prog_ac_ct_CC 2423if test -n "$ac_ct_CC"; then 2424 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2425echo "${ECHO_T}$ac_ct_CC" >&6 2426else 2427 echo "$as_me:$LINENO: result: no" >&5 2428echo "${ECHO_T}no" >&6 2429fi 2430 2431 test -n "$ac_ct_CC" && break 2432done 2433 2434 CC=$ac_ct_CC 2435fi 2436 2437fi 2438 2439 2440test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2441See \`config.log' for more details." >&5 2442echo "$as_me: error: no acceptable C compiler found in \$PATH 2443See \`config.log' for more details." >&2;} 2444 { (exit 1); exit 1; }; } 2445 2446# Provide some information about the compiler. 2447echo "$as_me:$LINENO:" \ 2448 "checking for C compiler version" >&5 2449ac_compiler=`set X $ac_compile; echo $2` 2450{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2451 (eval $ac_compiler --version </dev/null >&5) 2>&5 2452 ac_status=$? 2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2454 (exit $ac_status); } 2455{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2456 (eval $ac_compiler -v </dev/null >&5) 2>&5 2457 ac_status=$? 2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2459 (exit $ac_status); } 2460{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2461 (eval $ac_compiler -V </dev/null >&5) 2>&5 2462 ac_status=$? 2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2464 (exit $ac_status); } 2465 2466cat >conftest.$ac_ext <<_ACEOF 2467/* confdefs.h. */ 2468_ACEOF 2469cat confdefs.h >>conftest.$ac_ext 2470cat >>conftest.$ac_ext <<_ACEOF 2471/* end confdefs.h. */ 2472 2473int 2474main () 2475{ 2476 2477 ; 2478 return 0; 2479} 2480_ACEOF 2481ac_clean_files_save=$ac_clean_files 2482ac_clean_files="$ac_clean_files a.out a.exe b.out" 2483# Try to create an executable without -o first, disregard a.out. 2484# It will help us diagnose broken compilers, and finding out an intuition 2485# of exeext. 2486echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2487echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2488ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2489if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2490 (eval $ac_link_default) 2>&5 2491 ac_status=$? 2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2493 (exit $ac_status); }; then 2494 # Find the output, starting from the most likely. This scheme is 2495# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2496# resort. 2497 2498# Be careful to initialize this variable, since it used to be cached. 2499# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2500ac_cv_exeext= 2501# b.out is created by i960 compilers. 2502for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2503do 2504 test -f "$ac_file" || continue 2505 case $ac_file in 2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2507 ;; 2508 conftest.$ac_ext ) 2509 # This is the source file. 2510 ;; 2511 [ab].out ) 2512 # We found the default executable, but exeext='' is most 2513 # certainly right. 2514 break;; 2515 *.* ) 2516 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2517 # FIXME: I believe we export ac_cv_exeext for Libtool, 2518 # but it would be cool to find out if it's true. Does anybody 2519 # maintain Libtool? --akim. 2520 export ac_cv_exeext 2521 break;; 2522 * ) 2523 break;; 2524 esac 2525done 2526else 2527 echo "$as_me: failed program was:" >&5 2528sed 's/^/| /' conftest.$ac_ext >&5 2529 2530{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2531See \`config.log' for more details." >&5 2532echo "$as_me: error: C compiler cannot create executables 2533See \`config.log' for more details." >&2;} 2534 { (exit 77); exit 77; }; } 2535fi 2536 2537ac_exeext=$ac_cv_exeext 2538echo "$as_me:$LINENO: result: $ac_file" >&5 2539echo "${ECHO_T}$ac_file" >&6 2540 2541# Check the compiler produces executables we can run. If not, either 2542# the compiler is broken, or we cross compile. 2543echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2544echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2545# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2546# If not cross compiling, check that we can run a simple program. 2547if test "$cross_compiling" != yes; then 2548 if { ac_try='./$ac_file' 2549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2550 (eval $ac_try) 2>&5 2551 ac_status=$? 2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2553 (exit $ac_status); }; }; then 2554 cross_compiling=no 2555 else 2556 if test "$cross_compiling" = maybe; then 2557 cross_compiling=yes 2558 else 2559 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2560If you meant to cross compile, use \`--host'. 2561See \`config.log' for more details." >&5 2562echo "$as_me: error: cannot run C compiled programs. 2563If you meant to cross compile, use \`--host'. 2564See \`config.log' for more details." >&2;} 2565 { (exit 1); exit 1; }; } 2566 fi 2567 fi 2568fi 2569echo "$as_me:$LINENO: result: yes" >&5 2570echo "${ECHO_T}yes" >&6 2571 2572rm -f a.out a.exe conftest$ac_cv_exeext b.out 2573ac_clean_files=$ac_clean_files_save 2574# Check the compiler produces executables we can run. If not, either 2575# the compiler is broken, or we cross compile. 2576echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2577echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2578echo "$as_me:$LINENO: result: $cross_compiling" >&5 2579echo "${ECHO_T}$cross_compiling" >&6 2580 2581echo "$as_me:$LINENO: checking for suffix of executables" >&5 2582echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2584 (eval $ac_link) 2>&5 2585 ac_status=$? 2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2587 (exit $ac_status); }; then 2588 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2589# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2590# work properly (i.e., refer to `conftest.exe'), while it won't with 2591# `rm'. 2592for ac_file in conftest.exe conftest conftest.*; do 2593 test -f "$ac_file" || continue 2594 case $ac_file in 2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2597 export ac_cv_exeext 2598 break;; 2599 * ) break;; 2600 esac 2601done 2602else 2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2604See \`config.log' for more details." >&5 2605echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2606See \`config.log' for more details." >&2;} 2607 { (exit 1); exit 1; }; } 2608fi 2609 2610rm -f conftest$ac_cv_exeext 2611echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2612echo "${ECHO_T}$ac_cv_exeext" >&6 2613 2614rm -f conftest.$ac_ext 2615EXEEXT=$ac_cv_exeext 2616ac_exeext=$EXEEXT 2617echo "$as_me:$LINENO: checking for suffix of object files" >&5 2618echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2619if test "${ac_cv_objext+set}" = set; then 2620 echo $ECHO_N "(cached) $ECHO_C" >&6 2621else 2622 cat >conftest.$ac_ext <<_ACEOF 2623/* confdefs.h. */ 2624_ACEOF 2625cat confdefs.h >>conftest.$ac_ext 2626cat >>conftest.$ac_ext <<_ACEOF 2627/* end confdefs.h. */ 2628 2629int 2630main () 2631{ 2632 2633 ; 2634 return 0; 2635} 2636_ACEOF 2637rm -f conftest.o conftest.obj 2638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2639 (eval $ac_compile) 2>&5 2640 ac_status=$? 2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2642 (exit $ac_status); }; then 2643 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2644 case $ac_file in 2645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2647 break;; 2648 esac 2649done 2650else 2651 echo "$as_me: failed program was:" >&5 2652sed 's/^/| /' conftest.$ac_ext >&5 2653 2654{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2655See \`config.log' for more details." >&5 2656echo "$as_me: error: cannot compute suffix of object files: cannot compile 2657See \`config.log' for more details." >&2;} 2658 { (exit 1); exit 1; }; } 2659fi 2660 2661rm -f conftest.$ac_cv_objext conftest.$ac_ext 2662fi 2663echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2664echo "${ECHO_T}$ac_cv_objext" >&6 2665OBJEXT=$ac_cv_objext 2666ac_objext=$OBJEXT 2667echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2668echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2669if test "${ac_cv_c_compiler_gnu+set}" = set; then 2670 echo $ECHO_N "(cached) $ECHO_C" >&6 2671else 2672 cat >conftest.$ac_ext <<_ACEOF 2673/* confdefs.h. */ 2674_ACEOF 2675cat confdefs.h >>conftest.$ac_ext 2676cat >>conftest.$ac_ext <<_ACEOF 2677/* end confdefs.h. */ 2678 2679int 2680main () 2681{ 2682#ifndef __GNUC__ 2683 choke me 2684#endif 2685 2686 ; 2687 return 0; 2688} 2689_ACEOF 2690rm -f conftest.$ac_objext 2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2692 (eval $ac_compile) 2>conftest.er1 2693 ac_status=$? 2694 grep -v '^ *+' conftest.er1 >conftest.err 2695 rm -f conftest.er1 2696 cat conftest.err >&5 2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2698 (exit $ac_status); } && 2699 { ac_try='test -z "$ac_c_werror_flag" 2700 || test ! -s conftest.err' 2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2702 (eval $ac_try) 2>&5 2703 ac_status=$? 2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2705 (exit $ac_status); }; } && 2706 { ac_try='test -s conftest.$ac_objext' 2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2708 (eval $ac_try) 2>&5 2709 ac_status=$? 2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2711 (exit $ac_status); }; }; then 2712 ac_compiler_gnu=yes 2713else 2714 echo "$as_me: failed program was:" >&5 2715sed 's/^/| /' conftest.$ac_ext >&5 2716 2717ac_compiler_gnu=no 2718fi 2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2720ac_cv_c_compiler_gnu=$ac_compiler_gnu 2721 2722fi 2723echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2724echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2725GCC=`test $ac_compiler_gnu = yes && echo yes` 2726ac_test_CFLAGS=${CFLAGS+set} 2727ac_save_CFLAGS=$CFLAGS 2728CFLAGS="-g" 2729echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2730echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2731if test "${ac_cv_prog_cc_g+set}" = set; then 2732 echo $ECHO_N "(cached) $ECHO_C" >&6 2733else 2734 cat >conftest.$ac_ext <<_ACEOF 2735/* confdefs.h. */ 2736_ACEOF 2737cat confdefs.h >>conftest.$ac_ext 2738cat >>conftest.$ac_ext <<_ACEOF 2739/* end confdefs.h. */ 2740 2741int 2742main () 2743{ 2744 2745 ; 2746 return 0; 2747} 2748_ACEOF 2749rm -f conftest.$ac_objext 2750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2751 (eval $ac_compile) 2>conftest.er1 2752 ac_status=$? 2753 grep -v '^ *+' conftest.er1 >conftest.err 2754 rm -f conftest.er1 2755 cat conftest.err >&5 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2757 (exit $ac_status); } && 2758 { ac_try='test -z "$ac_c_werror_flag" 2759 || test ! -s conftest.err' 2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2761 (eval $ac_try) 2>&5 2762 ac_status=$? 2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2764 (exit $ac_status); }; } && 2765 { ac_try='test -s conftest.$ac_objext' 2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2767 (eval $ac_try) 2>&5 2768 ac_status=$? 2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2770 (exit $ac_status); }; }; then 2771 ac_cv_prog_cc_g=yes 2772else 2773 echo "$as_me: failed program was:" >&5 2774sed 's/^/| /' conftest.$ac_ext >&5 2775 2776ac_cv_prog_cc_g=no 2777fi 2778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2779fi 2780echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2781echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2782if test "$ac_test_CFLAGS" = set; then 2783 CFLAGS=$ac_save_CFLAGS 2784elif test $ac_cv_prog_cc_g = yes; then 2785 if test "$GCC" = yes; then 2786 CFLAGS="-g -O2" 2787 else 2788 CFLAGS="-g" 2789 fi 2790else 2791 if test "$GCC" = yes; then 2792 CFLAGS="-O2" 2793 else 2794 CFLAGS= 2795 fi 2796fi 2797echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2798echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2799if test "${ac_cv_prog_cc_stdc+set}" = set; then 2800 echo $ECHO_N "(cached) $ECHO_C" >&6 2801else 2802 ac_cv_prog_cc_stdc=no 2803ac_save_CC=$CC 2804cat >conftest.$ac_ext <<_ACEOF 2805/* confdefs.h. */ 2806_ACEOF 2807cat confdefs.h >>conftest.$ac_ext 2808cat >>conftest.$ac_ext <<_ACEOF 2809/* end confdefs.h. */ 2810#include <stdarg.h> 2811#include <stdio.h> 2812#include <sys/types.h> 2813#include <sys/stat.h> 2814/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2815struct buf { int x; }; 2816FILE * (*rcsopen) (struct buf *, struct stat *, int); 2817static char *e (p, i) 2818 char **p; 2819 int i; 2820{ 2821 return p[i]; 2822} 2823static char *f (char * (*g) (char **, int), char **p, ...) 2824{ 2825 char *s; 2826 va_list v; 2827 va_start (v,p); 2828 s = g (p, va_arg (v,int)); 2829 va_end (v); 2830 return s; 2831} 2832 2833/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2834 function prototypes and stuff, but not '\xHH' hex character constants. 2835 These don't provoke an error unfortunately, instead are silently treated 2836 as 'x'. The following induces an error, until -std1 is added to get 2837 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2838 array size at least. It's necessary to write '\x00'==0 to get something 2839 that's true only with -std1. */ 2840int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2841 2842int test (int i, double x); 2843struct s1 {int (*f) (int a);}; 2844struct s2 {int (*f) (double a);}; 2845int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2846int argc; 2847char **argv; 2848int 2849main () 2850{ 2851return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2852 ; 2853 return 0; 2854} 2855_ACEOF 2856# Don't try gcc -ansi; that turns off useful extensions and 2857# breaks some systems' header files. 2858# AIX -qlanglvl=ansi 2859# Ultrix and OSF/1 -std1 2860# HP-UX 10.20 and later -Ae 2861# HP-UX older versions -Aa -D_HPUX_SOURCE 2862# SVR4 -Xc -D__EXTENSIONS__ 2863for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2864do 2865 CC="$ac_save_CC $ac_arg" 2866 rm -f conftest.$ac_objext 2867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2868 (eval $ac_compile) 2>conftest.er1 2869 ac_status=$? 2870 grep -v '^ *+' conftest.er1 >conftest.err 2871 rm -f conftest.er1 2872 cat conftest.err >&5 2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2874 (exit $ac_status); } && 2875 { ac_try='test -z "$ac_c_werror_flag" 2876 || test ! -s conftest.err' 2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2878 (eval $ac_try) 2>&5 2879 ac_status=$? 2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2881 (exit $ac_status); }; } && 2882 { ac_try='test -s conftest.$ac_objext' 2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2884 (eval $ac_try) 2>&5 2885 ac_status=$? 2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2887 (exit $ac_status); }; }; then 2888 ac_cv_prog_cc_stdc=$ac_arg 2889break 2890else 2891 echo "$as_me: failed program was:" >&5 2892sed 's/^/| /' conftest.$ac_ext >&5 2893 2894fi 2895rm -f conftest.err conftest.$ac_objext 2896done 2897rm -f conftest.$ac_ext conftest.$ac_objext 2898CC=$ac_save_CC 2899 2900fi 2901 2902case "x$ac_cv_prog_cc_stdc" in 2903 x|xno) 2904 echo "$as_me:$LINENO: result: none needed" >&5 2905echo "${ECHO_T}none needed" >&6 ;; 2906 *) 2907 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2908echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2909 CC="$CC $ac_cv_prog_cc_stdc" ;; 2910esac 2911 2912# Some people use a C++ compiler to compile C. Since we use `exit', 2913# in C++ we need to declare it. In case someone uses the same compiler 2914# for both compiling C and C++ we need to have the C++ compiler decide 2915# the declaration of exit, since it's the most demanding environment. 2916cat >conftest.$ac_ext <<_ACEOF 2917#ifndef __cplusplus 2918 choke me 2919#endif 2920_ACEOF 2921rm -f conftest.$ac_objext 2922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2923 (eval $ac_compile) 2>conftest.er1 2924 ac_status=$? 2925 grep -v '^ *+' conftest.er1 >conftest.err 2926 rm -f conftest.er1 2927 cat conftest.err >&5 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); } && 2930 { ac_try='test -z "$ac_c_werror_flag" 2931 || test ! -s conftest.err' 2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2933 (eval $ac_try) 2>&5 2934 ac_status=$? 2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); }; } && 2937 { ac_try='test -s conftest.$ac_objext' 2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2939 (eval $ac_try) 2>&5 2940 ac_status=$? 2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2942 (exit $ac_status); }; }; then 2943 for ac_declaration in \ 2944 '' \ 2945 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2946 'extern "C" void std::exit (int); using std::exit;' \ 2947 'extern "C" void exit (int) throw ();' \ 2948 'extern "C" void exit (int);' \ 2949 'void exit (int);' 2950do 2951 cat >conftest.$ac_ext <<_ACEOF 2952/* confdefs.h. */ 2953_ACEOF 2954cat confdefs.h >>conftest.$ac_ext 2955cat >>conftest.$ac_ext <<_ACEOF 2956/* end confdefs.h. */ 2957$ac_declaration 2958#include <stdlib.h> 2959int 2960main () 2961{ 2962exit (42); 2963 ; 2964 return 0; 2965} 2966_ACEOF 2967rm -f conftest.$ac_objext 2968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2969 (eval $ac_compile) 2>conftest.er1 2970 ac_status=$? 2971 grep -v '^ *+' conftest.er1 >conftest.err 2972 rm -f conftest.er1 2973 cat conftest.err >&5 2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2975 (exit $ac_status); } && 2976 { ac_try='test -z "$ac_c_werror_flag" 2977 || test ! -s conftest.err' 2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2979 (eval $ac_try) 2>&5 2980 ac_status=$? 2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2982 (exit $ac_status); }; } && 2983 { ac_try='test -s conftest.$ac_objext' 2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2985 (eval $ac_try) 2>&5 2986 ac_status=$? 2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2988 (exit $ac_status); }; }; then 2989 : 2990else 2991 echo "$as_me: failed program was:" >&5 2992sed 's/^/| /' conftest.$ac_ext >&5 2993 2994continue 2995fi 2996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2997 cat >conftest.$ac_ext <<_ACEOF 2998/* confdefs.h. */ 2999_ACEOF 3000cat confdefs.h >>conftest.$ac_ext 3001cat >>conftest.$ac_ext <<_ACEOF 3002/* end confdefs.h. */ 3003$ac_declaration 3004int 3005main () 3006{ 3007exit (42); 3008 ; 3009 return 0; 3010} 3011_ACEOF 3012rm -f conftest.$ac_objext 3013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3014 (eval $ac_compile) 2>conftest.er1 3015 ac_status=$? 3016 grep -v '^ *+' conftest.er1 >conftest.err 3017 rm -f conftest.er1 3018 cat conftest.err >&5 3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3020 (exit $ac_status); } && 3021 { ac_try='test -z "$ac_c_werror_flag" 3022 || test ! -s conftest.err' 3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3024 (eval $ac_try) 2>&5 3025 ac_status=$? 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027 (exit $ac_status); }; } && 3028 { ac_try='test -s conftest.$ac_objext' 3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3030 (eval $ac_try) 2>&5 3031 ac_status=$? 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); }; }; then 3034 break 3035else 3036 echo "$as_me: failed program was:" >&5 3037sed 's/^/| /' conftest.$ac_ext >&5 3038 3039fi 3040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3041done 3042rm -f conftest* 3043if test -n "$ac_declaration"; then 3044 echo '#ifdef __cplusplus' >>confdefs.h 3045 echo $ac_declaration >>confdefs.h 3046 echo '#endif' >>confdefs.h 3047fi 3048 3049else 3050 echo "$as_me: failed program was:" >&5 3051sed 's/^/| /' conftest.$ac_ext >&5 3052 3053fi 3054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3055ac_ext=c 3056ac_cpp='$CPP $CPPFLAGS' 3057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3059ac_compiler_gnu=$ac_cv_c_compiler_gnu 3060 3061depcc="$CC" am_compiler_list= 3062 3063echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3064echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3065if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3066 echo $ECHO_N "(cached) $ECHO_C" >&6 3067else 3068 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3069 # We make a subdir and do the tests there. Otherwise we can end up 3070 # making bogus files that we don't know about and never remove. For 3071 # instance it was reported that on HP-UX the gcc test will end up 3072 # making a dummy file named `D' -- because `-MD' means `put the output 3073 # in D'. 3074 mkdir conftest.dir 3075 # Copy depcomp to subdir because otherwise we won't find it if we're 3076 # using a relative directory. 3077 cp "$am_depcomp" conftest.dir 3078 cd conftest.dir 3079 # We will build objects and dependencies in a subdirectory because 3080 # it helps to detect inapplicable dependency modes. For instance 3081 # both Tru64's cc and ICC support -MD to output dependencies as a 3082 # side effect of compilation, but ICC will put the dependencies in 3083 # the current directory while Tru64 will put them in the object 3084 # directory. 3085 mkdir sub 3086 3087 am_cv_CC_dependencies_compiler_type=none 3088 if test "$am_compiler_list" = ""; then 3089 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3090 fi 3091 for depmode in $am_compiler_list; do 3092 # Setup a source with many dependencies, because some compilers 3093 # like to wrap large dependency lists on column 80 (with \), and 3094 # we should not choose a depcomp mode which is confused by this. 3095 # 3096 # We need to recreate these files for each test, as the compiler may 3097 # overwrite some of them when testing with obscure command lines. 3098 # This happens at least with the AIX C compiler. 3099 : > sub/conftest.c 3100 for i in 1 2 3 4 5 6; do 3101 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3102 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3103 # Solaris 8's {/usr,}/bin/sh. 3104 touch sub/conftst$i.h 3105 done 3106 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3107 3108 case $depmode in 3109 nosideeffect) 3110 # after this tag, mechanisms are not by side-effect, so they'll 3111 # only be used when explicitly requested 3112 if test "x$enable_dependency_tracking" = xyes; then 3113 continue 3114 else 3115 break 3116 fi 3117 ;; 3118 none) break ;; 3119 esac 3120 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3121 # mode. It turns out that the SunPro C++ compiler does not properly 3122 # handle `-M -o', and we need to detect this. 3123 if depmode=$depmode \ 3124 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3126 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3127 >/dev/null 2>conftest.err && 3128 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3129 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3130 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3131 # icc doesn't choke on unknown options, it will just issue warnings 3132 # or remarks (even with -Werror). So we grep stderr for any message 3133 # that says an option was ignored or not supported. 3134 # When given -MP, icc 7.0 and 7.1 complain thusly: 3135 # icc: Command line warning: ignoring option '-M'; no argument required 3136 # The diagnosis changed in icc 8.0: 3137 # icc: Command line remark: option '-MP' not supported 3138 if (grep 'ignoring option' conftest.err || 3139 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3140 am_cv_CC_dependencies_compiler_type=$depmode 3141 break 3142 fi 3143 fi 3144 done 3145 3146 cd .. 3147 rm -rf conftest.dir 3148else 3149 am_cv_CC_dependencies_compiler_type=none 3150fi 3151 3152fi 3153echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3154echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3155CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3156 3157 3158 3159if 3160 test "x$enable_dependency_tracking" != xno \ 3161 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3162 am__fastdepCC_TRUE= 3163 am__fastdepCC_FALSE='#' 3164else 3165 am__fastdepCC_TRUE='#' 3166 am__fastdepCC_FALSE= 3167fi 3168 3169 3170echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3171echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3172if test "${lt_cv_path_SED+set}" = set; then 3173 echo $ECHO_N "(cached) $ECHO_C" >&6 3174else 3175 # Loop through the user's path and test for sed and gsed. 3176# Then use that list of sed's as ones to test for truncation. 3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178for as_dir in $PATH 3179do 3180 IFS=$as_save_IFS 3181 test -z "$as_dir" && as_dir=. 3182 for lt_ac_prog in sed gsed; do 3183 for ac_exec_ext in '' $ac_executable_extensions; do 3184 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3185 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3186 fi 3187 done 3188 done 3189done 3190lt_ac_max=0 3191lt_ac_count=0 3192# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3193# along with /bin/sed that truncates output. 3194for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3195 test ! -f $lt_ac_sed && continue 3196 cat /dev/null > conftest.in 3197 lt_ac_count=0 3198 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3199 # Check for GNU sed and select it if it is found. 3200 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3201 lt_cv_path_SED=$lt_ac_sed 3202 break 3203 fi 3204 while true; do 3205 cat conftest.in conftest.in >conftest.tmp 3206 mv conftest.tmp conftest.in 3207 cp conftest.in conftest.nl 3208 echo >>conftest.nl 3209 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3210 cmp -s conftest.out conftest.nl || break 3211 # 10000 chars as input seems more than enough 3212 test $lt_ac_count -gt 10 && break 3213 lt_ac_count=`expr $lt_ac_count + 1` 3214 if test $lt_ac_count -gt $lt_ac_max; then 3215 lt_ac_max=$lt_ac_count 3216 lt_cv_path_SED=$lt_ac_sed 3217 fi 3218 done 3219done 3220 3221fi 3222 3223SED=$lt_cv_path_SED 3224echo "$as_me:$LINENO: result: $SED" >&5 3225echo "${ECHO_T}$SED" >&6 3226 3227echo "$as_me:$LINENO: checking for egrep" >&5 3228echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3229if test "${ac_cv_prog_egrep+set}" = set; then 3230 echo $ECHO_N "(cached) $ECHO_C" >&6 3231else 3232 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3233 then ac_cv_prog_egrep='grep -E' 3234 else ac_cv_prog_egrep='egrep' 3235 fi 3236fi 3237echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3238echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3239 EGREP=$ac_cv_prog_egrep 3240 3241 3242 3243# Check whether --with-gnu-ld or --without-gnu-ld was given. 3244if test "${with_gnu_ld+set}" = set; then 3245 withval="$with_gnu_ld" 3246 test "$withval" = no || with_gnu_ld=yes 3247else 3248 with_gnu_ld=no 3249fi; 3250ac_prog=ld 3251if test "$GCC" = yes; then 3252 # Check if gcc -print-prog-name=ld gives a path. 3253 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3254echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3255 case $host in 3256 *-*-mingw*) 3257 # gcc leaves a trailing carriage return which upsets mingw 3258 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3259 *) 3260 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3261 esac 3262 case $ac_prog in 3263 # Accept absolute paths. 3264 [\\/]* | ?:[\\/]*) 3265 re_direlt='/[^/][^/]*/\.\./' 3266 # Canonicalize the pathname of ld 3267 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3268 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3269 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3270 done 3271 test -z "$LD" && LD="$ac_prog" 3272 ;; 3273 "") 3274 # If it fails, then pretend we aren't using GCC. 3275 ac_prog=ld 3276 ;; 3277 *) 3278 # If it is relative, then search for the first ld in PATH. 3279 with_gnu_ld=unknown 3280 ;; 3281 esac 3282elif test "$with_gnu_ld" = yes; then 3283 echo "$as_me:$LINENO: checking for GNU ld" >&5 3284echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3285else 3286 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3287echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3288fi 3289if test "${lt_cv_path_LD+set}" = set; then 3290 echo $ECHO_N "(cached) $ECHO_C" >&6 3291else 3292 if test -z "$LD"; then 3293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3294 for ac_dir in $PATH; do 3295 IFS="$lt_save_ifs" 3296 test -z "$ac_dir" && ac_dir=. 3297 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3298 lt_cv_path_LD="$ac_dir/$ac_prog" 3299 # Check to see if the program is GNU ld. I'd rather use --version, 3300 # but apparently some variants of GNU ld only accept -v. 3301 # Break only if it was the GNU/non-GNU ld that we prefer. 3302 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3303 *GNU* | *'with BFD'*) 3304 test "$with_gnu_ld" != no && break 3305 ;; 3306 *) 3307 test "$with_gnu_ld" != yes && break 3308 ;; 3309 esac 3310 fi 3311 done 3312 IFS="$lt_save_ifs" 3313else 3314 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3315fi 3316fi 3317 3318LD="$lt_cv_path_LD" 3319if test -n "$LD"; then 3320 echo "$as_me:$LINENO: result: $LD" >&5 3321echo "${ECHO_T}$LD" >&6 3322else 3323 echo "$as_me:$LINENO: result: no" >&5 3324echo "${ECHO_T}no" >&6 3325fi 3326test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3327echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3328 { (exit 1); exit 1; }; } 3329echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3330echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3331if test "${lt_cv_prog_gnu_ld+set}" = set; then 3332 echo $ECHO_N "(cached) $ECHO_C" >&6 3333else 3334 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3335case `$LD -v 2>&1 </dev/null` in 3336*GNU* | *'with BFD'*) 3337 lt_cv_prog_gnu_ld=yes 3338 ;; 3339*) 3340 lt_cv_prog_gnu_ld=no 3341 ;; 3342esac 3343fi 3344echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3345echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3346with_gnu_ld=$lt_cv_prog_gnu_ld 3347 3348 3349echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3350echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3351if test "${lt_cv_ld_reload_flag+set}" = set; then 3352 echo $ECHO_N "(cached) $ECHO_C" >&6 3353else 3354 lt_cv_ld_reload_flag='-r' 3355fi 3356echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3357echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3358reload_flag=$lt_cv_ld_reload_flag 3359case $reload_flag in 3360"" | " "*) ;; 3361*) reload_flag=" $reload_flag" ;; 3362esac 3363reload_cmds='$LD$reload_flag -o $output$reload_objs' 3364case $host_os in 3365 darwin*) 3366 if test "$GCC" = yes; then 3367 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3368 else 3369 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3370 fi 3371 ;; 3372esac 3373 3374echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3375echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3376if test "${lt_cv_path_NM+set}" = set; then 3377 echo $ECHO_N "(cached) $ECHO_C" >&6 3378else 3379 if test -n "$NM"; then 3380 # Let the user override the test. 3381 lt_cv_path_NM="$NM" 3382else 3383 lt_nm_to_check="${ac_tool_prefix}nm" 3384 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3385 lt_nm_to_check="$lt_nm_to_check nm" 3386 fi 3387 for lt_tmp_nm in $lt_nm_to_check; do 3388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3389 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3390 IFS="$lt_save_ifs" 3391 test -z "$ac_dir" && ac_dir=. 3392 tmp_nm="$ac_dir/$lt_tmp_nm" 3393 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3394 # Check to see if the nm accepts a BSD-compat flag. 3395 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3396 # nm: unknown option "B" ignored 3397 # Tru64's nm complains that /dev/null is an invalid object file 3398 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3399 */dev/null* | *'Invalid file or object type'*) 3400 lt_cv_path_NM="$tmp_nm -B" 3401 break 3402 ;; 3403 *) 3404 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3405 */dev/null*) 3406 lt_cv_path_NM="$tmp_nm -p" 3407 break 3408 ;; 3409 *) 3410 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3411 continue # so that we can try to find one that supports BSD flags 3412 ;; 3413 esac 3414 ;; 3415 esac 3416 fi 3417 done 3418 IFS="$lt_save_ifs" 3419 done 3420 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3421fi 3422fi 3423echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3424echo "${ECHO_T}$lt_cv_path_NM" >&6 3425NM="$lt_cv_path_NM" 3426 3427echo "$as_me:$LINENO: checking whether ln -s works" >&5 3428echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3429LN_S=$as_ln_s 3430if test "$LN_S" = "ln -s"; then 3431 echo "$as_me:$LINENO: result: yes" >&5 3432echo "${ECHO_T}yes" >&6 3433else 3434 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3435echo "${ECHO_T}no, using $LN_S" >&6 3436fi 3437 3438echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3439echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3440if test "${lt_cv_deplibs_check_method+set}" = set; then 3441 echo $ECHO_N "(cached) $ECHO_C" >&6 3442else 3443 lt_cv_file_magic_cmd='$MAGIC_CMD' 3444lt_cv_file_magic_test_file= 3445lt_cv_deplibs_check_method='unknown' 3446# Need to set the preceding variable on all platforms that support 3447# interlibrary dependencies. 3448# 'none' -- dependencies not supported. 3449# `unknown' -- same as none, but documents that we really don't know. 3450# 'pass_all' -- all dependencies passed with no checks. 3451# 'test_compile' -- check by making test program. 3452# 'file_magic [[regex]]' -- check by looking for files in library path 3453# which responds to the $file_magic_cmd with a given extended regex. 3454# If you have `file' or equivalent on your system and you're not sure 3455# whether `pass_all' will *always* work, you probably want this one. 3456 3457case $host_os in 3458aix4* | aix5*) 3459 lt_cv_deplibs_check_method=pass_all 3460 ;; 3461 3462beos*) 3463 lt_cv_deplibs_check_method=pass_all 3464 ;; 3465 3466bsdi[45]*) 3467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3468 lt_cv_file_magic_cmd='/usr/bin/file -L' 3469 lt_cv_file_magic_test_file=/shlib/libc.so 3470 ;; 3471 3472cygwin*) 3473 # func_win32_libid is a shell function defined in ltmain.sh 3474 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3475 lt_cv_file_magic_cmd='func_win32_libid' 3476 ;; 3477 3478mingw* | pw32*) 3479 # Base MSYS/MinGW do not provide the 'file' command needed by 3480 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3481 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3482 lt_cv_file_magic_cmd='$OBJDUMP -f' 3483 ;; 3484 3485darwin* | rhapsody*) 3486 lt_cv_deplibs_check_method=pass_all 3487 ;; 3488 3489freebsd* | kfreebsd*-gnu | dragonfly*) 3490 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3491 case $host_cpu in 3492 i*86 ) 3493 # Not sure whether the presence of OpenBSD here was a mistake. 3494 # Let's accept both of them until this is cleared up. 3495 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3496 lt_cv_file_magic_cmd=/usr/bin/file 3497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3498 ;; 3499 esac 3500 else 3501 lt_cv_deplibs_check_method=pass_all 3502 fi 3503 ;; 3504 3505gnu*) 3506 lt_cv_deplibs_check_method=pass_all 3507 ;; 3508 3509hpux10.20* | hpux11*) 3510 lt_cv_file_magic_cmd=/usr/bin/file 3511 case $host_cpu in 3512 ia64*) 3513 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3514 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3515 ;; 3516 hppa*64*) 3517 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]' 3518 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3519 ;; 3520 *) 3521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3522 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3523 ;; 3524 esac 3525 ;; 3526 3527interix3*) 3528 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3530 ;; 3531 3532irix5* | irix6* | nonstopux*) 3533 case $LD in 3534 *-32|*"-32 ") libmagic=32-bit;; 3535 *-n32|*"-n32 ") libmagic=N32;; 3536 *-64|*"-64 ") libmagic=64-bit;; 3537 *) libmagic=never-match;; 3538 esac 3539 lt_cv_deplibs_check_method=pass_all 3540 ;; 3541 3542# This must be Linux ELF. 3543linux*) 3544 lt_cv_deplibs_check_method=pass_all 3545 ;; 3546 3547netbsd*) 3548 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3550 else 3551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3552 fi 3553 ;; 3554 3555newos6*) 3556 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3557 lt_cv_file_magic_cmd=/usr/bin/file 3558 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3559 ;; 3560 3561nto-qnx*) 3562 lt_cv_deplibs_check_method=unknown 3563 ;; 3564 3565openbsd*) 3566 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3568 else 3569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3570 fi 3571 ;; 3572 3573osf3* | osf4* | osf5*) 3574 lt_cv_deplibs_check_method=pass_all 3575 ;; 3576 3577solaris*) 3578 lt_cv_deplibs_check_method=pass_all 3579 ;; 3580 3581sysv4 | sysv4.3*) 3582 case $host_vendor in 3583 motorola) 3584 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]' 3585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3586 ;; 3587 ncr) 3588 lt_cv_deplibs_check_method=pass_all 3589 ;; 3590 sequent) 3591 lt_cv_file_magic_cmd='/bin/file' 3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3593 ;; 3594 sni) 3595 lt_cv_file_magic_cmd='/bin/file' 3596 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3597 lt_cv_file_magic_test_file=/lib/libc.so 3598 ;; 3599 siemens) 3600 lt_cv_deplibs_check_method=pass_all 3601 ;; 3602 pc) 3603 lt_cv_deplibs_check_method=pass_all 3604 ;; 3605 esac 3606 ;; 3607 3608sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3609 lt_cv_deplibs_check_method=pass_all 3610 ;; 3611esac 3612 3613fi 3614echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3615echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3616file_magic_cmd=$lt_cv_file_magic_cmd 3617deplibs_check_method=$lt_cv_deplibs_check_method 3618test -z "$deplibs_check_method" && deplibs_check_method=unknown 3619 3620 3621 3622 3623# If no C compiler was specified, use CC. 3624LTCC=${LTCC-"$CC"} 3625 3626# If no C compiler flags were specified, use CFLAGS. 3627LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3628 3629# Allow CC to be a program name with arguments. 3630compiler=$CC 3631 3632 3633# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3634if test "${enable_libtool_lock+set}" = set; then 3635 enableval="$enable_libtool_lock" 3636 3637fi; 3638test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3639 3640# Some flags need to be propagated to the compiler or linker for good 3641# libtool support. 3642case $host in 3643ia64-*-hpux*) 3644 # Find out which ABI we are using. 3645 echo 'int i;' > conftest.$ac_ext 3646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3647 (eval $ac_compile) 2>&5 3648 ac_status=$? 3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3650 (exit $ac_status); }; then 3651 case `/usr/bin/file conftest.$ac_objext` in 3652 *ELF-32*) 3653 HPUX_IA64_MODE="32" 3654 ;; 3655 *ELF-64*) 3656 HPUX_IA64_MODE="64" 3657 ;; 3658 esac 3659 fi 3660 rm -rf conftest* 3661 ;; 3662*-*-irix6*) 3663 # Find out which ABI we are using. 3664 echo '#line 3664 "configure"' > conftest.$ac_ext 3665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3666 (eval $ac_compile) 2>&5 3667 ac_status=$? 3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3669 (exit $ac_status); }; then 3670 if test "$lt_cv_prog_gnu_ld" = yes; then 3671 case `/usr/bin/file conftest.$ac_objext` in 3672 *32-bit*) 3673 LD="${LD-ld} -melf32bsmip" 3674 ;; 3675 *N32*) 3676 LD="${LD-ld} -melf32bmipn32" 3677 ;; 3678 *64-bit*) 3679 LD="${LD-ld} -melf64bmip" 3680 ;; 3681 esac 3682 else 3683 case `/usr/bin/file conftest.$ac_objext` in 3684 *32-bit*) 3685 LD="${LD-ld} -32" 3686 ;; 3687 *N32*) 3688 LD="${LD-ld} -n32" 3689 ;; 3690 *64-bit*) 3691 LD="${LD-ld} -64" 3692 ;; 3693 esac 3694 fi 3695 fi 3696 rm -rf conftest* 3697 ;; 3698 3699x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3700 # Find out which ABI we are using. 3701 echo 'int i;' > conftest.$ac_ext 3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3703 (eval $ac_compile) 2>&5 3704 ac_status=$? 3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3706 (exit $ac_status); }; then 3707 case `/usr/bin/file conftest.o` in 3708 *32-bit*) 3709 case $host in 3710 x86_64-*linux*) 3711 LD="${LD-ld} -m elf_i386" 3712 ;; 3713 ppc64-*linux*|powerpc64-*linux*) 3714 LD="${LD-ld} -m elf32ppclinux" 3715 ;; 3716 s390x-*linux*) 3717 LD="${LD-ld} -m elf_s390" 3718 ;; 3719 sparc64-*linux*) 3720 LD="${LD-ld} -m elf32_sparc" 3721 ;; 3722 esac 3723 ;; 3724 *64-bit*) 3725 case $host in 3726 x86_64-*linux*) 3727 LD="${LD-ld} -m elf_x86_64" 3728 ;; 3729 ppc*-*linux*|powerpc*-*linux*) 3730 LD="${LD-ld} -m elf64ppc" 3731 ;; 3732 s390*-*linux*) 3733 LD="${LD-ld} -m elf64_s390" 3734 ;; 3735 sparc*-*linux*) 3736 LD="${LD-ld} -m elf64_sparc" 3737 ;; 3738 esac 3739 ;; 3740 esac 3741 fi 3742 rm -rf conftest* 3743 ;; 3744 3745*-*-sco3.2v5*) 3746 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3747 SAVE_CFLAGS="$CFLAGS" 3748 CFLAGS="$CFLAGS -belf" 3749 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3750echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3751if test "${lt_cv_cc_needs_belf+set}" = set; then 3752 echo $ECHO_N "(cached) $ECHO_C" >&6 3753else 3754 ac_ext=c 3755ac_cpp='$CPP $CPPFLAGS' 3756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3758ac_compiler_gnu=$ac_cv_c_compiler_gnu 3759 3760 cat >conftest.$ac_ext <<_ACEOF 3761/* confdefs.h. */ 3762_ACEOF 3763cat confdefs.h >>conftest.$ac_ext 3764cat >>conftest.$ac_ext <<_ACEOF 3765/* end confdefs.h. */ 3766 3767int 3768main () 3769{ 3770 3771 ; 3772 return 0; 3773} 3774_ACEOF 3775rm -f conftest.$ac_objext conftest$ac_exeext 3776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3777 (eval $ac_link) 2>conftest.er1 3778 ac_status=$? 3779 grep -v '^ *+' conftest.er1 >conftest.err 3780 rm -f conftest.er1 3781 cat conftest.err >&5 3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783 (exit $ac_status); } && 3784 { ac_try='test -z "$ac_c_werror_flag" 3785 || test ! -s conftest.err' 3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3787 (eval $ac_try) 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); }; } && 3791 { ac_try='test -s conftest$ac_exeext' 3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3793 (eval $ac_try) 2>&5 3794 ac_status=$? 3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3796 (exit $ac_status); }; }; then 3797 lt_cv_cc_needs_belf=yes 3798else 3799 echo "$as_me: failed program was:" >&5 3800sed 's/^/| /' conftest.$ac_ext >&5 3801 3802lt_cv_cc_needs_belf=no 3803fi 3804rm -f conftest.err conftest.$ac_objext \ 3805 conftest$ac_exeext conftest.$ac_ext 3806 ac_ext=c 3807ac_cpp='$CPP $CPPFLAGS' 3808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3810ac_compiler_gnu=$ac_cv_c_compiler_gnu 3811 3812fi 3813echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3814echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3815 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3816 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3817 CFLAGS="$SAVE_CFLAGS" 3818 fi 3819 ;; 3820sparc*-*solaris*) 3821 # Find out which ABI we are using. 3822 echo 'int i;' > conftest.$ac_ext 3823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3824 (eval $ac_compile) 2>&5 3825 ac_status=$? 3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3827 (exit $ac_status); }; then 3828 case `/usr/bin/file conftest.o` in 3829 *64-bit*) 3830 case $lt_cv_prog_gnu_ld in 3831 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3832 *) LD="${LD-ld} -64" ;; 3833 esac 3834 ;; 3835 esac 3836 fi 3837 rm -rf conftest* 3838 ;; 3839 3840 3841esac 3842 3843need_locks="$enable_libtool_lock" 3844 3845 3846ac_ext=c 3847ac_cpp='$CPP $CPPFLAGS' 3848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3850ac_compiler_gnu=$ac_cv_c_compiler_gnu 3851echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3852echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3853# On Suns, sometimes $CPP names a directory. 3854if test -n "$CPP" && test -d "$CPP"; then 3855 CPP= 3856fi 3857if test -z "$CPP"; then 3858 if test "${ac_cv_prog_CPP+set}" = set; then 3859 echo $ECHO_N "(cached) $ECHO_C" >&6 3860else 3861 # Double quotes because CPP needs to be expanded 3862 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3863 do 3864 ac_preproc_ok=false 3865for ac_c_preproc_warn_flag in '' yes 3866do 3867 # Use a header file that comes with gcc, so configuring glibc 3868 # with a fresh cross-compiler works. 3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3870 # <limits.h> exists even on freestanding compilers. 3871 # On the NeXT, cc -E runs the code through the compiler's parser, 3872 # not just through cpp. "Syntax error" is here to catch this case. 3873 cat >conftest.$ac_ext <<_ACEOF 3874/* confdefs.h. */ 3875_ACEOF 3876cat confdefs.h >>conftest.$ac_ext 3877cat >>conftest.$ac_ext <<_ACEOF 3878/* end confdefs.h. */ 3879#ifdef __STDC__ 3880# include <limits.h> 3881#else 3882# include <assert.h> 3883#endif 3884 Syntax error 3885_ACEOF 3886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3888 ac_status=$? 3889 grep -v '^ *+' conftest.er1 >conftest.err 3890 rm -f conftest.er1 3891 cat conftest.err >&5 3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3893 (exit $ac_status); } >/dev/null; then 3894 if test -s conftest.err; then 3895 ac_cpp_err=$ac_c_preproc_warn_flag 3896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3897 else 3898 ac_cpp_err= 3899 fi 3900else 3901 ac_cpp_err=yes 3902fi 3903if test -z "$ac_cpp_err"; then 3904 : 3905else 3906 echo "$as_me: failed program was:" >&5 3907sed 's/^/| /' conftest.$ac_ext >&5 3908 3909 # Broken: fails on valid input. 3910continue 3911fi 3912rm -f conftest.err conftest.$ac_ext 3913 3914 # OK, works on sane cases. Now check whether non-existent headers 3915 # can be detected and how. 3916 cat >conftest.$ac_ext <<_ACEOF 3917/* confdefs.h. */ 3918_ACEOF 3919cat confdefs.h >>conftest.$ac_ext 3920cat >>conftest.$ac_ext <<_ACEOF 3921/* end confdefs.h. */ 3922#include <ac_nonexistent.h> 3923_ACEOF 3924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3926 ac_status=$? 3927 grep -v '^ *+' conftest.er1 >conftest.err 3928 rm -f conftest.er1 3929 cat conftest.err >&5 3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3931 (exit $ac_status); } >/dev/null; then 3932 if test -s conftest.err; then 3933 ac_cpp_err=$ac_c_preproc_warn_flag 3934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3935 else 3936 ac_cpp_err= 3937 fi 3938else 3939 ac_cpp_err=yes 3940fi 3941if test -z "$ac_cpp_err"; then 3942 # Broken: success on invalid input. 3943continue 3944else 3945 echo "$as_me: failed program was:" >&5 3946sed 's/^/| /' conftest.$ac_ext >&5 3947 3948 # Passes both tests. 3949ac_preproc_ok=: 3950break 3951fi 3952rm -f conftest.err conftest.$ac_ext 3953 3954done 3955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3956rm -f conftest.err conftest.$ac_ext 3957if $ac_preproc_ok; then 3958 break 3959fi 3960 3961 done 3962 ac_cv_prog_CPP=$CPP 3963 3964fi 3965 CPP=$ac_cv_prog_CPP 3966else 3967 ac_cv_prog_CPP=$CPP 3968fi 3969echo "$as_me:$LINENO: result: $CPP" >&5 3970echo "${ECHO_T}$CPP" >&6 3971ac_preproc_ok=false 3972for ac_c_preproc_warn_flag in '' yes 3973do 3974 # Use a header file that comes with gcc, so configuring glibc 3975 # with a fresh cross-compiler works. 3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3977 # <limits.h> exists even on freestanding compilers. 3978 # On the NeXT, cc -E runs the code through the compiler's parser, 3979 # not just through cpp. "Syntax error" is here to catch this case. 3980 cat >conftest.$ac_ext <<_ACEOF 3981/* confdefs.h. */ 3982_ACEOF 3983cat confdefs.h >>conftest.$ac_ext 3984cat >>conftest.$ac_ext <<_ACEOF 3985/* end confdefs.h. */ 3986#ifdef __STDC__ 3987# include <limits.h> 3988#else 3989# include <assert.h> 3990#endif 3991 Syntax error 3992_ACEOF 3993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3995 ac_status=$? 3996 grep -v '^ *+' conftest.er1 >conftest.err 3997 rm -f conftest.er1 3998 cat conftest.err >&5 3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4000 (exit $ac_status); } >/dev/null; then 4001 if test -s conftest.err; then 4002 ac_cpp_err=$ac_c_preproc_warn_flag 4003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4004 else 4005 ac_cpp_err= 4006 fi 4007else 4008 ac_cpp_err=yes 4009fi 4010if test -z "$ac_cpp_err"; then 4011 : 4012else 4013 echo "$as_me: failed program was:" >&5 4014sed 's/^/| /' conftest.$ac_ext >&5 4015 4016 # Broken: fails on valid input. 4017continue 4018fi 4019rm -f conftest.err conftest.$ac_ext 4020 4021 # OK, works on sane cases. Now check whether non-existent headers 4022 # can be detected and how. 4023 cat >conftest.$ac_ext <<_ACEOF 4024/* confdefs.h. */ 4025_ACEOF 4026cat confdefs.h >>conftest.$ac_ext 4027cat >>conftest.$ac_ext <<_ACEOF 4028/* end confdefs.h. */ 4029#include <ac_nonexistent.h> 4030_ACEOF 4031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4033 ac_status=$? 4034 grep -v '^ *+' conftest.er1 >conftest.err 4035 rm -f conftest.er1 4036 cat conftest.err >&5 4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4038 (exit $ac_status); } >/dev/null; then 4039 if test -s conftest.err; then 4040 ac_cpp_err=$ac_c_preproc_warn_flag 4041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4042 else 4043 ac_cpp_err= 4044 fi 4045else 4046 ac_cpp_err=yes 4047fi 4048if test -z "$ac_cpp_err"; then 4049 # Broken: success on invalid input. 4050continue 4051else 4052 echo "$as_me: failed program was:" >&5 4053sed 's/^/| /' conftest.$ac_ext >&5 4054 4055 # Passes both tests. 4056ac_preproc_ok=: 4057break 4058fi 4059rm -f conftest.err conftest.$ac_ext 4060 4061done 4062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4063rm -f conftest.err conftest.$ac_ext 4064if $ac_preproc_ok; then 4065 : 4066else 4067 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4068See \`config.log' for more details." >&5 4069echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4070See \`config.log' for more details." >&2;} 4071 { (exit 1); exit 1; }; } 4072fi 4073 4074ac_ext=c 4075ac_cpp='$CPP $CPPFLAGS' 4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4078ac_compiler_gnu=$ac_cv_c_compiler_gnu 4079 4080 4081echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4082echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4083if test "${ac_cv_header_stdc+set}" = set; then 4084 echo $ECHO_N "(cached) $ECHO_C" >&6 4085else 4086 cat >conftest.$ac_ext <<_ACEOF 4087/* confdefs.h. */ 4088_ACEOF 4089cat confdefs.h >>conftest.$ac_ext 4090cat >>conftest.$ac_ext <<_ACEOF 4091/* end confdefs.h. */ 4092#include <stdlib.h> 4093#include <stdarg.h> 4094#include <string.h> 4095#include <float.h> 4096 4097int 4098main () 4099{ 4100 4101 ; 4102 return 0; 4103} 4104_ACEOF 4105rm -f conftest.$ac_objext 4106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4107 (eval $ac_compile) 2>conftest.er1 4108 ac_status=$? 4109 grep -v '^ *+' conftest.er1 >conftest.err 4110 rm -f conftest.er1 4111 cat conftest.err >&5 4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4113 (exit $ac_status); } && 4114 { ac_try='test -z "$ac_c_werror_flag" 4115 || test ! -s conftest.err' 4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4117 (eval $ac_try) 2>&5 4118 ac_status=$? 4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4120 (exit $ac_status); }; } && 4121 { ac_try='test -s conftest.$ac_objext' 4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4123 (eval $ac_try) 2>&5 4124 ac_status=$? 4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4126 (exit $ac_status); }; }; then 4127 ac_cv_header_stdc=yes 4128else 4129 echo "$as_me: failed program was:" >&5 4130sed 's/^/| /' conftest.$ac_ext >&5 4131 4132ac_cv_header_stdc=no 4133fi 4134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4135 4136if test $ac_cv_header_stdc = yes; then 4137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4138 cat >conftest.$ac_ext <<_ACEOF 4139/* confdefs.h. */ 4140_ACEOF 4141cat confdefs.h >>conftest.$ac_ext 4142cat >>conftest.$ac_ext <<_ACEOF 4143/* end confdefs.h. */ 4144#include <string.h> 4145 4146_ACEOF 4147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4148 $EGREP "memchr" >/dev/null 2>&1; then 4149 : 4150else 4151 ac_cv_header_stdc=no 4152fi 4153rm -f conftest* 4154 4155fi 4156 4157if test $ac_cv_header_stdc = yes; then 4158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4159 cat >conftest.$ac_ext <<_ACEOF 4160/* confdefs.h. */ 4161_ACEOF 4162cat confdefs.h >>conftest.$ac_ext 4163cat >>conftest.$ac_ext <<_ACEOF 4164/* end confdefs.h. */ 4165#include <stdlib.h> 4166 4167_ACEOF 4168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4169 $EGREP "free" >/dev/null 2>&1; then 4170 : 4171else 4172 ac_cv_header_stdc=no 4173fi 4174rm -f conftest* 4175 4176fi 4177 4178if test $ac_cv_header_stdc = yes; then 4179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4180 if test "$cross_compiling" = yes; then 4181 : 4182else 4183 cat >conftest.$ac_ext <<_ACEOF 4184/* confdefs.h. */ 4185_ACEOF 4186cat confdefs.h >>conftest.$ac_ext 4187cat >>conftest.$ac_ext <<_ACEOF 4188/* end confdefs.h. */ 4189#include <ctype.h> 4190#if ((' ' & 0x0FF) == 0x020) 4191# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4192# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4193#else 4194# define ISLOWER(c) \ 4195 (('a' <= (c) && (c) <= 'i') \ 4196 || ('j' <= (c) && (c) <= 'r') \ 4197 || ('s' <= (c) && (c) <= 'z')) 4198# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4199#endif 4200 4201#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4202int 4203main () 4204{ 4205 int i; 4206 for (i = 0; i < 256; i++) 4207 if (XOR (islower (i), ISLOWER (i)) 4208 || toupper (i) != TOUPPER (i)) 4209 exit(2); 4210 exit (0); 4211} 4212_ACEOF 4213rm -f conftest$ac_exeext 4214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4215 (eval $ac_link) 2>&5 4216 ac_status=$? 4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4220 (eval $ac_try) 2>&5 4221 ac_status=$? 4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4223 (exit $ac_status); }; }; then 4224 : 4225else 4226 echo "$as_me: program exited with status $ac_status" >&5 4227echo "$as_me: failed program was:" >&5 4228sed 's/^/| /' conftest.$ac_ext >&5 4229 4230( exit $ac_status ) 4231ac_cv_header_stdc=no 4232fi 4233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4234fi 4235fi 4236fi 4237echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4238echo "${ECHO_T}$ac_cv_header_stdc" >&6 4239if test $ac_cv_header_stdc = yes; then 4240 4241cat >>confdefs.h <<\_ACEOF 4242#define STDC_HEADERS 1 4243_ACEOF 4244 4245fi 4246 4247# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4258 inttypes.h stdint.h unistd.h 4259do 4260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4261echo "$as_me:$LINENO: checking for $ac_header" >&5 4262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4263if eval "test \"\${$as_ac_Header+set}\" = set"; then 4264 echo $ECHO_N "(cached) $ECHO_C" >&6 4265else 4266 cat >conftest.$ac_ext <<_ACEOF 4267/* confdefs.h. */ 4268_ACEOF 4269cat confdefs.h >>conftest.$ac_ext 4270cat >>conftest.$ac_ext <<_ACEOF 4271/* end confdefs.h. */ 4272$ac_includes_default 4273 4274#include <$ac_header> 4275_ACEOF 4276rm -f conftest.$ac_objext 4277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4278 (eval $ac_compile) 2>conftest.er1 4279 ac_status=$? 4280 grep -v '^ *+' conftest.er1 >conftest.err 4281 rm -f conftest.er1 4282 cat conftest.err >&5 4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4284 (exit $ac_status); } && 4285 { ac_try='test -z "$ac_c_werror_flag" 4286 || test ! -s conftest.err' 4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4288 (eval $ac_try) 2>&5 4289 ac_status=$? 4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4291 (exit $ac_status); }; } && 4292 { ac_try='test -s conftest.$ac_objext' 4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4294 (eval $ac_try) 2>&5 4295 ac_status=$? 4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4297 (exit $ac_status); }; }; then 4298 eval "$as_ac_Header=yes" 4299else 4300 echo "$as_me: failed program was:" >&5 4301sed 's/^/| /' conftest.$ac_ext >&5 4302 4303eval "$as_ac_Header=no" 4304fi 4305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4306fi 4307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4309if test `eval echo '${'$as_ac_Header'}'` = yes; then 4310 cat >>confdefs.h <<_ACEOF 4311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4312_ACEOF 4313 4314fi 4315 4316done 4317 4318 4319 4320for ac_header in dlfcn.h 4321do 4322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4323if eval "test \"\${$as_ac_Header+set}\" = set"; then 4324 echo "$as_me:$LINENO: checking for $ac_header" >&5 4325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4326if eval "test \"\${$as_ac_Header+set}\" = set"; then 4327 echo $ECHO_N "(cached) $ECHO_C" >&6 4328fi 4329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4331else 4332 # Is the header compilable? 4333echo "$as_me:$LINENO: checking $ac_header usability" >&5 4334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4335cat >conftest.$ac_ext <<_ACEOF 4336/* confdefs.h. */ 4337_ACEOF 4338cat confdefs.h >>conftest.$ac_ext 4339cat >>conftest.$ac_ext <<_ACEOF 4340/* end confdefs.h. */ 4341$ac_includes_default 4342#include <$ac_header> 4343_ACEOF 4344rm -f conftest.$ac_objext 4345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4346 (eval $ac_compile) 2>conftest.er1 4347 ac_status=$? 4348 grep -v '^ *+' conftest.er1 >conftest.err 4349 rm -f conftest.er1 4350 cat conftest.err >&5 4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4352 (exit $ac_status); } && 4353 { ac_try='test -z "$ac_c_werror_flag" 4354 || test ! -s conftest.err' 4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4356 (eval $ac_try) 2>&5 4357 ac_status=$? 4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4359 (exit $ac_status); }; } && 4360 { ac_try='test -s conftest.$ac_objext' 4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4362 (eval $ac_try) 2>&5 4363 ac_status=$? 4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4365 (exit $ac_status); }; }; then 4366 ac_header_compiler=yes 4367else 4368 echo "$as_me: failed program was:" >&5 4369sed 's/^/| /' conftest.$ac_ext >&5 4370 4371ac_header_compiler=no 4372fi 4373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4374echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4375echo "${ECHO_T}$ac_header_compiler" >&6 4376 4377# Is the header present? 4378echo "$as_me:$LINENO: checking $ac_header presence" >&5 4379echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4380cat >conftest.$ac_ext <<_ACEOF 4381/* confdefs.h. */ 4382_ACEOF 4383cat confdefs.h >>conftest.$ac_ext 4384cat >>conftest.$ac_ext <<_ACEOF 4385/* end confdefs.h. */ 4386#include <$ac_header> 4387_ACEOF 4388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4390 ac_status=$? 4391 grep -v '^ *+' conftest.er1 >conftest.err 4392 rm -f conftest.er1 4393 cat conftest.err >&5 4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4395 (exit $ac_status); } >/dev/null; then 4396 if test -s conftest.err; then 4397 ac_cpp_err=$ac_c_preproc_warn_flag 4398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4399 else 4400 ac_cpp_err= 4401 fi 4402else 4403 ac_cpp_err=yes 4404fi 4405if test -z "$ac_cpp_err"; then 4406 ac_header_preproc=yes 4407else 4408 echo "$as_me: failed program was:" >&5 4409sed 's/^/| /' conftest.$ac_ext >&5 4410 4411 ac_header_preproc=no 4412fi 4413rm -f conftest.err conftest.$ac_ext 4414echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4415echo "${ECHO_T}$ac_header_preproc" >&6 4416 4417# So? What about this header? 4418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4419 yes:no: ) 4420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4421echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4423echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4424 ac_header_preproc=yes 4425 ;; 4426 no:yes:* ) 4427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4428echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4430echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4432echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4434echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4436echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4438echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4439 ( 4440 cat <<\_ASBOX 4441## ------------------------------------------ ## 4442## Report this to the AC_PACKAGE_NAME lists. ## 4443## ------------------------------------------ ## 4444_ASBOX 4445 ) | 4446 sed "s/^/$as_me: WARNING: /" >&2 4447 ;; 4448esac 4449echo "$as_me:$LINENO: checking for $ac_header" >&5 4450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4451if eval "test \"\${$as_ac_Header+set}\" = set"; then 4452 echo $ECHO_N "(cached) $ECHO_C" >&6 4453else 4454 eval "$as_ac_Header=\$ac_header_preproc" 4455fi 4456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4458 4459fi 4460if test `eval echo '${'$as_ac_Header'}'` = yes; then 4461 cat >>confdefs.h <<_ACEOF 4462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4463_ACEOF 4464 4465fi 4466 4467done 4468 4469ac_ext=cc 4470ac_cpp='$CXXCPP $CPPFLAGS' 4471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4474if test -n "$ac_tool_prefix"; then 4475 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4476 do 4477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4478set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4479echo "$as_me:$LINENO: checking for $ac_word" >&5 4480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4481if test "${ac_cv_prog_CXX+set}" = set; then 4482 echo $ECHO_N "(cached) $ECHO_C" >&6 4483else 4484 if test -n "$CXX"; then 4485 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4486else 4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4488for as_dir in $PATH 4489do 4490 IFS=$as_save_IFS 4491 test -z "$as_dir" && as_dir=. 4492 for ac_exec_ext in '' $ac_executable_extensions; do 4493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4494 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4496 break 2 4497 fi 4498done 4499done 4500 4501fi 4502fi 4503CXX=$ac_cv_prog_CXX 4504if test -n "$CXX"; then 4505 echo "$as_me:$LINENO: result: $CXX" >&5 4506echo "${ECHO_T}$CXX" >&6 4507else 4508 echo "$as_me:$LINENO: result: no" >&5 4509echo "${ECHO_T}no" >&6 4510fi 4511 4512 test -n "$CXX" && break 4513 done 4514fi 4515if test -z "$CXX"; then 4516 ac_ct_CXX=$CXX 4517 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4518do 4519 # Extract the first word of "$ac_prog", so it can be a program name with args. 4520set dummy $ac_prog; ac_word=$2 4521echo "$as_me:$LINENO: checking for $ac_word" >&5 4522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4523if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4524 echo $ECHO_N "(cached) $ECHO_C" >&6 4525else 4526 if test -n "$ac_ct_CXX"; then 4527 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4528else 4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4530for as_dir in $PATH 4531do 4532 IFS=$as_save_IFS 4533 test -z "$as_dir" && as_dir=. 4534 for ac_exec_ext in '' $ac_executable_extensions; do 4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4536 ac_cv_prog_ac_ct_CXX="$ac_prog" 4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4538 break 2 4539 fi 4540done 4541done 4542 4543fi 4544fi 4545ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4546if test -n "$ac_ct_CXX"; then 4547 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4548echo "${ECHO_T}$ac_ct_CXX" >&6 4549else 4550 echo "$as_me:$LINENO: result: no" >&5 4551echo "${ECHO_T}no" >&6 4552fi 4553 4554 test -n "$ac_ct_CXX" && break 4555done 4556test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4557 4558 CXX=$ac_ct_CXX 4559fi 4560 4561 4562# Provide some information about the compiler. 4563echo "$as_me:$LINENO:" \ 4564 "checking for C++ compiler version" >&5 4565ac_compiler=`set X $ac_compile; echo $2` 4566{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4567 (eval $ac_compiler --version </dev/null >&5) 2>&5 4568 ac_status=$? 4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4570 (exit $ac_status); } 4571{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4572 (eval $ac_compiler -v </dev/null >&5) 2>&5 4573 ac_status=$? 4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4575 (exit $ac_status); } 4576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4577 (eval $ac_compiler -V </dev/null >&5) 2>&5 4578 ac_status=$? 4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4580 (exit $ac_status); } 4581 4582echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4583echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4584if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4585 echo $ECHO_N "(cached) $ECHO_C" >&6 4586else 4587 cat >conftest.$ac_ext <<_ACEOF 4588/* confdefs.h. */ 4589_ACEOF 4590cat confdefs.h >>conftest.$ac_ext 4591cat >>conftest.$ac_ext <<_ACEOF 4592/* end confdefs.h. */ 4593 4594int 4595main () 4596{ 4597#ifndef __GNUC__ 4598 choke me 4599#endif 4600 4601 ; 4602 return 0; 4603} 4604_ACEOF 4605rm -f conftest.$ac_objext 4606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4607 (eval $ac_compile) 2>conftest.er1 4608 ac_status=$? 4609 grep -v '^ *+' conftest.er1 >conftest.err 4610 rm -f conftest.er1 4611 cat conftest.err >&5 4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4613 (exit $ac_status); } && 4614 { ac_try='test -z "$ac_cxx_werror_flag" 4615 || test ! -s conftest.err' 4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4617 (eval $ac_try) 2>&5 4618 ac_status=$? 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); }; } && 4621 { ac_try='test -s conftest.$ac_objext' 4622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4623 (eval $ac_try) 2>&5 4624 ac_status=$? 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); }; }; then 4627 ac_compiler_gnu=yes 4628else 4629 echo "$as_me: failed program was:" >&5 4630sed 's/^/| /' conftest.$ac_ext >&5 4631 4632ac_compiler_gnu=no 4633fi 4634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4635ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4636 4637fi 4638echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4639echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4640GXX=`test $ac_compiler_gnu = yes && echo yes` 4641ac_test_CXXFLAGS=${CXXFLAGS+set} 4642ac_save_CXXFLAGS=$CXXFLAGS 4643CXXFLAGS="-g" 4644echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4645echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4646if test "${ac_cv_prog_cxx_g+set}" = set; then 4647 echo $ECHO_N "(cached) $ECHO_C" >&6 4648else 4649 cat >conftest.$ac_ext <<_ACEOF 4650/* confdefs.h. */ 4651_ACEOF 4652cat confdefs.h >>conftest.$ac_ext 4653cat >>conftest.$ac_ext <<_ACEOF 4654/* end confdefs.h. */ 4655 4656int 4657main () 4658{ 4659 4660 ; 4661 return 0; 4662} 4663_ACEOF 4664rm -f conftest.$ac_objext 4665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4666 (eval $ac_compile) 2>conftest.er1 4667 ac_status=$? 4668 grep -v '^ *+' conftest.er1 >conftest.err 4669 rm -f conftest.er1 4670 cat conftest.err >&5 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672 (exit $ac_status); } && 4673 { ac_try='test -z "$ac_cxx_werror_flag" 4674 || test ! -s conftest.err' 4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4676 (eval $ac_try) 2>&5 4677 ac_status=$? 4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4679 (exit $ac_status); }; } && 4680 { ac_try='test -s conftest.$ac_objext' 4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4682 (eval $ac_try) 2>&5 4683 ac_status=$? 4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4685 (exit $ac_status); }; }; then 4686 ac_cv_prog_cxx_g=yes 4687else 4688 echo "$as_me: failed program was:" >&5 4689sed 's/^/| /' conftest.$ac_ext >&5 4690 4691ac_cv_prog_cxx_g=no 4692fi 4693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4694fi 4695echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4696echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4697if test "$ac_test_CXXFLAGS" = set; then 4698 CXXFLAGS=$ac_save_CXXFLAGS 4699elif test $ac_cv_prog_cxx_g = yes; then 4700 if test "$GXX" = yes; then 4701 CXXFLAGS="-g -O2" 4702 else 4703 CXXFLAGS="-g" 4704 fi 4705else 4706 if test "$GXX" = yes; then 4707 CXXFLAGS="-O2" 4708 else 4709 CXXFLAGS= 4710 fi 4711fi 4712for ac_declaration in \ 4713 '' \ 4714 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4715 'extern "C" void std::exit (int); using std::exit;' \ 4716 'extern "C" void exit (int) throw ();' \ 4717 'extern "C" void exit (int);' \ 4718 'void exit (int);' 4719do 4720 cat >conftest.$ac_ext <<_ACEOF 4721/* confdefs.h. */ 4722_ACEOF 4723cat confdefs.h >>conftest.$ac_ext 4724cat >>conftest.$ac_ext <<_ACEOF 4725/* end confdefs.h. */ 4726$ac_declaration 4727#include <stdlib.h> 4728int 4729main () 4730{ 4731exit (42); 4732 ; 4733 return 0; 4734} 4735_ACEOF 4736rm -f conftest.$ac_objext 4737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4738 (eval $ac_compile) 2>conftest.er1 4739 ac_status=$? 4740 grep -v '^ *+' conftest.er1 >conftest.err 4741 rm -f conftest.er1 4742 cat conftest.err >&5 4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4744 (exit $ac_status); } && 4745 { ac_try='test -z "$ac_cxx_werror_flag" 4746 || test ! -s conftest.err' 4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4748 (eval $ac_try) 2>&5 4749 ac_status=$? 4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4751 (exit $ac_status); }; } && 4752 { ac_try='test -s conftest.$ac_objext' 4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4754 (eval $ac_try) 2>&5 4755 ac_status=$? 4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4757 (exit $ac_status); }; }; then 4758 : 4759else 4760 echo "$as_me: failed program was:" >&5 4761sed 's/^/| /' conftest.$ac_ext >&5 4762 4763continue 4764fi 4765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4766 cat >conftest.$ac_ext <<_ACEOF 4767/* confdefs.h. */ 4768_ACEOF 4769cat confdefs.h >>conftest.$ac_ext 4770cat >>conftest.$ac_ext <<_ACEOF 4771/* end confdefs.h. */ 4772$ac_declaration 4773int 4774main () 4775{ 4776exit (42); 4777 ; 4778 return 0; 4779} 4780_ACEOF 4781rm -f conftest.$ac_objext 4782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4783 (eval $ac_compile) 2>conftest.er1 4784 ac_status=$? 4785 grep -v '^ *+' conftest.er1 >conftest.err 4786 rm -f conftest.er1 4787 cat conftest.err >&5 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4789 (exit $ac_status); } && 4790 { ac_try='test -z "$ac_cxx_werror_flag" 4791 || test ! -s conftest.err' 4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4793 (eval $ac_try) 2>&5 4794 ac_status=$? 4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4796 (exit $ac_status); }; } && 4797 { ac_try='test -s conftest.$ac_objext' 4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4799 (eval $ac_try) 2>&5 4800 ac_status=$? 4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4802 (exit $ac_status); }; }; then 4803 break 4804else 4805 echo "$as_me: failed program was:" >&5 4806sed 's/^/| /' conftest.$ac_ext >&5 4807 4808fi 4809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4810done 4811rm -f conftest* 4812if test -n "$ac_declaration"; then 4813 echo '#ifdef __cplusplus' >>confdefs.h 4814 echo $ac_declaration >>confdefs.h 4815 echo '#endif' >>confdefs.h 4816fi 4817 4818ac_ext=cc 4819ac_cpp='$CXXCPP $CPPFLAGS' 4820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4823 4824depcc="$CXX" am_compiler_list= 4825 4826echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4827echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4828if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4829 echo $ECHO_N "(cached) $ECHO_C" >&6 4830else 4831 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4832 # We make a subdir and do the tests there. Otherwise we can end up 4833 # making bogus files that we don't know about and never remove. For 4834 # instance it was reported that on HP-UX the gcc test will end up 4835 # making a dummy file named `D' -- because `-MD' means `put the output 4836 # in D'. 4837 mkdir conftest.dir 4838 # Copy depcomp to subdir because otherwise we won't find it if we're 4839 # using a relative directory. 4840 cp "$am_depcomp" conftest.dir 4841 cd conftest.dir 4842 # We will build objects and dependencies in a subdirectory because 4843 # it helps to detect inapplicable dependency modes. For instance 4844 # both Tru64's cc and ICC support -MD to output dependencies as a 4845 # side effect of compilation, but ICC will put the dependencies in 4846 # the current directory while Tru64 will put them in the object 4847 # directory. 4848 mkdir sub 4849 4850 am_cv_CXX_dependencies_compiler_type=none 4851 if test "$am_compiler_list" = ""; then 4852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4853 fi 4854 for depmode in $am_compiler_list; do 4855 # Setup a source with many dependencies, because some compilers 4856 # like to wrap large dependency lists on column 80 (with \), and 4857 # we should not choose a depcomp mode which is confused by this. 4858 # 4859 # We need to recreate these files for each test, as the compiler may 4860 # overwrite some of them when testing with obscure command lines. 4861 # This happens at least with the AIX C compiler. 4862 : > sub/conftest.c 4863 for i in 1 2 3 4 5 6; do 4864 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4866 # Solaris 8's {/usr,}/bin/sh. 4867 touch sub/conftst$i.h 4868 done 4869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4870 4871 case $depmode in 4872 nosideeffect) 4873 # after this tag, mechanisms are not by side-effect, so they'll 4874 # only be used when explicitly requested 4875 if test "x$enable_dependency_tracking" = xyes; then 4876 continue 4877 else 4878 break 4879 fi 4880 ;; 4881 none) break ;; 4882 esac 4883 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4884 # mode. It turns out that the SunPro C++ compiler does not properly 4885 # handle `-M -o', and we need to detect this. 4886 if depmode=$depmode \ 4887 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4888 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4889 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4890 >/dev/null 2>conftest.err && 4891 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4892 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4893 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4894 # icc doesn't choke on unknown options, it will just issue warnings 4895 # or remarks (even with -Werror). So we grep stderr for any message 4896 # that says an option was ignored or not supported. 4897 # When given -MP, icc 7.0 and 7.1 complain thusly: 4898 # icc: Command line warning: ignoring option '-M'; no argument required 4899 # The diagnosis changed in icc 8.0: 4900 # icc: Command line remark: option '-MP' not supported 4901 if (grep 'ignoring option' conftest.err || 4902 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4903 am_cv_CXX_dependencies_compiler_type=$depmode 4904 break 4905 fi 4906 fi 4907 done 4908 4909 cd .. 4910 rm -rf conftest.dir 4911else 4912 am_cv_CXX_dependencies_compiler_type=none 4913fi 4914 4915fi 4916echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4917echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4918CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4919 4920 4921 4922if 4923 test "x$enable_dependency_tracking" != xno \ 4924 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4925 am__fastdepCXX_TRUE= 4926 am__fastdepCXX_FALSE='#' 4927else 4928 am__fastdepCXX_TRUE='#' 4929 am__fastdepCXX_FALSE= 4930fi 4931 4932 4933 4934 4935if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4936 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4937 (test "X$CXX" != "Xg++"))) ; then 4938 ac_ext=cc 4939ac_cpp='$CXXCPP $CPPFLAGS' 4940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4943echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4944echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4945if test -z "$CXXCPP"; then 4946 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4947 echo $ECHO_N "(cached) $ECHO_C" >&6 4948else 4949 # Double quotes because CXXCPP needs to be expanded 4950 for CXXCPP in "$CXX -E" "/lib/cpp" 4951 do 4952 ac_preproc_ok=false 4953for ac_cxx_preproc_warn_flag in '' yes 4954do 4955 # Use a header file that comes with gcc, so configuring glibc 4956 # with a fresh cross-compiler works. 4957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4958 # <limits.h> exists even on freestanding compilers. 4959 # On the NeXT, cc -E runs the code through the compiler's parser, 4960 # not just through cpp. "Syntax error" is here to catch this case. 4961 cat >conftest.$ac_ext <<_ACEOF 4962/* confdefs.h. */ 4963_ACEOF 4964cat confdefs.h >>conftest.$ac_ext 4965cat >>conftest.$ac_ext <<_ACEOF 4966/* end confdefs.h. */ 4967#ifdef __STDC__ 4968# include <limits.h> 4969#else 4970# include <assert.h> 4971#endif 4972 Syntax error 4973_ACEOF 4974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4976 ac_status=$? 4977 grep -v '^ *+' conftest.er1 >conftest.err 4978 rm -f conftest.er1 4979 cat conftest.err >&5 4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4981 (exit $ac_status); } >/dev/null; then 4982 if test -s conftest.err; then 4983 ac_cpp_err=$ac_cxx_preproc_warn_flag 4984 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4985 else 4986 ac_cpp_err= 4987 fi 4988else 4989 ac_cpp_err=yes 4990fi 4991if test -z "$ac_cpp_err"; then 4992 : 4993else 4994 echo "$as_me: failed program was:" >&5 4995sed 's/^/| /' conftest.$ac_ext >&5 4996 4997 # Broken: fails on valid input. 4998continue 4999fi 5000rm -f conftest.err conftest.$ac_ext 5001 5002 # OK, works on sane cases. Now check whether non-existent headers 5003 # can be detected and how. 5004 cat >conftest.$ac_ext <<_ACEOF 5005/* confdefs.h. */ 5006_ACEOF 5007cat confdefs.h >>conftest.$ac_ext 5008cat >>conftest.$ac_ext <<_ACEOF 5009/* end confdefs.h. */ 5010#include <ac_nonexistent.h> 5011_ACEOF 5012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5014 ac_status=$? 5015 grep -v '^ *+' conftest.er1 >conftest.err 5016 rm -f conftest.er1 5017 cat conftest.err >&5 5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5019 (exit $ac_status); } >/dev/null; then 5020 if test -s conftest.err; then 5021 ac_cpp_err=$ac_cxx_preproc_warn_flag 5022 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5023 else 5024 ac_cpp_err= 5025 fi 5026else 5027 ac_cpp_err=yes 5028fi 5029if test -z "$ac_cpp_err"; then 5030 # Broken: success on invalid input. 5031continue 5032else 5033 echo "$as_me: failed program was:" >&5 5034sed 's/^/| /' conftest.$ac_ext >&5 5035 5036 # Passes both tests. 5037ac_preproc_ok=: 5038break 5039fi 5040rm -f conftest.err conftest.$ac_ext 5041 5042done 5043# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5044rm -f conftest.err conftest.$ac_ext 5045if $ac_preproc_ok; then 5046 break 5047fi 5048 5049 done 5050 ac_cv_prog_CXXCPP=$CXXCPP 5051 5052fi 5053 CXXCPP=$ac_cv_prog_CXXCPP 5054else 5055 ac_cv_prog_CXXCPP=$CXXCPP 5056fi 5057echo "$as_me:$LINENO: result: $CXXCPP" >&5 5058echo "${ECHO_T}$CXXCPP" >&6 5059ac_preproc_ok=false 5060for ac_cxx_preproc_warn_flag in '' yes 5061do 5062 # Use a header file that comes with gcc, so configuring glibc 5063 # with a fresh cross-compiler works. 5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5065 # <limits.h> exists even on freestanding compilers. 5066 # On the NeXT, cc -E runs the code through the compiler's parser, 5067 # not just through cpp. "Syntax error" is here to catch this case. 5068 cat >conftest.$ac_ext <<_ACEOF 5069/* confdefs.h. */ 5070_ACEOF 5071cat confdefs.h >>conftest.$ac_ext 5072cat >>conftest.$ac_ext <<_ACEOF 5073/* end confdefs.h. */ 5074#ifdef __STDC__ 5075# include <limits.h> 5076#else 5077# include <assert.h> 5078#endif 5079 Syntax error 5080_ACEOF 5081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5083 ac_status=$? 5084 grep -v '^ *+' conftest.er1 >conftest.err 5085 rm -f conftest.er1 5086 cat conftest.err >&5 5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5088 (exit $ac_status); } >/dev/null; then 5089 if test -s conftest.err; then 5090 ac_cpp_err=$ac_cxx_preproc_warn_flag 5091 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5092 else 5093 ac_cpp_err= 5094 fi 5095else 5096 ac_cpp_err=yes 5097fi 5098if test -z "$ac_cpp_err"; then 5099 : 5100else 5101 echo "$as_me: failed program was:" >&5 5102sed 's/^/| /' conftest.$ac_ext >&5 5103 5104 # Broken: fails on valid input. 5105continue 5106fi 5107rm -f conftest.err conftest.$ac_ext 5108 5109 # OK, works on sane cases. Now check whether non-existent headers 5110 # can be detected and how. 5111 cat >conftest.$ac_ext <<_ACEOF 5112/* confdefs.h. */ 5113_ACEOF 5114cat confdefs.h >>conftest.$ac_ext 5115cat >>conftest.$ac_ext <<_ACEOF 5116/* end confdefs.h. */ 5117#include <ac_nonexistent.h> 5118_ACEOF 5119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5121 ac_status=$? 5122 grep -v '^ *+' conftest.er1 >conftest.err 5123 rm -f conftest.er1 5124 cat conftest.err >&5 5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5126 (exit $ac_status); } >/dev/null; then 5127 if test -s conftest.err; then 5128 ac_cpp_err=$ac_cxx_preproc_warn_flag 5129 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5130 else 5131 ac_cpp_err= 5132 fi 5133else 5134 ac_cpp_err=yes 5135fi 5136if test -z "$ac_cpp_err"; then 5137 # Broken: success on invalid input. 5138continue 5139else 5140 echo "$as_me: failed program was:" >&5 5141sed 's/^/| /' conftest.$ac_ext >&5 5142 5143 # Passes both tests. 5144ac_preproc_ok=: 5145break 5146fi 5147rm -f conftest.err conftest.$ac_ext 5148 5149done 5150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5151rm -f conftest.err conftest.$ac_ext 5152if $ac_preproc_ok; then 5153 : 5154else 5155 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5156See \`config.log' for more details." >&5 5157echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5158See \`config.log' for more details." >&2;} 5159 { (exit 1); exit 1; }; } 5160fi 5161 5162ac_ext=cc 5163ac_cpp='$CXXCPP $CPPFLAGS' 5164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5167 5168fi 5169 5170 5171ac_ext=f 5172ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5173ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5174ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5175if test -n "$ac_tool_prefix"; then 5176 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5177 do 5178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5179set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5180echo "$as_me:$LINENO: checking for $ac_word" >&5 5181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5182if test "${ac_cv_prog_F77+set}" = set; then 5183 echo $ECHO_N "(cached) $ECHO_C" >&6 5184else 5185 if test -n "$F77"; then 5186 ac_cv_prog_F77="$F77" # Let the user override the test. 5187else 5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5189for as_dir in $PATH 5190do 5191 IFS=$as_save_IFS 5192 test -z "$as_dir" && as_dir=. 5193 for ac_exec_ext in '' $ac_executable_extensions; do 5194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5195 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5197 break 2 5198 fi 5199done 5200done 5201 5202fi 5203fi 5204F77=$ac_cv_prog_F77 5205if test -n "$F77"; then 5206 echo "$as_me:$LINENO: result: $F77" >&5 5207echo "${ECHO_T}$F77" >&6 5208else 5209 echo "$as_me:$LINENO: result: no" >&5 5210echo "${ECHO_T}no" >&6 5211fi 5212 5213 test -n "$F77" && break 5214 done 5215fi 5216if test -z "$F77"; then 5217 ac_ct_F77=$F77 5218 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5219do 5220 # Extract the first word of "$ac_prog", so it can be a program name with args. 5221set dummy $ac_prog; ac_word=$2 5222echo "$as_me:$LINENO: checking for $ac_word" >&5 5223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5224if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5225 echo $ECHO_N "(cached) $ECHO_C" >&6 5226else 5227 if test -n "$ac_ct_F77"; then 5228 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5229else 5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5231for as_dir in $PATH 5232do 5233 IFS=$as_save_IFS 5234 test -z "$as_dir" && as_dir=. 5235 for ac_exec_ext in '' $ac_executable_extensions; do 5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5237 ac_cv_prog_ac_ct_F77="$ac_prog" 5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5239 break 2 5240 fi 5241done 5242done 5243 5244fi 5245fi 5246ac_ct_F77=$ac_cv_prog_ac_ct_F77 5247if test -n "$ac_ct_F77"; then 5248 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5249echo "${ECHO_T}$ac_ct_F77" >&6 5250else 5251 echo "$as_me:$LINENO: result: no" >&5 5252echo "${ECHO_T}no" >&6 5253fi 5254 5255 test -n "$ac_ct_F77" && break 5256done 5257 5258 F77=$ac_ct_F77 5259fi 5260 5261 5262# Provide some information about the compiler. 5263echo "$as_me:5263:" \ 5264 "checking for Fortran 77 compiler version" >&5 5265ac_compiler=`set X $ac_compile; echo $2` 5266{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5267 (eval $ac_compiler --version </dev/null >&5) 2>&5 5268 ac_status=$? 5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5270 (exit $ac_status); } 5271{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5272 (eval $ac_compiler -v </dev/null >&5) 2>&5 5273 ac_status=$? 5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5275 (exit $ac_status); } 5276{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5277 (eval $ac_compiler -V </dev/null >&5) 2>&5 5278 ac_status=$? 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5280 (exit $ac_status); } 5281rm -f a.out 5282 5283# If we don't use `.F' as extension, the preprocessor is not run on the 5284# input file. (Note that this only needs to work for GNU compilers.) 5285ac_save_ext=$ac_ext 5286ac_ext=F 5287echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5288echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5289if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5290 echo $ECHO_N "(cached) $ECHO_C" >&6 5291else 5292 cat >conftest.$ac_ext <<_ACEOF 5293 program main 5294#ifndef __GNUC__ 5295 choke me 5296#endif 5297 5298 end 5299_ACEOF 5300rm -f conftest.$ac_objext 5301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5302 (eval $ac_compile) 2>conftest.er1 5303 ac_status=$? 5304 grep -v '^ *+' conftest.er1 >conftest.err 5305 rm -f conftest.er1 5306 cat conftest.err >&5 5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308 (exit $ac_status); } && 5309 { ac_try='test -z "$ac_f77_werror_flag" 5310 || test ! -s conftest.err' 5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5312 (eval $ac_try) 2>&5 5313 ac_status=$? 5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5315 (exit $ac_status); }; } && 5316 { ac_try='test -s conftest.$ac_objext' 5317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5318 (eval $ac_try) 2>&5 5319 ac_status=$? 5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5321 (exit $ac_status); }; }; then 5322 ac_compiler_gnu=yes 5323else 5324 echo "$as_me: failed program was:" >&5 5325sed 's/^/| /' conftest.$ac_ext >&5 5326 5327ac_compiler_gnu=no 5328fi 5329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5330ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5331 5332fi 5333echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5334echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5335ac_ext=$ac_save_ext 5336ac_test_FFLAGS=${FFLAGS+set} 5337ac_save_FFLAGS=$FFLAGS 5338FFLAGS= 5339echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5340echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5341if test "${ac_cv_prog_f77_g+set}" = set; then 5342 echo $ECHO_N "(cached) $ECHO_C" >&6 5343else 5344 FFLAGS=-g 5345cat >conftest.$ac_ext <<_ACEOF 5346 program main 5347 5348 end 5349_ACEOF 5350rm -f conftest.$ac_objext 5351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5352 (eval $ac_compile) 2>conftest.er1 5353 ac_status=$? 5354 grep -v '^ *+' conftest.er1 >conftest.err 5355 rm -f conftest.er1 5356 cat conftest.err >&5 5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5358 (exit $ac_status); } && 5359 { ac_try='test -z "$ac_f77_werror_flag" 5360 || test ! -s conftest.err' 5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5362 (eval $ac_try) 2>&5 5363 ac_status=$? 5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5365 (exit $ac_status); }; } && 5366 { ac_try='test -s conftest.$ac_objext' 5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5368 (eval $ac_try) 2>&5 5369 ac_status=$? 5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5371 (exit $ac_status); }; }; then 5372 ac_cv_prog_f77_g=yes 5373else 5374 echo "$as_me: failed program was:" >&5 5375sed 's/^/| /' conftest.$ac_ext >&5 5376 5377ac_cv_prog_f77_g=no 5378fi 5379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5380 5381fi 5382echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5383echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5384if test "$ac_test_FFLAGS" = set; then 5385 FFLAGS=$ac_save_FFLAGS 5386elif test $ac_cv_prog_f77_g = yes; then 5387 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5388 FFLAGS="-g -O2" 5389 else 5390 FFLAGS="-g" 5391 fi 5392else 5393 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5394 FFLAGS="-O2" 5395 else 5396 FFLAGS= 5397 fi 5398fi 5399 5400G77=`test $ac_compiler_gnu = yes && echo yes` 5401ac_ext=c 5402ac_cpp='$CPP $CPPFLAGS' 5403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5405ac_compiler_gnu=$ac_cv_c_compiler_gnu 5406 5407 5408 5409# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5410 5411# find the maximum length of command line arguments 5412echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5413echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5414if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5415 echo $ECHO_N "(cached) $ECHO_C" >&6 5416else 5417 i=0 5418 teststring="ABCD" 5419 5420 case $build_os in 5421 msdosdjgpp*) 5422 # On DJGPP, this test can blow up pretty badly due to problems in libc 5423 # (any single argument exceeding 2000 bytes causes a buffer overrun 5424 # during glob expansion). Even if it were fixed, the result of this 5425 # check would be larger than it should be. 5426 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5427 ;; 5428 5429 gnu*) 5430 # Under GNU Hurd, this test is not required because there is 5431 # no limit to the length of command line arguments. 5432 # Libtool will interpret -1 as no limit whatsoever 5433 lt_cv_sys_max_cmd_len=-1; 5434 ;; 5435 5436 cygwin* | mingw*) 5437 # On Win9x/ME, this test blows up -- it succeeds, but takes 5438 # about 5 minutes as the teststring grows exponentially. 5439 # Worse, since 9x/ME are not pre-emptively multitasking, 5440 # you end up with a "frozen" computer, even though with patience 5441 # the test eventually succeeds (with a max line length of 256k). 5442 # Instead, let's just punt: use the minimum linelength reported by 5443 # all of the supported platforms: 8192 (on NT/2K/XP). 5444 lt_cv_sys_max_cmd_len=8192; 5445 ;; 5446 5447 amigaos*) 5448 # On AmigaOS with pdksh, this test takes hours, literally. 5449 # So we just punt and use a minimum line length of 8192. 5450 lt_cv_sys_max_cmd_len=8192; 5451 ;; 5452 5453 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5454 # This has been around since 386BSD, at least. Likely further. 5455 if test -x /sbin/sysctl; then 5456 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5457 elif test -x /usr/sbin/sysctl; then 5458 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5459 else 5460 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5461 fi 5462 # And add a safety zone 5463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5465 ;; 5466 5467 interix*) 5468 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5469 lt_cv_sys_max_cmd_len=196608 5470 ;; 5471 5472 osf*) 5473 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5474 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5475 # nice to cause kernel panics so lets avoid the loop below. 5476 # First set a reasonable default. 5477 lt_cv_sys_max_cmd_len=16384 5478 # 5479 if test -x /sbin/sysconfig; then 5480 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5481 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5482 esac 5483 fi 5484 ;; 5485 sco3.2v5*) 5486 lt_cv_sys_max_cmd_len=102400 5487 ;; 5488 sysv5* | sco5v6* | sysv4.2uw2*) 5489 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5490 if test -n "$kargmax"; then 5491 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5492 else 5493 lt_cv_sys_max_cmd_len=32768 5494 fi 5495 ;; 5496 *) 5497 # If test is not a shell built-in, we'll probably end up computing a 5498 # maximum length that is only half of the actual maximum length, but 5499 # we can't tell. 5500 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5501 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5502 = "XX$teststring") >/dev/null 2>&1 && 5503 new_result=`expr "X$teststring" : ".*" 2>&1` && 5504 lt_cv_sys_max_cmd_len=$new_result && 5505 test $i != 17 # 1/2 MB should be enough 5506 do 5507 i=`expr $i + 1` 5508 teststring=$teststring$teststring 5509 done 5510 teststring= 5511 # Add a significant safety factor because C++ compilers can tack on massive 5512 # amounts of additional arguments before passing them to the linker. 5513 # It appears as though 1/2 is a usable value. 5514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5515 ;; 5516 esac 5517 5518fi 5519 5520if test -n $lt_cv_sys_max_cmd_len ; then 5521 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5522echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5523else 5524 echo "$as_me:$LINENO: result: none" >&5 5525echo "${ECHO_T}none" >&6 5526fi 5527 5528 5529 5530 5531# Check for command to grab the raw symbol name followed by C symbol from nm. 5532echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5533echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5534if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5535 echo $ECHO_N "(cached) $ECHO_C" >&6 5536else 5537 5538# These are sane defaults that work on at least a few old systems. 5539# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5540 5541# Character class describing NM global symbol codes. 5542symcode='[BCDEGRST]' 5543 5544# Regexp to match symbols that can be accessed directly from C. 5545sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5546 5547# Transform an extracted symbol line into a proper C declaration 5548lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5549 5550# Transform an extracted symbol line into symbol name and symbol address 5551lt_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'" 5552 5553# Define system-specific variables. 5554case $host_os in 5555aix*) 5556 symcode='[BCDT]' 5557 ;; 5558cygwin* | mingw* | pw32*) 5559 symcode='[ABCDGISTW]' 5560 ;; 5561hpux*) # Its linker distinguishes data from code symbols 5562 if test "$host_cpu" = ia64; then 5563 symcode='[ABCDEGRST]' 5564 fi 5565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5566 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'" 5567 ;; 5568linux*) 5569 if test "$host_cpu" = ia64; then 5570 symcode='[ABCDGIRSTW]' 5571 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5572 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'" 5573 fi 5574 ;; 5575irix* | nonstopux*) 5576 symcode='[BCDEGRST]' 5577 ;; 5578osf*) 5579 symcode='[BCDEGQRST]' 5580 ;; 5581solaris*) 5582 symcode='[BDRT]' 5583 ;; 5584sco3.2v5*) 5585 symcode='[DT]' 5586 ;; 5587sysv4.2uw2*) 5588 symcode='[DT]' 5589 ;; 5590sysv5* | sco5v6* | unixware* | OpenUNIX*) 5591 symcode='[ABDT]' 5592 ;; 5593sysv4) 5594 symcode='[DFNSTU]' 5595 ;; 5596esac 5597 5598# Handle CRLF in mingw tool chain 5599opt_cr= 5600case $build_os in 5601mingw*) 5602 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5603 ;; 5604esac 5605 5606# If we're using GNU nm, then use its standard symbol codes. 5607case `$NM -V 2>&1` in 5608*GNU* | *'with BFD'*) 5609 symcode='[ABCDGIRSTW]' ;; 5610esac 5611 5612# Try without a prefix undercore, then with it. 5613for ac_symprfx in "" "_"; do 5614 5615 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5616 symxfrm="\\1 $ac_symprfx\\2 \\2" 5617 5618 # Write the raw and C identifiers. 5619 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5620 5621 # Check to see that the pipe works correctly. 5622 pipe_works=no 5623 5624 rm -f conftest* 5625 cat > conftest.$ac_ext <<EOF 5626#ifdef __cplusplus 5627extern "C" { 5628#endif 5629char nm_test_var; 5630void nm_test_func(){} 5631#ifdef __cplusplus 5632} 5633#endif 5634int main(){nm_test_var='a';nm_test_func();return(0);} 5635EOF 5636 5637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5638 (eval $ac_compile) 2>&5 5639 ac_status=$? 5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5641 (exit $ac_status); }; then 5642 # Now try to grab the symbols. 5643 nlist=conftest.nm 5644 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5645 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5646 ac_status=$? 5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5648 (exit $ac_status); } && test -s "$nlist"; then 5649 # Try sorting and uniquifying the output. 5650 if sort "$nlist" | uniq > "$nlist"T; then 5651 mv -f "$nlist"T "$nlist" 5652 else 5653 rm -f "$nlist"T 5654 fi 5655 5656 # Make sure that we snagged all the symbols we need. 5657 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5658 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5659 cat <<EOF > conftest.$ac_ext 5660#ifdef __cplusplus 5661extern "C" { 5662#endif 5663 5664EOF 5665 # Now generate the symbol file. 5666 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5667 5668 cat <<EOF >> conftest.$ac_ext 5669#if defined (__STDC__) && __STDC__ 5670# define lt_ptr_t void * 5671#else 5672# define lt_ptr_t char * 5673# define const 5674#endif 5675 5676/* The mapping between symbol names and symbols. */ 5677const struct { 5678 const char *name; 5679 lt_ptr_t address; 5680} 5681lt_preloaded_symbols[] = 5682{ 5683EOF 5684 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5685 cat <<\EOF >> conftest.$ac_ext 5686 {0, (lt_ptr_t) 0} 5687}; 5688 5689#ifdef __cplusplus 5690} 5691#endif 5692EOF 5693 # Now try linking the two files. 5694 mv conftest.$ac_objext conftstm.$ac_objext 5695 lt_save_LIBS="$LIBS" 5696 lt_save_CFLAGS="$CFLAGS" 5697 LIBS="conftstm.$ac_objext" 5698 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5700 (eval $ac_link) 2>&5 5701 ac_status=$? 5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5703 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5704 pipe_works=yes 5705 fi 5706 LIBS="$lt_save_LIBS" 5707 CFLAGS="$lt_save_CFLAGS" 5708 else 5709 echo "cannot find nm_test_func in $nlist" >&5 5710 fi 5711 else 5712 echo "cannot find nm_test_var in $nlist" >&5 5713 fi 5714 else 5715 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5716 fi 5717 else 5718 echo "$progname: failed program was:" >&5 5719 cat conftest.$ac_ext >&5 5720 fi 5721 rm -f conftest* conftst* 5722 5723 # Do not use the global_symbol_pipe unless it works. 5724 if test "$pipe_works" = yes; then 5725 break 5726 else 5727 lt_cv_sys_global_symbol_pipe= 5728 fi 5729done 5730 5731fi 5732 5733if test -z "$lt_cv_sys_global_symbol_pipe"; then 5734 lt_cv_sys_global_symbol_to_cdecl= 5735fi 5736if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5737 echo "$as_me:$LINENO: result: failed" >&5 5738echo "${ECHO_T}failed" >&6 5739else 5740 echo "$as_me:$LINENO: result: ok" >&5 5741echo "${ECHO_T}ok" >&6 5742fi 5743 5744echo "$as_me:$LINENO: checking for objdir" >&5 5745echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5746if test "${lt_cv_objdir+set}" = set; then 5747 echo $ECHO_N "(cached) $ECHO_C" >&6 5748else 5749 rm -f .libs 2>/dev/null 5750mkdir .libs 2>/dev/null 5751if test -d .libs; then 5752 lt_cv_objdir=.libs 5753else 5754 # MS-DOS does not allow filenames that begin with a dot. 5755 lt_cv_objdir=_libs 5756fi 5757rmdir .libs 2>/dev/null 5758fi 5759echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5760echo "${ECHO_T}$lt_cv_objdir" >&6 5761objdir=$lt_cv_objdir 5762 5763 5764 5765 5766 5767case $host_os in 5768aix3*) 5769 # AIX sometimes has problems with the GCC collect2 program. For some 5770 # reason, if we set the COLLECT_NAMES environment variable, the problems 5771 # vanish in a puff of smoke. 5772 if test "X${COLLECT_NAMES+set}" != Xset; then 5773 COLLECT_NAMES= 5774 export COLLECT_NAMES 5775 fi 5776 ;; 5777esac 5778 5779# Sed substitution that helps us do robust quoting. It backslashifies 5780# metacharacters that are still active within double-quoted strings. 5781Xsed='sed -e 1s/^X//' 5782sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5783 5784# Same as above, but do not quote variable references. 5785double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5786 5787# Sed substitution to delay expansion of an escaped shell variable in a 5788# double_quote_subst'ed string. 5789delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5790 5791# Sed substitution to avoid accidental globbing in evaled expressions 5792no_glob_subst='s/\*/\\\*/g' 5793 5794# Constants: 5795rm="rm -f" 5796 5797# Global variables: 5798default_ofile=libtool 5799can_build_shared=yes 5800 5801# All known linkers require a `.a' archive for static linking (except MSVC, 5802# which needs '.lib'). 5803libext=a 5804ltmain="$ac_aux_dir/ltmain.sh" 5805ofile="$default_ofile" 5806with_gnu_ld="$lt_cv_prog_gnu_ld" 5807 5808if test -n "$ac_tool_prefix"; then 5809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5810set dummy ${ac_tool_prefix}ar; ac_word=$2 5811echo "$as_me:$LINENO: checking for $ac_word" >&5 5812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5813if test "${ac_cv_prog_AR+set}" = set; then 5814 echo $ECHO_N "(cached) $ECHO_C" >&6 5815else 5816 if test -n "$AR"; then 5817 ac_cv_prog_AR="$AR" # Let the user override the test. 5818else 5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5820for as_dir in $PATH 5821do 5822 IFS=$as_save_IFS 5823 test -z "$as_dir" && as_dir=. 5824 for ac_exec_ext in '' $ac_executable_extensions; do 5825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5826 ac_cv_prog_AR="${ac_tool_prefix}ar" 5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5828 break 2 5829 fi 5830done 5831done 5832 5833fi 5834fi 5835AR=$ac_cv_prog_AR 5836if test -n "$AR"; then 5837 echo "$as_me:$LINENO: result: $AR" >&5 5838echo "${ECHO_T}$AR" >&6 5839else 5840 echo "$as_me:$LINENO: result: no" >&5 5841echo "${ECHO_T}no" >&6 5842fi 5843 5844fi 5845if test -z "$ac_cv_prog_AR"; then 5846 ac_ct_AR=$AR 5847 # Extract the first word of "ar", so it can be a program name with args. 5848set dummy ar; ac_word=$2 5849echo "$as_me:$LINENO: checking for $ac_word" >&5 5850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5851if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5852 echo $ECHO_N "(cached) $ECHO_C" >&6 5853else 5854 if test -n "$ac_ct_AR"; then 5855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5856else 5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5858for as_dir in $PATH 5859do 5860 IFS=$as_save_IFS 5861 test -z "$as_dir" && as_dir=. 5862 for ac_exec_ext in '' $ac_executable_extensions; do 5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5864 ac_cv_prog_ac_ct_AR="ar" 5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5866 break 2 5867 fi 5868done 5869done 5870 5871 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5872fi 5873fi 5874ac_ct_AR=$ac_cv_prog_ac_ct_AR 5875if test -n "$ac_ct_AR"; then 5876 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5877echo "${ECHO_T}$ac_ct_AR" >&6 5878else 5879 echo "$as_me:$LINENO: result: no" >&5 5880echo "${ECHO_T}no" >&6 5881fi 5882 5883 AR=$ac_ct_AR 5884else 5885 AR="$ac_cv_prog_AR" 5886fi 5887 5888if test -n "$ac_tool_prefix"; then 5889 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5890set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5891echo "$as_me:$LINENO: checking for $ac_word" >&5 5892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5893if test "${ac_cv_prog_RANLIB+set}" = set; then 5894 echo $ECHO_N "(cached) $ECHO_C" >&6 5895else 5896 if test -n "$RANLIB"; then 5897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5906 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910done 5911done 5912 5913fi 5914fi 5915RANLIB=$ac_cv_prog_RANLIB 5916if test -n "$RANLIB"; then 5917 echo "$as_me:$LINENO: result: $RANLIB" >&5 5918echo "${ECHO_T}$RANLIB" >&6 5919else 5920 echo "$as_me:$LINENO: result: no" >&5 5921echo "${ECHO_T}no" >&6 5922fi 5923 5924fi 5925if test -z "$ac_cv_prog_RANLIB"; then 5926 ac_ct_RANLIB=$RANLIB 5927 # Extract the first word of "ranlib", so it can be a program name with args. 5928set dummy ranlib; ac_word=$2 5929echo "$as_me:$LINENO: checking for $ac_word" >&5 5930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5931if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5932 echo $ECHO_N "(cached) $ECHO_C" >&6 5933else 5934 if test -n "$ac_ct_RANLIB"; then 5935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5936else 5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5938for as_dir in $PATH 5939do 5940 IFS=$as_save_IFS 5941 test -z "$as_dir" && as_dir=. 5942 for ac_exec_ext in '' $ac_executable_extensions; do 5943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5944 ac_cv_prog_ac_ct_RANLIB="ranlib" 5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5946 break 2 5947 fi 5948done 5949done 5950 5951 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5952fi 5953fi 5954ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5955if test -n "$ac_ct_RANLIB"; then 5956 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5957echo "${ECHO_T}$ac_ct_RANLIB" >&6 5958else 5959 echo "$as_me:$LINENO: result: no" >&5 5960echo "${ECHO_T}no" >&6 5961fi 5962 5963 RANLIB=$ac_ct_RANLIB 5964else 5965 RANLIB="$ac_cv_prog_RANLIB" 5966fi 5967 5968if test -n "$ac_tool_prefix"; then 5969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5970set dummy ${ac_tool_prefix}strip; ac_word=$2 5971echo "$as_me:$LINENO: checking for $ac_word" >&5 5972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5973if test "${ac_cv_prog_STRIP+set}" = set; then 5974 echo $ECHO_N "(cached) $ECHO_C" >&6 5975else 5976 if test -n "$STRIP"; then 5977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5978else 5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5980for as_dir in $PATH 5981do 5982 IFS=$as_save_IFS 5983 test -z "$as_dir" && as_dir=. 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5986 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990done 5991done 5992 5993fi 5994fi 5995STRIP=$ac_cv_prog_STRIP 5996if test -n "$STRIP"; then 5997 echo "$as_me:$LINENO: result: $STRIP" >&5 5998echo "${ECHO_T}$STRIP" >&6 5999else 6000 echo "$as_me:$LINENO: result: no" >&5 6001echo "${ECHO_T}no" >&6 6002fi 6003 6004fi 6005if test -z "$ac_cv_prog_STRIP"; then 6006 ac_ct_STRIP=$STRIP 6007 # Extract the first word of "strip", so it can be a program name with args. 6008set dummy strip; ac_word=$2 6009echo "$as_me:$LINENO: checking for $ac_word" >&5 6010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6011if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6012 echo $ECHO_N "(cached) $ECHO_C" >&6 6013else 6014 if test -n "$ac_ct_STRIP"; then 6015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6016else 6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6018for as_dir in $PATH 6019do 6020 IFS=$as_save_IFS 6021 test -z "$as_dir" && as_dir=. 6022 for ac_exec_ext in '' $ac_executable_extensions; do 6023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6024 ac_cv_prog_ac_ct_STRIP="strip" 6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6026 break 2 6027 fi 6028done 6029done 6030 6031 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6032fi 6033fi 6034ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6035if test -n "$ac_ct_STRIP"; then 6036 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6037echo "${ECHO_T}$ac_ct_STRIP" >&6 6038else 6039 echo "$as_me:$LINENO: result: no" >&5 6040echo "${ECHO_T}no" >&6 6041fi 6042 6043 STRIP=$ac_ct_STRIP 6044else 6045 STRIP="$ac_cv_prog_STRIP" 6046fi 6047 6048 6049old_CC="$CC" 6050old_CFLAGS="$CFLAGS" 6051 6052# Set sane defaults for various variables 6053test -z "$AR" && AR=ar 6054test -z "$AR_FLAGS" && AR_FLAGS=cru 6055test -z "$AS" && AS=as 6056test -z "$CC" && CC=cc 6057test -z "$LTCC" && LTCC=$CC 6058test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6059test -z "$DLLTOOL" && DLLTOOL=dlltool 6060test -z "$LD" && LD=ld 6061test -z "$LN_S" && LN_S="ln -s" 6062test -z "$MAGIC_CMD" && MAGIC_CMD=file 6063test -z "$NM" && NM=nm 6064test -z "$SED" && SED=sed 6065test -z "$OBJDUMP" && OBJDUMP=objdump 6066test -z "$RANLIB" && RANLIB=: 6067test -z "$STRIP" && STRIP=: 6068test -z "$ac_objext" && ac_objext=o 6069 6070# Determine commands to create old-style static archives. 6071old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6072old_postinstall_cmds='chmod 644 $oldlib' 6073old_postuninstall_cmds= 6074 6075if test -n "$RANLIB"; then 6076 case $host_os in 6077 openbsd*) 6078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6079 ;; 6080 *) 6081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6082 ;; 6083 esac 6084 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6085fi 6086 6087for cc_temp in $compiler""; do 6088 case $cc_temp in 6089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6091 \-*) ;; 6092 *) break;; 6093 esac 6094done 6095cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6096 6097 6098# Only perform the check for file, if the check method requires it 6099case $deplibs_check_method in 6100file_magic*) 6101 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6102 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6103echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6104if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6105 echo $ECHO_N "(cached) $ECHO_C" >&6 6106else 6107 case $MAGIC_CMD in 6108[\\/*] | ?:[\\/]*) 6109 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6110 ;; 6111*) 6112 lt_save_MAGIC_CMD="$MAGIC_CMD" 6113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6115 for ac_dir in $ac_dummy; do 6116 IFS="$lt_save_ifs" 6117 test -z "$ac_dir" && ac_dir=. 6118 if test -f $ac_dir/${ac_tool_prefix}file; then 6119 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6120 if test -n "$file_magic_test_file"; then 6121 case $deplibs_check_method in 6122 "file_magic "*) 6123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6126 $EGREP "$file_magic_regex" > /dev/null; then 6127 : 6128 else 6129 cat <<EOF 1>&2 6130 6131*** Warning: the command libtool uses to detect shared libraries, 6132*** $file_magic_cmd, produces output that libtool cannot recognize. 6133*** The result is that libtool may fail to recognize shared libraries 6134*** as such. This will affect the creation of libtool libraries that 6135*** depend on shared libraries, but programs linked with such libtool 6136*** libraries will work regardless of this problem. Nevertheless, you 6137*** may want to report the problem to your system manager and/or to 6138*** bug-libtool@gnu.org 6139 6140EOF 6141 fi ;; 6142 esac 6143 fi 6144 break 6145 fi 6146 done 6147 IFS="$lt_save_ifs" 6148 MAGIC_CMD="$lt_save_MAGIC_CMD" 6149 ;; 6150esac 6151fi 6152 6153MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6154if test -n "$MAGIC_CMD"; then 6155 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6156echo "${ECHO_T}$MAGIC_CMD" >&6 6157else 6158 echo "$as_me:$LINENO: result: no" >&5 6159echo "${ECHO_T}no" >&6 6160fi 6161 6162if test -z "$lt_cv_path_MAGIC_CMD"; then 6163 if test -n "$ac_tool_prefix"; then 6164 echo "$as_me:$LINENO: checking for file" >&5 6165echo $ECHO_N "checking for file... $ECHO_C" >&6 6166if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6167 echo $ECHO_N "(cached) $ECHO_C" >&6 6168else 6169 case $MAGIC_CMD in 6170[\\/*] | ?:[\\/]*) 6171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6172 ;; 6173*) 6174 lt_save_MAGIC_CMD="$MAGIC_CMD" 6175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6177 for ac_dir in $ac_dummy; do 6178 IFS="$lt_save_ifs" 6179 test -z "$ac_dir" && ac_dir=. 6180 if test -f $ac_dir/file; then 6181 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6182 if test -n "$file_magic_test_file"; then 6183 case $deplibs_check_method in 6184 "file_magic "*) 6185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6188 $EGREP "$file_magic_regex" > /dev/null; then 6189 : 6190 else 6191 cat <<EOF 1>&2 6192 6193*** Warning: the command libtool uses to detect shared libraries, 6194*** $file_magic_cmd, produces output that libtool cannot recognize. 6195*** The result is that libtool may fail to recognize shared libraries 6196*** as such. This will affect the creation of libtool libraries that 6197*** depend on shared libraries, but programs linked with such libtool 6198*** libraries will work regardless of this problem. Nevertheless, you 6199*** may want to report the problem to your system manager and/or to 6200*** bug-libtool@gnu.org 6201 6202EOF 6203 fi ;; 6204 esac 6205 fi 6206 break 6207 fi 6208 done 6209 IFS="$lt_save_ifs" 6210 MAGIC_CMD="$lt_save_MAGIC_CMD" 6211 ;; 6212esac 6213fi 6214 6215MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6216if test -n "$MAGIC_CMD"; then 6217 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6218echo "${ECHO_T}$MAGIC_CMD" >&6 6219else 6220 echo "$as_me:$LINENO: result: no" >&5 6221echo "${ECHO_T}no" >&6 6222fi 6223 6224 else 6225 MAGIC_CMD=: 6226 fi 6227fi 6228 6229 fi 6230 ;; 6231esac 6232 6233enable_dlopen=no 6234enable_win32_dll=no 6235 6236# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6237if test "${enable_libtool_lock+set}" = set; then 6238 enableval="$enable_libtool_lock" 6239 6240fi; 6241test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6242 6243 6244# Check whether --with-pic or --without-pic was given. 6245if test "${with_pic+set}" = set; then 6246 withval="$with_pic" 6247 pic_mode="$withval" 6248else 6249 pic_mode=default 6250fi; 6251test -z "$pic_mode" && pic_mode=default 6252 6253# Use C for the default configuration in the libtool script 6254tagname= 6255lt_save_CC="$CC" 6256ac_ext=c 6257ac_cpp='$CPP $CPPFLAGS' 6258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6260ac_compiler_gnu=$ac_cv_c_compiler_gnu 6261 6262 6263# Source file extension for C test sources. 6264ac_ext=c 6265 6266# Object file extension for compiled C test sources. 6267objext=o 6268objext=$objext 6269 6270# Code to be used in simple compile tests 6271lt_simple_compile_test_code="int some_variable = 0;\n" 6272 6273# Code to be used in simple link tests 6274lt_simple_link_test_code='int main(){return(0);}\n' 6275 6276 6277# If no C compiler was specified, use CC. 6278LTCC=${LTCC-"$CC"} 6279 6280# If no C compiler flags were specified, use CFLAGS. 6281LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6282 6283# Allow CC to be a program name with arguments. 6284compiler=$CC 6285 6286 6287# save warnings/boilerplate of simple test code 6288ac_outfile=conftest.$ac_objext 6289printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6290eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6291_lt_compiler_boilerplate=`cat conftest.err` 6292$rm conftest* 6293 6294ac_outfile=conftest.$ac_objext 6295printf "$lt_simple_link_test_code" >conftest.$ac_ext 6296eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6297_lt_linker_boilerplate=`cat conftest.err` 6298$rm conftest* 6299 6300 6301 6302lt_prog_compiler_no_builtin_flag= 6303 6304if test "$GCC" = yes; then 6305 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6306 6307 6308echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6309echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6310if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6311 echo $ECHO_N "(cached) $ECHO_C" >&6 6312else 6313 lt_cv_prog_compiler_rtti_exceptions=no 6314 ac_outfile=conftest.$ac_objext 6315 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6316 lt_compiler_flag="-fno-rtti -fno-exceptions" 6317 # Insert the option either (1) after the last *FLAGS variable, or 6318 # (2) before a word containing "conftest.", or (3) at the end. 6319 # Note that $ac_compile itself does not contain backslashes and begins 6320 # with a dollar sign (not a hyphen), so the echo should work correctly. 6321 # The option is referenced via a variable to avoid confusing sed. 6322 lt_compile=`echo "$ac_compile" | $SED \ 6323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6325 -e 's:$: $lt_compiler_flag:'` 6326 (eval echo "\"\$as_me:6326: $lt_compile\"" >&5) 6327 (eval "$lt_compile" 2>conftest.err) 6328 ac_status=$? 6329 cat conftest.err >&5 6330 echo "$as_me:6330: \$? = $ac_status" >&5 6331 if (exit $ac_status) && test -s "$ac_outfile"; then 6332 # The compiler can only warn and ignore the option if not recognized 6333 # So say no if there are warnings other than the usual output. 6334 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6337 lt_cv_prog_compiler_rtti_exceptions=yes 6338 fi 6339 fi 6340 $rm conftest* 6341 6342fi 6343echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6344echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6345 6346if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6347 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6348else 6349 : 6350fi 6351 6352fi 6353 6354lt_prog_compiler_wl= 6355lt_prog_compiler_pic= 6356lt_prog_compiler_static= 6357 6358echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6359echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6360 6361 if test "$GCC" = yes; then 6362 lt_prog_compiler_wl='-Wl,' 6363 lt_prog_compiler_static='-static' 6364 6365 case $host_os in 6366 aix*) 6367 # All AIX code is PIC. 6368 if test "$host_cpu" = ia64; then 6369 # AIX 5 now supports IA64 processor 6370 lt_prog_compiler_static='-Bstatic' 6371 fi 6372 ;; 6373 6374 amigaos*) 6375 # FIXME: we need at least 68020 code to build shared libraries, but 6376 # adding the `-m68020' flag to GCC prevents building anything better, 6377 # like `-m68040'. 6378 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6379 ;; 6380 6381 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6382 # PIC is the default for these OSes. 6383 ;; 6384 6385 mingw* | pw32* | os2*) 6386 # This hack is so that the source file can tell whether it is being 6387 # built for inclusion in a dll (and should export symbols for example). 6388 lt_prog_compiler_pic='-DDLL_EXPORT' 6389 ;; 6390 6391 darwin* | rhapsody*) 6392 # PIC is the default on this platform 6393 # Common symbols not allowed in MH_DYLIB files 6394 lt_prog_compiler_pic='-fno-common' 6395 ;; 6396 6397 interix3*) 6398 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6399 # Instead, we relocate shared libraries at runtime. 6400 ;; 6401 6402 msdosdjgpp*) 6403 # Just because we use GCC doesn't mean we suddenly get shared libraries 6404 # on systems that don't support them. 6405 lt_prog_compiler_can_build_shared=no 6406 enable_shared=no 6407 ;; 6408 6409 sysv4*MP*) 6410 if test -d /usr/nec; then 6411 lt_prog_compiler_pic=-Kconform_pic 6412 fi 6413 ;; 6414 6415 hpux*) 6416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6417 # not for PA HP-UX. 6418 case $host_cpu in 6419 hppa*64*|ia64*) 6420 # +Z the default 6421 ;; 6422 *) 6423 lt_prog_compiler_pic='-fPIC' 6424 ;; 6425 esac 6426 ;; 6427 6428 *) 6429 lt_prog_compiler_pic='-fPIC' 6430 ;; 6431 esac 6432 else 6433 # PORTME Check for flag to pass linker flags through the system compiler. 6434 case $host_os in 6435 aix*) 6436 lt_prog_compiler_wl='-Wl,' 6437 if test "$host_cpu" = ia64; then 6438 # AIX 5 now supports IA64 processor 6439 lt_prog_compiler_static='-Bstatic' 6440 else 6441 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6442 fi 6443 ;; 6444 darwin*) 6445 # PIC is the default on this platform 6446 # Common symbols not allowed in MH_DYLIB files 6447 case $cc_basename in 6448 xlc*) 6449 lt_prog_compiler_pic='-qnocommon' 6450 lt_prog_compiler_wl='-Wl,' 6451 ;; 6452 esac 6453 ;; 6454 6455 mingw* | pw32* | os2*) 6456 # This hack is so that the source file can tell whether it is being 6457 # built for inclusion in a dll (and should export symbols for example). 6458 lt_prog_compiler_pic='-DDLL_EXPORT' 6459 ;; 6460 6461 hpux9* | hpux10* | hpux11*) 6462 lt_prog_compiler_wl='-Wl,' 6463 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6464 # not for PA HP-UX. 6465 case $host_cpu in 6466 hppa*64*|ia64*) 6467 # +Z the default 6468 ;; 6469 *) 6470 lt_prog_compiler_pic='+Z' 6471 ;; 6472 esac 6473 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6474 lt_prog_compiler_static='${wl}-a ${wl}archive' 6475 ;; 6476 6477 irix5* | irix6* | nonstopux*) 6478 lt_prog_compiler_wl='-Wl,' 6479 # PIC (with -KPIC) is the default. 6480 lt_prog_compiler_static='-non_shared' 6481 ;; 6482 6483 newsos6) 6484 lt_prog_compiler_pic='-KPIC' 6485 lt_prog_compiler_static='-Bstatic' 6486 ;; 6487 6488 linux*) 6489 case $cc_basename in 6490 icc* | ecc*) 6491 lt_prog_compiler_wl='-Wl,' 6492 lt_prog_compiler_pic='-KPIC' 6493 lt_prog_compiler_static='-static' 6494 ;; 6495 pgcc* | pgf77* | pgf90* | pgf95*) 6496 # Portland Group compilers (*not* the Pentium gcc compiler, 6497 # which looks to be a dead project) 6498 lt_prog_compiler_wl='-Wl,' 6499 lt_prog_compiler_pic='-fpic' 6500 lt_prog_compiler_static='-Bstatic' 6501 ;; 6502 ccc*) 6503 lt_prog_compiler_wl='-Wl,' 6504 # All Alpha code is PIC. 6505 lt_prog_compiler_static='-non_shared' 6506 ;; 6507 esac 6508 ;; 6509 6510 osf3* | osf4* | osf5*) 6511 lt_prog_compiler_wl='-Wl,' 6512 # All OSF/1 code is PIC. 6513 lt_prog_compiler_static='-non_shared' 6514 ;; 6515 6516 solaris*) 6517 lt_prog_compiler_pic='-KPIC' 6518 lt_prog_compiler_static='-Bstatic' 6519 case $cc_basename in 6520 f77* | f90* | f95*) 6521 lt_prog_compiler_wl='-Qoption ld ';; 6522 *) 6523 lt_prog_compiler_wl='-Wl,';; 6524 esac 6525 ;; 6526 6527 sunos4*) 6528 lt_prog_compiler_wl='-Qoption ld ' 6529 lt_prog_compiler_pic='-PIC' 6530 lt_prog_compiler_static='-Bstatic' 6531 ;; 6532 6533 sysv4 | sysv4.2uw2* | sysv4.3*) 6534 lt_prog_compiler_wl='-Wl,' 6535 lt_prog_compiler_pic='-KPIC' 6536 lt_prog_compiler_static='-Bstatic' 6537 ;; 6538 6539 sysv4*MP*) 6540 if test -d /usr/nec ;then 6541 lt_prog_compiler_pic='-Kconform_pic' 6542 lt_prog_compiler_static='-Bstatic' 6543 fi 6544 ;; 6545 6546 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6547 lt_prog_compiler_wl='-Wl,' 6548 lt_prog_compiler_pic='-KPIC' 6549 lt_prog_compiler_static='-Bstatic' 6550 ;; 6551 6552 unicos*) 6553 lt_prog_compiler_wl='-Wl,' 6554 lt_prog_compiler_can_build_shared=no 6555 ;; 6556 6557 uts4*) 6558 lt_prog_compiler_pic='-pic' 6559 lt_prog_compiler_static='-Bstatic' 6560 ;; 6561 6562 *) 6563 lt_prog_compiler_can_build_shared=no 6564 ;; 6565 esac 6566 fi 6567 6568echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6569echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6570 6571# 6572# Check to make sure the PIC flag actually works. 6573# 6574if test -n "$lt_prog_compiler_pic"; then 6575 6576echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6577echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6578if test "${lt_prog_compiler_pic_works+set}" = set; then 6579 echo $ECHO_N "(cached) $ECHO_C" >&6 6580else 6581 lt_prog_compiler_pic_works=no 6582 ac_outfile=conftest.$ac_objext 6583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6584 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6585 # Insert the option either (1) after the last *FLAGS variable, or 6586 # (2) before a word containing "conftest.", or (3) at the end. 6587 # Note that $ac_compile itself does not contain backslashes and begins 6588 # with a dollar sign (not a hyphen), so the echo should work correctly. 6589 # The option is referenced via a variable to avoid confusing sed. 6590 lt_compile=`echo "$ac_compile" | $SED \ 6591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6593 -e 's:$: $lt_compiler_flag:'` 6594 (eval echo "\"\$as_me:6594: $lt_compile\"" >&5) 6595 (eval "$lt_compile" 2>conftest.err) 6596 ac_status=$? 6597 cat conftest.err >&5 6598 echo "$as_me:6598: \$? = $ac_status" >&5 6599 if (exit $ac_status) && test -s "$ac_outfile"; then 6600 # The compiler can only warn and ignore the option if not recognized 6601 # So say no if there are warnings other than the usual output. 6602 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6605 lt_prog_compiler_pic_works=yes 6606 fi 6607 fi 6608 $rm conftest* 6609 6610fi 6611echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6612echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6613 6614if test x"$lt_prog_compiler_pic_works" = xyes; then 6615 case $lt_prog_compiler_pic in 6616 "" | " "*) ;; 6617 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6618 esac 6619else 6620 lt_prog_compiler_pic= 6621 lt_prog_compiler_can_build_shared=no 6622fi 6623 6624fi 6625case $host_os in 6626 # For platforms which do not support PIC, -DPIC is meaningless: 6627 *djgpp*) 6628 lt_prog_compiler_pic= 6629 ;; 6630 *) 6631 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6632 ;; 6633esac 6634 6635# 6636# Check to make sure the static flag actually works. 6637# 6638wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6639echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6640echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6641if test "${lt_prog_compiler_static_works+set}" = set; then 6642 echo $ECHO_N "(cached) $ECHO_C" >&6 6643else 6644 lt_prog_compiler_static_works=no 6645 save_LDFLAGS="$LDFLAGS" 6646 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6647 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6648 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6649 # The linker can only warn and ignore the option if not recognized 6650 # So say no if there are warnings 6651 if test -s conftest.err; then 6652 # Append any errors to the config.log. 6653 cat conftest.err 1>&5 6654 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6656 if diff conftest.exp conftest.er2 >/dev/null; then 6657 lt_prog_compiler_static_works=yes 6658 fi 6659 else 6660 lt_prog_compiler_static_works=yes 6661 fi 6662 fi 6663 $rm conftest* 6664 LDFLAGS="$save_LDFLAGS" 6665 6666fi 6667echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6668echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6669 6670if test x"$lt_prog_compiler_static_works" = xyes; then 6671 : 6672else 6673 lt_prog_compiler_static= 6674fi 6675 6676 6677echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6678echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6679if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6680 echo $ECHO_N "(cached) $ECHO_C" >&6 6681else 6682 lt_cv_prog_compiler_c_o=no 6683 $rm -r conftest 2>/dev/null 6684 mkdir conftest 6685 cd conftest 6686 mkdir out 6687 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6688 6689 lt_compiler_flag="-o out/conftest2.$ac_objext" 6690 # Insert the option either (1) after the last *FLAGS variable, or 6691 # (2) before a word containing "conftest.", or (3) at the end. 6692 # Note that $ac_compile itself does not contain backslashes and begins 6693 # with a dollar sign (not a hyphen), so the echo should work correctly. 6694 lt_compile=`echo "$ac_compile" | $SED \ 6695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6697 -e 's:$: $lt_compiler_flag:'` 6698 (eval echo "\"\$as_me:6698: $lt_compile\"" >&5) 6699 (eval "$lt_compile" 2>out/conftest.err) 6700 ac_status=$? 6701 cat out/conftest.err >&5 6702 echo "$as_me:6702: \$? = $ac_status" >&5 6703 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6704 then 6705 # The compiler can only warn and ignore the option if not recognized 6706 # So say no if there are warnings 6707 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6710 lt_cv_prog_compiler_c_o=yes 6711 fi 6712 fi 6713 chmod u+w . 2>&5 6714 $rm conftest* 6715 # SGI C++ compiler will create directory out/ii_files/ for 6716 # template instantiation 6717 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6718 $rm out/* && rmdir out 6719 cd .. 6720 rmdir conftest 6721 $rm conftest* 6722 6723fi 6724echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6725echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6726 6727 6728hard_links="nottested" 6729if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6730 # do not overwrite the value of need_locks provided by the user 6731 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6732echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6733 hard_links=yes 6734 $rm conftest* 6735 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6736 touch conftest.a 6737 ln conftest.a conftest.b 2>&5 || hard_links=no 6738 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6739 echo "$as_me:$LINENO: result: $hard_links" >&5 6740echo "${ECHO_T}$hard_links" >&6 6741 if test "$hard_links" = no; then 6742 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6743echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6744 need_locks=warn 6745 fi 6746else 6747 need_locks=no 6748fi 6749 6750echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6751echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6752 6753 runpath_var= 6754 allow_undefined_flag= 6755 enable_shared_with_static_runtimes=no 6756 archive_cmds= 6757 archive_expsym_cmds= 6758 old_archive_From_new_cmds= 6759 old_archive_from_expsyms_cmds= 6760 export_dynamic_flag_spec= 6761 whole_archive_flag_spec= 6762 thread_safe_flag_spec= 6763 hardcode_libdir_flag_spec= 6764 hardcode_libdir_flag_spec_ld= 6765 hardcode_libdir_separator= 6766 hardcode_direct=no 6767 hardcode_minus_L=no 6768 hardcode_shlibpath_var=unsupported 6769 link_all_deplibs=unknown 6770 hardcode_automatic=no 6771 module_cmds= 6772 module_expsym_cmds= 6773 always_export_symbols=no 6774 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6775 # include_expsyms should be a list of space-separated symbols to be *always* 6776 # included in the symbol list 6777 include_expsyms= 6778 # exclude_expsyms can be an extended regexp of symbols to exclude 6779 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6780 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6781 # as well as any symbol that contains `d'. 6782 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6783 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6784 # platforms (ab)use it in PIC code, but their linkers get confused if 6785 # the symbol is explicitly referenced. Since portable code cannot 6786 # rely on this symbol name, it's probably fine to never include it in 6787 # preloaded symbol tables. 6788 extract_expsyms_cmds= 6789 # Just being paranoid about ensuring that cc_basename is set. 6790 for cc_temp in $compiler""; do 6791 case $cc_temp in 6792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6794 \-*) ;; 6795 *) break;; 6796 esac 6797done 6798cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6799 6800 case $host_os in 6801 cygwin* | mingw* | pw32*) 6802 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6803 # When not using gcc, we currently assume that we are using 6804 # Microsoft Visual C++. 6805 if test "$GCC" != yes; then 6806 with_gnu_ld=no 6807 fi 6808 ;; 6809 interix*) 6810 # we just hope/assume this is gcc and not c89 (= MSVC++) 6811 with_gnu_ld=yes 6812 ;; 6813 openbsd*) 6814 with_gnu_ld=no 6815 ;; 6816 esac 6817 6818 ld_shlibs=yes 6819 if test "$with_gnu_ld" = yes; then 6820 # If archive_cmds runs LD, not CC, wlarc should be empty 6821 wlarc='${wl}' 6822 6823 # Set some defaults for GNU ld with shared library support. These 6824 # are reset later if shared libraries are not supported. Putting them 6825 # here allows them to be overridden if necessary. 6826 runpath_var=LD_RUN_PATH 6827 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6828 export_dynamic_flag_spec='${wl}--export-dynamic' 6829 # ancient GNU ld didn't support --whole-archive et. al. 6830 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6831 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6832 else 6833 whole_archive_flag_spec= 6834 fi 6835 supports_anon_versioning=no 6836 case `$LD -v 2>/dev/null` in 6837 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6838 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6839 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6840 *\ 2.11.*) ;; # other 2.11 versions 6841 *) supports_anon_versioning=yes ;; 6842 esac 6843 6844 # See if GNU ld supports shared libraries. 6845 case $host_os in 6846 aix3* | aix4* | aix5*) 6847 # On AIX/PPC, the GNU linker is very broken 6848 if test "$host_cpu" != ia64; then 6849 ld_shlibs=no 6850 cat <<EOF 1>&2 6851 6852*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6853*** to be unable to reliably create shared libraries on AIX. 6854*** Therefore, libtool is disabling shared libraries support. If you 6855*** really care for shared libraries, you may want to modify your PATH 6856*** so that a non-GNU linker is found, and then restart. 6857 6858EOF 6859 fi 6860 ;; 6861 6862 amigaos*) 6863 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)' 6864 hardcode_libdir_flag_spec='-L$libdir' 6865 hardcode_minus_L=yes 6866 6867 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6868 # that the semantics of dynamic libraries on AmigaOS, at least up 6869 # to version 4, is to share data among multiple programs linked 6870 # with the same dynamic library. Since this doesn't match the 6871 # behavior of shared libraries on other platforms, we can't use 6872 # them. 6873 ld_shlibs=no 6874 ;; 6875 6876 beos*) 6877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6878 allow_undefined_flag=unsupported 6879 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6880 # support --undefined. This deserves some investigation. FIXME 6881 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6882 else 6883 ld_shlibs=no 6884 fi 6885 ;; 6886 6887 cygwin* | mingw* | pw32*) 6888 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6889 # as there is no search path for DLLs. 6890 hardcode_libdir_flag_spec='-L$libdir' 6891 allow_undefined_flag=unsupported 6892 always_export_symbols=no 6893 enable_shared_with_static_runtimes=yes 6894 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6895 6896 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6898 # If the export-symbols file already is a .def file (1st line 6899 # is EXPORTS), use it as is; otherwise, prepend... 6900 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6901 cp $export_symbols $output_objdir/$soname.def; 6902 else 6903 echo EXPORTS > $output_objdir/$soname.def; 6904 cat $export_symbols >> $output_objdir/$soname.def; 6905 fi~ 6906 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6907 else 6908 ld_shlibs=no 6909 fi 6910 ;; 6911 6912 interix3*) 6913 hardcode_direct=no 6914 hardcode_shlibpath_var=no 6915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6916 export_dynamic_flag_spec='${wl}-E' 6917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6918 # Instead, shared libraries are loaded at an image base (0x10000000 by 6919 # default) and relocated if they conflict, which is a slow very memory 6920 # consuming and fragmenting process. To avoid this, we pick a random, 6921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6922 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6924 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' 6925 ;; 6926 6927 linux*) 6928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6929 tmp_addflag= 6930 case $cc_basename,$host_cpu in 6931 pgcc*) # Portland Group C compiler 6932 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' 6933 tmp_addflag=' $pic_flag' 6934 ;; 6935 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6936 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' 6937 tmp_addflag=' $pic_flag -Mnomain' ;; 6938 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6939 tmp_addflag=' -i_dynamic' ;; 6940 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6941 tmp_addflag=' -i_dynamic -nofor_main' ;; 6942 ifc* | ifort*) # Intel Fortran compiler 6943 tmp_addflag=' -nofor_main' ;; 6944 esac 6945 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6946 6947 if test $supports_anon_versioning = yes; then 6948 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6949 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6950 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6951 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6952 fi 6953 else 6954 ld_shlibs=no 6955 fi 6956 ;; 6957 6958 netbsd*) 6959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6961 wlarc= 6962 else 6963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6965 fi 6966 ;; 6967 6968 solaris*) 6969 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6970 ld_shlibs=no 6971 cat <<EOF 1>&2 6972 6973*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6974*** create shared libraries on Solaris systems. Therefore, libtool 6975*** is disabling shared libraries support. We urge you to upgrade GNU 6976*** binutils to release 2.9.1 or newer. Another option is to modify 6977*** your PATH or compiler configuration so that the native linker is 6978*** used, and then restart. 6979 6980EOF 6981 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6984 else 6985 ld_shlibs=no 6986 fi 6987 ;; 6988 6989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6990 case `$LD -v 2>&1` in 6991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 6992 ld_shlibs=no 6993 cat <<_LT_EOF 1>&2 6994 6995*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6996*** reliably create shared libraries on SCO systems. Therefore, libtool 6997*** is disabling shared libraries support. We urge you to upgrade GNU 6998*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6999*** your PATH or compiler configuration so that the native linker is 7000*** used, and then restart. 7001 7002_LT_EOF 7003 ;; 7004 *) 7005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7006 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7009 else 7010 ld_shlibs=no 7011 fi 7012 ;; 7013 esac 7014 ;; 7015 7016 sunos4*) 7017 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7018 wlarc= 7019 hardcode_direct=yes 7020 hardcode_shlibpath_var=no 7021 ;; 7022 7023 *) 7024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7027 else 7028 ld_shlibs=no 7029 fi 7030 ;; 7031 esac 7032 7033 if test "$ld_shlibs" = no; then 7034 runpath_var= 7035 hardcode_libdir_flag_spec= 7036 export_dynamic_flag_spec= 7037 whole_archive_flag_spec= 7038 fi 7039 else 7040 # PORTME fill in a description of your system's linker (not GNU ld) 7041 case $host_os in 7042 aix3*) 7043 allow_undefined_flag=unsupported 7044 always_export_symbols=yes 7045 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' 7046 # Note: this linker hardcodes the directories in LIBPATH if there 7047 # are no directories specified by -L. 7048 hardcode_minus_L=yes 7049 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7050 # Neither direct hardcoding nor static linking is supported with a 7051 # broken collect2. 7052 hardcode_direct=unsupported 7053 fi 7054 ;; 7055 7056 aix4* | aix5*) 7057 if test "$host_cpu" = ia64; then 7058 # On IA64, the linker does run time linking by default, so we don't 7059 # have to do anything special. 7060 aix_use_runtimelinking=no 7061 exp_sym_flag='-Bexport' 7062 no_entry_flag="" 7063 else 7064 # If we're using GNU nm, then we don't want the "-C" option. 7065 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7066 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7067 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' 7068 else 7069 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' 7070 fi 7071 aix_use_runtimelinking=no 7072 7073 # Test if we are trying to use run time linking or normal 7074 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7075 # need to do runtime linking. 7076 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7077 for ld_flag in $LDFLAGS; do 7078 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7079 aix_use_runtimelinking=yes 7080 break 7081 fi 7082 done 7083 ;; 7084 esac 7085 7086 exp_sym_flag='-bexport' 7087 no_entry_flag='-bnoentry' 7088 fi 7089 7090 # When large executables or shared objects are built, AIX ld can 7091 # have problems creating the table of contents. If linking a library 7092 # or program results in "error TOC overflow" add -mminimal-toc to 7093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7095 7096 archive_cmds='' 7097 hardcode_direct=yes 7098 hardcode_libdir_separator=':' 7099 link_all_deplibs=yes 7100 7101 if test "$GCC" = yes; then 7102 case $host_os in aix4.[012]|aix4.[012].*) 7103 # We only want to do this on AIX 4.2 and lower, the check 7104 # below for broken collect2 doesn't work under 4.3+ 7105 collect2name=`${CC} -print-prog-name=collect2` 7106 if test -f "$collect2name" && \ 7107 strings "$collect2name" | grep resolve_lib_name >/dev/null 7108 then 7109 # We have reworked collect2 7110 hardcode_direct=yes 7111 else 7112 # We have old collect2 7113 hardcode_direct=unsupported 7114 # It fails to find uninstalled libraries when the uninstalled 7115 # path is not listed in the libpath. Setting hardcode_minus_L 7116 # to unsupported forces relinking 7117 hardcode_minus_L=yes 7118 hardcode_libdir_flag_spec='-L$libdir' 7119 hardcode_libdir_separator= 7120 fi 7121 ;; 7122 esac 7123 shared_flag='-shared' 7124 if test "$aix_use_runtimelinking" = yes; then 7125 shared_flag="$shared_flag "'${wl}-G' 7126 fi 7127 else 7128 # not using gcc 7129 if test "$host_cpu" = ia64; then 7130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7131 # chokes on -Wl,-G. The following line is correct: 7132 shared_flag='-G' 7133 else 7134 if test "$aix_use_runtimelinking" = yes; then 7135 shared_flag='${wl}-G' 7136 else 7137 shared_flag='${wl}-bM:SRE' 7138 fi 7139 fi 7140 fi 7141 7142 # It seems that -bexpall does not export symbols beginning with 7143 # underscore (_), so it is better to generate a list of symbols to export. 7144 always_export_symbols=yes 7145 if test "$aix_use_runtimelinking" = yes; then 7146 # Warning - without using the other runtime loading flags (-brtl), 7147 # -berok will link without error, but may produce a broken library. 7148 allow_undefined_flag='-berok' 7149 # Determine the default libpath from the value encoded in an empty executable. 7150 cat >conftest.$ac_ext <<_ACEOF 7151/* confdefs.h. */ 7152_ACEOF 7153cat confdefs.h >>conftest.$ac_ext 7154cat >>conftest.$ac_ext <<_ACEOF 7155/* end confdefs.h. */ 7156 7157int 7158main () 7159{ 7160 7161 ; 7162 return 0; 7163} 7164_ACEOF 7165rm -f conftest.$ac_objext conftest$ac_exeext 7166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7167 (eval $ac_link) 2>conftest.er1 7168 ac_status=$? 7169 grep -v '^ *+' conftest.er1 >conftest.err 7170 rm -f conftest.er1 7171 cat conftest.err >&5 7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7173 (exit $ac_status); } && 7174 { ac_try='test -z "$ac_c_werror_flag" 7175 || test ! -s conftest.err' 7176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7177 (eval $ac_try) 2>&5 7178 ac_status=$? 7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7180 (exit $ac_status); }; } && 7181 { ac_try='test -s conftest$ac_exeext' 7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7183 (eval $ac_try) 2>&5 7184 ac_status=$? 7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7186 (exit $ac_status); }; }; then 7187 7188aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7189}'` 7190# Check for a 64-bit object if we didn't find anything. 7191if 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; } 7192}'`; fi 7193else 7194 echo "$as_me: failed program was:" >&5 7195sed 's/^/| /' conftest.$ac_ext >&5 7196 7197fi 7198rm -f conftest.err conftest.$ac_objext \ 7199 conftest$ac_exeext conftest.$ac_ext 7200if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7201 7202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7203 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" 7204 else 7205 if test "$host_cpu" = ia64; then 7206 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7207 allow_undefined_flag="-z nodefs" 7208 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" 7209 else 7210 # Determine the default libpath from the value encoded in an empty executable. 7211 cat >conftest.$ac_ext <<_ACEOF 7212/* confdefs.h. */ 7213_ACEOF 7214cat confdefs.h >>conftest.$ac_ext 7215cat >>conftest.$ac_ext <<_ACEOF 7216/* end confdefs.h. */ 7217 7218int 7219main () 7220{ 7221 7222 ; 7223 return 0; 7224} 7225_ACEOF 7226rm -f conftest.$ac_objext conftest$ac_exeext 7227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7228 (eval $ac_link) 2>conftest.er1 7229 ac_status=$? 7230 grep -v '^ *+' conftest.er1 >conftest.err 7231 rm -f conftest.er1 7232 cat conftest.err >&5 7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7234 (exit $ac_status); } && 7235 { ac_try='test -z "$ac_c_werror_flag" 7236 || test ! -s conftest.err' 7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7238 (eval $ac_try) 2>&5 7239 ac_status=$? 7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7241 (exit $ac_status); }; } && 7242 { ac_try='test -s conftest$ac_exeext' 7243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7244 (eval $ac_try) 2>&5 7245 ac_status=$? 7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7247 (exit $ac_status); }; }; then 7248 7249aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7250}'` 7251# Check for a 64-bit object if we didn't find anything. 7252if 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; } 7253}'`; fi 7254else 7255 echo "$as_me: failed program was:" >&5 7256sed 's/^/| /' conftest.$ac_ext >&5 7257 7258fi 7259rm -f conftest.err conftest.$ac_objext \ 7260 conftest$ac_exeext conftest.$ac_ext 7261if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7262 7263 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7264 # Warning - without using the other run time loading flags, 7265 # -berok will link without error, but may produce a broken library. 7266 no_undefined_flag=' ${wl}-bernotok' 7267 allow_undefined_flag=' ${wl}-berok' 7268 # Exported symbols can be pulled into shared objects from archives 7269 whole_archive_flag_spec='$convenience' 7270 archive_cmds_need_lc=yes 7271 # This is similar to how AIX traditionally builds its shared libraries. 7272 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' 7273 fi 7274 fi 7275 ;; 7276 7277 amigaos*) 7278 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)' 7279 hardcode_libdir_flag_spec='-L$libdir' 7280 hardcode_minus_L=yes 7281 # see comment about different semantics on the GNU ld section 7282 ld_shlibs=no 7283 ;; 7284 7285 bsdi[45]*) 7286 export_dynamic_flag_spec=-rdynamic 7287 ;; 7288 7289 cygwin* | mingw* | pw32*) 7290 # When not using gcc, we currently assume that we are using 7291 # Microsoft Visual C++. 7292 # hardcode_libdir_flag_spec is actually meaningless, as there is 7293 # no search path for DLLs. 7294 hardcode_libdir_flag_spec=' ' 7295 allow_undefined_flag=unsupported 7296 # Tell ltmain to make .lib files, not .a files. 7297 libext=lib 7298 # Tell ltmain to make .dll files, not .so files. 7299 shrext_cmds=".dll" 7300 # FIXME: Setting linknames here is a bad hack. 7301 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7302 # The linker will automatically build a .lib file if we build a DLL. 7303 old_archive_From_new_cmds='true' 7304 # FIXME: Should let the user specify the lib program. 7305 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7306 fix_srcfile_path='`cygpath -w "$srcfile"`' 7307 enable_shared_with_static_runtimes=yes 7308 ;; 7309 7310 darwin* | rhapsody*) 7311 case $host_os in 7312 rhapsody* | darwin1.[012]) 7313 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7314 ;; 7315 *) # Darwin 1.3 on 7316 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7317 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7318 else 7319 case ${MACOSX_DEPLOYMENT_TARGET} in 7320 10.[012]) 7321 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7322 ;; 7323 10.*) 7324 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7325 ;; 7326 esac 7327 fi 7328 ;; 7329 esac 7330 archive_cmds_need_lc=no 7331 hardcode_direct=no 7332 hardcode_automatic=yes 7333 hardcode_shlibpath_var=unsupported 7334 whole_archive_flag_spec='' 7335 link_all_deplibs=yes 7336 if test "$GCC" = yes ; then 7337 output_verbose_link_cmd='echo' 7338 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7339 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7340 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7341 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}' 7342 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}' 7343 else 7344 case $cc_basename in 7345 xlc*) 7346 output_verbose_link_cmd='echo' 7347 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7348 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7349 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7350 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}' 7351 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}' 7352 ;; 7353 *) 7354 ld_shlibs=no 7355 ;; 7356 esac 7357 fi 7358 ;; 7359 7360 dgux*) 7361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7362 hardcode_libdir_flag_spec='-L$libdir' 7363 hardcode_shlibpath_var=no 7364 ;; 7365 7366 freebsd1*) 7367 ld_shlibs=no 7368 ;; 7369 7370 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7371 # support. Future versions do this automatically, but an explicit c++rt0.o 7372 # does not break anything, and helps significantly (at the cost of a little 7373 # extra space). 7374 freebsd2.2*) 7375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7376 hardcode_libdir_flag_spec='-R$libdir' 7377 hardcode_direct=yes 7378 hardcode_shlibpath_var=no 7379 ;; 7380 7381 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7382 freebsd2*) 7383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7384 hardcode_direct=yes 7385 hardcode_minus_L=yes 7386 hardcode_shlibpath_var=no 7387 ;; 7388 7389 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7390 freebsd* | kfreebsd*-gnu | dragonfly*) 7391 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7392 hardcode_libdir_flag_spec='-R$libdir' 7393 hardcode_direct=yes 7394 hardcode_shlibpath_var=no 7395 ;; 7396 7397 hpux9*) 7398 if test "$GCC" = yes; then 7399 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' 7400 else 7401 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' 7402 fi 7403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7404 hardcode_libdir_separator=: 7405 hardcode_direct=yes 7406 7407 # hardcode_minus_L: Not really in the search PATH, 7408 # but as the default location of the library. 7409 hardcode_minus_L=yes 7410 export_dynamic_flag_spec='${wl}-E' 7411 ;; 7412 7413 hpux10*) 7414 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7415 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7416 else 7417 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7418 fi 7419 if test "$with_gnu_ld" = no; then 7420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7421 hardcode_libdir_separator=: 7422 7423 hardcode_direct=yes 7424 export_dynamic_flag_spec='${wl}-E' 7425 7426 # hardcode_minus_L: Not really in the search PATH, 7427 # but as the default location of the library. 7428 hardcode_minus_L=yes 7429 fi 7430 ;; 7431 7432 hpux11*) 7433 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7434 case $host_cpu in 7435 hppa*64*) 7436 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7437 ;; 7438 ia64*) 7439 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7440 ;; 7441 *) 7442 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7443 ;; 7444 esac 7445 else 7446 case $host_cpu in 7447 hppa*64*) 7448 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7449 ;; 7450 ia64*) 7451 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7452 ;; 7453 *) 7454 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7455 ;; 7456 esac 7457 fi 7458 if test "$with_gnu_ld" = no; then 7459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7460 hardcode_libdir_separator=: 7461 7462 case $host_cpu in 7463 hppa*64*|ia64*) 7464 hardcode_libdir_flag_spec_ld='+b $libdir' 7465 hardcode_direct=no 7466 hardcode_shlibpath_var=no 7467 ;; 7468 *) 7469 hardcode_direct=yes 7470 export_dynamic_flag_spec='${wl}-E' 7471 7472 # hardcode_minus_L: Not really in the search PATH, 7473 # but as the default location of the library. 7474 hardcode_minus_L=yes 7475 ;; 7476 esac 7477 fi 7478 ;; 7479 7480 irix5* | irix6* | nonstopux*) 7481 if test "$GCC" = yes; then 7482 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' 7483 else 7484 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' 7485 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7486 fi 7487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7488 hardcode_libdir_separator=: 7489 link_all_deplibs=yes 7490 ;; 7491 7492 netbsd*) 7493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7495 else 7496 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7497 fi 7498 hardcode_libdir_flag_spec='-R$libdir' 7499 hardcode_direct=yes 7500 hardcode_shlibpath_var=no 7501 ;; 7502 7503 newsos6) 7504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7505 hardcode_direct=yes 7506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7507 hardcode_libdir_separator=: 7508 hardcode_shlibpath_var=no 7509 ;; 7510 7511 openbsd*) 7512 hardcode_direct=yes 7513 hardcode_shlibpath_var=no 7514 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7516 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7517 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7518 export_dynamic_flag_spec='${wl}-E' 7519 else 7520 case $host_os in 7521 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7523 hardcode_libdir_flag_spec='-R$libdir' 7524 ;; 7525 *) 7526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7528 ;; 7529 esac 7530 fi 7531 ;; 7532 7533 os2*) 7534 hardcode_libdir_flag_spec='-L$libdir' 7535 hardcode_minus_L=yes 7536 allow_undefined_flag=unsupported 7537 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' 7538 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7539 ;; 7540 7541 osf3*) 7542 if test "$GCC" = yes; then 7543 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7544 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' 7545 else 7546 allow_undefined_flag=' -expect_unresolved \*' 7547 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' 7548 fi 7549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7550 hardcode_libdir_separator=: 7551 ;; 7552 7553 osf4* | osf5*) # as osf3* with the addition of -msym flag 7554 if test "$GCC" = yes; then 7555 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7556 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' 7557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7558 else 7559 allow_undefined_flag=' -expect_unresolved \*' 7560 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' 7561 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7562 $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' 7563 7564 # Both c and cxx compiler support -rpath directly 7565 hardcode_libdir_flag_spec='-rpath $libdir' 7566 fi 7567 hardcode_libdir_separator=: 7568 ;; 7569 7570 solaris*) 7571 no_undefined_flag=' -z text' 7572 if test "$GCC" = yes; then 7573 wlarc='${wl}' 7574 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7575 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7576 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7577 else 7578 wlarc='' 7579 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7580 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7581 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7582 fi 7583 hardcode_libdir_flag_spec='-R$libdir' 7584 hardcode_shlibpath_var=no 7585 case $host_os in 7586 solaris2.[0-5] | solaris2.[0-5].*) ;; 7587 *) 7588 # The compiler driver will combine linker options so we 7589 # cannot just pass the convience library names through 7590 # without $wl, iff we do not link with $LD. 7591 # Luckily, gcc supports the same syntax we need for Sun Studio. 7592 # Supported since Solaris 2.6 (maybe 2.5.1?) 7593 case $wlarc in 7594 '') 7595 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7596 *) 7597 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' ;; 7598 esac ;; 7599 esac 7600 link_all_deplibs=yes 7601 ;; 7602 7603 sunos4*) 7604 if test "x$host_vendor" = xsequent; then 7605 # Use $CC to link under sequent, because it throws in some extra .o 7606 # files that make .init and .fini sections work. 7607 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7608 else 7609 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7610 fi 7611 hardcode_libdir_flag_spec='-L$libdir' 7612 hardcode_direct=yes 7613 hardcode_minus_L=yes 7614 hardcode_shlibpath_var=no 7615 ;; 7616 7617 sysv4) 7618 case $host_vendor in 7619 sni) 7620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7621 hardcode_direct=yes # is this really true??? 7622 ;; 7623 siemens) 7624 ## LD is ld it makes a PLAMLIB 7625 ## CC just makes a GrossModule. 7626 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7627 reload_cmds='$CC -r -o $output$reload_objs' 7628 hardcode_direct=no 7629 ;; 7630 motorola) 7631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7632 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7633 ;; 7634 esac 7635 runpath_var='LD_RUN_PATH' 7636 hardcode_shlibpath_var=no 7637 ;; 7638 7639 sysv4.3*) 7640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7641 hardcode_shlibpath_var=no 7642 export_dynamic_flag_spec='-Bexport' 7643 ;; 7644 7645 sysv4*MP*) 7646 if test -d /usr/nec; then 7647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7648 hardcode_shlibpath_var=no 7649 runpath_var=LD_RUN_PATH 7650 hardcode_runpath_var=yes 7651 ld_shlibs=yes 7652 fi 7653 ;; 7654 7655 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7656 no_undefined_flag='${wl}-z,text' 7657 archive_cmds_need_lc=no 7658 hardcode_shlibpath_var=no 7659 runpath_var='LD_RUN_PATH' 7660 7661 if test "$GCC" = yes; then 7662 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7663 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7664 else 7665 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7666 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7667 fi 7668 ;; 7669 7670 sysv5* | sco3.2v5* | sco5v6*) 7671 # Note: We can NOT use -z defs as we might desire, because we do not 7672 # link with -lc, and that would cause any symbols used from libc to 7673 # always be unresolved, which means just about no library would 7674 # ever link correctly. If we're not using GNU ld we use -z text 7675 # though, which does catch some bad symbols but isn't as heavy-handed 7676 # as -z defs. 7677 no_undefined_flag='${wl}-z,text' 7678 allow_undefined_flag='${wl}-z,nodefs' 7679 archive_cmds_need_lc=no 7680 hardcode_shlibpath_var=no 7681 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7682 hardcode_libdir_separator=':' 7683 link_all_deplibs=yes 7684 export_dynamic_flag_spec='${wl}-Bexport' 7685 runpath_var='LD_RUN_PATH' 7686 7687 if test "$GCC" = yes; then 7688 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7689 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7690 else 7691 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7692 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7693 fi 7694 ;; 7695 7696 uts4*) 7697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7698 hardcode_libdir_flag_spec='-L$libdir' 7699 hardcode_shlibpath_var=no 7700 ;; 7701 7702 *) 7703 ld_shlibs=no 7704 ;; 7705 esac 7706 fi 7707 7708echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7709echo "${ECHO_T}$ld_shlibs" >&6 7710test "$ld_shlibs" = no && can_build_shared=no 7711 7712# 7713# Do we need to explicitly link libc? 7714# 7715case "x$archive_cmds_need_lc" in 7716x|xyes) 7717 # Assume -lc should be added 7718 archive_cmds_need_lc=yes 7719 7720 if test "$enable_shared" = yes && test "$GCC" = yes; then 7721 case $archive_cmds in 7722 *'~'*) 7723 # FIXME: we may have to deal with multi-command sequences. 7724 ;; 7725 '$CC '*) 7726 # Test whether the compiler implicitly links with -lc since on some 7727 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7728 # to ld, don't add -lc before -lgcc. 7729 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7730echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7731 $rm conftest* 7732 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7733 7734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7735 (eval $ac_compile) 2>&5 7736 ac_status=$? 7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7738 (exit $ac_status); } 2>conftest.err; then 7739 soname=conftest 7740 lib=conftest 7741 libobjs=conftest.$ac_objext 7742 deplibs= 7743 wl=$lt_prog_compiler_wl 7744 pic_flag=$lt_prog_compiler_pic 7745 compiler_flags=-v 7746 linker_flags=-v 7747 verstring= 7748 output_objdir=. 7749 libname=conftest 7750 lt_save_allow_undefined_flag=$allow_undefined_flag 7751 allow_undefined_flag= 7752 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7753 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7754 ac_status=$? 7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7756 (exit $ac_status); } 7757 then 7758 archive_cmds_need_lc=no 7759 else 7760 archive_cmds_need_lc=yes 7761 fi 7762 allow_undefined_flag=$lt_save_allow_undefined_flag 7763 else 7764 cat conftest.err 1>&5 7765 fi 7766 $rm conftest* 7767 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7768echo "${ECHO_T}$archive_cmds_need_lc" >&6 7769 ;; 7770 esac 7771 fi 7772 ;; 7773esac 7774 7775echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7776echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7777library_names_spec= 7778libname_spec='lib$name' 7779soname_spec= 7780shrext_cmds=".so" 7781postinstall_cmds= 7782postuninstall_cmds= 7783finish_cmds= 7784finish_eval= 7785shlibpath_var= 7786shlibpath_overrides_runpath=unknown 7787version_type=none 7788dynamic_linker="$host_os ld.so" 7789sys_lib_dlsearch_path_spec="/lib /usr/lib" 7790if test "$GCC" = yes; then 7791 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7792 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7793 # if the path contains ";" then we assume it to be the separator 7794 # otherwise default to the standard path separator (i.e. ":") - it is 7795 # assumed that no part of a normal pathname contains ";" but that should 7796 # okay in the real world where ";" in dirpaths is itself problematic. 7797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7798 else 7799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7800 fi 7801else 7802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7803fi 7804need_lib_prefix=unknown 7805hardcode_into_libs=no 7806 7807# when you set need_version to no, make sure it does not cause -set_version 7808# flags to be left without arguments 7809need_version=unknown 7810 7811case $host_os in 7812aix3*) 7813 version_type=linux 7814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7815 shlibpath_var=LIBPATH 7816 7817 # AIX 3 has no versioning support, so we append a major version to the name. 7818 soname_spec='${libname}${release}${shared_ext}$major' 7819 ;; 7820 7821aix4* | aix5*) 7822 version_type=linux 7823 need_lib_prefix=no 7824 need_version=no 7825 hardcode_into_libs=yes 7826 if test "$host_cpu" = ia64; then 7827 # AIX 5 supports IA64 7828 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7829 shlibpath_var=LD_LIBRARY_PATH 7830 else 7831 # With GCC up to 2.95.x, collect2 would create an import file 7832 # for dependence libraries. The import file would start with 7833 # the line `#! .'. This would cause the generated library to 7834 # depend on `.', always an invalid library. This was fixed in 7835 # development snapshots of GCC prior to 3.0. 7836 case $host_os in 7837 aix4 | aix4.[01] | aix4.[01].*) 7838 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7839 echo ' yes ' 7840 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7841 : 7842 else 7843 can_build_shared=no 7844 fi 7845 ;; 7846 esac 7847 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7848 # soname into executable. Probably we can add versioning support to 7849 # collect2, so additional links can be useful in future. 7850 if test "$aix_use_runtimelinking" = yes; then 7851 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7852 # instead of lib<name>.a to let people know that these are not 7853 # typical AIX shared libraries. 7854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7855 else 7856 # We preserve .a as extension for shared libraries through AIX4.2 7857 # and later when we are not doing run time linking. 7858 library_names_spec='${libname}${release}.a $libname.a' 7859 soname_spec='${libname}${release}${shared_ext}$major' 7860 fi 7861 shlibpath_var=LIBPATH 7862 fi 7863 ;; 7864 7865amigaos*) 7866 library_names_spec='$libname.ixlibrary $libname.a' 7867 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7868 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' 7869 ;; 7870 7871beos*) 7872 library_names_spec='${libname}${shared_ext}' 7873 dynamic_linker="$host_os ld.so" 7874 shlibpath_var=LIBRARY_PATH 7875 ;; 7876 7877bsdi[45]*) 7878 version_type=linux 7879 need_version=no 7880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7881 soname_spec='${libname}${release}${shared_ext}$major' 7882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7883 shlibpath_var=LD_LIBRARY_PATH 7884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7886 # the default ld.so.conf also contains /usr/contrib/lib and 7887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7888 # libtool to hard-code these into programs 7889 ;; 7890 7891cygwin* | mingw* | pw32*) 7892 version_type=windows 7893 shrext_cmds=".dll" 7894 need_version=no 7895 need_lib_prefix=no 7896 7897 case $GCC,$host_os in 7898 yes,cygwin* | yes,mingw* | yes,pw32*) 7899 library_names_spec='$libname.dll.a' 7900 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7901 postinstall_cmds='base_file=`basename \${file}`~ 7902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7903 dldir=$destdir/`dirname \$dlpath`~ 7904 test -d \$dldir || mkdir -p \$dldir~ 7905 $install_prog $dir/$dlname \$dldir/$dlname~ 7906 chmod a+x \$dldir/$dlname' 7907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7908 dlpath=$dir/\$dldll~ 7909 $rm \$dlpath' 7910 shlibpath_overrides_runpath=yes 7911 7912 case $host_os in 7913 cygwin*) 7914 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7916 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7917 ;; 7918 mingw*) 7919 # MinGW DLLs use traditional 'lib' prefix 7920 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7921 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7922 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7923 # It is most probably a Windows format PATH printed by 7924 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7925 # path with ; separators, and with drive letters. We can handle the 7926 # drive letters (cygwin fileutils understands them), so leave them, 7927 # especially as we might pass files found there to a mingw objdump, 7928 # which wouldn't understand a cygwinified path. Ahh. 7929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7930 else 7931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7932 fi 7933 ;; 7934 pw32*) 7935 # pw32 DLLs use 'pw' prefix rather than 'lib' 7936 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7937 ;; 7938 esac 7939 ;; 7940 7941 *) 7942 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7943 ;; 7944 esac 7945 dynamic_linker='Win32 ld.exe' 7946 # FIXME: first we should search . and the directory the executable is in 7947 shlibpath_var=PATH 7948 ;; 7949 7950darwin* | rhapsody*) 7951 dynamic_linker="$host_os dyld" 7952 version_type=darwin 7953 need_lib_prefix=no 7954 need_version=no 7955 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7956 soname_spec='${libname}${release}${major}$shared_ext' 7957 shlibpath_overrides_runpath=yes 7958 shlibpath_var=DYLD_LIBRARY_PATH 7959 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7960 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7961 if test "$GCC" = yes; then 7962 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"` 7963 else 7964 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7965 fi 7966 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7967 ;; 7968 7969dgux*) 7970 version_type=linux 7971 need_lib_prefix=no 7972 need_version=no 7973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7974 soname_spec='${libname}${release}${shared_ext}$major' 7975 shlibpath_var=LD_LIBRARY_PATH 7976 ;; 7977 7978freebsd1*) 7979 dynamic_linker=no 7980 ;; 7981 7982kfreebsd*-gnu) 7983 version_type=linux 7984 need_lib_prefix=no 7985 need_version=no 7986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7987 soname_spec='${libname}${release}${shared_ext}$major' 7988 shlibpath_var=LD_LIBRARY_PATH 7989 shlibpath_overrides_runpath=no 7990 hardcode_into_libs=yes 7991 dynamic_linker='GNU ld.so' 7992 ;; 7993 7994freebsd* | dragonfly*) 7995 # DragonFly does not have aout. When/if they implement a new 7996 # versioning mechanism, adjust this. 7997 if test -x /usr/bin/objformat; then 7998 objformat=`/usr/bin/objformat` 7999 else 8000 case $host_os in 8001 freebsd[123]*) objformat=aout ;; 8002 *) objformat=elf ;; 8003 esac 8004 fi 8005 version_type=freebsd-$objformat 8006 case $version_type in 8007 freebsd-elf*) 8008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8009 need_version=no 8010 need_lib_prefix=no 8011 ;; 8012 freebsd-*) 8013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8014 need_version=yes 8015 ;; 8016 esac 8017 shlibpath_var=LD_LIBRARY_PATH 8018 case $host_os in 8019 freebsd2*) 8020 shlibpath_overrides_runpath=yes 8021 ;; 8022 freebsd3.[01]* | freebsdelf3.[01]*) 8023 shlibpath_overrides_runpath=yes 8024 hardcode_into_libs=yes 8025 ;; 8026 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8027 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8028 shlibpath_overrides_runpath=no 8029 hardcode_into_libs=yes 8030 ;; 8031 freebsd*) # from 4.6 on 8032 shlibpath_overrides_runpath=yes 8033 hardcode_into_libs=yes 8034 ;; 8035 esac 8036 ;; 8037 8038gnu*) 8039 version_type=linux 8040 need_lib_prefix=no 8041 need_version=no 8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8043 soname_spec='${libname}${release}${shared_ext}$major' 8044 shlibpath_var=LD_LIBRARY_PATH 8045 hardcode_into_libs=yes 8046 ;; 8047 8048hpux9* | hpux10* | hpux11*) 8049 # Give a soname corresponding to the major version so that dld.sl refuses to 8050 # link against other versions. 8051 version_type=sunos 8052 need_lib_prefix=no 8053 need_version=no 8054 case $host_cpu in 8055 ia64*) 8056 shrext_cmds='.so' 8057 hardcode_into_libs=yes 8058 dynamic_linker="$host_os dld.so" 8059 shlibpath_var=LD_LIBRARY_PATH 8060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8062 soname_spec='${libname}${release}${shared_ext}$major' 8063 if test "X$HPUX_IA64_MODE" = X32; then 8064 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8065 else 8066 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8067 fi 8068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8069 ;; 8070 hppa*64*) 8071 shrext_cmds='.sl' 8072 hardcode_into_libs=yes 8073 dynamic_linker="$host_os dld.sl" 8074 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8077 soname_spec='${libname}${release}${shared_ext}$major' 8078 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8080 ;; 8081 *) 8082 shrext_cmds='.sl' 8083 dynamic_linker="$host_os dld.sl" 8084 shlibpath_var=SHLIB_PATH 8085 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8087 soname_spec='${libname}${release}${shared_ext}$major' 8088 ;; 8089 esac 8090 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8091 postinstall_cmds='chmod 555 $lib' 8092 ;; 8093 8094interix3*) 8095 version_type=linux 8096 need_lib_prefix=no 8097 need_version=no 8098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8099 soname_spec='${libname}${release}${shared_ext}$major' 8100 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8101 shlibpath_var=LD_LIBRARY_PATH 8102 shlibpath_overrides_runpath=no 8103 hardcode_into_libs=yes 8104 ;; 8105 8106irix5* | irix6* | nonstopux*) 8107 case $host_os in 8108 nonstopux*) version_type=nonstopux ;; 8109 *) 8110 if test "$lt_cv_prog_gnu_ld" = yes; then 8111 version_type=linux 8112 else 8113 version_type=irix 8114 fi ;; 8115 esac 8116 need_lib_prefix=no 8117 need_version=no 8118 soname_spec='${libname}${release}${shared_ext}$major' 8119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8120 case $host_os in 8121 irix5* | nonstopux*) 8122 libsuff= shlibsuff= 8123 ;; 8124 *) 8125 case $LD in # libtool.m4 will add one of these switches to LD 8126 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8127 libsuff= shlibsuff= libmagic=32-bit;; 8128 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8129 libsuff=32 shlibsuff=N32 libmagic=N32;; 8130 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8131 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8132 *) libsuff= shlibsuff= libmagic=never-match;; 8133 esac 8134 ;; 8135 esac 8136 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8137 shlibpath_overrides_runpath=no 8138 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8139 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8140 hardcode_into_libs=yes 8141 ;; 8142 8143# No shared lib support for Linux oldld, aout, or coff. 8144linux*oldld* | linux*aout* | linux*coff*) 8145 dynamic_linker=no 8146 ;; 8147 8148# This must be Linux ELF. 8149linux*) 8150 version_type=linux 8151 need_lib_prefix=no 8152 need_version=no 8153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8154 soname_spec='${libname}${release}${shared_ext}$major' 8155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8156 shlibpath_var=LD_LIBRARY_PATH 8157 shlibpath_overrides_runpath=no 8158 # This implies no fast_install, which is unacceptable. 8159 # Some rework will be needed to allow for fast_install 8160 # before this can be enabled. 8161 hardcode_into_libs=yes 8162 8163 # Append ld.so.conf contents to the search path 8164 if test -f /etc/ld.so.conf; then 8165 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' ' '` 8166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8167 fi 8168 8169 # We used to test for /lib/ld.so.1 and disable shared libraries on 8170 # powerpc, because MkLinux only supported shared libraries with the 8171 # GNU dynamic linker. Since this was broken with cross compilers, 8172 # most powerpc-linux boxes support dynamic linking these days and 8173 # people can always --disable-shared, the test was removed, and we 8174 # assume the GNU/Linux dynamic linker is in use. 8175 dynamic_linker='GNU/Linux ld.so' 8176 ;; 8177 8178knetbsd*-gnu) 8179 version_type=linux 8180 need_lib_prefix=no 8181 need_version=no 8182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8183 soname_spec='${libname}${release}${shared_ext}$major' 8184 shlibpath_var=LD_LIBRARY_PATH 8185 shlibpath_overrides_runpath=no 8186 hardcode_into_libs=yes 8187 dynamic_linker='GNU ld.so' 8188 ;; 8189 8190netbsd*) 8191 version_type=sunos 8192 need_lib_prefix=no 8193 need_version=no 8194 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8197 dynamic_linker='NetBSD (a.out) ld.so' 8198 else 8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8200 soname_spec='${libname}${release}${shared_ext}$major' 8201 dynamic_linker='NetBSD ld.elf_so' 8202 fi 8203 shlibpath_var=LD_LIBRARY_PATH 8204 shlibpath_overrides_runpath=yes 8205 hardcode_into_libs=yes 8206 ;; 8207 8208newsos6) 8209 version_type=linux 8210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8211 shlibpath_var=LD_LIBRARY_PATH 8212 shlibpath_overrides_runpath=yes 8213 ;; 8214 8215nto-qnx*) 8216 version_type=linux 8217 need_lib_prefix=no 8218 need_version=no 8219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8220 soname_spec='${libname}${release}${shared_ext}$major' 8221 shlibpath_var=LD_LIBRARY_PATH 8222 shlibpath_overrides_runpath=yes 8223 ;; 8224 8225openbsd*) 8226 version_type=sunos 8227 sys_lib_dlsearch_path_spec="/usr/lib" 8228 need_lib_prefix=no 8229 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8230 case $host_os in 8231 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8232 *) need_version=no ;; 8233 esac 8234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8236 shlibpath_var=LD_LIBRARY_PATH 8237 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8238 case $host_os in 8239 openbsd2.[89] | openbsd2.[89].*) 8240 shlibpath_overrides_runpath=no 8241 ;; 8242 *) 8243 shlibpath_overrides_runpath=yes 8244 ;; 8245 esac 8246 else 8247 shlibpath_overrides_runpath=yes 8248 fi 8249 ;; 8250 8251os2*) 8252 libname_spec='$name' 8253 shrext_cmds=".dll" 8254 need_lib_prefix=no 8255 library_names_spec='$libname${shared_ext} $libname.a' 8256 dynamic_linker='OS/2 ld.exe' 8257 shlibpath_var=LIBPATH 8258 ;; 8259 8260osf3* | osf4* | osf5*) 8261 version_type=osf 8262 need_lib_prefix=no 8263 need_version=no 8264 soname_spec='${libname}${release}${shared_ext}$major' 8265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8266 shlibpath_var=LD_LIBRARY_PATH 8267 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8268 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8269 ;; 8270 8271solaris*) 8272 version_type=linux 8273 need_lib_prefix=no 8274 need_version=no 8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8276 soname_spec='${libname}${release}${shared_ext}$major' 8277 shlibpath_var=LD_LIBRARY_PATH 8278 shlibpath_overrides_runpath=yes 8279 hardcode_into_libs=yes 8280 # ldd complains unless libraries are executable 8281 postinstall_cmds='chmod +x $lib' 8282 ;; 8283 8284sunos4*) 8285 version_type=sunos 8286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8288 shlibpath_var=LD_LIBRARY_PATH 8289 shlibpath_overrides_runpath=yes 8290 if test "$with_gnu_ld" = yes; then 8291 need_lib_prefix=no 8292 fi 8293 need_version=yes 8294 ;; 8295 8296sysv4 | sysv4.3*) 8297 version_type=linux 8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8299 soname_spec='${libname}${release}${shared_ext}$major' 8300 shlibpath_var=LD_LIBRARY_PATH 8301 case $host_vendor in 8302 sni) 8303 shlibpath_overrides_runpath=no 8304 need_lib_prefix=no 8305 export_dynamic_flag_spec='${wl}-Blargedynsym' 8306 runpath_var=LD_RUN_PATH 8307 ;; 8308 siemens) 8309 need_lib_prefix=no 8310 ;; 8311 motorola) 8312 need_lib_prefix=no 8313 need_version=no 8314 shlibpath_overrides_runpath=no 8315 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8316 ;; 8317 esac 8318 ;; 8319 8320sysv4*MP*) 8321 if test -d /usr/nec ;then 8322 version_type=linux 8323 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8324 soname_spec='$libname${shared_ext}.$major' 8325 shlibpath_var=LD_LIBRARY_PATH 8326 fi 8327 ;; 8328 8329sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8330 version_type=freebsd-elf 8331 need_lib_prefix=no 8332 need_version=no 8333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8334 soname_spec='${libname}${release}${shared_ext}$major' 8335 shlibpath_var=LD_LIBRARY_PATH 8336 hardcode_into_libs=yes 8337 if test "$with_gnu_ld" = yes; then 8338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8339 shlibpath_overrides_runpath=no 8340 else 8341 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8342 shlibpath_overrides_runpath=yes 8343 case $host_os in 8344 sco3.2v5*) 8345 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8346 ;; 8347 esac 8348 fi 8349 sys_lib_dlsearch_path_spec='/usr/lib' 8350 ;; 8351 8352uts4*) 8353 version_type=linux 8354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8355 soname_spec='${libname}${release}${shared_ext}$major' 8356 shlibpath_var=LD_LIBRARY_PATH 8357 ;; 8358 8359*) 8360 dynamic_linker=no 8361 ;; 8362esac 8363echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8364echo "${ECHO_T}$dynamic_linker" >&6 8365test "$dynamic_linker" = no && can_build_shared=no 8366 8367variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8368if test "$GCC" = yes; then 8369 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8370fi 8371 8372echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8373echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8374hardcode_action= 8375if test -n "$hardcode_libdir_flag_spec" || \ 8376 test -n "$runpath_var" || \ 8377 test "X$hardcode_automatic" = "Xyes" ; then 8378 8379 # We can hardcode non-existant directories. 8380 if test "$hardcode_direct" != no && 8381 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8382 # have to relink, otherwise we might link with an installed library 8383 # when we should be linking with a yet-to-be-installed one 8384 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8385 test "$hardcode_minus_L" != no; then 8386 # Linking always hardcodes the temporary library directory. 8387 hardcode_action=relink 8388 else 8389 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8390 hardcode_action=immediate 8391 fi 8392else 8393 # We cannot hardcode anything, or else we can only hardcode existing 8394 # directories. 8395 hardcode_action=unsupported 8396fi 8397echo "$as_me:$LINENO: result: $hardcode_action" >&5 8398echo "${ECHO_T}$hardcode_action" >&6 8399 8400if test "$hardcode_action" = relink; then 8401 # Fast installation is not supported 8402 enable_fast_install=no 8403elif test "$shlibpath_overrides_runpath" = yes || 8404 test "$enable_shared" = no; then 8405 # Fast installation is not necessary 8406 enable_fast_install=needless 8407fi 8408 8409striplib= 8410old_striplib= 8411echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8412echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8413if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8414 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8415 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8416 echo "$as_me:$LINENO: result: yes" >&5 8417echo "${ECHO_T}yes" >&6 8418else 8419# FIXME - insert some real tests, host_os isn't really good enough 8420 case $host_os in 8421 darwin*) 8422 if test -n "$STRIP" ; then 8423 striplib="$STRIP -x" 8424 echo "$as_me:$LINENO: result: yes" >&5 8425echo "${ECHO_T}yes" >&6 8426 else 8427 echo "$as_me:$LINENO: result: no" >&5 8428echo "${ECHO_T}no" >&6 8429fi 8430 ;; 8431 *) 8432 echo "$as_me:$LINENO: result: no" >&5 8433echo "${ECHO_T}no" >&6 8434 ;; 8435 esac 8436fi 8437 8438if test "x$enable_dlopen" != xyes; then 8439 enable_dlopen=unknown 8440 enable_dlopen_self=unknown 8441 enable_dlopen_self_static=unknown 8442else 8443 lt_cv_dlopen=no 8444 lt_cv_dlopen_libs= 8445 8446 case $host_os in 8447 beos*) 8448 lt_cv_dlopen="load_add_on" 8449 lt_cv_dlopen_libs= 8450 lt_cv_dlopen_self=yes 8451 ;; 8452 8453 mingw* | pw32*) 8454 lt_cv_dlopen="LoadLibrary" 8455 lt_cv_dlopen_libs= 8456 ;; 8457 8458 cygwin*) 8459 lt_cv_dlopen="dlopen" 8460 lt_cv_dlopen_libs= 8461 ;; 8462 8463 darwin*) 8464 # if libdl is installed we need to link against it 8465 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8466echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8467if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8468 echo $ECHO_N "(cached) $ECHO_C" >&6 8469else 8470 ac_check_lib_save_LIBS=$LIBS 8471LIBS="-ldl $LIBS" 8472cat >conftest.$ac_ext <<_ACEOF 8473/* confdefs.h. */ 8474_ACEOF 8475cat confdefs.h >>conftest.$ac_ext 8476cat >>conftest.$ac_ext <<_ACEOF 8477/* end confdefs.h. */ 8478 8479/* Override any gcc2 internal prototype to avoid an error. */ 8480#ifdef __cplusplus 8481extern "C" 8482#endif 8483/* We use char because int might match the return type of a gcc2 8484 builtin and then its argument prototype would still apply. */ 8485char dlopen (); 8486int 8487main () 8488{ 8489dlopen (); 8490 ; 8491 return 0; 8492} 8493_ACEOF 8494rm -f conftest.$ac_objext conftest$ac_exeext 8495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8496 (eval $ac_link) 2>conftest.er1 8497 ac_status=$? 8498 grep -v '^ *+' conftest.er1 >conftest.err 8499 rm -f conftest.er1 8500 cat conftest.err >&5 8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8502 (exit $ac_status); } && 8503 { ac_try='test -z "$ac_c_werror_flag" 8504 || test ! -s conftest.err' 8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8506 (eval $ac_try) 2>&5 8507 ac_status=$? 8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8509 (exit $ac_status); }; } && 8510 { ac_try='test -s conftest$ac_exeext' 8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8512 (eval $ac_try) 2>&5 8513 ac_status=$? 8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8515 (exit $ac_status); }; }; then 8516 ac_cv_lib_dl_dlopen=yes 8517else 8518 echo "$as_me: failed program was:" >&5 8519sed 's/^/| /' conftest.$ac_ext >&5 8520 8521ac_cv_lib_dl_dlopen=no 8522fi 8523rm -f conftest.err conftest.$ac_objext \ 8524 conftest$ac_exeext conftest.$ac_ext 8525LIBS=$ac_check_lib_save_LIBS 8526fi 8527echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8528echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8529if test $ac_cv_lib_dl_dlopen = yes; then 8530 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8531else 8532 8533 lt_cv_dlopen="dyld" 8534 lt_cv_dlopen_libs= 8535 lt_cv_dlopen_self=yes 8536 8537fi 8538 8539 ;; 8540 8541 *) 8542 echo "$as_me:$LINENO: checking for shl_load" >&5 8543echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8544if test "${ac_cv_func_shl_load+set}" = set; then 8545 echo $ECHO_N "(cached) $ECHO_C" >&6 8546else 8547 cat >conftest.$ac_ext <<_ACEOF 8548/* confdefs.h. */ 8549_ACEOF 8550cat confdefs.h >>conftest.$ac_ext 8551cat >>conftest.$ac_ext <<_ACEOF 8552/* end confdefs.h. */ 8553/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8554 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8555#define shl_load innocuous_shl_load 8556 8557/* System header to define __stub macros and hopefully few prototypes, 8558 which can conflict with char shl_load (); below. 8559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8560 <limits.h> exists even on freestanding compilers. */ 8561 8562#ifdef __STDC__ 8563# include <limits.h> 8564#else 8565# include <assert.h> 8566#endif 8567 8568#undef shl_load 8569 8570/* Override any gcc2 internal prototype to avoid an error. */ 8571#ifdef __cplusplus 8572extern "C" 8573{ 8574#endif 8575/* We use char because int might match the return type of a gcc2 8576 builtin and then its argument prototype would still apply. */ 8577char shl_load (); 8578/* The GNU C library defines this for functions which it implements 8579 to always fail with ENOSYS. Some functions are actually named 8580 something starting with __ and the normal name is an alias. */ 8581#if defined (__stub_shl_load) || defined (__stub___shl_load) 8582choke me 8583#else 8584char (*f) () = shl_load; 8585#endif 8586#ifdef __cplusplus 8587} 8588#endif 8589 8590int 8591main () 8592{ 8593return f != shl_load; 8594 ; 8595 return 0; 8596} 8597_ACEOF 8598rm -f conftest.$ac_objext conftest$ac_exeext 8599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8600 (eval $ac_link) 2>conftest.er1 8601 ac_status=$? 8602 grep -v '^ *+' conftest.er1 >conftest.err 8603 rm -f conftest.er1 8604 cat conftest.err >&5 8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8606 (exit $ac_status); } && 8607 { ac_try='test -z "$ac_c_werror_flag" 8608 || test ! -s conftest.err' 8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8610 (eval $ac_try) 2>&5 8611 ac_status=$? 8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8613 (exit $ac_status); }; } && 8614 { ac_try='test -s conftest$ac_exeext' 8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8616 (eval $ac_try) 2>&5 8617 ac_status=$? 8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8619 (exit $ac_status); }; }; then 8620 ac_cv_func_shl_load=yes 8621else 8622 echo "$as_me: failed program was:" >&5 8623sed 's/^/| /' conftest.$ac_ext >&5 8624 8625ac_cv_func_shl_load=no 8626fi 8627rm -f conftest.err conftest.$ac_objext \ 8628 conftest$ac_exeext conftest.$ac_ext 8629fi 8630echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8631echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8632if test $ac_cv_func_shl_load = yes; then 8633 lt_cv_dlopen="shl_load" 8634else 8635 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8636echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8637if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8638 echo $ECHO_N "(cached) $ECHO_C" >&6 8639else 8640 ac_check_lib_save_LIBS=$LIBS 8641LIBS="-ldld $LIBS" 8642cat >conftest.$ac_ext <<_ACEOF 8643/* confdefs.h. */ 8644_ACEOF 8645cat confdefs.h >>conftest.$ac_ext 8646cat >>conftest.$ac_ext <<_ACEOF 8647/* end confdefs.h. */ 8648 8649/* Override any gcc2 internal prototype to avoid an error. */ 8650#ifdef __cplusplus 8651extern "C" 8652#endif 8653/* We use char because int might match the return type of a gcc2 8654 builtin and then its argument prototype would still apply. */ 8655char shl_load (); 8656int 8657main () 8658{ 8659shl_load (); 8660 ; 8661 return 0; 8662} 8663_ACEOF 8664rm -f conftest.$ac_objext conftest$ac_exeext 8665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8666 (eval $ac_link) 2>conftest.er1 8667 ac_status=$? 8668 grep -v '^ *+' conftest.er1 >conftest.err 8669 rm -f conftest.er1 8670 cat conftest.err >&5 8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8672 (exit $ac_status); } && 8673 { ac_try='test -z "$ac_c_werror_flag" 8674 || test ! -s conftest.err' 8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8676 (eval $ac_try) 2>&5 8677 ac_status=$? 8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8679 (exit $ac_status); }; } && 8680 { ac_try='test -s conftest$ac_exeext' 8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8682 (eval $ac_try) 2>&5 8683 ac_status=$? 8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8685 (exit $ac_status); }; }; then 8686 ac_cv_lib_dld_shl_load=yes 8687else 8688 echo "$as_me: failed program was:" >&5 8689sed 's/^/| /' conftest.$ac_ext >&5 8690 8691ac_cv_lib_dld_shl_load=no 8692fi 8693rm -f conftest.err conftest.$ac_objext \ 8694 conftest$ac_exeext conftest.$ac_ext 8695LIBS=$ac_check_lib_save_LIBS 8696fi 8697echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8698echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8699if test $ac_cv_lib_dld_shl_load = yes; then 8700 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8701else 8702 echo "$as_me:$LINENO: checking for dlopen" >&5 8703echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8704if test "${ac_cv_func_dlopen+set}" = set; then 8705 echo $ECHO_N "(cached) $ECHO_C" >&6 8706else 8707 cat >conftest.$ac_ext <<_ACEOF 8708/* confdefs.h. */ 8709_ACEOF 8710cat confdefs.h >>conftest.$ac_ext 8711cat >>conftest.$ac_ext <<_ACEOF 8712/* end confdefs.h. */ 8713/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8714 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8715#define dlopen innocuous_dlopen 8716 8717/* System header to define __stub macros and hopefully few prototypes, 8718 which can conflict with char dlopen (); below. 8719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8720 <limits.h> exists even on freestanding compilers. */ 8721 8722#ifdef __STDC__ 8723# include <limits.h> 8724#else 8725# include <assert.h> 8726#endif 8727 8728#undef dlopen 8729 8730/* Override any gcc2 internal prototype to avoid an error. */ 8731#ifdef __cplusplus 8732extern "C" 8733{ 8734#endif 8735/* We use char because int might match the return type of a gcc2 8736 builtin and then its argument prototype would still apply. */ 8737char dlopen (); 8738/* The GNU C library defines this for functions which it implements 8739 to always fail with ENOSYS. Some functions are actually named 8740 something starting with __ and the normal name is an alias. */ 8741#if defined (__stub_dlopen) || defined (__stub___dlopen) 8742choke me 8743#else 8744char (*f) () = dlopen; 8745#endif 8746#ifdef __cplusplus 8747} 8748#endif 8749 8750int 8751main () 8752{ 8753return f != dlopen; 8754 ; 8755 return 0; 8756} 8757_ACEOF 8758rm -f conftest.$ac_objext conftest$ac_exeext 8759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8760 (eval $ac_link) 2>conftest.er1 8761 ac_status=$? 8762 grep -v '^ *+' conftest.er1 >conftest.err 8763 rm -f conftest.er1 8764 cat conftest.err >&5 8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8766 (exit $ac_status); } && 8767 { ac_try='test -z "$ac_c_werror_flag" 8768 || test ! -s conftest.err' 8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8770 (eval $ac_try) 2>&5 8771 ac_status=$? 8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8773 (exit $ac_status); }; } && 8774 { ac_try='test -s conftest$ac_exeext' 8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8776 (eval $ac_try) 2>&5 8777 ac_status=$? 8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8779 (exit $ac_status); }; }; then 8780 ac_cv_func_dlopen=yes 8781else 8782 echo "$as_me: failed program was:" >&5 8783sed 's/^/| /' conftest.$ac_ext >&5 8784 8785ac_cv_func_dlopen=no 8786fi 8787rm -f conftest.err conftest.$ac_objext \ 8788 conftest$ac_exeext conftest.$ac_ext 8789fi 8790echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8791echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8792if test $ac_cv_func_dlopen = yes; then 8793 lt_cv_dlopen="dlopen" 8794else 8795 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8796echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8797if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8798 echo $ECHO_N "(cached) $ECHO_C" >&6 8799else 8800 ac_check_lib_save_LIBS=$LIBS 8801LIBS="-ldl $LIBS" 8802cat >conftest.$ac_ext <<_ACEOF 8803/* confdefs.h. */ 8804_ACEOF 8805cat confdefs.h >>conftest.$ac_ext 8806cat >>conftest.$ac_ext <<_ACEOF 8807/* end confdefs.h. */ 8808 8809/* Override any gcc2 internal prototype to avoid an error. */ 8810#ifdef __cplusplus 8811extern "C" 8812#endif 8813/* We use char because int might match the return type of a gcc2 8814 builtin and then its argument prototype would still apply. */ 8815char dlopen (); 8816int 8817main () 8818{ 8819dlopen (); 8820 ; 8821 return 0; 8822} 8823_ACEOF 8824rm -f conftest.$ac_objext conftest$ac_exeext 8825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8826 (eval $ac_link) 2>conftest.er1 8827 ac_status=$? 8828 grep -v '^ *+' conftest.er1 >conftest.err 8829 rm -f conftest.er1 8830 cat conftest.err >&5 8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8832 (exit $ac_status); } && 8833 { ac_try='test -z "$ac_c_werror_flag" 8834 || test ! -s conftest.err' 8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8836 (eval $ac_try) 2>&5 8837 ac_status=$? 8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8839 (exit $ac_status); }; } && 8840 { ac_try='test -s conftest$ac_exeext' 8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8842 (eval $ac_try) 2>&5 8843 ac_status=$? 8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8845 (exit $ac_status); }; }; then 8846 ac_cv_lib_dl_dlopen=yes 8847else 8848 echo "$as_me: failed program was:" >&5 8849sed 's/^/| /' conftest.$ac_ext >&5 8850 8851ac_cv_lib_dl_dlopen=no 8852fi 8853rm -f conftest.err conftest.$ac_objext \ 8854 conftest$ac_exeext conftest.$ac_ext 8855LIBS=$ac_check_lib_save_LIBS 8856fi 8857echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8858echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8859if test $ac_cv_lib_dl_dlopen = yes; then 8860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8861else 8862 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8863echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8864if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8865 echo $ECHO_N "(cached) $ECHO_C" >&6 8866else 8867 ac_check_lib_save_LIBS=$LIBS 8868LIBS="-lsvld $LIBS" 8869cat >conftest.$ac_ext <<_ACEOF 8870/* confdefs.h. */ 8871_ACEOF 8872cat confdefs.h >>conftest.$ac_ext 8873cat >>conftest.$ac_ext <<_ACEOF 8874/* end confdefs.h. */ 8875 8876/* Override any gcc2 internal prototype to avoid an error. */ 8877#ifdef __cplusplus 8878extern "C" 8879#endif 8880/* We use char because int might match the return type of a gcc2 8881 builtin and then its argument prototype would still apply. */ 8882char dlopen (); 8883int 8884main () 8885{ 8886dlopen (); 8887 ; 8888 return 0; 8889} 8890_ACEOF 8891rm -f conftest.$ac_objext conftest$ac_exeext 8892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8893 (eval $ac_link) 2>conftest.er1 8894 ac_status=$? 8895 grep -v '^ *+' conftest.er1 >conftest.err 8896 rm -f conftest.er1 8897 cat conftest.err >&5 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 (exit $ac_status); } && 8900 { ac_try='test -z "$ac_c_werror_flag" 8901 || test ! -s conftest.err' 8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8903 (eval $ac_try) 2>&5 8904 ac_status=$? 8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8906 (exit $ac_status); }; } && 8907 { ac_try='test -s conftest$ac_exeext' 8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8909 (eval $ac_try) 2>&5 8910 ac_status=$? 8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8912 (exit $ac_status); }; }; then 8913 ac_cv_lib_svld_dlopen=yes 8914else 8915 echo "$as_me: failed program was:" >&5 8916sed 's/^/| /' conftest.$ac_ext >&5 8917 8918ac_cv_lib_svld_dlopen=no 8919fi 8920rm -f conftest.err conftest.$ac_objext \ 8921 conftest$ac_exeext conftest.$ac_ext 8922LIBS=$ac_check_lib_save_LIBS 8923fi 8924echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8925echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8926if test $ac_cv_lib_svld_dlopen = yes; then 8927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8928else 8929 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8930echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8931if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8932 echo $ECHO_N "(cached) $ECHO_C" >&6 8933else 8934 ac_check_lib_save_LIBS=$LIBS 8935LIBS="-ldld $LIBS" 8936cat >conftest.$ac_ext <<_ACEOF 8937/* confdefs.h. */ 8938_ACEOF 8939cat confdefs.h >>conftest.$ac_ext 8940cat >>conftest.$ac_ext <<_ACEOF 8941/* end confdefs.h. */ 8942 8943/* Override any gcc2 internal prototype to avoid an error. */ 8944#ifdef __cplusplus 8945extern "C" 8946#endif 8947/* We use char because int might match the return type of a gcc2 8948 builtin and then its argument prototype would still apply. */ 8949char dld_link (); 8950int 8951main () 8952{ 8953dld_link (); 8954 ; 8955 return 0; 8956} 8957_ACEOF 8958rm -f conftest.$ac_objext conftest$ac_exeext 8959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8960 (eval $ac_link) 2>conftest.er1 8961 ac_status=$? 8962 grep -v '^ *+' conftest.er1 >conftest.err 8963 rm -f conftest.er1 8964 cat conftest.err >&5 8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8966 (exit $ac_status); } && 8967 { ac_try='test -z "$ac_c_werror_flag" 8968 || test ! -s conftest.err' 8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8970 (eval $ac_try) 2>&5 8971 ac_status=$? 8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8973 (exit $ac_status); }; } && 8974 { ac_try='test -s conftest$ac_exeext' 8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8976 (eval $ac_try) 2>&5 8977 ac_status=$? 8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8979 (exit $ac_status); }; }; then 8980 ac_cv_lib_dld_dld_link=yes 8981else 8982 echo "$as_me: failed program was:" >&5 8983sed 's/^/| /' conftest.$ac_ext >&5 8984 8985ac_cv_lib_dld_dld_link=no 8986fi 8987rm -f conftest.err conftest.$ac_objext \ 8988 conftest$ac_exeext conftest.$ac_ext 8989LIBS=$ac_check_lib_save_LIBS 8990fi 8991echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8992echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8993if test $ac_cv_lib_dld_dld_link = yes; then 8994 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8995fi 8996 8997 8998fi 8999 9000 9001fi 9002 9003 9004fi 9005 9006 9007fi 9008 9009 9010fi 9011 9012 ;; 9013 esac 9014 9015 if test "x$lt_cv_dlopen" != xno; then 9016 enable_dlopen=yes 9017 else 9018 enable_dlopen=no 9019 fi 9020 9021 case $lt_cv_dlopen in 9022 dlopen) 9023 save_CPPFLAGS="$CPPFLAGS" 9024 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9025 9026 save_LDFLAGS="$LDFLAGS" 9027 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9028 9029 save_LIBS="$LIBS" 9030 LIBS="$lt_cv_dlopen_libs $LIBS" 9031 9032 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9033echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9034if test "${lt_cv_dlopen_self+set}" = set; then 9035 echo $ECHO_N "(cached) $ECHO_C" >&6 9036else 9037 if test "$cross_compiling" = yes; then : 9038 lt_cv_dlopen_self=cross 9039else 9040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9041 lt_status=$lt_dlunknown 9042 cat > conftest.$ac_ext <<EOF 9043#line 9043 "configure" 9044#include "confdefs.h" 9045 9046#if HAVE_DLFCN_H 9047#include <dlfcn.h> 9048#endif 9049 9050#include <stdio.h> 9051 9052#ifdef RTLD_GLOBAL 9053# define LT_DLGLOBAL RTLD_GLOBAL 9054#else 9055# ifdef DL_GLOBAL 9056# define LT_DLGLOBAL DL_GLOBAL 9057# else 9058# define LT_DLGLOBAL 0 9059# endif 9060#endif 9061 9062/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9063 find out it does not work in some platform. */ 9064#ifndef LT_DLLAZY_OR_NOW 9065# ifdef RTLD_LAZY 9066# define LT_DLLAZY_OR_NOW RTLD_LAZY 9067# else 9068# ifdef DL_LAZY 9069# define LT_DLLAZY_OR_NOW DL_LAZY 9070# else 9071# ifdef RTLD_NOW 9072# define LT_DLLAZY_OR_NOW RTLD_NOW 9073# else 9074# ifdef DL_NOW 9075# define LT_DLLAZY_OR_NOW DL_NOW 9076# else 9077# define LT_DLLAZY_OR_NOW 0 9078# endif 9079# endif 9080# endif 9081# endif 9082#endif 9083 9084#ifdef __cplusplus 9085extern "C" void exit (int); 9086#endif 9087 9088void fnord() { int i=42;} 9089int main () 9090{ 9091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9092 int status = $lt_dlunknown; 9093 9094 if (self) 9095 { 9096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9097 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9098 /* dlclose (self); */ 9099 } 9100 else 9101 puts (dlerror ()); 9102 9103 exit (status); 9104} 9105EOF 9106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9107 (eval $ac_link) 2>&5 9108 ac_status=$? 9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9110 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9111 (./conftest; exit; ) >&5 2>/dev/null 9112 lt_status=$? 9113 case x$lt_status in 9114 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9115 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9116 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9117 esac 9118 else : 9119 # compilation failed 9120 lt_cv_dlopen_self=no 9121 fi 9122fi 9123rm -fr conftest* 9124 9125 9126fi 9127echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9128echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9129 9130 if test "x$lt_cv_dlopen_self" = xyes; then 9131 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9132 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9133echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9134if test "${lt_cv_dlopen_self_static+set}" = set; then 9135 echo $ECHO_N "(cached) $ECHO_C" >&6 9136else 9137 if test "$cross_compiling" = yes; then : 9138 lt_cv_dlopen_self_static=cross 9139else 9140 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9141 lt_status=$lt_dlunknown 9142 cat > conftest.$ac_ext <<EOF 9143#line 9143 "configure" 9144#include "confdefs.h" 9145 9146#if HAVE_DLFCN_H 9147#include <dlfcn.h> 9148#endif 9149 9150#include <stdio.h> 9151 9152#ifdef RTLD_GLOBAL 9153# define LT_DLGLOBAL RTLD_GLOBAL 9154#else 9155# ifdef DL_GLOBAL 9156# define LT_DLGLOBAL DL_GLOBAL 9157# else 9158# define LT_DLGLOBAL 0 9159# endif 9160#endif 9161 9162/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9163 find out it does not work in some platform. */ 9164#ifndef LT_DLLAZY_OR_NOW 9165# ifdef RTLD_LAZY 9166# define LT_DLLAZY_OR_NOW RTLD_LAZY 9167# else 9168# ifdef DL_LAZY 9169# define LT_DLLAZY_OR_NOW DL_LAZY 9170# else 9171# ifdef RTLD_NOW 9172# define LT_DLLAZY_OR_NOW RTLD_NOW 9173# else 9174# ifdef DL_NOW 9175# define LT_DLLAZY_OR_NOW DL_NOW 9176# else 9177# define LT_DLLAZY_OR_NOW 0 9178# endif 9179# endif 9180# endif 9181# endif 9182#endif 9183 9184#ifdef __cplusplus 9185extern "C" void exit (int); 9186#endif 9187 9188void fnord() { int i=42;} 9189int main () 9190{ 9191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9192 int status = $lt_dlunknown; 9193 9194 if (self) 9195 { 9196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9197 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9198 /* dlclose (self); */ 9199 } 9200 else 9201 puts (dlerror ()); 9202 9203 exit (status); 9204} 9205EOF 9206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9207 (eval $ac_link) 2>&5 9208 ac_status=$? 9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9210 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9211 (./conftest; exit; ) >&5 2>/dev/null 9212 lt_status=$? 9213 case x$lt_status in 9214 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9215 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9216 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9217 esac 9218 else : 9219 # compilation failed 9220 lt_cv_dlopen_self_static=no 9221 fi 9222fi 9223rm -fr conftest* 9224 9225 9226fi 9227echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9228echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9229 fi 9230 9231 CPPFLAGS="$save_CPPFLAGS" 9232 LDFLAGS="$save_LDFLAGS" 9233 LIBS="$save_LIBS" 9234 ;; 9235 esac 9236 9237 case $lt_cv_dlopen_self in 9238 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9239 *) enable_dlopen_self=unknown ;; 9240 esac 9241 9242 case $lt_cv_dlopen_self_static in 9243 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9244 *) enable_dlopen_self_static=unknown ;; 9245 esac 9246fi 9247 9248 9249# Report which library types will actually be built 9250echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9251echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9252echo "$as_me:$LINENO: result: $can_build_shared" >&5 9253echo "${ECHO_T}$can_build_shared" >&6 9254 9255echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9256echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9257test "$can_build_shared" = "no" && enable_shared=no 9258 9259# On AIX, shared libraries and static libraries use the same namespace, and 9260# are all built from PIC. 9261case $host_os in 9262aix3*) 9263 test "$enable_shared" = yes && enable_static=no 9264 if test -n "$RANLIB"; then 9265 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9266 postinstall_cmds='$RANLIB $lib' 9267 fi 9268 ;; 9269 9270aix4* | aix5*) 9271 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9272 test "$enable_shared" = yes && enable_static=no 9273 fi 9274 ;; 9275esac 9276echo "$as_me:$LINENO: result: $enable_shared" >&5 9277echo "${ECHO_T}$enable_shared" >&6 9278 9279echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9280echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9281# Make sure either enable_shared or enable_static is yes. 9282test "$enable_shared" = yes || enable_static=yes 9283echo "$as_me:$LINENO: result: $enable_static" >&5 9284echo "${ECHO_T}$enable_static" >&6 9285 9286# The else clause should only fire when bootstrapping the 9287# libtool distribution, otherwise you forgot to ship ltmain.sh 9288# with your package, and you will get complaints that there are 9289# no rules to generate ltmain.sh. 9290if test -f "$ltmain"; then 9291 # See if we are running on zsh, and set the options which allow our commands through 9292 # without removal of \ escapes. 9293 if test -n "${ZSH_VERSION+set}" ; then 9294 setopt NO_GLOB_SUBST 9295 fi 9296 # Now quote all the things that may contain metacharacters while being 9297 # careful not to overquote the AC_SUBSTed values. We take copies of the 9298 # variables and quote the copies for generation of the libtool script. 9299 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9300 SED SHELL STRIP \ 9301 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9302 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9303 deplibs_check_method reload_flag reload_cmds need_locks \ 9304 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9305 lt_cv_sys_global_symbol_to_c_name_address \ 9306 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9307 old_postinstall_cmds old_postuninstall_cmds \ 9308 compiler \ 9309 CC \ 9310 LD \ 9311 lt_prog_compiler_wl \ 9312 lt_prog_compiler_pic \ 9313 lt_prog_compiler_static \ 9314 lt_prog_compiler_no_builtin_flag \ 9315 export_dynamic_flag_spec \ 9316 thread_safe_flag_spec \ 9317 whole_archive_flag_spec \ 9318 enable_shared_with_static_runtimes \ 9319 old_archive_cmds \ 9320 old_archive_from_new_cmds \ 9321 predep_objects \ 9322 postdep_objects \ 9323 predeps \ 9324 postdeps \ 9325 compiler_lib_search_path \ 9326 archive_cmds \ 9327 archive_expsym_cmds \ 9328 postinstall_cmds \ 9329 postuninstall_cmds \ 9330 old_archive_from_expsyms_cmds \ 9331 allow_undefined_flag \ 9332 no_undefined_flag \ 9333 export_symbols_cmds \ 9334 hardcode_libdir_flag_spec \ 9335 hardcode_libdir_flag_spec_ld \ 9336 hardcode_libdir_separator \ 9337 hardcode_automatic \ 9338 module_cmds \ 9339 module_expsym_cmds \ 9340 lt_cv_prog_compiler_c_o \ 9341 exclude_expsyms \ 9342 include_expsyms; do 9343 9344 case $var in 9345 old_archive_cmds | \ 9346 old_archive_from_new_cmds | \ 9347 archive_cmds | \ 9348 archive_expsym_cmds | \ 9349 module_cmds | \ 9350 module_expsym_cmds | \ 9351 old_archive_from_expsyms_cmds | \ 9352 export_symbols_cmds | \ 9353 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9354 postinstall_cmds | postuninstall_cmds | \ 9355 old_postinstall_cmds | old_postuninstall_cmds | \ 9356 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9357 # Double-quote double-evaled strings. 9358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9359 ;; 9360 *) 9361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9362 ;; 9363 esac 9364 done 9365 9366 case $lt_echo in 9367 *'\$0 --fallback-echo"') 9368 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9369 ;; 9370 esac 9371 9372cfgfile="${ofile}T" 9373 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9374 $rm -f "$cfgfile" 9375 { echo "$as_me:$LINENO: creating $ofile" >&5 9376echo "$as_me: creating $ofile" >&6;} 9377 9378 cat <<__EOF__ >> "$cfgfile" 9379#! $SHELL 9380 9381# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9382# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9383# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9384# 9385# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9386# Free Software Foundation, Inc. 9387# 9388# This file is part of GNU Libtool: 9389# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9390# 9391# This program is free software; you can redistribute it and/or modify 9392# it under the terms of the GNU General Public License as published by 9393# the Free Software Foundation; either version 2 of the License, or 9394# (at your option) any later version. 9395# 9396# This program is distributed in the hope that it will be useful, but 9397# WITHOUT ANY WARRANTY; without even the implied warranty of 9398# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9399# General Public License for more details. 9400# 9401# You should have received a copy of the GNU General Public License 9402# along with this program; if not, write to the Free Software 9403# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9404# 9405# As a special exception to the GNU General Public License, if you 9406# distribute this file as part of a program that contains a 9407# configuration script generated by Autoconf, you may include it under 9408# the same distribution terms that you use for the rest of that program. 9409 9410# A sed program that does not truncate output. 9411SED=$lt_SED 9412 9413# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9414Xsed="$SED -e 1s/^X//" 9415 9416# The HP-UX ksh and POSIX shell print the target directory to stdout 9417# if CDPATH is set. 9418(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9419 9420# The names of the tagged configurations supported by this script. 9421available_tags= 9422 9423# ### BEGIN LIBTOOL CONFIG 9424 9425# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9426 9427# Shell to use when invoking shell scripts. 9428SHELL=$lt_SHELL 9429 9430# Whether or not to build shared libraries. 9431build_libtool_libs=$enable_shared 9432 9433# Whether or not to build static libraries. 9434build_old_libs=$enable_static 9435 9436# Whether or not to add -lc for building shared libraries. 9437build_libtool_need_lc=$archive_cmds_need_lc 9438 9439# Whether or not to disallow shared libs when runtime libs are static 9440allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9441 9442# Whether or not to optimize for fast installation. 9443fast_install=$enable_fast_install 9444 9445# The host system. 9446host_alias=$host_alias 9447host=$host 9448host_os=$host_os 9449 9450# The build system. 9451build_alias=$build_alias 9452build=$build 9453build_os=$build_os 9454 9455# An echo program that does not interpret backslashes. 9456echo=$lt_echo 9457 9458# The archiver. 9459AR=$lt_AR 9460AR_FLAGS=$lt_AR_FLAGS 9461 9462# A C compiler. 9463LTCC=$lt_LTCC 9464 9465# LTCC compiler flags. 9466LTCFLAGS=$lt_LTCFLAGS 9467 9468# A language-specific compiler. 9469CC=$lt_compiler 9470 9471# Is the compiler the GNU C compiler? 9472with_gcc=$GCC 9473 9474# An ERE matcher. 9475EGREP=$lt_EGREP 9476 9477# The linker used to build libraries. 9478LD=$lt_LD 9479 9480# Whether we need hard or soft links. 9481LN_S=$lt_LN_S 9482 9483# A BSD-compatible nm program. 9484NM=$lt_NM 9485 9486# A symbol stripping program 9487STRIP=$lt_STRIP 9488 9489# Used to examine libraries when file_magic_cmd begins "file" 9490MAGIC_CMD=$MAGIC_CMD 9491 9492# Used on cygwin: DLL creation program. 9493DLLTOOL="$DLLTOOL" 9494 9495# Used on cygwin: object dumper. 9496OBJDUMP="$OBJDUMP" 9497 9498# Used on cygwin: assembler. 9499AS="$AS" 9500 9501# The name of the directory that contains temporary libtool files. 9502objdir=$objdir 9503 9504# How to create reloadable object files. 9505reload_flag=$lt_reload_flag 9506reload_cmds=$lt_reload_cmds 9507 9508# How to pass a linker flag through the compiler. 9509wl=$lt_lt_prog_compiler_wl 9510 9511# Object file suffix (normally "o"). 9512objext="$ac_objext" 9513 9514# Old archive suffix (normally "a"). 9515libext="$libext" 9516 9517# Shared library suffix (normally ".so"). 9518shrext_cmds='$shrext_cmds' 9519 9520# Executable file suffix (normally ""). 9521exeext="$exeext" 9522 9523# Additional compiler flags for building library objects. 9524pic_flag=$lt_lt_prog_compiler_pic 9525pic_mode=$pic_mode 9526 9527# What is the maximum length of a command? 9528max_cmd_len=$lt_cv_sys_max_cmd_len 9529 9530# Does compiler simultaneously support -c and -o options? 9531compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9532 9533# Must we lock files when doing compilation? 9534need_locks=$lt_need_locks 9535 9536# Do we need the lib prefix for modules? 9537need_lib_prefix=$need_lib_prefix 9538 9539# Do we need a version for libraries? 9540need_version=$need_version 9541 9542# Whether dlopen is supported. 9543dlopen_support=$enable_dlopen 9544 9545# Whether dlopen of programs is supported. 9546dlopen_self=$enable_dlopen_self 9547 9548# Whether dlopen of statically linked programs is supported. 9549dlopen_self_static=$enable_dlopen_self_static 9550 9551# Compiler flag to prevent dynamic linking. 9552link_static_flag=$lt_lt_prog_compiler_static 9553 9554# Compiler flag to turn off builtin functions. 9555no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9556 9557# Compiler flag to allow reflexive dlopens. 9558export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9559 9560# Compiler flag to generate shared objects directly from archives. 9561whole_archive_flag_spec=$lt_whole_archive_flag_spec 9562 9563# Compiler flag to generate thread-safe objects. 9564thread_safe_flag_spec=$lt_thread_safe_flag_spec 9565 9566# Library versioning type. 9567version_type=$version_type 9568 9569# Format of library name prefix. 9570libname_spec=$lt_libname_spec 9571 9572# List of archive names. First name is the real one, the rest are links. 9573# The last name is the one that the linker finds with -lNAME. 9574library_names_spec=$lt_library_names_spec 9575 9576# The coded name of the library, if different from the real name. 9577soname_spec=$lt_soname_spec 9578 9579# Commands used to build and install an old-style archive. 9580RANLIB=$lt_RANLIB 9581old_archive_cmds=$lt_old_archive_cmds 9582old_postinstall_cmds=$lt_old_postinstall_cmds 9583old_postuninstall_cmds=$lt_old_postuninstall_cmds 9584 9585# Create an old-style archive from a shared archive. 9586old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9587 9588# Create a temporary old-style archive to link instead of a shared archive. 9589old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9590 9591# Commands used to build and install a shared archive. 9592archive_cmds=$lt_archive_cmds 9593archive_expsym_cmds=$lt_archive_expsym_cmds 9594postinstall_cmds=$lt_postinstall_cmds 9595postuninstall_cmds=$lt_postuninstall_cmds 9596 9597# Commands used to build a loadable module (assumed same as above if empty) 9598module_cmds=$lt_module_cmds 9599module_expsym_cmds=$lt_module_expsym_cmds 9600 9601# Commands to strip libraries. 9602old_striplib=$lt_old_striplib 9603striplib=$lt_striplib 9604 9605# Dependencies to place before the objects being linked to create a 9606# shared library. 9607predep_objects=$lt_predep_objects 9608 9609# Dependencies to place after the objects being linked to create a 9610# shared library. 9611postdep_objects=$lt_postdep_objects 9612 9613# Dependencies to place before the objects being linked to create a 9614# shared library. 9615predeps=$lt_predeps 9616 9617# Dependencies to place after the objects being linked to create a 9618# shared library. 9619postdeps=$lt_postdeps 9620 9621# The library search path used internally by the compiler when linking 9622# a shared library. 9623compiler_lib_search_path=$lt_compiler_lib_search_path 9624 9625# Method to check whether dependent libraries are shared objects. 9626deplibs_check_method=$lt_deplibs_check_method 9627 9628# Command to use when deplibs_check_method == file_magic. 9629file_magic_cmd=$lt_file_magic_cmd 9630 9631# Flag that allows shared libraries with undefined symbols to be built. 9632allow_undefined_flag=$lt_allow_undefined_flag 9633 9634# Flag that forces no undefined symbols. 9635no_undefined_flag=$lt_no_undefined_flag 9636 9637# Commands used to finish a libtool library installation in a directory. 9638finish_cmds=$lt_finish_cmds 9639 9640# Same as above, but a single script fragment to be evaled but not shown. 9641finish_eval=$lt_finish_eval 9642 9643# Take the output of nm and produce a listing of raw symbols and C names. 9644global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9645 9646# Transform the output of nm in a proper C declaration 9647global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9648 9649# Transform the output of nm in a C name address pair 9650global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9651 9652# This is the shared library runtime path variable. 9653runpath_var=$runpath_var 9654 9655# This is the shared library path variable. 9656shlibpath_var=$shlibpath_var 9657 9658# Is shlibpath searched before the hard-coded library search path? 9659shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9660 9661# How to hardcode a shared library path into an executable. 9662hardcode_action=$hardcode_action 9663 9664# Whether we should hardcode library paths into libraries. 9665hardcode_into_libs=$hardcode_into_libs 9666 9667# Flag to hardcode \$libdir into a binary during linking. 9668# This must work even if \$libdir does not exist. 9669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9670 9671# If ld is used when linking, flag to hardcode \$libdir into 9672# a binary during linking. This must work even if \$libdir does 9673# not exist. 9674hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9675 9676# Whether we need a single -rpath flag with a separated argument. 9677hardcode_libdir_separator=$lt_hardcode_libdir_separator 9678 9679# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9680# resulting binary. 9681hardcode_direct=$hardcode_direct 9682 9683# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9684# resulting binary. 9685hardcode_minus_L=$hardcode_minus_L 9686 9687# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9688# the resulting binary. 9689hardcode_shlibpath_var=$hardcode_shlibpath_var 9690 9691# Set to yes if building a shared library automatically hardcodes DIR into the library 9692# and all subsequent libraries and executables linked against it. 9693hardcode_automatic=$hardcode_automatic 9694 9695# Variables whose values should be saved in libtool wrapper scripts and 9696# restored at relink time. 9697variables_saved_for_relink="$variables_saved_for_relink" 9698 9699# Whether libtool must link a program against all its dependency libraries. 9700link_all_deplibs=$link_all_deplibs 9701 9702# Compile-time system search path for libraries 9703sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9704 9705# Run-time system search path for libraries 9706sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9707 9708# Fix the shell variable \$srcfile for the compiler. 9709fix_srcfile_path="$fix_srcfile_path" 9710 9711# Set to yes if exported symbols are required. 9712always_export_symbols=$always_export_symbols 9713 9714# The commands to list exported symbols. 9715export_symbols_cmds=$lt_export_symbols_cmds 9716 9717# The commands to extract the exported symbol list from a shared archive. 9718extract_expsyms_cmds=$lt_extract_expsyms_cmds 9719 9720# Symbols that should not be listed in the preloaded symbols. 9721exclude_expsyms=$lt_exclude_expsyms 9722 9723# Symbols that must always be exported. 9724include_expsyms=$lt_include_expsyms 9725 9726# ### END LIBTOOL CONFIG 9727 9728__EOF__ 9729 9730 9731 case $host_os in 9732 aix3*) 9733 cat <<\EOF >> "$cfgfile" 9734 9735# AIX sometimes has problems with the GCC collect2 program. For some 9736# reason, if we set the COLLECT_NAMES environment variable, the problems 9737# vanish in a puff of smoke. 9738if test "X${COLLECT_NAMES+set}" != Xset; then 9739 COLLECT_NAMES= 9740 export COLLECT_NAMES 9741fi 9742EOF 9743 ;; 9744 esac 9745 9746 # We use sed instead of cat because bash on DJGPP gets confused if 9747 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9748 # text mode, it properly converts lines to CR/LF. This bash problem 9749 # is reportedly fixed, but why not run on old versions too? 9750 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9751 9752 mv -f "$cfgfile" "$ofile" || \ 9753 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9754 chmod +x "$ofile" 9755 9756else 9757 # If there is no Makefile yet, we rely on a make rule to execute 9758 # `config.status --recheck' to rerun these tests and create the 9759 # libtool script then. 9760 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9761 if test -f "$ltmain_in"; then 9762 test -f Makefile && make "$ltmain" 9763 fi 9764fi 9765 9766 9767ac_ext=c 9768ac_cpp='$CPP $CPPFLAGS' 9769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9771ac_compiler_gnu=$ac_cv_c_compiler_gnu 9772 9773CC="$lt_save_CC" 9774 9775 9776# Check whether --with-tags or --without-tags was given. 9777if test "${with_tags+set}" = set; then 9778 withval="$with_tags" 9779 tagnames="$withval" 9780fi; 9781 9782if test -f "$ltmain" && test -n "$tagnames"; then 9783 if test ! -f "${ofile}"; then 9784 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9785echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9786 fi 9787 9788 if test -z "$LTCC"; then 9789 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9790 if test -z "$LTCC"; then 9791 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9792echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9793 else 9794 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9795echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9796 fi 9797 fi 9798 if test -z "$LTCFLAGS"; then 9799 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9800 fi 9801 9802 # Extract list of available tagged configurations in $ofile. 9803 # Note that this assumes the entire list is on one line. 9804 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9805 9806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9807 for tagname in $tagnames; do 9808 IFS="$lt_save_ifs" 9809 # Check whether tagname contains only valid characters 9810 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9811 "") ;; 9812 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9813echo "$as_me: error: invalid tag name: $tagname" >&2;} 9814 { (exit 1); exit 1; }; } 9815 ;; 9816 esac 9817 9818 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9819 then 9820 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9821echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9822 { (exit 1); exit 1; }; } 9823 fi 9824 9825 # Update the list of available tags. 9826 if test -n "$tagname"; then 9827 echo appending configuration tag \"$tagname\" to $ofile 9828 9829 case $tagname in 9830 CXX) 9831 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9832 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9833 (test "X$CXX" != "Xg++"))) ; then 9834 ac_ext=cc 9835ac_cpp='$CXXCPP $CPPFLAGS' 9836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9839 9840 9841 9842 9843archive_cmds_need_lc_CXX=no 9844allow_undefined_flag_CXX= 9845always_export_symbols_CXX=no 9846archive_expsym_cmds_CXX= 9847export_dynamic_flag_spec_CXX= 9848hardcode_direct_CXX=no 9849hardcode_libdir_flag_spec_CXX= 9850hardcode_libdir_flag_spec_ld_CXX= 9851hardcode_libdir_separator_CXX= 9852hardcode_minus_L_CXX=no 9853hardcode_shlibpath_var_CXX=unsupported 9854hardcode_automatic_CXX=no 9855module_cmds_CXX= 9856module_expsym_cmds_CXX= 9857link_all_deplibs_CXX=unknown 9858old_archive_cmds_CXX=$old_archive_cmds 9859no_undefined_flag_CXX= 9860whole_archive_flag_spec_CXX= 9861enable_shared_with_static_runtimes_CXX=no 9862 9863# Dependencies to place before and after the object being linked: 9864predep_objects_CXX= 9865postdep_objects_CXX= 9866predeps_CXX= 9867postdeps_CXX= 9868compiler_lib_search_path_CXX= 9869 9870# Source file extension for C++ test sources. 9871ac_ext=cpp 9872 9873# Object file extension for compiled C++ test sources. 9874objext=o 9875objext_CXX=$objext 9876 9877# Code to be used in simple compile tests 9878lt_simple_compile_test_code="int some_variable = 0;\n" 9879 9880# Code to be used in simple link tests 9881lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9882 9883# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9884 9885# If no C compiler was specified, use CC. 9886LTCC=${LTCC-"$CC"} 9887 9888# If no C compiler flags were specified, use CFLAGS. 9889LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9890 9891# Allow CC to be a program name with arguments. 9892compiler=$CC 9893 9894 9895# save warnings/boilerplate of simple test code 9896ac_outfile=conftest.$ac_objext 9897printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9898eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9899_lt_compiler_boilerplate=`cat conftest.err` 9900$rm conftest* 9901 9902ac_outfile=conftest.$ac_objext 9903printf "$lt_simple_link_test_code" >conftest.$ac_ext 9904eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9905_lt_linker_boilerplate=`cat conftest.err` 9906$rm conftest* 9907 9908 9909# Allow CC to be a program name with arguments. 9910lt_save_CC=$CC 9911lt_save_LD=$LD 9912lt_save_GCC=$GCC 9913GCC=$GXX 9914lt_save_with_gnu_ld=$with_gnu_ld 9915lt_save_path_LD=$lt_cv_path_LD 9916if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9917 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9918else 9919 $as_unset lt_cv_prog_gnu_ld 9920fi 9921if test -n "${lt_cv_path_LDCXX+set}"; then 9922 lt_cv_path_LD=$lt_cv_path_LDCXX 9923else 9924 $as_unset lt_cv_path_LD 9925fi 9926test -z "${LDCXX+set}" || LD=$LDCXX 9927CC=${CXX-"c++"} 9928compiler=$CC 9929compiler_CXX=$CC 9930for cc_temp in $compiler""; do 9931 case $cc_temp in 9932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9934 \-*) ;; 9935 *) break;; 9936 esac 9937done 9938cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9939 9940 9941# We don't want -fno-exception wen compiling C++ code, so set the 9942# no_builtin_flag separately 9943if test "$GXX" = yes; then 9944 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9945else 9946 lt_prog_compiler_no_builtin_flag_CXX= 9947fi 9948 9949if test "$GXX" = yes; then 9950 # Set up default GNU C++ configuration 9951 9952 9953# Check whether --with-gnu-ld or --without-gnu-ld was given. 9954if test "${with_gnu_ld+set}" = set; then 9955 withval="$with_gnu_ld" 9956 test "$withval" = no || with_gnu_ld=yes 9957else 9958 with_gnu_ld=no 9959fi; 9960ac_prog=ld 9961if test "$GCC" = yes; then 9962 # Check if gcc -print-prog-name=ld gives a path. 9963 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9964echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9965 case $host in 9966 *-*-mingw*) 9967 # gcc leaves a trailing carriage return which upsets mingw 9968 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9969 *) 9970 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9971 esac 9972 case $ac_prog in 9973 # Accept absolute paths. 9974 [\\/]* | ?:[\\/]*) 9975 re_direlt='/[^/][^/]*/\.\./' 9976 # Canonicalize the pathname of ld 9977 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9978 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9979 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9980 done 9981 test -z "$LD" && LD="$ac_prog" 9982 ;; 9983 "") 9984 # If it fails, then pretend we aren't using GCC. 9985 ac_prog=ld 9986 ;; 9987 *) 9988 # If it is relative, then search for the first ld in PATH. 9989 with_gnu_ld=unknown 9990 ;; 9991 esac 9992elif test "$with_gnu_ld" = yes; then 9993 echo "$as_me:$LINENO: checking for GNU ld" >&5 9994echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9995else 9996 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9997echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9998fi 9999if test "${lt_cv_path_LD+set}" = set; then 10000 echo $ECHO_N "(cached) $ECHO_C" >&6 10001else 10002 if test -z "$LD"; then 10003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10004 for ac_dir in $PATH; do 10005 IFS="$lt_save_ifs" 10006 test -z "$ac_dir" && ac_dir=. 10007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10008 lt_cv_path_LD="$ac_dir/$ac_prog" 10009 # Check to see if the program is GNU ld. I'd rather use --version, 10010 # but apparently some variants of GNU ld only accept -v. 10011 # Break only if it was the GNU/non-GNU ld that we prefer. 10012 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10013 *GNU* | *'with BFD'*) 10014 test "$with_gnu_ld" != no && break 10015 ;; 10016 *) 10017 test "$with_gnu_ld" != yes && break 10018 ;; 10019 esac 10020 fi 10021 done 10022 IFS="$lt_save_ifs" 10023else 10024 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10025fi 10026fi 10027 10028LD="$lt_cv_path_LD" 10029if test -n "$LD"; then 10030 echo "$as_me:$LINENO: result: $LD" >&5 10031echo "${ECHO_T}$LD" >&6 10032else 10033 echo "$as_me:$LINENO: result: no" >&5 10034echo "${ECHO_T}no" >&6 10035fi 10036test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10037echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10038 { (exit 1); exit 1; }; } 10039echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10040echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10041if test "${lt_cv_prog_gnu_ld+set}" = set; then 10042 echo $ECHO_N "(cached) $ECHO_C" >&6 10043else 10044 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10045case `$LD -v 2>&1 </dev/null` in 10046*GNU* | *'with BFD'*) 10047 lt_cv_prog_gnu_ld=yes 10048 ;; 10049*) 10050 lt_cv_prog_gnu_ld=no 10051 ;; 10052esac 10053fi 10054echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10055echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10056with_gnu_ld=$lt_cv_prog_gnu_ld 10057 10058 10059 10060 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10061 # archiving commands below assume that GNU ld is being used. 10062 if test "$with_gnu_ld" = yes; then 10063 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10064 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' 10065 10066 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10067 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10068 10069 # If archive_cmds runs LD, not CC, wlarc should be empty 10070 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10071 # investigate it a little bit more. (MM) 10072 wlarc='${wl}' 10073 10074 # ancient GNU ld didn't support --whole-archive et. al. 10075 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10076 grep 'no-whole-archive' > /dev/null; then 10077 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10078 else 10079 whole_archive_flag_spec_CXX= 10080 fi 10081 else 10082 with_gnu_ld=no 10083 wlarc= 10084 10085 # A generic and very simple default shared library creation 10086 # command for GNU C++ for the case where it uses the native 10087 # linker, instead of GNU ld. If possible, this setting should 10088 # overridden to take advantage of the native linker features on 10089 # the platform it is being used on. 10090 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10091 fi 10092 10093 # Commands to make compiler produce verbose output that lists 10094 # what "hidden" libraries, object files and flags are used when 10095 # linking a shared library. 10096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10097 10098else 10099 GXX=no 10100 with_gnu_ld=no 10101 wlarc= 10102fi 10103 10104# PORTME: fill in a description of your system's C++ link characteristics 10105echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10106echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10107ld_shlibs_CXX=yes 10108case $host_os in 10109 aix3*) 10110 # FIXME: insert proper C++ library support 10111 ld_shlibs_CXX=no 10112 ;; 10113 aix4* | aix5*) 10114 if test "$host_cpu" = ia64; then 10115 # On IA64, the linker does run time linking by default, so we don't 10116 # have to do anything special. 10117 aix_use_runtimelinking=no 10118 exp_sym_flag='-Bexport' 10119 no_entry_flag="" 10120 else 10121 aix_use_runtimelinking=no 10122 10123 # Test if we are trying to use run time linking or normal 10124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10125 # need to do runtime linking. 10126 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10127 for ld_flag in $LDFLAGS; do 10128 case $ld_flag in 10129 *-brtl*) 10130 aix_use_runtimelinking=yes 10131 break 10132 ;; 10133 esac 10134 done 10135 ;; 10136 esac 10137 10138 exp_sym_flag='-bexport' 10139 no_entry_flag='-bnoentry' 10140 fi 10141 10142 # When large executables or shared objects are built, AIX ld can 10143 # have problems creating the table of contents. If linking a library 10144 # or program results in "error TOC overflow" add -mminimal-toc to 10145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10147 10148 archive_cmds_CXX='' 10149 hardcode_direct_CXX=yes 10150 hardcode_libdir_separator_CXX=':' 10151 link_all_deplibs_CXX=yes 10152 10153 if test "$GXX" = yes; then 10154 case $host_os in aix4.[012]|aix4.[012].*) 10155 # We only want to do this on AIX 4.2 and lower, the check 10156 # below for broken collect2 doesn't work under 4.3+ 10157 collect2name=`${CC} -print-prog-name=collect2` 10158 if test -f "$collect2name" && \ 10159 strings "$collect2name" | grep resolve_lib_name >/dev/null 10160 then 10161 # We have reworked collect2 10162 hardcode_direct_CXX=yes 10163 else 10164 # We have old collect2 10165 hardcode_direct_CXX=unsupported 10166 # It fails to find uninstalled libraries when the uninstalled 10167 # path is not listed in the libpath. Setting hardcode_minus_L 10168 # to unsupported forces relinking 10169 hardcode_minus_L_CXX=yes 10170 hardcode_libdir_flag_spec_CXX='-L$libdir' 10171 hardcode_libdir_separator_CXX= 10172 fi 10173 ;; 10174 esac 10175 shared_flag='-shared' 10176 if test "$aix_use_runtimelinking" = yes; then 10177 shared_flag="$shared_flag "'${wl}-G' 10178 fi 10179 else 10180 # not using gcc 10181 if test "$host_cpu" = ia64; then 10182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10183 # chokes on -Wl,-G. The following line is correct: 10184 shared_flag='-G' 10185 else 10186 if test "$aix_use_runtimelinking" = yes; then 10187 shared_flag='${wl}-G' 10188 else 10189 shared_flag='${wl}-bM:SRE' 10190 fi 10191 fi 10192 fi 10193 10194 # It seems that -bexpall does not export symbols beginning with 10195 # underscore (_), so it is better to generate a list of symbols to export. 10196 always_export_symbols_CXX=yes 10197 if test "$aix_use_runtimelinking" = yes; then 10198 # Warning - without using the other runtime loading flags (-brtl), 10199 # -berok will link without error, but may produce a broken library. 10200 allow_undefined_flag_CXX='-berok' 10201 # Determine the default libpath from the value encoded in an empty executable. 10202 cat >conftest.$ac_ext <<_ACEOF 10203/* confdefs.h. */ 10204_ACEOF 10205cat confdefs.h >>conftest.$ac_ext 10206cat >>conftest.$ac_ext <<_ACEOF 10207/* end confdefs.h. */ 10208 10209int 10210main () 10211{ 10212 10213 ; 10214 return 0; 10215} 10216_ACEOF 10217rm -f conftest.$ac_objext conftest$ac_exeext 10218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10219 (eval $ac_link) 2>conftest.er1 10220 ac_status=$? 10221 grep -v '^ *+' conftest.er1 >conftest.err 10222 rm -f conftest.er1 10223 cat conftest.err >&5 10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10225 (exit $ac_status); } && 10226 { ac_try='test -z "$ac_cxx_werror_flag" 10227 || test ! -s conftest.err' 10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10229 (eval $ac_try) 2>&5 10230 ac_status=$? 10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10232 (exit $ac_status); }; } && 10233 { ac_try='test -s conftest$ac_exeext' 10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10235 (eval $ac_try) 2>&5 10236 ac_status=$? 10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10238 (exit $ac_status); }; }; then 10239 10240aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10241}'` 10242# Check for a 64-bit object if we didn't find anything. 10243if 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; } 10244}'`; fi 10245else 10246 echo "$as_me: failed program was:" >&5 10247sed 's/^/| /' conftest.$ac_ext >&5 10248 10249fi 10250rm -f conftest.err conftest.$ac_objext \ 10251 conftest$ac_exeext conftest.$ac_ext 10252if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10253 10254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10255 10256 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" 10257 else 10258 if test "$host_cpu" = ia64; then 10259 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10260 allow_undefined_flag_CXX="-z nodefs" 10261 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" 10262 else 10263 # Determine the default libpath from the value encoded in an empty executable. 10264 cat >conftest.$ac_ext <<_ACEOF 10265/* confdefs.h. */ 10266_ACEOF 10267cat confdefs.h >>conftest.$ac_ext 10268cat >>conftest.$ac_ext <<_ACEOF 10269/* end confdefs.h. */ 10270 10271int 10272main () 10273{ 10274 10275 ; 10276 return 0; 10277} 10278_ACEOF 10279rm -f conftest.$ac_objext conftest$ac_exeext 10280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10281 (eval $ac_link) 2>conftest.er1 10282 ac_status=$? 10283 grep -v '^ *+' conftest.er1 >conftest.err 10284 rm -f conftest.er1 10285 cat conftest.err >&5 10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10287 (exit $ac_status); } && 10288 { ac_try='test -z "$ac_cxx_werror_flag" 10289 || test ! -s conftest.err' 10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10291 (eval $ac_try) 2>&5 10292 ac_status=$? 10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10294 (exit $ac_status); }; } && 10295 { ac_try='test -s conftest$ac_exeext' 10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10297 (eval $ac_try) 2>&5 10298 ac_status=$? 10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); }; }; then 10301 10302aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10303}'` 10304# Check for a 64-bit object if we didn't find anything. 10305if 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; } 10306}'`; fi 10307else 10308 echo "$as_me: failed program was:" >&5 10309sed 's/^/| /' conftest.$ac_ext >&5 10310 10311fi 10312rm -f conftest.err conftest.$ac_objext \ 10313 conftest$ac_exeext conftest.$ac_ext 10314if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10315 10316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10317 # Warning - without using the other run time loading flags, 10318 # -berok will link without error, but may produce a broken library. 10319 no_undefined_flag_CXX=' ${wl}-bernotok' 10320 allow_undefined_flag_CXX=' ${wl}-berok' 10321 # Exported symbols can be pulled into shared objects from archives 10322 whole_archive_flag_spec_CXX='$convenience' 10323 archive_cmds_need_lc_CXX=yes 10324 # This is similar to how AIX traditionally builds its shared libraries. 10325 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' 10326 fi 10327 fi 10328 ;; 10329 10330 beos*) 10331 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10332 allow_undefined_flag_CXX=unsupported 10333 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10334 # support --undefined. This deserves some investigation. FIXME 10335 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10336 else 10337 ld_shlibs_CXX=no 10338 fi 10339 ;; 10340 10341 chorus*) 10342 case $cc_basename in 10343 *) 10344 # FIXME: insert proper C++ library support 10345 ld_shlibs_CXX=no 10346 ;; 10347 esac 10348 ;; 10349 10350 cygwin* | mingw* | pw32*) 10351 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10352 # as there is no search path for DLLs. 10353 hardcode_libdir_flag_spec_CXX='-L$libdir' 10354 allow_undefined_flag_CXX=unsupported 10355 always_export_symbols_CXX=no 10356 enable_shared_with_static_runtimes_CXX=yes 10357 10358 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10359 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' 10360 # If the export-symbols file already is a .def file (1st line 10361 # is EXPORTS), use it as is; otherwise, prepend... 10362 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10363 cp $export_symbols $output_objdir/$soname.def; 10364 else 10365 echo EXPORTS > $output_objdir/$soname.def; 10366 cat $export_symbols >> $output_objdir/$soname.def; 10367 fi~ 10368 $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' 10369 else 10370 ld_shlibs_CXX=no 10371 fi 10372 ;; 10373 darwin* | rhapsody*) 10374 case $host_os in 10375 rhapsody* | darwin1.[012]) 10376 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10377 ;; 10378 *) # Darwin 1.3 on 10379 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10380 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10381 else 10382 case ${MACOSX_DEPLOYMENT_TARGET} in 10383 10.[012]) 10384 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10385 ;; 10386 10.*) 10387 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10388 ;; 10389 esac 10390 fi 10391 ;; 10392 esac 10393 archive_cmds_need_lc_CXX=no 10394 hardcode_direct_CXX=no 10395 hardcode_automatic_CXX=yes 10396 hardcode_shlibpath_var_CXX=unsupported 10397 whole_archive_flag_spec_CXX='' 10398 link_all_deplibs_CXX=yes 10399 10400 if test "$GXX" = yes ; then 10401 lt_int_apple_cc_single_mod=no 10402 output_verbose_link_cmd='echo' 10403 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10404 lt_int_apple_cc_single_mod=yes 10405 fi 10406 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10407 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10408 else 10409 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' 10410 fi 10411 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10412 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10413 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10414 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}' 10415 else 10416 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}' 10417 fi 10418 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}' 10419 else 10420 case $cc_basename in 10421 xlc*) 10422 output_verbose_link_cmd='echo' 10423 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' 10424 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10426 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}' 10427 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}' 10428 ;; 10429 *) 10430 ld_shlibs_CXX=no 10431 ;; 10432 esac 10433 fi 10434 ;; 10435 10436 dgux*) 10437 case $cc_basename in 10438 ec++*) 10439 # FIXME: insert proper C++ library support 10440 ld_shlibs_CXX=no 10441 ;; 10442 ghcx*) 10443 # Green Hills C++ Compiler 10444 # FIXME: insert proper C++ library support 10445 ld_shlibs_CXX=no 10446 ;; 10447 *) 10448 # FIXME: insert proper C++ library support 10449 ld_shlibs_CXX=no 10450 ;; 10451 esac 10452 ;; 10453 freebsd[12]*) 10454 # C++ shared libraries reported to be fairly broken before switch to ELF 10455 ld_shlibs_CXX=no 10456 ;; 10457 freebsd-elf*) 10458 archive_cmds_need_lc_CXX=no 10459 ;; 10460 freebsd* | kfreebsd*-gnu | dragonfly*) 10461 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10462 # conventions 10463 ld_shlibs_CXX=yes 10464 ;; 10465 gnu*) 10466 ;; 10467 hpux9*) 10468 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10469 hardcode_libdir_separator_CXX=: 10470 export_dynamic_flag_spec_CXX='${wl}-E' 10471 hardcode_direct_CXX=yes 10472 hardcode_minus_L_CXX=yes # Not in the search PATH, 10473 # but as the default 10474 # location of the library. 10475 10476 case $cc_basename in 10477 CC*) 10478 # FIXME: insert proper C++ library support 10479 ld_shlibs_CXX=no 10480 ;; 10481 aCC*) 10482 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' 10483 # Commands to make compiler produce verbose output that lists 10484 # what "hidden" libraries, object files and flags are used when 10485 # linking a shared library. 10486 # 10487 # There doesn't appear to be a way to prevent this compiler from 10488 # explicitly linking system object files so we need to strip them 10489 # from the output so that they don't get included in the library 10490 # dependencies. 10491 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' 10492 ;; 10493 *) 10494 if test "$GXX" = yes; then 10495 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' 10496 else 10497 # FIXME: insert proper C++ library support 10498 ld_shlibs_CXX=no 10499 fi 10500 ;; 10501 esac 10502 ;; 10503 hpux10*|hpux11*) 10504 if test $with_gnu_ld = no; then 10505 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10506 hardcode_libdir_separator_CXX=: 10507 10508 case $host_cpu in 10509 hppa*64*|ia64*) 10510 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10511 ;; 10512 *) 10513 export_dynamic_flag_spec_CXX='${wl}-E' 10514 ;; 10515 esac 10516 fi 10517 case $host_cpu in 10518 hppa*64*|ia64*) 10519 hardcode_direct_CXX=no 10520 hardcode_shlibpath_var_CXX=no 10521 ;; 10522 *) 10523 hardcode_direct_CXX=yes 10524 hardcode_minus_L_CXX=yes # Not in the search PATH, 10525 # but as the default 10526 # location of the library. 10527 ;; 10528 esac 10529 10530 case $cc_basename in 10531 CC*) 10532 # FIXME: insert proper C++ library support 10533 ld_shlibs_CXX=no 10534 ;; 10535 aCC*) 10536 case $host_cpu in 10537 hppa*64*) 10538 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10539 ;; 10540 ia64*) 10541 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10542 ;; 10543 *) 10544 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10545 ;; 10546 esac 10547 # Commands to make compiler produce verbose output that lists 10548 # what "hidden" libraries, object files and flags are used when 10549 # linking a shared library. 10550 # 10551 # There doesn't appear to be a way to prevent this compiler from 10552 # explicitly linking system object files so we need to strip them 10553 # from the output so that they don't get included in the library 10554 # dependencies. 10555 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10556 ;; 10557 *) 10558 if test "$GXX" = yes; then 10559 if test $with_gnu_ld = no; then 10560 case $host_cpu in 10561 hppa*64*) 10562 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10563 ;; 10564 ia64*) 10565 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10566 ;; 10567 *) 10568 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' 10569 ;; 10570 esac 10571 fi 10572 else 10573 # FIXME: insert proper C++ library support 10574 ld_shlibs_CXX=no 10575 fi 10576 ;; 10577 esac 10578 ;; 10579 interix3*) 10580 hardcode_direct_CXX=no 10581 hardcode_shlibpath_var_CXX=no 10582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10583 export_dynamic_flag_spec_CXX='${wl}-E' 10584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10585 # Instead, shared libraries are loaded at an image base (0x10000000 by 10586 # default) and relocated if they conflict, which is a slow very memory 10587 # consuming and fragmenting process. To avoid this, we pick a random, 10588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10589 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10590 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' 10591 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' 10592 ;; 10593 irix5* | irix6*) 10594 case $cc_basename in 10595 CC*) 10596 # SGI C++ 10597 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' 10598 10599 # Archives containing C++ object files must be created using 10600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10601 # necessary to make sure instantiated templates are included 10602 # in the archive. 10603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10604 ;; 10605 *) 10606 if test "$GXX" = yes; then 10607 if test "$with_gnu_ld" = no; then 10608 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' 10609 else 10610 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' 10611 fi 10612 fi 10613 link_all_deplibs_CXX=yes 10614 ;; 10615 esac 10616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10617 hardcode_libdir_separator_CXX=: 10618 ;; 10619 linux*) 10620 case $cc_basename in 10621 KCC*) 10622 # Kuck and Associates, Inc. (KAI) C++ Compiler 10623 10624 # KCC will only create a shared library if the output file 10625 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10626 # to its proper name (with version) after linking. 10627 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' 10628 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' 10629 # Commands to make compiler produce verbose output that lists 10630 # what "hidden" libraries, object files and flags are used when 10631 # linking a shared library. 10632 # 10633 # There doesn't appear to be a way to prevent this compiler from 10634 # explicitly linking system object files so we need to strip them 10635 # from the output so that they don't get included in the library 10636 # dependencies. 10637 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' 10638 10639 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10641 10642 # Archives containing C++ object files must be created using 10643 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10644 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10645 ;; 10646 icpc*) 10647 # Intel C++ 10648 with_gnu_ld=yes 10649 # version 8.0 and above of icpc choke on multiply defined symbols 10650 # if we add $predep_objects and $postdep_objects, however 7.1 and 10651 # earlier do not add the objects themselves. 10652 case `$CC -V 2>&1` in 10653 *"Version 7."*) 10654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10655 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' 10656 ;; 10657 *) # Version 8.0 or newer 10658 tmp_idyn= 10659 case $host_cpu in 10660 ia64*) tmp_idyn=' -i_dynamic';; 10661 esac 10662 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10663 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' 10664 ;; 10665 esac 10666 archive_cmds_need_lc_CXX=no 10667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10668 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10669 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10670 ;; 10671 pgCC*) 10672 # Portland Group C++ compiler 10673 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10674 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' 10675 10676 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10677 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10678 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' 10679 ;; 10680 cxx*) 10681 # Compaq C++ 10682 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10683 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' 10684 10685 runpath_var=LD_RUN_PATH 10686 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10687 hardcode_libdir_separator_CXX=: 10688 10689 # Commands to make compiler produce verbose output that lists 10690 # what "hidden" libraries, object files and flags are used when 10691 # linking a shared library. 10692 # 10693 # There doesn't appear to be a way to prevent this compiler from 10694 # explicitly linking system object files so we need to strip them 10695 # from the output so that they don't get included in the library 10696 # dependencies. 10697 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' 10698 ;; 10699 esac 10700 ;; 10701 lynxos*) 10702 # FIXME: insert proper C++ library support 10703 ld_shlibs_CXX=no 10704 ;; 10705 m88k*) 10706 # FIXME: insert proper C++ library support 10707 ld_shlibs_CXX=no 10708 ;; 10709 mvs*) 10710 case $cc_basename in 10711 cxx*) 10712 # FIXME: insert proper C++ library support 10713 ld_shlibs_CXX=no 10714 ;; 10715 *) 10716 # FIXME: insert proper C++ library support 10717 ld_shlibs_CXX=no 10718 ;; 10719 esac 10720 ;; 10721 netbsd*) 10722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10723 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10724 wlarc= 10725 hardcode_libdir_flag_spec_CXX='-R$libdir' 10726 hardcode_direct_CXX=yes 10727 hardcode_shlibpath_var_CXX=no 10728 fi 10729 # Workaround some broken pre-1.5 toolchains 10730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10731 ;; 10732 openbsd2*) 10733 # C++ shared libraries are fairly broken 10734 ld_shlibs_CXX=no 10735 ;; 10736 openbsd*) 10737 hardcode_direct_CXX=yes 10738 hardcode_shlibpath_var_CXX=no 10739 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10742 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10743 export_dynamic_flag_spec_CXX='${wl}-E' 10744 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10745 fi 10746 output_verbose_link_cmd='echo' 10747 ;; 10748 osf3*) 10749 case $cc_basename in 10750 KCC*) 10751 # Kuck and Associates, Inc. (KAI) C++ Compiler 10752 10753 # KCC will only create a shared library if the output file 10754 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10755 # to its proper name (with version) after linking. 10756 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' 10757 10758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10759 hardcode_libdir_separator_CXX=: 10760 10761 # Archives containing C++ object files must be created using 10762 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10763 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10764 10765 ;; 10766 RCC*) 10767 # Rational C++ 2.4.1 10768 # FIXME: insert proper C++ library support 10769 ld_shlibs_CXX=no 10770 ;; 10771 cxx*) 10772 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10773 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' 10774 10775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10776 hardcode_libdir_separator_CXX=: 10777 10778 # Commands to make compiler produce verbose output that lists 10779 # what "hidden" libraries, object files and flags are used when 10780 # linking a shared library. 10781 # 10782 # There doesn't appear to be a way to prevent this compiler from 10783 # explicitly linking system object files so we need to strip them 10784 # from the output so that they don't get included in the library 10785 # dependencies. 10786 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' 10787 ;; 10788 *) 10789 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10790 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10791 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' 10792 10793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10794 hardcode_libdir_separator_CXX=: 10795 10796 # Commands to make compiler produce verbose output that lists 10797 # what "hidden" libraries, object files and flags are used when 10798 # linking a shared library. 10799 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10800 10801 else 10802 # FIXME: insert proper C++ library support 10803 ld_shlibs_CXX=no 10804 fi 10805 ;; 10806 esac 10807 ;; 10808 osf4* | osf5*) 10809 case $cc_basename in 10810 KCC*) 10811 # Kuck and Associates, Inc. (KAI) C++ Compiler 10812 10813 # KCC will only create a shared library if the output file 10814 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10815 # to its proper name (with version) after linking. 10816 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' 10817 10818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10819 hardcode_libdir_separator_CXX=: 10820 10821 # Archives containing C++ object files must be created using 10822 # the KAI C++ compiler. 10823 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10824 ;; 10825 RCC*) 10826 # Rational C++ 2.4.1 10827 # FIXME: insert proper C++ library support 10828 ld_shlibs_CXX=no 10829 ;; 10830 cxx*) 10831 allow_undefined_flag_CXX=' -expect_unresolved \*' 10832 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' 10833 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10834 echo "-hidden">> $lib.exp~ 10835 $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~ 10836 $rm $lib.exp' 10837 10838 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10839 hardcode_libdir_separator_CXX=: 10840 10841 # Commands to make compiler produce verbose output that lists 10842 # what "hidden" libraries, object files and flags are used when 10843 # linking a shared library. 10844 # 10845 # There doesn't appear to be a way to prevent this compiler from 10846 # explicitly linking system object files so we need to strip them 10847 # from the output so that they don't get included in the library 10848 # dependencies. 10849 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' 10850 ;; 10851 *) 10852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10854 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' 10855 10856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10857 hardcode_libdir_separator_CXX=: 10858 10859 # Commands to make compiler produce verbose output that lists 10860 # what "hidden" libraries, object files and flags are used when 10861 # linking a shared library. 10862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10863 10864 else 10865 # FIXME: insert proper C++ library support 10866 ld_shlibs_CXX=no 10867 fi 10868 ;; 10869 esac 10870 ;; 10871 psos*) 10872 # FIXME: insert proper C++ library support 10873 ld_shlibs_CXX=no 10874 ;; 10875 sunos4*) 10876 case $cc_basename in 10877 CC*) 10878 # Sun C++ 4.x 10879 # FIXME: insert proper C++ library support 10880 ld_shlibs_CXX=no 10881 ;; 10882 lcc*) 10883 # Lucid 10884 # FIXME: insert proper C++ library support 10885 ld_shlibs_CXX=no 10886 ;; 10887 *) 10888 # FIXME: insert proper C++ library support 10889 ld_shlibs_CXX=no 10890 ;; 10891 esac 10892 ;; 10893 solaris*) 10894 case $cc_basename in 10895 CC*) 10896 # Sun C++ 4.2, 5.x and Centerline C++ 10897 archive_cmds_need_lc_CXX=yes 10898 no_undefined_flag_CXX=' -zdefs' 10899 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10900 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10901 $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' 10902 10903 hardcode_libdir_flag_spec_CXX='-R$libdir' 10904 hardcode_shlibpath_var_CXX=no 10905 case $host_os in 10906 solaris2.[0-5] | solaris2.[0-5].*) ;; 10907 *) 10908 # The C++ compiler is used as linker so we must use $wl 10909 # flag to pass the commands to the underlying system 10910 # linker. We must also pass each convience library through 10911 # to the system linker between allextract/defaultextract. 10912 # The C++ compiler will combine linker options so we 10913 # cannot just pass the convience library names through 10914 # without $wl. 10915 # Supported since Solaris 2.6 (maybe 2.5.1?) 10916 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' 10917 ;; 10918 esac 10919 link_all_deplibs_CXX=yes 10920 10921 output_verbose_link_cmd='echo' 10922 10923 # Archives containing C++ object files must be created using 10924 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10925 # necessary to make sure instantiated templates are included 10926 # in the archive. 10927 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10928 ;; 10929 gcx*) 10930 # Green Hills C++ Compiler 10931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10932 10933 # The C++ compiler must be used to create the archive. 10934 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10935 ;; 10936 *) 10937 # GNU C++ compiler with Solaris linker 10938 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10939 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10940 if $CC --version | grep -v '^2\.7' > /dev/null; then 10941 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10942 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10943 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10944 10945 # Commands to make compiler produce verbose output that lists 10946 # what "hidden" libraries, object files and flags are used when 10947 # linking a shared library. 10948 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10949 else 10950 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10951 # platform. 10952 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10953 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10954 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10955 10956 # Commands to make compiler produce verbose output that lists 10957 # what "hidden" libraries, object files and flags are used when 10958 # linking a shared library. 10959 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10960 fi 10961 10962 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10963 fi 10964 ;; 10965 esac 10966 ;; 10967 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10968 no_undefined_flag_CXX='${wl}-z,text' 10969 archive_cmds_need_lc_CXX=no 10970 hardcode_shlibpath_var_CXX=no 10971 runpath_var='LD_RUN_PATH' 10972 10973 case $cc_basename in 10974 CC*) 10975 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10976 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10977 ;; 10978 *) 10979 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10980 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10981 ;; 10982 esac 10983 ;; 10984 sysv5* | sco3.2v5* | sco5v6*) 10985 # Note: We can NOT use -z defs as we might desire, because we do not 10986 # link with -lc, and that would cause any symbols used from libc to 10987 # always be unresolved, which means just about no library would 10988 # ever link correctly. If we're not using GNU ld we use -z text 10989 # though, which does catch some bad symbols but isn't as heavy-handed 10990 # as -z defs. 10991 # For security reasons, it is highly recommended that you always 10992 # use absolute paths for naming shared libraries, and exclude the 10993 # DT_RUNPATH tag from executables and libraries. But doing so 10994 # requires that you compile everything twice, which is a pain. 10995 # So that behaviour is only enabled if SCOABSPATH is set to a 10996 # non-empty value in the environment. Most likely only useful for 10997 # creating official distributions of packages. 10998 # This is a hack until libtool officially supports absolute path 10999 # names for shared libraries. 11000 no_undefined_flag_CXX='${wl}-z,text' 11001 allow_undefined_flag_CXX='${wl}-z,nodefs' 11002 archive_cmds_need_lc_CXX=no 11003 hardcode_shlibpath_var_CXX=no 11004 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11005 hardcode_libdir_separator_CXX=':' 11006 link_all_deplibs_CXX=yes 11007 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11008 runpath_var='LD_RUN_PATH' 11009 11010 case $cc_basename in 11011 CC*) 11012 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11013 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11014 ;; 11015 *) 11016 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11017 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11018 ;; 11019 esac 11020 ;; 11021 tandem*) 11022 case $cc_basename in 11023 NCC*) 11024 # NonStop-UX NCC 3.20 11025 # FIXME: insert proper C++ library support 11026 ld_shlibs_CXX=no 11027 ;; 11028 *) 11029 # FIXME: insert proper C++ library support 11030 ld_shlibs_CXX=no 11031 ;; 11032 esac 11033 ;; 11034 vxworks*) 11035 # FIXME: insert proper C++ library support 11036 ld_shlibs_CXX=no 11037 ;; 11038 *) 11039 # FIXME: insert proper C++ library support 11040 ld_shlibs_CXX=no 11041 ;; 11042esac 11043echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11044echo "${ECHO_T}$ld_shlibs_CXX" >&6 11045test "$ld_shlibs_CXX" = no && can_build_shared=no 11046 11047GCC_CXX="$GXX" 11048LD_CXX="$LD" 11049 11050 11051cat > conftest.$ac_ext <<EOF 11052class Foo 11053{ 11054public: 11055 Foo (void) { a = 0; } 11056private: 11057 int a; 11058}; 11059EOF 11060 11061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11062 (eval $ac_compile) 2>&5 11063 ac_status=$? 11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11065 (exit $ac_status); }; then 11066 # Parse the compiler output and extract the necessary 11067 # objects, libraries and library flags. 11068 11069 # Sentinel used to keep track of whether or not we are before 11070 # the conftest object file. 11071 pre_test_object_deps_done=no 11072 11073 # The `*' in the case matches for architectures that use `case' in 11074 # $output_verbose_cmd can trigger glob expansion during the loop 11075 # eval without this substitution. 11076 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11077 11078 for p in `eval $output_verbose_link_cmd`; do 11079 case $p in 11080 11081 -L* | -R* | -l*) 11082 # Some compilers place space between "-{L,R}" and the path. 11083 # Remove the space. 11084 if test $p = "-L" \ 11085 || test $p = "-R"; then 11086 prev=$p 11087 continue 11088 else 11089 prev= 11090 fi 11091 11092 if test "$pre_test_object_deps_done" = no; then 11093 case $p in 11094 -L* | -R*) 11095 # Internal compiler library paths should come after those 11096 # provided the user. The postdeps already come after the 11097 # user supplied libs so there is no need to process them. 11098 if test -z "$compiler_lib_search_path_CXX"; then 11099 compiler_lib_search_path_CXX="${prev}${p}" 11100 else 11101 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11102 fi 11103 ;; 11104 # The "-l" case would never come before the object being 11105 # linked, so don't bother handling this case. 11106 esac 11107 else 11108 if test -z "$postdeps_CXX"; then 11109 postdeps_CXX="${prev}${p}" 11110 else 11111 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11112 fi 11113 fi 11114 ;; 11115 11116 *.$objext) 11117 # This assumes that the test object file only shows up 11118 # once in the compiler output. 11119 if test "$p" = "conftest.$objext"; then 11120 pre_test_object_deps_done=yes 11121 continue 11122 fi 11123 11124 if test "$pre_test_object_deps_done" = no; then 11125 if test -z "$predep_objects_CXX"; then 11126 predep_objects_CXX="$p" 11127 else 11128 predep_objects_CXX="$predep_objects_CXX $p" 11129 fi 11130 else 11131 if test -z "$postdep_objects_CXX"; then 11132 postdep_objects_CXX="$p" 11133 else 11134 postdep_objects_CXX="$postdep_objects_CXX $p" 11135 fi 11136 fi 11137 ;; 11138 11139 *) ;; # Ignore the rest. 11140 11141 esac 11142 done 11143 11144 # Clean up. 11145 rm -f a.out a.exe 11146else 11147 echo "libtool.m4: error: problem compiling CXX test program" 11148fi 11149 11150$rm -f confest.$objext 11151 11152# PORTME: override above test on systems where it is broken 11153case $host_os in 11154interix3*) 11155 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11156 # hack all around it, let's just trust "g++" to DTRT. 11157 predep_objects_CXX= 11158 postdep_objects_CXX= 11159 postdeps_CXX= 11160 ;; 11161 11162solaris*) 11163 case $cc_basename in 11164 CC*) 11165 # Adding this requires a known-good setup of shared libraries for 11166 # Sun compiler versions before 5.6, else PIC objects from an old 11167 # archive will be linked into the output, leading to subtle bugs. 11168 postdeps_CXX='-lCstd -lCrun' 11169 ;; 11170 esac 11171 ;; 11172esac 11173 11174 11175case " $postdeps_CXX " in 11176*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11177esac 11178 11179lt_prog_compiler_wl_CXX= 11180lt_prog_compiler_pic_CXX= 11181lt_prog_compiler_static_CXX= 11182 11183echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11184echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11185 11186 # C++ specific cases for pic, static, wl, etc. 11187 if test "$GXX" = yes; then 11188 lt_prog_compiler_wl_CXX='-Wl,' 11189 lt_prog_compiler_static_CXX='-static' 11190 11191 case $host_os in 11192 aix*) 11193 # All AIX code is PIC. 11194 if test "$host_cpu" = ia64; then 11195 # AIX 5 now supports IA64 processor 11196 lt_prog_compiler_static_CXX='-Bstatic' 11197 fi 11198 ;; 11199 amigaos*) 11200 # FIXME: we need at least 68020 code to build shared libraries, but 11201 # adding the `-m68020' flag to GCC prevents building anything better, 11202 # like `-m68040'. 11203 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11204 ;; 11205 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11206 # PIC is the default for these OSes. 11207 ;; 11208 mingw* | os2* | pw32*) 11209 # This hack is so that the source file can tell whether it is being 11210 # built for inclusion in a dll (and should export symbols for example). 11211 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11212 ;; 11213 darwin* | rhapsody*) 11214 # PIC is the default on this platform 11215 # Common symbols not allowed in MH_DYLIB files 11216 lt_prog_compiler_pic_CXX='-fno-common' 11217 ;; 11218 *djgpp*) 11219 # DJGPP does not support shared libraries at all 11220 lt_prog_compiler_pic_CXX= 11221 ;; 11222 interix3*) 11223 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11224 # Instead, we relocate shared libraries at runtime. 11225 ;; 11226 sysv4*MP*) 11227 if test -d /usr/nec; then 11228 lt_prog_compiler_pic_CXX=-Kconform_pic 11229 fi 11230 ;; 11231 hpux*) 11232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11233 # not for PA HP-UX. 11234 case $host_cpu in 11235 hppa*64*|ia64*) 11236 ;; 11237 *) 11238 lt_prog_compiler_pic_CXX='-fPIC' 11239 ;; 11240 esac 11241 ;; 11242 *) 11243 lt_prog_compiler_pic_CXX='-fPIC' 11244 ;; 11245 esac 11246 else 11247 case $host_os in 11248 aix4* | aix5*) 11249 # All AIX code is PIC. 11250 if test "$host_cpu" = ia64; then 11251 # AIX 5 now supports IA64 processor 11252 lt_prog_compiler_static_CXX='-Bstatic' 11253 else 11254 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11255 fi 11256 ;; 11257 chorus*) 11258 case $cc_basename in 11259 cxch68*) 11260 # Green Hills C++ Compiler 11261 # _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" 11262 ;; 11263 esac 11264 ;; 11265 darwin*) 11266 # PIC is the default on this platform 11267 # Common symbols not allowed in MH_DYLIB files 11268 case $cc_basename in 11269 xlc*) 11270 lt_prog_compiler_pic_CXX='-qnocommon' 11271 lt_prog_compiler_wl_CXX='-Wl,' 11272 ;; 11273 esac 11274 ;; 11275 dgux*) 11276 case $cc_basename in 11277 ec++*) 11278 lt_prog_compiler_pic_CXX='-KPIC' 11279 ;; 11280 ghcx*) 11281 # Green Hills C++ Compiler 11282 lt_prog_compiler_pic_CXX='-pic' 11283 ;; 11284 *) 11285 ;; 11286 esac 11287 ;; 11288 freebsd* | kfreebsd*-gnu | dragonfly*) 11289 # FreeBSD uses GNU C++ 11290 ;; 11291 hpux9* | hpux10* | hpux11*) 11292 case $cc_basename in 11293 CC*) 11294 lt_prog_compiler_wl_CXX='-Wl,' 11295 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11296 if test "$host_cpu" != ia64; then 11297 lt_prog_compiler_pic_CXX='+Z' 11298 fi 11299 ;; 11300 aCC*) 11301 lt_prog_compiler_wl_CXX='-Wl,' 11302 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11303 case $host_cpu in 11304 hppa*64*|ia64*) 11305 # +Z the default 11306 ;; 11307 *) 11308 lt_prog_compiler_pic_CXX='+Z' 11309 ;; 11310 esac 11311 ;; 11312 *) 11313 ;; 11314 esac 11315 ;; 11316 interix*) 11317 # This is c89, which is MS Visual C++ (no shared libs) 11318 # Anyone wants to do a port? 11319 ;; 11320 irix5* | irix6* | nonstopux*) 11321 case $cc_basename in 11322 CC*) 11323 lt_prog_compiler_wl_CXX='-Wl,' 11324 lt_prog_compiler_static_CXX='-non_shared' 11325 # CC pic flag -KPIC is the default. 11326 ;; 11327 *) 11328 ;; 11329 esac 11330 ;; 11331 linux*) 11332 case $cc_basename in 11333 KCC*) 11334 # KAI C++ Compiler 11335 lt_prog_compiler_wl_CXX='--backend -Wl,' 11336 lt_prog_compiler_pic_CXX='-fPIC' 11337 ;; 11338 icpc* | ecpc*) 11339 # Intel C++ 11340 lt_prog_compiler_wl_CXX='-Wl,' 11341 lt_prog_compiler_pic_CXX='-KPIC' 11342 lt_prog_compiler_static_CXX='-static' 11343 ;; 11344 pgCC*) 11345 # Portland Group C++ compiler. 11346 lt_prog_compiler_wl_CXX='-Wl,' 11347 lt_prog_compiler_pic_CXX='-fpic' 11348 lt_prog_compiler_static_CXX='-Bstatic' 11349 ;; 11350 cxx*) 11351 # Compaq C++ 11352 # Make sure the PIC flag is empty. It appears that all Alpha 11353 # Linux and Compaq Tru64 Unix objects are PIC. 11354 lt_prog_compiler_pic_CXX= 11355 lt_prog_compiler_static_CXX='-non_shared' 11356 ;; 11357 *) 11358 ;; 11359 esac 11360 ;; 11361 lynxos*) 11362 ;; 11363 m88k*) 11364 ;; 11365 mvs*) 11366 case $cc_basename in 11367 cxx*) 11368 lt_prog_compiler_pic_CXX='-W c,exportall' 11369 ;; 11370 *) 11371 ;; 11372 esac 11373 ;; 11374 netbsd*) 11375 ;; 11376 osf3* | osf4* | osf5*) 11377 case $cc_basename in 11378 KCC*) 11379 lt_prog_compiler_wl_CXX='--backend -Wl,' 11380 ;; 11381 RCC*) 11382 # Rational C++ 2.4.1 11383 lt_prog_compiler_pic_CXX='-pic' 11384 ;; 11385 cxx*) 11386 # Digital/Compaq C++ 11387 lt_prog_compiler_wl_CXX='-Wl,' 11388 # Make sure the PIC flag is empty. It appears that all Alpha 11389 # Linux and Compaq Tru64 Unix objects are PIC. 11390 lt_prog_compiler_pic_CXX= 11391 lt_prog_compiler_static_CXX='-non_shared' 11392 ;; 11393 *) 11394 ;; 11395 esac 11396 ;; 11397 psos*) 11398 ;; 11399 solaris*) 11400 case $cc_basename in 11401 CC*) 11402 # Sun C++ 4.2, 5.x and Centerline C++ 11403 lt_prog_compiler_pic_CXX='-KPIC' 11404 lt_prog_compiler_static_CXX='-Bstatic' 11405 lt_prog_compiler_wl_CXX='-Qoption ld ' 11406 ;; 11407 gcx*) 11408 # Green Hills C++ Compiler 11409 lt_prog_compiler_pic_CXX='-PIC' 11410 ;; 11411 *) 11412 ;; 11413 esac 11414 ;; 11415 sunos4*) 11416 case $cc_basename in 11417 CC*) 11418 # Sun C++ 4.x 11419 lt_prog_compiler_pic_CXX='-pic' 11420 lt_prog_compiler_static_CXX='-Bstatic' 11421 ;; 11422 lcc*) 11423 # Lucid 11424 lt_prog_compiler_pic_CXX='-pic' 11425 ;; 11426 *) 11427 ;; 11428 esac 11429 ;; 11430 tandem*) 11431 case $cc_basename in 11432 NCC*) 11433 # NonStop-UX NCC 3.20 11434 lt_prog_compiler_pic_CXX='-KPIC' 11435 ;; 11436 *) 11437 ;; 11438 esac 11439 ;; 11440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11441 case $cc_basename in 11442 CC*) 11443 lt_prog_compiler_wl_CXX='-Wl,' 11444 lt_prog_compiler_pic_CXX='-KPIC' 11445 lt_prog_compiler_static_CXX='-Bstatic' 11446 ;; 11447 esac 11448 ;; 11449 vxworks*) 11450 ;; 11451 *) 11452 lt_prog_compiler_can_build_shared_CXX=no 11453 ;; 11454 esac 11455 fi 11456 11457echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11458echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11459 11460# 11461# Check to make sure the PIC flag actually works. 11462# 11463if test -n "$lt_prog_compiler_pic_CXX"; then 11464 11465echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11466echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11467if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11468 echo $ECHO_N "(cached) $ECHO_C" >&6 11469else 11470 lt_prog_compiler_pic_works_CXX=no 11471 ac_outfile=conftest.$ac_objext 11472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11473 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11474 # Insert the option either (1) after the last *FLAGS variable, or 11475 # (2) before a word containing "conftest.", or (3) at the end. 11476 # Note that $ac_compile itself does not contain backslashes and begins 11477 # with a dollar sign (not a hyphen), so the echo should work correctly. 11478 # The option is referenced via a variable to avoid confusing sed. 11479 lt_compile=`echo "$ac_compile" | $SED \ 11480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11482 -e 's:$: $lt_compiler_flag:'` 11483 (eval echo "\"\$as_me:11483: $lt_compile\"" >&5) 11484 (eval "$lt_compile" 2>conftest.err) 11485 ac_status=$? 11486 cat conftest.err >&5 11487 echo "$as_me:11487: \$? = $ac_status" >&5 11488 if (exit $ac_status) && test -s "$ac_outfile"; then 11489 # The compiler can only warn and ignore the option if not recognized 11490 # So say no if there are warnings other than the usual output. 11491 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11493 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11494 lt_prog_compiler_pic_works_CXX=yes 11495 fi 11496 fi 11497 $rm conftest* 11498 11499fi 11500echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11501echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11502 11503if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11504 case $lt_prog_compiler_pic_CXX in 11505 "" | " "*) ;; 11506 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11507 esac 11508else 11509 lt_prog_compiler_pic_CXX= 11510 lt_prog_compiler_can_build_shared_CXX=no 11511fi 11512 11513fi 11514case $host_os in 11515 # For platforms which do not support PIC, -DPIC is meaningless: 11516 *djgpp*) 11517 lt_prog_compiler_pic_CXX= 11518 ;; 11519 *) 11520 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11521 ;; 11522esac 11523 11524# 11525# Check to make sure the static flag actually works. 11526# 11527wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11528echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11529echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11530if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11531 echo $ECHO_N "(cached) $ECHO_C" >&6 11532else 11533 lt_prog_compiler_static_works_CXX=no 11534 save_LDFLAGS="$LDFLAGS" 11535 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11536 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11537 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11538 # The linker can only warn and ignore the option if not recognized 11539 # So say no if there are warnings 11540 if test -s conftest.err; then 11541 # Append any errors to the config.log. 11542 cat conftest.err 1>&5 11543 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11545 if diff conftest.exp conftest.er2 >/dev/null; then 11546 lt_prog_compiler_static_works_CXX=yes 11547 fi 11548 else 11549 lt_prog_compiler_static_works_CXX=yes 11550 fi 11551 fi 11552 $rm conftest* 11553 LDFLAGS="$save_LDFLAGS" 11554 11555fi 11556echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11557echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11558 11559if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11560 : 11561else 11562 lt_prog_compiler_static_CXX= 11563fi 11564 11565 11566echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11567echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11568if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11569 echo $ECHO_N "(cached) $ECHO_C" >&6 11570else 11571 lt_cv_prog_compiler_c_o_CXX=no 11572 $rm -r conftest 2>/dev/null 11573 mkdir conftest 11574 cd conftest 11575 mkdir out 11576 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11577 11578 lt_compiler_flag="-o out/conftest2.$ac_objext" 11579 # Insert the option either (1) after the last *FLAGS variable, or 11580 # (2) before a word containing "conftest.", or (3) at the end. 11581 # Note that $ac_compile itself does not contain backslashes and begins 11582 # with a dollar sign (not a hyphen), so the echo should work correctly. 11583 lt_compile=`echo "$ac_compile" | $SED \ 11584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11586 -e 's:$: $lt_compiler_flag:'` 11587 (eval echo "\"\$as_me:11587: $lt_compile\"" >&5) 11588 (eval "$lt_compile" 2>out/conftest.err) 11589 ac_status=$? 11590 cat out/conftest.err >&5 11591 echo "$as_me:11591: \$? = $ac_status" >&5 11592 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11593 then 11594 # The compiler can only warn and ignore the option if not recognized 11595 # So say no if there are warnings 11596 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11599 lt_cv_prog_compiler_c_o_CXX=yes 11600 fi 11601 fi 11602 chmod u+w . 2>&5 11603 $rm conftest* 11604 # SGI C++ compiler will create directory out/ii_files/ for 11605 # template instantiation 11606 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11607 $rm out/* && rmdir out 11608 cd .. 11609 rmdir conftest 11610 $rm conftest* 11611 11612fi 11613echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11614echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11615 11616 11617hard_links="nottested" 11618if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11619 # do not overwrite the value of need_locks provided by the user 11620 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11621echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11622 hard_links=yes 11623 $rm conftest* 11624 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11625 touch conftest.a 11626 ln conftest.a conftest.b 2>&5 || hard_links=no 11627 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11628 echo "$as_me:$LINENO: result: $hard_links" >&5 11629echo "${ECHO_T}$hard_links" >&6 11630 if test "$hard_links" = no; then 11631 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11632echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11633 need_locks=warn 11634 fi 11635else 11636 need_locks=no 11637fi 11638 11639echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11640echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11641 11642 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11643 case $host_os in 11644 aix4* | aix5*) 11645 # If we're using GNU nm, then we don't want the "-C" option. 11646 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11647 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11648 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' 11649 else 11650 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' 11651 fi 11652 ;; 11653 pw32*) 11654 export_symbols_cmds_CXX="$ltdll_cmds" 11655 ;; 11656 cygwin* | mingw*) 11657 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' 11658 ;; 11659 *) 11660 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11661 ;; 11662 esac 11663 11664echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11665echo "${ECHO_T}$ld_shlibs_CXX" >&6 11666test "$ld_shlibs_CXX" = no && can_build_shared=no 11667 11668# 11669# Do we need to explicitly link libc? 11670# 11671case "x$archive_cmds_need_lc_CXX" in 11672x|xyes) 11673 # Assume -lc should be added 11674 archive_cmds_need_lc_CXX=yes 11675 11676 if test "$enable_shared" = yes && test "$GCC" = yes; then 11677 case $archive_cmds_CXX in 11678 *'~'*) 11679 # FIXME: we may have to deal with multi-command sequences. 11680 ;; 11681 '$CC '*) 11682 # Test whether the compiler implicitly links with -lc since on some 11683 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11684 # to ld, don't add -lc before -lgcc. 11685 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11686echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11687 $rm conftest* 11688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11689 11690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11691 (eval $ac_compile) 2>&5 11692 ac_status=$? 11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11694 (exit $ac_status); } 2>conftest.err; then 11695 soname=conftest 11696 lib=conftest 11697 libobjs=conftest.$ac_objext 11698 deplibs= 11699 wl=$lt_prog_compiler_wl_CXX 11700 pic_flag=$lt_prog_compiler_pic_CXX 11701 compiler_flags=-v 11702 linker_flags=-v 11703 verstring= 11704 output_objdir=. 11705 libname=conftest 11706 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11707 allow_undefined_flag_CXX= 11708 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11709 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11710 ac_status=$? 11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11712 (exit $ac_status); } 11713 then 11714 archive_cmds_need_lc_CXX=no 11715 else 11716 archive_cmds_need_lc_CXX=yes 11717 fi 11718 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11719 else 11720 cat conftest.err 1>&5 11721 fi 11722 $rm conftest* 11723 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11724echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11725 ;; 11726 esac 11727 fi 11728 ;; 11729esac 11730 11731echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11732echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11733library_names_spec= 11734libname_spec='lib$name' 11735soname_spec= 11736shrext_cmds=".so" 11737postinstall_cmds= 11738postuninstall_cmds= 11739finish_cmds= 11740finish_eval= 11741shlibpath_var= 11742shlibpath_overrides_runpath=unknown 11743version_type=none 11744dynamic_linker="$host_os ld.so" 11745sys_lib_dlsearch_path_spec="/lib /usr/lib" 11746if test "$GCC" = yes; then 11747 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11748 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11749 # if the path contains ";" then we assume it to be the separator 11750 # otherwise default to the standard path separator (i.e. ":") - it is 11751 # assumed that no part of a normal pathname contains ";" but that should 11752 # okay in the real world where ";" in dirpaths is itself problematic. 11753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11754 else 11755 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11756 fi 11757else 11758 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11759fi 11760need_lib_prefix=unknown 11761hardcode_into_libs=no 11762 11763# when you set need_version to no, make sure it does not cause -set_version 11764# flags to be left without arguments 11765need_version=unknown 11766 11767case $host_os in 11768aix3*) 11769 version_type=linux 11770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11771 shlibpath_var=LIBPATH 11772 11773 # AIX 3 has no versioning support, so we append a major version to the name. 11774 soname_spec='${libname}${release}${shared_ext}$major' 11775 ;; 11776 11777aix4* | aix5*) 11778 version_type=linux 11779 need_lib_prefix=no 11780 need_version=no 11781 hardcode_into_libs=yes 11782 if test "$host_cpu" = ia64; then 11783 # AIX 5 supports IA64 11784 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11785 shlibpath_var=LD_LIBRARY_PATH 11786 else 11787 # With GCC up to 2.95.x, collect2 would create an import file 11788 # for dependence libraries. The import file would start with 11789 # the line `#! .'. This would cause the generated library to 11790 # depend on `.', always an invalid library. This was fixed in 11791 # development snapshots of GCC prior to 3.0. 11792 case $host_os in 11793 aix4 | aix4.[01] | aix4.[01].*) 11794 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11795 echo ' yes ' 11796 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11797 : 11798 else 11799 can_build_shared=no 11800 fi 11801 ;; 11802 esac 11803 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11804 # soname into executable. Probably we can add versioning support to 11805 # collect2, so additional links can be useful in future. 11806 if test "$aix_use_runtimelinking" = yes; then 11807 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11808 # instead of lib<name>.a to let people know that these are not 11809 # typical AIX shared libraries. 11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11811 else 11812 # We preserve .a as extension for shared libraries through AIX4.2 11813 # and later when we are not doing run time linking. 11814 library_names_spec='${libname}${release}.a $libname.a' 11815 soname_spec='${libname}${release}${shared_ext}$major' 11816 fi 11817 shlibpath_var=LIBPATH 11818 fi 11819 ;; 11820 11821amigaos*) 11822 library_names_spec='$libname.ixlibrary $libname.a' 11823 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11824 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' 11825 ;; 11826 11827beos*) 11828 library_names_spec='${libname}${shared_ext}' 11829 dynamic_linker="$host_os ld.so" 11830 shlibpath_var=LIBRARY_PATH 11831 ;; 11832 11833bsdi[45]*) 11834 version_type=linux 11835 need_version=no 11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11837 soname_spec='${libname}${release}${shared_ext}$major' 11838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11839 shlibpath_var=LD_LIBRARY_PATH 11840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11842 # the default ld.so.conf also contains /usr/contrib/lib and 11843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11844 # libtool to hard-code these into programs 11845 ;; 11846 11847cygwin* | mingw* | pw32*) 11848 version_type=windows 11849 shrext_cmds=".dll" 11850 need_version=no 11851 need_lib_prefix=no 11852 11853 case $GCC,$host_os in 11854 yes,cygwin* | yes,mingw* | yes,pw32*) 11855 library_names_spec='$libname.dll.a' 11856 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11857 postinstall_cmds='base_file=`basename \${file}`~ 11858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11859 dldir=$destdir/`dirname \$dlpath`~ 11860 test -d \$dldir || mkdir -p \$dldir~ 11861 $install_prog $dir/$dlname \$dldir/$dlname~ 11862 chmod a+x \$dldir/$dlname' 11863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11864 dlpath=$dir/\$dldll~ 11865 $rm \$dlpath' 11866 shlibpath_overrides_runpath=yes 11867 11868 case $host_os in 11869 cygwin*) 11870 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11871 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11872 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11873 ;; 11874 mingw*) 11875 # MinGW DLLs use traditional 'lib' prefix 11876 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11877 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11878 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11879 # It is most probably a Windows format PATH printed by 11880 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11881 # path with ; separators, and with drive letters. We can handle the 11882 # drive letters (cygwin fileutils understands them), so leave them, 11883 # especially as we might pass files found there to a mingw objdump, 11884 # which wouldn't understand a cygwinified path. Ahh. 11885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11886 else 11887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11888 fi 11889 ;; 11890 pw32*) 11891 # pw32 DLLs use 'pw' prefix rather than 'lib' 11892 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11893 ;; 11894 esac 11895 ;; 11896 11897 *) 11898 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11899 ;; 11900 esac 11901 dynamic_linker='Win32 ld.exe' 11902 # FIXME: first we should search . and the directory the executable is in 11903 shlibpath_var=PATH 11904 ;; 11905 11906darwin* | rhapsody*) 11907 dynamic_linker="$host_os dyld" 11908 version_type=darwin 11909 need_lib_prefix=no 11910 need_version=no 11911 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11912 soname_spec='${libname}${release}${major}$shared_ext' 11913 shlibpath_overrides_runpath=yes 11914 shlibpath_var=DYLD_LIBRARY_PATH 11915 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11916 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11917 if test "$GCC" = yes; then 11918 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"` 11919 else 11920 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11921 fi 11922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11923 ;; 11924 11925dgux*) 11926 version_type=linux 11927 need_lib_prefix=no 11928 need_version=no 11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11930 soname_spec='${libname}${release}${shared_ext}$major' 11931 shlibpath_var=LD_LIBRARY_PATH 11932 ;; 11933 11934freebsd1*) 11935 dynamic_linker=no 11936 ;; 11937 11938kfreebsd*-gnu) 11939 version_type=linux 11940 need_lib_prefix=no 11941 need_version=no 11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11943 soname_spec='${libname}${release}${shared_ext}$major' 11944 shlibpath_var=LD_LIBRARY_PATH 11945 shlibpath_overrides_runpath=no 11946 hardcode_into_libs=yes 11947 dynamic_linker='GNU ld.so' 11948 ;; 11949 11950freebsd* | dragonfly*) 11951 # DragonFly does not have aout. When/if they implement a new 11952 # versioning mechanism, adjust this. 11953 if test -x /usr/bin/objformat; then 11954 objformat=`/usr/bin/objformat` 11955 else 11956 case $host_os in 11957 freebsd[123]*) objformat=aout ;; 11958 *) objformat=elf ;; 11959 esac 11960 fi 11961 version_type=freebsd-$objformat 11962 case $version_type in 11963 freebsd-elf*) 11964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11965 need_version=no 11966 need_lib_prefix=no 11967 ;; 11968 freebsd-*) 11969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11970 need_version=yes 11971 ;; 11972 esac 11973 shlibpath_var=LD_LIBRARY_PATH 11974 case $host_os in 11975 freebsd2*) 11976 shlibpath_overrides_runpath=yes 11977 ;; 11978 freebsd3.[01]* | freebsdelf3.[01]*) 11979 shlibpath_overrides_runpath=yes 11980 hardcode_into_libs=yes 11981 ;; 11982 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11983 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11984 shlibpath_overrides_runpath=no 11985 hardcode_into_libs=yes 11986 ;; 11987 freebsd*) # from 4.6 on 11988 shlibpath_overrides_runpath=yes 11989 hardcode_into_libs=yes 11990 ;; 11991 esac 11992 ;; 11993 11994gnu*) 11995 version_type=linux 11996 need_lib_prefix=no 11997 need_version=no 11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11999 soname_spec='${libname}${release}${shared_ext}$major' 12000 shlibpath_var=LD_LIBRARY_PATH 12001 hardcode_into_libs=yes 12002 ;; 12003 12004hpux9* | hpux10* | hpux11*) 12005 # Give a soname corresponding to the major version so that dld.sl refuses to 12006 # link against other versions. 12007 version_type=sunos 12008 need_lib_prefix=no 12009 need_version=no 12010 case $host_cpu in 12011 ia64*) 12012 shrext_cmds='.so' 12013 hardcode_into_libs=yes 12014 dynamic_linker="$host_os dld.so" 12015 shlibpath_var=LD_LIBRARY_PATH 12016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12018 soname_spec='${libname}${release}${shared_ext}$major' 12019 if test "X$HPUX_IA64_MODE" = X32; then 12020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12021 else 12022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12023 fi 12024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12025 ;; 12026 hppa*64*) 12027 shrext_cmds='.sl' 12028 hardcode_into_libs=yes 12029 dynamic_linker="$host_os dld.sl" 12030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12033 soname_spec='${libname}${release}${shared_ext}$major' 12034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12036 ;; 12037 *) 12038 shrext_cmds='.sl' 12039 dynamic_linker="$host_os dld.sl" 12040 shlibpath_var=SHLIB_PATH 12041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12043 soname_spec='${libname}${release}${shared_ext}$major' 12044 ;; 12045 esac 12046 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12047 postinstall_cmds='chmod 555 $lib' 12048 ;; 12049 12050interix3*) 12051 version_type=linux 12052 need_lib_prefix=no 12053 need_version=no 12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12055 soname_spec='${libname}${release}${shared_ext}$major' 12056 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12057 shlibpath_var=LD_LIBRARY_PATH 12058 shlibpath_overrides_runpath=no 12059 hardcode_into_libs=yes 12060 ;; 12061 12062irix5* | irix6* | nonstopux*) 12063 case $host_os in 12064 nonstopux*) version_type=nonstopux ;; 12065 *) 12066 if test "$lt_cv_prog_gnu_ld" = yes; then 12067 version_type=linux 12068 else 12069 version_type=irix 12070 fi ;; 12071 esac 12072 need_lib_prefix=no 12073 need_version=no 12074 soname_spec='${libname}${release}${shared_ext}$major' 12075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12076 case $host_os in 12077 irix5* | nonstopux*) 12078 libsuff= shlibsuff= 12079 ;; 12080 *) 12081 case $LD in # libtool.m4 will add one of these switches to LD 12082 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12083 libsuff= shlibsuff= libmagic=32-bit;; 12084 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12085 libsuff=32 shlibsuff=N32 libmagic=N32;; 12086 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12087 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12088 *) libsuff= shlibsuff= libmagic=never-match;; 12089 esac 12090 ;; 12091 esac 12092 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12093 shlibpath_overrides_runpath=no 12094 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12095 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12096 hardcode_into_libs=yes 12097 ;; 12098 12099# No shared lib support for Linux oldld, aout, or coff. 12100linux*oldld* | linux*aout* | linux*coff*) 12101 dynamic_linker=no 12102 ;; 12103 12104# This must be Linux ELF. 12105linux*) 12106 version_type=linux 12107 need_lib_prefix=no 12108 need_version=no 12109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12110 soname_spec='${libname}${release}${shared_ext}$major' 12111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12112 shlibpath_var=LD_LIBRARY_PATH 12113 shlibpath_overrides_runpath=no 12114 # This implies no fast_install, which is unacceptable. 12115 # Some rework will be needed to allow for fast_install 12116 # before this can be enabled. 12117 hardcode_into_libs=yes 12118 12119 # Append ld.so.conf contents to the search path 12120 if test -f /etc/ld.so.conf; then 12121 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' ' '` 12122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12123 fi 12124 12125 # We used to test for /lib/ld.so.1 and disable shared libraries on 12126 # powerpc, because MkLinux only supported shared libraries with the 12127 # GNU dynamic linker. Since this was broken with cross compilers, 12128 # most powerpc-linux boxes support dynamic linking these days and 12129 # people can always --disable-shared, the test was removed, and we 12130 # assume the GNU/Linux dynamic linker is in use. 12131 dynamic_linker='GNU/Linux ld.so' 12132 ;; 12133 12134knetbsd*-gnu) 12135 version_type=linux 12136 need_lib_prefix=no 12137 need_version=no 12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12139 soname_spec='${libname}${release}${shared_ext}$major' 12140 shlibpath_var=LD_LIBRARY_PATH 12141 shlibpath_overrides_runpath=no 12142 hardcode_into_libs=yes 12143 dynamic_linker='GNU ld.so' 12144 ;; 12145 12146netbsd*) 12147 version_type=sunos 12148 need_lib_prefix=no 12149 need_version=no 12150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12153 dynamic_linker='NetBSD (a.out) ld.so' 12154 else 12155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12156 soname_spec='${libname}${release}${shared_ext}$major' 12157 dynamic_linker='NetBSD ld.elf_so' 12158 fi 12159 shlibpath_var=LD_LIBRARY_PATH 12160 shlibpath_overrides_runpath=yes 12161 hardcode_into_libs=yes 12162 ;; 12163 12164newsos6) 12165 version_type=linux 12166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12167 shlibpath_var=LD_LIBRARY_PATH 12168 shlibpath_overrides_runpath=yes 12169 ;; 12170 12171nto-qnx*) 12172 version_type=linux 12173 need_lib_prefix=no 12174 need_version=no 12175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12176 soname_spec='${libname}${release}${shared_ext}$major' 12177 shlibpath_var=LD_LIBRARY_PATH 12178 shlibpath_overrides_runpath=yes 12179 ;; 12180 12181openbsd*) 12182 version_type=sunos 12183 sys_lib_dlsearch_path_spec="/usr/lib" 12184 need_lib_prefix=no 12185 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12186 case $host_os in 12187 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12188 *) need_version=no ;; 12189 esac 12190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12192 shlibpath_var=LD_LIBRARY_PATH 12193 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12194 case $host_os in 12195 openbsd2.[89] | openbsd2.[89].*) 12196 shlibpath_overrides_runpath=no 12197 ;; 12198 *) 12199 shlibpath_overrides_runpath=yes 12200 ;; 12201 esac 12202 else 12203 shlibpath_overrides_runpath=yes 12204 fi 12205 ;; 12206 12207os2*) 12208 libname_spec='$name' 12209 shrext_cmds=".dll" 12210 need_lib_prefix=no 12211 library_names_spec='$libname${shared_ext} $libname.a' 12212 dynamic_linker='OS/2 ld.exe' 12213 shlibpath_var=LIBPATH 12214 ;; 12215 12216osf3* | osf4* | osf5*) 12217 version_type=osf 12218 need_lib_prefix=no 12219 need_version=no 12220 soname_spec='${libname}${release}${shared_ext}$major' 12221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12222 shlibpath_var=LD_LIBRARY_PATH 12223 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12224 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12225 ;; 12226 12227solaris*) 12228 version_type=linux 12229 need_lib_prefix=no 12230 need_version=no 12231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12232 soname_spec='${libname}${release}${shared_ext}$major' 12233 shlibpath_var=LD_LIBRARY_PATH 12234 shlibpath_overrides_runpath=yes 12235 hardcode_into_libs=yes 12236 # ldd complains unless libraries are executable 12237 postinstall_cmds='chmod +x $lib' 12238 ;; 12239 12240sunos4*) 12241 version_type=sunos 12242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12243 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12244 shlibpath_var=LD_LIBRARY_PATH 12245 shlibpath_overrides_runpath=yes 12246 if test "$with_gnu_ld" = yes; then 12247 need_lib_prefix=no 12248 fi 12249 need_version=yes 12250 ;; 12251 12252sysv4 | sysv4.3*) 12253 version_type=linux 12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12255 soname_spec='${libname}${release}${shared_ext}$major' 12256 shlibpath_var=LD_LIBRARY_PATH 12257 case $host_vendor in 12258 sni) 12259 shlibpath_overrides_runpath=no 12260 need_lib_prefix=no 12261 export_dynamic_flag_spec='${wl}-Blargedynsym' 12262 runpath_var=LD_RUN_PATH 12263 ;; 12264 siemens) 12265 need_lib_prefix=no 12266 ;; 12267 motorola) 12268 need_lib_prefix=no 12269 need_version=no 12270 shlibpath_overrides_runpath=no 12271 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12272 ;; 12273 esac 12274 ;; 12275 12276sysv4*MP*) 12277 if test -d /usr/nec ;then 12278 version_type=linux 12279 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12280 soname_spec='$libname${shared_ext}.$major' 12281 shlibpath_var=LD_LIBRARY_PATH 12282 fi 12283 ;; 12284 12285sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12286 version_type=freebsd-elf 12287 need_lib_prefix=no 12288 need_version=no 12289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12290 soname_spec='${libname}${release}${shared_ext}$major' 12291 shlibpath_var=LD_LIBRARY_PATH 12292 hardcode_into_libs=yes 12293 if test "$with_gnu_ld" = yes; then 12294 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12295 shlibpath_overrides_runpath=no 12296 else 12297 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12298 shlibpath_overrides_runpath=yes 12299 case $host_os in 12300 sco3.2v5*) 12301 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12302 ;; 12303 esac 12304 fi 12305 sys_lib_dlsearch_path_spec='/usr/lib' 12306 ;; 12307 12308uts4*) 12309 version_type=linux 12310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12311 soname_spec='${libname}${release}${shared_ext}$major' 12312 shlibpath_var=LD_LIBRARY_PATH 12313 ;; 12314 12315*) 12316 dynamic_linker=no 12317 ;; 12318esac 12319echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12320echo "${ECHO_T}$dynamic_linker" >&6 12321test "$dynamic_linker" = no && can_build_shared=no 12322 12323variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12324if test "$GCC" = yes; then 12325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12326fi 12327 12328echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12329echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12330hardcode_action_CXX= 12331if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12332 test -n "$runpath_var_CXX" || \ 12333 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12334 12335 # We can hardcode non-existant directories. 12336 if test "$hardcode_direct_CXX" != no && 12337 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12338 # have to relink, otherwise we might link with an installed library 12339 # when we should be linking with a yet-to-be-installed one 12340 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12341 test "$hardcode_minus_L_CXX" != no; then 12342 # Linking always hardcodes the temporary library directory. 12343 hardcode_action_CXX=relink 12344 else 12345 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12346 hardcode_action_CXX=immediate 12347 fi 12348else 12349 # We cannot hardcode anything, or else we can only hardcode existing 12350 # directories. 12351 hardcode_action_CXX=unsupported 12352fi 12353echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12354echo "${ECHO_T}$hardcode_action_CXX" >&6 12355 12356if test "$hardcode_action_CXX" = relink; then 12357 # Fast installation is not supported 12358 enable_fast_install=no 12359elif test "$shlibpath_overrides_runpath" = yes || 12360 test "$enable_shared" = no; then 12361 # Fast installation is not necessary 12362 enable_fast_install=needless 12363fi 12364 12365 12366# The else clause should only fire when bootstrapping the 12367# libtool distribution, otherwise you forgot to ship ltmain.sh 12368# with your package, and you will get complaints that there are 12369# no rules to generate ltmain.sh. 12370if test -f "$ltmain"; then 12371 # See if we are running on zsh, and set the options which allow our commands through 12372 # without removal of \ escapes. 12373 if test -n "${ZSH_VERSION+set}" ; then 12374 setopt NO_GLOB_SUBST 12375 fi 12376 # Now quote all the things that may contain metacharacters while being 12377 # careful not to overquote the AC_SUBSTed values. We take copies of the 12378 # variables and quote the copies for generation of the libtool script. 12379 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12380 SED SHELL STRIP \ 12381 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12382 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12383 deplibs_check_method reload_flag reload_cmds need_locks \ 12384 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12385 lt_cv_sys_global_symbol_to_c_name_address \ 12386 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12387 old_postinstall_cmds old_postuninstall_cmds \ 12388 compiler_CXX \ 12389 CC_CXX \ 12390 LD_CXX \ 12391 lt_prog_compiler_wl_CXX \ 12392 lt_prog_compiler_pic_CXX \ 12393 lt_prog_compiler_static_CXX \ 12394 lt_prog_compiler_no_builtin_flag_CXX \ 12395 export_dynamic_flag_spec_CXX \ 12396 thread_safe_flag_spec_CXX \ 12397 whole_archive_flag_spec_CXX \ 12398 enable_shared_with_static_runtimes_CXX \ 12399 old_archive_cmds_CXX \ 12400 old_archive_from_new_cmds_CXX \ 12401 predep_objects_CXX \ 12402 postdep_objects_CXX \ 12403 predeps_CXX \ 12404 postdeps_CXX \ 12405 compiler_lib_search_path_CXX \ 12406 archive_cmds_CXX \ 12407 archive_expsym_cmds_CXX \ 12408 postinstall_cmds_CXX \ 12409 postuninstall_cmds_CXX \ 12410 old_archive_from_expsyms_cmds_CXX \ 12411 allow_undefined_flag_CXX \ 12412 no_undefined_flag_CXX \ 12413 export_symbols_cmds_CXX \ 12414 hardcode_libdir_flag_spec_CXX \ 12415 hardcode_libdir_flag_spec_ld_CXX \ 12416 hardcode_libdir_separator_CXX \ 12417 hardcode_automatic_CXX \ 12418 module_cmds_CXX \ 12419 module_expsym_cmds_CXX \ 12420 lt_cv_prog_compiler_c_o_CXX \ 12421 exclude_expsyms_CXX \ 12422 include_expsyms_CXX; do 12423 12424 case $var in 12425 old_archive_cmds_CXX | \ 12426 old_archive_from_new_cmds_CXX | \ 12427 archive_cmds_CXX | \ 12428 archive_expsym_cmds_CXX | \ 12429 module_cmds_CXX | \ 12430 module_expsym_cmds_CXX | \ 12431 old_archive_from_expsyms_cmds_CXX | \ 12432 export_symbols_cmds_CXX | \ 12433 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12434 postinstall_cmds | postuninstall_cmds | \ 12435 old_postinstall_cmds | old_postuninstall_cmds | \ 12436 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12437 # Double-quote double-evaled strings. 12438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12439 ;; 12440 *) 12441 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12442 ;; 12443 esac 12444 done 12445 12446 case $lt_echo in 12447 *'\$0 --fallback-echo"') 12448 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12449 ;; 12450 esac 12451 12452cfgfile="$ofile" 12453 12454 cat <<__EOF__ >> "$cfgfile" 12455# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12456 12457# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12458 12459# Shell to use when invoking shell scripts. 12460SHELL=$lt_SHELL 12461 12462# Whether or not to build shared libraries. 12463build_libtool_libs=$enable_shared 12464 12465# Whether or not to build static libraries. 12466build_old_libs=$enable_static 12467 12468# Whether or not to add -lc for building shared libraries. 12469build_libtool_need_lc=$archive_cmds_need_lc_CXX 12470 12471# Whether or not to disallow shared libs when runtime libs are static 12472allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12473 12474# Whether or not to optimize for fast installation. 12475fast_install=$enable_fast_install 12476 12477# The host system. 12478host_alias=$host_alias 12479host=$host 12480host_os=$host_os 12481 12482# The build system. 12483build_alias=$build_alias 12484build=$build 12485build_os=$build_os 12486 12487# An echo program that does not interpret backslashes. 12488echo=$lt_echo 12489 12490# The archiver. 12491AR=$lt_AR 12492AR_FLAGS=$lt_AR_FLAGS 12493 12494# A C compiler. 12495LTCC=$lt_LTCC 12496 12497# LTCC compiler flags. 12498LTCFLAGS=$lt_LTCFLAGS 12499 12500# A language-specific compiler. 12501CC=$lt_compiler_CXX 12502 12503# Is the compiler the GNU C compiler? 12504with_gcc=$GCC_CXX 12505 12506# An ERE matcher. 12507EGREP=$lt_EGREP 12508 12509# The linker used to build libraries. 12510LD=$lt_LD_CXX 12511 12512# Whether we need hard or soft links. 12513LN_S=$lt_LN_S 12514 12515# A BSD-compatible nm program. 12516NM=$lt_NM 12517 12518# A symbol stripping program 12519STRIP=$lt_STRIP 12520 12521# Used to examine libraries when file_magic_cmd begins "file" 12522MAGIC_CMD=$MAGIC_CMD 12523 12524# Used on cygwin: DLL creation program. 12525DLLTOOL="$DLLTOOL" 12526 12527# Used on cygwin: object dumper. 12528OBJDUMP="$OBJDUMP" 12529 12530# Used on cygwin: assembler. 12531AS="$AS" 12532 12533# The name of the directory that contains temporary libtool files. 12534objdir=$objdir 12535 12536# How to create reloadable object files. 12537reload_flag=$lt_reload_flag 12538reload_cmds=$lt_reload_cmds 12539 12540# How to pass a linker flag through the compiler. 12541wl=$lt_lt_prog_compiler_wl_CXX 12542 12543# Object file suffix (normally "o"). 12544objext="$ac_objext" 12545 12546# Old archive suffix (normally "a"). 12547libext="$libext" 12548 12549# Shared library suffix (normally ".so"). 12550shrext_cmds='$shrext_cmds' 12551 12552# Executable file suffix (normally ""). 12553exeext="$exeext" 12554 12555# Additional compiler flags for building library objects. 12556pic_flag=$lt_lt_prog_compiler_pic_CXX 12557pic_mode=$pic_mode 12558 12559# What is the maximum length of a command? 12560max_cmd_len=$lt_cv_sys_max_cmd_len 12561 12562# Does compiler simultaneously support -c and -o options? 12563compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12564 12565# Must we lock files when doing compilation? 12566need_locks=$lt_need_locks 12567 12568# Do we need the lib prefix for modules? 12569need_lib_prefix=$need_lib_prefix 12570 12571# Do we need a version for libraries? 12572need_version=$need_version 12573 12574# Whether dlopen is supported. 12575dlopen_support=$enable_dlopen 12576 12577# Whether dlopen of programs is supported. 12578dlopen_self=$enable_dlopen_self 12579 12580# Whether dlopen of statically linked programs is supported. 12581dlopen_self_static=$enable_dlopen_self_static 12582 12583# Compiler flag to prevent dynamic linking. 12584link_static_flag=$lt_lt_prog_compiler_static_CXX 12585 12586# Compiler flag to turn off builtin functions. 12587no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12588 12589# Compiler flag to allow reflexive dlopens. 12590export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12591 12592# Compiler flag to generate shared objects directly from archives. 12593whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12594 12595# Compiler flag to generate thread-safe objects. 12596thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12597 12598# Library versioning type. 12599version_type=$version_type 12600 12601# Format of library name prefix. 12602libname_spec=$lt_libname_spec 12603 12604# List of archive names. First name is the real one, the rest are links. 12605# The last name is the one that the linker finds with -lNAME. 12606library_names_spec=$lt_library_names_spec 12607 12608# The coded name of the library, if different from the real name. 12609soname_spec=$lt_soname_spec 12610 12611# Commands used to build and install an old-style archive. 12612RANLIB=$lt_RANLIB 12613old_archive_cmds=$lt_old_archive_cmds_CXX 12614old_postinstall_cmds=$lt_old_postinstall_cmds 12615old_postuninstall_cmds=$lt_old_postuninstall_cmds 12616 12617# Create an old-style archive from a shared archive. 12618old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12619 12620# Create a temporary old-style archive to link instead of a shared archive. 12621old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12622 12623# Commands used to build and install a shared archive. 12624archive_cmds=$lt_archive_cmds_CXX 12625archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12626postinstall_cmds=$lt_postinstall_cmds 12627postuninstall_cmds=$lt_postuninstall_cmds 12628 12629# Commands used to build a loadable module (assumed same as above if empty) 12630module_cmds=$lt_module_cmds_CXX 12631module_expsym_cmds=$lt_module_expsym_cmds_CXX 12632 12633# Commands to strip libraries. 12634old_striplib=$lt_old_striplib 12635striplib=$lt_striplib 12636 12637# Dependencies to place before the objects being linked to create a 12638# shared library. 12639predep_objects=$lt_predep_objects_CXX 12640 12641# Dependencies to place after the objects being linked to create a 12642# shared library. 12643postdep_objects=$lt_postdep_objects_CXX 12644 12645# Dependencies to place before the objects being linked to create a 12646# shared library. 12647predeps=$lt_predeps_CXX 12648 12649# Dependencies to place after the objects being linked to create a 12650# shared library. 12651postdeps=$lt_postdeps_CXX 12652 12653# The library search path used internally by the compiler when linking 12654# a shared library. 12655compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12656 12657# Method to check whether dependent libraries are shared objects. 12658deplibs_check_method=$lt_deplibs_check_method 12659 12660# Command to use when deplibs_check_method == file_magic. 12661file_magic_cmd=$lt_file_magic_cmd 12662 12663# Flag that allows shared libraries with undefined symbols to be built. 12664allow_undefined_flag=$lt_allow_undefined_flag_CXX 12665 12666# Flag that forces no undefined symbols. 12667no_undefined_flag=$lt_no_undefined_flag_CXX 12668 12669# Commands used to finish a libtool library installation in a directory. 12670finish_cmds=$lt_finish_cmds 12671 12672# Same as above, but a single script fragment to be evaled but not shown. 12673finish_eval=$lt_finish_eval 12674 12675# Take the output of nm and produce a listing of raw symbols and C names. 12676global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12677 12678# Transform the output of nm in a proper C declaration 12679global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12680 12681# Transform the output of nm in a C name address pair 12682global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12683 12684# This is the shared library runtime path variable. 12685runpath_var=$runpath_var 12686 12687# This is the shared library path variable. 12688shlibpath_var=$shlibpath_var 12689 12690# Is shlibpath searched before the hard-coded library search path? 12691shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12692 12693# How to hardcode a shared library path into an executable. 12694hardcode_action=$hardcode_action_CXX 12695 12696# Whether we should hardcode library paths into libraries. 12697hardcode_into_libs=$hardcode_into_libs 12698 12699# Flag to hardcode \$libdir into a binary during linking. 12700# This must work even if \$libdir does not exist. 12701hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12702 12703# If ld is used when linking, flag to hardcode \$libdir into 12704# a binary during linking. This must work even if \$libdir does 12705# not exist. 12706hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12707 12708# Whether we need a single -rpath flag with a separated argument. 12709hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12710 12711# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12712# resulting binary. 12713hardcode_direct=$hardcode_direct_CXX 12714 12715# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12716# resulting binary. 12717hardcode_minus_L=$hardcode_minus_L_CXX 12718 12719# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12720# the resulting binary. 12721hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12722 12723# Set to yes if building a shared library automatically hardcodes DIR into the library 12724# and all subsequent libraries and executables linked against it. 12725hardcode_automatic=$hardcode_automatic_CXX 12726 12727# Variables whose values should be saved in libtool wrapper scripts and 12728# restored at relink time. 12729variables_saved_for_relink="$variables_saved_for_relink" 12730 12731# Whether libtool must link a program against all its dependency libraries. 12732link_all_deplibs=$link_all_deplibs_CXX 12733 12734# Compile-time system search path for libraries 12735sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12736 12737# Run-time system search path for libraries 12738sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12739 12740# Fix the shell variable \$srcfile for the compiler. 12741fix_srcfile_path="$fix_srcfile_path_CXX" 12742 12743# Set to yes if exported symbols are required. 12744always_export_symbols=$always_export_symbols_CXX 12745 12746# The commands to list exported symbols. 12747export_symbols_cmds=$lt_export_symbols_cmds_CXX 12748 12749# The commands to extract the exported symbol list from a shared archive. 12750extract_expsyms_cmds=$lt_extract_expsyms_cmds 12751 12752# Symbols that should not be listed in the preloaded symbols. 12753exclude_expsyms=$lt_exclude_expsyms_CXX 12754 12755# Symbols that must always be exported. 12756include_expsyms=$lt_include_expsyms_CXX 12757 12758# ### END LIBTOOL TAG CONFIG: $tagname 12759 12760__EOF__ 12761 12762 12763else 12764 # If there is no Makefile yet, we rely on a make rule to execute 12765 # `config.status --recheck' to rerun these tests and create the 12766 # libtool script then. 12767 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12768 if test -f "$ltmain_in"; then 12769 test -f Makefile && make "$ltmain" 12770 fi 12771fi 12772 12773 12774ac_ext=c 12775ac_cpp='$CPP $CPPFLAGS' 12776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12778ac_compiler_gnu=$ac_cv_c_compiler_gnu 12779 12780CC=$lt_save_CC 12781LDCXX=$LD 12782LD=$lt_save_LD 12783GCC=$lt_save_GCC 12784with_gnu_ldcxx=$with_gnu_ld 12785with_gnu_ld=$lt_save_with_gnu_ld 12786lt_cv_path_LDCXX=$lt_cv_path_LD 12787lt_cv_path_LD=$lt_save_path_LD 12788lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12789lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12790 12791 else 12792 tagname="" 12793 fi 12794 ;; 12795 12796 F77) 12797 if test -n "$F77" && test "X$F77" != "Xno"; then 12798 12799ac_ext=f 12800ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12801ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12802ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12803 12804 12805archive_cmds_need_lc_F77=no 12806allow_undefined_flag_F77= 12807always_export_symbols_F77=no 12808archive_expsym_cmds_F77= 12809export_dynamic_flag_spec_F77= 12810hardcode_direct_F77=no 12811hardcode_libdir_flag_spec_F77= 12812hardcode_libdir_flag_spec_ld_F77= 12813hardcode_libdir_separator_F77= 12814hardcode_minus_L_F77=no 12815hardcode_automatic_F77=no 12816module_cmds_F77= 12817module_expsym_cmds_F77= 12818link_all_deplibs_F77=unknown 12819old_archive_cmds_F77=$old_archive_cmds 12820no_undefined_flag_F77= 12821whole_archive_flag_spec_F77= 12822enable_shared_with_static_runtimes_F77=no 12823 12824# Source file extension for f77 test sources. 12825ac_ext=f 12826 12827# Object file extension for compiled f77 test sources. 12828objext=o 12829objext_F77=$objext 12830 12831# Code to be used in simple compile tests 12832lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12833 12834# Code to be used in simple link tests 12835lt_simple_link_test_code=" program t\n end\n" 12836 12837# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12838 12839# If no C compiler was specified, use CC. 12840LTCC=${LTCC-"$CC"} 12841 12842# If no C compiler flags were specified, use CFLAGS. 12843LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12844 12845# Allow CC to be a program name with arguments. 12846compiler=$CC 12847 12848 12849# save warnings/boilerplate of simple test code 12850ac_outfile=conftest.$ac_objext 12851printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12852eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12853_lt_compiler_boilerplate=`cat conftest.err` 12854$rm conftest* 12855 12856ac_outfile=conftest.$ac_objext 12857printf "$lt_simple_link_test_code" >conftest.$ac_ext 12858eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12859_lt_linker_boilerplate=`cat conftest.err` 12860$rm conftest* 12861 12862 12863# Allow CC to be a program name with arguments. 12864lt_save_CC="$CC" 12865CC=${F77-"f77"} 12866compiler=$CC 12867compiler_F77=$CC 12868for cc_temp in $compiler""; do 12869 case $cc_temp in 12870 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12871 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12872 \-*) ;; 12873 *) break;; 12874 esac 12875done 12876cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12877 12878 12879echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12880echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12881echo "$as_me:$LINENO: result: $can_build_shared" >&5 12882echo "${ECHO_T}$can_build_shared" >&6 12883 12884echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12885echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12886test "$can_build_shared" = "no" && enable_shared=no 12887 12888# On AIX, shared libraries and static libraries use the same namespace, and 12889# are all built from PIC. 12890case $host_os in 12891aix3*) 12892 test "$enable_shared" = yes && enable_static=no 12893 if test -n "$RANLIB"; then 12894 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12895 postinstall_cmds='$RANLIB $lib' 12896 fi 12897 ;; 12898aix4* | aix5*) 12899 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12900 test "$enable_shared" = yes && enable_static=no 12901 fi 12902 ;; 12903esac 12904echo "$as_me:$LINENO: result: $enable_shared" >&5 12905echo "${ECHO_T}$enable_shared" >&6 12906 12907echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12908echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12909# Make sure either enable_shared or enable_static is yes. 12910test "$enable_shared" = yes || enable_static=yes 12911echo "$as_me:$LINENO: result: $enable_static" >&5 12912echo "${ECHO_T}$enable_static" >&6 12913 12914GCC_F77="$G77" 12915LD_F77="$LD" 12916 12917lt_prog_compiler_wl_F77= 12918lt_prog_compiler_pic_F77= 12919lt_prog_compiler_static_F77= 12920 12921echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12922echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12923 12924 if test "$GCC" = yes; then 12925 lt_prog_compiler_wl_F77='-Wl,' 12926 lt_prog_compiler_static_F77='-static' 12927 12928 case $host_os in 12929 aix*) 12930 # All AIX code is PIC. 12931 if test "$host_cpu" = ia64; then 12932 # AIX 5 now supports IA64 processor 12933 lt_prog_compiler_static_F77='-Bstatic' 12934 fi 12935 ;; 12936 12937 amigaos*) 12938 # FIXME: we need at least 68020 code to build shared libraries, but 12939 # adding the `-m68020' flag to GCC prevents building anything better, 12940 # like `-m68040'. 12941 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12942 ;; 12943 12944 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12945 # PIC is the default for these OSes. 12946 ;; 12947 12948 mingw* | pw32* | os2*) 12949 # This hack is so that the source file can tell whether it is being 12950 # built for inclusion in a dll (and should export symbols for example). 12951 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12952 ;; 12953 12954 darwin* | rhapsody*) 12955 # PIC is the default on this platform 12956 # Common symbols not allowed in MH_DYLIB files 12957 lt_prog_compiler_pic_F77='-fno-common' 12958 ;; 12959 12960 interix3*) 12961 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12962 # Instead, we relocate shared libraries at runtime. 12963 ;; 12964 12965 msdosdjgpp*) 12966 # Just because we use GCC doesn't mean we suddenly get shared libraries 12967 # on systems that don't support them. 12968 lt_prog_compiler_can_build_shared_F77=no 12969 enable_shared=no 12970 ;; 12971 12972 sysv4*MP*) 12973 if test -d /usr/nec; then 12974 lt_prog_compiler_pic_F77=-Kconform_pic 12975 fi 12976 ;; 12977 12978 hpux*) 12979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12980 # not for PA HP-UX. 12981 case $host_cpu in 12982 hppa*64*|ia64*) 12983 # +Z the default 12984 ;; 12985 *) 12986 lt_prog_compiler_pic_F77='-fPIC' 12987 ;; 12988 esac 12989 ;; 12990 12991 *) 12992 lt_prog_compiler_pic_F77='-fPIC' 12993 ;; 12994 esac 12995 else 12996 # PORTME Check for flag to pass linker flags through the system compiler. 12997 case $host_os in 12998 aix*) 12999 lt_prog_compiler_wl_F77='-Wl,' 13000 if test "$host_cpu" = ia64; then 13001 # AIX 5 now supports IA64 processor 13002 lt_prog_compiler_static_F77='-Bstatic' 13003 else 13004 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13005 fi 13006 ;; 13007 darwin*) 13008 # PIC is the default on this platform 13009 # Common symbols not allowed in MH_DYLIB files 13010 case $cc_basename in 13011 xlc*) 13012 lt_prog_compiler_pic_F77='-qnocommon' 13013 lt_prog_compiler_wl_F77='-Wl,' 13014 ;; 13015 esac 13016 ;; 13017 13018 mingw* | pw32* | os2*) 13019 # This hack is so that the source file can tell whether it is being 13020 # built for inclusion in a dll (and should export symbols for example). 13021 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13022 ;; 13023 13024 hpux9* | hpux10* | hpux11*) 13025 lt_prog_compiler_wl_F77='-Wl,' 13026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13027 # not for PA HP-UX. 13028 case $host_cpu in 13029 hppa*64*|ia64*) 13030 # +Z the default 13031 ;; 13032 *) 13033 lt_prog_compiler_pic_F77='+Z' 13034 ;; 13035 esac 13036 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13037 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13038 ;; 13039 13040 irix5* | irix6* | nonstopux*) 13041 lt_prog_compiler_wl_F77='-Wl,' 13042 # PIC (with -KPIC) is the default. 13043 lt_prog_compiler_static_F77='-non_shared' 13044 ;; 13045 13046 newsos6) 13047 lt_prog_compiler_pic_F77='-KPIC' 13048 lt_prog_compiler_static_F77='-Bstatic' 13049 ;; 13050 13051 linux*) 13052 case $cc_basename in 13053 icc* | ecc*) 13054 lt_prog_compiler_wl_F77='-Wl,' 13055 lt_prog_compiler_pic_F77='-KPIC' 13056 lt_prog_compiler_static_F77='-static' 13057 ;; 13058 pgcc* | pgf77* | pgf90* | pgf95*) 13059 # Portland Group compilers (*not* the Pentium gcc compiler, 13060 # which looks to be a dead project) 13061 lt_prog_compiler_wl_F77='-Wl,' 13062 lt_prog_compiler_pic_F77='-fpic' 13063 lt_prog_compiler_static_F77='-Bstatic' 13064 ;; 13065 ccc*) 13066 lt_prog_compiler_wl_F77='-Wl,' 13067 # All Alpha code is PIC. 13068 lt_prog_compiler_static_F77='-non_shared' 13069 ;; 13070 esac 13071 ;; 13072 13073 osf3* | osf4* | osf5*) 13074 lt_prog_compiler_wl_F77='-Wl,' 13075 # All OSF/1 code is PIC. 13076 lt_prog_compiler_static_F77='-non_shared' 13077 ;; 13078 13079 solaris*) 13080 lt_prog_compiler_pic_F77='-KPIC' 13081 lt_prog_compiler_static_F77='-Bstatic' 13082 case $cc_basename in 13083 f77* | f90* | f95*) 13084 lt_prog_compiler_wl_F77='-Qoption ld ';; 13085 *) 13086 lt_prog_compiler_wl_F77='-Wl,';; 13087 esac 13088 ;; 13089 13090 sunos4*) 13091 lt_prog_compiler_wl_F77='-Qoption ld ' 13092 lt_prog_compiler_pic_F77='-PIC' 13093 lt_prog_compiler_static_F77='-Bstatic' 13094 ;; 13095 13096 sysv4 | sysv4.2uw2* | sysv4.3*) 13097 lt_prog_compiler_wl_F77='-Wl,' 13098 lt_prog_compiler_pic_F77='-KPIC' 13099 lt_prog_compiler_static_F77='-Bstatic' 13100 ;; 13101 13102 sysv4*MP*) 13103 if test -d /usr/nec ;then 13104 lt_prog_compiler_pic_F77='-Kconform_pic' 13105 lt_prog_compiler_static_F77='-Bstatic' 13106 fi 13107 ;; 13108 13109 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13110 lt_prog_compiler_wl_F77='-Wl,' 13111 lt_prog_compiler_pic_F77='-KPIC' 13112 lt_prog_compiler_static_F77='-Bstatic' 13113 ;; 13114 13115 unicos*) 13116 lt_prog_compiler_wl_F77='-Wl,' 13117 lt_prog_compiler_can_build_shared_F77=no 13118 ;; 13119 13120 uts4*) 13121 lt_prog_compiler_pic_F77='-pic' 13122 lt_prog_compiler_static_F77='-Bstatic' 13123 ;; 13124 13125 *) 13126 lt_prog_compiler_can_build_shared_F77=no 13127 ;; 13128 esac 13129 fi 13130 13131echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13132echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13133 13134# 13135# Check to make sure the PIC flag actually works. 13136# 13137if test -n "$lt_prog_compiler_pic_F77"; then 13138 13139echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13140echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13141if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13142 echo $ECHO_N "(cached) $ECHO_C" >&6 13143else 13144 lt_prog_compiler_pic_works_F77=no 13145 ac_outfile=conftest.$ac_objext 13146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13147 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13148 # Insert the option either (1) after the last *FLAGS variable, or 13149 # (2) before a word containing "conftest.", or (3) at the end. 13150 # Note that $ac_compile itself does not contain backslashes and begins 13151 # with a dollar sign (not a hyphen), so the echo should work correctly. 13152 # The option is referenced via a variable to avoid confusing sed. 13153 lt_compile=`echo "$ac_compile" | $SED \ 13154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13156 -e 's:$: $lt_compiler_flag:'` 13157 (eval echo "\"\$as_me:13157: $lt_compile\"" >&5) 13158 (eval "$lt_compile" 2>conftest.err) 13159 ac_status=$? 13160 cat conftest.err >&5 13161 echo "$as_me:13161: \$? = $ac_status" >&5 13162 if (exit $ac_status) && test -s "$ac_outfile"; then 13163 # The compiler can only warn and ignore the option if not recognized 13164 # So say no if there are warnings other than the usual output. 13165 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13168 lt_prog_compiler_pic_works_F77=yes 13169 fi 13170 fi 13171 $rm conftest* 13172 13173fi 13174echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13175echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13176 13177if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13178 case $lt_prog_compiler_pic_F77 in 13179 "" | " "*) ;; 13180 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13181 esac 13182else 13183 lt_prog_compiler_pic_F77= 13184 lt_prog_compiler_can_build_shared_F77=no 13185fi 13186 13187fi 13188case $host_os in 13189 # For platforms which do not support PIC, -DPIC is meaningless: 13190 *djgpp*) 13191 lt_prog_compiler_pic_F77= 13192 ;; 13193 *) 13194 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13195 ;; 13196esac 13197 13198# 13199# Check to make sure the static flag actually works. 13200# 13201wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13202echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13203echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13204if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13205 echo $ECHO_N "(cached) $ECHO_C" >&6 13206else 13207 lt_prog_compiler_static_works_F77=no 13208 save_LDFLAGS="$LDFLAGS" 13209 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13210 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13212 # The linker can only warn and ignore the option if not recognized 13213 # So say no if there are warnings 13214 if test -s conftest.err; then 13215 # Append any errors to the config.log. 13216 cat conftest.err 1>&5 13217 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13219 if diff conftest.exp conftest.er2 >/dev/null; then 13220 lt_prog_compiler_static_works_F77=yes 13221 fi 13222 else 13223 lt_prog_compiler_static_works_F77=yes 13224 fi 13225 fi 13226 $rm conftest* 13227 LDFLAGS="$save_LDFLAGS" 13228 13229fi 13230echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13231echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13232 13233if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13234 : 13235else 13236 lt_prog_compiler_static_F77= 13237fi 13238 13239 13240echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13241echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13242if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13243 echo $ECHO_N "(cached) $ECHO_C" >&6 13244else 13245 lt_cv_prog_compiler_c_o_F77=no 13246 $rm -r conftest 2>/dev/null 13247 mkdir conftest 13248 cd conftest 13249 mkdir out 13250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13251 13252 lt_compiler_flag="-o out/conftest2.$ac_objext" 13253 # Insert the option either (1) after the last *FLAGS variable, or 13254 # (2) before a word containing "conftest.", or (3) at the end. 13255 # Note that $ac_compile itself does not contain backslashes and begins 13256 # with a dollar sign (not a hyphen), so the echo should work correctly. 13257 lt_compile=`echo "$ac_compile" | $SED \ 13258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13260 -e 's:$: $lt_compiler_flag:'` 13261 (eval echo "\"\$as_me:13261: $lt_compile\"" >&5) 13262 (eval "$lt_compile" 2>out/conftest.err) 13263 ac_status=$? 13264 cat out/conftest.err >&5 13265 echo "$as_me:13265: \$? = $ac_status" >&5 13266 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13267 then 13268 # The compiler can only warn and ignore the option if not recognized 13269 # So say no if there are warnings 13270 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13273 lt_cv_prog_compiler_c_o_F77=yes 13274 fi 13275 fi 13276 chmod u+w . 2>&5 13277 $rm conftest* 13278 # SGI C++ compiler will create directory out/ii_files/ for 13279 # template instantiation 13280 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13281 $rm out/* && rmdir out 13282 cd .. 13283 rmdir conftest 13284 $rm conftest* 13285 13286fi 13287echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13288echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13289 13290 13291hard_links="nottested" 13292if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13293 # do not overwrite the value of need_locks provided by the user 13294 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13295echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13296 hard_links=yes 13297 $rm conftest* 13298 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13299 touch conftest.a 13300 ln conftest.a conftest.b 2>&5 || hard_links=no 13301 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13302 echo "$as_me:$LINENO: result: $hard_links" >&5 13303echo "${ECHO_T}$hard_links" >&6 13304 if test "$hard_links" = no; then 13305 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13306echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13307 need_locks=warn 13308 fi 13309else 13310 need_locks=no 13311fi 13312 13313echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13314echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13315 13316 runpath_var= 13317 allow_undefined_flag_F77= 13318 enable_shared_with_static_runtimes_F77=no 13319 archive_cmds_F77= 13320 archive_expsym_cmds_F77= 13321 old_archive_From_new_cmds_F77= 13322 old_archive_from_expsyms_cmds_F77= 13323 export_dynamic_flag_spec_F77= 13324 whole_archive_flag_spec_F77= 13325 thread_safe_flag_spec_F77= 13326 hardcode_libdir_flag_spec_F77= 13327 hardcode_libdir_flag_spec_ld_F77= 13328 hardcode_libdir_separator_F77= 13329 hardcode_direct_F77=no 13330 hardcode_minus_L_F77=no 13331 hardcode_shlibpath_var_F77=unsupported 13332 link_all_deplibs_F77=unknown 13333 hardcode_automatic_F77=no 13334 module_cmds_F77= 13335 module_expsym_cmds_F77= 13336 always_export_symbols_F77=no 13337 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13338 # include_expsyms should be a list of space-separated symbols to be *always* 13339 # included in the symbol list 13340 include_expsyms_F77= 13341 # exclude_expsyms can be an extended regexp of symbols to exclude 13342 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13344 # as well as any symbol that contains `d'. 13345 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13347 # platforms (ab)use it in PIC code, but their linkers get confused if 13348 # the symbol is explicitly referenced. Since portable code cannot 13349 # rely on this symbol name, it's probably fine to never include it in 13350 # preloaded symbol tables. 13351 extract_expsyms_cmds= 13352 # Just being paranoid about ensuring that cc_basename is set. 13353 for cc_temp in $compiler""; do 13354 case $cc_temp in 13355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13357 \-*) ;; 13358 *) break;; 13359 esac 13360done 13361cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13362 13363 case $host_os in 13364 cygwin* | mingw* | pw32*) 13365 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13366 # When not using gcc, we currently assume that we are using 13367 # Microsoft Visual C++. 13368 if test "$GCC" != yes; then 13369 with_gnu_ld=no 13370 fi 13371 ;; 13372 interix*) 13373 # we just hope/assume this is gcc and not c89 (= MSVC++) 13374 with_gnu_ld=yes 13375 ;; 13376 openbsd*) 13377 with_gnu_ld=no 13378 ;; 13379 esac 13380 13381 ld_shlibs_F77=yes 13382 if test "$with_gnu_ld" = yes; then 13383 # If archive_cmds runs LD, not CC, wlarc should be empty 13384 wlarc='${wl}' 13385 13386 # Set some defaults for GNU ld with shared library support. These 13387 # are reset later if shared libraries are not supported. Putting them 13388 # here allows them to be overridden if necessary. 13389 runpath_var=LD_RUN_PATH 13390 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13391 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13392 # ancient GNU ld didn't support --whole-archive et. al. 13393 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13394 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13395 else 13396 whole_archive_flag_spec_F77= 13397 fi 13398 supports_anon_versioning=no 13399 case `$LD -v 2>/dev/null` in 13400 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13401 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13402 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13403 *\ 2.11.*) ;; # other 2.11 versions 13404 *) supports_anon_versioning=yes ;; 13405 esac 13406 13407 # See if GNU ld supports shared libraries. 13408 case $host_os in 13409 aix3* | aix4* | aix5*) 13410 # On AIX/PPC, the GNU linker is very broken 13411 if test "$host_cpu" != ia64; then 13412 ld_shlibs_F77=no 13413 cat <<EOF 1>&2 13414 13415*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13416*** to be unable to reliably create shared libraries on AIX. 13417*** Therefore, libtool is disabling shared libraries support. If you 13418*** really care for shared libraries, you may want to modify your PATH 13419*** so that a non-GNU linker is found, and then restart. 13420 13421EOF 13422 fi 13423 ;; 13424 13425 amigaos*) 13426 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)' 13427 hardcode_libdir_flag_spec_F77='-L$libdir' 13428 hardcode_minus_L_F77=yes 13429 13430 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13431 # that the semantics of dynamic libraries on AmigaOS, at least up 13432 # to version 4, is to share data among multiple programs linked 13433 # with the same dynamic library. Since this doesn't match the 13434 # behavior of shared libraries on other platforms, we can't use 13435 # them. 13436 ld_shlibs_F77=no 13437 ;; 13438 13439 beos*) 13440 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13441 allow_undefined_flag_F77=unsupported 13442 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13443 # support --undefined. This deserves some investigation. FIXME 13444 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13445 else 13446 ld_shlibs_F77=no 13447 fi 13448 ;; 13449 13450 cygwin* | mingw* | pw32*) 13451 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13452 # as there is no search path for DLLs. 13453 hardcode_libdir_flag_spec_F77='-L$libdir' 13454 allow_undefined_flag_F77=unsupported 13455 always_export_symbols_F77=no 13456 enable_shared_with_static_runtimes_F77=yes 13457 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13458 13459 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13460 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13461 # If the export-symbols file already is a .def file (1st line 13462 # is EXPORTS), use it as is; otherwise, prepend... 13463 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13464 cp $export_symbols $output_objdir/$soname.def; 13465 else 13466 echo EXPORTS > $output_objdir/$soname.def; 13467 cat $export_symbols >> $output_objdir/$soname.def; 13468 fi~ 13469 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13470 else 13471 ld_shlibs_F77=no 13472 fi 13473 ;; 13474 13475 interix3*) 13476 hardcode_direct_F77=no 13477 hardcode_shlibpath_var_F77=no 13478 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13479 export_dynamic_flag_spec_F77='${wl}-E' 13480 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13481 # Instead, shared libraries are loaded at an image base (0x10000000 by 13482 # default) and relocated if they conflict, which is a slow very memory 13483 # consuming and fragmenting process. To avoid this, we pick a random, 13484 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13485 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13486 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' 13487 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' 13488 ;; 13489 13490 linux*) 13491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13492 tmp_addflag= 13493 case $cc_basename,$host_cpu in 13494 pgcc*) # Portland Group C compiler 13495 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' 13496 tmp_addflag=' $pic_flag' 13497 ;; 13498 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13499 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' 13500 tmp_addflag=' $pic_flag -Mnomain' ;; 13501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13502 tmp_addflag=' -i_dynamic' ;; 13503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13504 tmp_addflag=' -i_dynamic -nofor_main' ;; 13505 ifc* | ifort*) # Intel Fortran compiler 13506 tmp_addflag=' -nofor_main' ;; 13507 esac 13508 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13509 13510 if test $supports_anon_versioning = yes; then 13511 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13513 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13514 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13515 fi 13516 else 13517 ld_shlibs_F77=no 13518 fi 13519 ;; 13520 13521 netbsd*) 13522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13523 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13524 wlarc= 13525 else 13526 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13527 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13528 fi 13529 ;; 13530 13531 solaris*) 13532 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13533 ld_shlibs_F77=no 13534 cat <<EOF 1>&2 13535 13536*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13537*** create shared libraries on Solaris systems. Therefore, libtool 13538*** is disabling shared libraries support. We urge you to upgrade GNU 13539*** binutils to release 2.9.1 or newer. Another option is to modify 13540*** your PATH or compiler configuration so that the native linker is 13541*** used, and then restart. 13542 13543EOF 13544 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13545 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13546 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13547 else 13548 ld_shlibs_F77=no 13549 fi 13550 ;; 13551 13552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13553 case `$LD -v 2>&1` in 13554 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13555 ld_shlibs_F77=no 13556 cat <<_LT_EOF 1>&2 13557 13558*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13559*** reliably create shared libraries on SCO systems. Therefore, libtool 13560*** is disabling shared libraries support. We urge you to upgrade GNU 13561*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13562*** your PATH or compiler configuration so that the native linker is 13563*** used, and then restart. 13564 13565_LT_EOF 13566 ;; 13567 *) 13568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13569 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13570 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13571 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13572 else 13573 ld_shlibs_F77=no 13574 fi 13575 ;; 13576 esac 13577 ;; 13578 13579 sunos4*) 13580 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13581 wlarc= 13582 hardcode_direct_F77=yes 13583 hardcode_shlibpath_var_F77=no 13584 ;; 13585 13586 *) 13587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13588 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13589 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13590 else 13591 ld_shlibs_F77=no 13592 fi 13593 ;; 13594 esac 13595 13596 if test "$ld_shlibs_F77" = no; then 13597 runpath_var= 13598 hardcode_libdir_flag_spec_F77= 13599 export_dynamic_flag_spec_F77= 13600 whole_archive_flag_spec_F77= 13601 fi 13602 else 13603 # PORTME fill in a description of your system's linker (not GNU ld) 13604 case $host_os in 13605 aix3*) 13606 allow_undefined_flag_F77=unsupported 13607 always_export_symbols_F77=yes 13608 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' 13609 # Note: this linker hardcodes the directories in LIBPATH if there 13610 # are no directories specified by -L. 13611 hardcode_minus_L_F77=yes 13612 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13613 # Neither direct hardcoding nor static linking is supported with a 13614 # broken collect2. 13615 hardcode_direct_F77=unsupported 13616 fi 13617 ;; 13618 13619 aix4* | aix5*) 13620 if test "$host_cpu" = ia64; then 13621 # On IA64, the linker does run time linking by default, so we don't 13622 # have to do anything special. 13623 aix_use_runtimelinking=no 13624 exp_sym_flag='-Bexport' 13625 no_entry_flag="" 13626 else 13627 # If we're using GNU nm, then we don't want the "-C" option. 13628 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13629 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13630 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' 13631 else 13632 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' 13633 fi 13634 aix_use_runtimelinking=no 13635 13636 # Test if we are trying to use run time linking or normal 13637 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13638 # need to do runtime linking. 13639 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13640 for ld_flag in $LDFLAGS; do 13641 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13642 aix_use_runtimelinking=yes 13643 break 13644 fi 13645 done 13646 ;; 13647 esac 13648 13649 exp_sym_flag='-bexport' 13650 no_entry_flag='-bnoentry' 13651 fi 13652 13653 # When large executables or shared objects are built, AIX ld can 13654 # have problems creating the table of contents. If linking a library 13655 # or program results in "error TOC overflow" add -mminimal-toc to 13656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13658 13659 archive_cmds_F77='' 13660 hardcode_direct_F77=yes 13661 hardcode_libdir_separator_F77=':' 13662 link_all_deplibs_F77=yes 13663 13664 if test "$GCC" = yes; then 13665 case $host_os in aix4.[012]|aix4.[012].*) 13666 # We only want to do this on AIX 4.2 and lower, the check 13667 # below for broken collect2 doesn't work under 4.3+ 13668 collect2name=`${CC} -print-prog-name=collect2` 13669 if test -f "$collect2name" && \ 13670 strings "$collect2name" | grep resolve_lib_name >/dev/null 13671 then 13672 # We have reworked collect2 13673 hardcode_direct_F77=yes 13674 else 13675 # We have old collect2 13676 hardcode_direct_F77=unsupported 13677 # It fails to find uninstalled libraries when the uninstalled 13678 # path is not listed in the libpath. Setting hardcode_minus_L 13679 # to unsupported forces relinking 13680 hardcode_minus_L_F77=yes 13681 hardcode_libdir_flag_spec_F77='-L$libdir' 13682 hardcode_libdir_separator_F77= 13683 fi 13684 ;; 13685 esac 13686 shared_flag='-shared' 13687 if test "$aix_use_runtimelinking" = yes; then 13688 shared_flag="$shared_flag "'${wl}-G' 13689 fi 13690 else 13691 # not using gcc 13692 if test "$host_cpu" = ia64; then 13693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13694 # chokes on -Wl,-G. The following line is correct: 13695 shared_flag='-G' 13696 else 13697 if test "$aix_use_runtimelinking" = yes; then 13698 shared_flag='${wl}-G' 13699 else 13700 shared_flag='${wl}-bM:SRE' 13701 fi 13702 fi 13703 fi 13704 13705 # It seems that -bexpall does not export symbols beginning with 13706 # underscore (_), so it is better to generate a list of symbols to export. 13707 always_export_symbols_F77=yes 13708 if test "$aix_use_runtimelinking" = yes; then 13709 # Warning - without using the other runtime loading flags (-brtl), 13710 # -berok will link without error, but may produce a broken library. 13711 allow_undefined_flag_F77='-berok' 13712 # Determine the default libpath from the value encoded in an empty executable. 13713 cat >conftest.$ac_ext <<_ACEOF 13714 program main 13715 13716 end 13717_ACEOF 13718rm -f conftest.$ac_objext conftest$ac_exeext 13719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13720 (eval $ac_link) 2>conftest.er1 13721 ac_status=$? 13722 grep -v '^ *+' conftest.er1 >conftest.err 13723 rm -f conftest.er1 13724 cat conftest.err >&5 13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13726 (exit $ac_status); } && 13727 { ac_try='test -z "$ac_f77_werror_flag" 13728 || test ! -s conftest.err' 13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13730 (eval $ac_try) 2>&5 13731 ac_status=$? 13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13733 (exit $ac_status); }; } && 13734 { ac_try='test -s conftest$ac_exeext' 13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13736 (eval $ac_try) 2>&5 13737 ac_status=$? 13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13739 (exit $ac_status); }; }; then 13740 13741aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13742}'` 13743# Check for a 64-bit object if we didn't find anything. 13744if 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; } 13745}'`; fi 13746else 13747 echo "$as_me: failed program was:" >&5 13748sed 's/^/| /' conftest.$ac_ext >&5 13749 13750fi 13751rm -f conftest.err conftest.$ac_objext \ 13752 conftest$ac_exeext conftest.$ac_ext 13753if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13754 13755 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13756 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" 13757 else 13758 if test "$host_cpu" = ia64; then 13759 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13760 allow_undefined_flag_F77="-z nodefs" 13761 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" 13762 else 13763 # Determine the default libpath from the value encoded in an empty executable. 13764 cat >conftest.$ac_ext <<_ACEOF 13765 program main 13766 13767 end 13768_ACEOF 13769rm -f conftest.$ac_objext conftest$ac_exeext 13770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13771 (eval $ac_link) 2>conftest.er1 13772 ac_status=$? 13773 grep -v '^ *+' conftest.er1 >conftest.err 13774 rm -f conftest.er1 13775 cat conftest.err >&5 13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13777 (exit $ac_status); } && 13778 { ac_try='test -z "$ac_f77_werror_flag" 13779 || test ! -s conftest.err' 13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13781 (eval $ac_try) 2>&5 13782 ac_status=$? 13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13784 (exit $ac_status); }; } && 13785 { ac_try='test -s conftest$ac_exeext' 13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13787 (eval $ac_try) 2>&5 13788 ac_status=$? 13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13790 (exit $ac_status); }; }; then 13791 13792aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13793}'` 13794# Check for a 64-bit object if we didn't find anything. 13795if 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; } 13796}'`; fi 13797else 13798 echo "$as_me: failed program was:" >&5 13799sed 's/^/| /' conftest.$ac_ext >&5 13800 13801fi 13802rm -f conftest.err conftest.$ac_objext \ 13803 conftest$ac_exeext conftest.$ac_ext 13804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13805 13806 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13807 # Warning - without using the other run time loading flags, 13808 # -berok will link without error, but may produce a broken library. 13809 no_undefined_flag_F77=' ${wl}-bernotok' 13810 allow_undefined_flag_F77=' ${wl}-berok' 13811 # Exported symbols can be pulled into shared objects from archives 13812 whole_archive_flag_spec_F77='$convenience' 13813 archive_cmds_need_lc_F77=yes 13814 # This is similar to how AIX traditionally builds its shared libraries. 13815 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' 13816 fi 13817 fi 13818 ;; 13819 13820 amigaos*) 13821 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)' 13822 hardcode_libdir_flag_spec_F77='-L$libdir' 13823 hardcode_minus_L_F77=yes 13824 # see comment about different semantics on the GNU ld section 13825 ld_shlibs_F77=no 13826 ;; 13827 13828 bsdi[45]*) 13829 export_dynamic_flag_spec_F77=-rdynamic 13830 ;; 13831 13832 cygwin* | mingw* | pw32*) 13833 # When not using gcc, we currently assume that we are using 13834 # Microsoft Visual C++. 13835 # hardcode_libdir_flag_spec is actually meaningless, as there is 13836 # no search path for DLLs. 13837 hardcode_libdir_flag_spec_F77=' ' 13838 allow_undefined_flag_F77=unsupported 13839 # Tell ltmain to make .lib files, not .a files. 13840 libext=lib 13841 # Tell ltmain to make .dll files, not .so files. 13842 shrext_cmds=".dll" 13843 # FIXME: Setting linknames here is a bad hack. 13844 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13845 # The linker will automatically build a .lib file if we build a DLL. 13846 old_archive_From_new_cmds_F77='true' 13847 # FIXME: Should let the user specify the lib program. 13848 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13849 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13850 enable_shared_with_static_runtimes_F77=yes 13851 ;; 13852 13853 darwin* | rhapsody*) 13854 case $host_os in 13855 rhapsody* | darwin1.[012]) 13856 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13857 ;; 13858 *) # Darwin 1.3 on 13859 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13860 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13861 else 13862 case ${MACOSX_DEPLOYMENT_TARGET} in 13863 10.[012]) 13864 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13865 ;; 13866 10.*) 13867 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13868 ;; 13869 esac 13870 fi 13871 ;; 13872 esac 13873 archive_cmds_need_lc_F77=no 13874 hardcode_direct_F77=no 13875 hardcode_automatic_F77=yes 13876 hardcode_shlibpath_var_F77=unsupported 13877 whole_archive_flag_spec_F77='' 13878 link_all_deplibs_F77=yes 13879 if test "$GCC" = yes ; then 13880 output_verbose_link_cmd='echo' 13881 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13882 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13884 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}' 13885 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}' 13886 else 13887 case $cc_basename in 13888 xlc*) 13889 output_verbose_link_cmd='echo' 13890 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 13891 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13893 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}' 13894 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}' 13895 ;; 13896 *) 13897 ld_shlibs_F77=no 13898 ;; 13899 esac 13900 fi 13901 ;; 13902 13903 dgux*) 13904 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13905 hardcode_libdir_flag_spec_F77='-L$libdir' 13906 hardcode_shlibpath_var_F77=no 13907 ;; 13908 13909 freebsd1*) 13910 ld_shlibs_F77=no 13911 ;; 13912 13913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13914 # support. Future versions do this automatically, but an explicit c++rt0.o 13915 # does not break anything, and helps significantly (at the cost of a little 13916 # extra space). 13917 freebsd2.2*) 13918 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13919 hardcode_libdir_flag_spec_F77='-R$libdir' 13920 hardcode_direct_F77=yes 13921 hardcode_shlibpath_var_F77=no 13922 ;; 13923 13924 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13925 freebsd2*) 13926 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13927 hardcode_direct_F77=yes 13928 hardcode_minus_L_F77=yes 13929 hardcode_shlibpath_var_F77=no 13930 ;; 13931 13932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13933 freebsd* | kfreebsd*-gnu | dragonfly*) 13934 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13935 hardcode_libdir_flag_spec_F77='-R$libdir' 13936 hardcode_direct_F77=yes 13937 hardcode_shlibpath_var_F77=no 13938 ;; 13939 13940 hpux9*) 13941 if test "$GCC" = yes; then 13942 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' 13943 else 13944 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' 13945 fi 13946 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13947 hardcode_libdir_separator_F77=: 13948 hardcode_direct_F77=yes 13949 13950 # hardcode_minus_L: Not really in the search PATH, 13951 # but as the default location of the library. 13952 hardcode_minus_L_F77=yes 13953 export_dynamic_flag_spec_F77='${wl}-E' 13954 ;; 13955 13956 hpux10*) 13957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13958 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13959 else 13960 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13961 fi 13962 if test "$with_gnu_ld" = no; then 13963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13964 hardcode_libdir_separator_F77=: 13965 13966 hardcode_direct_F77=yes 13967 export_dynamic_flag_spec_F77='${wl}-E' 13968 13969 # hardcode_minus_L: Not really in the search PATH, 13970 # but as the default location of the library. 13971 hardcode_minus_L_F77=yes 13972 fi 13973 ;; 13974 13975 hpux11*) 13976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13977 case $host_cpu in 13978 hppa*64*) 13979 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13980 ;; 13981 ia64*) 13982 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13983 ;; 13984 *) 13985 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13986 ;; 13987 esac 13988 else 13989 case $host_cpu in 13990 hppa*64*) 13991 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13992 ;; 13993 ia64*) 13994 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13995 ;; 13996 *) 13997 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13998 ;; 13999 esac 14000 fi 14001 if test "$with_gnu_ld" = no; then 14002 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14003 hardcode_libdir_separator_F77=: 14004 14005 case $host_cpu in 14006 hppa*64*|ia64*) 14007 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14008 hardcode_direct_F77=no 14009 hardcode_shlibpath_var_F77=no 14010 ;; 14011 *) 14012 hardcode_direct_F77=yes 14013 export_dynamic_flag_spec_F77='${wl}-E' 14014 14015 # hardcode_minus_L: Not really in the search PATH, 14016 # but as the default location of the library. 14017 hardcode_minus_L_F77=yes 14018 ;; 14019 esac 14020 fi 14021 ;; 14022 14023 irix5* | irix6* | nonstopux*) 14024 if test "$GCC" = yes; then 14025 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' 14026 else 14027 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' 14028 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14029 fi 14030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14031 hardcode_libdir_separator_F77=: 14032 link_all_deplibs_F77=yes 14033 ;; 14034 14035 netbsd*) 14036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14037 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14038 else 14039 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14040 fi 14041 hardcode_libdir_flag_spec_F77='-R$libdir' 14042 hardcode_direct_F77=yes 14043 hardcode_shlibpath_var_F77=no 14044 ;; 14045 14046 newsos6) 14047 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14048 hardcode_direct_F77=yes 14049 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14050 hardcode_libdir_separator_F77=: 14051 hardcode_shlibpath_var_F77=no 14052 ;; 14053 14054 openbsd*) 14055 hardcode_direct_F77=yes 14056 hardcode_shlibpath_var_F77=no 14057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14058 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14059 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14060 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14061 export_dynamic_flag_spec_F77='${wl}-E' 14062 else 14063 case $host_os in 14064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14065 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14066 hardcode_libdir_flag_spec_F77='-R$libdir' 14067 ;; 14068 *) 14069 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14070 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14071 ;; 14072 esac 14073 fi 14074 ;; 14075 14076 os2*) 14077 hardcode_libdir_flag_spec_F77='-L$libdir' 14078 hardcode_minus_L_F77=yes 14079 allow_undefined_flag_F77=unsupported 14080 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' 14081 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14082 ;; 14083 14084 osf3*) 14085 if test "$GCC" = yes; then 14086 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14087 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' 14088 else 14089 allow_undefined_flag_F77=' -expect_unresolved \*' 14090 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' 14091 fi 14092 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14093 hardcode_libdir_separator_F77=: 14094 ;; 14095 14096 osf4* | osf5*) # as osf3* with the addition of -msym flag 14097 if test "$GCC" = yes; then 14098 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14099 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' 14100 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14101 else 14102 allow_undefined_flag_F77=' -expect_unresolved \*' 14103 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' 14104 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~ 14105 $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' 14106 14107 # Both c and cxx compiler support -rpath directly 14108 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14109 fi 14110 hardcode_libdir_separator_F77=: 14111 ;; 14112 14113 solaris*) 14114 no_undefined_flag_F77=' -z text' 14115 if test "$GCC" = yes; then 14116 wlarc='${wl}' 14117 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14118 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14119 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14120 else 14121 wlarc='' 14122 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14123 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14124 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14125 fi 14126 hardcode_libdir_flag_spec_F77='-R$libdir' 14127 hardcode_shlibpath_var_F77=no 14128 case $host_os in 14129 solaris2.[0-5] | solaris2.[0-5].*) ;; 14130 *) 14131 # The compiler driver will combine linker options so we 14132 # cannot just pass the convience library names through 14133 # without $wl, iff we do not link with $LD. 14134 # Luckily, gcc supports the same syntax we need for Sun Studio. 14135 # Supported since Solaris 2.6 (maybe 2.5.1?) 14136 case $wlarc in 14137 '') 14138 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14139 *) 14140 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' ;; 14141 esac ;; 14142 esac 14143 link_all_deplibs_F77=yes 14144 ;; 14145 14146 sunos4*) 14147 if test "x$host_vendor" = xsequent; then 14148 # Use $CC to link under sequent, because it throws in some extra .o 14149 # files that make .init and .fini sections work. 14150 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14151 else 14152 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14153 fi 14154 hardcode_libdir_flag_spec_F77='-L$libdir' 14155 hardcode_direct_F77=yes 14156 hardcode_minus_L_F77=yes 14157 hardcode_shlibpath_var_F77=no 14158 ;; 14159 14160 sysv4) 14161 case $host_vendor in 14162 sni) 14163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14164 hardcode_direct_F77=yes # is this really true??? 14165 ;; 14166 siemens) 14167 ## LD is ld it makes a PLAMLIB 14168 ## CC just makes a GrossModule. 14169 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14170 reload_cmds_F77='$CC -r -o $output$reload_objs' 14171 hardcode_direct_F77=no 14172 ;; 14173 motorola) 14174 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14175 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14176 ;; 14177 esac 14178 runpath_var='LD_RUN_PATH' 14179 hardcode_shlibpath_var_F77=no 14180 ;; 14181 14182 sysv4.3*) 14183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14184 hardcode_shlibpath_var_F77=no 14185 export_dynamic_flag_spec_F77='-Bexport' 14186 ;; 14187 14188 sysv4*MP*) 14189 if test -d /usr/nec; then 14190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14191 hardcode_shlibpath_var_F77=no 14192 runpath_var=LD_RUN_PATH 14193 hardcode_runpath_var=yes 14194 ld_shlibs_F77=yes 14195 fi 14196 ;; 14197 14198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14199 no_undefined_flag_F77='${wl}-z,text' 14200 archive_cmds_need_lc_F77=no 14201 hardcode_shlibpath_var_F77=no 14202 runpath_var='LD_RUN_PATH' 14203 14204 if test "$GCC" = yes; then 14205 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14206 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14207 else 14208 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14209 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14210 fi 14211 ;; 14212 14213 sysv5* | sco3.2v5* | sco5v6*) 14214 # Note: We can NOT use -z defs as we might desire, because we do not 14215 # link with -lc, and that would cause any symbols used from libc to 14216 # always be unresolved, which means just about no library would 14217 # ever link correctly. If we're not using GNU ld we use -z text 14218 # though, which does catch some bad symbols but isn't as heavy-handed 14219 # as -z defs. 14220 no_undefined_flag_F77='${wl}-z,text' 14221 allow_undefined_flag_F77='${wl}-z,nodefs' 14222 archive_cmds_need_lc_F77=no 14223 hardcode_shlibpath_var_F77=no 14224 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14225 hardcode_libdir_separator_F77=':' 14226 link_all_deplibs_F77=yes 14227 export_dynamic_flag_spec_F77='${wl}-Bexport' 14228 runpath_var='LD_RUN_PATH' 14229 14230 if test "$GCC" = yes; then 14231 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14232 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14233 else 14234 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14235 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14236 fi 14237 ;; 14238 14239 uts4*) 14240 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14241 hardcode_libdir_flag_spec_F77='-L$libdir' 14242 hardcode_shlibpath_var_F77=no 14243 ;; 14244 14245 *) 14246 ld_shlibs_F77=no 14247 ;; 14248 esac 14249 fi 14250 14251echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14252echo "${ECHO_T}$ld_shlibs_F77" >&6 14253test "$ld_shlibs_F77" = no && can_build_shared=no 14254 14255# 14256# Do we need to explicitly link libc? 14257# 14258case "x$archive_cmds_need_lc_F77" in 14259x|xyes) 14260 # Assume -lc should be added 14261 archive_cmds_need_lc_F77=yes 14262 14263 if test "$enable_shared" = yes && test "$GCC" = yes; then 14264 case $archive_cmds_F77 in 14265 *'~'*) 14266 # FIXME: we may have to deal with multi-command sequences. 14267 ;; 14268 '$CC '*) 14269 # Test whether the compiler implicitly links with -lc since on some 14270 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14271 # to ld, don't add -lc before -lgcc. 14272 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14273echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14274 $rm conftest* 14275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14276 14277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14278 (eval $ac_compile) 2>&5 14279 ac_status=$? 14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14281 (exit $ac_status); } 2>conftest.err; then 14282 soname=conftest 14283 lib=conftest 14284 libobjs=conftest.$ac_objext 14285 deplibs= 14286 wl=$lt_prog_compiler_wl_F77 14287 pic_flag=$lt_prog_compiler_pic_F77 14288 compiler_flags=-v 14289 linker_flags=-v 14290 verstring= 14291 output_objdir=. 14292 libname=conftest 14293 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14294 allow_undefined_flag_F77= 14295 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14296 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14297 ac_status=$? 14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14299 (exit $ac_status); } 14300 then 14301 archive_cmds_need_lc_F77=no 14302 else 14303 archive_cmds_need_lc_F77=yes 14304 fi 14305 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14306 else 14307 cat conftest.err 1>&5 14308 fi 14309 $rm conftest* 14310 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14311echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14312 ;; 14313 esac 14314 fi 14315 ;; 14316esac 14317 14318echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14319echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14320library_names_spec= 14321libname_spec='lib$name' 14322soname_spec= 14323shrext_cmds=".so" 14324postinstall_cmds= 14325postuninstall_cmds= 14326finish_cmds= 14327finish_eval= 14328shlibpath_var= 14329shlibpath_overrides_runpath=unknown 14330version_type=none 14331dynamic_linker="$host_os ld.so" 14332sys_lib_dlsearch_path_spec="/lib /usr/lib" 14333if test "$GCC" = yes; then 14334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14335 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14336 # if the path contains ";" then we assume it to be the separator 14337 # otherwise default to the standard path separator (i.e. ":") - it is 14338 # assumed that no part of a normal pathname contains ";" but that should 14339 # okay in the real world where ";" in dirpaths is itself problematic. 14340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14341 else 14342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14343 fi 14344else 14345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14346fi 14347need_lib_prefix=unknown 14348hardcode_into_libs=no 14349 14350# when you set need_version to no, make sure it does not cause -set_version 14351# flags to be left without arguments 14352need_version=unknown 14353 14354case $host_os in 14355aix3*) 14356 version_type=linux 14357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14358 shlibpath_var=LIBPATH 14359 14360 # AIX 3 has no versioning support, so we append a major version to the name. 14361 soname_spec='${libname}${release}${shared_ext}$major' 14362 ;; 14363 14364aix4* | aix5*) 14365 version_type=linux 14366 need_lib_prefix=no 14367 need_version=no 14368 hardcode_into_libs=yes 14369 if test "$host_cpu" = ia64; then 14370 # AIX 5 supports IA64 14371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14372 shlibpath_var=LD_LIBRARY_PATH 14373 else 14374 # With GCC up to 2.95.x, collect2 would create an import file 14375 # for dependence libraries. The import file would start with 14376 # the line `#! .'. This would cause the generated library to 14377 # depend on `.', always an invalid library. This was fixed in 14378 # development snapshots of GCC prior to 3.0. 14379 case $host_os in 14380 aix4 | aix4.[01] | aix4.[01].*) 14381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14382 echo ' yes ' 14383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14384 : 14385 else 14386 can_build_shared=no 14387 fi 14388 ;; 14389 esac 14390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14391 # soname into executable. Probably we can add versioning support to 14392 # collect2, so additional links can be useful in future. 14393 if test "$aix_use_runtimelinking" = yes; then 14394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14395 # instead of lib<name>.a to let people know that these are not 14396 # typical AIX shared libraries. 14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14398 else 14399 # We preserve .a as extension for shared libraries through AIX4.2 14400 # and later when we are not doing run time linking. 14401 library_names_spec='${libname}${release}.a $libname.a' 14402 soname_spec='${libname}${release}${shared_ext}$major' 14403 fi 14404 shlibpath_var=LIBPATH 14405 fi 14406 ;; 14407 14408amigaos*) 14409 library_names_spec='$libname.ixlibrary $libname.a' 14410 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14411 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' 14412 ;; 14413 14414beos*) 14415 library_names_spec='${libname}${shared_ext}' 14416 dynamic_linker="$host_os ld.so" 14417 shlibpath_var=LIBRARY_PATH 14418 ;; 14419 14420bsdi[45]*) 14421 version_type=linux 14422 need_version=no 14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14424 soname_spec='${libname}${release}${shared_ext}$major' 14425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14426 shlibpath_var=LD_LIBRARY_PATH 14427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14429 # the default ld.so.conf also contains /usr/contrib/lib and 14430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14431 # libtool to hard-code these into programs 14432 ;; 14433 14434cygwin* | mingw* | pw32*) 14435 version_type=windows 14436 shrext_cmds=".dll" 14437 need_version=no 14438 need_lib_prefix=no 14439 14440 case $GCC,$host_os in 14441 yes,cygwin* | yes,mingw* | yes,pw32*) 14442 library_names_spec='$libname.dll.a' 14443 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14444 postinstall_cmds='base_file=`basename \${file}`~ 14445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14446 dldir=$destdir/`dirname \$dlpath`~ 14447 test -d \$dldir || mkdir -p \$dldir~ 14448 $install_prog $dir/$dlname \$dldir/$dlname~ 14449 chmod a+x \$dldir/$dlname' 14450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14451 dlpath=$dir/\$dldll~ 14452 $rm \$dlpath' 14453 shlibpath_overrides_runpath=yes 14454 14455 case $host_os in 14456 cygwin*) 14457 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14460 ;; 14461 mingw*) 14462 # MinGW DLLs use traditional 'lib' prefix 14463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14466 # It is most probably a Windows format PATH printed by 14467 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14468 # path with ; separators, and with drive letters. We can handle the 14469 # drive letters (cygwin fileutils understands them), so leave them, 14470 # especially as we might pass files found there to a mingw objdump, 14471 # which wouldn't understand a cygwinified path. Ahh. 14472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14473 else 14474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14475 fi 14476 ;; 14477 pw32*) 14478 # pw32 DLLs use 'pw' prefix rather than 'lib' 14479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14480 ;; 14481 esac 14482 ;; 14483 14484 *) 14485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14486 ;; 14487 esac 14488 dynamic_linker='Win32 ld.exe' 14489 # FIXME: first we should search . and the directory the executable is in 14490 shlibpath_var=PATH 14491 ;; 14492 14493darwin* | rhapsody*) 14494 dynamic_linker="$host_os dyld" 14495 version_type=darwin 14496 need_lib_prefix=no 14497 need_version=no 14498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14499 soname_spec='${libname}${release}${major}$shared_ext' 14500 shlibpath_overrides_runpath=yes 14501 shlibpath_var=DYLD_LIBRARY_PATH 14502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14504 if test "$GCC" = yes; then 14505 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"` 14506 else 14507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14508 fi 14509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14510 ;; 14511 14512dgux*) 14513 version_type=linux 14514 need_lib_prefix=no 14515 need_version=no 14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14517 soname_spec='${libname}${release}${shared_ext}$major' 14518 shlibpath_var=LD_LIBRARY_PATH 14519 ;; 14520 14521freebsd1*) 14522 dynamic_linker=no 14523 ;; 14524 14525kfreebsd*-gnu) 14526 version_type=linux 14527 need_lib_prefix=no 14528 need_version=no 14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14530 soname_spec='${libname}${release}${shared_ext}$major' 14531 shlibpath_var=LD_LIBRARY_PATH 14532 shlibpath_overrides_runpath=no 14533 hardcode_into_libs=yes 14534 dynamic_linker='GNU ld.so' 14535 ;; 14536 14537freebsd* | dragonfly*) 14538 # DragonFly does not have aout. When/if they implement a new 14539 # versioning mechanism, adjust this. 14540 if test -x /usr/bin/objformat; then 14541 objformat=`/usr/bin/objformat` 14542 else 14543 case $host_os in 14544 freebsd[123]*) objformat=aout ;; 14545 *) objformat=elf ;; 14546 esac 14547 fi 14548 version_type=freebsd-$objformat 14549 case $version_type in 14550 freebsd-elf*) 14551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14552 need_version=no 14553 need_lib_prefix=no 14554 ;; 14555 freebsd-*) 14556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14557 need_version=yes 14558 ;; 14559 esac 14560 shlibpath_var=LD_LIBRARY_PATH 14561 case $host_os in 14562 freebsd2*) 14563 shlibpath_overrides_runpath=yes 14564 ;; 14565 freebsd3.[01]* | freebsdelf3.[01]*) 14566 shlibpath_overrides_runpath=yes 14567 hardcode_into_libs=yes 14568 ;; 14569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14571 shlibpath_overrides_runpath=no 14572 hardcode_into_libs=yes 14573 ;; 14574 freebsd*) # from 4.6 on 14575 shlibpath_overrides_runpath=yes 14576 hardcode_into_libs=yes 14577 ;; 14578 esac 14579 ;; 14580 14581gnu*) 14582 version_type=linux 14583 need_lib_prefix=no 14584 need_version=no 14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14586 soname_spec='${libname}${release}${shared_ext}$major' 14587 shlibpath_var=LD_LIBRARY_PATH 14588 hardcode_into_libs=yes 14589 ;; 14590 14591hpux9* | hpux10* | hpux11*) 14592 # Give a soname corresponding to the major version so that dld.sl refuses to 14593 # link against other versions. 14594 version_type=sunos 14595 need_lib_prefix=no 14596 need_version=no 14597 case $host_cpu in 14598 ia64*) 14599 shrext_cmds='.so' 14600 hardcode_into_libs=yes 14601 dynamic_linker="$host_os dld.so" 14602 shlibpath_var=LD_LIBRARY_PATH 14603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14605 soname_spec='${libname}${release}${shared_ext}$major' 14606 if test "X$HPUX_IA64_MODE" = X32; then 14607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14608 else 14609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14610 fi 14611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14612 ;; 14613 hppa*64*) 14614 shrext_cmds='.sl' 14615 hardcode_into_libs=yes 14616 dynamic_linker="$host_os dld.sl" 14617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14620 soname_spec='${libname}${release}${shared_ext}$major' 14621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14623 ;; 14624 *) 14625 shrext_cmds='.sl' 14626 dynamic_linker="$host_os dld.sl" 14627 shlibpath_var=SHLIB_PATH 14628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14630 soname_spec='${libname}${release}${shared_ext}$major' 14631 ;; 14632 esac 14633 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14634 postinstall_cmds='chmod 555 $lib' 14635 ;; 14636 14637interix3*) 14638 version_type=linux 14639 need_lib_prefix=no 14640 need_version=no 14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14642 soname_spec='${libname}${release}${shared_ext}$major' 14643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14644 shlibpath_var=LD_LIBRARY_PATH 14645 shlibpath_overrides_runpath=no 14646 hardcode_into_libs=yes 14647 ;; 14648 14649irix5* | irix6* | nonstopux*) 14650 case $host_os in 14651 nonstopux*) version_type=nonstopux ;; 14652 *) 14653 if test "$lt_cv_prog_gnu_ld" = yes; then 14654 version_type=linux 14655 else 14656 version_type=irix 14657 fi ;; 14658 esac 14659 need_lib_prefix=no 14660 need_version=no 14661 soname_spec='${libname}${release}${shared_ext}$major' 14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14663 case $host_os in 14664 irix5* | nonstopux*) 14665 libsuff= shlibsuff= 14666 ;; 14667 *) 14668 case $LD in # libtool.m4 will add one of these switches to LD 14669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14670 libsuff= shlibsuff= libmagic=32-bit;; 14671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14672 libsuff=32 shlibsuff=N32 libmagic=N32;; 14673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14674 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14675 *) libsuff= shlibsuff= libmagic=never-match;; 14676 esac 14677 ;; 14678 esac 14679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14680 shlibpath_overrides_runpath=no 14681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14683 hardcode_into_libs=yes 14684 ;; 14685 14686# No shared lib support for Linux oldld, aout, or coff. 14687linux*oldld* | linux*aout* | linux*coff*) 14688 dynamic_linker=no 14689 ;; 14690 14691# This must be Linux ELF. 14692linux*) 14693 version_type=linux 14694 need_lib_prefix=no 14695 need_version=no 14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14697 soname_spec='${libname}${release}${shared_ext}$major' 14698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14699 shlibpath_var=LD_LIBRARY_PATH 14700 shlibpath_overrides_runpath=no 14701 # This implies no fast_install, which is unacceptable. 14702 # Some rework will be needed to allow for fast_install 14703 # before this can be enabled. 14704 hardcode_into_libs=yes 14705 14706 # Append ld.so.conf contents to the search path 14707 if test -f /etc/ld.so.conf; then 14708 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' ' '` 14709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14710 fi 14711 14712 # We used to test for /lib/ld.so.1 and disable shared libraries on 14713 # powerpc, because MkLinux only supported shared libraries with the 14714 # GNU dynamic linker. Since this was broken with cross compilers, 14715 # most powerpc-linux boxes support dynamic linking these days and 14716 # people can always --disable-shared, the test was removed, and we 14717 # assume the GNU/Linux dynamic linker is in use. 14718 dynamic_linker='GNU/Linux ld.so' 14719 ;; 14720 14721knetbsd*-gnu) 14722 version_type=linux 14723 need_lib_prefix=no 14724 need_version=no 14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14726 soname_spec='${libname}${release}${shared_ext}$major' 14727 shlibpath_var=LD_LIBRARY_PATH 14728 shlibpath_overrides_runpath=no 14729 hardcode_into_libs=yes 14730 dynamic_linker='GNU ld.so' 14731 ;; 14732 14733netbsd*) 14734 version_type=sunos 14735 need_lib_prefix=no 14736 need_version=no 14737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14740 dynamic_linker='NetBSD (a.out) ld.so' 14741 else 14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14743 soname_spec='${libname}${release}${shared_ext}$major' 14744 dynamic_linker='NetBSD ld.elf_so' 14745 fi 14746 shlibpath_var=LD_LIBRARY_PATH 14747 shlibpath_overrides_runpath=yes 14748 hardcode_into_libs=yes 14749 ;; 14750 14751newsos6) 14752 version_type=linux 14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14754 shlibpath_var=LD_LIBRARY_PATH 14755 shlibpath_overrides_runpath=yes 14756 ;; 14757 14758nto-qnx*) 14759 version_type=linux 14760 need_lib_prefix=no 14761 need_version=no 14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14763 soname_spec='${libname}${release}${shared_ext}$major' 14764 shlibpath_var=LD_LIBRARY_PATH 14765 shlibpath_overrides_runpath=yes 14766 ;; 14767 14768openbsd*) 14769 version_type=sunos 14770 sys_lib_dlsearch_path_spec="/usr/lib" 14771 need_lib_prefix=no 14772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14773 case $host_os in 14774 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14775 *) need_version=no ;; 14776 esac 14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14779 shlibpath_var=LD_LIBRARY_PATH 14780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14781 case $host_os in 14782 openbsd2.[89] | openbsd2.[89].*) 14783 shlibpath_overrides_runpath=no 14784 ;; 14785 *) 14786 shlibpath_overrides_runpath=yes 14787 ;; 14788 esac 14789 else 14790 shlibpath_overrides_runpath=yes 14791 fi 14792 ;; 14793 14794os2*) 14795 libname_spec='$name' 14796 shrext_cmds=".dll" 14797 need_lib_prefix=no 14798 library_names_spec='$libname${shared_ext} $libname.a' 14799 dynamic_linker='OS/2 ld.exe' 14800 shlibpath_var=LIBPATH 14801 ;; 14802 14803osf3* | osf4* | osf5*) 14804 version_type=osf 14805 need_lib_prefix=no 14806 need_version=no 14807 soname_spec='${libname}${release}${shared_ext}$major' 14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14809 shlibpath_var=LD_LIBRARY_PATH 14810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14812 ;; 14813 14814solaris*) 14815 version_type=linux 14816 need_lib_prefix=no 14817 need_version=no 14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14819 soname_spec='${libname}${release}${shared_ext}$major' 14820 shlibpath_var=LD_LIBRARY_PATH 14821 shlibpath_overrides_runpath=yes 14822 hardcode_into_libs=yes 14823 # ldd complains unless libraries are executable 14824 postinstall_cmds='chmod +x $lib' 14825 ;; 14826 14827sunos4*) 14828 version_type=sunos 14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14831 shlibpath_var=LD_LIBRARY_PATH 14832 shlibpath_overrides_runpath=yes 14833 if test "$with_gnu_ld" = yes; then 14834 need_lib_prefix=no 14835 fi 14836 need_version=yes 14837 ;; 14838 14839sysv4 | sysv4.3*) 14840 version_type=linux 14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14842 soname_spec='${libname}${release}${shared_ext}$major' 14843 shlibpath_var=LD_LIBRARY_PATH 14844 case $host_vendor in 14845 sni) 14846 shlibpath_overrides_runpath=no 14847 need_lib_prefix=no 14848 export_dynamic_flag_spec='${wl}-Blargedynsym' 14849 runpath_var=LD_RUN_PATH 14850 ;; 14851 siemens) 14852 need_lib_prefix=no 14853 ;; 14854 motorola) 14855 need_lib_prefix=no 14856 need_version=no 14857 shlibpath_overrides_runpath=no 14858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14859 ;; 14860 esac 14861 ;; 14862 14863sysv4*MP*) 14864 if test -d /usr/nec ;then 14865 version_type=linux 14866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14867 soname_spec='$libname${shared_ext}.$major' 14868 shlibpath_var=LD_LIBRARY_PATH 14869 fi 14870 ;; 14871 14872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14873 version_type=freebsd-elf 14874 need_lib_prefix=no 14875 need_version=no 14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14877 soname_spec='${libname}${release}${shared_ext}$major' 14878 shlibpath_var=LD_LIBRARY_PATH 14879 hardcode_into_libs=yes 14880 if test "$with_gnu_ld" = yes; then 14881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14882 shlibpath_overrides_runpath=no 14883 else 14884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14885 shlibpath_overrides_runpath=yes 14886 case $host_os in 14887 sco3.2v5*) 14888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14889 ;; 14890 esac 14891 fi 14892 sys_lib_dlsearch_path_spec='/usr/lib' 14893 ;; 14894 14895uts4*) 14896 version_type=linux 14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14898 soname_spec='${libname}${release}${shared_ext}$major' 14899 shlibpath_var=LD_LIBRARY_PATH 14900 ;; 14901 14902*) 14903 dynamic_linker=no 14904 ;; 14905esac 14906echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14907echo "${ECHO_T}$dynamic_linker" >&6 14908test "$dynamic_linker" = no && can_build_shared=no 14909 14910variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14911if test "$GCC" = yes; then 14912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14913fi 14914 14915echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14916echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14917hardcode_action_F77= 14918if test -n "$hardcode_libdir_flag_spec_F77" || \ 14919 test -n "$runpath_var_F77" || \ 14920 test "X$hardcode_automatic_F77" = "Xyes" ; then 14921 14922 # We can hardcode non-existant directories. 14923 if test "$hardcode_direct_F77" != no && 14924 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14925 # have to relink, otherwise we might link with an installed library 14926 # when we should be linking with a yet-to-be-installed one 14927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14928 test "$hardcode_minus_L_F77" != no; then 14929 # Linking always hardcodes the temporary library directory. 14930 hardcode_action_F77=relink 14931 else 14932 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14933 hardcode_action_F77=immediate 14934 fi 14935else 14936 # We cannot hardcode anything, or else we can only hardcode existing 14937 # directories. 14938 hardcode_action_F77=unsupported 14939fi 14940echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 14941echo "${ECHO_T}$hardcode_action_F77" >&6 14942 14943if test "$hardcode_action_F77" = relink; then 14944 # Fast installation is not supported 14945 enable_fast_install=no 14946elif test "$shlibpath_overrides_runpath" = yes || 14947 test "$enable_shared" = no; then 14948 # Fast installation is not necessary 14949 enable_fast_install=needless 14950fi 14951 14952 14953# The else clause should only fire when bootstrapping the 14954# libtool distribution, otherwise you forgot to ship ltmain.sh 14955# with your package, and you will get complaints that there are 14956# no rules to generate ltmain.sh. 14957if test -f "$ltmain"; then 14958 # See if we are running on zsh, and set the options which allow our commands through 14959 # without removal of \ escapes. 14960 if test -n "${ZSH_VERSION+set}" ; then 14961 setopt NO_GLOB_SUBST 14962 fi 14963 # Now quote all the things that may contain metacharacters while being 14964 # careful not to overquote the AC_SUBSTed values. We take copies of the 14965 # variables and quote the copies for generation of the libtool script. 14966 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14967 SED SHELL STRIP \ 14968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14970 deplibs_check_method reload_flag reload_cmds need_locks \ 14971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14972 lt_cv_sys_global_symbol_to_c_name_address \ 14973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14974 old_postinstall_cmds old_postuninstall_cmds \ 14975 compiler_F77 \ 14976 CC_F77 \ 14977 LD_F77 \ 14978 lt_prog_compiler_wl_F77 \ 14979 lt_prog_compiler_pic_F77 \ 14980 lt_prog_compiler_static_F77 \ 14981 lt_prog_compiler_no_builtin_flag_F77 \ 14982 export_dynamic_flag_spec_F77 \ 14983 thread_safe_flag_spec_F77 \ 14984 whole_archive_flag_spec_F77 \ 14985 enable_shared_with_static_runtimes_F77 \ 14986 old_archive_cmds_F77 \ 14987 old_archive_from_new_cmds_F77 \ 14988 predep_objects_F77 \ 14989 postdep_objects_F77 \ 14990 predeps_F77 \ 14991 postdeps_F77 \ 14992 compiler_lib_search_path_F77 \ 14993 archive_cmds_F77 \ 14994 archive_expsym_cmds_F77 \ 14995 postinstall_cmds_F77 \ 14996 postuninstall_cmds_F77 \ 14997 old_archive_from_expsyms_cmds_F77 \ 14998 allow_undefined_flag_F77 \ 14999 no_undefined_flag_F77 \ 15000 export_symbols_cmds_F77 \ 15001 hardcode_libdir_flag_spec_F77 \ 15002 hardcode_libdir_flag_spec_ld_F77 \ 15003 hardcode_libdir_separator_F77 \ 15004 hardcode_automatic_F77 \ 15005 module_cmds_F77 \ 15006 module_expsym_cmds_F77 \ 15007 lt_cv_prog_compiler_c_o_F77 \ 15008 exclude_expsyms_F77 \ 15009 include_expsyms_F77; do 15010 15011 case $var in 15012 old_archive_cmds_F77 | \ 15013 old_archive_from_new_cmds_F77 | \ 15014 archive_cmds_F77 | \ 15015 archive_expsym_cmds_F77 | \ 15016 module_cmds_F77 | \ 15017 module_expsym_cmds_F77 | \ 15018 old_archive_from_expsyms_cmds_F77 | \ 15019 export_symbols_cmds_F77 | \ 15020 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15021 postinstall_cmds | postuninstall_cmds | \ 15022 old_postinstall_cmds | old_postuninstall_cmds | \ 15023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15024 # Double-quote double-evaled strings. 15025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15026 ;; 15027 *) 15028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15029 ;; 15030 esac 15031 done 15032 15033 case $lt_echo in 15034 *'\$0 --fallback-echo"') 15035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15036 ;; 15037 esac 15038 15039cfgfile="$ofile" 15040 15041 cat <<__EOF__ >> "$cfgfile" 15042# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15043 15044# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15045 15046# Shell to use when invoking shell scripts. 15047SHELL=$lt_SHELL 15048 15049# Whether or not to build shared libraries. 15050build_libtool_libs=$enable_shared 15051 15052# Whether or not to build static libraries. 15053build_old_libs=$enable_static 15054 15055# Whether or not to add -lc for building shared libraries. 15056build_libtool_need_lc=$archive_cmds_need_lc_F77 15057 15058# Whether or not to disallow shared libs when runtime libs are static 15059allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15060 15061# Whether or not to optimize for fast installation. 15062fast_install=$enable_fast_install 15063 15064# The host system. 15065host_alias=$host_alias 15066host=$host 15067host_os=$host_os 15068 15069# The build system. 15070build_alias=$build_alias 15071build=$build 15072build_os=$build_os 15073 15074# An echo program that does not interpret backslashes. 15075echo=$lt_echo 15076 15077# The archiver. 15078AR=$lt_AR 15079AR_FLAGS=$lt_AR_FLAGS 15080 15081# A C compiler. 15082LTCC=$lt_LTCC 15083 15084# LTCC compiler flags. 15085LTCFLAGS=$lt_LTCFLAGS 15086 15087# A language-specific compiler. 15088CC=$lt_compiler_F77 15089 15090# Is the compiler the GNU C compiler? 15091with_gcc=$GCC_F77 15092 15093# An ERE matcher. 15094EGREP=$lt_EGREP 15095 15096# The linker used to build libraries. 15097LD=$lt_LD_F77 15098 15099# Whether we need hard or soft links. 15100LN_S=$lt_LN_S 15101 15102# A BSD-compatible nm program. 15103NM=$lt_NM 15104 15105# A symbol stripping program 15106STRIP=$lt_STRIP 15107 15108# Used to examine libraries when file_magic_cmd begins "file" 15109MAGIC_CMD=$MAGIC_CMD 15110 15111# Used on cygwin: DLL creation program. 15112DLLTOOL="$DLLTOOL" 15113 15114# Used on cygwin: object dumper. 15115OBJDUMP="$OBJDUMP" 15116 15117# Used on cygwin: assembler. 15118AS="$AS" 15119 15120# The name of the directory that contains temporary libtool files. 15121objdir=$objdir 15122 15123# How to create reloadable object files. 15124reload_flag=$lt_reload_flag 15125reload_cmds=$lt_reload_cmds 15126 15127# How to pass a linker flag through the compiler. 15128wl=$lt_lt_prog_compiler_wl_F77 15129 15130# Object file suffix (normally "o"). 15131objext="$ac_objext" 15132 15133# Old archive suffix (normally "a"). 15134libext="$libext" 15135 15136# Shared library suffix (normally ".so"). 15137shrext_cmds='$shrext_cmds' 15138 15139# Executable file suffix (normally ""). 15140exeext="$exeext" 15141 15142# Additional compiler flags for building library objects. 15143pic_flag=$lt_lt_prog_compiler_pic_F77 15144pic_mode=$pic_mode 15145 15146# What is the maximum length of a command? 15147max_cmd_len=$lt_cv_sys_max_cmd_len 15148 15149# Does compiler simultaneously support -c and -o options? 15150compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15151 15152# Must we lock files when doing compilation? 15153need_locks=$lt_need_locks 15154 15155# Do we need the lib prefix for modules? 15156need_lib_prefix=$need_lib_prefix 15157 15158# Do we need a version for libraries? 15159need_version=$need_version 15160 15161# Whether dlopen is supported. 15162dlopen_support=$enable_dlopen 15163 15164# Whether dlopen of programs is supported. 15165dlopen_self=$enable_dlopen_self 15166 15167# Whether dlopen of statically linked programs is supported. 15168dlopen_self_static=$enable_dlopen_self_static 15169 15170# Compiler flag to prevent dynamic linking. 15171link_static_flag=$lt_lt_prog_compiler_static_F77 15172 15173# Compiler flag to turn off builtin functions. 15174no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15175 15176# Compiler flag to allow reflexive dlopens. 15177export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15178 15179# Compiler flag to generate shared objects directly from archives. 15180whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15181 15182# Compiler flag to generate thread-safe objects. 15183thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15184 15185# Library versioning type. 15186version_type=$version_type 15187 15188# Format of library name prefix. 15189libname_spec=$lt_libname_spec 15190 15191# List of archive names. First name is the real one, the rest are links. 15192# The last name is the one that the linker finds with -lNAME. 15193library_names_spec=$lt_library_names_spec 15194 15195# The coded name of the library, if different from the real name. 15196soname_spec=$lt_soname_spec 15197 15198# Commands used to build and install an old-style archive. 15199RANLIB=$lt_RANLIB 15200old_archive_cmds=$lt_old_archive_cmds_F77 15201old_postinstall_cmds=$lt_old_postinstall_cmds 15202old_postuninstall_cmds=$lt_old_postuninstall_cmds 15203 15204# Create an old-style archive from a shared archive. 15205old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15206 15207# Create a temporary old-style archive to link instead of a shared archive. 15208old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15209 15210# Commands used to build and install a shared archive. 15211archive_cmds=$lt_archive_cmds_F77 15212archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15213postinstall_cmds=$lt_postinstall_cmds 15214postuninstall_cmds=$lt_postuninstall_cmds 15215 15216# Commands used to build a loadable module (assumed same as above if empty) 15217module_cmds=$lt_module_cmds_F77 15218module_expsym_cmds=$lt_module_expsym_cmds_F77 15219 15220# Commands to strip libraries. 15221old_striplib=$lt_old_striplib 15222striplib=$lt_striplib 15223 15224# Dependencies to place before the objects being linked to create a 15225# shared library. 15226predep_objects=$lt_predep_objects_F77 15227 15228# Dependencies to place after the objects being linked to create a 15229# shared library. 15230postdep_objects=$lt_postdep_objects_F77 15231 15232# Dependencies to place before the objects being linked to create a 15233# shared library. 15234predeps=$lt_predeps_F77 15235 15236# Dependencies to place after the objects being linked to create a 15237# shared library. 15238postdeps=$lt_postdeps_F77 15239 15240# The library search path used internally by the compiler when linking 15241# a shared library. 15242compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15243 15244# Method to check whether dependent libraries are shared objects. 15245deplibs_check_method=$lt_deplibs_check_method 15246 15247# Command to use when deplibs_check_method == file_magic. 15248file_magic_cmd=$lt_file_magic_cmd 15249 15250# Flag that allows shared libraries with undefined symbols to be built. 15251allow_undefined_flag=$lt_allow_undefined_flag_F77 15252 15253# Flag that forces no undefined symbols. 15254no_undefined_flag=$lt_no_undefined_flag_F77 15255 15256# Commands used to finish a libtool library installation in a directory. 15257finish_cmds=$lt_finish_cmds 15258 15259# Same as above, but a single script fragment to be evaled but not shown. 15260finish_eval=$lt_finish_eval 15261 15262# Take the output of nm and produce a listing of raw symbols and C names. 15263global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15264 15265# Transform the output of nm in a proper C declaration 15266global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15267 15268# Transform the output of nm in a C name address pair 15269global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15270 15271# This is the shared library runtime path variable. 15272runpath_var=$runpath_var 15273 15274# This is the shared library path variable. 15275shlibpath_var=$shlibpath_var 15276 15277# Is shlibpath searched before the hard-coded library search path? 15278shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15279 15280# How to hardcode a shared library path into an executable. 15281hardcode_action=$hardcode_action_F77 15282 15283# Whether we should hardcode library paths into libraries. 15284hardcode_into_libs=$hardcode_into_libs 15285 15286# Flag to hardcode \$libdir into a binary during linking. 15287# This must work even if \$libdir does not exist. 15288hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15289 15290# If ld is used when linking, flag to hardcode \$libdir into 15291# a binary during linking. This must work even if \$libdir does 15292# not exist. 15293hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15294 15295# Whether we need a single -rpath flag with a separated argument. 15296hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15297 15298# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15299# resulting binary. 15300hardcode_direct=$hardcode_direct_F77 15301 15302# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15303# resulting binary. 15304hardcode_minus_L=$hardcode_minus_L_F77 15305 15306# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15307# the resulting binary. 15308hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15309 15310# Set to yes if building a shared library automatically hardcodes DIR into the library 15311# and all subsequent libraries and executables linked against it. 15312hardcode_automatic=$hardcode_automatic_F77 15313 15314# Variables whose values should be saved in libtool wrapper scripts and 15315# restored at relink time. 15316variables_saved_for_relink="$variables_saved_for_relink" 15317 15318# Whether libtool must link a program against all its dependency libraries. 15319link_all_deplibs=$link_all_deplibs_F77 15320 15321# Compile-time system search path for libraries 15322sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15323 15324# Run-time system search path for libraries 15325sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15326 15327# Fix the shell variable \$srcfile for the compiler. 15328fix_srcfile_path="$fix_srcfile_path_F77" 15329 15330# Set to yes if exported symbols are required. 15331always_export_symbols=$always_export_symbols_F77 15332 15333# The commands to list exported symbols. 15334export_symbols_cmds=$lt_export_symbols_cmds_F77 15335 15336# The commands to extract the exported symbol list from a shared archive. 15337extract_expsyms_cmds=$lt_extract_expsyms_cmds 15338 15339# Symbols that should not be listed in the preloaded symbols. 15340exclude_expsyms=$lt_exclude_expsyms_F77 15341 15342# Symbols that must always be exported. 15343include_expsyms=$lt_include_expsyms_F77 15344 15345# ### END LIBTOOL TAG CONFIG: $tagname 15346 15347__EOF__ 15348 15349 15350else 15351 # If there is no Makefile yet, we rely on a make rule to execute 15352 # `config.status --recheck' to rerun these tests and create the 15353 # libtool script then. 15354 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15355 if test -f "$ltmain_in"; then 15356 test -f Makefile && make "$ltmain" 15357 fi 15358fi 15359 15360 15361ac_ext=c 15362ac_cpp='$CPP $CPPFLAGS' 15363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15365ac_compiler_gnu=$ac_cv_c_compiler_gnu 15366 15367CC="$lt_save_CC" 15368 15369 else 15370 tagname="" 15371 fi 15372 ;; 15373 15374 GCJ) 15375 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15376 15377 15378 15379# Source file extension for Java test sources. 15380ac_ext=java 15381 15382# Object file extension for compiled Java test sources. 15383objext=o 15384objext_GCJ=$objext 15385 15386# Code to be used in simple compile tests 15387lt_simple_compile_test_code="class foo {}\n" 15388 15389# Code to be used in simple link tests 15390lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15391 15392# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15393 15394# If no C compiler was specified, use CC. 15395LTCC=${LTCC-"$CC"} 15396 15397# If no C compiler flags were specified, use CFLAGS. 15398LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15399 15400# Allow CC to be a program name with arguments. 15401compiler=$CC 15402 15403 15404# save warnings/boilerplate of simple test code 15405ac_outfile=conftest.$ac_objext 15406printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15407eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15408_lt_compiler_boilerplate=`cat conftest.err` 15409$rm conftest* 15410 15411ac_outfile=conftest.$ac_objext 15412printf "$lt_simple_link_test_code" >conftest.$ac_ext 15413eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15414_lt_linker_boilerplate=`cat conftest.err` 15415$rm conftest* 15416 15417 15418# Allow CC to be a program name with arguments. 15419lt_save_CC="$CC" 15420CC=${GCJ-"gcj"} 15421compiler=$CC 15422compiler_GCJ=$CC 15423for cc_temp in $compiler""; do 15424 case $cc_temp in 15425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15427 \-*) ;; 15428 *) break;; 15429 esac 15430done 15431cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15432 15433 15434# GCJ did not exist at the time GCC didn't implicitly link libc in. 15435archive_cmds_need_lc_GCJ=no 15436 15437old_archive_cmds_GCJ=$old_archive_cmds 15438 15439 15440lt_prog_compiler_no_builtin_flag_GCJ= 15441 15442if test "$GCC" = yes; then 15443 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15444 15445 15446echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15447echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15448if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15449 echo $ECHO_N "(cached) $ECHO_C" >&6 15450else 15451 lt_cv_prog_compiler_rtti_exceptions=no 15452 ac_outfile=conftest.$ac_objext 15453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15454 lt_compiler_flag="-fno-rtti -fno-exceptions" 15455 # Insert the option either (1) after the last *FLAGS variable, or 15456 # (2) before a word containing "conftest.", or (3) at the end. 15457 # Note that $ac_compile itself does not contain backslashes and begins 15458 # with a dollar sign (not a hyphen), so the echo should work correctly. 15459 # The option is referenced via a variable to avoid confusing sed. 15460 lt_compile=`echo "$ac_compile" | $SED \ 15461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15463 -e 's:$: $lt_compiler_flag:'` 15464 (eval echo "\"\$as_me:15464: $lt_compile\"" >&5) 15465 (eval "$lt_compile" 2>conftest.err) 15466 ac_status=$? 15467 cat conftest.err >&5 15468 echo "$as_me:15468: \$? = $ac_status" >&5 15469 if (exit $ac_status) && test -s "$ac_outfile"; then 15470 # The compiler can only warn and ignore the option if not recognized 15471 # So say no if there are warnings other than the usual output. 15472 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15475 lt_cv_prog_compiler_rtti_exceptions=yes 15476 fi 15477 fi 15478 $rm conftest* 15479 15480fi 15481echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15482echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15483 15484if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15485 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15486else 15487 : 15488fi 15489 15490fi 15491 15492lt_prog_compiler_wl_GCJ= 15493lt_prog_compiler_pic_GCJ= 15494lt_prog_compiler_static_GCJ= 15495 15496echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15497echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15498 15499 if test "$GCC" = yes; then 15500 lt_prog_compiler_wl_GCJ='-Wl,' 15501 lt_prog_compiler_static_GCJ='-static' 15502 15503 case $host_os in 15504 aix*) 15505 # All AIX code is PIC. 15506 if test "$host_cpu" = ia64; then 15507 # AIX 5 now supports IA64 processor 15508 lt_prog_compiler_static_GCJ='-Bstatic' 15509 fi 15510 ;; 15511 15512 amigaos*) 15513 # FIXME: we need at least 68020 code to build shared libraries, but 15514 # adding the `-m68020' flag to GCC prevents building anything better, 15515 # like `-m68040'. 15516 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15517 ;; 15518 15519 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15520 # PIC is the default for these OSes. 15521 ;; 15522 15523 mingw* | pw32* | os2*) 15524 # This hack is so that the source file can tell whether it is being 15525 # built for inclusion in a dll (and should export symbols for example). 15526 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15527 ;; 15528 15529 darwin* | rhapsody*) 15530 # PIC is the default on this platform 15531 # Common symbols not allowed in MH_DYLIB files 15532 lt_prog_compiler_pic_GCJ='-fno-common' 15533 ;; 15534 15535 interix3*) 15536 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15537 # Instead, we relocate shared libraries at runtime. 15538 ;; 15539 15540 msdosdjgpp*) 15541 # Just because we use GCC doesn't mean we suddenly get shared libraries 15542 # on systems that don't support them. 15543 lt_prog_compiler_can_build_shared_GCJ=no 15544 enable_shared=no 15545 ;; 15546 15547 sysv4*MP*) 15548 if test -d /usr/nec; then 15549 lt_prog_compiler_pic_GCJ=-Kconform_pic 15550 fi 15551 ;; 15552 15553 hpux*) 15554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15555 # not for PA HP-UX. 15556 case $host_cpu in 15557 hppa*64*|ia64*) 15558 # +Z the default 15559 ;; 15560 *) 15561 lt_prog_compiler_pic_GCJ='-fPIC' 15562 ;; 15563 esac 15564 ;; 15565 15566 *) 15567 lt_prog_compiler_pic_GCJ='-fPIC' 15568 ;; 15569 esac 15570 else 15571 # PORTME Check for flag to pass linker flags through the system compiler. 15572 case $host_os in 15573 aix*) 15574 lt_prog_compiler_wl_GCJ='-Wl,' 15575 if test "$host_cpu" = ia64; then 15576 # AIX 5 now supports IA64 processor 15577 lt_prog_compiler_static_GCJ='-Bstatic' 15578 else 15579 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15580 fi 15581 ;; 15582 darwin*) 15583 # PIC is the default on this platform 15584 # Common symbols not allowed in MH_DYLIB files 15585 case $cc_basename in 15586 xlc*) 15587 lt_prog_compiler_pic_GCJ='-qnocommon' 15588 lt_prog_compiler_wl_GCJ='-Wl,' 15589 ;; 15590 esac 15591 ;; 15592 15593 mingw* | pw32* | os2*) 15594 # This hack is so that the source file can tell whether it is being 15595 # built for inclusion in a dll (and should export symbols for example). 15596 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15597 ;; 15598 15599 hpux9* | hpux10* | hpux11*) 15600 lt_prog_compiler_wl_GCJ='-Wl,' 15601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15602 # not for PA HP-UX. 15603 case $host_cpu in 15604 hppa*64*|ia64*) 15605 # +Z the default 15606 ;; 15607 *) 15608 lt_prog_compiler_pic_GCJ='+Z' 15609 ;; 15610 esac 15611 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15612 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15613 ;; 15614 15615 irix5* | irix6* | nonstopux*) 15616 lt_prog_compiler_wl_GCJ='-Wl,' 15617 # PIC (with -KPIC) is the default. 15618 lt_prog_compiler_static_GCJ='-non_shared' 15619 ;; 15620 15621 newsos6) 15622 lt_prog_compiler_pic_GCJ='-KPIC' 15623 lt_prog_compiler_static_GCJ='-Bstatic' 15624 ;; 15625 15626 linux*) 15627 case $cc_basename in 15628 icc* | ecc*) 15629 lt_prog_compiler_wl_GCJ='-Wl,' 15630 lt_prog_compiler_pic_GCJ='-KPIC' 15631 lt_prog_compiler_static_GCJ='-static' 15632 ;; 15633 pgcc* | pgf77* | pgf90* | pgf95*) 15634 # Portland Group compilers (*not* the Pentium gcc compiler, 15635 # which looks to be a dead project) 15636 lt_prog_compiler_wl_GCJ='-Wl,' 15637 lt_prog_compiler_pic_GCJ='-fpic' 15638 lt_prog_compiler_static_GCJ='-Bstatic' 15639 ;; 15640 ccc*) 15641 lt_prog_compiler_wl_GCJ='-Wl,' 15642 # All Alpha code is PIC. 15643 lt_prog_compiler_static_GCJ='-non_shared' 15644 ;; 15645 esac 15646 ;; 15647 15648 osf3* | osf4* | osf5*) 15649 lt_prog_compiler_wl_GCJ='-Wl,' 15650 # All OSF/1 code is PIC. 15651 lt_prog_compiler_static_GCJ='-non_shared' 15652 ;; 15653 15654 solaris*) 15655 lt_prog_compiler_pic_GCJ='-KPIC' 15656 lt_prog_compiler_static_GCJ='-Bstatic' 15657 case $cc_basename in 15658 f77* | f90* | f95*) 15659 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15660 *) 15661 lt_prog_compiler_wl_GCJ='-Wl,';; 15662 esac 15663 ;; 15664 15665 sunos4*) 15666 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15667 lt_prog_compiler_pic_GCJ='-PIC' 15668 lt_prog_compiler_static_GCJ='-Bstatic' 15669 ;; 15670 15671 sysv4 | sysv4.2uw2* | sysv4.3*) 15672 lt_prog_compiler_wl_GCJ='-Wl,' 15673 lt_prog_compiler_pic_GCJ='-KPIC' 15674 lt_prog_compiler_static_GCJ='-Bstatic' 15675 ;; 15676 15677 sysv4*MP*) 15678 if test -d /usr/nec ;then 15679 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15680 lt_prog_compiler_static_GCJ='-Bstatic' 15681 fi 15682 ;; 15683 15684 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15685 lt_prog_compiler_wl_GCJ='-Wl,' 15686 lt_prog_compiler_pic_GCJ='-KPIC' 15687 lt_prog_compiler_static_GCJ='-Bstatic' 15688 ;; 15689 15690 unicos*) 15691 lt_prog_compiler_wl_GCJ='-Wl,' 15692 lt_prog_compiler_can_build_shared_GCJ=no 15693 ;; 15694 15695 uts4*) 15696 lt_prog_compiler_pic_GCJ='-pic' 15697 lt_prog_compiler_static_GCJ='-Bstatic' 15698 ;; 15699 15700 *) 15701 lt_prog_compiler_can_build_shared_GCJ=no 15702 ;; 15703 esac 15704 fi 15705 15706echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15707echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15708 15709# 15710# Check to make sure the PIC flag actually works. 15711# 15712if test -n "$lt_prog_compiler_pic_GCJ"; then 15713 15714echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15715echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15716if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15717 echo $ECHO_N "(cached) $ECHO_C" >&6 15718else 15719 lt_prog_compiler_pic_works_GCJ=no 15720 ac_outfile=conftest.$ac_objext 15721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15722 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15723 # Insert the option either (1) after the last *FLAGS variable, or 15724 # (2) before a word containing "conftest.", or (3) at the end. 15725 # Note that $ac_compile itself does not contain backslashes and begins 15726 # with a dollar sign (not a hyphen), so the echo should work correctly. 15727 # The option is referenced via a variable to avoid confusing sed. 15728 lt_compile=`echo "$ac_compile" | $SED \ 15729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15731 -e 's:$: $lt_compiler_flag:'` 15732 (eval echo "\"\$as_me:15732: $lt_compile\"" >&5) 15733 (eval "$lt_compile" 2>conftest.err) 15734 ac_status=$? 15735 cat conftest.err >&5 15736 echo "$as_me:15736: \$? = $ac_status" >&5 15737 if (exit $ac_status) && test -s "$ac_outfile"; then 15738 # The compiler can only warn and ignore the option if not recognized 15739 # So say no if there are warnings other than the usual output. 15740 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15743 lt_prog_compiler_pic_works_GCJ=yes 15744 fi 15745 fi 15746 $rm conftest* 15747 15748fi 15749echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15750echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15751 15752if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15753 case $lt_prog_compiler_pic_GCJ in 15754 "" | " "*) ;; 15755 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15756 esac 15757else 15758 lt_prog_compiler_pic_GCJ= 15759 lt_prog_compiler_can_build_shared_GCJ=no 15760fi 15761 15762fi 15763case $host_os in 15764 # For platforms which do not support PIC, -DPIC is meaningless: 15765 *djgpp*) 15766 lt_prog_compiler_pic_GCJ= 15767 ;; 15768 *) 15769 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15770 ;; 15771esac 15772 15773# 15774# Check to make sure the static flag actually works. 15775# 15776wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15777echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15778echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15779if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15780 echo $ECHO_N "(cached) $ECHO_C" >&6 15781else 15782 lt_prog_compiler_static_works_GCJ=no 15783 save_LDFLAGS="$LDFLAGS" 15784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15785 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15787 # The linker can only warn and ignore the option if not recognized 15788 # So say no if there are warnings 15789 if test -s conftest.err; then 15790 # Append any errors to the config.log. 15791 cat conftest.err 1>&5 15792 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15794 if diff conftest.exp conftest.er2 >/dev/null; then 15795 lt_prog_compiler_static_works_GCJ=yes 15796 fi 15797 else 15798 lt_prog_compiler_static_works_GCJ=yes 15799 fi 15800 fi 15801 $rm conftest* 15802 LDFLAGS="$save_LDFLAGS" 15803 15804fi 15805echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15806echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15807 15808if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15809 : 15810else 15811 lt_prog_compiler_static_GCJ= 15812fi 15813 15814 15815echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15816echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15817if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15818 echo $ECHO_N "(cached) $ECHO_C" >&6 15819else 15820 lt_cv_prog_compiler_c_o_GCJ=no 15821 $rm -r conftest 2>/dev/null 15822 mkdir conftest 15823 cd conftest 15824 mkdir out 15825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15826 15827 lt_compiler_flag="-o out/conftest2.$ac_objext" 15828 # Insert the option either (1) after the last *FLAGS variable, or 15829 # (2) before a word containing "conftest.", or (3) at the end. 15830 # Note that $ac_compile itself does not contain backslashes and begins 15831 # with a dollar sign (not a hyphen), so the echo should work correctly. 15832 lt_compile=`echo "$ac_compile" | $SED \ 15833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15835 -e 's:$: $lt_compiler_flag:'` 15836 (eval echo "\"\$as_me:15836: $lt_compile\"" >&5) 15837 (eval "$lt_compile" 2>out/conftest.err) 15838 ac_status=$? 15839 cat out/conftest.err >&5 15840 echo "$as_me:15840: \$? = $ac_status" >&5 15841 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15842 then 15843 # The compiler can only warn and ignore the option if not recognized 15844 # So say no if there are warnings 15845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15848 lt_cv_prog_compiler_c_o_GCJ=yes 15849 fi 15850 fi 15851 chmod u+w . 2>&5 15852 $rm conftest* 15853 # SGI C++ compiler will create directory out/ii_files/ for 15854 # template instantiation 15855 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15856 $rm out/* && rmdir out 15857 cd .. 15858 rmdir conftest 15859 $rm conftest* 15860 15861fi 15862echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15863echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15864 15865 15866hard_links="nottested" 15867if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15868 # do not overwrite the value of need_locks provided by the user 15869 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15870echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15871 hard_links=yes 15872 $rm conftest* 15873 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15874 touch conftest.a 15875 ln conftest.a conftest.b 2>&5 || hard_links=no 15876 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15877 echo "$as_me:$LINENO: result: $hard_links" >&5 15878echo "${ECHO_T}$hard_links" >&6 15879 if test "$hard_links" = no; then 15880 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15881echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15882 need_locks=warn 15883 fi 15884else 15885 need_locks=no 15886fi 15887 15888echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15889echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15890 15891 runpath_var= 15892 allow_undefined_flag_GCJ= 15893 enable_shared_with_static_runtimes_GCJ=no 15894 archive_cmds_GCJ= 15895 archive_expsym_cmds_GCJ= 15896 old_archive_From_new_cmds_GCJ= 15897 old_archive_from_expsyms_cmds_GCJ= 15898 export_dynamic_flag_spec_GCJ= 15899 whole_archive_flag_spec_GCJ= 15900 thread_safe_flag_spec_GCJ= 15901 hardcode_libdir_flag_spec_GCJ= 15902 hardcode_libdir_flag_spec_ld_GCJ= 15903 hardcode_libdir_separator_GCJ= 15904 hardcode_direct_GCJ=no 15905 hardcode_minus_L_GCJ=no 15906 hardcode_shlibpath_var_GCJ=unsupported 15907 link_all_deplibs_GCJ=unknown 15908 hardcode_automatic_GCJ=no 15909 module_cmds_GCJ= 15910 module_expsym_cmds_GCJ= 15911 always_export_symbols_GCJ=no 15912 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15913 # include_expsyms should be a list of space-separated symbols to be *always* 15914 # included in the symbol list 15915 include_expsyms_GCJ= 15916 # exclude_expsyms can be an extended regexp of symbols to exclude 15917 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15918 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15919 # as well as any symbol that contains `d'. 15920 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15921 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15922 # platforms (ab)use it in PIC code, but their linkers get confused if 15923 # the symbol is explicitly referenced. Since portable code cannot 15924 # rely on this symbol name, it's probably fine to never include it in 15925 # preloaded symbol tables. 15926 extract_expsyms_cmds= 15927 # Just being paranoid about ensuring that cc_basename is set. 15928 for cc_temp in $compiler""; do 15929 case $cc_temp in 15930 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15931 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15932 \-*) ;; 15933 *) break;; 15934 esac 15935done 15936cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15937 15938 case $host_os in 15939 cygwin* | mingw* | pw32*) 15940 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15941 # When not using gcc, we currently assume that we are using 15942 # Microsoft Visual C++. 15943 if test "$GCC" != yes; then 15944 with_gnu_ld=no 15945 fi 15946 ;; 15947 interix*) 15948 # we just hope/assume this is gcc and not c89 (= MSVC++) 15949 with_gnu_ld=yes 15950 ;; 15951 openbsd*) 15952 with_gnu_ld=no 15953 ;; 15954 esac 15955 15956 ld_shlibs_GCJ=yes 15957 if test "$with_gnu_ld" = yes; then 15958 # If archive_cmds runs LD, not CC, wlarc should be empty 15959 wlarc='${wl}' 15960 15961 # Set some defaults for GNU ld with shared library support. These 15962 # are reset later if shared libraries are not supported. Putting them 15963 # here allows them to be overridden if necessary. 15964 runpath_var=LD_RUN_PATH 15965 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15966 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15967 # ancient GNU ld didn't support --whole-archive et. al. 15968 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15969 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15970 else 15971 whole_archive_flag_spec_GCJ= 15972 fi 15973 supports_anon_versioning=no 15974 case `$LD -v 2>/dev/null` in 15975 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15976 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15977 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15978 *\ 2.11.*) ;; # other 2.11 versions 15979 *) supports_anon_versioning=yes ;; 15980 esac 15981 15982 # See if GNU ld supports shared libraries. 15983 case $host_os in 15984 aix3* | aix4* | aix5*) 15985 # On AIX/PPC, the GNU linker is very broken 15986 if test "$host_cpu" != ia64; then 15987 ld_shlibs_GCJ=no 15988 cat <<EOF 1>&2 15989 15990*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15991*** to be unable to reliably create shared libraries on AIX. 15992*** Therefore, libtool is disabling shared libraries support. If you 15993*** really care for shared libraries, you may want to modify your PATH 15994*** so that a non-GNU linker is found, and then restart. 15995 15996EOF 15997 fi 15998 ;; 15999 16000 amigaos*) 16001 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)' 16002 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16003 hardcode_minus_L_GCJ=yes 16004 16005 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16006 # that the semantics of dynamic libraries on AmigaOS, at least up 16007 # to version 4, is to share data among multiple programs linked 16008 # with the same dynamic library. Since this doesn't match the 16009 # behavior of shared libraries on other platforms, we can't use 16010 # them. 16011 ld_shlibs_GCJ=no 16012 ;; 16013 16014 beos*) 16015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16016 allow_undefined_flag_GCJ=unsupported 16017 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16018 # support --undefined. This deserves some investigation. FIXME 16019 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16020 else 16021 ld_shlibs_GCJ=no 16022 fi 16023 ;; 16024 16025 cygwin* | mingw* | pw32*) 16026 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16027 # as there is no search path for DLLs. 16028 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16029 allow_undefined_flag_GCJ=unsupported 16030 always_export_symbols_GCJ=no 16031 enable_shared_with_static_runtimes_GCJ=yes 16032 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16033 16034 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16035 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16036 # If the export-symbols file already is a .def file (1st line 16037 # is EXPORTS), use it as is; otherwise, prepend... 16038 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16039 cp $export_symbols $output_objdir/$soname.def; 16040 else 16041 echo EXPORTS > $output_objdir/$soname.def; 16042 cat $export_symbols >> $output_objdir/$soname.def; 16043 fi~ 16044 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16045 else 16046 ld_shlibs_GCJ=no 16047 fi 16048 ;; 16049 16050 interix3*) 16051 hardcode_direct_GCJ=no 16052 hardcode_shlibpath_var_GCJ=no 16053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16054 export_dynamic_flag_spec_GCJ='${wl}-E' 16055 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16056 # Instead, shared libraries are loaded at an image base (0x10000000 by 16057 # default) and relocated if they conflict, which is a slow very memory 16058 # consuming and fragmenting process. To avoid this, we pick a random, 16059 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16060 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16061 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' 16062 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' 16063 ;; 16064 16065 linux*) 16066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16067 tmp_addflag= 16068 case $cc_basename,$host_cpu in 16069 pgcc*) # Portland Group C compiler 16070 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' 16071 tmp_addflag=' $pic_flag' 16072 ;; 16073 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16074 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' 16075 tmp_addflag=' $pic_flag -Mnomain' ;; 16076 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16077 tmp_addflag=' -i_dynamic' ;; 16078 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16079 tmp_addflag=' -i_dynamic -nofor_main' ;; 16080 ifc* | ifort*) # Intel Fortran compiler 16081 tmp_addflag=' -nofor_main' ;; 16082 esac 16083 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16084 16085 if test $supports_anon_versioning = yes; then 16086 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16088 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16089 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16090 fi 16091 else 16092 ld_shlibs_GCJ=no 16093 fi 16094 ;; 16095 16096 netbsd*) 16097 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16098 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16099 wlarc= 16100 else 16101 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16102 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16103 fi 16104 ;; 16105 16106 solaris*) 16107 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16108 ld_shlibs_GCJ=no 16109 cat <<EOF 1>&2 16110 16111*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16112*** create shared libraries on Solaris systems. Therefore, libtool 16113*** is disabling shared libraries support. We urge you to upgrade GNU 16114*** binutils to release 2.9.1 or newer. Another option is to modify 16115*** your PATH or compiler configuration so that the native linker is 16116*** used, and then restart. 16117 16118EOF 16119 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16120 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16121 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16122 else 16123 ld_shlibs_GCJ=no 16124 fi 16125 ;; 16126 16127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16128 case `$LD -v 2>&1` in 16129 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16130 ld_shlibs_GCJ=no 16131 cat <<_LT_EOF 1>&2 16132 16133*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16134*** reliably create shared libraries on SCO systems. Therefore, libtool 16135*** is disabling shared libraries support. We urge you to upgrade GNU 16136*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16137*** your PATH or compiler configuration so that the native linker is 16138*** used, and then restart. 16139 16140_LT_EOF 16141 ;; 16142 *) 16143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16144 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16145 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16146 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16147 else 16148 ld_shlibs_GCJ=no 16149 fi 16150 ;; 16151 esac 16152 ;; 16153 16154 sunos4*) 16155 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16156 wlarc= 16157 hardcode_direct_GCJ=yes 16158 hardcode_shlibpath_var_GCJ=no 16159 ;; 16160 16161 *) 16162 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16163 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16164 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16165 else 16166 ld_shlibs_GCJ=no 16167 fi 16168 ;; 16169 esac 16170 16171 if test "$ld_shlibs_GCJ" = no; then 16172 runpath_var= 16173 hardcode_libdir_flag_spec_GCJ= 16174 export_dynamic_flag_spec_GCJ= 16175 whole_archive_flag_spec_GCJ= 16176 fi 16177 else 16178 # PORTME fill in a description of your system's linker (not GNU ld) 16179 case $host_os in 16180 aix3*) 16181 allow_undefined_flag_GCJ=unsupported 16182 always_export_symbols_GCJ=yes 16183 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' 16184 # Note: this linker hardcodes the directories in LIBPATH if there 16185 # are no directories specified by -L. 16186 hardcode_minus_L_GCJ=yes 16187 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16188 # Neither direct hardcoding nor static linking is supported with a 16189 # broken collect2. 16190 hardcode_direct_GCJ=unsupported 16191 fi 16192 ;; 16193 16194 aix4* | aix5*) 16195 if test "$host_cpu" = ia64; then 16196 # On IA64, the linker does run time linking by default, so we don't 16197 # have to do anything special. 16198 aix_use_runtimelinking=no 16199 exp_sym_flag='-Bexport' 16200 no_entry_flag="" 16201 else 16202 # If we're using GNU nm, then we don't want the "-C" option. 16203 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16204 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16205 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' 16206 else 16207 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' 16208 fi 16209 aix_use_runtimelinking=no 16210 16211 # Test if we are trying to use run time linking or normal 16212 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16213 # need to do runtime linking. 16214 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16215 for ld_flag in $LDFLAGS; do 16216 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16217 aix_use_runtimelinking=yes 16218 break 16219 fi 16220 done 16221 ;; 16222 esac 16223 16224 exp_sym_flag='-bexport' 16225 no_entry_flag='-bnoentry' 16226 fi 16227 16228 # When large executables or shared objects are built, AIX ld can 16229 # have problems creating the table of contents. If linking a library 16230 # or program results in "error TOC overflow" add -mminimal-toc to 16231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16233 16234 archive_cmds_GCJ='' 16235 hardcode_direct_GCJ=yes 16236 hardcode_libdir_separator_GCJ=':' 16237 link_all_deplibs_GCJ=yes 16238 16239 if test "$GCC" = yes; then 16240 case $host_os in aix4.[012]|aix4.[012].*) 16241 # We only want to do this on AIX 4.2 and lower, the check 16242 # below for broken collect2 doesn't work under 4.3+ 16243 collect2name=`${CC} -print-prog-name=collect2` 16244 if test -f "$collect2name" && \ 16245 strings "$collect2name" | grep resolve_lib_name >/dev/null 16246 then 16247 # We have reworked collect2 16248 hardcode_direct_GCJ=yes 16249 else 16250 # We have old collect2 16251 hardcode_direct_GCJ=unsupported 16252 # It fails to find uninstalled libraries when the uninstalled 16253 # path is not listed in the libpath. Setting hardcode_minus_L 16254 # to unsupported forces relinking 16255 hardcode_minus_L_GCJ=yes 16256 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16257 hardcode_libdir_separator_GCJ= 16258 fi 16259 ;; 16260 esac 16261 shared_flag='-shared' 16262 if test "$aix_use_runtimelinking" = yes; then 16263 shared_flag="$shared_flag "'${wl}-G' 16264 fi 16265 else 16266 # not using gcc 16267 if test "$host_cpu" = ia64; then 16268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16269 # chokes on -Wl,-G. The following line is correct: 16270 shared_flag='-G' 16271 else 16272 if test "$aix_use_runtimelinking" = yes; then 16273 shared_flag='${wl}-G' 16274 else 16275 shared_flag='${wl}-bM:SRE' 16276 fi 16277 fi 16278 fi 16279 16280 # It seems that -bexpall does not export symbols beginning with 16281 # underscore (_), so it is better to generate a list of symbols to export. 16282 always_export_symbols_GCJ=yes 16283 if test "$aix_use_runtimelinking" = yes; then 16284 # Warning - without using the other runtime loading flags (-brtl), 16285 # -berok will link without error, but may produce a broken library. 16286 allow_undefined_flag_GCJ='-berok' 16287 # Determine the default libpath from the value encoded in an empty executable. 16288 cat >conftest.$ac_ext <<_ACEOF 16289/* confdefs.h. */ 16290_ACEOF 16291cat confdefs.h >>conftest.$ac_ext 16292cat >>conftest.$ac_ext <<_ACEOF 16293/* end confdefs.h. */ 16294 16295int 16296main () 16297{ 16298 16299 ; 16300 return 0; 16301} 16302_ACEOF 16303rm -f conftest.$ac_objext conftest$ac_exeext 16304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16305 (eval $ac_link) 2>conftest.er1 16306 ac_status=$? 16307 grep -v '^ *+' conftest.er1 >conftest.err 16308 rm -f conftest.er1 16309 cat conftest.err >&5 16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16311 (exit $ac_status); } && 16312 { ac_try='test -z "$ac_c_werror_flag" 16313 || test ! -s conftest.err' 16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16315 (eval $ac_try) 2>&5 16316 ac_status=$? 16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16318 (exit $ac_status); }; } && 16319 { ac_try='test -s conftest$ac_exeext' 16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16321 (eval $ac_try) 2>&5 16322 ac_status=$? 16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16324 (exit $ac_status); }; }; then 16325 16326aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16327}'` 16328# Check for a 64-bit object if we didn't find anything. 16329if 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; } 16330}'`; fi 16331else 16332 echo "$as_me: failed program was:" >&5 16333sed 's/^/| /' conftest.$ac_ext >&5 16334 16335fi 16336rm -f conftest.err conftest.$ac_objext \ 16337 conftest$ac_exeext conftest.$ac_ext 16338if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16339 16340 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16341 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" 16342 else 16343 if test "$host_cpu" = ia64; then 16344 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16345 allow_undefined_flag_GCJ="-z nodefs" 16346 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" 16347 else 16348 # Determine the default libpath from the value encoded in an empty executable. 16349 cat >conftest.$ac_ext <<_ACEOF 16350/* confdefs.h. */ 16351_ACEOF 16352cat confdefs.h >>conftest.$ac_ext 16353cat >>conftest.$ac_ext <<_ACEOF 16354/* end confdefs.h. */ 16355 16356int 16357main () 16358{ 16359 16360 ; 16361 return 0; 16362} 16363_ACEOF 16364rm -f conftest.$ac_objext conftest$ac_exeext 16365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16366 (eval $ac_link) 2>conftest.er1 16367 ac_status=$? 16368 grep -v '^ *+' conftest.er1 >conftest.err 16369 rm -f conftest.er1 16370 cat conftest.err >&5 16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16372 (exit $ac_status); } && 16373 { ac_try='test -z "$ac_c_werror_flag" 16374 || test ! -s conftest.err' 16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16376 (eval $ac_try) 2>&5 16377 ac_status=$? 16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16379 (exit $ac_status); }; } && 16380 { ac_try='test -s conftest$ac_exeext' 16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16382 (eval $ac_try) 2>&5 16383 ac_status=$? 16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16385 (exit $ac_status); }; }; then 16386 16387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16388}'` 16389# Check for a 64-bit object if we didn't find anything. 16390if 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; } 16391}'`; fi 16392else 16393 echo "$as_me: failed program was:" >&5 16394sed 's/^/| /' conftest.$ac_ext >&5 16395 16396fi 16397rm -f conftest.err conftest.$ac_objext \ 16398 conftest$ac_exeext conftest.$ac_ext 16399if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16400 16401 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16402 # Warning - without using the other run time loading flags, 16403 # -berok will link without error, but may produce a broken library. 16404 no_undefined_flag_GCJ=' ${wl}-bernotok' 16405 allow_undefined_flag_GCJ=' ${wl}-berok' 16406 # Exported symbols can be pulled into shared objects from archives 16407 whole_archive_flag_spec_GCJ='$convenience' 16408 archive_cmds_need_lc_GCJ=yes 16409 # This is similar to how AIX traditionally builds its shared libraries. 16410 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' 16411 fi 16412 fi 16413 ;; 16414 16415 amigaos*) 16416 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)' 16417 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16418 hardcode_minus_L_GCJ=yes 16419 # see comment about different semantics on the GNU ld section 16420 ld_shlibs_GCJ=no 16421 ;; 16422 16423 bsdi[45]*) 16424 export_dynamic_flag_spec_GCJ=-rdynamic 16425 ;; 16426 16427 cygwin* | mingw* | pw32*) 16428 # When not using gcc, we currently assume that we are using 16429 # Microsoft Visual C++. 16430 # hardcode_libdir_flag_spec is actually meaningless, as there is 16431 # no search path for DLLs. 16432 hardcode_libdir_flag_spec_GCJ=' ' 16433 allow_undefined_flag_GCJ=unsupported 16434 # Tell ltmain to make .lib files, not .a files. 16435 libext=lib 16436 # Tell ltmain to make .dll files, not .so files. 16437 shrext_cmds=".dll" 16438 # FIXME: Setting linknames here is a bad hack. 16439 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16440 # The linker will automatically build a .lib file if we build a DLL. 16441 old_archive_From_new_cmds_GCJ='true' 16442 # FIXME: Should let the user specify the lib program. 16443 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16444 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16445 enable_shared_with_static_runtimes_GCJ=yes 16446 ;; 16447 16448 darwin* | rhapsody*) 16449 case $host_os in 16450 rhapsody* | darwin1.[012]) 16451 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16452 ;; 16453 *) # Darwin 1.3 on 16454 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16455 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16456 else 16457 case ${MACOSX_DEPLOYMENT_TARGET} in 16458 10.[012]) 16459 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16460 ;; 16461 10.*) 16462 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16463 ;; 16464 esac 16465 fi 16466 ;; 16467 esac 16468 archive_cmds_need_lc_GCJ=no 16469 hardcode_direct_GCJ=no 16470 hardcode_automatic_GCJ=yes 16471 hardcode_shlibpath_var_GCJ=unsupported 16472 whole_archive_flag_spec_GCJ='' 16473 link_all_deplibs_GCJ=yes 16474 if test "$GCC" = yes ; then 16475 output_verbose_link_cmd='echo' 16476 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16477 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16478 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16479 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}' 16480 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}' 16481 else 16482 case $cc_basename in 16483 xlc*) 16484 output_verbose_link_cmd='echo' 16485 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16486 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16487 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16488 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}' 16489 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}' 16490 ;; 16491 *) 16492 ld_shlibs_GCJ=no 16493 ;; 16494 esac 16495 fi 16496 ;; 16497 16498 dgux*) 16499 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16500 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16501 hardcode_shlibpath_var_GCJ=no 16502 ;; 16503 16504 freebsd1*) 16505 ld_shlibs_GCJ=no 16506 ;; 16507 16508 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16509 # support. Future versions do this automatically, but an explicit c++rt0.o 16510 # does not break anything, and helps significantly (at the cost of a little 16511 # extra space). 16512 freebsd2.2*) 16513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16514 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16515 hardcode_direct_GCJ=yes 16516 hardcode_shlibpath_var_GCJ=no 16517 ;; 16518 16519 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16520 freebsd2*) 16521 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16522 hardcode_direct_GCJ=yes 16523 hardcode_minus_L_GCJ=yes 16524 hardcode_shlibpath_var_GCJ=no 16525 ;; 16526 16527 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16528 freebsd* | kfreebsd*-gnu | dragonfly*) 16529 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16530 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16531 hardcode_direct_GCJ=yes 16532 hardcode_shlibpath_var_GCJ=no 16533 ;; 16534 16535 hpux9*) 16536 if test "$GCC" = yes; then 16537 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' 16538 else 16539 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' 16540 fi 16541 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16542 hardcode_libdir_separator_GCJ=: 16543 hardcode_direct_GCJ=yes 16544 16545 # hardcode_minus_L: Not really in the search PATH, 16546 # but as the default location of the library. 16547 hardcode_minus_L_GCJ=yes 16548 export_dynamic_flag_spec_GCJ='${wl}-E' 16549 ;; 16550 16551 hpux10*) 16552 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16553 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16554 else 16555 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16556 fi 16557 if test "$with_gnu_ld" = no; then 16558 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16559 hardcode_libdir_separator_GCJ=: 16560 16561 hardcode_direct_GCJ=yes 16562 export_dynamic_flag_spec_GCJ='${wl}-E' 16563 16564 # hardcode_minus_L: Not really in the search PATH, 16565 # but as the default location of the library. 16566 hardcode_minus_L_GCJ=yes 16567 fi 16568 ;; 16569 16570 hpux11*) 16571 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16572 case $host_cpu in 16573 hppa*64*) 16574 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16575 ;; 16576 ia64*) 16577 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16578 ;; 16579 *) 16580 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16581 ;; 16582 esac 16583 else 16584 case $host_cpu in 16585 hppa*64*) 16586 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16587 ;; 16588 ia64*) 16589 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16590 ;; 16591 *) 16592 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16593 ;; 16594 esac 16595 fi 16596 if test "$with_gnu_ld" = no; then 16597 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16598 hardcode_libdir_separator_GCJ=: 16599 16600 case $host_cpu in 16601 hppa*64*|ia64*) 16602 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16603 hardcode_direct_GCJ=no 16604 hardcode_shlibpath_var_GCJ=no 16605 ;; 16606 *) 16607 hardcode_direct_GCJ=yes 16608 export_dynamic_flag_spec_GCJ='${wl}-E' 16609 16610 # hardcode_minus_L: Not really in the search PATH, 16611 # but as the default location of the library. 16612 hardcode_minus_L_GCJ=yes 16613 ;; 16614 esac 16615 fi 16616 ;; 16617 16618 irix5* | irix6* | nonstopux*) 16619 if test "$GCC" = yes; then 16620 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' 16621 else 16622 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' 16623 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16624 fi 16625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16626 hardcode_libdir_separator_GCJ=: 16627 link_all_deplibs_GCJ=yes 16628 ;; 16629 16630 netbsd*) 16631 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16632 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16633 else 16634 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16635 fi 16636 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16637 hardcode_direct_GCJ=yes 16638 hardcode_shlibpath_var_GCJ=no 16639 ;; 16640 16641 newsos6) 16642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16643 hardcode_direct_GCJ=yes 16644 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16645 hardcode_libdir_separator_GCJ=: 16646 hardcode_shlibpath_var_GCJ=no 16647 ;; 16648 16649 openbsd*) 16650 hardcode_direct_GCJ=yes 16651 hardcode_shlibpath_var_GCJ=no 16652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16653 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16654 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16656 export_dynamic_flag_spec_GCJ='${wl}-E' 16657 else 16658 case $host_os in 16659 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16660 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16661 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16662 ;; 16663 *) 16664 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16665 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16666 ;; 16667 esac 16668 fi 16669 ;; 16670 16671 os2*) 16672 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16673 hardcode_minus_L_GCJ=yes 16674 allow_undefined_flag_GCJ=unsupported 16675 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' 16676 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16677 ;; 16678 16679 osf3*) 16680 if test "$GCC" = yes; then 16681 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16682 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' 16683 else 16684 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16685 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' 16686 fi 16687 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16688 hardcode_libdir_separator_GCJ=: 16689 ;; 16690 16691 osf4* | osf5*) # as osf3* with the addition of -msym flag 16692 if test "$GCC" = yes; then 16693 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16694 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' 16695 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16696 else 16697 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16698 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' 16699 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~ 16700 $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' 16701 16702 # Both c and cxx compiler support -rpath directly 16703 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16704 fi 16705 hardcode_libdir_separator_GCJ=: 16706 ;; 16707 16708 solaris*) 16709 no_undefined_flag_GCJ=' -z text' 16710 if test "$GCC" = yes; then 16711 wlarc='${wl}' 16712 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16713 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16714 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16715 else 16716 wlarc='' 16717 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16718 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16719 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16720 fi 16721 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16722 hardcode_shlibpath_var_GCJ=no 16723 case $host_os in 16724 solaris2.[0-5] | solaris2.[0-5].*) ;; 16725 *) 16726 # The compiler driver will combine linker options so we 16727 # cannot just pass the convience library names through 16728 # without $wl, iff we do not link with $LD. 16729 # Luckily, gcc supports the same syntax we need for Sun Studio. 16730 # Supported since Solaris 2.6 (maybe 2.5.1?) 16731 case $wlarc in 16732 '') 16733 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16734 *) 16735 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' ;; 16736 esac ;; 16737 esac 16738 link_all_deplibs_GCJ=yes 16739 ;; 16740 16741 sunos4*) 16742 if test "x$host_vendor" = xsequent; then 16743 # Use $CC to link under sequent, because it throws in some extra .o 16744 # files that make .init and .fini sections work. 16745 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16746 else 16747 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16748 fi 16749 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16750 hardcode_direct_GCJ=yes 16751 hardcode_minus_L_GCJ=yes 16752 hardcode_shlibpath_var_GCJ=no 16753 ;; 16754 16755 sysv4) 16756 case $host_vendor in 16757 sni) 16758 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16759 hardcode_direct_GCJ=yes # is this really true??? 16760 ;; 16761 siemens) 16762 ## LD is ld it makes a PLAMLIB 16763 ## CC just makes a GrossModule. 16764 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16765 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16766 hardcode_direct_GCJ=no 16767 ;; 16768 motorola) 16769 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16770 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16771 ;; 16772 esac 16773 runpath_var='LD_RUN_PATH' 16774 hardcode_shlibpath_var_GCJ=no 16775 ;; 16776 16777 sysv4.3*) 16778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16779 hardcode_shlibpath_var_GCJ=no 16780 export_dynamic_flag_spec_GCJ='-Bexport' 16781 ;; 16782 16783 sysv4*MP*) 16784 if test -d /usr/nec; then 16785 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16786 hardcode_shlibpath_var_GCJ=no 16787 runpath_var=LD_RUN_PATH 16788 hardcode_runpath_var=yes 16789 ld_shlibs_GCJ=yes 16790 fi 16791 ;; 16792 16793 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16794 no_undefined_flag_GCJ='${wl}-z,text' 16795 archive_cmds_need_lc_GCJ=no 16796 hardcode_shlibpath_var_GCJ=no 16797 runpath_var='LD_RUN_PATH' 16798 16799 if test "$GCC" = yes; then 16800 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16801 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16802 else 16803 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16804 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16805 fi 16806 ;; 16807 16808 sysv5* | sco3.2v5* | sco5v6*) 16809 # Note: We can NOT use -z defs as we might desire, because we do not 16810 # link with -lc, and that would cause any symbols used from libc to 16811 # always be unresolved, which means just about no library would 16812 # ever link correctly. If we're not using GNU ld we use -z text 16813 # though, which does catch some bad symbols but isn't as heavy-handed 16814 # as -z defs. 16815 no_undefined_flag_GCJ='${wl}-z,text' 16816 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16817 archive_cmds_need_lc_GCJ=no 16818 hardcode_shlibpath_var_GCJ=no 16819 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16820 hardcode_libdir_separator_GCJ=':' 16821 link_all_deplibs_GCJ=yes 16822 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16823 runpath_var='LD_RUN_PATH' 16824 16825 if test "$GCC" = yes; then 16826 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16827 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16828 else 16829 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16830 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16831 fi 16832 ;; 16833 16834 uts4*) 16835 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16836 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16837 hardcode_shlibpath_var_GCJ=no 16838 ;; 16839 16840 *) 16841 ld_shlibs_GCJ=no 16842 ;; 16843 esac 16844 fi 16845 16846echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16847echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16848test "$ld_shlibs_GCJ" = no && can_build_shared=no 16849 16850# 16851# Do we need to explicitly link libc? 16852# 16853case "x$archive_cmds_need_lc_GCJ" in 16854x|xyes) 16855 # Assume -lc should be added 16856 archive_cmds_need_lc_GCJ=yes 16857 16858 if test "$enable_shared" = yes && test "$GCC" = yes; then 16859 case $archive_cmds_GCJ in 16860 *'~'*) 16861 # FIXME: we may have to deal with multi-command sequences. 16862 ;; 16863 '$CC '*) 16864 # Test whether the compiler implicitly links with -lc since on some 16865 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16866 # to ld, don't add -lc before -lgcc. 16867 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16868echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16869 $rm conftest* 16870 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16871 16872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16873 (eval $ac_compile) 2>&5 16874 ac_status=$? 16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16876 (exit $ac_status); } 2>conftest.err; then 16877 soname=conftest 16878 lib=conftest 16879 libobjs=conftest.$ac_objext 16880 deplibs= 16881 wl=$lt_prog_compiler_wl_GCJ 16882 pic_flag=$lt_prog_compiler_pic_GCJ 16883 compiler_flags=-v 16884 linker_flags=-v 16885 verstring= 16886 output_objdir=. 16887 libname=conftest 16888 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16889 allow_undefined_flag_GCJ= 16890 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16891 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16892 ac_status=$? 16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16894 (exit $ac_status); } 16895 then 16896 archive_cmds_need_lc_GCJ=no 16897 else 16898 archive_cmds_need_lc_GCJ=yes 16899 fi 16900 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16901 else 16902 cat conftest.err 1>&5 16903 fi 16904 $rm conftest* 16905 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16906echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16907 ;; 16908 esac 16909 fi 16910 ;; 16911esac 16912 16913echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16914echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16915library_names_spec= 16916libname_spec='lib$name' 16917soname_spec= 16918shrext_cmds=".so" 16919postinstall_cmds= 16920postuninstall_cmds= 16921finish_cmds= 16922finish_eval= 16923shlibpath_var= 16924shlibpath_overrides_runpath=unknown 16925version_type=none 16926dynamic_linker="$host_os ld.so" 16927sys_lib_dlsearch_path_spec="/lib /usr/lib" 16928if test "$GCC" = yes; then 16929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16930 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16931 # if the path contains ";" then we assume it to be the separator 16932 # otherwise default to the standard path separator (i.e. ":") - it is 16933 # assumed that no part of a normal pathname contains ";" but that should 16934 # okay in the real world where ";" in dirpaths is itself problematic. 16935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16936 else 16937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16938 fi 16939else 16940 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16941fi 16942need_lib_prefix=unknown 16943hardcode_into_libs=no 16944 16945# when you set need_version to no, make sure it does not cause -set_version 16946# flags to be left without arguments 16947need_version=unknown 16948 16949case $host_os in 16950aix3*) 16951 version_type=linux 16952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16953 shlibpath_var=LIBPATH 16954 16955 # AIX 3 has no versioning support, so we append a major version to the name. 16956 soname_spec='${libname}${release}${shared_ext}$major' 16957 ;; 16958 16959aix4* | aix5*) 16960 version_type=linux 16961 need_lib_prefix=no 16962 need_version=no 16963 hardcode_into_libs=yes 16964 if test "$host_cpu" = ia64; then 16965 # AIX 5 supports IA64 16966 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16967 shlibpath_var=LD_LIBRARY_PATH 16968 else 16969 # With GCC up to 2.95.x, collect2 would create an import file 16970 # for dependence libraries. The import file would start with 16971 # the line `#! .'. This would cause the generated library to 16972 # depend on `.', always an invalid library. This was fixed in 16973 # development snapshots of GCC prior to 3.0. 16974 case $host_os in 16975 aix4 | aix4.[01] | aix4.[01].*) 16976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16977 echo ' yes ' 16978 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16979 : 16980 else 16981 can_build_shared=no 16982 fi 16983 ;; 16984 esac 16985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16986 # soname into executable. Probably we can add versioning support to 16987 # collect2, so additional links can be useful in future. 16988 if test "$aix_use_runtimelinking" = yes; then 16989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16990 # instead of lib<name>.a to let people know that these are not 16991 # typical AIX shared libraries. 16992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16993 else 16994 # We preserve .a as extension for shared libraries through AIX4.2 16995 # and later when we are not doing run time linking. 16996 library_names_spec='${libname}${release}.a $libname.a' 16997 soname_spec='${libname}${release}${shared_ext}$major' 16998 fi 16999 shlibpath_var=LIBPATH 17000 fi 17001 ;; 17002 17003amigaos*) 17004 library_names_spec='$libname.ixlibrary $libname.a' 17005 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17006 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' 17007 ;; 17008 17009beos*) 17010 library_names_spec='${libname}${shared_ext}' 17011 dynamic_linker="$host_os ld.so" 17012 shlibpath_var=LIBRARY_PATH 17013 ;; 17014 17015bsdi[45]*) 17016 version_type=linux 17017 need_version=no 17018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17019 soname_spec='${libname}${release}${shared_ext}$major' 17020 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17021 shlibpath_var=LD_LIBRARY_PATH 17022 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17023 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17024 # the default ld.so.conf also contains /usr/contrib/lib and 17025 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17026 # libtool to hard-code these into programs 17027 ;; 17028 17029cygwin* | mingw* | pw32*) 17030 version_type=windows 17031 shrext_cmds=".dll" 17032 need_version=no 17033 need_lib_prefix=no 17034 17035 case $GCC,$host_os in 17036 yes,cygwin* | yes,mingw* | yes,pw32*) 17037 library_names_spec='$libname.dll.a' 17038 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17039 postinstall_cmds='base_file=`basename \${file}`~ 17040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17041 dldir=$destdir/`dirname \$dlpath`~ 17042 test -d \$dldir || mkdir -p \$dldir~ 17043 $install_prog $dir/$dlname \$dldir/$dlname~ 17044 chmod a+x \$dldir/$dlname' 17045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17046 dlpath=$dir/\$dldll~ 17047 $rm \$dlpath' 17048 shlibpath_overrides_runpath=yes 17049 17050 case $host_os in 17051 cygwin*) 17052 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17053 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17054 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17055 ;; 17056 mingw*) 17057 # MinGW DLLs use traditional 'lib' prefix 17058 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17059 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17060 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17061 # It is most probably a Windows format PATH printed by 17062 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17063 # path with ; separators, and with drive letters. We can handle the 17064 # drive letters (cygwin fileutils understands them), so leave them, 17065 # especially as we might pass files found there to a mingw objdump, 17066 # which wouldn't understand a cygwinified path. Ahh. 17067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17068 else 17069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17070 fi 17071 ;; 17072 pw32*) 17073 # pw32 DLLs use 'pw' prefix rather than 'lib' 17074 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17075 ;; 17076 esac 17077 ;; 17078 17079 *) 17080 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17081 ;; 17082 esac 17083 dynamic_linker='Win32 ld.exe' 17084 # FIXME: first we should search . and the directory the executable is in 17085 shlibpath_var=PATH 17086 ;; 17087 17088darwin* | rhapsody*) 17089 dynamic_linker="$host_os dyld" 17090 version_type=darwin 17091 need_lib_prefix=no 17092 need_version=no 17093 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17094 soname_spec='${libname}${release}${major}$shared_ext' 17095 shlibpath_overrides_runpath=yes 17096 shlibpath_var=DYLD_LIBRARY_PATH 17097 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17098 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17099 if test "$GCC" = yes; then 17100 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"` 17101 else 17102 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17103 fi 17104 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17105 ;; 17106 17107dgux*) 17108 version_type=linux 17109 need_lib_prefix=no 17110 need_version=no 17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17112 soname_spec='${libname}${release}${shared_ext}$major' 17113 shlibpath_var=LD_LIBRARY_PATH 17114 ;; 17115 17116freebsd1*) 17117 dynamic_linker=no 17118 ;; 17119 17120kfreebsd*-gnu) 17121 version_type=linux 17122 need_lib_prefix=no 17123 need_version=no 17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17125 soname_spec='${libname}${release}${shared_ext}$major' 17126 shlibpath_var=LD_LIBRARY_PATH 17127 shlibpath_overrides_runpath=no 17128 hardcode_into_libs=yes 17129 dynamic_linker='GNU ld.so' 17130 ;; 17131 17132freebsd* | dragonfly*) 17133 # DragonFly does not have aout. When/if they implement a new 17134 # versioning mechanism, adjust this. 17135 if test -x /usr/bin/objformat; then 17136 objformat=`/usr/bin/objformat` 17137 else 17138 case $host_os in 17139 freebsd[123]*) objformat=aout ;; 17140 *) objformat=elf ;; 17141 esac 17142 fi 17143 version_type=freebsd-$objformat 17144 case $version_type in 17145 freebsd-elf*) 17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17147 need_version=no 17148 need_lib_prefix=no 17149 ;; 17150 freebsd-*) 17151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17152 need_version=yes 17153 ;; 17154 esac 17155 shlibpath_var=LD_LIBRARY_PATH 17156 case $host_os in 17157 freebsd2*) 17158 shlibpath_overrides_runpath=yes 17159 ;; 17160 freebsd3.[01]* | freebsdelf3.[01]*) 17161 shlibpath_overrides_runpath=yes 17162 hardcode_into_libs=yes 17163 ;; 17164 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17165 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17166 shlibpath_overrides_runpath=no 17167 hardcode_into_libs=yes 17168 ;; 17169 freebsd*) # from 4.6 on 17170 shlibpath_overrides_runpath=yes 17171 hardcode_into_libs=yes 17172 ;; 17173 esac 17174 ;; 17175 17176gnu*) 17177 version_type=linux 17178 need_lib_prefix=no 17179 need_version=no 17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17181 soname_spec='${libname}${release}${shared_ext}$major' 17182 shlibpath_var=LD_LIBRARY_PATH 17183 hardcode_into_libs=yes 17184 ;; 17185 17186hpux9* | hpux10* | hpux11*) 17187 # Give a soname corresponding to the major version so that dld.sl refuses to 17188 # link against other versions. 17189 version_type=sunos 17190 need_lib_prefix=no 17191 need_version=no 17192 case $host_cpu in 17193 ia64*) 17194 shrext_cmds='.so' 17195 hardcode_into_libs=yes 17196 dynamic_linker="$host_os dld.so" 17197 shlibpath_var=LD_LIBRARY_PATH 17198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17200 soname_spec='${libname}${release}${shared_ext}$major' 17201 if test "X$HPUX_IA64_MODE" = X32; then 17202 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17203 else 17204 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17205 fi 17206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17207 ;; 17208 hppa*64*) 17209 shrext_cmds='.sl' 17210 hardcode_into_libs=yes 17211 dynamic_linker="$host_os dld.sl" 17212 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17215 soname_spec='${libname}${release}${shared_ext}$major' 17216 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17218 ;; 17219 *) 17220 shrext_cmds='.sl' 17221 dynamic_linker="$host_os dld.sl" 17222 shlibpath_var=SHLIB_PATH 17223 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17225 soname_spec='${libname}${release}${shared_ext}$major' 17226 ;; 17227 esac 17228 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17229 postinstall_cmds='chmod 555 $lib' 17230 ;; 17231 17232interix3*) 17233 version_type=linux 17234 need_lib_prefix=no 17235 need_version=no 17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17237 soname_spec='${libname}${release}${shared_ext}$major' 17238 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17239 shlibpath_var=LD_LIBRARY_PATH 17240 shlibpath_overrides_runpath=no 17241 hardcode_into_libs=yes 17242 ;; 17243 17244irix5* | irix6* | nonstopux*) 17245 case $host_os in 17246 nonstopux*) version_type=nonstopux ;; 17247 *) 17248 if test "$lt_cv_prog_gnu_ld" = yes; then 17249 version_type=linux 17250 else 17251 version_type=irix 17252 fi ;; 17253 esac 17254 need_lib_prefix=no 17255 need_version=no 17256 soname_spec='${libname}${release}${shared_ext}$major' 17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17258 case $host_os in 17259 irix5* | nonstopux*) 17260 libsuff= shlibsuff= 17261 ;; 17262 *) 17263 case $LD in # libtool.m4 will add one of these switches to LD 17264 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17265 libsuff= shlibsuff= libmagic=32-bit;; 17266 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17267 libsuff=32 shlibsuff=N32 libmagic=N32;; 17268 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17269 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17270 *) libsuff= shlibsuff= libmagic=never-match;; 17271 esac 17272 ;; 17273 esac 17274 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17275 shlibpath_overrides_runpath=no 17276 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17277 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17278 hardcode_into_libs=yes 17279 ;; 17280 17281# No shared lib support for Linux oldld, aout, or coff. 17282linux*oldld* | linux*aout* | linux*coff*) 17283 dynamic_linker=no 17284 ;; 17285 17286# This must be Linux ELF. 17287linux*) 17288 version_type=linux 17289 need_lib_prefix=no 17290 need_version=no 17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17292 soname_spec='${libname}${release}${shared_ext}$major' 17293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17294 shlibpath_var=LD_LIBRARY_PATH 17295 shlibpath_overrides_runpath=no 17296 # This implies no fast_install, which is unacceptable. 17297 # Some rework will be needed to allow for fast_install 17298 # before this can be enabled. 17299 hardcode_into_libs=yes 17300 17301 # Append ld.so.conf contents to the search path 17302 if test -f /etc/ld.so.conf; then 17303 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' ' '` 17304 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17305 fi 17306 17307 # We used to test for /lib/ld.so.1 and disable shared libraries on 17308 # powerpc, because MkLinux only supported shared libraries with the 17309 # GNU dynamic linker. Since this was broken with cross compilers, 17310 # most powerpc-linux boxes support dynamic linking these days and 17311 # people can always --disable-shared, the test was removed, and we 17312 # assume the GNU/Linux dynamic linker is in use. 17313 dynamic_linker='GNU/Linux ld.so' 17314 ;; 17315 17316knetbsd*-gnu) 17317 version_type=linux 17318 need_lib_prefix=no 17319 need_version=no 17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17321 soname_spec='${libname}${release}${shared_ext}$major' 17322 shlibpath_var=LD_LIBRARY_PATH 17323 shlibpath_overrides_runpath=no 17324 hardcode_into_libs=yes 17325 dynamic_linker='GNU ld.so' 17326 ;; 17327 17328netbsd*) 17329 version_type=sunos 17330 need_lib_prefix=no 17331 need_version=no 17332 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17335 dynamic_linker='NetBSD (a.out) ld.so' 17336 else 17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17338 soname_spec='${libname}${release}${shared_ext}$major' 17339 dynamic_linker='NetBSD ld.elf_so' 17340 fi 17341 shlibpath_var=LD_LIBRARY_PATH 17342 shlibpath_overrides_runpath=yes 17343 hardcode_into_libs=yes 17344 ;; 17345 17346newsos6) 17347 version_type=linux 17348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17349 shlibpath_var=LD_LIBRARY_PATH 17350 shlibpath_overrides_runpath=yes 17351 ;; 17352 17353nto-qnx*) 17354 version_type=linux 17355 need_lib_prefix=no 17356 need_version=no 17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17358 soname_spec='${libname}${release}${shared_ext}$major' 17359 shlibpath_var=LD_LIBRARY_PATH 17360 shlibpath_overrides_runpath=yes 17361 ;; 17362 17363openbsd*) 17364 version_type=sunos 17365 sys_lib_dlsearch_path_spec="/usr/lib" 17366 need_lib_prefix=no 17367 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17368 case $host_os in 17369 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17370 *) need_version=no ;; 17371 esac 17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17374 shlibpath_var=LD_LIBRARY_PATH 17375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17376 case $host_os in 17377 openbsd2.[89] | openbsd2.[89].*) 17378 shlibpath_overrides_runpath=no 17379 ;; 17380 *) 17381 shlibpath_overrides_runpath=yes 17382 ;; 17383 esac 17384 else 17385 shlibpath_overrides_runpath=yes 17386 fi 17387 ;; 17388 17389os2*) 17390 libname_spec='$name' 17391 shrext_cmds=".dll" 17392 need_lib_prefix=no 17393 library_names_spec='$libname${shared_ext} $libname.a' 17394 dynamic_linker='OS/2 ld.exe' 17395 shlibpath_var=LIBPATH 17396 ;; 17397 17398osf3* | osf4* | osf5*) 17399 version_type=osf 17400 need_lib_prefix=no 17401 need_version=no 17402 soname_spec='${libname}${release}${shared_ext}$major' 17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17404 shlibpath_var=LD_LIBRARY_PATH 17405 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17406 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17407 ;; 17408 17409solaris*) 17410 version_type=linux 17411 need_lib_prefix=no 17412 need_version=no 17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17414 soname_spec='${libname}${release}${shared_ext}$major' 17415 shlibpath_var=LD_LIBRARY_PATH 17416 shlibpath_overrides_runpath=yes 17417 hardcode_into_libs=yes 17418 # ldd complains unless libraries are executable 17419 postinstall_cmds='chmod +x $lib' 17420 ;; 17421 17422sunos4*) 17423 version_type=sunos 17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17425 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17426 shlibpath_var=LD_LIBRARY_PATH 17427 shlibpath_overrides_runpath=yes 17428 if test "$with_gnu_ld" = yes; then 17429 need_lib_prefix=no 17430 fi 17431 need_version=yes 17432 ;; 17433 17434sysv4 | sysv4.3*) 17435 version_type=linux 17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17437 soname_spec='${libname}${release}${shared_ext}$major' 17438 shlibpath_var=LD_LIBRARY_PATH 17439 case $host_vendor in 17440 sni) 17441 shlibpath_overrides_runpath=no 17442 need_lib_prefix=no 17443 export_dynamic_flag_spec='${wl}-Blargedynsym' 17444 runpath_var=LD_RUN_PATH 17445 ;; 17446 siemens) 17447 need_lib_prefix=no 17448 ;; 17449 motorola) 17450 need_lib_prefix=no 17451 need_version=no 17452 shlibpath_overrides_runpath=no 17453 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17454 ;; 17455 esac 17456 ;; 17457 17458sysv4*MP*) 17459 if test -d /usr/nec ;then 17460 version_type=linux 17461 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17462 soname_spec='$libname${shared_ext}.$major' 17463 shlibpath_var=LD_LIBRARY_PATH 17464 fi 17465 ;; 17466 17467sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17468 version_type=freebsd-elf 17469 need_lib_prefix=no 17470 need_version=no 17471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17472 soname_spec='${libname}${release}${shared_ext}$major' 17473 shlibpath_var=LD_LIBRARY_PATH 17474 hardcode_into_libs=yes 17475 if test "$with_gnu_ld" = yes; then 17476 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17477 shlibpath_overrides_runpath=no 17478 else 17479 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17480 shlibpath_overrides_runpath=yes 17481 case $host_os in 17482 sco3.2v5*) 17483 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17484 ;; 17485 esac 17486 fi 17487 sys_lib_dlsearch_path_spec='/usr/lib' 17488 ;; 17489 17490uts4*) 17491 version_type=linux 17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17493 soname_spec='${libname}${release}${shared_ext}$major' 17494 shlibpath_var=LD_LIBRARY_PATH 17495 ;; 17496 17497*) 17498 dynamic_linker=no 17499 ;; 17500esac 17501echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17502echo "${ECHO_T}$dynamic_linker" >&6 17503test "$dynamic_linker" = no && can_build_shared=no 17504 17505variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17506if test "$GCC" = yes; then 17507 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17508fi 17509 17510echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17511echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17512hardcode_action_GCJ= 17513if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17514 test -n "$runpath_var_GCJ" || \ 17515 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17516 17517 # We can hardcode non-existant directories. 17518 if test "$hardcode_direct_GCJ" != no && 17519 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17520 # have to relink, otherwise we might link with an installed library 17521 # when we should be linking with a yet-to-be-installed one 17522 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17523 test "$hardcode_minus_L_GCJ" != no; then 17524 # Linking always hardcodes the temporary library directory. 17525 hardcode_action_GCJ=relink 17526 else 17527 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17528 hardcode_action_GCJ=immediate 17529 fi 17530else 17531 # We cannot hardcode anything, or else we can only hardcode existing 17532 # directories. 17533 hardcode_action_GCJ=unsupported 17534fi 17535echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17536echo "${ECHO_T}$hardcode_action_GCJ" >&6 17537 17538if test "$hardcode_action_GCJ" = relink; then 17539 # Fast installation is not supported 17540 enable_fast_install=no 17541elif test "$shlibpath_overrides_runpath" = yes || 17542 test "$enable_shared" = no; then 17543 # Fast installation is not necessary 17544 enable_fast_install=needless 17545fi 17546 17547 17548# The else clause should only fire when bootstrapping the 17549# libtool distribution, otherwise you forgot to ship ltmain.sh 17550# with your package, and you will get complaints that there are 17551# no rules to generate ltmain.sh. 17552if test -f "$ltmain"; then 17553 # See if we are running on zsh, and set the options which allow our commands through 17554 # without removal of \ escapes. 17555 if test -n "${ZSH_VERSION+set}" ; then 17556 setopt NO_GLOB_SUBST 17557 fi 17558 # Now quote all the things that may contain metacharacters while being 17559 # careful not to overquote the AC_SUBSTed values. We take copies of the 17560 # variables and quote the copies for generation of the libtool script. 17561 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17562 SED SHELL STRIP \ 17563 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17564 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17565 deplibs_check_method reload_flag reload_cmds need_locks \ 17566 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17567 lt_cv_sys_global_symbol_to_c_name_address \ 17568 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17569 old_postinstall_cmds old_postuninstall_cmds \ 17570 compiler_GCJ \ 17571 CC_GCJ \ 17572 LD_GCJ \ 17573 lt_prog_compiler_wl_GCJ \ 17574 lt_prog_compiler_pic_GCJ \ 17575 lt_prog_compiler_static_GCJ \ 17576 lt_prog_compiler_no_builtin_flag_GCJ \ 17577 export_dynamic_flag_spec_GCJ \ 17578 thread_safe_flag_spec_GCJ \ 17579 whole_archive_flag_spec_GCJ \ 17580 enable_shared_with_static_runtimes_GCJ \ 17581 old_archive_cmds_GCJ \ 17582 old_archive_from_new_cmds_GCJ \ 17583 predep_objects_GCJ \ 17584 postdep_objects_GCJ \ 17585 predeps_GCJ \ 17586 postdeps_GCJ \ 17587 compiler_lib_search_path_GCJ \ 17588 archive_cmds_GCJ \ 17589 archive_expsym_cmds_GCJ \ 17590 postinstall_cmds_GCJ \ 17591 postuninstall_cmds_GCJ \ 17592 old_archive_from_expsyms_cmds_GCJ \ 17593 allow_undefined_flag_GCJ \ 17594 no_undefined_flag_GCJ \ 17595 export_symbols_cmds_GCJ \ 17596 hardcode_libdir_flag_spec_GCJ \ 17597 hardcode_libdir_flag_spec_ld_GCJ \ 17598 hardcode_libdir_separator_GCJ \ 17599 hardcode_automatic_GCJ \ 17600 module_cmds_GCJ \ 17601 module_expsym_cmds_GCJ \ 17602 lt_cv_prog_compiler_c_o_GCJ \ 17603 exclude_expsyms_GCJ \ 17604 include_expsyms_GCJ; do 17605 17606 case $var in 17607 old_archive_cmds_GCJ | \ 17608 old_archive_from_new_cmds_GCJ | \ 17609 archive_cmds_GCJ | \ 17610 archive_expsym_cmds_GCJ | \ 17611 module_cmds_GCJ | \ 17612 module_expsym_cmds_GCJ | \ 17613 old_archive_from_expsyms_cmds_GCJ | \ 17614 export_symbols_cmds_GCJ | \ 17615 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17616 postinstall_cmds | postuninstall_cmds | \ 17617 old_postinstall_cmds | old_postuninstall_cmds | \ 17618 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17619 # Double-quote double-evaled strings. 17620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17621 ;; 17622 *) 17623 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17624 ;; 17625 esac 17626 done 17627 17628 case $lt_echo in 17629 *'\$0 --fallback-echo"') 17630 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17631 ;; 17632 esac 17633 17634cfgfile="$ofile" 17635 17636 cat <<__EOF__ >> "$cfgfile" 17637# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17638 17639# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17640 17641# Shell to use when invoking shell scripts. 17642SHELL=$lt_SHELL 17643 17644# Whether or not to build shared libraries. 17645build_libtool_libs=$enable_shared 17646 17647# Whether or not to build static libraries. 17648build_old_libs=$enable_static 17649 17650# Whether or not to add -lc for building shared libraries. 17651build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17652 17653# Whether or not to disallow shared libs when runtime libs are static 17654allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17655 17656# Whether or not to optimize for fast installation. 17657fast_install=$enable_fast_install 17658 17659# The host system. 17660host_alias=$host_alias 17661host=$host 17662host_os=$host_os 17663 17664# The build system. 17665build_alias=$build_alias 17666build=$build 17667build_os=$build_os 17668 17669# An echo program that does not interpret backslashes. 17670echo=$lt_echo 17671 17672# The archiver. 17673AR=$lt_AR 17674AR_FLAGS=$lt_AR_FLAGS 17675 17676# A C compiler. 17677LTCC=$lt_LTCC 17678 17679# LTCC compiler flags. 17680LTCFLAGS=$lt_LTCFLAGS 17681 17682# A language-specific compiler. 17683CC=$lt_compiler_GCJ 17684 17685# Is the compiler the GNU C compiler? 17686with_gcc=$GCC_GCJ 17687 17688# An ERE matcher. 17689EGREP=$lt_EGREP 17690 17691# The linker used to build libraries. 17692LD=$lt_LD_GCJ 17693 17694# Whether we need hard or soft links. 17695LN_S=$lt_LN_S 17696 17697# A BSD-compatible nm program. 17698NM=$lt_NM 17699 17700# A symbol stripping program 17701STRIP=$lt_STRIP 17702 17703# Used to examine libraries when file_magic_cmd begins "file" 17704MAGIC_CMD=$MAGIC_CMD 17705 17706# Used on cygwin: DLL creation program. 17707DLLTOOL="$DLLTOOL" 17708 17709# Used on cygwin: object dumper. 17710OBJDUMP="$OBJDUMP" 17711 17712# Used on cygwin: assembler. 17713AS="$AS" 17714 17715# The name of the directory that contains temporary libtool files. 17716objdir=$objdir 17717 17718# How to create reloadable object files. 17719reload_flag=$lt_reload_flag 17720reload_cmds=$lt_reload_cmds 17721 17722# How to pass a linker flag through the compiler. 17723wl=$lt_lt_prog_compiler_wl_GCJ 17724 17725# Object file suffix (normally "o"). 17726objext="$ac_objext" 17727 17728# Old archive suffix (normally "a"). 17729libext="$libext" 17730 17731# Shared library suffix (normally ".so"). 17732shrext_cmds='$shrext_cmds' 17733 17734# Executable file suffix (normally ""). 17735exeext="$exeext" 17736 17737# Additional compiler flags for building library objects. 17738pic_flag=$lt_lt_prog_compiler_pic_GCJ 17739pic_mode=$pic_mode 17740 17741# What is the maximum length of a command? 17742max_cmd_len=$lt_cv_sys_max_cmd_len 17743 17744# Does compiler simultaneously support -c and -o options? 17745compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17746 17747# Must we lock files when doing compilation? 17748need_locks=$lt_need_locks 17749 17750# Do we need the lib prefix for modules? 17751need_lib_prefix=$need_lib_prefix 17752 17753# Do we need a version for libraries? 17754need_version=$need_version 17755 17756# Whether dlopen is supported. 17757dlopen_support=$enable_dlopen 17758 17759# Whether dlopen of programs is supported. 17760dlopen_self=$enable_dlopen_self 17761 17762# Whether dlopen of statically linked programs is supported. 17763dlopen_self_static=$enable_dlopen_self_static 17764 17765# Compiler flag to prevent dynamic linking. 17766link_static_flag=$lt_lt_prog_compiler_static_GCJ 17767 17768# Compiler flag to turn off builtin functions. 17769no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17770 17771# Compiler flag to allow reflexive dlopens. 17772export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17773 17774# Compiler flag to generate shared objects directly from archives. 17775whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17776 17777# Compiler flag to generate thread-safe objects. 17778thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17779 17780# Library versioning type. 17781version_type=$version_type 17782 17783# Format of library name prefix. 17784libname_spec=$lt_libname_spec 17785 17786# List of archive names. First name is the real one, the rest are links. 17787# The last name is the one that the linker finds with -lNAME. 17788library_names_spec=$lt_library_names_spec 17789 17790# The coded name of the library, if different from the real name. 17791soname_spec=$lt_soname_spec 17792 17793# Commands used to build and install an old-style archive. 17794RANLIB=$lt_RANLIB 17795old_archive_cmds=$lt_old_archive_cmds_GCJ 17796old_postinstall_cmds=$lt_old_postinstall_cmds 17797old_postuninstall_cmds=$lt_old_postuninstall_cmds 17798 17799# Create an old-style archive from a shared archive. 17800old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17801 17802# Create a temporary old-style archive to link instead of a shared archive. 17803old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17804 17805# Commands used to build and install a shared archive. 17806archive_cmds=$lt_archive_cmds_GCJ 17807archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17808postinstall_cmds=$lt_postinstall_cmds 17809postuninstall_cmds=$lt_postuninstall_cmds 17810 17811# Commands used to build a loadable module (assumed same as above if empty) 17812module_cmds=$lt_module_cmds_GCJ 17813module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17814 17815# Commands to strip libraries. 17816old_striplib=$lt_old_striplib 17817striplib=$lt_striplib 17818 17819# Dependencies to place before the objects being linked to create a 17820# shared library. 17821predep_objects=$lt_predep_objects_GCJ 17822 17823# Dependencies to place after the objects being linked to create a 17824# shared library. 17825postdep_objects=$lt_postdep_objects_GCJ 17826 17827# Dependencies to place before the objects being linked to create a 17828# shared library. 17829predeps=$lt_predeps_GCJ 17830 17831# Dependencies to place after the objects being linked to create a 17832# shared library. 17833postdeps=$lt_postdeps_GCJ 17834 17835# The library search path used internally by the compiler when linking 17836# a shared library. 17837compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17838 17839# Method to check whether dependent libraries are shared objects. 17840deplibs_check_method=$lt_deplibs_check_method 17841 17842# Command to use when deplibs_check_method == file_magic. 17843file_magic_cmd=$lt_file_magic_cmd 17844 17845# Flag that allows shared libraries with undefined symbols to be built. 17846allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17847 17848# Flag that forces no undefined symbols. 17849no_undefined_flag=$lt_no_undefined_flag_GCJ 17850 17851# Commands used to finish a libtool library installation in a directory. 17852finish_cmds=$lt_finish_cmds 17853 17854# Same as above, but a single script fragment to be evaled but not shown. 17855finish_eval=$lt_finish_eval 17856 17857# Take the output of nm and produce a listing of raw symbols and C names. 17858global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17859 17860# Transform the output of nm in a proper C declaration 17861global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17862 17863# Transform the output of nm in a C name address pair 17864global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17865 17866# This is the shared library runtime path variable. 17867runpath_var=$runpath_var 17868 17869# This is the shared library path variable. 17870shlibpath_var=$shlibpath_var 17871 17872# Is shlibpath searched before the hard-coded library search path? 17873shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17874 17875# How to hardcode a shared library path into an executable. 17876hardcode_action=$hardcode_action_GCJ 17877 17878# Whether we should hardcode library paths into libraries. 17879hardcode_into_libs=$hardcode_into_libs 17880 17881# Flag to hardcode \$libdir into a binary during linking. 17882# This must work even if \$libdir does not exist. 17883hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17884 17885# If ld is used when linking, flag to hardcode \$libdir into 17886# a binary during linking. This must work even if \$libdir does 17887# not exist. 17888hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17889 17890# Whether we need a single -rpath flag with a separated argument. 17891hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17892 17893# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17894# resulting binary. 17895hardcode_direct=$hardcode_direct_GCJ 17896 17897# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17898# resulting binary. 17899hardcode_minus_L=$hardcode_minus_L_GCJ 17900 17901# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17902# the resulting binary. 17903hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17904 17905# Set to yes if building a shared library automatically hardcodes DIR into the library 17906# and all subsequent libraries and executables linked against it. 17907hardcode_automatic=$hardcode_automatic_GCJ 17908 17909# Variables whose values should be saved in libtool wrapper scripts and 17910# restored at relink time. 17911variables_saved_for_relink="$variables_saved_for_relink" 17912 17913# Whether libtool must link a program against all its dependency libraries. 17914link_all_deplibs=$link_all_deplibs_GCJ 17915 17916# Compile-time system search path for libraries 17917sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17918 17919# Run-time system search path for libraries 17920sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17921 17922# Fix the shell variable \$srcfile for the compiler. 17923fix_srcfile_path="$fix_srcfile_path_GCJ" 17924 17925# Set to yes if exported symbols are required. 17926always_export_symbols=$always_export_symbols_GCJ 17927 17928# The commands to list exported symbols. 17929export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17930 17931# The commands to extract the exported symbol list from a shared archive. 17932extract_expsyms_cmds=$lt_extract_expsyms_cmds 17933 17934# Symbols that should not be listed in the preloaded symbols. 17935exclude_expsyms=$lt_exclude_expsyms_GCJ 17936 17937# Symbols that must always be exported. 17938include_expsyms=$lt_include_expsyms_GCJ 17939 17940# ### END LIBTOOL TAG CONFIG: $tagname 17941 17942__EOF__ 17943 17944 17945else 17946 # If there is no Makefile yet, we rely on a make rule to execute 17947 # `config.status --recheck' to rerun these tests and create the 17948 # libtool script then. 17949 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17950 if test -f "$ltmain_in"; then 17951 test -f Makefile && make "$ltmain" 17952 fi 17953fi 17954 17955 17956ac_ext=c 17957ac_cpp='$CPP $CPPFLAGS' 17958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17960ac_compiler_gnu=$ac_cv_c_compiler_gnu 17961 17962CC="$lt_save_CC" 17963 17964 else 17965 tagname="" 17966 fi 17967 ;; 17968 17969 RC) 17970 17971 17972 17973# Source file extension for RC test sources. 17974ac_ext=rc 17975 17976# Object file extension for compiled RC test sources. 17977objext=o 17978objext_RC=$objext 17979 17980# Code to be used in simple compile tests 17981lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 17982 17983# Code to be used in simple link tests 17984lt_simple_link_test_code="$lt_simple_compile_test_code" 17985 17986# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17987 17988# If no C compiler was specified, use CC. 17989LTCC=${LTCC-"$CC"} 17990 17991# If no C compiler flags were specified, use CFLAGS. 17992LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17993 17994# Allow CC to be a program name with arguments. 17995compiler=$CC 17996 17997 17998# save warnings/boilerplate of simple test code 17999ac_outfile=conftest.$ac_objext 18000printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18001eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18002_lt_compiler_boilerplate=`cat conftest.err` 18003$rm conftest* 18004 18005ac_outfile=conftest.$ac_objext 18006printf "$lt_simple_link_test_code" >conftest.$ac_ext 18007eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18008_lt_linker_boilerplate=`cat conftest.err` 18009$rm conftest* 18010 18011 18012# Allow CC to be a program name with arguments. 18013lt_save_CC="$CC" 18014CC=${RC-"windres"} 18015compiler=$CC 18016compiler_RC=$CC 18017for cc_temp in $compiler""; do 18018 case $cc_temp in 18019 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18020 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18021 \-*) ;; 18022 *) break;; 18023 esac 18024done 18025cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18026 18027lt_cv_prog_compiler_c_o_RC=yes 18028 18029# The else clause should only fire when bootstrapping the 18030# libtool distribution, otherwise you forgot to ship ltmain.sh 18031# with your package, and you will get complaints that there are 18032# no rules to generate ltmain.sh. 18033if test -f "$ltmain"; then 18034 # See if we are running on zsh, and set the options which allow our commands through 18035 # without removal of \ escapes. 18036 if test -n "${ZSH_VERSION+set}" ; then 18037 setopt NO_GLOB_SUBST 18038 fi 18039 # Now quote all the things that may contain metacharacters while being 18040 # careful not to overquote the AC_SUBSTed values. We take copies of the 18041 # variables and quote the copies for generation of the libtool script. 18042 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18043 SED SHELL STRIP \ 18044 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18045 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18046 deplibs_check_method reload_flag reload_cmds need_locks \ 18047 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18048 lt_cv_sys_global_symbol_to_c_name_address \ 18049 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18050 old_postinstall_cmds old_postuninstall_cmds \ 18051 compiler_RC \ 18052 CC_RC \ 18053 LD_RC \ 18054 lt_prog_compiler_wl_RC \ 18055 lt_prog_compiler_pic_RC \ 18056 lt_prog_compiler_static_RC \ 18057 lt_prog_compiler_no_builtin_flag_RC \ 18058 export_dynamic_flag_spec_RC \ 18059 thread_safe_flag_spec_RC \ 18060 whole_archive_flag_spec_RC \ 18061 enable_shared_with_static_runtimes_RC \ 18062 old_archive_cmds_RC \ 18063 old_archive_from_new_cmds_RC \ 18064 predep_objects_RC \ 18065 postdep_objects_RC \ 18066 predeps_RC \ 18067 postdeps_RC \ 18068 compiler_lib_search_path_RC \ 18069 archive_cmds_RC \ 18070 archive_expsym_cmds_RC \ 18071 postinstall_cmds_RC \ 18072 postuninstall_cmds_RC \ 18073 old_archive_from_expsyms_cmds_RC \ 18074 allow_undefined_flag_RC \ 18075 no_undefined_flag_RC \ 18076 export_symbols_cmds_RC \ 18077 hardcode_libdir_flag_spec_RC \ 18078 hardcode_libdir_flag_spec_ld_RC \ 18079 hardcode_libdir_separator_RC \ 18080 hardcode_automatic_RC \ 18081 module_cmds_RC \ 18082 module_expsym_cmds_RC \ 18083 lt_cv_prog_compiler_c_o_RC \ 18084 exclude_expsyms_RC \ 18085 include_expsyms_RC; do 18086 18087 case $var in 18088 old_archive_cmds_RC | \ 18089 old_archive_from_new_cmds_RC | \ 18090 archive_cmds_RC | \ 18091 archive_expsym_cmds_RC | \ 18092 module_cmds_RC | \ 18093 module_expsym_cmds_RC | \ 18094 old_archive_from_expsyms_cmds_RC | \ 18095 export_symbols_cmds_RC | \ 18096 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18097 postinstall_cmds | postuninstall_cmds | \ 18098 old_postinstall_cmds | old_postuninstall_cmds | \ 18099 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18100 # Double-quote double-evaled strings. 18101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18102 ;; 18103 *) 18104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18105 ;; 18106 esac 18107 done 18108 18109 case $lt_echo in 18110 *'\$0 --fallback-echo"') 18111 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18112 ;; 18113 esac 18114 18115cfgfile="$ofile" 18116 18117 cat <<__EOF__ >> "$cfgfile" 18118# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18119 18120# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18121 18122# Shell to use when invoking shell scripts. 18123SHELL=$lt_SHELL 18124 18125# Whether or not to build shared libraries. 18126build_libtool_libs=$enable_shared 18127 18128# Whether or not to build static libraries. 18129build_old_libs=$enable_static 18130 18131# Whether or not to add -lc for building shared libraries. 18132build_libtool_need_lc=$archive_cmds_need_lc_RC 18133 18134# Whether or not to disallow shared libs when runtime libs are static 18135allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18136 18137# Whether or not to optimize for fast installation. 18138fast_install=$enable_fast_install 18139 18140# The host system. 18141host_alias=$host_alias 18142host=$host 18143host_os=$host_os 18144 18145# The build system. 18146build_alias=$build_alias 18147build=$build 18148build_os=$build_os 18149 18150# An echo program that does not interpret backslashes. 18151echo=$lt_echo 18152 18153# The archiver. 18154AR=$lt_AR 18155AR_FLAGS=$lt_AR_FLAGS 18156 18157# A C compiler. 18158LTCC=$lt_LTCC 18159 18160# LTCC compiler flags. 18161LTCFLAGS=$lt_LTCFLAGS 18162 18163# A language-specific compiler. 18164CC=$lt_compiler_RC 18165 18166# Is the compiler the GNU C compiler? 18167with_gcc=$GCC_RC 18168 18169# An ERE matcher. 18170EGREP=$lt_EGREP 18171 18172# The linker used to build libraries. 18173LD=$lt_LD_RC 18174 18175# Whether we need hard or soft links. 18176LN_S=$lt_LN_S 18177 18178# A BSD-compatible nm program. 18179NM=$lt_NM 18180 18181# A symbol stripping program 18182STRIP=$lt_STRIP 18183 18184# Used to examine libraries when file_magic_cmd begins "file" 18185MAGIC_CMD=$MAGIC_CMD 18186 18187# Used on cygwin: DLL creation program. 18188DLLTOOL="$DLLTOOL" 18189 18190# Used on cygwin: object dumper. 18191OBJDUMP="$OBJDUMP" 18192 18193# Used on cygwin: assembler. 18194AS="$AS" 18195 18196# The name of the directory that contains temporary libtool files. 18197objdir=$objdir 18198 18199# How to create reloadable object files. 18200reload_flag=$lt_reload_flag 18201reload_cmds=$lt_reload_cmds 18202 18203# How to pass a linker flag through the compiler. 18204wl=$lt_lt_prog_compiler_wl_RC 18205 18206# Object file suffix (normally "o"). 18207objext="$ac_objext" 18208 18209# Old archive suffix (normally "a"). 18210libext="$libext" 18211 18212# Shared library suffix (normally ".so"). 18213shrext_cmds='$shrext_cmds' 18214 18215# Executable file suffix (normally ""). 18216exeext="$exeext" 18217 18218# Additional compiler flags for building library objects. 18219pic_flag=$lt_lt_prog_compiler_pic_RC 18220pic_mode=$pic_mode 18221 18222# What is the maximum length of a command? 18223max_cmd_len=$lt_cv_sys_max_cmd_len 18224 18225# Does compiler simultaneously support -c and -o options? 18226compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18227 18228# Must we lock files when doing compilation? 18229need_locks=$lt_need_locks 18230 18231# Do we need the lib prefix for modules? 18232need_lib_prefix=$need_lib_prefix 18233 18234# Do we need a version for libraries? 18235need_version=$need_version 18236 18237# Whether dlopen is supported. 18238dlopen_support=$enable_dlopen 18239 18240# Whether dlopen of programs is supported. 18241dlopen_self=$enable_dlopen_self 18242 18243# Whether dlopen of statically linked programs is supported. 18244dlopen_self_static=$enable_dlopen_self_static 18245 18246# Compiler flag to prevent dynamic linking. 18247link_static_flag=$lt_lt_prog_compiler_static_RC 18248 18249# Compiler flag to turn off builtin functions. 18250no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18251 18252# Compiler flag to allow reflexive dlopens. 18253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18254 18255# Compiler flag to generate shared objects directly from archives. 18256whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18257 18258# Compiler flag to generate thread-safe objects. 18259thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18260 18261# Library versioning type. 18262version_type=$version_type 18263 18264# Format of library name prefix. 18265libname_spec=$lt_libname_spec 18266 18267# List of archive names. First name is the real one, the rest are links. 18268# The last name is the one that the linker finds with -lNAME. 18269library_names_spec=$lt_library_names_spec 18270 18271# The coded name of the library, if different from the real name. 18272soname_spec=$lt_soname_spec 18273 18274# Commands used to build and install an old-style archive. 18275RANLIB=$lt_RANLIB 18276old_archive_cmds=$lt_old_archive_cmds_RC 18277old_postinstall_cmds=$lt_old_postinstall_cmds 18278old_postuninstall_cmds=$lt_old_postuninstall_cmds 18279 18280# Create an old-style archive from a shared archive. 18281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18282 18283# Create a temporary old-style archive to link instead of a shared archive. 18284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18285 18286# Commands used to build and install a shared archive. 18287archive_cmds=$lt_archive_cmds_RC 18288archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18289postinstall_cmds=$lt_postinstall_cmds 18290postuninstall_cmds=$lt_postuninstall_cmds 18291 18292# Commands used to build a loadable module (assumed same as above if empty) 18293module_cmds=$lt_module_cmds_RC 18294module_expsym_cmds=$lt_module_expsym_cmds_RC 18295 18296# Commands to strip libraries. 18297old_striplib=$lt_old_striplib 18298striplib=$lt_striplib 18299 18300# Dependencies to place before the objects being linked to create a 18301# shared library. 18302predep_objects=$lt_predep_objects_RC 18303 18304# Dependencies to place after the objects being linked to create a 18305# shared library. 18306postdep_objects=$lt_postdep_objects_RC 18307 18308# Dependencies to place before the objects being linked to create a 18309# shared library. 18310predeps=$lt_predeps_RC 18311 18312# Dependencies to place after the objects being linked to create a 18313# shared library. 18314postdeps=$lt_postdeps_RC 18315 18316# The library search path used internally by the compiler when linking 18317# a shared library. 18318compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18319 18320# Method to check whether dependent libraries are shared objects. 18321deplibs_check_method=$lt_deplibs_check_method 18322 18323# Command to use when deplibs_check_method == file_magic. 18324file_magic_cmd=$lt_file_magic_cmd 18325 18326# Flag that allows shared libraries with undefined symbols to be built. 18327allow_undefined_flag=$lt_allow_undefined_flag_RC 18328 18329# Flag that forces no undefined symbols. 18330no_undefined_flag=$lt_no_undefined_flag_RC 18331 18332# Commands used to finish a libtool library installation in a directory. 18333finish_cmds=$lt_finish_cmds 18334 18335# Same as above, but a single script fragment to be evaled but not shown. 18336finish_eval=$lt_finish_eval 18337 18338# Take the output of nm and produce a listing of raw symbols and C names. 18339global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18340 18341# Transform the output of nm in a proper C declaration 18342global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18343 18344# Transform the output of nm in a C name address pair 18345global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18346 18347# This is the shared library runtime path variable. 18348runpath_var=$runpath_var 18349 18350# This is the shared library path variable. 18351shlibpath_var=$shlibpath_var 18352 18353# Is shlibpath searched before the hard-coded library search path? 18354shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18355 18356# How to hardcode a shared library path into an executable. 18357hardcode_action=$hardcode_action_RC 18358 18359# Whether we should hardcode library paths into libraries. 18360hardcode_into_libs=$hardcode_into_libs 18361 18362# Flag to hardcode \$libdir into a binary during linking. 18363# This must work even if \$libdir does not exist. 18364hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18365 18366# If ld is used when linking, flag to hardcode \$libdir into 18367# a binary during linking. This must work even if \$libdir does 18368# not exist. 18369hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18370 18371# Whether we need a single -rpath flag with a separated argument. 18372hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18373 18374# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18375# resulting binary. 18376hardcode_direct=$hardcode_direct_RC 18377 18378# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18379# resulting binary. 18380hardcode_minus_L=$hardcode_minus_L_RC 18381 18382# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18383# the resulting binary. 18384hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18385 18386# Set to yes if building a shared library automatically hardcodes DIR into the library 18387# and all subsequent libraries and executables linked against it. 18388hardcode_automatic=$hardcode_automatic_RC 18389 18390# Variables whose values should be saved in libtool wrapper scripts and 18391# restored at relink time. 18392variables_saved_for_relink="$variables_saved_for_relink" 18393 18394# Whether libtool must link a program against all its dependency libraries. 18395link_all_deplibs=$link_all_deplibs_RC 18396 18397# Compile-time system search path for libraries 18398sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18399 18400# Run-time system search path for libraries 18401sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18402 18403# Fix the shell variable \$srcfile for the compiler. 18404fix_srcfile_path="$fix_srcfile_path_RC" 18405 18406# Set to yes if exported symbols are required. 18407always_export_symbols=$always_export_symbols_RC 18408 18409# The commands to list exported symbols. 18410export_symbols_cmds=$lt_export_symbols_cmds_RC 18411 18412# The commands to extract the exported symbol list from a shared archive. 18413extract_expsyms_cmds=$lt_extract_expsyms_cmds 18414 18415# Symbols that should not be listed in the preloaded symbols. 18416exclude_expsyms=$lt_exclude_expsyms_RC 18417 18418# Symbols that must always be exported. 18419include_expsyms=$lt_include_expsyms_RC 18420 18421# ### END LIBTOOL TAG CONFIG: $tagname 18422 18423__EOF__ 18424 18425 18426else 18427 # If there is no Makefile yet, we rely on a make rule to execute 18428 # `config.status --recheck' to rerun these tests and create the 18429 # libtool script then. 18430 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18431 if test -f "$ltmain_in"; then 18432 test -f Makefile && make "$ltmain" 18433 fi 18434fi 18435 18436 18437ac_ext=c 18438ac_cpp='$CPP $CPPFLAGS' 18439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18441ac_compiler_gnu=$ac_cv_c_compiler_gnu 18442 18443CC="$lt_save_CC" 18444 18445 ;; 18446 18447 *) 18448 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18449echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18450 { (exit 1); exit 1; }; } 18451 ;; 18452 esac 18453 18454 # Append the new tag name to the list of available tags. 18455 if test -n "$tagname" ; then 18456 available_tags="$available_tags $tagname" 18457 fi 18458 fi 18459 done 18460 IFS="$lt_save_ifs" 18461 18462 # Now substitute the updated list of available tags. 18463 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18464 mv "${ofile}T" "$ofile" 18465 chmod +x "$ofile" 18466 else 18467 rm -f "${ofile}T" 18468 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18469echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18470 { (exit 1); exit 1; }; } 18471 fi 18472fi 18473 18474 18475 18476# This can be used to rebuild libtool when needed 18477LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18478 18479# Always use our own libtool. 18480LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18481 18482# Prevent multiple expansion 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508ac_ext=c 18509ac_cpp='$CPP $CPPFLAGS' 18510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18512ac_compiler_gnu=$ac_cv_c_compiler_gnu 18513if test -n "$ac_tool_prefix"; then 18514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 18515set dummy ${ac_tool_prefix}gcc; ac_word=$2 18516echo "$as_me:$LINENO: checking for $ac_word" >&5 18517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18518if test "${ac_cv_prog_CC+set}" = set; then 18519 echo $ECHO_N "(cached) $ECHO_C" >&6 18520else 18521 if test -n "$CC"; then 18522 ac_cv_prog_CC="$CC" # Let the user override the test. 18523else 18524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18525for as_dir in $PATH 18526do 18527 IFS=$as_save_IFS 18528 test -z "$as_dir" && as_dir=. 18529 for ac_exec_ext in '' $ac_executable_extensions; do 18530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18531 ac_cv_prog_CC="${ac_tool_prefix}gcc" 18532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18533 break 2 18534 fi 18535done 18536done 18537 18538fi 18539fi 18540CC=$ac_cv_prog_CC 18541if test -n "$CC"; then 18542 echo "$as_me:$LINENO: result: $CC" >&5 18543echo "${ECHO_T}$CC" >&6 18544else 18545 echo "$as_me:$LINENO: result: no" >&5 18546echo "${ECHO_T}no" >&6 18547fi 18548 18549fi 18550if test -z "$ac_cv_prog_CC"; then 18551 ac_ct_CC=$CC 18552 # Extract the first word of "gcc", so it can be a program name with args. 18553set dummy gcc; ac_word=$2 18554echo "$as_me:$LINENO: checking for $ac_word" >&5 18555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18556if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18557 echo $ECHO_N "(cached) $ECHO_C" >&6 18558else 18559 if test -n "$ac_ct_CC"; then 18560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18561else 18562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18563for as_dir in $PATH 18564do 18565 IFS=$as_save_IFS 18566 test -z "$as_dir" && as_dir=. 18567 for ac_exec_ext in '' $ac_executable_extensions; do 18568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18569 ac_cv_prog_ac_ct_CC="gcc" 18570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18571 break 2 18572 fi 18573done 18574done 18575 18576fi 18577fi 18578ac_ct_CC=$ac_cv_prog_ac_ct_CC 18579if test -n "$ac_ct_CC"; then 18580 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18581echo "${ECHO_T}$ac_ct_CC" >&6 18582else 18583 echo "$as_me:$LINENO: result: no" >&5 18584echo "${ECHO_T}no" >&6 18585fi 18586 18587 CC=$ac_ct_CC 18588else 18589 CC="$ac_cv_prog_CC" 18590fi 18591 18592if test -z "$CC"; then 18593 if test -n "$ac_tool_prefix"; then 18594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18595set dummy ${ac_tool_prefix}cc; ac_word=$2 18596echo "$as_me:$LINENO: checking for $ac_word" >&5 18597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18598if test "${ac_cv_prog_CC+set}" = set; then 18599 echo $ECHO_N "(cached) $ECHO_C" >&6 18600else 18601 if test -n "$CC"; then 18602 ac_cv_prog_CC="$CC" # Let the user override the test. 18603else 18604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18605for as_dir in $PATH 18606do 18607 IFS=$as_save_IFS 18608 test -z "$as_dir" && as_dir=. 18609 for ac_exec_ext in '' $ac_executable_extensions; do 18610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18611 ac_cv_prog_CC="${ac_tool_prefix}cc" 18612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18613 break 2 18614 fi 18615done 18616done 18617 18618fi 18619fi 18620CC=$ac_cv_prog_CC 18621if test -n "$CC"; then 18622 echo "$as_me:$LINENO: result: $CC" >&5 18623echo "${ECHO_T}$CC" >&6 18624else 18625 echo "$as_me:$LINENO: result: no" >&5 18626echo "${ECHO_T}no" >&6 18627fi 18628 18629fi 18630if test -z "$ac_cv_prog_CC"; then 18631 ac_ct_CC=$CC 18632 # Extract the first word of "cc", so it can be a program name with args. 18633set dummy cc; ac_word=$2 18634echo "$as_me:$LINENO: checking for $ac_word" >&5 18635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18637 echo $ECHO_N "(cached) $ECHO_C" >&6 18638else 18639 if test -n "$ac_ct_CC"; then 18640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18641else 18642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18643for as_dir in $PATH 18644do 18645 IFS=$as_save_IFS 18646 test -z "$as_dir" && as_dir=. 18647 for ac_exec_ext in '' $ac_executable_extensions; do 18648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18649 ac_cv_prog_ac_ct_CC="cc" 18650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18651 break 2 18652 fi 18653done 18654done 18655 18656fi 18657fi 18658ac_ct_CC=$ac_cv_prog_ac_ct_CC 18659if test -n "$ac_ct_CC"; then 18660 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18661echo "${ECHO_T}$ac_ct_CC" >&6 18662else 18663 echo "$as_me:$LINENO: result: no" >&5 18664echo "${ECHO_T}no" >&6 18665fi 18666 18667 CC=$ac_ct_CC 18668else 18669 CC="$ac_cv_prog_CC" 18670fi 18671 18672fi 18673if test -z "$CC"; then 18674 # Extract the first word of "cc", so it can be a program name with args. 18675set dummy cc; ac_word=$2 18676echo "$as_me:$LINENO: checking for $ac_word" >&5 18677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18678if test "${ac_cv_prog_CC+set}" = set; then 18679 echo $ECHO_N "(cached) $ECHO_C" >&6 18680else 18681 if test -n "$CC"; then 18682 ac_cv_prog_CC="$CC" # Let the user override the test. 18683else 18684 ac_prog_rejected=no 18685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18686for as_dir in $PATH 18687do 18688 IFS=$as_save_IFS 18689 test -z "$as_dir" && as_dir=. 18690 for ac_exec_ext in '' $ac_executable_extensions; do 18691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 18693 ac_prog_rejected=yes 18694 continue 18695 fi 18696 ac_cv_prog_CC="cc" 18697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18698 break 2 18699 fi 18700done 18701done 18702 18703if test $ac_prog_rejected = yes; then 18704 # We found a bogon in the path, so make sure we never use it. 18705 set dummy $ac_cv_prog_CC 18706 shift 18707 if test $# != 0; then 18708 # We chose a different compiler from the bogus one. 18709 # However, it has the same basename, so the bogon will be chosen 18710 # first if we set CC to just the basename; use the full file name. 18711 shift 18712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 18713 fi 18714fi 18715fi 18716fi 18717CC=$ac_cv_prog_CC 18718if test -n "$CC"; then 18719 echo "$as_me:$LINENO: result: $CC" >&5 18720echo "${ECHO_T}$CC" >&6 18721else 18722 echo "$as_me:$LINENO: result: no" >&5 18723echo "${ECHO_T}no" >&6 18724fi 18725 18726fi 18727if test -z "$CC"; then 18728 if test -n "$ac_tool_prefix"; then 18729 for ac_prog in cl 18730 do 18731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18732set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18733echo "$as_me:$LINENO: checking for $ac_word" >&5 18734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18735if test "${ac_cv_prog_CC+set}" = set; then 18736 echo $ECHO_N "(cached) $ECHO_C" >&6 18737else 18738 if test -n "$CC"; then 18739 ac_cv_prog_CC="$CC" # Let the user override the test. 18740else 18741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18742for as_dir in $PATH 18743do 18744 IFS=$as_save_IFS 18745 test -z "$as_dir" && as_dir=. 18746 for ac_exec_ext in '' $ac_executable_extensions; do 18747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 18749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18750 break 2 18751 fi 18752done 18753done 18754 18755fi 18756fi 18757CC=$ac_cv_prog_CC 18758if test -n "$CC"; then 18759 echo "$as_me:$LINENO: result: $CC" >&5 18760echo "${ECHO_T}$CC" >&6 18761else 18762 echo "$as_me:$LINENO: result: no" >&5 18763echo "${ECHO_T}no" >&6 18764fi 18765 18766 test -n "$CC" && break 18767 done 18768fi 18769if test -z "$CC"; then 18770 ac_ct_CC=$CC 18771 for ac_prog in cl 18772do 18773 # Extract the first word of "$ac_prog", so it can be a program name with args. 18774set dummy $ac_prog; ac_word=$2 18775echo "$as_me:$LINENO: checking for $ac_word" >&5 18776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18777if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18778 echo $ECHO_N "(cached) $ECHO_C" >&6 18779else 18780 if test -n "$ac_ct_CC"; then 18781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18782else 18783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18784for as_dir in $PATH 18785do 18786 IFS=$as_save_IFS 18787 test -z "$as_dir" && as_dir=. 18788 for ac_exec_ext in '' $ac_executable_extensions; do 18789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18790 ac_cv_prog_ac_ct_CC="$ac_prog" 18791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18792 break 2 18793 fi 18794done 18795done 18796 18797fi 18798fi 18799ac_ct_CC=$ac_cv_prog_ac_ct_CC 18800if test -n "$ac_ct_CC"; then 18801 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18802echo "${ECHO_T}$ac_ct_CC" >&6 18803else 18804 echo "$as_me:$LINENO: result: no" >&5 18805echo "${ECHO_T}no" >&6 18806fi 18807 18808 test -n "$ac_ct_CC" && break 18809done 18810 18811 CC=$ac_ct_CC 18812fi 18813 18814fi 18815 18816 18817test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 18818See \`config.log' for more details." >&5 18819echo "$as_me: error: no acceptable C compiler found in \$PATH 18820See \`config.log' for more details." >&2;} 18821 { (exit 1); exit 1; }; } 18822 18823# Provide some information about the compiler. 18824echo "$as_me:$LINENO:" \ 18825 "checking for C compiler version" >&5 18826ac_compiler=`set X $ac_compile; echo $2` 18827{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 18828 (eval $ac_compiler --version </dev/null >&5) 2>&5 18829 ac_status=$? 18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18831 (exit $ac_status); } 18832{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 18833 (eval $ac_compiler -v </dev/null >&5) 2>&5 18834 ac_status=$? 18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18836 (exit $ac_status); } 18837{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 18838 (eval $ac_compiler -V </dev/null >&5) 2>&5 18839 ac_status=$? 18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18841 (exit $ac_status); } 18842 18843echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 18844echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 18845if test "${ac_cv_c_compiler_gnu+set}" = set; then 18846 echo $ECHO_N "(cached) $ECHO_C" >&6 18847else 18848 cat >conftest.$ac_ext <<_ACEOF 18849/* confdefs.h. */ 18850_ACEOF 18851cat confdefs.h >>conftest.$ac_ext 18852cat >>conftest.$ac_ext <<_ACEOF 18853/* end confdefs.h. */ 18854 18855int 18856main () 18857{ 18858#ifndef __GNUC__ 18859 choke me 18860#endif 18861 18862 ; 18863 return 0; 18864} 18865_ACEOF 18866rm -f conftest.$ac_objext 18867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18868 (eval $ac_compile) 2>conftest.er1 18869 ac_status=$? 18870 grep -v '^ *+' conftest.er1 >conftest.err 18871 rm -f conftest.er1 18872 cat conftest.err >&5 18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18874 (exit $ac_status); } && 18875 { ac_try='test -z "$ac_c_werror_flag" 18876 || test ! -s conftest.err' 18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18878 (eval $ac_try) 2>&5 18879 ac_status=$? 18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18881 (exit $ac_status); }; } && 18882 { ac_try='test -s conftest.$ac_objext' 18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18884 (eval $ac_try) 2>&5 18885 ac_status=$? 18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18887 (exit $ac_status); }; }; then 18888 ac_compiler_gnu=yes 18889else 18890 echo "$as_me: failed program was:" >&5 18891sed 's/^/| /' conftest.$ac_ext >&5 18892 18893ac_compiler_gnu=no 18894fi 18895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18896ac_cv_c_compiler_gnu=$ac_compiler_gnu 18897 18898fi 18899echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 18900echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 18901GCC=`test $ac_compiler_gnu = yes && echo yes` 18902ac_test_CFLAGS=${CFLAGS+set} 18903ac_save_CFLAGS=$CFLAGS 18904CFLAGS="-g" 18905echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 18906echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 18907if test "${ac_cv_prog_cc_g+set}" = set; then 18908 echo $ECHO_N "(cached) $ECHO_C" >&6 18909else 18910 cat >conftest.$ac_ext <<_ACEOF 18911/* confdefs.h. */ 18912_ACEOF 18913cat confdefs.h >>conftest.$ac_ext 18914cat >>conftest.$ac_ext <<_ACEOF 18915/* end confdefs.h. */ 18916 18917int 18918main () 18919{ 18920 18921 ; 18922 return 0; 18923} 18924_ACEOF 18925rm -f conftest.$ac_objext 18926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18927 (eval $ac_compile) 2>conftest.er1 18928 ac_status=$? 18929 grep -v '^ *+' conftest.er1 >conftest.err 18930 rm -f conftest.er1 18931 cat conftest.err >&5 18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18933 (exit $ac_status); } && 18934 { ac_try='test -z "$ac_c_werror_flag" 18935 || test ! -s conftest.err' 18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18937 (eval $ac_try) 2>&5 18938 ac_status=$? 18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18940 (exit $ac_status); }; } && 18941 { ac_try='test -s conftest.$ac_objext' 18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18943 (eval $ac_try) 2>&5 18944 ac_status=$? 18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18946 (exit $ac_status); }; }; then 18947 ac_cv_prog_cc_g=yes 18948else 18949 echo "$as_me: failed program was:" >&5 18950sed 's/^/| /' conftest.$ac_ext >&5 18951 18952ac_cv_prog_cc_g=no 18953fi 18954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18955fi 18956echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 18957echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 18958if test "$ac_test_CFLAGS" = set; then 18959 CFLAGS=$ac_save_CFLAGS 18960elif test $ac_cv_prog_cc_g = yes; then 18961 if test "$GCC" = yes; then 18962 CFLAGS="-g -O2" 18963 else 18964 CFLAGS="-g" 18965 fi 18966else 18967 if test "$GCC" = yes; then 18968 CFLAGS="-O2" 18969 else 18970 CFLAGS= 18971 fi 18972fi 18973echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 18974echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 18975if test "${ac_cv_prog_cc_stdc+set}" = set; then 18976 echo $ECHO_N "(cached) $ECHO_C" >&6 18977else 18978 ac_cv_prog_cc_stdc=no 18979ac_save_CC=$CC 18980cat >conftest.$ac_ext <<_ACEOF 18981/* confdefs.h. */ 18982_ACEOF 18983cat confdefs.h >>conftest.$ac_ext 18984cat >>conftest.$ac_ext <<_ACEOF 18985/* end confdefs.h. */ 18986#include <stdarg.h> 18987#include <stdio.h> 18988#include <sys/types.h> 18989#include <sys/stat.h> 18990/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 18991struct buf { int x; }; 18992FILE * (*rcsopen) (struct buf *, struct stat *, int); 18993static char *e (p, i) 18994 char **p; 18995 int i; 18996{ 18997 return p[i]; 18998} 18999static char *f (char * (*g) (char **, int), char **p, ...) 19000{ 19001 char *s; 19002 va_list v; 19003 va_start (v,p); 19004 s = g (p, va_arg (v,int)); 19005 va_end (v); 19006 return s; 19007} 19008 19009/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19010 function prototypes and stuff, but not '\xHH' hex character constants. 19011 These don't provoke an error unfortunately, instead are silently treated 19012 as 'x'. The following induces an error, until -std1 is added to get 19013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19014 array size at least. It's necessary to write '\x00'==0 to get something 19015 that's true only with -std1. */ 19016int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19017 19018int test (int i, double x); 19019struct s1 {int (*f) (int a);}; 19020struct s2 {int (*f) (double a);}; 19021int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19022int argc; 19023char **argv; 19024int 19025main () 19026{ 19027return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19028 ; 19029 return 0; 19030} 19031_ACEOF 19032# Don't try gcc -ansi; that turns off useful extensions and 19033# breaks some systems' header files. 19034# AIX -qlanglvl=ansi 19035# Ultrix and OSF/1 -std1 19036# HP-UX 10.20 and later -Ae 19037# HP-UX older versions -Aa -D_HPUX_SOURCE 19038# SVR4 -Xc -D__EXTENSIONS__ 19039for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19040do 19041 CC="$ac_save_CC $ac_arg" 19042 rm -f conftest.$ac_objext 19043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19044 (eval $ac_compile) 2>conftest.er1 19045 ac_status=$? 19046 grep -v '^ *+' conftest.er1 >conftest.err 19047 rm -f conftest.er1 19048 cat conftest.err >&5 19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19050 (exit $ac_status); } && 19051 { ac_try='test -z "$ac_c_werror_flag" 19052 || test ! -s conftest.err' 19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19054 (eval $ac_try) 2>&5 19055 ac_status=$? 19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19057 (exit $ac_status); }; } && 19058 { ac_try='test -s conftest.$ac_objext' 19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19060 (eval $ac_try) 2>&5 19061 ac_status=$? 19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19063 (exit $ac_status); }; }; then 19064 ac_cv_prog_cc_stdc=$ac_arg 19065break 19066else 19067 echo "$as_me: failed program was:" >&5 19068sed 's/^/| /' conftest.$ac_ext >&5 19069 19070fi 19071rm -f conftest.err conftest.$ac_objext 19072done 19073rm -f conftest.$ac_ext conftest.$ac_objext 19074CC=$ac_save_CC 19075 19076fi 19077 19078case "x$ac_cv_prog_cc_stdc" in 19079 x|xno) 19080 echo "$as_me:$LINENO: result: none needed" >&5 19081echo "${ECHO_T}none needed" >&6 ;; 19082 *) 19083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 19084echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 19085 CC="$CC $ac_cv_prog_cc_stdc" ;; 19086esac 19087 19088# Some people use a C++ compiler to compile C. Since we use `exit', 19089# in C++ we need to declare it. In case someone uses the same compiler 19090# for both compiling C and C++ we need to have the C++ compiler decide 19091# the declaration of exit, since it's the most demanding environment. 19092cat >conftest.$ac_ext <<_ACEOF 19093#ifndef __cplusplus 19094 choke me 19095#endif 19096_ACEOF 19097rm -f conftest.$ac_objext 19098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19099 (eval $ac_compile) 2>conftest.er1 19100 ac_status=$? 19101 grep -v '^ *+' conftest.er1 >conftest.err 19102 rm -f conftest.er1 19103 cat conftest.err >&5 19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19105 (exit $ac_status); } && 19106 { ac_try='test -z "$ac_c_werror_flag" 19107 || test ! -s conftest.err' 19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19109 (eval $ac_try) 2>&5 19110 ac_status=$? 19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19112 (exit $ac_status); }; } && 19113 { ac_try='test -s conftest.$ac_objext' 19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19115 (eval $ac_try) 2>&5 19116 ac_status=$? 19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19118 (exit $ac_status); }; }; then 19119 for ac_declaration in \ 19120 '' \ 19121 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19122 'extern "C" void std::exit (int); using std::exit;' \ 19123 'extern "C" void exit (int) throw ();' \ 19124 'extern "C" void exit (int);' \ 19125 'void exit (int);' 19126do 19127 cat >conftest.$ac_ext <<_ACEOF 19128/* confdefs.h. */ 19129_ACEOF 19130cat confdefs.h >>conftest.$ac_ext 19131cat >>conftest.$ac_ext <<_ACEOF 19132/* end confdefs.h. */ 19133$ac_declaration 19134#include <stdlib.h> 19135int 19136main () 19137{ 19138exit (42); 19139 ; 19140 return 0; 19141} 19142_ACEOF 19143rm -f conftest.$ac_objext 19144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19145 (eval $ac_compile) 2>conftest.er1 19146 ac_status=$? 19147 grep -v '^ *+' conftest.er1 >conftest.err 19148 rm -f conftest.er1 19149 cat conftest.err >&5 19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19151 (exit $ac_status); } && 19152 { ac_try='test -z "$ac_c_werror_flag" 19153 || test ! -s conftest.err' 19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19155 (eval $ac_try) 2>&5 19156 ac_status=$? 19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19158 (exit $ac_status); }; } && 19159 { ac_try='test -s conftest.$ac_objext' 19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19161 (eval $ac_try) 2>&5 19162 ac_status=$? 19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19164 (exit $ac_status); }; }; then 19165 : 19166else 19167 echo "$as_me: failed program was:" >&5 19168sed 's/^/| /' conftest.$ac_ext >&5 19169 19170continue 19171fi 19172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19173 cat >conftest.$ac_ext <<_ACEOF 19174/* confdefs.h. */ 19175_ACEOF 19176cat confdefs.h >>conftest.$ac_ext 19177cat >>conftest.$ac_ext <<_ACEOF 19178/* end confdefs.h. */ 19179$ac_declaration 19180int 19181main () 19182{ 19183exit (42); 19184 ; 19185 return 0; 19186} 19187_ACEOF 19188rm -f conftest.$ac_objext 19189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19190 (eval $ac_compile) 2>conftest.er1 19191 ac_status=$? 19192 grep -v '^ *+' conftest.er1 >conftest.err 19193 rm -f conftest.er1 19194 cat conftest.err >&5 19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19196 (exit $ac_status); } && 19197 { ac_try='test -z "$ac_c_werror_flag" 19198 || test ! -s conftest.err' 19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19200 (eval $ac_try) 2>&5 19201 ac_status=$? 19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19203 (exit $ac_status); }; } && 19204 { ac_try='test -s conftest.$ac_objext' 19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19206 (eval $ac_try) 2>&5 19207 ac_status=$? 19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19209 (exit $ac_status); }; }; then 19210 break 19211else 19212 echo "$as_me: failed program was:" >&5 19213sed 's/^/| /' conftest.$ac_ext >&5 19214 19215fi 19216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19217done 19218rm -f conftest* 19219if test -n "$ac_declaration"; then 19220 echo '#ifdef __cplusplus' >>confdefs.h 19221 echo $ac_declaration >>confdefs.h 19222 echo '#endif' >>confdefs.h 19223fi 19224 19225else 19226 echo "$as_me: failed program was:" >&5 19227sed 's/^/| /' conftest.$ac_ext >&5 19228 19229fi 19230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19231ac_ext=c 19232ac_cpp='$CPP $CPPFLAGS' 19233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19235ac_compiler_gnu=$ac_cv_c_compiler_gnu 19236 19237depcc="$CC" am_compiler_list= 19238 19239echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19240echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19241if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19242 echo $ECHO_N "(cached) $ECHO_C" >&6 19243else 19244 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19245 # We make a subdir and do the tests there. Otherwise we can end up 19246 # making bogus files that we don't know about and never remove. For 19247 # instance it was reported that on HP-UX the gcc test will end up 19248 # making a dummy file named `D' -- because `-MD' means `put the output 19249 # in D'. 19250 mkdir conftest.dir 19251 # Copy depcomp to subdir because otherwise we won't find it if we're 19252 # using a relative directory. 19253 cp "$am_depcomp" conftest.dir 19254 cd conftest.dir 19255 # We will build objects and dependencies in a subdirectory because 19256 # it helps to detect inapplicable dependency modes. For instance 19257 # both Tru64's cc and ICC support -MD to output dependencies as a 19258 # side effect of compilation, but ICC will put the dependencies in 19259 # the current directory while Tru64 will put them in the object 19260 # directory. 19261 mkdir sub 19262 19263 am_cv_CC_dependencies_compiler_type=none 19264 if test "$am_compiler_list" = ""; then 19265 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19266 fi 19267 for depmode in $am_compiler_list; do 19268 # Setup a source with many dependencies, because some compilers 19269 # like to wrap large dependency lists on column 80 (with \), and 19270 # we should not choose a depcomp mode which is confused by this. 19271 # 19272 # We need to recreate these files for each test, as the compiler may 19273 # overwrite some of them when testing with obscure command lines. 19274 # This happens at least with the AIX C compiler. 19275 : > sub/conftest.c 19276 for i in 1 2 3 4 5 6; do 19277 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19278 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19279 # Solaris 8's {/usr,}/bin/sh. 19280 touch sub/conftst$i.h 19281 done 19282 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19283 19284 case $depmode in 19285 nosideeffect) 19286 # after this tag, mechanisms are not by side-effect, so they'll 19287 # only be used when explicitly requested 19288 if test "x$enable_dependency_tracking" = xyes; then 19289 continue 19290 else 19291 break 19292 fi 19293 ;; 19294 none) break ;; 19295 esac 19296 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19297 # mode. It turns out that the SunPro C++ compiler does not properly 19298 # handle `-M -o', and we need to detect this. 19299 if depmode=$depmode \ 19300 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19302 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19303 >/dev/null 2>conftest.err && 19304 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19305 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19306 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19307 # icc doesn't choke on unknown options, it will just issue warnings 19308 # or remarks (even with -Werror). So we grep stderr for any message 19309 # that says an option was ignored or not supported. 19310 # When given -MP, icc 7.0 and 7.1 complain thusly: 19311 # icc: Command line warning: ignoring option '-M'; no argument required 19312 # The diagnosis changed in icc 8.0: 19313 # icc: Command line remark: option '-MP' not supported 19314 if (grep 'ignoring option' conftest.err || 19315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19316 am_cv_CC_dependencies_compiler_type=$depmode 19317 break 19318 fi 19319 fi 19320 done 19321 19322 cd .. 19323 rm -rf conftest.dir 19324else 19325 am_cv_CC_dependencies_compiler_type=none 19326fi 19327 19328fi 19329echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19330echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 19331CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19332 19333 19334 19335if 19336 test "x$enable_dependency_tracking" != xno \ 19337 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19338 am__fastdepCC_TRUE= 19339 am__fastdepCC_FALSE='#' 19340else 19341 am__fastdepCC_TRUE='#' 19342 am__fastdepCC_FALSE= 19343fi 19344 19345 19346if test $ac_cv_c_compiler_gnu = yes; then 19347 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 19348echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 19349if test "${ac_cv_prog_gcc_traditional+set}" = set; then 19350 echo $ECHO_N "(cached) $ECHO_C" >&6 19351else 19352 ac_pattern="Autoconf.*'x'" 19353 cat >conftest.$ac_ext <<_ACEOF 19354/* confdefs.h. */ 19355_ACEOF 19356cat confdefs.h >>conftest.$ac_ext 19357cat >>conftest.$ac_ext <<_ACEOF 19358/* end confdefs.h. */ 19359#include <sgtty.h> 19360Autoconf TIOCGETP 19361_ACEOF 19362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19363 $EGREP "$ac_pattern" >/dev/null 2>&1; then 19364 ac_cv_prog_gcc_traditional=yes 19365else 19366 ac_cv_prog_gcc_traditional=no 19367fi 19368rm -f conftest* 19369 19370 19371 if test $ac_cv_prog_gcc_traditional = no; then 19372 cat >conftest.$ac_ext <<_ACEOF 19373/* confdefs.h. */ 19374_ACEOF 19375cat confdefs.h >>conftest.$ac_ext 19376cat >>conftest.$ac_ext <<_ACEOF 19377/* end confdefs.h. */ 19378#include <termio.h> 19379Autoconf TCGETA 19380_ACEOF 19381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19382 $EGREP "$ac_pattern" >/dev/null 2>&1; then 19383 ac_cv_prog_gcc_traditional=yes 19384fi 19385rm -f conftest* 19386 19387 fi 19388fi 19389echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 19390echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 19391 if test $ac_cv_prog_gcc_traditional = yes; then 19392 CC="$CC -traditional" 19393 fi 19394fi 19395 19396if test -n "$ac_tool_prefix"; then 19397 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 19398set dummy ${ac_tool_prefix}ranlib; ac_word=$2 19399echo "$as_me:$LINENO: checking for $ac_word" >&5 19400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19401if test "${ac_cv_prog_RANLIB+set}" = set; then 19402 echo $ECHO_N "(cached) $ECHO_C" >&6 19403else 19404 if test -n "$RANLIB"; then 19405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 19406else 19407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19408for as_dir in $PATH 19409do 19410 IFS=$as_save_IFS 19411 test -z "$as_dir" && as_dir=. 19412 for ac_exec_ext in '' $ac_executable_extensions; do 19413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19414 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 19415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19416 break 2 19417 fi 19418done 19419done 19420 19421fi 19422fi 19423RANLIB=$ac_cv_prog_RANLIB 19424if test -n "$RANLIB"; then 19425 echo "$as_me:$LINENO: result: $RANLIB" >&5 19426echo "${ECHO_T}$RANLIB" >&6 19427else 19428 echo "$as_me:$LINENO: result: no" >&5 19429echo "${ECHO_T}no" >&6 19430fi 19431 19432fi 19433if test -z "$ac_cv_prog_RANLIB"; then 19434 ac_ct_RANLIB=$RANLIB 19435 # Extract the first word of "ranlib", so it can be a program name with args. 19436set dummy ranlib; ac_word=$2 19437echo "$as_me:$LINENO: checking for $ac_word" >&5 19438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19439if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 19440 echo $ECHO_N "(cached) $ECHO_C" >&6 19441else 19442 if test -n "$ac_ct_RANLIB"; then 19443 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 19444else 19445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19446for as_dir in $PATH 19447do 19448 IFS=$as_save_IFS 19449 test -z "$as_dir" && as_dir=. 19450 for ac_exec_ext in '' $ac_executable_extensions; do 19451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19452 ac_cv_prog_ac_ct_RANLIB="ranlib" 19453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19454 break 2 19455 fi 19456done 19457done 19458 19459 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 19460fi 19461fi 19462ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 19463if test -n "$ac_ct_RANLIB"; then 19464 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 19465echo "${ECHO_T}$ac_ct_RANLIB" >&6 19466else 19467 echo "$as_me:$LINENO: result: no" >&5 19468echo "${ECHO_T}no" >&6 19469fi 19470 19471 RANLIB=$ac_ct_RANLIB 19472else 19473 RANLIB="$ac_cv_prog_RANLIB" 19474fi 19475 19476# Find a good install program. We prefer a C program (faster), 19477# so one script is as good as another. But avoid the broken or 19478# incompatible versions: 19479# SysV /etc/install, /usr/sbin/install 19480# SunOS /usr/etc/install 19481# IRIX /sbin/install 19482# AIX /bin/install 19483# AmigaOS /C/install, which installs bootblocks on floppy discs 19484# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19485# AFS /usr/afsws/bin/install, which mishandles nonexistent args 19486# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19487# OS/2's system install, which has a completely different semantic 19488# ./install, which can be erroneously created by make from ./install.sh. 19489echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 19490echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 19491if test -z "$INSTALL"; then 19492if test "${ac_cv_path_install+set}" = set; then 19493 echo $ECHO_N "(cached) $ECHO_C" >&6 19494else 19495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19496for as_dir in $PATH 19497do 19498 IFS=$as_save_IFS 19499 test -z "$as_dir" && as_dir=. 19500 # Account for people who put trailing slashes in PATH elements. 19501case $as_dir/ in 19502 ./ | .// | /cC/* | \ 19503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 19504 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 19505 /usr/ucb/* ) ;; 19506 *) 19507 # OSF1 and SCO ODT 3.0 have their own names for install. 19508 # Don't use installbsd from OSF since it installs stuff as root 19509 # by default. 19510 for ac_prog in ginstall scoinst install; do 19511 for ac_exec_ext in '' $ac_executable_extensions; do 19512 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 19513 if test $ac_prog = install && 19514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19515 # AIX install. It has an incompatible calling convention. 19516 : 19517 elif test $ac_prog = install && 19518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 19519 # program-specific install script used by HP pwplus--don't use. 19520 : 19521 else 19522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 19523 break 3 19524 fi 19525 fi 19526 done 19527 done 19528 ;; 19529esac 19530done 19531 19532 19533fi 19534 if test "${ac_cv_path_install+set}" = set; then 19535 INSTALL=$ac_cv_path_install 19536 else 19537 # As a last resort, use the slow shell script. We don't cache a 19538 # path for INSTALL within a source directory, because that will 19539 # break other packages using the cache if that directory is 19540 # removed, or if the path is relative. 19541 INSTALL=$ac_install_sh 19542 fi 19543fi 19544echo "$as_me:$LINENO: result: $INSTALL" >&5 19545echo "${ECHO_T}$INSTALL" >&6 19546 19547# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 19548# It thinks the first close brace ends the variable substitution. 19549test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 19550 19551test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 19552 19553test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 19554 19555echo "$as_me:$LINENO: checking whether ln -s works" >&5 19556echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 19557LN_S=$as_ln_s 19558if test "$LN_S" = "ln -s"; then 19559 echo "$as_me:$LINENO: result: yes" >&5 19560echo "${ECHO_T}yes" >&6 19561else 19562 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 19563echo "${ECHO_T}no, using $LN_S" >&6 19564fi 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575for ac_header in fcntl.h limits.h strings.h sys/ioctl.h unistd.h getopt.h libgen.h bswap.h 19576do 19577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19578if eval "test \"\${$as_ac_Header+set}\" = set"; then 19579 echo "$as_me:$LINENO: checking for $ac_header" >&5 19580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19581if eval "test \"\${$as_ac_Header+set}\" = set"; then 19582 echo $ECHO_N "(cached) $ECHO_C" >&6 19583fi 19584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19586else 19587 # Is the header compilable? 19588echo "$as_me:$LINENO: checking $ac_header usability" >&5 19589echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19590cat >conftest.$ac_ext <<_ACEOF 19591/* confdefs.h. */ 19592_ACEOF 19593cat confdefs.h >>conftest.$ac_ext 19594cat >>conftest.$ac_ext <<_ACEOF 19595/* end confdefs.h. */ 19596$ac_includes_default 19597#include <$ac_header> 19598_ACEOF 19599rm -f conftest.$ac_objext 19600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19601 (eval $ac_compile) 2>conftest.er1 19602 ac_status=$? 19603 grep -v '^ *+' conftest.er1 >conftest.err 19604 rm -f conftest.er1 19605 cat conftest.err >&5 19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19607 (exit $ac_status); } && 19608 { ac_try='test -z "$ac_c_werror_flag" 19609 || test ! -s conftest.err' 19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19611 (eval $ac_try) 2>&5 19612 ac_status=$? 19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19614 (exit $ac_status); }; } && 19615 { ac_try='test -s conftest.$ac_objext' 19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19617 (eval $ac_try) 2>&5 19618 ac_status=$? 19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19620 (exit $ac_status); }; }; then 19621 ac_header_compiler=yes 19622else 19623 echo "$as_me: failed program was:" >&5 19624sed 's/^/| /' conftest.$ac_ext >&5 19625 19626ac_header_compiler=no 19627fi 19628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19629echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19630echo "${ECHO_T}$ac_header_compiler" >&6 19631 19632# Is the header present? 19633echo "$as_me:$LINENO: checking $ac_header presence" >&5 19634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19635cat >conftest.$ac_ext <<_ACEOF 19636/* confdefs.h. */ 19637_ACEOF 19638cat confdefs.h >>conftest.$ac_ext 19639cat >>conftest.$ac_ext <<_ACEOF 19640/* end confdefs.h. */ 19641#include <$ac_header> 19642_ACEOF 19643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19645 ac_status=$? 19646 grep -v '^ *+' conftest.er1 >conftest.err 19647 rm -f conftest.er1 19648 cat conftest.err >&5 19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19650 (exit $ac_status); } >/dev/null; then 19651 if test -s conftest.err; then 19652 ac_cpp_err=$ac_c_preproc_warn_flag 19653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19654 else 19655 ac_cpp_err= 19656 fi 19657else 19658 ac_cpp_err=yes 19659fi 19660if test -z "$ac_cpp_err"; then 19661 ac_header_preproc=yes 19662else 19663 echo "$as_me: failed program was:" >&5 19664sed 's/^/| /' conftest.$ac_ext >&5 19665 19666 ac_header_preproc=no 19667fi 19668rm -f conftest.err conftest.$ac_ext 19669echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19670echo "${ECHO_T}$ac_header_preproc" >&6 19671 19672# So? What about this header? 19673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19674 yes:no: ) 19675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19676echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19678echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19679 ac_header_preproc=yes 19680 ;; 19681 no:yes:* ) 19682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19683echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19685echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19687echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19689echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19691echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19693echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19694 ( 19695 cat <<\_ASBOX 19696## ------------------------------------------ ## 19697## Report this to the AC_PACKAGE_NAME lists. ## 19698## ------------------------------------------ ## 19699_ASBOX 19700 ) | 19701 sed "s/^/$as_me: WARNING: /" >&2 19702 ;; 19703esac 19704echo "$as_me:$LINENO: checking for $ac_header" >&5 19705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19706if eval "test \"\${$as_ac_Header+set}\" = set"; then 19707 echo $ECHO_N "(cached) $ECHO_C" >&6 19708else 19709 eval "$as_ac_Header=\$ac_header_preproc" 19710fi 19711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19713 19714fi 19715if test `eval echo '${'$as_ac_Header'}'` = yes; then 19716 cat >>confdefs.h <<_ACEOF 19717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19718_ACEOF 19719 19720fi 19721 19722done 19723 19724 19725 19726echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5 19727echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6 19728if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then 19729 echo $ECHO_N "(cached) $ECHO_C" >&6 19730else 19731 ac_check_lib_save_LIBS=$LIBS 19732LIBS="-lgnugetopt $LIBS" 19733cat >conftest.$ac_ext <<_ACEOF 19734/* confdefs.h. */ 19735_ACEOF 19736cat confdefs.h >>conftest.$ac_ext 19737cat >>conftest.$ac_ext <<_ACEOF 19738/* end confdefs.h. */ 19739 19740/* Override any gcc2 internal prototype to avoid an error. */ 19741#ifdef __cplusplus 19742extern "C" 19743#endif 19744/* We use char because int might match the return type of a gcc2 19745 builtin and then its argument prototype would still apply. */ 19746char getopt_long (); 19747int 19748main () 19749{ 19750getopt_long (); 19751 ; 19752 return 0; 19753} 19754_ACEOF 19755rm -f conftest.$ac_objext conftest$ac_exeext 19756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19757 (eval $ac_link) 2>conftest.er1 19758 ac_status=$? 19759 grep -v '^ *+' conftest.er1 >conftest.err 19760 rm -f conftest.er1 19761 cat conftest.err >&5 19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19763 (exit $ac_status); } && 19764 { ac_try='test -z "$ac_c_werror_flag" 19765 || test ! -s conftest.err' 19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19767 (eval $ac_try) 2>&5 19768 ac_status=$? 19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19770 (exit $ac_status); }; } && 19771 { ac_try='test -s conftest$ac_exeext' 19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19773 (eval $ac_try) 2>&5 19774 ac_status=$? 19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19776 (exit $ac_status); }; }; then 19777 ac_cv_lib_gnugetopt_getopt_long=yes 19778else 19779 echo "$as_me: failed program was:" >&5 19780sed 's/^/| /' conftest.$ac_ext >&5 19781 19782ac_cv_lib_gnugetopt_getopt_long=no 19783fi 19784rm -f conftest.err conftest.$ac_objext \ 19785 conftest$ac_exeext conftest.$ac_ext 19786LIBS=$ac_check_lib_save_LIBS 19787fi 19788echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5 19789echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6 19790if test $ac_cv_lib_gnugetopt_getopt_long = yes; then 19791 cat >>confdefs.h <<_ACEOF 19792#define HAVE_LIBGNUGETOPT 1 19793_ACEOF 19794 19795 LIBS="-lgnugetopt $LIBS" 19796 19797fi 19798 19799 19800 19801 19802for ac_func in basename memcmp 19803do 19804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19805echo "$as_me:$LINENO: checking for $ac_func" >&5 19806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19807if eval "test \"\${$as_ac_var+set}\" = set"; then 19808 echo $ECHO_N "(cached) $ECHO_C" >&6 19809else 19810 cat >conftest.$ac_ext <<_ACEOF 19811/* confdefs.h. */ 19812_ACEOF 19813cat confdefs.h >>conftest.$ac_ext 19814cat >>conftest.$ac_ext <<_ACEOF 19815/* end confdefs.h. */ 19816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19817 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19818#define $ac_func innocuous_$ac_func 19819 19820/* System header to define __stub macros and hopefully few prototypes, 19821 which can conflict with char $ac_func (); below. 19822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19823 <limits.h> exists even on freestanding compilers. */ 19824 19825#ifdef __STDC__ 19826# include <limits.h> 19827#else 19828# include <assert.h> 19829#endif 19830 19831#undef $ac_func 19832 19833/* Override any gcc2 internal prototype to avoid an error. */ 19834#ifdef __cplusplus 19835extern "C" 19836{ 19837#endif 19838/* We use char because int might match the return type of a gcc2 19839 builtin and then its argument prototype would still apply. */ 19840char $ac_func (); 19841/* The GNU C library defines this for functions which it implements 19842 to always fail with ENOSYS. Some functions are actually named 19843 something starting with __ and the normal name is an alias. */ 19844#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19845choke me 19846#else 19847char (*f) () = $ac_func; 19848#endif 19849#ifdef __cplusplus 19850} 19851#endif 19852 19853int 19854main () 19855{ 19856return f != $ac_func; 19857 ; 19858 return 0; 19859} 19860_ACEOF 19861rm -f conftest.$ac_objext conftest$ac_exeext 19862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19863 (eval $ac_link) 2>conftest.er1 19864 ac_status=$? 19865 grep -v '^ *+' conftest.er1 >conftest.err 19866 rm -f conftest.er1 19867 cat conftest.err >&5 19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19869 (exit $ac_status); } && 19870 { ac_try='test -z "$ac_c_werror_flag" 19871 || test ! -s conftest.err' 19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19873 (eval $ac_try) 2>&5 19874 ac_status=$? 19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19876 (exit $ac_status); }; } && 19877 { ac_try='test -s conftest$ac_exeext' 19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19879 (eval $ac_try) 2>&5 19880 ac_status=$? 19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19882 (exit $ac_status); }; }; then 19883 eval "$as_ac_var=yes" 19884else 19885 echo "$as_me: failed program was:" >&5 19886sed 's/^/| /' conftest.$ac_ext >&5 19887 19888eval "$as_ac_var=no" 19889fi 19890rm -f conftest.err conftest.$ac_objext \ 19891 conftest$ac_exeext conftest.$ac_ext 19892fi 19893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19895if test `eval echo '${'$as_ac_var'}'` = yes; then 19896 cat >>confdefs.h <<_ACEOF 19897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19898_ACEOF 19899 19900fi 19901done 19902 19903 19904libusb=yes 19905 19906echo "$as_me:$LINENO: checking whether build target is macosx/darwin" >&5 19907echo $ECHO_N "checking whether build target is macosx/darwin... $ECHO_C" >&6 19908case $host in 19909 *-darwin*) 19910 osx_support=yes 19911 echo "$as_me:$LINENO: result: yes" >&5 19912echo "${ECHO_T}yes" >&6 19913 19914 cat >>confdefs.h <<_ACEOF 19915#define __MacOSX__ 1 19916_ACEOF 19917 19918 19919 19920echo "$as_me:$LINENO: checking for IOCloseConnection in -lIOKit" >&5 19921echo $ECHO_N "checking for IOCloseConnection in -lIOKit... $ECHO_C" >&6 19922if test "${ac_cv_lib_IOKit_IOCloseConnection+set}" = set; then 19923 echo $ECHO_N "(cached) $ECHO_C" >&6 19924else 19925 ac_check_lib_save_LIBS=$LIBS 19926LIBS="-lIOKit $LIBS" 19927cat >conftest.$ac_ext <<_ACEOF 19928/* confdefs.h. */ 19929_ACEOF 19930cat confdefs.h >>conftest.$ac_ext 19931cat >>conftest.$ac_ext <<_ACEOF 19932/* end confdefs.h. */ 19933 19934/* Override any gcc2 internal prototype to avoid an error. */ 19935#ifdef __cplusplus 19936extern "C" 19937#endif 19938/* We use char because int might match the return type of a gcc2 19939 builtin and then its argument prototype would still apply. */ 19940char IOCloseConnection (); 19941int 19942main () 19943{ 19944IOCloseConnection (); 19945 ; 19946 return 0; 19947} 19948_ACEOF 19949rm -f conftest.$ac_objext conftest$ac_exeext 19950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19951 (eval $ac_link) 2>conftest.er1 19952 ac_status=$? 19953 grep -v '^ *+' conftest.er1 >conftest.err 19954 rm -f conftest.er1 19955 cat conftest.err >&5 19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19957 (exit $ac_status); } && 19958 { ac_try='test -z "$ac_c_werror_flag" 19959 || test ! -s conftest.err' 19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19961 (eval $ac_try) 2>&5 19962 ac_status=$? 19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19964 (exit $ac_status); }; } && 19965 { ac_try='test -s conftest$ac_exeext' 19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19967 (eval $ac_try) 2>&5 19968 ac_status=$? 19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19970 (exit $ac_status); }; }; then 19971 ac_cv_lib_IOKit_IOCloseConnection=yes 19972else 19973 echo "$as_me: failed program was:" >&5 19974sed 's/^/| /' conftest.$ac_ext >&5 19975 19976ac_cv_lib_IOKit_IOCloseConnection=no 19977fi 19978rm -f conftest.err conftest.$ac_objext \ 19979 conftest$ac_exeext conftest.$ac_ext 19980LIBS=$ac_check_lib_save_LIBS 19981fi 19982echo "$as_me:$LINENO: result: $ac_cv_lib_IOKit_IOCloseConnection" >&5 19983echo "${ECHO_T}$ac_cv_lib_IOKit_IOCloseConnection" >&6 19984if test $ac_cv_lib_IOKit_IOCloseConnection = yes; then 19985 cat >>confdefs.h <<_ACEOF 19986#define HAVE_LIBIOKIT 1 19987_ACEOF 19988 19989 LIBS="-lIOKit $LIBS" 19990 19991fi 19992 19993 if test "${ac_cv_header_unistd_h+set}" = set; then 19994 echo "$as_me:$LINENO: checking for unistd.h" >&5 19995echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 19996if test "${ac_cv_header_unistd_h+set}" = set; then 19997 echo $ECHO_N "(cached) $ECHO_C" >&6 19998fi 19999echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 20000echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 20001else 20002 # Is the header compilable? 20003echo "$as_me:$LINENO: checking unistd.h usability" >&5 20004echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6 20005cat >conftest.$ac_ext <<_ACEOF 20006/* confdefs.h. */ 20007_ACEOF 20008cat confdefs.h >>conftest.$ac_ext 20009cat >>conftest.$ac_ext <<_ACEOF 20010/* end confdefs.h. */ 20011$ac_includes_default 20012#include <unistd.h> 20013_ACEOF 20014rm -f conftest.$ac_objext 20015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20016 (eval $ac_compile) 2>conftest.er1 20017 ac_status=$? 20018 grep -v '^ *+' conftest.er1 >conftest.err 20019 rm -f conftest.er1 20020 cat conftest.err >&5 20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20022 (exit $ac_status); } && 20023 { ac_try='test -z "$ac_c_werror_flag" 20024 || test ! -s conftest.err' 20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20026 (eval $ac_try) 2>&5 20027 ac_status=$? 20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20029 (exit $ac_status); }; } && 20030 { ac_try='test -s conftest.$ac_objext' 20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20032 (eval $ac_try) 2>&5 20033 ac_status=$? 20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20035 (exit $ac_status); }; }; then 20036 ac_header_compiler=yes 20037else 20038 echo "$as_me: failed program was:" >&5 20039sed 's/^/| /' conftest.$ac_ext >&5 20040 20041ac_header_compiler=no 20042fi 20043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20045echo "${ECHO_T}$ac_header_compiler" >&6 20046 20047# Is the header present? 20048echo "$as_me:$LINENO: checking unistd.h presence" >&5 20049echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6 20050cat >conftest.$ac_ext <<_ACEOF 20051/* confdefs.h. */ 20052_ACEOF 20053cat confdefs.h >>conftest.$ac_ext 20054cat >>conftest.$ac_ext <<_ACEOF 20055/* end confdefs.h. */ 20056#include <unistd.h> 20057_ACEOF 20058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20060 ac_status=$? 20061 grep -v '^ *+' conftest.er1 >conftest.err 20062 rm -f conftest.er1 20063 cat conftest.err >&5 20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20065 (exit $ac_status); } >/dev/null; then 20066 if test -s conftest.err; then 20067 ac_cpp_err=$ac_c_preproc_warn_flag 20068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20069 else 20070 ac_cpp_err= 20071 fi 20072else 20073 ac_cpp_err=yes 20074fi 20075if test -z "$ac_cpp_err"; then 20076 ac_header_preproc=yes 20077else 20078 echo "$as_me: failed program was:" >&5 20079sed 's/^/| /' conftest.$ac_ext >&5 20080 20081 ac_header_preproc=no 20082fi 20083rm -f conftest.err conftest.$ac_ext 20084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20085echo "${ECHO_T}$ac_header_preproc" >&6 20086 20087# So? What about this header? 20088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20089 yes:no: ) 20090 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5 20091echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20092 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5 20093echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;} 20094 ac_header_preproc=yes 20095 ;; 20096 no:yes:* ) 20097 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5 20098echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;} 20099 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5 20100echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;} 20101 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5 20102echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;} 20103 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5 20104echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;} 20105 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5 20106echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;} 20107 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5 20108echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;} 20109 ( 20110 cat <<\_ASBOX 20111## ------------------------------------------ ## 20112## Report this to the AC_PACKAGE_NAME lists. ## 20113## ------------------------------------------ ## 20114_ASBOX 20115 ) | 20116 sed "s/^/$as_me: WARNING: /" >&2 20117 ;; 20118esac 20119echo "$as_me:$LINENO: checking for unistd.h" >&5 20120echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6 20121if test "${ac_cv_header_unistd_h+set}" = set; then 20122 echo $ECHO_N "(cached) $ECHO_C" >&6 20123else 20124 ac_cv_header_unistd_h=$ac_header_preproc 20125fi 20126echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5 20127echo "${ECHO_T}$ac_cv_header_unistd_h" >&6 20128 20129fi 20130 20131 20132 20133 20134 20135 20136 20137for ac_func in optarg getopt optind opterr optopt 20138do 20139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20140echo "$as_me:$LINENO: checking for $ac_func" >&5 20141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20142if eval "test \"\${$as_ac_var+set}\" = set"; then 20143 echo $ECHO_N "(cached) $ECHO_C" >&6 20144else 20145 cat >conftest.$ac_ext <<_ACEOF 20146/* confdefs.h. */ 20147_ACEOF 20148cat confdefs.h >>conftest.$ac_ext 20149cat >>conftest.$ac_ext <<_ACEOF 20150/* end confdefs.h. */ 20151/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20152 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20153#define $ac_func innocuous_$ac_func 20154 20155/* System header to define __stub macros and hopefully few prototypes, 20156 which can conflict with char $ac_func (); below. 20157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20158 <limits.h> exists even on freestanding compilers. */ 20159 20160#ifdef __STDC__ 20161# include <limits.h> 20162#else 20163# include <assert.h> 20164#endif 20165 20166#undef $ac_func 20167 20168/* Override any gcc2 internal prototype to avoid an error. */ 20169#ifdef __cplusplus 20170extern "C" 20171{ 20172#endif 20173/* We use char because int might match the return type of a gcc2 20174 builtin and then its argument prototype would still apply. */ 20175char $ac_func (); 20176/* The GNU C library defines this for functions which it implements 20177 to always fail with ENOSYS. Some functions are actually named 20178 something starting with __ and the normal name is an alias. */ 20179#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20180choke me 20181#else 20182char (*f) () = $ac_func; 20183#endif 20184#ifdef __cplusplus 20185} 20186#endif 20187 20188int 20189main () 20190{ 20191return f != $ac_func; 20192 ; 20193 return 0; 20194} 20195_ACEOF 20196rm -f conftest.$ac_objext conftest$ac_exeext 20197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20198 (eval $ac_link) 2>conftest.er1 20199 ac_status=$? 20200 grep -v '^ *+' conftest.er1 >conftest.err 20201 rm -f conftest.er1 20202 cat conftest.err >&5 20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20204 (exit $ac_status); } && 20205 { ac_try='test -z "$ac_c_werror_flag" 20206 || test ! -s conftest.err' 20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20208 (eval $ac_try) 2>&5 20209 ac_status=$? 20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20211 (exit $ac_status); }; } && 20212 { ac_try='test -s conftest$ac_exeext' 20213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20214 (eval $ac_try) 2>&5 20215 ac_status=$? 20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20217 (exit $ac_status); }; }; then 20218 eval "$as_ac_var=yes" 20219else 20220 echo "$as_me: failed program was:" >&5 20221sed 's/^/| /' conftest.$ac_ext >&5 20222 20223eval "$as_ac_var=no" 20224fi 20225rm -f conftest.err conftest.$ac_objext \ 20226 conftest$ac_exeext conftest.$ac_ext 20227fi 20228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20229echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20230if test `eval echo '${'$as_ac_var'}'` = yes; then 20231 cat >>confdefs.h <<_ACEOF 20232#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20233_ACEOF 20234 20235fi 20236done 20237 20238 ;; 20239 *) 20240 osx_support=no 20241 echo "$as_me:$LINENO: result: no" >&5 20242echo "${ECHO_T}no" >&6 20243 ;; 20244esac 20245 20246echo "$as_me:$LINENO: checking whether to use libusb" >&5 20247echo $ECHO_N "checking whether to use libusb... $ECHO_C" >&6 20248 20249# Check whether --with-libusb or --without-libusb was given. 20250if test "${with_libusb+set}" = set; then 20251 withval="$with_libusb" 20252 case "$withval" in 20253 yes) 20254 libusb=yes 20255 ;; 20256 *) 20257 libusb=no 20258 echo "$as_me:$LINENO: result: no" >&5 20259echo "${ECHO_T}no" >&6 20260 ;; 20261 esac 20262else 20263 20264 if test "x$libusb" = "xno"; then 20265 echo "$as_me:$LINENO: result: no" >&5 20266echo "${ECHO_T}no" >&6 20267 fi 20268 20269 20270fi; 20271 20272if test "x$libusb" = "xyes"; then 20273 echo "$as_me:$LINENO: result: yes" >&5 20274echo "${ECHO_T}yes" >&6 20275 cat >>confdefs.h <<_ACEOF 20276#define WITH_LIBUSB 1 20277_ACEOF 20278 20279 20280 # Extract the first word of "libusb-config", so it can be a program name with args. 20281set dummy libusb-config; ac_word=$2 20282echo "$as_me:$LINENO: checking for $ac_word" >&5 20283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20284if test "${ac_cv_path_LIBUSB_CONFIG+set}" = set; then 20285 echo $ECHO_N "(cached) $ECHO_C" >&6 20286else 20287 case $LIBUSB_CONFIG in 20288 [\\/]* | ?:[\\/]*) 20289 ac_cv_path_LIBUSB_CONFIG="$LIBUSB_CONFIG" # Let the user override the test with a path. 20290 ;; 20291 *) 20292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20293for as_dir in $PATH 20294do 20295 IFS=$as_save_IFS 20296 test -z "$as_dir" && as_dir=. 20297 for ac_exec_ext in '' $ac_executable_extensions; do 20298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20299 ac_cv_path_LIBUSB_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20301 break 2 20302 fi 20303done 20304done 20305 20306 ;; 20307esac 20308fi 20309LIBUSB_CONFIG=$ac_cv_path_LIBUSB_CONFIG 20310 20311if test -n "$LIBUSB_CONFIG"; then 20312 echo "$as_me:$LINENO: result: $LIBUSB_CONFIG" >&5 20313echo "${ECHO_T}$LIBUSB_CONFIG" >&6 20314else 20315 echo "$as_me:$LINENO: result: no" >&5 20316echo "${ECHO_T}no" >&6 20317fi 20318 20319 if test -n "${LIBUSB_CONFIG}"; then 20320 CFLAGS="`${LIBUSB_CONFIG} --cflags` $CFLAGS" 20321 LIBS="`${LIBUSB_CONFIG} --libs` $LIBS" 20322 else 20323 { { echo "$as_me:$LINENO: error: Can't find libusb" >&5 20324echo "$as_me: error: Can't find libusb" >&2;} 20325 { (exit 1); exit 1; }; } 20326 fi 20327 20328 20329echo "$as_me:$LINENO: checking for usb_open in -lusb" >&5 20330echo $ECHO_N "checking for usb_open in -lusb... $ECHO_C" >&6 20331if test "${ac_cv_lib_usb_usb_open+set}" = set; then 20332 echo $ECHO_N "(cached) $ECHO_C" >&6 20333else 20334 ac_check_lib_save_LIBS=$LIBS 20335LIBS="-lusb $LIBS" 20336cat >conftest.$ac_ext <<_ACEOF 20337/* confdefs.h. */ 20338_ACEOF 20339cat confdefs.h >>conftest.$ac_ext 20340cat >>conftest.$ac_ext <<_ACEOF 20341/* end confdefs.h. */ 20342 20343/* Override any gcc2 internal prototype to avoid an error. */ 20344#ifdef __cplusplus 20345extern "C" 20346#endif 20347/* We use char because int might match the return type of a gcc2 20348 builtin and then its argument prototype would still apply. */ 20349char usb_open (); 20350int 20351main () 20352{ 20353usb_open (); 20354 ; 20355 return 0; 20356} 20357_ACEOF 20358rm -f conftest.$ac_objext conftest$ac_exeext 20359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20360 (eval $ac_link) 2>conftest.er1 20361 ac_status=$? 20362 grep -v '^ *+' conftest.er1 >conftest.err 20363 rm -f conftest.er1 20364 cat conftest.err >&5 20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20366 (exit $ac_status); } && 20367 { ac_try='test -z "$ac_c_werror_flag" 20368 || test ! -s conftest.err' 20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20370 (eval $ac_try) 2>&5 20371 ac_status=$? 20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20373 (exit $ac_status); }; } && 20374 { ac_try='test -s conftest$ac_exeext' 20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20376 (eval $ac_try) 2>&5 20377 ac_status=$? 20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20379 (exit $ac_status); }; }; then 20380 ac_cv_lib_usb_usb_open=yes 20381else 20382 echo "$as_me: failed program was:" >&5 20383sed 's/^/| /' conftest.$ac_ext >&5 20384 20385ac_cv_lib_usb_usb_open=no 20386fi 20387rm -f conftest.err conftest.$ac_objext \ 20388 conftest$ac_exeext conftest.$ac_ext 20389LIBS=$ac_check_lib_save_LIBS 20390fi 20391echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_open" >&5 20392echo "${ECHO_T}$ac_cv_lib_usb_usb_open" >&6 20393if test $ac_cv_lib_usb_usb_open = yes; then 20394 cat >>confdefs.h <<_ACEOF 20395#define HAVE_LIBUSB 1 20396_ACEOF 20397 20398 LIBS="-lusb $LIBS" 20399 20400fi 20401 20402 20403else 20404 { echo "$as_me:$LINENO: WARNING: Compiling rioutil to read from a device file. A kernel-level driver is needed to use rioutil without libusb." >&5 20405echo "$as_me: WARNING: Compiling rioutil to read from a device file. A kernel-level driver is needed to use rioutil without libusb." >&2;} 20406fi 20407 20408 20409 20410if test "$osx_support" = "yes"; then 20411 MACOSX_TRUE= 20412 MACOSX_FALSE='#' 20413else 20414 MACOSX_TRUE='#' 20415 MACOSX_FALSE= 20416fi 20417 20418 20419 20420if test "$libusb" = "yes"; then 20421 WITH_LIBUSB_TRUE= 20422 WITH_LIBUSB_FALSE='#' 20423else 20424 WITH_LIBUSB_TRUE='#' 20425 WITH_LIBUSB_FALSE= 20426fi 20427 20428 20429PACKAGE=rioutil 20430VERSION=1.5.0 20431 20432 ac_config_files="$ac_config_files Makefile librioutil/Makefile include/Makefile src/Makefile man/Makefile spec/Makefile spec/rioutil.spec spec/rioutil-usbdevfs.spec spec/rioutil-libusb.spec man/rioutil.1 linux_driver/Makefile debian/Makefile" 20433cat >confcache <<\_ACEOF 20434# This file is a shell script that caches the results of configure 20435# tests run on this system so they can be shared between configure 20436# scripts and configure runs, see configure's option --config-cache. 20437# It is not useful on other systems. If it contains results you don't 20438# want to keep, you may remove or edit it. 20439# 20440# config.status only pays attention to the cache file if you give it 20441# the --recheck option to rerun configure. 20442# 20443# `ac_cv_env_foo' variables (set or unset) will be overridden when 20444# loading this file, other *unset* `ac_cv_foo' will be assigned the 20445# following values. 20446 20447_ACEOF 20448 20449# The following way of writing the cache mishandles newlines in values, 20450# but we know of no workaround that is simple, portable, and efficient. 20451# So, don't put newlines in cache variables' values. 20452# Ultrix sh set writes to stderr and can't be redirected directly, 20453# and sets the high bit in the cache file unless we assign to the vars. 20454{ 20455 (set) 2>&1 | 20456 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20457 *ac_space=\ *) 20458 # `set' does not quote correctly, so add quotes (double-quote 20459 # substitution turns \\\\ into \\, and sed turns \\ into \). 20460 sed -n \ 20461 "s/'/'\\\\''/g; 20462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20463 ;; 20464 *) 20465 # `set' quotes correctly as required by POSIX, so do not add quotes. 20466 sed -n \ 20467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20468 ;; 20469 esac; 20470} | 20471 sed ' 20472 t clear 20473 : clear 20474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20475 t end 20476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20477 : end' >>confcache 20478if diff $cache_file confcache >/dev/null 2>&1; then :; else 20479 if test -w $cache_file; then 20480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20481 cat confcache >$cache_file 20482 else 20483 echo "not updating unwritable cache $cache_file" 20484 fi 20485fi 20486rm -f confcache 20487 20488test "x$prefix" = xNONE && prefix=$ac_default_prefix 20489# Let make expand exec_prefix. 20490test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20491 20492# VPATH may cause trouble with some makes, so we remove $(srcdir), 20493# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20494# trailing colons and then remove the whole line if VPATH becomes empty 20495# (actually we leave an empty line to preserve line numbers). 20496if test "x$srcdir" = x.; then 20497 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20498s/:*\$(srcdir):*/:/; 20499s/:*\${srcdir}:*/:/; 20500s/:*@srcdir@:*/:/; 20501s/^\([^=]*=[ ]*\):*/\1/; 20502s/:*$//; 20503s/^[^=]*=[ ]*$//; 20504}' 20505fi 20506 20507DEFS=-DHAVE_CONFIG_H 20508 20509ac_libobjs= 20510ac_ltlibobjs= 20511for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20512 # 1. Remove the extension, and $U if already installed. 20513 ac_i=`echo "$ac_i" | 20514 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20515 # 2. Add them. 20516 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20517 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20518done 20519LIBOBJS=$ac_libobjs 20520 20521LTLIBOBJS=$ac_ltlibobjs 20522 20523 20524if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20525 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20526Usually this means the macro was only invoked conditionally." >&5 20527echo "$as_me: error: conditional \"AMDEP\" was never defined. 20528Usually this means the macro was only invoked conditionally." >&2;} 20529 { (exit 1); exit 1; }; } 20530fi 20531if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20532 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20533Usually this means the macro was only invoked conditionally." >&5 20534echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20535Usually this means the macro was only invoked conditionally." >&2;} 20536 { (exit 1); exit 1; }; } 20537fi 20538if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20539 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20540Usually this means the macro was only invoked conditionally." >&5 20541echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20542Usually this means the macro was only invoked conditionally." >&2;} 20543 { (exit 1); exit 1; }; } 20544fi 20545if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20546 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20547Usually this means the macro was only invoked conditionally." >&5 20548echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20549Usually this means the macro was only invoked conditionally." >&2;} 20550 { (exit 1); exit 1; }; } 20551fi 20552if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then 20553 { { echo "$as_me:$LINENO: error: conditional \"MACOSX\" was never defined. 20554Usually this means the macro was only invoked conditionally." >&5 20555echo "$as_me: error: conditional \"MACOSX\" was never defined. 20556Usually this means the macro was only invoked conditionally." >&2;} 20557 { (exit 1); exit 1; }; } 20558fi 20559if test -z "${WITH_LIBUSB_TRUE}" && test -z "${WITH_LIBUSB_FALSE}"; then 20560 { { echo "$as_me:$LINENO: error: conditional \"WITH_LIBUSB\" was never defined. 20561Usually this means the macro was only invoked conditionally." >&5 20562echo "$as_me: error: conditional \"WITH_LIBUSB\" was never defined. 20563Usually this means the macro was only invoked conditionally." >&2;} 20564 { (exit 1); exit 1; }; } 20565fi 20566 20567: ${CONFIG_STATUS=./config.status} 20568ac_clean_files_save=$ac_clean_files 20569ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20570{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20571echo "$as_me: creating $CONFIG_STATUS" >&6;} 20572cat >$CONFIG_STATUS <<_ACEOF 20573#! $SHELL 20574# Generated by $as_me. 20575# Run this file to recreate the current configuration. 20576# Compiler output produced by configure, useful for debugging 20577# configure, is in config.log if it exists. 20578 20579debug=false 20580ac_cs_recheck=false 20581ac_cs_silent=false 20582SHELL=\${CONFIG_SHELL-$SHELL} 20583_ACEOF 20584 20585cat >>$CONFIG_STATUS <<\_ACEOF 20586## --------------------- ## 20587## M4sh Initialization. ## 20588## --------------------- ## 20589 20590# Be Bourne compatible 20591if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20592 emulate sh 20593 NULLCMD=: 20594 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20595 # is contrary to our usage. Disable this feature. 20596 alias -g '${1+"$@"}'='"$@"' 20597elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20598 set -o posix 20599fi 20600DUALCASE=1; export DUALCASE # for MKS sh 20601 20602# Support unset when possible. 20603if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20604 as_unset=unset 20605else 20606 as_unset=false 20607fi 20608 20609 20610# Work around bugs in pre-3.0 UWIN ksh. 20611$as_unset ENV MAIL MAILPATH 20612PS1='$ ' 20613PS2='> ' 20614PS4='+ ' 20615 20616# NLS nuisances. 20617for as_var in \ 20618 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20619 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20620 LC_TELEPHONE LC_TIME 20621do 20622 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20623 eval $as_var=C; export $as_var 20624 else 20625 $as_unset $as_var 20626 fi 20627done 20628 20629# Required to use basename. 20630if expr a : '\(a\)' >/dev/null 2>&1; then 20631 as_expr=expr 20632else 20633 as_expr=false 20634fi 20635 20636if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20637 as_basename=basename 20638else 20639 as_basename=false 20640fi 20641 20642 20643# Name of the executable. 20644as_me=`$as_basename "$0" || 20645$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20646 X"$0" : 'X\(//\)$' \| \ 20647 X"$0" : 'X\(/\)$' \| \ 20648 . : '\(.\)' 2>/dev/null || 20649echo X/"$0" | 20650 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20651 /^X\/\(\/\/\)$/{ s//\1/; q; } 20652 /^X\/\(\/\).*/{ s//\1/; q; } 20653 s/.*/./; q'` 20654 20655 20656# PATH needs CR, and LINENO needs CR and PATH. 20657# Avoid depending upon Character Ranges. 20658as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20659as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20660as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20661as_cr_digits='0123456789' 20662as_cr_alnum=$as_cr_Letters$as_cr_digits 20663 20664# The user is always right. 20665if test "${PATH_SEPARATOR+set}" != set; then 20666 echo "#! /bin/sh" >conf$$.sh 20667 echo "exit 0" >>conf$$.sh 20668 chmod +x conf$$.sh 20669 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20670 PATH_SEPARATOR=';' 20671 else 20672 PATH_SEPARATOR=: 20673 fi 20674 rm -f conf$$.sh 20675fi 20676 20677 20678 as_lineno_1=$LINENO 20679 as_lineno_2=$LINENO 20680 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20681 test "x$as_lineno_1" != "x$as_lineno_2" && 20682 test "x$as_lineno_3" = "x$as_lineno_2" || { 20683 # Find who we are. Look in the path if we contain no path at all 20684 # relative or not. 20685 case $0 in 20686 *[\\/]* ) as_myself=$0 ;; 20687 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20688for as_dir in $PATH 20689do 20690 IFS=$as_save_IFS 20691 test -z "$as_dir" && as_dir=. 20692 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20693done 20694 20695 ;; 20696 esac 20697 # We did not find ourselves, most probably we were run as `sh COMMAND' 20698 # in which case we are not to be found in the path. 20699 if test "x$as_myself" = x; then 20700 as_myself=$0 20701 fi 20702 if test ! -f "$as_myself"; then 20703 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20704echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20705 { (exit 1); exit 1; }; } 20706 fi 20707 case $CONFIG_SHELL in 20708 '') 20709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20710for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20711do 20712 IFS=$as_save_IFS 20713 test -z "$as_dir" && as_dir=. 20714 for as_base in sh bash ksh sh5; do 20715 case $as_dir in 20716 /*) 20717 if ("$as_dir/$as_base" -c ' 20718 as_lineno_1=$LINENO 20719 as_lineno_2=$LINENO 20720 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20721 test "x$as_lineno_1" != "x$as_lineno_2" && 20722 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20723 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20724 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20725 CONFIG_SHELL=$as_dir/$as_base 20726 export CONFIG_SHELL 20727 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20728 fi;; 20729 esac 20730 done 20731done 20732;; 20733 esac 20734 20735 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20736 # uniformly replaced by the line number. The first 'sed' inserts a 20737 # line-number line before each line; the second 'sed' does the real 20738 # work. The second script uses 'N' to pair each line-number line 20739 # with the numbered line, and appends trailing '-' during 20740 # substitution so that $LINENO is not a special case at line end. 20741 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20742 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20743 sed '=' <$as_myself | 20744 sed ' 20745 N 20746 s,$,-, 20747 : loop 20748 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20749 t loop 20750 s,-$,, 20751 s,^['$as_cr_digits']*\n,, 20752 ' >$as_me.lineno && 20753 chmod +x $as_me.lineno || 20754 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20755echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20756 { (exit 1); exit 1; }; } 20757 20758 # Don't try to exec as it changes $[0], causing all sort of problems 20759 # (the dirname of $[0] is not the place where we might find the 20760 # original and so on. Autoconf is especially sensible to this). 20761 . ./$as_me.lineno 20762 # Exit status is that of the last command. 20763 exit 20764} 20765 20766 20767case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20768 *c*,-n*) ECHO_N= ECHO_C=' 20769' ECHO_T=' ' ;; 20770 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20771 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20772esac 20773 20774if expr a : '\(a\)' >/dev/null 2>&1; then 20775 as_expr=expr 20776else 20777 as_expr=false 20778fi 20779 20780rm -f conf$$ conf$$.exe conf$$.file 20781echo >conf$$.file 20782if ln -s conf$$.file conf$$ 2>/dev/null; then 20783 # We could just check for DJGPP; but this test a) works b) is more generic 20784 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20785 if test -f conf$$.exe; then 20786 # Don't use ln at all; we don't have any links 20787 as_ln_s='cp -p' 20788 else 20789 as_ln_s='ln -s' 20790 fi 20791elif ln conf$$.file conf$$ 2>/dev/null; then 20792 as_ln_s=ln 20793else 20794 as_ln_s='cp -p' 20795fi 20796rm -f conf$$ conf$$.exe conf$$.file 20797 20798if mkdir -p . 2>/dev/null; then 20799 as_mkdir_p=: 20800else 20801 test -d ./-p && rmdir ./-p 20802 as_mkdir_p=false 20803fi 20804 20805as_executable_p="test -f" 20806 20807# Sed expression to map a string onto a valid CPP name. 20808as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20809 20810# Sed expression to map a string onto a valid variable name. 20811as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20812 20813 20814# IFS 20815# We need space, tab and new line, in precisely that order. 20816as_nl=' 20817' 20818IFS=" $as_nl" 20819 20820# CDPATH. 20821$as_unset CDPATH 20822 20823exec 6>&1 20824 20825# Open the log real soon, to keep \$[0] and so on meaningful, and to 20826# report actual input values of CONFIG_FILES etc. instead of their 20827# values after options handling. Logging --version etc. is OK. 20828exec 5>>config.log 20829{ 20830 echo 20831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20832## Running $as_me. ## 20833_ASBOX 20834} >&5 20835cat >&5 <<_CSEOF 20836 20837This file was extended by $as_me, which was 20838generated by GNU Autoconf 2.59. Invocation command line was 20839 20840 CONFIG_FILES = $CONFIG_FILES 20841 CONFIG_HEADERS = $CONFIG_HEADERS 20842 CONFIG_LINKS = $CONFIG_LINKS 20843 CONFIG_COMMANDS = $CONFIG_COMMANDS 20844 $ $0 $@ 20845 20846_CSEOF 20847echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20848echo >&5 20849_ACEOF 20850 20851# Files that config.status was made for. 20852if test -n "$ac_config_files"; then 20853 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20854fi 20855 20856if test -n "$ac_config_headers"; then 20857 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20858fi 20859 20860if test -n "$ac_config_links"; then 20861 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20862fi 20863 20864if test -n "$ac_config_commands"; then 20865 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20866fi 20867 20868cat >>$CONFIG_STATUS <<\_ACEOF 20869 20870ac_cs_usage="\ 20871\`$as_me' instantiates files from templates according to the 20872current configuration. 20873 20874Usage: $0 [OPTIONS] [FILE]... 20875 20876 -h, --help print this help, then exit 20877 -V, --version print version number, then exit 20878 -q, --quiet do not print progress messages 20879 -d, --debug don't remove temporary files 20880 --recheck update $as_me by reconfiguring in the same conditions 20881 --file=FILE[:TEMPLATE] 20882 instantiate the configuration file FILE 20883 --header=FILE[:TEMPLATE] 20884 instantiate the configuration header FILE 20885 20886Configuration files: 20887$config_files 20888 20889Configuration headers: 20890$config_headers 20891 20892Configuration commands: 20893$config_commands 20894 20895Report bugs to <bug-autoconf@gnu.org>." 20896_ACEOF 20897 20898cat >>$CONFIG_STATUS <<_ACEOF 20899ac_cs_version="\\ 20900config.status 20901configured by $0, generated by GNU Autoconf 2.59, 20902 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20903 20904Copyright (C) 2003 Free Software Foundation, Inc. 20905This config.status script is free software; the Free Software Foundation 20906gives unlimited permission to copy, distribute and modify it." 20907srcdir=$srcdir 20908INSTALL="$INSTALL" 20909_ACEOF 20910 20911cat >>$CONFIG_STATUS <<\_ACEOF 20912# If no file are specified by the user, then we need to provide default 20913# value. By we need to know if files were specified by the user. 20914ac_need_defaults=: 20915while test $# != 0 20916do 20917 case $1 in 20918 --*=*) 20919 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20920 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20921 ac_shift=: 20922 ;; 20923 -*) 20924 ac_option=$1 20925 ac_optarg=$2 20926 ac_shift=shift 20927 ;; 20928 *) # This is not an option, so the user has probably given explicit 20929 # arguments. 20930 ac_option=$1 20931 ac_need_defaults=false;; 20932 esac 20933 20934 case $ac_option in 20935 # Handling of the options. 20936_ACEOF 20937cat >>$CONFIG_STATUS <<\_ACEOF 20938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20939 ac_cs_recheck=: ;; 20940 --version | --vers* | -V ) 20941 echo "$ac_cs_version"; exit 0 ;; 20942 --he | --h) 20943 # Conflict between --help and --header 20944 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20945Try \`$0 --help' for more information." >&5 20946echo "$as_me: error: ambiguous option: $1 20947Try \`$0 --help' for more information." >&2;} 20948 { (exit 1); exit 1; }; };; 20949 --help | --hel | -h ) 20950 echo "$ac_cs_usage"; exit 0 ;; 20951 --debug | --d* | -d ) 20952 debug=: ;; 20953 --file | --fil | --fi | --f ) 20954 $ac_shift 20955 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20956 ac_need_defaults=false;; 20957 --header | --heade | --head | --hea ) 20958 $ac_shift 20959 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20960 ac_need_defaults=false;; 20961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20962 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20963 ac_cs_silent=: ;; 20964 20965 # This is an error. 20966 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20967Try \`$0 --help' for more information." >&5 20968echo "$as_me: error: unrecognized option: $1 20969Try \`$0 --help' for more information." >&2;} 20970 { (exit 1); exit 1; }; } ;; 20971 20972 *) ac_config_targets="$ac_config_targets $1" ;; 20973 20974 esac 20975 shift 20976done 20977 20978ac_configure_extra_args= 20979 20980if $ac_cs_silent; then 20981 exec 6>/dev/null 20982 ac_configure_extra_args="$ac_configure_extra_args --silent" 20983fi 20984 20985_ACEOF 20986cat >>$CONFIG_STATUS <<_ACEOF 20987if \$ac_cs_recheck; then 20988 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20989 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20990fi 20991 20992_ACEOF 20993 20994cat >>$CONFIG_STATUS <<_ACEOF 20995# 20996# INIT-COMMANDS section. 20997# 20998 20999AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21000 21001_ACEOF 21002 21003 21004 21005cat >>$CONFIG_STATUS <<\_ACEOF 21006for ac_config_target in $ac_config_targets 21007do 21008 case "$ac_config_target" in 21009 # Handling of arguments. 21010 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21011 "librioutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES librioutil/Makefile" ;; 21012 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21013 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21014 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21015 "spec/Makefile" ) CONFIG_FILES="$CONFIG_FILES spec/Makefile" ;; 21016 "spec/rioutil.spec" ) CONFIG_FILES="$CONFIG_FILES spec/rioutil.spec" ;; 21017 "spec/rioutil-usbdevfs.spec" ) CONFIG_FILES="$CONFIG_FILES spec/rioutil-usbdevfs.spec" ;; 21018 "spec/rioutil-libusb.spec" ) CONFIG_FILES="$CONFIG_FILES spec/rioutil-libusb.spec" ;; 21019 "man/rioutil.1" ) CONFIG_FILES="$CONFIG_FILES man/rioutil.1" ;; 21020 "linux_driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux_driver/Makefile" ;; 21021 "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;; 21022 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21023 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 21024 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21025echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21026 { (exit 1); exit 1; }; };; 21027 esac 21028done 21029 21030# If the user did not use the arguments to specify the items to instantiate, 21031# then the envvar interface is used. Set only those that are not. 21032# We use the long form for the default assignment because of an extremely 21033# bizarre bug on SunOS 4.1.3. 21034if $ac_need_defaults; then 21035 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21036 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21037 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21038fi 21039 21040# Have a temporary directory for convenience. Make it in the build tree 21041# simply because there is no reason to put it here, and in addition, 21042# creating and moving files from /tmp can sometimes cause problems. 21043# Create a temporary directory, and hook for its removal unless debugging. 21044$debug || 21045{ 21046 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 21047 trap '{ (exit 1); exit 1; }' 1 2 13 15 21048} 21049 21050# Create a (secure) tmp directory for tmp files. 21051 21052{ 21053 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 21054 test -n "$tmp" && test -d "$tmp" 21055} || 21056{ 21057 tmp=./confstat$$-$RANDOM 21058 (umask 077 && mkdir $tmp) 21059} || 21060{ 21061 echo "$me: cannot create a temporary directory in ." >&2 21062 { (exit 1); exit 1; } 21063} 21064 21065_ACEOF 21066 21067cat >>$CONFIG_STATUS <<_ACEOF 21068 21069# 21070# CONFIG_FILES section. 21071# 21072 21073# No need to generate the scripts if there are no CONFIG_FILES. 21074# This happens for instance when ./config.status config.h 21075if test -n "\$CONFIG_FILES"; then 21076 # Protect against being on the right side of a sed subst in config.status. 21077 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 21078 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 21079s,@SHELL@,$SHELL,;t t 21080s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21081s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21082s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21083s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21084s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21085s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21086s,@exec_prefix@,$exec_prefix,;t t 21087s,@prefix@,$prefix,;t t 21088s,@program_transform_name@,$program_transform_name,;t t 21089s,@bindir@,$bindir,;t t 21090s,@sbindir@,$sbindir,;t t 21091s,@libexecdir@,$libexecdir,;t t 21092s,@datadir@,$datadir,;t t 21093s,@sysconfdir@,$sysconfdir,;t t 21094s,@sharedstatedir@,$sharedstatedir,;t t 21095s,@localstatedir@,$localstatedir,;t t 21096s,@libdir@,$libdir,;t t 21097s,@includedir@,$includedir,;t t 21098s,@oldincludedir@,$oldincludedir,;t t 21099s,@infodir@,$infodir,;t t 21100s,@mandir@,$mandir,;t t 21101s,@build_alias@,$build_alias,;t t 21102s,@host_alias@,$host_alias,;t t 21103s,@target_alias@,$target_alias,;t t 21104s,@DEFS@,$DEFS,;t t 21105s,@ECHO_C@,$ECHO_C,;t t 21106s,@ECHO_N@,$ECHO_N,;t t 21107s,@ECHO_T@,$ECHO_T,;t t 21108s,@LIBS@,$LIBS,;t t 21109s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 21110s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 21111s,@INSTALL_DATA@,$INSTALL_DATA,;t t 21112s,@CYGPATH_W@,$CYGPATH_W,;t t 21113s,@PACKAGE@,$PACKAGE,;t t 21114s,@VERSION@,$VERSION,;t t 21115s,@ACLOCAL@,$ACLOCAL,;t t 21116s,@AUTOCONF@,$AUTOCONF,;t t 21117s,@AUTOMAKE@,$AUTOMAKE,;t t 21118s,@AUTOHEADER@,$AUTOHEADER,;t t 21119s,@MAKEINFO@,$MAKEINFO,;t t 21120s,@install_sh@,$install_sh,;t t 21121s,@STRIP@,$STRIP,;t t 21122s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 21123s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 21124s,@mkdir_p@,$mkdir_p,;t t 21125s,@AWK@,$AWK,;t t 21126s,@SET_MAKE@,$SET_MAKE,;t t 21127s,@am__leading_dot@,$am__leading_dot,;t t 21128s,@AMTAR@,$AMTAR,;t t 21129s,@am__tar@,$am__tar,;t t 21130s,@am__untar@,$am__untar,;t t 21131s,@build@,$build,;t t 21132s,@build_cpu@,$build_cpu,;t t 21133s,@build_vendor@,$build_vendor,;t t 21134s,@build_os@,$build_os,;t t 21135s,@host@,$host,;t t 21136s,@host_cpu@,$host_cpu,;t t 21137s,@host_vendor@,$host_vendor,;t t 21138s,@host_os@,$host_os,;t t 21139s,@CC@,$CC,;t t 21140s,@CFLAGS@,$CFLAGS,;t t 21141s,@LDFLAGS@,$LDFLAGS,;t t 21142s,@CPPFLAGS@,$CPPFLAGS,;t t 21143s,@ac_ct_CC@,$ac_ct_CC,;t t 21144s,@EXEEXT@,$EXEEXT,;t t 21145s,@OBJEXT@,$OBJEXT,;t t 21146s,@DEPDIR@,$DEPDIR,;t t 21147s,@am__include@,$am__include,;t t 21148s,@am__quote@,$am__quote,;t t 21149s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 21150s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 21151s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 21152s,@CCDEPMODE@,$CCDEPMODE,;t t 21153s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 21154s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 21155s,@EGREP@,$EGREP,;t t 21156s,@LN_S@,$LN_S,;t t 21157s,@ECHO@,$ECHO,;t t 21158s,@AR@,$AR,;t t 21159s,@ac_ct_AR@,$ac_ct_AR,;t t 21160s,@RANLIB@,$RANLIB,;t t 21161s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21162s,@CPP@,$CPP,;t t 21163s,@CXX@,$CXX,;t t 21164s,@CXXFLAGS@,$CXXFLAGS,;t t 21165s,@ac_ct_CXX@,$ac_ct_CXX,;t t 21166s,@CXXDEPMODE@,$CXXDEPMODE,;t t 21167s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 21168s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 21169s,@CXXCPP@,$CXXCPP,;t t 21170s,@F77@,$F77,;t t 21171s,@FFLAGS@,$FFLAGS,;t t 21172s,@ac_ct_F77@,$ac_ct_F77,;t t 21173s,@LIBTOOL@,$LIBTOOL,;t t 21174s,@MACOSX@,$MACOSX,;t t 21175s,@LIBUSB_CONFIG@,$LIBUSB_CONFIG,;t t 21176s,@WITH_LIBUSB@,$WITH_LIBUSB,;t t 21177s,@MACOSX_TRUE@,$MACOSX_TRUE,;t t 21178s,@MACOSX_FALSE@,$MACOSX_FALSE,;t t 21179s,@WITH_LIBUSB_TRUE@,$WITH_LIBUSB_TRUE,;t t 21180s,@WITH_LIBUSB_FALSE@,$WITH_LIBUSB_FALSE,;t t 21181s,@LIBOBJS@,$LIBOBJS,;t t 21182s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21183CEOF 21184 21185_ACEOF 21186 21187 cat >>$CONFIG_STATUS <<\_ACEOF 21188 # Split the substitutions into bite-sized pieces for seds with 21189 # small command number limits, like on Digital OSF/1 and HP-UX. 21190 ac_max_sed_lines=48 21191 ac_sed_frag=1 # Number of current file. 21192 ac_beg=1 # First line for current file. 21193 ac_end=$ac_max_sed_lines # Line after last line for current file. 21194 ac_more_lines=: 21195 ac_sed_cmds= 21196 while $ac_more_lines; do 21197 if test $ac_beg -gt 1; then 21198 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21199 else 21200 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21201 fi 21202 if test ! -s $tmp/subs.frag; then 21203 ac_more_lines=false 21204 else 21205 # The purpose of the label and of the branching condition is to 21206 # speed up the sed processing (if there are no `@' at all, there 21207 # is no need to browse any of the substitutions). 21208 # These are the two extra sed commands mentioned above. 21209 (echo ':t 21210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21211 if test -z "$ac_sed_cmds"; then 21212 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21213 else 21214 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21215 fi 21216 ac_sed_frag=`expr $ac_sed_frag + 1` 21217 ac_beg=$ac_end 21218 ac_end=`expr $ac_end + $ac_max_sed_lines` 21219 fi 21220 done 21221 if test -z "$ac_sed_cmds"; then 21222 ac_sed_cmds=cat 21223 fi 21224fi # test -n "$CONFIG_FILES" 21225 21226_ACEOF 21227cat >>$CONFIG_STATUS <<\_ACEOF 21228for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21229 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21230 case $ac_file in 21231 - | *:- | *:-:* ) # input from stdin 21232 cat >$tmp/stdin 21233 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21235 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21237 * ) ac_file_in=$ac_file.in ;; 21238 esac 21239 21240 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21241 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21242$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21243 X"$ac_file" : 'X\(//\)[^/]' \| \ 21244 X"$ac_file" : 'X\(//\)$' \| \ 21245 X"$ac_file" : 'X\(/\)' \| \ 21246 . : '\(.\)' 2>/dev/null || 21247echo X"$ac_file" | 21248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21249 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21250 /^X\(\/\/\)$/{ s//\1/; q; } 21251 /^X\(\/\).*/{ s//\1/; q; } 21252 s/.*/./; q'` 21253 { if $as_mkdir_p; then 21254 mkdir -p "$ac_dir" 21255 else 21256 as_dir="$ac_dir" 21257 as_dirs= 21258 while test ! -d "$as_dir"; do 21259 as_dirs="$as_dir $as_dirs" 21260 as_dir=`(dirname "$as_dir") 2>/dev/null || 21261$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21262 X"$as_dir" : 'X\(//\)[^/]' \| \ 21263 X"$as_dir" : 'X\(//\)$' \| \ 21264 X"$as_dir" : 'X\(/\)' \| \ 21265 . : '\(.\)' 2>/dev/null || 21266echo X"$as_dir" | 21267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21268 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21269 /^X\(\/\/\)$/{ s//\1/; q; } 21270 /^X\(\/\).*/{ s//\1/; q; } 21271 s/.*/./; q'` 21272 done 21273 test ! -n "$as_dirs" || mkdir $as_dirs 21274 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21275echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21276 { (exit 1); exit 1; }; }; } 21277 21278 ac_builddir=. 21279 21280if test "$ac_dir" != .; then 21281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21282 # A "../" for each directory in $ac_dir_suffix. 21283 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21284else 21285 ac_dir_suffix= ac_top_builddir= 21286fi 21287 21288case $srcdir in 21289 .) # No --srcdir option. We are building in place. 21290 ac_srcdir=. 21291 if test -z "$ac_top_builddir"; then 21292 ac_top_srcdir=. 21293 else 21294 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21295 fi ;; 21296 [\\/]* | ?:[\\/]* ) # Absolute path. 21297 ac_srcdir=$srcdir$ac_dir_suffix; 21298 ac_top_srcdir=$srcdir ;; 21299 *) # Relative path. 21300 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21301 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21302esac 21303 21304# Do not use `cd foo && pwd` to compute absolute paths, because 21305# the directories may not exist. 21306case `pwd` in 21307.) ac_abs_builddir="$ac_dir";; 21308*) 21309 case "$ac_dir" in 21310 .) ac_abs_builddir=`pwd`;; 21311 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21312 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21313 esac;; 21314esac 21315case $ac_abs_builddir in 21316.) ac_abs_top_builddir=${ac_top_builddir}.;; 21317*) 21318 case ${ac_top_builddir}. in 21319 .) ac_abs_top_builddir=$ac_abs_builddir;; 21320 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21321 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21322 esac;; 21323esac 21324case $ac_abs_builddir in 21325.) ac_abs_srcdir=$ac_srcdir;; 21326*) 21327 case $ac_srcdir in 21328 .) ac_abs_srcdir=$ac_abs_builddir;; 21329 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21330 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21331 esac;; 21332esac 21333case $ac_abs_builddir in 21334.) ac_abs_top_srcdir=$ac_top_srcdir;; 21335*) 21336 case $ac_top_srcdir in 21337 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21338 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21339 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21340 esac;; 21341esac 21342 21343 21344 case $INSTALL in 21345 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21346 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21347 esac 21348 21349 if test x"$ac_file" != x-; then 21350 { echo "$as_me:$LINENO: creating $ac_file" >&5 21351echo "$as_me: creating $ac_file" >&6;} 21352 rm -f "$ac_file" 21353 fi 21354 # Let's still pretend it is `configure' which instantiates (i.e., don't 21355 # use $as_me), people would be surprised to read: 21356 # /* config.h. Generated by config.status. */ 21357 if test x"$ac_file" = x-; then 21358 configure_input= 21359 else 21360 configure_input="$ac_file. " 21361 fi 21362 configure_input=$configure_input"Generated from `echo $ac_file_in | 21363 sed 's,.*/,,'` by configure." 21364 21365 # First look for the input files in the build tree, otherwise in the 21366 # src tree. 21367 ac_file_inputs=`IFS=: 21368 for f in $ac_file_in; do 21369 case $f in 21370 -) echo $tmp/stdin ;; 21371 [\\/$]*) 21372 # Absolute (can't be DOS-style, as IFS=:) 21373 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21374echo "$as_me: error: cannot find input file: $f" >&2;} 21375 { (exit 1); exit 1; }; } 21376 echo "$f";; 21377 *) # Relative 21378 if test -f "$f"; then 21379 # Build tree 21380 echo "$f" 21381 elif test -f "$srcdir/$f"; then 21382 # Source tree 21383 echo "$srcdir/$f" 21384 else 21385 # /dev/null tree 21386 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21387echo "$as_me: error: cannot find input file: $f" >&2;} 21388 { (exit 1); exit 1; }; } 21389 fi;; 21390 esac 21391 done` || { (exit 1); exit 1; } 21392_ACEOF 21393cat >>$CONFIG_STATUS <<_ACEOF 21394 sed "$ac_vpsub 21395$extrasub 21396_ACEOF 21397cat >>$CONFIG_STATUS <<\_ACEOF 21398:t 21399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21400s,@configure_input@,$configure_input,;t t 21401s,@srcdir@,$ac_srcdir,;t t 21402s,@abs_srcdir@,$ac_abs_srcdir,;t t 21403s,@top_srcdir@,$ac_top_srcdir,;t t 21404s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21405s,@builddir@,$ac_builddir,;t t 21406s,@abs_builddir@,$ac_abs_builddir,;t t 21407s,@top_builddir@,$ac_top_builddir,;t t 21408s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21409s,@INSTALL@,$ac_INSTALL,;t t 21410" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21411 rm -f $tmp/stdin 21412 if test x"$ac_file" != x-; then 21413 mv $tmp/out $ac_file 21414 else 21415 cat $tmp/out 21416 rm -f $tmp/out 21417 fi 21418 21419done 21420_ACEOF 21421cat >>$CONFIG_STATUS <<\_ACEOF 21422 21423# 21424# CONFIG_HEADER section. 21425# 21426 21427# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21428# NAME is the cpp macro being defined and VALUE is the value it is being given. 21429# 21430# ac_d sets the value in "#define NAME VALUE" lines. 21431ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21432ac_dB='[ ].*$,\1#\2' 21433ac_dC=' ' 21434ac_dD=',;t' 21435# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21436ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21437ac_uB='$,\1#\2define\3' 21438ac_uC=' ' 21439ac_uD=',;t' 21440 21441for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21443 case $ac_file in 21444 - | *:- | *:-:* ) # input from stdin 21445 cat >$tmp/stdin 21446 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21448 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21450 * ) ac_file_in=$ac_file.in ;; 21451 esac 21452 21453 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21454echo "$as_me: creating $ac_file" >&6;} 21455 21456 # First look for the input files in the build tree, otherwise in the 21457 # src tree. 21458 ac_file_inputs=`IFS=: 21459 for f in $ac_file_in; do 21460 case $f in 21461 -) echo $tmp/stdin ;; 21462 [\\/$]*) 21463 # Absolute (can't be DOS-style, as IFS=:) 21464 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21465echo "$as_me: error: cannot find input file: $f" >&2;} 21466 { (exit 1); exit 1; }; } 21467 # Do quote $f, to prevent DOS paths from being IFS'd. 21468 echo "$f";; 21469 *) # Relative 21470 if test -f "$f"; then 21471 # Build tree 21472 echo "$f" 21473 elif test -f "$srcdir/$f"; then 21474 # Source tree 21475 echo "$srcdir/$f" 21476 else 21477 # /dev/null tree 21478 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21479echo "$as_me: error: cannot find input file: $f" >&2;} 21480 { (exit 1); exit 1; }; } 21481 fi;; 21482 esac 21483 done` || { (exit 1); exit 1; } 21484 # Remove the trailing spaces. 21485 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21486 21487_ACEOF 21488 21489# Transform confdefs.h into two sed scripts, `conftest.defines' and 21490# `conftest.undefs', that substitutes the proper values into 21491# config.h.in to produce config.h. The first handles `#define' 21492# templates, and the second `#undef' templates. 21493# And first: Protect against being on the right side of a sed subst in 21494# config.status. Protect against being in an unquoted here document 21495# in config.status. 21496rm -f conftest.defines conftest.undefs 21497# Using a here document instead of a string reduces the quoting nightmare. 21498# Putting comments in sed scripts is not portable. 21499# 21500# `end' is used to avoid that the second main sed command (meant for 21501# 0-ary CPP macros) applies to n-ary macro definitions. 21502# See the Autoconf documentation for `clear'. 21503cat >confdef2sed.sed <<\_ACEOF 21504s/[\\&,]/\\&/g 21505s,[\\$`],\\&,g 21506t clear 21507: clear 21508s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 21509t end 21510s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21511: end 21512_ACEOF 21513# If some macros were called several times there might be several times 21514# the same #defines, which is useless. Nevertheless, we may not want to 21515# sort them, since we want the *last* AC-DEFINE to be honored. 21516uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21517sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21518rm -f confdef2sed.sed 21519 21520# This sed command replaces #undef with comments. This is necessary, for 21521# example, in the case of _POSIX_SOURCE, which is predefined and required 21522# on some systems where configure will not decide to define it. 21523cat >>conftest.undefs <<\_ACEOF 21524s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21525_ACEOF 21526 21527# Break up conftest.defines because some shells have a limit on the size 21528# of here documents, and old seds have small limits too (100 cmds). 21529echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21530echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21531echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21532echo ' :' >>$CONFIG_STATUS 21533rm -f conftest.tail 21534while grep . conftest.defines >/dev/null 21535do 21536 # Write a limited-size here document to $tmp/defines.sed. 21537 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 21538 # Speed up: don't consider the non `#define' lines. 21539 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 21540 # Work around the forget-to-reset-the-flag bug. 21541 echo 't clr' >>$CONFIG_STATUS 21542 echo ': clr' >>$CONFIG_STATUS 21543 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 21544 echo 'CEOF 21545 sed -f $tmp/defines.sed $tmp/in >$tmp/out 21546 rm -f $tmp/in 21547 mv $tmp/out $tmp/in 21548' >>$CONFIG_STATUS 21549 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21550 rm -f conftest.defines 21551 mv conftest.tail conftest.defines 21552done 21553rm -f conftest.defines 21554echo ' fi # grep' >>$CONFIG_STATUS 21555echo >>$CONFIG_STATUS 21556 21557# Break up conftest.undefs because some shells have a limit on the size 21558# of here documents, and old seds have small limits too (100 cmds). 21559echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21560rm -f conftest.tail 21561while grep . conftest.undefs >/dev/null 21562do 21563 # Write a limited-size here document to $tmp/undefs.sed. 21564 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21565 # Speed up: don't consider the non `#undef' 21566 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21567 # Work around the forget-to-reset-the-flag bug. 21568 echo 't clr' >>$CONFIG_STATUS 21569 echo ': clr' >>$CONFIG_STATUS 21570 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21571 echo 'CEOF 21572 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21573 rm -f $tmp/in 21574 mv $tmp/out $tmp/in 21575' >>$CONFIG_STATUS 21576 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21577 rm -f conftest.undefs 21578 mv conftest.tail conftest.undefs 21579done 21580rm -f conftest.undefs 21581 21582cat >>$CONFIG_STATUS <<\_ACEOF 21583 # Let's still pretend it is `configure' which instantiates (i.e., don't 21584 # use $as_me), people would be surprised to read: 21585 # /* config.h. Generated by config.status. */ 21586 if test x"$ac_file" = x-; then 21587 echo "/* Generated by configure. */" >$tmp/config.h 21588 else 21589 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21590 fi 21591 cat $tmp/in >>$tmp/config.h 21592 rm -f $tmp/in 21593 if test x"$ac_file" != x-; then 21594 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21595 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21596echo "$as_me: $ac_file is unchanged" >&6;} 21597 else 21598 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21600 X"$ac_file" : 'X\(//\)[^/]' \| \ 21601 X"$ac_file" : 'X\(//\)$' \| \ 21602 X"$ac_file" : 'X\(/\)' \| \ 21603 . : '\(.\)' 2>/dev/null || 21604echo X"$ac_file" | 21605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21606 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21607 /^X\(\/\/\)$/{ s//\1/; q; } 21608 /^X\(\/\).*/{ s//\1/; q; } 21609 s/.*/./; q'` 21610 { if $as_mkdir_p; then 21611 mkdir -p "$ac_dir" 21612 else 21613 as_dir="$ac_dir" 21614 as_dirs= 21615 while test ! -d "$as_dir"; do 21616 as_dirs="$as_dir $as_dirs" 21617 as_dir=`(dirname "$as_dir") 2>/dev/null || 21618$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21619 X"$as_dir" : 'X\(//\)[^/]' \| \ 21620 X"$as_dir" : 'X\(//\)$' \| \ 21621 X"$as_dir" : 'X\(/\)' \| \ 21622 . : '\(.\)' 2>/dev/null || 21623echo X"$as_dir" | 21624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21625 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21626 /^X\(\/\/\)$/{ s//\1/; q; } 21627 /^X\(\/\).*/{ s//\1/; q; } 21628 s/.*/./; q'` 21629 done 21630 test ! -n "$as_dirs" || mkdir $as_dirs 21631 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21632echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21633 { (exit 1); exit 1; }; }; } 21634 21635 rm -f $ac_file 21636 mv $tmp/config.h $ac_file 21637 fi 21638 else 21639 cat $tmp/config.h 21640 rm -f $tmp/config.h 21641 fi 21642# Compute $ac_file's index in $config_headers. 21643_am_stamp_count=1 21644for _am_header in $config_headers :; do 21645 case $_am_header in 21646 $ac_file | $ac_file:* ) 21647 break ;; 21648 * ) 21649 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21650 esac 21651done 21652echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 21653$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21654 X$ac_file : 'X\(//\)[^/]' \| \ 21655 X$ac_file : 'X\(//\)$' \| \ 21656 X$ac_file : 'X\(/\)' \| \ 21657 . : '\(.\)' 2>/dev/null || 21658echo X$ac_file | 21659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21660 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21661 /^X\(\/\/\)$/{ s//\1/; q; } 21662 /^X\(\/\).*/{ s//\1/; q; } 21663 s/.*/./; q'`/stamp-h$_am_stamp_count 21664done 21665_ACEOF 21666cat >>$CONFIG_STATUS <<\_ACEOF 21667 21668# 21669# CONFIG_COMMANDS section. 21670# 21671for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21672 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21673 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21674 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21675$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21676 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21677 X"$ac_dest" : 'X\(//\)$' \| \ 21678 X"$ac_dest" : 'X\(/\)' \| \ 21679 . : '\(.\)' 2>/dev/null || 21680echo X"$ac_dest" | 21681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21682 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21683 /^X\(\/\/\)$/{ s//\1/; q; } 21684 /^X\(\/\).*/{ s//\1/; q; } 21685 s/.*/./; q'` 21686 { if $as_mkdir_p; then 21687 mkdir -p "$ac_dir" 21688 else 21689 as_dir="$ac_dir" 21690 as_dirs= 21691 while test ! -d "$as_dir"; do 21692 as_dirs="$as_dir $as_dirs" 21693 as_dir=`(dirname "$as_dir") 2>/dev/null || 21694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21695 X"$as_dir" : 'X\(//\)[^/]' \| \ 21696 X"$as_dir" : 'X\(//\)$' \| \ 21697 X"$as_dir" : 'X\(/\)' \| \ 21698 . : '\(.\)' 2>/dev/null || 21699echo X"$as_dir" | 21700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21701 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21702 /^X\(\/\/\)$/{ s//\1/; q; } 21703 /^X\(\/\).*/{ s//\1/; q; } 21704 s/.*/./; q'` 21705 done 21706 test ! -n "$as_dirs" || mkdir $as_dirs 21707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21708echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21709 { (exit 1); exit 1; }; }; } 21710 21711 ac_builddir=. 21712 21713if test "$ac_dir" != .; then 21714 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21715 # A "../" for each directory in $ac_dir_suffix. 21716 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21717else 21718 ac_dir_suffix= ac_top_builddir= 21719fi 21720 21721case $srcdir in 21722 .) # No --srcdir option. We are building in place. 21723 ac_srcdir=. 21724 if test -z "$ac_top_builddir"; then 21725 ac_top_srcdir=. 21726 else 21727 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21728 fi ;; 21729 [\\/]* | ?:[\\/]* ) # Absolute path. 21730 ac_srcdir=$srcdir$ac_dir_suffix; 21731 ac_top_srcdir=$srcdir ;; 21732 *) # Relative path. 21733 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21734 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21735esac 21736 21737# Do not use `cd foo && pwd` to compute absolute paths, because 21738# the directories may not exist. 21739case `pwd` in 21740.) ac_abs_builddir="$ac_dir";; 21741*) 21742 case "$ac_dir" in 21743 .) ac_abs_builddir=`pwd`;; 21744 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21745 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21746 esac;; 21747esac 21748case $ac_abs_builddir in 21749.) ac_abs_top_builddir=${ac_top_builddir}.;; 21750*) 21751 case ${ac_top_builddir}. in 21752 .) ac_abs_top_builddir=$ac_abs_builddir;; 21753 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21754 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21755 esac;; 21756esac 21757case $ac_abs_builddir in 21758.) ac_abs_srcdir=$ac_srcdir;; 21759*) 21760 case $ac_srcdir in 21761 .) ac_abs_srcdir=$ac_abs_builddir;; 21762 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21763 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21764 esac;; 21765esac 21766case $ac_abs_builddir in 21767.) ac_abs_top_srcdir=$ac_top_srcdir;; 21768*) 21769 case $ac_top_srcdir in 21770 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21771 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21772 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21773 esac;; 21774esac 21775 21776 21777 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21778echo "$as_me: executing $ac_dest commands" >&6;} 21779 case $ac_dest in 21780 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21781 # Strip MF so we end up with the name of the file. 21782 mf=`echo "$mf" | sed -e 's/:.*$//'` 21783 # Check whether this is an Automake generated Makefile or not. 21784 # We used to match only the files named `Makefile.in', but 21785 # some people rename them; so instead we look at the file content. 21786 # Grep'ing the first line is not enough: some people post-process 21787 # each Makefile.in and add a new line on top of each file to say so. 21788 # So let's grep whole file. 21789 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21790 dirpart=`(dirname "$mf") 2>/dev/null || 21791$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21792 X"$mf" : 'X\(//\)[^/]' \| \ 21793 X"$mf" : 'X\(//\)$' \| \ 21794 X"$mf" : 'X\(/\)' \| \ 21795 . : '\(.\)' 2>/dev/null || 21796echo X"$mf" | 21797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21798 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21799 /^X\(\/\/\)$/{ s//\1/; q; } 21800 /^X\(\/\).*/{ s//\1/; q; } 21801 s/.*/./; q'` 21802 else 21803 continue 21804 fi 21805 # Extract the definition of DEPDIR, am__include, and am__quote 21806 # from the Makefile without running `make'. 21807 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21808 test -z "$DEPDIR" && continue 21809 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21810 test -z "am__include" && continue 21811 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21812 # When using ansi2knr, U may be empty or an underscore; expand it 21813 U=`sed -n 's/^U = //p' < "$mf"` 21814 # Find all dependency output files, they are included files with 21815 # $(DEPDIR) in their names. We invoke sed twice because it is the 21816 # simplest approach to changing $(DEPDIR) to its actual value in the 21817 # expansion. 21818 for file in `sed -n " 21819 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21820 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21821 # Make sure the directory exists. 21822 test -f "$dirpart/$file" && continue 21823 fdir=`(dirname "$file") 2>/dev/null || 21824$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21825 X"$file" : 'X\(//\)[^/]' \| \ 21826 X"$file" : 'X\(//\)$' \| \ 21827 X"$file" : 'X\(/\)' \| \ 21828 . : '\(.\)' 2>/dev/null || 21829echo X"$file" | 21830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21831 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21832 /^X\(\/\/\)$/{ s//\1/; q; } 21833 /^X\(\/\).*/{ s//\1/; q; } 21834 s/.*/./; q'` 21835 { if $as_mkdir_p; then 21836 mkdir -p $dirpart/$fdir 21837 else 21838 as_dir=$dirpart/$fdir 21839 as_dirs= 21840 while test ! -d "$as_dir"; do 21841 as_dirs="$as_dir $as_dirs" 21842 as_dir=`(dirname "$as_dir") 2>/dev/null || 21843$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21844 X"$as_dir" : 'X\(//\)[^/]' \| \ 21845 X"$as_dir" : 'X\(//\)$' \| \ 21846 X"$as_dir" : 'X\(/\)' \| \ 21847 . : '\(.\)' 2>/dev/null || 21848echo X"$as_dir" | 21849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21850 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21851 /^X\(\/\/\)$/{ s//\1/; q; } 21852 /^X\(\/\).*/{ s//\1/; q; } 21853 s/.*/./; q'` 21854 done 21855 test ! -n "$as_dirs" || mkdir $as_dirs 21856 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21857echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21858 { (exit 1); exit 1; }; }; } 21859 21860 # echo "creating $dirpart/$file" 21861 echo '# dummy' > "$dirpart/$file" 21862 done 21863done 21864 ;; 21865 esac 21866done 21867_ACEOF 21868 21869cat >>$CONFIG_STATUS <<\_ACEOF 21870 21871{ (exit 0); exit 0; } 21872_ACEOF 21873chmod +x $CONFIG_STATUS 21874ac_clean_files=$ac_clean_files_save 21875 21876 21877# configure is writing to config.log, and then calls config.status. 21878# config.status does its own redirection, appending to config.log. 21879# Unfortunately, on DOS this fails, as config.log is still kept open 21880# by configure, so config.status won't be able to write to it; its 21881# output is simply discarded. So we exec the FD to /dev/null, 21882# effectively closing config.log, so it can be properly (re)opened and 21883# appended to by config.status. When coming back to configure, we 21884# need to make the FD available again. 21885if test "$no_create" != yes; then 21886 ac_cs_success=: 21887 ac_config_status_args= 21888 test "$silent" = yes && 21889 ac_config_status_args="$ac_config_status_args --quiet" 21890 exec 5>/dev/null 21891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21892 exec 5>>config.log 21893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21894 # would make configure fail if this is the last instruction. 21895 $ac_cs_success || { (exit 1); exit 1; } 21896fi 21897 21898