1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string="`eval $cmd`") 2>/dev/null && 289 echo_test_string="`eval $cmd`" && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME= 423PACKAGE_TARNAME= 424PACKAGE_VERSION= 425PACKAGE_STRING= 426PACKAGE_BUGREPORT= 427 428ac_unique_file="src/flac/main.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 AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 ACLOCAL_AMFLAGS CCAS CCASFLAGS FLaC__CPU_IA32_TRUE FLaC__CPU_IA32_FALSE FLaC__CPU_PPC_TRUE FLaC__CPU_PPC_FALSE FLaC__CPU_SPARC_TRUE FLaC__CPU_SPARC_FALSE OBJ_FORMAT MINGW_WINSOCK_LIBS FLaC__SYS_DARWIN_TRUE FLaC__SYS_DARWIN_FALSE FLaC__SYS_LINUX_TRUE FLaC__SYS_LINUX_FALSE FLaC__NO_ASM_TRUE FLaC__NO_ASM_FALSE DEBUG_TRUE DEBUG_FALSE FLaC__SSE_OS_TRUE FLaC__SSE_OS_FALSE FLaC__USE_3DNOW_TRUE FLaC__USE_3DNOW_FALSE FLaC__USE_ALTIVEC_TRUE FLaC__USE_ALTIVEC_FALSE FLAC__TEST_LEVEL FLAC__TEST_WITH_VALGRIND DOXYGEN FLaC__HAS_DOXYGEN_TRUE FLaC__HAS_DOXYGEN_FALSE FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE XMMS_CONFIG XMMS_CFLAGS XMMS_LIBS XMMS_VERSION XMMS_DATA_DIR XMMS_PLUGIN_DIR XMMS_VISUALIZATION_PLUGIN_DIR XMMS_INPUT_PLUGIN_DIR XMMS_OUTPUT_PLUGIN_DIR XMMS_GENERAL_PLUGIN_DIR XMMS_EFFECT_PLUGIN_DIR FLaC__HAS_XMMS_TRUE FLaC__HAS_XMMS_FALSE FLaC__WITH_CPPLIBS_TRUE FLaC__WITH_CPPLIBS_FALSE OGG_CFLAGS OGG_LIBS FLaC__HAS_OGG_TRUE FLaC__HAS_OGG_FALSE LIBICONV LTLIBICONV DOCBOOK_TO_MAN FLaC__HAS_DOCBOOK_TO_MAN_TRUE FLaC__HAS_DOCBOOK_TO_MAN_FALSE NASM FLaC__HAS_NASM_TRUE FLaC__HAS_NASM_FALSE AS GAS FLaC__HAS_AS_TRUE FLaC__HAS_AS_FALSE FLaC__HAS_GAS_TRUE FLaC__HAS_GAS_FALSE FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures this package to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008Program names: 1009 --program-prefix=PREFIX prepend PREFIX to installed program names 1010 --program-suffix=SUFFIX append SUFFIX to installed program names 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1012 1013System types: 1014 --build=BUILD configure for building on BUILD [guessed] 1015 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1016_ACEOF 1017fi 1018 1019if test -n "$ac_init_help"; then 1020 1021 cat <<\_ACEOF 1022 1023Optional Features: 1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1026 --enable-maintainer-mode enable make rules and dependencies not useful 1027 (and sometimes confusing) to the casual installer 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 builds 1035 --enable-dependency-tracking Do not reject slow dependency extractors 1036 --disable-libtool-lock avoid locking (might break parallel builds) 1037 --disable-largefile omit support for large files 1038 --disable-asm-optimizations 1039 Don't use any assembly optimization routines 1040 --enable-debug Turn on debugging 1041 --enable-sse Enable SSE support by asserting that the OS supports 1042 SSE instructions 1043 --disable-3dnow Disable 3DNOW! optimizations 1044 --disable-altivec Disable Altivec optimizations 1045 --disable-thorough-tests 1046 Disable thorough (long) testing, do only basic tests 1047 --enable-exhaustive-tests 1048 Enable exhaustive testing (VERY long) 1049 --enable-valgrind-testing 1050 Run all tests inside Valgrind 1051 --disable-doxygen-docs Disable API documentation building via Doxygen 1052 --enable-local-xmms-plugin 1053 Install XMMS plugin to ~/.xmms/Plugins instead of 1054 system location 1055 --disable-xmms-plugin Do not build XMMS plugin 1056 --disable-cpplibs Do not build libFLAC++ 1057 --disable-ogg Disable ogg support (default: test for libogg) 1058 --disable-oggtest Do not try to compile and run a test Ogg program 1059 --disable-rpath do not hardcode runtime library paths 1060 1061Optional Packages: 1062 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1063 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1064 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1065 --with-pic try to use only PIC/non-PIC objects [default=use 1066 both] 1067 --with-tags[=TAGS] 1068 include additional configurations [automatic] 1069 --with-xmms-prefix=PFX Prefix where XMMS is installed (optional) 1070 --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional) 1071 --with-ogg=PFX Prefix where libogg is installed (optional) 1072 --with-ogg-libraries=DIR Directory where libogg library is installed (optional) 1073 --with-ogg-includes=DIR Directory where libogg header files are installed (optional) 1074 --with-gnu-ld assume the C compiler uses GNU ld default=no 1075 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1076 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1077 1078Some influential environment variables: 1079 CC C compiler command 1080 CFLAGS C compiler flags 1081 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1082 nonstandard directory <lib dir> 1083 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1084 headers in a nonstandard directory <include dir> 1085 CPP C preprocessor 1086 CXX C++ compiler command 1087 CXXFLAGS C++ compiler flags 1088 CXXCPP C++ preprocessor 1089 F77 Fortran 77 compiler command 1090 FFLAGS Fortran 77 compiler flags 1091 1092Use these variables to override the choices made by `configure' or to help 1093it to find libraries and programs with nonstandard names/locations. 1094 1095_ACEOF 1096fi 1097 1098if test "$ac_init_help" = "recursive"; then 1099 # If there are subdirs, report their specific --help. 1100 ac_popdir=`pwd` 1101 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1102 test -d $ac_dir || continue 1103 ac_builddir=. 1104 1105if test "$ac_dir" != .; then 1106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1107 # A "../" for each directory in $ac_dir_suffix. 1108 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1109else 1110 ac_dir_suffix= ac_top_builddir= 1111fi 1112 1113case $srcdir in 1114 .) # No --srcdir option. We are building in place. 1115 ac_srcdir=. 1116 if test -z "$ac_top_builddir"; then 1117 ac_top_srcdir=. 1118 else 1119 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1120 fi ;; 1121 [\\/]* | ?:[\\/]* ) # Absolute path. 1122 ac_srcdir=$srcdir$ac_dir_suffix; 1123 ac_top_srcdir=$srcdir ;; 1124 *) # Relative path. 1125 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1126 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1127esac 1128 1129# Do not use `cd foo && pwd` to compute absolute paths, because 1130# the directories may not exist. 1131case `pwd` in 1132.) ac_abs_builddir="$ac_dir";; 1133*) 1134 case "$ac_dir" in 1135 .) ac_abs_builddir=`pwd`;; 1136 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1137 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1138 esac;; 1139esac 1140case $ac_abs_builddir in 1141.) ac_abs_top_builddir=${ac_top_builddir}.;; 1142*) 1143 case ${ac_top_builddir}. in 1144 .) ac_abs_top_builddir=$ac_abs_builddir;; 1145 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1146 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1147 esac;; 1148esac 1149case $ac_abs_builddir in 1150.) ac_abs_srcdir=$ac_srcdir;; 1151*) 1152 case $ac_srcdir in 1153 .) ac_abs_srcdir=$ac_abs_builddir;; 1154 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1155 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1156 esac;; 1157esac 1158case $ac_abs_builddir in 1159.) ac_abs_top_srcdir=$ac_top_srcdir;; 1160*) 1161 case $ac_top_srcdir in 1162 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1163 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1164 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1165 esac;; 1166esac 1167 1168 cd $ac_dir 1169 # Check for guested configure; otherwise get Cygnus style configure. 1170 if test -f $ac_srcdir/configure.gnu; then 1171 echo 1172 $SHELL $ac_srcdir/configure.gnu --help=recursive 1173 elif test -f $ac_srcdir/configure; then 1174 echo 1175 $SHELL $ac_srcdir/configure --help=recursive 1176 elif test -f $ac_srcdir/configure.ac || 1177 test -f $ac_srcdir/configure.in; then 1178 echo 1179 $ac_configure --help 1180 else 1181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1182 fi 1183 cd $ac_popdir 1184 done 1185fi 1186 1187test -n "$ac_init_help" && exit 0 1188if $ac_init_version; then 1189 cat <<\_ACEOF 1190 1191Copyright (C) 2003 Free Software Foundation, Inc. 1192This configure script is free software; the Free Software Foundation 1193gives unlimited permission to copy, distribute and modify it. 1194_ACEOF 1195 exit 0 1196fi 1197exec 5>config.log 1198cat >&5 <<_ACEOF 1199This file contains any messages produced by compilers while 1200running configure, to aid debugging if configure makes a mistake. 1201 1202It was created by $as_me, which was 1203generated by GNU Autoconf 2.59. Invocation command line was 1204 1205 $ $0 $@ 1206 1207_ACEOF 1208{ 1209cat <<_ASUNAME 1210## --------- ## 1211## Platform. ## 1212## --------- ## 1213 1214hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1215uname -m = `(uname -m) 2>/dev/null || echo unknown` 1216uname -r = `(uname -r) 2>/dev/null || echo unknown` 1217uname -s = `(uname -s) 2>/dev/null || echo unknown` 1218uname -v = `(uname -v) 2>/dev/null || echo unknown` 1219 1220/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1221/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1222 1223/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1224/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1225/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1226hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1227/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1228/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1229/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1230 1231_ASUNAME 1232 1233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1234for as_dir in $PATH 1235do 1236 IFS=$as_save_IFS 1237 test -z "$as_dir" && as_dir=. 1238 echo "PATH: $as_dir" 1239done 1240 1241} >&5 1242 1243cat >&5 <<_ACEOF 1244 1245 1246## ----------- ## 1247## Core tests. ## 1248## ----------- ## 1249 1250_ACEOF 1251 1252 1253# Keep a trace of the command line. 1254# Strip out --no-create and --no-recursion so they do not pile up. 1255# Strip out --silent because we don't want to record it for future runs. 1256# Also quote any args containing shell meta-characters. 1257# Make two passes to allow for proper duplicate-argument suppression. 1258ac_configure_args= 1259ac_configure_args0= 1260ac_configure_args1= 1261ac_sep= 1262ac_must_keep_next=false 1263for ac_pass in 1 2 1264do 1265 for ac_arg 1266 do 1267 case $ac_arg in 1268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1270 | -silent | --silent | --silen | --sile | --sil) 1271 continue ;; 1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1274 esac 1275 case $ac_pass in 1276 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1277 2) 1278 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1279 if test $ac_must_keep_next = true; then 1280 ac_must_keep_next=false # Got value, back to normal. 1281 else 1282 case $ac_arg in 1283 *=* | --config-cache | -C | -disable-* | --disable-* \ 1284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1286 | -with-* | --with-* | -without-* | --without-* | --x) 1287 case "$ac_configure_args0 " in 1288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1289 esac 1290 ;; 1291 -* ) ac_must_keep_next=true ;; 1292 esac 1293 fi 1294 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1295 # Get rid of the leading space. 1296 ac_sep=" " 1297 ;; 1298 esac 1299 done 1300done 1301$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1302$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1303 1304# When interrupted or exit'd, cleanup temporary files, and complete 1305# config.log. We remove comments because anyway the quotes in there 1306# would cause problems or look ugly. 1307# WARNING: Be sure not to use single quotes in there, as some shells, 1308# such as our DU 5.0 friend, will then `close' the trap. 1309trap 'exit_status=$? 1310 # Save into config.log some information that might help in debugging. 1311 { 1312 echo 1313 1314 cat <<\_ASBOX 1315## ---------------- ## 1316## Cache variables. ## 1317## ---------------- ## 1318_ASBOX 1319 echo 1320 # The following way of writing the cache mishandles newlines in values, 1321{ 1322 (set) 2>&1 | 1323 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1324 *ac_space=\ *) 1325 sed -n \ 1326 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1328 ;; 1329 *) 1330 sed -n \ 1331 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1332 ;; 1333 esac; 1334} 1335 echo 1336 1337 cat <<\_ASBOX 1338## ----------------- ## 1339## Output variables. ## 1340## ----------------- ## 1341_ASBOX 1342 echo 1343 for ac_var in $ac_subst_vars 1344 do 1345 eval ac_val=$`echo $ac_var` 1346 echo "$ac_var='"'"'$ac_val'"'"'" 1347 done | sort 1348 echo 1349 1350 if test -n "$ac_subst_files"; then 1351 cat <<\_ASBOX 1352## ------------- ## 1353## Output files. ## 1354## ------------- ## 1355_ASBOX 1356 echo 1357 for ac_var in $ac_subst_files 1358 do 1359 eval ac_val=$`echo $ac_var` 1360 echo "$ac_var='"'"'$ac_val'"'"'" 1361 done | sort 1362 echo 1363 fi 1364 1365 if test -s confdefs.h; then 1366 cat <<\_ASBOX 1367## ----------- ## 1368## confdefs.h. ## 1369## ----------- ## 1370_ASBOX 1371 echo 1372 sed "/^$/d" confdefs.h | sort 1373 echo 1374 fi 1375 test "$ac_signal" != 0 && 1376 echo "$as_me: caught signal $ac_signal" 1377 echo "$as_me: exit $exit_status" 1378 } >&5 1379 rm -f core *.core && 1380 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1381 exit $exit_status 1382 ' 0 1383for ac_signal in 1 2 13 15; do 1384 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1385done 1386ac_signal=0 1387 1388# confdefs.h avoids OS command line length limits that DEFS can exceed. 1389rm -rf conftest* confdefs.h 1390# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1391echo >confdefs.h 1392 1393# Predefined preprocessor variables. 1394 1395cat >>confdefs.h <<_ACEOF 1396#define PACKAGE_NAME "$PACKAGE_NAME" 1397_ACEOF 1398 1399 1400cat >>confdefs.h <<_ACEOF 1401#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1402_ACEOF 1403 1404 1405cat >>confdefs.h <<_ACEOF 1406#define PACKAGE_VERSION "$PACKAGE_VERSION" 1407_ACEOF 1408 1409 1410cat >>confdefs.h <<_ACEOF 1411#define PACKAGE_STRING "$PACKAGE_STRING" 1412_ACEOF 1413 1414 1415cat >>confdefs.h <<_ACEOF 1416#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1417_ACEOF 1418 1419 1420# Let the site file select an alternate cache file if it wants to. 1421# Prefer explicitly selected file to automatically selected ones. 1422if test -z "$CONFIG_SITE"; then 1423 if test "x$prefix" != xNONE; then 1424 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1425 else 1426 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1427 fi 1428fi 1429for ac_site_file in $CONFIG_SITE; do 1430 if test -r "$ac_site_file"; then 1431 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1432echo "$as_me: loading site script $ac_site_file" >&6;} 1433 sed 's/^/| /' "$ac_site_file" >&5 1434 . "$ac_site_file" 1435 fi 1436done 1437 1438if test -r "$cache_file"; then 1439 # Some versions of bash will fail to source /dev/null (special 1440 # files actually), so we avoid doing that. 1441 if test -f "$cache_file"; then 1442 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1443echo "$as_me: loading cache $cache_file" >&6;} 1444 case $cache_file in 1445 [\\/]* | ?:[\\/]* ) . $cache_file;; 1446 *) . ./$cache_file;; 1447 esac 1448 fi 1449else 1450 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1451echo "$as_me: creating cache $cache_file" >&6;} 1452 >$cache_file 1453fi 1454 1455# Check that the precious variables saved in the cache have kept the same 1456# value. 1457ac_cache_corrupted=false 1458for ac_var in `(set) 2>&1 | 1459 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1460 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1461 eval ac_new_set=\$ac_env_${ac_var}_set 1462 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1463 eval ac_new_val="\$ac_env_${ac_var}_value" 1464 case $ac_old_set,$ac_new_set in 1465 set,) 1466 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1467echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1468 ac_cache_corrupted=: ;; 1469 ,set) 1470 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1471echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1472 ac_cache_corrupted=: ;; 1473 ,);; 1474 *) 1475 if test "x$ac_old_val" != "x$ac_new_val"; then 1476 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1477echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1478 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1479echo "$as_me: former value: $ac_old_val" >&2;} 1480 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1481echo "$as_me: current value: $ac_new_val" >&2;} 1482 ac_cache_corrupted=: 1483 fi;; 1484 esac 1485 # Pass precious variables to config.status. 1486 if test "$ac_new_set" = set; then 1487 case $ac_new_val in 1488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1489 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1490 *) ac_arg=$ac_var=$ac_new_val ;; 1491 esac 1492 case " $ac_configure_args " in 1493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1494 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1495 esac 1496 fi 1497done 1498if $ac_cache_corrupted; then 1499 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1500echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1501 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1502echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1503 { (exit 1); exit 1; }; } 1504fi 1505 1506ac_ext=c 1507ac_cpp='$CPP $CPPFLAGS' 1508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1510ac_compiler_gnu=$ac_cv_c_compiler_gnu 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530am__api_version="1.7" 1531ac_aux_dir= 1532for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1533 if test -f $ac_dir/install-sh; then 1534 ac_aux_dir=$ac_dir 1535 ac_install_sh="$ac_aux_dir/install-sh -c" 1536 break 1537 elif test -f $ac_dir/install.sh; then 1538 ac_aux_dir=$ac_dir 1539 ac_install_sh="$ac_aux_dir/install.sh -c" 1540 break 1541 elif test -f $ac_dir/shtool; then 1542 ac_aux_dir=$ac_dir 1543 ac_install_sh="$ac_aux_dir/shtool install -c" 1544 break 1545 fi 1546done 1547if test -z "$ac_aux_dir"; then 1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1549echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1550 { (exit 1); exit 1; }; } 1551fi 1552ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1553ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1554ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1555 1556# Find a good install program. We prefer a C program (faster), 1557# so one script is as good as another. But avoid the broken or 1558# incompatible versions: 1559# SysV /etc/install, /usr/sbin/install 1560# SunOS /usr/etc/install 1561# IRIX /sbin/install 1562# AIX /bin/install 1563# AmigaOS /C/install, which installs bootblocks on floppy discs 1564# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1565# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1566# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1567# OS/2's system install, which has a completely different semantic 1568# ./install, which can be erroneously created by make from ./install.sh. 1569echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1570echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1571if test -z "$INSTALL"; then 1572if test "${ac_cv_path_install+set}" = set; then 1573 echo $ECHO_N "(cached) $ECHO_C" >&6 1574else 1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1576for as_dir in $PATH 1577do 1578 IFS=$as_save_IFS 1579 test -z "$as_dir" && as_dir=. 1580 # Account for people who put trailing slashes in PATH elements. 1581case $as_dir/ in 1582 ./ | .// | /cC/* | \ 1583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1584 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1585 /usr/ucb/* ) ;; 1586 *) 1587 # OSF1 and SCO ODT 3.0 have their own names for install. 1588 # Don't use installbsd from OSF since it installs stuff as root 1589 # by default. 1590 for ac_prog in ginstall scoinst install; do 1591 for ac_exec_ext in '' $ac_executable_extensions; do 1592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1593 if test $ac_prog = install && 1594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1595 # AIX install. It has an incompatible calling convention. 1596 : 1597 elif test $ac_prog = install && 1598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1599 # program-specific install script used by HP pwplus--don't use. 1600 : 1601 else 1602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1603 break 3 1604 fi 1605 fi 1606 done 1607 done 1608 ;; 1609esac 1610done 1611 1612 1613fi 1614 if test "${ac_cv_path_install+set}" = set; then 1615 INSTALL=$ac_cv_path_install 1616 else 1617 # As a last resort, use the slow shell script. We don't cache a 1618 # path for INSTALL within a source directory, because that will 1619 # break other packages using the cache if that directory is 1620 # removed, or if the path is relative. 1621 INSTALL=$ac_install_sh 1622 fi 1623fi 1624echo "$as_me:$LINENO: result: $INSTALL" >&5 1625echo "${ECHO_T}$INSTALL" >&6 1626 1627# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1628# It thinks the first close brace ends the variable substitution. 1629test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1630 1631test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1632 1633test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1634 1635echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1636echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1637# Just in case 1638sleep 1 1639echo timestamp > conftest.file 1640# Do `set' in a subshell so we don't clobber the current shell's 1641# arguments. Must try -L first in case configure is actually a 1642# symlink; some systems play weird games with the mod time of symlinks 1643# (eg FreeBSD returns the mod time of the symlink's containing 1644# directory). 1645if ( 1646 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1647 if test "$*" = "X"; then 1648 # -L didn't work. 1649 set X `ls -t $srcdir/configure conftest.file` 1650 fi 1651 rm -f conftest.file 1652 if test "$*" != "X $srcdir/configure conftest.file" \ 1653 && test "$*" != "X conftest.file $srcdir/configure"; then 1654 1655 # If neither matched, then we have a broken ls. This can happen 1656 # if, for instance, CONFIG_SHELL is bash and it inherits a 1657 # broken ls alias from the environment. This has actually 1658 # happened. Such a system could not be considered "sane". 1659 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1660alias in your environment" >&5 1661echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1662alias in your environment" >&2;} 1663 { (exit 1); exit 1; }; } 1664 fi 1665 1666 test "$2" = conftest.file 1667 ) 1668then 1669 # Ok. 1670 : 1671else 1672 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1673Check your system clock" >&5 1674echo "$as_me: error: newly created file is older than distributed files! 1675Check your system clock" >&2;} 1676 { (exit 1); exit 1; }; } 1677fi 1678echo "$as_me:$LINENO: result: yes" >&5 1679echo "${ECHO_T}yes" >&6 1680test "$program_prefix" != NONE && 1681 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1682# Use a double $ so make ignores it. 1683test "$program_suffix" != NONE && 1684 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1685# Double any \ or $. echo might interpret backslashes. 1686# By default was `s,x,x', remove it if useless. 1687cat <<\_ACEOF >conftest.sed 1688s/[\\$]/&&/g;s/;s,x,x,$// 1689_ACEOF 1690program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1691rm conftest.sed 1692 1693 1694# expand $ac_aux_dir to an absolute path 1695am_aux_dir=`cd $ac_aux_dir && pwd` 1696 1697test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1698# Use eval to expand $SHELL 1699if eval "$MISSING --run true"; then 1700 am_missing_run="$MISSING --run " 1701else 1702 am_missing_run= 1703 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1704echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1705fi 1706 1707for ac_prog in gawk mawk nawk awk 1708do 1709 # Extract the first word of "$ac_prog", so it can be a program name with args. 1710set dummy $ac_prog; ac_word=$2 1711echo "$as_me:$LINENO: checking for $ac_word" >&5 1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1713if test "${ac_cv_prog_AWK+set}" = set; then 1714 echo $ECHO_N "(cached) $ECHO_C" >&6 1715else 1716 if test -n "$AWK"; then 1717 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1718else 1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1720for as_dir in $PATH 1721do 1722 IFS=$as_save_IFS 1723 test -z "$as_dir" && as_dir=. 1724 for ac_exec_ext in '' $ac_executable_extensions; do 1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1726 ac_cv_prog_AWK="$ac_prog" 1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1728 break 2 1729 fi 1730done 1731done 1732 1733fi 1734fi 1735AWK=$ac_cv_prog_AWK 1736if test -n "$AWK"; then 1737 echo "$as_me:$LINENO: result: $AWK" >&5 1738echo "${ECHO_T}$AWK" >&6 1739else 1740 echo "$as_me:$LINENO: result: no" >&5 1741echo "${ECHO_T}no" >&6 1742fi 1743 1744 test -n "$AWK" && break 1745done 1746 1747echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1748echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1749set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1750if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1751 echo $ECHO_N "(cached) $ECHO_C" >&6 1752else 1753 cat >conftest.make <<\_ACEOF 1754all: 1755 @echo 'ac_maketemp="$(MAKE)"' 1756_ACEOF 1757# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1758eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1759if test -n "$ac_maketemp"; then 1760 eval ac_cv_prog_make_${ac_make}_set=yes 1761else 1762 eval ac_cv_prog_make_${ac_make}_set=no 1763fi 1764rm -f conftest.make 1765fi 1766if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1767 echo "$as_me:$LINENO: result: yes" >&5 1768echo "${ECHO_T}yes" >&6 1769 SET_MAKE= 1770else 1771 echo "$as_me:$LINENO: result: no" >&5 1772echo "${ECHO_T}no" >&6 1773 SET_MAKE="MAKE=${MAKE-make}" 1774fi 1775 1776rm -rf .tst 2>/dev/null 1777mkdir .tst 2>/dev/null 1778if test -d .tst; then 1779 am__leading_dot=. 1780else 1781 am__leading_dot=_ 1782fi 1783rmdir .tst 2>/dev/null 1784 1785 # test to see if srcdir already configured 1786if test "`cd $srcdir && pwd`" != "`pwd`" && 1787 test -f $srcdir/config.status; then 1788 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1789echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1790 { (exit 1); exit 1; }; } 1791fi 1792 1793# test whether we have cygpath 1794if test -z "$CYGPATH_W"; then 1795 if (cygpath --version) >/dev/null 2>/dev/null; then 1796 CYGPATH_W='cygpath -w' 1797 else 1798 CYGPATH_W=echo 1799 fi 1800fi 1801 1802 1803# Define the identity of the package. 1804 PACKAGE=flac 1805 VERSION=1.2.1 1806 1807 1808cat >>confdefs.h <<_ACEOF 1809#define PACKAGE "$PACKAGE" 1810_ACEOF 1811 1812 1813cat >>confdefs.h <<_ACEOF 1814#define VERSION "$VERSION" 1815_ACEOF 1816 1817# Some tools Automake needs. 1818 1819ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1820 1821 1822AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1823 1824 1825AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1826 1827 1828AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1829 1830 1831MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1832 1833 1834AMTAR=${AMTAR-"${am_missing_run}tar"} 1835 1836install_sh=${install_sh-"$am_aux_dir/install-sh"} 1837 1838# Installed binaries are usually stripped using `strip' when the user 1839# run `make install-strip'. However `strip' might not be the right 1840# tool to use in cross-compilation environments, therefore Automake 1841# will honor the `STRIP' environment variable to overrule this program. 1842if test "$cross_compiling" != no; then 1843 if test -n "$ac_tool_prefix"; then 1844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1845set dummy ${ac_tool_prefix}strip; ac_word=$2 1846echo "$as_me:$LINENO: checking for $ac_word" >&5 1847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1848if test "${ac_cv_prog_STRIP+set}" = set; then 1849 echo $ECHO_N "(cached) $ECHO_C" >&6 1850else 1851 if test -n "$STRIP"; then 1852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1853else 1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1855for as_dir in $PATH 1856do 1857 IFS=$as_save_IFS 1858 test -z "$as_dir" && as_dir=. 1859 for ac_exec_ext in '' $ac_executable_extensions; do 1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1861 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1863 break 2 1864 fi 1865done 1866done 1867 1868fi 1869fi 1870STRIP=$ac_cv_prog_STRIP 1871if test -n "$STRIP"; then 1872 echo "$as_me:$LINENO: result: $STRIP" >&5 1873echo "${ECHO_T}$STRIP" >&6 1874else 1875 echo "$as_me:$LINENO: result: no" >&5 1876echo "${ECHO_T}no" >&6 1877fi 1878 1879fi 1880if test -z "$ac_cv_prog_STRIP"; then 1881 ac_ct_STRIP=$STRIP 1882 # Extract the first word of "strip", so it can be a program name with args. 1883set dummy strip; ac_word=$2 1884echo "$as_me:$LINENO: checking for $ac_word" >&5 1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1886if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1887 echo $ECHO_N "(cached) $ECHO_C" >&6 1888else 1889 if test -n "$ac_ct_STRIP"; then 1890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1891else 1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1893for as_dir in $PATH 1894do 1895 IFS=$as_save_IFS 1896 test -z "$as_dir" && as_dir=. 1897 for ac_exec_ext in '' $ac_executable_extensions; do 1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1899 ac_cv_prog_ac_ct_STRIP="strip" 1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1901 break 2 1902 fi 1903done 1904done 1905 1906 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1907fi 1908fi 1909ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1910if test -n "$ac_ct_STRIP"; then 1911 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1912echo "${ECHO_T}$ac_ct_STRIP" >&6 1913else 1914 echo "$as_me:$LINENO: result: no" >&5 1915echo "${ECHO_T}no" >&6 1916fi 1917 1918 STRIP=$ac_ct_STRIP 1919else 1920 STRIP="$ac_cv_prog_STRIP" 1921fi 1922 1923fi 1924INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1925 1926# We need awk for the "check" target. The system "awk" is bad on 1927# some platforms. 1928 1929 1930 1931 1932# Don't automagically regenerate autoconf/automake generated files unless 1933# explicitly requested. Eases autobuilding -mdz 1934echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1935echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1936 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1937if test "${enable_maintainer_mode+set}" = set; then 1938 enableval="$enable_maintainer_mode" 1939 USE_MAINTAINER_MODE=$enableval 1940else 1941 USE_MAINTAINER_MODE=no 1942fi; 1943 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1944echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1945 1946 1947if test $USE_MAINTAINER_MODE = yes; then 1948 MAINTAINER_MODE_TRUE= 1949 MAINTAINER_MODE_FALSE='#' 1950else 1951 MAINTAINER_MODE_TRUE='#' 1952 MAINTAINER_MODE_FALSE= 1953fi 1954 1955 MAINT=$MAINTAINER_MODE_TRUE 1956 1957 1958 1959# We need two libtools, one that builds both shared and static, and 1960# one that builds only static. This is because the resulting libtool 1961# does not allow us to choose which to build at runtime. 1962# Check whether --enable-shared or --disable-shared was given. 1963if test "${enable_shared+set}" = set; then 1964 enableval="$enable_shared" 1965 p=${PACKAGE-default} 1966 case $enableval in 1967 yes) enable_shared=yes ;; 1968 no) enable_shared=no ;; 1969 *) 1970 enable_shared=no 1971 # Look at the argument we got. We use all the common list separators. 1972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1973 for pkg in $enableval; do 1974 IFS="$lt_save_ifs" 1975 if test "X$pkg" = "X$p"; then 1976 enable_shared=yes 1977 fi 1978 done 1979 IFS="$lt_save_ifs" 1980 ;; 1981 esac 1982else 1983 enable_shared=yes 1984fi; 1985 1986# Check whether --enable-static or --disable-static was given. 1987if test "${enable_static+set}" = set; then 1988 enableval="$enable_static" 1989 p=${PACKAGE-default} 1990 case $enableval in 1991 yes) enable_static=yes ;; 1992 no) enable_static=no ;; 1993 *) 1994 enable_static=no 1995 # Look at the argument we got. We use all the common list separators. 1996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1997 for pkg in $enableval; do 1998 IFS="$lt_save_ifs" 1999 if test "X$pkg" = "X$p"; then 2000 enable_static=yes 2001 fi 2002 done 2003 IFS="$lt_save_ifs" 2004 ;; 2005 esac 2006else 2007 enable_static=yes 2008fi; 2009 2010# Check whether --enable-fast-install or --disable-fast-install was given. 2011if test "${enable_fast_install+set}" = set; then 2012 enableval="$enable_fast_install" 2013 p=${PACKAGE-default} 2014 case $enableval in 2015 yes) enable_fast_install=yes ;; 2016 no) enable_fast_install=no ;; 2017 *) 2018 enable_fast_install=no 2019 # Look at the argument we got. We use all the common list separators. 2020 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2021 for pkg in $enableval; do 2022 IFS="$lt_save_ifs" 2023 if test "X$pkg" = "X$p"; then 2024 enable_fast_install=yes 2025 fi 2026 done 2027 IFS="$lt_save_ifs" 2028 ;; 2029 esac 2030else 2031 enable_fast_install=yes 2032fi; 2033 2034# Make sure we can run config.sub. 2035$ac_config_sub sun4 >/dev/null 2>&1 || 2036 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2037echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2038 { (exit 1); exit 1; }; } 2039 2040echo "$as_me:$LINENO: checking build system type" >&5 2041echo $ECHO_N "checking build system type... $ECHO_C" >&6 2042if test "${ac_cv_build+set}" = set; then 2043 echo $ECHO_N "(cached) $ECHO_C" >&6 2044else 2045 ac_cv_build_alias=$build_alias 2046test -z "$ac_cv_build_alias" && 2047 ac_cv_build_alias=`$ac_config_guess` 2048test -z "$ac_cv_build_alias" && 2049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2050echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2051 { (exit 1); exit 1; }; } 2052ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2053 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2054echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2055 { (exit 1); exit 1; }; } 2056 2057fi 2058echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2059echo "${ECHO_T}$ac_cv_build" >&6 2060build=$ac_cv_build 2061build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2062build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2063build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2064 2065 2066echo "$as_me:$LINENO: checking host system type" >&5 2067echo $ECHO_N "checking host system type... $ECHO_C" >&6 2068if test "${ac_cv_host+set}" = set; then 2069 echo $ECHO_N "(cached) $ECHO_C" >&6 2070else 2071 ac_cv_host_alias=$host_alias 2072test -z "$ac_cv_host_alias" && 2073 ac_cv_host_alias=$ac_cv_build_alias 2074ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2075 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2076echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2077 { (exit 1); exit 1; }; } 2078 2079fi 2080echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2081echo "${ECHO_T}$ac_cv_host" >&6 2082host=$ac_cv_host 2083host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2084host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2085host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2086 2087 2088DEPDIR="${am__leading_dot}deps" 2089 2090 ac_config_commands="$ac_config_commands depfiles" 2091 2092 2093am_make=${MAKE-make} 2094cat > confinc << 'END' 2095am__doit: 2096 @echo done 2097.PHONY: am__doit 2098END 2099# If we don't find an include directive, just comment out the code. 2100echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2101echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2102am__include="#" 2103am__quote= 2104_am_result=none 2105# First try GNU make style include. 2106echo "include confinc" > confmf 2107# We grep out `Entering directory' and `Leaving directory' 2108# messages which can occur if `w' ends up in MAKEFLAGS. 2109# In particular we don't look at `^make:' because GNU make might 2110# be invoked under some other name (usually "gmake"), in which 2111# case it prints its new name instead of `make'. 2112if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2113 am__include=include 2114 am__quote= 2115 _am_result=GNU 2116fi 2117# Now try BSD make style include. 2118if test "$am__include" = "#"; then 2119 echo '.include "confinc"' > confmf 2120 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2121 am__include=.include 2122 am__quote="\"" 2123 _am_result=BSD 2124 fi 2125fi 2126 2127 2128echo "$as_me:$LINENO: result: $_am_result" >&5 2129echo "${ECHO_T}$_am_result" >&6 2130rm -f confinc confmf 2131 2132# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2133if test "${enable_dependency_tracking+set}" = set; then 2134 enableval="$enable_dependency_tracking" 2135 2136fi; 2137if test "x$enable_dependency_tracking" != xno; then 2138 am_depcomp="$ac_aux_dir/depcomp" 2139 AMDEPBACKSLASH='\' 2140fi 2141 2142 2143if test "x$enable_dependency_tracking" != xno; then 2144 AMDEP_TRUE= 2145 AMDEP_FALSE='#' 2146else 2147 AMDEP_TRUE='#' 2148 AMDEP_FALSE= 2149fi 2150 2151 2152 2153ac_ext=c 2154ac_cpp='$CPP $CPPFLAGS' 2155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2157ac_compiler_gnu=$ac_cv_c_compiler_gnu 2158if test -n "$ac_tool_prefix"; then 2159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2160set dummy ${ac_tool_prefix}gcc; ac_word=$2 2161echo "$as_me:$LINENO: checking for $ac_word" >&5 2162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2163if test "${ac_cv_prog_CC+set}" = set; then 2164 echo $ECHO_N "(cached) $ECHO_C" >&6 2165else 2166 if test -n "$CC"; then 2167 ac_cv_prog_CC="$CC" # Let the user override the test. 2168else 2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2170for as_dir in $PATH 2171do 2172 IFS=$as_save_IFS 2173 test -z "$as_dir" && as_dir=. 2174 for ac_exec_ext in '' $ac_executable_extensions; do 2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2176 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2178 break 2 2179 fi 2180done 2181done 2182 2183fi 2184fi 2185CC=$ac_cv_prog_CC 2186if test -n "$CC"; then 2187 echo "$as_me:$LINENO: result: $CC" >&5 2188echo "${ECHO_T}$CC" >&6 2189else 2190 echo "$as_me:$LINENO: result: no" >&5 2191echo "${ECHO_T}no" >&6 2192fi 2193 2194fi 2195if test -z "$ac_cv_prog_CC"; then 2196 ac_ct_CC=$CC 2197 # Extract the first word of "gcc", so it can be a program name with args. 2198set dummy gcc; ac_word=$2 2199echo "$as_me:$LINENO: checking for $ac_word" >&5 2200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2201if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2202 echo $ECHO_N "(cached) $ECHO_C" >&6 2203else 2204 if test -n "$ac_ct_CC"; then 2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2206else 2207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2208for as_dir in $PATH 2209do 2210 IFS=$as_save_IFS 2211 test -z "$as_dir" && as_dir=. 2212 for ac_exec_ext in '' $ac_executable_extensions; do 2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2214 ac_cv_prog_ac_ct_CC="gcc" 2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2216 break 2 2217 fi 2218done 2219done 2220 2221fi 2222fi 2223ac_ct_CC=$ac_cv_prog_ac_ct_CC 2224if test -n "$ac_ct_CC"; then 2225 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2226echo "${ECHO_T}$ac_ct_CC" >&6 2227else 2228 echo "$as_me:$LINENO: result: no" >&5 2229echo "${ECHO_T}no" >&6 2230fi 2231 2232 CC=$ac_ct_CC 2233else 2234 CC="$ac_cv_prog_CC" 2235fi 2236 2237if test -z "$CC"; then 2238 if test -n "$ac_tool_prefix"; then 2239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2240set dummy ${ac_tool_prefix}cc; ac_word=$2 2241echo "$as_me:$LINENO: checking for $ac_word" >&5 2242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2243if test "${ac_cv_prog_CC+set}" = set; then 2244 echo $ECHO_N "(cached) $ECHO_C" >&6 2245else 2246 if test -n "$CC"; then 2247 ac_cv_prog_CC="$CC" # Let the user override the test. 2248else 2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2250for as_dir in $PATH 2251do 2252 IFS=$as_save_IFS 2253 test -z "$as_dir" && as_dir=. 2254 for ac_exec_ext in '' $ac_executable_extensions; do 2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2256 ac_cv_prog_CC="${ac_tool_prefix}cc" 2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2258 break 2 2259 fi 2260done 2261done 2262 2263fi 2264fi 2265CC=$ac_cv_prog_CC 2266if test -n "$CC"; then 2267 echo "$as_me:$LINENO: result: $CC" >&5 2268echo "${ECHO_T}$CC" >&6 2269else 2270 echo "$as_me:$LINENO: result: no" >&5 2271echo "${ECHO_T}no" >&6 2272fi 2273 2274fi 2275if test -z "$ac_cv_prog_CC"; then 2276 ac_ct_CC=$CC 2277 # Extract the first word of "cc", so it can be a program name with args. 2278set dummy cc; ac_word=$2 2279echo "$as_me:$LINENO: checking for $ac_word" >&5 2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2281if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2282 echo $ECHO_N "(cached) $ECHO_C" >&6 2283else 2284 if test -n "$ac_ct_CC"; then 2285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2286else 2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2288for as_dir in $PATH 2289do 2290 IFS=$as_save_IFS 2291 test -z "$as_dir" && as_dir=. 2292 for ac_exec_ext in '' $ac_executable_extensions; do 2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2294 ac_cv_prog_ac_ct_CC="cc" 2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2296 break 2 2297 fi 2298done 2299done 2300 2301fi 2302fi 2303ac_ct_CC=$ac_cv_prog_ac_ct_CC 2304if test -n "$ac_ct_CC"; then 2305 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2306echo "${ECHO_T}$ac_ct_CC" >&6 2307else 2308 echo "$as_me:$LINENO: result: no" >&5 2309echo "${ECHO_T}no" >&6 2310fi 2311 2312 CC=$ac_ct_CC 2313else 2314 CC="$ac_cv_prog_CC" 2315fi 2316 2317fi 2318if test -z "$CC"; then 2319 # Extract the first word of "cc", so it can be a program name with args. 2320set dummy cc; ac_word=$2 2321echo "$as_me:$LINENO: checking for $ac_word" >&5 2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2323if test "${ac_cv_prog_CC+set}" = set; then 2324 echo $ECHO_N "(cached) $ECHO_C" >&6 2325else 2326 if test -n "$CC"; then 2327 ac_cv_prog_CC="$CC" # Let the user override the test. 2328else 2329 ac_prog_rejected=no 2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2331for as_dir in $PATH 2332do 2333 IFS=$as_save_IFS 2334 test -z "$as_dir" && as_dir=. 2335 for ac_exec_ext in '' $ac_executable_extensions; do 2336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2337 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2338 ac_prog_rejected=yes 2339 continue 2340 fi 2341 ac_cv_prog_CC="cc" 2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2343 break 2 2344 fi 2345done 2346done 2347 2348if test $ac_prog_rejected = yes; then 2349 # We found a bogon in the path, so make sure we never use it. 2350 set dummy $ac_cv_prog_CC 2351 shift 2352 if test $# != 0; then 2353 # We chose a different compiler from the bogus one. 2354 # However, it has the same basename, so the bogon will be chosen 2355 # first if we set CC to just the basename; use the full file name. 2356 shift 2357 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2358 fi 2359fi 2360fi 2361fi 2362CC=$ac_cv_prog_CC 2363if test -n "$CC"; then 2364 echo "$as_me:$LINENO: result: $CC" >&5 2365echo "${ECHO_T}$CC" >&6 2366else 2367 echo "$as_me:$LINENO: result: no" >&5 2368echo "${ECHO_T}no" >&6 2369fi 2370 2371fi 2372if test -z "$CC"; then 2373 if test -n "$ac_tool_prefix"; then 2374 for ac_prog in cl 2375 do 2376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2377set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2378echo "$as_me:$LINENO: checking for $ac_word" >&5 2379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2380if test "${ac_cv_prog_CC+set}" = set; then 2381 echo $ECHO_N "(cached) $ECHO_C" >&6 2382else 2383 if test -n "$CC"; then 2384 ac_cv_prog_CC="$CC" # Let the user override the test. 2385else 2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2387for as_dir in $PATH 2388do 2389 IFS=$as_save_IFS 2390 test -z "$as_dir" && as_dir=. 2391 for ac_exec_ext in '' $ac_executable_extensions; do 2392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2395 break 2 2396 fi 2397done 2398done 2399 2400fi 2401fi 2402CC=$ac_cv_prog_CC 2403if test -n "$CC"; then 2404 echo "$as_me:$LINENO: result: $CC" >&5 2405echo "${ECHO_T}$CC" >&6 2406else 2407 echo "$as_me:$LINENO: result: no" >&5 2408echo "${ECHO_T}no" >&6 2409fi 2410 2411 test -n "$CC" && break 2412 done 2413fi 2414if test -z "$CC"; then 2415 ac_ct_CC=$CC 2416 for ac_prog in cl 2417do 2418 # Extract the first word of "$ac_prog", so it can be a program name with args. 2419set dummy $ac_prog; ac_word=$2 2420echo "$as_me:$LINENO: checking for $ac_word" >&5 2421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2422if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2423 echo $ECHO_N "(cached) $ECHO_C" >&6 2424else 2425 if test -n "$ac_ct_CC"; then 2426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2427else 2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2429for as_dir in $PATH 2430do 2431 IFS=$as_save_IFS 2432 test -z "$as_dir" && as_dir=. 2433 for ac_exec_ext in '' $ac_executable_extensions; do 2434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2435 ac_cv_prog_ac_ct_CC="$ac_prog" 2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2437 break 2 2438 fi 2439done 2440done 2441 2442fi 2443fi 2444ac_ct_CC=$ac_cv_prog_ac_ct_CC 2445if test -n "$ac_ct_CC"; then 2446 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2447echo "${ECHO_T}$ac_ct_CC" >&6 2448else 2449 echo "$as_me:$LINENO: result: no" >&5 2450echo "${ECHO_T}no" >&6 2451fi 2452 2453 test -n "$ac_ct_CC" && break 2454done 2455 2456 CC=$ac_ct_CC 2457fi 2458 2459fi 2460 2461 2462test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2463See \`config.log' for more details." >&5 2464echo "$as_me: error: no acceptable C compiler found in \$PATH 2465See \`config.log' for more details." >&2;} 2466 { (exit 1); exit 1; }; } 2467 2468# Provide some information about the compiler. 2469echo "$as_me:$LINENO:" \ 2470 "checking for C compiler version" >&5 2471ac_compiler=`set X $ac_compile; echo $2` 2472{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2473 (eval $ac_compiler --version </dev/null >&5) 2>&5 2474 ac_status=$? 2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2476 (exit $ac_status); } 2477{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2478 (eval $ac_compiler -v </dev/null >&5) 2>&5 2479 ac_status=$? 2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2481 (exit $ac_status); } 2482{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2483 (eval $ac_compiler -V </dev/null >&5) 2>&5 2484 ac_status=$? 2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2486 (exit $ac_status); } 2487 2488cat >conftest.$ac_ext <<_ACEOF 2489/* confdefs.h. */ 2490_ACEOF 2491cat confdefs.h >>conftest.$ac_ext 2492cat >>conftest.$ac_ext <<_ACEOF 2493/* end confdefs.h. */ 2494 2495int 2496main () 2497{ 2498 2499 ; 2500 return 0; 2501} 2502_ACEOF 2503ac_clean_files_save=$ac_clean_files 2504ac_clean_files="$ac_clean_files a.out a.exe b.out" 2505# Try to create an executable without -o first, disregard a.out. 2506# It will help us diagnose broken compilers, and finding out an intuition 2507# of exeext. 2508echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2509echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2510ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2511if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2512 (eval $ac_link_default) 2>&5 2513 ac_status=$? 2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 (exit $ac_status); }; then 2516 # Find the output, starting from the most likely. This scheme is 2517# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2518# resort. 2519 2520# Be careful to initialize this variable, since it used to be cached. 2521# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2522ac_cv_exeext= 2523# b.out is created by i960 compilers. 2524for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2525do 2526 test -f "$ac_file" || continue 2527 case $ac_file in 2528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2529 ;; 2530 conftest.$ac_ext ) 2531 # This is the source file. 2532 ;; 2533 [ab].out ) 2534 # We found the default executable, but exeext='' is most 2535 # certainly right. 2536 break;; 2537 *.* ) 2538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2539 # FIXME: I believe we export ac_cv_exeext for Libtool, 2540 # but it would be cool to find out if it's true. Does anybody 2541 # maintain Libtool? --akim. 2542 export ac_cv_exeext 2543 break;; 2544 * ) 2545 break;; 2546 esac 2547done 2548else 2549 echo "$as_me: failed program was:" >&5 2550sed 's/^/| /' conftest.$ac_ext >&5 2551 2552{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2553See \`config.log' for more details." >&5 2554echo "$as_me: error: C compiler cannot create executables 2555See \`config.log' for more details." >&2;} 2556 { (exit 77); exit 77; }; } 2557fi 2558 2559ac_exeext=$ac_cv_exeext 2560echo "$as_me:$LINENO: result: $ac_file" >&5 2561echo "${ECHO_T}$ac_file" >&6 2562 2563# Check the compiler produces executables we can run. If not, either 2564# the compiler is broken, or we cross compile. 2565echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2566echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2567# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2568# If not cross compiling, check that we can run a simple program. 2569if test "$cross_compiling" != yes; then 2570 if { ac_try='./$ac_file' 2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2572 (eval $ac_try) 2>&5 2573 ac_status=$? 2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); }; }; then 2576 cross_compiling=no 2577 else 2578 if test "$cross_compiling" = maybe; then 2579 cross_compiling=yes 2580 else 2581 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2582If you meant to cross compile, use \`--host'. 2583See \`config.log' for more details." >&5 2584echo "$as_me: error: cannot run C compiled programs. 2585If you meant to cross compile, use \`--host'. 2586See \`config.log' for more details." >&2;} 2587 { (exit 1); exit 1; }; } 2588 fi 2589 fi 2590fi 2591echo "$as_me:$LINENO: result: yes" >&5 2592echo "${ECHO_T}yes" >&6 2593 2594rm -f a.out a.exe conftest$ac_cv_exeext b.out 2595ac_clean_files=$ac_clean_files_save 2596# Check the compiler produces executables we can run. If not, either 2597# the compiler is broken, or we cross compile. 2598echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2599echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2600echo "$as_me:$LINENO: result: $cross_compiling" >&5 2601echo "${ECHO_T}$cross_compiling" >&6 2602 2603echo "$as_me:$LINENO: checking for suffix of executables" >&5 2604echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2606 (eval $ac_link) 2>&5 2607 ac_status=$? 2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2609 (exit $ac_status); }; then 2610 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2611# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2612# work properly (i.e., refer to `conftest.exe'), while it won't with 2613# `rm'. 2614for ac_file in conftest.exe conftest conftest.*; do 2615 test -f "$ac_file" || continue 2616 case $ac_file in 2617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2618 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2619 export ac_cv_exeext 2620 break;; 2621 * ) break;; 2622 esac 2623done 2624else 2625 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2626See \`config.log' for more details." >&5 2627echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2628See \`config.log' for more details." >&2;} 2629 { (exit 1); exit 1; }; } 2630fi 2631 2632rm -f conftest$ac_cv_exeext 2633echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2634echo "${ECHO_T}$ac_cv_exeext" >&6 2635 2636rm -f conftest.$ac_ext 2637EXEEXT=$ac_cv_exeext 2638ac_exeext=$EXEEXT 2639echo "$as_me:$LINENO: checking for suffix of object files" >&5 2640echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2641if test "${ac_cv_objext+set}" = set; then 2642 echo $ECHO_N "(cached) $ECHO_C" >&6 2643else 2644 cat >conftest.$ac_ext <<_ACEOF 2645/* confdefs.h. */ 2646_ACEOF 2647cat confdefs.h >>conftest.$ac_ext 2648cat >>conftest.$ac_ext <<_ACEOF 2649/* end confdefs.h. */ 2650 2651int 2652main () 2653{ 2654 2655 ; 2656 return 0; 2657} 2658_ACEOF 2659rm -f conftest.o conftest.obj 2660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2661 (eval $ac_compile) 2>&5 2662 ac_status=$? 2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2664 (exit $ac_status); }; then 2665 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2666 case $ac_file in 2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2669 break;; 2670 esac 2671done 2672else 2673 echo "$as_me: failed program was:" >&5 2674sed 's/^/| /' conftest.$ac_ext >&5 2675 2676{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2677See \`config.log' for more details." >&5 2678echo "$as_me: error: cannot compute suffix of object files: cannot compile 2679See \`config.log' for more details." >&2;} 2680 { (exit 1); exit 1; }; } 2681fi 2682 2683rm -f conftest.$ac_cv_objext conftest.$ac_ext 2684fi 2685echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2686echo "${ECHO_T}$ac_cv_objext" >&6 2687OBJEXT=$ac_cv_objext 2688ac_objext=$OBJEXT 2689echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2690echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2691if test "${ac_cv_c_compiler_gnu+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#ifndef __GNUC__ 2705 choke me 2706#endif 2707 2708 ; 2709 return 0; 2710} 2711_ACEOF 2712rm -f conftest.$ac_objext 2713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2714 (eval $ac_compile) 2>conftest.er1 2715 ac_status=$? 2716 grep -v '^ *+' conftest.er1 >conftest.err 2717 rm -f conftest.er1 2718 cat conftest.err >&5 2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2720 (exit $ac_status); } && 2721 { ac_try='test -z "$ac_c_werror_flag" 2722 || test ! -s conftest.err' 2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2724 (eval $ac_try) 2>&5 2725 ac_status=$? 2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2727 (exit $ac_status); }; } && 2728 { ac_try='test -s conftest.$ac_objext' 2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2730 (eval $ac_try) 2>&5 2731 ac_status=$? 2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2733 (exit $ac_status); }; }; then 2734 ac_compiler_gnu=yes 2735else 2736 echo "$as_me: failed program was:" >&5 2737sed 's/^/| /' conftest.$ac_ext >&5 2738 2739ac_compiler_gnu=no 2740fi 2741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2742ac_cv_c_compiler_gnu=$ac_compiler_gnu 2743 2744fi 2745echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2746echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2747GCC=`test $ac_compiler_gnu = yes && echo yes` 2748ac_test_CFLAGS=${CFLAGS+set} 2749ac_save_CFLAGS=$CFLAGS 2750CFLAGS="-g" 2751echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2752echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2753if test "${ac_cv_prog_cc_g+set}" = set; then 2754 echo $ECHO_N "(cached) $ECHO_C" >&6 2755else 2756 cat >conftest.$ac_ext <<_ACEOF 2757/* confdefs.h. */ 2758_ACEOF 2759cat confdefs.h >>conftest.$ac_ext 2760cat >>conftest.$ac_ext <<_ACEOF 2761/* end confdefs.h. */ 2762 2763int 2764main () 2765{ 2766 2767 ; 2768 return 0; 2769} 2770_ACEOF 2771rm -f conftest.$ac_objext 2772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2773 (eval $ac_compile) 2>conftest.er1 2774 ac_status=$? 2775 grep -v '^ *+' conftest.er1 >conftest.err 2776 rm -f conftest.er1 2777 cat conftest.err >&5 2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2779 (exit $ac_status); } && 2780 { ac_try='test -z "$ac_c_werror_flag" 2781 || test ! -s conftest.err' 2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2783 (eval $ac_try) 2>&5 2784 ac_status=$? 2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2786 (exit $ac_status); }; } && 2787 { ac_try='test -s conftest.$ac_objext' 2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2789 (eval $ac_try) 2>&5 2790 ac_status=$? 2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2792 (exit $ac_status); }; }; then 2793 ac_cv_prog_cc_g=yes 2794else 2795 echo "$as_me: failed program was:" >&5 2796sed 's/^/| /' conftest.$ac_ext >&5 2797 2798ac_cv_prog_cc_g=no 2799fi 2800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2801fi 2802echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2803echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2804if test "$ac_test_CFLAGS" = set; then 2805 CFLAGS=$ac_save_CFLAGS 2806elif test $ac_cv_prog_cc_g = yes; then 2807 if test "$GCC" = yes; then 2808 CFLAGS="-g -O2" 2809 else 2810 CFLAGS="-g" 2811 fi 2812else 2813 if test "$GCC" = yes; then 2814 CFLAGS="-O2" 2815 else 2816 CFLAGS= 2817 fi 2818fi 2819echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2820echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2821if test "${ac_cv_prog_cc_stdc+set}" = set; then 2822 echo $ECHO_N "(cached) $ECHO_C" >&6 2823else 2824 ac_cv_prog_cc_stdc=no 2825ac_save_CC=$CC 2826cat >conftest.$ac_ext <<_ACEOF 2827/* confdefs.h. */ 2828_ACEOF 2829cat confdefs.h >>conftest.$ac_ext 2830cat >>conftest.$ac_ext <<_ACEOF 2831/* end confdefs.h. */ 2832#include <stdarg.h> 2833#include <stdio.h> 2834#include <sys/types.h> 2835#include <sys/stat.h> 2836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2837struct buf { int x; }; 2838FILE * (*rcsopen) (struct buf *, struct stat *, int); 2839static char *e (p, i) 2840 char **p; 2841 int i; 2842{ 2843 return p[i]; 2844} 2845static char *f (char * (*g) (char **, int), char **p, ...) 2846{ 2847 char *s; 2848 va_list v; 2849 va_start (v,p); 2850 s = g (p, va_arg (v,int)); 2851 va_end (v); 2852 return s; 2853} 2854 2855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2856 function prototypes and stuff, but not '\xHH' hex character constants. 2857 These don't provoke an error unfortunately, instead are silently treated 2858 as 'x'. The following induces an error, until -std1 is added to get 2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2860 array size at least. It's necessary to write '\x00'==0 to get something 2861 that's true only with -std1. */ 2862int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2863 2864int test (int i, double x); 2865struct s1 {int (*f) (int a);}; 2866struct s2 {int (*f) (double a);}; 2867int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2868int argc; 2869char **argv; 2870int 2871main () 2872{ 2873return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2874 ; 2875 return 0; 2876} 2877_ACEOF 2878# Don't try gcc -ansi; that turns off useful extensions and 2879# breaks some systems' header files. 2880# AIX -qlanglvl=ansi 2881# Ultrix and OSF/1 -std1 2882# HP-UX 10.20 and later -Ae 2883# HP-UX older versions -Aa -D_HPUX_SOURCE 2884# SVR4 -Xc -D__EXTENSIONS__ 2885for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2886do 2887 CC="$ac_save_CC $ac_arg" 2888 rm -f conftest.$ac_objext 2889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2890 (eval $ac_compile) 2>conftest.er1 2891 ac_status=$? 2892 grep -v '^ *+' conftest.er1 >conftest.err 2893 rm -f conftest.er1 2894 cat conftest.err >&5 2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2896 (exit $ac_status); } && 2897 { ac_try='test -z "$ac_c_werror_flag" 2898 || test ! -s conftest.err' 2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2900 (eval $ac_try) 2>&5 2901 ac_status=$? 2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2903 (exit $ac_status); }; } && 2904 { ac_try='test -s conftest.$ac_objext' 2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2906 (eval $ac_try) 2>&5 2907 ac_status=$? 2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2909 (exit $ac_status); }; }; then 2910 ac_cv_prog_cc_stdc=$ac_arg 2911break 2912else 2913 echo "$as_me: failed program was:" >&5 2914sed 's/^/| /' conftest.$ac_ext >&5 2915 2916fi 2917rm -f conftest.err conftest.$ac_objext 2918done 2919rm -f conftest.$ac_ext conftest.$ac_objext 2920CC=$ac_save_CC 2921 2922fi 2923 2924case "x$ac_cv_prog_cc_stdc" in 2925 x|xno) 2926 echo "$as_me:$LINENO: result: none needed" >&5 2927echo "${ECHO_T}none needed" >&6 ;; 2928 *) 2929 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2930echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2931 CC="$CC $ac_cv_prog_cc_stdc" ;; 2932esac 2933 2934# Some people use a C++ compiler to compile C. Since we use `exit', 2935# in C++ we need to declare it. In case someone uses the same compiler 2936# for both compiling C and C++ we need to have the C++ compiler decide 2937# the declaration of exit, since it's the most demanding environment. 2938cat >conftest.$ac_ext <<_ACEOF 2939#ifndef __cplusplus 2940 choke me 2941#endif 2942_ACEOF 2943rm -f conftest.$ac_objext 2944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2945 (eval $ac_compile) 2>conftest.er1 2946 ac_status=$? 2947 grep -v '^ *+' conftest.er1 >conftest.err 2948 rm -f conftest.er1 2949 cat conftest.err >&5 2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951 (exit $ac_status); } && 2952 { ac_try='test -z "$ac_c_werror_flag" 2953 || test ! -s conftest.err' 2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2955 (eval $ac_try) 2>&5 2956 ac_status=$? 2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2958 (exit $ac_status); }; } && 2959 { ac_try='test -s conftest.$ac_objext' 2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2961 (eval $ac_try) 2>&5 2962 ac_status=$? 2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2964 (exit $ac_status); }; }; then 2965 for ac_declaration in \ 2966 '' \ 2967 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2968 'extern "C" void std::exit (int); using std::exit;' \ 2969 'extern "C" void exit (int) throw ();' \ 2970 'extern "C" void exit (int);' \ 2971 'void exit (int);' 2972do 2973 cat >conftest.$ac_ext <<_ACEOF 2974/* confdefs.h. */ 2975_ACEOF 2976cat confdefs.h >>conftest.$ac_ext 2977cat >>conftest.$ac_ext <<_ACEOF 2978/* end confdefs.h. */ 2979$ac_declaration 2980#include <stdlib.h> 2981int 2982main () 2983{ 2984exit (42); 2985 ; 2986 return 0; 2987} 2988_ACEOF 2989rm -f conftest.$ac_objext 2990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2991 (eval $ac_compile) 2>conftest.er1 2992 ac_status=$? 2993 grep -v '^ *+' conftest.er1 >conftest.err 2994 rm -f conftest.er1 2995 cat conftest.err >&5 2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2997 (exit $ac_status); } && 2998 { ac_try='test -z "$ac_c_werror_flag" 2999 || test ! -s conftest.err' 3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3001 (eval $ac_try) 2>&5 3002 ac_status=$? 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); }; } && 3005 { ac_try='test -s conftest.$ac_objext' 3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3007 (eval $ac_try) 2>&5 3008 ac_status=$? 3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3010 (exit $ac_status); }; }; then 3011 : 3012else 3013 echo "$as_me: failed program was:" >&5 3014sed 's/^/| /' conftest.$ac_ext >&5 3015 3016continue 3017fi 3018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3019 cat >conftest.$ac_ext <<_ACEOF 3020/* confdefs.h. */ 3021_ACEOF 3022cat confdefs.h >>conftest.$ac_ext 3023cat >>conftest.$ac_ext <<_ACEOF 3024/* end confdefs.h. */ 3025$ac_declaration 3026int 3027main () 3028{ 3029exit (42); 3030 ; 3031 return 0; 3032} 3033_ACEOF 3034rm -f conftest.$ac_objext 3035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3036 (eval $ac_compile) 2>conftest.er1 3037 ac_status=$? 3038 grep -v '^ *+' conftest.er1 >conftest.err 3039 rm -f conftest.er1 3040 cat conftest.err >&5 3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3042 (exit $ac_status); } && 3043 { ac_try='test -z "$ac_c_werror_flag" 3044 || test ! -s conftest.err' 3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3046 (eval $ac_try) 2>&5 3047 ac_status=$? 3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3049 (exit $ac_status); }; } && 3050 { ac_try='test -s conftest.$ac_objext' 3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3052 (eval $ac_try) 2>&5 3053 ac_status=$? 3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3055 (exit $ac_status); }; }; then 3056 break 3057else 3058 echo "$as_me: failed program was:" >&5 3059sed 's/^/| /' conftest.$ac_ext >&5 3060 3061fi 3062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3063done 3064rm -f conftest* 3065if test -n "$ac_declaration"; then 3066 echo '#ifdef __cplusplus' >>confdefs.h 3067 echo $ac_declaration >>confdefs.h 3068 echo '#endif' >>confdefs.h 3069fi 3070 3071else 3072 echo "$as_me: failed program was:" >&5 3073sed 's/^/| /' conftest.$ac_ext >&5 3074 3075fi 3076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3077ac_ext=c 3078ac_cpp='$CPP $CPPFLAGS' 3079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3081ac_compiler_gnu=$ac_cv_c_compiler_gnu 3082 3083depcc="$CC" am_compiler_list= 3084 3085echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3086echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3087if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3088 echo $ECHO_N "(cached) $ECHO_C" >&6 3089else 3090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3091 # We make a subdir and do the tests there. Otherwise we can end up 3092 # making bogus files that we don't know about and never remove. For 3093 # instance it was reported that on HP-UX the gcc test will end up 3094 # making a dummy file named `D' -- because `-MD' means `put the output 3095 # in D'. 3096 mkdir conftest.dir 3097 # Copy depcomp to subdir because otherwise we won't find it if we're 3098 # using a relative directory. 3099 cp "$am_depcomp" conftest.dir 3100 cd conftest.dir 3101 # We will build objects and dependencies in a subdirectory because 3102 # it helps to detect inapplicable dependency modes. For instance 3103 # both Tru64's cc and ICC support -MD to output dependencies as a 3104 # side effect of compilation, but ICC will put the dependencies in 3105 # the current directory while Tru64 will put them in the object 3106 # directory. 3107 mkdir sub 3108 3109 am_cv_CC_dependencies_compiler_type=none 3110 if test "$am_compiler_list" = ""; then 3111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3112 fi 3113 for depmode in $am_compiler_list; do 3114 # Setup a source with many dependencies, because some compilers 3115 # like to wrap large dependency lists on column 80 (with \), and 3116 # we should not choose a depcomp mode which is confused by this. 3117 # 3118 # We need to recreate these files for each test, as the compiler may 3119 # overwrite some of them when testing with obscure command lines. 3120 # This happens at least with the AIX C compiler. 3121 : > sub/conftest.c 3122 for i in 1 2 3 4 5 6; do 3123 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3124 : > sub/conftst$i.h 3125 done 3126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3127 3128 case $depmode in 3129 nosideeffect) 3130 # after this tag, mechanisms are not by side-effect, so they'll 3131 # only be used when explicitly requested 3132 if test "x$enable_dependency_tracking" = xyes; then 3133 continue 3134 else 3135 break 3136 fi 3137 ;; 3138 none) break ;; 3139 esac 3140 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3141 # mode. It turns out that the SunPro C++ compiler does not properly 3142 # handle `-M -o', and we need to detect this. 3143 if depmode=$depmode \ 3144 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3146 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3147 >/dev/null 2>conftest.err && 3148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3149 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3151 # icc doesn't choke on unknown options, it will just issue warnings 3152 # (even with -Werror). So we grep stderr for any message 3153 # that says an option was ignored. 3154 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3155 am_cv_CC_dependencies_compiler_type=$depmode 3156 break 3157 fi 3158 fi 3159 done 3160 3161 cd .. 3162 rm -rf conftest.dir 3163else 3164 am_cv_CC_dependencies_compiler_type=none 3165fi 3166 3167fi 3168echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3169echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3170CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3171 3172 3173 3174if 3175 test "x$enable_dependency_tracking" != xno \ 3176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3177 am__fastdepCC_TRUE= 3178 am__fastdepCC_FALSE='#' 3179else 3180 am__fastdepCC_TRUE='#' 3181 am__fastdepCC_FALSE= 3182fi 3183 3184 3185echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3186echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3187if test "${lt_cv_path_SED+set}" = set; then 3188 echo $ECHO_N "(cached) $ECHO_C" >&6 3189else 3190 # Loop through the user's path and test for sed and gsed. 3191# Then use that list of sed's as ones to test for truncation. 3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3193for as_dir in $PATH 3194do 3195 IFS=$as_save_IFS 3196 test -z "$as_dir" && as_dir=. 3197 for lt_ac_prog in sed gsed; do 3198 for ac_exec_ext in '' $ac_executable_extensions; do 3199 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3200 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3201 fi 3202 done 3203 done 3204done 3205lt_ac_max=0 3206lt_ac_count=0 3207# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3208# along with /bin/sed that truncates output. 3209for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3210 test ! -f $lt_ac_sed && continue 3211 cat /dev/null > conftest.in 3212 lt_ac_count=0 3213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3214 # Check for GNU sed and select it if it is found. 3215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3216 lt_cv_path_SED=$lt_ac_sed 3217 break 3218 fi 3219 while true; do 3220 cat conftest.in conftest.in >conftest.tmp 3221 mv conftest.tmp conftest.in 3222 cp conftest.in conftest.nl 3223 echo >>conftest.nl 3224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3225 cmp -s conftest.out conftest.nl || break 3226 # 10000 chars as input seems more than enough 3227 test $lt_ac_count -gt 10 && break 3228 lt_ac_count=`expr $lt_ac_count + 1` 3229 if test $lt_ac_count -gt $lt_ac_max; then 3230 lt_ac_max=$lt_ac_count 3231 lt_cv_path_SED=$lt_ac_sed 3232 fi 3233 done 3234done 3235 3236fi 3237 3238SED=$lt_cv_path_SED 3239echo "$as_me:$LINENO: result: $SED" >&5 3240echo "${ECHO_T}$SED" >&6 3241 3242echo "$as_me:$LINENO: checking for egrep" >&5 3243echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3244if test "${ac_cv_prog_egrep+set}" = set; then 3245 echo $ECHO_N "(cached) $ECHO_C" >&6 3246else 3247 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3248 then ac_cv_prog_egrep='grep -E' 3249 else ac_cv_prog_egrep='egrep' 3250 fi 3251fi 3252echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3253echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3254 EGREP=$ac_cv_prog_egrep 3255 3256 3257 3258# Check whether --with-gnu-ld or --without-gnu-ld was given. 3259if test "${with_gnu_ld+set}" = set; then 3260 withval="$with_gnu_ld" 3261 test "$withval" = no || with_gnu_ld=yes 3262else 3263 with_gnu_ld=no 3264fi; 3265ac_prog=ld 3266if test "$GCC" = yes; then 3267 # Check if gcc -print-prog-name=ld gives a path. 3268 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3269echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3270 case $host in 3271 *-*-mingw*) 3272 # gcc leaves a trailing carriage return which upsets mingw 3273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3274 *) 3275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3276 esac 3277 case $ac_prog in 3278 # Accept absolute paths. 3279 [\\/]* | ?:[\\/]*) 3280 re_direlt='/[^/][^/]*/\.\./' 3281 # Canonicalize the pathname of ld 3282 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3284 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3285 done 3286 test -z "$LD" && LD="$ac_prog" 3287 ;; 3288 "") 3289 # If it fails, then pretend we aren't using GCC. 3290 ac_prog=ld 3291 ;; 3292 *) 3293 # If it is relative, then search for the first ld in PATH. 3294 with_gnu_ld=unknown 3295 ;; 3296 esac 3297elif test "$with_gnu_ld" = yes; then 3298 echo "$as_me:$LINENO: checking for GNU ld" >&5 3299echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3300else 3301 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3302echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3303fi 3304if test "${lt_cv_path_LD+set}" = set; then 3305 echo $ECHO_N "(cached) $ECHO_C" >&6 3306else 3307 if test -z "$LD"; then 3308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3309 for ac_dir in $PATH; do 3310 IFS="$lt_save_ifs" 3311 test -z "$ac_dir" && ac_dir=. 3312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3313 lt_cv_path_LD="$ac_dir/$ac_prog" 3314 # Check to see if the program is GNU ld. I'd rather use --version, 3315 # but apparently some GNU ld's only accept -v. 3316 # Break only if it was the GNU/non-GNU ld that we prefer. 3317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3318 *GNU* | *'with BFD'*) 3319 test "$with_gnu_ld" != no && break 3320 ;; 3321 *) 3322 test "$with_gnu_ld" != yes && break 3323 ;; 3324 esac 3325 fi 3326 done 3327 IFS="$lt_save_ifs" 3328else 3329 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3330fi 3331fi 3332 3333LD="$lt_cv_path_LD" 3334if test -n "$LD"; then 3335 echo "$as_me:$LINENO: result: $LD" >&5 3336echo "${ECHO_T}$LD" >&6 3337else 3338 echo "$as_me:$LINENO: result: no" >&5 3339echo "${ECHO_T}no" >&6 3340fi 3341test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3342echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3343 { (exit 1); exit 1; }; } 3344echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3345echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3346if test "${lt_cv_prog_gnu_ld+set}" = set; then 3347 echo $ECHO_N "(cached) $ECHO_C" >&6 3348else 3349 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3350case `$LD -v 2>&1 </dev/null` in 3351*GNU* | *'with BFD'*) 3352 lt_cv_prog_gnu_ld=yes 3353 ;; 3354*) 3355 lt_cv_prog_gnu_ld=no 3356 ;; 3357esac 3358fi 3359echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3360echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3361with_gnu_ld=$lt_cv_prog_gnu_ld 3362 3363 3364echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3365echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3366if test "${lt_cv_ld_reload_flag+set}" = set; then 3367 echo $ECHO_N "(cached) $ECHO_C" >&6 3368else 3369 lt_cv_ld_reload_flag='-r' 3370fi 3371echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3372echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3373reload_flag=$lt_cv_ld_reload_flag 3374case $reload_flag in 3375"" | " "*) ;; 3376*) reload_flag=" $reload_flag" ;; 3377esac 3378reload_cmds='$LD$reload_flag -o $output$reload_objs' 3379case $host_os in 3380 darwin*) 3381 if test "$GCC" = yes; then 3382 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3383 else 3384 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3385 fi 3386 ;; 3387esac 3388 3389echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3390echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3391if test "${lt_cv_path_NM+set}" = set; then 3392 echo $ECHO_N "(cached) $ECHO_C" >&6 3393else 3394 if test -n "$NM"; then 3395 # Let the user override the test. 3396 lt_cv_path_NM="$NM" 3397else 3398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3399 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3400 IFS="$lt_save_ifs" 3401 test -z "$ac_dir" && ac_dir=. 3402 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3403 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3404 # Check to see if the nm accepts a BSD-compat flag. 3405 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3406 # nm: unknown option "B" ignored 3407 # Tru64's nm complains that /dev/null is an invalid object file 3408 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3409 */dev/null* | *'Invalid file or object type'*) 3410 lt_cv_path_NM="$tmp_nm -B" 3411 break 3412 ;; 3413 *) 3414 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3415 */dev/null*) 3416 lt_cv_path_NM="$tmp_nm -p" 3417 break 3418 ;; 3419 *) 3420 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3421 continue # so that we can try to find one that supports BSD flags 3422 ;; 3423 esac 3424 esac 3425 fi 3426 done 3427 IFS="$lt_save_ifs" 3428 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3429fi 3430fi 3431echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3432echo "${ECHO_T}$lt_cv_path_NM" >&6 3433NM="$lt_cv_path_NM" 3434 3435echo "$as_me:$LINENO: checking whether ln -s works" >&5 3436echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3437LN_S=$as_ln_s 3438if test "$LN_S" = "ln -s"; then 3439 echo "$as_me:$LINENO: result: yes" >&5 3440echo "${ECHO_T}yes" >&6 3441else 3442 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3443echo "${ECHO_T}no, using $LN_S" >&6 3444fi 3445 3446echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3447echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3448if test "${lt_cv_deplibs_check_method+set}" = set; then 3449 echo $ECHO_N "(cached) $ECHO_C" >&6 3450else 3451 lt_cv_file_magic_cmd='$MAGIC_CMD' 3452lt_cv_file_magic_test_file= 3453lt_cv_deplibs_check_method='unknown' 3454# Need to set the preceding variable on all platforms that support 3455# interlibrary dependencies. 3456# 'none' -- dependencies not supported. 3457# `unknown' -- same as none, but documents that we really don't know. 3458# 'pass_all' -- all dependencies passed with no checks. 3459# 'test_compile' -- check by making test program. 3460# 'file_magic [[regex]]' -- check by looking for files in library path 3461# which responds to the $file_magic_cmd with a given extended regex. 3462# If you have `file' or equivalent on your system and you're not sure 3463# whether `pass_all' will *always* work, you probably want this one. 3464 3465case $host_os in 3466aix4* | aix5*) 3467 lt_cv_deplibs_check_method=pass_all 3468 ;; 3469 3470beos*) 3471 lt_cv_deplibs_check_method=pass_all 3472 ;; 3473 3474bsdi[45]*) 3475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3476 lt_cv_file_magic_cmd='/usr/bin/file -L' 3477 lt_cv_file_magic_test_file=/shlib/libc.so 3478 ;; 3479 3480cygwin*) 3481 # func_win32_libid is a shell function defined in ltmain.sh 3482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3483 lt_cv_file_magic_cmd='func_win32_libid' 3484 ;; 3485 3486mingw* | pw32*) 3487 # Base MSYS/MinGW do not provide the 'file' command needed by 3488 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3489 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3490 lt_cv_file_magic_cmd='$OBJDUMP -f' 3491 ;; 3492 3493darwin* | rhapsody*) 3494 lt_cv_deplibs_check_method=pass_all 3495 ;; 3496 3497freebsd* | kfreebsd*-gnu | dragonfly*) 3498 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3499 case $host_cpu in 3500 i*86 ) 3501 # Not sure whether the presence of OpenBSD here was a mistake. 3502 # Let's accept both of them until this is cleared up. 3503 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3504 lt_cv_file_magic_cmd=/usr/bin/file 3505 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3506 ;; 3507 esac 3508 else 3509 lt_cv_deplibs_check_method=pass_all 3510 fi 3511 ;; 3512 3513gnu*) 3514 lt_cv_deplibs_check_method=pass_all 3515 ;; 3516 3517hpux10.20* | hpux11*) 3518 lt_cv_file_magic_cmd=/usr/bin/file 3519 case "$host_cpu" in 3520 ia64*) 3521 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3522 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3523 ;; 3524 hppa*64*) 3525 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]' 3526 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3527 ;; 3528 *) 3529 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3530 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3531 ;; 3532 esac 3533 ;; 3534 3535irix5* | irix6* | nonstopux*) 3536 case $LD in 3537 *-32|*"-32 ") libmagic=32-bit;; 3538 *-n32|*"-n32 ") libmagic=N32;; 3539 *-64|*"-64 ") libmagic=64-bit;; 3540 *) libmagic=never-match;; 3541 esac 3542 lt_cv_deplibs_check_method=pass_all 3543 ;; 3544 3545# This must be Linux ELF. 3546linux*) 3547 lt_cv_deplibs_check_method=pass_all 3548 ;; 3549 3550netbsd*) 3551 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3553 else 3554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3555 fi 3556 ;; 3557 3558newos6*) 3559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3560 lt_cv_file_magic_cmd=/usr/bin/file 3561 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3562 ;; 3563 3564nto-qnx*) 3565 lt_cv_deplibs_check_method=unknown 3566 ;; 3567 3568openbsd*) 3569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3571 else 3572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3573 fi 3574 ;; 3575 3576osf3* | osf4* | osf5*) 3577 lt_cv_deplibs_check_method=pass_all 3578 ;; 3579 3580sco3.2v5*) 3581 lt_cv_deplibs_check_method=pass_all 3582 ;; 3583 3584solaris*) 3585 lt_cv_deplibs_check_method=pass_all 3586 ;; 3587 3588sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3589 case $host_vendor in 3590 motorola) 3591 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]' 3592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3593 ;; 3594 ncr) 3595 lt_cv_deplibs_check_method=pass_all 3596 ;; 3597 sequent) 3598 lt_cv_file_magic_cmd='/bin/file' 3599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3600 ;; 3601 sni) 3602 lt_cv_file_magic_cmd='/bin/file' 3603 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3604 lt_cv_file_magic_test_file=/lib/libc.so 3605 ;; 3606 siemens) 3607 lt_cv_deplibs_check_method=pass_all 3608 ;; 3609 esac 3610 ;; 3611 3612sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3613 lt_cv_deplibs_check_method=pass_all 3614 ;; 3615esac 3616 3617fi 3618echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3619echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3620file_magic_cmd=$lt_cv_file_magic_cmd 3621deplibs_check_method=$lt_cv_deplibs_check_method 3622test -z "$deplibs_check_method" && deplibs_check_method=unknown 3623 3624 3625 3626 3627# If no C compiler was specified, use CC. 3628LTCC=${LTCC-"$CC"} 3629 3630# Allow CC to be a program name with arguments. 3631compiler=$CC 3632 3633 3634# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3635if test "${enable_libtool_lock+set}" = set; then 3636 enableval="$enable_libtool_lock" 3637 3638fi; 3639test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3640 3641# Some flags need to be propagated to the compiler or linker for good 3642# libtool support. 3643case $host in 3644ia64-*-hpux*) 3645 # Find out which ABI we are using. 3646 echo 'int i;' > conftest.$ac_ext 3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3648 (eval $ac_compile) 2>&5 3649 ac_status=$? 3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3651 (exit $ac_status); }; then 3652 case `/usr/bin/file conftest.$ac_objext` in 3653 *ELF-32*) 3654 HPUX_IA64_MODE="32" 3655 ;; 3656 *ELF-64*) 3657 HPUX_IA64_MODE="64" 3658 ;; 3659 esac 3660 fi 3661 rm -rf conftest* 3662 ;; 3663*-*-irix6*) 3664 # Find out which ABI we are using. 3665 echo '#line 3665 "configure"' > conftest.$ac_ext 3666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3667 (eval $ac_compile) 2>&5 3668 ac_status=$? 3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3670 (exit $ac_status); }; then 3671 if test "$lt_cv_prog_gnu_ld" = yes; then 3672 case `/usr/bin/file conftest.$ac_objext` in 3673 *32-bit*) 3674 LD="${LD-ld} -melf32bsmip" 3675 ;; 3676 *N32*) 3677 LD="${LD-ld} -melf32bmipn32" 3678 ;; 3679 *64-bit*) 3680 LD="${LD-ld} -melf64bmip" 3681 ;; 3682 esac 3683 else 3684 case `/usr/bin/file conftest.$ac_objext` in 3685 *32-bit*) 3686 LD="${LD-ld} -32" 3687 ;; 3688 *N32*) 3689 LD="${LD-ld} -n32" 3690 ;; 3691 *64-bit*) 3692 LD="${LD-ld} -64" 3693 ;; 3694 esac 3695 fi 3696 fi 3697 rm -rf conftest* 3698 ;; 3699 3700x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3701 # Find out which ABI we are using. 3702 echo 'int i;' > conftest.$ac_ext 3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3704 (eval $ac_compile) 2>&5 3705 ac_status=$? 3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3707 (exit $ac_status); }; then 3708 case "`/usr/bin/file conftest.o`" in 3709 *32-bit*) 3710 case $host in 3711 x86_64-*linux*) 3712 LD="${LD-ld} -m elf_i386" 3713 ;; 3714 ppc64-*linux*|powerpc64-*linux*) 3715 LD="${LD-ld} -m elf32ppclinux" 3716 ;; 3717 s390x-*linux*) 3718 LD="${LD-ld} -m elf_s390" 3719 ;; 3720 sparc64-*linux*) 3721 LD="${LD-ld} -m elf32_sparc" 3722 ;; 3723 esac 3724 ;; 3725 *64-bit*) 3726 case $host in 3727 x86_64-*linux*) 3728 LD="${LD-ld} -m elf_x86_64" 3729 ;; 3730 ppc*-*linux*|powerpc*-*linux*) 3731 LD="${LD-ld} -m elf64ppc" 3732 ;; 3733 s390*-*linux*) 3734 LD="${LD-ld} -m elf64_s390" 3735 ;; 3736 sparc*-*linux*) 3737 LD="${LD-ld} -m elf64_sparc" 3738 ;; 3739 esac 3740 ;; 3741 esac 3742 fi 3743 rm -rf conftest* 3744 ;; 3745 3746*-*-sco3.2v5*) 3747 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3748 SAVE_CFLAGS="$CFLAGS" 3749 CFLAGS="$CFLAGS -belf" 3750 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3751echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3752if test "${lt_cv_cc_needs_belf+set}" = set; then 3753 echo $ECHO_N "(cached) $ECHO_C" >&6 3754else 3755 ac_ext=c 3756ac_cpp='$CPP $CPPFLAGS' 3757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3759ac_compiler_gnu=$ac_cv_c_compiler_gnu 3760 3761 cat >conftest.$ac_ext <<_ACEOF 3762/* confdefs.h. */ 3763_ACEOF 3764cat confdefs.h >>conftest.$ac_ext 3765cat >>conftest.$ac_ext <<_ACEOF 3766/* end confdefs.h. */ 3767 3768int 3769main () 3770{ 3771 3772 ; 3773 return 0; 3774} 3775_ACEOF 3776rm -f conftest.$ac_objext conftest$ac_exeext 3777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3778 (eval $ac_link) 2>conftest.er1 3779 ac_status=$? 3780 grep -v '^ *+' conftest.er1 >conftest.err 3781 rm -f conftest.er1 3782 cat conftest.err >&5 3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3784 (exit $ac_status); } && 3785 { ac_try='test -z "$ac_c_werror_flag" 3786 || test ! -s conftest.err' 3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3788 (eval $ac_try) 2>&5 3789 ac_status=$? 3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3791 (exit $ac_status); }; } && 3792 { ac_try='test -s conftest$ac_exeext' 3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3794 (eval $ac_try) 2>&5 3795 ac_status=$? 3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3797 (exit $ac_status); }; }; then 3798 lt_cv_cc_needs_belf=yes 3799else 3800 echo "$as_me: failed program was:" >&5 3801sed 's/^/| /' conftest.$ac_ext >&5 3802 3803lt_cv_cc_needs_belf=no 3804fi 3805rm -f conftest.err conftest.$ac_objext \ 3806 conftest$ac_exeext conftest.$ac_ext 3807 ac_ext=c 3808ac_cpp='$CPP $CPPFLAGS' 3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3811ac_compiler_gnu=$ac_cv_c_compiler_gnu 3812 3813fi 3814echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3815echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3816 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3817 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3818 CFLAGS="$SAVE_CFLAGS" 3819 fi 3820 ;; 3821 3822esac 3823 3824need_locks="$enable_libtool_lock" 3825 3826 3827ac_ext=c 3828ac_cpp='$CPP $CPPFLAGS' 3829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3831ac_compiler_gnu=$ac_cv_c_compiler_gnu 3832echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3833echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3834# On Suns, sometimes $CPP names a directory. 3835if test -n "$CPP" && test -d "$CPP"; then 3836 CPP= 3837fi 3838if test -z "$CPP"; then 3839 if test "${ac_cv_prog_CPP+set}" = set; then 3840 echo $ECHO_N "(cached) $ECHO_C" >&6 3841else 3842 # Double quotes because CPP needs to be expanded 3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3844 do 3845 ac_preproc_ok=false 3846for ac_c_preproc_warn_flag in '' yes 3847do 3848 # Use a header file that comes with gcc, so configuring glibc 3849 # with a fresh cross-compiler works. 3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3851 # <limits.h> exists even on freestanding compilers. 3852 # On the NeXT, cc -E runs the code through the compiler's parser, 3853 # not just through cpp. "Syntax error" is here to catch this case. 3854 cat >conftest.$ac_ext <<_ACEOF 3855/* confdefs.h. */ 3856_ACEOF 3857cat confdefs.h >>conftest.$ac_ext 3858cat >>conftest.$ac_ext <<_ACEOF 3859/* end confdefs.h. */ 3860#ifdef __STDC__ 3861# include <limits.h> 3862#else 3863# include <assert.h> 3864#endif 3865 Syntax error 3866_ACEOF 3867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3869 ac_status=$? 3870 grep -v '^ *+' conftest.er1 >conftest.err 3871 rm -f conftest.er1 3872 cat conftest.err >&5 3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3874 (exit $ac_status); } >/dev/null; then 3875 if test -s conftest.err; then 3876 ac_cpp_err=$ac_c_preproc_warn_flag 3877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3878 else 3879 ac_cpp_err= 3880 fi 3881else 3882 ac_cpp_err=yes 3883fi 3884if test -z "$ac_cpp_err"; then 3885 : 3886else 3887 echo "$as_me: failed program was:" >&5 3888sed 's/^/| /' conftest.$ac_ext >&5 3889 3890 # Broken: fails on valid input. 3891continue 3892fi 3893rm -f conftest.err conftest.$ac_ext 3894 3895 # OK, works on sane cases. Now check whether non-existent headers 3896 # can be detected and how. 3897 cat >conftest.$ac_ext <<_ACEOF 3898/* confdefs.h. */ 3899_ACEOF 3900cat confdefs.h >>conftest.$ac_ext 3901cat >>conftest.$ac_ext <<_ACEOF 3902/* end confdefs.h. */ 3903#include <ac_nonexistent.h> 3904_ACEOF 3905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3907 ac_status=$? 3908 grep -v '^ *+' conftest.er1 >conftest.err 3909 rm -f conftest.er1 3910 cat conftest.err >&5 3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3912 (exit $ac_status); } >/dev/null; then 3913 if test -s conftest.err; then 3914 ac_cpp_err=$ac_c_preproc_warn_flag 3915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3916 else 3917 ac_cpp_err= 3918 fi 3919else 3920 ac_cpp_err=yes 3921fi 3922if test -z "$ac_cpp_err"; then 3923 # Broken: success on invalid input. 3924continue 3925else 3926 echo "$as_me: failed program was:" >&5 3927sed 's/^/| /' conftest.$ac_ext >&5 3928 3929 # Passes both tests. 3930ac_preproc_ok=: 3931break 3932fi 3933rm -f conftest.err conftest.$ac_ext 3934 3935done 3936# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3937rm -f conftest.err conftest.$ac_ext 3938if $ac_preproc_ok; then 3939 break 3940fi 3941 3942 done 3943 ac_cv_prog_CPP=$CPP 3944 3945fi 3946 CPP=$ac_cv_prog_CPP 3947else 3948 ac_cv_prog_CPP=$CPP 3949fi 3950echo "$as_me:$LINENO: result: $CPP" >&5 3951echo "${ECHO_T}$CPP" >&6 3952ac_preproc_ok=false 3953for ac_c_preproc_warn_flag in '' yes 3954do 3955 # Use a header file that comes with gcc, so configuring glibc 3956 # with a fresh cross-compiler works. 3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3958 # <limits.h> exists even on freestanding compilers. 3959 # On the NeXT, cc -E runs the code through the compiler's parser, 3960 # not just through cpp. "Syntax error" is here to catch this case. 3961 cat >conftest.$ac_ext <<_ACEOF 3962/* confdefs.h. */ 3963_ACEOF 3964cat confdefs.h >>conftest.$ac_ext 3965cat >>conftest.$ac_ext <<_ACEOF 3966/* end confdefs.h. */ 3967#ifdef __STDC__ 3968# include <limits.h> 3969#else 3970# include <assert.h> 3971#endif 3972 Syntax error 3973_ACEOF 3974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3976 ac_status=$? 3977 grep -v '^ *+' conftest.er1 >conftest.err 3978 rm -f conftest.er1 3979 cat conftest.err >&5 3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3981 (exit $ac_status); } >/dev/null; then 3982 if test -s conftest.err; then 3983 ac_cpp_err=$ac_c_preproc_warn_flag 3984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3985 else 3986 ac_cpp_err= 3987 fi 3988else 3989 ac_cpp_err=yes 3990fi 3991if test -z "$ac_cpp_err"; then 3992 : 3993else 3994 echo "$as_me: failed program was:" >&5 3995sed 's/^/| /' conftest.$ac_ext >&5 3996 3997 # Broken: fails on valid input. 3998continue 3999fi 4000rm -f conftest.err conftest.$ac_ext 4001 4002 # OK, works on sane cases. Now check whether non-existent headers 4003 # can be detected and how. 4004 cat >conftest.$ac_ext <<_ACEOF 4005/* confdefs.h. */ 4006_ACEOF 4007cat confdefs.h >>conftest.$ac_ext 4008cat >>conftest.$ac_ext <<_ACEOF 4009/* end confdefs.h. */ 4010#include <ac_nonexistent.h> 4011_ACEOF 4012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4014 ac_status=$? 4015 grep -v '^ *+' conftest.er1 >conftest.err 4016 rm -f conftest.er1 4017 cat conftest.err >&5 4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4019 (exit $ac_status); } >/dev/null; then 4020 if test -s conftest.err; then 4021 ac_cpp_err=$ac_c_preproc_warn_flag 4022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4023 else 4024 ac_cpp_err= 4025 fi 4026else 4027 ac_cpp_err=yes 4028fi 4029if test -z "$ac_cpp_err"; then 4030 # Broken: success on invalid input. 4031continue 4032else 4033 echo "$as_me: failed program was:" >&5 4034sed 's/^/| /' conftest.$ac_ext >&5 4035 4036 # Passes both tests. 4037ac_preproc_ok=: 4038break 4039fi 4040rm -f conftest.err conftest.$ac_ext 4041 4042done 4043# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4044rm -f conftest.err conftest.$ac_ext 4045if $ac_preproc_ok; then 4046 : 4047else 4048 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4049See \`config.log' for more details." >&5 4050echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4051See \`config.log' for more details." >&2;} 4052 { (exit 1); exit 1; }; } 4053fi 4054 4055ac_ext=c 4056ac_cpp='$CPP $CPPFLAGS' 4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4059ac_compiler_gnu=$ac_cv_c_compiler_gnu 4060 4061 4062echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4063echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4064if test "${ac_cv_header_stdc+set}" = set; then 4065 echo $ECHO_N "(cached) $ECHO_C" >&6 4066else 4067 cat >conftest.$ac_ext <<_ACEOF 4068/* confdefs.h. */ 4069_ACEOF 4070cat confdefs.h >>conftest.$ac_ext 4071cat >>conftest.$ac_ext <<_ACEOF 4072/* end confdefs.h. */ 4073#include <stdlib.h> 4074#include <stdarg.h> 4075#include <string.h> 4076#include <float.h> 4077 4078int 4079main () 4080{ 4081 4082 ; 4083 return 0; 4084} 4085_ACEOF 4086rm -f conftest.$ac_objext 4087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4088 (eval $ac_compile) 2>conftest.er1 4089 ac_status=$? 4090 grep -v '^ *+' conftest.er1 >conftest.err 4091 rm -f conftest.er1 4092 cat conftest.err >&5 4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4094 (exit $ac_status); } && 4095 { ac_try='test -z "$ac_c_werror_flag" 4096 || test ! -s conftest.err' 4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4098 (eval $ac_try) 2>&5 4099 ac_status=$? 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); }; } && 4102 { ac_try='test -s conftest.$ac_objext' 4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4104 (eval $ac_try) 2>&5 4105 ac_status=$? 4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4107 (exit $ac_status); }; }; then 4108 ac_cv_header_stdc=yes 4109else 4110 echo "$as_me: failed program was:" >&5 4111sed 's/^/| /' conftest.$ac_ext >&5 4112 4113ac_cv_header_stdc=no 4114fi 4115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4116 4117if test $ac_cv_header_stdc = yes; then 4118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4119 cat >conftest.$ac_ext <<_ACEOF 4120/* confdefs.h. */ 4121_ACEOF 4122cat confdefs.h >>conftest.$ac_ext 4123cat >>conftest.$ac_ext <<_ACEOF 4124/* end confdefs.h. */ 4125#include <string.h> 4126 4127_ACEOF 4128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4129 $EGREP "memchr" >/dev/null 2>&1; then 4130 : 4131else 4132 ac_cv_header_stdc=no 4133fi 4134rm -f conftest* 4135 4136fi 4137 4138if test $ac_cv_header_stdc = yes; then 4139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4140 cat >conftest.$ac_ext <<_ACEOF 4141/* confdefs.h. */ 4142_ACEOF 4143cat confdefs.h >>conftest.$ac_ext 4144cat >>conftest.$ac_ext <<_ACEOF 4145/* end confdefs.h. */ 4146#include <stdlib.h> 4147 4148_ACEOF 4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4150 $EGREP "free" >/dev/null 2>&1; then 4151 : 4152else 4153 ac_cv_header_stdc=no 4154fi 4155rm -f conftest* 4156 4157fi 4158 4159if test $ac_cv_header_stdc = yes; then 4160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4161 if test "$cross_compiling" = yes; then 4162 : 4163else 4164 cat >conftest.$ac_ext <<_ACEOF 4165/* confdefs.h. */ 4166_ACEOF 4167cat confdefs.h >>conftest.$ac_ext 4168cat >>conftest.$ac_ext <<_ACEOF 4169/* end confdefs.h. */ 4170#include <ctype.h> 4171#if ((' ' & 0x0FF) == 0x020) 4172# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4173# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4174#else 4175# define ISLOWER(c) \ 4176 (('a' <= (c) && (c) <= 'i') \ 4177 || ('j' <= (c) && (c) <= 'r') \ 4178 || ('s' <= (c) && (c) <= 'z')) 4179# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4180#endif 4181 4182#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4183int 4184main () 4185{ 4186 int i; 4187 for (i = 0; i < 256; i++) 4188 if (XOR (islower (i), ISLOWER (i)) 4189 || toupper (i) != TOUPPER (i)) 4190 exit(2); 4191 exit (0); 4192} 4193_ACEOF 4194rm -f conftest$ac_exeext 4195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4196 (eval $ac_link) 2>&5 4197 ac_status=$? 4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4201 (eval $ac_try) 2>&5 4202 ac_status=$? 4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4204 (exit $ac_status); }; }; then 4205 : 4206else 4207 echo "$as_me: program exited with status $ac_status" >&5 4208echo "$as_me: failed program was:" >&5 4209sed 's/^/| /' conftest.$ac_ext >&5 4210 4211( exit $ac_status ) 4212ac_cv_header_stdc=no 4213fi 4214rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4215fi 4216fi 4217fi 4218echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4219echo "${ECHO_T}$ac_cv_header_stdc" >&6 4220if test $ac_cv_header_stdc = yes; then 4221 4222cat >>confdefs.h <<\_ACEOF 4223#define STDC_HEADERS 1 4224_ACEOF 4225 4226fi 4227 4228# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4239 inttypes.h stdint.h unistd.h 4240do 4241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4242echo "$as_me:$LINENO: checking for $ac_header" >&5 4243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4244if eval "test \"\${$as_ac_Header+set}\" = set"; then 4245 echo $ECHO_N "(cached) $ECHO_C" >&6 4246else 4247 cat >conftest.$ac_ext <<_ACEOF 4248/* confdefs.h. */ 4249_ACEOF 4250cat confdefs.h >>conftest.$ac_ext 4251cat >>conftest.$ac_ext <<_ACEOF 4252/* end confdefs.h. */ 4253$ac_includes_default 4254 4255#include <$ac_header> 4256_ACEOF 4257rm -f conftest.$ac_objext 4258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4259 (eval $ac_compile) 2>conftest.er1 4260 ac_status=$? 4261 grep -v '^ *+' conftest.er1 >conftest.err 4262 rm -f conftest.er1 4263 cat conftest.err >&5 4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4265 (exit $ac_status); } && 4266 { ac_try='test -z "$ac_c_werror_flag" 4267 || test ! -s conftest.err' 4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4269 (eval $ac_try) 2>&5 4270 ac_status=$? 4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4272 (exit $ac_status); }; } && 4273 { ac_try='test -s conftest.$ac_objext' 4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4275 (eval $ac_try) 2>&5 4276 ac_status=$? 4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4278 (exit $ac_status); }; }; then 4279 eval "$as_ac_Header=yes" 4280else 4281 echo "$as_me: failed program was:" >&5 4282sed 's/^/| /' conftest.$ac_ext >&5 4283 4284eval "$as_ac_Header=no" 4285fi 4286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4287fi 4288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4290if test `eval echo '${'$as_ac_Header'}'` = yes; then 4291 cat >>confdefs.h <<_ACEOF 4292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4293_ACEOF 4294 4295fi 4296 4297done 4298 4299 4300 4301for ac_header in dlfcn.h 4302do 4303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4304if eval "test \"\${$as_ac_Header+set}\" = set"; then 4305 echo "$as_me:$LINENO: checking for $ac_header" >&5 4306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4307if eval "test \"\${$as_ac_Header+set}\" = set"; then 4308 echo $ECHO_N "(cached) $ECHO_C" >&6 4309fi 4310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4312else 4313 # Is the header compilable? 4314echo "$as_me:$LINENO: checking $ac_header usability" >&5 4315echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4316cat >conftest.$ac_ext <<_ACEOF 4317/* confdefs.h. */ 4318_ACEOF 4319cat confdefs.h >>conftest.$ac_ext 4320cat >>conftest.$ac_ext <<_ACEOF 4321/* end confdefs.h. */ 4322$ac_includes_default 4323#include <$ac_header> 4324_ACEOF 4325rm -f conftest.$ac_objext 4326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4327 (eval $ac_compile) 2>conftest.er1 4328 ac_status=$? 4329 grep -v '^ *+' conftest.er1 >conftest.err 4330 rm -f conftest.er1 4331 cat conftest.err >&5 4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4333 (exit $ac_status); } && 4334 { ac_try='test -z "$ac_c_werror_flag" 4335 || test ! -s conftest.err' 4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4337 (eval $ac_try) 2>&5 4338 ac_status=$? 4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4340 (exit $ac_status); }; } && 4341 { ac_try='test -s conftest.$ac_objext' 4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4343 (eval $ac_try) 2>&5 4344 ac_status=$? 4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4346 (exit $ac_status); }; }; then 4347 ac_header_compiler=yes 4348else 4349 echo "$as_me: failed program was:" >&5 4350sed 's/^/| /' conftest.$ac_ext >&5 4351 4352ac_header_compiler=no 4353fi 4354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4356echo "${ECHO_T}$ac_header_compiler" >&6 4357 4358# Is the header present? 4359echo "$as_me:$LINENO: checking $ac_header presence" >&5 4360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4361cat >conftest.$ac_ext <<_ACEOF 4362/* confdefs.h. */ 4363_ACEOF 4364cat confdefs.h >>conftest.$ac_ext 4365cat >>conftest.$ac_ext <<_ACEOF 4366/* end confdefs.h. */ 4367#include <$ac_header> 4368_ACEOF 4369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4371 ac_status=$? 4372 grep -v '^ *+' conftest.er1 >conftest.err 4373 rm -f conftest.er1 4374 cat conftest.err >&5 4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); } >/dev/null; then 4377 if test -s conftest.err; then 4378 ac_cpp_err=$ac_c_preproc_warn_flag 4379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4380 else 4381 ac_cpp_err= 4382 fi 4383else 4384 ac_cpp_err=yes 4385fi 4386if test -z "$ac_cpp_err"; then 4387 ac_header_preproc=yes 4388else 4389 echo "$as_me: failed program was:" >&5 4390sed 's/^/| /' conftest.$ac_ext >&5 4391 4392 ac_header_preproc=no 4393fi 4394rm -f conftest.err conftest.$ac_ext 4395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4396echo "${ECHO_T}$ac_header_preproc" >&6 4397 4398# So? What about this header? 4399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4400 yes:no: ) 4401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4405 ac_header_preproc=yes 4406 ;; 4407 no:yes:* ) 4408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4415echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4420 ( 4421 cat <<\_ASBOX 4422## ------------------------------------------ ## 4423## Report this to the AC_PACKAGE_NAME lists. ## 4424## ------------------------------------------ ## 4425_ASBOX 4426 ) | 4427 sed "s/^/$as_me: WARNING: /" >&2 4428 ;; 4429esac 4430echo "$as_me:$LINENO: checking for $ac_header" >&5 4431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4432if eval "test \"\${$as_ac_Header+set}\" = set"; then 4433 echo $ECHO_N "(cached) $ECHO_C" >&6 4434else 4435 eval "$as_ac_Header=\$ac_header_preproc" 4436fi 4437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4439 4440fi 4441if test `eval echo '${'$as_ac_Header'}'` = yes; then 4442 cat >>confdefs.h <<_ACEOF 4443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4444_ACEOF 4445 4446fi 4447 4448done 4449 4450ac_ext=cc 4451ac_cpp='$CXXCPP $CPPFLAGS' 4452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4455if test -n "$ac_tool_prefix"; then 4456 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4457 do 4458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4459set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4460echo "$as_me:$LINENO: checking for $ac_word" >&5 4461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4462if test "${ac_cv_prog_CXX+set}" = set; then 4463 echo $ECHO_N "(cached) $ECHO_C" >&6 4464else 4465 if test -n "$CXX"; then 4466 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4467else 4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469for as_dir in $PATH 4470do 4471 IFS=$as_save_IFS 4472 test -z "$as_dir" && as_dir=. 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4475 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4477 break 2 4478 fi 4479done 4480done 4481 4482fi 4483fi 4484CXX=$ac_cv_prog_CXX 4485if test -n "$CXX"; then 4486 echo "$as_me:$LINENO: result: $CXX" >&5 4487echo "${ECHO_T}$CXX" >&6 4488else 4489 echo "$as_me:$LINENO: result: no" >&5 4490echo "${ECHO_T}no" >&6 4491fi 4492 4493 test -n "$CXX" && break 4494 done 4495fi 4496if test -z "$CXX"; then 4497 ac_ct_CXX=$CXX 4498 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4499do 4500 # Extract the first word of "$ac_prog", so it can be a program name with args. 4501set dummy $ac_prog; ac_word=$2 4502echo "$as_me:$LINENO: checking for $ac_word" >&5 4503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4504if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4505 echo $ECHO_N "(cached) $ECHO_C" >&6 4506else 4507 if test -n "$ac_ct_CXX"; then 4508 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4509else 4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511for as_dir in $PATH 4512do 4513 IFS=$as_save_IFS 4514 test -z "$as_dir" && as_dir=. 4515 for ac_exec_ext in '' $ac_executable_extensions; do 4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4517 ac_cv_prog_ac_ct_CXX="$ac_prog" 4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4519 break 2 4520 fi 4521done 4522done 4523 4524fi 4525fi 4526ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4527if test -n "$ac_ct_CXX"; then 4528 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4529echo "${ECHO_T}$ac_ct_CXX" >&6 4530else 4531 echo "$as_me:$LINENO: result: no" >&5 4532echo "${ECHO_T}no" >&6 4533fi 4534 4535 test -n "$ac_ct_CXX" && break 4536done 4537test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4538 4539 CXX=$ac_ct_CXX 4540fi 4541 4542 4543# Provide some information about the compiler. 4544echo "$as_me:$LINENO:" \ 4545 "checking for C++ compiler version" >&5 4546ac_compiler=`set X $ac_compile; echo $2` 4547{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4548 (eval $ac_compiler --version </dev/null >&5) 2>&5 4549 ac_status=$? 4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4551 (exit $ac_status); } 4552{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4553 (eval $ac_compiler -v </dev/null >&5) 2>&5 4554 ac_status=$? 4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556 (exit $ac_status); } 4557{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4558 (eval $ac_compiler -V </dev/null >&5) 2>&5 4559 ac_status=$? 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); } 4562 4563echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4564echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4565if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4566 echo $ECHO_N "(cached) $ECHO_C" >&6 4567else 4568 cat >conftest.$ac_ext <<_ACEOF 4569/* confdefs.h. */ 4570_ACEOF 4571cat confdefs.h >>conftest.$ac_ext 4572cat >>conftest.$ac_ext <<_ACEOF 4573/* end confdefs.h. */ 4574 4575int 4576main () 4577{ 4578#ifndef __GNUC__ 4579 choke me 4580#endif 4581 4582 ; 4583 return 0; 4584} 4585_ACEOF 4586rm -f conftest.$ac_objext 4587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4588 (eval $ac_compile) 2>conftest.er1 4589 ac_status=$? 4590 grep -v '^ *+' conftest.er1 >conftest.err 4591 rm -f conftest.er1 4592 cat conftest.err >&5 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); } && 4595 { ac_try='test -z "$ac_cxx_werror_flag" 4596 || test ! -s conftest.err' 4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4598 (eval $ac_try) 2>&5 4599 ac_status=$? 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); }; } && 4602 { ac_try='test -s conftest.$ac_objext' 4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4604 (eval $ac_try) 2>&5 4605 ac_status=$? 4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4607 (exit $ac_status); }; }; then 4608 ac_compiler_gnu=yes 4609else 4610 echo "$as_me: failed program was:" >&5 4611sed 's/^/| /' conftest.$ac_ext >&5 4612 4613ac_compiler_gnu=no 4614fi 4615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4616ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4617 4618fi 4619echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4620echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4621GXX=`test $ac_compiler_gnu = yes && echo yes` 4622ac_test_CXXFLAGS=${CXXFLAGS+set} 4623ac_save_CXXFLAGS=$CXXFLAGS 4624CXXFLAGS="-g" 4625echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4626echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4627if test "${ac_cv_prog_cxx_g+set}" = set; then 4628 echo $ECHO_N "(cached) $ECHO_C" >&6 4629else 4630 cat >conftest.$ac_ext <<_ACEOF 4631/* confdefs.h. */ 4632_ACEOF 4633cat confdefs.h >>conftest.$ac_ext 4634cat >>conftest.$ac_ext <<_ACEOF 4635/* end confdefs.h. */ 4636 4637int 4638main () 4639{ 4640 4641 ; 4642 return 0; 4643} 4644_ACEOF 4645rm -f conftest.$ac_objext 4646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4647 (eval $ac_compile) 2>conftest.er1 4648 ac_status=$? 4649 grep -v '^ *+' conftest.er1 >conftest.err 4650 rm -f conftest.er1 4651 cat conftest.err >&5 4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4653 (exit $ac_status); } && 4654 { ac_try='test -z "$ac_cxx_werror_flag" 4655 || test ! -s conftest.err' 4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4657 (eval $ac_try) 2>&5 4658 ac_status=$? 4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4660 (exit $ac_status); }; } && 4661 { ac_try='test -s conftest.$ac_objext' 4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4663 (eval $ac_try) 2>&5 4664 ac_status=$? 4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4666 (exit $ac_status); }; }; then 4667 ac_cv_prog_cxx_g=yes 4668else 4669 echo "$as_me: failed program was:" >&5 4670sed 's/^/| /' conftest.$ac_ext >&5 4671 4672ac_cv_prog_cxx_g=no 4673fi 4674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4675fi 4676echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4677echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4678if test "$ac_test_CXXFLAGS" = set; then 4679 CXXFLAGS=$ac_save_CXXFLAGS 4680elif test $ac_cv_prog_cxx_g = yes; then 4681 if test "$GXX" = yes; then 4682 CXXFLAGS="-g -O2" 4683 else 4684 CXXFLAGS="-g" 4685 fi 4686else 4687 if test "$GXX" = yes; then 4688 CXXFLAGS="-O2" 4689 else 4690 CXXFLAGS= 4691 fi 4692fi 4693for ac_declaration in \ 4694 '' \ 4695 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4696 'extern "C" void std::exit (int); using std::exit;' \ 4697 'extern "C" void exit (int) throw ();' \ 4698 'extern "C" void exit (int);' \ 4699 'void exit (int);' 4700do 4701 cat >conftest.$ac_ext <<_ACEOF 4702/* confdefs.h. */ 4703_ACEOF 4704cat confdefs.h >>conftest.$ac_ext 4705cat >>conftest.$ac_ext <<_ACEOF 4706/* end confdefs.h. */ 4707$ac_declaration 4708#include <stdlib.h> 4709int 4710main () 4711{ 4712exit (42); 4713 ; 4714 return 0; 4715} 4716_ACEOF 4717rm -f conftest.$ac_objext 4718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4719 (eval $ac_compile) 2>conftest.er1 4720 ac_status=$? 4721 grep -v '^ *+' conftest.er1 >conftest.err 4722 rm -f conftest.er1 4723 cat conftest.err >&5 4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4725 (exit $ac_status); } && 4726 { ac_try='test -z "$ac_cxx_werror_flag" 4727 || test ! -s conftest.err' 4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4729 (eval $ac_try) 2>&5 4730 ac_status=$? 4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4732 (exit $ac_status); }; } && 4733 { ac_try='test -s conftest.$ac_objext' 4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4735 (eval $ac_try) 2>&5 4736 ac_status=$? 4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4738 (exit $ac_status); }; }; then 4739 : 4740else 4741 echo "$as_me: failed program was:" >&5 4742sed 's/^/| /' conftest.$ac_ext >&5 4743 4744continue 4745fi 4746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4747 cat >conftest.$ac_ext <<_ACEOF 4748/* confdefs.h. */ 4749_ACEOF 4750cat confdefs.h >>conftest.$ac_ext 4751cat >>conftest.$ac_ext <<_ACEOF 4752/* end confdefs.h. */ 4753$ac_declaration 4754int 4755main () 4756{ 4757exit (42); 4758 ; 4759 return 0; 4760} 4761_ACEOF 4762rm -f conftest.$ac_objext 4763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4764 (eval $ac_compile) 2>conftest.er1 4765 ac_status=$? 4766 grep -v '^ *+' conftest.er1 >conftest.err 4767 rm -f conftest.er1 4768 cat conftest.err >&5 4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4770 (exit $ac_status); } && 4771 { ac_try='test -z "$ac_cxx_werror_flag" 4772 || test ! -s conftest.err' 4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4774 (eval $ac_try) 2>&5 4775 ac_status=$? 4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4777 (exit $ac_status); }; } && 4778 { ac_try='test -s conftest.$ac_objext' 4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4780 (eval $ac_try) 2>&5 4781 ac_status=$? 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); }; }; then 4784 break 4785else 4786 echo "$as_me: failed program was:" >&5 4787sed 's/^/| /' conftest.$ac_ext >&5 4788 4789fi 4790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4791done 4792rm -f conftest* 4793if test -n "$ac_declaration"; then 4794 echo '#ifdef __cplusplus' >>confdefs.h 4795 echo $ac_declaration >>confdefs.h 4796 echo '#endif' >>confdefs.h 4797fi 4798 4799ac_ext=cc 4800ac_cpp='$CXXCPP $CPPFLAGS' 4801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4804 4805depcc="$CXX" am_compiler_list= 4806 4807echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4808echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4809if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4810 echo $ECHO_N "(cached) $ECHO_C" >&6 4811else 4812 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4813 # We make a subdir and do the tests there. Otherwise we can end up 4814 # making bogus files that we don't know about and never remove. For 4815 # instance it was reported that on HP-UX the gcc test will end up 4816 # making a dummy file named `D' -- because `-MD' means `put the output 4817 # in D'. 4818 mkdir conftest.dir 4819 # Copy depcomp to subdir because otherwise we won't find it if we're 4820 # using a relative directory. 4821 cp "$am_depcomp" conftest.dir 4822 cd conftest.dir 4823 # We will build objects and dependencies in a subdirectory because 4824 # it helps to detect inapplicable dependency modes. For instance 4825 # both Tru64's cc and ICC support -MD to output dependencies as a 4826 # side effect of compilation, but ICC will put the dependencies in 4827 # the current directory while Tru64 will put them in the object 4828 # directory. 4829 mkdir sub 4830 4831 am_cv_CXX_dependencies_compiler_type=none 4832 if test "$am_compiler_list" = ""; then 4833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4834 fi 4835 for depmode in $am_compiler_list; do 4836 # Setup a source with many dependencies, because some compilers 4837 # like to wrap large dependency lists on column 80 (with \), and 4838 # we should not choose a depcomp mode which is confused by this. 4839 # 4840 # We need to recreate these files for each test, as the compiler may 4841 # overwrite some of them when testing with obscure command lines. 4842 # This happens at least with the AIX C compiler. 4843 : > sub/conftest.c 4844 for i in 1 2 3 4 5 6; do 4845 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4846 : > sub/conftst$i.h 4847 done 4848 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4849 4850 case $depmode in 4851 nosideeffect) 4852 # after this tag, mechanisms are not by side-effect, so they'll 4853 # only be used when explicitly requested 4854 if test "x$enable_dependency_tracking" = xyes; then 4855 continue 4856 else 4857 break 4858 fi 4859 ;; 4860 none) break ;; 4861 esac 4862 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4863 # mode. It turns out that the SunPro C++ compiler does not properly 4864 # handle `-M -o', and we need to detect this. 4865 if depmode=$depmode \ 4866 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4867 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4868 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4869 >/dev/null 2>conftest.err && 4870 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4871 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4872 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4873 # icc doesn't choke on unknown options, it will just issue warnings 4874 # (even with -Werror). So we grep stderr for any message 4875 # that says an option was ignored. 4876 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 4877 am_cv_CXX_dependencies_compiler_type=$depmode 4878 break 4879 fi 4880 fi 4881 done 4882 4883 cd .. 4884 rm -rf conftest.dir 4885else 4886 am_cv_CXX_dependencies_compiler_type=none 4887fi 4888 4889fi 4890echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4891echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4892CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4893 4894 4895 4896if 4897 test "x$enable_dependency_tracking" != xno \ 4898 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4899 am__fastdepCXX_TRUE= 4900 am__fastdepCXX_FALSE='#' 4901else 4902 am__fastdepCXX_TRUE='#' 4903 am__fastdepCXX_FALSE= 4904fi 4905 4906 4907 4908 4909if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4910 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4911 (test "X$CXX" != "Xg++"))) ; then 4912 ac_ext=cc 4913ac_cpp='$CXXCPP $CPPFLAGS' 4914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4917echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4918echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4919if test -z "$CXXCPP"; then 4920 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4921 echo $ECHO_N "(cached) $ECHO_C" >&6 4922else 4923 # Double quotes because CXXCPP needs to be expanded 4924 for CXXCPP in "$CXX -E" "/lib/cpp" 4925 do 4926 ac_preproc_ok=false 4927for ac_cxx_preproc_warn_flag in '' yes 4928do 4929 # Use a header file that comes with gcc, so configuring glibc 4930 # with a fresh cross-compiler works. 4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4932 # <limits.h> exists even on freestanding compilers. 4933 # On the NeXT, cc -E runs the code through the compiler's parser, 4934 # not just through cpp. "Syntax error" is here to catch this case. 4935 cat >conftest.$ac_ext <<_ACEOF 4936/* confdefs.h. */ 4937_ACEOF 4938cat confdefs.h >>conftest.$ac_ext 4939cat >>conftest.$ac_ext <<_ACEOF 4940/* end confdefs.h. */ 4941#ifdef __STDC__ 4942# include <limits.h> 4943#else 4944# include <assert.h> 4945#endif 4946 Syntax error 4947_ACEOF 4948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4950 ac_status=$? 4951 grep -v '^ *+' conftest.er1 >conftest.err 4952 rm -f conftest.er1 4953 cat conftest.err >&5 4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 (exit $ac_status); } >/dev/null; then 4956 if test -s conftest.err; then 4957 ac_cpp_err=$ac_cxx_preproc_warn_flag 4958 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4959 else 4960 ac_cpp_err= 4961 fi 4962else 4963 ac_cpp_err=yes 4964fi 4965if test -z "$ac_cpp_err"; then 4966 : 4967else 4968 echo "$as_me: failed program was:" >&5 4969sed 's/^/| /' conftest.$ac_ext >&5 4970 4971 # Broken: fails on valid input. 4972continue 4973fi 4974rm -f conftest.err conftest.$ac_ext 4975 4976 # OK, works on sane cases. Now check whether non-existent headers 4977 # can be detected and how. 4978 cat >conftest.$ac_ext <<_ACEOF 4979/* confdefs.h. */ 4980_ACEOF 4981cat confdefs.h >>conftest.$ac_ext 4982cat >>conftest.$ac_ext <<_ACEOF 4983/* end confdefs.h. */ 4984#include <ac_nonexistent.h> 4985_ACEOF 4986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4988 ac_status=$? 4989 grep -v '^ *+' conftest.er1 >conftest.err 4990 rm -f conftest.er1 4991 cat conftest.err >&5 4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4993 (exit $ac_status); } >/dev/null; then 4994 if test -s conftest.err; then 4995 ac_cpp_err=$ac_cxx_preproc_warn_flag 4996 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4997 else 4998 ac_cpp_err= 4999 fi 5000else 5001 ac_cpp_err=yes 5002fi 5003if test -z "$ac_cpp_err"; then 5004 # Broken: success on invalid input. 5005continue 5006else 5007 echo "$as_me: failed program was:" >&5 5008sed 's/^/| /' conftest.$ac_ext >&5 5009 5010 # Passes both tests. 5011ac_preproc_ok=: 5012break 5013fi 5014rm -f conftest.err conftest.$ac_ext 5015 5016done 5017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5018rm -f conftest.err conftest.$ac_ext 5019if $ac_preproc_ok; then 5020 break 5021fi 5022 5023 done 5024 ac_cv_prog_CXXCPP=$CXXCPP 5025 5026fi 5027 CXXCPP=$ac_cv_prog_CXXCPP 5028else 5029 ac_cv_prog_CXXCPP=$CXXCPP 5030fi 5031echo "$as_me:$LINENO: result: $CXXCPP" >&5 5032echo "${ECHO_T}$CXXCPP" >&6 5033ac_preproc_ok=false 5034for ac_cxx_preproc_warn_flag in '' yes 5035do 5036 # Use a header file that comes with gcc, so configuring glibc 5037 # with a fresh cross-compiler works. 5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5039 # <limits.h> exists even on freestanding compilers. 5040 # On the NeXT, cc -E runs the code through the compiler's parser, 5041 # not just through cpp. "Syntax error" is here to catch this case. 5042 cat >conftest.$ac_ext <<_ACEOF 5043/* confdefs.h. */ 5044_ACEOF 5045cat confdefs.h >>conftest.$ac_ext 5046cat >>conftest.$ac_ext <<_ACEOF 5047/* end confdefs.h. */ 5048#ifdef __STDC__ 5049# include <limits.h> 5050#else 5051# include <assert.h> 5052#endif 5053 Syntax error 5054_ACEOF 5055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5057 ac_status=$? 5058 grep -v '^ *+' conftest.er1 >conftest.err 5059 rm -f conftest.er1 5060 cat conftest.err >&5 5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5062 (exit $ac_status); } >/dev/null; then 5063 if test -s conftest.err; then 5064 ac_cpp_err=$ac_cxx_preproc_warn_flag 5065 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5066 else 5067 ac_cpp_err= 5068 fi 5069else 5070 ac_cpp_err=yes 5071fi 5072if test -z "$ac_cpp_err"; then 5073 : 5074else 5075 echo "$as_me: failed program was:" >&5 5076sed 's/^/| /' conftest.$ac_ext >&5 5077 5078 # Broken: fails on valid input. 5079continue 5080fi 5081rm -f conftest.err conftest.$ac_ext 5082 5083 # OK, works on sane cases. Now check whether non-existent headers 5084 # can be detected and how. 5085 cat >conftest.$ac_ext <<_ACEOF 5086/* confdefs.h. */ 5087_ACEOF 5088cat confdefs.h >>conftest.$ac_ext 5089cat >>conftest.$ac_ext <<_ACEOF 5090/* end confdefs.h. */ 5091#include <ac_nonexistent.h> 5092_ACEOF 5093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5095 ac_status=$? 5096 grep -v '^ *+' conftest.er1 >conftest.err 5097 rm -f conftest.er1 5098 cat conftest.err >&5 5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5100 (exit $ac_status); } >/dev/null; then 5101 if test -s conftest.err; then 5102 ac_cpp_err=$ac_cxx_preproc_warn_flag 5103 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5104 else 5105 ac_cpp_err= 5106 fi 5107else 5108 ac_cpp_err=yes 5109fi 5110if test -z "$ac_cpp_err"; then 5111 # Broken: success on invalid input. 5112continue 5113else 5114 echo "$as_me: failed program was:" >&5 5115sed 's/^/| /' conftest.$ac_ext >&5 5116 5117 # Passes both tests. 5118ac_preproc_ok=: 5119break 5120fi 5121rm -f conftest.err conftest.$ac_ext 5122 5123done 5124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5125rm -f conftest.err conftest.$ac_ext 5126if $ac_preproc_ok; then 5127 : 5128else 5129 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5130See \`config.log' for more details." >&5 5131echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5132See \`config.log' for more details." >&2;} 5133 { (exit 1); exit 1; }; } 5134fi 5135 5136ac_ext=cc 5137ac_cpp='$CXXCPP $CPPFLAGS' 5138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5141 5142fi 5143 5144 5145ac_ext=f 5146ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5147ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5148ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5149if test -n "$ac_tool_prefix"; then 5150 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5151 do 5152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5153set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5154echo "$as_me:$LINENO: checking for $ac_word" >&5 5155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5156if test "${ac_cv_prog_F77+set}" = set; then 5157 echo $ECHO_N "(cached) $ECHO_C" >&6 5158else 5159 if test -n "$F77"; then 5160 ac_cv_prog_F77="$F77" # Let the user override the test. 5161else 5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5163for as_dir in $PATH 5164do 5165 IFS=$as_save_IFS 5166 test -z "$as_dir" && as_dir=. 5167 for ac_exec_ext in '' $ac_executable_extensions; do 5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5169 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5171 break 2 5172 fi 5173done 5174done 5175 5176fi 5177fi 5178F77=$ac_cv_prog_F77 5179if test -n "$F77"; then 5180 echo "$as_me:$LINENO: result: $F77" >&5 5181echo "${ECHO_T}$F77" >&6 5182else 5183 echo "$as_me:$LINENO: result: no" >&5 5184echo "${ECHO_T}no" >&6 5185fi 5186 5187 test -n "$F77" && break 5188 done 5189fi 5190if test -z "$F77"; then 5191 ac_ct_F77=$F77 5192 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5193do 5194 # Extract the first word of "$ac_prog", so it can be a program name with args. 5195set dummy $ac_prog; ac_word=$2 5196echo "$as_me:$LINENO: checking for $ac_word" >&5 5197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5198if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5199 echo $ECHO_N "(cached) $ECHO_C" >&6 5200else 5201 if test -n "$ac_ct_F77"; then 5202 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5203else 5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5205for as_dir in $PATH 5206do 5207 IFS=$as_save_IFS 5208 test -z "$as_dir" && as_dir=. 5209 for ac_exec_ext in '' $ac_executable_extensions; do 5210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5211 ac_cv_prog_ac_ct_F77="$ac_prog" 5212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5213 break 2 5214 fi 5215done 5216done 5217 5218fi 5219fi 5220ac_ct_F77=$ac_cv_prog_ac_ct_F77 5221if test -n "$ac_ct_F77"; then 5222 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5223echo "${ECHO_T}$ac_ct_F77" >&6 5224else 5225 echo "$as_me:$LINENO: result: no" >&5 5226echo "${ECHO_T}no" >&6 5227fi 5228 5229 test -n "$ac_ct_F77" && break 5230done 5231 5232 F77=$ac_ct_F77 5233fi 5234 5235 5236# Provide some information about the compiler. 5237echo "$as_me:5237:" \ 5238 "checking for Fortran 77 compiler version" >&5 5239ac_compiler=`set X $ac_compile; echo $2` 5240{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5241 (eval $ac_compiler --version </dev/null >&5) 2>&5 5242 ac_status=$? 5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5244 (exit $ac_status); } 5245{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5246 (eval $ac_compiler -v </dev/null >&5) 2>&5 5247 ac_status=$? 5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5249 (exit $ac_status); } 5250{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5251 (eval $ac_compiler -V </dev/null >&5) 2>&5 5252 ac_status=$? 5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5254 (exit $ac_status); } 5255rm -f a.out 5256 5257# If we don't use `.F' as extension, the preprocessor is not run on the 5258# input file. (Note that this only needs to work for GNU compilers.) 5259ac_save_ext=$ac_ext 5260ac_ext=F 5261echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5262echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5263if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5264 echo $ECHO_N "(cached) $ECHO_C" >&6 5265else 5266 cat >conftest.$ac_ext <<_ACEOF 5267 program main 5268#ifndef __GNUC__ 5269 choke me 5270#endif 5271 5272 end 5273_ACEOF 5274rm -f conftest.$ac_objext 5275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5276 (eval $ac_compile) 2>conftest.er1 5277 ac_status=$? 5278 grep -v '^ *+' conftest.er1 >conftest.err 5279 rm -f conftest.er1 5280 cat conftest.err >&5 5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5282 (exit $ac_status); } && 5283 { ac_try='test -z "$ac_f77_werror_flag" 5284 || test ! -s conftest.err' 5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5286 (eval $ac_try) 2>&5 5287 ac_status=$? 5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5289 (exit $ac_status); }; } && 5290 { ac_try='test -s conftest.$ac_objext' 5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5292 (eval $ac_try) 2>&5 5293 ac_status=$? 5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5295 (exit $ac_status); }; }; then 5296 ac_compiler_gnu=yes 5297else 5298 echo "$as_me: failed program was:" >&5 5299sed 's/^/| /' conftest.$ac_ext >&5 5300 5301ac_compiler_gnu=no 5302fi 5303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5304ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5305 5306fi 5307echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5308echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5309ac_ext=$ac_save_ext 5310ac_test_FFLAGS=${FFLAGS+set} 5311ac_save_FFLAGS=$FFLAGS 5312FFLAGS= 5313echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5314echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5315if test "${ac_cv_prog_f77_g+set}" = set; then 5316 echo $ECHO_N "(cached) $ECHO_C" >&6 5317else 5318 FFLAGS=-g 5319cat >conftest.$ac_ext <<_ACEOF 5320 program main 5321 5322 end 5323_ACEOF 5324rm -f conftest.$ac_objext 5325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5326 (eval $ac_compile) 2>conftest.er1 5327 ac_status=$? 5328 grep -v '^ *+' conftest.er1 >conftest.err 5329 rm -f conftest.er1 5330 cat conftest.err >&5 5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5332 (exit $ac_status); } && 5333 { ac_try='test -z "$ac_f77_werror_flag" 5334 || test ! -s conftest.err' 5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5336 (eval $ac_try) 2>&5 5337 ac_status=$? 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5339 (exit $ac_status); }; } && 5340 { ac_try='test -s conftest.$ac_objext' 5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5342 (eval $ac_try) 2>&5 5343 ac_status=$? 5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 (exit $ac_status); }; }; then 5346 ac_cv_prog_f77_g=yes 5347else 5348 echo "$as_me: failed program was:" >&5 5349sed 's/^/| /' conftest.$ac_ext >&5 5350 5351ac_cv_prog_f77_g=no 5352fi 5353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5354 5355fi 5356echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5357echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5358if test "$ac_test_FFLAGS" = set; then 5359 FFLAGS=$ac_save_FFLAGS 5360elif test $ac_cv_prog_f77_g = yes; then 5361 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5362 FFLAGS="-g -O2" 5363 else 5364 FFLAGS="-g" 5365 fi 5366else 5367 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5368 FFLAGS="-O2" 5369 else 5370 FFLAGS= 5371 fi 5372fi 5373 5374G77=`test $ac_compiler_gnu = yes && echo yes` 5375ac_ext=c 5376ac_cpp='$CPP $CPPFLAGS' 5377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5379ac_compiler_gnu=$ac_cv_c_compiler_gnu 5380 5381 5382 5383# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5384 5385# find the maximum length of command line arguments 5386echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5387echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5388if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5389 echo $ECHO_N "(cached) $ECHO_C" >&6 5390else 5391 i=0 5392 teststring="ABCD" 5393 5394 case $build_os in 5395 msdosdjgpp*) 5396 # On DJGPP, this test can blow up pretty badly due to problems in libc 5397 # (any single argument exceeding 2000 bytes causes a buffer overrun 5398 # during glob expansion). Even if it were fixed, the result of this 5399 # check would be larger than it should be. 5400 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5401 ;; 5402 5403 gnu*) 5404 # Under GNU Hurd, this test is not required because there is 5405 # no limit to the length of command line arguments. 5406 # Libtool will interpret -1 as no limit whatsoever 5407 lt_cv_sys_max_cmd_len=-1; 5408 ;; 5409 5410 cygwin* | mingw*) 5411 # On Win9x/ME, this test blows up -- it succeeds, but takes 5412 # about 5 minutes as the teststring grows exponentially. 5413 # Worse, since 9x/ME are not pre-emptively multitasking, 5414 # you end up with a "frozen" computer, even though with patience 5415 # the test eventually succeeds (with a max line length of 256k). 5416 # Instead, let's just punt: use the minimum linelength reported by 5417 # all of the supported platforms: 8192 (on NT/2K/XP). 5418 lt_cv_sys_max_cmd_len=8192; 5419 ;; 5420 5421 amigaos*) 5422 # On AmigaOS with pdksh, this test takes hours, literally. 5423 # So we just punt and use a minimum line length of 8192. 5424 lt_cv_sys_max_cmd_len=8192; 5425 ;; 5426 5427 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5428 # This has been around since 386BSD, at least. Likely further. 5429 if test -x /sbin/sysctl; then 5430 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5431 elif test -x /usr/sbin/sysctl; then 5432 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5433 else 5434 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 5435 fi 5436 # And add a safety zone 5437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5439 ;; 5440 osf*) 5441 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5442 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5443 # nice to cause kernel panics so lets avoid the loop below. 5444 # First set a reasonable default. 5445 lt_cv_sys_max_cmd_len=16384 5446 # 5447 if test -x /sbin/sysconfig; then 5448 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5449 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5450 esac 5451 fi 5452 ;; 5453 *) 5454 # If test is not a shell built-in, we'll probably end up computing a 5455 # maximum length that is only half of the actual maximum length, but 5456 # we can't tell. 5457 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5458 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5459 = "XX$teststring") >/dev/null 2>&1 && 5460 new_result=`expr "X$teststring" : ".*" 2>&1` && 5461 lt_cv_sys_max_cmd_len=$new_result && 5462 test $i != 17 # 1/2 MB should be enough 5463 do 5464 i=`expr $i + 1` 5465 teststring=$teststring$teststring 5466 done 5467 teststring= 5468 # Add a significant safety factor because C++ compilers can tack on massive 5469 # amounts of additional arguments before passing them to the linker. 5470 # It appears as though 1/2 is a usable value. 5471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5472 ;; 5473 esac 5474 5475fi 5476 5477if test -n $lt_cv_sys_max_cmd_len ; then 5478 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5479echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5480else 5481 echo "$as_me:$LINENO: result: none" >&5 5482echo "${ECHO_T}none" >&6 5483fi 5484 5485 5486 5487 5488# Check for command to grab the raw symbol name followed by C symbol from nm. 5489echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5490echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5491if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5492 echo $ECHO_N "(cached) $ECHO_C" >&6 5493else 5494 5495# These are sane defaults that work on at least a few old systems. 5496# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5497 5498# Character class describing NM global symbol codes. 5499symcode='[BCDEGRST]' 5500 5501# Regexp to match symbols that can be accessed directly from C. 5502sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5503 5504# Transform an extracted symbol line into a proper C declaration 5505lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5506 5507# Transform an extracted symbol line into symbol name and symbol address 5508lt_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'" 5509 5510# Define system-specific variables. 5511case $host_os in 5512aix*) 5513 symcode='[BCDT]' 5514 ;; 5515cygwin* | mingw* | pw32*) 5516 symcode='[ABCDGISTW]' 5517 ;; 5518hpux*) # Its linker distinguishes data from code symbols 5519 if test "$host_cpu" = ia64; then 5520 symcode='[ABCDEGRST]' 5521 fi 5522 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5523 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'" 5524 ;; 5525linux*) 5526 if test "$host_cpu" = ia64; then 5527 symcode='[ABCDGIRSTW]' 5528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5529 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'" 5530 fi 5531 ;; 5532irix* | nonstopux*) 5533 symcode='[BCDEGRST]' 5534 ;; 5535osf*) 5536 symcode='[BCDEGQRST]' 5537 ;; 5538solaris* | sysv5*) 5539 symcode='[BDRT]' 5540 ;; 5541sysv4) 5542 symcode='[DFNSTU]' 5543 ;; 5544esac 5545 5546# Handle CRLF in mingw tool chain 5547opt_cr= 5548case $build_os in 5549mingw*) 5550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5551 ;; 5552esac 5553 5554# If we're using GNU nm, then use its standard symbol codes. 5555case `$NM -V 2>&1` in 5556*GNU* | *'with BFD'*) 5557 symcode='[ABCDGIRSTW]' ;; 5558esac 5559 5560# Try without a prefix undercore, then with it. 5561for ac_symprfx in "" "_"; do 5562 5563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5564 symxfrm="\\1 $ac_symprfx\\2 \\2" 5565 5566 # Write the raw and C identifiers. 5567 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5568 5569 # Check to see that the pipe works correctly. 5570 pipe_works=no 5571 5572 rm -f conftest* 5573 cat > conftest.$ac_ext <<EOF 5574#ifdef __cplusplus 5575extern "C" { 5576#endif 5577char nm_test_var; 5578void nm_test_func(){} 5579#ifdef __cplusplus 5580} 5581#endif 5582int main(){nm_test_var='a';nm_test_func();return(0);} 5583EOF 5584 5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5586 (eval $ac_compile) 2>&5 5587 ac_status=$? 5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5589 (exit $ac_status); }; then 5590 # Now try to grab the symbols. 5591 nlist=conftest.nm 5592 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5593 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5594 ac_status=$? 5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5596 (exit $ac_status); } && test -s "$nlist"; then 5597 # Try sorting and uniquifying the output. 5598 if sort "$nlist" | uniq > "$nlist"T; then 5599 mv -f "$nlist"T "$nlist" 5600 else 5601 rm -f "$nlist"T 5602 fi 5603 5604 # Make sure that we snagged all the symbols we need. 5605 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5606 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5607 cat <<EOF > conftest.$ac_ext 5608#ifdef __cplusplus 5609extern "C" { 5610#endif 5611 5612EOF 5613 # Now generate the symbol file. 5614 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5615 5616 cat <<EOF >> conftest.$ac_ext 5617#if defined (__STDC__) && __STDC__ 5618# define lt_ptr_t void * 5619#else 5620# define lt_ptr_t char * 5621# define const 5622#endif 5623 5624/* The mapping between symbol names and symbols. */ 5625const struct { 5626 const char *name; 5627 lt_ptr_t address; 5628} 5629lt_preloaded_symbols[] = 5630{ 5631EOF 5632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5633 cat <<\EOF >> conftest.$ac_ext 5634 {0, (lt_ptr_t) 0} 5635}; 5636 5637#ifdef __cplusplus 5638} 5639#endif 5640EOF 5641 # Now try linking the two files. 5642 mv conftest.$ac_objext conftstm.$ac_objext 5643 lt_save_LIBS="$LIBS" 5644 lt_save_CFLAGS="$CFLAGS" 5645 LIBS="conftstm.$ac_objext" 5646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5648 (eval $ac_link) 2>&5 5649 ac_status=$? 5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5651 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5652 pipe_works=yes 5653 fi 5654 LIBS="$lt_save_LIBS" 5655 CFLAGS="$lt_save_CFLAGS" 5656 else 5657 echo "cannot find nm_test_func in $nlist" >&5 5658 fi 5659 else 5660 echo "cannot find nm_test_var in $nlist" >&5 5661 fi 5662 else 5663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5664 fi 5665 else 5666 echo "$progname: failed program was:" >&5 5667 cat conftest.$ac_ext >&5 5668 fi 5669 rm -f conftest* conftst* 5670 5671 # Do not use the global_symbol_pipe unless it works. 5672 if test "$pipe_works" = yes; then 5673 break 5674 else 5675 lt_cv_sys_global_symbol_pipe= 5676 fi 5677done 5678 5679fi 5680 5681if test -z "$lt_cv_sys_global_symbol_pipe"; then 5682 lt_cv_sys_global_symbol_to_cdecl= 5683fi 5684if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5685 echo "$as_me:$LINENO: result: failed" >&5 5686echo "${ECHO_T}failed" >&6 5687else 5688 echo "$as_me:$LINENO: result: ok" >&5 5689echo "${ECHO_T}ok" >&6 5690fi 5691 5692echo "$as_me:$LINENO: checking for objdir" >&5 5693echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5694if test "${lt_cv_objdir+set}" = set; then 5695 echo $ECHO_N "(cached) $ECHO_C" >&6 5696else 5697 rm -f .libs 2>/dev/null 5698mkdir .libs 2>/dev/null 5699if test -d .libs; then 5700 lt_cv_objdir=.libs 5701else 5702 # MS-DOS does not allow filenames that begin with a dot. 5703 lt_cv_objdir=_libs 5704fi 5705rmdir .libs 2>/dev/null 5706fi 5707echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5708echo "${ECHO_T}$lt_cv_objdir" >&6 5709objdir=$lt_cv_objdir 5710 5711 5712 5713 5714 5715case $host_os in 5716aix3*) 5717 # AIX sometimes has problems with the GCC collect2 program. For some 5718 # reason, if we set the COLLECT_NAMES environment variable, the problems 5719 # vanish in a puff of smoke. 5720 if test "X${COLLECT_NAMES+set}" != Xset; then 5721 COLLECT_NAMES= 5722 export COLLECT_NAMES 5723 fi 5724 ;; 5725esac 5726 5727# Sed substitution that helps us do robust quoting. It backslashifies 5728# metacharacters that are still active within double-quoted strings. 5729Xsed='sed -e 1s/^X//' 5730sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5731 5732# Same as above, but do not quote variable references. 5733double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5734 5735# Sed substitution to delay expansion of an escaped shell variable in a 5736# double_quote_subst'ed string. 5737delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5738 5739# Sed substitution to avoid accidental globbing in evaled expressions 5740no_glob_subst='s/\*/\\\*/g' 5741 5742# Constants: 5743rm="rm -f" 5744 5745# Global variables: 5746default_ofile=libtool 5747can_build_shared=yes 5748 5749# All known linkers require a `.a' archive for static linking (except M$VC, 5750# which needs '.lib'). 5751libext=a 5752ltmain="$ac_aux_dir/ltmain.sh" 5753ofile="$default_ofile" 5754with_gnu_ld="$lt_cv_prog_gnu_ld" 5755 5756if test -n "$ac_tool_prefix"; then 5757 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5758set dummy ${ac_tool_prefix}ar; ac_word=$2 5759echo "$as_me:$LINENO: checking for $ac_word" >&5 5760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5761if test "${ac_cv_prog_AR+set}" = set; then 5762 echo $ECHO_N "(cached) $ECHO_C" >&6 5763else 5764 if test -n "$AR"; then 5765 ac_cv_prog_AR="$AR" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5774 ac_cv_prog_AR="${ac_tool_prefix}ar" 5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779done 5780 5781fi 5782fi 5783AR=$ac_cv_prog_AR 5784if test -n "$AR"; then 5785 echo "$as_me:$LINENO: result: $AR" >&5 5786echo "${ECHO_T}$AR" >&6 5787else 5788 echo "$as_me:$LINENO: result: no" >&5 5789echo "${ECHO_T}no" >&6 5790fi 5791 5792fi 5793if test -z "$ac_cv_prog_AR"; then 5794 ac_ct_AR=$AR 5795 # Extract the first word of "ar", so it can be a program name with args. 5796set dummy ar; ac_word=$2 5797echo "$as_me:$LINENO: checking for $ac_word" >&5 5798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5799if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5800 echo $ECHO_N "(cached) $ECHO_C" >&6 5801else 5802 if test -n "$ac_ct_AR"; then 5803 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5804else 5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5806for as_dir in $PATH 5807do 5808 IFS=$as_save_IFS 5809 test -z "$as_dir" && as_dir=. 5810 for ac_exec_ext in '' $ac_executable_extensions; do 5811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5812 ac_cv_prog_ac_ct_AR="ar" 5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5814 break 2 5815 fi 5816done 5817done 5818 5819 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5820fi 5821fi 5822ac_ct_AR=$ac_cv_prog_ac_ct_AR 5823if test -n "$ac_ct_AR"; then 5824 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5825echo "${ECHO_T}$ac_ct_AR" >&6 5826else 5827 echo "$as_me:$LINENO: result: no" >&5 5828echo "${ECHO_T}no" >&6 5829fi 5830 5831 AR=$ac_ct_AR 5832else 5833 AR="$ac_cv_prog_AR" 5834fi 5835 5836if test -n "$ac_tool_prefix"; then 5837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5838set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5839echo "$as_me:$LINENO: checking for $ac_word" >&5 5840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5841if test "${ac_cv_prog_RANLIB+set}" = set; then 5842 echo $ECHO_N "(cached) $ECHO_C" >&6 5843else 5844 if test -n "$RANLIB"; then 5845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5846else 5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5848for as_dir in $PATH 5849do 5850 IFS=$as_save_IFS 5851 test -z "$as_dir" && as_dir=. 5852 for ac_exec_ext in '' $ac_executable_extensions; do 5853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5856 break 2 5857 fi 5858done 5859done 5860 5861fi 5862fi 5863RANLIB=$ac_cv_prog_RANLIB 5864if test -n "$RANLIB"; then 5865 echo "$as_me:$LINENO: result: $RANLIB" >&5 5866echo "${ECHO_T}$RANLIB" >&6 5867else 5868 echo "$as_me:$LINENO: result: no" >&5 5869echo "${ECHO_T}no" >&6 5870fi 5871 5872fi 5873if test -z "$ac_cv_prog_RANLIB"; then 5874 ac_ct_RANLIB=$RANLIB 5875 # Extract the first word of "ranlib", so it can be a program name with args. 5876set dummy ranlib; ac_word=$2 5877echo "$as_me:$LINENO: checking for $ac_word" >&5 5878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5879if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5880 echo $ECHO_N "(cached) $ECHO_C" >&6 5881else 5882 if test -n "$ac_ct_RANLIB"; then 5883 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5884else 5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5886for as_dir in $PATH 5887do 5888 IFS=$as_save_IFS 5889 test -z "$as_dir" && as_dir=. 5890 for ac_exec_ext in '' $ac_executable_extensions; do 5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5892 ac_cv_prog_ac_ct_RANLIB="ranlib" 5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5894 break 2 5895 fi 5896done 5897done 5898 5899 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5900fi 5901fi 5902ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5903if test -n "$ac_ct_RANLIB"; then 5904 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5905echo "${ECHO_T}$ac_ct_RANLIB" >&6 5906else 5907 echo "$as_me:$LINENO: result: no" >&5 5908echo "${ECHO_T}no" >&6 5909fi 5910 5911 RANLIB=$ac_ct_RANLIB 5912else 5913 RANLIB="$ac_cv_prog_RANLIB" 5914fi 5915 5916if test -n "$ac_tool_prefix"; then 5917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5918set dummy ${ac_tool_prefix}strip; ac_word=$2 5919echo "$as_me:$LINENO: checking for $ac_word" >&5 5920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5921if test "${ac_cv_prog_STRIP+set}" = set; then 5922 echo $ECHO_N "(cached) $ECHO_C" >&6 5923else 5924 if test -n "$STRIP"; then 5925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5926else 5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5928for as_dir in $PATH 5929do 5930 IFS=$as_save_IFS 5931 test -z "$as_dir" && as_dir=. 5932 for ac_exec_ext in '' $ac_executable_extensions; do 5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5934 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5936 break 2 5937 fi 5938done 5939done 5940 5941fi 5942fi 5943STRIP=$ac_cv_prog_STRIP 5944if test -n "$STRIP"; then 5945 echo "$as_me:$LINENO: result: $STRIP" >&5 5946echo "${ECHO_T}$STRIP" >&6 5947else 5948 echo "$as_me:$LINENO: result: no" >&5 5949echo "${ECHO_T}no" >&6 5950fi 5951 5952fi 5953if test -z "$ac_cv_prog_STRIP"; then 5954 ac_ct_STRIP=$STRIP 5955 # Extract the first word of "strip", so it can be a program name with args. 5956set dummy strip; ac_word=$2 5957echo "$as_me:$LINENO: checking for $ac_word" >&5 5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5959if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5960 echo $ECHO_N "(cached) $ECHO_C" >&6 5961else 5962 if test -n "$ac_ct_STRIP"; then 5963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5964else 5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5966for as_dir in $PATH 5967do 5968 IFS=$as_save_IFS 5969 test -z "$as_dir" && as_dir=. 5970 for ac_exec_ext in '' $ac_executable_extensions; do 5971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5972 ac_cv_prog_ac_ct_STRIP="strip" 5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5974 break 2 5975 fi 5976done 5977done 5978 5979 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5980fi 5981fi 5982ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5983if test -n "$ac_ct_STRIP"; then 5984 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5985echo "${ECHO_T}$ac_ct_STRIP" >&6 5986else 5987 echo "$as_me:$LINENO: result: no" >&5 5988echo "${ECHO_T}no" >&6 5989fi 5990 5991 STRIP=$ac_ct_STRIP 5992else 5993 STRIP="$ac_cv_prog_STRIP" 5994fi 5995 5996 5997old_CC="$CC" 5998old_CFLAGS="$CFLAGS" 5999 6000# Set sane defaults for various variables 6001test -z "$AR" && AR=ar 6002test -z "$AR_FLAGS" && AR_FLAGS=cru 6003test -z "$AS" && AS=as 6004test -z "$CC" && CC=cc 6005test -z "$LTCC" && LTCC=$CC 6006test -z "$DLLTOOL" && DLLTOOL=dlltool 6007test -z "$LD" && LD=ld 6008test -z "$LN_S" && LN_S="ln -s" 6009test -z "$MAGIC_CMD" && MAGIC_CMD=file 6010test -z "$NM" && NM=nm 6011test -z "$SED" && SED=sed 6012test -z "$OBJDUMP" && OBJDUMP=objdump 6013test -z "$RANLIB" && RANLIB=: 6014test -z "$STRIP" && STRIP=: 6015test -z "$ac_objext" && ac_objext=o 6016 6017# Determine commands to create old-style static archives. 6018old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6019old_postinstall_cmds='chmod 644 $oldlib' 6020old_postuninstall_cmds= 6021 6022if test -n "$RANLIB"; then 6023 case $host_os in 6024 openbsd*) 6025 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6026 ;; 6027 *) 6028 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6029 ;; 6030 esac 6031 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6032fi 6033 6034for cc_temp in $compiler""; do 6035 case $cc_temp in 6036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6038 \-*) ;; 6039 *) break;; 6040 esac 6041done 6042cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6043 6044 6045# Only perform the check for file, if the check method requires it 6046case $deplibs_check_method in 6047file_magic*) 6048 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6049 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6050echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6051if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6052 echo $ECHO_N "(cached) $ECHO_C" >&6 6053else 6054 case $MAGIC_CMD in 6055[\\/*] | ?:[\\/]*) 6056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6057 ;; 6058*) 6059 lt_save_MAGIC_CMD="$MAGIC_CMD" 6060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6062 for ac_dir in $ac_dummy; do 6063 IFS="$lt_save_ifs" 6064 test -z "$ac_dir" && ac_dir=. 6065 if test -f $ac_dir/${ac_tool_prefix}file; then 6066 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6067 if test -n "$file_magic_test_file"; then 6068 case $deplibs_check_method in 6069 "file_magic "*) 6070 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6073 $EGREP "$file_magic_regex" > /dev/null; then 6074 : 6075 else 6076 cat <<EOF 1>&2 6077 6078*** Warning: the command libtool uses to detect shared libraries, 6079*** $file_magic_cmd, produces output that libtool cannot recognize. 6080*** The result is that libtool may fail to recognize shared libraries 6081*** as such. This will affect the creation of libtool libraries that 6082*** depend on shared libraries, but programs linked with such libtool 6083*** libraries will work regardless of this problem. Nevertheless, you 6084*** may want to report the problem to your system manager and/or to 6085*** bug-libtool@gnu.org 6086 6087EOF 6088 fi ;; 6089 esac 6090 fi 6091 break 6092 fi 6093 done 6094 IFS="$lt_save_ifs" 6095 MAGIC_CMD="$lt_save_MAGIC_CMD" 6096 ;; 6097esac 6098fi 6099 6100MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6101if test -n "$MAGIC_CMD"; then 6102 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6103echo "${ECHO_T}$MAGIC_CMD" >&6 6104else 6105 echo "$as_me:$LINENO: result: no" >&5 6106echo "${ECHO_T}no" >&6 6107fi 6108 6109if test -z "$lt_cv_path_MAGIC_CMD"; then 6110 if test -n "$ac_tool_prefix"; then 6111 echo "$as_me:$LINENO: checking for file" >&5 6112echo $ECHO_N "checking for file... $ECHO_C" >&6 6113if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6114 echo $ECHO_N "(cached) $ECHO_C" >&6 6115else 6116 case $MAGIC_CMD in 6117[\\/*] | ?:[\\/]*) 6118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6119 ;; 6120*) 6121 lt_save_MAGIC_CMD="$MAGIC_CMD" 6122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6123 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6124 for ac_dir in $ac_dummy; do 6125 IFS="$lt_save_ifs" 6126 test -z "$ac_dir" && ac_dir=. 6127 if test -f $ac_dir/file; then 6128 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6129 if test -n "$file_magic_test_file"; then 6130 case $deplibs_check_method in 6131 "file_magic "*) 6132 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6135 $EGREP "$file_magic_regex" > /dev/null; then 6136 : 6137 else 6138 cat <<EOF 1>&2 6139 6140*** Warning: the command libtool uses to detect shared libraries, 6141*** $file_magic_cmd, produces output that libtool cannot recognize. 6142*** The result is that libtool may fail to recognize shared libraries 6143*** as such. This will affect the creation of libtool libraries that 6144*** depend on shared libraries, but programs linked with such libtool 6145*** libraries will work regardless of this problem. Nevertheless, you 6146*** may want to report the problem to your system manager and/or to 6147*** bug-libtool@gnu.org 6148 6149EOF 6150 fi ;; 6151 esac 6152 fi 6153 break 6154 fi 6155 done 6156 IFS="$lt_save_ifs" 6157 MAGIC_CMD="$lt_save_MAGIC_CMD" 6158 ;; 6159esac 6160fi 6161 6162MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6163if test -n "$MAGIC_CMD"; then 6164 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6165echo "${ECHO_T}$MAGIC_CMD" >&6 6166else 6167 echo "$as_me:$LINENO: result: no" >&5 6168echo "${ECHO_T}no" >&6 6169fi 6170 6171 else 6172 MAGIC_CMD=: 6173 fi 6174fi 6175 6176 fi 6177 ;; 6178esac 6179 6180enable_dlopen=no 6181enable_win32_dll=no 6182 6183# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6184if test "${enable_libtool_lock+set}" = set; then 6185 enableval="$enable_libtool_lock" 6186 6187fi; 6188test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6189 6190 6191# Check whether --with-pic or --without-pic was given. 6192if test "${with_pic+set}" = set; then 6193 withval="$with_pic" 6194 pic_mode="$withval" 6195else 6196 pic_mode=default 6197fi; 6198test -z "$pic_mode" && pic_mode=default 6199 6200# Use C for the default configuration in the libtool script 6201tagname= 6202lt_save_CC="$CC" 6203ac_ext=c 6204ac_cpp='$CPP $CPPFLAGS' 6205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6207ac_compiler_gnu=$ac_cv_c_compiler_gnu 6208 6209 6210# Source file extension for C test sources. 6211ac_ext=c 6212 6213# Object file extension for compiled C test sources. 6214objext=o 6215objext=$objext 6216 6217# Code to be used in simple compile tests 6218lt_simple_compile_test_code="int some_variable = 0;\n" 6219 6220# Code to be used in simple link tests 6221lt_simple_link_test_code='int main(){return(0);}\n' 6222 6223 6224# If no C compiler was specified, use CC. 6225LTCC=${LTCC-"$CC"} 6226 6227# Allow CC to be a program name with arguments. 6228compiler=$CC 6229 6230 6231# save warnings/boilerplate of simple test code 6232ac_outfile=conftest.$ac_objext 6233printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6234eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6235_lt_compiler_boilerplate=`cat conftest.err` 6236$rm conftest* 6237 6238ac_outfile=conftest.$ac_objext 6239printf "$lt_simple_link_test_code" >conftest.$ac_ext 6240eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6241_lt_linker_boilerplate=`cat conftest.err` 6242$rm conftest* 6243 6244 6245# 6246# Check for any special shared library compilation flags. 6247# 6248lt_prog_cc_shlib= 6249if test "$GCC" = no; then 6250 case $host_os in 6251 sco3.2v5*) 6252 lt_prog_cc_shlib='-belf' 6253 ;; 6254 esac 6255fi 6256if test -n "$lt_prog_cc_shlib"; then 6257 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6258echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6259 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6260 else 6261 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6262echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6263 lt_cv_prog_cc_can_build_shared=no 6264 fi 6265fi 6266 6267 6268# 6269# Check to make sure the static flag actually works. 6270# 6271echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6272echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6273if test "${lt_prog_compiler_static_works+set}" = set; then 6274 echo $ECHO_N "(cached) $ECHO_C" >&6 6275else 6276 lt_prog_compiler_static_works=no 6277 save_LDFLAGS="$LDFLAGS" 6278 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6279 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6281 # The compiler can only warn and ignore the option if not recognized 6282 # So say no if there are warnings 6283 if test -s conftest.err; then 6284 # Append any errors to the config.log. 6285 cat conftest.err 1>&5 6286 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6287 $SED '/^$/d' conftest.err >conftest.er2 6288 if diff conftest.exp conftest.er2 >/dev/null; then 6289 lt_prog_compiler_static_works=yes 6290 fi 6291 else 6292 lt_prog_compiler_static_works=yes 6293 fi 6294 fi 6295 $rm conftest* 6296 LDFLAGS="$save_LDFLAGS" 6297 6298fi 6299echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6300echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6301 6302if test x"$lt_prog_compiler_static_works" = xyes; then 6303 : 6304else 6305 lt_prog_compiler_static= 6306fi 6307 6308 6309 6310 6311lt_prog_compiler_no_builtin_flag= 6312 6313if test "$GCC" = yes; then 6314 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6315 6316 6317echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6318echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6319if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6320 echo $ECHO_N "(cached) $ECHO_C" >&6 6321else 6322 lt_cv_prog_compiler_rtti_exceptions=no 6323 ac_outfile=conftest.$ac_objext 6324 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6325 lt_compiler_flag="-fno-rtti -fno-exceptions" 6326 # Insert the option either (1) after the last *FLAGS variable, or 6327 # (2) before a word containing "conftest.", or (3) at the end. 6328 # Note that $ac_compile itself does not contain backslashes and begins 6329 # with a dollar sign (not a hyphen), so the echo should work correctly. 6330 # The option is referenced via a variable to avoid confusing sed. 6331 lt_compile=`echo "$ac_compile" | $SED \ 6332 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6334 -e 's:$: $lt_compiler_flag:'` 6335 (eval echo "\"\$as_me:6335: $lt_compile\"" >&5) 6336 (eval "$lt_compile" 2>conftest.err) 6337 ac_status=$? 6338 cat conftest.err >&5 6339 echo "$as_me:6339: \$? = $ac_status" >&5 6340 if (exit $ac_status) && test -s "$ac_outfile"; then 6341 # The compiler can only warn and ignore the option if not recognized 6342 # So say no if there are warnings other than the usual output. 6343 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6344 $SED '/^$/d' conftest.err >conftest.er2 6345 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6346 lt_cv_prog_compiler_rtti_exceptions=yes 6347 fi 6348 fi 6349 $rm conftest* 6350 6351fi 6352echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6353echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6354 6355if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6356 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6357else 6358 : 6359fi 6360 6361fi 6362 6363lt_prog_compiler_wl= 6364lt_prog_compiler_pic= 6365lt_prog_compiler_static= 6366 6367echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6368echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6369 6370 if test "$GCC" = yes; then 6371 lt_prog_compiler_wl='-Wl,' 6372 lt_prog_compiler_static='-static' 6373 6374 case $host_os in 6375 aix*) 6376 # All AIX code is PIC. 6377 if test "$host_cpu" = ia64; then 6378 # AIX 5 now supports IA64 processor 6379 lt_prog_compiler_static='-Bstatic' 6380 fi 6381 ;; 6382 6383 amigaos*) 6384 # FIXME: we need at least 68020 code to build shared libraries, but 6385 # adding the `-m68020' flag to GCC prevents building anything better, 6386 # like `-m68040'. 6387 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6388 ;; 6389 6390 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6391 # PIC is the default for these OSes. 6392 ;; 6393 6394 mingw* | pw32* | os2*) 6395 # This hack is so that the source file can tell whether it is being 6396 # built for inclusion in a dll (and should export symbols for example). 6397 lt_prog_compiler_pic='-DDLL_EXPORT' 6398 ;; 6399 6400 darwin* | rhapsody*) 6401 # PIC is the default on this platform 6402 # Common symbols not allowed in MH_DYLIB files 6403 lt_prog_compiler_pic='-fno-common' 6404 ;; 6405 6406 msdosdjgpp*) 6407 # Just because we use GCC doesn't mean we suddenly get shared libraries 6408 # on systems that don't support them. 6409 lt_prog_compiler_can_build_shared=no 6410 enable_shared=no 6411 ;; 6412 6413 sysv4*MP*) 6414 if test -d /usr/nec; then 6415 lt_prog_compiler_pic=-Kconform_pic 6416 fi 6417 ;; 6418 6419 hpux*) 6420 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6421 # not for PA HP-UX. 6422 case "$host_cpu" in 6423 hppa*64*|ia64*) 6424 # +Z the default 6425 ;; 6426 *) 6427 lt_prog_compiler_pic='-fPIC' 6428 ;; 6429 esac 6430 ;; 6431 6432 *) 6433 lt_prog_compiler_pic='-fPIC' 6434 ;; 6435 esac 6436 else 6437 # PORTME Check for flag to pass linker flags through the system compiler. 6438 case $host_os in 6439 aix*) 6440 lt_prog_compiler_wl='-Wl,' 6441 if test "$host_cpu" = ia64; then 6442 # AIX 5 now supports IA64 processor 6443 lt_prog_compiler_static='-Bstatic' 6444 else 6445 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6446 fi 6447 ;; 6448 darwin*) 6449 # PIC is the default on this platform 6450 # Common symbols not allowed in MH_DYLIB files 6451 case $cc_basename in 6452 xlc*) 6453 lt_prog_compiler_pic='-qnocommon' 6454 lt_prog_compiler_wl='-Wl,' 6455 ;; 6456 esac 6457 ;; 6458 6459 mingw* | pw32* | os2*) 6460 # This hack is so that the source file can tell whether it is being 6461 # built for inclusion in a dll (and should export symbols for example). 6462 lt_prog_compiler_pic='-DDLL_EXPORT' 6463 ;; 6464 6465 hpux9* | hpux10* | hpux11*) 6466 lt_prog_compiler_wl='-Wl,' 6467 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6468 # not for PA HP-UX. 6469 case "$host_cpu" in 6470 hppa*64*|ia64*) 6471 # +Z the default 6472 ;; 6473 *) 6474 lt_prog_compiler_pic='+Z' 6475 ;; 6476 esac 6477 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6478 lt_prog_compiler_static='${wl}-a ${wl}archive' 6479 ;; 6480 6481 irix5* | irix6* | nonstopux*) 6482 lt_prog_compiler_wl='-Wl,' 6483 # PIC (with -KPIC) is the default. 6484 lt_prog_compiler_static='-non_shared' 6485 ;; 6486 6487 newsos6) 6488 lt_prog_compiler_pic='-KPIC' 6489 lt_prog_compiler_static='-Bstatic' 6490 ;; 6491 6492 linux*) 6493 case $cc_basename in 6494 icc* | ecc*) 6495 lt_prog_compiler_wl='-Wl,' 6496 lt_prog_compiler_pic='-KPIC' 6497 lt_prog_compiler_static='-static' 6498 ;; 6499 pgcc* | pgf77* | pgf90*) 6500 # Portland Group compilers (*not* the Pentium gcc compiler, 6501 # which looks to be a dead project) 6502 lt_prog_compiler_wl='-Wl,' 6503 lt_prog_compiler_pic='-fpic' 6504 lt_prog_compiler_static='-static' 6505 ;; 6506 ccc*) 6507 lt_prog_compiler_wl='-Wl,' 6508 # All Alpha code is PIC. 6509 lt_prog_compiler_static='-non_shared' 6510 ;; 6511 esac 6512 ;; 6513 6514 osf3* | osf4* | osf5*) 6515 lt_prog_compiler_wl='-Wl,' 6516 # All OSF/1 code is PIC. 6517 lt_prog_compiler_static='-non_shared' 6518 ;; 6519 6520 sco3.2v5*) 6521 lt_prog_compiler_pic='-Kpic' 6522 lt_prog_compiler_static='-dn' 6523 ;; 6524 6525 solaris*) 6526 lt_prog_compiler_pic='-KPIC' 6527 lt_prog_compiler_static='-Bstatic' 6528 case $cc_basename in 6529 f77* | f90* | f95*) 6530 lt_prog_compiler_wl='-Qoption ld ';; 6531 *) 6532 lt_prog_compiler_wl='-Wl,';; 6533 esac 6534 ;; 6535 6536 sunos4*) 6537 lt_prog_compiler_wl='-Qoption ld ' 6538 lt_prog_compiler_pic='-PIC' 6539 lt_prog_compiler_static='-Bstatic' 6540 ;; 6541 6542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6543 lt_prog_compiler_wl='-Wl,' 6544 lt_prog_compiler_pic='-KPIC' 6545 lt_prog_compiler_static='-Bstatic' 6546 ;; 6547 6548 sysv4*MP*) 6549 if test -d /usr/nec ;then 6550 lt_prog_compiler_pic='-Kconform_pic' 6551 lt_prog_compiler_static='-Bstatic' 6552 fi 6553 ;; 6554 6555 unicos*) 6556 lt_prog_compiler_wl='-Wl,' 6557 lt_prog_compiler_can_build_shared=no 6558 ;; 6559 6560 uts4*) 6561 lt_prog_compiler_pic='-pic' 6562 lt_prog_compiler_static='-Bstatic' 6563 ;; 6564 6565 *) 6566 lt_prog_compiler_can_build_shared=no 6567 ;; 6568 esac 6569 fi 6570 6571echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6572echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6573 6574# 6575# Check to make sure the PIC flag actually works. 6576# 6577if test -n "$lt_prog_compiler_pic"; then 6578 6579echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6580echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6581if test "${lt_prog_compiler_pic_works+set}" = set; then 6582 echo $ECHO_N "(cached) $ECHO_C" >&6 6583else 6584 lt_prog_compiler_pic_works=no 6585 ac_outfile=conftest.$ac_objext 6586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6588 # Insert the option either (1) after the last *FLAGS variable, or 6589 # (2) before a word containing "conftest.", or (3) at the end. 6590 # Note that $ac_compile itself does not contain backslashes and begins 6591 # with a dollar sign (not a hyphen), so the echo should work correctly. 6592 # The option is referenced via a variable to avoid confusing sed. 6593 lt_compile=`echo "$ac_compile" | $SED \ 6594 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6596 -e 's:$: $lt_compiler_flag:'` 6597 (eval echo "\"\$as_me:6597: $lt_compile\"" >&5) 6598 (eval "$lt_compile" 2>conftest.err) 6599 ac_status=$? 6600 cat conftest.err >&5 6601 echo "$as_me:6601: \$? = $ac_status" >&5 6602 if (exit $ac_status) && test -s "$ac_outfile"; then 6603 # The compiler can only warn and ignore the option if not recognized 6604 # So say no if there are warnings other than the usual output. 6605 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6606 $SED '/^$/d' conftest.err >conftest.er2 6607 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6608 lt_prog_compiler_pic_works=yes 6609 fi 6610 fi 6611 $rm conftest* 6612 6613fi 6614echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6615echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6616 6617if test x"$lt_prog_compiler_pic_works" = xyes; then 6618 case $lt_prog_compiler_pic in 6619 "" | " "*) ;; 6620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6621 esac 6622else 6623 lt_prog_compiler_pic= 6624 lt_prog_compiler_can_build_shared=no 6625fi 6626 6627fi 6628case "$host_os" in 6629 # For platforms which do not support PIC, -DPIC is meaningless: 6630 *djgpp*) 6631 lt_prog_compiler_pic= 6632 ;; 6633 *) 6634 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6635 ;; 6636esac 6637 6638echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6639echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6640if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6641 echo $ECHO_N "(cached) $ECHO_C" >&6 6642else 6643 lt_cv_prog_compiler_c_o=no 6644 $rm -r conftest 2>/dev/null 6645 mkdir conftest 6646 cd conftest 6647 mkdir out 6648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6649 6650 lt_compiler_flag="-o out/conftest2.$ac_objext" 6651 # Insert the option either (1) after the last *FLAGS variable, or 6652 # (2) before a word containing "conftest.", or (3) at the end. 6653 # Note that $ac_compile itself does not contain backslashes and begins 6654 # with a dollar sign (not a hyphen), so the echo should work correctly. 6655 lt_compile=`echo "$ac_compile" | $SED \ 6656 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6658 -e 's:$: $lt_compiler_flag:'` 6659 (eval echo "\"\$as_me:6659: $lt_compile\"" >&5) 6660 (eval "$lt_compile" 2>out/conftest.err) 6661 ac_status=$? 6662 cat out/conftest.err >&5 6663 echo "$as_me:6663: \$? = $ac_status" >&5 6664 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6665 then 6666 # The compiler can only warn and ignore the option if not recognized 6667 # So say no if there are warnings 6668 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 6669 $SED '/^$/d' out/conftest.err >out/conftest.er2 6670 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6671 lt_cv_prog_compiler_c_o=yes 6672 fi 6673 fi 6674 chmod u+w . 6675 $rm conftest* 6676 # SGI C++ compiler will create directory out/ii_files/ for 6677 # template instantiation 6678 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6679 $rm out/* && rmdir out 6680 cd .. 6681 rmdir conftest 6682 $rm conftest* 6683 6684fi 6685echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6686echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6687 6688 6689hard_links="nottested" 6690if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6691 # do not overwrite the value of need_locks provided by the user 6692 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6693echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6694 hard_links=yes 6695 $rm conftest* 6696 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6697 touch conftest.a 6698 ln conftest.a conftest.b 2>&5 || hard_links=no 6699 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6700 echo "$as_me:$LINENO: result: $hard_links" >&5 6701echo "${ECHO_T}$hard_links" >&6 6702 if test "$hard_links" = no; then 6703 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6704echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6705 need_locks=warn 6706 fi 6707else 6708 need_locks=no 6709fi 6710 6711echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6712echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6713 6714 runpath_var= 6715 allow_undefined_flag= 6716 enable_shared_with_static_runtimes=no 6717 archive_cmds= 6718 archive_expsym_cmds= 6719 old_archive_From_new_cmds= 6720 old_archive_from_expsyms_cmds= 6721 export_dynamic_flag_spec= 6722 whole_archive_flag_spec= 6723 thread_safe_flag_spec= 6724 hardcode_libdir_flag_spec= 6725 hardcode_libdir_flag_spec_ld= 6726 hardcode_libdir_separator= 6727 hardcode_direct=no 6728 hardcode_minus_L=no 6729 hardcode_shlibpath_var=unsupported 6730 link_all_deplibs=unknown 6731 hardcode_automatic=no 6732 module_cmds= 6733 module_expsym_cmds= 6734 always_export_symbols=no 6735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6736 # include_expsyms should be a list of space-separated symbols to be *always* 6737 # included in the symbol list 6738 include_expsyms= 6739 # exclude_expsyms can be an extended regexp of symbols to exclude 6740 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6741 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6742 # as well as any symbol that contains `d'. 6743 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6744 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6745 # platforms (ab)use it in PIC code, but their linkers get confused if 6746 # the symbol is explicitly referenced. Since portable code cannot 6747 # rely on this symbol name, it's probably fine to never include it in 6748 # preloaded symbol tables. 6749 extract_expsyms_cmds= 6750 # Just being paranoid about ensuring that cc_basename is set. 6751 for cc_temp in $compiler""; do 6752 case $cc_temp in 6753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6755 \-*) ;; 6756 *) break;; 6757 esac 6758done 6759cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6760 6761 case $host_os in 6762 cygwin* | mingw* | pw32*) 6763 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6764 # When not using gcc, we currently assume that we are using 6765 # Microsoft Visual C++. 6766 if test "$GCC" != yes; then 6767 with_gnu_ld=no 6768 fi 6769 ;; 6770 openbsd*) 6771 with_gnu_ld=no 6772 ;; 6773 esac 6774 6775 ld_shlibs=yes 6776 if test "$with_gnu_ld" = yes; then 6777 # If archive_cmds runs LD, not CC, wlarc should be empty 6778 wlarc='${wl}' 6779 6780 # Set some defaults for GNU ld with shared library support. These 6781 # are reset later if shared libraries are not supported. Putting them 6782 # here allows them to be overridden if necessary. 6783 runpath_var=LD_RUN_PATH 6784 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6785 export_dynamic_flag_spec='${wl}--export-dynamic' 6786 # ancient GNU ld didn't support --whole-archive et. al. 6787 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6788 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6789 else 6790 whole_archive_flag_spec= 6791 fi 6792 supports_anon_versioning=no 6793 case `$LD -v 2>/dev/null` in 6794 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6795 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6796 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6797 *\ 2.11.*) ;; # other 2.11 versions 6798 *) supports_anon_versioning=yes ;; 6799 esac 6800 6801 # See if GNU ld supports shared libraries. 6802 case $host_os in 6803 aix3* | aix4* | aix5*) 6804 # On AIX/PPC, the GNU linker is very broken 6805 if test "$host_cpu" != ia64; then 6806 ld_shlibs=no 6807 cat <<EOF 1>&2 6808 6809*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6810*** to be unable to reliably create shared libraries on AIX. 6811*** Therefore, libtool is disabling shared libraries support. If you 6812*** really care for shared libraries, you may want to modify your PATH 6813*** so that a non-GNU linker is found, and then restart. 6814 6815EOF 6816 fi 6817 ;; 6818 6819 amigaos*) 6820 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)' 6821 hardcode_libdir_flag_spec='-L$libdir' 6822 hardcode_minus_L=yes 6823 6824 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6825 # that the semantics of dynamic libraries on AmigaOS, at least up 6826 # to version 4, is to share data among multiple programs linked 6827 # with the same dynamic library. Since this doesn't match the 6828 # behavior of shared libraries on other platforms, we can't use 6829 # them. 6830 ld_shlibs=no 6831 ;; 6832 6833 beos*) 6834 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6835 allow_undefined_flag=unsupported 6836 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6837 # support --undefined. This deserves some investigation. FIXME 6838 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6839 else 6840 ld_shlibs=no 6841 fi 6842 ;; 6843 6844 cygwin* | mingw* | pw32*) 6845 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6846 # as there is no search path for DLLs. 6847 hardcode_libdir_flag_spec='-L$libdir' 6848 allow_undefined_flag=unsupported 6849 always_export_symbols=no 6850 enable_shared_with_static_runtimes=yes 6851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6852 6853 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6855 # If the export-symbols file already is a .def file (1st line 6856 # is EXPORTS), use it as is; otherwise, prepend... 6857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6858 cp $export_symbols $output_objdir/$soname.def; 6859 else 6860 echo EXPORTS > $output_objdir/$soname.def; 6861 cat $export_symbols >> $output_objdir/$soname.def; 6862 fi~ 6863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6864 else 6865 ld_shlibs=no 6866 fi 6867 ;; 6868 6869 linux*) 6870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6871 tmp_addflag= 6872 case $cc_basename,$host_cpu in 6873 pgcc*) # Portland Group C compiler 6874 whole_archive_flag_spec= 6875 ;; 6876 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 6877 whole_archive_flag_spec= 6878 tmp_addflag=' -fpic -Mnomain' ;; 6879 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6880 tmp_addflag=' -i_dynamic' ;; 6881 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6882 tmp_addflag=' -i_dynamic -nofor_main' ;; 6883 ifc* | ifort*) # Intel Fortran compiler 6884 tmp_addflag=' -nofor_main' ;; 6885 esac 6886 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6887 6888 if test $supports_anon_versioning = yes; then 6889 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6891 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6892 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6893 fi 6894 else 6895 ld_shlibs=no 6896 fi 6897 ;; 6898 6899 netbsd*) 6900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6901 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6902 wlarc= 6903 else 6904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6906 fi 6907 ;; 6908 6909 solaris* | sysv5*) 6910 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6911 ld_shlibs=no 6912 cat <<EOF 1>&2 6913 6914*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6915*** create shared libraries on Solaris systems. Therefore, libtool 6916*** is disabling shared libraries support. We urge you to upgrade GNU 6917*** binutils to release 2.9.1 or newer. Another option is to modify 6918*** your PATH or compiler configuration so that the native linker is 6919*** used, and then restart. 6920 6921EOF 6922 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6924 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6925 else 6926 ld_shlibs=no 6927 fi 6928 ;; 6929 6930 sunos4*) 6931 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6932 wlarc= 6933 hardcode_direct=yes 6934 hardcode_shlibpath_var=no 6935 ;; 6936 6937 *) 6938 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6941 else 6942 ld_shlibs=no 6943 fi 6944 ;; 6945 esac 6946 6947 if test "$ld_shlibs" = no; then 6948 runpath_var= 6949 hardcode_libdir_flag_spec= 6950 export_dynamic_flag_spec= 6951 whole_archive_flag_spec= 6952 fi 6953 else 6954 # PORTME fill in a description of your system's linker (not GNU ld) 6955 case $host_os in 6956 aix3*) 6957 allow_undefined_flag=unsupported 6958 always_export_symbols=yes 6959 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' 6960 # Note: this linker hardcodes the directories in LIBPATH if there 6961 # are no directories specified by -L. 6962 hardcode_minus_L=yes 6963 if test "$GCC" = yes && test -z "$link_static_flag"; then 6964 # Neither direct hardcoding nor static linking is supported with a 6965 # broken collect2. 6966 hardcode_direct=unsupported 6967 fi 6968 ;; 6969 6970 aix4* | aix5*) 6971 if test "$host_cpu" = ia64; then 6972 # On IA64, the linker does run time linking by default, so we don't 6973 # have to do anything special. 6974 aix_use_runtimelinking=no 6975 exp_sym_flag='-Bexport' 6976 no_entry_flag="" 6977 else 6978 # If we're using GNU nm, then we don't want the "-C" option. 6979 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6980 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6981 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' 6982 else 6983 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' 6984 fi 6985 aix_use_runtimelinking=no 6986 6987 # Test if we are trying to use run time linking or normal 6988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6989 # need to do runtime linking. 6990 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6991 for ld_flag in $LDFLAGS; do 6992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6993 aix_use_runtimelinking=yes 6994 break 6995 fi 6996 done 6997 esac 6998 6999 exp_sym_flag='-bexport' 7000 no_entry_flag='-bnoentry' 7001 fi 7002 7003 # When large executables or shared objects are built, AIX ld can 7004 # have problems creating the table of contents. If linking a library 7005 # or program results in "error TOC overflow" add -mminimal-toc to 7006 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7007 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7008 7009 archive_cmds='' 7010 hardcode_direct=yes 7011 hardcode_libdir_separator=':' 7012 link_all_deplibs=yes 7013 7014 if test "$GCC" = yes; then 7015 case $host_os in aix4.[012]|aix4.[012].*) 7016 # We only want to do this on AIX 4.2 and lower, the check 7017 # below for broken collect2 doesn't work under 4.3+ 7018 collect2name=`${CC} -print-prog-name=collect2` 7019 if test -f "$collect2name" && \ 7020 strings "$collect2name" | grep resolve_lib_name >/dev/null 7021 then 7022 # We have reworked collect2 7023 hardcode_direct=yes 7024 else 7025 # We have old collect2 7026 hardcode_direct=unsupported 7027 # It fails to find uninstalled libraries when the uninstalled 7028 # path is not listed in the libpath. Setting hardcode_minus_L 7029 # to unsupported forces relinking 7030 hardcode_minus_L=yes 7031 hardcode_libdir_flag_spec='-L$libdir' 7032 hardcode_libdir_separator= 7033 fi 7034 esac 7035 shared_flag='-shared' 7036 if test "$aix_use_runtimelinking" = yes; then 7037 shared_flag="$shared_flag "'${wl}-G' 7038 fi 7039 else 7040 # not using gcc 7041 if test "$host_cpu" = ia64; then 7042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7043 # chokes on -Wl,-G. The following line is correct: 7044 shared_flag='-G' 7045 else 7046 if test "$aix_use_runtimelinking" = yes; then 7047 shared_flag='${wl}-G' 7048 else 7049 shared_flag='${wl}-bM:SRE' 7050 fi 7051 fi 7052 fi 7053 7054 # It seems that -bexpall does not export symbols beginning with 7055 # underscore (_), so it is better to generate a list of symbols to export. 7056 always_export_symbols=yes 7057 if test "$aix_use_runtimelinking" = yes; then 7058 # Warning - without using the other runtime loading flags (-brtl), 7059 # -berok will link without error, but may produce a broken library. 7060 allow_undefined_flag='-berok' 7061 # Determine the default libpath from the value encoded in an empty executable. 7062 cat >conftest.$ac_ext <<_ACEOF 7063/* confdefs.h. */ 7064_ACEOF 7065cat confdefs.h >>conftest.$ac_ext 7066cat >>conftest.$ac_ext <<_ACEOF 7067/* end confdefs.h. */ 7068 7069int 7070main () 7071{ 7072 7073 ; 7074 return 0; 7075} 7076_ACEOF 7077rm -f conftest.$ac_objext conftest$ac_exeext 7078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7079 (eval $ac_link) 2>conftest.er1 7080 ac_status=$? 7081 grep -v '^ *+' conftest.er1 >conftest.err 7082 rm -f conftest.er1 7083 cat conftest.err >&5 7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7085 (exit $ac_status); } && 7086 { ac_try='test -z "$ac_c_werror_flag" 7087 || test ! -s conftest.err' 7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7089 (eval $ac_try) 2>&5 7090 ac_status=$? 7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7092 (exit $ac_status); }; } && 7093 { ac_try='test -s conftest$ac_exeext' 7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7095 (eval $ac_try) 2>&5 7096 ac_status=$? 7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7098 (exit $ac_status); }; }; then 7099 7100aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7101}'` 7102# Check for a 64-bit object if we didn't find anything. 7103if 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; } 7104}'`; fi 7105else 7106 echo "$as_me: failed program was:" >&5 7107sed 's/^/| /' conftest.$ac_ext >&5 7108 7109fi 7110rm -f conftest.err conftest.$ac_objext \ 7111 conftest$ac_exeext conftest.$ac_ext 7112if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7113 7114 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7115 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" 7116 else 7117 if test "$host_cpu" = ia64; then 7118 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7119 allow_undefined_flag="-z nodefs" 7120 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" 7121 else 7122 # Determine the default libpath from the value encoded in an empty executable. 7123 cat >conftest.$ac_ext <<_ACEOF 7124/* confdefs.h. */ 7125_ACEOF 7126cat confdefs.h >>conftest.$ac_ext 7127cat >>conftest.$ac_ext <<_ACEOF 7128/* end confdefs.h. */ 7129 7130int 7131main () 7132{ 7133 7134 ; 7135 return 0; 7136} 7137_ACEOF 7138rm -f conftest.$ac_objext conftest$ac_exeext 7139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7140 (eval $ac_link) 2>conftest.er1 7141 ac_status=$? 7142 grep -v '^ *+' conftest.er1 >conftest.err 7143 rm -f conftest.er1 7144 cat conftest.err >&5 7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7146 (exit $ac_status); } && 7147 { ac_try='test -z "$ac_c_werror_flag" 7148 || test ! -s conftest.err' 7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7150 (eval $ac_try) 2>&5 7151 ac_status=$? 7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7153 (exit $ac_status); }; } && 7154 { ac_try='test -s conftest$ac_exeext' 7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7156 (eval $ac_try) 2>&5 7157 ac_status=$? 7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7159 (exit $ac_status); }; }; then 7160 7161aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7162}'` 7163# Check for a 64-bit object if we didn't find anything. 7164if 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; } 7165}'`; fi 7166else 7167 echo "$as_me: failed program was:" >&5 7168sed 's/^/| /' conftest.$ac_ext >&5 7169 7170fi 7171rm -f conftest.err conftest.$ac_objext \ 7172 conftest$ac_exeext conftest.$ac_ext 7173if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7174 7175 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7176 # Warning - without using the other run time loading flags, 7177 # -berok will link without error, but may produce a broken library. 7178 no_undefined_flag=' ${wl}-bernotok' 7179 allow_undefined_flag=' ${wl}-berok' 7180 # -bexpall does not export symbols beginning with underscore (_) 7181 always_export_symbols=yes 7182 # Exported symbols can be pulled into shared objects from archives 7183 whole_archive_flag_spec=' ' 7184 archive_cmds_need_lc=yes 7185 # This is similar to how AIX traditionally builds it's shared libraries. 7186 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' 7187 fi 7188 fi 7189 ;; 7190 7191 amigaos*) 7192 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)' 7193 hardcode_libdir_flag_spec='-L$libdir' 7194 hardcode_minus_L=yes 7195 # see comment about different semantics on the GNU ld section 7196 ld_shlibs=no 7197 ;; 7198 7199 bsdi[45]*) 7200 export_dynamic_flag_spec=-rdynamic 7201 ;; 7202 7203 cygwin* | mingw* | pw32*) 7204 # When not using gcc, we currently assume that we are using 7205 # Microsoft Visual C++. 7206 # hardcode_libdir_flag_spec is actually meaningless, as there is 7207 # no search path for DLLs. 7208 hardcode_libdir_flag_spec=' ' 7209 allow_undefined_flag=unsupported 7210 # Tell ltmain to make .lib files, not .a files. 7211 libext=lib 7212 # Tell ltmain to make .dll files, not .so files. 7213 shrext_cmds=".dll" 7214 # FIXME: Setting linknames here is a bad hack. 7215 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7216 # The linker will automatically build a .lib file if we build a DLL. 7217 old_archive_From_new_cmds='true' 7218 # FIXME: Should let the user specify the lib program. 7219 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7220 fix_srcfile_path='`cygpath -w "$srcfile"`' 7221 enable_shared_with_static_runtimes=yes 7222 ;; 7223 7224 darwin* | rhapsody*) 7225 case "$host_os" in 7226 rhapsody* | darwin1.[012]) 7227 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7228 ;; 7229 *) # Darwin 1.3 on 7230 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7231 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7232 else 7233 case ${MACOSX_DEPLOYMENT_TARGET} in 7234 10.[012]) 7235 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7236 ;; 7237 10.*) 7238 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7239 ;; 7240 esac 7241 fi 7242 ;; 7243 esac 7244 archive_cmds_need_lc=no 7245 hardcode_direct=no 7246 hardcode_automatic=yes 7247 hardcode_shlibpath_var=unsupported 7248 whole_archive_flag_spec='' 7249 link_all_deplibs=yes 7250 if test "$GCC" = yes ; then 7251 output_verbose_link_cmd='echo' 7252 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7253 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7254 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7255 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}' 7256 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}' 7257 else 7258 case $cc_basename in 7259 xlc*) 7260 output_verbose_link_cmd='echo' 7261 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7262 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7263 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7264 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7265 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}' 7266 ;; 7267 *) 7268 ld_shlibs=no 7269 ;; 7270 esac 7271 fi 7272 ;; 7273 7274 dgux*) 7275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7276 hardcode_libdir_flag_spec='-L$libdir' 7277 hardcode_shlibpath_var=no 7278 ;; 7279 7280 freebsd1*) 7281 ld_shlibs=no 7282 ;; 7283 7284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7285 # support. Future versions do this automatically, but an explicit c++rt0.o 7286 # does not break anything, and helps significantly (at the cost of a little 7287 # extra space). 7288 freebsd2.2*) 7289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7290 hardcode_libdir_flag_spec='-R$libdir' 7291 hardcode_direct=yes 7292 hardcode_shlibpath_var=no 7293 ;; 7294 7295 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7296 freebsd2*) 7297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7298 hardcode_direct=yes 7299 hardcode_minus_L=yes 7300 hardcode_shlibpath_var=no 7301 ;; 7302 7303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7304 freebsd* | kfreebsd*-gnu | dragonfly*) 7305 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7306 hardcode_libdir_flag_spec='-R$libdir' 7307 hardcode_direct=yes 7308 hardcode_shlibpath_var=no 7309 ;; 7310 7311 hpux9*) 7312 if test "$GCC" = yes; then 7313 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' 7314 else 7315 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' 7316 fi 7317 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7318 hardcode_libdir_separator=: 7319 hardcode_direct=yes 7320 7321 # hardcode_minus_L: Not really in the search PATH, 7322 # but as the default location of the library. 7323 hardcode_minus_L=yes 7324 export_dynamic_flag_spec='${wl}-E' 7325 ;; 7326 7327 hpux10* | hpux11*) 7328 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7329 case "$host_cpu" in 7330 hppa*64*|ia64*) 7331 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7332 ;; 7333 *) 7334 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7335 ;; 7336 esac 7337 else 7338 case "$host_cpu" in 7339 hppa*64*|ia64*) 7340 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7341 ;; 7342 *) 7343 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7344 ;; 7345 esac 7346 fi 7347 if test "$with_gnu_ld" = no; then 7348 case "$host_cpu" in 7349 hppa*64*) 7350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7351 hardcode_libdir_flag_spec_ld='+b $libdir' 7352 hardcode_libdir_separator=: 7353 hardcode_direct=no 7354 hardcode_shlibpath_var=no 7355 ;; 7356 ia64*) 7357 hardcode_libdir_flag_spec='-L$libdir' 7358 hardcode_direct=no 7359 hardcode_shlibpath_var=no 7360 7361 # hardcode_minus_L: Not really in the search PATH, 7362 # but as the default location of the library. 7363 hardcode_minus_L=yes 7364 ;; 7365 *) 7366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7367 hardcode_libdir_separator=: 7368 hardcode_direct=yes 7369 export_dynamic_flag_spec='${wl}-E' 7370 7371 # hardcode_minus_L: Not really in the search PATH, 7372 # but as the default location of the library. 7373 hardcode_minus_L=yes 7374 ;; 7375 esac 7376 fi 7377 ;; 7378 7379 irix5* | irix6* | nonstopux*) 7380 if test "$GCC" = yes; then 7381 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' 7382 else 7383 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' 7384 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7385 fi 7386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7387 hardcode_libdir_separator=: 7388 link_all_deplibs=yes 7389 ;; 7390 7391 netbsd*) 7392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7394 else 7395 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7396 fi 7397 hardcode_libdir_flag_spec='-R$libdir' 7398 hardcode_direct=yes 7399 hardcode_shlibpath_var=no 7400 ;; 7401 7402 newsos6) 7403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7404 hardcode_direct=yes 7405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7406 hardcode_libdir_separator=: 7407 hardcode_shlibpath_var=no 7408 ;; 7409 7410 openbsd*) 7411 hardcode_direct=yes 7412 hardcode_shlibpath_var=no 7413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7415 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7417 export_dynamic_flag_spec='${wl}-E' 7418 else 7419 case $host_os in 7420 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7422 hardcode_libdir_flag_spec='-R$libdir' 7423 ;; 7424 *) 7425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7426 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7427 ;; 7428 esac 7429 fi 7430 ;; 7431 7432 os2*) 7433 hardcode_libdir_flag_spec='-L$libdir' 7434 hardcode_minus_L=yes 7435 allow_undefined_flag=unsupported 7436 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' 7437 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7438 ;; 7439 7440 osf3*) 7441 if test "$GCC" = yes; then 7442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7443 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' 7444 else 7445 allow_undefined_flag=' -expect_unresolved \*' 7446 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' 7447 fi 7448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7449 hardcode_libdir_separator=: 7450 ;; 7451 7452 osf4* | osf5*) # as osf3* with the addition of -msym flag 7453 if test "$GCC" = yes; then 7454 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7455 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' 7456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7457 else 7458 allow_undefined_flag=' -expect_unresolved \*' 7459 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' 7460 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7461 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 7462 7463 # Both c and cxx compiler support -rpath directly 7464 hardcode_libdir_flag_spec='-rpath $libdir' 7465 fi 7466 hardcode_libdir_separator=: 7467 ;; 7468 7469 sco3.2v5*) 7470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7471 hardcode_shlibpath_var=no 7472 export_dynamic_flag_spec='${wl}-Bexport' 7473 runpath_var=LD_RUN_PATH 7474 hardcode_runpath_var=yes 7475 ;; 7476 7477 solaris*) 7478 no_undefined_flag=' -z text' 7479 if test "$GCC" = yes; then 7480 wlarc='${wl}' 7481 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7482 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7483 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7484 else 7485 wlarc='' 7486 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7487 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7488 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7489 fi 7490 hardcode_libdir_flag_spec='-R$libdir' 7491 hardcode_shlibpath_var=no 7492 case $host_os in 7493 solaris2.[0-5] | solaris2.[0-5].*) ;; 7494 *) 7495 # The compiler driver will combine linker options so we 7496 # cannot just pass the convience library names through 7497 # without $wl, iff we do not link with $LD. 7498 # Luckily, gcc supports the same syntax we need for Sun Studio. 7499 # Supported since Solaris 2.6 (maybe 2.5.1?) 7500 case $wlarc in 7501 '') 7502 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7503 *) 7504 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 7505 esac ;; 7506 esac 7507 link_all_deplibs=yes 7508 ;; 7509 7510 sunos4*) 7511 if test "x$host_vendor" = xsequent; then 7512 # Use $CC to link under sequent, because it throws in some extra .o 7513 # files that make .init and .fini sections work. 7514 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7515 else 7516 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7517 fi 7518 hardcode_libdir_flag_spec='-L$libdir' 7519 hardcode_direct=yes 7520 hardcode_minus_L=yes 7521 hardcode_shlibpath_var=no 7522 ;; 7523 7524 sysv4) 7525 case $host_vendor in 7526 sni) 7527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7528 hardcode_direct=yes # is this really true??? 7529 ;; 7530 siemens) 7531 ## LD is ld it makes a PLAMLIB 7532 ## CC just makes a GrossModule. 7533 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7534 reload_cmds='$CC -r -o $output$reload_objs' 7535 hardcode_direct=no 7536 ;; 7537 motorola) 7538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7539 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7540 ;; 7541 esac 7542 runpath_var='LD_RUN_PATH' 7543 hardcode_shlibpath_var=no 7544 ;; 7545 7546 sysv4.3*) 7547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7548 hardcode_shlibpath_var=no 7549 export_dynamic_flag_spec='-Bexport' 7550 ;; 7551 7552 sysv4*MP*) 7553 if test -d /usr/nec; then 7554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7555 hardcode_shlibpath_var=no 7556 runpath_var=LD_RUN_PATH 7557 hardcode_runpath_var=yes 7558 ld_shlibs=yes 7559 fi 7560 ;; 7561 7562 sysv4.2uw2*) 7563 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7564 hardcode_direct=yes 7565 hardcode_minus_L=no 7566 hardcode_shlibpath_var=no 7567 hardcode_runpath_var=yes 7568 runpath_var=LD_RUN_PATH 7569 ;; 7570 7571 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7572 no_undefined_flag='${wl}-z ${wl}text' 7573 if test "$GCC" = yes; then 7574 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7575 else 7576 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7577 fi 7578 runpath_var='LD_RUN_PATH' 7579 hardcode_shlibpath_var=no 7580 ;; 7581 7582 sysv5*) 7583 no_undefined_flag=' -z text' 7584 # $CC -shared without GNU ld will not create a library from C++ 7585 # object files and a static libstdc++, better avoid it by now 7586 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7587 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7589 hardcode_libdir_flag_spec= 7590 hardcode_shlibpath_var=no 7591 runpath_var='LD_RUN_PATH' 7592 ;; 7593 7594 uts4*) 7595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7596 hardcode_libdir_flag_spec='-L$libdir' 7597 hardcode_shlibpath_var=no 7598 ;; 7599 7600 *) 7601 ld_shlibs=no 7602 ;; 7603 esac 7604 fi 7605 7606echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7607echo "${ECHO_T}$ld_shlibs" >&6 7608test "$ld_shlibs" = no && can_build_shared=no 7609 7610variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7611if test "$GCC" = yes; then 7612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7613fi 7614 7615# 7616# Do we need to explicitly link libc? 7617# 7618case "x$archive_cmds_need_lc" in 7619x|xyes) 7620 # Assume -lc should be added 7621 archive_cmds_need_lc=yes 7622 7623 if test "$enable_shared" = yes && test "$GCC" = yes; then 7624 case $archive_cmds in 7625 *'~'*) 7626 # FIXME: we may have to deal with multi-command sequences. 7627 ;; 7628 '$CC '*) 7629 # Test whether the compiler implicitly links with -lc since on some 7630 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7631 # to ld, don't add -lc before -lgcc. 7632 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7633echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7634 $rm conftest* 7635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7636 7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7638 (eval $ac_compile) 2>&5 7639 ac_status=$? 7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7641 (exit $ac_status); } 2>conftest.err; then 7642 soname=conftest 7643 lib=conftest 7644 libobjs=conftest.$ac_objext 7645 deplibs= 7646 wl=$lt_prog_compiler_wl 7647 compiler_flags=-v 7648 linker_flags=-v 7649 verstring= 7650 output_objdir=. 7651 libname=conftest 7652 lt_save_allow_undefined_flag=$allow_undefined_flag 7653 allow_undefined_flag= 7654 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7655 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7656 ac_status=$? 7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7658 (exit $ac_status); } 7659 then 7660 archive_cmds_need_lc=no 7661 else 7662 archive_cmds_need_lc=yes 7663 fi 7664 allow_undefined_flag=$lt_save_allow_undefined_flag 7665 else 7666 cat conftest.err 1>&5 7667 fi 7668 $rm conftest* 7669 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7670echo "${ECHO_T}$archive_cmds_need_lc" >&6 7671 ;; 7672 esac 7673 fi 7674 ;; 7675esac 7676 7677echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7678echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7679library_names_spec= 7680libname_spec='lib$name' 7681soname_spec= 7682shrext_cmds=".so" 7683postinstall_cmds= 7684postuninstall_cmds= 7685finish_cmds= 7686finish_eval= 7687shlibpath_var= 7688shlibpath_overrides_runpath=unknown 7689version_type=none 7690dynamic_linker="$host_os ld.so" 7691sys_lib_dlsearch_path_spec="/lib /usr/lib" 7692if test "$GCC" = yes; then 7693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7694 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7695 # if the path contains ";" then we assume it to be the separator 7696 # otherwise default to the standard path separator (i.e. ":") - it is 7697 # assumed that no part of a normal pathname contains ";" but that should 7698 # okay in the real world where ";" in dirpaths is itself problematic. 7699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7700 else 7701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7702 fi 7703else 7704 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7705fi 7706need_lib_prefix=unknown 7707hardcode_into_libs=no 7708 7709# when you set need_version to no, make sure it does not cause -set_version 7710# flags to be left without arguments 7711need_version=unknown 7712 7713case $host_os in 7714aix3*) 7715 version_type=linux 7716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7717 shlibpath_var=LIBPATH 7718 7719 # AIX 3 has no versioning support, so we append a major version to the name. 7720 soname_spec='${libname}${release}${shared_ext}$major' 7721 ;; 7722 7723aix4* | aix5*) 7724 version_type=linux 7725 need_lib_prefix=no 7726 need_version=no 7727 hardcode_into_libs=yes 7728 if test "$host_cpu" = ia64; then 7729 # AIX 5 supports IA64 7730 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7731 shlibpath_var=LD_LIBRARY_PATH 7732 else 7733 # With GCC up to 2.95.x, collect2 would create an import file 7734 # for dependence libraries. The import file would start with 7735 # the line `#! .'. This would cause the generated library to 7736 # depend on `.', always an invalid library. This was fixed in 7737 # development snapshots of GCC prior to 3.0. 7738 case $host_os in 7739 aix4 | aix4.[01] | aix4.[01].*) 7740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7741 echo ' yes ' 7742 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7743 : 7744 else 7745 can_build_shared=no 7746 fi 7747 ;; 7748 esac 7749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7750 # soname into executable. Probably we can add versioning support to 7751 # collect2, so additional links can be useful in future. 7752 if test "$aix_use_runtimelinking" = yes; then 7753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7754 # instead of lib<name>.a to let people know that these are not 7755 # typical AIX shared libraries. 7756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7757 else 7758 # We preserve .a as extension for shared libraries through AIX4.2 7759 # and later when we are not doing run time linking. 7760 library_names_spec='${libname}${release}.a $libname.a' 7761 soname_spec='${libname}${release}${shared_ext}$major' 7762 fi 7763 shlibpath_var=LIBPATH 7764 fi 7765 ;; 7766 7767amigaos*) 7768 library_names_spec='$libname.ixlibrary $libname.a' 7769 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7770 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' 7771 ;; 7772 7773beos*) 7774 library_names_spec='${libname}${shared_ext}' 7775 dynamic_linker="$host_os ld.so" 7776 shlibpath_var=LIBRARY_PATH 7777 ;; 7778 7779bsdi[45]*) 7780 version_type=linux 7781 need_version=no 7782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7783 soname_spec='${libname}${release}${shared_ext}$major' 7784 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7785 shlibpath_var=LD_LIBRARY_PATH 7786 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7787 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7788 # the default ld.so.conf also contains /usr/contrib/lib and 7789 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7790 # libtool to hard-code these into programs 7791 ;; 7792 7793cygwin* | mingw* | pw32*) 7794 version_type=windows 7795 shrext_cmds=".dll" 7796 need_version=no 7797 need_lib_prefix=no 7798 7799 case $GCC,$host_os in 7800 yes,cygwin* | yes,mingw* | yes,pw32*) 7801 library_names_spec='$libname.dll.a' 7802 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7803 postinstall_cmds='base_file=`basename \${file}`~ 7804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7805 dldir=$destdir/`dirname \$dlpath`~ 7806 test -d \$dldir || mkdir -p \$dldir~ 7807 $install_prog $dir/$dlname \$dldir/$dlname' 7808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7809 dlpath=$dir/\$dldll~ 7810 $rm \$dlpath' 7811 shlibpath_overrides_runpath=yes 7812 7813 case $host_os in 7814 cygwin*) 7815 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7818 ;; 7819 mingw*) 7820 # MinGW DLLs use traditional 'lib' prefix 7821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7824 # It is most probably a Windows format PATH printed by 7825 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7826 # path with ; separators, and with drive letters. We can handle the 7827 # drive letters (cygwin fileutils understands them), so leave them, 7828 # especially as we might pass files found there to a mingw objdump, 7829 # which wouldn't understand a cygwinified path. Ahh. 7830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7831 else 7832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7833 fi 7834 ;; 7835 pw32*) 7836 # pw32 DLLs use 'pw' prefix rather than 'lib' 7837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7838 ;; 7839 esac 7840 ;; 7841 7842 *) 7843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7844 ;; 7845 esac 7846 dynamic_linker='Win32 ld.exe' 7847 # FIXME: first we should search . and the directory the executable is in 7848 shlibpath_var=PATH 7849 ;; 7850 7851darwin* | rhapsody*) 7852 dynamic_linker="$host_os dyld" 7853 version_type=darwin 7854 need_lib_prefix=no 7855 need_version=no 7856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7857 soname_spec='${libname}${release}${major}$shared_ext' 7858 shlibpath_overrides_runpath=yes 7859 shlibpath_var=DYLD_LIBRARY_PATH 7860 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7861 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7862 if test "$GCC" = yes; then 7863 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"` 7864 else 7865 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7866 fi 7867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7868 ;; 7869 7870dgux*) 7871 version_type=linux 7872 need_lib_prefix=no 7873 need_version=no 7874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7875 soname_spec='${libname}${release}${shared_ext}$major' 7876 shlibpath_var=LD_LIBRARY_PATH 7877 ;; 7878 7879freebsd1*) 7880 dynamic_linker=no 7881 ;; 7882 7883kfreebsd*-gnu) 7884 version_type=linux 7885 need_lib_prefix=no 7886 need_version=no 7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7888 soname_spec='${libname}${release}${shared_ext}$major' 7889 shlibpath_var=LD_LIBRARY_PATH 7890 shlibpath_overrides_runpath=no 7891 hardcode_into_libs=yes 7892 dynamic_linker='GNU ld.so' 7893 ;; 7894 7895freebsd* | dragonfly*) 7896 # DragonFly does not have aout. When/if they implement a new 7897 # versioning mechanism, adjust this. 7898 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7899 version_type=freebsd-$objformat 7900 case $version_type in 7901 freebsd-elf*) 7902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7903 need_version=no 7904 need_lib_prefix=no 7905 ;; 7906 freebsd-*) 7907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7908 need_version=yes 7909 ;; 7910 esac 7911 shlibpath_var=LD_LIBRARY_PATH 7912 case $host_os in 7913 freebsd2*) 7914 shlibpath_overrides_runpath=yes 7915 ;; 7916 freebsd3.[01]* | freebsdelf3.[01]*) 7917 shlibpath_overrides_runpath=yes 7918 hardcode_into_libs=yes 7919 ;; 7920 *) # from 3.2 on 7921 shlibpath_overrides_runpath=no 7922 hardcode_into_libs=yes 7923 ;; 7924 esac 7925 ;; 7926 7927gnu*) 7928 version_type=linux 7929 need_lib_prefix=no 7930 need_version=no 7931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7932 soname_spec='${libname}${release}${shared_ext}$major' 7933 shlibpath_var=LD_LIBRARY_PATH 7934 hardcode_into_libs=yes 7935 ;; 7936 7937hpux9* | hpux10* | hpux11*) 7938 # Give a soname corresponding to the major version so that dld.sl refuses to 7939 # link against other versions. 7940 version_type=sunos 7941 need_lib_prefix=no 7942 need_version=no 7943 case "$host_cpu" in 7944 ia64*) 7945 shrext_cmds='.so' 7946 hardcode_into_libs=yes 7947 dynamic_linker="$host_os dld.so" 7948 shlibpath_var=LD_LIBRARY_PATH 7949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7951 soname_spec='${libname}${release}${shared_ext}$major' 7952 if test "X$HPUX_IA64_MODE" = X32; then 7953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7954 else 7955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7956 fi 7957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7958 ;; 7959 hppa*64*) 7960 shrext_cmds='.sl' 7961 hardcode_into_libs=yes 7962 dynamic_linker="$host_os dld.sl" 7963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7966 soname_spec='${libname}${release}${shared_ext}$major' 7967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7969 ;; 7970 *) 7971 shrext_cmds='.sl' 7972 dynamic_linker="$host_os dld.sl" 7973 shlibpath_var=SHLIB_PATH 7974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7976 soname_spec='${libname}${release}${shared_ext}$major' 7977 ;; 7978 esac 7979 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7980 postinstall_cmds='chmod 555 $lib' 7981 ;; 7982 7983irix5* | irix6* | nonstopux*) 7984 case $host_os in 7985 nonstopux*) version_type=nonstopux ;; 7986 *) 7987 if test "$lt_cv_prog_gnu_ld" = yes; then 7988 version_type=linux 7989 else 7990 version_type=irix 7991 fi ;; 7992 esac 7993 need_lib_prefix=no 7994 need_version=no 7995 soname_spec='${libname}${release}${shared_ext}$major' 7996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7997 case $host_os in 7998 irix5* | nonstopux*) 7999 libsuff= shlibsuff= 8000 ;; 8001 *) 8002 case $LD in # libtool.m4 will add one of these switches to LD 8003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8004 libsuff= shlibsuff= libmagic=32-bit;; 8005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8006 libsuff=32 shlibsuff=N32 libmagic=N32;; 8007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8008 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8009 *) libsuff= shlibsuff= libmagic=never-match;; 8010 esac 8011 ;; 8012 esac 8013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8014 shlibpath_overrides_runpath=no 8015 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8016 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8017 hardcode_into_libs=yes 8018 ;; 8019 8020# No shared lib support for Linux oldld, aout, or coff. 8021linux*oldld* | linux*aout* | linux*coff*) 8022 dynamic_linker=no 8023 ;; 8024 8025# This must be Linux ELF. 8026linux*) 8027 version_type=linux 8028 need_lib_prefix=no 8029 need_version=no 8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8031 soname_spec='${libname}${release}${shared_ext}$major' 8032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8033 shlibpath_var=LD_LIBRARY_PATH 8034 shlibpath_overrides_runpath=no 8035 # This implies no fast_install, which is unacceptable. 8036 # Some rework will be needed to allow for fast_install 8037 # before this can be enabled. 8038 hardcode_into_libs=yes 8039 8040 # find out which ABI we are using 8041 libsuff= 8042 case "$host_cpu" in 8043 x86_64*|s390x*|powerpc64*) 8044 echo '#line 8044 "configure"' > conftest.$ac_ext 8045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8046 (eval $ac_compile) 2>&5 8047 ac_status=$? 8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8049 (exit $ac_status); }; then 8050 case `/usr/bin/file conftest.$ac_objext` in 8051 *64-bit*) 8052 libsuff=64 8053 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8054 ;; 8055 esac 8056 fi 8057 rm -rf conftest* 8058 ;; 8059 esac 8060 8061 # Append ld.so.conf contents to the search path 8062 if test -f /etc/ld.so.conf; then 8063 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8064 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8065 fi 8066 8067 # We used to test for /lib/ld.so.1 and disable shared libraries on 8068 # powerpc, because MkLinux only supported shared libraries with the 8069 # GNU dynamic linker. Since this was broken with cross compilers, 8070 # most powerpc-linux boxes support dynamic linking these days and 8071 # people can always --disable-shared, the test was removed, and we 8072 # assume the GNU/Linux dynamic linker is in use. 8073 dynamic_linker='GNU/Linux ld.so' 8074 ;; 8075 8076knetbsd*-gnu) 8077 version_type=linux 8078 need_lib_prefix=no 8079 need_version=no 8080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8081 soname_spec='${libname}${release}${shared_ext}$major' 8082 shlibpath_var=LD_LIBRARY_PATH 8083 shlibpath_overrides_runpath=no 8084 hardcode_into_libs=yes 8085 dynamic_linker='GNU ld.so' 8086 ;; 8087 8088netbsd*) 8089 version_type=sunos 8090 need_lib_prefix=no 8091 need_version=no 8092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8095 dynamic_linker='NetBSD (a.out) ld.so' 8096 else 8097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8098 soname_spec='${libname}${release}${shared_ext}$major' 8099 dynamic_linker='NetBSD ld.elf_so' 8100 fi 8101 shlibpath_var=LD_LIBRARY_PATH 8102 shlibpath_overrides_runpath=yes 8103 hardcode_into_libs=yes 8104 ;; 8105 8106newsos6) 8107 version_type=linux 8108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8109 shlibpath_var=LD_LIBRARY_PATH 8110 shlibpath_overrides_runpath=yes 8111 ;; 8112 8113nto-qnx*) 8114 version_type=linux 8115 need_lib_prefix=no 8116 need_version=no 8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8118 soname_spec='${libname}${release}${shared_ext}$major' 8119 shlibpath_var=LD_LIBRARY_PATH 8120 shlibpath_overrides_runpath=yes 8121 ;; 8122 8123openbsd*) 8124 version_type=sunos 8125 need_lib_prefix=no 8126 need_version=no 8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8129 shlibpath_var=LD_LIBRARY_PATH 8130 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8131 case $host_os in 8132 openbsd2.[89] | openbsd2.[89].*) 8133 shlibpath_overrides_runpath=no 8134 ;; 8135 *) 8136 shlibpath_overrides_runpath=yes 8137 ;; 8138 esac 8139 else 8140 shlibpath_overrides_runpath=yes 8141 fi 8142 ;; 8143 8144os2*) 8145 libname_spec='$name' 8146 shrext_cmds=".dll" 8147 need_lib_prefix=no 8148 library_names_spec='$libname${shared_ext} $libname.a' 8149 dynamic_linker='OS/2 ld.exe' 8150 shlibpath_var=LIBPATH 8151 ;; 8152 8153osf3* | osf4* | osf5*) 8154 version_type=osf 8155 need_lib_prefix=no 8156 need_version=no 8157 soname_spec='${libname}${release}${shared_ext}$major' 8158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8159 shlibpath_var=LD_LIBRARY_PATH 8160 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8161 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8162 ;; 8163 8164sco3.2v5*) 8165 version_type=osf 8166 soname_spec='${libname}${release}${shared_ext}$major' 8167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8168 shlibpath_var=LD_LIBRARY_PATH 8169 ;; 8170 8171solaris*) 8172 version_type=linux 8173 need_lib_prefix=no 8174 need_version=no 8175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8176 soname_spec='${libname}${release}${shared_ext}$major' 8177 shlibpath_var=LD_LIBRARY_PATH 8178 shlibpath_overrides_runpath=yes 8179 hardcode_into_libs=yes 8180 # ldd complains unless libraries are executable 8181 postinstall_cmds='chmod +x $lib' 8182 ;; 8183 8184sunos4*) 8185 version_type=sunos 8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8187 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8188 shlibpath_var=LD_LIBRARY_PATH 8189 shlibpath_overrides_runpath=yes 8190 if test "$with_gnu_ld" = yes; then 8191 need_lib_prefix=no 8192 fi 8193 need_version=yes 8194 ;; 8195 8196sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8197 version_type=linux 8198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8199 soname_spec='${libname}${release}${shared_ext}$major' 8200 shlibpath_var=LD_LIBRARY_PATH 8201 case $host_vendor in 8202 sni) 8203 shlibpath_overrides_runpath=no 8204 need_lib_prefix=no 8205 export_dynamic_flag_spec='${wl}-Blargedynsym' 8206 runpath_var=LD_RUN_PATH 8207 ;; 8208 siemens) 8209 need_lib_prefix=no 8210 ;; 8211 motorola) 8212 need_lib_prefix=no 8213 need_version=no 8214 shlibpath_overrides_runpath=no 8215 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8216 ;; 8217 esac 8218 ;; 8219 8220sysv4*MP*) 8221 if test -d /usr/nec ;then 8222 version_type=linux 8223 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8224 soname_spec='$libname${shared_ext}.$major' 8225 shlibpath_var=LD_LIBRARY_PATH 8226 fi 8227 ;; 8228 8229uts4*) 8230 version_type=linux 8231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8232 soname_spec='${libname}${release}${shared_ext}$major' 8233 shlibpath_var=LD_LIBRARY_PATH 8234 ;; 8235 8236*) 8237 dynamic_linker=no 8238 ;; 8239esac 8240echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8241echo "${ECHO_T}$dynamic_linker" >&6 8242test "$dynamic_linker" = no && can_build_shared=no 8243 8244echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8245echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8246hardcode_action= 8247if test -n "$hardcode_libdir_flag_spec" || \ 8248 test -n "$runpath_var" || \ 8249 test "X$hardcode_automatic" = "Xyes" ; then 8250 8251 # We can hardcode non-existant directories. 8252 if test "$hardcode_direct" != no && 8253 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8254 # have to relink, otherwise we might link with an installed library 8255 # when we should be linking with a yet-to-be-installed one 8256 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8257 test "$hardcode_minus_L" != no; then 8258 # Linking always hardcodes the temporary library directory. 8259 hardcode_action=relink 8260 else 8261 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8262 hardcode_action=immediate 8263 fi 8264else 8265 # We cannot hardcode anything, or else we can only hardcode existing 8266 # directories. 8267 hardcode_action=unsupported 8268fi 8269echo "$as_me:$LINENO: result: $hardcode_action" >&5 8270echo "${ECHO_T}$hardcode_action" >&6 8271 8272if test "$hardcode_action" = relink; then 8273 # Fast installation is not supported 8274 enable_fast_install=no 8275elif test "$shlibpath_overrides_runpath" = yes || 8276 test "$enable_shared" = no; then 8277 # Fast installation is not necessary 8278 enable_fast_install=needless 8279fi 8280 8281striplib= 8282old_striplib= 8283echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8284echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8285if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8286 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8287 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8288 echo "$as_me:$LINENO: result: yes" >&5 8289echo "${ECHO_T}yes" >&6 8290else 8291# FIXME - insert some real tests, host_os isn't really good enough 8292 case $host_os in 8293 darwin*) 8294 if test -n "$STRIP" ; then 8295 striplib="$STRIP -x" 8296 echo "$as_me:$LINENO: result: yes" >&5 8297echo "${ECHO_T}yes" >&6 8298 else 8299 echo "$as_me:$LINENO: result: no" >&5 8300echo "${ECHO_T}no" >&6 8301fi 8302 ;; 8303 *) 8304 echo "$as_me:$LINENO: result: no" >&5 8305echo "${ECHO_T}no" >&6 8306 ;; 8307 esac 8308fi 8309 8310if test "x$enable_dlopen" != xyes; then 8311 enable_dlopen=unknown 8312 enable_dlopen_self=unknown 8313 enable_dlopen_self_static=unknown 8314else 8315 lt_cv_dlopen=no 8316 lt_cv_dlopen_libs= 8317 8318 case $host_os in 8319 beos*) 8320 lt_cv_dlopen="load_add_on" 8321 lt_cv_dlopen_libs= 8322 lt_cv_dlopen_self=yes 8323 ;; 8324 8325 mingw* | pw32*) 8326 lt_cv_dlopen="LoadLibrary" 8327 lt_cv_dlopen_libs= 8328 ;; 8329 8330 cygwin*) 8331 lt_cv_dlopen="dlopen" 8332 lt_cv_dlopen_libs= 8333 ;; 8334 8335 darwin*) 8336 # if libdl is installed we need to link against it 8337 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8338echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8339if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8340 echo $ECHO_N "(cached) $ECHO_C" >&6 8341else 8342 ac_check_lib_save_LIBS=$LIBS 8343LIBS="-ldl $LIBS" 8344cat >conftest.$ac_ext <<_ACEOF 8345/* confdefs.h. */ 8346_ACEOF 8347cat confdefs.h >>conftest.$ac_ext 8348cat >>conftest.$ac_ext <<_ACEOF 8349/* end confdefs.h. */ 8350 8351/* Override any gcc2 internal prototype to avoid an error. */ 8352#ifdef __cplusplus 8353extern "C" 8354#endif 8355/* We use char because int might match the return type of a gcc2 8356 builtin and then its argument prototype would still apply. */ 8357char dlopen (); 8358int 8359main () 8360{ 8361dlopen (); 8362 ; 8363 return 0; 8364} 8365_ACEOF 8366rm -f conftest.$ac_objext conftest$ac_exeext 8367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8368 (eval $ac_link) 2>conftest.er1 8369 ac_status=$? 8370 grep -v '^ *+' conftest.er1 >conftest.err 8371 rm -f conftest.er1 8372 cat conftest.err >&5 8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8374 (exit $ac_status); } && 8375 { ac_try='test -z "$ac_c_werror_flag" 8376 || test ! -s conftest.err' 8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8378 (eval $ac_try) 2>&5 8379 ac_status=$? 8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8381 (exit $ac_status); }; } && 8382 { ac_try='test -s conftest$ac_exeext' 8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8384 (eval $ac_try) 2>&5 8385 ac_status=$? 8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8387 (exit $ac_status); }; }; then 8388 ac_cv_lib_dl_dlopen=yes 8389else 8390 echo "$as_me: failed program was:" >&5 8391sed 's/^/| /' conftest.$ac_ext >&5 8392 8393ac_cv_lib_dl_dlopen=no 8394fi 8395rm -f conftest.err conftest.$ac_objext \ 8396 conftest$ac_exeext conftest.$ac_ext 8397LIBS=$ac_check_lib_save_LIBS 8398fi 8399echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8400echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8401if test $ac_cv_lib_dl_dlopen = yes; then 8402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8403else 8404 8405 lt_cv_dlopen="dyld" 8406 lt_cv_dlopen_libs= 8407 lt_cv_dlopen_self=yes 8408 8409fi 8410 8411 ;; 8412 8413 *) 8414 echo "$as_me:$LINENO: checking for shl_load" >&5 8415echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8416if test "${ac_cv_func_shl_load+set}" = set; then 8417 echo $ECHO_N "(cached) $ECHO_C" >&6 8418else 8419 cat >conftest.$ac_ext <<_ACEOF 8420/* confdefs.h. */ 8421_ACEOF 8422cat confdefs.h >>conftest.$ac_ext 8423cat >>conftest.$ac_ext <<_ACEOF 8424/* end confdefs.h. */ 8425/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8426 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8427#define shl_load innocuous_shl_load 8428 8429/* System header to define __stub macros and hopefully few prototypes, 8430 which can conflict with char shl_load (); below. 8431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8432 <limits.h> exists even on freestanding compilers. */ 8433 8434#ifdef __STDC__ 8435# include <limits.h> 8436#else 8437# include <assert.h> 8438#endif 8439 8440#undef shl_load 8441 8442/* Override any gcc2 internal prototype to avoid an error. */ 8443#ifdef __cplusplus 8444extern "C" 8445{ 8446#endif 8447/* We use char because int might match the return type of a gcc2 8448 builtin and then its argument prototype would still apply. */ 8449char shl_load (); 8450/* The GNU C library defines this for functions which it implements 8451 to always fail with ENOSYS. Some functions are actually named 8452 something starting with __ and the normal name is an alias. */ 8453#if defined (__stub_shl_load) || defined (__stub___shl_load) 8454choke me 8455#else 8456char (*f) () = shl_load; 8457#endif 8458#ifdef __cplusplus 8459} 8460#endif 8461 8462int 8463main () 8464{ 8465return f != shl_load; 8466 ; 8467 return 0; 8468} 8469_ACEOF 8470rm -f conftest.$ac_objext conftest$ac_exeext 8471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8472 (eval $ac_link) 2>conftest.er1 8473 ac_status=$? 8474 grep -v '^ *+' conftest.er1 >conftest.err 8475 rm -f conftest.er1 8476 cat conftest.err >&5 8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8478 (exit $ac_status); } && 8479 { ac_try='test -z "$ac_c_werror_flag" 8480 || test ! -s conftest.err' 8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8482 (eval $ac_try) 2>&5 8483 ac_status=$? 8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8485 (exit $ac_status); }; } && 8486 { ac_try='test -s conftest$ac_exeext' 8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8488 (eval $ac_try) 2>&5 8489 ac_status=$? 8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8491 (exit $ac_status); }; }; then 8492 ac_cv_func_shl_load=yes 8493else 8494 echo "$as_me: failed program was:" >&5 8495sed 's/^/| /' conftest.$ac_ext >&5 8496 8497ac_cv_func_shl_load=no 8498fi 8499rm -f conftest.err conftest.$ac_objext \ 8500 conftest$ac_exeext conftest.$ac_ext 8501fi 8502echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8503echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8504if test $ac_cv_func_shl_load = yes; then 8505 lt_cv_dlopen="shl_load" 8506else 8507 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8508echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8509if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8510 echo $ECHO_N "(cached) $ECHO_C" >&6 8511else 8512 ac_check_lib_save_LIBS=$LIBS 8513LIBS="-ldld $LIBS" 8514cat >conftest.$ac_ext <<_ACEOF 8515/* confdefs.h. */ 8516_ACEOF 8517cat confdefs.h >>conftest.$ac_ext 8518cat >>conftest.$ac_ext <<_ACEOF 8519/* end confdefs.h. */ 8520 8521/* Override any gcc2 internal prototype to avoid an error. */ 8522#ifdef __cplusplus 8523extern "C" 8524#endif 8525/* We use char because int might match the return type of a gcc2 8526 builtin and then its argument prototype would still apply. */ 8527char shl_load (); 8528int 8529main () 8530{ 8531shl_load (); 8532 ; 8533 return 0; 8534} 8535_ACEOF 8536rm -f conftest.$ac_objext conftest$ac_exeext 8537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8538 (eval $ac_link) 2>conftest.er1 8539 ac_status=$? 8540 grep -v '^ *+' conftest.er1 >conftest.err 8541 rm -f conftest.er1 8542 cat conftest.err >&5 8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8544 (exit $ac_status); } && 8545 { ac_try='test -z "$ac_c_werror_flag" 8546 || test ! -s conftest.err' 8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8548 (eval $ac_try) 2>&5 8549 ac_status=$? 8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8551 (exit $ac_status); }; } && 8552 { ac_try='test -s conftest$ac_exeext' 8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8554 (eval $ac_try) 2>&5 8555 ac_status=$? 8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8557 (exit $ac_status); }; }; then 8558 ac_cv_lib_dld_shl_load=yes 8559else 8560 echo "$as_me: failed program was:" >&5 8561sed 's/^/| /' conftest.$ac_ext >&5 8562 8563ac_cv_lib_dld_shl_load=no 8564fi 8565rm -f conftest.err conftest.$ac_objext \ 8566 conftest$ac_exeext conftest.$ac_ext 8567LIBS=$ac_check_lib_save_LIBS 8568fi 8569echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8570echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8571if test $ac_cv_lib_dld_shl_load = yes; then 8572 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8573else 8574 echo "$as_me:$LINENO: checking for dlopen" >&5 8575echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8576if test "${ac_cv_func_dlopen+set}" = set; then 8577 echo $ECHO_N "(cached) $ECHO_C" >&6 8578else 8579 cat >conftest.$ac_ext <<_ACEOF 8580/* confdefs.h. */ 8581_ACEOF 8582cat confdefs.h >>conftest.$ac_ext 8583cat >>conftest.$ac_ext <<_ACEOF 8584/* end confdefs.h. */ 8585/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8586 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8587#define dlopen innocuous_dlopen 8588 8589/* System header to define __stub macros and hopefully few prototypes, 8590 which can conflict with char dlopen (); below. 8591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8592 <limits.h> exists even on freestanding compilers. */ 8593 8594#ifdef __STDC__ 8595# include <limits.h> 8596#else 8597# include <assert.h> 8598#endif 8599 8600#undef dlopen 8601 8602/* Override any gcc2 internal prototype to avoid an error. */ 8603#ifdef __cplusplus 8604extern "C" 8605{ 8606#endif 8607/* We use char because int might match the return type of a gcc2 8608 builtin and then its argument prototype would still apply. */ 8609char dlopen (); 8610/* The GNU C library defines this for functions which it implements 8611 to always fail with ENOSYS. Some functions are actually named 8612 something starting with __ and the normal name is an alias. */ 8613#if defined (__stub_dlopen) || defined (__stub___dlopen) 8614choke me 8615#else 8616char (*f) () = dlopen; 8617#endif 8618#ifdef __cplusplus 8619} 8620#endif 8621 8622int 8623main () 8624{ 8625return f != dlopen; 8626 ; 8627 return 0; 8628} 8629_ACEOF 8630rm -f conftest.$ac_objext conftest$ac_exeext 8631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8632 (eval $ac_link) 2>conftest.er1 8633 ac_status=$? 8634 grep -v '^ *+' conftest.er1 >conftest.err 8635 rm -f conftest.er1 8636 cat conftest.err >&5 8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8638 (exit $ac_status); } && 8639 { ac_try='test -z "$ac_c_werror_flag" 8640 || test ! -s conftest.err' 8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8642 (eval $ac_try) 2>&5 8643 ac_status=$? 8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8645 (exit $ac_status); }; } && 8646 { ac_try='test -s conftest$ac_exeext' 8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8648 (eval $ac_try) 2>&5 8649 ac_status=$? 8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8651 (exit $ac_status); }; }; then 8652 ac_cv_func_dlopen=yes 8653else 8654 echo "$as_me: failed program was:" >&5 8655sed 's/^/| /' conftest.$ac_ext >&5 8656 8657ac_cv_func_dlopen=no 8658fi 8659rm -f conftest.err conftest.$ac_objext \ 8660 conftest$ac_exeext conftest.$ac_ext 8661fi 8662echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8663echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8664if test $ac_cv_func_dlopen = yes; then 8665 lt_cv_dlopen="dlopen" 8666else 8667 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8668echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8669if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8670 echo $ECHO_N "(cached) $ECHO_C" >&6 8671else 8672 ac_check_lib_save_LIBS=$LIBS 8673LIBS="-ldl $LIBS" 8674cat >conftest.$ac_ext <<_ACEOF 8675/* confdefs.h. */ 8676_ACEOF 8677cat confdefs.h >>conftest.$ac_ext 8678cat >>conftest.$ac_ext <<_ACEOF 8679/* end confdefs.h. */ 8680 8681/* Override any gcc2 internal prototype to avoid an error. */ 8682#ifdef __cplusplus 8683extern "C" 8684#endif 8685/* We use char because int might match the return type of a gcc2 8686 builtin and then its argument prototype would still apply. */ 8687char dlopen (); 8688int 8689main () 8690{ 8691dlopen (); 8692 ; 8693 return 0; 8694} 8695_ACEOF 8696rm -f conftest.$ac_objext conftest$ac_exeext 8697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8698 (eval $ac_link) 2>conftest.er1 8699 ac_status=$? 8700 grep -v '^ *+' conftest.er1 >conftest.err 8701 rm -f conftest.er1 8702 cat conftest.err >&5 8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8704 (exit $ac_status); } && 8705 { ac_try='test -z "$ac_c_werror_flag" 8706 || test ! -s conftest.err' 8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8708 (eval $ac_try) 2>&5 8709 ac_status=$? 8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8711 (exit $ac_status); }; } && 8712 { ac_try='test -s conftest$ac_exeext' 8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8714 (eval $ac_try) 2>&5 8715 ac_status=$? 8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8717 (exit $ac_status); }; }; then 8718 ac_cv_lib_dl_dlopen=yes 8719else 8720 echo "$as_me: failed program was:" >&5 8721sed 's/^/| /' conftest.$ac_ext >&5 8722 8723ac_cv_lib_dl_dlopen=no 8724fi 8725rm -f conftest.err conftest.$ac_objext \ 8726 conftest$ac_exeext conftest.$ac_ext 8727LIBS=$ac_check_lib_save_LIBS 8728fi 8729echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8730echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8731if test $ac_cv_lib_dl_dlopen = yes; then 8732 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8733else 8734 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8735echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8736if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8737 echo $ECHO_N "(cached) $ECHO_C" >&6 8738else 8739 ac_check_lib_save_LIBS=$LIBS 8740LIBS="-lsvld $LIBS" 8741cat >conftest.$ac_ext <<_ACEOF 8742/* confdefs.h. */ 8743_ACEOF 8744cat confdefs.h >>conftest.$ac_ext 8745cat >>conftest.$ac_ext <<_ACEOF 8746/* end confdefs.h. */ 8747 8748/* Override any gcc2 internal prototype to avoid an error. */ 8749#ifdef __cplusplus 8750extern "C" 8751#endif 8752/* We use char because int might match the return type of a gcc2 8753 builtin and then its argument prototype would still apply. */ 8754char dlopen (); 8755int 8756main () 8757{ 8758dlopen (); 8759 ; 8760 return 0; 8761} 8762_ACEOF 8763rm -f conftest.$ac_objext conftest$ac_exeext 8764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8765 (eval $ac_link) 2>conftest.er1 8766 ac_status=$? 8767 grep -v '^ *+' conftest.er1 >conftest.err 8768 rm -f conftest.er1 8769 cat conftest.err >&5 8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8771 (exit $ac_status); } && 8772 { ac_try='test -z "$ac_c_werror_flag" 8773 || test ! -s conftest.err' 8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8775 (eval $ac_try) 2>&5 8776 ac_status=$? 8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8778 (exit $ac_status); }; } && 8779 { ac_try='test -s conftest$ac_exeext' 8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8781 (eval $ac_try) 2>&5 8782 ac_status=$? 8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8784 (exit $ac_status); }; }; then 8785 ac_cv_lib_svld_dlopen=yes 8786else 8787 echo "$as_me: failed program was:" >&5 8788sed 's/^/| /' conftest.$ac_ext >&5 8789 8790ac_cv_lib_svld_dlopen=no 8791fi 8792rm -f conftest.err conftest.$ac_objext \ 8793 conftest$ac_exeext conftest.$ac_ext 8794LIBS=$ac_check_lib_save_LIBS 8795fi 8796echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8797echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8798if test $ac_cv_lib_svld_dlopen = yes; then 8799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8800else 8801 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8802echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8803if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8804 echo $ECHO_N "(cached) $ECHO_C" >&6 8805else 8806 ac_check_lib_save_LIBS=$LIBS 8807LIBS="-ldld $LIBS" 8808cat >conftest.$ac_ext <<_ACEOF 8809/* confdefs.h. */ 8810_ACEOF 8811cat confdefs.h >>conftest.$ac_ext 8812cat >>conftest.$ac_ext <<_ACEOF 8813/* end confdefs.h. */ 8814 8815/* Override any gcc2 internal prototype to avoid an error. */ 8816#ifdef __cplusplus 8817extern "C" 8818#endif 8819/* We use char because int might match the return type of a gcc2 8820 builtin and then its argument prototype would still apply. */ 8821char dld_link (); 8822int 8823main () 8824{ 8825dld_link (); 8826 ; 8827 return 0; 8828} 8829_ACEOF 8830rm -f conftest.$ac_objext conftest$ac_exeext 8831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8832 (eval $ac_link) 2>conftest.er1 8833 ac_status=$? 8834 grep -v '^ *+' conftest.er1 >conftest.err 8835 rm -f conftest.er1 8836 cat conftest.err >&5 8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8838 (exit $ac_status); } && 8839 { ac_try='test -z "$ac_c_werror_flag" 8840 || test ! -s conftest.err' 8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8842 (eval $ac_try) 2>&5 8843 ac_status=$? 8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8845 (exit $ac_status); }; } && 8846 { ac_try='test -s conftest$ac_exeext' 8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8848 (eval $ac_try) 2>&5 8849 ac_status=$? 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 (exit $ac_status); }; }; then 8852 ac_cv_lib_dld_dld_link=yes 8853else 8854 echo "$as_me: failed program was:" >&5 8855sed 's/^/| /' conftest.$ac_ext >&5 8856 8857ac_cv_lib_dld_dld_link=no 8858fi 8859rm -f conftest.err conftest.$ac_objext \ 8860 conftest$ac_exeext conftest.$ac_ext 8861LIBS=$ac_check_lib_save_LIBS 8862fi 8863echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8864echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8865if test $ac_cv_lib_dld_dld_link = yes; then 8866 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8867fi 8868 8869 8870fi 8871 8872 8873fi 8874 8875 8876fi 8877 8878 8879fi 8880 8881 8882fi 8883 8884 ;; 8885 esac 8886 8887 if test "x$lt_cv_dlopen" != xno; then 8888 enable_dlopen=yes 8889 else 8890 enable_dlopen=no 8891 fi 8892 8893 case $lt_cv_dlopen in 8894 dlopen) 8895 save_CPPFLAGS="$CPPFLAGS" 8896 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8897 8898 save_LDFLAGS="$LDFLAGS" 8899 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8900 8901 save_LIBS="$LIBS" 8902 LIBS="$lt_cv_dlopen_libs $LIBS" 8903 8904 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8905echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8906if test "${lt_cv_dlopen_self+set}" = set; then 8907 echo $ECHO_N "(cached) $ECHO_C" >&6 8908else 8909 if test "$cross_compiling" = yes; then : 8910 lt_cv_dlopen_self=cross 8911else 8912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8913 lt_status=$lt_dlunknown 8914 cat > conftest.$ac_ext <<EOF 8915#line 8915 "configure" 8916#include "confdefs.h" 8917 8918#if HAVE_DLFCN_H 8919#include <dlfcn.h> 8920#endif 8921 8922#include <stdio.h> 8923 8924#ifdef RTLD_GLOBAL 8925# define LT_DLGLOBAL RTLD_GLOBAL 8926#else 8927# ifdef DL_GLOBAL 8928# define LT_DLGLOBAL DL_GLOBAL 8929# else 8930# define LT_DLGLOBAL 0 8931# endif 8932#endif 8933 8934/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8935 find out it does not work in some platform. */ 8936#ifndef LT_DLLAZY_OR_NOW 8937# ifdef RTLD_LAZY 8938# define LT_DLLAZY_OR_NOW RTLD_LAZY 8939# else 8940# ifdef DL_LAZY 8941# define LT_DLLAZY_OR_NOW DL_LAZY 8942# else 8943# ifdef RTLD_NOW 8944# define LT_DLLAZY_OR_NOW RTLD_NOW 8945# else 8946# ifdef DL_NOW 8947# define LT_DLLAZY_OR_NOW DL_NOW 8948# else 8949# define LT_DLLAZY_OR_NOW 0 8950# endif 8951# endif 8952# endif 8953# endif 8954#endif 8955 8956#ifdef __cplusplus 8957extern "C" void exit (int); 8958#endif 8959 8960void fnord() { int i=42;} 8961int main () 8962{ 8963 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8964 int status = $lt_dlunknown; 8965 8966 if (self) 8967 { 8968 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8969 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8970 /* dlclose (self); */ 8971 } 8972 8973 exit (status); 8974} 8975EOF 8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8977 (eval $ac_link) 2>&5 8978 ac_status=$? 8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8980 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8981 (./conftest; exit; ) 2>/dev/null 8982 lt_status=$? 8983 case x$lt_status in 8984 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8985 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8986 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8987 esac 8988 else : 8989 # compilation failed 8990 lt_cv_dlopen_self=no 8991 fi 8992fi 8993rm -fr conftest* 8994 8995 8996fi 8997echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8998echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8999 9000 if test "x$lt_cv_dlopen_self" = xyes; then 9001 LDFLAGS="$LDFLAGS $link_static_flag" 9002 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9003echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9004if test "${lt_cv_dlopen_self_static+set}" = set; then 9005 echo $ECHO_N "(cached) $ECHO_C" >&6 9006else 9007 if test "$cross_compiling" = yes; then : 9008 lt_cv_dlopen_self_static=cross 9009else 9010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9011 lt_status=$lt_dlunknown 9012 cat > conftest.$ac_ext <<EOF 9013#line 9013 "configure" 9014#include "confdefs.h" 9015 9016#if HAVE_DLFCN_H 9017#include <dlfcn.h> 9018#endif 9019 9020#include <stdio.h> 9021 9022#ifdef RTLD_GLOBAL 9023# define LT_DLGLOBAL RTLD_GLOBAL 9024#else 9025# ifdef DL_GLOBAL 9026# define LT_DLGLOBAL DL_GLOBAL 9027# else 9028# define LT_DLGLOBAL 0 9029# endif 9030#endif 9031 9032/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9033 find out it does not work in some platform. */ 9034#ifndef LT_DLLAZY_OR_NOW 9035# ifdef RTLD_LAZY 9036# define LT_DLLAZY_OR_NOW RTLD_LAZY 9037# else 9038# ifdef DL_LAZY 9039# define LT_DLLAZY_OR_NOW DL_LAZY 9040# else 9041# ifdef RTLD_NOW 9042# define LT_DLLAZY_OR_NOW RTLD_NOW 9043# else 9044# ifdef DL_NOW 9045# define LT_DLLAZY_OR_NOW DL_NOW 9046# else 9047# define LT_DLLAZY_OR_NOW 0 9048# endif 9049# endif 9050# endif 9051# endif 9052#endif 9053 9054#ifdef __cplusplus 9055extern "C" void exit (int); 9056#endif 9057 9058void fnord() { int i=42;} 9059int main () 9060{ 9061 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9062 int status = $lt_dlunknown; 9063 9064 if (self) 9065 { 9066 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9067 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9068 /* dlclose (self); */ 9069 } 9070 9071 exit (status); 9072} 9073EOF 9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9075 (eval $ac_link) 2>&5 9076 ac_status=$? 9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9078 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9079 (./conftest; exit; ) 2>/dev/null 9080 lt_status=$? 9081 case x$lt_status in 9082 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9083 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9084 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9085 esac 9086 else : 9087 # compilation failed 9088 lt_cv_dlopen_self_static=no 9089 fi 9090fi 9091rm -fr conftest* 9092 9093 9094fi 9095echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9096echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9097 fi 9098 9099 CPPFLAGS="$save_CPPFLAGS" 9100 LDFLAGS="$save_LDFLAGS" 9101 LIBS="$save_LIBS" 9102 ;; 9103 esac 9104 9105 case $lt_cv_dlopen_self in 9106 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9107 *) enable_dlopen_self=unknown ;; 9108 esac 9109 9110 case $lt_cv_dlopen_self_static in 9111 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9112 *) enable_dlopen_self_static=unknown ;; 9113 esac 9114fi 9115 9116 9117# Report which librarie types wil actually be built 9118echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9119echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9120echo "$as_me:$LINENO: result: $can_build_shared" >&5 9121echo "${ECHO_T}$can_build_shared" >&6 9122 9123echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9124echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9125test "$can_build_shared" = "no" && enable_shared=no 9126 9127# On AIX, shared libraries and static libraries use the same namespace, and 9128# are all built from PIC. 9129case "$host_os" in 9130aix3*) 9131 test "$enable_shared" = yes && enable_static=no 9132 if test -n "$RANLIB"; then 9133 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9134 postinstall_cmds='$RANLIB $lib' 9135 fi 9136 ;; 9137 9138aix4* | aix5*) 9139 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9140 test "$enable_shared" = yes && enable_static=no 9141 fi 9142 ;; 9143esac 9144echo "$as_me:$LINENO: result: $enable_shared" >&5 9145echo "${ECHO_T}$enable_shared" >&6 9146 9147echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9148echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9149# Make sure either enable_shared or enable_static is yes. 9150test "$enable_shared" = yes || enable_static=yes 9151echo "$as_me:$LINENO: result: $enable_static" >&5 9152echo "${ECHO_T}$enable_static" >&6 9153 9154# The else clause should only fire when bootstrapping the 9155# libtool distribution, otherwise you forgot to ship ltmain.sh 9156# with your package, and you will get complaints that there are 9157# no rules to generate ltmain.sh. 9158if test -f "$ltmain"; then 9159 # See if we are running on zsh, and set the options which allow our commands through 9160 # without removal of \ escapes. 9161 if test -n "${ZSH_VERSION+set}" ; then 9162 setopt NO_GLOB_SUBST 9163 fi 9164 # Now quote all the things that may contain metacharacters while being 9165 # careful not to overquote the AC_SUBSTed values. We take copies of the 9166 # variables and quote the copies for generation of the libtool script. 9167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9168 SED SHELL STRIP \ 9169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9171 deplibs_check_method reload_flag reload_cmds need_locks \ 9172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9173 lt_cv_sys_global_symbol_to_c_name_address \ 9174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9175 old_postinstall_cmds old_postuninstall_cmds \ 9176 compiler \ 9177 CC \ 9178 LD \ 9179 lt_prog_compiler_wl \ 9180 lt_prog_compiler_pic \ 9181 lt_prog_compiler_static \ 9182 lt_prog_compiler_no_builtin_flag \ 9183 export_dynamic_flag_spec \ 9184 thread_safe_flag_spec \ 9185 whole_archive_flag_spec \ 9186 enable_shared_with_static_runtimes \ 9187 old_archive_cmds \ 9188 old_archive_from_new_cmds \ 9189 predep_objects \ 9190 postdep_objects \ 9191 predeps \ 9192 postdeps \ 9193 compiler_lib_search_path \ 9194 archive_cmds \ 9195 archive_expsym_cmds \ 9196 postinstall_cmds \ 9197 postuninstall_cmds \ 9198 old_archive_from_expsyms_cmds \ 9199 allow_undefined_flag \ 9200 no_undefined_flag \ 9201 export_symbols_cmds \ 9202 hardcode_libdir_flag_spec \ 9203 hardcode_libdir_flag_spec_ld \ 9204 hardcode_libdir_separator \ 9205 hardcode_automatic \ 9206 module_cmds \ 9207 module_expsym_cmds \ 9208 lt_cv_prog_compiler_c_o \ 9209 exclude_expsyms \ 9210 include_expsyms; do 9211 9212 case $var in 9213 old_archive_cmds | \ 9214 old_archive_from_new_cmds | \ 9215 archive_cmds | \ 9216 archive_expsym_cmds | \ 9217 module_cmds | \ 9218 module_expsym_cmds | \ 9219 old_archive_from_expsyms_cmds | \ 9220 export_symbols_cmds | \ 9221 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9222 postinstall_cmds | postuninstall_cmds | \ 9223 old_postinstall_cmds | old_postuninstall_cmds | \ 9224 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9225 # Double-quote double-evaled strings. 9226 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9227 ;; 9228 *) 9229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9230 ;; 9231 esac 9232 done 9233 9234 case $lt_echo in 9235 *'\$0 --fallback-echo"') 9236 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9237 ;; 9238 esac 9239 9240cfgfile="${ofile}T" 9241 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9242 $rm -f "$cfgfile" 9243 { echo "$as_me:$LINENO: creating $ofile" >&5 9244echo "$as_me: creating $ofile" >&6;} 9245 9246 cat <<__EOF__ >> "$cfgfile" 9247#! $SHELL 9248 9249# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9250# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9251# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9252# 9253# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9254# Free Software Foundation, Inc. 9255# 9256# This file is part of GNU Libtool: 9257# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9258# 9259# This program is free software; you can redistribute it and/or modify 9260# it under the terms of the GNU General Public License as published by 9261# the Free Software Foundation; either version 2 of the License, or 9262# (at your option) any later version. 9263# 9264# This program is distributed in the hope that it will be useful, but 9265# WITHOUT ANY WARRANTY; without even the implied warranty of 9266# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9267# General Public License for more details. 9268# 9269# You should have received a copy of the GNU General Public License 9270# along with this program; if not, write to the Free Software 9271# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9272# 9273# As a special exception to the GNU General Public License, if you 9274# distribute this file as part of a program that contains a 9275# configuration script generated by Autoconf, you may include it under 9276# the same distribution terms that you use for the rest of that program. 9277 9278# A sed program that does not truncate output. 9279SED=$lt_SED 9280 9281# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9282Xsed="$SED -e 1s/^X//" 9283 9284# The HP-UX ksh and POSIX shell print the target directory to stdout 9285# if CDPATH is set. 9286(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9287 9288# The names of the tagged configurations supported by this script. 9289available_tags= 9290 9291# ### BEGIN LIBTOOL CONFIG 9292 9293# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9294 9295# Shell to use when invoking shell scripts. 9296SHELL=$lt_SHELL 9297 9298# Whether or not to build shared libraries. 9299build_libtool_libs=$enable_shared 9300 9301# Whether or not to build static libraries. 9302build_old_libs=$enable_static 9303 9304# Whether or not to add -lc for building shared libraries. 9305build_libtool_need_lc=$archive_cmds_need_lc 9306 9307# Whether or not to disallow shared libs when runtime libs are static 9308allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9309 9310# Whether or not to optimize for fast installation. 9311fast_install=$enable_fast_install 9312 9313# The host system. 9314host_alias=$host_alias 9315host=$host 9316host_os=$host_os 9317 9318# The build system. 9319build_alias=$build_alias 9320build=$build 9321build_os=$build_os 9322 9323# An echo program that does not interpret backslashes. 9324echo=$lt_echo 9325 9326# The archiver. 9327AR=$lt_AR 9328AR_FLAGS=$lt_AR_FLAGS 9329 9330# A C compiler. 9331LTCC=$lt_LTCC 9332 9333# A language-specific compiler. 9334CC=$lt_compiler 9335 9336# Is the compiler the GNU C compiler? 9337with_gcc=$GCC 9338 9339# An ERE matcher. 9340EGREP=$lt_EGREP 9341 9342# The linker used to build libraries. 9343LD=$lt_LD 9344 9345# Whether we need hard or soft links. 9346LN_S=$lt_LN_S 9347 9348# A BSD-compatible nm program. 9349NM=$lt_NM 9350 9351# A symbol stripping program 9352STRIP=$lt_STRIP 9353 9354# Used to examine libraries when file_magic_cmd begins "file" 9355MAGIC_CMD=$MAGIC_CMD 9356 9357# Used on cygwin: DLL creation program. 9358DLLTOOL="$DLLTOOL" 9359 9360# Used on cygwin: object dumper. 9361OBJDUMP="$OBJDUMP" 9362 9363# Used on cygwin: assembler. 9364AS="$AS" 9365 9366# The name of the directory that contains temporary libtool files. 9367objdir=$objdir 9368 9369# How to create reloadable object files. 9370reload_flag=$lt_reload_flag 9371reload_cmds=$lt_reload_cmds 9372 9373# How to pass a linker flag through the compiler. 9374wl=$lt_lt_prog_compiler_wl 9375 9376# Object file suffix (normally "o"). 9377objext="$ac_objext" 9378 9379# Old archive suffix (normally "a"). 9380libext="$libext" 9381 9382# Shared library suffix (normally ".so"). 9383shrext_cmds='$shrext_cmds' 9384 9385# Executable file suffix (normally ""). 9386exeext="$exeext" 9387 9388# Additional compiler flags for building library objects. 9389pic_flag=$lt_lt_prog_compiler_pic 9390pic_mode=$pic_mode 9391 9392# What is the maximum length of a command? 9393max_cmd_len=$lt_cv_sys_max_cmd_len 9394 9395# Does compiler simultaneously support -c and -o options? 9396compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9397 9398# Must we lock files when doing compilation? 9399need_locks=$lt_need_locks 9400 9401# Do we need the lib prefix for modules? 9402need_lib_prefix=$need_lib_prefix 9403 9404# Do we need a version for libraries? 9405need_version=$need_version 9406 9407# Whether dlopen is supported. 9408dlopen_support=$enable_dlopen 9409 9410# Whether dlopen of programs is supported. 9411dlopen_self=$enable_dlopen_self 9412 9413# Whether dlopen of statically linked programs is supported. 9414dlopen_self_static=$enable_dlopen_self_static 9415 9416# Compiler flag to prevent dynamic linking. 9417link_static_flag=$lt_lt_prog_compiler_static 9418 9419# Compiler flag to turn off builtin functions. 9420no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9421 9422# Compiler flag to allow reflexive dlopens. 9423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9424 9425# Compiler flag to generate shared objects directly from archives. 9426whole_archive_flag_spec=$lt_whole_archive_flag_spec 9427 9428# Compiler flag to generate thread-safe objects. 9429thread_safe_flag_spec=$lt_thread_safe_flag_spec 9430 9431# Library versioning type. 9432version_type=$version_type 9433 9434# Format of library name prefix. 9435libname_spec=$lt_libname_spec 9436 9437# List of archive names. First name is the real one, the rest are links. 9438# The last name is the one that the linker finds with -lNAME. 9439library_names_spec=$lt_library_names_spec 9440 9441# The coded name of the library, if different from the real name. 9442soname_spec=$lt_soname_spec 9443 9444# Commands used to build and install an old-style archive. 9445RANLIB=$lt_RANLIB 9446old_archive_cmds=$lt_old_archive_cmds 9447old_postinstall_cmds=$lt_old_postinstall_cmds 9448old_postuninstall_cmds=$lt_old_postuninstall_cmds 9449 9450# Create an old-style archive from a shared archive. 9451old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9452 9453# Create a temporary old-style archive to link instead of a shared archive. 9454old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9455 9456# Commands used to build and install a shared archive. 9457archive_cmds=$lt_archive_cmds 9458archive_expsym_cmds=$lt_archive_expsym_cmds 9459postinstall_cmds=$lt_postinstall_cmds 9460postuninstall_cmds=$lt_postuninstall_cmds 9461 9462# Commands used to build a loadable module (assumed same as above if empty) 9463module_cmds=$lt_module_cmds 9464module_expsym_cmds=$lt_module_expsym_cmds 9465 9466# Commands to strip libraries. 9467old_striplib=$lt_old_striplib 9468striplib=$lt_striplib 9469 9470# Dependencies to place before the objects being linked to create a 9471# shared library. 9472predep_objects=$lt_predep_objects 9473 9474# Dependencies to place after the objects being linked to create a 9475# shared library. 9476postdep_objects=$lt_postdep_objects 9477 9478# Dependencies to place before the objects being linked to create a 9479# shared library. 9480predeps=$lt_predeps 9481 9482# Dependencies to place after the objects being linked to create a 9483# shared library. 9484postdeps=$lt_postdeps 9485 9486# The library search path used internally by the compiler when linking 9487# a shared library. 9488compiler_lib_search_path=$lt_compiler_lib_search_path 9489 9490# Method to check whether dependent libraries are shared objects. 9491deplibs_check_method=$lt_deplibs_check_method 9492 9493# Command to use when deplibs_check_method == file_magic. 9494file_magic_cmd=$lt_file_magic_cmd 9495 9496# Flag that allows shared libraries with undefined symbols to be built. 9497allow_undefined_flag=$lt_allow_undefined_flag 9498 9499# Flag that forces no undefined symbols. 9500no_undefined_flag=$lt_no_undefined_flag 9501 9502# Commands used to finish a libtool library installation in a directory. 9503finish_cmds=$lt_finish_cmds 9504 9505# Same as above, but a single script fragment to be evaled but not shown. 9506finish_eval=$lt_finish_eval 9507 9508# Take the output of nm and produce a listing of raw symbols and C names. 9509global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9510 9511# Transform the output of nm in a proper C declaration 9512global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9513 9514# Transform the output of nm in a C name address pair 9515global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9516 9517# This is the shared library runtime path variable. 9518runpath_var=$runpath_var 9519 9520# This is the shared library path variable. 9521shlibpath_var=$shlibpath_var 9522 9523# Is shlibpath searched before the hard-coded library search path? 9524shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9525 9526# How to hardcode a shared library path into an executable. 9527hardcode_action=$hardcode_action 9528 9529# Whether we should hardcode library paths into libraries. 9530hardcode_into_libs=$hardcode_into_libs 9531 9532# Flag to hardcode \$libdir into a binary during linking. 9533# This must work even if \$libdir does not exist. 9534hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9535 9536# If ld is used when linking, flag to hardcode \$libdir into 9537# a binary during linking. This must work even if \$libdir does 9538# not exist. 9539hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9540 9541# Whether we need a single -rpath flag with a separated argument. 9542hardcode_libdir_separator=$lt_hardcode_libdir_separator 9543 9544# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9545# resulting binary. 9546hardcode_direct=$hardcode_direct 9547 9548# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9549# resulting binary. 9550hardcode_minus_L=$hardcode_minus_L 9551 9552# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9553# the resulting binary. 9554hardcode_shlibpath_var=$hardcode_shlibpath_var 9555 9556# Set to yes if building a shared library automatically hardcodes DIR into the library 9557# and all subsequent libraries and executables linked against it. 9558hardcode_automatic=$hardcode_automatic 9559 9560# Variables whose values should be saved in libtool wrapper scripts and 9561# restored at relink time. 9562variables_saved_for_relink="$variables_saved_for_relink" 9563 9564# Whether libtool must link a program against all its dependency libraries. 9565link_all_deplibs=$link_all_deplibs 9566 9567# Compile-time system search path for libraries 9568sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9569 9570# Run-time system search path for libraries 9571sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9572 9573# Fix the shell variable \$srcfile for the compiler. 9574fix_srcfile_path="$fix_srcfile_path" 9575 9576# Set to yes if exported symbols are required. 9577always_export_symbols=$always_export_symbols 9578 9579# The commands to list exported symbols. 9580export_symbols_cmds=$lt_export_symbols_cmds 9581 9582# The commands to extract the exported symbol list from a shared archive. 9583extract_expsyms_cmds=$lt_extract_expsyms_cmds 9584 9585# Symbols that should not be listed in the preloaded symbols. 9586exclude_expsyms=$lt_exclude_expsyms 9587 9588# Symbols that must always be exported. 9589include_expsyms=$lt_include_expsyms 9590 9591# ### END LIBTOOL CONFIG 9592 9593__EOF__ 9594 9595 9596 case $host_os in 9597 aix3*) 9598 cat <<\EOF >> "$cfgfile" 9599 9600# AIX sometimes has problems with the GCC collect2 program. For some 9601# reason, if we set the COLLECT_NAMES environment variable, the problems 9602# vanish in a puff of smoke. 9603if test "X${COLLECT_NAMES+set}" != Xset; then 9604 COLLECT_NAMES= 9605 export COLLECT_NAMES 9606fi 9607EOF 9608 ;; 9609 esac 9610 9611 # We use sed instead of cat because bash on DJGPP gets confused if 9612 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9613 # text mode, it properly converts lines to CR/LF. This bash problem 9614 # is reportedly fixed, but why not run on old versions too? 9615 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9616 9617 mv -f "$cfgfile" "$ofile" || \ 9618 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9619 chmod +x "$ofile" 9620 9621else 9622 # If there is no Makefile yet, we rely on a make rule to execute 9623 # `config.status --recheck' to rerun these tests and create the 9624 # libtool script then. 9625 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9626 if test -f "$ltmain_in"; then 9627 test -f Makefile && make "$ltmain" 9628 fi 9629fi 9630 9631 9632ac_ext=c 9633ac_cpp='$CPP $CPPFLAGS' 9634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9636ac_compiler_gnu=$ac_cv_c_compiler_gnu 9637 9638CC="$lt_save_CC" 9639 9640 9641# Check whether --with-tags or --without-tags was given. 9642if test "${with_tags+set}" = set; then 9643 withval="$with_tags" 9644 tagnames="$withval" 9645fi; 9646 9647if test -f "$ltmain" && test -n "$tagnames"; then 9648 if test ! -f "${ofile}"; then 9649 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9650echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9651 fi 9652 9653 if test -z "$LTCC"; then 9654 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9655 if test -z "$LTCC"; then 9656 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9657echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9658 else 9659 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9660echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9661 fi 9662 fi 9663 9664 # Extract list of available tagged configurations in $ofile. 9665 # Note that this assumes the entire list is on one line. 9666 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9667 9668 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9669 for tagname in $tagnames; do 9670 IFS="$lt_save_ifs" 9671 # Check whether tagname contains only valid characters 9672 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9673 "") ;; 9674 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9675echo "$as_me: error: invalid tag name: $tagname" >&2;} 9676 { (exit 1); exit 1; }; } 9677 ;; 9678 esac 9679 9680 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9681 then 9682 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9683echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9684 { (exit 1); exit 1; }; } 9685 fi 9686 9687 # Update the list of available tags. 9688 if test -n "$tagname"; then 9689 echo appending configuration tag \"$tagname\" to $ofile 9690 9691 case $tagname in 9692 CXX) 9693 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9694 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9695 (test "X$CXX" != "Xg++"))) ; then 9696 ac_ext=cc 9697ac_cpp='$CXXCPP $CPPFLAGS' 9698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9701 9702 9703 9704 9705archive_cmds_need_lc_CXX=no 9706allow_undefined_flag_CXX= 9707always_export_symbols_CXX=no 9708archive_expsym_cmds_CXX= 9709export_dynamic_flag_spec_CXX= 9710hardcode_direct_CXX=no 9711hardcode_libdir_flag_spec_CXX= 9712hardcode_libdir_flag_spec_ld_CXX= 9713hardcode_libdir_separator_CXX= 9714hardcode_minus_L_CXX=no 9715hardcode_automatic_CXX=no 9716module_cmds_CXX= 9717module_expsym_cmds_CXX= 9718link_all_deplibs_CXX=unknown 9719old_archive_cmds_CXX=$old_archive_cmds 9720no_undefined_flag_CXX= 9721whole_archive_flag_spec_CXX= 9722enable_shared_with_static_runtimes_CXX=no 9723 9724# Dependencies to place before and after the object being linked: 9725predep_objects_CXX= 9726postdep_objects_CXX= 9727predeps_CXX= 9728postdeps_CXX= 9729compiler_lib_search_path_CXX= 9730 9731# Source file extension for C++ test sources. 9732ac_ext=cc 9733 9734# Object file extension for compiled C++ test sources. 9735objext=o 9736objext_CXX=$objext 9737 9738# Code to be used in simple compile tests 9739lt_simple_compile_test_code="int some_variable = 0;\n" 9740 9741# Code to be used in simple link tests 9742lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9743 9744# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9745 9746# If no C compiler was specified, use CC. 9747LTCC=${LTCC-"$CC"} 9748 9749# Allow CC to be a program name with arguments. 9750compiler=$CC 9751 9752 9753# save warnings/boilerplate of simple test code 9754ac_outfile=conftest.$ac_objext 9755printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9756eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9757_lt_compiler_boilerplate=`cat conftest.err` 9758$rm conftest* 9759 9760ac_outfile=conftest.$ac_objext 9761printf "$lt_simple_link_test_code" >conftest.$ac_ext 9762eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9763_lt_linker_boilerplate=`cat conftest.err` 9764$rm conftest* 9765 9766 9767# Allow CC to be a program name with arguments. 9768lt_save_CC=$CC 9769lt_save_LD=$LD 9770lt_save_GCC=$GCC 9771GCC=$GXX 9772lt_save_with_gnu_ld=$with_gnu_ld 9773lt_save_path_LD=$lt_cv_path_LD 9774if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9775 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9776else 9777 unset lt_cv_prog_gnu_ld 9778fi 9779if test -n "${lt_cv_path_LDCXX+set}"; then 9780 lt_cv_path_LD=$lt_cv_path_LDCXX 9781else 9782 unset lt_cv_path_LD 9783fi 9784test -z "${LDCXX+set}" || LD=$LDCXX 9785CC=${CXX-"c++"} 9786compiler=$CC 9787compiler_CXX=$CC 9788for cc_temp in $compiler""; do 9789 case $cc_temp in 9790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9792 \-*) ;; 9793 *) break;; 9794 esac 9795done 9796cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9797 9798 9799# We don't want -fno-exception wen compiling C++ code, so set the 9800# no_builtin_flag separately 9801if test "$GXX" = yes; then 9802 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9803else 9804 lt_prog_compiler_no_builtin_flag_CXX= 9805fi 9806 9807if test "$GXX" = yes; then 9808 # Set up default GNU C++ configuration 9809 9810 9811# Check whether --with-gnu-ld or --without-gnu-ld was given. 9812if test "${with_gnu_ld+set}" = set; then 9813 withval="$with_gnu_ld" 9814 test "$withval" = no || with_gnu_ld=yes 9815else 9816 with_gnu_ld=no 9817fi; 9818ac_prog=ld 9819if test "$GCC" = yes; then 9820 # Check if gcc -print-prog-name=ld gives a path. 9821 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9822echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9823 case $host in 9824 *-*-mingw*) 9825 # gcc leaves a trailing carriage return which upsets mingw 9826 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9827 *) 9828 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9829 esac 9830 case $ac_prog in 9831 # Accept absolute paths. 9832 [\\/]* | ?:[\\/]*) 9833 re_direlt='/[^/][^/]*/\.\./' 9834 # Canonicalize the pathname of ld 9835 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9836 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9837 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9838 done 9839 test -z "$LD" && LD="$ac_prog" 9840 ;; 9841 "") 9842 # If it fails, then pretend we aren't using GCC. 9843 ac_prog=ld 9844 ;; 9845 *) 9846 # If it is relative, then search for the first ld in PATH. 9847 with_gnu_ld=unknown 9848 ;; 9849 esac 9850elif test "$with_gnu_ld" = yes; then 9851 echo "$as_me:$LINENO: checking for GNU ld" >&5 9852echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9853else 9854 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9855echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9856fi 9857if test "${lt_cv_path_LD+set}" = set; then 9858 echo $ECHO_N "(cached) $ECHO_C" >&6 9859else 9860 if test -z "$LD"; then 9861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9862 for ac_dir in $PATH; do 9863 IFS="$lt_save_ifs" 9864 test -z "$ac_dir" && ac_dir=. 9865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9866 lt_cv_path_LD="$ac_dir/$ac_prog" 9867 # Check to see if the program is GNU ld. I'd rather use --version, 9868 # but apparently some GNU ld's only accept -v. 9869 # Break only if it was the GNU/non-GNU ld that we prefer. 9870 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9871 *GNU* | *'with BFD'*) 9872 test "$with_gnu_ld" != no && break 9873 ;; 9874 *) 9875 test "$with_gnu_ld" != yes && break 9876 ;; 9877 esac 9878 fi 9879 done 9880 IFS="$lt_save_ifs" 9881else 9882 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9883fi 9884fi 9885 9886LD="$lt_cv_path_LD" 9887if test -n "$LD"; then 9888 echo "$as_me:$LINENO: result: $LD" >&5 9889echo "${ECHO_T}$LD" >&6 9890else 9891 echo "$as_me:$LINENO: result: no" >&5 9892echo "${ECHO_T}no" >&6 9893fi 9894test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9895echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9896 { (exit 1); exit 1; }; } 9897echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9898echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9899if test "${lt_cv_prog_gnu_ld+set}" = set; then 9900 echo $ECHO_N "(cached) $ECHO_C" >&6 9901else 9902 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9903case `$LD -v 2>&1 </dev/null` in 9904*GNU* | *'with BFD'*) 9905 lt_cv_prog_gnu_ld=yes 9906 ;; 9907*) 9908 lt_cv_prog_gnu_ld=no 9909 ;; 9910esac 9911fi 9912echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9913echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9914with_gnu_ld=$lt_cv_prog_gnu_ld 9915 9916 9917 9918 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9919 # archiving commands below assume that GNU ld is being used. 9920 if test "$with_gnu_ld" = yes; then 9921 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9922 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' 9923 9924 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9926 9927 # If archive_cmds runs LD, not CC, wlarc should be empty 9928 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9929 # investigate it a little bit more. (MM) 9930 wlarc='${wl}' 9931 9932 # ancient GNU ld didn't support --whole-archive et. al. 9933 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9934 grep 'no-whole-archive' > /dev/null; then 9935 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9936 else 9937 whole_archive_flag_spec_CXX= 9938 fi 9939 else 9940 with_gnu_ld=no 9941 wlarc= 9942 9943 # A generic and very simple default shared library creation 9944 # command for GNU C++ for the case where it uses the native 9945 # linker, instead of GNU ld. If possible, this setting should 9946 # overridden to take advantage of the native linker features on 9947 # the platform it is being used on. 9948 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9949 fi 9950 9951 # Commands to make compiler produce verbose output that lists 9952 # what "hidden" libraries, object files and flags are used when 9953 # linking a shared library. 9954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9955 9956else 9957 GXX=no 9958 with_gnu_ld=no 9959 wlarc= 9960fi 9961 9962# PORTME: fill in a description of your system's C++ link characteristics 9963echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9964echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9965ld_shlibs_CXX=yes 9966case $host_os in 9967 aix3*) 9968 # FIXME: insert proper C++ library support 9969 ld_shlibs_CXX=no 9970 ;; 9971 aix4* | aix5*) 9972 if test "$host_cpu" = ia64; then 9973 # On IA64, the linker does run time linking by default, so we don't 9974 # have to do anything special. 9975 aix_use_runtimelinking=no 9976 exp_sym_flag='-Bexport' 9977 no_entry_flag="" 9978 else 9979 aix_use_runtimelinking=no 9980 9981 # Test if we are trying to use run time linking or normal 9982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9983 # need to do runtime linking. 9984 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9985 for ld_flag in $LDFLAGS; do 9986 case $ld_flag in 9987 *-brtl*) 9988 aix_use_runtimelinking=yes 9989 break 9990 ;; 9991 esac 9992 done 9993 esac 9994 9995 exp_sym_flag='-bexport' 9996 no_entry_flag='-bnoentry' 9997 fi 9998 9999 # When large executables or shared objects are built, AIX ld can 10000 # have problems creating the table of contents. If linking a library 10001 # or program results in "error TOC overflow" add -mminimal-toc to 10002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10004 10005 archive_cmds_CXX='' 10006 hardcode_direct_CXX=yes 10007 hardcode_libdir_separator_CXX=':' 10008 link_all_deplibs_CXX=yes 10009 10010 if test "$GXX" = yes; then 10011 case $host_os in aix4.[012]|aix4.[012].*) 10012 # We only want to do this on AIX 4.2 and lower, the check 10013 # below for broken collect2 doesn't work under 4.3+ 10014 collect2name=`${CC} -print-prog-name=collect2` 10015 if test -f "$collect2name" && \ 10016 strings "$collect2name" | grep resolve_lib_name >/dev/null 10017 then 10018 # We have reworked collect2 10019 hardcode_direct_CXX=yes 10020 else 10021 # We have old collect2 10022 hardcode_direct_CXX=unsupported 10023 # It fails to find uninstalled libraries when the uninstalled 10024 # path is not listed in the libpath. Setting hardcode_minus_L 10025 # to unsupported forces relinking 10026 hardcode_minus_L_CXX=yes 10027 hardcode_libdir_flag_spec_CXX='-L$libdir' 10028 hardcode_libdir_separator_CXX= 10029 fi 10030 esac 10031 shared_flag='-shared' 10032 if test "$aix_use_runtimelinking" = yes; then 10033 shared_flag="$shared_flag "'${wl}-G' 10034 fi 10035 else 10036 # not using gcc 10037 if test "$host_cpu" = ia64; then 10038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10039 # chokes on -Wl,-G. The following line is correct: 10040 shared_flag='-G' 10041 else 10042 if test "$aix_use_runtimelinking" = yes; then 10043 shared_flag='${wl}-G' 10044 else 10045 shared_flag='${wl}-bM:SRE' 10046 fi 10047 fi 10048 fi 10049 10050 # It seems that -bexpall does not export symbols beginning with 10051 # underscore (_), so it is better to generate a list of symbols to export. 10052 always_export_symbols_CXX=yes 10053 if test "$aix_use_runtimelinking" = yes; then 10054 # Warning - without using the other runtime loading flags (-brtl), 10055 # -berok will link without error, but may produce a broken library. 10056 allow_undefined_flag_CXX='-berok' 10057 # Determine the default libpath from the value encoded in an empty executable. 10058 cat >conftest.$ac_ext <<_ACEOF 10059/* confdefs.h. */ 10060_ACEOF 10061cat confdefs.h >>conftest.$ac_ext 10062cat >>conftest.$ac_ext <<_ACEOF 10063/* end confdefs.h. */ 10064 10065int 10066main () 10067{ 10068 10069 ; 10070 return 0; 10071} 10072_ACEOF 10073rm -f conftest.$ac_objext conftest$ac_exeext 10074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10075 (eval $ac_link) 2>conftest.er1 10076 ac_status=$? 10077 grep -v '^ *+' conftest.er1 >conftest.err 10078 rm -f conftest.er1 10079 cat conftest.err >&5 10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10081 (exit $ac_status); } && 10082 { ac_try='test -z "$ac_cxx_werror_flag" 10083 || test ! -s conftest.err' 10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10085 (eval $ac_try) 2>&5 10086 ac_status=$? 10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10088 (exit $ac_status); }; } && 10089 { ac_try='test -s conftest$ac_exeext' 10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10091 (eval $ac_try) 2>&5 10092 ac_status=$? 10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10094 (exit $ac_status); }; }; then 10095 10096aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10097}'` 10098# Check for a 64-bit object if we didn't find anything. 10099if 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; } 10100}'`; fi 10101else 10102 echo "$as_me: failed program was:" >&5 10103sed 's/^/| /' conftest.$ac_ext >&5 10104 10105fi 10106rm -f conftest.err conftest.$ac_objext \ 10107 conftest$ac_exeext conftest.$ac_ext 10108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10109 10110 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10111 10112 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" 10113 else 10114 if test "$host_cpu" = ia64; then 10115 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10116 allow_undefined_flag_CXX="-z nodefs" 10117 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" 10118 else 10119 # Determine the default libpath from the value encoded in an empty executable. 10120 cat >conftest.$ac_ext <<_ACEOF 10121/* confdefs.h. */ 10122_ACEOF 10123cat confdefs.h >>conftest.$ac_ext 10124cat >>conftest.$ac_ext <<_ACEOF 10125/* end confdefs.h. */ 10126 10127int 10128main () 10129{ 10130 10131 ; 10132 return 0; 10133} 10134_ACEOF 10135rm -f conftest.$ac_objext conftest$ac_exeext 10136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10137 (eval $ac_link) 2>conftest.er1 10138 ac_status=$? 10139 grep -v '^ *+' conftest.er1 >conftest.err 10140 rm -f conftest.er1 10141 cat conftest.err >&5 10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10143 (exit $ac_status); } && 10144 { ac_try='test -z "$ac_cxx_werror_flag" 10145 || test ! -s conftest.err' 10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10147 (eval $ac_try) 2>&5 10148 ac_status=$? 10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10150 (exit $ac_status); }; } && 10151 { ac_try='test -s conftest$ac_exeext' 10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10153 (eval $ac_try) 2>&5 10154 ac_status=$? 10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10156 (exit $ac_status); }; }; then 10157 10158aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10159}'` 10160# Check for a 64-bit object if we didn't find anything. 10161if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10162}'`; fi 10163else 10164 echo "$as_me: failed program was:" >&5 10165sed 's/^/| /' conftest.$ac_ext >&5 10166 10167fi 10168rm -f conftest.err conftest.$ac_objext \ 10169 conftest$ac_exeext conftest.$ac_ext 10170if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10171 10172 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10173 # Warning - without using the other run time loading flags, 10174 # -berok will link without error, but may produce a broken library. 10175 no_undefined_flag_CXX=' ${wl}-bernotok' 10176 allow_undefined_flag_CXX=' ${wl}-berok' 10177 # -bexpall does not export symbols beginning with underscore (_) 10178 always_export_symbols_CXX=yes 10179 # Exported symbols can be pulled into shared objects from archives 10180 whole_archive_flag_spec_CXX=' ' 10181 archive_cmds_need_lc_CXX=yes 10182 # This is similar to how AIX traditionally builds it's shared libraries. 10183 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' 10184 fi 10185 fi 10186 ;; 10187 chorus*) 10188 case $cc_basename in 10189 *) 10190 # FIXME: insert proper C++ library support 10191 ld_shlibs_CXX=no 10192 ;; 10193 esac 10194 ;; 10195 10196 10197 cygwin* | mingw* | pw32*) 10198 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10199 # as there is no search path for DLLs. 10200 hardcode_libdir_flag_spec_CXX='-L$libdir' 10201 allow_undefined_flag_CXX=unsupported 10202 always_export_symbols_CXX=no 10203 enable_shared_with_static_runtimes_CXX=yes 10204 10205 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10206 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' 10207 # If the export-symbols file already is a .def file (1st line 10208 # is EXPORTS), use it as is; otherwise, prepend... 10209 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10210 cp $export_symbols $output_objdir/$soname.def; 10211 else 10212 echo EXPORTS > $output_objdir/$soname.def; 10213 cat $export_symbols >> $output_objdir/$soname.def; 10214 fi~ 10215 $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' 10216 else 10217 ld_shlibs_CXX=no 10218 fi 10219 ;; 10220 darwin* | rhapsody*) 10221 case "$host_os" in 10222 rhapsody* | darwin1.[012]) 10223 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10224 ;; 10225 *) # Darwin 1.3 on 10226 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10227 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10228 else 10229 case ${MACOSX_DEPLOYMENT_TARGET} in 10230 10.[012]) 10231 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10232 ;; 10233 10.*) 10234 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10235 ;; 10236 esac 10237 fi 10238 ;; 10239 esac 10240 archive_cmds_need_lc_CXX=no 10241 hardcode_direct_CXX=no 10242 hardcode_automatic_CXX=yes 10243 hardcode_shlibpath_var_CXX=unsupported 10244 whole_archive_flag_spec_CXX='' 10245 link_all_deplibs_CXX=yes 10246 10247 if test "$GXX" = yes ; then 10248 lt_int_apple_cc_single_mod=no 10249 output_verbose_link_cmd='echo' 10250 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10251 lt_int_apple_cc_single_mod=yes 10252 fi 10253 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10254 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10255 else 10256 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10257 fi 10258 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10259 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10260 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10261 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}' 10262 else 10263 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10264 fi 10265 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}' 10266 else 10267 case $cc_basename in 10268 xlc*) 10269 output_verbose_link_cmd='echo' 10270 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10271 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10272 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10273 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10274 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}' 10275 ;; 10276 *) 10277 ld_shlibs_CXX=no 10278 ;; 10279 esac 10280 fi 10281 ;; 10282 10283 dgux*) 10284 case $cc_basename in 10285 ec++*) 10286 # FIXME: insert proper C++ library support 10287 ld_shlibs_CXX=no 10288 ;; 10289 ghcx*) 10290 # Green Hills C++ Compiler 10291 # FIXME: insert proper C++ library support 10292 ld_shlibs_CXX=no 10293 ;; 10294 *) 10295 # FIXME: insert proper C++ library support 10296 ld_shlibs_CXX=no 10297 ;; 10298 esac 10299 ;; 10300 freebsd[12]*) 10301 # C++ shared libraries reported to be fairly broken before switch to ELF 10302 ld_shlibs_CXX=no 10303 ;; 10304 freebsd-elf*) 10305 archive_cmds_need_lc_CXX=no 10306 ;; 10307 freebsd* | kfreebsd*-gnu | dragonfly*) 10308 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10309 # conventions 10310 ld_shlibs_CXX=yes 10311 ;; 10312 gnu*) 10313 ;; 10314 hpux9*) 10315 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10316 hardcode_libdir_separator_CXX=: 10317 export_dynamic_flag_spec_CXX='${wl}-E' 10318 hardcode_direct_CXX=yes 10319 hardcode_minus_L_CXX=yes # Not in the search PATH, 10320 # but as the default 10321 # location of the library. 10322 10323 case $cc_basename in 10324 CC*) 10325 # FIXME: insert proper C++ library support 10326 ld_shlibs_CXX=no 10327 ;; 10328 aCC*) 10329 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' 10330 # Commands to make compiler produce verbose output that lists 10331 # what "hidden" libraries, object files and flags are used when 10332 # linking a shared library. 10333 # 10334 # There doesn't appear to be a way to prevent this compiler from 10335 # explicitly linking system object files so we need to strip them 10336 # from the output so that they don't get included in the library 10337 # dependencies. 10338 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' 10339 ;; 10340 *) 10341 if test "$GXX" = yes; then 10342 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' 10343 else 10344 # FIXME: insert proper C++ library support 10345 ld_shlibs_CXX=no 10346 fi 10347 ;; 10348 esac 10349 ;; 10350 hpux10*|hpux11*) 10351 if test $with_gnu_ld = no; then 10352 case "$host_cpu" in 10353 hppa*64*) 10354 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10355 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10356 hardcode_libdir_separator_CXX=: 10357 ;; 10358 ia64*) 10359 hardcode_libdir_flag_spec_CXX='-L$libdir' 10360 ;; 10361 *) 10362 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10363 hardcode_libdir_separator_CXX=: 10364 export_dynamic_flag_spec_CXX='${wl}-E' 10365 ;; 10366 esac 10367 fi 10368 case "$host_cpu" in 10369 hppa*64*) 10370 hardcode_direct_CXX=no 10371 hardcode_shlibpath_var_CXX=no 10372 ;; 10373 ia64*) 10374 hardcode_direct_CXX=no 10375 hardcode_shlibpath_var_CXX=no 10376 hardcode_minus_L_CXX=yes # Not in the search PATH, 10377 # but as the default 10378 # location of the library. 10379 ;; 10380 *) 10381 hardcode_direct_CXX=yes 10382 hardcode_minus_L_CXX=yes # Not in the search PATH, 10383 # but as the default 10384 # location of the library. 10385 ;; 10386 esac 10387 10388 case $cc_basename in 10389 CC*) 10390 # FIXME: insert proper C++ library support 10391 ld_shlibs_CXX=no 10392 ;; 10393 aCC*) 10394 case "$host_cpu" in 10395 hppa*64*|ia64*) 10396 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10397 ;; 10398 *) 10399 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10400 ;; 10401 esac 10402 # Commands to make compiler produce verbose output that lists 10403 # what "hidden" libraries, object files and flags are used when 10404 # linking a shared library. 10405 # 10406 # There doesn't appear to be a way to prevent this compiler from 10407 # explicitly linking system object files so we need to strip them 10408 # from the output so that they don't get included in the library 10409 # dependencies. 10410 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' 10411 ;; 10412 *) 10413 if test "$GXX" = yes; then 10414 if test $with_gnu_ld = no; then 10415 case "$host_cpu" in 10416 ia64*|hppa*64*) 10417 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10418 ;; 10419 *) 10420 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' 10421 ;; 10422 esac 10423 fi 10424 else 10425 # FIXME: insert proper C++ library support 10426 ld_shlibs_CXX=no 10427 fi 10428 ;; 10429 esac 10430 ;; 10431 irix5* | irix6*) 10432 case $cc_basename in 10433 CC*) 10434 # SGI C++ 10435 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10436 10437 # Archives containing C++ object files must be created using 10438 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10439 # necessary to make sure instantiated templates are included 10440 # in the archive. 10441 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10442 ;; 10443 *) 10444 if test "$GXX" = yes; then 10445 if test "$with_gnu_ld" = no; then 10446 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10447 else 10448 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' 10449 fi 10450 fi 10451 link_all_deplibs_CXX=yes 10452 ;; 10453 esac 10454 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10455 hardcode_libdir_separator_CXX=: 10456 ;; 10457 linux*) 10458 case $cc_basename in 10459 KCC*) 10460 # Kuck and Associates, Inc. (KAI) C++ Compiler 10461 10462 # KCC will only create a shared library if the output file 10463 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10464 # to its proper name (with version) after linking. 10465 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' 10466 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' 10467 # Commands to make compiler produce verbose output that lists 10468 # what "hidden" libraries, object files and flags are used when 10469 # linking a shared library. 10470 # 10471 # There doesn't appear to be a way to prevent this compiler from 10472 # explicitly linking system object files so we need to strip them 10473 # from the output so that they don't get included in the library 10474 # dependencies. 10475 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' 10476 10477 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10478 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10479 10480 # Archives containing C++ object files must be created using 10481 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10482 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10483 ;; 10484 icpc*) 10485 # Intel C++ 10486 with_gnu_ld=yes 10487 # version 8.0 and above of icpc choke on multiply defined symbols 10488 # if we add $predep_objects and $postdep_objects, however 7.1 and 10489 # earlier do not add the objects themselves. 10490 case `$CC -V 2>&1` in 10491 *"Version 7."*) 10492 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10493 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' 10494 ;; 10495 *) # Version 8.0 or newer 10496 tmp_idyn= 10497 case $host_cpu in 10498 ia64*) tmp_idyn=' -i_dynamic';; 10499 esac 10500 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10501 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10502 ;; 10503 esac 10504 archive_cmds_need_lc_CXX=no 10505 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10506 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10507 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10508 ;; 10509 pgCC*) 10510 # Portland Group C++ compiler 10511 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10512 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' 10513 10514 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10516 whole_archive_flag_spec_CXX='' 10517 ;; 10518 cxx*) 10519 # Compaq C++ 10520 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10521 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' 10522 10523 runpath_var=LD_RUN_PATH 10524 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10525 hardcode_libdir_separator_CXX=: 10526 10527 # Commands to make compiler produce verbose output that lists 10528 # what "hidden" libraries, object files and flags are used when 10529 # linking a shared library. 10530 # 10531 # There doesn't appear to be a way to prevent this compiler from 10532 # explicitly linking system object files so we need to strip them 10533 # from the output so that they don't get included in the library 10534 # dependencies. 10535 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' 10536 ;; 10537 esac 10538 ;; 10539 lynxos*) 10540 # FIXME: insert proper C++ library support 10541 ld_shlibs_CXX=no 10542 ;; 10543 m88k*) 10544 # FIXME: insert proper C++ library support 10545 ld_shlibs_CXX=no 10546 ;; 10547 mvs*) 10548 case $cc_basename in 10549 cxx*) 10550 # FIXME: insert proper C++ library support 10551 ld_shlibs_CXX=no 10552 ;; 10553 *) 10554 # FIXME: insert proper C++ library support 10555 ld_shlibs_CXX=no 10556 ;; 10557 esac 10558 ;; 10559 netbsd*) 10560 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10561 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10562 wlarc= 10563 hardcode_libdir_flag_spec_CXX='-R$libdir' 10564 hardcode_direct_CXX=yes 10565 hardcode_shlibpath_var_CXX=no 10566 fi 10567 # Workaround some broken pre-1.5 toolchains 10568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10569 ;; 10570 openbsd2*) 10571 # C++ shared libraries are fairly broken 10572 ld_shlibs_CXX=no 10573 ;; 10574 openbsd*) 10575 hardcode_direct_CXX=yes 10576 hardcode_shlibpath_var_CXX=no 10577 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10580 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10581 export_dynamic_flag_spec_CXX='${wl}-E' 10582 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10583 fi 10584 output_verbose_link_cmd='echo' 10585 ;; 10586 osf3*) 10587 case $cc_basename in 10588 KCC*) 10589 # Kuck and Associates, Inc. (KAI) C++ Compiler 10590 10591 # KCC will only create a shared library if the output file 10592 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10593 # to its proper name (with version) after linking. 10594 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' 10595 10596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10597 hardcode_libdir_separator_CXX=: 10598 10599 # Archives containing C++ object files must be created using 10600 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10601 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10602 10603 ;; 10604 RCC*) 10605 # Rational C++ 2.4.1 10606 # FIXME: insert proper C++ library support 10607 ld_shlibs_CXX=no 10608 ;; 10609 cxx*) 10610 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10611 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10612 10613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10614 hardcode_libdir_separator_CXX=: 10615 10616 # Commands to make compiler produce verbose output that lists 10617 # what "hidden" libraries, object files and flags are used when 10618 # linking a shared library. 10619 # 10620 # There doesn't appear to be a way to prevent this compiler from 10621 # explicitly linking system object files so we need to strip them 10622 # from the output so that they don't get included in the library 10623 # dependencies. 10624 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' 10625 ;; 10626 *) 10627 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10628 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10629 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10630 10631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10632 hardcode_libdir_separator_CXX=: 10633 10634 # Commands to make compiler produce verbose output that lists 10635 # what "hidden" libraries, object files and flags are used when 10636 # linking a shared library. 10637 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10638 10639 else 10640 # FIXME: insert proper C++ library support 10641 ld_shlibs_CXX=no 10642 fi 10643 ;; 10644 esac 10645 ;; 10646 osf4* | osf5*) 10647 case $cc_basename in 10648 KCC*) 10649 # Kuck and Associates, Inc. (KAI) C++ Compiler 10650 10651 # KCC will only create a shared library if the output file 10652 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10653 # to its proper name (with version) after linking. 10654 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' 10655 10656 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10657 hardcode_libdir_separator_CXX=: 10658 10659 # Archives containing C++ object files must be created using 10660 # the KAI C++ compiler. 10661 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10662 ;; 10663 RCC*) 10664 # Rational C++ 2.4.1 10665 # FIXME: insert proper C++ library support 10666 ld_shlibs_CXX=no 10667 ;; 10668 cxx*) 10669 allow_undefined_flag_CXX=' -expect_unresolved \*' 10670 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10671 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10672 echo "-hidden">> $lib.exp~ 10673 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 10674 $rm $lib.exp' 10675 10676 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10677 hardcode_libdir_separator_CXX=: 10678 10679 # Commands to make compiler produce verbose output that lists 10680 # what "hidden" libraries, object files and flags are used when 10681 # linking a shared library. 10682 # 10683 # There doesn't appear to be a way to prevent this compiler from 10684 # explicitly linking system object files so we need to strip them 10685 # from the output so that they don't get included in the library 10686 # dependencies. 10687 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' 10688 ;; 10689 *) 10690 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10691 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10692 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10693 10694 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10695 hardcode_libdir_separator_CXX=: 10696 10697 # Commands to make compiler produce verbose output that lists 10698 # what "hidden" libraries, object files and flags are used when 10699 # linking a shared library. 10700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10701 10702 else 10703 # FIXME: insert proper C++ library support 10704 ld_shlibs_CXX=no 10705 fi 10706 ;; 10707 esac 10708 ;; 10709 psos*) 10710 # FIXME: insert proper C++ library support 10711 ld_shlibs_CXX=no 10712 ;; 10713 sco*) 10714 archive_cmds_need_lc_CXX=no 10715 case $cc_basename in 10716 CC*) 10717 # FIXME: insert proper C++ library support 10718 ld_shlibs_CXX=no 10719 ;; 10720 *) 10721 # FIXME: insert proper C++ library support 10722 ld_shlibs_CXX=no 10723 ;; 10724 esac 10725 ;; 10726 sunos4*) 10727 case $cc_basename in 10728 CC*) 10729 # Sun C++ 4.x 10730 # FIXME: insert proper C++ library support 10731 ld_shlibs_CXX=no 10732 ;; 10733 lcc*) 10734 # Lucid 10735 # FIXME: insert proper C++ library support 10736 ld_shlibs_CXX=no 10737 ;; 10738 *) 10739 # FIXME: insert proper C++ library support 10740 ld_shlibs_CXX=no 10741 ;; 10742 esac 10743 ;; 10744 solaris*) 10745 case $cc_basename in 10746 CC*) 10747 # Sun C++ 4.2, 5.x and Centerline C++ 10748 no_undefined_flag_CXX=' -zdefs' 10749 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10750 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10751 $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' 10752 10753 hardcode_libdir_flag_spec_CXX='-R$libdir' 10754 hardcode_shlibpath_var_CXX=no 10755 case $host_os in 10756 solaris2.[0-5] | solaris2.[0-5].*) ;; 10757 *) 10758 # The C++ compiler is used as linker so we must use $wl 10759 # flag to pass the commands to the underlying system 10760 # linker. We must also pass each convience library through 10761 # to the system linker between allextract/defaultextract. 10762 # The C++ compiler will combine linker options so we 10763 # cannot just pass the convience library names through 10764 # without $wl. 10765 # Supported since Solaris 2.6 (maybe 2.5.1?) 10766 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 10767 ;; 10768 esac 10769 link_all_deplibs_CXX=yes 10770 10771 # Commands to make compiler produce verbose output that lists 10772 # what "hidden" libraries, object files and flags are used when 10773 # linking a shared library. 10774 # 10775 # There doesn't appear to be a way to prevent this compiler from 10776 # explicitly linking system object files so we need to strip them 10777 # from the output so that they don't get included in the library 10778 # dependencies. 10779 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' 10780 10781 # Archives containing C++ object files must be created using 10782 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10783 # necessary to make sure instantiated templates are included 10784 # in the archive. 10785 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10786 ;; 10787 gcx*) 10788 # Green Hills C++ Compiler 10789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10790 10791 # The C++ compiler must be used to create the archive. 10792 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10793 ;; 10794 *) 10795 # GNU C++ compiler with Solaris linker 10796 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10797 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10798 if $CC --version | grep -v '^2\.7' > /dev/null; then 10799 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10800 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10801 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10802 10803 # Commands to make compiler produce verbose output that lists 10804 # what "hidden" libraries, object files and flags are used when 10805 # linking a shared library. 10806 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10807 else 10808 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10809 # platform. 10810 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10811 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10812 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10813 10814 # Commands to make compiler produce verbose output that lists 10815 # what "hidden" libraries, object files and flags are used when 10816 # linking a shared library. 10817 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10818 fi 10819 10820 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10821 fi 10822 ;; 10823 esac 10824 ;; 10825 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10826 archive_cmds_need_lc_CXX=no 10827 ;; 10828 tandem*) 10829 case $cc_basename in 10830 NCC*) 10831 # NonStop-UX NCC 3.20 10832 # FIXME: insert proper C++ library support 10833 ld_shlibs_CXX=no 10834 ;; 10835 *) 10836 # FIXME: insert proper C++ library support 10837 ld_shlibs_CXX=no 10838 ;; 10839 esac 10840 ;; 10841 vxworks*) 10842 # FIXME: insert proper C++ library support 10843 ld_shlibs_CXX=no 10844 ;; 10845 *) 10846 # FIXME: insert proper C++ library support 10847 ld_shlibs_CXX=no 10848 ;; 10849esac 10850echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10851echo "${ECHO_T}$ld_shlibs_CXX" >&6 10852test "$ld_shlibs_CXX" = no && can_build_shared=no 10853 10854GCC_CXX="$GXX" 10855LD_CXX="$LD" 10856 10857 10858cat > conftest.$ac_ext <<EOF 10859class Foo 10860{ 10861public: 10862 Foo (void) { a = 0; } 10863private: 10864 int a; 10865}; 10866EOF 10867 10868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10869 (eval $ac_compile) 2>&5 10870 ac_status=$? 10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10872 (exit $ac_status); }; then 10873 # Parse the compiler output and extract the necessary 10874 # objects, libraries and library flags. 10875 10876 # Sentinel used to keep track of whether or not we are before 10877 # the conftest object file. 10878 pre_test_object_deps_done=no 10879 10880 # The `*' in the case matches for architectures that use `case' in 10881 # $output_verbose_cmd can trigger glob expansion during the loop 10882 # eval without this substitution. 10883 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10884 10885 for p in `eval $output_verbose_link_cmd`; do 10886 case $p in 10887 10888 -L* | -R* | -l*) 10889 # Some compilers place space between "-{L,R}" and the path. 10890 # Remove the space. 10891 if test $p = "-L" \ 10892 || test $p = "-R"; then 10893 prev=$p 10894 continue 10895 else 10896 prev= 10897 fi 10898 10899 if test "$pre_test_object_deps_done" = no; then 10900 case $p in 10901 -L* | -R*) 10902 # Internal compiler library paths should come after those 10903 # provided the user. The postdeps already come after the 10904 # user supplied libs so there is no need to process them. 10905 if test -z "$compiler_lib_search_path_CXX"; then 10906 compiler_lib_search_path_CXX="${prev}${p}" 10907 else 10908 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10909 fi 10910 ;; 10911 # The "-l" case would never come before the object being 10912 # linked, so don't bother handling this case. 10913 esac 10914 else 10915 if test -z "$postdeps_CXX"; then 10916 postdeps_CXX="${prev}${p}" 10917 else 10918 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10919 fi 10920 fi 10921 ;; 10922 10923 *.$objext) 10924 # This assumes that the test object file only shows up 10925 # once in the compiler output. 10926 if test "$p" = "conftest.$objext"; then 10927 pre_test_object_deps_done=yes 10928 continue 10929 fi 10930 10931 if test "$pre_test_object_deps_done" = no; then 10932 if test -z "$predep_objects_CXX"; then 10933 predep_objects_CXX="$p" 10934 else 10935 predep_objects_CXX="$predep_objects_CXX $p" 10936 fi 10937 else 10938 if test -z "$postdep_objects_CXX"; then 10939 postdep_objects_CXX="$p" 10940 else 10941 postdep_objects_CXX="$postdep_objects_CXX $p" 10942 fi 10943 fi 10944 ;; 10945 10946 *) ;; # Ignore the rest. 10947 10948 esac 10949 done 10950 10951 # Clean up. 10952 rm -f a.out a.exe 10953else 10954 echo "libtool.m4: error: problem compiling CXX test program" 10955fi 10956 10957$rm -f confest.$objext 10958 10959case " $postdeps_CXX " in 10960*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10961esac 10962 10963lt_prog_compiler_wl_CXX= 10964lt_prog_compiler_pic_CXX= 10965lt_prog_compiler_static_CXX= 10966 10967echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10968echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10969 10970 # C++ specific cases for pic, static, wl, etc. 10971 if test "$GXX" = yes; then 10972 lt_prog_compiler_wl_CXX='-Wl,' 10973 lt_prog_compiler_static_CXX='-static' 10974 10975 case $host_os in 10976 aix*) 10977 # All AIX code is PIC. 10978 if test "$host_cpu" = ia64; then 10979 # AIX 5 now supports IA64 processor 10980 lt_prog_compiler_static_CXX='-Bstatic' 10981 fi 10982 ;; 10983 amigaos*) 10984 # FIXME: we need at least 68020 code to build shared libraries, but 10985 # adding the `-m68020' flag to GCC prevents building anything better, 10986 # like `-m68040'. 10987 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10988 ;; 10989 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10990 # PIC is the default for these OSes. 10991 ;; 10992 mingw* | os2* | pw32*) 10993 # This hack is so that the source file can tell whether it is being 10994 # built for inclusion in a dll (and should export symbols for example). 10995 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10996 ;; 10997 darwin* | rhapsody*) 10998 # PIC is the default on this platform 10999 # Common symbols not allowed in MH_DYLIB files 11000 lt_prog_compiler_pic_CXX='-fno-common' 11001 ;; 11002 *djgpp*) 11003 # DJGPP does not support shared libraries at all 11004 lt_prog_compiler_pic_CXX= 11005 ;; 11006 sysv4*MP*) 11007 if test -d /usr/nec; then 11008 lt_prog_compiler_pic_CXX=-Kconform_pic 11009 fi 11010 ;; 11011 hpux*) 11012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11013 # not for PA HP-UX. 11014 case "$host_cpu" in 11015 hppa*64*|ia64*) 11016 ;; 11017 *) 11018 lt_prog_compiler_pic_CXX='-fPIC' 11019 ;; 11020 esac 11021 ;; 11022 *) 11023 lt_prog_compiler_pic_CXX='-fPIC' 11024 ;; 11025 esac 11026 else 11027 case $host_os in 11028 aix4* | aix5*) 11029 # All AIX code is PIC. 11030 if test "$host_cpu" = ia64; then 11031 # AIX 5 now supports IA64 processor 11032 lt_prog_compiler_static_CXX='-Bstatic' 11033 else 11034 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11035 fi 11036 ;; 11037 chorus*) 11038 case $cc_basename in 11039 cxch68*) 11040 # Green Hills C++ Compiler 11041 # _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" 11042 ;; 11043 esac 11044 ;; 11045 darwin*) 11046 # PIC is the default on this platform 11047 # Common symbols not allowed in MH_DYLIB files 11048 case $cc_basename in 11049 xlc*) 11050 lt_prog_compiler_pic_CXX='-qnocommon' 11051 lt_prog_compiler_wl_CXX='-Wl,' 11052 ;; 11053 esac 11054 ;; 11055 dgux*) 11056 case $cc_basename in 11057 ec++*) 11058 lt_prog_compiler_pic_CXX='-KPIC' 11059 ;; 11060 ghcx*) 11061 # Green Hills C++ Compiler 11062 lt_prog_compiler_pic_CXX='-pic' 11063 ;; 11064 *) 11065 ;; 11066 esac 11067 ;; 11068 freebsd* | kfreebsd*-gnu | dragonfly*) 11069 # FreeBSD uses GNU C++ 11070 ;; 11071 hpux9* | hpux10* | hpux11*) 11072 case $cc_basename in 11073 CC*) 11074 lt_prog_compiler_wl_CXX='-Wl,' 11075 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11076 if test "$host_cpu" != ia64; then 11077 lt_prog_compiler_pic_CXX='+Z' 11078 fi 11079 ;; 11080 aCC*) 11081 lt_prog_compiler_wl_CXX='-Wl,' 11082 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11083 case "$host_cpu" in 11084 hppa*64*|ia64*) 11085 # +Z the default 11086 ;; 11087 *) 11088 lt_prog_compiler_pic_CXX='+Z' 11089 ;; 11090 esac 11091 ;; 11092 *) 11093 ;; 11094 esac 11095 ;; 11096 irix5* | irix6* | nonstopux*) 11097 case $cc_basename in 11098 CC*) 11099 lt_prog_compiler_wl_CXX='-Wl,' 11100 lt_prog_compiler_static_CXX='-non_shared' 11101 # CC pic flag -KPIC is the default. 11102 ;; 11103 *) 11104 ;; 11105 esac 11106 ;; 11107 linux*) 11108 case $cc_basename in 11109 KCC*) 11110 # KAI C++ Compiler 11111 lt_prog_compiler_wl_CXX='--backend -Wl,' 11112 lt_prog_compiler_pic_CXX='-fPIC' 11113 ;; 11114 icpc* | ecpc*) 11115 # Intel C++ 11116 lt_prog_compiler_wl_CXX='-Wl,' 11117 lt_prog_compiler_pic_CXX='-KPIC' 11118 lt_prog_compiler_static_CXX='-static' 11119 ;; 11120 pgCC*) 11121 # Portland Group C++ compiler. 11122 lt_prog_compiler_wl_CXX='-Wl,' 11123 lt_prog_compiler_pic_CXX='-fpic' 11124 lt_prog_compiler_static_CXX='-static' 11125 ;; 11126 cxx*) 11127 # Compaq C++ 11128 # Make sure the PIC flag is empty. It appears that all Alpha 11129 # Linux and Compaq Tru64 Unix objects are PIC. 11130 lt_prog_compiler_pic_CXX= 11131 lt_prog_compiler_static_CXX='-non_shared' 11132 ;; 11133 *) 11134 ;; 11135 esac 11136 ;; 11137 lynxos*) 11138 ;; 11139 m88k*) 11140 ;; 11141 mvs*) 11142 case $cc_basename in 11143 cxx*) 11144 lt_prog_compiler_pic_CXX='-W c,exportall' 11145 ;; 11146 *) 11147 ;; 11148 esac 11149 ;; 11150 netbsd*) 11151 ;; 11152 osf3* | osf4* | osf5*) 11153 case $cc_basename in 11154 KCC*) 11155 lt_prog_compiler_wl_CXX='--backend -Wl,' 11156 ;; 11157 RCC*) 11158 # Rational C++ 2.4.1 11159 lt_prog_compiler_pic_CXX='-pic' 11160 ;; 11161 cxx*) 11162 # Digital/Compaq C++ 11163 lt_prog_compiler_wl_CXX='-Wl,' 11164 # Make sure the PIC flag is empty. It appears that all Alpha 11165 # Linux and Compaq Tru64 Unix objects are PIC. 11166 lt_prog_compiler_pic_CXX= 11167 lt_prog_compiler_static_CXX='-non_shared' 11168 ;; 11169 *) 11170 ;; 11171 esac 11172 ;; 11173 psos*) 11174 ;; 11175 sco*) 11176 case $cc_basename in 11177 CC*) 11178 lt_prog_compiler_pic_CXX='-fPIC' 11179 ;; 11180 *) 11181 ;; 11182 esac 11183 ;; 11184 solaris*) 11185 case $cc_basename in 11186 CC*) 11187 # Sun C++ 4.2, 5.x and Centerline C++ 11188 lt_prog_compiler_pic_CXX='-KPIC' 11189 lt_prog_compiler_static_CXX='-Bstatic' 11190 lt_prog_compiler_wl_CXX='-Qoption ld ' 11191 ;; 11192 gcx*) 11193 # Green Hills C++ Compiler 11194 lt_prog_compiler_pic_CXX='-PIC' 11195 ;; 11196 *) 11197 ;; 11198 esac 11199 ;; 11200 sunos4*) 11201 case $cc_basename in 11202 CC*) 11203 # Sun C++ 4.x 11204 lt_prog_compiler_pic_CXX='-pic' 11205 lt_prog_compiler_static_CXX='-Bstatic' 11206 ;; 11207 lcc*) 11208 # Lucid 11209 lt_prog_compiler_pic_CXX='-pic' 11210 ;; 11211 *) 11212 ;; 11213 esac 11214 ;; 11215 tandem*) 11216 case $cc_basename in 11217 NCC*) 11218 # NonStop-UX NCC 3.20 11219 lt_prog_compiler_pic_CXX='-KPIC' 11220 ;; 11221 *) 11222 ;; 11223 esac 11224 ;; 11225 unixware*) 11226 ;; 11227 vxworks*) 11228 ;; 11229 *) 11230 lt_prog_compiler_can_build_shared_CXX=no 11231 ;; 11232 esac 11233 fi 11234 11235echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11236echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11237 11238# 11239# Check to make sure the PIC flag actually works. 11240# 11241if test -n "$lt_prog_compiler_pic_CXX"; then 11242 11243echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11244echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11245if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11246 echo $ECHO_N "(cached) $ECHO_C" >&6 11247else 11248 lt_prog_compiler_pic_works_CXX=no 11249 ac_outfile=conftest.$ac_objext 11250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11251 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11252 # Insert the option either (1) after the last *FLAGS variable, or 11253 # (2) before a word containing "conftest.", or (3) at the end. 11254 # Note that $ac_compile itself does not contain backslashes and begins 11255 # with a dollar sign (not a hyphen), so the echo should work correctly. 11256 # The option is referenced via a variable to avoid confusing sed. 11257 lt_compile=`echo "$ac_compile" | $SED \ 11258 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11260 -e 's:$: $lt_compiler_flag:'` 11261 (eval echo "\"\$as_me:11261: $lt_compile\"" >&5) 11262 (eval "$lt_compile" 2>conftest.err) 11263 ac_status=$? 11264 cat conftest.err >&5 11265 echo "$as_me:11265: \$? = $ac_status" >&5 11266 if (exit $ac_status) && test -s "$ac_outfile"; then 11267 # The compiler can only warn and ignore the option if not recognized 11268 # So say no if there are warnings other than the usual output. 11269 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11270 $SED '/^$/d' conftest.err >conftest.er2 11271 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11272 lt_prog_compiler_pic_works_CXX=yes 11273 fi 11274 fi 11275 $rm conftest* 11276 11277fi 11278echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11279echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11280 11281if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11282 case $lt_prog_compiler_pic_CXX in 11283 "" | " "*) ;; 11284 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11285 esac 11286else 11287 lt_prog_compiler_pic_CXX= 11288 lt_prog_compiler_can_build_shared_CXX=no 11289fi 11290 11291fi 11292case "$host_os" in 11293 # For platforms which do not support PIC, -DPIC is meaningless: 11294 *djgpp*) 11295 lt_prog_compiler_pic_CXX= 11296 ;; 11297 *) 11298 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11299 ;; 11300esac 11301 11302echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11303echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11304if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11305 echo $ECHO_N "(cached) $ECHO_C" >&6 11306else 11307 lt_cv_prog_compiler_c_o_CXX=no 11308 $rm -r conftest 2>/dev/null 11309 mkdir conftest 11310 cd conftest 11311 mkdir out 11312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11313 11314 lt_compiler_flag="-o out/conftest2.$ac_objext" 11315 # Insert the option either (1) after the last *FLAGS variable, or 11316 # (2) before a word containing "conftest.", or (3) at the end. 11317 # Note that $ac_compile itself does not contain backslashes and begins 11318 # with a dollar sign (not a hyphen), so the echo should work correctly. 11319 lt_compile=`echo "$ac_compile" | $SED \ 11320 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11322 -e 's:$: $lt_compiler_flag:'` 11323 (eval echo "\"\$as_me:11323: $lt_compile\"" >&5) 11324 (eval "$lt_compile" 2>out/conftest.err) 11325 ac_status=$? 11326 cat out/conftest.err >&5 11327 echo "$as_me:11327: \$? = $ac_status" >&5 11328 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11329 then 11330 # The compiler can only warn and ignore the option if not recognized 11331 # So say no if there are warnings 11332 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11333 $SED '/^$/d' out/conftest.err >out/conftest.er2 11334 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11335 lt_cv_prog_compiler_c_o_CXX=yes 11336 fi 11337 fi 11338 chmod u+w . 11339 $rm conftest* 11340 # SGI C++ compiler will create directory out/ii_files/ for 11341 # template instantiation 11342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11343 $rm out/* && rmdir out 11344 cd .. 11345 rmdir conftest 11346 $rm conftest* 11347 11348fi 11349echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11350echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11351 11352 11353hard_links="nottested" 11354if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11355 # do not overwrite the value of need_locks provided by the user 11356 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11357echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11358 hard_links=yes 11359 $rm conftest* 11360 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11361 touch conftest.a 11362 ln conftest.a conftest.b 2>&5 || hard_links=no 11363 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11364 echo "$as_me:$LINENO: result: $hard_links" >&5 11365echo "${ECHO_T}$hard_links" >&6 11366 if test "$hard_links" = no; then 11367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11368echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11369 need_locks=warn 11370 fi 11371else 11372 need_locks=no 11373fi 11374 11375echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11376echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11377 11378 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11379 case $host_os in 11380 aix4* | aix5*) 11381 # If we're using GNU nm, then we don't want the "-C" option. 11382 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11383 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11384 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' 11385 else 11386 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' 11387 fi 11388 ;; 11389 pw32*) 11390 export_symbols_cmds_CXX="$ltdll_cmds" 11391 ;; 11392 cygwin* | mingw*) 11393 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11394 ;; 11395 *) 11396 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11397 ;; 11398 esac 11399 11400echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11401echo "${ECHO_T}$ld_shlibs_CXX" >&6 11402test "$ld_shlibs_CXX" = no && can_build_shared=no 11403 11404variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11405if test "$GCC" = yes; then 11406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11407fi 11408 11409# 11410# Do we need to explicitly link libc? 11411# 11412case "x$archive_cmds_need_lc_CXX" in 11413x|xyes) 11414 # Assume -lc should be added 11415 archive_cmds_need_lc_CXX=yes 11416 11417 if test "$enable_shared" = yes && test "$GCC" = yes; then 11418 case $archive_cmds_CXX in 11419 *'~'*) 11420 # FIXME: we may have to deal with multi-command sequences. 11421 ;; 11422 '$CC '*) 11423 # Test whether the compiler implicitly links with -lc since on some 11424 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11425 # to ld, don't add -lc before -lgcc. 11426 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11427echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11428 $rm conftest* 11429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11430 11431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11432 (eval $ac_compile) 2>&5 11433 ac_status=$? 11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11435 (exit $ac_status); } 2>conftest.err; then 11436 soname=conftest 11437 lib=conftest 11438 libobjs=conftest.$ac_objext 11439 deplibs= 11440 wl=$lt_prog_compiler_wl_CXX 11441 compiler_flags=-v 11442 linker_flags=-v 11443 verstring= 11444 output_objdir=. 11445 libname=conftest 11446 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11447 allow_undefined_flag_CXX= 11448 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11449 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11450 ac_status=$? 11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11452 (exit $ac_status); } 11453 then 11454 archive_cmds_need_lc_CXX=no 11455 else 11456 archive_cmds_need_lc_CXX=yes 11457 fi 11458 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11459 else 11460 cat conftest.err 1>&5 11461 fi 11462 $rm conftest* 11463 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11464echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11465 ;; 11466 esac 11467 fi 11468 ;; 11469esac 11470 11471echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11472echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11473library_names_spec= 11474libname_spec='lib$name' 11475soname_spec= 11476shrext_cmds=".so" 11477postinstall_cmds= 11478postuninstall_cmds= 11479finish_cmds= 11480finish_eval= 11481shlibpath_var= 11482shlibpath_overrides_runpath=unknown 11483version_type=none 11484dynamic_linker="$host_os ld.so" 11485sys_lib_dlsearch_path_spec="/lib /usr/lib" 11486if test "$GCC" = yes; then 11487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11488 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11489 # if the path contains ";" then we assume it to be the separator 11490 # otherwise default to the standard path separator (i.e. ":") - it is 11491 # assumed that no part of a normal pathname contains ";" but that should 11492 # okay in the real world where ";" in dirpaths is itself problematic. 11493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11494 else 11495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11496 fi 11497else 11498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11499fi 11500need_lib_prefix=unknown 11501hardcode_into_libs=no 11502 11503# when you set need_version to no, make sure it does not cause -set_version 11504# flags to be left without arguments 11505need_version=unknown 11506 11507case $host_os in 11508aix3*) 11509 version_type=linux 11510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11511 shlibpath_var=LIBPATH 11512 11513 # AIX 3 has no versioning support, so we append a major version to the name. 11514 soname_spec='${libname}${release}${shared_ext}$major' 11515 ;; 11516 11517aix4* | aix5*) 11518 version_type=linux 11519 need_lib_prefix=no 11520 need_version=no 11521 hardcode_into_libs=yes 11522 if test "$host_cpu" = ia64; then 11523 # AIX 5 supports IA64 11524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11525 shlibpath_var=LD_LIBRARY_PATH 11526 else 11527 # With GCC up to 2.95.x, collect2 would create an import file 11528 # for dependence libraries. The import file would start with 11529 # the line `#! .'. This would cause the generated library to 11530 # depend on `.', always an invalid library. This was fixed in 11531 # development snapshots of GCC prior to 3.0. 11532 case $host_os in 11533 aix4 | aix4.[01] | aix4.[01].*) 11534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11535 echo ' yes ' 11536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11537 : 11538 else 11539 can_build_shared=no 11540 fi 11541 ;; 11542 esac 11543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11544 # soname into executable. Probably we can add versioning support to 11545 # collect2, so additional links can be useful in future. 11546 if test "$aix_use_runtimelinking" = yes; then 11547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11548 # instead of lib<name>.a to let people know that these are not 11549 # typical AIX shared libraries. 11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11551 else 11552 # We preserve .a as extension for shared libraries through AIX4.2 11553 # and later when we are not doing run time linking. 11554 library_names_spec='${libname}${release}.a $libname.a' 11555 soname_spec='${libname}${release}${shared_ext}$major' 11556 fi 11557 shlibpath_var=LIBPATH 11558 fi 11559 ;; 11560 11561amigaos*) 11562 library_names_spec='$libname.ixlibrary $libname.a' 11563 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11564 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' 11565 ;; 11566 11567beos*) 11568 library_names_spec='${libname}${shared_ext}' 11569 dynamic_linker="$host_os ld.so" 11570 shlibpath_var=LIBRARY_PATH 11571 ;; 11572 11573bsdi[45]*) 11574 version_type=linux 11575 need_version=no 11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11577 soname_spec='${libname}${release}${shared_ext}$major' 11578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11579 shlibpath_var=LD_LIBRARY_PATH 11580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11582 # the default ld.so.conf also contains /usr/contrib/lib and 11583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11584 # libtool to hard-code these into programs 11585 ;; 11586 11587cygwin* | mingw* | pw32*) 11588 version_type=windows 11589 shrext_cmds=".dll" 11590 need_version=no 11591 need_lib_prefix=no 11592 11593 case $GCC,$host_os in 11594 yes,cygwin* | yes,mingw* | yes,pw32*) 11595 library_names_spec='$libname.dll.a' 11596 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11597 postinstall_cmds='base_file=`basename \${file}`~ 11598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11599 dldir=$destdir/`dirname \$dlpath`~ 11600 test -d \$dldir || mkdir -p \$dldir~ 11601 $install_prog $dir/$dlname \$dldir/$dlname' 11602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11603 dlpath=$dir/\$dldll~ 11604 $rm \$dlpath' 11605 shlibpath_overrides_runpath=yes 11606 11607 case $host_os in 11608 cygwin*) 11609 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11610 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11611 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11612 ;; 11613 mingw*) 11614 # MinGW DLLs use traditional 'lib' prefix 11615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11617 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11618 # It is most probably a Windows format PATH printed by 11619 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11620 # path with ; separators, and with drive letters. We can handle the 11621 # drive letters (cygwin fileutils understands them), so leave them, 11622 # especially as we might pass files found there to a mingw objdump, 11623 # which wouldn't understand a cygwinified path. Ahh. 11624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11625 else 11626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11627 fi 11628 ;; 11629 pw32*) 11630 # pw32 DLLs use 'pw' prefix rather than 'lib' 11631 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11632 ;; 11633 esac 11634 ;; 11635 11636 *) 11637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11638 ;; 11639 esac 11640 dynamic_linker='Win32 ld.exe' 11641 # FIXME: first we should search . and the directory the executable is in 11642 shlibpath_var=PATH 11643 ;; 11644 11645darwin* | rhapsody*) 11646 dynamic_linker="$host_os dyld" 11647 version_type=darwin 11648 need_lib_prefix=no 11649 need_version=no 11650 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11651 soname_spec='${libname}${release}${major}$shared_ext' 11652 shlibpath_overrides_runpath=yes 11653 shlibpath_var=DYLD_LIBRARY_PATH 11654 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11655 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11656 if test "$GCC" = yes; then 11657 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"` 11658 else 11659 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11660 fi 11661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11662 ;; 11663 11664dgux*) 11665 version_type=linux 11666 need_lib_prefix=no 11667 need_version=no 11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11669 soname_spec='${libname}${release}${shared_ext}$major' 11670 shlibpath_var=LD_LIBRARY_PATH 11671 ;; 11672 11673freebsd1*) 11674 dynamic_linker=no 11675 ;; 11676 11677kfreebsd*-gnu) 11678 version_type=linux 11679 need_lib_prefix=no 11680 need_version=no 11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11682 soname_spec='${libname}${release}${shared_ext}$major' 11683 shlibpath_var=LD_LIBRARY_PATH 11684 shlibpath_overrides_runpath=no 11685 hardcode_into_libs=yes 11686 dynamic_linker='GNU ld.so' 11687 ;; 11688 11689freebsd* | dragonfly*) 11690 # DragonFly does not have aout. When/if they implement a new 11691 # versioning mechanism, adjust this. 11692 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11693 version_type=freebsd-$objformat 11694 case $version_type in 11695 freebsd-elf*) 11696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11697 need_version=no 11698 need_lib_prefix=no 11699 ;; 11700 freebsd-*) 11701 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11702 need_version=yes 11703 ;; 11704 esac 11705 shlibpath_var=LD_LIBRARY_PATH 11706 case $host_os in 11707 freebsd2*) 11708 shlibpath_overrides_runpath=yes 11709 ;; 11710 freebsd3.[01]* | freebsdelf3.[01]*) 11711 shlibpath_overrides_runpath=yes 11712 hardcode_into_libs=yes 11713 ;; 11714 *) # from 3.2 on 11715 shlibpath_overrides_runpath=no 11716 hardcode_into_libs=yes 11717 ;; 11718 esac 11719 ;; 11720 11721gnu*) 11722 version_type=linux 11723 need_lib_prefix=no 11724 need_version=no 11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11726 soname_spec='${libname}${release}${shared_ext}$major' 11727 shlibpath_var=LD_LIBRARY_PATH 11728 hardcode_into_libs=yes 11729 ;; 11730 11731hpux9* | hpux10* | hpux11*) 11732 # Give a soname corresponding to the major version so that dld.sl refuses to 11733 # link against other versions. 11734 version_type=sunos 11735 need_lib_prefix=no 11736 need_version=no 11737 case "$host_cpu" in 11738 ia64*) 11739 shrext_cmds='.so' 11740 hardcode_into_libs=yes 11741 dynamic_linker="$host_os dld.so" 11742 shlibpath_var=LD_LIBRARY_PATH 11743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11745 soname_spec='${libname}${release}${shared_ext}$major' 11746 if test "X$HPUX_IA64_MODE" = X32; then 11747 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11748 else 11749 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11750 fi 11751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11752 ;; 11753 hppa*64*) 11754 shrext_cmds='.sl' 11755 hardcode_into_libs=yes 11756 dynamic_linker="$host_os dld.sl" 11757 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11760 soname_spec='${libname}${release}${shared_ext}$major' 11761 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11763 ;; 11764 *) 11765 shrext_cmds='.sl' 11766 dynamic_linker="$host_os dld.sl" 11767 shlibpath_var=SHLIB_PATH 11768 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11770 soname_spec='${libname}${release}${shared_ext}$major' 11771 ;; 11772 esac 11773 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11774 postinstall_cmds='chmod 555 $lib' 11775 ;; 11776 11777irix5* | irix6* | nonstopux*) 11778 case $host_os in 11779 nonstopux*) version_type=nonstopux ;; 11780 *) 11781 if test "$lt_cv_prog_gnu_ld" = yes; then 11782 version_type=linux 11783 else 11784 version_type=irix 11785 fi ;; 11786 esac 11787 need_lib_prefix=no 11788 need_version=no 11789 soname_spec='${libname}${release}${shared_ext}$major' 11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11791 case $host_os in 11792 irix5* | nonstopux*) 11793 libsuff= shlibsuff= 11794 ;; 11795 *) 11796 case $LD in # libtool.m4 will add one of these switches to LD 11797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11798 libsuff= shlibsuff= libmagic=32-bit;; 11799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11800 libsuff=32 shlibsuff=N32 libmagic=N32;; 11801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11802 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11803 *) libsuff= shlibsuff= libmagic=never-match;; 11804 esac 11805 ;; 11806 esac 11807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11808 shlibpath_overrides_runpath=no 11809 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11810 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11811 hardcode_into_libs=yes 11812 ;; 11813 11814# No shared lib support for Linux oldld, aout, or coff. 11815linux*oldld* | linux*aout* | linux*coff*) 11816 dynamic_linker=no 11817 ;; 11818 11819# This must be Linux ELF. 11820linux*) 11821 version_type=linux 11822 need_lib_prefix=no 11823 need_version=no 11824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11825 soname_spec='${libname}${release}${shared_ext}$major' 11826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11827 shlibpath_var=LD_LIBRARY_PATH 11828 shlibpath_overrides_runpath=no 11829 # This implies no fast_install, which is unacceptable. 11830 # Some rework will be needed to allow for fast_install 11831 # before this can be enabled. 11832 hardcode_into_libs=yes 11833 11834 # find out which ABI we are using 11835 libsuff= 11836 case "$host_cpu" in 11837 x86_64*|s390x*|powerpc64*) 11838 echo '#line 11838 "configure"' > conftest.$ac_ext 11839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11840 (eval $ac_compile) 2>&5 11841 ac_status=$? 11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11843 (exit $ac_status); }; then 11844 case `/usr/bin/file conftest.$ac_objext` in 11845 *64-bit*) 11846 libsuff=64 11847 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 11848 ;; 11849 esac 11850 fi 11851 rm -rf conftest* 11852 ;; 11853 esac 11854 11855 # Append ld.so.conf contents to the search path 11856 if test -f /etc/ld.so.conf; then 11857 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 11858 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 11859 fi 11860 11861 # We used to test for /lib/ld.so.1 and disable shared libraries on 11862 # powerpc, because MkLinux only supported shared libraries with the 11863 # GNU dynamic linker. Since this was broken with cross compilers, 11864 # most powerpc-linux boxes support dynamic linking these days and 11865 # people can always --disable-shared, the test was removed, and we 11866 # assume the GNU/Linux dynamic linker is in use. 11867 dynamic_linker='GNU/Linux ld.so' 11868 ;; 11869 11870knetbsd*-gnu) 11871 version_type=linux 11872 need_lib_prefix=no 11873 need_version=no 11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11875 soname_spec='${libname}${release}${shared_ext}$major' 11876 shlibpath_var=LD_LIBRARY_PATH 11877 shlibpath_overrides_runpath=no 11878 hardcode_into_libs=yes 11879 dynamic_linker='GNU ld.so' 11880 ;; 11881 11882netbsd*) 11883 version_type=sunos 11884 need_lib_prefix=no 11885 need_version=no 11886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11889 dynamic_linker='NetBSD (a.out) ld.so' 11890 else 11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11892 soname_spec='${libname}${release}${shared_ext}$major' 11893 dynamic_linker='NetBSD ld.elf_so' 11894 fi 11895 shlibpath_var=LD_LIBRARY_PATH 11896 shlibpath_overrides_runpath=yes 11897 hardcode_into_libs=yes 11898 ;; 11899 11900newsos6) 11901 version_type=linux 11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11903 shlibpath_var=LD_LIBRARY_PATH 11904 shlibpath_overrides_runpath=yes 11905 ;; 11906 11907nto-qnx*) 11908 version_type=linux 11909 need_lib_prefix=no 11910 need_version=no 11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11912 soname_spec='${libname}${release}${shared_ext}$major' 11913 shlibpath_var=LD_LIBRARY_PATH 11914 shlibpath_overrides_runpath=yes 11915 ;; 11916 11917openbsd*) 11918 version_type=sunos 11919 need_lib_prefix=no 11920 need_version=no 11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11923 shlibpath_var=LD_LIBRARY_PATH 11924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11925 case $host_os in 11926 openbsd2.[89] | openbsd2.[89].*) 11927 shlibpath_overrides_runpath=no 11928 ;; 11929 *) 11930 shlibpath_overrides_runpath=yes 11931 ;; 11932 esac 11933 else 11934 shlibpath_overrides_runpath=yes 11935 fi 11936 ;; 11937 11938os2*) 11939 libname_spec='$name' 11940 shrext_cmds=".dll" 11941 need_lib_prefix=no 11942 library_names_spec='$libname${shared_ext} $libname.a' 11943 dynamic_linker='OS/2 ld.exe' 11944 shlibpath_var=LIBPATH 11945 ;; 11946 11947osf3* | osf4* | osf5*) 11948 version_type=osf 11949 need_lib_prefix=no 11950 need_version=no 11951 soname_spec='${libname}${release}${shared_ext}$major' 11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11953 shlibpath_var=LD_LIBRARY_PATH 11954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11956 ;; 11957 11958sco3.2v5*) 11959 version_type=osf 11960 soname_spec='${libname}${release}${shared_ext}$major' 11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11962 shlibpath_var=LD_LIBRARY_PATH 11963 ;; 11964 11965solaris*) 11966 version_type=linux 11967 need_lib_prefix=no 11968 need_version=no 11969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11970 soname_spec='${libname}${release}${shared_ext}$major' 11971 shlibpath_var=LD_LIBRARY_PATH 11972 shlibpath_overrides_runpath=yes 11973 hardcode_into_libs=yes 11974 # ldd complains unless libraries are executable 11975 postinstall_cmds='chmod +x $lib' 11976 ;; 11977 11978sunos4*) 11979 version_type=sunos 11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11981 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11982 shlibpath_var=LD_LIBRARY_PATH 11983 shlibpath_overrides_runpath=yes 11984 if test "$with_gnu_ld" = yes; then 11985 need_lib_prefix=no 11986 fi 11987 need_version=yes 11988 ;; 11989 11990sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11991 version_type=linux 11992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11993 soname_spec='${libname}${release}${shared_ext}$major' 11994 shlibpath_var=LD_LIBRARY_PATH 11995 case $host_vendor in 11996 sni) 11997 shlibpath_overrides_runpath=no 11998 need_lib_prefix=no 11999 export_dynamic_flag_spec='${wl}-Blargedynsym' 12000 runpath_var=LD_RUN_PATH 12001 ;; 12002 siemens) 12003 need_lib_prefix=no 12004 ;; 12005 motorola) 12006 need_lib_prefix=no 12007 need_version=no 12008 shlibpath_overrides_runpath=no 12009 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12010 ;; 12011 esac 12012 ;; 12013 12014sysv4*MP*) 12015 if test -d /usr/nec ;then 12016 version_type=linux 12017 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12018 soname_spec='$libname${shared_ext}.$major' 12019 shlibpath_var=LD_LIBRARY_PATH 12020 fi 12021 ;; 12022 12023uts4*) 12024 version_type=linux 12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12026 soname_spec='${libname}${release}${shared_ext}$major' 12027 shlibpath_var=LD_LIBRARY_PATH 12028 ;; 12029 12030*) 12031 dynamic_linker=no 12032 ;; 12033esac 12034echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12035echo "${ECHO_T}$dynamic_linker" >&6 12036test "$dynamic_linker" = no && can_build_shared=no 12037 12038echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12039echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12040hardcode_action_CXX= 12041if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12042 test -n "$runpath_var_CXX" || \ 12043 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12044 12045 # We can hardcode non-existant directories. 12046 if test "$hardcode_direct_CXX" != no && 12047 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12048 # have to relink, otherwise we might link with an installed library 12049 # when we should be linking with a yet-to-be-installed one 12050 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12051 test "$hardcode_minus_L_CXX" != no; then 12052 # Linking always hardcodes the temporary library directory. 12053 hardcode_action_CXX=relink 12054 else 12055 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12056 hardcode_action_CXX=immediate 12057 fi 12058else 12059 # We cannot hardcode anything, or else we can only hardcode existing 12060 # directories. 12061 hardcode_action_CXX=unsupported 12062fi 12063echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12064echo "${ECHO_T}$hardcode_action_CXX" >&6 12065 12066if test "$hardcode_action_CXX" = relink; then 12067 # Fast installation is not supported 12068 enable_fast_install=no 12069elif test "$shlibpath_overrides_runpath" = yes || 12070 test "$enable_shared" = no; then 12071 # Fast installation is not necessary 12072 enable_fast_install=needless 12073fi 12074 12075striplib= 12076old_striplib= 12077echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12078echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12079if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12080 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12081 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12082 echo "$as_me:$LINENO: result: yes" >&5 12083echo "${ECHO_T}yes" >&6 12084else 12085# FIXME - insert some real tests, host_os isn't really good enough 12086 case $host_os in 12087 darwin*) 12088 if test -n "$STRIP" ; then 12089 striplib="$STRIP -x" 12090 echo "$as_me:$LINENO: result: yes" >&5 12091echo "${ECHO_T}yes" >&6 12092 else 12093 echo "$as_me:$LINENO: result: no" >&5 12094echo "${ECHO_T}no" >&6 12095fi 12096 ;; 12097 *) 12098 echo "$as_me:$LINENO: result: no" >&5 12099echo "${ECHO_T}no" >&6 12100 ;; 12101 esac 12102fi 12103 12104if test "x$enable_dlopen" != xyes; then 12105 enable_dlopen=unknown 12106 enable_dlopen_self=unknown 12107 enable_dlopen_self_static=unknown 12108else 12109 lt_cv_dlopen=no 12110 lt_cv_dlopen_libs= 12111 12112 case $host_os in 12113 beos*) 12114 lt_cv_dlopen="load_add_on" 12115 lt_cv_dlopen_libs= 12116 lt_cv_dlopen_self=yes 12117 ;; 12118 12119 mingw* | pw32*) 12120 lt_cv_dlopen="LoadLibrary" 12121 lt_cv_dlopen_libs= 12122 ;; 12123 12124 cygwin*) 12125 lt_cv_dlopen="dlopen" 12126 lt_cv_dlopen_libs= 12127 ;; 12128 12129 darwin*) 12130 # if libdl is installed we need to link against it 12131 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12132echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12133if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12134 echo $ECHO_N "(cached) $ECHO_C" >&6 12135else 12136 ac_check_lib_save_LIBS=$LIBS 12137LIBS="-ldl $LIBS" 12138cat >conftest.$ac_ext <<_ACEOF 12139/* confdefs.h. */ 12140_ACEOF 12141cat confdefs.h >>conftest.$ac_ext 12142cat >>conftest.$ac_ext <<_ACEOF 12143/* end confdefs.h. */ 12144 12145/* Override any gcc2 internal prototype to avoid an error. */ 12146#ifdef __cplusplus 12147extern "C" 12148#endif 12149/* We use char because int might match the return type of a gcc2 12150 builtin and then its argument prototype would still apply. */ 12151char dlopen (); 12152int 12153main () 12154{ 12155dlopen (); 12156 ; 12157 return 0; 12158} 12159_ACEOF 12160rm -f conftest.$ac_objext conftest$ac_exeext 12161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12162 (eval $ac_link) 2>conftest.er1 12163 ac_status=$? 12164 grep -v '^ *+' conftest.er1 >conftest.err 12165 rm -f conftest.er1 12166 cat conftest.err >&5 12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12168 (exit $ac_status); } && 12169 { ac_try='test -z "$ac_cxx_werror_flag" 12170 || test ! -s conftest.err' 12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12172 (eval $ac_try) 2>&5 12173 ac_status=$? 12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12175 (exit $ac_status); }; } && 12176 { ac_try='test -s conftest$ac_exeext' 12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12178 (eval $ac_try) 2>&5 12179 ac_status=$? 12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12181 (exit $ac_status); }; }; then 12182 ac_cv_lib_dl_dlopen=yes 12183else 12184 echo "$as_me: failed program was:" >&5 12185sed 's/^/| /' conftest.$ac_ext >&5 12186 12187ac_cv_lib_dl_dlopen=no 12188fi 12189rm -f conftest.err conftest.$ac_objext \ 12190 conftest$ac_exeext conftest.$ac_ext 12191LIBS=$ac_check_lib_save_LIBS 12192fi 12193echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12194echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12195if test $ac_cv_lib_dl_dlopen = yes; then 12196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12197else 12198 12199 lt_cv_dlopen="dyld" 12200 lt_cv_dlopen_libs= 12201 lt_cv_dlopen_self=yes 12202 12203fi 12204 12205 ;; 12206 12207 *) 12208 echo "$as_me:$LINENO: checking for shl_load" >&5 12209echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12210if test "${ac_cv_func_shl_load+set}" = set; then 12211 echo $ECHO_N "(cached) $ECHO_C" >&6 12212else 12213 cat >conftest.$ac_ext <<_ACEOF 12214/* confdefs.h. */ 12215_ACEOF 12216cat confdefs.h >>conftest.$ac_ext 12217cat >>conftest.$ac_ext <<_ACEOF 12218/* end confdefs.h. */ 12219/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12220 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12221#define shl_load innocuous_shl_load 12222 12223/* System header to define __stub macros and hopefully few prototypes, 12224 which can conflict with char shl_load (); below. 12225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12226 <limits.h> exists even on freestanding compilers. */ 12227 12228#ifdef __STDC__ 12229# include <limits.h> 12230#else 12231# include <assert.h> 12232#endif 12233 12234#undef shl_load 12235 12236/* Override any gcc2 internal prototype to avoid an error. */ 12237#ifdef __cplusplus 12238extern "C" 12239{ 12240#endif 12241/* We use char because int might match the return type of a gcc2 12242 builtin and then its argument prototype would still apply. */ 12243char shl_load (); 12244/* The GNU C library defines this for functions which it implements 12245 to always fail with ENOSYS. Some functions are actually named 12246 something starting with __ and the normal name is an alias. */ 12247#if defined (__stub_shl_load) || defined (__stub___shl_load) 12248choke me 12249#else 12250char (*f) () = shl_load; 12251#endif 12252#ifdef __cplusplus 12253} 12254#endif 12255 12256int 12257main () 12258{ 12259return f != shl_load; 12260 ; 12261 return 0; 12262} 12263_ACEOF 12264rm -f conftest.$ac_objext conftest$ac_exeext 12265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12266 (eval $ac_link) 2>conftest.er1 12267 ac_status=$? 12268 grep -v '^ *+' conftest.er1 >conftest.err 12269 rm -f conftest.er1 12270 cat conftest.err >&5 12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12272 (exit $ac_status); } && 12273 { ac_try='test -z "$ac_cxx_werror_flag" 12274 || test ! -s conftest.err' 12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12276 (eval $ac_try) 2>&5 12277 ac_status=$? 12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12279 (exit $ac_status); }; } && 12280 { ac_try='test -s conftest$ac_exeext' 12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12282 (eval $ac_try) 2>&5 12283 ac_status=$? 12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12285 (exit $ac_status); }; }; then 12286 ac_cv_func_shl_load=yes 12287else 12288 echo "$as_me: failed program was:" >&5 12289sed 's/^/| /' conftest.$ac_ext >&5 12290 12291ac_cv_func_shl_load=no 12292fi 12293rm -f conftest.err conftest.$ac_objext \ 12294 conftest$ac_exeext conftest.$ac_ext 12295fi 12296echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12297echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12298if test $ac_cv_func_shl_load = yes; then 12299 lt_cv_dlopen="shl_load" 12300else 12301 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12302echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12303if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12304 echo $ECHO_N "(cached) $ECHO_C" >&6 12305else 12306 ac_check_lib_save_LIBS=$LIBS 12307LIBS="-ldld $LIBS" 12308cat >conftest.$ac_ext <<_ACEOF 12309/* confdefs.h. */ 12310_ACEOF 12311cat confdefs.h >>conftest.$ac_ext 12312cat >>conftest.$ac_ext <<_ACEOF 12313/* end confdefs.h. */ 12314 12315/* Override any gcc2 internal prototype to avoid an error. */ 12316#ifdef __cplusplus 12317extern "C" 12318#endif 12319/* We use char because int might match the return type of a gcc2 12320 builtin and then its argument prototype would still apply. */ 12321char shl_load (); 12322int 12323main () 12324{ 12325shl_load (); 12326 ; 12327 return 0; 12328} 12329_ACEOF 12330rm -f conftest.$ac_objext conftest$ac_exeext 12331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12332 (eval $ac_link) 2>conftest.er1 12333 ac_status=$? 12334 grep -v '^ *+' conftest.er1 >conftest.err 12335 rm -f conftest.er1 12336 cat conftest.err >&5 12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12338 (exit $ac_status); } && 12339 { ac_try='test -z "$ac_cxx_werror_flag" 12340 || test ! -s conftest.err' 12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12342 (eval $ac_try) 2>&5 12343 ac_status=$? 12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12345 (exit $ac_status); }; } && 12346 { ac_try='test -s conftest$ac_exeext' 12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12348 (eval $ac_try) 2>&5 12349 ac_status=$? 12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12351 (exit $ac_status); }; }; then 12352 ac_cv_lib_dld_shl_load=yes 12353else 12354 echo "$as_me: failed program was:" >&5 12355sed 's/^/| /' conftest.$ac_ext >&5 12356 12357ac_cv_lib_dld_shl_load=no 12358fi 12359rm -f conftest.err conftest.$ac_objext \ 12360 conftest$ac_exeext conftest.$ac_ext 12361LIBS=$ac_check_lib_save_LIBS 12362fi 12363echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12364echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12365if test $ac_cv_lib_dld_shl_load = yes; then 12366 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12367else 12368 echo "$as_me:$LINENO: checking for dlopen" >&5 12369echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12370if test "${ac_cv_func_dlopen+set}" = set; then 12371 echo $ECHO_N "(cached) $ECHO_C" >&6 12372else 12373 cat >conftest.$ac_ext <<_ACEOF 12374/* confdefs.h. */ 12375_ACEOF 12376cat confdefs.h >>conftest.$ac_ext 12377cat >>conftest.$ac_ext <<_ACEOF 12378/* end confdefs.h. */ 12379/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12380 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12381#define dlopen innocuous_dlopen 12382 12383/* System header to define __stub macros and hopefully few prototypes, 12384 which can conflict with char dlopen (); below. 12385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12386 <limits.h> exists even on freestanding compilers. */ 12387 12388#ifdef __STDC__ 12389# include <limits.h> 12390#else 12391# include <assert.h> 12392#endif 12393 12394#undef dlopen 12395 12396/* Override any gcc2 internal prototype to avoid an error. */ 12397#ifdef __cplusplus 12398extern "C" 12399{ 12400#endif 12401/* We use char because int might match the return type of a gcc2 12402 builtin and then its argument prototype would still apply. */ 12403char dlopen (); 12404/* The GNU C library defines this for functions which it implements 12405 to always fail with ENOSYS. Some functions are actually named 12406 something starting with __ and the normal name is an alias. */ 12407#if defined (__stub_dlopen) || defined (__stub___dlopen) 12408choke me 12409#else 12410char (*f) () = dlopen; 12411#endif 12412#ifdef __cplusplus 12413} 12414#endif 12415 12416int 12417main () 12418{ 12419return f != dlopen; 12420 ; 12421 return 0; 12422} 12423_ACEOF 12424rm -f conftest.$ac_objext conftest$ac_exeext 12425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12426 (eval $ac_link) 2>conftest.er1 12427 ac_status=$? 12428 grep -v '^ *+' conftest.er1 >conftest.err 12429 rm -f conftest.er1 12430 cat conftest.err >&5 12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12432 (exit $ac_status); } && 12433 { ac_try='test -z "$ac_cxx_werror_flag" 12434 || test ! -s conftest.err' 12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12436 (eval $ac_try) 2>&5 12437 ac_status=$? 12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12439 (exit $ac_status); }; } && 12440 { ac_try='test -s conftest$ac_exeext' 12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12442 (eval $ac_try) 2>&5 12443 ac_status=$? 12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12445 (exit $ac_status); }; }; then 12446 ac_cv_func_dlopen=yes 12447else 12448 echo "$as_me: failed program was:" >&5 12449sed 's/^/| /' conftest.$ac_ext >&5 12450 12451ac_cv_func_dlopen=no 12452fi 12453rm -f conftest.err conftest.$ac_objext \ 12454 conftest$ac_exeext conftest.$ac_ext 12455fi 12456echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12457echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12458if test $ac_cv_func_dlopen = yes; then 12459 lt_cv_dlopen="dlopen" 12460else 12461 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12462echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12463if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12464 echo $ECHO_N "(cached) $ECHO_C" >&6 12465else 12466 ac_check_lib_save_LIBS=$LIBS 12467LIBS="-ldl $LIBS" 12468cat >conftest.$ac_ext <<_ACEOF 12469/* confdefs.h. */ 12470_ACEOF 12471cat confdefs.h >>conftest.$ac_ext 12472cat >>conftest.$ac_ext <<_ACEOF 12473/* end confdefs.h. */ 12474 12475/* Override any gcc2 internal prototype to avoid an error. */ 12476#ifdef __cplusplus 12477extern "C" 12478#endif 12479/* We use char because int might match the return type of a gcc2 12480 builtin and then its argument prototype would still apply. */ 12481char dlopen (); 12482int 12483main () 12484{ 12485dlopen (); 12486 ; 12487 return 0; 12488} 12489_ACEOF 12490rm -f conftest.$ac_objext conftest$ac_exeext 12491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12492 (eval $ac_link) 2>conftest.er1 12493 ac_status=$? 12494 grep -v '^ *+' conftest.er1 >conftest.err 12495 rm -f conftest.er1 12496 cat conftest.err >&5 12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12498 (exit $ac_status); } && 12499 { ac_try='test -z "$ac_cxx_werror_flag" 12500 || test ! -s conftest.err' 12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12502 (eval $ac_try) 2>&5 12503 ac_status=$? 12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12505 (exit $ac_status); }; } && 12506 { ac_try='test -s conftest$ac_exeext' 12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12508 (eval $ac_try) 2>&5 12509 ac_status=$? 12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12511 (exit $ac_status); }; }; then 12512 ac_cv_lib_dl_dlopen=yes 12513else 12514 echo "$as_me: failed program was:" >&5 12515sed 's/^/| /' conftest.$ac_ext >&5 12516 12517ac_cv_lib_dl_dlopen=no 12518fi 12519rm -f conftest.err conftest.$ac_objext \ 12520 conftest$ac_exeext conftest.$ac_ext 12521LIBS=$ac_check_lib_save_LIBS 12522fi 12523echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12524echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12525if test $ac_cv_lib_dl_dlopen = yes; then 12526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12527else 12528 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12529echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12530if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12531 echo $ECHO_N "(cached) $ECHO_C" >&6 12532else 12533 ac_check_lib_save_LIBS=$LIBS 12534LIBS="-lsvld $LIBS" 12535cat >conftest.$ac_ext <<_ACEOF 12536/* confdefs.h. */ 12537_ACEOF 12538cat confdefs.h >>conftest.$ac_ext 12539cat >>conftest.$ac_ext <<_ACEOF 12540/* end confdefs.h. */ 12541 12542/* Override any gcc2 internal prototype to avoid an error. */ 12543#ifdef __cplusplus 12544extern "C" 12545#endif 12546/* We use char because int might match the return type of a gcc2 12547 builtin and then its argument prototype would still apply. */ 12548char dlopen (); 12549int 12550main () 12551{ 12552dlopen (); 12553 ; 12554 return 0; 12555} 12556_ACEOF 12557rm -f conftest.$ac_objext conftest$ac_exeext 12558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12559 (eval $ac_link) 2>conftest.er1 12560 ac_status=$? 12561 grep -v '^ *+' conftest.er1 >conftest.err 12562 rm -f conftest.er1 12563 cat conftest.err >&5 12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12565 (exit $ac_status); } && 12566 { ac_try='test -z "$ac_cxx_werror_flag" 12567 || test ! -s conftest.err' 12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12569 (eval $ac_try) 2>&5 12570 ac_status=$? 12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12572 (exit $ac_status); }; } && 12573 { ac_try='test -s conftest$ac_exeext' 12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12575 (eval $ac_try) 2>&5 12576 ac_status=$? 12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12578 (exit $ac_status); }; }; then 12579 ac_cv_lib_svld_dlopen=yes 12580else 12581 echo "$as_me: failed program was:" >&5 12582sed 's/^/| /' conftest.$ac_ext >&5 12583 12584ac_cv_lib_svld_dlopen=no 12585fi 12586rm -f conftest.err conftest.$ac_objext \ 12587 conftest$ac_exeext conftest.$ac_ext 12588LIBS=$ac_check_lib_save_LIBS 12589fi 12590echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12591echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12592if test $ac_cv_lib_svld_dlopen = yes; then 12593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12594else 12595 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12596echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12597if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12598 echo $ECHO_N "(cached) $ECHO_C" >&6 12599else 12600 ac_check_lib_save_LIBS=$LIBS 12601LIBS="-ldld $LIBS" 12602cat >conftest.$ac_ext <<_ACEOF 12603/* confdefs.h. */ 12604_ACEOF 12605cat confdefs.h >>conftest.$ac_ext 12606cat >>conftest.$ac_ext <<_ACEOF 12607/* end confdefs.h. */ 12608 12609/* Override any gcc2 internal prototype to avoid an error. */ 12610#ifdef __cplusplus 12611extern "C" 12612#endif 12613/* We use char because int might match the return type of a gcc2 12614 builtin and then its argument prototype would still apply. */ 12615char dld_link (); 12616int 12617main () 12618{ 12619dld_link (); 12620 ; 12621 return 0; 12622} 12623_ACEOF 12624rm -f conftest.$ac_objext conftest$ac_exeext 12625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12626 (eval $ac_link) 2>conftest.er1 12627 ac_status=$? 12628 grep -v '^ *+' conftest.er1 >conftest.err 12629 rm -f conftest.er1 12630 cat conftest.err >&5 12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12632 (exit $ac_status); } && 12633 { ac_try='test -z "$ac_cxx_werror_flag" 12634 || test ! -s conftest.err' 12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12636 (eval $ac_try) 2>&5 12637 ac_status=$? 12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12639 (exit $ac_status); }; } && 12640 { ac_try='test -s conftest$ac_exeext' 12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12642 (eval $ac_try) 2>&5 12643 ac_status=$? 12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12645 (exit $ac_status); }; }; then 12646 ac_cv_lib_dld_dld_link=yes 12647else 12648 echo "$as_me: failed program was:" >&5 12649sed 's/^/| /' conftest.$ac_ext >&5 12650 12651ac_cv_lib_dld_dld_link=no 12652fi 12653rm -f conftest.err conftest.$ac_objext \ 12654 conftest$ac_exeext conftest.$ac_ext 12655LIBS=$ac_check_lib_save_LIBS 12656fi 12657echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12658echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12659if test $ac_cv_lib_dld_dld_link = yes; then 12660 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12661fi 12662 12663 12664fi 12665 12666 12667fi 12668 12669 12670fi 12671 12672 12673fi 12674 12675 12676fi 12677 12678 ;; 12679 esac 12680 12681 if test "x$lt_cv_dlopen" != xno; then 12682 enable_dlopen=yes 12683 else 12684 enable_dlopen=no 12685 fi 12686 12687 case $lt_cv_dlopen in 12688 dlopen) 12689 save_CPPFLAGS="$CPPFLAGS" 12690 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12691 12692 save_LDFLAGS="$LDFLAGS" 12693 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12694 12695 save_LIBS="$LIBS" 12696 LIBS="$lt_cv_dlopen_libs $LIBS" 12697 12698 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12699echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12700if test "${lt_cv_dlopen_self+set}" = set; then 12701 echo $ECHO_N "(cached) $ECHO_C" >&6 12702else 12703 if test "$cross_compiling" = yes; then : 12704 lt_cv_dlopen_self=cross 12705else 12706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12707 lt_status=$lt_dlunknown 12708 cat > conftest.$ac_ext <<EOF 12709#line 12709 "configure" 12710#include "confdefs.h" 12711 12712#if HAVE_DLFCN_H 12713#include <dlfcn.h> 12714#endif 12715 12716#include <stdio.h> 12717 12718#ifdef RTLD_GLOBAL 12719# define LT_DLGLOBAL RTLD_GLOBAL 12720#else 12721# ifdef DL_GLOBAL 12722# define LT_DLGLOBAL DL_GLOBAL 12723# else 12724# define LT_DLGLOBAL 0 12725# endif 12726#endif 12727 12728/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12729 find out it does not work in some platform. */ 12730#ifndef LT_DLLAZY_OR_NOW 12731# ifdef RTLD_LAZY 12732# define LT_DLLAZY_OR_NOW RTLD_LAZY 12733# else 12734# ifdef DL_LAZY 12735# define LT_DLLAZY_OR_NOW DL_LAZY 12736# else 12737# ifdef RTLD_NOW 12738# define LT_DLLAZY_OR_NOW RTLD_NOW 12739# else 12740# ifdef DL_NOW 12741# define LT_DLLAZY_OR_NOW DL_NOW 12742# else 12743# define LT_DLLAZY_OR_NOW 0 12744# endif 12745# endif 12746# endif 12747# endif 12748#endif 12749 12750#ifdef __cplusplus 12751extern "C" void exit (int); 12752#endif 12753 12754void fnord() { int i=42;} 12755int main () 12756{ 12757 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12758 int status = $lt_dlunknown; 12759 12760 if (self) 12761 { 12762 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12763 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12764 /* dlclose (self); */ 12765 } 12766 12767 exit (status); 12768} 12769EOF 12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12771 (eval $ac_link) 2>&5 12772 ac_status=$? 12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12774 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12775 (./conftest; exit; ) 2>/dev/null 12776 lt_status=$? 12777 case x$lt_status in 12778 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12779 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12780 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12781 esac 12782 else : 12783 # compilation failed 12784 lt_cv_dlopen_self=no 12785 fi 12786fi 12787rm -fr conftest* 12788 12789 12790fi 12791echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12792echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12793 12794 if test "x$lt_cv_dlopen_self" = xyes; then 12795 LDFLAGS="$LDFLAGS $link_static_flag" 12796 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12797echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12798if test "${lt_cv_dlopen_self_static+set}" = set; then 12799 echo $ECHO_N "(cached) $ECHO_C" >&6 12800else 12801 if test "$cross_compiling" = yes; then : 12802 lt_cv_dlopen_self_static=cross 12803else 12804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12805 lt_status=$lt_dlunknown 12806 cat > conftest.$ac_ext <<EOF 12807#line 12807 "configure" 12808#include "confdefs.h" 12809 12810#if HAVE_DLFCN_H 12811#include <dlfcn.h> 12812#endif 12813 12814#include <stdio.h> 12815 12816#ifdef RTLD_GLOBAL 12817# define LT_DLGLOBAL RTLD_GLOBAL 12818#else 12819# ifdef DL_GLOBAL 12820# define LT_DLGLOBAL DL_GLOBAL 12821# else 12822# define LT_DLGLOBAL 0 12823# endif 12824#endif 12825 12826/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12827 find out it does not work in some platform. */ 12828#ifndef LT_DLLAZY_OR_NOW 12829# ifdef RTLD_LAZY 12830# define LT_DLLAZY_OR_NOW RTLD_LAZY 12831# else 12832# ifdef DL_LAZY 12833# define LT_DLLAZY_OR_NOW DL_LAZY 12834# else 12835# ifdef RTLD_NOW 12836# define LT_DLLAZY_OR_NOW RTLD_NOW 12837# else 12838# ifdef DL_NOW 12839# define LT_DLLAZY_OR_NOW DL_NOW 12840# else 12841# define LT_DLLAZY_OR_NOW 0 12842# endif 12843# endif 12844# endif 12845# endif 12846#endif 12847 12848#ifdef __cplusplus 12849extern "C" void exit (int); 12850#endif 12851 12852void fnord() { int i=42;} 12853int main () 12854{ 12855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12856 int status = $lt_dlunknown; 12857 12858 if (self) 12859 { 12860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12861 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12862 /* dlclose (self); */ 12863 } 12864 12865 exit (status); 12866} 12867EOF 12868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12869 (eval $ac_link) 2>&5 12870 ac_status=$? 12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12872 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12873 (./conftest; exit; ) 2>/dev/null 12874 lt_status=$? 12875 case x$lt_status in 12876 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12877 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12878 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12879 esac 12880 else : 12881 # compilation failed 12882 lt_cv_dlopen_self_static=no 12883 fi 12884fi 12885rm -fr conftest* 12886 12887 12888fi 12889echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12890echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12891 fi 12892 12893 CPPFLAGS="$save_CPPFLAGS" 12894 LDFLAGS="$save_LDFLAGS" 12895 LIBS="$save_LIBS" 12896 ;; 12897 esac 12898 12899 case $lt_cv_dlopen_self in 12900 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12901 *) enable_dlopen_self=unknown ;; 12902 esac 12903 12904 case $lt_cv_dlopen_self_static in 12905 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12906 *) enable_dlopen_self_static=unknown ;; 12907 esac 12908fi 12909 12910 12911# The else clause should only fire when bootstrapping the 12912# libtool distribution, otherwise you forgot to ship ltmain.sh 12913# with your package, and you will get complaints that there are 12914# no rules to generate ltmain.sh. 12915if test -f "$ltmain"; then 12916 # See if we are running on zsh, and set the options which allow our commands through 12917 # without removal of \ escapes. 12918 if test -n "${ZSH_VERSION+set}" ; then 12919 setopt NO_GLOB_SUBST 12920 fi 12921 # Now quote all the things that may contain metacharacters while being 12922 # careful not to overquote the AC_SUBSTed values. We take copies of the 12923 # variables and quote the copies for generation of the libtool script. 12924 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12925 SED SHELL STRIP \ 12926 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12927 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12928 deplibs_check_method reload_flag reload_cmds need_locks \ 12929 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12930 lt_cv_sys_global_symbol_to_c_name_address \ 12931 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12932 old_postinstall_cmds old_postuninstall_cmds \ 12933 compiler_CXX \ 12934 CC_CXX \ 12935 LD_CXX \ 12936 lt_prog_compiler_wl_CXX \ 12937 lt_prog_compiler_pic_CXX \ 12938 lt_prog_compiler_static_CXX \ 12939 lt_prog_compiler_no_builtin_flag_CXX \ 12940 export_dynamic_flag_spec_CXX \ 12941 thread_safe_flag_spec_CXX \ 12942 whole_archive_flag_spec_CXX \ 12943 enable_shared_with_static_runtimes_CXX \ 12944 old_archive_cmds_CXX \ 12945 old_archive_from_new_cmds_CXX \ 12946 predep_objects_CXX \ 12947 postdep_objects_CXX \ 12948 predeps_CXX \ 12949 postdeps_CXX \ 12950 compiler_lib_search_path_CXX \ 12951 archive_cmds_CXX \ 12952 archive_expsym_cmds_CXX \ 12953 postinstall_cmds_CXX \ 12954 postuninstall_cmds_CXX \ 12955 old_archive_from_expsyms_cmds_CXX \ 12956 allow_undefined_flag_CXX \ 12957 no_undefined_flag_CXX \ 12958 export_symbols_cmds_CXX \ 12959 hardcode_libdir_flag_spec_CXX \ 12960 hardcode_libdir_flag_spec_ld_CXX \ 12961 hardcode_libdir_separator_CXX \ 12962 hardcode_automatic_CXX \ 12963 module_cmds_CXX \ 12964 module_expsym_cmds_CXX \ 12965 lt_cv_prog_compiler_c_o_CXX \ 12966 exclude_expsyms_CXX \ 12967 include_expsyms_CXX; do 12968 12969 case $var in 12970 old_archive_cmds_CXX | \ 12971 old_archive_from_new_cmds_CXX | \ 12972 archive_cmds_CXX | \ 12973 archive_expsym_cmds_CXX | \ 12974 module_cmds_CXX | \ 12975 module_expsym_cmds_CXX | \ 12976 old_archive_from_expsyms_cmds_CXX | \ 12977 export_symbols_cmds_CXX | \ 12978 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12979 postinstall_cmds | postuninstall_cmds | \ 12980 old_postinstall_cmds | old_postuninstall_cmds | \ 12981 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12982 # Double-quote double-evaled strings. 12983 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12984 ;; 12985 *) 12986 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12987 ;; 12988 esac 12989 done 12990 12991 case $lt_echo in 12992 *'\$0 --fallback-echo"') 12993 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12994 ;; 12995 esac 12996 12997cfgfile="$ofile" 12998 12999 cat <<__EOF__ >> "$cfgfile" 13000# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13001 13002# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13003 13004# Shell to use when invoking shell scripts. 13005SHELL=$lt_SHELL 13006 13007# Whether or not to build shared libraries. 13008build_libtool_libs=$enable_shared 13009 13010# Whether or not to build static libraries. 13011build_old_libs=$enable_static 13012 13013# Whether or not to add -lc for building shared libraries. 13014build_libtool_need_lc=$archive_cmds_need_lc_CXX 13015 13016# Whether or not to disallow shared libs when runtime libs are static 13017allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13018 13019# Whether or not to optimize for fast installation. 13020fast_install=$enable_fast_install 13021 13022# The host system. 13023host_alias=$host_alias 13024host=$host 13025host_os=$host_os 13026 13027# The build system. 13028build_alias=$build_alias 13029build=$build 13030build_os=$build_os 13031 13032# An echo program that does not interpret backslashes. 13033echo=$lt_echo 13034 13035# The archiver. 13036AR=$lt_AR 13037AR_FLAGS=$lt_AR_FLAGS 13038 13039# A C compiler. 13040LTCC=$lt_LTCC 13041 13042# A language-specific compiler. 13043CC=$lt_compiler_CXX 13044 13045# Is the compiler the GNU C compiler? 13046with_gcc=$GCC_CXX 13047 13048# An ERE matcher. 13049EGREP=$lt_EGREP 13050 13051# The linker used to build libraries. 13052LD=$lt_LD_CXX 13053 13054# Whether we need hard or soft links. 13055LN_S=$lt_LN_S 13056 13057# A BSD-compatible nm program. 13058NM=$lt_NM 13059 13060# A symbol stripping program 13061STRIP=$lt_STRIP 13062 13063# Used to examine libraries when file_magic_cmd begins "file" 13064MAGIC_CMD=$MAGIC_CMD 13065 13066# Used on cygwin: DLL creation program. 13067DLLTOOL="$DLLTOOL" 13068 13069# Used on cygwin: object dumper. 13070OBJDUMP="$OBJDUMP" 13071 13072# Used on cygwin: assembler. 13073AS="$AS" 13074 13075# The name of the directory that contains temporary libtool files. 13076objdir=$objdir 13077 13078# How to create reloadable object files. 13079reload_flag=$lt_reload_flag 13080reload_cmds=$lt_reload_cmds 13081 13082# How to pass a linker flag through the compiler. 13083wl=$lt_lt_prog_compiler_wl_CXX 13084 13085# Object file suffix (normally "o"). 13086objext="$ac_objext" 13087 13088# Old archive suffix (normally "a"). 13089libext="$libext" 13090 13091# Shared library suffix (normally ".so"). 13092shrext_cmds='$shrext_cmds' 13093 13094# Executable file suffix (normally ""). 13095exeext="$exeext" 13096 13097# Additional compiler flags for building library objects. 13098pic_flag=$lt_lt_prog_compiler_pic_CXX 13099pic_mode=$pic_mode 13100 13101# What is the maximum length of a command? 13102max_cmd_len=$lt_cv_sys_max_cmd_len 13103 13104# Does compiler simultaneously support -c and -o options? 13105compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13106 13107# Must we lock files when doing compilation? 13108need_locks=$lt_need_locks 13109 13110# Do we need the lib prefix for modules? 13111need_lib_prefix=$need_lib_prefix 13112 13113# Do we need a version for libraries? 13114need_version=$need_version 13115 13116# Whether dlopen is supported. 13117dlopen_support=$enable_dlopen 13118 13119# Whether dlopen of programs is supported. 13120dlopen_self=$enable_dlopen_self 13121 13122# Whether dlopen of statically linked programs is supported. 13123dlopen_self_static=$enable_dlopen_self_static 13124 13125# Compiler flag to prevent dynamic linking. 13126link_static_flag=$lt_lt_prog_compiler_static_CXX 13127 13128# Compiler flag to turn off builtin functions. 13129no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13130 13131# Compiler flag to allow reflexive dlopens. 13132export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13133 13134# Compiler flag to generate shared objects directly from archives. 13135whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13136 13137# Compiler flag to generate thread-safe objects. 13138thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13139 13140# Library versioning type. 13141version_type=$version_type 13142 13143# Format of library name prefix. 13144libname_spec=$lt_libname_spec 13145 13146# List of archive names. First name is the real one, the rest are links. 13147# The last name is the one that the linker finds with -lNAME. 13148library_names_spec=$lt_library_names_spec 13149 13150# The coded name of the library, if different from the real name. 13151soname_spec=$lt_soname_spec 13152 13153# Commands used to build and install an old-style archive. 13154RANLIB=$lt_RANLIB 13155old_archive_cmds=$lt_old_archive_cmds_CXX 13156old_postinstall_cmds=$lt_old_postinstall_cmds 13157old_postuninstall_cmds=$lt_old_postuninstall_cmds 13158 13159# Create an old-style archive from a shared archive. 13160old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13161 13162# Create a temporary old-style archive to link instead of a shared archive. 13163old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13164 13165# Commands used to build and install a shared archive. 13166archive_cmds=$lt_archive_cmds_CXX 13167archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13168postinstall_cmds=$lt_postinstall_cmds 13169postuninstall_cmds=$lt_postuninstall_cmds 13170 13171# Commands used to build a loadable module (assumed same as above if empty) 13172module_cmds=$lt_module_cmds_CXX 13173module_expsym_cmds=$lt_module_expsym_cmds_CXX 13174 13175# Commands to strip libraries. 13176old_striplib=$lt_old_striplib 13177striplib=$lt_striplib 13178 13179# Dependencies to place before the objects being linked to create a 13180# shared library. 13181predep_objects=$lt_predep_objects_CXX 13182 13183# Dependencies to place after the objects being linked to create a 13184# shared library. 13185postdep_objects=$lt_postdep_objects_CXX 13186 13187# Dependencies to place before the objects being linked to create a 13188# shared library. 13189predeps=$lt_predeps_CXX 13190 13191# Dependencies to place after the objects being linked to create a 13192# shared library. 13193postdeps=$lt_postdeps_CXX 13194 13195# The library search path used internally by the compiler when linking 13196# a shared library. 13197compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13198 13199# Method to check whether dependent libraries are shared objects. 13200deplibs_check_method=$lt_deplibs_check_method 13201 13202# Command to use when deplibs_check_method == file_magic. 13203file_magic_cmd=$lt_file_magic_cmd 13204 13205# Flag that allows shared libraries with undefined symbols to be built. 13206allow_undefined_flag=$lt_allow_undefined_flag_CXX 13207 13208# Flag that forces no undefined symbols. 13209no_undefined_flag=$lt_no_undefined_flag_CXX 13210 13211# Commands used to finish a libtool library installation in a directory. 13212finish_cmds=$lt_finish_cmds 13213 13214# Same as above, but a single script fragment to be evaled but not shown. 13215finish_eval=$lt_finish_eval 13216 13217# Take the output of nm and produce a listing of raw symbols and C names. 13218global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13219 13220# Transform the output of nm in a proper C declaration 13221global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13222 13223# Transform the output of nm in a C name address pair 13224global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13225 13226# This is the shared library runtime path variable. 13227runpath_var=$runpath_var 13228 13229# This is the shared library path variable. 13230shlibpath_var=$shlibpath_var 13231 13232# Is shlibpath searched before the hard-coded library search path? 13233shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13234 13235# How to hardcode a shared library path into an executable. 13236hardcode_action=$hardcode_action_CXX 13237 13238# Whether we should hardcode library paths into libraries. 13239hardcode_into_libs=$hardcode_into_libs 13240 13241# Flag to hardcode \$libdir into a binary during linking. 13242# This must work even if \$libdir does not exist. 13243hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13244 13245# If ld is used when linking, flag to hardcode \$libdir into 13246# a binary during linking. This must work even if \$libdir does 13247# not exist. 13248hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13249 13250# Whether we need a single -rpath flag with a separated argument. 13251hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13252 13253# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13254# resulting binary. 13255hardcode_direct=$hardcode_direct_CXX 13256 13257# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13258# resulting binary. 13259hardcode_minus_L=$hardcode_minus_L_CXX 13260 13261# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13262# the resulting binary. 13263hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13264 13265# Set to yes if building a shared library automatically hardcodes DIR into the library 13266# and all subsequent libraries and executables linked against it. 13267hardcode_automatic=$hardcode_automatic_CXX 13268 13269# Variables whose values should be saved in libtool wrapper scripts and 13270# restored at relink time. 13271variables_saved_for_relink="$variables_saved_for_relink" 13272 13273# Whether libtool must link a program against all its dependency libraries. 13274link_all_deplibs=$link_all_deplibs_CXX 13275 13276# Compile-time system search path for libraries 13277sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13278 13279# Run-time system search path for libraries 13280sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13281 13282# Fix the shell variable \$srcfile for the compiler. 13283fix_srcfile_path="$fix_srcfile_path_CXX" 13284 13285# Set to yes if exported symbols are required. 13286always_export_symbols=$always_export_symbols_CXX 13287 13288# The commands to list exported symbols. 13289export_symbols_cmds=$lt_export_symbols_cmds_CXX 13290 13291# The commands to extract the exported symbol list from a shared archive. 13292extract_expsyms_cmds=$lt_extract_expsyms_cmds 13293 13294# Symbols that should not be listed in the preloaded symbols. 13295exclude_expsyms=$lt_exclude_expsyms_CXX 13296 13297# Symbols that must always be exported. 13298include_expsyms=$lt_include_expsyms_CXX 13299 13300# ### END LIBTOOL TAG CONFIG: $tagname 13301 13302__EOF__ 13303 13304 13305else 13306 # If there is no Makefile yet, we rely on a make rule to execute 13307 # `config.status --recheck' to rerun these tests and create the 13308 # libtool script then. 13309 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13310 if test -f "$ltmain_in"; then 13311 test -f Makefile && make "$ltmain" 13312 fi 13313fi 13314 13315 13316ac_ext=c 13317ac_cpp='$CPP $CPPFLAGS' 13318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13320ac_compiler_gnu=$ac_cv_c_compiler_gnu 13321 13322CC=$lt_save_CC 13323LDCXX=$LD 13324LD=$lt_save_LD 13325GCC=$lt_save_GCC 13326with_gnu_ldcxx=$with_gnu_ld 13327with_gnu_ld=$lt_save_with_gnu_ld 13328lt_cv_path_LDCXX=$lt_cv_path_LD 13329lt_cv_path_LD=$lt_save_path_LD 13330lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13331lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13332 13333 else 13334 tagname="" 13335 fi 13336 ;; 13337 13338 F77) 13339 if test -n "$F77" && test "X$F77" != "Xno"; then 13340 13341ac_ext=f 13342ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13343ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13344ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13345 13346 13347archive_cmds_need_lc_F77=no 13348allow_undefined_flag_F77= 13349always_export_symbols_F77=no 13350archive_expsym_cmds_F77= 13351export_dynamic_flag_spec_F77= 13352hardcode_direct_F77=no 13353hardcode_libdir_flag_spec_F77= 13354hardcode_libdir_flag_spec_ld_F77= 13355hardcode_libdir_separator_F77= 13356hardcode_minus_L_F77=no 13357hardcode_automatic_F77=no 13358module_cmds_F77= 13359module_expsym_cmds_F77= 13360link_all_deplibs_F77=unknown 13361old_archive_cmds_F77=$old_archive_cmds 13362no_undefined_flag_F77= 13363whole_archive_flag_spec_F77= 13364enable_shared_with_static_runtimes_F77=no 13365 13366# Source file extension for f77 test sources. 13367ac_ext=f 13368 13369# Object file extension for compiled f77 test sources. 13370objext=o 13371objext_F77=$objext 13372 13373# Code to be used in simple compile tests 13374lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13375 13376# Code to be used in simple link tests 13377lt_simple_link_test_code=" program t\n end\n" 13378 13379# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13380 13381# If no C compiler was specified, use CC. 13382LTCC=${LTCC-"$CC"} 13383 13384# Allow CC to be a program name with arguments. 13385compiler=$CC 13386 13387 13388# save warnings/boilerplate of simple test code 13389ac_outfile=conftest.$ac_objext 13390printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13391eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13392_lt_compiler_boilerplate=`cat conftest.err` 13393$rm conftest* 13394 13395ac_outfile=conftest.$ac_objext 13396printf "$lt_simple_link_test_code" >conftest.$ac_ext 13397eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13398_lt_linker_boilerplate=`cat conftest.err` 13399$rm conftest* 13400 13401 13402# Allow CC to be a program name with arguments. 13403lt_save_CC="$CC" 13404CC=${F77-"f77"} 13405compiler=$CC 13406compiler_F77=$CC 13407for cc_temp in $compiler""; do 13408 case $cc_temp in 13409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13411 \-*) ;; 13412 *) break;; 13413 esac 13414done 13415cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13416 13417 13418echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13419echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13420echo "$as_me:$LINENO: result: $can_build_shared" >&5 13421echo "${ECHO_T}$can_build_shared" >&6 13422 13423echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13424echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13425test "$can_build_shared" = "no" && enable_shared=no 13426 13427# On AIX, shared libraries and static libraries use the same namespace, and 13428# are all built from PIC. 13429case "$host_os" in 13430aix3*) 13431 test "$enable_shared" = yes && enable_static=no 13432 if test -n "$RANLIB"; then 13433 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13434 postinstall_cmds='$RANLIB $lib' 13435 fi 13436 ;; 13437aix4* | aix5*) 13438 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13439 test "$enable_shared" = yes && enable_static=no 13440 fi 13441 ;; 13442esac 13443echo "$as_me:$LINENO: result: $enable_shared" >&5 13444echo "${ECHO_T}$enable_shared" >&6 13445 13446echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13447echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13448# Make sure either enable_shared or enable_static is yes. 13449test "$enable_shared" = yes || enable_static=yes 13450echo "$as_me:$LINENO: result: $enable_static" >&5 13451echo "${ECHO_T}$enable_static" >&6 13452 13453test "$ld_shlibs_F77" = no && can_build_shared=no 13454 13455GCC_F77="$G77" 13456LD_F77="$LD" 13457 13458lt_prog_compiler_wl_F77= 13459lt_prog_compiler_pic_F77= 13460lt_prog_compiler_static_F77= 13461 13462echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13463echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13464 13465 if test "$GCC" = yes; then 13466 lt_prog_compiler_wl_F77='-Wl,' 13467 lt_prog_compiler_static_F77='-static' 13468 13469 case $host_os in 13470 aix*) 13471 # All AIX code is PIC. 13472 if test "$host_cpu" = ia64; then 13473 # AIX 5 now supports IA64 processor 13474 lt_prog_compiler_static_F77='-Bstatic' 13475 fi 13476 ;; 13477 13478 amigaos*) 13479 # FIXME: we need at least 68020 code to build shared libraries, but 13480 # adding the `-m68020' flag to GCC prevents building anything better, 13481 # like `-m68040'. 13482 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13483 ;; 13484 13485 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13486 # PIC is the default for these OSes. 13487 ;; 13488 13489 mingw* | pw32* | os2*) 13490 # This hack is so that the source file can tell whether it is being 13491 # built for inclusion in a dll (and should export symbols for example). 13492 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13493 ;; 13494 13495 darwin* | rhapsody*) 13496 # PIC is the default on this platform 13497 # Common symbols not allowed in MH_DYLIB files 13498 lt_prog_compiler_pic_F77='-fno-common' 13499 ;; 13500 13501 msdosdjgpp*) 13502 # Just because we use GCC doesn't mean we suddenly get shared libraries 13503 # on systems that don't support them. 13504 lt_prog_compiler_can_build_shared_F77=no 13505 enable_shared=no 13506 ;; 13507 13508 sysv4*MP*) 13509 if test -d /usr/nec; then 13510 lt_prog_compiler_pic_F77=-Kconform_pic 13511 fi 13512 ;; 13513 13514 hpux*) 13515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13516 # not for PA HP-UX. 13517 case "$host_cpu" in 13518 hppa*64*|ia64*) 13519 # +Z the default 13520 ;; 13521 *) 13522 lt_prog_compiler_pic_F77='-fPIC' 13523 ;; 13524 esac 13525 ;; 13526 13527 *) 13528 lt_prog_compiler_pic_F77='-fPIC' 13529 ;; 13530 esac 13531 else 13532 # PORTME Check for flag to pass linker flags through the system compiler. 13533 case $host_os in 13534 aix*) 13535 lt_prog_compiler_wl_F77='-Wl,' 13536 if test "$host_cpu" = ia64; then 13537 # AIX 5 now supports IA64 processor 13538 lt_prog_compiler_static_F77='-Bstatic' 13539 else 13540 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13541 fi 13542 ;; 13543 darwin*) 13544 # PIC is the default on this platform 13545 # Common symbols not allowed in MH_DYLIB files 13546 case $cc_basename in 13547 xlc*) 13548 lt_prog_compiler_pic_F77='-qnocommon' 13549 lt_prog_compiler_wl_F77='-Wl,' 13550 ;; 13551 esac 13552 ;; 13553 13554 mingw* | pw32* | os2*) 13555 # This hack is so that the source file can tell whether it is being 13556 # built for inclusion in a dll (and should export symbols for example). 13557 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13558 ;; 13559 13560 hpux9* | hpux10* | hpux11*) 13561 lt_prog_compiler_wl_F77='-Wl,' 13562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13563 # not for PA HP-UX. 13564 case "$host_cpu" in 13565 hppa*64*|ia64*) 13566 # +Z the default 13567 ;; 13568 *) 13569 lt_prog_compiler_pic_F77='+Z' 13570 ;; 13571 esac 13572 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13573 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13574 ;; 13575 13576 irix5* | irix6* | nonstopux*) 13577 lt_prog_compiler_wl_F77='-Wl,' 13578 # PIC (with -KPIC) is the default. 13579 lt_prog_compiler_static_F77='-non_shared' 13580 ;; 13581 13582 newsos6) 13583 lt_prog_compiler_pic_F77='-KPIC' 13584 lt_prog_compiler_static_F77='-Bstatic' 13585 ;; 13586 13587 linux*) 13588 case $cc_basename in 13589 icc* | ecc*) 13590 lt_prog_compiler_wl_F77='-Wl,' 13591 lt_prog_compiler_pic_F77='-KPIC' 13592 lt_prog_compiler_static_F77='-static' 13593 ;; 13594 pgcc* | pgf77* | pgf90*) 13595 # Portland Group compilers (*not* the Pentium gcc compiler, 13596 # which looks to be a dead project) 13597 lt_prog_compiler_wl_F77='-Wl,' 13598 lt_prog_compiler_pic_F77='-fpic' 13599 lt_prog_compiler_static_F77='-static' 13600 ;; 13601 ccc*) 13602 lt_prog_compiler_wl_F77='-Wl,' 13603 # All Alpha code is PIC. 13604 lt_prog_compiler_static_F77='-non_shared' 13605 ;; 13606 esac 13607 ;; 13608 13609 osf3* | osf4* | osf5*) 13610 lt_prog_compiler_wl_F77='-Wl,' 13611 # All OSF/1 code is PIC. 13612 lt_prog_compiler_static_F77='-non_shared' 13613 ;; 13614 13615 sco3.2v5*) 13616 lt_prog_compiler_pic_F77='-Kpic' 13617 lt_prog_compiler_static_F77='-dn' 13618 ;; 13619 13620 solaris*) 13621 lt_prog_compiler_pic_F77='-KPIC' 13622 lt_prog_compiler_static_F77='-Bstatic' 13623 case $cc_basename in 13624 f77* | f90* | f95*) 13625 lt_prog_compiler_wl_F77='-Qoption ld ';; 13626 *) 13627 lt_prog_compiler_wl_F77='-Wl,';; 13628 esac 13629 ;; 13630 13631 sunos4*) 13632 lt_prog_compiler_wl_F77='-Qoption ld ' 13633 lt_prog_compiler_pic_F77='-PIC' 13634 lt_prog_compiler_static_F77='-Bstatic' 13635 ;; 13636 13637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13638 lt_prog_compiler_wl_F77='-Wl,' 13639 lt_prog_compiler_pic_F77='-KPIC' 13640 lt_prog_compiler_static_F77='-Bstatic' 13641 ;; 13642 13643 sysv4*MP*) 13644 if test -d /usr/nec ;then 13645 lt_prog_compiler_pic_F77='-Kconform_pic' 13646 lt_prog_compiler_static_F77='-Bstatic' 13647 fi 13648 ;; 13649 13650 unicos*) 13651 lt_prog_compiler_wl_F77='-Wl,' 13652 lt_prog_compiler_can_build_shared_F77=no 13653 ;; 13654 13655 uts4*) 13656 lt_prog_compiler_pic_F77='-pic' 13657 lt_prog_compiler_static_F77='-Bstatic' 13658 ;; 13659 13660 *) 13661 lt_prog_compiler_can_build_shared_F77=no 13662 ;; 13663 esac 13664 fi 13665 13666echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13667echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13668 13669# 13670# Check to make sure the PIC flag actually works. 13671# 13672if test -n "$lt_prog_compiler_pic_F77"; then 13673 13674echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13675echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13676if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13677 echo $ECHO_N "(cached) $ECHO_C" >&6 13678else 13679 lt_prog_compiler_pic_works_F77=no 13680 ac_outfile=conftest.$ac_objext 13681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13682 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13683 # Insert the option either (1) after the last *FLAGS variable, or 13684 # (2) before a word containing "conftest.", or (3) at the end. 13685 # Note that $ac_compile itself does not contain backslashes and begins 13686 # with a dollar sign (not a hyphen), so the echo should work correctly. 13687 # The option is referenced via a variable to avoid confusing sed. 13688 lt_compile=`echo "$ac_compile" | $SED \ 13689 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13691 -e 's:$: $lt_compiler_flag:'` 13692 (eval echo "\"\$as_me:13692: $lt_compile\"" >&5) 13693 (eval "$lt_compile" 2>conftest.err) 13694 ac_status=$? 13695 cat conftest.err >&5 13696 echo "$as_me:13696: \$? = $ac_status" >&5 13697 if (exit $ac_status) && test -s "$ac_outfile"; then 13698 # The compiler can only warn and ignore the option if not recognized 13699 # So say no if there are warnings other than the usual output. 13700 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13701 $SED '/^$/d' conftest.err >conftest.er2 13702 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13703 lt_prog_compiler_pic_works_F77=yes 13704 fi 13705 fi 13706 $rm conftest* 13707 13708fi 13709echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13710echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13711 13712if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13713 case $lt_prog_compiler_pic_F77 in 13714 "" | " "*) ;; 13715 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13716 esac 13717else 13718 lt_prog_compiler_pic_F77= 13719 lt_prog_compiler_can_build_shared_F77=no 13720fi 13721 13722fi 13723case "$host_os" in 13724 # For platforms which do not support PIC, -DPIC is meaningless: 13725 *djgpp*) 13726 lt_prog_compiler_pic_F77= 13727 ;; 13728 *) 13729 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13730 ;; 13731esac 13732 13733echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13734echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13735if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13736 echo $ECHO_N "(cached) $ECHO_C" >&6 13737else 13738 lt_cv_prog_compiler_c_o_F77=no 13739 $rm -r conftest 2>/dev/null 13740 mkdir conftest 13741 cd conftest 13742 mkdir out 13743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13744 13745 lt_compiler_flag="-o out/conftest2.$ac_objext" 13746 # Insert the option either (1) after the last *FLAGS variable, or 13747 # (2) before a word containing "conftest.", or (3) at the end. 13748 # Note that $ac_compile itself does not contain backslashes and begins 13749 # with a dollar sign (not a hyphen), so the echo should work correctly. 13750 lt_compile=`echo "$ac_compile" | $SED \ 13751 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13753 -e 's:$: $lt_compiler_flag:'` 13754 (eval echo "\"\$as_me:13754: $lt_compile\"" >&5) 13755 (eval "$lt_compile" 2>out/conftest.err) 13756 ac_status=$? 13757 cat out/conftest.err >&5 13758 echo "$as_me:13758: \$? = $ac_status" >&5 13759 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13760 then 13761 # The compiler can only warn and ignore the option if not recognized 13762 # So say no if there are warnings 13763 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13764 $SED '/^$/d' out/conftest.err >out/conftest.er2 13765 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13766 lt_cv_prog_compiler_c_o_F77=yes 13767 fi 13768 fi 13769 chmod u+w . 13770 $rm conftest* 13771 # SGI C++ compiler will create directory out/ii_files/ for 13772 # template instantiation 13773 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13774 $rm out/* && rmdir out 13775 cd .. 13776 rmdir conftest 13777 $rm conftest* 13778 13779fi 13780echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13781echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13782 13783 13784hard_links="nottested" 13785if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13786 # do not overwrite the value of need_locks provided by the user 13787 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13788echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13789 hard_links=yes 13790 $rm conftest* 13791 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13792 touch conftest.a 13793 ln conftest.a conftest.b 2>&5 || hard_links=no 13794 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13795 echo "$as_me:$LINENO: result: $hard_links" >&5 13796echo "${ECHO_T}$hard_links" >&6 13797 if test "$hard_links" = no; then 13798 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13799echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13800 need_locks=warn 13801 fi 13802else 13803 need_locks=no 13804fi 13805 13806echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13807echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13808 13809 runpath_var= 13810 allow_undefined_flag_F77= 13811 enable_shared_with_static_runtimes_F77=no 13812 archive_cmds_F77= 13813 archive_expsym_cmds_F77= 13814 old_archive_From_new_cmds_F77= 13815 old_archive_from_expsyms_cmds_F77= 13816 export_dynamic_flag_spec_F77= 13817 whole_archive_flag_spec_F77= 13818 thread_safe_flag_spec_F77= 13819 hardcode_libdir_flag_spec_F77= 13820 hardcode_libdir_flag_spec_ld_F77= 13821 hardcode_libdir_separator_F77= 13822 hardcode_direct_F77=no 13823 hardcode_minus_L_F77=no 13824 hardcode_shlibpath_var_F77=unsupported 13825 link_all_deplibs_F77=unknown 13826 hardcode_automatic_F77=no 13827 module_cmds_F77= 13828 module_expsym_cmds_F77= 13829 always_export_symbols_F77=no 13830 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13831 # include_expsyms should be a list of space-separated symbols to be *always* 13832 # included in the symbol list 13833 include_expsyms_F77= 13834 # exclude_expsyms can be an extended regexp of symbols to exclude 13835 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13836 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13837 # as well as any symbol that contains `d'. 13838 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13839 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13840 # platforms (ab)use it in PIC code, but their linkers get confused if 13841 # the symbol is explicitly referenced. Since portable code cannot 13842 # rely on this symbol name, it's probably fine to never include it in 13843 # preloaded symbol tables. 13844 extract_expsyms_cmds= 13845 # Just being paranoid about ensuring that cc_basename is set. 13846 for cc_temp in $compiler""; do 13847 case $cc_temp in 13848 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13849 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13850 \-*) ;; 13851 *) break;; 13852 esac 13853done 13854cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13855 13856 case $host_os in 13857 cygwin* | mingw* | pw32*) 13858 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13859 # When not using gcc, we currently assume that we are using 13860 # Microsoft Visual C++. 13861 if test "$GCC" != yes; then 13862 with_gnu_ld=no 13863 fi 13864 ;; 13865 openbsd*) 13866 with_gnu_ld=no 13867 ;; 13868 esac 13869 13870 ld_shlibs_F77=yes 13871 if test "$with_gnu_ld" = yes; then 13872 # If archive_cmds runs LD, not CC, wlarc should be empty 13873 wlarc='${wl}' 13874 13875 # Set some defaults for GNU ld with shared library support. These 13876 # are reset later if shared libraries are not supported. Putting them 13877 # here allows them to be overridden if necessary. 13878 runpath_var=LD_RUN_PATH 13879 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13880 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13881 # ancient GNU ld didn't support --whole-archive et. al. 13882 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13883 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13884 else 13885 whole_archive_flag_spec_F77= 13886 fi 13887 supports_anon_versioning=no 13888 case `$LD -v 2>/dev/null` in 13889 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13890 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13891 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13892 *\ 2.11.*) ;; # other 2.11 versions 13893 *) supports_anon_versioning=yes ;; 13894 esac 13895 13896 # See if GNU ld supports shared libraries. 13897 case $host_os in 13898 aix3* | aix4* | aix5*) 13899 # On AIX/PPC, the GNU linker is very broken 13900 if test "$host_cpu" != ia64; then 13901 ld_shlibs_F77=no 13902 cat <<EOF 1>&2 13903 13904*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13905*** to be unable to reliably create shared libraries on AIX. 13906*** Therefore, libtool is disabling shared libraries support. If you 13907*** really care for shared libraries, you may want to modify your PATH 13908*** so that a non-GNU linker is found, and then restart. 13909 13910EOF 13911 fi 13912 ;; 13913 13914 amigaos*) 13915 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)' 13916 hardcode_libdir_flag_spec_F77='-L$libdir' 13917 hardcode_minus_L_F77=yes 13918 13919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13920 # that the semantics of dynamic libraries on AmigaOS, at least up 13921 # to version 4, is to share data among multiple programs linked 13922 # with the same dynamic library. Since this doesn't match the 13923 # behavior of shared libraries on other platforms, we can't use 13924 # them. 13925 ld_shlibs_F77=no 13926 ;; 13927 13928 beos*) 13929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13930 allow_undefined_flag_F77=unsupported 13931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13932 # support --undefined. This deserves some investigation. FIXME 13933 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13934 else 13935 ld_shlibs_F77=no 13936 fi 13937 ;; 13938 13939 cygwin* | mingw* | pw32*) 13940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13941 # as there is no search path for DLLs. 13942 hardcode_libdir_flag_spec_F77='-L$libdir' 13943 allow_undefined_flag_F77=unsupported 13944 always_export_symbols_F77=no 13945 enable_shared_with_static_runtimes_F77=yes 13946 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13947 13948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13949 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13950 # If the export-symbols file already is a .def file (1st line 13951 # is EXPORTS), use it as is; otherwise, prepend... 13952 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13953 cp $export_symbols $output_objdir/$soname.def; 13954 else 13955 echo EXPORTS > $output_objdir/$soname.def; 13956 cat $export_symbols >> $output_objdir/$soname.def; 13957 fi~ 13958 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13959 else 13960 ld_shlibs_F77=no 13961 fi 13962 ;; 13963 13964 linux*) 13965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13966 tmp_addflag= 13967 case $cc_basename,$host_cpu in 13968 pgcc*) # Portland Group C compiler 13969 whole_archive_flag_spec_F77= 13970 ;; 13971 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 13972 whole_archive_flag_spec_F77= 13973 tmp_addflag=' -fpic -Mnomain' ;; 13974 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13975 tmp_addflag=' -i_dynamic' ;; 13976 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13977 tmp_addflag=' -i_dynamic -nofor_main' ;; 13978 ifc* | ifort*) # Intel Fortran compiler 13979 tmp_addflag=' -nofor_main' ;; 13980 esac 13981 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13982 13983 if test $supports_anon_versioning = yes; then 13984 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13986 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13987 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13988 fi 13989 else 13990 ld_shlibs_F77=no 13991 fi 13992 ;; 13993 13994 netbsd*) 13995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13996 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13997 wlarc= 13998 else 13999 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14000 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14001 fi 14002 ;; 14003 14004 solaris* | sysv5*) 14005 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14006 ld_shlibs_F77=no 14007 cat <<EOF 1>&2 14008 14009*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14010*** create shared libraries on Solaris systems. Therefore, libtool 14011*** is disabling shared libraries support. We urge you to upgrade GNU 14012*** binutils to release 2.9.1 or newer. Another option is to modify 14013*** your PATH or compiler configuration so that the native linker is 14014*** used, and then restart. 14015 14016EOF 14017 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14018 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14019 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14020 else 14021 ld_shlibs_F77=no 14022 fi 14023 ;; 14024 14025 sunos4*) 14026 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14027 wlarc= 14028 hardcode_direct_F77=yes 14029 hardcode_shlibpath_var_F77=no 14030 ;; 14031 14032 *) 14033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14034 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14035 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14036 else 14037 ld_shlibs_F77=no 14038 fi 14039 ;; 14040 esac 14041 14042 if test "$ld_shlibs_F77" = no; then 14043 runpath_var= 14044 hardcode_libdir_flag_spec_F77= 14045 export_dynamic_flag_spec_F77= 14046 whole_archive_flag_spec_F77= 14047 fi 14048 else 14049 # PORTME fill in a description of your system's linker (not GNU ld) 14050 case $host_os in 14051 aix3*) 14052 allow_undefined_flag_F77=unsupported 14053 always_export_symbols_F77=yes 14054 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' 14055 # Note: this linker hardcodes the directories in LIBPATH if there 14056 # are no directories specified by -L. 14057 hardcode_minus_L_F77=yes 14058 if test "$GCC" = yes && test -z "$link_static_flag"; then 14059 # Neither direct hardcoding nor static linking is supported with a 14060 # broken collect2. 14061 hardcode_direct_F77=unsupported 14062 fi 14063 ;; 14064 14065 aix4* | aix5*) 14066 if test "$host_cpu" = ia64; then 14067 # On IA64, the linker does run time linking by default, so we don't 14068 # have to do anything special. 14069 aix_use_runtimelinking=no 14070 exp_sym_flag='-Bexport' 14071 no_entry_flag="" 14072 else 14073 # If we're using GNU nm, then we don't want the "-C" option. 14074 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14075 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14076 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' 14077 else 14078 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' 14079 fi 14080 aix_use_runtimelinking=no 14081 14082 # Test if we are trying to use run time linking or normal 14083 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14084 # need to do runtime linking. 14085 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14086 for ld_flag in $LDFLAGS; do 14087 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14088 aix_use_runtimelinking=yes 14089 break 14090 fi 14091 done 14092 esac 14093 14094 exp_sym_flag='-bexport' 14095 no_entry_flag='-bnoentry' 14096 fi 14097 14098 # When large executables or shared objects are built, AIX ld can 14099 # have problems creating the table of contents. If linking a library 14100 # or program results in "error TOC overflow" add -mminimal-toc to 14101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14103 14104 archive_cmds_F77='' 14105 hardcode_direct_F77=yes 14106 hardcode_libdir_separator_F77=':' 14107 link_all_deplibs_F77=yes 14108 14109 if test "$GCC" = yes; then 14110 case $host_os in aix4.[012]|aix4.[012].*) 14111 # We only want to do this on AIX 4.2 and lower, the check 14112 # below for broken collect2 doesn't work under 4.3+ 14113 collect2name=`${CC} -print-prog-name=collect2` 14114 if test -f "$collect2name" && \ 14115 strings "$collect2name" | grep resolve_lib_name >/dev/null 14116 then 14117 # We have reworked collect2 14118 hardcode_direct_F77=yes 14119 else 14120 # We have old collect2 14121 hardcode_direct_F77=unsupported 14122 # It fails to find uninstalled libraries when the uninstalled 14123 # path is not listed in the libpath. Setting hardcode_minus_L 14124 # to unsupported forces relinking 14125 hardcode_minus_L_F77=yes 14126 hardcode_libdir_flag_spec_F77='-L$libdir' 14127 hardcode_libdir_separator_F77= 14128 fi 14129 esac 14130 shared_flag='-shared' 14131 if test "$aix_use_runtimelinking" = yes; then 14132 shared_flag="$shared_flag "'${wl}-G' 14133 fi 14134 else 14135 # not using gcc 14136 if test "$host_cpu" = ia64; then 14137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14138 # chokes on -Wl,-G. The following line is correct: 14139 shared_flag='-G' 14140 else 14141 if test "$aix_use_runtimelinking" = yes; then 14142 shared_flag='${wl}-G' 14143 else 14144 shared_flag='${wl}-bM:SRE' 14145 fi 14146 fi 14147 fi 14148 14149 # It seems that -bexpall does not export symbols beginning with 14150 # underscore (_), so it is better to generate a list of symbols to export. 14151 always_export_symbols_F77=yes 14152 if test "$aix_use_runtimelinking" = yes; then 14153 # Warning - without using the other runtime loading flags (-brtl), 14154 # -berok will link without error, but may produce a broken library. 14155 allow_undefined_flag_F77='-berok' 14156 # Determine the default libpath from the value encoded in an empty executable. 14157 cat >conftest.$ac_ext <<_ACEOF 14158 program main 14159 14160 end 14161_ACEOF 14162rm -f conftest.$ac_objext conftest$ac_exeext 14163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14164 (eval $ac_link) 2>conftest.er1 14165 ac_status=$? 14166 grep -v '^ *+' conftest.er1 >conftest.err 14167 rm -f conftest.er1 14168 cat conftest.err >&5 14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14170 (exit $ac_status); } && 14171 { ac_try='test -z "$ac_f77_werror_flag" 14172 || test ! -s conftest.err' 14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14174 (eval $ac_try) 2>&5 14175 ac_status=$? 14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14177 (exit $ac_status); }; } && 14178 { ac_try='test -s conftest$ac_exeext' 14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14180 (eval $ac_try) 2>&5 14181 ac_status=$? 14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14183 (exit $ac_status); }; }; then 14184 14185aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14186}'` 14187# Check for a 64-bit object if we didn't find anything. 14188if 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; } 14189}'`; fi 14190else 14191 echo "$as_me: failed program was:" >&5 14192sed 's/^/| /' conftest.$ac_ext >&5 14193 14194fi 14195rm -f conftest.err conftest.$ac_objext \ 14196 conftest$ac_exeext conftest.$ac_ext 14197if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14198 14199 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14200 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" 14201 else 14202 if test "$host_cpu" = ia64; then 14203 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14204 allow_undefined_flag_F77="-z nodefs" 14205 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" 14206 else 14207 # Determine the default libpath from the value encoded in an empty executable. 14208 cat >conftest.$ac_ext <<_ACEOF 14209 program main 14210 14211 end 14212_ACEOF 14213rm -f conftest.$ac_objext conftest$ac_exeext 14214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14215 (eval $ac_link) 2>conftest.er1 14216 ac_status=$? 14217 grep -v '^ *+' conftest.er1 >conftest.err 14218 rm -f conftest.er1 14219 cat conftest.err >&5 14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14221 (exit $ac_status); } && 14222 { ac_try='test -z "$ac_f77_werror_flag" 14223 || test ! -s conftest.err' 14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14225 (eval $ac_try) 2>&5 14226 ac_status=$? 14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14228 (exit $ac_status); }; } && 14229 { ac_try='test -s conftest$ac_exeext' 14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14231 (eval $ac_try) 2>&5 14232 ac_status=$? 14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14234 (exit $ac_status); }; }; then 14235 14236aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14237}'` 14238# Check for a 64-bit object if we didn't find anything. 14239if 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; } 14240}'`; fi 14241else 14242 echo "$as_me: failed program was:" >&5 14243sed 's/^/| /' conftest.$ac_ext >&5 14244 14245fi 14246rm -f conftest.err conftest.$ac_objext \ 14247 conftest$ac_exeext conftest.$ac_ext 14248if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14249 14250 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14251 # Warning - without using the other run time loading flags, 14252 # -berok will link without error, but may produce a broken library. 14253 no_undefined_flag_F77=' ${wl}-bernotok' 14254 allow_undefined_flag_F77=' ${wl}-berok' 14255 # -bexpall does not export symbols beginning with underscore (_) 14256 always_export_symbols_F77=yes 14257 # Exported symbols can be pulled into shared objects from archives 14258 whole_archive_flag_spec_F77=' ' 14259 archive_cmds_need_lc_F77=yes 14260 # This is similar to how AIX traditionally builds it's shared libraries. 14261 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' 14262 fi 14263 fi 14264 ;; 14265 14266 amigaos*) 14267 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)' 14268 hardcode_libdir_flag_spec_F77='-L$libdir' 14269 hardcode_minus_L_F77=yes 14270 # see comment about different semantics on the GNU ld section 14271 ld_shlibs_F77=no 14272 ;; 14273 14274 bsdi[45]*) 14275 export_dynamic_flag_spec_F77=-rdynamic 14276 ;; 14277 14278 cygwin* | mingw* | pw32*) 14279 # When not using gcc, we currently assume that we are using 14280 # Microsoft Visual C++. 14281 # hardcode_libdir_flag_spec is actually meaningless, as there is 14282 # no search path for DLLs. 14283 hardcode_libdir_flag_spec_F77=' ' 14284 allow_undefined_flag_F77=unsupported 14285 # Tell ltmain to make .lib files, not .a files. 14286 libext=lib 14287 # Tell ltmain to make .dll files, not .so files. 14288 shrext_cmds=".dll" 14289 # FIXME: Setting linknames here is a bad hack. 14290 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14291 # The linker will automatically build a .lib file if we build a DLL. 14292 old_archive_From_new_cmds_F77='true' 14293 # FIXME: Should let the user specify the lib program. 14294 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14295 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14296 enable_shared_with_static_runtimes_F77=yes 14297 ;; 14298 14299 darwin* | rhapsody*) 14300 case "$host_os" in 14301 rhapsody* | darwin1.[012]) 14302 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14303 ;; 14304 *) # Darwin 1.3 on 14305 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14306 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14307 else 14308 case ${MACOSX_DEPLOYMENT_TARGET} in 14309 10.[012]) 14310 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14311 ;; 14312 10.*) 14313 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14314 ;; 14315 esac 14316 fi 14317 ;; 14318 esac 14319 archive_cmds_need_lc_F77=no 14320 hardcode_direct_F77=no 14321 hardcode_automatic_F77=yes 14322 hardcode_shlibpath_var_F77=unsupported 14323 whole_archive_flag_spec_F77='' 14324 link_all_deplibs_F77=yes 14325 if test "$GCC" = yes ; then 14326 output_verbose_link_cmd='echo' 14327 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14328 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14330 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14331 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}' 14332 else 14333 case $cc_basename in 14334 xlc*) 14335 output_verbose_link_cmd='echo' 14336 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14337 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14339 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14340 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}' 14341 ;; 14342 *) 14343 ld_shlibs_F77=no 14344 ;; 14345 esac 14346 fi 14347 ;; 14348 14349 dgux*) 14350 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14351 hardcode_libdir_flag_spec_F77='-L$libdir' 14352 hardcode_shlibpath_var_F77=no 14353 ;; 14354 14355 freebsd1*) 14356 ld_shlibs_F77=no 14357 ;; 14358 14359 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14360 # support. Future versions do this automatically, but an explicit c++rt0.o 14361 # does not break anything, and helps significantly (at the cost of a little 14362 # extra space). 14363 freebsd2.2*) 14364 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14365 hardcode_libdir_flag_spec_F77='-R$libdir' 14366 hardcode_direct_F77=yes 14367 hardcode_shlibpath_var_F77=no 14368 ;; 14369 14370 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14371 freebsd2*) 14372 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14373 hardcode_direct_F77=yes 14374 hardcode_minus_L_F77=yes 14375 hardcode_shlibpath_var_F77=no 14376 ;; 14377 14378 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14379 freebsd* | kfreebsd*-gnu | dragonfly*) 14380 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14381 hardcode_libdir_flag_spec_F77='-R$libdir' 14382 hardcode_direct_F77=yes 14383 hardcode_shlibpath_var_F77=no 14384 ;; 14385 14386 hpux9*) 14387 if test "$GCC" = yes; then 14388 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' 14389 else 14390 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' 14391 fi 14392 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14393 hardcode_libdir_separator_F77=: 14394 hardcode_direct_F77=yes 14395 14396 # hardcode_minus_L: Not really in the search PATH, 14397 # but as the default location of the library. 14398 hardcode_minus_L_F77=yes 14399 export_dynamic_flag_spec_F77='${wl}-E' 14400 ;; 14401 14402 hpux10* | hpux11*) 14403 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14404 case "$host_cpu" in 14405 hppa*64*|ia64*) 14406 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14407 ;; 14408 *) 14409 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14410 ;; 14411 esac 14412 else 14413 case "$host_cpu" in 14414 hppa*64*|ia64*) 14415 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14416 ;; 14417 *) 14418 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14419 ;; 14420 esac 14421 fi 14422 if test "$with_gnu_ld" = no; then 14423 case "$host_cpu" in 14424 hppa*64*) 14425 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14426 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14427 hardcode_libdir_separator_F77=: 14428 hardcode_direct_F77=no 14429 hardcode_shlibpath_var_F77=no 14430 ;; 14431 ia64*) 14432 hardcode_libdir_flag_spec_F77='-L$libdir' 14433 hardcode_direct_F77=no 14434 hardcode_shlibpath_var_F77=no 14435 14436 # hardcode_minus_L: Not really in the search PATH, 14437 # but as the default location of the library. 14438 hardcode_minus_L_F77=yes 14439 ;; 14440 *) 14441 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14442 hardcode_libdir_separator_F77=: 14443 hardcode_direct_F77=yes 14444 export_dynamic_flag_spec_F77='${wl}-E' 14445 14446 # hardcode_minus_L: Not really in the search PATH, 14447 # but as the default location of the library. 14448 hardcode_minus_L_F77=yes 14449 ;; 14450 esac 14451 fi 14452 ;; 14453 14454 irix5* | irix6* | nonstopux*) 14455 if test "$GCC" = yes; then 14456 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' 14457 else 14458 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' 14459 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14460 fi 14461 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14462 hardcode_libdir_separator_F77=: 14463 link_all_deplibs_F77=yes 14464 ;; 14465 14466 netbsd*) 14467 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14468 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14469 else 14470 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14471 fi 14472 hardcode_libdir_flag_spec_F77='-R$libdir' 14473 hardcode_direct_F77=yes 14474 hardcode_shlibpath_var_F77=no 14475 ;; 14476 14477 newsos6) 14478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14479 hardcode_direct_F77=yes 14480 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14481 hardcode_libdir_separator_F77=: 14482 hardcode_shlibpath_var_F77=no 14483 ;; 14484 14485 openbsd*) 14486 hardcode_direct_F77=yes 14487 hardcode_shlibpath_var_F77=no 14488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14489 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14490 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14491 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14492 export_dynamic_flag_spec_F77='${wl}-E' 14493 else 14494 case $host_os in 14495 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14496 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14497 hardcode_libdir_flag_spec_F77='-R$libdir' 14498 ;; 14499 *) 14500 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14501 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14502 ;; 14503 esac 14504 fi 14505 ;; 14506 14507 os2*) 14508 hardcode_libdir_flag_spec_F77='-L$libdir' 14509 hardcode_minus_L_F77=yes 14510 allow_undefined_flag_F77=unsupported 14511 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' 14512 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14513 ;; 14514 14515 osf3*) 14516 if test "$GCC" = yes; then 14517 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14518 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' 14519 else 14520 allow_undefined_flag_F77=' -expect_unresolved \*' 14521 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' 14522 fi 14523 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14524 hardcode_libdir_separator_F77=: 14525 ;; 14526 14527 osf4* | osf5*) # as osf3* with the addition of -msym flag 14528 if test "$GCC" = yes; then 14529 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14530 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' 14531 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14532 else 14533 allow_undefined_flag_F77=' -expect_unresolved \*' 14534 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' 14535 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~ 14536 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14537 14538 # Both c and cxx compiler support -rpath directly 14539 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14540 fi 14541 hardcode_libdir_separator_F77=: 14542 ;; 14543 14544 sco3.2v5*) 14545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14546 hardcode_shlibpath_var_F77=no 14547 export_dynamic_flag_spec_F77='${wl}-Bexport' 14548 runpath_var=LD_RUN_PATH 14549 hardcode_runpath_var=yes 14550 ;; 14551 14552 solaris*) 14553 no_undefined_flag_F77=' -z text' 14554 if test "$GCC" = yes; then 14555 wlarc='${wl}' 14556 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14557 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14558 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14559 else 14560 wlarc='' 14561 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14562 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14564 fi 14565 hardcode_libdir_flag_spec_F77='-R$libdir' 14566 hardcode_shlibpath_var_F77=no 14567 case $host_os in 14568 solaris2.[0-5] | solaris2.[0-5].*) ;; 14569 *) 14570 # The compiler driver will combine linker options so we 14571 # cannot just pass the convience library names through 14572 # without $wl, iff we do not link with $LD. 14573 # Luckily, gcc supports the same syntax we need for Sun Studio. 14574 # Supported since Solaris 2.6 (maybe 2.5.1?) 14575 case $wlarc in 14576 '') 14577 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14578 *) 14579 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14580 esac ;; 14581 esac 14582 link_all_deplibs_F77=yes 14583 ;; 14584 14585 sunos4*) 14586 if test "x$host_vendor" = xsequent; then 14587 # Use $CC to link under sequent, because it throws in some extra .o 14588 # files that make .init and .fini sections work. 14589 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14590 else 14591 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14592 fi 14593 hardcode_libdir_flag_spec_F77='-L$libdir' 14594 hardcode_direct_F77=yes 14595 hardcode_minus_L_F77=yes 14596 hardcode_shlibpath_var_F77=no 14597 ;; 14598 14599 sysv4) 14600 case $host_vendor in 14601 sni) 14602 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14603 hardcode_direct_F77=yes # is this really true??? 14604 ;; 14605 siemens) 14606 ## LD is ld it makes a PLAMLIB 14607 ## CC just makes a GrossModule. 14608 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14609 reload_cmds_F77='$CC -r -o $output$reload_objs' 14610 hardcode_direct_F77=no 14611 ;; 14612 motorola) 14613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14614 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14615 ;; 14616 esac 14617 runpath_var='LD_RUN_PATH' 14618 hardcode_shlibpath_var_F77=no 14619 ;; 14620 14621 sysv4.3*) 14622 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14623 hardcode_shlibpath_var_F77=no 14624 export_dynamic_flag_spec_F77='-Bexport' 14625 ;; 14626 14627 sysv4*MP*) 14628 if test -d /usr/nec; then 14629 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14630 hardcode_shlibpath_var_F77=no 14631 runpath_var=LD_RUN_PATH 14632 hardcode_runpath_var=yes 14633 ld_shlibs_F77=yes 14634 fi 14635 ;; 14636 14637 sysv4.2uw2*) 14638 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14639 hardcode_direct_F77=yes 14640 hardcode_minus_L_F77=no 14641 hardcode_shlibpath_var_F77=no 14642 hardcode_runpath_var=yes 14643 runpath_var=LD_RUN_PATH 14644 ;; 14645 14646 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14647 no_undefined_flag_F77='${wl}-z ${wl}text' 14648 if test "$GCC" = yes; then 14649 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14650 else 14651 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14652 fi 14653 runpath_var='LD_RUN_PATH' 14654 hardcode_shlibpath_var_F77=no 14655 ;; 14656 14657 sysv5*) 14658 no_undefined_flag_F77=' -z text' 14659 # $CC -shared without GNU ld will not create a library from C++ 14660 # object files and a static libstdc++, better avoid it by now 14661 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14662 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14663 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14664 hardcode_libdir_flag_spec_F77= 14665 hardcode_shlibpath_var_F77=no 14666 runpath_var='LD_RUN_PATH' 14667 ;; 14668 14669 uts4*) 14670 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14671 hardcode_libdir_flag_spec_F77='-L$libdir' 14672 hardcode_shlibpath_var_F77=no 14673 ;; 14674 14675 *) 14676 ld_shlibs_F77=no 14677 ;; 14678 esac 14679 fi 14680 14681echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14682echo "${ECHO_T}$ld_shlibs_F77" >&6 14683test "$ld_shlibs_F77" = no && can_build_shared=no 14684 14685variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14686if test "$GCC" = yes; then 14687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14688fi 14689 14690# 14691# Do we need to explicitly link libc? 14692# 14693case "x$archive_cmds_need_lc_F77" in 14694x|xyes) 14695 # Assume -lc should be added 14696 archive_cmds_need_lc_F77=yes 14697 14698 if test "$enable_shared" = yes && test "$GCC" = yes; then 14699 case $archive_cmds_F77 in 14700 *'~'*) 14701 # FIXME: we may have to deal with multi-command sequences. 14702 ;; 14703 '$CC '*) 14704 # Test whether the compiler implicitly links with -lc since on some 14705 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14706 # to ld, don't add -lc before -lgcc. 14707 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14708echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14709 $rm conftest* 14710 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14711 14712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14713 (eval $ac_compile) 2>&5 14714 ac_status=$? 14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14716 (exit $ac_status); } 2>conftest.err; then 14717 soname=conftest 14718 lib=conftest 14719 libobjs=conftest.$ac_objext 14720 deplibs= 14721 wl=$lt_prog_compiler_wl_F77 14722 compiler_flags=-v 14723 linker_flags=-v 14724 verstring= 14725 output_objdir=. 14726 libname=conftest 14727 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14728 allow_undefined_flag_F77= 14729 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14730 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14731 ac_status=$? 14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14733 (exit $ac_status); } 14734 then 14735 archive_cmds_need_lc_F77=no 14736 else 14737 archive_cmds_need_lc_F77=yes 14738 fi 14739 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14740 else 14741 cat conftest.err 1>&5 14742 fi 14743 $rm conftest* 14744 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14745echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14746 ;; 14747 esac 14748 fi 14749 ;; 14750esac 14751 14752echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14753echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14754library_names_spec= 14755libname_spec='lib$name' 14756soname_spec= 14757shrext_cmds=".so" 14758postinstall_cmds= 14759postuninstall_cmds= 14760finish_cmds= 14761finish_eval= 14762shlibpath_var= 14763shlibpath_overrides_runpath=unknown 14764version_type=none 14765dynamic_linker="$host_os ld.so" 14766sys_lib_dlsearch_path_spec="/lib /usr/lib" 14767if test "$GCC" = yes; then 14768 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14769 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14770 # if the path contains ";" then we assume it to be the separator 14771 # otherwise default to the standard path separator (i.e. ":") - it is 14772 # assumed that no part of a normal pathname contains ";" but that should 14773 # okay in the real world where ";" in dirpaths is itself problematic. 14774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14775 else 14776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14777 fi 14778else 14779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14780fi 14781need_lib_prefix=unknown 14782hardcode_into_libs=no 14783 14784# when you set need_version to no, make sure it does not cause -set_version 14785# flags to be left without arguments 14786need_version=unknown 14787 14788case $host_os in 14789aix3*) 14790 version_type=linux 14791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14792 shlibpath_var=LIBPATH 14793 14794 # AIX 3 has no versioning support, so we append a major version to the name. 14795 soname_spec='${libname}${release}${shared_ext}$major' 14796 ;; 14797 14798aix4* | aix5*) 14799 version_type=linux 14800 need_lib_prefix=no 14801 need_version=no 14802 hardcode_into_libs=yes 14803 if test "$host_cpu" = ia64; then 14804 # AIX 5 supports IA64 14805 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14806 shlibpath_var=LD_LIBRARY_PATH 14807 else 14808 # With GCC up to 2.95.x, collect2 would create an import file 14809 # for dependence libraries. The import file would start with 14810 # the line `#! .'. This would cause the generated library to 14811 # depend on `.', always an invalid library. This was fixed in 14812 # development snapshots of GCC prior to 3.0. 14813 case $host_os in 14814 aix4 | aix4.[01] | aix4.[01].*) 14815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14816 echo ' yes ' 14817 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14818 : 14819 else 14820 can_build_shared=no 14821 fi 14822 ;; 14823 esac 14824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14825 # soname into executable. Probably we can add versioning support to 14826 # collect2, so additional links can be useful in future. 14827 if test "$aix_use_runtimelinking" = yes; then 14828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14829 # instead of lib<name>.a to let people know that these are not 14830 # typical AIX shared libraries. 14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14832 else 14833 # We preserve .a as extension for shared libraries through AIX4.2 14834 # and later when we are not doing run time linking. 14835 library_names_spec='${libname}${release}.a $libname.a' 14836 soname_spec='${libname}${release}${shared_ext}$major' 14837 fi 14838 shlibpath_var=LIBPATH 14839 fi 14840 ;; 14841 14842amigaos*) 14843 library_names_spec='$libname.ixlibrary $libname.a' 14844 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14845 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' 14846 ;; 14847 14848beos*) 14849 library_names_spec='${libname}${shared_ext}' 14850 dynamic_linker="$host_os ld.so" 14851 shlibpath_var=LIBRARY_PATH 14852 ;; 14853 14854bsdi[45]*) 14855 version_type=linux 14856 need_version=no 14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14858 soname_spec='${libname}${release}${shared_ext}$major' 14859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14860 shlibpath_var=LD_LIBRARY_PATH 14861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14863 # the default ld.so.conf also contains /usr/contrib/lib and 14864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14865 # libtool to hard-code these into programs 14866 ;; 14867 14868cygwin* | mingw* | pw32*) 14869 version_type=windows 14870 shrext_cmds=".dll" 14871 need_version=no 14872 need_lib_prefix=no 14873 14874 case $GCC,$host_os in 14875 yes,cygwin* | yes,mingw* | yes,pw32*) 14876 library_names_spec='$libname.dll.a' 14877 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14878 postinstall_cmds='base_file=`basename \${file}`~ 14879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14880 dldir=$destdir/`dirname \$dlpath`~ 14881 test -d \$dldir || mkdir -p \$dldir~ 14882 $install_prog $dir/$dlname \$dldir/$dlname' 14883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14884 dlpath=$dir/\$dldll~ 14885 $rm \$dlpath' 14886 shlibpath_overrides_runpath=yes 14887 14888 case $host_os in 14889 cygwin*) 14890 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14891 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14892 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14893 ;; 14894 mingw*) 14895 # MinGW DLLs use traditional 'lib' prefix 14896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14898 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14899 # It is most probably a Windows format PATH printed by 14900 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14901 # path with ; separators, and with drive letters. We can handle the 14902 # drive letters (cygwin fileutils understands them), so leave them, 14903 # especially as we might pass files found there to a mingw objdump, 14904 # which wouldn't understand a cygwinified path. Ahh. 14905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14906 else 14907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14908 fi 14909 ;; 14910 pw32*) 14911 # pw32 DLLs use 'pw' prefix rather than 'lib' 14912 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14913 ;; 14914 esac 14915 ;; 14916 14917 *) 14918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14919 ;; 14920 esac 14921 dynamic_linker='Win32 ld.exe' 14922 # FIXME: first we should search . and the directory the executable is in 14923 shlibpath_var=PATH 14924 ;; 14925 14926darwin* | rhapsody*) 14927 dynamic_linker="$host_os dyld" 14928 version_type=darwin 14929 need_lib_prefix=no 14930 need_version=no 14931 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14932 soname_spec='${libname}${release}${major}$shared_ext' 14933 shlibpath_overrides_runpath=yes 14934 shlibpath_var=DYLD_LIBRARY_PATH 14935 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14936 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14937 if test "$GCC" = yes; then 14938 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"` 14939 else 14940 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14941 fi 14942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14943 ;; 14944 14945dgux*) 14946 version_type=linux 14947 need_lib_prefix=no 14948 need_version=no 14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14950 soname_spec='${libname}${release}${shared_ext}$major' 14951 shlibpath_var=LD_LIBRARY_PATH 14952 ;; 14953 14954freebsd1*) 14955 dynamic_linker=no 14956 ;; 14957 14958kfreebsd*-gnu) 14959 version_type=linux 14960 need_lib_prefix=no 14961 need_version=no 14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14963 soname_spec='${libname}${release}${shared_ext}$major' 14964 shlibpath_var=LD_LIBRARY_PATH 14965 shlibpath_overrides_runpath=no 14966 hardcode_into_libs=yes 14967 dynamic_linker='GNU ld.so' 14968 ;; 14969 14970freebsd* | dragonfly*) 14971 # DragonFly does not have aout. When/if they implement a new 14972 # versioning mechanism, adjust this. 14973 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14974 version_type=freebsd-$objformat 14975 case $version_type in 14976 freebsd-elf*) 14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14978 need_version=no 14979 need_lib_prefix=no 14980 ;; 14981 freebsd-*) 14982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14983 need_version=yes 14984 ;; 14985 esac 14986 shlibpath_var=LD_LIBRARY_PATH 14987 case $host_os in 14988 freebsd2*) 14989 shlibpath_overrides_runpath=yes 14990 ;; 14991 freebsd3.[01]* | freebsdelf3.[01]*) 14992 shlibpath_overrides_runpath=yes 14993 hardcode_into_libs=yes 14994 ;; 14995 *) # from 3.2 on 14996 shlibpath_overrides_runpath=no 14997 hardcode_into_libs=yes 14998 ;; 14999 esac 15000 ;; 15001 15002gnu*) 15003 version_type=linux 15004 need_lib_prefix=no 15005 need_version=no 15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15007 soname_spec='${libname}${release}${shared_ext}$major' 15008 shlibpath_var=LD_LIBRARY_PATH 15009 hardcode_into_libs=yes 15010 ;; 15011 15012hpux9* | hpux10* | hpux11*) 15013 # Give a soname corresponding to the major version so that dld.sl refuses to 15014 # link against other versions. 15015 version_type=sunos 15016 need_lib_prefix=no 15017 need_version=no 15018 case "$host_cpu" in 15019 ia64*) 15020 shrext_cmds='.so' 15021 hardcode_into_libs=yes 15022 dynamic_linker="$host_os dld.so" 15023 shlibpath_var=LD_LIBRARY_PATH 15024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15026 soname_spec='${libname}${release}${shared_ext}$major' 15027 if test "X$HPUX_IA64_MODE" = X32; then 15028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15029 else 15030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15031 fi 15032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15033 ;; 15034 hppa*64*) 15035 shrext_cmds='.sl' 15036 hardcode_into_libs=yes 15037 dynamic_linker="$host_os dld.sl" 15038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15041 soname_spec='${libname}${release}${shared_ext}$major' 15042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15044 ;; 15045 *) 15046 shrext_cmds='.sl' 15047 dynamic_linker="$host_os dld.sl" 15048 shlibpath_var=SHLIB_PATH 15049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15051 soname_spec='${libname}${release}${shared_ext}$major' 15052 ;; 15053 esac 15054 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15055 postinstall_cmds='chmod 555 $lib' 15056 ;; 15057 15058irix5* | irix6* | nonstopux*) 15059 case $host_os in 15060 nonstopux*) version_type=nonstopux ;; 15061 *) 15062 if test "$lt_cv_prog_gnu_ld" = yes; then 15063 version_type=linux 15064 else 15065 version_type=irix 15066 fi ;; 15067 esac 15068 need_lib_prefix=no 15069 need_version=no 15070 soname_spec='${libname}${release}${shared_ext}$major' 15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15072 case $host_os in 15073 irix5* | nonstopux*) 15074 libsuff= shlibsuff= 15075 ;; 15076 *) 15077 case $LD in # libtool.m4 will add one of these switches to LD 15078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15079 libsuff= shlibsuff= libmagic=32-bit;; 15080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15081 libsuff=32 shlibsuff=N32 libmagic=N32;; 15082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15083 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15084 *) libsuff= shlibsuff= libmagic=never-match;; 15085 esac 15086 ;; 15087 esac 15088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15089 shlibpath_overrides_runpath=no 15090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15092 hardcode_into_libs=yes 15093 ;; 15094 15095# No shared lib support for Linux oldld, aout, or coff. 15096linux*oldld* | linux*aout* | linux*coff*) 15097 dynamic_linker=no 15098 ;; 15099 15100# This must be Linux ELF. 15101linux*) 15102 version_type=linux 15103 need_lib_prefix=no 15104 need_version=no 15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15106 soname_spec='${libname}${release}${shared_ext}$major' 15107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15108 shlibpath_var=LD_LIBRARY_PATH 15109 shlibpath_overrides_runpath=no 15110 # This implies no fast_install, which is unacceptable. 15111 # Some rework will be needed to allow for fast_install 15112 # before this can be enabled. 15113 hardcode_into_libs=yes 15114 15115 # find out which ABI we are using 15116 libsuff= 15117 case "$host_cpu" in 15118 x86_64*|s390x*|powerpc64*) 15119 echo '#line 15119 "configure"' > conftest.$ac_ext 15120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15121 (eval $ac_compile) 2>&5 15122 ac_status=$? 15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15124 (exit $ac_status); }; then 15125 case `/usr/bin/file conftest.$ac_objext` in 15126 *64-bit*) 15127 libsuff=64 15128 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 15129 ;; 15130 esac 15131 fi 15132 rm -rf conftest* 15133 ;; 15134 esac 15135 15136 # Append ld.so.conf contents to the search path 15137 if test -f /etc/ld.so.conf; then 15138 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15139 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 15140 fi 15141 15142 # We used to test for /lib/ld.so.1 and disable shared libraries on 15143 # powerpc, because MkLinux only supported shared libraries with the 15144 # GNU dynamic linker. Since this was broken with cross compilers, 15145 # most powerpc-linux boxes support dynamic linking these days and 15146 # people can always --disable-shared, the test was removed, and we 15147 # assume the GNU/Linux dynamic linker is in use. 15148 dynamic_linker='GNU/Linux ld.so' 15149 ;; 15150 15151knetbsd*-gnu) 15152 version_type=linux 15153 need_lib_prefix=no 15154 need_version=no 15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15156 soname_spec='${libname}${release}${shared_ext}$major' 15157 shlibpath_var=LD_LIBRARY_PATH 15158 shlibpath_overrides_runpath=no 15159 hardcode_into_libs=yes 15160 dynamic_linker='GNU ld.so' 15161 ;; 15162 15163netbsd*) 15164 version_type=sunos 15165 need_lib_prefix=no 15166 need_version=no 15167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15170 dynamic_linker='NetBSD (a.out) ld.so' 15171 else 15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15173 soname_spec='${libname}${release}${shared_ext}$major' 15174 dynamic_linker='NetBSD ld.elf_so' 15175 fi 15176 shlibpath_var=LD_LIBRARY_PATH 15177 shlibpath_overrides_runpath=yes 15178 hardcode_into_libs=yes 15179 ;; 15180 15181newsos6) 15182 version_type=linux 15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15184 shlibpath_var=LD_LIBRARY_PATH 15185 shlibpath_overrides_runpath=yes 15186 ;; 15187 15188nto-qnx*) 15189 version_type=linux 15190 need_lib_prefix=no 15191 need_version=no 15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15193 soname_spec='${libname}${release}${shared_ext}$major' 15194 shlibpath_var=LD_LIBRARY_PATH 15195 shlibpath_overrides_runpath=yes 15196 ;; 15197 15198openbsd*) 15199 version_type=sunos 15200 need_lib_prefix=no 15201 need_version=no 15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15204 shlibpath_var=LD_LIBRARY_PATH 15205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15206 case $host_os in 15207 openbsd2.[89] | openbsd2.[89].*) 15208 shlibpath_overrides_runpath=no 15209 ;; 15210 *) 15211 shlibpath_overrides_runpath=yes 15212 ;; 15213 esac 15214 else 15215 shlibpath_overrides_runpath=yes 15216 fi 15217 ;; 15218 15219os2*) 15220 libname_spec='$name' 15221 shrext_cmds=".dll" 15222 need_lib_prefix=no 15223 library_names_spec='$libname${shared_ext} $libname.a' 15224 dynamic_linker='OS/2 ld.exe' 15225 shlibpath_var=LIBPATH 15226 ;; 15227 15228osf3* | osf4* | osf5*) 15229 version_type=osf 15230 need_lib_prefix=no 15231 need_version=no 15232 soname_spec='${libname}${release}${shared_ext}$major' 15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15234 shlibpath_var=LD_LIBRARY_PATH 15235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15237 ;; 15238 15239sco3.2v5*) 15240 version_type=osf 15241 soname_spec='${libname}${release}${shared_ext}$major' 15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15243 shlibpath_var=LD_LIBRARY_PATH 15244 ;; 15245 15246solaris*) 15247 version_type=linux 15248 need_lib_prefix=no 15249 need_version=no 15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15251 soname_spec='${libname}${release}${shared_ext}$major' 15252 shlibpath_var=LD_LIBRARY_PATH 15253 shlibpath_overrides_runpath=yes 15254 hardcode_into_libs=yes 15255 # ldd complains unless libraries are executable 15256 postinstall_cmds='chmod +x $lib' 15257 ;; 15258 15259sunos4*) 15260 version_type=sunos 15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15263 shlibpath_var=LD_LIBRARY_PATH 15264 shlibpath_overrides_runpath=yes 15265 if test "$with_gnu_ld" = yes; then 15266 need_lib_prefix=no 15267 fi 15268 need_version=yes 15269 ;; 15270 15271sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15272 version_type=linux 15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15274 soname_spec='${libname}${release}${shared_ext}$major' 15275 shlibpath_var=LD_LIBRARY_PATH 15276 case $host_vendor in 15277 sni) 15278 shlibpath_overrides_runpath=no 15279 need_lib_prefix=no 15280 export_dynamic_flag_spec='${wl}-Blargedynsym' 15281 runpath_var=LD_RUN_PATH 15282 ;; 15283 siemens) 15284 need_lib_prefix=no 15285 ;; 15286 motorola) 15287 need_lib_prefix=no 15288 need_version=no 15289 shlibpath_overrides_runpath=no 15290 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15291 ;; 15292 esac 15293 ;; 15294 15295sysv4*MP*) 15296 if test -d /usr/nec ;then 15297 version_type=linux 15298 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15299 soname_spec='$libname${shared_ext}.$major' 15300 shlibpath_var=LD_LIBRARY_PATH 15301 fi 15302 ;; 15303 15304uts4*) 15305 version_type=linux 15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15307 soname_spec='${libname}${release}${shared_ext}$major' 15308 shlibpath_var=LD_LIBRARY_PATH 15309 ;; 15310 15311*) 15312 dynamic_linker=no 15313 ;; 15314esac 15315echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15316echo "${ECHO_T}$dynamic_linker" >&6 15317test "$dynamic_linker" = no && can_build_shared=no 15318 15319echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15320echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15321hardcode_action_F77= 15322if test -n "$hardcode_libdir_flag_spec_F77" || \ 15323 test -n "$runpath_var_F77" || \ 15324 test "X$hardcode_automatic_F77" = "Xyes" ; then 15325 15326 # We can hardcode non-existant directories. 15327 if test "$hardcode_direct_F77" != no && 15328 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15329 # have to relink, otherwise we might link with an installed library 15330 # when we should be linking with a yet-to-be-installed one 15331 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15332 test "$hardcode_minus_L_F77" != no; then 15333 # Linking always hardcodes the temporary library directory. 15334 hardcode_action_F77=relink 15335 else 15336 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15337 hardcode_action_F77=immediate 15338 fi 15339else 15340 # We cannot hardcode anything, or else we can only hardcode existing 15341 # directories. 15342 hardcode_action_F77=unsupported 15343fi 15344echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15345echo "${ECHO_T}$hardcode_action_F77" >&6 15346 15347if test "$hardcode_action_F77" = relink; then 15348 # Fast installation is not supported 15349 enable_fast_install=no 15350elif test "$shlibpath_overrides_runpath" = yes || 15351 test "$enable_shared" = no; then 15352 # Fast installation is not necessary 15353 enable_fast_install=needless 15354fi 15355 15356striplib= 15357old_striplib= 15358echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15359echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15360if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15361 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15362 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15363 echo "$as_me:$LINENO: result: yes" >&5 15364echo "${ECHO_T}yes" >&6 15365else 15366# FIXME - insert some real tests, host_os isn't really good enough 15367 case $host_os in 15368 darwin*) 15369 if test -n "$STRIP" ; then 15370 striplib="$STRIP -x" 15371 echo "$as_me:$LINENO: result: yes" >&5 15372echo "${ECHO_T}yes" >&6 15373 else 15374 echo "$as_me:$LINENO: result: no" >&5 15375echo "${ECHO_T}no" >&6 15376fi 15377 ;; 15378 *) 15379 echo "$as_me:$LINENO: result: no" >&5 15380echo "${ECHO_T}no" >&6 15381 ;; 15382 esac 15383fi 15384 15385 15386 15387# The else clause should only fire when bootstrapping the 15388# libtool distribution, otherwise you forgot to ship ltmain.sh 15389# with your package, and you will get complaints that there are 15390# no rules to generate ltmain.sh. 15391if test -f "$ltmain"; then 15392 # See if we are running on zsh, and set the options which allow our commands through 15393 # without removal of \ escapes. 15394 if test -n "${ZSH_VERSION+set}" ; then 15395 setopt NO_GLOB_SUBST 15396 fi 15397 # Now quote all the things that may contain metacharacters while being 15398 # careful not to overquote the AC_SUBSTed values. We take copies of the 15399 # variables and quote the copies for generation of the libtool script. 15400 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15401 SED SHELL STRIP \ 15402 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15403 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15404 deplibs_check_method reload_flag reload_cmds need_locks \ 15405 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15406 lt_cv_sys_global_symbol_to_c_name_address \ 15407 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15408 old_postinstall_cmds old_postuninstall_cmds \ 15409 compiler_F77 \ 15410 CC_F77 \ 15411 LD_F77 \ 15412 lt_prog_compiler_wl_F77 \ 15413 lt_prog_compiler_pic_F77 \ 15414 lt_prog_compiler_static_F77 \ 15415 lt_prog_compiler_no_builtin_flag_F77 \ 15416 export_dynamic_flag_spec_F77 \ 15417 thread_safe_flag_spec_F77 \ 15418 whole_archive_flag_spec_F77 \ 15419 enable_shared_with_static_runtimes_F77 \ 15420 old_archive_cmds_F77 \ 15421 old_archive_from_new_cmds_F77 \ 15422 predep_objects_F77 \ 15423 postdep_objects_F77 \ 15424 predeps_F77 \ 15425 postdeps_F77 \ 15426 compiler_lib_search_path_F77 \ 15427 archive_cmds_F77 \ 15428 archive_expsym_cmds_F77 \ 15429 postinstall_cmds_F77 \ 15430 postuninstall_cmds_F77 \ 15431 old_archive_from_expsyms_cmds_F77 \ 15432 allow_undefined_flag_F77 \ 15433 no_undefined_flag_F77 \ 15434 export_symbols_cmds_F77 \ 15435 hardcode_libdir_flag_spec_F77 \ 15436 hardcode_libdir_flag_spec_ld_F77 \ 15437 hardcode_libdir_separator_F77 \ 15438 hardcode_automatic_F77 \ 15439 module_cmds_F77 \ 15440 module_expsym_cmds_F77 \ 15441 lt_cv_prog_compiler_c_o_F77 \ 15442 exclude_expsyms_F77 \ 15443 include_expsyms_F77; do 15444 15445 case $var in 15446 old_archive_cmds_F77 | \ 15447 old_archive_from_new_cmds_F77 | \ 15448 archive_cmds_F77 | \ 15449 archive_expsym_cmds_F77 | \ 15450 module_cmds_F77 | \ 15451 module_expsym_cmds_F77 | \ 15452 old_archive_from_expsyms_cmds_F77 | \ 15453 export_symbols_cmds_F77 | \ 15454 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15455 postinstall_cmds | postuninstall_cmds | \ 15456 old_postinstall_cmds | old_postuninstall_cmds | \ 15457 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15458 # Double-quote double-evaled strings. 15459 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15460 ;; 15461 *) 15462 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15463 ;; 15464 esac 15465 done 15466 15467 case $lt_echo in 15468 *'\$0 --fallback-echo"') 15469 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15470 ;; 15471 esac 15472 15473cfgfile="$ofile" 15474 15475 cat <<__EOF__ >> "$cfgfile" 15476# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15477 15478# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15479 15480# Shell to use when invoking shell scripts. 15481SHELL=$lt_SHELL 15482 15483# Whether or not to build shared libraries. 15484build_libtool_libs=$enable_shared 15485 15486# Whether or not to build static libraries. 15487build_old_libs=$enable_static 15488 15489# Whether or not to add -lc for building shared libraries. 15490build_libtool_need_lc=$archive_cmds_need_lc_F77 15491 15492# Whether or not to disallow shared libs when runtime libs are static 15493allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15494 15495# Whether or not to optimize for fast installation. 15496fast_install=$enable_fast_install 15497 15498# The host system. 15499host_alias=$host_alias 15500host=$host 15501host_os=$host_os 15502 15503# The build system. 15504build_alias=$build_alias 15505build=$build 15506build_os=$build_os 15507 15508# An echo program that does not interpret backslashes. 15509echo=$lt_echo 15510 15511# The archiver. 15512AR=$lt_AR 15513AR_FLAGS=$lt_AR_FLAGS 15514 15515# A C compiler. 15516LTCC=$lt_LTCC 15517 15518# A language-specific compiler. 15519CC=$lt_compiler_F77 15520 15521# Is the compiler the GNU C compiler? 15522with_gcc=$GCC_F77 15523 15524# An ERE matcher. 15525EGREP=$lt_EGREP 15526 15527# The linker used to build libraries. 15528LD=$lt_LD_F77 15529 15530# Whether we need hard or soft links. 15531LN_S=$lt_LN_S 15532 15533# A BSD-compatible nm program. 15534NM=$lt_NM 15535 15536# A symbol stripping program 15537STRIP=$lt_STRIP 15538 15539# Used to examine libraries when file_magic_cmd begins "file" 15540MAGIC_CMD=$MAGIC_CMD 15541 15542# Used on cygwin: DLL creation program. 15543DLLTOOL="$DLLTOOL" 15544 15545# Used on cygwin: object dumper. 15546OBJDUMP="$OBJDUMP" 15547 15548# Used on cygwin: assembler. 15549AS="$AS" 15550 15551# The name of the directory that contains temporary libtool files. 15552objdir=$objdir 15553 15554# How to create reloadable object files. 15555reload_flag=$lt_reload_flag 15556reload_cmds=$lt_reload_cmds 15557 15558# How to pass a linker flag through the compiler. 15559wl=$lt_lt_prog_compiler_wl_F77 15560 15561# Object file suffix (normally "o"). 15562objext="$ac_objext" 15563 15564# Old archive suffix (normally "a"). 15565libext="$libext" 15566 15567# Shared library suffix (normally ".so"). 15568shrext_cmds='$shrext_cmds' 15569 15570# Executable file suffix (normally ""). 15571exeext="$exeext" 15572 15573# Additional compiler flags for building library objects. 15574pic_flag=$lt_lt_prog_compiler_pic_F77 15575pic_mode=$pic_mode 15576 15577# What is the maximum length of a command? 15578max_cmd_len=$lt_cv_sys_max_cmd_len 15579 15580# Does compiler simultaneously support -c and -o options? 15581compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15582 15583# Must we lock files when doing compilation? 15584need_locks=$lt_need_locks 15585 15586# Do we need the lib prefix for modules? 15587need_lib_prefix=$need_lib_prefix 15588 15589# Do we need a version for libraries? 15590need_version=$need_version 15591 15592# Whether dlopen is supported. 15593dlopen_support=$enable_dlopen 15594 15595# Whether dlopen of programs is supported. 15596dlopen_self=$enable_dlopen_self 15597 15598# Whether dlopen of statically linked programs is supported. 15599dlopen_self_static=$enable_dlopen_self_static 15600 15601# Compiler flag to prevent dynamic linking. 15602link_static_flag=$lt_lt_prog_compiler_static_F77 15603 15604# Compiler flag to turn off builtin functions. 15605no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15606 15607# Compiler flag to allow reflexive dlopens. 15608export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15609 15610# Compiler flag to generate shared objects directly from archives. 15611whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15612 15613# Compiler flag to generate thread-safe objects. 15614thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15615 15616# Library versioning type. 15617version_type=$version_type 15618 15619# Format of library name prefix. 15620libname_spec=$lt_libname_spec 15621 15622# List of archive names. First name is the real one, the rest are links. 15623# The last name is the one that the linker finds with -lNAME. 15624library_names_spec=$lt_library_names_spec 15625 15626# The coded name of the library, if different from the real name. 15627soname_spec=$lt_soname_spec 15628 15629# Commands used to build and install an old-style archive. 15630RANLIB=$lt_RANLIB 15631old_archive_cmds=$lt_old_archive_cmds_F77 15632old_postinstall_cmds=$lt_old_postinstall_cmds 15633old_postuninstall_cmds=$lt_old_postuninstall_cmds 15634 15635# Create an old-style archive from a shared archive. 15636old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15637 15638# Create a temporary old-style archive to link instead of a shared archive. 15639old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15640 15641# Commands used to build and install a shared archive. 15642archive_cmds=$lt_archive_cmds_F77 15643archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15644postinstall_cmds=$lt_postinstall_cmds 15645postuninstall_cmds=$lt_postuninstall_cmds 15646 15647# Commands used to build a loadable module (assumed same as above if empty) 15648module_cmds=$lt_module_cmds_F77 15649module_expsym_cmds=$lt_module_expsym_cmds_F77 15650 15651# Commands to strip libraries. 15652old_striplib=$lt_old_striplib 15653striplib=$lt_striplib 15654 15655# Dependencies to place before the objects being linked to create a 15656# shared library. 15657predep_objects=$lt_predep_objects_F77 15658 15659# Dependencies to place after the objects being linked to create a 15660# shared library. 15661postdep_objects=$lt_postdep_objects_F77 15662 15663# Dependencies to place before the objects being linked to create a 15664# shared library. 15665predeps=$lt_predeps_F77 15666 15667# Dependencies to place after the objects being linked to create a 15668# shared library. 15669postdeps=$lt_postdeps_F77 15670 15671# The library search path used internally by the compiler when linking 15672# a shared library. 15673compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15674 15675# Method to check whether dependent libraries are shared objects. 15676deplibs_check_method=$lt_deplibs_check_method 15677 15678# Command to use when deplibs_check_method == file_magic. 15679file_magic_cmd=$lt_file_magic_cmd 15680 15681# Flag that allows shared libraries with undefined symbols to be built. 15682allow_undefined_flag=$lt_allow_undefined_flag_F77 15683 15684# Flag that forces no undefined symbols. 15685no_undefined_flag=$lt_no_undefined_flag_F77 15686 15687# Commands used to finish a libtool library installation in a directory. 15688finish_cmds=$lt_finish_cmds 15689 15690# Same as above, but a single script fragment to be evaled but not shown. 15691finish_eval=$lt_finish_eval 15692 15693# Take the output of nm and produce a listing of raw symbols and C names. 15694global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15695 15696# Transform the output of nm in a proper C declaration 15697global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15698 15699# Transform the output of nm in a C name address pair 15700global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15701 15702# This is the shared library runtime path variable. 15703runpath_var=$runpath_var 15704 15705# This is the shared library path variable. 15706shlibpath_var=$shlibpath_var 15707 15708# Is shlibpath searched before the hard-coded library search path? 15709shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15710 15711# How to hardcode a shared library path into an executable. 15712hardcode_action=$hardcode_action_F77 15713 15714# Whether we should hardcode library paths into libraries. 15715hardcode_into_libs=$hardcode_into_libs 15716 15717# Flag to hardcode \$libdir into a binary during linking. 15718# This must work even if \$libdir does not exist. 15719hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15720 15721# If ld is used when linking, flag to hardcode \$libdir into 15722# a binary during linking. This must work even if \$libdir does 15723# not exist. 15724hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15725 15726# Whether we need a single -rpath flag with a separated argument. 15727hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15728 15729# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15730# resulting binary. 15731hardcode_direct=$hardcode_direct_F77 15732 15733# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15734# resulting binary. 15735hardcode_minus_L=$hardcode_minus_L_F77 15736 15737# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15738# the resulting binary. 15739hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15740 15741# Set to yes if building a shared library automatically hardcodes DIR into the library 15742# and all subsequent libraries and executables linked against it. 15743hardcode_automatic=$hardcode_automatic_F77 15744 15745# Variables whose values should be saved in libtool wrapper scripts and 15746# restored at relink time. 15747variables_saved_for_relink="$variables_saved_for_relink" 15748 15749# Whether libtool must link a program against all its dependency libraries. 15750link_all_deplibs=$link_all_deplibs_F77 15751 15752# Compile-time system search path for libraries 15753sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15754 15755# Run-time system search path for libraries 15756sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15757 15758# Fix the shell variable \$srcfile for the compiler. 15759fix_srcfile_path="$fix_srcfile_path_F77" 15760 15761# Set to yes if exported symbols are required. 15762always_export_symbols=$always_export_symbols_F77 15763 15764# The commands to list exported symbols. 15765export_symbols_cmds=$lt_export_symbols_cmds_F77 15766 15767# The commands to extract the exported symbol list from a shared archive. 15768extract_expsyms_cmds=$lt_extract_expsyms_cmds 15769 15770# Symbols that should not be listed in the preloaded symbols. 15771exclude_expsyms=$lt_exclude_expsyms_F77 15772 15773# Symbols that must always be exported. 15774include_expsyms=$lt_include_expsyms_F77 15775 15776# ### END LIBTOOL TAG CONFIG: $tagname 15777 15778__EOF__ 15779 15780 15781else 15782 # If there is no Makefile yet, we rely on a make rule to execute 15783 # `config.status --recheck' to rerun these tests and create the 15784 # libtool script then. 15785 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15786 if test -f "$ltmain_in"; then 15787 test -f Makefile && make "$ltmain" 15788 fi 15789fi 15790 15791 15792ac_ext=c 15793ac_cpp='$CPP $CPPFLAGS' 15794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15796ac_compiler_gnu=$ac_cv_c_compiler_gnu 15797 15798CC="$lt_save_CC" 15799 15800 else 15801 tagname="" 15802 fi 15803 ;; 15804 15805 GCJ) 15806 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15807 15808 15809 15810# Source file extension for Java test sources. 15811ac_ext=java 15812 15813# Object file extension for compiled Java test sources. 15814objext=o 15815objext_GCJ=$objext 15816 15817# Code to be used in simple compile tests 15818lt_simple_compile_test_code="class foo {}\n" 15819 15820# Code to be used in simple link tests 15821lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15822 15823# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15824 15825# If no C compiler was specified, use CC. 15826LTCC=${LTCC-"$CC"} 15827 15828# Allow CC to be a program name with arguments. 15829compiler=$CC 15830 15831 15832# save warnings/boilerplate of simple test code 15833ac_outfile=conftest.$ac_objext 15834printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15835eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15836_lt_compiler_boilerplate=`cat conftest.err` 15837$rm conftest* 15838 15839ac_outfile=conftest.$ac_objext 15840printf "$lt_simple_link_test_code" >conftest.$ac_ext 15841eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15842_lt_linker_boilerplate=`cat conftest.err` 15843$rm conftest* 15844 15845 15846# Allow CC to be a program name with arguments. 15847lt_save_CC="$CC" 15848CC=${GCJ-"gcj"} 15849compiler=$CC 15850compiler_GCJ=$CC 15851for cc_temp in $compiler""; do 15852 case $cc_temp in 15853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15855 \-*) ;; 15856 *) break;; 15857 esac 15858done 15859cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15860 15861 15862# GCJ did not exist at the time GCC didn't implicitly link libc in. 15863archive_cmds_need_lc_GCJ=no 15864 15865old_archive_cmds_GCJ=$old_archive_cmds 15866 15867 15868lt_prog_compiler_no_builtin_flag_GCJ= 15869 15870if test "$GCC" = yes; then 15871 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15872 15873 15874echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15875echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15876if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15877 echo $ECHO_N "(cached) $ECHO_C" >&6 15878else 15879 lt_cv_prog_compiler_rtti_exceptions=no 15880 ac_outfile=conftest.$ac_objext 15881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15882 lt_compiler_flag="-fno-rtti -fno-exceptions" 15883 # Insert the option either (1) after the last *FLAGS variable, or 15884 # (2) before a word containing "conftest.", or (3) at the end. 15885 # Note that $ac_compile itself does not contain backslashes and begins 15886 # with a dollar sign (not a hyphen), so the echo should work correctly. 15887 # The option is referenced via a variable to avoid confusing sed. 15888 lt_compile=`echo "$ac_compile" | $SED \ 15889 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15891 -e 's:$: $lt_compiler_flag:'` 15892 (eval echo "\"\$as_me:15892: $lt_compile\"" >&5) 15893 (eval "$lt_compile" 2>conftest.err) 15894 ac_status=$? 15895 cat conftest.err >&5 15896 echo "$as_me:15896: \$? = $ac_status" >&5 15897 if (exit $ac_status) && test -s "$ac_outfile"; then 15898 # The compiler can only warn and ignore the option if not recognized 15899 # So say no if there are warnings other than the usual output. 15900 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 15901 $SED '/^$/d' conftest.err >conftest.er2 15902 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 15903 lt_cv_prog_compiler_rtti_exceptions=yes 15904 fi 15905 fi 15906 $rm conftest* 15907 15908fi 15909echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15910echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15911 15912if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15913 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15914else 15915 : 15916fi 15917 15918fi 15919 15920lt_prog_compiler_wl_GCJ= 15921lt_prog_compiler_pic_GCJ= 15922lt_prog_compiler_static_GCJ= 15923 15924echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15925echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15926 15927 if test "$GCC" = yes; then 15928 lt_prog_compiler_wl_GCJ='-Wl,' 15929 lt_prog_compiler_static_GCJ='-static' 15930 15931 case $host_os in 15932 aix*) 15933 # All AIX code is PIC. 15934 if test "$host_cpu" = ia64; then 15935 # AIX 5 now supports IA64 processor 15936 lt_prog_compiler_static_GCJ='-Bstatic' 15937 fi 15938 ;; 15939 15940 amigaos*) 15941 # FIXME: we need at least 68020 code to build shared libraries, but 15942 # adding the `-m68020' flag to GCC prevents building anything better, 15943 # like `-m68040'. 15944 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15945 ;; 15946 15947 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15948 # PIC is the default for these OSes. 15949 ;; 15950 15951 mingw* | pw32* | os2*) 15952 # This hack is so that the source file can tell whether it is being 15953 # built for inclusion in a dll (and should export symbols for example). 15954 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15955 ;; 15956 15957 darwin* | rhapsody*) 15958 # PIC is the default on this platform 15959 # Common symbols not allowed in MH_DYLIB files 15960 lt_prog_compiler_pic_GCJ='-fno-common' 15961 ;; 15962 15963 msdosdjgpp*) 15964 # Just because we use GCC doesn't mean we suddenly get shared libraries 15965 # on systems that don't support them. 15966 lt_prog_compiler_can_build_shared_GCJ=no 15967 enable_shared=no 15968 ;; 15969 15970 sysv4*MP*) 15971 if test -d /usr/nec; then 15972 lt_prog_compiler_pic_GCJ=-Kconform_pic 15973 fi 15974 ;; 15975 15976 hpux*) 15977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15978 # not for PA HP-UX. 15979 case "$host_cpu" in 15980 hppa*64*|ia64*) 15981 # +Z the default 15982 ;; 15983 *) 15984 lt_prog_compiler_pic_GCJ='-fPIC' 15985 ;; 15986 esac 15987 ;; 15988 15989 *) 15990 lt_prog_compiler_pic_GCJ='-fPIC' 15991 ;; 15992 esac 15993 else 15994 # PORTME Check for flag to pass linker flags through the system compiler. 15995 case $host_os in 15996 aix*) 15997 lt_prog_compiler_wl_GCJ='-Wl,' 15998 if test "$host_cpu" = ia64; then 15999 # AIX 5 now supports IA64 processor 16000 lt_prog_compiler_static_GCJ='-Bstatic' 16001 else 16002 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16003 fi 16004 ;; 16005 darwin*) 16006 # PIC is the default on this platform 16007 # Common symbols not allowed in MH_DYLIB files 16008 case $cc_basename in 16009 xlc*) 16010 lt_prog_compiler_pic_GCJ='-qnocommon' 16011 lt_prog_compiler_wl_GCJ='-Wl,' 16012 ;; 16013 esac 16014 ;; 16015 16016 mingw* | pw32* | os2*) 16017 # This hack is so that the source file can tell whether it is being 16018 # built for inclusion in a dll (and should export symbols for example). 16019 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16020 ;; 16021 16022 hpux9* | hpux10* | hpux11*) 16023 lt_prog_compiler_wl_GCJ='-Wl,' 16024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16025 # not for PA HP-UX. 16026 case "$host_cpu" in 16027 hppa*64*|ia64*) 16028 # +Z the default 16029 ;; 16030 *) 16031 lt_prog_compiler_pic_GCJ='+Z' 16032 ;; 16033 esac 16034 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16035 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16036 ;; 16037 16038 irix5* | irix6* | nonstopux*) 16039 lt_prog_compiler_wl_GCJ='-Wl,' 16040 # PIC (with -KPIC) is the default. 16041 lt_prog_compiler_static_GCJ='-non_shared' 16042 ;; 16043 16044 newsos6) 16045 lt_prog_compiler_pic_GCJ='-KPIC' 16046 lt_prog_compiler_static_GCJ='-Bstatic' 16047 ;; 16048 16049 linux*) 16050 case $cc_basename in 16051 icc* | ecc*) 16052 lt_prog_compiler_wl_GCJ='-Wl,' 16053 lt_prog_compiler_pic_GCJ='-KPIC' 16054 lt_prog_compiler_static_GCJ='-static' 16055 ;; 16056 pgcc* | pgf77* | pgf90*) 16057 # Portland Group compilers (*not* the Pentium gcc compiler, 16058 # which looks to be a dead project) 16059 lt_prog_compiler_wl_GCJ='-Wl,' 16060 lt_prog_compiler_pic_GCJ='-fpic' 16061 lt_prog_compiler_static_GCJ='-static' 16062 ;; 16063 ccc*) 16064 lt_prog_compiler_wl_GCJ='-Wl,' 16065 # All Alpha code is PIC. 16066 lt_prog_compiler_static_GCJ='-non_shared' 16067 ;; 16068 esac 16069 ;; 16070 16071 osf3* | osf4* | osf5*) 16072 lt_prog_compiler_wl_GCJ='-Wl,' 16073 # All OSF/1 code is PIC. 16074 lt_prog_compiler_static_GCJ='-non_shared' 16075 ;; 16076 16077 sco3.2v5*) 16078 lt_prog_compiler_pic_GCJ='-Kpic' 16079 lt_prog_compiler_static_GCJ='-dn' 16080 ;; 16081 16082 solaris*) 16083 lt_prog_compiler_pic_GCJ='-KPIC' 16084 lt_prog_compiler_static_GCJ='-Bstatic' 16085 case $cc_basename in 16086 f77* | f90* | f95*) 16087 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16088 *) 16089 lt_prog_compiler_wl_GCJ='-Wl,';; 16090 esac 16091 ;; 16092 16093 sunos4*) 16094 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16095 lt_prog_compiler_pic_GCJ='-PIC' 16096 lt_prog_compiler_static_GCJ='-Bstatic' 16097 ;; 16098 16099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16100 lt_prog_compiler_wl_GCJ='-Wl,' 16101 lt_prog_compiler_pic_GCJ='-KPIC' 16102 lt_prog_compiler_static_GCJ='-Bstatic' 16103 ;; 16104 16105 sysv4*MP*) 16106 if test -d /usr/nec ;then 16107 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16108 lt_prog_compiler_static_GCJ='-Bstatic' 16109 fi 16110 ;; 16111 16112 unicos*) 16113 lt_prog_compiler_wl_GCJ='-Wl,' 16114 lt_prog_compiler_can_build_shared_GCJ=no 16115 ;; 16116 16117 uts4*) 16118 lt_prog_compiler_pic_GCJ='-pic' 16119 lt_prog_compiler_static_GCJ='-Bstatic' 16120 ;; 16121 16122 *) 16123 lt_prog_compiler_can_build_shared_GCJ=no 16124 ;; 16125 esac 16126 fi 16127 16128echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16129echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16130 16131# 16132# Check to make sure the PIC flag actually works. 16133# 16134if test -n "$lt_prog_compiler_pic_GCJ"; then 16135 16136echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16137echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16138if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16139 echo $ECHO_N "(cached) $ECHO_C" >&6 16140else 16141 lt_prog_compiler_pic_works_GCJ=no 16142 ac_outfile=conftest.$ac_objext 16143 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16144 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16145 # Insert the option either (1) after the last *FLAGS variable, or 16146 # (2) before a word containing "conftest.", or (3) at the end. 16147 # Note that $ac_compile itself does not contain backslashes and begins 16148 # with a dollar sign (not a hyphen), so the echo should work correctly. 16149 # The option is referenced via a variable to avoid confusing sed. 16150 lt_compile=`echo "$ac_compile" | $SED \ 16151 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16153 -e 's:$: $lt_compiler_flag:'` 16154 (eval echo "\"\$as_me:16154: $lt_compile\"" >&5) 16155 (eval "$lt_compile" 2>conftest.err) 16156 ac_status=$? 16157 cat conftest.err >&5 16158 echo "$as_me:16158: \$? = $ac_status" >&5 16159 if (exit $ac_status) && test -s "$ac_outfile"; then 16160 # The compiler can only warn and ignore the option if not recognized 16161 # So say no if there are warnings other than the usual output. 16162 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16163 $SED '/^$/d' conftest.err >conftest.er2 16164 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16165 lt_prog_compiler_pic_works_GCJ=yes 16166 fi 16167 fi 16168 $rm conftest* 16169 16170fi 16171echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16172echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16173 16174if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16175 case $lt_prog_compiler_pic_GCJ in 16176 "" | " "*) ;; 16177 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16178 esac 16179else 16180 lt_prog_compiler_pic_GCJ= 16181 lt_prog_compiler_can_build_shared_GCJ=no 16182fi 16183 16184fi 16185case "$host_os" in 16186 # For platforms which do not support PIC, -DPIC is meaningless: 16187 *djgpp*) 16188 lt_prog_compiler_pic_GCJ= 16189 ;; 16190 *) 16191 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16192 ;; 16193esac 16194 16195echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16196echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16197if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16198 echo $ECHO_N "(cached) $ECHO_C" >&6 16199else 16200 lt_cv_prog_compiler_c_o_GCJ=no 16201 $rm -r conftest 2>/dev/null 16202 mkdir conftest 16203 cd conftest 16204 mkdir out 16205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16206 16207 lt_compiler_flag="-o out/conftest2.$ac_objext" 16208 # Insert the option either (1) after the last *FLAGS variable, or 16209 # (2) before a word containing "conftest.", or (3) at the end. 16210 # Note that $ac_compile itself does not contain backslashes and begins 16211 # with a dollar sign (not a hyphen), so the echo should work correctly. 16212 lt_compile=`echo "$ac_compile" | $SED \ 16213 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16215 -e 's:$: $lt_compiler_flag:'` 16216 (eval echo "\"\$as_me:16216: $lt_compile\"" >&5) 16217 (eval "$lt_compile" 2>out/conftest.err) 16218 ac_status=$? 16219 cat out/conftest.err >&5 16220 echo "$as_me:16220: \$? = $ac_status" >&5 16221 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16222 then 16223 # The compiler can only warn and ignore the option if not recognized 16224 # So say no if there are warnings 16225 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16226 $SED '/^$/d' out/conftest.err >out/conftest.er2 16227 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16228 lt_cv_prog_compiler_c_o_GCJ=yes 16229 fi 16230 fi 16231 chmod u+w . 16232 $rm conftest* 16233 # SGI C++ compiler will create directory out/ii_files/ for 16234 # template instantiation 16235 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16236 $rm out/* && rmdir out 16237 cd .. 16238 rmdir conftest 16239 $rm conftest* 16240 16241fi 16242echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16243echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16244 16245 16246hard_links="nottested" 16247if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16248 # do not overwrite the value of need_locks provided by the user 16249 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16250echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16251 hard_links=yes 16252 $rm conftest* 16253 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16254 touch conftest.a 16255 ln conftest.a conftest.b 2>&5 || hard_links=no 16256 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16257 echo "$as_me:$LINENO: result: $hard_links" >&5 16258echo "${ECHO_T}$hard_links" >&6 16259 if test "$hard_links" = no; then 16260 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16261echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16262 need_locks=warn 16263 fi 16264else 16265 need_locks=no 16266fi 16267 16268echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16269echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16270 16271 runpath_var= 16272 allow_undefined_flag_GCJ= 16273 enable_shared_with_static_runtimes_GCJ=no 16274 archive_cmds_GCJ= 16275 archive_expsym_cmds_GCJ= 16276 old_archive_From_new_cmds_GCJ= 16277 old_archive_from_expsyms_cmds_GCJ= 16278 export_dynamic_flag_spec_GCJ= 16279 whole_archive_flag_spec_GCJ= 16280 thread_safe_flag_spec_GCJ= 16281 hardcode_libdir_flag_spec_GCJ= 16282 hardcode_libdir_flag_spec_ld_GCJ= 16283 hardcode_libdir_separator_GCJ= 16284 hardcode_direct_GCJ=no 16285 hardcode_minus_L_GCJ=no 16286 hardcode_shlibpath_var_GCJ=unsupported 16287 link_all_deplibs_GCJ=unknown 16288 hardcode_automatic_GCJ=no 16289 module_cmds_GCJ= 16290 module_expsym_cmds_GCJ= 16291 always_export_symbols_GCJ=no 16292 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16293 # include_expsyms should be a list of space-separated symbols to be *always* 16294 # included in the symbol list 16295 include_expsyms_GCJ= 16296 # exclude_expsyms can be an extended regexp of symbols to exclude 16297 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16298 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16299 # as well as any symbol that contains `d'. 16300 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16302 # platforms (ab)use it in PIC code, but their linkers get confused if 16303 # the symbol is explicitly referenced. Since portable code cannot 16304 # rely on this symbol name, it's probably fine to never include it in 16305 # preloaded symbol tables. 16306 extract_expsyms_cmds= 16307 # Just being paranoid about ensuring that cc_basename is set. 16308 for cc_temp in $compiler""; do 16309 case $cc_temp in 16310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16312 \-*) ;; 16313 *) break;; 16314 esac 16315done 16316cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16317 16318 case $host_os in 16319 cygwin* | mingw* | pw32*) 16320 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16321 # When not using gcc, we currently assume that we are using 16322 # Microsoft Visual C++. 16323 if test "$GCC" != yes; then 16324 with_gnu_ld=no 16325 fi 16326 ;; 16327 openbsd*) 16328 with_gnu_ld=no 16329 ;; 16330 esac 16331 16332 ld_shlibs_GCJ=yes 16333 if test "$with_gnu_ld" = yes; then 16334 # If archive_cmds runs LD, not CC, wlarc should be empty 16335 wlarc='${wl}' 16336 16337 # Set some defaults for GNU ld with shared library support. These 16338 # are reset later if shared libraries are not supported. Putting them 16339 # here allows them to be overridden if necessary. 16340 runpath_var=LD_RUN_PATH 16341 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16342 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16343 # ancient GNU ld didn't support --whole-archive et. al. 16344 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16345 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16346 else 16347 whole_archive_flag_spec_GCJ= 16348 fi 16349 supports_anon_versioning=no 16350 case `$LD -v 2>/dev/null` in 16351 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16352 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16353 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16354 *\ 2.11.*) ;; # other 2.11 versions 16355 *) supports_anon_versioning=yes ;; 16356 esac 16357 16358 # See if GNU ld supports shared libraries. 16359 case $host_os in 16360 aix3* | aix4* | aix5*) 16361 # On AIX/PPC, the GNU linker is very broken 16362 if test "$host_cpu" != ia64; then 16363 ld_shlibs_GCJ=no 16364 cat <<EOF 1>&2 16365 16366*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16367*** to be unable to reliably create shared libraries on AIX. 16368*** Therefore, libtool is disabling shared libraries support. If you 16369*** really care for shared libraries, you may want to modify your PATH 16370*** so that a non-GNU linker is found, and then restart. 16371 16372EOF 16373 fi 16374 ;; 16375 16376 amigaos*) 16377 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)' 16378 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16379 hardcode_minus_L_GCJ=yes 16380 16381 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16382 # that the semantics of dynamic libraries on AmigaOS, at least up 16383 # to version 4, is to share data among multiple programs linked 16384 # with the same dynamic library. Since this doesn't match the 16385 # behavior of shared libraries on other platforms, we can't use 16386 # them. 16387 ld_shlibs_GCJ=no 16388 ;; 16389 16390 beos*) 16391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16392 allow_undefined_flag_GCJ=unsupported 16393 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16394 # support --undefined. This deserves some investigation. FIXME 16395 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16396 else 16397 ld_shlibs_GCJ=no 16398 fi 16399 ;; 16400 16401 cygwin* | mingw* | pw32*) 16402 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16403 # as there is no search path for DLLs. 16404 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16405 allow_undefined_flag_GCJ=unsupported 16406 always_export_symbols_GCJ=no 16407 enable_shared_with_static_runtimes_GCJ=yes 16408 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16409 16410 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16411 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16412 # If the export-symbols file already is a .def file (1st line 16413 # is EXPORTS), use it as is; otherwise, prepend... 16414 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16415 cp $export_symbols $output_objdir/$soname.def; 16416 else 16417 echo EXPORTS > $output_objdir/$soname.def; 16418 cat $export_symbols >> $output_objdir/$soname.def; 16419 fi~ 16420 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16421 else 16422 ld_shlibs_GCJ=no 16423 fi 16424 ;; 16425 16426 linux*) 16427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16428 tmp_addflag= 16429 case $cc_basename,$host_cpu in 16430 pgcc*) # Portland Group C compiler 16431 whole_archive_flag_spec_GCJ= 16432 ;; 16433 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 16434 whole_archive_flag_spec_GCJ= 16435 tmp_addflag=' -fpic -Mnomain' ;; 16436 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16437 tmp_addflag=' -i_dynamic' ;; 16438 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16439 tmp_addflag=' -i_dynamic -nofor_main' ;; 16440 ifc* | ifort*) # Intel Fortran compiler 16441 tmp_addflag=' -nofor_main' ;; 16442 esac 16443 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16444 16445 if test $supports_anon_versioning = yes; then 16446 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16448 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16449 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16450 fi 16451 else 16452 ld_shlibs_GCJ=no 16453 fi 16454 ;; 16455 16456 netbsd*) 16457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16458 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16459 wlarc= 16460 else 16461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16462 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16463 fi 16464 ;; 16465 16466 solaris* | sysv5*) 16467 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16468 ld_shlibs_GCJ=no 16469 cat <<EOF 1>&2 16470 16471*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16472*** create shared libraries on Solaris systems. Therefore, libtool 16473*** is disabling shared libraries support. We urge you to upgrade GNU 16474*** binutils to release 2.9.1 or newer. Another option is to modify 16475*** your PATH or compiler configuration so that the native linker is 16476*** used, and then restart. 16477 16478EOF 16479 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16482 else 16483 ld_shlibs_GCJ=no 16484 fi 16485 ;; 16486 16487 sunos4*) 16488 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16489 wlarc= 16490 hardcode_direct_GCJ=yes 16491 hardcode_shlibpath_var_GCJ=no 16492 ;; 16493 16494 *) 16495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16496 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16497 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16498 else 16499 ld_shlibs_GCJ=no 16500 fi 16501 ;; 16502 esac 16503 16504 if test "$ld_shlibs_GCJ" = no; then 16505 runpath_var= 16506 hardcode_libdir_flag_spec_GCJ= 16507 export_dynamic_flag_spec_GCJ= 16508 whole_archive_flag_spec_GCJ= 16509 fi 16510 else 16511 # PORTME fill in a description of your system's linker (not GNU ld) 16512 case $host_os in 16513 aix3*) 16514 allow_undefined_flag_GCJ=unsupported 16515 always_export_symbols_GCJ=yes 16516 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' 16517 # Note: this linker hardcodes the directories in LIBPATH if there 16518 # are no directories specified by -L. 16519 hardcode_minus_L_GCJ=yes 16520 if test "$GCC" = yes && test -z "$link_static_flag"; then 16521 # Neither direct hardcoding nor static linking is supported with a 16522 # broken collect2. 16523 hardcode_direct_GCJ=unsupported 16524 fi 16525 ;; 16526 16527 aix4* | aix5*) 16528 if test "$host_cpu" = ia64; then 16529 # On IA64, the linker does run time linking by default, so we don't 16530 # have to do anything special. 16531 aix_use_runtimelinking=no 16532 exp_sym_flag='-Bexport' 16533 no_entry_flag="" 16534 else 16535 # If we're using GNU nm, then we don't want the "-C" option. 16536 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16537 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16538 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' 16539 else 16540 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' 16541 fi 16542 aix_use_runtimelinking=no 16543 16544 # Test if we are trying to use run time linking or normal 16545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16546 # need to do runtime linking. 16547 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16548 for ld_flag in $LDFLAGS; do 16549 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16550 aix_use_runtimelinking=yes 16551 break 16552 fi 16553 done 16554 esac 16555 16556 exp_sym_flag='-bexport' 16557 no_entry_flag='-bnoentry' 16558 fi 16559 16560 # When large executables or shared objects are built, AIX ld can 16561 # have problems creating the table of contents. If linking a library 16562 # or program results in "error TOC overflow" add -mminimal-toc to 16563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16565 16566 archive_cmds_GCJ='' 16567 hardcode_direct_GCJ=yes 16568 hardcode_libdir_separator_GCJ=':' 16569 link_all_deplibs_GCJ=yes 16570 16571 if test "$GCC" = yes; then 16572 case $host_os in aix4.[012]|aix4.[012].*) 16573 # We only want to do this on AIX 4.2 and lower, the check 16574 # below for broken collect2 doesn't work under 4.3+ 16575 collect2name=`${CC} -print-prog-name=collect2` 16576 if test -f "$collect2name" && \ 16577 strings "$collect2name" | grep resolve_lib_name >/dev/null 16578 then 16579 # We have reworked collect2 16580 hardcode_direct_GCJ=yes 16581 else 16582 # We have old collect2 16583 hardcode_direct_GCJ=unsupported 16584 # It fails to find uninstalled libraries when the uninstalled 16585 # path is not listed in the libpath. Setting hardcode_minus_L 16586 # to unsupported forces relinking 16587 hardcode_minus_L_GCJ=yes 16588 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16589 hardcode_libdir_separator_GCJ= 16590 fi 16591 esac 16592 shared_flag='-shared' 16593 if test "$aix_use_runtimelinking" = yes; then 16594 shared_flag="$shared_flag "'${wl}-G' 16595 fi 16596 else 16597 # not using gcc 16598 if test "$host_cpu" = ia64; then 16599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16600 # chokes on -Wl,-G. The following line is correct: 16601 shared_flag='-G' 16602 else 16603 if test "$aix_use_runtimelinking" = yes; then 16604 shared_flag='${wl}-G' 16605 else 16606 shared_flag='${wl}-bM:SRE' 16607 fi 16608 fi 16609 fi 16610 16611 # It seems that -bexpall does not export symbols beginning with 16612 # underscore (_), so it is better to generate a list of symbols to export. 16613 always_export_symbols_GCJ=yes 16614 if test "$aix_use_runtimelinking" = yes; then 16615 # Warning - without using the other runtime loading flags (-brtl), 16616 # -berok will link without error, but may produce a broken library. 16617 allow_undefined_flag_GCJ='-berok' 16618 # Determine the default libpath from the value encoded in an empty executable. 16619 cat >conftest.$ac_ext <<_ACEOF 16620/* confdefs.h. */ 16621_ACEOF 16622cat confdefs.h >>conftest.$ac_ext 16623cat >>conftest.$ac_ext <<_ACEOF 16624/* end confdefs.h. */ 16625 16626int 16627main () 16628{ 16629 16630 ; 16631 return 0; 16632} 16633_ACEOF 16634rm -f conftest.$ac_objext conftest$ac_exeext 16635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16636 (eval $ac_link) 2>conftest.er1 16637 ac_status=$? 16638 grep -v '^ *+' conftest.er1 >conftest.err 16639 rm -f conftest.er1 16640 cat conftest.err >&5 16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16642 (exit $ac_status); } && 16643 { ac_try='test -z "$ac_c_werror_flag" 16644 || test ! -s conftest.err' 16645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16646 (eval $ac_try) 2>&5 16647 ac_status=$? 16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16649 (exit $ac_status); }; } && 16650 { ac_try='test -s conftest$ac_exeext' 16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16652 (eval $ac_try) 2>&5 16653 ac_status=$? 16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16655 (exit $ac_status); }; }; then 16656 16657aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16658}'` 16659# Check for a 64-bit object if we didn't find anything. 16660if 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; } 16661}'`; fi 16662else 16663 echo "$as_me: failed program was:" >&5 16664sed 's/^/| /' conftest.$ac_ext >&5 16665 16666fi 16667rm -f conftest.err conftest.$ac_objext \ 16668 conftest$ac_exeext conftest.$ac_ext 16669if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16670 16671 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16672 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" 16673 else 16674 if test "$host_cpu" = ia64; then 16675 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16676 allow_undefined_flag_GCJ="-z nodefs" 16677 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" 16678 else 16679 # Determine the default libpath from the value encoded in an empty executable. 16680 cat >conftest.$ac_ext <<_ACEOF 16681/* confdefs.h. */ 16682_ACEOF 16683cat confdefs.h >>conftest.$ac_ext 16684cat >>conftest.$ac_ext <<_ACEOF 16685/* end confdefs.h. */ 16686 16687int 16688main () 16689{ 16690 16691 ; 16692 return 0; 16693} 16694_ACEOF 16695rm -f conftest.$ac_objext conftest$ac_exeext 16696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16697 (eval $ac_link) 2>conftest.er1 16698 ac_status=$? 16699 grep -v '^ *+' conftest.er1 >conftest.err 16700 rm -f conftest.er1 16701 cat conftest.err >&5 16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16703 (exit $ac_status); } && 16704 { ac_try='test -z "$ac_c_werror_flag" 16705 || test ! -s conftest.err' 16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16707 (eval $ac_try) 2>&5 16708 ac_status=$? 16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16710 (exit $ac_status); }; } && 16711 { ac_try='test -s conftest$ac_exeext' 16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16713 (eval $ac_try) 2>&5 16714 ac_status=$? 16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16716 (exit $ac_status); }; }; then 16717 16718aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16719}'` 16720# Check for a 64-bit object if we didn't find anything. 16721if 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; } 16722}'`; fi 16723else 16724 echo "$as_me: failed program was:" >&5 16725sed 's/^/| /' conftest.$ac_ext >&5 16726 16727fi 16728rm -f conftest.err conftest.$ac_objext \ 16729 conftest$ac_exeext conftest.$ac_ext 16730if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16731 16732 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16733 # Warning - without using the other run time loading flags, 16734 # -berok will link without error, but may produce a broken library. 16735 no_undefined_flag_GCJ=' ${wl}-bernotok' 16736 allow_undefined_flag_GCJ=' ${wl}-berok' 16737 # -bexpall does not export symbols beginning with underscore (_) 16738 always_export_symbols_GCJ=yes 16739 # Exported symbols can be pulled into shared objects from archives 16740 whole_archive_flag_spec_GCJ=' ' 16741 archive_cmds_need_lc_GCJ=yes 16742 # This is similar to how AIX traditionally builds it's shared libraries. 16743 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' 16744 fi 16745 fi 16746 ;; 16747 16748 amigaos*) 16749 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)' 16750 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16751 hardcode_minus_L_GCJ=yes 16752 # see comment about different semantics on the GNU ld section 16753 ld_shlibs_GCJ=no 16754 ;; 16755 16756 bsdi[45]*) 16757 export_dynamic_flag_spec_GCJ=-rdynamic 16758 ;; 16759 16760 cygwin* | mingw* | pw32*) 16761 # When not using gcc, we currently assume that we are using 16762 # Microsoft Visual C++. 16763 # hardcode_libdir_flag_spec is actually meaningless, as there is 16764 # no search path for DLLs. 16765 hardcode_libdir_flag_spec_GCJ=' ' 16766 allow_undefined_flag_GCJ=unsupported 16767 # Tell ltmain to make .lib files, not .a files. 16768 libext=lib 16769 # Tell ltmain to make .dll files, not .so files. 16770 shrext_cmds=".dll" 16771 # FIXME: Setting linknames here is a bad hack. 16772 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16773 # The linker will automatically build a .lib file if we build a DLL. 16774 old_archive_From_new_cmds_GCJ='true' 16775 # FIXME: Should let the user specify the lib program. 16776 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16777 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16778 enable_shared_with_static_runtimes_GCJ=yes 16779 ;; 16780 16781 darwin* | rhapsody*) 16782 case "$host_os" in 16783 rhapsody* | darwin1.[012]) 16784 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16785 ;; 16786 *) # Darwin 1.3 on 16787 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16788 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16789 else 16790 case ${MACOSX_DEPLOYMENT_TARGET} in 16791 10.[012]) 16792 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16793 ;; 16794 10.*) 16795 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16796 ;; 16797 esac 16798 fi 16799 ;; 16800 esac 16801 archive_cmds_need_lc_GCJ=no 16802 hardcode_direct_GCJ=no 16803 hardcode_automatic_GCJ=yes 16804 hardcode_shlibpath_var_GCJ=unsupported 16805 whole_archive_flag_spec_GCJ='' 16806 link_all_deplibs_GCJ=yes 16807 if test "$GCC" = yes ; then 16808 output_verbose_link_cmd='echo' 16809 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16810 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16811 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16812 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16813 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}' 16814 else 16815 case $cc_basename in 16816 xlc*) 16817 output_verbose_link_cmd='echo' 16818 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16819 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16820 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16821 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16822 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}' 16823 ;; 16824 *) 16825 ld_shlibs_GCJ=no 16826 ;; 16827 esac 16828 fi 16829 ;; 16830 16831 dgux*) 16832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16833 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16834 hardcode_shlibpath_var_GCJ=no 16835 ;; 16836 16837 freebsd1*) 16838 ld_shlibs_GCJ=no 16839 ;; 16840 16841 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16842 # support. Future versions do this automatically, but an explicit c++rt0.o 16843 # does not break anything, and helps significantly (at the cost of a little 16844 # extra space). 16845 freebsd2.2*) 16846 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16847 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16848 hardcode_direct_GCJ=yes 16849 hardcode_shlibpath_var_GCJ=no 16850 ;; 16851 16852 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16853 freebsd2*) 16854 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16855 hardcode_direct_GCJ=yes 16856 hardcode_minus_L_GCJ=yes 16857 hardcode_shlibpath_var_GCJ=no 16858 ;; 16859 16860 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16861 freebsd* | kfreebsd*-gnu | dragonfly*) 16862 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16863 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16864 hardcode_direct_GCJ=yes 16865 hardcode_shlibpath_var_GCJ=no 16866 ;; 16867 16868 hpux9*) 16869 if test "$GCC" = yes; then 16870 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' 16871 else 16872 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' 16873 fi 16874 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16875 hardcode_libdir_separator_GCJ=: 16876 hardcode_direct_GCJ=yes 16877 16878 # hardcode_minus_L: Not really in the search PATH, 16879 # but as the default location of the library. 16880 hardcode_minus_L_GCJ=yes 16881 export_dynamic_flag_spec_GCJ='${wl}-E' 16882 ;; 16883 16884 hpux10* | hpux11*) 16885 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16886 case "$host_cpu" in 16887 hppa*64*|ia64*) 16888 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16889 ;; 16890 *) 16891 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16892 ;; 16893 esac 16894 else 16895 case "$host_cpu" in 16896 hppa*64*|ia64*) 16897 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16898 ;; 16899 *) 16900 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16901 ;; 16902 esac 16903 fi 16904 if test "$with_gnu_ld" = no; then 16905 case "$host_cpu" in 16906 hppa*64*) 16907 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16908 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16909 hardcode_libdir_separator_GCJ=: 16910 hardcode_direct_GCJ=no 16911 hardcode_shlibpath_var_GCJ=no 16912 ;; 16913 ia64*) 16914 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16915 hardcode_direct_GCJ=no 16916 hardcode_shlibpath_var_GCJ=no 16917 16918 # hardcode_minus_L: Not really in the search PATH, 16919 # but as the default location of the library. 16920 hardcode_minus_L_GCJ=yes 16921 ;; 16922 *) 16923 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16924 hardcode_libdir_separator_GCJ=: 16925 hardcode_direct_GCJ=yes 16926 export_dynamic_flag_spec_GCJ='${wl}-E' 16927 16928 # hardcode_minus_L: Not really in the search PATH, 16929 # but as the default location of the library. 16930 hardcode_minus_L_GCJ=yes 16931 ;; 16932 esac 16933 fi 16934 ;; 16935 16936 irix5* | irix6* | nonstopux*) 16937 if test "$GCC" = yes; then 16938 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' 16939 else 16940 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' 16941 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16942 fi 16943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16944 hardcode_libdir_separator_GCJ=: 16945 link_all_deplibs_GCJ=yes 16946 ;; 16947 16948 netbsd*) 16949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16950 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16951 else 16952 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16953 fi 16954 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16955 hardcode_direct_GCJ=yes 16956 hardcode_shlibpath_var_GCJ=no 16957 ;; 16958 16959 newsos6) 16960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16961 hardcode_direct_GCJ=yes 16962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16963 hardcode_libdir_separator_GCJ=: 16964 hardcode_shlibpath_var_GCJ=no 16965 ;; 16966 16967 openbsd*) 16968 hardcode_direct_GCJ=yes 16969 hardcode_shlibpath_var_GCJ=no 16970 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16971 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16972 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16974 export_dynamic_flag_spec_GCJ='${wl}-E' 16975 else 16976 case $host_os in 16977 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16978 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16979 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16980 ;; 16981 *) 16982 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16984 ;; 16985 esac 16986 fi 16987 ;; 16988 16989 os2*) 16990 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16991 hardcode_minus_L_GCJ=yes 16992 allow_undefined_flag_GCJ=unsupported 16993 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' 16994 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16995 ;; 16996 16997 osf3*) 16998 if test "$GCC" = yes; then 16999 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17000 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' 17001 else 17002 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17003 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' 17004 fi 17005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17006 hardcode_libdir_separator_GCJ=: 17007 ;; 17008 17009 osf4* | osf5*) # as osf3* with the addition of -msym flag 17010 if test "$GCC" = yes; then 17011 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17012 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' 17013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17014 else 17015 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17016 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' 17017 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~ 17018 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17019 17020 # Both c and cxx compiler support -rpath directly 17021 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17022 fi 17023 hardcode_libdir_separator_GCJ=: 17024 ;; 17025 17026 sco3.2v5*) 17027 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17028 hardcode_shlibpath_var_GCJ=no 17029 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17030 runpath_var=LD_RUN_PATH 17031 hardcode_runpath_var=yes 17032 ;; 17033 17034 solaris*) 17035 no_undefined_flag_GCJ=' -z text' 17036 if test "$GCC" = yes; then 17037 wlarc='${wl}' 17038 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17039 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17040 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17041 else 17042 wlarc='' 17043 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17044 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17045 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17046 fi 17047 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17048 hardcode_shlibpath_var_GCJ=no 17049 case $host_os in 17050 solaris2.[0-5] | solaris2.[0-5].*) ;; 17051 *) 17052 # The compiler driver will combine linker options so we 17053 # cannot just pass the convience library names through 17054 # without $wl, iff we do not link with $LD. 17055 # Luckily, gcc supports the same syntax we need for Sun Studio. 17056 # Supported since Solaris 2.6 (maybe 2.5.1?) 17057 case $wlarc in 17058 '') 17059 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17060 *) 17061 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17062 esac ;; 17063 esac 17064 link_all_deplibs_GCJ=yes 17065 ;; 17066 17067 sunos4*) 17068 if test "x$host_vendor" = xsequent; then 17069 # Use $CC to link under sequent, because it throws in some extra .o 17070 # files that make .init and .fini sections work. 17071 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17072 else 17073 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17074 fi 17075 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17076 hardcode_direct_GCJ=yes 17077 hardcode_minus_L_GCJ=yes 17078 hardcode_shlibpath_var_GCJ=no 17079 ;; 17080 17081 sysv4) 17082 case $host_vendor in 17083 sni) 17084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17085 hardcode_direct_GCJ=yes # is this really true??? 17086 ;; 17087 siemens) 17088 ## LD is ld it makes a PLAMLIB 17089 ## CC just makes a GrossModule. 17090 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17091 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17092 hardcode_direct_GCJ=no 17093 ;; 17094 motorola) 17095 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17096 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17097 ;; 17098 esac 17099 runpath_var='LD_RUN_PATH' 17100 hardcode_shlibpath_var_GCJ=no 17101 ;; 17102 17103 sysv4.3*) 17104 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17105 hardcode_shlibpath_var_GCJ=no 17106 export_dynamic_flag_spec_GCJ='-Bexport' 17107 ;; 17108 17109 sysv4*MP*) 17110 if test -d /usr/nec; then 17111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17112 hardcode_shlibpath_var_GCJ=no 17113 runpath_var=LD_RUN_PATH 17114 hardcode_runpath_var=yes 17115 ld_shlibs_GCJ=yes 17116 fi 17117 ;; 17118 17119 sysv4.2uw2*) 17120 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17121 hardcode_direct_GCJ=yes 17122 hardcode_minus_L_GCJ=no 17123 hardcode_shlibpath_var_GCJ=no 17124 hardcode_runpath_var=yes 17125 runpath_var=LD_RUN_PATH 17126 ;; 17127 17128 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17129 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17130 if test "$GCC" = yes; then 17131 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17132 else 17133 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17134 fi 17135 runpath_var='LD_RUN_PATH' 17136 hardcode_shlibpath_var_GCJ=no 17137 ;; 17138 17139 sysv5*) 17140 no_undefined_flag_GCJ=' -z text' 17141 # $CC -shared without GNU ld will not create a library from C++ 17142 # object files and a static libstdc++, better avoid it by now 17143 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17144 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17146 hardcode_libdir_flag_spec_GCJ= 17147 hardcode_shlibpath_var_GCJ=no 17148 runpath_var='LD_RUN_PATH' 17149 ;; 17150 17151 uts4*) 17152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17153 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17154 hardcode_shlibpath_var_GCJ=no 17155 ;; 17156 17157 *) 17158 ld_shlibs_GCJ=no 17159 ;; 17160 esac 17161 fi 17162 17163echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17164echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17165test "$ld_shlibs_GCJ" = no && can_build_shared=no 17166 17167variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17168if test "$GCC" = yes; then 17169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17170fi 17171 17172# 17173# Do we need to explicitly link libc? 17174# 17175case "x$archive_cmds_need_lc_GCJ" in 17176x|xyes) 17177 # Assume -lc should be added 17178 archive_cmds_need_lc_GCJ=yes 17179 17180 if test "$enable_shared" = yes && test "$GCC" = yes; then 17181 case $archive_cmds_GCJ in 17182 *'~'*) 17183 # FIXME: we may have to deal with multi-command sequences. 17184 ;; 17185 '$CC '*) 17186 # Test whether the compiler implicitly links with -lc since on some 17187 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17188 # to ld, don't add -lc before -lgcc. 17189 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17190echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17191 $rm conftest* 17192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17193 17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17195 (eval $ac_compile) 2>&5 17196 ac_status=$? 17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17198 (exit $ac_status); } 2>conftest.err; then 17199 soname=conftest 17200 lib=conftest 17201 libobjs=conftest.$ac_objext 17202 deplibs= 17203 wl=$lt_prog_compiler_wl_GCJ 17204 compiler_flags=-v 17205 linker_flags=-v 17206 verstring= 17207 output_objdir=. 17208 libname=conftest 17209 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17210 allow_undefined_flag_GCJ= 17211 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17212 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17213 ac_status=$? 17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17215 (exit $ac_status); } 17216 then 17217 archive_cmds_need_lc_GCJ=no 17218 else 17219 archive_cmds_need_lc_GCJ=yes 17220 fi 17221 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17222 else 17223 cat conftest.err 1>&5 17224 fi 17225 $rm conftest* 17226 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17227echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17228 ;; 17229 esac 17230 fi 17231 ;; 17232esac 17233 17234echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17235echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17236library_names_spec= 17237libname_spec='lib$name' 17238soname_spec= 17239shrext_cmds=".so" 17240postinstall_cmds= 17241postuninstall_cmds= 17242finish_cmds= 17243finish_eval= 17244shlibpath_var= 17245shlibpath_overrides_runpath=unknown 17246version_type=none 17247dynamic_linker="$host_os ld.so" 17248sys_lib_dlsearch_path_spec="/lib /usr/lib" 17249if test "$GCC" = yes; then 17250 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17251 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17252 # if the path contains ";" then we assume it to be the separator 17253 # otherwise default to the standard path separator (i.e. ":") - it is 17254 # assumed that no part of a normal pathname contains ";" but that should 17255 # okay in the real world where ";" in dirpaths is itself problematic. 17256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17257 else 17258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17259 fi 17260else 17261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17262fi 17263need_lib_prefix=unknown 17264hardcode_into_libs=no 17265 17266# when you set need_version to no, make sure it does not cause -set_version 17267# flags to be left without arguments 17268need_version=unknown 17269 17270case $host_os in 17271aix3*) 17272 version_type=linux 17273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17274 shlibpath_var=LIBPATH 17275 17276 # AIX 3 has no versioning support, so we append a major version to the name. 17277 soname_spec='${libname}${release}${shared_ext}$major' 17278 ;; 17279 17280aix4* | aix5*) 17281 version_type=linux 17282 need_lib_prefix=no 17283 need_version=no 17284 hardcode_into_libs=yes 17285 if test "$host_cpu" = ia64; then 17286 # AIX 5 supports IA64 17287 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17288 shlibpath_var=LD_LIBRARY_PATH 17289 else 17290 # With GCC up to 2.95.x, collect2 would create an import file 17291 # for dependence libraries. The import file would start with 17292 # the line `#! .'. This would cause the generated library to 17293 # depend on `.', always an invalid library. This was fixed in 17294 # development snapshots of GCC prior to 3.0. 17295 case $host_os in 17296 aix4 | aix4.[01] | aix4.[01].*) 17297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17298 echo ' yes ' 17299 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17300 : 17301 else 17302 can_build_shared=no 17303 fi 17304 ;; 17305 esac 17306 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17307 # soname into executable. Probably we can add versioning support to 17308 # collect2, so additional links can be useful in future. 17309 if test "$aix_use_runtimelinking" = yes; then 17310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17311 # instead of lib<name>.a to let people know that these are not 17312 # typical AIX shared libraries. 17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17314 else 17315 # We preserve .a as extension for shared libraries through AIX4.2 17316 # and later when we are not doing run time linking. 17317 library_names_spec='${libname}${release}.a $libname.a' 17318 soname_spec='${libname}${release}${shared_ext}$major' 17319 fi 17320 shlibpath_var=LIBPATH 17321 fi 17322 ;; 17323 17324amigaos*) 17325 library_names_spec='$libname.ixlibrary $libname.a' 17326 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17327 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' 17328 ;; 17329 17330beos*) 17331 library_names_spec='${libname}${shared_ext}' 17332 dynamic_linker="$host_os ld.so" 17333 shlibpath_var=LIBRARY_PATH 17334 ;; 17335 17336bsdi[45]*) 17337 version_type=linux 17338 need_version=no 17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17340 soname_spec='${libname}${release}${shared_ext}$major' 17341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17342 shlibpath_var=LD_LIBRARY_PATH 17343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17345 # the default ld.so.conf also contains /usr/contrib/lib and 17346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17347 # libtool to hard-code these into programs 17348 ;; 17349 17350cygwin* | mingw* | pw32*) 17351 version_type=windows 17352 shrext_cmds=".dll" 17353 need_version=no 17354 need_lib_prefix=no 17355 17356 case $GCC,$host_os in 17357 yes,cygwin* | yes,mingw* | yes,pw32*) 17358 library_names_spec='$libname.dll.a' 17359 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17360 postinstall_cmds='base_file=`basename \${file}`~ 17361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17362 dldir=$destdir/`dirname \$dlpath`~ 17363 test -d \$dldir || mkdir -p \$dldir~ 17364 $install_prog $dir/$dlname \$dldir/$dlname' 17365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17366 dlpath=$dir/\$dldll~ 17367 $rm \$dlpath' 17368 shlibpath_overrides_runpath=yes 17369 17370 case $host_os in 17371 cygwin*) 17372 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17375 ;; 17376 mingw*) 17377 # MinGW DLLs use traditional 'lib' prefix 17378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17381 # It is most probably a Windows format PATH printed by 17382 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17383 # path with ; separators, and with drive letters. We can handle the 17384 # drive letters (cygwin fileutils understands them), so leave them, 17385 # especially as we might pass files found there to a mingw objdump, 17386 # which wouldn't understand a cygwinified path. Ahh. 17387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17388 else 17389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17390 fi 17391 ;; 17392 pw32*) 17393 # pw32 DLLs use 'pw' prefix rather than 'lib' 17394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17395 ;; 17396 esac 17397 ;; 17398 17399 *) 17400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17401 ;; 17402 esac 17403 dynamic_linker='Win32 ld.exe' 17404 # FIXME: first we should search . and the directory the executable is in 17405 shlibpath_var=PATH 17406 ;; 17407 17408darwin* | rhapsody*) 17409 dynamic_linker="$host_os dyld" 17410 version_type=darwin 17411 need_lib_prefix=no 17412 need_version=no 17413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17414 soname_spec='${libname}${release}${major}$shared_ext' 17415 shlibpath_overrides_runpath=yes 17416 shlibpath_var=DYLD_LIBRARY_PATH 17417 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 17418 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17419 if test "$GCC" = yes; then 17420 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"` 17421 else 17422 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17423 fi 17424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17425 ;; 17426 17427dgux*) 17428 version_type=linux 17429 need_lib_prefix=no 17430 need_version=no 17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17432 soname_spec='${libname}${release}${shared_ext}$major' 17433 shlibpath_var=LD_LIBRARY_PATH 17434 ;; 17435 17436freebsd1*) 17437 dynamic_linker=no 17438 ;; 17439 17440kfreebsd*-gnu) 17441 version_type=linux 17442 need_lib_prefix=no 17443 need_version=no 17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17445 soname_spec='${libname}${release}${shared_ext}$major' 17446 shlibpath_var=LD_LIBRARY_PATH 17447 shlibpath_overrides_runpath=no 17448 hardcode_into_libs=yes 17449 dynamic_linker='GNU ld.so' 17450 ;; 17451 17452freebsd* | dragonfly*) 17453 # DragonFly does not have aout. When/if they implement a new 17454 # versioning mechanism, adjust this. 17455 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17456 version_type=freebsd-$objformat 17457 case $version_type in 17458 freebsd-elf*) 17459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17460 need_version=no 17461 need_lib_prefix=no 17462 ;; 17463 freebsd-*) 17464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17465 need_version=yes 17466 ;; 17467 esac 17468 shlibpath_var=LD_LIBRARY_PATH 17469 case $host_os in 17470 freebsd2*) 17471 shlibpath_overrides_runpath=yes 17472 ;; 17473 freebsd3.[01]* | freebsdelf3.[01]*) 17474 shlibpath_overrides_runpath=yes 17475 hardcode_into_libs=yes 17476 ;; 17477 *) # from 3.2 on 17478 shlibpath_overrides_runpath=no 17479 hardcode_into_libs=yes 17480 ;; 17481 esac 17482 ;; 17483 17484gnu*) 17485 version_type=linux 17486 need_lib_prefix=no 17487 need_version=no 17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17489 soname_spec='${libname}${release}${shared_ext}$major' 17490 shlibpath_var=LD_LIBRARY_PATH 17491 hardcode_into_libs=yes 17492 ;; 17493 17494hpux9* | hpux10* | hpux11*) 17495 # Give a soname corresponding to the major version so that dld.sl refuses to 17496 # link against other versions. 17497 version_type=sunos 17498 need_lib_prefix=no 17499 need_version=no 17500 case "$host_cpu" in 17501 ia64*) 17502 shrext_cmds='.so' 17503 hardcode_into_libs=yes 17504 dynamic_linker="$host_os dld.so" 17505 shlibpath_var=LD_LIBRARY_PATH 17506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17508 soname_spec='${libname}${release}${shared_ext}$major' 17509 if test "X$HPUX_IA64_MODE" = X32; then 17510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17511 else 17512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17513 fi 17514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17515 ;; 17516 hppa*64*) 17517 shrext_cmds='.sl' 17518 hardcode_into_libs=yes 17519 dynamic_linker="$host_os dld.sl" 17520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17523 soname_spec='${libname}${release}${shared_ext}$major' 17524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17526 ;; 17527 *) 17528 shrext_cmds='.sl' 17529 dynamic_linker="$host_os dld.sl" 17530 shlibpath_var=SHLIB_PATH 17531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17533 soname_spec='${libname}${release}${shared_ext}$major' 17534 ;; 17535 esac 17536 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17537 postinstall_cmds='chmod 555 $lib' 17538 ;; 17539 17540irix5* | irix6* | nonstopux*) 17541 case $host_os in 17542 nonstopux*) version_type=nonstopux ;; 17543 *) 17544 if test "$lt_cv_prog_gnu_ld" = yes; then 17545 version_type=linux 17546 else 17547 version_type=irix 17548 fi ;; 17549 esac 17550 need_lib_prefix=no 17551 need_version=no 17552 soname_spec='${libname}${release}${shared_ext}$major' 17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17554 case $host_os in 17555 irix5* | nonstopux*) 17556 libsuff= shlibsuff= 17557 ;; 17558 *) 17559 case $LD in # libtool.m4 will add one of these switches to LD 17560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17561 libsuff= shlibsuff= libmagic=32-bit;; 17562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17563 libsuff=32 shlibsuff=N32 libmagic=N32;; 17564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17565 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17566 *) libsuff= shlibsuff= libmagic=never-match;; 17567 esac 17568 ;; 17569 esac 17570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17571 shlibpath_overrides_runpath=no 17572 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17573 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17574 hardcode_into_libs=yes 17575 ;; 17576 17577# No shared lib support for Linux oldld, aout, or coff. 17578linux*oldld* | linux*aout* | linux*coff*) 17579 dynamic_linker=no 17580 ;; 17581 17582# This must be Linux ELF. 17583linux*) 17584 version_type=linux 17585 need_lib_prefix=no 17586 need_version=no 17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17588 soname_spec='${libname}${release}${shared_ext}$major' 17589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17590 shlibpath_var=LD_LIBRARY_PATH 17591 shlibpath_overrides_runpath=no 17592 # This implies no fast_install, which is unacceptable. 17593 # Some rework will be needed to allow for fast_install 17594 # before this can be enabled. 17595 hardcode_into_libs=yes 17596 17597 # find out which ABI we are using 17598 libsuff= 17599 case "$host_cpu" in 17600 x86_64*|s390x*|powerpc64*) 17601 echo '#line 17601 "configure"' > conftest.$ac_ext 17602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17603 (eval $ac_compile) 2>&5 17604 ac_status=$? 17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17606 (exit $ac_status); }; then 17607 case `/usr/bin/file conftest.$ac_objext` in 17608 *64-bit*) 17609 libsuff=64 17610 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17611 ;; 17612 esac 17613 fi 17614 rm -rf conftest* 17615 ;; 17616 esac 17617 17618 # Append ld.so.conf contents to the search path 17619 if test -f /etc/ld.so.conf; then 17620 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17621 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17622 fi 17623 17624 # We used to test for /lib/ld.so.1 and disable shared libraries on 17625 # powerpc, because MkLinux only supported shared libraries with the 17626 # GNU dynamic linker. Since this was broken with cross compilers, 17627 # most powerpc-linux boxes support dynamic linking these days and 17628 # people can always --disable-shared, the test was removed, and we 17629 # assume the GNU/Linux dynamic linker is in use. 17630 dynamic_linker='GNU/Linux ld.so' 17631 ;; 17632 17633knetbsd*-gnu) 17634 version_type=linux 17635 need_lib_prefix=no 17636 need_version=no 17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17638 soname_spec='${libname}${release}${shared_ext}$major' 17639 shlibpath_var=LD_LIBRARY_PATH 17640 shlibpath_overrides_runpath=no 17641 hardcode_into_libs=yes 17642 dynamic_linker='GNU ld.so' 17643 ;; 17644 17645netbsd*) 17646 version_type=sunos 17647 need_lib_prefix=no 17648 need_version=no 17649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17652 dynamic_linker='NetBSD (a.out) ld.so' 17653 else 17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17655 soname_spec='${libname}${release}${shared_ext}$major' 17656 dynamic_linker='NetBSD ld.elf_so' 17657 fi 17658 shlibpath_var=LD_LIBRARY_PATH 17659 shlibpath_overrides_runpath=yes 17660 hardcode_into_libs=yes 17661 ;; 17662 17663newsos6) 17664 version_type=linux 17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17666 shlibpath_var=LD_LIBRARY_PATH 17667 shlibpath_overrides_runpath=yes 17668 ;; 17669 17670nto-qnx*) 17671 version_type=linux 17672 need_lib_prefix=no 17673 need_version=no 17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17675 soname_spec='${libname}${release}${shared_ext}$major' 17676 shlibpath_var=LD_LIBRARY_PATH 17677 shlibpath_overrides_runpath=yes 17678 ;; 17679 17680openbsd*) 17681 version_type=sunos 17682 need_lib_prefix=no 17683 need_version=no 17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17686 shlibpath_var=LD_LIBRARY_PATH 17687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17688 case $host_os in 17689 openbsd2.[89] | openbsd2.[89].*) 17690 shlibpath_overrides_runpath=no 17691 ;; 17692 *) 17693 shlibpath_overrides_runpath=yes 17694 ;; 17695 esac 17696 else 17697 shlibpath_overrides_runpath=yes 17698 fi 17699 ;; 17700 17701os2*) 17702 libname_spec='$name' 17703 shrext_cmds=".dll" 17704 need_lib_prefix=no 17705 library_names_spec='$libname${shared_ext} $libname.a' 17706 dynamic_linker='OS/2 ld.exe' 17707 shlibpath_var=LIBPATH 17708 ;; 17709 17710osf3* | osf4* | osf5*) 17711 version_type=osf 17712 need_lib_prefix=no 17713 need_version=no 17714 soname_spec='${libname}${release}${shared_ext}$major' 17715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17716 shlibpath_var=LD_LIBRARY_PATH 17717 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17718 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17719 ;; 17720 17721sco3.2v5*) 17722 version_type=osf 17723 soname_spec='${libname}${release}${shared_ext}$major' 17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17725 shlibpath_var=LD_LIBRARY_PATH 17726 ;; 17727 17728solaris*) 17729 version_type=linux 17730 need_lib_prefix=no 17731 need_version=no 17732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17733 soname_spec='${libname}${release}${shared_ext}$major' 17734 shlibpath_var=LD_LIBRARY_PATH 17735 shlibpath_overrides_runpath=yes 17736 hardcode_into_libs=yes 17737 # ldd complains unless libraries are executable 17738 postinstall_cmds='chmod +x $lib' 17739 ;; 17740 17741sunos4*) 17742 version_type=sunos 17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17744 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17745 shlibpath_var=LD_LIBRARY_PATH 17746 shlibpath_overrides_runpath=yes 17747 if test "$with_gnu_ld" = yes; then 17748 need_lib_prefix=no 17749 fi 17750 need_version=yes 17751 ;; 17752 17753sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17754 version_type=linux 17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17756 soname_spec='${libname}${release}${shared_ext}$major' 17757 shlibpath_var=LD_LIBRARY_PATH 17758 case $host_vendor in 17759 sni) 17760 shlibpath_overrides_runpath=no 17761 need_lib_prefix=no 17762 export_dynamic_flag_spec='${wl}-Blargedynsym' 17763 runpath_var=LD_RUN_PATH 17764 ;; 17765 siemens) 17766 need_lib_prefix=no 17767 ;; 17768 motorola) 17769 need_lib_prefix=no 17770 need_version=no 17771 shlibpath_overrides_runpath=no 17772 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17773 ;; 17774 esac 17775 ;; 17776 17777sysv4*MP*) 17778 if test -d /usr/nec ;then 17779 version_type=linux 17780 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17781 soname_spec='$libname${shared_ext}.$major' 17782 shlibpath_var=LD_LIBRARY_PATH 17783 fi 17784 ;; 17785 17786uts4*) 17787 version_type=linux 17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17789 soname_spec='${libname}${release}${shared_ext}$major' 17790 shlibpath_var=LD_LIBRARY_PATH 17791 ;; 17792 17793*) 17794 dynamic_linker=no 17795 ;; 17796esac 17797echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17798echo "${ECHO_T}$dynamic_linker" >&6 17799test "$dynamic_linker" = no && can_build_shared=no 17800 17801echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17802echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17803hardcode_action_GCJ= 17804if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17805 test -n "$runpath_var_GCJ" || \ 17806 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17807 17808 # We can hardcode non-existant directories. 17809 if test "$hardcode_direct_GCJ" != no && 17810 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17811 # have to relink, otherwise we might link with an installed library 17812 # when we should be linking with a yet-to-be-installed one 17813 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17814 test "$hardcode_minus_L_GCJ" != no; then 17815 # Linking always hardcodes the temporary library directory. 17816 hardcode_action_GCJ=relink 17817 else 17818 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17819 hardcode_action_GCJ=immediate 17820 fi 17821else 17822 # We cannot hardcode anything, or else we can only hardcode existing 17823 # directories. 17824 hardcode_action_GCJ=unsupported 17825fi 17826echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17827echo "${ECHO_T}$hardcode_action_GCJ" >&6 17828 17829if test "$hardcode_action_GCJ" = relink; then 17830 # Fast installation is not supported 17831 enable_fast_install=no 17832elif test "$shlibpath_overrides_runpath" = yes || 17833 test "$enable_shared" = no; then 17834 # Fast installation is not necessary 17835 enable_fast_install=needless 17836fi 17837 17838striplib= 17839old_striplib= 17840echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17841echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17842if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17844 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17845 echo "$as_me:$LINENO: result: yes" >&5 17846echo "${ECHO_T}yes" >&6 17847else 17848# FIXME - insert some real tests, host_os isn't really good enough 17849 case $host_os in 17850 darwin*) 17851 if test -n "$STRIP" ; then 17852 striplib="$STRIP -x" 17853 echo "$as_me:$LINENO: result: yes" >&5 17854echo "${ECHO_T}yes" >&6 17855 else 17856 echo "$as_me:$LINENO: result: no" >&5 17857echo "${ECHO_T}no" >&6 17858fi 17859 ;; 17860 *) 17861 echo "$as_me:$LINENO: result: no" >&5 17862echo "${ECHO_T}no" >&6 17863 ;; 17864 esac 17865fi 17866 17867if test "x$enable_dlopen" != xyes; then 17868 enable_dlopen=unknown 17869 enable_dlopen_self=unknown 17870 enable_dlopen_self_static=unknown 17871else 17872 lt_cv_dlopen=no 17873 lt_cv_dlopen_libs= 17874 17875 case $host_os in 17876 beos*) 17877 lt_cv_dlopen="load_add_on" 17878 lt_cv_dlopen_libs= 17879 lt_cv_dlopen_self=yes 17880 ;; 17881 17882 mingw* | pw32*) 17883 lt_cv_dlopen="LoadLibrary" 17884 lt_cv_dlopen_libs= 17885 ;; 17886 17887 cygwin*) 17888 lt_cv_dlopen="dlopen" 17889 lt_cv_dlopen_libs= 17890 ;; 17891 17892 darwin*) 17893 # if libdl is installed we need to link against it 17894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17896if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17897 echo $ECHO_N "(cached) $ECHO_C" >&6 17898else 17899 ac_check_lib_save_LIBS=$LIBS 17900LIBS="-ldl $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_dl_dlopen=yes 17946else 17947 echo "$as_me: failed program was:" >&5 17948sed 's/^/| /' conftest.$ac_ext >&5 17949 17950ac_cv_lib_dl_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_dl_dlopen" >&5 17957echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17958if test $ac_cv_lib_dl_dlopen = yes; then 17959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17960else 17961 17962 lt_cv_dlopen="dyld" 17963 lt_cv_dlopen_libs= 17964 lt_cv_dlopen_self=yes 17965 17966fi 17967 17968 ;; 17969 17970 *) 17971 echo "$as_me:$LINENO: checking for shl_load" >&5 17972echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17973if test "${ac_cv_func_shl_load+set}" = set; then 17974 echo $ECHO_N "(cached) $ECHO_C" >&6 17975else 17976 cat >conftest.$ac_ext <<_ACEOF 17977/* confdefs.h. */ 17978_ACEOF 17979cat confdefs.h >>conftest.$ac_ext 17980cat >>conftest.$ac_ext <<_ACEOF 17981/* end confdefs.h. */ 17982/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 17983 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17984#define shl_load innocuous_shl_load 17985 17986/* System header to define __stub macros and hopefully few prototypes, 17987 which can conflict with char shl_load (); below. 17988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17989 <limits.h> exists even on freestanding compilers. */ 17990 17991#ifdef __STDC__ 17992# include <limits.h> 17993#else 17994# include <assert.h> 17995#endif 17996 17997#undef shl_load 17998 17999/* Override any gcc2 internal prototype to avoid an error. */ 18000#ifdef __cplusplus 18001extern "C" 18002{ 18003#endif 18004/* We use char because int might match the return type of a gcc2 18005 builtin and then its argument prototype would still apply. */ 18006char shl_load (); 18007/* The GNU C library defines this for functions which it implements 18008 to always fail with ENOSYS. Some functions are actually named 18009 something starting with __ and the normal name is an alias. */ 18010#if defined (__stub_shl_load) || defined (__stub___shl_load) 18011choke me 18012#else 18013char (*f) () = shl_load; 18014#endif 18015#ifdef __cplusplus 18016} 18017#endif 18018 18019int 18020main () 18021{ 18022return f != shl_load; 18023 ; 18024 return 0; 18025} 18026_ACEOF 18027rm -f conftest.$ac_objext conftest$ac_exeext 18028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18029 (eval $ac_link) 2>conftest.er1 18030 ac_status=$? 18031 grep -v '^ *+' conftest.er1 >conftest.err 18032 rm -f conftest.er1 18033 cat conftest.err >&5 18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18035 (exit $ac_status); } && 18036 { ac_try='test -z "$ac_c_werror_flag" 18037 || test ! -s conftest.err' 18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18039 (eval $ac_try) 2>&5 18040 ac_status=$? 18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18042 (exit $ac_status); }; } && 18043 { ac_try='test -s conftest$ac_exeext' 18044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18045 (eval $ac_try) 2>&5 18046 ac_status=$? 18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18048 (exit $ac_status); }; }; then 18049 ac_cv_func_shl_load=yes 18050else 18051 echo "$as_me: failed program was:" >&5 18052sed 's/^/| /' conftest.$ac_ext >&5 18053 18054ac_cv_func_shl_load=no 18055fi 18056rm -f conftest.err conftest.$ac_objext \ 18057 conftest$ac_exeext conftest.$ac_ext 18058fi 18059echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18060echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18061if test $ac_cv_func_shl_load = yes; then 18062 lt_cv_dlopen="shl_load" 18063else 18064 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18065echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18066if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18067 echo $ECHO_N "(cached) $ECHO_C" >&6 18068else 18069 ac_check_lib_save_LIBS=$LIBS 18070LIBS="-ldld $LIBS" 18071cat >conftest.$ac_ext <<_ACEOF 18072/* confdefs.h. */ 18073_ACEOF 18074cat confdefs.h >>conftest.$ac_ext 18075cat >>conftest.$ac_ext <<_ACEOF 18076/* end confdefs.h. */ 18077 18078/* Override any gcc2 internal prototype to avoid an error. */ 18079#ifdef __cplusplus 18080extern "C" 18081#endif 18082/* We use char because int might match the return type of a gcc2 18083 builtin and then its argument prototype would still apply. */ 18084char shl_load (); 18085int 18086main () 18087{ 18088shl_load (); 18089 ; 18090 return 0; 18091} 18092_ACEOF 18093rm -f conftest.$ac_objext conftest$ac_exeext 18094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18095 (eval $ac_link) 2>conftest.er1 18096 ac_status=$? 18097 grep -v '^ *+' conftest.er1 >conftest.err 18098 rm -f conftest.er1 18099 cat conftest.err >&5 18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18101 (exit $ac_status); } && 18102 { ac_try='test -z "$ac_c_werror_flag" 18103 || test ! -s conftest.err' 18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18105 (eval $ac_try) 2>&5 18106 ac_status=$? 18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18108 (exit $ac_status); }; } && 18109 { ac_try='test -s conftest$ac_exeext' 18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18111 (eval $ac_try) 2>&5 18112 ac_status=$? 18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18114 (exit $ac_status); }; }; then 18115 ac_cv_lib_dld_shl_load=yes 18116else 18117 echo "$as_me: failed program was:" >&5 18118sed 's/^/| /' conftest.$ac_ext >&5 18119 18120ac_cv_lib_dld_shl_load=no 18121fi 18122rm -f conftest.err conftest.$ac_objext \ 18123 conftest$ac_exeext conftest.$ac_ext 18124LIBS=$ac_check_lib_save_LIBS 18125fi 18126echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18127echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18128if test $ac_cv_lib_dld_shl_load = yes; then 18129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18130else 18131 echo "$as_me:$LINENO: checking for dlopen" >&5 18132echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18133if test "${ac_cv_func_dlopen+set}" = set; then 18134 echo $ECHO_N "(cached) $ECHO_C" >&6 18135else 18136 cat >conftest.$ac_ext <<_ACEOF 18137/* confdefs.h. */ 18138_ACEOF 18139cat confdefs.h >>conftest.$ac_ext 18140cat >>conftest.$ac_ext <<_ACEOF 18141/* end confdefs.h. */ 18142/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18143 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18144#define dlopen innocuous_dlopen 18145 18146/* System header to define __stub macros and hopefully few prototypes, 18147 which can conflict with char dlopen (); below. 18148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18149 <limits.h> exists even on freestanding compilers. */ 18150 18151#ifdef __STDC__ 18152# include <limits.h> 18153#else 18154# include <assert.h> 18155#endif 18156 18157#undef dlopen 18158 18159/* Override any gcc2 internal prototype to avoid an error. */ 18160#ifdef __cplusplus 18161extern "C" 18162{ 18163#endif 18164/* We use char because int might match the return type of a gcc2 18165 builtin and then its argument prototype would still apply. */ 18166char dlopen (); 18167/* The GNU C library defines this for functions which it implements 18168 to always fail with ENOSYS. Some functions are actually named 18169 something starting with __ and the normal name is an alias. */ 18170#if defined (__stub_dlopen) || defined (__stub___dlopen) 18171choke me 18172#else 18173char (*f) () = dlopen; 18174#endif 18175#ifdef __cplusplus 18176} 18177#endif 18178 18179int 18180main () 18181{ 18182return f != dlopen; 18183 ; 18184 return 0; 18185} 18186_ACEOF 18187rm -f conftest.$ac_objext conftest$ac_exeext 18188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18189 (eval $ac_link) 2>conftest.er1 18190 ac_status=$? 18191 grep -v '^ *+' conftest.er1 >conftest.err 18192 rm -f conftest.er1 18193 cat conftest.err >&5 18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18195 (exit $ac_status); } && 18196 { ac_try='test -z "$ac_c_werror_flag" 18197 || test ! -s conftest.err' 18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18199 (eval $ac_try) 2>&5 18200 ac_status=$? 18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18202 (exit $ac_status); }; } && 18203 { ac_try='test -s conftest$ac_exeext' 18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18205 (eval $ac_try) 2>&5 18206 ac_status=$? 18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18208 (exit $ac_status); }; }; then 18209 ac_cv_func_dlopen=yes 18210else 18211 echo "$as_me: failed program was:" >&5 18212sed 's/^/| /' conftest.$ac_ext >&5 18213 18214ac_cv_func_dlopen=no 18215fi 18216rm -f conftest.err conftest.$ac_objext \ 18217 conftest$ac_exeext conftest.$ac_ext 18218fi 18219echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18220echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18221if test $ac_cv_func_dlopen = yes; then 18222 lt_cv_dlopen="dlopen" 18223else 18224 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18225echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18226if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18227 echo $ECHO_N "(cached) $ECHO_C" >&6 18228else 18229 ac_check_lib_save_LIBS=$LIBS 18230LIBS="-ldl $LIBS" 18231cat >conftest.$ac_ext <<_ACEOF 18232/* confdefs.h. */ 18233_ACEOF 18234cat confdefs.h >>conftest.$ac_ext 18235cat >>conftest.$ac_ext <<_ACEOF 18236/* end confdefs.h. */ 18237 18238/* Override any gcc2 internal prototype to avoid an error. */ 18239#ifdef __cplusplus 18240extern "C" 18241#endif 18242/* We use char because int might match the return type of a gcc2 18243 builtin and then its argument prototype would still apply. */ 18244char dlopen (); 18245int 18246main () 18247{ 18248dlopen (); 18249 ; 18250 return 0; 18251} 18252_ACEOF 18253rm -f conftest.$ac_objext conftest$ac_exeext 18254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18255 (eval $ac_link) 2>conftest.er1 18256 ac_status=$? 18257 grep -v '^ *+' conftest.er1 >conftest.err 18258 rm -f conftest.er1 18259 cat conftest.err >&5 18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18261 (exit $ac_status); } && 18262 { ac_try='test -z "$ac_c_werror_flag" 18263 || test ! -s conftest.err' 18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18265 (eval $ac_try) 2>&5 18266 ac_status=$? 18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18268 (exit $ac_status); }; } && 18269 { ac_try='test -s conftest$ac_exeext' 18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18271 (eval $ac_try) 2>&5 18272 ac_status=$? 18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18274 (exit $ac_status); }; }; then 18275 ac_cv_lib_dl_dlopen=yes 18276else 18277 echo "$as_me: failed program was:" >&5 18278sed 's/^/| /' conftest.$ac_ext >&5 18279 18280ac_cv_lib_dl_dlopen=no 18281fi 18282rm -f conftest.err conftest.$ac_objext \ 18283 conftest$ac_exeext conftest.$ac_ext 18284LIBS=$ac_check_lib_save_LIBS 18285fi 18286echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18287echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18288if test $ac_cv_lib_dl_dlopen = yes; then 18289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18290else 18291 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18292echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18293if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18294 echo $ECHO_N "(cached) $ECHO_C" >&6 18295else 18296 ac_check_lib_save_LIBS=$LIBS 18297LIBS="-lsvld $LIBS" 18298cat >conftest.$ac_ext <<_ACEOF 18299/* confdefs.h. */ 18300_ACEOF 18301cat confdefs.h >>conftest.$ac_ext 18302cat >>conftest.$ac_ext <<_ACEOF 18303/* end confdefs.h. */ 18304 18305/* Override any gcc2 internal prototype to avoid an error. */ 18306#ifdef __cplusplus 18307extern "C" 18308#endif 18309/* We use char because int might match the return type of a gcc2 18310 builtin and then its argument prototype would still apply. */ 18311char dlopen (); 18312int 18313main () 18314{ 18315dlopen (); 18316 ; 18317 return 0; 18318} 18319_ACEOF 18320rm -f conftest.$ac_objext conftest$ac_exeext 18321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18322 (eval $ac_link) 2>conftest.er1 18323 ac_status=$? 18324 grep -v '^ *+' conftest.er1 >conftest.err 18325 rm -f conftest.er1 18326 cat conftest.err >&5 18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18328 (exit $ac_status); } && 18329 { ac_try='test -z "$ac_c_werror_flag" 18330 || test ! -s conftest.err' 18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18332 (eval $ac_try) 2>&5 18333 ac_status=$? 18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18335 (exit $ac_status); }; } && 18336 { ac_try='test -s conftest$ac_exeext' 18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18338 (eval $ac_try) 2>&5 18339 ac_status=$? 18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18341 (exit $ac_status); }; }; then 18342 ac_cv_lib_svld_dlopen=yes 18343else 18344 echo "$as_me: failed program was:" >&5 18345sed 's/^/| /' conftest.$ac_ext >&5 18346 18347ac_cv_lib_svld_dlopen=no 18348fi 18349rm -f conftest.err conftest.$ac_objext \ 18350 conftest$ac_exeext conftest.$ac_ext 18351LIBS=$ac_check_lib_save_LIBS 18352fi 18353echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18354echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18355if test $ac_cv_lib_svld_dlopen = yes; then 18356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18357else 18358 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18359echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18360if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18361 echo $ECHO_N "(cached) $ECHO_C" >&6 18362else 18363 ac_check_lib_save_LIBS=$LIBS 18364LIBS="-ldld $LIBS" 18365cat >conftest.$ac_ext <<_ACEOF 18366/* confdefs.h. */ 18367_ACEOF 18368cat confdefs.h >>conftest.$ac_ext 18369cat >>conftest.$ac_ext <<_ACEOF 18370/* end confdefs.h. */ 18371 18372/* Override any gcc2 internal prototype to avoid an error. */ 18373#ifdef __cplusplus 18374extern "C" 18375#endif 18376/* We use char because int might match the return type of a gcc2 18377 builtin and then its argument prototype would still apply. */ 18378char dld_link (); 18379int 18380main () 18381{ 18382dld_link (); 18383 ; 18384 return 0; 18385} 18386_ACEOF 18387rm -f conftest.$ac_objext conftest$ac_exeext 18388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18389 (eval $ac_link) 2>conftest.er1 18390 ac_status=$? 18391 grep -v '^ *+' conftest.er1 >conftest.err 18392 rm -f conftest.er1 18393 cat conftest.err >&5 18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18395 (exit $ac_status); } && 18396 { ac_try='test -z "$ac_c_werror_flag" 18397 || test ! -s conftest.err' 18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18399 (eval $ac_try) 2>&5 18400 ac_status=$? 18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18402 (exit $ac_status); }; } && 18403 { ac_try='test -s conftest$ac_exeext' 18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18405 (eval $ac_try) 2>&5 18406 ac_status=$? 18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18408 (exit $ac_status); }; }; then 18409 ac_cv_lib_dld_dld_link=yes 18410else 18411 echo "$as_me: failed program was:" >&5 18412sed 's/^/| /' conftest.$ac_ext >&5 18413 18414ac_cv_lib_dld_dld_link=no 18415fi 18416rm -f conftest.err conftest.$ac_objext \ 18417 conftest$ac_exeext conftest.$ac_ext 18418LIBS=$ac_check_lib_save_LIBS 18419fi 18420echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18421echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18422if test $ac_cv_lib_dld_dld_link = yes; then 18423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18424fi 18425 18426 18427fi 18428 18429 18430fi 18431 18432 18433fi 18434 18435 18436fi 18437 18438 18439fi 18440 18441 ;; 18442 esac 18443 18444 if test "x$lt_cv_dlopen" != xno; then 18445 enable_dlopen=yes 18446 else 18447 enable_dlopen=no 18448 fi 18449 18450 case $lt_cv_dlopen in 18451 dlopen) 18452 save_CPPFLAGS="$CPPFLAGS" 18453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18454 18455 save_LDFLAGS="$LDFLAGS" 18456 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18457 18458 save_LIBS="$LIBS" 18459 LIBS="$lt_cv_dlopen_libs $LIBS" 18460 18461 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18462echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18463if test "${lt_cv_dlopen_self+set}" = set; then 18464 echo $ECHO_N "(cached) $ECHO_C" >&6 18465else 18466 if test "$cross_compiling" = yes; then : 18467 lt_cv_dlopen_self=cross 18468else 18469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18470 lt_status=$lt_dlunknown 18471 cat > conftest.$ac_ext <<EOF 18472#line 18472 "configure" 18473#include "confdefs.h" 18474 18475#if HAVE_DLFCN_H 18476#include <dlfcn.h> 18477#endif 18478 18479#include <stdio.h> 18480 18481#ifdef RTLD_GLOBAL 18482# define LT_DLGLOBAL RTLD_GLOBAL 18483#else 18484# ifdef DL_GLOBAL 18485# define LT_DLGLOBAL DL_GLOBAL 18486# else 18487# define LT_DLGLOBAL 0 18488# endif 18489#endif 18490 18491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18492 find out it does not work in some platform. */ 18493#ifndef LT_DLLAZY_OR_NOW 18494# ifdef RTLD_LAZY 18495# define LT_DLLAZY_OR_NOW RTLD_LAZY 18496# else 18497# ifdef DL_LAZY 18498# define LT_DLLAZY_OR_NOW DL_LAZY 18499# else 18500# ifdef RTLD_NOW 18501# define LT_DLLAZY_OR_NOW RTLD_NOW 18502# else 18503# ifdef DL_NOW 18504# define LT_DLLAZY_OR_NOW DL_NOW 18505# else 18506# define LT_DLLAZY_OR_NOW 0 18507# endif 18508# endif 18509# endif 18510# endif 18511#endif 18512 18513#ifdef __cplusplus 18514extern "C" void exit (int); 18515#endif 18516 18517void fnord() { int i=42;} 18518int main () 18519{ 18520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18521 int status = $lt_dlunknown; 18522 18523 if (self) 18524 { 18525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18526 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18527 /* dlclose (self); */ 18528 } 18529 18530 exit (status); 18531} 18532EOF 18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18534 (eval $ac_link) 2>&5 18535 ac_status=$? 18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18538 (./conftest; exit; ) 2>/dev/null 18539 lt_status=$? 18540 case x$lt_status in 18541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18543 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18544 esac 18545 else : 18546 # compilation failed 18547 lt_cv_dlopen_self=no 18548 fi 18549fi 18550rm -fr conftest* 18551 18552 18553fi 18554echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18555echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18556 18557 if test "x$lt_cv_dlopen_self" = xyes; then 18558 LDFLAGS="$LDFLAGS $link_static_flag" 18559 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18560echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18561if test "${lt_cv_dlopen_self_static+set}" = set; then 18562 echo $ECHO_N "(cached) $ECHO_C" >&6 18563else 18564 if test "$cross_compiling" = yes; then : 18565 lt_cv_dlopen_self_static=cross 18566else 18567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18568 lt_status=$lt_dlunknown 18569 cat > conftest.$ac_ext <<EOF 18570#line 18570 "configure" 18571#include "confdefs.h" 18572 18573#if HAVE_DLFCN_H 18574#include <dlfcn.h> 18575#endif 18576 18577#include <stdio.h> 18578 18579#ifdef RTLD_GLOBAL 18580# define LT_DLGLOBAL RTLD_GLOBAL 18581#else 18582# ifdef DL_GLOBAL 18583# define LT_DLGLOBAL DL_GLOBAL 18584# else 18585# define LT_DLGLOBAL 0 18586# endif 18587#endif 18588 18589/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18590 find out it does not work in some platform. */ 18591#ifndef LT_DLLAZY_OR_NOW 18592# ifdef RTLD_LAZY 18593# define LT_DLLAZY_OR_NOW RTLD_LAZY 18594# else 18595# ifdef DL_LAZY 18596# define LT_DLLAZY_OR_NOW DL_LAZY 18597# else 18598# ifdef RTLD_NOW 18599# define LT_DLLAZY_OR_NOW RTLD_NOW 18600# else 18601# ifdef DL_NOW 18602# define LT_DLLAZY_OR_NOW DL_NOW 18603# else 18604# define LT_DLLAZY_OR_NOW 0 18605# endif 18606# endif 18607# endif 18608# endif 18609#endif 18610 18611#ifdef __cplusplus 18612extern "C" void exit (int); 18613#endif 18614 18615void fnord() { int i=42;} 18616int main () 18617{ 18618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18619 int status = $lt_dlunknown; 18620 18621 if (self) 18622 { 18623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18625 /* dlclose (self); */ 18626 } 18627 18628 exit (status); 18629} 18630EOF 18631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18632 (eval $ac_link) 2>&5 18633 ac_status=$? 18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18635 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18636 (./conftest; exit; ) 2>/dev/null 18637 lt_status=$? 18638 case x$lt_status in 18639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18641 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18642 esac 18643 else : 18644 # compilation failed 18645 lt_cv_dlopen_self_static=no 18646 fi 18647fi 18648rm -fr conftest* 18649 18650 18651fi 18652echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18653echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18654 fi 18655 18656 CPPFLAGS="$save_CPPFLAGS" 18657 LDFLAGS="$save_LDFLAGS" 18658 LIBS="$save_LIBS" 18659 ;; 18660 esac 18661 18662 case $lt_cv_dlopen_self in 18663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18664 *) enable_dlopen_self=unknown ;; 18665 esac 18666 18667 case $lt_cv_dlopen_self_static in 18668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18669 *) enable_dlopen_self_static=unknown ;; 18670 esac 18671fi 18672 18673 18674# The else clause should only fire when bootstrapping the 18675# libtool distribution, otherwise you forgot to ship ltmain.sh 18676# with your package, and you will get complaints that there are 18677# no rules to generate ltmain.sh. 18678if test -f "$ltmain"; then 18679 # See if we are running on zsh, and set the options which allow our commands through 18680 # without removal of \ escapes. 18681 if test -n "${ZSH_VERSION+set}" ; then 18682 setopt NO_GLOB_SUBST 18683 fi 18684 # Now quote all the things that may contain metacharacters while being 18685 # careful not to overquote the AC_SUBSTed values. We take copies of the 18686 # variables and quote the copies for generation of the libtool script. 18687 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18688 SED SHELL STRIP \ 18689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18691 deplibs_check_method reload_flag reload_cmds need_locks \ 18692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18693 lt_cv_sys_global_symbol_to_c_name_address \ 18694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18695 old_postinstall_cmds old_postuninstall_cmds \ 18696 compiler_GCJ \ 18697 CC_GCJ \ 18698 LD_GCJ \ 18699 lt_prog_compiler_wl_GCJ \ 18700 lt_prog_compiler_pic_GCJ \ 18701 lt_prog_compiler_static_GCJ \ 18702 lt_prog_compiler_no_builtin_flag_GCJ \ 18703 export_dynamic_flag_spec_GCJ \ 18704 thread_safe_flag_spec_GCJ \ 18705 whole_archive_flag_spec_GCJ \ 18706 enable_shared_with_static_runtimes_GCJ \ 18707 old_archive_cmds_GCJ \ 18708 old_archive_from_new_cmds_GCJ \ 18709 predep_objects_GCJ \ 18710 postdep_objects_GCJ \ 18711 predeps_GCJ \ 18712 postdeps_GCJ \ 18713 compiler_lib_search_path_GCJ \ 18714 archive_cmds_GCJ \ 18715 archive_expsym_cmds_GCJ \ 18716 postinstall_cmds_GCJ \ 18717 postuninstall_cmds_GCJ \ 18718 old_archive_from_expsyms_cmds_GCJ \ 18719 allow_undefined_flag_GCJ \ 18720 no_undefined_flag_GCJ \ 18721 export_symbols_cmds_GCJ \ 18722 hardcode_libdir_flag_spec_GCJ \ 18723 hardcode_libdir_flag_spec_ld_GCJ \ 18724 hardcode_libdir_separator_GCJ \ 18725 hardcode_automatic_GCJ \ 18726 module_cmds_GCJ \ 18727 module_expsym_cmds_GCJ \ 18728 lt_cv_prog_compiler_c_o_GCJ \ 18729 exclude_expsyms_GCJ \ 18730 include_expsyms_GCJ; do 18731 18732 case $var in 18733 old_archive_cmds_GCJ | \ 18734 old_archive_from_new_cmds_GCJ | \ 18735 archive_cmds_GCJ | \ 18736 archive_expsym_cmds_GCJ | \ 18737 module_cmds_GCJ | \ 18738 module_expsym_cmds_GCJ | \ 18739 old_archive_from_expsyms_cmds_GCJ | \ 18740 export_symbols_cmds_GCJ | \ 18741 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18742 postinstall_cmds | postuninstall_cmds | \ 18743 old_postinstall_cmds | old_postuninstall_cmds | \ 18744 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18745 # Double-quote double-evaled strings. 18746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18747 ;; 18748 *) 18749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18750 ;; 18751 esac 18752 done 18753 18754 case $lt_echo in 18755 *'\$0 --fallback-echo"') 18756 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18757 ;; 18758 esac 18759 18760cfgfile="$ofile" 18761 18762 cat <<__EOF__ >> "$cfgfile" 18763# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18764 18765# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18766 18767# Shell to use when invoking shell scripts. 18768SHELL=$lt_SHELL 18769 18770# Whether or not to build shared libraries. 18771build_libtool_libs=$enable_shared 18772 18773# Whether or not to build static libraries. 18774build_old_libs=$enable_static 18775 18776# Whether or not to add -lc for building shared libraries. 18777build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18778 18779# Whether or not to disallow shared libs when runtime libs are static 18780allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18781 18782# Whether or not to optimize for fast installation. 18783fast_install=$enable_fast_install 18784 18785# The host system. 18786host_alias=$host_alias 18787host=$host 18788host_os=$host_os 18789 18790# The build system. 18791build_alias=$build_alias 18792build=$build 18793build_os=$build_os 18794 18795# An echo program that does not interpret backslashes. 18796echo=$lt_echo 18797 18798# The archiver. 18799AR=$lt_AR 18800AR_FLAGS=$lt_AR_FLAGS 18801 18802# A C compiler. 18803LTCC=$lt_LTCC 18804 18805# A language-specific compiler. 18806CC=$lt_compiler_GCJ 18807 18808# Is the compiler the GNU C compiler? 18809with_gcc=$GCC_GCJ 18810 18811# An ERE matcher. 18812EGREP=$lt_EGREP 18813 18814# The linker used to build libraries. 18815LD=$lt_LD_GCJ 18816 18817# Whether we need hard or soft links. 18818LN_S=$lt_LN_S 18819 18820# A BSD-compatible nm program. 18821NM=$lt_NM 18822 18823# A symbol stripping program 18824STRIP=$lt_STRIP 18825 18826# Used to examine libraries when file_magic_cmd begins "file" 18827MAGIC_CMD=$MAGIC_CMD 18828 18829# Used on cygwin: DLL creation program. 18830DLLTOOL="$DLLTOOL" 18831 18832# Used on cygwin: object dumper. 18833OBJDUMP="$OBJDUMP" 18834 18835# Used on cygwin: assembler. 18836AS="$AS" 18837 18838# The name of the directory that contains temporary libtool files. 18839objdir=$objdir 18840 18841# How to create reloadable object files. 18842reload_flag=$lt_reload_flag 18843reload_cmds=$lt_reload_cmds 18844 18845# How to pass a linker flag through the compiler. 18846wl=$lt_lt_prog_compiler_wl_GCJ 18847 18848# Object file suffix (normally "o"). 18849objext="$ac_objext" 18850 18851# Old archive suffix (normally "a"). 18852libext="$libext" 18853 18854# Shared library suffix (normally ".so"). 18855shrext_cmds='$shrext_cmds' 18856 18857# Executable file suffix (normally ""). 18858exeext="$exeext" 18859 18860# Additional compiler flags for building library objects. 18861pic_flag=$lt_lt_prog_compiler_pic_GCJ 18862pic_mode=$pic_mode 18863 18864# What is the maximum length of a command? 18865max_cmd_len=$lt_cv_sys_max_cmd_len 18866 18867# Does compiler simultaneously support -c and -o options? 18868compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18869 18870# Must we lock files when doing compilation? 18871need_locks=$lt_need_locks 18872 18873# Do we need the lib prefix for modules? 18874need_lib_prefix=$need_lib_prefix 18875 18876# Do we need a version for libraries? 18877need_version=$need_version 18878 18879# Whether dlopen is supported. 18880dlopen_support=$enable_dlopen 18881 18882# Whether dlopen of programs is supported. 18883dlopen_self=$enable_dlopen_self 18884 18885# Whether dlopen of statically linked programs is supported. 18886dlopen_self_static=$enable_dlopen_self_static 18887 18888# Compiler flag to prevent dynamic linking. 18889link_static_flag=$lt_lt_prog_compiler_static_GCJ 18890 18891# Compiler flag to turn off builtin functions. 18892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18893 18894# Compiler flag to allow reflexive dlopens. 18895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18896 18897# Compiler flag to generate shared objects directly from archives. 18898whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18899 18900# Compiler flag to generate thread-safe objects. 18901thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18902 18903# Library versioning type. 18904version_type=$version_type 18905 18906# Format of library name prefix. 18907libname_spec=$lt_libname_spec 18908 18909# List of archive names. First name is the real one, the rest are links. 18910# The last name is the one that the linker finds with -lNAME. 18911library_names_spec=$lt_library_names_spec 18912 18913# The coded name of the library, if different from the real name. 18914soname_spec=$lt_soname_spec 18915 18916# Commands used to build and install an old-style archive. 18917RANLIB=$lt_RANLIB 18918old_archive_cmds=$lt_old_archive_cmds_GCJ 18919old_postinstall_cmds=$lt_old_postinstall_cmds 18920old_postuninstall_cmds=$lt_old_postuninstall_cmds 18921 18922# Create an old-style archive from a shared archive. 18923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18924 18925# Create a temporary old-style archive to link instead of a shared archive. 18926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18927 18928# Commands used to build and install a shared archive. 18929archive_cmds=$lt_archive_cmds_GCJ 18930archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18931postinstall_cmds=$lt_postinstall_cmds 18932postuninstall_cmds=$lt_postuninstall_cmds 18933 18934# Commands used to build a loadable module (assumed same as above if empty) 18935module_cmds=$lt_module_cmds_GCJ 18936module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18937 18938# Commands to strip libraries. 18939old_striplib=$lt_old_striplib 18940striplib=$lt_striplib 18941 18942# Dependencies to place before the objects being linked to create a 18943# shared library. 18944predep_objects=$lt_predep_objects_GCJ 18945 18946# Dependencies to place after the objects being linked to create a 18947# shared library. 18948postdep_objects=$lt_postdep_objects_GCJ 18949 18950# Dependencies to place before the objects being linked to create a 18951# shared library. 18952predeps=$lt_predeps_GCJ 18953 18954# Dependencies to place after the objects being linked to create a 18955# shared library. 18956postdeps=$lt_postdeps_GCJ 18957 18958# The library search path used internally by the compiler when linking 18959# a shared library. 18960compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18961 18962# Method to check whether dependent libraries are shared objects. 18963deplibs_check_method=$lt_deplibs_check_method 18964 18965# Command to use when deplibs_check_method == file_magic. 18966file_magic_cmd=$lt_file_magic_cmd 18967 18968# Flag that allows shared libraries with undefined symbols to be built. 18969allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18970 18971# Flag that forces no undefined symbols. 18972no_undefined_flag=$lt_no_undefined_flag_GCJ 18973 18974# Commands used to finish a libtool library installation in a directory. 18975finish_cmds=$lt_finish_cmds 18976 18977# Same as above, but a single script fragment to be evaled but not shown. 18978finish_eval=$lt_finish_eval 18979 18980# Take the output of nm and produce a listing of raw symbols and C names. 18981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18982 18983# Transform the output of nm in a proper C declaration 18984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18985 18986# Transform the output of nm in a C name address pair 18987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18988 18989# This is the shared library runtime path variable. 18990runpath_var=$runpath_var 18991 18992# This is the shared library path variable. 18993shlibpath_var=$shlibpath_var 18994 18995# Is shlibpath searched before the hard-coded library search path? 18996shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18997 18998# How to hardcode a shared library path into an executable. 18999hardcode_action=$hardcode_action_GCJ 19000 19001# Whether we should hardcode library paths into libraries. 19002hardcode_into_libs=$hardcode_into_libs 19003 19004# Flag to hardcode \$libdir into a binary during linking. 19005# This must work even if \$libdir does not exist. 19006hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19007 19008# If ld is used when linking, flag to hardcode \$libdir into 19009# a binary during linking. This must work even if \$libdir does 19010# not exist. 19011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19012 19013# Whether we need a single -rpath flag with a separated argument. 19014hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19015 19016# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19017# resulting binary. 19018hardcode_direct=$hardcode_direct_GCJ 19019 19020# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19021# resulting binary. 19022hardcode_minus_L=$hardcode_minus_L_GCJ 19023 19024# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19025# the resulting binary. 19026hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19027 19028# Set to yes if building a shared library automatically hardcodes DIR into the library 19029# and all subsequent libraries and executables linked against it. 19030hardcode_automatic=$hardcode_automatic_GCJ 19031 19032# Variables whose values should be saved in libtool wrapper scripts and 19033# restored at relink time. 19034variables_saved_for_relink="$variables_saved_for_relink" 19035 19036# Whether libtool must link a program against all its dependency libraries. 19037link_all_deplibs=$link_all_deplibs_GCJ 19038 19039# Compile-time system search path for libraries 19040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19041 19042# Run-time system search path for libraries 19043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19044 19045# Fix the shell variable \$srcfile for the compiler. 19046fix_srcfile_path="$fix_srcfile_path_GCJ" 19047 19048# Set to yes if exported symbols are required. 19049always_export_symbols=$always_export_symbols_GCJ 19050 19051# The commands to list exported symbols. 19052export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19053 19054# The commands to extract the exported symbol list from a shared archive. 19055extract_expsyms_cmds=$lt_extract_expsyms_cmds 19056 19057# Symbols that should not be listed in the preloaded symbols. 19058exclude_expsyms=$lt_exclude_expsyms_GCJ 19059 19060# Symbols that must always be exported. 19061include_expsyms=$lt_include_expsyms_GCJ 19062 19063# ### END LIBTOOL TAG CONFIG: $tagname 19064 19065__EOF__ 19066 19067 19068else 19069 # If there is no Makefile yet, we rely on a make rule to execute 19070 # `config.status --recheck' to rerun these tests and create the 19071 # libtool script then. 19072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19073 if test -f "$ltmain_in"; then 19074 test -f Makefile && make "$ltmain" 19075 fi 19076fi 19077 19078 19079ac_ext=c 19080ac_cpp='$CPP $CPPFLAGS' 19081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19083ac_compiler_gnu=$ac_cv_c_compiler_gnu 19084 19085CC="$lt_save_CC" 19086 19087 else 19088 tagname="" 19089 fi 19090 ;; 19091 19092 RC) 19093 19094 19095 19096# Source file extension for RC test sources. 19097ac_ext=rc 19098 19099# Object file extension for compiled RC test sources. 19100objext=o 19101objext_RC=$objext 19102 19103# Code to be used in simple compile tests 19104lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19105 19106# Code to be used in simple link tests 19107lt_simple_link_test_code="$lt_simple_compile_test_code" 19108 19109# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19110 19111# If no C compiler was specified, use CC. 19112LTCC=${LTCC-"$CC"} 19113 19114# Allow CC to be a program name with arguments. 19115compiler=$CC 19116 19117 19118# save warnings/boilerplate of simple test code 19119ac_outfile=conftest.$ac_objext 19120printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19121eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19122_lt_compiler_boilerplate=`cat conftest.err` 19123$rm conftest* 19124 19125ac_outfile=conftest.$ac_objext 19126printf "$lt_simple_link_test_code" >conftest.$ac_ext 19127eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19128_lt_linker_boilerplate=`cat conftest.err` 19129$rm conftest* 19130 19131 19132# Allow CC to be a program name with arguments. 19133lt_save_CC="$CC" 19134CC=${RC-"windres"} 19135compiler=$CC 19136compiler_RC=$CC 19137for cc_temp in $compiler""; do 19138 case $cc_temp in 19139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19141 \-*) ;; 19142 *) break;; 19143 esac 19144done 19145cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19146 19147lt_cv_prog_compiler_c_o_RC=yes 19148 19149# The else clause should only fire when bootstrapping the 19150# libtool distribution, otherwise you forgot to ship ltmain.sh 19151# with your package, and you will get complaints that there are 19152# no rules to generate ltmain.sh. 19153if test -f "$ltmain"; then 19154 # See if we are running on zsh, and set the options which allow our commands through 19155 # without removal of \ escapes. 19156 if test -n "${ZSH_VERSION+set}" ; then 19157 setopt NO_GLOB_SUBST 19158 fi 19159 # Now quote all the things that may contain metacharacters while being 19160 # careful not to overquote the AC_SUBSTed values. We take copies of the 19161 # variables and quote the copies for generation of the libtool script. 19162 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19163 SED SHELL STRIP \ 19164 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19165 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19166 deplibs_check_method reload_flag reload_cmds need_locks \ 19167 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19168 lt_cv_sys_global_symbol_to_c_name_address \ 19169 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19170 old_postinstall_cmds old_postuninstall_cmds \ 19171 compiler_RC \ 19172 CC_RC \ 19173 LD_RC \ 19174 lt_prog_compiler_wl_RC \ 19175 lt_prog_compiler_pic_RC \ 19176 lt_prog_compiler_static_RC \ 19177 lt_prog_compiler_no_builtin_flag_RC \ 19178 export_dynamic_flag_spec_RC \ 19179 thread_safe_flag_spec_RC \ 19180 whole_archive_flag_spec_RC \ 19181 enable_shared_with_static_runtimes_RC \ 19182 old_archive_cmds_RC \ 19183 old_archive_from_new_cmds_RC \ 19184 predep_objects_RC \ 19185 postdep_objects_RC \ 19186 predeps_RC \ 19187 postdeps_RC \ 19188 compiler_lib_search_path_RC \ 19189 archive_cmds_RC \ 19190 archive_expsym_cmds_RC \ 19191 postinstall_cmds_RC \ 19192 postuninstall_cmds_RC \ 19193 old_archive_from_expsyms_cmds_RC \ 19194 allow_undefined_flag_RC \ 19195 no_undefined_flag_RC \ 19196 export_symbols_cmds_RC \ 19197 hardcode_libdir_flag_spec_RC \ 19198 hardcode_libdir_flag_spec_ld_RC \ 19199 hardcode_libdir_separator_RC \ 19200 hardcode_automatic_RC \ 19201 module_cmds_RC \ 19202 module_expsym_cmds_RC \ 19203 lt_cv_prog_compiler_c_o_RC \ 19204 exclude_expsyms_RC \ 19205 include_expsyms_RC; do 19206 19207 case $var in 19208 old_archive_cmds_RC | \ 19209 old_archive_from_new_cmds_RC | \ 19210 archive_cmds_RC | \ 19211 archive_expsym_cmds_RC | \ 19212 module_cmds_RC | \ 19213 module_expsym_cmds_RC | \ 19214 old_archive_from_expsyms_cmds_RC | \ 19215 export_symbols_cmds_RC | \ 19216 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19217 postinstall_cmds | postuninstall_cmds | \ 19218 old_postinstall_cmds | old_postuninstall_cmds | \ 19219 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19220 # Double-quote double-evaled strings. 19221 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19222 ;; 19223 *) 19224 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19225 ;; 19226 esac 19227 done 19228 19229 case $lt_echo in 19230 *'\$0 --fallback-echo"') 19231 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19232 ;; 19233 esac 19234 19235cfgfile="$ofile" 19236 19237 cat <<__EOF__ >> "$cfgfile" 19238# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19239 19240# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19241 19242# Shell to use when invoking shell scripts. 19243SHELL=$lt_SHELL 19244 19245# Whether or not to build shared libraries. 19246build_libtool_libs=$enable_shared 19247 19248# Whether or not to build static libraries. 19249build_old_libs=$enable_static 19250 19251# Whether or not to add -lc for building shared libraries. 19252build_libtool_need_lc=$archive_cmds_need_lc_RC 19253 19254# Whether or not to disallow shared libs when runtime libs are static 19255allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19256 19257# Whether or not to optimize for fast installation. 19258fast_install=$enable_fast_install 19259 19260# The host system. 19261host_alias=$host_alias 19262host=$host 19263host_os=$host_os 19264 19265# The build system. 19266build_alias=$build_alias 19267build=$build 19268build_os=$build_os 19269 19270# An echo program that does not interpret backslashes. 19271echo=$lt_echo 19272 19273# The archiver. 19274AR=$lt_AR 19275AR_FLAGS=$lt_AR_FLAGS 19276 19277# A C compiler. 19278LTCC=$lt_LTCC 19279 19280# A language-specific compiler. 19281CC=$lt_compiler_RC 19282 19283# Is the compiler the GNU C compiler? 19284with_gcc=$GCC_RC 19285 19286# An ERE matcher. 19287EGREP=$lt_EGREP 19288 19289# The linker used to build libraries. 19290LD=$lt_LD_RC 19291 19292# Whether we need hard or soft links. 19293LN_S=$lt_LN_S 19294 19295# A BSD-compatible nm program. 19296NM=$lt_NM 19297 19298# A symbol stripping program 19299STRIP=$lt_STRIP 19300 19301# Used to examine libraries when file_magic_cmd begins "file" 19302MAGIC_CMD=$MAGIC_CMD 19303 19304# Used on cygwin: DLL creation program. 19305DLLTOOL="$DLLTOOL" 19306 19307# Used on cygwin: object dumper. 19308OBJDUMP="$OBJDUMP" 19309 19310# Used on cygwin: assembler. 19311AS="$AS" 19312 19313# The name of the directory that contains temporary libtool files. 19314objdir=$objdir 19315 19316# How to create reloadable object files. 19317reload_flag=$lt_reload_flag 19318reload_cmds=$lt_reload_cmds 19319 19320# How to pass a linker flag through the compiler. 19321wl=$lt_lt_prog_compiler_wl_RC 19322 19323# Object file suffix (normally "o"). 19324objext="$ac_objext" 19325 19326# Old archive suffix (normally "a"). 19327libext="$libext" 19328 19329# Shared library suffix (normally ".so"). 19330shrext_cmds='$shrext_cmds' 19331 19332# Executable file suffix (normally ""). 19333exeext="$exeext" 19334 19335# Additional compiler flags for building library objects. 19336pic_flag=$lt_lt_prog_compiler_pic_RC 19337pic_mode=$pic_mode 19338 19339# What is the maximum length of a command? 19340max_cmd_len=$lt_cv_sys_max_cmd_len 19341 19342# Does compiler simultaneously support -c and -o options? 19343compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19344 19345# Must we lock files when doing compilation? 19346need_locks=$lt_need_locks 19347 19348# Do we need the lib prefix for modules? 19349need_lib_prefix=$need_lib_prefix 19350 19351# Do we need a version for libraries? 19352need_version=$need_version 19353 19354# Whether dlopen is supported. 19355dlopen_support=$enable_dlopen 19356 19357# Whether dlopen of programs is supported. 19358dlopen_self=$enable_dlopen_self 19359 19360# Whether dlopen of statically linked programs is supported. 19361dlopen_self_static=$enable_dlopen_self_static 19362 19363# Compiler flag to prevent dynamic linking. 19364link_static_flag=$lt_lt_prog_compiler_static_RC 19365 19366# Compiler flag to turn off builtin functions. 19367no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19368 19369# Compiler flag to allow reflexive dlopens. 19370export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19371 19372# Compiler flag to generate shared objects directly from archives. 19373whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19374 19375# Compiler flag to generate thread-safe objects. 19376thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19377 19378# Library versioning type. 19379version_type=$version_type 19380 19381# Format of library name prefix. 19382libname_spec=$lt_libname_spec 19383 19384# List of archive names. First name is the real one, the rest are links. 19385# The last name is the one that the linker finds with -lNAME. 19386library_names_spec=$lt_library_names_spec 19387 19388# The coded name of the library, if different from the real name. 19389soname_spec=$lt_soname_spec 19390 19391# Commands used to build and install an old-style archive. 19392RANLIB=$lt_RANLIB 19393old_archive_cmds=$lt_old_archive_cmds_RC 19394old_postinstall_cmds=$lt_old_postinstall_cmds 19395old_postuninstall_cmds=$lt_old_postuninstall_cmds 19396 19397# Create an old-style archive from a shared archive. 19398old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19399 19400# Create a temporary old-style archive to link instead of a shared archive. 19401old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19402 19403# Commands used to build and install a shared archive. 19404archive_cmds=$lt_archive_cmds_RC 19405archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19406postinstall_cmds=$lt_postinstall_cmds 19407postuninstall_cmds=$lt_postuninstall_cmds 19408 19409# Commands used to build a loadable module (assumed same as above if empty) 19410module_cmds=$lt_module_cmds_RC 19411module_expsym_cmds=$lt_module_expsym_cmds_RC 19412 19413# Commands to strip libraries. 19414old_striplib=$lt_old_striplib 19415striplib=$lt_striplib 19416 19417# Dependencies to place before the objects being linked to create a 19418# shared library. 19419predep_objects=$lt_predep_objects_RC 19420 19421# Dependencies to place after the objects being linked to create a 19422# shared library. 19423postdep_objects=$lt_postdep_objects_RC 19424 19425# Dependencies to place before the objects being linked to create a 19426# shared library. 19427predeps=$lt_predeps_RC 19428 19429# Dependencies to place after the objects being linked to create a 19430# shared library. 19431postdeps=$lt_postdeps_RC 19432 19433# The library search path used internally by the compiler when linking 19434# a shared library. 19435compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19436 19437# Method to check whether dependent libraries are shared objects. 19438deplibs_check_method=$lt_deplibs_check_method 19439 19440# Command to use when deplibs_check_method == file_magic. 19441file_magic_cmd=$lt_file_magic_cmd 19442 19443# Flag that allows shared libraries with undefined symbols to be built. 19444allow_undefined_flag=$lt_allow_undefined_flag_RC 19445 19446# Flag that forces no undefined symbols. 19447no_undefined_flag=$lt_no_undefined_flag_RC 19448 19449# Commands used to finish a libtool library installation in a directory. 19450finish_cmds=$lt_finish_cmds 19451 19452# Same as above, but a single script fragment to be evaled but not shown. 19453finish_eval=$lt_finish_eval 19454 19455# Take the output of nm and produce a listing of raw symbols and C names. 19456global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19457 19458# Transform the output of nm in a proper C declaration 19459global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19460 19461# Transform the output of nm in a C name address pair 19462global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19463 19464# This is the shared library runtime path variable. 19465runpath_var=$runpath_var 19466 19467# This is the shared library path variable. 19468shlibpath_var=$shlibpath_var 19469 19470# Is shlibpath searched before the hard-coded library search path? 19471shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19472 19473# How to hardcode a shared library path into an executable. 19474hardcode_action=$hardcode_action_RC 19475 19476# Whether we should hardcode library paths into libraries. 19477hardcode_into_libs=$hardcode_into_libs 19478 19479# Flag to hardcode \$libdir into a binary during linking. 19480# This must work even if \$libdir does not exist. 19481hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19482 19483# If ld is used when linking, flag to hardcode \$libdir into 19484# a binary during linking. This must work even if \$libdir does 19485# not exist. 19486hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19487 19488# Whether we need a single -rpath flag with a separated argument. 19489hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19490 19491# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19492# resulting binary. 19493hardcode_direct=$hardcode_direct_RC 19494 19495# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19496# resulting binary. 19497hardcode_minus_L=$hardcode_minus_L_RC 19498 19499# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19500# the resulting binary. 19501hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19502 19503# Set to yes if building a shared library automatically hardcodes DIR into the library 19504# and all subsequent libraries and executables linked against it. 19505hardcode_automatic=$hardcode_automatic_RC 19506 19507# Variables whose values should be saved in libtool wrapper scripts and 19508# restored at relink time. 19509variables_saved_for_relink="$variables_saved_for_relink" 19510 19511# Whether libtool must link a program against all its dependency libraries. 19512link_all_deplibs=$link_all_deplibs_RC 19513 19514# Compile-time system search path for libraries 19515sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19516 19517# Run-time system search path for libraries 19518sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19519 19520# Fix the shell variable \$srcfile for the compiler. 19521fix_srcfile_path="$fix_srcfile_path_RC" 19522 19523# Set to yes if exported symbols are required. 19524always_export_symbols=$always_export_symbols_RC 19525 19526# The commands to list exported symbols. 19527export_symbols_cmds=$lt_export_symbols_cmds_RC 19528 19529# The commands to extract the exported symbol list from a shared archive. 19530extract_expsyms_cmds=$lt_extract_expsyms_cmds 19531 19532# Symbols that should not be listed in the preloaded symbols. 19533exclude_expsyms=$lt_exclude_expsyms_RC 19534 19535# Symbols that must always be exported. 19536include_expsyms=$lt_include_expsyms_RC 19537 19538# ### END LIBTOOL TAG CONFIG: $tagname 19539 19540__EOF__ 19541 19542 19543else 19544 # If there is no Makefile yet, we rely on a make rule to execute 19545 # `config.status --recheck' to rerun these tests and create the 19546 # libtool script then. 19547 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19548 if test -f "$ltmain_in"; then 19549 test -f Makefile && make "$ltmain" 19550 fi 19551fi 19552 19553 19554ac_ext=c 19555ac_cpp='$CPP $CPPFLAGS' 19556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19558ac_compiler_gnu=$ac_cv_c_compiler_gnu 19559 19560CC="$lt_save_CC" 19561 19562 ;; 19563 19564 *) 19565 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19566echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19567 { (exit 1); exit 1; }; } 19568 ;; 19569 esac 19570 19571 # Append the new tag name to the list of available tags. 19572 if test -n "$tagname" ; then 19573 available_tags="$available_tags $tagname" 19574 fi 19575 fi 19576 done 19577 IFS="$lt_save_ifs" 19578 19579 # Now substitute the updated list of available tags. 19580 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19581 mv "${ofile}T" "$ofile" 19582 chmod +x "$ofile" 19583 else 19584 rm -f "${ofile}T" 19585 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19586echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19587 { (exit 1); exit 1; }; } 19588 fi 19589fi 19590 19591 19592 19593# This can be used to rebuild libtool when needed 19594LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19595 19596# Always use our own libtool. 19597LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19598 19599# Prevent multiple expansion 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static 19621chmod +x libtool-disable-static 19622 19623ACLOCAL_AMFLAGS="-I m4" 19624 19625 19626# By default we simply use the C compiler to build assembly code. 19627 19628: ${CCAS='$(CC)'} 19629# Set ASFLAGS if not already set. 19630: ${CCASFLAGS='$(CFLAGS)'} 19631 19632 19633ac_ext=cc 19634ac_cpp='$CXXCPP $CPPFLAGS' 19635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19638if test -n "$ac_tool_prefix"; then 19639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 19640 do 19641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19642set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19643echo "$as_me:$LINENO: checking for $ac_word" >&5 19644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19645if test "${ac_cv_prog_CXX+set}" = set; then 19646 echo $ECHO_N "(cached) $ECHO_C" >&6 19647else 19648 if test -n "$CXX"; then 19649 ac_cv_prog_CXX="$CXX" # Let the user override the test. 19650else 19651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19652for as_dir in $PATH 19653do 19654 IFS=$as_save_IFS 19655 test -z "$as_dir" && as_dir=. 19656 for ac_exec_ext in '' $ac_executable_extensions; do 19657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19658 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 19659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19660 break 2 19661 fi 19662done 19663done 19664 19665fi 19666fi 19667CXX=$ac_cv_prog_CXX 19668if test -n "$CXX"; then 19669 echo "$as_me:$LINENO: result: $CXX" >&5 19670echo "${ECHO_T}$CXX" >&6 19671else 19672 echo "$as_me:$LINENO: result: no" >&5 19673echo "${ECHO_T}no" >&6 19674fi 19675 19676 test -n "$CXX" && break 19677 done 19678fi 19679if test -z "$CXX"; then 19680 ac_ct_CXX=$CXX 19681 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 19682do 19683 # Extract the first word of "$ac_prog", so it can be a program name with args. 19684set dummy $ac_prog; ac_word=$2 19685echo "$as_me:$LINENO: checking for $ac_word" >&5 19686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19687if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 19688 echo $ECHO_N "(cached) $ECHO_C" >&6 19689else 19690 if test -n "$ac_ct_CXX"; then 19691 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 19692else 19693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19694for as_dir in $PATH 19695do 19696 IFS=$as_save_IFS 19697 test -z "$as_dir" && as_dir=. 19698 for ac_exec_ext in '' $ac_executable_extensions; do 19699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19700 ac_cv_prog_ac_ct_CXX="$ac_prog" 19701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19702 break 2 19703 fi 19704done 19705done 19706 19707fi 19708fi 19709ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 19710if test -n "$ac_ct_CXX"; then 19711 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 19712echo "${ECHO_T}$ac_ct_CXX" >&6 19713else 19714 echo "$as_me:$LINENO: result: no" >&5 19715echo "${ECHO_T}no" >&6 19716fi 19717 19718 test -n "$ac_ct_CXX" && break 19719done 19720test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 19721 19722 CXX=$ac_ct_CXX 19723fi 19724 19725 19726# Provide some information about the compiler. 19727echo "$as_me:$LINENO:" \ 19728 "checking for C++ compiler version" >&5 19729ac_compiler=`set X $ac_compile; echo $2` 19730{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 19731 (eval $ac_compiler --version </dev/null >&5) 2>&5 19732 ac_status=$? 19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19734 (exit $ac_status); } 19735{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 19736 (eval $ac_compiler -v </dev/null >&5) 2>&5 19737 ac_status=$? 19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19739 (exit $ac_status); } 19740{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 19741 (eval $ac_compiler -V </dev/null >&5) 2>&5 19742 ac_status=$? 19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19744 (exit $ac_status); } 19745 19746echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 19747echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 19748if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 19749 echo $ECHO_N "(cached) $ECHO_C" >&6 19750else 19751 cat >conftest.$ac_ext <<_ACEOF 19752/* confdefs.h. */ 19753_ACEOF 19754cat confdefs.h >>conftest.$ac_ext 19755cat >>conftest.$ac_ext <<_ACEOF 19756/* end confdefs.h. */ 19757 19758int 19759main () 19760{ 19761#ifndef __GNUC__ 19762 choke me 19763#endif 19764 19765 ; 19766 return 0; 19767} 19768_ACEOF 19769rm -f conftest.$ac_objext 19770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19771 (eval $ac_compile) 2>conftest.er1 19772 ac_status=$? 19773 grep -v '^ *+' conftest.er1 >conftest.err 19774 rm -f conftest.er1 19775 cat conftest.err >&5 19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19777 (exit $ac_status); } && 19778 { ac_try='test -z "$ac_cxx_werror_flag" 19779 || test ! -s conftest.err' 19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19781 (eval $ac_try) 2>&5 19782 ac_status=$? 19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19784 (exit $ac_status); }; } && 19785 { ac_try='test -s conftest.$ac_objext' 19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19787 (eval $ac_try) 2>&5 19788 ac_status=$? 19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19790 (exit $ac_status); }; }; then 19791 ac_compiler_gnu=yes 19792else 19793 echo "$as_me: failed program was:" >&5 19794sed 's/^/| /' conftest.$ac_ext >&5 19795 19796ac_compiler_gnu=no 19797fi 19798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19799ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 19800 19801fi 19802echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 19803echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 19804GXX=`test $ac_compiler_gnu = yes && echo yes` 19805ac_test_CXXFLAGS=${CXXFLAGS+set} 19806ac_save_CXXFLAGS=$CXXFLAGS 19807CXXFLAGS="-g" 19808echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 19809echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 19810if test "${ac_cv_prog_cxx_g+set}" = set; then 19811 echo $ECHO_N "(cached) $ECHO_C" >&6 19812else 19813 cat >conftest.$ac_ext <<_ACEOF 19814/* confdefs.h. */ 19815_ACEOF 19816cat confdefs.h >>conftest.$ac_ext 19817cat >>conftest.$ac_ext <<_ACEOF 19818/* end confdefs.h. */ 19819 19820int 19821main () 19822{ 19823 19824 ; 19825 return 0; 19826} 19827_ACEOF 19828rm -f conftest.$ac_objext 19829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19830 (eval $ac_compile) 2>conftest.er1 19831 ac_status=$? 19832 grep -v '^ *+' conftest.er1 >conftest.err 19833 rm -f conftest.er1 19834 cat conftest.err >&5 19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19836 (exit $ac_status); } && 19837 { ac_try='test -z "$ac_cxx_werror_flag" 19838 || test ! -s conftest.err' 19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19840 (eval $ac_try) 2>&5 19841 ac_status=$? 19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19843 (exit $ac_status); }; } && 19844 { ac_try='test -s conftest.$ac_objext' 19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19846 (eval $ac_try) 2>&5 19847 ac_status=$? 19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19849 (exit $ac_status); }; }; then 19850 ac_cv_prog_cxx_g=yes 19851else 19852 echo "$as_me: failed program was:" >&5 19853sed 's/^/| /' conftest.$ac_ext >&5 19854 19855ac_cv_prog_cxx_g=no 19856fi 19857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19858fi 19859echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 19860echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 19861if test "$ac_test_CXXFLAGS" = set; then 19862 CXXFLAGS=$ac_save_CXXFLAGS 19863elif test $ac_cv_prog_cxx_g = yes; then 19864 if test "$GXX" = yes; then 19865 CXXFLAGS="-g -O2" 19866 else 19867 CXXFLAGS="-g" 19868 fi 19869else 19870 if test "$GXX" = yes; then 19871 CXXFLAGS="-O2" 19872 else 19873 CXXFLAGS= 19874 fi 19875fi 19876for ac_declaration in \ 19877 '' \ 19878 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19879 'extern "C" void std::exit (int); using std::exit;' \ 19880 'extern "C" void exit (int) throw ();' \ 19881 'extern "C" void exit (int);' \ 19882 'void exit (int);' 19883do 19884 cat >conftest.$ac_ext <<_ACEOF 19885/* confdefs.h. */ 19886_ACEOF 19887cat confdefs.h >>conftest.$ac_ext 19888cat >>conftest.$ac_ext <<_ACEOF 19889/* end confdefs.h. */ 19890$ac_declaration 19891#include <stdlib.h> 19892int 19893main () 19894{ 19895exit (42); 19896 ; 19897 return 0; 19898} 19899_ACEOF 19900rm -f conftest.$ac_objext 19901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19902 (eval $ac_compile) 2>conftest.er1 19903 ac_status=$? 19904 grep -v '^ *+' conftest.er1 >conftest.err 19905 rm -f conftest.er1 19906 cat conftest.err >&5 19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19908 (exit $ac_status); } && 19909 { ac_try='test -z "$ac_cxx_werror_flag" 19910 || test ! -s conftest.err' 19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19912 (eval $ac_try) 2>&5 19913 ac_status=$? 19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19915 (exit $ac_status); }; } && 19916 { ac_try='test -s conftest.$ac_objext' 19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19918 (eval $ac_try) 2>&5 19919 ac_status=$? 19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19921 (exit $ac_status); }; }; then 19922 : 19923else 19924 echo "$as_me: failed program was:" >&5 19925sed 's/^/| /' conftest.$ac_ext >&5 19926 19927continue 19928fi 19929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19930 cat >conftest.$ac_ext <<_ACEOF 19931/* confdefs.h. */ 19932_ACEOF 19933cat confdefs.h >>conftest.$ac_ext 19934cat >>conftest.$ac_ext <<_ACEOF 19935/* end confdefs.h. */ 19936$ac_declaration 19937int 19938main () 19939{ 19940exit (42); 19941 ; 19942 return 0; 19943} 19944_ACEOF 19945rm -f conftest.$ac_objext 19946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19947 (eval $ac_compile) 2>conftest.er1 19948 ac_status=$? 19949 grep -v '^ *+' conftest.er1 >conftest.err 19950 rm -f conftest.er1 19951 cat conftest.err >&5 19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19953 (exit $ac_status); } && 19954 { ac_try='test -z "$ac_cxx_werror_flag" 19955 || test ! -s conftest.err' 19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19957 (eval $ac_try) 2>&5 19958 ac_status=$? 19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19960 (exit $ac_status); }; } && 19961 { ac_try='test -s conftest.$ac_objext' 19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19963 (eval $ac_try) 2>&5 19964 ac_status=$? 19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19966 (exit $ac_status); }; }; then 19967 break 19968else 19969 echo "$as_me: failed program was:" >&5 19970sed 's/^/| /' conftest.$ac_ext >&5 19971 19972fi 19973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19974done 19975rm -f conftest* 19976if test -n "$ac_declaration"; then 19977 echo '#ifdef __cplusplus' >>confdefs.h 19978 echo $ac_declaration >>confdefs.h 19979 echo '#endif' >>confdefs.h 19980fi 19981 19982ac_ext=c 19983ac_cpp='$CPP $CPPFLAGS' 19984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19986ac_compiler_gnu=$ac_cv_c_compiler_gnu 19987 19988depcc="$CXX" am_compiler_list= 19989 19990echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19991echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19992if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 19993 echo $ECHO_N "(cached) $ECHO_C" >&6 19994else 19995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19996 # We make a subdir and do the tests there. Otherwise we can end up 19997 # making bogus files that we don't know about and never remove. For 19998 # instance it was reported that on HP-UX the gcc test will end up 19999 # making a dummy file named `D' -- because `-MD' means `put the output 20000 # in D'. 20001 mkdir conftest.dir 20002 # Copy depcomp to subdir because otherwise we won't find it if we're 20003 # using a relative directory. 20004 cp "$am_depcomp" conftest.dir 20005 cd conftest.dir 20006 # We will build objects and dependencies in a subdirectory because 20007 # it helps to detect inapplicable dependency modes. For instance 20008 # both Tru64's cc and ICC support -MD to output dependencies as a 20009 # side effect of compilation, but ICC will put the dependencies in 20010 # the current directory while Tru64 will put them in the object 20011 # directory. 20012 mkdir sub 20013 20014 am_cv_CXX_dependencies_compiler_type=none 20015 if test "$am_compiler_list" = ""; then 20016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20017 fi 20018 for depmode in $am_compiler_list; do 20019 # Setup a source with many dependencies, because some compilers 20020 # like to wrap large dependency lists on column 80 (with \), and 20021 # we should not choose a depcomp mode which is confused by this. 20022 # 20023 # We need to recreate these files for each test, as the compiler may 20024 # overwrite some of them when testing with obscure command lines. 20025 # This happens at least with the AIX C compiler. 20026 : > sub/conftest.c 20027 for i in 1 2 3 4 5 6; do 20028 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20029 : > sub/conftst$i.h 20030 done 20031 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20032 20033 case $depmode in 20034 nosideeffect) 20035 # after this tag, mechanisms are not by side-effect, so they'll 20036 # only be used when explicitly requested 20037 if test "x$enable_dependency_tracking" = xyes; then 20038 continue 20039 else 20040 break 20041 fi 20042 ;; 20043 none) break ;; 20044 esac 20045 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20046 # mode. It turns out that the SunPro C++ compiler does not properly 20047 # handle `-M -o', and we need to detect this. 20048 if depmode=$depmode \ 20049 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20051 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20052 >/dev/null 2>conftest.err && 20053 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20054 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20055 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20056 # icc doesn't choke on unknown options, it will just issue warnings 20057 # (even with -Werror). So we grep stderr for any message 20058 # that says an option was ignored. 20059 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 20060 am_cv_CXX_dependencies_compiler_type=$depmode 20061 break 20062 fi 20063 fi 20064 done 20065 20066 cd .. 20067 rm -rf conftest.dir 20068else 20069 am_cv_CXX_dependencies_compiler_type=none 20070fi 20071 20072fi 20073echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 20074echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 20075CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 20076 20077 20078 20079if 20080 test "x$enable_dependency_tracking" != xno \ 20081 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 20082 am__fastdepCXX_TRUE= 20083 am__fastdepCXX_FALSE='#' 20084else 20085 am__fastdepCXX_TRUE='#' 20086 am__fastdepCXX_FALSE= 20087fi 20088 20089 20090echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 20091echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 20092set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 20093if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 20094 echo $ECHO_N "(cached) $ECHO_C" >&6 20095else 20096 cat >conftest.make <<\_ACEOF 20097all: 20098 @echo 'ac_maketemp="$(MAKE)"' 20099_ACEOF 20100# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 20101eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 20102if test -n "$ac_maketemp"; then 20103 eval ac_cv_prog_make_${ac_make}_set=yes 20104else 20105 eval ac_cv_prog_make_${ac_make}_set=no 20106fi 20107rm -f conftest.make 20108fi 20109if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 20110 echo "$as_me:$LINENO: result: yes" >&5 20111echo "${ECHO_T}yes" >&6 20112 SET_MAKE= 20113else 20114 echo "$as_me:$LINENO: result: no" >&5 20115echo "${ECHO_T}no" >&6 20116 SET_MAKE="MAKE=${MAKE-make}" 20117fi 20118 20119 20120# Check whether --enable-largefile or --disable-largefile was given. 20121if test "${enable_largefile+set}" = set; then 20122 enableval="$enable_largefile" 20123 20124fi; 20125if test "$enable_largefile" != no; then 20126 20127 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 20128echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 20129if test "${ac_cv_sys_largefile_CC+set}" = set; then 20130 echo $ECHO_N "(cached) $ECHO_C" >&6 20131else 20132 ac_cv_sys_largefile_CC=no 20133 if test "$GCC" != yes; then 20134 ac_save_CC=$CC 20135 while :; do 20136 # IRIX 6.2 and later do not support large files by default, 20137 # so use the C compiler's -n32 option if that helps. 20138 cat >conftest.$ac_ext <<_ACEOF 20139/* confdefs.h. */ 20140_ACEOF 20141cat confdefs.h >>conftest.$ac_ext 20142cat >>conftest.$ac_ext <<_ACEOF 20143/* end confdefs.h. */ 20144#include <sys/types.h> 20145 /* Check that off_t can represent 2**63 - 1 correctly. 20146 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20147 since some C++ compilers masquerading as C compilers 20148 incorrectly reject 9223372036854775807. */ 20149#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20151 && LARGE_OFF_T % 2147483647 == 1) 20152 ? 1 : -1]; 20153int 20154main () 20155{ 20156 20157 ; 20158 return 0; 20159} 20160_ACEOF 20161 rm -f conftest.$ac_objext 20162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20163 (eval $ac_compile) 2>conftest.er1 20164 ac_status=$? 20165 grep -v '^ *+' conftest.er1 >conftest.err 20166 rm -f conftest.er1 20167 cat conftest.err >&5 20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20169 (exit $ac_status); } && 20170 { ac_try='test -z "$ac_c_werror_flag" 20171 || test ! -s conftest.err' 20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20173 (eval $ac_try) 2>&5 20174 ac_status=$? 20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20176 (exit $ac_status); }; } && 20177 { ac_try='test -s conftest.$ac_objext' 20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20179 (eval $ac_try) 2>&5 20180 ac_status=$? 20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20182 (exit $ac_status); }; }; then 20183 break 20184else 20185 echo "$as_me: failed program was:" >&5 20186sed 's/^/| /' conftest.$ac_ext >&5 20187 20188fi 20189rm -f conftest.err conftest.$ac_objext 20190 CC="$CC -n32" 20191 rm -f conftest.$ac_objext 20192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20193 (eval $ac_compile) 2>conftest.er1 20194 ac_status=$? 20195 grep -v '^ *+' conftest.er1 >conftest.err 20196 rm -f conftest.er1 20197 cat conftest.err >&5 20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20199 (exit $ac_status); } && 20200 { ac_try='test -z "$ac_c_werror_flag" 20201 || test ! -s conftest.err' 20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20203 (eval $ac_try) 2>&5 20204 ac_status=$? 20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20206 (exit $ac_status); }; } && 20207 { ac_try='test -s conftest.$ac_objext' 20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20209 (eval $ac_try) 2>&5 20210 ac_status=$? 20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20212 (exit $ac_status); }; }; then 20213 ac_cv_sys_largefile_CC=' -n32'; break 20214else 20215 echo "$as_me: failed program was:" >&5 20216sed 's/^/| /' conftest.$ac_ext >&5 20217 20218fi 20219rm -f conftest.err conftest.$ac_objext 20220 break 20221 done 20222 CC=$ac_save_CC 20223 rm -f conftest.$ac_ext 20224 fi 20225fi 20226echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 20227echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 20228 if test "$ac_cv_sys_largefile_CC" != no; then 20229 CC=$CC$ac_cv_sys_largefile_CC 20230 fi 20231 20232 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 20233echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 20234if test "${ac_cv_sys_file_offset_bits+set}" = set; then 20235 echo $ECHO_N "(cached) $ECHO_C" >&6 20236else 20237 while :; do 20238 ac_cv_sys_file_offset_bits=no 20239 cat >conftest.$ac_ext <<_ACEOF 20240/* confdefs.h. */ 20241_ACEOF 20242cat confdefs.h >>conftest.$ac_ext 20243cat >>conftest.$ac_ext <<_ACEOF 20244/* end confdefs.h. */ 20245#include <sys/types.h> 20246 /* Check that off_t can represent 2**63 - 1 correctly. 20247 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20248 since some C++ compilers masquerading as C compilers 20249 incorrectly reject 9223372036854775807. */ 20250#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20251 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20252 && LARGE_OFF_T % 2147483647 == 1) 20253 ? 1 : -1]; 20254int 20255main () 20256{ 20257 20258 ; 20259 return 0; 20260} 20261_ACEOF 20262rm -f conftest.$ac_objext 20263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20264 (eval $ac_compile) 2>conftest.er1 20265 ac_status=$? 20266 grep -v '^ *+' conftest.er1 >conftest.err 20267 rm -f conftest.er1 20268 cat conftest.err >&5 20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20270 (exit $ac_status); } && 20271 { ac_try='test -z "$ac_c_werror_flag" 20272 || test ! -s conftest.err' 20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20274 (eval $ac_try) 2>&5 20275 ac_status=$? 20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20277 (exit $ac_status); }; } && 20278 { ac_try='test -s conftest.$ac_objext' 20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20280 (eval $ac_try) 2>&5 20281 ac_status=$? 20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20283 (exit $ac_status); }; }; then 20284 break 20285else 20286 echo "$as_me: failed program was:" >&5 20287sed 's/^/| /' conftest.$ac_ext >&5 20288 20289fi 20290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20291 cat >conftest.$ac_ext <<_ACEOF 20292/* confdefs.h. */ 20293_ACEOF 20294cat confdefs.h >>conftest.$ac_ext 20295cat >>conftest.$ac_ext <<_ACEOF 20296/* end confdefs.h. */ 20297#define _FILE_OFFSET_BITS 64 20298#include <sys/types.h> 20299 /* Check that off_t can represent 2**63 - 1 correctly. 20300 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20301 since some C++ compilers masquerading as C compilers 20302 incorrectly reject 9223372036854775807. */ 20303#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20305 && LARGE_OFF_T % 2147483647 == 1) 20306 ? 1 : -1]; 20307int 20308main () 20309{ 20310 20311 ; 20312 return 0; 20313} 20314_ACEOF 20315rm -f conftest.$ac_objext 20316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20317 (eval $ac_compile) 2>conftest.er1 20318 ac_status=$? 20319 grep -v '^ *+' conftest.er1 >conftest.err 20320 rm -f conftest.er1 20321 cat conftest.err >&5 20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20323 (exit $ac_status); } && 20324 { ac_try='test -z "$ac_c_werror_flag" 20325 || test ! -s conftest.err' 20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20327 (eval $ac_try) 2>&5 20328 ac_status=$? 20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20330 (exit $ac_status); }; } && 20331 { ac_try='test -s conftest.$ac_objext' 20332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20333 (eval $ac_try) 2>&5 20334 ac_status=$? 20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20336 (exit $ac_status); }; }; then 20337 ac_cv_sys_file_offset_bits=64; break 20338else 20339 echo "$as_me: failed program was:" >&5 20340sed 's/^/| /' conftest.$ac_ext >&5 20341 20342fi 20343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20344 break 20345done 20346fi 20347echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 20348echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 20349if test "$ac_cv_sys_file_offset_bits" != no; then 20350 20351cat >>confdefs.h <<_ACEOF 20352#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 20353_ACEOF 20354 20355fi 20356rm -f conftest* 20357 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 20358echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 20359if test "${ac_cv_sys_large_files+set}" = set; then 20360 echo $ECHO_N "(cached) $ECHO_C" >&6 20361else 20362 while :; do 20363 ac_cv_sys_large_files=no 20364 cat >conftest.$ac_ext <<_ACEOF 20365/* confdefs.h. */ 20366_ACEOF 20367cat confdefs.h >>conftest.$ac_ext 20368cat >>conftest.$ac_ext <<_ACEOF 20369/* end confdefs.h. */ 20370#include <sys/types.h> 20371 /* Check that off_t can represent 2**63 - 1 correctly. 20372 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20373 since some C++ compilers masquerading as C compilers 20374 incorrectly reject 9223372036854775807. */ 20375#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20377 && LARGE_OFF_T % 2147483647 == 1) 20378 ? 1 : -1]; 20379int 20380main () 20381{ 20382 20383 ; 20384 return 0; 20385} 20386_ACEOF 20387rm -f conftest.$ac_objext 20388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20389 (eval $ac_compile) 2>conftest.er1 20390 ac_status=$? 20391 grep -v '^ *+' conftest.er1 >conftest.err 20392 rm -f conftest.er1 20393 cat conftest.err >&5 20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20395 (exit $ac_status); } && 20396 { ac_try='test -z "$ac_c_werror_flag" 20397 || test ! -s conftest.err' 20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20399 (eval $ac_try) 2>&5 20400 ac_status=$? 20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20402 (exit $ac_status); }; } && 20403 { ac_try='test -s conftest.$ac_objext' 20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20405 (eval $ac_try) 2>&5 20406 ac_status=$? 20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20408 (exit $ac_status); }; }; then 20409 break 20410else 20411 echo "$as_me: failed program was:" >&5 20412sed 's/^/| /' conftest.$ac_ext >&5 20413 20414fi 20415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20416 cat >conftest.$ac_ext <<_ACEOF 20417/* confdefs.h. */ 20418_ACEOF 20419cat confdefs.h >>conftest.$ac_ext 20420cat >>conftest.$ac_ext <<_ACEOF 20421/* end confdefs.h. */ 20422#define _LARGE_FILES 1 20423#include <sys/types.h> 20424 /* Check that off_t can represent 2**63 - 1 correctly. 20425 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20426 since some C++ compilers masquerading as C compilers 20427 incorrectly reject 9223372036854775807. */ 20428#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20430 && LARGE_OFF_T % 2147483647 == 1) 20431 ? 1 : -1]; 20432int 20433main () 20434{ 20435 20436 ; 20437 return 0; 20438} 20439_ACEOF 20440rm -f conftest.$ac_objext 20441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20442 (eval $ac_compile) 2>conftest.er1 20443 ac_status=$? 20444 grep -v '^ *+' conftest.er1 >conftest.err 20445 rm -f conftest.er1 20446 cat conftest.err >&5 20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20448 (exit $ac_status); } && 20449 { ac_try='test -z "$ac_c_werror_flag" 20450 || test ! -s conftest.err' 20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20452 (eval $ac_try) 2>&5 20453 ac_status=$? 20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20455 (exit $ac_status); }; } && 20456 { ac_try='test -s conftest.$ac_objext' 20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20458 (eval $ac_try) 2>&5 20459 ac_status=$? 20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20461 (exit $ac_status); }; }; then 20462 ac_cv_sys_large_files=1; break 20463else 20464 echo "$as_me: failed program was:" >&5 20465sed 's/^/| /' conftest.$ac_ext >&5 20466 20467fi 20468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20469 break 20470done 20471fi 20472echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 20473echo "${ECHO_T}$ac_cv_sys_large_files" >&6 20474if test "$ac_cv_sys_large_files" != no; then 20475 20476cat >>confdefs.h <<_ACEOF 20477#define _LARGE_FILES $ac_cv_sys_large_files 20478_ACEOF 20479 20480fi 20481rm -f conftest* 20482fi 20483 20484echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 20485echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 20486if test "${ac_cv_sys_largefile_source+set}" = set; then 20487 echo $ECHO_N "(cached) $ECHO_C" >&6 20488else 20489 while :; do 20490 ac_cv_sys_largefile_source=no 20491 cat >conftest.$ac_ext <<_ACEOF 20492/* confdefs.h. */ 20493_ACEOF 20494cat confdefs.h >>conftest.$ac_ext 20495cat >>conftest.$ac_ext <<_ACEOF 20496/* end confdefs.h. */ 20497#include <stdio.h> 20498int 20499main () 20500{ 20501return !fseeko; 20502 ; 20503 return 0; 20504} 20505_ACEOF 20506rm -f conftest.$ac_objext 20507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20508 (eval $ac_compile) 2>conftest.er1 20509 ac_status=$? 20510 grep -v '^ *+' conftest.er1 >conftest.err 20511 rm -f conftest.er1 20512 cat conftest.err >&5 20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20514 (exit $ac_status); } && 20515 { ac_try='test -z "$ac_c_werror_flag" 20516 || test ! -s conftest.err' 20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20518 (eval $ac_try) 2>&5 20519 ac_status=$? 20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20521 (exit $ac_status); }; } && 20522 { ac_try='test -s conftest.$ac_objext' 20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20524 (eval $ac_try) 2>&5 20525 ac_status=$? 20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20527 (exit $ac_status); }; }; then 20528 break 20529else 20530 echo "$as_me: failed program was:" >&5 20531sed 's/^/| /' conftest.$ac_ext >&5 20532 20533fi 20534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20535 cat >conftest.$ac_ext <<_ACEOF 20536/* confdefs.h. */ 20537_ACEOF 20538cat confdefs.h >>conftest.$ac_ext 20539cat >>conftest.$ac_ext <<_ACEOF 20540/* end confdefs.h. */ 20541#define _LARGEFILE_SOURCE 1 20542#include <stdio.h> 20543int 20544main () 20545{ 20546return !fseeko; 20547 ; 20548 return 0; 20549} 20550_ACEOF 20551rm -f conftest.$ac_objext 20552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20553 (eval $ac_compile) 2>conftest.er1 20554 ac_status=$? 20555 grep -v '^ *+' conftest.er1 >conftest.err 20556 rm -f conftest.er1 20557 cat conftest.err >&5 20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20559 (exit $ac_status); } && 20560 { ac_try='test -z "$ac_c_werror_flag" 20561 || test ! -s conftest.err' 20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20563 (eval $ac_try) 2>&5 20564 ac_status=$? 20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20566 (exit $ac_status); }; } && 20567 { ac_try='test -s conftest.$ac_objext' 20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20569 (eval $ac_try) 2>&5 20570 ac_status=$? 20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20572 (exit $ac_status); }; }; then 20573 ac_cv_sys_largefile_source=1; break 20574else 20575 echo "$as_me: failed program was:" >&5 20576sed 's/^/| /' conftest.$ac_ext >&5 20577 20578fi 20579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20580 break 20581done 20582fi 20583echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 20584echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 20585if test "$ac_cv_sys_largefile_source" != no; then 20586 20587cat >>confdefs.h <<_ACEOF 20588#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 20589_ACEOF 20590 20591fi 20592rm -f conftest* 20593 20594# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 20595# in glibc 2.1.3, but that breaks too many other things. 20596# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 20597echo "$as_me:$LINENO: checking for fseeko" >&5 20598echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 20599if test "${ac_cv_func_fseeko+set}" = set; then 20600 echo $ECHO_N "(cached) $ECHO_C" >&6 20601else 20602 cat >conftest.$ac_ext <<_ACEOF 20603/* confdefs.h. */ 20604_ACEOF 20605cat confdefs.h >>conftest.$ac_ext 20606cat >>conftest.$ac_ext <<_ACEOF 20607/* end confdefs.h. */ 20608#include <stdio.h> 20609int 20610main () 20611{ 20612return fseeko && fseeko (stdin, 0, 0); 20613 ; 20614 return 0; 20615} 20616_ACEOF 20617rm -f conftest.$ac_objext conftest$ac_exeext 20618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20619 (eval $ac_link) 2>conftest.er1 20620 ac_status=$? 20621 grep -v '^ *+' conftest.er1 >conftest.err 20622 rm -f conftest.er1 20623 cat conftest.err >&5 20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20625 (exit $ac_status); } && 20626 { ac_try='test -z "$ac_c_werror_flag" 20627 || test ! -s conftest.err' 20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20629 (eval $ac_try) 2>&5 20630 ac_status=$? 20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20632 (exit $ac_status); }; } && 20633 { ac_try='test -s conftest$ac_exeext' 20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20635 (eval $ac_try) 2>&5 20636 ac_status=$? 20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20638 (exit $ac_status); }; }; then 20639 ac_cv_func_fseeko=yes 20640else 20641 echo "$as_me: failed program was:" >&5 20642sed 's/^/| /' conftest.$ac_ext >&5 20643 20644ac_cv_func_fseeko=no 20645fi 20646rm -f conftest.err conftest.$ac_objext \ 20647 conftest$ac_exeext conftest.$ac_ext 20648fi 20649echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 20650echo "${ECHO_T}$ac_cv_func_fseeko" >&6 20651if test $ac_cv_func_fseeko = yes; then 20652 20653cat >>confdefs.h <<\_ACEOF 20654#define HAVE_FSEEKO 1 20655_ACEOF 20656 20657fi 20658 20659 20660echo "$as_me:$LINENO: checking for void*" >&5 20661echo $ECHO_N "checking for void*... $ECHO_C" >&6 20662if test "${ac_cv_type_voidp+set}" = set; then 20663 echo $ECHO_N "(cached) $ECHO_C" >&6 20664else 20665 cat >conftest.$ac_ext <<_ACEOF 20666/* confdefs.h. */ 20667_ACEOF 20668cat confdefs.h >>conftest.$ac_ext 20669cat >>conftest.$ac_ext <<_ACEOF 20670/* end confdefs.h. */ 20671$ac_includes_default 20672int 20673main () 20674{ 20675if ((void* *) 0) 20676 return 0; 20677if (sizeof (void*)) 20678 return 0; 20679 ; 20680 return 0; 20681} 20682_ACEOF 20683rm -f conftest.$ac_objext 20684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20685 (eval $ac_compile) 2>conftest.er1 20686 ac_status=$? 20687 grep -v '^ *+' conftest.er1 >conftest.err 20688 rm -f conftest.er1 20689 cat conftest.err >&5 20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20691 (exit $ac_status); } && 20692 { ac_try='test -z "$ac_c_werror_flag" 20693 || test ! -s conftest.err' 20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20695 (eval $ac_try) 2>&5 20696 ac_status=$? 20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20698 (exit $ac_status); }; } && 20699 { ac_try='test -s conftest.$ac_objext' 20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20701 (eval $ac_try) 2>&5 20702 ac_status=$? 20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20704 (exit $ac_status); }; }; then 20705 ac_cv_type_voidp=yes 20706else 20707 echo "$as_me: failed program was:" >&5 20708sed 's/^/| /' conftest.$ac_ext >&5 20709 20710ac_cv_type_voidp=no 20711fi 20712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20713fi 20714echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5 20715echo "${ECHO_T}$ac_cv_type_voidp" >&6 20716 20717echo "$as_me:$LINENO: checking size of void*" >&5 20718echo $ECHO_N "checking size of void*... $ECHO_C" >&6 20719if test "${ac_cv_sizeof_voidp+set}" = set; then 20720 echo $ECHO_N "(cached) $ECHO_C" >&6 20721else 20722 if test "$ac_cv_type_voidp" = yes; then 20723 # The cast to unsigned long works around a bug in the HP C Compiler 20724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 20725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 20726 # This bug is HP SR number 8606223364. 20727 if test "$cross_compiling" = yes; then 20728 # Depending upon the size, compute the lo and hi bounds. 20729cat >conftest.$ac_ext <<_ACEOF 20730/* confdefs.h. */ 20731_ACEOF 20732cat confdefs.h >>conftest.$ac_ext 20733cat >>conftest.$ac_ext <<_ACEOF 20734/* end confdefs.h. */ 20735$ac_includes_default 20736int 20737main () 20738{ 20739static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)]; 20740test_array [0] = 0 20741 20742 ; 20743 return 0; 20744} 20745_ACEOF 20746rm -f conftest.$ac_objext 20747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20748 (eval $ac_compile) 2>conftest.er1 20749 ac_status=$? 20750 grep -v '^ *+' conftest.er1 >conftest.err 20751 rm -f conftest.er1 20752 cat conftest.err >&5 20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20754 (exit $ac_status); } && 20755 { ac_try='test -z "$ac_c_werror_flag" 20756 || test ! -s conftest.err' 20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20758 (eval $ac_try) 2>&5 20759 ac_status=$? 20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20761 (exit $ac_status); }; } && 20762 { ac_try='test -s conftest.$ac_objext' 20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20764 (eval $ac_try) 2>&5 20765 ac_status=$? 20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20767 (exit $ac_status); }; }; then 20768 ac_lo=0 ac_mid=0 20769 while :; do 20770 cat >conftest.$ac_ext <<_ACEOF 20771/* confdefs.h. */ 20772_ACEOF 20773cat confdefs.h >>conftest.$ac_ext 20774cat >>conftest.$ac_ext <<_ACEOF 20775/* end confdefs.h. */ 20776$ac_includes_default 20777int 20778main () 20779{ 20780static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; 20781test_array [0] = 0 20782 20783 ; 20784 return 0; 20785} 20786_ACEOF 20787rm -f conftest.$ac_objext 20788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20789 (eval $ac_compile) 2>conftest.er1 20790 ac_status=$? 20791 grep -v '^ *+' conftest.er1 >conftest.err 20792 rm -f conftest.er1 20793 cat conftest.err >&5 20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20795 (exit $ac_status); } && 20796 { ac_try='test -z "$ac_c_werror_flag" 20797 || test ! -s conftest.err' 20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20799 (eval $ac_try) 2>&5 20800 ac_status=$? 20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20802 (exit $ac_status); }; } && 20803 { ac_try='test -s conftest.$ac_objext' 20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20805 (eval $ac_try) 2>&5 20806 ac_status=$? 20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20808 (exit $ac_status); }; }; then 20809 ac_hi=$ac_mid; break 20810else 20811 echo "$as_me: failed program was:" >&5 20812sed 's/^/| /' conftest.$ac_ext >&5 20813 20814ac_lo=`expr $ac_mid + 1` 20815 if test $ac_lo -le $ac_mid; then 20816 ac_lo= ac_hi= 20817 break 20818 fi 20819 ac_mid=`expr 2 '*' $ac_mid + 1` 20820fi 20821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20822 done 20823else 20824 echo "$as_me: failed program was:" >&5 20825sed 's/^/| /' conftest.$ac_ext >&5 20826 20827cat >conftest.$ac_ext <<_ACEOF 20828/* confdefs.h. */ 20829_ACEOF 20830cat confdefs.h >>conftest.$ac_ext 20831cat >>conftest.$ac_ext <<_ACEOF 20832/* end confdefs.h. */ 20833$ac_includes_default 20834int 20835main () 20836{ 20837static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)]; 20838test_array [0] = 0 20839 20840 ; 20841 return 0; 20842} 20843_ACEOF 20844rm -f conftest.$ac_objext 20845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20846 (eval $ac_compile) 2>conftest.er1 20847 ac_status=$? 20848 grep -v '^ *+' conftest.er1 >conftest.err 20849 rm -f conftest.er1 20850 cat conftest.err >&5 20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20852 (exit $ac_status); } && 20853 { ac_try='test -z "$ac_c_werror_flag" 20854 || test ! -s conftest.err' 20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20856 (eval $ac_try) 2>&5 20857 ac_status=$? 20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20859 (exit $ac_status); }; } && 20860 { ac_try='test -s conftest.$ac_objext' 20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20862 (eval $ac_try) 2>&5 20863 ac_status=$? 20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20865 (exit $ac_status); }; }; then 20866 ac_hi=-1 ac_mid=-1 20867 while :; do 20868 cat >conftest.$ac_ext <<_ACEOF 20869/* confdefs.h. */ 20870_ACEOF 20871cat confdefs.h >>conftest.$ac_ext 20872cat >>conftest.$ac_ext <<_ACEOF 20873/* end confdefs.h. */ 20874$ac_includes_default 20875int 20876main () 20877{ 20878static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)]; 20879test_array [0] = 0 20880 20881 ; 20882 return 0; 20883} 20884_ACEOF 20885rm -f conftest.$ac_objext 20886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20887 (eval $ac_compile) 2>conftest.er1 20888 ac_status=$? 20889 grep -v '^ *+' conftest.er1 >conftest.err 20890 rm -f conftest.er1 20891 cat conftest.err >&5 20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20893 (exit $ac_status); } && 20894 { ac_try='test -z "$ac_c_werror_flag" 20895 || test ! -s conftest.err' 20896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20897 (eval $ac_try) 2>&5 20898 ac_status=$? 20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20900 (exit $ac_status); }; } && 20901 { ac_try='test -s conftest.$ac_objext' 20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20903 (eval $ac_try) 2>&5 20904 ac_status=$? 20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20906 (exit $ac_status); }; }; then 20907 ac_lo=$ac_mid; break 20908else 20909 echo "$as_me: failed program was:" >&5 20910sed 's/^/| /' conftest.$ac_ext >&5 20911 20912ac_hi=`expr '(' $ac_mid ')' - 1` 20913 if test $ac_mid -le $ac_hi; then 20914 ac_lo= ac_hi= 20915 break 20916 fi 20917 ac_mid=`expr 2 '*' $ac_mid` 20918fi 20919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20920 done 20921else 20922 echo "$as_me: failed program was:" >&5 20923sed 's/^/| /' conftest.$ac_ext >&5 20924 20925ac_lo= ac_hi= 20926fi 20927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20928fi 20929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20930# Binary search between lo and hi bounds. 20931while test "x$ac_lo" != "x$ac_hi"; do 20932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 20933 cat >conftest.$ac_ext <<_ACEOF 20934/* confdefs.h. */ 20935_ACEOF 20936cat confdefs.h >>conftest.$ac_ext 20937cat >>conftest.$ac_ext <<_ACEOF 20938/* end confdefs.h. */ 20939$ac_includes_default 20940int 20941main () 20942{ 20943static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; 20944test_array [0] = 0 20945 20946 ; 20947 return 0; 20948} 20949_ACEOF 20950rm -f conftest.$ac_objext 20951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20952 (eval $ac_compile) 2>conftest.er1 20953 ac_status=$? 20954 grep -v '^ *+' conftest.er1 >conftest.err 20955 rm -f conftest.er1 20956 cat conftest.err >&5 20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20958 (exit $ac_status); } && 20959 { ac_try='test -z "$ac_c_werror_flag" 20960 || test ! -s conftest.err' 20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20962 (eval $ac_try) 2>&5 20963 ac_status=$? 20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20965 (exit $ac_status); }; } && 20966 { ac_try='test -s conftest.$ac_objext' 20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20968 (eval $ac_try) 2>&5 20969 ac_status=$? 20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20971 (exit $ac_status); }; }; then 20972 ac_hi=$ac_mid 20973else 20974 echo "$as_me: failed program was:" >&5 20975sed 's/^/| /' conftest.$ac_ext >&5 20976 20977ac_lo=`expr '(' $ac_mid ')' + 1` 20978fi 20979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20980done 20981case $ac_lo in 20982?*) ac_cv_sizeof_voidp=$ac_lo;; 20983'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 20984See \`config.log' for more details." >&5 20985echo "$as_me: error: cannot compute sizeof (void*), 77 20986See \`config.log' for more details." >&2;} 20987 { (exit 1); exit 1; }; } ;; 20988esac 20989else 20990 if test "$cross_compiling" = yes; then 20991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20992See \`config.log' for more details." >&5 20993echo "$as_me: error: cannot run test program while cross compiling 20994See \`config.log' for more details." >&2;} 20995 { (exit 1); exit 1; }; } 20996else 20997 cat >conftest.$ac_ext <<_ACEOF 20998/* confdefs.h. */ 20999_ACEOF 21000cat confdefs.h >>conftest.$ac_ext 21001cat >>conftest.$ac_ext <<_ACEOF 21002/* end confdefs.h. */ 21003$ac_includes_default 21004long longval () { return (long) (sizeof (void*)); } 21005unsigned long ulongval () { return (long) (sizeof (void*)); } 21006#include <stdio.h> 21007#include <stdlib.h> 21008int 21009main () 21010{ 21011 21012 FILE *f = fopen ("conftest.val", "w"); 21013 if (! f) 21014 exit (1); 21015 if (((long) (sizeof (void*))) < 0) 21016 { 21017 long i = longval (); 21018 if (i != ((long) (sizeof (void*)))) 21019 exit (1); 21020 fprintf (f, "%ld\n", i); 21021 } 21022 else 21023 { 21024 unsigned long i = ulongval (); 21025 if (i != ((long) (sizeof (void*)))) 21026 exit (1); 21027 fprintf (f, "%lu\n", i); 21028 } 21029 exit (ferror (f) || fclose (f) != 0); 21030 21031 ; 21032 return 0; 21033} 21034_ACEOF 21035rm -f conftest$ac_exeext 21036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21037 (eval $ac_link) 2>&5 21038 ac_status=$? 21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21042 (eval $ac_try) 2>&5 21043 ac_status=$? 21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21045 (exit $ac_status); }; }; then 21046 ac_cv_sizeof_voidp=`cat conftest.val` 21047else 21048 echo "$as_me: program exited with status $ac_status" >&5 21049echo "$as_me: failed program was:" >&5 21050sed 's/^/| /' conftest.$ac_ext >&5 21051 21052( exit $ac_status ) 21053{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 21054See \`config.log' for more details." >&5 21055echo "$as_me: error: cannot compute sizeof (void*), 77 21056See \`config.log' for more details." >&2;} 21057 { (exit 1); exit 1; }; } 21058fi 21059rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21060fi 21061fi 21062rm -f conftest.val 21063else 21064 ac_cv_sizeof_voidp=0 21065fi 21066fi 21067echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 21068echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6 21069cat >>confdefs.h <<_ACEOF 21070#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 21071_ACEOF 21072 21073 21074 21075#@@@ new name is AC_CONFIG_HEADERS 21076 ac_config_headers="$ac_config_headers config.h" 21077 21078 21079echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 21080echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 21081if test "${ac_cv_c_bigendian+set}" = set; then 21082 echo $ECHO_N "(cached) $ECHO_C" >&6 21083else 21084 # See if sys/param.h defines the BYTE_ORDER macro. 21085cat >conftest.$ac_ext <<_ACEOF 21086/* confdefs.h. */ 21087_ACEOF 21088cat confdefs.h >>conftest.$ac_ext 21089cat >>conftest.$ac_ext <<_ACEOF 21090/* end confdefs.h. */ 21091#include <sys/types.h> 21092#include <sys/param.h> 21093 21094int 21095main () 21096{ 21097#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 21098 bogus endian macros 21099#endif 21100 21101 ; 21102 return 0; 21103} 21104_ACEOF 21105rm -f conftest.$ac_objext 21106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21107 (eval $ac_compile) 2>conftest.er1 21108 ac_status=$? 21109 grep -v '^ *+' conftest.er1 >conftest.err 21110 rm -f conftest.er1 21111 cat conftest.err >&5 21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21113 (exit $ac_status); } && 21114 { ac_try='test -z "$ac_c_werror_flag" 21115 || test ! -s conftest.err' 21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21117 (eval $ac_try) 2>&5 21118 ac_status=$? 21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21120 (exit $ac_status); }; } && 21121 { ac_try='test -s conftest.$ac_objext' 21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21123 (eval $ac_try) 2>&5 21124 ac_status=$? 21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21126 (exit $ac_status); }; }; then 21127 # It does; now see whether it defined to BIG_ENDIAN or not. 21128cat >conftest.$ac_ext <<_ACEOF 21129/* confdefs.h. */ 21130_ACEOF 21131cat confdefs.h >>conftest.$ac_ext 21132cat >>conftest.$ac_ext <<_ACEOF 21133/* end confdefs.h. */ 21134#include <sys/types.h> 21135#include <sys/param.h> 21136 21137int 21138main () 21139{ 21140#if BYTE_ORDER != BIG_ENDIAN 21141 not big endian 21142#endif 21143 21144 ; 21145 return 0; 21146} 21147_ACEOF 21148rm -f conftest.$ac_objext 21149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21150 (eval $ac_compile) 2>conftest.er1 21151 ac_status=$? 21152 grep -v '^ *+' conftest.er1 >conftest.err 21153 rm -f conftest.er1 21154 cat conftest.err >&5 21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21156 (exit $ac_status); } && 21157 { ac_try='test -z "$ac_c_werror_flag" 21158 || test ! -s conftest.err' 21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21160 (eval $ac_try) 2>&5 21161 ac_status=$? 21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21163 (exit $ac_status); }; } && 21164 { ac_try='test -s conftest.$ac_objext' 21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21166 (eval $ac_try) 2>&5 21167 ac_status=$? 21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21169 (exit $ac_status); }; }; then 21170 ac_cv_c_bigendian=yes 21171else 21172 echo "$as_me: failed program was:" >&5 21173sed 's/^/| /' conftest.$ac_ext >&5 21174 21175ac_cv_c_bigendian=no 21176fi 21177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21178else 21179 echo "$as_me: failed program was:" >&5 21180sed 's/^/| /' conftest.$ac_ext >&5 21181 21182# It does not; compile a test program. 21183if test "$cross_compiling" = yes; then 21184 # try to guess the endianness by grepping values into an object file 21185 ac_cv_c_bigendian=unknown 21186 cat >conftest.$ac_ext <<_ACEOF 21187/* confdefs.h. */ 21188_ACEOF 21189cat confdefs.h >>conftest.$ac_ext 21190cat >>conftest.$ac_ext <<_ACEOF 21191/* end confdefs.h. */ 21192short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 21193short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 21194void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 21195short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 21196short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 21197void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 21198int 21199main () 21200{ 21201 _ascii (); _ebcdic (); 21202 ; 21203 return 0; 21204} 21205_ACEOF 21206rm -f conftest.$ac_objext 21207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21208 (eval $ac_compile) 2>conftest.er1 21209 ac_status=$? 21210 grep -v '^ *+' conftest.er1 >conftest.err 21211 rm -f conftest.er1 21212 cat conftest.err >&5 21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21214 (exit $ac_status); } && 21215 { ac_try='test -z "$ac_c_werror_flag" 21216 || test ! -s conftest.err' 21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21218 (eval $ac_try) 2>&5 21219 ac_status=$? 21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21221 (exit $ac_status); }; } && 21222 { ac_try='test -s conftest.$ac_objext' 21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21224 (eval $ac_try) 2>&5 21225 ac_status=$? 21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21227 (exit $ac_status); }; }; then 21228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 21229 ac_cv_c_bigendian=yes 21230fi 21231if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 21232 if test "$ac_cv_c_bigendian" = unknown; then 21233 ac_cv_c_bigendian=no 21234 else 21235 # finding both strings is unlikely to happen, but who knows? 21236 ac_cv_c_bigendian=unknown 21237 fi 21238fi 21239else 21240 echo "$as_me: failed program was:" >&5 21241sed 's/^/| /' conftest.$ac_ext >&5 21242 21243fi 21244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21245else 21246 cat >conftest.$ac_ext <<_ACEOF 21247/* confdefs.h. */ 21248_ACEOF 21249cat confdefs.h >>conftest.$ac_ext 21250cat >>conftest.$ac_ext <<_ACEOF 21251/* end confdefs.h. */ 21252int 21253main () 21254{ 21255 /* Are we little or big endian? From Harbison&Steele. */ 21256 union 21257 { 21258 long l; 21259 char c[sizeof (long)]; 21260 } u; 21261 u.l = 1; 21262 exit (u.c[sizeof (long) - 1] == 1); 21263} 21264_ACEOF 21265rm -f conftest$ac_exeext 21266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21267 (eval $ac_link) 2>&5 21268 ac_status=$? 21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21272 (eval $ac_try) 2>&5 21273 ac_status=$? 21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21275 (exit $ac_status); }; }; then 21276 ac_cv_c_bigendian=no 21277else 21278 echo "$as_me: program exited with status $ac_status" >&5 21279echo "$as_me: failed program was:" >&5 21280sed 's/^/| /' conftest.$ac_ext >&5 21281 21282( exit $ac_status ) 21283ac_cv_c_bigendian=yes 21284fi 21285rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21286fi 21287fi 21288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21289fi 21290echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 21291echo "${ECHO_T}$ac_cv_c_bigendian" >&6 21292case $ac_cv_c_bigendian in 21293 yes) 21294 21295cat >>confdefs.h <<\_ACEOF 21296#define WORDS_BIGENDIAN 1 21297_ACEOF 21298 ;; 21299 no) 21300 ;; 21301 *) 21302 { { echo "$as_me:$LINENO: error: unknown endianness 21303presetting ac_cv_c_bigendian=no (or yes) will help" >&5 21304echo "$as_me: error: unknown endianness 21305presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 21306 { (exit 1); exit 1; }; } ;; 21307esac 21308 21309 21310echo "$as_me:$LINENO: checking for socklen_t" >&5 21311echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 21312if test "${ac_cv_type_socklen_t+set}" = set; then 21313 echo $ECHO_N "(cached) $ECHO_C" >&6 21314else 21315 cat >conftest.$ac_ext <<_ACEOF 21316/* confdefs.h. */ 21317_ACEOF 21318cat confdefs.h >>conftest.$ac_ext 21319cat >>conftest.$ac_ext <<_ACEOF 21320/* end confdefs.h. */ 21321$ac_includes_default 21322int 21323main () 21324{ 21325if ((socklen_t *) 0) 21326 return 0; 21327if (sizeof (socklen_t)) 21328 return 0; 21329 ; 21330 return 0; 21331} 21332_ACEOF 21333rm -f conftest.$ac_objext 21334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21335 (eval $ac_compile) 2>conftest.er1 21336 ac_status=$? 21337 grep -v '^ *+' conftest.er1 >conftest.err 21338 rm -f conftest.er1 21339 cat conftest.err >&5 21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21341 (exit $ac_status); } && 21342 { ac_try='test -z "$ac_c_werror_flag" 21343 || test ! -s conftest.err' 21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21345 (eval $ac_try) 2>&5 21346 ac_status=$? 21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21348 (exit $ac_status); }; } && 21349 { ac_try='test -s conftest.$ac_objext' 21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21351 (eval $ac_try) 2>&5 21352 ac_status=$? 21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21354 (exit $ac_status); }; }; then 21355 ac_cv_type_socklen_t=yes 21356else 21357 echo "$as_me: failed program was:" >&5 21358sed 's/^/| /' conftest.$ac_ext >&5 21359 21360ac_cv_type_socklen_t=no 21361fi 21362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21363fi 21364echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 21365echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 21366if test $ac_cv_type_socklen_t = yes; then 21367 21368cat >>confdefs.h <<_ACEOF 21369#define HAVE_SOCKLEN_T 1 21370_ACEOF 21371 21372 21373fi 21374 21375 21376 21377for ac_func in getopt_long 21378do 21379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21380echo "$as_me:$LINENO: checking for $ac_func" >&5 21381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21382if eval "test \"\${$as_ac_var+set}\" = set"; then 21383 echo $ECHO_N "(cached) $ECHO_C" >&6 21384else 21385 cat >conftest.$ac_ext <<_ACEOF 21386/* confdefs.h. */ 21387_ACEOF 21388cat confdefs.h >>conftest.$ac_ext 21389cat >>conftest.$ac_ext <<_ACEOF 21390/* end confdefs.h. */ 21391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21392 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21393#define $ac_func innocuous_$ac_func 21394 21395/* System header to define __stub macros and hopefully few prototypes, 21396 which can conflict with char $ac_func (); below. 21397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21398 <limits.h> exists even on freestanding compilers. */ 21399 21400#ifdef __STDC__ 21401# include <limits.h> 21402#else 21403# include <assert.h> 21404#endif 21405 21406#undef $ac_func 21407 21408/* Override any gcc2 internal prototype to avoid an error. */ 21409#ifdef __cplusplus 21410extern "C" 21411{ 21412#endif 21413/* We use char because int might match the return type of a gcc2 21414 builtin and then its argument prototype would still apply. */ 21415char $ac_func (); 21416/* The GNU C library defines this for functions which it implements 21417 to always fail with ENOSYS. Some functions are actually named 21418 something starting with __ and the normal name is an alias. */ 21419#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21420choke me 21421#else 21422char (*f) () = $ac_func; 21423#endif 21424#ifdef __cplusplus 21425} 21426#endif 21427 21428int 21429main () 21430{ 21431return f != $ac_func; 21432 ; 21433 return 0; 21434} 21435_ACEOF 21436rm -f conftest.$ac_objext conftest$ac_exeext 21437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21438 (eval $ac_link) 2>conftest.er1 21439 ac_status=$? 21440 grep -v '^ *+' conftest.er1 >conftest.err 21441 rm -f conftest.er1 21442 cat conftest.err >&5 21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21444 (exit $ac_status); } && 21445 { ac_try='test -z "$ac_c_werror_flag" 21446 || test ! -s conftest.err' 21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21448 (eval $ac_try) 2>&5 21449 ac_status=$? 21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21451 (exit $ac_status); }; } && 21452 { ac_try='test -s conftest$ac_exeext' 21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21454 (eval $ac_try) 2>&5 21455 ac_status=$? 21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21457 (exit $ac_status); }; }; then 21458 eval "$as_ac_var=yes" 21459else 21460 echo "$as_me: failed program was:" >&5 21461sed 's/^/| /' conftest.$ac_ext >&5 21462 21463eval "$as_ac_var=no" 21464fi 21465rm -f conftest.err conftest.$ac_objext \ 21466 conftest$ac_exeext conftest.$ac_ext 21467fi 21468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21470if test `eval echo '${'$as_ac_var'}'` = yes; then 21471 cat >>confdefs.h <<_ACEOF 21472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21473_ACEOF 21474 21475fi 21476done 21477 21478 21479case "$host_cpu" in 21480 i*86) 21481 cpu_ia32=true 21482 cat >>confdefs.h <<\_ACEOF 21483#define FLAC__CPU_IA32 1 21484_ACEOF 21485 21486 21487 21488 ;; 21489 powerpc) 21490 cpu_ppc=true 21491 cat >>confdefs.h <<\_ACEOF 21492#define FLAC__CPU_PPC 1 21493_ACEOF 21494 21495 21496 21497 ;; 21498 sparc) 21499 cpu_sparc=true 21500 cat >>confdefs.h <<\_ACEOF 21501#define FLAC__CPU_SPARC 1 21502_ACEOF 21503 21504 21505 21506 ;; 21507esac 21508 21509 21510if test "x$cpu_ia32" = xtrue; then 21511 FLaC__CPU_IA32_TRUE= 21512 FLaC__CPU_IA32_FALSE='#' 21513else 21514 FLaC__CPU_IA32_TRUE='#' 21515 FLaC__CPU_IA32_FALSE= 21516fi 21517 21518 21519 21520if test "x$cpu_ppc" = xtrue; then 21521 FLaC__CPU_PPC_TRUE= 21522 FLaC__CPU_PPC_FALSE='#' 21523else 21524 FLaC__CPU_PPC_TRUE='#' 21525 FLaC__CPU_PPC_FALSE= 21526fi 21527 21528 21529 21530if test "x$cpu_sparc" = xtrue; then 21531 FLaC__CPU_SPARC_TRUE= 21532 FLaC__CPU_SPARC_FALSE='#' 21533else 21534 FLaC__CPU_SPARC_TRUE='#' 21535 FLaC__CPU_SPARC_FALSE= 21536fi 21537 21538 21539case "$host" in 21540 i386-*-openbsd3.[0-3]) OBJ_FORMAT=aoutb ;; 21541 *-*-cygwin|*mingw*) OBJ_FORMAT=win32 ;; 21542 *-*-darwin*) OBJ_FORMAT=macho ;; 21543 *) OBJ_FORMAT=elf ;; 21544esac 21545 21546 21547# only needed because of ntohl() usage, can get rid of after that's gone: 21548case "$host" in 21549 *-*-cygwin|*mingw*) MINGW_WINSOCK_LIBS=-lwsock32 ;; 21550 *) MINGW_WINSOCK_LIBS= ;; 21551esac 21552 21553 21554case "$host" in 21555 *-pc-linux-gnu) 21556 sys_linux=true 21557 cat >>confdefs.h <<\_ACEOF 21558#define FLAC__SYS_LINUX 1 21559_ACEOF 21560 21561 21562 21563 ;; 21564 *-*-darwin*) 21565 sys_darwin=true 21566 cat >>confdefs.h <<\_ACEOF 21567#define FLAC__SYS_DARWIN 1 21568_ACEOF 21569 21570 21571 21572 ;; 21573esac 21574 21575 21576if test "x$sys_darwin" = xtrue; then 21577 FLaC__SYS_DARWIN_TRUE= 21578 FLaC__SYS_DARWIN_FALSE='#' 21579else 21580 FLaC__SYS_DARWIN_TRUE='#' 21581 FLaC__SYS_DARWIN_FALSE= 21582fi 21583 21584 21585 21586if test "x$sys_linux" = xtrue; then 21587 FLaC__SYS_LINUX_TRUE= 21588 FLaC__SYS_LINUX_FALSE='#' 21589else 21590 FLaC__SYS_LINUX_TRUE='#' 21591 FLaC__SYS_LINUX_FALSE= 21592fi 21593 21594 21595if test "x$cpu_ia32" = xtrue ; then 21596cat >>confdefs.h <<\_ACEOF 21597#define FLAC__ALIGN_MALLOC_DATA 1 21598_ACEOF 21599 21600 21601 21602fi 21603 21604# Check whether --enable-asm-optimizations or --disable-asm-optimizations was given. 21605if test "${enable_asm_optimizations+set}" = set; then 21606 enableval="$enable_asm_optimizations" 21607 asm_opt=no 21608else 21609 asm_opt=yes 21610fi; 21611 21612 21613if test "x$asm_opt" = xno; then 21614 FLaC__NO_ASM_TRUE= 21615 FLaC__NO_ASM_FALSE='#' 21616else 21617 FLaC__NO_ASM_TRUE='#' 21618 FLaC__NO_ASM_FALSE= 21619fi 21620 21621if test "x$asm_opt" = xno ; then 21622cat >>confdefs.h <<\_ACEOF 21623#define FLAC__NO_ASM 1 21624_ACEOF 21625 21626 21627 21628fi 21629 21630# Check whether --enable-debug or --disable-debug was given. 21631if test "${enable_debug+set}" = set; then 21632 enableval="$enable_debug" 21633 case "${enableval}" in 21634 yes) debug=true ;; 21635 no) debug=false ;; 21636 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5 21637echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;} 21638 { (exit 1); exit 1; }; } ;; 21639esac 21640else 21641 debug=false 21642fi; 21643 21644 21645if test "x$debug" = xtrue; then 21646 DEBUG_TRUE= 21647 DEBUG_FALSE='#' 21648else 21649 DEBUG_TRUE='#' 21650 DEBUG_FALSE= 21651fi 21652 21653 21654# Check whether --enable-sse or --disable-sse was given. 21655if test "${enable_sse+set}" = set; then 21656 enableval="$enable_sse" 21657 case "${enableval}" in 21658 yes) sse_os=true ;; 21659 no) sse_os=false ;; 21660 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-sse" >&5 21661echo "$as_me: error: bad value ${enableval} for --enable-sse" >&2;} 21662 { (exit 1); exit 1; }; } ;; 21663esac 21664else 21665 sse_os=false 21666fi; 21667 21668 21669if test "x$sse_os" = xtrue; then 21670 FLaC__SSE_OS_TRUE= 21671 FLaC__SSE_OS_FALSE='#' 21672else 21673 FLaC__SSE_OS_TRUE='#' 21674 FLaC__SSE_OS_FALSE= 21675fi 21676 21677if test "x$sse_os" = xtrue ; then 21678cat >>confdefs.h <<\_ACEOF 21679#define FLAC__SSE_OS 1 21680_ACEOF 21681 21682 21683 21684fi 21685 21686# Check whether --enable-3dnow or --disable-3dnow was given. 21687if test "${enable_3dnow+set}" = set; then 21688 enableval="$enable_3dnow" 21689 case "${enableval}" in 21690 yes) use_3dnow=true ;; 21691 no) use_3dnow=false ;; 21692 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-3dnow" >&5 21693echo "$as_me: error: bad value ${enableval} for --enable-3dnow" >&2;} 21694 { (exit 1); exit 1; }; } ;; 21695esac 21696else 21697 use_3dnow=true 21698fi; 21699 21700 21701if test "x$use_3dnow" = xtrue; then 21702 FLaC__USE_3DNOW_TRUE= 21703 FLaC__USE_3DNOW_FALSE='#' 21704else 21705 FLaC__USE_3DNOW_TRUE='#' 21706 FLaC__USE_3DNOW_FALSE= 21707fi 21708 21709if test "x$use_3dnow" = xtrue ; then 21710cat >>confdefs.h <<\_ACEOF 21711#define FLAC__USE_3DNOW 1 21712_ACEOF 21713 21714 21715 21716fi 21717 21718# Check whether --enable-altivec or --disable-altivec was given. 21719if test "${enable_altivec+set}" = set; then 21720 enableval="$enable_altivec" 21721 case "${enableval}" in 21722 yes) use_altivec=true ;; 21723 no) use_altivec=false ;; 21724 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-altivec" >&5 21725echo "$as_me: error: bad value ${enableval} for --enable-altivec" >&2;} 21726 { (exit 1); exit 1; }; } ;; 21727esac 21728else 21729 use_altivec=true 21730fi; 21731 21732 21733if test "x$use_altivec" = xtrue; then 21734 FLaC__USE_ALTIVEC_TRUE= 21735 FLaC__USE_ALTIVEC_FALSE='#' 21736else 21737 FLaC__USE_ALTIVEC_TRUE='#' 21738 FLaC__USE_ALTIVEC_FALSE= 21739fi 21740 21741if test "x$use_altivec" = xtrue ; then 21742cat >>confdefs.h <<\_ACEOF 21743#define FLAC__USE_ALTIVEC 1 21744_ACEOF 21745 21746 21747 21748fi 21749 21750# Check whether --enable-thorough-tests or --disable-thorough-tests was given. 21751if test "${enable_thorough_tests+set}" = set; then 21752 enableval="$enable_thorough_tests" 21753 case "${enableval}" in 21754 yes) thorough_tests=true ;; 21755 no) thorough_tests=false ;; 21756 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-thorough-tests" >&5 21757echo "$as_me: error: bad value ${enableval} for --enable-thorough-tests" >&2;} 21758 { (exit 1); exit 1; }; } ;; 21759esac 21760else 21761 thorough_tests=true 21762fi; 21763# Check whether --enable-exhaustive-tests or --disable-exhaustive-tests was given. 21764if test "${enable_exhaustive_tests+set}" = set; then 21765 enableval="$enable_exhaustive_tests" 21766 case "${enableval}" in 21767 yes) exhaustive_tests=true ;; 21768 no) exhaustive_tests=false ;; 21769 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-exhaustive-tests" >&5 21770echo "$as_me: error: bad value ${enableval} for --enable-exhaustive-tests" >&2;} 21771 { (exit 1); exit 1; }; } ;; 21772esac 21773else 21774 exhaustive_tests=false 21775fi; 21776if test "x$thorough_tests" = xfalse ; then 21777FLAC__TEST_LEVEL=0 21778elif test "x$exhaustive_tests" = xfalse ; then 21779FLAC__TEST_LEVEL=1 21780else 21781FLAC__TEST_LEVEL=2 21782fi 21783 21784 21785# Check whether --enable-valgrind-testing or --disable-valgrind-testing was given. 21786if test "${enable_valgrind_testing+set}" = set; then 21787 enableval="$enable_valgrind_testing" 21788 case "${enableval}" in 21789 yes) FLAC__TEST_WITH_VALGRIND=yes ;; 21790 no) FLAC__TEST_WITH_VALGRIND=no ;; 21791 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-valgrind-testing" >&5 21792echo "$as_me: error: bad value ${enableval} for --enable-valgrind-testing" >&2;} 21793 { (exit 1); exit 1; }; } ;; 21794esac 21795else 21796 FLAC__TEST_WITH_VALGRIND=no 21797fi; 21798 21799 21800# Check whether --enable-doxygen-docs or --disable-doxygen-docs was given. 21801if test "${enable_doxygen_docs+set}" = set; then 21802 enableval="$enable_doxygen_docs" 21803 case "${enableval}" in 21804 yes) enable_doxygen_docs=true ;; 21805 no) enable_doxygen_docs=false ;; 21806 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-doxygen-docs" >&5 21807echo "$as_me: error: bad value ${enableval} for --enable-doxygen-docs" >&2;} 21808 { (exit 1); exit 1; }; } ;; 21809esac 21810else 21811 enable_doxygen_docs=true 21812fi; 21813if test "x$enable_doxygen_docs" != xfalse ; then 21814 for ac_prog in doxygen 21815do 21816 # Extract the first word of "$ac_prog", so it can be a program name with args. 21817set dummy $ac_prog; ac_word=$2 21818echo "$as_me:$LINENO: checking for $ac_word" >&5 21819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21820if test "${ac_cv_prog_DOXYGEN+set}" = set; then 21821 echo $ECHO_N "(cached) $ECHO_C" >&6 21822else 21823 if test -n "$DOXYGEN"; then 21824 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. 21825else 21826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21827for as_dir in $PATH 21828do 21829 IFS=$as_save_IFS 21830 test -z "$as_dir" && as_dir=. 21831 for ac_exec_ext in '' $ac_executable_extensions; do 21832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21833 ac_cv_prog_DOXYGEN="$ac_prog" 21834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21835 break 2 21836 fi 21837done 21838done 21839 21840fi 21841fi 21842DOXYGEN=$ac_cv_prog_DOXYGEN 21843if test -n "$DOXYGEN"; then 21844 echo "$as_me:$LINENO: result: $DOXYGEN" >&5 21845echo "${ECHO_T}$DOXYGEN" >&6 21846else 21847 echo "$as_me:$LINENO: result: no" >&5 21848echo "${ECHO_T}no" >&6 21849fi 21850 21851 test -n "$DOXYGEN" && break 21852done 21853 21854fi 21855 21856 21857if test -n "$DOXYGEN"; then 21858 FLaC__HAS_DOXYGEN_TRUE= 21859 FLaC__HAS_DOXYGEN_FALSE='#' 21860else 21861 FLaC__HAS_DOXYGEN_TRUE='#' 21862 FLaC__HAS_DOXYGEN_FALSE= 21863fi 21864 21865 21866# Check whether --enable-local-xmms-plugin or --disable-local-xmms-plugin was given. 21867if test "${enable_local_xmms_plugin+set}" = set; then 21868 enableval="$enable_local_xmms_plugin" 21869 case "${enableval}" in 21870 yes) install_xmms_plugin_locally=true ;; 21871 no) install_xmms_plugin_locally=false ;; 21872 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-local-xmms-plugin" >&5 21873echo "$as_me: error: bad value ${enableval} for --enable-local-xmms-plugin" >&2;} 21874 { (exit 1); exit 1; }; } ;; 21875esac 21876else 21877 install_xmms_plugin_locally=false 21878fi; 21879 21880 21881if test "x$install_xmms_plugin_locally" = xtrue; then 21882 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE= 21883 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE='#' 21884else 21885 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE='#' 21886 FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE= 21887fi 21888 21889 21890# Check whether --enable-xmms-plugin or --disable-xmms-plugin was given. 21891if test "${enable_xmms_plugin+set}" = set; then 21892 enableval="$enable_xmms_plugin" 21893 case "${enableval}" in 21894 yes) enable_xmms_plugin=true ;; 21895 no) enable_xmms_plugin=false ;; 21896 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-xmms-plugin" >&5 21897echo "$as_me: error: bad value ${enableval} for --enable-xmms-plugin" >&2;} 21898 { (exit 1); exit 1; }; } ;; 21899esac 21900else 21901 enable_xmms_plugin=true 21902fi; 21903if test "x$enable_xmms_plugin" != xfalse ; then 21904 21905 21906# Check whether --with-xmms-prefix or --without-xmms-prefix was given. 21907if test "${with_xmms_prefix+set}" = set; then 21908 withval="$with_xmms_prefix" 21909 xmms_config_prefix="$withval" 21910else 21911 xmms_config_prefix="" 21912fi; 21913 21914# Check whether --with-xmms-exec-prefix or --without-xmms-exec-prefix was given. 21915if test "${with_xmms_exec_prefix+set}" = set; then 21916 withval="$with_xmms_exec_prefix" 21917 xmms_config_exec_prefix="$withval" 21918else 21919 xmms_config_exec_prefix="" 21920fi; 21921 21922if test x$xmms_config_exec_prefix != x; then 21923 xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix" 21924 if test x${XMMS_CONFIG+set} != xset; then 21925 XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config 21926 fi 21927fi 21928 21929if test x$xmms_config_prefix != x; then 21930 xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix" 21931 if test x${XMMS_CONFIG+set} != xset; then 21932 XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config 21933 fi 21934fi 21935 21936# Extract the first word of "xmms-config", so it can be a program name with args. 21937set dummy xmms-config; ac_word=$2 21938echo "$as_me:$LINENO: checking for $ac_word" >&5 21939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21940if test "${ac_cv_path_XMMS_CONFIG+set}" = set; then 21941 echo $ECHO_N "(cached) $ECHO_C" >&6 21942else 21943 case $XMMS_CONFIG in 21944 [\\/]* | ?:[\\/]*) 21945 ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path. 21946 ;; 21947 *) 21948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21949for as_dir in $PATH 21950do 21951 IFS=$as_save_IFS 21952 test -z "$as_dir" && as_dir=. 21953 for ac_exec_ext in '' $ac_executable_extensions; do 21954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21955 ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21957 break 2 21958 fi 21959done 21960done 21961 21962 test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no" 21963 ;; 21964esac 21965fi 21966XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG 21967 21968if test -n "$XMMS_CONFIG"; then 21969 echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5 21970echo "${ECHO_T}$XMMS_CONFIG" >&6 21971else 21972 echo "$as_me:$LINENO: result: no" >&5 21973echo "${ECHO_T}no" >&6 21974fi 21975 21976min_xmms_version=0.9.5.1 21977 21978if test "$XMMS_CONFIG" = "no"; then 21979 no_xmms=yes 21980else 21981 XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags` 21982 XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs` 21983 XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version` 21984 XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir` 21985 XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir` 21986 XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \ 21987 --visualization-plugin-dir` 21988 XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir` 21989 XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir` 21990 XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir` 21991 XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir` 21992 21993 21994 21995# Determine which version number is greater. Prints 2 to stdout if 21996# the second number is greater, 1 if the first number is greater, 21997# 0 if the numbers are equal. 21998 21999# Written 15 December 1999 by Ben Gertzfield <che@debian.org> 22000# Revised 15 December 1999 by Jim Monty <monty@primenet.com> 22001 22002 for ac_prog in gawk mawk nawk awk 22003do 22004 # Extract the first word of "$ac_prog", so it can be a program name with args. 22005set dummy $ac_prog; ac_word=$2 22006echo "$as_me:$LINENO: checking for $ac_word" >&5 22007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22008if test "${ac_cv_prog_AWK+set}" = set; then 22009 echo $ECHO_N "(cached) $ECHO_C" >&6 22010else 22011 if test -n "$AWK"; then 22012 ac_cv_prog_AWK="$AWK" # Let the user override the test. 22013else 22014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22015for as_dir in $PATH 22016do 22017 IFS=$as_save_IFS 22018 test -z "$as_dir" && as_dir=. 22019 for ac_exec_ext in '' $ac_executable_extensions; do 22020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22021 ac_cv_prog_AWK="$ac_prog" 22022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22023 break 2 22024 fi 22025done 22026done 22027 22028fi 22029fi 22030AWK=$ac_cv_prog_AWK 22031if test -n "$AWK"; then 22032 echo "$as_me:$LINENO: result: $AWK" >&5 22033echo "${ECHO_T}$AWK" >&6 22034else 22035 echo "$as_me:$LINENO: result: no" >&5 22036echo "${ECHO_T}no" >&6 22037fi 22038 22039 test -n "$AWK" && break 22040done 22041 22042 xmms_got_version=` $AWK ' \ 22043BEGIN { \ 22044 print vercmp(ARGV[1], ARGV[2]); \ 22045} \ 22046 \ 22047function vercmp(ver1, ver2, ver1arr, ver2arr, \ 22048 ver1len, ver2len, \ 22049 ver1int, ver2int, len, i, p) { \ 22050 \ 22051 ver1len = split(ver1, ver1arr, /\./); \ 22052 ver2len = split(ver2, ver2arr, /\./); \ 22053 \ 22054 len = ver1len > ver2len ? ver1len : ver2len; \ 22055 \ 22056 for (i = 1; i <= len; i++) { \ 22057 p = 1000 ^ (len - i); \ 22058 ver1int += ver1arr[i] * p; \ 22059 ver2int += ver2arr[i] * p; \ 22060 } \ 22061 \ 22062 if (ver1int < ver2int) \ 22063 return 2; \ 22064 else if (ver1int > ver2int) \ 22065 return 1; \ 22066 else \ 22067 return 0; \ 22068}' $XMMS_VERSION $min_xmms_version` 22069 22070 if test $xmms_got_version -eq 2; then # failure 22071 no_xmms=version 22072 else # success! 22073 : 22074 fi 22075 22076fi 22077 22078echo "$as_me:$LINENO: checking for XMMS - version >= $min_xmms_version" >&5 22079echo $ECHO_N "checking for XMMS - version >= $min_xmms_version... $ECHO_C" >&6 22080 22081if test "x$no_xmms" = x; then 22082 echo "$as_me:$LINENO: result: yes" >&5 22083echo "${ECHO_T}yes" >&6 22084 : 22085else 22086 echo "$as_me:$LINENO: result: no" >&5 22087echo "${ECHO_T}no" >&6 22088 22089 if test "$XMMS_CONFIG" = "no" ; then 22090 echo "*** The xmms-config script installed by XMMS could not be found." 22091 echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in" 22092 echo "*** your path, or set the XMMS_CONFIG environment variable to the" 22093 echo "*** full path to xmms-config." 22094 else 22095 if test "$no_xmms" = "version"; then 22096 echo "*** An old version of XMMS, $XMMS_VERSION, was found." 22097 echo "*** You need a version of XMMS newer than $min_xmms_version." 22098 echo "*** The latest version of XMMS is always available from" 22099 echo "*** http://www.xmms.org/" 22100 echo "***" 22101 22102 echo "*** If you have already installed a sufficiently new version, this error" 22103 echo "*** probably means that the wrong copy of the xmms-config shell script is" 22104 echo "*** being found. The easiest way to fix this is to remove the old version" 22105 echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the" 22106 echo "*** correct copy of xmms-config. (In this case, you will have to" 22107 echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf" 22108 echo "*** so that the correct libraries are found at run-time)" 22109 fi 22110 fi 22111 XMMS_CFLAGS="" 22112 XMMS_LIBS="" 22113 { echo "$as_me:$LINENO: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&5 22114echo "$as_me: WARNING: *** XMMS >= 0.9.5.1 not installed - XMMS support will not be built" >&2;} 22115fi 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127fi 22128 22129 22130if test -n "$XMMS_INPUT_PLUGIN_DIR"; then 22131 FLaC__HAS_XMMS_TRUE= 22132 FLaC__HAS_XMMS_FALSE='#' 22133else 22134 FLaC__HAS_XMMS_TRUE='#' 22135 FLaC__HAS_XMMS_FALSE= 22136fi 22137 22138 22139# Check whether --enable-cpplibs or --disable-cpplibs was given. 22140if test "${enable_cpplibs+set}" = set; then 22141 enableval="$enable_cpplibs" 22142 case "${enableval}" in 22143 yes) disable_cpplibs=false ;; 22144 no) disable_cpplibs=true ;; 22145 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-cpplibs" >&5 22146echo "$as_me: error: bad value ${enableval} for --enable-cpplibs" >&2;} 22147 { (exit 1); exit 1; }; } ;; 22148esac 22149else 22150 disable_cpplibs=false 22151fi; 22152 22153 22154if test "x$disable_cpplibs" != xtrue; then 22155 FLaC__WITH_CPPLIBS_TRUE= 22156 FLaC__WITH_CPPLIBS_FALSE='#' 22157else 22158 FLaC__WITH_CPPLIBS_TRUE='#' 22159 FLaC__WITH_CPPLIBS_FALSE= 22160fi 22161 22162 22163# Check whether --enable-ogg or --disable-ogg was given. 22164if test "${enable_ogg+set}" = set; then 22165 enableval="$enable_ogg" 22166 want_ogg=$enableval 22167else 22168 want_ogg=yes 22169fi; 22170 22171if test "x$want_ogg" != "xno"; then 22172 22173# Check whether --with-ogg or --without-ogg was given. 22174if test "${with_ogg+set}" = set; then 22175 withval="$with_ogg" 22176 ogg_prefix="$withval" 22177else 22178 ogg_prefix="" 22179fi; 22180 22181# Check whether --with-ogg-libraries or --without-ogg-libraries was given. 22182if test "${with_ogg_libraries+set}" = set; then 22183 withval="$with_ogg_libraries" 22184 ogg_libraries="$withval" 22185else 22186 ogg_libraries="" 22187fi; 22188 22189# Check whether --with-ogg-includes or --without-ogg-includes was given. 22190if test "${with_ogg_includes+set}" = set; then 22191 withval="$with_ogg_includes" 22192 ogg_includes="$withval" 22193else 22194 ogg_includes="" 22195fi; 22196# Check whether --enable-oggtest or --disable-oggtest was given. 22197if test "${enable_oggtest+set}" = set; then 22198 enableval="$enable_oggtest" 22199 22200else 22201 enable_oggtest=yes 22202fi; 22203 22204 if test "x$ogg_libraries" != "x" ; then 22205 OGG_LIBS="-L$ogg_libraries" 22206 elif test "x$ogg_prefix" != "x" ; then 22207 OGG_LIBS="-L$ogg_prefix/lib" 22208 elif test "x$prefix" != "xNONE" ; then 22209 OGG_LIBS="-L$prefix/lib" 22210 fi 22211 22212 OGG_LIBS="$OGG_LIBS -logg" 22213 22214 if test "x$ogg_includes" != "x" ; then 22215 OGG_CFLAGS="-I$ogg_includes" 22216 elif test "x$ogg_prefix" != "x" ; then 22217 OGG_CFLAGS="-I$ogg_prefix/include" 22218 elif test "x$prefix" != "xNONE"; then 22219 OGG_CFLAGS="-I$prefix/include" 22220 fi 22221 22222 echo "$as_me:$LINENO: checking for Ogg" >&5 22223echo $ECHO_N "checking for Ogg... $ECHO_C" >&6 22224 no_ogg="" 22225 22226 22227 if test "x$enable_oggtest" = "xyes" ; then 22228 ac_save_CFLAGS="$CFLAGS" 22229 ac_save_LIBS="$LIBS" 22230 CFLAGS="$CFLAGS $OGG_CFLAGS" 22231 LIBS="$LIBS $OGG_LIBS" 22232 rm -f conf.oggtest 22233 if test "$cross_compiling" = yes; then 22234 echo $ac_n "cross compiling; assumed OK... $ac_c" 22235else 22236 cat >conftest.$ac_ext <<_ACEOF 22237/* confdefs.h. */ 22238_ACEOF 22239cat confdefs.h >>conftest.$ac_ext 22240cat >>conftest.$ac_ext <<_ACEOF 22241/* end confdefs.h. */ 22242 22243#include <stdio.h> 22244#include <stdlib.h> 22245#include <string.h> 22246#include <ogg/ogg.h> 22247 22248int main () 22249{ 22250 system("touch conf.oggtest"); 22251 return 0; 22252} 22253 22254 22255_ACEOF 22256rm -f conftest$ac_exeext 22257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22258 (eval $ac_link) 2>&5 22259 ac_status=$? 22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22263 (eval $ac_try) 2>&5 22264 ac_status=$? 22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22266 (exit $ac_status); }; }; then 22267 : 22268else 22269 echo "$as_me: program exited with status $ac_status" >&5 22270echo "$as_me: failed program was:" >&5 22271sed 's/^/| /' conftest.$ac_ext >&5 22272 22273( exit $ac_status ) 22274no_ogg=yes 22275fi 22276rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22277fi 22278 CFLAGS="$ac_save_CFLAGS" 22279 LIBS="$ac_save_LIBS" 22280 fi 22281 22282 if test "x$no_ogg" = "x" ; then 22283 echo "$as_me:$LINENO: result: yes" >&5 22284echo "${ECHO_T}yes" >&6 22285 have_ogg=yes 22286 else 22287 echo "$as_me:$LINENO: result: no" >&5 22288echo "${ECHO_T}no" >&6 22289 if test -f conf.oggtest ; then 22290 : 22291 else 22292 echo "*** Could not run Ogg test program, checking why..." 22293 CFLAGS="$CFLAGS $OGG_CFLAGS" 22294 LIBS="$LIBS $OGG_LIBS" 22295 cat >conftest.$ac_ext <<_ACEOF 22296/* confdefs.h. */ 22297_ACEOF 22298cat confdefs.h >>conftest.$ac_ext 22299cat >>conftest.$ac_ext <<_ACEOF 22300/* end confdefs.h. */ 22301 22302#include <stdio.h> 22303#include <ogg/ogg.h> 22304 22305int 22306main () 22307{ 22308 return 0; 22309 ; 22310 return 0; 22311} 22312_ACEOF 22313rm -f conftest.$ac_objext conftest$ac_exeext 22314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22315 (eval $ac_link) 2>conftest.er1 22316 ac_status=$? 22317 grep -v '^ *+' conftest.er1 >conftest.err 22318 rm -f conftest.er1 22319 cat conftest.err >&5 22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22321 (exit $ac_status); } && 22322 { ac_try='test -z "$ac_c_werror_flag" 22323 || test ! -s conftest.err' 22324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22325 (eval $ac_try) 2>&5 22326 ac_status=$? 22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22328 (exit $ac_status); }; } && 22329 { ac_try='test -s conftest$ac_exeext' 22330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22331 (eval $ac_try) 2>&5 22332 ac_status=$? 22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22334 (exit $ac_status); }; }; then 22335 echo "*** The test program compiled, but did not run. This usually means" 22336 echo "*** that the run-time linker is not finding Ogg or finding the wrong" 22337 echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" 22338 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 22339 echo "*** to the installed location Also, make sure you have run ldconfig if that" 22340 echo "*** is required on your system" 22341 echo "***" 22342 echo "*** If you have an old version installed, it is best to remove it, although" 22343 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 22344else 22345 echo "$as_me: failed program was:" >&5 22346sed 's/^/| /' conftest.$ac_ext >&5 22347 22348 echo "*** The test program failed to compile or link. See the file config.log for the" 22349 echo "*** exact error that occured. This usually means Ogg was incorrectly installed" 22350 echo "*** or that you have moved Ogg since it was installed." 22351fi 22352rm -f conftest.err conftest.$ac_objext \ 22353 conftest$ac_exeext conftest.$ac_ext 22354 CFLAGS="$ac_save_CFLAGS" 22355 LIBS="$ac_save_LIBS" 22356 fi 22357 OGG_CFLAGS="" 22358 OGG_LIBS="" 22359 { echo "$as_me:$LINENO: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&5 22360echo "$as_me: WARNING: *** Ogg development enviroment not installed - Ogg support will not be built" >&2;} 22361 fi 22362 22363 22364 rm -f conf.oggtest 22365 22366fi 22367 22368 22369 22370if test "x$have_ogg" = xyes; then 22371 FLaC__HAS_OGG_TRUE= 22372 FLaC__HAS_OGG_FALSE='#' 22373else 22374 FLaC__HAS_OGG_TRUE='#' 22375 FLaC__HAS_OGG_FALSE= 22376fi 22377 22378if test "x$have_ogg" = xyes ; then 22379cat >>confdefs.h <<\_ACEOF 22380#define FLAC__HAS_OGG 1 22381_ACEOF 22382 22383 22384 22385fi 22386 22387 22388 if test "X$prefix" = "XNONE"; then 22389 acl_final_prefix="$ac_default_prefix" 22390 else 22391 acl_final_prefix="$prefix" 22392 fi 22393 if test "X$exec_prefix" = "XNONE"; then 22394 acl_final_exec_prefix='${prefix}' 22395 else 22396 acl_final_exec_prefix="$exec_prefix" 22397 fi 22398 acl_save_prefix="$prefix" 22399 prefix="$acl_final_prefix" 22400 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 22401 prefix="$acl_save_prefix" 22402 22403 22404# Check whether --with-gnu-ld or --without-gnu-ld was given. 22405if test "${with_gnu_ld+set}" = set; then 22406 withval="$with_gnu_ld" 22407 test "$withval" = no || with_gnu_ld=yes 22408else 22409 with_gnu_ld=no 22410fi; 22411# Prepare PATH_SEPARATOR. 22412# The user is always right. 22413if test "${PATH_SEPARATOR+set}" != set; then 22414 echo "#! /bin/sh" >conf$$.sh 22415 echo "exit 0" >>conf$$.sh 22416 chmod +x conf$$.sh 22417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22418 PATH_SEPARATOR=';' 22419 else 22420 PATH_SEPARATOR=: 22421 fi 22422 rm -f conf$$.sh 22423fi 22424ac_prog=ld 22425if test "$GCC" = yes; then 22426 # Check if gcc -print-prog-name=ld gives a path. 22427 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 22428echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 22429 case $host in 22430 *-*-mingw*) 22431 # gcc leaves a trailing carriage return which upsets mingw 22432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 22433 *) 22434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 22435 esac 22436 case $ac_prog in 22437 # Accept absolute paths. 22438 [\\/]* | [A-Za-z]:[\\/]*) 22439 re_direlt='/[^/][^/]*/\.\./' 22440 # Canonicalize the path of ld 22441 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 22442 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 22443 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 22444 done 22445 test -z "$LD" && LD="$ac_prog" 22446 ;; 22447 "") 22448 # If it fails, then pretend we aren't using GCC. 22449 ac_prog=ld 22450 ;; 22451 *) 22452 # If it is relative, then search for the first ld in PATH. 22453 with_gnu_ld=unknown 22454 ;; 22455 esac 22456elif test "$with_gnu_ld" = yes; then 22457 echo "$as_me:$LINENO: checking for GNU ld" >&5 22458echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 22459else 22460 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 22461echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 22462fi 22463if test "${acl_cv_path_LD+set}" = set; then 22464 echo $ECHO_N "(cached) $ECHO_C" >&6 22465else 22466 if test -z "$LD"; then 22467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 22468 for ac_dir in $PATH; do 22469 test -z "$ac_dir" && ac_dir=. 22470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 22471 acl_cv_path_LD="$ac_dir/$ac_prog" 22472 # Check to see if the program is GNU ld. I'd rather use --version, 22473 # but apparently some GNU ld's only accept -v. 22474 # Break only if it was the GNU/non-GNU ld that we prefer. 22475 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 22476 *GNU* | *'with BFD'*) 22477 test "$with_gnu_ld" != no && break ;; 22478 *) 22479 test "$with_gnu_ld" != yes && break ;; 22480 esac 22481 fi 22482 done 22483 IFS="$ac_save_ifs" 22484else 22485 acl_cv_path_LD="$LD" # Let the user override the test with a path. 22486fi 22487fi 22488 22489LD="$acl_cv_path_LD" 22490if test -n "$LD"; then 22491 echo "$as_me:$LINENO: result: $LD" >&5 22492echo "${ECHO_T}$LD" >&6 22493else 22494 echo "$as_me:$LINENO: result: no" >&5 22495echo "${ECHO_T}no" >&6 22496fi 22497test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 22498echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 22499 { (exit 1); exit 1; }; } 22500echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 22501echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 22502if test "${acl_cv_prog_gnu_ld+set}" = set; then 22503 echo $ECHO_N "(cached) $ECHO_C" >&6 22504else 22505 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 22506case `$LD -v 2>&1 </dev/null` in 22507*GNU* | *'with BFD'*) 22508 acl_cv_prog_gnu_ld=yes ;; 22509*) 22510 acl_cv_prog_gnu_ld=no ;; 22511esac 22512fi 22513echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 22514echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 22515with_gnu_ld=$acl_cv_prog_gnu_ld 22516 22517 22518 22519 22520 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 22521echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 22522if test "${acl_cv_rpath+set}" = set; then 22523 echo $ECHO_N "(cached) $ECHO_C" >&6 22524else 22525 22526 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 22527 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 22528 . ./conftest.sh 22529 rm -f ./conftest.sh 22530 acl_cv_rpath=done 22531 22532fi 22533echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 22534echo "${ECHO_T}$acl_cv_rpath" >&6 22535 wl="$acl_cv_wl" 22536 libext="$acl_cv_libext" 22537 shlibext="$acl_cv_shlibext" 22538 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 22539 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 22540 hardcode_direct="$acl_cv_hardcode_direct" 22541 hardcode_minus_L="$acl_cv_hardcode_minus_L" 22542 # Check whether --enable-rpath or --disable-rpath was given. 22543if test "${enable_rpath+set}" = set; then 22544 enableval="$enable_rpath" 22545 : 22546else 22547 enable_rpath=yes 22548fi; 22549 22550 22551 22552 22553 22554 22555 22556 use_additional=yes 22557 22558 acl_save_prefix="$prefix" 22559 prefix="$acl_final_prefix" 22560 acl_save_exec_prefix="$exec_prefix" 22561 exec_prefix="$acl_final_exec_prefix" 22562 22563 eval additional_includedir=\"$includedir\" 22564 eval additional_libdir=\"$libdir\" 22565 22566 exec_prefix="$acl_save_exec_prefix" 22567 prefix="$acl_save_prefix" 22568 22569 22570# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 22571if test "${with_libiconv_prefix+set}" = set; then 22572 withval="$with_libiconv_prefix" 22573 22574 if test "X$withval" = "Xno"; then 22575 use_additional=no 22576 else 22577 if test "X$withval" = "X"; then 22578 22579 acl_save_prefix="$prefix" 22580 prefix="$acl_final_prefix" 22581 acl_save_exec_prefix="$exec_prefix" 22582 exec_prefix="$acl_final_exec_prefix" 22583 22584 eval additional_includedir=\"$includedir\" 22585 eval additional_libdir=\"$libdir\" 22586 22587 exec_prefix="$acl_save_exec_prefix" 22588 prefix="$acl_save_prefix" 22589 22590 else 22591 additional_includedir="$withval/include" 22592 additional_libdir="$withval/lib" 22593 fi 22594 fi 22595 22596fi; 22597 LIBICONV= 22598 LTLIBICONV= 22599 INCICONV= 22600 rpathdirs= 22601 ltrpathdirs= 22602 names_already_handled= 22603 names_next_round='iconv ' 22604 while test -n "$names_next_round"; do 22605 names_this_round="$names_next_round" 22606 names_next_round= 22607 for name in $names_this_round; do 22608 already_handled= 22609 for n in $names_already_handled; do 22610 if test "$n" = "$name"; then 22611 already_handled=yes 22612 break 22613 fi 22614 done 22615 if test -z "$already_handled"; then 22616 names_already_handled="$names_already_handled $name" 22617 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 22618 eval value=\"\$HAVE_LIB$uppername\" 22619 if test -n "$value"; then 22620 if test "$value" = yes; then 22621 eval value=\"\$LIB$uppername\" 22622 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 22623 eval value=\"\$LTLIB$uppername\" 22624 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 22625 else 22626 : 22627 fi 22628 else 22629 found_dir= 22630 found_la= 22631 found_so= 22632 found_a= 22633 if test $use_additional = yes; then 22634 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 22635 found_dir="$additional_libdir" 22636 found_so="$additional_libdir/lib$name.$shlibext" 22637 if test -f "$additional_libdir/lib$name.la"; then 22638 found_la="$additional_libdir/lib$name.la" 22639 fi 22640 else 22641 if test -f "$additional_libdir/lib$name.$libext"; then 22642 found_dir="$additional_libdir" 22643 found_a="$additional_libdir/lib$name.$libext" 22644 if test -f "$additional_libdir/lib$name.la"; then 22645 found_la="$additional_libdir/lib$name.la" 22646 fi 22647 fi 22648 fi 22649 fi 22650 if test "X$found_dir" = "X"; then 22651 for x in $LDFLAGS $LTLIBICONV; do 22652 22653 acl_save_prefix="$prefix" 22654 prefix="$acl_final_prefix" 22655 acl_save_exec_prefix="$exec_prefix" 22656 exec_prefix="$acl_final_exec_prefix" 22657 eval x=\"$x\" 22658 exec_prefix="$acl_save_exec_prefix" 22659 prefix="$acl_save_prefix" 22660 22661 case "$x" in 22662 -L*) 22663 dir=`echo "X$x" | sed -e 's/^X-L//'` 22664 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 22665 found_dir="$dir" 22666 found_so="$dir/lib$name.$shlibext" 22667 if test -f "$dir/lib$name.la"; then 22668 found_la="$dir/lib$name.la" 22669 fi 22670 else 22671 if test -f "$dir/lib$name.$libext"; then 22672 found_dir="$dir" 22673 found_a="$dir/lib$name.$libext" 22674 if test -f "$dir/lib$name.la"; then 22675 found_la="$dir/lib$name.la" 22676 fi 22677 fi 22678 fi 22679 ;; 22680 esac 22681 if test "X$found_dir" != "X"; then 22682 break 22683 fi 22684 done 22685 fi 22686 if test "X$found_dir" != "X"; then 22687 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 22688 if test "X$found_so" != "X"; then 22689 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 22690 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 22691 else 22692 haveit= 22693 for x in $ltrpathdirs; do 22694 if test "X$x" = "X$found_dir"; then 22695 haveit=yes 22696 break 22697 fi 22698 done 22699 if test -z "$haveit"; then 22700 ltrpathdirs="$ltrpathdirs $found_dir" 22701 fi 22702 if test "$hardcode_direct" = yes; then 22703 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 22704 else 22705 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 22706 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 22707 haveit= 22708 for x in $rpathdirs; do 22709 if test "X$x" = "X$found_dir"; then 22710 haveit=yes 22711 break 22712 fi 22713 done 22714 if test -z "$haveit"; then 22715 rpathdirs="$rpathdirs $found_dir" 22716 fi 22717 else 22718 haveit= 22719 for x in $LDFLAGS $LIBICONV; do 22720 22721 acl_save_prefix="$prefix" 22722 prefix="$acl_final_prefix" 22723 acl_save_exec_prefix="$exec_prefix" 22724 exec_prefix="$acl_final_exec_prefix" 22725 eval x=\"$x\" 22726 exec_prefix="$acl_save_exec_prefix" 22727 prefix="$acl_save_prefix" 22728 22729 if test "X$x" = "X-L$found_dir"; then 22730 haveit=yes 22731 break 22732 fi 22733 done 22734 if test -z "$haveit"; then 22735 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 22736 fi 22737 if test "$hardcode_minus_L" != no; then 22738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 22739 else 22740 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 22741 fi 22742 fi 22743 fi 22744 fi 22745 else 22746 if test "X$found_a" != "X"; then 22747 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 22748 else 22749 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 22750 fi 22751 fi 22752 additional_includedir= 22753 case "$found_dir" in 22754 */lib | */lib/) 22755 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 22756 additional_includedir="$basedir/include" 22757 ;; 22758 esac 22759 if test "X$additional_includedir" != "X"; then 22760 if test "X$additional_includedir" != "X/usr/include"; then 22761 haveit= 22762 if test "X$additional_includedir" = "X/usr/local/include"; then 22763 if test -n "$GCC"; then 22764 case $host_os in 22765 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 22766 esac 22767 fi 22768 fi 22769 if test -z "$haveit"; then 22770 for x in $CPPFLAGS $INCICONV; do 22771 22772 acl_save_prefix="$prefix" 22773 prefix="$acl_final_prefix" 22774 acl_save_exec_prefix="$exec_prefix" 22775 exec_prefix="$acl_final_exec_prefix" 22776 eval x=\"$x\" 22777 exec_prefix="$acl_save_exec_prefix" 22778 prefix="$acl_save_prefix" 22779 22780 if test "X$x" = "X-I$additional_includedir"; then 22781 haveit=yes 22782 break 22783 fi 22784 done 22785 if test -z "$haveit"; then 22786 if test -d "$additional_includedir"; then 22787 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 22788 fi 22789 fi 22790 fi 22791 fi 22792 fi 22793 if test -n "$found_la"; then 22794 save_libdir="$libdir" 22795 case "$found_la" in 22796 */* | *\\*) . "$found_la" ;; 22797 *) . "./$found_la" ;; 22798 esac 22799 libdir="$save_libdir" 22800 for dep in $dependency_libs; do 22801 case "$dep" in 22802 -L*) 22803 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 22804 if test "X$additional_libdir" != "X/usr/lib"; then 22805 haveit= 22806 if test "X$additional_libdir" = "X/usr/local/lib"; then 22807 if test -n "$GCC"; then 22808 case $host_os in 22809 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 22810 esac 22811 fi 22812 fi 22813 if test -z "$haveit"; then 22814 haveit= 22815 for x in $LDFLAGS $LIBICONV; do 22816 22817 acl_save_prefix="$prefix" 22818 prefix="$acl_final_prefix" 22819 acl_save_exec_prefix="$exec_prefix" 22820 exec_prefix="$acl_final_exec_prefix" 22821 eval x=\"$x\" 22822 exec_prefix="$acl_save_exec_prefix" 22823 prefix="$acl_save_prefix" 22824 22825 if test "X$x" = "X-L$additional_libdir"; then 22826 haveit=yes 22827 break 22828 fi 22829 done 22830 if test -z "$haveit"; then 22831 if test -d "$additional_libdir"; then 22832 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 22833 fi 22834 fi 22835 haveit= 22836 for x in $LDFLAGS $LTLIBICONV; do 22837 22838 acl_save_prefix="$prefix" 22839 prefix="$acl_final_prefix" 22840 acl_save_exec_prefix="$exec_prefix" 22841 exec_prefix="$acl_final_exec_prefix" 22842 eval x=\"$x\" 22843 exec_prefix="$acl_save_exec_prefix" 22844 prefix="$acl_save_prefix" 22845 22846 if test "X$x" = "X-L$additional_libdir"; then 22847 haveit=yes 22848 break 22849 fi 22850 done 22851 if test -z "$haveit"; then 22852 if test -d "$additional_libdir"; then 22853 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 22854 fi 22855 fi 22856 fi 22857 fi 22858 ;; 22859 -R*) 22860 dir=`echo "X$dep" | sed -e 's/^X-R//'` 22861 if test "$enable_rpath" != no; then 22862 haveit= 22863 for x in $rpathdirs; do 22864 if test "X$x" = "X$dir"; then 22865 haveit=yes 22866 break 22867 fi 22868 done 22869 if test -z "$haveit"; then 22870 rpathdirs="$rpathdirs $dir" 22871 fi 22872 haveit= 22873 for x in $ltrpathdirs; do 22874 if test "X$x" = "X$dir"; then 22875 haveit=yes 22876 break 22877 fi 22878 done 22879 if test -z "$haveit"; then 22880 ltrpathdirs="$ltrpathdirs $dir" 22881 fi 22882 fi 22883 ;; 22884 -l*) 22885 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 22886 ;; 22887 *.la) 22888 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 22889 ;; 22890 *) 22891 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 22892 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 22893 ;; 22894 esac 22895 done 22896 fi 22897 else 22898 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 22899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 22900 fi 22901 fi 22902 fi 22903 done 22904 done 22905 if test "X$rpathdirs" != "X"; then 22906 if test -n "$hardcode_libdir_separator"; then 22907 alldirs= 22908 for found_dir in $rpathdirs; do 22909 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 22910 done 22911 acl_save_libdir="$libdir" 22912 libdir="$alldirs" 22913 eval flag=\"$hardcode_libdir_flag_spec\" 22914 libdir="$acl_save_libdir" 22915 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 22916 else 22917 for found_dir in $rpathdirs; do 22918 acl_save_libdir="$libdir" 22919 libdir="$found_dir" 22920 eval flag=\"$hardcode_libdir_flag_spec\" 22921 libdir="$acl_save_libdir" 22922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 22923 done 22924 fi 22925 fi 22926 if test "X$ltrpathdirs" != "X"; then 22927 for found_dir in $ltrpathdirs; do 22928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 22929 done 22930 fi 22931 22932 22933 22934 22935 22936 22937 22938 am_save_CPPFLAGS="$CPPFLAGS" 22939 22940 for element in $INCICONV; do 22941 haveit= 22942 for x in $CPPFLAGS; do 22943 22944 acl_save_prefix="$prefix" 22945 prefix="$acl_final_prefix" 22946 acl_save_exec_prefix="$exec_prefix" 22947 exec_prefix="$acl_final_exec_prefix" 22948 eval x=\"$x\" 22949 exec_prefix="$acl_save_exec_prefix" 22950 prefix="$acl_save_prefix" 22951 22952 if test "X$x" = "X$element"; then 22953 haveit=yes 22954 break 22955 fi 22956 done 22957 if test -z "$haveit"; then 22958 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 22959 fi 22960 done 22961 22962 22963 echo "$as_me:$LINENO: checking for iconv" >&5 22964echo $ECHO_N "checking for iconv... $ECHO_C" >&6 22965if test "${am_cv_func_iconv+set}" = set; then 22966 echo $ECHO_N "(cached) $ECHO_C" >&6 22967else 22968 22969 am_cv_func_iconv="no, consider installing GNU libiconv" 22970 am_cv_lib_iconv=no 22971 cat >conftest.$ac_ext <<_ACEOF 22972/* confdefs.h. */ 22973_ACEOF 22974cat confdefs.h >>conftest.$ac_ext 22975cat >>conftest.$ac_ext <<_ACEOF 22976/* end confdefs.h. */ 22977#include <stdlib.h> 22978#include <iconv.h> 22979int 22980main () 22981{ 22982iconv_t cd = iconv_open("",""); 22983 iconv(cd,NULL,NULL,NULL,NULL); 22984 iconv_close(cd); 22985 ; 22986 return 0; 22987} 22988_ACEOF 22989rm -f conftest.$ac_objext conftest$ac_exeext 22990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22991 (eval $ac_link) 2>conftest.er1 22992 ac_status=$? 22993 grep -v '^ *+' conftest.er1 >conftest.err 22994 rm -f conftest.er1 22995 cat conftest.err >&5 22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22997 (exit $ac_status); } && 22998 { ac_try='test -z "$ac_c_werror_flag" 22999 || test ! -s conftest.err' 23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23001 (eval $ac_try) 2>&5 23002 ac_status=$? 23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23004 (exit $ac_status); }; } && 23005 { ac_try='test -s conftest$ac_exeext' 23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23007 (eval $ac_try) 2>&5 23008 ac_status=$? 23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23010 (exit $ac_status); }; }; then 23011 am_cv_func_iconv=yes 23012else 23013 echo "$as_me: failed program was:" >&5 23014sed 's/^/| /' conftest.$ac_ext >&5 23015 23016fi 23017rm -f conftest.err conftest.$ac_objext \ 23018 conftest$ac_exeext conftest.$ac_ext 23019 if test "$am_cv_func_iconv" != yes; then 23020 am_save_LIBS="$LIBS" 23021 LIBS="$LIBS $LIBICONV" 23022 cat >conftest.$ac_ext <<_ACEOF 23023/* confdefs.h. */ 23024_ACEOF 23025cat confdefs.h >>conftest.$ac_ext 23026cat >>conftest.$ac_ext <<_ACEOF 23027/* end confdefs.h. */ 23028#include <stdlib.h> 23029#include <iconv.h> 23030int 23031main () 23032{ 23033iconv_t cd = iconv_open("",""); 23034 iconv(cd,NULL,NULL,NULL,NULL); 23035 iconv_close(cd); 23036 ; 23037 return 0; 23038} 23039_ACEOF 23040rm -f conftest.$ac_objext conftest$ac_exeext 23041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23042 (eval $ac_link) 2>conftest.er1 23043 ac_status=$? 23044 grep -v '^ *+' conftest.er1 >conftest.err 23045 rm -f conftest.er1 23046 cat conftest.err >&5 23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23048 (exit $ac_status); } && 23049 { ac_try='test -z "$ac_c_werror_flag" 23050 || test ! -s conftest.err' 23051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23052 (eval $ac_try) 2>&5 23053 ac_status=$? 23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23055 (exit $ac_status); }; } && 23056 { ac_try='test -s conftest$ac_exeext' 23057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23058 (eval $ac_try) 2>&5 23059 ac_status=$? 23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23061 (exit $ac_status); }; }; then 23062 am_cv_lib_iconv=yes 23063 am_cv_func_iconv=yes 23064else 23065 echo "$as_me: failed program was:" >&5 23066sed 's/^/| /' conftest.$ac_ext >&5 23067 23068fi 23069rm -f conftest.err conftest.$ac_objext \ 23070 conftest$ac_exeext conftest.$ac_ext 23071 LIBS="$am_save_LIBS" 23072 fi 23073 23074fi 23075echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 23076echo "${ECHO_T}$am_cv_func_iconv" >&6 23077 if test "$am_cv_func_iconv" = yes; then 23078 23079cat >>confdefs.h <<\_ACEOF 23080#define HAVE_ICONV 1 23081_ACEOF 23082 23083 fi 23084 if test "$am_cv_lib_iconv" = yes; then 23085 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 23086echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 23087 echo "$as_me:$LINENO: result: $LIBICONV" >&5 23088echo "${ECHO_T}$LIBICONV" >&6 23089 else 23090 CPPFLAGS="$am_save_CPPFLAGS" 23091 LIBICONV= 23092 LTLIBICONV= 23093 fi 23094 23095 23096 23097 if test "$am_cv_func_iconv" = yes; then 23098 echo "$as_me:$LINENO: checking for iconv declaration" >&5 23099echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 23100 if test "${am_cv_proto_iconv+set}" = set; then 23101 echo $ECHO_N "(cached) $ECHO_C" >&6 23102else 23103 23104 cat >conftest.$ac_ext <<_ACEOF 23105/* confdefs.h. */ 23106_ACEOF 23107cat confdefs.h >>conftest.$ac_ext 23108cat >>conftest.$ac_ext <<_ACEOF 23109/* end confdefs.h. */ 23110 23111#include <stdlib.h> 23112#include <iconv.h> 23113extern 23114#ifdef __cplusplus 23115"C" 23116#endif 23117#if defined(__STDC__) || defined(__cplusplus) 23118size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 23119#else 23120size_t iconv(); 23121#endif 23122 23123int 23124main () 23125{ 23126 23127 ; 23128 return 0; 23129} 23130_ACEOF 23131rm -f conftest.$ac_objext 23132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23133 (eval $ac_compile) 2>conftest.er1 23134 ac_status=$? 23135 grep -v '^ *+' conftest.er1 >conftest.err 23136 rm -f conftest.er1 23137 cat conftest.err >&5 23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23139 (exit $ac_status); } && 23140 { ac_try='test -z "$ac_c_werror_flag" 23141 || test ! -s conftest.err' 23142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23143 (eval $ac_try) 2>&5 23144 ac_status=$? 23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23146 (exit $ac_status); }; } && 23147 { ac_try='test -s conftest.$ac_objext' 23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23149 (eval $ac_try) 2>&5 23150 ac_status=$? 23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23152 (exit $ac_status); }; }; then 23153 am_cv_proto_iconv_arg1="" 23154else 23155 echo "$as_me: failed program was:" >&5 23156sed 's/^/| /' conftest.$ac_ext >&5 23157 23158am_cv_proto_iconv_arg1="const" 23159fi 23160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23161 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 23162fi 23163 23164 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 23165 echo "$as_me:$LINENO: result: ${ac_t:- 23166 }$am_cv_proto_iconv" >&5 23167echo "${ECHO_T}${ac_t:- 23168 }$am_cv_proto_iconv" >&6 23169 23170cat >>confdefs.h <<_ACEOF 23171#define ICONV_CONST $am_cv_proto_iconv_arg1 23172_ACEOF 23173 23174 fi 23175 23176 23177 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 23178echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 23179if test "${am_cv_langinfo_codeset+set}" = set; then 23180 echo $ECHO_N "(cached) $ECHO_C" >&6 23181else 23182 cat >conftest.$ac_ext <<_ACEOF 23183/* confdefs.h. */ 23184_ACEOF 23185cat confdefs.h >>conftest.$ac_ext 23186cat >>conftest.$ac_ext <<_ACEOF 23187/* end confdefs.h. */ 23188#include <langinfo.h> 23189int 23190main () 23191{ 23192char* cs = nl_langinfo(CODESET); 23193 ; 23194 return 0; 23195} 23196_ACEOF 23197rm -f conftest.$ac_objext conftest$ac_exeext 23198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23199 (eval $ac_link) 2>conftest.er1 23200 ac_status=$? 23201 grep -v '^ *+' conftest.er1 >conftest.err 23202 rm -f conftest.er1 23203 cat conftest.err >&5 23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23205 (exit $ac_status); } && 23206 { ac_try='test -z "$ac_c_werror_flag" 23207 || test ! -s conftest.err' 23208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23209 (eval $ac_try) 2>&5 23210 ac_status=$? 23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23212 (exit $ac_status); }; } && 23213 { ac_try='test -s conftest$ac_exeext' 23214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23215 (eval $ac_try) 2>&5 23216 ac_status=$? 23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23218 (exit $ac_status); }; }; then 23219 am_cv_langinfo_codeset=yes 23220else 23221 echo "$as_me: failed program was:" >&5 23222sed 's/^/| /' conftest.$ac_ext >&5 23223 23224am_cv_langinfo_codeset=no 23225fi 23226rm -f conftest.err conftest.$ac_objext \ 23227 conftest$ac_exeext conftest.$ac_ext 23228 23229fi 23230echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 23231echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 23232 if test $am_cv_langinfo_codeset = yes; then 23233 23234cat >>confdefs.h <<\_ACEOF 23235#define HAVE_LANGINFO_CODESET 1 23236_ACEOF 23237 23238 fi 23239 23240 23241for ac_prog in docbook-to-man docbook2man 23242do 23243 # Extract the first word of "$ac_prog", so it can be a program name with args. 23244set dummy $ac_prog; ac_word=$2 23245echo "$as_me:$LINENO: checking for $ac_word" >&5 23246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 23247if test "${ac_cv_prog_DOCBOOK_TO_MAN+set}" = set; then 23248 echo $ECHO_N "(cached) $ECHO_C" >&6 23249else 23250 if test -n "$DOCBOOK_TO_MAN"; then 23251 ac_cv_prog_DOCBOOK_TO_MAN="$DOCBOOK_TO_MAN" # Let the user override the test. 23252else 23253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23254for as_dir in $PATH 23255do 23256 IFS=$as_save_IFS 23257 test -z "$as_dir" && as_dir=. 23258 for ac_exec_ext in '' $ac_executable_extensions; do 23259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23260 ac_cv_prog_DOCBOOK_TO_MAN="$ac_prog" 23261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23262 break 2 23263 fi 23264done 23265done 23266 23267fi 23268fi 23269DOCBOOK_TO_MAN=$ac_cv_prog_DOCBOOK_TO_MAN 23270if test -n "$DOCBOOK_TO_MAN"; then 23271 echo "$as_me:$LINENO: result: $DOCBOOK_TO_MAN" >&5 23272echo "${ECHO_T}$DOCBOOK_TO_MAN" >&6 23273else 23274 echo "$as_me:$LINENO: result: no" >&5 23275echo "${ECHO_T}no" >&6 23276fi 23277 23278 test -n "$DOCBOOK_TO_MAN" && break 23279done 23280 23281 23282 23283if test -n "$DOCBOOK_TO_MAN"; then 23284 FLaC__HAS_DOCBOOK_TO_MAN_TRUE= 23285 FLaC__HAS_DOCBOOK_TO_MAN_FALSE='#' 23286else 23287 FLaC__HAS_DOCBOOK_TO_MAN_TRUE='#' 23288 FLaC__HAS_DOCBOOK_TO_MAN_FALSE= 23289fi 23290 23291if test -n "$DOCBOOK_TO_MAN" ; then 23292cat >>confdefs.h <<\_ACEOF 23293#define FLAC__HAS_DOCBOOK_TO_MAN 1 23294_ACEOF 23295 23296 23297 23298fi 23299 23300# only matters for x86 23301for ac_prog in nasm 23302do 23303 # Extract the first word of "$ac_prog", so it can be a program name with args. 23304set dummy $ac_prog; ac_word=$2 23305echo "$as_me:$LINENO: checking for $ac_word" >&5 23306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 23307if test "${ac_cv_prog_NASM+set}" = set; then 23308 echo $ECHO_N "(cached) $ECHO_C" >&6 23309else 23310 if test -n "$NASM"; then 23311 ac_cv_prog_NASM="$NASM" # Let the user override the test. 23312else 23313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23314for as_dir in $PATH 23315do 23316 IFS=$as_save_IFS 23317 test -z "$as_dir" && as_dir=. 23318 for ac_exec_ext in '' $ac_executable_extensions; do 23319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23320 ac_cv_prog_NASM="$ac_prog" 23321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23322 break 2 23323 fi 23324done 23325done 23326 23327fi 23328fi 23329NASM=$ac_cv_prog_NASM 23330if test -n "$NASM"; then 23331 echo "$as_me:$LINENO: result: $NASM" >&5 23332echo "${ECHO_T}$NASM" >&6 23333else 23334 echo "$as_me:$LINENO: result: no" >&5 23335echo "${ECHO_T}no" >&6 23336fi 23337 23338 test -n "$NASM" && break 23339done 23340 23341 23342 23343if test -n "$NASM"; then 23344 FLaC__HAS_NASM_TRUE= 23345 FLaC__HAS_NASM_FALSE='#' 23346else 23347 FLaC__HAS_NASM_TRUE='#' 23348 FLaC__HAS_NASM_FALSE= 23349fi 23350 23351if test -n "$NASM" ; then 23352cat >>confdefs.h <<\_ACEOF 23353#define FLAC__HAS_NASM 1 23354_ACEOF 23355 23356 23357 23358fi 23359 23360# only matters for PowerPC 23361for ac_prog in as 23362do 23363 # Extract the first word of "$ac_prog", so it can be a program name with args. 23364set dummy $ac_prog; ac_word=$2 23365echo "$as_me:$LINENO: checking for $ac_word" >&5 23366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 23367if test "${ac_cv_prog_AS+set}" = set; then 23368 echo $ECHO_N "(cached) $ECHO_C" >&6 23369else 23370 if test -n "$AS"; then 23371 ac_cv_prog_AS="$AS" # Let the user override the test. 23372else 23373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23374for as_dir in $PATH 23375do 23376 IFS=$as_save_IFS 23377 test -z "$as_dir" && as_dir=. 23378 for ac_exec_ext in '' $ac_executable_extensions; do 23379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23380 ac_cv_prog_AS="$ac_prog" 23381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23382 break 2 23383 fi 23384done 23385done 23386 23387fi 23388fi 23389AS=$ac_cv_prog_AS 23390if test -n "$AS"; then 23391 echo "$as_me:$LINENO: result: $AS" >&5 23392echo "${ECHO_T}$AS" >&6 23393else 23394 echo "$as_me:$LINENO: result: no" >&5 23395echo "${ECHO_T}no" >&6 23396fi 23397 23398 test -n "$AS" && break 23399done 23400test -n "$AS" || AS="as" 23401 23402for ac_prog in gas 23403do 23404 # Extract the first word of "$ac_prog", so it can be a program name with args. 23405set dummy $ac_prog; ac_word=$2 23406echo "$as_me:$LINENO: checking for $ac_word" >&5 23407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 23408if test "${ac_cv_prog_GAS+set}" = set; then 23409 echo $ECHO_N "(cached) $ECHO_C" >&6 23410else 23411 if test -n "$GAS"; then 23412 ac_cv_prog_GAS="$GAS" # Let the user override the test. 23413else 23414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23415for as_dir in $PATH 23416do 23417 IFS=$as_save_IFS 23418 test -z "$as_dir" && as_dir=. 23419 for ac_exec_ext in '' $ac_executable_extensions; do 23420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23421 ac_cv_prog_GAS="$ac_prog" 23422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23423 break 2 23424 fi 23425done 23426done 23427 23428fi 23429fi 23430GAS=$ac_cv_prog_GAS 23431if test -n "$GAS"; then 23432 echo "$as_me:$LINENO: result: $GAS" >&5 23433echo "${ECHO_T}$GAS" >&6 23434else 23435 echo "$as_me:$LINENO: result: no" >&5 23436echo "${ECHO_T}no" >&6 23437fi 23438 23439 test -n "$GAS" && break 23440done 23441test -n "$GAS" || GAS="gas" 23442 23443 23444# try -v (apple as) and --version (gas) at the same time 23445test "$AS" = "as" && as --version -v < /dev/null 2>&1 | grep Apple >/dev/null || AS=gas 23446 23447 23448 23449if test "$AS" = "as"; then 23450 FLaC__HAS_AS_TRUE= 23451 FLaC__HAS_AS_FALSE='#' 23452else 23453 FLaC__HAS_AS_TRUE='#' 23454 FLaC__HAS_AS_FALSE= 23455fi 23456 23457 23458 23459if test "$AS" = "gas"; then 23460 FLaC__HAS_GAS_TRUE= 23461 FLaC__HAS_GAS_FALSE='#' 23462else 23463 FLaC__HAS_GAS_TRUE='#' 23464 FLaC__HAS_GAS_FALSE= 23465fi 23466 23467if test "$AS" = "as" ; then 23468cat >>confdefs.h <<\_ACEOF 23469#define FLAC__HAS_AS 1 23470_ACEOF 23471 23472 23473 23474fi 23475if test "$AS" = "gas" ; then 23476# funniest. macro. ever. 23477cat >>confdefs.h <<\_ACEOF 23478#define FLAC__HAS_GAS 1 23479_ACEOF 23480 23481 23482 23483fi 23484 23485CPPFLAGS='-I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include'" $CPPFLAGS" 23486if test "x$debug" = xtrue; then 23487 CPPFLAGS="-DDEBUG $CPPFLAGS" 23488 CFLAGS="-g $CFLAGS" 23489else 23490 CPPFLAGS="-DNDEBUG $CPPFLAGS" 23491 if test "x$GCC" = xyes; then 23492 CPPFLAGS="-DFLaC__INLINE=__inline__ $CPPFLAGS" 23493 CFLAGS="-O3 -funroll-loops -finline-functions -Wall -W -Winline $CFLAGS" 23494 fi 23495fi 23496 23497#@@@ 23498 23499 23500if test "yes" = "no"; then 23501 FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE= 23502 FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE='#' 23503else 23504 FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE='#' 23505 FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE= 23506fi 23507 23508 23509 23510if test "yes" = "no"; then 23511 FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE= 23512 FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE='#' 23513else 23514 FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE='#' 23515 FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE= 23516fi 23517 23518 23519 ac_config_files="$ac_config_files Makefile src/Makefile src/libFLAC/Makefile src/libFLAC/flac.pc src/libFLAC/ia32/Makefile src/libFLAC/ppc/Makefile src/libFLAC/ppc/as/Makefile src/libFLAC/ppc/gas/Makefile src/libFLAC/include/Makefile src/libFLAC/include/private/Makefile src/libFLAC/include/protected/Makefile src/libFLAC++/Makefile src/libFLAC++/flac++.pc src/flac/Makefile src/metaflac/Makefile src/monkeys_audio_utilities/Makefile src/monkeys_audio_utilities/flac_mac/Makefile src/monkeys_audio_utilities/flac_ren/Makefile src/plugin_common/Makefile src/plugin_winamp2/Makefile src/plugin_winamp2/include/Makefile src/plugin_winamp2/include/winamp2/Makefile src/plugin_xmms/Makefile src/share/Makefile src/share/getopt/Makefile src/share/grabbag/Makefile src/share/replaygain_analysis/Makefile src/share/replaygain_synthesis/Makefile src/share/replaygain_synthesis/include/Makefile src/share/replaygain_synthesis/include/private/Makefile src/share/utf8/Makefile src/test_grabbag/Makefile src/test_grabbag/cuesheet/Makefile src/test_grabbag/picture/Makefile src/test_libs_common/Makefile src/test_libFLAC/Makefile src/test_libFLAC++/Makefile src/test_seeking/Makefile src/test_streams/Makefile examples/Makefile examples/c/Makefile examples/c/decode/Makefile examples/c/decode/file/Makefile examples/c/encode/Makefile examples/c/encode/file/Makefile examples/cpp/Makefile examples/cpp/decode/Makefile examples/cpp/decode/file/Makefile examples/cpp/encode/Makefile examples/cpp/encode/file/Makefile include/Makefile include/FLAC/Makefile include/FLAC++/Makefile include/share/Makefile include/share/grabbag/Makefile include/test_libs_common/Makefile doc/Makefile doc/html/Makefile doc/html/images/Makefile doc/html/images/hw/Makefile doc/html/ru/Makefile m4/Makefile man/Makefile test/Makefile test/cuesheets/Makefile test/flac-to-flac-metadata-test-files/Makefile test/metaflac-test-files/Makefile test/pictures/Makefile build/Makefile obj/Makefile obj/debug/Makefile obj/debug/bin/Makefile obj/debug/lib/Makefile obj/release/Makefile obj/release/bin/Makefile obj/release/lib/Makefile" 23520 23521cat >confcache <<\_ACEOF 23522# This file is a shell script that caches the results of configure 23523# tests run on this system so they can be shared between configure 23524# scripts and configure runs, see configure's option --config-cache. 23525# It is not useful on other systems. If it contains results you don't 23526# want to keep, you may remove or edit it. 23527# 23528# config.status only pays attention to the cache file if you give it 23529# the --recheck option to rerun configure. 23530# 23531# `ac_cv_env_foo' variables (set or unset) will be overridden when 23532# loading this file, other *unset* `ac_cv_foo' will be assigned the 23533# following values. 23534 23535_ACEOF 23536 23537# The following way of writing the cache mishandles newlines in values, 23538# but we know of no workaround that is simple, portable, and efficient. 23539# So, don't put newlines in cache variables' values. 23540# Ultrix sh set writes to stderr and can't be redirected directly, 23541# and sets the high bit in the cache file unless we assign to the vars. 23542{ 23543 (set) 2>&1 | 23544 case `(ac_space=' '; set | grep ac_space) 2>&1` in 23545 *ac_space=\ *) 23546 # `set' does not quote correctly, so add quotes (double-quote 23547 # substitution turns \\\\ into \\, and sed turns \\ into \). 23548 sed -n \ 23549 "s/'/'\\\\''/g; 23550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23551 ;; 23552 *) 23553 # `set' quotes correctly as required by POSIX, so do not add quotes. 23554 sed -n \ 23555 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 23556 ;; 23557 esac; 23558} | 23559 sed ' 23560 t clear 23561 : clear 23562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23563 t end 23564 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23565 : end' >>confcache 23566if diff $cache_file confcache >/dev/null 2>&1; then :; else 23567 if test -w $cache_file; then 23568 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 23569 cat confcache >$cache_file 23570 else 23571 echo "not updating unwritable cache $cache_file" 23572 fi 23573fi 23574rm -f confcache 23575 23576test "x$prefix" = xNONE && prefix=$ac_default_prefix 23577# Let make expand exec_prefix. 23578test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23579 23580# VPATH may cause trouble with some makes, so we remove $(srcdir), 23581# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23582# trailing colons and then remove the whole line if VPATH becomes empty 23583# (actually we leave an empty line to preserve line numbers). 23584if test "x$srcdir" = x.; then 23585 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23586s/:*\$(srcdir):*/:/; 23587s/:*\${srcdir}:*/:/; 23588s/:*@srcdir@:*/:/; 23589s/^\([^=]*=[ ]*\):*/\1/; 23590s/:*$//; 23591s/^[^=]*=[ ]*$//; 23592}' 23593fi 23594 23595DEFS=-DHAVE_CONFIG_H 23596 23597ac_libobjs= 23598ac_ltlibobjs= 23599for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23600 # 1. Remove the extension, and $U if already installed. 23601 ac_i=`echo "$ac_i" | 23602 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 23603 # 2. Add them. 23604 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 23605 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 23606done 23607LIBOBJS=$ac_libobjs 23608 23609LTLIBOBJS=$ac_ltlibobjs 23610 23611 23612if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 23613 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 23614Usually this means the macro was only invoked conditionally." >&5 23615echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 23616Usually this means the macro was only invoked conditionally." >&2;} 23617 { (exit 1); exit 1; }; } 23618fi 23619if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23620 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23621Usually this means the macro was only invoked conditionally." >&5 23622echo "$as_me: error: conditional \"AMDEP\" was never defined. 23623Usually this means the macro was only invoked conditionally." >&2;} 23624 { (exit 1); exit 1; }; } 23625fi 23626if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23627 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23628Usually this means the macro was only invoked conditionally." >&5 23629echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23630Usually this means the macro was only invoked conditionally." >&2;} 23631 { (exit 1); exit 1; }; } 23632fi 23633if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23634 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23635Usually this means the macro was only invoked conditionally." >&5 23636echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23637Usually this means the macro was only invoked conditionally." >&2;} 23638 { (exit 1); exit 1; }; } 23639fi 23640if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23641 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23642Usually this means the macro was only invoked conditionally." >&5 23643echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23644Usually this means the macro was only invoked conditionally." >&2;} 23645 { (exit 1); exit 1; }; } 23646fi 23647if test -z "${FLaC__CPU_IA32_TRUE}" && test -z "${FLaC__CPU_IA32_FALSE}"; then 23648 { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_IA32\" was never defined. 23649Usually this means the macro was only invoked conditionally." >&5 23650echo "$as_me: error: conditional \"FLaC__CPU_IA32\" was never defined. 23651Usually this means the macro was only invoked conditionally." >&2;} 23652 { (exit 1); exit 1; }; } 23653fi 23654if test -z "${FLaC__CPU_PPC_TRUE}" && test -z "${FLaC__CPU_PPC_FALSE}"; then 23655 { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_PPC\" was never defined. 23656Usually this means the macro was only invoked conditionally." >&5 23657echo "$as_me: error: conditional \"FLaC__CPU_PPC\" was never defined. 23658Usually this means the macro was only invoked conditionally." >&2;} 23659 { (exit 1); exit 1; }; } 23660fi 23661if test -z "${FLaC__CPU_SPARC_TRUE}" && test -z "${FLaC__CPU_SPARC_FALSE}"; then 23662 { { echo "$as_me:$LINENO: error: conditional \"FLaC__CPU_SPARC\" was never defined. 23663Usually this means the macro was only invoked conditionally." >&5 23664echo "$as_me: error: conditional \"FLaC__CPU_SPARC\" was never defined. 23665Usually this means the macro was only invoked conditionally." >&2;} 23666 { (exit 1); exit 1; }; } 23667fi 23668if test -z "${FLaC__SYS_DARWIN_TRUE}" && test -z "${FLaC__SYS_DARWIN_FALSE}"; then 23669 { { echo "$as_me:$LINENO: error: conditional \"FLaC__SYS_DARWIN\" was never defined. 23670Usually this means the macro was only invoked conditionally." >&5 23671echo "$as_me: error: conditional \"FLaC__SYS_DARWIN\" was never defined. 23672Usually this means the macro was only invoked conditionally." >&2;} 23673 { (exit 1); exit 1; }; } 23674fi 23675if test -z "${FLaC__SYS_LINUX_TRUE}" && test -z "${FLaC__SYS_LINUX_FALSE}"; then 23676 { { echo "$as_me:$LINENO: error: conditional \"FLaC__SYS_LINUX\" was never defined. 23677Usually this means the macro was only invoked conditionally." >&5 23678echo "$as_me: error: conditional \"FLaC__SYS_LINUX\" was never defined. 23679Usually this means the macro was only invoked conditionally." >&2;} 23680 { (exit 1); exit 1; }; } 23681fi 23682if test -z "${FLaC__NO_ASM_TRUE}" && test -z "${FLaC__NO_ASM_FALSE}"; then 23683 { { echo "$as_me:$LINENO: error: conditional \"FLaC__NO_ASM\" was never defined. 23684Usually this means the macro was only invoked conditionally." >&5 23685echo "$as_me: error: conditional \"FLaC__NO_ASM\" was never defined. 23686Usually this means the macro was only invoked conditionally." >&2;} 23687 { (exit 1); exit 1; }; } 23688fi 23689if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 23690 { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined. 23691Usually this means the macro was only invoked conditionally." >&5 23692echo "$as_me: error: conditional \"DEBUG\" was never defined. 23693Usually this means the macro was only invoked conditionally." >&2;} 23694 { (exit 1); exit 1; }; } 23695fi 23696if test -z "${FLaC__SSE_OS_TRUE}" && test -z "${FLaC__SSE_OS_FALSE}"; then 23697 { { echo "$as_me:$LINENO: error: conditional \"FLaC__SSE_OS\" was never defined. 23698Usually this means the macro was only invoked conditionally." >&5 23699echo "$as_me: error: conditional \"FLaC__SSE_OS\" was never defined. 23700Usually this means the macro was only invoked conditionally." >&2;} 23701 { (exit 1); exit 1; }; } 23702fi 23703if test -z "${FLaC__USE_3DNOW_TRUE}" && test -z "${FLaC__USE_3DNOW_FALSE}"; then 23704 { { echo "$as_me:$LINENO: error: conditional \"FLaC__USE_3DNOW\" was never defined. 23705Usually this means the macro was only invoked conditionally." >&5 23706echo "$as_me: error: conditional \"FLaC__USE_3DNOW\" was never defined. 23707Usually this means the macro was only invoked conditionally." >&2;} 23708 { (exit 1); exit 1; }; } 23709fi 23710if test -z "${FLaC__USE_ALTIVEC_TRUE}" && test -z "${FLaC__USE_ALTIVEC_FALSE}"; then 23711 { { echo "$as_me:$LINENO: error: conditional \"FLaC__USE_ALTIVEC\" was never defined. 23712Usually this means the macro was only invoked conditionally." >&5 23713echo "$as_me: error: conditional \"FLaC__USE_ALTIVEC\" was never defined. 23714Usually this means the macro was only invoked conditionally." >&2;} 23715 { (exit 1); exit 1; }; } 23716fi 23717if test -z "${FLaC__HAS_DOXYGEN_TRUE}" && test -z "${FLaC__HAS_DOXYGEN_FALSE}"; then 23718 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_DOXYGEN\" was never defined. 23719Usually this means the macro was only invoked conditionally." >&5 23720echo "$as_me: error: conditional \"FLaC__HAS_DOXYGEN\" was never defined. 23721Usually this means the macro was only invoked conditionally." >&2;} 23722 { (exit 1); exit 1; }; } 23723fi 23724if test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE}" && test -z "${FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE}"; then 23725 { { echo "$as_me:$LINENO: error: conditional \"FLaC__INSTALL_XMMS_PLUGIN_LOCALLY\" was never defined. 23726Usually this means the macro was only invoked conditionally." >&5 23727echo "$as_me: error: conditional \"FLaC__INSTALL_XMMS_PLUGIN_LOCALLY\" was never defined. 23728Usually this means the macro was only invoked conditionally." >&2;} 23729 { (exit 1); exit 1; }; } 23730fi 23731if test -z "${FLaC__HAS_XMMS_TRUE}" && test -z "${FLaC__HAS_XMMS_FALSE}"; then 23732 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_XMMS\" was never defined. 23733Usually this means the macro was only invoked conditionally." >&5 23734echo "$as_me: error: conditional \"FLaC__HAS_XMMS\" was never defined. 23735Usually this means the macro was only invoked conditionally." >&2;} 23736 { (exit 1); exit 1; }; } 23737fi 23738if test -z "${FLaC__WITH_CPPLIBS_TRUE}" && test -z "${FLaC__WITH_CPPLIBS_FALSE}"; then 23739 { { echo "$as_me:$LINENO: error: conditional \"FLaC__WITH_CPPLIBS\" was never defined. 23740Usually this means the macro was only invoked conditionally." >&5 23741echo "$as_me: error: conditional \"FLaC__WITH_CPPLIBS\" was never defined. 23742Usually this means the macro was only invoked conditionally." >&2;} 23743 { (exit 1); exit 1; }; } 23744fi 23745if test -z "${FLaC__HAS_OGG_TRUE}" && test -z "${FLaC__HAS_OGG_FALSE}"; then 23746 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_OGG\" was never defined. 23747Usually this means the macro was only invoked conditionally." >&5 23748echo "$as_me: error: conditional \"FLaC__HAS_OGG\" was never defined. 23749Usually this means the macro was only invoked conditionally." >&2;} 23750 { (exit 1); exit 1; }; } 23751fi 23752if test -z "${FLaC__HAS_DOCBOOK_TO_MAN_TRUE}" && test -z "${FLaC__HAS_DOCBOOK_TO_MAN_FALSE}"; then 23753 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_DOCBOOK_TO_MAN\" was never defined. 23754Usually this means the macro was only invoked conditionally." >&5 23755echo "$as_me: error: conditional \"FLaC__HAS_DOCBOOK_TO_MAN\" was never defined. 23756Usually this means the macro was only invoked conditionally." >&2;} 23757 { (exit 1); exit 1; }; } 23758fi 23759if test -z "${FLaC__HAS_NASM_TRUE}" && test -z "${FLaC__HAS_NASM_FALSE}"; then 23760 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_NASM\" was never defined. 23761Usually this means the macro was only invoked conditionally." >&5 23762echo "$as_me: error: conditional \"FLaC__HAS_NASM\" was never defined. 23763Usually this means the macro was only invoked conditionally." >&2;} 23764 { (exit 1); exit 1; }; } 23765fi 23766if test -z "${FLaC__HAS_AS_TRUE}" && test -z "${FLaC__HAS_AS_FALSE}"; then 23767 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_AS\" was never defined. 23768Usually this means the macro was only invoked conditionally." >&5 23769echo "$as_me: error: conditional \"FLaC__HAS_AS\" was never defined. 23770Usually this means the macro was only invoked conditionally." >&2;} 23771 { (exit 1); exit 1; }; } 23772fi 23773if test -z "${FLaC__HAS_GAS_TRUE}" && test -z "${FLaC__HAS_GAS_FALSE}"; then 23774 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_GAS\" was never defined. 23775Usually this means the macro was only invoked conditionally." >&5 23776echo "$as_me: error: conditional \"FLaC__HAS_GAS\" was never defined. 23777Usually this means the macro was only invoked conditionally." >&2;} 23778 { (exit 1); exit 1; }; } 23779fi 23780if test -z "${FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE}" && test -z "${FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE}"; then 23781 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_AS__TEMPORARILY_DISABLED\" was never defined. 23782Usually this means the macro was only invoked conditionally." >&5 23783echo "$as_me: error: conditional \"FLaC__HAS_AS__TEMPORARILY_DISABLED\" was never defined. 23784Usually this means the macro was only invoked conditionally." >&2;} 23785 { (exit 1); exit 1; }; } 23786fi 23787if test -z "${FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE}" && test -z "${FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE}"; then 23788 { { echo "$as_me:$LINENO: error: conditional \"FLaC__HAS_GAS__TEMPORARILY_DISABLED\" was never defined. 23789Usually this means the macro was only invoked conditionally." >&5 23790echo "$as_me: error: conditional \"FLaC__HAS_GAS__TEMPORARILY_DISABLED\" was never defined. 23791Usually this means the macro was only invoked conditionally." >&2;} 23792 { (exit 1); exit 1; }; } 23793fi 23794 23795: ${CONFIG_STATUS=./config.status} 23796ac_clean_files_save=$ac_clean_files 23797ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23798{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23799echo "$as_me: creating $CONFIG_STATUS" >&6;} 23800cat >$CONFIG_STATUS <<_ACEOF 23801#! $SHELL 23802# Generated by $as_me. 23803# Run this file to recreate the current configuration. 23804# Compiler output produced by configure, useful for debugging 23805# configure, is in config.log if it exists. 23806 23807debug=false 23808ac_cs_recheck=false 23809ac_cs_silent=false 23810SHELL=\${CONFIG_SHELL-$SHELL} 23811_ACEOF 23812 23813cat >>$CONFIG_STATUS <<\_ACEOF 23814## --------------------- ## 23815## M4sh Initialization. ## 23816## --------------------- ## 23817 23818# Be Bourne compatible 23819if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23820 emulate sh 23821 NULLCMD=: 23822 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23823 # is contrary to our usage. Disable this feature. 23824 alias -g '${1+"$@"}'='"$@"' 23825elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23826 set -o posix 23827fi 23828DUALCASE=1; export DUALCASE # for MKS sh 23829 23830# Support unset when possible. 23831if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23832 as_unset=unset 23833else 23834 as_unset=false 23835fi 23836 23837 23838# Work around bugs in pre-3.0 UWIN ksh. 23839$as_unset ENV MAIL MAILPATH 23840PS1='$ ' 23841PS2='> ' 23842PS4='+ ' 23843 23844# NLS nuisances. 23845for as_var in \ 23846 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23847 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23848 LC_TELEPHONE LC_TIME 23849do 23850 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23851 eval $as_var=C; export $as_var 23852 else 23853 $as_unset $as_var 23854 fi 23855done 23856 23857# Required to use basename. 23858if expr a : '\(a\)' >/dev/null 2>&1; then 23859 as_expr=expr 23860else 23861 as_expr=false 23862fi 23863 23864if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 23865 as_basename=basename 23866else 23867 as_basename=false 23868fi 23869 23870 23871# Name of the executable. 23872as_me=`$as_basename "$0" || 23873$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23874 X"$0" : 'X\(//\)$' \| \ 23875 X"$0" : 'X\(/\)$' \| \ 23876 . : '\(.\)' 2>/dev/null || 23877echo X/"$0" | 23878 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 23879 /^X\/\(\/\/\)$/{ s//\1/; q; } 23880 /^X\/\(\/\).*/{ s//\1/; q; } 23881 s/.*/./; q'` 23882 23883 23884# PATH needs CR, and LINENO needs CR and PATH. 23885# Avoid depending upon Character Ranges. 23886as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23887as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23888as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23889as_cr_digits='0123456789' 23890as_cr_alnum=$as_cr_Letters$as_cr_digits 23891 23892# The user is always right. 23893if test "${PATH_SEPARATOR+set}" != set; then 23894 echo "#! /bin/sh" >conf$$.sh 23895 echo "exit 0" >>conf$$.sh 23896 chmod +x conf$$.sh 23897 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23898 PATH_SEPARATOR=';' 23899 else 23900 PATH_SEPARATOR=: 23901 fi 23902 rm -f conf$$.sh 23903fi 23904 23905 23906 as_lineno_1=$LINENO 23907 as_lineno_2=$LINENO 23908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23909 test "x$as_lineno_1" != "x$as_lineno_2" && 23910 test "x$as_lineno_3" = "x$as_lineno_2" || { 23911 # Find who we are. Look in the path if we contain no path at all 23912 # relative or not. 23913 case $0 in 23914 *[\\/]* ) as_myself=$0 ;; 23915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23916for as_dir in $PATH 23917do 23918 IFS=$as_save_IFS 23919 test -z "$as_dir" && as_dir=. 23920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23921done 23922 23923 ;; 23924 esac 23925 # We did not find ourselves, most probably we were run as `sh COMMAND' 23926 # in which case we are not to be found in the path. 23927 if test "x$as_myself" = x; then 23928 as_myself=$0 23929 fi 23930 if test ! -f "$as_myself"; then 23931 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 23932echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 23933 { (exit 1); exit 1; }; } 23934 fi 23935 case $CONFIG_SHELL in 23936 '') 23937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23938for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 23939do 23940 IFS=$as_save_IFS 23941 test -z "$as_dir" && as_dir=. 23942 for as_base in sh bash ksh sh5; do 23943 case $as_dir in 23944 /*) 23945 if ("$as_dir/$as_base" -c ' 23946 as_lineno_1=$LINENO 23947 as_lineno_2=$LINENO 23948 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23949 test "x$as_lineno_1" != "x$as_lineno_2" && 23950 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 23951 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 23952 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 23953 CONFIG_SHELL=$as_dir/$as_base 23954 export CONFIG_SHELL 23955 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 23956 fi;; 23957 esac 23958 done 23959done 23960;; 23961 esac 23962 23963 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23964 # uniformly replaced by the line number. The first 'sed' inserts a 23965 # line-number line before each line; the second 'sed' does the real 23966 # work. The second script uses 'N' to pair each line-number line 23967 # with the numbered line, and appends trailing '-' during 23968 # substitution so that $LINENO is not a special case at line end. 23969 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23970 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 23971 sed '=' <$as_myself | 23972 sed ' 23973 N 23974 s,$,-, 23975 : loop 23976 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 23977 t loop 23978 s,-$,, 23979 s,^['$as_cr_digits']*\n,, 23980 ' >$as_me.lineno && 23981 chmod +x $as_me.lineno || 23982 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 23983echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 23984 { (exit 1); exit 1; }; } 23985 23986 # Don't try to exec as it changes $[0], causing all sort of problems 23987 # (the dirname of $[0] is not the place where we might find the 23988 # original and so on. Autoconf is especially sensible to this). 23989 . ./$as_me.lineno 23990 # Exit status is that of the last command. 23991 exit 23992} 23993 23994 23995case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 23996 *c*,-n*) ECHO_N= ECHO_C=' 23997' ECHO_T=' ' ;; 23998 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 23999 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 24000esac 24001 24002if expr a : '\(a\)' >/dev/null 2>&1; then 24003 as_expr=expr 24004else 24005 as_expr=false 24006fi 24007 24008rm -f conf$$ conf$$.exe conf$$.file 24009echo >conf$$.file 24010if ln -s conf$$.file conf$$ 2>/dev/null; then 24011 # We could just check for DJGPP; but this test a) works b) is more generic 24012 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 24013 if test -f conf$$.exe; then 24014 # Don't use ln at all; we don't have any links 24015 as_ln_s='cp -p' 24016 else 24017 as_ln_s='ln -s' 24018 fi 24019elif ln conf$$.file conf$$ 2>/dev/null; then 24020 as_ln_s=ln 24021else 24022 as_ln_s='cp -p' 24023fi 24024rm -f conf$$ conf$$.exe conf$$.file 24025 24026if mkdir -p . 2>/dev/null; then 24027 as_mkdir_p=: 24028else 24029 test -d ./-p && rmdir ./-p 24030 as_mkdir_p=false 24031fi 24032 24033as_executable_p="test -f" 24034 24035# Sed expression to map a string onto a valid CPP name. 24036as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24037 24038# Sed expression to map a string onto a valid variable name. 24039as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24040 24041 24042# IFS 24043# We need space, tab and new line, in precisely that order. 24044as_nl=' 24045' 24046IFS=" $as_nl" 24047 24048# CDPATH. 24049$as_unset CDPATH 24050 24051exec 6>&1 24052 24053# Open the log real soon, to keep \$[0] and so on meaningful, and to 24054# report actual input values of CONFIG_FILES etc. instead of their 24055# values after options handling. Logging --version etc. is OK. 24056exec 5>>config.log 24057{ 24058 echo 24059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24060## Running $as_me. ## 24061_ASBOX 24062} >&5 24063cat >&5 <<_CSEOF 24064 24065This file was extended by $as_me, which was 24066generated by GNU Autoconf 2.59. Invocation command line was 24067 24068 CONFIG_FILES = $CONFIG_FILES 24069 CONFIG_HEADERS = $CONFIG_HEADERS 24070 CONFIG_LINKS = $CONFIG_LINKS 24071 CONFIG_COMMANDS = $CONFIG_COMMANDS 24072 $ $0 $@ 24073 24074_CSEOF 24075echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 24076echo >&5 24077_ACEOF 24078 24079# Files that config.status was made for. 24080if test -n "$ac_config_files"; then 24081 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 24082fi 24083 24084if test -n "$ac_config_headers"; then 24085 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 24086fi 24087 24088if test -n "$ac_config_links"; then 24089 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 24090fi 24091 24092if test -n "$ac_config_commands"; then 24093 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 24094fi 24095 24096cat >>$CONFIG_STATUS <<\_ACEOF 24097 24098ac_cs_usage="\ 24099\`$as_me' instantiates files from templates according to the 24100current configuration. 24101 24102Usage: $0 [OPTIONS] [FILE]... 24103 24104 -h, --help print this help, then exit 24105 -V, --version print version number, then exit 24106 -q, --quiet do not print progress messages 24107 -d, --debug don't remove temporary files 24108 --recheck update $as_me by reconfiguring in the same conditions 24109 --file=FILE[:TEMPLATE] 24110 instantiate the configuration file FILE 24111 --header=FILE[:TEMPLATE] 24112 instantiate the configuration header FILE 24113 24114Configuration files: 24115$config_files 24116 24117Configuration headers: 24118$config_headers 24119 24120Configuration commands: 24121$config_commands 24122 24123Report bugs to <bug-autoconf@gnu.org>." 24124_ACEOF 24125 24126cat >>$CONFIG_STATUS <<_ACEOF 24127ac_cs_version="\\ 24128config.status 24129configured by $0, generated by GNU Autoconf 2.59, 24130 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 24131 24132Copyright (C) 2003 Free Software Foundation, Inc. 24133This config.status script is free software; the Free Software Foundation 24134gives unlimited permission to copy, distribute and modify it." 24135srcdir=$srcdir 24136INSTALL="$INSTALL" 24137_ACEOF 24138 24139cat >>$CONFIG_STATUS <<\_ACEOF 24140# If no file are specified by the user, then we need to provide default 24141# value. By we need to know if files were specified by the user. 24142ac_need_defaults=: 24143while test $# != 0 24144do 24145 case $1 in 24146 --*=*) 24147 ac_option=`expr "x$1" : 'x\([^=]*\)='` 24148 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 24149 ac_shift=: 24150 ;; 24151 -*) 24152 ac_option=$1 24153 ac_optarg=$2 24154 ac_shift=shift 24155 ;; 24156 *) # This is not an option, so the user has probably given explicit 24157 # arguments. 24158 ac_option=$1 24159 ac_need_defaults=false;; 24160 esac 24161 24162 case $ac_option in 24163 # Handling of the options. 24164_ACEOF 24165cat >>$CONFIG_STATUS <<\_ACEOF 24166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24167 ac_cs_recheck=: ;; 24168 --version | --vers* | -V ) 24169 echo "$ac_cs_version"; exit 0 ;; 24170 --he | --h) 24171 # Conflict between --help and --header 24172 { { echo "$as_me:$LINENO: error: ambiguous option: $1 24173Try \`$0 --help' for more information." >&5 24174echo "$as_me: error: ambiguous option: $1 24175Try \`$0 --help' for more information." >&2;} 24176 { (exit 1); exit 1; }; };; 24177 --help | --hel | -h ) 24178 echo "$ac_cs_usage"; exit 0 ;; 24179 --debug | --d* | -d ) 24180 debug=: ;; 24181 --file | --fil | --fi | --f ) 24182 $ac_shift 24183 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 24184 ac_need_defaults=false;; 24185 --header | --heade | --head | --hea ) 24186 $ac_shift 24187 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 24188 ac_need_defaults=false;; 24189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24190 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24191 ac_cs_silent=: ;; 24192 24193 # This is an error. 24194 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 24195Try \`$0 --help' for more information." >&5 24196echo "$as_me: error: unrecognized option: $1 24197Try \`$0 --help' for more information." >&2;} 24198 { (exit 1); exit 1; }; } ;; 24199 24200 *) ac_config_targets="$ac_config_targets $1" ;; 24201 24202 esac 24203 shift 24204done 24205 24206ac_configure_extra_args= 24207 24208if $ac_cs_silent; then 24209 exec 6>/dev/null 24210 ac_configure_extra_args="$ac_configure_extra_args --silent" 24211fi 24212 24213_ACEOF 24214cat >>$CONFIG_STATUS <<_ACEOF 24215if \$ac_cs_recheck; then 24216 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 24217 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24218fi 24219 24220_ACEOF 24221 24222cat >>$CONFIG_STATUS <<_ACEOF 24223# 24224# INIT-COMMANDS section. 24225# 24226 24227AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24228 24229_ACEOF 24230 24231 24232 24233cat >>$CONFIG_STATUS <<\_ACEOF 24234for ac_config_target in $ac_config_targets 24235do 24236 case "$ac_config_target" in 24237 # Handling of arguments. 24238 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24239 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24240 "src/libFLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/Makefile" ;; 24241 "src/libFLAC/flac.pc" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/flac.pc" ;; 24242 "src/libFLAC/ia32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ia32/Makefile" ;; 24243 "src/libFLAC/ppc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/Makefile" ;; 24244 "src/libFLAC/ppc/as/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/as/Makefile" ;; 24245 "src/libFLAC/ppc/gas/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/ppc/gas/Makefile" ;; 24246 "src/libFLAC/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/Makefile" ;; 24247 "src/libFLAC/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/private/Makefile" ;; 24248 "src/libFLAC/include/protected/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC/include/protected/Makefile" ;; 24249 "src/libFLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC++/Makefile" ;; 24250 "src/libFLAC++/flac++.pc" ) CONFIG_FILES="$CONFIG_FILES src/libFLAC++/flac++.pc" ;; 24251 "src/flac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/flac/Makefile" ;; 24252 "src/metaflac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/metaflac/Makefile" ;; 24253 "src/monkeys_audio_utilities/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/Makefile" ;; 24254 "src/monkeys_audio_utilities/flac_mac/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/flac_mac/Makefile" ;; 24255 "src/monkeys_audio_utilities/flac_ren/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/monkeys_audio_utilities/flac_ren/Makefile" ;; 24256 "src/plugin_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_common/Makefile" ;; 24257 "src/plugin_winamp2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/Makefile" ;; 24258 "src/plugin_winamp2/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/include/Makefile" ;; 24259 "src/plugin_winamp2/include/winamp2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_winamp2/include/winamp2/Makefile" ;; 24260 "src/plugin_xmms/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugin_xmms/Makefile" ;; 24261 "src/share/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/Makefile" ;; 24262 "src/share/getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/getopt/Makefile" ;; 24263 "src/share/grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/grabbag/Makefile" ;; 24264 "src/share/replaygain_analysis/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_analysis/Makefile" ;; 24265 "src/share/replaygain_synthesis/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/Makefile" ;; 24266 "src/share/replaygain_synthesis/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/include/Makefile" ;; 24267 "src/share/replaygain_synthesis/include/private/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/replaygain_synthesis/include/private/Makefile" ;; 24268 "src/share/utf8/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/share/utf8/Makefile" ;; 24269 "src/test_grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/Makefile" ;; 24270 "src/test_grabbag/cuesheet/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/cuesheet/Makefile" ;; 24271 "src/test_grabbag/picture/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_grabbag/picture/Makefile" ;; 24272 "src/test_libs_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libs_common/Makefile" ;; 24273 "src/test_libFLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libFLAC/Makefile" ;; 24274 "src/test_libFLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_libFLAC++/Makefile" ;; 24275 "src/test_seeking/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_seeking/Makefile" ;; 24276 "src/test_streams/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test_streams/Makefile" ;; 24277 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 24278 "examples/c/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/Makefile" ;; 24279 "examples/c/decode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/decode/Makefile" ;; 24280 "examples/c/decode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/decode/file/Makefile" ;; 24281 "examples/c/encode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/encode/Makefile" ;; 24282 "examples/c/encode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c/encode/file/Makefile" ;; 24283 "examples/cpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/Makefile" ;; 24284 "examples/cpp/decode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/Makefile" ;; 24285 "examples/cpp/decode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/decode/file/Makefile" ;; 24286 "examples/cpp/encode/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/Makefile" ;; 24287 "examples/cpp/encode/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/cpp/encode/file/Makefile" ;; 24288 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 24289 "include/FLAC/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/FLAC/Makefile" ;; 24290 "include/FLAC++/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/FLAC++/Makefile" ;; 24291 "include/share/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/share/Makefile" ;; 24292 "include/share/grabbag/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/share/grabbag/Makefile" ;; 24293 "include/test_libs_common/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/test_libs_common/Makefile" ;; 24294 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 24295 "doc/html/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; 24296 "doc/html/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/images/Makefile" ;; 24297 "doc/html/images/hw/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/images/hw/Makefile" ;; 24298 "doc/html/ru/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/html/ru/Makefile" ;; 24299 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 24300 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 24301 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 24302 "test/cuesheets/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/cuesheets/Makefile" ;; 24303 "test/flac-to-flac-metadata-test-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/flac-to-flac-metadata-test-files/Makefile" ;; 24304 "test/metaflac-test-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/metaflac-test-files/Makefile" ;; 24305 "test/pictures/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/pictures/Makefile" ;; 24306 "build/Makefile" ) CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 24307 "obj/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/Makefile" ;; 24308 "obj/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/Makefile" ;; 24309 "obj/debug/bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/bin/Makefile" ;; 24310 "obj/debug/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/debug/lib/Makefile" ;; 24311 "obj/release/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/Makefile" ;; 24312 "obj/release/bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/bin/Makefile" ;; 24313 "obj/release/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES obj/release/lib/Makefile" ;; 24314 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24315 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24316 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24317echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24318 { (exit 1); exit 1; }; };; 24319 esac 24320done 24321 24322# If the user did not use the arguments to specify the items to instantiate, 24323# then the envvar interface is used. Set only those that are not. 24324# We use the long form for the default assignment because of an extremely 24325# bizarre bug on SunOS 4.1.3. 24326if $ac_need_defaults; then 24327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24330fi 24331 24332# Have a temporary directory for convenience. Make it in the build tree 24333# simply because there is no reason to put it here, and in addition, 24334# creating and moving files from /tmp can sometimes cause problems. 24335# Create a temporary directory, and hook for its removal unless debugging. 24336$debug || 24337{ 24338 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 24339 trap '{ (exit 1); exit 1; }' 1 2 13 15 24340} 24341 24342# Create a (secure) tmp directory for tmp files. 24343 24344{ 24345 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 24346 test -n "$tmp" && test -d "$tmp" 24347} || 24348{ 24349 tmp=./confstat$$-$RANDOM 24350 (umask 077 && mkdir $tmp) 24351} || 24352{ 24353 echo "$me: cannot create a temporary directory in ." >&2 24354 { (exit 1); exit 1; } 24355} 24356 24357_ACEOF 24358 24359cat >>$CONFIG_STATUS <<_ACEOF 24360 24361# 24362# CONFIG_FILES section. 24363# 24364 24365# No need to generate the scripts if there are no CONFIG_FILES. 24366# This happens for instance when ./config.status config.h 24367if test -n "\$CONFIG_FILES"; then 24368 # Protect against being on the right side of a sed subst in config.status. 24369 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 24370 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 24371s,@SHELL@,$SHELL,;t t 24372s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 24373s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 24374s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 24375s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 24376s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 24377s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 24378s,@exec_prefix@,$exec_prefix,;t t 24379s,@prefix@,$prefix,;t t 24380s,@program_transform_name@,$program_transform_name,;t t 24381s,@bindir@,$bindir,;t t 24382s,@sbindir@,$sbindir,;t t 24383s,@libexecdir@,$libexecdir,;t t 24384s,@datadir@,$datadir,;t t 24385s,@sysconfdir@,$sysconfdir,;t t 24386s,@sharedstatedir@,$sharedstatedir,;t t 24387s,@localstatedir@,$localstatedir,;t t 24388s,@libdir@,$libdir,;t t 24389s,@includedir@,$includedir,;t t 24390s,@oldincludedir@,$oldincludedir,;t t 24391s,@infodir@,$infodir,;t t 24392s,@mandir@,$mandir,;t t 24393s,@build_alias@,$build_alias,;t t 24394s,@host_alias@,$host_alias,;t t 24395s,@target_alias@,$target_alias,;t t 24396s,@DEFS@,$DEFS,;t t 24397s,@ECHO_C@,$ECHO_C,;t t 24398s,@ECHO_N@,$ECHO_N,;t t 24399s,@ECHO_T@,$ECHO_T,;t t 24400s,@LIBS@,$LIBS,;t t 24401s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 24402s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 24403s,@INSTALL_DATA@,$INSTALL_DATA,;t t 24404s,@CYGPATH_W@,$CYGPATH_W,;t t 24405s,@PACKAGE@,$PACKAGE,;t t 24406s,@VERSION@,$VERSION,;t t 24407s,@ACLOCAL@,$ACLOCAL,;t t 24408s,@AUTOCONF@,$AUTOCONF,;t t 24409s,@AUTOMAKE@,$AUTOMAKE,;t t 24410s,@AUTOHEADER@,$AUTOHEADER,;t t 24411s,@MAKEINFO@,$MAKEINFO,;t t 24412s,@AMTAR@,$AMTAR,;t t 24413s,@install_sh@,$install_sh,;t t 24414s,@STRIP@,$STRIP,;t t 24415s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 24416s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 24417s,@AWK@,$AWK,;t t 24418s,@SET_MAKE@,$SET_MAKE,;t t 24419s,@am__leading_dot@,$am__leading_dot,;t t 24420s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 24421s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 24422s,@MAINT@,$MAINT,;t t 24423s,@build@,$build,;t t 24424s,@build_cpu@,$build_cpu,;t t 24425s,@build_vendor@,$build_vendor,;t t 24426s,@build_os@,$build_os,;t t 24427s,@host@,$host,;t t 24428s,@host_cpu@,$host_cpu,;t t 24429s,@host_vendor@,$host_vendor,;t t 24430s,@host_os@,$host_os,;t t 24431s,@CC@,$CC,;t t 24432s,@CFLAGS@,$CFLAGS,;t t 24433s,@LDFLAGS@,$LDFLAGS,;t t 24434s,@CPPFLAGS@,$CPPFLAGS,;t t 24435s,@ac_ct_CC@,$ac_ct_CC,;t t 24436s,@EXEEXT@,$EXEEXT,;t t 24437s,@OBJEXT@,$OBJEXT,;t t 24438s,@DEPDIR@,$DEPDIR,;t t 24439s,@am__include@,$am__include,;t t 24440s,@am__quote@,$am__quote,;t t 24441s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 24442s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 24443s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 24444s,@CCDEPMODE@,$CCDEPMODE,;t t 24445s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 24446s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 24447s,@EGREP@,$EGREP,;t t 24448s,@LN_S@,$LN_S,;t t 24449s,@ECHO@,$ECHO,;t t 24450s,@AR@,$AR,;t t 24451s,@ac_ct_AR@,$ac_ct_AR,;t t 24452s,@RANLIB@,$RANLIB,;t t 24453s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 24454s,@CPP@,$CPP,;t t 24455s,@CXX@,$CXX,;t t 24456s,@CXXFLAGS@,$CXXFLAGS,;t t 24457s,@ac_ct_CXX@,$ac_ct_CXX,;t t 24458s,@CXXDEPMODE@,$CXXDEPMODE,;t t 24459s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 24460s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 24461s,@CXXCPP@,$CXXCPP,;t t 24462s,@F77@,$F77,;t t 24463s,@FFLAGS@,$FFLAGS,;t t 24464s,@ac_ct_F77@,$ac_ct_F77,;t t 24465s,@LIBTOOL@,$LIBTOOL,;t t 24466s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t 24467s,@CCAS@,$CCAS,;t t 24468s,@CCASFLAGS@,$CCASFLAGS,;t t 24469s,@FLaC__CPU_IA32_TRUE@,$FLaC__CPU_IA32_TRUE,;t t 24470s,@FLaC__CPU_IA32_FALSE@,$FLaC__CPU_IA32_FALSE,;t t 24471s,@FLaC__CPU_PPC_TRUE@,$FLaC__CPU_PPC_TRUE,;t t 24472s,@FLaC__CPU_PPC_FALSE@,$FLaC__CPU_PPC_FALSE,;t t 24473s,@FLaC__CPU_SPARC_TRUE@,$FLaC__CPU_SPARC_TRUE,;t t 24474s,@FLaC__CPU_SPARC_FALSE@,$FLaC__CPU_SPARC_FALSE,;t t 24475s,@OBJ_FORMAT@,$OBJ_FORMAT,;t t 24476s,@MINGW_WINSOCK_LIBS@,$MINGW_WINSOCK_LIBS,;t t 24477s,@FLaC__SYS_DARWIN_TRUE@,$FLaC__SYS_DARWIN_TRUE,;t t 24478s,@FLaC__SYS_DARWIN_FALSE@,$FLaC__SYS_DARWIN_FALSE,;t t 24479s,@FLaC__SYS_LINUX_TRUE@,$FLaC__SYS_LINUX_TRUE,;t t 24480s,@FLaC__SYS_LINUX_FALSE@,$FLaC__SYS_LINUX_FALSE,;t t 24481s,@FLaC__NO_ASM_TRUE@,$FLaC__NO_ASM_TRUE,;t t 24482s,@FLaC__NO_ASM_FALSE@,$FLaC__NO_ASM_FALSE,;t t 24483s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t 24484s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t 24485s,@FLaC__SSE_OS_TRUE@,$FLaC__SSE_OS_TRUE,;t t 24486s,@FLaC__SSE_OS_FALSE@,$FLaC__SSE_OS_FALSE,;t t 24487s,@FLaC__USE_3DNOW_TRUE@,$FLaC__USE_3DNOW_TRUE,;t t 24488s,@FLaC__USE_3DNOW_FALSE@,$FLaC__USE_3DNOW_FALSE,;t t 24489s,@FLaC__USE_ALTIVEC_TRUE@,$FLaC__USE_ALTIVEC_TRUE,;t t 24490s,@FLaC__USE_ALTIVEC_FALSE@,$FLaC__USE_ALTIVEC_FALSE,;t t 24491s,@FLAC__TEST_LEVEL@,$FLAC__TEST_LEVEL,;t t 24492s,@FLAC__TEST_WITH_VALGRIND@,$FLAC__TEST_WITH_VALGRIND,;t t 24493s,@DOXYGEN@,$DOXYGEN,;t t 24494s,@FLaC__HAS_DOXYGEN_TRUE@,$FLaC__HAS_DOXYGEN_TRUE,;t t 24495s,@FLaC__HAS_DOXYGEN_FALSE@,$FLaC__HAS_DOXYGEN_FALSE,;t t 24496s,@FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE@,$FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_TRUE,;t t 24497s,@FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE@,$FLaC__INSTALL_XMMS_PLUGIN_LOCALLY_FALSE,;t t 24498s,@XMMS_CONFIG@,$XMMS_CONFIG,;t t 24499s,@XMMS_CFLAGS@,$XMMS_CFLAGS,;t t 24500s,@XMMS_LIBS@,$XMMS_LIBS,;t t 24501s,@XMMS_VERSION@,$XMMS_VERSION,;t t 24502s,@XMMS_DATA_DIR@,$XMMS_DATA_DIR,;t t 24503s,@XMMS_PLUGIN_DIR@,$XMMS_PLUGIN_DIR,;t t 24504s,@XMMS_VISUALIZATION_PLUGIN_DIR@,$XMMS_VISUALIZATION_PLUGIN_DIR,;t t 24505s,@XMMS_INPUT_PLUGIN_DIR@,$XMMS_INPUT_PLUGIN_DIR,;t t 24506s,@XMMS_OUTPUT_PLUGIN_DIR@,$XMMS_OUTPUT_PLUGIN_DIR,;t t 24507s,@XMMS_GENERAL_PLUGIN_DIR@,$XMMS_GENERAL_PLUGIN_DIR,;t t 24508s,@XMMS_EFFECT_PLUGIN_DIR@,$XMMS_EFFECT_PLUGIN_DIR,;t t 24509s,@FLaC__HAS_XMMS_TRUE@,$FLaC__HAS_XMMS_TRUE,;t t 24510s,@FLaC__HAS_XMMS_FALSE@,$FLaC__HAS_XMMS_FALSE,;t t 24511s,@FLaC__WITH_CPPLIBS_TRUE@,$FLaC__WITH_CPPLIBS_TRUE,;t t 24512s,@FLaC__WITH_CPPLIBS_FALSE@,$FLaC__WITH_CPPLIBS_FALSE,;t t 24513s,@OGG_CFLAGS@,$OGG_CFLAGS,;t t 24514s,@OGG_LIBS@,$OGG_LIBS,;t t 24515s,@FLaC__HAS_OGG_TRUE@,$FLaC__HAS_OGG_TRUE,;t t 24516s,@FLaC__HAS_OGG_FALSE@,$FLaC__HAS_OGG_FALSE,;t t 24517s,@LIBICONV@,$LIBICONV,;t t 24518s,@LTLIBICONV@,$LTLIBICONV,;t t 24519s,@DOCBOOK_TO_MAN@,$DOCBOOK_TO_MAN,;t t 24520s,@FLaC__HAS_DOCBOOK_TO_MAN_TRUE@,$FLaC__HAS_DOCBOOK_TO_MAN_TRUE,;t t 24521s,@FLaC__HAS_DOCBOOK_TO_MAN_FALSE@,$FLaC__HAS_DOCBOOK_TO_MAN_FALSE,;t t 24522s,@NASM@,$NASM,;t t 24523s,@FLaC__HAS_NASM_TRUE@,$FLaC__HAS_NASM_TRUE,;t t 24524s,@FLaC__HAS_NASM_FALSE@,$FLaC__HAS_NASM_FALSE,;t t 24525s,@AS@,$AS,;t t 24526s,@GAS@,$GAS,;t t 24527s,@FLaC__HAS_AS_TRUE@,$FLaC__HAS_AS_TRUE,;t t 24528s,@FLaC__HAS_AS_FALSE@,$FLaC__HAS_AS_FALSE,;t t 24529s,@FLaC__HAS_GAS_TRUE@,$FLaC__HAS_GAS_TRUE,;t t 24530s,@FLaC__HAS_GAS_FALSE@,$FLaC__HAS_GAS_FALSE,;t t 24531s,@FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE@,$FLaC__HAS_AS__TEMPORARILY_DISABLED_TRUE,;t t 24532s,@FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE@,$FLaC__HAS_AS__TEMPORARILY_DISABLED_FALSE,;t t 24533s,@FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE@,$FLaC__HAS_GAS__TEMPORARILY_DISABLED_TRUE,;t t 24534s,@FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE@,$FLaC__HAS_GAS__TEMPORARILY_DISABLED_FALSE,;t t 24535s,@LIBOBJS@,$LIBOBJS,;t t 24536s,@LTLIBOBJS@,$LTLIBOBJS,;t t 24537CEOF 24538 24539_ACEOF 24540 24541 cat >>$CONFIG_STATUS <<\_ACEOF 24542 # Split the substitutions into bite-sized pieces for seds with 24543 # small command number limits, like on Digital OSF/1 and HP-UX. 24544 ac_max_sed_lines=48 24545 ac_sed_frag=1 # Number of current file. 24546 ac_beg=1 # First line for current file. 24547 ac_end=$ac_max_sed_lines # Line after last line for current file. 24548 ac_more_lines=: 24549 ac_sed_cmds= 24550 while $ac_more_lines; do 24551 if test $ac_beg -gt 1; then 24552 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24553 else 24554 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24555 fi 24556 if test ! -s $tmp/subs.frag; then 24557 ac_more_lines=false 24558 else 24559 # The purpose of the label and of the branching condition is to 24560 # speed up the sed processing (if there are no `@' at all, there 24561 # is no need to browse any of the substitutions). 24562 # These are the two extra sed commands mentioned above. 24563 (echo ':t 24564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 24565 if test -z "$ac_sed_cmds"; then 24566 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 24567 else 24568 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 24569 fi 24570 ac_sed_frag=`expr $ac_sed_frag + 1` 24571 ac_beg=$ac_end 24572 ac_end=`expr $ac_end + $ac_max_sed_lines` 24573 fi 24574 done 24575 if test -z "$ac_sed_cmds"; then 24576 ac_sed_cmds=cat 24577 fi 24578fi # test -n "$CONFIG_FILES" 24579 24580_ACEOF 24581cat >>$CONFIG_STATUS <<\_ACEOF 24582for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 24583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24584 case $ac_file in 24585 - | *:- | *:-:* ) # input from stdin 24586 cat >$tmp/stdin 24587 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24589 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24590 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24591 * ) ac_file_in=$ac_file.in ;; 24592 esac 24593 24594 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 24595 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24596$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24597 X"$ac_file" : 'X\(//\)[^/]' \| \ 24598 X"$ac_file" : 'X\(//\)$' \| \ 24599 X"$ac_file" : 'X\(/\)' \| \ 24600 . : '\(.\)' 2>/dev/null || 24601echo X"$ac_file" | 24602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24603 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24604 /^X\(\/\/\)$/{ s//\1/; q; } 24605 /^X\(\/\).*/{ s//\1/; q; } 24606 s/.*/./; q'` 24607 { if $as_mkdir_p; then 24608 mkdir -p "$ac_dir" 24609 else 24610 as_dir="$ac_dir" 24611 as_dirs= 24612 while test ! -d "$as_dir"; do 24613 as_dirs="$as_dir $as_dirs" 24614 as_dir=`(dirname "$as_dir") 2>/dev/null || 24615$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24616 X"$as_dir" : 'X\(//\)[^/]' \| \ 24617 X"$as_dir" : 'X\(//\)$' \| \ 24618 X"$as_dir" : 'X\(/\)' \| \ 24619 . : '\(.\)' 2>/dev/null || 24620echo X"$as_dir" | 24621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24622 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24623 /^X\(\/\/\)$/{ s//\1/; q; } 24624 /^X\(\/\).*/{ s//\1/; q; } 24625 s/.*/./; q'` 24626 done 24627 test ! -n "$as_dirs" || mkdir $as_dirs 24628 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24629echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24630 { (exit 1); exit 1; }; }; } 24631 24632 ac_builddir=. 24633 24634if test "$ac_dir" != .; then 24635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24636 # A "../" for each directory in $ac_dir_suffix. 24637 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24638else 24639 ac_dir_suffix= ac_top_builddir= 24640fi 24641 24642case $srcdir in 24643 .) # No --srcdir option. We are building in place. 24644 ac_srcdir=. 24645 if test -z "$ac_top_builddir"; then 24646 ac_top_srcdir=. 24647 else 24648 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24649 fi ;; 24650 [\\/]* | ?:[\\/]* ) # Absolute path. 24651 ac_srcdir=$srcdir$ac_dir_suffix; 24652 ac_top_srcdir=$srcdir ;; 24653 *) # Relative path. 24654 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24655 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24656esac 24657 24658# Do not use `cd foo && pwd` to compute absolute paths, because 24659# the directories may not exist. 24660case `pwd` in 24661.) ac_abs_builddir="$ac_dir";; 24662*) 24663 case "$ac_dir" in 24664 .) ac_abs_builddir=`pwd`;; 24665 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24666 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24667 esac;; 24668esac 24669case $ac_abs_builddir in 24670.) ac_abs_top_builddir=${ac_top_builddir}.;; 24671*) 24672 case ${ac_top_builddir}. in 24673 .) ac_abs_top_builddir=$ac_abs_builddir;; 24674 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24675 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24676 esac;; 24677esac 24678case $ac_abs_builddir in 24679.) ac_abs_srcdir=$ac_srcdir;; 24680*) 24681 case $ac_srcdir in 24682 .) ac_abs_srcdir=$ac_abs_builddir;; 24683 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24684 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24685 esac;; 24686esac 24687case $ac_abs_builddir in 24688.) ac_abs_top_srcdir=$ac_top_srcdir;; 24689*) 24690 case $ac_top_srcdir in 24691 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24692 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24693 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24694 esac;; 24695esac 24696 24697 24698 case $INSTALL in 24699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24700 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 24701 esac 24702 24703 if test x"$ac_file" != x-; then 24704 { echo "$as_me:$LINENO: creating $ac_file" >&5 24705echo "$as_me: creating $ac_file" >&6;} 24706 rm -f "$ac_file" 24707 fi 24708 # Let's still pretend it is `configure' which instantiates (i.e., don't 24709 # use $as_me), people would be surprised to read: 24710 # /* config.h. Generated by config.status. */ 24711 if test x"$ac_file" = x-; then 24712 configure_input= 24713 else 24714 configure_input="$ac_file. " 24715 fi 24716 configure_input=$configure_input"Generated from `echo $ac_file_in | 24717 sed 's,.*/,,'` by configure." 24718 24719 # First look for the input files in the build tree, otherwise in the 24720 # src tree. 24721 ac_file_inputs=`IFS=: 24722 for f in $ac_file_in; do 24723 case $f in 24724 -) echo $tmp/stdin ;; 24725 [\\/$]*) 24726 # Absolute (can't be DOS-style, as IFS=:) 24727 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24728echo "$as_me: error: cannot find input file: $f" >&2;} 24729 { (exit 1); exit 1; }; } 24730 echo "$f";; 24731 *) # Relative 24732 if test -f "$f"; then 24733 # Build tree 24734 echo "$f" 24735 elif test -f "$srcdir/$f"; then 24736 # Source tree 24737 echo "$srcdir/$f" 24738 else 24739 # /dev/null tree 24740 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24741echo "$as_me: error: cannot find input file: $f" >&2;} 24742 { (exit 1); exit 1; }; } 24743 fi;; 24744 esac 24745 done` || { (exit 1); exit 1; } 24746_ACEOF 24747cat >>$CONFIG_STATUS <<_ACEOF 24748 sed "$ac_vpsub 24749$extrasub 24750_ACEOF 24751cat >>$CONFIG_STATUS <<\_ACEOF 24752:t 24753/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24754s,@configure_input@,$configure_input,;t t 24755s,@srcdir@,$ac_srcdir,;t t 24756s,@abs_srcdir@,$ac_abs_srcdir,;t t 24757s,@top_srcdir@,$ac_top_srcdir,;t t 24758s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 24759s,@builddir@,$ac_builddir,;t t 24760s,@abs_builddir@,$ac_abs_builddir,;t t 24761s,@top_builddir@,$ac_top_builddir,;t t 24762s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 24763s,@INSTALL@,$ac_INSTALL,;t t 24764" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 24765 rm -f $tmp/stdin 24766 if test x"$ac_file" != x-; then 24767 mv $tmp/out $ac_file 24768 else 24769 cat $tmp/out 24770 rm -f $tmp/out 24771 fi 24772 24773done 24774_ACEOF 24775cat >>$CONFIG_STATUS <<\_ACEOF 24776 24777# 24778# CONFIG_HEADER section. 24779# 24780 24781# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 24782# NAME is the cpp macro being defined and VALUE is the value it is being given. 24783# 24784# ac_d sets the value in "#define NAME VALUE" lines. 24785ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 24786ac_dB='[ ].*$,\1#\2' 24787ac_dC=' ' 24788ac_dD=',;t' 24789# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 24790ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 24791ac_uB='$,\1#\2define\3' 24792ac_uC=' ' 24793ac_uD=',;t' 24794 24795for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 24796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24797 case $ac_file in 24798 - | *:- | *:-:* ) # input from stdin 24799 cat >$tmp/stdin 24800 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24802 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24804 * ) ac_file_in=$ac_file.in ;; 24805 esac 24806 24807 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 24808echo "$as_me: creating $ac_file" >&6;} 24809 24810 # First look for the input files in the build tree, otherwise in the 24811 # src tree. 24812 ac_file_inputs=`IFS=: 24813 for f in $ac_file_in; do 24814 case $f in 24815 -) echo $tmp/stdin ;; 24816 [\\/$]*) 24817 # Absolute (can't be DOS-style, as IFS=:) 24818 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24819echo "$as_me: error: cannot find input file: $f" >&2;} 24820 { (exit 1); exit 1; }; } 24821 # Do quote $f, to prevent DOS paths from being IFS'd. 24822 echo "$f";; 24823 *) # Relative 24824 if test -f "$f"; then 24825 # Build tree 24826 echo "$f" 24827 elif test -f "$srcdir/$f"; then 24828 # Source tree 24829 echo "$srcdir/$f" 24830 else 24831 # /dev/null tree 24832 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24833echo "$as_me: error: cannot find input file: $f" >&2;} 24834 { (exit 1); exit 1; }; } 24835 fi;; 24836 esac 24837 done` || { (exit 1); exit 1; } 24838 # Remove the trailing spaces. 24839 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 24840 24841_ACEOF 24842 24843# Transform confdefs.h into two sed scripts, `conftest.defines' and 24844# `conftest.undefs', that substitutes the proper values into 24845# config.h.in to produce config.h. The first handles `#define' 24846# templates, and the second `#undef' templates. 24847# And first: Protect against being on the right side of a sed subst in 24848# config.status. Protect against being in an unquoted here document 24849# in config.status. 24850rm -f conftest.defines conftest.undefs 24851# Using a here document instead of a string reduces the quoting nightmare. 24852# Putting comments in sed scripts is not portable. 24853# 24854# `end' is used to avoid that the second main sed command (meant for 24855# 0-ary CPP macros) applies to n-ary macro definitions. 24856# See the Autoconf documentation for `clear'. 24857cat >confdef2sed.sed <<\_ACEOF 24858s/[\\&,]/\\&/g 24859s,[\\$`],\\&,g 24860t clear 24861: clear 24862s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 24863t end 24864s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 24865: end 24866_ACEOF 24867# If some macros were called several times there might be several times 24868# the same #defines, which is useless. Nevertheless, we may not want to 24869# sort them, since we want the *last* AC-DEFINE to be honored. 24870uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 24871sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 24872rm -f confdef2sed.sed 24873 24874# This sed command replaces #undef with comments. This is necessary, for 24875# example, in the case of _POSIX_SOURCE, which is predefined and required 24876# on some systems where configure will not decide to define it. 24877cat >>conftest.undefs <<\_ACEOF 24878s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 24879_ACEOF 24880 24881# Break up conftest.defines because some shells have a limit on the size 24882# of here documents, and old seds have small limits too (100 cmds). 24883echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 24884echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 24885echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 24886echo ' :' >>$CONFIG_STATUS 24887rm -f conftest.tail 24888while grep . conftest.defines >/dev/null 24889do 24890 # Write a limited-size here document to $tmp/defines.sed. 24891 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 24892 # Speed up: don't consider the non `#define' lines. 24893 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 24894 # Work around the forget-to-reset-the-flag bug. 24895 echo 't clr' >>$CONFIG_STATUS 24896 echo ': clr' >>$CONFIG_STATUS 24897 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 24898 echo 'CEOF 24899 sed -f $tmp/defines.sed $tmp/in >$tmp/out 24900 rm -f $tmp/in 24901 mv $tmp/out $tmp/in 24902' >>$CONFIG_STATUS 24903 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 24904 rm -f conftest.defines 24905 mv conftest.tail conftest.defines 24906done 24907rm -f conftest.defines 24908echo ' fi # grep' >>$CONFIG_STATUS 24909echo >>$CONFIG_STATUS 24910 24911# Break up conftest.undefs because some shells have a limit on the size 24912# of here documents, and old seds have small limits too (100 cmds). 24913echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 24914rm -f conftest.tail 24915while grep . conftest.undefs >/dev/null 24916do 24917 # Write a limited-size here document to $tmp/undefs.sed. 24918 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 24919 # Speed up: don't consider the non `#undef' 24920 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 24921 # Work around the forget-to-reset-the-flag bug. 24922 echo 't clr' >>$CONFIG_STATUS 24923 echo ': clr' >>$CONFIG_STATUS 24924 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 24925 echo 'CEOF 24926 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 24927 rm -f $tmp/in 24928 mv $tmp/out $tmp/in 24929' >>$CONFIG_STATUS 24930 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 24931 rm -f conftest.undefs 24932 mv conftest.tail conftest.undefs 24933done 24934rm -f conftest.undefs 24935 24936cat >>$CONFIG_STATUS <<\_ACEOF 24937 # Let's still pretend it is `configure' which instantiates (i.e., don't 24938 # use $as_me), people would be surprised to read: 24939 # /* config.h. Generated by config.status. */ 24940 if test x"$ac_file" = x-; then 24941 echo "/* Generated by configure. */" >$tmp/config.h 24942 else 24943 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 24944 fi 24945 cat $tmp/in >>$tmp/config.h 24946 rm -f $tmp/in 24947 if test x"$ac_file" != x-; then 24948 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 24949 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24950echo "$as_me: $ac_file is unchanged" >&6;} 24951 else 24952 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24953$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24954 X"$ac_file" : 'X\(//\)[^/]' \| \ 24955 X"$ac_file" : 'X\(//\)$' \| \ 24956 X"$ac_file" : 'X\(/\)' \| \ 24957 . : '\(.\)' 2>/dev/null || 24958echo X"$ac_file" | 24959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24960 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24961 /^X\(\/\/\)$/{ s//\1/; q; } 24962 /^X\(\/\).*/{ s//\1/; q; } 24963 s/.*/./; q'` 24964 { if $as_mkdir_p; then 24965 mkdir -p "$ac_dir" 24966 else 24967 as_dir="$ac_dir" 24968 as_dirs= 24969 while test ! -d "$as_dir"; do 24970 as_dirs="$as_dir $as_dirs" 24971 as_dir=`(dirname "$as_dir") 2>/dev/null || 24972$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24973 X"$as_dir" : 'X\(//\)[^/]' \| \ 24974 X"$as_dir" : 'X\(//\)$' \| \ 24975 X"$as_dir" : 'X\(/\)' \| \ 24976 . : '\(.\)' 2>/dev/null || 24977echo X"$as_dir" | 24978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24979 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24980 /^X\(\/\/\)$/{ s//\1/; q; } 24981 /^X\(\/\).*/{ s//\1/; q; } 24982 s/.*/./; q'` 24983 done 24984 test ! -n "$as_dirs" || mkdir $as_dirs 24985 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24986echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24987 { (exit 1); exit 1; }; }; } 24988 24989 rm -f $ac_file 24990 mv $tmp/config.h $ac_file 24991 fi 24992 else 24993 cat $tmp/config.h 24994 rm -f $tmp/config.h 24995 fi 24996# Compute $ac_file's index in $config_headers. 24997_am_stamp_count=1 24998for _am_header in $config_headers :; do 24999 case $_am_header in 25000 $ac_file | $ac_file:* ) 25001 break ;; 25002 * ) 25003 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 25004 esac 25005done 25006echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 25007$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25008 X$ac_file : 'X\(//\)[^/]' \| \ 25009 X$ac_file : 'X\(//\)$' \| \ 25010 X$ac_file : 'X\(/\)' \| \ 25011 . : '\(.\)' 2>/dev/null || 25012echo X$ac_file | 25013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25014 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25015 /^X\(\/\/\)$/{ s//\1/; q; } 25016 /^X\(\/\).*/{ s//\1/; q; } 25017 s/.*/./; q'`/stamp-h$_am_stamp_count 25018done 25019_ACEOF 25020cat >>$CONFIG_STATUS <<\_ACEOF 25021 25022# 25023# CONFIG_COMMANDS section. 25024# 25025for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 25026 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 25027 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 25028 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 25029$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25030 X"$ac_dest" : 'X\(//\)[^/]' \| \ 25031 X"$ac_dest" : 'X\(//\)$' \| \ 25032 X"$ac_dest" : 'X\(/\)' \| \ 25033 . : '\(.\)' 2>/dev/null || 25034echo X"$ac_dest" | 25035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25036 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25037 /^X\(\/\/\)$/{ s//\1/; q; } 25038 /^X\(\/\).*/{ s//\1/; q; } 25039 s/.*/./; q'` 25040 { if $as_mkdir_p; then 25041 mkdir -p "$ac_dir" 25042 else 25043 as_dir="$ac_dir" 25044 as_dirs= 25045 while test ! -d "$as_dir"; do 25046 as_dirs="$as_dir $as_dirs" 25047 as_dir=`(dirname "$as_dir") 2>/dev/null || 25048$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25049 X"$as_dir" : 'X\(//\)[^/]' \| \ 25050 X"$as_dir" : 'X\(//\)$' \| \ 25051 X"$as_dir" : 'X\(/\)' \| \ 25052 . : '\(.\)' 2>/dev/null || 25053echo X"$as_dir" | 25054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25055 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25056 /^X\(\/\/\)$/{ s//\1/; q; } 25057 /^X\(\/\).*/{ s//\1/; q; } 25058 s/.*/./; q'` 25059 done 25060 test ! -n "$as_dirs" || mkdir $as_dirs 25061 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 25062echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 25063 { (exit 1); exit 1; }; }; } 25064 25065 ac_builddir=. 25066 25067if test "$ac_dir" != .; then 25068 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 25069 # A "../" for each directory in $ac_dir_suffix. 25070 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 25071else 25072 ac_dir_suffix= ac_top_builddir= 25073fi 25074 25075case $srcdir in 25076 .) # No --srcdir option. We are building in place. 25077 ac_srcdir=. 25078 if test -z "$ac_top_builddir"; then 25079 ac_top_srcdir=. 25080 else 25081 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 25082 fi ;; 25083 [\\/]* | ?:[\\/]* ) # Absolute path. 25084 ac_srcdir=$srcdir$ac_dir_suffix; 25085 ac_top_srcdir=$srcdir ;; 25086 *) # Relative path. 25087 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 25088 ac_top_srcdir=$ac_top_builddir$srcdir ;; 25089esac 25090 25091# Do not use `cd foo && pwd` to compute absolute paths, because 25092# the directories may not exist. 25093case `pwd` in 25094.) ac_abs_builddir="$ac_dir";; 25095*) 25096 case "$ac_dir" in 25097 .) ac_abs_builddir=`pwd`;; 25098 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 25099 *) ac_abs_builddir=`pwd`/"$ac_dir";; 25100 esac;; 25101esac 25102case $ac_abs_builddir in 25103.) ac_abs_top_builddir=${ac_top_builddir}.;; 25104*) 25105 case ${ac_top_builddir}. in 25106 .) ac_abs_top_builddir=$ac_abs_builddir;; 25107 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 25108 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 25109 esac;; 25110esac 25111case $ac_abs_builddir in 25112.) ac_abs_srcdir=$ac_srcdir;; 25113*) 25114 case $ac_srcdir in 25115 .) ac_abs_srcdir=$ac_abs_builddir;; 25116 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 25117 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 25118 esac;; 25119esac 25120case $ac_abs_builddir in 25121.) ac_abs_top_srcdir=$ac_top_srcdir;; 25122*) 25123 case $ac_top_srcdir in 25124 .) ac_abs_top_srcdir=$ac_abs_builddir;; 25125 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 25126 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 25127 esac;; 25128esac 25129 25130 25131 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 25132echo "$as_me: executing $ac_dest commands" >&6;} 25133 case $ac_dest in 25134 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 25135 # Strip MF so we end up with the name of the file. 25136 mf=`echo "$mf" | sed -e 's/:.*$//'` 25137 # Check whether this is an Automake generated Makefile or not. 25138 # We used to match only the files named `Makefile.in', but 25139 # some people rename them; so instead we look at the file content. 25140 # Grep'ing the first line is not enough: some people post-process 25141 # each Makefile.in and add a new line on top of each file to say so. 25142 # So let's grep whole file. 25143 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 25144 dirpart=`(dirname "$mf") 2>/dev/null || 25145$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25146 X"$mf" : 'X\(//\)[^/]' \| \ 25147 X"$mf" : 'X\(//\)$' \| \ 25148 X"$mf" : 'X\(/\)' \| \ 25149 . : '\(.\)' 2>/dev/null || 25150echo X"$mf" | 25151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25152 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25153 /^X\(\/\/\)$/{ s//\1/; q; } 25154 /^X\(\/\).*/{ s//\1/; q; } 25155 s/.*/./; q'` 25156 else 25157 continue 25158 fi 25159 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 25160 # Extract the definition of DEP_FILES from the Makefile without 25161 # running `make'. 25162 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 25163 test -z "$DEPDIR" && continue 25164 # When using ansi2knr, U may be empty or an underscore; expand it 25165 U=`sed -n -e '/^U = / s///p' < "$mf"` 25166 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 25167 # We invoke sed twice because it is the simplest approach to 25168 # changing $(DEPDIR) to its actual value in the expansion. 25169 for file in `sed -n -e ' 25170 /^DEP_FILES = .*\\\\$/ { 25171 s/^DEP_FILES = // 25172 :loop 25173 s/\\\\$// 25174 p 25175 n 25176 /\\\\$/ b loop 25177 p 25178 } 25179 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 25180 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 25181 # Make sure the directory exists. 25182 test -f "$dirpart/$file" && continue 25183 fdir=`(dirname "$file") 2>/dev/null || 25184$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25185 X"$file" : 'X\(//\)[^/]' \| \ 25186 X"$file" : 'X\(//\)$' \| \ 25187 X"$file" : 'X\(/\)' \| \ 25188 . : '\(.\)' 2>/dev/null || 25189echo X"$file" | 25190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25191 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25192 /^X\(\/\/\)$/{ s//\1/; q; } 25193 /^X\(\/\).*/{ s//\1/; q; } 25194 s/.*/./; q'` 25195 { if $as_mkdir_p; then 25196 mkdir -p $dirpart/$fdir 25197 else 25198 as_dir=$dirpart/$fdir 25199 as_dirs= 25200 while test ! -d "$as_dir"; do 25201 as_dirs="$as_dir $as_dirs" 25202 as_dir=`(dirname "$as_dir") 2>/dev/null || 25203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25204 X"$as_dir" : 'X\(//\)[^/]' \| \ 25205 X"$as_dir" : 'X\(//\)$' \| \ 25206 X"$as_dir" : 'X\(/\)' \| \ 25207 . : '\(.\)' 2>/dev/null || 25208echo X"$as_dir" | 25209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25210 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25211 /^X\(\/\/\)$/{ s//\1/; q; } 25212 /^X\(\/\).*/{ s//\1/; q; } 25213 s/.*/./; q'` 25214 done 25215 test ! -n "$as_dirs" || mkdir $as_dirs 25216 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 25217echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 25218 { (exit 1); exit 1; }; }; } 25219 25220 # echo "creating $dirpart/$file" 25221 echo '# dummy' > "$dirpart/$file" 25222 done 25223done 25224 ;; 25225 esac 25226done 25227_ACEOF 25228 25229cat >>$CONFIG_STATUS <<\_ACEOF 25230 25231{ (exit 0); exit 0; } 25232_ACEOF 25233chmod +x $CONFIG_STATUS 25234ac_clean_files=$ac_clean_files_save 25235 25236 25237# configure is writing to config.log, and then calls config.status. 25238# config.status does its own redirection, appending to config.log. 25239# Unfortunately, on DOS this fails, as config.log is still kept open 25240# by configure, so config.status won't be able to write to it; its 25241# output is simply discarded. So we exec the FD to /dev/null, 25242# effectively closing config.log, so it can be properly (re)opened and 25243# appended to by config.status. When coming back to configure, we 25244# need to make the FD available again. 25245if test "$no_create" != yes; then 25246 ac_cs_success=: 25247 ac_config_status_args= 25248 test "$silent" = yes && 25249 ac_config_status_args="$ac_config_status_args --quiet" 25250 exec 5>/dev/null 25251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25252 exec 5>>config.log 25253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25254 # would make configure fail if this is the last instruction. 25255 $ac_cs_success || { (exit 1); exit 1; } 25256fi 25257 25258