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="sqliteodbc.h" 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SQLITE_INC SQLITE_LIB SQLITE_LIBVERSION SQLITE_ENCDEC SQLITE_ATOF SQLITE_MPRINTF SQLITE_TRACE SQLITE3_INC SQLITE3_A10N_C SQLITE3_A10N_O SQLITE3_A10N_FLAGS SQLITE3_COLUMNTABLENAME SQLITE3_OVERLOADFUNCTION SQLITE3_PREPARE_V2 SQLITE3_CLEARBINDINGS SQLITE3_CREATEMODULE_V2 SQLITE3_LOADEXTENSION SQLITE3_TABLECOLUMNMETADATA SQLITE3_VFS SQLITE3_PROFILE SQLITE3_STRNICMP EXT_BLOBTOXY EXT_IMPEXP LIB_TARGETS INST_TARGETS UNINST_TARGETS DRVINST_TARGETS DRVUNINST_TARGETS ODBC_FLAGS ODBC_LIB VER_INFO DRVDIR DL_OPTS DL_INITFINI SQLITE3_LIB SPEC_CHANGELOG_TS DEB_CHANGELOG_TS 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 1008System types: 1009 --build=BUILD configure for building on BUILD [guessed] 1010 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1011_ACEOF 1012fi 1013 1014if test -n "$ac_init_help"; then 1015 1016 cat <<\_ACEOF 1017 1018Optional Features: 1019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1021 --enable-shared[=PKGS] 1022 build shared libraries [default=yes] 1023 --enable-static[=PKGS] 1024 build static libraries [default=yes] 1025 --enable-fast-install[=PKGS] 1026 optimize for fast installation [default=yes] 1027 --disable-libtool-lock avoid locking (might break parallel builds) 1028 --enable-winterface make SQL*W() functions 1029 1030Optional Packages: 1031 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1032 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1033 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1034 --with-pic try to use only PIC/non-PIC objects [default=use 1035 both] 1036 --with-tags[=TAGS] 1037 include additional configurations [automatic] 1038 --with-sqlite=DIR use SQLite header/lib from DIR 1039 --with-sqlite3=DIR use SQLite3 hdr/lib from DIR 1040 --with-odbc=DIR use ODBC header/libs from DIR 1041 --with-dls dlopen SQLite3 lib 1042 1043Some influential environment variables: 1044 CC C compiler command 1045 CFLAGS C compiler flags 1046 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1047 nonstandard directory <lib dir> 1048 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1049 headers in a nonstandard directory <include dir> 1050 CPP C preprocessor 1051 CXX C++ compiler command 1052 CXXFLAGS C++ compiler flags 1053 CXXCPP C++ preprocessor 1054 F77 Fortran 77 compiler command 1055 FFLAGS Fortran 77 compiler flags 1056 1057Use these variables to override the choices made by `configure' or to help 1058it to find libraries and programs with nonstandard names/locations. 1059 1060_ACEOF 1061fi 1062 1063if test "$ac_init_help" = "recursive"; then 1064 # If there are subdirs, report their specific --help. 1065 ac_popdir=`pwd` 1066 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1067 test -d $ac_dir || continue 1068 ac_builddir=. 1069 1070if test "$ac_dir" != .; then 1071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1072 # A "../" for each directory in $ac_dir_suffix. 1073 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1074else 1075 ac_dir_suffix= ac_top_builddir= 1076fi 1077 1078case $srcdir in 1079 .) # No --srcdir option. We are building in place. 1080 ac_srcdir=. 1081 if test -z "$ac_top_builddir"; then 1082 ac_top_srcdir=. 1083 else 1084 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1085 fi ;; 1086 [\\/]* | ?:[\\/]* ) # Absolute path. 1087 ac_srcdir=$srcdir$ac_dir_suffix; 1088 ac_top_srcdir=$srcdir ;; 1089 *) # Relative path. 1090 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1091 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1092esac 1093 1094# Do not use `cd foo && pwd` to compute absolute paths, because 1095# the directories may not exist. 1096case `pwd` in 1097.) ac_abs_builddir="$ac_dir";; 1098*) 1099 case "$ac_dir" in 1100 .) ac_abs_builddir=`pwd`;; 1101 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1102 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1103 esac;; 1104esac 1105case $ac_abs_builddir in 1106.) ac_abs_top_builddir=${ac_top_builddir}.;; 1107*) 1108 case ${ac_top_builddir}. in 1109 .) ac_abs_top_builddir=$ac_abs_builddir;; 1110 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1111 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1112 esac;; 1113esac 1114case $ac_abs_builddir in 1115.) ac_abs_srcdir=$ac_srcdir;; 1116*) 1117 case $ac_srcdir in 1118 .) ac_abs_srcdir=$ac_abs_builddir;; 1119 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1120 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1121 esac;; 1122esac 1123case $ac_abs_builddir in 1124.) ac_abs_top_srcdir=$ac_top_srcdir;; 1125*) 1126 case $ac_top_srcdir in 1127 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1128 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1129 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1130 esac;; 1131esac 1132 1133 cd $ac_dir 1134 # Check for guested configure; otherwise get Cygnus style configure. 1135 if test -f $ac_srcdir/configure.gnu; then 1136 echo 1137 $SHELL $ac_srcdir/configure.gnu --help=recursive 1138 elif test -f $ac_srcdir/configure; then 1139 echo 1140 $SHELL $ac_srcdir/configure --help=recursive 1141 elif test -f $ac_srcdir/configure.ac || 1142 test -f $ac_srcdir/configure.in; then 1143 echo 1144 $ac_configure --help 1145 else 1146 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1147 fi 1148 cd $ac_popdir 1149 done 1150fi 1151 1152test -n "$ac_init_help" && exit 0 1153if $ac_init_version; then 1154 cat <<\_ACEOF 1155 1156Copyright (C) 2003 Free Software Foundation, Inc. 1157This configure script is free software; the Free Software Foundation 1158gives unlimited permission to copy, distribute and modify it. 1159_ACEOF 1160 exit 0 1161fi 1162exec 5>config.log 1163cat >&5 <<_ACEOF 1164This file contains any messages produced by compilers while 1165running configure, to aid debugging if configure makes a mistake. 1166 1167It was created by $as_me, which was 1168generated by GNU Autoconf 2.59. Invocation command line was 1169 1170 $ $0 $@ 1171 1172_ACEOF 1173{ 1174cat <<_ASUNAME 1175## --------- ## 1176## Platform. ## 1177## --------- ## 1178 1179hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1180uname -m = `(uname -m) 2>/dev/null || echo unknown` 1181uname -r = `(uname -r) 2>/dev/null || echo unknown` 1182uname -s = `(uname -s) 2>/dev/null || echo unknown` 1183uname -v = `(uname -v) 2>/dev/null || echo unknown` 1184 1185/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1186/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1187 1188/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1189/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1190/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1191hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1192/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1193/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1194/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1195 1196_ASUNAME 1197 1198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1199for as_dir in $PATH 1200do 1201 IFS=$as_save_IFS 1202 test -z "$as_dir" && as_dir=. 1203 echo "PATH: $as_dir" 1204done 1205 1206} >&5 1207 1208cat >&5 <<_ACEOF 1209 1210 1211## ----------- ## 1212## Core tests. ## 1213## ----------- ## 1214 1215_ACEOF 1216 1217 1218# Keep a trace of the command line. 1219# Strip out --no-create and --no-recursion so they do not pile up. 1220# Strip out --silent because we don't want to record it for future runs. 1221# Also quote any args containing shell meta-characters. 1222# Make two passes to allow for proper duplicate-argument suppression. 1223ac_configure_args= 1224ac_configure_args0= 1225ac_configure_args1= 1226ac_sep= 1227ac_must_keep_next=false 1228for ac_pass in 1 2 1229do 1230 for ac_arg 1231 do 1232 case $ac_arg in 1233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1235 | -silent | --silent | --silen | --sile | --sil) 1236 continue ;; 1237 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1238 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1239 esac 1240 case $ac_pass in 1241 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1242 2) 1243 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1244 if test $ac_must_keep_next = true; then 1245 ac_must_keep_next=false # Got value, back to normal. 1246 else 1247 case $ac_arg in 1248 *=* | --config-cache | -C | -disable-* | --disable-* \ 1249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1251 | -with-* | --with-* | -without-* | --without-* | --x) 1252 case "$ac_configure_args0 " in 1253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1254 esac 1255 ;; 1256 -* ) ac_must_keep_next=true ;; 1257 esac 1258 fi 1259 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1260 # Get rid of the leading space. 1261 ac_sep=" " 1262 ;; 1263 esac 1264 done 1265done 1266$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1267$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1268 1269# When interrupted or exit'd, cleanup temporary files, and complete 1270# config.log. We remove comments because anyway the quotes in there 1271# would cause problems or look ugly. 1272# WARNING: Be sure not to use single quotes in there, as some shells, 1273# such as our DU 5.0 friend, will then `close' the trap. 1274trap 'exit_status=$? 1275 # Save into config.log some information that might help in debugging. 1276 { 1277 echo 1278 1279 cat <<\_ASBOX 1280## ---------------- ## 1281## Cache variables. ## 1282## ---------------- ## 1283_ASBOX 1284 echo 1285 # The following way of writing the cache mishandles newlines in values, 1286{ 1287 (set) 2>&1 | 1288 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1289 *ac_space=\ *) 1290 sed -n \ 1291 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1293 ;; 1294 *) 1295 sed -n \ 1296 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1297 ;; 1298 esac; 1299} 1300 echo 1301 1302 cat <<\_ASBOX 1303## ----------------- ## 1304## Output variables. ## 1305## ----------------- ## 1306_ASBOX 1307 echo 1308 for ac_var in $ac_subst_vars 1309 do 1310 eval ac_val=$`echo $ac_var` 1311 echo "$ac_var='"'"'$ac_val'"'"'" 1312 done | sort 1313 echo 1314 1315 if test -n "$ac_subst_files"; then 1316 cat <<\_ASBOX 1317## ------------- ## 1318## Output files. ## 1319## ------------- ## 1320_ASBOX 1321 echo 1322 for ac_var in $ac_subst_files 1323 do 1324 eval ac_val=$`echo $ac_var` 1325 echo "$ac_var='"'"'$ac_val'"'"'" 1326 done | sort 1327 echo 1328 fi 1329 1330 if test -s confdefs.h; then 1331 cat <<\_ASBOX 1332## ----------- ## 1333## confdefs.h. ## 1334## ----------- ## 1335_ASBOX 1336 echo 1337 sed "/^$/d" confdefs.h | sort 1338 echo 1339 fi 1340 test "$ac_signal" != 0 && 1341 echo "$as_me: caught signal $ac_signal" 1342 echo "$as_me: exit $exit_status" 1343 } >&5 1344 rm -f core *.core && 1345 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1346 exit $exit_status 1347 ' 0 1348for ac_signal in 1 2 13 15; do 1349 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1350done 1351ac_signal=0 1352 1353# confdefs.h avoids OS command line length limits that DEFS can exceed. 1354rm -rf conftest* confdefs.h 1355# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1356echo >confdefs.h 1357 1358# Predefined preprocessor variables. 1359 1360cat >>confdefs.h <<_ACEOF 1361#define PACKAGE_NAME "$PACKAGE_NAME" 1362_ACEOF 1363 1364 1365cat >>confdefs.h <<_ACEOF 1366#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1367_ACEOF 1368 1369 1370cat >>confdefs.h <<_ACEOF 1371#define PACKAGE_VERSION "$PACKAGE_VERSION" 1372_ACEOF 1373 1374 1375cat >>confdefs.h <<_ACEOF 1376#define PACKAGE_STRING "$PACKAGE_STRING" 1377_ACEOF 1378 1379 1380cat >>confdefs.h <<_ACEOF 1381#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1382_ACEOF 1383 1384 1385# Let the site file select an alternate cache file if it wants to. 1386# Prefer explicitly selected file to automatically selected ones. 1387if test -z "$CONFIG_SITE"; then 1388 if test "x$prefix" != xNONE; then 1389 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1390 else 1391 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1392 fi 1393fi 1394for ac_site_file in $CONFIG_SITE; do 1395 if test -r "$ac_site_file"; then 1396 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1397echo "$as_me: loading site script $ac_site_file" >&6;} 1398 sed 's/^/| /' "$ac_site_file" >&5 1399 . "$ac_site_file" 1400 fi 1401done 1402 1403if test -r "$cache_file"; then 1404 # Some versions of bash will fail to source /dev/null (special 1405 # files actually), so we avoid doing that. 1406 if test -f "$cache_file"; then 1407 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1408echo "$as_me: loading cache $cache_file" >&6;} 1409 case $cache_file in 1410 [\\/]* | ?:[\\/]* ) . $cache_file;; 1411 *) . ./$cache_file;; 1412 esac 1413 fi 1414else 1415 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1416echo "$as_me: creating cache $cache_file" >&6;} 1417 >$cache_file 1418fi 1419 1420# Check that the precious variables saved in the cache have kept the same 1421# value. 1422ac_cache_corrupted=false 1423for ac_var in `(set) 2>&1 | 1424 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1425 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1426 eval ac_new_set=\$ac_env_${ac_var}_set 1427 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1428 eval ac_new_val="\$ac_env_${ac_var}_value" 1429 case $ac_old_set,$ac_new_set in 1430 set,) 1431 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1432echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1433 ac_cache_corrupted=: ;; 1434 ,set) 1435 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1436echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1437 ac_cache_corrupted=: ;; 1438 ,);; 1439 *) 1440 if test "x$ac_old_val" != "x$ac_new_val"; then 1441 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1442echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1443 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1444echo "$as_me: former value: $ac_old_val" >&2;} 1445 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1446echo "$as_me: current value: $ac_new_val" >&2;} 1447 ac_cache_corrupted=: 1448 fi;; 1449 esac 1450 # Pass precious variables to config.status. 1451 if test "$ac_new_set" = set; then 1452 case $ac_new_val in 1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1455 *) ac_arg=$ac_var=$ac_new_val ;; 1456 esac 1457 case " $ac_configure_args " in 1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1460 esac 1461 fi 1462done 1463if $ac_cache_corrupted; then 1464 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1465echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1466 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1467echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1468 { (exit 1); exit 1; }; } 1469fi 1470 1471ac_ext=c 1472ac_cpp='$CPP $CPPFLAGS' 1473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1475ac_compiler_gnu=$ac_cv_c_compiler_gnu 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495# Check whether --enable-shared or --disable-shared was given. 1496if test "${enable_shared+set}" = set; then 1497 enableval="$enable_shared" 1498 p=${PACKAGE-default} 1499 case $enableval in 1500 yes) enable_shared=yes ;; 1501 no) enable_shared=no ;; 1502 *) 1503 enable_shared=no 1504 # Look at the argument we got. We use all the common list separators. 1505 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1506 for pkg in $enableval; do 1507 IFS="$lt_save_ifs" 1508 if test "X$pkg" = "X$p"; then 1509 enable_shared=yes 1510 fi 1511 done 1512 IFS="$lt_save_ifs" 1513 ;; 1514 esac 1515else 1516 enable_shared=yes 1517fi; 1518 1519# Check whether --enable-static or --disable-static was given. 1520if test "${enable_static+set}" = set; then 1521 enableval="$enable_static" 1522 p=${PACKAGE-default} 1523 case $enableval in 1524 yes) enable_static=yes ;; 1525 no) enable_static=no ;; 1526 *) 1527 enable_static=no 1528 # Look at the argument we got. We use all the common list separators. 1529 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1530 for pkg in $enableval; do 1531 IFS="$lt_save_ifs" 1532 if test "X$pkg" = "X$p"; then 1533 enable_static=yes 1534 fi 1535 done 1536 IFS="$lt_save_ifs" 1537 ;; 1538 esac 1539else 1540 enable_static=yes 1541fi; 1542 1543# Check whether --enable-fast-install or --disable-fast-install was given. 1544if test "${enable_fast_install+set}" = set; then 1545 enableval="$enable_fast_install" 1546 p=${PACKAGE-default} 1547 case $enableval in 1548 yes) enable_fast_install=yes ;; 1549 no) enable_fast_install=no ;; 1550 *) 1551 enable_fast_install=no 1552 # Look at the argument we got. We use all the common list separators. 1553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1554 for pkg in $enableval; do 1555 IFS="$lt_save_ifs" 1556 if test "X$pkg" = "X$p"; then 1557 enable_fast_install=yes 1558 fi 1559 done 1560 IFS="$lt_save_ifs" 1561 ;; 1562 esac 1563else 1564 enable_fast_install=yes 1565fi; 1566 1567ac_aux_dir= 1568for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1569 if test -f $ac_dir/install-sh; then 1570 ac_aux_dir=$ac_dir 1571 ac_install_sh="$ac_aux_dir/install-sh -c" 1572 break 1573 elif test -f $ac_dir/install.sh; then 1574 ac_aux_dir=$ac_dir 1575 ac_install_sh="$ac_aux_dir/install.sh -c" 1576 break 1577 elif test -f $ac_dir/shtool; then 1578 ac_aux_dir=$ac_dir 1579 ac_install_sh="$ac_aux_dir/shtool install -c" 1580 break 1581 fi 1582done 1583if test -z "$ac_aux_dir"; then 1584 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1585echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1586 { (exit 1); exit 1; }; } 1587fi 1588ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1589ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1590ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1591 1592# Make sure we can run config.sub. 1593$ac_config_sub sun4 >/dev/null 2>&1 || 1594 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1595echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1596 { (exit 1); exit 1; }; } 1597 1598echo "$as_me:$LINENO: checking build system type" >&5 1599echo $ECHO_N "checking build system type... $ECHO_C" >&6 1600if test "${ac_cv_build+set}" = set; then 1601 echo $ECHO_N "(cached) $ECHO_C" >&6 1602else 1603 ac_cv_build_alias=$build_alias 1604test -z "$ac_cv_build_alias" && 1605 ac_cv_build_alias=`$ac_config_guess` 1606test -z "$ac_cv_build_alias" && 1607 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1608echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1609 { (exit 1); exit 1; }; } 1610ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1611 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1612echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1613 { (exit 1); exit 1; }; } 1614 1615fi 1616echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1617echo "${ECHO_T}$ac_cv_build" >&6 1618build=$ac_cv_build 1619build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1620build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1621build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1622 1623 1624echo "$as_me:$LINENO: checking host system type" >&5 1625echo $ECHO_N "checking host system type... $ECHO_C" >&6 1626if test "${ac_cv_host+set}" = set; then 1627 echo $ECHO_N "(cached) $ECHO_C" >&6 1628else 1629 ac_cv_host_alias=$host_alias 1630test -z "$ac_cv_host_alias" && 1631 ac_cv_host_alias=$ac_cv_build_alias 1632ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1633 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1634echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1635 { (exit 1); exit 1; }; } 1636 1637fi 1638echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1639echo "${ECHO_T}$ac_cv_host" >&6 1640host=$ac_cv_host 1641host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1642host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1643host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1644 1645 1646ac_ext=c 1647ac_cpp='$CPP $CPPFLAGS' 1648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1650ac_compiler_gnu=$ac_cv_c_compiler_gnu 1651if test -n "$ac_tool_prefix"; then 1652 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1653set dummy ${ac_tool_prefix}gcc; ac_word=$2 1654echo "$as_me:$LINENO: checking for $ac_word" >&5 1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1656if test "${ac_cv_prog_CC+set}" = set; then 1657 echo $ECHO_N "(cached) $ECHO_C" >&6 1658else 1659 if test -n "$CC"; then 1660 ac_cv_prog_CC="$CC" # Let the user override the test. 1661else 1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1663for as_dir in $PATH 1664do 1665 IFS=$as_save_IFS 1666 test -z "$as_dir" && as_dir=. 1667 for ac_exec_ext in '' $ac_executable_extensions; do 1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1669 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1671 break 2 1672 fi 1673done 1674done 1675 1676fi 1677fi 1678CC=$ac_cv_prog_CC 1679if test -n "$CC"; then 1680 echo "$as_me:$LINENO: result: $CC" >&5 1681echo "${ECHO_T}$CC" >&6 1682else 1683 echo "$as_me:$LINENO: result: no" >&5 1684echo "${ECHO_T}no" >&6 1685fi 1686 1687fi 1688if test -z "$ac_cv_prog_CC"; then 1689 ac_ct_CC=$CC 1690 # Extract the first word of "gcc", so it can be a program name with args. 1691set dummy gcc; ac_word=$2 1692echo "$as_me:$LINENO: checking for $ac_word" >&5 1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1694if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1695 echo $ECHO_N "(cached) $ECHO_C" >&6 1696else 1697 if test -n "$ac_ct_CC"; then 1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1699else 1700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1701for as_dir in $PATH 1702do 1703 IFS=$as_save_IFS 1704 test -z "$as_dir" && as_dir=. 1705 for ac_exec_ext in '' $ac_executable_extensions; do 1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1707 ac_cv_prog_ac_ct_CC="gcc" 1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1709 break 2 1710 fi 1711done 1712done 1713 1714fi 1715fi 1716ac_ct_CC=$ac_cv_prog_ac_ct_CC 1717if test -n "$ac_ct_CC"; then 1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1719echo "${ECHO_T}$ac_ct_CC" >&6 1720else 1721 echo "$as_me:$LINENO: result: no" >&5 1722echo "${ECHO_T}no" >&6 1723fi 1724 1725 CC=$ac_ct_CC 1726else 1727 CC="$ac_cv_prog_CC" 1728fi 1729 1730if test -z "$CC"; then 1731 if test -n "$ac_tool_prefix"; then 1732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1733set dummy ${ac_tool_prefix}cc; ac_word=$2 1734echo "$as_me:$LINENO: checking for $ac_word" >&5 1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1736if test "${ac_cv_prog_CC+set}" = set; then 1737 echo $ECHO_N "(cached) $ECHO_C" >&6 1738else 1739 if test -n "$CC"; then 1740 ac_cv_prog_CC="$CC" # Let the user override the test. 1741else 1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1743for as_dir in $PATH 1744do 1745 IFS=$as_save_IFS 1746 test -z "$as_dir" && as_dir=. 1747 for ac_exec_ext in '' $ac_executable_extensions; do 1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1749 ac_cv_prog_CC="${ac_tool_prefix}cc" 1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1751 break 2 1752 fi 1753done 1754done 1755 1756fi 1757fi 1758CC=$ac_cv_prog_CC 1759if test -n "$CC"; then 1760 echo "$as_me:$LINENO: result: $CC" >&5 1761echo "${ECHO_T}$CC" >&6 1762else 1763 echo "$as_me:$LINENO: result: no" >&5 1764echo "${ECHO_T}no" >&6 1765fi 1766 1767fi 1768if test -z "$ac_cv_prog_CC"; then 1769 ac_ct_CC=$CC 1770 # Extract the first word of "cc", so it can be a program name with args. 1771set dummy cc; ac_word=$2 1772echo "$as_me:$LINENO: checking for $ac_word" >&5 1773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1774if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1775 echo $ECHO_N "(cached) $ECHO_C" >&6 1776else 1777 if test -n "$ac_ct_CC"; then 1778 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1779else 1780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1781for as_dir in $PATH 1782do 1783 IFS=$as_save_IFS 1784 test -z "$as_dir" && as_dir=. 1785 for ac_exec_ext in '' $ac_executable_extensions; do 1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1787 ac_cv_prog_ac_ct_CC="cc" 1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1789 break 2 1790 fi 1791done 1792done 1793 1794fi 1795fi 1796ac_ct_CC=$ac_cv_prog_ac_ct_CC 1797if test -n "$ac_ct_CC"; then 1798 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1799echo "${ECHO_T}$ac_ct_CC" >&6 1800else 1801 echo "$as_me:$LINENO: result: no" >&5 1802echo "${ECHO_T}no" >&6 1803fi 1804 1805 CC=$ac_ct_CC 1806else 1807 CC="$ac_cv_prog_CC" 1808fi 1809 1810fi 1811if test -z "$CC"; then 1812 # Extract the first word of "cc", so it can be a program name with args. 1813set dummy cc; ac_word=$2 1814echo "$as_me:$LINENO: checking for $ac_word" >&5 1815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1816if test "${ac_cv_prog_CC+set}" = set; then 1817 echo $ECHO_N "(cached) $ECHO_C" >&6 1818else 1819 if test -n "$CC"; then 1820 ac_cv_prog_CC="$CC" # Let the user override the test. 1821else 1822 ac_prog_rejected=no 1823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1824for as_dir in $PATH 1825do 1826 IFS=$as_save_IFS 1827 test -z "$as_dir" && as_dir=. 1828 for ac_exec_ext in '' $ac_executable_extensions; do 1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1830 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1831 ac_prog_rejected=yes 1832 continue 1833 fi 1834 ac_cv_prog_CC="cc" 1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1836 break 2 1837 fi 1838done 1839done 1840 1841if test $ac_prog_rejected = yes; then 1842 # We found a bogon in the path, so make sure we never use it. 1843 set dummy $ac_cv_prog_CC 1844 shift 1845 if test $# != 0; then 1846 # We chose a different compiler from the bogus one. 1847 # However, it has the same basename, so the bogon will be chosen 1848 # first if we set CC to just the basename; use the full file name. 1849 shift 1850 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1851 fi 1852fi 1853fi 1854fi 1855CC=$ac_cv_prog_CC 1856if test -n "$CC"; then 1857 echo "$as_me:$LINENO: result: $CC" >&5 1858echo "${ECHO_T}$CC" >&6 1859else 1860 echo "$as_me:$LINENO: result: no" >&5 1861echo "${ECHO_T}no" >&6 1862fi 1863 1864fi 1865if test -z "$CC"; then 1866 if test -n "$ac_tool_prefix"; then 1867 for ac_prog in cl 1868 do 1869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1870set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1871echo "$as_me:$LINENO: checking for $ac_word" >&5 1872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1873if test "${ac_cv_prog_CC+set}" = set; then 1874 echo $ECHO_N "(cached) $ECHO_C" >&6 1875else 1876 if test -n "$CC"; then 1877 ac_cv_prog_CC="$CC" # Let the user override the test. 1878else 1879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1880for as_dir in $PATH 1881do 1882 IFS=$as_save_IFS 1883 test -z "$as_dir" && as_dir=. 1884 for ac_exec_ext in '' $ac_executable_extensions; do 1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1888 break 2 1889 fi 1890done 1891done 1892 1893fi 1894fi 1895CC=$ac_cv_prog_CC 1896if test -n "$CC"; then 1897 echo "$as_me:$LINENO: result: $CC" >&5 1898echo "${ECHO_T}$CC" >&6 1899else 1900 echo "$as_me:$LINENO: result: no" >&5 1901echo "${ECHO_T}no" >&6 1902fi 1903 1904 test -n "$CC" && break 1905 done 1906fi 1907if test -z "$CC"; then 1908 ac_ct_CC=$CC 1909 for ac_prog in cl 1910do 1911 # Extract the first word of "$ac_prog", so it can be a program name with args. 1912set dummy $ac_prog; ac_word=$2 1913echo "$as_me:$LINENO: checking for $ac_word" >&5 1914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1915if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1916 echo $ECHO_N "(cached) $ECHO_C" >&6 1917else 1918 if test -n "$ac_ct_CC"; then 1919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1920else 1921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1922for as_dir in $PATH 1923do 1924 IFS=$as_save_IFS 1925 test -z "$as_dir" && as_dir=. 1926 for ac_exec_ext in '' $ac_executable_extensions; do 1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1928 ac_cv_prog_ac_ct_CC="$ac_prog" 1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1930 break 2 1931 fi 1932done 1933done 1934 1935fi 1936fi 1937ac_ct_CC=$ac_cv_prog_ac_ct_CC 1938if test -n "$ac_ct_CC"; then 1939 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1940echo "${ECHO_T}$ac_ct_CC" >&6 1941else 1942 echo "$as_me:$LINENO: result: no" >&5 1943echo "${ECHO_T}no" >&6 1944fi 1945 1946 test -n "$ac_ct_CC" && break 1947done 1948 1949 CC=$ac_ct_CC 1950fi 1951 1952fi 1953 1954 1955test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1956See \`config.log' for more details." >&5 1957echo "$as_me: error: no acceptable C compiler found in \$PATH 1958See \`config.log' for more details." >&2;} 1959 { (exit 1); exit 1; }; } 1960 1961# Provide some information about the compiler. 1962echo "$as_me:$LINENO:" \ 1963 "checking for C compiler version" >&5 1964ac_compiler=`set X $ac_compile; echo $2` 1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1966 (eval $ac_compiler --version </dev/null >&5) 2>&5 1967 ac_status=$? 1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1969 (exit $ac_status); } 1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1971 (eval $ac_compiler -v </dev/null >&5) 2>&5 1972 ac_status=$? 1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1974 (exit $ac_status); } 1975{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1976 (eval $ac_compiler -V </dev/null >&5) 2>&5 1977 ac_status=$? 1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1979 (exit $ac_status); } 1980 1981cat >conftest.$ac_ext <<_ACEOF 1982/* confdefs.h. */ 1983_ACEOF 1984cat confdefs.h >>conftest.$ac_ext 1985cat >>conftest.$ac_ext <<_ACEOF 1986/* end confdefs.h. */ 1987 1988int 1989main () 1990{ 1991 1992 ; 1993 return 0; 1994} 1995_ACEOF 1996ac_clean_files_save=$ac_clean_files 1997ac_clean_files="$ac_clean_files a.out a.exe b.out" 1998# Try to create an executable without -o first, disregard a.out. 1999# It will help us diagnose broken compilers, and finding out an intuition 2000# of exeext. 2001echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2002echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2003ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2004if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2005 (eval $ac_link_default) 2>&5 2006 ac_status=$? 2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2008 (exit $ac_status); }; then 2009 # Find the output, starting from the most likely. This scheme is 2010# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2011# resort. 2012 2013# Be careful to initialize this variable, since it used to be cached. 2014# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2015ac_cv_exeext= 2016# b.out is created by i960 compilers. 2017for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2018do 2019 test -f "$ac_file" || continue 2020 case $ac_file in 2021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2022 ;; 2023 conftest.$ac_ext ) 2024 # This is the source file. 2025 ;; 2026 [ab].out ) 2027 # We found the default executable, but exeext='' is most 2028 # certainly right. 2029 break;; 2030 *.* ) 2031 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2032 # FIXME: I believe we export ac_cv_exeext for Libtool, 2033 # but it would be cool to find out if it's true. Does anybody 2034 # maintain Libtool? --akim. 2035 export ac_cv_exeext 2036 break;; 2037 * ) 2038 break;; 2039 esac 2040done 2041else 2042 echo "$as_me: failed program was:" >&5 2043sed 's/^/| /' conftest.$ac_ext >&5 2044 2045{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2046See \`config.log' for more details." >&5 2047echo "$as_me: error: C compiler cannot create executables 2048See \`config.log' for more details." >&2;} 2049 { (exit 77); exit 77; }; } 2050fi 2051 2052ac_exeext=$ac_cv_exeext 2053echo "$as_me:$LINENO: result: $ac_file" >&5 2054echo "${ECHO_T}$ac_file" >&6 2055 2056# Check the compiler produces executables we can run. If not, either 2057# the compiler is broken, or we cross compile. 2058echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2059echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2060# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2061# If not cross compiling, check that we can run a simple program. 2062if test "$cross_compiling" != yes; then 2063 if { ac_try='./$ac_file' 2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2065 (eval $ac_try) 2>&5 2066 ac_status=$? 2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2068 (exit $ac_status); }; }; then 2069 cross_compiling=no 2070 else 2071 if test "$cross_compiling" = maybe; then 2072 cross_compiling=yes 2073 else 2074 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2075If you meant to cross compile, use \`--host'. 2076See \`config.log' for more details." >&5 2077echo "$as_me: error: cannot run C compiled programs. 2078If you meant to cross compile, use \`--host'. 2079See \`config.log' for more details." >&2;} 2080 { (exit 1); exit 1; }; } 2081 fi 2082 fi 2083fi 2084echo "$as_me:$LINENO: result: yes" >&5 2085echo "${ECHO_T}yes" >&6 2086 2087rm -f a.out a.exe conftest$ac_cv_exeext b.out 2088ac_clean_files=$ac_clean_files_save 2089# Check the compiler produces executables we can run. If not, either 2090# the compiler is broken, or we cross compile. 2091echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2092echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2093echo "$as_me:$LINENO: result: $cross_compiling" >&5 2094echo "${ECHO_T}$cross_compiling" >&6 2095 2096echo "$as_me:$LINENO: checking for suffix of executables" >&5 2097echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2099 (eval $ac_link) 2>&5 2100 ac_status=$? 2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2102 (exit $ac_status); }; then 2103 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2104# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2105# work properly (i.e., refer to `conftest.exe'), while it won't with 2106# `rm'. 2107for ac_file in conftest.exe conftest conftest.*; do 2108 test -f "$ac_file" || continue 2109 case $ac_file in 2110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2111 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2112 export ac_cv_exeext 2113 break;; 2114 * ) break;; 2115 esac 2116done 2117else 2118 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2119See \`config.log' for more details." >&5 2120echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2121See \`config.log' for more details." >&2;} 2122 { (exit 1); exit 1; }; } 2123fi 2124 2125rm -f conftest$ac_cv_exeext 2126echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2127echo "${ECHO_T}$ac_cv_exeext" >&6 2128 2129rm -f conftest.$ac_ext 2130EXEEXT=$ac_cv_exeext 2131ac_exeext=$EXEEXT 2132echo "$as_me:$LINENO: checking for suffix of object files" >&5 2133echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2134if test "${ac_cv_objext+set}" = set; then 2135 echo $ECHO_N "(cached) $ECHO_C" >&6 2136else 2137 cat >conftest.$ac_ext <<_ACEOF 2138/* confdefs.h. */ 2139_ACEOF 2140cat confdefs.h >>conftest.$ac_ext 2141cat >>conftest.$ac_ext <<_ACEOF 2142/* end confdefs.h. */ 2143 2144int 2145main () 2146{ 2147 2148 ; 2149 return 0; 2150} 2151_ACEOF 2152rm -f conftest.o conftest.obj 2153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2154 (eval $ac_compile) 2>&5 2155 ac_status=$? 2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2157 (exit $ac_status); }; then 2158 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2159 case $ac_file in 2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2161 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2162 break;; 2163 esac 2164done 2165else 2166 echo "$as_me: failed program was:" >&5 2167sed 's/^/| /' conftest.$ac_ext >&5 2168 2169{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2170See \`config.log' for more details." >&5 2171echo "$as_me: error: cannot compute suffix of object files: cannot compile 2172See \`config.log' for more details." >&2;} 2173 { (exit 1); exit 1; }; } 2174fi 2175 2176rm -f conftest.$ac_cv_objext conftest.$ac_ext 2177fi 2178echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2179echo "${ECHO_T}$ac_cv_objext" >&6 2180OBJEXT=$ac_cv_objext 2181ac_objext=$OBJEXT 2182echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2183echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2184if test "${ac_cv_c_compiler_gnu+set}" = set; then 2185 echo $ECHO_N "(cached) $ECHO_C" >&6 2186else 2187 cat >conftest.$ac_ext <<_ACEOF 2188/* confdefs.h. */ 2189_ACEOF 2190cat confdefs.h >>conftest.$ac_ext 2191cat >>conftest.$ac_ext <<_ACEOF 2192/* end confdefs.h. */ 2193 2194int 2195main () 2196{ 2197#ifndef __GNUC__ 2198 choke me 2199#endif 2200 2201 ; 2202 return 0; 2203} 2204_ACEOF 2205rm -f conftest.$ac_objext 2206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2207 (eval $ac_compile) 2>conftest.er1 2208 ac_status=$? 2209 grep -v '^ *+' conftest.er1 >conftest.err 2210 rm -f conftest.er1 2211 cat conftest.err >&5 2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2213 (exit $ac_status); } && 2214 { ac_try='test -z "$ac_c_werror_flag" 2215 || test ! -s conftest.err' 2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2217 (eval $ac_try) 2>&5 2218 ac_status=$? 2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2220 (exit $ac_status); }; } && 2221 { ac_try='test -s conftest.$ac_objext' 2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2223 (eval $ac_try) 2>&5 2224 ac_status=$? 2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2226 (exit $ac_status); }; }; then 2227 ac_compiler_gnu=yes 2228else 2229 echo "$as_me: failed program was:" >&5 2230sed 's/^/| /' conftest.$ac_ext >&5 2231 2232ac_compiler_gnu=no 2233fi 2234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2235ac_cv_c_compiler_gnu=$ac_compiler_gnu 2236 2237fi 2238echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2239echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2240GCC=`test $ac_compiler_gnu = yes && echo yes` 2241ac_test_CFLAGS=${CFLAGS+set} 2242ac_save_CFLAGS=$CFLAGS 2243CFLAGS="-g" 2244echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2245echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2246if test "${ac_cv_prog_cc_g+set}" = set; then 2247 echo $ECHO_N "(cached) $ECHO_C" >&6 2248else 2249 cat >conftest.$ac_ext <<_ACEOF 2250/* confdefs.h. */ 2251_ACEOF 2252cat confdefs.h >>conftest.$ac_ext 2253cat >>conftest.$ac_ext <<_ACEOF 2254/* end confdefs.h. */ 2255 2256int 2257main () 2258{ 2259 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264rm -f conftest.$ac_objext 2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2266 (eval $ac_compile) 2>conftest.er1 2267 ac_status=$? 2268 grep -v '^ *+' conftest.er1 >conftest.err 2269 rm -f conftest.er1 2270 cat conftest.err >&5 2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2272 (exit $ac_status); } && 2273 { ac_try='test -z "$ac_c_werror_flag" 2274 || test ! -s conftest.err' 2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2276 (eval $ac_try) 2>&5 2277 ac_status=$? 2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2279 (exit $ac_status); }; } && 2280 { ac_try='test -s conftest.$ac_objext' 2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2282 (eval $ac_try) 2>&5 2283 ac_status=$? 2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2285 (exit $ac_status); }; }; then 2286 ac_cv_prog_cc_g=yes 2287else 2288 echo "$as_me: failed program was:" >&5 2289sed 's/^/| /' conftest.$ac_ext >&5 2290 2291ac_cv_prog_cc_g=no 2292fi 2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2294fi 2295echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2296echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2297if test "$ac_test_CFLAGS" = set; then 2298 CFLAGS=$ac_save_CFLAGS 2299elif test $ac_cv_prog_cc_g = yes; then 2300 if test "$GCC" = yes; then 2301 CFLAGS="-g -O2" 2302 else 2303 CFLAGS="-g" 2304 fi 2305else 2306 if test "$GCC" = yes; then 2307 CFLAGS="-O2" 2308 else 2309 CFLAGS= 2310 fi 2311fi 2312echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2313echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2314if test "${ac_cv_prog_cc_stdc+set}" = set; then 2315 echo $ECHO_N "(cached) $ECHO_C" >&6 2316else 2317 ac_cv_prog_cc_stdc=no 2318ac_save_CC=$CC 2319cat >conftest.$ac_ext <<_ACEOF 2320/* confdefs.h. */ 2321_ACEOF 2322cat confdefs.h >>conftest.$ac_ext 2323cat >>conftest.$ac_ext <<_ACEOF 2324/* end confdefs.h. */ 2325#include <stdarg.h> 2326#include <stdio.h> 2327#include <sys/types.h> 2328#include <sys/stat.h> 2329/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2330struct buf { int x; }; 2331FILE * (*rcsopen) (struct buf *, struct stat *, int); 2332static char *e (p, i) 2333 char **p; 2334 int i; 2335{ 2336 return p[i]; 2337} 2338static char *f (char * (*g) (char **, int), char **p, ...) 2339{ 2340 char *s; 2341 va_list v; 2342 va_start (v,p); 2343 s = g (p, va_arg (v,int)); 2344 va_end (v); 2345 return s; 2346} 2347 2348/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2349 function prototypes and stuff, but not '\xHH' hex character constants. 2350 These don't provoke an error unfortunately, instead are silently treated 2351 as 'x'. The following induces an error, until -std1 is added to get 2352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2353 array size at least. It's necessary to write '\x00'==0 to get something 2354 that's true only with -std1. */ 2355int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2356 2357int test (int i, double x); 2358struct s1 {int (*f) (int a);}; 2359struct s2 {int (*f) (double a);}; 2360int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2361int argc; 2362char **argv; 2363int 2364main () 2365{ 2366return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2367 ; 2368 return 0; 2369} 2370_ACEOF 2371# Don't try gcc -ansi; that turns off useful extensions and 2372# breaks some systems' header files. 2373# AIX -qlanglvl=ansi 2374# Ultrix and OSF/1 -std1 2375# HP-UX 10.20 and later -Ae 2376# HP-UX older versions -Aa -D_HPUX_SOURCE 2377# SVR4 -Xc -D__EXTENSIONS__ 2378for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2379do 2380 CC="$ac_save_CC $ac_arg" 2381 rm -f conftest.$ac_objext 2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2383 (eval $ac_compile) 2>conftest.er1 2384 ac_status=$? 2385 grep -v '^ *+' conftest.er1 >conftest.err 2386 rm -f conftest.er1 2387 cat conftest.err >&5 2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2389 (exit $ac_status); } && 2390 { ac_try='test -z "$ac_c_werror_flag" 2391 || test ! -s conftest.err' 2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2393 (eval $ac_try) 2>&5 2394 ac_status=$? 2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2396 (exit $ac_status); }; } && 2397 { ac_try='test -s conftest.$ac_objext' 2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2399 (eval $ac_try) 2>&5 2400 ac_status=$? 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); }; }; then 2403 ac_cv_prog_cc_stdc=$ac_arg 2404break 2405else 2406 echo "$as_me: failed program was:" >&5 2407sed 's/^/| /' conftest.$ac_ext >&5 2408 2409fi 2410rm -f conftest.err conftest.$ac_objext 2411done 2412rm -f conftest.$ac_ext conftest.$ac_objext 2413CC=$ac_save_CC 2414 2415fi 2416 2417case "x$ac_cv_prog_cc_stdc" in 2418 x|xno) 2419 echo "$as_me:$LINENO: result: none needed" >&5 2420echo "${ECHO_T}none needed" >&6 ;; 2421 *) 2422 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2423echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2424 CC="$CC $ac_cv_prog_cc_stdc" ;; 2425esac 2426 2427# Some people use a C++ compiler to compile C. Since we use `exit', 2428# in C++ we need to declare it. In case someone uses the same compiler 2429# for both compiling C and C++ we need to have the C++ compiler decide 2430# the declaration of exit, since it's the most demanding environment. 2431cat >conftest.$ac_ext <<_ACEOF 2432#ifndef __cplusplus 2433 choke me 2434#endif 2435_ACEOF 2436rm -f conftest.$ac_objext 2437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2438 (eval $ac_compile) 2>conftest.er1 2439 ac_status=$? 2440 grep -v '^ *+' conftest.er1 >conftest.err 2441 rm -f conftest.er1 2442 cat conftest.err >&5 2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2444 (exit $ac_status); } && 2445 { ac_try='test -z "$ac_c_werror_flag" 2446 || test ! -s conftest.err' 2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2448 (eval $ac_try) 2>&5 2449 ac_status=$? 2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2451 (exit $ac_status); }; } && 2452 { ac_try='test -s conftest.$ac_objext' 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2454 (eval $ac_try) 2>&5 2455 ac_status=$? 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2457 (exit $ac_status); }; }; then 2458 for ac_declaration in \ 2459 '' \ 2460 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2461 'extern "C" void std::exit (int); using std::exit;' \ 2462 'extern "C" void exit (int) throw ();' \ 2463 'extern "C" void exit (int);' \ 2464 'void exit (int);' 2465do 2466 cat >conftest.$ac_ext <<_ACEOF 2467/* confdefs.h. */ 2468_ACEOF 2469cat confdefs.h >>conftest.$ac_ext 2470cat >>conftest.$ac_ext <<_ACEOF 2471/* end confdefs.h. */ 2472$ac_declaration 2473#include <stdlib.h> 2474int 2475main () 2476{ 2477exit (42); 2478 ; 2479 return 0; 2480} 2481_ACEOF 2482rm -f conftest.$ac_objext 2483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2484 (eval $ac_compile) 2>conftest.er1 2485 ac_status=$? 2486 grep -v '^ *+' conftest.er1 >conftest.err 2487 rm -f conftest.er1 2488 cat conftest.err >&5 2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2490 (exit $ac_status); } && 2491 { ac_try='test -z "$ac_c_werror_flag" 2492 || test ! -s conftest.err' 2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2494 (eval $ac_try) 2>&5 2495 ac_status=$? 2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2497 (exit $ac_status); }; } && 2498 { ac_try='test -s conftest.$ac_objext' 2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2500 (eval $ac_try) 2>&5 2501 ac_status=$? 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); }; }; then 2504 : 2505else 2506 echo "$as_me: failed program was:" >&5 2507sed 's/^/| /' conftest.$ac_ext >&5 2508 2509continue 2510fi 2511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2512 cat >conftest.$ac_ext <<_ACEOF 2513/* confdefs.h. */ 2514_ACEOF 2515cat confdefs.h >>conftest.$ac_ext 2516cat >>conftest.$ac_ext <<_ACEOF 2517/* end confdefs.h. */ 2518$ac_declaration 2519int 2520main () 2521{ 2522exit (42); 2523 ; 2524 return 0; 2525} 2526_ACEOF 2527rm -f conftest.$ac_objext 2528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2529 (eval $ac_compile) 2>conftest.er1 2530 ac_status=$? 2531 grep -v '^ *+' conftest.er1 >conftest.err 2532 rm -f conftest.er1 2533 cat conftest.err >&5 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); } && 2536 { ac_try='test -z "$ac_c_werror_flag" 2537 || test ! -s conftest.err' 2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2539 (eval $ac_try) 2>&5 2540 ac_status=$? 2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2542 (exit $ac_status); }; } && 2543 { ac_try='test -s conftest.$ac_objext' 2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2545 (eval $ac_try) 2>&5 2546 ac_status=$? 2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2548 (exit $ac_status); }; }; then 2549 break 2550else 2551 echo "$as_me: failed program was:" >&5 2552sed 's/^/| /' conftest.$ac_ext >&5 2553 2554fi 2555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2556done 2557rm -f conftest* 2558if test -n "$ac_declaration"; then 2559 echo '#ifdef __cplusplus' >>confdefs.h 2560 echo $ac_declaration >>confdefs.h 2561 echo '#endif' >>confdefs.h 2562fi 2563 2564else 2565 echo "$as_me: failed program was:" >&5 2566sed 's/^/| /' conftest.$ac_ext >&5 2567 2568fi 2569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2570ac_ext=c 2571ac_cpp='$CPP $CPPFLAGS' 2572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2574ac_compiler_gnu=$ac_cv_c_compiler_gnu 2575 2576echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 2577echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 2578if test "${lt_cv_path_SED+set}" = set; then 2579 echo $ECHO_N "(cached) $ECHO_C" >&6 2580else 2581 # Loop through the user's path and test for sed and gsed. 2582# Then use that list of sed's as ones to test for truncation. 2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2584for as_dir in $PATH 2585do 2586 IFS=$as_save_IFS 2587 test -z "$as_dir" && as_dir=. 2588 for lt_ac_prog in sed gsed; do 2589 for ac_exec_ext in '' $ac_executable_extensions; do 2590 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 2591 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 2592 fi 2593 done 2594 done 2595done 2596IFS=$as_save_IFS 2597lt_ac_max=0 2598lt_ac_count=0 2599# Add /usr/xpg4/bin/sed as it is typically found on Solaris 2600# along with /bin/sed that truncates output. 2601for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 2602 test ! -f $lt_ac_sed && continue 2603 cat /dev/null > conftest.in 2604 lt_ac_count=0 2605 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 2606 # Check for GNU sed and select it if it is found. 2607 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 2608 lt_cv_path_SED=$lt_ac_sed 2609 break 2610 fi 2611 while true; do 2612 cat conftest.in conftest.in >conftest.tmp 2613 mv conftest.tmp conftest.in 2614 cp conftest.in conftest.nl 2615 echo >>conftest.nl 2616 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 2617 cmp -s conftest.out conftest.nl || break 2618 # 10000 chars as input seems more than enough 2619 test $lt_ac_count -gt 10 && break 2620 lt_ac_count=`expr $lt_ac_count + 1` 2621 if test $lt_ac_count -gt $lt_ac_max; then 2622 lt_ac_max=$lt_ac_count 2623 lt_cv_path_SED=$lt_ac_sed 2624 fi 2625 done 2626done 2627 2628fi 2629 2630SED=$lt_cv_path_SED 2631 2632echo "$as_me:$LINENO: result: $SED" >&5 2633echo "${ECHO_T}$SED" >&6 2634 2635echo "$as_me:$LINENO: checking for egrep" >&5 2636echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2637if test "${ac_cv_prog_egrep+set}" = set; then 2638 echo $ECHO_N "(cached) $ECHO_C" >&6 2639else 2640 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2641 then ac_cv_prog_egrep='grep -E' 2642 else ac_cv_prog_egrep='egrep' 2643 fi 2644fi 2645echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2646echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2647 EGREP=$ac_cv_prog_egrep 2648 2649 2650 2651# Check whether --with-gnu-ld or --without-gnu-ld was given. 2652if test "${with_gnu_ld+set}" = set; then 2653 withval="$with_gnu_ld" 2654 test "$withval" = no || with_gnu_ld=yes 2655else 2656 with_gnu_ld=no 2657fi; 2658ac_prog=ld 2659if test "$GCC" = yes; then 2660 # Check if gcc -print-prog-name=ld gives a path. 2661 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 2662echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 2663 case $host in 2664 *-*-mingw*) 2665 # gcc leaves a trailing carriage return which upsets mingw 2666 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2667 *) 2668 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2669 esac 2670 case $ac_prog in 2671 # Accept absolute paths. 2672 [\\/]* | ?:[\\/]*) 2673 re_direlt='/[^/][^/]*/\.\./' 2674 # Canonicalize the pathname of ld 2675 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2676 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2677 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 2678 done 2679 test -z "$LD" && LD="$ac_prog" 2680 ;; 2681 "") 2682 # If it fails, then pretend we aren't using GCC. 2683 ac_prog=ld 2684 ;; 2685 *) 2686 # If it is relative, then search for the first ld in PATH. 2687 with_gnu_ld=unknown 2688 ;; 2689 esac 2690elif test "$with_gnu_ld" = yes; then 2691 echo "$as_me:$LINENO: checking for GNU ld" >&5 2692echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 2693else 2694 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 2695echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 2696fi 2697if test "${lt_cv_path_LD+set}" = set; then 2698 echo $ECHO_N "(cached) $ECHO_C" >&6 2699else 2700 if test -z "$LD"; then 2701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2702 for ac_dir in $PATH; do 2703 IFS="$lt_save_ifs" 2704 test -z "$ac_dir" && ac_dir=. 2705 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2706 lt_cv_path_LD="$ac_dir/$ac_prog" 2707 # Check to see if the program is GNU ld. I'd rather use --version, 2708 # but apparently some variants of GNU ld only accept -v. 2709 # Break only if it was the GNU/non-GNU ld that we prefer. 2710 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2711 *GNU* | *'with BFD'*) 2712 test "$with_gnu_ld" != no && break 2713 ;; 2714 *) 2715 test "$with_gnu_ld" != yes && break 2716 ;; 2717 esac 2718 fi 2719 done 2720 IFS="$lt_save_ifs" 2721else 2722 lt_cv_path_LD="$LD" # Let the user override the test with a path. 2723fi 2724fi 2725 2726LD="$lt_cv_path_LD" 2727if test -n "$LD"; then 2728 echo "$as_me:$LINENO: result: $LD" >&5 2729echo "${ECHO_T}$LD" >&6 2730else 2731 echo "$as_me:$LINENO: result: no" >&5 2732echo "${ECHO_T}no" >&6 2733fi 2734test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 2735echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 2736 { (exit 1); exit 1; }; } 2737echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 2738echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 2739if test "${lt_cv_prog_gnu_ld+set}" = set; then 2740 echo $ECHO_N "(cached) $ECHO_C" >&6 2741else 2742 # I'd rather use --version here, but apparently some GNU lds only accept -v. 2743case `$LD -v 2>&1 </dev/null` in 2744*GNU* | *'with BFD'*) 2745 lt_cv_prog_gnu_ld=yes 2746 ;; 2747*) 2748 lt_cv_prog_gnu_ld=no 2749 ;; 2750esac 2751fi 2752echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 2753echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 2754with_gnu_ld=$lt_cv_prog_gnu_ld 2755 2756 2757echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 2758echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 2759if test "${lt_cv_ld_reload_flag+set}" = set; then 2760 echo $ECHO_N "(cached) $ECHO_C" >&6 2761else 2762 lt_cv_ld_reload_flag='-r' 2763fi 2764echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 2765echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 2766reload_flag=$lt_cv_ld_reload_flag 2767case $reload_flag in 2768"" | " "*) ;; 2769*) reload_flag=" $reload_flag" ;; 2770esac 2771reload_cmds='$LD$reload_flag -o $output$reload_objs' 2772case $host_os in 2773 darwin*) 2774 if test "$GCC" = yes; then 2775 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 2776 else 2777 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2778 fi 2779 ;; 2780esac 2781 2782echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 2783echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 2784if test "${lt_cv_path_NM+set}" = set; then 2785 echo $ECHO_N "(cached) $ECHO_C" >&6 2786else 2787 if test -n "$NM"; then 2788 # Let the user override the test. 2789 lt_cv_path_NM="$NM" 2790else 2791 lt_nm_to_check="${ac_tool_prefix}nm" 2792 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 2793 lt_nm_to_check="$lt_nm_to_check nm" 2794 fi 2795 for lt_tmp_nm in $lt_nm_to_check; do 2796 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2797 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 2798 IFS="$lt_save_ifs" 2799 test -z "$ac_dir" && ac_dir=. 2800 tmp_nm="$ac_dir/$lt_tmp_nm" 2801 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2802 # Check to see if the nm accepts a BSD-compat flag. 2803 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2804 # nm: unknown option "B" ignored 2805 # Tru64's nm complains that /dev/null is an invalid object file 2806 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2807 */dev/null* | *'Invalid file or object type'*) 2808 lt_cv_path_NM="$tmp_nm -B" 2809 break 2810 ;; 2811 *) 2812 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2813 */dev/null*) 2814 lt_cv_path_NM="$tmp_nm -p" 2815 break 2816 ;; 2817 *) 2818 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2819 continue # so that we can try to find one that supports BSD flags 2820 ;; 2821 esac 2822 ;; 2823 esac 2824 fi 2825 done 2826 IFS="$lt_save_ifs" 2827 done 2828 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2829fi 2830fi 2831echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 2832echo "${ECHO_T}$lt_cv_path_NM" >&6 2833NM="$lt_cv_path_NM" 2834 2835echo "$as_me:$LINENO: checking whether ln -s works" >&5 2836echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2837LN_S=$as_ln_s 2838if test "$LN_S" = "ln -s"; then 2839 echo "$as_me:$LINENO: result: yes" >&5 2840echo "${ECHO_T}yes" >&6 2841else 2842 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2843echo "${ECHO_T}no, using $LN_S" >&6 2844fi 2845 2846echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 2847echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 2848if test "${lt_cv_deplibs_check_method+set}" = set; then 2849 echo $ECHO_N "(cached) $ECHO_C" >&6 2850else 2851 lt_cv_file_magic_cmd='$MAGIC_CMD' 2852lt_cv_file_magic_test_file= 2853lt_cv_deplibs_check_method='unknown' 2854# Need to set the preceding variable on all platforms that support 2855# interlibrary dependencies. 2856# 'none' -- dependencies not supported. 2857# `unknown' -- same as none, but documents that we really don't know. 2858# 'pass_all' -- all dependencies passed with no checks. 2859# 'test_compile' -- check by making test program. 2860# 'file_magic [[regex]]' -- check by looking for files in library path 2861# which responds to the $file_magic_cmd with a given extended regex. 2862# If you have `file' or equivalent on your system and you're not sure 2863# whether `pass_all' will *always* work, you probably want this one. 2864 2865case $host_os in 2866aix4* | aix5*) 2867 lt_cv_deplibs_check_method=pass_all 2868 ;; 2869 2870beos*) 2871 lt_cv_deplibs_check_method=pass_all 2872 ;; 2873 2874bsdi[45]*) 2875 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 2876 lt_cv_file_magic_cmd='/usr/bin/file -L' 2877 lt_cv_file_magic_test_file=/shlib/libc.so 2878 ;; 2879 2880cygwin*) 2881 # func_win32_libid is a shell function defined in ltmain.sh 2882 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2883 lt_cv_file_magic_cmd='func_win32_libid' 2884 ;; 2885 2886mingw* | pw32*) 2887 # Base MSYS/MinGW do not provide the 'file' command needed by 2888 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2889 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2890 lt_cv_file_magic_cmd='$OBJDUMP -f' 2891 ;; 2892 2893darwin* | rhapsody*) 2894 lt_cv_deplibs_check_method=pass_all 2895 ;; 2896 2897freebsd* | kfreebsd*-gnu | dragonfly*) 2898 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2899 case $host_cpu in 2900 i*86 ) 2901 # Not sure whether the presence of OpenBSD here was a mistake. 2902 # Let's accept both of them until this is cleared up. 2903 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 2904 lt_cv_file_magic_cmd=/usr/bin/file 2905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2906 ;; 2907 esac 2908 else 2909 lt_cv_deplibs_check_method=pass_all 2910 fi 2911 ;; 2912 2913gnu*) 2914 lt_cv_deplibs_check_method=pass_all 2915 ;; 2916 2917hpux10.20* | hpux11*) 2918 lt_cv_file_magic_cmd=/usr/bin/file 2919 case $host_cpu in 2920 ia64*) 2921 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 2922 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 2923 ;; 2924 hppa*64*) 2925 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]' 2926 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 2927 ;; 2928 *) 2929 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 2930 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2931 ;; 2932 esac 2933 ;; 2934 2935interix3*) 2936 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 2937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 2938 ;; 2939 2940irix5* | irix6* | nonstopux*) 2941 case $LD in 2942 *-32|*"-32 ") libmagic=32-bit;; 2943 *-n32|*"-n32 ") libmagic=N32;; 2944 *-64|*"-64 ") libmagic=64-bit;; 2945 *) libmagic=never-match;; 2946 esac 2947 lt_cv_deplibs_check_method=pass_all 2948 ;; 2949 2950# This must be Linux ELF. 2951linux*) 2952 lt_cv_deplibs_check_method=pass_all 2953 ;; 2954 2955netbsd*) 2956 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 2958 else 2959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 2960 fi 2961 ;; 2962 2963newos6*) 2964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 2965 lt_cv_file_magic_cmd=/usr/bin/file 2966 lt_cv_file_magic_test_file=/usr/lib/libnls.so 2967 ;; 2968 2969nto-qnx*) 2970 lt_cv_deplibs_check_method=unknown 2971 ;; 2972 2973openbsd*) 2974 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 2976 else 2977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 2978 fi 2979 ;; 2980 2981osf3* | osf4* | osf5*) 2982 lt_cv_deplibs_check_method=pass_all 2983 ;; 2984 2985solaris*) 2986 lt_cv_deplibs_check_method=pass_all 2987 ;; 2988 2989sysv4 | sysv4.3*) 2990 case $host_vendor in 2991 motorola) 2992 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]' 2993 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 2994 ;; 2995 ncr) 2996 lt_cv_deplibs_check_method=pass_all 2997 ;; 2998 sequent) 2999 lt_cv_file_magic_cmd='/bin/file' 3000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3001 ;; 3002 sni) 3003 lt_cv_file_magic_cmd='/bin/file' 3004 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3005 lt_cv_file_magic_test_file=/lib/libc.so 3006 ;; 3007 siemens) 3008 lt_cv_deplibs_check_method=pass_all 3009 ;; 3010 pc) 3011 lt_cv_deplibs_check_method=pass_all 3012 ;; 3013 esac 3014 ;; 3015 3016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3017 lt_cv_deplibs_check_method=pass_all 3018 ;; 3019esac 3020 3021fi 3022echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3023echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3024file_magic_cmd=$lt_cv_file_magic_cmd 3025deplibs_check_method=$lt_cv_deplibs_check_method 3026test -z "$deplibs_check_method" && deplibs_check_method=unknown 3027 3028 3029 3030 3031# If no C compiler was specified, use CC. 3032LTCC=${LTCC-"$CC"} 3033 3034# If no C compiler flags were specified, use CFLAGS. 3035LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3036 3037# Allow CC to be a program name with arguments. 3038compiler=$CC 3039 3040 3041# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3042if test "${enable_libtool_lock+set}" = set; then 3043 enableval="$enable_libtool_lock" 3044 3045fi; 3046test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3047 3048# Some flags need to be propagated to the compiler or linker for good 3049# libtool support. 3050case $host in 3051ia64-*-hpux*) 3052 # Find out which ABI we are using. 3053 echo 'int i;' > conftest.$ac_ext 3054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3055 (eval $ac_compile) 2>&5 3056 ac_status=$? 3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3058 (exit $ac_status); }; then 3059 case `/usr/bin/file conftest.$ac_objext` in 3060 *ELF-32*) 3061 HPUX_IA64_MODE="32" 3062 ;; 3063 *ELF-64*) 3064 HPUX_IA64_MODE="64" 3065 ;; 3066 esac 3067 fi 3068 rm -rf conftest* 3069 ;; 3070*-*-irix6*) 3071 # Find out which ABI we are using. 3072 echo '#line 3072 "configure"' > conftest.$ac_ext 3073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3074 (eval $ac_compile) 2>&5 3075 ac_status=$? 3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3077 (exit $ac_status); }; then 3078 if test "$lt_cv_prog_gnu_ld" = yes; then 3079 case `/usr/bin/file conftest.$ac_objext` in 3080 *32-bit*) 3081 LD="${LD-ld} -melf32bsmip" 3082 ;; 3083 *N32*) 3084 LD="${LD-ld} -melf32bmipn32" 3085 ;; 3086 *64-bit*) 3087 LD="${LD-ld} -melf64bmip" 3088 ;; 3089 esac 3090 else 3091 case `/usr/bin/file conftest.$ac_objext` in 3092 *32-bit*) 3093 LD="${LD-ld} -32" 3094 ;; 3095 *N32*) 3096 LD="${LD-ld} -n32" 3097 ;; 3098 *64-bit*) 3099 LD="${LD-ld} -64" 3100 ;; 3101 esac 3102 fi 3103 fi 3104 rm -rf conftest* 3105 ;; 3106 3107x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3108 # Find out which ABI we are using. 3109 echo 'int i;' > conftest.$ac_ext 3110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3111 (eval $ac_compile) 2>&5 3112 ac_status=$? 3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3114 (exit $ac_status); }; then 3115 case `/usr/bin/file conftest.o` in 3116 *32-bit*) 3117 case $host in 3118 x86_64-*linux*) 3119 LD="${LD-ld} -m elf_i386" 3120 ;; 3121 ppc64-*linux*|powerpc64-*linux*) 3122 LD="${LD-ld} -m elf32ppclinux" 3123 ;; 3124 s390x-*linux*) 3125 LD="${LD-ld} -m elf_s390" 3126 ;; 3127 sparc64-*linux*) 3128 LD="${LD-ld} -m elf32_sparc" 3129 ;; 3130 esac 3131 ;; 3132 *64-bit*) 3133 case $host in 3134 x86_64-*linux*) 3135 LD="${LD-ld} -m elf_x86_64" 3136 ;; 3137 ppc*-*linux*|powerpc*-*linux*) 3138 LD="${LD-ld} -m elf64ppc" 3139 ;; 3140 s390*-*linux*) 3141 LD="${LD-ld} -m elf64_s390" 3142 ;; 3143 sparc*-*linux*) 3144 LD="${LD-ld} -m elf64_sparc" 3145 ;; 3146 esac 3147 ;; 3148 esac 3149 fi 3150 rm -rf conftest* 3151 ;; 3152 3153*-*-sco3.2v5*) 3154 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3155 SAVE_CFLAGS="$CFLAGS" 3156 CFLAGS="$CFLAGS -belf" 3157 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3158echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3159if test "${lt_cv_cc_needs_belf+set}" = set; then 3160 echo $ECHO_N "(cached) $ECHO_C" >&6 3161else 3162 ac_ext=c 3163ac_cpp='$CPP $CPPFLAGS' 3164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3166ac_compiler_gnu=$ac_cv_c_compiler_gnu 3167 3168 cat >conftest.$ac_ext <<_ACEOF 3169/* confdefs.h. */ 3170_ACEOF 3171cat confdefs.h >>conftest.$ac_ext 3172cat >>conftest.$ac_ext <<_ACEOF 3173/* end confdefs.h. */ 3174 3175int 3176main () 3177{ 3178 3179 ; 3180 return 0; 3181} 3182_ACEOF 3183rm -f conftest.$ac_objext conftest$ac_exeext 3184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3185 (eval $ac_link) 2>conftest.er1 3186 ac_status=$? 3187 grep -v '^ *+' conftest.er1 >conftest.err 3188 rm -f conftest.er1 3189 cat conftest.err >&5 3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3191 (exit $ac_status); } && 3192 { ac_try='test -z "$ac_c_werror_flag" 3193 || test ! -s conftest.err' 3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3195 (eval $ac_try) 2>&5 3196 ac_status=$? 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 (exit $ac_status); }; } && 3199 { ac_try='test -s conftest$ac_exeext' 3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3201 (eval $ac_try) 2>&5 3202 ac_status=$? 3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); }; }; then 3205 lt_cv_cc_needs_belf=yes 3206else 3207 echo "$as_me: failed program was:" >&5 3208sed 's/^/| /' conftest.$ac_ext >&5 3209 3210lt_cv_cc_needs_belf=no 3211fi 3212rm -f conftest.err conftest.$ac_objext \ 3213 conftest$ac_exeext conftest.$ac_ext 3214 ac_ext=c 3215ac_cpp='$CPP $CPPFLAGS' 3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3218ac_compiler_gnu=$ac_cv_c_compiler_gnu 3219 3220fi 3221echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3222echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3223 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3224 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3225 CFLAGS="$SAVE_CFLAGS" 3226 fi 3227 ;; 3228sparc*-*solaris*) 3229 # Find out which ABI we are using. 3230 echo 'int i;' > conftest.$ac_ext 3231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3232 (eval $ac_compile) 2>&5 3233 ac_status=$? 3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3235 (exit $ac_status); }; then 3236 case `/usr/bin/file conftest.o` in 3237 *64-bit*) 3238 case $lt_cv_prog_gnu_ld in 3239 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3240 *) LD="${LD-ld} -64" ;; 3241 esac 3242 ;; 3243 esac 3244 fi 3245 rm -rf conftest* 3246 ;; 3247 3248 3249esac 3250 3251need_locks="$enable_libtool_lock" 3252 3253 3254ac_ext=c 3255ac_cpp='$CPP $CPPFLAGS' 3256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3258ac_compiler_gnu=$ac_cv_c_compiler_gnu 3259echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3260echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3261# On Suns, sometimes $CPP names a directory. 3262if test -n "$CPP" && test -d "$CPP"; then 3263 CPP= 3264fi 3265if test -z "$CPP"; then 3266 if test "${ac_cv_prog_CPP+set}" = set; then 3267 echo $ECHO_N "(cached) $ECHO_C" >&6 3268else 3269 # Double quotes because CPP needs to be expanded 3270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3271 do 3272 ac_preproc_ok=false 3273for ac_c_preproc_warn_flag in '' yes 3274do 3275 # Use a header file that comes with gcc, so configuring glibc 3276 # with a fresh cross-compiler works. 3277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3278 # <limits.h> exists even on freestanding compilers. 3279 # On the NeXT, cc -E runs the code through the compiler's parser, 3280 # not just through cpp. "Syntax error" is here to catch this case. 3281 cat >conftest.$ac_ext <<_ACEOF 3282/* confdefs.h. */ 3283_ACEOF 3284cat confdefs.h >>conftest.$ac_ext 3285cat >>conftest.$ac_ext <<_ACEOF 3286/* end confdefs.h. */ 3287#ifdef __STDC__ 3288# include <limits.h> 3289#else 3290# include <assert.h> 3291#endif 3292 Syntax error 3293_ACEOF 3294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3296 ac_status=$? 3297 grep -v '^ *+' conftest.er1 >conftest.err 3298 rm -f conftest.er1 3299 cat conftest.err >&5 3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3301 (exit $ac_status); } >/dev/null; then 3302 if test -s conftest.err; then 3303 ac_cpp_err=$ac_c_preproc_warn_flag 3304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3305 else 3306 ac_cpp_err= 3307 fi 3308else 3309 ac_cpp_err=yes 3310fi 3311if test -z "$ac_cpp_err"; then 3312 : 3313else 3314 echo "$as_me: failed program was:" >&5 3315sed 's/^/| /' conftest.$ac_ext >&5 3316 3317 # Broken: fails on valid input. 3318continue 3319fi 3320rm -f conftest.err conftest.$ac_ext 3321 3322 # OK, works on sane cases. Now check whether non-existent headers 3323 # can be detected and how. 3324 cat >conftest.$ac_ext <<_ACEOF 3325/* confdefs.h. */ 3326_ACEOF 3327cat confdefs.h >>conftest.$ac_ext 3328cat >>conftest.$ac_ext <<_ACEOF 3329/* end confdefs.h. */ 3330#include <ac_nonexistent.h> 3331_ACEOF 3332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3334 ac_status=$? 3335 grep -v '^ *+' conftest.er1 >conftest.err 3336 rm -f conftest.er1 3337 cat conftest.err >&5 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); } >/dev/null; then 3340 if test -s conftest.err; then 3341 ac_cpp_err=$ac_c_preproc_warn_flag 3342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3343 else 3344 ac_cpp_err= 3345 fi 3346else 3347 ac_cpp_err=yes 3348fi 3349if test -z "$ac_cpp_err"; then 3350 # Broken: success on invalid input. 3351continue 3352else 3353 echo "$as_me: failed program was:" >&5 3354sed 's/^/| /' conftest.$ac_ext >&5 3355 3356 # Passes both tests. 3357ac_preproc_ok=: 3358break 3359fi 3360rm -f conftest.err conftest.$ac_ext 3361 3362done 3363# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3364rm -f conftest.err conftest.$ac_ext 3365if $ac_preproc_ok; then 3366 break 3367fi 3368 3369 done 3370 ac_cv_prog_CPP=$CPP 3371 3372fi 3373 CPP=$ac_cv_prog_CPP 3374else 3375 ac_cv_prog_CPP=$CPP 3376fi 3377echo "$as_me:$LINENO: result: $CPP" >&5 3378echo "${ECHO_T}$CPP" >&6 3379ac_preproc_ok=false 3380for ac_c_preproc_warn_flag in '' yes 3381do 3382 # Use a header file that comes with gcc, so configuring glibc 3383 # with a fresh cross-compiler works. 3384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3385 # <limits.h> exists even on freestanding compilers. 3386 # On the NeXT, cc -E runs the code through the compiler's parser, 3387 # not just through cpp. "Syntax error" is here to catch this case. 3388 cat >conftest.$ac_ext <<_ACEOF 3389/* confdefs.h. */ 3390_ACEOF 3391cat confdefs.h >>conftest.$ac_ext 3392cat >>conftest.$ac_ext <<_ACEOF 3393/* end confdefs.h. */ 3394#ifdef __STDC__ 3395# include <limits.h> 3396#else 3397# include <assert.h> 3398#endif 3399 Syntax error 3400_ACEOF 3401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3403 ac_status=$? 3404 grep -v '^ *+' conftest.er1 >conftest.err 3405 rm -f conftest.er1 3406 cat conftest.err >&5 3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3408 (exit $ac_status); } >/dev/null; then 3409 if test -s conftest.err; then 3410 ac_cpp_err=$ac_c_preproc_warn_flag 3411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3412 else 3413 ac_cpp_err= 3414 fi 3415else 3416 ac_cpp_err=yes 3417fi 3418if test -z "$ac_cpp_err"; then 3419 : 3420else 3421 echo "$as_me: failed program was:" >&5 3422sed 's/^/| /' conftest.$ac_ext >&5 3423 3424 # Broken: fails on valid input. 3425continue 3426fi 3427rm -f conftest.err conftest.$ac_ext 3428 3429 # OK, works on sane cases. Now check whether non-existent headers 3430 # can be detected and how. 3431 cat >conftest.$ac_ext <<_ACEOF 3432/* confdefs.h. */ 3433_ACEOF 3434cat confdefs.h >>conftest.$ac_ext 3435cat >>conftest.$ac_ext <<_ACEOF 3436/* end confdefs.h. */ 3437#include <ac_nonexistent.h> 3438_ACEOF 3439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3441 ac_status=$? 3442 grep -v '^ *+' conftest.er1 >conftest.err 3443 rm -f conftest.er1 3444 cat conftest.err >&5 3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3446 (exit $ac_status); } >/dev/null; then 3447 if test -s conftest.err; then 3448 ac_cpp_err=$ac_c_preproc_warn_flag 3449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3450 else 3451 ac_cpp_err= 3452 fi 3453else 3454 ac_cpp_err=yes 3455fi 3456if test -z "$ac_cpp_err"; then 3457 # Broken: success on invalid input. 3458continue 3459else 3460 echo "$as_me: failed program was:" >&5 3461sed 's/^/| /' conftest.$ac_ext >&5 3462 3463 # Passes both tests. 3464ac_preproc_ok=: 3465break 3466fi 3467rm -f conftest.err conftest.$ac_ext 3468 3469done 3470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3471rm -f conftest.err conftest.$ac_ext 3472if $ac_preproc_ok; then 3473 : 3474else 3475 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3476See \`config.log' for more details." >&5 3477echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3478See \`config.log' for more details." >&2;} 3479 { (exit 1); exit 1; }; } 3480fi 3481 3482ac_ext=c 3483ac_cpp='$CPP $CPPFLAGS' 3484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3486ac_compiler_gnu=$ac_cv_c_compiler_gnu 3487 3488 3489echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3490echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3491if test "${ac_cv_header_stdc+set}" = set; then 3492 echo $ECHO_N "(cached) $ECHO_C" >&6 3493else 3494 cat >conftest.$ac_ext <<_ACEOF 3495/* confdefs.h. */ 3496_ACEOF 3497cat confdefs.h >>conftest.$ac_ext 3498cat >>conftest.$ac_ext <<_ACEOF 3499/* end confdefs.h. */ 3500#include <stdlib.h> 3501#include <stdarg.h> 3502#include <string.h> 3503#include <float.h> 3504 3505int 3506main () 3507{ 3508 3509 ; 3510 return 0; 3511} 3512_ACEOF 3513rm -f conftest.$ac_objext 3514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3515 (eval $ac_compile) 2>conftest.er1 3516 ac_status=$? 3517 grep -v '^ *+' conftest.er1 >conftest.err 3518 rm -f conftest.er1 3519 cat conftest.err >&5 3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3521 (exit $ac_status); } && 3522 { ac_try='test -z "$ac_c_werror_flag" 3523 || test ! -s conftest.err' 3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3525 (eval $ac_try) 2>&5 3526 ac_status=$? 3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3528 (exit $ac_status); }; } && 3529 { ac_try='test -s conftest.$ac_objext' 3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3531 (eval $ac_try) 2>&5 3532 ac_status=$? 3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3534 (exit $ac_status); }; }; then 3535 ac_cv_header_stdc=yes 3536else 3537 echo "$as_me: failed program was:" >&5 3538sed 's/^/| /' conftest.$ac_ext >&5 3539 3540ac_cv_header_stdc=no 3541fi 3542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3543 3544if test $ac_cv_header_stdc = yes; then 3545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3546 cat >conftest.$ac_ext <<_ACEOF 3547/* confdefs.h. */ 3548_ACEOF 3549cat confdefs.h >>conftest.$ac_ext 3550cat >>conftest.$ac_ext <<_ACEOF 3551/* end confdefs.h. */ 3552#include <string.h> 3553 3554_ACEOF 3555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3556 $EGREP "memchr" >/dev/null 2>&1; then 3557 : 3558else 3559 ac_cv_header_stdc=no 3560fi 3561rm -f conftest* 3562 3563fi 3564 3565if test $ac_cv_header_stdc = yes; then 3566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3567 cat >conftest.$ac_ext <<_ACEOF 3568/* confdefs.h. */ 3569_ACEOF 3570cat confdefs.h >>conftest.$ac_ext 3571cat >>conftest.$ac_ext <<_ACEOF 3572/* end confdefs.h. */ 3573#include <stdlib.h> 3574 3575_ACEOF 3576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3577 $EGREP "free" >/dev/null 2>&1; then 3578 : 3579else 3580 ac_cv_header_stdc=no 3581fi 3582rm -f conftest* 3583 3584fi 3585 3586if test $ac_cv_header_stdc = yes; then 3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3588 if test "$cross_compiling" = yes; then 3589 : 3590else 3591 cat >conftest.$ac_ext <<_ACEOF 3592/* confdefs.h. */ 3593_ACEOF 3594cat confdefs.h >>conftest.$ac_ext 3595cat >>conftest.$ac_ext <<_ACEOF 3596/* end confdefs.h. */ 3597#include <ctype.h> 3598#if ((' ' & 0x0FF) == 0x020) 3599# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3600# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3601#else 3602# define ISLOWER(c) \ 3603 (('a' <= (c) && (c) <= 'i') \ 3604 || ('j' <= (c) && (c) <= 'r') \ 3605 || ('s' <= (c) && (c) <= 'z')) 3606# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3607#endif 3608 3609#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3610int 3611main () 3612{ 3613 int i; 3614 for (i = 0; i < 256; i++) 3615 if (XOR (islower (i), ISLOWER (i)) 3616 || toupper (i) != TOUPPER (i)) 3617 exit(2); 3618 exit (0); 3619} 3620_ACEOF 3621rm -f conftest$ac_exeext 3622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3623 (eval $ac_link) 2>&5 3624 ac_status=$? 3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3628 (eval $ac_try) 2>&5 3629 ac_status=$? 3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3631 (exit $ac_status); }; }; then 3632 : 3633else 3634 echo "$as_me: program exited with status $ac_status" >&5 3635echo "$as_me: failed program was:" >&5 3636sed 's/^/| /' conftest.$ac_ext >&5 3637 3638( exit $ac_status ) 3639ac_cv_header_stdc=no 3640fi 3641rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3642fi 3643fi 3644fi 3645echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3646echo "${ECHO_T}$ac_cv_header_stdc" >&6 3647if test $ac_cv_header_stdc = yes; then 3648 3649cat >>confdefs.h <<\_ACEOF 3650#define STDC_HEADERS 1 3651_ACEOF 3652 3653fi 3654 3655# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3666 inttypes.h stdint.h unistd.h 3667do 3668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3669echo "$as_me:$LINENO: checking for $ac_header" >&5 3670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3671if eval "test \"\${$as_ac_Header+set}\" = set"; then 3672 echo $ECHO_N "(cached) $ECHO_C" >&6 3673else 3674 cat >conftest.$ac_ext <<_ACEOF 3675/* confdefs.h. */ 3676_ACEOF 3677cat confdefs.h >>conftest.$ac_ext 3678cat >>conftest.$ac_ext <<_ACEOF 3679/* end confdefs.h. */ 3680$ac_includes_default 3681 3682#include <$ac_header> 3683_ACEOF 3684rm -f conftest.$ac_objext 3685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3686 (eval $ac_compile) 2>conftest.er1 3687 ac_status=$? 3688 grep -v '^ *+' conftest.er1 >conftest.err 3689 rm -f conftest.er1 3690 cat conftest.err >&5 3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3692 (exit $ac_status); } && 3693 { ac_try='test -z "$ac_c_werror_flag" 3694 || test ! -s conftest.err' 3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3696 (eval $ac_try) 2>&5 3697 ac_status=$? 3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3699 (exit $ac_status); }; } && 3700 { ac_try='test -s conftest.$ac_objext' 3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3702 (eval $ac_try) 2>&5 3703 ac_status=$? 3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3705 (exit $ac_status); }; }; then 3706 eval "$as_ac_Header=yes" 3707else 3708 echo "$as_me: failed program was:" >&5 3709sed 's/^/| /' conftest.$ac_ext >&5 3710 3711eval "$as_ac_Header=no" 3712fi 3713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3714fi 3715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3717if test `eval echo '${'$as_ac_Header'}'` = yes; then 3718 cat >>confdefs.h <<_ACEOF 3719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3720_ACEOF 3721 3722fi 3723 3724done 3725 3726 3727 3728for ac_header in dlfcn.h 3729do 3730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3731if eval "test \"\${$as_ac_Header+set}\" = set"; then 3732 echo "$as_me:$LINENO: checking for $ac_header" >&5 3733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3734if eval "test \"\${$as_ac_Header+set}\" = set"; then 3735 echo $ECHO_N "(cached) $ECHO_C" >&6 3736fi 3737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3739else 3740 # Is the header compilable? 3741echo "$as_me:$LINENO: checking $ac_header usability" >&5 3742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3743cat >conftest.$ac_ext <<_ACEOF 3744/* confdefs.h. */ 3745_ACEOF 3746cat confdefs.h >>conftest.$ac_ext 3747cat >>conftest.$ac_ext <<_ACEOF 3748/* end confdefs.h. */ 3749$ac_includes_default 3750#include <$ac_header> 3751_ACEOF 3752rm -f conftest.$ac_objext 3753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3754 (eval $ac_compile) 2>conftest.er1 3755 ac_status=$? 3756 grep -v '^ *+' conftest.er1 >conftest.err 3757 rm -f conftest.er1 3758 cat conftest.err >&5 3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3760 (exit $ac_status); } && 3761 { ac_try='test -z "$ac_c_werror_flag" 3762 || test ! -s conftest.err' 3763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3764 (eval $ac_try) 2>&5 3765 ac_status=$? 3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3767 (exit $ac_status); }; } && 3768 { ac_try='test -s conftest.$ac_objext' 3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3770 (eval $ac_try) 2>&5 3771 ac_status=$? 3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3773 (exit $ac_status); }; }; then 3774 ac_header_compiler=yes 3775else 3776 echo "$as_me: failed program was:" >&5 3777sed 's/^/| /' conftest.$ac_ext >&5 3778 3779ac_header_compiler=no 3780fi 3781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3782echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3783echo "${ECHO_T}$ac_header_compiler" >&6 3784 3785# Is the header present? 3786echo "$as_me:$LINENO: checking $ac_header presence" >&5 3787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3788cat >conftest.$ac_ext <<_ACEOF 3789/* confdefs.h. */ 3790_ACEOF 3791cat confdefs.h >>conftest.$ac_ext 3792cat >>conftest.$ac_ext <<_ACEOF 3793/* end confdefs.h. */ 3794#include <$ac_header> 3795_ACEOF 3796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3798 ac_status=$? 3799 grep -v '^ *+' conftest.er1 >conftest.err 3800 rm -f conftest.er1 3801 cat conftest.err >&5 3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3803 (exit $ac_status); } >/dev/null; then 3804 if test -s conftest.err; then 3805 ac_cpp_err=$ac_c_preproc_warn_flag 3806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3807 else 3808 ac_cpp_err= 3809 fi 3810else 3811 ac_cpp_err=yes 3812fi 3813if test -z "$ac_cpp_err"; then 3814 ac_header_preproc=yes 3815else 3816 echo "$as_me: failed program was:" >&5 3817sed 's/^/| /' conftest.$ac_ext >&5 3818 3819 ac_header_preproc=no 3820fi 3821rm -f conftest.err conftest.$ac_ext 3822echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3823echo "${ECHO_T}$ac_header_preproc" >&6 3824 3825# So? What about this header? 3826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3827 yes:no: ) 3828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3832 ac_header_preproc=yes 3833 ;; 3834 no:yes:* ) 3835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3847 ( 3848 cat <<\_ASBOX 3849## ------------------------------------------ ## 3850## Report this to the AC_PACKAGE_NAME lists. ## 3851## ------------------------------------------ ## 3852_ASBOX 3853 ) | 3854 sed "s/^/$as_me: WARNING: /" >&2 3855 ;; 3856esac 3857echo "$as_me:$LINENO: checking for $ac_header" >&5 3858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3859if eval "test \"\${$as_ac_Header+set}\" = set"; then 3860 echo $ECHO_N "(cached) $ECHO_C" >&6 3861else 3862 eval "$as_ac_Header=\$ac_header_preproc" 3863fi 3864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3866 3867fi 3868if test `eval echo '${'$as_ac_Header'}'` = yes; then 3869 cat >>confdefs.h <<_ACEOF 3870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3871_ACEOF 3872 3873fi 3874 3875done 3876 3877ac_ext=cc 3878ac_cpp='$CXXCPP $CPPFLAGS' 3879ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3880ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3881ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3882if test -n "$ac_tool_prefix"; then 3883 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3884 do 3885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3886set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3887echo "$as_me:$LINENO: checking for $ac_word" >&5 3888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3889if test "${ac_cv_prog_CXX+set}" = set; then 3890 echo $ECHO_N "(cached) $ECHO_C" >&6 3891else 3892 if test -n "$CXX"; then 3893 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3894else 3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3896for as_dir in $PATH 3897do 3898 IFS=$as_save_IFS 3899 test -z "$as_dir" && as_dir=. 3900 for ac_exec_ext in '' $ac_executable_extensions; do 3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3902 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3904 break 2 3905 fi 3906done 3907done 3908 3909fi 3910fi 3911CXX=$ac_cv_prog_CXX 3912if test -n "$CXX"; then 3913 echo "$as_me:$LINENO: result: $CXX" >&5 3914echo "${ECHO_T}$CXX" >&6 3915else 3916 echo "$as_me:$LINENO: result: no" >&5 3917echo "${ECHO_T}no" >&6 3918fi 3919 3920 test -n "$CXX" && break 3921 done 3922fi 3923if test -z "$CXX"; then 3924 ac_ct_CXX=$CXX 3925 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3926do 3927 # Extract the first word of "$ac_prog", so it can be a program name with args. 3928set dummy $ac_prog; ac_word=$2 3929echo "$as_me:$LINENO: checking for $ac_word" >&5 3930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3931if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3932 echo $ECHO_N "(cached) $ECHO_C" >&6 3933else 3934 if test -n "$ac_ct_CXX"; then 3935 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3936else 3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3938for as_dir in $PATH 3939do 3940 IFS=$as_save_IFS 3941 test -z "$as_dir" && as_dir=. 3942 for ac_exec_ext in '' $ac_executable_extensions; do 3943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3944 ac_cv_prog_ac_ct_CXX="$ac_prog" 3945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3946 break 2 3947 fi 3948done 3949done 3950 3951fi 3952fi 3953ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3954if test -n "$ac_ct_CXX"; then 3955 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3956echo "${ECHO_T}$ac_ct_CXX" >&6 3957else 3958 echo "$as_me:$LINENO: result: no" >&5 3959echo "${ECHO_T}no" >&6 3960fi 3961 3962 test -n "$ac_ct_CXX" && break 3963done 3964test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3965 3966 CXX=$ac_ct_CXX 3967fi 3968 3969 3970# Provide some information about the compiler. 3971echo "$as_me:$LINENO:" \ 3972 "checking for C++ compiler version" >&5 3973ac_compiler=`set X $ac_compile; echo $2` 3974{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3975 (eval $ac_compiler --version </dev/null >&5) 2>&5 3976 ac_status=$? 3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3978 (exit $ac_status); } 3979{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3980 (eval $ac_compiler -v </dev/null >&5) 2>&5 3981 ac_status=$? 3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3983 (exit $ac_status); } 3984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3985 (eval $ac_compiler -V </dev/null >&5) 2>&5 3986 ac_status=$? 3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3988 (exit $ac_status); } 3989 3990echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3991echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3992if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3993 echo $ECHO_N "(cached) $ECHO_C" >&6 3994else 3995 cat >conftest.$ac_ext <<_ACEOF 3996/* confdefs.h. */ 3997_ACEOF 3998cat confdefs.h >>conftest.$ac_ext 3999cat >>conftest.$ac_ext <<_ACEOF 4000/* end confdefs.h. */ 4001 4002int 4003main () 4004{ 4005#ifndef __GNUC__ 4006 choke me 4007#endif 4008 4009 ; 4010 return 0; 4011} 4012_ACEOF 4013rm -f conftest.$ac_objext 4014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4015 (eval $ac_compile) 2>conftest.er1 4016 ac_status=$? 4017 grep -v '^ *+' conftest.er1 >conftest.err 4018 rm -f conftest.er1 4019 cat conftest.err >&5 4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4021 (exit $ac_status); } && 4022 { ac_try='test -z "$ac_cxx_werror_flag" 4023 || test ! -s conftest.err' 4024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4025 (eval $ac_try) 2>&5 4026 ac_status=$? 4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4028 (exit $ac_status); }; } && 4029 { ac_try='test -s conftest.$ac_objext' 4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4031 (eval $ac_try) 2>&5 4032 ac_status=$? 4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4034 (exit $ac_status); }; }; then 4035 ac_compiler_gnu=yes 4036else 4037 echo "$as_me: failed program was:" >&5 4038sed 's/^/| /' conftest.$ac_ext >&5 4039 4040ac_compiler_gnu=no 4041fi 4042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4043ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4044 4045fi 4046echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4047echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4048GXX=`test $ac_compiler_gnu = yes && echo yes` 4049ac_test_CXXFLAGS=${CXXFLAGS+set} 4050ac_save_CXXFLAGS=$CXXFLAGS 4051CXXFLAGS="-g" 4052echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4053echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4054if test "${ac_cv_prog_cxx_g+set}" = set; then 4055 echo $ECHO_N "(cached) $ECHO_C" >&6 4056else 4057 cat >conftest.$ac_ext <<_ACEOF 4058/* confdefs.h. */ 4059_ACEOF 4060cat confdefs.h >>conftest.$ac_ext 4061cat >>conftest.$ac_ext <<_ACEOF 4062/* end confdefs.h. */ 4063 4064int 4065main () 4066{ 4067 4068 ; 4069 return 0; 4070} 4071_ACEOF 4072rm -f conftest.$ac_objext 4073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4074 (eval $ac_compile) 2>conftest.er1 4075 ac_status=$? 4076 grep -v '^ *+' conftest.er1 >conftest.err 4077 rm -f conftest.er1 4078 cat conftest.err >&5 4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4080 (exit $ac_status); } && 4081 { ac_try='test -z "$ac_cxx_werror_flag" 4082 || test ! -s conftest.err' 4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4084 (eval $ac_try) 2>&5 4085 ac_status=$? 4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4087 (exit $ac_status); }; } && 4088 { ac_try='test -s conftest.$ac_objext' 4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4090 (eval $ac_try) 2>&5 4091 ac_status=$? 4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4093 (exit $ac_status); }; }; then 4094 ac_cv_prog_cxx_g=yes 4095else 4096 echo "$as_me: failed program was:" >&5 4097sed 's/^/| /' conftest.$ac_ext >&5 4098 4099ac_cv_prog_cxx_g=no 4100fi 4101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4102fi 4103echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4104echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4105if test "$ac_test_CXXFLAGS" = set; then 4106 CXXFLAGS=$ac_save_CXXFLAGS 4107elif test $ac_cv_prog_cxx_g = yes; then 4108 if test "$GXX" = yes; then 4109 CXXFLAGS="-g -O2" 4110 else 4111 CXXFLAGS="-g" 4112 fi 4113else 4114 if test "$GXX" = yes; then 4115 CXXFLAGS="-O2" 4116 else 4117 CXXFLAGS= 4118 fi 4119fi 4120for ac_declaration in \ 4121 '' \ 4122 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4123 'extern "C" void std::exit (int); using std::exit;' \ 4124 'extern "C" void exit (int) throw ();' \ 4125 'extern "C" void exit (int);' \ 4126 'void exit (int);' 4127do 4128 cat >conftest.$ac_ext <<_ACEOF 4129/* confdefs.h. */ 4130_ACEOF 4131cat confdefs.h >>conftest.$ac_ext 4132cat >>conftest.$ac_ext <<_ACEOF 4133/* end confdefs.h. */ 4134$ac_declaration 4135#include <stdlib.h> 4136int 4137main () 4138{ 4139exit (42); 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144rm -f conftest.$ac_objext 4145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4146 (eval $ac_compile) 2>conftest.er1 4147 ac_status=$? 4148 grep -v '^ *+' conftest.er1 >conftest.err 4149 rm -f conftest.er1 4150 cat conftest.err >&5 4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4152 (exit $ac_status); } && 4153 { ac_try='test -z "$ac_cxx_werror_flag" 4154 || test ! -s conftest.err' 4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4156 (eval $ac_try) 2>&5 4157 ac_status=$? 4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4159 (exit $ac_status); }; } && 4160 { ac_try='test -s conftest.$ac_objext' 4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4162 (eval $ac_try) 2>&5 4163 ac_status=$? 4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4165 (exit $ac_status); }; }; then 4166 : 4167else 4168 echo "$as_me: failed program was:" >&5 4169sed 's/^/| /' conftest.$ac_ext >&5 4170 4171continue 4172fi 4173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4174 cat >conftest.$ac_ext <<_ACEOF 4175/* confdefs.h. */ 4176_ACEOF 4177cat confdefs.h >>conftest.$ac_ext 4178cat >>conftest.$ac_ext <<_ACEOF 4179/* end confdefs.h. */ 4180$ac_declaration 4181int 4182main () 4183{ 4184exit (42); 4185 ; 4186 return 0; 4187} 4188_ACEOF 4189rm -f conftest.$ac_objext 4190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4191 (eval $ac_compile) 2>conftest.er1 4192 ac_status=$? 4193 grep -v '^ *+' conftest.er1 >conftest.err 4194 rm -f conftest.er1 4195 cat conftest.err >&5 4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4197 (exit $ac_status); } && 4198 { ac_try='test -z "$ac_cxx_werror_flag" 4199 || test ! -s conftest.err' 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); }; } && 4205 { ac_try='test -s conftest.$ac_objext' 4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4207 (eval $ac_try) 2>&5 4208 ac_status=$? 4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4210 (exit $ac_status); }; }; then 4211 break 4212else 4213 echo "$as_me: failed program was:" >&5 4214sed 's/^/| /' conftest.$ac_ext >&5 4215 4216fi 4217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4218done 4219rm -f conftest* 4220if test -n "$ac_declaration"; then 4221 echo '#ifdef __cplusplus' >>confdefs.h 4222 echo $ac_declaration >>confdefs.h 4223 echo '#endif' >>confdefs.h 4224fi 4225 4226ac_ext=cc 4227ac_cpp='$CXXCPP $CPPFLAGS' 4228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4231 4232 4233 4234if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4235 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4236 (test "X$CXX" != "Xg++"))) ; then 4237 ac_ext=cc 4238ac_cpp='$CXXCPP $CPPFLAGS' 4239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4242echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4243echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4244if test -z "$CXXCPP"; then 4245 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4246 echo $ECHO_N "(cached) $ECHO_C" >&6 4247else 4248 # Double quotes because CXXCPP needs to be expanded 4249 for CXXCPP in "$CXX -E" "/lib/cpp" 4250 do 4251 ac_preproc_ok=false 4252for ac_cxx_preproc_warn_flag in '' yes 4253do 4254 # Use a header file that comes with gcc, so configuring glibc 4255 # with a fresh cross-compiler works. 4256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4257 # <limits.h> exists even on freestanding compilers. 4258 # On the NeXT, cc -E runs the code through the compiler's parser, 4259 # not just through cpp. "Syntax error" is here to catch this case. 4260 cat >conftest.$ac_ext <<_ACEOF 4261/* confdefs.h. */ 4262_ACEOF 4263cat confdefs.h >>conftest.$ac_ext 4264cat >>conftest.$ac_ext <<_ACEOF 4265/* end confdefs.h. */ 4266#ifdef __STDC__ 4267# include <limits.h> 4268#else 4269# include <assert.h> 4270#endif 4271 Syntax error 4272_ACEOF 4273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4275 ac_status=$? 4276 grep -v '^ *+' conftest.er1 >conftest.err 4277 rm -f conftest.er1 4278 cat conftest.err >&5 4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4280 (exit $ac_status); } >/dev/null; then 4281 if test -s conftest.err; then 4282 ac_cpp_err=$ac_cxx_preproc_warn_flag 4283 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4284 else 4285 ac_cpp_err= 4286 fi 4287else 4288 ac_cpp_err=yes 4289fi 4290if test -z "$ac_cpp_err"; then 4291 : 4292else 4293 echo "$as_me: failed program was:" >&5 4294sed 's/^/| /' conftest.$ac_ext >&5 4295 4296 # Broken: fails on valid input. 4297continue 4298fi 4299rm -f conftest.err conftest.$ac_ext 4300 4301 # OK, works on sane cases. Now check whether non-existent headers 4302 # can be detected and how. 4303 cat >conftest.$ac_ext <<_ACEOF 4304/* confdefs.h. */ 4305_ACEOF 4306cat confdefs.h >>conftest.$ac_ext 4307cat >>conftest.$ac_ext <<_ACEOF 4308/* end confdefs.h. */ 4309#include <ac_nonexistent.h> 4310_ACEOF 4311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4313 ac_status=$? 4314 grep -v '^ *+' conftest.er1 >conftest.err 4315 rm -f conftest.er1 4316 cat conftest.err >&5 4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4318 (exit $ac_status); } >/dev/null; then 4319 if test -s conftest.err; then 4320 ac_cpp_err=$ac_cxx_preproc_warn_flag 4321 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4322 else 4323 ac_cpp_err= 4324 fi 4325else 4326 ac_cpp_err=yes 4327fi 4328if test -z "$ac_cpp_err"; then 4329 # Broken: success on invalid input. 4330continue 4331else 4332 echo "$as_me: failed program was:" >&5 4333sed 's/^/| /' conftest.$ac_ext >&5 4334 4335 # Passes both tests. 4336ac_preproc_ok=: 4337break 4338fi 4339rm -f conftest.err conftest.$ac_ext 4340 4341done 4342# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4343rm -f conftest.err conftest.$ac_ext 4344if $ac_preproc_ok; then 4345 break 4346fi 4347 4348 done 4349 ac_cv_prog_CXXCPP=$CXXCPP 4350 4351fi 4352 CXXCPP=$ac_cv_prog_CXXCPP 4353else 4354 ac_cv_prog_CXXCPP=$CXXCPP 4355fi 4356echo "$as_me:$LINENO: result: $CXXCPP" >&5 4357echo "${ECHO_T}$CXXCPP" >&6 4358ac_preproc_ok=false 4359for ac_cxx_preproc_warn_flag in '' yes 4360do 4361 # Use a header file that comes with gcc, so configuring glibc 4362 # with a fresh cross-compiler works. 4363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4364 # <limits.h> exists even on freestanding compilers. 4365 # On the NeXT, cc -E runs the code through the compiler's parser, 4366 # not just through cpp. "Syntax error" is here to catch this case. 4367 cat >conftest.$ac_ext <<_ACEOF 4368/* confdefs.h. */ 4369_ACEOF 4370cat confdefs.h >>conftest.$ac_ext 4371cat >>conftest.$ac_ext <<_ACEOF 4372/* end confdefs.h. */ 4373#ifdef __STDC__ 4374# include <limits.h> 4375#else 4376# include <assert.h> 4377#endif 4378 Syntax error 4379_ACEOF 4380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4382 ac_status=$? 4383 grep -v '^ *+' conftest.er1 >conftest.err 4384 rm -f conftest.er1 4385 cat conftest.err >&5 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); } >/dev/null; then 4388 if test -s conftest.err; then 4389 ac_cpp_err=$ac_cxx_preproc_warn_flag 4390 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4391 else 4392 ac_cpp_err= 4393 fi 4394else 4395 ac_cpp_err=yes 4396fi 4397if test -z "$ac_cpp_err"; then 4398 : 4399else 4400 echo "$as_me: failed program was:" >&5 4401sed 's/^/| /' conftest.$ac_ext >&5 4402 4403 # Broken: fails on valid input. 4404continue 4405fi 4406rm -f conftest.err conftest.$ac_ext 4407 4408 # OK, works on sane cases. Now check whether non-existent headers 4409 # can be detected and how. 4410 cat >conftest.$ac_ext <<_ACEOF 4411/* confdefs.h. */ 4412_ACEOF 4413cat confdefs.h >>conftest.$ac_ext 4414cat >>conftest.$ac_ext <<_ACEOF 4415/* end confdefs.h. */ 4416#include <ac_nonexistent.h> 4417_ACEOF 4418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4420 ac_status=$? 4421 grep -v '^ *+' conftest.er1 >conftest.err 4422 rm -f conftest.er1 4423 cat conftest.err >&5 4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4425 (exit $ac_status); } >/dev/null; then 4426 if test -s conftest.err; then 4427 ac_cpp_err=$ac_cxx_preproc_warn_flag 4428 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4429 else 4430 ac_cpp_err= 4431 fi 4432else 4433 ac_cpp_err=yes 4434fi 4435if test -z "$ac_cpp_err"; then 4436 # Broken: success on invalid input. 4437continue 4438else 4439 echo "$as_me: failed program was:" >&5 4440sed 's/^/| /' conftest.$ac_ext >&5 4441 4442 # Passes both tests. 4443ac_preproc_ok=: 4444break 4445fi 4446rm -f conftest.err conftest.$ac_ext 4447 4448done 4449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4450rm -f conftest.err conftest.$ac_ext 4451if $ac_preproc_ok; then 4452 : 4453else 4454 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4455See \`config.log' for more details." >&5 4456echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4457See \`config.log' for more details." >&2;} 4458 { (exit 1); exit 1; }; } 4459fi 4460 4461ac_ext=cc 4462ac_cpp='$CXXCPP $CPPFLAGS' 4463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4466 4467fi 4468 4469 4470ac_ext=f 4471ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4472ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4473ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4474if test -n "$ac_tool_prefix"; then 4475 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4476 do 4477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4478set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4479echo "$as_me:$LINENO: checking for $ac_word" >&5 4480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4481if test "${ac_cv_prog_F77+set}" = set; then 4482 echo $ECHO_N "(cached) $ECHO_C" >&6 4483else 4484 if test -n "$F77"; then 4485 ac_cv_prog_F77="$F77" # Let the user override the test. 4486else 4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4488for as_dir in $PATH 4489do 4490 IFS=$as_save_IFS 4491 test -z "$as_dir" && as_dir=. 4492 for ac_exec_ext in '' $ac_executable_extensions; do 4493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4494 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4496 break 2 4497 fi 4498done 4499done 4500 4501fi 4502fi 4503F77=$ac_cv_prog_F77 4504if test -n "$F77"; then 4505 echo "$as_me:$LINENO: result: $F77" >&5 4506echo "${ECHO_T}$F77" >&6 4507else 4508 echo "$as_me:$LINENO: result: no" >&5 4509echo "${ECHO_T}no" >&6 4510fi 4511 4512 test -n "$F77" && break 4513 done 4514fi 4515if test -z "$F77"; then 4516 ac_ct_F77=$F77 4517 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4518do 4519 # Extract the first word of "$ac_prog", so it can be a program name with args. 4520set dummy $ac_prog; ac_word=$2 4521echo "$as_me:$LINENO: checking for $ac_word" >&5 4522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4523if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4524 echo $ECHO_N "(cached) $ECHO_C" >&6 4525else 4526 if test -n "$ac_ct_F77"; then 4527 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4528else 4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4530for as_dir in $PATH 4531do 4532 IFS=$as_save_IFS 4533 test -z "$as_dir" && as_dir=. 4534 for ac_exec_ext in '' $ac_executable_extensions; do 4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4536 ac_cv_prog_ac_ct_F77="$ac_prog" 4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4538 break 2 4539 fi 4540done 4541done 4542 4543fi 4544fi 4545ac_ct_F77=$ac_cv_prog_ac_ct_F77 4546if test -n "$ac_ct_F77"; then 4547 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4548echo "${ECHO_T}$ac_ct_F77" >&6 4549else 4550 echo "$as_me:$LINENO: result: no" >&5 4551echo "${ECHO_T}no" >&6 4552fi 4553 4554 test -n "$ac_ct_F77" && break 4555done 4556 4557 F77=$ac_ct_F77 4558fi 4559 4560 4561# Provide some information about the compiler. 4562echo "$as_me:4562:" \ 4563 "checking for Fortran 77 compiler version" >&5 4564ac_compiler=`set X $ac_compile; echo $2` 4565{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4566 (eval $ac_compiler --version </dev/null >&5) 2>&5 4567 ac_status=$? 4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4569 (exit $ac_status); } 4570{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4571 (eval $ac_compiler -v </dev/null >&5) 2>&5 4572 ac_status=$? 4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4574 (exit $ac_status); } 4575{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4576 (eval $ac_compiler -V </dev/null >&5) 2>&5 4577 ac_status=$? 4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4579 (exit $ac_status); } 4580rm -f a.out 4581 4582# If we don't use `.F' as extension, the preprocessor is not run on the 4583# input file. (Note that this only needs to work for GNU compilers.) 4584ac_save_ext=$ac_ext 4585ac_ext=F 4586echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4587echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4588if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4589 echo $ECHO_N "(cached) $ECHO_C" >&6 4590else 4591 cat >conftest.$ac_ext <<_ACEOF 4592 program main 4593#ifndef __GNUC__ 4594 choke me 4595#endif 4596 4597 end 4598_ACEOF 4599rm -f conftest.$ac_objext 4600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4601 (eval $ac_compile) 2>conftest.er1 4602 ac_status=$? 4603 grep -v '^ *+' conftest.er1 >conftest.err 4604 rm -f conftest.er1 4605 cat conftest.err >&5 4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4607 (exit $ac_status); } && 4608 { ac_try='test -z "$ac_f77_werror_flag" 4609 || test ! -s conftest.err' 4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4611 (eval $ac_try) 2>&5 4612 ac_status=$? 4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4614 (exit $ac_status); }; } && 4615 { ac_try='test -s conftest.$ac_objext' 4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4617 (eval $ac_try) 2>&5 4618 ac_status=$? 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); }; }; then 4621 ac_compiler_gnu=yes 4622else 4623 echo "$as_me: failed program was:" >&5 4624sed 's/^/| /' conftest.$ac_ext >&5 4625 4626ac_compiler_gnu=no 4627fi 4628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4629ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4630 4631fi 4632echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4633echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4634ac_ext=$ac_save_ext 4635ac_test_FFLAGS=${FFLAGS+set} 4636ac_save_FFLAGS=$FFLAGS 4637FFLAGS= 4638echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4639echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4640if test "${ac_cv_prog_f77_g+set}" = set; then 4641 echo $ECHO_N "(cached) $ECHO_C" >&6 4642else 4643 FFLAGS=-g 4644cat >conftest.$ac_ext <<_ACEOF 4645 program main 4646 4647 end 4648_ACEOF 4649rm -f conftest.$ac_objext 4650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4651 (eval $ac_compile) 2>conftest.er1 4652 ac_status=$? 4653 grep -v '^ *+' conftest.er1 >conftest.err 4654 rm -f conftest.er1 4655 cat conftest.err >&5 4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4657 (exit $ac_status); } && 4658 { ac_try='test -z "$ac_f77_werror_flag" 4659 || test ! -s conftest.err' 4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4661 (eval $ac_try) 2>&5 4662 ac_status=$? 4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4664 (exit $ac_status); }; } && 4665 { ac_try='test -s conftest.$ac_objext' 4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4667 (eval $ac_try) 2>&5 4668 ac_status=$? 4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4670 (exit $ac_status); }; }; then 4671 ac_cv_prog_f77_g=yes 4672else 4673 echo "$as_me: failed program was:" >&5 4674sed 's/^/| /' conftest.$ac_ext >&5 4675 4676ac_cv_prog_f77_g=no 4677fi 4678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4679 4680fi 4681echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4682echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4683if test "$ac_test_FFLAGS" = set; then 4684 FFLAGS=$ac_save_FFLAGS 4685elif test $ac_cv_prog_f77_g = yes; then 4686 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4687 FFLAGS="-g -O2" 4688 else 4689 FFLAGS="-g" 4690 fi 4691else 4692 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4693 FFLAGS="-O2" 4694 else 4695 FFLAGS= 4696 fi 4697fi 4698 4699G77=`test $ac_compiler_gnu = yes && echo yes` 4700ac_ext=c 4701ac_cpp='$CPP $CPPFLAGS' 4702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4704ac_compiler_gnu=$ac_cv_c_compiler_gnu 4705 4706 4707 4708# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 4709 4710# find the maximum length of command line arguments 4711echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4712echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 4713if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4714 echo $ECHO_N "(cached) $ECHO_C" >&6 4715else 4716 i=0 4717 teststring="ABCD" 4718 4719 case $build_os in 4720 msdosdjgpp*) 4721 # On DJGPP, this test can blow up pretty badly due to problems in libc 4722 # (any single argument exceeding 2000 bytes causes a buffer overrun 4723 # during glob expansion). Even if it were fixed, the result of this 4724 # check would be larger than it should be. 4725 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4726 ;; 4727 4728 gnu*) 4729 # Under GNU Hurd, this test is not required because there is 4730 # no limit to the length of command line arguments. 4731 # Libtool will interpret -1 as no limit whatsoever 4732 lt_cv_sys_max_cmd_len=-1; 4733 ;; 4734 4735 cygwin* | mingw*) 4736 # On Win9x/ME, this test blows up -- it succeeds, but takes 4737 # about 5 minutes as the teststring grows exponentially. 4738 # Worse, since 9x/ME are not pre-emptively multitasking, 4739 # you end up with a "frozen" computer, even though with patience 4740 # the test eventually succeeds (with a max line length of 256k). 4741 # Instead, let's just punt: use the minimum linelength reported by 4742 # all of the supported platforms: 8192 (on NT/2K/XP). 4743 lt_cv_sys_max_cmd_len=8192; 4744 ;; 4745 4746 amigaos*) 4747 # On AmigaOS with pdksh, this test takes hours, literally. 4748 # So we just punt and use a minimum line length of 8192. 4749 lt_cv_sys_max_cmd_len=8192; 4750 ;; 4751 4752 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4753 # This has been around since 386BSD, at least. Likely further. 4754 if test -x /sbin/sysctl; then 4755 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4756 elif test -x /usr/sbin/sysctl; then 4757 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4758 else 4759 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4760 fi 4761 # And add a safety zone 4762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4764 ;; 4765 4766 interix*) 4767 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4768 lt_cv_sys_max_cmd_len=196608 4769 ;; 4770 4771 osf*) 4772 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4773 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4774 # nice to cause kernel panics so lets avoid the loop below. 4775 # First set a reasonable default. 4776 lt_cv_sys_max_cmd_len=16384 4777 # 4778 if test -x /sbin/sysconfig; then 4779 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4780 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4781 esac 4782 fi 4783 ;; 4784 sco3.2v5*) 4785 lt_cv_sys_max_cmd_len=102400 4786 ;; 4787 sysv5* | sco5v6* | sysv4.2uw2*) 4788 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4789 if test -n "$kargmax"; then 4790 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4791 else 4792 lt_cv_sys_max_cmd_len=32768 4793 fi 4794 ;; 4795 *) 4796 # If test is not a shell built-in, we'll probably end up computing a 4797 # maximum length that is only half of the actual maximum length, but 4798 # we can't tell. 4799 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4800 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 4801 = "XX$teststring") >/dev/null 2>&1 && 4802 new_result=`expr "X$teststring" : ".*" 2>&1` && 4803 lt_cv_sys_max_cmd_len=$new_result && 4804 test $i != 17 # 1/2 MB should be enough 4805 do 4806 i=`expr $i + 1` 4807 teststring=$teststring$teststring 4808 done 4809 teststring= 4810 # Add a significant safety factor because C++ compilers can tack on massive 4811 # amounts of additional arguments before passing them to the linker. 4812 # It appears as though 1/2 is a usable value. 4813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4814 ;; 4815 esac 4816 4817fi 4818 4819if test -n $lt_cv_sys_max_cmd_len ; then 4820 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4821echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 4822else 4823 echo "$as_me:$LINENO: result: none" >&5 4824echo "${ECHO_T}none" >&6 4825fi 4826 4827 4828 4829 4830# Check for command to grab the raw symbol name followed by C symbol from nm. 4831echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 4832echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 4833if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4834 echo $ECHO_N "(cached) $ECHO_C" >&6 4835else 4836 4837# These are sane defaults that work on at least a few old systems. 4838# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4839 4840# Character class describing NM global symbol codes. 4841symcode='[BCDEGRST]' 4842 4843# Regexp to match symbols that can be accessed directly from C. 4844sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4845 4846# Transform an extracted symbol line into a proper C declaration 4847lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 4848 4849# Transform an extracted symbol line into symbol name and symbol address 4850lt_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'" 4851 4852# Define system-specific variables. 4853case $host_os in 4854aix*) 4855 symcode='[BCDT]' 4856 ;; 4857cygwin* | mingw* | pw32*) 4858 symcode='[ABCDGISTW]' 4859 ;; 4860hpux*) # Its linker distinguishes data from code symbols 4861 if test "$host_cpu" = ia64; then 4862 symcode='[ABCDEGRST]' 4863 fi 4864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4865 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'" 4866 ;; 4867linux*) 4868 if test "$host_cpu" = ia64; then 4869 symcode='[ABCDGIRSTW]' 4870 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4871 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'" 4872 fi 4873 ;; 4874irix* | nonstopux*) 4875 symcode='[BCDEGRST]' 4876 ;; 4877osf*) 4878 symcode='[BCDEGQRST]' 4879 ;; 4880solaris*) 4881 symcode='[BDRT]' 4882 ;; 4883sco3.2v5*) 4884 symcode='[DT]' 4885 ;; 4886sysv4.2uw2*) 4887 symcode='[DT]' 4888 ;; 4889sysv5* | sco5v6* | unixware* | OpenUNIX*) 4890 symcode='[ABDT]' 4891 ;; 4892sysv4) 4893 symcode='[DFNSTU]' 4894 ;; 4895esac 4896 4897# Handle CRLF in mingw tool chain 4898opt_cr= 4899case $build_os in 4900mingw*) 4901 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4902 ;; 4903esac 4904 4905# If we're using GNU nm, then use its standard symbol codes. 4906case `$NM -V 2>&1` in 4907*GNU* | *'with BFD'*) 4908 symcode='[ABCDGIRSTW]' ;; 4909esac 4910 4911# Try without a prefix undercore, then with it. 4912for ac_symprfx in "" "_"; do 4913 4914 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4915 symxfrm="\\1 $ac_symprfx\\2 \\2" 4916 4917 # Write the raw and C identifiers. 4918 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4919 4920 # Check to see that the pipe works correctly. 4921 pipe_works=no 4922 4923 rm -f conftest* 4924 cat > conftest.$ac_ext <<EOF 4925#ifdef __cplusplus 4926extern "C" { 4927#endif 4928char nm_test_var; 4929void nm_test_func(){} 4930#ifdef __cplusplus 4931} 4932#endif 4933int main(){nm_test_var='a';nm_test_func();return(0);} 4934EOF 4935 4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4937 (eval $ac_compile) 2>&5 4938 ac_status=$? 4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4940 (exit $ac_status); }; then 4941 # Now try to grab the symbols. 4942 nlist=conftest.nm 4943 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4944 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4945 ac_status=$? 4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4947 (exit $ac_status); } && test -s "$nlist"; then 4948 # Try sorting and uniquifying the output. 4949 if sort "$nlist" | uniq > "$nlist"T; then 4950 mv -f "$nlist"T "$nlist" 4951 else 4952 rm -f "$nlist"T 4953 fi 4954 4955 # Make sure that we snagged all the symbols we need. 4956 if grep ' nm_test_var$' "$nlist" >/dev/null; then 4957 if grep ' nm_test_func$' "$nlist" >/dev/null; then 4958 cat <<EOF > conftest.$ac_ext 4959#ifdef __cplusplus 4960extern "C" { 4961#endif 4962 4963EOF 4964 # Now generate the symbol file. 4965 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 4966 4967 cat <<EOF >> conftest.$ac_ext 4968#if defined (__STDC__) && __STDC__ 4969# define lt_ptr_t void * 4970#else 4971# define lt_ptr_t char * 4972# define const 4973#endif 4974 4975/* The mapping between symbol names and symbols. */ 4976const struct { 4977 const char *name; 4978 lt_ptr_t address; 4979} 4980lt_preloaded_symbols[] = 4981{ 4982EOF 4983 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 4984 cat <<\EOF >> conftest.$ac_ext 4985 {0, (lt_ptr_t) 0} 4986}; 4987 4988#ifdef __cplusplus 4989} 4990#endif 4991EOF 4992 # Now try linking the two files. 4993 mv conftest.$ac_objext conftstm.$ac_objext 4994 lt_save_LIBS="$LIBS" 4995 lt_save_CFLAGS="$CFLAGS" 4996 LIBS="conftstm.$ac_objext" 4997 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 4998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4999 (eval $ac_link) 2>&5 5000 ac_status=$? 5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5002 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5003 pipe_works=yes 5004 fi 5005 LIBS="$lt_save_LIBS" 5006 CFLAGS="$lt_save_CFLAGS" 5007 else 5008 echo "cannot find nm_test_func in $nlist" >&5 5009 fi 5010 else 5011 echo "cannot find nm_test_var in $nlist" >&5 5012 fi 5013 else 5014 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5015 fi 5016 else 5017 echo "$progname: failed program was:" >&5 5018 cat conftest.$ac_ext >&5 5019 fi 5020 rm -f conftest* conftst* 5021 5022 # Do not use the global_symbol_pipe unless it works. 5023 if test "$pipe_works" = yes; then 5024 break 5025 else 5026 lt_cv_sys_global_symbol_pipe= 5027 fi 5028done 5029 5030fi 5031 5032if test -z "$lt_cv_sys_global_symbol_pipe"; then 5033 lt_cv_sys_global_symbol_to_cdecl= 5034fi 5035if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5036 echo "$as_me:$LINENO: result: failed" >&5 5037echo "${ECHO_T}failed" >&6 5038else 5039 echo "$as_me:$LINENO: result: ok" >&5 5040echo "${ECHO_T}ok" >&6 5041fi 5042 5043echo "$as_me:$LINENO: checking for objdir" >&5 5044echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5045if test "${lt_cv_objdir+set}" = set; then 5046 echo $ECHO_N "(cached) $ECHO_C" >&6 5047else 5048 rm -f .libs 2>/dev/null 5049mkdir .libs 2>/dev/null 5050if test -d .libs; then 5051 lt_cv_objdir=.libs 5052else 5053 # MS-DOS does not allow filenames that begin with a dot. 5054 lt_cv_objdir=_libs 5055fi 5056rmdir .libs 2>/dev/null 5057fi 5058echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5059echo "${ECHO_T}$lt_cv_objdir" >&6 5060objdir=$lt_cv_objdir 5061 5062 5063 5064 5065 5066case $host_os in 5067aix3*) 5068 # AIX sometimes has problems with the GCC collect2 program. For some 5069 # reason, if we set the COLLECT_NAMES environment variable, the problems 5070 # vanish in a puff of smoke. 5071 if test "X${COLLECT_NAMES+set}" != Xset; then 5072 COLLECT_NAMES= 5073 export COLLECT_NAMES 5074 fi 5075 ;; 5076esac 5077 5078# Sed substitution that helps us do robust quoting. It backslashifies 5079# metacharacters that are still active within double-quoted strings. 5080Xsed='sed -e 1s/^X//' 5081sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5082 5083# Same as above, but do not quote variable references. 5084double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5085 5086# Sed substitution to delay expansion of an escaped shell variable in a 5087# double_quote_subst'ed string. 5088delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5089 5090# Sed substitution to avoid accidental globbing in evaled expressions 5091no_glob_subst='s/\*/\\\*/g' 5092 5093# Constants: 5094rm="rm -f" 5095 5096# Global variables: 5097default_ofile=libtool 5098can_build_shared=yes 5099 5100# All known linkers require a `.a' archive for static linking (except MSVC, 5101# which needs '.lib'). 5102libext=a 5103ltmain="$ac_aux_dir/ltmain.sh" 5104ofile="$default_ofile" 5105with_gnu_ld="$lt_cv_prog_gnu_ld" 5106 5107if test -n "$ac_tool_prefix"; then 5108 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5109set dummy ${ac_tool_prefix}ar; ac_word=$2 5110echo "$as_me:$LINENO: checking for $ac_word" >&5 5111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5112if test "${ac_cv_prog_AR+set}" = set; then 5113 echo $ECHO_N "(cached) $ECHO_C" >&6 5114else 5115 if test -n "$AR"; then 5116 ac_cv_prog_AR="$AR" # Let the user override the test. 5117else 5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5119for as_dir in $PATH 5120do 5121 IFS=$as_save_IFS 5122 test -z "$as_dir" && as_dir=. 5123 for ac_exec_ext in '' $ac_executable_extensions; do 5124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5125 ac_cv_prog_AR="${ac_tool_prefix}ar" 5126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5127 break 2 5128 fi 5129done 5130done 5131 5132fi 5133fi 5134AR=$ac_cv_prog_AR 5135if test -n "$AR"; then 5136 echo "$as_me:$LINENO: result: $AR" >&5 5137echo "${ECHO_T}$AR" >&6 5138else 5139 echo "$as_me:$LINENO: result: no" >&5 5140echo "${ECHO_T}no" >&6 5141fi 5142 5143fi 5144if test -z "$ac_cv_prog_AR"; then 5145 ac_ct_AR=$AR 5146 # Extract the first word of "ar", so it can be a program name with args. 5147set dummy ar; ac_word=$2 5148echo "$as_me:$LINENO: checking for $ac_word" >&5 5149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5150if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5151 echo $ECHO_N "(cached) $ECHO_C" >&6 5152else 5153 if test -n "$ac_ct_AR"; then 5154 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5155else 5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5157for as_dir in $PATH 5158do 5159 IFS=$as_save_IFS 5160 test -z "$as_dir" && as_dir=. 5161 for ac_exec_ext in '' $ac_executable_extensions; do 5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5163 ac_cv_prog_ac_ct_AR="ar" 5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5165 break 2 5166 fi 5167done 5168done 5169 5170 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5171fi 5172fi 5173ac_ct_AR=$ac_cv_prog_ac_ct_AR 5174if test -n "$ac_ct_AR"; then 5175 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5176echo "${ECHO_T}$ac_ct_AR" >&6 5177else 5178 echo "$as_me:$LINENO: result: no" >&5 5179echo "${ECHO_T}no" >&6 5180fi 5181 5182 AR=$ac_ct_AR 5183else 5184 AR="$ac_cv_prog_AR" 5185fi 5186 5187if test -n "$ac_tool_prefix"; then 5188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5189set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5190echo "$as_me:$LINENO: checking for $ac_word" >&5 5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5192if test "${ac_cv_prog_RANLIB+set}" = set; then 5193 echo $ECHO_N "(cached) $ECHO_C" >&6 5194else 5195 if test -n "$RANLIB"; then 5196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5197else 5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5199for as_dir in $PATH 5200do 5201 IFS=$as_save_IFS 5202 test -z "$as_dir" && as_dir=. 5203 for ac_exec_ext in '' $ac_executable_extensions; do 5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5205 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5207 break 2 5208 fi 5209done 5210done 5211 5212fi 5213fi 5214RANLIB=$ac_cv_prog_RANLIB 5215if test -n "$RANLIB"; then 5216 echo "$as_me:$LINENO: result: $RANLIB" >&5 5217echo "${ECHO_T}$RANLIB" >&6 5218else 5219 echo "$as_me:$LINENO: result: no" >&5 5220echo "${ECHO_T}no" >&6 5221fi 5222 5223fi 5224if test -z "$ac_cv_prog_RANLIB"; then 5225 ac_ct_RANLIB=$RANLIB 5226 # Extract the first word of "ranlib", so it can be a program name with args. 5227set dummy ranlib; ac_word=$2 5228echo "$as_me:$LINENO: checking for $ac_word" >&5 5229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5230if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5231 echo $ECHO_N "(cached) $ECHO_C" >&6 5232else 5233 if test -n "$ac_ct_RANLIB"; then 5234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5235else 5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237for as_dir in $PATH 5238do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5243 ac_cv_prog_ac_ct_RANLIB="ranlib" 5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247done 5248done 5249 5250 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5251fi 5252fi 5253ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5254if test -n "$ac_ct_RANLIB"; then 5255 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5256echo "${ECHO_T}$ac_ct_RANLIB" >&6 5257else 5258 echo "$as_me:$LINENO: result: no" >&5 5259echo "${ECHO_T}no" >&6 5260fi 5261 5262 RANLIB=$ac_ct_RANLIB 5263else 5264 RANLIB="$ac_cv_prog_RANLIB" 5265fi 5266 5267if test -n "$ac_tool_prefix"; then 5268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5269set dummy ${ac_tool_prefix}strip; ac_word=$2 5270echo "$as_me:$LINENO: checking for $ac_word" >&5 5271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5272if test "${ac_cv_prog_STRIP+set}" = set; then 5273 echo $ECHO_N "(cached) $ECHO_C" >&6 5274else 5275 if test -n "$STRIP"; then 5276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5277else 5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5279for as_dir in $PATH 5280do 5281 IFS=$as_save_IFS 5282 test -z "$as_dir" && as_dir=. 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5285 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5287 break 2 5288 fi 5289done 5290done 5291 5292fi 5293fi 5294STRIP=$ac_cv_prog_STRIP 5295if test -n "$STRIP"; then 5296 echo "$as_me:$LINENO: result: $STRIP" >&5 5297echo "${ECHO_T}$STRIP" >&6 5298else 5299 echo "$as_me:$LINENO: result: no" >&5 5300echo "${ECHO_T}no" >&6 5301fi 5302 5303fi 5304if test -z "$ac_cv_prog_STRIP"; then 5305 ac_ct_STRIP=$STRIP 5306 # Extract the first word of "strip", so it can be a program name with args. 5307set dummy strip; ac_word=$2 5308echo "$as_me:$LINENO: checking for $ac_word" >&5 5309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5310if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5311 echo $ECHO_N "(cached) $ECHO_C" >&6 5312else 5313 if test -n "$ac_ct_STRIP"; then 5314 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5315else 5316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5317for as_dir in $PATH 5318do 5319 IFS=$as_save_IFS 5320 test -z "$as_dir" && as_dir=. 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5323 ac_cv_prog_ac_ct_STRIP="strip" 5324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5325 break 2 5326 fi 5327done 5328done 5329 5330 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5331fi 5332fi 5333ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5334if test -n "$ac_ct_STRIP"; then 5335 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5336echo "${ECHO_T}$ac_ct_STRIP" >&6 5337else 5338 echo "$as_me:$LINENO: result: no" >&5 5339echo "${ECHO_T}no" >&6 5340fi 5341 5342 STRIP=$ac_ct_STRIP 5343else 5344 STRIP="$ac_cv_prog_STRIP" 5345fi 5346 5347 5348old_CC="$CC" 5349old_CFLAGS="$CFLAGS" 5350 5351# Set sane defaults for various variables 5352test -z "$AR" && AR=ar 5353test -z "$AR_FLAGS" && AR_FLAGS=cru 5354test -z "$AS" && AS=as 5355test -z "$CC" && CC=cc 5356test -z "$LTCC" && LTCC=$CC 5357test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 5358test -z "$DLLTOOL" && DLLTOOL=dlltool 5359test -z "$LD" && LD=ld 5360test -z "$LN_S" && LN_S="ln -s" 5361test -z "$MAGIC_CMD" && MAGIC_CMD=file 5362test -z "$NM" && NM=nm 5363test -z "$SED" && SED=sed 5364test -z "$OBJDUMP" && OBJDUMP=objdump 5365test -z "$RANLIB" && RANLIB=: 5366test -z "$STRIP" && STRIP=: 5367test -z "$ac_objext" && ac_objext=o 5368 5369# Determine commands to create old-style static archives. 5370old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5371old_postinstall_cmds='chmod 644 $oldlib' 5372old_postuninstall_cmds= 5373 5374if test -n "$RANLIB"; then 5375 case $host_os in 5376 openbsd*) 5377 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5378 ;; 5379 *) 5380 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5381 ;; 5382 esac 5383 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5384fi 5385 5386for cc_temp in $compiler""; do 5387 case $cc_temp in 5388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5390 \-*) ;; 5391 *) break;; 5392 esac 5393done 5394cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 5395 5396 5397# Only perform the check for file, if the check method requires it 5398case $deplibs_check_method in 5399file_magic*) 5400 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5401 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5402echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5403if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5404 echo $ECHO_N "(cached) $ECHO_C" >&6 5405else 5406 case $MAGIC_CMD in 5407[\\/*] | ?:[\\/]*) 5408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5409 ;; 5410*) 5411 lt_save_MAGIC_CMD="$MAGIC_CMD" 5412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5414 for ac_dir in $ac_dummy; do 5415 IFS="$lt_save_ifs" 5416 test -z "$ac_dir" && ac_dir=. 5417 if test -f $ac_dir/${ac_tool_prefix}file; then 5418 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5419 if test -n "$file_magic_test_file"; then 5420 case $deplibs_check_method in 5421 "file_magic "*) 5422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5425 $EGREP "$file_magic_regex" > /dev/null; then 5426 : 5427 else 5428 cat <<EOF 1>&2 5429 5430*** Warning: the command libtool uses to detect shared libraries, 5431*** $file_magic_cmd, produces output that libtool cannot recognize. 5432*** The result is that libtool may fail to recognize shared libraries 5433*** as such. This will affect the creation of libtool libraries that 5434*** depend on shared libraries, but programs linked with such libtool 5435*** libraries will work regardless of this problem. Nevertheless, you 5436*** may want to report the problem to your system manager and/or to 5437*** bug-libtool@gnu.org 5438 5439EOF 5440 fi ;; 5441 esac 5442 fi 5443 break 5444 fi 5445 done 5446 IFS="$lt_save_ifs" 5447 MAGIC_CMD="$lt_save_MAGIC_CMD" 5448 ;; 5449esac 5450fi 5451 5452MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5453if test -n "$MAGIC_CMD"; then 5454 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5455echo "${ECHO_T}$MAGIC_CMD" >&6 5456else 5457 echo "$as_me:$LINENO: result: no" >&5 5458echo "${ECHO_T}no" >&6 5459fi 5460 5461if test -z "$lt_cv_path_MAGIC_CMD"; then 5462 if test -n "$ac_tool_prefix"; then 5463 echo "$as_me:$LINENO: checking for file" >&5 5464echo $ECHO_N "checking for file... $ECHO_C" >&6 5465if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5466 echo $ECHO_N "(cached) $ECHO_C" >&6 5467else 5468 case $MAGIC_CMD in 5469[\\/*] | ?:[\\/]*) 5470 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5471 ;; 5472*) 5473 lt_save_MAGIC_CMD="$MAGIC_CMD" 5474 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5475 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5476 for ac_dir in $ac_dummy; do 5477 IFS="$lt_save_ifs" 5478 test -z "$ac_dir" && ac_dir=. 5479 if test -f $ac_dir/file; then 5480 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5481 if test -n "$file_magic_test_file"; then 5482 case $deplibs_check_method in 5483 "file_magic "*) 5484 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5486 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5487 $EGREP "$file_magic_regex" > /dev/null; then 5488 : 5489 else 5490 cat <<EOF 1>&2 5491 5492*** Warning: the command libtool uses to detect shared libraries, 5493*** $file_magic_cmd, produces output that libtool cannot recognize. 5494*** The result is that libtool may fail to recognize shared libraries 5495*** as such. This will affect the creation of libtool libraries that 5496*** depend on shared libraries, but programs linked with such libtool 5497*** libraries will work regardless of this problem. Nevertheless, you 5498*** may want to report the problem to your system manager and/or to 5499*** bug-libtool@gnu.org 5500 5501EOF 5502 fi ;; 5503 esac 5504 fi 5505 break 5506 fi 5507 done 5508 IFS="$lt_save_ifs" 5509 MAGIC_CMD="$lt_save_MAGIC_CMD" 5510 ;; 5511esac 5512fi 5513 5514MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5515if test -n "$MAGIC_CMD"; then 5516 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5517echo "${ECHO_T}$MAGIC_CMD" >&6 5518else 5519 echo "$as_me:$LINENO: result: no" >&5 5520echo "${ECHO_T}no" >&6 5521fi 5522 5523 else 5524 MAGIC_CMD=: 5525 fi 5526fi 5527 5528 fi 5529 ;; 5530esac 5531 5532enable_dlopen=no 5533enable_win32_dll=no 5534 5535# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5536if test "${enable_libtool_lock+set}" = set; then 5537 enableval="$enable_libtool_lock" 5538 5539fi; 5540test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5541 5542 5543# Check whether --with-pic or --without-pic was given. 5544if test "${with_pic+set}" = set; then 5545 withval="$with_pic" 5546 pic_mode="$withval" 5547else 5548 pic_mode=default 5549fi; 5550test -z "$pic_mode" && pic_mode=default 5551 5552# Use C for the default configuration in the libtool script 5553tagname= 5554lt_save_CC="$CC" 5555ac_ext=c 5556ac_cpp='$CPP $CPPFLAGS' 5557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5559ac_compiler_gnu=$ac_cv_c_compiler_gnu 5560 5561 5562# Source file extension for C test sources. 5563ac_ext=c 5564 5565# Object file extension for compiled C test sources. 5566objext=o 5567objext=$objext 5568 5569# Code to be used in simple compile tests 5570lt_simple_compile_test_code="int some_variable = 0;\n" 5571 5572# Code to be used in simple link tests 5573lt_simple_link_test_code='int main(){return(0);}\n' 5574 5575 5576# If no C compiler was specified, use CC. 5577LTCC=${LTCC-"$CC"} 5578 5579# If no C compiler flags were specified, use CFLAGS. 5580LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5581 5582# Allow CC to be a program name with arguments. 5583compiler=$CC 5584 5585 5586# save warnings/boilerplate of simple test code 5587ac_outfile=conftest.$ac_objext 5588printf "$lt_simple_compile_test_code" >conftest.$ac_ext 5589eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 5590_lt_compiler_boilerplate=`cat conftest.err` 5591$rm conftest* 5592 5593ac_outfile=conftest.$ac_objext 5594printf "$lt_simple_link_test_code" >conftest.$ac_ext 5595eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 5596_lt_linker_boilerplate=`cat conftest.err` 5597$rm conftest* 5598 5599 5600## CAVEAT EMPTOR: 5601## There is no encapsulation within the following macros, do not change 5602## the running order or otherwise move them around unless you know exactly 5603## what you are doing... 5604 5605lt_prog_compiler_no_builtin_flag= 5606 5607if test "$GCC" = yes; then 5608 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5609 5610 5611echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5612echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5613if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5614 echo $ECHO_N "(cached) $ECHO_C" >&6 5615else 5616 lt_cv_prog_compiler_rtti_exceptions=no 5617 ac_outfile=conftest.$ac_objext 5618 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5619 lt_compiler_flag="-fno-rtti -fno-exceptions" 5620 # Insert the option either (1) after the last *FLAGS variable, or 5621 # (2) before a word containing "conftest.", or (3) at the end. 5622 # Note that $ac_compile itself does not contain backslashes and begins 5623 # with a dollar sign (not a hyphen), so the echo should work correctly. 5624 # The option is referenced via a variable to avoid confusing sed. 5625 lt_compile=`echo "$ac_compile" | $SED \ 5626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 5627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5628 -e 's:$: $lt_compiler_flag:'` 5629 (eval echo "\"\$as_me:5629: $lt_compile\"" >&5) 5630 (eval "$lt_compile" 2>conftest.err) 5631 ac_status=$? 5632 cat conftest.err >&5 5633 echo "$as_me:5633: \$? = $ac_status" >&5 5634 if (exit $ac_status) && test -s "$ac_outfile"; then 5635 # The compiler can only warn and ignore the option if not recognized 5636 # So say no if there are warnings other than the usual output. 5637 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 5638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 5639 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 5640 lt_cv_prog_compiler_rtti_exceptions=yes 5641 fi 5642 fi 5643 $rm conftest* 5644 5645fi 5646echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 5647echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 5648 5649if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 5650 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 5651else 5652 : 5653fi 5654 5655fi 5656 5657lt_prog_compiler_wl= 5658lt_prog_compiler_pic= 5659lt_prog_compiler_static= 5660 5661echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5662echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5663 5664 if test "$GCC" = yes; then 5665 lt_prog_compiler_wl='-Wl,' 5666 lt_prog_compiler_static='-static' 5667 5668 case $host_os in 5669 aix*) 5670 # All AIX code is PIC. 5671 if test "$host_cpu" = ia64; then 5672 # AIX 5 now supports IA64 processor 5673 lt_prog_compiler_static='-Bstatic' 5674 fi 5675 ;; 5676 5677 amigaos*) 5678 # FIXME: we need at least 68020 code to build shared libraries, but 5679 # adding the `-m68020' flag to GCC prevents building anything better, 5680 # like `-m68040'. 5681 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 5682 ;; 5683 5684 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5685 # PIC is the default for these OSes. 5686 ;; 5687 5688 mingw* | pw32* | os2*) 5689 # This hack is so that the source file can tell whether it is being 5690 # built for inclusion in a dll (and should export symbols for example). 5691 lt_prog_compiler_pic='-DDLL_EXPORT' 5692 ;; 5693 5694 darwin* | rhapsody*) 5695 # PIC is the default on this platform 5696 # Common symbols not allowed in MH_DYLIB files 5697 lt_prog_compiler_pic='-fno-common' 5698 ;; 5699 5700 interix3*) 5701 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5702 # Instead, we relocate shared libraries at runtime. 5703 ;; 5704 5705 msdosdjgpp*) 5706 # Just because we use GCC doesn't mean we suddenly get shared libraries 5707 # on systems that don't support them. 5708 lt_prog_compiler_can_build_shared=no 5709 enable_shared=no 5710 ;; 5711 5712 sysv4*MP*) 5713 if test -d /usr/nec; then 5714 lt_prog_compiler_pic=-Kconform_pic 5715 fi 5716 ;; 5717 5718 hpux*) 5719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5720 # not for PA HP-UX. 5721 case $host_cpu in 5722 hppa*64*|ia64*) 5723 # +Z the default 5724 ;; 5725 *) 5726 lt_prog_compiler_pic='-fPIC' 5727 ;; 5728 esac 5729 ;; 5730 5731 *) 5732 lt_prog_compiler_pic='-fPIC' 5733 ;; 5734 esac 5735 else 5736 # PORTME Check for flag to pass linker flags through the system compiler. 5737 case $host_os in 5738 aix*) 5739 lt_prog_compiler_wl='-Wl,' 5740 if test "$host_cpu" = ia64; then 5741 # AIX 5 now supports IA64 processor 5742 lt_prog_compiler_static='-Bstatic' 5743 else 5744 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 5745 fi 5746 ;; 5747 darwin*) 5748 # PIC is the default on this platform 5749 # Common symbols not allowed in MH_DYLIB files 5750 case $cc_basename in 5751 xlc*) 5752 lt_prog_compiler_pic='-qnocommon' 5753 lt_prog_compiler_wl='-Wl,' 5754 ;; 5755 esac 5756 ;; 5757 5758 mingw* | pw32* | os2*) 5759 # This hack is so that the source file can tell whether it is being 5760 # built for inclusion in a dll (and should export symbols for example). 5761 lt_prog_compiler_pic='-DDLL_EXPORT' 5762 ;; 5763 5764 hpux9* | hpux10* | hpux11*) 5765 lt_prog_compiler_wl='-Wl,' 5766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5767 # not for PA HP-UX. 5768 case $host_cpu in 5769 hppa*64*|ia64*) 5770 # +Z the default 5771 ;; 5772 *) 5773 lt_prog_compiler_pic='+Z' 5774 ;; 5775 esac 5776 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5777 lt_prog_compiler_static='${wl}-a ${wl}archive' 5778 ;; 5779 5780 irix5* | irix6* | nonstopux*) 5781 lt_prog_compiler_wl='-Wl,' 5782 # PIC (with -KPIC) is the default. 5783 lt_prog_compiler_static='-non_shared' 5784 ;; 5785 5786 newsos6) 5787 lt_prog_compiler_pic='-KPIC' 5788 lt_prog_compiler_static='-Bstatic' 5789 ;; 5790 5791 linux*) 5792 case $cc_basename in 5793 icc* | ecc*) 5794 lt_prog_compiler_wl='-Wl,' 5795 lt_prog_compiler_pic='-KPIC' 5796 lt_prog_compiler_static='-static' 5797 ;; 5798 pgcc* | pgf77* | pgf90* | pgf95*) 5799 # Portland Group compilers (*not* the Pentium gcc compiler, 5800 # which looks to be a dead project) 5801 lt_prog_compiler_wl='-Wl,' 5802 lt_prog_compiler_pic='-fpic' 5803 lt_prog_compiler_static='-Bstatic' 5804 ;; 5805 ccc*) 5806 lt_prog_compiler_wl='-Wl,' 5807 # All Alpha code is PIC. 5808 lt_prog_compiler_static='-non_shared' 5809 ;; 5810 esac 5811 ;; 5812 5813 osf3* | osf4* | osf5*) 5814 lt_prog_compiler_wl='-Wl,' 5815 # All OSF/1 code is PIC. 5816 lt_prog_compiler_static='-non_shared' 5817 ;; 5818 5819 solaris*) 5820 lt_prog_compiler_pic='-KPIC' 5821 lt_prog_compiler_static='-Bstatic' 5822 case $cc_basename in 5823 f77* | f90* | f95*) 5824 lt_prog_compiler_wl='-Qoption ld ';; 5825 *) 5826 lt_prog_compiler_wl='-Wl,';; 5827 esac 5828 ;; 5829 5830 sunos4*) 5831 lt_prog_compiler_wl='-Qoption ld ' 5832 lt_prog_compiler_pic='-PIC' 5833 lt_prog_compiler_static='-Bstatic' 5834 ;; 5835 5836 sysv4 | sysv4.2uw2* | sysv4.3*) 5837 lt_prog_compiler_wl='-Wl,' 5838 lt_prog_compiler_pic='-KPIC' 5839 lt_prog_compiler_static='-Bstatic' 5840 ;; 5841 5842 sysv4*MP*) 5843 if test -d /usr/nec ;then 5844 lt_prog_compiler_pic='-Kconform_pic' 5845 lt_prog_compiler_static='-Bstatic' 5846 fi 5847 ;; 5848 5849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5850 lt_prog_compiler_wl='-Wl,' 5851 lt_prog_compiler_pic='-KPIC' 5852 lt_prog_compiler_static='-Bstatic' 5853 ;; 5854 5855 unicos*) 5856 lt_prog_compiler_wl='-Wl,' 5857 lt_prog_compiler_can_build_shared=no 5858 ;; 5859 5860 uts4*) 5861 lt_prog_compiler_pic='-pic' 5862 lt_prog_compiler_static='-Bstatic' 5863 ;; 5864 5865 *) 5866 lt_prog_compiler_can_build_shared=no 5867 ;; 5868 esac 5869 fi 5870 5871echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 5872echo "${ECHO_T}$lt_prog_compiler_pic" >&6 5873 5874# 5875# Check to make sure the PIC flag actually works. 5876# 5877if test -n "$lt_prog_compiler_pic"; then 5878 5879echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 5880echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 5881if test "${lt_prog_compiler_pic_works+set}" = set; then 5882 echo $ECHO_N "(cached) $ECHO_C" >&6 5883else 5884 lt_prog_compiler_pic_works=no 5885 ac_outfile=conftest.$ac_objext 5886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5887 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 5888 # Insert the option either (1) after the last *FLAGS variable, or 5889 # (2) before a word containing "conftest.", or (3) at the end. 5890 # Note that $ac_compile itself does not contain backslashes and begins 5891 # with a dollar sign (not a hyphen), so the echo should work correctly. 5892 # The option is referenced via a variable to avoid confusing sed. 5893 lt_compile=`echo "$ac_compile" | $SED \ 5894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 5895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5896 -e 's:$: $lt_compiler_flag:'` 5897 (eval echo "\"\$as_me:5897: $lt_compile\"" >&5) 5898 (eval "$lt_compile" 2>conftest.err) 5899 ac_status=$? 5900 cat conftest.err >&5 5901 echo "$as_me:5901: \$? = $ac_status" >&5 5902 if (exit $ac_status) && test -s "$ac_outfile"; then 5903 # The compiler can only warn and ignore the option if not recognized 5904 # So say no if there are warnings other than the usual output. 5905 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 5906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 5907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 5908 lt_prog_compiler_pic_works=yes 5909 fi 5910 fi 5911 $rm conftest* 5912 5913fi 5914echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 5915echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 5916 5917if test x"$lt_prog_compiler_pic_works" = xyes; then 5918 case $lt_prog_compiler_pic in 5919 "" | " "*) ;; 5920 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 5921 esac 5922else 5923 lt_prog_compiler_pic= 5924 lt_prog_compiler_can_build_shared=no 5925fi 5926 5927fi 5928case $host_os in 5929 # For platforms which do not support PIC, -DPIC is meaningless: 5930 *djgpp*) 5931 lt_prog_compiler_pic= 5932 ;; 5933 *) 5934 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 5935 ;; 5936esac 5937 5938# 5939# Check to make sure the static flag actually works. 5940# 5941wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 5942echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 5943echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 5944if test "${lt_prog_compiler_static_works+set}" = set; then 5945 echo $ECHO_N "(cached) $ECHO_C" >&6 5946else 5947 lt_prog_compiler_static_works=no 5948 save_LDFLAGS="$LDFLAGS" 5949 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 5950 printf "$lt_simple_link_test_code" > conftest.$ac_ext 5951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 5952 # The linker can only warn and ignore the option if not recognized 5953 # So say no if there are warnings 5954 if test -s conftest.err; then 5955 # Append any errors to the config.log. 5956 cat conftest.err 1>&5 5957 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 5958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 5959 if diff conftest.exp conftest.er2 >/dev/null; then 5960 lt_prog_compiler_static_works=yes 5961 fi 5962 else 5963 lt_prog_compiler_static_works=yes 5964 fi 5965 fi 5966 $rm conftest* 5967 LDFLAGS="$save_LDFLAGS" 5968 5969fi 5970echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 5971echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 5972 5973if test x"$lt_prog_compiler_static_works" = xyes; then 5974 : 5975else 5976 lt_prog_compiler_static= 5977fi 5978 5979 5980echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 5981echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 5982if test "${lt_cv_prog_compiler_c_o+set}" = set; then 5983 echo $ECHO_N "(cached) $ECHO_C" >&6 5984else 5985 lt_cv_prog_compiler_c_o=no 5986 $rm -r conftest 2>/dev/null 5987 mkdir conftest 5988 cd conftest 5989 mkdir out 5990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5991 5992 lt_compiler_flag="-o out/conftest2.$ac_objext" 5993 # Insert the option either (1) after the last *FLAGS variable, or 5994 # (2) before a word containing "conftest.", or (3) at the end. 5995 # Note that $ac_compile itself does not contain backslashes and begins 5996 # with a dollar sign (not a hyphen), so the echo should work correctly. 5997 lt_compile=`echo "$ac_compile" | $SED \ 5998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 5999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6000 -e 's:$: $lt_compiler_flag:'` 6001 (eval echo "\"\$as_me:6001: $lt_compile\"" >&5) 6002 (eval "$lt_compile" 2>out/conftest.err) 6003 ac_status=$? 6004 cat out/conftest.err >&5 6005 echo "$as_me:6005: \$? = $ac_status" >&5 6006 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6007 then 6008 # The compiler can only warn and ignore the option if not recognized 6009 # So say no if there are warnings 6010 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6011 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6012 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6013 lt_cv_prog_compiler_c_o=yes 6014 fi 6015 fi 6016 chmod u+w . 2>&5 6017 $rm conftest* 6018 # SGI C++ compiler will create directory out/ii_files/ for 6019 # template instantiation 6020 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6021 $rm out/* && rmdir out 6022 cd .. 6023 rmdir conftest 6024 $rm conftest* 6025 6026fi 6027echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6028echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6029 6030 6031hard_links="nottested" 6032if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6033 # do not overwrite the value of need_locks provided by the user 6034 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6035echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6036 hard_links=yes 6037 $rm conftest* 6038 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6039 touch conftest.a 6040 ln conftest.a conftest.b 2>&5 || hard_links=no 6041 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6042 echo "$as_me:$LINENO: result: $hard_links" >&5 6043echo "${ECHO_T}$hard_links" >&6 6044 if test "$hard_links" = no; then 6045 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6046echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6047 need_locks=warn 6048 fi 6049else 6050 need_locks=no 6051fi 6052 6053echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6054echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6055 6056 runpath_var= 6057 allow_undefined_flag= 6058 enable_shared_with_static_runtimes=no 6059 archive_cmds= 6060 archive_expsym_cmds= 6061 old_archive_From_new_cmds= 6062 old_archive_from_expsyms_cmds= 6063 export_dynamic_flag_spec= 6064 whole_archive_flag_spec= 6065 thread_safe_flag_spec= 6066 hardcode_libdir_flag_spec= 6067 hardcode_libdir_flag_spec_ld= 6068 hardcode_libdir_separator= 6069 hardcode_direct=no 6070 hardcode_minus_L=no 6071 hardcode_shlibpath_var=unsupported 6072 link_all_deplibs=unknown 6073 hardcode_automatic=no 6074 module_cmds= 6075 module_expsym_cmds= 6076 always_export_symbols=no 6077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6078 # include_expsyms should be a list of space-separated symbols to be *always* 6079 # included in the symbol list 6080 include_expsyms= 6081 # exclude_expsyms can be an extended regexp of symbols to exclude 6082 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6083 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6084 # as well as any symbol that contains `d'. 6085 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6086 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6087 # platforms (ab)use it in PIC code, but their linkers get confused if 6088 # the symbol is explicitly referenced. Since portable code cannot 6089 # rely on this symbol name, it's probably fine to never include it in 6090 # preloaded symbol tables. 6091 extract_expsyms_cmds= 6092 # Just being paranoid about ensuring that cc_basename is set. 6093 for cc_temp in $compiler""; do 6094 case $cc_temp in 6095 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6096 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6097 \-*) ;; 6098 *) break;; 6099 esac 6100done 6101cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6102 6103 case $host_os in 6104 cygwin* | mingw* | pw32*) 6105 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6106 # When not using gcc, we currently assume that we are using 6107 # Microsoft Visual C++. 6108 if test "$GCC" != yes; then 6109 with_gnu_ld=no 6110 fi 6111 ;; 6112 interix*) 6113 # we just hope/assume this is gcc and not c89 (= MSVC++) 6114 with_gnu_ld=yes 6115 ;; 6116 openbsd*) 6117 with_gnu_ld=no 6118 ;; 6119 esac 6120 6121 ld_shlibs=yes 6122 if test "$with_gnu_ld" = yes; then 6123 # If archive_cmds runs LD, not CC, wlarc should be empty 6124 wlarc='${wl}' 6125 6126 # Set some defaults for GNU ld with shared library support. These 6127 # are reset later if shared libraries are not supported. Putting them 6128 # here allows them to be overridden if necessary. 6129 runpath_var=LD_RUN_PATH 6130 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6131 export_dynamic_flag_spec='${wl}--export-dynamic' 6132 # ancient GNU ld didn't support --whole-archive et. al. 6133 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6134 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6135 else 6136 whole_archive_flag_spec= 6137 fi 6138 supports_anon_versioning=no 6139 case `$LD -v 2>/dev/null` in 6140 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6141 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6142 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6143 *\ 2.11.*) ;; # other 2.11 versions 6144 *) supports_anon_versioning=yes ;; 6145 esac 6146 6147 # See if GNU ld supports shared libraries. 6148 case $host_os in 6149 aix3* | aix4* | aix5*) 6150 # On AIX/PPC, the GNU linker is very broken 6151 if test "$host_cpu" != ia64; then 6152 ld_shlibs=no 6153 cat <<EOF 1>&2 6154 6155*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6156*** to be unable to reliably create shared libraries on AIX. 6157*** Therefore, libtool is disabling shared libraries support. If you 6158*** really care for shared libraries, you may want to modify your PATH 6159*** so that a non-GNU linker is found, and then restart. 6160 6161EOF 6162 fi 6163 ;; 6164 6165 amigaos*) 6166 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)' 6167 hardcode_libdir_flag_spec='-L$libdir' 6168 hardcode_minus_L=yes 6169 6170 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6171 # that the semantics of dynamic libraries on AmigaOS, at least up 6172 # to version 4, is to share data among multiple programs linked 6173 # with the same dynamic library. Since this doesn't match the 6174 # behavior of shared libraries on other platforms, we can't use 6175 # them. 6176 ld_shlibs=no 6177 ;; 6178 6179 beos*) 6180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6181 allow_undefined_flag=unsupported 6182 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6183 # support --undefined. This deserves some investigation. FIXME 6184 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6185 else 6186 ld_shlibs=no 6187 fi 6188 ;; 6189 6190 cygwin* | mingw* | pw32*) 6191 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6192 # as there is no search path for DLLs. 6193 hardcode_libdir_flag_spec='-L$libdir' 6194 allow_undefined_flag=unsupported 6195 always_export_symbols=no 6196 enable_shared_with_static_runtimes=yes 6197 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6198 6199 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6201 # If the export-symbols file already is a .def file (1st line 6202 # is EXPORTS), use it as is; otherwise, prepend... 6203 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6204 cp $export_symbols $output_objdir/$soname.def; 6205 else 6206 echo EXPORTS > $output_objdir/$soname.def; 6207 cat $export_symbols >> $output_objdir/$soname.def; 6208 fi~ 6209 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6210 else 6211 ld_shlibs=no 6212 fi 6213 ;; 6214 6215 interix3*) 6216 hardcode_direct=no 6217 hardcode_shlibpath_var=no 6218 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6219 export_dynamic_flag_spec='${wl}-E' 6220 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6221 # Instead, shared libraries are loaded at an image base (0x10000000 by 6222 # default) and relocated if they conflict, which is a slow very memory 6223 # consuming and fragmenting process. To avoid this, we pick a random, 6224 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6225 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6227 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6228 ;; 6229 6230 linux*) 6231 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6232 tmp_addflag= 6233 case $cc_basename,$host_cpu in 6234 pgcc*) # Portland Group C compiler 6235 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6236 tmp_addflag=' $pic_flag' 6237 ;; 6238 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6239 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6240 tmp_addflag=' $pic_flag -Mnomain' ;; 6241 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6242 tmp_addflag=' -i_dynamic' ;; 6243 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6244 tmp_addflag=' -i_dynamic -nofor_main' ;; 6245 ifc* | ifort*) # Intel Fortran compiler 6246 tmp_addflag=' -nofor_main' ;; 6247 esac 6248 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6249 6250 if test $supports_anon_versioning = yes; then 6251 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6253 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6254 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6255 fi 6256 else 6257 ld_shlibs=no 6258 fi 6259 ;; 6260 6261 netbsd*) 6262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6264 wlarc= 6265 else 6266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6268 fi 6269 ;; 6270 6271 solaris*) 6272 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6273 ld_shlibs=no 6274 cat <<EOF 1>&2 6275 6276*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6277*** create shared libraries on Solaris systems. Therefore, libtool 6278*** is disabling shared libraries support. We urge you to upgrade GNU 6279*** binutils to release 2.9.1 or newer. Another option is to modify 6280*** your PATH or compiler configuration so that the native linker is 6281*** used, and then restart. 6282 6283EOF 6284 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6287 else 6288 ld_shlibs=no 6289 fi 6290 ;; 6291 6292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6293 case `$LD -v 2>&1` in 6294 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 6295 ld_shlibs=no 6296 cat <<_LT_EOF 1>&2 6297 6298*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6299*** reliably create shared libraries on SCO systems. Therefore, libtool 6300*** is disabling shared libraries support. We urge you to upgrade GNU 6301*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6302*** your PATH or compiler configuration so that the native linker is 6303*** used, and then restart. 6304 6305_LT_EOF 6306 ;; 6307 *) 6308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6309 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 6310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 6311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 6312 else 6313 ld_shlibs=no 6314 fi 6315 ;; 6316 esac 6317 ;; 6318 6319 sunos4*) 6320 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6321 wlarc= 6322 hardcode_direct=yes 6323 hardcode_shlibpath_var=no 6324 ;; 6325 6326 *) 6327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6330 else 6331 ld_shlibs=no 6332 fi 6333 ;; 6334 esac 6335 6336 if test "$ld_shlibs" = no; then 6337 runpath_var= 6338 hardcode_libdir_flag_spec= 6339 export_dynamic_flag_spec= 6340 whole_archive_flag_spec= 6341 fi 6342 else 6343 # PORTME fill in a description of your system's linker (not GNU ld) 6344 case $host_os in 6345 aix3*) 6346 allow_undefined_flag=unsupported 6347 always_export_symbols=yes 6348 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' 6349 # Note: this linker hardcodes the directories in LIBPATH if there 6350 # are no directories specified by -L. 6351 hardcode_minus_L=yes 6352 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6353 # Neither direct hardcoding nor static linking is supported with a 6354 # broken collect2. 6355 hardcode_direct=unsupported 6356 fi 6357 ;; 6358 6359 aix4* | aix5*) 6360 if test "$host_cpu" = ia64; then 6361 # On IA64, the linker does run time linking by default, so we don't 6362 # have to do anything special. 6363 aix_use_runtimelinking=no 6364 exp_sym_flag='-Bexport' 6365 no_entry_flag="" 6366 else 6367 # If we're using GNU nm, then we don't want the "-C" option. 6368 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6369 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6370 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' 6371 else 6372 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' 6373 fi 6374 aix_use_runtimelinking=no 6375 6376 # Test if we are trying to use run time linking or normal 6377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6378 # need to do runtime linking. 6379 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6380 for ld_flag in $LDFLAGS; do 6381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6382 aix_use_runtimelinking=yes 6383 break 6384 fi 6385 done 6386 ;; 6387 esac 6388 6389 exp_sym_flag='-bexport' 6390 no_entry_flag='-bnoentry' 6391 fi 6392 6393 # When large executables or shared objects are built, AIX ld can 6394 # have problems creating the table of contents. If linking a library 6395 # or program results in "error TOC overflow" add -mminimal-toc to 6396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6398 6399 archive_cmds='' 6400 hardcode_direct=yes 6401 hardcode_libdir_separator=':' 6402 link_all_deplibs=yes 6403 6404 if test "$GCC" = yes; then 6405 case $host_os in aix4.[012]|aix4.[012].*) 6406 # We only want to do this on AIX 4.2 and lower, the check 6407 # below for broken collect2 doesn't work under 4.3+ 6408 collect2name=`${CC} -print-prog-name=collect2` 6409 if test -f "$collect2name" && \ 6410 strings "$collect2name" | grep resolve_lib_name >/dev/null 6411 then 6412 # We have reworked collect2 6413 hardcode_direct=yes 6414 else 6415 # We have old collect2 6416 hardcode_direct=unsupported 6417 # It fails to find uninstalled libraries when the uninstalled 6418 # path is not listed in the libpath. Setting hardcode_minus_L 6419 # to unsupported forces relinking 6420 hardcode_minus_L=yes 6421 hardcode_libdir_flag_spec='-L$libdir' 6422 hardcode_libdir_separator= 6423 fi 6424 ;; 6425 esac 6426 shared_flag='-shared' 6427 if test "$aix_use_runtimelinking" = yes; then 6428 shared_flag="$shared_flag "'${wl}-G' 6429 fi 6430 else 6431 # not using gcc 6432 if test "$host_cpu" = ia64; then 6433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6434 # chokes on -Wl,-G. The following line is correct: 6435 shared_flag='-G' 6436 else 6437 if test "$aix_use_runtimelinking" = yes; then 6438 shared_flag='${wl}-G' 6439 else 6440 shared_flag='${wl}-bM:SRE' 6441 fi 6442 fi 6443 fi 6444 6445 # It seems that -bexpall does not export symbols beginning with 6446 # underscore (_), so it is better to generate a list of symbols to export. 6447 always_export_symbols=yes 6448 if test "$aix_use_runtimelinking" = yes; then 6449 # Warning - without using the other runtime loading flags (-brtl), 6450 # -berok will link without error, but may produce a broken library. 6451 allow_undefined_flag='-berok' 6452 # Determine the default libpath from the value encoded in an empty executable. 6453 cat >conftest.$ac_ext <<_ACEOF 6454/* confdefs.h. */ 6455_ACEOF 6456cat confdefs.h >>conftest.$ac_ext 6457cat >>conftest.$ac_ext <<_ACEOF 6458/* end confdefs.h. */ 6459 6460int 6461main () 6462{ 6463 6464 ; 6465 return 0; 6466} 6467_ACEOF 6468rm -f conftest.$ac_objext conftest$ac_exeext 6469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6470 (eval $ac_link) 2>conftest.er1 6471 ac_status=$? 6472 grep -v '^ *+' conftest.er1 >conftest.err 6473 rm -f conftest.er1 6474 cat conftest.err >&5 6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6476 (exit $ac_status); } && 6477 { ac_try='test -z "$ac_c_werror_flag" 6478 || test ! -s conftest.err' 6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6480 (eval $ac_try) 2>&5 6481 ac_status=$? 6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6483 (exit $ac_status); }; } && 6484 { ac_try='test -s conftest$ac_exeext' 6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6486 (eval $ac_try) 2>&5 6487 ac_status=$? 6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6489 (exit $ac_status); }; }; then 6490 6491aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6492}'` 6493# Check for a 64-bit object if we didn't find anything. 6494if 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; } 6495}'`; fi 6496else 6497 echo "$as_me: failed program was:" >&5 6498sed 's/^/| /' conftest.$ac_ext >&5 6499 6500fi 6501rm -f conftest.err conftest.$ac_objext \ 6502 conftest$ac_exeext conftest.$ac_ext 6503if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6504 6505 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6506 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6507 else 6508 if test "$host_cpu" = ia64; then 6509 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6510 allow_undefined_flag="-z nodefs" 6511 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 6512 else 6513 # Determine the default libpath from the value encoded in an empty executable. 6514 cat >conftest.$ac_ext <<_ACEOF 6515/* confdefs.h. */ 6516_ACEOF 6517cat confdefs.h >>conftest.$ac_ext 6518cat >>conftest.$ac_ext <<_ACEOF 6519/* end confdefs.h. */ 6520 6521int 6522main () 6523{ 6524 6525 ; 6526 return 0; 6527} 6528_ACEOF 6529rm -f conftest.$ac_objext conftest$ac_exeext 6530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6531 (eval $ac_link) 2>conftest.er1 6532 ac_status=$? 6533 grep -v '^ *+' conftest.er1 >conftest.err 6534 rm -f conftest.er1 6535 cat conftest.err >&5 6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6537 (exit $ac_status); } && 6538 { ac_try='test -z "$ac_c_werror_flag" 6539 || test ! -s conftest.err' 6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6541 (eval $ac_try) 2>&5 6542 ac_status=$? 6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6544 (exit $ac_status); }; } && 6545 { ac_try='test -s conftest$ac_exeext' 6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6547 (eval $ac_try) 2>&5 6548 ac_status=$? 6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6550 (exit $ac_status); }; }; then 6551 6552aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6553}'` 6554# Check for a 64-bit object if we didn't find anything. 6555if 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; } 6556}'`; fi 6557else 6558 echo "$as_me: failed program was:" >&5 6559sed 's/^/| /' conftest.$ac_ext >&5 6560 6561fi 6562rm -f conftest.err conftest.$ac_objext \ 6563 conftest$ac_exeext conftest.$ac_ext 6564if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6565 6566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6567 # Warning - without using the other run time loading flags, 6568 # -berok will link without error, but may produce a broken library. 6569 no_undefined_flag=' ${wl}-bernotok' 6570 allow_undefined_flag=' ${wl}-berok' 6571 # Exported symbols can be pulled into shared objects from archives 6572 whole_archive_flag_spec='$convenience' 6573 archive_cmds_need_lc=yes 6574 # This is similar to how AIX traditionally builds its shared libraries. 6575 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6576 fi 6577 fi 6578 ;; 6579 6580 amigaos*) 6581 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)' 6582 hardcode_libdir_flag_spec='-L$libdir' 6583 hardcode_minus_L=yes 6584 # see comment about different semantics on the GNU ld section 6585 ld_shlibs=no 6586 ;; 6587 6588 bsdi[45]*) 6589 export_dynamic_flag_spec=-rdynamic 6590 ;; 6591 6592 cygwin* | mingw* | pw32*) 6593 # When not using gcc, we currently assume that we are using 6594 # Microsoft Visual C++. 6595 # hardcode_libdir_flag_spec is actually meaningless, as there is 6596 # no search path for DLLs. 6597 hardcode_libdir_flag_spec=' ' 6598 allow_undefined_flag=unsupported 6599 # Tell ltmain to make .lib files, not .a files. 6600 libext=lib 6601 # Tell ltmain to make .dll files, not .so files. 6602 shrext_cmds=".dll" 6603 # FIXME: Setting linknames here is a bad hack. 6604 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6605 # The linker will automatically build a .lib file if we build a DLL. 6606 old_archive_From_new_cmds='true' 6607 # FIXME: Should let the user specify the lib program. 6608 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6609 fix_srcfile_path='`cygpath -w "$srcfile"`' 6610 enable_shared_with_static_runtimes=yes 6611 ;; 6612 6613 darwin* | rhapsody*) 6614 case $host_os in 6615 rhapsody* | darwin1.[012]) 6616 allow_undefined_flag='${wl}-undefined ${wl}suppress' 6617 ;; 6618 *) # Darwin 1.3 on 6619 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6620 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6621 else 6622 case ${MACOSX_DEPLOYMENT_TARGET} in 6623 10.[012]) 6624 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6625 ;; 6626 10.*) 6627 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 6628 ;; 6629 esac 6630 fi 6631 ;; 6632 esac 6633 archive_cmds_need_lc=no 6634 hardcode_direct=no 6635 hardcode_automatic=yes 6636 hardcode_shlibpath_var=unsupported 6637 whole_archive_flag_spec='' 6638 link_all_deplibs=yes 6639 if test "$GCC" = yes ; then 6640 output_verbose_link_cmd='echo' 6641 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6642 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6643 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6644 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}' 6645 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}' 6646 else 6647 case $cc_basename in 6648 xlc*) 6649 output_verbose_link_cmd='echo' 6650 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 6651 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6652 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6653 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}' 6654 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}' 6655 ;; 6656 *) 6657 ld_shlibs=no 6658 ;; 6659 esac 6660 fi 6661 ;; 6662 6663 dgux*) 6664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6665 hardcode_libdir_flag_spec='-L$libdir' 6666 hardcode_shlibpath_var=no 6667 ;; 6668 6669 freebsd1*) 6670 ld_shlibs=no 6671 ;; 6672 6673 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6674 # support. Future versions do this automatically, but an explicit c++rt0.o 6675 # does not break anything, and helps significantly (at the cost of a little 6676 # extra space). 6677 freebsd2.2*) 6678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6679 hardcode_libdir_flag_spec='-R$libdir' 6680 hardcode_direct=yes 6681 hardcode_shlibpath_var=no 6682 ;; 6683 6684 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6685 freebsd2*) 6686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6687 hardcode_direct=yes 6688 hardcode_minus_L=yes 6689 hardcode_shlibpath_var=no 6690 ;; 6691 6692 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6693 freebsd* | kfreebsd*-gnu | dragonfly*) 6694 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6695 hardcode_libdir_flag_spec='-R$libdir' 6696 hardcode_direct=yes 6697 hardcode_shlibpath_var=no 6698 ;; 6699 6700 hpux9*) 6701 if test "$GCC" = yes; then 6702 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' 6703 else 6704 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' 6705 fi 6706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6707 hardcode_libdir_separator=: 6708 hardcode_direct=yes 6709 6710 # hardcode_minus_L: Not really in the search PATH, 6711 # but as the default location of the library. 6712 hardcode_minus_L=yes 6713 export_dynamic_flag_spec='${wl}-E' 6714 ;; 6715 6716 hpux10*) 6717 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6719 else 6720 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6721 fi 6722 if test "$with_gnu_ld" = no; then 6723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6724 hardcode_libdir_separator=: 6725 6726 hardcode_direct=yes 6727 export_dynamic_flag_spec='${wl}-E' 6728 6729 # hardcode_minus_L: Not really in the search PATH, 6730 # but as the default location of the library. 6731 hardcode_minus_L=yes 6732 fi 6733 ;; 6734 6735 hpux11*) 6736 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6737 case $host_cpu in 6738 hppa*64*) 6739 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6740 ;; 6741 ia64*) 6742 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6743 ;; 6744 *) 6745 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6746 ;; 6747 esac 6748 else 6749 case $host_cpu in 6750 hppa*64*) 6751 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6752 ;; 6753 ia64*) 6754 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6755 ;; 6756 *) 6757 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6758 ;; 6759 esac 6760 fi 6761 if test "$with_gnu_ld" = no; then 6762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6763 hardcode_libdir_separator=: 6764 6765 case $host_cpu in 6766 hppa*64*|ia64*) 6767 hardcode_libdir_flag_spec_ld='+b $libdir' 6768 hardcode_direct=no 6769 hardcode_shlibpath_var=no 6770 ;; 6771 *) 6772 hardcode_direct=yes 6773 export_dynamic_flag_spec='${wl}-E' 6774 6775 # hardcode_minus_L: Not really in the search PATH, 6776 # but as the default location of the library. 6777 hardcode_minus_L=yes 6778 ;; 6779 esac 6780 fi 6781 ;; 6782 6783 irix5* | irix6* | nonstopux*) 6784 if test "$GCC" = yes; then 6785 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' 6786 else 6787 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' 6788 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6789 fi 6790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6791 hardcode_libdir_separator=: 6792 link_all_deplibs=yes 6793 ;; 6794 6795 netbsd*) 6796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6798 else 6799 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6800 fi 6801 hardcode_libdir_flag_spec='-R$libdir' 6802 hardcode_direct=yes 6803 hardcode_shlibpath_var=no 6804 ;; 6805 6806 newsos6) 6807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6808 hardcode_direct=yes 6809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6810 hardcode_libdir_separator=: 6811 hardcode_shlibpath_var=no 6812 ;; 6813 6814 openbsd*) 6815 hardcode_direct=yes 6816 hardcode_shlibpath_var=no 6817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 6820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6821 export_dynamic_flag_spec='${wl}-E' 6822 else 6823 case $host_os in 6824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6826 hardcode_libdir_flag_spec='-R$libdir' 6827 ;; 6828 *) 6829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6831 ;; 6832 esac 6833 fi 6834 ;; 6835 6836 os2*) 6837 hardcode_libdir_flag_spec='-L$libdir' 6838 hardcode_minus_L=yes 6839 allow_undefined_flag=unsupported 6840 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' 6841 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6842 ;; 6843 6844 osf3*) 6845 if test "$GCC" = yes; then 6846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6847 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' 6848 else 6849 allow_undefined_flag=' -expect_unresolved \*' 6850 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' 6851 fi 6852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6853 hardcode_libdir_separator=: 6854 ;; 6855 6856 osf4* | osf5*) # as osf3* with the addition of -msym flag 6857 if test "$GCC" = yes; then 6858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6859 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' 6860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6861 else 6862 allow_undefined_flag=' -expect_unresolved \*' 6863 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' 6864 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6865 $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' 6866 6867 # Both c and cxx compiler support -rpath directly 6868 hardcode_libdir_flag_spec='-rpath $libdir' 6869 fi 6870 hardcode_libdir_separator=: 6871 ;; 6872 6873 solaris*) 6874 no_undefined_flag=' -z text' 6875 if test "$GCC" = yes; then 6876 wlarc='${wl}' 6877 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6878 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6879 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6880 else 6881 wlarc='' 6882 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6883 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6884 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6885 fi 6886 hardcode_libdir_flag_spec='-R$libdir' 6887 hardcode_shlibpath_var=no 6888 case $host_os in 6889 solaris2.[0-5] | solaris2.[0-5].*) ;; 6890 *) 6891 # The compiler driver will combine linker options so we 6892 # cannot just pass the convience library names through 6893 # without $wl, iff we do not link with $LD. 6894 # Luckily, gcc supports the same syntax we need for Sun Studio. 6895 # Supported since Solaris 2.6 (maybe 2.5.1?) 6896 case $wlarc in 6897 '') 6898 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6899 *) 6900 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' ;; 6901 esac ;; 6902 esac 6903 link_all_deplibs=yes 6904 ;; 6905 6906 sunos4*) 6907 if test "x$host_vendor" = xsequent; then 6908 # Use $CC to link under sequent, because it throws in some extra .o 6909 # files that make .init and .fini sections work. 6910 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6911 else 6912 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6913 fi 6914 hardcode_libdir_flag_spec='-L$libdir' 6915 hardcode_direct=yes 6916 hardcode_minus_L=yes 6917 hardcode_shlibpath_var=no 6918 ;; 6919 6920 sysv4) 6921 case $host_vendor in 6922 sni) 6923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6924 hardcode_direct=yes # is this really true??? 6925 ;; 6926 siemens) 6927 ## LD is ld it makes a PLAMLIB 6928 ## CC just makes a GrossModule. 6929 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6930 reload_cmds='$CC -r -o $output$reload_objs' 6931 hardcode_direct=no 6932 ;; 6933 motorola) 6934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6935 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 6936 ;; 6937 esac 6938 runpath_var='LD_RUN_PATH' 6939 hardcode_shlibpath_var=no 6940 ;; 6941 6942 sysv4.3*) 6943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6944 hardcode_shlibpath_var=no 6945 export_dynamic_flag_spec='-Bexport' 6946 ;; 6947 6948 sysv4*MP*) 6949 if test -d /usr/nec; then 6950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6951 hardcode_shlibpath_var=no 6952 runpath_var=LD_RUN_PATH 6953 hardcode_runpath_var=yes 6954 ld_shlibs=yes 6955 fi 6956 ;; 6957 6958 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 6959 no_undefined_flag='${wl}-z,text' 6960 archive_cmds_need_lc=no 6961 hardcode_shlibpath_var=no 6962 runpath_var='LD_RUN_PATH' 6963 6964 if test "$GCC" = yes; then 6965 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6967 else 6968 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6970 fi 6971 ;; 6972 6973 sysv5* | sco3.2v5* | sco5v6*) 6974 # Note: We can NOT use -z defs as we might desire, because we do not 6975 # link with -lc, and that would cause any symbols used from libc to 6976 # always be unresolved, which means just about no library would 6977 # ever link correctly. If we're not using GNU ld we use -z text 6978 # though, which does catch some bad symbols but isn't as heavy-handed 6979 # as -z defs. 6980 no_undefined_flag='${wl}-z,text' 6981 allow_undefined_flag='${wl}-z,nodefs' 6982 archive_cmds_need_lc=no 6983 hardcode_shlibpath_var=no 6984 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 6985 hardcode_libdir_separator=':' 6986 link_all_deplibs=yes 6987 export_dynamic_flag_spec='${wl}-Bexport' 6988 runpath_var='LD_RUN_PATH' 6989 6990 if test "$GCC" = yes; then 6991 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6992 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6993 else 6994 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6995 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6996 fi 6997 ;; 6998 6999 uts4*) 7000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7001 hardcode_libdir_flag_spec='-L$libdir' 7002 hardcode_shlibpath_var=no 7003 ;; 7004 7005 *) 7006 ld_shlibs=no 7007 ;; 7008 esac 7009 fi 7010 7011echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7012echo "${ECHO_T}$ld_shlibs" >&6 7013test "$ld_shlibs" = no && can_build_shared=no 7014 7015# 7016# Do we need to explicitly link libc? 7017# 7018case "x$archive_cmds_need_lc" in 7019x|xyes) 7020 # Assume -lc should be added 7021 archive_cmds_need_lc=yes 7022 7023 if test "$enable_shared" = yes && test "$GCC" = yes; then 7024 case $archive_cmds in 7025 *'~'*) 7026 # FIXME: we may have to deal with multi-command sequences. 7027 ;; 7028 '$CC '*) 7029 # Test whether the compiler implicitly links with -lc since on some 7030 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7031 # to ld, don't add -lc before -lgcc. 7032 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7033echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7034 $rm conftest* 7035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7036 7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7038 (eval $ac_compile) 2>&5 7039 ac_status=$? 7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7041 (exit $ac_status); } 2>conftest.err; then 7042 soname=conftest 7043 lib=conftest 7044 libobjs=conftest.$ac_objext 7045 deplibs= 7046 wl=$lt_prog_compiler_wl 7047 pic_flag=$lt_prog_compiler_pic 7048 compiler_flags=-v 7049 linker_flags=-v 7050 verstring= 7051 output_objdir=. 7052 libname=conftest 7053 lt_save_allow_undefined_flag=$allow_undefined_flag 7054 allow_undefined_flag= 7055 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7056 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7057 ac_status=$? 7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7059 (exit $ac_status); } 7060 then 7061 archive_cmds_need_lc=no 7062 else 7063 archive_cmds_need_lc=yes 7064 fi 7065 allow_undefined_flag=$lt_save_allow_undefined_flag 7066 else 7067 cat conftest.err 1>&5 7068 fi 7069 $rm conftest* 7070 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7071echo "${ECHO_T}$archive_cmds_need_lc" >&6 7072 ;; 7073 esac 7074 fi 7075 ;; 7076esac 7077 7078echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7079echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7080library_names_spec= 7081libname_spec='lib$name' 7082soname_spec= 7083shrext_cmds=".so" 7084postinstall_cmds= 7085postuninstall_cmds= 7086finish_cmds= 7087finish_eval= 7088shlibpath_var= 7089shlibpath_overrides_runpath=unknown 7090version_type=none 7091dynamic_linker="$host_os ld.so" 7092sys_lib_dlsearch_path_spec="/lib /usr/lib" 7093if test "$GCC" = yes; then 7094 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7095 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7096 # if the path contains ";" then we assume it to be the separator 7097 # otherwise default to the standard path separator (i.e. ":") - it is 7098 # assumed that no part of a normal pathname contains ";" but that should 7099 # okay in the real world where ";" in dirpaths is itself problematic. 7100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7101 else 7102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7103 fi 7104else 7105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7106fi 7107need_lib_prefix=unknown 7108hardcode_into_libs=no 7109 7110# when you set need_version to no, make sure it does not cause -set_version 7111# flags to be left without arguments 7112need_version=unknown 7113 7114case $host_os in 7115aix3*) 7116 version_type=linux 7117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7118 shlibpath_var=LIBPATH 7119 7120 # AIX 3 has no versioning support, so we append a major version to the name. 7121 soname_spec='${libname}${release}${shared_ext}$major' 7122 ;; 7123 7124aix4* | aix5*) 7125 version_type=linux 7126 need_lib_prefix=no 7127 need_version=no 7128 hardcode_into_libs=yes 7129 if test "$host_cpu" = ia64; then 7130 # AIX 5 supports IA64 7131 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7132 shlibpath_var=LD_LIBRARY_PATH 7133 else 7134 # With GCC up to 2.95.x, collect2 would create an import file 7135 # for dependence libraries. The import file would start with 7136 # the line `#! .'. This would cause the generated library to 7137 # depend on `.', always an invalid library. This was fixed in 7138 # development snapshots of GCC prior to 3.0. 7139 case $host_os in 7140 aix4 | aix4.[01] | aix4.[01].*) 7141 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7142 echo ' yes ' 7143 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7144 : 7145 else 7146 can_build_shared=no 7147 fi 7148 ;; 7149 esac 7150 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7151 # soname into executable. Probably we can add versioning support to 7152 # collect2, so additional links can be useful in future. 7153 if test "$aix_use_runtimelinking" = yes; then 7154 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7155 # instead of lib<name>.a to let people know that these are not 7156 # typical AIX shared libraries. 7157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7158 else 7159 # We preserve .a as extension for shared libraries through AIX4.2 7160 # and later when we are not doing run time linking. 7161 library_names_spec='${libname}${release}.a $libname.a' 7162 soname_spec='${libname}${release}${shared_ext}$major' 7163 fi 7164 shlibpath_var=LIBPATH 7165 fi 7166 ;; 7167 7168amigaos*) 7169 library_names_spec='$libname.ixlibrary $libname.a' 7170 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7171 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' 7172 ;; 7173 7174beos*) 7175 library_names_spec='${libname}${shared_ext}' 7176 dynamic_linker="$host_os ld.so" 7177 shlibpath_var=LIBRARY_PATH 7178 ;; 7179 7180bsdi[45]*) 7181 version_type=linux 7182 need_version=no 7183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7184 soname_spec='${libname}${release}${shared_ext}$major' 7185 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7186 shlibpath_var=LD_LIBRARY_PATH 7187 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7188 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7189 # the default ld.so.conf also contains /usr/contrib/lib and 7190 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7191 # libtool to hard-code these into programs 7192 ;; 7193 7194cygwin* | mingw* | pw32*) 7195 version_type=windows 7196 shrext_cmds=".dll" 7197 need_version=no 7198 need_lib_prefix=no 7199 7200 case $GCC,$host_os in 7201 yes,cygwin* | yes,mingw* | yes,pw32*) 7202 library_names_spec='$libname.dll.a' 7203 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7204 postinstall_cmds='base_file=`basename \${file}`~ 7205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7206 dldir=$destdir/`dirname \$dlpath`~ 7207 test -d \$dldir || mkdir -p \$dldir~ 7208 $install_prog $dir/$dlname \$dldir/$dlname~ 7209 chmod a+x \$dldir/$dlname' 7210 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7211 dlpath=$dir/\$dldll~ 7212 $rm \$dlpath' 7213 shlibpath_overrides_runpath=yes 7214 7215 case $host_os in 7216 cygwin*) 7217 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7218 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7219 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7220 ;; 7221 mingw*) 7222 # MinGW DLLs use traditional 'lib' prefix 7223 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7224 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7225 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7226 # It is most probably a Windows format PATH printed by 7227 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7228 # path with ; separators, and with drive letters. We can handle the 7229 # drive letters (cygwin fileutils understands them), so leave them, 7230 # especially as we might pass files found there to a mingw objdump, 7231 # which wouldn't understand a cygwinified path. Ahh. 7232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7233 else 7234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7235 fi 7236 ;; 7237 pw32*) 7238 # pw32 DLLs use 'pw' prefix rather than 'lib' 7239 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7240 ;; 7241 esac 7242 ;; 7243 7244 *) 7245 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7246 ;; 7247 esac 7248 dynamic_linker='Win32 ld.exe' 7249 # FIXME: first we should search . and the directory the executable is in 7250 shlibpath_var=PATH 7251 ;; 7252 7253darwin* | rhapsody*) 7254 dynamic_linker="$host_os dyld" 7255 version_type=darwin 7256 need_lib_prefix=no 7257 need_version=no 7258 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7259 soname_spec='${libname}${release}${major}$shared_ext' 7260 shlibpath_overrides_runpath=yes 7261 shlibpath_var=DYLD_LIBRARY_PATH 7262 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7263 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7264 if test "$GCC" = yes; then 7265 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"` 7266 else 7267 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7268 fi 7269 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7270 ;; 7271 7272dgux*) 7273 version_type=linux 7274 need_lib_prefix=no 7275 need_version=no 7276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7277 soname_spec='${libname}${release}${shared_ext}$major' 7278 shlibpath_var=LD_LIBRARY_PATH 7279 ;; 7280 7281freebsd1*) 7282 dynamic_linker=no 7283 ;; 7284 7285kfreebsd*-gnu) 7286 version_type=linux 7287 need_lib_prefix=no 7288 need_version=no 7289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7290 soname_spec='${libname}${release}${shared_ext}$major' 7291 shlibpath_var=LD_LIBRARY_PATH 7292 shlibpath_overrides_runpath=no 7293 hardcode_into_libs=yes 7294 dynamic_linker='GNU ld.so' 7295 ;; 7296 7297freebsd* | dragonfly*) 7298 # DragonFly does not have aout. When/if they implement a new 7299 # versioning mechanism, adjust this. 7300 if test -x /usr/bin/objformat; then 7301 objformat=`/usr/bin/objformat` 7302 else 7303 case $host_os in 7304 freebsd[123]*) objformat=aout ;; 7305 *) objformat=elf ;; 7306 esac 7307 fi 7308 version_type=freebsd-$objformat 7309 case $version_type in 7310 freebsd-elf*) 7311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7312 need_version=no 7313 need_lib_prefix=no 7314 ;; 7315 freebsd-*) 7316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7317 need_version=yes 7318 ;; 7319 esac 7320 shlibpath_var=LD_LIBRARY_PATH 7321 case $host_os in 7322 freebsd2*) 7323 shlibpath_overrides_runpath=yes 7324 ;; 7325 freebsd3.[01]* | freebsdelf3.[01]*) 7326 shlibpath_overrides_runpath=yes 7327 hardcode_into_libs=yes 7328 ;; 7329 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 7330 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 7331 shlibpath_overrides_runpath=no 7332 hardcode_into_libs=yes 7333 ;; 7334 freebsd*) # from 4.6 on 7335 shlibpath_overrides_runpath=yes 7336 hardcode_into_libs=yes 7337 ;; 7338 esac 7339 ;; 7340 7341gnu*) 7342 version_type=linux 7343 need_lib_prefix=no 7344 need_version=no 7345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7346 soname_spec='${libname}${release}${shared_ext}$major' 7347 shlibpath_var=LD_LIBRARY_PATH 7348 hardcode_into_libs=yes 7349 ;; 7350 7351hpux9* | hpux10* | hpux11*) 7352 # Give a soname corresponding to the major version so that dld.sl refuses to 7353 # link against other versions. 7354 version_type=sunos 7355 need_lib_prefix=no 7356 need_version=no 7357 case $host_cpu in 7358 ia64*) 7359 shrext_cmds='.so' 7360 hardcode_into_libs=yes 7361 dynamic_linker="$host_os dld.so" 7362 shlibpath_var=LD_LIBRARY_PATH 7363 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7365 soname_spec='${libname}${release}${shared_ext}$major' 7366 if test "X$HPUX_IA64_MODE" = X32; then 7367 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7368 else 7369 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7370 fi 7371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7372 ;; 7373 hppa*64*) 7374 shrext_cmds='.sl' 7375 hardcode_into_libs=yes 7376 dynamic_linker="$host_os dld.sl" 7377 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7380 soname_spec='${libname}${release}${shared_ext}$major' 7381 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7383 ;; 7384 *) 7385 shrext_cmds='.sl' 7386 dynamic_linker="$host_os dld.sl" 7387 shlibpath_var=SHLIB_PATH 7388 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7390 soname_spec='${libname}${release}${shared_ext}$major' 7391 ;; 7392 esac 7393 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7394 postinstall_cmds='chmod 555 $lib' 7395 ;; 7396 7397interix3*) 7398 version_type=linux 7399 need_lib_prefix=no 7400 need_version=no 7401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7402 soname_spec='${libname}${release}${shared_ext}$major' 7403 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 7404 shlibpath_var=LD_LIBRARY_PATH 7405 shlibpath_overrides_runpath=no 7406 hardcode_into_libs=yes 7407 ;; 7408 7409irix5* | irix6* | nonstopux*) 7410 case $host_os in 7411 nonstopux*) version_type=nonstopux ;; 7412 *) 7413 if test "$lt_cv_prog_gnu_ld" = yes; then 7414 version_type=linux 7415 else 7416 version_type=irix 7417 fi ;; 7418 esac 7419 need_lib_prefix=no 7420 need_version=no 7421 soname_spec='${libname}${release}${shared_ext}$major' 7422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7423 case $host_os in 7424 irix5* | nonstopux*) 7425 libsuff= shlibsuff= 7426 ;; 7427 *) 7428 case $LD in # libtool.m4 will add one of these switches to LD 7429 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7430 libsuff= shlibsuff= libmagic=32-bit;; 7431 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7432 libsuff=32 shlibsuff=N32 libmagic=N32;; 7433 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7434 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7435 *) libsuff= shlibsuff= libmagic=never-match;; 7436 esac 7437 ;; 7438 esac 7439 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7440 shlibpath_overrides_runpath=no 7441 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7442 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7443 hardcode_into_libs=yes 7444 ;; 7445 7446# No shared lib support for Linux oldld, aout, or coff. 7447linux*oldld* | linux*aout* | linux*coff*) 7448 dynamic_linker=no 7449 ;; 7450 7451# This must be Linux ELF. 7452linux*) 7453 version_type=linux 7454 need_lib_prefix=no 7455 need_version=no 7456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7457 soname_spec='${libname}${release}${shared_ext}$major' 7458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7459 shlibpath_var=LD_LIBRARY_PATH 7460 shlibpath_overrides_runpath=no 7461 # This implies no fast_install, which is unacceptable. 7462 # Some rework will be needed to allow for fast_install 7463 # before this can be enabled. 7464 hardcode_into_libs=yes 7465 7466 # find out which ABI we are using 7467 libsuff= 7468 case "$host_cpu" in 7469 x86_64*|s390x*|powerpc64*) 7470 echo '#line 7470 "configure"' > conftest.$ac_ext 7471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7472 (eval $ac_compile) 2>&5 7473 ac_status=$? 7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7475 (exit $ac_status); }; then 7476 case `/usr/bin/file conftest.$ac_objext` in 7477 *64-bit*) 7478 libsuff=64 7479 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 7480 ;; 7481 esac 7482 fi 7483 rm -rf conftest* 7484 ;; 7485 esac 7486 7487 # Append ld.so.conf contents to the search path 7488 if test -f /etc/ld.so.conf; then 7489 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 7490 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 7491 fi 7492 7493 # We used to test for /lib/ld.so.1 and disable shared libraries on 7494 # powerpc, because MkLinux only supported shared libraries with the 7495 # GNU dynamic linker. Since this was broken with cross compilers, 7496 # most powerpc-linux boxes support dynamic linking these days and 7497 # people can always --disable-shared, the test was removed, and we 7498 # assume the GNU/Linux dynamic linker is in use. 7499 dynamic_linker='GNU/Linux ld.so' 7500 ;; 7501 7502knetbsd*-gnu) 7503 version_type=linux 7504 need_lib_prefix=no 7505 need_version=no 7506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7507 soname_spec='${libname}${release}${shared_ext}$major' 7508 shlibpath_var=LD_LIBRARY_PATH 7509 shlibpath_overrides_runpath=no 7510 hardcode_into_libs=yes 7511 dynamic_linker='GNU ld.so' 7512 ;; 7513 7514netbsd*) 7515 version_type=sunos 7516 need_lib_prefix=no 7517 need_version=no 7518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7521 dynamic_linker='NetBSD (a.out) ld.so' 7522 else 7523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7524 soname_spec='${libname}${release}${shared_ext}$major' 7525 dynamic_linker='NetBSD ld.elf_so' 7526 fi 7527 shlibpath_var=LD_LIBRARY_PATH 7528 shlibpath_overrides_runpath=yes 7529 hardcode_into_libs=yes 7530 ;; 7531 7532newsos6) 7533 version_type=linux 7534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7535 shlibpath_var=LD_LIBRARY_PATH 7536 shlibpath_overrides_runpath=yes 7537 ;; 7538 7539nto-qnx*) 7540 version_type=linux 7541 need_lib_prefix=no 7542 need_version=no 7543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7544 soname_spec='${libname}${release}${shared_ext}$major' 7545 shlibpath_var=LD_LIBRARY_PATH 7546 shlibpath_overrides_runpath=yes 7547 ;; 7548 7549openbsd*) 7550 version_type=sunos 7551 sys_lib_dlsearch_path_spec="/usr/lib" 7552 need_lib_prefix=no 7553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 7554 case $host_os in 7555 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 7556 *) need_version=no ;; 7557 esac 7558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7560 shlibpath_var=LD_LIBRARY_PATH 7561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7562 case $host_os in 7563 openbsd2.[89] | openbsd2.[89].*) 7564 shlibpath_overrides_runpath=no 7565 ;; 7566 *) 7567 shlibpath_overrides_runpath=yes 7568 ;; 7569 esac 7570 else 7571 shlibpath_overrides_runpath=yes 7572 fi 7573 ;; 7574 7575os2*) 7576 libname_spec='$name' 7577 shrext_cmds=".dll" 7578 need_lib_prefix=no 7579 library_names_spec='$libname${shared_ext} $libname.a' 7580 dynamic_linker='OS/2 ld.exe' 7581 shlibpath_var=LIBPATH 7582 ;; 7583 7584osf3* | osf4* | osf5*) 7585 version_type=osf 7586 need_lib_prefix=no 7587 need_version=no 7588 soname_spec='${libname}${release}${shared_ext}$major' 7589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7590 shlibpath_var=LD_LIBRARY_PATH 7591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7593 ;; 7594 7595solaris*) 7596 version_type=linux 7597 need_lib_prefix=no 7598 need_version=no 7599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7600 soname_spec='${libname}${release}${shared_ext}$major' 7601 shlibpath_var=LD_LIBRARY_PATH 7602 shlibpath_overrides_runpath=yes 7603 hardcode_into_libs=yes 7604 # ldd complains unless libraries are executable 7605 postinstall_cmds='chmod +x $lib' 7606 ;; 7607 7608sunos4*) 7609 version_type=sunos 7610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7612 shlibpath_var=LD_LIBRARY_PATH 7613 shlibpath_overrides_runpath=yes 7614 if test "$with_gnu_ld" = yes; then 7615 need_lib_prefix=no 7616 fi 7617 need_version=yes 7618 ;; 7619 7620sysv4 | sysv4.3*) 7621 version_type=linux 7622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7623 soname_spec='${libname}${release}${shared_ext}$major' 7624 shlibpath_var=LD_LIBRARY_PATH 7625 case $host_vendor in 7626 sni) 7627 shlibpath_overrides_runpath=no 7628 need_lib_prefix=no 7629 export_dynamic_flag_spec='${wl}-Blargedynsym' 7630 runpath_var=LD_RUN_PATH 7631 ;; 7632 siemens) 7633 need_lib_prefix=no 7634 ;; 7635 motorola) 7636 need_lib_prefix=no 7637 need_version=no 7638 shlibpath_overrides_runpath=no 7639 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7640 ;; 7641 esac 7642 ;; 7643 7644sysv4*MP*) 7645 if test -d /usr/nec ;then 7646 version_type=linux 7647 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 7648 soname_spec='$libname${shared_ext}.$major' 7649 shlibpath_var=LD_LIBRARY_PATH 7650 fi 7651 ;; 7652 7653sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7654 version_type=freebsd-elf 7655 need_lib_prefix=no 7656 need_version=no 7657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7658 soname_spec='${libname}${release}${shared_ext}$major' 7659 shlibpath_var=LD_LIBRARY_PATH 7660 hardcode_into_libs=yes 7661 if test "$with_gnu_ld" = yes; then 7662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 7663 shlibpath_overrides_runpath=no 7664 else 7665 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 7666 shlibpath_overrides_runpath=yes 7667 case $host_os in 7668 sco3.2v5*) 7669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 7670 ;; 7671 esac 7672 fi 7673 sys_lib_dlsearch_path_spec='/usr/lib' 7674 ;; 7675 7676uts4*) 7677 version_type=linux 7678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7679 soname_spec='${libname}${release}${shared_ext}$major' 7680 shlibpath_var=LD_LIBRARY_PATH 7681 ;; 7682 7683*) 7684 dynamic_linker=no 7685 ;; 7686esac 7687echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7688echo "${ECHO_T}$dynamic_linker" >&6 7689test "$dynamic_linker" = no && can_build_shared=no 7690 7691variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7692if test "$GCC" = yes; then 7693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7694fi 7695 7696echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7697echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7698hardcode_action= 7699if test -n "$hardcode_libdir_flag_spec" || \ 7700 test -n "$runpath_var" || \ 7701 test "X$hardcode_automatic" = "Xyes" ; then 7702 7703 # We can hardcode non-existant directories. 7704 if test "$hardcode_direct" != no && 7705 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7706 # have to relink, otherwise we might link with an installed library 7707 # when we should be linking with a yet-to-be-installed one 7708 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 7709 test "$hardcode_minus_L" != no; then 7710 # Linking always hardcodes the temporary library directory. 7711 hardcode_action=relink 7712 else 7713 # We can link without hardcoding, and we can hardcode nonexisting dirs. 7714 hardcode_action=immediate 7715 fi 7716else 7717 # We cannot hardcode anything, or else we can only hardcode existing 7718 # directories. 7719 hardcode_action=unsupported 7720fi 7721echo "$as_me:$LINENO: result: $hardcode_action" >&5 7722echo "${ECHO_T}$hardcode_action" >&6 7723 7724if test "$hardcode_action" = relink; then 7725 # Fast installation is not supported 7726 enable_fast_install=no 7727elif test "$shlibpath_overrides_runpath" = yes || 7728 test "$enable_shared" = no; then 7729 # Fast installation is not necessary 7730 enable_fast_install=needless 7731fi 7732 7733striplib= 7734old_striplib= 7735echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7736echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7737if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7739 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7740 echo "$as_me:$LINENO: result: yes" >&5 7741echo "${ECHO_T}yes" >&6 7742else 7743# FIXME - insert some real tests, host_os isn't really good enough 7744 case $host_os in 7745 darwin*) 7746 if test -n "$STRIP" ; then 7747 striplib="$STRIP -x" 7748 echo "$as_me:$LINENO: result: yes" >&5 7749echo "${ECHO_T}yes" >&6 7750 else 7751 echo "$as_me:$LINENO: result: no" >&5 7752echo "${ECHO_T}no" >&6 7753fi 7754 ;; 7755 *) 7756 echo "$as_me:$LINENO: result: no" >&5 7757echo "${ECHO_T}no" >&6 7758 ;; 7759 esac 7760fi 7761 7762if test "x$enable_dlopen" != xyes; then 7763 enable_dlopen=unknown 7764 enable_dlopen_self=unknown 7765 enable_dlopen_self_static=unknown 7766else 7767 lt_cv_dlopen=no 7768 lt_cv_dlopen_libs= 7769 7770 case $host_os in 7771 beos*) 7772 lt_cv_dlopen="load_add_on" 7773 lt_cv_dlopen_libs= 7774 lt_cv_dlopen_self=yes 7775 ;; 7776 7777 mingw* | pw32*) 7778 lt_cv_dlopen="LoadLibrary" 7779 lt_cv_dlopen_libs= 7780 ;; 7781 7782 cygwin*) 7783 lt_cv_dlopen="dlopen" 7784 lt_cv_dlopen_libs= 7785 ;; 7786 7787 darwin*) 7788 # if libdl is installed we need to link against it 7789 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7790echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7791if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7792 echo $ECHO_N "(cached) $ECHO_C" >&6 7793else 7794 ac_check_lib_save_LIBS=$LIBS 7795LIBS="-ldl $LIBS" 7796cat >conftest.$ac_ext <<_ACEOF 7797/* confdefs.h. */ 7798_ACEOF 7799cat confdefs.h >>conftest.$ac_ext 7800cat >>conftest.$ac_ext <<_ACEOF 7801/* end confdefs.h. */ 7802 7803/* Override any gcc2 internal prototype to avoid an error. */ 7804#ifdef __cplusplus 7805extern "C" 7806#endif 7807/* We use char because int might match the return type of a gcc2 7808 builtin and then its argument prototype would still apply. */ 7809char dlopen (); 7810int 7811main () 7812{ 7813dlopen (); 7814 ; 7815 return 0; 7816} 7817_ACEOF 7818rm -f conftest.$ac_objext conftest$ac_exeext 7819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7820 (eval $ac_link) 2>conftest.er1 7821 ac_status=$? 7822 grep -v '^ *+' conftest.er1 >conftest.err 7823 rm -f conftest.er1 7824 cat conftest.err >&5 7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7826 (exit $ac_status); } && 7827 { ac_try='test -z "$ac_c_werror_flag" 7828 || test ! -s conftest.err' 7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7830 (eval $ac_try) 2>&5 7831 ac_status=$? 7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7833 (exit $ac_status); }; } && 7834 { ac_try='test -s conftest$ac_exeext' 7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7836 (eval $ac_try) 2>&5 7837 ac_status=$? 7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7839 (exit $ac_status); }; }; then 7840 ac_cv_lib_dl_dlopen=yes 7841else 7842 echo "$as_me: failed program was:" >&5 7843sed 's/^/| /' conftest.$ac_ext >&5 7844 7845ac_cv_lib_dl_dlopen=no 7846fi 7847rm -f conftest.err conftest.$ac_objext \ 7848 conftest$ac_exeext conftest.$ac_ext 7849LIBS=$ac_check_lib_save_LIBS 7850fi 7851echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7852echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7853if test $ac_cv_lib_dl_dlopen = yes; then 7854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7855else 7856 7857 lt_cv_dlopen="dyld" 7858 lt_cv_dlopen_libs= 7859 lt_cv_dlopen_self=yes 7860 7861fi 7862 7863 ;; 7864 7865 *) 7866 echo "$as_me:$LINENO: checking for shl_load" >&5 7867echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7868if test "${ac_cv_func_shl_load+set}" = set; then 7869 echo $ECHO_N "(cached) $ECHO_C" >&6 7870else 7871 cat >conftest.$ac_ext <<_ACEOF 7872/* confdefs.h. */ 7873_ACEOF 7874cat confdefs.h >>conftest.$ac_ext 7875cat >>conftest.$ac_ext <<_ACEOF 7876/* end confdefs.h. */ 7877/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 7878 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7879#define shl_load innocuous_shl_load 7880 7881/* System header to define __stub macros and hopefully few prototypes, 7882 which can conflict with char shl_load (); below. 7883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7884 <limits.h> exists even on freestanding compilers. */ 7885 7886#ifdef __STDC__ 7887# include <limits.h> 7888#else 7889# include <assert.h> 7890#endif 7891 7892#undef shl_load 7893 7894/* Override any gcc2 internal prototype to avoid an error. */ 7895#ifdef __cplusplus 7896extern "C" 7897{ 7898#endif 7899/* We use char because int might match the return type of a gcc2 7900 builtin and then its argument prototype would still apply. */ 7901char shl_load (); 7902/* The GNU C library defines this for functions which it implements 7903 to always fail with ENOSYS. Some functions are actually named 7904 something starting with __ and the normal name is an alias. */ 7905#if defined (__stub_shl_load) || defined (__stub___shl_load) 7906choke me 7907#else 7908char (*f) () = shl_load; 7909#endif 7910#ifdef __cplusplus 7911} 7912#endif 7913 7914int 7915main () 7916{ 7917return f != shl_load; 7918 ; 7919 return 0; 7920} 7921_ACEOF 7922rm -f conftest.$ac_objext conftest$ac_exeext 7923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7924 (eval $ac_link) 2>conftest.er1 7925 ac_status=$? 7926 grep -v '^ *+' conftest.er1 >conftest.err 7927 rm -f conftest.er1 7928 cat conftest.err >&5 7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7930 (exit $ac_status); } && 7931 { ac_try='test -z "$ac_c_werror_flag" 7932 || test ! -s conftest.err' 7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7934 (eval $ac_try) 2>&5 7935 ac_status=$? 7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7937 (exit $ac_status); }; } && 7938 { ac_try='test -s conftest$ac_exeext' 7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7940 (eval $ac_try) 2>&5 7941 ac_status=$? 7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7943 (exit $ac_status); }; }; then 7944 ac_cv_func_shl_load=yes 7945else 7946 echo "$as_me: failed program was:" >&5 7947sed 's/^/| /' conftest.$ac_ext >&5 7948 7949ac_cv_func_shl_load=no 7950fi 7951rm -f conftest.err conftest.$ac_objext \ 7952 conftest$ac_exeext conftest.$ac_ext 7953fi 7954echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 7955echo "${ECHO_T}$ac_cv_func_shl_load" >&6 7956if test $ac_cv_func_shl_load = yes; then 7957 lt_cv_dlopen="shl_load" 7958else 7959 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7960echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7961if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7962 echo $ECHO_N "(cached) $ECHO_C" >&6 7963else 7964 ac_check_lib_save_LIBS=$LIBS 7965LIBS="-ldld $LIBS" 7966cat >conftest.$ac_ext <<_ACEOF 7967/* confdefs.h. */ 7968_ACEOF 7969cat confdefs.h >>conftest.$ac_ext 7970cat >>conftest.$ac_ext <<_ACEOF 7971/* end confdefs.h. */ 7972 7973/* Override any gcc2 internal prototype to avoid an error. */ 7974#ifdef __cplusplus 7975extern "C" 7976#endif 7977/* We use char because int might match the return type of a gcc2 7978 builtin and then its argument prototype would still apply. */ 7979char shl_load (); 7980int 7981main () 7982{ 7983shl_load (); 7984 ; 7985 return 0; 7986} 7987_ACEOF 7988rm -f conftest.$ac_objext conftest$ac_exeext 7989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7990 (eval $ac_link) 2>conftest.er1 7991 ac_status=$? 7992 grep -v '^ *+' conftest.er1 >conftest.err 7993 rm -f conftest.er1 7994 cat conftest.err >&5 7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7996 (exit $ac_status); } && 7997 { ac_try='test -z "$ac_c_werror_flag" 7998 || test ! -s conftest.err' 7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8000 (eval $ac_try) 2>&5 8001 ac_status=$? 8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8003 (exit $ac_status); }; } && 8004 { ac_try='test -s conftest$ac_exeext' 8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8006 (eval $ac_try) 2>&5 8007 ac_status=$? 8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8009 (exit $ac_status); }; }; then 8010 ac_cv_lib_dld_shl_load=yes 8011else 8012 echo "$as_me: failed program was:" >&5 8013sed 's/^/| /' conftest.$ac_ext >&5 8014 8015ac_cv_lib_dld_shl_load=no 8016fi 8017rm -f conftest.err conftest.$ac_objext \ 8018 conftest$ac_exeext conftest.$ac_ext 8019LIBS=$ac_check_lib_save_LIBS 8020fi 8021echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8022echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8023if test $ac_cv_lib_dld_shl_load = yes; then 8024 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8025else 8026 echo "$as_me:$LINENO: checking for dlopen" >&5 8027echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8028if test "${ac_cv_func_dlopen+set}" = set; then 8029 echo $ECHO_N "(cached) $ECHO_C" >&6 8030else 8031 cat >conftest.$ac_ext <<_ACEOF 8032/* confdefs.h. */ 8033_ACEOF 8034cat confdefs.h >>conftest.$ac_ext 8035cat >>conftest.$ac_ext <<_ACEOF 8036/* end confdefs.h. */ 8037/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8038 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8039#define dlopen innocuous_dlopen 8040 8041/* System header to define __stub macros and hopefully few prototypes, 8042 which can conflict with char dlopen (); below. 8043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8044 <limits.h> exists even on freestanding compilers. */ 8045 8046#ifdef __STDC__ 8047# include <limits.h> 8048#else 8049# include <assert.h> 8050#endif 8051 8052#undef dlopen 8053 8054/* Override any gcc2 internal prototype to avoid an error. */ 8055#ifdef __cplusplus 8056extern "C" 8057{ 8058#endif 8059/* We use char because int might match the return type of a gcc2 8060 builtin and then its argument prototype would still apply. */ 8061char dlopen (); 8062/* The GNU C library defines this for functions which it implements 8063 to always fail with ENOSYS. Some functions are actually named 8064 something starting with __ and the normal name is an alias. */ 8065#if defined (__stub_dlopen) || defined (__stub___dlopen) 8066choke me 8067#else 8068char (*f) () = dlopen; 8069#endif 8070#ifdef __cplusplus 8071} 8072#endif 8073 8074int 8075main () 8076{ 8077return f != dlopen; 8078 ; 8079 return 0; 8080} 8081_ACEOF 8082rm -f conftest.$ac_objext conftest$ac_exeext 8083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8084 (eval $ac_link) 2>conftest.er1 8085 ac_status=$? 8086 grep -v '^ *+' conftest.er1 >conftest.err 8087 rm -f conftest.er1 8088 cat conftest.err >&5 8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8090 (exit $ac_status); } && 8091 { ac_try='test -z "$ac_c_werror_flag" 8092 || test ! -s conftest.err' 8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8094 (eval $ac_try) 2>&5 8095 ac_status=$? 8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8097 (exit $ac_status); }; } && 8098 { ac_try='test -s conftest$ac_exeext' 8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8100 (eval $ac_try) 2>&5 8101 ac_status=$? 8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8103 (exit $ac_status); }; }; then 8104 ac_cv_func_dlopen=yes 8105else 8106 echo "$as_me: failed program was:" >&5 8107sed 's/^/| /' conftest.$ac_ext >&5 8108 8109ac_cv_func_dlopen=no 8110fi 8111rm -f conftest.err conftest.$ac_objext \ 8112 conftest$ac_exeext conftest.$ac_ext 8113fi 8114echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8115echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8116if test $ac_cv_func_dlopen = yes; then 8117 lt_cv_dlopen="dlopen" 8118else 8119 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8120echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8121if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8122 echo $ECHO_N "(cached) $ECHO_C" >&6 8123else 8124 ac_check_lib_save_LIBS=$LIBS 8125LIBS="-ldl $LIBS" 8126cat >conftest.$ac_ext <<_ACEOF 8127/* confdefs.h. */ 8128_ACEOF 8129cat confdefs.h >>conftest.$ac_ext 8130cat >>conftest.$ac_ext <<_ACEOF 8131/* end confdefs.h. */ 8132 8133/* Override any gcc2 internal prototype to avoid an error. */ 8134#ifdef __cplusplus 8135extern "C" 8136#endif 8137/* We use char because int might match the return type of a gcc2 8138 builtin and then its argument prototype would still apply. */ 8139char dlopen (); 8140int 8141main () 8142{ 8143dlopen (); 8144 ; 8145 return 0; 8146} 8147_ACEOF 8148rm -f conftest.$ac_objext conftest$ac_exeext 8149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8150 (eval $ac_link) 2>conftest.er1 8151 ac_status=$? 8152 grep -v '^ *+' conftest.er1 >conftest.err 8153 rm -f conftest.er1 8154 cat conftest.err >&5 8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8156 (exit $ac_status); } && 8157 { ac_try='test -z "$ac_c_werror_flag" 8158 || test ! -s conftest.err' 8159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8160 (eval $ac_try) 2>&5 8161 ac_status=$? 8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8163 (exit $ac_status); }; } && 8164 { ac_try='test -s conftest$ac_exeext' 8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8166 (eval $ac_try) 2>&5 8167 ac_status=$? 8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8169 (exit $ac_status); }; }; then 8170 ac_cv_lib_dl_dlopen=yes 8171else 8172 echo "$as_me: failed program was:" >&5 8173sed 's/^/| /' conftest.$ac_ext >&5 8174 8175ac_cv_lib_dl_dlopen=no 8176fi 8177rm -f conftest.err conftest.$ac_objext \ 8178 conftest$ac_exeext conftest.$ac_ext 8179LIBS=$ac_check_lib_save_LIBS 8180fi 8181echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8182echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8183if test $ac_cv_lib_dl_dlopen = yes; then 8184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8185else 8186 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8187echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8188if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8189 echo $ECHO_N "(cached) $ECHO_C" >&6 8190else 8191 ac_check_lib_save_LIBS=$LIBS 8192LIBS="-lsvld $LIBS" 8193cat >conftest.$ac_ext <<_ACEOF 8194/* confdefs.h. */ 8195_ACEOF 8196cat confdefs.h >>conftest.$ac_ext 8197cat >>conftest.$ac_ext <<_ACEOF 8198/* end confdefs.h. */ 8199 8200/* Override any gcc2 internal prototype to avoid an error. */ 8201#ifdef __cplusplus 8202extern "C" 8203#endif 8204/* We use char because int might match the return type of a gcc2 8205 builtin and then its argument prototype would still apply. */ 8206char dlopen (); 8207int 8208main () 8209{ 8210dlopen (); 8211 ; 8212 return 0; 8213} 8214_ACEOF 8215rm -f conftest.$ac_objext conftest$ac_exeext 8216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8217 (eval $ac_link) 2>conftest.er1 8218 ac_status=$? 8219 grep -v '^ *+' conftest.er1 >conftest.err 8220 rm -f conftest.er1 8221 cat conftest.err >&5 8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8223 (exit $ac_status); } && 8224 { ac_try='test -z "$ac_c_werror_flag" 8225 || test ! -s conftest.err' 8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8227 (eval $ac_try) 2>&5 8228 ac_status=$? 8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8230 (exit $ac_status); }; } && 8231 { ac_try='test -s conftest$ac_exeext' 8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8233 (eval $ac_try) 2>&5 8234 ac_status=$? 8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8236 (exit $ac_status); }; }; then 8237 ac_cv_lib_svld_dlopen=yes 8238else 8239 echo "$as_me: failed program was:" >&5 8240sed 's/^/| /' conftest.$ac_ext >&5 8241 8242ac_cv_lib_svld_dlopen=no 8243fi 8244rm -f conftest.err conftest.$ac_objext \ 8245 conftest$ac_exeext conftest.$ac_ext 8246LIBS=$ac_check_lib_save_LIBS 8247fi 8248echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8249echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8250if test $ac_cv_lib_svld_dlopen = yes; then 8251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8252else 8253 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8254echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8255if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8256 echo $ECHO_N "(cached) $ECHO_C" >&6 8257else 8258 ac_check_lib_save_LIBS=$LIBS 8259LIBS="-ldld $LIBS" 8260cat >conftest.$ac_ext <<_ACEOF 8261/* confdefs.h. */ 8262_ACEOF 8263cat confdefs.h >>conftest.$ac_ext 8264cat >>conftest.$ac_ext <<_ACEOF 8265/* end confdefs.h. */ 8266 8267/* Override any gcc2 internal prototype to avoid an error. */ 8268#ifdef __cplusplus 8269extern "C" 8270#endif 8271/* We use char because int might match the return type of a gcc2 8272 builtin and then its argument prototype would still apply. */ 8273char dld_link (); 8274int 8275main () 8276{ 8277dld_link (); 8278 ; 8279 return 0; 8280} 8281_ACEOF 8282rm -f conftest.$ac_objext conftest$ac_exeext 8283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8284 (eval $ac_link) 2>conftest.er1 8285 ac_status=$? 8286 grep -v '^ *+' conftest.er1 >conftest.err 8287 rm -f conftest.er1 8288 cat conftest.err >&5 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8290 (exit $ac_status); } && 8291 { ac_try='test -z "$ac_c_werror_flag" 8292 || test ! -s conftest.err' 8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8294 (eval $ac_try) 2>&5 8295 ac_status=$? 8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8297 (exit $ac_status); }; } && 8298 { ac_try='test -s conftest$ac_exeext' 8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8300 (eval $ac_try) 2>&5 8301 ac_status=$? 8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8303 (exit $ac_status); }; }; then 8304 ac_cv_lib_dld_dld_link=yes 8305else 8306 echo "$as_me: failed program was:" >&5 8307sed 's/^/| /' conftest.$ac_ext >&5 8308 8309ac_cv_lib_dld_dld_link=no 8310fi 8311rm -f conftest.err conftest.$ac_objext \ 8312 conftest$ac_exeext conftest.$ac_ext 8313LIBS=$ac_check_lib_save_LIBS 8314fi 8315echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8316echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8317if test $ac_cv_lib_dld_dld_link = yes; then 8318 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8319fi 8320 8321 8322fi 8323 8324 8325fi 8326 8327 8328fi 8329 8330 8331fi 8332 8333 8334fi 8335 8336 ;; 8337 esac 8338 8339 if test "x$lt_cv_dlopen" != xno; then 8340 enable_dlopen=yes 8341 else 8342 enable_dlopen=no 8343 fi 8344 8345 case $lt_cv_dlopen in 8346 dlopen) 8347 save_CPPFLAGS="$CPPFLAGS" 8348 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8349 8350 save_LDFLAGS="$LDFLAGS" 8351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8352 8353 save_LIBS="$LIBS" 8354 LIBS="$lt_cv_dlopen_libs $LIBS" 8355 8356 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8357echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8358if test "${lt_cv_dlopen_self+set}" = set; then 8359 echo $ECHO_N "(cached) $ECHO_C" >&6 8360else 8361 if test "$cross_compiling" = yes; then : 8362 lt_cv_dlopen_self=cross 8363else 8364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8365 lt_status=$lt_dlunknown 8366 cat > conftest.$ac_ext <<EOF 8367#line 8367 "configure" 8368#include "confdefs.h" 8369 8370#if HAVE_DLFCN_H 8371#include <dlfcn.h> 8372#endif 8373 8374#include <stdio.h> 8375 8376#ifdef RTLD_GLOBAL 8377# define LT_DLGLOBAL RTLD_GLOBAL 8378#else 8379# ifdef DL_GLOBAL 8380# define LT_DLGLOBAL DL_GLOBAL 8381# else 8382# define LT_DLGLOBAL 0 8383# endif 8384#endif 8385 8386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8387 find out it does not work in some platform. */ 8388#ifndef LT_DLLAZY_OR_NOW 8389# ifdef RTLD_LAZY 8390# define LT_DLLAZY_OR_NOW RTLD_LAZY 8391# else 8392# ifdef DL_LAZY 8393# define LT_DLLAZY_OR_NOW DL_LAZY 8394# else 8395# ifdef RTLD_NOW 8396# define LT_DLLAZY_OR_NOW RTLD_NOW 8397# else 8398# ifdef DL_NOW 8399# define LT_DLLAZY_OR_NOW DL_NOW 8400# else 8401# define LT_DLLAZY_OR_NOW 0 8402# endif 8403# endif 8404# endif 8405# endif 8406#endif 8407 8408#ifdef __cplusplus 8409extern "C" void exit (int); 8410#endif 8411 8412void fnord() { int i=42;} 8413int main () 8414{ 8415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8416 int status = $lt_dlunknown; 8417 8418 if (self) 8419 { 8420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8422 /* dlclose (self); */ 8423 } 8424 else 8425 puts (dlerror ()); 8426 8427 exit (status); 8428} 8429EOF 8430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8431 (eval $ac_link) 2>&5 8432 ac_status=$? 8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8434 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8435 (./conftest; exit; ) >&5 2>/dev/null 8436 lt_status=$? 8437 case x$lt_status in 8438 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8439 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8440 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 8441 esac 8442 else : 8443 # compilation failed 8444 lt_cv_dlopen_self=no 8445 fi 8446fi 8447rm -fr conftest* 8448 8449 8450fi 8451echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8452echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8453 8454 if test "x$lt_cv_dlopen_self" = xyes; then 8455 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 8456 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8457echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8458if test "${lt_cv_dlopen_self_static+set}" = set; then 8459 echo $ECHO_N "(cached) $ECHO_C" >&6 8460else 8461 if test "$cross_compiling" = yes; then : 8462 lt_cv_dlopen_self_static=cross 8463else 8464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8465 lt_status=$lt_dlunknown 8466 cat > conftest.$ac_ext <<EOF 8467#line 8467 "configure" 8468#include "confdefs.h" 8469 8470#if HAVE_DLFCN_H 8471#include <dlfcn.h> 8472#endif 8473 8474#include <stdio.h> 8475 8476#ifdef RTLD_GLOBAL 8477# define LT_DLGLOBAL RTLD_GLOBAL 8478#else 8479# ifdef DL_GLOBAL 8480# define LT_DLGLOBAL DL_GLOBAL 8481# else 8482# define LT_DLGLOBAL 0 8483# endif 8484#endif 8485 8486/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8487 find out it does not work in some platform. */ 8488#ifndef LT_DLLAZY_OR_NOW 8489# ifdef RTLD_LAZY 8490# define LT_DLLAZY_OR_NOW RTLD_LAZY 8491# else 8492# ifdef DL_LAZY 8493# define LT_DLLAZY_OR_NOW DL_LAZY 8494# else 8495# ifdef RTLD_NOW 8496# define LT_DLLAZY_OR_NOW RTLD_NOW 8497# else 8498# ifdef DL_NOW 8499# define LT_DLLAZY_OR_NOW DL_NOW 8500# else 8501# define LT_DLLAZY_OR_NOW 0 8502# endif 8503# endif 8504# endif 8505# endif 8506#endif 8507 8508#ifdef __cplusplus 8509extern "C" void exit (int); 8510#endif 8511 8512void fnord() { int i=42;} 8513int main () 8514{ 8515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8516 int status = $lt_dlunknown; 8517 8518 if (self) 8519 { 8520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8521 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8522 /* dlclose (self); */ 8523 } 8524 else 8525 puts (dlerror ()); 8526 8527 exit (status); 8528} 8529EOF 8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8531 (eval $ac_link) 2>&5 8532 ac_status=$? 8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8534 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8535 (./conftest; exit; ) >&5 2>/dev/null 8536 lt_status=$? 8537 case x$lt_status in 8538 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8539 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8540 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 8541 esac 8542 else : 8543 # compilation failed 8544 lt_cv_dlopen_self_static=no 8545 fi 8546fi 8547rm -fr conftest* 8548 8549 8550fi 8551echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8552echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8553 fi 8554 8555 CPPFLAGS="$save_CPPFLAGS" 8556 LDFLAGS="$save_LDFLAGS" 8557 LIBS="$save_LIBS" 8558 ;; 8559 esac 8560 8561 case $lt_cv_dlopen_self in 8562 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8563 *) enable_dlopen_self=unknown ;; 8564 esac 8565 8566 case $lt_cv_dlopen_self_static in 8567 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8568 *) enable_dlopen_self_static=unknown ;; 8569 esac 8570fi 8571 8572 8573# Report which library types will actually be built 8574echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8575echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8576echo "$as_me:$LINENO: result: $can_build_shared" >&5 8577echo "${ECHO_T}$can_build_shared" >&6 8578 8579echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8580echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8581test "$can_build_shared" = "no" && enable_shared=no 8582 8583# On AIX, shared libraries and static libraries use the same namespace, and 8584# are all built from PIC. 8585case $host_os in 8586aix3*) 8587 test "$enable_shared" = yes && enable_static=no 8588 if test -n "$RANLIB"; then 8589 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8590 postinstall_cmds='$RANLIB $lib' 8591 fi 8592 ;; 8593 8594aix4* | aix5*) 8595 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8596 test "$enable_shared" = yes && enable_static=no 8597 fi 8598 ;; 8599esac 8600echo "$as_me:$LINENO: result: $enable_shared" >&5 8601echo "${ECHO_T}$enable_shared" >&6 8602 8603echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8604echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8605# Make sure either enable_shared or enable_static is yes. 8606test "$enable_shared" = yes || enable_static=yes 8607echo "$as_me:$LINENO: result: $enable_static" >&5 8608echo "${ECHO_T}$enable_static" >&6 8609 8610# The else clause should only fire when bootstrapping the 8611# libtool distribution, otherwise you forgot to ship ltmain.sh 8612# with your package, and you will get complaints that there are 8613# no rules to generate ltmain.sh. 8614if test -f "$ltmain"; then 8615 # See if we are running on zsh, and set the options which allow our commands through 8616 # without removal of \ escapes. 8617 if test -n "${ZSH_VERSION+set}" ; then 8618 setopt NO_GLOB_SUBST 8619 fi 8620 # Now quote all the things that may contain metacharacters while being 8621 # careful not to overquote the AC_SUBSTed values. We take copies of the 8622 # variables and quote the copies for generation of the libtool script. 8623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 8624 SED SHELL STRIP \ 8625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 8626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 8627 deplibs_check_method reload_flag reload_cmds need_locks \ 8628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 8629 lt_cv_sys_global_symbol_to_c_name_address \ 8630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8631 old_postinstall_cmds old_postuninstall_cmds \ 8632 compiler \ 8633 CC \ 8634 LD \ 8635 lt_prog_compiler_wl \ 8636 lt_prog_compiler_pic \ 8637 lt_prog_compiler_static \ 8638 lt_prog_compiler_no_builtin_flag \ 8639 export_dynamic_flag_spec \ 8640 thread_safe_flag_spec \ 8641 whole_archive_flag_spec \ 8642 enable_shared_with_static_runtimes \ 8643 old_archive_cmds \ 8644 old_archive_from_new_cmds \ 8645 predep_objects \ 8646 postdep_objects \ 8647 predeps \ 8648 postdeps \ 8649 compiler_lib_search_path \ 8650 archive_cmds \ 8651 archive_expsym_cmds \ 8652 postinstall_cmds \ 8653 postuninstall_cmds \ 8654 old_archive_from_expsyms_cmds \ 8655 allow_undefined_flag \ 8656 no_undefined_flag \ 8657 export_symbols_cmds \ 8658 hardcode_libdir_flag_spec \ 8659 hardcode_libdir_flag_spec_ld \ 8660 hardcode_libdir_separator \ 8661 hardcode_automatic \ 8662 module_cmds \ 8663 module_expsym_cmds \ 8664 lt_cv_prog_compiler_c_o \ 8665 exclude_expsyms \ 8666 include_expsyms; do 8667 8668 case $var in 8669 old_archive_cmds | \ 8670 old_archive_from_new_cmds | \ 8671 archive_cmds | \ 8672 archive_expsym_cmds | \ 8673 module_cmds | \ 8674 module_expsym_cmds | \ 8675 old_archive_from_expsyms_cmds | \ 8676 export_symbols_cmds | \ 8677 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 8678 postinstall_cmds | postuninstall_cmds | \ 8679 old_postinstall_cmds | old_postuninstall_cmds | \ 8680 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8681 # Double-quote double-evaled strings. 8682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8683 ;; 8684 *) 8685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8686 ;; 8687 esac 8688 done 8689 8690 case $lt_echo in 8691 *'\$0 --fallback-echo"') 8692 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 8693 ;; 8694 esac 8695 8696cfgfile="${ofile}T" 8697 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8698 $rm -f "$cfgfile" 8699 { echo "$as_me:$LINENO: creating $ofile" >&5 8700echo "$as_me: creating $ofile" >&6;} 8701 8702 cat <<__EOF__ >> "$cfgfile" 8703#! $SHELL 8704 8705# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8706# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8707# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8708# 8709# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 8710# Free Software Foundation, Inc. 8711# 8712# This file is part of GNU Libtool: 8713# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8714# 8715# This program is free software; you can redistribute it and/or modify 8716# it under the terms of the GNU General Public License as published by 8717# the Free Software Foundation; either version 2 of the License, or 8718# (at your option) any later version. 8719# 8720# This program is distributed in the hope that it will be useful, but 8721# WITHOUT ANY WARRANTY; without even the implied warranty of 8722# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8723# General Public License for more details. 8724# 8725# You should have received a copy of the GNU General Public License 8726# along with this program; if not, write to the Free Software 8727# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 8728# 8729# As a special exception to the GNU General Public License, if you 8730# distribute this file as part of a program that contains a 8731# configuration script generated by Autoconf, you may include it under 8732# the same distribution terms that you use for the rest of that program. 8733 8734# A sed program that does not truncate output. 8735SED=$lt_SED 8736 8737# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8738Xsed="$SED -e 1s/^X//" 8739 8740# The HP-UX ksh and POSIX shell print the target directory to stdout 8741# if CDPATH is set. 8742(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8743 8744# The names of the tagged configurations supported by this script. 8745available_tags= 8746 8747# ### BEGIN LIBTOOL CONFIG 8748 8749# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8750 8751# Shell to use when invoking shell scripts. 8752SHELL=$lt_SHELL 8753 8754# Whether or not to build shared libraries. 8755build_libtool_libs=$enable_shared 8756 8757# Whether or not to build static libraries. 8758build_old_libs=$enable_static 8759 8760# Whether or not to add -lc for building shared libraries. 8761build_libtool_need_lc=$archive_cmds_need_lc 8762 8763# Whether or not to disallow shared libs when runtime libs are static 8764allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 8765 8766# Whether or not to optimize for fast installation. 8767fast_install=$enable_fast_install 8768 8769# The host system. 8770host_alias=$host_alias 8771host=$host 8772host_os=$host_os 8773 8774# The build system. 8775build_alias=$build_alias 8776build=$build 8777build_os=$build_os 8778 8779# An echo program that does not interpret backslashes. 8780echo=$lt_echo 8781 8782# The archiver. 8783AR=$lt_AR 8784AR_FLAGS=$lt_AR_FLAGS 8785 8786# A C compiler. 8787LTCC=$lt_LTCC 8788 8789# LTCC compiler flags. 8790LTCFLAGS=$lt_LTCFLAGS 8791 8792# A language-specific compiler. 8793CC=$lt_compiler 8794 8795# Is the compiler the GNU C compiler? 8796with_gcc=$GCC 8797 8798gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 8799gcc_ver=\`gcc -dumpversion\` 8800 8801# An ERE matcher. 8802EGREP=$lt_EGREP 8803 8804# The linker used to build libraries. 8805LD=$lt_LD 8806 8807# Whether we need hard or soft links. 8808LN_S=$lt_LN_S 8809 8810# A BSD-compatible nm program. 8811NM=$lt_NM 8812 8813# A symbol stripping program 8814STRIP=$lt_STRIP 8815 8816# Used to examine libraries when file_magic_cmd begins "file" 8817MAGIC_CMD=$MAGIC_CMD 8818 8819# Used on cygwin: DLL creation program. 8820DLLTOOL="$DLLTOOL" 8821 8822# Used on cygwin: object dumper. 8823OBJDUMP="$OBJDUMP" 8824 8825# Used on cygwin: assembler. 8826AS="$AS" 8827 8828# The name of the directory that contains temporary libtool files. 8829objdir=$objdir 8830 8831# How to create reloadable object files. 8832reload_flag=$lt_reload_flag 8833reload_cmds=$lt_reload_cmds 8834 8835# How to pass a linker flag through the compiler. 8836wl=$lt_lt_prog_compiler_wl 8837 8838# Object file suffix (normally "o"). 8839objext="$ac_objext" 8840 8841# Old archive suffix (normally "a"). 8842libext="$libext" 8843 8844# Shared library suffix (normally ".so"). 8845shrext_cmds='$shrext_cmds' 8846 8847# Executable file suffix (normally ""). 8848exeext="$exeext" 8849 8850# Additional compiler flags for building library objects. 8851pic_flag=$lt_lt_prog_compiler_pic 8852pic_mode=$pic_mode 8853 8854# What is the maximum length of a command? 8855max_cmd_len=$lt_cv_sys_max_cmd_len 8856 8857# Does compiler simultaneously support -c and -o options? 8858compiler_c_o=$lt_lt_cv_prog_compiler_c_o 8859 8860# Must we lock files when doing compilation? 8861need_locks=$lt_need_locks 8862 8863# Do we need the lib prefix for modules? 8864need_lib_prefix=$need_lib_prefix 8865 8866# Do we need a version for libraries? 8867need_version=$need_version 8868 8869# Whether dlopen is supported. 8870dlopen_support=$enable_dlopen 8871 8872# Whether dlopen of programs is supported. 8873dlopen_self=$enable_dlopen_self 8874 8875# Whether dlopen of statically linked programs is supported. 8876dlopen_self_static=$enable_dlopen_self_static 8877 8878# Compiler flag to prevent dynamic linking. 8879link_static_flag=$lt_lt_prog_compiler_static 8880 8881# Compiler flag to turn off builtin functions. 8882no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 8883 8884# Compiler flag to allow reflexive dlopens. 8885export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8886 8887# Compiler flag to generate shared objects directly from archives. 8888whole_archive_flag_spec=$lt_whole_archive_flag_spec 8889 8890# Compiler flag to generate thread-safe objects. 8891thread_safe_flag_spec=$lt_thread_safe_flag_spec 8892 8893# Library versioning type. 8894version_type=$version_type 8895 8896# Format of library name prefix. 8897libname_spec=$lt_libname_spec 8898 8899# List of archive names. First name is the real one, the rest are links. 8900# The last name is the one that the linker finds with -lNAME. 8901library_names_spec=$lt_library_names_spec 8902 8903# The coded name of the library, if different from the real name. 8904soname_spec=$lt_soname_spec 8905 8906# Commands used to build and install an old-style archive. 8907RANLIB=$lt_RANLIB 8908old_archive_cmds=$lt_old_archive_cmds 8909old_postinstall_cmds=$lt_old_postinstall_cmds 8910old_postuninstall_cmds=$lt_old_postuninstall_cmds 8911 8912# Create an old-style archive from a shared archive. 8913old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8914 8915# Create a temporary old-style archive to link instead of a shared archive. 8916old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8917 8918# Commands used to build and install a shared archive. 8919archive_cmds=$lt_archive_cmds 8920archive_expsym_cmds=$lt_archive_expsym_cmds 8921postinstall_cmds=$lt_postinstall_cmds 8922postuninstall_cmds=$lt_postuninstall_cmds 8923 8924# Commands used to build a loadable module (assumed same as above if empty) 8925module_cmds=$lt_module_cmds 8926module_expsym_cmds=$lt_module_expsym_cmds 8927 8928# Commands to strip libraries. 8929old_striplib=$lt_old_striplib 8930striplib=$lt_striplib 8931 8932# Dependencies to place before the objects being linked to create a 8933# shared library. 8934predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 8935 8936# Dependencies to place after the objects being linked to create a 8937# shared library. 8938postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 8939 8940# Dependencies to place before the objects being linked to create a 8941# shared library. 8942predeps=$lt_predeps 8943 8944# Dependencies to place after the objects being linked to create a 8945# shared library. 8946postdeps=$lt_postdeps 8947 8948# The library search path used internally by the compiler when linking 8949# a shared library. 8950compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 8951 8952# Method to check whether dependent libraries are shared objects. 8953deplibs_check_method=$lt_deplibs_check_method 8954 8955# Command to use when deplibs_check_method == file_magic. 8956file_magic_cmd=$lt_file_magic_cmd 8957 8958# Flag that allows shared libraries with undefined symbols to be built. 8959allow_undefined_flag=$lt_allow_undefined_flag 8960 8961# Flag that forces no undefined symbols. 8962no_undefined_flag=$lt_no_undefined_flag 8963 8964# Commands used to finish a libtool library installation in a directory. 8965finish_cmds=$lt_finish_cmds 8966 8967# Same as above, but a single script fragment to be evaled but not shown. 8968finish_eval=$lt_finish_eval 8969 8970# Take the output of nm and produce a listing of raw symbols and C names. 8971global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 8972 8973# Transform the output of nm in a proper C declaration 8974global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 8975 8976# Transform the output of nm in a C name address pair 8977global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 8978 8979# This is the shared library runtime path variable. 8980runpath_var=$runpath_var 8981 8982# This is the shared library path variable. 8983shlibpath_var=$shlibpath_var 8984 8985# Is shlibpath searched before the hard-coded library search path? 8986shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8987 8988# How to hardcode a shared library path into an executable. 8989hardcode_action=$hardcode_action 8990 8991# Whether we should hardcode library paths into libraries. 8992hardcode_into_libs=$hardcode_into_libs 8993 8994# Flag to hardcode \$libdir into a binary during linking. 8995# This must work even if \$libdir does not exist. 8996hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8997 8998# If ld is used when linking, flag to hardcode \$libdir into 8999# a binary during linking. This must work even if \$libdir does 9000# not exist. 9001hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9002 9003# Whether we need a single -rpath flag with a separated argument. 9004hardcode_libdir_separator=$lt_hardcode_libdir_separator 9005 9006# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9007# resulting binary. 9008hardcode_direct=$hardcode_direct 9009 9010# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9011# resulting binary. 9012hardcode_minus_L=$hardcode_minus_L 9013 9014# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9015# the resulting binary. 9016hardcode_shlibpath_var=$hardcode_shlibpath_var 9017 9018# Set to yes if building a shared library automatically hardcodes DIR into the library 9019# and all subsequent libraries and executables linked against it. 9020hardcode_automatic=$hardcode_automatic 9021 9022# Variables whose values should be saved in libtool wrapper scripts and 9023# restored at relink time. 9024variables_saved_for_relink="$variables_saved_for_relink" 9025 9026# Whether libtool must link a program against all its dependency libraries. 9027link_all_deplibs=$link_all_deplibs 9028 9029# Compile-time system search path for libraries 9030sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9031 9032# Run-time system search path for libraries 9033sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9034 9035# Fix the shell variable \$srcfile for the compiler. 9036fix_srcfile_path="$fix_srcfile_path" 9037 9038# Set to yes if exported symbols are required. 9039always_export_symbols=$always_export_symbols 9040 9041# The commands to list exported symbols. 9042export_symbols_cmds=$lt_export_symbols_cmds 9043 9044# The commands to extract the exported symbol list from a shared archive. 9045extract_expsyms_cmds=$lt_extract_expsyms_cmds 9046 9047# Symbols that should not be listed in the preloaded symbols. 9048exclude_expsyms=$lt_exclude_expsyms 9049 9050# Symbols that must always be exported. 9051include_expsyms=$lt_include_expsyms 9052 9053# ### END LIBTOOL CONFIG 9054 9055__EOF__ 9056 9057 9058 case $host_os in 9059 aix3*) 9060 cat <<\EOF >> "$cfgfile" 9061 9062# AIX sometimes has problems with the GCC collect2 program. For some 9063# reason, if we set the COLLECT_NAMES environment variable, the problems 9064# vanish in a puff of smoke. 9065if test "X${COLLECT_NAMES+set}" != Xset; then 9066 COLLECT_NAMES= 9067 export COLLECT_NAMES 9068fi 9069EOF 9070 ;; 9071 esac 9072 9073 # We use sed instead of cat because bash on DJGPP gets confused if 9074 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9075 # text mode, it properly converts lines to CR/LF. This bash problem 9076 # is reportedly fixed, but why not run on old versions too? 9077 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9078 9079 mv -f "$cfgfile" "$ofile" || \ 9080 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9081 chmod +x "$ofile" 9082 9083else 9084 # If there is no Makefile yet, we rely on a make rule to execute 9085 # `config.status --recheck' to rerun these tests and create the 9086 # libtool script then. 9087 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9088 if test -f "$ltmain_in"; then 9089 test -f Makefile && make "$ltmain" 9090 fi 9091fi 9092 9093 9094ac_ext=c 9095ac_cpp='$CPP $CPPFLAGS' 9096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9098ac_compiler_gnu=$ac_cv_c_compiler_gnu 9099 9100CC="$lt_save_CC" 9101 9102 9103# Check whether --with-tags or --without-tags was given. 9104if test "${with_tags+set}" = set; then 9105 withval="$with_tags" 9106 tagnames="$withval" 9107fi; 9108 9109if test -f "$ltmain" && test -n "$tagnames"; then 9110 if test ! -f "${ofile}"; then 9111 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9112echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9113 fi 9114 9115 if test -z "$LTCC"; then 9116 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9117 if test -z "$LTCC"; then 9118 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9119echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9120 else 9121 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9122echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9123 fi 9124 fi 9125 if test -z "$LTCFLAGS"; then 9126 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9127 fi 9128 9129 # Extract list of available tagged configurations in $ofile. 9130 # Note that this assumes the entire list is on one line. 9131 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9132 9133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9134 for tagname in $tagnames; do 9135 IFS="$lt_save_ifs" 9136 # Check whether tagname contains only valid characters 9137 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9138 "") ;; 9139 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9140echo "$as_me: error: invalid tag name: $tagname" >&2;} 9141 { (exit 1); exit 1; }; } 9142 ;; 9143 esac 9144 9145 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9146 then 9147 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9148echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9149 { (exit 1); exit 1; }; } 9150 fi 9151 9152 # Update the list of available tags. 9153 if test -n "$tagname"; then 9154 echo appending configuration tag \"$tagname\" to $ofile 9155 9156 case $tagname in 9157 CXX) 9158 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9159 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9160 (test "X$CXX" != "Xg++"))) ; then 9161 ac_ext=cc 9162ac_cpp='$CXXCPP $CPPFLAGS' 9163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9166 9167 9168 9169 9170archive_cmds_need_lc_CXX=no 9171allow_undefined_flag_CXX= 9172always_export_symbols_CXX=no 9173archive_expsym_cmds_CXX= 9174export_dynamic_flag_spec_CXX= 9175hardcode_direct_CXX=no 9176hardcode_libdir_flag_spec_CXX= 9177hardcode_libdir_flag_spec_ld_CXX= 9178hardcode_libdir_separator_CXX= 9179hardcode_minus_L_CXX=no 9180hardcode_shlibpath_var_CXX=unsupported 9181hardcode_automatic_CXX=no 9182module_cmds_CXX= 9183module_expsym_cmds_CXX= 9184link_all_deplibs_CXX=unknown 9185old_archive_cmds_CXX=$old_archive_cmds 9186no_undefined_flag_CXX= 9187whole_archive_flag_spec_CXX= 9188enable_shared_with_static_runtimes_CXX=no 9189 9190# Dependencies to place before and after the object being linked: 9191predep_objects_CXX= 9192postdep_objects_CXX= 9193predeps_CXX= 9194postdeps_CXX= 9195compiler_lib_search_path_CXX= 9196 9197# Source file extension for C++ test sources. 9198ac_ext=cpp 9199 9200# Object file extension for compiled C++ test sources. 9201objext=o 9202objext_CXX=$objext 9203 9204# Code to be used in simple compile tests 9205lt_simple_compile_test_code="int some_variable = 0;\n" 9206 9207# Code to be used in simple link tests 9208lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9209 9210# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9211 9212# If no C compiler was specified, use CC. 9213LTCC=${LTCC-"$CC"} 9214 9215# If no C compiler flags were specified, use CFLAGS. 9216LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9217 9218# Allow CC to be a program name with arguments. 9219compiler=$CC 9220 9221 9222# save warnings/boilerplate of simple test code 9223ac_outfile=conftest.$ac_objext 9224printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9225eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9226_lt_compiler_boilerplate=`cat conftest.err` 9227$rm conftest* 9228 9229ac_outfile=conftest.$ac_objext 9230printf "$lt_simple_link_test_code" >conftest.$ac_ext 9231eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9232_lt_linker_boilerplate=`cat conftest.err` 9233$rm conftest* 9234 9235 9236# Allow CC to be a program name with arguments. 9237lt_save_CC=$CC 9238lt_save_LD=$LD 9239lt_save_GCC=$GCC 9240GCC=$GXX 9241lt_save_with_gnu_ld=$with_gnu_ld 9242lt_save_path_LD=$lt_cv_path_LD 9243if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9244 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9245else 9246 $as_unset lt_cv_prog_gnu_ld 9247fi 9248if test -n "${lt_cv_path_LDCXX+set}"; then 9249 lt_cv_path_LD=$lt_cv_path_LDCXX 9250else 9251 $as_unset lt_cv_path_LD 9252fi 9253test -z "${LDCXX+set}" || LD=$LDCXX 9254CC=${CXX-"c++"} 9255compiler=$CC 9256compiler_CXX=$CC 9257for cc_temp in $compiler""; do 9258 case $cc_temp in 9259 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9260 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9261 \-*) ;; 9262 *) break;; 9263 esac 9264done 9265cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9266 9267 9268# We don't want -fno-exception wen compiling C++ code, so set the 9269# no_builtin_flag separately 9270if test "$GXX" = yes; then 9271 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9272else 9273 lt_prog_compiler_no_builtin_flag_CXX= 9274fi 9275 9276if test "$GXX" = yes; then 9277 # Set up default GNU C++ configuration 9278 9279 9280# Check whether --with-gnu-ld or --without-gnu-ld was given. 9281if test "${with_gnu_ld+set}" = set; then 9282 withval="$with_gnu_ld" 9283 test "$withval" = no || with_gnu_ld=yes 9284else 9285 with_gnu_ld=no 9286fi; 9287ac_prog=ld 9288if test "$GCC" = yes; then 9289 # Check if gcc -print-prog-name=ld gives a path. 9290 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9291echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9292 case $host in 9293 *-*-mingw*) 9294 # gcc leaves a trailing carriage return which upsets mingw 9295 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9296 *) 9297 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9298 esac 9299 case $ac_prog in 9300 # Accept absolute paths. 9301 [\\/]* | ?:[\\/]*) 9302 re_direlt='/[^/][^/]*/\.\./' 9303 # Canonicalize the pathname of ld 9304 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9305 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9306 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9307 done 9308 test -z "$LD" && LD="$ac_prog" 9309 ;; 9310 "") 9311 # If it fails, then pretend we aren't using GCC. 9312 ac_prog=ld 9313 ;; 9314 *) 9315 # If it is relative, then search for the first ld in PATH. 9316 with_gnu_ld=unknown 9317 ;; 9318 esac 9319elif test "$with_gnu_ld" = yes; then 9320 echo "$as_me:$LINENO: checking for GNU ld" >&5 9321echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9322else 9323 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9324echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9325fi 9326if test "${lt_cv_path_LD+set}" = set; then 9327 echo $ECHO_N "(cached) $ECHO_C" >&6 9328else 9329 if test -z "$LD"; then 9330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9331 for ac_dir in $PATH; do 9332 IFS="$lt_save_ifs" 9333 test -z "$ac_dir" && ac_dir=. 9334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9335 lt_cv_path_LD="$ac_dir/$ac_prog" 9336 # Check to see if the program is GNU ld. I'd rather use --version, 9337 # but apparently some variants of GNU ld only accept -v. 9338 # Break only if it was the GNU/non-GNU ld that we prefer. 9339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9340 *GNU* | *'with BFD'*) 9341 test "$with_gnu_ld" != no && break 9342 ;; 9343 *) 9344 test "$with_gnu_ld" != yes && break 9345 ;; 9346 esac 9347 fi 9348 done 9349 IFS="$lt_save_ifs" 9350else 9351 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9352fi 9353fi 9354 9355LD="$lt_cv_path_LD" 9356if test -n "$LD"; then 9357 echo "$as_me:$LINENO: result: $LD" >&5 9358echo "${ECHO_T}$LD" >&6 9359else 9360 echo "$as_me:$LINENO: result: no" >&5 9361echo "${ECHO_T}no" >&6 9362fi 9363test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9364echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9365 { (exit 1); exit 1; }; } 9366echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9367echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9368if test "${lt_cv_prog_gnu_ld+set}" = set; then 9369 echo $ECHO_N "(cached) $ECHO_C" >&6 9370else 9371 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9372case `$LD -v 2>&1 </dev/null` in 9373*GNU* | *'with BFD'*) 9374 lt_cv_prog_gnu_ld=yes 9375 ;; 9376*) 9377 lt_cv_prog_gnu_ld=no 9378 ;; 9379esac 9380fi 9381echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9382echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9383with_gnu_ld=$lt_cv_prog_gnu_ld 9384 9385 9386 9387 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9388 # archiving commands below assume that GNU ld is being used. 9389 if test "$with_gnu_ld" = yes; then 9390 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9391 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' 9392 9393 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9395 9396 # If archive_cmds runs LD, not CC, wlarc should be empty 9397 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9398 # investigate it a little bit more. (MM) 9399 wlarc='${wl}' 9400 9401 # ancient GNU ld didn't support --whole-archive et. al. 9402 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9403 grep 'no-whole-archive' > /dev/null; then 9404 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9405 else 9406 whole_archive_flag_spec_CXX= 9407 fi 9408 else 9409 with_gnu_ld=no 9410 wlarc= 9411 9412 # A generic and very simple default shared library creation 9413 # command for GNU C++ for the case where it uses the native 9414 # linker, instead of GNU ld. If possible, this setting should 9415 # overridden to take advantage of the native linker features on 9416 # the platform it is being used on. 9417 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9418 fi 9419 9420 # Commands to make compiler produce verbose output that lists 9421 # what "hidden" libraries, object files and flags are used when 9422 # linking a shared library. 9423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9424 9425else 9426 GXX=no 9427 with_gnu_ld=no 9428 wlarc= 9429fi 9430 9431# PORTME: fill in a description of your system's C++ link characteristics 9432echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9433echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9434ld_shlibs_CXX=yes 9435case $host_os in 9436 aix3*) 9437 # FIXME: insert proper C++ library support 9438 ld_shlibs_CXX=no 9439 ;; 9440 aix4* | aix5*) 9441 if test "$host_cpu" = ia64; then 9442 # On IA64, the linker does run time linking by default, so we don't 9443 # have to do anything special. 9444 aix_use_runtimelinking=no 9445 exp_sym_flag='-Bexport' 9446 no_entry_flag="" 9447 else 9448 aix_use_runtimelinking=no 9449 9450 # Test if we are trying to use run time linking or normal 9451 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9452 # need to do runtime linking. 9453 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9454 for ld_flag in $LDFLAGS; do 9455 case $ld_flag in 9456 *-brtl*) 9457 aix_use_runtimelinking=yes 9458 break 9459 ;; 9460 esac 9461 done 9462 ;; 9463 esac 9464 9465 exp_sym_flag='-bexport' 9466 no_entry_flag='-bnoentry' 9467 fi 9468 9469 # When large executables or shared objects are built, AIX ld can 9470 # have problems creating the table of contents. If linking a library 9471 # or program results in "error TOC overflow" add -mminimal-toc to 9472 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9473 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9474 9475 archive_cmds_CXX='' 9476 hardcode_direct_CXX=yes 9477 hardcode_libdir_separator_CXX=':' 9478 link_all_deplibs_CXX=yes 9479 9480 if test "$GXX" = yes; then 9481 case $host_os in aix4.[012]|aix4.[012].*) 9482 # We only want to do this on AIX 4.2 and lower, the check 9483 # below for broken collect2 doesn't work under 4.3+ 9484 collect2name=`${CC} -print-prog-name=collect2` 9485 if test -f "$collect2name" && \ 9486 strings "$collect2name" | grep resolve_lib_name >/dev/null 9487 then 9488 # We have reworked collect2 9489 hardcode_direct_CXX=yes 9490 else 9491 # We have old collect2 9492 hardcode_direct_CXX=unsupported 9493 # It fails to find uninstalled libraries when the uninstalled 9494 # path is not listed in the libpath. Setting hardcode_minus_L 9495 # to unsupported forces relinking 9496 hardcode_minus_L_CXX=yes 9497 hardcode_libdir_flag_spec_CXX='-L$libdir' 9498 hardcode_libdir_separator_CXX= 9499 fi 9500 ;; 9501 esac 9502 shared_flag='-shared' 9503 if test "$aix_use_runtimelinking" = yes; then 9504 shared_flag="$shared_flag "'${wl}-G' 9505 fi 9506 else 9507 # not using gcc 9508 if test "$host_cpu" = ia64; then 9509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9510 # chokes on -Wl,-G. The following line is correct: 9511 shared_flag='-G' 9512 else 9513 if test "$aix_use_runtimelinking" = yes; then 9514 shared_flag='${wl}-G' 9515 else 9516 shared_flag='${wl}-bM:SRE' 9517 fi 9518 fi 9519 fi 9520 9521 # It seems that -bexpall does not export symbols beginning with 9522 # underscore (_), so it is better to generate a list of symbols to export. 9523 always_export_symbols_CXX=yes 9524 if test "$aix_use_runtimelinking" = yes; then 9525 # Warning - without using the other runtime loading flags (-brtl), 9526 # -berok will link without error, but may produce a broken library. 9527 allow_undefined_flag_CXX='-berok' 9528 # Determine the default libpath from the value encoded in an empty executable. 9529 cat >conftest.$ac_ext <<_ACEOF 9530/* confdefs.h. */ 9531_ACEOF 9532cat confdefs.h >>conftest.$ac_ext 9533cat >>conftest.$ac_ext <<_ACEOF 9534/* end confdefs.h. */ 9535 9536int 9537main () 9538{ 9539 9540 ; 9541 return 0; 9542} 9543_ACEOF 9544rm -f conftest.$ac_objext conftest$ac_exeext 9545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9546 (eval $ac_link) 2>conftest.er1 9547 ac_status=$? 9548 grep -v '^ *+' conftest.er1 >conftest.err 9549 rm -f conftest.er1 9550 cat conftest.err >&5 9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9552 (exit $ac_status); } && 9553 { ac_try='test -z "$ac_cxx_werror_flag" 9554 || test ! -s conftest.err' 9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9556 (eval $ac_try) 2>&5 9557 ac_status=$? 9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9559 (exit $ac_status); }; } && 9560 { ac_try='test -s conftest$ac_exeext' 9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9562 (eval $ac_try) 2>&5 9563 ac_status=$? 9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9565 (exit $ac_status); }; }; then 9566 9567aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9568}'` 9569# Check for a 64-bit object if we didn't find anything. 9570if 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; } 9571}'`; fi 9572else 9573 echo "$as_me: failed program was:" >&5 9574sed 's/^/| /' conftest.$ac_ext >&5 9575 9576fi 9577rm -f conftest.err conftest.$ac_objext \ 9578 conftest$ac_exeext conftest.$ac_ext 9579if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9580 9581 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9582 9583 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9584 else 9585 if test "$host_cpu" = ia64; then 9586 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9587 allow_undefined_flag_CXX="-z nodefs" 9588 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9589 else 9590 # Determine the default libpath from the value encoded in an empty executable. 9591 cat >conftest.$ac_ext <<_ACEOF 9592/* confdefs.h. */ 9593_ACEOF 9594cat confdefs.h >>conftest.$ac_ext 9595cat >>conftest.$ac_ext <<_ACEOF 9596/* end confdefs.h. */ 9597 9598int 9599main () 9600{ 9601 9602 ; 9603 return 0; 9604} 9605_ACEOF 9606rm -f conftest.$ac_objext conftest$ac_exeext 9607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9608 (eval $ac_link) 2>conftest.er1 9609 ac_status=$? 9610 grep -v '^ *+' conftest.er1 >conftest.err 9611 rm -f conftest.er1 9612 cat conftest.err >&5 9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9614 (exit $ac_status); } && 9615 { ac_try='test -z "$ac_cxx_werror_flag" 9616 || test ! -s conftest.err' 9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9618 (eval $ac_try) 2>&5 9619 ac_status=$? 9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9621 (exit $ac_status); }; } && 9622 { ac_try='test -s conftest$ac_exeext' 9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9624 (eval $ac_try) 2>&5 9625 ac_status=$? 9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9627 (exit $ac_status); }; }; then 9628 9629aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9630}'` 9631# Check for a 64-bit object if we didn't find anything. 9632if 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; } 9633}'`; fi 9634else 9635 echo "$as_me: failed program was:" >&5 9636sed 's/^/| /' conftest.$ac_ext >&5 9637 9638fi 9639rm -f conftest.err conftest.$ac_objext \ 9640 conftest$ac_exeext conftest.$ac_ext 9641if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9642 9643 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9644 # Warning - without using the other run time loading flags, 9645 # -berok will link without error, but may produce a broken library. 9646 no_undefined_flag_CXX=' ${wl}-bernotok' 9647 allow_undefined_flag_CXX=' ${wl}-berok' 9648 # Exported symbols can be pulled into shared objects from archives 9649 whole_archive_flag_spec_CXX='$convenience' 9650 archive_cmds_need_lc_CXX=yes 9651 # This is similar to how AIX traditionally builds its shared libraries. 9652 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9653 fi 9654 fi 9655 ;; 9656 9657 beos*) 9658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9659 allow_undefined_flag_CXX=unsupported 9660 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9661 # support --undefined. This deserves some investigation. FIXME 9662 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9663 else 9664 ld_shlibs_CXX=no 9665 fi 9666 ;; 9667 9668 chorus*) 9669 case $cc_basename in 9670 *) 9671 # FIXME: insert proper C++ library support 9672 ld_shlibs_CXX=no 9673 ;; 9674 esac 9675 ;; 9676 9677 cygwin* | mingw* | pw32*) 9678 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 9679 # as there is no search path for DLLs. 9680 hardcode_libdir_flag_spec_CXX='-L$libdir' 9681 allow_undefined_flag_CXX=unsupported 9682 always_export_symbols_CXX=no 9683 enable_shared_with_static_runtimes_CXX=yes 9684 9685 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9686 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9687 # If the export-symbols file already is a .def file (1st line 9688 # is EXPORTS), use it as is; otherwise, prepend... 9689 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9690 cp $export_symbols $output_objdir/$soname.def; 9691 else 9692 echo EXPORTS > $output_objdir/$soname.def; 9693 cat $export_symbols >> $output_objdir/$soname.def; 9694 fi~ 9695 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9696 else 9697 ld_shlibs_CXX=no 9698 fi 9699 ;; 9700 darwin* | rhapsody*) 9701 case $host_os in 9702 rhapsody* | darwin1.[012]) 9703 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 9704 ;; 9705 *) # Darwin 1.3 on 9706 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9707 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9708 else 9709 case ${MACOSX_DEPLOYMENT_TARGET} in 9710 10.[012]) 9711 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9712 ;; 9713 10.*) 9714 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 9715 ;; 9716 esac 9717 fi 9718 ;; 9719 esac 9720 archive_cmds_need_lc_CXX=no 9721 hardcode_direct_CXX=no 9722 hardcode_automatic_CXX=yes 9723 hardcode_shlibpath_var_CXX=unsupported 9724 whole_archive_flag_spec_CXX='' 9725 link_all_deplibs_CXX=yes 9726 9727 if test "$GXX" = yes ; then 9728 lt_int_apple_cc_single_mod=no 9729 output_verbose_link_cmd='echo' 9730 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 9731 lt_int_apple_cc_single_mod=yes 9732 fi 9733 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9734 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9735 else 9736 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' 9737 fi 9738 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9740 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9741 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}' 9742 else 9743 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}' 9744 fi 9745 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}' 9746 else 9747 case $cc_basename in 9748 xlc*) 9749 output_verbose_link_cmd='echo' 9750 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' 9751 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9752 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9753 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}' 9754 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}' 9755 ;; 9756 *) 9757 ld_shlibs_CXX=no 9758 ;; 9759 esac 9760 fi 9761 ;; 9762 9763 dgux*) 9764 case $cc_basename in 9765 ec++*) 9766 # FIXME: insert proper C++ library support 9767 ld_shlibs_CXX=no 9768 ;; 9769 ghcx*) 9770 # Green Hills C++ Compiler 9771 # FIXME: insert proper C++ library support 9772 ld_shlibs_CXX=no 9773 ;; 9774 *) 9775 # FIXME: insert proper C++ library support 9776 ld_shlibs_CXX=no 9777 ;; 9778 esac 9779 ;; 9780 freebsd[12]*) 9781 # C++ shared libraries reported to be fairly broken before switch to ELF 9782 ld_shlibs_CXX=no 9783 ;; 9784 freebsd-elf*) 9785 archive_cmds_need_lc_CXX=no 9786 ;; 9787 freebsd* | kfreebsd*-gnu | dragonfly*) 9788 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 9789 # conventions 9790 ld_shlibs_CXX=yes 9791 ;; 9792 gnu*) 9793 ;; 9794 hpux9*) 9795 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9796 hardcode_libdir_separator_CXX=: 9797 export_dynamic_flag_spec_CXX='${wl}-E' 9798 hardcode_direct_CXX=yes 9799 hardcode_minus_L_CXX=yes # Not in the search PATH, 9800 # but as the default 9801 # location of the library. 9802 9803 case $cc_basename in 9804 CC*) 9805 # FIXME: insert proper C++ library support 9806 ld_shlibs_CXX=no 9807 ;; 9808 aCC*) 9809 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' 9810 # Commands to make compiler produce verbose output that lists 9811 # what "hidden" libraries, object files and flags are used when 9812 # linking a shared library. 9813 # 9814 # There doesn't appear to be a way to prevent this compiler from 9815 # explicitly linking system object files so we need to strip them 9816 # from the output so that they don't get included in the library 9817 # dependencies. 9818 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' 9819 ;; 9820 *) 9821 if test "$GXX" = yes; then 9822 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' 9823 else 9824 # FIXME: insert proper C++ library support 9825 ld_shlibs_CXX=no 9826 fi 9827 ;; 9828 esac 9829 ;; 9830 hpux10*|hpux11*) 9831 if test $with_gnu_ld = no; then 9832 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9833 hardcode_libdir_separator_CXX=: 9834 9835 case $host_cpu in 9836 hppa*64*|ia64*) 9837 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 9838 ;; 9839 *) 9840 export_dynamic_flag_spec_CXX='${wl}-E' 9841 ;; 9842 esac 9843 fi 9844 case $host_cpu in 9845 hppa*64*|ia64*) 9846 hardcode_direct_CXX=no 9847 hardcode_shlibpath_var_CXX=no 9848 ;; 9849 *) 9850 hardcode_direct_CXX=yes 9851 hardcode_minus_L_CXX=yes # Not in the search PATH, 9852 # but as the default 9853 # location of the library. 9854 ;; 9855 esac 9856 9857 case $cc_basename in 9858 CC*) 9859 # FIXME: insert proper C++ library support 9860 ld_shlibs_CXX=no 9861 ;; 9862 aCC*) 9863 case $host_cpu in 9864 hppa*64*) 9865 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9866 ;; 9867 ia64*) 9868 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9869 ;; 9870 *) 9871 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9872 ;; 9873 esac 9874 # Commands to make compiler produce verbose output that lists 9875 # what "hidden" libraries, object files and flags are used when 9876 # linking a shared library. 9877 # 9878 # There doesn't appear to be a way to prevent this compiler from 9879 # explicitly linking system object files so we need to strip them 9880 # from the output so that they don't get included in the library 9881 # dependencies. 9882 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' 9883 ;; 9884 *) 9885 if test "$GXX" = yes; then 9886 if test $with_gnu_ld = no; then 9887 case $host_cpu in 9888 hppa*64*) 9889 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9890 ;; 9891 ia64*) 9892 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9893 ;; 9894 *) 9895 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' 9896 ;; 9897 esac 9898 fi 9899 else 9900 # FIXME: insert proper C++ library support 9901 ld_shlibs_CXX=no 9902 fi 9903 ;; 9904 esac 9905 ;; 9906 interix3*) 9907 hardcode_direct_CXX=no 9908 hardcode_shlibpath_var_CXX=no 9909 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9910 export_dynamic_flag_spec_CXX='${wl}-E' 9911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9912 # Instead, shared libraries are loaded at an image base (0x10000000 by 9913 # default) and relocated if they conflict, which is a slow very memory 9914 # consuming and fragmenting process. To avoid this, we pick a random, 9915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9916 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9917 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9918 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9919 ;; 9920 irix5* | irix6*) 9921 case $cc_basename in 9922 CC*) 9923 # SGI C++ 9924 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' 9925 9926 # Archives containing C++ object files must be created using 9927 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 9928 # necessary to make sure instantiated templates are included 9929 # in the archive. 9930 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 9931 ;; 9932 *) 9933 if test "$GXX" = yes; then 9934 if test "$with_gnu_ld" = no; then 9935 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' 9936 else 9937 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' 9938 fi 9939 fi 9940 link_all_deplibs_CXX=yes 9941 ;; 9942 esac 9943 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9944 hardcode_libdir_separator_CXX=: 9945 ;; 9946 linux*) 9947 case $cc_basename in 9948 KCC*) 9949 # Kuck and Associates, Inc. (KAI) C++ Compiler 9950 9951 # KCC will only create a shared library if the output file 9952 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9953 # to its proper name (with version) after linking. 9954 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' 9955 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' 9956 # Commands to make compiler produce verbose output that lists 9957 # what "hidden" libraries, object files and flags are used when 9958 # linking a shared library. 9959 # 9960 # There doesn't appear to be a way to prevent this compiler from 9961 # explicitly linking system object files so we need to strip them 9962 # from the output so that they don't get included in the library 9963 # dependencies. 9964 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' 9965 9966 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 9967 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9968 9969 # Archives containing C++ object files must be created using 9970 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9971 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9972 ;; 9973 icpc*) 9974 # Intel C++ 9975 with_gnu_ld=yes 9976 # version 8.0 and above of icpc choke on multiply defined symbols 9977 # if we add $predep_objects and $postdep_objects, however 7.1 and 9978 # earlier do not add the objects themselves. 9979 case `$CC -V 2>&1` in 9980 *"Version 7."*) 9981 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9982 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' 9983 ;; 9984 *) # Version 8.0 or newer 9985 tmp_idyn= 9986 case $host_cpu in 9987 ia64*) tmp_idyn=' -i_dynamic';; 9988 esac 9989 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9990 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' 9991 ;; 9992 esac 9993 archive_cmds_need_lc_CXX=no 9994 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9995 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9996 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9997 ;; 9998 pgCC*) 9999 # Portland Group C++ compiler 10000 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10001 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 10002 10003 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10005 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10006 ;; 10007 cxx*) 10008 # Compaq C++ 10009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10010 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' 10011 10012 runpath_var=LD_RUN_PATH 10013 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10014 hardcode_libdir_separator_CXX=: 10015 10016 # Commands to make compiler produce verbose output that lists 10017 # what "hidden" libraries, object files and flags are used when 10018 # linking a shared library. 10019 # 10020 # There doesn't appear to be a way to prevent this compiler from 10021 # explicitly linking system object files so we need to strip them 10022 # from the output so that they don't get included in the library 10023 # dependencies. 10024 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' 10025 ;; 10026 esac 10027 ;; 10028 lynxos*) 10029 # FIXME: insert proper C++ library support 10030 ld_shlibs_CXX=no 10031 ;; 10032 m88k*) 10033 # FIXME: insert proper C++ library support 10034 ld_shlibs_CXX=no 10035 ;; 10036 mvs*) 10037 case $cc_basename in 10038 cxx*) 10039 # FIXME: insert proper C++ library support 10040 ld_shlibs_CXX=no 10041 ;; 10042 *) 10043 # FIXME: insert proper C++ library support 10044 ld_shlibs_CXX=no 10045 ;; 10046 esac 10047 ;; 10048 netbsd*) 10049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10050 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10051 wlarc= 10052 hardcode_libdir_flag_spec_CXX='-R$libdir' 10053 hardcode_direct_CXX=yes 10054 hardcode_shlibpath_var_CXX=no 10055 fi 10056 # Workaround some broken pre-1.5 toolchains 10057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10058 ;; 10059 openbsd2*) 10060 # C++ shared libraries are fairly broken 10061 ld_shlibs_CXX=no 10062 ;; 10063 openbsd*) 10064 hardcode_direct_CXX=yes 10065 hardcode_shlibpath_var_CXX=no 10066 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10069 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10070 export_dynamic_flag_spec_CXX='${wl}-E' 10071 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10072 fi 10073 output_verbose_link_cmd='echo' 10074 ;; 10075 osf3*) 10076 case $cc_basename in 10077 KCC*) 10078 # Kuck and Associates, Inc. (KAI) C++ Compiler 10079 10080 # KCC will only create a shared library if the output file 10081 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10082 # to its proper name (with version) after linking. 10083 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' 10084 10085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10086 hardcode_libdir_separator_CXX=: 10087 10088 # Archives containing C++ object files must be created using 10089 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10090 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10091 10092 ;; 10093 RCC*) 10094 # Rational C++ 2.4.1 10095 # FIXME: insert proper C++ library support 10096 ld_shlibs_CXX=no 10097 ;; 10098 cxx*) 10099 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10100 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' 10101 10102 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10103 hardcode_libdir_separator_CXX=: 10104 10105 # Commands to make compiler produce verbose output that lists 10106 # what "hidden" libraries, object files and flags are used when 10107 # linking a shared library. 10108 # 10109 # There doesn't appear to be a way to prevent this compiler from 10110 # explicitly linking system object files so we need to strip them 10111 # from the output so that they don't get included in the library 10112 # dependencies. 10113 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' 10114 ;; 10115 *) 10116 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10117 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10118 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' 10119 10120 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10121 hardcode_libdir_separator_CXX=: 10122 10123 # Commands to make compiler produce verbose output that lists 10124 # what "hidden" libraries, object files and flags are used when 10125 # linking a shared library. 10126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10127 10128 else 10129 # FIXME: insert proper C++ library support 10130 ld_shlibs_CXX=no 10131 fi 10132 ;; 10133 esac 10134 ;; 10135 osf4* | osf5*) 10136 case $cc_basename in 10137 KCC*) 10138 # Kuck and Associates, Inc. (KAI) C++ Compiler 10139 10140 # KCC will only create a shared library if the output file 10141 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10142 # to its proper name (with version) after linking. 10143 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' 10144 10145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10146 hardcode_libdir_separator_CXX=: 10147 10148 # Archives containing C++ object files must be created using 10149 # the KAI C++ compiler. 10150 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10151 ;; 10152 RCC*) 10153 # Rational C++ 2.4.1 10154 # FIXME: insert proper C++ library support 10155 ld_shlibs_CXX=no 10156 ;; 10157 cxx*) 10158 allow_undefined_flag_CXX=' -expect_unresolved \*' 10159 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' 10160 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10161 echo "-hidden">> $lib.exp~ 10162 $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~ 10163 $rm $lib.exp' 10164 10165 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10166 hardcode_libdir_separator_CXX=: 10167 10168 # Commands to make compiler produce verbose output that lists 10169 # what "hidden" libraries, object files and flags are used when 10170 # linking a shared library. 10171 # 10172 # There doesn't appear to be a way to prevent this compiler from 10173 # explicitly linking system object files so we need to strip them 10174 # from the output so that they don't get included in the library 10175 # dependencies. 10176 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' 10177 ;; 10178 *) 10179 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10180 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10181 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' 10182 10183 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10184 hardcode_libdir_separator_CXX=: 10185 10186 # Commands to make compiler produce verbose output that lists 10187 # what "hidden" libraries, object files and flags are used when 10188 # linking a shared library. 10189 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10190 10191 else 10192 # FIXME: insert proper C++ library support 10193 ld_shlibs_CXX=no 10194 fi 10195 ;; 10196 esac 10197 ;; 10198 psos*) 10199 # FIXME: insert proper C++ library support 10200 ld_shlibs_CXX=no 10201 ;; 10202 sunos4*) 10203 case $cc_basename in 10204 CC*) 10205 # Sun C++ 4.x 10206 # FIXME: insert proper C++ library support 10207 ld_shlibs_CXX=no 10208 ;; 10209 lcc*) 10210 # Lucid 10211 # FIXME: insert proper C++ library support 10212 ld_shlibs_CXX=no 10213 ;; 10214 *) 10215 # FIXME: insert proper C++ library support 10216 ld_shlibs_CXX=no 10217 ;; 10218 esac 10219 ;; 10220 solaris*) 10221 case $cc_basename in 10222 CC*) 10223 # Sun C++ 4.2, 5.x and Centerline C++ 10224 archive_cmds_need_lc_CXX=yes 10225 no_undefined_flag_CXX=' -zdefs' 10226 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10227 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10228 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10229 10230 hardcode_libdir_flag_spec_CXX='-R$libdir' 10231 hardcode_shlibpath_var_CXX=no 10232 case $host_os in 10233 solaris2.[0-5] | solaris2.[0-5].*) ;; 10234 *) 10235 # The C++ compiler is used as linker so we must use $wl 10236 # flag to pass the commands to the underlying system 10237 # linker. We must also pass each convience library through 10238 # to the system linker between allextract/defaultextract. 10239 # The C++ compiler will combine linker options so we 10240 # cannot just pass the convience library names through 10241 # without $wl. 10242 # Supported since Solaris 2.6 (maybe 2.5.1?) 10243 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' 10244 ;; 10245 esac 10246 link_all_deplibs_CXX=yes 10247 10248 output_verbose_link_cmd='echo' 10249 10250 # Archives containing C++ object files must be created using 10251 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10252 # necessary to make sure instantiated templates are included 10253 # in the archive. 10254 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10255 ;; 10256 gcx*) 10257 # Green Hills C++ Compiler 10258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10259 10260 # The C++ compiler must be used to create the archive. 10261 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10262 ;; 10263 *) 10264 # GNU C++ compiler with Solaris linker 10265 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10266 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10267 if $CC --version | grep -v '^2\.7' > /dev/null; then 10268 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10269 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10270 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10271 10272 # Commands to make compiler produce verbose output that lists 10273 # what "hidden" libraries, object files and flags are used when 10274 # linking a shared library. 10275 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10276 else 10277 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10278 # platform. 10279 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10280 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10281 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10282 10283 # Commands to make compiler produce verbose output that lists 10284 # what "hidden" libraries, object files and flags are used when 10285 # linking a shared library. 10286 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10287 fi 10288 10289 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10290 fi 10291 ;; 10292 esac 10293 ;; 10294 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10295 no_undefined_flag_CXX='${wl}-z,text' 10296 archive_cmds_need_lc_CXX=no 10297 hardcode_shlibpath_var_CXX=no 10298 runpath_var='LD_RUN_PATH' 10299 10300 case $cc_basename in 10301 CC*) 10302 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10303 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10304 ;; 10305 *) 10306 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10307 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10308 ;; 10309 esac 10310 ;; 10311 sysv5* | sco3.2v5* | sco5v6*) 10312 # Note: We can NOT use -z defs as we might desire, because we do not 10313 # link with -lc, and that would cause any symbols used from libc to 10314 # always be unresolved, which means just about no library would 10315 # ever link correctly. If we're not using GNU ld we use -z text 10316 # though, which does catch some bad symbols but isn't as heavy-handed 10317 # as -z defs. 10318 # For security reasons, it is highly recommended that you always 10319 # use absolute paths for naming shared libraries, and exclude the 10320 # DT_RUNPATH tag from executables and libraries. But doing so 10321 # requires that you compile everything twice, which is a pain. 10322 # So that behaviour is only enabled if SCOABSPATH is set to a 10323 # non-empty value in the environment. Most likely only useful for 10324 # creating official distributions of packages. 10325 # This is a hack until libtool officially supports absolute path 10326 # names for shared libraries. 10327 no_undefined_flag_CXX='${wl}-z,text' 10328 allow_undefined_flag_CXX='${wl}-z,nodefs' 10329 archive_cmds_need_lc_CXX=no 10330 hardcode_shlibpath_var_CXX=no 10331 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10332 hardcode_libdir_separator_CXX=':' 10333 link_all_deplibs_CXX=yes 10334 export_dynamic_flag_spec_CXX='${wl}-Bexport' 10335 runpath_var='LD_RUN_PATH' 10336 10337 case $cc_basename in 10338 CC*) 10339 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10340 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10341 ;; 10342 *) 10343 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10344 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10345 ;; 10346 esac 10347 ;; 10348 tandem*) 10349 case $cc_basename in 10350 NCC*) 10351 # NonStop-UX NCC 3.20 10352 # FIXME: insert proper C++ library support 10353 ld_shlibs_CXX=no 10354 ;; 10355 *) 10356 # FIXME: insert proper C++ library support 10357 ld_shlibs_CXX=no 10358 ;; 10359 esac 10360 ;; 10361 vxworks*) 10362 # FIXME: insert proper C++ library support 10363 ld_shlibs_CXX=no 10364 ;; 10365 *) 10366 # FIXME: insert proper C++ library support 10367 ld_shlibs_CXX=no 10368 ;; 10369esac 10370echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10371echo "${ECHO_T}$ld_shlibs_CXX" >&6 10372test "$ld_shlibs_CXX" = no && can_build_shared=no 10373 10374GCC_CXX="$GXX" 10375LD_CXX="$LD" 10376 10377## CAVEAT EMPTOR: 10378## There is no encapsulation within the following macros, do not change 10379## the running order or otherwise move them around unless you know exactly 10380## what you are doing... 10381 10382cat > conftest.$ac_ext <<EOF 10383class Foo 10384{ 10385public: 10386 Foo (void) { a = 0; } 10387private: 10388 int a; 10389}; 10390EOF 10391 10392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10393 (eval $ac_compile) 2>&5 10394 ac_status=$? 10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10396 (exit $ac_status); }; then 10397 # Parse the compiler output and extract the necessary 10398 # objects, libraries and library flags. 10399 10400 # Sentinel used to keep track of whether or not we are before 10401 # the conftest object file. 10402 pre_test_object_deps_done=no 10403 10404 # The `*' in the case matches for architectures that use `case' in 10405 # $output_verbose_cmd can trigger glob expansion during the loop 10406 # eval without this substitution. 10407 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 10408 10409 for p in `eval $output_verbose_link_cmd`; do 10410 case $p in 10411 10412 -L* | -R* | -l*) 10413 # Some compilers place space between "-{L,R}" and the path. 10414 # Remove the space. 10415 if test $p = "-L" \ 10416 || test $p = "-R"; then 10417 prev=$p 10418 continue 10419 else 10420 prev= 10421 fi 10422 10423 if test "$pre_test_object_deps_done" = no; then 10424 case $p in 10425 -L* | -R*) 10426 # Internal compiler library paths should come after those 10427 # provided the user. The postdeps already come after the 10428 # user supplied libs so there is no need to process them. 10429 if test -z "$compiler_lib_search_path_CXX"; then 10430 compiler_lib_search_path_CXX="${prev}${p}" 10431 else 10432 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10433 fi 10434 ;; 10435 # The "-l" case would never come before the object being 10436 # linked, so don't bother handling this case. 10437 esac 10438 else 10439 if test -z "$postdeps_CXX"; then 10440 postdeps_CXX="${prev}${p}" 10441 else 10442 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10443 fi 10444 fi 10445 ;; 10446 10447 *.$objext) 10448 # This assumes that the test object file only shows up 10449 # once in the compiler output. 10450 if test "$p" = "conftest.$objext"; then 10451 pre_test_object_deps_done=yes 10452 continue 10453 fi 10454 10455 if test "$pre_test_object_deps_done" = no; then 10456 if test -z "$predep_objects_CXX"; then 10457 predep_objects_CXX="$p" 10458 else 10459 predep_objects_CXX="$predep_objects_CXX $p" 10460 fi 10461 else 10462 if test -z "$postdep_objects_CXX"; then 10463 postdep_objects_CXX="$p" 10464 else 10465 postdep_objects_CXX="$postdep_objects_CXX $p" 10466 fi 10467 fi 10468 ;; 10469 10470 *) ;; # Ignore the rest. 10471 10472 esac 10473 done 10474 10475 # Clean up. 10476 rm -f a.out a.exe 10477else 10478 echo "libtool.m4: error: problem compiling CXX test program" 10479fi 10480 10481$rm -f confest.$objext 10482 10483# PORTME: override above test on systems where it is broken 10484case $host_os in 10485interix3*) 10486 # Interix 3.5 installs completely hosed .la files for C++, so rather than 10487 # hack all around it, let's just trust "g++" to DTRT. 10488 predep_objects_CXX= 10489 postdep_objects_CXX= 10490 postdeps_CXX= 10491 ;; 10492 10493solaris*) 10494 case $cc_basename in 10495 CC*) 10496 # Adding this requires a known-good setup of shared libraries for 10497 # Sun compiler versions before 5.6, else PIC objects from an old 10498 # archive will be linked into the output, leading to subtle bugs. 10499 postdeps_CXX='-lCstd -lCrun' 10500 ;; 10501 esac 10502 ;; 10503esac 10504 10505 10506case " $postdeps_CXX " in 10507*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10508esac 10509 10510lt_prog_compiler_wl_CXX= 10511lt_prog_compiler_pic_CXX= 10512lt_prog_compiler_static_CXX= 10513 10514echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10515echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10516 10517 # C++ specific cases for pic, static, wl, etc. 10518 if test "$GXX" = yes; then 10519 lt_prog_compiler_wl_CXX='-Wl,' 10520 lt_prog_compiler_static_CXX='-static' 10521 10522 case $host_os in 10523 aix*) 10524 # All AIX code is PIC. 10525 if test "$host_cpu" = ia64; then 10526 # AIX 5 now supports IA64 processor 10527 lt_prog_compiler_static_CXX='-Bstatic' 10528 fi 10529 ;; 10530 amigaos*) 10531 # FIXME: we need at least 68020 code to build shared libraries, but 10532 # adding the `-m68020' flag to GCC prevents building anything better, 10533 # like `-m68040'. 10534 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10535 ;; 10536 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10537 # PIC is the default for these OSes. 10538 ;; 10539 mingw* | os2* | pw32*) 10540 # This hack is so that the source file can tell whether it is being 10541 # built for inclusion in a dll (and should export symbols for example). 10542 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10543 ;; 10544 darwin* | rhapsody*) 10545 # PIC is the default on this platform 10546 # Common symbols not allowed in MH_DYLIB files 10547 lt_prog_compiler_pic_CXX='-fno-common' 10548 ;; 10549 *djgpp*) 10550 # DJGPP does not support shared libraries at all 10551 lt_prog_compiler_pic_CXX= 10552 ;; 10553 interix3*) 10554 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10555 # Instead, we relocate shared libraries at runtime. 10556 ;; 10557 sysv4*MP*) 10558 if test -d /usr/nec; then 10559 lt_prog_compiler_pic_CXX=-Kconform_pic 10560 fi 10561 ;; 10562 hpux*) 10563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10564 # not for PA HP-UX. 10565 case $host_cpu in 10566 hppa*64*|ia64*) 10567 ;; 10568 *) 10569 lt_prog_compiler_pic_CXX='-fPIC' 10570 ;; 10571 esac 10572 ;; 10573 *) 10574 lt_prog_compiler_pic_CXX='-fPIC' 10575 ;; 10576 esac 10577 else 10578 case $host_os in 10579 aix4* | aix5*) 10580 # All AIX code is PIC. 10581 if test "$host_cpu" = ia64; then 10582 # AIX 5 now supports IA64 processor 10583 lt_prog_compiler_static_CXX='-Bstatic' 10584 else 10585 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10586 fi 10587 ;; 10588 chorus*) 10589 case $cc_basename in 10590 cxch68*) 10591 # Green Hills C++ Compiler 10592 # _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" 10593 ;; 10594 esac 10595 ;; 10596 darwin*) 10597 # PIC is the default on this platform 10598 # Common symbols not allowed in MH_DYLIB files 10599 case $cc_basename in 10600 xlc*) 10601 lt_prog_compiler_pic_CXX='-qnocommon' 10602 lt_prog_compiler_wl_CXX='-Wl,' 10603 ;; 10604 esac 10605 ;; 10606 dgux*) 10607 case $cc_basename in 10608 ec++*) 10609 lt_prog_compiler_pic_CXX='-KPIC' 10610 ;; 10611 ghcx*) 10612 # Green Hills C++ Compiler 10613 lt_prog_compiler_pic_CXX='-pic' 10614 ;; 10615 *) 10616 ;; 10617 esac 10618 ;; 10619 freebsd* | kfreebsd*-gnu | dragonfly*) 10620 # FreeBSD uses GNU C++ 10621 ;; 10622 hpux9* | hpux10* | hpux11*) 10623 case $cc_basename in 10624 CC*) 10625 lt_prog_compiler_wl_CXX='-Wl,' 10626 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 10627 if test "$host_cpu" != ia64; then 10628 lt_prog_compiler_pic_CXX='+Z' 10629 fi 10630 ;; 10631 aCC*) 10632 lt_prog_compiler_wl_CXX='-Wl,' 10633 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 10634 case $host_cpu in 10635 hppa*64*|ia64*) 10636 # +Z the default 10637 ;; 10638 *) 10639 lt_prog_compiler_pic_CXX='+Z' 10640 ;; 10641 esac 10642 ;; 10643 *) 10644 ;; 10645 esac 10646 ;; 10647 interix*) 10648 # This is c89, which is MS Visual C++ (no shared libs) 10649 # Anyone wants to do a port? 10650 ;; 10651 irix5* | irix6* | nonstopux*) 10652 case $cc_basename in 10653 CC*) 10654 lt_prog_compiler_wl_CXX='-Wl,' 10655 lt_prog_compiler_static_CXX='-non_shared' 10656 # CC pic flag -KPIC is the default. 10657 ;; 10658 *) 10659 ;; 10660 esac 10661 ;; 10662 linux*) 10663 case $cc_basename in 10664 KCC*) 10665 # KAI C++ Compiler 10666 lt_prog_compiler_wl_CXX='--backend -Wl,' 10667 lt_prog_compiler_pic_CXX='-fPIC' 10668 ;; 10669 icpc* | ecpc*) 10670 # Intel C++ 10671 lt_prog_compiler_wl_CXX='-Wl,' 10672 lt_prog_compiler_pic_CXX='-KPIC' 10673 lt_prog_compiler_static_CXX='-static' 10674 ;; 10675 pgCC*) 10676 # Portland Group C++ compiler. 10677 lt_prog_compiler_wl_CXX='-Wl,' 10678 lt_prog_compiler_pic_CXX='-fpic' 10679 lt_prog_compiler_static_CXX='-Bstatic' 10680 ;; 10681 cxx*) 10682 # Compaq C++ 10683 # Make sure the PIC flag is empty. It appears that all Alpha 10684 # Linux and Compaq Tru64 Unix objects are PIC. 10685 lt_prog_compiler_pic_CXX= 10686 lt_prog_compiler_static_CXX='-non_shared' 10687 ;; 10688 *) 10689 ;; 10690 esac 10691 ;; 10692 lynxos*) 10693 ;; 10694 m88k*) 10695 ;; 10696 mvs*) 10697 case $cc_basename in 10698 cxx*) 10699 lt_prog_compiler_pic_CXX='-W c,exportall' 10700 ;; 10701 *) 10702 ;; 10703 esac 10704 ;; 10705 netbsd*) 10706 ;; 10707 osf3* | osf4* | osf5*) 10708 case $cc_basename in 10709 KCC*) 10710 lt_prog_compiler_wl_CXX='--backend -Wl,' 10711 ;; 10712 RCC*) 10713 # Rational C++ 2.4.1 10714 lt_prog_compiler_pic_CXX='-pic' 10715 ;; 10716 cxx*) 10717 # Digital/Compaq C++ 10718 lt_prog_compiler_wl_CXX='-Wl,' 10719 # Make sure the PIC flag is empty. It appears that all Alpha 10720 # Linux and Compaq Tru64 Unix objects are PIC. 10721 lt_prog_compiler_pic_CXX= 10722 lt_prog_compiler_static_CXX='-non_shared' 10723 ;; 10724 *) 10725 ;; 10726 esac 10727 ;; 10728 psos*) 10729 ;; 10730 solaris*) 10731 case $cc_basename in 10732 CC*) 10733 # Sun C++ 4.2, 5.x and Centerline C++ 10734 lt_prog_compiler_pic_CXX='-KPIC' 10735 lt_prog_compiler_static_CXX='-Bstatic' 10736 lt_prog_compiler_wl_CXX='-Qoption ld ' 10737 ;; 10738 gcx*) 10739 # Green Hills C++ Compiler 10740 lt_prog_compiler_pic_CXX='-PIC' 10741 ;; 10742 *) 10743 ;; 10744 esac 10745 ;; 10746 sunos4*) 10747 case $cc_basename in 10748 CC*) 10749 # Sun C++ 4.x 10750 lt_prog_compiler_pic_CXX='-pic' 10751 lt_prog_compiler_static_CXX='-Bstatic' 10752 ;; 10753 lcc*) 10754 # Lucid 10755 lt_prog_compiler_pic_CXX='-pic' 10756 ;; 10757 *) 10758 ;; 10759 esac 10760 ;; 10761 tandem*) 10762 case $cc_basename in 10763 NCC*) 10764 # NonStop-UX NCC 3.20 10765 lt_prog_compiler_pic_CXX='-KPIC' 10766 ;; 10767 *) 10768 ;; 10769 esac 10770 ;; 10771 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10772 case $cc_basename in 10773 CC*) 10774 lt_prog_compiler_wl_CXX='-Wl,' 10775 lt_prog_compiler_pic_CXX='-KPIC' 10776 lt_prog_compiler_static_CXX='-Bstatic' 10777 ;; 10778 esac 10779 ;; 10780 vxworks*) 10781 ;; 10782 *) 10783 lt_prog_compiler_can_build_shared_CXX=no 10784 ;; 10785 esac 10786 fi 10787 10788echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 10789echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 10790 10791# 10792# Check to make sure the PIC flag actually works. 10793# 10794if test -n "$lt_prog_compiler_pic_CXX"; then 10795 10796echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 10797echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 10798if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 10799 echo $ECHO_N "(cached) $ECHO_C" >&6 10800else 10801 lt_prog_compiler_pic_works_CXX=no 10802 ac_outfile=conftest.$ac_objext 10803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10804 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 10805 # Insert the option either (1) after the last *FLAGS variable, or 10806 # (2) before a word containing "conftest.", or (3) at the end. 10807 # Note that $ac_compile itself does not contain backslashes and begins 10808 # with a dollar sign (not a hyphen), so the echo should work correctly. 10809 # The option is referenced via a variable to avoid confusing sed. 10810 lt_compile=`echo "$ac_compile" | $SED \ 10811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10813 -e 's:$: $lt_compiler_flag:'` 10814 (eval echo "\"\$as_me:10814: $lt_compile\"" >&5) 10815 (eval "$lt_compile" 2>conftest.err) 10816 ac_status=$? 10817 cat conftest.err >&5 10818 echo "$as_me:10818: \$? = $ac_status" >&5 10819 if (exit $ac_status) && test -s "$ac_outfile"; then 10820 # The compiler can only warn and ignore the option if not recognized 10821 # So say no if there are warnings other than the usual output. 10822 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 10823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10825 lt_prog_compiler_pic_works_CXX=yes 10826 fi 10827 fi 10828 $rm conftest* 10829 10830fi 10831echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 10832echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 10833 10834if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 10835 case $lt_prog_compiler_pic_CXX in 10836 "" | " "*) ;; 10837 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 10838 esac 10839else 10840 lt_prog_compiler_pic_CXX= 10841 lt_prog_compiler_can_build_shared_CXX=no 10842fi 10843 10844fi 10845case $host_os in 10846 # For platforms which do not support PIC, -DPIC is meaningless: 10847 *djgpp*) 10848 lt_prog_compiler_pic_CXX= 10849 ;; 10850 *) 10851 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 10852 ;; 10853esac 10854 10855# 10856# Check to make sure the static flag actually works. 10857# 10858wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 10859echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10860echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 10861if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 10862 echo $ECHO_N "(cached) $ECHO_C" >&6 10863else 10864 lt_prog_compiler_static_works_CXX=no 10865 save_LDFLAGS="$LDFLAGS" 10866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10867 printf "$lt_simple_link_test_code" > conftest.$ac_ext 10868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10869 # The linker can only warn and ignore the option if not recognized 10870 # So say no if there are warnings 10871 if test -s conftest.err; then 10872 # Append any errors to the config.log. 10873 cat conftest.err 1>&5 10874 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 10875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10876 if diff conftest.exp conftest.er2 >/dev/null; then 10877 lt_prog_compiler_static_works_CXX=yes 10878 fi 10879 else 10880 lt_prog_compiler_static_works_CXX=yes 10881 fi 10882 fi 10883 $rm conftest* 10884 LDFLAGS="$save_LDFLAGS" 10885 10886fi 10887echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 10888echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 10889 10890if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 10891 : 10892else 10893 lt_prog_compiler_static_CXX= 10894fi 10895 10896 10897echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10898echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 10899if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 10900 echo $ECHO_N "(cached) $ECHO_C" >&6 10901else 10902 lt_cv_prog_compiler_c_o_CXX=no 10903 $rm -r conftest 2>/dev/null 10904 mkdir conftest 10905 cd conftest 10906 mkdir out 10907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10908 10909 lt_compiler_flag="-o out/conftest2.$ac_objext" 10910 # Insert the option either (1) after the last *FLAGS variable, or 10911 # (2) before a word containing "conftest.", or (3) at the end. 10912 # Note that $ac_compile itself does not contain backslashes and begins 10913 # with a dollar sign (not a hyphen), so the echo should work correctly. 10914 lt_compile=`echo "$ac_compile" | $SED \ 10915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10917 -e 's:$: $lt_compiler_flag:'` 10918 (eval echo "\"\$as_me:10918: $lt_compile\"" >&5) 10919 (eval "$lt_compile" 2>out/conftest.err) 10920 ac_status=$? 10921 cat out/conftest.err >&5 10922 echo "$as_me:10922: \$? = $ac_status" >&5 10923 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10924 then 10925 # The compiler can only warn and ignore the option if not recognized 10926 # So say no if there are warnings 10927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 10928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10930 lt_cv_prog_compiler_c_o_CXX=yes 10931 fi 10932 fi 10933 chmod u+w . 2>&5 10934 $rm conftest* 10935 # SGI C++ compiler will create directory out/ii_files/ for 10936 # template instantiation 10937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 10938 $rm out/* && rmdir out 10939 cd .. 10940 rmdir conftest 10941 $rm conftest* 10942 10943fi 10944echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 10945echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 10946 10947 10948hard_links="nottested" 10949if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 10950 # do not overwrite the value of need_locks provided by the user 10951 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10952echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 10953 hard_links=yes 10954 $rm conftest* 10955 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10956 touch conftest.a 10957 ln conftest.a conftest.b 2>&5 || hard_links=no 10958 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10959 echo "$as_me:$LINENO: result: $hard_links" >&5 10960echo "${ECHO_T}$hard_links" >&6 10961 if test "$hard_links" = no; then 10962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10963echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10964 need_locks=warn 10965 fi 10966else 10967 need_locks=no 10968fi 10969 10970echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10971echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10972 10973 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10974 case $host_os in 10975 aix4* | aix5*) 10976 # If we're using GNU nm, then we don't want the "-C" option. 10977 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10978 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10979 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' 10980 else 10981 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' 10982 fi 10983 ;; 10984 pw32*) 10985 export_symbols_cmds_CXX="$ltdll_cmds" 10986 ;; 10987 cygwin* | mingw*) 10988 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' 10989 ;; 10990 *) 10991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10992 ;; 10993 esac 10994 10995echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10996echo "${ECHO_T}$ld_shlibs_CXX" >&6 10997test "$ld_shlibs_CXX" = no && can_build_shared=no 10998 10999# 11000# Do we need to explicitly link libc? 11001# 11002case "x$archive_cmds_need_lc_CXX" in 11003x|xyes) 11004 # Assume -lc should be added 11005 archive_cmds_need_lc_CXX=yes 11006 11007 if test "$enable_shared" = yes && test "$GCC" = yes; then 11008 case $archive_cmds_CXX in 11009 *'~'*) 11010 # FIXME: we may have to deal with multi-command sequences. 11011 ;; 11012 '$CC '*) 11013 # Test whether the compiler implicitly links with -lc since on some 11014 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11015 # to ld, don't add -lc before -lgcc. 11016 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11017echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11018 $rm conftest* 11019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11020 11021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11022 (eval $ac_compile) 2>&5 11023 ac_status=$? 11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11025 (exit $ac_status); } 2>conftest.err; then 11026 soname=conftest 11027 lib=conftest 11028 libobjs=conftest.$ac_objext 11029 deplibs= 11030 wl=$lt_prog_compiler_wl_CXX 11031 pic_flag=$lt_prog_compiler_pic_CXX 11032 compiler_flags=-v 11033 linker_flags=-v 11034 verstring= 11035 output_objdir=. 11036 libname=conftest 11037 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11038 allow_undefined_flag_CXX= 11039 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11040 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11041 ac_status=$? 11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11043 (exit $ac_status); } 11044 then 11045 archive_cmds_need_lc_CXX=no 11046 else 11047 archive_cmds_need_lc_CXX=yes 11048 fi 11049 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11050 else 11051 cat conftest.err 1>&5 11052 fi 11053 $rm conftest* 11054 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11055echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11056 ;; 11057 esac 11058 fi 11059 ;; 11060esac 11061 11062echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11063echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11064library_names_spec= 11065libname_spec='lib$name' 11066soname_spec= 11067shrext_cmds=".so" 11068postinstall_cmds= 11069postuninstall_cmds= 11070finish_cmds= 11071finish_eval= 11072shlibpath_var= 11073shlibpath_overrides_runpath=unknown 11074version_type=none 11075dynamic_linker="$host_os ld.so" 11076sys_lib_dlsearch_path_spec="/lib /usr/lib" 11077if test "$GCC" = yes; then 11078 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11079 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11080 # if the path contains ";" then we assume it to be the separator 11081 # otherwise default to the standard path separator (i.e. ":") - it is 11082 # assumed that no part of a normal pathname contains ";" but that should 11083 # okay in the real world where ";" in dirpaths is itself problematic. 11084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11085 else 11086 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11087 fi 11088else 11089 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11090fi 11091need_lib_prefix=unknown 11092hardcode_into_libs=no 11093 11094# when you set need_version to no, make sure it does not cause -set_version 11095# flags to be left without arguments 11096need_version=unknown 11097 11098case $host_os in 11099aix3*) 11100 version_type=linux 11101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11102 shlibpath_var=LIBPATH 11103 11104 # AIX 3 has no versioning support, so we append a major version to the name. 11105 soname_spec='${libname}${release}${shared_ext}$major' 11106 ;; 11107 11108aix4* | aix5*) 11109 version_type=linux 11110 need_lib_prefix=no 11111 need_version=no 11112 hardcode_into_libs=yes 11113 if test "$host_cpu" = ia64; then 11114 # AIX 5 supports IA64 11115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11116 shlibpath_var=LD_LIBRARY_PATH 11117 else 11118 # With GCC up to 2.95.x, collect2 would create an import file 11119 # for dependence libraries. The import file would start with 11120 # the line `#! .'. This would cause the generated library to 11121 # depend on `.', always an invalid library. This was fixed in 11122 # development snapshots of GCC prior to 3.0. 11123 case $host_os in 11124 aix4 | aix4.[01] | aix4.[01].*) 11125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11126 echo ' yes ' 11127 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11128 : 11129 else 11130 can_build_shared=no 11131 fi 11132 ;; 11133 esac 11134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11135 # soname into executable. Probably we can add versioning support to 11136 # collect2, so additional links can be useful in future. 11137 if test "$aix_use_runtimelinking" = yes; then 11138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11139 # instead of lib<name>.a to let people know that these are not 11140 # typical AIX shared libraries. 11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11142 else 11143 # We preserve .a as extension for shared libraries through AIX4.2 11144 # and later when we are not doing run time linking. 11145 library_names_spec='${libname}${release}.a $libname.a' 11146 soname_spec='${libname}${release}${shared_ext}$major' 11147 fi 11148 shlibpath_var=LIBPATH 11149 fi 11150 ;; 11151 11152amigaos*) 11153 library_names_spec='$libname.ixlibrary $libname.a' 11154 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11155 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' 11156 ;; 11157 11158beos*) 11159 library_names_spec='${libname}${shared_ext}' 11160 dynamic_linker="$host_os ld.so" 11161 shlibpath_var=LIBRARY_PATH 11162 ;; 11163 11164bsdi[45]*) 11165 version_type=linux 11166 need_version=no 11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11168 soname_spec='${libname}${release}${shared_ext}$major' 11169 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11170 shlibpath_var=LD_LIBRARY_PATH 11171 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11172 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11173 # the default ld.so.conf also contains /usr/contrib/lib and 11174 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11175 # libtool to hard-code these into programs 11176 ;; 11177 11178cygwin* | mingw* | pw32*) 11179 version_type=windows 11180 shrext_cmds=".dll" 11181 need_version=no 11182 need_lib_prefix=no 11183 11184 case $GCC,$host_os in 11185 yes,cygwin* | yes,mingw* | yes,pw32*) 11186 library_names_spec='$libname.dll.a' 11187 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11188 postinstall_cmds='base_file=`basename \${file}`~ 11189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11190 dldir=$destdir/`dirname \$dlpath`~ 11191 test -d \$dldir || mkdir -p \$dldir~ 11192 $install_prog $dir/$dlname \$dldir/$dlname~ 11193 chmod a+x \$dldir/$dlname' 11194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11195 dlpath=$dir/\$dldll~ 11196 $rm \$dlpath' 11197 shlibpath_overrides_runpath=yes 11198 11199 case $host_os in 11200 cygwin*) 11201 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11203 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11204 ;; 11205 mingw*) 11206 # MinGW DLLs use traditional 'lib' prefix 11207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11208 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11209 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11210 # It is most probably a Windows format PATH printed by 11211 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11212 # path with ; separators, and with drive letters. We can handle the 11213 # drive letters (cygwin fileutils understands them), so leave them, 11214 # especially as we might pass files found there to a mingw objdump, 11215 # which wouldn't understand a cygwinified path. Ahh. 11216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11217 else 11218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11219 fi 11220 ;; 11221 pw32*) 11222 # pw32 DLLs use 'pw' prefix rather than 'lib' 11223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11224 ;; 11225 esac 11226 ;; 11227 11228 *) 11229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11230 ;; 11231 esac 11232 dynamic_linker='Win32 ld.exe' 11233 # FIXME: first we should search . and the directory the executable is in 11234 shlibpath_var=PATH 11235 ;; 11236 11237darwin* | rhapsody*) 11238 dynamic_linker="$host_os dyld" 11239 version_type=darwin 11240 need_lib_prefix=no 11241 need_version=no 11242 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11243 soname_spec='${libname}${release}${major}$shared_ext' 11244 shlibpath_overrides_runpath=yes 11245 shlibpath_var=DYLD_LIBRARY_PATH 11246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11247 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11248 if test "$GCC" = yes; then 11249 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"` 11250 else 11251 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11252 fi 11253 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11254 ;; 11255 11256dgux*) 11257 version_type=linux 11258 need_lib_prefix=no 11259 need_version=no 11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11261 soname_spec='${libname}${release}${shared_ext}$major' 11262 shlibpath_var=LD_LIBRARY_PATH 11263 ;; 11264 11265freebsd1*) 11266 dynamic_linker=no 11267 ;; 11268 11269kfreebsd*-gnu) 11270 version_type=linux 11271 need_lib_prefix=no 11272 need_version=no 11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11274 soname_spec='${libname}${release}${shared_ext}$major' 11275 shlibpath_var=LD_LIBRARY_PATH 11276 shlibpath_overrides_runpath=no 11277 hardcode_into_libs=yes 11278 dynamic_linker='GNU ld.so' 11279 ;; 11280 11281freebsd* | dragonfly*) 11282 # DragonFly does not have aout. When/if they implement a new 11283 # versioning mechanism, adjust this. 11284 if test -x /usr/bin/objformat; then 11285 objformat=`/usr/bin/objformat` 11286 else 11287 case $host_os in 11288 freebsd[123]*) objformat=aout ;; 11289 *) objformat=elf ;; 11290 esac 11291 fi 11292 version_type=freebsd-$objformat 11293 case $version_type in 11294 freebsd-elf*) 11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11296 need_version=no 11297 need_lib_prefix=no 11298 ;; 11299 freebsd-*) 11300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11301 need_version=yes 11302 ;; 11303 esac 11304 shlibpath_var=LD_LIBRARY_PATH 11305 case $host_os in 11306 freebsd2*) 11307 shlibpath_overrides_runpath=yes 11308 ;; 11309 freebsd3.[01]* | freebsdelf3.[01]*) 11310 shlibpath_overrides_runpath=yes 11311 hardcode_into_libs=yes 11312 ;; 11313 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11314 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11315 shlibpath_overrides_runpath=no 11316 hardcode_into_libs=yes 11317 ;; 11318 freebsd*) # from 4.6 on 11319 shlibpath_overrides_runpath=yes 11320 hardcode_into_libs=yes 11321 ;; 11322 esac 11323 ;; 11324 11325gnu*) 11326 version_type=linux 11327 need_lib_prefix=no 11328 need_version=no 11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11330 soname_spec='${libname}${release}${shared_ext}$major' 11331 shlibpath_var=LD_LIBRARY_PATH 11332 hardcode_into_libs=yes 11333 ;; 11334 11335hpux9* | hpux10* | hpux11*) 11336 # Give a soname corresponding to the major version so that dld.sl refuses to 11337 # link against other versions. 11338 version_type=sunos 11339 need_lib_prefix=no 11340 need_version=no 11341 case $host_cpu in 11342 ia64*) 11343 shrext_cmds='.so' 11344 hardcode_into_libs=yes 11345 dynamic_linker="$host_os dld.so" 11346 shlibpath_var=LD_LIBRARY_PATH 11347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11349 soname_spec='${libname}${release}${shared_ext}$major' 11350 if test "X$HPUX_IA64_MODE" = X32; then 11351 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11352 else 11353 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11354 fi 11355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11356 ;; 11357 hppa*64*) 11358 shrext_cmds='.sl' 11359 hardcode_into_libs=yes 11360 dynamic_linker="$host_os dld.sl" 11361 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11364 soname_spec='${libname}${release}${shared_ext}$major' 11365 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11367 ;; 11368 *) 11369 shrext_cmds='.sl' 11370 dynamic_linker="$host_os dld.sl" 11371 shlibpath_var=SHLIB_PATH 11372 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11374 soname_spec='${libname}${release}${shared_ext}$major' 11375 ;; 11376 esac 11377 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11378 postinstall_cmds='chmod 555 $lib' 11379 ;; 11380 11381interix3*) 11382 version_type=linux 11383 need_lib_prefix=no 11384 need_version=no 11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11386 soname_spec='${libname}${release}${shared_ext}$major' 11387 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11388 shlibpath_var=LD_LIBRARY_PATH 11389 shlibpath_overrides_runpath=no 11390 hardcode_into_libs=yes 11391 ;; 11392 11393irix5* | irix6* | nonstopux*) 11394 case $host_os in 11395 nonstopux*) version_type=nonstopux ;; 11396 *) 11397 if test "$lt_cv_prog_gnu_ld" = yes; then 11398 version_type=linux 11399 else 11400 version_type=irix 11401 fi ;; 11402 esac 11403 need_lib_prefix=no 11404 need_version=no 11405 soname_spec='${libname}${release}${shared_ext}$major' 11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11407 case $host_os in 11408 irix5* | nonstopux*) 11409 libsuff= shlibsuff= 11410 ;; 11411 *) 11412 case $LD in # libtool.m4 will add one of these switches to LD 11413 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11414 libsuff= shlibsuff= libmagic=32-bit;; 11415 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11416 libsuff=32 shlibsuff=N32 libmagic=N32;; 11417 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11418 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11419 *) libsuff= shlibsuff= libmagic=never-match;; 11420 esac 11421 ;; 11422 esac 11423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11424 shlibpath_overrides_runpath=no 11425 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11426 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11427 hardcode_into_libs=yes 11428 ;; 11429 11430# No shared lib support for Linux oldld, aout, or coff. 11431linux*oldld* | linux*aout* | linux*coff*) 11432 dynamic_linker=no 11433 ;; 11434 11435# This must be Linux ELF. 11436linux*) 11437 version_type=linux 11438 need_lib_prefix=no 11439 need_version=no 11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11441 soname_spec='${libname}${release}${shared_ext}$major' 11442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11443 shlibpath_var=LD_LIBRARY_PATH 11444 shlibpath_overrides_runpath=no 11445 # This implies no fast_install, which is unacceptable. 11446 # Some rework will be needed to allow for fast_install 11447 # before this can be enabled. 11448 hardcode_into_libs=yes 11449 11450 # find out which ABI we are using 11451 libsuff= 11452 case "$host_cpu" in 11453 x86_64*|s390x*|powerpc64*) 11454 echo '#line 11454 "configure"' > conftest.$ac_ext 11455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11456 (eval $ac_compile) 2>&5 11457 ac_status=$? 11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11459 (exit $ac_status); }; then 11460 case `/usr/bin/file conftest.$ac_objext` in 11461 *64-bit*) 11462 libsuff=64 11463 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 11464 ;; 11465 esac 11466 fi 11467 rm -rf conftest* 11468 ;; 11469 esac 11470 11471 # Append ld.so.conf contents to the search path 11472 if test -f /etc/ld.so.conf; then 11473 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 11474 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 11475 fi 11476 11477 # We used to test for /lib/ld.so.1 and disable shared libraries on 11478 # powerpc, because MkLinux only supported shared libraries with the 11479 # GNU dynamic linker. Since this was broken with cross compilers, 11480 # most powerpc-linux boxes support dynamic linking these days and 11481 # people can always --disable-shared, the test was removed, and we 11482 # assume the GNU/Linux dynamic linker is in use. 11483 dynamic_linker='GNU/Linux ld.so' 11484 ;; 11485 11486knetbsd*-gnu) 11487 version_type=linux 11488 need_lib_prefix=no 11489 need_version=no 11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11491 soname_spec='${libname}${release}${shared_ext}$major' 11492 shlibpath_var=LD_LIBRARY_PATH 11493 shlibpath_overrides_runpath=no 11494 hardcode_into_libs=yes 11495 dynamic_linker='GNU ld.so' 11496 ;; 11497 11498netbsd*) 11499 version_type=sunos 11500 need_lib_prefix=no 11501 need_version=no 11502 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11505 dynamic_linker='NetBSD (a.out) ld.so' 11506 else 11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11508 soname_spec='${libname}${release}${shared_ext}$major' 11509 dynamic_linker='NetBSD ld.elf_so' 11510 fi 11511 shlibpath_var=LD_LIBRARY_PATH 11512 shlibpath_overrides_runpath=yes 11513 hardcode_into_libs=yes 11514 ;; 11515 11516newsos6) 11517 version_type=linux 11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11519 shlibpath_var=LD_LIBRARY_PATH 11520 shlibpath_overrides_runpath=yes 11521 ;; 11522 11523nto-qnx*) 11524 version_type=linux 11525 need_lib_prefix=no 11526 need_version=no 11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11528 soname_spec='${libname}${release}${shared_ext}$major' 11529 shlibpath_var=LD_LIBRARY_PATH 11530 shlibpath_overrides_runpath=yes 11531 ;; 11532 11533openbsd*) 11534 version_type=sunos 11535 sys_lib_dlsearch_path_spec="/usr/lib" 11536 need_lib_prefix=no 11537 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11538 case $host_os in 11539 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11540 *) need_version=no ;; 11541 esac 11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11544 shlibpath_var=LD_LIBRARY_PATH 11545 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11546 case $host_os in 11547 openbsd2.[89] | openbsd2.[89].*) 11548 shlibpath_overrides_runpath=no 11549 ;; 11550 *) 11551 shlibpath_overrides_runpath=yes 11552 ;; 11553 esac 11554 else 11555 shlibpath_overrides_runpath=yes 11556 fi 11557 ;; 11558 11559os2*) 11560 libname_spec='$name' 11561 shrext_cmds=".dll" 11562 need_lib_prefix=no 11563 library_names_spec='$libname${shared_ext} $libname.a' 11564 dynamic_linker='OS/2 ld.exe' 11565 shlibpath_var=LIBPATH 11566 ;; 11567 11568osf3* | osf4* | osf5*) 11569 version_type=osf 11570 need_lib_prefix=no 11571 need_version=no 11572 soname_spec='${libname}${release}${shared_ext}$major' 11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11574 shlibpath_var=LD_LIBRARY_PATH 11575 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11576 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11577 ;; 11578 11579solaris*) 11580 version_type=linux 11581 need_lib_prefix=no 11582 need_version=no 11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11584 soname_spec='${libname}${release}${shared_ext}$major' 11585 shlibpath_var=LD_LIBRARY_PATH 11586 shlibpath_overrides_runpath=yes 11587 hardcode_into_libs=yes 11588 # ldd complains unless libraries are executable 11589 postinstall_cmds='chmod +x $lib' 11590 ;; 11591 11592sunos4*) 11593 version_type=sunos 11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11595 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11596 shlibpath_var=LD_LIBRARY_PATH 11597 shlibpath_overrides_runpath=yes 11598 if test "$with_gnu_ld" = yes; then 11599 need_lib_prefix=no 11600 fi 11601 need_version=yes 11602 ;; 11603 11604sysv4 | sysv4.3*) 11605 version_type=linux 11606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11607 soname_spec='${libname}${release}${shared_ext}$major' 11608 shlibpath_var=LD_LIBRARY_PATH 11609 case $host_vendor in 11610 sni) 11611 shlibpath_overrides_runpath=no 11612 need_lib_prefix=no 11613 export_dynamic_flag_spec='${wl}-Blargedynsym' 11614 runpath_var=LD_RUN_PATH 11615 ;; 11616 siemens) 11617 need_lib_prefix=no 11618 ;; 11619 motorola) 11620 need_lib_prefix=no 11621 need_version=no 11622 shlibpath_overrides_runpath=no 11623 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11624 ;; 11625 esac 11626 ;; 11627 11628sysv4*MP*) 11629 if test -d /usr/nec ;then 11630 version_type=linux 11631 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11632 soname_spec='$libname${shared_ext}.$major' 11633 shlibpath_var=LD_LIBRARY_PATH 11634 fi 11635 ;; 11636 11637sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11638 version_type=freebsd-elf 11639 need_lib_prefix=no 11640 need_version=no 11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11642 soname_spec='${libname}${release}${shared_ext}$major' 11643 shlibpath_var=LD_LIBRARY_PATH 11644 hardcode_into_libs=yes 11645 if test "$with_gnu_ld" = yes; then 11646 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11647 shlibpath_overrides_runpath=no 11648 else 11649 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11650 shlibpath_overrides_runpath=yes 11651 case $host_os in 11652 sco3.2v5*) 11653 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11654 ;; 11655 esac 11656 fi 11657 sys_lib_dlsearch_path_spec='/usr/lib' 11658 ;; 11659 11660uts4*) 11661 version_type=linux 11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11663 soname_spec='${libname}${release}${shared_ext}$major' 11664 shlibpath_var=LD_LIBRARY_PATH 11665 ;; 11666 11667*) 11668 dynamic_linker=no 11669 ;; 11670esac 11671echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11672echo "${ECHO_T}$dynamic_linker" >&6 11673test "$dynamic_linker" = no && can_build_shared=no 11674 11675variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11676if test "$GCC" = yes; then 11677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11678fi 11679 11680echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11681echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11682hardcode_action_CXX= 11683if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11684 test -n "$runpath_var_CXX" || \ 11685 test "X$hardcode_automatic_CXX" = "Xyes" ; then 11686 11687 # We can hardcode non-existant directories. 11688 if test "$hardcode_direct_CXX" != no && 11689 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11690 # have to relink, otherwise we might link with an installed library 11691 # when we should be linking with a yet-to-be-installed one 11692 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11693 test "$hardcode_minus_L_CXX" != no; then 11694 # Linking always hardcodes the temporary library directory. 11695 hardcode_action_CXX=relink 11696 else 11697 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11698 hardcode_action_CXX=immediate 11699 fi 11700else 11701 # We cannot hardcode anything, or else we can only hardcode existing 11702 # directories. 11703 hardcode_action_CXX=unsupported 11704fi 11705echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11706echo "${ECHO_T}$hardcode_action_CXX" >&6 11707 11708if test "$hardcode_action_CXX" = relink; then 11709 # Fast installation is not supported 11710 enable_fast_install=no 11711elif test "$shlibpath_overrides_runpath" = yes || 11712 test "$enable_shared" = no; then 11713 # Fast installation is not necessary 11714 enable_fast_install=needless 11715fi 11716 11717 11718# The else clause should only fire when bootstrapping the 11719# libtool distribution, otherwise you forgot to ship ltmain.sh 11720# with your package, and you will get complaints that there are 11721# no rules to generate ltmain.sh. 11722if test -f "$ltmain"; then 11723 # See if we are running on zsh, and set the options which allow our commands through 11724 # without removal of \ escapes. 11725 if test -n "${ZSH_VERSION+set}" ; then 11726 setopt NO_GLOB_SUBST 11727 fi 11728 # Now quote all the things that may contain metacharacters while being 11729 # careful not to overquote the AC_SUBSTed values. We take copies of the 11730 # variables and quote the copies for generation of the libtool script. 11731 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11732 SED SHELL STRIP \ 11733 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11734 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11735 deplibs_check_method reload_flag reload_cmds need_locks \ 11736 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11737 lt_cv_sys_global_symbol_to_c_name_address \ 11738 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11739 old_postinstall_cmds old_postuninstall_cmds \ 11740 compiler_CXX \ 11741 CC_CXX \ 11742 LD_CXX \ 11743 lt_prog_compiler_wl_CXX \ 11744 lt_prog_compiler_pic_CXX \ 11745 lt_prog_compiler_static_CXX \ 11746 lt_prog_compiler_no_builtin_flag_CXX \ 11747 export_dynamic_flag_spec_CXX \ 11748 thread_safe_flag_spec_CXX \ 11749 whole_archive_flag_spec_CXX \ 11750 enable_shared_with_static_runtimes_CXX \ 11751 old_archive_cmds_CXX \ 11752 old_archive_from_new_cmds_CXX \ 11753 predep_objects_CXX \ 11754 postdep_objects_CXX \ 11755 predeps_CXX \ 11756 postdeps_CXX \ 11757 compiler_lib_search_path_CXX \ 11758 archive_cmds_CXX \ 11759 archive_expsym_cmds_CXX \ 11760 postinstall_cmds_CXX \ 11761 postuninstall_cmds_CXX \ 11762 old_archive_from_expsyms_cmds_CXX \ 11763 allow_undefined_flag_CXX \ 11764 no_undefined_flag_CXX \ 11765 export_symbols_cmds_CXX \ 11766 hardcode_libdir_flag_spec_CXX \ 11767 hardcode_libdir_flag_spec_ld_CXX \ 11768 hardcode_libdir_separator_CXX \ 11769 hardcode_automatic_CXX \ 11770 module_cmds_CXX \ 11771 module_expsym_cmds_CXX \ 11772 lt_cv_prog_compiler_c_o_CXX \ 11773 exclude_expsyms_CXX \ 11774 include_expsyms_CXX; do 11775 11776 case $var in 11777 old_archive_cmds_CXX | \ 11778 old_archive_from_new_cmds_CXX | \ 11779 archive_cmds_CXX | \ 11780 archive_expsym_cmds_CXX | \ 11781 module_cmds_CXX | \ 11782 module_expsym_cmds_CXX | \ 11783 old_archive_from_expsyms_cmds_CXX | \ 11784 export_symbols_cmds_CXX | \ 11785 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11786 postinstall_cmds | postuninstall_cmds | \ 11787 old_postinstall_cmds | old_postuninstall_cmds | \ 11788 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11789 # Double-quote double-evaled strings. 11790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11791 ;; 11792 *) 11793 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11794 ;; 11795 esac 11796 done 11797 11798 case $lt_echo in 11799 *'\$0 --fallback-echo"') 11800 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11801 ;; 11802 esac 11803 11804cfgfile="$ofile" 11805 11806 cat <<__EOF__ >> "$cfgfile" 11807# ### BEGIN LIBTOOL TAG CONFIG: $tagname 11808 11809# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11810 11811# Shell to use when invoking shell scripts. 11812SHELL=$lt_SHELL 11813 11814# Whether or not to build shared libraries. 11815build_libtool_libs=$enable_shared 11816 11817# Whether or not to build static libraries. 11818build_old_libs=$enable_static 11819 11820# Whether or not to add -lc for building shared libraries. 11821build_libtool_need_lc=$archive_cmds_need_lc_CXX 11822 11823# Whether or not to disallow shared libs when runtime libs are static 11824allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 11825 11826# Whether or not to optimize for fast installation. 11827fast_install=$enable_fast_install 11828 11829# The host system. 11830host_alias=$host_alias 11831host=$host 11832host_os=$host_os 11833 11834# The build system. 11835build_alias=$build_alias 11836build=$build 11837build_os=$build_os 11838 11839# An echo program that does not interpret backslashes. 11840echo=$lt_echo 11841 11842# The archiver. 11843AR=$lt_AR 11844AR_FLAGS=$lt_AR_FLAGS 11845 11846# A C compiler. 11847LTCC=$lt_LTCC 11848 11849# LTCC compiler flags. 11850LTCFLAGS=$lt_LTCFLAGS 11851 11852# A language-specific compiler. 11853CC=$lt_compiler_CXX 11854 11855# Is the compiler the GNU C compiler? 11856with_gcc=$GCC_CXX 11857 11858gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 11859gcc_ver=\`gcc -dumpversion\` 11860 11861# An ERE matcher. 11862EGREP=$lt_EGREP 11863 11864# The linker used to build libraries. 11865LD=$lt_LD_CXX 11866 11867# Whether we need hard or soft links. 11868LN_S=$lt_LN_S 11869 11870# A BSD-compatible nm program. 11871NM=$lt_NM 11872 11873# A symbol stripping program 11874STRIP=$lt_STRIP 11875 11876# Used to examine libraries when file_magic_cmd begins "file" 11877MAGIC_CMD=$MAGIC_CMD 11878 11879# Used on cygwin: DLL creation program. 11880DLLTOOL="$DLLTOOL" 11881 11882# Used on cygwin: object dumper. 11883OBJDUMP="$OBJDUMP" 11884 11885# Used on cygwin: assembler. 11886AS="$AS" 11887 11888# The name of the directory that contains temporary libtool files. 11889objdir=$objdir 11890 11891# How to create reloadable object files. 11892reload_flag=$lt_reload_flag 11893reload_cmds=$lt_reload_cmds 11894 11895# How to pass a linker flag through the compiler. 11896wl=$lt_lt_prog_compiler_wl_CXX 11897 11898# Object file suffix (normally "o"). 11899objext="$ac_objext" 11900 11901# Old archive suffix (normally "a"). 11902libext="$libext" 11903 11904# Shared library suffix (normally ".so"). 11905shrext_cmds='$shrext_cmds' 11906 11907# Executable file suffix (normally ""). 11908exeext="$exeext" 11909 11910# Additional compiler flags for building library objects. 11911pic_flag=$lt_lt_prog_compiler_pic_CXX 11912pic_mode=$pic_mode 11913 11914# What is the maximum length of a command? 11915max_cmd_len=$lt_cv_sys_max_cmd_len 11916 11917# Does compiler simultaneously support -c and -o options? 11918compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 11919 11920# Must we lock files when doing compilation? 11921need_locks=$lt_need_locks 11922 11923# Do we need the lib prefix for modules? 11924need_lib_prefix=$need_lib_prefix 11925 11926# Do we need a version for libraries? 11927need_version=$need_version 11928 11929# Whether dlopen is supported. 11930dlopen_support=$enable_dlopen 11931 11932# Whether dlopen of programs is supported. 11933dlopen_self=$enable_dlopen_self 11934 11935# Whether dlopen of statically linked programs is supported. 11936dlopen_self_static=$enable_dlopen_self_static 11937 11938# Compiler flag to prevent dynamic linking. 11939link_static_flag=$lt_lt_prog_compiler_static_CXX 11940 11941# Compiler flag to turn off builtin functions. 11942no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 11943 11944# Compiler flag to allow reflexive dlopens. 11945export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 11946 11947# Compiler flag to generate shared objects directly from archives. 11948whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 11949 11950# Compiler flag to generate thread-safe objects. 11951thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 11952 11953# Library versioning type. 11954version_type=$version_type 11955 11956# Format of library name prefix. 11957libname_spec=$lt_libname_spec 11958 11959# List of archive names. First name is the real one, the rest are links. 11960# The last name is the one that the linker finds with -lNAME. 11961library_names_spec=$lt_library_names_spec 11962 11963# The coded name of the library, if different from the real name. 11964soname_spec=$lt_soname_spec 11965 11966# Commands used to build and install an old-style archive. 11967RANLIB=$lt_RANLIB 11968old_archive_cmds=$lt_old_archive_cmds_CXX 11969old_postinstall_cmds=$lt_old_postinstall_cmds 11970old_postuninstall_cmds=$lt_old_postuninstall_cmds 11971 11972# Create an old-style archive from a shared archive. 11973old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 11974 11975# Create a temporary old-style archive to link instead of a shared archive. 11976old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 11977 11978# Commands used to build and install a shared archive. 11979archive_cmds=$lt_archive_cmds_CXX 11980archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 11981postinstall_cmds=$lt_postinstall_cmds 11982postuninstall_cmds=$lt_postuninstall_cmds 11983 11984# Commands used to build a loadable module (assumed same as above if empty) 11985module_cmds=$lt_module_cmds_CXX 11986module_expsym_cmds=$lt_module_expsym_cmds_CXX 11987 11988# Commands to strip libraries. 11989old_striplib=$lt_old_striplib 11990striplib=$lt_striplib 11991 11992# Dependencies to place before the objects being linked to create a 11993# shared library. 11994predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 11995 11996# Dependencies to place after the objects being linked to create a 11997# shared library. 11998postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 11999 12000# Dependencies to place before the objects being linked to create a 12001# shared library. 12002predeps=$lt_predeps_CXX 12003 12004# Dependencies to place after the objects being linked to create a 12005# shared library. 12006postdeps=$lt_postdeps_CXX 12007 12008# The library search path used internally by the compiler when linking 12009# a shared library. 12010compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12011 12012# Method to check whether dependent libraries are shared objects. 12013deplibs_check_method=$lt_deplibs_check_method 12014 12015# Command to use when deplibs_check_method == file_magic. 12016file_magic_cmd=$lt_file_magic_cmd 12017 12018# Flag that allows shared libraries with undefined symbols to be built. 12019allow_undefined_flag=$lt_allow_undefined_flag_CXX 12020 12021# Flag that forces no undefined symbols. 12022no_undefined_flag=$lt_no_undefined_flag_CXX 12023 12024# Commands used to finish a libtool library installation in a directory. 12025finish_cmds=$lt_finish_cmds 12026 12027# Same as above, but a single script fragment to be evaled but not shown. 12028finish_eval=$lt_finish_eval 12029 12030# Take the output of nm and produce a listing of raw symbols and C names. 12031global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12032 12033# Transform the output of nm in a proper C declaration 12034global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12035 12036# Transform the output of nm in a C name address pair 12037global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12038 12039# This is the shared library runtime path variable. 12040runpath_var=$runpath_var 12041 12042# This is the shared library path variable. 12043shlibpath_var=$shlibpath_var 12044 12045# Is shlibpath searched before the hard-coded library search path? 12046shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12047 12048# How to hardcode a shared library path into an executable. 12049hardcode_action=$hardcode_action_CXX 12050 12051# Whether we should hardcode library paths into libraries. 12052hardcode_into_libs=$hardcode_into_libs 12053 12054# Flag to hardcode \$libdir into a binary during linking. 12055# This must work even if \$libdir does not exist. 12056hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12057 12058# If ld is used when linking, flag to hardcode \$libdir into 12059# a binary during linking. This must work even if \$libdir does 12060# not exist. 12061hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12062 12063# Whether we need a single -rpath flag with a separated argument. 12064hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12065 12066# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12067# resulting binary. 12068hardcode_direct=$hardcode_direct_CXX 12069 12070# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12071# resulting binary. 12072hardcode_minus_L=$hardcode_minus_L_CXX 12073 12074# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12075# the resulting binary. 12076hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12077 12078# Set to yes if building a shared library automatically hardcodes DIR into the library 12079# and all subsequent libraries and executables linked against it. 12080hardcode_automatic=$hardcode_automatic_CXX 12081 12082# Variables whose values should be saved in libtool wrapper scripts and 12083# restored at relink time. 12084variables_saved_for_relink="$variables_saved_for_relink" 12085 12086# Whether libtool must link a program against all its dependency libraries. 12087link_all_deplibs=$link_all_deplibs_CXX 12088 12089# Compile-time system search path for libraries 12090sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12091 12092# Run-time system search path for libraries 12093sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12094 12095# Fix the shell variable \$srcfile for the compiler. 12096fix_srcfile_path="$fix_srcfile_path_CXX" 12097 12098# Set to yes if exported symbols are required. 12099always_export_symbols=$always_export_symbols_CXX 12100 12101# The commands to list exported symbols. 12102export_symbols_cmds=$lt_export_symbols_cmds_CXX 12103 12104# The commands to extract the exported symbol list from a shared archive. 12105extract_expsyms_cmds=$lt_extract_expsyms_cmds 12106 12107# Symbols that should not be listed in the preloaded symbols. 12108exclude_expsyms=$lt_exclude_expsyms_CXX 12109 12110# Symbols that must always be exported. 12111include_expsyms=$lt_include_expsyms_CXX 12112 12113# ### END LIBTOOL TAG CONFIG: $tagname 12114 12115__EOF__ 12116 12117 12118else 12119 # If there is no Makefile yet, we rely on a make rule to execute 12120 # `config.status --recheck' to rerun these tests and create the 12121 # libtool script then. 12122 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12123 if test -f "$ltmain_in"; then 12124 test -f Makefile && make "$ltmain" 12125 fi 12126fi 12127 12128 12129ac_ext=c 12130ac_cpp='$CPP $CPPFLAGS' 12131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12133ac_compiler_gnu=$ac_cv_c_compiler_gnu 12134 12135CC=$lt_save_CC 12136LDCXX=$LD 12137LD=$lt_save_LD 12138GCC=$lt_save_GCC 12139with_gnu_ldcxx=$with_gnu_ld 12140with_gnu_ld=$lt_save_with_gnu_ld 12141lt_cv_path_LDCXX=$lt_cv_path_LD 12142lt_cv_path_LD=$lt_save_path_LD 12143lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12144lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12145 12146 else 12147 tagname="" 12148 fi 12149 ;; 12150 12151 F77) 12152 if test -n "$F77" && test "X$F77" != "Xno"; then 12153 12154ac_ext=f 12155ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12156ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12157ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12158 12159 12160archive_cmds_need_lc_F77=no 12161allow_undefined_flag_F77= 12162always_export_symbols_F77=no 12163archive_expsym_cmds_F77= 12164export_dynamic_flag_spec_F77= 12165hardcode_direct_F77=no 12166hardcode_libdir_flag_spec_F77= 12167hardcode_libdir_flag_spec_ld_F77= 12168hardcode_libdir_separator_F77= 12169hardcode_minus_L_F77=no 12170hardcode_automatic_F77=no 12171module_cmds_F77= 12172module_expsym_cmds_F77= 12173link_all_deplibs_F77=unknown 12174old_archive_cmds_F77=$old_archive_cmds 12175no_undefined_flag_F77= 12176whole_archive_flag_spec_F77= 12177enable_shared_with_static_runtimes_F77=no 12178 12179# Source file extension for f77 test sources. 12180ac_ext=f 12181 12182# Object file extension for compiled f77 test sources. 12183objext=o 12184objext_F77=$objext 12185 12186# Code to be used in simple compile tests 12187lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12188 12189# Code to be used in simple link tests 12190lt_simple_link_test_code=" program t\n end\n" 12191 12192# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12193 12194# If no C compiler was specified, use CC. 12195LTCC=${LTCC-"$CC"} 12196 12197# If no C compiler flags were specified, use CFLAGS. 12198LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12199 12200# Allow CC to be a program name with arguments. 12201compiler=$CC 12202 12203 12204# save warnings/boilerplate of simple test code 12205ac_outfile=conftest.$ac_objext 12206printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12207eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12208_lt_compiler_boilerplate=`cat conftest.err` 12209$rm conftest* 12210 12211ac_outfile=conftest.$ac_objext 12212printf "$lt_simple_link_test_code" >conftest.$ac_ext 12213eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12214_lt_linker_boilerplate=`cat conftest.err` 12215$rm conftest* 12216 12217 12218# Allow CC to be a program name with arguments. 12219lt_save_CC="$CC" 12220CC=${F77-"f77"} 12221compiler=$CC 12222compiler_F77=$CC 12223for cc_temp in $compiler""; do 12224 case $cc_temp in 12225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12227 \-*) ;; 12228 *) break;; 12229 esac 12230done 12231cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12232 12233 12234echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12235echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12236echo "$as_me:$LINENO: result: $can_build_shared" >&5 12237echo "${ECHO_T}$can_build_shared" >&6 12238 12239echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12240echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12241test "$can_build_shared" = "no" && enable_shared=no 12242 12243# On AIX, shared libraries and static libraries use the same namespace, and 12244# are all built from PIC. 12245case $host_os in 12246aix3*) 12247 test "$enable_shared" = yes && enable_static=no 12248 if test -n "$RANLIB"; then 12249 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12250 postinstall_cmds='$RANLIB $lib' 12251 fi 12252 ;; 12253aix4* | aix5*) 12254 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12255 test "$enable_shared" = yes && enable_static=no 12256 fi 12257 ;; 12258esac 12259echo "$as_me:$LINENO: result: $enable_shared" >&5 12260echo "${ECHO_T}$enable_shared" >&6 12261 12262echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12263echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12264# Make sure either enable_shared or enable_static is yes. 12265test "$enable_shared" = yes || enable_static=yes 12266echo "$as_me:$LINENO: result: $enable_static" >&5 12267echo "${ECHO_T}$enable_static" >&6 12268 12269GCC_F77="$G77" 12270LD_F77="$LD" 12271 12272lt_prog_compiler_wl_F77= 12273lt_prog_compiler_pic_F77= 12274lt_prog_compiler_static_F77= 12275 12276echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12277echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12278 12279 if test "$GCC" = yes; then 12280 lt_prog_compiler_wl_F77='-Wl,' 12281 lt_prog_compiler_static_F77='-static' 12282 12283 case $host_os in 12284 aix*) 12285 # All AIX code is PIC. 12286 if test "$host_cpu" = ia64; then 12287 # AIX 5 now supports IA64 processor 12288 lt_prog_compiler_static_F77='-Bstatic' 12289 fi 12290 ;; 12291 12292 amigaos*) 12293 # FIXME: we need at least 68020 code to build shared libraries, but 12294 # adding the `-m68020' flag to GCC prevents building anything better, 12295 # like `-m68040'. 12296 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12297 ;; 12298 12299 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12300 # PIC is the default for these OSes. 12301 ;; 12302 12303 mingw* | pw32* | os2*) 12304 # This hack is so that the source file can tell whether it is being 12305 # built for inclusion in a dll (and should export symbols for example). 12306 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12307 ;; 12308 12309 darwin* | rhapsody*) 12310 # PIC is the default on this platform 12311 # Common symbols not allowed in MH_DYLIB files 12312 lt_prog_compiler_pic_F77='-fno-common' 12313 ;; 12314 12315 interix3*) 12316 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12317 # Instead, we relocate shared libraries at runtime. 12318 ;; 12319 12320 msdosdjgpp*) 12321 # Just because we use GCC doesn't mean we suddenly get shared libraries 12322 # on systems that don't support them. 12323 lt_prog_compiler_can_build_shared_F77=no 12324 enable_shared=no 12325 ;; 12326 12327 sysv4*MP*) 12328 if test -d /usr/nec; then 12329 lt_prog_compiler_pic_F77=-Kconform_pic 12330 fi 12331 ;; 12332 12333 hpux*) 12334 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12335 # not for PA HP-UX. 12336 case $host_cpu in 12337 hppa*64*|ia64*) 12338 # +Z the default 12339 ;; 12340 *) 12341 lt_prog_compiler_pic_F77='-fPIC' 12342 ;; 12343 esac 12344 ;; 12345 12346 *) 12347 lt_prog_compiler_pic_F77='-fPIC' 12348 ;; 12349 esac 12350 else 12351 # PORTME Check for flag to pass linker flags through the system compiler. 12352 case $host_os in 12353 aix*) 12354 lt_prog_compiler_wl_F77='-Wl,' 12355 if test "$host_cpu" = ia64; then 12356 # AIX 5 now supports IA64 processor 12357 lt_prog_compiler_static_F77='-Bstatic' 12358 else 12359 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12360 fi 12361 ;; 12362 darwin*) 12363 # PIC is the default on this platform 12364 # Common symbols not allowed in MH_DYLIB files 12365 case $cc_basename in 12366 xlc*) 12367 lt_prog_compiler_pic_F77='-qnocommon' 12368 lt_prog_compiler_wl_F77='-Wl,' 12369 ;; 12370 esac 12371 ;; 12372 12373 mingw* | pw32* | os2*) 12374 # This hack is so that the source file can tell whether it is being 12375 # built for inclusion in a dll (and should export symbols for example). 12376 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12377 ;; 12378 12379 hpux9* | hpux10* | hpux11*) 12380 lt_prog_compiler_wl_F77='-Wl,' 12381 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12382 # not for PA HP-UX. 12383 case $host_cpu in 12384 hppa*64*|ia64*) 12385 # +Z the default 12386 ;; 12387 *) 12388 lt_prog_compiler_pic_F77='+Z' 12389 ;; 12390 esac 12391 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12392 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 12393 ;; 12394 12395 irix5* | irix6* | nonstopux*) 12396 lt_prog_compiler_wl_F77='-Wl,' 12397 # PIC (with -KPIC) is the default. 12398 lt_prog_compiler_static_F77='-non_shared' 12399 ;; 12400 12401 newsos6) 12402 lt_prog_compiler_pic_F77='-KPIC' 12403 lt_prog_compiler_static_F77='-Bstatic' 12404 ;; 12405 12406 linux*) 12407 case $cc_basename in 12408 icc* | ecc*) 12409 lt_prog_compiler_wl_F77='-Wl,' 12410 lt_prog_compiler_pic_F77='-KPIC' 12411 lt_prog_compiler_static_F77='-static' 12412 ;; 12413 pgcc* | pgf77* | pgf90* | pgf95*) 12414 # Portland Group compilers (*not* the Pentium gcc compiler, 12415 # which looks to be a dead project) 12416 lt_prog_compiler_wl_F77='-Wl,' 12417 lt_prog_compiler_pic_F77='-fpic' 12418 lt_prog_compiler_static_F77='-Bstatic' 12419 ;; 12420 ccc*) 12421 lt_prog_compiler_wl_F77='-Wl,' 12422 # All Alpha code is PIC. 12423 lt_prog_compiler_static_F77='-non_shared' 12424 ;; 12425 esac 12426 ;; 12427 12428 osf3* | osf4* | osf5*) 12429 lt_prog_compiler_wl_F77='-Wl,' 12430 # All OSF/1 code is PIC. 12431 lt_prog_compiler_static_F77='-non_shared' 12432 ;; 12433 12434 solaris*) 12435 lt_prog_compiler_pic_F77='-KPIC' 12436 lt_prog_compiler_static_F77='-Bstatic' 12437 case $cc_basename in 12438 f77* | f90* | f95*) 12439 lt_prog_compiler_wl_F77='-Qoption ld ';; 12440 *) 12441 lt_prog_compiler_wl_F77='-Wl,';; 12442 esac 12443 ;; 12444 12445 sunos4*) 12446 lt_prog_compiler_wl_F77='-Qoption ld ' 12447 lt_prog_compiler_pic_F77='-PIC' 12448 lt_prog_compiler_static_F77='-Bstatic' 12449 ;; 12450 12451 sysv4 | sysv4.2uw2* | sysv4.3*) 12452 lt_prog_compiler_wl_F77='-Wl,' 12453 lt_prog_compiler_pic_F77='-KPIC' 12454 lt_prog_compiler_static_F77='-Bstatic' 12455 ;; 12456 12457 sysv4*MP*) 12458 if test -d /usr/nec ;then 12459 lt_prog_compiler_pic_F77='-Kconform_pic' 12460 lt_prog_compiler_static_F77='-Bstatic' 12461 fi 12462 ;; 12463 12464 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12465 lt_prog_compiler_wl_F77='-Wl,' 12466 lt_prog_compiler_pic_F77='-KPIC' 12467 lt_prog_compiler_static_F77='-Bstatic' 12468 ;; 12469 12470 unicos*) 12471 lt_prog_compiler_wl_F77='-Wl,' 12472 lt_prog_compiler_can_build_shared_F77=no 12473 ;; 12474 12475 uts4*) 12476 lt_prog_compiler_pic_F77='-pic' 12477 lt_prog_compiler_static_F77='-Bstatic' 12478 ;; 12479 12480 *) 12481 lt_prog_compiler_can_build_shared_F77=no 12482 ;; 12483 esac 12484 fi 12485 12486echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 12487echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 12488 12489# 12490# Check to make sure the PIC flag actually works. 12491# 12492if test -n "$lt_prog_compiler_pic_F77"; then 12493 12494echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12495echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 12496if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 12497 echo $ECHO_N "(cached) $ECHO_C" >&6 12498else 12499 lt_prog_compiler_pic_works_F77=no 12500 ac_outfile=conftest.$ac_objext 12501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12502 lt_compiler_flag="$lt_prog_compiler_pic_F77" 12503 # Insert the option either (1) after the last *FLAGS variable, or 12504 # (2) before a word containing "conftest.", or (3) at the end. 12505 # Note that $ac_compile itself does not contain backslashes and begins 12506 # with a dollar sign (not a hyphen), so the echo should work correctly. 12507 # The option is referenced via a variable to avoid confusing sed. 12508 lt_compile=`echo "$ac_compile" | $SED \ 12509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12511 -e 's:$: $lt_compiler_flag:'` 12512 (eval echo "\"\$as_me:12512: $lt_compile\"" >&5) 12513 (eval "$lt_compile" 2>conftest.err) 12514 ac_status=$? 12515 cat conftest.err >&5 12516 echo "$as_me:12516: \$? = $ac_status" >&5 12517 if (exit $ac_status) && test -s "$ac_outfile"; then 12518 # The compiler can only warn and ignore the option if not recognized 12519 # So say no if there are warnings other than the usual output. 12520 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12523 lt_prog_compiler_pic_works_F77=yes 12524 fi 12525 fi 12526 $rm conftest* 12527 12528fi 12529echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 12530echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 12531 12532if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 12533 case $lt_prog_compiler_pic_F77 in 12534 "" | " "*) ;; 12535 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12536 esac 12537else 12538 lt_prog_compiler_pic_F77= 12539 lt_prog_compiler_can_build_shared_F77=no 12540fi 12541 12542fi 12543case $host_os in 12544 # For platforms which do not support PIC, -DPIC is meaningless: 12545 *djgpp*) 12546 lt_prog_compiler_pic_F77= 12547 ;; 12548 *) 12549 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12550 ;; 12551esac 12552 12553# 12554# Check to make sure the static flag actually works. 12555# 12556wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 12557echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12558echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 12559if test "${lt_prog_compiler_static_works_F77+set}" = set; then 12560 echo $ECHO_N "(cached) $ECHO_C" >&6 12561else 12562 lt_prog_compiler_static_works_F77=no 12563 save_LDFLAGS="$LDFLAGS" 12564 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12565 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12566 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12567 # The linker can only warn and ignore the option if not recognized 12568 # So say no if there are warnings 12569 if test -s conftest.err; then 12570 # Append any errors to the config.log. 12571 cat conftest.err 1>&5 12572 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12574 if diff conftest.exp conftest.er2 >/dev/null; then 12575 lt_prog_compiler_static_works_F77=yes 12576 fi 12577 else 12578 lt_prog_compiler_static_works_F77=yes 12579 fi 12580 fi 12581 $rm conftest* 12582 LDFLAGS="$save_LDFLAGS" 12583 12584fi 12585echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 12586echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 12587 12588if test x"$lt_prog_compiler_static_works_F77" = xyes; then 12589 : 12590else 12591 lt_prog_compiler_static_F77= 12592fi 12593 12594 12595echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12596echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12597if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 12598 echo $ECHO_N "(cached) $ECHO_C" >&6 12599else 12600 lt_cv_prog_compiler_c_o_F77=no 12601 $rm -r conftest 2>/dev/null 12602 mkdir conftest 12603 cd conftest 12604 mkdir out 12605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12606 12607 lt_compiler_flag="-o out/conftest2.$ac_objext" 12608 # Insert the option either (1) after the last *FLAGS variable, or 12609 # (2) before a word containing "conftest.", or (3) at the end. 12610 # Note that $ac_compile itself does not contain backslashes and begins 12611 # with a dollar sign (not a hyphen), so the echo should work correctly. 12612 lt_compile=`echo "$ac_compile" | $SED \ 12613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12615 -e 's:$: $lt_compiler_flag:'` 12616 (eval echo "\"\$as_me:12616: $lt_compile\"" >&5) 12617 (eval "$lt_compile" 2>out/conftest.err) 12618 ac_status=$? 12619 cat out/conftest.err >&5 12620 echo "$as_me:12620: \$? = $ac_status" >&5 12621 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12622 then 12623 # The compiler can only warn and ignore the option if not recognized 12624 # So say no if there are warnings 12625 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12628 lt_cv_prog_compiler_c_o_F77=yes 12629 fi 12630 fi 12631 chmod u+w . 2>&5 12632 $rm conftest* 12633 # SGI C++ compiler will create directory out/ii_files/ for 12634 # template instantiation 12635 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12636 $rm out/* && rmdir out 12637 cd .. 12638 rmdir conftest 12639 $rm conftest* 12640 12641fi 12642echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 12643echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 12644 12645 12646hard_links="nottested" 12647if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 12648 # do not overwrite the value of need_locks provided by the user 12649 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12650echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12651 hard_links=yes 12652 $rm conftest* 12653 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12654 touch conftest.a 12655 ln conftest.a conftest.b 2>&5 || hard_links=no 12656 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12657 echo "$as_me:$LINENO: result: $hard_links" >&5 12658echo "${ECHO_T}$hard_links" >&6 12659 if test "$hard_links" = no; then 12660 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12661echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12662 need_locks=warn 12663 fi 12664else 12665 need_locks=no 12666fi 12667 12668echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12669echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12670 12671 runpath_var= 12672 allow_undefined_flag_F77= 12673 enable_shared_with_static_runtimes_F77=no 12674 archive_cmds_F77= 12675 archive_expsym_cmds_F77= 12676 old_archive_From_new_cmds_F77= 12677 old_archive_from_expsyms_cmds_F77= 12678 export_dynamic_flag_spec_F77= 12679 whole_archive_flag_spec_F77= 12680 thread_safe_flag_spec_F77= 12681 hardcode_libdir_flag_spec_F77= 12682 hardcode_libdir_flag_spec_ld_F77= 12683 hardcode_libdir_separator_F77= 12684 hardcode_direct_F77=no 12685 hardcode_minus_L_F77=no 12686 hardcode_shlibpath_var_F77=unsupported 12687 link_all_deplibs_F77=unknown 12688 hardcode_automatic_F77=no 12689 module_cmds_F77= 12690 module_expsym_cmds_F77= 12691 always_export_symbols_F77=no 12692 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12693 # include_expsyms should be a list of space-separated symbols to be *always* 12694 # included in the symbol list 12695 include_expsyms_F77= 12696 # exclude_expsyms can be an extended regexp of symbols to exclude 12697 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12698 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12699 # as well as any symbol that contains `d'. 12700 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 12701 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12702 # platforms (ab)use it in PIC code, but their linkers get confused if 12703 # the symbol is explicitly referenced. Since portable code cannot 12704 # rely on this symbol name, it's probably fine to never include it in 12705 # preloaded symbol tables. 12706 extract_expsyms_cmds= 12707 # Just being paranoid about ensuring that cc_basename is set. 12708 for cc_temp in $compiler""; do 12709 case $cc_temp in 12710 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12711 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12712 \-*) ;; 12713 *) break;; 12714 esac 12715done 12716cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12717 12718 case $host_os in 12719 cygwin* | mingw* | pw32*) 12720 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12721 # When not using gcc, we currently assume that we are using 12722 # Microsoft Visual C++. 12723 if test "$GCC" != yes; then 12724 with_gnu_ld=no 12725 fi 12726 ;; 12727 interix*) 12728 # we just hope/assume this is gcc and not c89 (= MSVC++) 12729 with_gnu_ld=yes 12730 ;; 12731 openbsd*) 12732 with_gnu_ld=no 12733 ;; 12734 esac 12735 12736 ld_shlibs_F77=yes 12737 if test "$with_gnu_ld" = yes; then 12738 # If archive_cmds runs LD, not CC, wlarc should be empty 12739 wlarc='${wl}' 12740 12741 # Set some defaults for GNU ld with shared library support. These 12742 # are reset later if shared libraries are not supported. Putting them 12743 # here allows them to be overridden if necessary. 12744 runpath_var=LD_RUN_PATH 12745 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 12746 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 12747 # ancient GNU ld didn't support --whole-archive et. al. 12748 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 12749 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12750 else 12751 whole_archive_flag_spec_F77= 12752 fi 12753 supports_anon_versioning=no 12754 case `$LD -v 2>/dev/null` in 12755 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12756 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12757 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12758 *\ 2.11.*) ;; # other 2.11 versions 12759 *) supports_anon_versioning=yes ;; 12760 esac 12761 12762 # See if GNU ld supports shared libraries. 12763 case $host_os in 12764 aix3* | aix4* | aix5*) 12765 # On AIX/PPC, the GNU linker is very broken 12766 if test "$host_cpu" != ia64; then 12767 ld_shlibs_F77=no 12768 cat <<EOF 1>&2 12769 12770*** Warning: the GNU linker, at least up to release 2.9.1, is reported 12771*** to be unable to reliably create shared libraries on AIX. 12772*** Therefore, libtool is disabling shared libraries support. If you 12773*** really care for shared libraries, you may want to modify your PATH 12774*** so that a non-GNU linker is found, and then restart. 12775 12776EOF 12777 fi 12778 ;; 12779 12780 amigaos*) 12781 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)' 12782 hardcode_libdir_flag_spec_F77='-L$libdir' 12783 hardcode_minus_L_F77=yes 12784 12785 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 12786 # that the semantics of dynamic libraries on AmigaOS, at least up 12787 # to version 4, is to share data among multiple programs linked 12788 # with the same dynamic library. Since this doesn't match the 12789 # behavior of shared libraries on other platforms, we can't use 12790 # them. 12791 ld_shlibs_F77=no 12792 ;; 12793 12794 beos*) 12795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12796 allow_undefined_flag_F77=unsupported 12797 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12798 # support --undefined. This deserves some investigation. FIXME 12799 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12800 else 12801 ld_shlibs_F77=no 12802 fi 12803 ;; 12804 12805 cygwin* | mingw* | pw32*) 12806 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 12807 # as there is no search path for DLLs. 12808 hardcode_libdir_flag_spec_F77='-L$libdir' 12809 allow_undefined_flag_F77=unsupported 12810 always_export_symbols_F77=no 12811 enable_shared_with_static_runtimes_F77=yes 12812 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12813 12814 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12815 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12816 # If the export-symbols file already is a .def file (1st line 12817 # is EXPORTS), use it as is; otherwise, prepend... 12818 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12819 cp $export_symbols $output_objdir/$soname.def; 12820 else 12821 echo EXPORTS > $output_objdir/$soname.def; 12822 cat $export_symbols >> $output_objdir/$soname.def; 12823 fi~ 12824 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12825 else 12826 ld_shlibs_F77=no 12827 fi 12828 ;; 12829 12830 interix3*) 12831 hardcode_direct_F77=no 12832 hardcode_shlibpath_var_F77=no 12833 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 12834 export_dynamic_flag_spec_F77='${wl}-E' 12835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12836 # Instead, shared libraries are loaded at an image base (0x10000000 by 12837 # default) and relocated if they conflict, which is a slow very memory 12838 # consuming and fragmenting process. To avoid this, we pick a random, 12839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12840 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12841 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12842 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12843 ;; 12844 12845 linux*) 12846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12847 tmp_addflag= 12848 case $cc_basename,$host_cpu in 12849 pgcc*) # Portland Group C compiler 12850 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 12851 tmp_addflag=' $pic_flag' 12852 ;; 12853 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 12854 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 12855 tmp_addflag=' $pic_flag -Mnomain' ;; 12856 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12857 tmp_addflag=' -i_dynamic' ;; 12858 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12859 tmp_addflag=' -i_dynamic -nofor_main' ;; 12860 ifc* | ifort*) # Intel Fortran compiler 12861 tmp_addflag=' -nofor_main' ;; 12862 esac 12863 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12864 12865 if test $supports_anon_versioning = yes; then 12866 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 12867 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12868 $echo "local: *; };" >> $output_objdir/$libname.ver~ 12869 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12870 fi 12871 else 12872 ld_shlibs_F77=no 12873 fi 12874 ;; 12875 12876 netbsd*) 12877 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12878 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12879 wlarc= 12880 else 12881 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12882 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12883 fi 12884 ;; 12885 12886 solaris*) 12887 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 12888 ld_shlibs_F77=no 12889 cat <<EOF 1>&2 12890 12891*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12892*** create shared libraries on Solaris systems. Therefore, libtool 12893*** is disabling shared libraries support. We urge you to upgrade GNU 12894*** binutils to release 2.9.1 or newer. Another option is to modify 12895*** your PATH or compiler configuration so that the native linker is 12896*** used, and then restart. 12897 12898EOF 12899 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12900 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12901 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12902 else 12903 ld_shlibs_F77=no 12904 fi 12905 ;; 12906 12907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12908 case `$LD -v 2>&1` in 12909 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12910 ld_shlibs_F77=no 12911 cat <<_LT_EOF 1>&2 12912 12913*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 12914*** reliably create shared libraries on SCO systems. Therefore, libtool 12915*** is disabling shared libraries support. We urge you to upgrade GNU 12916*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12917*** your PATH or compiler configuration so that the native linker is 12918*** used, and then restart. 12919 12920_LT_EOF 12921 ;; 12922 *) 12923 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12924 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 12925 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 12926 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 12927 else 12928 ld_shlibs_F77=no 12929 fi 12930 ;; 12931 esac 12932 ;; 12933 12934 sunos4*) 12935 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12936 wlarc= 12937 hardcode_direct_F77=yes 12938 hardcode_shlibpath_var_F77=no 12939 ;; 12940 12941 *) 12942 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12943 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12944 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12945 else 12946 ld_shlibs_F77=no 12947 fi 12948 ;; 12949 esac 12950 12951 if test "$ld_shlibs_F77" = no; then 12952 runpath_var= 12953 hardcode_libdir_flag_spec_F77= 12954 export_dynamic_flag_spec_F77= 12955 whole_archive_flag_spec_F77= 12956 fi 12957 else 12958 # PORTME fill in a description of your system's linker (not GNU ld) 12959 case $host_os in 12960 aix3*) 12961 allow_undefined_flag_F77=unsupported 12962 always_export_symbols_F77=yes 12963 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' 12964 # Note: this linker hardcodes the directories in LIBPATH if there 12965 # are no directories specified by -L. 12966 hardcode_minus_L_F77=yes 12967 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 12968 # Neither direct hardcoding nor static linking is supported with a 12969 # broken collect2. 12970 hardcode_direct_F77=unsupported 12971 fi 12972 ;; 12973 12974 aix4* | aix5*) 12975 if test "$host_cpu" = ia64; then 12976 # On IA64, the linker does run time linking by default, so we don't 12977 # have to do anything special. 12978 aix_use_runtimelinking=no 12979 exp_sym_flag='-Bexport' 12980 no_entry_flag="" 12981 else 12982 # If we're using GNU nm, then we don't want the "-C" option. 12983 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12984 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12985 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' 12986 else 12987 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' 12988 fi 12989 aix_use_runtimelinking=no 12990 12991 # Test if we are trying to use run time linking or normal 12992 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12993 # need to do runtime linking. 12994 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12995 for ld_flag in $LDFLAGS; do 12996 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 12997 aix_use_runtimelinking=yes 12998 break 12999 fi 13000 done 13001 ;; 13002 esac 13003 13004 exp_sym_flag='-bexport' 13005 no_entry_flag='-bnoentry' 13006 fi 13007 13008 # When large executables or shared objects are built, AIX ld can 13009 # have problems creating the table of contents. If linking a library 13010 # or program results in "error TOC overflow" add -mminimal-toc to 13011 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13012 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13013 13014 archive_cmds_F77='' 13015 hardcode_direct_F77=yes 13016 hardcode_libdir_separator_F77=':' 13017 link_all_deplibs_F77=yes 13018 13019 if test "$GCC" = yes; then 13020 case $host_os in aix4.[012]|aix4.[012].*) 13021 # We only want to do this on AIX 4.2 and lower, the check 13022 # below for broken collect2 doesn't work under 4.3+ 13023 collect2name=`${CC} -print-prog-name=collect2` 13024 if test -f "$collect2name" && \ 13025 strings "$collect2name" | grep resolve_lib_name >/dev/null 13026 then 13027 # We have reworked collect2 13028 hardcode_direct_F77=yes 13029 else 13030 # We have old collect2 13031 hardcode_direct_F77=unsupported 13032 # It fails to find uninstalled libraries when the uninstalled 13033 # path is not listed in the libpath. Setting hardcode_minus_L 13034 # to unsupported forces relinking 13035 hardcode_minus_L_F77=yes 13036 hardcode_libdir_flag_spec_F77='-L$libdir' 13037 hardcode_libdir_separator_F77= 13038 fi 13039 ;; 13040 esac 13041 shared_flag='-shared' 13042 if test "$aix_use_runtimelinking" = yes; then 13043 shared_flag="$shared_flag "'${wl}-G' 13044 fi 13045 else 13046 # not using gcc 13047 if test "$host_cpu" = ia64; then 13048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13049 # chokes on -Wl,-G. The following line is correct: 13050 shared_flag='-G' 13051 else 13052 if test "$aix_use_runtimelinking" = yes; then 13053 shared_flag='${wl}-G' 13054 else 13055 shared_flag='${wl}-bM:SRE' 13056 fi 13057 fi 13058 fi 13059 13060 # It seems that -bexpall does not export symbols beginning with 13061 # underscore (_), so it is better to generate a list of symbols to export. 13062 always_export_symbols_F77=yes 13063 if test "$aix_use_runtimelinking" = yes; then 13064 # Warning - without using the other runtime loading flags (-brtl), 13065 # -berok will link without error, but may produce a broken library. 13066 allow_undefined_flag_F77='-berok' 13067 # Determine the default libpath from the value encoded in an empty executable. 13068 cat >conftest.$ac_ext <<_ACEOF 13069 program main 13070 13071 end 13072_ACEOF 13073rm -f conftest.$ac_objext conftest$ac_exeext 13074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13075 (eval $ac_link) 2>conftest.er1 13076 ac_status=$? 13077 grep -v '^ *+' conftest.er1 >conftest.err 13078 rm -f conftest.er1 13079 cat conftest.err >&5 13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 (exit $ac_status); } && 13082 { ac_try='test -z "$ac_f77_werror_flag" 13083 || test ! -s conftest.err' 13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13085 (eval $ac_try) 2>&5 13086 ac_status=$? 13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13088 (exit $ac_status); }; } && 13089 { ac_try='test -s conftest$ac_exeext' 13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13091 (eval $ac_try) 2>&5 13092 ac_status=$? 13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13094 (exit $ac_status); }; }; then 13095 13096aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13097}'` 13098# Check for a 64-bit object if we didn't find anything. 13099if 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; } 13100}'`; fi 13101else 13102 echo "$as_me: failed program was:" >&5 13103sed 's/^/| /' conftest.$ac_ext >&5 13104 13105fi 13106rm -f conftest.err conftest.$ac_objext \ 13107 conftest$ac_exeext conftest.$ac_ext 13108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13109 13110 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13111 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13112 else 13113 if test "$host_cpu" = ia64; then 13114 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13115 allow_undefined_flag_F77="-z nodefs" 13116 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13117 else 13118 # Determine the default libpath from the value encoded in an empty executable. 13119 cat >conftest.$ac_ext <<_ACEOF 13120 program main 13121 13122 end 13123_ACEOF 13124rm -f conftest.$ac_objext conftest$ac_exeext 13125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13126 (eval $ac_link) 2>conftest.er1 13127 ac_status=$? 13128 grep -v '^ *+' conftest.er1 >conftest.err 13129 rm -f conftest.er1 13130 cat conftest.err >&5 13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13132 (exit $ac_status); } && 13133 { ac_try='test -z "$ac_f77_werror_flag" 13134 || test ! -s conftest.err' 13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13136 (eval $ac_try) 2>&5 13137 ac_status=$? 13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13139 (exit $ac_status); }; } && 13140 { ac_try='test -s conftest$ac_exeext' 13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13142 (eval $ac_try) 2>&5 13143 ac_status=$? 13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13145 (exit $ac_status); }; }; then 13146 13147aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13148}'` 13149# Check for a 64-bit object if we didn't find anything. 13150if 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; } 13151}'`; fi 13152else 13153 echo "$as_me: failed program was:" >&5 13154sed 's/^/| /' conftest.$ac_ext >&5 13155 13156fi 13157rm -f conftest.err conftest.$ac_objext \ 13158 conftest$ac_exeext conftest.$ac_ext 13159if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13160 13161 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13162 # Warning - without using the other run time loading flags, 13163 # -berok will link without error, but may produce a broken library. 13164 no_undefined_flag_F77=' ${wl}-bernotok' 13165 allow_undefined_flag_F77=' ${wl}-berok' 13166 # Exported symbols can be pulled into shared objects from archives 13167 whole_archive_flag_spec_F77='$convenience' 13168 archive_cmds_need_lc_F77=yes 13169 # This is similar to how AIX traditionally builds its shared libraries. 13170 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13171 fi 13172 fi 13173 ;; 13174 13175 amigaos*) 13176 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)' 13177 hardcode_libdir_flag_spec_F77='-L$libdir' 13178 hardcode_minus_L_F77=yes 13179 # see comment about different semantics on the GNU ld section 13180 ld_shlibs_F77=no 13181 ;; 13182 13183 bsdi[45]*) 13184 export_dynamic_flag_spec_F77=-rdynamic 13185 ;; 13186 13187 cygwin* | mingw* | pw32*) 13188 # When not using gcc, we currently assume that we are using 13189 # Microsoft Visual C++. 13190 # hardcode_libdir_flag_spec is actually meaningless, as there is 13191 # no search path for DLLs. 13192 hardcode_libdir_flag_spec_F77=' ' 13193 allow_undefined_flag_F77=unsupported 13194 # Tell ltmain to make .lib files, not .a files. 13195 libext=lib 13196 # Tell ltmain to make .dll files, not .so files. 13197 shrext_cmds=".dll" 13198 # FIXME: Setting linknames here is a bad hack. 13199 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13200 # The linker will automatically build a .lib file if we build a DLL. 13201 old_archive_From_new_cmds_F77='true' 13202 # FIXME: Should let the user specify the lib program. 13203 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13204 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13205 enable_shared_with_static_runtimes_F77=yes 13206 ;; 13207 13208 darwin* | rhapsody*) 13209 case $host_os in 13210 rhapsody* | darwin1.[012]) 13211 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13212 ;; 13213 *) # Darwin 1.3 on 13214 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13215 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13216 else 13217 case ${MACOSX_DEPLOYMENT_TARGET} in 13218 10.[012]) 13219 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13220 ;; 13221 10.*) 13222 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13223 ;; 13224 esac 13225 fi 13226 ;; 13227 esac 13228 archive_cmds_need_lc_F77=no 13229 hardcode_direct_F77=no 13230 hardcode_automatic_F77=yes 13231 hardcode_shlibpath_var_F77=unsupported 13232 whole_archive_flag_spec_F77='' 13233 link_all_deplibs_F77=yes 13234 if test "$GCC" = yes ; then 13235 output_verbose_link_cmd='echo' 13236 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13237 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13238 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13239 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}' 13240 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}' 13241 else 13242 case $cc_basename in 13243 xlc*) 13244 output_verbose_link_cmd='echo' 13245 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 13246 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13247 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13248 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}' 13249 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}' 13250 ;; 13251 *) 13252 ld_shlibs_F77=no 13253 ;; 13254 esac 13255 fi 13256 ;; 13257 13258 dgux*) 13259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13260 hardcode_libdir_flag_spec_F77='-L$libdir' 13261 hardcode_shlibpath_var_F77=no 13262 ;; 13263 13264 freebsd1*) 13265 ld_shlibs_F77=no 13266 ;; 13267 13268 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13269 # support. Future versions do this automatically, but an explicit c++rt0.o 13270 # does not break anything, and helps significantly (at the cost of a little 13271 # extra space). 13272 freebsd2.2*) 13273 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13274 hardcode_libdir_flag_spec_F77='-R$libdir' 13275 hardcode_direct_F77=yes 13276 hardcode_shlibpath_var_F77=no 13277 ;; 13278 13279 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13280 freebsd2*) 13281 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13282 hardcode_direct_F77=yes 13283 hardcode_minus_L_F77=yes 13284 hardcode_shlibpath_var_F77=no 13285 ;; 13286 13287 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13288 freebsd* | kfreebsd*-gnu | dragonfly*) 13289 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13290 hardcode_libdir_flag_spec_F77='-R$libdir' 13291 hardcode_direct_F77=yes 13292 hardcode_shlibpath_var_F77=no 13293 ;; 13294 13295 hpux9*) 13296 if test "$GCC" = yes; then 13297 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' 13298 else 13299 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' 13300 fi 13301 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13302 hardcode_libdir_separator_F77=: 13303 hardcode_direct_F77=yes 13304 13305 # hardcode_minus_L: Not really in the search PATH, 13306 # but as the default location of the library. 13307 hardcode_minus_L_F77=yes 13308 export_dynamic_flag_spec_F77='${wl}-E' 13309 ;; 13310 13311 hpux10*) 13312 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13313 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13314 else 13315 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13316 fi 13317 if test "$with_gnu_ld" = no; then 13318 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13319 hardcode_libdir_separator_F77=: 13320 13321 hardcode_direct_F77=yes 13322 export_dynamic_flag_spec_F77='${wl}-E' 13323 13324 # hardcode_minus_L: Not really in the search PATH, 13325 # but as the default location of the library. 13326 hardcode_minus_L_F77=yes 13327 fi 13328 ;; 13329 13330 hpux11*) 13331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13332 case $host_cpu in 13333 hppa*64*) 13334 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13335 ;; 13336 ia64*) 13337 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13338 ;; 13339 *) 13340 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13341 ;; 13342 esac 13343 else 13344 case $host_cpu in 13345 hppa*64*) 13346 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13347 ;; 13348 ia64*) 13349 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13350 ;; 13351 *) 13352 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13353 ;; 13354 esac 13355 fi 13356 if test "$with_gnu_ld" = no; then 13357 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13358 hardcode_libdir_separator_F77=: 13359 13360 case $host_cpu in 13361 hppa*64*|ia64*) 13362 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13363 hardcode_direct_F77=no 13364 hardcode_shlibpath_var_F77=no 13365 ;; 13366 *) 13367 hardcode_direct_F77=yes 13368 export_dynamic_flag_spec_F77='${wl}-E' 13369 13370 # hardcode_minus_L: Not really in the search PATH, 13371 # but as the default location of the library. 13372 hardcode_minus_L_F77=yes 13373 ;; 13374 esac 13375 fi 13376 ;; 13377 13378 irix5* | irix6* | nonstopux*) 13379 if test "$GCC" = yes; then 13380 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' 13381 else 13382 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' 13383 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13384 fi 13385 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13386 hardcode_libdir_separator_F77=: 13387 link_all_deplibs_F77=yes 13388 ;; 13389 13390 netbsd*) 13391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13392 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13393 else 13394 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13395 fi 13396 hardcode_libdir_flag_spec_F77='-R$libdir' 13397 hardcode_direct_F77=yes 13398 hardcode_shlibpath_var_F77=no 13399 ;; 13400 13401 newsos6) 13402 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13403 hardcode_direct_F77=yes 13404 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13405 hardcode_libdir_separator_F77=: 13406 hardcode_shlibpath_var_F77=no 13407 ;; 13408 13409 openbsd*) 13410 hardcode_direct_F77=yes 13411 hardcode_shlibpath_var_F77=no 13412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13413 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13414 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13415 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13416 export_dynamic_flag_spec_F77='${wl}-E' 13417 else 13418 case $host_os in 13419 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13420 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13421 hardcode_libdir_flag_spec_F77='-R$libdir' 13422 ;; 13423 *) 13424 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13425 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13426 ;; 13427 esac 13428 fi 13429 ;; 13430 13431 os2*) 13432 hardcode_libdir_flag_spec_F77='-L$libdir' 13433 hardcode_minus_L_F77=yes 13434 allow_undefined_flag_F77=unsupported 13435 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' 13436 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13437 ;; 13438 13439 osf3*) 13440 if test "$GCC" = yes; then 13441 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13442 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' 13443 else 13444 allow_undefined_flag_F77=' -expect_unresolved \*' 13445 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' 13446 fi 13447 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13448 hardcode_libdir_separator_F77=: 13449 ;; 13450 13451 osf4* | osf5*) # as osf3* with the addition of -msym flag 13452 if test "$GCC" = yes; then 13453 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13454 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' 13455 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13456 else 13457 allow_undefined_flag_F77=' -expect_unresolved \*' 13458 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' 13459 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~ 13460 $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' 13461 13462 # Both c and cxx compiler support -rpath directly 13463 hardcode_libdir_flag_spec_F77='-rpath $libdir' 13464 fi 13465 hardcode_libdir_separator_F77=: 13466 ;; 13467 13468 solaris*) 13469 no_undefined_flag_F77=' -z text' 13470 if test "$GCC" = yes; then 13471 wlarc='${wl}' 13472 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13473 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13474 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 13475 else 13476 wlarc='' 13477 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13478 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13480 fi 13481 hardcode_libdir_flag_spec_F77='-R$libdir' 13482 hardcode_shlibpath_var_F77=no 13483 case $host_os in 13484 solaris2.[0-5] | solaris2.[0-5].*) ;; 13485 *) 13486 # The compiler driver will combine linker options so we 13487 # cannot just pass the convience library names through 13488 # without $wl, iff we do not link with $LD. 13489 # Luckily, gcc supports the same syntax we need for Sun Studio. 13490 # Supported since Solaris 2.6 (maybe 2.5.1?) 13491 case $wlarc in 13492 '') 13493 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 13494 *) 13495 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' ;; 13496 esac ;; 13497 esac 13498 link_all_deplibs_F77=yes 13499 ;; 13500 13501 sunos4*) 13502 if test "x$host_vendor" = xsequent; then 13503 # Use $CC to link under sequent, because it throws in some extra .o 13504 # files that make .init and .fini sections work. 13505 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13506 else 13507 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13508 fi 13509 hardcode_libdir_flag_spec_F77='-L$libdir' 13510 hardcode_direct_F77=yes 13511 hardcode_minus_L_F77=yes 13512 hardcode_shlibpath_var_F77=no 13513 ;; 13514 13515 sysv4) 13516 case $host_vendor in 13517 sni) 13518 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13519 hardcode_direct_F77=yes # is this really true??? 13520 ;; 13521 siemens) 13522 ## LD is ld it makes a PLAMLIB 13523 ## CC just makes a GrossModule. 13524 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13525 reload_cmds_F77='$CC -r -o $output$reload_objs' 13526 hardcode_direct_F77=no 13527 ;; 13528 motorola) 13529 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13530 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 13531 ;; 13532 esac 13533 runpath_var='LD_RUN_PATH' 13534 hardcode_shlibpath_var_F77=no 13535 ;; 13536 13537 sysv4.3*) 13538 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13539 hardcode_shlibpath_var_F77=no 13540 export_dynamic_flag_spec_F77='-Bexport' 13541 ;; 13542 13543 sysv4*MP*) 13544 if test -d /usr/nec; then 13545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13546 hardcode_shlibpath_var_F77=no 13547 runpath_var=LD_RUN_PATH 13548 hardcode_runpath_var=yes 13549 ld_shlibs_F77=yes 13550 fi 13551 ;; 13552 13553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 13554 no_undefined_flag_F77='${wl}-z,text' 13555 archive_cmds_need_lc_F77=no 13556 hardcode_shlibpath_var_F77=no 13557 runpath_var='LD_RUN_PATH' 13558 13559 if test "$GCC" = yes; then 13560 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13561 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13562 else 13563 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13564 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13565 fi 13566 ;; 13567 13568 sysv5* | sco3.2v5* | sco5v6*) 13569 # Note: We can NOT use -z defs as we might desire, because we do not 13570 # link with -lc, and that would cause any symbols used from libc to 13571 # always be unresolved, which means just about no library would 13572 # ever link correctly. If we're not using GNU ld we use -z text 13573 # though, which does catch some bad symbols but isn't as heavy-handed 13574 # as -z defs. 13575 no_undefined_flag_F77='${wl}-z,text' 13576 allow_undefined_flag_F77='${wl}-z,nodefs' 13577 archive_cmds_need_lc_F77=no 13578 hardcode_shlibpath_var_F77=no 13579 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13580 hardcode_libdir_separator_F77=':' 13581 link_all_deplibs_F77=yes 13582 export_dynamic_flag_spec_F77='${wl}-Bexport' 13583 runpath_var='LD_RUN_PATH' 13584 13585 if test "$GCC" = yes; then 13586 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13587 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13588 else 13589 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13590 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13591 fi 13592 ;; 13593 13594 uts4*) 13595 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13596 hardcode_libdir_flag_spec_F77='-L$libdir' 13597 hardcode_shlibpath_var_F77=no 13598 ;; 13599 13600 *) 13601 ld_shlibs_F77=no 13602 ;; 13603 esac 13604 fi 13605 13606echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 13607echo "${ECHO_T}$ld_shlibs_F77" >&6 13608test "$ld_shlibs_F77" = no && can_build_shared=no 13609 13610# 13611# Do we need to explicitly link libc? 13612# 13613case "x$archive_cmds_need_lc_F77" in 13614x|xyes) 13615 # Assume -lc should be added 13616 archive_cmds_need_lc_F77=yes 13617 13618 if test "$enable_shared" = yes && test "$GCC" = yes; then 13619 case $archive_cmds_F77 in 13620 *'~'*) 13621 # FIXME: we may have to deal with multi-command sequences. 13622 ;; 13623 '$CC '*) 13624 # Test whether the compiler implicitly links with -lc since on some 13625 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13626 # to ld, don't add -lc before -lgcc. 13627 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13628echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13629 $rm conftest* 13630 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13631 13632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13633 (eval $ac_compile) 2>&5 13634 ac_status=$? 13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13636 (exit $ac_status); } 2>conftest.err; then 13637 soname=conftest 13638 lib=conftest 13639 libobjs=conftest.$ac_objext 13640 deplibs= 13641 wl=$lt_prog_compiler_wl_F77 13642 pic_flag=$lt_prog_compiler_pic_F77 13643 compiler_flags=-v 13644 linker_flags=-v 13645 verstring= 13646 output_objdir=. 13647 libname=conftest 13648 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 13649 allow_undefined_flag_F77= 13650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13651 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13652 ac_status=$? 13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13654 (exit $ac_status); } 13655 then 13656 archive_cmds_need_lc_F77=no 13657 else 13658 archive_cmds_need_lc_F77=yes 13659 fi 13660 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 13661 else 13662 cat conftest.err 1>&5 13663 fi 13664 $rm conftest* 13665 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 13666echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 13667 ;; 13668 esac 13669 fi 13670 ;; 13671esac 13672 13673echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13674echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13675library_names_spec= 13676libname_spec='lib$name' 13677soname_spec= 13678shrext_cmds=".so" 13679postinstall_cmds= 13680postuninstall_cmds= 13681finish_cmds= 13682finish_eval= 13683shlibpath_var= 13684shlibpath_overrides_runpath=unknown 13685version_type=none 13686dynamic_linker="$host_os ld.so" 13687sys_lib_dlsearch_path_spec="/lib /usr/lib" 13688if test "$GCC" = yes; then 13689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13690 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13691 # if the path contains ";" then we assume it to be the separator 13692 # otherwise default to the standard path separator (i.e. ":") - it is 13693 # assumed that no part of a normal pathname contains ";" but that should 13694 # okay in the real world where ";" in dirpaths is itself problematic. 13695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13696 else 13697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13698 fi 13699else 13700 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13701fi 13702need_lib_prefix=unknown 13703hardcode_into_libs=no 13704 13705# when you set need_version to no, make sure it does not cause -set_version 13706# flags to be left without arguments 13707need_version=unknown 13708 13709case $host_os in 13710aix3*) 13711 version_type=linux 13712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13713 shlibpath_var=LIBPATH 13714 13715 # AIX 3 has no versioning support, so we append a major version to the name. 13716 soname_spec='${libname}${release}${shared_ext}$major' 13717 ;; 13718 13719aix4* | aix5*) 13720 version_type=linux 13721 need_lib_prefix=no 13722 need_version=no 13723 hardcode_into_libs=yes 13724 if test "$host_cpu" = ia64; then 13725 # AIX 5 supports IA64 13726 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13727 shlibpath_var=LD_LIBRARY_PATH 13728 else 13729 # With GCC up to 2.95.x, collect2 would create an import file 13730 # for dependence libraries. The import file would start with 13731 # the line `#! .'. This would cause the generated library to 13732 # depend on `.', always an invalid library. This was fixed in 13733 # development snapshots of GCC prior to 3.0. 13734 case $host_os in 13735 aix4 | aix4.[01] | aix4.[01].*) 13736 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13737 echo ' yes ' 13738 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13739 : 13740 else 13741 can_build_shared=no 13742 fi 13743 ;; 13744 esac 13745 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13746 # soname into executable. Probably we can add versioning support to 13747 # collect2, so additional links can be useful in future. 13748 if test "$aix_use_runtimelinking" = yes; then 13749 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13750 # instead of lib<name>.a to let people know that these are not 13751 # typical AIX shared libraries. 13752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13753 else 13754 # We preserve .a as extension for shared libraries through AIX4.2 13755 # and later when we are not doing run time linking. 13756 library_names_spec='${libname}${release}.a $libname.a' 13757 soname_spec='${libname}${release}${shared_ext}$major' 13758 fi 13759 shlibpath_var=LIBPATH 13760 fi 13761 ;; 13762 13763amigaos*) 13764 library_names_spec='$libname.ixlibrary $libname.a' 13765 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13766 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' 13767 ;; 13768 13769beos*) 13770 library_names_spec='${libname}${shared_ext}' 13771 dynamic_linker="$host_os ld.so" 13772 shlibpath_var=LIBRARY_PATH 13773 ;; 13774 13775bsdi[45]*) 13776 version_type=linux 13777 need_version=no 13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13779 soname_spec='${libname}${release}${shared_ext}$major' 13780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13781 shlibpath_var=LD_LIBRARY_PATH 13782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13784 # the default ld.so.conf also contains /usr/contrib/lib and 13785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13786 # libtool to hard-code these into programs 13787 ;; 13788 13789cygwin* | mingw* | pw32*) 13790 version_type=windows 13791 shrext_cmds=".dll" 13792 need_version=no 13793 need_lib_prefix=no 13794 13795 case $GCC,$host_os in 13796 yes,cygwin* | yes,mingw* | yes,pw32*) 13797 library_names_spec='$libname.dll.a' 13798 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13799 postinstall_cmds='base_file=`basename \${file}`~ 13800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13801 dldir=$destdir/`dirname \$dlpath`~ 13802 test -d \$dldir || mkdir -p \$dldir~ 13803 $install_prog $dir/$dlname \$dldir/$dlname~ 13804 chmod a+x \$dldir/$dlname' 13805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13806 dlpath=$dir/\$dldll~ 13807 $rm \$dlpath' 13808 shlibpath_overrides_runpath=yes 13809 13810 case $host_os in 13811 cygwin*) 13812 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13813 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13814 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13815 ;; 13816 mingw*) 13817 # MinGW DLLs use traditional 'lib' prefix 13818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13819 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13820 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13821 # It is most probably a Windows format PATH printed by 13822 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13823 # path with ; separators, and with drive letters. We can handle the 13824 # drive letters (cygwin fileutils understands them), so leave them, 13825 # especially as we might pass files found there to a mingw objdump, 13826 # which wouldn't understand a cygwinified path. Ahh. 13827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13828 else 13829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13830 fi 13831 ;; 13832 pw32*) 13833 # pw32 DLLs use 'pw' prefix rather than 'lib' 13834 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13835 ;; 13836 esac 13837 ;; 13838 13839 *) 13840 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13841 ;; 13842 esac 13843 dynamic_linker='Win32 ld.exe' 13844 # FIXME: first we should search . and the directory the executable is in 13845 shlibpath_var=PATH 13846 ;; 13847 13848darwin* | rhapsody*) 13849 dynamic_linker="$host_os dyld" 13850 version_type=darwin 13851 need_lib_prefix=no 13852 need_version=no 13853 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13854 soname_spec='${libname}${release}${major}$shared_ext' 13855 shlibpath_overrides_runpath=yes 13856 shlibpath_var=DYLD_LIBRARY_PATH 13857 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13858 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13859 if test "$GCC" = yes; then 13860 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"` 13861 else 13862 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13863 fi 13864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13865 ;; 13866 13867dgux*) 13868 version_type=linux 13869 need_lib_prefix=no 13870 need_version=no 13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13872 soname_spec='${libname}${release}${shared_ext}$major' 13873 shlibpath_var=LD_LIBRARY_PATH 13874 ;; 13875 13876freebsd1*) 13877 dynamic_linker=no 13878 ;; 13879 13880kfreebsd*-gnu) 13881 version_type=linux 13882 need_lib_prefix=no 13883 need_version=no 13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13885 soname_spec='${libname}${release}${shared_ext}$major' 13886 shlibpath_var=LD_LIBRARY_PATH 13887 shlibpath_overrides_runpath=no 13888 hardcode_into_libs=yes 13889 dynamic_linker='GNU ld.so' 13890 ;; 13891 13892freebsd* | dragonfly*) 13893 # DragonFly does not have aout. When/if they implement a new 13894 # versioning mechanism, adjust this. 13895 if test -x /usr/bin/objformat; then 13896 objformat=`/usr/bin/objformat` 13897 else 13898 case $host_os in 13899 freebsd[123]*) objformat=aout ;; 13900 *) objformat=elf ;; 13901 esac 13902 fi 13903 version_type=freebsd-$objformat 13904 case $version_type in 13905 freebsd-elf*) 13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13907 need_version=no 13908 need_lib_prefix=no 13909 ;; 13910 freebsd-*) 13911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13912 need_version=yes 13913 ;; 13914 esac 13915 shlibpath_var=LD_LIBRARY_PATH 13916 case $host_os in 13917 freebsd2*) 13918 shlibpath_overrides_runpath=yes 13919 ;; 13920 freebsd3.[01]* | freebsdelf3.[01]*) 13921 shlibpath_overrides_runpath=yes 13922 hardcode_into_libs=yes 13923 ;; 13924 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13925 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13926 shlibpath_overrides_runpath=no 13927 hardcode_into_libs=yes 13928 ;; 13929 freebsd*) # from 4.6 on 13930 shlibpath_overrides_runpath=yes 13931 hardcode_into_libs=yes 13932 ;; 13933 esac 13934 ;; 13935 13936gnu*) 13937 version_type=linux 13938 need_lib_prefix=no 13939 need_version=no 13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13941 soname_spec='${libname}${release}${shared_ext}$major' 13942 shlibpath_var=LD_LIBRARY_PATH 13943 hardcode_into_libs=yes 13944 ;; 13945 13946hpux9* | hpux10* | hpux11*) 13947 # Give a soname corresponding to the major version so that dld.sl refuses to 13948 # link against other versions. 13949 version_type=sunos 13950 need_lib_prefix=no 13951 need_version=no 13952 case $host_cpu in 13953 ia64*) 13954 shrext_cmds='.so' 13955 hardcode_into_libs=yes 13956 dynamic_linker="$host_os dld.so" 13957 shlibpath_var=LD_LIBRARY_PATH 13958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13960 soname_spec='${libname}${release}${shared_ext}$major' 13961 if test "X$HPUX_IA64_MODE" = X32; then 13962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13963 else 13964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13965 fi 13966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13967 ;; 13968 hppa*64*) 13969 shrext_cmds='.sl' 13970 hardcode_into_libs=yes 13971 dynamic_linker="$host_os dld.sl" 13972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13975 soname_spec='${libname}${release}${shared_ext}$major' 13976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13978 ;; 13979 *) 13980 shrext_cmds='.sl' 13981 dynamic_linker="$host_os dld.sl" 13982 shlibpath_var=SHLIB_PATH 13983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13985 soname_spec='${libname}${release}${shared_ext}$major' 13986 ;; 13987 esac 13988 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13989 postinstall_cmds='chmod 555 $lib' 13990 ;; 13991 13992interix3*) 13993 version_type=linux 13994 need_lib_prefix=no 13995 need_version=no 13996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13997 soname_spec='${libname}${release}${shared_ext}$major' 13998 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13999 shlibpath_var=LD_LIBRARY_PATH 14000 shlibpath_overrides_runpath=no 14001 hardcode_into_libs=yes 14002 ;; 14003 14004irix5* | irix6* | nonstopux*) 14005 case $host_os in 14006 nonstopux*) version_type=nonstopux ;; 14007 *) 14008 if test "$lt_cv_prog_gnu_ld" = yes; then 14009 version_type=linux 14010 else 14011 version_type=irix 14012 fi ;; 14013 esac 14014 need_lib_prefix=no 14015 need_version=no 14016 soname_spec='${libname}${release}${shared_ext}$major' 14017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14018 case $host_os in 14019 irix5* | nonstopux*) 14020 libsuff= shlibsuff= 14021 ;; 14022 *) 14023 case $LD in # libtool.m4 will add one of these switches to LD 14024 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14025 libsuff= shlibsuff= libmagic=32-bit;; 14026 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14027 libsuff=32 shlibsuff=N32 libmagic=N32;; 14028 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14029 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14030 *) libsuff= shlibsuff= libmagic=never-match;; 14031 esac 14032 ;; 14033 esac 14034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14035 shlibpath_overrides_runpath=no 14036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14038 hardcode_into_libs=yes 14039 ;; 14040 14041# No shared lib support for Linux oldld, aout, or coff. 14042linux*oldld* | linux*aout* | linux*coff*) 14043 dynamic_linker=no 14044 ;; 14045 14046# This must be Linux ELF. 14047linux*) 14048 version_type=linux 14049 need_lib_prefix=no 14050 need_version=no 14051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14052 soname_spec='${libname}${release}${shared_ext}$major' 14053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14054 shlibpath_var=LD_LIBRARY_PATH 14055 shlibpath_overrides_runpath=no 14056 # This implies no fast_install, which is unacceptable. 14057 # Some rework will be needed to allow for fast_install 14058 # before this can be enabled. 14059 hardcode_into_libs=yes 14060 14061 # find out which ABI we are using 14062 libsuff= 14063 case "$host_cpu" in 14064 x86_64*|s390x*|powerpc64*) 14065 echo '#line 14065 "configure"' > conftest.$ac_ext 14066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14067 (eval $ac_compile) 2>&5 14068 ac_status=$? 14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14070 (exit $ac_status); }; then 14071 case `/usr/bin/file conftest.$ac_objext` in 14072 *64-bit*) 14073 libsuff=64 14074 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14075 ;; 14076 esac 14077 fi 14078 rm -rf conftest* 14079 ;; 14080 esac 14081 14082 # Append ld.so.conf contents to the search path 14083 if test -f /etc/ld.so.conf; then 14084 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14085 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14086 fi 14087 14088 # We used to test for /lib/ld.so.1 and disable shared libraries on 14089 # powerpc, because MkLinux only supported shared libraries with the 14090 # GNU dynamic linker. Since this was broken with cross compilers, 14091 # most powerpc-linux boxes support dynamic linking these days and 14092 # people can always --disable-shared, the test was removed, and we 14093 # assume the GNU/Linux dynamic linker is in use. 14094 dynamic_linker='GNU/Linux ld.so' 14095 ;; 14096 14097knetbsd*-gnu) 14098 version_type=linux 14099 need_lib_prefix=no 14100 need_version=no 14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14102 soname_spec='${libname}${release}${shared_ext}$major' 14103 shlibpath_var=LD_LIBRARY_PATH 14104 shlibpath_overrides_runpath=no 14105 hardcode_into_libs=yes 14106 dynamic_linker='GNU ld.so' 14107 ;; 14108 14109netbsd*) 14110 version_type=sunos 14111 need_lib_prefix=no 14112 need_version=no 14113 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14116 dynamic_linker='NetBSD (a.out) ld.so' 14117 else 14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14119 soname_spec='${libname}${release}${shared_ext}$major' 14120 dynamic_linker='NetBSD ld.elf_so' 14121 fi 14122 shlibpath_var=LD_LIBRARY_PATH 14123 shlibpath_overrides_runpath=yes 14124 hardcode_into_libs=yes 14125 ;; 14126 14127newsos6) 14128 version_type=linux 14129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14130 shlibpath_var=LD_LIBRARY_PATH 14131 shlibpath_overrides_runpath=yes 14132 ;; 14133 14134nto-qnx*) 14135 version_type=linux 14136 need_lib_prefix=no 14137 need_version=no 14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14139 soname_spec='${libname}${release}${shared_ext}$major' 14140 shlibpath_var=LD_LIBRARY_PATH 14141 shlibpath_overrides_runpath=yes 14142 ;; 14143 14144openbsd*) 14145 version_type=sunos 14146 sys_lib_dlsearch_path_spec="/usr/lib" 14147 need_lib_prefix=no 14148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14149 case $host_os in 14150 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14151 *) need_version=no ;; 14152 esac 14153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14155 shlibpath_var=LD_LIBRARY_PATH 14156 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14157 case $host_os in 14158 openbsd2.[89] | openbsd2.[89].*) 14159 shlibpath_overrides_runpath=no 14160 ;; 14161 *) 14162 shlibpath_overrides_runpath=yes 14163 ;; 14164 esac 14165 else 14166 shlibpath_overrides_runpath=yes 14167 fi 14168 ;; 14169 14170os2*) 14171 libname_spec='$name' 14172 shrext_cmds=".dll" 14173 need_lib_prefix=no 14174 library_names_spec='$libname${shared_ext} $libname.a' 14175 dynamic_linker='OS/2 ld.exe' 14176 shlibpath_var=LIBPATH 14177 ;; 14178 14179osf3* | osf4* | osf5*) 14180 version_type=osf 14181 need_lib_prefix=no 14182 need_version=no 14183 soname_spec='${libname}${release}${shared_ext}$major' 14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14185 shlibpath_var=LD_LIBRARY_PATH 14186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14187 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14188 ;; 14189 14190solaris*) 14191 version_type=linux 14192 need_lib_prefix=no 14193 need_version=no 14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14195 soname_spec='${libname}${release}${shared_ext}$major' 14196 shlibpath_var=LD_LIBRARY_PATH 14197 shlibpath_overrides_runpath=yes 14198 hardcode_into_libs=yes 14199 # ldd complains unless libraries are executable 14200 postinstall_cmds='chmod +x $lib' 14201 ;; 14202 14203sunos4*) 14204 version_type=sunos 14205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14206 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14207 shlibpath_var=LD_LIBRARY_PATH 14208 shlibpath_overrides_runpath=yes 14209 if test "$with_gnu_ld" = yes; then 14210 need_lib_prefix=no 14211 fi 14212 need_version=yes 14213 ;; 14214 14215sysv4 | sysv4.3*) 14216 version_type=linux 14217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14218 soname_spec='${libname}${release}${shared_ext}$major' 14219 shlibpath_var=LD_LIBRARY_PATH 14220 case $host_vendor in 14221 sni) 14222 shlibpath_overrides_runpath=no 14223 need_lib_prefix=no 14224 export_dynamic_flag_spec='${wl}-Blargedynsym' 14225 runpath_var=LD_RUN_PATH 14226 ;; 14227 siemens) 14228 need_lib_prefix=no 14229 ;; 14230 motorola) 14231 need_lib_prefix=no 14232 need_version=no 14233 shlibpath_overrides_runpath=no 14234 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14235 ;; 14236 esac 14237 ;; 14238 14239sysv4*MP*) 14240 if test -d /usr/nec ;then 14241 version_type=linux 14242 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14243 soname_spec='$libname${shared_ext}.$major' 14244 shlibpath_var=LD_LIBRARY_PATH 14245 fi 14246 ;; 14247 14248sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14249 version_type=freebsd-elf 14250 need_lib_prefix=no 14251 need_version=no 14252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14253 soname_spec='${libname}${release}${shared_ext}$major' 14254 shlibpath_var=LD_LIBRARY_PATH 14255 hardcode_into_libs=yes 14256 if test "$with_gnu_ld" = yes; then 14257 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14258 shlibpath_overrides_runpath=no 14259 else 14260 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14261 shlibpath_overrides_runpath=yes 14262 case $host_os in 14263 sco3.2v5*) 14264 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14265 ;; 14266 esac 14267 fi 14268 sys_lib_dlsearch_path_spec='/usr/lib' 14269 ;; 14270 14271uts4*) 14272 version_type=linux 14273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14274 soname_spec='${libname}${release}${shared_ext}$major' 14275 shlibpath_var=LD_LIBRARY_PATH 14276 ;; 14277 14278*) 14279 dynamic_linker=no 14280 ;; 14281esac 14282echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14283echo "${ECHO_T}$dynamic_linker" >&6 14284test "$dynamic_linker" = no && can_build_shared=no 14285 14286variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14287if test "$GCC" = yes; then 14288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14289fi 14290 14291echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14292echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14293hardcode_action_F77= 14294if test -n "$hardcode_libdir_flag_spec_F77" || \ 14295 test -n "$runpath_var_F77" || \ 14296 test "X$hardcode_automatic_F77" = "Xyes" ; then 14297 14298 # We can hardcode non-existant directories. 14299 if test "$hardcode_direct_F77" != no && 14300 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14301 # have to relink, otherwise we might link with an installed library 14302 # when we should be linking with a yet-to-be-installed one 14303 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14304 test "$hardcode_minus_L_F77" != no; then 14305 # Linking always hardcodes the temporary library directory. 14306 hardcode_action_F77=relink 14307 else 14308 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14309 hardcode_action_F77=immediate 14310 fi 14311else 14312 # We cannot hardcode anything, or else we can only hardcode existing 14313 # directories. 14314 hardcode_action_F77=unsupported 14315fi 14316echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 14317echo "${ECHO_T}$hardcode_action_F77" >&6 14318 14319if test "$hardcode_action_F77" = relink; then 14320 # Fast installation is not supported 14321 enable_fast_install=no 14322elif test "$shlibpath_overrides_runpath" = yes || 14323 test "$enable_shared" = no; then 14324 # Fast installation is not necessary 14325 enable_fast_install=needless 14326fi 14327 14328 14329# The else clause should only fire when bootstrapping the 14330# libtool distribution, otherwise you forgot to ship ltmain.sh 14331# with your package, and you will get complaints that there are 14332# no rules to generate ltmain.sh. 14333if test -f "$ltmain"; then 14334 # See if we are running on zsh, and set the options which allow our commands through 14335 # without removal of \ escapes. 14336 if test -n "${ZSH_VERSION+set}" ; then 14337 setopt NO_GLOB_SUBST 14338 fi 14339 # Now quote all the things that may contain metacharacters while being 14340 # careful not to overquote the AC_SUBSTed values. We take copies of the 14341 # variables and quote the copies for generation of the libtool script. 14342 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14343 SED SHELL STRIP \ 14344 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14345 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14346 deplibs_check_method reload_flag reload_cmds need_locks \ 14347 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14348 lt_cv_sys_global_symbol_to_c_name_address \ 14349 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14350 old_postinstall_cmds old_postuninstall_cmds \ 14351 compiler_F77 \ 14352 CC_F77 \ 14353 LD_F77 \ 14354 lt_prog_compiler_wl_F77 \ 14355 lt_prog_compiler_pic_F77 \ 14356 lt_prog_compiler_static_F77 \ 14357 lt_prog_compiler_no_builtin_flag_F77 \ 14358 export_dynamic_flag_spec_F77 \ 14359 thread_safe_flag_spec_F77 \ 14360 whole_archive_flag_spec_F77 \ 14361 enable_shared_with_static_runtimes_F77 \ 14362 old_archive_cmds_F77 \ 14363 old_archive_from_new_cmds_F77 \ 14364 predep_objects_F77 \ 14365 postdep_objects_F77 \ 14366 predeps_F77 \ 14367 postdeps_F77 \ 14368 compiler_lib_search_path_F77 \ 14369 archive_cmds_F77 \ 14370 archive_expsym_cmds_F77 \ 14371 postinstall_cmds_F77 \ 14372 postuninstall_cmds_F77 \ 14373 old_archive_from_expsyms_cmds_F77 \ 14374 allow_undefined_flag_F77 \ 14375 no_undefined_flag_F77 \ 14376 export_symbols_cmds_F77 \ 14377 hardcode_libdir_flag_spec_F77 \ 14378 hardcode_libdir_flag_spec_ld_F77 \ 14379 hardcode_libdir_separator_F77 \ 14380 hardcode_automatic_F77 \ 14381 module_cmds_F77 \ 14382 module_expsym_cmds_F77 \ 14383 lt_cv_prog_compiler_c_o_F77 \ 14384 exclude_expsyms_F77 \ 14385 include_expsyms_F77; do 14386 14387 case $var in 14388 old_archive_cmds_F77 | \ 14389 old_archive_from_new_cmds_F77 | \ 14390 archive_cmds_F77 | \ 14391 archive_expsym_cmds_F77 | \ 14392 module_cmds_F77 | \ 14393 module_expsym_cmds_F77 | \ 14394 old_archive_from_expsyms_cmds_F77 | \ 14395 export_symbols_cmds_F77 | \ 14396 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14397 postinstall_cmds | postuninstall_cmds | \ 14398 old_postinstall_cmds | old_postuninstall_cmds | \ 14399 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14400 # Double-quote double-evaled strings. 14401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14402 ;; 14403 *) 14404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14405 ;; 14406 esac 14407 done 14408 14409 case $lt_echo in 14410 *'\$0 --fallback-echo"') 14411 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14412 ;; 14413 esac 14414 14415cfgfile="$ofile" 14416 14417 cat <<__EOF__ >> "$cfgfile" 14418# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14419 14420# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14421 14422# Shell to use when invoking shell scripts. 14423SHELL=$lt_SHELL 14424 14425# Whether or not to build shared libraries. 14426build_libtool_libs=$enable_shared 14427 14428# Whether or not to build static libraries. 14429build_old_libs=$enable_static 14430 14431# Whether or not to add -lc for building shared libraries. 14432build_libtool_need_lc=$archive_cmds_need_lc_F77 14433 14434# Whether or not to disallow shared libs when runtime libs are static 14435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14436 14437# Whether or not to optimize for fast installation. 14438fast_install=$enable_fast_install 14439 14440# The host system. 14441host_alias=$host_alias 14442host=$host 14443host_os=$host_os 14444 14445# The build system. 14446build_alias=$build_alias 14447build=$build 14448build_os=$build_os 14449 14450# An echo program that does not interpret backslashes. 14451echo=$lt_echo 14452 14453# The archiver. 14454AR=$lt_AR 14455AR_FLAGS=$lt_AR_FLAGS 14456 14457# A C compiler. 14458LTCC=$lt_LTCC 14459 14460# LTCC compiler flags. 14461LTCFLAGS=$lt_LTCFLAGS 14462 14463# A language-specific compiler. 14464CC=$lt_compiler_F77 14465 14466# Is the compiler the GNU C compiler? 14467with_gcc=$GCC_F77 14468 14469gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 14470gcc_ver=\`gcc -dumpversion\` 14471 14472# An ERE matcher. 14473EGREP=$lt_EGREP 14474 14475# The linker used to build libraries. 14476LD=$lt_LD_F77 14477 14478# Whether we need hard or soft links. 14479LN_S=$lt_LN_S 14480 14481# A BSD-compatible nm program. 14482NM=$lt_NM 14483 14484# A symbol stripping program 14485STRIP=$lt_STRIP 14486 14487# Used to examine libraries when file_magic_cmd begins "file" 14488MAGIC_CMD=$MAGIC_CMD 14489 14490# Used on cygwin: DLL creation program. 14491DLLTOOL="$DLLTOOL" 14492 14493# Used on cygwin: object dumper. 14494OBJDUMP="$OBJDUMP" 14495 14496# Used on cygwin: assembler. 14497AS="$AS" 14498 14499# The name of the directory that contains temporary libtool files. 14500objdir=$objdir 14501 14502# How to create reloadable object files. 14503reload_flag=$lt_reload_flag 14504reload_cmds=$lt_reload_cmds 14505 14506# How to pass a linker flag through the compiler. 14507wl=$lt_lt_prog_compiler_wl_F77 14508 14509# Object file suffix (normally "o"). 14510objext="$ac_objext" 14511 14512# Old archive suffix (normally "a"). 14513libext="$libext" 14514 14515# Shared library suffix (normally ".so"). 14516shrext_cmds='$shrext_cmds' 14517 14518# Executable file suffix (normally ""). 14519exeext="$exeext" 14520 14521# Additional compiler flags for building library objects. 14522pic_flag=$lt_lt_prog_compiler_pic_F77 14523pic_mode=$pic_mode 14524 14525# What is the maximum length of a command? 14526max_cmd_len=$lt_cv_sys_max_cmd_len 14527 14528# Does compiler simultaneously support -c and -o options? 14529compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 14530 14531# Must we lock files when doing compilation? 14532need_locks=$lt_need_locks 14533 14534# Do we need the lib prefix for modules? 14535need_lib_prefix=$need_lib_prefix 14536 14537# Do we need a version for libraries? 14538need_version=$need_version 14539 14540# Whether dlopen is supported. 14541dlopen_support=$enable_dlopen 14542 14543# Whether dlopen of programs is supported. 14544dlopen_self=$enable_dlopen_self 14545 14546# Whether dlopen of statically linked programs is supported. 14547dlopen_self_static=$enable_dlopen_self_static 14548 14549# Compiler flag to prevent dynamic linking. 14550link_static_flag=$lt_lt_prog_compiler_static_F77 14551 14552# Compiler flag to turn off builtin functions. 14553no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 14554 14555# Compiler flag to allow reflexive dlopens. 14556export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 14557 14558# Compiler flag to generate shared objects directly from archives. 14559whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 14560 14561# Compiler flag to generate thread-safe objects. 14562thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 14563 14564# Library versioning type. 14565version_type=$version_type 14566 14567# Format of library name prefix. 14568libname_spec=$lt_libname_spec 14569 14570# List of archive names. First name is the real one, the rest are links. 14571# The last name is the one that the linker finds with -lNAME. 14572library_names_spec=$lt_library_names_spec 14573 14574# The coded name of the library, if different from the real name. 14575soname_spec=$lt_soname_spec 14576 14577# Commands used to build and install an old-style archive. 14578RANLIB=$lt_RANLIB 14579old_archive_cmds=$lt_old_archive_cmds_F77 14580old_postinstall_cmds=$lt_old_postinstall_cmds 14581old_postuninstall_cmds=$lt_old_postuninstall_cmds 14582 14583# Create an old-style archive from a shared archive. 14584old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 14585 14586# Create a temporary old-style archive to link instead of a shared archive. 14587old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 14588 14589# Commands used to build and install a shared archive. 14590archive_cmds=$lt_archive_cmds_F77 14591archive_expsym_cmds=$lt_archive_expsym_cmds_F77 14592postinstall_cmds=$lt_postinstall_cmds 14593postuninstall_cmds=$lt_postuninstall_cmds 14594 14595# Commands used to build a loadable module (assumed same as above if empty) 14596module_cmds=$lt_module_cmds_F77 14597module_expsym_cmds=$lt_module_expsym_cmds_F77 14598 14599# Commands to strip libraries. 14600old_striplib=$lt_old_striplib 14601striplib=$lt_striplib 14602 14603# Dependencies to place before the objects being linked to create a 14604# shared library. 14605predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 14606 14607# Dependencies to place after the objects being linked to create a 14608# shared library. 14609postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 14610 14611# Dependencies to place before the objects being linked to create a 14612# shared library. 14613predeps=$lt_predeps_F77 14614 14615# Dependencies to place after the objects being linked to create a 14616# shared library. 14617postdeps=$lt_postdeps_F77 14618 14619# The library search path used internally by the compiler when linking 14620# a shared library. 14621compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 14622 14623# Method to check whether dependent libraries are shared objects. 14624deplibs_check_method=$lt_deplibs_check_method 14625 14626# Command to use when deplibs_check_method == file_magic. 14627file_magic_cmd=$lt_file_magic_cmd 14628 14629# Flag that allows shared libraries with undefined symbols to be built. 14630allow_undefined_flag=$lt_allow_undefined_flag_F77 14631 14632# Flag that forces no undefined symbols. 14633no_undefined_flag=$lt_no_undefined_flag_F77 14634 14635# Commands used to finish a libtool library installation in a directory. 14636finish_cmds=$lt_finish_cmds 14637 14638# Same as above, but a single script fragment to be evaled but not shown. 14639finish_eval=$lt_finish_eval 14640 14641# Take the output of nm and produce a listing of raw symbols and C names. 14642global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14643 14644# Transform the output of nm in a proper C declaration 14645global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14646 14647# Transform the output of nm in a C name address pair 14648global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14649 14650# This is the shared library runtime path variable. 14651runpath_var=$runpath_var 14652 14653# This is the shared library path variable. 14654shlibpath_var=$shlibpath_var 14655 14656# Is shlibpath searched before the hard-coded library search path? 14657shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14658 14659# How to hardcode a shared library path into an executable. 14660hardcode_action=$hardcode_action_F77 14661 14662# Whether we should hardcode library paths into libraries. 14663hardcode_into_libs=$hardcode_into_libs 14664 14665# Flag to hardcode \$libdir into a binary during linking. 14666# This must work even if \$libdir does not exist. 14667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 14668 14669# If ld is used when linking, flag to hardcode \$libdir into 14670# a binary during linking. This must work even if \$libdir does 14671# not exist. 14672hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 14673 14674# Whether we need a single -rpath flag with a separated argument. 14675hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 14676 14677# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14678# resulting binary. 14679hardcode_direct=$hardcode_direct_F77 14680 14681# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14682# resulting binary. 14683hardcode_minus_L=$hardcode_minus_L_F77 14684 14685# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14686# the resulting binary. 14687hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 14688 14689# Set to yes if building a shared library automatically hardcodes DIR into the library 14690# and all subsequent libraries and executables linked against it. 14691hardcode_automatic=$hardcode_automatic_F77 14692 14693# Variables whose values should be saved in libtool wrapper scripts and 14694# restored at relink time. 14695variables_saved_for_relink="$variables_saved_for_relink" 14696 14697# Whether libtool must link a program against all its dependency libraries. 14698link_all_deplibs=$link_all_deplibs_F77 14699 14700# Compile-time system search path for libraries 14701sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 14702 14703# Run-time system search path for libraries 14704sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14705 14706# Fix the shell variable \$srcfile for the compiler. 14707fix_srcfile_path="$fix_srcfile_path_F77" 14708 14709# Set to yes if exported symbols are required. 14710always_export_symbols=$always_export_symbols_F77 14711 14712# The commands to list exported symbols. 14713export_symbols_cmds=$lt_export_symbols_cmds_F77 14714 14715# The commands to extract the exported symbol list from a shared archive. 14716extract_expsyms_cmds=$lt_extract_expsyms_cmds 14717 14718# Symbols that should not be listed in the preloaded symbols. 14719exclude_expsyms=$lt_exclude_expsyms_F77 14720 14721# Symbols that must always be exported. 14722include_expsyms=$lt_include_expsyms_F77 14723 14724# ### END LIBTOOL TAG CONFIG: $tagname 14725 14726__EOF__ 14727 14728 14729else 14730 # If there is no Makefile yet, we rely on a make rule to execute 14731 # `config.status --recheck' to rerun these tests and create the 14732 # libtool script then. 14733 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14734 if test -f "$ltmain_in"; then 14735 test -f Makefile && make "$ltmain" 14736 fi 14737fi 14738 14739 14740ac_ext=c 14741ac_cpp='$CPP $CPPFLAGS' 14742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14744ac_compiler_gnu=$ac_cv_c_compiler_gnu 14745 14746CC="$lt_save_CC" 14747 14748 else 14749 tagname="" 14750 fi 14751 ;; 14752 14753 GCJ) 14754 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 14755 14756 14757 14758# Source file extension for Java test sources. 14759ac_ext=java 14760 14761# Object file extension for compiled Java test sources. 14762objext=o 14763objext_GCJ=$objext 14764 14765# Code to be used in simple compile tests 14766lt_simple_compile_test_code="class foo {}\n" 14767 14768# Code to be used in simple link tests 14769lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 14770 14771# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14772 14773# If no C compiler was specified, use CC. 14774LTCC=${LTCC-"$CC"} 14775 14776# If no C compiler flags were specified, use CFLAGS. 14777LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14778 14779# Allow CC to be a program name with arguments. 14780compiler=$CC 14781 14782 14783# save warnings/boilerplate of simple test code 14784ac_outfile=conftest.$ac_objext 14785printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14786eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14787_lt_compiler_boilerplate=`cat conftest.err` 14788$rm conftest* 14789 14790ac_outfile=conftest.$ac_objext 14791printf "$lt_simple_link_test_code" >conftest.$ac_ext 14792eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14793_lt_linker_boilerplate=`cat conftest.err` 14794$rm conftest* 14795 14796 14797# Allow CC to be a program name with arguments. 14798lt_save_CC="$CC" 14799CC=${GCJ-"gcj"} 14800compiler=$CC 14801compiler_GCJ=$CC 14802for cc_temp in $compiler""; do 14803 case $cc_temp in 14804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14806 \-*) ;; 14807 *) break;; 14808 esac 14809done 14810cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14811 14812 14813# GCJ did not exist at the time GCC didn't implicitly link libc in. 14814archive_cmds_need_lc_GCJ=no 14815 14816old_archive_cmds_GCJ=$old_archive_cmds 14817 14818## CAVEAT EMPTOR: 14819## There is no encapsulation within the following macros, do not change 14820## the running order or otherwise move them around unless you know exactly 14821## what you are doing... 14822 14823lt_prog_compiler_no_builtin_flag_GCJ= 14824 14825if test "$GCC" = yes; then 14826 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 14827 14828 14829echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14830echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 14831if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 14832 echo $ECHO_N "(cached) $ECHO_C" >&6 14833else 14834 lt_cv_prog_compiler_rtti_exceptions=no 14835 ac_outfile=conftest.$ac_objext 14836 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14837 lt_compiler_flag="-fno-rtti -fno-exceptions" 14838 # Insert the option either (1) after the last *FLAGS variable, or 14839 # (2) before a word containing "conftest.", or (3) at the end. 14840 # Note that $ac_compile itself does not contain backslashes and begins 14841 # with a dollar sign (not a hyphen), so the echo should work correctly. 14842 # The option is referenced via a variable to avoid confusing sed. 14843 lt_compile=`echo "$ac_compile" | $SED \ 14844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14846 -e 's:$: $lt_compiler_flag:'` 14847 (eval echo "\"\$as_me:14847: $lt_compile\"" >&5) 14848 (eval "$lt_compile" 2>conftest.err) 14849 ac_status=$? 14850 cat conftest.err >&5 14851 echo "$as_me:14851: \$? = $ac_status" >&5 14852 if (exit $ac_status) && test -s "$ac_outfile"; then 14853 # The compiler can only warn and ignore the option if not recognized 14854 # So say no if there are warnings other than the usual output. 14855 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14858 lt_cv_prog_compiler_rtti_exceptions=yes 14859 fi 14860 fi 14861 $rm conftest* 14862 14863fi 14864echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14865echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 14866 14867if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14868 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 14869else 14870 : 14871fi 14872 14873fi 14874 14875lt_prog_compiler_wl_GCJ= 14876lt_prog_compiler_pic_GCJ= 14877lt_prog_compiler_static_GCJ= 14878 14879echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14880echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14881 14882 if test "$GCC" = yes; then 14883 lt_prog_compiler_wl_GCJ='-Wl,' 14884 lt_prog_compiler_static_GCJ='-static' 14885 14886 case $host_os in 14887 aix*) 14888 # All AIX code is PIC. 14889 if test "$host_cpu" = ia64; then 14890 # AIX 5 now supports IA64 processor 14891 lt_prog_compiler_static_GCJ='-Bstatic' 14892 fi 14893 ;; 14894 14895 amigaos*) 14896 # FIXME: we need at least 68020 code to build shared libraries, but 14897 # adding the `-m68020' flag to GCC prevents building anything better, 14898 # like `-m68040'. 14899 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 14900 ;; 14901 14902 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14903 # PIC is the default for these OSes. 14904 ;; 14905 14906 mingw* | pw32* | os2*) 14907 # This hack is so that the source file can tell whether it is being 14908 # built for inclusion in a dll (and should export symbols for example). 14909 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14910 ;; 14911 14912 darwin* | rhapsody*) 14913 # PIC is the default on this platform 14914 # Common symbols not allowed in MH_DYLIB files 14915 lt_prog_compiler_pic_GCJ='-fno-common' 14916 ;; 14917 14918 interix3*) 14919 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14920 # Instead, we relocate shared libraries at runtime. 14921 ;; 14922 14923 msdosdjgpp*) 14924 # Just because we use GCC doesn't mean we suddenly get shared libraries 14925 # on systems that don't support them. 14926 lt_prog_compiler_can_build_shared_GCJ=no 14927 enable_shared=no 14928 ;; 14929 14930 sysv4*MP*) 14931 if test -d /usr/nec; then 14932 lt_prog_compiler_pic_GCJ=-Kconform_pic 14933 fi 14934 ;; 14935 14936 hpux*) 14937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14938 # not for PA HP-UX. 14939 case $host_cpu in 14940 hppa*64*|ia64*) 14941 # +Z the default 14942 ;; 14943 *) 14944 lt_prog_compiler_pic_GCJ='-fPIC' 14945 ;; 14946 esac 14947 ;; 14948 14949 *) 14950 lt_prog_compiler_pic_GCJ='-fPIC' 14951 ;; 14952 esac 14953 else 14954 # PORTME Check for flag to pass linker flags through the system compiler. 14955 case $host_os in 14956 aix*) 14957 lt_prog_compiler_wl_GCJ='-Wl,' 14958 if test "$host_cpu" = ia64; then 14959 # AIX 5 now supports IA64 processor 14960 lt_prog_compiler_static_GCJ='-Bstatic' 14961 else 14962 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 14963 fi 14964 ;; 14965 darwin*) 14966 # PIC is the default on this platform 14967 # Common symbols not allowed in MH_DYLIB files 14968 case $cc_basename in 14969 xlc*) 14970 lt_prog_compiler_pic_GCJ='-qnocommon' 14971 lt_prog_compiler_wl_GCJ='-Wl,' 14972 ;; 14973 esac 14974 ;; 14975 14976 mingw* | pw32* | os2*) 14977 # This hack is so that the source file can tell whether it is being 14978 # built for inclusion in a dll (and should export symbols for example). 14979 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14980 ;; 14981 14982 hpux9* | hpux10* | hpux11*) 14983 lt_prog_compiler_wl_GCJ='-Wl,' 14984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14985 # not for PA HP-UX. 14986 case $host_cpu in 14987 hppa*64*|ia64*) 14988 # +Z the default 14989 ;; 14990 *) 14991 lt_prog_compiler_pic_GCJ='+Z' 14992 ;; 14993 esac 14994 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14995 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 14996 ;; 14997 14998 irix5* | irix6* | nonstopux*) 14999 lt_prog_compiler_wl_GCJ='-Wl,' 15000 # PIC (with -KPIC) is the default. 15001 lt_prog_compiler_static_GCJ='-non_shared' 15002 ;; 15003 15004 newsos6) 15005 lt_prog_compiler_pic_GCJ='-KPIC' 15006 lt_prog_compiler_static_GCJ='-Bstatic' 15007 ;; 15008 15009 linux*) 15010 case $cc_basename in 15011 icc* | ecc*) 15012 lt_prog_compiler_wl_GCJ='-Wl,' 15013 lt_prog_compiler_pic_GCJ='-KPIC' 15014 lt_prog_compiler_static_GCJ='-static' 15015 ;; 15016 pgcc* | pgf77* | pgf90* | pgf95*) 15017 # Portland Group compilers (*not* the Pentium gcc compiler, 15018 # which looks to be a dead project) 15019 lt_prog_compiler_wl_GCJ='-Wl,' 15020 lt_prog_compiler_pic_GCJ='-fpic' 15021 lt_prog_compiler_static_GCJ='-Bstatic' 15022 ;; 15023 ccc*) 15024 lt_prog_compiler_wl_GCJ='-Wl,' 15025 # All Alpha code is PIC. 15026 lt_prog_compiler_static_GCJ='-non_shared' 15027 ;; 15028 esac 15029 ;; 15030 15031 osf3* | osf4* | osf5*) 15032 lt_prog_compiler_wl_GCJ='-Wl,' 15033 # All OSF/1 code is PIC. 15034 lt_prog_compiler_static_GCJ='-non_shared' 15035 ;; 15036 15037 solaris*) 15038 lt_prog_compiler_pic_GCJ='-KPIC' 15039 lt_prog_compiler_static_GCJ='-Bstatic' 15040 case $cc_basename in 15041 f77* | f90* | f95*) 15042 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15043 *) 15044 lt_prog_compiler_wl_GCJ='-Wl,';; 15045 esac 15046 ;; 15047 15048 sunos4*) 15049 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15050 lt_prog_compiler_pic_GCJ='-PIC' 15051 lt_prog_compiler_static_GCJ='-Bstatic' 15052 ;; 15053 15054 sysv4 | sysv4.2uw2* | sysv4.3*) 15055 lt_prog_compiler_wl_GCJ='-Wl,' 15056 lt_prog_compiler_pic_GCJ='-KPIC' 15057 lt_prog_compiler_static_GCJ='-Bstatic' 15058 ;; 15059 15060 sysv4*MP*) 15061 if test -d /usr/nec ;then 15062 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15063 lt_prog_compiler_static_GCJ='-Bstatic' 15064 fi 15065 ;; 15066 15067 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15068 lt_prog_compiler_wl_GCJ='-Wl,' 15069 lt_prog_compiler_pic_GCJ='-KPIC' 15070 lt_prog_compiler_static_GCJ='-Bstatic' 15071 ;; 15072 15073 unicos*) 15074 lt_prog_compiler_wl_GCJ='-Wl,' 15075 lt_prog_compiler_can_build_shared_GCJ=no 15076 ;; 15077 15078 uts4*) 15079 lt_prog_compiler_pic_GCJ='-pic' 15080 lt_prog_compiler_static_GCJ='-Bstatic' 15081 ;; 15082 15083 *) 15084 lt_prog_compiler_can_build_shared_GCJ=no 15085 ;; 15086 esac 15087 fi 15088 15089echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15090echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15091 15092# 15093# Check to make sure the PIC flag actually works. 15094# 15095if test -n "$lt_prog_compiler_pic_GCJ"; then 15096 15097echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15098echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15099if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15100 echo $ECHO_N "(cached) $ECHO_C" >&6 15101else 15102 lt_prog_compiler_pic_works_GCJ=no 15103 ac_outfile=conftest.$ac_objext 15104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15105 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15106 # Insert the option either (1) after the last *FLAGS variable, or 15107 # (2) before a word containing "conftest.", or (3) at the end. 15108 # Note that $ac_compile itself does not contain backslashes and begins 15109 # with a dollar sign (not a hyphen), so the echo should work correctly. 15110 # The option is referenced via a variable to avoid confusing sed. 15111 lt_compile=`echo "$ac_compile" | $SED \ 15112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15114 -e 's:$: $lt_compiler_flag:'` 15115 (eval echo "\"\$as_me:15115: $lt_compile\"" >&5) 15116 (eval "$lt_compile" 2>conftest.err) 15117 ac_status=$? 15118 cat conftest.err >&5 15119 echo "$as_me:15119: \$? = $ac_status" >&5 15120 if (exit $ac_status) && test -s "$ac_outfile"; then 15121 # The compiler can only warn and ignore the option if not recognized 15122 # So say no if there are warnings other than the usual output. 15123 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15126 lt_prog_compiler_pic_works_GCJ=yes 15127 fi 15128 fi 15129 $rm conftest* 15130 15131fi 15132echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15133echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15134 15135if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15136 case $lt_prog_compiler_pic_GCJ in 15137 "" | " "*) ;; 15138 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15139 esac 15140else 15141 lt_prog_compiler_pic_GCJ= 15142 lt_prog_compiler_can_build_shared_GCJ=no 15143fi 15144 15145fi 15146case $host_os in 15147 # For platforms which do not support PIC, -DPIC is meaningless: 15148 *djgpp*) 15149 lt_prog_compiler_pic_GCJ= 15150 ;; 15151 *) 15152 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15153 ;; 15154esac 15155 15156# 15157# Check to make sure the static flag actually works. 15158# 15159wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15160echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15161echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15162if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15163 echo $ECHO_N "(cached) $ECHO_C" >&6 15164else 15165 lt_prog_compiler_static_works_GCJ=no 15166 save_LDFLAGS="$LDFLAGS" 15167 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15168 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15169 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15170 # The linker can only warn and ignore the option if not recognized 15171 # So say no if there are warnings 15172 if test -s conftest.err; then 15173 # Append any errors to the config.log. 15174 cat conftest.err 1>&5 15175 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15177 if diff conftest.exp conftest.er2 >/dev/null; then 15178 lt_prog_compiler_static_works_GCJ=yes 15179 fi 15180 else 15181 lt_prog_compiler_static_works_GCJ=yes 15182 fi 15183 fi 15184 $rm conftest* 15185 LDFLAGS="$save_LDFLAGS" 15186 15187fi 15188echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15189echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15190 15191if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15192 : 15193else 15194 lt_prog_compiler_static_GCJ= 15195fi 15196 15197 15198echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15199echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15200if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15201 echo $ECHO_N "(cached) $ECHO_C" >&6 15202else 15203 lt_cv_prog_compiler_c_o_GCJ=no 15204 $rm -r conftest 2>/dev/null 15205 mkdir conftest 15206 cd conftest 15207 mkdir out 15208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15209 15210 lt_compiler_flag="-o out/conftest2.$ac_objext" 15211 # Insert the option either (1) after the last *FLAGS variable, or 15212 # (2) before a word containing "conftest.", or (3) at the end. 15213 # Note that $ac_compile itself does not contain backslashes and begins 15214 # with a dollar sign (not a hyphen), so the echo should work correctly. 15215 lt_compile=`echo "$ac_compile" | $SED \ 15216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15218 -e 's:$: $lt_compiler_flag:'` 15219 (eval echo "\"\$as_me:15219: $lt_compile\"" >&5) 15220 (eval "$lt_compile" 2>out/conftest.err) 15221 ac_status=$? 15222 cat out/conftest.err >&5 15223 echo "$as_me:15223: \$? = $ac_status" >&5 15224 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15225 then 15226 # The compiler can only warn and ignore the option if not recognized 15227 # So say no if there are warnings 15228 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15229 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15230 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15231 lt_cv_prog_compiler_c_o_GCJ=yes 15232 fi 15233 fi 15234 chmod u+w . 2>&5 15235 $rm conftest* 15236 # SGI C++ compiler will create directory out/ii_files/ for 15237 # template instantiation 15238 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15239 $rm out/* && rmdir out 15240 cd .. 15241 rmdir conftest 15242 $rm conftest* 15243 15244fi 15245echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15246echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15247 15248 15249hard_links="nottested" 15250if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15251 # do not overwrite the value of need_locks provided by the user 15252 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15253echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15254 hard_links=yes 15255 $rm conftest* 15256 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15257 touch conftest.a 15258 ln conftest.a conftest.b 2>&5 || hard_links=no 15259 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15260 echo "$as_me:$LINENO: result: $hard_links" >&5 15261echo "${ECHO_T}$hard_links" >&6 15262 if test "$hard_links" = no; then 15263 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15264echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15265 need_locks=warn 15266 fi 15267else 15268 need_locks=no 15269fi 15270 15271echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15272echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15273 15274 runpath_var= 15275 allow_undefined_flag_GCJ= 15276 enable_shared_with_static_runtimes_GCJ=no 15277 archive_cmds_GCJ= 15278 archive_expsym_cmds_GCJ= 15279 old_archive_From_new_cmds_GCJ= 15280 old_archive_from_expsyms_cmds_GCJ= 15281 export_dynamic_flag_spec_GCJ= 15282 whole_archive_flag_spec_GCJ= 15283 thread_safe_flag_spec_GCJ= 15284 hardcode_libdir_flag_spec_GCJ= 15285 hardcode_libdir_flag_spec_ld_GCJ= 15286 hardcode_libdir_separator_GCJ= 15287 hardcode_direct_GCJ=no 15288 hardcode_minus_L_GCJ=no 15289 hardcode_shlibpath_var_GCJ=unsupported 15290 link_all_deplibs_GCJ=unknown 15291 hardcode_automatic_GCJ=no 15292 module_cmds_GCJ= 15293 module_expsym_cmds_GCJ= 15294 always_export_symbols_GCJ=no 15295 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15296 # include_expsyms should be a list of space-separated symbols to be *always* 15297 # included in the symbol list 15298 include_expsyms_GCJ= 15299 # exclude_expsyms can be an extended regexp of symbols to exclude 15300 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15301 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15302 # as well as any symbol that contains `d'. 15303 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15305 # platforms (ab)use it in PIC code, but their linkers get confused if 15306 # the symbol is explicitly referenced. Since portable code cannot 15307 # rely on this symbol name, it's probably fine to never include it in 15308 # preloaded symbol tables. 15309 extract_expsyms_cmds= 15310 # Just being paranoid about ensuring that cc_basename is set. 15311 for cc_temp in $compiler""; do 15312 case $cc_temp in 15313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15315 \-*) ;; 15316 *) break;; 15317 esac 15318done 15319cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15320 15321 case $host_os in 15322 cygwin* | mingw* | pw32*) 15323 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15324 # When not using gcc, we currently assume that we are using 15325 # Microsoft Visual C++. 15326 if test "$GCC" != yes; then 15327 with_gnu_ld=no 15328 fi 15329 ;; 15330 interix*) 15331 # we just hope/assume this is gcc and not c89 (= MSVC++) 15332 with_gnu_ld=yes 15333 ;; 15334 openbsd*) 15335 with_gnu_ld=no 15336 ;; 15337 esac 15338 15339 ld_shlibs_GCJ=yes 15340 if test "$with_gnu_ld" = yes; then 15341 # If archive_cmds runs LD, not CC, wlarc should be empty 15342 wlarc='${wl}' 15343 15344 # Set some defaults for GNU ld with shared library support. These 15345 # are reset later if shared libraries are not supported. Putting them 15346 # here allows them to be overridden if necessary. 15347 runpath_var=LD_RUN_PATH 15348 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15349 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15350 # ancient GNU ld didn't support --whole-archive et. al. 15351 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15352 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15353 else 15354 whole_archive_flag_spec_GCJ= 15355 fi 15356 supports_anon_versioning=no 15357 case `$LD -v 2>/dev/null` in 15358 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15359 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15360 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15361 *\ 2.11.*) ;; # other 2.11 versions 15362 *) supports_anon_versioning=yes ;; 15363 esac 15364 15365 # See if GNU ld supports shared libraries. 15366 case $host_os in 15367 aix3* | aix4* | aix5*) 15368 # On AIX/PPC, the GNU linker is very broken 15369 if test "$host_cpu" != ia64; then 15370 ld_shlibs_GCJ=no 15371 cat <<EOF 1>&2 15372 15373*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15374*** to be unable to reliably create shared libraries on AIX. 15375*** Therefore, libtool is disabling shared libraries support. If you 15376*** really care for shared libraries, you may want to modify your PATH 15377*** so that a non-GNU linker is found, and then restart. 15378 15379EOF 15380 fi 15381 ;; 15382 15383 amigaos*) 15384 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)' 15385 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15386 hardcode_minus_L_GCJ=yes 15387 15388 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15389 # that the semantics of dynamic libraries on AmigaOS, at least up 15390 # to version 4, is to share data among multiple programs linked 15391 # with the same dynamic library. Since this doesn't match the 15392 # behavior of shared libraries on other platforms, we can't use 15393 # them. 15394 ld_shlibs_GCJ=no 15395 ;; 15396 15397 beos*) 15398 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15399 allow_undefined_flag_GCJ=unsupported 15400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15401 # support --undefined. This deserves some investigation. FIXME 15402 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15403 else 15404 ld_shlibs_GCJ=no 15405 fi 15406 ;; 15407 15408 cygwin* | mingw* | pw32*) 15409 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15410 # as there is no search path for DLLs. 15411 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15412 allow_undefined_flag_GCJ=unsupported 15413 always_export_symbols_GCJ=no 15414 enable_shared_with_static_runtimes_GCJ=yes 15415 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15416 15417 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15418 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15419 # If the export-symbols file already is a .def file (1st line 15420 # is EXPORTS), use it as is; otherwise, prepend... 15421 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15422 cp $export_symbols $output_objdir/$soname.def; 15423 else 15424 echo EXPORTS > $output_objdir/$soname.def; 15425 cat $export_symbols >> $output_objdir/$soname.def; 15426 fi~ 15427 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15428 else 15429 ld_shlibs_GCJ=no 15430 fi 15431 ;; 15432 15433 interix3*) 15434 hardcode_direct_GCJ=no 15435 hardcode_shlibpath_var_GCJ=no 15436 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15437 export_dynamic_flag_spec_GCJ='${wl}-E' 15438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15439 # Instead, shared libraries are loaded at an image base (0x10000000 by 15440 # default) and relocated if they conflict, which is a slow very memory 15441 # consuming and fragmenting process. To avoid this, we pick a random, 15442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15443 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15444 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15445 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15446 ;; 15447 15448 linux*) 15449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15450 tmp_addflag= 15451 case $cc_basename,$host_cpu in 15452 pgcc*) # Portland Group C compiler 15453 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15454 tmp_addflag=' $pic_flag' 15455 ;; 15456 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15457 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15458 tmp_addflag=' $pic_flag -Mnomain' ;; 15459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15460 tmp_addflag=' -i_dynamic' ;; 15461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15462 tmp_addflag=' -i_dynamic -nofor_main' ;; 15463 ifc* | ifort*) # Intel Fortran compiler 15464 tmp_addflag=' -nofor_main' ;; 15465 esac 15466 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15467 15468 if test $supports_anon_versioning = yes; then 15469 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 15470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15471 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15472 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15473 fi 15474 else 15475 ld_shlibs_GCJ=no 15476 fi 15477 ;; 15478 15479 netbsd*) 15480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15481 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15482 wlarc= 15483 else 15484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15486 fi 15487 ;; 15488 15489 solaris*) 15490 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15491 ld_shlibs_GCJ=no 15492 cat <<EOF 1>&2 15493 15494*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15495*** create shared libraries on Solaris systems. Therefore, libtool 15496*** is disabling shared libraries support. We urge you to upgrade GNU 15497*** binutils to release 2.9.1 or newer. Another option is to modify 15498*** your PATH or compiler configuration so that the native linker is 15499*** used, and then restart. 15500 15501EOF 15502 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15503 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15504 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15505 else 15506 ld_shlibs_GCJ=no 15507 fi 15508 ;; 15509 15510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15511 case `$LD -v 2>&1` in 15512 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15513 ld_shlibs_GCJ=no 15514 cat <<_LT_EOF 1>&2 15515 15516*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15517*** reliably create shared libraries on SCO systems. Therefore, libtool 15518*** is disabling shared libraries support. We urge you to upgrade GNU 15519*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15520*** your PATH or compiler configuration so that the native linker is 15521*** used, and then restart. 15522 15523_LT_EOF 15524 ;; 15525 *) 15526 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15527 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15529 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15530 else 15531 ld_shlibs_GCJ=no 15532 fi 15533 ;; 15534 esac 15535 ;; 15536 15537 sunos4*) 15538 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15539 wlarc= 15540 hardcode_direct_GCJ=yes 15541 hardcode_shlibpath_var_GCJ=no 15542 ;; 15543 15544 *) 15545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15546 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15547 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15548 else 15549 ld_shlibs_GCJ=no 15550 fi 15551 ;; 15552 esac 15553 15554 if test "$ld_shlibs_GCJ" = no; then 15555 runpath_var= 15556 hardcode_libdir_flag_spec_GCJ= 15557 export_dynamic_flag_spec_GCJ= 15558 whole_archive_flag_spec_GCJ= 15559 fi 15560 else 15561 # PORTME fill in a description of your system's linker (not GNU ld) 15562 case $host_os in 15563 aix3*) 15564 allow_undefined_flag_GCJ=unsupported 15565 always_export_symbols_GCJ=yes 15566 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' 15567 # Note: this linker hardcodes the directories in LIBPATH if there 15568 # are no directories specified by -L. 15569 hardcode_minus_L_GCJ=yes 15570 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15571 # Neither direct hardcoding nor static linking is supported with a 15572 # broken collect2. 15573 hardcode_direct_GCJ=unsupported 15574 fi 15575 ;; 15576 15577 aix4* | aix5*) 15578 if test "$host_cpu" = ia64; then 15579 # On IA64, the linker does run time linking by default, so we don't 15580 # have to do anything special. 15581 aix_use_runtimelinking=no 15582 exp_sym_flag='-Bexport' 15583 no_entry_flag="" 15584 else 15585 # If we're using GNU nm, then we don't want the "-C" option. 15586 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15587 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15588 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' 15589 else 15590 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' 15591 fi 15592 aix_use_runtimelinking=no 15593 15594 # Test if we are trying to use run time linking or normal 15595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15596 # need to do runtime linking. 15597 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15598 for ld_flag in $LDFLAGS; do 15599 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15600 aix_use_runtimelinking=yes 15601 break 15602 fi 15603 done 15604 ;; 15605 esac 15606 15607 exp_sym_flag='-bexport' 15608 no_entry_flag='-bnoentry' 15609 fi 15610 15611 # When large executables or shared objects are built, AIX ld can 15612 # have problems creating the table of contents. If linking a library 15613 # or program results in "error TOC overflow" add -mminimal-toc to 15614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15616 15617 archive_cmds_GCJ='' 15618 hardcode_direct_GCJ=yes 15619 hardcode_libdir_separator_GCJ=':' 15620 link_all_deplibs_GCJ=yes 15621 15622 if test "$GCC" = yes; then 15623 case $host_os in aix4.[012]|aix4.[012].*) 15624 # We only want to do this on AIX 4.2 and lower, the check 15625 # below for broken collect2 doesn't work under 4.3+ 15626 collect2name=`${CC} -print-prog-name=collect2` 15627 if test -f "$collect2name" && \ 15628 strings "$collect2name" | grep resolve_lib_name >/dev/null 15629 then 15630 # We have reworked collect2 15631 hardcode_direct_GCJ=yes 15632 else 15633 # We have old collect2 15634 hardcode_direct_GCJ=unsupported 15635 # It fails to find uninstalled libraries when the uninstalled 15636 # path is not listed in the libpath. Setting hardcode_minus_L 15637 # to unsupported forces relinking 15638 hardcode_minus_L_GCJ=yes 15639 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15640 hardcode_libdir_separator_GCJ= 15641 fi 15642 ;; 15643 esac 15644 shared_flag='-shared' 15645 if test "$aix_use_runtimelinking" = yes; then 15646 shared_flag="$shared_flag "'${wl}-G' 15647 fi 15648 else 15649 # not using gcc 15650 if test "$host_cpu" = ia64; then 15651 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15652 # chokes on -Wl,-G. The following line is correct: 15653 shared_flag='-G' 15654 else 15655 if test "$aix_use_runtimelinking" = yes; then 15656 shared_flag='${wl}-G' 15657 else 15658 shared_flag='${wl}-bM:SRE' 15659 fi 15660 fi 15661 fi 15662 15663 # It seems that -bexpall does not export symbols beginning with 15664 # underscore (_), so it is better to generate a list of symbols to export. 15665 always_export_symbols_GCJ=yes 15666 if test "$aix_use_runtimelinking" = yes; then 15667 # Warning - without using the other runtime loading flags (-brtl), 15668 # -berok will link without error, but may produce a broken library. 15669 allow_undefined_flag_GCJ='-berok' 15670 # Determine the default libpath from the value encoded in an empty executable. 15671 cat >conftest.$ac_ext <<_ACEOF 15672/* confdefs.h. */ 15673_ACEOF 15674cat confdefs.h >>conftest.$ac_ext 15675cat >>conftest.$ac_ext <<_ACEOF 15676/* end confdefs.h. */ 15677 15678int 15679main () 15680{ 15681 15682 ; 15683 return 0; 15684} 15685_ACEOF 15686rm -f conftest.$ac_objext conftest$ac_exeext 15687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15688 (eval $ac_link) 2>conftest.er1 15689 ac_status=$? 15690 grep -v '^ *+' conftest.er1 >conftest.err 15691 rm -f conftest.er1 15692 cat conftest.err >&5 15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15694 (exit $ac_status); } && 15695 { ac_try='test -z "$ac_c_werror_flag" 15696 || test ! -s conftest.err' 15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15698 (eval $ac_try) 2>&5 15699 ac_status=$? 15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15701 (exit $ac_status); }; } && 15702 { ac_try='test -s conftest$ac_exeext' 15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15704 (eval $ac_try) 2>&5 15705 ac_status=$? 15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15707 (exit $ac_status); }; }; then 15708 15709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15710}'` 15711# Check for a 64-bit object if we didn't find anything. 15712if 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; } 15713}'`; fi 15714else 15715 echo "$as_me: failed program was:" >&5 15716sed 's/^/| /' conftest.$ac_ext >&5 15717 15718fi 15719rm -f conftest.err conftest.$ac_objext \ 15720 conftest$ac_exeext conftest.$ac_ext 15721if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15722 15723 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15724 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15725 else 15726 if test "$host_cpu" = ia64; then 15727 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 15728 allow_undefined_flag_GCJ="-z nodefs" 15729 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 15730 else 15731 # Determine the default libpath from the value encoded in an empty executable. 15732 cat >conftest.$ac_ext <<_ACEOF 15733/* confdefs.h. */ 15734_ACEOF 15735cat confdefs.h >>conftest.$ac_ext 15736cat >>conftest.$ac_ext <<_ACEOF 15737/* end confdefs.h. */ 15738 15739int 15740main () 15741{ 15742 15743 ; 15744 return 0; 15745} 15746_ACEOF 15747rm -f conftest.$ac_objext conftest$ac_exeext 15748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15749 (eval $ac_link) 2>conftest.er1 15750 ac_status=$? 15751 grep -v '^ *+' conftest.er1 >conftest.err 15752 rm -f conftest.er1 15753 cat conftest.err >&5 15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15755 (exit $ac_status); } && 15756 { ac_try='test -z "$ac_c_werror_flag" 15757 || test ! -s conftest.err' 15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15759 (eval $ac_try) 2>&5 15760 ac_status=$? 15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15762 (exit $ac_status); }; } && 15763 { ac_try='test -s conftest$ac_exeext' 15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15765 (eval $ac_try) 2>&5 15766 ac_status=$? 15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15768 (exit $ac_status); }; }; then 15769 15770aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15771}'` 15772# Check for a 64-bit object if we didn't find anything. 15773if 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; } 15774}'`; fi 15775else 15776 echo "$as_me: failed program was:" >&5 15777sed 's/^/| /' conftest.$ac_ext >&5 15778 15779fi 15780rm -f conftest.err conftest.$ac_objext \ 15781 conftest$ac_exeext conftest.$ac_ext 15782if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15783 15784 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15785 # Warning - without using the other run time loading flags, 15786 # -berok will link without error, but may produce a broken library. 15787 no_undefined_flag_GCJ=' ${wl}-bernotok' 15788 allow_undefined_flag_GCJ=' ${wl}-berok' 15789 # Exported symbols can be pulled into shared objects from archives 15790 whole_archive_flag_spec_GCJ='$convenience' 15791 archive_cmds_need_lc_GCJ=yes 15792 # This is similar to how AIX traditionally builds its shared libraries. 15793 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15794 fi 15795 fi 15796 ;; 15797 15798 amigaos*) 15799 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)' 15800 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15801 hardcode_minus_L_GCJ=yes 15802 # see comment about different semantics on the GNU ld section 15803 ld_shlibs_GCJ=no 15804 ;; 15805 15806 bsdi[45]*) 15807 export_dynamic_flag_spec_GCJ=-rdynamic 15808 ;; 15809 15810 cygwin* | mingw* | pw32*) 15811 # When not using gcc, we currently assume that we are using 15812 # Microsoft Visual C++. 15813 # hardcode_libdir_flag_spec is actually meaningless, as there is 15814 # no search path for DLLs. 15815 hardcode_libdir_flag_spec_GCJ=' ' 15816 allow_undefined_flag_GCJ=unsupported 15817 # Tell ltmain to make .lib files, not .a files. 15818 libext=lib 15819 # Tell ltmain to make .dll files, not .so files. 15820 shrext_cmds=".dll" 15821 # FIXME: Setting linknames here is a bad hack. 15822 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15823 # The linker will automatically build a .lib file if we build a DLL. 15824 old_archive_From_new_cmds_GCJ='true' 15825 # FIXME: Should let the user specify the lib program. 15826 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 15827 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 15828 enable_shared_with_static_runtimes_GCJ=yes 15829 ;; 15830 15831 darwin* | rhapsody*) 15832 case $host_os in 15833 rhapsody* | darwin1.[012]) 15834 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 15835 ;; 15836 *) # Darwin 1.3 on 15837 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15838 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15839 else 15840 case ${MACOSX_DEPLOYMENT_TARGET} in 15841 10.[012]) 15842 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15843 ;; 15844 10.*) 15845 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 15846 ;; 15847 esac 15848 fi 15849 ;; 15850 esac 15851 archive_cmds_need_lc_GCJ=no 15852 hardcode_direct_GCJ=no 15853 hardcode_automatic_GCJ=yes 15854 hardcode_shlibpath_var_GCJ=unsupported 15855 whole_archive_flag_spec_GCJ='' 15856 link_all_deplibs_GCJ=yes 15857 if test "$GCC" = yes ; then 15858 output_verbose_link_cmd='echo' 15859 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15860 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15861 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15862 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}' 15863 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}' 15864 else 15865 case $cc_basename in 15866 xlc*) 15867 output_verbose_link_cmd='echo' 15868 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15869 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15871 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}' 15872 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}' 15873 ;; 15874 *) 15875 ld_shlibs_GCJ=no 15876 ;; 15877 esac 15878 fi 15879 ;; 15880 15881 dgux*) 15882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15883 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15884 hardcode_shlibpath_var_GCJ=no 15885 ;; 15886 15887 freebsd1*) 15888 ld_shlibs_GCJ=no 15889 ;; 15890 15891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15892 # support. Future versions do this automatically, but an explicit c++rt0.o 15893 # does not break anything, and helps significantly (at the cost of a little 15894 # extra space). 15895 freebsd2.2*) 15896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15897 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15898 hardcode_direct_GCJ=yes 15899 hardcode_shlibpath_var_GCJ=no 15900 ;; 15901 15902 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15903 freebsd2*) 15904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15905 hardcode_direct_GCJ=yes 15906 hardcode_minus_L_GCJ=yes 15907 hardcode_shlibpath_var_GCJ=no 15908 ;; 15909 15910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15911 freebsd* | kfreebsd*-gnu | dragonfly*) 15912 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15913 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15914 hardcode_direct_GCJ=yes 15915 hardcode_shlibpath_var_GCJ=no 15916 ;; 15917 15918 hpux9*) 15919 if test "$GCC" = yes; then 15920 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' 15921 else 15922 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' 15923 fi 15924 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15925 hardcode_libdir_separator_GCJ=: 15926 hardcode_direct_GCJ=yes 15927 15928 # hardcode_minus_L: Not really in the search PATH, 15929 # but as the default location of the library. 15930 hardcode_minus_L_GCJ=yes 15931 export_dynamic_flag_spec_GCJ='${wl}-E' 15932 ;; 15933 15934 hpux10*) 15935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15936 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15937 else 15938 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15939 fi 15940 if test "$with_gnu_ld" = no; then 15941 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15942 hardcode_libdir_separator_GCJ=: 15943 15944 hardcode_direct_GCJ=yes 15945 export_dynamic_flag_spec_GCJ='${wl}-E' 15946 15947 # hardcode_minus_L: Not really in the search PATH, 15948 # but as the default location of the library. 15949 hardcode_minus_L_GCJ=yes 15950 fi 15951 ;; 15952 15953 hpux11*) 15954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15955 case $host_cpu in 15956 hppa*64*) 15957 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15958 ;; 15959 ia64*) 15960 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15961 ;; 15962 *) 15963 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15964 ;; 15965 esac 15966 else 15967 case $host_cpu in 15968 hppa*64*) 15969 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15970 ;; 15971 ia64*) 15972 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15973 ;; 15974 *) 15975 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15976 ;; 15977 esac 15978 fi 15979 if test "$with_gnu_ld" = no; then 15980 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15981 hardcode_libdir_separator_GCJ=: 15982 15983 case $host_cpu in 15984 hppa*64*|ia64*) 15985 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 15986 hardcode_direct_GCJ=no 15987 hardcode_shlibpath_var_GCJ=no 15988 ;; 15989 *) 15990 hardcode_direct_GCJ=yes 15991 export_dynamic_flag_spec_GCJ='${wl}-E' 15992 15993 # hardcode_minus_L: Not really in the search PATH, 15994 # but as the default location of the library. 15995 hardcode_minus_L_GCJ=yes 15996 ;; 15997 esac 15998 fi 15999 ;; 16000 16001 irix5* | irix6* | nonstopux*) 16002 if test "$GCC" = yes; then 16003 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' 16004 else 16005 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' 16006 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16007 fi 16008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16009 hardcode_libdir_separator_GCJ=: 16010 link_all_deplibs_GCJ=yes 16011 ;; 16012 16013 netbsd*) 16014 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16015 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16016 else 16017 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16018 fi 16019 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16020 hardcode_direct_GCJ=yes 16021 hardcode_shlibpath_var_GCJ=no 16022 ;; 16023 16024 newsos6) 16025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16026 hardcode_direct_GCJ=yes 16027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16028 hardcode_libdir_separator_GCJ=: 16029 hardcode_shlibpath_var_GCJ=no 16030 ;; 16031 16032 openbsd*) 16033 hardcode_direct_GCJ=yes 16034 hardcode_shlibpath_var_GCJ=no 16035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16036 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16037 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16039 export_dynamic_flag_spec_GCJ='${wl}-E' 16040 else 16041 case $host_os in 16042 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16043 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16044 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16045 ;; 16046 *) 16047 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16049 ;; 16050 esac 16051 fi 16052 ;; 16053 16054 os2*) 16055 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16056 hardcode_minus_L_GCJ=yes 16057 allow_undefined_flag_GCJ=unsupported 16058 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' 16059 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16060 ;; 16061 16062 osf3*) 16063 if test "$GCC" = yes; then 16064 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16065 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' 16066 else 16067 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16068 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' 16069 fi 16070 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16071 hardcode_libdir_separator_GCJ=: 16072 ;; 16073 16074 osf4* | osf5*) # as osf3* with the addition of -msym flag 16075 if test "$GCC" = yes; then 16076 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16077 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' 16078 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16079 else 16080 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16081 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' 16082 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~ 16083 $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' 16084 16085 # Both c and cxx compiler support -rpath directly 16086 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16087 fi 16088 hardcode_libdir_separator_GCJ=: 16089 ;; 16090 16091 solaris*) 16092 no_undefined_flag_GCJ=' -z text' 16093 if test "$GCC" = yes; then 16094 wlarc='${wl}' 16095 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16096 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16097 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16098 else 16099 wlarc='' 16100 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16101 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16102 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16103 fi 16104 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16105 hardcode_shlibpath_var_GCJ=no 16106 case $host_os in 16107 solaris2.[0-5] | solaris2.[0-5].*) ;; 16108 *) 16109 # The compiler driver will combine linker options so we 16110 # cannot just pass the convience library names through 16111 # without $wl, iff we do not link with $LD. 16112 # Luckily, gcc supports the same syntax we need for Sun Studio. 16113 # Supported since Solaris 2.6 (maybe 2.5.1?) 16114 case $wlarc in 16115 '') 16116 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16117 *) 16118 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' ;; 16119 esac ;; 16120 esac 16121 link_all_deplibs_GCJ=yes 16122 ;; 16123 16124 sunos4*) 16125 if test "x$host_vendor" = xsequent; then 16126 # Use $CC to link under sequent, because it throws in some extra .o 16127 # files that make .init and .fini sections work. 16128 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16129 else 16130 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16131 fi 16132 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16133 hardcode_direct_GCJ=yes 16134 hardcode_minus_L_GCJ=yes 16135 hardcode_shlibpath_var_GCJ=no 16136 ;; 16137 16138 sysv4) 16139 case $host_vendor in 16140 sni) 16141 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16142 hardcode_direct_GCJ=yes # is this really true??? 16143 ;; 16144 siemens) 16145 ## LD is ld it makes a PLAMLIB 16146 ## CC just makes a GrossModule. 16147 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16148 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16149 hardcode_direct_GCJ=no 16150 ;; 16151 motorola) 16152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16153 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16154 ;; 16155 esac 16156 runpath_var='LD_RUN_PATH' 16157 hardcode_shlibpath_var_GCJ=no 16158 ;; 16159 16160 sysv4.3*) 16161 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16162 hardcode_shlibpath_var_GCJ=no 16163 export_dynamic_flag_spec_GCJ='-Bexport' 16164 ;; 16165 16166 sysv4*MP*) 16167 if test -d /usr/nec; then 16168 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16169 hardcode_shlibpath_var_GCJ=no 16170 runpath_var=LD_RUN_PATH 16171 hardcode_runpath_var=yes 16172 ld_shlibs_GCJ=yes 16173 fi 16174 ;; 16175 16176 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16177 no_undefined_flag_GCJ='${wl}-z,text' 16178 archive_cmds_need_lc_GCJ=no 16179 hardcode_shlibpath_var_GCJ=no 16180 runpath_var='LD_RUN_PATH' 16181 16182 if test "$GCC" = yes; then 16183 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16184 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16185 else 16186 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16187 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16188 fi 16189 ;; 16190 16191 sysv5* | sco3.2v5* | sco5v6*) 16192 # Note: We can NOT use -z defs as we might desire, because we do not 16193 # link with -lc, and that would cause any symbols used from libc to 16194 # always be unresolved, which means just about no library would 16195 # ever link correctly. If we're not using GNU ld we use -z text 16196 # though, which does catch some bad symbols but isn't as heavy-handed 16197 # as -z defs. 16198 no_undefined_flag_GCJ='${wl}-z,text' 16199 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16200 archive_cmds_need_lc_GCJ=no 16201 hardcode_shlibpath_var_GCJ=no 16202 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16203 hardcode_libdir_separator_GCJ=':' 16204 link_all_deplibs_GCJ=yes 16205 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16206 runpath_var='LD_RUN_PATH' 16207 16208 if test "$GCC" = yes; then 16209 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16210 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16211 else 16212 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16213 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16214 fi 16215 ;; 16216 16217 uts4*) 16218 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16219 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16220 hardcode_shlibpath_var_GCJ=no 16221 ;; 16222 16223 *) 16224 ld_shlibs_GCJ=no 16225 ;; 16226 esac 16227 fi 16228 16229echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16230echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16231test "$ld_shlibs_GCJ" = no && can_build_shared=no 16232 16233# 16234# Do we need to explicitly link libc? 16235# 16236case "x$archive_cmds_need_lc_GCJ" in 16237x|xyes) 16238 # Assume -lc should be added 16239 archive_cmds_need_lc_GCJ=yes 16240 16241 if test "$enable_shared" = yes && test "$GCC" = yes; then 16242 case $archive_cmds_GCJ in 16243 *'~'*) 16244 # FIXME: we may have to deal with multi-command sequences. 16245 ;; 16246 '$CC '*) 16247 # Test whether the compiler implicitly links with -lc since on some 16248 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16249 # to ld, don't add -lc before -lgcc. 16250 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16251echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16252 $rm conftest* 16253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16254 16255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16256 (eval $ac_compile) 2>&5 16257 ac_status=$? 16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16259 (exit $ac_status); } 2>conftest.err; then 16260 soname=conftest 16261 lib=conftest 16262 libobjs=conftest.$ac_objext 16263 deplibs= 16264 wl=$lt_prog_compiler_wl_GCJ 16265 pic_flag=$lt_prog_compiler_pic_GCJ 16266 compiler_flags=-v 16267 linker_flags=-v 16268 verstring= 16269 output_objdir=. 16270 libname=conftest 16271 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16272 allow_undefined_flag_GCJ= 16273 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16274 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16275 ac_status=$? 16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16277 (exit $ac_status); } 16278 then 16279 archive_cmds_need_lc_GCJ=no 16280 else 16281 archive_cmds_need_lc_GCJ=yes 16282 fi 16283 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16284 else 16285 cat conftest.err 1>&5 16286 fi 16287 $rm conftest* 16288 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16289echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16290 ;; 16291 esac 16292 fi 16293 ;; 16294esac 16295 16296echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16297echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16298library_names_spec= 16299libname_spec='lib$name' 16300soname_spec= 16301shrext_cmds=".so" 16302postinstall_cmds= 16303postuninstall_cmds= 16304finish_cmds= 16305finish_eval= 16306shlibpath_var= 16307shlibpath_overrides_runpath=unknown 16308version_type=none 16309dynamic_linker="$host_os ld.so" 16310sys_lib_dlsearch_path_spec="/lib /usr/lib" 16311if test "$GCC" = yes; then 16312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16313 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16314 # if the path contains ";" then we assume it to be the separator 16315 # otherwise default to the standard path separator (i.e. ":") - it is 16316 # assumed that no part of a normal pathname contains ";" but that should 16317 # okay in the real world where ";" in dirpaths is itself problematic. 16318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16319 else 16320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16321 fi 16322else 16323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16324fi 16325need_lib_prefix=unknown 16326hardcode_into_libs=no 16327 16328# when you set need_version to no, make sure it does not cause -set_version 16329# flags to be left without arguments 16330need_version=unknown 16331 16332case $host_os in 16333aix3*) 16334 version_type=linux 16335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16336 shlibpath_var=LIBPATH 16337 16338 # AIX 3 has no versioning support, so we append a major version to the name. 16339 soname_spec='${libname}${release}${shared_ext}$major' 16340 ;; 16341 16342aix4* | aix5*) 16343 version_type=linux 16344 need_lib_prefix=no 16345 need_version=no 16346 hardcode_into_libs=yes 16347 if test "$host_cpu" = ia64; then 16348 # AIX 5 supports IA64 16349 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16350 shlibpath_var=LD_LIBRARY_PATH 16351 else 16352 # With GCC up to 2.95.x, collect2 would create an import file 16353 # for dependence libraries. The import file would start with 16354 # the line `#! .'. This would cause the generated library to 16355 # depend on `.', always an invalid library. This was fixed in 16356 # development snapshots of GCC prior to 3.0. 16357 case $host_os in 16358 aix4 | aix4.[01] | aix4.[01].*) 16359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16360 echo ' yes ' 16361 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16362 : 16363 else 16364 can_build_shared=no 16365 fi 16366 ;; 16367 esac 16368 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16369 # soname into executable. Probably we can add versioning support to 16370 # collect2, so additional links can be useful in future. 16371 if test "$aix_use_runtimelinking" = yes; then 16372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16373 # instead of lib<name>.a to let people know that these are not 16374 # typical AIX shared libraries. 16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16376 else 16377 # We preserve .a as extension for shared libraries through AIX4.2 16378 # and later when we are not doing run time linking. 16379 library_names_spec='${libname}${release}.a $libname.a' 16380 soname_spec='${libname}${release}${shared_ext}$major' 16381 fi 16382 shlibpath_var=LIBPATH 16383 fi 16384 ;; 16385 16386amigaos*) 16387 library_names_spec='$libname.ixlibrary $libname.a' 16388 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16389 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' 16390 ;; 16391 16392beos*) 16393 library_names_spec='${libname}${shared_ext}' 16394 dynamic_linker="$host_os ld.so" 16395 shlibpath_var=LIBRARY_PATH 16396 ;; 16397 16398bsdi[45]*) 16399 version_type=linux 16400 need_version=no 16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16402 soname_spec='${libname}${release}${shared_ext}$major' 16403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16404 shlibpath_var=LD_LIBRARY_PATH 16405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16407 # the default ld.so.conf also contains /usr/contrib/lib and 16408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16409 # libtool to hard-code these into programs 16410 ;; 16411 16412cygwin* | mingw* | pw32*) 16413 version_type=windows 16414 shrext_cmds=".dll" 16415 need_version=no 16416 need_lib_prefix=no 16417 16418 case $GCC,$host_os in 16419 yes,cygwin* | yes,mingw* | yes,pw32*) 16420 library_names_spec='$libname.dll.a' 16421 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16422 postinstall_cmds='base_file=`basename \${file}`~ 16423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16424 dldir=$destdir/`dirname \$dlpath`~ 16425 test -d \$dldir || mkdir -p \$dldir~ 16426 $install_prog $dir/$dlname \$dldir/$dlname~ 16427 chmod a+x \$dldir/$dlname' 16428 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16429 dlpath=$dir/\$dldll~ 16430 $rm \$dlpath' 16431 shlibpath_overrides_runpath=yes 16432 16433 case $host_os in 16434 cygwin*) 16435 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16436 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16437 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16438 ;; 16439 mingw*) 16440 # MinGW DLLs use traditional 'lib' prefix 16441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16442 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16443 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16444 # It is most probably a Windows format PATH printed by 16445 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16446 # path with ; separators, and with drive letters. We can handle the 16447 # drive letters (cygwin fileutils understands them), so leave them, 16448 # especially as we might pass files found there to a mingw objdump, 16449 # which wouldn't understand a cygwinified path. Ahh. 16450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16451 else 16452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16453 fi 16454 ;; 16455 pw32*) 16456 # pw32 DLLs use 'pw' prefix rather than 'lib' 16457 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16458 ;; 16459 esac 16460 ;; 16461 16462 *) 16463 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16464 ;; 16465 esac 16466 dynamic_linker='Win32 ld.exe' 16467 # FIXME: first we should search . and the directory the executable is in 16468 shlibpath_var=PATH 16469 ;; 16470 16471darwin* | rhapsody*) 16472 dynamic_linker="$host_os dyld" 16473 version_type=darwin 16474 need_lib_prefix=no 16475 need_version=no 16476 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16477 soname_spec='${libname}${release}${major}$shared_ext' 16478 shlibpath_overrides_runpath=yes 16479 shlibpath_var=DYLD_LIBRARY_PATH 16480 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16481 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16482 if test "$GCC" = yes; then 16483 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"` 16484 else 16485 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16486 fi 16487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16488 ;; 16489 16490dgux*) 16491 version_type=linux 16492 need_lib_prefix=no 16493 need_version=no 16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16495 soname_spec='${libname}${release}${shared_ext}$major' 16496 shlibpath_var=LD_LIBRARY_PATH 16497 ;; 16498 16499freebsd1*) 16500 dynamic_linker=no 16501 ;; 16502 16503kfreebsd*-gnu) 16504 version_type=linux 16505 need_lib_prefix=no 16506 need_version=no 16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16508 soname_spec='${libname}${release}${shared_ext}$major' 16509 shlibpath_var=LD_LIBRARY_PATH 16510 shlibpath_overrides_runpath=no 16511 hardcode_into_libs=yes 16512 dynamic_linker='GNU ld.so' 16513 ;; 16514 16515freebsd* | dragonfly*) 16516 # DragonFly does not have aout. When/if they implement a new 16517 # versioning mechanism, adjust this. 16518 if test -x /usr/bin/objformat; then 16519 objformat=`/usr/bin/objformat` 16520 else 16521 case $host_os in 16522 freebsd[123]*) objformat=aout ;; 16523 *) objformat=elf ;; 16524 esac 16525 fi 16526 version_type=freebsd-$objformat 16527 case $version_type in 16528 freebsd-elf*) 16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16530 need_version=no 16531 need_lib_prefix=no 16532 ;; 16533 freebsd-*) 16534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16535 need_version=yes 16536 ;; 16537 esac 16538 shlibpath_var=LD_LIBRARY_PATH 16539 case $host_os in 16540 freebsd2*) 16541 shlibpath_overrides_runpath=yes 16542 ;; 16543 freebsd3.[01]* | freebsdelf3.[01]*) 16544 shlibpath_overrides_runpath=yes 16545 hardcode_into_libs=yes 16546 ;; 16547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16549 shlibpath_overrides_runpath=no 16550 hardcode_into_libs=yes 16551 ;; 16552 freebsd*) # from 4.6 on 16553 shlibpath_overrides_runpath=yes 16554 hardcode_into_libs=yes 16555 ;; 16556 esac 16557 ;; 16558 16559gnu*) 16560 version_type=linux 16561 need_lib_prefix=no 16562 need_version=no 16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16564 soname_spec='${libname}${release}${shared_ext}$major' 16565 shlibpath_var=LD_LIBRARY_PATH 16566 hardcode_into_libs=yes 16567 ;; 16568 16569hpux9* | hpux10* | hpux11*) 16570 # Give a soname corresponding to the major version so that dld.sl refuses to 16571 # link against other versions. 16572 version_type=sunos 16573 need_lib_prefix=no 16574 need_version=no 16575 case $host_cpu in 16576 ia64*) 16577 shrext_cmds='.so' 16578 hardcode_into_libs=yes 16579 dynamic_linker="$host_os dld.so" 16580 shlibpath_var=LD_LIBRARY_PATH 16581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16583 soname_spec='${libname}${release}${shared_ext}$major' 16584 if test "X$HPUX_IA64_MODE" = X32; then 16585 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16586 else 16587 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16588 fi 16589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16590 ;; 16591 hppa*64*) 16592 shrext_cmds='.sl' 16593 hardcode_into_libs=yes 16594 dynamic_linker="$host_os dld.sl" 16595 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16598 soname_spec='${libname}${release}${shared_ext}$major' 16599 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16601 ;; 16602 *) 16603 shrext_cmds='.sl' 16604 dynamic_linker="$host_os dld.sl" 16605 shlibpath_var=SHLIB_PATH 16606 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16608 soname_spec='${libname}${release}${shared_ext}$major' 16609 ;; 16610 esac 16611 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16612 postinstall_cmds='chmod 555 $lib' 16613 ;; 16614 16615interix3*) 16616 version_type=linux 16617 need_lib_prefix=no 16618 need_version=no 16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16620 soname_spec='${libname}${release}${shared_ext}$major' 16621 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16622 shlibpath_var=LD_LIBRARY_PATH 16623 shlibpath_overrides_runpath=no 16624 hardcode_into_libs=yes 16625 ;; 16626 16627irix5* | irix6* | nonstopux*) 16628 case $host_os in 16629 nonstopux*) version_type=nonstopux ;; 16630 *) 16631 if test "$lt_cv_prog_gnu_ld" = yes; then 16632 version_type=linux 16633 else 16634 version_type=irix 16635 fi ;; 16636 esac 16637 need_lib_prefix=no 16638 need_version=no 16639 soname_spec='${libname}${release}${shared_ext}$major' 16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16641 case $host_os in 16642 irix5* | nonstopux*) 16643 libsuff= shlibsuff= 16644 ;; 16645 *) 16646 case $LD in # libtool.m4 will add one of these switches to LD 16647 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16648 libsuff= shlibsuff= libmagic=32-bit;; 16649 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16650 libsuff=32 shlibsuff=N32 libmagic=N32;; 16651 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16652 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16653 *) libsuff= shlibsuff= libmagic=never-match;; 16654 esac 16655 ;; 16656 esac 16657 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16658 shlibpath_overrides_runpath=no 16659 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16660 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16661 hardcode_into_libs=yes 16662 ;; 16663 16664# No shared lib support for Linux oldld, aout, or coff. 16665linux*oldld* | linux*aout* | linux*coff*) 16666 dynamic_linker=no 16667 ;; 16668 16669# This must be Linux ELF. 16670linux*) 16671 version_type=linux 16672 need_lib_prefix=no 16673 need_version=no 16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16675 soname_spec='${libname}${release}${shared_ext}$major' 16676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16677 shlibpath_var=LD_LIBRARY_PATH 16678 shlibpath_overrides_runpath=no 16679 # This implies no fast_install, which is unacceptable. 16680 # Some rework will be needed to allow for fast_install 16681 # before this can be enabled. 16682 hardcode_into_libs=yes 16683 16684 # find out which ABI we are using 16685 libsuff= 16686 case "$host_cpu" in 16687 x86_64*|s390x*|powerpc64*) 16688 echo '#line 16688 "configure"' > conftest.$ac_ext 16689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16690 (eval $ac_compile) 2>&5 16691 ac_status=$? 16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16693 (exit $ac_status); }; then 16694 case `/usr/bin/file conftest.$ac_objext` in 16695 *64-bit*) 16696 libsuff=64 16697 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 16698 ;; 16699 esac 16700 fi 16701 rm -rf conftest* 16702 ;; 16703 esac 16704 16705 # Append ld.so.conf contents to the search path 16706 if test -f /etc/ld.so.conf; then 16707 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16708 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 16709 fi 16710 16711 # We used to test for /lib/ld.so.1 and disable shared libraries on 16712 # powerpc, because MkLinux only supported shared libraries with the 16713 # GNU dynamic linker. Since this was broken with cross compilers, 16714 # most powerpc-linux boxes support dynamic linking these days and 16715 # people can always --disable-shared, the test was removed, and we 16716 # assume the GNU/Linux dynamic linker is in use. 16717 dynamic_linker='GNU/Linux ld.so' 16718 ;; 16719 16720knetbsd*-gnu) 16721 version_type=linux 16722 need_lib_prefix=no 16723 need_version=no 16724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16725 soname_spec='${libname}${release}${shared_ext}$major' 16726 shlibpath_var=LD_LIBRARY_PATH 16727 shlibpath_overrides_runpath=no 16728 hardcode_into_libs=yes 16729 dynamic_linker='GNU ld.so' 16730 ;; 16731 16732netbsd*) 16733 version_type=sunos 16734 need_lib_prefix=no 16735 need_version=no 16736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16739 dynamic_linker='NetBSD (a.out) ld.so' 16740 else 16741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16742 soname_spec='${libname}${release}${shared_ext}$major' 16743 dynamic_linker='NetBSD ld.elf_so' 16744 fi 16745 shlibpath_var=LD_LIBRARY_PATH 16746 shlibpath_overrides_runpath=yes 16747 hardcode_into_libs=yes 16748 ;; 16749 16750newsos6) 16751 version_type=linux 16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16753 shlibpath_var=LD_LIBRARY_PATH 16754 shlibpath_overrides_runpath=yes 16755 ;; 16756 16757nto-qnx*) 16758 version_type=linux 16759 need_lib_prefix=no 16760 need_version=no 16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16762 soname_spec='${libname}${release}${shared_ext}$major' 16763 shlibpath_var=LD_LIBRARY_PATH 16764 shlibpath_overrides_runpath=yes 16765 ;; 16766 16767openbsd*) 16768 version_type=sunos 16769 sys_lib_dlsearch_path_spec="/usr/lib" 16770 need_lib_prefix=no 16771 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16772 case $host_os in 16773 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16774 *) need_version=no ;; 16775 esac 16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16778 shlibpath_var=LD_LIBRARY_PATH 16779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16780 case $host_os in 16781 openbsd2.[89] | openbsd2.[89].*) 16782 shlibpath_overrides_runpath=no 16783 ;; 16784 *) 16785 shlibpath_overrides_runpath=yes 16786 ;; 16787 esac 16788 else 16789 shlibpath_overrides_runpath=yes 16790 fi 16791 ;; 16792 16793os2*) 16794 libname_spec='$name' 16795 shrext_cmds=".dll" 16796 need_lib_prefix=no 16797 library_names_spec='$libname${shared_ext} $libname.a' 16798 dynamic_linker='OS/2 ld.exe' 16799 shlibpath_var=LIBPATH 16800 ;; 16801 16802osf3* | osf4* | osf5*) 16803 version_type=osf 16804 need_lib_prefix=no 16805 need_version=no 16806 soname_spec='${libname}${release}${shared_ext}$major' 16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16808 shlibpath_var=LD_LIBRARY_PATH 16809 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16810 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16811 ;; 16812 16813solaris*) 16814 version_type=linux 16815 need_lib_prefix=no 16816 need_version=no 16817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16818 soname_spec='${libname}${release}${shared_ext}$major' 16819 shlibpath_var=LD_LIBRARY_PATH 16820 shlibpath_overrides_runpath=yes 16821 hardcode_into_libs=yes 16822 # ldd complains unless libraries are executable 16823 postinstall_cmds='chmod +x $lib' 16824 ;; 16825 16826sunos4*) 16827 version_type=sunos 16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16830 shlibpath_var=LD_LIBRARY_PATH 16831 shlibpath_overrides_runpath=yes 16832 if test "$with_gnu_ld" = yes; then 16833 need_lib_prefix=no 16834 fi 16835 need_version=yes 16836 ;; 16837 16838sysv4 | sysv4.3*) 16839 version_type=linux 16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16841 soname_spec='${libname}${release}${shared_ext}$major' 16842 shlibpath_var=LD_LIBRARY_PATH 16843 case $host_vendor in 16844 sni) 16845 shlibpath_overrides_runpath=no 16846 need_lib_prefix=no 16847 export_dynamic_flag_spec='${wl}-Blargedynsym' 16848 runpath_var=LD_RUN_PATH 16849 ;; 16850 siemens) 16851 need_lib_prefix=no 16852 ;; 16853 motorola) 16854 need_lib_prefix=no 16855 need_version=no 16856 shlibpath_overrides_runpath=no 16857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16858 ;; 16859 esac 16860 ;; 16861 16862sysv4*MP*) 16863 if test -d /usr/nec ;then 16864 version_type=linux 16865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16866 soname_spec='$libname${shared_ext}.$major' 16867 shlibpath_var=LD_LIBRARY_PATH 16868 fi 16869 ;; 16870 16871sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16872 version_type=freebsd-elf 16873 need_lib_prefix=no 16874 need_version=no 16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16876 soname_spec='${libname}${release}${shared_ext}$major' 16877 shlibpath_var=LD_LIBRARY_PATH 16878 hardcode_into_libs=yes 16879 if test "$with_gnu_ld" = yes; then 16880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16881 shlibpath_overrides_runpath=no 16882 else 16883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16884 shlibpath_overrides_runpath=yes 16885 case $host_os in 16886 sco3.2v5*) 16887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16888 ;; 16889 esac 16890 fi 16891 sys_lib_dlsearch_path_spec='/usr/lib' 16892 ;; 16893 16894uts4*) 16895 version_type=linux 16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16897 soname_spec='${libname}${release}${shared_ext}$major' 16898 shlibpath_var=LD_LIBRARY_PATH 16899 ;; 16900 16901*) 16902 dynamic_linker=no 16903 ;; 16904esac 16905echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16906echo "${ECHO_T}$dynamic_linker" >&6 16907test "$dynamic_linker" = no && can_build_shared=no 16908 16909variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16910if test "$GCC" = yes; then 16911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16912fi 16913 16914echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16915echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16916hardcode_action_GCJ= 16917if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 16918 test -n "$runpath_var_GCJ" || \ 16919 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 16920 16921 # We can hardcode non-existant directories. 16922 if test "$hardcode_direct_GCJ" != no && 16923 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16924 # have to relink, otherwise we might link with an installed library 16925 # when we should be linking with a yet-to-be-installed one 16926 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 16927 test "$hardcode_minus_L_GCJ" != no; then 16928 # Linking always hardcodes the temporary library directory. 16929 hardcode_action_GCJ=relink 16930 else 16931 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16932 hardcode_action_GCJ=immediate 16933 fi 16934else 16935 # We cannot hardcode anything, or else we can only hardcode existing 16936 # directories. 16937 hardcode_action_GCJ=unsupported 16938fi 16939echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 16940echo "${ECHO_T}$hardcode_action_GCJ" >&6 16941 16942if test "$hardcode_action_GCJ" = relink; then 16943 # Fast installation is not supported 16944 enable_fast_install=no 16945elif test "$shlibpath_overrides_runpath" = yes || 16946 test "$enable_shared" = no; then 16947 # Fast installation is not necessary 16948 enable_fast_install=needless 16949fi 16950 16951 16952# The else clause should only fire when bootstrapping the 16953# libtool distribution, otherwise you forgot to ship ltmain.sh 16954# with your package, and you will get complaints that there are 16955# no rules to generate ltmain.sh. 16956if test -f "$ltmain"; then 16957 # See if we are running on zsh, and set the options which allow our commands through 16958 # without removal of \ escapes. 16959 if test -n "${ZSH_VERSION+set}" ; then 16960 setopt NO_GLOB_SUBST 16961 fi 16962 # Now quote all the things that may contain metacharacters while being 16963 # careful not to overquote the AC_SUBSTed values. We take copies of the 16964 # variables and quote the copies for generation of the libtool script. 16965 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16966 SED SHELL STRIP \ 16967 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16968 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16969 deplibs_check_method reload_flag reload_cmds need_locks \ 16970 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16971 lt_cv_sys_global_symbol_to_c_name_address \ 16972 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16973 old_postinstall_cmds old_postuninstall_cmds \ 16974 compiler_GCJ \ 16975 CC_GCJ \ 16976 LD_GCJ \ 16977 lt_prog_compiler_wl_GCJ \ 16978 lt_prog_compiler_pic_GCJ \ 16979 lt_prog_compiler_static_GCJ \ 16980 lt_prog_compiler_no_builtin_flag_GCJ \ 16981 export_dynamic_flag_spec_GCJ \ 16982 thread_safe_flag_spec_GCJ \ 16983 whole_archive_flag_spec_GCJ \ 16984 enable_shared_with_static_runtimes_GCJ \ 16985 old_archive_cmds_GCJ \ 16986 old_archive_from_new_cmds_GCJ \ 16987 predep_objects_GCJ \ 16988 postdep_objects_GCJ \ 16989 predeps_GCJ \ 16990 postdeps_GCJ \ 16991 compiler_lib_search_path_GCJ \ 16992 archive_cmds_GCJ \ 16993 archive_expsym_cmds_GCJ \ 16994 postinstall_cmds_GCJ \ 16995 postuninstall_cmds_GCJ \ 16996 old_archive_from_expsyms_cmds_GCJ \ 16997 allow_undefined_flag_GCJ \ 16998 no_undefined_flag_GCJ \ 16999 export_symbols_cmds_GCJ \ 17000 hardcode_libdir_flag_spec_GCJ \ 17001 hardcode_libdir_flag_spec_ld_GCJ \ 17002 hardcode_libdir_separator_GCJ \ 17003 hardcode_automatic_GCJ \ 17004 module_cmds_GCJ \ 17005 module_expsym_cmds_GCJ \ 17006 lt_cv_prog_compiler_c_o_GCJ \ 17007 exclude_expsyms_GCJ \ 17008 include_expsyms_GCJ; do 17009 17010 case $var in 17011 old_archive_cmds_GCJ | \ 17012 old_archive_from_new_cmds_GCJ | \ 17013 archive_cmds_GCJ | \ 17014 archive_expsym_cmds_GCJ | \ 17015 module_cmds_GCJ | \ 17016 module_expsym_cmds_GCJ | \ 17017 old_archive_from_expsyms_cmds_GCJ | \ 17018 export_symbols_cmds_GCJ | \ 17019 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17020 postinstall_cmds | postuninstall_cmds | \ 17021 old_postinstall_cmds | old_postuninstall_cmds | \ 17022 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17023 # Double-quote double-evaled strings. 17024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17025 ;; 17026 *) 17027 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17028 ;; 17029 esac 17030 done 17031 17032 case $lt_echo in 17033 *'\$0 --fallback-echo"') 17034 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17035 ;; 17036 esac 17037 17038cfgfile="$ofile" 17039 17040 cat <<__EOF__ >> "$cfgfile" 17041# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17042 17043# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17044 17045# Shell to use when invoking shell scripts. 17046SHELL=$lt_SHELL 17047 17048# Whether or not to build shared libraries. 17049build_libtool_libs=$enable_shared 17050 17051# Whether or not to build static libraries. 17052build_old_libs=$enable_static 17053 17054# Whether or not to add -lc for building shared libraries. 17055build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17056 17057# Whether or not to disallow shared libs when runtime libs are static 17058allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17059 17060# Whether or not to optimize for fast installation. 17061fast_install=$enable_fast_install 17062 17063# The host system. 17064host_alias=$host_alias 17065host=$host 17066host_os=$host_os 17067 17068# The build system. 17069build_alias=$build_alias 17070build=$build 17071build_os=$build_os 17072 17073# An echo program that does not interpret backslashes. 17074echo=$lt_echo 17075 17076# The archiver. 17077AR=$lt_AR 17078AR_FLAGS=$lt_AR_FLAGS 17079 17080# A C compiler. 17081LTCC=$lt_LTCC 17082 17083# LTCC compiler flags. 17084LTCFLAGS=$lt_LTCFLAGS 17085 17086# A language-specific compiler. 17087CC=$lt_compiler_GCJ 17088 17089# Is the compiler the GNU C compiler? 17090with_gcc=$GCC_GCJ 17091 17092gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 17093gcc_ver=\`gcc -dumpversion\` 17094 17095# An ERE matcher. 17096EGREP=$lt_EGREP 17097 17098# The linker used to build libraries. 17099LD=$lt_LD_GCJ 17100 17101# Whether we need hard or soft links. 17102LN_S=$lt_LN_S 17103 17104# A BSD-compatible nm program. 17105NM=$lt_NM 17106 17107# A symbol stripping program 17108STRIP=$lt_STRIP 17109 17110# Used to examine libraries when file_magic_cmd begins "file" 17111MAGIC_CMD=$MAGIC_CMD 17112 17113# Used on cygwin: DLL creation program. 17114DLLTOOL="$DLLTOOL" 17115 17116# Used on cygwin: object dumper. 17117OBJDUMP="$OBJDUMP" 17118 17119# Used on cygwin: assembler. 17120AS="$AS" 17121 17122# The name of the directory that contains temporary libtool files. 17123objdir=$objdir 17124 17125# How to create reloadable object files. 17126reload_flag=$lt_reload_flag 17127reload_cmds=$lt_reload_cmds 17128 17129# How to pass a linker flag through the compiler. 17130wl=$lt_lt_prog_compiler_wl_GCJ 17131 17132# Object file suffix (normally "o"). 17133objext="$ac_objext" 17134 17135# Old archive suffix (normally "a"). 17136libext="$libext" 17137 17138# Shared library suffix (normally ".so"). 17139shrext_cmds='$shrext_cmds' 17140 17141# Executable file suffix (normally ""). 17142exeext="$exeext" 17143 17144# Additional compiler flags for building library objects. 17145pic_flag=$lt_lt_prog_compiler_pic_GCJ 17146pic_mode=$pic_mode 17147 17148# What is the maximum length of a command? 17149max_cmd_len=$lt_cv_sys_max_cmd_len 17150 17151# Does compiler simultaneously support -c and -o options? 17152compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17153 17154# Must we lock files when doing compilation? 17155need_locks=$lt_need_locks 17156 17157# Do we need the lib prefix for modules? 17158need_lib_prefix=$need_lib_prefix 17159 17160# Do we need a version for libraries? 17161need_version=$need_version 17162 17163# Whether dlopen is supported. 17164dlopen_support=$enable_dlopen 17165 17166# Whether dlopen of programs is supported. 17167dlopen_self=$enable_dlopen_self 17168 17169# Whether dlopen of statically linked programs is supported. 17170dlopen_self_static=$enable_dlopen_self_static 17171 17172# Compiler flag to prevent dynamic linking. 17173link_static_flag=$lt_lt_prog_compiler_static_GCJ 17174 17175# Compiler flag to turn off builtin functions. 17176no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17177 17178# Compiler flag to allow reflexive dlopens. 17179export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17180 17181# Compiler flag to generate shared objects directly from archives. 17182whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17183 17184# Compiler flag to generate thread-safe objects. 17185thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17186 17187# Library versioning type. 17188version_type=$version_type 17189 17190# Format of library name prefix. 17191libname_spec=$lt_libname_spec 17192 17193# List of archive names. First name is the real one, the rest are links. 17194# The last name is the one that the linker finds with -lNAME. 17195library_names_spec=$lt_library_names_spec 17196 17197# The coded name of the library, if different from the real name. 17198soname_spec=$lt_soname_spec 17199 17200# Commands used to build and install an old-style archive. 17201RANLIB=$lt_RANLIB 17202old_archive_cmds=$lt_old_archive_cmds_GCJ 17203old_postinstall_cmds=$lt_old_postinstall_cmds 17204old_postuninstall_cmds=$lt_old_postuninstall_cmds 17205 17206# Create an old-style archive from a shared archive. 17207old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17208 17209# Create a temporary old-style archive to link instead of a shared archive. 17210old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17211 17212# Commands used to build and install a shared archive. 17213archive_cmds=$lt_archive_cmds_GCJ 17214archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17215postinstall_cmds=$lt_postinstall_cmds 17216postuninstall_cmds=$lt_postuninstall_cmds 17217 17218# Commands used to build a loadable module (assumed same as above if empty) 17219module_cmds=$lt_module_cmds_GCJ 17220module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17221 17222# Commands to strip libraries. 17223old_striplib=$lt_old_striplib 17224striplib=$lt_striplib 17225 17226# Dependencies to place before the objects being linked to create a 17227# shared library. 17228predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17229 17230# Dependencies to place after the objects being linked to create a 17231# shared library. 17232postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17233 17234# Dependencies to place before the objects being linked to create a 17235# shared library. 17236predeps=$lt_predeps_GCJ 17237 17238# Dependencies to place after the objects being linked to create a 17239# shared library. 17240postdeps=$lt_postdeps_GCJ 17241 17242# The library search path used internally by the compiler when linking 17243# a shared library. 17244compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17245 17246# Method to check whether dependent libraries are shared objects. 17247deplibs_check_method=$lt_deplibs_check_method 17248 17249# Command to use when deplibs_check_method == file_magic. 17250file_magic_cmd=$lt_file_magic_cmd 17251 17252# Flag that allows shared libraries with undefined symbols to be built. 17253allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17254 17255# Flag that forces no undefined symbols. 17256no_undefined_flag=$lt_no_undefined_flag_GCJ 17257 17258# Commands used to finish a libtool library installation in a directory. 17259finish_cmds=$lt_finish_cmds 17260 17261# Same as above, but a single script fragment to be evaled but not shown. 17262finish_eval=$lt_finish_eval 17263 17264# Take the output of nm and produce a listing of raw symbols and C names. 17265global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17266 17267# Transform the output of nm in a proper C declaration 17268global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17269 17270# Transform the output of nm in a C name address pair 17271global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17272 17273# This is the shared library runtime path variable. 17274runpath_var=$runpath_var 17275 17276# This is the shared library path variable. 17277shlibpath_var=$shlibpath_var 17278 17279# Is shlibpath searched before the hard-coded library search path? 17280shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17281 17282# How to hardcode a shared library path into an executable. 17283hardcode_action=$hardcode_action_GCJ 17284 17285# Whether we should hardcode library paths into libraries. 17286hardcode_into_libs=$hardcode_into_libs 17287 17288# Flag to hardcode \$libdir into a binary during linking. 17289# This must work even if \$libdir does not exist. 17290hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17291 17292# If ld is used when linking, flag to hardcode \$libdir into 17293# a binary during linking. This must work even if \$libdir does 17294# not exist. 17295hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17296 17297# Whether we need a single -rpath flag with a separated argument. 17298hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17299 17300# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17301# resulting binary. 17302hardcode_direct=$hardcode_direct_GCJ 17303 17304# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17305# resulting binary. 17306hardcode_minus_L=$hardcode_minus_L_GCJ 17307 17308# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17309# the resulting binary. 17310hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17311 17312# Set to yes if building a shared library automatically hardcodes DIR into the library 17313# and all subsequent libraries and executables linked against it. 17314hardcode_automatic=$hardcode_automatic_GCJ 17315 17316# Variables whose values should be saved in libtool wrapper scripts and 17317# restored at relink time. 17318variables_saved_for_relink="$variables_saved_for_relink" 17319 17320# Whether libtool must link a program against all its dependency libraries. 17321link_all_deplibs=$link_all_deplibs_GCJ 17322 17323# Compile-time system search path for libraries 17324sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17325 17326# Run-time system search path for libraries 17327sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17328 17329# Fix the shell variable \$srcfile for the compiler. 17330fix_srcfile_path="$fix_srcfile_path_GCJ" 17331 17332# Set to yes if exported symbols are required. 17333always_export_symbols=$always_export_symbols_GCJ 17334 17335# The commands to list exported symbols. 17336export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17337 17338# The commands to extract the exported symbol list from a shared archive. 17339extract_expsyms_cmds=$lt_extract_expsyms_cmds 17340 17341# Symbols that should not be listed in the preloaded symbols. 17342exclude_expsyms=$lt_exclude_expsyms_GCJ 17343 17344# Symbols that must always be exported. 17345include_expsyms=$lt_include_expsyms_GCJ 17346 17347# ### END LIBTOOL TAG CONFIG: $tagname 17348 17349__EOF__ 17350 17351 17352else 17353 # If there is no Makefile yet, we rely on a make rule to execute 17354 # `config.status --recheck' to rerun these tests and create the 17355 # libtool script then. 17356 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17357 if test -f "$ltmain_in"; then 17358 test -f Makefile && make "$ltmain" 17359 fi 17360fi 17361 17362 17363ac_ext=c 17364ac_cpp='$CPP $CPPFLAGS' 17365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17367ac_compiler_gnu=$ac_cv_c_compiler_gnu 17368 17369CC="$lt_save_CC" 17370 17371 else 17372 tagname="" 17373 fi 17374 ;; 17375 17376 RC) 17377 17378 17379 17380# Source file extension for RC test sources. 17381ac_ext=rc 17382 17383# Object file extension for compiled RC test sources. 17384objext=o 17385objext_RC=$objext 17386 17387# Code to be used in simple compile tests 17388lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 17389 17390# Code to be used in simple link tests 17391lt_simple_link_test_code="$lt_simple_compile_test_code" 17392 17393# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17394 17395# If no C compiler was specified, use CC. 17396LTCC=${LTCC-"$CC"} 17397 17398# If no C compiler flags were specified, use CFLAGS. 17399LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17400 17401# Allow CC to be a program name with arguments. 17402compiler=$CC 17403 17404 17405# save warnings/boilerplate of simple test code 17406ac_outfile=conftest.$ac_objext 17407printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17408eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17409_lt_compiler_boilerplate=`cat conftest.err` 17410$rm conftest* 17411 17412ac_outfile=conftest.$ac_objext 17413printf "$lt_simple_link_test_code" >conftest.$ac_ext 17414eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17415_lt_linker_boilerplate=`cat conftest.err` 17416$rm conftest* 17417 17418 17419# Allow CC to be a program name with arguments. 17420lt_save_CC="$CC" 17421CC=${RC-"windres"} 17422compiler=$CC 17423compiler_RC=$CC 17424for cc_temp in $compiler""; do 17425 case $cc_temp in 17426 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17427 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17428 \-*) ;; 17429 *) break;; 17430 esac 17431done 17432cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17433 17434lt_cv_prog_compiler_c_o_RC=yes 17435 17436# The else clause should only fire when bootstrapping the 17437# libtool distribution, otherwise you forgot to ship ltmain.sh 17438# with your package, and you will get complaints that there are 17439# no rules to generate ltmain.sh. 17440if test -f "$ltmain"; then 17441 # See if we are running on zsh, and set the options which allow our commands through 17442 # without removal of \ escapes. 17443 if test -n "${ZSH_VERSION+set}" ; then 17444 setopt NO_GLOB_SUBST 17445 fi 17446 # Now quote all the things that may contain metacharacters while being 17447 # careful not to overquote the AC_SUBSTed values. We take copies of the 17448 # variables and quote the copies for generation of the libtool script. 17449 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17450 SED SHELL STRIP \ 17451 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17452 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17453 deplibs_check_method reload_flag reload_cmds need_locks \ 17454 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17455 lt_cv_sys_global_symbol_to_c_name_address \ 17456 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17457 old_postinstall_cmds old_postuninstall_cmds \ 17458 compiler_RC \ 17459 CC_RC \ 17460 LD_RC \ 17461 lt_prog_compiler_wl_RC \ 17462 lt_prog_compiler_pic_RC \ 17463 lt_prog_compiler_static_RC \ 17464 lt_prog_compiler_no_builtin_flag_RC \ 17465 export_dynamic_flag_spec_RC \ 17466 thread_safe_flag_spec_RC \ 17467 whole_archive_flag_spec_RC \ 17468 enable_shared_with_static_runtimes_RC \ 17469 old_archive_cmds_RC \ 17470 old_archive_from_new_cmds_RC \ 17471 predep_objects_RC \ 17472 postdep_objects_RC \ 17473 predeps_RC \ 17474 postdeps_RC \ 17475 compiler_lib_search_path_RC \ 17476 archive_cmds_RC \ 17477 archive_expsym_cmds_RC \ 17478 postinstall_cmds_RC \ 17479 postuninstall_cmds_RC \ 17480 old_archive_from_expsyms_cmds_RC \ 17481 allow_undefined_flag_RC \ 17482 no_undefined_flag_RC \ 17483 export_symbols_cmds_RC \ 17484 hardcode_libdir_flag_spec_RC \ 17485 hardcode_libdir_flag_spec_ld_RC \ 17486 hardcode_libdir_separator_RC \ 17487 hardcode_automatic_RC \ 17488 module_cmds_RC \ 17489 module_expsym_cmds_RC \ 17490 lt_cv_prog_compiler_c_o_RC \ 17491 exclude_expsyms_RC \ 17492 include_expsyms_RC; do 17493 17494 case $var in 17495 old_archive_cmds_RC | \ 17496 old_archive_from_new_cmds_RC | \ 17497 archive_cmds_RC | \ 17498 archive_expsym_cmds_RC | \ 17499 module_cmds_RC | \ 17500 module_expsym_cmds_RC | \ 17501 old_archive_from_expsyms_cmds_RC | \ 17502 export_symbols_cmds_RC | \ 17503 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17504 postinstall_cmds | postuninstall_cmds | \ 17505 old_postinstall_cmds | old_postuninstall_cmds | \ 17506 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17507 # Double-quote double-evaled strings. 17508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17509 ;; 17510 *) 17511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17512 ;; 17513 esac 17514 done 17515 17516 case $lt_echo in 17517 *'\$0 --fallback-echo"') 17518 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17519 ;; 17520 esac 17521 17522cfgfile="$ofile" 17523 17524 cat <<__EOF__ >> "$cfgfile" 17525# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17526 17527# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17528 17529# Shell to use when invoking shell scripts. 17530SHELL=$lt_SHELL 17531 17532# Whether or not to build shared libraries. 17533build_libtool_libs=$enable_shared 17534 17535# Whether or not to build static libraries. 17536build_old_libs=$enable_static 17537 17538# Whether or not to add -lc for building shared libraries. 17539build_libtool_need_lc=$archive_cmds_need_lc_RC 17540 17541# Whether or not to disallow shared libs when runtime libs are static 17542allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 17543 17544# Whether or not to optimize for fast installation. 17545fast_install=$enable_fast_install 17546 17547# The host system. 17548host_alias=$host_alias 17549host=$host 17550host_os=$host_os 17551 17552# The build system. 17553build_alias=$build_alias 17554build=$build 17555build_os=$build_os 17556 17557# An echo program that does not interpret backslashes. 17558echo=$lt_echo 17559 17560# The archiver. 17561AR=$lt_AR 17562AR_FLAGS=$lt_AR_FLAGS 17563 17564# A C compiler. 17565LTCC=$lt_LTCC 17566 17567# LTCC compiler flags. 17568LTCFLAGS=$lt_LTCFLAGS 17569 17570# A language-specific compiler. 17571CC=$lt_compiler_RC 17572 17573# Is the compiler the GNU C compiler? 17574with_gcc=$GCC_RC 17575 17576gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 17577gcc_ver=\`gcc -dumpversion\` 17578 17579# An ERE matcher. 17580EGREP=$lt_EGREP 17581 17582# The linker used to build libraries. 17583LD=$lt_LD_RC 17584 17585# Whether we need hard or soft links. 17586LN_S=$lt_LN_S 17587 17588# A BSD-compatible nm program. 17589NM=$lt_NM 17590 17591# A symbol stripping program 17592STRIP=$lt_STRIP 17593 17594# Used to examine libraries when file_magic_cmd begins "file" 17595MAGIC_CMD=$MAGIC_CMD 17596 17597# Used on cygwin: DLL creation program. 17598DLLTOOL="$DLLTOOL" 17599 17600# Used on cygwin: object dumper. 17601OBJDUMP="$OBJDUMP" 17602 17603# Used on cygwin: assembler. 17604AS="$AS" 17605 17606# The name of the directory that contains temporary libtool files. 17607objdir=$objdir 17608 17609# How to create reloadable object files. 17610reload_flag=$lt_reload_flag 17611reload_cmds=$lt_reload_cmds 17612 17613# How to pass a linker flag through the compiler. 17614wl=$lt_lt_prog_compiler_wl_RC 17615 17616# Object file suffix (normally "o"). 17617objext="$ac_objext" 17618 17619# Old archive suffix (normally "a"). 17620libext="$libext" 17621 17622# Shared library suffix (normally ".so"). 17623shrext_cmds='$shrext_cmds' 17624 17625# Executable file suffix (normally ""). 17626exeext="$exeext" 17627 17628# Additional compiler flags for building library objects. 17629pic_flag=$lt_lt_prog_compiler_pic_RC 17630pic_mode=$pic_mode 17631 17632# What is the maximum length of a command? 17633max_cmd_len=$lt_cv_sys_max_cmd_len 17634 17635# Does compiler simultaneously support -c and -o options? 17636compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 17637 17638# Must we lock files when doing compilation? 17639need_locks=$lt_need_locks 17640 17641# Do we need the lib prefix for modules? 17642need_lib_prefix=$need_lib_prefix 17643 17644# Do we need a version for libraries? 17645need_version=$need_version 17646 17647# Whether dlopen is supported. 17648dlopen_support=$enable_dlopen 17649 17650# Whether dlopen of programs is supported. 17651dlopen_self=$enable_dlopen_self 17652 17653# Whether dlopen of statically linked programs is supported. 17654dlopen_self_static=$enable_dlopen_self_static 17655 17656# Compiler flag to prevent dynamic linking. 17657link_static_flag=$lt_lt_prog_compiler_static_RC 17658 17659# Compiler flag to turn off builtin functions. 17660no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 17661 17662# Compiler flag to allow reflexive dlopens. 17663export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 17664 17665# Compiler flag to generate shared objects directly from archives. 17666whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 17667 17668# Compiler flag to generate thread-safe objects. 17669thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 17670 17671# Library versioning type. 17672version_type=$version_type 17673 17674# Format of library name prefix. 17675libname_spec=$lt_libname_spec 17676 17677# List of archive names. First name is the real one, the rest are links. 17678# The last name is the one that the linker finds with -lNAME. 17679library_names_spec=$lt_library_names_spec 17680 17681# The coded name of the library, if different from the real name. 17682soname_spec=$lt_soname_spec 17683 17684# Commands used to build and install an old-style archive. 17685RANLIB=$lt_RANLIB 17686old_archive_cmds=$lt_old_archive_cmds_RC 17687old_postinstall_cmds=$lt_old_postinstall_cmds 17688old_postuninstall_cmds=$lt_old_postuninstall_cmds 17689 17690# Create an old-style archive from a shared archive. 17691old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 17692 17693# Create a temporary old-style archive to link instead of a shared archive. 17694old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 17695 17696# Commands used to build and install a shared archive. 17697archive_cmds=$lt_archive_cmds_RC 17698archive_expsym_cmds=$lt_archive_expsym_cmds_RC 17699postinstall_cmds=$lt_postinstall_cmds 17700postuninstall_cmds=$lt_postuninstall_cmds 17701 17702# Commands used to build a loadable module (assumed same as above if empty) 17703module_cmds=$lt_module_cmds_RC 17704module_expsym_cmds=$lt_module_expsym_cmds_RC 17705 17706# Commands to strip libraries. 17707old_striplib=$lt_old_striplib 17708striplib=$lt_striplib 17709 17710# Dependencies to place before the objects being linked to create a 17711# shared library. 17712predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17713 17714# Dependencies to place after the objects being linked to create a 17715# shared library. 17716postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17717 17718# Dependencies to place before the objects being linked to create a 17719# shared library. 17720predeps=$lt_predeps_RC 17721 17722# Dependencies to place after the objects being linked to create a 17723# shared library. 17724postdeps=$lt_postdeps_RC 17725 17726# The library search path used internally by the compiler when linking 17727# a shared library. 17728compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17729 17730# Method to check whether dependent libraries are shared objects. 17731deplibs_check_method=$lt_deplibs_check_method 17732 17733# Command to use when deplibs_check_method == file_magic. 17734file_magic_cmd=$lt_file_magic_cmd 17735 17736# Flag that allows shared libraries with undefined symbols to be built. 17737allow_undefined_flag=$lt_allow_undefined_flag_RC 17738 17739# Flag that forces no undefined symbols. 17740no_undefined_flag=$lt_no_undefined_flag_RC 17741 17742# Commands used to finish a libtool library installation in a directory. 17743finish_cmds=$lt_finish_cmds 17744 17745# Same as above, but a single script fragment to be evaled but not shown. 17746finish_eval=$lt_finish_eval 17747 17748# Take the output of nm and produce a listing of raw symbols and C names. 17749global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17750 17751# Transform the output of nm in a proper C declaration 17752global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17753 17754# Transform the output of nm in a C name address pair 17755global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17756 17757# This is the shared library runtime path variable. 17758runpath_var=$runpath_var 17759 17760# This is the shared library path variable. 17761shlibpath_var=$shlibpath_var 17762 17763# Is shlibpath searched before the hard-coded library search path? 17764shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17765 17766# How to hardcode a shared library path into an executable. 17767hardcode_action=$hardcode_action_RC 17768 17769# Whether we should hardcode library paths into libraries. 17770hardcode_into_libs=$hardcode_into_libs 17771 17772# Flag to hardcode \$libdir into a binary during linking. 17773# This must work even if \$libdir does not exist. 17774hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 17775 17776# If ld is used when linking, flag to hardcode \$libdir into 17777# a binary during linking. This must work even if \$libdir does 17778# not exist. 17779hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 17780 17781# Whether we need a single -rpath flag with a separated argument. 17782hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 17783 17784# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17785# resulting binary. 17786hardcode_direct=$hardcode_direct_RC 17787 17788# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17789# resulting binary. 17790hardcode_minus_L=$hardcode_minus_L_RC 17791 17792# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17793# the resulting binary. 17794hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 17795 17796# Set to yes if building a shared library automatically hardcodes DIR into the library 17797# and all subsequent libraries and executables linked against it. 17798hardcode_automatic=$hardcode_automatic_RC 17799 17800# Variables whose values should be saved in libtool wrapper scripts and 17801# restored at relink time. 17802variables_saved_for_relink="$variables_saved_for_relink" 17803 17804# Whether libtool must link a program against all its dependency libraries. 17805link_all_deplibs=$link_all_deplibs_RC 17806 17807# Compile-time system search path for libraries 17808sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17809 17810# Run-time system search path for libraries 17811sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17812 17813# Fix the shell variable \$srcfile for the compiler. 17814fix_srcfile_path="$fix_srcfile_path_RC" 17815 17816# Set to yes if exported symbols are required. 17817always_export_symbols=$always_export_symbols_RC 17818 17819# The commands to list exported symbols. 17820export_symbols_cmds=$lt_export_symbols_cmds_RC 17821 17822# The commands to extract the exported symbol list from a shared archive. 17823extract_expsyms_cmds=$lt_extract_expsyms_cmds 17824 17825# Symbols that should not be listed in the preloaded symbols. 17826exclude_expsyms=$lt_exclude_expsyms_RC 17827 17828# Symbols that must always be exported. 17829include_expsyms=$lt_include_expsyms_RC 17830 17831# ### END LIBTOOL TAG CONFIG: $tagname 17832 17833__EOF__ 17834 17835 17836else 17837 # If there is no Makefile yet, we rely on a make rule to execute 17838 # `config.status --recheck' to rerun these tests and create the 17839 # libtool script then. 17840 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17841 if test -f "$ltmain_in"; then 17842 test -f Makefile && make "$ltmain" 17843 fi 17844fi 17845 17846 17847ac_ext=c 17848ac_cpp='$CPP $CPPFLAGS' 17849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17851ac_compiler_gnu=$ac_cv_c_compiler_gnu 17852 17853CC="$lt_save_CC" 17854 17855 ;; 17856 17857 *) 17858 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 17859echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 17860 { (exit 1); exit 1; }; } 17861 ;; 17862 esac 17863 17864 # Append the new tag name to the list of available tags. 17865 if test -n "$tagname" ; then 17866 available_tags="$available_tags $tagname" 17867 fi 17868 fi 17869 done 17870 IFS="$lt_save_ifs" 17871 17872 # Now substitute the updated list of available tags. 17873 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 17874 mv "${ofile}T" "$ofile" 17875 chmod +x "$ofile" 17876 else 17877 rm -f "${ofile}T" 17878 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 17879echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 17880 { (exit 1); exit 1; }; } 17881 fi 17882fi 17883 17884 17885 17886# This can be used to rebuild libtool when needed 17887LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 17888 17889# Always use our own libtool. 17890LIBTOOL='$(SHELL) $(top_builddir)/libtool' 17891 17892# Prevent multiple expansion 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913# Find a good install program. We prefer a C program (faster), 17914# so one script is as good as another. But avoid the broken or 17915# incompatible versions: 17916# SysV /etc/install, /usr/sbin/install 17917# SunOS /usr/etc/install 17918# IRIX /sbin/install 17919# AIX /bin/install 17920# AmigaOS /C/install, which installs bootblocks on floppy discs 17921# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 17922# AFS /usr/afsws/bin/install, which mishandles nonexistent args 17923# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 17924# OS/2's system install, which has a completely different semantic 17925# ./install, which can be erroneously created by make from ./install.sh. 17926echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 17927echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 17928if test -z "$INSTALL"; then 17929if test "${ac_cv_path_install+set}" = set; then 17930 echo $ECHO_N "(cached) $ECHO_C" >&6 17931else 17932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17933for as_dir in $PATH 17934do 17935 IFS=$as_save_IFS 17936 test -z "$as_dir" && as_dir=. 17937 # Account for people who put trailing slashes in PATH elements. 17938case $as_dir/ in 17939 ./ | .// | /cC/* | \ 17940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 17941 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 17942 /usr/ucb/* ) ;; 17943 *) 17944 # OSF1 and SCO ODT 3.0 have their own names for install. 17945 # Don't use installbsd from OSF since it installs stuff as root 17946 # by default. 17947 for ac_prog in ginstall scoinst install; do 17948 for ac_exec_ext in '' $ac_executable_extensions; do 17949 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 17950 if test $ac_prog = install && 17951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 17952 # AIX install. It has an incompatible calling convention. 17953 : 17954 elif test $ac_prog = install && 17955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 17956 # program-specific install script used by HP pwplus--don't use. 17957 : 17958 else 17959 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 17960 break 3 17961 fi 17962 fi 17963 done 17964 done 17965 ;; 17966esac 17967done 17968 17969 17970fi 17971 if test "${ac_cv_path_install+set}" = set; then 17972 INSTALL=$ac_cv_path_install 17973 else 17974 # As a last resort, use the slow shell script. We don't cache a 17975 # path for INSTALL within a source directory, because that will 17976 # break other packages using the cache if that directory is 17977 # removed, or if the path is relative. 17978 INSTALL=$ac_install_sh 17979 fi 17980fi 17981echo "$as_me:$LINENO: result: $INSTALL" >&5 17982echo "${ECHO_T}$INSTALL" >&6 17983 17984# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 17985# It thinks the first close brace ends the variable substitution. 17986test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 17987 17988test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 17989 17990test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 17991 17992CC=${CC:-cc} 17993 17994 17995VER_INFO=`cat VERSION` 17996 17997########## 17998# Find SQLite header file and library 17999# 18000 18001# Check whether --with-sqlite or --without-sqlite was given. 18002if test "${with_sqlite+set}" = set; then 18003 withval="$with_sqlite" 18004 SQLITE_DIR=$withval 18005fi; 18006if test -n "$SQLITE_DIR" ; then 18007 if test ! -d "$SQLITE_DIR" ; then 18008 { { echo "$as_me:$LINENO: error: SQLite directory $SQLITE_DIR does not exist" >&5 18009echo "$as_me: error: SQLite directory $SQLITE_DIR does not exist" >&2;} 18010 { (exit 1); exit 1; }; } 18011 fi 18012fi 18013 18014SQLITE_INC=UNKNOWN 18015SQLITE_LIB=UNKNOWN 18016 18017if test -z "$SQLITE_DIR" ; then 18018 if test -r "$includedir/sqlite.h" -a -r "$libdir/libsqlite.la" ; then 18019 SQLITE_INC="$includedir" 18020 SQLITE_LIB="$libdir/libsqlite.la" 18021 SQLITE_LIBDIR="$libdir" 18022 SQLITE_DIR="" 18023 else 18024 SQLITE_DIR="../sqlite /usr /usr/local /opt" 18025 fi 18026fi 18027 18028echo "$as_me:$LINENO: checking for SQLite header and library" >&5 18029echo $ECHO_N "checking for SQLite header and library... $ECHO_C" >&6 18030for i in $SQLITE_DIR ; do 18031 if test -r "$i/sqlite.h" ; then 18032 if test -r "$i/libsqlite.la" ; then 18033 SQLITE_INC="$i" 18034 SQLITE_LIB="$i/libsqlite.la" 18035 SQLITE_LIBDIR=$i 18036 break 18037 fi 18038 elif test -r "$i/include/sqlite.h" ; then 18039 SQLITE_INC="$i/include" 18040 if test -r "$i/lib/libsqlite.la" ; then 18041 SQLITE_LIB="$i/lib/libsqlite.la" 18042 SQLITE_LIBDIR="$i/lib" 18043 break 18044 elif test -d "$i/lib" ; then 18045 SQLITE_LIB="-lsqlite" 18046 SQLITE_LIBDIR="$i/lib" 18047 break 18048 fi 18049 fi 18050done 18051if test "$SQLITE_INC" = "UNKNOWN" -o "$SQLITE_LIB" = "UNKNOWN" ; then 18052 echo "$as_me:$LINENO: result: no" >&5 18053echo "${ECHO_T}no" >&6 18054 { echo "$as_me:$LINENO: WARNING: SQLite header files and/or library not found" >&5 18055echo "$as_me: WARNING: SQLite header files and/or library not found" >&2;} 18056else 18057 echo "$as_me:$LINENO: result: yes" >&5 18058echo "${ECHO_T}yes" >&6 18059fi 18060 18061 18062 18063 18064# test for availability of sqlite_libversion() et.al. 18065 18066if test -n "$SQLITE_LIBDIR" ; then 18067 SQLITE_LIBDIR="-L$SQLITE_LIBDIR" 18068fi 18069 18070saved_CFLAGS=$CFLAGS 18071CFLAGS="$CFLAGS -I$SQLITE_INC" 18072saved_LIBS=$LIBS 18073LIBS="$LIBS $SQLITE_LIBDIR" 18074echo "$as_me:$LINENO: checking for sqlite_libversion in -lsqlite" >&5 18075echo $ECHO_N "checking for sqlite_libversion in -lsqlite... $ECHO_C" >&6 18076if test "${ac_cv_lib_sqlite_sqlite_libversion+set}" = set; then 18077 echo $ECHO_N "(cached) $ECHO_C" >&6 18078else 18079 ac_check_lib_save_LIBS=$LIBS 18080LIBS="-lsqlite $LIBS" 18081cat >conftest.$ac_ext <<_ACEOF 18082/* confdefs.h. */ 18083_ACEOF 18084cat confdefs.h >>conftest.$ac_ext 18085cat >>conftest.$ac_ext <<_ACEOF 18086/* end confdefs.h. */ 18087 18088/* Override any gcc2 internal prototype to avoid an error. */ 18089#ifdef __cplusplus 18090extern "C" 18091#endif 18092/* We use char because int might match the return type of a gcc2 18093 builtin and then its argument prototype would still apply. */ 18094char sqlite_libversion (); 18095int 18096main () 18097{ 18098sqlite_libversion (); 18099 ; 18100 return 0; 18101} 18102_ACEOF 18103rm -f conftest.$ac_objext conftest$ac_exeext 18104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18105 (eval $ac_link) 2>conftest.er1 18106 ac_status=$? 18107 grep -v '^ *+' conftest.er1 >conftest.err 18108 rm -f conftest.er1 18109 cat conftest.err >&5 18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18111 (exit $ac_status); } && 18112 { ac_try='test -z "$ac_c_werror_flag" 18113 || test ! -s conftest.err' 18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18115 (eval $ac_try) 2>&5 18116 ac_status=$? 18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18118 (exit $ac_status); }; } && 18119 { ac_try='test -s conftest$ac_exeext' 18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18121 (eval $ac_try) 2>&5 18122 ac_status=$? 18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18124 (exit $ac_status); }; }; then 18125 ac_cv_lib_sqlite_sqlite_libversion=yes 18126else 18127 echo "$as_me: failed program was:" >&5 18128sed 's/^/| /' conftest.$ac_ext >&5 18129 18130ac_cv_lib_sqlite_sqlite_libversion=no 18131fi 18132rm -f conftest.err conftest.$ac_objext \ 18133 conftest$ac_exeext conftest.$ac_ext 18134LIBS=$ac_check_lib_save_LIBS 18135fi 18136echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_libversion" >&5 18137echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_libversion" >&6 18138if test $ac_cv_lib_sqlite_sqlite_libversion = yes; then 18139 SQLITE_LIBVERSION=1 18140else 18141 SQLITE_LIBVERSION=0 18142fi 18143 18144echo "$as_me:$LINENO: checking for sqlite_compile in -lsqlite" >&5 18145echo $ECHO_N "checking for sqlite_compile in -lsqlite... $ECHO_C" >&6 18146if test "${ac_cv_lib_sqlite_sqlite_compile+set}" = set; then 18147 echo $ECHO_N "(cached) $ECHO_C" >&6 18148else 18149 ac_check_lib_save_LIBS=$LIBS 18150LIBS="-lsqlite $LIBS" 18151cat >conftest.$ac_ext <<_ACEOF 18152/* confdefs.h. */ 18153_ACEOF 18154cat confdefs.h >>conftest.$ac_ext 18155cat >>conftest.$ac_ext <<_ACEOF 18156/* end confdefs.h. */ 18157 18158/* Override any gcc2 internal prototype to avoid an error. */ 18159#ifdef __cplusplus 18160extern "C" 18161#endif 18162/* We use char because int might match the return type of a gcc2 18163 builtin and then its argument prototype would still apply. */ 18164char sqlite_compile (); 18165int 18166main () 18167{ 18168sqlite_compile (); 18169 ; 18170 return 0; 18171} 18172_ACEOF 18173rm -f conftest.$ac_objext conftest$ac_exeext 18174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18175 (eval $ac_link) 2>conftest.er1 18176 ac_status=$? 18177 grep -v '^ *+' conftest.er1 >conftest.err 18178 rm -f conftest.er1 18179 cat conftest.err >&5 18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18181 (exit $ac_status); } && 18182 { ac_try='test -z "$ac_c_werror_flag" 18183 || test ! -s conftest.err' 18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18185 (eval $ac_try) 2>&5 18186 ac_status=$? 18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18188 (exit $ac_status); }; } && 18189 { ac_try='test -s conftest$ac_exeext' 18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18191 (eval $ac_try) 2>&5 18192 ac_status=$? 18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18194 (exit $ac_status); }; }; then 18195 ac_cv_lib_sqlite_sqlite_compile=yes 18196else 18197 echo "$as_me: failed program was:" >&5 18198sed 's/^/| /' conftest.$ac_ext >&5 18199 18200ac_cv_lib_sqlite_sqlite_compile=no 18201fi 18202rm -f conftest.err conftest.$ac_objext \ 18203 conftest$ac_exeext conftest.$ac_ext 18204LIBS=$ac_check_lib_save_LIBS 18205fi 18206echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_compile" >&5 18207echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_compile" >&6 18208if test $ac_cv_lib_sqlite_sqlite_compile = yes; then 18209 SQLITE_COMPILE=1 18210else 18211 SQLITE_COMPILE=0 18212fi 18213 18214echo "$as_me:$LINENO: checking for sqlite_encode_binary in -lsqlite" >&5 18215echo $ECHO_N "checking for sqlite_encode_binary in -lsqlite... $ECHO_C" >&6 18216if test "${ac_cv_lib_sqlite_sqlite_encode_binary+set}" = set; then 18217 echo $ECHO_N "(cached) $ECHO_C" >&6 18218else 18219 ac_check_lib_save_LIBS=$LIBS 18220LIBS="-lsqlite $LIBS" 18221cat >conftest.$ac_ext <<_ACEOF 18222/* confdefs.h. */ 18223_ACEOF 18224cat confdefs.h >>conftest.$ac_ext 18225cat >>conftest.$ac_ext <<_ACEOF 18226/* end confdefs.h. */ 18227 18228/* Override any gcc2 internal prototype to avoid an error. */ 18229#ifdef __cplusplus 18230extern "C" 18231#endif 18232/* We use char because int might match the return type of a gcc2 18233 builtin and then its argument prototype would still apply. */ 18234char sqlite_encode_binary (); 18235int 18236main () 18237{ 18238sqlite_encode_binary (); 18239 ; 18240 return 0; 18241} 18242_ACEOF 18243rm -f conftest.$ac_objext conftest$ac_exeext 18244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18245 (eval $ac_link) 2>conftest.er1 18246 ac_status=$? 18247 grep -v '^ *+' conftest.er1 >conftest.err 18248 rm -f conftest.er1 18249 cat conftest.err >&5 18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18251 (exit $ac_status); } && 18252 { ac_try='test -z "$ac_c_werror_flag" 18253 || test ! -s conftest.err' 18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18255 (eval $ac_try) 2>&5 18256 ac_status=$? 18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18258 (exit $ac_status); }; } && 18259 { ac_try='test -s conftest$ac_exeext' 18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18261 (eval $ac_try) 2>&5 18262 ac_status=$? 18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18264 (exit $ac_status); }; }; then 18265 ac_cv_lib_sqlite_sqlite_encode_binary=yes 18266else 18267 echo "$as_me: failed program was:" >&5 18268sed 's/^/| /' conftest.$ac_ext >&5 18269 18270ac_cv_lib_sqlite_sqlite_encode_binary=no 18271fi 18272rm -f conftest.err conftest.$ac_objext \ 18273 conftest$ac_exeext conftest.$ac_ext 18274LIBS=$ac_check_lib_save_LIBS 18275fi 18276echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_encode_binary" >&5 18277echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_encode_binary" >&6 18278if test $ac_cv_lib_sqlite_sqlite_encode_binary = yes; then 18279 SQLITE_ENCDEC=1 18280else 18281 SQLITE_ENCDEC=0 18282fi 18283 18284echo "$as_me:$LINENO: checking for sqliteAtoF in -lsqlite" >&5 18285echo $ECHO_N "checking for sqliteAtoF in -lsqlite... $ECHO_C" >&6 18286if test "${ac_cv_lib_sqlite_sqliteAtoF+set}" = set; then 18287 echo $ECHO_N "(cached) $ECHO_C" >&6 18288else 18289 ac_check_lib_save_LIBS=$LIBS 18290LIBS="-lsqlite $LIBS" 18291cat >conftest.$ac_ext <<_ACEOF 18292/* confdefs.h. */ 18293_ACEOF 18294cat confdefs.h >>conftest.$ac_ext 18295cat >>conftest.$ac_ext <<_ACEOF 18296/* end confdefs.h. */ 18297 18298/* Override any gcc2 internal prototype to avoid an error. */ 18299#ifdef __cplusplus 18300extern "C" 18301#endif 18302/* We use char because int might match the return type of a gcc2 18303 builtin and then its argument prototype would still apply. */ 18304char sqliteAtoF (); 18305int 18306main () 18307{ 18308sqliteAtoF (); 18309 ; 18310 return 0; 18311} 18312_ACEOF 18313rm -f conftest.$ac_objext conftest$ac_exeext 18314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18315 (eval $ac_link) 2>conftest.er1 18316 ac_status=$? 18317 grep -v '^ *+' conftest.er1 >conftest.err 18318 rm -f conftest.er1 18319 cat conftest.err >&5 18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18321 (exit $ac_status); } && 18322 { ac_try='test -z "$ac_c_werror_flag" 18323 || test ! -s conftest.err' 18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18325 (eval $ac_try) 2>&5 18326 ac_status=$? 18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18328 (exit $ac_status); }; } && 18329 { ac_try='test -s conftest$ac_exeext' 18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18331 (eval $ac_try) 2>&5 18332 ac_status=$? 18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18334 (exit $ac_status); }; }; then 18335 ac_cv_lib_sqlite_sqliteAtoF=yes 18336else 18337 echo "$as_me: failed program was:" >&5 18338sed 's/^/| /' conftest.$ac_ext >&5 18339 18340ac_cv_lib_sqlite_sqliteAtoF=no 18341fi 18342rm -f conftest.err conftest.$ac_objext \ 18343 conftest$ac_exeext conftest.$ac_ext 18344LIBS=$ac_check_lib_save_LIBS 18345fi 18346echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqliteAtoF" >&5 18347echo "${ECHO_T}$ac_cv_lib_sqlite_sqliteAtoF" >&6 18348if test $ac_cv_lib_sqlite_sqliteAtoF = yes; then 18349 SQLITE_ATOF=1 18350else 18351 SQLITE_ATOF=0 18352fi 18353 18354echo "$as_me:$LINENO: checking for sqlite_mprintf in -lsqlite" >&5 18355echo $ECHO_N "checking for sqlite_mprintf in -lsqlite... $ECHO_C" >&6 18356if test "${ac_cv_lib_sqlite_sqlite_mprintf+set}" = set; then 18357 echo $ECHO_N "(cached) $ECHO_C" >&6 18358else 18359 ac_check_lib_save_LIBS=$LIBS 18360LIBS="-lsqlite $LIBS" 18361cat >conftest.$ac_ext <<_ACEOF 18362/* confdefs.h. */ 18363_ACEOF 18364cat confdefs.h >>conftest.$ac_ext 18365cat >>conftest.$ac_ext <<_ACEOF 18366/* end confdefs.h. */ 18367 18368/* Override any gcc2 internal prototype to avoid an error. */ 18369#ifdef __cplusplus 18370extern "C" 18371#endif 18372/* We use char because int might match the return type of a gcc2 18373 builtin and then its argument prototype would still apply. */ 18374char sqlite_mprintf (); 18375int 18376main () 18377{ 18378sqlite_mprintf (); 18379 ; 18380 return 0; 18381} 18382_ACEOF 18383rm -f conftest.$ac_objext conftest$ac_exeext 18384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18385 (eval $ac_link) 2>conftest.er1 18386 ac_status=$? 18387 grep -v '^ *+' conftest.er1 >conftest.err 18388 rm -f conftest.er1 18389 cat conftest.err >&5 18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18391 (exit $ac_status); } && 18392 { ac_try='test -z "$ac_c_werror_flag" 18393 || test ! -s conftest.err' 18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18395 (eval $ac_try) 2>&5 18396 ac_status=$? 18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18398 (exit $ac_status); }; } && 18399 { ac_try='test -s conftest$ac_exeext' 18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18401 (eval $ac_try) 2>&5 18402 ac_status=$? 18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18404 (exit $ac_status); }; }; then 18405 ac_cv_lib_sqlite_sqlite_mprintf=yes 18406else 18407 echo "$as_me: failed program was:" >&5 18408sed 's/^/| /' conftest.$ac_ext >&5 18409 18410ac_cv_lib_sqlite_sqlite_mprintf=no 18411fi 18412rm -f conftest.err conftest.$ac_objext \ 18413 conftest$ac_exeext conftest.$ac_ext 18414LIBS=$ac_check_lib_save_LIBS 18415fi 18416echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_mprintf" >&5 18417echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_mprintf" >&6 18418if test $ac_cv_lib_sqlite_sqlite_mprintf = yes; then 18419 SQLITE_MPRINTF=1 18420else 18421 SQLITE_MPRINTF=0 18422fi 18423 18424echo "$as_me:$LINENO: checking for sqlite_trace in -lsqlite" >&5 18425echo $ECHO_N "checking for sqlite_trace in -lsqlite... $ECHO_C" >&6 18426if test "${ac_cv_lib_sqlite_sqlite_trace+set}" = set; then 18427 echo $ECHO_N "(cached) $ECHO_C" >&6 18428else 18429 ac_check_lib_save_LIBS=$LIBS 18430LIBS="-lsqlite $LIBS" 18431cat >conftest.$ac_ext <<_ACEOF 18432/* confdefs.h. */ 18433_ACEOF 18434cat confdefs.h >>conftest.$ac_ext 18435cat >>conftest.$ac_ext <<_ACEOF 18436/* end confdefs.h. */ 18437 18438/* Override any gcc2 internal prototype to avoid an error. */ 18439#ifdef __cplusplus 18440extern "C" 18441#endif 18442/* We use char because int might match the return type of a gcc2 18443 builtin and then its argument prototype would still apply. */ 18444char sqlite_trace (); 18445int 18446main () 18447{ 18448sqlite_trace (); 18449 ; 18450 return 0; 18451} 18452_ACEOF 18453rm -f conftest.$ac_objext conftest$ac_exeext 18454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18455 (eval $ac_link) 2>conftest.er1 18456 ac_status=$? 18457 grep -v '^ *+' conftest.er1 >conftest.err 18458 rm -f conftest.er1 18459 cat conftest.err >&5 18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18461 (exit $ac_status); } && 18462 { ac_try='test -z "$ac_c_werror_flag" 18463 || test ! -s conftest.err' 18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18465 (eval $ac_try) 2>&5 18466 ac_status=$? 18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18468 (exit $ac_status); }; } && 18469 { ac_try='test -s conftest$ac_exeext' 18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18471 (eval $ac_try) 2>&5 18472 ac_status=$? 18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18474 (exit $ac_status); }; }; then 18475 ac_cv_lib_sqlite_sqlite_trace=yes 18476else 18477 echo "$as_me: failed program was:" >&5 18478sed 's/^/| /' conftest.$ac_ext >&5 18479 18480ac_cv_lib_sqlite_sqlite_trace=no 18481fi 18482rm -f conftest.err conftest.$ac_objext \ 18483 conftest$ac_exeext conftest.$ac_ext 18484LIBS=$ac_check_lib_save_LIBS 18485fi 18486echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_trace" >&5 18487echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_trace" >&6 18488if test $ac_cv_lib_sqlite_sqlite_trace = yes; then 18489 SQLITE_TRACE=1 18490else 18491 SQLITE_TRACE=0 18492fi 18493 18494LIBS=$saved_LIBS 18495CFLAGS=$saved_CFLAGS 18496 18497 18498 18499 18500 18501if test "$SQLITE_COMPILE" = "0" ; then 18502 { echo "$as_me:$LINENO: WARNING: SQLite library too old" >&5 18503echo "$as_me: WARNING: SQLite library too old" >&2;} 18504else 18505 LIB_TARGETS="$LIB_TARGETS libsqliteodbc.la" 18506 INST_TARGETS="$INST_TARGETS install-2" 18507 UNINST_TARGETS="$UNINST_TARGETS uninstall-2" 18508 DRVINST_TARGETS="$DRVINST_TARGETS drvinst-2" 18509 DRVUNINST_TARGETS="$DRVUNINST_TARGETS drvuninst-2" 18510fi 18511 18512########## 18513# Find SQLite3 header file and library 18514# 18515 18516# Check whether --with-sqlite3 or --without-sqlite3 was given. 18517if test "${with_sqlite3+set}" = set; then 18518 withval="$with_sqlite3" 18519 SQLITE3_DIR=$withval 18520fi; 18521if test -n "$SQLITE3_DIR" ; then 18522 if test ! -d "$SQLITE3_DIR" ; then 18523 { echo "$as_me:$LINENO: WARNING: SQLite3 directory $SQLITE3_DIR does not exist" >&5 18524echo "$as_me: WARNING: SQLite3 directory $SQLITE3_DIR does not exist" >&2;} 18525 fi 18526fi 18527 18528SQLITE3_INC=UNKNOWN 18529SQLITE3_LIB=UNKNOWN 18530 18531if test -z "$SQLITE3_DIR" ; then 18532 if test -r "$includedir/sqlite3.h" -a -r "$libdir/libsqlite3.la" ; then 18533 SQLITE3_INC="$includedir" 18534 SQLITE3_LIB="$libdir/libsqlite3.la" 18535 SQLITE3_LIBDIR="$libdir" 18536 SQLITE3_DIR="" 18537 else 18538 SQLITE3_DIR="../sqlite /usr /usr/local /opt" 18539 fi 18540fi 18541 18542echo "$as_me:$LINENO: checking for SQLite3 header and library" >&5 18543echo $ECHO_N "checking for SQLite3 header and library... $ECHO_C" >&6 18544for i in $SQLITE3_DIR ; do 18545 if test -r "$i/sqlite3.h" ; then 18546 if test -r "$i/sqlite3.c" ; then 18547 SQLITE3_INC="$i" 18548 SQLITE3_LIB="unknown" 18549 SQLITE3_LIBDIR="" 18550 SQLITE3_A10N_C="$i/sqlite3.c" 18551 SQLITE3_A10N_O="sqlite3.lo" 18552 break 18553 elif test -r "$i/libsqlite3.la" ; then 18554 SQLITE3_INC="$i" 18555 SQLITE3_LIB="$i/libsqlite3.la" 18556 SQLITE3_LIBDIR=$i 18557 break 18558 fi 18559 elif test -r "$i/include/sqlite3.h" ; then 18560 SQLITE3_INC="$i/include" 18561 if test -r "$i/lib/libsqlite3.la" ; then 18562 SQLITE3_LIB="$i/lib/libsqlite3.la" 18563 SQLITE3_LIBDIR="$i/lib" 18564 break 18565 elif test -d "$i/lib" ; then 18566 SQLITE3_LIB="-lsqlite3" 18567 SQLITE3_LIBDIR="$i/lib" 18568 break 18569 fi 18570 fi 18571done 18572if test "$SQLITE3_INC" = "UNKNOWN" -o "$SQLITE3_LIB" = "UNKNOWN" ; then 18573 echo "$as_me:$LINENO: result: no" >&5 18574echo "${ECHO_T}no" >&6 18575 { echo "$as_me:$LINENO: WARNING: SQLite3 header files and/or library not found" >&5 18576echo "$as_me: WARNING: SQLite3 header files and/or library not found" >&2;} 18577else 18578 echo "$as_me:$LINENO: result: yes" >&5 18579echo "${ECHO_T}yes" >&6 18580 LIB_TARGETS="$LIB_TARGETS libsqlite3odbc.la" 18581 INST_TARGETS="$INST_TARGETS install-3" 18582 UNINST_TARGETS="$UNINST_TARGETS uninstall-3" 18583 DRVINST_TARGETS="$DRVINST_TARGETS drvinst-3" 18584 DRVUNINST_TARGETS="$DRVUNINST_TARGETS drvuninst-3" 18585 if test -n "$SQLITE3_A10N_C" ; then 18586 SQLITE3_LIB="" 18587 SQLITE3_A10N_FLAGS="$SQLITE3_A10N_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1" 18588 SQLITE3_A10N_FLAGS="$SQLITE3_A10N_FLAGS -DSQLITE_DLL=1 -DSQLITE_SOUNDEX=1" 18589 SQLITE3_A10N_FLAGS="$SQLITE3_A10N_FLAGS -DSQLITE_THREADSAFE=1" 18590 fi 18591fi 18592 18593 18594 18595 18596 18597# test for availability of some sqlite3_*() funcs 18598 18599if test -n "$SQLITE3_LIBDIR" ; then 18600 SQLITE3_LIBDIR="-L$SQLITE3_LIBDIR" 18601fi 18602 18603if test -n "$SQLITE3_A10N_C" ; then 18604 SQLITE3_LOADEXTENSION=1 18605 SQLITE3_COLUMNTABLENAME=1 18606 SQLITE3_OVERLOADFUNCTION=1 18607 SQLITE3_PREPARE_V2=1 18608 SQLITE3_CLEARBINDINGS=1 18609 SQLITE3_CREATEMODULE_V2=1 18610 SQLITE3_TABLECOLUMNMETADATA=1 18611 SQLITE3_VFS=1 18612 SQLITE3_PROFILE=1 18613 SQLITE3_STRNICMP=1 18614else 18615 saved_CFLAGS=$CFLAGS 18616 CFLAGS="$CFLAGS -I$SQLITE3_INC" 18617 saved_LIBS=$LIBS 18618 LIBS="$LIBS $SQLITE3_LIBDIR" 18619 echo "$as_me:$LINENO: checking for sqlite3_load_extension in -lsqlite3" >&5 18620echo $ECHO_N "checking for sqlite3_load_extension in -lsqlite3... $ECHO_C" >&6 18621if test "${ac_cv_lib_sqlite3_sqlite3_load_extension+set}" = set; then 18622 echo $ECHO_N "(cached) $ECHO_C" >&6 18623else 18624 ac_check_lib_save_LIBS=$LIBS 18625LIBS="-lsqlite3 $LIBS" 18626cat >conftest.$ac_ext <<_ACEOF 18627/* confdefs.h. */ 18628_ACEOF 18629cat confdefs.h >>conftest.$ac_ext 18630cat >>conftest.$ac_ext <<_ACEOF 18631/* end confdefs.h. */ 18632 18633/* Override any gcc2 internal prototype to avoid an error. */ 18634#ifdef __cplusplus 18635extern "C" 18636#endif 18637/* We use char because int might match the return type of a gcc2 18638 builtin and then its argument prototype would still apply. */ 18639char sqlite3_load_extension (); 18640int 18641main () 18642{ 18643sqlite3_load_extension (); 18644 ; 18645 return 0; 18646} 18647_ACEOF 18648rm -f conftest.$ac_objext conftest$ac_exeext 18649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18650 (eval $ac_link) 2>conftest.er1 18651 ac_status=$? 18652 grep -v '^ *+' conftest.er1 >conftest.err 18653 rm -f conftest.er1 18654 cat conftest.err >&5 18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18656 (exit $ac_status); } && 18657 { ac_try='test -z "$ac_c_werror_flag" 18658 || test ! -s conftest.err' 18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18660 (eval $ac_try) 2>&5 18661 ac_status=$? 18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18663 (exit $ac_status); }; } && 18664 { ac_try='test -s conftest$ac_exeext' 18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18666 (eval $ac_try) 2>&5 18667 ac_status=$? 18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18669 (exit $ac_status); }; }; then 18670 ac_cv_lib_sqlite3_sqlite3_load_extension=yes 18671else 18672 echo "$as_me: failed program was:" >&5 18673sed 's/^/| /' conftest.$ac_ext >&5 18674 18675ac_cv_lib_sqlite3_sqlite3_load_extension=no 18676fi 18677rm -f conftest.err conftest.$ac_objext \ 18678 conftest$ac_exeext conftest.$ac_ext 18679LIBS=$ac_check_lib_save_LIBS 18680fi 18681echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 18682echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6 18683if test $ac_cv_lib_sqlite3_sqlite3_load_extension = yes; then 18684 SQLITE3_LOADEXTENSION=1 18685else 18686 SQLITE3_LOADEXTENSION=0 18687fi 18688 18689 if test "$SQLITE3_LOADEXTENSION" = "0" ; then 18690 unset ac_cv_lib_sqlite3_sqlite3_load_extension 18691 # try again with -ldl 18692 LIBS="$LIBS -ldl $SQLITE3_LIBDIR" 18693 echo "$as_me:$LINENO: checking for sqlite3_load_extension in -lsqlite3" >&5 18694echo $ECHO_N "checking for sqlite3_load_extension in -lsqlite3... $ECHO_C" >&6 18695if test "${ac_cv_lib_sqlite3_sqlite3_load_extension+set}" = set; then 18696 echo $ECHO_N "(cached) $ECHO_C" >&6 18697else 18698 ac_check_lib_save_LIBS=$LIBS 18699LIBS="-lsqlite3 $LIBS" 18700cat >conftest.$ac_ext <<_ACEOF 18701/* confdefs.h. */ 18702_ACEOF 18703cat confdefs.h >>conftest.$ac_ext 18704cat >>conftest.$ac_ext <<_ACEOF 18705/* end confdefs.h. */ 18706 18707/* Override any gcc2 internal prototype to avoid an error. */ 18708#ifdef __cplusplus 18709extern "C" 18710#endif 18711/* We use char because int might match the return type of a gcc2 18712 builtin and then its argument prototype would still apply. */ 18713char sqlite3_load_extension (); 18714int 18715main () 18716{ 18717sqlite3_load_extension (); 18718 ; 18719 return 0; 18720} 18721_ACEOF 18722rm -f conftest.$ac_objext conftest$ac_exeext 18723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18724 (eval $ac_link) 2>conftest.er1 18725 ac_status=$? 18726 grep -v '^ *+' conftest.er1 >conftest.err 18727 rm -f conftest.er1 18728 cat conftest.err >&5 18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18730 (exit $ac_status); } && 18731 { ac_try='test -z "$ac_c_werror_flag" 18732 || test ! -s conftest.err' 18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18734 (eval $ac_try) 2>&5 18735 ac_status=$? 18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18737 (exit $ac_status); }; } && 18738 { ac_try='test -s conftest$ac_exeext' 18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18740 (eval $ac_try) 2>&5 18741 ac_status=$? 18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18743 (exit $ac_status); }; }; then 18744 ac_cv_lib_sqlite3_sqlite3_load_extension=yes 18745else 18746 echo "$as_me: failed program was:" >&5 18747sed 's/^/| /' conftest.$ac_ext >&5 18748 18749ac_cv_lib_sqlite3_sqlite3_load_extension=no 18750fi 18751rm -f conftest.err conftest.$ac_objext \ 18752 conftest$ac_exeext conftest.$ac_ext 18753LIBS=$ac_check_lib_save_LIBS 18754fi 18755echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 18756echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6 18757if test $ac_cv_lib_sqlite3_sqlite3_load_extension = yes; then 18758 SQLITE3_LOADEXTENSION=1 18759else 18760 SQLITE3_LOADEXTENSION=0 18761fi 18762 18763 if test "$SQLITE3_LOADEXTENSION" = "1" ; then 18764 SQLITE3_LIB="$SQLITE3_LIB -ldl" 18765 fi 18766 fi 18767 echo "$as_me:$LINENO: checking for sqlite3_column_table_name in -lsqlite3" >&5 18768echo $ECHO_N "checking for sqlite3_column_table_name in -lsqlite3... $ECHO_C" >&6 18769if test "${ac_cv_lib_sqlite3_sqlite3_column_table_name+set}" = set; then 18770 echo $ECHO_N "(cached) $ECHO_C" >&6 18771else 18772 ac_check_lib_save_LIBS=$LIBS 18773LIBS="-lsqlite3 $LIBS" 18774cat >conftest.$ac_ext <<_ACEOF 18775/* confdefs.h. */ 18776_ACEOF 18777cat confdefs.h >>conftest.$ac_ext 18778cat >>conftest.$ac_ext <<_ACEOF 18779/* end confdefs.h. */ 18780 18781/* Override any gcc2 internal prototype to avoid an error. */ 18782#ifdef __cplusplus 18783extern "C" 18784#endif 18785/* We use char because int might match the return type of a gcc2 18786 builtin and then its argument prototype would still apply. */ 18787char sqlite3_column_table_name (); 18788int 18789main () 18790{ 18791sqlite3_column_table_name (); 18792 ; 18793 return 0; 18794} 18795_ACEOF 18796rm -f conftest.$ac_objext conftest$ac_exeext 18797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18798 (eval $ac_link) 2>conftest.er1 18799 ac_status=$? 18800 grep -v '^ *+' conftest.er1 >conftest.err 18801 rm -f conftest.er1 18802 cat conftest.err >&5 18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18804 (exit $ac_status); } && 18805 { ac_try='test -z "$ac_c_werror_flag" 18806 || test ! -s conftest.err' 18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18808 (eval $ac_try) 2>&5 18809 ac_status=$? 18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18811 (exit $ac_status); }; } && 18812 { ac_try='test -s conftest$ac_exeext' 18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18814 (eval $ac_try) 2>&5 18815 ac_status=$? 18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18817 (exit $ac_status); }; }; then 18818 ac_cv_lib_sqlite3_sqlite3_column_table_name=yes 18819else 18820 echo "$as_me: failed program was:" >&5 18821sed 's/^/| /' conftest.$ac_ext >&5 18822 18823ac_cv_lib_sqlite3_sqlite3_column_table_name=no 18824fi 18825rm -f conftest.err conftest.$ac_objext \ 18826 conftest$ac_exeext conftest.$ac_ext 18827LIBS=$ac_check_lib_save_LIBS 18828fi 18829echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name" >&5 18830echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_column_table_name" >&6 18831if test $ac_cv_lib_sqlite3_sqlite3_column_table_name = yes; then 18832 SQLITE3_COLUMNTABLENAME=1 18833else 18834 SQLITE3_COLUMNTABLENAME=0 18835fi 18836 18837 echo "$as_me:$LINENO: checking for sqlite3_overload_function in -lsqlite3" >&5 18838echo $ECHO_N "checking for sqlite3_overload_function in -lsqlite3... $ECHO_C" >&6 18839if test "${ac_cv_lib_sqlite3_sqlite3_overload_function+set}" = set; then 18840 echo $ECHO_N "(cached) $ECHO_C" >&6 18841else 18842 ac_check_lib_save_LIBS=$LIBS 18843LIBS="-lsqlite3 $LIBS" 18844cat >conftest.$ac_ext <<_ACEOF 18845/* confdefs.h. */ 18846_ACEOF 18847cat confdefs.h >>conftest.$ac_ext 18848cat >>conftest.$ac_ext <<_ACEOF 18849/* end confdefs.h. */ 18850 18851/* Override any gcc2 internal prototype to avoid an error. */ 18852#ifdef __cplusplus 18853extern "C" 18854#endif 18855/* We use char because int might match the return type of a gcc2 18856 builtin and then its argument prototype would still apply. */ 18857char sqlite3_overload_function (); 18858int 18859main () 18860{ 18861sqlite3_overload_function (); 18862 ; 18863 return 0; 18864} 18865_ACEOF 18866rm -f conftest.$ac_objext conftest$ac_exeext 18867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18868 (eval $ac_link) 2>conftest.er1 18869 ac_status=$? 18870 grep -v '^ *+' conftest.er1 >conftest.err 18871 rm -f conftest.er1 18872 cat conftest.err >&5 18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18874 (exit $ac_status); } && 18875 { ac_try='test -z "$ac_c_werror_flag" 18876 || test ! -s conftest.err' 18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18878 (eval $ac_try) 2>&5 18879 ac_status=$? 18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18881 (exit $ac_status); }; } && 18882 { ac_try='test -s conftest$ac_exeext' 18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18884 (eval $ac_try) 2>&5 18885 ac_status=$? 18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18887 (exit $ac_status); }; }; then 18888 ac_cv_lib_sqlite3_sqlite3_overload_function=yes 18889else 18890 echo "$as_me: failed program was:" >&5 18891sed 's/^/| /' conftest.$ac_ext >&5 18892 18893ac_cv_lib_sqlite3_sqlite3_overload_function=no 18894fi 18895rm -f conftest.err conftest.$ac_objext \ 18896 conftest$ac_exeext conftest.$ac_ext 18897LIBS=$ac_check_lib_save_LIBS 18898fi 18899echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_overload_function" >&5 18900echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_overload_function" >&6 18901if test $ac_cv_lib_sqlite3_sqlite3_overload_function = yes; then 18902 SQLITE3_OVERLOADFUNCTION=1 18903else 18904 SQLITE3_OVERLOADFUNCTION=0 18905fi 18906 18907 echo "$as_me:$LINENO: checking for sqlite3_prepare_v2 in -lsqlite3" >&5 18908echo $ECHO_N "checking for sqlite3_prepare_v2 in -lsqlite3... $ECHO_C" >&6 18909if test "${ac_cv_lib_sqlite3_sqlite3_prepare_v2+set}" = set; then 18910 echo $ECHO_N "(cached) $ECHO_C" >&6 18911else 18912 ac_check_lib_save_LIBS=$LIBS 18913LIBS="-lsqlite3 $LIBS" 18914cat >conftest.$ac_ext <<_ACEOF 18915/* confdefs.h. */ 18916_ACEOF 18917cat confdefs.h >>conftest.$ac_ext 18918cat >>conftest.$ac_ext <<_ACEOF 18919/* end confdefs.h. */ 18920 18921/* Override any gcc2 internal prototype to avoid an error. */ 18922#ifdef __cplusplus 18923extern "C" 18924#endif 18925/* We use char because int might match the return type of a gcc2 18926 builtin and then its argument prototype would still apply. */ 18927char sqlite3_prepare_v2 (); 18928int 18929main () 18930{ 18931sqlite3_prepare_v2 (); 18932 ; 18933 return 0; 18934} 18935_ACEOF 18936rm -f conftest.$ac_objext conftest$ac_exeext 18937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18938 (eval $ac_link) 2>conftest.er1 18939 ac_status=$? 18940 grep -v '^ *+' conftest.er1 >conftest.err 18941 rm -f conftest.er1 18942 cat conftest.err >&5 18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18944 (exit $ac_status); } && 18945 { ac_try='test -z "$ac_c_werror_flag" 18946 || test ! -s conftest.err' 18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18948 (eval $ac_try) 2>&5 18949 ac_status=$? 18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18951 (exit $ac_status); }; } && 18952 { ac_try='test -s conftest$ac_exeext' 18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18954 (eval $ac_try) 2>&5 18955 ac_status=$? 18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18957 (exit $ac_status); }; }; then 18958 ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes 18959else 18960 echo "$as_me: failed program was:" >&5 18961sed 's/^/| /' conftest.$ac_ext >&5 18962 18963ac_cv_lib_sqlite3_sqlite3_prepare_v2=no 18964fi 18965rm -f conftest.err conftest.$ac_objext \ 18966 conftest$ac_exeext conftest.$ac_ext 18967LIBS=$ac_check_lib_save_LIBS 18968fi 18969echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5 18970echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6 18971if test $ac_cv_lib_sqlite3_sqlite3_prepare_v2 = yes; then 18972 SQLITE3_PREPARE_V2=1 18973else 18974 SQLITE3_PREPARE_V2=0 18975fi 18976 18977 echo "$as_me:$LINENO: checking for sqlite3_clear_bindings in -lsqlite3" >&5 18978echo $ECHO_N "checking for sqlite3_clear_bindings in -lsqlite3... $ECHO_C" >&6 18979if test "${ac_cv_lib_sqlite3_sqlite3_clear_bindings+set}" = set; then 18980 echo $ECHO_N "(cached) $ECHO_C" >&6 18981else 18982 ac_check_lib_save_LIBS=$LIBS 18983LIBS="-lsqlite3 $LIBS" 18984cat >conftest.$ac_ext <<_ACEOF 18985/* confdefs.h. */ 18986_ACEOF 18987cat confdefs.h >>conftest.$ac_ext 18988cat >>conftest.$ac_ext <<_ACEOF 18989/* end confdefs.h. */ 18990 18991/* Override any gcc2 internal prototype to avoid an error. */ 18992#ifdef __cplusplus 18993extern "C" 18994#endif 18995/* We use char because int might match the return type of a gcc2 18996 builtin and then its argument prototype would still apply. */ 18997char sqlite3_clear_bindings (); 18998int 18999main () 19000{ 19001sqlite3_clear_bindings (); 19002 ; 19003 return 0; 19004} 19005_ACEOF 19006rm -f conftest.$ac_objext conftest$ac_exeext 19007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19008 (eval $ac_link) 2>conftest.er1 19009 ac_status=$? 19010 grep -v '^ *+' conftest.er1 >conftest.err 19011 rm -f conftest.er1 19012 cat conftest.err >&5 19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19014 (exit $ac_status); } && 19015 { ac_try='test -z "$ac_c_werror_flag" 19016 || test ! -s conftest.err' 19017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19018 (eval $ac_try) 2>&5 19019 ac_status=$? 19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19021 (exit $ac_status); }; } && 19022 { ac_try='test -s conftest$ac_exeext' 19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19024 (eval $ac_try) 2>&5 19025 ac_status=$? 19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19027 (exit $ac_status); }; }; then 19028 ac_cv_lib_sqlite3_sqlite3_clear_bindings=yes 19029else 19030 echo "$as_me: failed program was:" >&5 19031sed 's/^/| /' conftest.$ac_ext >&5 19032 19033ac_cv_lib_sqlite3_sqlite3_clear_bindings=no 19034fi 19035rm -f conftest.err conftest.$ac_objext \ 19036 conftest$ac_exeext conftest.$ac_ext 19037LIBS=$ac_check_lib_save_LIBS 19038fi 19039echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_clear_bindings" >&5 19040echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_clear_bindings" >&6 19041if test $ac_cv_lib_sqlite3_sqlite3_clear_bindings = yes; then 19042 SQLITE3_CLEARBINDINGS=1 19043else 19044 SQLITE3_CLEARBINDINGS=0 19045fi 19046 19047 echo "$as_me:$LINENO: checking for sqlite3_create_module_v2 in -lsqlite3" >&5 19048echo $ECHO_N "checking for sqlite3_create_module_v2 in -lsqlite3... $ECHO_C" >&6 19049if test "${ac_cv_lib_sqlite3_sqlite3_create_module_v2+set}" = set; then 19050 echo $ECHO_N "(cached) $ECHO_C" >&6 19051else 19052 ac_check_lib_save_LIBS=$LIBS 19053LIBS="-lsqlite3 $LIBS" 19054cat >conftest.$ac_ext <<_ACEOF 19055/* confdefs.h. */ 19056_ACEOF 19057cat confdefs.h >>conftest.$ac_ext 19058cat >>conftest.$ac_ext <<_ACEOF 19059/* end confdefs.h. */ 19060 19061/* Override any gcc2 internal prototype to avoid an error. */ 19062#ifdef __cplusplus 19063extern "C" 19064#endif 19065/* We use char because int might match the return type of a gcc2 19066 builtin and then its argument prototype would still apply. */ 19067char sqlite3_create_module_v2 (); 19068int 19069main () 19070{ 19071sqlite3_create_module_v2 (); 19072 ; 19073 return 0; 19074} 19075_ACEOF 19076rm -f conftest.$ac_objext conftest$ac_exeext 19077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19078 (eval $ac_link) 2>conftest.er1 19079 ac_status=$? 19080 grep -v '^ *+' conftest.er1 >conftest.err 19081 rm -f conftest.er1 19082 cat conftest.err >&5 19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19084 (exit $ac_status); } && 19085 { ac_try='test -z "$ac_c_werror_flag" 19086 || test ! -s conftest.err' 19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19088 (eval $ac_try) 2>&5 19089 ac_status=$? 19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19091 (exit $ac_status); }; } && 19092 { ac_try='test -s conftest$ac_exeext' 19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19094 (eval $ac_try) 2>&5 19095 ac_status=$? 19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19097 (exit $ac_status); }; }; then 19098 ac_cv_lib_sqlite3_sqlite3_create_module_v2=yes 19099else 19100 echo "$as_me: failed program was:" >&5 19101sed 's/^/| /' conftest.$ac_ext >&5 19102 19103ac_cv_lib_sqlite3_sqlite3_create_module_v2=no 19104fi 19105rm -f conftest.err conftest.$ac_objext \ 19106 conftest$ac_exeext conftest.$ac_ext 19107LIBS=$ac_check_lib_save_LIBS 19108fi 19109echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_create_module_v2" >&5 19110echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_create_module_v2" >&6 19111if test $ac_cv_lib_sqlite3_sqlite3_create_module_v2 = yes; then 19112 SQLITE3_CREATEMODULE_V2=1 19113else 19114 SQLITE3_CREATEMODULE_V2=0 19115fi 19116 19117 echo "$as_me:$LINENO: checking for sqlite3_vfs_register in -lsqlite3" >&5 19118echo $ECHO_N "checking for sqlite3_vfs_register in -lsqlite3... $ECHO_C" >&6 19119if test "${ac_cv_lib_sqlite3_sqlite3_vfs_register+set}" = set; then 19120 echo $ECHO_N "(cached) $ECHO_C" >&6 19121else 19122 ac_check_lib_save_LIBS=$LIBS 19123LIBS="-lsqlite3 $LIBS" 19124cat >conftest.$ac_ext <<_ACEOF 19125/* confdefs.h. */ 19126_ACEOF 19127cat confdefs.h >>conftest.$ac_ext 19128cat >>conftest.$ac_ext <<_ACEOF 19129/* end confdefs.h. */ 19130 19131/* Override any gcc2 internal prototype to avoid an error. */ 19132#ifdef __cplusplus 19133extern "C" 19134#endif 19135/* We use char because int might match the return type of a gcc2 19136 builtin and then its argument prototype would still apply. */ 19137char sqlite3_vfs_register (); 19138int 19139main () 19140{ 19141sqlite3_vfs_register (); 19142 ; 19143 return 0; 19144} 19145_ACEOF 19146rm -f conftest.$ac_objext conftest$ac_exeext 19147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19148 (eval $ac_link) 2>conftest.er1 19149 ac_status=$? 19150 grep -v '^ *+' conftest.er1 >conftest.err 19151 rm -f conftest.er1 19152 cat conftest.err >&5 19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19154 (exit $ac_status); } && 19155 { ac_try='test -z "$ac_c_werror_flag" 19156 || test ! -s conftest.err' 19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19158 (eval $ac_try) 2>&5 19159 ac_status=$? 19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19161 (exit $ac_status); }; } && 19162 { ac_try='test -s conftest$ac_exeext' 19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19164 (eval $ac_try) 2>&5 19165 ac_status=$? 19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19167 (exit $ac_status); }; }; then 19168 ac_cv_lib_sqlite3_sqlite3_vfs_register=yes 19169else 19170 echo "$as_me: failed program was:" >&5 19171sed 's/^/| /' conftest.$ac_ext >&5 19172 19173ac_cv_lib_sqlite3_sqlite3_vfs_register=no 19174fi 19175rm -f conftest.err conftest.$ac_objext \ 19176 conftest$ac_exeext conftest.$ac_ext 19177LIBS=$ac_check_lib_save_LIBS 19178fi 19179echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_vfs_register" >&5 19180echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_vfs_register" >&6 19181if test $ac_cv_lib_sqlite3_sqlite3_vfs_register = yes; then 19182 SQLITE3_VFS=1 19183else 19184 SQLITE3_VFS=0 19185fi 19186 19187 echo "$as_me:$LINENO: checking for sqlite3_table_column_metadata in -lsqlite3" >&5 19188echo $ECHO_N "checking for sqlite3_table_column_metadata in -lsqlite3... $ECHO_C" >&6 19189if test "${ac_cv_lib_sqlite3_sqlite3_table_column_metadata+set}" = set; then 19190 echo $ECHO_N "(cached) $ECHO_C" >&6 19191else 19192 ac_check_lib_save_LIBS=$LIBS 19193LIBS="-lsqlite3 $LIBS" 19194cat >conftest.$ac_ext <<_ACEOF 19195/* confdefs.h. */ 19196_ACEOF 19197cat confdefs.h >>conftest.$ac_ext 19198cat >>conftest.$ac_ext <<_ACEOF 19199/* end confdefs.h. */ 19200 19201/* Override any gcc2 internal prototype to avoid an error. */ 19202#ifdef __cplusplus 19203extern "C" 19204#endif 19205/* We use char because int might match the return type of a gcc2 19206 builtin and then its argument prototype would still apply. */ 19207char sqlite3_table_column_metadata (); 19208int 19209main () 19210{ 19211sqlite3_table_column_metadata (); 19212 ; 19213 return 0; 19214} 19215_ACEOF 19216rm -f conftest.$ac_objext conftest$ac_exeext 19217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19218 (eval $ac_link) 2>conftest.er1 19219 ac_status=$? 19220 grep -v '^ *+' conftest.er1 >conftest.err 19221 rm -f conftest.er1 19222 cat conftest.err >&5 19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19224 (exit $ac_status); } && 19225 { ac_try='test -z "$ac_c_werror_flag" 19226 || test ! -s conftest.err' 19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19228 (eval $ac_try) 2>&5 19229 ac_status=$? 19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19231 (exit $ac_status); }; } && 19232 { ac_try='test -s conftest$ac_exeext' 19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19234 (eval $ac_try) 2>&5 19235 ac_status=$? 19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19237 (exit $ac_status); }; }; then 19238 ac_cv_lib_sqlite3_sqlite3_table_column_metadata=yes 19239else 19240 echo "$as_me: failed program was:" >&5 19241sed 's/^/| /' conftest.$ac_ext >&5 19242 19243ac_cv_lib_sqlite3_sqlite3_table_column_metadata=no 19244fi 19245rm -f conftest.err conftest.$ac_objext \ 19246 conftest$ac_exeext conftest.$ac_ext 19247LIBS=$ac_check_lib_save_LIBS 19248fi 19249echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_table_column_metadata" >&5 19250echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_table_column_metadata" >&6 19251if test $ac_cv_lib_sqlite3_sqlite3_table_column_metadata = yes; then 19252 SQLITE3_TABLECOLUMNMETADATA=1 19253else 19254 SQLITE3_TABLECOLUMNMETADATA=0 19255fi 19256 19257 echo "$as_me:$LINENO: checking for sqlite3_profile in -lsqlite3" >&5 19258echo $ECHO_N "checking for sqlite3_profile in -lsqlite3... $ECHO_C" >&6 19259if test "${ac_cv_lib_sqlite3_sqlite3_profile+set}" = set; then 19260 echo $ECHO_N "(cached) $ECHO_C" >&6 19261else 19262 ac_check_lib_save_LIBS=$LIBS 19263LIBS="-lsqlite3 $LIBS" 19264cat >conftest.$ac_ext <<_ACEOF 19265/* confdefs.h. */ 19266_ACEOF 19267cat confdefs.h >>conftest.$ac_ext 19268cat >>conftest.$ac_ext <<_ACEOF 19269/* end confdefs.h. */ 19270 19271/* Override any gcc2 internal prototype to avoid an error. */ 19272#ifdef __cplusplus 19273extern "C" 19274#endif 19275/* We use char because int might match the return type of a gcc2 19276 builtin and then its argument prototype would still apply. */ 19277char sqlite3_profile (); 19278int 19279main () 19280{ 19281sqlite3_profile (); 19282 ; 19283 return 0; 19284} 19285_ACEOF 19286rm -f conftest.$ac_objext conftest$ac_exeext 19287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19288 (eval $ac_link) 2>conftest.er1 19289 ac_status=$? 19290 grep -v '^ *+' conftest.er1 >conftest.err 19291 rm -f conftest.er1 19292 cat conftest.err >&5 19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19294 (exit $ac_status); } && 19295 { ac_try='test -z "$ac_c_werror_flag" 19296 || test ! -s conftest.err' 19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19298 (eval $ac_try) 2>&5 19299 ac_status=$? 19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19301 (exit $ac_status); }; } && 19302 { ac_try='test -s conftest$ac_exeext' 19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19304 (eval $ac_try) 2>&5 19305 ac_status=$? 19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19307 (exit $ac_status); }; }; then 19308 ac_cv_lib_sqlite3_sqlite3_profile=yes 19309else 19310 echo "$as_me: failed program was:" >&5 19311sed 's/^/| /' conftest.$ac_ext >&5 19312 19313ac_cv_lib_sqlite3_sqlite3_profile=no 19314fi 19315rm -f conftest.err conftest.$ac_objext \ 19316 conftest$ac_exeext conftest.$ac_ext 19317LIBS=$ac_check_lib_save_LIBS 19318fi 19319echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_profile" >&5 19320echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_profile" >&6 19321if test $ac_cv_lib_sqlite3_sqlite3_profile = yes; then 19322 SQLITE3_PROFILE=1 19323else 19324 SQLITE3_PROFILE=0 19325fi 19326 19327 echo "$as_me:$LINENO: checking for sqlite3_strnicmp in -lsqlite3" >&5 19328echo $ECHO_N "checking for sqlite3_strnicmp in -lsqlite3... $ECHO_C" >&6 19329if test "${ac_cv_lib_sqlite3_sqlite3_strnicmp+set}" = set; then 19330 echo $ECHO_N "(cached) $ECHO_C" >&6 19331else 19332 ac_check_lib_save_LIBS=$LIBS 19333LIBS="-lsqlite3 $LIBS" 19334cat >conftest.$ac_ext <<_ACEOF 19335/* confdefs.h. */ 19336_ACEOF 19337cat confdefs.h >>conftest.$ac_ext 19338cat >>conftest.$ac_ext <<_ACEOF 19339/* end confdefs.h. */ 19340 19341/* Override any gcc2 internal prototype to avoid an error. */ 19342#ifdef __cplusplus 19343extern "C" 19344#endif 19345/* We use char because int might match the return type of a gcc2 19346 builtin and then its argument prototype would still apply. */ 19347char sqlite3_strnicmp (); 19348int 19349main () 19350{ 19351sqlite3_strnicmp (); 19352 ; 19353 return 0; 19354} 19355_ACEOF 19356rm -f conftest.$ac_objext conftest$ac_exeext 19357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19358 (eval $ac_link) 2>conftest.er1 19359 ac_status=$? 19360 grep -v '^ *+' conftest.er1 >conftest.err 19361 rm -f conftest.er1 19362 cat conftest.err >&5 19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19364 (exit $ac_status); } && 19365 { ac_try='test -z "$ac_c_werror_flag" 19366 || test ! -s conftest.err' 19367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19368 (eval $ac_try) 2>&5 19369 ac_status=$? 19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19371 (exit $ac_status); }; } && 19372 { ac_try='test -s conftest$ac_exeext' 19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19374 (eval $ac_try) 2>&5 19375 ac_status=$? 19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19377 (exit $ac_status); }; }; then 19378 ac_cv_lib_sqlite3_sqlite3_strnicmp=yes 19379else 19380 echo "$as_me: failed program was:" >&5 19381sed 's/^/| /' conftest.$ac_ext >&5 19382 19383ac_cv_lib_sqlite3_sqlite3_strnicmp=no 19384fi 19385rm -f conftest.err conftest.$ac_objext \ 19386 conftest$ac_exeext conftest.$ac_ext 19387LIBS=$ac_check_lib_save_LIBS 19388fi 19389echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_strnicmp" >&5 19390echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_strnicmp" >&6 19391if test $ac_cv_lib_sqlite3_sqlite3_strnicmp = yes; then 19392 SQLITE3_STRNICMP=1 19393else 19394 SQLITE3_STRNICMP=0 19395fi 19396 19397 LIBS=$saved_LIBS 19398 CFLAGS=$saved_CFLAGS 19399fi 19400 19401if test "$SQLITE3_LOADEXTENSION" = "1" ; then 19402 EXT_BLOBTOXY=libsqlite3_mod_blobtoxy.la 19403 EXT_IMPEXP=libsqlite3_mod_impexp.la 19404 LIB_TARGETS="$LIB_TARGETS $EXT_BLOBTOXY $EXT_IMPEXP" 19405else 19406 EXT_BLOBTOXY="" 19407 EXT_IMPEXP="" 19408fi 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423######### 19424# Any SQLite to be done ? 19425 19426if test "X$LIB_TARGETS" = "X" ; then 19427 { { echo "$as_me:$LINENO: error: No usable SQLite header/library on this system" >&5 19428echo "$as_me: error: No usable SQLite header/library on this system" >&2;} 19429 { (exit 1); exit 1; }; } 19430fi 19431 19432 19433 19434 19435 19436 19437######### 19438# Find ODBC headers and libraries 19439# 19440 19441# Check whether --with-odbc or --without-odbc was given. 19442if test "${with_odbc+set}" = set; then 19443 withval="$with_odbc" 19444 ODBC_DIR=$withval 19445fi; 19446if test -n "$ODBC_DIR" ; then 19447 if test ! -d "$ODBC_DIR" ; then 19448 { { echo "$as_me:$LINENO: error: ODBC directory $ODBC_DIR does not exist" >&5 19449echo "$as_me: error: ODBC directory $ODBC_DIR does not exist" >&2;} 19450 { (exit 1); exit 1; }; } 19451 fi 19452fi 19453 19454ODBC_FLAGS=UNKNOWN 19455ODBC_LIB=UNKNOWN 19456 19457if test -z "$ODBC_DIR" ; then 19458 if test -r "$includedir/sql.h" -a -r "$includedir/iodbcinst.h" -a -r "$libdir/libiodbcinst.la" ; then 19459 ODBC_FLAGS="-DHAVE_IODBC=1 -I$includedir" 19460 ODBC_LIB="$libdir/libiodbcinst.la" 19461 ODBC_DIR="" 19462 elif test -r "$includedir/iodbc/sql.h" -a -r "$includedir/iodbc/iodbcinst.h" -a -r "$libdir/libiodbcinst.la" ; then 19463 ODBC_FLAGS="-DHAVE_IODBC=1 -I$includedir/iodbc" 19464 ODBC_LIB="$libdir/libiodbcinst.la" 19465 ODBC_DIR="" 19466 elif test -r "$includedir/sql.h" -a -r "$includedir/odbcinst.h" -a -r "$libdir/libodbcinst.la" ; then 19467 ODBC_FLAGS="-DHAVE_UNIXODBC=1 -I$includedir" 19468 ODBC_LIB="$libdir/libodbcinst.la" 19469 if test -r "$includedir/odbcinstext.h" ; then 19470 ODBC_FLAGS="$ODBC_FLAGS -DHAVE_ODBCINSTEXT_H=1 -Imissing" 19471 fi 19472 else 19473 ODBC_DIR="/usr /usr/local /opt" 19474 fi 19475fi 19476 19477echo "$as_me:$LINENO: checking for ODBC headers and libraries" >&5 19478echo $ECHO_N "checking for ODBC headers and libraries... $ECHO_C" >&6 19479for i in $ODBC_DIR ; do 19480 if test -r "$i/include/iodbc/sql.h" -o -r "$i/include/sql.h" ; then 19481 if test -r "$i/include/iodbc/iodbcinst.h" ; then 19482 ODBC_FLAGS="-DHAVE_IODBC=1 -I$i/include/iodbc" 19483 if test -r "$i/lib/libiodbcinst.la" ; then 19484 ODBC_LIB="$i/lib/libiodbcinst.la" 19485 else 19486 ODBC_LIB=-liodbcinst 19487 fi 19488 break 19489 elif test -r "$i/include/iodbcinst.h" ; then 19490 ODBC_FLAGS="-DHAVE_IODBC=1 -I$i/include" 19491 if test -r "$i/lib/libiodbcinst.la" ; then 19492 ODBC_LIB="$i/lib/libiodbcinst.la" 19493 else 19494 ODBC_LIB=-liodbcinst 19495 fi 19496 break 19497 elif test -r "$i/include/odbcinst.h" ; then 19498 ODBC_FLAGS="-DHAVE_UNIXODBC=1 -I$i/include" 19499 if test -r "$i/lib/libodbcinst.la" ; then 19500 ODBC_LIB="$i/lib/libodbcinst.la" 19501 else 19502 ODBC_LIB=-lodbcinst 19503 fi 19504 if test -r "$i/include/odbcinstext.h" ; then 19505 ODBC_FLAGS="$ODBC_FLAGS -DHAVE_ODBCINSTEXT_H=1" 19506 if test -r "$i/include/log.h" -a -r "$i/include/ini.h" ; then 19507 : no need for replacements 19508 else 19509 ODBC_FLAGS="$ODBC_FLAGS -Imissing" 19510 fi 19511 fi 19512 break 19513 fi 19514 fi 19515done 19516if test "$ODBC_FLAGS" = "UNKNOWN" -o "$ODBC_LIB" = "UNKNOWN" ; then 19517 echo "$as_me:$LINENO: result: no" >&5 19518echo "${ECHO_T}no" >&6 19519 { { echo "$as_me:$LINENO: error: ODBC header files and/or libraries not found" >&5 19520echo "$as_me: error: ODBC header files and/or libraries not found" >&2;} 19521 { (exit 1); exit 1; }; } 19522else 19523 echo "$as_me:$LINENO: result: yes" >&5 19524echo "${ECHO_T}yes" >&6 19525fi 19526 19527########## 19528# Test ODBC features. 19529# 19530 19531SAVED_CFLAGS="$CFLAGS" 19532CFLAGS="$CFLAGS $ODBC_FLAGS" 19533 19534echo "$as_me:$LINENO: checking for SQLLEN availability" >&5 19535echo $ECHO_N "checking for SQLLEN availability... $ECHO_C" >&6 19536cat >conftest.$ac_ext <<_ACEOF 19537/* confdefs.h. */ 19538_ACEOF 19539cat confdefs.h >>conftest.$ac_ext 19540cat >>conftest.$ac_ext <<_ACEOF 19541/* end confdefs.h. */ 19542 19543#include <sql.h> 19544#include <sqltypes.h> 19545 19546int 19547main () 19548{ 19549SQLLEN len = 1; 19550 ; 19551 return 0; 19552} 19553_ACEOF 19554rm -f conftest.$ac_objext 19555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19556 (eval $ac_compile) 2>conftest.er1 19557 ac_status=$? 19558 grep -v '^ *+' conftest.er1 >conftest.err 19559 rm -f conftest.er1 19560 cat conftest.err >&5 19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19562 (exit $ac_status); } && 19563 { ac_try='test -z "$ac_c_werror_flag" 19564 || test ! -s conftest.err' 19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19566 (eval $ac_try) 2>&5 19567 ac_status=$? 19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19569 (exit $ac_status); }; } && 19570 { ac_try='test -s conftest.$ac_objext' 19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19572 (eval $ac_try) 2>&5 19573 ac_status=$? 19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19575 (exit $ac_status); }; }; then 19576 19577echo "$as_me:$LINENO: result: yes" >&5 19578echo "${ECHO_T}yes" >&6 19579ODBC_FLAGS="$ODBC_FLAGS -DHAVE_SQLLEN=1" 19580 19581else 19582 echo "$as_me: failed program was:" >&5 19583sed 's/^/| /' conftest.$ac_ext >&5 19584 19585echo "$as_me:$LINENO: result: no" >&5 19586echo "${ECHO_T}no" >&6 19587fi 19588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19589 19590echo "$as_me:$LINENO: checking for SQLULEN availability" >&5 19591echo $ECHO_N "checking for SQLULEN availability... $ECHO_C" >&6 19592cat >conftest.$ac_ext <<_ACEOF 19593/* confdefs.h. */ 19594_ACEOF 19595cat confdefs.h >>conftest.$ac_ext 19596cat >>conftest.$ac_ext <<_ACEOF 19597/* end confdefs.h. */ 19598 19599#include <sql.h> 19600#include <sqltypes.h> 19601 19602int 19603main () 19604{ 19605SQLULEN len = 1; 19606 ; 19607 return 0; 19608} 19609_ACEOF 19610rm -f conftest.$ac_objext 19611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19612 (eval $ac_compile) 2>conftest.er1 19613 ac_status=$? 19614 grep -v '^ *+' conftest.er1 >conftest.err 19615 rm -f conftest.er1 19616 cat conftest.err >&5 19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19618 (exit $ac_status); } && 19619 { ac_try='test -z "$ac_c_werror_flag" 19620 || test ! -s conftest.err' 19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19622 (eval $ac_try) 2>&5 19623 ac_status=$? 19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19625 (exit $ac_status); }; } && 19626 { ac_try='test -s conftest.$ac_objext' 19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19628 (eval $ac_try) 2>&5 19629 ac_status=$? 19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19631 (exit $ac_status); }; }; then 19632 19633echo "$as_me:$LINENO: result: yes" >&5 19634echo "${ECHO_T}yes" >&6 19635ODBC_FLAGS="$ODBC_FLAGS -DHAVE_SQLULEN=1" 19636 19637else 19638 echo "$as_me: failed program was:" >&5 19639sed 's/^/| /' conftest.$ac_ext >&5 19640 19641echo "$as_me:$LINENO: result: no" >&5 19642echo "${ECHO_T}no" >&6 19643fi 19644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19645 19646echo "$as_me:$LINENO: checking for SQLROWCOUNT availability" >&5 19647echo $ECHO_N "checking for SQLROWCOUNT availability... $ECHO_C" >&6 19648cat >conftest.$ac_ext <<_ACEOF 19649/* confdefs.h. */ 19650_ACEOF 19651cat confdefs.h >>conftest.$ac_ext 19652cat >>conftest.$ac_ext <<_ACEOF 19653/* end confdefs.h. */ 19654 19655#include <sql.h> 19656#include <sqltypes.h> 19657 19658int 19659main () 19660{ 19661SQLROWCOUNT rc = 1; 19662 ; 19663 return 0; 19664} 19665_ACEOF 19666rm -f conftest.$ac_objext 19667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19668 (eval $ac_compile) 2>conftest.er1 19669 ac_status=$? 19670 grep -v '^ *+' conftest.er1 >conftest.err 19671 rm -f conftest.er1 19672 cat conftest.err >&5 19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19674 (exit $ac_status); } && 19675 { ac_try='test -z "$ac_c_werror_flag" 19676 || test ! -s conftest.err' 19677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19678 (eval $ac_try) 2>&5 19679 ac_status=$? 19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19681 (exit $ac_status); }; } && 19682 { ac_try='test -s conftest.$ac_objext' 19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19684 (eval $ac_try) 2>&5 19685 ac_status=$? 19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19687 (exit $ac_status); }; }; then 19688 19689echo "$as_me:$LINENO: result: yes" >&5 19690echo "${ECHO_T}yes" >&6 19691ODBC_FLAGS="$ODBC_FLAGS -DHAVE_SQLROWCOUNT=1" 19692 19693else 19694 echo "$as_me: failed program was:" >&5 19695sed 's/^/| /' conftest.$ac_ext >&5 19696 19697echo "$as_me:$LINENO: result: no" >&5 19698echo "${ECHO_T}no" >&6 19699fi 19700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19701 19702echo "$as_me:$LINENO: checking for SQLSETPOSIROW availability" >&5 19703echo $ECHO_N "checking for SQLSETPOSIROW availability... $ECHO_C" >&6 19704cat >conftest.$ac_ext <<_ACEOF 19705/* confdefs.h. */ 19706_ACEOF 19707cat confdefs.h >>conftest.$ac_ext 19708cat >>conftest.$ac_ext <<_ACEOF 19709/* end confdefs.h. */ 19710 19711#include <sql.h> 19712#include <sqltypes.h> 19713 19714int 19715main () 19716{ 19717SQLSETPOSIROW rc = 1; 19718 ; 19719 return 0; 19720} 19721_ACEOF 19722rm -f conftest.$ac_objext 19723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19724 (eval $ac_compile) 2>conftest.er1 19725 ac_status=$? 19726 grep -v '^ *+' conftest.er1 >conftest.err 19727 rm -f conftest.er1 19728 cat conftest.err >&5 19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19730 (exit $ac_status); } && 19731 { ac_try='test -z "$ac_c_werror_flag" 19732 || test ! -s conftest.err' 19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19734 (eval $ac_try) 2>&5 19735 ac_status=$? 19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19737 (exit $ac_status); }; } && 19738 { ac_try='test -s conftest.$ac_objext' 19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19740 (eval $ac_try) 2>&5 19741 ac_status=$? 19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19743 (exit $ac_status); }; }; then 19744 19745echo "$as_me:$LINENO: result: yes" >&5 19746echo "${ECHO_T}yes" >&6 19747ODBC_FLAGS="$ODBC_FLAGS -DHAVE_SQLSETPOSIROW=1" 19748 19749else 19750 echo "$as_me: failed program was:" >&5 19751sed 's/^/| /' conftest.$ac_ext >&5 19752 19753echo "$as_me:$LINENO: result: no" >&5 19754echo "${ECHO_T}no" >&6 19755fi 19756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19757 19758echo "$as_me:$LINENO: checking for SQLROWOFFSET availability" >&5 19759echo $ECHO_N "checking for SQLROWOFFSET availability... $ECHO_C" >&6 19760cat >conftest.$ac_ext <<_ACEOF 19761/* confdefs.h. */ 19762_ACEOF 19763cat confdefs.h >>conftest.$ac_ext 19764cat >>conftest.$ac_ext <<_ACEOF 19765/* end confdefs.h. */ 19766 19767#include <sql.h> 19768#include <sqltypes.h> 19769 19770int 19771main () 19772{ 19773SQLROWOFFSET rc = 1; 19774 ; 19775 return 0; 19776} 19777_ACEOF 19778rm -f conftest.$ac_objext 19779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19780 (eval $ac_compile) 2>conftest.er1 19781 ac_status=$? 19782 grep -v '^ *+' conftest.er1 >conftest.err 19783 rm -f conftest.er1 19784 cat conftest.err >&5 19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19786 (exit $ac_status); } && 19787 { ac_try='test -z "$ac_c_werror_flag" 19788 || test ! -s conftest.err' 19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19790 (eval $ac_try) 2>&5 19791 ac_status=$? 19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19793 (exit $ac_status); }; } && 19794 { ac_try='test -s conftest.$ac_objext' 19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19796 (eval $ac_try) 2>&5 19797 ac_status=$? 19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19799 (exit $ac_status); }; }; then 19800 19801echo "$as_me:$LINENO: result: yes" >&5 19802echo "${ECHO_T}yes" >&6 19803ODBC_FLAGS="$ODBC_FLAGS -DHAVE_SQLROWOFFSET=1" 19804 19805else 19806 echo "$as_me: failed program was:" >&5 19807sed 's/^/| /' conftest.$ac_ext >&5 19808 19809echo "$as_me:$LINENO: result: no" >&5 19810echo "${ECHO_T}no" >&6 19811fi 19812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19813 19814echo "$as_me:$LINENO: checking for SQLROWSETSIZE availability" >&5 19815echo $ECHO_N "checking for SQLROWSETSIZE availability... $ECHO_C" >&6 19816cat >conftest.$ac_ext <<_ACEOF 19817/* confdefs.h. */ 19818_ACEOF 19819cat confdefs.h >>conftest.$ac_ext 19820cat >>conftest.$ac_ext <<_ACEOF 19821/* end confdefs.h. */ 19822 19823#include <sql.h> 19824#include <sqltypes.h> 19825 19826int 19827main () 19828{ 19829SQLROWSETSIZE rc = 1; 19830 ; 19831 return 0; 19832} 19833_ACEOF 19834rm -f conftest.$ac_objext 19835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19836 (eval $ac_compile) 2>conftest.er1 19837 ac_status=$? 19838 grep -v '^ *+' conftest.er1 >conftest.err 19839 rm -f conftest.er1 19840 cat conftest.err >&5 19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19842 (exit $ac_status); } && 19843 { ac_try='test -z "$ac_c_werror_flag" 19844 || test ! -s conftest.err' 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); }; } && 19850 { ac_try='test -s conftest.$ac_objext' 19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19852 (eval $ac_try) 2>&5 19853 ac_status=$? 19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19855 (exit $ac_status); }; }; then 19856 19857echo "$as_me:$LINENO: result: yes" >&5 19858echo "${ECHO_T}yes" >&6 19859ODBC_FLAGS="$ODBC_FLAGS -DHAVE_SQLROWSETSIZE=1" 19860 19861else 19862 echo "$as_me: failed program was:" >&5 19863sed 's/^/| /' conftest.$ac_ext >&5 19864 19865echo "$as_me:$LINENO: result: no" >&5 19866echo "${ECHO_T}no" >&6 19867fi 19868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19869 19870echo "$as_me:$LINENO: checking for SQLColAttribute signature has SQLLEN" >&5 19871echo $ECHO_N "checking for SQLColAttribute signature has SQLLEN... $ECHO_C" >&6 19872cat >conftest.$ac_ext <<_ACEOF 19873/* confdefs.h. */ 19874_ACEOF 19875cat confdefs.h >>conftest.$ac_ext 19876cat >>conftest.$ac_ext <<_ACEOF 19877/* end confdefs.h. */ 19878 19879#include <stdio.h> 19880#define ODBCVER 0x0300 19881#include <sql.h> 19882#include <sqlext.h> 19883#include <sqltypes.h> 19884 19885int 19886main () 19887{ 19888 19889SQLHSTMT stmt = SQL_NULL_HSTMT; 19890SQLSMALLINT valLen; 19891SQLLEN val2; 19892extern SQLRETURN SQLColAttribute(SQLHSTMT hstmt, 19893 SQLUSMALLINT col, 19894 SQLUSMALLINT id, 19895 SQLPOINTER charattr, 19896 SQLSMALLINT buflen, 19897 SQLSMALLINT *slen, 19898 SQLLEN *numattr); 19899SQLColAttribute(stmt, 1, 0, NULL, 0, &valLen, &val2); 19900 19901 ; 19902 return 0; 19903} 19904_ACEOF 19905rm -f conftest.$ac_objext 19906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19907 (eval $ac_compile) 2>conftest.er1 19908 ac_status=$? 19909 grep -v '^ *+' conftest.er1 >conftest.err 19910 rm -f conftest.er1 19911 cat conftest.err >&5 19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19913 (exit $ac_status); } && 19914 { ac_try='test -z "$ac_c_werror_flag" 19915 || test ! -s conftest.err' 19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19917 (eval $ac_try) 2>&5 19918 ac_status=$? 19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19920 (exit $ac_status); }; } && 19921 { ac_try='test -s conftest.$ac_objext' 19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19923 (eval $ac_try) 2>&5 19924 ac_status=$? 19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19926 (exit $ac_status); }; }; then 19927 19928echo "$as_me:$LINENO: result: yes" >&5 19929echo "${ECHO_T}yes" >&6 19930ODBC_FLAGS="$ODBC_FLAGS -DCOLATTRIBUTE_LAST_ARG_TYPE=SQLLEN_PTR" 19931 19932else 19933 echo "$as_me: failed program was:" >&5 19934sed 's/^/| /' conftest.$ac_ext >&5 19935 19936echo "$as_me:$LINENO: result: no" >&5 19937echo "${ECHO_T}no" >&6 19938fi 19939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19940 19941echo "$as_me:$LINENO: checking for SQLSetStmtOption signature has SQLULEN" >&5 19942echo $ECHO_N "checking for SQLSetStmtOption signature has SQLULEN... $ECHO_C" >&6 19943cat >conftest.$ac_ext <<_ACEOF 19944/* confdefs.h. */ 19945_ACEOF 19946cat confdefs.h >>conftest.$ac_ext 19947cat >>conftest.$ac_ext <<_ACEOF 19948/* end confdefs.h. */ 19949 19950#include <stdio.h> 19951#define ODBCVER 0x0300 19952#include <sql.h> 19953#include <sqlext.h> 19954#include <sqltypes.h> 19955 19956int 19957main () 19958{ 19959 19960SQLHSTMT stmt = SQL_NULL_HSTMT; 19961extern SQLRETURN SQLSetStmtOption(SQLHSTMT hstmt, 19962 SQLUSMALLINT option, 19963 SQLULEN value); 19964SQLSetStmtOption(stmt, 1, 2); 19965 19966 ; 19967 return 0; 19968} 19969_ACEOF 19970rm -f conftest.$ac_objext 19971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19972 (eval $ac_compile) 2>conftest.er1 19973 ac_status=$? 19974 grep -v '^ *+' conftest.er1 >conftest.err 19975 rm -f conftest.er1 19976 cat conftest.err >&5 19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19978 (exit $ac_status); } && 19979 { ac_try='test -z "$ac_c_werror_flag" 19980 || test ! -s conftest.err' 19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19982 (eval $ac_try) 2>&5 19983 ac_status=$? 19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19985 (exit $ac_status); }; } && 19986 { ac_try='test -s conftest.$ac_objext' 19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19988 (eval $ac_try) 2>&5 19989 ac_status=$? 19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19991 (exit $ac_status); }; }; then 19992 19993echo "$as_me:$LINENO: result: yes" >&5 19994echo "${ECHO_T}yes" >&6 19995ODBC_FLAGS="$ODBC_FLAGS -DSETSTMTOPTION_LAST_ARG_TYPE=SQLULEN" 19996 19997else 19998 echo "$as_me: failed program was:" >&5 19999sed 's/^/| /' conftest.$ac_ext >&5 20000 20001echo "$as_me:$LINENO: result: no" >&5 20002echo "${ECHO_T}no" >&6 20003fi 20004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20005 20006echo "$as_me:$LINENO: checking for SQLWCHAR availability" >&5 20007echo $ECHO_N "checking for SQLWCHAR availability... $ECHO_C" >&6 20008cat >conftest.$ac_ext <<_ACEOF 20009/* confdefs.h. */ 20010_ACEOF 20011cat confdefs.h >>conftest.$ac_ext 20012cat >>conftest.$ac_ext <<_ACEOF 20013/* end confdefs.h. */ 20014 20015#include <sql.h> 20016#include <sqltypes.h> 20017 20018int 20019main () 20020{ 20021SQLWCHAR thisiswchar; 20022 ; 20023 return 0; 20024} 20025_ACEOF 20026rm -f conftest.$ac_objext 20027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20028 (eval $ac_compile) 2>conftest.er1 20029 ac_status=$? 20030 grep -v '^ *+' conftest.er1 >conftest.err 20031 rm -f conftest.er1 20032 cat conftest.err >&5 20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20034 (exit $ac_status); } && 20035 { ac_try='test -z "$ac_c_werror_flag" 20036 || test ! -s conftest.err' 20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20038 (eval $ac_try) 2>&5 20039 ac_status=$? 20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20041 (exit $ac_status); }; } && 20042 { ac_try='test -s conftest.$ac_objext' 20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20044 (eval $ac_try) 2>&5 20045 ac_status=$? 20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20047 (exit $ac_status); }; }; then 20048 20049echo "$as_me:$LINENO: result: yes" >&5 20050echo "${ECHO_T}yes" >&6 20051ODBC_FLAGS="$ODBC_FLAGS -DHAVE_SQLWCHAR=1" 20052 20053else 20054 echo "$as_me: failed program was:" >&5 20055sed 's/^/| /' conftest.$ac_ext >&5 20056 20057echo "$as_me:$LINENO: result: no" >&5 20058echo "${ECHO_T}no" >&6 20059fi 20060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20061 20062echo "$as_me:$LINENO: checking for SQLBIGINT availability" >&5 20063echo $ECHO_N "checking for SQLBIGINT availability... $ECHO_C" >&6 20064cat >conftest.$ac_ext <<_ACEOF 20065/* confdefs.h. */ 20066_ACEOF 20067cat confdefs.h >>conftest.$ac_ext 20068cat >>conftest.$ac_ext <<_ACEOF 20069/* end confdefs.h. */ 20070 20071#include <sql.h> 20072#include <sqltypes.h> 20073 20074int 20075main () 20076{ 20077SQLBIGINT thisisbig; 20078 ; 20079 return 0; 20080} 20081_ACEOF 20082rm -f conftest.$ac_objext 20083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20084 (eval $ac_compile) 2>conftest.er1 20085 ac_status=$? 20086 grep -v '^ *+' conftest.er1 >conftest.err 20087 rm -f conftest.er1 20088 cat conftest.err >&5 20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20090 (exit $ac_status); } && 20091 { ac_try='test -z "$ac_c_werror_flag" 20092 || test ! -s conftest.err' 20093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20094 (eval $ac_try) 2>&5 20095 ac_status=$? 20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20097 (exit $ac_status); }; } && 20098 { ac_try='test -s conftest.$ac_objext' 20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20100 (eval $ac_try) 2>&5 20101 ac_status=$? 20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20103 (exit $ac_status); }; }; then 20104 20105echo "$as_me:$LINENO: result: yes" >&5 20106echo "${ECHO_T}yes" >&6 20107ODBC_FLAGS="$ODBC_FLAGS -DHAVE_LONG_LONG=1" 20108 20109else 20110 echo "$as_me: failed program was:" >&5 20111sed 's/^/| /' conftest.$ac_ext >&5 20112 20113echo "$as_me:$LINENO: result: no" >&5 20114echo "${ECHO_T}no" >&6 20115fi 20116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20117 20118echo "$as_me:$LINENO: checking for ptrdiff_t availability" >&5 20119echo $ECHO_N "checking for ptrdiff_t availability... $ECHO_C" >&6 20120cat >conftest.$ac_ext <<_ACEOF 20121/* confdefs.h. */ 20122_ACEOF 20123cat confdefs.h >>conftest.$ac_ext 20124cat >>conftest.$ac_ext <<_ACEOF 20125/* end confdefs.h. */ 20126 20127#include <stddef.h> 20128#include <stdlib.h> 20129 20130int 20131main () 20132{ 20133ptrdiff_t apdt = 0; 20134 ; 20135 return 0; 20136} 20137_ACEOF 20138rm -f conftest.$ac_objext 20139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20140 (eval $ac_compile) 2>conftest.er1 20141 ac_status=$? 20142 grep -v '^ *+' conftest.er1 >conftest.err 20143 rm -f conftest.er1 20144 cat conftest.err >&5 20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20146 (exit $ac_status); } && 20147 { ac_try='test -z "$ac_c_werror_flag" 20148 || test ! -s conftest.err' 20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20150 (eval $ac_try) 2>&5 20151 ac_status=$? 20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20153 (exit $ac_status); }; } && 20154 { ac_try='test -s conftest.$ac_objext' 20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20156 (eval $ac_try) 2>&5 20157 ac_status=$? 20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20159 (exit $ac_status); }; }; then 20160 20161echo "$as_me:$LINENO: result: yes" >&5 20162echo "${ECHO_T}yes" >&6 20163ODBC_FLAGS="$ODBC_FLAGS -DPTRDIFF_T=ptrdiff_t" 20164 20165else 20166 echo "$as_me: failed program was:" >&5 20167sed 's/^/| /' conftest.$ac_ext >&5 20168 20169 20170echo "$as_me:$LINENO: result: no" >&5 20171echo "${ECHO_T}no" >&6 20172ODBC_FLAGS="$ODBC_FLAGS -DPTRDIFF_T=int" 20173 20174fi 20175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20176 20177CFLAGS="$SAVED_CFLAGS" 20178 20179########## 20180# Experimental: dlopen for resolving SQLGetPrivateProfileString dynamically 20181# 20182echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 20183echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 20184if test "${ac_cv_lib_dl_dlopen+set}" = set; then 20185 echo $ECHO_N "(cached) $ECHO_C" >&6 20186else 20187 ac_check_lib_save_LIBS=$LIBS 20188LIBS="-ldl $LIBS" 20189cat >conftest.$ac_ext <<_ACEOF 20190/* confdefs.h. */ 20191_ACEOF 20192cat confdefs.h >>conftest.$ac_ext 20193cat >>conftest.$ac_ext <<_ACEOF 20194/* end confdefs.h. */ 20195 20196/* Override any gcc2 internal prototype to avoid an error. */ 20197#ifdef __cplusplus 20198extern "C" 20199#endif 20200/* We use char because int might match the return type of a gcc2 20201 builtin and then its argument prototype would still apply. */ 20202char dlopen (); 20203int 20204main () 20205{ 20206dlopen (); 20207 ; 20208 return 0; 20209} 20210_ACEOF 20211rm -f conftest.$ac_objext conftest$ac_exeext 20212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20213 (eval $ac_link) 2>conftest.er1 20214 ac_status=$? 20215 grep -v '^ *+' conftest.er1 >conftest.err 20216 rm -f conftest.er1 20217 cat conftest.err >&5 20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20219 (exit $ac_status); } && 20220 { ac_try='test -z "$ac_c_werror_flag" 20221 || test ! -s conftest.err' 20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20223 (eval $ac_try) 2>&5 20224 ac_status=$? 20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20226 (exit $ac_status); }; } && 20227 { ac_try='test -s conftest$ac_exeext' 20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20229 (eval $ac_try) 2>&5 20230 ac_status=$? 20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20232 (exit $ac_status); }; }; then 20233 ac_cv_lib_dl_dlopen=yes 20234else 20235 echo "$as_me: failed program was:" >&5 20236sed 's/^/| /' conftest.$ac_ext >&5 20237 20238ac_cv_lib_dl_dlopen=no 20239fi 20240rm -f conftest.err conftest.$ac_objext \ 20241 conftest$ac_exeext conftest.$ac_ext 20242LIBS=$ac_check_lib_save_LIBS 20243fi 20244echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 20245echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 20246if test $ac_cv_lib_dl_dlopen = yes; then 20247 DLOPENFORGPPS=1 20248else 20249 DLOPENFORGPPS=0 20250fi 20251 20252if test "$DLOPENFORGPPS" = "1" ; then 20253 echo "$as_me:$LINENO: checking for SQLGetPrivateProfileString via dlopen" >&5 20254echo $ECHO_N "checking for SQLGetPrivateProfileString via dlopen... $ECHO_C" >&6 20255 saved_LIBS=$LIBS 20256 LIBS="$LIBS -ldl" 20257 if test "$cross_compiling" = yes; then 20258 echo "$as_me:$LINENO: result: no" >&5 20259echo "${ECHO_T}no" >&6 20260else 20261 cat >conftest.$ac_ext <<_ACEOF 20262/* confdefs.h. */ 20263_ACEOF 20264cat confdefs.h >>conftest.$ac_ext 20265cat >>conftest.$ac_ext <<_ACEOF 20266/* end confdefs.h. */ 20267 20268#include <dlfcn.h> 20269 20270int 20271main(int argc, char **argv) 20272{ 20273 void *lib; 20274 int (*gpps)(); 20275 20276 lib = dlopen("libodbcinst.so", RTLD_LAZY); 20277 if (!lib) { 20278 lib = dlopen("libiodbcinst.so", RTLD_LAZY); 20279 } 20280 if (lib) { 20281 gpps = (int (*)()) dlsym(lib, "SQLGetPrivateProfileString"); 20282 exit(0); 20283 } 20284 exit(1); 20285} 20286 20287_ACEOF 20288rm -f conftest$ac_exeext 20289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20290 (eval $ac_link) 2>&5 20291 ac_status=$? 20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20295 (eval $ac_try) 2>&5 20296 ac_status=$? 20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20298 (exit $ac_status); }; }; then 20299 20300 ODBC_FLAGS="$ODBC_FLAGS -DUSE_DLOPEN_FOR_GPPS" 20301 ODBC_LIB="-ldl" 20302 echo "$as_me:$LINENO: result: yes" >&5 20303echo "${ECHO_T}yes" >&6 20304 20305else 20306 echo "$as_me: program exited with status $ac_status" >&5 20307echo "$as_me: failed program was:" >&5 20308sed 's/^/| /' conftest.$ac_ext >&5 20309 20310( exit $ac_status ) 20311echo "$as_me:$LINENO: result: no" >&5 20312echo "${ECHO_T}no" >&6 20313fi 20314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20315fi 20316 LIBS=$saved_LIBS 20317fi 20318 20319 20320 20321 20322 20323########## 20324# Find out if char ptr array can be passed in place of 20325# a va_list (needed for sqlite_exec_vprintf() and 20326# sqlite_vmprintf()) 20327# 20328echo "$as_me:$LINENO: checking va_list usage" >&5 20329echo $ECHO_N "checking va_list usage... $ECHO_C" >&6 20330if test "$cross_compiling" = yes; then 20331 USE_VFUNCS=0 20332else 20333 cat >conftest.$ac_ext <<_ACEOF 20334/* confdefs.h. */ 20335_ACEOF 20336cat confdefs.h >>conftest.$ac_ext 20337cat >>conftest.$ac_ext <<_ACEOF 20338/* end confdefs.h. */ 20339 20340#include <stdarg.h> 20341#include <stdio.h> 20342 20343static int 20344vatest(char **x, ...) 20345{ 20346 va_list ap; 20347 char *y; 20348 int ret; 20349 20350 va_start(ap, x); 20351 y = va_arg(ap, char *); 20352 x = (char **) &x + 1; 20353 ret = (y != *x); 20354 va_end(ap); 20355 return ret; 20356} 20357 20358int 20359main(int argc, char **argv) 20360{ 20361 exit(vatest(NULL, vatest, 0.0, 0, NULL)); 20362} 20363 20364_ACEOF 20365rm -f conftest$ac_exeext 20366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20367 (eval $ac_link) 2>&5 20368 ac_status=$? 20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20372 (eval $ac_try) 2>&5 20373 ac_status=$? 20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20375 (exit $ac_status); }; }; then 20376 USE_VFUNCS=1 20377else 20378 echo "$as_me: program exited with status $ac_status" >&5 20379echo "$as_me: failed program was:" >&5 20380sed 's/^/| /' conftest.$ac_ext >&5 20381 20382( exit $ac_status ) 20383USE_VFUNCS=0 20384fi 20385rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20386fi 20387 20388if test "$USE_VFUNCS" = "1" ; then 20389 echo "$as_me:$LINENO: result: using sqlite_exec_vprintf/sqlite_vmprintf" >&5 20390echo "${ECHO_T}using sqlite_exec_vprintf/sqlite_vmprintf" >&6 20391else 20392 echo "$as_me:$LINENO: result: NOT using sqlite_exec_vprintf/sqlite_vmprintf" >&5 20393echo "${ECHO_T}NOT using sqlite_exec_vprintf/sqlite_vmprintf" >&6 20394 ODBC_FLAGS="$ODBC_FLAGS -DCANT_PASS_VALIST_AS_CHARPTR=1" 20395fi 20396 20397########## 20398# Check for usleep() and nanosleep() 20399# 20400echo "$as_me:$LINENO: checking for usleep" >&5 20401echo $ECHO_N "checking for usleep... $ECHO_C" >&6 20402if test "${ac_cv_func_usleep+set}" = set; then 20403 echo $ECHO_N "(cached) $ECHO_C" >&6 20404else 20405 cat >conftest.$ac_ext <<_ACEOF 20406/* confdefs.h. */ 20407_ACEOF 20408cat confdefs.h >>conftest.$ac_ext 20409cat >>conftest.$ac_ext <<_ACEOF 20410/* end confdefs.h. */ 20411/* Define usleep to an innocuous variant, in case <limits.h> declares usleep. 20412 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20413#define usleep innocuous_usleep 20414 20415/* System header to define __stub macros and hopefully few prototypes, 20416 which can conflict with char usleep (); below. 20417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20418 <limits.h> exists even on freestanding compilers. */ 20419 20420#ifdef __STDC__ 20421# include <limits.h> 20422#else 20423# include <assert.h> 20424#endif 20425 20426#undef usleep 20427 20428/* Override any gcc2 internal prototype to avoid an error. */ 20429#ifdef __cplusplus 20430extern "C" 20431{ 20432#endif 20433/* We use char because int might match the return type of a gcc2 20434 builtin and then its argument prototype would still apply. */ 20435char usleep (); 20436/* The GNU C library defines this for functions which it implements 20437 to always fail with ENOSYS. Some functions are actually named 20438 something starting with __ and the normal name is an alias. */ 20439#if defined (__stub_usleep) || defined (__stub___usleep) 20440choke me 20441#else 20442char (*f) () = usleep; 20443#endif 20444#ifdef __cplusplus 20445} 20446#endif 20447 20448int 20449main () 20450{ 20451return f != usleep; 20452 ; 20453 return 0; 20454} 20455_ACEOF 20456rm -f conftest.$ac_objext conftest$ac_exeext 20457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20458 (eval $ac_link) 2>conftest.er1 20459 ac_status=$? 20460 grep -v '^ *+' conftest.er1 >conftest.err 20461 rm -f conftest.er1 20462 cat conftest.err >&5 20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20464 (exit $ac_status); } && 20465 { ac_try='test -z "$ac_c_werror_flag" 20466 || test ! -s conftest.err' 20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20468 (eval $ac_try) 2>&5 20469 ac_status=$? 20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20471 (exit $ac_status); }; } && 20472 { ac_try='test -s conftest$ac_exeext' 20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20474 (eval $ac_try) 2>&5 20475 ac_status=$? 20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20477 (exit $ac_status); }; }; then 20478 ac_cv_func_usleep=yes 20479else 20480 echo "$as_me: failed program was:" >&5 20481sed 's/^/| /' conftest.$ac_ext >&5 20482 20483ac_cv_func_usleep=no 20484fi 20485rm -f conftest.err conftest.$ac_objext \ 20486 conftest$ac_exeext conftest.$ac_ext 20487fi 20488echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5 20489echo "${ECHO_T}$ac_cv_func_usleep" >&6 20490if test $ac_cv_func_usleep = yes; then 20491 ODBC_FLAGS="$ODBC_FLAGS -DHAVE_USLEEP=1" 20492fi 20493 20494echo "$as_me:$LINENO: checking for nanosleep" >&5 20495echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6 20496if test "${ac_cv_func_nanosleep+set}" = set; then 20497 echo $ECHO_N "(cached) $ECHO_C" >&6 20498else 20499 cat >conftest.$ac_ext <<_ACEOF 20500/* confdefs.h. */ 20501_ACEOF 20502cat confdefs.h >>conftest.$ac_ext 20503cat >>conftest.$ac_ext <<_ACEOF 20504/* end confdefs.h. */ 20505/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. 20506 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20507#define nanosleep innocuous_nanosleep 20508 20509/* System header to define __stub macros and hopefully few prototypes, 20510 which can conflict with char nanosleep (); below. 20511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20512 <limits.h> exists even on freestanding compilers. */ 20513 20514#ifdef __STDC__ 20515# include <limits.h> 20516#else 20517# include <assert.h> 20518#endif 20519 20520#undef nanosleep 20521 20522/* Override any gcc2 internal prototype to avoid an error. */ 20523#ifdef __cplusplus 20524extern "C" 20525{ 20526#endif 20527/* We use char because int might match the return type of a gcc2 20528 builtin and then its argument prototype would still apply. */ 20529char nanosleep (); 20530/* The GNU C library defines this for functions which it implements 20531 to always fail with ENOSYS. Some functions are actually named 20532 something starting with __ and the normal name is an alias. */ 20533#if defined (__stub_nanosleep) || defined (__stub___nanosleep) 20534choke me 20535#else 20536char (*f) () = nanosleep; 20537#endif 20538#ifdef __cplusplus 20539} 20540#endif 20541 20542int 20543main () 20544{ 20545return f != nanosleep; 20546 ; 20547 return 0; 20548} 20549_ACEOF 20550rm -f conftest.$ac_objext conftest$ac_exeext 20551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20552 (eval $ac_link) 2>conftest.er1 20553 ac_status=$? 20554 grep -v '^ *+' conftest.er1 >conftest.err 20555 rm -f conftest.er1 20556 cat conftest.err >&5 20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20558 (exit $ac_status); } && 20559 { ac_try='test -z "$ac_c_werror_flag" 20560 || test ! -s conftest.err' 20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20562 (eval $ac_try) 2>&5 20563 ac_status=$? 20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20565 (exit $ac_status); }; } && 20566 { ac_try='test -s conftest$ac_exeext' 20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20568 (eval $ac_try) 2>&5 20569 ac_status=$? 20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20571 (exit $ac_status); }; }; then 20572 ac_cv_func_nanosleep=yes 20573else 20574 echo "$as_me: failed program was:" >&5 20575sed 's/^/| /' conftest.$ac_ext >&5 20576 20577ac_cv_func_nanosleep=no 20578fi 20579rm -f conftest.err conftest.$ac_objext \ 20580 conftest$ac_exeext conftest.$ac_ext 20581fi 20582echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 20583echo "${ECHO_T}$ac_cv_func_nanosleep" >&6 20584if test $ac_cv_func_nanosleep = yes; then 20585 ODBC_FLAGS="$ODBC_FLAGS -DHAVE_NANOSLEEP=1" 20586fi 20587 20588 20589########## 20590# Check for localeconv() 20591# 20592echo "$as_me:$LINENO: checking for localeconv" >&5 20593echo $ECHO_N "checking for localeconv... $ECHO_C" >&6 20594if test "${ac_cv_func_localeconv+set}" = set; then 20595 echo $ECHO_N "(cached) $ECHO_C" >&6 20596else 20597 cat >conftest.$ac_ext <<_ACEOF 20598/* confdefs.h. */ 20599_ACEOF 20600cat confdefs.h >>conftest.$ac_ext 20601cat >>conftest.$ac_ext <<_ACEOF 20602/* end confdefs.h. */ 20603/* Define localeconv to an innocuous variant, in case <limits.h> declares localeconv. 20604 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20605#define localeconv innocuous_localeconv 20606 20607/* System header to define __stub macros and hopefully few prototypes, 20608 which can conflict with char localeconv (); below. 20609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20610 <limits.h> exists even on freestanding compilers. */ 20611 20612#ifdef __STDC__ 20613# include <limits.h> 20614#else 20615# include <assert.h> 20616#endif 20617 20618#undef localeconv 20619 20620/* Override any gcc2 internal prototype to avoid an error. */ 20621#ifdef __cplusplus 20622extern "C" 20623{ 20624#endif 20625/* We use char because int might match the return type of a gcc2 20626 builtin and then its argument prototype would still apply. */ 20627char localeconv (); 20628/* The GNU C library defines this for functions which it implements 20629 to always fail with ENOSYS. Some functions are actually named 20630 something starting with __ and the normal name is an alias. */ 20631#if defined (__stub_localeconv) || defined (__stub___localeconv) 20632choke me 20633#else 20634char (*f) () = localeconv; 20635#endif 20636#ifdef __cplusplus 20637} 20638#endif 20639 20640int 20641main () 20642{ 20643return f != localeconv; 20644 ; 20645 return 0; 20646} 20647_ACEOF 20648rm -f conftest.$ac_objext conftest$ac_exeext 20649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20650 (eval $ac_link) 2>conftest.er1 20651 ac_status=$? 20652 grep -v '^ *+' conftest.er1 >conftest.err 20653 rm -f conftest.er1 20654 cat conftest.err >&5 20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20656 (exit $ac_status); } && 20657 { ac_try='test -z "$ac_c_werror_flag" 20658 || test ! -s conftest.err' 20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20660 (eval $ac_try) 2>&5 20661 ac_status=$? 20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20663 (exit $ac_status); }; } && 20664 { ac_try='test -s conftest$ac_exeext' 20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20666 (eval $ac_try) 2>&5 20667 ac_status=$? 20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20669 (exit $ac_status); }; }; then 20670 ac_cv_func_localeconv=yes 20671else 20672 echo "$as_me: failed program was:" >&5 20673sed 's/^/| /' conftest.$ac_ext >&5 20674 20675ac_cv_func_localeconv=no 20676fi 20677rm -f conftest.err conftest.$ac_objext \ 20678 conftest$ac_exeext conftest.$ac_ext 20679fi 20680echo "$as_me:$LINENO: result: $ac_cv_func_localeconv" >&5 20681echo "${ECHO_T}$ac_cv_func_localeconv" >&6 20682if test $ac_cv_func_localeconv = yes; then 20683 ODBC_FLAGS="$ODBC_FLAGS -DHAVE_LOCALECONV=1" 20684fi 20685 20686 20687########## 20688# Check for localtime_r() 20689# 20690echo "$as_me:$LINENO: checking for localtime_r" >&5 20691echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 20692if test "${ac_cv_func_localtime_r+set}" = set; then 20693 echo $ECHO_N "(cached) $ECHO_C" >&6 20694else 20695 cat >conftest.$ac_ext <<_ACEOF 20696/* confdefs.h. */ 20697_ACEOF 20698cat confdefs.h >>conftest.$ac_ext 20699cat >>conftest.$ac_ext <<_ACEOF 20700/* end confdefs.h. */ 20701/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. 20702 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20703#define localtime_r innocuous_localtime_r 20704 20705/* System header to define __stub macros and hopefully few prototypes, 20706 which can conflict with char localtime_r (); below. 20707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20708 <limits.h> exists even on freestanding compilers. */ 20709 20710#ifdef __STDC__ 20711# include <limits.h> 20712#else 20713# include <assert.h> 20714#endif 20715 20716#undef localtime_r 20717 20718/* Override any gcc2 internal prototype to avoid an error. */ 20719#ifdef __cplusplus 20720extern "C" 20721{ 20722#endif 20723/* We use char because int might match the return type of a gcc2 20724 builtin and then its argument prototype would still apply. */ 20725char localtime_r (); 20726/* The GNU C library defines this for functions which it implements 20727 to always fail with ENOSYS. Some functions are actually named 20728 something starting with __ and the normal name is an alias. */ 20729#if defined (__stub_localtime_r) || defined (__stub___localtime_r) 20730choke me 20731#else 20732char (*f) () = localtime_r; 20733#endif 20734#ifdef __cplusplus 20735} 20736#endif 20737 20738int 20739main () 20740{ 20741return f != localtime_r; 20742 ; 20743 return 0; 20744} 20745_ACEOF 20746rm -f conftest.$ac_objext conftest$ac_exeext 20747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20748 (eval $ac_link) 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_exeext' 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_cv_func_localtime_r=yes 20769else 20770 echo "$as_me: failed program was:" >&5 20771sed 's/^/| /' conftest.$ac_ext >&5 20772 20773ac_cv_func_localtime_r=no 20774fi 20775rm -f conftest.err conftest.$ac_objext \ 20776 conftest$ac_exeext conftest.$ac_ext 20777fi 20778echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 20779echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 20780if test $ac_cv_func_localtime_r = yes; then 20781 ODBC_FLAGS="$ODBC_FLAGS -DHAVE_LOCALTIME_R=1" 20782fi 20783 20784 20785########## 20786# Check for gmtime_r() 20787# 20788echo "$as_me:$LINENO: checking for gmtime_r" >&5 20789echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 20790if test "${ac_cv_func_gmtime_r+set}" = set; then 20791 echo $ECHO_N "(cached) $ECHO_C" >&6 20792else 20793 cat >conftest.$ac_ext <<_ACEOF 20794/* confdefs.h. */ 20795_ACEOF 20796cat confdefs.h >>conftest.$ac_ext 20797cat >>conftest.$ac_ext <<_ACEOF 20798/* end confdefs.h. */ 20799/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. 20800 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20801#define gmtime_r innocuous_gmtime_r 20802 20803/* System header to define __stub macros and hopefully few prototypes, 20804 which can conflict with char gmtime_r (); below. 20805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20806 <limits.h> exists even on freestanding compilers. */ 20807 20808#ifdef __STDC__ 20809# include <limits.h> 20810#else 20811# include <assert.h> 20812#endif 20813 20814#undef gmtime_r 20815 20816/* Override any gcc2 internal prototype to avoid an error. */ 20817#ifdef __cplusplus 20818extern "C" 20819{ 20820#endif 20821/* We use char because int might match the return type of a gcc2 20822 builtin and then its argument prototype would still apply. */ 20823char gmtime_r (); 20824/* The GNU C library defines this for functions which it implements 20825 to always fail with ENOSYS. Some functions are actually named 20826 something starting with __ and the normal name is an alias. */ 20827#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) 20828choke me 20829#else 20830char (*f) () = gmtime_r; 20831#endif 20832#ifdef __cplusplus 20833} 20834#endif 20835 20836int 20837main () 20838{ 20839return f != gmtime_r; 20840 ; 20841 return 0; 20842} 20843_ACEOF 20844rm -f conftest.$ac_objext conftest$ac_exeext 20845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20846 (eval $ac_link) 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_exeext' 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_cv_func_gmtime_r=yes 20867else 20868 echo "$as_me: failed program was:" >&5 20869sed 's/^/| /' conftest.$ac_ext >&5 20870 20871ac_cv_func_gmtime_r=no 20872fi 20873rm -f conftest.err conftest.$ac_objext \ 20874 conftest$ac_exeext conftest.$ac_ext 20875fi 20876echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 20877echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 20878if test $ac_cv_func_gmtime_r = yes; then 20879 ODBC_FLAGS="$ODBC_FLAGS -DHAVE_GMTIME_R=1" 20880fi 20881 20882 20883########## 20884# Allow omission of SQL*W() functions for SQLITE_UTF8 encoding 20885# 20886# Check whether --enable-winterface or --disable-winterface was given. 20887if test "${enable_winterface+set}" = set; then 20888 enableval="$enable_winterface" 20889 test $enable_winterface = "no" && 20890 ODBC_FLAGS="$ODBC_FLAGS -DWITHOUT_WINTERFACE=1" 20891else 20892 ODBC_FLAGS="$ODBC_FLAGS -DWITHOUT_WINTERFACE=1" 20893fi; 20894 20895######### 20896# Install directory (on Debian $libdir/odbc) 20897if test -r /etc/debian_version ; then 20898 DRVDIR="/odbc" 20899else 20900 DRVDIR="" 20901fi 20902 20903 20904########## 20905# Experimental: dlopen for resolving SQLite3 symbols 20906# 20907 20908# Check whether --with-dls or --without-dls was given. 20909if test "${with_dls+set}" = set; then 20910 withval="$with_dls" 20911 WITH_DLS=1 20912else 20913 WITH_DLS=0 20914fi; 20915if test "$DLOPENFORGPPS" = "1" ; then 20916 if test "$WITH_DLS" = "1" ; then 20917 DL_OPTS="-DSQLITE_DYNLOAD=1" 20918 SQLITE3_LIB="" 20919 DL_INITFINI="-Wl,-init,dls_init -Wl,-fini,dls_fini" 20920 fi 20921fi 20922 20923 20924 20925 20926######### 20927# Generate the output files. 20928# 20929SPEC_CHANGELOG_TS=`LANG=C date -u "+%a %b %d %Y"` 20930DEB_CHANGELOG_TS=`LANG=C date "+%a, %d %b %Y %X %z"` 20931 20932 20933 ac_config_files="$ac_config_files Makefile sqliteodbc.spec debian/changelog" 20934cat >confcache <<\_ACEOF 20935# This file is a shell script that caches the results of configure 20936# tests run on this system so they can be shared between configure 20937# scripts and configure runs, see configure's option --config-cache. 20938# It is not useful on other systems. If it contains results you don't 20939# want to keep, you may remove or edit it. 20940# 20941# config.status only pays attention to the cache file if you give it 20942# the --recheck option to rerun configure. 20943# 20944# `ac_cv_env_foo' variables (set or unset) will be overridden when 20945# loading this file, other *unset* `ac_cv_foo' will be assigned the 20946# following values. 20947 20948_ACEOF 20949 20950# The following way of writing the cache mishandles newlines in values, 20951# but we know of no workaround that is simple, portable, and efficient. 20952# So, don't put newlines in cache variables' values. 20953# Ultrix sh set writes to stderr and can't be redirected directly, 20954# and sets the high bit in the cache file unless we assign to the vars. 20955{ 20956 (set) 2>&1 | 20957 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20958 *ac_space=\ *) 20959 # `set' does not quote correctly, so add quotes (double-quote 20960 # substitution turns \\\\ into \\, and sed turns \\ into \). 20961 sed -n \ 20962 "s/'/'\\\\''/g; 20963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20964 ;; 20965 *) 20966 # `set' quotes correctly as required by POSIX, so do not add quotes. 20967 sed -n \ 20968 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20969 ;; 20970 esac; 20971} | 20972 sed ' 20973 t clear 20974 : clear 20975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20976 t end 20977 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20978 : end' >>confcache 20979if diff $cache_file confcache >/dev/null 2>&1; then :; else 20980 if test -w $cache_file; then 20981 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20982 cat confcache >$cache_file 20983 else 20984 echo "not updating unwritable cache $cache_file" 20985 fi 20986fi 20987rm -f confcache 20988 20989test "x$prefix" = xNONE && prefix=$ac_default_prefix 20990# Let make expand exec_prefix. 20991test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20992 20993# VPATH may cause trouble with some makes, so we remove $(srcdir), 20994# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20995# trailing colons and then remove the whole line if VPATH becomes empty 20996# (actually we leave an empty line to preserve line numbers). 20997if test "x$srcdir" = x.; then 20998 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20999s/:*\$(srcdir):*/:/; 21000s/:*\${srcdir}:*/:/; 21001s/:*@srcdir@:*/:/; 21002s/^\([^=]*=[ ]*\):*/\1/; 21003s/:*$//; 21004s/^[^=]*=[ ]*$//; 21005}' 21006fi 21007 21008# Transform confdefs.h into DEFS. 21009# Protect against shell expansion while executing Makefile rules. 21010# Protect against Makefile macro expansion. 21011# 21012# If the first sed substitution is executed (which looks for macros that 21013# take arguments), then we branch to the quote section. Otherwise, 21014# look for a macro that doesn't take arguments. 21015cat >confdef2opt.sed <<\_ACEOF 21016t clear 21017: clear 21018s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 21019t quote 21020s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 21021t quote 21022d 21023: quote 21024s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 21025s,\[,\\&,g 21026s,\],\\&,g 21027s,\$,$$,g 21028p 21029_ACEOF 21030# We use echo to avoid assuming a particular line-breaking character. 21031# The extra dot is to prevent the shell from consuming trailing 21032# line-breaks from the sub-command output. A line-break within 21033# single-quotes doesn't work because, if this script is created in a 21034# platform that uses two characters for line-breaks (e.g., DOS), tr 21035# would break. 21036ac_LF_and_DOT=`echo; echo .` 21037DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 21038rm -f confdef2opt.sed 21039 21040 21041ac_libobjs= 21042ac_ltlibobjs= 21043for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21044 # 1. Remove the extension, and $U if already installed. 21045 ac_i=`echo "$ac_i" | 21046 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 21047 # 2. Add them. 21048 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 21049 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 21050done 21051LIBOBJS=$ac_libobjs 21052 21053LTLIBOBJS=$ac_ltlibobjs 21054 21055 21056 21057: ${CONFIG_STATUS=./config.status} 21058ac_clean_files_save=$ac_clean_files 21059ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21060{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21061echo "$as_me: creating $CONFIG_STATUS" >&6;} 21062cat >$CONFIG_STATUS <<_ACEOF 21063#! $SHELL 21064# Generated by $as_me. 21065# Run this file to recreate the current configuration. 21066# Compiler output produced by configure, useful for debugging 21067# configure, is in config.log if it exists. 21068 21069debug=false 21070ac_cs_recheck=false 21071ac_cs_silent=false 21072SHELL=\${CONFIG_SHELL-$SHELL} 21073_ACEOF 21074 21075cat >>$CONFIG_STATUS <<\_ACEOF 21076## --------------------- ## 21077## M4sh Initialization. ## 21078## --------------------- ## 21079 21080# Be Bourne compatible 21081if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21082 emulate sh 21083 NULLCMD=: 21084 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21085 # is contrary to our usage. Disable this feature. 21086 alias -g '${1+"$@"}'='"$@"' 21087elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21088 set -o posix 21089fi 21090DUALCASE=1; export DUALCASE # for MKS sh 21091 21092# Support unset when possible. 21093if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21094 as_unset=unset 21095else 21096 as_unset=false 21097fi 21098 21099 21100# Work around bugs in pre-3.0 UWIN ksh. 21101$as_unset ENV MAIL MAILPATH 21102PS1='$ ' 21103PS2='> ' 21104PS4='+ ' 21105 21106# NLS nuisances. 21107for as_var in \ 21108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21110 LC_TELEPHONE LC_TIME 21111do 21112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21113 eval $as_var=C; export $as_var 21114 else 21115 $as_unset $as_var 21116 fi 21117done 21118 21119# Required to use basename. 21120if expr a : '\(a\)' >/dev/null 2>&1; then 21121 as_expr=expr 21122else 21123 as_expr=false 21124fi 21125 21126if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 21127 as_basename=basename 21128else 21129 as_basename=false 21130fi 21131 21132 21133# Name of the executable. 21134as_me=`$as_basename "$0" || 21135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21136 X"$0" : 'X\(//\)$' \| \ 21137 X"$0" : 'X\(/\)$' \| \ 21138 . : '\(.\)' 2>/dev/null || 21139echo X/"$0" | 21140 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 21141 /^X\/\(\/\/\)$/{ s//\1/; q; } 21142 /^X\/\(\/\).*/{ s//\1/; q; } 21143 s/.*/./; q'` 21144 21145 21146# PATH needs CR, and LINENO needs CR and PATH. 21147# Avoid depending upon Character Ranges. 21148as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21149as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21150as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21151as_cr_digits='0123456789' 21152as_cr_alnum=$as_cr_Letters$as_cr_digits 21153 21154# The user is always right. 21155if test "${PATH_SEPARATOR+set}" != set; then 21156 echo "#! /bin/sh" >conf$$.sh 21157 echo "exit 0" >>conf$$.sh 21158 chmod +x conf$$.sh 21159 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21160 PATH_SEPARATOR=';' 21161 else 21162 PATH_SEPARATOR=: 21163 fi 21164 rm -f conf$$.sh 21165fi 21166 21167 21168 as_lineno_1=$LINENO 21169 as_lineno_2=$LINENO 21170 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21171 test "x$as_lineno_1" != "x$as_lineno_2" && 21172 test "x$as_lineno_3" = "x$as_lineno_2" || { 21173 # Find who we are. Look in the path if we contain no path at all 21174 # relative or not. 21175 case $0 in 21176 *[\\/]* ) as_myself=$0 ;; 21177 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21178for as_dir in $PATH 21179do 21180 IFS=$as_save_IFS 21181 test -z "$as_dir" && as_dir=. 21182 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21183done 21184 21185 ;; 21186 esac 21187 # We did not find ourselves, most probably we were run as `sh COMMAND' 21188 # in which case we are not to be found in the path. 21189 if test "x$as_myself" = x; then 21190 as_myself=$0 21191 fi 21192 if test ! -f "$as_myself"; then 21193 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 21194echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 21195 { (exit 1); exit 1; }; } 21196 fi 21197 case $CONFIG_SHELL in 21198 '') 21199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21200for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 21201do 21202 IFS=$as_save_IFS 21203 test -z "$as_dir" && as_dir=. 21204 for as_base in sh bash ksh sh5; do 21205 case $as_dir in 21206 /*) 21207 if ("$as_dir/$as_base" -c ' 21208 as_lineno_1=$LINENO 21209 as_lineno_2=$LINENO 21210 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 21211 test "x$as_lineno_1" != "x$as_lineno_2" && 21212 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 21213 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 21214 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 21215 CONFIG_SHELL=$as_dir/$as_base 21216 export CONFIG_SHELL 21217 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 21218 fi;; 21219 esac 21220 done 21221done 21222;; 21223 esac 21224 21225 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21226 # uniformly replaced by the line number. The first 'sed' inserts a 21227 # line-number line before each line; the second 'sed' does the real 21228 # work. The second script uses 'N' to pair each line-number line 21229 # with the numbered line, and appends trailing '-' during 21230 # substitution so that $LINENO is not a special case at line end. 21231 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21232 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 21233 sed '=' <$as_myself | 21234 sed ' 21235 N 21236 s,$,-, 21237 : loop 21238 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 21239 t loop 21240 s,-$,, 21241 s,^['$as_cr_digits']*\n,, 21242 ' >$as_me.lineno && 21243 chmod +x $as_me.lineno || 21244 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 21245echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 21246 { (exit 1); exit 1; }; } 21247 21248 # Don't try to exec as it changes $[0], causing all sort of problems 21249 # (the dirname of $[0] is not the place where we might find the 21250 # original and so on. Autoconf is especially sensible to this). 21251 . ./$as_me.lineno 21252 # Exit status is that of the last command. 21253 exit 21254} 21255 21256 21257case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 21258 *c*,-n*) ECHO_N= ECHO_C=' 21259' ECHO_T=' ' ;; 21260 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 21261 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 21262esac 21263 21264if expr a : '\(a\)' >/dev/null 2>&1; then 21265 as_expr=expr 21266else 21267 as_expr=false 21268fi 21269 21270rm -f conf$$ conf$$.exe conf$$.file 21271echo >conf$$.file 21272if ln -s conf$$.file conf$$ 2>/dev/null; then 21273 # We could just check for DJGPP; but this test a) works b) is more generic 21274 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21275 if test -f conf$$.exe; then 21276 # Don't use ln at all; we don't have any links 21277 as_ln_s='cp -p' 21278 else 21279 as_ln_s='ln -s' 21280 fi 21281elif ln conf$$.file conf$$ 2>/dev/null; then 21282 as_ln_s=ln 21283else 21284 as_ln_s='cp -p' 21285fi 21286rm -f conf$$ conf$$.exe conf$$.file 21287 21288if mkdir -p . 2>/dev/null; then 21289 as_mkdir_p=: 21290else 21291 test -d ./-p && rmdir ./-p 21292 as_mkdir_p=false 21293fi 21294 21295as_executable_p="test -f" 21296 21297# Sed expression to map a string onto a valid CPP name. 21298as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21299 21300# Sed expression to map a string onto a valid variable name. 21301as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21302 21303 21304# IFS 21305# We need space, tab and new line, in precisely that order. 21306as_nl=' 21307' 21308IFS=" $as_nl" 21309 21310# CDPATH. 21311$as_unset CDPATH 21312 21313exec 6>&1 21314 21315# Open the log real soon, to keep \$[0] and so on meaningful, and to 21316# report actual input values of CONFIG_FILES etc. instead of their 21317# values after options handling. Logging --version etc. is OK. 21318exec 5>>config.log 21319{ 21320 echo 21321 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21322## Running $as_me. ## 21323_ASBOX 21324} >&5 21325cat >&5 <<_CSEOF 21326 21327This file was extended by $as_me, which was 21328generated by GNU Autoconf 2.59. Invocation command line was 21329 21330 CONFIG_FILES = $CONFIG_FILES 21331 CONFIG_HEADERS = $CONFIG_HEADERS 21332 CONFIG_LINKS = $CONFIG_LINKS 21333 CONFIG_COMMANDS = $CONFIG_COMMANDS 21334 $ $0 $@ 21335 21336_CSEOF 21337echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 21338echo >&5 21339_ACEOF 21340 21341# Files that config.status was made for. 21342if test -n "$ac_config_files"; then 21343 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 21344fi 21345 21346if test -n "$ac_config_headers"; then 21347 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 21348fi 21349 21350if test -n "$ac_config_links"; then 21351 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 21352fi 21353 21354if test -n "$ac_config_commands"; then 21355 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 21356fi 21357 21358cat >>$CONFIG_STATUS <<\_ACEOF 21359 21360ac_cs_usage="\ 21361\`$as_me' instantiates files from templates according to the 21362current configuration. 21363 21364Usage: $0 [OPTIONS] [FILE]... 21365 21366 -h, --help print this help, then exit 21367 -V, --version print version number, then exit 21368 -q, --quiet do not print progress messages 21369 -d, --debug don't remove temporary files 21370 --recheck update $as_me by reconfiguring in the same conditions 21371 --file=FILE[:TEMPLATE] 21372 instantiate the configuration file FILE 21373 21374Configuration files: 21375$config_files 21376 21377Report bugs to <bug-autoconf@gnu.org>." 21378_ACEOF 21379 21380cat >>$CONFIG_STATUS <<_ACEOF 21381ac_cs_version="\\ 21382config.status 21383configured by $0, generated by GNU Autoconf 2.59, 21384 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 21385 21386Copyright (C) 2003 Free Software Foundation, Inc. 21387This config.status script is free software; the Free Software Foundation 21388gives unlimited permission to copy, distribute and modify it." 21389srcdir=$srcdir 21390INSTALL="$INSTALL" 21391_ACEOF 21392 21393cat >>$CONFIG_STATUS <<\_ACEOF 21394# If no file are specified by the user, then we need to provide default 21395# value. By we need to know if files were specified by the user. 21396ac_need_defaults=: 21397while test $# != 0 21398do 21399 case $1 in 21400 --*=*) 21401 ac_option=`expr "x$1" : 'x\([^=]*\)='` 21402 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 21403 ac_shift=: 21404 ;; 21405 -*) 21406 ac_option=$1 21407 ac_optarg=$2 21408 ac_shift=shift 21409 ;; 21410 *) # This is not an option, so the user has probably given explicit 21411 # arguments. 21412 ac_option=$1 21413 ac_need_defaults=false;; 21414 esac 21415 21416 case $ac_option in 21417 # Handling of the options. 21418_ACEOF 21419cat >>$CONFIG_STATUS <<\_ACEOF 21420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21421 ac_cs_recheck=: ;; 21422 --version | --vers* | -V ) 21423 echo "$ac_cs_version"; exit 0 ;; 21424 --he | --h) 21425 # Conflict between --help and --header 21426 { { echo "$as_me:$LINENO: error: ambiguous option: $1 21427Try \`$0 --help' for more information." >&5 21428echo "$as_me: error: ambiguous option: $1 21429Try \`$0 --help' for more information." >&2;} 21430 { (exit 1); exit 1; }; };; 21431 --help | --hel | -h ) 21432 echo "$ac_cs_usage"; exit 0 ;; 21433 --debug | --d* | -d ) 21434 debug=: ;; 21435 --file | --fil | --fi | --f ) 21436 $ac_shift 21437 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21438 ac_need_defaults=false;; 21439 --header | --heade | --head | --hea ) 21440 $ac_shift 21441 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21442 ac_need_defaults=false;; 21443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21444 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21445 ac_cs_silent=: ;; 21446 21447 # This is an error. 21448 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 21449Try \`$0 --help' for more information." >&5 21450echo "$as_me: error: unrecognized option: $1 21451Try \`$0 --help' for more information." >&2;} 21452 { (exit 1); exit 1; }; } ;; 21453 21454 *) ac_config_targets="$ac_config_targets $1" ;; 21455 21456 esac 21457 shift 21458done 21459 21460ac_configure_extra_args= 21461 21462if $ac_cs_silent; then 21463 exec 6>/dev/null 21464 ac_configure_extra_args="$ac_configure_extra_args --silent" 21465fi 21466 21467_ACEOF 21468cat >>$CONFIG_STATUS <<_ACEOF 21469if \$ac_cs_recheck; then 21470 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21471 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21472fi 21473 21474_ACEOF 21475 21476 21477 21478 21479 21480cat >>$CONFIG_STATUS <<\_ACEOF 21481for ac_config_target in $ac_config_targets 21482do 21483 case "$ac_config_target" in 21484 # Handling of arguments. 21485 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21486 "sqliteodbc.spec" ) CONFIG_FILES="$CONFIG_FILES sqliteodbc.spec" ;; 21487 "debian/changelog" ) CONFIG_FILES="$CONFIG_FILES debian/changelog" ;; 21488 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21489echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21490 { (exit 1); exit 1; }; };; 21491 esac 21492done 21493 21494# If the user did not use the arguments to specify the items to instantiate, 21495# then the envvar interface is used. Set only those that are not. 21496# We use the long form for the default assignment because of an extremely 21497# bizarre bug on SunOS 4.1.3. 21498if $ac_need_defaults; then 21499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21500fi 21501 21502# Have a temporary directory for convenience. Make it in the build tree 21503# simply because there is no reason to put it here, and in addition, 21504# creating and moving files from /tmp can sometimes cause problems. 21505# Create a temporary directory, and hook for its removal unless debugging. 21506$debug || 21507{ 21508 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 21509 trap '{ (exit 1); exit 1; }' 1 2 13 15 21510} 21511 21512# Create a (secure) tmp directory for tmp files. 21513 21514{ 21515 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 21516 test -n "$tmp" && test -d "$tmp" 21517} || 21518{ 21519 tmp=./confstat$$-$RANDOM 21520 (umask 077 && mkdir $tmp) 21521} || 21522{ 21523 echo "$me: cannot create a temporary directory in ." >&2 21524 { (exit 1); exit 1; } 21525} 21526 21527_ACEOF 21528 21529cat >>$CONFIG_STATUS <<_ACEOF 21530 21531# 21532# CONFIG_FILES section. 21533# 21534 21535# No need to generate the scripts if there are no CONFIG_FILES. 21536# This happens for instance when ./config.status config.h 21537if test -n "\$CONFIG_FILES"; then 21538 # Protect against being on the right side of a sed subst in config.status. 21539 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 21540 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 21541s,@SHELL@,$SHELL,;t t 21542s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 21543s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 21544s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 21545s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 21546s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 21547s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 21548s,@exec_prefix@,$exec_prefix,;t t 21549s,@prefix@,$prefix,;t t 21550s,@program_transform_name@,$program_transform_name,;t t 21551s,@bindir@,$bindir,;t t 21552s,@sbindir@,$sbindir,;t t 21553s,@libexecdir@,$libexecdir,;t t 21554s,@datadir@,$datadir,;t t 21555s,@sysconfdir@,$sysconfdir,;t t 21556s,@sharedstatedir@,$sharedstatedir,;t t 21557s,@localstatedir@,$localstatedir,;t t 21558s,@libdir@,$libdir,;t t 21559s,@includedir@,$includedir,;t t 21560s,@oldincludedir@,$oldincludedir,;t t 21561s,@infodir@,$infodir,;t t 21562s,@mandir@,$mandir,;t t 21563s,@build_alias@,$build_alias,;t t 21564s,@host_alias@,$host_alias,;t t 21565s,@target_alias@,$target_alias,;t t 21566s,@DEFS@,$DEFS,;t t 21567s,@ECHO_C@,$ECHO_C,;t t 21568s,@ECHO_N@,$ECHO_N,;t t 21569s,@ECHO_T@,$ECHO_T,;t t 21570s,@LIBS@,$LIBS,;t t 21571s,@build@,$build,;t t 21572s,@build_cpu@,$build_cpu,;t t 21573s,@build_vendor@,$build_vendor,;t t 21574s,@build_os@,$build_os,;t t 21575s,@host@,$host,;t t 21576s,@host_cpu@,$host_cpu,;t t 21577s,@host_vendor@,$host_vendor,;t t 21578s,@host_os@,$host_os,;t t 21579s,@CC@,$CC,;t t 21580s,@CFLAGS@,$CFLAGS,;t t 21581s,@LDFLAGS@,$LDFLAGS,;t t 21582s,@CPPFLAGS@,$CPPFLAGS,;t t 21583s,@ac_ct_CC@,$ac_ct_CC,;t t 21584s,@EXEEXT@,$EXEEXT,;t t 21585s,@OBJEXT@,$OBJEXT,;t t 21586s,@SED@,$SED,;t t 21587s,@EGREP@,$EGREP,;t t 21588s,@LN_S@,$LN_S,;t t 21589s,@ECHO@,$ECHO,;t t 21590s,@AR@,$AR,;t t 21591s,@ac_ct_AR@,$ac_ct_AR,;t t 21592s,@RANLIB@,$RANLIB,;t t 21593s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 21594s,@STRIP@,$STRIP,;t t 21595s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 21596s,@CPP@,$CPP,;t t 21597s,@CXX@,$CXX,;t t 21598s,@CXXFLAGS@,$CXXFLAGS,;t t 21599s,@ac_ct_CXX@,$ac_ct_CXX,;t t 21600s,@CXXCPP@,$CXXCPP,;t t 21601s,@F77@,$F77,;t t 21602s,@FFLAGS@,$FFLAGS,;t t 21603s,@ac_ct_F77@,$ac_ct_F77,;t t 21604s,@LIBTOOL@,$LIBTOOL,;t t 21605s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 21606s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 21607s,@INSTALL_DATA@,$INSTALL_DATA,;t t 21608s,@SQLITE_INC@,$SQLITE_INC,;t t 21609s,@SQLITE_LIB@,$SQLITE_LIB,;t t 21610s,@SQLITE_LIBVERSION@,$SQLITE_LIBVERSION,;t t 21611s,@SQLITE_ENCDEC@,$SQLITE_ENCDEC,;t t 21612s,@SQLITE_ATOF@,$SQLITE_ATOF,;t t 21613s,@SQLITE_MPRINTF@,$SQLITE_MPRINTF,;t t 21614s,@SQLITE_TRACE@,$SQLITE_TRACE,;t t 21615s,@SQLITE3_INC@,$SQLITE3_INC,;t t 21616s,@SQLITE3_A10N_C@,$SQLITE3_A10N_C,;t t 21617s,@SQLITE3_A10N_O@,$SQLITE3_A10N_O,;t t 21618s,@SQLITE3_A10N_FLAGS@,$SQLITE3_A10N_FLAGS,;t t 21619s,@SQLITE3_COLUMNTABLENAME@,$SQLITE3_COLUMNTABLENAME,;t t 21620s,@SQLITE3_OVERLOADFUNCTION@,$SQLITE3_OVERLOADFUNCTION,;t t 21621s,@SQLITE3_PREPARE_V2@,$SQLITE3_PREPARE_V2,;t t 21622s,@SQLITE3_CLEARBINDINGS@,$SQLITE3_CLEARBINDINGS,;t t 21623s,@SQLITE3_CREATEMODULE_V2@,$SQLITE3_CREATEMODULE_V2,;t t 21624s,@SQLITE3_LOADEXTENSION@,$SQLITE3_LOADEXTENSION,;t t 21625s,@SQLITE3_TABLECOLUMNMETADATA@,$SQLITE3_TABLECOLUMNMETADATA,;t t 21626s,@SQLITE3_VFS@,$SQLITE3_VFS,;t t 21627s,@SQLITE3_PROFILE@,$SQLITE3_PROFILE,;t t 21628s,@SQLITE3_STRNICMP@,$SQLITE3_STRNICMP,;t t 21629s,@EXT_BLOBTOXY@,$EXT_BLOBTOXY,;t t 21630s,@EXT_IMPEXP@,$EXT_IMPEXP,;t t 21631s,@LIB_TARGETS@,$LIB_TARGETS,;t t 21632s,@INST_TARGETS@,$INST_TARGETS,;t t 21633s,@UNINST_TARGETS@,$UNINST_TARGETS,;t t 21634s,@DRVINST_TARGETS@,$DRVINST_TARGETS,;t t 21635s,@DRVUNINST_TARGETS@,$DRVUNINST_TARGETS,;t t 21636s,@ODBC_FLAGS@,$ODBC_FLAGS,;t t 21637s,@ODBC_LIB@,$ODBC_LIB,;t t 21638s,@VER_INFO@,$VER_INFO,;t t 21639s,@DRVDIR@,$DRVDIR,;t t 21640s,@DL_OPTS@,$DL_OPTS,;t t 21641s,@DL_INITFINI@,$DL_INITFINI,;t t 21642s,@SQLITE3_LIB@,$SQLITE3_LIB,;t t 21643s,@SPEC_CHANGELOG_TS@,$SPEC_CHANGELOG_TS,;t t 21644s,@DEB_CHANGELOG_TS@,$DEB_CHANGELOG_TS,;t t 21645s,@LIBOBJS@,$LIBOBJS,;t t 21646s,@LTLIBOBJS@,$LTLIBOBJS,;t t 21647CEOF 21648 21649_ACEOF 21650 21651 cat >>$CONFIG_STATUS <<\_ACEOF 21652 # Split the substitutions into bite-sized pieces for seds with 21653 # small command number limits, like on Digital OSF/1 and HP-UX. 21654 ac_max_sed_lines=48 21655 ac_sed_frag=1 # Number of current file. 21656 ac_beg=1 # First line for current file. 21657 ac_end=$ac_max_sed_lines # Line after last line for current file. 21658 ac_more_lines=: 21659 ac_sed_cmds= 21660 while $ac_more_lines; do 21661 if test $ac_beg -gt 1; then 21662 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21663 else 21664 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 21665 fi 21666 if test ! -s $tmp/subs.frag; then 21667 ac_more_lines=false 21668 else 21669 # The purpose of the label and of the branching condition is to 21670 # speed up the sed processing (if there are no `@' at all, there 21671 # is no need to browse any of the substitutions). 21672 # These are the two extra sed commands mentioned above. 21673 (echo ':t 21674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 21675 if test -z "$ac_sed_cmds"; then 21676 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 21677 else 21678 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 21679 fi 21680 ac_sed_frag=`expr $ac_sed_frag + 1` 21681 ac_beg=$ac_end 21682 ac_end=`expr $ac_end + $ac_max_sed_lines` 21683 fi 21684 done 21685 if test -z "$ac_sed_cmds"; then 21686 ac_sed_cmds=cat 21687 fi 21688fi # test -n "$CONFIG_FILES" 21689 21690_ACEOF 21691cat >>$CONFIG_STATUS <<\_ACEOF 21692for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 21693 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21694 case $ac_file in 21695 - | *:- | *:-:* ) # input from stdin 21696 cat >$tmp/stdin 21697 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21698 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21699 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21700 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21701 * ) ac_file_in=$ac_file.in ;; 21702 esac 21703 21704 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21705 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21706$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21707 X"$ac_file" : 'X\(//\)[^/]' \| \ 21708 X"$ac_file" : 'X\(//\)$' \| \ 21709 X"$ac_file" : 'X\(/\)' \| \ 21710 . : '\(.\)' 2>/dev/null || 21711echo X"$ac_file" | 21712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21713 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21714 /^X\(\/\/\)$/{ s//\1/; q; } 21715 /^X\(\/\).*/{ s//\1/; q; } 21716 s/.*/./; q'` 21717 { if $as_mkdir_p; then 21718 mkdir -p "$ac_dir" 21719 else 21720 as_dir="$ac_dir" 21721 as_dirs= 21722 while test ! -d "$as_dir"; do 21723 as_dirs="$as_dir $as_dirs" 21724 as_dir=`(dirname "$as_dir") 2>/dev/null || 21725$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21726 X"$as_dir" : 'X\(//\)[^/]' \| \ 21727 X"$as_dir" : 'X\(//\)$' \| \ 21728 X"$as_dir" : 'X\(/\)' \| \ 21729 . : '\(.\)' 2>/dev/null || 21730echo X"$as_dir" | 21731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21732 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21733 /^X\(\/\/\)$/{ s//\1/; q; } 21734 /^X\(\/\).*/{ s//\1/; q; } 21735 s/.*/./; q'` 21736 done 21737 test ! -n "$as_dirs" || mkdir $as_dirs 21738 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21739echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21740 { (exit 1); exit 1; }; }; } 21741 21742 ac_builddir=. 21743 21744if test "$ac_dir" != .; then 21745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21746 # A "../" for each directory in $ac_dir_suffix. 21747 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21748else 21749 ac_dir_suffix= ac_top_builddir= 21750fi 21751 21752case $srcdir in 21753 .) # No --srcdir option. We are building in place. 21754 ac_srcdir=. 21755 if test -z "$ac_top_builddir"; then 21756 ac_top_srcdir=. 21757 else 21758 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21759 fi ;; 21760 [\\/]* | ?:[\\/]* ) # Absolute path. 21761 ac_srcdir=$srcdir$ac_dir_suffix; 21762 ac_top_srcdir=$srcdir ;; 21763 *) # Relative path. 21764 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21765 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21766esac 21767 21768# Do not use `cd foo && pwd` to compute absolute paths, because 21769# the directories may not exist. 21770case `pwd` in 21771.) ac_abs_builddir="$ac_dir";; 21772*) 21773 case "$ac_dir" in 21774 .) ac_abs_builddir=`pwd`;; 21775 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21776 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21777 esac;; 21778esac 21779case $ac_abs_builddir in 21780.) ac_abs_top_builddir=${ac_top_builddir}.;; 21781*) 21782 case ${ac_top_builddir}. in 21783 .) ac_abs_top_builddir=$ac_abs_builddir;; 21784 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21785 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21786 esac;; 21787esac 21788case $ac_abs_builddir in 21789.) ac_abs_srcdir=$ac_srcdir;; 21790*) 21791 case $ac_srcdir in 21792 .) ac_abs_srcdir=$ac_abs_builddir;; 21793 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21794 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21795 esac;; 21796esac 21797case $ac_abs_builddir in 21798.) ac_abs_top_srcdir=$ac_top_srcdir;; 21799*) 21800 case $ac_top_srcdir in 21801 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21802 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21803 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21804 esac;; 21805esac 21806 21807 21808 case $INSTALL in 21809 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21810 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21811 esac 21812 21813 if test x"$ac_file" != x-; then 21814 { echo "$as_me:$LINENO: creating $ac_file" >&5 21815echo "$as_me: creating $ac_file" >&6;} 21816 rm -f "$ac_file" 21817 fi 21818 # Let's still pretend it is `configure' which instantiates (i.e., don't 21819 # use $as_me), people would be surprised to read: 21820 # /* config.h. Generated by config.status. */ 21821 if test x"$ac_file" = x-; then 21822 configure_input= 21823 else 21824 configure_input="$ac_file. " 21825 fi 21826 configure_input=$configure_input"Generated from `echo $ac_file_in | 21827 sed 's,.*/,,'` by configure." 21828 21829 # First look for the input files in the build tree, otherwise in the 21830 # src tree. 21831 ac_file_inputs=`IFS=: 21832 for f in $ac_file_in; do 21833 case $f in 21834 -) echo $tmp/stdin ;; 21835 [\\/$]*) 21836 # Absolute (can't be DOS-style, as IFS=:) 21837 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21838echo "$as_me: error: cannot find input file: $f" >&2;} 21839 { (exit 1); exit 1; }; } 21840 echo "$f";; 21841 *) # Relative 21842 if test -f "$f"; then 21843 # Build tree 21844 echo "$f" 21845 elif test -f "$srcdir/$f"; then 21846 # Source tree 21847 echo "$srcdir/$f" 21848 else 21849 # /dev/null tree 21850 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21851echo "$as_me: error: cannot find input file: $f" >&2;} 21852 { (exit 1); exit 1; }; } 21853 fi;; 21854 esac 21855 done` || { (exit 1); exit 1; } 21856_ACEOF 21857cat >>$CONFIG_STATUS <<_ACEOF 21858 sed "$ac_vpsub 21859$extrasub 21860_ACEOF 21861cat >>$CONFIG_STATUS <<\_ACEOF 21862:t 21863/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21864s,@configure_input@,$configure_input,;t t 21865s,@srcdir@,$ac_srcdir,;t t 21866s,@abs_srcdir@,$ac_abs_srcdir,;t t 21867s,@top_srcdir@,$ac_top_srcdir,;t t 21868s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21869s,@builddir@,$ac_builddir,;t t 21870s,@abs_builddir@,$ac_abs_builddir,;t t 21871s,@top_builddir@,$ac_top_builddir,;t t 21872s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21873s,@INSTALL@,$ac_INSTALL,;t t 21874" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21875 rm -f $tmp/stdin 21876 if test x"$ac_file" != x-; then 21877 mv $tmp/out $ac_file 21878 else 21879 cat $tmp/out 21880 rm -f $tmp/out 21881 fi 21882 21883done 21884_ACEOF 21885 21886cat >>$CONFIG_STATUS <<\_ACEOF 21887 21888{ (exit 0); exit 0; } 21889_ACEOF 21890chmod +x $CONFIG_STATUS 21891ac_clean_files=$ac_clean_files_save 21892 21893 21894# configure is writing to config.log, and then calls config.status. 21895# config.status does its own redirection, appending to config.log. 21896# Unfortunately, on DOS this fails, as config.log is still kept open 21897# by configure, so config.status won't be able to write to it; its 21898# output is simply discarded. So we exec the FD to /dev/null, 21899# effectively closing config.log, so it can be properly (re)opened and 21900# appended to by config.status. When coming back to configure, we 21901# need to make the FD available again. 21902if test "$no_create" != yes; then 21903 ac_cs_success=: 21904 ac_config_status_args= 21905 test "$silent" = yes && 21906 ac_config_status_args="$ac_config_status_args --quiet" 21907 exec 5>/dev/null 21908 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21909 exec 5>>config.log 21910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21911 # would make configure fail if this is the last instruction. 21912 $ac_cs_success || { (exit 1); exit 1; } 21913fi 21914 21915