1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for libusb 0.1.12. 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. 281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 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='libusb' 423PACKAGE_TARNAME='libusb' 424PACKAGE_VERSION='0.1.12' 425PACKAGE_STRING='libusb 0.1.12' 426PACKAGE_BUGREPORT='' 427 428ac_unique_file="usb.c" 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot LIBUSB_MAJOR_VERSION LIBUSB_MINOR_VERSION LIBUSB_MICRO_VERSION LIBUSB_VERSION LIBUSB_INTERFACE_AGE LIBUSB_BINARY_AGE LT_RELEASE LT_CURRENT LT_REVISION LT_AGE 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 DARWIN_API LINUX_API BSD_API LINUX_API_TRUE LINUX_API_FALSE BSD_API_TRUE BSD_API_FALSE DARWIN_API_TRUE DARWIN_API_FALSE OSLIBS BIGENDIAN PKG_CONFIG pkgconfigdir JADE LIBUSB_HAVE_DOT DOXYGEN DOXYGEN_PROJECT_NAME DOXYGEN_PROJECT_NUMBER LIBUSB_HAS_DOXYGEN BUILD_DOCS_TRUE BUILD_DOCS_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 libusb 0.1.12 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 case $ac_init_help in 1021 short | recursive ) echo "Configuration of libusb 0.1.12:";; 1022 esac 1023 cat <<\_ACEOF 1024 1025Optional Features: 1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1028 --enable-shared[=PKGS] 1029 build shared libraries [default=yes] 1030 --enable-static[=PKGS] 1031 build static libraries [default=yes] 1032 --enable-fast-install[=PKGS] 1033 optimize for fast installation [default=yes] 1034 --disable-dependency-tracking speeds up one-time build 1035 --enable-dependency-tracking do not reject slow dependency extractors 1036 --disable-libtool-lock avoid locking (might break parallel builds) 1037 --enable-debug=no/minimum/yes turn on debugging default=$debug_default 1038 --disable-build-docs turn off building documentation 1039 1040Optional Packages: 1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1044 --with-pic try to use only PIC/non-PIC objects [default=use 1045 both] 1046 --with-tags[=TAGS] 1047 include additional configurations [automatic] 1048 --without-pkgconfig don"t use pkg-config 1049 1050Some influential environment variables: 1051 CC C compiler command 1052 CFLAGS C compiler flags 1053 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1054 nonstandard directory <lib dir> 1055 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1056 headers in a nonstandard directory <include dir> 1057 CPP C preprocessor 1058 CXX C++ compiler command 1059 CXXFLAGS C++ compiler flags 1060 CXXCPP C++ preprocessor 1061 F77 Fortran 77 compiler command 1062 FFLAGS Fortran 77 compiler flags 1063 1064Use these variables to override the choices made by `configure' or to help 1065it to find libraries and programs with nonstandard names/locations. 1066 1067_ACEOF 1068fi 1069 1070if test "$ac_init_help" = "recursive"; then 1071 # If there are subdirs, report their specific --help. 1072 ac_popdir=`pwd` 1073 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1074 test -d $ac_dir || continue 1075 ac_builddir=. 1076 1077if test "$ac_dir" != .; then 1078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1079 # A "../" for each directory in $ac_dir_suffix. 1080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1081else 1082 ac_dir_suffix= ac_top_builddir= 1083fi 1084 1085case $srcdir in 1086 .) # No --srcdir option. We are building in place. 1087 ac_srcdir=. 1088 if test -z "$ac_top_builddir"; then 1089 ac_top_srcdir=. 1090 else 1091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1092 fi ;; 1093 [\\/]* | ?:[\\/]* ) # Absolute path. 1094 ac_srcdir=$srcdir$ac_dir_suffix; 1095 ac_top_srcdir=$srcdir ;; 1096 *) # Relative path. 1097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1098 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1099esac 1100 1101# Do not use `cd foo && pwd` to compute absolute paths, because 1102# the directories may not exist. 1103case `pwd` in 1104.) ac_abs_builddir="$ac_dir";; 1105*) 1106 case "$ac_dir" in 1107 .) ac_abs_builddir=`pwd`;; 1108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1109 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1110 esac;; 1111esac 1112case $ac_abs_builddir in 1113.) ac_abs_top_builddir=${ac_top_builddir}.;; 1114*) 1115 case ${ac_top_builddir}. in 1116 .) ac_abs_top_builddir=$ac_abs_builddir;; 1117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1119 esac;; 1120esac 1121case $ac_abs_builddir in 1122.) ac_abs_srcdir=$ac_srcdir;; 1123*) 1124 case $ac_srcdir in 1125 .) ac_abs_srcdir=$ac_abs_builddir;; 1126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1128 esac;; 1129esac 1130case $ac_abs_builddir in 1131.) ac_abs_top_srcdir=$ac_top_srcdir;; 1132*) 1133 case $ac_top_srcdir in 1134 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1137 esac;; 1138esac 1139 1140 cd $ac_dir 1141 # Check for guested configure; otherwise get Cygnus style configure. 1142 if test -f $ac_srcdir/configure.gnu; then 1143 echo 1144 $SHELL $ac_srcdir/configure.gnu --help=recursive 1145 elif test -f $ac_srcdir/configure; then 1146 echo 1147 $SHELL $ac_srcdir/configure --help=recursive 1148 elif test -f $ac_srcdir/configure.ac || 1149 test -f $ac_srcdir/configure.in; then 1150 echo 1151 $ac_configure --help 1152 else 1153 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1154 fi 1155 cd $ac_popdir 1156 done 1157fi 1158 1159test -n "$ac_init_help" && exit 0 1160if $ac_init_version; then 1161 cat <<\_ACEOF 1162libusb configure 0.1.12 1163generated by GNU Autoconf 2.59 1164 1165Copyright (C) 2003 Free Software Foundation, Inc. 1166This configure script is free software; the Free Software Foundation 1167gives unlimited permission to copy, distribute and modify it. 1168_ACEOF 1169 exit 0 1170fi 1171exec 5>config.log 1172cat >&5 <<_ACEOF 1173This file contains any messages produced by compilers while 1174running configure, to aid debugging if configure makes a mistake. 1175 1176It was created by libusb $as_me 0.1.12, which was 1177generated by GNU Autoconf 2.59. Invocation command line was 1178 1179 $ $0 $@ 1180 1181_ACEOF 1182{ 1183cat <<_ASUNAME 1184## --------- ## 1185## Platform. ## 1186## --------- ## 1187 1188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1189uname -m = `(uname -m) 2>/dev/null || echo unknown` 1190uname -r = `(uname -r) 2>/dev/null || echo unknown` 1191uname -s = `(uname -s) 2>/dev/null || echo unknown` 1192uname -v = `(uname -v) 2>/dev/null || echo unknown` 1193 1194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1195/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1196 1197/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1198/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1200hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1201/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1202/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1203/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1204 1205_ASUNAME 1206 1207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1208for as_dir in $PATH 1209do 1210 IFS=$as_save_IFS 1211 test -z "$as_dir" && as_dir=. 1212 echo "PATH: $as_dir" 1213done 1214 1215} >&5 1216 1217cat >&5 <<_ACEOF 1218 1219 1220## ----------- ## 1221## Core tests. ## 1222## ----------- ## 1223 1224_ACEOF 1225 1226 1227# Keep a trace of the command line. 1228# Strip out --no-create and --no-recursion so they do not pile up. 1229# Strip out --silent because we don't want to record it for future runs. 1230# Also quote any args containing shell meta-characters. 1231# Make two passes to allow for proper duplicate-argument suppression. 1232ac_configure_args= 1233ac_configure_args0= 1234ac_configure_args1= 1235ac_sep= 1236ac_must_keep_next=false 1237for ac_pass in 1 2 1238do 1239 for ac_arg 1240 do 1241 case $ac_arg in 1242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1244 | -silent | --silent | --silen | --sile | --sil) 1245 continue ;; 1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1248 esac 1249 case $ac_pass in 1250 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1251 2) 1252 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1253 if test $ac_must_keep_next = true; then 1254 ac_must_keep_next=false # Got value, back to normal. 1255 else 1256 case $ac_arg in 1257 *=* | --config-cache | -C | -disable-* | --disable-* \ 1258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1260 | -with-* | --with-* | -without-* | --without-* | --x) 1261 case "$ac_configure_args0 " in 1262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1263 esac 1264 ;; 1265 -* ) ac_must_keep_next=true ;; 1266 esac 1267 fi 1268 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1269 # Get rid of the leading space. 1270 ac_sep=" " 1271 ;; 1272 esac 1273 done 1274done 1275$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1276$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1277 1278# When interrupted or exit'd, cleanup temporary files, and complete 1279# config.log. We remove comments because anyway the quotes in there 1280# would cause problems or look ugly. 1281# WARNING: Be sure not to use single quotes in there, as some shells, 1282# such as our DU 5.0 friend, will then `close' the trap. 1283trap 'exit_status=$? 1284 # Save into config.log some information that might help in debugging. 1285 { 1286 echo 1287 1288 cat <<\_ASBOX 1289## ---------------- ## 1290## Cache variables. ## 1291## ---------------- ## 1292_ASBOX 1293 echo 1294 # The following way of writing the cache mishandles newlines in values, 1295{ 1296 (set) 2>&1 | 1297 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1298 *ac_space=\ *) 1299 sed -n \ 1300 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1302 ;; 1303 *) 1304 sed -n \ 1305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1306 ;; 1307 esac; 1308} 1309 echo 1310 1311 cat <<\_ASBOX 1312## ----------------- ## 1313## Output variables. ## 1314## ----------------- ## 1315_ASBOX 1316 echo 1317 for ac_var in $ac_subst_vars 1318 do 1319 eval ac_val=$`echo $ac_var` 1320 echo "$ac_var='"'"'$ac_val'"'"'" 1321 done | sort 1322 echo 1323 1324 if test -n "$ac_subst_files"; then 1325 cat <<\_ASBOX 1326## ------------- ## 1327## Output files. ## 1328## ------------- ## 1329_ASBOX 1330 echo 1331 for ac_var in $ac_subst_files 1332 do 1333 eval ac_val=$`echo $ac_var` 1334 echo "$ac_var='"'"'$ac_val'"'"'" 1335 done | sort 1336 echo 1337 fi 1338 1339 if test -s confdefs.h; then 1340 cat <<\_ASBOX 1341## ----------- ## 1342## confdefs.h. ## 1343## ----------- ## 1344_ASBOX 1345 echo 1346 sed "/^$/d" confdefs.h | sort 1347 echo 1348 fi 1349 test "$ac_signal" != 0 && 1350 echo "$as_me: caught signal $ac_signal" 1351 echo "$as_me: exit $exit_status" 1352 } >&5 1353 rm -f core *.core && 1354 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1355 exit $exit_status 1356 ' 0 1357for ac_signal in 1 2 13 15; do 1358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1359done 1360ac_signal=0 1361 1362# confdefs.h avoids OS command line length limits that DEFS can exceed. 1363rm -rf conftest* confdefs.h 1364# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1365echo >confdefs.h 1366 1367# Predefined preprocessor variables. 1368 1369cat >>confdefs.h <<_ACEOF 1370#define PACKAGE_NAME "$PACKAGE_NAME" 1371_ACEOF 1372 1373 1374cat >>confdefs.h <<_ACEOF 1375#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1376_ACEOF 1377 1378 1379cat >>confdefs.h <<_ACEOF 1380#define PACKAGE_VERSION "$PACKAGE_VERSION" 1381_ACEOF 1382 1383 1384cat >>confdefs.h <<_ACEOF 1385#define PACKAGE_STRING "$PACKAGE_STRING" 1386_ACEOF 1387 1388 1389cat >>confdefs.h <<_ACEOF 1390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1391_ACEOF 1392 1393 1394# Let the site file select an alternate cache file if it wants to. 1395# Prefer explicitly selected file to automatically selected ones. 1396if test -z "$CONFIG_SITE"; then 1397 if test "x$prefix" != xNONE; then 1398 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1399 else 1400 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1401 fi 1402fi 1403for ac_site_file in $CONFIG_SITE; do 1404 if test -r "$ac_site_file"; then 1405 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1406echo "$as_me: loading site script $ac_site_file" >&6;} 1407 sed 's/^/| /' "$ac_site_file" >&5 1408 . "$ac_site_file" 1409 fi 1410done 1411 1412if test -r "$cache_file"; then 1413 # Some versions of bash will fail to source /dev/null (special 1414 # files actually), so we avoid doing that. 1415 if test -f "$cache_file"; then 1416 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1417echo "$as_me: loading cache $cache_file" >&6;} 1418 case $cache_file in 1419 [\\/]* | ?:[\\/]* ) . $cache_file;; 1420 *) . ./$cache_file;; 1421 esac 1422 fi 1423else 1424 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1425echo "$as_me: creating cache $cache_file" >&6;} 1426 >$cache_file 1427fi 1428 1429# Check that the precious variables saved in the cache have kept the same 1430# value. 1431ac_cache_corrupted=false 1432for ac_var in `(set) 2>&1 | 1433 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1434 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1435 eval ac_new_set=\$ac_env_${ac_var}_set 1436 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1437 eval ac_new_val="\$ac_env_${ac_var}_value" 1438 case $ac_old_set,$ac_new_set in 1439 set,) 1440 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1441echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1442 ac_cache_corrupted=: ;; 1443 ,set) 1444 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1445echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1446 ac_cache_corrupted=: ;; 1447 ,);; 1448 *) 1449 if test "x$ac_old_val" != "x$ac_new_val"; then 1450 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1451echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1452 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1453echo "$as_me: former value: $ac_old_val" >&2;} 1454 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1455echo "$as_me: current value: $ac_new_val" >&2;} 1456 ac_cache_corrupted=: 1457 fi;; 1458 esac 1459 # Pass precious variables to config.status. 1460 if test "$ac_new_set" = set; then 1461 case $ac_new_val in 1462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1463 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1464 *) ac_arg=$ac_var=$ac_new_val ;; 1465 esac 1466 case " $ac_configure_args " in 1467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1468 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1469 esac 1470 fi 1471done 1472if $ac_cache_corrupted; then 1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1474echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1476echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1477 { (exit 1); exit 1; }; } 1478fi 1479 1480ac_ext=c 1481ac_cpp='$CPP $CPPFLAGS' 1482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1484ac_compiler_gnu=$ac_cv_c_compiler_gnu 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517# Save this value here, since automake will set cflags later 1518cflags_set=${CFLAGS+set} 1519 1520am__api_version="1.8" 1521ac_aux_dir= 1522for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1523 if test -f $ac_dir/install-sh; then 1524 ac_aux_dir=$ac_dir 1525 ac_install_sh="$ac_aux_dir/install-sh -c" 1526 break 1527 elif test -f $ac_dir/install.sh; then 1528 ac_aux_dir=$ac_dir 1529 ac_install_sh="$ac_aux_dir/install.sh -c" 1530 break 1531 elif test -f $ac_dir/shtool; then 1532 ac_aux_dir=$ac_dir 1533 ac_install_sh="$ac_aux_dir/shtool install -c" 1534 break 1535 fi 1536done 1537if test -z "$ac_aux_dir"; then 1538 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1539echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1540 { (exit 1); exit 1; }; } 1541fi 1542ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1543ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1544ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1545 1546# Find a good install program. We prefer a C program (faster), 1547# so one script is as good as another. But avoid the broken or 1548# incompatible versions: 1549# SysV /etc/install, /usr/sbin/install 1550# SunOS /usr/etc/install 1551# IRIX /sbin/install 1552# AIX /bin/install 1553# AmigaOS /C/install, which installs bootblocks on floppy discs 1554# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1555# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1556# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1557# OS/2's system install, which has a completely different semantic 1558# ./install, which can be erroneously created by make from ./install.sh. 1559echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1560echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1561if test -z "$INSTALL"; then 1562if test "${ac_cv_path_install+set}" = set; then 1563 echo $ECHO_N "(cached) $ECHO_C" >&6 1564else 1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1566for as_dir in $PATH 1567do 1568 IFS=$as_save_IFS 1569 test -z "$as_dir" && as_dir=. 1570 # Account for people who put trailing slashes in PATH elements. 1571case $as_dir/ in 1572 ./ | .// | /cC/* | \ 1573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1574 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1575 /usr/ucb/* ) ;; 1576 *) 1577 # OSF1 and SCO ODT 3.0 have their own names for install. 1578 # Don't use installbsd from OSF since it installs stuff as root 1579 # by default. 1580 for ac_prog in ginstall scoinst install; do 1581 for ac_exec_ext in '' $ac_executable_extensions; do 1582 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1583 if test $ac_prog = install && 1584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1585 # AIX install. It has an incompatible calling convention. 1586 : 1587 elif test $ac_prog = install && 1588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1589 # program-specific install script used by HP pwplus--don't use. 1590 : 1591 else 1592 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1593 break 3 1594 fi 1595 fi 1596 done 1597 done 1598 ;; 1599esac 1600done 1601 1602 1603fi 1604 if test "${ac_cv_path_install+set}" = set; then 1605 INSTALL=$ac_cv_path_install 1606 else 1607 # As a last resort, use the slow shell script. We don't cache a 1608 # path for INSTALL within a source directory, because that will 1609 # break other packages using the cache if that directory is 1610 # removed, or if the path is relative. 1611 INSTALL=$ac_install_sh 1612 fi 1613fi 1614echo "$as_me:$LINENO: result: $INSTALL" >&5 1615echo "${ECHO_T}$INSTALL" >&6 1616 1617# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1618# It thinks the first close brace ends the variable substitution. 1619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1620 1621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1622 1623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1624 1625echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1626echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1627# Just in case 1628sleep 1 1629echo timestamp > conftest.file 1630# Do `set' in a subshell so we don't clobber the current shell's 1631# arguments. Must try -L first in case configure is actually a 1632# symlink; some systems play weird games with the mod time of symlinks 1633# (eg FreeBSD returns the mod time of the symlink's containing 1634# directory). 1635if ( 1636 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1637 if test "$*" = "X"; then 1638 # -L didn't work. 1639 set X `ls -t $srcdir/configure conftest.file` 1640 fi 1641 rm -f conftest.file 1642 if test "$*" != "X $srcdir/configure conftest.file" \ 1643 && test "$*" != "X conftest.file $srcdir/configure"; then 1644 1645 # If neither matched, then we have a broken ls. This can happen 1646 # if, for instance, CONFIG_SHELL is bash and it inherits a 1647 # broken ls alias from the environment. This has actually 1648 # happened. Such a system could not be considered "sane". 1649 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1650alias in your environment" >&5 1651echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1652alias in your environment" >&2;} 1653 { (exit 1); exit 1; }; } 1654 fi 1655 1656 test "$2" = conftest.file 1657 ) 1658then 1659 # Ok. 1660 : 1661else 1662 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1663Check your system clock" >&5 1664echo "$as_me: error: newly created file is older than distributed files! 1665Check your system clock" >&2;} 1666 { (exit 1); exit 1; }; } 1667fi 1668echo "$as_me:$LINENO: result: yes" >&5 1669echo "${ECHO_T}yes" >&6 1670test "$program_prefix" != NONE && 1671 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1672# Use a double $ so make ignores it. 1673test "$program_suffix" != NONE && 1674 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1675# Double any \ or $. echo might interpret backslashes. 1676# By default was `s,x,x', remove it if useless. 1677cat <<\_ACEOF >conftest.sed 1678s/[\\$]/&&/g;s/;s,x,x,$// 1679_ACEOF 1680program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1681rm conftest.sed 1682 1683# expand $ac_aux_dir to an absolute path 1684am_aux_dir=`cd $ac_aux_dir && pwd` 1685 1686test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1687# Use eval to expand $SHELL 1688if eval "$MISSING --run true"; then 1689 am_missing_run="$MISSING --run " 1690else 1691 am_missing_run= 1692 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1693echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1694fi 1695 1696if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1697 # Keeping the `.' argument allows $(mkdir_p) to be used without 1698 # argument. Indeed, we sometimes output rules like 1699 # $(mkdir_p) $(somedir) 1700 # where $(somedir) is conditionally defined. 1701 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 1702 # expensive solution, as it forces Make to start a sub-shell.) 1703 mkdir_p='mkdir -p -- .' 1704else 1705 # On NextStep and OpenStep, the `mkdir' command does not 1706 # recognize any option. It will interpret all options as 1707 # directories to create, and then abort because `.' already 1708 # exists. 1709 for d in ./-p ./--version; 1710 do 1711 test -d $d && rmdir $d 1712 done 1713 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1714 if test -f "$ac_aux_dir/mkinstalldirs"; then 1715 mkdir_p='$(mkinstalldirs)' 1716 else 1717 mkdir_p='$(install_sh) -d' 1718 fi 1719fi 1720 1721for ac_prog in gawk mawk nawk awk 1722do 1723 # Extract the first word of "$ac_prog", so it can be a program name with args. 1724set dummy $ac_prog; ac_word=$2 1725echo "$as_me:$LINENO: checking for $ac_word" >&5 1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1727if test "${ac_cv_prog_AWK+set}" = set; then 1728 echo $ECHO_N "(cached) $ECHO_C" >&6 1729else 1730 if test -n "$AWK"; then 1731 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1732else 1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1734for as_dir in $PATH 1735do 1736 IFS=$as_save_IFS 1737 test -z "$as_dir" && as_dir=. 1738 for ac_exec_ext in '' $ac_executable_extensions; do 1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1740 ac_cv_prog_AWK="$ac_prog" 1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1742 break 2 1743 fi 1744done 1745done 1746 1747fi 1748fi 1749AWK=$ac_cv_prog_AWK 1750if test -n "$AWK"; then 1751 echo "$as_me:$LINENO: result: $AWK" >&5 1752echo "${ECHO_T}$AWK" >&6 1753else 1754 echo "$as_me:$LINENO: result: no" >&5 1755echo "${ECHO_T}no" >&6 1756fi 1757 1758 test -n "$AWK" && break 1759done 1760 1761echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1762echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1763set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1764if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1765 echo $ECHO_N "(cached) $ECHO_C" >&6 1766else 1767 cat >conftest.make <<\_ACEOF 1768all: 1769 @echo 'ac_maketemp="$(MAKE)"' 1770_ACEOF 1771# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1772eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1773if test -n "$ac_maketemp"; then 1774 eval ac_cv_prog_make_${ac_make}_set=yes 1775else 1776 eval ac_cv_prog_make_${ac_make}_set=no 1777fi 1778rm -f conftest.make 1779fi 1780if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1781 echo "$as_me:$LINENO: result: yes" >&5 1782echo "${ECHO_T}yes" >&6 1783 SET_MAKE= 1784else 1785 echo "$as_me:$LINENO: result: no" >&5 1786echo "${ECHO_T}no" >&6 1787 SET_MAKE="MAKE=${MAKE-make}" 1788fi 1789 1790rm -rf .tst 2>/dev/null 1791mkdir .tst 2>/dev/null 1792if test -d .tst; then 1793 am__leading_dot=. 1794else 1795 am__leading_dot=_ 1796fi 1797rmdir .tst 2>/dev/null 1798 1799# test to see if srcdir already configured 1800if test "`cd $srcdir && pwd`" != "`pwd`" && 1801 test -f $srcdir/config.status; then 1802 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1803echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1804 { (exit 1); exit 1; }; } 1805fi 1806 1807# test whether we have cygpath 1808if test -z "$CYGPATH_W"; then 1809 if (cygpath --version) >/dev/null 2>/dev/null; then 1810 CYGPATH_W='cygpath -w' 1811 else 1812 CYGPATH_W=echo 1813 fi 1814fi 1815 1816 1817# Define the identity of the package. 1818 PACKAGE='libusb' 1819 VERSION='0.1.12' 1820 1821 1822cat >>confdefs.h <<_ACEOF 1823#define PACKAGE "$PACKAGE" 1824_ACEOF 1825 1826 1827cat >>confdefs.h <<_ACEOF 1828#define VERSION "$VERSION" 1829_ACEOF 1830 1831# Some tools Automake needs. 1832 1833ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1834 1835 1836AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1837 1838 1839AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1840 1841 1842AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1843 1844 1845MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1846 1847 1848AMTAR=${AMTAR-"${am_missing_run}tar"} 1849 1850install_sh=${install_sh-"$am_aux_dir/install-sh"} 1851 1852# Installed binaries are usually stripped using `strip' when the user 1853# run `make install-strip'. However `strip' might not be the right 1854# tool to use in cross-compilation environments, therefore Automake 1855# will honor the `STRIP' environment variable to overrule this program. 1856if test "$cross_compiling" != no; then 1857 if test -n "$ac_tool_prefix"; then 1858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1859set dummy ${ac_tool_prefix}strip; ac_word=$2 1860echo "$as_me:$LINENO: checking for $ac_word" >&5 1861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1862if test "${ac_cv_prog_STRIP+set}" = set; then 1863 echo $ECHO_N "(cached) $ECHO_C" >&6 1864else 1865 if test -n "$STRIP"; then 1866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1867else 1868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1869for as_dir in $PATH 1870do 1871 IFS=$as_save_IFS 1872 test -z "$as_dir" && as_dir=. 1873 for ac_exec_ext in '' $ac_executable_extensions; do 1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1875 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1877 break 2 1878 fi 1879done 1880done 1881 1882fi 1883fi 1884STRIP=$ac_cv_prog_STRIP 1885if test -n "$STRIP"; then 1886 echo "$as_me:$LINENO: result: $STRIP" >&5 1887echo "${ECHO_T}$STRIP" >&6 1888else 1889 echo "$as_me:$LINENO: result: no" >&5 1890echo "${ECHO_T}no" >&6 1891fi 1892 1893fi 1894if test -z "$ac_cv_prog_STRIP"; then 1895 ac_ct_STRIP=$STRIP 1896 # Extract the first word of "strip", so it can be a program name with args. 1897set dummy strip; ac_word=$2 1898echo "$as_me:$LINENO: checking for $ac_word" >&5 1899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1900if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1901 echo $ECHO_N "(cached) $ECHO_C" >&6 1902else 1903 if test -n "$ac_ct_STRIP"; then 1904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1905else 1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1907for as_dir in $PATH 1908do 1909 IFS=$as_save_IFS 1910 test -z "$as_dir" && as_dir=. 1911 for ac_exec_ext in '' $ac_executable_extensions; do 1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1913 ac_cv_prog_ac_ct_STRIP="strip" 1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1915 break 2 1916 fi 1917done 1918done 1919 1920 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1921fi 1922fi 1923ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1924if test -n "$ac_ct_STRIP"; then 1925 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1926echo "${ECHO_T}$ac_ct_STRIP" >&6 1927else 1928 echo "$as_me:$LINENO: result: no" >&5 1929echo "${ECHO_T}no" >&6 1930fi 1931 1932 STRIP=$ac_ct_STRIP 1933else 1934 STRIP="$ac_cv_prog_STRIP" 1935fi 1936 1937fi 1938INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1939 1940# We need awk for the "check" target. The system "awk" is bad on 1941# some platforms. 1942 1943 1944 1945 1946LIBUSB_VERSION=$VERSION 1947 1948# 1949# The following version number definitions apply to libusb 1950# as a whole, so if changes occoured in any of them, they are all 1951# treated with the same interface and binary age. 1952# 1953# Making releases: 1954# LIBUSB_MICRO_VERSION += 1; 1955# LIBUSB_INTERFACE_AGE += 1; 1956# LIBUSB_BINARY_AGE += 1; 1957# if any functions have been added, set LIBUSB_INTERFACE_AGE to 0. 1958# if backwards compatibility has been broken, 1959# set LIBUSB_BINARY_AGE _and_ LIBUSB_INTERFACE_AGE to 0. 1960# 1961LIBUSB_MAJOR_VERSION=0 1962LIBUSB_MINOR_VERSION=1 1963LIBUSB_MICRO_VERSION=12 1964LIBUSB_INTERFACE_AGE=4 1965LIBUSB_BINARY_AGE=8 1966 1967 1968 1969 1970 1971 1972 1973 1974cat >>confdefs.h <<_ACEOF 1975#define LIBUSB_MAJOR_VERSION $LIBUSB_MAJOR_VERSION 1976_ACEOF 1977 1978cat >>confdefs.h <<_ACEOF 1979#define LIBUSB_MINOR_VERSION $LIBUSB_MINOR_VERSION 1980_ACEOF 1981 1982cat >>confdefs.h <<_ACEOF 1983#define LIBUSB_MICRO_VERSION $LIBUSB_MICRO_VERSION 1984_ACEOF 1985 1986cat >>confdefs.h <<_ACEOF 1987#define LIBUSB_INTERFACE_AGE $LIBUSB_INTERFACE_AGE 1988_ACEOF 1989 1990cat >>confdefs.h <<_ACEOF 1991#define LIBUSB_BINARY_AGE $LIBUSB_BINARY_AGE 1992_ACEOF 1993 1994 1995# libtool versioning 1996# JR: Add support for MICRO_VERSION to be alpha-numeric. This will make 1997# lt_current use the numeric part of MICRO_VERSION 1998 1999LIBUSB_MICRO_VERSION_NUM=`echo $LIBUSB_MICRO_VERSION | sed 's/[a-zA-Z]//g'` 2000LT_RELEASE=$LIBUSB_MAJOR_VERSION.$LIBUSB_MINOR_VERSION 2001LT_CURRENT=`expr $LIBUSB_MICRO_VERSION_NUM - $LIBUSB_INTERFACE_AGE` 2002LT_REVISION=$LIBUSB_INTERFACE_AGE 2003LT_AGE=`expr $LIBUSB_BINARY_AGE - $LIBUSB_INTERFACE_AGE` 2004 2005 2006 2007 2008 2009 ac_config_headers="$ac_config_headers config.h" 2010 2011 2012# Check whether --enable-shared or --disable-shared was given. 2013if test "${enable_shared+set}" = set; then 2014 enableval="$enable_shared" 2015 p=${PACKAGE-default} 2016 case $enableval in 2017 yes) enable_shared=yes ;; 2018 no) enable_shared=no ;; 2019 *) 2020 enable_shared=no 2021 # Look at the argument we got. We use all the common list separators. 2022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2023 for pkg in $enableval; do 2024 IFS="$lt_save_ifs" 2025 if test "X$pkg" = "X$p"; then 2026 enable_shared=yes 2027 fi 2028 done 2029 IFS="$lt_save_ifs" 2030 ;; 2031 esac 2032else 2033 enable_shared=yes 2034fi; 2035 2036# Check whether --enable-static or --disable-static was given. 2037if test "${enable_static+set}" = set; then 2038 enableval="$enable_static" 2039 p=${PACKAGE-default} 2040 case $enableval in 2041 yes) enable_static=yes ;; 2042 no) enable_static=no ;; 2043 *) 2044 enable_static=no 2045 # Look at the argument we got. We use all the common list separators. 2046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2047 for pkg in $enableval; do 2048 IFS="$lt_save_ifs" 2049 if test "X$pkg" = "X$p"; then 2050 enable_static=yes 2051 fi 2052 done 2053 IFS="$lt_save_ifs" 2054 ;; 2055 esac 2056else 2057 enable_static=yes 2058fi; 2059 2060# Check whether --enable-fast-install or --disable-fast-install was given. 2061if test "${enable_fast_install+set}" = set; then 2062 enableval="$enable_fast_install" 2063 p=${PACKAGE-default} 2064 case $enableval in 2065 yes) enable_fast_install=yes ;; 2066 no) enable_fast_install=no ;; 2067 *) 2068 enable_fast_install=no 2069 # Look at the argument we got. We use all the common list separators. 2070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2071 for pkg in $enableval; do 2072 IFS="$lt_save_ifs" 2073 if test "X$pkg" = "X$p"; then 2074 enable_fast_install=yes 2075 fi 2076 done 2077 IFS="$lt_save_ifs" 2078 ;; 2079 esac 2080else 2081 enable_fast_install=yes 2082fi; 2083 2084# Make sure we can run config.sub. 2085$ac_config_sub sun4 >/dev/null 2>&1 || 2086 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2087echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2088 { (exit 1); exit 1; }; } 2089 2090echo "$as_me:$LINENO: checking build system type" >&5 2091echo $ECHO_N "checking build system type... $ECHO_C" >&6 2092if test "${ac_cv_build+set}" = set; then 2093 echo $ECHO_N "(cached) $ECHO_C" >&6 2094else 2095 ac_cv_build_alias=$build_alias 2096test -z "$ac_cv_build_alias" && 2097 ac_cv_build_alias=`$ac_config_guess` 2098test -z "$ac_cv_build_alias" && 2099 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2100echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2101 { (exit 1); exit 1; }; } 2102ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2103 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2104echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2105 { (exit 1); exit 1; }; } 2106 2107fi 2108echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2109echo "${ECHO_T}$ac_cv_build" >&6 2110build=$ac_cv_build 2111build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2112build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2113build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2114 2115 2116echo "$as_me:$LINENO: checking host system type" >&5 2117echo $ECHO_N "checking host system type... $ECHO_C" >&6 2118if test "${ac_cv_host+set}" = set; then 2119 echo $ECHO_N "(cached) $ECHO_C" >&6 2120else 2121 ac_cv_host_alias=$host_alias 2122test -z "$ac_cv_host_alias" && 2123 ac_cv_host_alias=$ac_cv_build_alias 2124ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2125 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2126echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2127 { (exit 1); exit 1; }; } 2128 2129fi 2130echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2131echo "${ECHO_T}$ac_cv_host" >&6 2132host=$ac_cv_host 2133host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2134host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2135host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2136 2137 2138DEPDIR="${am__leading_dot}deps" 2139 2140 ac_config_commands="$ac_config_commands depfiles" 2141 2142 2143am_make=${MAKE-make} 2144cat > confinc << 'END' 2145am__doit: 2146 @echo done 2147.PHONY: am__doit 2148END 2149# If we don't find an include directive, just comment out the code. 2150echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2151echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2152am__include="#" 2153am__quote= 2154_am_result=none 2155# First try GNU make style include. 2156echo "include confinc" > confmf 2157# We grep out `Entering directory' and `Leaving directory' 2158# messages which can occur if `w' ends up in MAKEFLAGS. 2159# In particular we don't look at `^make:' because GNU make might 2160# be invoked under some other name (usually "gmake"), in which 2161# case it prints its new name instead of `make'. 2162if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2163 am__include=include 2164 am__quote= 2165 _am_result=GNU 2166fi 2167# Now try BSD make style include. 2168if test "$am__include" = "#"; then 2169 echo '.include "confinc"' > confmf 2170 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2171 am__include=.include 2172 am__quote="\"" 2173 _am_result=BSD 2174 fi 2175fi 2176 2177 2178echo "$as_me:$LINENO: result: $_am_result" >&5 2179echo "${ECHO_T}$_am_result" >&6 2180rm -f confinc confmf 2181 2182# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2183if test "${enable_dependency_tracking+set}" = set; then 2184 enableval="$enable_dependency_tracking" 2185 2186fi; 2187if test "x$enable_dependency_tracking" != xno; then 2188 am_depcomp="$ac_aux_dir/depcomp" 2189 AMDEPBACKSLASH='\' 2190fi 2191 2192 2193if test "x$enable_dependency_tracking" != xno; then 2194 AMDEP_TRUE= 2195 AMDEP_FALSE='#' 2196else 2197 AMDEP_TRUE='#' 2198 AMDEP_FALSE= 2199fi 2200 2201 2202 2203ac_ext=c 2204ac_cpp='$CPP $CPPFLAGS' 2205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2207ac_compiler_gnu=$ac_cv_c_compiler_gnu 2208if test -n "$ac_tool_prefix"; then 2209 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2210set dummy ${ac_tool_prefix}gcc; ac_word=$2 2211echo "$as_me:$LINENO: checking for $ac_word" >&5 2212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2213if test "${ac_cv_prog_CC+set}" = set; then 2214 echo $ECHO_N "(cached) $ECHO_C" >&6 2215else 2216 if test -n "$CC"; then 2217 ac_cv_prog_CC="$CC" # Let the user override the test. 2218else 2219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2220for as_dir in $PATH 2221do 2222 IFS=$as_save_IFS 2223 test -z "$as_dir" && as_dir=. 2224 for ac_exec_ext in '' $ac_executable_extensions; do 2225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2226 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2228 break 2 2229 fi 2230done 2231done 2232 2233fi 2234fi 2235CC=$ac_cv_prog_CC 2236if test -n "$CC"; then 2237 echo "$as_me:$LINENO: result: $CC" >&5 2238echo "${ECHO_T}$CC" >&6 2239else 2240 echo "$as_me:$LINENO: result: no" >&5 2241echo "${ECHO_T}no" >&6 2242fi 2243 2244fi 2245if test -z "$ac_cv_prog_CC"; then 2246 ac_ct_CC=$CC 2247 # Extract the first word of "gcc", so it can be a program name with args. 2248set dummy gcc; ac_word=$2 2249echo "$as_me:$LINENO: checking for $ac_word" >&5 2250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2251if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2252 echo $ECHO_N "(cached) $ECHO_C" >&6 2253else 2254 if test -n "$ac_ct_CC"; then 2255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2256else 2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2258for as_dir in $PATH 2259do 2260 IFS=$as_save_IFS 2261 test -z "$as_dir" && as_dir=. 2262 for ac_exec_ext in '' $ac_executable_extensions; do 2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2264 ac_cv_prog_ac_ct_CC="gcc" 2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2266 break 2 2267 fi 2268done 2269done 2270 2271fi 2272fi 2273ac_ct_CC=$ac_cv_prog_ac_ct_CC 2274if test -n "$ac_ct_CC"; then 2275 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2276echo "${ECHO_T}$ac_ct_CC" >&6 2277else 2278 echo "$as_me:$LINENO: result: no" >&5 2279echo "${ECHO_T}no" >&6 2280fi 2281 2282 CC=$ac_ct_CC 2283else 2284 CC="$ac_cv_prog_CC" 2285fi 2286 2287if test -z "$CC"; then 2288 if test -n "$ac_tool_prefix"; then 2289 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2290set dummy ${ac_tool_prefix}cc; ac_word=$2 2291echo "$as_me:$LINENO: checking for $ac_word" >&5 2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2293if test "${ac_cv_prog_CC+set}" = set; then 2294 echo $ECHO_N "(cached) $ECHO_C" >&6 2295else 2296 if test -n "$CC"; then 2297 ac_cv_prog_CC="$CC" # Let the user override the test. 2298else 2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 for ac_exec_ext in '' $ac_executable_extensions; do 2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2306 ac_cv_prog_CC="${ac_tool_prefix}cc" 2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2308 break 2 2309 fi 2310done 2311done 2312 2313fi 2314fi 2315CC=$ac_cv_prog_CC 2316if test -n "$CC"; then 2317 echo "$as_me:$LINENO: result: $CC" >&5 2318echo "${ECHO_T}$CC" >&6 2319else 2320 echo "$as_me:$LINENO: result: no" >&5 2321echo "${ECHO_T}no" >&6 2322fi 2323 2324fi 2325if test -z "$ac_cv_prog_CC"; then 2326 ac_ct_CC=$CC 2327 # Extract the first word of "cc", so it can be a program name with args. 2328set dummy cc; ac_word=$2 2329echo "$as_me:$LINENO: checking for $ac_word" >&5 2330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2331if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2332 echo $ECHO_N "(cached) $ECHO_C" >&6 2333else 2334 if test -n "$ac_ct_CC"; then 2335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2336else 2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2338for as_dir in $PATH 2339do 2340 IFS=$as_save_IFS 2341 test -z "$as_dir" && as_dir=. 2342 for ac_exec_ext in '' $ac_executable_extensions; do 2343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2344 ac_cv_prog_ac_ct_CC="cc" 2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2346 break 2 2347 fi 2348done 2349done 2350 2351fi 2352fi 2353ac_ct_CC=$ac_cv_prog_ac_ct_CC 2354if test -n "$ac_ct_CC"; then 2355 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2356echo "${ECHO_T}$ac_ct_CC" >&6 2357else 2358 echo "$as_me:$LINENO: result: no" >&5 2359echo "${ECHO_T}no" >&6 2360fi 2361 2362 CC=$ac_ct_CC 2363else 2364 CC="$ac_cv_prog_CC" 2365fi 2366 2367fi 2368if test -z "$CC"; then 2369 # Extract the first word of "cc", so it can be a program name with args. 2370set dummy cc; ac_word=$2 2371echo "$as_me:$LINENO: checking for $ac_word" >&5 2372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2373if test "${ac_cv_prog_CC+set}" = set; then 2374 echo $ECHO_N "(cached) $ECHO_C" >&6 2375else 2376 if test -n "$CC"; then 2377 ac_cv_prog_CC="$CC" # Let the user override the test. 2378else 2379 ac_prog_rejected=no 2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2381for as_dir in $PATH 2382do 2383 IFS=$as_save_IFS 2384 test -z "$as_dir" && as_dir=. 2385 for ac_exec_ext in '' $ac_executable_extensions; do 2386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2387 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2388 ac_prog_rejected=yes 2389 continue 2390 fi 2391 ac_cv_prog_CC="cc" 2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2393 break 2 2394 fi 2395done 2396done 2397 2398if test $ac_prog_rejected = yes; then 2399 # We found a bogon in the path, so make sure we never use it. 2400 set dummy $ac_cv_prog_CC 2401 shift 2402 if test $# != 0; then 2403 # We chose a different compiler from the bogus one. 2404 # However, it has the same basename, so the bogon will be chosen 2405 # first if we set CC to just the basename; use the full file name. 2406 shift 2407 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2408 fi 2409fi 2410fi 2411fi 2412CC=$ac_cv_prog_CC 2413if test -n "$CC"; then 2414 echo "$as_me:$LINENO: result: $CC" >&5 2415echo "${ECHO_T}$CC" >&6 2416else 2417 echo "$as_me:$LINENO: result: no" >&5 2418echo "${ECHO_T}no" >&6 2419fi 2420 2421fi 2422if test -z "$CC"; then 2423 if test -n "$ac_tool_prefix"; then 2424 for ac_prog in cl 2425 do 2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2427set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2428echo "$as_me:$LINENO: checking for $ac_word" >&5 2429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2430if test "${ac_cv_prog_CC+set}" = set; then 2431 echo $ECHO_N "(cached) $ECHO_C" >&6 2432else 2433 if test -n "$CC"; then 2434 ac_cv_prog_CC="$CC" # Let the user override the test. 2435else 2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2437for as_dir in $PATH 2438do 2439 IFS=$as_save_IFS 2440 test -z "$as_dir" && as_dir=. 2441 for ac_exec_ext in '' $ac_executable_extensions; do 2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2445 break 2 2446 fi 2447done 2448done 2449 2450fi 2451fi 2452CC=$ac_cv_prog_CC 2453if test -n "$CC"; then 2454 echo "$as_me:$LINENO: result: $CC" >&5 2455echo "${ECHO_T}$CC" >&6 2456else 2457 echo "$as_me:$LINENO: result: no" >&5 2458echo "${ECHO_T}no" >&6 2459fi 2460 2461 test -n "$CC" && break 2462 done 2463fi 2464if test -z "$CC"; then 2465 ac_ct_CC=$CC 2466 for ac_prog in cl 2467do 2468 # Extract the first word of "$ac_prog", so it can be a program name with args. 2469set dummy $ac_prog; ac_word=$2 2470echo "$as_me:$LINENO: checking for $ac_word" >&5 2471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2472if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2473 echo $ECHO_N "(cached) $ECHO_C" >&6 2474else 2475 if test -n "$ac_ct_CC"; then 2476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2477else 2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2479for as_dir in $PATH 2480do 2481 IFS=$as_save_IFS 2482 test -z "$as_dir" && as_dir=. 2483 for ac_exec_ext in '' $ac_executable_extensions; do 2484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2485 ac_cv_prog_ac_ct_CC="$ac_prog" 2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2487 break 2 2488 fi 2489done 2490done 2491 2492fi 2493fi 2494ac_ct_CC=$ac_cv_prog_ac_ct_CC 2495if test -n "$ac_ct_CC"; then 2496 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2497echo "${ECHO_T}$ac_ct_CC" >&6 2498else 2499 echo "$as_me:$LINENO: result: no" >&5 2500echo "${ECHO_T}no" >&6 2501fi 2502 2503 test -n "$ac_ct_CC" && break 2504done 2505 2506 CC=$ac_ct_CC 2507fi 2508 2509fi 2510 2511 2512test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2513See \`config.log' for more details." >&5 2514echo "$as_me: error: no acceptable C compiler found in \$PATH 2515See \`config.log' for more details." >&2;} 2516 { (exit 1); exit 1; }; } 2517 2518# Provide some information about the compiler. 2519echo "$as_me:$LINENO:" \ 2520 "checking for C compiler version" >&5 2521ac_compiler=`set X $ac_compile; echo $2` 2522{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2523 (eval $ac_compiler --version </dev/null >&5) 2>&5 2524 ac_status=$? 2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2526 (exit $ac_status); } 2527{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2528 (eval $ac_compiler -v </dev/null >&5) 2>&5 2529 ac_status=$? 2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2531 (exit $ac_status); } 2532{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2533 (eval $ac_compiler -V </dev/null >&5) 2>&5 2534 ac_status=$? 2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2536 (exit $ac_status); } 2537 2538cat >conftest.$ac_ext <<_ACEOF 2539/* confdefs.h. */ 2540_ACEOF 2541cat confdefs.h >>conftest.$ac_ext 2542cat >>conftest.$ac_ext <<_ACEOF 2543/* end confdefs.h. */ 2544 2545int 2546main () 2547{ 2548 2549 ; 2550 return 0; 2551} 2552_ACEOF 2553ac_clean_files_save=$ac_clean_files 2554ac_clean_files="$ac_clean_files a.out a.exe b.out" 2555# Try to create an executable without -o first, disregard a.out. 2556# It will help us diagnose broken compilers, and finding out an intuition 2557# of exeext. 2558echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2559echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2560ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2561if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2562 (eval $ac_link_default) 2>&5 2563 ac_status=$? 2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2565 (exit $ac_status); }; then 2566 # Find the output, starting from the most likely. This scheme is 2567# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2568# resort. 2569 2570# Be careful to initialize this variable, since it used to be cached. 2571# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2572ac_cv_exeext= 2573# b.out is created by i960 compilers. 2574for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2575do 2576 test -f "$ac_file" || continue 2577 case $ac_file in 2578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2579 ;; 2580 conftest.$ac_ext ) 2581 # This is the source file. 2582 ;; 2583 [ab].out ) 2584 # We found the default executable, but exeext='' is most 2585 # certainly right. 2586 break;; 2587 *.* ) 2588 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2589 # FIXME: I believe we export ac_cv_exeext for Libtool, 2590 # but it would be cool to find out if it's true. Does anybody 2591 # maintain Libtool? --akim. 2592 export ac_cv_exeext 2593 break;; 2594 * ) 2595 break;; 2596 esac 2597done 2598else 2599 echo "$as_me: failed program was:" >&5 2600sed 's/^/| /' conftest.$ac_ext >&5 2601 2602{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2603See \`config.log' for more details." >&5 2604echo "$as_me: error: C compiler cannot create executables 2605See \`config.log' for more details." >&2;} 2606 { (exit 77); exit 77; }; } 2607fi 2608 2609ac_exeext=$ac_cv_exeext 2610echo "$as_me:$LINENO: result: $ac_file" >&5 2611echo "${ECHO_T}$ac_file" >&6 2612 2613# Check the compiler produces executables we can run. If not, either 2614# the compiler is broken, or we cross compile. 2615echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2616echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2617# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2618# If not cross compiling, check that we can run a simple program. 2619if test "$cross_compiling" != yes; then 2620 if { ac_try='./$ac_file' 2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2622 (eval $ac_try) 2>&5 2623 ac_status=$? 2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2625 (exit $ac_status); }; }; then 2626 cross_compiling=no 2627 else 2628 if test "$cross_compiling" = maybe; then 2629 cross_compiling=yes 2630 else 2631 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2632If you meant to cross compile, use \`--host'. 2633See \`config.log' for more details." >&5 2634echo "$as_me: error: cannot run C compiled programs. 2635If you meant to cross compile, use \`--host'. 2636See \`config.log' for more details." >&2;} 2637 { (exit 1); exit 1; }; } 2638 fi 2639 fi 2640fi 2641echo "$as_me:$LINENO: result: yes" >&5 2642echo "${ECHO_T}yes" >&6 2643 2644rm -f a.out a.exe conftest$ac_cv_exeext b.out 2645ac_clean_files=$ac_clean_files_save 2646# Check the compiler produces executables we can run. If not, either 2647# the compiler is broken, or we cross compile. 2648echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2649echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2650echo "$as_me:$LINENO: result: $cross_compiling" >&5 2651echo "${ECHO_T}$cross_compiling" >&6 2652 2653echo "$as_me:$LINENO: checking for suffix of executables" >&5 2654echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2656 (eval $ac_link) 2>&5 2657 ac_status=$? 2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2659 (exit $ac_status); }; then 2660 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2661# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2662# work properly (i.e., refer to `conftest.exe'), while it won't with 2663# `rm'. 2664for ac_file in conftest.exe conftest conftest.*; do 2665 test -f "$ac_file" || continue 2666 case $ac_file in 2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2668 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2669 export ac_cv_exeext 2670 break;; 2671 * ) break;; 2672 esac 2673done 2674else 2675 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2676See \`config.log' for more details." >&5 2677echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2678See \`config.log' for more details." >&2;} 2679 { (exit 1); exit 1; }; } 2680fi 2681 2682rm -f conftest$ac_cv_exeext 2683echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2684echo "${ECHO_T}$ac_cv_exeext" >&6 2685 2686rm -f conftest.$ac_ext 2687EXEEXT=$ac_cv_exeext 2688ac_exeext=$EXEEXT 2689echo "$as_me:$LINENO: checking for suffix of object files" >&5 2690echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2691if test "${ac_cv_objext+set}" = set; then 2692 echo $ECHO_N "(cached) $ECHO_C" >&6 2693else 2694 cat >conftest.$ac_ext <<_ACEOF 2695/* confdefs.h. */ 2696_ACEOF 2697cat confdefs.h >>conftest.$ac_ext 2698cat >>conftest.$ac_ext <<_ACEOF 2699/* end confdefs.h. */ 2700 2701int 2702main () 2703{ 2704 2705 ; 2706 return 0; 2707} 2708_ACEOF 2709rm -f conftest.o conftest.obj 2710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2711 (eval $ac_compile) 2>&5 2712 ac_status=$? 2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2714 (exit $ac_status); }; then 2715 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2716 case $ac_file in 2717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2718 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2719 break;; 2720 esac 2721done 2722else 2723 echo "$as_me: failed program was:" >&5 2724sed 's/^/| /' conftest.$ac_ext >&5 2725 2726{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2727See \`config.log' for more details." >&5 2728echo "$as_me: error: cannot compute suffix of object files: cannot compile 2729See \`config.log' for more details." >&2;} 2730 { (exit 1); exit 1; }; } 2731fi 2732 2733rm -f conftest.$ac_cv_objext conftest.$ac_ext 2734fi 2735echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2736echo "${ECHO_T}$ac_cv_objext" >&6 2737OBJEXT=$ac_cv_objext 2738ac_objext=$OBJEXT 2739echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2740echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2741if test "${ac_cv_c_compiler_gnu+set}" = set; then 2742 echo $ECHO_N "(cached) $ECHO_C" >&6 2743else 2744 cat >conftest.$ac_ext <<_ACEOF 2745/* confdefs.h. */ 2746_ACEOF 2747cat confdefs.h >>conftest.$ac_ext 2748cat >>conftest.$ac_ext <<_ACEOF 2749/* end confdefs.h. */ 2750 2751int 2752main () 2753{ 2754#ifndef __GNUC__ 2755 choke me 2756#endif 2757 2758 ; 2759 return 0; 2760} 2761_ACEOF 2762rm -f conftest.$ac_objext 2763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2764 (eval $ac_compile) 2>conftest.er1 2765 ac_status=$? 2766 grep -v '^ *+' conftest.er1 >conftest.err 2767 rm -f conftest.er1 2768 cat conftest.err >&5 2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2770 (exit $ac_status); } && 2771 { ac_try='test -z "$ac_c_werror_flag" 2772 || test ! -s conftest.err' 2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2774 (eval $ac_try) 2>&5 2775 ac_status=$? 2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2777 (exit $ac_status); }; } && 2778 { ac_try='test -s conftest.$ac_objext' 2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2780 (eval $ac_try) 2>&5 2781 ac_status=$? 2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2783 (exit $ac_status); }; }; then 2784 ac_compiler_gnu=yes 2785else 2786 echo "$as_me: failed program was:" >&5 2787sed 's/^/| /' conftest.$ac_ext >&5 2788 2789ac_compiler_gnu=no 2790fi 2791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2792ac_cv_c_compiler_gnu=$ac_compiler_gnu 2793 2794fi 2795echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2796echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2797GCC=`test $ac_compiler_gnu = yes && echo yes` 2798ac_test_CFLAGS=${CFLAGS+set} 2799ac_save_CFLAGS=$CFLAGS 2800CFLAGS="-g" 2801echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2802echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2803if test "${ac_cv_prog_cc_g+set}" = set; then 2804 echo $ECHO_N "(cached) $ECHO_C" >&6 2805else 2806 cat >conftest.$ac_ext <<_ACEOF 2807/* confdefs.h. */ 2808_ACEOF 2809cat confdefs.h >>conftest.$ac_ext 2810cat >>conftest.$ac_ext <<_ACEOF 2811/* end confdefs.h. */ 2812 2813int 2814main () 2815{ 2816 2817 ; 2818 return 0; 2819} 2820_ACEOF 2821rm -f conftest.$ac_objext 2822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2823 (eval $ac_compile) 2>conftest.er1 2824 ac_status=$? 2825 grep -v '^ *+' conftest.er1 >conftest.err 2826 rm -f conftest.er1 2827 cat conftest.err >&5 2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2829 (exit $ac_status); } && 2830 { ac_try='test -z "$ac_c_werror_flag" 2831 || test ! -s conftest.err' 2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2833 (eval $ac_try) 2>&5 2834 ac_status=$? 2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2836 (exit $ac_status); }; } && 2837 { ac_try='test -s conftest.$ac_objext' 2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2839 (eval $ac_try) 2>&5 2840 ac_status=$? 2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2842 (exit $ac_status); }; }; then 2843 ac_cv_prog_cc_g=yes 2844else 2845 echo "$as_me: failed program was:" >&5 2846sed 's/^/| /' conftest.$ac_ext >&5 2847 2848ac_cv_prog_cc_g=no 2849fi 2850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2851fi 2852echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2853echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2854if test "$ac_test_CFLAGS" = set; then 2855 CFLAGS=$ac_save_CFLAGS 2856elif test $ac_cv_prog_cc_g = yes; then 2857 if test "$GCC" = yes; then 2858 CFLAGS="-g -O2" 2859 else 2860 CFLAGS="-g" 2861 fi 2862else 2863 if test "$GCC" = yes; then 2864 CFLAGS="-O2" 2865 else 2866 CFLAGS= 2867 fi 2868fi 2869echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2870echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2871if test "${ac_cv_prog_cc_stdc+set}" = set; then 2872 echo $ECHO_N "(cached) $ECHO_C" >&6 2873else 2874 ac_cv_prog_cc_stdc=no 2875ac_save_CC=$CC 2876cat >conftest.$ac_ext <<_ACEOF 2877/* confdefs.h. */ 2878_ACEOF 2879cat confdefs.h >>conftest.$ac_ext 2880cat >>conftest.$ac_ext <<_ACEOF 2881/* end confdefs.h. */ 2882#include <stdarg.h> 2883#include <stdio.h> 2884#include <sys/types.h> 2885#include <sys/stat.h> 2886/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2887struct buf { int x; }; 2888FILE * (*rcsopen) (struct buf *, struct stat *, int); 2889static char *e (p, i) 2890 char **p; 2891 int i; 2892{ 2893 return p[i]; 2894} 2895static char *f (char * (*g) (char **, int), char **p, ...) 2896{ 2897 char *s; 2898 va_list v; 2899 va_start (v,p); 2900 s = g (p, va_arg (v,int)); 2901 va_end (v); 2902 return s; 2903} 2904 2905/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2906 function prototypes and stuff, but not '\xHH' hex character constants. 2907 These don't provoke an error unfortunately, instead are silently treated 2908 as 'x'. The following induces an error, until -std1 is added to get 2909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2910 array size at least. It's necessary to write '\x00'==0 to get something 2911 that's true only with -std1. */ 2912int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2913 2914int test (int i, double x); 2915struct s1 {int (*f) (int a);}; 2916struct s2 {int (*f) (double a);}; 2917int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2918int argc; 2919char **argv; 2920int 2921main () 2922{ 2923return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2924 ; 2925 return 0; 2926} 2927_ACEOF 2928# Don't try gcc -ansi; that turns off useful extensions and 2929# breaks some systems' header files. 2930# AIX -qlanglvl=ansi 2931# Ultrix and OSF/1 -std1 2932# HP-UX 10.20 and later -Ae 2933# HP-UX older versions -Aa -D_HPUX_SOURCE 2934# SVR4 -Xc -D__EXTENSIONS__ 2935for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2936do 2937 CC="$ac_save_CC $ac_arg" 2938 rm -f conftest.$ac_objext 2939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2940 (eval $ac_compile) 2>conftest.er1 2941 ac_status=$? 2942 grep -v '^ *+' conftest.er1 >conftest.err 2943 rm -f conftest.er1 2944 cat conftest.err >&5 2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2946 (exit $ac_status); } && 2947 { ac_try='test -z "$ac_c_werror_flag" 2948 || test ! -s conftest.err' 2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2950 (eval $ac_try) 2>&5 2951 ac_status=$? 2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2953 (exit $ac_status); }; } && 2954 { ac_try='test -s conftest.$ac_objext' 2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2956 (eval $ac_try) 2>&5 2957 ac_status=$? 2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2959 (exit $ac_status); }; }; then 2960 ac_cv_prog_cc_stdc=$ac_arg 2961break 2962else 2963 echo "$as_me: failed program was:" >&5 2964sed 's/^/| /' conftest.$ac_ext >&5 2965 2966fi 2967rm -f conftest.err conftest.$ac_objext 2968done 2969rm -f conftest.$ac_ext conftest.$ac_objext 2970CC=$ac_save_CC 2971 2972fi 2973 2974case "x$ac_cv_prog_cc_stdc" in 2975 x|xno) 2976 echo "$as_me:$LINENO: result: none needed" >&5 2977echo "${ECHO_T}none needed" >&6 ;; 2978 *) 2979 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2980echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2981 CC="$CC $ac_cv_prog_cc_stdc" ;; 2982esac 2983 2984# Some people use a C++ compiler to compile C. Since we use `exit', 2985# in C++ we need to declare it. In case someone uses the same compiler 2986# for both compiling C and C++ we need to have the C++ compiler decide 2987# the declaration of exit, since it's the most demanding environment. 2988cat >conftest.$ac_ext <<_ACEOF 2989#ifndef __cplusplus 2990 choke me 2991#endif 2992_ACEOF 2993rm -f conftest.$ac_objext 2994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2995 (eval $ac_compile) 2>conftest.er1 2996 ac_status=$? 2997 grep -v '^ *+' conftest.er1 >conftest.err 2998 rm -f conftest.er1 2999 cat conftest.err >&5 3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3001 (exit $ac_status); } && 3002 { ac_try='test -z "$ac_c_werror_flag" 3003 || test ! -s conftest.err' 3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3005 (eval $ac_try) 2>&5 3006 ac_status=$? 3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3008 (exit $ac_status); }; } && 3009 { ac_try='test -s conftest.$ac_objext' 3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3011 (eval $ac_try) 2>&5 3012 ac_status=$? 3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3014 (exit $ac_status); }; }; then 3015 for ac_declaration in \ 3016 '' \ 3017 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3018 'extern "C" void std::exit (int); using std::exit;' \ 3019 'extern "C" void exit (int) throw ();' \ 3020 'extern "C" void exit (int);' \ 3021 'void exit (int);' 3022do 3023 cat >conftest.$ac_ext <<_ACEOF 3024/* confdefs.h. */ 3025_ACEOF 3026cat confdefs.h >>conftest.$ac_ext 3027cat >>conftest.$ac_ext <<_ACEOF 3028/* end confdefs.h. */ 3029$ac_declaration 3030#include <stdlib.h> 3031int 3032main () 3033{ 3034exit (42); 3035 ; 3036 return 0; 3037} 3038_ACEOF 3039rm -f conftest.$ac_objext 3040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3041 (eval $ac_compile) 2>conftest.er1 3042 ac_status=$? 3043 grep -v '^ *+' conftest.er1 >conftest.err 3044 rm -f conftest.er1 3045 cat conftest.err >&5 3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3047 (exit $ac_status); } && 3048 { ac_try='test -z "$ac_c_werror_flag" 3049 || test ! -s conftest.err' 3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3051 (eval $ac_try) 2>&5 3052 ac_status=$? 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); }; } && 3055 { ac_try='test -s conftest.$ac_objext' 3056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3057 (eval $ac_try) 2>&5 3058 ac_status=$? 3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060 (exit $ac_status); }; }; then 3061 : 3062else 3063 echo "$as_me: failed program was:" >&5 3064sed 's/^/| /' conftest.$ac_ext >&5 3065 3066continue 3067fi 3068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3069 cat >conftest.$ac_ext <<_ACEOF 3070/* confdefs.h. */ 3071_ACEOF 3072cat confdefs.h >>conftest.$ac_ext 3073cat >>conftest.$ac_ext <<_ACEOF 3074/* end confdefs.h. */ 3075$ac_declaration 3076int 3077main () 3078{ 3079exit (42); 3080 ; 3081 return 0; 3082} 3083_ACEOF 3084rm -f conftest.$ac_objext 3085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3086 (eval $ac_compile) 2>conftest.er1 3087 ac_status=$? 3088 grep -v '^ *+' conftest.er1 >conftest.err 3089 rm -f conftest.er1 3090 cat conftest.err >&5 3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); } && 3093 { ac_try='test -z "$ac_c_werror_flag" 3094 || test ! -s conftest.err' 3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3096 (eval $ac_try) 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); }; } && 3100 { ac_try='test -s conftest.$ac_objext' 3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3102 (eval $ac_try) 2>&5 3103 ac_status=$? 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); }; }; then 3106 break 3107else 3108 echo "$as_me: failed program was:" >&5 3109sed 's/^/| /' conftest.$ac_ext >&5 3110 3111fi 3112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3113done 3114rm -f conftest* 3115if test -n "$ac_declaration"; then 3116 echo '#ifdef __cplusplus' >>confdefs.h 3117 echo $ac_declaration >>confdefs.h 3118 echo '#endif' >>confdefs.h 3119fi 3120 3121else 3122 echo "$as_me: failed program was:" >&5 3123sed 's/^/| /' conftest.$ac_ext >&5 3124 3125fi 3126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3127ac_ext=c 3128ac_cpp='$CPP $CPPFLAGS' 3129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3131ac_compiler_gnu=$ac_cv_c_compiler_gnu 3132 3133depcc="$CC" am_compiler_list= 3134 3135echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3136echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3137if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3138 echo $ECHO_N "(cached) $ECHO_C" >&6 3139else 3140 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3141 # We make a subdir and do the tests there. Otherwise we can end up 3142 # making bogus files that we don't know about and never remove. For 3143 # instance it was reported that on HP-UX the gcc test will end up 3144 # making a dummy file named `D' -- because `-MD' means `put the output 3145 # in D'. 3146 mkdir conftest.dir 3147 # Copy depcomp to subdir because otherwise we won't find it if we're 3148 # using a relative directory. 3149 cp "$am_depcomp" conftest.dir 3150 cd conftest.dir 3151 # We will build objects and dependencies in a subdirectory because 3152 # it helps to detect inapplicable dependency modes. For instance 3153 # both Tru64's cc and ICC support -MD to output dependencies as a 3154 # side effect of compilation, but ICC will put the dependencies in 3155 # the current directory while Tru64 will put them in the object 3156 # directory. 3157 mkdir sub 3158 3159 am_cv_CC_dependencies_compiler_type=none 3160 if test "$am_compiler_list" = ""; then 3161 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3162 fi 3163 for depmode in $am_compiler_list; do 3164 # Setup a source with many dependencies, because some compilers 3165 # like to wrap large dependency lists on column 80 (with \), and 3166 # we should not choose a depcomp mode which is confused by this. 3167 # 3168 # We need to recreate these files for each test, as the compiler may 3169 # overwrite some of them when testing with obscure command lines. 3170 # This happens at least with the AIX C compiler. 3171 : > sub/conftest.c 3172 for i in 1 2 3 4 5 6; do 3173 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3174 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3175 # Solaris 8's {/usr,}/bin/sh. 3176 touch sub/conftst$i.h 3177 done 3178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3179 3180 case $depmode in 3181 nosideeffect) 3182 # after this tag, mechanisms are not by side-effect, so they'll 3183 # only be used when explicitly requested 3184 if test "x$enable_dependency_tracking" = xyes; then 3185 continue 3186 else 3187 break 3188 fi 3189 ;; 3190 none) break ;; 3191 esac 3192 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3193 # mode. It turns out that the SunPro C++ compiler does not properly 3194 # handle `-M -o', and we need to detect this. 3195 if depmode=$depmode \ 3196 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3197 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3198 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3199 >/dev/null 2>conftest.err && 3200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3201 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3203 # icc doesn't choke on unknown options, it will just issue warnings 3204 # (even with -Werror). So we grep stderr for any message 3205 # that says an option was ignored. 3206 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3207 am_cv_CC_dependencies_compiler_type=$depmode 3208 break 3209 fi 3210 fi 3211 done 3212 3213 cd .. 3214 rm -rf conftest.dir 3215else 3216 am_cv_CC_dependencies_compiler_type=none 3217fi 3218 3219fi 3220echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3221echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3222CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3223 3224 3225 3226if 3227 test "x$enable_dependency_tracking" != xno \ 3228 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3229 am__fastdepCC_TRUE= 3230 am__fastdepCC_FALSE='#' 3231else 3232 am__fastdepCC_TRUE='#' 3233 am__fastdepCC_FALSE= 3234fi 3235 3236 3237echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3238echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3239if test "${lt_cv_path_SED+set}" = set; then 3240 echo $ECHO_N "(cached) $ECHO_C" >&6 3241else 3242 # Loop through the user's path and test for sed and gsed. 3243# Then use that list of sed's as ones to test for truncation. 3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3245for as_dir in $PATH 3246do 3247 IFS=$as_save_IFS 3248 test -z "$as_dir" && as_dir=. 3249 for lt_ac_prog in sed gsed; do 3250 for ac_exec_ext in '' $ac_executable_extensions; do 3251 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3252 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3253 fi 3254 done 3255 done 3256done 3257lt_ac_max=0 3258lt_ac_count=0 3259# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3260# along with /bin/sed that truncates output. 3261for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3262 test ! -f $lt_ac_sed && break 3263 cat /dev/null > conftest.in 3264 lt_ac_count=0 3265 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3266 # Check for GNU sed and select it if it is found. 3267 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3268 lt_cv_path_SED=$lt_ac_sed 3269 break 3270 fi 3271 while true; do 3272 cat conftest.in conftest.in >conftest.tmp 3273 mv conftest.tmp conftest.in 3274 cp conftest.in conftest.nl 3275 echo >>conftest.nl 3276 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3277 cmp -s conftest.out conftest.nl || break 3278 # 10000 chars as input seems more than enough 3279 test $lt_ac_count -gt 10 && break 3280 lt_ac_count=`expr $lt_ac_count + 1` 3281 if test $lt_ac_count -gt $lt_ac_max; then 3282 lt_ac_max=$lt_ac_count 3283 lt_cv_path_SED=$lt_ac_sed 3284 fi 3285 done 3286done 3287SED=$lt_cv_path_SED 3288 3289fi 3290 3291echo "$as_me:$LINENO: result: $SED" >&5 3292echo "${ECHO_T}$SED" >&6 3293 3294echo "$as_me:$LINENO: checking for egrep" >&5 3295echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3296if test "${ac_cv_prog_egrep+set}" = set; then 3297 echo $ECHO_N "(cached) $ECHO_C" >&6 3298else 3299 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3300 then ac_cv_prog_egrep='grep -E' 3301 else ac_cv_prog_egrep='egrep' 3302 fi 3303fi 3304echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3305echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3306 EGREP=$ac_cv_prog_egrep 3307 3308 3309 3310# Check whether --with-gnu-ld or --without-gnu-ld was given. 3311if test "${with_gnu_ld+set}" = set; then 3312 withval="$with_gnu_ld" 3313 test "$withval" = no || with_gnu_ld=yes 3314else 3315 with_gnu_ld=no 3316fi; 3317ac_prog=ld 3318if test "$GCC" = yes; then 3319 # Check if gcc -print-prog-name=ld gives a path. 3320 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3321echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3322 case $host in 3323 *-*-mingw*) 3324 # gcc leaves a trailing carriage return which upsets mingw 3325 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3326 *) 3327 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3328 esac 3329 case $ac_prog in 3330 # Accept absolute paths. 3331 [\\/]* | ?:[\\/]*) 3332 re_direlt='/[^/][^/]*/\.\./' 3333 # Canonicalize the pathname of ld 3334 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3335 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3336 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3337 done 3338 test -z "$LD" && LD="$ac_prog" 3339 ;; 3340 "") 3341 # If it fails, then pretend we aren't using GCC. 3342 ac_prog=ld 3343 ;; 3344 *) 3345 # If it is relative, then search for the first ld in PATH. 3346 with_gnu_ld=unknown 3347 ;; 3348 esac 3349elif test "$with_gnu_ld" = yes; then 3350 echo "$as_me:$LINENO: checking for GNU ld" >&5 3351echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3352else 3353 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3354echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3355fi 3356if test "${lt_cv_path_LD+set}" = set; then 3357 echo $ECHO_N "(cached) $ECHO_C" >&6 3358else 3359 if test -z "$LD"; then 3360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3361 for ac_dir in $PATH; do 3362 IFS="$lt_save_ifs" 3363 test -z "$ac_dir" && ac_dir=. 3364 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3365 lt_cv_path_LD="$ac_dir/$ac_prog" 3366 # Check to see if the program is GNU ld. I'd rather use --version, 3367 # but apparently some GNU ld's only accept -v. 3368 # Break only if it was the GNU/non-GNU ld that we prefer. 3369 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3370 *GNU* | *'with BFD'*) 3371 test "$with_gnu_ld" != no && break 3372 ;; 3373 *) 3374 test "$with_gnu_ld" != yes && break 3375 ;; 3376 esac 3377 fi 3378 done 3379 IFS="$lt_save_ifs" 3380else 3381 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3382fi 3383fi 3384 3385LD="$lt_cv_path_LD" 3386if test -n "$LD"; then 3387 echo "$as_me:$LINENO: result: $LD" >&5 3388echo "${ECHO_T}$LD" >&6 3389else 3390 echo "$as_me:$LINENO: result: no" >&5 3391echo "${ECHO_T}no" >&6 3392fi 3393test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3394echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3395 { (exit 1); exit 1; }; } 3396echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3397echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3398if test "${lt_cv_prog_gnu_ld+set}" = set; then 3399 echo $ECHO_N "(cached) $ECHO_C" >&6 3400else 3401 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3402case `$LD -v 2>&1 </dev/null` in 3403*GNU* | *'with BFD'*) 3404 lt_cv_prog_gnu_ld=yes 3405 ;; 3406*) 3407 lt_cv_prog_gnu_ld=no 3408 ;; 3409esac 3410fi 3411echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3412echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3413with_gnu_ld=$lt_cv_prog_gnu_ld 3414 3415 3416echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3417echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3418if test "${lt_cv_ld_reload_flag+set}" = set; then 3419 echo $ECHO_N "(cached) $ECHO_C" >&6 3420else 3421 lt_cv_ld_reload_flag='-r' 3422fi 3423echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3424echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3425reload_flag=$lt_cv_ld_reload_flag 3426case $reload_flag in 3427"" | " "*) ;; 3428*) reload_flag=" $reload_flag" ;; 3429esac 3430reload_cmds='$LD$reload_flag -o $output$reload_objs' 3431 3432echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3433echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3434if test "${lt_cv_path_NM+set}" = set; then 3435 echo $ECHO_N "(cached) $ECHO_C" >&6 3436else 3437 if test -n "$NM"; then 3438 # Let the user override the test. 3439 lt_cv_path_NM="$NM" 3440else 3441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3442 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3443 IFS="$lt_save_ifs" 3444 test -z "$ac_dir" && ac_dir=. 3445 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3446 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3447 # Check to see if the nm accepts a BSD-compat flag. 3448 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3449 # nm: unknown option "B" ignored 3450 # Tru64's nm complains that /dev/null is an invalid object file 3451 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3452 */dev/null* | *'Invalid file or object type'*) 3453 lt_cv_path_NM="$tmp_nm -B" 3454 break 3455 ;; 3456 *) 3457 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3458 */dev/null*) 3459 lt_cv_path_NM="$tmp_nm -p" 3460 break 3461 ;; 3462 *) 3463 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3464 continue # so that we can try to find one that supports BSD flags 3465 ;; 3466 esac 3467 esac 3468 fi 3469 done 3470 IFS="$lt_save_ifs" 3471 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3472fi 3473fi 3474echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3475echo "${ECHO_T}$lt_cv_path_NM" >&6 3476NM="$lt_cv_path_NM" 3477 3478echo "$as_me:$LINENO: checking whether ln -s works" >&5 3479echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3480LN_S=$as_ln_s 3481if test "$LN_S" = "ln -s"; then 3482 echo "$as_me:$LINENO: result: yes" >&5 3483echo "${ECHO_T}yes" >&6 3484else 3485 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3486echo "${ECHO_T}no, using $LN_S" >&6 3487fi 3488 3489echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3490echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3491if test "${lt_cv_deplibs_check_method+set}" = set; then 3492 echo $ECHO_N "(cached) $ECHO_C" >&6 3493else 3494 lt_cv_file_magic_cmd='$MAGIC_CMD' 3495lt_cv_file_magic_test_file= 3496lt_cv_deplibs_check_method='unknown' 3497# Need to set the preceding variable on all platforms that support 3498# interlibrary dependencies. 3499# 'none' -- dependencies not supported. 3500# `unknown' -- same as none, but documents that we really don't know. 3501# 'pass_all' -- all dependencies passed with no checks. 3502# 'test_compile' -- check by making test program. 3503# 'file_magic [[regex]]' -- check by looking for files in library path 3504# which responds to the $file_magic_cmd with a given extended regex. 3505# If you have `file' or equivalent on your system and you're not sure 3506# whether `pass_all' will *always* work, you probably want this one. 3507 3508case $host_os in 3509aix4* | aix5*) 3510 lt_cv_deplibs_check_method=pass_all 3511 ;; 3512 3513beos*) 3514 lt_cv_deplibs_check_method=pass_all 3515 ;; 3516 3517bsdi4*) 3518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3519 lt_cv_file_magic_cmd='/usr/bin/file -L' 3520 lt_cv_file_magic_test_file=/shlib/libc.so 3521 ;; 3522 3523cygwin*) 3524 # func_win32_libid is a shell function defined in ltmain.sh 3525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3526 lt_cv_file_magic_cmd='func_win32_libid' 3527 ;; 3528 3529mingw* | pw32*) 3530 # Base MSYS/MinGW do not provide the 'file' command needed by 3531 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3532 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3533 lt_cv_file_magic_cmd='$OBJDUMP -f' 3534 ;; 3535 3536darwin* | rhapsody*) 3537 lt_cv_deplibs_check_method=pass_all 3538 ;; 3539 3540freebsd* | kfreebsd*-gnu) 3541 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3542 case $host_cpu in 3543 i*86 ) 3544 # Not sure whether the presence of OpenBSD here was a mistake. 3545 # Let's accept both of them until this is cleared up. 3546 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3547 lt_cv_file_magic_cmd=/usr/bin/file 3548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3549 ;; 3550 esac 3551 else 3552 lt_cv_deplibs_check_method=pass_all 3553 fi 3554 ;; 3555 3556gnu*) 3557 lt_cv_deplibs_check_method=pass_all 3558 ;; 3559 3560hpux10.20* | hpux11*) 3561 lt_cv_file_magic_cmd=/usr/bin/file 3562 case "$host_cpu" in 3563 ia64*) 3564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3565 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3566 ;; 3567 hppa*64*) 3568 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]' 3569 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3570 ;; 3571 *) 3572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3573 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3574 ;; 3575 esac 3576 ;; 3577 3578irix5* | irix6* | nonstopux*) 3579 case $LD in 3580 *-32|*"-32 ") libmagic=32-bit;; 3581 *-n32|*"-n32 ") libmagic=N32;; 3582 *-64|*"-64 ") libmagic=64-bit;; 3583 *) libmagic=never-match;; 3584 esac 3585 lt_cv_deplibs_check_method=pass_all 3586 ;; 3587 3588# This must be Linux ELF. 3589linux*) 3590 case $host_cpu in 3591 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) 3592 lt_cv_deplibs_check_method=pass_all ;; 3593 *) 3594 # glibc up to 2.1.1 does not perform some relocations on ARM 3595 # this will be overridden with pass_all, but let us keep it just in case 3596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3597 esac 3598 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3599 lt_cv_deplibs_check_method=pass_all 3600 ;; 3601 3602netbsd*) 3603 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3605 else 3606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3607 fi 3608 ;; 3609 3610newos6*) 3611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3612 lt_cv_file_magic_cmd=/usr/bin/file 3613 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3614 ;; 3615 3616nto-qnx*) 3617 lt_cv_deplibs_check_method=unknown 3618 ;; 3619 3620openbsd*) 3621 lt_cv_file_magic_cmd=/usr/bin/file 3622 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3625 else 3626 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3627 fi 3628 ;; 3629 3630osf3* | osf4* | osf5*) 3631 lt_cv_deplibs_check_method=pass_all 3632 ;; 3633 3634sco3.2v5*) 3635 lt_cv_deplibs_check_method=pass_all 3636 ;; 3637 3638solaris*) 3639 lt_cv_deplibs_check_method=pass_all 3640 ;; 3641 3642sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3643 case $host_vendor in 3644 motorola) 3645 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]' 3646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3647 ;; 3648 ncr) 3649 lt_cv_deplibs_check_method=pass_all 3650 ;; 3651 sequent) 3652 lt_cv_file_magic_cmd='/bin/file' 3653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3654 ;; 3655 sni) 3656 lt_cv_file_magic_cmd='/bin/file' 3657 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3658 lt_cv_file_magic_test_file=/lib/libc.so 3659 ;; 3660 siemens) 3661 lt_cv_deplibs_check_method=pass_all 3662 ;; 3663 esac 3664 ;; 3665 3666sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3667 lt_cv_deplibs_check_method=pass_all 3668 ;; 3669esac 3670 3671fi 3672echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3673echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3674file_magic_cmd=$lt_cv_file_magic_cmd 3675deplibs_check_method=$lt_cv_deplibs_check_method 3676test -z "$deplibs_check_method" && deplibs_check_method=unknown 3677 3678 3679 3680 3681# If no C compiler was specified, use CC. 3682LTCC=${LTCC-"$CC"} 3683 3684# Allow CC to be a program name with arguments. 3685compiler=$CC 3686 3687 3688# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3689if test "${enable_libtool_lock+set}" = set; then 3690 enableval="$enable_libtool_lock" 3691 3692fi; 3693test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3694 3695# Some flags need to be propagated to the compiler or linker for good 3696# libtool support. 3697case $host in 3698ia64-*-hpux*) 3699 # Find out which ABI we are using. 3700 echo 'int i;' > conftest.$ac_ext 3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3702 (eval $ac_compile) 2>&5 3703 ac_status=$? 3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3705 (exit $ac_status); }; then 3706 case `/usr/bin/file conftest.$ac_objext` in 3707 *ELF-32*) 3708 HPUX_IA64_MODE="32" 3709 ;; 3710 *ELF-64*) 3711 HPUX_IA64_MODE="64" 3712 ;; 3713 esac 3714 fi 3715 rm -rf conftest* 3716 ;; 3717*-*-irix6*) 3718 # Find out which ABI we are using. 3719 echo '#line 3719 "configure"' > conftest.$ac_ext 3720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3721 (eval $ac_compile) 2>&5 3722 ac_status=$? 3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3724 (exit $ac_status); }; then 3725 if test "$lt_cv_prog_gnu_ld" = yes; then 3726 case `/usr/bin/file conftest.$ac_objext` in 3727 *32-bit*) 3728 LD="${LD-ld} -melf32bsmip" 3729 ;; 3730 *N32*) 3731 LD="${LD-ld} -melf32bmipn32" 3732 ;; 3733 *64-bit*) 3734 LD="${LD-ld} -melf64bmip" 3735 ;; 3736 esac 3737 else 3738 case `/usr/bin/file conftest.$ac_objext` in 3739 *32-bit*) 3740 LD="${LD-ld} -32" 3741 ;; 3742 *N32*) 3743 LD="${LD-ld} -n32" 3744 ;; 3745 *64-bit*) 3746 LD="${LD-ld} -64" 3747 ;; 3748 esac 3749 fi 3750 fi 3751 rm -rf conftest* 3752 ;; 3753 3754x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3755 # Find out which ABI we are using. 3756 echo 'int i;' > conftest.$ac_ext 3757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3758 (eval $ac_compile) 2>&5 3759 ac_status=$? 3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3761 (exit $ac_status); }; then 3762 case "`/usr/bin/file conftest.o`" in 3763 *32-bit*) 3764 case $host in 3765 x86_64-*linux*) 3766 LD="${LD-ld} -m elf_i386" 3767 ;; 3768 ppc64-*linux*|powerpc64-*linux*) 3769 LD="${LD-ld} -m elf32ppclinux" 3770 ;; 3771 s390x-*linux*) 3772 LD="${LD-ld} -m elf_s390" 3773 ;; 3774 sparc64-*linux*) 3775 LD="${LD-ld} -m elf32_sparc" 3776 ;; 3777 esac 3778 ;; 3779 *64-bit*) 3780 case $host in 3781 x86_64-*linux*) 3782 LD="${LD-ld} -m elf_x86_64" 3783 ;; 3784 ppc*-*linux*|powerpc*-*linux*) 3785 LD="${LD-ld} -m elf64ppc" 3786 ;; 3787 s390*-*linux*) 3788 LD="${LD-ld} -m elf64_s390" 3789 ;; 3790 sparc*-*linux*) 3791 LD="${LD-ld} -m elf64_sparc" 3792 ;; 3793 esac 3794 ;; 3795 esac 3796 fi 3797 rm -rf conftest* 3798 ;; 3799 3800*-*-sco3.2v5*) 3801 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3802 SAVE_CFLAGS="$CFLAGS" 3803 CFLAGS="$CFLAGS -belf" 3804 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3805echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3806if test "${lt_cv_cc_needs_belf+set}" = set; then 3807 echo $ECHO_N "(cached) $ECHO_C" >&6 3808else 3809 ac_ext=c 3810ac_cpp='$CPP $CPPFLAGS' 3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3813ac_compiler_gnu=$ac_cv_c_compiler_gnu 3814 3815 cat >conftest.$ac_ext <<_ACEOF 3816/* confdefs.h. */ 3817_ACEOF 3818cat confdefs.h >>conftest.$ac_ext 3819cat >>conftest.$ac_ext <<_ACEOF 3820/* end confdefs.h. */ 3821 3822int 3823main () 3824{ 3825 3826 ; 3827 return 0; 3828} 3829_ACEOF 3830rm -f conftest.$ac_objext conftest$ac_exeext 3831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3832 (eval $ac_link) 2>conftest.er1 3833 ac_status=$? 3834 grep -v '^ *+' conftest.er1 >conftest.err 3835 rm -f conftest.er1 3836 cat conftest.err >&5 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3838 (exit $ac_status); } && 3839 { ac_try='test -z "$ac_c_werror_flag" 3840 || test ! -s conftest.err' 3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3842 (eval $ac_try) 2>&5 3843 ac_status=$? 3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3845 (exit $ac_status); }; } && 3846 { ac_try='test -s conftest$ac_exeext' 3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3848 (eval $ac_try) 2>&5 3849 ac_status=$? 3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3851 (exit $ac_status); }; }; then 3852 lt_cv_cc_needs_belf=yes 3853else 3854 echo "$as_me: failed program was:" >&5 3855sed 's/^/| /' conftest.$ac_ext >&5 3856 3857lt_cv_cc_needs_belf=no 3858fi 3859rm -f conftest.err conftest.$ac_objext \ 3860 conftest$ac_exeext conftest.$ac_ext 3861 ac_ext=c 3862ac_cpp='$CPP $CPPFLAGS' 3863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3865ac_compiler_gnu=$ac_cv_c_compiler_gnu 3866 3867fi 3868echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3869echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3870 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3871 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3872 CFLAGS="$SAVE_CFLAGS" 3873 fi 3874 ;; 3875 3876esac 3877 3878need_locks="$enable_libtool_lock" 3879 3880 3881ac_ext=c 3882ac_cpp='$CPP $CPPFLAGS' 3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3885ac_compiler_gnu=$ac_cv_c_compiler_gnu 3886echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3887echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3888# On Suns, sometimes $CPP names a directory. 3889if test -n "$CPP" && test -d "$CPP"; then 3890 CPP= 3891fi 3892if test -z "$CPP"; then 3893 if test "${ac_cv_prog_CPP+set}" = set; then 3894 echo $ECHO_N "(cached) $ECHO_C" >&6 3895else 3896 # Double quotes because CPP needs to be expanded 3897 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3898 do 3899 ac_preproc_ok=false 3900for ac_c_preproc_warn_flag in '' yes 3901do 3902 # Use a header file that comes with gcc, so configuring glibc 3903 # with a fresh cross-compiler works. 3904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3905 # <limits.h> exists even on freestanding compilers. 3906 # On the NeXT, cc -E runs the code through the compiler's parser, 3907 # not just through cpp. "Syntax error" is here to catch this case. 3908 cat >conftest.$ac_ext <<_ACEOF 3909/* confdefs.h. */ 3910_ACEOF 3911cat confdefs.h >>conftest.$ac_ext 3912cat >>conftest.$ac_ext <<_ACEOF 3913/* end confdefs.h. */ 3914#ifdef __STDC__ 3915# include <limits.h> 3916#else 3917# include <assert.h> 3918#endif 3919 Syntax error 3920_ACEOF 3921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3923 ac_status=$? 3924 grep -v '^ *+' conftest.er1 >conftest.err 3925 rm -f conftest.er1 3926 cat conftest.err >&5 3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3928 (exit $ac_status); } >/dev/null; then 3929 if test -s conftest.err; then 3930 ac_cpp_err=$ac_c_preproc_warn_flag 3931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3932 else 3933 ac_cpp_err= 3934 fi 3935else 3936 ac_cpp_err=yes 3937fi 3938if test -z "$ac_cpp_err"; then 3939 : 3940else 3941 echo "$as_me: failed program was:" >&5 3942sed 's/^/| /' conftest.$ac_ext >&5 3943 3944 # Broken: fails on valid input. 3945continue 3946fi 3947rm -f conftest.err conftest.$ac_ext 3948 3949 # OK, works on sane cases. Now check whether non-existent headers 3950 # can be detected and how. 3951 cat >conftest.$ac_ext <<_ACEOF 3952/* confdefs.h. */ 3953_ACEOF 3954cat confdefs.h >>conftest.$ac_ext 3955cat >>conftest.$ac_ext <<_ACEOF 3956/* end confdefs.h. */ 3957#include <ac_nonexistent.h> 3958_ACEOF 3959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3961 ac_status=$? 3962 grep -v '^ *+' conftest.er1 >conftest.err 3963 rm -f conftest.er1 3964 cat conftest.err >&5 3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3966 (exit $ac_status); } >/dev/null; then 3967 if test -s conftest.err; then 3968 ac_cpp_err=$ac_c_preproc_warn_flag 3969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3970 else 3971 ac_cpp_err= 3972 fi 3973else 3974 ac_cpp_err=yes 3975fi 3976if test -z "$ac_cpp_err"; then 3977 # Broken: success on invalid input. 3978continue 3979else 3980 echo "$as_me: failed program was:" >&5 3981sed 's/^/| /' conftest.$ac_ext >&5 3982 3983 # Passes both tests. 3984ac_preproc_ok=: 3985break 3986fi 3987rm -f conftest.err conftest.$ac_ext 3988 3989done 3990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3991rm -f conftest.err conftest.$ac_ext 3992if $ac_preproc_ok; then 3993 break 3994fi 3995 3996 done 3997 ac_cv_prog_CPP=$CPP 3998 3999fi 4000 CPP=$ac_cv_prog_CPP 4001else 4002 ac_cv_prog_CPP=$CPP 4003fi 4004echo "$as_me:$LINENO: result: $CPP" >&5 4005echo "${ECHO_T}$CPP" >&6 4006ac_preproc_ok=false 4007for ac_c_preproc_warn_flag in '' yes 4008do 4009 # Use a header file that comes with gcc, so configuring glibc 4010 # with a fresh cross-compiler works. 4011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4012 # <limits.h> exists even on freestanding compilers. 4013 # On the NeXT, cc -E runs the code through the compiler's parser, 4014 # not just through cpp. "Syntax error" is here to catch this case. 4015 cat >conftest.$ac_ext <<_ACEOF 4016/* confdefs.h. */ 4017_ACEOF 4018cat confdefs.h >>conftest.$ac_ext 4019cat >>conftest.$ac_ext <<_ACEOF 4020/* end confdefs.h. */ 4021#ifdef __STDC__ 4022# include <limits.h> 4023#else 4024# include <assert.h> 4025#endif 4026 Syntax error 4027_ACEOF 4028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4030 ac_status=$? 4031 grep -v '^ *+' conftest.er1 >conftest.err 4032 rm -f conftest.er1 4033 cat conftest.err >&5 4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4035 (exit $ac_status); } >/dev/null; then 4036 if test -s conftest.err; then 4037 ac_cpp_err=$ac_c_preproc_warn_flag 4038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4039 else 4040 ac_cpp_err= 4041 fi 4042else 4043 ac_cpp_err=yes 4044fi 4045if test -z "$ac_cpp_err"; then 4046 : 4047else 4048 echo "$as_me: failed program was:" >&5 4049sed 's/^/| /' conftest.$ac_ext >&5 4050 4051 # Broken: fails on valid input. 4052continue 4053fi 4054rm -f conftest.err conftest.$ac_ext 4055 4056 # OK, works on sane cases. Now check whether non-existent headers 4057 # can be detected and how. 4058 cat >conftest.$ac_ext <<_ACEOF 4059/* confdefs.h. */ 4060_ACEOF 4061cat confdefs.h >>conftest.$ac_ext 4062cat >>conftest.$ac_ext <<_ACEOF 4063/* end confdefs.h. */ 4064#include <ac_nonexistent.h> 4065_ACEOF 4066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4068 ac_status=$? 4069 grep -v '^ *+' conftest.er1 >conftest.err 4070 rm -f conftest.er1 4071 cat conftest.err >&5 4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4073 (exit $ac_status); } >/dev/null; then 4074 if test -s conftest.err; then 4075 ac_cpp_err=$ac_c_preproc_warn_flag 4076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4077 else 4078 ac_cpp_err= 4079 fi 4080else 4081 ac_cpp_err=yes 4082fi 4083if test -z "$ac_cpp_err"; then 4084 # Broken: success on invalid input. 4085continue 4086else 4087 echo "$as_me: failed program was:" >&5 4088sed 's/^/| /' conftest.$ac_ext >&5 4089 4090 # Passes both tests. 4091ac_preproc_ok=: 4092break 4093fi 4094rm -f conftest.err conftest.$ac_ext 4095 4096done 4097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4098rm -f conftest.err conftest.$ac_ext 4099if $ac_preproc_ok; then 4100 : 4101else 4102 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4103See \`config.log' for more details." >&5 4104echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4105See \`config.log' for more details." >&2;} 4106 { (exit 1); exit 1; }; } 4107fi 4108 4109ac_ext=c 4110ac_cpp='$CPP $CPPFLAGS' 4111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4113ac_compiler_gnu=$ac_cv_c_compiler_gnu 4114 4115 4116echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4117echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4118if test "${ac_cv_header_stdc+set}" = set; then 4119 echo $ECHO_N "(cached) $ECHO_C" >&6 4120else 4121 cat >conftest.$ac_ext <<_ACEOF 4122/* confdefs.h. */ 4123_ACEOF 4124cat confdefs.h >>conftest.$ac_ext 4125cat >>conftest.$ac_ext <<_ACEOF 4126/* end confdefs.h. */ 4127#include <stdlib.h> 4128#include <stdarg.h> 4129#include <string.h> 4130#include <float.h> 4131 4132int 4133main () 4134{ 4135 4136 ; 4137 return 0; 4138} 4139_ACEOF 4140rm -f conftest.$ac_objext 4141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4142 (eval $ac_compile) 2>conftest.er1 4143 ac_status=$? 4144 grep -v '^ *+' conftest.er1 >conftest.err 4145 rm -f conftest.er1 4146 cat conftest.err >&5 4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4148 (exit $ac_status); } && 4149 { ac_try='test -z "$ac_c_werror_flag" 4150 || test ! -s conftest.err' 4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4152 (eval $ac_try) 2>&5 4153 ac_status=$? 4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4155 (exit $ac_status); }; } && 4156 { ac_try='test -s conftest.$ac_objext' 4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4158 (eval $ac_try) 2>&5 4159 ac_status=$? 4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4161 (exit $ac_status); }; }; then 4162 ac_cv_header_stdc=yes 4163else 4164 echo "$as_me: failed program was:" >&5 4165sed 's/^/| /' conftest.$ac_ext >&5 4166 4167ac_cv_header_stdc=no 4168fi 4169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4170 4171if test $ac_cv_header_stdc = yes; then 4172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4173 cat >conftest.$ac_ext <<_ACEOF 4174/* confdefs.h. */ 4175_ACEOF 4176cat confdefs.h >>conftest.$ac_ext 4177cat >>conftest.$ac_ext <<_ACEOF 4178/* end confdefs.h. */ 4179#include <string.h> 4180 4181_ACEOF 4182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4183 $EGREP "memchr" >/dev/null 2>&1; then 4184 : 4185else 4186 ac_cv_header_stdc=no 4187fi 4188rm -f conftest* 4189 4190fi 4191 4192if test $ac_cv_header_stdc = yes; then 4193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4194 cat >conftest.$ac_ext <<_ACEOF 4195/* confdefs.h. */ 4196_ACEOF 4197cat confdefs.h >>conftest.$ac_ext 4198cat >>conftest.$ac_ext <<_ACEOF 4199/* end confdefs.h. */ 4200#include <stdlib.h> 4201 4202_ACEOF 4203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4204 $EGREP "free" >/dev/null 2>&1; then 4205 : 4206else 4207 ac_cv_header_stdc=no 4208fi 4209rm -f conftest* 4210 4211fi 4212 4213if test $ac_cv_header_stdc = yes; then 4214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4215 if test "$cross_compiling" = yes; then 4216 : 4217else 4218 cat >conftest.$ac_ext <<_ACEOF 4219/* confdefs.h. */ 4220_ACEOF 4221cat confdefs.h >>conftest.$ac_ext 4222cat >>conftest.$ac_ext <<_ACEOF 4223/* end confdefs.h. */ 4224#include <ctype.h> 4225#if ((' ' & 0x0FF) == 0x020) 4226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4228#else 4229# define ISLOWER(c) \ 4230 (('a' <= (c) && (c) <= 'i') \ 4231 || ('j' <= (c) && (c) <= 'r') \ 4232 || ('s' <= (c) && (c) <= 'z')) 4233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4234#endif 4235 4236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4237int 4238main () 4239{ 4240 int i; 4241 for (i = 0; i < 256; i++) 4242 if (XOR (islower (i), ISLOWER (i)) 4243 || toupper (i) != TOUPPER (i)) 4244 exit(2); 4245 exit (0); 4246} 4247_ACEOF 4248rm -f conftest$ac_exeext 4249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4250 (eval $ac_link) 2>&5 4251 ac_status=$? 4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4255 (eval $ac_try) 2>&5 4256 ac_status=$? 4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4258 (exit $ac_status); }; }; then 4259 : 4260else 4261 echo "$as_me: program exited with status $ac_status" >&5 4262echo "$as_me: failed program was:" >&5 4263sed 's/^/| /' conftest.$ac_ext >&5 4264 4265( exit $ac_status ) 4266ac_cv_header_stdc=no 4267fi 4268rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4269fi 4270fi 4271fi 4272echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4273echo "${ECHO_T}$ac_cv_header_stdc" >&6 4274if test $ac_cv_header_stdc = yes; then 4275 4276cat >>confdefs.h <<\_ACEOF 4277#define STDC_HEADERS 1 4278_ACEOF 4279 4280fi 4281 4282# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4293 inttypes.h stdint.h unistd.h 4294do 4295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4296echo "$as_me:$LINENO: checking for $ac_header" >&5 4297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4298if eval "test \"\${$as_ac_Header+set}\" = set"; then 4299 echo $ECHO_N "(cached) $ECHO_C" >&6 4300else 4301 cat >conftest.$ac_ext <<_ACEOF 4302/* confdefs.h. */ 4303_ACEOF 4304cat confdefs.h >>conftest.$ac_ext 4305cat >>conftest.$ac_ext <<_ACEOF 4306/* end confdefs.h. */ 4307$ac_includes_default 4308 4309#include <$ac_header> 4310_ACEOF 4311rm -f conftest.$ac_objext 4312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4313 (eval $ac_compile) 2>conftest.er1 4314 ac_status=$? 4315 grep -v '^ *+' conftest.er1 >conftest.err 4316 rm -f conftest.er1 4317 cat conftest.err >&5 4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4319 (exit $ac_status); } && 4320 { ac_try='test -z "$ac_c_werror_flag" 4321 || test ! -s conftest.err' 4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4323 (eval $ac_try) 2>&5 4324 ac_status=$? 4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4326 (exit $ac_status); }; } && 4327 { ac_try='test -s conftest.$ac_objext' 4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4329 (eval $ac_try) 2>&5 4330 ac_status=$? 4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4332 (exit $ac_status); }; }; then 4333 eval "$as_ac_Header=yes" 4334else 4335 echo "$as_me: failed program was:" >&5 4336sed 's/^/| /' conftest.$ac_ext >&5 4337 4338eval "$as_ac_Header=no" 4339fi 4340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4341fi 4342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4344if test `eval echo '${'$as_ac_Header'}'` = yes; then 4345 cat >>confdefs.h <<_ACEOF 4346#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4347_ACEOF 4348 4349fi 4350 4351done 4352 4353 4354 4355for ac_header in dlfcn.h 4356do 4357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4358if eval "test \"\${$as_ac_Header+set}\" = set"; then 4359 echo "$as_me:$LINENO: checking for $ac_header" >&5 4360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4361if eval "test \"\${$as_ac_Header+set}\" = set"; then 4362 echo $ECHO_N "(cached) $ECHO_C" >&6 4363fi 4364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4366else 4367 # Is the header compilable? 4368echo "$as_me:$LINENO: checking $ac_header usability" >&5 4369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4370cat >conftest.$ac_ext <<_ACEOF 4371/* confdefs.h. */ 4372_ACEOF 4373cat confdefs.h >>conftest.$ac_ext 4374cat >>conftest.$ac_ext <<_ACEOF 4375/* end confdefs.h. */ 4376$ac_includes_default 4377#include <$ac_header> 4378_ACEOF 4379rm -f conftest.$ac_objext 4380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4381 (eval $ac_compile) 2>conftest.er1 4382 ac_status=$? 4383 grep -v '^ *+' conftest.er1 >conftest.err 4384 rm -f conftest.er1 4385 cat conftest.err >&5 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); } && 4388 { ac_try='test -z "$ac_c_werror_flag" 4389 || test ! -s conftest.err' 4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4391 (eval $ac_try) 2>&5 4392 ac_status=$? 4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4394 (exit $ac_status); }; } && 4395 { ac_try='test -s conftest.$ac_objext' 4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4397 (eval $ac_try) 2>&5 4398 ac_status=$? 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4400 (exit $ac_status); }; }; then 4401 ac_header_compiler=yes 4402else 4403 echo "$as_me: failed program was:" >&5 4404sed 's/^/| /' conftest.$ac_ext >&5 4405 4406ac_header_compiler=no 4407fi 4408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4409echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4410echo "${ECHO_T}$ac_header_compiler" >&6 4411 4412# Is the header present? 4413echo "$as_me:$LINENO: checking $ac_header presence" >&5 4414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4415cat >conftest.$ac_ext <<_ACEOF 4416/* confdefs.h. */ 4417_ACEOF 4418cat confdefs.h >>conftest.$ac_ext 4419cat >>conftest.$ac_ext <<_ACEOF 4420/* end confdefs.h. */ 4421#include <$ac_header> 4422_ACEOF 4423if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4425 ac_status=$? 4426 grep -v '^ *+' conftest.er1 >conftest.err 4427 rm -f conftest.er1 4428 cat conftest.err >&5 4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4430 (exit $ac_status); } >/dev/null; then 4431 if test -s conftest.err; then 4432 ac_cpp_err=$ac_c_preproc_warn_flag 4433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4434 else 4435 ac_cpp_err= 4436 fi 4437else 4438 ac_cpp_err=yes 4439fi 4440if test -z "$ac_cpp_err"; then 4441 ac_header_preproc=yes 4442else 4443 echo "$as_me: failed program was:" >&5 4444sed 's/^/| /' conftest.$ac_ext >&5 4445 4446 ac_header_preproc=no 4447fi 4448rm -f conftest.err conftest.$ac_ext 4449echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4450echo "${ECHO_T}$ac_header_preproc" >&6 4451 4452# So? What about this header? 4453case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4454 yes:no: ) 4455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4458echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4459 ac_header_preproc=yes 4460 ;; 4461 no:yes:* ) 4462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4463echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4465echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4467echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4469echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4471echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4473echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4474 ( 4475 cat <<\_ASBOX 4476## --------------------------------- ## 4477## Report this to the libusb lists. ## 4478## --------------------------------- ## 4479_ASBOX 4480 ) | 4481 sed "s/^/$as_me: WARNING: /" >&2 4482 ;; 4483esac 4484echo "$as_me:$LINENO: checking for $ac_header" >&5 4485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4486if eval "test \"\${$as_ac_Header+set}\" = set"; then 4487 echo $ECHO_N "(cached) $ECHO_C" >&6 4488else 4489 eval "$as_ac_Header=\$ac_header_preproc" 4490fi 4491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4493 4494fi 4495if test `eval echo '${'$as_ac_Header'}'` = yes; then 4496 cat >>confdefs.h <<_ACEOF 4497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4498_ACEOF 4499 4500fi 4501 4502done 4503 4504ac_ext=cc 4505ac_cpp='$CXXCPP $CPPFLAGS' 4506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4509if test -n "$ac_tool_prefix"; then 4510 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4511 do 4512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4513set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4514echo "$as_me:$LINENO: checking for $ac_word" >&5 4515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4516if test "${ac_cv_prog_CXX+set}" = set; then 4517 echo $ECHO_N "(cached) $ECHO_C" >&6 4518else 4519 if test -n "$CXX"; then 4520 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4521else 4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4523for as_dir in $PATH 4524do 4525 IFS=$as_save_IFS 4526 test -z "$as_dir" && as_dir=. 4527 for ac_exec_ext in '' $ac_executable_extensions; do 4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4529 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4531 break 2 4532 fi 4533done 4534done 4535 4536fi 4537fi 4538CXX=$ac_cv_prog_CXX 4539if test -n "$CXX"; then 4540 echo "$as_me:$LINENO: result: $CXX" >&5 4541echo "${ECHO_T}$CXX" >&6 4542else 4543 echo "$as_me:$LINENO: result: no" >&5 4544echo "${ECHO_T}no" >&6 4545fi 4546 4547 test -n "$CXX" && break 4548 done 4549fi 4550if test -z "$CXX"; then 4551 ac_ct_CXX=$CXX 4552 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4553do 4554 # Extract the first word of "$ac_prog", so it can be a program name with args. 4555set dummy $ac_prog; ac_word=$2 4556echo "$as_me:$LINENO: checking for $ac_word" >&5 4557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4558if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4559 echo $ECHO_N "(cached) $ECHO_C" >&6 4560else 4561 if test -n "$ac_ct_CXX"; then 4562 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4563else 4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4565for as_dir in $PATH 4566do 4567 IFS=$as_save_IFS 4568 test -z "$as_dir" && as_dir=. 4569 for ac_exec_ext in '' $ac_executable_extensions; do 4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4571 ac_cv_prog_ac_ct_CXX="$ac_prog" 4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4573 break 2 4574 fi 4575done 4576done 4577 4578fi 4579fi 4580ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4581if test -n "$ac_ct_CXX"; then 4582 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4583echo "${ECHO_T}$ac_ct_CXX" >&6 4584else 4585 echo "$as_me:$LINENO: result: no" >&5 4586echo "${ECHO_T}no" >&6 4587fi 4588 4589 test -n "$ac_ct_CXX" && break 4590done 4591test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4592 4593 CXX=$ac_ct_CXX 4594fi 4595 4596 4597# Provide some information about the compiler. 4598echo "$as_me:$LINENO:" \ 4599 "checking for C++ compiler version" >&5 4600ac_compiler=`set X $ac_compile; echo $2` 4601{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4602 (eval $ac_compiler --version </dev/null >&5) 2>&5 4603 ac_status=$? 4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4605 (exit $ac_status); } 4606{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4607 (eval $ac_compiler -v </dev/null >&5) 2>&5 4608 ac_status=$? 4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610 (exit $ac_status); } 4611{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4612 (eval $ac_compiler -V </dev/null >&5) 2>&5 4613 ac_status=$? 4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4615 (exit $ac_status); } 4616 4617echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4618echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4619if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4620 echo $ECHO_N "(cached) $ECHO_C" >&6 4621else 4622 cat >conftest.$ac_ext <<_ACEOF 4623/* confdefs.h. */ 4624_ACEOF 4625cat confdefs.h >>conftest.$ac_ext 4626cat >>conftest.$ac_ext <<_ACEOF 4627/* end confdefs.h. */ 4628 4629int 4630main () 4631{ 4632#ifndef __GNUC__ 4633 choke me 4634#endif 4635 4636 ; 4637 return 0; 4638} 4639_ACEOF 4640rm -f conftest.$ac_objext 4641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4642 (eval $ac_compile) 2>conftest.er1 4643 ac_status=$? 4644 grep -v '^ *+' conftest.er1 >conftest.err 4645 rm -f conftest.er1 4646 cat conftest.err >&5 4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4648 (exit $ac_status); } && 4649 { ac_try='test -z "$ac_cxx_werror_flag" 4650 || test ! -s conftest.err' 4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4652 (eval $ac_try) 2>&5 4653 ac_status=$? 4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4655 (exit $ac_status); }; } && 4656 { ac_try='test -s conftest.$ac_objext' 4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4658 (eval $ac_try) 2>&5 4659 ac_status=$? 4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4661 (exit $ac_status); }; }; then 4662 ac_compiler_gnu=yes 4663else 4664 echo "$as_me: failed program was:" >&5 4665sed 's/^/| /' conftest.$ac_ext >&5 4666 4667ac_compiler_gnu=no 4668fi 4669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4670ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4671 4672fi 4673echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4674echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4675GXX=`test $ac_compiler_gnu = yes && echo yes` 4676ac_test_CXXFLAGS=${CXXFLAGS+set} 4677ac_save_CXXFLAGS=$CXXFLAGS 4678CXXFLAGS="-g" 4679echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4680echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4681if test "${ac_cv_prog_cxx_g+set}" = set; then 4682 echo $ECHO_N "(cached) $ECHO_C" >&6 4683else 4684 cat >conftest.$ac_ext <<_ACEOF 4685/* confdefs.h. */ 4686_ACEOF 4687cat confdefs.h >>conftest.$ac_ext 4688cat >>conftest.$ac_ext <<_ACEOF 4689/* end confdefs.h. */ 4690 4691int 4692main () 4693{ 4694 4695 ; 4696 return 0; 4697} 4698_ACEOF 4699rm -f conftest.$ac_objext 4700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4701 (eval $ac_compile) 2>conftest.er1 4702 ac_status=$? 4703 grep -v '^ *+' conftest.er1 >conftest.err 4704 rm -f conftest.er1 4705 cat conftest.err >&5 4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4707 (exit $ac_status); } && 4708 { ac_try='test -z "$ac_cxx_werror_flag" 4709 || test ! -s conftest.err' 4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4711 (eval $ac_try) 2>&5 4712 ac_status=$? 4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4714 (exit $ac_status); }; } && 4715 { ac_try='test -s conftest.$ac_objext' 4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4717 (eval $ac_try) 2>&5 4718 ac_status=$? 4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4720 (exit $ac_status); }; }; then 4721 ac_cv_prog_cxx_g=yes 4722else 4723 echo "$as_me: failed program was:" >&5 4724sed 's/^/| /' conftest.$ac_ext >&5 4725 4726ac_cv_prog_cxx_g=no 4727fi 4728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4729fi 4730echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4731echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4732if test "$ac_test_CXXFLAGS" = set; then 4733 CXXFLAGS=$ac_save_CXXFLAGS 4734elif test $ac_cv_prog_cxx_g = yes; then 4735 if test "$GXX" = yes; then 4736 CXXFLAGS="-g -O2" 4737 else 4738 CXXFLAGS="-g" 4739 fi 4740else 4741 if test "$GXX" = yes; then 4742 CXXFLAGS="-O2" 4743 else 4744 CXXFLAGS= 4745 fi 4746fi 4747for ac_declaration in \ 4748 '' \ 4749 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4750 'extern "C" void std::exit (int); using std::exit;' \ 4751 'extern "C" void exit (int) throw ();' \ 4752 'extern "C" void exit (int);' \ 4753 'void exit (int);' 4754do 4755 cat >conftest.$ac_ext <<_ACEOF 4756/* confdefs.h. */ 4757_ACEOF 4758cat confdefs.h >>conftest.$ac_ext 4759cat >>conftest.$ac_ext <<_ACEOF 4760/* end confdefs.h. */ 4761$ac_declaration 4762#include <stdlib.h> 4763int 4764main () 4765{ 4766exit (42); 4767 ; 4768 return 0; 4769} 4770_ACEOF 4771rm -f conftest.$ac_objext 4772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4773 (eval $ac_compile) 2>conftest.er1 4774 ac_status=$? 4775 grep -v '^ *+' conftest.er1 >conftest.err 4776 rm -f conftest.er1 4777 cat conftest.err >&5 4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4779 (exit $ac_status); } && 4780 { ac_try='test -z "$ac_cxx_werror_flag" 4781 || test ! -s conftest.err' 4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4783 (eval $ac_try) 2>&5 4784 ac_status=$? 4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4786 (exit $ac_status); }; } && 4787 { ac_try='test -s conftest.$ac_objext' 4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4789 (eval $ac_try) 2>&5 4790 ac_status=$? 4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4792 (exit $ac_status); }; }; then 4793 : 4794else 4795 echo "$as_me: failed program was:" >&5 4796sed 's/^/| /' conftest.$ac_ext >&5 4797 4798continue 4799fi 4800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4801 cat >conftest.$ac_ext <<_ACEOF 4802/* confdefs.h. */ 4803_ACEOF 4804cat confdefs.h >>conftest.$ac_ext 4805cat >>conftest.$ac_ext <<_ACEOF 4806/* end confdefs.h. */ 4807$ac_declaration 4808int 4809main () 4810{ 4811exit (42); 4812 ; 4813 return 0; 4814} 4815_ACEOF 4816rm -f conftest.$ac_objext 4817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4818 (eval $ac_compile) 2>conftest.er1 4819 ac_status=$? 4820 grep -v '^ *+' conftest.er1 >conftest.err 4821 rm -f conftest.er1 4822 cat conftest.err >&5 4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4824 (exit $ac_status); } && 4825 { ac_try='test -z "$ac_cxx_werror_flag" 4826 || test ! -s conftest.err' 4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4828 (eval $ac_try) 2>&5 4829 ac_status=$? 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); }; } && 4832 { ac_try='test -s conftest.$ac_objext' 4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4834 (eval $ac_try) 2>&5 4835 ac_status=$? 4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4837 (exit $ac_status); }; }; then 4838 break 4839else 4840 echo "$as_me: failed program was:" >&5 4841sed 's/^/| /' conftest.$ac_ext >&5 4842 4843fi 4844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4845done 4846rm -f conftest* 4847if test -n "$ac_declaration"; then 4848 echo '#ifdef __cplusplus' >>confdefs.h 4849 echo $ac_declaration >>confdefs.h 4850 echo '#endif' >>confdefs.h 4851fi 4852 4853ac_ext=cc 4854ac_cpp='$CXXCPP $CPPFLAGS' 4855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4858 4859depcc="$CXX" am_compiler_list= 4860 4861echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4862echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4863if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4864 echo $ECHO_N "(cached) $ECHO_C" >&6 4865else 4866 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4867 # We make a subdir and do the tests there. Otherwise we can end up 4868 # making bogus files that we don't know about and never remove. For 4869 # instance it was reported that on HP-UX the gcc test will end up 4870 # making a dummy file named `D' -- because `-MD' means `put the output 4871 # in D'. 4872 mkdir conftest.dir 4873 # Copy depcomp to subdir because otherwise we won't find it if we're 4874 # using a relative directory. 4875 cp "$am_depcomp" conftest.dir 4876 cd conftest.dir 4877 # We will build objects and dependencies in a subdirectory because 4878 # it helps to detect inapplicable dependency modes. For instance 4879 # both Tru64's cc and ICC support -MD to output dependencies as a 4880 # side effect of compilation, but ICC will put the dependencies in 4881 # the current directory while Tru64 will put them in the object 4882 # directory. 4883 mkdir sub 4884 4885 am_cv_CXX_dependencies_compiler_type=none 4886 if test "$am_compiler_list" = ""; then 4887 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4888 fi 4889 for depmode in $am_compiler_list; do 4890 # Setup a source with many dependencies, because some compilers 4891 # like to wrap large dependency lists on column 80 (with \), and 4892 # we should not choose a depcomp mode which is confused by this. 4893 # 4894 # We need to recreate these files for each test, as the compiler may 4895 # overwrite some of them when testing with obscure command lines. 4896 # This happens at least with the AIX C compiler. 4897 : > sub/conftest.c 4898 for i in 1 2 3 4 5 6; do 4899 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4900 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4901 # Solaris 8's {/usr,}/bin/sh. 4902 touch sub/conftst$i.h 4903 done 4904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4905 4906 case $depmode in 4907 nosideeffect) 4908 # after this tag, mechanisms are not by side-effect, so they'll 4909 # only be used when explicitly requested 4910 if test "x$enable_dependency_tracking" = xyes; then 4911 continue 4912 else 4913 break 4914 fi 4915 ;; 4916 none) break ;; 4917 esac 4918 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4919 # mode. It turns out that the SunPro C++ compiler does not properly 4920 # handle `-M -o', and we need to detect this. 4921 if depmode=$depmode \ 4922 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4923 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4924 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4925 >/dev/null 2>conftest.err && 4926 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4927 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4928 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4929 # icc doesn't choke on unknown options, it will just issue warnings 4930 # (even with -Werror). So we grep stderr for any message 4931 # that says an option was ignored. 4932 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 4933 am_cv_CXX_dependencies_compiler_type=$depmode 4934 break 4935 fi 4936 fi 4937 done 4938 4939 cd .. 4940 rm -rf conftest.dir 4941else 4942 am_cv_CXX_dependencies_compiler_type=none 4943fi 4944 4945fi 4946echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4947echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4948CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4949 4950 4951 4952if 4953 test "x$enable_dependency_tracking" != xno \ 4954 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4955 am__fastdepCXX_TRUE= 4956 am__fastdepCXX_FALSE='#' 4957else 4958 am__fastdepCXX_TRUE='#' 4959 am__fastdepCXX_FALSE= 4960fi 4961 4962 4963ac_ext=cc 4964ac_cpp='$CXXCPP $CPPFLAGS' 4965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4968echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4969echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4970if test -z "$CXXCPP"; then 4971 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4972 echo $ECHO_N "(cached) $ECHO_C" >&6 4973else 4974 # Double quotes because CXXCPP needs to be expanded 4975 for CXXCPP in "$CXX -E" "/lib/cpp" 4976 do 4977 ac_preproc_ok=false 4978for ac_cxx_preproc_warn_flag in '' yes 4979do 4980 # Use a header file that comes with gcc, so configuring glibc 4981 # with a fresh cross-compiler works. 4982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4983 # <limits.h> exists even on freestanding compilers. 4984 # On the NeXT, cc -E runs the code through the compiler's parser, 4985 # not just through cpp. "Syntax error" is here to catch this case. 4986 cat >conftest.$ac_ext <<_ACEOF 4987/* confdefs.h. */ 4988_ACEOF 4989cat confdefs.h >>conftest.$ac_ext 4990cat >>conftest.$ac_ext <<_ACEOF 4991/* end confdefs.h. */ 4992#ifdef __STDC__ 4993# include <limits.h> 4994#else 4995# include <assert.h> 4996#endif 4997 Syntax error 4998_ACEOF 4999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5001 ac_status=$? 5002 grep -v '^ *+' conftest.er1 >conftest.err 5003 rm -f conftest.er1 5004 cat conftest.err >&5 5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5006 (exit $ac_status); } >/dev/null; then 5007 if test -s conftest.err; then 5008 ac_cpp_err=$ac_cxx_preproc_warn_flag 5009 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5010 else 5011 ac_cpp_err= 5012 fi 5013else 5014 ac_cpp_err=yes 5015fi 5016if test -z "$ac_cpp_err"; then 5017 : 5018else 5019 echo "$as_me: failed program was:" >&5 5020sed 's/^/| /' conftest.$ac_ext >&5 5021 5022 # Broken: fails on valid input. 5023continue 5024fi 5025rm -f conftest.err conftest.$ac_ext 5026 5027 # OK, works on sane cases. Now check whether non-existent headers 5028 # can be detected and how. 5029 cat >conftest.$ac_ext <<_ACEOF 5030/* confdefs.h. */ 5031_ACEOF 5032cat confdefs.h >>conftest.$ac_ext 5033cat >>conftest.$ac_ext <<_ACEOF 5034/* end confdefs.h. */ 5035#include <ac_nonexistent.h> 5036_ACEOF 5037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5039 ac_status=$? 5040 grep -v '^ *+' conftest.er1 >conftest.err 5041 rm -f conftest.er1 5042 cat conftest.err >&5 5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5044 (exit $ac_status); } >/dev/null; then 5045 if test -s conftest.err; then 5046 ac_cpp_err=$ac_cxx_preproc_warn_flag 5047 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5048 else 5049 ac_cpp_err= 5050 fi 5051else 5052 ac_cpp_err=yes 5053fi 5054if test -z "$ac_cpp_err"; then 5055 # Broken: success on invalid input. 5056continue 5057else 5058 echo "$as_me: failed program was:" >&5 5059sed 's/^/| /' conftest.$ac_ext >&5 5060 5061 # Passes both tests. 5062ac_preproc_ok=: 5063break 5064fi 5065rm -f conftest.err conftest.$ac_ext 5066 5067done 5068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5069rm -f conftest.err conftest.$ac_ext 5070if $ac_preproc_ok; then 5071 break 5072fi 5073 5074 done 5075 ac_cv_prog_CXXCPP=$CXXCPP 5076 5077fi 5078 CXXCPP=$ac_cv_prog_CXXCPP 5079else 5080 ac_cv_prog_CXXCPP=$CXXCPP 5081fi 5082echo "$as_me:$LINENO: result: $CXXCPP" >&5 5083echo "${ECHO_T}$CXXCPP" >&6 5084ac_preproc_ok=false 5085for ac_cxx_preproc_warn_flag in '' yes 5086do 5087 # Use a header file that comes with gcc, so configuring glibc 5088 # with a fresh cross-compiler works. 5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5090 # <limits.h> exists even on freestanding compilers. 5091 # On the NeXT, cc -E runs the code through the compiler's parser, 5092 # not just through cpp. "Syntax error" is here to catch this case. 5093 cat >conftest.$ac_ext <<_ACEOF 5094/* confdefs.h. */ 5095_ACEOF 5096cat confdefs.h >>conftest.$ac_ext 5097cat >>conftest.$ac_ext <<_ACEOF 5098/* end confdefs.h. */ 5099#ifdef __STDC__ 5100# include <limits.h> 5101#else 5102# include <assert.h> 5103#endif 5104 Syntax error 5105_ACEOF 5106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5108 ac_status=$? 5109 grep -v '^ *+' conftest.er1 >conftest.err 5110 rm -f conftest.er1 5111 cat conftest.err >&5 5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5113 (exit $ac_status); } >/dev/null; then 5114 if test -s conftest.err; then 5115 ac_cpp_err=$ac_cxx_preproc_warn_flag 5116 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5117 else 5118 ac_cpp_err= 5119 fi 5120else 5121 ac_cpp_err=yes 5122fi 5123if test -z "$ac_cpp_err"; then 5124 : 5125else 5126 echo "$as_me: failed program was:" >&5 5127sed 's/^/| /' conftest.$ac_ext >&5 5128 5129 # Broken: fails on valid input. 5130continue 5131fi 5132rm -f conftest.err conftest.$ac_ext 5133 5134 # OK, works on sane cases. Now check whether non-existent headers 5135 # can be detected and how. 5136 cat >conftest.$ac_ext <<_ACEOF 5137/* confdefs.h. */ 5138_ACEOF 5139cat confdefs.h >>conftest.$ac_ext 5140cat >>conftest.$ac_ext <<_ACEOF 5141/* end confdefs.h. */ 5142#include <ac_nonexistent.h> 5143_ACEOF 5144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5146 ac_status=$? 5147 grep -v '^ *+' conftest.er1 >conftest.err 5148 rm -f conftest.er1 5149 cat conftest.err >&5 5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5151 (exit $ac_status); } >/dev/null; then 5152 if test -s conftest.err; then 5153 ac_cpp_err=$ac_cxx_preproc_warn_flag 5154 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5155 else 5156 ac_cpp_err= 5157 fi 5158else 5159 ac_cpp_err=yes 5160fi 5161if test -z "$ac_cpp_err"; then 5162 # Broken: success on invalid input. 5163continue 5164else 5165 echo "$as_me: failed program was:" >&5 5166sed 's/^/| /' conftest.$ac_ext >&5 5167 5168 # Passes both tests. 5169ac_preproc_ok=: 5170break 5171fi 5172rm -f conftest.err conftest.$ac_ext 5173 5174done 5175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5176rm -f conftest.err conftest.$ac_ext 5177if $ac_preproc_ok; then 5178 : 5179else 5180 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5181See \`config.log' for more details." >&5 5182echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5183See \`config.log' for more details." >&2;} 5184 { (exit 1); exit 1; }; } 5185fi 5186 5187ac_ext=cc 5188ac_cpp='$CXXCPP $CPPFLAGS' 5189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5192 5193 5194ac_ext=f 5195ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5196ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5197ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5198if test -n "$ac_tool_prefix"; then 5199 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5200 do 5201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5202set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5203echo "$as_me:$LINENO: checking for $ac_word" >&5 5204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5205if test "${ac_cv_prog_F77+set}" = set; then 5206 echo $ECHO_N "(cached) $ECHO_C" >&6 5207else 5208 if test -n "$F77"; then 5209 ac_cv_prog_F77="$F77" # Let the user override the test. 5210else 5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5212for as_dir in $PATH 5213do 5214 IFS=$as_save_IFS 5215 test -z "$as_dir" && as_dir=. 5216 for ac_exec_ext in '' $ac_executable_extensions; do 5217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5218 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5220 break 2 5221 fi 5222done 5223done 5224 5225fi 5226fi 5227F77=$ac_cv_prog_F77 5228if test -n "$F77"; then 5229 echo "$as_me:$LINENO: result: $F77" >&5 5230echo "${ECHO_T}$F77" >&6 5231else 5232 echo "$as_me:$LINENO: result: no" >&5 5233echo "${ECHO_T}no" >&6 5234fi 5235 5236 test -n "$F77" && break 5237 done 5238fi 5239if test -z "$F77"; then 5240 ac_ct_F77=$F77 5241 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5242do 5243 # Extract the first word of "$ac_prog", so it can be a program name with args. 5244set dummy $ac_prog; ac_word=$2 5245echo "$as_me:$LINENO: checking for $ac_word" >&5 5246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5247if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5248 echo $ECHO_N "(cached) $ECHO_C" >&6 5249else 5250 if test -n "$ac_ct_F77"; then 5251 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5252else 5253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5254for as_dir in $PATH 5255do 5256 IFS=$as_save_IFS 5257 test -z "$as_dir" && as_dir=. 5258 for ac_exec_ext in '' $ac_executable_extensions; do 5259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5260 ac_cv_prog_ac_ct_F77="$ac_prog" 5261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5262 break 2 5263 fi 5264done 5265done 5266 5267fi 5268fi 5269ac_ct_F77=$ac_cv_prog_ac_ct_F77 5270if test -n "$ac_ct_F77"; then 5271 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5272echo "${ECHO_T}$ac_ct_F77" >&6 5273else 5274 echo "$as_me:$LINENO: result: no" >&5 5275echo "${ECHO_T}no" >&6 5276fi 5277 5278 test -n "$ac_ct_F77" && break 5279done 5280 5281 F77=$ac_ct_F77 5282fi 5283 5284 5285# Provide some information about the compiler. 5286echo "$as_me:5286:" \ 5287 "checking for Fortran 77 compiler version" >&5 5288ac_compiler=`set X $ac_compile; echo $2` 5289{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5290 (eval $ac_compiler --version </dev/null >&5) 2>&5 5291 ac_status=$? 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); } 5294{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5295 (eval $ac_compiler -v </dev/null >&5) 2>&5 5296 ac_status=$? 5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5298 (exit $ac_status); } 5299{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5300 (eval $ac_compiler -V </dev/null >&5) 2>&5 5301 ac_status=$? 5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5303 (exit $ac_status); } 5304rm -f a.out 5305 5306# If we don't use `.F' as extension, the preprocessor is not run on the 5307# input file. (Note that this only needs to work for GNU compilers.) 5308ac_save_ext=$ac_ext 5309ac_ext=F 5310echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5311echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5312if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5313 echo $ECHO_N "(cached) $ECHO_C" >&6 5314else 5315 cat >conftest.$ac_ext <<_ACEOF 5316 program main 5317#ifndef __GNUC__ 5318 choke me 5319#endif 5320 5321 end 5322_ACEOF 5323rm -f conftest.$ac_objext 5324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5325 (eval $ac_compile) 2>conftest.er1 5326 ac_status=$? 5327 grep -v '^ *+' conftest.er1 >conftest.err 5328 rm -f conftest.er1 5329 cat conftest.err >&5 5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 (exit $ac_status); } && 5332 { ac_try='test -z "$ac_f77_werror_flag" 5333 || test ! -s conftest.err' 5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5335 (eval $ac_try) 2>&5 5336 ac_status=$? 5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 (exit $ac_status); }; } && 5339 { ac_try='test -s conftest.$ac_objext' 5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5341 (eval $ac_try) 2>&5 5342 ac_status=$? 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); }; }; then 5345 ac_compiler_gnu=yes 5346else 5347 echo "$as_me: failed program was:" >&5 5348sed 's/^/| /' conftest.$ac_ext >&5 5349 5350ac_compiler_gnu=no 5351fi 5352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5353ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5354 5355fi 5356echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5357echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5358ac_ext=$ac_save_ext 5359ac_test_FFLAGS=${FFLAGS+set} 5360ac_save_FFLAGS=$FFLAGS 5361FFLAGS= 5362echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5363echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5364if test "${ac_cv_prog_f77_g+set}" = set; then 5365 echo $ECHO_N "(cached) $ECHO_C" >&6 5366else 5367 FFLAGS=-g 5368cat >conftest.$ac_ext <<_ACEOF 5369 program main 5370 5371 end 5372_ACEOF 5373rm -f conftest.$ac_objext 5374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5375 (eval $ac_compile) 2>conftest.er1 5376 ac_status=$? 5377 grep -v '^ *+' conftest.er1 >conftest.err 5378 rm -f conftest.er1 5379 cat conftest.err >&5 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5381 (exit $ac_status); } && 5382 { ac_try='test -z "$ac_f77_werror_flag" 5383 || test ! -s conftest.err' 5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5385 (eval $ac_try) 2>&5 5386 ac_status=$? 5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5388 (exit $ac_status); }; } && 5389 { ac_try='test -s conftest.$ac_objext' 5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5391 (eval $ac_try) 2>&5 5392 ac_status=$? 5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5394 (exit $ac_status); }; }; then 5395 ac_cv_prog_f77_g=yes 5396else 5397 echo "$as_me: failed program was:" >&5 5398sed 's/^/| /' conftest.$ac_ext >&5 5399 5400ac_cv_prog_f77_g=no 5401fi 5402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5403 5404fi 5405echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5406echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5407if test "$ac_test_FFLAGS" = set; then 5408 FFLAGS=$ac_save_FFLAGS 5409elif test $ac_cv_prog_f77_g = yes; then 5410 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5411 FFLAGS="-g -O2" 5412 else 5413 FFLAGS="-g" 5414 fi 5415else 5416 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5417 FFLAGS="-O2" 5418 else 5419 FFLAGS= 5420 fi 5421fi 5422 5423G77=`test $ac_compiler_gnu = yes && echo yes` 5424ac_ext=c 5425ac_cpp='$CPP $CPPFLAGS' 5426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5428ac_compiler_gnu=$ac_cv_c_compiler_gnu 5429 5430 5431 5432# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5433 5434# find the maximum length of command line arguments 5435echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5436echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5437if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5438 echo $ECHO_N "(cached) $ECHO_C" >&6 5439else 5440 i=0 5441 teststring="ABCD" 5442 5443 case $build_os in 5444 msdosdjgpp*) 5445 # On DJGPP, this test can blow up pretty badly due to problems in libc 5446 # (any single argument exceeding 2000 bytes causes a buffer overrun 5447 # during glob expansion). Even if it were fixed, the result of this 5448 # check would be larger than it should be. 5449 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5450 ;; 5451 5452 gnu*) 5453 # Under GNU Hurd, this test is not required because there is 5454 # no limit to the length of command line arguments. 5455 # Libtool will interpret -1 as no limit whatsoever 5456 lt_cv_sys_max_cmd_len=-1; 5457 ;; 5458 5459 cygwin* | mingw*) 5460 # On Win9x/ME, this test blows up -- it succeeds, but takes 5461 # about 5 minutes as the teststring grows exponentially. 5462 # Worse, since 9x/ME are not pre-emptively multitasking, 5463 # you end up with a "frozen" computer, even though with patience 5464 # the test eventually succeeds (with a max line length of 256k). 5465 # Instead, let's just punt: use the minimum linelength reported by 5466 # all of the supported platforms: 8192 (on NT/2K/XP). 5467 lt_cv_sys_max_cmd_len=8192; 5468 ;; 5469 5470 amigaos*) 5471 # On AmigaOS with pdksh, this test takes hours, literally. 5472 # So we just punt and use a minimum line length of 8192. 5473 lt_cv_sys_max_cmd_len=8192; 5474 ;; 5475 5476 *) 5477 # If test is not a shell built-in, we'll probably end up computing a 5478 # maximum length that is only half of the actual maximum length, but 5479 # we can't tell. 5480 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5481 = "XX$teststring") >/dev/null 2>&1 && 5482 new_result=`expr "X$teststring" : ".*" 2>&1` && 5483 lt_cv_sys_max_cmd_len=$new_result && 5484 test $i != 17 # 1/2 MB should be enough 5485 do 5486 i=`expr $i + 1` 5487 teststring=$teststring$teststring 5488 done 5489 teststring= 5490 # Add a significant safety factor because C++ compilers can tack on massive 5491 # amounts of additional arguments before passing them to the linker. 5492 # It appears as though 1/2 is a usable value. 5493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5494 ;; 5495 esac 5496 5497fi 5498 5499if test -n $lt_cv_sys_max_cmd_len ; then 5500 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5501echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5502else 5503 echo "$as_me:$LINENO: result: none" >&5 5504echo "${ECHO_T}none" >&6 5505fi 5506 5507 5508 5509 5510# Check for command to grab the raw symbol name followed by C symbol from nm. 5511echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5512echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5513if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5514 echo $ECHO_N "(cached) $ECHO_C" >&6 5515else 5516 5517# These are sane defaults that work on at least a few old systems. 5518# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5519 5520# Character class describing NM global symbol codes. 5521symcode='[BCDEGRST]' 5522 5523# Regexp to match symbols that can be accessed directly from C. 5524sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5525 5526# Transform the above into a raw symbol and a C symbol. 5527symxfrm='\1 \2\3 \3' 5528 5529# Transform an extracted symbol line into a proper C declaration 5530lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5531 5532# Transform an extracted symbol line into symbol name and symbol address 5533lt_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'" 5534 5535# Define system-specific variables. 5536case $host_os in 5537aix*) 5538 symcode='[BCDT]' 5539 ;; 5540cygwin* | mingw* | pw32*) 5541 symcode='[ABCDGISTW]' 5542 ;; 5543hpux*) # Its linker distinguishes data from code symbols 5544 if test "$host_cpu" = ia64; then 5545 symcode='[ABCDEGRST]' 5546 fi 5547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5548 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'" 5549 ;; 5550irix* | nonstopux*) 5551 symcode='[BCDEGRST]' 5552 ;; 5553osf*) 5554 symcode='[BCDEGQRST]' 5555 ;; 5556solaris* | sysv5*) 5557 symcode='[BDRT]' 5558 ;; 5559sysv4) 5560 symcode='[DFNSTU]' 5561 ;; 5562esac 5563 5564# Handle CRLF in mingw tool chain 5565opt_cr= 5566case $build_os in 5567mingw*) 5568 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5569 ;; 5570esac 5571 5572# If we're using GNU nm, then use its standard symbol codes. 5573case `$NM -V 2>&1` in 5574*GNU* | *'with BFD'*) 5575 symcode='[ABCDGIRSTW]' ;; 5576esac 5577 5578# Try without a prefix undercore, then with it. 5579for ac_symprfx in "" "_"; do 5580 5581 # Write the raw and C identifiers. 5582 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5583 5584 # Check to see that the pipe works correctly. 5585 pipe_works=no 5586 5587 rm -f conftest* 5588 cat > conftest.$ac_ext <<EOF 5589#ifdef __cplusplus 5590extern "C" { 5591#endif 5592char nm_test_var; 5593void nm_test_func(){} 5594#ifdef __cplusplus 5595} 5596#endif 5597int main(){nm_test_var='a';nm_test_func();return(0);} 5598EOF 5599 5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5601 (eval $ac_compile) 2>&5 5602 ac_status=$? 5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5604 (exit $ac_status); }; then 5605 # Now try to grab the symbols. 5606 nlist=conftest.nm 5607 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5608 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5609 ac_status=$? 5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5611 (exit $ac_status); } && test -s "$nlist"; then 5612 # Try sorting and uniquifying the output. 5613 if sort "$nlist" | uniq > "$nlist"T; then 5614 mv -f "$nlist"T "$nlist" 5615 else 5616 rm -f "$nlist"T 5617 fi 5618 5619 # Make sure that we snagged all the symbols we need. 5620 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5621 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5622 cat <<EOF > conftest.$ac_ext 5623#ifdef __cplusplus 5624extern "C" { 5625#endif 5626 5627EOF 5628 # Now generate the symbol file. 5629 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5630 5631 cat <<EOF >> conftest.$ac_ext 5632#if defined (__STDC__) && __STDC__ 5633# define lt_ptr_t void * 5634#else 5635# define lt_ptr_t char * 5636# define const 5637#endif 5638 5639/* The mapping between symbol names and symbols. */ 5640const struct { 5641 const char *name; 5642 lt_ptr_t address; 5643} 5644lt_preloaded_symbols[] = 5645{ 5646EOF 5647 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5648 cat <<\EOF >> conftest.$ac_ext 5649 {0, (lt_ptr_t) 0} 5650}; 5651 5652#ifdef __cplusplus 5653} 5654#endif 5655EOF 5656 # Now try linking the two files. 5657 mv conftest.$ac_objext conftstm.$ac_objext 5658 lt_save_LIBS="$LIBS" 5659 lt_save_CFLAGS="$CFLAGS" 5660 LIBS="conftstm.$ac_objext" 5661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5663 (eval $ac_link) 2>&5 5664 ac_status=$? 5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5666 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5667 pipe_works=yes 5668 fi 5669 LIBS="$lt_save_LIBS" 5670 CFLAGS="$lt_save_CFLAGS" 5671 else 5672 echo "cannot find nm_test_func in $nlist" >&5 5673 fi 5674 else 5675 echo "cannot find nm_test_var in $nlist" >&5 5676 fi 5677 else 5678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5679 fi 5680 else 5681 echo "$progname: failed program was:" >&5 5682 cat conftest.$ac_ext >&5 5683 fi 5684 rm -f conftest* conftst* 5685 5686 # Do not use the global_symbol_pipe unless it works. 5687 if test "$pipe_works" = yes; then 5688 break 5689 else 5690 lt_cv_sys_global_symbol_pipe= 5691 fi 5692done 5693 5694fi 5695 5696if test -z "$lt_cv_sys_global_symbol_pipe"; then 5697 lt_cv_sys_global_symbol_to_cdecl= 5698fi 5699if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5700 echo "$as_me:$LINENO: result: failed" >&5 5701echo "${ECHO_T}failed" >&6 5702else 5703 echo "$as_me:$LINENO: result: ok" >&5 5704echo "${ECHO_T}ok" >&6 5705fi 5706 5707echo "$as_me:$LINENO: checking for objdir" >&5 5708echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5709if test "${lt_cv_objdir+set}" = set; then 5710 echo $ECHO_N "(cached) $ECHO_C" >&6 5711else 5712 rm -f .libs 2>/dev/null 5713mkdir .libs 2>/dev/null 5714if test -d .libs; then 5715 lt_cv_objdir=.libs 5716else 5717 # MS-DOS does not allow filenames that begin with a dot. 5718 lt_cv_objdir=_libs 5719fi 5720rmdir .libs 2>/dev/null 5721fi 5722echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5723echo "${ECHO_T}$lt_cv_objdir" >&6 5724objdir=$lt_cv_objdir 5725 5726 5727 5728 5729 5730case $host_os in 5731aix3*) 5732 # AIX sometimes has problems with the GCC collect2 program. For some 5733 # reason, if we set the COLLECT_NAMES environment variable, the problems 5734 # vanish in a puff of smoke. 5735 if test "X${COLLECT_NAMES+set}" != Xset; then 5736 COLLECT_NAMES= 5737 export COLLECT_NAMES 5738 fi 5739 ;; 5740esac 5741 5742# Sed substitution that helps us do robust quoting. It backslashifies 5743# metacharacters that are still active within double-quoted strings. 5744Xsed='sed -e s/^X//' 5745sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5746 5747# Same as above, but do not quote variable references. 5748double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5749 5750# Sed substitution to delay expansion of an escaped shell variable in a 5751# double_quote_subst'ed string. 5752delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5753 5754# Sed substitution to avoid accidental globbing in evaled expressions 5755no_glob_subst='s/\*/\\\*/g' 5756 5757# Constants: 5758rm="rm -f" 5759 5760# Global variables: 5761default_ofile=libtool 5762can_build_shared=yes 5763 5764# All known linkers require a `.a' archive for static linking (except M$VC, 5765# which needs '.lib'). 5766libext=a 5767ltmain="$ac_aux_dir/ltmain.sh" 5768ofile="$default_ofile" 5769with_gnu_ld="$lt_cv_prog_gnu_ld" 5770 5771if test -n "$ac_tool_prefix"; then 5772 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5773set dummy ${ac_tool_prefix}ar; ac_word=$2 5774echo "$as_me:$LINENO: checking for $ac_word" >&5 5775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5776if test "${ac_cv_prog_AR+set}" = set; then 5777 echo $ECHO_N "(cached) $ECHO_C" >&6 5778else 5779 if test -n "$AR"; then 5780 ac_cv_prog_AR="$AR" # Let the user override the test. 5781else 5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5783for as_dir in $PATH 5784do 5785 IFS=$as_save_IFS 5786 test -z "$as_dir" && as_dir=. 5787 for ac_exec_ext in '' $ac_executable_extensions; do 5788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5789 ac_cv_prog_AR="${ac_tool_prefix}ar" 5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5791 break 2 5792 fi 5793done 5794done 5795 5796fi 5797fi 5798AR=$ac_cv_prog_AR 5799if test -n "$AR"; then 5800 echo "$as_me:$LINENO: result: $AR" >&5 5801echo "${ECHO_T}$AR" >&6 5802else 5803 echo "$as_me:$LINENO: result: no" >&5 5804echo "${ECHO_T}no" >&6 5805fi 5806 5807fi 5808if test -z "$ac_cv_prog_AR"; then 5809 ac_ct_AR=$AR 5810 # Extract the first word of "ar", so it can be a program name with args. 5811set dummy ar; ac_word=$2 5812echo "$as_me:$LINENO: checking for $ac_word" >&5 5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5814if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5815 echo $ECHO_N "(cached) $ECHO_C" >&6 5816else 5817 if test -n "$ac_ct_AR"; then 5818 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5819else 5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5821for as_dir in $PATH 5822do 5823 IFS=$as_save_IFS 5824 test -z "$as_dir" && as_dir=. 5825 for ac_exec_ext in '' $ac_executable_extensions; do 5826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5827 ac_cv_prog_ac_ct_AR="ar" 5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5829 break 2 5830 fi 5831done 5832done 5833 5834 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5835fi 5836fi 5837ac_ct_AR=$ac_cv_prog_ac_ct_AR 5838if test -n "$ac_ct_AR"; then 5839 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5840echo "${ECHO_T}$ac_ct_AR" >&6 5841else 5842 echo "$as_me:$LINENO: result: no" >&5 5843echo "${ECHO_T}no" >&6 5844fi 5845 5846 AR=$ac_ct_AR 5847else 5848 AR="$ac_cv_prog_AR" 5849fi 5850 5851if test -n "$ac_tool_prefix"; then 5852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5853set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5854echo "$as_me:$LINENO: checking for $ac_word" >&5 5855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5856if test "${ac_cv_prog_RANLIB+set}" = set; then 5857 echo $ECHO_N "(cached) $ECHO_C" >&6 5858else 5859 if test -n "$RANLIB"; then 5860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5861else 5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5863for as_dir in $PATH 5864do 5865 IFS=$as_save_IFS 5866 test -z "$as_dir" && as_dir=. 5867 for ac_exec_ext in '' $ac_executable_extensions; do 5868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5871 break 2 5872 fi 5873done 5874done 5875 5876fi 5877fi 5878RANLIB=$ac_cv_prog_RANLIB 5879if test -n "$RANLIB"; then 5880 echo "$as_me:$LINENO: result: $RANLIB" >&5 5881echo "${ECHO_T}$RANLIB" >&6 5882else 5883 echo "$as_me:$LINENO: result: no" >&5 5884echo "${ECHO_T}no" >&6 5885fi 5886 5887fi 5888if test -z "$ac_cv_prog_RANLIB"; then 5889 ac_ct_RANLIB=$RANLIB 5890 # Extract the first word of "ranlib", so it can be a program name with args. 5891set dummy ranlib; ac_word=$2 5892echo "$as_me:$LINENO: checking for $ac_word" >&5 5893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5895 echo $ECHO_N "(cached) $ECHO_C" >&6 5896else 5897 if test -n "$ac_ct_RANLIB"; then 5898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5899else 5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5901for as_dir in $PATH 5902do 5903 IFS=$as_save_IFS 5904 test -z "$as_dir" && as_dir=. 5905 for ac_exec_ext in '' $ac_executable_extensions; do 5906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5907 ac_cv_prog_ac_ct_RANLIB="ranlib" 5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5909 break 2 5910 fi 5911done 5912done 5913 5914 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5915fi 5916fi 5917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5918if test -n "$ac_ct_RANLIB"; then 5919 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5920echo "${ECHO_T}$ac_ct_RANLIB" >&6 5921else 5922 echo "$as_me:$LINENO: result: no" >&5 5923echo "${ECHO_T}no" >&6 5924fi 5925 5926 RANLIB=$ac_ct_RANLIB 5927else 5928 RANLIB="$ac_cv_prog_RANLIB" 5929fi 5930 5931if test -n "$ac_tool_prefix"; then 5932 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5933set dummy ${ac_tool_prefix}strip; ac_word=$2 5934echo "$as_me:$LINENO: checking for $ac_word" >&5 5935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5936if test "${ac_cv_prog_STRIP+set}" = set; then 5937 echo $ECHO_N "(cached) $ECHO_C" >&6 5938else 5939 if test -n "$STRIP"; then 5940 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5941else 5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5943for as_dir in $PATH 5944do 5945 IFS=$as_save_IFS 5946 test -z "$as_dir" && as_dir=. 5947 for ac_exec_ext in '' $ac_executable_extensions; do 5948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5949 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5951 break 2 5952 fi 5953done 5954done 5955 5956fi 5957fi 5958STRIP=$ac_cv_prog_STRIP 5959if test -n "$STRIP"; then 5960 echo "$as_me:$LINENO: result: $STRIP" >&5 5961echo "${ECHO_T}$STRIP" >&6 5962else 5963 echo "$as_me:$LINENO: result: no" >&5 5964echo "${ECHO_T}no" >&6 5965fi 5966 5967fi 5968if test -z "$ac_cv_prog_STRIP"; then 5969 ac_ct_STRIP=$STRIP 5970 # Extract the first word of "strip", so it can be a program name with args. 5971set dummy strip; ac_word=$2 5972echo "$as_me:$LINENO: checking for $ac_word" >&5 5973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5974if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5975 echo $ECHO_N "(cached) $ECHO_C" >&6 5976else 5977 if test -n "$ac_ct_STRIP"; then 5978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5979else 5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5981for as_dir in $PATH 5982do 5983 IFS=$as_save_IFS 5984 test -z "$as_dir" && as_dir=. 5985 for ac_exec_ext in '' $ac_executable_extensions; do 5986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5987 ac_cv_prog_ac_ct_STRIP="strip" 5988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5989 break 2 5990 fi 5991done 5992done 5993 5994 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5995fi 5996fi 5997ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5998if test -n "$ac_ct_STRIP"; then 5999 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6000echo "${ECHO_T}$ac_ct_STRIP" >&6 6001else 6002 echo "$as_me:$LINENO: result: no" >&5 6003echo "${ECHO_T}no" >&6 6004fi 6005 6006 STRIP=$ac_ct_STRIP 6007else 6008 STRIP="$ac_cv_prog_STRIP" 6009fi 6010 6011 6012old_CC="$CC" 6013old_CFLAGS="$CFLAGS" 6014 6015# Set sane defaults for various variables 6016test -z "$AR" && AR=ar 6017test -z "$AR_FLAGS" && AR_FLAGS=cru 6018test -z "$AS" && AS=as 6019test -z "$CC" && CC=cc 6020test -z "$LTCC" && LTCC=$CC 6021test -z "$DLLTOOL" && DLLTOOL=dlltool 6022test -z "$LD" && LD=ld 6023test -z "$LN_S" && LN_S="ln -s" 6024test -z "$MAGIC_CMD" && MAGIC_CMD=file 6025test -z "$NM" && NM=nm 6026test -z "$SED" && SED=sed 6027test -z "$OBJDUMP" && OBJDUMP=objdump 6028test -z "$RANLIB" && RANLIB=: 6029test -z "$STRIP" && STRIP=: 6030test -z "$ac_objext" && ac_objext=o 6031 6032# Determine commands to create old-style static archives. 6033old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6034old_postinstall_cmds='chmod 644 $oldlib' 6035old_postuninstall_cmds= 6036 6037if test -n "$RANLIB"; then 6038 case $host_os in 6039 openbsd*) 6040 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6041 ;; 6042 *) 6043 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6044 ;; 6045 esac 6046 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6047fi 6048 6049# Only perform the check for file, if the check method requires it 6050case $deplibs_check_method in 6051file_magic*) 6052 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6053 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6054echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6055if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6056 echo $ECHO_N "(cached) $ECHO_C" >&6 6057else 6058 case $MAGIC_CMD in 6059[\\/*] | ?:[\\/]*) 6060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6061 ;; 6062*) 6063 lt_save_MAGIC_CMD="$MAGIC_CMD" 6064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6066 for ac_dir in $ac_dummy; do 6067 IFS="$lt_save_ifs" 6068 test -z "$ac_dir" && ac_dir=. 6069 if test -f $ac_dir/${ac_tool_prefix}file; then 6070 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6071 if test -n "$file_magic_test_file"; then 6072 case $deplibs_check_method in 6073 "file_magic "*) 6074 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6077 $EGREP "$file_magic_regex" > /dev/null; then 6078 : 6079 else 6080 cat <<EOF 1>&2 6081 6082*** Warning: the command libtool uses to detect shared libraries, 6083*** $file_magic_cmd, produces output that libtool cannot recognize. 6084*** The result is that libtool may fail to recognize shared libraries 6085*** as such. This will affect the creation of libtool libraries that 6086*** depend on shared libraries, but programs linked with such libtool 6087*** libraries will work regardless of this problem. Nevertheless, you 6088*** may want to report the problem to your system manager and/or to 6089*** bug-libtool@gnu.org 6090 6091EOF 6092 fi ;; 6093 esac 6094 fi 6095 break 6096 fi 6097 done 6098 IFS="$lt_save_ifs" 6099 MAGIC_CMD="$lt_save_MAGIC_CMD" 6100 ;; 6101esac 6102fi 6103 6104MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6105if test -n "$MAGIC_CMD"; then 6106 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6107echo "${ECHO_T}$MAGIC_CMD" >&6 6108else 6109 echo "$as_me:$LINENO: result: no" >&5 6110echo "${ECHO_T}no" >&6 6111fi 6112 6113if test -z "$lt_cv_path_MAGIC_CMD"; then 6114 if test -n "$ac_tool_prefix"; then 6115 echo "$as_me:$LINENO: checking for file" >&5 6116echo $ECHO_N "checking for file... $ECHO_C" >&6 6117if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6118 echo $ECHO_N "(cached) $ECHO_C" >&6 6119else 6120 case $MAGIC_CMD in 6121[\\/*] | ?:[\\/]*) 6122 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6123 ;; 6124*) 6125 lt_save_MAGIC_CMD="$MAGIC_CMD" 6126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6128 for ac_dir in $ac_dummy; do 6129 IFS="$lt_save_ifs" 6130 test -z "$ac_dir" && ac_dir=. 6131 if test -f $ac_dir/file; then 6132 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6133 if test -n "$file_magic_test_file"; then 6134 case $deplibs_check_method in 6135 "file_magic "*) 6136 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6139 $EGREP "$file_magic_regex" > /dev/null; then 6140 : 6141 else 6142 cat <<EOF 1>&2 6143 6144*** Warning: the command libtool uses to detect shared libraries, 6145*** $file_magic_cmd, produces output that libtool cannot recognize. 6146*** The result is that libtool may fail to recognize shared libraries 6147*** as such. This will affect the creation of libtool libraries that 6148*** depend on shared libraries, but programs linked with such libtool 6149*** libraries will work regardless of this problem. Nevertheless, you 6150*** may want to report the problem to your system manager and/or to 6151*** bug-libtool@gnu.org 6152 6153EOF 6154 fi ;; 6155 esac 6156 fi 6157 break 6158 fi 6159 done 6160 IFS="$lt_save_ifs" 6161 MAGIC_CMD="$lt_save_MAGIC_CMD" 6162 ;; 6163esac 6164fi 6165 6166MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6167if test -n "$MAGIC_CMD"; then 6168 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6169echo "${ECHO_T}$MAGIC_CMD" >&6 6170else 6171 echo "$as_me:$LINENO: result: no" >&5 6172echo "${ECHO_T}no" >&6 6173fi 6174 6175 else 6176 MAGIC_CMD=: 6177 fi 6178fi 6179 6180 fi 6181 ;; 6182esac 6183 6184enable_dlopen=no 6185enable_win32_dll=no 6186 6187# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6188if test "${enable_libtool_lock+set}" = set; then 6189 enableval="$enable_libtool_lock" 6190 6191fi; 6192test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6193 6194 6195# Check whether --with-pic or --without-pic was given. 6196if test "${with_pic+set}" = set; then 6197 withval="$with_pic" 6198 pic_mode="$withval" 6199else 6200 pic_mode=default 6201fi; 6202test -z "$pic_mode" && pic_mode=default 6203 6204# Use C for the default configuration in the libtool script 6205tagname= 6206lt_save_CC="$CC" 6207ac_ext=c 6208ac_cpp='$CPP $CPPFLAGS' 6209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6211ac_compiler_gnu=$ac_cv_c_compiler_gnu 6212 6213 6214# Source file extension for C test sources. 6215ac_ext=c 6216 6217# Object file extension for compiled C test sources. 6218objext=o 6219objext=$objext 6220 6221# Code to be used in simple compile tests 6222lt_simple_compile_test_code="int some_variable = 0;\n" 6223 6224# Code to be used in simple link tests 6225lt_simple_link_test_code='int main(){return(0);}\n' 6226 6227 6228# If no C compiler was specified, use CC. 6229LTCC=${LTCC-"$CC"} 6230 6231# Allow CC to be a program name with arguments. 6232compiler=$CC 6233 6234 6235# 6236# Check for any special shared library compilation flags. 6237# 6238lt_prog_cc_shlib= 6239if test "$GCC" = no; then 6240 case $host_os in 6241 sco3.2v5*) 6242 lt_prog_cc_shlib='-belf' 6243 ;; 6244 esac 6245fi 6246if test -n "$lt_prog_cc_shlib"; then 6247 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6248echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6249 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6250 else 6251 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6252echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6253 lt_cv_prog_cc_can_build_shared=no 6254 fi 6255fi 6256 6257 6258# 6259# Check to make sure the static flag actually works. 6260# 6261echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6262echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6263if test "${lt_prog_compiler_static_works+set}" = set; then 6264 echo $ECHO_N "(cached) $ECHO_C" >&6 6265else 6266 lt_prog_compiler_static_works=no 6267 save_LDFLAGS="$LDFLAGS" 6268 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6269 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6271 # The compiler can only warn and ignore the option if not recognized 6272 # So say no if there are warnings 6273 if test -s conftest.err; then 6274 # Append any errors to the config.log. 6275 cat conftest.err 1>&5 6276 else 6277 lt_prog_compiler_static_works=yes 6278 fi 6279 fi 6280 $rm conftest* 6281 LDFLAGS="$save_LDFLAGS" 6282 6283fi 6284echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6285echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6286 6287if test x"$lt_prog_compiler_static_works" = xyes; then 6288 : 6289else 6290 lt_prog_compiler_static= 6291fi 6292 6293 6294 6295 6296lt_prog_compiler_no_builtin_flag= 6297 6298if test "$GCC" = yes; then 6299 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6300 6301 6302echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6303echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6304if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6305 echo $ECHO_N "(cached) $ECHO_C" >&6 6306else 6307 lt_cv_prog_compiler_rtti_exceptions=no 6308 ac_outfile=conftest.$ac_objext 6309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6310 lt_compiler_flag="-fno-rtti -fno-exceptions" 6311 # Insert the option either (1) after the last *FLAGS variable, or 6312 # (2) before a word containing "conftest.", or (3) at the end. 6313 # Note that $ac_compile itself does not contain backslashes and begins 6314 # with a dollar sign (not a hyphen), so the echo should work correctly. 6315 # The option is referenced via a variable to avoid confusing sed. 6316 lt_compile=`echo "$ac_compile" | $SED \ 6317 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6319 -e 's:$: $lt_compiler_flag:'` 6320 (eval echo "\"\$as_me:6320: $lt_compile\"" >&5) 6321 (eval "$lt_compile" 2>conftest.err) 6322 ac_status=$? 6323 cat conftest.err >&5 6324 echo "$as_me:6324: \$? = $ac_status" >&5 6325 if (exit $ac_status) && test -s "$ac_outfile"; then 6326 # The compiler can only warn and ignore the option if not recognized 6327 # So say no if there are warnings 6328 if test ! -s conftest.err; then 6329 lt_cv_prog_compiler_rtti_exceptions=yes 6330 fi 6331 fi 6332 $rm conftest* 6333 6334fi 6335echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6336echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6337 6338if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6339 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6340else 6341 : 6342fi 6343 6344fi 6345 6346lt_prog_compiler_wl= 6347lt_prog_compiler_pic= 6348lt_prog_compiler_static= 6349 6350echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6351echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6352 6353 if test "$GCC" = yes; then 6354 lt_prog_compiler_wl='-Wl,' 6355 lt_prog_compiler_static='-static' 6356 6357 case $host_os in 6358 aix*) 6359 # All AIX code is PIC. 6360 if test "$host_cpu" = ia64; then 6361 # AIX 5 now supports IA64 processor 6362 lt_prog_compiler_static='-Bstatic' 6363 fi 6364 ;; 6365 6366 amigaos*) 6367 # FIXME: we need at least 68020 code to build shared libraries, but 6368 # adding the `-m68020' flag to GCC prevents building anything better, 6369 # like `-m68040'. 6370 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6371 ;; 6372 6373 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6374 # PIC is the default for these OSes. 6375 ;; 6376 6377 mingw* | pw32* | os2*) 6378 # This hack is so that the source file can tell whether it is being 6379 # built for inclusion in a dll (and should export symbols for example). 6380 lt_prog_compiler_pic='-DDLL_EXPORT' 6381 ;; 6382 6383 darwin* | rhapsody*) 6384 # PIC is the default on this platform 6385 # Common symbols not allowed in MH_DYLIB files 6386 lt_prog_compiler_pic='-fno-common' 6387 ;; 6388 6389 msdosdjgpp*) 6390 # Just because we use GCC doesn't mean we suddenly get shared libraries 6391 # on systems that don't support them. 6392 lt_prog_compiler_can_build_shared=no 6393 enable_shared=no 6394 ;; 6395 6396 sysv4*MP*) 6397 if test -d /usr/nec; then 6398 lt_prog_compiler_pic=-Kconform_pic 6399 fi 6400 ;; 6401 6402 hpux*) 6403 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6404 # not for PA HP-UX. 6405 case "$host_cpu" in 6406 hppa*64*|ia64*) 6407 # +Z the default 6408 ;; 6409 *) 6410 lt_prog_compiler_pic='-fPIC' 6411 ;; 6412 esac 6413 ;; 6414 6415 *) 6416 lt_prog_compiler_pic='-fPIC' 6417 ;; 6418 esac 6419 else 6420 # PORTME Check for flag to pass linker flags through the system compiler. 6421 case $host_os in 6422 aix*) 6423 lt_prog_compiler_wl='-Wl,' 6424 if test "$host_cpu" = ia64; then 6425 # AIX 5 now supports IA64 processor 6426 lt_prog_compiler_static='-Bstatic' 6427 else 6428 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6429 fi 6430 ;; 6431 6432 mingw* | pw32* | os2*) 6433 # This hack is so that the source file can tell whether it is being 6434 # built for inclusion in a dll (and should export symbols for example). 6435 lt_prog_compiler_pic='-DDLL_EXPORT' 6436 ;; 6437 6438 hpux9* | hpux10* | hpux11*) 6439 lt_prog_compiler_wl='-Wl,' 6440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6441 # not for PA HP-UX. 6442 case "$host_cpu" in 6443 hppa*64*|ia64*) 6444 # +Z the default 6445 ;; 6446 *) 6447 lt_prog_compiler_pic='+Z' 6448 ;; 6449 esac 6450 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6451 lt_prog_compiler_static='${wl}-a ${wl}archive' 6452 ;; 6453 6454 irix5* | irix6* | nonstopux*) 6455 lt_prog_compiler_wl='-Wl,' 6456 # PIC (with -KPIC) is the default. 6457 lt_prog_compiler_static='-non_shared' 6458 ;; 6459 6460 newsos6) 6461 lt_prog_compiler_pic='-KPIC' 6462 lt_prog_compiler_static='-Bstatic' 6463 ;; 6464 6465 linux*) 6466 case $CC in 6467 icc* | ecc*) 6468 lt_prog_compiler_wl='-Wl,' 6469 lt_prog_compiler_pic='-KPIC' 6470 lt_prog_compiler_static='-static' 6471 ;; 6472 ccc*) 6473 lt_prog_compiler_wl='-Wl,' 6474 # All Alpha code is PIC. 6475 lt_prog_compiler_static='-non_shared' 6476 ;; 6477 esac 6478 ;; 6479 6480 osf3* | osf4* | osf5*) 6481 lt_prog_compiler_wl='-Wl,' 6482 # All OSF/1 code is PIC. 6483 lt_prog_compiler_static='-non_shared' 6484 ;; 6485 6486 sco3.2v5*) 6487 lt_prog_compiler_pic='-Kpic' 6488 lt_prog_compiler_static='-dn' 6489 ;; 6490 6491 solaris*) 6492 lt_prog_compiler_wl='-Wl,' 6493 lt_prog_compiler_pic='-KPIC' 6494 lt_prog_compiler_static='-Bstatic' 6495 ;; 6496 6497 sunos4*) 6498 lt_prog_compiler_wl='-Qoption ld ' 6499 lt_prog_compiler_pic='-PIC' 6500 lt_prog_compiler_static='-Bstatic' 6501 ;; 6502 6503 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6504 lt_prog_compiler_wl='-Wl,' 6505 lt_prog_compiler_pic='-KPIC' 6506 lt_prog_compiler_static='-Bstatic' 6507 ;; 6508 6509 sysv4*MP*) 6510 if test -d /usr/nec ;then 6511 lt_prog_compiler_pic='-Kconform_pic' 6512 lt_prog_compiler_static='-Bstatic' 6513 fi 6514 ;; 6515 6516 uts4*) 6517 lt_prog_compiler_pic='-pic' 6518 lt_prog_compiler_static='-Bstatic' 6519 ;; 6520 6521 *) 6522 lt_prog_compiler_can_build_shared=no 6523 ;; 6524 esac 6525 fi 6526 6527echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6528echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6529 6530# 6531# Check to make sure the PIC flag actually works. 6532# 6533if test -n "$lt_prog_compiler_pic"; then 6534 6535echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6536echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6537if test "${lt_prog_compiler_pic_works+set}" = set; then 6538 echo $ECHO_N "(cached) $ECHO_C" >&6 6539else 6540 lt_prog_compiler_pic_works=no 6541 ac_outfile=conftest.$ac_objext 6542 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6543 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6544 # Insert the option either (1) after the last *FLAGS variable, or 6545 # (2) before a word containing "conftest.", or (3) at the end. 6546 # Note that $ac_compile itself does not contain backslashes and begins 6547 # with a dollar sign (not a hyphen), so the echo should work correctly. 6548 # The option is referenced via a variable to avoid confusing sed. 6549 lt_compile=`echo "$ac_compile" | $SED \ 6550 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6552 -e 's:$: $lt_compiler_flag:'` 6553 (eval echo "\"\$as_me:6553: $lt_compile\"" >&5) 6554 (eval "$lt_compile" 2>conftest.err) 6555 ac_status=$? 6556 cat conftest.err >&5 6557 echo "$as_me:6557: \$? = $ac_status" >&5 6558 if (exit $ac_status) && test -s "$ac_outfile"; then 6559 # The compiler can only warn and ignore the option if not recognized 6560 # So say no if there are warnings 6561 if test ! -s conftest.err; then 6562 lt_prog_compiler_pic_works=yes 6563 fi 6564 fi 6565 $rm conftest* 6566 6567fi 6568echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6569echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6570 6571if test x"$lt_prog_compiler_pic_works" = xyes; then 6572 case $lt_prog_compiler_pic in 6573 "" | " "*) ;; 6574 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6575 esac 6576else 6577 lt_prog_compiler_pic= 6578 lt_prog_compiler_can_build_shared=no 6579fi 6580 6581fi 6582case "$host_os" in 6583 # For platforms which do not support PIC, -DPIC is meaningless: 6584 *djgpp*) 6585 lt_prog_compiler_pic= 6586 ;; 6587 *) 6588 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6589 ;; 6590esac 6591 6592echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6593echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6594if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6595 echo $ECHO_N "(cached) $ECHO_C" >&6 6596else 6597 lt_cv_prog_compiler_c_o=no 6598 $rm -r conftest 2>/dev/null 6599 mkdir conftest 6600 cd conftest 6601 mkdir out 6602 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6603 6604 lt_compiler_flag="-o out/conftest2.$ac_objext" 6605 # Insert the option either (1) after the last *FLAGS variable, or 6606 # (2) before a word containing "conftest.", or (3) at the end. 6607 # Note that $ac_compile itself does not contain backslashes and begins 6608 # with a dollar sign (not a hyphen), so the echo should work correctly. 6609 lt_compile=`echo "$ac_compile" | $SED \ 6610 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6612 -e 's:$: $lt_compiler_flag:'` 6613 (eval echo "\"\$as_me:6613: $lt_compile\"" >&5) 6614 (eval "$lt_compile" 2>out/conftest.err) 6615 ac_status=$? 6616 cat out/conftest.err >&5 6617 echo "$as_me:6617: \$? = $ac_status" >&5 6618 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6619 then 6620 # The compiler can only warn and ignore the option if not recognized 6621 # So say no if there are warnings 6622 if test ! -s out/conftest.err; then 6623 lt_cv_prog_compiler_c_o=yes 6624 fi 6625 fi 6626 chmod u+w . 6627 $rm conftest* 6628 # SGI C++ compiler will create directory out/ii_files/ for 6629 # template instantiation 6630 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6631 $rm out/* && rmdir out 6632 cd .. 6633 rmdir conftest 6634 $rm conftest* 6635 6636fi 6637echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6638echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6639 6640 6641hard_links="nottested" 6642if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6643 # do not overwrite the value of need_locks provided by the user 6644 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6645echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6646 hard_links=yes 6647 $rm conftest* 6648 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6649 touch conftest.a 6650 ln conftest.a conftest.b 2>&5 || hard_links=no 6651 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6652 echo "$as_me:$LINENO: result: $hard_links" >&5 6653echo "${ECHO_T}$hard_links" >&6 6654 if test "$hard_links" = no; then 6655 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6656echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6657 need_locks=warn 6658 fi 6659else 6660 need_locks=no 6661fi 6662 6663echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6664echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6665 6666 runpath_var= 6667 allow_undefined_flag= 6668 enable_shared_with_static_runtimes=no 6669 archive_cmds= 6670 archive_expsym_cmds= 6671 old_archive_From_new_cmds= 6672 old_archive_from_expsyms_cmds= 6673 export_dynamic_flag_spec= 6674 whole_archive_flag_spec= 6675 thread_safe_flag_spec= 6676 hardcode_libdir_flag_spec= 6677 hardcode_libdir_flag_spec_ld= 6678 hardcode_libdir_separator= 6679 hardcode_direct=no 6680 hardcode_minus_L=no 6681 hardcode_shlibpath_var=unsupported 6682 link_all_deplibs=unknown 6683 hardcode_automatic=no 6684 module_cmds= 6685 module_expsym_cmds= 6686 always_export_symbols=no 6687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6688 # include_expsyms should be a list of space-separated symbols to be *always* 6689 # included in the symbol list 6690 include_expsyms= 6691 # exclude_expsyms can be an extended regexp of symbols to exclude 6692 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6693 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6694 # as well as any symbol that contains `d'. 6695 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6696 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6697 # platforms (ab)use it in PIC code, but their linkers get confused if 6698 # the symbol is explicitly referenced. Since portable code cannot 6699 # rely on this symbol name, it's probably fine to never include it in 6700 # preloaded symbol tables. 6701 extract_expsyms_cmds= 6702 6703 case $host_os in 6704 cygwin* | mingw* | pw32*) 6705 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6706 # When not using gcc, we currently assume that we are using 6707 # Microsoft Visual C++. 6708 if test "$GCC" != yes; then 6709 with_gnu_ld=no 6710 fi 6711 ;; 6712 openbsd*) 6713 with_gnu_ld=no 6714 ;; 6715 esac 6716 6717 ld_shlibs=yes 6718 if test "$with_gnu_ld" = yes; then 6719 # If archive_cmds runs LD, not CC, wlarc should be empty 6720 wlarc='${wl}' 6721 6722 # See if GNU ld supports shared libraries. 6723 case $host_os in 6724 aix3* | aix4* | aix5*) 6725 # On AIX/PPC, the GNU linker is very broken 6726 if test "$host_cpu" != ia64; then 6727 ld_shlibs=no 6728 cat <<EOF 1>&2 6729 6730*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6731*** to be unable to reliably create shared libraries on AIX. 6732*** Therefore, libtool is disabling shared libraries support. If you 6733*** really care for shared libraries, you may want to modify your PATH 6734*** so that a non-GNU linker is found, and then restart. 6735 6736EOF 6737 fi 6738 ;; 6739 6740 amigaos*) 6741 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)' 6742 hardcode_libdir_flag_spec='-L$libdir' 6743 hardcode_minus_L=yes 6744 6745 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6746 # that the semantics of dynamic libraries on AmigaOS, at least up 6747 # to version 4, is to share data among multiple programs linked 6748 # with the same dynamic library. Since this doesn't match the 6749 # behavior of shared libraries on other platforms, we can't use 6750 # them. 6751 ld_shlibs=no 6752 ;; 6753 6754 beos*) 6755 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6756 allow_undefined_flag=unsupported 6757 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6758 # support --undefined. This deserves some investigation. FIXME 6759 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6760 else 6761 ld_shlibs=no 6762 fi 6763 ;; 6764 6765 cygwin* | mingw* | pw32*) 6766 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6767 # as there is no search path for DLLs. 6768 hardcode_libdir_flag_spec='-L$libdir' 6769 allow_undefined_flag=unsupported 6770 always_export_symbols=no 6771 enable_shared_with_static_runtimes=yes 6772 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6773 6774 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6776 # If the export-symbols file already is a .def file (1st line 6777 # is EXPORTS), use it as is; otherwise, prepend... 6778 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6779 cp $export_symbols $output_objdir/$soname.def; 6780 else 6781 echo EXPORTS > $output_objdir/$soname.def; 6782 cat $export_symbols >> $output_objdir/$soname.def; 6783 fi~ 6784 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6785 else 6786 ld_shlibs=no 6787 fi 6788 ;; 6789 6790 netbsd*) 6791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6792 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6793 wlarc= 6794 else 6795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6797 fi 6798 ;; 6799 6800 solaris* | sysv5*) 6801 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6802 ld_shlibs=no 6803 cat <<EOF 1>&2 6804 6805*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6806*** create shared libraries on Solaris systems. Therefore, libtool 6807*** is disabling shared libraries support. We urge you to upgrade GNU 6808*** binutils to release 2.9.1 or newer. Another option is to modify 6809*** your PATH or compiler configuration so that the native linker is 6810*** used, and then restart. 6811 6812EOF 6813 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6816 else 6817 ld_shlibs=no 6818 fi 6819 ;; 6820 6821 sunos4*) 6822 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6823 wlarc= 6824 hardcode_direct=yes 6825 hardcode_shlibpath_var=no 6826 ;; 6827 6828 linux*) 6829 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6830 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6831 archive_cmds="$tmp_archive_cmds" 6832 supports_anon_versioning=no 6833 case `$LD -v 2>/dev/null` in 6834 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6835 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6836 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6837 *\ 2.11.*) ;; # other 2.11 versions 6838 *) supports_anon_versioning=yes ;; 6839 esac 6840 if test $supports_anon_versioning = yes; then 6841 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6842cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6843$echo "local: *; };" >> $output_objdir/$libname.ver~ 6844 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6845 else 6846 archive_expsym_cmds="$tmp_archive_cmds" 6847 fi 6848 else 6849 ld_shlibs=no 6850 fi 6851 ;; 6852 6853 *) 6854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6857 else 6858 ld_shlibs=no 6859 fi 6860 ;; 6861 esac 6862 6863 if test "$ld_shlibs" = yes; then 6864 runpath_var=LD_RUN_PATH 6865 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6866 export_dynamic_flag_spec='${wl}--export-dynamic' 6867 # ancient GNU ld didn't support --whole-archive et. al. 6868 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6869 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6870 else 6871 whole_archive_flag_spec= 6872 fi 6873 fi 6874 else 6875 # PORTME fill in a description of your system's linker (not GNU ld) 6876 case $host_os in 6877 aix3*) 6878 allow_undefined_flag=unsupported 6879 always_export_symbols=yes 6880 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' 6881 # Note: this linker hardcodes the directories in LIBPATH if there 6882 # are no directories specified by -L. 6883 hardcode_minus_L=yes 6884 if test "$GCC" = yes && test -z "$link_static_flag"; then 6885 # Neither direct hardcoding nor static linking is supported with a 6886 # broken collect2. 6887 hardcode_direct=unsupported 6888 fi 6889 ;; 6890 6891 aix4* | aix5*) 6892 if test "$host_cpu" = ia64; then 6893 # On IA64, the linker does run time linking by default, so we don't 6894 # have to do anything special. 6895 aix_use_runtimelinking=no 6896 exp_sym_flag='-Bexport' 6897 no_entry_flag="" 6898 else 6899 # If we're using GNU nm, then we don't want the "-C" option. 6900 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6902 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' 6903 else 6904 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' 6905 fi 6906 aix_use_runtimelinking=no 6907 6908 # Test if we are trying to use run time linking or normal 6909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6910 # need to do runtime linking. 6911 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6912 for ld_flag in $LDFLAGS; do 6913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6914 aix_use_runtimelinking=yes 6915 break 6916 fi 6917 done 6918 esac 6919 6920 exp_sym_flag='-bexport' 6921 no_entry_flag='-bnoentry' 6922 fi 6923 6924 # When large executables or shared objects are built, AIX ld can 6925 # have problems creating the table of contents. If linking a library 6926 # or program results in "error TOC overflow" add -mminimal-toc to 6927 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6928 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6929 6930 archive_cmds='' 6931 hardcode_direct=yes 6932 hardcode_libdir_separator=':' 6933 link_all_deplibs=yes 6934 6935 if test "$GCC" = yes; then 6936 case $host_os in aix4.012|aix4.012.*) 6937 # We only want to do this on AIX 4.2 and lower, the check 6938 # below for broken collect2 doesn't work under 4.3+ 6939 collect2name=`${CC} -print-prog-name=collect2` 6940 if test -f "$collect2name" && \ 6941 strings "$collect2name" | grep resolve_lib_name >/dev/null 6942 then 6943 # We have reworked collect2 6944 hardcode_direct=yes 6945 else 6946 # We have old collect2 6947 hardcode_direct=unsupported 6948 # It fails to find uninstalled libraries when the uninstalled 6949 # path is not listed in the libpath. Setting hardcode_minus_L 6950 # to unsupported forces relinking 6951 hardcode_minus_L=yes 6952 hardcode_libdir_flag_spec='-L$libdir' 6953 hardcode_libdir_separator= 6954 fi 6955 esac 6956 shared_flag='-shared' 6957 else 6958 # not using gcc 6959 if test "$host_cpu" = ia64; then 6960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6961 # chokes on -Wl,-G. The following line is correct: 6962 shared_flag='-G' 6963 else 6964 if test "$aix_use_runtimelinking" = yes; then 6965 shared_flag='${wl}-G' 6966 else 6967 shared_flag='${wl}-bM:SRE' 6968 fi 6969 fi 6970 fi 6971 6972 # It seems that -bexpall does not export symbols beginning with 6973 # underscore (_), so it is better to generate a list of symbols to export. 6974 always_export_symbols=yes 6975 if test "$aix_use_runtimelinking" = yes; then 6976 # Warning - without using the other runtime loading flags (-brtl), 6977 # -berok will link without error, but may produce a broken library. 6978 allow_undefined_flag='-berok' 6979 # Determine the default libpath from the value encoded in an empty executable. 6980 cat >conftest.$ac_ext <<_ACEOF 6981/* confdefs.h. */ 6982_ACEOF 6983cat confdefs.h >>conftest.$ac_ext 6984cat >>conftest.$ac_ext <<_ACEOF 6985/* end confdefs.h. */ 6986 6987int 6988main () 6989{ 6990 6991 ; 6992 return 0; 6993} 6994_ACEOF 6995rm -f conftest.$ac_objext conftest$ac_exeext 6996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6997 (eval $ac_link) 2>conftest.er1 6998 ac_status=$? 6999 grep -v '^ *+' conftest.er1 >conftest.err 7000 rm -f conftest.er1 7001 cat conftest.err >&5 7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7003 (exit $ac_status); } && 7004 { ac_try='test -z "$ac_c_werror_flag" 7005 || test ! -s conftest.err' 7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7007 (eval $ac_try) 2>&5 7008 ac_status=$? 7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7010 (exit $ac_status); }; } && 7011 { ac_try='test -s conftest$ac_exeext' 7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7013 (eval $ac_try) 2>&5 7014 ac_status=$? 7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7016 (exit $ac_status); }; }; then 7017 7018aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7019}'` 7020# Check for a 64-bit object if we didn't find anything. 7021if 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; } 7022}'`; fi 7023else 7024 echo "$as_me: failed program was:" >&5 7025sed 's/^/| /' conftest.$ac_ext >&5 7026 7027fi 7028rm -f conftest.err conftest.$ac_objext \ 7029 conftest$ac_exeext conftest.$ac_ext 7030if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7031 7032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7033 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7034 else 7035 if test "$host_cpu" = ia64; then 7036 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7037 allow_undefined_flag="-z nodefs" 7038 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 7039 else 7040 # Determine the default libpath from the value encoded in an empty executable. 7041 cat >conftest.$ac_ext <<_ACEOF 7042/* confdefs.h. */ 7043_ACEOF 7044cat confdefs.h >>conftest.$ac_ext 7045cat >>conftest.$ac_ext <<_ACEOF 7046/* end confdefs.h. */ 7047 7048int 7049main () 7050{ 7051 7052 ; 7053 return 0; 7054} 7055_ACEOF 7056rm -f conftest.$ac_objext conftest$ac_exeext 7057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7058 (eval $ac_link) 2>conftest.er1 7059 ac_status=$? 7060 grep -v '^ *+' conftest.er1 >conftest.err 7061 rm -f conftest.er1 7062 cat conftest.err >&5 7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7064 (exit $ac_status); } && 7065 { ac_try='test -z "$ac_c_werror_flag" 7066 || test ! -s conftest.err' 7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7068 (eval $ac_try) 2>&5 7069 ac_status=$? 7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7071 (exit $ac_status); }; } && 7072 { ac_try='test -s conftest$ac_exeext' 7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7074 (eval $ac_try) 2>&5 7075 ac_status=$? 7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7077 (exit $ac_status); }; }; then 7078 7079aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7080}'` 7081# Check for a 64-bit object if we didn't find anything. 7082if 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; } 7083}'`; fi 7084else 7085 echo "$as_me: failed program was:" >&5 7086sed 's/^/| /' conftest.$ac_ext >&5 7087 7088fi 7089rm -f conftest.err conftest.$ac_objext \ 7090 conftest$ac_exeext conftest.$ac_ext 7091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7092 7093 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7094 # Warning - without using the other run time loading flags, 7095 # -berok will link without error, but may produce a broken library. 7096 no_undefined_flag=' ${wl}-bernotok' 7097 allow_undefined_flag=' ${wl}-berok' 7098 # -bexpall does not export symbols beginning with underscore (_) 7099 always_export_symbols=yes 7100 # Exported symbols can be pulled into shared objects from archives 7101 whole_archive_flag_spec=' ' 7102 archive_cmds_need_lc=yes 7103 # This is similar to how AIX traditionally builds it's shared libraries. 7104 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7105 fi 7106 fi 7107 ;; 7108 7109 amigaos*) 7110 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)' 7111 hardcode_libdir_flag_spec='-L$libdir' 7112 hardcode_minus_L=yes 7113 # see comment about different semantics on the GNU ld section 7114 ld_shlibs=no 7115 ;; 7116 7117 bsdi4*) 7118 export_dynamic_flag_spec=-rdynamic 7119 ;; 7120 7121 cygwin* | mingw* | pw32*) 7122 # When not using gcc, we currently assume that we are using 7123 # Microsoft Visual C++. 7124 # hardcode_libdir_flag_spec is actually meaningless, as there is 7125 # no search path for DLLs. 7126 hardcode_libdir_flag_spec=' ' 7127 allow_undefined_flag=unsupported 7128 # Tell ltmain to make .lib files, not .a files. 7129 libext=lib 7130 # Tell ltmain to make .dll files, not .so files. 7131 shrext_cmds=".dll" 7132 # FIXME: Setting linknames here is a bad hack. 7133 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7134 # The linker will automatically build a .lib file if we build a DLL. 7135 old_archive_From_new_cmds='true' 7136 # FIXME: Should let the user specify the lib program. 7137 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7138 fix_srcfile_path='`cygpath -w "$srcfile"`' 7139 enable_shared_with_static_runtimes=yes 7140 ;; 7141 7142 darwin* | rhapsody*) 7143 if test "$GXX" = yes ; then 7144 archive_cmds_need_lc=no 7145 case "$host_os" in 7146 rhapsody* | darwin1.[012]) 7147 allow_undefined_flag='-undefined suppress' 7148 ;; 7149 *) # Darwin 1.3 on 7150 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7151 allow_undefined_flag='-flat_namespace -undefined suppress' 7152 else 7153 case ${MACOSX_DEPLOYMENT_TARGET} in 7154 10.[012]) 7155 allow_undefined_flag='-flat_namespace -undefined suppress' 7156 ;; 7157 10.*) 7158 allow_undefined_flag='-undefined dynamic_lookup' 7159 ;; 7160 esac 7161 fi 7162 ;; 7163 esac 7164 lt_int_apple_cc_single_mod=no 7165 output_verbose_link_cmd='echo' 7166 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 7167 lt_int_apple_cc_single_mod=yes 7168 fi 7169 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7170 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7171 else 7172 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7173 fi 7174 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7175 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7176 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7177 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7178 else 7179 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7180 fi 7181 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}' 7182 hardcode_direct=no 7183 hardcode_automatic=yes 7184 hardcode_shlibpath_var=unsupported 7185 whole_archive_flag_spec='-all_load $convenience' 7186 link_all_deplibs=yes 7187 else 7188 ld_shlibs=no 7189 fi 7190 ;; 7191 7192 dgux*) 7193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7194 hardcode_libdir_flag_spec='-L$libdir' 7195 hardcode_shlibpath_var=no 7196 ;; 7197 7198 freebsd1*) 7199 ld_shlibs=no 7200 ;; 7201 7202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7203 # support. Future versions do this automatically, but an explicit c++rt0.o 7204 # does not break anything, and helps significantly (at the cost of a little 7205 # extra space). 7206 freebsd2.2*) 7207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7208 hardcode_libdir_flag_spec='-R$libdir' 7209 hardcode_direct=yes 7210 hardcode_shlibpath_var=no 7211 ;; 7212 7213 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7214 freebsd2*) 7215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7216 hardcode_direct=yes 7217 hardcode_minus_L=yes 7218 hardcode_shlibpath_var=no 7219 ;; 7220 7221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7222 freebsd* | kfreebsd*-gnu) 7223 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7224 hardcode_libdir_flag_spec='-R$libdir' 7225 hardcode_direct=yes 7226 hardcode_shlibpath_var=no 7227 ;; 7228 7229 hpux9*) 7230 if test "$GCC" = yes; then 7231 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' 7232 else 7233 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' 7234 fi 7235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7236 hardcode_libdir_separator=: 7237 hardcode_direct=yes 7238 7239 # hardcode_minus_L: Not really in the search PATH, 7240 # but as the default location of the library. 7241 hardcode_minus_L=yes 7242 export_dynamic_flag_spec='${wl}-E' 7243 ;; 7244 7245 hpux10* | hpux11*) 7246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7247 case "$host_cpu" in 7248 hppa*64*|ia64*) 7249 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7250 ;; 7251 *) 7252 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7253 ;; 7254 esac 7255 else 7256 case "$host_cpu" in 7257 hppa*64*|ia64*) 7258 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7259 ;; 7260 *) 7261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7262 ;; 7263 esac 7264 fi 7265 if test "$with_gnu_ld" = no; then 7266 case "$host_cpu" in 7267 hppa*64*) 7268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7269 hardcode_libdir_flag_spec_ld='+b $libdir' 7270 hardcode_libdir_separator=: 7271 hardcode_direct=no 7272 hardcode_shlibpath_var=no 7273 ;; 7274 ia64*) 7275 hardcode_libdir_flag_spec='-L$libdir' 7276 hardcode_direct=no 7277 hardcode_shlibpath_var=no 7278 7279 # hardcode_minus_L: Not really in the search PATH, 7280 # but as the default location of the library. 7281 hardcode_minus_L=yes 7282 ;; 7283 *) 7284 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7285 hardcode_libdir_separator=: 7286 hardcode_direct=yes 7287 export_dynamic_flag_spec='${wl}-E' 7288 7289 # hardcode_minus_L: Not really in the search PATH, 7290 # but as the default location of the library. 7291 hardcode_minus_L=yes 7292 ;; 7293 esac 7294 fi 7295 ;; 7296 7297 irix5* | irix6* | nonstopux*) 7298 if test "$GCC" = yes; then 7299 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' 7300 else 7301 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' 7302 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7303 fi 7304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7305 hardcode_libdir_separator=: 7306 link_all_deplibs=yes 7307 ;; 7308 7309 netbsd*) 7310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7312 else 7313 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7314 fi 7315 hardcode_libdir_flag_spec='-R$libdir' 7316 hardcode_direct=yes 7317 hardcode_shlibpath_var=no 7318 ;; 7319 7320 newsos6) 7321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7322 hardcode_direct=yes 7323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7324 hardcode_libdir_separator=: 7325 hardcode_shlibpath_var=no 7326 ;; 7327 7328 openbsd*) 7329 hardcode_direct=yes 7330 hardcode_shlibpath_var=no 7331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7334 export_dynamic_flag_spec='${wl}-E' 7335 else 7336 case $host_os in 7337 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7339 hardcode_libdir_flag_spec='-R$libdir' 7340 ;; 7341 *) 7342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7344 ;; 7345 esac 7346 fi 7347 ;; 7348 7349 os2*) 7350 hardcode_libdir_flag_spec='-L$libdir' 7351 hardcode_minus_L=yes 7352 allow_undefined_flag=unsupported 7353 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' 7354 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7355 ;; 7356 7357 osf3*) 7358 if test "$GCC" = yes; then 7359 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7360 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' 7361 else 7362 allow_undefined_flag=' -expect_unresolved \*' 7363 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' 7364 fi 7365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7366 hardcode_libdir_separator=: 7367 ;; 7368 7369 osf4* | osf5*) # as osf3* with the addition of -msym flag 7370 if test "$GCC" = yes; then 7371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7372 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' 7373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7374 else 7375 allow_undefined_flag=' -expect_unresolved \*' 7376 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' 7377 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7378 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 7379 7380 # Both c and cxx compiler support -rpath directly 7381 hardcode_libdir_flag_spec='-rpath $libdir' 7382 fi 7383 hardcode_libdir_separator=: 7384 ;; 7385 7386 sco3.2v5*) 7387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7388 hardcode_shlibpath_var=no 7389 export_dynamic_flag_spec='${wl}-Bexport' 7390 runpath_var=LD_RUN_PATH 7391 hardcode_runpath_var=yes 7392 ;; 7393 7394 solaris*) 7395 no_undefined_flag=' -z text' 7396 if test "$GCC" = yes; then 7397 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7398 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7399 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7400 else 7401 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7402 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7403 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7404 fi 7405 hardcode_libdir_flag_spec='-R$libdir' 7406 hardcode_shlibpath_var=no 7407 case $host_os in 7408 solaris2.[0-5] | solaris2.[0-5].*) ;; 7409 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7410 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7411 esac 7412 link_all_deplibs=yes 7413 ;; 7414 7415 sunos4*) 7416 if test "x$host_vendor" = xsequent; then 7417 # Use $CC to link under sequent, because it throws in some extra .o 7418 # files that make .init and .fini sections work. 7419 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7420 else 7421 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7422 fi 7423 hardcode_libdir_flag_spec='-L$libdir' 7424 hardcode_direct=yes 7425 hardcode_minus_L=yes 7426 hardcode_shlibpath_var=no 7427 ;; 7428 7429 sysv4) 7430 case $host_vendor in 7431 sni) 7432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7433 hardcode_direct=yes # is this really true??? 7434 ;; 7435 siemens) 7436 ## LD is ld it makes a PLAMLIB 7437 ## CC just makes a GrossModule. 7438 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7439 reload_cmds='$CC -r -o $output$reload_objs' 7440 hardcode_direct=no 7441 ;; 7442 motorola) 7443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7444 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7445 ;; 7446 esac 7447 runpath_var='LD_RUN_PATH' 7448 hardcode_shlibpath_var=no 7449 ;; 7450 7451 sysv4.3*) 7452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7453 hardcode_shlibpath_var=no 7454 export_dynamic_flag_spec='-Bexport' 7455 ;; 7456 7457 sysv4*MP*) 7458 if test -d /usr/nec; then 7459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7460 hardcode_shlibpath_var=no 7461 runpath_var=LD_RUN_PATH 7462 hardcode_runpath_var=yes 7463 ld_shlibs=yes 7464 fi 7465 ;; 7466 7467 sysv4.2uw2*) 7468 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7469 hardcode_direct=yes 7470 hardcode_minus_L=no 7471 hardcode_shlibpath_var=no 7472 hardcode_runpath_var=yes 7473 runpath_var=LD_RUN_PATH 7474 ;; 7475 7476 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7477 no_undefined_flag='${wl}-z ${wl}text' 7478 if test "$GCC" = yes; then 7479 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7480 else 7481 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7482 fi 7483 runpath_var='LD_RUN_PATH' 7484 hardcode_shlibpath_var=no 7485 ;; 7486 7487 sysv5*) 7488 no_undefined_flag=' -z text' 7489 # $CC -shared without GNU ld will not create a library from C++ 7490 # object files and a static libstdc++, better avoid it by now 7491 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7492 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7493 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7494 hardcode_libdir_flag_spec= 7495 hardcode_shlibpath_var=no 7496 runpath_var='LD_RUN_PATH' 7497 ;; 7498 7499 uts4*) 7500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7501 hardcode_libdir_flag_spec='-L$libdir' 7502 hardcode_shlibpath_var=no 7503 ;; 7504 7505 *) 7506 ld_shlibs=no 7507 ;; 7508 esac 7509 fi 7510 7511echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7512echo "${ECHO_T}$ld_shlibs" >&6 7513test "$ld_shlibs" = no && can_build_shared=no 7514 7515variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7516if test "$GCC" = yes; then 7517 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7518fi 7519 7520# 7521# Do we need to explicitly link libc? 7522# 7523case "x$archive_cmds_need_lc" in 7524x|xyes) 7525 # Assume -lc should be added 7526 archive_cmds_need_lc=yes 7527 7528 if test "$enable_shared" = yes && test "$GCC" = yes; then 7529 case $archive_cmds in 7530 *'~'*) 7531 # FIXME: we may have to deal with multi-command sequences. 7532 ;; 7533 '$CC '*) 7534 # Test whether the compiler implicitly links with -lc since on some 7535 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7536 # to ld, don't add -lc before -lgcc. 7537 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7538echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7539 $rm conftest* 7540 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7541 7542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7543 (eval $ac_compile) 2>&5 7544 ac_status=$? 7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7546 (exit $ac_status); } 2>conftest.err; then 7547 soname=conftest 7548 lib=conftest 7549 libobjs=conftest.$ac_objext 7550 deplibs= 7551 wl=$lt_prog_compiler_wl 7552 compiler_flags=-v 7553 linker_flags=-v 7554 verstring= 7555 output_objdir=. 7556 libname=conftest 7557 lt_save_allow_undefined_flag=$allow_undefined_flag 7558 allow_undefined_flag= 7559 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7560 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7561 ac_status=$? 7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7563 (exit $ac_status); } 7564 then 7565 archive_cmds_need_lc=no 7566 else 7567 archive_cmds_need_lc=yes 7568 fi 7569 allow_undefined_flag=$lt_save_allow_undefined_flag 7570 else 7571 cat conftest.err 1>&5 7572 fi 7573 $rm conftest* 7574 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7575echo "${ECHO_T}$archive_cmds_need_lc" >&6 7576 ;; 7577 esac 7578 fi 7579 ;; 7580esac 7581 7582echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7583echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7584library_names_spec= 7585libname_spec='lib$name' 7586soname_spec= 7587shrext_cmds=".so" 7588postinstall_cmds= 7589postuninstall_cmds= 7590finish_cmds= 7591finish_eval= 7592shlibpath_var= 7593shlibpath_overrides_runpath=unknown 7594version_type=none 7595dynamic_linker="$host_os ld.so" 7596sys_lib_dlsearch_path_spec="/lib /usr/lib" 7597if test "$GCC" = yes; then 7598 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7599 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7600 # if the path contains ";" then we assume it to be the separator 7601 # otherwise default to the standard path separator (i.e. ":") - it is 7602 # assumed that no part of a normal pathname contains ";" but that should 7603 # okay in the real world where ";" in dirpaths is itself problematic. 7604 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7605 else 7606 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7607 fi 7608else 7609 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7610fi 7611need_lib_prefix=unknown 7612hardcode_into_libs=no 7613 7614# when you set need_version to no, make sure it does not cause -set_version 7615# flags to be left without arguments 7616need_version=unknown 7617 7618case $host_os in 7619aix3*) 7620 version_type=linux 7621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7622 shlibpath_var=LIBPATH 7623 7624 # AIX 3 has no versioning support, so we append a major version to the name. 7625 soname_spec='${libname}${release}${shared_ext}$major' 7626 ;; 7627 7628aix4* | aix5*) 7629 version_type=linux 7630 need_lib_prefix=no 7631 need_version=no 7632 hardcode_into_libs=yes 7633 if test "$host_cpu" = ia64; then 7634 # AIX 5 supports IA64 7635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7636 shlibpath_var=LD_LIBRARY_PATH 7637 else 7638 # With GCC up to 2.95.x, collect2 would create an import file 7639 # for dependence libraries. The import file would start with 7640 # the line `#! .'. This would cause the generated library to 7641 # depend on `.', always an invalid library. This was fixed in 7642 # development snapshots of GCC prior to 3.0. 7643 case $host_os in 7644 aix4 | aix4.[01] | aix4.[01].*) 7645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7646 echo ' yes ' 7647 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7648 : 7649 else 7650 can_build_shared=no 7651 fi 7652 ;; 7653 esac 7654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7655 # soname into executable. Probably we can add versioning support to 7656 # collect2, so additional links can be useful in future. 7657 if test "$aix_use_runtimelinking" = yes; then 7658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7659 # instead of lib<name>.a to let people know that these are not 7660 # typical AIX shared libraries. 7661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7662 else 7663 # We preserve .a as extension for shared libraries through AIX4.2 7664 # and later when we are not doing run time linking. 7665 library_names_spec='${libname}${release}.a $libname.a' 7666 soname_spec='${libname}${release}${shared_ext}$major' 7667 fi 7668 shlibpath_var=LIBPATH 7669 fi 7670 ;; 7671 7672amigaos*) 7673 library_names_spec='$libname.ixlibrary $libname.a' 7674 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7675 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' 7676 ;; 7677 7678beos*) 7679 library_names_spec='${libname}${shared_ext}' 7680 dynamic_linker="$host_os ld.so" 7681 shlibpath_var=LIBRARY_PATH 7682 ;; 7683 7684bsdi4*) 7685 version_type=linux 7686 need_version=no 7687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7688 soname_spec='${libname}${release}${shared_ext}$major' 7689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7690 shlibpath_var=LD_LIBRARY_PATH 7691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7693 # the default ld.so.conf also contains /usr/contrib/lib and 7694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7695 # libtool to hard-code these into programs 7696 ;; 7697 7698cygwin* | mingw* | pw32*) 7699 version_type=windows 7700 shrext_cmds=".dll" 7701 need_version=no 7702 need_lib_prefix=no 7703 7704 case $GCC,$host_os in 7705 yes,cygwin* | yes,mingw* | yes,pw32*) 7706 library_names_spec='$libname.dll.a' 7707 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7708 postinstall_cmds='base_file=`basename \${file}`~ 7709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7710 dldir=$destdir/`dirname \$dlpath`~ 7711 test -d \$dldir || mkdir -p \$dldir~ 7712 $install_prog $dir/$dlname \$dldir/$dlname' 7713 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7714 dlpath=$dir/\$dldll~ 7715 $rm \$dlpath' 7716 shlibpath_overrides_runpath=yes 7717 7718 case $host_os in 7719 cygwin*) 7720 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7721 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7722 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7723 ;; 7724 mingw*) 7725 # MinGW DLLs use traditional 'lib' prefix 7726 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7727 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7728 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7729 # It is most probably a Windows format PATH printed by 7730 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7731 # path with ; separators, and with drive letters. We can handle the 7732 # drive letters (cygwin fileutils understands them), so leave them, 7733 # especially as we might pass files found there to a mingw objdump, 7734 # which wouldn't understand a cygwinified path. Ahh. 7735 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7736 else 7737 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7738 fi 7739 ;; 7740 pw32*) 7741 # pw32 DLLs use 'pw' prefix rather than 'lib' 7742 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7743 ;; 7744 esac 7745 ;; 7746 7747 *) 7748 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7749 ;; 7750 esac 7751 dynamic_linker='Win32 ld.exe' 7752 # FIXME: first we should search . and the directory the executable is in 7753 shlibpath_var=PATH 7754 ;; 7755 7756darwin* | rhapsody*) 7757 dynamic_linker="$host_os dyld" 7758 version_type=darwin 7759 need_lib_prefix=no 7760 need_version=no 7761 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7762 soname_spec='${libname}${release}${major}$shared_ext' 7763 shlibpath_overrides_runpath=yes 7764 shlibpath_var=DYLD_LIBRARY_PATH 7765 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7766 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7767 if test "$GCC" = yes; then 7768 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"` 7769 else 7770 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7771 fi 7772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7773 ;; 7774 7775dgux*) 7776 version_type=linux 7777 need_lib_prefix=no 7778 need_version=no 7779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7780 soname_spec='${libname}${release}${shared_ext}$major' 7781 shlibpath_var=LD_LIBRARY_PATH 7782 ;; 7783 7784freebsd1*) 7785 dynamic_linker=no 7786 ;; 7787 7788kfreebsd*-gnu) 7789 version_type=linux 7790 need_lib_prefix=no 7791 need_version=no 7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7793 soname_spec='${libname}${release}${shared_ext}$major' 7794 shlibpath_var=LD_LIBRARY_PATH 7795 shlibpath_overrides_runpath=no 7796 hardcode_into_libs=yes 7797 dynamic_linker='GNU ld.so' 7798 ;; 7799 7800freebsd*) 7801 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7802 version_type=freebsd-$objformat 7803 case $version_type in 7804 freebsd-elf*) 7805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7806 need_version=no 7807 need_lib_prefix=no 7808 ;; 7809 freebsd-*) 7810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7811 need_version=yes 7812 ;; 7813 esac 7814 shlibpath_var=LD_LIBRARY_PATH 7815 case $host_os in 7816 freebsd2*) 7817 shlibpath_overrides_runpath=yes 7818 ;; 7819 freebsd3.01* | freebsdelf3.01*) 7820 shlibpath_overrides_runpath=yes 7821 hardcode_into_libs=yes 7822 ;; 7823 *) # from 3.2 on 7824 shlibpath_overrides_runpath=no 7825 hardcode_into_libs=yes 7826 ;; 7827 esac 7828 ;; 7829 7830gnu*) 7831 version_type=linux 7832 need_lib_prefix=no 7833 need_version=no 7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7835 soname_spec='${libname}${release}${shared_ext}$major' 7836 shlibpath_var=LD_LIBRARY_PATH 7837 hardcode_into_libs=yes 7838 ;; 7839 7840hpux9* | hpux10* | hpux11*) 7841 # Give a soname corresponding to the major version so that dld.sl refuses to 7842 # link against other versions. 7843 version_type=sunos 7844 need_lib_prefix=no 7845 need_version=no 7846 case "$host_cpu" in 7847 ia64*) 7848 shrext_cmds='.so' 7849 hardcode_into_libs=yes 7850 dynamic_linker="$host_os dld.so" 7851 shlibpath_var=LD_LIBRARY_PATH 7852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7854 soname_spec='${libname}${release}${shared_ext}$major' 7855 if test "X$HPUX_IA64_MODE" = X32; then 7856 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7857 else 7858 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7859 fi 7860 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7861 ;; 7862 hppa*64*) 7863 shrext_cmds='.sl' 7864 hardcode_into_libs=yes 7865 dynamic_linker="$host_os dld.sl" 7866 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7867 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7869 soname_spec='${libname}${release}${shared_ext}$major' 7870 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7872 ;; 7873 *) 7874 shrext_cmds='.sl' 7875 dynamic_linker="$host_os dld.sl" 7876 shlibpath_var=SHLIB_PATH 7877 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7879 soname_spec='${libname}${release}${shared_ext}$major' 7880 ;; 7881 esac 7882 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7883 postinstall_cmds='chmod 555 $lib' 7884 ;; 7885 7886irix5* | irix6* | nonstopux*) 7887 case $host_os in 7888 nonstopux*) version_type=nonstopux ;; 7889 *) 7890 if test "$lt_cv_prog_gnu_ld" = yes; then 7891 version_type=linux 7892 else 7893 version_type=irix 7894 fi ;; 7895 esac 7896 need_lib_prefix=no 7897 need_version=no 7898 soname_spec='${libname}${release}${shared_ext}$major' 7899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7900 case $host_os in 7901 irix5* | nonstopux*) 7902 libsuff= shlibsuff= 7903 ;; 7904 *) 7905 case $LD in # libtool.m4 will add one of these switches to LD 7906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7907 libsuff= shlibsuff= libmagic=32-bit;; 7908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7909 libsuff=32 shlibsuff=N32 libmagic=N32;; 7910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7911 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7912 *) libsuff= shlibsuff= libmagic=never-match;; 7913 esac 7914 ;; 7915 esac 7916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7917 shlibpath_overrides_runpath=no 7918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7920 hardcode_into_libs=yes 7921 ;; 7922 7923# No shared lib support for Linux oldld, aout, or coff. 7924linux*oldld* | linux*aout* | linux*coff*) 7925 dynamic_linker=no 7926 ;; 7927 7928# This must be Linux ELF. 7929linux*) 7930 version_type=linux 7931 need_lib_prefix=no 7932 need_version=no 7933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7934 soname_spec='${libname}${release}${shared_ext}$major' 7935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7936 shlibpath_var=LD_LIBRARY_PATH 7937 shlibpath_overrides_runpath=no 7938 # This implies no fast_install, which is unacceptable. 7939 # Some rework will be needed to allow for fast_install 7940 # before this can be enabled. 7941 hardcode_into_libs=yes 7942 7943 # find out which ABI we are using 7944 libsuff= 7945 case "$host_cpu" in 7946 x86_64*|s390x*|powerpc64*) 7947 echo '#line 7947 "configure"' > conftest.$ac_ext 7948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7949 (eval $ac_compile) 2>&5 7950 ac_status=$? 7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7952 (exit $ac_status); }; then 7953 case `/usr/bin/file conftest.$ac_objext` in 7954 *64-bit*) 7955 libsuff=64 7956 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 7957 ;; 7958 esac 7959 fi 7960 rm -rf conftest* 7961 ;; 7962 esac 7963 7964 # Append ld.so.conf contents to the search path 7965 if test -f /etc/ld.so.conf; then 7966 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 7967 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 7968 fi 7969 7970 # We used to test for /lib/ld.so.1 and disable shared libraries on 7971 # powerpc, because MkLinux only supported shared libraries with the 7972 # GNU dynamic linker. Since this was broken with cross compilers, 7973 # most powerpc-linux boxes support dynamic linking these days and 7974 # people can always --disable-shared, the test was removed, and we 7975 # assume the GNU/Linux dynamic linker is in use. 7976 dynamic_linker='GNU/Linux ld.so' 7977 ;; 7978 7979knetbsd*-gnu) 7980 version_type=linux 7981 need_lib_prefix=no 7982 need_version=no 7983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7984 soname_spec='${libname}${release}${shared_ext}$major' 7985 shlibpath_var=LD_LIBRARY_PATH 7986 shlibpath_overrides_runpath=no 7987 hardcode_into_libs=yes 7988 dynamic_linker='GNU ld.so' 7989 ;; 7990 7991netbsd*) 7992 version_type=sunos 7993 need_lib_prefix=no 7994 need_version=no 7995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7998 dynamic_linker='NetBSD (a.out) ld.so' 7999 else 8000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8001 soname_spec='${libname}${release}${shared_ext}$major' 8002 dynamic_linker='NetBSD ld.elf_so' 8003 fi 8004 shlibpath_var=LD_LIBRARY_PATH 8005 shlibpath_overrides_runpath=yes 8006 hardcode_into_libs=yes 8007 ;; 8008 8009newsos6) 8010 version_type=linux 8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8012 shlibpath_var=LD_LIBRARY_PATH 8013 shlibpath_overrides_runpath=yes 8014 ;; 8015 8016nto-qnx*) 8017 version_type=linux 8018 need_lib_prefix=no 8019 need_version=no 8020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8021 soname_spec='${libname}${release}${shared_ext}$major' 8022 shlibpath_var=LD_LIBRARY_PATH 8023 shlibpath_overrides_runpath=yes 8024 ;; 8025 8026openbsd*) 8027 version_type=sunos 8028 need_lib_prefix=no 8029 need_version=yes 8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8032 shlibpath_var=LD_LIBRARY_PATH 8033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8034 case $host_os in 8035 openbsd2.[89] | openbsd2.[89].*) 8036 shlibpath_overrides_runpath=no 8037 ;; 8038 *) 8039 shlibpath_overrides_runpath=yes 8040 ;; 8041 esac 8042 else 8043 shlibpath_overrides_runpath=yes 8044 fi 8045 ;; 8046 8047os2*) 8048 libname_spec='$name' 8049 shrext_cmds=".dll" 8050 need_lib_prefix=no 8051 library_names_spec='$libname${shared_ext} $libname.a' 8052 dynamic_linker='OS/2 ld.exe' 8053 shlibpath_var=LIBPATH 8054 ;; 8055 8056osf3* | osf4* | osf5*) 8057 version_type=osf 8058 need_lib_prefix=no 8059 need_version=no 8060 soname_spec='${libname}${release}${shared_ext}$major' 8061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8062 shlibpath_var=LD_LIBRARY_PATH 8063 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8064 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8065 ;; 8066 8067sco3.2v5*) 8068 version_type=osf 8069 soname_spec='${libname}${release}${shared_ext}$major' 8070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8071 shlibpath_var=LD_LIBRARY_PATH 8072 ;; 8073 8074solaris*) 8075 version_type=linux 8076 need_lib_prefix=no 8077 need_version=no 8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8079 soname_spec='${libname}${release}${shared_ext}$major' 8080 shlibpath_var=LD_LIBRARY_PATH 8081 shlibpath_overrides_runpath=yes 8082 hardcode_into_libs=yes 8083 # ldd complains unless libraries are executable 8084 postinstall_cmds='chmod +x $lib' 8085 ;; 8086 8087sunos4*) 8088 version_type=sunos 8089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8090 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8091 shlibpath_var=LD_LIBRARY_PATH 8092 shlibpath_overrides_runpath=yes 8093 if test "$with_gnu_ld" = yes; then 8094 need_lib_prefix=no 8095 fi 8096 need_version=yes 8097 ;; 8098 8099sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8100 version_type=linux 8101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8102 soname_spec='${libname}${release}${shared_ext}$major' 8103 shlibpath_var=LD_LIBRARY_PATH 8104 case $host_vendor in 8105 sni) 8106 shlibpath_overrides_runpath=no 8107 need_lib_prefix=no 8108 export_dynamic_flag_spec='${wl}-Blargedynsym' 8109 runpath_var=LD_RUN_PATH 8110 ;; 8111 siemens) 8112 need_lib_prefix=no 8113 ;; 8114 motorola) 8115 need_lib_prefix=no 8116 need_version=no 8117 shlibpath_overrides_runpath=no 8118 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8119 ;; 8120 esac 8121 ;; 8122 8123sysv4*MP*) 8124 if test -d /usr/nec ;then 8125 version_type=linux 8126 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8127 soname_spec='$libname${shared_ext}.$major' 8128 shlibpath_var=LD_LIBRARY_PATH 8129 fi 8130 ;; 8131 8132uts4*) 8133 version_type=linux 8134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8135 soname_spec='${libname}${release}${shared_ext}$major' 8136 shlibpath_var=LD_LIBRARY_PATH 8137 ;; 8138 8139*) 8140 dynamic_linker=no 8141 ;; 8142esac 8143echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8144echo "${ECHO_T}$dynamic_linker" >&6 8145test "$dynamic_linker" = no && can_build_shared=no 8146 8147echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8148echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8149hardcode_action= 8150if test -n "$hardcode_libdir_flag_spec" || \ 8151 test -n "$runpath_var " || \ 8152 test "X$hardcode_automatic"="Xyes" ; then 8153 8154 # We can hardcode non-existant directories. 8155 if test "$hardcode_direct" != no && 8156 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8157 # have to relink, otherwise we might link with an installed library 8158 # when we should be linking with a yet-to-be-installed one 8159 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8160 test "$hardcode_minus_L" != no; then 8161 # Linking always hardcodes the temporary library directory. 8162 hardcode_action=relink 8163 else 8164 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8165 hardcode_action=immediate 8166 fi 8167else 8168 # We cannot hardcode anything, or else we can only hardcode existing 8169 # directories. 8170 hardcode_action=unsupported 8171fi 8172echo "$as_me:$LINENO: result: $hardcode_action" >&5 8173echo "${ECHO_T}$hardcode_action" >&6 8174 8175if test "$hardcode_action" = relink; then 8176 # Fast installation is not supported 8177 enable_fast_install=no 8178elif test "$shlibpath_overrides_runpath" = yes || 8179 test "$enable_shared" = no; then 8180 # Fast installation is not necessary 8181 enable_fast_install=needless 8182fi 8183 8184striplib= 8185old_striplib= 8186echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8187echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8188if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8189 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8190 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8191 echo "$as_me:$LINENO: result: yes" >&5 8192echo "${ECHO_T}yes" >&6 8193else 8194# FIXME - insert some real tests, host_os isn't really good enough 8195 case $host_os in 8196 darwin*) 8197 if test -n "$STRIP" ; then 8198 striplib="$STRIP -x" 8199 echo "$as_me:$LINENO: result: yes" >&5 8200echo "${ECHO_T}yes" >&6 8201 else 8202 echo "$as_me:$LINENO: result: no" >&5 8203echo "${ECHO_T}no" >&6 8204fi 8205 ;; 8206 *) 8207 echo "$as_me:$LINENO: result: no" >&5 8208echo "${ECHO_T}no" >&6 8209 ;; 8210 esac 8211fi 8212 8213if test "x$enable_dlopen" != xyes; then 8214 enable_dlopen=unknown 8215 enable_dlopen_self=unknown 8216 enable_dlopen_self_static=unknown 8217else 8218 lt_cv_dlopen=no 8219 lt_cv_dlopen_libs= 8220 8221 case $host_os in 8222 beos*) 8223 lt_cv_dlopen="load_add_on" 8224 lt_cv_dlopen_libs= 8225 lt_cv_dlopen_self=yes 8226 ;; 8227 8228 mingw* | pw32*) 8229 lt_cv_dlopen="LoadLibrary" 8230 lt_cv_dlopen_libs= 8231 ;; 8232 8233 cygwin*) 8234 lt_cv_dlopen="dlopen" 8235 lt_cv_dlopen_libs= 8236 ;; 8237 8238 darwin*) 8239 # if libdl is installed we need to link against it 8240 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8241echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8242if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8243 echo $ECHO_N "(cached) $ECHO_C" >&6 8244else 8245 ac_check_lib_save_LIBS=$LIBS 8246LIBS="-ldl $LIBS" 8247cat >conftest.$ac_ext <<_ACEOF 8248/* confdefs.h. */ 8249_ACEOF 8250cat confdefs.h >>conftest.$ac_ext 8251cat >>conftest.$ac_ext <<_ACEOF 8252/* end confdefs.h. */ 8253 8254/* Override any gcc2 internal prototype to avoid an error. */ 8255#ifdef __cplusplus 8256extern "C" 8257#endif 8258/* We use char because int might match the return type of a gcc2 8259 builtin and then its argument prototype would still apply. */ 8260char dlopen (); 8261int 8262main () 8263{ 8264dlopen (); 8265 ; 8266 return 0; 8267} 8268_ACEOF 8269rm -f conftest.$ac_objext conftest$ac_exeext 8270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8271 (eval $ac_link) 2>conftest.er1 8272 ac_status=$? 8273 grep -v '^ *+' conftest.er1 >conftest.err 8274 rm -f conftest.er1 8275 cat conftest.err >&5 8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8277 (exit $ac_status); } && 8278 { ac_try='test -z "$ac_c_werror_flag" 8279 || test ! -s conftest.err' 8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8281 (eval $ac_try) 2>&5 8282 ac_status=$? 8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8284 (exit $ac_status); }; } && 8285 { ac_try='test -s conftest$ac_exeext' 8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8287 (eval $ac_try) 2>&5 8288 ac_status=$? 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8290 (exit $ac_status); }; }; then 8291 ac_cv_lib_dl_dlopen=yes 8292else 8293 echo "$as_me: failed program was:" >&5 8294sed 's/^/| /' conftest.$ac_ext >&5 8295 8296ac_cv_lib_dl_dlopen=no 8297fi 8298rm -f conftest.err conftest.$ac_objext \ 8299 conftest$ac_exeext conftest.$ac_ext 8300LIBS=$ac_check_lib_save_LIBS 8301fi 8302echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8303echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8304if test $ac_cv_lib_dl_dlopen = yes; then 8305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8306else 8307 8308 lt_cv_dlopen="dyld" 8309 lt_cv_dlopen_libs= 8310 lt_cv_dlopen_self=yes 8311 8312fi 8313 8314 ;; 8315 8316 *) 8317 echo "$as_me:$LINENO: checking for shl_load" >&5 8318echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8319if test "${ac_cv_func_shl_load+set}" = set; then 8320 echo $ECHO_N "(cached) $ECHO_C" >&6 8321else 8322 cat >conftest.$ac_ext <<_ACEOF 8323/* confdefs.h. */ 8324_ACEOF 8325cat confdefs.h >>conftest.$ac_ext 8326cat >>conftest.$ac_ext <<_ACEOF 8327/* end confdefs.h. */ 8328/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8329 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8330#define shl_load innocuous_shl_load 8331 8332/* System header to define __stub macros and hopefully few prototypes, 8333 which can conflict with char shl_load (); below. 8334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8335 <limits.h> exists even on freestanding compilers. */ 8336 8337#ifdef __STDC__ 8338# include <limits.h> 8339#else 8340# include <assert.h> 8341#endif 8342 8343#undef shl_load 8344 8345/* Override any gcc2 internal prototype to avoid an error. */ 8346#ifdef __cplusplus 8347extern "C" 8348{ 8349#endif 8350/* We use char because int might match the return type of a gcc2 8351 builtin and then its argument prototype would still apply. */ 8352char shl_load (); 8353/* The GNU C library defines this for functions which it implements 8354 to always fail with ENOSYS. Some functions are actually named 8355 something starting with __ and the normal name is an alias. */ 8356#if defined (__stub_shl_load) || defined (__stub___shl_load) 8357choke me 8358#else 8359char (*f) () = shl_load; 8360#endif 8361#ifdef __cplusplus 8362} 8363#endif 8364 8365int 8366main () 8367{ 8368return f != shl_load; 8369 ; 8370 return 0; 8371} 8372_ACEOF 8373rm -f conftest.$ac_objext conftest$ac_exeext 8374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8375 (eval $ac_link) 2>conftest.er1 8376 ac_status=$? 8377 grep -v '^ *+' conftest.er1 >conftest.err 8378 rm -f conftest.er1 8379 cat conftest.err >&5 8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8381 (exit $ac_status); } && 8382 { ac_try='test -z "$ac_c_werror_flag" 8383 || test ! -s conftest.err' 8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8385 (eval $ac_try) 2>&5 8386 ac_status=$? 8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8388 (exit $ac_status); }; } && 8389 { ac_try='test -s conftest$ac_exeext' 8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8391 (eval $ac_try) 2>&5 8392 ac_status=$? 8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8394 (exit $ac_status); }; }; then 8395 ac_cv_func_shl_load=yes 8396else 8397 echo "$as_me: failed program was:" >&5 8398sed 's/^/| /' conftest.$ac_ext >&5 8399 8400ac_cv_func_shl_load=no 8401fi 8402rm -f conftest.err conftest.$ac_objext \ 8403 conftest$ac_exeext conftest.$ac_ext 8404fi 8405echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8406echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8407if test $ac_cv_func_shl_load = yes; then 8408 lt_cv_dlopen="shl_load" 8409else 8410 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8411echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8412if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8413 echo $ECHO_N "(cached) $ECHO_C" >&6 8414else 8415 ac_check_lib_save_LIBS=$LIBS 8416LIBS="-ldld $LIBS" 8417cat >conftest.$ac_ext <<_ACEOF 8418/* confdefs.h. */ 8419_ACEOF 8420cat confdefs.h >>conftest.$ac_ext 8421cat >>conftest.$ac_ext <<_ACEOF 8422/* end confdefs.h. */ 8423 8424/* Override any gcc2 internal prototype to avoid an error. */ 8425#ifdef __cplusplus 8426extern "C" 8427#endif 8428/* We use char because int might match the return type of a gcc2 8429 builtin and then its argument prototype would still apply. */ 8430char shl_load (); 8431int 8432main () 8433{ 8434shl_load (); 8435 ; 8436 return 0; 8437} 8438_ACEOF 8439rm -f conftest.$ac_objext conftest$ac_exeext 8440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8441 (eval $ac_link) 2>conftest.er1 8442 ac_status=$? 8443 grep -v '^ *+' conftest.er1 >conftest.err 8444 rm -f conftest.er1 8445 cat conftest.err >&5 8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8447 (exit $ac_status); } && 8448 { ac_try='test -z "$ac_c_werror_flag" 8449 || test ! -s conftest.err' 8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8451 (eval $ac_try) 2>&5 8452 ac_status=$? 8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8454 (exit $ac_status); }; } && 8455 { ac_try='test -s conftest$ac_exeext' 8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8457 (eval $ac_try) 2>&5 8458 ac_status=$? 8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8460 (exit $ac_status); }; }; then 8461 ac_cv_lib_dld_shl_load=yes 8462else 8463 echo "$as_me: failed program was:" >&5 8464sed 's/^/| /' conftest.$ac_ext >&5 8465 8466ac_cv_lib_dld_shl_load=no 8467fi 8468rm -f conftest.err conftest.$ac_objext \ 8469 conftest$ac_exeext conftest.$ac_ext 8470LIBS=$ac_check_lib_save_LIBS 8471fi 8472echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8473echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8474if test $ac_cv_lib_dld_shl_load = yes; then 8475 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8476else 8477 echo "$as_me:$LINENO: checking for dlopen" >&5 8478echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8479if test "${ac_cv_func_dlopen+set}" = set; then 8480 echo $ECHO_N "(cached) $ECHO_C" >&6 8481else 8482 cat >conftest.$ac_ext <<_ACEOF 8483/* confdefs.h. */ 8484_ACEOF 8485cat confdefs.h >>conftest.$ac_ext 8486cat >>conftest.$ac_ext <<_ACEOF 8487/* end confdefs.h. */ 8488/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8489 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8490#define dlopen innocuous_dlopen 8491 8492/* System header to define __stub macros and hopefully few prototypes, 8493 which can conflict with char dlopen (); below. 8494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8495 <limits.h> exists even on freestanding compilers. */ 8496 8497#ifdef __STDC__ 8498# include <limits.h> 8499#else 8500# include <assert.h> 8501#endif 8502 8503#undef dlopen 8504 8505/* Override any gcc2 internal prototype to avoid an error. */ 8506#ifdef __cplusplus 8507extern "C" 8508{ 8509#endif 8510/* We use char because int might match the return type of a gcc2 8511 builtin and then its argument prototype would still apply. */ 8512char dlopen (); 8513/* The GNU C library defines this for functions which it implements 8514 to always fail with ENOSYS. Some functions are actually named 8515 something starting with __ and the normal name is an alias. */ 8516#if defined (__stub_dlopen) || defined (__stub___dlopen) 8517choke me 8518#else 8519char (*f) () = dlopen; 8520#endif 8521#ifdef __cplusplus 8522} 8523#endif 8524 8525int 8526main () 8527{ 8528return f != dlopen; 8529 ; 8530 return 0; 8531} 8532_ACEOF 8533rm -f conftest.$ac_objext conftest$ac_exeext 8534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8535 (eval $ac_link) 2>conftest.er1 8536 ac_status=$? 8537 grep -v '^ *+' conftest.er1 >conftest.err 8538 rm -f conftest.er1 8539 cat conftest.err >&5 8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8541 (exit $ac_status); } && 8542 { ac_try='test -z "$ac_c_werror_flag" 8543 || test ! -s conftest.err' 8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8545 (eval $ac_try) 2>&5 8546 ac_status=$? 8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8548 (exit $ac_status); }; } && 8549 { ac_try='test -s conftest$ac_exeext' 8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8551 (eval $ac_try) 2>&5 8552 ac_status=$? 8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8554 (exit $ac_status); }; }; then 8555 ac_cv_func_dlopen=yes 8556else 8557 echo "$as_me: failed program was:" >&5 8558sed 's/^/| /' conftest.$ac_ext >&5 8559 8560ac_cv_func_dlopen=no 8561fi 8562rm -f conftest.err conftest.$ac_objext \ 8563 conftest$ac_exeext conftest.$ac_ext 8564fi 8565echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8566echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8567if test $ac_cv_func_dlopen = yes; then 8568 lt_cv_dlopen="dlopen" 8569else 8570 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8571echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8572if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8573 echo $ECHO_N "(cached) $ECHO_C" >&6 8574else 8575 ac_check_lib_save_LIBS=$LIBS 8576LIBS="-ldl $LIBS" 8577cat >conftest.$ac_ext <<_ACEOF 8578/* confdefs.h. */ 8579_ACEOF 8580cat confdefs.h >>conftest.$ac_ext 8581cat >>conftest.$ac_ext <<_ACEOF 8582/* end confdefs.h. */ 8583 8584/* Override any gcc2 internal prototype to avoid an error. */ 8585#ifdef __cplusplus 8586extern "C" 8587#endif 8588/* We use char because int might match the return type of a gcc2 8589 builtin and then its argument prototype would still apply. */ 8590char dlopen (); 8591int 8592main () 8593{ 8594dlopen (); 8595 ; 8596 return 0; 8597} 8598_ACEOF 8599rm -f conftest.$ac_objext conftest$ac_exeext 8600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8601 (eval $ac_link) 2>conftest.er1 8602 ac_status=$? 8603 grep -v '^ *+' conftest.er1 >conftest.err 8604 rm -f conftest.er1 8605 cat conftest.err >&5 8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8607 (exit $ac_status); } && 8608 { ac_try='test -z "$ac_c_werror_flag" 8609 || test ! -s conftest.err' 8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8611 (eval $ac_try) 2>&5 8612 ac_status=$? 8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8614 (exit $ac_status); }; } && 8615 { ac_try='test -s conftest$ac_exeext' 8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8617 (eval $ac_try) 2>&5 8618 ac_status=$? 8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8620 (exit $ac_status); }; }; then 8621 ac_cv_lib_dl_dlopen=yes 8622else 8623 echo "$as_me: failed program was:" >&5 8624sed 's/^/| /' conftest.$ac_ext >&5 8625 8626ac_cv_lib_dl_dlopen=no 8627fi 8628rm -f conftest.err conftest.$ac_objext \ 8629 conftest$ac_exeext conftest.$ac_ext 8630LIBS=$ac_check_lib_save_LIBS 8631fi 8632echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8633echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8634if test $ac_cv_lib_dl_dlopen = yes; then 8635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8636else 8637 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8638echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8639if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8640 echo $ECHO_N "(cached) $ECHO_C" >&6 8641else 8642 ac_check_lib_save_LIBS=$LIBS 8643LIBS="-lsvld $LIBS" 8644cat >conftest.$ac_ext <<_ACEOF 8645/* confdefs.h. */ 8646_ACEOF 8647cat confdefs.h >>conftest.$ac_ext 8648cat >>conftest.$ac_ext <<_ACEOF 8649/* end confdefs.h. */ 8650 8651/* Override any gcc2 internal prototype to avoid an error. */ 8652#ifdef __cplusplus 8653extern "C" 8654#endif 8655/* We use char because int might match the return type of a gcc2 8656 builtin and then its argument prototype would still apply. */ 8657char dlopen (); 8658int 8659main () 8660{ 8661dlopen (); 8662 ; 8663 return 0; 8664} 8665_ACEOF 8666rm -f conftest.$ac_objext conftest$ac_exeext 8667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8668 (eval $ac_link) 2>conftest.er1 8669 ac_status=$? 8670 grep -v '^ *+' conftest.er1 >conftest.err 8671 rm -f conftest.er1 8672 cat conftest.err >&5 8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8674 (exit $ac_status); } && 8675 { ac_try='test -z "$ac_c_werror_flag" 8676 || test ! -s conftest.err' 8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8678 (eval $ac_try) 2>&5 8679 ac_status=$? 8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8681 (exit $ac_status); }; } && 8682 { ac_try='test -s conftest$ac_exeext' 8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8684 (eval $ac_try) 2>&5 8685 ac_status=$? 8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8687 (exit $ac_status); }; }; then 8688 ac_cv_lib_svld_dlopen=yes 8689else 8690 echo "$as_me: failed program was:" >&5 8691sed 's/^/| /' conftest.$ac_ext >&5 8692 8693ac_cv_lib_svld_dlopen=no 8694fi 8695rm -f conftest.err conftest.$ac_objext \ 8696 conftest$ac_exeext conftest.$ac_ext 8697LIBS=$ac_check_lib_save_LIBS 8698fi 8699echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8700echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8701if test $ac_cv_lib_svld_dlopen = yes; then 8702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8703else 8704 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8705echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8706if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8707 echo $ECHO_N "(cached) $ECHO_C" >&6 8708else 8709 ac_check_lib_save_LIBS=$LIBS 8710LIBS="-ldld $LIBS" 8711cat >conftest.$ac_ext <<_ACEOF 8712/* confdefs.h. */ 8713_ACEOF 8714cat confdefs.h >>conftest.$ac_ext 8715cat >>conftest.$ac_ext <<_ACEOF 8716/* end confdefs.h. */ 8717 8718/* Override any gcc2 internal prototype to avoid an error. */ 8719#ifdef __cplusplus 8720extern "C" 8721#endif 8722/* We use char because int might match the return type of a gcc2 8723 builtin and then its argument prototype would still apply. */ 8724char dld_link (); 8725int 8726main () 8727{ 8728dld_link (); 8729 ; 8730 return 0; 8731} 8732_ACEOF 8733rm -f conftest.$ac_objext conftest$ac_exeext 8734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8735 (eval $ac_link) 2>conftest.er1 8736 ac_status=$? 8737 grep -v '^ *+' conftest.er1 >conftest.err 8738 rm -f conftest.er1 8739 cat conftest.err >&5 8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8741 (exit $ac_status); } && 8742 { ac_try='test -z "$ac_c_werror_flag" 8743 || test ! -s conftest.err' 8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8745 (eval $ac_try) 2>&5 8746 ac_status=$? 8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8748 (exit $ac_status); }; } && 8749 { ac_try='test -s conftest$ac_exeext' 8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8751 (eval $ac_try) 2>&5 8752 ac_status=$? 8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8754 (exit $ac_status); }; }; then 8755 ac_cv_lib_dld_dld_link=yes 8756else 8757 echo "$as_me: failed program was:" >&5 8758sed 's/^/| /' conftest.$ac_ext >&5 8759 8760ac_cv_lib_dld_dld_link=no 8761fi 8762rm -f conftest.err conftest.$ac_objext \ 8763 conftest$ac_exeext conftest.$ac_ext 8764LIBS=$ac_check_lib_save_LIBS 8765fi 8766echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8767echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8768if test $ac_cv_lib_dld_dld_link = yes; then 8769 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8770fi 8771 8772 8773fi 8774 8775 8776fi 8777 8778 8779fi 8780 8781 8782fi 8783 8784 8785fi 8786 8787 ;; 8788 esac 8789 8790 if test "x$lt_cv_dlopen" != xno; then 8791 enable_dlopen=yes 8792 else 8793 enable_dlopen=no 8794 fi 8795 8796 case $lt_cv_dlopen in 8797 dlopen) 8798 save_CPPFLAGS="$CPPFLAGS" 8799 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8800 8801 save_LDFLAGS="$LDFLAGS" 8802 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8803 8804 save_LIBS="$LIBS" 8805 LIBS="$lt_cv_dlopen_libs $LIBS" 8806 8807 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8808echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8809if test "${lt_cv_dlopen_self+set}" = set; then 8810 echo $ECHO_N "(cached) $ECHO_C" >&6 8811else 8812 if test "$cross_compiling" = yes; then : 8813 lt_cv_dlopen_self=cross 8814else 8815 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8816 lt_status=$lt_dlunknown 8817 cat > conftest.$ac_ext <<EOF 8818#line 8818 "configure" 8819#include "confdefs.h" 8820 8821#if HAVE_DLFCN_H 8822#include <dlfcn.h> 8823#endif 8824 8825#include <stdio.h> 8826 8827#ifdef RTLD_GLOBAL 8828# define LT_DLGLOBAL RTLD_GLOBAL 8829#else 8830# ifdef DL_GLOBAL 8831# define LT_DLGLOBAL DL_GLOBAL 8832# else 8833# define LT_DLGLOBAL 0 8834# endif 8835#endif 8836 8837/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8838 find out it does not work in some platform. */ 8839#ifndef LT_DLLAZY_OR_NOW 8840# ifdef RTLD_LAZY 8841# define LT_DLLAZY_OR_NOW RTLD_LAZY 8842# else 8843# ifdef DL_LAZY 8844# define LT_DLLAZY_OR_NOW DL_LAZY 8845# else 8846# ifdef RTLD_NOW 8847# define LT_DLLAZY_OR_NOW RTLD_NOW 8848# else 8849# ifdef DL_NOW 8850# define LT_DLLAZY_OR_NOW DL_NOW 8851# else 8852# define LT_DLLAZY_OR_NOW 0 8853# endif 8854# endif 8855# endif 8856# endif 8857#endif 8858 8859#ifdef __cplusplus 8860extern "C" void exit (int); 8861#endif 8862 8863void fnord() { int i=42;} 8864int main () 8865{ 8866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8867 int status = $lt_dlunknown; 8868 8869 if (self) 8870 { 8871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8872 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8873 /* dlclose (self); */ 8874 } 8875 8876 exit (status); 8877} 8878EOF 8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8880 (eval $ac_link) 2>&5 8881 ac_status=$? 8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8883 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8884 (./conftest; exit; ) 2>/dev/null 8885 lt_status=$? 8886 case x$lt_status in 8887 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8888 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8889 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8890 esac 8891 else : 8892 # compilation failed 8893 lt_cv_dlopen_self=no 8894 fi 8895fi 8896rm -fr conftest* 8897 8898 8899fi 8900echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8901echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8902 8903 if test "x$lt_cv_dlopen_self" = xyes; then 8904 LDFLAGS="$LDFLAGS $link_static_flag" 8905 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8906echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8907if test "${lt_cv_dlopen_self_static+set}" = set; then 8908 echo $ECHO_N "(cached) $ECHO_C" >&6 8909else 8910 if test "$cross_compiling" = yes; then : 8911 lt_cv_dlopen_self_static=cross 8912else 8913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8914 lt_status=$lt_dlunknown 8915 cat > conftest.$ac_ext <<EOF 8916#line 8916 "configure" 8917#include "confdefs.h" 8918 8919#if HAVE_DLFCN_H 8920#include <dlfcn.h> 8921#endif 8922 8923#include <stdio.h> 8924 8925#ifdef RTLD_GLOBAL 8926# define LT_DLGLOBAL RTLD_GLOBAL 8927#else 8928# ifdef DL_GLOBAL 8929# define LT_DLGLOBAL DL_GLOBAL 8930# else 8931# define LT_DLGLOBAL 0 8932# endif 8933#endif 8934 8935/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8936 find out it does not work in some platform. */ 8937#ifndef LT_DLLAZY_OR_NOW 8938# ifdef RTLD_LAZY 8939# define LT_DLLAZY_OR_NOW RTLD_LAZY 8940# else 8941# ifdef DL_LAZY 8942# define LT_DLLAZY_OR_NOW DL_LAZY 8943# else 8944# ifdef RTLD_NOW 8945# define LT_DLLAZY_OR_NOW RTLD_NOW 8946# else 8947# ifdef DL_NOW 8948# define LT_DLLAZY_OR_NOW DL_NOW 8949# else 8950# define LT_DLLAZY_OR_NOW 0 8951# endif 8952# endif 8953# endif 8954# endif 8955#endif 8956 8957#ifdef __cplusplus 8958extern "C" void exit (int); 8959#endif 8960 8961void fnord() { int i=42;} 8962int main () 8963{ 8964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8965 int status = $lt_dlunknown; 8966 8967 if (self) 8968 { 8969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8971 /* dlclose (self); */ 8972 } 8973 8974 exit (status); 8975} 8976EOF 8977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8978 (eval $ac_link) 2>&5 8979 ac_status=$? 8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8981 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8982 (./conftest; exit; ) 2>/dev/null 8983 lt_status=$? 8984 case x$lt_status in 8985 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8986 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8987 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8988 esac 8989 else : 8990 # compilation failed 8991 lt_cv_dlopen_self_static=no 8992 fi 8993fi 8994rm -fr conftest* 8995 8996 8997fi 8998echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8999echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9000 fi 9001 9002 CPPFLAGS="$save_CPPFLAGS" 9003 LDFLAGS="$save_LDFLAGS" 9004 LIBS="$save_LIBS" 9005 ;; 9006 esac 9007 9008 case $lt_cv_dlopen_self in 9009 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9010 *) enable_dlopen_self=unknown ;; 9011 esac 9012 9013 case $lt_cv_dlopen_self_static in 9014 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9015 *) enable_dlopen_self_static=unknown ;; 9016 esac 9017fi 9018 9019 9020# Report which librarie types wil actually be built 9021echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9022echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9023echo "$as_me:$LINENO: result: $can_build_shared" >&5 9024echo "${ECHO_T}$can_build_shared" >&6 9025 9026echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9027echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9028test "$can_build_shared" = "no" && enable_shared=no 9029 9030# On AIX, shared libraries and static libraries use the same namespace, and 9031# are all built from PIC. 9032case "$host_os" in 9033aix3*) 9034 test "$enable_shared" = yes && enable_static=no 9035 if test -n "$RANLIB"; then 9036 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9037 postinstall_cmds='$RANLIB $lib' 9038 fi 9039 ;; 9040 9041aix4* | aix5*) 9042 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9043 test "$enable_shared" = yes && enable_static=no 9044 fi 9045 ;; 9046 darwin* | rhapsody*) 9047 if test "$GCC" = yes; then 9048 archive_cmds_need_lc=no 9049 case "$host_os" in 9050 rhapsody* | darwin1.[012]) 9051 allow_undefined_flag='-undefined suppress' 9052 ;; 9053 *) # Darwin 1.3 on 9054 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9055 allow_undefined_flag='-flat_namespace -undefined suppress' 9056 else 9057 case ${MACOSX_DEPLOYMENT_TARGET} in 9058 10.[012]) 9059 allow_undefined_flag='-flat_namespace -undefined suppress' 9060 ;; 9061 10.*) 9062 allow_undefined_flag='-undefined dynamic_lookup' 9063 ;; 9064 esac 9065 fi 9066 ;; 9067 esac 9068 output_verbose_link_cmd='echo' 9069 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 9070 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9071 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9072 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}' 9073 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}' 9074 hardcode_direct=no 9075 hardcode_automatic=yes 9076 hardcode_shlibpath_var=unsupported 9077 whole_archive_flag_spec='-all_load $convenience' 9078 link_all_deplibs=yes 9079 else 9080 ld_shlibs=no 9081 fi 9082 ;; 9083esac 9084echo "$as_me:$LINENO: result: $enable_shared" >&5 9085echo "${ECHO_T}$enable_shared" >&6 9086 9087echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9088echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9089# Make sure either enable_shared or enable_static is yes. 9090test "$enable_shared" = yes || enable_static=yes 9091echo "$as_me:$LINENO: result: $enable_static" >&5 9092echo "${ECHO_T}$enable_static" >&6 9093 9094# The else clause should only fire when bootstrapping the 9095# libtool distribution, otherwise you forgot to ship ltmain.sh 9096# with your package, and you will get complaints that there are 9097# no rules to generate ltmain.sh. 9098if test -f "$ltmain"; then 9099 # See if we are running on zsh, and set the options which allow our commands through 9100 # without removal of \ escapes. 9101 if test -n "${ZSH_VERSION+set}" ; then 9102 setopt NO_GLOB_SUBST 9103 fi 9104 # Now quote all the things that may contain metacharacters while being 9105 # careful not to overquote the AC_SUBSTed values. We take copies of the 9106 # variables and quote the copies for generation of the libtool script. 9107 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9108 SED SHELL STRIP \ 9109 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9110 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9111 deplibs_check_method reload_flag reload_cmds need_locks \ 9112 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9113 lt_cv_sys_global_symbol_to_c_name_address \ 9114 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9115 old_postinstall_cmds old_postuninstall_cmds \ 9116 compiler \ 9117 CC \ 9118 LD \ 9119 lt_prog_compiler_wl \ 9120 lt_prog_compiler_pic \ 9121 lt_prog_compiler_static \ 9122 lt_prog_compiler_no_builtin_flag \ 9123 export_dynamic_flag_spec \ 9124 thread_safe_flag_spec \ 9125 whole_archive_flag_spec \ 9126 enable_shared_with_static_runtimes \ 9127 old_archive_cmds \ 9128 old_archive_from_new_cmds \ 9129 predep_objects \ 9130 postdep_objects \ 9131 predeps \ 9132 postdeps \ 9133 compiler_lib_search_path \ 9134 archive_cmds \ 9135 archive_expsym_cmds \ 9136 postinstall_cmds \ 9137 postuninstall_cmds \ 9138 old_archive_from_expsyms_cmds \ 9139 allow_undefined_flag \ 9140 no_undefined_flag \ 9141 export_symbols_cmds \ 9142 hardcode_libdir_flag_spec \ 9143 hardcode_libdir_flag_spec_ld \ 9144 hardcode_libdir_separator \ 9145 hardcode_automatic \ 9146 module_cmds \ 9147 module_expsym_cmds \ 9148 lt_cv_prog_compiler_c_o \ 9149 exclude_expsyms \ 9150 include_expsyms; do 9151 9152 case $var in 9153 old_archive_cmds | \ 9154 old_archive_from_new_cmds | \ 9155 archive_cmds | \ 9156 archive_expsym_cmds | \ 9157 module_cmds | \ 9158 module_expsym_cmds | \ 9159 old_archive_from_expsyms_cmds | \ 9160 export_symbols_cmds | \ 9161 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9162 postinstall_cmds | postuninstall_cmds | \ 9163 old_postinstall_cmds | old_postuninstall_cmds | \ 9164 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9165 # Double-quote double-evaled strings. 9166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9167 ;; 9168 *) 9169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9170 ;; 9171 esac 9172 done 9173 9174 case $lt_echo in 9175 *'\$0 --fallback-echo"') 9176 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9177 ;; 9178 esac 9179 9180cfgfile="${ofile}T" 9181 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9182 $rm -f "$cfgfile" 9183 { echo "$as_me:$LINENO: creating $ofile" >&5 9184echo "$as_me: creating $ofile" >&6;} 9185 9186 cat <<__EOF__ >> "$cfgfile" 9187#! $SHELL 9188 9189# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9190# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9191# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9192# 9193# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9194# Free Software Foundation, Inc. 9195# 9196# This file is part of GNU Libtool: 9197# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9198# 9199# This program is free software; you can redistribute it and/or modify 9200# it under the terms of the GNU General Public License as published by 9201# the Free Software Foundation; either version 2 of the License, or 9202# (at your option) any later version. 9203# 9204# This program is distributed in the hope that it will be useful, but 9205# WITHOUT ANY WARRANTY; without even the implied warranty of 9206# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9207# General Public License for more details. 9208# 9209# You should have received a copy of the GNU General Public License 9210# along with this program; if not, write to the Free Software 9211# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9212# 9213# As a special exception to the GNU General Public License, if you 9214# distribute this file as part of a program that contains a 9215# configuration script generated by Autoconf, you may include it under 9216# the same distribution terms that you use for the rest of that program. 9217 9218# A sed program that does not truncate output. 9219SED=$lt_SED 9220 9221# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9222Xsed="$SED -e s/^X//" 9223 9224# The HP-UX ksh and POSIX shell print the target directory to stdout 9225# if CDPATH is set. 9226if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 9227 9228# The names of the tagged configurations supported by this script. 9229available_tags= 9230 9231# ### BEGIN LIBTOOL CONFIG 9232 9233# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9234 9235# Shell to use when invoking shell scripts. 9236SHELL=$lt_SHELL 9237 9238# Whether or not to build shared libraries. 9239build_libtool_libs=$enable_shared 9240 9241# Whether or not to build static libraries. 9242build_old_libs=$enable_static 9243 9244# Whether or not to add -lc for building shared libraries. 9245build_libtool_need_lc=$archive_cmds_need_lc 9246 9247# Whether or not to disallow shared libs when runtime libs are static 9248allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9249 9250# Whether or not to optimize for fast installation. 9251fast_install=$enable_fast_install 9252 9253# The host system. 9254host_alias=$host_alias 9255host=$host 9256 9257# An echo program that does not interpret backslashes. 9258echo=$lt_echo 9259 9260# The archiver. 9261AR=$lt_AR 9262AR_FLAGS=$lt_AR_FLAGS 9263 9264# A C compiler. 9265LTCC=$lt_LTCC 9266 9267# A language-specific compiler. 9268CC=$lt_compiler 9269 9270# Is the compiler the GNU C compiler? 9271with_gcc=$GCC 9272 9273# An ERE matcher. 9274EGREP=$lt_EGREP 9275 9276# The linker used to build libraries. 9277LD=$lt_LD 9278 9279# Whether we need hard or soft links. 9280LN_S=$lt_LN_S 9281 9282# A BSD-compatible nm program. 9283NM=$lt_NM 9284 9285# A symbol stripping program 9286STRIP=$lt_STRIP 9287 9288# Used to examine libraries when file_magic_cmd begins "file" 9289MAGIC_CMD=$MAGIC_CMD 9290 9291# Used on cygwin: DLL creation program. 9292DLLTOOL="$DLLTOOL" 9293 9294# Used on cygwin: object dumper. 9295OBJDUMP="$OBJDUMP" 9296 9297# Used on cygwin: assembler. 9298AS="$AS" 9299 9300# The name of the directory that contains temporary libtool files. 9301objdir=$objdir 9302 9303# How to create reloadable object files. 9304reload_flag=$lt_reload_flag 9305reload_cmds=$lt_reload_cmds 9306 9307# How to pass a linker flag through the compiler. 9308wl=$lt_lt_prog_compiler_wl 9309 9310# Object file suffix (normally "o"). 9311objext="$ac_objext" 9312 9313# Old archive suffix (normally "a"). 9314libext="$libext" 9315 9316# Shared library suffix (normally ".so"). 9317shrext_cmds='$shrext_cmds' 9318 9319# Executable file suffix (normally ""). 9320exeext="$exeext" 9321 9322# Additional compiler flags for building library objects. 9323pic_flag=$lt_lt_prog_compiler_pic 9324pic_mode=$pic_mode 9325 9326# What is the maximum length of a command? 9327max_cmd_len=$lt_cv_sys_max_cmd_len 9328 9329# Does compiler simultaneously support -c and -o options? 9330compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9331 9332# Must we lock files when doing compilation ? 9333need_locks=$lt_need_locks 9334 9335# Do we need the lib prefix for modules? 9336need_lib_prefix=$need_lib_prefix 9337 9338# Do we need a version for libraries? 9339need_version=$need_version 9340 9341# Whether dlopen is supported. 9342dlopen_support=$enable_dlopen 9343 9344# Whether dlopen of programs is supported. 9345dlopen_self=$enable_dlopen_self 9346 9347# Whether dlopen of statically linked programs is supported. 9348dlopen_self_static=$enable_dlopen_self_static 9349 9350# Compiler flag to prevent dynamic linking. 9351link_static_flag=$lt_lt_prog_compiler_static 9352 9353# Compiler flag to turn off builtin functions. 9354no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9355 9356# Compiler flag to allow reflexive dlopens. 9357export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9358 9359# Compiler flag to generate shared objects directly from archives. 9360whole_archive_flag_spec=$lt_whole_archive_flag_spec 9361 9362# Compiler flag to generate thread-safe objects. 9363thread_safe_flag_spec=$lt_thread_safe_flag_spec 9364 9365# Library versioning type. 9366version_type=$version_type 9367 9368# Format of library name prefix. 9369libname_spec=$lt_libname_spec 9370 9371# List of archive names. First name is the real one, the rest are links. 9372# The last name is the one that the linker finds with -lNAME. 9373library_names_spec=$lt_library_names_spec 9374 9375# The coded name of the library, if different from the real name. 9376soname_spec=$lt_soname_spec 9377 9378# Commands used to build and install an old-style archive. 9379RANLIB=$lt_RANLIB 9380old_archive_cmds=$lt_old_archive_cmds 9381old_postinstall_cmds=$lt_old_postinstall_cmds 9382old_postuninstall_cmds=$lt_old_postuninstall_cmds 9383 9384# Create an old-style archive from a shared archive. 9385old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9386 9387# Create a temporary old-style archive to link instead of a shared archive. 9388old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9389 9390# Commands used to build and install a shared archive. 9391archive_cmds=$lt_archive_cmds 9392archive_expsym_cmds=$lt_archive_expsym_cmds 9393postinstall_cmds=$lt_postinstall_cmds 9394postuninstall_cmds=$lt_postuninstall_cmds 9395 9396# Commands used to build a loadable module (assumed same as above if empty) 9397module_cmds=$lt_module_cmds 9398module_expsym_cmds=$lt_module_expsym_cmds 9399 9400# Commands to strip libraries. 9401old_striplib=$lt_old_striplib 9402striplib=$lt_striplib 9403 9404# Dependencies to place before the objects being linked to create a 9405# shared library. 9406predep_objects=$lt_predep_objects 9407 9408# Dependencies to place after the objects being linked to create a 9409# shared library. 9410postdep_objects=$lt_postdep_objects 9411 9412# Dependencies to place before the objects being linked to create a 9413# shared library. 9414predeps=$lt_predeps 9415 9416# Dependencies to place after the objects being linked to create a 9417# shared library. 9418postdeps=$lt_postdeps 9419 9420# The library search path used internally by the compiler when linking 9421# a shared library. 9422compiler_lib_search_path=$lt_compiler_lib_search_path 9423 9424# Method to check whether dependent libraries are shared objects. 9425deplibs_check_method=$lt_deplibs_check_method 9426 9427# Command to use when deplibs_check_method == file_magic. 9428file_magic_cmd=$lt_file_magic_cmd 9429 9430# Flag that allows shared libraries with undefined symbols to be built. 9431allow_undefined_flag=$lt_allow_undefined_flag 9432 9433# Flag that forces no undefined symbols. 9434no_undefined_flag=$lt_no_undefined_flag 9435 9436# Commands used to finish a libtool library installation in a directory. 9437finish_cmds=$lt_finish_cmds 9438 9439# Same as above, but a single script fragment to be evaled but not shown. 9440finish_eval=$lt_finish_eval 9441 9442# Take the output of nm and produce a listing of raw symbols and C names. 9443global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9444 9445# Transform the output of nm in a proper C declaration 9446global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9447 9448# Transform the output of nm in a C name address pair 9449global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9450 9451# This is the shared library runtime path variable. 9452runpath_var=$runpath_var 9453 9454# This is the shared library path variable. 9455shlibpath_var=$shlibpath_var 9456 9457# Is shlibpath searched before the hard-coded library search path? 9458shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9459 9460# How to hardcode a shared library path into an executable. 9461hardcode_action=$hardcode_action 9462 9463# Whether we should hardcode library paths into libraries. 9464hardcode_into_libs=$hardcode_into_libs 9465 9466# Flag to hardcode \$libdir into a binary during linking. 9467# This must work even if \$libdir does not exist. 9468hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9469 9470# If ld is used when linking, flag to hardcode \$libdir into 9471# a binary during linking. This must work even if \$libdir does 9472# not exist. 9473hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9474 9475# Whether we need a single -rpath flag with a separated argument. 9476hardcode_libdir_separator=$lt_hardcode_libdir_separator 9477 9478# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9479# resulting binary. 9480hardcode_direct=$hardcode_direct 9481 9482# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9483# resulting binary. 9484hardcode_minus_L=$hardcode_minus_L 9485 9486# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9487# the resulting binary. 9488hardcode_shlibpath_var=$hardcode_shlibpath_var 9489 9490# Set to yes if building a shared library automatically hardcodes DIR into the library 9491# and all subsequent libraries and executables linked against it. 9492hardcode_automatic=$hardcode_automatic 9493 9494# Variables whose values should be saved in libtool wrapper scripts and 9495# restored at relink time. 9496variables_saved_for_relink="$variables_saved_for_relink" 9497 9498# Whether libtool must link a program against all its dependency libraries. 9499link_all_deplibs=$link_all_deplibs 9500 9501# Compile-time system search path for libraries 9502sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9503 9504# Run-time system search path for libraries 9505sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9506 9507# Fix the shell variable \$srcfile for the compiler. 9508fix_srcfile_path="$fix_srcfile_path" 9509 9510# Set to yes if exported symbols are required. 9511always_export_symbols=$always_export_symbols 9512 9513# The commands to list exported symbols. 9514export_symbols_cmds=$lt_export_symbols_cmds 9515 9516# The commands to extract the exported symbol list from a shared archive. 9517extract_expsyms_cmds=$lt_extract_expsyms_cmds 9518 9519# Symbols that should not be listed in the preloaded symbols. 9520exclude_expsyms=$lt_exclude_expsyms 9521 9522# Symbols that must always be exported. 9523include_expsyms=$lt_include_expsyms 9524 9525# ### END LIBTOOL CONFIG 9526 9527__EOF__ 9528 9529 9530 case $host_os in 9531 aix3*) 9532 cat <<\EOF >> "$cfgfile" 9533 9534# AIX sometimes has problems with the GCC collect2 program. For some 9535# reason, if we set the COLLECT_NAMES environment variable, the problems 9536# vanish in a puff of smoke. 9537if test "X${COLLECT_NAMES+set}" != Xset; then 9538 COLLECT_NAMES= 9539 export COLLECT_NAMES 9540fi 9541EOF 9542 ;; 9543 esac 9544 9545 # We use sed instead of cat because bash on DJGPP gets confused if 9546 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9547 # text mode, it properly converts lines to CR/LF. This bash problem 9548 # is reportedly fixed, but why not run on old versions too? 9549 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9550 9551 mv -f "$cfgfile" "$ofile" || \ 9552 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9553 chmod +x "$ofile" 9554 9555else 9556 # If there is no Makefile yet, we rely on a make rule to execute 9557 # `config.status --recheck' to rerun these tests and create the 9558 # libtool script then. 9559 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9560 if test -f "$ltmain_in"; then 9561 test -f Makefile && make "$ltmain" 9562 fi 9563fi 9564 9565 9566ac_ext=c 9567ac_cpp='$CPP $CPPFLAGS' 9568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9570ac_compiler_gnu=$ac_cv_c_compiler_gnu 9571 9572CC="$lt_save_CC" 9573 9574 9575# Check whether --with-tags or --without-tags was given. 9576if test "${with_tags+set}" = set; then 9577 withval="$with_tags" 9578 tagnames="$withval" 9579fi; 9580 9581if test -f "$ltmain" && test -n "$tagnames"; then 9582 if test ! -f "${ofile}"; then 9583 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9584echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9585 fi 9586 9587 if test -z "$LTCC"; then 9588 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9589 if test -z "$LTCC"; then 9590 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9591echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9592 else 9593 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9594echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9595 fi 9596 fi 9597 9598 # Extract list of available tagged configurations in $ofile. 9599 # Note that this assumes the entire list is on one line. 9600 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9601 9602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9603 for tagname in $tagnames; do 9604 IFS="$lt_save_ifs" 9605 # Check whether tagname contains only valid characters 9606 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9607 "") ;; 9608 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9609echo "$as_me: error: invalid tag name: $tagname" >&2;} 9610 { (exit 1); exit 1; }; } 9611 ;; 9612 esac 9613 9614 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9615 then 9616 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9617echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9618 { (exit 1); exit 1; }; } 9619 fi 9620 9621 # Update the list of available tags. 9622 if test -n "$tagname"; then 9623 echo appending configuration tag \"$tagname\" to $ofile 9624 9625 case $tagname in 9626 CXX) 9627 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9628 ac_ext=cc 9629ac_cpp='$CXXCPP $CPPFLAGS' 9630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9633 9634 9635 9636 9637archive_cmds_need_lc_CXX=no 9638allow_undefined_flag_CXX= 9639always_export_symbols_CXX=no 9640archive_expsym_cmds_CXX= 9641export_dynamic_flag_spec_CXX= 9642hardcode_direct_CXX=no 9643hardcode_libdir_flag_spec_CXX= 9644hardcode_libdir_flag_spec_ld_CXX= 9645hardcode_libdir_separator_CXX= 9646hardcode_minus_L_CXX=no 9647hardcode_automatic_CXX=no 9648module_cmds_CXX= 9649module_expsym_cmds_CXX= 9650link_all_deplibs_CXX=unknown 9651old_archive_cmds_CXX=$old_archive_cmds 9652no_undefined_flag_CXX= 9653whole_archive_flag_spec_CXX= 9654enable_shared_with_static_runtimes_CXX=no 9655 9656# Dependencies to place before and after the object being linked: 9657predep_objects_CXX= 9658postdep_objects_CXX= 9659predeps_CXX= 9660postdeps_CXX= 9661compiler_lib_search_path_CXX= 9662 9663# Source file extension for C++ test sources. 9664ac_ext=cc 9665 9666# Object file extension for compiled C++ test sources. 9667objext=o 9668objext_CXX=$objext 9669 9670# Code to be used in simple compile tests 9671lt_simple_compile_test_code="int some_variable = 0;\n" 9672 9673# Code to be used in simple link tests 9674lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9675 9676# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9677 9678# If no C compiler was specified, use CC. 9679LTCC=${LTCC-"$CC"} 9680 9681# Allow CC to be a program name with arguments. 9682compiler=$CC 9683 9684 9685# Allow CC to be a program name with arguments. 9686lt_save_CC=$CC 9687lt_save_LD=$LD 9688lt_save_GCC=$GCC 9689GCC=$GXX 9690lt_save_with_gnu_ld=$with_gnu_ld 9691lt_save_path_LD=$lt_cv_path_LD 9692if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9693 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9694else 9695 unset lt_cv_prog_gnu_ld 9696fi 9697if test -n "${lt_cv_path_LDCXX+set}"; then 9698 lt_cv_path_LD=$lt_cv_path_LDCXX 9699else 9700 unset lt_cv_path_LD 9701fi 9702test -z "${LDCXX+set}" || LD=$LDCXX 9703CC=${CXX-"c++"} 9704compiler=$CC 9705compiler_CXX=$CC 9706cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9707 9708# We don't want -fno-exception wen compiling C++ code, so set the 9709# no_builtin_flag separately 9710if test "$GXX" = yes; then 9711 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9712else 9713 lt_prog_compiler_no_builtin_flag_CXX= 9714fi 9715 9716if test "$GXX" = yes; then 9717 # Set up default GNU C++ configuration 9718 9719 9720# Check whether --with-gnu-ld or --without-gnu-ld was given. 9721if test "${with_gnu_ld+set}" = set; then 9722 withval="$with_gnu_ld" 9723 test "$withval" = no || with_gnu_ld=yes 9724else 9725 with_gnu_ld=no 9726fi; 9727ac_prog=ld 9728if test "$GCC" = yes; then 9729 # Check if gcc -print-prog-name=ld gives a path. 9730 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9731echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9732 case $host in 9733 *-*-mingw*) 9734 # gcc leaves a trailing carriage return which upsets mingw 9735 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9736 *) 9737 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9738 esac 9739 case $ac_prog in 9740 # Accept absolute paths. 9741 [\\/]* | ?:[\\/]*) 9742 re_direlt='/[^/][^/]*/\.\./' 9743 # Canonicalize the pathname of ld 9744 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9745 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9746 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9747 done 9748 test -z "$LD" && LD="$ac_prog" 9749 ;; 9750 "") 9751 # If it fails, then pretend we aren't using GCC. 9752 ac_prog=ld 9753 ;; 9754 *) 9755 # If it is relative, then search for the first ld in PATH. 9756 with_gnu_ld=unknown 9757 ;; 9758 esac 9759elif test "$with_gnu_ld" = yes; then 9760 echo "$as_me:$LINENO: checking for GNU ld" >&5 9761echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9762else 9763 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9764echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9765fi 9766if test "${lt_cv_path_LD+set}" = set; then 9767 echo $ECHO_N "(cached) $ECHO_C" >&6 9768else 9769 if test -z "$LD"; then 9770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9771 for ac_dir in $PATH; do 9772 IFS="$lt_save_ifs" 9773 test -z "$ac_dir" && ac_dir=. 9774 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9775 lt_cv_path_LD="$ac_dir/$ac_prog" 9776 # Check to see if the program is GNU ld. I'd rather use --version, 9777 # but apparently some GNU ld's only accept -v. 9778 # Break only if it was the GNU/non-GNU ld that we prefer. 9779 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9780 *GNU* | *'with BFD'*) 9781 test "$with_gnu_ld" != no && break 9782 ;; 9783 *) 9784 test "$with_gnu_ld" != yes && break 9785 ;; 9786 esac 9787 fi 9788 done 9789 IFS="$lt_save_ifs" 9790else 9791 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9792fi 9793fi 9794 9795LD="$lt_cv_path_LD" 9796if test -n "$LD"; then 9797 echo "$as_me:$LINENO: result: $LD" >&5 9798echo "${ECHO_T}$LD" >&6 9799else 9800 echo "$as_me:$LINENO: result: no" >&5 9801echo "${ECHO_T}no" >&6 9802fi 9803test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9804echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9805 { (exit 1); exit 1; }; } 9806echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9807echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9808if test "${lt_cv_prog_gnu_ld+set}" = set; then 9809 echo $ECHO_N "(cached) $ECHO_C" >&6 9810else 9811 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9812case `$LD -v 2>&1 </dev/null` in 9813*GNU* | *'with BFD'*) 9814 lt_cv_prog_gnu_ld=yes 9815 ;; 9816*) 9817 lt_cv_prog_gnu_ld=no 9818 ;; 9819esac 9820fi 9821echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9822echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9823with_gnu_ld=$lt_cv_prog_gnu_ld 9824 9825 9826 9827 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9828 # archiving commands below assume that GNU ld is being used. 9829 if test "$with_gnu_ld" = yes; then 9830 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9831 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' 9832 9833 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9834 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9835 9836 # If archive_cmds runs LD, not CC, wlarc should be empty 9837 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9838 # investigate it a little bit more. (MM) 9839 wlarc='${wl}' 9840 9841 # ancient GNU ld didn't support --whole-archive et. al. 9842 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9843 grep 'no-whole-archive' > /dev/null; then 9844 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9845 else 9846 whole_archive_flag_spec_CXX= 9847 fi 9848 else 9849 with_gnu_ld=no 9850 wlarc= 9851 9852 # A generic and very simple default shared library creation 9853 # command for GNU C++ for the case where it uses the native 9854 # linker, instead of GNU ld. If possible, this setting should 9855 # overridden to take advantage of the native linker features on 9856 # the platform it is being used on. 9857 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9858 fi 9859 9860 # Commands to make compiler produce verbose output that lists 9861 # what "hidden" libraries, object files and flags are used when 9862 # linking a shared library. 9863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9864 9865else 9866 GXX=no 9867 with_gnu_ld=no 9868 wlarc= 9869fi 9870 9871# PORTME: fill in a description of your system's C++ link characteristics 9872echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9873echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9874ld_shlibs_CXX=yes 9875case $host_os in 9876 aix3*) 9877 # FIXME: insert proper C++ library support 9878 ld_shlibs_CXX=no 9879 ;; 9880 aix4* | aix5*) 9881 if test "$host_cpu" = ia64; then 9882 # On IA64, the linker does run time linking by default, so we don't 9883 # have to do anything special. 9884 aix_use_runtimelinking=no 9885 exp_sym_flag='-Bexport' 9886 no_entry_flag="" 9887 else 9888 aix_use_runtimelinking=no 9889 9890 # Test if we are trying to use run time linking or normal 9891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9892 # need to do runtime linking. 9893 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9894 for ld_flag in $LDFLAGS; do 9895 case $ld_flag in 9896 *-brtl*) 9897 aix_use_runtimelinking=yes 9898 break 9899 ;; 9900 esac 9901 done 9902 esac 9903 9904 exp_sym_flag='-bexport' 9905 no_entry_flag='-bnoentry' 9906 fi 9907 9908 # When large executables or shared objects are built, AIX ld can 9909 # have problems creating the table of contents. If linking a library 9910 # or program results in "error TOC overflow" add -mminimal-toc to 9911 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9912 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9913 9914 archive_cmds_CXX='' 9915 hardcode_direct_CXX=yes 9916 hardcode_libdir_separator_CXX=':' 9917 link_all_deplibs_CXX=yes 9918 9919 if test "$GXX" = yes; then 9920 case $host_os in aix4.012|aix4.012.*) 9921 # We only want to do this on AIX 4.2 and lower, the check 9922 # below for broken collect2 doesn't work under 4.3+ 9923 collect2name=`${CC} -print-prog-name=collect2` 9924 if test -f "$collect2name" && \ 9925 strings "$collect2name" | grep resolve_lib_name >/dev/null 9926 then 9927 # We have reworked collect2 9928 hardcode_direct_CXX=yes 9929 else 9930 # We have old collect2 9931 hardcode_direct_CXX=unsupported 9932 # It fails to find uninstalled libraries when the uninstalled 9933 # path is not listed in the libpath. Setting hardcode_minus_L 9934 # to unsupported forces relinking 9935 hardcode_minus_L_CXX=yes 9936 hardcode_libdir_flag_spec_CXX='-L$libdir' 9937 hardcode_libdir_separator_CXX= 9938 fi 9939 esac 9940 shared_flag='-shared' 9941 else 9942 # not using gcc 9943 if test "$host_cpu" = ia64; then 9944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9945 # chokes on -Wl,-G. The following line is correct: 9946 shared_flag='-G' 9947 else 9948 if test "$aix_use_runtimelinking" = yes; then 9949 shared_flag='${wl}-G' 9950 else 9951 shared_flag='${wl}-bM:SRE' 9952 fi 9953 fi 9954 fi 9955 9956 # It seems that -bexpall does not export symbols beginning with 9957 # underscore (_), so it is better to generate a list of symbols to export. 9958 always_export_symbols_CXX=yes 9959 if test "$aix_use_runtimelinking" = yes; then 9960 # Warning - without using the other runtime loading flags (-brtl), 9961 # -berok will link without error, but may produce a broken library. 9962 allow_undefined_flag_CXX='-berok' 9963 # Determine the default libpath from the value encoded in an empty executable. 9964 cat >conftest.$ac_ext <<_ACEOF 9965/* confdefs.h. */ 9966_ACEOF 9967cat confdefs.h >>conftest.$ac_ext 9968cat >>conftest.$ac_ext <<_ACEOF 9969/* end confdefs.h. */ 9970 9971int 9972main () 9973{ 9974 9975 ; 9976 return 0; 9977} 9978_ACEOF 9979rm -f conftest.$ac_objext conftest$ac_exeext 9980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9981 (eval $ac_link) 2>conftest.er1 9982 ac_status=$? 9983 grep -v '^ *+' conftest.er1 >conftest.err 9984 rm -f conftest.er1 9985 cat conftest.err >&5 9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 (exit $ac_status); } && 9988 { ac_try='test -z "$ac_cxx_werror_flag" 9989 || test ! -s conftest.err' 9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9991 (eval $ac_try) 2>&5 9992 ac_status=$? 9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9994 (exit $ac_status); }; } && 9995 { ac_try='test -s conftest$ac_exeext' 9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9997 (eval $ac_try) 2>&5 9998 ac_status=$? 9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10000 (exit $ac_status); }; }; then 10001 10002aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10003}'` 10004# Check for a 64-bit object if we didn't find anything. 10005if 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; } 10006}'`; fi 10007else 10008 echo "$as_me: failed program was:" >&5 10009sed 's/^/| /' conftest.$ac_ext >&5 10010 10011fi 10012rm -f conftest.err conftest.$ac_objext \ 10013 conftest$ac_exeext conftest.$ac_ext 10014if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10015 10016 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10017 10018 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10019 else 10020 if test "$host_cpu" = ia64; then 10021 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10022 allow_undefined_flag_CXX="-z nodefs" 10023 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 10024 else 10025 # Determine the default libpath from the value encoded in an empty executable. 10026 cat >conftest.$ac_ext <<_ACEOF 10027/* confdefs.h. */ 10028_ACEOF 10029cat confdefs.h >>conftest.$ac_ext 10030cat >>conftest.$ac_ext <<_ACEOF 10031/* end confdefs.h. */ 10032 10033int 10034main () 10035{ 10036 10037 ; 10038 return 0; 10039} 10040_ACEOF 10041rm -f conftest.$ac_objext conftest$ac_exeext 10042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10043 (eval $ac_link) 2>conftest.er1 10044 ac_status=$? 10045 grep -v '^ *+' conftest.er1 >conftest.err 10046 rm -f conftest.er1 10047 cat conftest.err >&5 10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10049 (exit $ac_status); } && 10050 { ac_try='test -z "$ac_cxx_werror_flag" 10051 || test ! -s conftest.err' 10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10053 (eval $ac_try) 2>&5 10054 ac_status=$? 10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10056 (exit $ac_status); }; } && 10057 { ac_try='test -s conftest$ac_exeext' 10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10059 (eval $ac_try) 2>&5 10060 ac_status=$? 10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10062 (exit $ac_status); }; }; then 10063 10064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10065}'` 10066# Check for a 64-bit object if we didn't find anything. 10067if 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; } 10068}'`; fi 10069else 10070 echo "$as_me: failed program was:" >&5 10071sed 's/^/| /' conftest.$ac_ext >&5 10072 10073fi 10074rm -f conftest.err conftest.$ac_objext \ 10075 conftest$ac_exeext conftest.$ac_ext 10076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10077 10078 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10079 # Warning - without using the other run time loading flags, 10080 # -berok will link without error, but may produce a broken library. 10081 no_undefined_flag_CXX=' ${wl}-bernotok' 10082 allow_undefined_flag_CXX=' ${wl}-berok' 10083 # -bexpall does not export symbols beginning with underscore (_) 10084 always_export_symbols_CXX=yes 10085 # Exported symbols can be pulled into shared objects from archives 10086 whole_archive_flag_spec_CXX=' ' 10087 archive_cmds_need_lc_CXX=yes 10088 # This is similar to how AIX traditionally builds it's shared libraries. 10089 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10090 fi 10091 fi 10092 ;; 10093 chorus*) 10094 case $cc_basename in 10095 *) 10096 # FIXME: insert proper C++ library support 10097 ld_shlibs_CXX=no 10098 ;; 10099 esac 10100 ;; 10101 10102 cygwin* | mingw* | pw32*) 10103 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10104 # as there is no search path for DLLs. 10105 hardcode_libdir_flag_spec_CXX='-L$libdir' 10106 allow_undefined_flag_CXX=unsupported 10107 always_export_symbols_CXX=no 10108 enable_shared_with_static_runtimes_CXX=yes 10109 10110 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10111 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10112 # If the export-symbols file already is a .def file (1st line 10113 # is EXPORTS), use it as is; otherwise, prepend... 10114 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10115 cp $export_symbols $output_objdir/$soname.def; 10116 else 10117 echo EXPORTS > $output_objdir/$soname.def; 10118 cat $export_symbols >> $output_objdir/$soname.def; 10119 fi~ 10120 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10121 else 10122 ld_shlibs_CXX=no 10123 fi 10124 ;; 10125 10126 darwin* | rhapsody*) 10127 if test "$GXX" = yes; then 10128 archive_cmds_need_lc_CXX=no 10129 case "$host_os" in 10130 rhapsody* | darwin1.[012]) 10131 allow_undefined_flag_CXX='-undefined suppress' 10132 ;; 10133 *) # Darwin 1.3 on 10134 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10135 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10136 else 10137 case ${MACOSX_DEPLOYMENT_TARGET} in 10138 10.[012]) 10139 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10140 ;; 10141 10.*) 10142 allow_undefined_flag_CXX='-undefined dynamic_lookup' 10143 ;; 10144 esac 10145 fi 10146 ;; 10147 esac 10148 lt_int_apple_cc_single_mod=no 10149 output_verbose_link_cmd='echo' 10150 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 10151 lt_int_apple_cc_single_mod=yes 10152 fi 10153 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10154 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10155 else 10156 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10157 fi 10158 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10159 10160 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10161 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10162 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}' 10163 else 10164 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10165 fi 10166 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}' 10167 hardcode_direct_CXX=no 10168 hardcode_automatic_CXX=yes 10169 hardcode_shlibpath_var_CXX=unsupported 10170 whole_archive_flag_spec_CXX='-all_load $convenience' 10171 link_all_deplibs_CXX=yes 10172 else 10173 ld_shlibs_CXX=no 10174 fi 10175 ;; 10176 10177 dgux*) 10178 case $cc_basename in 10179 ec++) 10180 # FIXME: insert proper C++ library support 10181 ld_shlibs_CXX=no 10182 ;; 10183 ghcx) 10184 # Green Hills C++ Compiler 10185 # FIXME: insert proper C++ library support 10186 ld_shlibs_CXX=no 10187 ;; 10188 *) 10189 # FIXME: insert proper C++ library support 10190 ld_shlibs_CXX=no 10191 ;; 10192 esac 10193 ;; 10194 freebsd12*) 10195 # C++ shared libraries reported to be fairly broken before switch to ELF 10196 ld_shlibs_CXX=no 10197 ;; 10198 freebsd-elf*) 10199 archive_cmds_need_lc_CXX=no 10200 ;; 10201 freebsd* | kfreebsd*-gnu) 10202 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10203 # conventions 10204 ld_shlibs_CXX=yes 10205 ;; 10206 gnu*) 10207 ;; 10208 hpux9*) 10209 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10210 hardcode_libdir_separator_CXX=: 10211 export_dynamic_flag_spec_CXX='${wl}-E' 10212 hardcode_direct_CXX=yes 10213 hardcode_minus_L_CXX=yes # Not in the search PATH, 10214 # but as the default 10215 # location of the library. 10216 10217 case $cc_basename in 10218 CC) 10219 # FIXME: insert proper C++ library support 10220 ld_shlibs_CXX=no 10221 ;; 10222 aCC) 10223 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' 10224 # Commands to make compiler produce verbose output that lists 10225 # what "hidden" libraries, object files and flags are used when 10226 # linking a shared library. 10227 # 10228 # There doesn't appear to be a way to prevent this compiler from 10229 # explicitly linking system object files so we need to strip them 10230 # from the output so that they don't get included in the library 10231 # dependencies. 10232 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' 10233 ;; 10234 *) 10235 if test "$GXX" = yes; then 10236 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' 10237 else 10238 # FIXME: insert proper C++ library support 10239 ld_shlibs_CXX=no 10240 fi 10241 ;; 10242 esac 10243 ;; 10244 hpux10*|hpux11*) 10245 if test $with_gnu_ld = no; then 10246 case "$host_cpu" in 10247 hppa*64*) 10248 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10249 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10250 hardcode_libdir_separator_CXX=: 10251 ;; 10252 ia64*) 10253 hardcode_libdir_flag_spec_CXX='-L$libdir' 10254 ;; 10255 *) 10256 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10257 hardcode_libdir_separator_CXX=: 10258 export_dynamic_flag_spec_CXX='${wl}-E' 10259 ;; 10260 esac 10261 fi 10262 case "$host_cpu" in 10263 hppa*64*) 10264 hardcode_direct_CXX=no 10265 hardcode_shlibpath_var_CXX=no 10266 ;; 10267 ia64*) 10268 hardcode_direct_CXX=no 10269 hardcode_shlibpath_var_CXX=no 10270 hardcode_minus_L_CXX=yes # Not in the search PATH, 10271 # but as the default 10272 # location of the library. 10273 ;; 10274 *) 10275 hardcode_direct_CXX=yes 10276 hardcode_minus_L_CXX=yes # Not in the search PATH, 10277 # but as the default 10278 # location of the library. 10279 ;; 10280 esac 10281 10282 case $cc_basename in 10283 CC) 10284 # FIXME: insert proper C++ library support 10285 ld_shlibs_CXX=no 10286 ;; 10287 aCC) 10288 case "$host_cpu" in 10289 hppa*64*|ia64*) 10290 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10291 ;; 10292 *) 10293 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10294 ;; 10295 esac 10296 # Commands to make compiler produce verbose output that lists 10297 # what "hidden" libraries, object files and flags are used when 10298 # linking a shared library. 10299 # 10300 # There doesn't appear to be a way to prevent this compiler from 10301 # explicitly linking system object files so we need to strip them 10302 # from the output so that they don't get included in the library 10303 # dependencies. 10304 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' 10305 ;; 10306 *) 10307 if test "$GXX" = yes; then 10308 if test $with_gnu_ld = no; then 10309 case "$host_cpu" in 10310 ia64*|hppa*64*) 10311 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10312 ;; 10313 *) 10314 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' 10315 ;; 10316 esac 10317 fi 10318 else 10319 # FIXME: insert proper C++ library support 10320 ld_shlibs_CXX=no 10321 fi 10322 ;; 10323 esac 10324 ;; 10325 irix5* | irix6*) 10326 case $cc_basename in 10327 CC) 10328 # SGI C++ 10329 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10330 10331 # Archives containing C++ object files must be created using 10332 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10333 # necessary to make sure instantiated templates are included 10334 # in the archive. 10335 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10336 ;; 10337 *) 10338 if test "$GXX" = yes; then 10339 if test "$with_gnu_ld" = no; then 10340 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 10341 else 10342 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' 10343 fi 10344 fi 10345 link_all_deplibs_CXX=yes 10346 ;; 10347 esac 10348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10349 hardcode_libdir_separator_CXX=: 10350 ;; 10351 linux*) 10352 case $cc_basename in 10353 KCC) 10354 # Kuck and Associates, Inc. (KAI) C++ Compiler 10355 10356 # KCC will only create a shared library if the output file 10357 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10358 # to its proper name (with version) after linking. 10359 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' 10360 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' 10361 # Commands to make compiler produce verbose output that lists 10362 # what "hidden" libraries, object files and flags are used when 10363 # linking a shared library. 10364 # 10365 # There doesn't appear to be a way to prevent this compiler from 10366 # explicitly linking system object files so we need to strip them 10367 # from the output so that they don't get included in the library 10368 # dependencies. 10369 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' 10370 10371 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10372 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10373 10374 # Archives containing C++ object files must be created using 10375 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10376 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10377 ;; 10378 icpc) 10379 # Intel C++ 10380 with_gnu_ld=yes 10381 archive_cmds_need_lc_CXX=no 10382 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10383 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' 10384 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10385 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10386 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10387 ;; 10388 cxx) 10389 # Compaq C++ 10390 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10391 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' 10392 10393 runpath_var=LD_RUN_PATH 10394 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10395 hardcode_libdir_separator_CXX=: 10396 10397 # Commands to make compiler produce verbose output that lists 10398 # what "hidden" libraries, object files and flags are used when 10399 # linking a shared library. 10400 # 10401 # There doesn't appear to be a way to prevent this compiler from 10402 # explicitly linking system object files so we need to strip them 10403 # from the output so that they don't get included in the library 10404 # dependencies. 10405 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' 10406 ;; 10407 esac 10408 ;; 10409 lynxos*) 10410 # FIXME: insert proper C++ library support 10411 ld_shlibs_CXX=no 10412 ;; 10413 m88k*) 10414 # FIXME: insert proper C++ library support 10415 ld_shlibs_CXX=no 10416 ;; 10417 mvs*) 10418 case $cc_basename in 10419 cxx) 10420 # FIXME: insert proper C++ library support 10421 ld_shlibs_CXX=no 10422 ;; 10423 *) 10424 # FIXME: insert proper C++ library support 10425 ld_shlibs_CXX=no 10426 ;; 10427 esac 10428 ;; 10429 netbsd*) 10430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10431 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10432 wlarc= 10433 hardcode_libdir_flag_spec_CXX='-R$libdir' 10434 hardcode_direct_CXX=yes 10435 hardcode_shlibpath_var_CXX=no 10436 fi 10437 # Workaround some broken pre-1.5 toolchains 10438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10439 ;; 10440 osf3*) 10441 case $cc_basename in 10442 KCC) 10443 # Kuck and Associates, Inc. (KAI) C++ Compiler 10444 10445 # KCC will only create a shared library if the output file 10446 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10447 # to its proper name (with version) after linking. 10448 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' 10449 10450 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10451 hardcode_libdir_separator_CXX=: 10452 10453 # Archives containing C++ object files must be created using 10454 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10455 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10456 10457 ;; 10458 RCC) 10459 # Rational C++ 2.4.1 10460 # FIXME: insert proper C++ library support 10461 ld_shlibs_CXX=no 10462 ;; 10463 cxx) 10464 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10465 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10466 10467 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10468 hardcode_libdir_separator_CXX=: 10469 10470 # Commands to make compiler produce verbose output that lists 10471 # what "hidden" libraries, object files and flags are used when 10472 # linking a shared library. 10473 # 10474 # There doesn't appear to be a way to prevent this compiler from 10475 # explicitly linking system object files so we need to strip them 10476 # from the output so that they don't get included in the library 10477 # dependencies. 10478 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' 10479 ;; 10480 *) 10481 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10482 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10483 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 10484 10485 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10486 hardcode_libdir_separator_CXX=: 10487 10488 # Commands to make compiler produce verbose output that lists 10489 # what "hidden" libraries, object files and flags are used when 10490 # linking a shared library. 10491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10492 10493 else 10494 # FIXME: insert proper C++ library support 10495 ld_shlibs_CXX=no 10496 fi 10497 ;; 10498 esac 10499 ;; 10500 osf4* | osf5*) 10501 case $cc_basename in 10502 KCC) 10503 # Kuck and Associates, Inc. (KAI) C++ Compiler 10504 10505 # KCC will only create a shared library if the output file 10506 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10507 # to its proper name (with version) after linking. 10508 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' 10509 10510 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10511 hardcode_libdir_separator_CXX=: 10512 10513 # Archives containing C++ object files must be created using 10514 # the KAI C++ compiler. 10515 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10516 ;; 10517 RCC) 10518 # Rational C++ 2.4.1 10519 # FIXME: insert proper C++ library support 10520 ld_shlibs_CXX=no 10521 ;; 10522 cxx) 10523 allow_undefined_flag_CXX=' -expect_unresolved \*' 10524 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10525 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10526 echo "-hidden">> $lib.exp~ 10527 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ 10528 $rm $lib.exp' 10529 10530 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10531 hardcode_libdir_separator_CXX=: 10532 10533 # Commands to make compiler produce verbose output that lists 10534 # what "hidden" libraries, object files and flags are used when 10535 # linking a shared library. 10536 # 10537 # There doesn't appear to be a way to prevent this compiler from 10538 # explicitly linking system object files so we need to strip them 10539 # from the output so that they don't get included in the library 10540 # dependencies. 10541 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' 10542 ;; 10543 *) 10544 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10545 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10546 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 10547 10548 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10549 hardcode_libdir_separator_CXX=: 10550 10551 # Commands to make compiler produce verbose output that lists 10552 # what "hidden" libraries, object files and flags are used when 10553 # linking a shared library. 10554 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10555 10556 else 10557 # FIXME: insert proper C++ library support 10558 ld_shlibs_CXX=no 10559 fi 10560 ;; 10561 esac 10562 ;; 10563 psos*) 10564 # FIXME: insert proper C++ library support 10565 ld_shlibs_CXX=no 10566 ;; 10567 sco*) 10568 archive_cmds_need_lc_CXX=no 10569 case $cc_basename in 10570 CC) 10571 # FIXME: insert proper C++ library support 10572 ld_shlibs_CXX=no 10573 ;; 10574 *) 10575 # FIXME: insert proper C++ library support 10576 ld_shlibs_CXX=no 10577 ;; 10578 esac 10579 ;; 10580 sunos4*) 10581 case $cc_basename in 10582 CC) 10583 # Sun C++ 4.x 10584 # FIXME: insert proper C++ library support 10585 ld_shlibs_CXX=no 10586 ;; 10587 lcc) 10588 # Lucid 10589 # FIXME: insert proper C++ library support 10590 ld_shlibs_CXX=no 10591 ;; 10592 *) 10593 # FIXME: insert proper C++ library support 10594 ld_shlibs_CXX=no 10595 ;; 10596 esac 10597 ;; 10598 solaris*) 10599 case $cc_basename in 10600 CC) 10601 # Sun C++ 4.2, 5.x and Centerline C++ 10602 no_undefined_flag_CXX=' -zdefs' 10603 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10604 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10605 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10606 10607 hardcode_libdir_flag_spec_CXX='-R$libdir' 10608 hardcode_shlibpath_var_CXX=no 10609 case $host_os in 10610 solaris2.0-5 | solaris2.0-5.*) ;; 10611 *) 10612 # The C++ compiler is used as linker so we must use $wl 10613 # flag to pass the commands to the underlying system 10614 # linker. 10615 # Supported since Solaris 2.6 (maybe 2.5.1?) 10616 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10617 ;; 10618 esac 10619 link_all_deplibs_CXX=yes 10620 10621 # Commands to make compiler produce verbose output that lists 10622 # what "hidden" libraries, object files and flags are used when 10623 # linking a shared library. 10624 # 10625 # There doesn't appear to be a way to prevent this compiler from 10626 # explicitly linking system object files so we need to strip them 10627 # from the output so that they don't get included in the library 10628 # dependencies. 10629 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10630 10631 # Archives containing C++ object files must be created using 10632 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10633 # necessary to make sure instantiated templates are included 10634 # in the archive. 10635 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10636 ;; 10637 gcx) 10638 # Green Hills C++ Compiler 10639 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10640 10641 # The C++ compiler must be used to create the archive. 10642 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10643 ;; 10644 *) 10645 # GNU C++ compiler with Solaris linker 10646 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10647 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10648 if $CC --version | grep -v '^2\.7' > /dev/null; then 10649 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10650 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10651 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10652 10653 # Commands to make compiler produce verbose output that lists 10654 # what "hidden" libraries, object files and flags are used when 10655 # linking a shared library. 10656 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10657 else 10658 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10659 # platform. 10660 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10661 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10662 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10663 10664 # Commands to make compiler produce verbose output that lists 10665 # what "hidden" libraries, object files and flags are used when 10666 # linking a shared library. 10667 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10668 fi 10669 10670 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10671 fi 10672 ;; 10673 esac 10674 ;; 10675 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10676 archive_cmds_need_lc_CXX=no 10677 ;; 10678 tandem*) 10679 case $cc_basename in 10680 NCC) 10681 # NonStop-UX NCC 3.20 10682 # FIXME: insert proper C++ library support 10683 ld_shlibs_CXX=no 10684 ;; 10685 *) 10686 # FIXME: insert proper C++ library support 10687 ld_shlibs_CXX=no 10688 ;; 10689 esac 10690 ;; 10691 vxworks*) 10692 # FIXME: insert proper C++ library support 10693 ld_shlibs_CXX=no 10694 ;; 10695 *) 10696 # FIXME: insert proper C++ library support 10697 ld_shlibs_CXX=no 10698 ;; 10699esac 10700echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10701echo "${ECHO_T}$ld_shlibs_CXX" >&6 10702test "$ld_shlibs_CXX" = no && can_build_shared=no 10703 10704GCC_CXX="$GXX" 10705LD_CXX="$LD" 10706 10707 10708cat > conftest.$ac_ext <<EOF 10709class Foo 10710{ 10711public: 10712 Foo (void) { a = 0; } 10713private: 10714 int a; 10715}; 10716EOF 10717 10718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10719 (eval $ac_compile) 2>&5 10720 ac_status=$? 10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10722 (exit $ac_status); }; then 10723 # Parse the compiler output and extract the necessary 10724 # objects, libraries and library flags. 10725 10726 # Sentinel used to keep track of whether or not we are before 10727 # the conftest object file. 10728 pre_test_object_deps_done=no 10729 10730 # The `*' in the case matches for architectures that use `case' in 10731 # $output_verbose_cmd can trigger glob expansion during the loop 10732 # eval without this substitution. 10733 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10734 10735 for p in `eval $output_verbose_link_cmd`; do 10736 case $p in 10737 10738 -L* | -R* | -l*) 10739 # Some compilers place space between "-{L,R}" and the path. 10740 # Remove the space. 10741 if test $p = "-L" \ 10742 || test $p = "-R"; then 10743 prev=$p 10744 continue 10745 else 10746 prev= 10747 fi 10748 10749 if test "$pre_test_object_deps_done" = no; then 10750 case $p in 10751 -L* | -R*) 10752 # Internal compiler library paths should come after those 10753 # provided the user. The postdeps already come after the 10754 # user supplied libs so there is no need to process them. 10755 if test -z "$compiler_lib_search_path_CXX"; then 10756 compiler_lib_search_path_CXX="${prev}${p}" 10757 else 10758 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10759 fi 10760 ;; 10761 # The "-l" case would never come before the object being 10762 # linked, so don't bother handling this case. 10763 esac 10764 else 10765 if test -z "$postdeps_CXX"; then 10766 postdeps_CXX="${prev}${p}" 10767 else 10768 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10769 fi 10770 fi 10771 ;; 10772 10773 *.$objext) 10774 # This assumes that the test object file only shows up 10775 # once in the compiler output. 10776 if test "$p" = "conftest.$objext"; then 10777 pre_test_object_deps_done=yes 10778 continue 10779 fi 10780 10781 if test "$pre_test_object_deps_done" = no; then 10782 if test -z "$predep_objects_CXX"; then 10783 predep_objects_CXX="$p" 10784 else 10785 predep_objects_CXX="$predep_objects_CXX $p" 10786 fi 10787 else 10788 if test -z "$postdep_objects_CXX"; then 10789 postdep_objects_CXX="$p" 10790 else 10791 postdep_objects_CXX="$postdep_objects_CXX $p" 10792 fi 10793 fi 10794 ;; 10795 10796 *) ;; # Ignore the rest. 10797 10798 esac 10799 done 10800 10801 # Clean up. 10802 rm -f a.out a.exe 10803else 10804 echo "libtool.m4: error: problem compiling CXX test program" 10805fi 10806 10807$rm -f confest.$objext 10808 10809case " $postdeps_CXX " in 10810*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10811esac 10812 10813lt_prog_compiler_wl_CXX= 10814lt_prog_compiler_pic_CXX= 10815lt_prog_compiler_static_CXX= 10816 10817echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10818echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10819 10820 # C++ specific cases for pic, static, wl, etc. 10821 if test "$GXX" = yes; then 10822 lt_prog_compiler_wl_CXX='-Wl,' 10823 lt_prog_compiler_static_CXX='-static' 10824 10825 case $host_os in 10826 aix*) 10827 # All AIX code is PIC. 10828 if test "$host_cpu" = ia64; then 10829 # AIX 5 now supports IA64 processor 10830 lt_prog_compiler_static_CXX='-Bstatic' 10831 fi 10832 ;; 10833 amigaos*) 10834 # FIXME: we need at least 68020 code to build shared libraries, but 10835 # adding the `-m68020' flag to GCC prevents building anything better, 10836 # like `-m68040'. 10837 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10838 ;; 10839 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10840 # PIC is the default for these OSes. 10841 ;; 10842 mingw* | os2* | pw32*) 10843 # This hack is so that the source file can tell whether it is being 10844 # built for inclusion in a dll (and should export symbols for example). 10845 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10846 ;; 10847 darwin* | rhapsody*) 10848 # PIC is the default on this platform 10849 # Common symbols not allowed in MH_DYLIB files 10850 lt_prog_compiler_pic_CXX='-fno-common' 10851 ;; 10852 *djgpp*) 10853 # DJGPP does not support shared libraries at all 10854 lt_prog_compiler_pic_CXX= 10855 ;; 10856 sysv4*MP*) 10857 if test -d /usr/nec; then 10858 lt_prog_compiler_pic_CXX=-Kconform_pic 10859 fi 10860 ;; 10861 hpux*) 10862 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10863 # not for PA HP-UX. 10864 case "$host_cpu" in 10865 hppa*64*|ia64*) 10866 ;; 10867 *) 10868 lt_prog_compiler_pic_CXX='-fPIC' 10869 ;; 10870 esac 10871 ;; 10872 *) 10873 lt_prog_compiler_pic_CXX='-fPIC' 10874 ;; 10875 esac 10876 else 10877 case $host_os in 10878 aix4* | aix5*) 10879 # All AIX code is PIC. 10880 if test "$host_cpu" = ia64; then 10881 # AIX 5 now supports IA64 processor 10882 lt_prog_compiler_static_CXX='-Bstatic' 10883 else 10884 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10885 fi 10886 ;; 10887 chorus*) 10888 case $cc_basename in 10889 cxch68) 10890 # Green Hills C++ Compiler 10891 # _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" 10892 ;; 10893 esac 10894 ;; 10895 dgux*) 10896 case $cc_basename in 10897 ec++) 10898 lt_prog_compiler_pic_CXX='-KPIC' 10899 ;; 10900 ghcx) 10901 # Green Hills C++ Compiler 10902 lt_prog_compiler_pic_CXX='-pic' 10903 ;; 10904 *) 10905 ;; 10906 esac 10907 ;; 10908 freebsd* | kfreebsd*-gnu) 10909 # FreeBSD uses GNU C++ 10910 ;; 10911 hpux9* | hpux10* | hpux11*) 10912 case $cc_basename in 10913 CC) 10914 lt_prog_compiler_wl_CXX='-Wl,' 10915 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10916 if test "$host_cpu" != ia64; then 10917 lt_prog_compiler_pic_CXX='+Z' 10918 fi 10919 ;; 10920 aCC) 10921 lt_prog_compiler_wl_CXX='-Wl,' 10922 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10923 case "$host_cpu" in 10924 hppa*64*|ia64*) 10925 # +Z the default 10926 ;; 10927 *) 10928 lt_prog_compiler_pic_CXX='+Z' 10929 ;; 10930 esac 10931 ;; 10932 *) 10933 ;; 10934 esac 10935 ;; 10936 irix5* | irix6* | nonstopux*) 10937 case $cc_basename in 10938 CC) 10939 lt_prog_compiler_wl_CXX='-Wl,' 10940 lt_prog_compiler_static_CXX='-non_shared' 10941 # CC pic flag -KPIC is the default. 10942 ;; 10943 *) 10944 ;; 10945 esac 10946 ;; 10947 linux*) 10948 case $cc_basename in 10949 KCC) 10950 # KAI C++ Compiler 10951 lt_prog_compiler_wl_CXX='--backend -Wl,' 10952 lt_prog_compiler_pic_CXX='-fPIC' 10953 ;; 10954 icpc) 10955 # Intel C++ 10956 lt_prog_compiler_wl_CXX='-Wl,' 10957 lt_prog_compiler_pic_CXX='-KPIC' 10958 lt_prog_compiler_static_CXX='-static' 10959 ;; 10960 cxx) 10961 # Compaq C++ 10962 # Make sure the PIC flag is empty. It appears that all Alpha 10963 # Linux and Compaq Tru64 Unix objects are PIC. 10964 lt_prog_compiler_pic_CXX= 10965 lt_prog_compiler_static_CXX='-non_shared' 10966 ;; 10967 *) 10968 ;; 10969 esac 10970 ;; 10971 lynxos*) 10972 ;; 10973 m88k*) 10974 ;; 10975 mvs*) 10976 case $cc_basename in 10977 cxx) 10978 lt_prog_compiler_pic_CXX='-W c,exportall' 10979 ;; 10980 *) 10981 ;; 10982 esac 10983 ;; 10984 netbsd*) 10985 ;; 10986 osf3* | osf4* | osf5*) 10987 case $cc_basename in 10988 KCC) 10989 lt_prog_compiler_wl_CXX='--backend -Wl,' 10990 ;; 10991 RCC) 10992 # Rational C++ 2.4.1 10993 lt_prog_compiler_pic_CXX='-pic' 10994 ;; 10995 cxx) 10996 # Digital/Compaq C++ 10997 lt_prog_compiler_wl_CXX='-Wl,' 10998 # Make sure the PIC flag is empty. It appears that all Alpha 10999 # Linux and Compaq Tru64 Unix objects are PIC. 11000 lt_prog_compiler_pic_CXX= 11001 lt_prog_compiler_static_CXX='-non_shared' 11002 ;; 11003 *) 11004 ;; 11005 esac 11006 ;; 11007 psos*) 11008 ;; 11009 sco*) 11010 case $cc_basename in 11011 CC) 11012 lt_prog_compiler_pic_CXX='-fPIC' 11013 ;; 11014 *) 11015 ;; 11016 esac 11017 ;; 11018 solaris*) 11019 case $cc_basename in 11020 CC) 11021 # Sun C++ 4.2, 5.x and Centerline C++ 11022 lt_prog_compiler_pic_CXX='-KPIC' 11023 lt_prog_compiler_static_CXX='-Bstatic' 11024 lt_prog_compiler_wl_CXX='-Qoption ld ' 11025 ;; 11026 gcx) 11027 # Green Hills C++ Compiler 11028 lt_prog_compiler_pic_CXX='-PIC' 11029 ;; 11030 *) 11031 ;; 11032 esac 11033 ;; 11034 sunos4*) 11035 case $cc_basename in 11036 CC) 11037 # Sun C++ 4.x 11038 lt_prog_compiler_pic_CXX='-pic' 11039 lt_prog_compiler_static_CXX='-Bstatic' 11040 ;; 11041 lcc) 11042 # Lucid 11043 lt_prog_compiler_pic_CXX='-pic' 11044 ;; 11045 *) 11046 ;; 11047 esac 11048 ;; 11049 tandem*) 11050 case $cc_basename in 11051 NCC) 11052 # NonStop-UX NCC 3.20 11053 lt_prog_compiler_pic_CXX='-KPIC' 11054 ;; 11055 *) 11056 ;; 11057 esac 11058 ;; 11059 unixware*) 11060 ;; 11061 vxworks*) 11062 ;; 11063 *) 11064 lt_prog_compiler_can_build_shared_CXX=no 11065 ;; 11066 esac 11067 fi 11068 11069echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11070echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11071 11072# 11073# Check to make sure the PIC flag actually works. 11074# 11075if test -n "$lt_prog_compiler_pic_CXX"; then 11076 11077echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11078echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11079if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11080 echo $ECHO_N "(cached) $ECHO_C" >&6 11081else 11082 lt_prog_compiler_pic_works_CXX=no 11083 ac_outfile=conftest.$ac_objext 11084 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11085 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11086 # Insert the option either (1) after the last *FLAGS variable, or 11087 # (2) before a word containing "conftest.", or (3) at the end. 11088 # Note that $ac_compile itself does not contain backslashes and begins 11089 # with a dollar sign (not a hyphen), so the echo should work correctly. 11090 # The option is referenced via a variable to avoid confusing sed. 11091 lt_compile=`echo "$ac_compile" | $SED \ 11092 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11094 -e 's:$: $lt_compiler_flag:'` 11095 (eval echo "\"\$as_me:11095: $lt_compile\"" >&5) 11096 (eval "$lt_compile" 2>conftest.err) 11097 ac_status=$? 11098 cat conftest.err >&5 11099 echo "$as_me:11099: \$? = $ac_status" >&5 11100 if (exit $ac_status) && test -s "$ac_outfile"; then 11101 # The compiler can only warn and ignore the option if not recognized 11102 # So say no if there are warnings 11103 if test ! -s conftest.err; then 11104 lt_prog_compiler_pic_works_CXX=yes 11105 fi 11106 fi 11107 $rm conftest* 11108 11109fi 11110echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11111echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11112 11113if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11114 case $lt_prog_compiler_pic_CXX in 11115 "" | " "*) ;; 11116 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11117 esac 11118else 11119 lt_prog_compiler_pic_CXX= 11120 lt_prog_compiler_can_build_shared_CXX=no 11121fi 11122 11123fi 11124case "$host_os" in 11125 # For platforms which do not support PIC, -DPIC is meaningless: 11126 *djgpp*) 11127 lt_prog_compiler_pic_CXX= 11128 ;; 11129 *) 11130 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11131 ;; 11132esac 11133 11134echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11135echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11136if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11137 echo $ECHO_N "(cached) $ECHO_C" >&6 11138else 11139 lt_cv_prog_compiler_c_o_CXX=no 11140 $rm -r conftest 2>/dev/null 11141 mkdir conftest 11142 cd conftest 11143 mkdir out 11144 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11145 11146 lt_compiler_flag="-o out/conftest2.$ac_objext" 11147 # Insert the option either (1) after the last *FLAGS variable, or 11148 # (2) before a word containing "conftest.", or (3) at the end. 11149 # Note that $ac_compile itself does not contain backslashes and begins 11150 # with a dollar sign (not a hyphen), so the echo should work correctly. 11151 lt_compile=`echo "$ac_compile" | $SED \ 11152 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11154 -e 's:$: $lt_compiler_flag:'` 11155 (eval echo "\"\$as_me:11155: $lt_compile\"" >&5) 11156 (eval "$lt_compile" 2>out/conftest.err) 11157 ac_status=$? 11158 cat out/conftest.err >&5 11159 echo "$as_me:11159: \$? = $ac_status" >&5 11160 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11161 then 11162 # The compiler can only warn and ignore the option if not recognized 11163 # So say no if there are warnings 11164 if test ! -s out/conftest.err; then 11165 lt_cv_prog_compiler_c_o_CXX=yes 11166 fi 11167 fi 11168 chmod u+w . 11169 $rm conftest* 11170 # SGI C++ compiler will create directory out/ii_files/ for 11171 # template instantiation 11172 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11173 $rm out/* && rmdir out 11174 cd .. 11175 rmdir conftest 11176 $rm conftest* 11177 11178fi 11179echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11180echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11181 11182 11183hard_links="nottested" 11184if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11185 # do not overwrite the value of need_locks provided by the user 11186 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11187echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11188 hard_links=yes 11189 $rm conftest* 11190 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11191 touch conftest.a 11192 ln conftest.a conftest.b 2>&5 || hard_links=no 11193 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11194 echo "$as_me:$LINENO: result: $hard_links" >&5 11195echo "${ECHO_T}$hard_links" >&6 11196 if test "$hard_links" = no; then 11197 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11198echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11199 need_locks=warn 11200 fi 11201else 11202 need_locks=no 11203fi 11204 11205echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11206echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11207 11208 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11209 case $host_os in 11210 aix4* | aix5*) 11211 # If we're using GNU nm, then we don't want the "-C" option. 11212 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11213 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11214 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' 11215 else 11216 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' 11217 fi 11218 ;; 11219 pw32*) 11220 export_symbols_cmds_CXX="$ltdll_cmds" 11221 ;; 11222 cygwin* | mingw*) 11223 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11224 ;; 11225 *) 11226 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11227 ;; 11228 esac 11229 11230echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11231echo "${ECHO_T}$ld_shlibs_CXX" >&6 11232test "$ld_shlibs_CXX" = no && can_build_shared=no 11233 11234variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11235if test "$GCC" = yes; then 11236 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11237fi 11238 11239# 11240# Do we need to explicitly link libc? 11241# 11242case "x$archive_cmds_need_lc_CXX" in 11243x|xyes) 11244 # Assume -lc should be added 11245 archive_cmds_need_lc_CXX=yes 11246 11247 if test "$enable_shared" = yes && test "$GCC" = yes; then 11248 case $archive_cmds_CXX in 11249 *'~'*) 11250 # FIXME: we may have to deal with multi-command sequences. 11251 ;; 11252 '$CC '*) 11253 # Test whether the compiler implicitly links with -lc since on some 11254 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11255 # to ld, don't add -lc before -lgcc. 11256 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11257echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11258 $rm conftest* 11259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11260 11261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11262 (eval $ac_compile) 2>&5 11263 ac_status=$? 11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11265 (exit $ac_status); } 2>conftest.err; then 11266 soname=conftest 11267 lib=conftest 11268 libobjs=conftest.$ac_objext 11269 deplibs= 11270 wl=$lt_prog_compiler_wl_CXX 11271 compiler_flags=-v 11272 linker_flags=-v 11273 verstring= 11274 output_objdir=. 11275 libname=conftest 11276 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11277 allow_undefined_flag_CXX= 11278 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11279 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11280 ac_status=$? 11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11282 (exit $ac_status); } 11283 then 11284 archive_cmds_need_lc_CXX=no 11285 else 11286 archive_cmds_need_lc_CXX=yes 11287 fi 11288 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11289 else 11290 cat conftest.err 1>&5 11291 fi 11292 $rm conftest* 11293 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11294echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11295 ;; 11296 esac 11297 fi 11298 ;; 11299esac 11300 11301echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11302echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11303library_names_spec= 11304libname_spec='lib$name' 11305soname_spec= 11306shrext_cmds=".so" 11307postinstall_cmds= 11308postuninstall_cmds= 11309finish_cmds= 11310finish_eval= 11311shlibpath_var= 11312shlibpath_overrides_runpath=unknown 11313version_type=none 11314dynamic_linker="$host_os ld.so" 11315sys_lib_dlsearch_path_spec="/lib /usr/lib" 11316if test "$GCC" = yes; then 11317 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11318 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11319 # if the path contains ";" then we assume it to be the separator 11320 # otherwise default to the standard path separator (i.e. ":") - it is 11321 # assumed that no part of a normal pathname contains ";" but that should 11322 # okay in the real world where ";" in dirpaths is itself problematic. 11323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11324 else 11325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11326 fi 11327else 11328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11329fi 11330need_lib_prefix=unknown 11331hardcode_into_libs=no 11332 11333# when you set need_version to no, make sure it does not cause -set_version 11334# flags to be left without arguments 11335need_version=unknown 11336 11337case $host_os in 11338aix3*) 11339 version_type=linux 11340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11341 shlibpath_var=LIBPATH 11342 11343 # AIX 3 has no versioning support, so we append a major version to the name. 11344 soname_spec='${libname}${release}${shared_ext}$major' 11345 ;; 11346 11347aix4* | aix5*) 11348 version_type=linux 11349 need_lib_prefix=no 11350 need_version=no 11351 hardcode_into_libs=yes 11352 if test "$host_cpu" = ia64; then 11353 # AIX 5 supports IA64 11354 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11355 shlibpath_var=LD_LIBRARY_PATH 11356 else 11357 # With GCC up to 2.95.x, collect2 would create an import file 11358 # for dependence libraries. The import file would start with 11359 # the line `#! .'. This would cause the generated library to 11360 # depend on `.', always an invalid library. This was fixed in 11361 # development snapshots of GCC prior to 3.0. 11362 case $host_os in 11363 aix4 | aix4.[01] | aix4.[01].*) 11364 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11365 echo ' yes ' 11366 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11367 : 11368 else 11369 can_build_shared=no 11370 fi 11371 ;; 11372 esac 11373 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11374 # soname into executable. Probably we can add versioning support to 11375 # collect2, so additional links can be useful in future. 11376 if test "$aix_use_runtimelinking" = yes; then 11377 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11378 # instead of lib<name>.a to let people know that these are not 11379 # typical AIX shared libraries. 11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11381 else 11382 # We preserve .a as extension for shared libraries through AIX4.2 11383 # and later when we are not doing run time linking. 11384 library_names_spec='${libname}${release}.a $libname.a' 11385 soname_spec='${libname}${release}${shared_ext}$major' 11386 fi 11387 shlibpath_var=LIBPATH 11388 fi 11389 ;; 11390 11391amigaos*) 11392 library_names_spec='$libname.ixlibrary $libname.a' 11393 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11394 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' 11395 ;; 11396 11397beos*) 11398 library_names_spec='${libname}${shared_ext}' 11399 dynamic_linker="$host_os ld.so" 11400 shlibpath_var=LIBRARY_PATH 11401 ;; 11402 11403bsdi4*) 11404 version_type=linux 11405 need_version=no 11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11407 soname_spec='${libname}${release}${shared_ext}$major' 11408 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11409 shlibpath_var=LD_LIBRARY_PATH 11410 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11411 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11412 # the default ld.so.conf also contains /usr/contrib/lib and 11413 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11414 # libtool to hard-code these into programs 11415 ;; 11416 11417cygwin* | mingw* | pw32*) 11418 version_type=windows 11419 shrext_cmds=".dll" 11420 need_version=no 11421 need_lib_prefix=no 11422 11423 case $GCC,$host_os in 11424 yes,cygwin* | yes,mingw* | yes,pw32*) 11425 library_names_spec='$libname.dll.a' 11426 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11427 postinstall_cmds='base_file=`basename \${file}`~ 11428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11429 dldir=$destdir/`dirname \$dlpath`~ 11430 test -d \$dldir || mkdir -p \$dldir~ 11431 $install_prog $dir/$dlname \$dldir/$dlname' 11432 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11433 dlpath=$dir/\$dldll~ 11434 $rm \$dlpath' 11435 shlibpath_overrides_runpath=yes 11436 11437 case $host_os in 11438 cygwin*) 11439 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11440 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11441 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11442 ;; 11443 mingw*) 11444 # MinGW DLLs use traditional 'lib' prefix 11445 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11446 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11447 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11448 # It is most probably a Windows format PATH printed by 11449 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11450 # path with ; separators, and with drive letters. We can handle the 11451 # drive letters (cygwin fileutils understands them), so leave them, 11452 # especially as we might pass files found there to a mingw objdump, 11453 # which wouldn't understand a cygwinified path. Ahh. 11454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11455 else 11456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11457 fi 11458 ;; 11459 pw32*) 11460 # pw32 DLLs use 'pw' prefix rather than 'lib' 11461 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 11462 ;; 11463 esac 11464 ;; 11465 11466 *) 11467 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11468 ;; 11469 esac 11470 dynamic_linker='Win32 ld.exe' 11471 # FIXME: first we should search . and the directory the executable is in 11472 shlibpath_var=PATH 11473 ;; 11474 11475darwin* | rhapsody*) 11476 dynamic_linker="$host_os dyld" 11477 version_type=darwin 11478 need_lib_prefix=no 11479 need_version=no 11480 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11481 soname_spec='${libname}${release}${major}$shared_ext' 11482 shlibpath_overrides_runpath=yes 11483 shlibpath_var=DYLD_LIBRARY_PATH 11484 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11485 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11486 if test "$GCC" = yes; then 11487 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"` 11488 else 11489 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11490 fi 11491 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11492 ;; 11493 11494dgux*) 11495 version_type=linux 11496 need_lib_prefix=no 11497 need_version=no 11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11499 soname_spec='${libname}${release}${shared_ext}$major' 11500 shlibpath_var=LD_LIBRARY_PATH 11501 ;; 11502 11503freebsd1*) 11504 dynamic_linker=no 11505 ;; 11506 11507kfreebsd*-gnu) 11508 version_type=linux 11509 need_lib_prefix=no 11510 need_version=no 11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11512 soname_spec='${libname}${release}${shared_ext}$major' 11513 shlibpath_var=LD_LIBRARY_PATH 11514 shlibpath_overrides_runpath=no 11515 hardcode_into_libs=yes 11516 dynamic_linker='GNU ld.so' 11517 ;; 11518 11519freebsd*) 11520 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11521 version_type=freebsd-$objformat 11522 case $version_type in 11523 freebsd-elf*) 11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11525 need_version=no 11526 need_lib_prefix=no 11527 ;; 11528 freebsd-*) 11529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11530 need_version=yes 11531 ;; 11532 esac 11533 shlibpath_var=LD_LIBRARY_PATH 11534 case $host_os in 11535 freebsd2*) 11536 shlibpath_overrides_runpath=yes 11537 ;; 11538 freebsd3.01* | freebsdelf3.01*) 11539 shlibpath_overrides_runpath=yes 11540 hardcode_into_libs=yes 11541 ;; 11542 *) # from 3.2 on 11543 shlibpath_overrides_runpath=no 11544 hardcode_into_libs=yes 11545 ;; 11546 esac 11547 ;; 11548 11549gnu*) 11550 version_type=linux 11551 need_lib_prefix=no 11552 need_version=no 11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11554 soname_spec='${libname}${release}${shared_ext}$major' 11555 shlibpath_var=LD_LIBRARY_PATH 11556 hardcode_into_libs=yes 11557 ;; 11558 11559hpux9* | hpux10* | hpux11*) 11560 # Give a soname corresponding to the major version so that dld.sl refuses to 11561 # link against other versions. 11562 version_type=sunos 11563 need_lib_prefix=no 11564 need_version=no 11565 case "$host_cpu" in 11566 ia64*) 11567 shrext_cmds='.so' 11568 hardcode_into_libs=yes 11569 dynamic_linker="$host_os dld.so" 11570 shlibpath_var=LD_LIBRARY_PATH 11571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11573 soname_spec='${libname}${release}${shared_ext}$major' 11574 if test "X$HPUX_IA64_MODE" = X32; then 11575 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11576 else 11577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11578 fi 11579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11580 ;; 11581 hppa*64*) 11582 shrext_cmds='.sl' 11583 hardcode_into_libs=yes 11584 dynamic_linker="$host_os dld.sl" 11585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11588 soname_spec='${libname}${release}${shared_ext}$major' 11589 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11591 ;; 11592 *) 11593 shrext_cmds='.sl' 11594 dynamic_linker="$host_os dld.sl" 11595 shlibpath_var=SHLIB_PATH 11596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11598 soname_spec='${libname}${release}${shared_ext}$major' 11599 ;; 11600 esac 11601 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11602 postinstall_cmds='chmod 555 $lib' 11603 ;; 11604 11605irix5* | irix6* | nonstopux*) 11606 case $host_os in 11607 nonstopux*) version_type=nonstopux ;; 11608 *) 11609 if test "$lt_cv_prog_gnu_ld" = yes; then 11610 version_type=linux 11611 else 11612 version_type=irix 11613 fi ;; 11614 esac 11615 need_lib_prefix=no 11616 need_version=no 11617 soname_spec='${libname}${release}${shared_ext}$major' 11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11619 case $host_os in 11620 irix5* | nonstopux*) 11621 libsuff= shlibsuff= 11622 ;; 11623 *) 11624 case $LD in # libtool.m4 will add one of these switches to LD 11625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11626 libsuff= shlibsuff= libmagic=32-bit;; 11627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11628 libsuff=32 shlibsuff=N32 libmagic=N32;; 11629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11630 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11631 *) libsuff= shlibsuff= libmagic=never-match;; 11632 esac 11633 ;; 11634 esac 11635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11636 shlibpath_overrides_runpath=no 11637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11639 hardcode_into_libs=yes 11640 ;; 11641 11642# No shared lib support for Linux oldld, aout, or coff. 11643linux*oldld* | linux*aout* | linux*coff*) 11644 dynamic_linker=no 11645 ;; 11646 11647# This must be Linux ELF. 11648linux*) 11649 version_type=linux 11650 need_lib_prefix=no 11651 need_version=no 11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11653 soname_spec='${libname}${release}${shared_ext}$major' 11654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11655 shlibpath_var=LD_LIBRARY_PATH 11656 shlibpath_overrides_runpath=no 11657 # This implies no fast_install, which is unacceptable. 11658 # Some rework will be needed to allow for fast_install 11659 # before this can be enabled. 11660 hardcode_into_libs=yes 11661 11662 # find out which ABI we are using 11663 libsuff= 11664 case "$host_cpu" in 11665 x86_64*|s390x*|powerpc64*) 11666 echo '#line 11666 "configure"' > conftest.$ac_ext 11667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11668 (eval $ac_compile) 2>&5 11669 ac_status=$? 11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11671 (exit $ac_status); }; then 11672 case `/usr/bin/file conftest.$ac_objext` in 11673 *64-bit*) 11674 libsuff=64 11675 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 11676 ;; 11677 esac 11678 fi 11679 rm -rf conftest* 11680 ;; 11681 esac 11682 11683 # Append ld.so.conf contents to the search path 11684 if test -f /etc/ld.so.conf; then 11685 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 11686 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 11687 fi 11688 11689 # We used to test for /lib/ld.so.1 and disable shared libraries on 11690 # powerpc, because MkLinux only supported shared libraries with the 11691 # GNU dynamic linker. Since this was broken with cross compilers, 11692 # most powerpc-linux boxes support dynamic linking these days and 11693 # people can always --disable-shared, the test was removed, and we 11694 # assume the GNU/Linux dynamic linker is in use. 11695 dynamic_linker='GNU/Linux ld.so' 11696 ;; 11697 11698knetbsd*-gnu) 11699 version_type=linux 11700 need_lib_prefix=no 11701 need_version=no 11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11703 soname_spec='${libname}${release}${shared_ext}$major' 11704 shlibpath_var=LD_LIBRARY_PATH 11705 shlibpath_overrides_runpath=no 11706 hardcode_into_libs=yes 11707 dynamic_linker='GNU ld.so' 11708 ;; 11709 11710netbsd*) 11711 version_type=sunos 11712 need_lib_prefix=no 11713 need_version=no 11714 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11717 dynamic_linker='NetBSD (a.out) ld.so' 11718 else 11719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11720 soname_spec='${libname}${release}${shared_ext}$major' 11721 dynamic_linker='NetBSD ld.elf_so' 11722 fi 11723 shlibpath_var=LD_LIBRARY_PATH 11724 shlibpath_overrides_runpath=yes 11725 hardcode_into_libs=yes 11726 ;; 11727 11728newsos6) 11729 version_type=linux 11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11731 shlibpath_var=LD_LIBRARY_PATH 11732 shlibpath_overrides_runpath=yes 11733 ;; 11734 11735nto-qnx*) 11736 version_type=linux 11737 need_lib_prefix=no 11738 need_version=no 11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11740 soname_spec='${libname}${release}${shared_ext}$major' 11741 shlibpath_var=LD_LIBRARY_PATH 11742 shlibpath_overrides_runpath=yes 11743 ;; 11744 11745openbsd*) 11746 version_type=sunos 11747 need_lib_prefix=no 11748 need_version=yes 11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11751 shlibpath_var=LD_LIBRARY_PATH 11752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11753 case $host_os in 11754 openbsd2.[89] | openbsd2.[89].*) 11755 shlibpath_overrides_runpath=no 11756 ;; 11757 *) 11758 shlibpath_overrides_runpath=yes 11759 ;; 11760 esac 11761 else 11762 shlibpath_overrides_runpath=yes 11763 fi 11764 ;; 11765 11766os2*) 11767 libname_spec='$name' 11768 shrext_cmds=".dll" 11769 need_lib_prefix=no 11770 library_names_spec='$libname${shared_ext} $libname.a' 11771 dynamic_linker='OS/2 ld.exe' 11772 shlibpath_var=LIBPATH 11773 ;; 11774 11775osf3* | osf4* | osf5*) 11776 version_type=osf 11777 need_lib_prefix=no 11778 need_version=no 11779 soname_spec='${libname}${release}${shared_ext}$major' 11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11781 shlibpath_var=LD_LIBRARY_PATH 11782 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11783 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11784 ;; 11785 11786sco3.2v5*) 11787 version_type=osf 11788 soname_spec='${libname}${release}${shared_ext}$major' 11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11790 shlibpath_var=LD_LIBRARY_PATH 11791 ;; 11792 11793solaris*) 11794 version_type=linux 11795 need_lib_prefix=no 11796 need_version=no 11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11798 soname_spec='${libname}${release}${shared_ext}$major' 11799 shlibpath_var=LD_LIBRARY_PATH 11800 shlibpath_overrides_runpath=yes 11801 hardcode_into_libs=yes 11802 # ldd complains unless libraries are executable 11803 postinstall_cmds='chmod +x $lib' 11804 ;; 11805 11806sunos4*) 11807 version_type=sunos 11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11809 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11810 shlibpath_var=LD_LIBRARY_PATH 11811 shlibpath_overrides_runpath=yes 11812 if test "$with_gnu_ld" = yes; then 11813 need_lib_prefix=no 11814 fi 11815 need_version=yes 11816 ;; 11817 11818sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11819 version_type=linux 11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11821 soname_spec='${libname}${release}${shared_ext}$major' 11822 shlibpath_var=LD_LIBRARY_PATH 11823 case $host_vendor in 11824 sni) 11825 shlibpath_overrides_runpath=no 11826 need_lib_prefix=no 11827 export_dynamic_flag_spec='${wl}-Blargedynsym' 11828 runpath_var=LD_RUN_PATH 11829 ;; 11830 siemens) 11831 need_lib_prefix=no 11832 ;; 11833 motorola) 11834 need_lib_prefix=no 11835 need_version=no 11836 shlibpath_overrides_runpath=no 11837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11838 ;; 11839 esac 11840 ;; 11841 11842sysv4*MP*) 11843 if test -d /usr/nec ;then 11844 version_type=linux 11845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11846 soname_spec='$libname${shared_ext}.$major' 11847 shlibpath_var=LD_LIBRARY_PATH 11848 fi 11849 ;; 11850 11851uts4*) 11852 version_type=linux 11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11854 soname_spec='${libname}${release}${shared_ext}$major' 11855 shlibpath_var=LD_LIBRARY_PATH 11856 ;; 11857 11858*) 11859 dynamic_linker=no 11860 ;; 11861esac 11862echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11863echo "${ECHO_T}$dynamic_linker" >&6 11864test "$dynamic_linker" = no && can_build_shared=no 11865 11866echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11867echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11868hardcode_action_CXX= 11869if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11870 test -n "$runpath_var CXX" || \ 11871 test "X$hardcode_automatic_CXX"="Xyes" ; then 11872 11873 # We can hardcode non-existant directories. 11874 if test "$hardcode_direct_CXX" != no && 11875 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11876 # have to relink, otherwise we might link with an installed library 11877 # when we should be linking with a yet-to-be-installed one 11878 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11879 test "$hardcode_minus_L_CXX" != no; then 11880 # Linking always hardcodes the temporary library directory. 11881 hardcode_action_CXX=relink 11882 else 11883 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11884 hardcode_action_CXX=immediate 11885 fi 11886else 11887 # We cannot hardcode anything, or else we can only hardcode existing 11888 # directories. 11889 hardcode_action_CXX=unsupported 11890fi 11891echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11892echo "${ECHO_T}$hardcode_action_CXX" >&6 11893 11894if test "$hardcode_action_CXX" = relink; then 11895 # Fast installation is not supported 11896 enable_fast_install=no 11897elif test "$shlibpath_overrides_runpath" = yes || 11898 test "$enable_shared" = no; then 11899 # Fast installation is not necessary 11900 enable_fast_install=needless 11901fi 11902 11903striplib= 11904old_striplib= 11905echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11906echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11907if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11908 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11909 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11910 echo "$as_me:$LINENO: result: yes" >&5 11911echo "${ECHO_T}yes" >&6 11912else 11913# FIXME - insert some real tests, host_os isn't really good enough 11914 case $host_os in 11915 darwin*) 11916 if test -n "$STRIP" ; then 11917 striplib="$STRIP -x" 11918 echo "$as_me:$LINENO: result: yes" >&5 11919echo "${ECHO_T}yes" >&6 11920 else 11921 echo "$as_me:$LINENO: result: no" >&5 11922echo "${ECHO_T}no" >&6 11923fi 11924 ;; 11925 *) 11926 echo "$as_me:$LINENO: result: no" >&5 11927echo "${ECHO_T}no" >&6 11928 ;; 11929 esac 11930fi 11931 11932if test "x$enable_dlopen" != xyes; then 11933 enable_dlopen=unknown 11934 enable_dlopen_self=unknown 11935 enable_dlopen_self_static=unknown 11936else 11937 lt_cv_dlopen=no 11938 lt_cv_dlopen_libs= 11939 11940 case $host_os in 11941 beos*) 11942 lt_cv_dlopen="load_add_on" 11943 lt_cv_dlopen_libs= 11944 lt_cv_dlopen_self=yes 11945 ;; 11946 11947 mingw* | pw32*) 11948 lt_cv_dlopen="LoadLibrary" 11949 lt_cv_dlopen_libs= 11950 ;; 11951 11952 cygwin*) 11953 lt_cv_dlopen="dlopen" 11954 lt_cv_dlopen_libs= 11955 ;; 11956 11957 darwin*) 11958 # if libdl is installed we need to link against it 11959 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11960echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11961if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11962 echo $ECHO_N "(cached) $ECHO_C" >&6 11963else 11964 ac_check_lib_save_LIBS=$LIBS 11965LIBS="-ldl $LIBS" 11966cat >conftest.$ac_ext <<_ACEOF 11967/* confdefs.h. */ 11968_ACEOF 11969cat confdefs.h >>conftest.$ac_ext 11970cat >>conftest.$ac_ext <<_ACEOF 11971/* end confdefs.h. */ 11972 11973/* Override any gcc2 internal prototype to avoid an error. */ 11974#ifdef __cplusplus 11975extern "C" 11976#endif 11977/* We use char because int might match the return type of a gcc2 11978 builtin and then its argument prototype would still apply. */ 11979char dlopen (); 11980int 11981main () 11982{ 11983dlopen (); 11984 ; 11985 return 0; 11986} 11987_ACEOF 11988rm -f conftest.$ac_objext conftest$ac_exeext 11989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11990 (eval $ac_link) 2>conftest.er1 11991 ac_status=$? 11992 grep -v '^ *+' conftest.er1 >conftest.err 11993 rm -f conftest.er1 11994 cat conftest.err >&5 11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11996 (exit $ac_status); } && 11997 { ac_try='test -z "$ac_cxx_werror_flag" 11998 || test ! -s conftest.err' 11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12000 (eval $ac_try) 2>&5 12001 ac_status=$? 12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12003 (exit $ac_status); }; } && 12004 { ac_try='test -s conftest$ac_exeext' 12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12006 (eval $ac_try) 2>&5 12007 ac_status=$? 12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12009 (exit $ac_status); }; }; then 12010 ac_cv_lib_dl_dlopen=yes 12011else 12012 echo "$as_me: failed program was:" >&5 12013sed 's/^/| /' conftest.$ac_ext >&5 12014 12015ac_cv_lib_dl_dlopen=no 12016fi 12017rm -f conftest.err conftest.$ac_objext \ 12018 conftest$ac_exeext conftest.$ac_ext 12019LIBS=$ac_check_lib_save_LIBS 12020fi 12021echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12022echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12023if test $ac_cv_lib_dl_dlopen = yes; then 12024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12025else 12026 12027 lt_cv_dlopen="dyld" 12028 lt_cv_dlopen_libs= 12029 lt_cv_dlopen_self=yes 12030 12031fi 12032 12033 ;; 12034 12035 *) 12036 echo "$as_me:$LINENO: checking for shl_load" >&5 12037echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12038if test "${ac_cv_func_shl_load+set}" = set; then 12039 echo $ECHO_N "(cached) $ECHO_C" >&6 12040else 12041 cat >conftest.$ac_ext <<_ACEOF 12042/* confdefs.h. */ 12043_ACEOF 12044cat confdefs.h >>conftest.$ac_ext 12045cat >>conftest.$ac_ext <<_ACEOF 12046/* end confdefs.h. */ 12047/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12048 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12049#define shl_load innocuous_shl_load 12050 12051/* System header to define __stub macros and hopefully few prototypes, 12052 which can conflict with char shl_load (); below. 12053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12054 <limits.h> exists even on freestanding compilers. */ 12055 12056#ifdef __STDC__ 12057# include <limits.h> 12058#else 12059# include <assert.h> 12060#endif 12061 12062#undef shl_load 12063 12064/* Override any gcc2 internal prototype to avoid an error. */ 12065#ifdef __cplusplus 12066extern "C" 12067{ 12068#endif 12069/* We use char because int might match the return type of a gcc2 12070 builtin and then its argument prototype would still apply. */ 12071char shl_load (); 12072/* The GNU C library defines this for functions which it implements 12073 to always fail with ENOSYS. Some functions are actually named 12074 something starting with __ and the normal name is an alias. */ 12075#if defined (__stub_shl_load) || defined (__stub___shl_load) 12076choke me 12077#else 12078char (*f) () = shl_load; 12079#endif 12080#ifdef __cplusplus 12081} 12082#endif 12083 12084int 12085main () 12086{ 12087return f != shl_load; 12088 ; 12089 return 0; 12090} 12091_ACEOF 12092rm -f conftest.$ac_objext conftest$ac_exeext 12093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12094 (eval $ac_link) 2>conftest.er1 12095 ac_status=$? 12096 grep -v '^ *+' conftest.er1 >conftest.err 12097 rm -f conftest.er1 12098 cat conftest.err >&5 12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12100 (exit $ac_status); } && 12101 { ac_try='test -z "$ac_cxx_werror_flag" 12102 || test ! -s conftest.err' 12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12104 (eval $ac_try) 2>&5 12105 ac_status=$? 12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12107 (exit $ac_status); }; } && 12108 { ac_try='test -s conftest$ac_exeext' 12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12110 (eval $ac_try) 2>&5 12111 ac_status=$? 12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12113 (exit $ac_status); }; }; then 12114 ac_cv_func_shl_load=yes 12115else 12116 echo "$as_me: failed program was:" >&5 12117sed 's/^/| /' conftest.$ac_ext >&5 12118 12119ac_cv_func_shl_load=no 12120fi 12121rm -f conftest.err conftest.$ac_objext \ 12122 conftest$ac_exeext conftest.$ac_ext 12123fi 12124echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12125echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12126if test $ac_cv_func_shl_load = yes; then 12127 lt_cv_dlopen="shl_load" 12128else 12129 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12130echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12131if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12132 echo $ECHO_N "(cached) $ECHO_C" >&6 12133else 12134 ac_check_lib_save_LIBS=$LIBS 12135LIBS="-ldld $LIBS" 12136cat >conftest.$ac_ext <<_ACEOF 12137/* confdefs.h. */ 12138_ACEOF 12139cat confdefs.h >>conftest.$ac_ext 12140cat >>conftest.$ac_ext <<_ACEOF 12141/* end confdefs.h. */ 12142 12143/* Override any gcc2 internal prototype to avoid an error. */ 12144#ifdef __cplusplus 12145extern "C" 12146#endif 12147/* We use char because int might match the return type of a gcc2 12148 builtin and then its argument prototype would still apply. */ 12149char shl_load (); 12150int 12151main () 12152{ 12153shl_load (); 12154 ; 12155 return 0; 12156} 12157_ACEOF 12158rm -f conftest.$ac_objext conftest$ac_exeext 12159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12160 (eval $ac_link) 2>conftest.er1 12161 ac_status=$? 12162 grep -v '^ *+' conftest.er1 >conftest.err 12163 rm -f conftest.er1 12164 cat conftest.err >&5 12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12166 (exit $ac_status); } && 12167 { ac_try='test -z "$ac_cxx_werror_flag" 12168 || test ! -s conftest.err' 12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12170 (eval $ac_try) 2>&5 12171 ac_status=$? 12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12173 (exit $ac_status); }; } && 12174 { ac_try='test -s conftest$ac_exeext' 12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12176 (eval $ac_try) 2>&5 12177 ac_status=$? 12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12179 (exit $ac_status); }; }; then 12180 ac_cv_lib_dld_shl_load=yes 12181else 12182 echo "$as_me: failed program was:" >&5 12183sed 's/^/| /' conftest.$ac_ext >&5 12184 12185ac_cv_lib_dld_shl_load=no 12186fi 12187rm -f conftest.err conftest.$ac_objext \ 12188 conftest$ac_exeext conftest.$ac_ext 12189LIBS=$ac_check_lib_save_LIBS 12190fi 12191echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12192echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12193if test $ac_cv_lib_dld_shl_load = yes; then 12194 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12195else 12196 echo "$as_me:$LINENO: checking for dlopen" >&5 12197echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12198if test "${ac_cv_func_dlopen+set}" = set; then 12199 echo $ECHO_N "(cached) $ECHO_C" >&6 12200else 12201 cat >conftest.$ac_ext <<_ACEOF 12202/* confdefs.h. */ 12203_ACEOF 12204cat confdefs.h >>conftest.$ac_ext 12205cat >>conftest.$ac_ext <<_ACEOF 12206/* end confdefs.h. */ 12207/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12208 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12209#define dlopen innocuous_dlopen 12210 12211/* System header to define __stub macros and hopefully few prototypes, 12212 which can conflict with char dlopen (); below. 12213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12214 <limits.h> exists even on freestanding compilers. */ 12215 12216#ifdef __STDC__ 12217# include <limits.h> 12218#else 12219# include <assert.h> 12220#endif 12221 12222#undef dlopen 12223 12224/* Override any gcc2 internal prototype to avoid an error. */ 12225#ifdef __cplusplus 12226extern "C" 12227{ 12228#endif 12229/* We use char because int might match the return type of a gcc2 12230 builtin and then its argument prototype would still apply. */ 12231char dlopen (); 12232/* The GNU C library defines this for functions which it implements 12233 to always fail with ENOSYS. Some functions are actually named 12234 something starting with __ and the normal name is an alias. */ 12235#if defined (__stub_dlopen) || defined (__stub___dlopen) 12236choke me 12237#else 12238char (*f) () = dlopen; 12239#endif 12240#ifdef __cplusplus 12241} 12242#endif 12243 12244int 12245main () 12246{ 12247return f != dlopen; 12248 ; 12249 return 0; 12250} 12251_ACEOF 12252rm -f conftest.$ac_objext conftest$ac_exeext 12253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12254 (eval $ac_link) 2>conftest.er1 12255 ac_status=$? 12256 grep -v '^ *+' conftest.er1 >conftest.err 12257 rm -f conftest.er1 12258 cat conftest.err >&5 12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12260 (exit $ac_status); } && 12261 { ac_try='test -z "$ac_cxx_werror_flag" 12262 || test ! -s conftest.err' 12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12264 (eval $ac_try) 2>&5 12265 ac_status=$? 12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12267 (exit $ac_status); }; } && 12268 { ac_try='test -s conftest$ac_exeext' 12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12270 (eval $ac_try) 2>&5 12271 ac_status=$? 12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12273 (exit $ac_status); }; }; then 12274 ac_cv_func_dlopen=yes 12275else 12276 echo "$as_me: failed program was:" >&5 12277sed 's/^/| /' conftest.$ac_ext >&5 12278 12279ac_cv_func_dlopen=no 12280fi 12281rm -f conftest.err conftest.$ac_objext \ 12282 conftest$ac_exeext conftest.$ac_ext 12283fi 12284echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12285echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12286if test $ac_cv_func_dlopen = yes; then 12287 lt_cv_dlopen="dlopen" 12288else 12289 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12290echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12291if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12292 echo $ECHO_N "(cached) $ECHO_C" >&6 12293else 12294 ac_check_lib_save_LIBS=$LIBS 12295LIBS="-ldl $LIBS" 12296cat >conftest.$ac_ext <<_ACEOF 12297/* confdefs.h. */ 12298_ACEOF 12299cat confdefs.h >>conftest.$ac_ext 12300cat >>conftest.$ac_ext <<_ACEOF 12301/* end confdefs.h. */ 12302 12303/* Override any gcc2 internal prototype to avoid an error. */ 12304#ifdef __cplusplus 12305extern "C" 12306#endif 12307/* We use char because int might match the return type of a gcc2 12308 builtin and then its argument prototype would still apply. */ 12309char dlopen (); 12310int 12311main () 12312{ 12313dlopen (); 12314 ; 12315 return 0; 12316} 12317_ACEOF 12318rm -f conftest.$ac_objext conftest$ac_exeext 12319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12320 (eval $ac_link) 2>conftest.er1 12321 ac_status=$? 12322 grep -v '^ *+' conftest.er1 >conftest.err 12323 rm -f conftest.er1 12324 cat conftest.err >&5 12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12326 (exit $ac_status); } && 12327 { ac_try='test -z "$ac_cxx_werror_flag" 12328 || test ! -s conftest.err' 12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12330 (eval $ac_try) 2>&5 12331 ac_status=$? 12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12333 (exit $ac_status); }; } && 12334 { ac_try='test -s conftest$ac_exeext' 12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12336 (eval $ac_try) 2>&5 12337 ac_status=$? 12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12339 (exit $ac_status); }; }; then 12340 ac_cv_lib_dl_dlopen=yes 12341else 12342 echo "$as_me: failed program was:" >&5 12343sed 's/^/| /' conftest.$ac_ext >&5 12344 12345ac_cv_lib_dl_dlopen=no 12346fi 12347rm -f conftest.err conftest.$ac_objext \ 12348 conftest$ac_exeext conftest.$ac_ext 12349LIBS=$ac_check_lib_save_LIBS 12350fi 12351echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12352echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12353if test $ac_cv_lib_dl_dlopen = yes; then 12354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12355else 12356 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12357echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12358if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12359 echo $ECHO_N "(cached) $ECHO_C" >&6 12360else 12361 ac_check_lib_save_LIBS=$LIBS 12362LIBS="-lsvld $LIBS" 12363cat >conftest.$ac_ext <<_ACEOF 12364/* confdefs.h. */ 12365_ACEOF 12366cat confdefs.h >>conftest.$ac_ext 12367cat >>conftest.$ac_ext <<_ACEOF 12368/* end confdefs.h. */ 12369 12370/* Override any gcc2 internal prototype to avoid an error. */ 12371#ifdef __cplusplus 12372extern "C" 12373#endif 12374/* We use char because int might match the return type of a gcc2 12375 builtin and then its argument prototype would still apply. */ 12376char dlopen (); 12377int 12378main () 12379{ 12380dlopen (); 12381 ; 12382 return 0; 12383} 12384_ACEOF 12385rm -f conftest.$ac_objext conftest$ac_exeext 12386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12387 (eval $ac_link) 2>conftest.er1 12388 ac_status=$? 12389 grep -v '^ *+' conftest.er1 >conftest.err 12390 rm -f conftest.er1 12391 cat conftest.err >&5 12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12393 (exit $ac_status); } && 12394 { ac_try='test -z "$ac_cxx_werror_flag" 12395 || test ! -s conftest.err' 12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12397 (eval $ac_try) 2>&5 12398 ac_status=$? 12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12400 (exit $ac_status); }; } && 12401 { ac_try='test -s conftest$ac_exeext' 12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12403 (eval $ac_try) 2>&5 12404 ac_status=$? 12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12406 (exit $ac_status); }; }; then 12407 ac_cv_lib_svld_dlopen=yes 12408else 12409 echo "$as_me: failed program was:" >&5 12410sed 's/^/| /' conftest.$ac_ext >&5 12411 12412ac_cv_lib_svld_dlopen=no 12413fi 12414rm -f conftest.err conftest.$ac_objext \ 12415 conftest$ac_exeext conftest.$ac_ext 12416LIBS=$ac_check_lib_save_LIBS 12417fi 12418echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12419echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12420if test $ac_cv_lib_svld_dlopen = yes; then 12421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12422else 12423 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12424echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12425if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12426 echo $ECHO_N "(cached) $ECHO_C" >&6 12427else 12428 ac_check_lib_save_LIBS=$LIBS 12429LIBS="-ldld $LIBS" 12430cat >conftest.$ac_ext <<_ACEOF 12431/* confdefs.h. */ 12432_ACEOF 12433cat confdefs.h >>conftest.$ac_ext 12434cat >>conftest.$ac_ext <<_ACEOF 12435/* end confdefs.h. */ 12436 12437/* Override any gcc2 internal prototype to avoid an error. */ 12438#ifdef __cplusplus 12439extern "C" 12440#endif 12441/* We use char because int might match the return type of a gcc2 12442 builtin and then its argument prototype would still apply. */ 12443char dld_link (); 12444int 12445main () 12446{ 12447dld_link (); 12448 ; 12449 return 0; 12450} 12451_ACEOF 12452rm -f conftest.$ac_objext conftest$ac_exeext 12453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12454 (eval $ac_link) 2>conftest.er1 12455 ac_status=$? 12456 grep -v '^ *+' conftest.er1 >conftest.err 12457 rm -f conftest.er1 12458 cat conftest.err >&5 12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12460 (exit $ac_status); } && 12461 { ac_try='test -z "$ac_cxx_werror_flag" 12462 || test ! -s conftest.err' 12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12464 (eval $ac_try) 2>&5 12465 ac_status=$? 12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12467 (exit $ac_status); }; } && 12468 { ac_try='test -s conftest$ac_exeext' 12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12470 (eval $ac_try) 2>&5 12471 ac_status=$? 12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12473 (exit $ac_status); }; }; then 12474 ac_cv_lib_dld_dld_link=yes 12475else 12476 echo "$as_me: failed program was:" >&5 12477sed 's/^/| /' conftest.$ac_ext >&5 12478 12479ac_cv_lib_dld_dld_link=no 12480fi 12481rm -f conftest.err conftest.$ac_objext \ 12482 conftest$ac_exeext conftest.$ac_ext 12483LIBS=$ac_check_lib_save_LIBS 12484fi 12485echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12486echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12487if test $ac_cv_lib_dld_dld_link = yes; then 12488 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12489fi 12490 12491 12492fi 12493 12494 12495fi 12496 12497 12498fi 12499 12500 12501fi 12502 12503 12504fi 12505 12506 ;; 12507 esac 12508 12509 if test "x$lt_cv_dlopen" != xno; then 12510 enable_dlopen=yes 12511 else 12512 enable_dlopen=no 12513 fi 12514 12515 case $lt_cv_dlopen in 12516 dlopen) 12517 save_CPPFLAGS="$CPPFLAGS" 12518 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12519 12520 save_LDFLAGS="$LDFLAGS" 12521 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12522 12523 save_LIBS="$LIBS" 12524 LIBS="$lt_cv_dlopen_libs $LIBS" 12525 12526 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12527echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12528if test "${lt_cv_dlopen_self+set}" = set; then 12529 echo $ECHO_N "(cached) $ECHO_C" >&6 12530else 12531 if test "$cross_compiling" = yes; then : 12532 lt_cv_dlopen_self=cross 12533else 12534 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12535 lt_status=$lt_dlunknown 12536 cat > conftest.$ac_ext <<EOF 12537#line 12537 "configure" 12538#include "confdefs.h" 12539 12540#if HAVE_DLFCN_H 12541#include <dlfcn.h> 12542#endif 12543 12544#include <stdio.h> 12545 12546#ifdef RTLD_GLOBAL 12547# define LT_DLGLOBAL RTLD_GLOBAL 12548#else 12549# ifdef DL_GLOBAL 12550# define LT_DLGLOBAL DL_GLOBAL 12551# else 12552# define LT_DLGLOBAL 0 12553# endif 12554#endif 12555 12556/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12557 find out it does not work in some platform. */ 12558#ifndef LT_DLLAZY_OR_NOW 12559# ifdef RTLD_LAZY 12560# define LT_DLLAZY_OR_NOW RTLD_LAZY 12561# else 12562# ifdef DL_LAZY 12563# define LT_DLLAZY_OR_NOW DL_LAZY 12564# else 12565# ifdef RTLD_NOW 12566# define LT_DLLAZY_OR_NOW RTLD_NOW 12567# else 12568# ifdef DL_NOW 12569# define LT_DLLAZY_OR_NOW DL_NOW 12570# else 12571# define LT_DLLAZY_OR_NOW 0 12572# endif 12573# endif 12574# endif 12575# endif 12576#endif 12577 12578#ifdef __cplusplus 12579extern "C" void exit (int); 12580#endif 12581 12582void fnord() { int i=42;} 12583int main () 12584{ 12585 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12586 int status = $lt_dlunknown; 12587 12588 if (self) 12589 { 12590 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12591 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12592 /* dlclose (self); */ 12593 } 12594 12595 exit (status); 12596} 12597EOF 12598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12599 (eval $ac_link) 2>&5 12600 ac_status=$? 12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12602 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12603 (./conftest; exit; ) 2>/dev/null 12604 lt_status=$? 12605 case x$lt_status in 12606 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12607 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12608 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12609 esac 12610 else : 12611 # compilation failed 12612 lt_cv_dlopen_self=no 12613 fi 12614fi 12615rm -fr conftest* 12616 12617 12618fi 12619echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12620echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12621 12622 if test "x$lt_cv_dlopen_self" = xyes; then 12623 LDFLAGS="$LDFLAGS $link_static_flag" 12624 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12625echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12626if test "${lt_cv_dlopen_self_static+set}" = set; then 12627 echo $ECHO_N "(cached) $ECHO_C" >&6 12628else 12629 if test "$cross_compiling" = yes; then : 12630 lt_cv_dlopen_self_static=cross 12631else 12632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12633 lt_status=$lt_dlunknown 12634 cat > conftest.$ac_ext <<EOF 12635#line 12635 "configure" 12636#include "confdefs.h" 12637 12638#if HAVE_DLFCN_H 12639#include <dlfcn.h> 12640#endif 12641 12642#include <stdio.h> 12643 12644#ifdef RTLD_GLOBAL 12645# define LT_DLGLOBAL RTLD_GLOBAL 12646#else 12647# ifdef DL_GLOBAL 12648# define LT_DLGLOBAL DL_GLOBAL 12649# else 12650# define LT_DLGLOBAL 0 12651# endif 12652#endif 12653 12654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12655 find out it does not work in some platform. */ 12656#ifndef LT_DLLAZY_OR_NOW 12657# ifdef RTLD_LAZY 12658# define LT_DLLAZY_OR_NOW RTLD_LAZY 12659# else 12660# ifdef DL_LAZY 12661# define LT_DLLAZY_OR_NOW DL_LAZY 12662# else 12663# ifdef RTLD_NOW 12664# define LT_DLLAZY_OR_NOW RTLD_NOW 12665# else 12666# ifdef DL_NOW 12667# define LT_DLLAZY_OR_NOW DL_NOW 12668# else 12669# define LT_DLLAZY_OR_NOW 0 12670# endif 12671# endif 12672# endif 12673# endif 12674#endif 12675 12676#ifdef __cplusplus 12677extern "C" void exit (int); 12678#endif 12679 12680void fnord() { int i=42;} 12681int main () 12682{ 12683 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12684 int status = $lt_dlunknown; 12685 12686 if (self) 12687 { 12688 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12689 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12690 /* dlclose (self); */ 12691 } 12692 12693 exit (status); 12694} 12695EOF 12696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12697 (eval $ac_link) 2>&5 12698 ac_status=$? 12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12701 (./conftest; exit; ) 2>/dev/null 12702 lt_status=$? 12703 case x$lt_status in 12704 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12705 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12706 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12707 esac 12708 else : 12709 # compilation failed 12710 lt_cv_dlopen_self_static=no 12711 fi 12712fi 12713rm -fr conftest* 12714 12715 12716fi 12717echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12718echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12719 fi 12720 12721 CPPFLAGS="$save_CPPFLAGS" 12722 LDFLAGS="$save_LDFLAGS" 12723 LIBS="$save_LIBS" 12724 ;; 12725 esac 12726 12727 case $lt_cv_dlopen_self in 12728 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12729 *) enable_dlopen_self=unknown ;; 12730 esac 12731 12732 case $lt_cv_dlopen_self_static in 12733 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12734 *) enable_dlopen_self_static=unknown ;; 12735 esac 12736fi 12737 12738 12739# The else clause should only fire when bootstrapping the 12740# libtool distribution, otherwise you forgot to ship ltmain.sh 12741# with your package, and you will get complaints that there are 12742# no rules to generate ltmain.sh. 12743if test -f "$ltmain"; then 12744 # See if we are running on zsh, and set the options which allow our commands through 12745 # without removal of \ escapes. 12746 if test -n "${ZSH_VERSION+set}" ; then 12747 setopt NO_GLOB_SUBST 12748 fi 12749 # Now quote all the things that may contain metacharacters while being 12750 # careful not to overquote the AC_SUBSTed values. We take copies of the 12751 # variables and quote the copies for generation of the libtool script. 12752 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12753 SED SHELL STRIP \ 12754 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12755 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12756 deplibs_check_method reload_flag reload_cmds need_locks \ 12757 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12758 lt_cv_sys_global_symbol_to_c_name_address \ 12759 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12760 old_postinstall_cmds old_postuninstall_cmds \ 12761 compiler_CXX \ 12762 CC_CXX \ 12763 LD_CXX \ 12764 lt_prog_compiler_wl_CXX \ 12765 lt_prog_compiler_pic_CXX \ 12766 lt_prog_compiler_static_CXX \ 12767 lt_prog_compiler_no_builtin_flag_CXX \ 12768 export_dynamic_flag_spec_CXX \ 12769 thread_safe_flag_spec_CXX \ 12770 whole_archive_flag_spec_CXX \ 12771 enable_shared_with_static_runtimes_CXX \ 12772 old_archive_cmds_CXX \ 12773 old_archive_from_new_cmds_CXX \ 12774 predep_objects_CXX \ 12775 postdep_objects_CXX \ 12776 predeps_CXX \ 12777 postdeps_CXX \ 12778 compiler_lib_search_path_CXX \ 12779 archive_cmds_CXX \ 12780 archive_expsym_cmds_CXX \ 12781 postinstall_cmds_CXX \ 12782 postuninstall_cmds_CXX \ 12783 old_archive_from_expsyms_cmds_CXX \ 12784 allow_undefined_flag_CXX \ 12785 no_undefined_flag_CXX \ 12786 export_symbols_cmds_CXX \ 12787 hardcode_libdir_flag_spec_CXX \ 12788 hardcode_libdir_flag_spec_ld_CXX \ 12789 hardcode_libdir_separator_CXX \ 12790 hardcode_automatic_CXX \ 12791 module_cmds_CXX \ 12792 module_expsym_cmds_CXX \ 12793 lt_cv_prog_compiler_c_o_CXX \ 12794 exclude_expsyms_CXX \ 12795 include_expsyms_CXX; do 12796 12797 case $var in 12798 old_archive_cmds_CXX | \ 12799 old_archive_from_new_cmds_CXX | \ 12800 archive_cmds_CXX | \ 12801 archive_expsym_cmds_CXX | \ 12802 module_cmds_CXX | \ 12803 module_expsym_cmds_CXX | \ 12804 old_archive_from_expsyms_cmds_CXX | \ 12805 export_symbols_cmds_CXX | \ 12806 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12807 postinstall_cmds | postuninstall_cmds | \ 12808 old_postinstall_cmds | old_postuninstall_cmds | \ 12809 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12810 # Double-quote double-evaled strings. 12811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12812 ;; 12813 *) 12814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12815 ;; 12816 esac 12817 done 12818 12819 case $lt_echo in 12820 *'\$0 --fallback-echo"') 12821 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12822 ;; 12823 esac 12824 12825cfgfile="$ofile" 12826 12827 cat <<__EOF__ >> "$cfgfile" 12828# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12829 12830# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12831 12832# Shell to use when invoking shell scripts. 12833SHELL=$lt_SHELL 12834 12835# Whether or not to build shared libraries. 12836build_libtool_libs=$enable_shared 12837 12838# Whether or not to build static libraries. 12839build_old_libs=$enable_static 12840 12841# Whether or not to add -lc for building shared libraries. 12842build_libtool_need_lc=$archive_cmds_need_lc_CXX 12843 12844# Whether or not to disallow shared libs when runtime libs are static 12845allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12846 12847# Whether or not to optimize for fast installation. 12848fast_install=$enable_fast_install 12849 12850# The host system. 12851host_alias=$host_alias 12852host=$host 12853 12854# An echo program that does not interpret backslashes. 12855echo=$lt_echo 12856 12857# The archiver. 12858AR=$lt_AR 12859AR_FLAGS=$lt_AR_FLAGS 12860 12861# A C compiler. 12862LTCC=$lt_LTCC 12863 12864# A language-specific compiler. 12865CC=$lt_compiler_CXX 12866 12867# Is the compiler the GNU C compiler? 12868with_gcc=$GCC_CXX 12869 12870# An ERE matcher. 12871EGREP=$lt_EGREP 12872 12873# The linker used to build libraries. 12874LD=$lt_LD_CXX 12875 12876# Whether we need hard or soft links. 12877LN_S=$lt_LN_S 12878 12879# A BSD-compatible nm program. 12880NM=$lt_NM 12881 12882# A symbol stripping program 12883STRIP=$lt_STRIP 12884 12885# Used to examine libraries when file_magic_cmd begins "file" 12886MAGIC_CMD=$MAGIC_CMD 12887 12888# Used on cygwin: DLL creation program. 12889DLLTOOL="$DLLTOOL" 12890 12891# Used on cygwin: object dumper. 12892OBJDUMP="$OBJDUMP" 12893 12894# Used on cygwin: assembler. 12895AS="$AS" 12896 12897# The name of the directory that contains temporary libtool files. 12898objdir=$objdir 12899 12900# How to create reloadable object files. 12901reload_flag=$lt_reload_flag 12902reload_cmds=$lt_reload_cmds 12903 12904# How to pass a linker flag through the compiler. 12905wl=$lt_lt_prog_compiler_wl_CXX 12906 12907# Object file suffix (normally "o"). 12908objext="$ac_objext" 12909 12910# Old archive suffix (normally "a"). 12911libext="$libext" 12912 12913# Shared library suffix (normally ".so"). 12914shrext_cmds='$shrext_cmds' 12915 12916# Executable file suffix (normally ""). 12917exeext="$exeext" 12918 12919# Additional compiler flags for building library objects. 12920pic_flag=$lt_lt_prog_compiler_pic_CXX 12921pic_mode=$pic_mode 12922 12923# What is the maximum length of a command? 12924max_cmd_len=$lt_cv_sys_max_cmd_len 12925 12926# Does compiler simultaneously support -c and -o options? 12927compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12928 12929# Must we lock files when doing compilation ? 12930need_locks=$lt_need_locks 12931 12932# Do we need the lib prefix for modules? 12933need_lib_prefix=$need_lib_prefix 12934 12935# Do we need a version for libraries? 12936need_version=$need_version 12937 12938# Whether dlopen is supported. 12939dlopen_support=$enable_dlopen 12940 12941# Whether dlopen of programs is supported. 12942dlopen_self=$enable_dlopen_self 12943 12944# Whether dlopen of statically linked programs is supported. 12945dlopen_self_static=$enable_dlopen_self_static 12946 12947# Compiler flag to prevent dynamic linking. 12948link_static_flag=$lt_lt_prog_compiler_static_CXX 12949 12950# Compiler flag to turn off builtin functions. 12951no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12952 12953# Compiler flag to allow reflexive dlopens. 12954export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12955 12956# Compiler flag to generate shared objects directly from archives. 12957whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12958 12959# Compiler flag to generate thread-safe objects. 12960thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12961 12962# Library versioning type. 12963version_type=$version_type 12964 12965# Format of library name prefix. 12966libname_spec=$lt_libname_spec 12967 12968# List of archive names. First name is the real one, the rest are links. 12969# The last name is the one that the linker finds with -lNAME. 12970library_names_spec=$lt_library_names_spec 12971 12972# The coded name of the library, if different from the real name. 12973soname_spec=$lt_soname_spec 12974 12975# Commands used to build and install an old-style archive. 12976RANLIB=$lt_RANLIB 12977old_archive_cmds=$lt_old_archive_cmds_CXX 12978old_postinstall_cmds=$lt_old_postinstall_cmds 12979old_postuninstall_cmds=$lt_old_postuninstall_cmds 12980 12981# Create an old-style archive from a shared archive. 12982old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12983 12984# Create a temporary old-style archive to link instead of a shared archive. 12985old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12986 12987# Commands used to build and install a shared archive. 12988archive_cmds=$lt_archive_cmds_CXX 12989archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12990postinstall_cmds=$lt_postinstall_cmds 12991postuninstall_cmds=$lt_postuninstall_cmds 12992 12993# Commands used to build a loadable module (assumed same as above if empty) 12994module_cmds=$lt_module_cmds_CXX 12995module_expsym_cmds=$lt_module_expsym_cmds_CXX 12996 12997# Commands to strip libraries. 12998old_striplib=$lt_old_striplib 12999striplib=$lt_striplib 13000 13001# Dependencies to place before the objects being linked to create a 13002# shared library. 13003predep_objects=$lt_predep_objects_CXX 13004 13005# Dependencies to place after the objects being linked to create a 13006# shared library. 13007postdep_objects=$lt_postdep_objects_CXX 13008 13009# Dependencies to place before the objects being linked to create a 13010# shared library. 13011predeps=$lt_predeps_CXX 13012 13013# Dependencies to place after the objects being linked to create a 13014# shared library. 13015postdeps=$lt_postdeps_CXX 13016 13017# The library search path used internally by the compiler when linking 13018# a shared library. 13019compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13020 13021# Method to check whether dependent libraries are shared objects. 13022deplibs_check_method=$lt_deplibs_check_method 13023 13024# Command to use when deplibs_check_method == file_magic. 13025file_magic_cmd=$lt_file_magic_cmd 13026 13027# Flag that allows shared libraries with undefined symbols to be built. 13028allow_undefined_flag=$lt_allow_undefined_flag_CXX 13029 13030# Flag that forces no undefined symbols. 13031no_undefined_flag=$lt_no_undefined_flag_CXX 13032 13033# Commands used to finish a libtool library installation in a directory. 13034finish_cmds=$lt_finish_cmds 13035 13036# Same as above, but a single script fragment to be evaled but not shown. 13037finish_eval=$lt_finish_eval 13038 13039# Take the output of nm and produce a listing of raw symbols and C names. 13040global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13041 13042# Transform the output of nm in a proper C declaration 13043global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13044 13045# Transform the output of nm in a C name address pair 13046global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13047 13048# This is the shared library runtime path variable. 13049runpath_var=$runpath_var 13050 13051# This is the shared library path variable. 13052shlibpath_var=$shlibpath_var 13053 13054# Is shlibpath searched before the hard-coded library search path? 13055shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13056 13057# How to hardcode a shared library path into an executable. 13058hardcode_action=$hardcode_action_CXX 13059 13060# Whether we should hardcode library paths into libraries. 13061hardcode_into_libs=$hardcode_into_libs 13062 13063# Flag to hardcode \$libdir into a binary during linking. 13064# This must work even if \$libdir does not exist. 13065hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13066 13067# If ld is used when linking, flag to hardcode \$libdir into 13068# a binary during linking. This must work even if \$libdir does 13069# not exist. 13070hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13071 13072# Whether we need a single -rpath flag with a separated argument. 13073hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13074 13075# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13076# resulting binary. 13077hardcode_direct=$hardcode_direct_CXX 13078 13079# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13080# resulting binary. 13081hardcode_minus_L=$hardcode_minus_L_CXX 13082 13083# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13084# the resulting binary. 13085hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13086 13087# Set to yes if building a shared library automatically hardcodes DIR into the library 13088# and all subsequent libraries and executables linked against it. 13089hardcode_automatic=$hardcode_automatic_CXX 13090 13091# Variables whose values should be saved in libtool wrapper scripts and 13092# restored at relink time. 13093variables_saved_for_relink="$variables_saved_for_relink" 13094 13095# Whether libtool must link a program against all its dependency libraries. 13096link_all_deplibs=$link_all_deplibs_CXX 13097 13098# Compile-time system search path for libraries 13099sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13100 13101# Run-time system search path for libraries 13102sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13103 13104# Fix the shell variable \$srcfile for the compiler. 13105fix_srcfile_path="$fix_srcfile_path_CXX" 13106 13107# Set to yes if exported symbols are required. 13108always_export_symbols=$always_export_symbols_CXX 13109 13110# The commands to list exported symbols. 13111export_symbols_cmds=$lt_export_symbols_cmds_CXX 13112 13113# The commands to extract the exported symbol list from a shared archive. 13114extract_expsyms_cmds=$lt_extract_expsyms_cmds 13115 13116# Symbols that should not be listed in the preloaded symbols. 13117exclude_expsyms=$lt_exclude_expsyms_CXX 13118 13119# Symbols that must always be exported. 13120include_expsyms=$lt_include_expsyms_CXX 13121 13122# ### END LIBTOOL TAG CONFIG: $tagname 13123 13124__EOF__ 13125 13126 13127else 13128 # If there is no Makefile yet, we rely on a make rule to execute 13129 # `config.status --recheck' to rerun these tests and create the 13130 # libtool script then. 13131 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13132 if test -f "$ltmain_in"; then 13133 test -f Makefile && make "$ltmain" 13134 fi 13135fi 13136 13137 13138ac_ext=c 13139ac_cpp='$CPP $CPPFLAGS' 13140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13142ac_compiler_gnu=$ac_cv_c_compiler_gnu 13143 13144CC=$lt_save_CC 13145LDCXX=$LD 13146LD=$lt_save_LD 13147GCC=$lt_save_GCC 13148with_gnu_ldcxx=$with_gnu_ld 13149with_gnu_ld=$lt_save_with_gnu_ld 13150lt_cv_path_LDCXX=$lt_cv_path_LD 13151lt_cv_path_LD=$lt_save_path_LD 13152lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13153lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13154 13155 else 13156 tagname="" 13157 fi 13158 ;; 13159 13160 F77) 13161 if test -n "$F77" && test "X$F77" != "Xno"; then 13162 13163ac_ext=f 13164ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13165ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13166ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13167 13168 13169archive_cmds_need_lc_F77=no 13170allow_undefined_flag_F77= 13171always_export_symbols_F77=no 13172archive_expsym_cmds_F77= 13173export_dynamic_flag_spec_F77= 13174hardcode_direct_F77=no 13175hardcode_libdir_flag_spec_F77= 13176hardcode_libdir_flag_spec_ld_F77= 13177hardcode_libdir_separator_F77= 13178hardcode_minus_L_F77=no 13179hardcode_automatic_F77=no 13180module_cmds_F77= 13181module_expsym_cmds_F77= 13182link_all_deplibs_F77=unknown 13183old_archive_cmds_F77=$old_archive_cmds 13184no_undefined_flag_F77= 13185whole_archive_flag_spec_F77= 13186enable_shared_with_static_runtimes_F77=no 13187 13188# Source file extension for f77 test sources. 13189ac_ext=f 13190 13191# Object file extension for compiled f77 test sources. 13192objext=o 13193objext_F77=$objext 13194 13195# Code to be used in simple compile tests 13196lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13197 13198# Code to be used in simple link tests 13199lt_simple_link_test_code=" program t\n end\n" 13200 13201# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13202 13203# If no C compiler was specified, use CC. 13204LTCC=${LTCC-"$CC"} 13205 13206# Allow CC to be a program name with arguments. 13207compiler=$CC 13208 13209 13210# Allow CC to be a program name with arguments. 13211lt_save_CC="$CC" 13212CC=${F77-"f77"} 13213compiler=$CC 13214compiler_F77=$CC 13215cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13216 13217echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13218echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13219echo "$as_me:$LINENO: result: $can_build_shared" >&5 13220echo "${ECHO_T}$can_build_shared" >&6 13221 13222echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13223echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13224test "$can_build_shared" = "no" && enable_shared=no 13225 13226# On AIX, shared libraries and static libraries use the same namespace, and 13227# are all built from PIC. 13228case "$host_os" in 13229aix3*) 13230 test "$enable_shared" = yes && enable_static=no 13231 if test -n "$RANLIB"; then 13232 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13233 postinstall_cmds='$RANLIB $lib' 13234 fi 13235 ;; 13236aix4* | aix5*) 13237 test "$enable_shared" = yes && enable_static=no 13238 ;; 13239esac 13240echo "$as_me:$LINENO: result: $enable_shared" >&5 13241echo "${ECHO_T}$enable_shared" >&6 13242 13243echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13244echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13245# Make sure either enable_shared or enable_static is yes. 13246test "$enable_shared" = yes || enable_static=yes 13247echo "$as_me:$LINENO: result: $enable_static" >&5 13248echo "${ECHO_T}$enable_static" >&6 13249 13250test "$ld_shlibs_F77" = no && can_build_shared=no 13251 13252GCC_F77="$G77" 13253LD_F77="$LD" 13254 13255lt_prog_compiler_wl_F77= 13256lt_prog_compiler_pic_F77= 13257lt_prog_compiler_static_F77= 13258 13259echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13260echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13261 13262 if test "$GCC" = yes; then 13263 lt_prog_compiler_wl_F77='-Wl,' 13264 lt_prog_compiler_static_F77='-static' 13265 13266 case $host_os in 13267 aix*) 13268 # All AIX code is PIC. 13269 if test "$host_cpu" = ia64; then 13270 # AIX 5 now supports IA64 processor 13271 lt_prog_compiler_static_F77='-Bstatic' 13272 fi 13273 ;; 13274 13275 amigaos*) 13276 # FIXME: we need at least 68020 code to build shared libraries, but 13277 # adding the `-m68020' flag to GCC prevents building anything better, 13278 # like `-m68040'. 13279 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13280 ;; 13281 13282 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13283 # PIC is the default for these OSes. 13284 ;; 13285 13286 mingw* | pw32* | os2*) 13287 # This hack is so that the source file can tell whether it is being 13288 # built for inclusion in a dll (and should export symbols for example). 13289 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13290 ;; 13291 13292 darwin* | rhapsody*) 13293 # PIC is the default on this platform 13294 # Common symbols not allowed in MH_DYLIB files 13295 lt_prog_compiler_pic_F77='-fno-common' 13296 ;; 13297 13298 msdosdjgpp*) 13299 # Just because we use GCC doesn't mean we suddenly get shared libraries 13300 # on systems that don't support them. 13301 lt_prog_compiler_can_build_shared_F77=no 13302 enable_shared=no 13303 ;; 13304 13305 sysv4*MP*) 13306 if test -d /usr/nec; then 13307 lt_prog_compiler_pic_F77=-Kconform_pic 13308 fi 13309 ;; 13310 13311 hpux*) 13312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13313 # not for PA HP-UX. 13314 case "$host_cpu" in 13315 hppa*64*|ia64*) 13316 # +Z the default 13317 ;; 13318 *) 13319 lt_prog_compiler_pic_F77='-fPIC' 13320 ;; 13321 esac 13322 ;; 13323 13324 *) 13325 lt_prog_compiler_pic_F77='-fPIC' 13326 ;; 13327 esac 13328 else 13329 # PORTME Check for flag to pass linker flags through the system compiler. 13330 case $host_os in 13331 aix*) 13332 lt_prog_compiler_wl_F77='-Wl,' 13333 if test "$host_cpu" = ia64; then 13334 # AIX 5 now supports IA64 processor 13335 lt_prog_compiler_static_F77='-Bstatic' 13336 else 13337 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13338 fi 13339 ;; 13340 13341 mingw* | pw32* | os2*) 13342 # This hack is so that the source file can tell whether it is being 13343 # built for inclusion in a dll (and should export symbols for example). 13344 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13345 ;; 13346 13347 hpux9* | hpux10* | hpux11*) 13348 lt_prog_compiler_wl_F77='-Wl,' 13349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13350 # not for PA HP-UX. 13351 case "$host_cpu" in 13352 hppa*64*|ia64*) 13353 # +Z the default 13354 ;; 13355 *) 13356 lt_prog_compiler_pic_F77='+Z' 13357 ;; 13358 esac 13359 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13360 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13361 ;; 13362 13363 irix5* | irix6* | nonstopux*) 13364 lt_prog_compiler_wl_F77='-Wl,' 13365 # PIC (with -KPIC) is the default. 13366 lt_prog_compiler_static_F77='-non_shared' 13367 ;; 13368 13369 newsos6) 13370 lt_prog_compiler_pic_F77='-KPIC' 13371 lt_prog_compiler_static_F77='-Bstatic' 13372 ;; 13373 13374 linux*) 13375 case $CC in 13376 icc* | ecc*) 13377 lt_prog_compiler_wl_F77='-Wl,' 13378 lt_prog_compiler_pic_F77='-KPIC' 13379 lt_prog_compiler_static_F77='-static' 13380 ;; 13381 ccc*) 13382 lt_prog_compiler_wl_F77='-Wl,' 13383 # All Alpha code is PIC. 13384 lt_prog_compiler_static_F77='-non_shared' 13385 ;; 13386 esac 13387 ;; 13388 13389 osf3* | osf4* | osf5*) 13390 lt_prog_compiler_wl_F77='-Wl,' 13391 # All OSF/1 code is PIC. 13392 lt_prog_compiler_static_F77='-non_shared' 13393 ;; 13394 13395 sco3.2v5*) 13396 lt_prog_compiler_pic_F77='-Kpic' 13397 lt_prog_compiler_static_F77='-dn' 13398 ;; 13399 13400 solaris*) 13401 lt_prog_compiler_wl_F77='-Wl,' 13402 lt_prog_compiler_pic_F77='-KPIC' 13403 lt_prog_compiler_static_F77='-Bstatic' 13404 ;; 13405 13406 sunos4*) 13407 lt_prog_compiler_wl_F77='-Qoption ld ' 13408 lt_prog_compiler_pic_F77='-PIC' 13409 lt_prog_compiler_static_F77='-Bstatic' 13410 ;; 13411 13412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13413 lt_prog_compiler_wl_F77='-Wl,' 13414 lt_prog_compiler_pic_F77='-KPIC' 13415 lt_prog_compiler_static_F77='-Bstatic' 13416 ;; 13417 13418 sysv4*MP*) 13419 if test -d /usr/nec ;then 13420 lt_prog_compiler_pic_F77='-Kconform_pic' 13421 lt_prog_compiler_static_F77='-Bstatic' 13422 fi 13423 ;; 13424 13425 uts4*) 13426 lt_prog_compiler_pic_F77='-pic' 13427 lt_prog_compiler_static_F77='-Bstatic' 13428 ;; 13429 13430 *) 13431 lt_prog_compiler_can_build_shared_F77=no 13432 ;; 13433 esac 13434 fi 13435 13436echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13437echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13438 13439# 13440# Check to make sure the PIC flag actually works. 13441# 13442if test -n "$lt_prog_compiler_pic_F77"; then 13443 13444echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13445echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13446if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13447 echo $ECHO_N "(cached) $ECHO_C" >&6 13448else 13449 lt_prog_compiler_pic_works_F77=no 13450 ac_outfile=conftest.$ac_objext 13451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13452 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13453 # Insert the option either (1) after the last *FLAGS variable, or 13454 # (2) before a word containing "conftest.", or (3) at the end. 13455 # Note that $ac_compile itself does not contain backslashes and begins 13456 # with a dollar sign (not a hyphen), so the echo should work correctly. 13457 # The option is referenced via a variable to avoid confusing sed. 13458 lt_compile=`echo "$ac_compile" | $SED \ 13459 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13461 -e 's:$: $lt_compiler_flag:'` 13462 (eval echo "\"\$as_me:13462: $lt_compile\"" >&5) 13463 (eval "$lt_compile" 2>conftest.err) 13464 ac_status=$? 13465 cat conftest.err >&5 13466 echo "$as_me:13466: \$? = $ac_status" >&5 13467 if (exit $ac_status) && test -s "$ac_outfile"; then 13468 # The compiler can only warn and ignore the option if not recognized 13469 # So say no if there are warnings 13470 if test ! -s conftest.err; then 13471 lt_prog_compiler_pic_works_F77=yes 13472 fi 13473 fi 13474 $rm conftest* 13475 13476fi 13477echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13478echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13479 13480if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13481 case $lt_prog_compiler_pic_F77 in 13482 "" | " "*) ;; 13483 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13484 esac 13485else 13486 lt_prog_compiler_pic_F77= 13487 lt_prog_compiler_can_build_shared_F77=no 13488fi 13489 13490fi 13491case "$host_os" in 13492 # For platforms which do not support PIC, -DPIC is meaningless: 13493 *djgpp*) 13494 lt_prog_compiler_pic_F77= 13495 ;; 13496 *) 13497 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13498 ;; 13499esac 13500 13501echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13502echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13503if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13504 echo $ECHO_N "(cached) $ECHO_C" >&6 13505else 13506 lt_cv_prog_compiler_c_o_F77=no 13507 $rm -r conftest 2>/dev/null 13508 mkdir conftest 13509 cd conftest 13510 mkdir out 13511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13512 13513 lt_compiler_flag="-o out/conftest2.$ac_objext" 13514 # Insert the option either (1) after the last *FLAGS variable, or 13515 # (2) before a word containing "conftest.", or (3) at the end. 13516 # Note that $ac_compile itself does not contain backslashes and begins 13517 # with a dollar sign (not a hyphen), so the echo should work correctly. 13518 lt_compile=`echo "$ac_compile" | $SED \ 13519 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13521 -e 's:$: $lt_compiler_flag:'` 13522 (eval echo "\"\$as_me:13522: $lt_compile\"" >&5) 13523 (eval "$lt_compile" 2>out/conftest.err) 13524 ac_status=$? 13525 cat out/conftest.err >&5 13526 echo "$as_me:13526: \$? = $ac_status" >&5 13527 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13528 then 13529 # The compiler can only warn and ignore the option if not recognized 13530 # So say no if there are warnings 13531 if test ! -s out/conftest.err; then 13532 lt_cv_prog_compiler_c_o_F77=yes 13533 fi 13534 fi 13535 chmod u+w . 13536 $rm conftest* 13537 # SGI C++ compiler will create directory out/ii_files/ for 13538 # template instantiation 13539 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13540 $rm out/* && rmdir out 13541 cd .. 13542 rmdir conftest 13543 $rm conftest* 13544 13545fi 13546echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13547echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13548 13549 13550hard_links="nottested" 13551if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13552 # do not overwrite the value of need_locks provided by the user 13553 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13554echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13555 hard_links=yes 13556 $rm conftest* 13557 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13558 touch conftest.a 13559 ln conftest.a conftest.b 2>&5 || hard_links=no 13560 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13561 echo "$as_me:$LINENO: result: $hard_links" >&5 13562echo "${ECHO_T}$hard_links" >&6 13563 if test "$hard_links" = no; then 13564 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13565echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13566 need_locks=warn 13567 fi 13568else 13569 need_locks=no 13570fi 13571 13572echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13573echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13574 13575 runpath_var= 13576 allow_undefined_flag_F77= 13577 enable_shared_with_static_runtimes_F77=no 13578 archive_cmds_F77= 13579 archive_expsym_cmds_F77= 13580 old_archive_From_new_cmds_F77= 13581 old_archive_from_expsyms_cmds_F77= 13582 export_dynamic_flag_spec_F77= 13583 whole_archive_flag_spec_F77= 13584 thread_safe_flag_spec_F77= 13585 hardcode_libdir_flag_spec_F77= 13586 hardcode_libdir_flag_spec_ld_F77= 13587 hardcode_libdir_separator_F77= 13588 hardcode_direct_F77=no 13589 hardcode_minus_L_F77=no 13590 hardcode_shlibpath_var_F77=unsupported 13591 link_all_deplibs_F77=unknown 13592 hardcode_automatic_F77=no 13593 module_cmds_F77= 13594 module_expsym_cmds_F77= 13595 always_export_symbols_F77=no 13596 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13597 # include_expsyms should be a list of space-separated symbols to be *always* 13598 # included in the symbol list 13599 include_expsyms_F77= 13600 # exclude_expsyms can be an extended regexp of symbols to exclude 13601 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13602 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13603 # as well as any symbol that contains `d'. 13604 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13605 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13606 # platforms (ab)use it in PIC code, but their linkers get confused if 13607 # the symbol is explicitly referenced. Since portable code cannot 13608 # rely on this symbol name, it's probably fine to never include it in 13609 # preloaded symbol tables. 13610 extract_expsyms_cmds= 13611 13612 case $host_os in 13613 cygwin* | mingw* | pw32*) 13614 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13615 # When not using gcc, we currently assume that we are using 13616 # Microsoft Visual C++. 13617 if test "$GCC" != yes; then 13618 with_gnu_ld=no 13619 fi 13620 ;; 13621 openbsd*) 13622 with_gnu_ld=no 13623 ;; 13624 esac 13625 13626 ld_shlibs_F77=yes 13627 if test "$with_gnu_ld" = yes; then 13628 # If archive_cmds runs LD, not CC, wlarc should be empty 13629 wlarc='${wl}' 13630 13631 # See if GNU ld supports shared libraries. 13632 case $host_os in 13633 aix3* | aix4* | aix5*) 13634 # On AIX/PPC, the GNU linker is very broken 13635 if test "$host_cpu" != ia64; then 13636 ld_shlibs_F77=no 13637 cat <<EOF 1>&2 13638 13639*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13640*** to be unable to reliably create shared libraries on AIX. 13641*** Therefore, libtool is disabling shared libraries support. If you 13642*** really care for shared libraries, you may want to modify your PATH 13643*** so that a non-GNU linker is found, and then restart. 13644 13645EOF 13646 fi 13647 ;; 13648 13649 amigaos*) 13650 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)' 13651 hardcode_libdir_flag_spec_F77='-L$libdir' 13652 hardcode_minus_L_F77=yes 13653 13654 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13655 # that the semantics of dynamic libraries on AmigaOS, at least up 13656 # to version 4, is to share data among multiple programs linked 13657 # with the same dynamic library. Since this doesn't match the 13658 # behavior of shared libraries on other platforms, we can't use 13659 # them. 13660 ld_shlibs_F77=no 13661 ;; 13662 13663 beos*) 13664 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13665 allow_undefined_flag_F77=unsupported 13666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13667 # support --undefined. This deserves some investigation. FIXME 13668 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13669 else 13670 ld_shlibs_F77=no 13671 fi 13672 ;; 13673 13674 cygwin* | mingw* | pw32*) 13675 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13676 # as there is no search path for DLLs. 13677 hardcode_libdir_flag_spec_F77='-L$libdir' 13678 allow_undefined_flag_F77=unsupported 13679 always_export_symbols_F77=no 13680 enable_shared_with_static_runtimes_F77=yes 13681 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13682 13683 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13684 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13685 # If the export-symbols file already is a .def file (1st line 13686 # is EXPORTS), use it as is; otherwise, prepend... 13687 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13688 cp $export_symbols $output_objdir/$soname.def; 13689 else 13690 echo EXPORTS > $output_objdir/$soname.def; 13691 cat $export_symbols >> $output_objdir/$soname.def; 13692 fi~ 13693 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13694 else 13695 ld_shlibs=no 13696 fi 13697 ;; 13698 13699 netbsd*) 13700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13701 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13702 wlarc= 13703 else 13704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13705 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13706 fi 13707 ;; 13708 13709 solaris* | sysv5*) 13710 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13711 ld_shlibs_F77=no 13712 cat <<EOF 1>&2 13713 13714*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13715*** create shared libraries on Solaris systems. Therefore, libtool 13716*** is disabling shared libraries support. We urge you to upgrade GNU 13717*** binutils to release 2.9.1 or newer. Another option is to modify 13718*** your PATH or compiler configuration so that the native linker is 13719*** used, and then restart. 13720 13721EOF 13722 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13723 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13724 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13725 else 13726 ld_shlibs_F77=no 13727 fi 13728 ;; 13729 13730 sunos4*) 13731 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13732 wlarc= 13733 hardcode_direct_F77=yes 13734 hardcode_shlibpath_var_F77=no 13735 ;; 13736 13737 linux*) 13738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13739 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13740 archive_cmds_F77="$tmp_archive_cmds" 13741 supports_anon_versioning=no 13742 case `$LD -v 2>/dev/null` in 13743 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13746 *\ 2.11.*) ;; # other 2.11 versions 13747 *) supports_anon_versioning=yes ;; 13748 esac 13749 if test $supports_anon_versioning = yes; then 13750 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13751cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13752$echo "local: *; };" >> $output_objdir/$libname.ver~ 13753 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13754 else 13755 archive_expsym_cmds_F77="$tmp_archive_cmds" 13756 fi 13757 else 13758 ld_shlibs_F77=no 13759 fi 13760 ;; 13761 13762 *) 13763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13764 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13765 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13766 else 13767 ld_shlibs_F77=no 13768 fi 13769 ;; 13770 esac 13771 13772 if test "$ld_shlibs_F77" = yes; then 13773 runpath_var=LD_RUN_PATH 13774 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13775 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13776 # ancient GNU ld didn't support --whole-archive et. al. 13777 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13778 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13779 else 13780 whole_archive_flag_spec_F77= 13781 fi 13782 fi 13783 else 13784 # PORTME fill in a description of your system's linker (not GNU ld) 13785 case $host_os in 13786 aix3*) 13787 allow_undefined_flag_F77=unsupported 13788 always_export_symbols_F77=yes 13789 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' 13790 # Note: this linker hardcodes the directories in LIBPATH if there 13791 # are no directories specified by -L. 13792 hardcode_minus_L_F77=yes 13793 if test "$GCC" = yes && test -z "$link_static_flag"; then 13794 # Neither direct hardcoding nor static linking is supported with a 13795 # broken collect2. 13796 hardcode_direct_F77=unsupported 13797 fi 13798 ;; 13799 13800 aix4* | aix5*) 13801 if test "$host_cpu" = ia64; then 13802 # On IA64, the linker does run time linking by default, so we don't 13803 # have to do anything special. 13804 aix_use_runtimelinking=no 13805 exp_sym_flag='-Bexport' 13806 no_entry_flag="" 13807 else 13808 # If we're using GNU nm, then we don't want the "-C" option. 13809 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13810 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13811 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' 13812 else 13813 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' 13814 fi 13815 aix_use_runtimelinking=no 13816 13817 # Test if we are trying to use run time linking or normal 13818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13819 # need to do runtime linking. 13820 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13821 for ld_flag in $LDFLAGS; do 13822 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13823 aix_use_runtimelinking=yes 13824 break 13825 fi 13826 done 13827 esac 13828 13829 exp_sym_flag='-bexport' 13830 no_entry_flag='-bnoentry' 13831 fi 13832 13833 # When large executables or shared objects are built, AIX ld can 13834 # have problems creating the table of contents. If linking a library 13835 # or program results in "error TOC overflow" add -mminimal-toc to 13836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13838 13839 archive_cmds_F77='' 13840 hardcode_direct_F77=yes 13841 hardcode_libdir_separator_F77=':' 13842 link_all_deplibs_F77=yes 13843 13844 if test "$GCC" = yes; then 13845 case $host_os in aix4.012|aix4.012.*) 13846 # We only want to do this on AIX 4.2 and lower, the check 13847 # below for broken collect2 doesn't work under 4.3+ 13848 collect2name=`${CC} -print-prog-name=collect2` 13849 if test -f "$collect2name" && \ 13850 strings "$collect2name" | grep resolve_lib_name >/dev/null 13851 then 13852 # We have reworked collect2 13853 hardcode_direct_F77=yes 13854 else 13855 # We have old collect2 13856 hardcode_direct_F77=unsupported 13857 # It fails to find uninstalled libraries when the uninstalled 13858 # path is not listed in the libpath. Setting hardcode_minus_L 13859 # to unsupported forces relinking 13860 hardcode_minus_L_F77=yes 13861 hardcode_libdir_flag_spec_F77='-L$libdir' 13862 hardcode_libdir_separator_F77= 13863 fi 13864 esac 13865 shared_flag='-shared' 13866 else 13867 # not using gcc 13868 if test "$host_cpu" = ia64; then 13869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13870 # chokes on -Wl,-G. The following line is correct: 13871 shared_flag='-G' 13872 else 13873 if test "$aix_use_runtimelinking" = yes; then 13874 shared_flag='${wl}-G' 13875 else 13876 shared_flag='${wl}-bM:SRE' 13877 fi 13878 fi 13879 fi 13880 13881 # It seems that -bexpall does not export symbols beginning with 13882 # underscore (_), so it is better to generate a list of symbols to export. 13883 always_export_symbols_F77=yes 13884 if test "$aix_use_runtimelinking" = yes; then 13885 # Warning - without using the other runtime loading flags (-brtl), 13886 # -berok will link without error, but may produce a broken library. 13887 allow_undefined_flag_F77='-berok' 13888 # Determine the default libpath from the value encoded in an empty executable. 13889 cat >conftest.$ac_ext <<_ACEOF 13890 program main 13891 13892 end 13893_ACEOF 13894rm -f conftest.$ac_objext conftest$ac_exeext 13895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13896 (eval $ac_link) 2>conftest.er1 13897 ac_status=$? 13898 grep -v '^ *+' conftest.er1 >conftest.err 13899 rm -f conftest.er1 13900 cat conftest.err >&5 13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13902 (exit $ac_status); } && 13903 { ac_try='test -z "$ac_f77_werror_flag" 13904 || test ! -s conftest.err' 13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13906 (eval $ac_try) 2>&5 13907 ac_status=$? 13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13909 (exit $ac_status); }; } && 13910 { ac_try='test -s conftest$ac_exeext' 13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13912 (eval $ac_try) 2>&5 13913 ac_status=$? 13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13915 (exit $ac_status); }; }; then 13916 13917aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13918}'` 13919# Check for a 64-bit object if we didn't find anything. 13920if 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; } 13921}'`; fi 13922else 13923 echo "$as_me: failed program was:" >&5 13924sed 's/^/| /' conftest.$ac_ext >&5 13925 13926fi 13927rm -f conftest.err conftest.$ac_objext \ 13928 conftest$ac_exeext conftest.$ac_ext 13929if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13930 13931 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13932 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13933 else 13934 if test "$host_cpu" = ia64; then 13935 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13936 allow_undefined_flag_F77="-z nodefs" 13937 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 13938 else 13939 # Determine the default libpath from the value encoded in an empty executable. 13940 cat >conftest.$ac_ext <<_ACEOF 13941 program main 13942 13943 end 13944_ACEOF 13945rm -f conftest.$ac_objext conftest$ac_exeext 13946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13947 (eval $ac_link) 2>conftest.er1 13948 ac_status=$? 13949 grep -v '^ *+' conftest.er1 >conftest.err 13950 rm -f conftest.er1 13951 cat conftest.err >&5 13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13953 (exit $ac_status); } && 13954 { ac_try='test -z "$ac_f77_werror_flag" 13955 || test ! -s conftest.err' 13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13957 (eval $ac_try) 2>&5 13958 ac_status=$? 13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13960 (exit $ac_status); }; } && 13961 { ac_try='test -s conftest$ac_exeext' 13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13963 (eval $ac_try) 2>&5 13964 ac_status=$? 13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13966 (exit $ac_status); }; }; then 13967 13968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13969}'` 13970# Check for a 64-bit object if we didn't find anything. 13971if 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; } 13972}'`; fi 13973else 13974 echo "$as_me: failed program was:" >&5 13975sed 's/^/| /' conftest.$ac_ext >&5 13976 13977fi 13978rm -f conftest.err conftest.$ac_objext \ 13979 conftest$ac_exeext conftest.$ac_ext 13980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13981 13982 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13983 # Warning - without using the other run time loading flags, 13984 # -berok will link without error, but may produce a broken library. 13985 no_undefined_flag_F77=' ${wl}-bernotok' 13986 allow_undefined_flag_F77=' ${wl}-berok' 13987 # -bexpall does not export symbols beginning with underscore (_) 13988 always_export_symbols_F77=yes 13989 # Exported symbols can be pulled into shared objects from archives 13990 whole_archive_flag_spec_F77=' ' 13991 archive_cmds_need_lc_F77=yes 13992 # This is similar to how AIX traditionally builds it's shared libraries. 13993 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13994 fi 13995 fi 13996 ;; 13997 13998 amigaos*) 13999 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)' 14000 hardcode_libdir_flag_spec_F77='-L$libdir' 14001 hardcode_minus_L_F77=yes 14002 # see comment about different semantics on the GNU ld section 14003 ld_shlibs_F77=no 14004 ;; 14005 14006 bsdi4*) 14007 export_dynamic_flag_spec_F77=-rdynamic 14008 ;; 14009 14010 cygwin* | mingw* | pw32*) 14011 # When not using gcc, we currently assume that we are using 14012 # Microsoft Visual C++. 14013 # hardcode_libdir_flag_spec is actually meaningless, as there is 14014 # no search path for DLLs. 14015 hardcode_libdir_flag_spec_F77=' ' 14016 allow_undefined_flag_F77=unsupported 14017 # Tell ltmain to make .lib files, not .a files. 14018 libext=lib 14019 # Tell ltmain to make .dll files, not .so files. 14020 shrext_cmds=".dll" 14021 # FIXME: Setting linknames here is a bad hack. 14022 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14023 # The linker will automatically build a .lib file if we build a DLL. 14024 old_archive_From_new_cmds_F77='true' 14025 # FIXME: Should let the user specify the lib program. 14026 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14027 fix_srcfile_path='`cygpath -w "$srcfile"`' 14028 enable_shared_with_static_runtimes_F77=yes 14029 ;; 14030 14031 darwin* | rhapsody*) 14032 if test "$GXX" = yes ; then 14033 archive_cmds_need_lc_F77=no 14034 case "$host_os" in 14035 rhapsody* | darwin1.[012]) 14036 allow_undefined_flag_F77='-undefined suppress' 14037 ;; 14038 *) # Darwin 1.3 on 14039 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14040 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 14041 else 14042 case ${MACOSX_DEPLOYMENT_TARGET} in 14043 10.[012]) 14044 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 14045 ;; 14046 10.*) 14047 allow_undefined_flag_F77='-undefined dynamic_lookup' 14048 ;; 14049 esac 14050 fi 14051 ;; 14052 esac 14053 lt_int_apple_cc_single_mod=no 14054 output_verbose_link_cmd='echo' 14055 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 14056 lt_int_apple_cc_single_mod=yes 14057 fi 14058 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14059 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14060 else 14061 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14062 fi 14063 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14064 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14065 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14066 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14067 else 14068 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14069 fi 14070 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}' 14071 hardcode_direct_F77=no 14072 hardcode_automatic_F77=yes 14073 hardcode_shlibpath_var_F77=unsupported 14074 whole_archive_flag_spec_F77='-all_load $convenience' 14075 link_all_deplibs_F77=yes 14076 else 14077 ld_shlibs_F77=no 14078 fi 14079 ;; 14080 14081 dgux*) 14082 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14083 hardcode_libdir_flag_spec_F77='-L$libdir' 14084 hardcode_shlibpath_var_F77=no 14085 ;; 14086 14087 freebsd1*) 14088 ld_shlibs_F77=no 14089 ;; 14090 14091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14092 # support. Future versions do this automatically, but an explicit c++rt0.o 14093 # does not break anything, and helps significantly (at the cost of a little 14094 # extra space). 14095 freebsd2.2*) 14096 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14097 hardcode_libdir_flag_spec_F77='-R$libdir' 14098 hardcode_direct_F77=yes 14099 hardcode_shlibpath_var_F77=no 14100 ;; 14101 14102 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14103 freebsd2*) 14104 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14105 hardcode_direct_F77=yes 14106 hardcode_minus_L_F77=yes 14107 hardcode_shlibpath_var_F77=no 14108 ;; 14109 14110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14111 freebsd* | kfreebsd*-gnu) 14112 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14113 hardcode_libdir_flag_spec_F77='-R$libdir' 14114 hardcode_direct_F77=yes 14115 hardcode_shlibpath_var_F77=no 14116 ;; 14117 14118 hpux9*) 14119 if test "$GCC" = yes; then 14120 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' 14121 else 14122 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' 14123 fi 14124 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14125 hardcode_libdir_separator_F77=: 14126 hardcode_direct_F77=yes 14127 14128 # hardcode_minus_L: Not really in the search PATH, 14129 # but as the default location of the library. 14130 hardcode_minus_L_F77=yes 14131 export_dynamic_flag_spec_F77='${wl}-E' 14132 ;; 14133 14134 hpux10* | hpux11*) 14135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14136 case "$host_cpu" in 14137 hppa*64*|ia64*) 14138 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14139 ;; 14140 *) 14141 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14142 ;; 14143 esac 14144 else 14145 case "$host_cpu" in 14146 hppa*64*|ia64*) 14147 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14148 ;; 14149 *) 14150 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14151 ;; 14152 esac 14153 fi 14154 if test "$with_gnu_ld" = no; then 14155 case "$host_cpu" in 14156 hppa*64*) 14157 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14158 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14159 hardcode_libdir_separator_F77=: 14160 hardcode_direct_F77=no 14161 hardcode_shlibpath_var_F77=no 14162 ;; 14163 ia64*) 14164 hardcode_libdir_flag_spec_F77='-L$libdir' 14165 hardcode_direct_F77=no 14166 hardcode_shlibpath_var_F77=no 14167 14168 # hardcode_minus_L: Not really in the search PATH, 14169 # but as the default location of the library. 14170 hardcode_minus_L_F77=yes 14171 ;; 14172 *) 14173 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14174 hardcode_libdir_separator_F77=: 14175 hardcode_direct_F77=yes 14176 export_dynamic_flag_spec_F77='${wl}-E' 14177 14178 # hardcode_minus_L: Not really in the search PATH, 14179 # but as the default location of the library. 14180 hardcode_minus_L_F77=yes 14181 ;; 14182 esac 14183 fi 14184 ;; 14185 14186 irix5* | irix6* | nonstopux*) 14187 if test "$GCC" = yes; then 14188 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' 14189 else 14190 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' 14191 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14192 fi 14193 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14194 hardcode_libdir_separator_F77=: 14195 link_all_deplibs_F77=yes 14196 ;; 14197 14198 netbsd*) 14199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14200 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14201 else 14202 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14203 fi 14204 hardcode_libdir_flag_spec_F77='-R$libdir' 14205 hardcode_direct_F77=yes 14206 hardcode_shlibpath_var_F77=no 14207 ;; 14208 14209 newsos6) 14210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14211 hardcode_direct_F77=yes 14212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14213 hardcode_libdir_separator_F77=: 14214 hardcode_shlibpath_var_F77=no 14215 ;; 14216 14217 openbsd*) 14218 hardcode_direct_F77=yes 14219 hardcode_shlibpath_var_F77=no 14220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14221 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14222 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14223 export_dynamic_flag_spec_F77='${wl}-E' 14224 else 14225 case $host_os in 14226 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14227 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14228 hardcode_libdir_flag_spec_F77='-R$libdir' 14229 ;; 14230 *) 14231 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14232 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14233 ;; 14234 esac 14235 fi 14236 ;; 14237 14238 os2*) 14239 hardcode_libdir_flag_spec_F77='-L$libdir' 14240 hardcode_minus_L_F77=yes 14241 allow_undefined_flag_F77=unsupported 14242 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' 14243 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14244 ;; 14245 14246 osf3*) 14247 if test "$GCC" = yes; then 14248 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14249 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' 14250 else 14251 allow_undefined_flag_F77=' -expect_unresolved \*' 14252 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' 14253 fi 14254 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14255 hardcode_libdir_separator_F77=: 14256 ;; 14257 14258 osf4* | osf5*) # as osf3* with the addition of -msym flag 14259 if test "$GCC" = yes; then 14260 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14261 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' 14262 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14263 else 14264 allow_undefined_flag_F77=' -expect_unresolved \*' 14265 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' 14266 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~ 14267 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 14268 14269 # Both c and cxx compiler support -rpath directly 14270 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14271 fi 14272 hardcode_libdir_separator_F77=: 14273 ;; 14274 14275 sco3.2v5*) 14276 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14277 hardcode_shlibpath_var_F77=no 14278 export_dynamic_flag_spec_F77='${wl}-Bexport' 14279 runpath_var=LD_RUN_PATH 14280 hardcode_runpath_var=yes 14281 ;; 14282 14283 solaris*) 14284 no_undefined_flag_F77=' -z text' 14285 if test "$GCC" = yes; then 14286 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14287 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14288 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14289 else 14290 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14291 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14293 fi 14294 hardcode_libdir_flag_spec_F77='-R$libdir' 14295 hardcode_shlibpath_var_F77=no 14296 case $host_os in 14297 solaris2.[0-5] | solaris2.[0-5].*) ;; 14298 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14299 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14300 esac 14301 link_all_deplibs_F77=yes 14302 ;; 14303 14304 sunos4*) 14305 if test "x$host_vendor" = xsequent; then 14306 # Use $CC to link under sequent, because it throws in some extra .o 14307 # files that make .init and .fini sections work. 14308 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14309 else 14310 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14311 fi 14312 hardcode_libdir_flag_spec_F77='-L$libdir' 14313 hardcode_direct_F77=yes 14314 hardcode_minus_L_F77=yes 14315 hardcode_shlibpath_var_F77=no 14316 ;; 14317 14318 sysv4) 14319 case $host_vendor in 14320 sni) 14321 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14322 hardcode_direct_F77=yes # is this really true??? 14323 ;; 14324 siemens) 14325 ## LD is ld it makes a PLAMLIB 14326 ## CC just makes a GrossModule. 14327 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14328 reload_cmds_F77='$CC -r -o $output$reload_objs' 14329 hardcode_direct_F77=no 14330 ;; 14331 motorola) 14332 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14333 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14334 ;; 14335 esac 14336 runpath_var='LD_RUN_PATH' 14337 hardcode_shlibpath_var_F77=no 14338 ;; 14339 14340 sysv4.3*) 14341 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14342 hardcode_shlibpath_var_F77=no 14343 export_dynamic_flag_spec_F77='-Bexport' 14344 ;; 14345 14346 sysv4*MP*) 14347 if test -d /usr/nec; then 14348 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14349 hardcode_shlibpath_var_F77=no 14350 runpath_var=LD_RUN_PATH 14351 hardcode_runpath_var=yes 14352 ld_shlibs_F77=yes 14353 fi 14354 ;; 14355 14356 sysv4.2uw2*) 14357 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14358 hardcode_direct_F77=yes 14359 hardcode_minus_L_F77=no 14360 hardcode_shlibpath_var_F77=no 14361 hardcode_runpath_var=yes 14362 runpath_var=LD_RUN_PATH 14363 ;; 14364 14365 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14366 no_undefined_flag_F77='${wl}-z ${wl}text' 14367 if test "$GCC" = yes; then 14368 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14369 else 14370 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14371 fi 14372 runpath_var='LD_RUN_PATH' 14373 hardcode_shlibpath_var_F77=no 14374 ;; 14375 14376 sysv5*) 14377 no_undefined_flag_F77=' -z text' 14378 # $CC -shared without GNU ld will not create a library from C++ 14379 # object files and a static libstdc++, better avoid it by now 14380 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14381 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14382 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14383 hardcode_libdir_flag_spec_F77= 14384 hardcode_shlibpath_var_F77=no 14385 runpath_var='LD_RUN_PATH' 14386 ;; 14387 14388 uts4*) 14389 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14390 hardcode_libdir_flag_spec_F77='-L$libdir' 14391 hardcode_shlibpath_var_F77=no 14392 ;; 14393 14394 *) 14395 ld_shlibs_F77=no 14396 ;; 14397 esac 14398 fi 14399 14400echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14401echo "${ECHO_T}$ld_shlibs_F77" >&6 14402test "$ld_shlibs_F77" = no && can_build_shared=no 14403 14404variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14405if test "$GCC" = yes; then 14406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14407fi 14408 14409# 14410# Do we need to explicitly link libc? 14411# 14412case "x$archive_cmds_need_lc_F77" in 14413x|xyes) 14414 # Assume -lc should be added 14415 archive_cmds_need_lc_F77=yes 14416 14417 if test "$enable_shared" = yes && test "$GCC" = yes; then 14418 case $archive_cmds_F77 in 14419 *'~'*) 14420 # FIXME: we may have to deal with multi-command sequences. 14421 ;; 14422 '$CC '*) 14423 # Test whether the compiler implicitly links with -lc since on some 14424 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14425 # to ld, don't add -lc before -lgcc. 14426 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14427echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14428 $rm conftest* 14429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14430 14431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14432 (eval $ac_compile) 2>&5 14433 ac_status=$? 14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14435 (exit $ac_status); } 2>conftest.err; then 14436 soname=conftest 14437 lib=conftest 14438 libobjs=conftest.$ac_objext 14439 deplibs= 14440 wl=$lt_prog_compiler_wl_F77 14441 compiler_flags=-v 14442 linker_flags=-v 14443 verstring= 14444 output_objdir=. 14445 libname=conftest 14446 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14447 allow_undefined_flag_F77= 14448 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14449 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14450 ac_status=$? 14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14452 (exit $ac_status); } 14453 then 14454 archive_cmds_need_lc_F77=no 14455 else 14456 archive_cmds_need_lc_F77=yes 14457 fi 14458 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14459 else 14460 cat conftest.err 1>&5 14461 fi 14462 $rm conftest* 14463 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14464echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14465 ;; 14466 esac 14467 fi 14468 ;; 14469esac 14470 14471echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14472echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14473library_names_spec= 14474libname_spec='lib$name' 14475soname_spec= 14476shrext_cmds=".so" 14477postinstall_cmds= 14478postuninstall_cmds= 14479finish_cmds= 14480finish_eval= 14481shlibpath_var= 14482shlibpath_overrides_runpath=unknown 14483version_type=none 14484dynamic_linker="$host_os ld.so" 14485sys_lib_dlsearch_path_spec="/lib /usr/lib" 14486if test "$GCC" = yes; then 14487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14488 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14489 # if the path contains ";" then we assume it to be the separator 14490 # otherwise default to the standard path separator (i.e. ":") - it is 14491 # assumed that no part of a normal pathname contains ";" but that should 14492 # okay in the real world where ";" in dirpaths is itself problematic. 14493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14494 else 14495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14496 fi 14497else 14498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14499fi 14500need_lib_prefix=unknown 14501hardcode_into_libs=no 14502 14503# when you set need_version to no, make sure it does not cause -set_version 14504# flags to be left without arguments 14505need_version=unknown 14506 14507case $host_os in 14508aix3*) 14509 version_type=linux 14510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14511 shlibpath_var=LIBPATH 14512 14513 # AIX 3 has no versioning support, so we append a major version to the name. 14514 soname_spec='${libname}${release}${shared_ext}$major' 14515 ;; 14516 14517aix4* | aix5*) 14518 version_type=linux 14519 need_lib_prefix=no 14520 need_version=no 14521 hardcode_into_libs=yes 14522 if test "$host_cpu" = ia64; then 14523 # AIX 5 supports IA64 14524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14525 shlibpath_var=LD_LIBRARY_PATH 14526 else 14527 # With GCC up to 2.95.x, collect2 would create an import file 14528 # for dependence libraries. The import file would start with 14529 # the line `#! .'. This would cause the generated library to 14530 # depend on `.', always an invalid library. This was fixed in 14531 # development snapshots of GCC prior to 3.0. 14532 case $host_os in 14533 aix4 | aix4.[01] | aix4.[01].*) 14534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14535 echo ' yes ' 14536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14537 : 14538 else 14539 can_build_shared=no 14540 fi 14541 ;; 14542 esac 14543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14544 # soname into executable. Probably we can add versioning support to 14545 # collect2, so additional links can be useful in future. 14546 if test "$aix_use_runtimelinking" = yes; then 14547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14548 # instead of lib<name>.a to let people know that these are not 14549 # typical AIX shared libraries. 14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14551 else 14552 # We preserve .a as extension for shared libraries through AIX4.2 14553 # and later when we are not doing run time linking. 14554 library_names_spec='${libname}${release}.a $libname.a' 14555 soname_spec='${libname}${release}${shared_ext}$major' 14556 fi 14557 shlibpath_var=LIBPATH 14558 fi 14559 ;; 14560 14561amigaos*) 14562 library_names_spec='$libname.ixlibrary $libname.a' 14563 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14564 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' 14565 ;; 14566 14567beos*) 14568 library_names_spec='${libname}${shared_ext}' 14569 dynamic_linker="$host_os ld.so" 14570 shlibpath_var=LIBRARY_PATH 14571 ;; 14572 14573bsdi4*) 14574 version_type=linux 14575 need_version=no 14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14577 soname_spec='${libname}${release}${shared_ext}$major' 14578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14579 shlibpath_var=LD_LIBRARY_PATH 14580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14582 # the default ld.so.conf also contains /usr/contrib/lib and 14583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14584 # libtool to hard-code these into programs 14585 ;; 14586 14587cygwin* | mingw* | pw32*) 14588 version_type=windows 14589 shrext_cmds=".dll" 14590 need_version=no 14591 need_lib_prefix=no 14592 14593 case $GCC,$host_os in 14594 yes,cygwin* | yes,mingw* | yes,pw32*) 14595 library_names_spec='$libname.dll.a' 14596 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14597 postinstall_cmds='base_file=`basename \${file}`~ 14598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14599 dldir=$destdir/`dirname \$dlpath`~ 14600 test -d \$dldir || mkdir -p \$dldir~ 14601 $install_prog $dir/$dlname \$dldir/$dlname' 14602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14603 dlpath=$dir/\$dldll~ 14604 $rm \$dlpath' 14605 shlibpath_overrides_runpath=yes 14606 14607 case $host_os in 14608 cygwin*) 14609 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14610 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14611 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14612 ;; 14613 mingw*) 14614 # MinGW DLLs use traditional 'lib' prefix 14615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14617 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14618 # It is most probably a Windows format PATH printed by 14619 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14620 # path with ; separators, and with drive letters. We can handle the 14621 # drive letters (cygwin fileutils understands them), so leave them, 14622 # especially as we might pass files found there to a mingw objdump, 14623 # which wouldn't understand a cygwinified path. Ahh. 14624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14625 else 14626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14627 fi 14628 ;; 14629 pw32*) 14630 # pw32 DLLs use 'pw' prefix rather than 'lib' 14631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14632 ;; 14633 esac 14634 ;; 14635 14636 *) 14637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14638 ;; 14639 esac 14640 dynamic_linker='Win32 ld.exe' 14641 # FIXME: first we should search . and the directory the executable is in 14642 shlibpath_var=PATH 14643 ;; 14644 14645darwin* | rhapsody*) 14646 dynamic_linker="$host_os dyld" 14647 version_type=darwin 14648 need_lib_prefix=no 14649 need_version=no 14650 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14651 soname_spec='${libname}${release}${major}$shared_ext' 14652 shlibpath_overrides_runpath=yes 14653 shlibpath_var=DYLD_LIBRARY_PATH 14654 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14655 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14656 if test "$GCC" = yes; then 14657 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"` 14658 else 14659 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14660 fi 14661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14662 ;; 14663 14664dgux*) 14665 version_type=linux 14666 need_lib_prefix=no 14667 need_version=no 14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14669 soname_spec='${libname}${release}${shared_ext}$major' 14670 shlibpath_var=LD_LIBRARY_PATH 14671 ;; 14672 14673freebsd1*) 14674 dynamic_linker=no 14675 ;; 14676 14677kfreebsd*-gnu) 14678 version_type=linux 14679 need_lib_prefix=no 14680 need_version=no 14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14682 soname_spec='${libname}${release}${shared_ext}$major' 14683 shlibpath_var=LD_LIBRARY_PATH 14684 shlibpath_overrides_runpath=no 14685 hardcode_into_libs=yes 14686 dynamic_linker='GNU ld.so' 14687 ;; 14688 14689freebsd*) 14690 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14691 version_type=freebsd-$objformat 14692 case $version_type in 14693 freebsd-elf*) 14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14695 need_version=no 14696 need_lib_prefix=no 14697 ;; 14698 freebsd-*) 14699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14700 need_version=yes 14701 ;; 14702 esac 14703 shlibpath_var=LD_LIBRARY_PATH 14704 case $host_os in 14705 freebsd2*) 14706 shlibpath_overrides_runpath=yes 14707 ;; 14708 freebsd3.01* | freebsdelf3.01*) 14709 shlibpath_overrides_runpath=yes 14710 hardcode_into_libs=yes 14711 ;; 14712 *) # from 3.2 on 14713 shlibpath_overrides_runpath=no 14714 hardcode_into_libs=yes 14715 ;; 14716 esac 14717 ;; 14718 14719gnu*) 14720 version_type=linux 14721 need_lib_prefix=no 14722 need_version=no 14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14724 soname_spec='${libname}${release}${shared_ext}$major' 14725 shlibpath_var=LD_LIBRARY_PATH 14726 hardcode_into_libs=yes 14727 ;; 14728 14729hpux9* | hpux10* | hpux11*) 14730 # Give a soname corresponding to the major version so that dld.sl refuses to 14731 # link against other versions. 14732 version_type=sunos 14733 need_lib_prefix=no 14734 need_version=no 14735 case "$host_cpu" in 14736 ia64*) 14737 shrext_cmds='.so' 14738 hardcode_into_libs=yes 14739 dynamic_linker="$host_os dld.so" 14740 shlibpath_var=LD_LIBRARY_PATH 14741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 if test "X$HPUX_IA64_MODE" = X32; then 14745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14746 else 14747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14748 fi 14749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14750 ;; 14751 hppa*64*) 14752 shrext_cmds='.sl' 14753 hardcode_into_libs=yes 14754 dynamic_linker="$host_os dld.sl" 14755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14758 soname_spec='${libname}${release}${shared_ext}$major' 14759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14761 ;; 14762 *) 14763 shrext_cmds='.sl' 14764 dynamic_linker="$host_os dld.sl" 14765 shlibpath_var=SHLIB_PATH 14766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14768 soname_spec='${libname}${release}${shared_ext}$major' 14769 ;; 14770 esac 14771 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14772 postinstall_cmds='chmod 555 $lib' 14773 ;; 14774 14775irix5* | irix6* | nonstopux*) 14776 case $host_os in 14777 nonstopux*) version_type=nonstopux ;; 14778 *) 14779 if test "$lt_cv_prog_gnu_ld" = yes; then 14780 version_type=linux 14781 else 14782 version_type=irix 14783 fi ;; 14784 esac 14785 need_lib_prefix=no 14786 need_version=no 14787 soname_spec='${libname}${release}${shared_ext}$major' 14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14789 case $host_os in 14790 irix5* | nonstopux*) 14791 libsuff= shlibsuff= 14792 ;; 14793 *) 14794 case $LD in # libtool.m4 will add one of these switches to LD 14795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14796 libsuff= shlibsuff= libmagic=32-bit;; 14797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14798 libsuff=32 shlibsuff=N32 libmagic=N32;; 14799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14800 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14801 *) libsuff= shlibsuff= libmagic=never-match;; 14802 esac 14803 ;; 14804 esac 14805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14806 shlibpath_overrides_runpath=no 14807 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14808 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14809 hardcode_into_libs=yes 14810 ;; 14811 14812# No shared lib support for Linux oldld, aout, or coff. 14813linux*oldld* | linux*aout* | linux*coff*) 14814 dynamic_linker=no 14815 ;; 14816 14817# This must be Linux ELF. 14818linux*) 14819 version_type=linux 14820 need_lib_prefix=no 14821 need_version=no 14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14823 soname_spec='${libname}${release}${shared_ext}$major' 14824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14825 shlibpath_var=LD_LIBRARY_PATH 14826 shlibpath_overrides_runpath=no 14827 # This implies no fast_install, which is unacceptable. 14828 # Some rework will be needed to allow for fast_install 14829 # before this can be enabled. 14830 hardcode_into_libs=yes 14831 14832 # find out which ABI we are using 14833 libsuff= 14834 case "$host_cpu" in 14835 x86_64*|s390x*|powerpc64*) 14836 echo '#line 14836 "configure"' > conftest.$ac_ext 14837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14838 (eval $ac_compile) 2>&5 14839 ac_status=$? 14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14841 (exit $ac_status); }; then 14842 case `/usr/bin/file conftest.$ac_objext` in 14843 *64-bit*) 14844 libsuff=64 14845 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14846 ;; 14847 esac 14848 fi 14849 rm -rf conftest* 14850 ;; 14851 esac 14852 14853 # Append ld.so.conf contents to the search path 14854 if test -f /etc/ld.so.conf; then 14855 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 14856 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14857 fi 14858 14859 # We used to test for /lib/ld.so.1 and disable shared libraries on 14860 # powerpc, because MkLinux only supported shared libraries with the 14861 # GNU dynamic linker. Since this was broken with cross compilers, 14862 # most powerpc-linux boxes support dynamic linking these days and 14863 # people can always --disable-shared, the test was removed, and we 14864 # assume the GNU/Linux dynamic linker is in use. 14865 dynamic_linker='GNU/Linux ld.so' 14866 ;; 14867 14868knetbsd*-gnu) 14869 version_type=linux 14870 need_lib_prefix=no 14871 need_version=no 14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14873 soname_spec='${libname}${release}${shared_ext}$major' 14874 shlibpath_var=LD_LIBRARY_PATH 14875 shlibpath_overrides_runpath=no 14876 hardcode_into_libs=yes 14877 dynamic_linker='GNU ld.so' 14878 ;; 14879 14880netbsd*) 14881 version_type=sunos 14882 need_lib_prefix=no 14883 need_version=no 14884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14887 dynamic_linker='NetBSD (a.out) ld.so' 14888 else 14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14890 soname_spec='${libname}${release}${shared_ext}$major' 14891 dynamic_linker='NetBSD ld.elf_so' 14892 fi 14893 shlibpath_var=LD_LIBRARY_PATH 14894 shlibpath_overrides_runpath=yes 14895 hardcode_into_libs=yes 14896 ;; 14897 14898newsos6) 14899 version_type=linux 14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14901 shlibpath_var=LD_LIBRARY_PATH 14902 shlibpath_overrides_runpath=yes 14903 ;; 14904 14905nto-qnx*) 14906 version_type=linux 14907 need_lib_prefix=no 14908 need_version=no 14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14910 soname_spec='${libname}${release}${shared_ext}$major' 14911 shlibpath_var=LD_LIBRARY_PATH 14912 shlibpath_overrides_runpath=yes 14913 ;; 14914 14915openbsd*) 14916 version_type=sunos 14917 need_lib_prefix=no 14918 need_version=yes 14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14921 shlibpath_var=LD_LIBRARY_PATH 14922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14923 case $host_os in 14924 openbsd2.[89] | openbsd2.[89].*) 14925 shlibpath_overrides_runpath=no 14926 ;; 14927 *) 14928 shlibpath_overrides_runpath=yes 14929 ;; 14930 esac 14931 else 14932 shlibpath_overrides_runpath=yes 14933 fi 14934 ;; 14935 14936os2*) 14937 libname_spec='$name' 14938 shrext_cmds=".dll" 14939 need_lib_prefix=no 14940 library_names_spec='$libname${shared_ext} $libname.a' 14941 dynamic_linker='OS/2 ld.exe' 14942 shlibpath_var=LIBPATH 14943 ;; 14944 14945osf3* | osf4* | osf5*) 14946 version_type=osf 14947 need_lib_prefix=no 14948 need_version=no 14949 soname_spec='${libname}${release}${shared_ext}$major' 14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14951 shlibpath_var=LD_LIBRARY_PATH 14952 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14953 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14954 ;; 14955 14956sco3.2v5*) 14957 version_type=osf 14958 soname_spec='${libname}${release}${shared_ext}$major' 14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14960 shlibpath_var=LD_LIBRARY_PATH 14961 ;; 14962 14963solaris*) 14964 version_type=linux 14965 need_lib_prefix=no 14966 need_version=no 14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14968 soname_spec='${libname}${release}${shared_ext}$major' 14969 shlibpath_var=LD_LIBRARY_PATH 14970 shlibpath_overrides_runpath=yes 14971 hardcode_into_libs=yes 14972 # ldd complains unless libraries are executable 14973 postinstall_cmds='chmod +x $lib' 14974 ;; 14975 14976sunos4*) 14977 version_type=sunos 14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14980 shlibpath_var=LD_LIBRARY_PATH 14981 shlibpath_overrides_runpath=yes 14982 if test "$with_gnu_ld" = yes; then 14983 need_lib_prefix=no 14984 fi 14985 need_version=yes 14986 ;; 14987 14988sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14989 version_type=linux 14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14991 soname_spec='${libname}${release}${shared_ext}$major' 14992 shlibpath_var=LD_LIBRARY_PATH 14993 case $host_vendor in 14994 sni) 14995 shlibpath_overrides_runpath=no 14996 need_lib_prefix=no 14997 export_dynamic_flag_spec='${wl}-Blargedynsym' 14998 runpath_var=LD_RUN_PATH 14999 ;; 15000 siemens) 15001 need_lib_prefix=no 15002 ;; 15003 motorola) 15004 need_lib_prefix=no 15005 need_version=no 15006 shlibpath_overrides_runpath=no 15007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15008 ;; 15009 esac 15010 ;; 15011 15012sysv4*MP*) 15013 if test -d /usr/nec ;then 15014 version_type=linux 15015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15016 soname_spec='$libname${shared_ext}.$major' 15017 shlibpath_var=LD_LIBRARY_PATH 15018 fi 15019 ;; 15020 15021uts4*) 15022 version_type=linux 15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15024 soname_spec='${libname}${release}${shared_ext}$major' 15025 shlibpath_var=LD_LIBRARY_PATH 15026 ;; 15027 15028*) 15029 dynamic_linker=no 15030 ;; 15031esac 15032echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15033echo "${ECHO_T}$dynamic_linker" >&6 15034test "$dynamic_linker" = no && can_build_shared=no 15035 15036echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15037echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15038hardcode_action_F77= 15039if test -n "$hardcode_libdir_flag_spec_F77" || \ 15040 test -n "$runpath_var F77" || \ 15041 test "X$hardcode_automatic_F77"="Xyes" ; then 15042 15043 # We can hardcode non-existant directories. 15044 if test "$hardcode_direct_F77" != no && 15045 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15046 # have to relink, otherwise we might link with an installed library 15047 # when we should be linking with a yet-to-be-installed one 15048 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15049 test "$hardcode_minus_L_F77" != no; then 15050 # Linking always hardcodes the temporary library directory. 15051 hardcode_action_F77=relink 15052 else 15053 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15054 hardcode_action_F77=immediate 15055 fi 15056else 15057 # We cannot hardcode anything, or else we can only hardcode existing 15058 # directories. 15059 hardcode_action_F77=unsupported 15060fi 15061echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15062echo "${ECHO_T}$hardcode_action_F77" >&6 15063 15064if test "$hardcode_action_F77" = relink; then 15065 # Fast installation is not supported 15066 enable_fast_install=no 15067elif test "$shlibpath_overrides_runpath" = yes || 15068 test "$enable_shared" = no; then 15069 # Fast installation is not necessary 15070 enable_fast_install=needless 15071fi 15072 15073striplib= 15074old_striplib= 15075echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15076echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15077if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15078 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15079 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15080 echo "$as_me:$LINENO: result: yes" >&5 15081echo "${ECHO_T}yes" >&6 15082else 15083# FIXME - insert some real tests, host_os isn't really good enough 15084 case $host_os in 15085 darwin*) 15086 if test -n "$STRIP" ; then 15087 striplib="$STRIP -x" 15088 echo "$as_me:$LINENO: result: yes" >&5 15089echo "${ECHO_T}yes" >&6 15090 else 15091 echo "$as_me:$LINENO: result: no" >&5 15092echo "${ECHO_T}no" >&6 15093fi 15094 ;; 15095 *) 15096 echo "$as_me:$LINENO: result: no" >&5 15097echo "${ECHO_T}no" >&6 15098 ;; 15099 esac 15100fi 15101 15102 15103 15104# The else clause should only fire when bootstrapping the 15105# libtool distribution, otherwise you forgot to ship ltmain.sh 15106# with your package, and you will get complaints that there are 15107# no rules to generate ltmain.sh. 15108if test -f "$ltmain"; then 15109 # See if we are running on zsh, and set the options which allow our commands through 15110 # without removal of \ escapes. 15111 if test -n "${ZSH_VERSION+set}" ; then 15112 setopt NO_GLOB_SUBST 15113 fi 15114 # Now quote all the things that may contain metacharacters while being 15115 # careful not to overquote the AC_SUBSTed values. We take copies of the 15116 # variables and quote the copies for generation of the libtool script. 15117 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15118 SED SHELL STRIP \ 15119 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15120 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15121 deplibs_check_method reload_flag reload_cmds need_locks \ 15122 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15123 lt_cv_sys_global_symbol_to_c_name_address \ 15124 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15125 old_postinstall_cmds old_postuninstall_cmds \ 15126 compiler_F77 \ 15127 CC_F77 \ 15128 LD_F77 \ 15129 lt_prog_compiler_wl_F77 \ 15130 lt_prog_compiler_pic_F77 \ 15131 lt_prog_compiler_static_F77 \ 15132 lt_prog_compiler_no_builtin_flag_F77 \ 15133 export_dynamic_flag_spec_F77 \ 15134 thread_safe_flag_spec_F77 \ 15135 whole_archive_flag_spec_F77 \ 15136 enable_shared_with_static_runtimes_F77 \ 15137 old_archive_cmds_F77 \ 15138 old_archive_from_new_cmds_F77 \ 15139 predep_objects_F77 \ 15140 postdep_objects_F77 \ 15141 predeps_F77 \ 15142 postdeps_F77 \ 15143 compiler_lib_search_path_F77 \ 15144 archive_cmds_F77 \ 15145 archive_expsym_cmds_F77 \ 15146 postinstall_cmds_F77 \ 15147 postuninstall_cmds_F77 \ 15148 old_archive_from_expsyms_cmds_F77 \ 15149 allow_undefined_flag_F77 \ 15150 no_undefined_flag_F77 \ 15151 export_symbols_cmds_F77 \ 15152 hardcode_libdir_flag_spec_F77 \ 15153 hardcode_libdir_flag_spec_ld_F77 \ 15154 hardcode_libdir_separator_F77 \ 15155 hardcode_automatic_F77 \ 15156 module_cmds_F77 \ 15157 module_expsym_cmds_F77 \ 15158 lt_cv_prog_compiler_c_o_F77 \ 15159 exclude_expsyms_F77 \ 15160 include_expsyms_F77; do 15161 15162 case $var in 15163 old_archive_cmds_F77 | \ 15164 old_archive_from_new_cmds_F77 | \ 15165 archive_cmds_F77 | \ 15166 archive_expsym_cmds_F77 | \ 15167 module_cmds_F77 | \ 15168 module_expsym_cmds_F77 | \ 15169 old_archive_from_expsyms_cmds_F77 | \ 15170 export_symbols_cmds_F77 | \ 15171 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15172 postinstall_cmds | postuninstall_cmds | \ 15173 old_postinstall_cmds | old_postuninstall_cmds | \ 15174 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15175 # Double-quote double-evaled strings. 15176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15177 ;; 15178 *) 15179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15180 ;; 15181 esac 15182 done 15183 15184 case $lt_echo in 15185 *'\$0 --fallback-echo"') 15186 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15187 ;; 15188 esac 15189 15190cfgfile="$ofile" 15191 15192 cat <<__EOF__ >> "$cfgfile" 15193# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15194 15195# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15196 15197# Shell to use when invoking shell scripts. 15198SHELL=$lt_SHELL 15199 15200# Whether or not to build shared libraries. 15201build_libtool_libs=$enable_shared 15202 15203# Whether or not to build static libraries. 15204build_old_libs=$enable_static 15205 15206# Whether or not to add -lc for building shared libraries. 15207build_libtool_need_lc=$archive_cmds_need_lc_F77 15208 15209# Whether or not to disallow shared libs when runtime libs are static 15210allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15211 15212# Whether or not to optimize for fast installation. 15213fast_install=$enable_fast_install 15214 15215# The host system. 15216host_alias=$host_alias 15217host=$host 15218 15219# An echo program that does not interpret backslashes. 15220echo=$lt_echo 15221 15222# The archiver. 15223AR=$lt_AR 15224AR_FLAGS=$lt_AR_FLAGS 15225 15226# A C compiler. 15227LTCC=$lt_LTCC 15228 15229# A language-specific compiler. 15230CC=$lt_compiler_F77 15231 15232# Is the compiler the GNU C compiler? 15233with_gcc=$GCC_F77 15234 15235# An ERE matcher. 15236EGREP=$lt_EGREP 15237 15238# The linker used to build libraries. 15239LD=$lt_LD_F77 15240 15241# Whether we need hard or soft links. 15242LN_S=$lt_LN_S 15243 15244# A BSD-compatible nm program. 15245NM=$lt_NM 15246 15247# A symbol stripping program 15248STRIP=$lt_STRIP 15249 15250# Used to examine libraries when file_magic_cmd begins "file" 15251MAGIC_CMD=$MAGIC_CMD 15252 15253# Used on cygwin: DLL creation program. 15254DLLTOOL="$DLLTOOL" 15255 15256# Used on cygwin: object dumper. 15257OBJDUMP="$OBJDUMP" 15258 15259# Used on cygwin: assembler. 15260AS="$AS" 15261 15262# The name of the directory that contains temporary libtool files. 15263objdir=$objdir 15264 15265# How to create reloadable object files. 15266reload_flag=$lt_reload_flag 15267reload_cmds=$lt_reload_cmds 15268 15269# How to pass a linker flag through the compiler. 15270wl=$lt_lt_prog_compiler_wl_F77 15271 15272# Object file suffix (normally "o"). 15273objext="$ac_objext" 15274 15275# Old archive suffix (normally "a"). 15276libext="$libext" 15277 15278# Shared library suffix (normally ".so"). 15279shrext_cmds='$shrext_cmds' 15280 15281# Executable file suffix (normally ""). 15282exeext="$exeext" 15283 15284# Additional compiler flags for building library objects. 15285pic_flag=$lt_lt_prog_compiler_pic_F77 15286pic_mode=$pic_mode 15287 15288# What is the maximum length of a command? 15289max_cmd_len=$lt_cv_sys_max_cmd_len 15290 15291# Does compiler simultaneously support -c and -o options? 15292compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15293 15294# Must we lock files when doing compilation ? 15295need_locks=$lt_need_locks 15296 15297# Do we need the lib prefix for modules? 15298need_lib_prefix=$need_lib_prefix 15299 15300# Do we need a version for libraries? 15301need_version=$need_version 15302 15303# Whether dlopen is supported. 15304dlopen_support=$enable_dlopen 15305 15306# Whether dlopen of programs is supported. 15307dlopen_self=$enable_dlopen_self 15308 15309# Whether dlopen of statically linked programs is supported. 15310dlopen_self_static=$enable_dlopen_self_static 15311 15312# Compiler flag to prevent dynamic linking. 15313link_static_flag=$lt_lt_prog_compiler_static_F77 15314 15315# Compiler flag to turn off builtin functions. 15316no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15317 15318# Compiler flag to allow reflexive dlopens. 15319export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15320 15321# Compiler flag to generate shared objects directly from archives. 15322whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15323 15324# Compiler flag to generate thread-safe objects. 15325thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15326 15327# Library versioning type. 15328version_type=$version_type 15329 15330# Format of library name prefix. 15331libname_spec=$lt_libname_spec 15332 15333# List of archive names. First name is the real one, the rest are links. 15334# The last name is the one that the linker finds with -lNAME. 15335library_names_spec=$lt_library_names_spec 15336 15337# The coded name of the library, if different from the real name. 15338soname_spec=$lt_soname_spec 15339 15340# Commands used to build and install an old-style archive. 15341RANLIB=$lt_RANLIB 15342old_archive_cmds=$lt_old_archive_cmds_F77 15343old_postinstall_cmds=$lt_old_postinstall_cmds 15344old_postuninstall_cmds=$lt_old_postuninstall_cmds 15345 15346# Create an old-style archive from a shared archive. 15347old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15348 15349# Create a temporary old-style archive to link instead of a shared archive. 15350old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15351 15352# Commands used to build and install a shared archive. 15353archive_cmds=$lt_archive_cmds_F77 15354archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15355postinstall_cmds=$lt_postinstall_cmds 15356postuninstall_cmds=$lt_postuninstall_cmds 15357 15358# Commands used to build a loadable module (assumed same as above if empty) 15359module_cmds=$lt_module_cmds_F77 15360module_expsym_cmds=$lt_module_expsym_cmds_F77 15361 15362# Commands to strip libraries. 15363old_striplib=$lt_old_striplib 15364striplib=$lt_striplib 15365 15366# Dependencies to place before the objects being linked to create a 15367# shared library. 15368predep_objects=$lt_predep_objects_F77 15369 15370# Dependencies to place after the objects being linked to create a 15371# shared library. 15372postdep_objects=$lt_postdep_objects_F77 15373 15374# Dependencies to place before the objects being linked to create a 15375# shared library. 15376predeps=$lt_predeps_F77 15377 15378# Dependencies to place after the objects being linked to create a 15379# shared library. 15380postdeps=$lt_postdeps_F77 15381 15382# The library search path used internally by the compiler when linking 15383# a shared library. 15384compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15385 15386# Method to check whether dependent libraries are shared objects. 15387deplibs_check_method=$lt_deplibs_check_method 15388 15389# Command to use when deplibs_check_method == file_magic. 15390file_magic_cmd=$lt_file_magic_cmd 15391 15392# Flag that allows shared libraries with undefined symbols to be built. 15393allow_undefined_flag=$lt_allow_undefined_flag_F77 15394 15395# Flag that forces no undefined symbols. 15396no_undefined_flag=$lt_no_undefined_flag_F77 15397 15398# Commands used to finish a libtool library installation in a directory. 15399finish_cmds=$lt_finish_cmds 15400 15401# Same as above, but a single script fragment to be evaled but not shown. 15402finish_eval=$lt_finish_eval 15403 15404# Take the output of nm and produce a listing of raw symbols and C names. 15405global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15406 15407# Transform the output of nm in a proper C declaration 15408global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15409 15410# Transform the output of nm in a C name address pair 15411global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15412 15413# This is the shared library runtime path variable. 15414runpath_var=$runpath_var 15415 15416# This is the shared library path variable. 15417shlibpath_var=$shlibpath_var 15418 15419# Is shlibpath searched before the hard-coded library search path? 15420shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15421 15422# How to hardcode a shared library path into an executable. 15423hardcode_action=$hardcode_action_F77 15424 15425# Whether we should hardcode library paths into libraries. 15426hardcode_into_libs=$hardcode_into_libs 15427 15428# Flag to hardcode \$libdir into a binary during linking. 15429# This must work even if \$libdir does not exist. 15430hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15431 15432# If ld is used when linking, flag to hardcode \$libdir into 15433# a binary during linking. This must work even if \$libdir does 15434# not exist. 15435hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15436 15437# Whether we need a single -rpath flag with a separated argument. 15438hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15439 15440# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15441# resulting binary. 15442hardcode_direct=$hardcode_direct_F77 15443 15444# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15445# resulting binary. 15446hardcode_minus_L=$hardcode_minus_L_F77 15447 15448# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15449# the resulting binary. 15450hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15451 15452# Set to yes if building a shared library automatically hardcodes DIR into the library 15453# and all subsequent libraries and executables linked against it. 15454hardcode_automatic=$hardcode_automatic_F77 15455 15456# Variables whose values should be saved in libtool wrapper scripts and 15457# restored at relink time. 15458variables_saved_for_relink="$variables_saved_for_relink" 15459 15460# Whether libtool must link a program against all its dependency libraries. 15461link_all_deplibs=$link_all_deplibs_F77 15462 15463# Compile-time system search path for libraries 15464sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15465 15466# Run-time system search path for libraries 15467sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15468 15469# Fix the shell variable \$srcfile for the compiler. 15470fix_srcfile_path="$fix_srcfile_path_F77" 15471 15472# Set to yes if exported symbols are required. 15473always_export_symbols=$always_export_symbols_F77 15474 15475# The commands to list exported symbols. 15476export_symbols_cmds=$lt_export_symbols_cmds_F77 15477 15478# The commands to extract the exported symbol list from a shared archive. 15479extract_expsyms_cmds=$lt_extract_expsyms_cmds 15480 15481# Symbols that should not be listed in the preloaded symbols. 15482exclude_expsyms=$lt_exclude_expsyms_F77 15483 15484# Symbols that must always be exported. 15485include_expsyms=$lt_include_expsyms_F77 15486 15487# ### END LIBTOOL TAG CONFIG: $tagname 15488 15489__EOF__ 15490 15491 15492else 15493 # If there is no Makefile yet, we rely on a make rule to execute 15494 # `config.status --recheck' to rerun these tests and create the 15495 # libtool script then. 15496 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15497 if test -f "$ltmain_in"; then 15498 test -f Makefile && make "$ltmain" 15499 fi 15500fi 15501 15502 15503ac_ext=c 15504ac_cpp='$CPP $CPPFLAGS' 15505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15507ac_compiler_gnu=$ac_cv_c_compiler_gnu 15508 15509CC="$lt_save_CC" 15510 15511 else 15512 tagname="" 15513 fi 15514 ;; 15515 15516 GCJ) 15517 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15518 15519 15520 15521# Source file extension for Java test sources. 15522ac_ext=java 15523 15524# Object file extension for compiled Java test sources. 15525objext=o 15526objext_GCJ=$objext 15527 15528# Code to be used in simple compile tests 15529lt_simple_compile_test_code="class foo {}\n" 15530 15531# Code to be used in simple link tests 15532lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 15533 15534# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15535 15536# If no C compiler was specified, use CC. 15537LTCC=${LTCC-"$CC"} 15538 15539# Allow CC to be a program name with arguments. 15540compiler=$CC 15541 15542 15543# Allow CC to be a program name with arguments. 15544lt_save_CC="$CC" 15545CC=${GCJ-"gcj"} 15546compiler=$CC 15547compiler_GCJ=$CC 15548 15549# GCJ did not exist at the time GCC didn't implicitly link libc in. 15550archive_cmds_need_lc_GCJ=no 15551 15552 15553lt_prog_compiler_no_builtin_flag_GCJ= 15554 15555if test "$GCC" = yes; then 15556 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15557 15558 15559echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15560echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15561if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15562 echo $ECHO_N "(cached) $ECHO_C" >&6 15563else 15564 lt_cv_prog_compiler_rtti_exceptions=no 15565 ac_outfile=conftest.$ac_objext 15566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15567 lt_compiler_flag="-fno-rtti -fno-exceptions" 15568 # Insert the option either (1) after the last *FLAGS variable, or 15569 # (2) before a word containing "conftest.", or (3) at the end. 15570 # Note that $ac_compile itself does not contain backslashes and begins 15571 # with a dollar sign (not a hyphen), so the echo should work correctly. 15572 # The option is referenced via a variable to avoid confusing sed. 15573 lt_compile=`echo "$ac_compile" | $SED \ 15574 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15576 -e 's:$: $lt_compiler_flag:'` 15577 (eval echo "\"\$as_me:15577: $lt_compile\"" >&5) 15578 (eval "$lt_compile" 2>conftest.err) 15579 ac_status=$? 15580 cat conftest.err >&5 15581 echo "$as_me:15581: \$? = $ac_status" >&5 15582 if (exit $ac_status) && test -s "$ac_outfile"; then 15583 # The compiler can only warn and ignore the option if not recognized 15584 # So say no if there are warnings 15585 if test ! -s conftest.err; then 15586 lt_cv_prog_compiler_rtti_exceptions=yes 15587 fi 15588 fi 15589 $rm conftest* 15590 15591fi 15592echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15593echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15594 15595if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15596 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15597else 15598 : 15599fi 15600 15601fi 15602 15603lt_prog_compiler_wl_GCJ= 15604lt_prog_compiler_pic_GCJ= 15605lt_prog_compiler_static_GCJ= 15606 15607echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15608echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15609 15610 if test "$GCC" = yes; then 15611 lt_prog_compiler_wl_GCJ='-Wl,' 15612 lt_prog_compiler_static_GCJ='-static' 15613 15614 case $host_os in 15615 aix*) 15616 # All AIX code is PIC. 15617 if test "$host_cpu" = ia64; then 15618 # AIX 5 now supports IA64 processor 15619 lt_prog_compiler_static_GCJ='-Bstatic' 15620 fi 15621 ;; 15622 15623 amigaos*) 15624 # FIXME: we need at least 68020 code to build shared libraries, but 15625 # adding the `-m68020' flag to GCC prevents building anything better, 15626 # like `-m68040'. 15627 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15628 ;; 15629 15630 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15631 # PIC is the default for these OSes. 15632 ;; 15633 15634 mingw* | pw32* | os2*) 15635 # This hack is so that the source file can tell whether it is being 15636 # built for inclusion in a dll (and should export symbols for example). 15637 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15638 ;; 15639 15640 darwin* | rhapsody*) 15641 # PIC is the default on this platform 15642 # Common symbols not allowed in MH_DYLIB files 15643 lt_prog_compiler_pic_GCJ='-fno-common' 15644 ;; 15645 15646 msdosdjgpp*) 15647 # Just because we use GCC doesn't mean we suddenly get shared libraries 15648 # on systems that don't support them. 15649 lt_prog_compiler_can_build_shared_GCJ=no 15650 enable_shared=no 15651 ;; 15652 15653 sysv4*MP*) 15654 if test -d /usr/nec; then 15655 lt_prog_compiler_pic_GCJ=-Kconform_pic 15656 fi 15657 ;; 15658 15659 hpux*) 15660 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15661 # not for PA HP-UX. 15662 case "$host_cpu" in 15663 hppa*64*|ia64*) 15664 # +Z the default 15665 ;; 15666 *) 15667 lt_prog_compiler_pic_GCJ='-fPIC' 15668 ;; 15669 esac 15670 ;; 15671 15672 *) 15673 lt_prog_compiler_pic_GCJ='-fPIC' 15674 ;; 15675 esac 15676 else 15677 # PORTME Check for flag to pass linker flags through the system compiler. 15678 case $host_os in 15679 aix*) 15680 lt_prog_compiler_wl_GCJ='-Wl,' 15681 if test "$host_cpu" = ia64; then 15682 # AIX 5 now supports IA64 processor 15683 lt_prog_compiler_static_GCJ='-Bstatic' 15684 else 15685 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15686 fi 15687 ;; 15688 15689 mingw* | pw32* | os2*) 15690 # This hack is so that the source file can tell whether it is being 15691 # built for inclusion in a dll (and should export symbols for example). 15692 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15693 ;; 15694 15695 hpux9* | hpux10* | hpux11*) 15696 lt_prog_compiler_wl_GCJ='-Wl,' 15697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15698 # not for PA HP-UX. 15699 case "$host_cpu" in 15700 hppa*64*|ia64*) 15701 # +Z the default 15702 ;; 15703 *) 15704 lt_prog_compiler_pic_GCJ='+Z' 15705 ;; 15706 esac 15707 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15708 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15709 ;; 15710 15711 irix5* | irix6* | nonstopux*) 15712 lt_prog_compiler_wl_GCJ='-Wl,' 15713 # PIC (with -KPIC) is the default. 15714 lt_prog_compiler_static_GCJ='-non_shared' 15715 ;; 15716 15717 newsos6) 15718 lt_prog_compiler_pic_GCJ='-KPIC' 15719 lt_prog_compiler_static_GCJ='-Bstatic' 15720 ;; 15721 15722 linux*) 15723 case $CC in 15724 icc* | ecc*) 15725 lt_prog_compiler_wl_GCJ='-Wl,' 15726 lt_prog_compiler_pic_GCJ='-KPIC' 15727 lt_prog_compiler_static_GCJ='-static' 15728 ;; 15729 ccc*) 15730 lt_prog_compiler_wl_GCJ='-Wl,' 15731 # All Alpha code is PIC. 15732 lt_prog_compiler_static_GCJ='-non_shared' 15733 ;; 15734 esac 15735 ;; 15736 15737 osf3* | osf4* | osf5*) 15738 lt_prog_compiler_wl_GCJ='-Wl,' 15739 # All OSF/1 code is PIC. 15740 lt_prog_compiler_static_GCJ='-non_shared' 15741 ;; 15742 15743 sco3.2v5*) 15744 lt_prog_compiler_pic_GCJ='-Kpic' 15745 lt_prog_compiler_static_GCJ='-dn' 15746 ;; 15747 15748 solaris*) 15749 lt_prog_compiler_wl_GCJ='-Wl,' 15750 lt_prog_compiler_pic_GCJ='-KPIC' 15751 lt_prog_compiler_static_GCJ='-Bstatic' 15752 ;; 15753 15754 sunos4*) 15755 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15756 lt_prog_compiler_pic_GCJ='-PIC' 15757 lt_prog_compiler_static_GCJ='-Bstatic' 15758 ;; 15759 15760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15761 lt_prog_compiler_wl_GCJ='-Wl,' 15762 lt_prog_compiler_pic_GCJ='-KPIC' 15763 lt_prog_compiler_static_GCJ='-Bstatic' 15764 ;; 15765 15766 sysv4*MP*) 15767 if test -d /usr/nec ;then 15768 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15769 lt_prog_compiler_static_GCJ='-Bstatic' 15770 fi 15771 ;; 15772 15773 uts4*) 15774 lt_prog_compiler_pic_GCJ='-pic' 15775 lt_prog_compiler_static_GCJ='-Bstatic' 15776 ;; 15777 15778 *) 15779 lt_prog_compiler_can_build_shared_GCJ=no 15780 ;; 15781 esac 15782 fi 15783 15784echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15785echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15786 15787# 15788# Check to make sure the PIC flag actually works. 15789# 15790if test -n "$lt_prog_compiler_pic_GCJ"; then 15791 15792echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15793echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15794if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15795 echo $ECHO_N "(cached) $ECHO_C" >&6 15796else 15797 lt_prog_compiler_pic_works_GCJ=no 15798 ac_outfile=conftest.$ac_objext 15799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15800 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15801 # Insert the option either (1) after the last *FLAGS variable, or 15802 # (2) before a word containing "conftest.", or (3) at the end. 15803 # Note that $ac_compile itself does not contain backslashes and begins 15804 # with a dollar sign (not a hyphen), so the echo should work correctly. 15805 # The option is referenced via a variable to avoid confusing sed. 15806 lt_compile=`echo "$ac_compile" | $SED \ 15807 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15809 -e 's:$: $lt_compiler_flag:'` 15810 (eval echo "\"\$as_me:15810: $lt_compile\"" >&5) 15811 (eval "$lt_compile" 2>conftest.err) 15812 ac_status=$? 15813 cat conftest.err >&5 15814 echo "$as_me:15814: \$? = $ac_status" >&5 15815 if (exit $ac_status) && test -s "$ac_outfile"; then 15816 # The compiler can only warn and ignore the option if not recognized 15817 # So say no if there are warnings 15818 if test ! -s conftest.err; then 15819 lt_prog_compiler_pic_works_GCJ=yes 15820 fi 15821 fi 15822 $rm conftest* 15823 15824fi 15825echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15826echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15827 15828if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15829 case $lt_prog_compiler_pic_GCJ in 15830 "" | " "*) ;; 15831 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15832 esac 15833else 15834 lt_prog_compiler_pic_GCJ= 15835 lt_prog_compiler_can_build_shared_GCJ=no 15836fi 15837 15838fi 15839case "$host_os" in 15840 # For platforms which do not support PIC, -DPIC is meaningless: 15841 *djgpp*) 15842 lt_prog_compiler_pic_GCJ= 15843 ;; 15844 *) 15845 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15846 ;; 15847esac 15848 15849echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15850echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15851if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15852 echo $ECHO_N "(cached) $ECHO_C" >&6 15853else 15854 lt_cv_prog_compiler_c_o_GCJ=no 15855 $rm -r conftest 2>/dev/null 15856 mkdir conftest 15857 cd conftest 15858 mkdir out 15859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15860 15861 lt_compiler_flag="-o out/conftest2.$ac_objext" 15862 # Insert the option either (1) after the last *FLAGS variable, or 15863 # (2) before a word containing "conftest.", or (3) at the end. 15864 # Note that $ac_compile itself does not contain backslashes and begins 15865 # with a dollar sign (not a hyphen), so the echo should work correctly. 15866 lt_compile=`echo "$ac_compile" | $SED \ 15867 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15869 -e 's:$: $lt_compiler_flag:'` 15870 (eval echo "\"\$as_me:15870: $lt_compile\"" >&5) 15871 (eval "$lt_compile" 2>out/conftest.err) 15872 ac_status=$? 15873 cat out/conftest.err >&5 15874 echo "$as_me:15874: \$? = $ac_status" >&5 15875 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15876 then 15877 # The compiler can only warn and ignore the option if not recognized 15878 # So say no if there are warnings 15879 if test ! -s out/conftest.err; then 15880 lt_cv_prog_compiler_c_o_GCJ=yes 15881 fi 15882 fi 15883 chmod u+w . 15884 $rm conftest* 15885 # SGI C++ compiler will create directory out/ii_files/ for 15886 # template instantiation 15887 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15888 $rm out/* && rmdir out 15889 cd .. 15890 rmdir conftest 15891 $rm conftest* 15892 15893fi 15894echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15895echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15896 15897 15898hard_links="nottested" 15899if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15900 # do not overwrite the value of need_locks provided by the user 15901 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15902echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15903 hard_links=yes 15904 $rm conftest* 15905 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15906 touch conftest.a 15907 ln conftest.a conftest.b 2>&5 || hard_links=no 15908 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15909 echo "$as_me:$LINENO: result: $hard_links" >&5 15910echo "${ECHO_T}$hard_links" >&6 15911 if test "$hard_links" = no; then 15912 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15913echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15914 need_locks=warn 15915 fi 15916else 15917 need_locks=no 15918fi 15919 15920echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15921echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15922 15923 runpath_var= 15924 allow_undefined_flag_GCJ= 15925 enable_shared_with_static_runtimes_GCJ=no 15926 archive_cmds_GCJ= 15927 archive_expsym_cmds_GCJ= 15928 old_archive_From_new_cmds_GCJ= 15929 old_archive_from_expsyms_cmds_GCJ= 15930 export_dynamic_flag_spec_GCJ= 15931 whole_archive_flag_spec_GCJ= 15932 thread_safe_flag_spec_GCJ= 15933 hardcode_libdir_flag_spec_GCJ= 15934 hardcode_libdir_flag_spec_ld_GCJ= 15935 hardcode_libdir_separator_GCJ= 15936 hardcode_direct_GCJ=no 15937 hardcode_minus_L_GCJ=no 15938 hardcode_shlibpath_var_GCJ=unsupported 15939 link_all_deplibs_GCJ=unknown 15940 hardcode_automatic_GCJ=no 15941 module_cmds_GCJ= 15942 module_expsym_cmds_GCJ= 15943 always_export_symbols_GCJ=no 15944 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15945 # include_expsyms should be a list of space-separated symbols to be *always* 15946 # included in the symbol list 15947 include_expsyms_GCJ= 15948 # exclude_expsyms can be an extended regexp of symbols to exclude 15949 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15950 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15951 # as well as any symbol that contains `d'. 15952 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15953 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15954 # platforms (ab)use it in PIC code, but their linkers get confused if 15955 # the symbol is explicitly referenced. Since portable code cannot 15956 # rely on this symbol name, it's probably fine to never include it in 15957 # preloaded symbol tables. 15958 extract_expsyms_cmds= 15959 15960 case $host_os in 15961 cygwin* | mingw* | pw32*) 15962 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15963 # When not using gcc, we currently assume that we are using 15964 # Microsoft Visual C++. 15965 if test "$GCC" != yes; then 15966 with_gnu_ld=no 15967 fi 15968 ;; 15969 openbsd*) 15970 with_gnu_ld=no 15971 ;; 15972 esac 15973 15974 ld_shlibs_GCJ=yes 15975 if test "$with_gnu_ld" = yes; then 15976 # If archive_cmds runs LD, not CC, wlarc should be empty 15977 wlarc='${wl}' 15978 15979 # See if GNU ld supports shared libraries. 15980 case $host_os in 15981 aix3* | aix4* | aix5*) 15982 # On AIX/PPC, the GNU linker is very broken 15983 if test "$host_cpu" != ia64; then 15984 ld_shlibs_GCJ=no 15985 cat <<EOF 1>&2 15986 15987*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15988*** to be unable to reliably create shared libraries on AIX. 15989*** Therefore, libtool is disabling shared libraries support. If you 15990*** really care for shared libraries, you may want to modify your PATH 15991*** so that a non-GNU linker is found, and then restart. 15992 15993EOF 15994 fi 15995 ;; 15996 15997 amigaos*) 15998 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)' 15999 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16000 hardcode_minus_L_GCJ=yes 16001 16002 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16003 # that the semantics of dynamic libraries on AmigaOS, at least up 16004 # to version 4, is to share data among multiple programs linked 16005 # with the same dynamic library. Since this doesn't match the 16006 # behavior of shared libraries on other platforms, we can't use 16007 # them. 16008 ld_shlibs_GCJ=no 16009 ;; 16010 16011 beos*) 16012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16013 allow_undefined_flag_GCJ=unsupported 16014 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16015 # support --undefined. This deserves some investigation. FIXME 16016 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16017 else 16018 ld_shlibs_GCJ=no 16019 fi 16020 ;; 16021 16022 cygwin* | mingw* | pw32*) 16023 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16024 # as there is no search path for DLLs. 16025 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16026 allow_undefined_flag_GCJ=unsupported 16027 always_export_symbols_GCJ=no 16028 enable_shared_with_static_runtimes_GCJ=yes 16029 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16030 16031 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16032 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16033 # If the export-symbols file already is a .def file (1st line 16034 # is EXPORTS), use it as is; otherwise, prepend... 16035 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16036 cp $export_symbols $output_objdir/$soname.def; 16037 else 16038 echo EXPORTS > $output_objdir/$soname.def; 16039 cat $export_symbols >> $output_objdir/$soname.def; 16040 fi~ 16041 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16042 else 16043 ld_shlibs=no 16044 fi 16045 ;; 16046 16047 netbsd*) 16048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16049 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16050 wlarc= 16051 else 16052 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16053 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16054 fi 16055 ;; 16056 16057 solaris* | sysv5*) 16058 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16059 ld_shlibs_GCJ=no 16060 cat <<EOF 1>&2 16061 16062*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16063*** create shared libraries on Solaris systems. Therefore, libtool 16064*** is disabling shared libraries support. We urge you to upgrade GNU 16065*** binutils to release 2.9.1 or newer. Another option is to modify 16066*** your PATH or compiler configuration so that the native linker is 16067*** used, and then restart. 16068 16069EOF 16070 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16071 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16072 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16073 else 16074 ld_shlibs_GCJ=no 16075 fi 16076 ;; 16077 16078 sunos4*) 16079 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16080 wlarc= 16081 hardcode_direct_GCJ=yes 16082 hardcode_shlibpath_var_GCJ=no 16083 ;; 16084 16085 linux*) 16086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16087 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16088 archive_cmds_GCJ="$tmp_archive_cmds" 16089 supports_anon_versioning=no 16090 case `$LD -v 2>/dev/null` in 16091 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16092 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16093 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16094 *\ 2.11.*) ;; # other 2.11 versions 16095 *) supports_anon_versioning=yes ;; 16096 esac 16097 if test $supports_anon_versioning = yes; then 16098 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16099cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16100$echo "local: *; };" >> $output_objdir/$libname.ver~ 16101 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16102 else 16103 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 16104 fi 16105 else 16106 ld_shlibs_GCJ=no 16107 fi 16108 ;; 16109 16110 *) 16111 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16112 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16113 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16114 else 16115 ld_shlibs_GCJ=no 16116 fi 16117 ;; 16118 esac 16119 16120 if test "$ld_shlibs_GCJ" = yes; then 16121 runpath_var=LD_RUN_PATH 16122 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16123 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16124 # ancient GNU ld didn't support --whole-archive et. al. 16125 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16126 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16127 else 16128 whole_archive_flag_spec_GCJ= 16129 fi 16130 fi 16131 else 16132 # PORTME fill in a description of your system's linker (not GNU ld) 16133 case $host_os in 16134 aix3*) 16135 allow_undefined_flag_GCJ=unsupported 16136 always_export_symbols_GCJ=yes 16137 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' 16138 # Note: this linker hardcodes the directories in LIBPATH if there 16139 # are no directories specified by -L. 16140 hardcode_minus_L_GCJ=yes 16141 if test "$GCC" = yes && test -z "$link_static_flag"; then 16142 # Neither direct hardcoding nor static linking is supported with a 16143 # broken collect2. 16144 hardcode_direct_GCJ=unsupported 16145 fi 16146 ;; 16147 16148 aix4* | aix5*) 16149 if test "$host_cpu" = ia64; then 16150 # On IA64, the linker does run time linking by default, so we don't 16151 # have to do anything special. 16152 aix_use_runtimelinking=no 16153 exp_sym_flag='-Bexport' 16154 no_entry_flag="" 16155 else 16156 # If we're using GNU nm, then we don't want the "-C" option. 16157 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16158 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16159 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' 16160 else 16161 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' 16162 fi 16163 aix_use_runtimelinking=no 16164 16165 # Test if we are trying to use run time linking or normal 16166 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16167 # need to do runtime linking. 16168 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16169 for ld_flag in $LDFLAGS; do 16170 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16171 aix_use_runtimelinking=yes 16172 break 16173 fi 16174 done 16175 esac 16176 16177 exp_sym_flag='-bexport' 16178 no_entry_flag='-bnoentry' 16179 fi 16180 16181 # When large executables or shared objects are built, AIX ld can 16182 # have problems creating the table of contents. If linking a library 16183 # or program results in "error TOC overflow" add -mminimal-toc to 16184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16186 16187 archive_cmds_GCJ='' 16188 hardcode_direct_GCJ=yes 16189 hardcode_libdir_separator_GCJ=':' 16190 link_all_deplibs_GCJ=yes 16191 16192 if test "$GCC" = yes; then 16193 case $host_os in aix4.012|aix4.012.*) 16194 # We only want to do this on AIX 4.2 and lower, the check 16195 # below for broken collect2 doesn't work under 4.3+ 16196 collect2name=`${CC} -print-prog-name=collect2` 16197 if test -f "$collect2name" && \ 16198 strings "$collect2name" | grep resolve_lib_name >/dev/null 16199 then 16200 # We have reworked collect2 16201 hardcode_direct_GCJ=yes 16202 else 16203 # We have old collect2 16204 hardcode_direct_GCJ=unsupported 16205 # It fails to find uninstalled libraries when the uninstalled 16206 # path is not listed in the libpath. Setting hardcode_minus_L 16207 # to unsupported forces relinking 16208 hardcode_minus_L_GCJ=yes 16209 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16210 hardcode_libdir_separator_GCJ= 16211 fi 16212 esac 16213 shared_flag='-shared' 16214 else 16215 # not using gcc 16216 if test "$host_cpu" = ia64; then 16217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16218 # chokes on -Wl,-G. The following line is correct: 16219 shared_flag='-G' 16220 else 16221 if test "$aix_use_runtimelinking" = yes; then 16222 shared_flag='${wl}-G' 16223 else 16224 shared_flag='${wl}-bM:SRE' 16225 fi 16226 fi 16227 fi 16228 16229 # It seems that -bexpall does not export symbols beginning with 16230 # underscore (_), so it is better to generate a list of symbols to export. 16231 always_export_symbols_GCJ=yes 16232 if test "$aix_use_runtimelinking" = yes; then 16233 # Warning - without using the other runtime loading flags (-brtl), 16234 # -berok will link without error, but may produce a broken library. 16235 allow_undefined_flag_GCJ='-berok' 16236 # Determine the default libpath from the value encoded in an empty executable. 16237 cat >conftest.$ac_ext <<_ACEOF 16238/* confdefs.h. */ 16239_ACEOF 16240cat confdefs.h >>conftest.$ac_ext 16241cat >>conftest.$ac_ext <<_ACEOF 16242/* end confdefs.h. */ 16243 16244int 16245main () 16246{ 16247 16248 ; 16249 return 0; 16250} 16251_ACEOF 16252rm -f conftest.$ac_objext conftest$ac_exeext 16253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16254 (eval $ac_link) 2>conftest.er1 16255 ac_status=$? 16256 grep -v '^ *+' conftest.er1 >conftest.err 16257 rm -f conftest.er1 16258 cat conftest.err >&5 16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16260 (exit $ac_status); } && 16261 { ac_try='test -z "$ac_c_werror_flag" 16262 || test ! -s conftest.err' 16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16264 (eval $ac_try) 2>&5 16265 ac_status=$? 16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16267 (exit $ac_status); }; } && 16268 { ac_try='test -s conftest$ac_exeext' 16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16270 (eval $ac_try) 2>&5 16271 ac_status=$? 16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16273 (exit $ac_status); }; }; then 16274 16275aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16276}'` 16277# Check for a 64-bit object if we didn't find anything. 16278if 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; } 16279}'`; fi 16280else 16281 echo "$as_me: failed program was:" >&5 16282sed 's/^/| /' conftest.$ac_ext >&5 16283 16284fi 16285rm -f conftest.err conftest.$ac_objext \ 16286 conftest$ac_exeext conftest.$ac_ext 16287if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16288 16289 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16290 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16291 else 16292 if test "$host_cpu" = ia64; then 16293 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16294 allow_undefined_flag_GCJ="-z nodefs" 16295 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 16296 else 16297 # Determine the default libpath from the value encoded in an empty executable. 16298 cat >conftest.$ac_ext <<_ACEOF 16299/* confdefs.h. */ 16300_ACEOF 16301cat confdefs.h >>conftest.$ac_ext 16302cat >>conftest.$ac_ext <<_ACEOF 16303/* end confdefs.h. */ 16304 16305int 16306main () 16307{ 16308 16309 ; 16310 return 0; 16311} 16312_ACEOF 16313rm -f conftest.$ac_objext conftest$ac_exeext 16314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16315 (eval $ac_link) 2>conftest.er1 16316 ac_status=$? 16317 grep -v '^ *+' conftest.er1 >conftest.err 16318 rm -f conftest.er1 16319 cat conftest.err >&5 16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16321 (exit $ac_status); } && 16322 { ac_try='test -z "$ac_c_werror_flag" 16323 || test ! -s conftest.err' 16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16325 (eval $ac_try) 2>&5 16326 ac_status=$? 16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16328 (exit $ac_status); }; } && 16329 { ac_try='test -s conftest$ac_exeext' 16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16331 (eval $ac_try) 2>&5 16332 ac_status=$? 16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16334 (exit $ac_status); }; }; then 16335 16336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16337}'` 16338# Check for a 64-bit object if we didn't find anything. 16339if 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; } 16340}'`; fi 16341else 16342 echo "$as_me: failed program was:" >&5 16343sed 's/^/| /' conftest.$ac_ext >&5 16344 16345fi 16346rm -f conftest.err conftest.$ac_objext \ 16347 conftest$ac_exeext conftest.$ac_ext 16348if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16349 16350 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16351 # Warning - without using the other run time loading flags, 16352 # -berok will link without error, but may produce a broken library. 16353 no_undefined_flag_GCJ=' ${wl}-bernotok' 16354 allow_undefined_flag_GCJ=' ${wl}-berok' 16355 # -bexpall does not export symbols beginning with underscore (_) 16356 always_export_symbols_GCJ=yes 16357 # Exported symbols can be pulled into shared objects from archives 16358 whole_archive_flag_spec_GCJ=' ' 16359 archive_cmds_need_lc_GCJ=yes 16360 # This is similar to how AIX traditionally builds it's shared libraries. 16361 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16362 fi 16363 fi 16364 ;; 16365 16366 amigaos*) 16367 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)' 16368 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16369 hardcode_minus_L_GCJ=yes 16370 # see comment about different semantics on the GNU ld section 16371 ld_shlibs_GCJ=no 16372 ;; 16373 16374 bsdi4*) 16375 export_dynamic_flag_spec_GCJ=-rdynamic 16376 ;; 16377 16378 cygwin* | mingw* | pw32*) 16379 # When not using gcc, we currently assume that we are using 16380 # Microsoft Visual C++. 16381 # hardcode_libdir_flag_spec is actually meaningless, as there is 16382 # no search path for DLLs. 16383 hardcode_libdir_flag_spec_GCJ=' ' 16384 allow_undefined_flag_GCJ=unsupported 16385 # Tell ltmain to make .lib files, not .a files. 16386 libext=lib 16387 # Tell ltmain to make .dll files, not .so files. 16388 shrext_cmds=".dll" 16389 # FIXME: Setting linknames here is a bad hack. 16390 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16391 # The linker will automatically build a .lib file if we build a DLL. 16392 old_archive_From_new_cmds_GCJ='true' 16393 # FIXME: Should let the user specify the lib program. 16394 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16395 fix_srcfile_path='`cygpath -w "$srcfile"`' 16396 enable_shared_with_static_runtimes_GCJ=yes 16397 ;; 16398 16399 darwin* | rhapsody*) 16400 if test "$GXX" = yes ; then 16401 archive_cmds_need_lc_GCJ=no 16402 case "$host_os" in 16403 rhapsody* | darwin1.[012]) 16404 allow_undefined_flag_GCJ='-undefined suppress' 16405 ;; 16406 *) # Darwin 1.3 on 16407 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16408 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16409 else 16410 case ${MACOSX_DEPLOYMENT_TARGET} in 16411 10.[012]) 16412 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16413 ;; 16414 10.*) 16415 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 16416 ;; 16417 esac 16418 fi 16419 ;; 16420 esac 16421 lt_int_apple_cc_single_mod=no 16422 output_verbose_link_cmd='echo' 16423 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 16424 lt_int_apple_cc_single_mod=yes 16425 fi 16426 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16427 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16428 else 16429 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16430 fi 16431 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16432 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16433 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16434 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16435 else 16436 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16437 fi 16438 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}' 16439 hardcode_direct_GCJ=no 16440 hardcode_automatic_GCJ=yes 16441 hardcode_shlibpath_var_GCJ=unsupported 16442 whole_archive_flag_spec_GCJ='-all_load $convenience' 16443 link_all_deplibs_GCJ=yes 16444 else 16445 ld_shlibs_GCJ=no 16446 fi 16447 ;; 16448 16449 dgux*) 16450 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16451 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16452 hardcode_shlibpath_var_GCJ=no 16453 ;; 16454 16455 freebsd1*) 16456 ld_shlibs_GCJ=no 16457 ;; 16458 16459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16460 # support. Future versions do this automatically, but an explicit c++rt0.o 16461 # does not break anything, and helps significantly (at the cost of a little 16462 # extra space). 16463 freebsd2.2*) 16464 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16465 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16466 hardcode_direct_GCJ=yes 16467 hardcode_shlibpath_var_GCJ=no 16468 ;; 16469 16470 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16471 freebsd2*) 16472 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16473 hardcode_direct_GCJ=yes 16474 hardcode_minus_L_GCJ=yes 16475 hardcode_shlibpath_var_GCJ=no 16476 ;; 16477 16478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16479 freebsd* | kfreebsd*-gnu) 16480 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16481 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16482 hardcode_direct_GCJ=yes 16483 hardcode_shlibpath_var_GCJ=no 16484 ;; 16485 16486 hpux9*) 16487 if test "$GCC" = yes; then 16488 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' 16489 else 16490 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' 16491 fi 16492 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16493 hardcode_libdir_separator_GCJ=: 16494 hardcode_direct_GCJ=yes 16495 16496 # hardcode_minus_L: Not really in the search PATH, 16497 # but as the default location of the library. 16498 hardcode_minus_L_GCJ=yes 16499 export_dynamic_flag_spec_GCJ='${wl}-E' 16500 ;; 16501 16502 hpux10* | hpux11*) 16503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16504 case "$host_cpu" in 16505 hppa*64*|ia64*) 16506 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16507 ;; 16508 *) 16509 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16510 ;; 16511 esac 16512 else 16513 case "$host_cpu" in 16514 hppa*64*|ia64*) 16515 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16516 ;; 16517 *) 16518 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16519 ;; 16520 esac 16521 fi 16522 if test "$with_gnu_ld" = no; then 16523 case "$host_cpu" in 16524 hppa*64*) 16525 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16526 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16527 hardcode_libdir_separator_GCJ=: 16528 hardcode_direct_GCJ=no 16529 hardcode_shlibpath_var_GCJ=no 16530 ;; 16531 ia64*) 16532 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16533 hardcode_direct_GCJ=no 16534 hardcode_shlibpath_var_GCJ=no 16535 16536 # hardcode_minus_L: Not really in the search PATH, 16537 # but as the default location of the library. 16538 hardcode_minus_L_GCJ=yes 16539 ;; 16540 *) 16541 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16542 hardcode_libdir_separator_GCJ=: 16543 hardcode_direct_GCJ=yes 16544 export_dynamic_flag_spec_GCJ='${wl}-E' 16545 16546 # hardcode_minus_L: Not really in the search PATH, 16547 # but as the default location of the library. 16548 hardcode_minus_L_GCJ=yes 16549 ;; 16550 esac 16551 fi 16552 ;; 16553 16554 irix5* | irix6* | nonstopux*) 16555 if test "$GCC" = yes; then 16556 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' 16557 else 16558 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' 16559 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16560 fi 16561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16562 hardcode_libdir_separator_GCJ=: 16563 link_all_deplibs_GCJ=yes 16564 ;; 16565 16566 netbsd*) 16567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16568 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16569 else 16570 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16571 fi 16572 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16573 hardcode_direct_GCJ=yes 16574 hardcode_shlibpath_var_GCJ=no 16575 ;; 16576 16577 newsos6) 16578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16579 hardcode_direct_GCJ=yes 16580 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16581 hardcode_libdir_separator_GCJ=: 16582 hardcode_shlibpath_var_GCJ=no 16583 ;; 16584 16585 openbsd*) 16586 hardcode_direct_GCJ=yes 16587 hardcode_shlibpath_var_GCJ=no 16588 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16589 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16590 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16591 export_dynamic_flag_spec_GCJ='${wl}-E' 16592 else 16593 case $host_os in 16594 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16595 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16596 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16597 ;; 16598 *) 16599 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16600 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16601 ;; 16602 esac 16603 fi 16604 ;; 16605 16606 os2*) 16607 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16608 hardcode_minus_L_GCJ=yes 16609 allow_undefined_flag_GCJ=unsupported 16610 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' 16611 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16612 ;; 16613 16614 osf3*) 16615 if test "$GCC" = yes; then 16616 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16617 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' 16618 else 16619 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16620 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' 16621 fi 16622 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16623 hardcode_libdir_separator_GCJ=: 16624 ;; 16625 16626 osf4* | osf5*) # as osf3* with the addition of -msym flag 16627 if test "$GCC" = yes; then 16628 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16629 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' 16630 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16631 else 16632 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16633 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' 16634 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~ 16635 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 16636 16637 # Both c and cxx compiler support -rpath directly 16638 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16639 fi 16640 hardcode_libdir_separator_GCJ=: 16641 ;; 16642 16643 sco3.2v5*) 16644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16645 hardcode_shlibpath_var_GCJ=no 16646 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16647 runpath_var=LD_RUN_PATH 16648 hardcode_runpath_var=yes 16649 ;; 16650 16651 solaris*) 16652 no_undefined_flag_GCJ=' -z text' 16653 if test "$GCC" = yes; then 16654 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16655 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16656 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16657 else 16658 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16659 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16660 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16661 fi 16662 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16663 hardcode_shlibpath_var_GCJ=no 16664 case $host_os in 16665 solaris2.[0-5] | solaris2.[0-5].*) ;; 16666 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16667 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16668 esac 16669 link_all_deplibs_GCJ=yes 16670 ;; 16671 16672 sunos4*) 16673 if test "x$host_vendor" = xsequent; then 16674 # Use $CC to link under sequent, because it throws in some extra .o 16675 # files that make .init and .fini sections work. 16676 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16677 else 16678 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16679 fi 16680 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16681 hardcode_direct_GCJ=yes 16682 hardcode_minus_L_GCJ=yes 16683 hardcode_shlibpath_var_GCJ=no 16684 ;; 16685 16686 sysv4) 16687 case $host_vendor in 16688 sni) 16689 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16690 hardcode_direct_GCJ=yes # is this really true??? 16691 ;; 16692 siemens) 16693 ## LD is ld it makes a PLAMLIB 16694 ## CC just makes a GrossModule. 16695 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16696 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16697 hardcode_direct_GCJ=no 16698 ;; 16699 motorola) 16700 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16701 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16702 ;; 16703 esac 16704 runpath_var='LD_RUN_PATH' 16705 hardcode_shlibpath_var_GCJ=no 16706 ;; 16707 16708 sysv4.3*) 16709 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16710 hardcode_shlibpath_var_GCJ=no 16711 export_dynamic_flag_spec_GCJ='-Bexport' 16712 ;; 16713 16714 sysv4*MP*) 16715 if test -d /usr/nec; then 16716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16717 hardcode_shlibpath_var_GCJ=no 16718 runpath_var=LD_RUN_PATH 16719 hardcode_runpath_var=yes 16720 ld_shlibs_GCJ=yes 16721 fi 16722 ;; 16723 16724 sysv4.2uw2*) 16725 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16726 hardcode_direct_GCJ=yes 16727 hardcode_minus_L_GCJ=no 16728 hardcode_shlibpath_var_GCJ=no 16729 hardcode_runpath_var=yes 16730 runpath_var=LD_RUN_PATH 16731 ;; 16732 16733 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16734 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16735 if test "$GCC" = yes; then 16736 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16737 else 16738 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16739 fi 16740 runpath_var='LD_RUN_PATH' 16741 hardcode_shlibpath_var_GCJ=no 16742 ;; 16743 16744 sysv5*) 16745 no_undefined_flag_GCJ=' -z text' 16746 # $CC -shared without GNU ld will not create a library from C++ 16747 # object files and a static libstdc++, better avoid it by now 16748 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16749 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16750 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16751 hardcode_libdir_flag_spec_GCJ= 16752 hardcode_shlibpath_var_GCJ=no 16753 runpath_var='LD_RUN_PATH' 16754 ;; 16755 16756 uts4*) 16757 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16758 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16759 hardcode_shlibpath_var_GCJ=no 16760 ;; 16761 16762 *) 16763 ld_shlibs_GCJ=no 16764 ;; 16765 esac 16766 fi 16767 16768echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16769echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16770test "$ld_shlibs_GCJ" = no && can_build_shared=no 16771 16772variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16773if test "$GCC" = yes; then 16774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16775fi 16776 16777# 16778# Do we need to explicitly link libc? 16779# 16780case "x$archive_cmds_need_lc_GCJ" in 16781x|xyes) 16782 # Assume -lc should be added 16783 archive_cmds_need_lc_GCJ=yes 16784 16785 if test "$enable_shared" = yes && test "$GCC" = yes; then 16786 case $archive_cmds_GCJ in 16787 *'~'*) 16788 # FIXME: we may have to deal with multi-command sequences. 16789 ;; 16790 '$CC '*) 16791 # Test whether the compiler implicitly links with -lc since on some 16792 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16793 # to ld, don't add -lc before -lgcc. 16794 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16795echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16796 $rm conftest* 16797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16798 16799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16800 (eval $ac_compile) 2>&5 16801 ac_status=$? 16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16803 (exit $ac_status); } 2>conftest.err; then 16804 soname=conftest 16805 lib=conftest 16806 libobjs=conftest.$ac_objext 16807 deplibs= 16808 wl=$lt_prog_compiler_wl_GCJ 16809 compiler_flags=-v 16810 linker_flags=-v 16811 verstring= 16812 output_objdir=. 16813 libname=conftest 16814 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16815 allow_undefined_flag_GCJ= 16816 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16817 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16818 ac_status=$? 16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16820 (exit $ac_status); } 16821 then 16822 archive_cmds_need_lc_GCJ=no 16823 else 16824 archive_cmds_need_lc_GCJ=yes 16825 fi 16826 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16827 else 16828 cat conftest.err 1>&5 16829 fi 16830 $rm conftest* 16831 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16832echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16833 ;; 16834 esac 16835 fi 16836 ;; 16837esac 16838 16839echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16840echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16841library_names_spec= 16842libname_spec='lib$name' 16843soname_spec= 16844shrext_cmds=".so" 16845postinstall_cmds= 16846postuninstall_cmds= 16847finish_cmds= 16848finish_eval= 16849shlibpath_var= 16850shlibpath_overrides_runpath=unknown 16851version_type=none 16852dynamic_linker="$host_os ld.so" 16853sys_lib_dlsearch_path_spec="/lib /usr/lib" 16854if test "$GCC" = yes; then 16855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16856 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16857 # if the path contains ";" then we assume it to be the separator 16858 # otherwise default to the standard path separator (i.e. ":") - it is 16859 # assumed that no part of a normal pathname contains ";" but that should 16860 # okay in the real world where ";" in dirpaths is itself problematic. 16861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16862 else 16863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16864 fi 16865else 16866 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16867fi 16868need_lib_prefix=unknown 16869hardcode_into_libs=no 16870 16871# when you set need_version to no, make sure it does not cause -set_version 16872# flags to be left without arguments 16873need_version=unknown 16874 16875case $host_os in 16876aix3*) 16877 version_type=linux 16878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16879 shlibpath_var=LIBPATH 16880 16881 # AIX 3 has no versioning support, so we append a major version to the name. 16882 soname_spec='${libname}${release}${shared_ext}$major' 16883 ;; 16884 16885aix4* | aix5*) 16886 version_type=linux 16887 need_lib_prefix=no 16888 need_version=no 16889 hardcode_into_libs=yes 16890 if test "$host_cpu" = ia64; then 16891 # AIX 5 supports IA64 16892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16893 shlibpath_var=LD_LIBRARY_PATH 16894 else 16895 # With GCC up to 2.95.x, collect2 would create an import file 16896 # for dependence libraries. The import file would start with 16897 # the line `#! .'. This would cause the generated library to 16898 # depend on `.', always an invalid library. This was fixed in 16899 # development snapshots of GCC prior to 3.0. 16900 case $host_os in 16901 aix4 | aix4.[01] | aix4.[01].*) 16902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16903 echo ' yes ' 16904 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16905 : 16906 else 16907 can_build_shared=no 16908 fi 16909 ;; 16910 esac 16911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16912 # soname into executable. Probably we can add versioning support to 16913 # collect2, so additional links can be useful in future. 16914 if test "$aix_use_runtimelinking" = yes; then 16915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16916 # instead of lib<name>.a to let people know that these are not 16917 # typical AIX shared libraries. 16918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16919 else 16920 # We preserve .a as extension for shared libraries through AIX4.2 16921 # and later when we are not doing run time linking. 16922 library_names_spec='${libname}${release}.a $libname.a' 16923 soname_spec='${libname}${release}${shared_ext}$major' 16924 fi 16925 shlibpath_var=LIBPATH 16926 fi 16927 ;; 16928 16929amigaos*) 16930 library_names_spec='$libname.ixlibrary $libname.a' 16931 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16932 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' 16933 ;; 16934 16935beos*) 16936 library_names_spec='${libname}${shared_ext}' 16937 dynamic_linker="$host_os ld.so" 16938 shlibpath_var=LIBRARY_PATH 16939 ;; 16940 16941bsdi4*) 16942 version_type=linux 16943 need_version=no 16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16945 soname_spec='${libname}${release}${shared_ext}$major' 16946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16947 shlibpath_var=LD_LIBRARY_PATH 16948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16950 # the default ld.so.conf also contains /usr/contrib/lib and 16951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16952 # libtool to hard-code these into programs 16953 ;; 16954 16955cygwin* | mingw* | pw32*) 16956 version_type=windows 16957 shrext_cmds=".dll" 16958 need_version=no 16959 need_lib_prefix=no 16960 16961 case $GCC,$host_os in 16962 yes,cygwin* | yes,mingw* | yes,pw32*) 16963 library_names_spec='$libname.dll.a' 16964 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16965 postinstall_cmds='base_file=`basename \${file}`~ 16966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16967 dldir=$destdir/`dirname \$dlpath`~ 16968 test -d \$dldir || mkdir -p \$dldir~ 16969 $install_prog $dir/$dlname \$dldir/$dlname' 16970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16971 dlpath=$dir/\$dldll~ 16972 $rm \$dlpath' 16973 shlibpath_overrides_runpath=yes 16974 16975 case $host_os in 16976 cygwin*) 16977 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16978 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16979 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16980 ;; 16981 mingw*) 16982 # MinGW DLLs use traditional 'lib' prefix 16983 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16984 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16985 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16986 # It is most probably a Windows format PATH printed by 16987 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16988 # path with ; separators, and with drive letters. We can handle the 16989 # drive letters (cygwin fileutils understands them), so leave them, 16990 # especially as we might pass files found there to a mingw objdump, 16991 # which wouldn't understand a cygwinified path. Ahh. 16992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16993 else 16994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16995 fi 16996 ;; 16997 pw32*) 16998 # pw32 DLLs use 'pw' prefix rather than 'lib' 16999 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 17000 ;; 17001 esac 17002 ;; 17003 17004 *) 17005 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17006 ;; 17007 esac 17008 dynamic_linker='Win32 ld.exe' 17009 # FIXME: first we should search . and the directory the executable is in 17010 shlibpath_var=PATH 17011 ;; 17012 17013darwin* | rhapsody*) 17014 dynamic_linker="$host_os dyld" 17015 version_type=darwin 17016 need_lib_prefix=no 17017 need_version=no 17018 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17019 soname_spec='${libname}${release}${major}$shared_ext' 17020 shlibpath_overrides_runpath=yes 17021 shlibpath_var=DYLD_LIBRARY_PATH 17022 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 17023 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17024 if test "$GCC" = yes; then 17025 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"` 17026 else 17027 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17028 fi 17029 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17030 ;; 17031 17032dgux*) 17033 version_type=linux 17034 need_lib_prefix=no 17035 need_version=no 17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17037 soname_spec='${libname}${release}${shared_ext}$major' 17038 shlibpath_var=LD_LIBRARY_PATH 17039 ;; 17040 17041freebsd1*) 17042 dynamic_linker=no 17043 ;; 17044 17045kfreebsd*-gnu) 17046 version_type=linux 17047 need_lib_prefix=no 17048 need_version=no 17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17050 soname_spec='${libname}${release}${shared_ext}$major' 17051 shlibpath_var=LD_LIBRARY_PATH 17052 shlibpath_overrides_runpath=no 17053 hardcode_into_libs=yes 17054 dynamic_linker='GNU ld.so' 17055 ;; 17056 17057freebsd*) 17058 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17059 version_type=freebsd-$objformat 17060 case $version_type in 17061 freebsd-elf*) 17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17063 need_version=no 17064 need_lib_prefix=no 17065 ;; 17066 freebsd-*) 17067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17068 need_version=yes 17069 ;; 17070 esac 17071 shlibpath_var=LD_LIBRARY_PATH 17072 case $host_os in 17073 freebsd2*) 17074 shlibpath_overrides_runpath=yes 17075 ;; 17076 freebsd3.01* | freebsdelf3.01*) 17077 shlibpath_overrides_runpath=yes 17078 hardcode_into_libs=yes 17079 ;; 17080 *) # from 3.2 on 17081 shlibpath_overrides_runpath=no 17082 hardcode_into_libs=yes 17083 ;; 17084 esac 17085 ;; 17086 17087gnu*) 17088 version_type=linux 17089 need_lib_prefix=no 17090 need_version=no 17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17092 soname_spec='${libname}${release}${shared_ext}$major' 17093 shlibpath_var=LD_LIBRARY_PATH 17094 hardcode_into_libs=yes 17095 ;; 17096 17097hpux9* | hpux10* | hpux11*) 17098 # Give a soname corresponding to the major version so that dld.sl refuses to 17099 # link against other versions. 17100 version_type=sunos 17101 need_lib_prefix=no 17102 need_version=no 17103 case "$host_cpu" in 17104 ia64*) 17105 shrext_cmds='.so' 17106 hardcode_into_libs=yes 17107 dynamic_linker="$host_os dld.so" 17108 shlibpath_var=LD_LIBRARY_PATH 17109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17111 soname_spec='${libname}${release}${shared_ext}$major' 17112 if test "X$HPUX_IA64_MODE" = X32; then 17113 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17114 else 17115 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17116 fi 17117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17118 ;; 17119 hppa*64*) 17120 shrext_cmds='.sl' 17121 hardcode_into_libs=yes 17122 dynamic_linker="$host_os dld.sl" 17123 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17126 soname_spec='${libname}${release}${shared_ext}$major' 17127 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17129 ;; 17130 *) 17131 shrext_cmds='.sl' 17132 dynamic_linker="$host_os dld.sl" 17133 shlibpath_var=SHLIB_PATH 17134 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17136 soname_spec='${libname}${release}${shared_ext}$major' 17137 ;; 17138 esac 17139 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17140 postinstall_cmds='chmod 555 $lib' 17141 ;; 17142 17143irix5* | irix6* | nonstopux*) 17144 case $host_os in 17145 nonstopux*) version_type=nonstopux ;; 17146 *) 17147 if test "$lt_cv_prog_gnu_ld" = yes; then 17148 version_type=linux 17149 else 17150 version_type=irix 17151 fi ;; 17152 esac 17153 need_lib_prefix=no 17154 need_version=no 17155 soname_spec='${libname}${release}${shared_ext}$major' 17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17157 case $host_os in 17158 irix5* | nonstopux*) 17159 libsuff= shlibsuff= 17160 ;; 17161 *) 17162 case $LD in # libtool.m4 will add one of these switches to LD 17163 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17164 libsuff= shlibsuff= libmagic=32-bit;; 17165 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17166 libsuff=32 shlibsuff=N32 libmagic=N32;; 17167 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17168 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17169 *) libsuff= shlibsuff= libmagic=never-match;; 17170 esac 17171 ;; 17172 esac 17173 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17174 shlibpath_overrides_runpath=no 17175 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17176 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17177 hardcode_into_libs=yes 17178 ;; 17179 17180# No shared lib support for Linux oldld, aout, or coff. 17181linux*oldld* | linux*aout* | linux*coff*) 17182 dynamic_linker=no 17183 ;; 17184 17185# This must be Linux ELF. 17186linux*) 17187 version_type=linux 17188 need_lib_prefix=no 17189 need_version=no 17190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17191 soname_spec='${libname}${release}${shared_ext}$major' 17192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17193 shlibpath_var=LD_LIBRARY_PATH 17194 shlibpath_overrides_runpath=no 17195 # This implies no fast_install, which is unacceptable. 17196 # Some rework will be needed to allow for fast_install 17197 # before this can be enabled. 17198 hardcode_into_libs=yes 17199 17200 # find out which ABI we are using 17201 libsuff= 17202 case "$host_cpu" in 17203 x86_64*|s390x*|powerpc64*) 17204 echo '#line 17204 "configure"' > conftest.$ac_ext 17205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17206 (eval $ac_compile) 2>&5 17207 ac_status=$? 17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17209 (exit $ac_status); }; then 17210 case `/usr/bin/file conftest.$ac_objext` in 17211 *64-bit*) 17212 libsuff=64 17213 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17214 ;; 17215 esac 17216 fi 17217 rm -rf conftest* 17218 ;; 17219 esac 17220 17221 # Append ld.so.conf contents to the search path 17222 if test -f /etc/ld.so.conf; then 17223 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 17224 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17225 fi 17226 17227 # We used to test for /lib/ld.so.1 and disable shared libraries on 17228 # powerpc, because MkLinux only supported shared libraries with the 17229 # GNU dynamic linker. Since this was broken with cross compilers, 17230 # most powerpc-linux boxes support dynamic linking these days and 17231 # people can always --disable-shared, the test was removed, and we 17232 # assume the GNU/Linux dynamic linker is in use. 17233 dynamic_linker='GNU/Linux ld.so' 17234 ;; 17235 17236knetbsd*-gnu) 17237 version_type=linux 17238 need_lib_prefix=no 17239 need_version=no 17240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17241 soname_spec='${libname}${release}${shared_ext}$major' 17242 shlibpath_var=LD_LIBRARY_PATH 17243 shlibpath_overrides_runpath=no 17244 hardcode_into_libs=yes 17245 dynamic_linker='GNU ld.so' 17246 ;; 17247 17248netbsd*) 17249 version_type=sunos 17250 need_lib_prefix=no 17251 need_version=no 17252 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17255 dynamic_linker='NetBSD (a.out) ld.so' 17256 else 17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17258 soname_spec='${libname}${release}${shared_ext}$major' 17259 dynamic_linker='NetBSD ld.elf_so' 17260 fi 17261 shlibpath_var=LD_LIBRARY_PATH 17262 shlibpath_overrides_runpath=yes 17263 hardcode_into_libs=yes 17264 ;; 17265 17266newsos6) 17267 version_type=linux 17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17269 shlibpath_var=LD_LIBRARY_PATH 17270 shlibpath_overrides_runpath=yes 17271 ;; 17272 17273nto-qnx*) 17274 version_type=linux 17275 need_lib_prefix=no 17276 need_version=no 17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17278 soname_spec='${libname}${release}${shared_ext}$major' 17279 shlibpath_var=LD_LIBRARY_PATH 17280 shlibpath_overrides_runpath=yes 17281 ;; 17282 17283openbsd*) 17284 version_type=sunos 17285 need_lib_prefix=no 17286 need_version=yes 17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17289 shlibpath_var=LD_LIBRARY_PATH 17290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17291 case $host_os in 17292 openbsd2.[89] | openbsd2.[89].*) 17293 shlibpath_overrides_runpath=no 17294 ;; 17295 *) 17296 shlibpath_overrides_runpath=yes 17297 ;; 17298 esac 17299 else 17300 shlibpath_overrides_runpath=yes 17301 fi 17302 ;; 17303 17304os2*) 17305 libname_spec='$name' 17306 shrext_cmds=".dll" 17307 need_lib_prefix=no 17308 library_names_spec='$libname${shared_ext} $libname.a' 17309 dynamic_linker='OS/2 ld.exe' 17310 shlibpath_var=LIBPATH 17311 ;; 17312 17313osf3* | osf4* | osf5*) 17314 version_type=osf 17315 need_lib_prefix=no 17316 need_version=no 17317 soname_spec='${libname}${release}${shared_ext}$major' 17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17319 shlibpath_var=LD_LIBRARY_PATH 17320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17321 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17322 ;; 17323 17324sco3.2v5*) 17325 version_type=osf 17326 soname_spec='${libname}${release}${shared_ext}$major' 17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17328 shlibpath_var=LD_LIBRARY_PATH 17329 ;; 17330 17331solaris*) 17332 version_type=linux 17333 need_lib_prefix=no 17334 need_version=no 17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17336 soname_spec='${libname}${release}${shared_ext}$major' 17337 shlibpath_var=LD_LIBRARY_PATH 17338 shlibpath_overrides_runpath=yes 17339 hardcode_into_libs=yes 17340 # ldd complains unless libraries are executable 17341 postinstall_cmds='chmod +x $lib' 17342 ;; 17343 17344sunos4*) 17345 version_type=sunos 17346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17347 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17348 shlibpath_var=LD_LIBRARY_PATH 17349 shlibpath_overrides_runpath=yes 17350 if test "$with_gnu_ld" = yes; then 17351 need_lib_prefix=no 17352 fi 17353 need_version=yes 17354 ;; 17355 17356sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17357 version_type=linux 17358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17359 soname_spec='${libname}${release}${shared_ext}$major' 17360 shlibpath_var=LD_LIBRARY_PATH 17361 case $host_vendor in 17362 sni) 17363 shlibpath_overrides_runpath=no 17364 need_lib_prefix=no 17365 export_dynamic_flag_spec='${wl}-Blargedynsym' 17366 runpath_var=LD_RUN_PATH 17367 ;; 17368 siemens) 17369 need_lib_prefix=no 17370 ;; 17371 motorola) 17372 need_lib_prefix=no 17373 need_version=no 17374 shlibpath_overrides_runpath=no 17375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17376 ;; 17377 esac 17378 ;; 17379 17380sysv4*MP*) 17381 if test -d /usr/nec ;then 17382 version_type=linux 17383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17384 soname_spec='$libname${shared_ext}.$major' 17385 shlibpath_var=LD_LIBRARY_PATH 17386 fi 17387 ;; 17388 17389uts4*) 17390 version_type=linux 17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17392 soname_spec='${libname}${release}${shared_ext}$major' 17393 shlibpath_var=LD_LIBRARY_PATH 17394 ;; 17395 17396*) 17397 dynamic_linker=no 17398 ;; 17399esac 17400echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17401echo "${ECHO_T}$dynamic_linker" >&6 17402test "$dynamic_linker" = no && can_build_shared=no 17403 17404echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17405echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17406hardcode_action_GCJ= 17407if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17408 test -n "$runpath_var GCJ" || \ 17409 test "X$hardcode_automatic_GCJ"="Xyes" ; then 17410 17411 # We can hardcode non-existant directories. 17412 if test "$hardcode_direct_GCJ" != no && 17413 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17414 # have to relink, otherwise we might link with an installed library 17415 # when we should be linking with a yet-to-be-installed one 17416 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17417 test "$hardcode_minus_L_GCJ" != no; then 17418 # Linking always hardcodes the temporary library directory. 17419 hardcode_action_GCJ=relink 17420 else 17421 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17422 hardcode_action_GCJ=immediate 17423 fi 17424else 17425 # We cannot hardcode anything, or else we can only hardcode existing 17426 # directories. 17427 hardcode_action_GCJ=unsupported 17428fi 17429echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17430echo "${ECHO_T}$hardcode_action_GCJ" >&6 17431 17432if test "$hardcode_action_GCJ" = relink; then 17433 # Fast installation is not supported 17434 enable_fast_install=no 17435elif test "$shlibpath_overrides_runpath" = yes || 17436 test "$enable_shared" = no; then 17437 # Fast installation is not necessary 17438 enable_fast_install=needless 17439fi 17440 17441striplib= 17442old_striplib= 17443echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17444echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17445if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17446 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17447 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17448 echo "$as_me:$LINENO: result: yes" >&5 17449echo "${ECHO_T}yes" >&6 17450else 17451# FIXME - insert some real tests, host_os isn't really good enough 17452 case $host_os in 17453 darwin*) 17454 if test -n "$STRIP" ; then 17455 striplib="$STRIP -x" 17456 echo "$as_me:$LINENO: result: yes" >&5 17457echo "${ECHO_T}yes" >&6 17458 else 17459 echo "$as_me:$LINENO: result: no" >&5 17460echo "${ECHO_T}no" >&6 17461fi 17462 ;; 17463 *) 17464 echo "$as_me:$LINENO: result: no" >&5 17465echo "${ECHO_T}no" >&6 17466 ;; 17467 esac 17468fi 17469 17470if test "x$enable_dlopen" != xyes; then 17471 enable_dlopen=unknown 17472 enable_dlopen_self=unknown 17473 enable_dlopen_self_static=unknown 17474else 17475 lt_cv_dlopen=no 17476 lt_cv_dlopen_libs= 17477 17478 case $host_os in 17479 beos*) 17480 lt_cv_dlopen="load_add_on" 17481 lt_cv_dlopen_libs= 17482 lt_cv_dlopen_self=yes 17483 ;; 17484 17485 mingw* | pw32*) 17486 lt_cv_dlopen="LoadLibrary" 17487 lt_cv_dlopen_libs= 17488 ;; 17489 17490 cygwin*) 17491 lt_cv_dlopen="dlopen" 17492 lt_cv_dlopen_libs= 17493 ;; 17494 17495 darwin*) 17496 # if libdl is installed we need to link against it 17497 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17498echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17499if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17500 echo $ECHO_N "(cached) $ECHO_C" >&6 17501else 17502 ac_check_lib_save_LIBS=$LIBS 17503LIBS="-ldl $LIBS" 17504cat >conftest.$ac_ext <<_ACEOF 17505/* confdefs.h. */ 17506_ACEOF 17507cat confdefs.h >>conftest.$ac_ext 17508cat >>conftest.$ac_ext <<_ACEOF 17509/* end confdefs.h. */ 17510 17511/* Override any gcc2 internal prototype to avoid an error. */ 17512#ifdef __cplusplus 17513extern "C" 17514#endif 17515/* We use char because int might match the return type of a gcc2 17516 builtin and then its argument prototype would still apply. */ 17517char dlopen (); 17518int 17519main () 17520{ 17521dlopen (); 17522 ; 17523 return 0; 17524} 17525_ACEOF 17526rm -f conftest.$ac_objext conftest$ac_exeext 17527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17528 (eval $ac_link) 2>conftest.er1 17529 ac_status=$? 17530 grep -v '^ *+' conftest.er1 >conftest.err 17531 rm -f conftest.er1 17532 cat conftest.err >&5 17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17534 (exit $ac_status); } && 17535 { ac_try='test -z "$ac_c_werror_flag" 17536 || test ! -s conftest.err' 17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17538 (eval $ac_try) 2>&5 17539 ac_status=$? 17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17541 (exit $ac_status); }; } && 17542 { ac_try='test -s conftest$ac_exeext' 17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17544 (eval $ac_try) 2>&5 17545 ac_status=$? 17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17547 (exit $ac_status); }; }; then 17548 ac_cv_lib_dl_dlopen=yes 17549else 17550 echo "$as_me: failed program was:" >&5 17551sed 's/^/| /' conftest.$ac_ext >&5 17552 17553ac_cv_lib_dl_dlopen=no 17554fi 17555rm -f conftest.err conftest.$ac_objext \ 17556 conftest$ac_exeext conftest.$ac_ext 17557LIBS=$ac_check_lib_save_LIBS 17558fi 17559echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17560echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17561if test $ac_cv_lib_dl_dlopen = yes; then 17562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17563else 17564 17565 lt_cv_dlopen="dyld" 17566 lt_cv_dlopen_libs= 17567 lt_cv_dlopen_self=yes 17568 17569fi 17570 17571 ;; 17572 17573 *) 17574 echo "$as_me:$LINENO: checking for shl_load" >&5 17575echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17576if test "${ac_cv_func_shl_load+set}" = set; then 17577 echo $ECHO_N "(cached) $ECHO_C" >&6 17578else 17579 cat >conftest.$ac_ext <<_ACEOF 17580/* confdefs.h. */ 17581_ACEOF 17582cat confdefs.h >>conftest.$ac_ext 17583cat >>conftest.$ac_ext <<_ACEOF 17584/* end confdefs.h. */ 17585/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 17586 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17587#define shl_load innocuous_shl_load 17588 17589/* System header to define __stub macros and hopefully few prototypes, 17590 which can conflict with char shl_load (); below. 17591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17592 <limits.h> exists even on freestanding compilers. */ 17593 17594#ifdef __STDC__ 17595# include <limits.h> 17596#else 17597# include <assert.h> 17598#endif 17599 17600#undef shl_load 17601 17602/* Override any gcc2 internal prototype to avoid an error. */ 17603#ifdef __cplusplus 17604extern "C" 17605{ 17606#endif 17607/* We use char because int might match the return type of a gcc2 17608 builtin and then its argument prototype would still apply. */ 17609char shl_load (); 17610/* The GNU C library defines this for functions which it implements 17611 to always fail with ENOSYS. Some functions are actually named 17612 something starting with __ and the normal name is an alias. */ 17613#if defined (__stub_shl_load) || defined (__stub___shl_load) 17614choke me 17615#else 17616char (*f) () = shl_load; 17617#endif 17618#ifdef __cplusplus 17619} 17620#endif 17621 17622int 17623main () 17624{ 17625return f != shl_load; 17626 ; 17627 return 0; 17628} 17629_ACEOF 17630rm -f conftest.$ac_objext conftest$ac_exeext 17631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17632 (eval $ac_link) 2>conftest.er1 17633 ac_status=$? 17634 grep -v '^ *+' conftest.er1 >conftest.err 17635 rm -f conftest.er1 17636 cat conftest.err >&5 17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17638 (exit $ac_status); } && 17639 { ac_try='test -z "$ac_c_werror_flag" 17640 || test ! -s conftest.err' 17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17642 (eval $ac_try) 2>&5 17643 ac_status=$? 17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17645 (exit $ac_status); }; } && 17646 { ac_try='test -s conftest$ac_exeext' 17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17648 (eval $ac_try) 2>&5 17649 ac_status=$? 17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17651 (exit $ac_status); }; }; then 17652 ac_cv_func_shl_load=yes 17653else 17654 echo "$as_me: failed program was:" >&5 17655sed 's/^/| /' conftest.$ac_ext >&5 17656 17657ac_cv_func_shl_load=no 17658fi 17659rm -f conftest.err conftest.$ac_objext \ 17660 conftest$ac_exeext conftest.$ac_ext 17661fi 17662echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17663echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17664if test $ac_cv_func_shl_load = yes; then 17665 lt_cv_dlopen="shl_load" 17666else 17667 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17668echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17669if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17670 echo $ECHO_N "(cached) $ECHO_C" >&6 17671else 17672 ac_check_lib_save_LIBS=$LIBS 17673LIBS="-ldld $LIBS" 17674cat >conftest.$ac_ext <<_ACEOF 17675/* confdefs.h. */ 17676_ACEOF 17677cat confdefs.h >>conftest.$ac_ext 17678cat >>conftest.$ac_ext <<_ACEOF 17679/* end confdefs.h. */ 17680 17681/* Override any gcc2 internal prototype to avoid an error. */ 17682#ifdef __cplusplus 17683extern "C" 17684#endif 17685/* We use char because int might match the return type of a gcc2 17686 builtin and then its argument prototype would still apply. */ 17687char shl_load (); 17688int 17689main () 17690{ 17691shl_load (); 17692 ; 17693 return 0; 17694} 17695_ACEOF 17696rm -f conftest.$ac_objext conftest$ac_exeext 17697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17698 (eval $ac_link) 2>conftest.er1 17699 ac_status=$? 17700 grep -v '^ *+' conftest.er1 >conftest.err 17701 rm -f conftest.er1 17702 cat conftest.err >&5 17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17704 (exit $ac_status); } && 17705 { ac_try='test -z "$ac_c_werror_flag" 17706 || test ! -s conftest.err' 17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17708 (eval $ac_try) 2>&5 17709 ac_status=$? 17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17711 (exit $ac_status); }; } && 17712 { ac_try='test -s conftest$ac_exeext' 17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17714 (eval $ac_try) 2>&5 17715 ac_status=$? 17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17717 (exit $ac_status); }; }; then 17718 ac_cv_lib_dld_shl_load=yes 17719else 17720 echo "$as_me: failed program was:" >&5 17721sed 's/^/| /' conftest.$ac_ext >&5 17722 17723ac_cv_lib_dld_shl_load=no 17724fi 17725rm -f conftest.err conftest.$ac_objext \ 17726 conftest$ac_exeext conftest.$ac_ext 17727LIBS=$ac_check_lib_save_LIBS 17728fi 17729echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17730echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17731if test $ac_cv_lib_dld_shl_load = yes; then 17732 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17733else 17734 echo "$as_me:$LINENO: checking for dlopen" >&5 17735echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17736if test "${ac_cv_func_dlopen+set}" = set; then 17737 echo $ECHO_N "(cached) $ECHO_C" >&6 17738else 17739 cat >conftest.$ac_ext <<_ACEOF 17740/* confdefs.h. */ 17741_ACEOF 17742cat confdefs.h >>conftest.$ac_ext 17743cat >>conftest.$ac_ext <<_ACEOF 17744/* end confdefs.h. */ 17745/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17747#define dlopen innocuous_dlopen 17748 17749/* System header to define __stub macros and hopefully few prototypes, 17750 which can conflict with char dlopen (); below. 17751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17752 <limits.h> exists even on freestanding compilers. */ 17753 17754#ifdef __STDC__ 17755# include <limits.h> 17756#else 17757# include <assert.h> 17758#endif 17759 17760#undef dlopen 17761 17762/* Override any gcc2 internal prototype to avoid an error. */ 17763#ifdef __cplusplus 17764extern "C" 17765{ 17766#endif 17767/* We use char because int might match the return type of a gcc2 17768 builtin and then its argument prototype would still apply. */ 17769char dlopen (); 17770/* The GNU C library defines this for functions which it implements 17771 to always fail with ENOSYS. Some functions are actually named 17772 something starting with __ and the normal name is an alias. */ 17773#if defined (__stub_dlopen) || defined (__stub___dlopen) 17774choke me 17775#else 17776char (*f) () = dlopen; 17777#endif 17778#ifdef __cplusplus 17779} 17780#endif 17781 17782int 17783main () 17784{ 17785return f != dlopen; 17786 ; 17787 return 0; 17788} 17789_ACEOF 17790rm -f conftest.$ac_objext conftest$ac_exeext 17791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17792 (eval $ac_link) 2>conftest.er1 17793 ac_status=$? 17794 grep -v '^ *+' conftest.er1 >conftest.err 17795 rm -f conftest.er1 17796 cat conftest.err >&5 17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17798 (exit $ac_status); } && 17799 { ac_try='test -z "$ac_c_werror_flag" 17800 || test ! -s conftest.err' 17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17802 (eval $ac_try) 2>&5 17803 ac_status=$? 17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17805 (exit $ac_status); }; } && 17806 { ac_try='test -s conftest$ac_exeext' 17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17808 (eval $ac_try) 2>&5 17809 ac_status=$? 17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17811 (exit $ac_status); }; }; then 17812 ac_cv_func_dlopen=yes 17813else 17814 echo "$as_me: failed program was:" >&5 17815sed 's/^/| /' conftest.$ac_ext >&5 17816 17817ac_cv_func_dlopen=no 17818fi 17819rm -f conftest.err conftest.$ac_objext \ 17820 conftest$ac_exeext conftest.$ac_ext 17821fi 17822echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17823echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17824if test $ac_cv_func_dlopen = yes; then 17825 lt_cv_dlopen="dlopen" 17826else 17827 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17828echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17829if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17830 echo $ECHO_N "(cached) $ECHO_C" >&6 17831else 17832 ac_check_lib_save_LIBS=$LIBS 17833LIBS="-ldl $LIBS" 17834cat >conftest.$ac_ext <<_ACEOF 17835/* confdefs.h. */ 17836_ACEOF 17837cat confdefs.h >>conftest.$ac_ext 17838cat >>conftest.$ac_ext <<_ACEOF 17839/* end confdefs.h. */ 17840 17841/* Override any gcc2 internal prototype to avoid an error. */ 17842#ifdef __cplusplus 17843extern "C" 17844#endif 17845/* We use char because int might match the return type of a gcc2 17846 builtin and then its argument prototype would still apply. */ 17847char dlopen (); 17848int 17849main () 17850{ 17851dlopen (); 17852 ; 17853 return 0; 17854} 17855_ACEOF 17856rm -f conftest.$ac_objext conftest$ac_exeext 17857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17858 (eval $ac_link) 2>conftest.er1 17859 ac_status=$? 17860 grep -v '^ *+' conftest.er1 >conftest.err 17861 rm -f conftest.er1 17862 cat conftest.err >&5 17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17864 (exit $ac_status); } && 17865 { ac_try='test -z "$ac_c_werror_flag" 17866 || test ! -s conftest.err' 17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17868 (eval $ac_try) 2>&5 17869 ac_status=$? 17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17871 (exit $ac_status); }; } && 17872 { ac_try='test -s conftest$ac_exeext' 17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17874 (eval $ac_try) 2>&5 17875 ac_status=$? 17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17877 (exit $ac_status); }; }; then 17878 ac_cv_lib_dl_dlopen=yes 17879else 17880 echo "$as_me: failed program was:" >&5 17881sed 's/^/| /' conftest.$ac_ext >&5 17882 17883ac_cv_lib_dl_dlopen=no 17884fi 17885rm -f conftest.err conftest.$ac_objext \ 17886 conftest$ac_exeext conftest.$ac_ext 17887LIBS=$ac_check_lib_save_LIBS 17888fi 17889echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17890echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17891if test $ac_cv_lib_dl_dlopen = yes; then 17892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17893else 17894 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17895echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 17896if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17897 echo $ECHO_N "(cached) $ECHO_C" >&6 17898else 17899 ac_check_lib_save_LIBS=$LIBS 17900LIBS="-lsvld $LIBS" 17901cat >conftest.$ac_ext <<_ACEOF 17902/* confdefs.h. */ 17903_ACEOF 17904cat confdefs.h >>conftest.$ac_ext 17905cat >>conftest.$ac_ext <<_ACEOF 17906/* end confdefs.h. */ 17907 17908/* Override any gcc2 internal prototype to avoid an error. */ 17909#ifdef __cplusplus 17910extern "C" 17911#endif 17912/* We use char because int might match the return type of a gcc2 17913 builtin and then its argument prototype would still apply. */ 17914char dlopen (); 17915int 17916main () 17917{ 17918dlopen (); 17919 ; 17920 return 0; 17921} 17922_ACEOF 17923rm -f conftest.$ac_objext conftest$ac_exeext 17924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17925 (eval $ac_link) 2>conftest.er1 17926 ac_status=$? 17927 grep -v '^ *+' conftest.er1 >conftest.err 17928 rm -f conftest.er1 17929 cat conftest.err >&5 17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17931 (exit $ac_status); } && 17932 { ac_try='test -z "$ac_c_werror_flag" 17933 || test ! -s conftest.err' 17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17935 (eval $ac_try) 2>&5 17936 ac_status=$? 17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17938 (exit $ac_status); }; } && 17939 { ac_try='test -s conftest$ac_exeext' 17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17941 (eval $ac_try) 2>&5 17942 ac_status=$? 17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17944 (exit $ac_status); }; }; then 17945 ac_cv_lib_svld_dlopen=yes 17946else 17947 echo "$as_me: failed program was:" >&5 17948sed 's/^/| /' conftest.$ac_ext >&5 17949 17950ac_cv_lib_svld_dlopen=no 17951fi 17952rm -f conftest.err conftest.$ac_objext \ 17953 conftest$ac_exeext conftest.$ac_ext 17954LIBS=$ac_check_lib_save_LIBS 17955fi 17956echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 17957echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 17958if test $ac_cv_lib_svld_dlopen = yes; then 17959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17960else 17961 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 17962echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 17963if test "${ac_cv_lib_dld_dld_link+set}" = set; then 17964 echo $ECHO_N "(cached) $ECHO_C" >&6 17965else 17966 ac_check_lib_save_LIBS=$LIBS 17967LIBS="-ldld $LIBS" 17968cat >conftest.$ac_ext <<_ACEOF 17969/* confdefs.h. */ 17970_ACEOF 17971cat confdefs.h >>conftest.$ac_ext 17972cat >>conftest.$ac_ext <<_ACEOF 17973/* end confdefs.h. */ 17974 17975/* Override any gcc2 internal prototype to avoid an error. */ 17976#ifdef __cplusplus 17977extern "C" 17978#endif 17979/* We use char because int might match the return type of a gcc2 17980 builtin and then its argument prototype would still apply. */ 17981char dld_link (); 17982int 17983main () 17984{ 17985dld_link (); 17986 ; 17987 return 0; 17988} 17989_ACEOF 17990rm -f conftest.$ac_objext conftest$ac_exeext 17991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17992 (eval $ac_link) 2>conftest.er1 17993 ac_status=$? 17994 grep -v '^ *+' conftest.er1 >conftest.err 17995 rm -f conftest.er1 17996 cat conftest.err >&5 17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17998 (exit $ac_status); } && 17999 { ac_try='test -z "$ac_c_werror_flag" 18000 || test ! -s conftest.err' 18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18002 (eval $ac_try) 2>&5 18003 ac_status=$? 18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18005 (exit $ac_status); }; } && 18006 { ac_try='test -s conftest$ac_exeext' 18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18008 (eval $ac_try) 2>&5 18009 ac_status=$? 18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18011 (exit $ac_status); }; }; then 18012 ac_cv_lib_dld_dld_link=yes 18013else 18014 echo "$as_me: failed program was:" >&5 18015sed 's/^/| /' conftest.$ac_ext >&5 18016 18017ac_cv_lib_dld_dld_link=no 18018fi 18019rm -f conftest.err conftest.$ac_objext \ 18020 conftest$ac_exeext conftest.$ac_ext 18021LIBS=$ac_check_lib_save_LIBS 18022fi 18023echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18024echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18025if test $ac_cv_lib_dld_dld_link = yes; then 18026 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18027fi 18028 18029 18030fi 18031 18032 18033fi 18034 18035 18036fi 18037 18038 18039fi 18040 18041 18042fi 18043 18044 ;; 18045 esac 18046 18047 if test "x$lt_cv_dlopen" != xno; then 18048 enable_dlopen=yes 18049 else 18050 enable_dlopen=no 18051 fi 18052 18053 case $lt_cv_dlopen in 18054 dlopen) 18055 save_CPPFLAGS="$CPPFLAGS" 18056 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18057 18058 save_LDFLAGS="$LDFLAGS" 18059 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18060 18061 save_LIBS="$LIBS" 18062 LIBS="$lt_cv_dlopen_libs $LIBS" 18063 18064 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18065echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18066if test "${lt_cv_dlopen_self+set}" = set; then 18067 echo $ECHO_N "(cached) $ECHO_C" >&6 18068else 18069 if test "$cross_compiling" = yes; then : 18070 lt_cv_dlopen_self=cross 18071else 18072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18073 lt_status=$lt_dlunknown 18074 cat > conftest.$ac_ext <<EOF 18075#line 18075 "configure" 18076#include "confdefs.h" 18077 18078#if HAVE_DLFCN_H 18079#include <dlfcn.h> 18080#endif 18081 18082#include <stdio.h> 18083 18084#ifdef RTLD_GLOBAL 18085# define LT_DLGLOBAL RTLD_GLOBAL 18086#else 18087# ifdef DL_GLOBAL 18088# define LT_DLGLOBAL DL_GLOBAL 18089# else 18090# define LT_DLGLOBAL 0 18091# endif 18092#endif 18093 18094/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18095 find out it does not work in some platform. */ 18096#ifndef LT_DLLAZY_OR_NOW 18097# ifdef RTLD_LAZY 18098# define LT_DLLAZY_OR_NOW RTLD_LAZY 18099# else 18100# ifdef DL_LAZY 18101# define LT_DLLAZY_OR_NOW DL_LAZY 18102# else 18103# ifdef RTLD_NOW 18104# define LT_DLLAZY_OR_NOW RTLD_NOW 18105# else 18106# ifdef DL_NOW 18107# define LT_DLLAZY_OR_NOW DL_NOW 18108# else 18109# define LT_DLLAZY_OR_NOW 0 18110# endif 18111# endif 18112# endif 18113# endif 18114#endif 18115 18116#ifdef __cplusplus 18117extern "C" void exit (int); 18118#endif 18119 18120void fnord() { int i=42;} 18121int main () 18122{ 18123 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18124 int status = $lt_dlunknown; 18125 18126 if (self) 18127 { 18128 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18129 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18130 /* dlclose (self); */ 18131 } 18132 18133 exit (status); 18134} 18135EOF 18136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18137 (eval $ac_link) 2>&5 18138 ac_status=$? 18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18140 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18141 (./conftest; exit; ) 2>/dev/null 18142 lt_status=$? 18143 case x$lt_status in 18144 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18145 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18146 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18147 esac 18148 else : 18149 # compilation failed 18150 lt_cv_dlopen_self=no 18151 fi 18152fi 18153rm -fr conftest* 18154 18155 18156fi 18157echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18158echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18159 18160 if test "x$lt_cv_dlopen_self" = xyes; then 18161 LDFLAGS="$LDFLAGS $link_static_flag" 18162 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18163echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18164if test "${lt_cv_dlopen_self_static+set}" = set; then 18165 echo $ECHO_N "(cached) $ECHO_C" >&6 18166else 18167 if test "$cross_compiling" = yes; then : 18168 lt_cv_dlopen_self_static=cross 18169else 18170 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18171 lt_status=$lt_dlunknown 18172 cat > conftest.$ac_ext <<EOF 18173#line 18173 "configure" 18174#include "confdefs.h" 18175 18176#if HAVE_DLFCN_H 18177#include <dlfcn.h> 18178#endif 18179 18180#include <stdio.h> 18181 18182#ifdef RTLD_GLOBAL 18183# define LT_DLGLOBAL RTLD_GLOBAL 18184#else 18185# ifdef DL_GLOBAL 18186# define LT_DLGLOBAL DL_GLOBAL 18187# else 18188# define LT_DLGLOBAL 0 18189# endif 18190#endif 18191 18192/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18193 find out it does not work in some platform. */ 18194#ifndef LT_DLLAZY_OR_NOW 18195# ifdef RTLD_LAZY 18196# define LT_DLLAZY_OR_NOW RTLD_LAZY 18197# else 18198# ifdef DL_LAZY 18199# define LT_DLLAZY_OR_NOW DL_LAZY 18200# else 18201# ifdef RTLD_NOW 18202# define LT_DLLAZY_OR_NOW RTLD_NOW 18203# else 18204# ifdef DL_NOW 18205# define LT_DLLAZY_OR_NOW DL_NOW 18206# else 18207# define LT_DLLAZY_OR_NOW 0 18208# endif 18209# endif 18210# endif 18211# endif 18212#endif 18213 18214#ifdef __cplusplus 18215extern "C" void exit (int); 18216#endif 18217 18218void fnord() { int i=42;} 18219int main () 18220{ 18221 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18222 int status = $lt_dlunknown; 18223 18224 if (self) 18225 { 18226 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18227 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18228 /* dlclose (self); */ 18229 } 18230 18231 exit (status); 18232} 18233EOF 18234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18235 (eval $ac_link) 2>&5 18236 ac_status=$? 18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18238 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18239 (./conftest; exit; ) 2>/dev/null 18240 lt_status=$? 18241 case x$lt_status in 18242 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18243 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18244 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18245 esac 18246 else : 18247 # compilation failed 18248 lt_cv_dlopen_self_static=no 18249 fi 18250fi 18251rm -fr conftest* 18252 18253 18254fi 18255echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18256echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18257 fi 18258 18259 CPPFLAGS="$save_CPPFLAGS" 18260 LDFLAGS="$save_LDFLAGS" 18261 LIBS="$save_LIBS" 18262 ;; 18263 esac 18264 18265 case $lt_cv_dlopen_self in 18266 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18267 *) enable_dlopen_self=unknown ;; 18268 esac 18269 18270 case $lt_cv_dlopen_self_static in 18271 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18272 *) enable_dlopen_self_static=unknown ;; 18273 esac 18274fi 18275 18276 18277# The else clause should only fire when bootstrapping the 18278# libtool distribution, otherwise you forgot to ship ltmain.sh 18279# with your package, and you will get complaints that there are 18280# no rules to generate ltmain.sh. 18281if test -f "$ltmain"; then 18282 # See if we are running on zsh, and set the options which allow our commands through 18283 # without removal of \ escapes. 18284 if test -n "${ZSH_VERSION+set}" ; then 18285 setopt NO_GLOB_SUBST 18286 fi 18287 # Now quote all the things that may contain metacharacters while being 18288 # careful not to overquote the AC_SUBSTed values. We take copies of the 18289 # variables and quote the copies for generation of the libtool script. 18290 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18291 SED SHELL STRIP \ 18292 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18293 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18294 deplibs_check_method reload_flag reload_cmds need_locks \ 18295 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18296 lt_cv_sys_global_symbol_to_c_name_address \ 18297 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18298 old_postinstall_cmds old_postuninstall_cmds \ 18299 compiler_GCJ \ 18300 CC_GCJ \ 18301 LD_GCJ \ 18302 lt_prog_compiler_wl_GCJ \ 18303 lt_prog_compiler_pic_GCJ \ 18304 lt_prog_compiler_static_GCJ \ 18305 lt_prog_compiler_no_builtin_flag_GCJ \ 18306 export_dynamic_flag_spec_GCJ \ 18307 thread_safe_flag_spec_GCJ \ 18308 whole_archive_flag_spec_GCJ \ 18309 enable_shared_with_static_runtimes_GCJ \ 18310 old_archive_cmds_GCJ \ 18311 old_archive_from_new_cmds_GCJ \ 18312 predep_objects_GCJ \ 18313 postdep_objects_GCJ \ 18314 predeps_GCJ \ 18315 postdeps_GCJ \ 18316 compiler_lib_search_path_GCJ \ 18317 archive_cmds_GCJ \ 18318 archive_expsym_cmds_GCJ \ 18319 postinstall_cmds_GCJ \ 18320 postuninstall_cmds_GCJ \ 18321 old_archive_from_expsyms_cmds_GCJ \ 18322 allow_undefined_flag_GCJ \ 18323 no_undefined_flag_GCJ \ 18324 export_symbols_cmds_GCJ \ 18325 hardcode_libdir_flag_spec_GCJ \ 18326 hardcode_libdir_flag_spec_ld_GCJ \ 18327 hardcode_libdir_separator_GCJ \ 18328 hardcode_automatic_GCJ \ 18329 module_cmds_GCJ \ 18330 module_expsym_cmds_GCJ \ 18331 lt_cv_prog_compiler_c_o_GCJ \ 18332 exclude_expsyms_GCJ \ 18333 include_expsyms_GCJ; do 18334 18335 case $var in 18336 old_archive_cmds_GCJ | \ 18337 old_archive_from_new_cmds_GCJ | \ 18338 archive_cmds_GCJ | \ 18339 archive_expsym_cmds_GCJ | \ 18340 module_cmds_GCJ | \ 18341 module_expsym_cmds_GCJ | \ 18342 old_archive_from_expsyms_cmds_GCJ | \ 18343 export_symbols_cmds_GCJ | \ 18344 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18345 postinstall_cmds | postuninstall_cmds | \ 18346 old_postinstall_cmds | old_postuninstall_cmds | \ 18347 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18348 # Double-quote double-evaled strings. 18349 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18350 ;; 18351 *) 18352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18353 ;; 18354 esac 18355 done 18356 18357 case $lt_echo in 18358 *'\$0 --fallback-echo"') 18359 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18360 ;; 18361 esac 18362 18363cfgfile="$ofile" 18364 18365 cat <<__EOF__ >> "$cfgfile" 18366# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18367 18368# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18369 18370# Shell to use when invoking shell scripts. 18371SHELL=$lt_SHELL 18372 18373# Whether or not to build shared libraries. 18374build_libtool_libs=$enable_shared 18375 18376# Whether or not to build static libraries. 18377build_old_libs=$enable_static 18378 18379# Whether or not to add -lc for building shared libraries. 18380build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18381 18382# Whether or not to disallow shared libs when runtime libs are static 18383allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18384 18385# Whether or not to optimize for fast installation. 18386fast_install=$enable_fast_install 18387 18388# The host system. 18389host_alias=$host_alias 18390host=$host 18391 18392# An echo program that does not interpret backslashes. 18393echo=$lt_echo 18394 18395# The archiver. 18396AR=$lt_AR 18397AR_FLAGS=$lt_AR_FLAGS 18398 18399# A C compiler. 18400LTCC=$lt_LTCC 18401 18402# A language-specific compiler. 18403CC=$lt_compiler_GCJ 18404 18405# Is the compiler the GNU C compiler? 18406with_gcc=$GCC_GCJ 18407 18408# An ERE matcher. 18409EGREP=$lt_EGREP 18410 18411# The linker used to build libraries. 18412LD=$lt_LD_GCJ 18413 18414# Whether we need hard or soft links. 18415LN_S=$lt_LN_S 18416 18417# A BSD-compatible nm program. 18418NM=$lt_NM 18419 18420# A symbol stripping program 18421STRIP=$lt_STRIP 18422 18423# Used to examine libraries when file_magic_cmd begins "file" 18424MAGIC_CMD=$MAGIC_CMD 18425 18426# Used on cygwin: DLL creation program. 18427DLLTOOL="$DLLTOOL" 18428 18429# Used on cygwin: object dumper. 18430OBJDUMP="$OBJDUMP" 18431 18432# Used on cygwin: assembler. 18433AS="$AS" 18434 18435# The name of the directory that contains temporary libtool files. 18436objdir=$objdir 18437 18438# How to create reloadable object files. 18439reload_flag=$lt_reload_flag 18440reload_cmds=$lt_reload_cmds 18441 18442# How to pass a linker flag through the compiler. 18443wl=$lt_lt_prog_compiler_wl_GCJ 18444 18445# Object file suffix (normally "o"). 18446objext="$ac_objext" 18447 18448# Old archive suffix (normally "a"). 18449libext="$libext" 18450 18451# Shared library suffix (normally ".so"). 18452shrext_cmds='$shrext_cmds' 18453 18454# Executable file suffix (normally ""). 18455exeext="$exeext" 18456 18457# Additional compiler flags for building library objects. 18458pic_flag=$lt_lt_prog_compiler_pic_GCJ 18459pic_mode=$pic_mode 18460 18461# What is the maximum length of a command? 18462max_cmd_len=$lt_cv_sys_max_cmd_len 18463 18464# Does compiler simultaneously support -c and -o options? 18465compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18466 18467# Must we lock files when doing compilation ? 18468need_locks=$lt_need_locks 18469 18470# Do we need the lib prefix for modules? 18471need_lib_prefix=$need_lib_prefix 18472 18473# Do we need a version for libraries? 18474need_version=$need_version 18475 18476# Whether dlopen is supported. 18477dlopen_support=$enable_dlopen 18478 18479# Whether dlopen of programs is supported. 18480dlopen_self=$enable_dlopen_self 18481 18482# Whether dlopen of statically linked programs is supported. 18483dlopen_self_static=$enable_dlopen_self_static 18484 18485# Compiler flag to prevent dynamic linking. 18486link_static_flag=$lt_lt_prog_compiler_static_GCJ 18487 18488# Compiler flag to turn off builtin functions. 18489no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18490 18491# Compiler flag to allow reflexive dlopens. 18492export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18493 18494# Compiler flag to generate shared objects directly from archives. 18495whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18496 18497# Compiler flag to generate thread-safe objects. 18498thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18499 18500# Library versioning type. 18501version_type=$version_type 18502 18503# Format of library name prefix. 18504libname_spec=$lt_libname_spec 18505 18506# List of archive names. First name is the real one, the rest are links. 18507# The last name is the one that the linker finds with -lNAME. 18508library_names_spec=$lt_library_names_spec 18509 18510# The coded name of the library, if different from the real name. 18511soname_spec=$lt_soname_spec 18512 18513# Commands used to build and install an old-style archive. 18514RANLIB=$lt_RANLIB 18515old_archive_cmds=$lt_old_archive_cmds_GCJ 18516old_postinstall_cmds=$lt_old_postinstall_cmds 18517old_postuninstall_cmds=$lt_old_postuninstall_cmds 18518 18519# Create an old-style archive from a shared archive. 18520old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18521 18522# Create a temporary old-style archive to link instead of a shared archive. 18523old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18524 18525# Commands used to build and install a shared archive. 18526archive_cmds=$lt_archive_cmds_GCJ 18527archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18528postinstall_cmds=$lt_postinstall_cmds 18529postuninstall_cmds=$lt_postuninstall_cmds 18530 18531# Commands used to build a loadable module (assumed same as above if empty) 18532module_cmds=$lt_module_cmds_GCJ 18533module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18534 18535# Commands to strip libraries. 18536old_striplib=$lt_old_striplib 18537striplib=$lt_striplib 18538 18539# Dependencies to place before the objects being linked to create a 18540# shared library. 18541predep_objects=$lt_predep_objects_GCJ 18542 18543# Dependencies to place after the objects being linked to create a 18544# shared library. 18545postdep_objects=$lt_postdep_objects_GCJ 18546 18547# Dependencies to place before the objects being linked to create a 18548# shared library. 18549predeps=$lt_predeps_GCJ 18550 18551# Dependencies to place after the objects being linked to create a 18552# shared library. 18553postdeps=$lt_postdeps_GCJ 18554 18555# The library search path used internally by the compiler when linking 18556# a shared library. 18557compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18558 18559# Method to check whether dependent libraries are shared objects. 18560deplibs_check_method=$lt_deplibs_check_method 18561 18562# Command to use when deplibs_check_method == file_magic. 18563file_magic_cmd=$lt_file_magic_cmd 18564 18565# Flag that allows shared libraries with undefined symbols to be built. 18566allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18567 18568# Flag that forces no undefined symbols. 18569no_undefined_flag=$lt_no_undefined_flag_GCJ 18570 18571# Commands used to finish a libtool library installation in a directory. 18572finish_cmds=$lt_finish_cmds 18573 18574# Same as above, but a single script fragment to be evaled but not shown. 18575finish_eval=$lt_finish_eval 18576 18577# Take the output of nm and produce a listing of raw symbols and C names. 18578global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18579 18580# Transform the output of nm in a proper C declaration 18581global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18582 18583# Transform the output of nm in a C name address pair 18584global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18585 18586# This is the shared library runtime path variable. 18587runpath_var=$runpath_var 18588 18589# This is the shared library path variable. 18590shlibpath_var=$shlibpath_var 18591 18592# Is shlibpath searched before the hard-coded library search path? 18593shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18594 18595# How to hardcode a shared library path into an executable. 18596hardcode_action=$hardcode_action_GCJ 18597 18598# Whether we should hardcode library paths into libraries. 18599hardcode_into_libs=$hardcode_into_libs 18600 18601# Flag to hardcode \$libdir into a binary during linking. 18602# This must work even if \$libdir does not exist. 18603hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18604 18605# If ld is used when linking, flag to hardcode \$libdir into 18606# a binary during linking. This must work even if \$libdir does 18607# not exist. 18608hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18609 18610# Whether we need a single -rpath flag with a separated argument. 18611hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18612 18613# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18614# resulting binary. 18615hardcode_direct=$hardcode_direct_GCJ 18616 18617# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18618# resulting binary. 18619hardcode_minus_L=$hardcode_minus_L_GCJ 18620 18621# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18622# the resulting binary. 18623hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18624 18625# Set to yes if building a shared library automatically hardcodes DIR into the library 18626# and all subsequent libraries and executables linked against it. 18627hardcode_automatic=$hardcode_automatic_GCJ 18628 18629# Variables whose values should be saved in libtool wrapper scripts and 18630# restored at relink time. 18631variables_saved_for_relink="$variables_saved_for_relink" 18632 18633# Whether libtool must link a program against all its dependency libraries. 18634link_all_deplibs=$link_all_deplibs_GCJ 18635 18636# Compile-time system search path for libraries 18637sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18638 18639# Run-time system search path for libraries 18640sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18641 18642# Fix the shell variable \$srcfile for the compiler. 18643fix_srcfile_path="$fix_srcfile_path_GCJ" 18644 18645# Set to yes if exported symbols are required. 18646always_export_symbols=$always_export_symbols_GCJ 18647 18648# The commands to list exported symbols. 18649export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18650 18651# The commands to extract the exported symbol list from a shared archive. 18652extract_expsyms_cmds=$lt_extract_expsyms_cmds 18653 18654# Symbols that should not be listed in the preloaded symbols. 18655exclude_expsyms=$lt_exclude_expsyms_GCJ 18656 18657# Symbols that must always be exported. 18658include_expsyms=$lt_include_expsyms_GCJ 18659 18660# ### END LIBTOOL TAG CONFIG: $tagname 18661 18662__EOF__ 18663 18664 18665else 18666 # If there is no Makefile yet, we rely on a make rule to execute 18667 # `config.status --recheck' to rerun these tests and create the 18668 # libtool script then. 18669 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18670 if test -f "$ltmain_in"; then 18671 test -f Makefile && make "$ltmain" 18672 fi 18673fi 18674 18675 18676ac_ext=c 18677ac_cpp='$CPP $CPPFLAGS' 18678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18680ac_compiler_gnu=$ac_cv_c_compiler_gnu 18681 18682CC="$lt_save_CC" 18683 18684 else 18685 tagname="" 18686 fi 18687 ;; 18688 18689 RC) 18690 18691 18692 18693# Source file extension for RC test sources. 18694ac_ext=rc 18695 18696# Object file extension for compiled RC test sources. 18697objext=o 18698objext_RC=$objext 18699 18700# Code to be used in simple compile tests 18701lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18702 18703# Code to be used in simple link tests 18704lt_simple_link_test_code="$lt_simple_compile_test_code" 18705 18706# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18707 18708# If no C compiler was specified, use CC. 18709LTCC=${LTCC-"$CC"} 18710 18711# Allow CC to be a program name with arguments. 18712compiler=$CC 18713 18714 18715# Allow CC to be a program name with arguments. 18716lt_save_CC="$CC" 18717CC=${RC-"windres"} 18718compiler=$CC 18719compiler_RC=$CC 18720lt_cv_prog_compiler_c_o_RC=yes 18721 18722# The else clause should only fire when bootstrapping the 18723# libtool distribution, otherwise you forgot to ship ltmain.sh 18724# with your package, and you will get complaints that there are 18725# no rules to generate ltmain.sh. 18726if test -f "$ltmain"; then 18727 # See if we are running on zsh, and set the options which allow our commands through 18728 # without removal of \ escapes. 18729 if test -n "${ZSH_VERSION+set}" ; then 18730 setopt NO_GLOB_SUBST 18731 fi 18732 # Now quote all the things that may contain metacharacters while being 18733 # careful not to overquote the AC_SUBSTed values. We take copies of the 18734 # variables and quote the copies for generation of the libtool script. 18735 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18736 SED SHELL STRIP \ 18737 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18738 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18739 deplibs_check_method reload_flag reload_cmds need_locks \ 18740 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18741 lt_cv_sys_global_symbol_to_c_name_address \ 18742 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18743 old_postinstall_cmds old_postuninstall_cmds \ 18744 compiler_RC \ 18745 CC_RC \ 18746 LD_RC \ 18747 lt_prog_compiler_wl_RC \ 18748 lt_prog_compiler_pic_RC \ 18749 lt_prog_compiler_static_RC \ 18750 lt_prog_compiler_no_builtin_flag_RC \ 18751 export_dynamic_flag_spec_RC \ 18752 thread_safe_flag_spec_RC \ 18753 whole_archive_flag_spec_RC \ 18754 enable_shared_with_static_runtimes_RC \ 18755 old_archive_cmds_RC \ 18756 old_archive_from_new_cmds_RC \ 18757 predep_objects_RC \ 18758 postdep_objects_RC \ 18759 predeps_RC \ 18760 postdeps_RC \ 18761 compiler_lib_search_path_RC \ 18762 archive_cmds_RC \ 18763 archive_expsym_cmds_RC \ 18764 postinstall_cmds_RC \ 18765 postuninstall_cmds_RC \ 18766 old_archive_from_expsyms_cmds_RC \ 18767 allow_undefined_flag_RC \ 18768 no_undefined_flag_RC \ 18769 export_symbols_cmds_RC \ 18770 hardcode_libdir_flag_spec_RC \ 18771 hardcode_libdir_flag_spec_ld_RC \ 18772 hardcode_libdir_separator_RC \ 18773 hardcode_automatic_RC \ 18774 module_cmds_RC \ 18775 module_expsym_cmds_RC \ 18776 lt_cv_prog_compiler_c_o_RC \ 18777 exclude_expsyms_RC \ 18778 include_expsyms_RC; do 18779 18780 case $var in 18781 old_archive_cmds_RC | \ 18782 old_archive_from_new_cmds_RC | \ 18783 archive_cmds_RC | \ 18784 archive_expsym_cmds_RC | \ 18785 module_cmds_RC | \ 18786 module_expsym_cmds_RC | \ 18787 old_archive_from_expsyms_cmds_RC | \ 18788 export_symbols_cmds_RC | \ 18789 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18790 postinstall_cmds | postuninstall_cmds | \ 18791 old_postinstall_cmds | old_postuninstall_cmds | \ 18792 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18793 # Double-quote double-evaled strings. 18794 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18795 ;; 18796 *) 18797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18798 ;; 18799 esac 18800 done 18801 18802 case $lt_echo in 18803 *'\$0 --fallback-echo"') 18804 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18805 ;; 18806 esac 18807 18808cfgfile="$ofile" 18809 18810 cat <<__EOF__ >> "$cfgfile" 18811# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18812 18813# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18814 18815# Shell to use when invoking shell scripts. 18816SHELL=$lt_SHELL 18817 18818# Whether or not to build shared libraries. 18819build_libtool_libs=$enable_shared 18820 18821# Whether or not to build static libraries. 18822build_old_libs=$enable_static 18823 18824# Whether or not to add -lc for building shared libraries. 18825build_libtool_need_lc=$archive_cmds_need_lc_RC 18826 18827# Whether or not to disallow shared libs when runtime libs are static 18828allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18829 18830# Whether or not to optimize for fast installation. 18831fast_install=$enable_fast_install 18832 18833# The host system. 18834host_alias=$host_alias 18835host=$host 18836 18837# An echo program that does not interpret backslashes. 18838echo=$lt_echo 18839 18840# The archiver. 18841AR=$lt_AR 18842AR_FLAGS=$lt_AR_FLAGS 18843 18844# A C compiler. 18845LTCC=$lt_LTCC 18846 18847# A language-specific compiler. 18848CC=$lt_compiler_RC 18849 18850# Is the compiler the GNU C compiler? 18851with_gcc=$GCC_RC 18852 18853# An ERE matcher. 18854EGREP=$lt_EGREP 18855 18856# The linker used to build libraries. 18857LD=$lt_LD_RC 18858 18859# Whether we need hard or soft links. 18860LN_S=$lt_LN_S 18861 18862# A BSD-compatible nm program. 18863NM=$lt_NM 18864 18865# A symbol stripping program 18866STRIP=$lt_STRIP 18867 18868# Used to examine libraries when file_magic_cmd begins "file" 18869MAGIC_CMD=$MAGIC_CMD 18870 18871# Used on cygwin: DLL creation program. 18872DLLTOOL="$DLLTOOL" 18873 18874# Used on cygwin: object dumper. 18875OBJDUMP="$OBJDUMP" 18876 18877# Used on cygwin: assembler. 18878AS="$AS" 18879 18880# The name of the directory that contains temporary libtool files. 18881objdir=$objdir 18882 18883# How to create reloadable object files. 18884reload_flag=$lt_reload_flag 18885reload_cmds=$lt_reload_cmds 18886 18887# How to pass a linker flag through the compiler. 18888wl=$lt_lt_prog_compiler_wl_RC 18889 18890# Object file suffix (normally "o"). 18891objext="$ac_objext" 18892 18893# Old archive suffix (normally "a"). 18894libext="$libext" 18895 18896# Shared library suffix (normally ".so"). 18897shrext_cmds='$shrext_cmds' 18898 18899# Executable file suffix (normally ""). 18900exeext="$exeext" 18901 18902# Additional compiler flags for building library objects. 18903pic_flag=$lt_lt_prog_compiler_pic_RC 18904pic_mode=$pic_mode 18905 18906# What is the maximum length of a command? 18907max_cmd_len=$lt_cv_sys_max_cmd_len 18908 18909# Does compiler simultaneously support -c and -o options? 18910compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18911 18912# Must we lock files when doing compilation ? 18913need_locks=$lt_need_locks 18914 18915# Do we need the lib prefix for modules? 18916need_lib_prefix=$need_lib_prefix 18917 18918# Do we need a version for libraries? 18919need_version=$need_version 18920 18921# Whether dlopen is supported. 18922dlopen_support=$enable_dlopen 18923 18924# Whether dlopen of programs is supported. 18925dlopen_self=$enable_dlopen_self 18926 18927# Whether dlopen of statically linked programs is supported. 18928dlopen_self_static=$enable_dlopen_self_static 18929 18930# Compiler flag to prevent dynamic linking. 18931link_static_flag=$lt_lt_prog_compiler_static_RC 18932 18933# Compiler flag to turn off builtin functions. 18934no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18935 18936# Compiler flag to allow reflexive dlopens. 18937export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18938 18939# Compiler flag to generate shared objects directly from archives. 18940whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18941 18942# Compiler flag to generate thread-safe objects. 18943thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18944 18945# Library versioning type. 18946version_type=$version_type 18947 18948# Format of library name prefix. 18949libname_spec=$lt_libname_spec 18950 18951# List of archive names. First name is the real one, the rest are links. 18952# The last name is the one that the linker finds with -lNAME. 18953library_names_spec=$lt_library_names_spec 18954 18955# The coded name of the library, if different from the real name. 18956soname_spec=$lt_soname_spec 18957 18958# Commands used to build and install an old-style archive. 18959RANLIB=$lt_RANLIB 18960old_archive_cmds=$lt_old_archive_cmds_RC 18961old_postinstall_cmds=$lt_old_postinstall_cmds 18962old_postuninstall_cmds=$lt_old_postuninstall_cmds 18963 18964# Create an old-style archive from a shared archive. 18965old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18966 18967# Create a temporary old-style archive to link instead of a shared archive. 18968old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18969 18970# Commands used to build and install a shared archive. 18971archive_cmds=$lt_archive_cmds_RC 18972archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18973postinstall_cmds=$lt_postinstall_cmds 18974postuninstall_cmds=$lt_postuninstall_cmds 18975 18976# Commands used to build a loadable module (assumed same as above if empty) 18977module_cmds=$lt_module_cmds_RC 18978module_expsym_cmds=$lt_module_expsym_cmds_RC 18979 18980# Commands to strip libraries. 18981old_striplib=$lt_old_striplib 18982striplib=$lt_striplib 18983 18984# Dependencies to place before the objects being linked to create a 18985# shared library. 18986predep_objects=$lt_predep_objects_RC 18987 18988# Dependencies to place after the objects being linked to create a 18989# shared library. 18990postdep_objects=$lt_postdep_objects_RC 18991 18992# Dependencies to place before the objects being linked to create a 18993# shared library. 18994predeps=$lt_predeps_RC 18995 18996# Dependencies to place after the objects being linked to create a 18997# shared library. 18998postdeps=$lt_postdeps_RC 18999 19000# The library search path used internally by the compiler when linking 19001# a shared library. 19002compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19003 19004# Method to check whether dependent libraries are shared objects. 19005deplibs_check_method=$lt_deplibs_check_method 19006 19007# Command to use when deplibs_check_method == file_magic. 19008file_magic_cmd=$lt_file_magic_cmd 19009 19010# Flag that allows shared libraries with undefined symbols to be built. 19011allow_undefined_flag=$lt_allow_undefined_flag_RC 19012 19013# Flag that forces no undefined symbols. 19014no_undefined_flag=$lt_no_undefined_flag_RC 19015 19016# Commands used to finish a libtool library installation in a directory. 19017finish_cmds=$lt_finish_cmds 19018 19019# Same as above, but a single script fragment to be evaled but not shown. 19020finish_eval=$lt_finish_eval 19021 19022# Take the output of nm and produce a listing of raw symbols and C names. 19023global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19024 19025# Transform the output of nm in a proper C declaration 19026global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19027 19028# Transform the output of nm in a C name address pair 19029global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19030 19031# This is the shared library runtime path variable. 19032runpath_var=$runpath_var 19033 19034# This is the shared library path variable. 19035shlibpath_var=$shlibpath_var 19036 19037# Is shlibpath searched before the hard-coded library search path? 19038shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19039 19040# How to hardcode a shared library path into an executable. 19041hardcode_action=$hardcode_action_RC 19042 19043# Whether we should hardcode library paths into libraries. 19044hardcode_into_libs=$hardcode_into_libs 19045 19046# Flag to hardcode \$libdir into a binary during linking. 19047# This must work even if \$libdir does not exist. 19048hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19049 19050# If ld is used when linking, flag to hardcode \$libdir into 19051# a binary during linking. This must work even if \$libdir does 19052# not exist. 19053hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19054 19055# Whether we need a single -rpath flag with a separated argument. 19056hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19057 19058# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19059# resulting binary. 19060hardcode_direct=$hardcode_direct_RC 19061 19062# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19063# resulting binary. 19064hardcode_minus_L=$hardcode_minus_L_RC 19065 19066# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19067# the resulting binary. 19068hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19069 19070# Set to yes if building a shared library automatically hardcodes DIR into the library 19071# and all subsequent libraries and executables linked against it. 19072hardcode_automatic=$hardcode_automatic_RC 19073 19074# Variables whose values should be saved in libtool wrapper scripts and 19075# restored at relink time. 19076variables_saved_for_relink="$variables_saved_for_relink" 19077 19078# Whether libtool must link a program against all its dependency libraries. 19079link_all_deplibs=$link_all_deplibs_RC 19080 19081# Compile-time system search path for libraries 19082sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19083 19084# Run-time system search path for libraries 19085sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19086 19087# Fix the shell variable \$srcfile for the compiler. 19088fix_srcfile_path="$fix_srcfile_path_RC" 19089 19090# Set to yes if exported symbols are required. 19091always_export_symbols=$always_export_symbols_RC 19092 19093# The commands to list exported symbols. 19094export_symbols_cmds=$lt_export_symbols_cmds_RC 19095 19096# The commands to extract the exported symbol list from a shared archive. 19097extract_expsyms_cmds=$lt_extract_expsyms_cmds 19098 19099# Symbols that should not be listed in the preloaded symbols. 19100exclude_expsyms=$lt_exclude_expsyms_RC 19101 19102# Symbols that must always be exported. 19103include_expsyms=$lt_include_expsyms_RC 19104 19105# ### END LIBTOOL TAG CONFIG: $tagname 19106 19107__EOF__ 19108 19109 19110else 19111 # If there is no Makefile yet, we rely on a make rule to execute 19112 # `config.status --recheck' to rerun these tests and create the 19113 # libtool script then. 19114 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19115 if test -f "$ltmain_in"; then 19116 test -f Makefile && make "$ltmain" 19117 fi 19118fi 19119 19120 19121ac_ext=c 19122ac_cpp='$CPP $CPPFLAGS' 19123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19125ac_compiler_gnu=$ac_cv_c_compiler_gnu 19126 19127CC="$lt_save_CC" 19128 19129 ;; 19130 19131 *) 19132 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19133echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19134 { (exit 1); exit 1; }; } 19135 ;; 19136 esac 19137 19138 # Append the new tag name to the list of available tags. 19139 if test -n "$tagname" ; then 19140 available_tags="$available_tags $tagname" 19141 fi 19142 fi 19143 done 19144 IFS="$lt_save_ifs" 19145 19146 # Now substitute the updated list of available tags. 19147 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19148 mv "${ofile}T" "$ofile" 19149 chmod +x "$ofile" 19150 else 19151 rm -f "${ofile}T" 19152 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19153echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19154 { (exit 1); exit 1; }; } 19155 fi 19156fi 19157 19158 19159 19160# This can be used to rebuild libtool when needed 19161LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19162 19163# Always use our own libtool. 19164LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19165 19166# Prevent multiple expansion 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189LINUX_API=0 19190DARWIN_API=0 19191BSD_API=0 19192 19193echo "$as_me:$LINENO: checking for what USB OS support" >&5 19194echo $ECHO_N "checking for what USB OS support... $ECHO_C" >&6 19195case $host in 19196 *-linux*) 19197 cat >>confdefs.h <<\_ACEOF 19198#define LINUX_API 1 19199_ACEOF 19200 19201 cat >>confdefs.h <<\_ACEOF 19202#define BSD_API 0 19203_ACEOF 19204 19205 cat >>confdefs.h <<\_ACEOF 19206#define DARWIN_API 0 19207_ACEOF 19208 19209 LINUX_API=1 19210 os_support=linux 19211 echo "$as_me:$LINENO: result: Linux" >&5 19212echo "${ECHO_T}Linux" >&6 19213 OSLIBS="" 19214 ;; 19215 *-freebsd*|*-kfreebsd*-gnu|*-openbsd*|*-netbsd*) 19216 cat >>confdefs.h <<\_ACEOF 19217#define BSD_API 1 19218_ACEOF 19219 19220 cat >>confdefs.h <<\_ACEOF 19221#define LINUX_API 0 19222_ACEOF 19223 19224 cat >>confdefs.h <<\_ACEOF 19225#define DARWIN_API 0 19226_ACEOF 19227 19228 BSD_API=1 19229 os_support=bsd 19230 echo "$as_me:$LINENO: result: FreeBSD" >&5 19231echo "${ECHO_T}FreeBSD" >&6 19232 OSLIBS="" 19233 ;; 19234 *-darwin*) 19235 cat >>confdefs.h <<\_ACEOF 19236#define DARWIN_API 1 19237_ACEOF 19238 19239 cat >>confdefs.h <<\_ACEOF 19240#define LINUX_API 0 19241_ACEOF 19242 19243 cat >>confdefs.h <<\_ACEOF 19244#define BSD_API 0 19245_ACEOF 19246 19247 DARWIN_API=1 19248 os_support=darwin 19249 echo "$as_me:$LINENO: result: Darwin and/or MacOS 10" >&5 19250echo "${ECHO_T}Darwin and/or MacOS 10" >&6 19251 OSLIBS="-Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind" 19252 ;; 19253 *) 19254 echo "$as_me:$LINENO: result: unknown operating system" >&5 19255echo "${ECHO_T}unknown operating system" >&6 19256 { { echo "$as_me:$LINENO: error: libusb does not support compiling for $host" >&5 19257echo "$as_me: error: libusb does not support compiling for $host" >&2;} 19258 { (exit 1); exit 1; }; } 19259 ;; 19260esac 19261 19262 19263 19264 19265 19266 19267 19268if test "$os_support" = "linux"; then 19269 LINUX_API_TRUE= 19270 LINUX_API_FALSE='#' 19271else 19272 LINUX_API_TRUE='#' 19273 LINUX_API_FALSE= 19274fi 19275 19276 19277 19278if test "$os_support" = "bsd"; then 19279 BSD_API_TRUE= 19280 BSD_API_FALSE='#' 19281else 19282 BSD_API_TRUE='#' 19283 BSD_API_FALSE= 19284fi 19285 19286 19287 19288if test "$os_support" = "darwin"; then 19289 DARWIN_API_TRUE= 19290 DARWIN_API_FALSE='#' 19291else 19292 DARWIN_API_TRUE='#' 19293 DARWIN_API_FALSE= 19294fi 19295 19296 19297 19298 19299if test `expr $LIBUSB_MINOR_VERSION \% 2` = 1 ; then 19300 debug_default=yes 19301else 19302 debug_default=minimum 19303fi 19304 19305# Check whether --enable-debug or --disable-debug was given. 19306if test "${enable_debug+set}" = set; then 19307 enableval="$enable_debug" 19308 19309else 19310 enable_debug=$debug_default 19311fi; 19312 19313if test "x$enable_debug" = "xyes"; then 19314 test "$cflags_set" = set || CFLAGS="$CFLAGS -g" 19315fi 19316 19317# Checks for programs. 19318ac_ext=cc 19319ac_cpp='$CXXCPP $CPPFLAGS' 19320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19323 19324ac_ext=c 19325ac_cpp='$CPP $CPPFLAGS' 19326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19328ac_compiler_gnu=$ac_cv_c_compiler_gnu 19329if test -n "$ac_tool_prefix"; then 19330 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19331set dummy ${ac_tool_prefix}gcc; ac_word=$2 19332echo "$as_me:$LINENO: checking for $ac_word" >&5 19333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19334if test "${ac_cv_prog_CC+set}" = set; then 19335 echo $ECHO_N "(cached) $ECHO_C" >&6 19336else 19337 if test -n "$CC"; then 19338 ac_cv_prog_CC="$CC" # Let the user override the test. 19339else 19340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19341for as_dir in $PATH 19342do 19343 IFS=$as_save_IFS 19344 test -z "$as_dir" && as_dir=. 19345 for ac_exec_ext in '' $ac_executable_extensions; do 19346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19347 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19349 break 2 19350 fi 19351done 19352done 19353 19354fi 19355fi 19356CC=$ac_cv_prog_CC 19357if test -n "$CC"; then 19358 echo "$as_me:$LINENO: result: $CC" >&5 19359echo "${ECHO_T}$CC" >&6 19360else 19361 echo "$as_me:$LINENO: result: no" >&5 19362echo "${ECHO_T}no" >&6 19363fi 19364 19365fi 19366if test -z "$ac_cv_prog_CC"; then 19367 ac_ct_CC=$CC 19368 # Extract the first word of "gcc", so it can be a program name with args. 19369set dummy gcc; ac_word=$2 19370echo "$as_me:$LINENO: checking for $ac_word" >&5 19371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19372if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19373 echo $ECHO_N "(cached) $ECHO_C" >&6 19374else 19375 if test -n "$ac_ct_CC"; then 19376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19377else 19378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19379for as_dir in $PATH 19380do 19381 IFS=$as_save_IFS 19382 test -z "$as_dir" && as_dir=. 19383 for ac_exec_ext in '' $ac_executable_extensions; do 19384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19385 ac_cv_prog_ac_ct_CC="gcc" 19386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19387 break 2 19388 fi 19389done 19390done 19391 19392fi 19393fi 19394ac_ct_CC=$ac_cv_prog_ac_ct_CC 19395if test -n "$ac_ct_CC"; then 19396 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19397echo "${ECHO_T}$ac_ct_CC" >&6 19398else 19399 echo "$as_me:$LINENO: result: no" >&5 19400echo "${ECHO_T}no" >&6 19401fi 19402 19403 CC=$ac_ct_CC 19404else 19405 CC="$ac_cv_prog_CC" 19406fi 19407 19408if test -z "$CC"; then 19409 if test -n "$ac_tool_prefix"; then 19410 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19411set dummy ${ac_tool_prefix}cc; ac_word=$2 19412echo "$as_me:$LINENO: checking for $ac_word" >&5 19413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19414if test "${ac_cv_prog_CC+set}" = set; then 19415 echo $ECHO_N "(cached) $ECHO_C" >&6 19416else 19417 if test -n "$CC"; then 19418 ac_cv_prog_CC="$CC" # Let the user override the test. 19419else 19420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19421for as_dir in $PATH 19422do 19423 IFS=$as_save_IFS 19424 test -z "$as_dir" && as_dir=. 19425 for ac_exec_ext in '' $ac_executable_extensions; do 19426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19427 ac_cv_prog_CC="${ac_tool_prefix}cc" 19428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19429 break 2 19430 fi 19431done 19432done 19433 19434fi 19435fi 19436CC=$ac_cv_prog_CC 19437if test -n "$CC"; then 19438 echo "$as_me:$LINENO: result: $CC" >&5 19439echo "${ECHO_T}$CC" >&6 19440else 19441 echo "$as_me:$LINENO: result: no" >&5 19442echo "${ECHO_T}no" >&6 19443fi 19444 19445fi 19446if test -z "$ac_cv_prog_CC"; then 19447 ac_ct_CC=$CC 19448 # Extract the first word of "cc", so it can be a program name with args. 19449set dummy cc; ac_word=$2 19450echo "$as_me:$LINENO: checking for $ac_word" >&5 19451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19452if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19453 echo $ECHO_N "(cached) $ECHO_C" >&6 19454else 19455 if test -n "$ac_ct_CC"; then 19456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19457else 19458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19459for as_dir in $PATH 19460do 19461 IFS=$as_save_IFS 19462 test -z "$as_dir" && as_dir=. 19463 for ac_exec_ext in '' $ac_executable_extensions; do 19464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19465 ac_cv_prog_ac_ct_CC="cc" 19466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19467 break 2 19468 fi 19469done 19470done 19471 19472fi 19473fi 19474ac_ct_CC=$ac_cv_prog_ac_ct_CC 19475if test -n "$ac_ct_CC"; then 19476 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19477echo "${ECHO_T}$ac_ct_CC" >&6 19478else 19479 echo "$as_me:$LINENO: result: no" >&5 19480echo "${ECHO_T}no" >&6 19481fi 19482 19483 CC=$ac_ct_CC 19484else 19485 CC="$ac_cv_prog_CC" 19486fi 19487 19488fi 19489if test -z "$CC"; then 19490 # Extract the first word of "cc", so it can be a program name with args. 19491set dummy cc; ac_word=$2 19492echo "$as_me:$LINENO: checking for $ac_word" >&5 19493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19494if test "${ac_cv_prog_CC+set}" = set; then 19495 echo $ECHO_N "(cached) $ECHO_C" >&6 19496else 19497 if test -n "$CC"; then 19498 ac_cv_prog_CC="$CC" # Let the user override the test. 19499else 19500 ac_prog_rejected=no 19501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19502for as_dir in $PATH 19503do 19504 IFS=$as_save_IFS 19505 test -z "$as_dir" && as_dir=. 19506 for ac_exec_ext in '' $ac_executable_extensions; do 19507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19509 ac_prog_rejected=yes 19510 continue 19511 fi 19512 ac_cv_prog_CC="cc" 19513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19514 break 2 19515 fi 19516done 19517done 19518 19519if test $ac_prog_rejected = yes; then 19520 # We found a bogon in the path, so make sure we never use it. 19521 set dummy $ac_cv_prog_CC 19522 shift 19523 if test $# != 0; then 19524 # We chose a different compiler from the bogus one. 19525 # However, it has the same basename, so the bogon will be chosen 19526 # first if we set CC to just the basename; use the full file name. 19527 shift 19528 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19529 fi 19530fi 19531fi 19532fi 19533CC=$ac_cv_prog_CC 19534if test -n "$CC"; then 19535 echo "$as_me:$LINENO: result: $CC" >&5 19536echo "${ECHO_T}$CC" >&6 19537else 19538 echo "$as_me:$LINENO: result: no" >&5 19539echo "${ECHO_T}no" >&6 19540fi 19541 19542fi 19543if test -z "$CC"; then 19544 if test -n "$ac_tool_prefix"; then 19545 for ac_prog in cl 19546 do 19547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19548set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19549echo "$as_me:$LINENO: checking for $ac_word" >&5 19550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19551if test "${ac_cv_prog_CC+set}" = set; then 19552 echo $ECHO_N "(cached) $ECHO_C" >&6 19553else 19554 if test -n "$CC"; then 19555 ac_cv_prog_CC="$CC" # Let the user override the test. 19556else 19557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19558for as_dir in $PATH 19559do 19560 IFS=$as_save_IFS 19561 test -z "$as_dir" && as_dir=. 19562 for ac_exec_ext in '' $ac_executable_extensions; do 19563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19564 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19566 break 2 19567 fi 19568done 19569done 19570 19571fi 19572fi 19573CC=$ac_cv_prog_CC 19574if test -n "$CC"; then 19575 echo "$as_me:$LINENO: result: $CC" >&5 19576echo "${ECHO_T}$CC" >&6 19577else 19578 echo "$as_me:$LINENO: result: no" >&5 19579echo "${ECHO_T}no" >&6 19580fi 19581 19582 test -n "$CC" && break 19583 done 19584fi 19585if test -z "$CC"; then 19586 ac_ct_CC=$CC 19587 for ac_prog in cl 19588do 19589 # Extract the first word of "$ac_prog", so it can be a program name with args. 19590set dummy $ac_prog; ac_word=$2 19591echo "$as_me:$LINENO: checking for $ac_word" >&5 19592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19593if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19594 echo $ECHO_N "(cached) $ECHO_C" >&6 19595else 19596 if test -n "$ac_ct_CC"; then 19597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19598else 19599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19600for as_dir in $PATH 19601do 19602 IFS=$as_save_IFS 19603 test -z "$as_dir" && as_dir=. 19604 for ac_exec_ext in '' $ac_executable_extensions; do 19605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19606 ac_cv_prog_ac_ct_CC="$ac_prog" 19607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19608 break 2 19609 fi 19610done 19611done 19612 19613fi 19614fi 19615ac_ct_CC=$ac_cv_prog_ac_ct_CC 19616if test -n "$ac_ct_CC"; then 19617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19618echo "${ECHO_T}$ac_ct_CC" >&6 19619else 19620 echo "$as_me:$LINENO: result: no" >&5 19621echo "${ECHO_T}no" >&6 19622fi 19623 19624 test -n "$ac_ct_CC" && break 19625done 19626 19627 CC=$ac_ct_CC 19628fi 19629 19630fi 19631 19632 19633test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19634See \`config.log' for more details." >&5 19635echo "$as_me: error: no acceptable C compiler found in \$PATH 19636See \`config.log' for more details." >&2;} 19637 { (exit 1); exit 1; }; } 19638 19639# Provide some information about the compiler. 19640echo "$as_me:$LINENO:" \ 19641 "checking for C compiler version" >&5 19642ac_compiler=`set X $ac_compile; echo $2` 19643{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 19644 (eval $ac_compiler --version </dev/null >&5) 2>&5 19645 ac_status=$? 19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19647 (exit $ac_status); } 19648{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 19649 (eval $ac_compiler -v </dev/null >&5) 2>&5 19650 ac_status=$? 19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19652 (exit $ac_status); } 19653{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 19654 (eval $ac_compiler -V </dev/null >&5) 2>&5 19655 ac_status=$? 19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19657 (exit $ac_status); } 19658 19659echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19660echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 19661if test "${ac_cv_c_compiler_gnu+set}" = set; then 19662 echo $ECHO_N "(cached) $ECHO_C" >&6 19663else 19664 cat >conftest.$ac_ext <<_ACEOF 19665/* confdefs.h. */ 19666_ACEOF 19667cat confdefs.h >>conftest.$ac_ext 19668cat >>conftest.$ac_ext <<_ACEOF 19669/* end confdefs.h. */ 19670 19671int 19672main () 19673{ 19674#ifndef __GNUC__ 19675 choke me 19676#endif 19677 19678 ; 19679 return 0; 19680} 19681_ACEOF 19682rm -f conftest.$ac_objext 19683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19684 (eval $ac_compile) 2>conftest.er1 19685 ac_status=$? 19686 grep -v '^ *+' conftest.er1 >conftest.err 19687 rm -f conftest.er1 19688 cat conftest.err >&5 19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19690 (exit $ac_status); } && 19691 { ac_try='test -z "$ac_c_werror_flag" 19692 || test ! -s conftest.err' 19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19694 (eval $ac_try) 2>&5 19695 ac_status=$? 19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19697 (exit $ac_status); }; } && 19698 { ac_try='test -s conftest.$ac_objext' 19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19700 (eval $ac_try) 2>&5 19701 ac_status=$? 19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19703 (exit $ac_status); }; }; then 19704 ac_compiler_gnu=yes 19705else 19706 echo "$as_me: failed program was:" >&5 19707sed 's/^/| /' conftest.$ac_ext >&5 19708 19709ac_compiler_gnu=no 19710fi 19711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19712ac_cv_c_compiler_gnu=$ac_compiler_gnu 19713 19714fi 19715echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19716echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 19717GCC=`test $ac_compiler_gnu = yes && echo yes` 19718ac_test_CFLAGS=${CFLAGS+set} 19719ac_save_CFLAGS=$CFLAGS 19720CFLAGS="-g" 19721echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19722echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 19723if test "${ac_cv_prog_cc_g+set}" = set; then 19724 echo $ECHO_N "(cached) $ECHO_C" >&6 19725else 19726 cat >conftest.$ac_ext <<_ACEOF 19727/* confdefs.h. */ 19728_ACEOF 19729cat confdefs.h >>conftest.$ac_ext 19730cat >>conftest.$ac_ext <<_ACEOF 19731/* end confdefs.h. */ 19732 19733int 19734main () 19735{ 19736 19737 ; 19738 return 0; 19739} 19740_ACEOF 19741rm -f conftest.$ac_objext 19742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19743 (eval $ac_compile) 2>conftest.er1 19744 ac_status=$? 19745 grep -v '^ *+' conftest.er1 >conftest.err 19746 rm -f conftest.er1 19747 cat conftest.err >&5 19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19749 (exit $ac_status); } && 19750 { ac_try='test -z "$ac_c_werror_flag" 19751 || test ! -s conftest.err' 19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19753 (eval $ac_try) 2>&5 19754 ac_status=$? 19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19756 (exit $ac_status); }; } && 19757 { ac_try='test -s conftest.$ac_objext' 19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19759 (eval $ac_try) 2>&5 19760 ac_status=$? 19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19762 (exit $ac_status); }; }; then 19763 ac_cv_prog_cc_g=yes 19764else 19765 echo "$as_me: failed program was:" >&5 19766sed 's/^/| /' conftest.$ac_ext >&5 19767 19768ac_cv_prog_cc_g=no 19769fi 19770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19771fi 19772echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19773echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 19774if test "$ac_test_CFLAGS" = set; then 19775 CFLAGS=$ac_save_CFLAGS 19776elif test $ac_cv_prog_cc_g = yes; then 19777 if test "$GCC" = yes; then 19778 CFLAGS="-g -O2" 19779 else 19780 CFLAGS="-g" 19781 fi 19782else 19783 if test "$GCC" = yes; then 19784 CFLAGS="-O2" 19785 else 19786 CFLAGS= 19787 fi 19788fi 19789echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 19790echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 19791if test "${ac_cv_prog_cc_stdc+set}" = set; then 19792 echo $ECHO_N "(cached) $ECHO_C" >&6 19793else 19794 ac_cv_prog_cc_stdc=no 19795ac_save_CC=$CC 19796cat >conftest.$ac_ext <<_ACEOF 19797/* confdefs.h. */ 19798_ACEOF 19799cat confdefs.h >>conftest.$ac_ext 19800cat >>conftest.$ac_ext <<_ACEOF 19801/* end confdefs.h. */ 19802#include <stdarg.h> 19803#include <stdio.h> 19804#include <sys/types.h> 19805#include <sys/stat.h> 19806/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19807struct buf { int x; }; 19808FILE * (*rcsopen) (struct buf *, struct stat *, int); 19809static char *e (p, i) 19810 char **p; 19811 int i; 19812{ 19813 return p[i]; 19814} 19815static char *f (char * (*g) (char **, int), char **p, ...) 19816{ 19817 char *s; 19818 va_list v; 19819 va_start (v,p); 19820 s = g (p, va_arg (v,int)); 19821 va_end (v); 19822 return s; 19823} 19824 19825/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19826 function prototypes and stuff, but not '\xHH' hex character constants. 19827 These don't provoke an error unfortunately, instead are silently treated 19828 as 'x'. The following induces an error, until -std1 is added to get 19829 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19830 array size at least. It's necessary to write '\x00'==0 to get something 19831 that's true only with -std1. */ 19832int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19833 19834int test (int i, double x); 19835struct s1 {int (*f) (int a);}; 19836struct s2 {int (*f) (double a);}; 19837int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19838int argc; 19839char **argv; 19840int 19841main () 19842{ 19843return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19844 ; 19845 return 0; 19846} 19847_ACEOF 19848# Don't try gcc -ansi; that turns off useful extensions and 19849# breaks some systems' header files. 19850# AIX -qlanglvl=ansi 19851# Ultrix and OSF/1 -std1 19852# HP-UX 10.20 and later -Ae 19853# HP-UX older versions -Aa -D_HPUX_SOURCE 19854# SVR4 -Xc -D__EXTENSIONS__ 19855for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19856do 19857 CC="$ac_save_CC $ac_arg" 19858 rm -f conftest.$ac_objext 19859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19860 (eval $ac_compile) 2>conftest.er1 19861 ac_status=$? 19862 grep -v '^ *+' conftest.er1 >conftest.err 19863 rm -f conftest.er1 19864 cat conftest.err >&5 19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19866 (exit $ac_status); } && 19867 { ac_try='test -z "$ac_c_werror_flag" 19868 || test ! -s conftest.err' 19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19870 (eval $ac_try) 2>&5 19871 ac_status=$? 19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19873 (exit $ac_status); }; } && 19874 { ac_try='test -s conftest.$ac_objext' 19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19876 (eval $ac_try) 2>&5 19877 ac_status=$? 19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19879 (exit $ac_status); }; }; then 19880 ac_cv_prog_cc_stdc=$ac_arg 19881break 19882else 19883 echo "$as_me: failed program was:" >&5 19884sed 's/^/| /' conftest.$ac_ext >&5 19885 19886fi 19887rm -f conftest.err conftest.$ac_objext 19888done 19889rm -f conftest.$ac_ext conftest.$ac_objext 19890CC=$ac_save_CC 19891 19892fi 19893 19894case "x$ac_cv_prog_cc_stdc" in 19895 x|xno) 19896 echo "$as_me:$LINENO: result: none needed" >&5 19897echo "${ECHO_T}none needed" >&6 ;; 19898 *) 19899 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 19900echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 19901 CC="$CC $ac_cv_prog_cc_stdc" ;; 19902esac 19903 19904# Some people use a C++ compiler to compile C. Since we use `exit', 19905# in C++ we need to declare it. In case someone uses the same compiler 19906# for both compiling C and C++ we need to have the C++ compiler decide 19907# the declaration of exit, since it's the most demanding environment. 19908cat >conftest.$ac_ext <<_ACEOF 19909#ifndef __cplusplus 19910 choke me 19911#endif 19912_ACEOF 19913rm -f conftest.$ac_objext 19914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19915 (eval $ac_compile) 2>conftest.er1 19916 ac_status=$? 19917 grep -v '^ *+' conftest.er1 >conftest.err 19918 rm -f conftest.er1 19919 cat conftest.err >&5 19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19921 (exit $ac_status); } && 19922 { ac_try='test -z "$ac_c_werror_flag" 19923 || test ! -s conftest.err' 19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19925 (eval $ac_try) 2>&5 19926 ac_status=$? 19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19928 (exit $ac_status); }; } && 19929 { ac_try='test -s conftest.$ac_objext' 19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19931 (eval $ac_try) 2>&5 19932 ac_status=$? 19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19934 (exit $ac_status); }; }; then 19935 for ac_declaration in \ 19936 '' \ 19937 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19938 'extern "C" void std::exit (int); using std::exit;' \ 19939 'extern "C" void exit (int) throw ();' \ 19940 'extern "C" void exit (int);' \ 19941 'void exit (int);' 19942do 19943 cat >conftest.$ac_ext <<_ACEOF 19944/* confdefs.h. */ 19945_ACEOF 19946cat confdefs.h >>conftest.$ac_ext 19947cat >>conftest.$ac_ext <<_ACEOF 19948/* end confdefs.h. */ 19949$ac_declaration 19950#include <stdlib.h> 19951int 19952main () 19953{ 19954exit (42); 19955 ; 19956 return 0; 19957} 19958_ACEOF 19959rm -f conftest.$ac_objext 19960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19961 (eval $ac_compile) 2>conftest.er1 19962 ac_status=$? 19963 grep -v '^ *+' conftest.er1 >conftest.err 19964 rm -f conftest.er1 19965 cat conftest.err >&5 19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19967 (exit $ac_status); } && 19968 { ac_try='test -z "$ac_c_werror_flag" 19969 || test ! -s conftest.err' 19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19971 (eval $ac_try) 2>&5 19972 ac_status=$? 19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19974 (exit $ac_status); }; } && 19975 { ac_try='test -s conftest.$ac_objext' 19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19977 (eval $ac_try) 2>&5 19978 ac_status=$? 19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19980 (exit $ac_status); }; }; then 19981 : 19982else 19983 echo "$as_me: failed program was:" >&5 19984sed 's/^/| /' conftest.$ac_ext >&5 19985 19986continue 19987fi 19988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19989 cat >conftest.$ac_ext <<_ACEOF 19990/* confdefs.h. */ 19991_ACEOF 19992cat confdefs.h >>conftest.$ac_ext 19993cat >>conftest.$ac_ext <<_ACEOF 19994/* end confdefs.h. */ 19995$ac_declaration 19996int 19997main () 19998{ 19999exit (42); 20000 ; 20001 return 0; 20002} 20003_ACEOF 20004rm -f conftest.$ac_objext 20005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20006 (eval $ac_compile) 2>conftest.er1 20007 ac_status=$? 20008 grep -v '^ *+' conftest.er1 >conftest.err 20009 rm -f conftest.er1 20010 cat conftest.err >&5 20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20012 (exit $ac_status); } && 20013 { ac_try='test -z "$ac_c_werror_flag" 20014 || test ! -s conftest.err' 20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20016 (eval $ac_try) 2>&5 20017 ac_status=$? 20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20019 (exit $ac_status); }; } && 20020 { ac_try='test -s conftest.$ac_objext' 20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20022 (eval $ac_try) 2>&5 20023 ac_status=$? 20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20025 (exit $ac_status); }; }; then 20026 break 20027else 20028 echo "$as_me: failed program was:" >&5 20029sed 's/^/| /' conftest.$ac_ext >&5 20030 20031fi 20032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20033done 20034rm -f conftest* 20035if test -n "$ac_declaration"; then 20036 echo '#ifdef __cplusplus' >>confdefs.h 20037 echo $ac_declaration >>confdefs.h 20038 echo '#endif' >>confdefs.h 20039fi 20040 20041else 20042 echo "$as_me: failed program was:" >&5 20043sed 's/^/| /' conftest.$ac_ext >&5 20044 20045fi 20046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20047ac_ext=cc 20048ac_cpp='$CXXCPP $CPPFLAGS' 20049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20052 20053depcc="$CC" am_compiler_list= 20054 20055echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20056echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 20057if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20058 echo $ECHO_N "(cached) $ECHO_C" >&6 20059else 20060 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20061 # We make a subdir and do the tests there. Otherwise we can end up 20062 # making bogus files that we don't know about and never remove. For 20063 # instance it was reported that on HP-UX the gcc test will end up 20064 # making a dummy file named `D' -- because `-MD' means `put the output 20065 # in D'. 20066 mkdir conftest.dir 20067 # Copy depcomp to subdir because otherwise we won't find it if we're 20068 # using a relative directory. 20069 cp "$am_depcomp" conftest.dir 20070 cd conftest.dir 20071 # We will build objects and dependencies in a subdirectory because 20072 # it helps to detect inapplicable dependency modes. For instance 20073 # both Tru64's cc and ICC support -MD to output dependencies as a 20074 # side effect of compilation, but ICC will put the dependencies in 20075 # the current directory while Tru64 will put them in the object 20076 # directory. 20077 mkdir sub 20078 20079 am_cv_CC_dependencies_compiler_type=none 20080 if test "$am_compiler_list" = ""; then 20081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20082 fi 20083 for depmode in $am_compiler_list; do 20084 # Setup a source with many dependencies, because some compilers 20085 # like to wrap large dependency lists on column 80 (with \), and 20086 # we should not choose a depcomp mode which is confused by this. 20087 # 20088 # We need to recreate these files for each test, as the compiler may 20089 # overwrite some of them when testing with obscure command lines. 20090 # This happens at least with the AIX C compiler. 20091 : > sub/conftest.c 20092 for i in 1 2 3 4 5 6; do 20093 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20094 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20095 # Solaris 8's {/usr,}/bin/sh. 20096 touch sub/conftst$i.h 20097 done 20098 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20099 20100 case $depmode in 20101 nosideeffect) 20102 # after this tag, mechanisms are not by side-effect, so they'll 20103 # only be used when explicitly requested 20104 if test "x$enable_dependency_tracking" = xyes; then 20105 continue 20106 else 20107 break 20108 fi 20109 ;; 20110 none) break ;; 20111 esac 20112 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20113 # mode. It turns out that the SunPro C++ compiler does not properly 20114 # handle `-M -o', and we need to detect this. 20115 if depmode=$depmode \ 20116 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20117 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20118 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20119 >/dev/null 2>conftest.err && 20120 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20121 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20122 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20123 # icc doesn't choke on unknown options, it will just issue warnings 20124 # (even with -Werror). So we grep stderr for any message 20125 # that says an option was ignored. 20126 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 20127 am_cv_CC_dependencies_compiler_type=$depmode 20128 break 20129 fi 20130 fi 20131 done 20132 20133 cd .. 20134 rm -rf conftest.dir 20135else 20136 am_cv_CC_dependencies_compiler_type=none 20137fi 20138 20139fi 20140echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20141echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 20142CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20143 20144 20145 20146if 20147 test "x$enable_dependency_tracking" != xno \ 20148 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20149 am__fastdepCC_TRUE= 20150 am__fastdepCC_FALSE='#' 20151else 20152 am__fastdepCC_TRUE='#' 20153 am__fastdepCC_FALSE= 20154fi 20155 20156 20157if test "x$CC" != xcc; then 20158 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 20159echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 20160else 20161 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 20162echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 20163fi 20164set dummy $CC; ac_cc=`echo $2 | 20165 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 20166if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then 20167 echo $ECHO_N "(cached) $ECHO_C" >&6 20168else 20169 cat >conftest.$ac_ext <<_ACEOF 20170/* confdefs.h. */ 20171_ACEOF 20172cat confdefs.h >>conftest.$ac_ext 20173cat >>conftest.$ac_ext <<_ACEOF 20174/* end confdefs.h. */ 20175 20176int 20177main () 20178{ 20179 20180 ; 20181 return 0; 20182} 20183_ACEOF 20184# Make sure it works both with $CC and with simple cc. 20185# We do the test twice because some compilers refuse to overwrite an 20186# existing .o file with -o, though they will create one. 20187ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' 20188if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20189 (eval $ac_try) 2>&5 20190 ac_status=$? 20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20192 (exit $ac_status); } && 20193 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20194 (eval $ac_try) 2>&5 20195 ac_status=$? 20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20197 (exit $ac_status); }; 20198then 20199 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 20200 if test "x$CC" != xcc; then 20201 # Test first that cc exists at all. 20202 if { ac_try='cc -c conftest.$ac_ext >&5' 20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20204 (eval $ac_try) 2>&5 20205 ac_status=$? 20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20207 (exit $ac_status); }; }; then 20208 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' 20209 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20210 (eval $ac_try) 2>&5 20211 ac_status=$? 20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20213 (exit $ac_status); } && 20214 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20215 (eval $ac_try) 2>&5 20216 ac_status=$? 20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20218 (exit $ac_status); }; 20219 then 20220 # cc works too. 20221 : 20222 else 20223 # cc exists but doesn't like -o. 20224 eval ac_cv_prog_cc_${ac_cc}_c_o=no 20225 fi 20226 fi 20227 fi 20228else 20229 eval ac_cv_prog_cc_${ac_cc}_c_o=no 20230fi 20231rm -f conftest* 20232 20233fi 20234if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 20235 echo "$as_me:$LINENO: result: yes" >&5 20236echo "${ECHO_T}yes" >&6 20237else 20238 echo "$as_me:$LINENO: result: no" >&5 20239echo "${ECHO_T}no" >&6 20240 20241cat >>confdefs.h <<\_ACEOF 20242#define NO_MINUS_C_MINUS_O 1 20243_ACEOF 20244 20245fi 20246 20247# FIXME: we rely on the cache variable name because 20248# there is no other way. 20249set dummy $CC 20250ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 20251if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 20252 # Losing compiler, so override with the script. 20253 # FIXME: It is wrong to rewrite CC. 20254 # But if we don't then we get into trouble of one sort or another. 20255 # A longer-term fix would be to have automake use am__CC in this case, 20256 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 20257 CC="$am_aux_dir/compile $CC" 20258fi 20259 20260# Find a good install program. We prefer a C program (faster), 20261# so one script is as good as another. But avoid the broken or 20262# incompatible versions: 20263# SysV /etc/install, /usr/sbin/install 20264# SunOS /usr/etc/install 20265# IRIX /sbin/install 20266# AIX /bin/install 20267# AmigaOS /C/install, which installs bootblocks on floppy discs 20268# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 20269# AFS /usr/afsws/bin/install, which mishandles nonexistent args 20270# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 20271# OS/2's system install, which has a completely different semantic 20272# ./install, which can be erroneously created by make from ./install.sh. 20273echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 20274echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 20275if test -z "$INSTALL"; then 20276if test "${ac_cv_path_install+set}" = set; then 20277 echo $ECHO_N "(cached) $ECHO_C" >&6 20278else 20279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20280for as_dir in $PATH 20281do 20282 IFS=$as_save_IFS 20283 test -z "$as_dir" && as_dir=. 20284 # Account for people who put trailing slashes in PATH elements. 20285case $as_dir/ in 20286 ./ | .// | /cC/* | \ 20287 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 20288 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 20289 /usr/ucb/* ) ;; 20290 *) 20291 # OSF1 and SCO ODT 3.0 have their own names for install. 20292 # Don't use installbsd from OSF since it installs stuff as root 20293 # by default. 20294 for ac_prog in ginstall scoinst install; do 20295 for ac_exec_ext in '' $ac_executable_extensions; do 20296 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 20297 if test $ac_prog = install && 20298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20299 # AIX install. It has an incompatible calling convention. 20300 : 20301 elif test $ac_prog = install && 20302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20303 # program-specific install script used by HP pwplus--don't use. 20304 : 20305 else 20306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 20307 break 3 20308 fi 20309 fi 20310 done 20311 done 20312 ;; 20313esac 20314done 20315 20316 20317fi 20318 if test "${ac_cv_path_install+set}" = set; then 20319 INSTALL=$ac_cv_path_install 20320 else 20321 # As a last resort, use the slow shell script. We don't cache a 20322 # path for INSTALL within a source directory, because that will 20323 # break other packages using the cache if that directory is 20324 # removed, or if the path is relative. 20325 INSTALL=$ac_install_sh 20326 fi 20327fi 20328echo "$as_me:$LINENO: result: $INSTALL" >&5 20329echo "${ECHO_T}$INSTALL" >&6 20330 20331# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 20332# It thinks the first close brace ends the variable substitution. 20333test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 20334 20335test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 20336 20337test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 20338 20339 20340if test "x$GCC" = "xyes"; then 20341 case " $CFLAGS " in 20342 *[\ \ ]-Wall[\ \ ]*) ;; 20343 *) CFLAGS="$CFLAGS -Wall" ;; 20344 esac 20345fi 20346 20347# Checks for header files. 20348 20349echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20350echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 20351if test "${ac_cv_header_stdc+set}" = set; then 20352 echo $ECHO_N "(cached) $ECHO_C" >&6 20353else 20354 cat >conftest.$ac_ext <<_ACEOF 20355/* confdefs.h. */ 20356_ACEOF 20357cat confdefs.h >>conftest.$ac_ext 20358cat >>conftest.$ac_ext <<_ACEOF 20359/* end confdefs.h. */ 20360#include <stdlib.h> 20361#include <stdarg.h> 20362#include <string.h> 20363#include <float.h> 20364 20365int 20366main () 20367{ 20368 20369 ; 20370 return 0; 20371} 20372_ACEOF 20373rm -f conftest.$ac_objext 20374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20375 (eval $ac_compile) 2>conftest.er1 20376 ac_status=$? 20377 grep -v '^ *+' conftest.er1 >conftest.err 20378 rm -f conftest.er1 20379 cat conftest.err >&5 20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20381 (exit $ac_status); } && 20382 { ac_try='test -z "$ac_cxx_werror_flag" 20383 || test ! -s conftest.err' 20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20385 (eval $ac_try) 2>&5 20386 ac_status=$? 20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20388 (exit $ac_status); }; } && 20389 { ac_try='test -s conftest.$ac_objext' 20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20391 (eval $ac_try) 2>&5 20392 ac_status=$? 20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20394 (exit $ac_status); }; }; then 20395 ac_cv_header_stdc=yes 20396else 20397 echo "$as_me: failed program was:" >&5 20398sed 's/^/| /' conftest.$ac_ext >&5 20399 20400ac_cv_header_stdc=no 20401fi 20402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20403 20404if test $ac_cv_header_stdc = yes; then 20405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20406 cat >conftest.$ac_ext <<_ACEOF 20407/* confdefs.h. */ 20408_ACEOF 20409cat confdefs.h >>conftest.$ac_ext 20410cat >>conftest.$ac_ext <<_ACEOF 20411/* end confdefs.h. */ 20412#include <string.h> 20413 20414_ACEOF 20415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20416 $EGREP "memchr" >/dev/null 2>&1; then 20417 : 20418else 20419 ac_cv_header_stdc=no 20420fi 20421rm -f conftest* 20422 20423fi 20424 20425if test $ac_cv_header_stdc = yes; then 20426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20427 cat >conftest.$ac_ext <<_ACEOF 20428/* confdefs.h. */ 20429_ACEOF 20430cat confdefs.h >>conftest.$ac_ext 20431cat >>conftest.$ac_ext <<_ACEOF 20432/* end confdefs.h. */ 20433#include <stdlib.h> 20434 20435_ACEOF 20436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20437 $EGREP "free" >/dev/null 2>&1; then 20438 : 20439else 20440 ac_cv_header_stdc=no 20441fi 20442rm -f conftest* 20443 20444fi 20445 20446if test $ac_cv_header_stdc = yes; then 20447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20448 if test "$cross_compiling" = yes; then 20449 : 20450else 20451 cat >conftest.$ac_ext <<_ACEOF 20452/* confdefs.h. */ 20453_ACEOF 20454cat confdefs.h >>conftest.$ac_ext 20455cat >>conftest.$ac_ext <<_ACEOF 20456/* end confdefs.h. */ 20457#include <ctype.h> 20458#if ((' ' & 0x0FF) == 0x020) 20459# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20460# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20461#else 20462# define ISLOWER(c) \ 20463 (('a' <= (c) && (c) <= 'i') \ 20464 || ('j' <= (c) && (c) <= 'r') \ 20465 || ('s' <= (c) && (c) <= 'z')) 20466# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20467#endif 20468 20469#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20470int 20471main () 20472{ 20473 int i; 20474 for (i = 0; i < 256; i++) 20475 if (XOR (islower (i), ISLOWER (i)) 20476 || toupper (i) != TOUPPER (i)) 20477 exit(2); 20478 exit (0); 20479} 20480_ACEOF 20481rm -f conftest$ac_exeext 20482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20483 (eval $ac_link) 2>&5 20484 ac_status=$? 20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20488 (eval $ac_try) 2>&5 20489 ac_status=$? 20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20491 (exit $ac_status); }; }; then 20492 : 20493else 20494 echo "$as_me: program exited with status $ac_status" >&5 20495echo "$as_me: failed program was:" >&5 20496sed 's/^/| /' conftest.$ac_ext >&5 20497 20498( exit $ac_status ) 20499ac_cv_header_stdc=no 20500fi 20501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20502fi 20503fi 20504fi 20505echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20506echo "${ECHO_T}$ac_cv_header_stdc" >&6 20507if test $ac_cv_header_stdc = yes; then 20508 20509cat >>confdefs.h <<\_ACEOF 20510#define STDC_HEADERS 1 20511_ACEOF 20512 20513fi 20514 20515 20516# Checks for library functions. 20517 20518for ac_func in vprintf 20519do 20520as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20521echo "$as_me:$LINENO: checking for $ac_func" >&5 20522echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20523if eval "test \"\${$as_ac_var+set}\" = set"; then 20524 echo $ECHO_N "(cached) $ECHO_C" >&6 20525else 20526 cat >conftest.$ac_ext <<_ACEOF 20527/* confdefs.h. */ 20528_ACEOF 20529cat confdefs.h >>conftest.$ac_ext 20530cat >>conftest.$ac_ext <<_ACEOF 20531/* end confdefs.h. */ 20532/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20533 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20534#define $ac_func innocuous_$ac_func 20535 20536/* System header to define __stub macros and hopefully few prototypes, 20537 which can conflict with char $ac_func (); below. 20538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20539 <limits.h> exists even on freestanding compilers. */ 20540 20541#ifdef __STDC__ 20542# include <limits.h> 20543#else 20544# include <assert.h> 20545#endif 20546 20547#undef $ac_func 20548 20549/* Override any gcc2 internal prototype to avoid an error. */ 20550#ifdef __cplusplus 20551extern "C" 20552{ 20553#endif 20554/* We use char because int might match the return type of a gcc2 20555 builtin and then its argument prototype would still apply. */ 20556char $ac_func (); 20557/* The GNU C library defines this for functions which it implements 20558 to always fail with ENOSYS. Some functions are actually named 20559 something starting with __ and the normal name is an alias. */ 20560#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20561choke me 20562#else 20563char (*f) () = $ac_func; 20564#endif 20565#ifdef __cplusplus 20566} 20567#endif 20568 20569int 20570main () 20571{ 20572return f != $ac_func; 20573 ; 20574 return 0; 20575} 20576_ACEOF 20577rm -f conftest.$ac_objext conftest$ac_exeext 20578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20579 (eval $ac_link) 2>conftest.er1 20580 ac_status=$? 20581 grep -v '^ *+' conftest.er1 >conftest.err 20582 rm -f conftest.er1 20583 cat conftest.err >&5 20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20585 (exit $ac_status); } && 20586 { ac_try='test -z "$ac_cxx_werror_flag" 20587 || test ! -s conftest.err' 20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20589 (eval $ac_try) 2>&5 20590 ac_status=$? 20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20592 (exit $ac_status); }; } && 20593 { ac_try='test -s conftest$ac_exeext' 20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20595 (eval $ac_try) 2>&5 20596 ac_status=$? 20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20598 (exit $ac_status); }; }; then 20599 eval "$as_ac_var=yes" 20600else 20601 echo "$as_me: failed program was:" >&5 20602sed 's/^/| /' conftest.$ac_ext >&5 20603 20604eval "$as_ac_var=no" 20605fi 20606rm -f conftest.err conftest.$ac_objext \ 20607 conftest$ac_exeext conftest.$ac_ext 20608fi 20609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20611if test `eval echo '${'$as_ac_var'}'` = yes; then 20612 cat >>confdefs.h <<_ACEOF 20613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20614_ACEOF 20615 20616echo "$as_me:$LINENO: checking for _doprnt" >&5 20617echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 20618if test "${ac_cv_func__doprnt+set}" = set; then 20619 echo $ECHO_N "(cached) $ECHO_C" >&6 20620else 20621 cat >conftest.$ac_ext <<_ACEOF 20622/* confdefs.h. */ 20623_ACEOF 20624cat confdefs.h >>conftest.$ac_ext 20625cat >>conftest.$ac_ext <<_ACEOF 20626/* end confdefs.h. */ 20627/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 20628 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20629#define _doprnt innocuous__doprnt 20630 20631/* System header to define __stub macros and hopefully few prototypes, 20632 which can conflict with char _doprnt (); below. 20633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20634 <limits.h> exists even on freestanding compilers. */ 20635 20636#ifdef __STDC__ 20637# include <limits.h> 20638#else 20639# include <assert.h> 20640#endif 20641 20642#undef _doprnt 20643 20644/* Override any gcc2 internal prototype to avoid an error. */ 20645#ifdef __cplusplus 20646extern "C" 20647{ 20648#endif 20649/* We use char because int might match the return type of a gcc2 20650 builtin and then its argument prototype would still apply. */ 20651char _doprnt (); 20652/* The GNU C library defines this for functions which it implements 20653 to always fail with ENOSYS. Some functions are actually named 20654 something starting with __ and the normal name is an alias. */ 20655#if defined (__stub__doprnt) || defined (__stub____doprnt) 20656choke me 20657#else 20658char (*f) () = _doprnt; 20659#endif 20660#ifdef __cplusplus 20661} 20662#endif 20663 20664int 20665main () 20666{ 20667return f != _doprnt; 20668 ; 20669 return 0; 20670} 20671_ACEOF 20672rm -f conftest.$ac_objext conftest$ac_exeext 20673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20674 (eval $ac_link) 2>conftest.er1 20675 ac_status=$? 20676 grep -v '^ *+' conftest.er1 >conftest.err 20677 rm -f conftest.er1 20678 cat conftest.err >&5 20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20680 (exit $ac_status); } && 20681 { ac_try='test -z "$ac_cxx_werror_flag" 20682 || test ! -s conftest.err' 20683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20684 (eval $ac_try) 2>&5 20685 ac_status=$? 20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20687 (exit $ac_status); }; } && 20688 { ac_try='test -s conftest$ac_exeext' 20689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20690 (eval $ac_try) 2>&5 20691 ac_status=$? 20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20693 (exit $ac_status); }; }; then 20694 ac_cv_func__doprnt=yes 20695else 20696 echo "$as_me: failed program was:" >&5 20697sed 's/^/| /' conftest.$ac_ext >&5 20698 20699ac_cv_func__doprnt=no 20700fi 20701rm -f conftest.err conftest.$ac_objext \ 20702 conftest$ac_exeext conftest.$ac_ext 20703fi 20704echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 20705echo "${ECHO_T}$ac_cv_func__doprnt" >&6 20706if test $ac_cv_func__doprnt = yes; then 20707 20708cat >>confdefs.h <<\_ACEOF 20709#define HAVE_DOPRNT 1 20710_ACEOF 20711 20712fi 20713 20714fi 20715done 20716 20717 20718 20719echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20720echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 20721if test "${ac_cv_c_const+set}" = set; then 20722 echo $ECHO_N "(cached) $ECHO_C" >&6 20723else 20724 cat >conftest.$ac_ext <<_ACEOF 20725/* confdefs.h. */ 20726_ACEOF 20727cat confdefs.h >>conftest.$ac_ext 20728cat >>conftest.$ac_ext <<_ACEOF 20729/* end confdefs.h. */ 20730 20731int 20732main () 20733{ 20734/* FIXME: Include the comments suggested by Paul. */ 20735#ifndef __cplusplus 20736 /* Ultrix mips cc rejects this. */ 20737 typedef int charset[2]; 20738 const charset x; 20739 /* SunOS 4.1.1 cc rejects this. */ 20740 char const *const *ccp; 20741 char **p; 20742 /* NEC SVR4.0.2 mips cc rejects this. */ 20743 struct point {int x, y;}; 20744 static struct point const zero = {0,0}; 20745 /* AIX XL C 1.02.0.0 rejects this. 20746 It does not let you subtract one const X* pointer from another in 20747 an arm of an if-expression whose if-part is not a constant 20748 expression */ 20749 const char *g = "string"; 20750 ccp = &g + (g ? g-g : 0); 20751 /* HPUX 7.0 cc rejects these. */ 20752 ++ccp; 20753 p = (char**) ccp; 20754 ccp = (char const *const *) p; 20755 { /* SCO 3.2v4 cc rejects this. */ 20756 char *t; 20757 char const *s = 0 ? (char *) 0 : (char const *) 0; 20758 20759 *t++ = 0; 20760 } 20761 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20762 int x[] = {25, 17}; 20763 const int *foo = &x[0]; 20764 ++foo; 20765 } 20766 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20767 typedef const int *iptr; 20768 iptr p = 0; 20769 ++p; 20770 } 20771 { /* AIX XL C 1.02.0.0 rejects this saying 20772 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20773 struct s { int j; const int *ap[3]; }; 20774 struct s *b; b->j = 5; 20775 } 20776 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20777 const int foo = 10; 20778 } 20779#endif 20780 20781 ; 20782 return 0; 20783} 20784_ACEOF 20785rm -f conftest.$ac_objext 20786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20787 (eval $ac_compile) 2>conftest.er1 20788 ac_status=$? 20789 grep -v '^ *+' conftest.er1 >conftest.err 20790 rm -f conftest.er1 20791 cat conftest.err >&5 20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20793 (exit $ac_status); } && 20794 { ac_try='test -z "$ac_cxx_werror_flag" 20795 || test ! -s conftest.err' 20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20797 (eval $ac_try) 2>&5 20798 ac_status=$? 20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20800 (exit $ac_status); }; } && 20801 { ac_try='test -s conftest.$ac_objext' 20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20803 (eval $ac_try) 2>&5 20804 ac_status=$? 20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20806 (exit $ac_status); }; }; then 20807 ac_cv_c_const=yes 20808else 20809 echo "$as_me: failed program was:" >&5 20810sed 's/^/| /' conftest.$ac_ext >&5 20811 20812ac_cv_c_const=no 20813fi 20814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20815fi 20816echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20817echo "${ECHO_T}$ac_cv_c_const" >&6 20818if test $ac_cv_c_const = no; then 20819 20820cat >>confdefs.h <<\_ACEOF 20821#define const 20822_ACEOF 20823 20824fi 20825 20826 20827echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 20828echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 20829if test "${ac_cv_c_bigendian+set}" = set; then 20830 echo $ECHO_N "(cached) $ECHO_C" >&6 20831else 20832 # See if sys/param.h defines the BYTE_ORDER macro. 20833cat >conftest.$ac_ext <<_ACEOF 20834/* confdefs.h. */ 20835_ACEOF 20836cat confdefs.h >>conftest.$ac_ext 20837cat >>conftest.$ac_ext <<_ACEOF 20838/* end confdefs.h. */ 20839#include <sys/types.h> 20840#include <sys/param.h> 20841 20842int 20843main () 20844{ 20845#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 20846 bogus endian macros 20847#endif 20848 20849 ; 20850 return 0; 20851} 20852_ACEOF 20853rm -f conftest.$ac_objext 20854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20855 (eval $ac_compile) 2>conftest.er1 20856 ac_status=$? 20857 grep -v '^ *+' conftest.er1 >conftest.err 20858 rm -f conftest.er1 20859 cat conftest.err >&5 20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20861 (exit $ac_status); } && 20862 { ac_try='test -z "$ac_cxx_werror_flag" 20863 || test ! -s conftest.err' 20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20865 (eval $ac_try) 2>&5 20866 ac_status=$? 20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20868 (exit $ac_status); }; } && 20869 { ac_try='test -s conftest.$ac_objext' 20870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20871 (eval $ac_try) 2>&5 20872 ac_status=$? 20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20874 (exit $ac_status); }; }; then 20875 # It does; now see whether it defined to BIG_ENDIAN or not. 20876cat >conftest.$ac_ext <<_ACEOF 20877/* confdefs.h. */ 20878_ACEOF 20879cat confdefs.h >>conftest.$ac_ext 20880cat >>conftest.$ac_ext <<_ACEOF 20881/* end confdefs.h. */ 20882#include <sys/types.h> 20883#include <sys/param.h> 20884 20885int 20886main () 20887{ 20888#if BYTE_ORDER != BIG_ENDIAN 20889 not big endian 20890#endif 20891 20892 ; 20893 return 0; 20894} 20895_ACEOF 20896rm -f conftest.$ac_objext 20897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20898 (eval $ac_compile) 2>conftest.er1 20899 ac_status=$? 20900 grep -v '^ *+' conftest.er1 >conftest.err 20901 rm -f conftest.er1 20902 cat conftest.err >&5 20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20904 (exit $ac_status); } && 20905 { ac_try='test -z "$ac_cxx_werror_flag" 20906 || test ! -s conftest.err' 20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20908 (eval $ac_try) 2>&5 20909 ac_status=$? 20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20911 (exit $ac_status); }; } && 20912 { ac_try='test -s conftest.$ac_objext' 20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20914 (eval $ac_try) 2>&5 20915 ac_status=$? 20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20917 (exit $ac_status); }; }; then 20918 ac_cv_c_bigendian=yes 20919else 20920 echo "$as_me: failed program was:" >&5 20921sed 's/^/| /' conftest.$ac_ext >&5 20922 20923ac_cv_c_bigendian=no 20924fi 20925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20926else 20927 echo "$as_me: failed program was:" >&5 20928sed 's/^/| /' conftest.$ac_ext >&5 20929 20930# It does not; compile a test program. 20931if test "$cross_compiling" = yes; then 20932 # try to guess the endianness by grepping values into an object file 20933 ac_cv_c_bigendian=unknown 20934 cat >conftest.$ac_ext <<_ACEOF 20935/* confdefs.h. */ 20936_ACEOF 20937cat confdefs.h >>conftest.$ac_ext 20938cat >>conftest.$ac_ext <<_ACEOF 20939/* end confdefs.h. */ 20940short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 20941short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 20942void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 20943short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 20944short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 20945void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 20946int 20947main () 20948{ 20949 _ascii (); _ebcdic (); 20950 ; 20951 return 0; 20952} 20953_ACEOF 20954rm -f conftest.$ac_objext 20955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20956 (eval $ac_compile) 2>conftest.er1 20957 ac_status=$? 20958 grep -v '^ *+' conftest.er1 >conftest.err 20959 rm -f conftest.er1 20960 cat conftest.err >&5 20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20962 (exit $ac_status); } && 20963 { ac_try='test -z "$ac_cxx_werror_flag" 20964 || test ! -s conftest.err' 20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20966 (eval $ac_try) 2>&5 20967 ac_status=$? 20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20969 (exit $ac_status); }; } && 20970 { ac_try='test -s conftest.$ac_objext' 20971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20972 (eval $ac_try) 2>&5 20973 ac_status=$? 20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20975 (exit $ac_status); }; }; then 20976 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 20977 ac_cv_c_bigendian=yes 20978fi 20979if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 20980 if test "$ac_cv_c_bigendian" = unknown; then 20981 ac_cv_c_bigendian=no 20982 else 20983 # finding both strings is unlikely to happen, but who knows? 20984 ac_cv_c_bigendian=unknown 20985 fi 20986fi 20987else 20988 echo "$as_me: failed program was:" >&5 20989sed 's/^/| /' conftest.$ac_ext >&5 20990 20991fi 20992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20993else 20994 cat >conftest.$ac_ext <<_ACEOF 20995/* confdefs.h. */ 20996_ACEOF 20997cat confdefs.h >>conftest.$ac_ext 20998cat >>conftest.$ac_ext <<_ACEOF 20999/* end confdefs.h. */ 21000int 21001main () 21002{ 21003 /* Are we little or big endian? From Harbison&Steele. */ 21004 union 21005 { 21006 long l; 21007 char c[sizeof (long)]; 21008 } u; 21009 u.l = 1; 21010 exit (u.c[sizeof (long) - 1] == 1); 21011} 21012_ACEOF 21013rm -f conftest$ac_exeext 21014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21015 (eval $ac_link) 2>&5 21016 ac_status=$? 21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21020 (eval $ac_try) 2>&5 21021 ac_status=$? 21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21023 (exit $ac_status); }; }; then 21024 ac_cv_c_bigendian=no 21025else 21026 echo "$as_me: program exited with status $ac_status" >&5 21027echo "$as_me: failed program was:" >&5 21028sed 's/^/| /' conftest.$ac_ext >&5 21029 21030( exit $ac_status ) 21031ac_cv_c_bigendian=yes 21032fi 21033rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21034fi 21035fi 21036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21037fi 21038echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 21039echo "${ECHO_T}$ac_cv_c_bigendian" >&6 21040case $ac_cv_c_bigendian in 21041 yes) 21042 21043cat >>confdefs.h <<\_ACEOF 21044#define WORDS_BIGENDIAN 1 21045_ACEOF 21046 ;; 21047 no) 21048 ;; 21049 *) 21050 { { echo "$as_me:$LINENO: error: unknown endianness 21051presetting ac_cv_c_bigendian=no (or yes) will help" >&5 21052echo "$as_me: error: unknown endianness 21053presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 21054 { (exit 1); exit 1; }; } ;; 21055esac 21056 21057 21058if test "$ac_cv_c_bigendian" = "yes"; then 21059 BIGENDIAN="1" 21060else 21061 BIGENDIAN="0" 21062fi 21063 21064 21065 21066for ac_header in limits.h 21067do 21068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21069if eval "test \"\${$as_ac_Header+set}\" = set"; then 21070 echo "$as_me:$LINENO: checking for $ac_header" >&5 21071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21072if eval "test \"\${$as_ac_Header+set}\" = set"; then 21073 echo $ECHO_N "(cached) $ECHO_C" >&6 21074fi 21075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21077else 21078 # Is the header compilable? 21079echo "$as_me:$LINENO: checking $ac_header usability" >&5 21080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21081cat >conftest.$ac_ext <<_ACEOF 21082/* confdefs.h. */ 21083_ACEOF 21084cat confdefs.h >>conftest.$ac_ext 21085cat >>conftest.$ac_ext <<_ACEOF 21086/* end confdefs.h. */ 21087$ac_includes_default 21088#include <$ac_header> 21089_ACEOF 21090rm -f conftest.$ac_objext 21091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21092 (eval $ac_compile) 2>conftest.er1 21093 ac_status=$? 21094 grep -v '^ *+' conftest.er1 >conftest.err 21095 rm -f conftest.er1 21096 cat conftest.err >&5 21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21098 (exit $ac_status); } && 21099 { ac_try='test -z "$ac_cxx_werror_flag" 21100 || test ! -s conftest.err' 21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21102 (eval $ac_try) 2>&5 21103 ac_status=$? 21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21105 (exit $ac_status); }; } && 21106 { ac_try='test -s conftest.$ac_objext' 21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21108 (eval $ac_try) 2>&5 21109 ac_status=$? 21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21111 (exit $ac_status); }; }; then 21112 ac_header_compiler=yes 21113else 21114 echo "$as_me: failed program was:" >&5 21115sed 's/^/| /' conftest.$ac_ext >&5 21116 21117ac_header_compiler=no 21118fi 21119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21121echo "${ECHO_T}$ac_header_compiler" >&6 21122 21123# Is the header present? 21124echo "$as_me:$LINENO: checking $ac_header presence" >&5 21125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21126cat >conftest.$ac_ext <<_ACEOF 21127/* confdefs.h. */ 21128_ACEOF 21129cat confdefs.h >>conftest.$ac_ext 21130cat >>conftest.$ac_ext <<_ACEOF 21131/* end confdefs.h. */ 21132#include <$ac_header> 21133_ACEOF 21134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21136 ac_status=$? 21137 grep -v '^ *+' conftest.er1 >conftest.err 21138 rm -f conftest.er1 21139 cat conftest.err >&5 21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21141 (exit $ac_status); } >/dev/null; then 21142 if test -s conftest.err; then 21143 ac_cpp_err=$ac_cxx_preproc_warn_flag 21144 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 21145 else 21146 ac_cpp_err= 21147 fi 21148else 21149 ac_cpp_err=yes 21150fi 21151if test -z "$ac_cpp_err"; then 21152 ac_header_preproc=yes 21153else 21154 echo "$as_me: failed program was:" >&5 21155sed 's/^/| /' conftest.$ac_ext >&5 21156 21157 ac_header_preproc=no 21158fi 21159rm -f conftest.err conftest.$ac_ext 21160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21161echo "${ECHO_T}$ac_header_preproc" >&6 21162 21163# So? What about this header? 21164case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 21165 yes:no: ) 21166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21170 ac_header_preproc=yes 21171 ;; 21172 no:yes:* ) 21173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21185 ( 21186 cat <<\_ASBOX 21187## --------------------------------- ## 21188## Report this to the libusb lists. ## 21189## --------------------------------- ## 21190_ASBOX 21191 ) | 21192 sed "s/^/$as_me: WARNING: /" >&2 21193 ;; 21194esac 21195echo "$as_me:$LINENO: checking for $ac_header" >&5 21196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21197if eval "test \"\${$as_ac_Header+set}\" = set"; then 21198 echo $ECHO_N "(cached) $ECHO_C" >&6 21199else 21200 eval "$as_ac_Header=\$ac_header_preproc" 21201fi 21202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21204 21205fi 21206if test `eval echo '${'$as_ac_Header'}'` = yes; then 21207 cat >>confdefs.h <<_ACEOF 21208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21209_ACEOF 21210 cat >>confdefs.h <<_ACEOF 21211#define HAVE_LIMITS_H 1 21212_ACEOF 21213 21214fi 21215 21216done 21217 21218 21219for ac_header in unistd.h 21220do 21221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21222if eval "test \"\${$as_ac_Header+set}\" = set"; then 21223 echo "$as_me:$LINENO: checking for $ac_header" >&5 21224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21225if eval "test \"\${$as_ac_Header+set}\" = set"; then 21226 echo $ECHO_N "(cached) $ECHO_C" >&6 21227fi 21228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21230else 21231 # Is the header compilable? 21232echo "$as_me:$LINENO: checking $ac_header usability" >&5 21233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21234cat >conftest.$ac_ext <<_ACEOF 21235/* confdefs.h. */ 21236_ACEOF 21237cat confdefs.h >>conftest.$ac_ext 21238cat >>conftest.$ac_ext <<_ACEOF 21239/* end confdefs.h. */ 21240$ac_includes_default 21241#include <$ac_header> 21242_ACEOF 21243rm -f conftest.$ac_objext 21244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21245 (eval $ac_compile) 2>conftest.er1 21246 ac_status=$? 21247 grep -v '^ *+' conftest.er1 >conftest.err 21248 rm -f conftest.er1 21249 cat conftest.err >&5 21250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21251 (exit $ac_status); } && 21252 { ac_try='test -z "$ac_cxx_werror_flag" 21253 || test ! -s conftest.err' 21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21255 (eval $ac_try) 2>&5 21256 ac_status=$? 21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21258 (exit $ac_status); }; } && 21259 { ac_try='test -s conftest.$ac_objext' 21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21261 (eval $ac_try) 2>&5 21262 ac_status=$? 21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21264 (exit $ac_status); }; }; then 21265 ac_header_compiler=yes 21266else 21267 echo "$as_me: failed program was:" >&5 21268sed 's/^/| /' conftest.$ac_ext >&5 21269 21270ac_header_compiler=no 21271fi 21272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21273echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21274echo "${ECHO_T}$ac_header_compiler" >&6 21275 21276# Is the header present? 21277echo "$as_me:$LINENO: checking $ac_header presence" >&5 21278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21279cat >conftest.$ac_ext <<_ACEOF 21280/* confdefs.h. */ 21281_ACEOF 21282cat confdefs.h >>conftest.$ac_ext 21283cat >>conftest.$ac_ext <<_ACEOF 21284/* end confdefs.h. */ 21285#include <$ac_header> 21286_ACEOF 21287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21289 ac_status=$? 21290 grep -v '^ *+' conftest.er1 >conftest.err 21291 rm -f conftest.er1 21292 cat conftest.err >&5 21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21294 (exit $ac_status); } >/dev/null; then 21295 if test -s conftest.err; then 21296 ac_cpp_err=$ac_cxx_preproc_warn_flag 21297 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 21298 else 21299 ac_cpp_err= 21300 fi 21301else 21302 ac_cpp_err=yes 21303fi 21304if test -z "$ac_cpp_err"; then 21305 ac_header_preproc=yes 21306else 21307 echo "$as_me: failed program was:" >&5 21308sed 's/^/| /' conftest.$ac_ext >&5 21309 21310 ac_header_preproc=no 21311fi 21312rm -f conftest.err conftest.$ac_ext 21313echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21314echo "${ECHO_T}$ac_header_preproc" >&6 21315 21316# So? What about this header? 21317case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 21318 yes:no: ) 21319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21320echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21322echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21323 ac_header_preproc=yes 21324 ;; 21325 no:yes:* ) 21326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21327echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21329echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21331echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21333echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21335echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21337echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21338 ( 21339 cat <<\_ASBOX 21340## --------------------------------- ## 21341## Report this to the libusb lists. ## 21342## --------------------------------- ## 21343_ASBOX 21344 ) | 21345 sed "s/^/$as_me: WARNING: /" >&2 21346 ;; 21347esac 21348echo "$as_me:$LINENO: checking for $ac_header" >&5 21349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21350if eval "test \"\${$as_ac_Header+set}\" = set"; then 21351 echo $ECHO_N "(cached) $ECHO_C" >&6 21352else 21353 eval "$as_ac_Header=\$ac_header_preproc" 21354fi 21355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21357 21358fi 21359if test `eval echo '${'$as_ac_Header'}'` = yes; then 21360 cat >>confdefs.h <<_ACEOF 21361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21362_ACEOF 21363 cat >>confdefs.h <<_ACEOF 21364#define HAVE_UNISTD_H 1 21365_ACEOF 21366 21367fi 21368 21369done 21370 21371 21372for ac_header in values.h 21373do 21374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21375if eval "test \"\${$as_ac_Header+set}\" = set"; then 21376 echo "$as_me:$LINENO: checking for $ac_header" >&5 21377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21378if eval "test \"\${$as_ac_Header+set}\" = set"; then 21379 echo $ECHO_N "(cached) $ECHO_C" >&6 21380fi 21381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21383else 21384 # Is the header compilable? 21385echo "$as_me:$LINENO: checking $ac_header usability" >&5 21386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21387cat >conftest.$ac_ext <<_ACEOF 21388/* confdefs.h. */ 21389_ACEOF 21390cat confdefs.h >>conftest.$ac_ext 21391cat >>conftest.$ac_ext <<_ACEOF 21392/* end confdefs.h. */ 21393$ac_includes_default 21394#include <$ac_header> 21395_ACEOF 21396rm -f conftest.$ac_objext 21397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21398 (eval $ac_compile) 2>conftest.er1 21399 ac_status=$? 21400 grep -v '^ *+' conftest.er1 >conftest.err 21401 rm -f conftest.er1 21402 cat conftest.err >&5 21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21404 (exit $ac_status); } && 21405 { ac_try='test -z "$ac_cxx_werror_flag" 21406 || test ! -s conftest.err' 21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21408 (eval $ac_try) 2>&5 21409 ac_status=$? 21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21411 (exit $ac_status); }; } && 21412 { ac_try='test -s conftest.$ac_objext' 21413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21414 (eval $ac_try) 2>&5 21415 ac_status=$? 21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21417 (exit $ac_status); }; }; then 21418 ac_header_compiler=yes 21419else 21420 echo "$as_me: failed program was:" >&5 21421sed 's/^/| /' conftest.$ac_ext >&5 21422 21423ac_header_compiler=no 21424fi 21425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21427echo "${ECHO_T}$ac_header_compiler" >&6 21428 21429# Is the header present? 21430echo "$as_me:$LINENO: checking $ac_header presence" >&5 21431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21432cat >conftest.$ac_ext <<_ACEOF 21433/* confdefs.h. */ 21434_ACEOF 21435cat confdefs.h >>conftest.$ac_ext 21436cat >>conftest.$ac_ext <<_ACEOF 21437/* end confdefs.h. */ 21438#include <$ac_header> 21439_ACEOF 21440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21442 ac_status=$? 21443 grep -v '^ *+' conftest.er1 >conftest.err 21444 rm -f conftest.er1 21445 cat conftest.err >&5 21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21447 (exit $ac_status); } >/dev/null; then 21448 if test -s conftest.err; then 21449 ac_cpp_err=$ac_cxx_preproc_warn_flag 21450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 21451 else 21452 ac_cpp_err= 21453 fi 21454else 21455 ac_cpp_err=yes 21456fi 21457if test -z "$ac_cpp_err"; then 21458 ac_header_preproc=yes 21459else 21460 echo "$as_me: failed program was:" >&5 21461sed 's/^/| /' conftest.$ac_ext >&5 21462 21463 ac_header_preproc=no 21464fi 21465rm -f conftest.err conftest.$ac_ext 21466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21467echo "${ECHO_T}$ac_header_preproc" >&6 21468 21469# So? What about this header? 21470case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 21471 yes:no: ) 21472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21473echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21475echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21476 ac_header_preproc=yes 21477 ;; 21478 no:yes:* ) 21479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21480echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21482echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21484echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21486echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21488echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21490echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21491 ( 21492 cat <<\_ASBOX 21493## --------------------------------- ## 21494## Report this to the libusb lists. ## 21495## --------------------------------- ## 21496_ASBOX 21497 ) | 21498 sed "s/^/$as_me: WARNING: /" >&2 21499 ;; 21500esac 21501echo "$as_me:$LINENO: checking for $ac_header" >&5 21502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21503if eval "test \"\${$as_ac_Header+set}\" = set"; then 21504 echo $ECHO_N "(cached) $ECHO_C" >&6 21505else 21506 eval "$as_ac_Header=\$ac_header_preproc" 21507fi 21508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21510 21511fi 21512if test `eval echo '${'$as_ac_Header'}'` = yes; then 21513 cat >>confdefs.h <<_ACEOF 21514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21515_ACEOF 21516 cat >>confdefs.h <<_ACEOF 21517#define HAVE_VALUES_H 1 21518_ACEOF 21519 21520fi 21521 21522done 21523 21524 21525# Check for some functions 21526 21527for ac_func in memmove 21528do 21529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21530echo "$as_me:$LINENO: checking for $ac_func" >&5 21531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21532if eval "test \"\${$as_ac_var+set}\" = set"; then 21533 echo $ECHO_N "(cached) $ECHO_C" >&6 21534else 21535 cat >conftest.$ac_ext <<_ACEOF 21536/* confdefs.h. */ 21537_ACEOF 21538cat confdefs.h >>conftest.$ac_ext 21539cat >>conftest.$ac_ext <<_ACEOF 21540/* end confdefs.h. */ 21541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21542 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21543#define $ac_func innocuous_$ac_func 21544 21545/* System header to define __stub macros and hopefully few prototypes, 21546 which can conflict with char $ac_func (); below. 21547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21548 <limits.h> exists even on freestanding compilers. */ 21549 21550#ifdef __STDC__ 21551# include <limits.h> 21552#else 21553# include <assert.h> 21554#endif 21555 21556#undef $ac_func 21557 21558/* Override any gcc2 internal prototype to avoid an error. */ 21559#ifdef __cplusplus 21560extern "C" 21561{ 21562#endif 21563/* We use char because int might match the return type of a gcc2 21564 builtin and then its argument prototype would still apply. */ 21565char $ac_func (); 21566/* The GNU C library defines this for functions which it implements 21567 to always fail with ENOSYS. Some functions are actually named 21568 something starting with __ and the normal name is an alias. */ 21569#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21570choke me 21571#else 21572char (*f) () = $ac_func; 21573#endif 21574#ifdef __cplusplus 21575} 21576#endif 21577 21578int 21579main () 21580{ 21581return f != $ac_func; 21582 ; 21583 return 0; 21584} 21585_ACEOF 21586rm -f conftest.$ac_objext conftest$ac_exeext 21587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21588 (eval $ac_link) 2>conftest.er1 21589 ac_status=$? 21590 grep -v '^ *+' conftest.er1 >conftest.err 21591 rm -f conftest.er1 21592 cat conftest.err >&5 21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21594 (exit $ac_status); } && 21595 { ac_try='test -z "$ac_cxx_werror_flag" 21596 || test ! -s conftest.err' 21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21598 (eval $ac_try) 2>&5 21599 ac_status=$? 21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21601 (exit $ac_status); }; } && 21602 { ac_try='test -s conftest$ac_exeext' 21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21604 (eval $ac_try) 2>&5 21605 ac_status=$? 21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21607 (exit $ac_status); }; }; then 21608 eval "$as_ac_var=yes" 21609else 21610 echo "$as_me: failed program was:" >&5 21611sed 's/^/| /' conftest.$ac_ext >&5 21612 21613eval "$as_ac_var=no" 21614fi 21615rm -f conftest.err conftest.$ac_objext \ 21616 conftest$ac_exeext conftest.$ac_ext 21617fi 21618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21620if test `eval echo '${'$as_ac_var'}'` = yes; then 21621 cat >>confdefs.h <<_ACEOF 21622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21623_ACEOF 21624 21625fi 21626done 21627 21628 21629if test "$os_support" = "bsd"; then 21630 echo "$as_me:$LINENO: checking if dev/usb/usb.h uses new naming convention" >&5 21631echo $ECHO_N "checking if dev/usb/usb.h uses new naming convention... $ECHO_C" >&6 21632 cat >conftest.$ac_ext <<_ACEOF 21633/* confdefs.h. */ 21634_ACEOF 21635cat confdefs.h >>conftest.$ac_ext 21636cat >>conftest.$ac_ext <<_ACEOF 21637/* end confdefs.h. */ 21638#include <dev/usb/usb.h> 21639int 21640main () 21641{ 21642 21643 int a = ((struct usb_ctl_request *)0L)->ucr_addr 21644 21645 ; 21646 return 0; 21647} 21648_ACEOF 21649rm -f conftest.$ac_objext 21650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21651 (eval $ac_compile) 2>conftest.er1 21652 ac_status=$? 21653 grep -v '^ *+' conftest.er1 >conftest.err 21654 rm -f conftest.er1 21655 cat conftest.err >&5 21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21657 (exit $ac_status); } && 21658 { ac_try='test -z "$ac_cxx_werror_flag" 21659 || test ! -s conftest.err' 21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21661 (eval $ac_try) 2>&5 21662 ac_status=$? 21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21664 (exit $ac_status); }; } && 21665 { ac_try='test -s conftest.$ac_objext' 21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21667 (eval $ac_try) 2>&5 21668 ac_status=$? 21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21670 (exit $ac_status); }; }; then 21671 echo "$as_me:$LINENO: result: yes" >&5 21672echo "${ECHO_T}yes" >&6 21673else 21674 echo "$as_me: failed program was:" >&5 21675sed 's/^/| /' conftest.$ac_ext >&5 21676 21677echo "$as_me:$LINENO: result: no" >&5 21678echo "${ECHO_T}no" >&6 21679 cat >>confdefs.h <<_ACEOF 21680#define HAVE_OLD_DEV_USB_USB_H 1 21681_ACEOF 21682 21683fi 21684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21685fi 21686 21687#pkg-config: pkg-config is a tool to simplify checks for libraries and versions. 21688pkgconfig_msg="no (http://www.freedesktop.org/software/pkgconfig)" 21689try_pkgconfig=true 21690have_pkgconfig=false 21691 21692# Check whether --with-pkgconfig or --without-pkgconfig was given. 21693if test "${with_pkgconfig+set}" = set; then 21694 withval="$with_pkgconfig" 21695 21696 if test x$withval = xno; then 21697 try_pkgconfig=false 21698 pkgconfig_msg="no (not requested)" 21699 fi 21700fi; 21701if $try_pkgconfig; then 21702 # Extract the first word of "pkg-config", so it can be a program name with args. 21703set dummy pkg-config; ac_word=$2 21704echo "$as_me:$LINENO: checking for $ac_word" >&5 21705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21706if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21707 echo $ECHO_N "(cached) $ECHO_C" >&6 21708else 21709 case $PKG_CONFIG in 21710 [\\/]* | ?:[\\/]*) 21711 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21712 ;; 21713 *) 21714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21715for as_dir in $PATH 21716do 21717 IFS=$as_save_IFS 21718 test -z "$as_dir" && as_dir=. 21719 for ac_exec_ext in '' $ac_executable_extensions; do 21720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21721 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21723 break 2 21724 fi 21725done 21726done 21727 21728 ;; 21729esac 21730fi 21731PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21732 21733if test -n "$PKG_CONFIG"; then 21734 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21735echo "${ECHO_T}$PKG_CONFIG" >&6 21736else 21737 echo "$as_me:$LINENO: result: no" >&5 21738echo "${ECHO_T}no" >&6 21739fi 21740 21741 if test -n "${PKG_CONFIG}"; then 21742 have_pkgconfig=true 21743 pkgconfig_msg="yes" 21744 fi 21745fi 21746# guessing directory to install *.pc into 21747pkgconfigdir="${libdir}/pkgconfig" 21748 21749 21750# Check if the user wants to enable documentation 21751echo "$as_me:$LINENO: checking if we should build the documentation" >&5 21752echo $ECHO_N "checking if we should build the documentation... $ECHO_C" >&6 21753# Check whether --enable-build-docs or --disable-build-docs was given. 21754if test "${enable_build_docs+set}" = set; then 21755 enableval="$enable_build_docs" 21756 test "$enableval" != no && build_docs=yes || build_docs=no 21757else 21758 build_docs=auto 21759fi; 21760echo "$as_me:$LINENO: result: $build_docs" >&5 21761echo "${ECHO_T}$build_docs" >&6 21762 21763if test "$build_docs" != "no"; then 21764 # Extract the first word of "jade", so it can be a program name with args. 21765set dummy jade; ac_word=$2 21766echo "$as_me:$LINENO: checking for $ac_word" >&5 21767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21768if test "${ac_cv_prog_JADE+set}" = set; then 21769 echo $ECHO_N "(cached) $ECHO_C" >&6 21770else 21771 if test -n "$JADE"; then 21772 ac_cv_prog_JADE="$JADE" # Let the user override the test. 21773else 21774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21775for as_dir in $PATH 21776do 21777 IFS=$as_save_IFS 21778 test -z "$as_dir" && as_dir=. 21779 for ac_exec_ext in '' $ac_executable_extensions; do 21780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21781 ac_cv_prog_JADE="jade" 21782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21783 break 2 21784 fi 21785done 21786done 21787 21788fi 21789fi 21790JADE=$ac_cv_prog_JADE 21791if test -n "$JADE"; then 21792 echo "$as_me:$LINENO: result: $JADE" >&5 21793echo "${ECHO_T}$JADE" >&6 21794else 21795 echo "$as_me:$LINENO: result: no" >&5 21796echo "${ECHO_T}no" >&6 21797fi 21798 21799 if test -z "$JADE"; then 21800 # Extract the first word of "openjade", so it can be a program name with args. 21801set dummy openjade; ac_word=$2 21802echo "$as_me:$LINENO: checking for $ac_word" >&5 21803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21804if test "${ac_cv_prog_JADE+set}" = set; then 21805 echo $ECHO_N "(cached) $ECHO_C" >&6 21806else 21807 if test -n "$JADE"; then 21808 ac_cv_prog_JADE="$JADE" # Let the user override the test. 21809else 21810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21811for as_dir in $PATH 21812do 21813 IFS=$as_save_IFS 21814 test -z "$as_dir" && as_dir=. 21815 for ac_exec_ext in '' $ac_executable_extensions; do 21816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21817 ac_cv_prog_JADE="openjade" 21818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21819 break 2 21820 fi 21821done 21822done 21823 21824fi 21825fi 21826JADE=$ac_cv_prog_JADE 21827if test -n "$JADE"; then 21828 echo "$as_me:$LINENO: result: $JADE" >&5 21829echo "${ECHO_T}$JADE" >&6 21830else 21831 echo "$as_me:$LINENO: result: no" >&5 21832echo "${ECHO_T}no" >&6 21833fi 21834 21835 fi 21836fi 21837 21838 21839echo "$as_me:$LINENO: checking for Doxygen tools" >&5 21840echo $ECHO_N "checking for Doxygen tools... $ECHO_C" >&6 21841 21842 21843 echo "$as_me:$LINENO: checking for dot" >&5 21844echo $ECHO_N "checking for dot... $ECHO_C" >&6 21845 if test -n "$DOT"; then 21846 libusb_cv_path="$DOT"; 21847 else 21848 libusb_cache=`echo dot | sed 'y%./+-%__p_%'` 21849 21850 if eval "test \"\${libusb_cv_path_$libusb_cache+set}\" = set"; then 21851 echo $ECHO_N "(cached) $ECHO_C" >&6 21852else 21853 21854 libusb_cv_path="NONE" 21855 dirs="" 21856 libusb_save_IFS=$IFS 21857 IFS=':' 21858 for dir in $PATH; do 21859 dirs="$dirs $dir" 21860 done 21861 IFS=$libusb_save_IFS 21862 21863 for dir in $dirs; do 21864 if test -x "$dir/dot"; then 21865 if test -n "" 21866 then 21867 evalstr="$dir/dot 2>&1 " 21868 if eval $evalstr; then 21869 libusb_cv_path="$dir/dot" 21870 break 21871 fi 21872 else 21873 libusb_cv_path="$dir/dot" 21874 break 21875 fi 21876 fi 21877 done 21878 21879 eval "libusb_cv_path_$libusb_cache=$libusb_cv_path" 21880 21881 21882fi 21883 21884 21885 eval "libusb_cv_path=\"`echo '$libusb_cv_path_'$libusb_cache`\"" 21886 21887 fi 21888 21889 if test -z "$libusb_cv_path" || test "$libusb_cv_path" = NONE; then 21890 echo "$as_me:$LINENO: result: not found" >&5 21891echo "${ECHO_T}not found" >&6 21892 21893 else 21894 echo "$as_me:$LINENO: result: $libusb_cv_path" >&5 21895echo "${ECHO_T}$libusb_cv_path" >&6 21896 DOT=$libusb_cv_path 21897 21898 fi 21899 21900if test -n "$DOT"; then 21901 LIBUSB_HAVE_DOT="YES" 21902else 21903 LIBUSB_HAVE_DOT="NO" 21904fi 21905 21906 21907 21908 echo "$as_me:$LINENO: checking for doxygen" >&5 21909echo $ECHO_N "checking for doxygen... $ECHO_C" >&6 21910 if test -n "$DOXYGEN"; then 21911 libusb_cv_path="$DOXYGEN"; 21912 else 21913 libusb_cache=`echo doxygen | sed 'y%./+-%__p_%'` 21914 21915 if eval "test \"\${libusb_cv_path_$libusb_cache+set}\" = set"; then 21916 echo $ECHO_N "(cached) $ECHO_C" >&6 21917else 21918 21919 libusb_cv_path="NONE" 21920 dirs="" 21921 libusb_save_IFS=$IFS 21922 IFS=':' 21923 for dir in $PATH; do 21924 dirs="$dirs $dir" 21925 done 21926 IFS=$libusb_save_IFS 21927 21928 for dir in $dirs; do 21929 if test -x "$dir/doxygen"; then 21930 if test -n "" 21931 then 21932 evalstr="$dir/doxygen 2>&1 " 21933 if eval $evalstr; then 21934 libusb_cv_path="$dir/doxygen" 21935 break 21936 fi 21937 else 21938 libusb_cv_path="$dir/doxygen" 21939 break 21940 fi 21941 fi 21942 done 21943 21944 eval "libusb_cv_path_$libusb_cache=$libusb_cv_path" 21945 21946 21947fi 21948 21949 21950 eval "libusb_cv_path=\"`echo '$libusb_cv_path_'$libusb_cache`\"" 21951 21952 fi 21953 21954 if test -z "$libusb_cv_path" || test "$libusb_cv_path" = NONE; then 21955 echo "$as_me:$LINENO: result: not found" >&5 21956echo "${ECHO_T}not found" >&6 21957 21958 else 21959 echo "$as_me:$LINENO: result: $libusb_cv_path" >&5 21960echo "${ECHO_T}$libusb_cv_path" >&6 21961 DOXYGEN=$libusb_cv_path 21962 21963 fi 21964 21965 21966 21967DOXYGEN_PROJECT_NAME="LIBUSB C++ API Reference" 21968DOXYGEN_PROJECT_NUMBER="Version $VERSION" 21969 21970 21971 21972LIBUSB_HAS_DOXYGEN=no 21973if test -n "$DOXYGEN" && test -x "$DOXYGEN"; then 21974 LIBUSB_HAS_DOXYGEN=yes 21975fi 21976 21977 21978 21979 21980 21981if test "$build_docs" != "no" -a -z "$JADE"; then 21982 { echo "$as_me:$LINENO: WARNING: Documentation build components not installed. sgml docs will not be built" >&5 21983echo "$as_me: WARNING: Documentation build components not installed. sgml docs will not be built" >&2;} 21984 build_docs="no" 21985fi 21986 21987 21988 21989if test "$build_docs" != "no"; then 21990 BUILD_DOCS_TRUE= 21991 BUILD_DOCS_FALSE='#' 21992else 21993 BUILD_DOCS_TRUE='#' 21994 BUILD_DOCS_FALSE= 21995fi 21996 21997 21998 ac_config_files="$ac_config_files Makefile doc/Makefile libusb.spec libusb-config libusb.pc tests/Makefile README INSTALL.libusb usb.h Doxyfile" 21999 22000 ac_config_commands="$ac_config_commands default" 22001 22002cat >confcache <<\_ACEOF 22003# This file is a shell script that caches the results of configure 22004# tests run on this system so they can be shared between configure 22005# scripts and configure runs, see configure's option --config-cache. 22006# It is not useful on other systems. If it contains results you don't 22007# want to keep, you may remove or edit it. 22008# 22009# config.status only pays attention to the cache file if you give it 22010# the --recheck option to rerun configure. 22011# 22012# `ac_cv_env_foo' variables (set or unset) will be overridden when 22013# loading this file, other *unset* `ac_cv_foo' will be assigned the 22014# following values. 22015 22016_ACEOF 22017 22018# The following way of writing the cache mishandles newlines in values, 22019# but we know of no workaround that is simple, portable, and efficient. 22020# So, don't put newlines in cache variables' values. 22021# Ultrix sh set writes to stderr and can't be redirected directly, 22022# and sets the high bit in the cache file unless we assign to the vars. 22023{ 22024 (set) 2>&1 | 22025 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22026 *ac_space=\ *) 22027 # `set' does not quote correctly, so add quotes (double-quote 22028 # substitution turns \\\\ into \\, and sed turns \\ into \). 22029 sed -n \ 22030 "s/'/'\\\\''/g; 22031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22032 ;; 22033 *) 22034 # `set' quotes correctly as required by POSIX, so do not add quotes. 22035 sed -n \ 22036 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22037 ;; 22038 esac; 22039} | 22040 sed ' 22041 t clear 22042 : clear 22043 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22044 t end 22045 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22046 : end' >>confcache 22047if diff $cache_file confcache >/dev/null 2>&1; then :; else 22048 if test -w $cache_file; then 22049 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22050 cat confcache >$cache_file 22051 else 22052 echo "not updating unwritable cache $cache_file" 22053 fi 22054fi 22055rm -f confcache 22056 22057test "x$prefix" = xNONE && prefix=$ac_default_prefix 22058# Let make expand exec_prefix. 22059test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22060 22061# VPATH may cause trouble with some makes, so we remove $(srcdir), 22062# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22063# trailing colons and then remove the whole line if VPATH becomes empty 22064# (actually we leave an empty line to preserve line numbers). 22065if test "x$srcdir" = x.; then 22066 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22067s/:*\$(srcdir):*/:/; 22068s/:*\${srcdir}:*/:/; 22069s/:*@srcdir@:*/:/; 22070s/^\([^=]*=[ ]*\):*/\1/; 22071s/:*$//; 22072s/^[^=]*=[ ]*$//; 22073}' 22074fi 22075 22076DEFS=-DHAVE_CONFIG_H 22077 22078ac_libobjs= 22079ac_ltlibobjs= 22080for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22081 # 1. Remove the extension, and $U if already installed. 22082 ac_i=`echo "$ac_i" | 22083 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22084 # 2. Add them. 22085 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22086 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22087done 22088LIBOBJS=$ac_libobjs 22089 22090LTLIBOBJS=$ac_ltlibobjs 22091 22092 22093if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22094 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22095Usually this means the macro was only invoked conditionally." >&5 22096echo "$as_me: error: conditional \"AMDEP\" was never defined. 22097Usually this means the macro was only invoked conditionally." >&2;} 22098 { (exit 1); exit 1; }; } 22099fi 22100if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22101 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22102Usually this means the macro was only invoked conditionally." >&5 22103echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22104Usually this means the macro was only invoked conditionally." >&2;} 22105 { (exit 1); exit 1; }; } 22106fi 22107if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22108 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22109Usually this means the macro was only invoked conditionally." >&5 22110echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22111Usually this means the macro was only invoked conditionally." >&2;} 22112 { (exit 1); exit 1; }; } 22113fi 22114if test -z "${LINUX_API_TRUE}" && test -z "${LINUX_API_FALSE}"; then 22115 { { echo "$as_me:$LINENO: error: conditional \"LINUX_API\" was never defined. 22116Usually this means the macro was only invoked conditionally." >&5 22117echo "$as_me: error: conditional \"LINUX_API\" was never defined. 22118Usually this means the macro was only invoked conditionally." >&2;} 22119 { (exit 1); exit 1; }; } 22120fi 22121if test -z "${BSD_API_TRUE}" && test -z "${BSD_API_FALSE}"; then 22122 { { echo "$as_me:$LINENO: error: conditional \"BSD_API\" was never defined. 22123Usually this means the macro was only invoked conditionally." >&5 22124echo "$as_me: error: conditional \"BSD_API\" was never defined. 22125Usually this means the macro was only invoked conditionally." >&2;} 22126 { (exit 1); exit 1; }; } 22127fi 22128if test -z "${DARWIN_API_TRUE}" && test -z "${DARWIN_API_FALSE}"; then 22129 { { echo "$as_me:$LINENO: error: conditional \"DARWIN_API\" was never defined. 22130Usually this means the macro was only invoked conditionally." >&5 22131echo "$as_me: error: conditional \"DARWIN_API\" was never defined. 22132Usually this means the macro was only invoked conditionally." >&2;} 22133 { (exit 1); exit 1; }; } 22134fi 22135if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22136 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22137Usually this means the macro was only invoked conditionally." >&5 22138echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22139Usually this means the macro was only invoked conditionally." >&2;} 22140 { (exit 1); exit 1; }; } 22141fi 22142if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 22143 { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined. 22144Usually this means the macro was only invoked conditionally." >&5 22145echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined. 22146Usually this means the macro was only invoked conditionally." >&2;} 22147 { (exit 1); exit 1; }; } 22148fi 22149 22150: ${CONFIG_STATUS=./config.status} 22151ac_clean_files_save=$ac_clean_files 22152ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22153{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22154echo "$as_me: creating $CONFIG_STATUS" >&6;} 22155cat >$CONFIG_STATUS <<_ACEOF 22156#! $SHELL 22157# Generated by $as_me. 22158# Run this file to recreate the current configuration. 22159# Compiler output produced by configure, useful for debugging 22160# configure, is in config.log if it exists. 22161 22162debug=false 22163ac_cs_recheck=false 22164ac_cs_silent=false 22165SHELL=\${CONFIG_SHELL-$SHELL} 22166_ACEOF 22167 22168cat >>$CONFIG_STATUS <<\_ACEOF 22169## --------------------- ## 22170## M4sh Initialization. ## 22171## --------------------- ## 22172 22173# Be Bourne compatible 22174if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22175 emulate sh 22176 NULLCMD=: 22177 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22178 # is contrary to our usage. Disable this feature. 22179 alias -g '${1+"$@"}'='"$@"' 22180elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22181 set -o posix 22182fi 22183DUALCASE=1; export DUALCASE # for MKS sh 22184 22185# Support unset when possible. 22186if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22187 as_unset=unset 22188else 22189 as_unset=false 22190fi 22191 22192 22193# Work around bugs in pre-3.0 UWIN ksh. 22194$as_unset ENV MAIL MAILPATH 22195PS1='$ ' 22196PS2='> ' 22197PS4='+ ' 22198 22199# NLS nuisances. 22200for as_var in \ 22201 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22202 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22203 LC_TELEPHONE LC_TIME 22204do 22205 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22206 eval $as_var=C; export $as_var 22207 else 22208 $as_unset $as_var 22209 fi 22210done 22211 22212# Required to use basename. 22213if expr a : '\(a\)' >/dev/null 2>&1; then 22214 as_expr=expr 22215else 22216 as_expr=false 22217fi 22218 22219if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22220 as_basename=basename 22221else 22222 as_basename=false 22223fi 22224 22225 22226# Name of the executable. 22227as_me=`$as_basename "$0" || 22228$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22229 X"$0" : 'X\(//\)$' \| \ 22230 X"$0" : 'X\(/\)$' \| \ 22231 . : '\(.\)' 2>/dev/null || 22232echo X/"$0" | 22233 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22234 /^X\/\(\/\/\)$/{ s//\1/; q; } 22235 /^X\/\(\/\).*/{ s//\1/; q; } 22236 s/.*/./; q'` 22237 22238 22239# PATH needs CR, and LINENO needs CR and PATH. 22240# Avoid depending upon Character Ranges. 22241as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22242as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22243as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22244as_cr_digits='0123456789' 22245as_cr_alnum=$as_cr_Letters$as_cr_digits 22246 22247# The user is always right. 22248if test "${PATH_SEPARATOR+set}" != set; then 22249 echo "#! /bin/sh" >conf$$.sh 22250 echo "exit 0" >>conf$$.sh 22251 chmod +x conf$$.sh 22252 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22253 PATH_SEPARATOR=';' 22254 else 22255 PATH_SEPARATOR=: 22256 fi 22257 rm -f conf$$.sh 22258fi 22259 22260 22261 as_lineno_1=$LINENO 22262 as_lineno_2=$LINENO 22263 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22264 test "x$as_lineno_1" != "x$as_lineno_2" && 22265 test "x$as_lineno_3" = "x$as_lineno_2" || { 22266 # Find who we are. Look in the path if we contain no path at all 22267 # relative or not. 22268 case $0 in 22269 *[\\/]* ) as_myself=$0 ;; 22270 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22271for as_dir in $PATH 22272do 22273 IFS=$as_save_IFS 22274 test -z "$as_dir" && as_dir=. 22275 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22276done 22277 22278 ;; 22279 esac 22280 # We did not find ourselves, most probably we were run as `sh COMMAND' 22281 # in which case we are not to be found in the path. 22282 if test "x$as_myself" = x; then 22283 as_myself=$0 22284 fi 22285 if test ! -f "$as_myself"; then 22286 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22287echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22288 { (exit 1); exit 1; }; } 22289 fi 22290 case $CONFIG_SHELL in 22291 '') 22292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22293for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22294do 22295 IFS=$as_save_IFS 22296 test -z "$as_dir" && as_dir=. 22297 for as_base in sh bash ksh sh5; do 22298 case $as_dir in 22299 /*) 22300 if ("$as_dir/$as_base" -c ' 22301 as_lineno_1=$LINENO 22302 as_lineno_2=$LINENO 22303 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22304 test "x$as_lineno_1" != "x$as_lineno_2" && 22305 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22306 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22307 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22308 CONFIG_SHELL=$as_dir/$as_base 22309 export CONFIG_SHELL 22310 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22311 fi;; 22312 esac 22313 done 22314done 22315;; 22316 esac 22317 22318 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22319 # uniformly replaced by the line number. The first 'sed' inserts a 22320 # line-number line before each line; the second 'sed' does the real 22321 # work. The second script uses 'N' to pair each line-number line 22322 # with the numbered line, and appends trailing '-' during 22323 # substitution so that $LINENO is not a special case at line end. 22324 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22325 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22326 sed '=' <$as_myself | 22327 sed ' 22328 N 22329 s,$,-, 22330 : loop 22331 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22332 t loop 22333 s,-$,, 22334 s,^['$as_cr_digits']*\n,, 22335 ' >$as_me.lineno && 22336 chmod +x $as_me.lineno || 22337 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22338echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22339 { (exit 1); exit 1; }; } 22340 22341 # Don't try to exec as it changes $[0], causing all sort of problems 22342 # (the dirname of $[0] is not the place where we might find the 22343 # original and so on. Autoconf is especially sensible to this). 22344 . ./$as_me.lineno 22345 # Exit status is that of the last command. 22346 exit 22347} 22348 22349 22350case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22351 *c*,-n*) ECHO_N= ECHO_C=' 22352' ECHO_T=' ' ;; 22353 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22354 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22355esac 22356 22357if expr a : '\(a\)' >/dev/null 2>&1; then 22358 as_expr=expr 22359else 22360 as_expr=false 22361fi 22362 22363rm -f conf$$ conf$$.exe conf$$.file 22364echo >conf$$.file 22365if ln -s conf$$.file conf$$ 2>/dev/null; then 22366 # We could just check for DJGPP; but this test a) works b) is more generic 22367 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22368 if test -f conf$$.exe; then 22369 # Don't use ln at all; we don't have any links 22370 as_ln_s='cp -p' 22371 else 22372 as_ln_s='ln -s' 22373 fi 22374elif ln conf$$.file conf$$ 2>/dev/null; then 22375 as_ln_s=ln 22376else 22377 as_ln_s='cp -p' 22378fi 22379rm -f conf$$ conf$$.exe conf$$.file 22380 22381if mkdir -p . 2>/dev/null; then 22382 as_mkdir_p=: 22383else 22384 test -d ./-p && rmdir ./-p 22385 as_mkdir_p=false 22386fi 22387 22388as_executable_p="test -f" 22389 22390# Sed expression to map a string onto a valid CPP name. 22391as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22392 22393# Sed expression to map a string onto a valid variable name. 22394as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22395 22396 22397# IFS 22398# We need space, tab and new line, in precisely that order. 22399as_nl=' 22400' 22401IFS=" $as_nl" 22402 22403# CDPATH. 22404$as_unset CDPATH 22405 22406exec 6>&1 22407 22408# Open the log real soon, to keep \$[0] and so on meaningful, and to 22409# report actual input values of CONFIG_FILES etc. instead of their 22410# values after options handling. Logging --version etc. is OK. 22411exec 5>>config.log 22412{ 22413 echo 22414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22415## Running $as_me. ## 22416_ASBOX 22417} >&5 22418cat >&5 <<_CSEOF 22419 22420This file was extended by libusb $as_me 0.1.12, which was 22421generated by GNU Autoconf 2.59. Invocation command line was 22422 22423 CONFIG_FILES = $CONFIG_FILES 22424 CONFIG_HEADERS = $CONFIG_HEADERS 22425 CONFIG_LINKS = $CONFIG_LINKS 22426 CONFIG_COMMANDS = $CONFIG_COMMANDS 22427 $ $0 $@ 22428 22429_CSEOF 22430echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22431echo >&5 22432_ACEOF 22433 22434# Files that config.status was made for. 22435if test -n "$ac_config_files"; then 22436 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22437fi 22438 22439if test -n "$ac_config_headers"; then 22440 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22441fi 22442 22443if test -n "$ac_config_links"; then 22444 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22445fi 22446 22447if test -n "$ac_config_commands"; then 22448 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22449fi 22450 22451cat >>$CONFIG_STATUS <<\_ACEOF 22452 22453ac_cs_usage="\ 22454\`$as_me' instantiates files from templates according to the 22455current configuration. 22456 22457Usage: $0 [OPTIONS] [FILE]... 22458 22459 -h, --help print this help, then exit 22460 -V, --version print version number, then exit 22461 -q, --quiet do not print progress messages 22462 -d, --debug don't remove temporary files 22463 --recheck update $as_me by reconfiguring in the same conditions 22464 --file=FILE[:TEMPLATE] 22465 instantiate the configuration file FILE 22466 --header=FILE[:TEMPLATE] 22467 instantiate the configuration header FILE 22468 22469Configuration files: 22470$config_files 22471 22472Configuration headers: 22473$config_headers 22474 22475Configuration commands: 22476$config_commands 22477 22478Report bugs to <bug-autoconf@gnu.org>." 22479_ACEOF 22480 22481cat >>$CONFIG_STATUS <<_ACEOF 22482ac_cs_version="\\ 22483libusb config.status 0.1.12 22484configured by $0, generated by GNU Autoconf 2.59, 22485 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22486 22487Copyright (C) 2003 Free Software Foundation, Inc. 22488This config.status script is free software; the Free Software Foundation 22489gives unlimited permission to copy, distribute and modify it." 22490srcdir=$srcdir 22491INSTALL="$INSTALL" 22492_ACEOF 22493 22494cat >>$CONFIG_STATUS <<\_ACEOF 22495# If no file are specified by the user, then we need to provide default 22496# value. By we need to know if files were specified by the user. 22497ac_need_defaults=: 22498while test $# != 0 22499do 22500 case $1 in 22501 --*=*) 22502 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22503 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22504 ac_shift=: 22505 ;; 22506 -*) 22507 ac_option=$1 22508 ac_optarg=$2 22509 ac_shift=shift 22510 ;; 22511 *) # This is not an option, so the user has probably given explicit 22512 # arguments. 22513 ac_option=$1 22514 ac_need_defaults=false;; 22515 esac 22516 22517 case $ac_option in 22518 # Handling of the options. 22519_ACEOF 22520cat >>$CONFIG_STATUS <<\_ACEOF 22521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22522 ac_cs_recheck=: ;; 22523 --version | --vers* | -V ) 22524 echo "$ac_cs_version"; exit 0 ;; 22525 --he | --h) 22526 # Conflict between --help and --header 22527 { { echo "$as_me:$LINENO: error: ambiguous option: $1 22528Try \`$0 --help' for more information." >&5 22529echo "$as_me: error: ambiguous option: $1 22530Try \`$0 --help' for more information." >&2;} 22531 { (exit 1); exit 1; }; };; 22532 --help | --hel | -h ) 22533 echo "$ac_cs_usage"; exit 0 ;; 22534 --debug | --d* | -d ) 22535 debug=: ;; 22536 --file | --fil | --fi | --f ) 22537 $ac_shift 22538 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22539 ac_need_defaults=false;; 22540 --header | --heade | --head | --hea ) 22541 $ac_shift 22542 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22543 ac_need_defaults=false;; 22544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22545 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22546 ac_cs_silent=: ;; 22547 22548 # This is an error. 22549 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 22550Try \`$0 --help' for more information." >&5 22551echo "$as_me: error: unrecognized option: $1 22552Try \`$0 --help' for more information." >&2;} 22553 { (exit 1); exit 1; }; } ;; 22554 22555 *) ac_config_targets="$ac_config_targets $1" ;; 22556 22557 esac 22558 shift 22559done 22560 22561ac_configure_extra_args= 22562 22563if $ac_cs_silent; then 22564 exec 6>/dev/null 22565 ac_configure_extra_args="$ac_configure_extra_args --silent" 22566fi 22567 22568_ACEOF 22569cat >>$CONFIG_STATUS <<_ACEOF 22570if \$ac_cs_recheck; then 22571 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22572 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22573fi 22574 22575_ACEOF 22576 22577cat >>$CONFIG_STATUS <<_ACEOF 22578# 22579# INIT-COMMANDS section. 22580# 22581 22582AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22583 22584 22585_ACEOF 22586 22587 22588 22589cat >>$CONFIG_STATUS <<\_ACEOF 22590for ac_config_target in $ac_config_targets 22591do 22592 case "$ac_config_target" in 22593 # Handling of arguments. 22594 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22595 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22596 "libusb.spec" ) CONFIG_FILES="$CONFIG_FILES libusb.spec" ;; 22597 "libusb-config" ) CONFIG_FILES="$CONFIG_FILES libusb-config" ;; 22598 "libusb.pc" ) CONFIG_FILES="$CONFIG_FILES libusb.pc" ;; 22599 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 22600 "README" ) CONFIG_FILES="$CONFIG_FILES README" ;; 22601 "INSTALL.libusb" ) CONFIG_FILES="$CONFIG_FILES INSTALL.libusb" ;; 22602 "usb.h" ) CONFIG_FILES="$CONFIG_FILES usb.h" ;; 22603 "Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; 22604 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22605 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 22606 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22607 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22608echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22609 { (exit 1); exit 1; }; };; 22610 esac 22611done 22612 22613# If the user did not use the arguments to specify the items to instantiate, 22614# then the envvar interface is used. Set only those that are not. 22615# We use the long form for the default assignment because of an extremely 22616# bizarre bug on SunOS 4.1.3. 22617if $ac_need_defaults; then 22618 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22619 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22620 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22621fi 22622 22623# Have a temporary directory for convenience. Make it in the build tree 22624# simply because there is no reason to put it here, and in addition, 22625# creating and moving files from /tmp can sometimes cause problems. 22626# Create a temporary directory, and hook for its removal unless debugging. 22627$debug || 22628{ 22629 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22630 trap '{ (exit 1); exit 1; }' 1 2 13 15 22631} 22632 22633# Create a (secure) tmp directory for tmp files. 22634 22635{ 22636 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 22637 test -n "$tmp" && test -d "$tmp" 22638} || 22639{ 22640 tmp=./confstat$$-$RANDOM 22641 (umask 077 && mkdir $tmp) 22642} || 22643{ 22644 echo "$me: cannot create a temporary directory in ." >&2 22645 { (exit 1); exit 1; } 22646} 22647 22648_ACEOF 22649 22650cat >>$CONFIG_STATUS <<_ACEOF 22651 22652# 22653# CONFIG_FILES section. 22654# 22655 22656# No need to generate the scripts if there are no CONFIG_FILES. 22657# This happens for instance when ./config.status config.h 22658if test -n "\$CONFIG_FILES"; then 22659 # Protect against being on the right side of a sed subst in config.status. 22660 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22661 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22662s,@SHELL@,$SHELL,;t t 22663s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 22664s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22665s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22666s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22667s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22668s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22669s,@exec_prefix@,$exec_prefix,;t t 22670s,@prefix@,$prefix,;t t 22671s,@program_transform_name@,$program_transform_name,;t t 22672s,@bindir@,$bindir,;t t 22673s,@sbindir@,$sbindir,;t t 22674s,@libexecdir@,$libexecdir,;t t 22675s,@datadir@,$datadir,;t t 22676s,@sysconfdir@,$sysconfdir,;t t 22677s,@sharedstatedir@,$sharedstatedir,;t t 22678s,@localstatedir@,$localstatedir,;t t 22679s,@libdir@,$libdir,;t t 22680s,@includedir@,$includedir,;t t 22681s,@oldincludedir@,$oldincludedir,;t t 22682s,@infodir@,$infodir,;t t 22683s,@mandir@,$mandir,;t t 22684s,@build_alias@,$build_alias,;t t 22685s,@host_alias@,$host_alias,;t t 22686s,@target_alias@,$target_alias,;t t 22687s,@DEFS@,$DEFS,;t t 22688s,@ECHO_C@,$ECHO_C,;t t 22689s,@ECHO_N@,$ECHO_N,;t t 22690s,@ECHO_T@,$ECHO_T,;t t 22691s,@LIBS@,$LIBS,;t t 22692s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22693s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22694s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22695s,@CYGPATH_W@,$CYGPATH_W,;t t 22696s,@PACKAGE@,$PACKAGE,;t t 22697s,@VERSION@,$VERSION,;t t 22698s,@ACLOCAL@,$ACLOCAL,;t t 22699s,@AUTOCONF@,$AUTOCONF,;t t 22700s,@AUTOMAKE@,$AUTOMAKE,;t t 22701s,@AUTOHEADER@,$AUTOHEADER,;t t 22702s,@MAKEINFO@,$MAKEINFO,;t t 22703s,@AMTAR@,$AMTAR,;t t 22704s,@install_sh@,$install_sh,;t t 22705s,@STRIP@,$STRIP,;t t 22706s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22707s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 22708s,@mkdir_p@,$mkdir_p,;t t 22709s,@AWK@,$AWK,;t t 22710s,@SET_MAKE@,$SET_MAKE,;t t 22711s,@am__leading_dot@,$am__leading_dot,;t t 22712s,@LIBUSB_MAJOR_VERSION@,$LIBUSB_MAJOR_VERSION,;t t 22713s,@LIBUSB_MINOR_VERSION@,$LIBUSB_MINOR_VERSION,;t t 22714s,@LIBUSB_MICRO_VERSION@,$LIBUSB_MICRO_VERSION,;t t 22715s,@LIBUSB_VERSION@,$LIBUSB_VERSION,;t t 22716s,@LIBUSB_INTERFACE_AGE@,$LIBUSB_INTERFACE_AGE,;t t 22717s,@LIBUSB_BINARY_AGE@,$LIBUSB_BINARY_AGE,;t t 22718s,@LT_RELEASE@,$LT_RELEASE,;t t 22719s,@LT_CURRENT@,$LT_CURRENT,;t t 22720s,@LT_REVISION@,$LT_REVISION,;t t 22721s,@LT_AGE@,$LT_AGE,;t t 22722s,@build@,$build,;t t 22723s,@build_cpu@,$build_cpu,;t t 22724s,@build_vendor@,$build_vendor,;t t 22725s,@build_os@,$build_os,;t t 22726s,@host@,$host,;t t 22727s,@host_cpu@,$host_cpu,;t t 22728s,@host_vendor@,$host_vendor,;t t 22729s,@host_os@,$host_os,;t t 22730s,@CC@,$CC,;t t 22731s,@CFLAGS@,$CFLAGS,;t t 22732s,@LDFLAGS@,$LDFLAGS,;t t 22733s,@CPPFLAGS@,$CPPFLAGS,;t t 22734s,@ac_ct_CC@,$ac_ct_CC,;t t 22735s,@EXEEXT@,$EXEEXT,;t t 22736s,@OBJEXT@,$OBJEXT,;t t 22737s,@DEPDIR@,$DEPDIR,;t t 22738s,@am__include@,$am__include,;t t 22739s,@am__quote@,$am__quote,;t t 22740s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 22741s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 22742s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22743s,@CCDEPMODE@,$CCDEPMODE,;t t 22744s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 22745s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 22746s,@EGREP@,$EGREP,;t t 22747s,@LN_S@,$LN_S,;t t 22748s,@ECHO@,$ECHO,;t t 22749s,@AR@,$AR,;t t 22750s,@ac_ct_AR@,$ac_ct_AR,;t t 22751s,@RANLIB@,$RANLIB,;t t 22752s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22753s,@CPP@,$CPP,;t t 22754s,@CXX@,$CXX,;t t 22755s,@CXXFLAGS@,$CXXFLAGS,;t t 22756s,@ac_ct_CXX@,$ac_ct_CXX,;t t 22757s,@CXXDEPMODE@,$CXXDEPMODE,;t t 22758s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 22759s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 22760s,@CXXCPP@,$CXXCPP,;t t 22761s,@F77@,$F77,;t t 22762s,@FFLAGS@,$FFLAGS,;t t 22763s,@ac_ct_F77@,$ac_ct_F77,;t t 22764s,@LIBTOOL@,$LIBTOOL,;t t 22765s,@DARWIN_API@,$DARWIN_API,;t t 22766s,@LINUX_API@,$LINUX_API,;t t 22767s,@BSD_API@,$BSD_API,;t t 22768s,@LINUX_API_TRUE@,$LINUX_API_TRUE,;t t 22769s,@LINUX_API_FALSE@,$LINUX_API_FALSE,;t t 22770s,@BSD_API_TRUE@,$BSD_API_TRUE,;t t 22771s,@BSD_API_FALSE@,$BSD_API_FALSE,;t t 22772s,@DARWIN_API_TRUE@,$DARWIN_API_TRUE,;t t 22773s,@DARWIN_API_FALSE@,$DARWIN_API_FALSE,;t t 22774s,@OSLIBS@,$OSLIBS,;t t 22775s,@BIGENDIAN@,$BIGENDIAN,;t t 22776s,@PKG_CONFIG@,$PKG_CONFIG,;t t 22777s,@pkgconfigdir@,$pkgconfigdir,;t t 22778s,@JADE@,$JADE,;t t 22779s,@LIBUSB_HAVE_DOT@,$LIBUSB_HAVE_DOT,;t t 22780s,@DOXYGEN@,$DOXYGEN,;t t 22781s,@DOXYGEN_PROJECT_NAME@,$DOXYGEN_PROJECT_NAME,;t t 22782s,@DOXYGEN_PROJECT_NUMBER@,$DOXYGEN_PROJECT_NUMBER,;t t 22783s,@LIBUSB_HAS_DOXYGEN@,$LIBUSB_HAS_DOXYGEN,;t t 22784s,@BUILD_DOCS_TRUE@,$BUILD_DOCS_TRUE,;t t 22785s,@BUILD_DOCS_FALSE@,$BUILD_DOCS_FALSE,;t t 22786s,@LIBOBJS@,$LIBOBJS,;t t 22787s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22788CEOF 22789 22790_ACEOF 22791 22792 cat >>$CONFIG_STATUS <<\_ACEOF 22793 # Split the substitutions into bite-sized pieces for seds with 22794 # small command number limits, like on Digital OSF/1 and HP-UX. 22795 ac_max_sed_lines=48 22796 ac_sed_frag=1 # Number of current file. 22797 ac_beg=1 # First line for current file. 22798 ac_end=$ac_max_sed_lines # Line after last line for current file. 22799 ac_more_lines=: 22800 ac_sed_cmds= 22801 while $ac_more_lines; do 22802 if test $ac_beg -gt 1; then 22803 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22804 else 22805 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22806 fi 22807 if test ! -s $tmp/subs.frag; then 22808 ac_more_lines=false 22809 else 22810 # The purpose of the label and of the branching condition is to 22811 # speed up the sed processing (if there are no `@' at all, there 22812 # is no need to browse any of the substitutions). 22813 # These are the two extra sed commands mentioned above. 22814 (echo ':t 22815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22816 if test -z "$ac_sed_cmds"; then 22817 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22818 else 22819 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22820 fi 22821 ac_sed_frag=`expr $ac_sed_frag + 1` 22822 ac_beg=$ac_end 22823 ac_end=`expr $ac_end + $ac_max_sed_lines` 22824 fi 22825 done 22826 if test -z "$ac_sed_cmds"; then 22827 ac_sed_cmds=cat 22828 fi 22829fi # test -n "$CONFIG_FILES" 22830 22831_ACEOF 22832cat >>$CONFIG_STATUS <<\_ACEOF 22833for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22834 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22835 case $ac_file in 22836 - | *:- | *:-:* ) # input from stdin 22837 cat >$tmp/stdin 22838 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22839 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22840 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22841 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22842 * ) ac_file_in=$ac_file.in ;; 22843 esac 22844 22845 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22846 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22847$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22848 X"$ac_file" : 'X\(//\)[^/]' \| \ 22849 X"$ac_file" : 'X\(//\)$' \| \ 22850 X"$ac_file" : 'X\(/\)' \| \ 22851 . : '\(.\)' 2>/dev/null || 22852echo X"$ac_file" | 22853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22854 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22855 /^X\(\/\/\)$/{ s//\1/; q; } 22856 /^X\(\/\).*/{ s//\1/; q; } 22857 s/.*/./; q'` 22858 { if $as_mkdir_p; then 22859 mkdir -p "$ac_dir" 22860 else 22861 as_dir="$ac_dir" 22862 as_dirs= 22863 while test ! -d "$as_dir"; do 22864 as_dirs="$as_dir $as_dirs" 22865 as_dir=`(dirname "$as_dir") 2>/dev/null || 22866$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22867 X"$as_dir" : 'X\(//\)[^/]' \| \ 22868 X"$as_dir" : 'X\(//\)$' \| \ 22869 X"$as_dir" : 'X\(/\)' \| \ 22870 . : '\(.\)' 2>/dev/null || 22871echo X"$as_dir" | 22872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22874 /^X\(\/\/\)$/{ s//\1/; q; } 22875 /^X\(\/\).*/{ s//\1/; q; } 22876 s/.*/./; q'` 22877 done 22878 test ! -n "$as_dirs" || mkdir $as_dirs 22879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 22880echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 22881 { (exit 1); exit 1; }; }; } 22882 22883 ac_builddir=. 22884 22885if test "$ac_dir" != .; then 22886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22887 # A "../" for each directory in $ac_dir_suffix. 22888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 22889else 22890 ac_dir_suffix= ac_top_builddir= 22891fi 22892 22893case $srcdir in 22894 .) # No --srcdir option. We are building in place. 22895 ac_srcdir=. 22896 if test -z "$ac_top_builddir"; then 22897 ac_top_srcdir=. 22898 else 22899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 22900 fi ;; 22901 [\\/]* | ?:[\\/]* ) # Absolute path. 22902 ac_srcdir=$srcdir$ac_dir_suffix; 22903 ac_top_srcdir=$srcdir ;; 22904 *) # Relative path. 22905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22906 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22907esac 22908 22909# Do not use `cd foo && pwd` to compute absolute paths, because 22910# the directories may not exist. 22911case `pwd` in 22912.) ac_abs_builddir="$ac_dir";; 22913*) 22914 case "$ac_dir" in 22915 .) ac_abs_builddir=`pwd`;; 22916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 22917 *) ac_abs_builddir=`pwd`/"$ac_dir";; 22918 esac;; 22919esac 22920case $ac_abs_builddir in 22921.) ac_abs_top_builddir=${ac_top_builddir}.;; 22922*) 22923 case ${ac_top_builddir}. in 22924 .) ac_abs_top_builddir=$ac_abs_builddir;; 22925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 22926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 22927 esac;; 22928esac 22929case $ac_abs_builddir in 22930.) ac_abs_srcdir=$ac_srcdir;; 22931*) 22932 case $ac_srcdir in 22933 .) ac_abs_srcdir=$ac_abs_builddir;; 22934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 22935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 22936 esac;; 22937esac 22938case $ac_abs_builddir in 22939.) ac_abs_top_srcdir=$ac_top_srcdir;; 22940*) 22941 case $ac_top_srcdir in 22942 .) ac_abs_top_srcdir=$ac_abs_builddir;; 22943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 22944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 22945 esac;; 22946esac 22947 22948 22949 case $INSTALL in 22950 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22951 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 22952 esac 22953 22954 if test x"$ac_file" != x-; then 22955 { echo "$as_me:$LINENO: creating $ac_file" >&5 22956echo "$as_me: creating $ac_file" >&6;} 22957 rm -f "$ac_file" 22958 fi 22959 # Let's still pretend it is `configure' which instantiates (i.e., don't 22960 # use $as_me), people would be surprised to read: 22961 # /* config.h. Generated by config.status. */ 22962 if test x"$ac_file" = x-; then 22963 configure_input= 22964 else 22965 configure_input="$ac_file. " 22966 fi 22967 configure_input=$configure_input"Generated from `echo $ac_file_in | 22968 sed 's,.*/,,'` by configure." 22969 22970 # First look for the input files in the build tree, otherwise in the 22971 # src tree. 22972 ac_file_inputs=`IFS=: 22973 for f in $ac_file_in; do 22974 case $f in 22975 -) echo $tmp/stdin ;; 22976 [\\/$]*) 22977 # Absolute (can't be DOS-style, as IFS=:) 22978 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22979echo "$as_me: error: cannot find input file: $f" >&2;} 22980 { (exit 1); exit 1; }; } 22981 echo "$f";; 22982 *) # Relative 22983 if test -f "$f"; then 22984 # Build tree 22985 echo "$f" 22986 elif test -f "$srcdir/$f"; then 22987 # Source tree 22988 echo "$srcdir/$f" 22989 else 22990 # /dev/null tree 22991 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22992echo "$as_me: error: cannot find input file: $f" >&2;} 22993 { (exit 1); exit 1; }; } 22994 fi;; 22995 esac 22996 done` || { (exit 1); exit 1; } 22997_ACEOF 22998cat >>$CONFIG_STATUS <<_ACEOF 22999 sed "$ac_vpsub 23000$extrasub 23001_ACEOF 23002cat >>$CONFIG_STATUS <<\_ACEOF 23003:t 23004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23005s,@configure_input@,$configure_input,;t t 23006s,@srcdir@,$ac_srcdir,;t t 23007s,@abs_srcdir@,$ac_abs_srcdir,;t t 23008s,@top_srcdir@,$ac_top_srcdir,;t t 23009s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23010s,@builddir@,$ac_builddir,;t t 23011s,@abs_builddir@,$ac_abs_builddir,;t t 23012s,@top_builddir@,$ac_top_builddir,;t t 23013s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23014s,@INSTALL@,$ac_INSTALL,;t t 23015" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23016 rm -f $tmp/stdin 23017 if test x"$ac_file" != x-; then 23018 mv $tmp/out $ac_file 23019 else 23020 cat $tmp/out 23021 rm -f $tmp/out 23022 fi 23023 23024done 23025_ACEOF 23026cat >>$CONFIG_STATUS <<\_ACEOF 23027 23028# 23029# CONFIG_HEADER section. 23030# 23031 23032# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23033# NAME is the cpp macro being defined and VALUE is the value it is being given. 23034# 23035# ac_d sets the value in "#define NAME VALUE" lines. 23036ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23037ac_dB='[ ].*$,\1#\2' 23038ac_dC=' ' 23039ac_dD=',;t' 23040# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23041ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23042ac_uB='$,\1#\2define\3' 23043ac_uC=' ' 23044ac_uD=',;t' 23045 23046for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23048 case $ac_file in 23049 - | *:- | *:-:* ) # input from stdin 23050 cat >$tmp/stdin 23051 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23052 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23053 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23054 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23055 * ) ac_file_in=$ac_file.in ;; 23056 esac 23057 23058 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23059echo "$as_me: creating $ac_file" >&6;} 23060 23061 # First look for the input files in the build tree, otherwise in the 23062 # src tree. 23063 ac_file_inputs=`IFS=: 23064 for f in $ac_file_in; do 23065 case $f in 23066 -) echo $tmp/stdin ;; 23067 [\\/$]*) 23068 # Absolute (can't be DOS-style, as IFS=:) 23069 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23070echo "$as_me: error: cannot find input file: $f" >&2;} 23071 { (exit 1); exit 1; }; } 23072 # Do quote $f, to prevent DOS paths from being IFS'd. 23073 echo "$f";; 23074 *) # Relative 23075 if test -f "$f"; then 23076 # Build tree 23077 echo "$f" 23078 elif test -f "$srcdir/$f"; then 23079 # Source tree 23080 echo "$srcdir/$f" 23081 else 23082 # /dev/null tree 23083 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23084echo "$as_me: error: cannot find input file: $f" >&2;} 23085 { (exit 1); exit 1; }; } 23086 fi;; 23087 esac 23088 done` || { (exit 1); exit 1; } 23089 # Remove the trailing spaces. 23090 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23091 23092_ACEOF 23093 23094# Transform confdefs.h into two sed scripts, `conftest.defines' and 23095# `conftest.undefs', that substitutes the proper values into 23096# config.h.in to produce config.h. The first handles `#define' 23097# templates, and the second `#undef' templates. 23098# And first: Protect against being on the right side of a sed subst in 23099# config.status. Protect against being in an unquoted here document 23100# in config.status. 23101rm -f conftest.defines conftest.undefs 23102# Using a here document instead of a string reduces the quoting nightmare. 23103# Putting comments in sed scripts is not portable. 23104# 23105# `end' is used to avoid that the second main sed command (meant for 23106# 0-ary CPP macros) applies to n-ary macro definitions. 23107# See the Autoconf documentation for `clear'. 23108cat >confdef2sed.sed <<\_ACEOF 23109s/[\\&,]/\\&/g 23110s,[\\$`],\\&,g 23111t clear 23112: clear 23113s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23114t end 23115s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23116: end 23117_ACEOF 23118# If some macros were called several times there might be several times 23119# the same #defines, which is useless. Nevertheless, we may not want to 23120# sort them, since we want the *last* AC-DEFINE to be honored. 23121uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23122sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23123rm -f confdef2sed.sed 23124 23125# This sed command replaces #undef with comments. This is necessary, for 23126# example, in the case of _POSIX_SOURCE, which is predefined and required 23127# on some systems where configure will not decide to define it. 23128cat >>conftest.undefs <<\_ACEOF 23129s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 23130_ACEOF 23131 23132# Break up conftest.defines because some shells have a limit on the size 23133# of here documents, and old seds have small limits too (100 cmds). 23134echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 23135echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 23136echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 23137echo ' :' >>$CONFIG_STATUS 23138rm -f conftest.tail 23139while grep . conftest.defines >/dev/null 23140do 23141 # Write a limited-size here document to $tmp/defines.sed. 23142 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 23143 # Speed up: don't consider the non `#define' lines. 23144 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 23145 # Work around the forget-to-reset-the-flag bug. 23146 echo 't clr' >>$CONFIG_STATUS 23147 echo ': clr' >>$CONFIG_STATUS 23148 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 23149 echo 'CEOF 23150 sed -f $tmp/defines.sed $tmp/in >$tmp/out 23151 rm -f $tmp/in 23152 mv $tmp/out $tmp/in 23153' >>$CONFIG_STATUS 23154 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 23155 rm -f conftest.defines 23156 mv conftest.tail conftest.defines 23157done 23158rm -f conftest.defines 23159echo ' fi # grep' >>$CONFIG_STATUS 23160echo >>$CONFIG_STATUS 23161 23162# Break up conftest.undefs because some shells have a limit on the size 23163# of here documents, and old seds have small limits too (100 cmds). 23164echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 23165rm -f conftest.tail 23166while grep . conftest.undefs >/dev/null 23167do 23168 # Write a limited-size here document to $tmp/undefs.sed. 23169 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 23170 # Speed up: don't consider the non `#undef' 23171 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 23172 # Work around the forget-to-reset-the-flag bug. 23173 echo 't clr' >>$CONFIG_STATUS 23174 echo ': clr' >>$CONFIG_STATUS 23175 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 23176 echo 'CEOF 23177 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 23178 rm -f $tmp/in 23179 mv $tmp/out $tmp/in 23180' >>$CONFIG_STATUS 23181 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 23182 rm -f conftest.undefs 23183 mv conftest.tail conftest.undefs 23184done 23185rm -f conftest.undefs 23186 23187cat >>$CONFIG_STATUS <<\_ACEOF 23188 # Let's still pretend it is `configure' which instantiates (i.e., don't 23189 # use $as_me), people would be surprised to read: 23190 # /* config.h. Generated by config.status. */ 23191 if test x"$ac_file" = x-; then 23192 echo "/* Generated by configure. */" >$tmp/config.h 23193 else 23194 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 23195 fi 23196 cat $tmp/in >>$tmp/config.h 23197 rm -f $tmp/in 23198 if test x"$ac_file" != x-; then 23199 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 23200 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23201echo "$as_me: $ac_file is unchanged" >&6;} 23202 else 23203 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23204$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23205 X"$ac_file" : 'X\(//\)[^/]' \| \ 23206 X"$ac_file" : 'X\(//\)$' \| \ 23207 X"$ac_file" : 'X\(/\)' \| \ 23208 . : '\(.\)' 2>/dev/null || 23209echo X"$ac_file" | 23210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23211 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23212 /^X\(\/\/\)$/{ s//\1/; q; } 23213 /^X\(\/\).*/{ s//\1/; q; } 23214 s/.*/./; q'` 23215 { if $as_mkdir_p; then 23216 mkdir -p "$ac_dir" 23217 else 23218 as_dir="$ac_dir" 23219 as_dirs= 23220 while test ! -d "$as_dir"; do 23221 as_dirs="$as_dir $as_dirs" 23222 as_dir=`(dirname "$as_dir") 2>/dev/null || 23223$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23224 X"$as_dir" : 'X\(//\)[^/]' \| \ 23225 X"$as_dir" : 'X\(//\)$' \| \ 23226 X"$as_dir" : 'X\(/\)' \| \ 23227 . : '\(.\)' 2>/dev/null || 23228echo X"$as_dir" | 23229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23230 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23231 /^X\(\/\/\)$/{ s//\1/; q; } 23232 /^X\(\/\).*/{ s//\1/; q; } 23233 s/.*/./; q'` 23234 done 23235 test ! -n "$as_dirs" || mkdir $as_dirs 23236 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23237echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23238 { (exit 1); exit 1; }; }; } 23239 23240 rm -f $ac_file 23241 mv $tmp/config.h $ac_file 23242 fi 23243 else 23244 cat $tmp/config.h 23245 rm -f $tmp/config.h 23246 fi 23247# Compute $ac_file's index in $config_headers. 23248_am_stamp_count=1 23249for _am_header in $config_headers :; do 23250 case $_am_header in 23251 $ac_file | $ac_file:* ) 23252 break ;; 23253 * ) 23254 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23255 esac 23256done 23257echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 23258$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23259 X$ac_file : 'X\(//\)[^/]' \| \ 23260 X$ac_file : 'X\(//\)$' \| \ 23261 X$ac_file : 'X\(/\)' \| \ 23262 . : '\(.\)' 2>/dev/null || 23263echo X$ac_file | 23264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23265 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23266 /^X\(\/\/\)$/{ s//\1/; q; } 23267 /^X\(\/\).*/{ s//\1/; q; } 23268 s/.*/./; q'`/stamp-h$_am_stamp_count 23269done 23270_ACEOF 23271cat >>$CONFIG_STATUS <<\_ACEOF 23272 23273# 23274# CONFIG_COMMANDS section. 23275# 23276for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23277 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23278 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23279 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23280$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23281 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23282 X"$ac_dest" : 'X\(//\)$' \| \ 23283 X"$ac_dest" : 'X\(/\)' \| \ 23284 . : '\(.\)' 2>/dev/null || 23285echo X"$ac_dest" | 23286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23287 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23288 /^X\(\/\/\)$/{ s//\1/; q; } 23289 /^X\(\/\).*/{ s//\1/; q; } 23290 s/.*/./; q'` 23291 { if $as_mkdir_p; then 23292 mkdir -p "$ac_dir" 23293 else 23294 as_dir="$ac_dir" 23295 as_dirs= 23296 while test ! -d "$as_dir"; do 23297 as_dirs="$as_dir $as_dirs" 23298 as_dir=`(dirname "$as_dir") 2>/dev/null || 23299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23300 X"$as_dir" : 'X\(//\)[^/]' \| \ 23301 X"$as_dir" : 'X\(//\)$' \| \ 23302 X"$as_dir" : 'X\(/\)' \| \ 23303 . : '\(.\)' 2>/dev/null || 23304echo X"$as_dir" | 23305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23306 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23307 /^X\(\/\/\)$/{ s//\1/; q; } 23308 /^X\(\/\).*/{ s//\1/; q; } 23309 s/.*/./; q'` 23310 done 23311 test ! -n "$as_dirs" || mkdir $as_dirs 23312 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23313echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23314 { (exit 1); exit 1; }; }; } 23315 23316 ac_builddir=. 23317 23318if test "$ac_dir" != .; then 23319 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23320 # A "../" for each directory in $ac_dir_suffix. 23321 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23322else 23323 ac_dir_suffix= ac_top_builddir= 23324fi 23325 23326case $srcdir in 23327 .) # No --srcdir option. We are building in place. 23328 ac_srcdir=. 23329 if test -z "$ac_top_builddir"; then 23330 ac_top_srcdir=. 23331 else 23332 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23333 fi ;; 23334 [\\/]* | ?:[\\/]* ) # Absolute path. 23335 ac_srcdir=$srcdir$ac_dir_suffix; 23336 ac_top_srcdir=$srcdir ;; 23337 *) # Relative path. 23338 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23339 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23340esac 23341 23342# Do not use `cd foo && pwd` to compute absolute paths, because 23343# the directories may not exist. 23344case `pwd` in 23345.) ac_abs_builddir="$ac_dir";; 23346*) 23347 case "$ac_dir" in 23348 .) ac_abs_builddir=`pwd`;; 23349 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23350 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23351 esac;; 23352esac 23353case $ac_abs_builddir in 23354.) ac_abs_top_builddir=${ac_top_builddir}.;; 23355*) 23356 case ${ac_top_builddir}. in 23357 .) ac_abs_top_builddir=$ac_abs_builddir;; 23358 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23359 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23360 esac;; 23361esac 23362case $ac_abs_builddir in 23363.) ac_abs_srcdir=$ac_srcdir;; 23364*) 23365 case $ac_srcdir in 23366 .) ac_abs_srcdir=$ac_abs_builddir;; 23367 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23368 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23369 esac;; 23370esac 23371case $ac_abs_builddir in 23372.) ac_abs_top_srcdir=$ac_top_srcdir;; 23373*) 23374 case $ac_top_srcdir in 23375 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23376 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23377 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23378 esac;; 23379esac 23380 23381 23382 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23383echo "$as_me: executing $ac_dest commands" >&6;} 23384 case $ac_dest in 23385 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23386 # Strip MF so we end up with the name of the file. 23387 mf=`echo "$mf" | sed -e 's/:.*$//'` 23388 # Check whether this is an Automake generated Makefile or not. 23389 # We used to match only the files named `Makefile.in', but 23390 # some people rename them; so instead we look at the file content. 23391 # Grep'ing the first line is not enough: some people post-process 23392 # each Makefile.in and add a new line on top of each file to say so. 23393 # So let's grep whole file. 23394 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23395 dirpart=`(dirname "$mf") 2>/dev/null || 23396$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23397 X"$mf" : 'X\(//\)[^/]' \| \ 23398 X"$mf" : 'X\(//\)$' \| \ 23399 X"$mf" : 'X\(/\)' \| \ 23400 . : '\(.\)' 2>/dev/null || 23401echo X"$mf" | 23402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23403 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23404 /^X\(\/\/\)$/{ s//\1/; q; } 23405 /^X\(\/\).*/{ s//\1/; q; } 23406 s/.*/./; q'` 23407 else 23408 continue 23409 fi 23410 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 23411 # Extract the definition of DEP_FILES from the Makefile without 23412 # running `make'. 23413 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23414 test -z "$DEPDIR" && continue 23415 # When using ansi2knr, U may be empty or an underscore; expand it 23416 U=`sed -n 's/^U = //p' < "$mf"` 23417 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 23418 # We invoke sed twice because it is the simplest approach to 23419 # changing $(DEPDIR) to its actual value in the expansion. 23420 for file in `sed -n ' 23421 /^DEP_FILES = .*\\\\$/ { 23422 s/^DEP_FILES = // 23423 :loop 23424 s/\\\\$// 23425 p 23426 n 23427 /\\\\$/ b loop 23428 p 23429 } 23430 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 23431 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23432 # Make sure the directory exists. 23433 test -f "$dirpart/$file" && continue 23434 fdir=`(dirname "$file") 2>/dev/null || 23435$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23436 X"$file" : 'X\(//\)[^/]' \| \ 23437 X"$file" : 'X\(//\)$' \| \ 23438 X"$file" : 'X\(/\)' \| \ 23439 . : '\(.\)' 2>/dev/null || 23440echo X"$file" | 23441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23442 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23443 /^X\(\/\/\)$/{ s//\1/; q; } 23444 /^X\(\/\).*/{ s//\1/; q; } 23445 s/.*/./; q'` 23446 { if $as_mkdir_p; then 23447 mkdir -p $dirpart/$fdir 23448 else 23449 as_dir=$dirpart/$fdir 23450 as_dirs= 23451 while test ! -d "$as_dir"; do 23452 as_dirs="$as_dir $as_dirs" 23453 as_dir=`(dirname "$as_dir") 2>/dev/null || 23454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23455 X"$as_dir" : 'X\(//\)[^/]' \| \ 23456 X"$as_dir" : 'X\(//\)$' \| \ 23457 X"$as_dir" : 'X\(/\)' \| \ 23458 . : '\(.\)' 2>/dev/null || 23459echo X"$as_dir" | 23460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23461 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23462 /^X\(\/\/\)$/{ s//\1/; q; } 23463 /^X\(\/\).*/{ s//\1/; q; } 23464 s/.*/./; q'` 23465 done 23466 test ! -n "$as_dirs" || mkdir $as_dirs 23467 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23468echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 23469 { (exit 1); exit 1; }; }; } 23470 23471 # echo "creating $dirpart/$file" 23472 echo '# dummy' > "$dirpart/$file" 23473 done 23474done 23475 ;; 23476 default ) chmod +x libusb-config ;; 23477 esac 23478done 23479_ACEOF 23480 23481cat >>$CONFIG_STATUS <<\_ACEOF 23482 23483{ (exit 0); exit 0; } 23484_ACEOF 23485chmod +x $CONFIG_STATUS 23486ac_clean_files=$ac_clean_files_save 23487 23488 23489# configure is writing to config.log, and then calls config.status. 23490# config.status does its own redirection, appending to config.log. 23491# Unfortunately, on DOS this fails, as config.log is still kept open 23492# by configure, so config.status won't be able to write to it; its 23493# output is simply discarded. So we exec the FD to /dev/null, 23494# effectively closing config.log, so it can be properly (re)opened and 23495# appended to by config.status. When coming back to configure, we 23496# need to make the FD available again. 23497if test "$no_create" != yes; then 23498 ac_cs_success=: 23499 ac_config_status_args= 23500 test "$silent" = yes && 23501 ac_config_status_args="$ac_config_status_args --quiet" 23502 exec 5>/dev/null 23503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23504 exec 5>>config.log 23505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23506 # would make configure fail if this is the last instruction. 23507 $ac_cs_success || { (exit 1); exit 1; } 23508fi 23509 23510 23511