1#! /bin/sh 2# From configure.in Id: configure.in. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.59 for iODBC Driver Manager 3.52.6. 5# 6# Report bugs to <iodbc@openlinksw.com>. 7# 8# Copyright (C) 2003 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 set -o posix 24fi 25DUALCASE=1; export DUALCASE # for MKS sh 26 27# Support unset when possible. 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 29 as_unset=unset 30else 31 as_unset=false 32fi 33 34 35# Work around bugs in pre-3.0 UWIN ksh. 36$as_unset ENV MAIL MAILPATH 37PS1='$ ' 38PS2='> ' 39PS4='+ ' 40 41# NLS nuisances. 42for as_var in \ 43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 45 LC_TELEPHONE LC_TIME 46do 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 48 eval $as_var=C; export $as_var 49 else 50 $as_unset $as_var 51 fi 52done 53 54# Required to use basename. 55if expr a : '\(a\)' >/dev/null 2>&1; then 56 as_expr=expr 57else 58 as_expr=false 59fi 60 61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 62 as_basename=basename 63else 64 as_basename=false 65fi 66 67 68# Name of the executable. 69as_me=`$as_basename "$0" || 70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 71 X"$0" : 'X\(//\)$' \| \ 72 X"$0" : 'X\(/\)$' \| \ 73 . : '\(.\)' 2>/dev/null || 74echo X/"$0" | 75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 76 /^X\/\(\/\/\)$/{ s//\1/; q; } 77 /^X\/\(\/\).*/{ s//\1/; q; } 78 s/.*/./; q'` 79 80 81# PATH needs CR, and LINENO needs CR and PATH. 82# Avoid depending upon Character Ranges. 83as_cr_letters='abcdefghijklmnopqrstuvwxyz' 84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 85as_cr_Letters=$as_cr_letters$as_cr_LETTERS 86as_cr_digits='0123456789' 87as_cr_alnum=$as_cr_Letters$as_cr_digits 88 89# The user is always right. 90if test "${PATH_SEPARATOR+set}" != set; then 91 echo "#! /bin/sh" >conf$$.sh 92 echo "exit 0" >>conf$$.sh 93 chmod +x conf$$.sh 94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 95 PATH_SEPARATOR=';' 96 else 97 PATH_SEPARATOR=: 98 fi 99 rm -f conf$$.sh 100fi 101 102 103 as_lineno_1=$LINENO 104 as_lineno_2=$LINENO 105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 106 test "x$as_lineno_1" != "x$as_lineno_2" && 107 test "x$as_lineno_3" = "x$as_lineno_2" || { 108 # Find who we are. Look in the path if we contain no path at all 109 # relative or not. 110 case $0 in 111 *[\\/]* ) as_myself=$0 ;; 112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 113for as_dir in $PATH 114do 115 IFS=$as_save_IFS 116 test -z "$as_dir" && as_dir=. 117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 118done 119 120 ;; 121 esac 122 # We did not find ourselves, most probably we were run as `sh COMMAND' 123 # in which case we are not to be found in the path. 124 if test "x$as_myself" = x; then 125 as_myself=$0 126 fi 127 if test ! -f "$as_myself"; then 128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 129 { (exit 1); exit 1; }; } 130 fi 131 case $CONFIG_SHELL in 132 '') 133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 135do 136 IFS=$as_save_IFS 137 test -z "$as_dir" && as_dir=. 138 for as_base in sh bash ksh sh5; do 139 case $as_dir in 140 /*) 141 if ("$as_dir/$as_base" -c ' 142 as_lineno_1=$LINENO 143 as_lineno_2=$LINENO 144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 145 test "x$as_lineno_1" != "x$as_lineno_2" && 146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 149 CONFIG_SHELL=$as_dir/$as_base 150 export CONFIG_SHELL 151 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 152 fi;; 153 esac 154 done 155done 156;; 157 esac 158 159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 160 # uniformly replaced by the line number. The first 'sed' inserts a 161 # line-number line before each line; the second 'sed' does the real 162 # work. The second script uses 'N' to pair each line-number line 163 # with the numbered line, and appends trailing '-' during 164 # substitution so that $LINENO is not a special case at line end. 165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 167 sed '=' <$as_myself | 168 sed ' 169 N 170 s,$,-, 171 : loop 172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 173 t loop 174 s,-$,, 175 s,^['$as_cr_digits']*\n,, 176 ' >$as_me.lineno && 177 chmod +x $as_me.lineno || 178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 179 { (exit 1); exit 1; }; } 180 181 # Don't try to exec as it changes $[0], causing all sort of problems 182 # (the dirname of $[0] is not the place where we might find the 183 # original and so on. Autoconf is especially sensible to this). 184 . ./$as_me.lineno 185 # Exit status is that of the last command. 186 exit 187} 188 189 190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 191 *c*,-n*) ECHO_N= ECHO_C=' 192' ECHO_T=' ' ;; 193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 195esac 196 197if expr a : '\(a\)' >/dev/null 2>&1; then 198 as_expr=expr 199else 200 as_expr=false 201fi 202 203rm -f conf$$ conf$$.exe conf$$.file 204echo >conf$$.file 205if ln -s conf$$.file conf$$ 2>/dev/null; then 206 # We could just check for DJGPP; but this test a) works b) is more generic 207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 208 if test -f conf$$.exe; then 209 # Don't use ln at all; we don't have any links 210 as_ln_s='cp -p' 211 else 212 as_ln_s='ln -s' 213 fi 214elif ln conf$$.file conf$$ 2>/dev/null; then 215 as_ln_s=ln 216else 217 as_ln_s='cp -p' 218fi 219rm -f conf$$ conf$$.exe conf$$.file 220 221if mkdir -p . 2>/dev/null; then 222 as_mkdir_p=: 223else 224 test -d ./-p && rmdir ./-p 225 as_mkdir_p=false 226fi 227 228as_executable_p="test -f" 229 230# Sed expression to map a string onto a valid CPP name. 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 232 233# Sed expression to map a string onto a valid variable name. 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 235 236 237# IFS 238# We need space, tab and new line, in precisely that order. 239as_nl=' 240' 241IFS=" $as_nl" 242 243# CDPATH. 244$as_unset CDPATH 245 246 247 248# Check that we are running under the correct shell. 249SHELL=${CONFIG_SHELL-/bin/sh} 250 251case X$ECHO in 252X*--fallback-echo) 253 # Remove one level of quotation (which was required for Make). 254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 255 ;; 256esac 257 258echo=${ECHO-echo} 259if test "X$1" = X--no-reexec; then 260 # Discard the --no-reexec flag, and continue. 261 shift 262elif test "X$1" = X--fallback-echo; then 263 # Avoid inline document here, it may be left over 264 : 265elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 266 # Yippee, $echo works! 267 : 268else 269 # Restart under the correct shell. 270 exec $SHELL "$0" --no-reexec ${1+"$@"} 271fi 272 273if test "X$1" = X--fallback-echo; then 274 # used as fallback echo 275 shift 276 cat <<EOF 277$* 278EOF 279 exit 0 280fi 281 282# The HP-UX ksh and POSIX shell print the target directory to stdout 283# if CDPATH is set. 284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 285 286if test -z "$ECHO"; then 287if test "X${echo_test_string+set}" != Xset; then 288# find a string as large as possible, as long as the shell can cope with it 289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 291 if (echo_test_string=`eval $cmd`) 2>/dev/null && 292 echo_test_string=`eval $cmd` && 293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 294 then 295 break 296 fi 297 done 298fi 299 300if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 302 test "X$echo_testing_string" = "X$echo_test_string"; then 303 : 304else 305 # The Solaris, AIX, and Digital Unix default echo programs unquote 306 # backslashes. This makes it impossible to quote backslashes using 307 # echo "$something" | sed 's/\\/\\\\/g' 308 # 309 # So, first we look for a working echo in the user's PATH. 310 311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 312 for dir in $PATH /usr/ucb; do 313 IFS="$lt_save_ifs" 314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 317 test "X$echo_testing_string" = "X$echo_test_string"; then 318 echo="$dir/echo" 319 break 320 fi 321 done 322 IFS="$lt_save_ifs" 323 324 if test "X$echo" = Xecho; then 325 # We didn't find a better echo, so look for alternatives. 326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 328 test "X$echo_testing_string" = "X$echo_test_string"; then 329 # This shell has a builtin print -r that does the trick. 330 echo='print -r' 331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 332 test "X$CONFIG_SHELL" != X/bin/ksh; then 333 # If we have ksh, try running configure again with it. 334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 335 export ORIGINAL_CONFIG_SHELL 336 CONFIG_SHELL=/bin/ksh 337 export CONFIG_SHELL 338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 339 else 340 # Try using printf. 341 echo='printf %s\n' 342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 344 test "X$echo_testing_string" = "X$echo_test_string"; then 345 # Cool, printf works 346 : 347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 348 test "X$echo_testing_string" = 'X\t' && 349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 350 test "X$echo_testing_string" = "X$echo_test_string"; then 351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 352 export CONFIG_SHELL 353 SHELL="$CONFIG_SHELL" 354 export SHELL 355 echo="$CONFIG_SHELL $0 --fallback-echo" 356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 357 test "X$echo_testing_string" = 'X\t' && 358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 359 test "X$echo_testing_string" = "X$echo_test_string"; then 360 echo="$CONFIG_SHELL $0 --fallback-echo" 361 else 362 # maybe with a smaller string... 363 prev=: 364 365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 367 then 368 break 369 fi 370 prev="$cmd" 371 done 372 373 if test "$prev" != 'sed 50q "$0"'; then 374 echo_test_string=`eval $prev` 375 export echo_test_string 376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 377 else 378 # Oops. We lost completely, so just stick with echo. 379 echo=echo 380 fi 381 fi 382 fi 383 fi 384fi 385fi 386 387# Copy echo and quote the copy suitably for passing to libtool from 388# the Makefile, instead of quoting the original, which is used later. 389ECHO=$echo 390if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 392fi 393 394 395 396 397tagnames=${tagnames+${tagnames},}CXX 398 399tagnames=${tagnames+${tagnames},}F77 400 401# Name of the host. 402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 403# so uname gets run too. 404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 405 406exec 6>&1 407 408# 409# Initializations. 410# 411ac_default_prefix=/usr/local 412ac_config_libobj_dir=. 413cross_compiling=no 414subdirs= 415MFLAGS= 416MAKEFLAGS= 417SHELL=${CONFIG_SHELL-/bin/sh} 418 419# Maximum number of lines to put in a shell here document. 420# This variable seems obsolete. It should probably be removed, and 421# only ac_max_sed_lines should be used. 422: ${ac_max_here_lines=38} 423 424# Identity of this package. 425PACKAGE_NAME='iODBC Driver Manager' 426PACKAGE_TARNAME='libiodbc' 427PACKAGE_VERSION='3.52.6' 428PACKAGE_STRING='iODBC Driver Manager 3.52.6' 429PACKAGE_BUGREPORT='iodbc@openlinksw.com' 430 431ac_unique_file="include/isql.h" 432ac_default_prefix=/usr/local 433# Factoring default headers for most tests. 434ac_includes_default="\ 435#include <stdio.h> 436#if HAVE_SYS_TYPES_H 437# include <sys/types.h> 438#endif 439#if HAVE_SYS_STAT_H 440# include <sys/stat.h> 441#endif 442#if STDC_HEADERS 443# include <stdlib.h> 444# include <stddef.h> 445#else 446# if HAVE_STDLIB_H 447# include <stdlib.h> 448# endif 449#endif 450#if HAVE_STRING_H 451# if !STDC_HEADERS && HAVE_MEMORY_H 452# include <memory.h> 453# endif 454# include <string.h> 455#endif 456#if HAVE_STRINGS_H 457# include <strings.h> 458#endif 459#if HAVE_INTTYPES_H 460# include <inttypes.h> 461#else 462# if HAVE_STDINT_H 463# include <stdint.h> 464# endif 465#endif 466#if HAVE_UNISTD_H 467# include <unistd.h> 468#endif" 469 470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG GUI_TRUE GUI_FALSE GTK_TRUE GTK_FALSE LIBADD_DL odbcmode lib_version inidir filedsnpath INSTALL_LIBODBC_TRUE INSTALL_LIBODBC_FALSE DARWIN_TRUE DARWIN_FALSE LIBADD_OS LIBOBJS LTLIBOBJS' 471ac_subst_files='' 472 473# Initialize some variables set by options. 474ac_init_help= 475ac_init_version=false 476# The variables have the same names as the options, with 477# dashes changed to underlines. 478cache_file=/dev/null 479exec_prefix=NONE 480no_create= 481no_recursion= 482prefix=NONE 483program_prefix=NONE 484program_suffix=NONE 485program_transform_name=s,x,x, 486silent= 487site= 488srcdir= 489verbose= 490x_includes=NONE 491x_libraries=NONE 492 493# Installation directory options. 494# These are left unexpanded so users can "make install exec_prefix=/foo" 495# and all the variables that are supposed to be based on exec_prefix 496# by default will actually change. 497# Use braces instead of parens because sh, perl, etc. also accept them. 498bindir='${exec_prefix}/bin' 499sbindir='${exec_prefix}/sbin' 500libexecdir='${exec_prefix}/libexec' 501datadir='${prefix}/share' 502sysconfdir='${prefix}/etc' 503sharedstatedir='${prefix}/com' 504localstatedir='${prefix}/var' 505libdir='${exec_prefix}/lib' 506includedir='${prefix}/include' 507oldincludedir='/usr/include' 508infodir='${prefix}/info' 509mandir='${prefix}/man' 510 511ac_prev= 512for ac_option 513do 514 # If the previous option needs an argument, assign it. 515 if test -n "$ac_prev"; then 516 eval "$ac_prev=\$ac_option" 517 ac_prev= 518 continue 519 fi 520 521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 522 523 # Accept the important Cygnus configure options, so we can diagnose typos. 524 525 case $ac_option in 526 527 -bindir | --bindir | --bindi | --bind | --bin | --bi) 528 ac_prev=bindir ;; 529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 530 bindir=$ac_optarg ;; 531 532 -build | --build | --buil | --bui | --bu) 533 ac_prev=build_alias ;; 534 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 535 build_alias=$ac_optarg ;; 536 537 -cache-file | --cache-file | --cache-fil | --cache-fi \ 538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 539 ac_prev=cache_file ;; 540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 542 cache_file=$ac_optarg ;; 543 544 --config-cache | -C) 545 cache_file=config.cache ;; 546 547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 548 ac_prev=datadir ;; 549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 550 | --da=*) 551 datadir=$ac_optarg ;; 552 553 -disable-* | --disable-*) 554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 555 # Reject names that are not valid shell variable names. 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 558 { (exit 1); exit 1; }; } 559 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 560 eval "enable_$ac_feature=no" ;; 561 562 -enable-* | --enable-*) 563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 564 # Reject names that are not valid shell variable names. 565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 567 { (exit 1); exit 1; }; } 568 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 569 case $ac_option in 570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 571 *) ac_optarg=yes ;; 572 esac 573 eval "enable_$ac_feature='$ac_optarg'" ;; 574 575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 577 | --exec | --exe | --ex) 578 ac_prev=exec_prefix ;; 579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 581 | --exec=* | --exe=* | --ex=*) 582 exec_prefix=$ac_optarg ;; 583 584 -gas | --gas | --ga | --g) 585 # Obsolete; use --with-gas. 586 with_gas=yes ;; 587 588 -help | --help | --hel | --he | -h) 589 ac_init_help=long ;; 590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 591 ac_init_help=recursive ;; 592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 593 ac_init_help=short ;; 594 595 -host | --host | --hos | --ho) 596 ac_prev=host_alias ;; 597 -host=* | --host=* | --hos=* | --ho=*) 598 host_alias=$ac_optarg ;; 599 600 -includedir | --includedir | --includedi | --included | --include \ 601 | --includ | --inclu | --incl | --inc) 602 ac_prev=includedir ;; 603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 604 | --includ=* | --inclu=* | --incl=* | --inc=*) 605 includedir=$ac_optarg ;; 606 607 -infodir | --infodir | --infodi | --infod | --info | --inf) 608 ac_prev=infodir ;; 609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 610 infodir=$ac_optarg ;; 611 612 -libdir | --libdir | --libdi | --libd) 613 ac_prev=libdir ;; 614 -libdir=* | --libdir=* | --libdi=* | --libd=*) 615 libdir=$ac_optarg ;; 616 617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 618 | --libexe | --libex | --libe) 619 ac_prev=libexecdir ;; 620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 621 | --libexe=* | --libex=* | --libe=*) 622 libexecdir=$ac_optarg ;; 623 624 -localstatedir | --localstatedir | --localstatedi | --localstated \ 625 | --localstate | --localstat | --localsta | --localst \ 626 | --locals | --local | --loca | --loc | --lo) 627 ac_prev=localstatedir ;; 628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 631 localstatedir=$ac_optarg ;; 632 633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 634 ac_prev=mandir ;; 635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 636 mandir=$ac_optarg ;; 637 638 -nfp | --nfp | --nf) 639 # Obsolete; use --without-fp. 640 with_fp=no ;; 641 642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 643 | --no-cr | --no-c | -n) 644 no_create=yes ;; 645 646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 648 no_recursion=yes ;; 649 650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 652 | --oldin | --oldi | --old | --ol | --o) 653 ac_prev=oldincludedir ;; 654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 657 oldincludedir=$ac_optarg ;; 658 659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 660 ac_prev=prefix ;; 661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 662 prefix=$ac_optarg ;; 663 664 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 665 | --program-pre | --program-pr | --program-p) 666 ac_prev=program_prefix ;; 667 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 669 program_prefix=$ac_optarg ;; 670 671 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 672 | --program-suf | --program-su | --program-s) 673 ac_prev=program_suffix ;; 674 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 676 program_suffix=$ac_optarg ;; 677 678 -program-transform-name | --program-transform-name \ 679 | --program-transform-nam | --program-transform-na \ 680 | --program-transform-n | --program-transform- \ 681 | --program-transform | --program-transfor \ 682 | --program-transfo | --program-transf \ 683 | --program-trans | --program-tran \ 684 | --progr-tra | --program-tr | --program-t) 685 ac_prev=program_transform_name ;; 686 -program-transform-name=* | --program-transform-name=* \ 687 | --program-transform-nam=* | --program-transform-na=* \ 688 | --program-transform-n=* | --program-transform-=* \ 689 | --program-transform=* | --program-transfor=* \ 690 | --program-transfo=* | --program-transf=* \ 691 | --program-trans=* | --program-tran=* \ 692 | --progr-tra=* | --program-tr=* | --program-t=*) 693 program_transform_name=$ac_optarg ;; 694 695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 696 | -silent | --silent | --silen | --sile | --sil) 697 silent=yes ;; 698 699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 700 ac_prev=sbindir ;; 701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 702 | --sbi=* | --sb=*) 703 sbindir=$ac_optarg ;; 704 705 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 707 | --sharedst | --shareds | --shared | --share | --shar \ 708 | --sha | --sh) 709 ac_prev=sharedstatedir ;; 710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 713 | --sha=* | --sh=*) 714 sharedstatedir=$ac_optarg ;; 715 716 -site | --site | --sit) 717 ac_prev=site ;; 718 -site=* | --site=* | --sit=*) 719 site=$ac_optarg ;; 720 721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 722 ac_prev=srcdir ;; 723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 724 srcdir=$ac_optarg ;; 725 726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 727 | --syscon | --sysco | --sysc | --sys | --sy) 728 ac_prev=sysconfdir ;; 729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 731 sysconfdir=$ac_optarg ;; 732 733 -target | --target | --targe | --targ | --tar | --ta | --t) 734 ac_prev=target_alias ;; 735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 736 target_alias=$ac_optarg ;; 737 738 -v | -verbose | --verbose | --verbos | --verbo | --verb) 739 verbose=yes ;; 740 741 -version | --version | --versio | --versi | --vers | -V) 742 ac_init_version=: ;; 743 744 -with-* | --with-*) 745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 746 # Reject names that are not valid shell variable names. 747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 748 { echo "$as_me: error: invalid package name: $ac_package" >&2 749 { (exit 1); exit 1; }; } 750 ac_package=`echo $ac_package| sed 's/-/_/g'` 751 case $ac_option in 752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 753 *) ac_optarg=yes ;; 754 esac 755 eval "with_$ac_package='$ac_optarg'" ;; 756 757 -without-* | --without-*) 758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 759 # Reject names that are not valid shell variable names. 760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 761 { echo "$as_me: error: invalid package name: $ac_package" >&2 762 { (exit 1); exit 1; }; } 763 ac_package=`echo $ac_package | sed 's/-/_/g'` 764 eval "with_$ac_package=no" ;; 765 766 --x) 767 # Obsolete; use --with-x. 768 with_x=yes ;; 769 770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 771 | --x-incl | --x-inc | --x-in | --x-i) 772 ac_prev=x_includes ;; 773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 775 x_includes=$ac_optarg ;; 776 777 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 779 ac_prev=x_libraries ;; 780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 782 x_libraries=$ac_optarg ;; 783 784 -*) { echo "$as_me: error: unrecognized option: $ac_option 785Try \`$0 --help' for more information." >&2 786 { (exit 1); exit 1; }; } 787 ;; 788 789 *=*) 790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 791 # Reject names that are not valid shell variable names. 792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 794 { (exit 1); exit 1; }; } 795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 796 eval "$ac_envvar='$ac_optarg'" 797 export $ac_envvar ;; 798 799 *) 800 # FIXME: should be removed in autoconf 3.0. 801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 805 ;; 806 807 esac 808done 809 810if test -n "$ac_prev"; then 811 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 812 { echo "$as_me: error: missing argument to $ac_option" >&2 813 { (exit 1); exit 1; }; } 814fi 815 816# Be sure to have absolute paths. 817for ac_var in exec_prefix prefix 818do 819 eval ac_val=$`echo $ac_var` 820 case $ac_val in 821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 823 { (exit 1); exit 1; }; };; 824 esac 825done 826 827# Be sure to have absolute paths. 828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 829 localstatedir libdir includedir oldincludedir infodir mandir 830do 831 eval ac_val=$`echo $ac_var` 832 case $ac_val in 833 [\\/$]* | ?:[\\/]* ) ;; 834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 835 { (exit 1); exit 1; }; };; 836 esac 837done 838 839# There might be people who depend on the old broken behavior: `$host' 840# used to hold the argument of --host etc. 841# FIXME: To remove some day. 842build=$build_alias 843host=$host_alias 844target=$target_alias 845 846# FIXME: To remove some day. 847if test "x$host_alias" != x; then 848 if test "x$build_alias" = x; then 849 cross_compiling=maybe 850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 851 If a cross compiler is detected then cross compile mode will be used." >&2 852 elif test "x$build_alias" != "x$host_alias"; then 853 cross_compiling=yes 854 fi 855fi 856 857ac_tool_prefix= 858test -n "$host_alias" && ac_tool_prefix=$host_alias- 859 860test "$silent" = yes && exec 6>/dev/null 861 862 863# Find the source files, if location was not specified. 864if test -z "$srcdir"; then 865 ac_srcdir_defaulted=yes 866 # Try the directory containing this script, then its parent. 867 ac_confdir=`(dirname "$0") 2>/dev/null || 868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 869 X"$0" : 'X\(//\)[^/]' \| \ 870 X"$0" : 'X\(//\)$' \| \ 871 X"$0" : 'X\(/\)' \| \ 872 . : '\(.\)' 2>/dev/null || 873echo X"$0" | 874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 875 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 876 /^X\(\/\/\)$/{ s//\1/; q; } 877 /^X\(\/\).*/{ s//\1/; q; } 878 s/.*/./; q'` 879 srcdir=$ac_confdir 880 if test ! -r $srcdir/$ac_unique_file; then 881 srcdir=.. 882 fi 883else 884 ac_srcdir_defaulted=no 885fi 886if test ! -r $srcdir/$ac_unique_file; then 887 if test "$ac_srcdir_defaulted" = yes; then 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 889 { (exit 1); exit 1; }; } 890 else 891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 892 { (exit 1); exit 1; }; } 893 fi 894fi 895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 897 { (exit 1); exit 1; }; } 898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 899ac_env_build_alias_set=${build_alias+set} 900ac_env_build_alias_value=$build_alias 901ac_cv_env_build_alias_set=${build_alias+set} 902ac_cv_env_build_alias_value=$build_alias 903ac_env_host_alias_set=${host_alias+set} 904ac_env_host_alias_value=$host_alias 905ac_cv_env_host_alias_set=${host_alias+set} 906ac_cv_env_host_alias_value=$host_alias 907ac_env_target_alias_set=${target_alias+set} 908ac_env_target_alias_value=$target_alias 909ac_cv_env_target_alias_set=${target_alias+set} 910ac_cv_env_target_alias_value=$target_alias 911ac_env_CC_set=${CC+set} 912ac_env_CC_value=$CC 913ac_cv_env_CC_set=${CC+set} 914ac_cv_env_CC_value=$CC 915ac_env_CFLAGS_set=${CFLAGS+set} 916ac_env_CFLAGS_value=$CFLAGS 917ac_cv_env_CFLAGS_set=${CFLAGS+set} 918ac_cv_env_CFLAGS_value=$CFLAGS 919ac_env_LDFLAGS_set=${LDFLAGS+set} 920ac_env_LDFLAGS_value=$LDFLAGS 921ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 922ac_cv_env_LDFLAGS_value=$LDFLAGS 923ac_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_env_CPPFLAGS_value=$CPPFLAGS 925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 926ac_cv_env_CPPFLAGS_value=$CPPFLAGS 927ac_env_CPP_set=${CPP+set} 928ac_env_CPP_value=$CPP 929ac_cv_env_CPP_set=${CPP+set} 930ac_cv_env_CPP_value=$CPP 931ac_env_CXX_set=${CXX+set} 932ac_env_CXX_value=$CXX 933ac_cv_env_CXX_set=${CXX+set} 934ac_cv_env_CXX_value=$CXX 935ac_env_CXXFLAGS_set=${CXXFLAGS+set} 936ac_env_CXXFLAGS_value=$CXXFLAGS 937ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 938ac_cv_env_CXXFLAGS_value=$CXXFLAGS 939ac_env_CXXCPP_set=${CXXCPP+set} 940ac_env_CXXCPP_value=$CXXCPP 941ac_cv_env_CXXCPP_set=${CXXCPP+set} 942ac_cv_env_CXXCPP_value=$CXXCPP 943ac_env_F77_set=${F77+set} 944ac_env_F77_value=$F77 945ac_cv_env_F77_set=${F77+set} 946ac_cv_env_F77_value=$F77 947ac_env_FFLAGS_set=${FFLAGS+set} 948ac_env_FFLAGS_value=$FFLAGS 949ac_cv_env_FFLAGS_set=${FFLAGS+set} 950ac_cv_env_FFLAGS_value=$FFLAGS 951 952# 953# Report the --help message. 954# 955if test "$ac_init_help" = "long"; then 956 # Omit some internal or obsolete options to make the list less imposing. 957 # This message is too long to be a string in the A/UX 3.1 sh. 958 cat <<_ACEOF 959\`configure' configures iODBC Driver Manager 3.52.6 to adapt to many kinds of systems. 960 961Usage: $0 [OPTION]... [VAR=VALUE]... 962 963To assign environment variables (e.g., CC, CFLAGS...), specify them as 964VAR=VALUE. See below for descriptions of some of the useful variables. 965 966Defaults for the options are specified in brackets. 967 968Configuration: 969 -h, --help display this help and exit 970 --help=short display options specific to this package 971 --help=recursive display the short help of all the included packages 972 -V, --version display version information and exit 973 -q, --quiet, --silent do not print \`checking...' messages 974 --cache-file=FILE cache test results in FILE [disabled] 975 -C, --config-cache alias for \`--cache-file=config.cache' 976 -n, --no-create do not create output files 977 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 978 979_ACEOF 980 981 cat <<_ACEOF 982Installation directories: 983 --prefix=PREFIX install architecture-independent files in PREFIX 984 [$ac_default_prefix] 985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 986 [PREFIX] 987 988By default, \`make install' will install all the files in 989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 990an installation prefix other than \`$ac_default_prefix' using \`--prefix', 991for instance \`--prefix=\$HOME'. 992 993For better control, use the options below. 994 995Fine tuning of the installation directories: 996 --bindir=DIR user executables [EPREFIX/bin] 997 --sbindir=DIR system admin executables [EPREFIX/sbin] 998 --libexecdir=DIR program executables [EPREFIX/libexec] 999 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1003 --libdir=DIR object code libraries [EPREFIX/lib] 1004 --includedir=DIR C header files [PREFIX/include] 1005 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1006 --infodir=DIR info documentation [PREFIX/info] 1007 --mandir=DIR man documentation [PREFIX/man] 1008_ACEOF 1009 1010 cat <<\_ACEOF 1011 1012Program names: 1013 --program-prefix=PREFIX prepend PREFIX to installed program names 1014 --program-suffix=SUFFIX append SUFFIX to installed program names 1015 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1016 1017System types: 1018 --build=BUILD configure for building on BUILD [guessed] 1019 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1020_ACEOF 1021fi 1022 1023if test -n "$ac_init_help"; then 1024 case $ac_init_help in 1025 short | recursive ) echo "Configuration of iODBC Driver Manager 3.52.6:";; 1026 esac 1027 cat <<\_ACEOF 1028 1029Optional Features: 1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1032 --enable-maintainer-mode enable make rules and dependencies not useful 1033 (and sometimes confusing) to the casual installer 1034 --disable-dependency-tracking speeds up one-time build 1035 --enable-dependency-tracking do not reject slow dependency extractors 1036 --enable-shared[=PKGS] 1037 build shared libraries [default=yes] 1038 --enable-static[=PKGS] 1039 build static libraries [default=yes] 1040 --enable-fast-install[=PKGS] 1041 optimize for fast installation [default=yes] 1042 --disable-libtool-lock avoid locking (might break parallel builds) 1043 --enable-gui build GUI applications (default) 1044 --disable-gui build GUI applications 1045 --disable-gtktest do not try to compile and run a test GTK+ program 1046 --disable-gtktest Do not try to compile and run a test GTK program 1047 --enable-odbc3 build ODBC 3.x compatible driver manager (default) 1048 --disable-odbc3 build ODBC 2.x compatible driver manager 1049 --enable-libodbc install extra libodbc.so library (default) 1050 --disable-libodbc do not install extra libodbc.so library 1051 --enable-pthreads build threaded libraries and applications (default) 1052 --disable-pthreads build non-threaded libraries and applications 1053 1054Optional Packages: 1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1057 --with-layout=LAYOUT Choose installation layout 1058 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1059 --with-pic try to use only PIC/non-PIC objects [default=use 1060 both] 1061 --with-tags[=TAGS] 1062 include additional configurations [automatic] 1063 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) 1064 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) 1065 --with-iodbc-inidir=DIR where the system odbc.ini file should be located 1066 (default is /etc) 1067 --with-iodbc-filedsnpath=DIR 1068 default location for FILEDSN data sources 1069 (default is $inidir/ODBCDataSources) 1070 1071 1072Some influential environment variables: 1073 CC C compiler command 1074 CFLAGS C compiler flags 1075 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1076 nonstandard directory <lib dir> 1077 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1078 headers in a nonstandard directory <include dir> 1079 CPP C preprocessor 1080 CXX C++ compiler command 1081 CXXFLAGS C++ compiler flags 1082 CXXCPP C++ preprocessor 1083 F77 Fortran 77 compiler command 1084 FFLAGS Fortran 77 compiler flags 1085 1086Use these variables to override the choices made by `configure' or to help 1087it to find libraries and programs with nonstandard names/locations. 1088 1089Report bugs to <iodbc@openlinksw.com>. 1090_ACEOF 1091fi 1092 1093if test "$ac_init_help" = "recursive"; then 1094 # If there are subdirs, report their specific --help. 1095 ac_popdir=`pwd` 1096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1097 test -d $ac_dir || continue 1098 ac_builddir=. 1099 1100if test "$ac_dir" != .; then 1101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1102 # A "../" for each directory in $ac_dir_suffix. 1103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1104else 1105 ac_dir_suffix= ac_top_builddir= 1106fi 1107 1108case $srcdir in 1109 .) # No --srcdir option. We are building in place. 1110 ac_srcdir=. 1111 if test -z "$ac_top_builddir"; then 1112 ac_top_srcdir=. 1113 else 1114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1115 fi ;; 1116 [\\/]* | ?:[\\/]* ) # Absolute path. 1117 ac_srcdir=$srcdir$ac_dir_suffix; 1118 ac_top_srcdir=$srcdir ;; 1119 *) # Relative path. 1120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1121 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1122esac 1123 1124# Do not use `cd foo && pwd` to compute absolute paths, because 1125# the directories may not exist. 1126case `pwd` in 1127.) ac_abs_builddir="$ac_dir";; 1128*) 1129 case "$ac_dir" in 1130 .) ac_abs_builddir=`pwd`;; 1131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1132 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1133 esac;; 1134esac 1135case $ac_abs_builddir in 1136.) ac_abs_top_builddir=${ac_top_builddir}.;; 1137*) 1138 case ${ac_top_builddir}. in 1139 .) ac_abs_top_builddir=$ac_abs_builddir;; 1140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1142 esac;; 1143esac 1144case $ac_abs_builddir in 1145.) ac_abs_srcdir=$ac_srcdir;; 1146*) 1147 case $ac_srcdir in 1148 .) ac_abs_srcdir=$ac_abs_builddir;; 1149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1151 esac;; 1152esac 1153case $ac_abs_builddir in 1154.) ac_abs_top_srcdir=$ac_top_srcdir;; 1155*) 1156 case $ac_top_srcdir in 1157 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1160 esac;; 1161esac 1162 1163 cd $ac_dir 1164 # Check for guested configure; otherwise get Cygnus style configure. 1165 if test -f $ac_srcdir/configure.gnu; then 1166 echo 1167 $SHELL $ac_srcdir/configure.gnu --help=recursive 1168 elif test -f $ac_srcdir/configure; then 1169 echo 1170 $SHELL $ac_srcdir/configure --help=recursive 1171 elif test -f $ac_srcdir/configure.ac || 1172 test -f $ac_srcdir/configure.in; then 1173 echo 1174 $ac_configure --help 1175 else 1176 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1177 fi 1178 cd $ac_popdir 1179 done 1180fi 1181 1182test -n "$ac_init_help" && exit 0 1183if $ac_init_version; then 1184 cat <<\_ACEOF 1185iODBC Driver Manager configure 3.52.6 1186generated by GNU Autoconf 2.59 1187 1188Copyright (C) 2003 Free Software Foundation, Inc. 1189This configure script is free software; the Free Software Foundation 1190gives unlimited permission to copy, distribute and modify it. 1191_ACEOF 1192 exit 0 1193fi 1194exec 5>config.log 1195cat >&5 <<_ACEOF 1196This file contains any messages produced by compilers while 1197running configure, to aid debugging if configure makes a mistake. 1198 1199It was created by iODBC Driver Manager $as_me 3.52.6, which was 1200generated by GNU Autoconf 2.59. Invocation command line was 1201 1202 $ $0 $@ 1203 1204_ACEOF 1205{ 1206cat <<_ASUNAME 1207## --------- ## 1208## Platform. ## 1209## --------- ## 1210 1211hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1212uname -m = `(uname -m) 2>/dev/null || echo unknown` 1213uname -r = `(uname -r) 2>/dev/null || echo unknown` 1214uname -s = `(uname -s) 2>/dev/null || echo unknown` 1215uname -v = `(uname -v) 2>/dev/null || echo unknown` 1216 1217/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1218/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1219 1220/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1221/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1222/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1223hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1224/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1225/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1226/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1227 1228_ASUNAME 1229 1230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1231for as_dir in $PATH 1232do 1233 IFS=$as_save_IFS 1234 test -z "$as_dir" && as_dir=. 1235 echo "PATH: $as_dir" 1236done 1237 1238} >&5 1239 1240cat >&5 <<_ACEOF 1241 1242 1243## ----------- ## 1244## Core tests. ## 1245## ----------- ## 1246 1247_ACEOF 1248 1249 1250# Keep a trace of the command line. 1251# Strip out --no-create and --no-recursion so they do not pile up. 1252# Strip out --silent because we don't want to record it for future runs. 1253# Also quote any args containing shell meta-characters. 1254# Make two passes to allow for proper duplicate-argument suppression. 1255ac_configure_args= 1256ac_configure_args0= 1257ac_configure_args1= 1258ac_sep= 1259ac_must_keep_next=false 1260for ac_pass in 1 2 1261do 1262 for ac_arg 1263 do 1264 case $ac_arg in 1265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1267 | -silent | --silent | --silen | --sile | --sil) 1268 continue ;; 1269 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1270 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1271 esac 1272 case $ac_pass in 1273 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1274 2) 1275 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1276 if test $ac_must_keep_next = true; then 1277 ac_must_keep_next=false # Got value, back to normal. 1278 else 1279 case $ac_arg in 1280 *=* | --config-cache | -C | -disable-* | --disable-* \ 1281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1283 | -with-* | --with-* | -without-* | --without-* | --x) 1284 case "$ac_configure_args0 " in 1285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1286 esac 1287 ;; 1288 -* ) ac_must_keep_next=true ;; 1289 esac 1290 fi 1291 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1292 # Get rid of the leading space. 1293 ac_sep=" " 1294 ;; 1295 esac 1296 done 1297done 1298$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1299$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1300 1301# When interrupted or exit'd, cleanup temporary files, and complete 1302# config.log. We remove comments because anyway the quotes in there 1303# would cause problems or look ugly. 1304# WARNING: Be sure not to use single quotes in there, as some shells, 1305# such as our DU 5.0 friend, will then `close' the trap. 1306trap 'exit_status=$? 1307 # Save into config.log some information that might help in debugging. 1308 { 1309 echo 1310 1311 cat <<\_ASBOX 1312## ---------------- ## 1313## Cache variables. ## 1314## ---------------- ## 1315_ASBOX 1316 echo 1317 # The following way of writing the cache mishandles newlines in values, 1318{ 1319 (set) 2>&1 | 1320 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1321 *ac_space=\ *) 1322 sed -n \ 1323 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1325 ;; 1326 *) 1327 sed -n \ 1328 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1329 ;; 1330 esac; 1331} 1332 echo 1333 1334 cat <<\_ASBOX 1335## ----------------- ## 1336## Output variables. ## 1337## ----------------- ## 1338_ASBOX 1339 echo 1340 for ac_var in $ac_subst_vars 1341 do 1342 eval ac_val=$`echo $ac_var` 1343 echo "$ac_var='"'"'$ac_val'"'"'" 1344 done | sort 1345 echo 1346 1347 if test -n "$ac_subst_files"; then 1348 cat <<\_ASBOX 1349## ------------- ## 1350## Output files. ## 1351## ------------- ## 1352_ASBOX 1353 echo 1354 for ac_var in $ac_subst_files 1355 do 1356 eval ac_val=$`echo $ac_var` 1357 echo "$ac_var='"'"'$ac_val'"'"'" 1358 done | sort 1359 echo 1360 fi 1361 1362 if test -s confdefs.h; then 1363 cat <<\_ASBOX 1364## ----------- ## 1365## confdefs.h. ## 1366## ----------- ## 1367_ASBOX 1368 echo 1369 sed "/^$/d" confdefs.h | sort 1370 echo 1371 fi 1372 test "$ac_signal" != 0 && 1373 echo "$as_me: caught signal $ac_signal" 1374 echo "$as_me: exit $exit_status" 1375 } >&5 1376 rm -f core *.core && 1377 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1378 exit $exit_status 1379 ' 0 1380for ac_signal in 1 2 13 15; do 1381 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1382done 1383ac_signal=0 1384 1385# confdefs.h avoids OS command line length limits that DEFS can exceed. 1386rm -rf conftest* confdefs.h 1387# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1388echo >confdefs.h 1389 1390# Predefined preprocessor variables. 1391 1392cat >>confdefs.h <<_ACEOF 1393#define PACKAGE_NAME "$PACKAGE_NAME" 1394_ACEOF 1395 1396 1397cat >>confdefs.h <<_ACEOF 1398#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1399_ACEOF 1400 1401 1402cat >>confdefs.h <<_ACEOF 1403#define PACKAGE_VERSION "$PACKAGE_VERSION" 1404_ACEOF 1405 1406 1407cat >>confdefs.h <<_ACEOF 1408#define PACKAGE_STRING "$PACKAGE_STRING" 1409_ACEOF 1410 1411 1412cat >>confdefs.h <<_ACEOF 1413#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1414_ACEOF 1415 1416 1417# Let the site file select an alternate cache file if it wants to. 1418# Prefer explicitly selected file to automatically selected ones. 1419if test -z "$CONFIG_SITE"; then 1420 if test "x$prefix" != xNONE; then 1421 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1422 else 1423 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1424 fi 1425fi 1426for ac_site_file in $CONFIG_SITE; do 1427 if test -r "$ac_site_file"; then 1428 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1429echo "$as_me: loading site script $ac_site_file" >&6;} 1430 sed 's/^/| /' "$ac_site_file" >&5 1431 . "$ac_site_file" 1432 fi 1433done 1434 1435if test -r "$cache_file"; then 1436 # Some versions of bash will fail to source /dev/null (special 1437 # files actually), so we avoid doing that. 1438 if test -f "$cache_file"; then 1439 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1440echo "$as_me: loading cache $cache_file" >&6;} 1441 case $cache_file in 1442 [\\/]* | ?:[\\/]* ) . $cache_file;; 1443 *) . ./$cache_file;; 1444 esac 1445 fi 1446else 1447 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1448echo "$as_me: creating cache $cache_file" >&6;} 1449 >$cache_file 1450fi 1451 1452# Check that the precious variables saved in the cache have kept the same 1453# value. 1454ac_cache_corrupted=false 1455for ac_var in `(set) 2>&1 | 1456 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1457 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1458 eval ac_new_set=\$ac_env_${ac_var}_set 1459 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1460 eval ac_new_val="\$ac_env_${ac_var}_value" 1461 case $ac_old_set,$ac_new_set in 1462 set,) 1463 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1464echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1465 ac_cache_corrupted=: ;; 1466 ,set) 1467 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1468echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1469 ac_cache_corrupted=: ;; 1470 ,);; 1471 *) 1472 if test "x$ac_old_val" != "x$ac_new_val"; then 1473 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1474echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1475 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1476echo "$as_me: former value: $ac_old_val" >&2;} 1477 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1478echo "$as_me: current value: $ac_new_val" >&2;} 1479 ac_cache_corrupted=: 1480 fi;; 1481 esac 1482 # Pass precious variables to config.status. 1483 if test "$ac_new_set" = set; then 1484 case $ac_new_val in 1485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1486 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1487 *) ac_arg=$ac_var=$ac_new_val ;; 1488 esac 1489 case " $ac_configure_args " in 1490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1491 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1492 esac 1493 fi 1494done 1495if $ac_cache_corrupted; then 1496 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1497echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1498 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1499echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1500 { (exit 1); exit 1; }; } 1501fi 1502 1503ac_ext=c 1504ac_cpp='$CPP $CPPFLAGS' 1505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1507ac_compiler_gnu=$ac_cv_c_compiler_gnu 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536ac_aux_dir= 1537for ac_dir in admin $srcdir/admin; do 1538 if test -f $ac_dir/install-sh; then 1539 ac_aux_dir=$ac_dir 1540 ac_install_sh="$ac_aux_dir/install-sh -c" 1541 break 1542 elif test -f $ac_dir/install.sh; then 1543 ac_aux_dir=$ac_dir 1544 ac_install_sh="$ac_aux_dir/install.sh -c" 1545 break 1546 elif test -f $ac_dir/shtool; then 1547 ac_aux_dir=$ac_dir 1548 ac_install_sh="$ac_aux_dir/shtool install -c" 1549 break 1550 fi 1551done 1552if test -z "$ac_aux_dir"; then 1553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5 1554echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;} 1555 { (exit 1); exit 1; }; } 1556fi 1557ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1558ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1559ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1560 1561 ac_config_headers="$ac_config_headers include/config.h" 1562 1563am__api_version="1.9" 1564# Find a good install program. We prefer a C program (faster), 1565# so one script is as good as another. But avoid the broken or 1566# incompatible versions: 1567# SysV /etc/install, /usr/sbin/install 1568# SunOS /usr/etc/install 1569# IRIX /sbin/install 1570# AIX /bin/install 1571# AmigaOS /C/install, which installs bootblocks on floppy discs 1572# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1573# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1574# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1575# OS/2's system install, which has a completely different semantic 1576# ./install, which can be erroneously created by make from ./install.sh. 1577echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1578echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1579if test -z "$INSTALL"; then 1580if test "${ac_cv_path_install+set}" = set; then 1581 echo $ECHO_N "(cached) $ECHO_C" >&6 1582else 1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1584for as_dir in $PATH 1585do 1586 IFS=$as_save_IFS 1587 test -z "$as_dir" && as_dir=. 1588 # Account for people who put trailing slashes in PATH elements. 1589case $as_dir/ in 1590 ./ | .// | /cC/* | \ 1591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1592 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1593 /usr/ucb/* ) ;; 1594 *) 1595 # OSF1 and SCO ODT 3.0 have their own names for install. 1596 # Don't use installbsd from OSF since it installs stuff as root 1597 # by default. 1598 for ac_prog in ginstall scoinst install; do 1599 for ac_exec_ext in '' $ac_executable_extensions; do 1600 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1601 if test $ac_prog = install && 1602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1603 # AIX install. It has an incompatible calling convention. 1604 : 1605 elif test $ac_prog = install && 1606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1607 # program-specific install script used by HP pwplus--don't use. 1608 : 1609 else 1610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1611 break 3 1612 fi 1613 fi 1614 done 1615 done 1616 ;; 1617esac 1618done 1619 1620 1621fi 1622 if test "${ac_cv_path_install+set}" = set; then 1623 INSTALL=$ac_cv_path_install 1624 else 1625 # As a last resort, use the slow shell script. We don't cache a 1626 # path for INSTALL within a source directory, because that will 1627 # break other packages using the cache if that directory is 1628 # removed, or if the path is relative. 1629 INSTALL=$ac_install_sh 1630 fi 1631fi 1632echo "$as_me:$LINENO: result: $INSTALL" >&5 1633echo "${ECHO_T}$INSTALL" >&6 1634 1635# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1636# It thinks the first close brace ends the variable substitution. 1637test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1638 1639test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1640 1641test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1642 1643echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1644echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1645# Just in case 1646sleep 1 1647echo timestamp > conftest.file 1648# Do `set' in a subshell so we don't clobber the current shell's 1649# arguments. Must try -L first in case configure is actually a 1650# symlink; some systems play weird games with the mod time of symlinks 1651# (eg FreeBSD returns the mod time of the symlink's containing 1652# directory). 1653if ( 1654 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1655 if test "$*" = "X"; then 1656 # -L didn't work. 1657 set X `ls -t $srcdir/configure conftest.file` 1658 fi 1659 rm -f conftest.file 1660 if test "$*" != "X $srcdir/configure conftest.file" \ 1661 && test "$*" != "X conftest.file $srcdir/configure"; then 1662 1663 # If neither matched, then we have a broken ls. This can happen 1664 # if, for instance, CONFIG_SHELL is bash and it inherits a 1665 # broken ls alias from the environment. This has actually 1666 # happened. Such a system could not be considered "sane". 1667 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1668alias in your environment" >&5 1669echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1670alias in your environment" >&2;} 1671 { (exit 1); exit 1; }; } 1672 fi 1673 1674 test "$2" = conftest.file 1675 ) 1676then 1677 # Ok. 1678 : 1679else 1680 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1681Check your system clock" >&5 1682echo "$as_me: error: newly created file is older than distributed files! 1683Check your system clock" >&2;} 1684 { (exit 1); exit 1; }; } 1685fi 1686echo "$as_me:$LINENO: result: yes" >&5 1687echo "${ECHO_T}yes" >&6 1688test "$program_prefix" != NONE && 1689 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1690# Use a double $ so make ignores it. 1691test "$program_suffix" != NONE && 1692 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1693# Double any \ or $. echo might interpret backslashes. 1694# By default was `s,x,x', remove it if useless. 1695cat <<\_ACEOF >conftest.sed 1696s/[\\$]/&&/g;s/;s,x,x,$// 1697_ACEOF 1698program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1699rm conftest.sed 1700 1701# expand $ac_aux_dir to an absolute path 1702am_aux_dir=`cd $ac_aux_dir && pwd` 1703 1704test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1705# Use eval to expand $SHELL 1706if eval "$MISSING --run true"; then 1707 am_missing_run="$MISSING --run " 1708else 1709 am_missing_run= 1710 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1711echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1712fi 1713 1714if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1715 # We used to keeping the `.' as first argument, in order to 1716 # allow $(mkdir_p) to be used without argument. As in 1717 # $(mkdir_p) $(somedir) 1718 # where $(somedir) is conditionally defined. However this is wrong 1719 # for two reasons: 1720 # 1. if the package is installed by a user who cannot write `.' 1721 # make install will fail, 1722 # 2. the above comment should most certainly read 1723 # $(mkdir_p) $(DESTDIR)$(somedir) 1724 # so it does not work when $(somedir) is undefined and 1725 # $(DESTDIR) is not. 1726 # To support the latter case, we have to write 1727 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1728 # so the `.' trick is pointless. 1729 mkdir_p='mkdir -p --' 1730else 1731 # On NextStep and OpenStep, the `mkdir' command does not 1732 # recognize any option. It will interpret all options as 1733 # directories to create, and then abort because `.' already 1734 # exists. 1735 for d in ./-p ./--version; 1736 do 1737 test -d $d && rmdir $d 1738 done 1739 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1740 if test -f "$ac_aux_dir/mkinstalldirs"; then 1741 mkdir_p='$(mkinstalldirs)' 1742 else 1743 mkdir_p='$(install_sh) -d' 1744 fi 1745fi 1746 1747for ac_prog in gawk mawk nawk awk 1748do 1749 # Extract the first word of "$ac_prog", so it can be a program name with args. 1750set dummy $ac_prog; ac_word=$2 1751echo "$as_me:$LINENO: checking for $ac_word" >&5 1752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1753if test "${ac_cv_prog_AWK+set}" = set; then 1754 echo $ECHO_N "(cached) $ECHO_C" >&6 1755else 1756 if test -n "$AWK"; then 1757 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1758else 1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1760for as_dir in $PATH 1761do 1762 IFS=$as_save_IFS 1763 test -z "$as_dir" && as_dir=. 1764 for ac_exec_ext in '' $ac_executable_extensions; do 1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1766 ac_cv_prog_AWK="$ac_prog" 1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1768 break 2 1769 fi 1770done 1771done 1772 1773fi 1774fi 1775AWK=$ac_cv_prog_AWK 1776if test -n "$AWK"; then 1777 echo "$as_me:$LINENO: result: $AWK" >&5 1778echo "${ECHO_T}$AWK" >&6 1779else 1780 echo "$as_me:$LINENO: result: no" >&5 1781echo "${ECHO_T}no" >&6 1782fi 1783 1784 test -n "$AWK" && break 1785done 1786 1787echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1788echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1789set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1790if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1791 echo $ECHO_N "(cached) $ECHO_C" >&6 1792else 1793 cat >conftest.make <<\_ACEOF 1794all: 1795 @echo 'ac_maketemp="$(MAKE)"' 1796_ACEOF 1797# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1798eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1799if test -n "$ac_maketemp"; then 1800 eval ac_cv_prog_make_${ac_make}_set=yes 1801else 1802 eval ac_cv_prog_make_${ac_make}_set=no 1803fi 1804rm -f conftest.make 1805fi 1806if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1807 echo "$as_me:$LINENO: result: yes" >&5 1808echo "${ECHO_T}yes" >&6 1809 SET_MAKE= 1810else 1811 echo "$as_me:$LINENO: result: no" >&5 1812echo "${ECHO_T}no" >&6 1813 SET_MAKE="MAKE=${MAKE-make}" 1814fi 1815 1816rm -rf .tst 2>/dev/null 1817mkdir .tst 2>/dev/null 1818if test -d .tst; then 1819 am__leading_dot=. 1820else 1821 am__leading_dot=_ 1822fi 1823rmdir .tst 2>/dev/null 1824 1825# test to see if srcdir already configured 1826if test "`cd $srcdir && pwd`" != "`pwd`" && 1827 test -f $srcdir/config.status; then 1828 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1829echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1830 { (exit 1); exit 1; }; } 1831fi 1832 1833# test whether we have cygpath 1834if test -z "$CYGPATH_W"; then 1835 if (cygpath --version) >/dev/null 2>/dev/null; then 1836 CYGPATH_W='cygpath -w' 1837 else 1838 CYGPATH_W=echo 1839 fi 1840fi 1841 1842 1843# Define the identity of the package. 1844 PACKAGE=libiodbc 1845 VERSION=3.52.6 1846 1847 1848cat >>confdefs.h <<_ACEOF 1849#define PACKAGE "$PACKAGE" 1850_ACEOF 1851 1852 1853cat >>confdefs.h <<_ACEOF 1854#define VERSION "$VERSION" 1855_ACEOF 1856 1857# Some tools Automake needs. 1858 1859ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1860 1861 1862AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1863 1864 1865AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1866 1867 1868AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1869 1870 1871MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1872 1873install_sh=${install_sh-"$am_aux_dir/install-sh"} 1874 1875# Installed binaries are usually stripped using `strip' when the user 1876# run `make install-strip'. However `strip' might not be the right 1877# tool to use in cross-compilation environments, therefore Automake 1878# will honor the `STRIP' environment variable to overrule this program. 1879if test "$cross_compiling" != no; then 1880 if test -n "$ac_tool_prefix"; then 1881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1882set dummy ${ac_tool_prefix}strip; ac_word=$2 1883echo "$as_me:$LINENO: checking for $ac_word" >&5 1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1885if test "${ac_cv_prog_STRIP+set}" = set; then 1886 echo $ECHO_N "(cached) $ECHO_C" >&6 1887else 1888 if test -n "$STRIP"; then 1889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1890else 1891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1892for as_dir in $PATH 1893do 1894 IFS=$as_save_IFS 1895 test -z "$as_dir" && as_dir=. 1896 for ac_exec_ext in '' $ac_executable_extensions; do 1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1898 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1900 break 2 1901 fi 1902done 1903done 1904 1905fi 1906fi 1907STRIP=$ac_cv_prog_STRIP 1908if test -n "$STRIP"; then 1909 echo "$as_me:$LINENO: result: $STRIP" >&5 1910echo "${ECHO_T}$STRIP" >&6 1911else 1912 echo "$as_me:$LINENO: result: no" >&5 1913echo "${ECHO_T}no" >&6 1914fi 1915 1916fi 1917if test -z "$ac_cv_prog_STRIP"; then 1918 ac_ct_STRIP=$STRIP 1919 # Extract the first word of "strip", so it can be a program name with args. 1920set dummy strip; ac_word=$2 1921echo "$as_me:$LINENO: checking for $ac_word" >&5 1922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1923if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1924 echo $ECHO_N "(cached) $ECHO_C" >&6 1925else 1926 if test -n "$ac_ct_STRIP"; then 1927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1928else 1929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1930for as_dir in $PATH 1931do 1932 IFS=$as_save_IFS 1933 test -z "$as_dir" && as_dir=. 1934 for ac_exec_ext in '' $ac_executable_extensions; do 1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1936 ac_cv_prog_ac_ct_STRIP="strip" 1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1938 break 2 1939 fi 1940done 1941done 1942 1943 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1944fi 1945fi 1946ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1947if test -n "$ac_ct_STRIP"; then 1948 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1949echo "${ECHO_T}$ac_ct_STRIP" >&6 1950else 1951 echo "$as_me:$LINENO: result: no" >&5 1952echo "${ECHO_T}no" >&6 1953fi 1954 1955 STRIP=$ac_ct_STRIP 1956else 1957 STRIP="$ac_cv_prog_STRIP" 1958fi 1959 1960fi 1961INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1962 1963# We need awk for the "check" target. The system "awk" is bad on 1964# some platforms. 1965# Always define AMTAR for backward compatibility. 1966 1967AMTAR=${AMTAR-"${am_missing_run}tar"} 1968 1969am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1970 1971 1972 1973 1974 1975# Make sure we can run config.sub. 1976$ac_config_sub sun4 >/dev/null 2>&1 || 1977 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1978echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1979 { (exit 1); exit 1; }; } 1980 1981echo "$as_me:$LINENO: checking build system type" >&5 1982echo $ECHO_N "checking build system type... $ECHO_C" >&6 1983if test "${ac_cv_build+set}" = set; then 1984 echo $ECHO_N "(cached) $ECHO_C" >&6 1985else 1986 ac_cv_build_alias=$build_alias 1987test -z "$ac_cv_build_alias" && 1988 ac_cv_build_alias=`$ac_config_guess` 1989test -z "$ac_cv_build_alias" && 1990 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1991echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1992 { (exit 1); exit 1; }; } 1993ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1994 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1995echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1996 { (exit 1); exit 1; }; } 1997 1998fi 1999echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2000echo "${ECHO_T}$ac_cv_build" >&6 2001build=$ac_cv_build 2002build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2003build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2004build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2005 2006 2007echo "$as_me:$LINENO: checking host system type" >&5 2008echo $ECHO_N "checking host system type... $ECHO_C" >&6 2009if test "${ac_cv_host+set}" = set; then 2010 echo $ECHO_N "(cached) $ECHO_C" >&6 2011else 2012 ac_cv_host_alias=$host_alias 2013test -z "$ac_cv_host_alias" && 2014 ac_cv_host_alias=$ac_cv_build_alias 2015ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2016 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2017echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2018 { (exit 1); exit 1; }; } 2019 2020fi 2021echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2022echo "${ECHO_T}$ac_cv_host" >&6 2023host=$ac_cv_host 2024host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2025host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2026host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2027 2028 2029echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2030echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 2031 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 2032if test "${enable_maintainer_mode+set}" = set; then 2033 enableval="$enable_maintainer_mode" 2034 USE_MAINTAINER_MODE=$enableval 2035else 2036 USE_MAINTAINER_MODE=no 2037fi; 2038 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2039echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 2040 2041 2042if test $USE_MAINTAINER_MODE = yes; then 2043 MAINTAINER_MODE_TRUE= 2044 MAINTAINER_MODE_FALSE='#' 2045else 2046 MAINTAINER_MODE_TRUE='#' 2047 MAINTAINER_MODE_FALSE= 2048fi 2049 2050 MAINT=$MAINTAINER_MODE_TRUE 2051 2052 2053 2054 2055########################################################################## 2056## ## 2057## Version information ## 2058## ## 2059######################################################################### 2060 2061# 2062# Version information for SQLGetInfo(SQL_DM_VER) call 2063# 2064BUILD_MAJOR="6" # last digit of version number 2065BUILD_MINOR="071008" # year/month/day of release 2066BUILD_VER="${BUILD_MAJOR}${BUILD_MINOR}" 2067 2068# 2069# Library version numbers 2070# 2071lib3_version=3:18:1 # ODBC 3.x mode 2072lib2_version=2:55:0 # ODBC 2.x mode (do not change) 2073 2074 2075########################################################################## 2076## ## 2077## Check whether config.cache belongs to this machine ## 2078## ## 2079########################################################################## 2080echo "$as_me:$LINENO: checking cached information" >&5 2081echo $ECHO_N "checking cached information... $ECHO_C" >&6 2082hostcheck="$host" 2083if test "${ac_cv_hostcheck+set}" = set; then 2084 echo $ECHO_N "(cached) $ECHO_C" >&6 2085else 2086 ac_cv_hostcheck="$hostcheck" 2087fi 2088 2089if test "$ac_cv_hostcheck" != "$hostcheck"; then 2090 echo "$as_me:$LINENO: result: changed" >&5 2091echo "${ECHO_T}changed" >&6 2092 2093 { echo "$as_me:$LINENO: WARNING: Running on a different architecture." >&5 2094echo "$as_me: WARNING: Running on a different architecture." >&2;} 2095 { echo "$as_me:$LINENO: WARNING: Can't use cached values." >&5 2096echo "$as_me: WARNING: Can't use cached values." >&2;} 2097 { { echo "$as_me:$LINENO: error: Please remove the invalid config.cache file, then try again." >&5 2098echo "$as_me: error: Please remove the invalid config.cache file, then try again." >&2;} 2099 { (exit 1); exit 1; }; } 2100else 2101 echo "$as_me:$LINENO: result: ok" >&5 2102echo "${ECHO_T}ok" >&6 2103fi 2104 2105 2106########################################################################## 2107## ## 2108## Save configuration for later reuse ## 2109## ## 2110########################################################################## 2111echo creating config.nice 2112rm -f config.nice 2113cat >config.nice<<CONFIG_NICE_EOF 2114#! /bin/sh 2115# 2116# Created by configure for $PACKAGE_STRING 2117# 2118 2119CONFIG_NICE_EOF 2120echo ${SHELL} "\"$0\" \\" >> config.nice 2121for arg in $ac_configure_args 2122do 2123 echo "$arg \\" >> config.nice 2124done 2125echo '"$@"' >> config.nice 2126chmod +x config.nice 2127 2128 2129########################################################################## 2130## ## 2131## Set Layout for iODBC ## 2132## ## 2133########################################################################## 2134 2135 2136echo "$as_me:$LINENO: checking for iODBC installation layout" >&5 2137echo $ECHO_N "checking for iODBC installation layout... $ECHO_C" >&6 2138 2139# Check whether --with-layout or --without-layout was given. 2140if test "${with_layout+set}" = set; then 2141 withval="$with_layout" 2142 case "${withval}" in 2143 yes|no) IODBC_LAYOUT=unset ;; 2144 *) IODBC_LAYOUT=${withval} ;; 2145 esac 2146 2147else 2148 IODBC_LAYOUT=unset 2149fi; 2150 2151 2152# 2153# Defaults for Layout 2154# 2155install_libodbc=true 2156 2157case ${IODBC_LAYOUT} in 2158 unset) # No Layout set 2159 iodbc_layout="default" 2160 inidir=/etc 2161 ;; 2162 2163 [Gg][Nn][Uu]) # GNU 2164 iodbc_layout="GNU" 2165 test "x$prefix" = xNONE && prefix=/usr/local 2166 inidir=${prefix}/etc/iodbc 2167 ;; 2168 2169 [Dd][Ee][Bb][Ii][Aa][Nn]) # Debian 2170 iodbc_layout="Debian" 2171 test "x$prefix" = xNONE && prefix=/usr 2172 inidir=/etc 2173 install_libodbc=false 2174 ;; 2175 2176 [Gg][Ee][Nn][Tt][Oo][Oo]) # Gentoo 2177 iodbc_layout="Gentoo" 2178 test "x$prefix" = xNONE && prefix=/usr 2179 includedir='${prefix}/include/iodbc' 2180 inidir=/etc/iodbc 2181 install_libodbc=false 2182 ;; 2183 2184 [Rr][Ee][Dd][Hh][Aa][Tt]) # RedHat 2185 iodbc_layout=RedHat 2186 test "x$prefix" = xNONE && prefix=/usr 2187 inidir=/etc 2188 ;; 2189 2190 [Ff][Rr][Ee][Ee][Bb][Ss][Dd]) # FreeBSD 2191 iodbc_layout=FreeBSD 2192 test "x$prefix" = xNONE && prefix=/usr 2193 inidir=/etc 2194 ;; 2195 2196 [Oo][Pp][Tt]) # /opt 2197 iodbc_layout=opt 2198 test "x$prefix" = xNONE && prefix=/opt/iodbc 2199 inidir=/etc 2200 ;; 2201 2202 [Oo][Pp][Ee][Nn][Ll][Ii][Nn][Kk]) # OpenLink 2203 iodbc_layout=openlink 2204 prefix=/usr/local/iODBC 2205 inidir=/etc 2206 ;; 2207 2208 *) # UNKNOWN 2209 echo "$as_me:$LINENO: result: unknown" >&5 2210echo "${ECHO_T}unknown" >&6 2211 echo "" 2212 echo " Supported layouts: Debian FreeBSD GNU OpenLink opt RedHat" 2213 echo "" 2214 { { echo "$as_me:$LINENO: error: unable to continue" >&5 2215echo "$as_me: error: unable to continue" >&2;} 2216 { (exit 1); exit 1; }; } 2217 ;; 2218esac 2219echo "$as_me:$LINENO: result: ${iodbc_layout}" >&5 2220echo "${ECHO_T}${iodbc_layout}" >&6 2221 2222 2223########################################################################## 2224## ## 2225## Check for C compiler ## 2226## ## 2227########################################################################## 2228ac_ext=c 2229ac_cpp='$CPP $CPPFLAGS' 2230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2232ac_compiler_gnu=$ac_cv_c_compiler_gnu 2233if test -n "$ac_tool_prefix"; then 2234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2235set dummy ${ac_tool_prefix}gcc; ac_word=$2 2236echo "$as_me:$LINENO: checking for $ac_word" >&5 2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2238if test "${ac_cv_prog_CC+set}" = set; then 2239 echo $ECHO_N "(cached) $ECHO_C" >&6 2240else 2241 if test -n "$CC"; then 2242 ac_cv_prog_CC="$CC" # Let the user override the test. 2243else 2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2245for as_dir in $PATH 2246do 2247 IFS=$as_save_IFS 2248 test -z "$as_dir" && as_dir=. 2249 for ac_exec_ext in '' $ac_executable_extensions; do 2250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2251 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2253 break 2 2254 fi 2255done 2256done 2257 2258fi 2259fi 2260CC=$ac_cv_prog_CC 2261if test -n "$CC"; then 2262 echo "$as_me:$LINENO: result: $CC" >&5 2263echo "${ECHO_T}$CC" >&6 2264else 2265 echo "$as_me:$LINENO: result: no" >&5 2266echo "${ECHO_T}no" >&6 2267fi 2268 2269fi 2270if test -z "$ac_cv_prog_CC"; then 2271 ac_ct_CC=$CC 2272 # Extract the first word of "gcc", so it can be a program name with args. 2273set dummy gcc; ac_word=$2 2274echo "$as_me:$LINENO: checking for $ac_word" >&5 2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2277 echo $ECHO_N "(cached) $ECHO_C" >&6 2278else 2279 if test -n "$ac_ct_CC"; then 2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2281else 2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2283for as_dir in $PATH 2284do 2285 IFS=$as_save_IFS 2286 test -z "$as_dir" && as_dir=. 2287 for ac_exec_ext in '' $ac_executable_extensions; do 2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2289 ac_cv_prog_ac_ct_CC="gcc" 2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2291 break 2 2292 fi 2293done 2294done 2295 2296fi 2297fi 2298ac_ct_CC=$ac_cv_prog_ac_ct_CC 2299if test -n "$ac_ct_CC"; then 2300 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2301echo "${ECHO_T}$ac_ct_CC" >&6 2302else 2303 echo "$as_me:$LINENO: result: no" >&5 2304echo "${ECHO_T}no" >&6 2305fi 2306 2307 CC=$ac_ct_CC 2308else 2309 CC="$ac_cv_prog_CC" 2310fi 2311 2312if test -z "$CC"; then 2313 if test -n "$ac_tool_prefix"; then 2314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2315set dummy ${ac_tool_prefix}cc; ac_word=$2 2316echo "$as_me:$LINENO: checking for $ac_word" >&5 2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2318if test "${ac_cv_prog_CC+set}" = set; then 2319 echo $ECHO_N "(cached) $ECHO_C" >&6 2320else 2321 if test -n "$CC"; then 2322 ac_cv_prog_CC="$CC" # Let the user override the test. 2323else 2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2325for as_dir in $PATH 2326do 2327 IFS=$as_save_IFS 2328 test -z "$as_dir" && as_dir=. 2329 for ac_exec_ext in '' $ac_executable_extensions; do 2330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2331 ac_cv_prog_CC="${ac_tool_prefix}cc" 2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2333 break 2 2334 fi 2335done 2336done 2337 2338fi 2339fi 2340CC=$ac_cv_prog_CC 2341if test -n "$CC"; then 2342 echo "$as_me:$LINENO: result: $CC" >&5 2343echo "${ECHO_T}$CC" >&6 2344else 2345 echo "$as_me:$LINENO: result: no" >&5 2346echo "${ECHO_T}no" >&6 2347fi 2348 2349fi 2350if test -z "$ac_cv_prog_CC"; then 2351 ac_ct_CC=$CC 2352 # Extract the first word of "cc", so it can be a program name with args. 2353set dummy cc; ac_word=$2 2354echo "$as_me:$LINENO: checking for $ac_word" >&5 2355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2356if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2357 echo $ECHO_N "(cached) $ECHO_C" >&6 2358else 2359 if test -n "$ac_ct_CC"; then 2360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2361else 2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363for as_dir in $PATH 2364do 2365 IFS=$as_save_IFS 2366 test -z "$as_dir" && as_dir=. 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2369 ac_cv_prog_ac_ct_CC="cc" 2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2371 break 2 2372 fi 2373done 2374done 2375 2376fi 2377fi 2378ac_ct_CC=$ac_cv_prog_ac_ct_CC 2379if test -n "$ac_ct_CC"; then 2380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2381echo "${ECHO_T}$ac_ct_CC" >&6 2382else 2383 echo "$as_me:$LINENO: result: no" >&5 2384echo "${ECHO_T}no" >&6 2385fi 2386 2387 CC=$ac_ct_CC 2388else 2389 CC="$ac_cv_prog_CC" 2390fi 2391 2392fi 2393if test -z "$CC"; then 2394 # Extract the first word of "cc", so it can be a program name with args. 2395set dummy cc; ac_word=$2 2396echo "$as_me:$LINENO: checking for $ac_word" >&5 2397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2398if test "${ac_cv_prog_CC+set}" = set; then 2399 echo $ECHO_N "(cached) $ECHO_C" >&6 2400else 2401 if test -n "$CC"; then 2402 ac_cv_prog_CC="$CC" # Let the user override the test. 2403else 2404 ac_prog_rejected=no 2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406for as_dir in $PATH 2407do 2408 IFS=$as_save_IFS 2409 test -z "$as_dir" && as_dir=. 2410 for ac_exec_ext in '' $ac_executable_extensions; do 2411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2413 ac_prog_rejected=yes 2414 continue 2415 fi 2416 ac_cv_prog_CC="cc" 2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2418 break 2 2419 fi 2420done 2421done 2422 2423if test $ac_prog_rejected = yes; then 2424 # We found a bogon in the path, so make sure we never use it. 2425 set dummy $ac_cv_prog_CC 2426 shift 2427 if test $# != 0; then 2428 # We chose a different compiler from the bogus one. 2429 # However, it has the same basename, so the bogon will be chosen 2430 # first if we set CC to just the basename; use the full file name. 2431 shift 2432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2433 fi 2434fi 2435fi 2436fi 2437CC=$ac_cv_prog_CC 2438if test -n "$CC"; then 2439 echo "$as_me:$LINENO: result: $CC" >&5 2440echo "${ECHO_T}$CC" >&6 2441else 2442 echo "$as_me:$LINENO: result: no" >&5 2443echo "${ECHO_T}no" >&6 2444fi 2445 2446fi 2447if test -z "$CC"; then 2448 if test -n "$ac_tool_prefix"; then 2449 for ac_prog in cl 2450 do 2451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2452set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2453echo "$as_me:$LINENO: checking for $ac_word" >&5 2454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2455if test "${ac_cv_prog_CC+set}" = set; then 2456 echo $ECHO_N "(cached) $ECHO_C" >&6 2457else 2458 if test -n "$CC"; then 2459 ac_cv_prog_CC="$CC" # Let the user override the test. 2460else 2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2462for as_dir in $PATH 2463do 2464 IFS=$as_save_IFS 2465 test -z "$as_dir" && as_dir=. 2466 for ac_exec_ext in '' $ac_executable_extensions; do 2467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2470 break 2 2471 fi 2472done 2473done 2474 2475fi 2476fi 2477CC=$ac_cv_prog_CC 2478if test -n "$CC"; then 2479 echo "$as_me:$LINENO: result: $CC" >&5 2480echo "${ECHO_T}$CC" >&6 2481else 2482 echo "$as_me:$LINENO: result: no" >&5 2483echo "${ECHO_T}no" >&6 2484fi 2485 2486 test -n "$CC" && break 2487 done 2488fi 2489if test -z "$CC"; then 2490 ac_ct_CC=$CC 2491 for ac_prog in cl 2492do 2493 # Extract the first word of "$ac_prog", so it can be a program name with args. 2494set dummy $ac_prog; ac_word=$2 2495echo "$as_me:$LINENO: checking for $ac_word" >&5 2496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2498 echo $ECHO_N "(cached) $ECHO_C" >&6 2499else 2500 if test -n "$ac_ct_CC"; then 2501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2502else 2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2504for as_dir in $PATH 2505do 2506 IFS=$as_save_IFS 2507 test -z "$as_dir" && as_dir=. 2508 for ac_exec_ext in '' $ac_executable_extensions; do 2509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2510 ac_cv_prog_ac_ct_CC="$ac_prog" 2511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2512 break 2 2513 fi 2514done 2515done 2516 2517fi 2518fi 2519ac_ct_CC=$ac_cv_prog_ac_ct_CC 2520if test -n "$ac_ct_CC"; then 2521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2522echo "${ECHO_T}$ac_ct_CC" >&6 2523else 2524 echo "$as_me:$LINENO: result: no" >&5 2525echo "${ECHO_T}no" >&6 2526fi 2527 2528 test -n "$ac_ct_CC" && break 2529done 2530 2531 CC=$ac_ct_CC 2532fi 2533 2534fi 2535 2536 2537test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2538See \`config.log' for more details." >&5 2539echo "$as_me: error: no acceptable C compiler found in \$PATH 2540See \`config.log' for more details." >&2;} 2541 { (exit 1); exit 1; }; } 2542 2543# Provide some information about the compiler. 2544echo "$as_me:$LINENO:" \ 2545 "checking for C compiler version" >&5 2546ac_compiler=`set X $ac_compile; echo $2` 2547{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2548 (eval $ac_compiler --version </dev/null >&5) 2>&5 2549 ac_status=$? 2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2551 (exit $ac_status); } 2552{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2553 (eval $ac_compiler -v </dev/null >&5) 2>&5 2554 ac_status=$? 2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2556 (exit $ac_status); } 2557{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2558 (eval $ac_compiler -V </dev/null >&5) 2>&5 2559 ac_status=$? 2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2561 (exit $ac_status); } 2562 2563cat >conftest.$ac_ext <<_ACEOF 2564/* confdefs.h. */ 2565_ACEOF 2566cat confdefs.h >>conftest.$ac_ext 2567cat >>conftest.$ac_ext <<_ACEOF 2568/* end confdefs.h. */ 2569 2570int 2571main () 2572{ 2573 2574 ; 2575 return 0; 2576} 2577_ACEOF 2578ac_clean_files_save=$ac_clean_files 2579ac_clean_files="$ac_clean_files a.out a.exe b.out" 2580# Try to create an executable without -o first, disregard a.out. 2581# It will help us diagnose broken compilers, and finding out an intuition 2582# of exeext. 2583echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2584echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2585ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2586if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2587 (eval $ac_link_default) 2>&5 2588 ac_status=$? 2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2590 (exit $ac_status); }; then 2591 # Find the output, starting from the most likely. This scheme is 2592# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2593# resort. 2594 2595# Be careful to initialize this variable, since it used to be cached. 2596# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2597ac_cv_exeext= 2598# b.out is created by i960 compilers. 2599for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2600do 2601 test -f "$ac_file" || continue 2602 case $ac_file in 2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2604 ;; 2605 conftest.$ac_ext ) 2606 # This is the source file. 2607 ;; 2608 [ab].out ) 2609 # We found the default executable, but exeext='' is most 2610 # certainly right. 2611 break;; 2612 *.* ) 2613 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2614 # FIXME: I believe we export ac_cv_exeext for Libtool, 2615 # but it would be cool to find out if it's true. Does anybody 2616 # maintain Libtool? --akim. 2617 export ac_cv_exeext 2618 break;; 2619 * ) 2620 break;; 2621 esac 2622done 2623else 2624 echo "$as_me: failed program was:" >&5 2625sed 's/^/| /' conftest.$ac_ext >&5 2626 2627{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2628See \`config.log' for more details." >&5 2629echo "$as_me: error: C compiler cannot create executables 2630See \`config.log' for more details." >&2;} 2631 { (exit 77); exit 77; }; } 2632fi 2633 2634ac_exeext=$ac_cv_exeext 2635echo "$as_me:$LINENO: result: $ac_file" >&5 2636echo "${ECHO_T}$ac_file" >&6 2637 2638# Check the compiler produces executables we can run. If not, either 2639# the compiler is broken, or we cross compile. 2640echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2641echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2642# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2643# If not cross compiling, check that we can run a simple program. 2644if test "$cross_compiling" != yes; then 2645 if { ac_try='./$ac_file' 2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2647 (eval $ac_try) 2>&5 2648 ac_status=$? 2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2650 (exit $ac_status); }; }; then 2651 cross_compiling=no 2652 else 2653 if test "$cross_compiling" = maybe; then 2654 cross_compiling=yes 2655 else 2656 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2657If you meant to cross compile, use \`--host'. 2658See \`config.log' for more details." >&5 2659echo "$as_me: error: cannot run C compiled programs. 2660If you meant to cross compile, use \`--host'. 2661See \`config.log' for more details." >&2;} 2662 { (exit 1); exit 1; }; } 2663 fi 2664 fi 2665fi 2666echo "$as_me:$LINENO: result: yes" >&5 2667echo "${ECHO_T}yes" >&6 2668 2669rm -f a.out a.exe conftest$ac_cv_exeext b.out 2670ac_clean_files=$ac_clean_files_save 2671# Check the compiler produces executables we can run. If not, either 2672# the compiler is broken, or we cross compile. 2673echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2674echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2675echo "$as_me:$LINENO: result: $cross_compiling" >&5 2676echo "${ECHO_T}$cross_compiling" >&6 2677 2678echo "$as_me:$LINENO: checking for suffix of executables" >&5 2679echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2681 (eval $ac_link) 2>&5 2682 ac_status=$? 2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2684 (exit $ac_status); }; then 2685 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2686# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2687# work properly (i.e., refer to `conftest.exe'), while it won't with 2688# `rm'. 2689for ac_file in conftest.exe conftest conftest.*; do 2690 test -f "$ac_file" || continue 2691 case $ac_file in 2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2693 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2694 export ac_cv_exeext 2695 break;; 2696 * ) break;; 2697 esac 2698done 2699else 2700 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2701See \`config.log' for more details." >&5 2702echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2703See \`config.log' for more details." >&2;} 2704 { (exit 1); exit 1; }; } 2705fi 2706 2707rm -f conftest$ac_cv_exeext 2708echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2709echo "${ECHO_T}$ac_cv_exeext" >&6 2710 2711rm -f conftest.$ac_ext 2712EXEEXT=$ac_cv_exeext 2713ac_exeext=$EXEEXT 2714echo "$as_me:$LINENO: checking for suffix of object files" >&5 2715echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2716if test "${ac_cv_objext+set}" = set; then 2717 echo $ECHO_N "(cached) $ECHO_C" >&6 2718else 2719 cat >conftest.$ac_ext <<_ACEOF 2720/* confdefs.h. */ 2721_ACEOF 2722cat confdefs.h >>conftest.$ac_ext 2723cat >>conftest.$ac_ext <<_ACEOF 2724/* end confdefs.h. */ 2725 2726int 2727main () 2728{ 2729 2730 ; 2731 return 0; 2732} 2733_ACEOF 2734rm -f conftest.o conftest.obj 2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2736 (eval $ac_compile) 2>&5 2737 ac_status=$? 2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2739 (exit $ac_status); }; then 2740 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2741 case $ac_file in 2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2744 break;; 2745 esac 2746done 2747else 2748 echo "$as_me: failed program was:" >&5 2749sed 's/^/| /' conftest.$ac_ext >&5 2750 2751{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2752See \`config.log' for more details." >&5 2753echo "$as_me: error: cannot compute suffix of object files: cannot compile 2754See \`config.log' for more details." >&2;} 2755 { (exit 1); exit 1; }; } 2756fi 2757 2758rm -f conftest.$ac_cv_objext conftest.$ac_ext 2759fi 2760echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2761echo "${ECHO_T}$ac_cv_objext" >&6 2762OBJEXT=$ac_cv_objext 2763ac_objext=$OBJEXT 2764echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2765echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2766if test "${ac_cv_c_compiler_gnu+set}" = set; then 2767 echo $ECHO_N "(cached) $ECHO_C" >&6 2768else 2769 cat >conftest.$ac_ext <<_ACEOF 2770/* confdefs.h. */ 2771_ACEOF 2772cat confdefs.h >>conftest.$ac_ext 2773cat >>conftest.$ac_ext <<_ACEOF 2774/* end confdefs.h. */ 2775 2776int 2777main () 2778{ 2779#ifndef __GNUC__ 2780 choke me 2781#endif 2782 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787rm -f conftest.$ac_objext 2788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2789 (eval $ac_compile) 2>conftest.er1 2790 ac_status=$? 2791 grep -v '^ *+' conftest.er1 >conftest.err 2792 rm -f conftest.er1 2793 cat conftest.err >&5 2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2795 (exit $ac_status); } && 2796 { ac_try='test -z "$ac_c_werror_flag" 2797 || test ! -s conftest.err' 2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2799 (eval $ac_try) 2>&5 2800 ac_status=$? 2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2802 (exit $ac_status); }; } && 2803 { ac_try='test -s conftest.$ac_objext' 2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2805 (eval $ac_try) 2>&5 2806 ac_status=$? 2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2808 (exit $ac_status); }; }; then 2809 ac_compiler_gnu=yes 2810else 2811 echo "$as_me: failed program was:" >&5 2812sed 's/^/| /' conftest.$ac_ext >&5 2813 2814ac_compiler_gnu=no 2815fi 2816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2817ac_cv_c_compiler_gnu=$ac_compiler_gnu 2818 2819fi 2820echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2821echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2822GCC=`test $ac_compiler_gnu = yes && echo yes` 2823ac_test_CFLAGS=${CFLAGS+set} 2824ac_save_CFLAGS=$CFLAGS 2825CFLAGS="-g" 2826echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2827echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2828if test "${ac_cv_prog_cc_g+set}" = set; then 2829 echo $ECHO_N "(cached) $ECHO_C" >&6 2830else 2831 cat >conftest.$ac_ext <<_ACEOF 2832/* confdefs.h. */ 2833_ACEOF 2834cat confdefs.h >>conftest.$ac_ext 2835cat >>conftest.$ac_ext <<_ACEOF 2836/* end confdefs.h. */ 2837 2838int 2839main () 2840{ 2841 2842 ; 2843 return 0; 2844} 2845_ACEOF 2846rm -f conftest.$ac_objext 2847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2848 (eval $ac_compile) 2>conftest.er1 2849 ac_status=$? 2850 grep -v '^ *+' conftest.er1 >conftest.err 2851 rm -f conftest.er1 2852 cat conftest.err >&5 2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2854 (exit $ac_status); } && 2855 { ac_try='test -z "$ac_c_werror_flag" 2856 || test ! -s conftest.err' 2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2858 (eval $ac_try) 2>&5 2859 ac_status=$? 2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2861 (exit $ac_status); }; } && 2862 { ac_try='test -s conftest.$ac_objext' 2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2864 (eval $ac_try) 2>&5 2865 ac_status=$? 2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2867 (exit $ac_status); }; }; then 2868 ac_cv_prog_cc_g=yes 2869else 2870 echo "$as_me: failed program was:" >&5 2871sed 's/^/| /' conftest.$ac_ext >&5 2872 2873ac_cv_prog_cc_g=no 2874fi 2875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2876fi 2877echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2878echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2879if test "$ac_test_CFLAGS" = set; then 2880 CFLAGS=$ac_save_CFLAGS 2881elif test $ac_cv_prog_cc_g = yes; then 2882 if test "$GCC" = yes; then 2883 CFLAGS="-g -O2" 2884 else 2885 CFLAGS="-g" 2886 fi 2887else 2888 if test "$GCC" = yes; then 2889 CFLAGS="-O2" 2890 else 2891 CFLAGS= 2892 fi 2893fi 2894echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2895echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2896if test "${ac_cv_prog_cc_stdc+set}" = set; then 2897 echo $ECHO_N "(cached) $ECHO_C" >&6 2898else 2899 ac_cv_prog_cc_stdc=no 2900ac_save_CC=$CC 2901cat >conftest.$ac_ext <<_ACEOF 2902/* confdefs.h. */ 2903_ACEOF 2904cat confdefs.h >>conftest.$ac_ext 2905cat >>conftest.$ac_ext <<_ACEOF 2906/* end confdefs.h. */ 2907#include <stdarg.h> 2908#include <stdio.h> 2909#include <sys/types.h> 2910#include <sys/stat.h> 2911/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2912struct buf { int x; }; 2913FILE * (*rcsopen) (struct buf *, struct stat *, int); 2914static char *e (p, i) 2915 char **p; 2916 int i; 2917{ 2918 return p[i]; 2919} 2920static char *f (char * (*g) (char **, int), char **p, ...) 2921{ 2922 char *s; 2923 va_list v; 2924 va_start (v,p); 2925 s = g (p, va_arg (v,int)); 2926 va_end (v); 2927 return s; 2928} 2929 2930/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2931 function prototypes and stuff, but not '\xHH' hex character constants. 2932 These don't provoke an error unfortunately, instead are silently treated 2933 as 'x'. The following induces an error, until -std1 is added to get 2934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2935 array size at least. It's necessary to write '\x00'==0 to get something 2936 that's true only with -std1. */ 2937int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2938 2939int test (int i, double x); 2940struct s1 {int (*f) (int a);}; 2941struct s2 {int (*f) (double a);}; 2942int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2943int argc; 2944char **argv; 2945int 2946main () 2947{ 2948return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2949 ; 2950 return 0; 2951} 2952_ACEOF 2953# Don't try gcc -ansi; that turns off useful extensions and 2954# breaks some systems' header files. 2955# AIX -qlanglvl=ansi 2956# Ultrix and OSF/1 -std1 2957# HP-UX 10.20 and later -Ae 2958# HP-UX older versions -Aa -D_HPUX_SOURCE 2959# SVR4 -Xc -D__EXTENSIONS__ 2960for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2961do 2962 CC="$ac_save_CC $ac_arg" 2963 rm -f conftest.$ac_objext 2964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2965 (eval $ac_compile) 2>conftest.er1 2966 ac_status=$? 2967 grep -v '^ *+' conftest.er1 >conftest.err 2968 rm -f conftest.er1 2969 cat conftest.err >&5 2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2971 (exit $ac_status); } && 2972 { ac_try='test -z "$ac_c_werror_flag" 2973 || test ! -s conftest.err' 2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2975 (eval $ac_try) 2>&5 2976 ac_status=$? 2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); }; } && 2979 { ac_try='test -s conftest.$ac_objext' 2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2981 (eval $ac_try) 2>&5 2982 ac_status=$? 2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2984 (exit $ac_status); }; }; then 2985 ac_cv_prog_cc_stdc=$ac_arg 2986break 2987else 2988 echo "$as_me: failed program was:" >&5 2989sed 's/^/| /' conftest.$ac_ext >&5 2990 2991fi 2992rm -f conftest.err conftest.$ac_objext 2993done 2994rm -f conftest.$ac_ext conftest.$ac_objext 2995CC=$ac_save_CC 2996 2997fi 2998 2999case "x$ac_cv_prog_cc_stdc" in 3000 x|xno) 3001 echo "$as_me:$LINENO: result: none needed" >&5 3002echo "${ECHO_T}none needed" >&6 ;; 3003 *) 3004 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3005echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3006 CC="$CC $ac_cv_prog_cc_stdc" ;; 3007esac 3008 3009# Some people use a C++ compiler to compile C. Since we use `exit', 3010# in C++ we need to declare it. In case someone uses the same compiler 3011# for both compiling C and C++ we need to have the C++ compiler decide 3012# the declaration of exit, since it's the most demanding environment. 3013cat >conftest.$ac_ext <<_ACEOF 3014#ifndef __cplusplus 3015 choke me 3016#endif 3017_ACEOF 3018rm -f conftest.$ac_objext 3019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3020 (eval $ac_compile) 2>conftest.er1 3021 ac_status=$? 3022 grep -v '^ *+' conftest.er1 >conftest.err 3023 rm -f conftest.er1 3024 cat conftest.err >&5 3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3026 (exit $ac_status); } && 3027 { ac_try='test -z "$ac_c_werror_flag" 3028 || test ! -s conftest.err' 3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3030 (eval $ac_try) 2>&5 3031 ac_status=$? 3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3033 (exit $ac_status); }; } && 3034 { ac_try='test -s conftest.$ac_objext' 3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3036 (eval $ac_try) 2>&5 3037 ac_status=$? 3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); }; }; then 3040 for ac_declaration in \ 3041 '' \ 3042 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3043 'extern "C" void std::exit (int); using std::exit;' \ 3044 'extern "C" void exit (int) throw ();' \ 3045 'extern "C" void exit (int);' \ 3046 'void exit (int);' 3047do 3048 cat >conftest.$ac_ext <<_ACEOF 3049/* confdefs.h. */ 3050_ACEOF 3051cat confdefs.h >>conftest.$ac_ext 3052cat >>conftest.$ac_ext <<_ACEOF 3053/* end confdefs.h. */ 3054$ac_declaration 3055#include <stdlib.h> 3056int 3057main () 3058{ 3059exit (42); 3060 ; 3061 return 0; 3062} 3063_ACEOF 3064rm -f conftest.$ac_objext 3065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3066 (eval $ac_compile) 2>conftest.er1 3067 ac_status=$? 3068 grep -v '^ *+' conftest.er1 >conftest.err 3069 rm -f conftest.er1 3070 cat conftest.err >&5 3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3072 (exit $ac_status); } && 3073 { ac_try='test -z "$ac_c_werror_flag" 3074 || test ! -s conftest.err' 3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3076 (eval $ac_try) 2>&5 3077 ac_status=$? 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); }; } && 3080 { ac_try='test -s conftest.$ac_objext' 3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3082 (eval $ac_try) 2>&5 3083 ac_status=$? 3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3085 (exit $ac_status); }; }; then 3086 : 3087else 3088 echo "$as_me: failed program was:" >&5 3089sed 's/^/| /' conftest.$ac_ext >&5 3090 3091continue 3092fi 3093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3094 cat >conftest.$ac_ext <<_ACEOF 3095/* confdefs.h. */ 3096_ACEOF 3097cat confdefs.h >>conftest.$ac_ext 3098cat >>conftest.$ac_ext <<_ACEOF 3099/* end confdefs.h. */ 3100$ac_declaration 3101int 3102main () 3103{ 3104exit (42); 3105 ; 3106 return 0; 3107} 3108_ACEOF 3109rm -f conftest.$ac_objext 3110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3111 (eval $ac_compile) 2>conftest.er1 3112 ac_status=$? 3113 grep -v '^ *+' conftest.er1 >conftest.err 3114 rm -f conftest.er1 3115 cat conftest.err >&5 3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3117 (exit $ac_status); } && 3118 { ac_try='test -z "$ac_c_werror_flag" 3119 || test ! -s conftest.err' 3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3121 (eval $ac_try) 2>&5 3122 ac_status=$? 3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3124 (exit $ac_status); }; } && 3125 { ac_try='test -s conftest.$ac_objext' 3126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3127 (eval $ac_try) 2>&5 3128 ac_status=$? 3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3130 (exit $ac_status); }; }; then 3131 break 3132else 3133 echo "$as_me: failed program was:" >&5 3134sed 's/^/| /' conftest.$ac_ext >&5 3135 3136fi 3137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3138done 3139rm -f conftest* 3140if test -n "$ac_declaration"; then 3141 echo '#ifdef __cplusplus' >>confdefs.h 3142 echo $ac_declaration >>confdefs.h 3143 echo '#endif' >>confdefs.h 3144fi 3145 3146else 3147 echo "$as_me: failed program was:" >&5 3148sed 's/^/| /' conftest.$ac_ext >&5 3149 3150fi 3151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3152ac_ext=c 3153ac_cpp='$CPP $CPPFLAGS' 3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3156ac_compiler_gnu=$ac_cv_c_compiler_gnu 3157DEPDIR="${am__leading_dot}deps" 3158 3159 ac_config_commands="$ac_config_commands depfiles" 3160 3161 3162am_make=${MAKE-make} 3163cat > confinc << 'END' 3164am__doit: 3165 @echo done 3166.PHONY: am__doit 3167END 3168# If we don't find an include directive, just comment out the code. 3169echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3170echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3171am__include="#" 3172am__quote= 3173_am_result=none 3174# First try GNU make style include. 3175echo "include confinc" > confmf 3176# We grep out `Entering directory' and `Leaving directory' 3177# messages which can occur if `w' ends up in MAKEFLAGS. 3178# In particular we don't look at `^make:' because GNU make might 3179# be invoked under some other name (usually "gmake"), in which 3180# case it prints its new name instead of `make'. 3181if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3182 am__include=include 3183 am__quote= 3184 _am_result=GNU 3185fi 3186# Now try BSD make style include. 3187if test "$am__include" = "#"; then 3188 echo '.include "confinc"' > confmf 3189 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3190 am__include=.include 3191 am__quote="\"" 3192 _am_result=BSD 3193 fi 3194fi 3195 3196 3197echo "$as_me:$LINENO: result: $_am_result" >&5 3198echo "${ECHO_T}$_am_result" >&6 3199rm -f confinc confmf 3200 3201# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3202if test "${enable_dependency_tracking+set}" = set; then 3203 enableval="$enable_dependency_tracking" 3204 3205fi; 3206if test "x$enable_dependency_tracking" != xno; then 3207 am_depcomp="$ac_aux_dir/depcomp" 3208 AMDEPBACKSLASH='\' 3209fi 3210 3211 3212if test "x$enable_dependency_tracking" != xno; then 3213 AMDEP_TRUE= 3214 AMDEP_FALSE='#' 3215else 3216 AMDEP_TRUE='#' 3217 AMDEP_FALSE= 3218fi 3219 3220 3221 3222 3223depcc="$CC" am_compiler_list= 3224 3225echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3226echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3227if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3228 echo $ECHO_N "(cached) $ECHO_C" >&6 3229else 3230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3231 # We make a subdir and do the tests there. Otherwise we can end up 3232 # making bogus files that we don't know about and never remove. For 3233 # instance it was reported that on HP-UX the gcc test will end up 3234 # making a dummy file named `D' -- because `-MD' means `put the output 3235 # in D'. 3236 mkdir conftest.dir 3237 # Copy depcomp to subdir because otherwise we won't find it if we're 3238 # using a relative directory. 3239 cp "$am_depcomp" conftest.dir 3240 cd conftest.dir 3241 # We will build objects and dependencies in a subdirectory because 3242 # it helps to detect inapplicable dependency modes. For instance 3243 # both Tru64's cc and ICC support -MD to output dependencies as a 3244 # side effect of compilation, but ICC will put the dependencies in 3245 # the current directory while Tru64 will put them in the object 3246 # directory. 3247 mkdir sub 3248 3249 am_cv_CC_dependencies_compiler_type=none 3250 if test "$am_compiler_list" = ""; then 3251 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3252 fi 3253 for depmode in $am_compiler_list; do 3254 # Setup a source with many dependencies, because some compilers 3255 # like to wrap large dependency lists on column 80 (with \), and 3256 # we should not choose a depcomp mode which is confused by this. 3257 # 3258 # We need to recreate these files for each test, as the compiler may 3259 # overwrite some of them when testing with obscure command lines. 3260 # This happens at least with the AIX C compiler. 3261 : > sub/conftest.c 3262 for i in 1 2 3 4 5 6; do 3263 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3264 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3265 # Solaris 8's {/usr,}/bin/sh. 3266 touch sub/conftst$i.h 3267 done 3268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3269 3270 case $depmode in 3271 nosideeffect) 3272 # after this tag, mechanisms are not by side-effect, so they'll 3273 # only be used when explicitly requested 3274 if test "x$enable_dependency_tracking" = xyes; then 3275 continue 3276 else 3277 break 3278 fi 3279 ;; 3280 none) break ;; 3281 esac 3282 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3283 # mode. It turns out that the SunPro C++ compiler does not properly 3284 # handle `-M -o', and we need to detect this. 3285 if depmode=$depmode \ 3286 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3287 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3288 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3289 >/dev/null 2>conftest.err && 3290 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3291 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3292 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3293 # icc doesn't choke on unknown options, it will just issue warnings 3294 # or remarks (even with -Werror). So we grep stderr for any message 3295 # that says an option was ignored or not supported. 3296 # When given -MP, icc 7.0 and 7.1 complain thusly: 3297 # icc: Command line warning: ignoring option '-M'; no argument required 3298 # The diagnosis changed in icc 8.0: 3299 # icc: Command line remark: option '-MP' not supported 3300 if (grep 'ignoring option' conftest.err || 3301 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3302 am_cv_CC_dependencies_compiler_type=$depmode 3303 break 3304 fi 3305 fi 3306 done 3307 3308 cd .. 3309 rm -rf conftest.dir 3310else 3311 am_cv_CC_dependencies_compiler_type=none 3312fi 3313 3314fi 3315echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3316echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3317CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3318 3319 3320 3321if 3322 test "x$enable_dependency_tracking" != xno \ 3323 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3324 am__fastdepCC_TRUE= 3325 am__fastdepCC_FALSE='#' 3326else 3327 am__fastdepCC_TRUE='#' 3328 am__fastdepCC_FALSE= 3329fi 3330 3331 3332if test "x$CC" != xcc; then 3333 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 3334echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 3335else 3336 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 3337echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 3338fi 3339set dummy $CC; ac_cc=`echo $2 | 3340 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3341if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then 3342 echo $ECHO_N "(cached) $ECHO_C" >&6 3343else 3344 cat >conftest.$ac_ext <<_ACEOF 3345/* confdefs.h. */ 3346_ACEOF 3347cat confdefs.h >>conftest.$ac_ext 3348cat >>conftest.$ac_ext <<_ACEOF 3349/* end confdefs.h. */ 3350 3351int 3352main () 3353{ 3354 3355 ; 3356 return 0; 3357} 3358_ACEOF 3359# Make sure it works both with $CC and with simple cc. 3360# We do the test twice because some compilers refuse to overwrite an 3361# existing .o file with -o, though they will create one. 3362ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' 3363if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3364 (eval $ac_try) 2>&5 3365 ac_status=$? 3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3367 (exit $ac_status); } && 3368 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3369 (eval $ac_try) 2>&5 3370 ac_status=$? 3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3372 (exit $ac_status); }; 3373then 3374 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3375 if test "x$CC" != xcc; then 3376 # Test first that cc exists at all. 3377 if { ac_try='cc -c conftest.$ac_ext >&5' 3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3379 (eval $ac_try) 2>&5 3380 ac_status=$? 3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3382 (exit $ac_status); }; }; then 3383 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' 3384 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3385 (eval $ac_try) 2>&5 3386 ac_status=$? 3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3388 (exit $ac_status); } && 3389 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3390 (eval $ac_try) 2>&5 3391 ac_status=$? 3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3393 (exit $ac_status); }; 3394 then 3395 # cc works too. 3396 : 3397 else 3398 # cc exists but doesn't like -o. 3399 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3400 fi 3401 fi 3402 fi 3403else 3404 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3405fi 3406rm -f conftest* 3407 3408fi 3409if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 3410 echo "$as_me:$LINENO: result: yes" >&5 3411echo "${ECHO_T}yes" >&6 3412else 3413 echo "$as_me:$LINENO: result: no" >&5 3414echo "${ECHO_T}no" >&6 3415 3416cat >>confdefs.h <<\_ACEOF 3417#define NO_MINUS_C_MINUS_O 1 3418_ACEOF 3419 3420fi 3421 3422 3423ac_ext=c 3424ac_cpp='$CPP $CPPFLAGS' 3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3427ac_compiler_gnu=$ac_cv_c_compiler_gnu 3428echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3429echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3430# On Suns, sometimes $CPP names a directory. 3431if test -n "$CPP" && test -d "$CPP"; then 3432 CPP= 3433fi 3434if test -z "$CPP"; then 3435 if test "${ac_cv_prog_CPP+set}" = set; then 3436 echo $ECHO_N "(cached) $ECHO_C" >&6 3437else 3438 # Double quotes because CPP needs to be expanded 3439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3440 do 3441 ac_preproc_ok=false 3442for ac_c_preproc_warn_flag in '' yes 3443do 3444 # Use a header file that comes with gcc, so configuring glibc 3445 # with a fresh cross-compiler works. 3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3447 # <limits.h> exists even on freestanding compilers. 3448 # On the NeXT, cc -E runs the code through the compiler's parser, 3449 # not just through cpp. "Syntax error" is here to catch this case. 3450 cat >conftest.$ac_ext <<_ACEOF 3451/* confdefs.h. */ 3452_ACEOF 3453cat confdefs.h >>conftest.$ac_ext 3454cat >>conftest.$ac_ext <<_ACEOF 3455/* end confdefs.h. */ 3456#ifdef __STDC__ 3457# include <limits.h> 3458#else 3459# include <assert.h> 3460#endif 3461 Syntax error 3462_ACEOF 3463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3465 ac_status=$? 3466 grep -v '^ *+' conftest.er1 >conftest.err 3467 rm -f conftest.er1 3468 cat conftest.err >&5 3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3470 (exit $ac_status); } >/dev/null; then 3471 if test -s conftest.err; then 3472 ac_cpp_err=$ac_c_preproc_warn_flag 3473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3474 else 3475 ac_cpp_err= 3476 fi 3477else 3478 ac_cpp_err=yes 3479fi 3480if test -z "$ac_cpp_err"; then 3481 : 3482else 3483 echo "$as_me: failed program was:" >&5 3484sed 's/^/| /' conftest.$ac_ext >&5 3485 3486 # Broken: fails on valid input. 3487continue 3488fi 3489rm -f conftest.err conftest.$ac_ext 3490 3491 # OK, works on sane cases. Now check whether non-existent headers 3492 # can be detected and how. 3493 cat >conftest.$ac_ext <<_ACEOF 3494/* confdefs.h. */ 3495_ACEOF 3496cat confdefs.h >>conftest.$ac_ext 3497cat >>conftest.$ac_ext <<_ACEOF 3498/* end confdefs.h. */ 3499#include <ac_nonexistent.h> 3500_ACEOF 3501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3503 ac_status=$? 3504 grep -v '^ *+' conftest.er1 >conftest.err 3505 rm -f conftest.er1 3506 cat conftest.err >&5 3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3508 (exit $ac_status); } >/dev/null; then 3509 if test -s conftest.err; then 3510 ac_cpp_err=$ac_c_preproc_warn_flag 3511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3512 else 3513 ac_cpp_err= 3514 fi 3515else 3516 ac_cpp_err=yes 3517fi 3518if test -z "$ac_cpp_err"; then 3519 # Broken: success on invalid input. 3520continue 3521else 3522 echo "$as_me: failed program was:" >&5 3523sed 's/^/| /' conftest.$ac_ext >&5 3524 3525 # Passes both tests. 3526ac_preproc_ok=: 3527break 3528fi 3529rm -f conftest.err conftest.$ac_ext 3530 3531done 3532# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3533rm -f conftest.err conftest.$ac_ext 3534if $ac_preproc_ok; then 3535 break 3536fi 3537 3538 done 3539 ac_cv_prog_CPP=$CPP 3540 3541fi 3542 CPP=$ac_cv_prog_CPP 3543else 3544 ac_cv_prog_CPP=$CPP 3545fi 3546echo "$as_me:$LINENO: result: $CPP" >&5 3547echo "${ECHO_T}$CPP" >&6 3548ac_preproc_ok=false 3549for ac_c_preproc_warn_flag in '' yes 3550do 3551 # Use a header file that comes with gcc, so configuring glibc 3552 # with a fresh cross-compiler works. 3553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3554 # <limits.h> exists even on freestanding compilers. 3555 # On the NeXT, cc -E runs the code through the compiler's parser, 3556 # not just through cpp. "Syntax error" is here to catch this case. 3557 cat >conftest.$ac_ext <<_ACEOF 3558/* confdefs.h. */ 3559_ACEOF 3560cat confdefs.h >>conftest.$ac_ext 3561cat >>conftest.$ac_ext <<_ACEOF 3562/* end confdefs.h. */ 3563#ifdef __STDC__ 3564# include <limits.h> 3565#else 3566# include <assert.h> 3567#endif 3568 Syntax error 3569_ACEOF 3570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3572 ac_status=$? 3573 grep -v '^ *+' conftest.er1 >conftest.err 3574 rm -f conftest.er1 3575 cat conftest.err >&5 3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3577 (exit $ac_status); } >/dev/null; then 3578 if test -s conftest.err; then 3579 ac_cpp_err=$ac_c_preproc_warn_flag 3580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3581 else 3582 ac_cpp_err= 3583 fi 3584else 3585 ac_cpp_err=yes 3586fi 3587if test -z "$ac_cpp_err"; then 3588 : 3589else 3590 echo "$as_me: failed program was:" >&5 3591sed 's/^/| /' conftest.$ac_ext >&5 3592 3593 # Broken: fails on valid input. 3594continue 3595fi 3596rm -f conftest.err conftest.$ac_ext 3597 3598 # OK, works on sane cases. Now check whether non-existent headers 3599 # can be detected and how. 3600 cat >conftest.$ac_ext <<_ACEOF 3601/* confdefs.h. */ 3602_ACEOF 3603cat confdefs.h >>conftest.$ac_ext 3604cat >>conftest.$ac_ext <<_ACEOF 3605/* end confdefs.h. */ 3606#include <ac_nonexistent.h> 3607_ACEOF 3608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3610 ac_status=$? 3611 grep -v '^ *+' conftest.er1 >conftest.err 3612 rm -f conftest.er1 3613 cat conftest.err >&5 3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 (exit $ac_status); } >/dev/null; then 3616 if test -s conftest.err; then 3617 ac_cpp_err=$ac_c_preproc_warn_flag 3618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3619 else 3620 ac_cpp_err= 3621 fi 3622else 3623 ac_cpp_err=yes 3624fi 3625if test -z "$ac_cpp_err"; then 3626 # Broken: success on invalid input. 3627continue 3628else 3629 echo "$as_me: failed program was:" >&5 3630sed 's/^/| /' conftest.$ac_ext >&5 3631 3632 # Passes both tests. 3633ac_preproc_ok=: 3634break 3635fi 3636rm -f conftest.err conftest.$ac_ext 3637 3638done 3639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3640rm -f conftest.err conftest.$ac_ext 3641if $ac_preproc_ok; then 3642 : 3643else 3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3645See \`config.log' for more details." >&5 3646echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3647See \`config.log' for more details." >&2;} 3648 { (exit 1); exit 1; }; } 3649fi 3650 3651ac_ext=c 3652ac_cpp='$CPP $CPPFLAGS' 3653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3655ac_compiler_gnu=$ac_cv_c_compiler_gnu 3656 3657ac_ext=c 3658ac_cpp='$CPP $CPPFLAGS' 3659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3661ac_compiler_gnu=$ac_cv_c_compiler_gnu 3662 3663 3664echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3665echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3666if test "${ac_cv_c_const+set}" = set; then 3667 echo $ECHO_N "(cached) $ECHO_C" >&6 3668else 3669 cat >conftest.$ac_ext <<_ACEOF 3670/* confdefs.h. */ 3671_ACEOF 3672cat confdefs.h >>conftest.$ac_ext 3673cat >>conftest.$ac_ext <<_ACEOF 3674/* end confdefs.h. */ 3675 3676int 3677main () 3678{ 3679/* FIXME: Include the comments suggested by Paul. */ 3680#ifndef __cplusplus 3681 /* Ultrix mips cc rejects this. */ 3682 typedef int charset[2]; 3683 const charset x; 3684 /* SunOS 4.1.1 cc rejects this. */ 3685 char const *const *ccp; 3686 char **p; 3687 /* NEC SVR4.0.2 mips cc rejects this. */ 3688 struct point {int x, y;}; 3689 static struct point const zero = {0,0}; 3690 /* AIX XL C 1.02.0.0 rejects this. 3691 It does not let you subtract one const X* pointer from another in 3692 an arm of an if-expression whose if-part is not a constant 3693 expression */ 3694 const char *g = "string"; 3695 ccp = &g + (g ? g-g : 0); 3696 /* HPUX 7.0 cc rejects these. */ 3697 ++ccp; 3698 p = (char**) ccp; 3699 ccp = (char const *const *) p; 3700 { /* SCO 3.2v4 cc rejects this. */ 3701 char *t; 3702 char const *s = 0 ? (char *) 0 : (char const *) 0; 3703 3704 *t++ = 0; 3705 } 3706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3707 int x[] = {25, 17}; 3708 const int *foo = &x[0]; 3709 ++foo; 3710 } 3711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3712 typedef const int *iptr; 3713 iptr p = 0; 3714 ++p; 3715 } 3716 { /* AIX XL C 1.02.0.0 rejects this saying 3717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3718 struct s { int j; const int *ap[3]; }; 3719 struct s *b; b->j = 5; 3720 } 3721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3722 const int foo = 10; 3723 } 3724#endif 3725 3726 ; 3727 return 0; 3728} 3729_ACEOF 3730rm -f conftest.$ac_objext 3731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3732 (eval $ac_compile) 2>conftest.er1 3733 ac_status=$? 3734 grep -v '^ *+' conftest.er1 >conftest.err 3735 rm -f conftest.er1 3736 cat conftest.err >&5 3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3738 (exit $ac_status); } && 3739 { ac_try='test -z "$ac_c_werror_flag" 3740 || test ! -s conftest.err' 3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3742 (eval $ac_try) 2>&5 3743 ac_status=$? 3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3745 (exit $ac_status); }; } && 3746 { ac_try='test -s conftest.$ac_objext' 3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3748 (eval $ac_try) 2>&5 3749 ac_status=$? 3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3751 (exit $ac_status); }; }; then 3752 ac_cv_c_const=yes 3753else 3754 echo "$as_me: failed program was:" >&5 3755sed 's/^/| /' conftest.$ac_ext >&5 3756 3757ac_cv_c_const=no 3758fi 3759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3760fi 3761echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3762echo "${ECHO_T}$ac_cv_c_const" >&6 3763if test $ac_cv_c_const = no; then 3764 3765cat >>confdefs.h <<\_ACEOF 3766#define const 3767_ACEOF 3768 3769fi 3770 3771 3772 3773########################################################################## 3774## ## 3775## Check for standard programs ## 3776## ## 3777########################################################################## 3778# Find a good install program. We prefer a C program (faster), 3779# so one script is as good as another. But avoid the broken or 3780# incompatible versions: 3781# SysV /etc/install, /usr/sbin/install 3782# SunOS /usr/etc/install 3783# IRIX /sbin/install 3784# AIX /bin/install 3785# AmigaOS /C/install, which installs bootblocks on floppy discs 3786# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3787# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3788# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3789# OS/2's system install, which has a completely different semantic 3790# ./install, which can be erroneously created by make from ./install.sh. 3791echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3792echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3793if test -z "$INSTALL"; then 3794if test "${ac_cv_path_install+set}" = set; then 3795 echo $ECHO_N "(cached) $ECHO_C" >&6 3796else 3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3798for as_dir in $PATH 3799do 3800 IFS=$as_save_IFS 3801 test -z "$as_dir" && as_dir=. 3802 # Account for people who put trailing slashes in PATH elements. 3803case $as_dir/ in 3804 ./ | .// | /cC/* | \ 3805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3806 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3807 /usr/ucb/* ) ;; 3808 *) 3809 # OSF1 and SCO ODT 3.0 have their own names for install. 3810 # Don't use installbsd from OSF since it installs stuff as root 3811 # by default. 3812 for ac_prog in ginstall scoinst install; do 3813 for ac_exec_ext in '' $ac_executable_extensions; do 3814 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3815 if test $ac_prog = install && 3816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3817 # AIX install. It has an incompatible calling convention. 3818 : 3819 elif test $ac_prog = install && 3820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3821 # program-specific install script used by HP pwplus--don't use. 3822 : 3823 else 3824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3825 break 3 3826 fi 3827 fi 3828 done 3829 done 3830 ;; 3831esac 3832done 3833 3834 3835fi 3836 if test "${ac_cv_path_install+set}" = set; then 3837 INSTALL=$ac_cv_path_install 3838 else 3839 # As a last resort, use the slow shell script. We don't cache a 3840 # path for INSTALL within a source directory, because that will 3841 # break other packages using the cache if that directory is 3842 # removed, or if the path is relative. 3843 INSTALL=$ac_install_sh 3844 fi 3845fi 3846echo "$as_me:$LINENO: result: $INSTALL" >&5 3847echo "${ECHO_T}$INSTALL" >&6 3848 3849# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3850# It thinks the first close brace ends the variable substitution. 3851test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3852 3853test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3854 3855test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3856 3857echo "$as_me:$LINENO: checking whether ln -s works" >&5 3858echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3859LN_S=$as_ln_s 3860if test "$LN_S" = "ln -s"; then 3861 echo "$as_me:$LINENO: result: yes" >&5 3862echo "${ECHO_T}yes" >&6 3863else 3864 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3865echo "${ECHO_T}no, using $LN_S" >&6 3866fi 3867 3868echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3869echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3870set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3871if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3872 echo $ECHO_N "(cached) $ECHO_C" >&6 3873else 3874 cat >conftest.make <<\_ACEOF 3875all: 3876 @echo 'ac_maketemp="$(MAKE)"' 3877_ACEOF 3878# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3879eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3880if test -n "$ac_maketemp"; then 3881 eval ac_cv_prog_make_${ac_make}_set=yes 3882else 3883 eval ac_cv_prog_make_${ac_make}_set=no 3884fi 3885rm -f conftest.make 3886fi 3887if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3888 echo "$as_me:$LINENO: result: yes" >&5 3889echo "${ECHO_T}yes" >&6 3890 SET_MAKE= 3891else 3892 echo "$as_me:$LINENO: result: no" >&5 3893echo "${ECHO_T}no" >&6 3894 SET_MAKE="MAKE=${MAKE-make}" 3895fi 3896 3897 3898 3899# Check whether --enable-shared or --disable-shared was given. 3900if test "${enable_shared+set}" = set; then 3901 enableval="$enable_shared" 3902 p=${PACKAGE-default} 3903 case $enableval in 3904 yes) enable_shared=yes ;; 3905 no) enable_shared=no ;; 3906 *) 3907 enable_shared=no 3908 # Look at the argument we got. We use all the common list separators. 3909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3910 for pkg in $enableval; do 3911 IFS="$lt_save_ifs" 3912 if test "X$pkg" = "X$p"; then 3913 enable_shared=yes 3914 fi 3915 done 3916 IFS="$lt_save_ifs" 3917 ;; 3918 esac 3919else 3920 enable_shared=yes 3921fi; 3922 3923# Check whether --enable-static or --disable-static was given. 3924if test "${enable_static+set}" = set; then 3925 enableval="$enable_static" 3926 p=${PACKAGE-default} 3927 case $enableval in 3928 yes) enable_static=yes ;; 3929 no) enable_static=no ;; 3930 *) 3931 enable_static=no 3932 # Look at the argument we got. We use all the common list separators. 3933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3934 for pkg in $enableval; do 3935 IFS="$lt_save_ifs" 3936 if test "X$pkg" = "X$p"; then 3937 enable_static=yes 3938 fi 3939 done 3940 IFS="$lt_save_ifs" 3941 ;; 3942 esac 3943else 3944 enable_static=yes 3945fi; 3946 3947# Check whether --enable-fast-install or --disable-fast-install was given. 3948if test "${enable_fast_install+set}" = set; then 3949 enableval="$enable_fast_install" 3950 p=${PACKAGE-default} 3951 case $enableval in 3952 yes) enable_fast_install=yes ;; 3953 no) enable_fast_install=no ;; 3954 *) 3955 enable_fast_install=no 3956 # Look at the argument we got. We use all the common list separators. 3957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3958 for pkg in $enableval; do 3959 IFS="$lt_save_ifs" 3960 if test "X$pkg" = "X$p"; then 3961 enable_fast_install=yes 3962 fi 3963 done 3964 IFS="$lt_save_ifs" 3965 ;; 3966 esac 3967else 3968 enable_fast_install=yes 3969fi; 3970 3971echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3972echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3973if test "${lt_cv_path_SED+set}" = set; then 3974 echo $ECHO_N "(cached) $ECHO_C" >&6 3975else 3976 # Loop through the user's path and test for sed and gsed. 3977# Then use that list of sed's as ones to test for truncation. 3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3979for as_dir in $PATH 3980do 3981 IFS=$as_save_IFS 3982 test -z "$as_dir" && as_dir=. 3983 for lt_ac_prog in sed gsed; do 3984 for ac_exec_ext in '' $ac_executable_extensions; do 3985 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3986 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3987 fi 3988 done 3989 done 3990done 3991lt_ac_max=0 3992lt_ac_count=0 3993# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3994# along with /bin/sed that truncates output. 3995for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3996 test ! -f $lt_ac_sed && continue 3997 cat /dev/null > conftest.in 3998 lt_ac_count=0 3999 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4000 # Check for GNU sed and select it if it is found. 4001 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4002 lt_cv_path_SED=$lt_ac_sed 4003 break 4004 fi 4005 while true; do 4006 cat conftest.in conftest.in >conftest.tmp 4007 mv conftest.tmp conftest.in 4008 cp conftest.in conftest.nl 4009 echo >>conftest.nl 4010 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4011 cmp -s conftest.out conftest.nl || break 4012 # 10000 chars as input seems more than enough 4013 test $lt_ac_count -gt 10 && break 4014 lt_ac_count=`expr $lt_ac_count + 1` 4015 if test $lt_ac_count -gt $lt_ac_max; then 4016 lt_ac_max=$lt_ac_count 4017 lt_cv_path_SED=$lt_ac_sed 4018 fi 4019 done 4020done 4021 4022fi 4023 4024SED=$lt_cv_path_SED 4025echo "$as_me:$LINENO: result: $SED" >&5 4026echo "${ECHO_T}$SED" >&6 4027 4028echo "$as_me:$LINENO: checking for egrep" >&5 4029echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4030if test "${ac_cv_prog_egrep+set}" = set; then 4031 echo $ECHO_N "(cached) $ECHO_C" >&6 4032else 4033 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4034 then ac_cv_prog_egrep='grep -E' 4035 else ac_cv_prog_egrep='egrep' 4036 fi 4037fi 4038echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4039echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4040 EGREP=$ac_cv_prog_egrep 4041 4042 4043 4044# Check whether --with-gnu-ld or --without-gnu-ld was given. 4045if test "${with_gnu_ld+set}" = set; then 4046 withval="$with_gnu_ld" 4047 test "$withval" = no || with_gnu_ld=yes 4048else 4049 with_gnu_ld=no 4050fi; 4051ac_prog=ld 4052if test "$GCC" = yes; then 4053 # Check if gcc -print-prog-name=ld gives a path. 4054 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4055echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 4056 case $host in 4057 *-*-mingw*) 4058 # gcc leaves a trailing carriage return which upsets mingw 4059 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4060 *) 4061 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4062 esac 4063 case $ac_prog in 4064 # Accept absolute paths. 4065 [\\/]* | ?:[\\/]*) 4066 re_direlt='/[^/][^/]*/\.\./' 4067 # Canonicalize the pathname of ld 4068 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4069 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4070 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4071 done 4072 test -z "$LD" && LD="$ac_prog" 4073 ;; 4074 "") 4075 # If it fails, then pretend we aren't using GCC. 4076 ac_prog=ld 4077 ;; 4078 *) 4079 # If it is relative, then search for the first ld in PATH. 4080 with_gnu_ld=unknown 4081 ;; 4082 esac 4083elif test "$with_gnu_ld" = yes; then 4084 echo "$as_me:$LINENO: checking for GNU ld" >&5 4085echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4086else 4087 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4088echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4089fi 4090if test "${lt_cv_path_LD+set}" = set; then 4091 echo $ECHO_N "(cached) $ECHO_C" >&6 4092else 4093 if test -z "$LD"; then 4094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4095 for ac_dir in $PATH; do 4096 IFS="$lt_save_ifs" 4097 test -z "$ac_dir" && ac_dir=. 4098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4099 lt_cv_path_LD="$ac_dir/$ac_prog" 4100 # Check to see if the program is GNU ld. I'd rather use --version, 4101 # but apparently some variants of GNU ld only accept -v. 4102 # Break only if it was the GNU/non-GNU ld that we prefer. 4103 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4104 *GNU* | *'with BFD'*) 4105 test "$with_gnu_ld" != no && break 4106 ;; 4107 *) 4108 test "$with_gnu_ld" != yes && break 4109 ;; 4110 esac 4111 fi 4112 done 4113 IFS="$lt_save_ifs" 4114else 4115 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4116fi 4117fi 4118 4119LD="$lt_cv_path_LD" 4120if test -n "$LD"; then 4121 echo "$as_me:$LINENO: result: $LD" >&5 4122echo "${ECHO_T}$LD" >&6 4123else 4124 echo "$as_me:$LINENO: result: no" >&5 4125echo "${ECHO_T}no" >&6 4126fi 4127test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4128echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4129 { (exit 1); exit 1; }; } 4130echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4131echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4132if test "${lt_cv_prog_gnu_ld+set}" = set; then 4133 echo $ECHO_N "(cached) $ECHO_C" >&6 4134else 4135 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4136case `$LD -v 2>&1 </dev/null` in 4137*GNU* | *'with BFD'*) 4138 lt_cv_prog_gnu_ld=yes 4139 ;; 4140*) 4141 lt_cv_prog_gnu_ld=no 4142 ;; 4143esac 4144fi 4145echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4146echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4147with_gnu_ld=$lt_cv_prog_gnu_ld 4148 4149 4150echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4151echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4152if test "${lt_cv_ld_reload_flag+set}" = set; then 4153 echo $ECHO_N "(cached) $ECHO_C" >&6 4154else 4155 lt_cv_ld_reload_flag='-r' 4156fi 4157echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4158echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4159reload_flag=$lt_cv_ld_reload_flag 4160case $reload_flag in 4161"" | " "*) ;; 4162*) reload_flag=" $reload_flag" ;; 4163esac 4164reload_cmds='$LD$reload_flag -o $output$reload_objs' 4165case $host_os in 4166 darwin*) 4167 if test "$GCC" = yes; then 4168 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 4169 else 4170 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4171 fi 4172 ;; 4173esac 4174 4175echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4176echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4177if test "${lt_cv_path_NM+set}" = set; then 4178 echo $ECHO_N "(cached) $ECHO_C" >&6 4179else 4180 if test -n "$NM"; then 4181 # Let the user override the test. 4182 lt_cv_path_NM="$NM" 4183else 4184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4185 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4186 IFS="$lt_save_ifs" 4187 test -z "$ac_dir" && ac_dir=. 4188 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 4189 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4190 # Check to see if the nm accepts a BSD-compat flag. 4191 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4192 # nm: unknown option "B" ignored 4193 # Tru64's nm complains that /dev/null is an invalid object file 4194 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4195 */dev/null* | *'Invalid file or object type'*) 4196 lt_cv_path_NM="$tmp_nm -B" 4197 break 4198 ;; 4199 *) 4200 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4201 */dev/null*) 4202 lt_cv_path_NM="$tmp_nm -p" 4203 break 4204 ;; 4205 *) 4206 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4207 continue # so that we can try to find one that supports BSD flags 4208 ;; 4209 esac 4210 esac 4211 fi 4212 done 4213 IFS="$lt_save_ifs" 4214 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4215fi 4216fi 4217echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4218echo "${ECHO_T}$lt_cv_path_NM" >&6 4219NM="$lt_cv_path_NM" 4220 4221echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4222echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 4223if test "${lt_cv_deplibs_check_method+set}" = set; then 4224 echo $ECHO_N "(cached) $ECHO_C" >&6 4225else 4226 lt_cv_file_magic_cmd='$MAGIC_CMD' 4227lt_cv_file_magic_test_file= 4228lt_cv_deplibs_check_method='unknown' 4229# Need to set the preceding variable on all platforms that support 4230# interlibrary dependencies. 4231# 'none' -- dependencies not supported. 4232# `unknown' -- same as none, but documents that we really don't know. 4233# 'pass_all' -- all dependencies passed with no checks. 4234# 'test_compile' -- check by making test program. 4235# 'file_magic [[regex]]' -- check by looking for files in library path 4236# which responds to the $file_magic_cmd with a given extended regex. 4237# If you have `file' or equivalent on your system and you're not sure 4238# whether `pass_all' will *always* work, you probably want this one. 4239 4240case $host_os in 4241aix4* | aix5*) 4242 lt_cv_deplibs_check_method=pass_all 4243 ;; 4244 4245beos*) 4246 lt_cv_deplibs_check_method=pass_all 4247 ;; 4248 4249bsdi[45]*) 4250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4251 lt_cv_file_magic_cmd='/usr/bin/file -L' 4252 lt_cv_file_magic_test_file=/shlib/libc.so 4253 ;; 4254 4255cygwin*) 4256 # func_win32_libid is a shell function defined in ltmain.sh 4257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4258 lt_cv_file_magic_cmd='func_win32_libid' 4259 ;; 4260 4261mingw* | pw32*) 4262 # Base MSYS/MinGW do not provide the 'file' command needed by 4263 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4264 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4265 lt_cv_file_magic_cmd='$OBJDUMP -f' 4266 ;; 4267 4268darwin* | rhapsody*) 4269 lt_cv_deplibs_check_method=pass_all 4270 ;; 4271 4272freebsd* | kfreebsd*-gnu | dragonfly*) 4273 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4274 case $host_cpu in 4275 i*86 ) 4276 # Not sure whether the presence of OpenBSD here was a mistake. 4277 # Let's accept both of them until this is cleared up. 4278 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4279 lt_cv_file_magic_cmd=/usr/bin/file 4280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4281 ;; 4282 esac 4283 else 4284 lt_cv_deplibs_check_method=pass_all 4285 fi 4286 ;; 4287 4288gnu*) 4289 lt_cv_deplibs_check_method=pass_all 4290 ;; 4291 4292hpux10.20* | hpux11*) 4293 lt_cv_file_magic_cmd=/usr/bin/file 4294 case $host_cpu in 4295 ia64*) 4296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4297 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4298 ;; 4299 hppa*64*) 4300 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]' 4301 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4302 ;; 4303 *) 4304 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4305 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4306 ;; 4307 esac 4308 ;; 4309 4310irix5* | irix6* | nonstopux*) 4311 case $LD in 4312 *-32|*"-32 ") libmagic=32-bit;; 4313 *-n32|*"-n32 ") libmagic=N32;; 4314 *-64|*"-64 ") libmagic=64-bit;; 4315 *) libmagic=never-match;; 4316 esac 4317 lt_cv_deplibs_check_method=pass_all 4318 ;; 4319 4320# This must be Linux ELF. 4321linux*) 4322 lt_cv_deplibs_check_method=pass_all 4323 ;; 4324 4325netbsd*) 4326 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4328 else 4329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4330 fi 4331 ;; 4332 4333newos6*) 4334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4335 lt_cv_file_magic_cmd=/usr/bin/file 4336 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4337 ;; 4338 4339nto-qnx*) 4340 lt_cv_deplibs_check_method=unknown 4341 ;; 4342 4343openbsd*) 4344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4346 else 4347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4348 fi 4349 ;; 4350 4351osf3* | osf4* | osf5*) 4352 lt_cv_deplibs_check_method=pass_all 4353 ;; 4354 4355sco3.2v5*) 4356 lt_cv_deplibs_check_method=pass_all 4357 ;; 4358 4359solaris*) 4360 lt_cv_deplibs_check_method=pass_all 4361 ;; 4362 4363sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4364 case $host_vendor in 4365 motorola) 4366 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]' 4367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4368 ;; 4369 ncr) 4370 lt_cv_deplibs_check_method=pass_all 4371 ;; 4372 sequent) 4373 lt_cv_file_magic_cmd='/bin/file' 4374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4375 ;; 4376 sni) 4377 lt_cv_file_magic_cmd='/bin/file' 4378 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4379 lt_cv_file_magic_test_file=/lib/libc.so 4380 ;; 4381 siemens) 4382 lt_cv_deplibs_check_method=pass_all 4383 ;; 4384 esac 4385 ;; 4386 4387sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4388 lt_cv_deplibs_check_method=pass_all 4389 ;; 4390esac 4391 4392fi 4393echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4394echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4395file_magic_cmd=$lt_cv_file_magic_cmd 4396deplibs_check_method=$lt_cv_deplibs_check_method 4397test -z "$deplibs_check_method" && deplibs_check_method=unknown 4398 4399 4400 4401 4402# If no C compiler was specified, use CC. 4403LTCC=${LTCC-"$CC"} 4404 4405# Allow CC to be a program name with arguments. 4406compiler=$CC 4407 4408# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4409if test "${enable_libtool_lock+set}" = set; then 4410 enableval="$enable_libtool_lock" 4411 4412fi; 4413test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4414 4415# Some flags need to be propagated to the compiler or linker for good 4416# libtool support. 4417case $host in 4418ia64-*-hpux*) 4419 # Find out which ABI we are using. 4420 echo 'int i;' > conftest.$ac_ext 4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4422 (eval $ac_compile) 2>&5 4423 ac_status=$? 4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4425 (exit $ac_status); }; then 4426 case `/usr/bin/file conftest.$ac_objext` in 4427 *ELF-32*) 4428 HPUX_IA64_MODE="32" 4429 ;; 4430 *ELF-64*) 4431 HPUX_IA64_MODE="64" 4432 ;; 4433 esac 4434 fi 4435 rm -rf conftest* 4436 ;; 4437*-*-irix6*) 4438 # Find out which ABI we are using. 4439 echo '#line 4439 "configure"' > conftest.$ac_ext 4440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4441 (eval $ac_compile) 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4444 (exit $ac_status); }; then 4445 if test "$lt_cv_prog_gnu_ld" = yes; then 4446 case `/usr/bin/file conftest.$ac_objext` in 4447 *32-bit*) 4448 LD="${LD-ld} -melf32bsmip" 4449 ;; 4450 *N32*) 4451 LD="${LD-ld} -melf32bmipn32" 4452 ;; 4453 *64-bit*) 4454 LD="${LD-ld} -melf64bmip" 4455 ;; 4456 esac 4457 else 4458 case `/usr/bin/file conftest.$ac_objext` in 4459 *32-bit*) 4460 LD="${LD-ld} -32" 4461 ;; 4462 *N32*) 4463 LD="${LD-ld} -n32" 4464 ;; 4465 *64-bit*) 4466 LD="${LD-ld} -64" 4467 ;; 4468 esac 4469 fi 4470 fi 4471 rm -rf conftest* 4472 ;; 4473 4474x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4475 # Find out which ABI we are using. 4476 echo 'int i;' > conftest.$ac_ext 4477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4478 (eval $ac_compile) 2>&5 4479 ac_status=$? 4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4481 (exit $ac_status); }; then 4482 case `/usr/bin/file conftest.o` in 4483 *32-bit*) 4484 case $host in 4485 x86_64-*linux*) 4486 LD="${LD-ld} -m elf_i386" 4487 ;; 4488 ppc64-*linux*|powerpc64-*linux*) 4489 LD="${LD-ld} -m elf32ppclinux" 4490 ;; 4491 s390x-*linux*) 4492 LD="${LD-ld} -m elf_s390" 4493 ;; 4494 sparc64-*linux*) 4495 LD="${LD-ld} -m elf32_sparc" 4496 ;; 4497 esac 4498 ;; 4499 *64-bit*) 4500 case $host in 4501 x86_64-*linux*) 4502 LD="${LD-ld} -m elf_x86_64" 4503 ;; 4504 ppc*-*linux*|powerpc*-*linux*) 4505 LD="${LD-ld} -m elf64ppc" 4506 ;; 4507 s390*-*linux*) 4508 LD="${LD-ld} -m elf64_s390" 4509 ;; 4510 sparc*-*linux*) 4511 LD="${LD-ld} -m elf64_sparc" 4512 ;; 4513 esac 4514 ;; 4515 esac 4516 fi 4517 rm -rf conftest* 4518 ;; 4519 4520*-*-sco3.2v5*) 4521 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4522 SAVE_CFLAGS="$CFLAGS" 4523 CFLAGS="$CFLAGS -belf" 4524 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4525echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4526if test "${lt_cv_cc_needs_belf+set}" = set; then 4527 echo $ECHO_N "(cached) $ECHO_C" >&6 4528else 4529 ac_ext=c 4530ac_cpp='$CPP $CPPFLAGS' 4531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4533ac_compiler_gnu=$ac_cv_c_compiler_gnu 4534 4535 cat >conftest.$ac_ext <<_ACEOF 4536/* confdefs.h. */ 4537_ACEOF 4538cat confdefs.h >>conftest.$ac_ext 4539cat >>conftest.$ac_ext <<_ACEOF 4540/* end confdefs.h. */ 4541 4542int 4543main () 4544{ 4545 4546 ; 4547 return 0; 4548} 4549_ACEOF 4550rm -f conftest.$ac_objext conftest$ac_exeext 4551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4552 (eval $ac_link) 2>conftest.er1 4553 ac_status=$? 4554 grep -v '^ *+' conftest.er1 >conftest.err 4555 rm -f conftest.er1 4556 cat conftest.err >&5 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); } && 4559 { ac_try='test -z "$ac_c_werror_flag" 4560 || test ! -s conftest.err' 4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4562 (eval $ac_try) 2>&5 4563 ac_status=$? 4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4565 (exit $ac_status); }; } && 4566 { ac_try='test -s conftest$ac_exeext' 4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4568 (eval $ac_try) 2>&5 4569 ac_status=$? 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4571 (exit $ac_status); }; }; then 4572 lt_cv_cc_needs_belf=yes 4573else 4574 echo "$as_me: failed program was:" >&5 4575sed 's/^/| /' conftest.$ac_ext >&5 4576 4577lt_cv_cc_needs_belf=no 4578fi 4579rm -f conftest.err conftest.$ac_objext \ 4580 conftest$ac_exeext conftest.$ac_ext 4581 ac_ext=c 4582ac_cpp='$CPP $CPPFLAGS' 4583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4585ac_compiler_gnu=$ac_cv_c_compiler_gnu 4586 4587fi 4588echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4589echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4590 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4591 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4592 CFLAGS="$SAVE_CFLAGS" 4593 fi 4594 ;; 4595 4596esac 4597 4598need_locks="$enable_libtool_lock" 4599 4600 4601 4602echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4603echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4604if test "${ac_cv_header_stdc+set}" = set; then 4605 echo $ECHO_N "(cached) $ECHO_C" >&6 4606else 4607 cat >conftest.$ac_ext <<_ACEOF 4608/* confdefs.h. */ 4609_ACEOF 4610cat confdefs.h >>conftest.$ac_ext 4611cat >>conftest.$ac_ext <<_ACEOF 4612/* end confdefs.h. */ 4613#include <stdlib.h> 4614#include <stdarg.h> 4615#include <string.h> 4616#include <float.h> 4617 4618int 4619main () 4620{ 4621 4622 ; 4623 return 0; 4624} 4625_ACEOF 4626rm -f conftest.$ac_objext 4627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4628 (eval $ac_compile) 2>conftest.er1 4629 ac_status=$? 4630 grep -v '^ *+' conftest.er1 >conftest.err 4631 rm -f conftest.er1 4632 cat conftest.err >&5 4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4634 (exit $ac_status); } && 4635 { ac_try='test -z "$ac_c_werror_flag" 4636 || test ! -s conftest.err' 4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4638 (eval $ac_try) 2>&5 4639 ac_status=$? 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); }; } && 4642 { ac_try='test -s conftest.$ac_objext' 4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4644 (eval $ac_try) 2>&5 4645 ac_status=$? 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4647 (exit $ac_status); }; }; then 4648 ac_cv_header_stdc=yes 4649else 4650 echo "$as_me: failed program was:" >&5 4651sed 's/^/| /' conftest.$ac_ext >&5 4652 4653ac_cv_header_stdc=no 4654fi 4655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4656 4657if test $ac_cv_header_stdc = yes; then 4658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4659 cat >conftest.$ac_ext <<_ACEOF 4660/* confdefs.h. */ 4661_ACEOF 4662cat confdefs.h >>conftest.$ac_ext 4663cat >>conftest.$ac_ext <<_ACEOF 4664/* end confdefs.h. */ 4665#include <string.h> 4666 4667_ACEOF 4668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4669 $EGREP "memchr" >/dev/null 2>&1; then 4670 : 4671else 4672 ac_cv_header_stdc=no 4673fi 4674rm -f conftest* 4675 4676fi 4677 4678if test $ac_cv_header_stdc = yes; then 4679 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4680 cat >conftest.$ac_ext <<_ACEOF 4681/* confdefs.h. */ 4682_ACEOF 4683cat confdefs.h >>conftest.$ac_ext 4684cat >>conftest.$ac_ext <<_ACEOF 4685/* end confdefs.h. */ 4686#include <stdlib.h> 4687 4688_ACEOF 4689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4690 $EGREP "free" >/dev/null 2>&1; then 4691 : 4692else 4693 ac_cv_header_stdc=no 4694fi 4695rm -f conftest* 4696 4697fi 4698 4699if test $ac_cv_header_stdc = yes; then 4700 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4701 if test "$cross_compiling" = yes; then 4702 : 4703else 4704 cat >conftest.$ac_ext <<_ACEOF 4705/* confdefs.h. */ 4706_ACEOF 4707cat confdefs.h >>conftest.$ac_ext 4708cat >>conftest.$ac_ext <<_ACEOF 4709/* end confdefs.h. */ 4710#include <ctype.h> 4711#if ((' ' & 0x0FF) == 0x020) 4712# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4713# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4714#else 4715# define ISLOWER(c) \ 4716 (('a' <= (c) && (c) <= 'i') \ 4717 || ('j' <= (c) && (c) <= 'r') \ 4718 || ('s' <= (c) && (c) <= 'z')) 4719# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4720#endif 4721 4722#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4723int 4724main () 4725{ 4726 int i; 4727 for (i = 0; i < 256; i++) 4728 if (XOR (islower (i), ISLOWER (i)) 4729 || toupper (i) != TOUPPER (i)) 4730 exit(2); 4731 exit (0); 4732} 4733_ACEOF 4734rm -f conftest$ac_exeext 4735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4736 (eval $ac_link) 2>&5 4737 ac_status=$? 4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4741 (eval $ac_try) 2>&5 4742 ac_status=$? 4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4744 (exit $ac_status); }; }; then 4745 : 4746else 4747 echo "$as_me: program exited with status $ac_status" >&5 4748echo "$as_me: failed program was:" >&5 4749sed 's/^/| /' conftest.$ac_ext >&5 4750 4751( exit $ac_status ) 4752ac_cv_header_stdc=no 4753fi 4754rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4755fi 4756fi 4757fi 4758echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4759echo "${ECHO_T}$ac_cv_header_stdc" >&6 4760if test $ac_cv_header_stdc = yes; then 4761 4762cat >>confdefs.h <<\_ACEOF 4763#define STDC_HEADERS 1 4764_ACEOF 4765 4766fi 4767 4768# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4779 inttypes.h stdint.h unistd.h 4780do 4781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4782echo "$as_me:$LINENO: checking for $ac_header" >&5 4783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4784if eval "test \"\${$as_ac_Header+set}\" = set"; then 4785 echo $ECHO_N "(cached) $ECHO_C" >&6 4786else 4787 cat >conftest.$ac_ext <<_ACEOF 4788/* confdefs.h. */ 4789_ACEOF 4790cat confdefs.h >>conftest.$ac_ext 4791cat >>conftest.$ac_ext <<_ACEOF 4792/* end confdefs.h. */ 4793$ac_includes_default 4794 4795#include <$ac_header> 4796_ACEOF 4797rm -f conftest.$ac_objext 4798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4799 (eval $ac_compile) 2>conftest.er1 4800 ac_status=$? 4801 grep -v '^ *+' conftest.er1 >conftest.err 4802 rm -f conftest.er1 4803 cat conftest.err >&5 4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 (exit $ac_status); } && 4806 { ac_try='test -z "$ac_c_werror_flag" 4807 || test ! -s conftest.err' 4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4809 (eval $ac_try) 2>&5 4810 ac_status=$? 4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4812 (exit $ac_status); }; } && 4813 { ac_try='test -s conftest.$ac_objext' 4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4815 (eval $ac_try) 2>&5 4816 ac_status=$? 4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); }; }; then 4819 eval "$as_ac_Header=yes" 4820else 4821 echo "$as_me: failed program was:" >&5 4822sed 's/^/| /' conftest.$ac_ext >&5 4823 4824eval "$as_ac_Header=no" 4825fi 4826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4827fi 4828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4830if test `eval echo '${'$as_ac_Header'}'` = yes; then 4831 cat >>confdefs.h <<_ACEOF 4832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4833_ACEOF 4834 4835fi 4836 4837done 4838 4839 4840 4841for ac_header in dlfcn.h 4842do 4843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4844if eval "test \"\${$as_ac_Header+set}\" = set"; then 4845 echo "$as_me:$LINENO: checking for $ac_header" >&5 4846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4847if eval "test \"\${$as_ac_Header+set}\" = set"; then 4848 echo $ECHO_N "(cached) $ECHO_C" >&6 4849fi 4850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4852else 4853 # Is the header compilable? 4854echo "$as_me:$LINENO: checking $ac_header usability" >&5 4855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4856cat >conftest.$ac_ext <<_ACEOF 4857/* confdefs.h. */ 4858_ACEOF 4859cat confdefs.h >>conftest.$ac_ext 4860cat >>conftest.$ac_ext <<_ACEOF 4861/* end confdefs.h. */ 4862$ac_includes_default 4863#include <$ac_header> 4864_ACEOF 4865rm -f conftest.$ac_objext 4866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4867 (eval $ac_compile) 2>conftest.er1 4868 ac_status=$? 4869 grep -v '^ *+' conftest.er1 >conftest.err 4870 rm -f conftest.er1 4871 cat conftest.err >&5 4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4873 (exit $ac_status); } && 4874 { ac_try='test -z "$ac_c_werror_flag" 4875 || test ! -s conftest.err' 4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4877 (eval $ac_try) 2>&5 4878 ac_status=$? 4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4880 (exit $ac_status); }; } && 4881 { ac_try='test -s conftest.$ac_objext' 4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4883 (eval $ac_try) 2>&5 4884 ac_status=$? 4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4886 (exit $ac_status); }; }; then 4887 ac_header_compiler=yes 4888else 4889 echo "$as_me: failed program was:" >&5 4890sed 's/^/| /' conftest.$ac_ext >&5 4891 4892ac_header_compiler=no 4893fi 4894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4895echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4896echo "${ECHO_T}$ac_header_compiler" >&6 4897 4898# Is the header present? 4899echo "$as_me:$LINENO: checking $ac_header presence" >&5 4900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4901cat >conftest.$ac_ext <<_ACEOF 4902/* confdefs.h. */ 4903_ACEOF 4904cat confdefs.h >>conftest.$ac_ext 4905cat >>conftest.$ac_ext <<_ACEOF 4906/* end confdefs.h. */ 4907#include <$ac_header> 4908_ACEOF 4909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4911 ac_status=$? 4912 grep -v '^ *+' conftest.er1 >conftest.err 4913 rm -f conftest.er1 4914 cat conftest.err >&5 4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4916 (exit $ac_status); } >/dev/null; then 4917 if test -s conftest.err; then 4918 ac_cpp_err=$ac_c_preproc_warn_flag 4919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4920 else 4921 ac_cpp_err= 4922 fi 4923else 4924 ac_cpp_err=yes 4925fi 4926if test -z "$ac_cpp_err"; then 4927 ac_header_preproc=yes 4928else 4929 echo "$as_me: failed program was:" >&5 4930sed 's/^/| /' conftest.$ac_ext >&5 4931 4932 ac_header_preproc=no 4933fi 4934rm -f conftest.err conftest.$ac_ext 4935echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4936echo "${ECHO_T}$ac_header_preproc" >&6 4937 4938# So? What about this header? 4939case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4940 yes:no: ) 4941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4942echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4944echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4945 ac_header_preproc=yes 4946 ;; 4947 no:yes:* ) 4948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4949echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4951echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4953echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4955echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4957echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4959echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4960 ( 4961 cat <<\_ASBOX 4962## ----------------------------------- ## 4963## Report this to iodbc@openlinksw.com ## 4964## ----------------------------------- ## 4965_ASBOX 4966 ) | 4967 sed "s/^/$as_me: WARNING: /" >&2 4968 ;; 4969esac 4970echo "$as_me:$LINENO: checking for $ac_header" >&5 4971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4972if eval "test \"\${$as_ac_Header+set}\" = set"; then 4973 echo $ECHO_N "(cached) $ECHO_C" >&6 4974else 4975 eval "$as_ac_Header=\$ac_header_preproc" 4976fi 4977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4979 4980fi 4981if test `eval echo '${'$as_ac_Header'}'` = yes; then 4982 cat >>confdefs.h <<_ACEOF 4983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4984_ACEOF 4985 4986fi 4987 4988done 4989 4990ac_ext=cc 4991ac_cpp='$CXXCPP $CPPFLAGS' 4992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4995if test -n "$ac_tool_prefix"; then 4996 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4997 do 4998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4999set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5000echo "$as_me:$LINENO: checking for $ac_word" >&5 5001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5002if test "${ac_cv_prog_CXX+set}" = set; then 5003 echo $ECHO_N "(cached) $ECHO_C" >&6 5004else 5005 if test -n "$CXX"; then 5006 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5007else 5008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5009for as_dir in $PATH 5010do 5011 IFS=$as_save_IFS 5012 test -z "$as_dir" && as_dir=. 5013 for ac_exec_ext in '' $ac_executable_extensions; do 5014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5015 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5017 break 2 5018 fi 5019done 5020done 5021 5022fi 5023fi 5024CXX=$ac_cv_prog_CXX 5025if test -n "$CXX"; then 5026 echo "$as_me:$LINENO: result: $CXX" >&5 5027echo "${ECHO_T}$CXX" >&6 5028else 5029 echo "$as_me:$LINENO: result: no" >&5 5030echo "${ECHO_T}no" >&6 5031fi 5032 5033 test -n "$CXX" && break 5034 done 5035fi 5036if test -z "$CXX"; then 5037 ac_ct_CXX=$CXX 5038 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 5039do 5040 # Extract the first word of "$ac_prog", so it can be a program name with args. 5041set dummy $ac_prog; ac_word=$2 5042echo "$as_me:$LINENO: checking for $ac_word" >&5 5043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5044if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5045 echo $ECHO_N "(cached) $ECHO_C" >&6 5046else 5047 if test -n "$ac_ct_CXX"; then 5048 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5049else 5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5051for as_dir in $PATH 5052do 5053 IFS=$as_save_IFS 5054 test -z "$as_dir" && as_dir=. 5055 for ac_exec_ext in '' $ac_executable_extensions; do 5056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5057 ac_cv_prog_ac_ct_CXX="$ac_prog" 5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5059 break 2 5060 fi 5061done 5062done 5063 5064fi 5065fi 5066ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5067if test -n "$ac_ct_CXX"; then 5068 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5069echo "${ECHO_T}$ac_ct_CXX" >&6 5070else 5071 echo "$as_me:$LINENO: result: no" >&5 5072echo "${ECHO_T}no" >&6 5073fi 5074 5075 test -n "$ac_ct_CXX" && break 5076done 5077test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 5078 5079 CXX=$ac_ct_CXX 5080fi 5081 5082 5083# Provide some information about the compiler. 5084echo "$as_me:$LINENO:" \ 5085 "checking for C++ compiler version" >&5 5086ac_compiler=`set X $ac_compile; echo $2` 5087{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5088 (eval $ac_compiler --version </dev/null >&5) 2>&5 5089 ac_status=$? 5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5091 (exit $ac_status); } 5092{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5093 (eval $ac_compiler -v </dev/null >&5) 2>&5 5094 ac_status=$? 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5096 (exit $ac_status); } 5097{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5098 (eval $ac_compiler -V </dev/null >&5) 2>&5 5099 ac_status=$? 5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5101 (exit $ac_status); } 5102 5103echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5104echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 5105if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5106 echo $ECHO_N "(cached) $ECHO_C" >&6 5107else 5108 cat >conftest.$ac_ext <<_ACEOF 5109/* confdefs.h. */ 5110_ACEOF 5111cat confdefs.h >>conftest.$ac_ext 5112cat >>conftest.$ac_ext <<_ACEOF 5113/* end confdefs.h. */ 5114 5115int 5116main () 5117{ 5118#ifndef __GNUC__ 5119 choke me 5120#endif 5121 5122 ; 5123 return 0; 5124} 5125_ACEOF 5126rm -f conftest.$ac_objext 5127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5128 (eval $ac_compile) 2>conftest.er1 5129 ac_status=$? 5130 grep -v '^ *+' conftest.er1 >conftest.err 5131 rm -f conftest.er1 5132 cat conftest.err >&5 5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5134 (exit $ac_status); } && 5135 { ac_try='test -z "$ac_cxx_werror_flag" 5136 || test ! -s conftest.err' 5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5138 (eval $ac_try) 2>&5 5139 ac_status=$? 5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); }; } && 5142 { ac_try='test -s conftest.$ac_objext' 5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5144 (eval $ac_try) 2>&5 5145 ac_status=$? 5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5147 (exit $ac_status); }; }; then 5148 ac_compiler_gnu=yes 5149else 5150 echo "$as_me: failed program was:" >&5 5151sed 's/^/| /' conftest.$ac_ext >&5 5152 5153ac_compiler_gnu=no 5154fi 5155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5156ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5157 5158fi 5159echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5160echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 5161GXX=`test $ac_compiler_gnu = yes && echo yes` 5162ac_test_CXXFLAGS=${CXXFLAGS+set} 5163ac_save_CXXFLAGS=$CXXFLAGS 5164CXXFLAGS="-g" 5165echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5166echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 5167if test "${ac_cv_prog_cxx_g+set}" = set; then 5168 echo $ECHO_N "(cached) $ECHO_C" >&6 5169else 5170 cat >conftest.$ac_ext <<_ACEOF 5171/* confdefs.h. */ 5172_ACEOF 5173cat confdefs.h >>conftest.$ac_ext 5174cat >>conftest.$ac_ext <<_ACEOF 5175/* end confdefs.h. */ 5176 5177int 5178main () 5179{ 5180 5181 ; 5182 return 0; 5183} 5184_ACEOF 5185rm -f conftest.$ac_objext 5186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5187 (eval $ac_compile) 2>conftest.er1 5188 ac_status=$? 5189 grep -v '^ *+' conftest.er1 >conftest.err 5190 rm -f conftest.er1 5191 cat conftest.err >&5 5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5193 (exit $ac_status); } && 5194 { ac_try='test -z "$ac_cxx_werror_flag" 5195 || test ! -s conftest.err' 5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5197 (eval $ac_try) 2>&5 5198 ac_status=$? 5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5200 (exit $ac_status); }; } && 5201 { ac_try='test -s conftest.$ac_objext' 5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5203 (eval $ac_try) 2>&5 5204 ac_status=$? 5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5206 (exit $ac_status); }; }; then 5207 ac_cv_prog_cxx_g=yes 5208else 5209 echo "$as_me: failed program was:" >&5 5210sed 's/^/| /' conftest.$ac_ext >&5 5211 5212ac_cv_prog_cxx_g=no 5213fi 5214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5215fi 5216echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5217echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 5218if test "$ac_test_CXXFLAGS" = set; then 5219 CXXFLAGS=$ac_save_CXXFLAGS 5220elif test $ac_cv_prog_cxx_g = yes; then 5221 if test "$GXX" = yes; then 5222 CXXFLAGS="-g -O2" 5223 else 5224 CXXFLAGS="-g" 5225 fi 5226else 5227 if test "$GXX" = yes; then 5228 CXXFLAGS="-O2" 5229 else 5230 CXXFLAGS= 5231 fi 5232fi 5233for ac_declaration in \ 5234 '' \ 5235 'extern "C" void std::exit (int) throw (); using std::exit;' \ 5236 'extern "C" void std::exit (int); using std::exit;' \ 5237 'extern "C" void exit (int) throw ();' \ 5238 'extern "C" void exit (int);' \ 5239 'void exit (int);' 5240do 5241 cat >conftest.$ac_ext <<_ACEOF 5242/* confdefs.h. */ 5243_ACEOF 5244cat confdefs.h >>conftest.$ac_ext 5245cat >>conftest.$ac_ext <<_ACEOF 5246/* end confdefs.h. */ 5247$ac_declaration 5248#include <stdlib.h> 5249int 5250main () 5251{ 5252exit (42); 5253 ; 5254 return 0; 5255} 5256_ACEOF 5257rm -f conftest.$ac_objext 5258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5259 (eval $ac_compile) 2>conftest.er1 5260 ac_status=$? 5261 grep -v '^ *+' conftest.er1 >conftest.err 5262 rm -f conftest.er1 5263 cat conftest.err >&5 5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5265 (exit $ac_status); } && 5266 { ac_try='test -z "$ac_cxx_werror_flag" 5267 || test ! -s conftest.err' 5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5269 (eval $ac_try) 2>&5 5270 ac_status=$? 5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5272 (exit $ac_status); }; } && 5273 { ac_try='test -s conftest.$ac_objext' 5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5275 (eval $ac_try) 2>&5 5276 ac_status=$? 5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5278 (exit $ac_status); }; }; then 5279 : 5280else 5281 echo "$as_me: failed program was:" >&5 5282sed 's/^/| /' conftest.$ac_ext >&5 5283 5284continue 5285fi 5286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5287 cat >conftest.$ac_ext <<_ACEOF 5288/* confdefs.h. */ 5289_ACEOF 5290cat confdefs.h >>conftest.$ac_ext 5291cat >>conftest.$ac_ext <<_ACEOF 5292/* end confdefs.h. */ 5293$ac_declaration 5294int 5295main () 5296{ 5297exit (42); 5298 ; 5299 return 0; 5300} 5301_ACEOF 5302rm -f conftest.$ac_objext 5303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5304 (eval $ac_compile) 2>conftest.er1 5305 ac_status=$? 5306 grep -v '^ *+' conftest.er1 >conftest.err 5307 rm -f conftest.er1 5308 cat conftest.err >&5 5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5310 (exit $ac_status); } && 5311 { ac_try='test -z "$ac_cxx_werror_flag" 5312 || test ! -s conftest.err' 5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5314 (eval $ac_try) 2>&5 5315 ac_status=$? 5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5317 (exit $ac_status); }; } && 5318 { ac_try='test -s conftest.$ac_objext' 5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5320 (eval $ac_try) 2>&5 5321 ac_status=$? 5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5323 (exit $ac_status); }; }; then 5324 break 5325else 5326 echo "$as_me: failed program was:" >&5 5327sed 's/^/| /' conftest.$ac_ext >&5 5328 5329fi 5330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5331done 5332rm -f conftest* 5333if test -n "$ac_declaration"; then 5334 echo '#ifdef __cplusplus' >>confdefs.h 5335 echo $ac_declaration >>confdefs.h 5336 echo '#endif' >>confdefs.h 5337fi 5338 5339ac_ext=cc 5340ac_cpp='$CXXCPP $CPPFLAGS' 5341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5344 5345depcc="$CXX" am_compiler_list= 5346 5347echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5348echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 5349if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5350 echo $ECHO_N "(cached) $ECHO_C" >&6 5351else 5352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5353 # We make a subdir and do the tests there. Otherwise we can end up 5354 # making bogus files that we don't know about and never remove. For 5355 # instance it was reported that on HP-UX the gcc test will end up 5356 # making a dummy file named `D' -- because `-MD' means `put the output 5357 # in D'. 5358 mkdir conftest.dir 5359 # Copy depcomp to subdir because otherwise we won't find it if we're 5360 # using a relative directory. 5361 cp "$am_depcomp" conftest.dir 5362 cd conftest.dir 5363 # We will build objects and dependencies in a subdirectory because 5364 # it helps to detect inapplicable dependency modes. For instance 5365 # both Tru64's cc and ICC support -MD to output dependencies as a 5366 # side effect of compilation, but ICC will put the dependencies in 5367 # the current directory while Tru64 will put them in the object 5368 # directory. 5369 mkdir sub 5370 5371 am_cv_CXX_dependencies_compiler_type=none 5372 if test "$am_compiler_list" = ""; then 5373 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5374 fi 5375 for depmode in $am_compiler_list; do 5376 # Setup a source with many dependencies, because some compilers 5377 # like to wrap large dependency lists on column 80 (with \), and 5378 # we should not choose a depcomp mode which is confused by this. 5379 # 5380 # We need to recreate these files for each test, as the compiler may 5381 # overwrite some of them when testing with obscure command lines. 5382 # This happens at least with the AIX C compiler. 5383 : > sub/conftest.c 5384 for i in 1 2 3 4 5 6; do 5385 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5386 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5387 # Solaris 8's {/usr,}/bin/sh. 5388 touch sub/conftst$i.h 5389 done 5390 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5391 5392 case $depmode in 5393 nosideeffect) 5394 # after this tag, mechanisms are not by side-effect, so they'll 5395 # only be used when explicitly requested 5396 if test "x$enable_dependency_tracking" = xyes; then 5397 continue 5398 else 5399 break 5400 fi 5401 ;; 5402 none) break ;; 5403 esac 5404 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5405 # mode. It turns out that the SunPro C++ compiler does not properly 5406 # handle `-M -o', and we need to detect this. 5407 if depmode=$depmode \ 5408 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5410 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5411 >/dev/null 2>conftest.err && 5412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5413 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5415 # icc doesn't choke on unknown options, it will just issue warnings 5416 # or remarks (even with -Werror). So we grep stderr for any message 5417 # that says an option was ignored or not supported. 5418 # When given -MP, icc 7.0 and 7.1 complain thusly: 5419 # icc: Command line warning: ignoring option '-M'; no argument required 5420 # The diagnosis changed in icc 8.0: 5421 # icc: Command line remark: option '-MP' not supported 5422 if (grep 'ignoring option' conftest.err || 5423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5424 am_cv_CXX_dependencies_compiler_type=$depmode 5425 break 5426 fi 5427 fi 5428 done 5429 5430 cd .. 5431 rm -rf conftest.dir 5432else 5433 am_cv_CXX_dependencies_compiler_type=none 5434fi 5435 5436fi 5437echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5438echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5439CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5440 5441 5442 5443if 5444 test "x$enable_dependency_tracking" != xno \ 5445 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5446 am__fastdepCXX_TRUE= 5447 am__fastdepCXX_FALSE='#' 5448else 5449 am__fastdepCXX_TRUE='#' 5450 am__fastdepCXX_FALSE= 5451fi 5452 5453 5454 5455 5456if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5457 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5458 (test "X$CXX" != "Xg++"))) ; then 5459 ac_ext=cc 5460ac_cpp='$CXXCPP $CPPFLAGS' 5461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5464echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5465echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5466if test -z "$CXXCPP"; then 5467 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5468 echo $ECHO_N "(cached) $ECHO_C" >&6 5469else 5470 # Double quotes because CXXCPP needs to be expanded 5471 for CXXCPP in "$CXX -E" "/lib/cpp" 5472 do 5473 ac_preproc_ok=false 5474for ac_cxx_preproc_warn_flag in '' yes 5475do 5476 # Use a header file that comes with gcc, so configuring glibc 5477 # with a fresh cross-compiler works. 5478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5479 # <limits.h> exists even on freestanding compilers. 5480 # On the NeXT, cc -E runs the code through the compiler's parser, 5481 # not just through cpp. "Syntax error" is here to catch this case. 5482 cat >conftest.$ac_ext <<_ACEOF 5483/* confdefs.h. */ 5484_ACEOF 5485cat confdefs.h >>conftest.$ac_ext 5486cat >>conftest.$ac_ext <<_ACEOF 5487/* end confdefs.h. */ 5488#ifdef __STDC__ 5489# include <limits.h> 5490#else 5491# include <assert.h> 5492#endif 5493 Syntax error 5494_ACEOF 5495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5497 ac_status=$? 5498 grep -v '^ *+' conftest.er1 >conftest.err 5499 rm -f conftest.er1 5500 cat conftest.err >&5 5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5502 (exit $ac_status); } >/dev/null; then 5503 if test -s conftest.err; then 5504 ac_cpp_err=$ac_cxx_preproc_warn_flag 5505 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5506 else 5507 ac_cpp_err= 5508 fi 5509else 5510 ac_cpp_err=yes 5511fi 5512if test -z "$ac_cpp_err"; then 5513 : 5514else 5515 echo "$as_me: failed program was:" >&5 5516sed 's/^/| /' conftest.$ac_ext >&5 5517 5518 # Broken: fails on valid input. 5519continue 5520fi 5521rm -f conftest.err conftest.$ac_ext 5522 5523 # OK, works on sane cases. Now check whether non-existent headers 5524 # can be detected and how. 5525 cat >conftest.$ac_ext <<_ACEOF 5526/* confdefs.h. */ 5527_ACEOF 5528cat confdefs.h >>conftest.$ac_ext 5529cat >>conftest.$ac_ext <<_ACEOF 5530/* end confdefs.h. */ 5531#include <ac_nonexistent.h> 5532_ACEOF 5533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5535 ac_status=$? 5536 grep -v '^ *+' conftest.er1 >conftest.err 5537 rm -f conftest.er1 5538 cat conftest.err >&5 5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5540 (exit $ac_status); } >/dev/null; then 5541 if test -s conftest.err; then 5542 ac_cpp_err=$ac_cxx_preproc_warn_flag 5543 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5544 else 5545 ac_cpp_err= 5546 fi 5547else 5548 ac_cpp_err=yes 5549fi 5550if test -z "$ac_cpp_err"; then 5551 # Broken: success on invalid input. 5552continue 5553else 5554 echo "$as_me: failed program was:" >&5 5555sed 's/^/| /' conftest.$ac_ext >&5 5556 5557 # Passes both tests. 5558ac_preproc_ok=: 5559break 5560fi 5561rm -f conftest.err conftest.$ac_ext 5562 5563done 5564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5565rm -f conftest.err conftest.$ac_ext 5566if $ac_preproc_ok; then 5567 break 5568fi 5569 5570 done 5571 ac_cv_prog_CXXCPP=$CXXCPP 5572 5573fi 5574 CXXCPP=$ac_cv_prog_CXXCPP 5575else 5576 ac_cv_prog_CXXCPP=$CXXCPP 5577fi 5578echo "$as_me:$LINENO: result: $CXXCPP" >&5 5579echo "${ECHO_T}$CXXCPP" >&6 5580ac_preproc_ok=false 5581for ac_cxx_preproc_warn_flag in '' yes 5582do 5583 # Use a header file that comes with gcc, so configuring glibc 5584 # with a fresh cross-compiler works. 5585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5586 # <limits.h> exists even on freestanding compilers. 5587 # On the NeXT, cc -E runs the code through the compiler's parser, 5588 # not just through cpp. "Syntax error" is here to catch this case. 5589 cat >conftest.$ac_ext <<_ACEOF 5590/* confdefs.h. */ 5591_ACEOF 5592cat confdefs.h >>conftest.$ac_ext 5593cat >>conftest.$ac_ext <<_ACEOF 5594/* end confdefs.h. */ 5595#ifdef __STDC__ 5596# include <limits.h> 5597#else 5598# include <assert.h> 5599#endif 5600 Syntax error 5601_ACEOF 5602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5604 ac_status=$? 5605 grep -v '^ *+' conftest.er1 >conftest.err 5606 rm -f conftest.er1 5607 cat conftest.err >&5 5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5609 (exit $ac_status); } >/dev/null; then 5610 if test -s conftest.err; then 5611 ac_cpp_err=$ac_cxx_preproc_warn_flag 5612 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5613 else 5614 ac_cpp_err= 5615 fi 5616else 5617 ac_cpp_err=yes 5618fi 5619if test -z "$ac_cpp_err"; then 5620 : 5621else 5622 echo "$as_me: failed program was:" >&5 5623sed 's/^/| /' conftest.$ac_ext >&5 5624 5625 # Broken: fails on valid input. 5626continue 5627fi 5628rm -f conftest.err conftest.$ac_ext 5629 5630 # OK, works on sane cases. Now check whether non-existent headers 5631 # can be detected and how. 5632 cat >conftest.$ac_ext <<_ACEOF 5633/* confdefs.h. */ 5634_ACEOF 5635cat confdefs.h >>conftest.$ac_ext 5636cat >>conftest.$ac_ext <<_ACEOF 5637/* end confdefs.h. */ 5638#include <ac_nonexistent.h> 5639_ACEOF 5640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5642 ac_status=$? 5643 grep -v '^ *+' conftest.er1 >conftest.err 5644 rm -f conftest.er1 5645 cat conftest.err >&5 5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5647 (exit $ac_status); } >/dev/null; then 5648 if test -s conftest.err; then 5649 ac_cpp_err=$ac_cxx_preproc_warn_flag 5650 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5651 else 5652 ac_cpp_err= 5653 fi 5654else 5655 ac_cpp_err=yes 5656fi 5657if test -z "$ac_cpp_err"; then 5658 # Broken: success on invalid input. 5659continue 5660else 5661 echo "$as_me: failed program was:" >&5 5662sed 's/^/| /' conftest.$ac_ext >&5 5663 5664 # Passes both tests. 5665ac_preproc_ok=: 5666break 5667fi 5668rm -f conftest.err conftest.$ac_ext 5669 5670done 5671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5672rm -f conftest.err conftest.$ac_ext 5673if $ac_preproc_ok; then 5674 : 5675else 5676 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5677See \`config.log' for more details." >&5 5678echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5679See \`config.log' for more details." >&2;} 5680 { (exit 1); exit 1; }; } 5681fi 5682 5683ac_ext=cc 5684ac_cpp='$CXXCPP $CPPFLAGS' 5685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5688 5689fi 5690 5691 5692ac_ext=f 5693ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5694ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5695ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5696if test -n "$ac_tool_prefix"; then 5697 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5698 do 5699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5700set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5701echo "$as_me:$LINENO: checking for $ac_word" >&5 5702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5703if test "${ac_cv_prog_F77+set}" = set; then 5704 echo $ECHO_N "(cached) $ECHO_C" >&6 5705else 5706 if test -n "$F77"; then 5707 ac_cv_prog_F77="$F77" # Let the user override the test. 5708else 5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5710for as_dir in $PATH 5711do 5712 IFS=$as_save_IFS 5713 test -z "$as_dir" && as_dir=. 5714 for ac_exec_ext in '' $ac_executable_extensions; do 5715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5716 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5718 break 2 5719 fi 5720done 5721done 5722 5723fi 5724fi 5725F77=$ac_cv_prog_F77 5726if test -n "$F77"; then 5727 echo "$as_me:$LINENO: result: $F77" >&5 5728echo "${ECHO_T}$F77" >&6 5729else 5730 echo "$as_me:$LINENO: result: no" >&5 5731echo "${ECHO_T}no" >&6 5732fi 5733 5734 test -n "$F77" && break 5735 done 5736fi 5737if test -z "$F77"; then 5738 ac_ct_F77=$F77 5739 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5740do 5741 # Extract the first word of "$ac_prog", so it can be a program name with args. 5742set dummy $ac_prog; ac_word=$2 5743echo "$as_me:$LINENO: checking for $ac_word" >&5 5744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5745if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5746 echo $ECHO_N "(cached) $ECHO_C" >&6 5747else 5748 if test -n "$ac_ct_F77"; then 5749 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5750else 5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5752for as_dir in $PATH 5753do 5754 IFS=$as_save_IFS 5755 test -z "$as_dir" && as_dir=. 5756 for ac_exec_ext in '' $ac_executable_extensions; do 5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5758 ac_cv_prog_ac_ct_F77="$ac_prog" 5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5760 break 2 5761 fi 5762done 5763done 5764 5765fi 5766fi 5767ac_ct_F77=$ac_cv_prog_ac_ct_F77 5768if test -n "$ac_ct_F77"; then 5769 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5770echo "${ECHO_T}$ac_ct_F77" >&6 5771else 5772 echo "$as_me:$LINENO: result: no" >&5 5773echo "${ECHO_T}no" >&6 5774fi 5775 5776 test -n "$ac_ct_F77" && break 5777done 5778 5779 F77=$ac_ct_F77 5780fi 5781 5782 5783# Provide some information about the compiler. 5784echo "$as_me:5784:" \ 5785 "checking for Fortran 77 compiler version" >&5 5786ac_compiler=`set X $ac_compile; echo $2` 5787{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5788 (eval $ac_compiler --version </dev/null >&5) 2>&5 5789 ac_status=$? 5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5791 (exit $ac_status); } 5792{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5793 (eval $ac_compiler -v </dev/null >&5) 2>&5 5794 ac_status=$? 5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5796 (exit $ac_status); } 5797{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5798 (eval $ac_compiler -V </dev/null >&5) 2>&5 5799 ac_status=$? 5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5801 (exit $ac_status); } 5802rm -f a.out 5803 5804# If we don't use `.F' as extension, the preprocessor is not run on the 5805# input file. (Note that this only needs to work for GNU compilers.) 5806ac_save_ext=$ac_ext 5807ac_ext=F 5808echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5809echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5810if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5811 echo $ECHO_N "(cached) $ECHO_C" >&6 5812else 5813 cat >conftest.$ac_ext <<_ACEOF 5814 program main 5815#ifndef __GNUC__ 5816 choke me 5817#endif 5818 5819 end 5820_ACEOF 5821rm -f conftest.$ac_objext 5822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5823 (eval $ac_compile) 2>conftest.er1 5824 ac_status=$? 5825 grep -v '^ *+' conftest.er1 >conftest.err 5826 rm -f conftest.er1 5827 cat conftest.err >&5 5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5829 (exit $ac_status); } && 5830 { ac_try='test -z "$ac_f77_werror_flag" 5831 || test ! -s conftest.err' 5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5833 (eval $ac_try) 2>&5 5834 ac_status=$? 5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5836 (exit $ac_status); }; } && 5837 { ac_try='test -s conftest.$ac_objext' 5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5839 (eval $ac_try) 2>&5 5840 ac_status=$? 5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5842 (exit $ac_status); }; }; then 5843 ac_compiler_gnu=yes 5844else 5845 echo "$as_me: failed program was:" >&5 5846sed 's/^/| /' conftest.$ac_ext >&5 5847 5848ac_compiler_gnu=no 5849fi 5850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5851ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5852 5853fi 5854echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5855echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5856ac_ext=$ac_save_ext 5857ac_test_FFLAGS=${FFLAGS+set} 5858ac_save_FFLAGS=$FFLAGS 5859FFLAGS= 5860echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5861echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5862if test "${ac_cv_prog_f77_g+set}" = set; then 5863 echo $ECHO_N "(cached) $ECHO_C" >&6 5864else 5865 FFLAGS=-g 5866cat >conftest.$ac_ext <<_ACEOF 5867 program main 5868 5869 end 5870_ACEOF 5871rm -f conftest.$ac_objext 5872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5873 (eval $ac_compile) 2>conftest.er1 5874 ac_status=$? 5875 grep -v '^ *+' conftest.er1 >conftest.err 5876 rm -f conftest.er1 5877 cat conftest.err >&5 5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5879 (exit $ac_status); } && 5880 { ac_try='test -z "$ac_f77_werror_flag" 5881 || test ! -s conftest.err' 5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5883 (eval $ac_try) 2>&5 5884 ac_status=$? 5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5886 (exit $ac_status); }; } && 5887 { ac_try='test -s conftest.$ac_objext' 5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5889 (eval $ac_try) 2>&5 5890 ac_status=$? 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); }; }; then 5893 ac_cv_prog_f77_g=yes 5894else 5895 echo "$as_me: failed program was:" >&5 5896sed 's/^/| /' conftest.$ac_ext >&5 5897 5898ac_cv_prog_f77_g=no 5899fi 5900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5901 5902fi 5903echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5904echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5905if test "$ac_test_FFLAGS" = set; then 5906 FFLAGS=$ac_save_FFLAGS 5907elif test $ac_cv_prog_f77_g = yes; then 5908 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5909 FFLAGS="-g -O2" 5910 else 5911 FFLAGS="-g" 5912 fi 5913else 5914 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5915 FFLAGS="-O2" 5916 else 5917 FFLAGS= 5918 fi 5919fi 5920 5921G77=`test $ac_compiler_gnu = yes && echo yes` 5922ac_ext=c 5923ac_cpp='$CPP $CPPFLAGS' 5924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5926ac_compiler_gnu=$ac_cv_c_compiler_gnu 5927 5928 5929 5930# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5931 5932# find the maximum length of command line arguments 5933echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5934echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5935if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5936 echo $ECHO_N "(cached) $ECHO_C" >&6 5937else 5938 i=0 5939 teststring="ABCD" 5940 5941 case $build_os in 5942 msdosdjgpp*) 5943 # On DJGPP, this test can blow up pretty badly due to problems in libc 5944 # (any single argument exceeding 2000 bytes causes a buffer overrun 5945 # during glob expansion). Even if it were fixed, the result of this 5946 # check would be larger than it should be. 5947 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5948 ;; 5949 5950 gnu*) 5951 # Under GNU Hurd, this test is not required because there is 5952 # no limit to the length of command line arguments. 5953 # Libtool will interpret -1 as no limit whatsoever 5954 lt_cv_sys_max_cmd_len=-1; 5955 ;; 5956 5957 cygwin* | mingw*) 5958 # On Win9x/ME, this test blows up -- it succeeds, but takes 5959 # about 5 minutes as the teststring grows exponentially. 5960 # Worse, since 9x/ME are not pre-emptively multitasking, 5961 # you end up with a "frozen" computer, even though with patience 5962 # the test eventually succeeds (with a max line length of 256k). 5963 # Instead, let's just punt: use the minimum linelength reported by 5964 # all of the supported platforms: 8192 (on NT/2K/XP). 5965 lt_cv_sys_max_cmd_len=8192; 5966 ;; 5967 5968 amigaos*) 5969 # On AmigaOS with pdksh, this test takes hours, literally. 5970 # So we just punt and use a minimum line length of 8192. 5971 lt_cv_sys_max_cmd_len=8192; 5972 ;; 5973 5974 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5975 # This has been around since 386BSD, at least. Likely further. 5976 if test -x /sbin/sysctl; then 5977 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5978 elif test -x /usr/sbin/sysctl; then 5979 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5980 else 5981 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5982 fi 5983 # And add a safety zone 5984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5986 ;; 5987 osf*) 5988 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5989 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5990 # nice to cause kernel panics so lets avoid the loop below. 5991 # First set a reasonable default. 5992 lt_cv_sys_max_cmd_len=16384 5993 # 5994 if test -x /sbin/sysconfig; then 5995 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5996 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5997 esac 5998 fi 5999 ;; 6000 *) 6001 # If test is not a shell built-in, we'll probably end up computing a 6002 # maximum length that is only half of the actual maximum length, but 6003 # we can't tell. 6004 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6005 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6006 = "XX$teststring") >/dev/null 2>&1 && 6007 new_result=`expr "X$teststring" : ".*" 2>&1` && 6008 lt_cv_sys_max_cmd_len=$new_result && 6009 test $i != 17 # 1/2 MB should be enough 6010 do 6011 i=`expr $i + 1` 6012 teststring=$teststring$teststring 6013 done 6014 teststring= 6015 # Add a significant safety factor because C++ compilers can tack on massive 6016 # amounts of additional arguments before passing them to the linker. 6017 # It appears as though 1/2 is a usable value. 6018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6019 ;; 6020 esac 6021 6022fi 6023 6024if test -n $lt_cv_sys_max_cmd_len ; then 6025 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6026echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 6027else 6028 echo "$as_me:$LINENO: result: none" >&5 6029echo "${ECHO_T}none" >&6 6030fi 6031 6032 6033 6034 6035# Check for command to grab the raw symbol name followed by C symbol from nm. 6036echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6037echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 6038if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6039 echo $ECHO_N "(cached) $ECHO_C" >&6 6040else 6041 6042# These are sane defaults that work on at least a few old systems. 6043# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6044 6045# Character class describing NM global symbol codes. 6046symcode='[BCDEGRST]' 6047 6048# Regexp to match symbols that can be accessed directly from C. 6049sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6050 6051# Transform an extracted symbol line into a proper C declaration 6052lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6053 6054# Transform an extracted symbol line into symbol name and symbol address 6055lt_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'" 6056 6057# Define system-specific variables. 6058case $host_os in 6059aix*) 6060 symcode='[BCDT]' 6061 ;; 6062cygwin* | mingw* | pw32*) 6063 symcode='[ABCDGISTW]' 6064 ;; 6065hpux*) # Its linker distinguishes data from code symbols 6066 if test "$host_cpu" = ia64; then 6067 symcode='[ABCDEGRST]' 6068 fi 6069 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6070 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'" 6071 ;; 6072linux*) 6073 if test "$host_cpu" = ia64; then 6074 symcode='[ABCDGIRSTW]' 6075 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6076 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'" 6077 fi 6078 ;; 6079irix* | nonstopux*) 6080 symcode='[BCDEGRST]' 6081 ;; 6082osf*) 6083 symcode='[BCDEGQRST]' 6084 ;; 6085solaris* | sysv5*) 6086 symcode='[BDRT]' 6087 ;; 6088sysv4) 6089 symcode='[DFNSTU]' 6090 ;; 6091esac 6092 6093# Handle CRLF in mingw tool chain 6094opt_cr= 6095case $build_os in 6096mingw*) 6097 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6098 ;; 6099esac 6100 6101# If we're using GNU nm, then use its standard symbol codes. 6102case `$NM -V 2>&1` in 6103*GNU* | *'with BFD'*) 6104 symcode='[ABCDGIRSTW]' ;; 6105esac 6106 6107# Try without a prefix undercore, then with it. 6108for ac_symprfx in "" "_"; do 6109 6110 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6111 symxfrm="\\1 $ac_symprfx\\2 \\2" 6112 6113 # Write the raw and C identifiers. 6114 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6115 6116 # Check to see that the pipe works correctly. 6117 pipe_works=no 6118 6119 rm -f conftest* 6120 cat > conftest.$ac_ext <<EOF 6121#ifdef __cplusplus 6122extern "C" { 6123#endif 6124char nm_test_var; 6125void nm_test_func(){} 6126#ifdef __cplusplus 6127} 6128#endif 6129int main(){nm_test_var='a';nm_test_func();return(0);} 6130EOF 6131 6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6133 (eval $ac_compile) 2>&5 6134 ac_status=$? 6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6136 (exit $ac_status); }; then 6137 # Now try to grab the symbols. 6138 nlist=conftest.nm 6139 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6140 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6141 ac_status=$? 6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6143 (exit $ac_status); } && test -s "$nlist"; then 6144 # Try sorting and uniquifying the output. 6145 if sort "$nlist" | uniq > "$nlist"T; then 6146 mv -f "$nlist"T "$nlist" 6147 else 6148 rm -f "$nlist"T 6149 fi 6150 6151 # Make sure that we snagged all the symbols we need. 6152 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6153 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6154 cat <<EOF > conftest.$ac_ext 6155#ifdef __cplusplus 6156extern "C" { 6157#endif 6158 6159EOF 6160 # Now generate the symbol file. 6161 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6162 6163 cat <<EOF >> conftest.$ac_ext 6164#if defined (__STDC__) && __STDC__ 6165# define lt_ptr_t void * 6166#else 6167# define lt_ptr_t char * 6168# define const 6169#endif 6170 6171/* The mapping between symbol names and symbols. */ 6172const struct { 6173 const char *name; 6174 lt_ptr_t address; 6175} 6176lt_preloaded_symbols[] = 6177{ 6178EOF 6179 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6180 cat <<\EOF >> conftest.$ac_ext 6181 {0, (lt_ptr_t) 0} 6182}; 6183 6184#ifdef __cplusplus 6185} 6186#endif 6187EOF 6188 # Now try linking the two files. 6189 mv conftest.$ac_objext conftstm.$ac_objext 6190 lt_save_LIBS="$LIBS" 6191 lt_save_CFLAGS="$CFLAGS" 6192 LIBS="conftstm.$ac_objext" 6193 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6195 (eval $ac_link) 2>&5 6196 ac_status=$? 6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6198 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6199 pipe_works=yes 6200 fi 6201 LIBS="$lt_save_LIBS" 6202 CFLAGS="$lt_save_CFLAGS" 6203 else 6204 echo "cannot find nm_test_func in $nlist" >&5 6205 fi 6206 else 6207 echo "cannot find nm_test_var in $nlist" >&5 6208 fi 6209 else 6210 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6211 fi 6212 else 6213 echo "$progname: failed program was:" >&5 6214 cat conftest.$ac_ext >&5 6215 fi 6216 rm -f conftest* conftst* 6217 6218 # Do not use the global_symbol_pipe unless it works. 6219 if test "$pipe_works" = yes; then 6220 break 6221 else 6222 lt_cv_sys_global_symbol_pipe= 6223 fi 6224done 6225 6226fi 6227 6228if test -z "$lt_cv_sys_global_symbol_pipe"; then 6229 lt_cv_sys_global_symbol_to_cdecl= 6230fi 6231if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6232 echo "$as_me:$LINENO: result: failed" >&5 6233echo "${ECHO_T}failed" >&6 6234else 6235 echo "$as_me:$LINENO: result: ok" >&5 6236echo "${ECHO_T}ok" >&6 6237fi 6238 6239echo "$as_me:$LINENO: checking for objdir" >&5 6240echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6241if test "${lt_cv_objdir+set}" = set; then 6242 echo $ECHO_N "(cached) $ECHO_C" >&6 6243else 6244 rm -f .libs 2>/dev/null 6245mkdir .libs 2>/dev/null 6246if test -d .libs; then 6247 lt_cv_objdir=.libs 6248else 6249 # MS-DOS does not allow filenames that begin with a dot. 6250 lt_cv_objdir=_libs 6251fi 6252rmdir .libs 2>/dev/null 6253fi 6254echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6255echo "${ECHO_T}$lt_cv_objdir" >&6 6256objdir=$lt_cv_objdir 6257 6258 6259 6260 6261 6262case $host_os in 6263aix3*) 6264 # AIX sometimes has problems with the GCC collect2 program. For some 6265 # reason, if we set the COLLECT_NAMES environment variable, the problems 6266 # vanish in a puff of smoke. 6267 if test "X${COLLECT_NAMES+set}" != Xset; then 6268 COLLECT_NAMES= 6269 export COLLECT_NAMES 6270 fi 6271 ;; 6272esac 6273 6274# Sed substitution that helps us do robust quoting. It backslashifies 6275# metacharacters that are still active within double-quoted strings. 6276Xsed='sed -e 1s/^X//' 6277sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6278 6279# Same as above, but do not quote variable references. 6280double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6281 6282# Sed substitution to delay expansion of an escaped shell variable in a 6283# double_quote_subst'ed string. 6284delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6285 6286# Sed substitution to avoid accidental globbing in evaled expressions 6287no_glob_subst='s/\*/\\\*/g' 6288 6289# Constants: 6290rm="rm -f" 6291 6292# Global variables: 6293default_ofile=libtool 6294can_build_shared=yes 6295 6296# All known linkers require a `.a' archive for static linking (except MSVC, 6297# which needs '.lib'). 6298libext=a 6299ltmain="$ac_aux_dir/ltmain.sh" 6300ofile="$default_ofile" 6301with_gnu_ld="$lt_cv_prog_gnu_ld" 6302 6303if test -n "$ac_tool_prefix"; then 6304 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6305set dummy ${ac_tool_prefix}ar; ac_word=$2 6306echo "$as_me:$LINENO: checking for $ac_word" >&5 6307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6308if test "${ac_cv_prog_AR+set}" = set; then 6309 echo $ECHO_N "(cached) $ECHO_C" >&6 6310else 6311 if test -n "$AR"; then 6312 ac_cv_prog_AR="$AR" # Let the user override the test. 6313else 6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6315for as_dir in $PATH 6316do 6317 IFS=$as_save_IFS 6318 test -z "$as_dir" && as_dir=. 6319 for ac_exec_ext in '' $ac_executable_extensions; do 6320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6321 ac_cv_prog_AR="${ac_tool_prefix}ar" 6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6323 break 2 6324 fi 6325done 6326done 6327 6328fi 6329fi 6330AR=$ac_cv_prog_AR 6331if test -n "$AR"; then 6332 echo "$as_me:$LINENO: result: $AR" >&5 6333echo "${ECHO_T}$AR" >&6 6334else 6335 echo "$as_me:$LINENO: result: no" >&5 6336echo "${ECHO_T}no" >&6 6337fi 6338 6339fi 6340if test -z "$ac_cv_prog_AR"; then 6341 ac_ct_AR=$AR 6342 # Extract the first word of "ar", so it can be a program name with args. 6343set dummy ar; ac_word=$2 6344echo "$as_me:$LINENO: checking for $ac_word" >&5 6345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6346if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6347 echo $ECHO_N "(cached) $ECHO_C" >&6 6348else 6349 if test -n "$ac_ct_AR"; then 6350 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6351else 6352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6353for as_dir in $PATH 6354do 6355 IFS=$as_save_IFS 6356 test -z "$as_dir" && as_dir=. 6357 for ac_exec_ext in '' $ac_executable_extensions; do 6358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6359 ac_cv_prog_ac_ct_AR="ar" 6360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6361 break 2 6362 fi 6363done 6364done 6365 6366 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 6367fi 6368fi 6369ac_ct_AR=$ac_cv_prog_ac_ct_AR 6370if test -n "$ac_ct_AR"; then 6371 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6372echo "${ECHO_T}$ac_ct_AR" >&6 6373else 6374 echo "$as_me:$LINENO: result: no" >&5 6375echo "${ECHO_T}no" >&6 6376fi 6377 6378 AR=$ac_ct_AR 6379else 6380 AR="$ac_cv_prog_AR" 6381fi 6382 6383if test -n "$ac_tool_prefix"; then 6384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6385set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6386echo "$as_me:$LINENO: checking for $ac_word" >&5 6387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6388if test "${ac_cv_prog_RANLIB+set}" = set; then 6389 echo $ECHO_N "(cached) $ECHO_C" >&6 6390else 6391 if test -n "$RANLIB"; then 6392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6393else 6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6395for as_dir in $PATH 6396do 6397 IFS=$as_save_IFS 6398 test -z "$as_dir" && as_dir=. 6399 for ac_exec_ext in '' $ac_executable_extensions; do 6400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6403 break 2 6404 fi 6405done 6406done 6407 6408fi 6409fi 6410RANLIB=$ac_cv_prog_RANLIB 6411if test -n "$RANLIB"; then 6412 echo "$as_me:$LINENO: result: $RANLIB" >&5 6413echo "${ECHO_T}$RANLIB" >&6 6414else 6415 echo "$as_me:$LINENO: result: no" >&5 6416echo "${ECHO_T}no" >&6 6417fi 6418 6419fi 6420if test -z "$ac_cv_prog_RANLIB"; then 6421 ac_ct_RANLIB=$RANLIB 6422 # Extract the first word of "ranlib", so it can be a program name with args. 6423set dummy ranlib; ac_word=$2 6424echo "$as_me:$LINENO: checking for $ac_word" >&5 6425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6426if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6427 echo $ECHO_N "(cached) $ECHO_C" >&6 6428else 6429 if test -n "$ac_ct_RANLIB"; then 6430 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6431else 6432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6433for as_dir in $PATH 6434do 6435 IFS=$as_save_IFS 6436 test -z "$as_dir" && as_dir=. 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6439 ac_cv_prog_ac_ct_RANLIB="ranlib" 6440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6441 break 2 6442 fi 6443done 6444done 6445 6446 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6447fi 6448fi 6449ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6450if test -n "$ac_ct_RANLIB"; then 6451 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6452echo "${ECHO_T}$ac_ct_RANLIB" >&6 6453else 6454 echo "$as_me:$LINENO: result: no" >&5 6455echo "${ECHO_T}no" >&6 6456fi 6457 6458 RANLIB=$ac_ct_RANLIB 6459else 6460 RANLIB="$ac_cv_prog_RANLIB" 6461fi 6462 6463if test -n "$ac_tool_prefix"; then 6464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6465set dummy ${ac_tool_prefix}strip; ac_word=$2 6466echo "$as_me:$LINENO: checking for $ac_word" >&5 6467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6468if test "${ac_cv_prog_STRIP+set}" = set; then 6469 echo $ECHO_N "(cached) $ECHO_C" >&6 6470else 6471 if test -n "$STRIP"; then 6472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6473else 6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6475for as_dir in $PATH 6476do 6477 IFS=$as_save_IFS 6478 test -z "$as_dir" && as_dir=. 6479 for ac_exec_ext in '' $ac_executable_extensions; do 6480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6481 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6483 break 2 6484 fi 6485done 6486done 6487 6488fi 6489fi 6490STRIP=$ac_cv_prog_STRIP 6491if test -n "$STRIP"; then 6492 echo "$as_me:$LINENO: result: $STRIP" >&5 6493echo "${ECHO_T}$STRIP" >&6 6494else 6495 echo "$as_me:$LINENO: result: no" >&5 6496echo "${ECHO_T}no" >&6 6497fi 6498 6499fi 6500if test -z "$ac_cv_prog_STRIP"; then 6501 ac_ct_STRIP=$STRIP 6502 # Extract the first word of "strip", so it can be a program name with args. 6503set dummy strip; ac_word=$2 6504echo "$as_me:$LINENO: checking for $ac_word" >&5 6505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6506if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6507 echo $ECHO_N "(cached) $ECHO_C" >&6 6508else 6509 if test -n "$ac_ct_STRIP"; then 6510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6511else 6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6513for as_dir in $PATH 6514do 6515 IFS=$as_save_IFS 6516 test -z "$as_dir" && as_dir=. 6517 for ac_exec_ext in '' $ac_executable_extensions; do 6518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6519 ac_cv_prog_ac_ct_STRIP="strip" 6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6521 break 2 6522 fi 6523done 6524done 6525 6526 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6527fi 6528fi 6529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6530if test -n "$ac_ct_STRIP"; then 6531 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6532echo "${ECHO_T}$ac_ct_STRIP" >&6 6533else 6534 echo "$as_me:$LINENO: result: no" >&5 6535echo "${ECHO_T}no" >&6 6536fi 6537 6538 STRIP=$ac_ct_STRIP 6539else 6540 STRIP="$ac_cv_prog_STRIP" 6541fi 6542 6543 6544old_CC="$CC" 6545old_CFLAGS="$CFLAGS" 6546 6547# Set sane defaults for various variables 6548test -z "$AR" && AR=ar 6549test -z "$AR_FLAGS" && AR_FLAGS=cru 6550test -z "$AS" && AS=as 6551test -z "$CC" && CC=cc 6552test -z "$LTCC" && LTCC=$CC 6553test -z "$DLLTOOL" && DLLTOOL=dlltool 6554test -z "$LD" && LD=ld 6555test -z "$LN_S" && LN_S="ln -s" 6556test -z "$MAGIC_CMD" && MAGIC_CMD=file 6557test -z "$NM" && NM=nm 6558test -z "$SED" && SED=sed 6559test -z "$OBJDUMP" && OBJDUMP=objdump 6560test -z "$RANLIB" && RANLIB=: 6561test -z "$STRIP" && STRIP=: 6562test -z "$ac_objext" && ac_objext=o 6563 6564# Determine commands to create old-style static archives. 6565old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6566old_postinstall_cmds='chmod 644 $oldlib' 6567old_postuninstall_cmds= 6568 6569if test -n "$RANLIB"; then 6570 case $host_os in 6571 openbsd*) 6572 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6573 ;; 6574 *) 6575 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6576 ;; 6577 esac 6578 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6579fi 6580 6581for cc_temp in $compiler""; do 6582 case $cc_temp in 6583 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6584 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6585 \-*) ;; 6586 *) break;; 6587 esac 6588done 6589cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6590 6591 6592# Only perform the check for file, if the check method requires it 6593case $deplibs_check_method in 6594file_magic*) 6595 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6596 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6597echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6598if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6599 echo $ECHO_N "(cached) $ECHO_C" >&6 6600else 6601 case $MAGIC_CMD in 6602[\\/*] | ?:[\\/]*) 6603 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6604 ;; 6605*) 6606 lt_save_MAGIC_CMD="$MAGIC_CMD" 6607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6608 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6609 for ac_dir in $ac_dummy; do 6610 IFS="$lt_save_ifs" 6611 test -z "$ac_dir" && ac_dir=. 6612 if test -f $ac_dir/${ac_tool_prefix}file; then 6613 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6614 if test -n "$file_magic_test_file"; then 6615 case $deplibs_check_method in 6616 "file_magic "*) 6617 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6620 $EGREP "$file_magic_regex" > /dev/null; then 6621 : 6622 else 6623 cat <<EOF 1>&2 6624 6625*** Warning: the command libtool uses to detect shared libraries, 6626*** $file_magic_cmd, produces output that libtool cannot recognize. 6627*** The result is that libtool may fail to recognize shared libraries 6628*** as such. This will affect the creation of libtool libraries that 6629*** depend on shared libraries, but programs linked with such libtool 6630*** libraries will work regardless of this problem. Nevertheless, you 6631*** may want to report the problem to your system manager and/or to 6632*** bug-libtool@gnu.org 6633 6634EOF 6635 fi ;; 6636 esac 6637 fi 6638 break 6639 fi 6640 done 6641 IFS="$lt_save_ifs" 6642 MAGIC_CMD="$lt_save_MAGIC_CMD" 6643 ;; 6644esac 6645fi 6646 6647MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6648if test -n "$MAGIC_CMD"; then 6649 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6650echo "${ECHO_T}$MAGIC_CMD" >&6 6651else 6652 echo "$as_me:$LINENO: result: no" >&5 6653echo "${ECHO_T}no" >&6 6654fi 6655 6656if test -z "$lt_cv_path_MAGIC_CMD"; then 6657 if test -n "$ac_tool_prefix"; then 6658 echo "$as_me:$LINENO: checking for file" >&5 6659echo $ECHO_N "checking for file... $ECHO_C" >&6 6660if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6661 echo $ECHO_N "(cached) $ECHO_C" >&6 6662else 6663 case $MAGIC_CMD in 6664[\\/*] | ?:[\\/]*) 6665 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6666 ;; 6667*) 6668 lt_save_MAGIC_CMD="$MAGIC_CMD" 6669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6670 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6671 for ac_dir in $ac_dummy; do 6672 IFS="$lt_save_ifs" 6673 test -z "$ac_dir" && ac_dir=. 6674 if test -f $ac_dir/file; then 6675 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6676 if test -n "$file_magic_test_file"; then 6677 case $deplibs_check_method in 6678 "file_magic "*) 6679 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6680 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6681 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6682 $EGREP "$file_magic_regex" > /dev/null; then 6683 : 6684 else 6685 cat <<EOF 1>&2 6686 6687*** Warning: the command libtool uses to detect shared libraries, 6688*** $file_magic_cmd, produces output that libtool cannot recognize. 6689*** The result is that libtool may fail to recognize shared libraries 6690*** as such. This will affect the creation of libtool libraries that 6691*** depend on shared libraries, but programs linked with such libtool 6692*** libraries will work regardless of this problem. Nevertheless, you 6693*** may want to report the problem to your system manager and/or to 6694*** bug-libtool@gnu.org 6695 6696EOF 6697 fi ;; 6698 esac 6699 fi 6700 break 6701 fi 6702 done 6703 IFS="$lt_save_ifs" 6704 MAGIC_CMD="$lt_save_MAGIC_CMD" 6705 ;; 6706esac 6707fi 6708 6709MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6710if test -n "$MAGIC_CMD"; then 6711 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6712echo "${ECHO_T}$MAGIC_CMD" >&6 6713else 6714 echo "$as_me:$LINENO: result: no" >&5 6715echo "${ECHO_T}no" >&6 6716fi 6717 6718 else 6719 MAGIC_CMD=: 6720 fi 6721fi 6722 6723 fi 6724 ;; 6725esac 6726 6727enable_dlopen=yes 6728enable_win32_dll=no 6729 6730# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6731if test "${enable_libtool_lock+set}" = set; then 6732 enableval="$enable_libtool_lock" 6733 6734fi; 6735test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6736 6737 6738# Check whether --with-pic or --without-pic was given. 6739if test "${with_pic+set}" = set; then 6740 withval="$with_pic" 6741 pic_mode="$withval" 6742else 6743 pic_mode=default 6744fi; 6745test -z "$pic_mode" && pic_mode=default 6746 6747# Use C for the default configuration in the libtool script 6748tagname= 6749lt_save_CC="$CC" 6750ac_ext=c 6751ac_cpp='$CPP $CPPFLAGS' 6752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6754ac_compiler_gnu=$ac_cv_c_compiler_gnu 6755 6756 6757# Source file extension for C test sources. 6758ac_ext=c 6759 6760# Object file extension for compiled C test sources. 6761objext=o 6762objext=$objext 6763 6764# Code to be used in simple compile tests 6765lt_simple_compile_test_code="int some_variable = 0;\n" 6766 6767# Code to be used in simple link tests 6768lt_simple_link_test_code='int main(){return(0);}\n' 6769 6770 6771# If no C compiler was specified, use CC. 6772LTCC=${LTCC-"$CC"} 6773 6774# Allow CC to be a program name with arguments. 6775compiler=$CC 6776 6777 6778# save warnings/boilerplate of simple test code 6779ac_outfile=conftest.$ac_objext 6780printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6781eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6782_lt_compiler_boilerplate=`cat conftest.err` 6783$rm conftest* 6784 6785ac_outfile=conftest.$ac_objext 6786printf "$lt_simple_link_test_code" >conftest.$ac_ext 6787eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6788_lt_linker_boilerplate=`cat conftest.err` 6789$rm conftest* 6790 6791 6792# 6793# Check for any special shared library compilation flags. 6794# 6795lt_prog_cc_shlib= 6796if test "$GCC" = no; then 6797 case $host_os in 6798 sco3.2v5*) 6799 lt_prog_cc_shlib='-belf' 6800 ;; 6801 esac 6802fi 6803if test -n "$lt_prog_cc_shlib"; then 6804 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6805echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6806 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6807 else 6808 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6809echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6810 lt_cv_prog_cc_can_build_shared=no 6811 fi 6812fi 6813 6814 6815# 6816# Check to make sure the static flag actually works. 6817# 6818echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6819echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6820if test "${lt_prog_compiler_static_works+set}" = set; then 6821 echo $ECHO_N "(cached) $ECHO_C" >&6 6822else 6823 lt_prog_compiler_static_works=no 6824 save_LDFLAGS="$LDFLAGS" 6825 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6826 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6828 # The linker can only warn and ignore the option if not recognized 6829 # So say no if there are warnings 6830 if test -s conftest.err; then 6831 # Append any errors to the config.log. 6832 cat conftest.err 1>&5 6833 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6834 $SED '/^$/d' conftest.err >conftest.er2 6835 if diff conftest.exp conftest.er2 >/dev/null; then 6836 lt_prog_compiler_static_works=yes 6837 fi 6838 else 6839 lt_prog_compiler_static_works=yes 6840 fi 6841 fi 6842 $rm conftest* 6843 LDFLAGS="$save_LDFLAGS" 6844 6845fi 6846echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6847echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6848 6849if test x"$lt_prog_compiler_static_works" = xyes; then 6850 : 6851else 6852 lt_prog_compiler_static= 6853fi 6854 6855 6856 6857 6858lt_prog_compiler_no_builtin_flag= 6859 6860if test "$GCC" = yes; then 6861 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6862 6863 6864echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6865echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6866if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6867 echo $ECHO_N "(cached) $ECHO_C" >&6 6868else 6869 lt_cv_prog_compiler_rtti_exceptions=no 6870 ac_outfile=conftest.$ac_objext 6871 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6872 lt_compiler_flag="-fno-rtti -fno-exceptions" 6873 # Insert the option either (1) after the last *FLAGS variable, or 6874 # (2) before a word containing "conftest.", or (3) at the end. 6875 # Note that $ac_compile itself does not contain backslashes and begins 6876 # with a dollar sign (not a hyphen), so the echo should work correctly. 6877 # The option is referenced via a variable to avoid confusing sed. 6878 lt_compile=`echo "$ac_compile" | $SED \ 6879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6881 -e 's:$: $lt_compiler_flag:'` 6882 (eval echo "\"\$as_me:6882: $lt_compile\"" >&5) 6883 (eval "$lt_compile" 2>conftest.err) 6884 ac_status=$? 6885 cat conftest.err >&5 6886 echo "$as_me:6886: \$? = $ac_status" >&5 6887 if (exit $ac_status) && test -s "$ac_outfile"; then 6888 # The compiler can only warn and ignore the option if not recognized 6889 # So say no if there are warnings other than the usual output. 6890 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6891 $SED '/^$/d' conftest.err >conftest.er2 6892 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6893 lt_cv_prog_compiler_rtti_exceptions=yes 6894 fi 6895 fi 6896 $rm conftest* 6897 6898fi 6899echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6900echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6901 6902if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6903 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6904else 6905 : 6906fi 6907 6908fi 6909 6910lt_prog_compiler_wl= 6911lt_prog_compiler_pic= 6912lt_prog_compiler_static= 6913 6914echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6915echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6916 6917 if test "$GCC" = yes; then 6918 lt_prog_compiler_wl='-Wl,' 6919 lt_prog_compiler_static='-static' 6920 6921 case $host_os in 6922 aix*) 6923 # All AIX code is PIC. 6924 if test "$host_cpu" = ia64; then 6925 # AIX 5 now supports IA64 processor 6926 lt_prog_compiler_static='-Bstatic' 6927 fi 6928 ;; 6929 6930 amigaos*) 6931 # FIXME: we need at least 68020 code to build shared libraries, but 6932 # adding the `-m68020' flag to GCC prevents building anything better, 6933 # like `-m68040'. 6934 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6935 ;; 6936 6937 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6938 # PIC is the default for these OSes. 6939 ;; 6940 6941 mingw* | pw32* | os2*) 6942 # This hack is so that the source file can tell whether it is being 6943 # built for inclusion in a dll (and should export symbols for example). 6944 lt_prog_compiler_pic='-DDLL_EXPORT' 6945 ;; 6946 6947 darwin* | rhapsody*) 6948 # PIC is the default on this platform 6949 # Common symbols not allowed in MH_DYLIB files 6950 lt_prog_compiler_pic='-fno-common' 6951 ;; 6952 6953 msdosdjgpp*) 6954 # Just because we use GCC doesn't mean we suddenly get shared libraries 6955 # on systems that don't support them. 6956 lt_prog_compiler_can_build_shared=no 6957 enable_shared=no 6958 ;; 6959 6960 sysv4*MP*) 6961 if test -d /usr/nec; then 6962 lt_prog_compiler_pic=-Kconform_pic 6963 fi 6964 ;; 6965 6966 hpux*) 6967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6968 # not for PA HP-UX. 6969 case $host_cpu in 6970 hppa*64*|ia64*) 6971 # +Z the default 6972 ;; 6973 *) 6974 lt_prog_compiler_pic='-fPIC' 6975 ;; 6976 esac 6977 ;; 6978 6979 *) 6980 lt_prog_compiler_pic='-fPIC' 6981 ;; 6982 esac 6983 else 6984 # PORTME Check for flag to pass linker flags through the system compiler. 6985 case $host_os in 6986 aix*) 6987 lt_prog_compiler_wl='-Wl,' 6988 if test "$host_cpu" = ia64; then 6989 # AIX 5 now supports IA64 processor 6990 lt_prog_compiler_static='-Bstatic' 6991 else 6992 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6993 fi 6994 ;; 6995 darwin*) 6996 # PIC is the default on this platform 6997 # Common symbols not allowed in MH_DYLIB files 6998 case $cc_basename in 6999 xlc*) 7000 lt_prog_compiler_pic='-qnocommon' 7001 lt_prog_compiler_wl='-Wl,' 7002 ;; 7003 esac 7004 ;; 7005 7006 mingw* | pw32* | os2*) 7007 # This hack is so that the source file can tell whether it is being 7008 # built for inclusion in a dll (and should export symbols for example). 7009 lt_prog_compiler_pic='-DDLL_EXPORT' 7010 ;; 7011 7012 hpux9* | hpux10* | hpux11*) 7013 lt_prog_compiler_wl='-Wl,' 7014 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7015 # not for PA HP-UX. 7016 case $host_cpu in 7017 hppa*64*|ia64*) 7018 # +Z the default 7019 ;; 7020 *) 7021 lt_prog_compiler_pic='+Z' 7022 ;; 7023 esac 7024 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7025 lt_prog_compiler_static='${wl}-a ${wl}archive' 7026 ;; 7027 7028 irix5* | irix6* | nonstopux*) 7029 lt_prog_compiler_wl='-Wl,' 7030 # PIC (with -KPIC) is the default. 7031 lt_prog_compiler_static='-non_shared' 7032 ;; 7033 7034 newsos6) 7035 lt_prog_compiler_pic='-KPIC' 7036 lt_prog_compiler_static='-Bstatic' 7037 ;; 7038 7039 linux*) 7040 case $cc_basename in 7041 icc* | ecc*) 7042 lt_prog_compiler_wl='-Wl,' 7043 lt_prog_compiler_pic='-KPIC' 7044 lt_prog_compiler_static='-static' 7045 ;; 7046 pgcc* | pgf77* | pgf90* | pgf95*) 7047 # Portland Group compilers (*not* the Pentium gcc compiler, 7048 # which looks to be a dead project) 7049 lt_prog_compiler_wl='-Wl,' 7050 lt_prog_compiler_pic='-fpic' 7051 lt_prog_compiler_static='-Bstatic' 7052 ;; 7053 ccc*) 7054 lt_prog_compiler_wl='-Wl,' 7055 # All Alpha code is PIC. 7056 lt_prog_compiler_static='-non_shared' 7057 ;; 7058 esac 7059 ;; 7060 7061 osf3* | osf4* | osf5*) 7062 lt_prog_compiler_wl='-Wl,' 7063 # All OSF/1 code is PIC. 7064 lt_prog_compiler_static='-non_shared' 7065 ;; 7066 7067 sco3.2v5*) 7068 lt_prog_compiler_pic='-Kpic' 7069 lt_prog_compiler_static='-dn' 7070 ;; 7071 7072 solaris*) 7073 lt_prog_compiler_pic='-KPIC' 7074 lt_prog_compiler_static='-Bstatic' 7075 case $cc_basename in 7076 f77* | f90* | f95*) 7077 lt_prog_compiler_wl='-Qoption ld ';; 7078 *) 7079 lt_prog_compiler_wl='-Wl,';; 7080 esac 7081 ;; 7082 7083 sunos4*) 7084 lt_prog_compiler_wl='-Qoption ld ' 7085 lt_prog_compiler_pic='-PIC' 7086 lt_prog_compiler_static='-Bstatic' 7087 ;; 7088 7089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7090 lt_prog_compiler_wl='-Wl,' 7091 lt_prog_compiler_pic='-KPIC' 7092 lt_prog_compiler_static='-Bstatic' 7093 ;; 7094 7095 sysv4*MP*) 7096 if test -d /usr/nec ;then 7097 lt_prog_compiler_pic='-Kconform_pic' 7098 lt_prog_compiler_static='-Bstatic' 7099 fi 7100 ;; 7101 7102 unicos*) 7103 lt_prog_compiler_wl='-Wl,' 7104 lt_prog_compiler_can_build_shared=no 7105 ;; 7106 7107 uts4*) 7108 lt_prog_compiler_pic='-pic' 7109 lt_prog_compiler_static='-Bstatic' 7110 ;; 7111 7112 *) 7113 lt_prog_compiler_can_build_shared=no 7114 ;; 7115 esac 7116 fi 7117 7118echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7119echo "${ECHO_T}$lt_prog_compiler_pic" >&6 7120 7121# 7122# Check to make sure the PIC flag actually works. 7123# 7124if test -n "$lt_prog_compiler_pic"; then 7125 7126echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7127echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 7128if test "${lt_prog_compiler_pic_works+set}" = set; then 7129 echo $ECHO_N "(cached) $ECHO_C" >&6 7130else 7131 lt_prog_compiler_pic_works=no 7132 ac_outfile=conftest.$ac_objext 7133 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7134 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7135 # Insert the option either (1) after the last *FLAGS variable, or 7136 # (2) before a word containing "conftest.", or (3) at the end. 7137 # Note that $ac_compile itself does not contain backslashes and begins 7138 # with a dollar sign (not a hyphen), so the echo should work correctly. 7139 # The option is referenced via a variable to avoid confusing sed. 7140 lt_compile=`echo "$ac_compile" | $SED \ 7141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7143 -e 's:$: $lt_compiler_flag:'` 7144 (eval echo "\"\$as_me:7144: $lt_compile\"" >&5) 7145 (eval "$lt_compile" 2>conftest.err) 7146 ac_status=$? 7147 cat conftest.err >&5 7148 echo "$as_me:7148: \$? = $ac_status" >&5 7149 if (exit $ac_status) && test -s "$ac_outfile"; then 7150 # The compiler can only warn and ignore the option if not recognized 7151 # So say no if there are warnings other than the usual output. 7152 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 7153 $SED '/^$/d' conftest.err >conftest.er2 7154 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 7155 lt_prog_compiler_pic_works=yes 7156 fi 7157 fi 7158 $rm conftest* 7159 7160fi 7161echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7162echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 7163 7164if test x"$lt_prog_compiler_pic_works" = xyes; then 7165 case $lt_prog_compiler_pic in 7166 "" | " "*) ;; 7167 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7168 esac 7169else 7170 lt_prog_compiler_pic= 7171 lt_prog_compiler_can_build_shared=no 7172fi 7173 7174fi 7175case $host_os in 7176 # For platforms which do not support PIC, -DPIC is meaningless: 7177 *djgpp*) 7178 lt_prog_compiler_pic= 7179 ;; 7180 *) 7181 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7182 ;; 7183esac 7184 7185echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7186echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 7187if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7188 echo $ECHO_N "(cached) $ECHO_C" >&6 7189else 7190 lt_cv_prog_compiler_c_o=no 7191 $rm -r conftest 2>/dev/null 7192 mkdir conftest 7193 cd conftest 7194 mkdir out 7195 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7196 7197 lt_compiler_flag="-o out/conftest2.$ac_objext" 7198 # Insert the option either (1) after the last *FLAGS variable, or 7199 # (2) before a word containing "conftest.", or (3) at the end. 7200 # Note that $ac_compile itself does not contain backslashes and begins 7201 # with a dollar sign (not a hyphen), so the echo should work correctly. 7202 lt_compile=`echo "$ac_compile" | $SED \ 7203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7205 -e 's:$: $lt_compiler_flag:'` 7206 (eval echo "\"\$as_me:7206: $lt_compile\"" >&5) 7207 (eval "$lt_compile" 2>out/conftest.err) 7208 ac_status=$? 7209 cat out/conftest.err >&5 7210 echo "$as_me:7210: \$? = $ac_status" >&5 7211 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7212 then 7213 # The compiler can only warn and ignore the option if not recognized 7214 # So say no if there are warnings 7215 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 7216 $SED '/^$/d' out/conftest.err >out/conftest.er2 7217 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7218 lt_cv_prog_compiler_c_o=yes 7219 fi 7220 fi 7221 chmod u+w . 2>&5 7222 $rm conftest* 7223 # SGI C++ compiler will create directory out/ii_files/ for 7224 # template instantiation 7225 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7226 $rm out/* && rmdir out 7227 cd .. 7228 rmdir conftest 7229 $rm conftest* 7230 7231fi 7232echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7233echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 7234 7235 7236hard_links="nottested" 7237if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7238 # do not overwrite the value of need_locks provided by the user 7239 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7240echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 7241 hard_links=yes 7242 $rm conftest* 7243 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7244 touch conftest.a 7245 ln conftest.a conftest.b 2>&5 || hard_links=no 7246 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7247 echo "$as_me:$LINENO: result: $hard_links" >&5 7248echo "${ECHO_T}$hard_links" >&6 7249 if test "$hard_links" = no; then 7250 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7251echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7252 need_locks=warn 7253 fi 7254else 7255 need_locks=no 7256fi 7257 7258echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7259echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 7260 7261 runpath_var= 7262 allow_undefined_flag= 7263 enable_shared_with_static_runtimes=no 7264 archive_cmds= 7265 archive_expsym_cmds= 7266 old_archive_From_new_cmds= 7267 old_archive_from_expsyms_cmds= 7268 export_dynamic_flag_spec= 7269 whole_archive_flag_spec= 7270 thread_safe_flag_spec= 7271 hardcode_libdir_flag_spec= 7272 hardcode_libdir_flag_spec_ld= 7273 hardcode_libdir_separator= 7274 hardcode_direct=no 7275 hardcode_minus_L=no 7276 hardcode_shlibpath_var=unsupported 7277 link_all_deplibs=unknown 7278 hardcode_automatic=no 7279 module_cmds= 7280 module_expsym_cmds= 7281 always_export_symbols=no 7282 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7283 # include_expsyms should be a list of space-separated symbols to be *always* 7284 # included in the symbol list 7285 include_expsyms= 7286 # exclude_expsyms can be an extended regexp of symbols to exclude 7287 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7288 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7289 # as well as any symbol that contains `d'. 7290 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7291 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7292 # platforms (ab)use it in PIC code, but their linkers get confused if 7293 # the symbol is explicitly referenced. Since portable code cannot 7294 # rely on this symbol name, it's probably fine to never include it in 7295 # preloaded symbol tables. 7296 extract_expsyms_cmds= 7297 # Just being paranoid about ensuring that cc_basename is set. 7298 for cc_temp in $compiler""; do 7299 case $cc_temp in 7300 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7301 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7302 \-*) ;; 7303 *) break;; 7304 esac 7305done 7306cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7307 7308 case $host_os in 7309 cygwin* | mingw* | pw32*) 7310 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7311 # When not using gcc, we currently assume that we are using 7312 # Microsoft Visual C++. 7313 if test "$GCC" != yes; then 7314 with_gnu_ld=no 7315 fi 7316 ;; 7317 openbsd*) 7318 with_gnu_ld=no 7319 ;; 7320 esac 7321 7322 ld_shlibs=yes 7323 if test "$with_gnu_ld" = yes; then 7324 # If archive_cmds runs LD, not CC, wlarc should be empty 7325 wlarc='${wl}' 7326 7327 # Set some defaults for GNU ld with shared library support. These 7328 # are reset later if shared libraries are not supported. Putting them 7329 # here allows them to be overridden if necessary. 7330 runpath_var=LD_RUN_PATH 7331 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7332 export_dynamic_flag_spec='${wl}--export-dynamic' 7333 # ancient GNU ld didn't support --whole-archive et. al. 7334 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7335 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7336 else 7337 whole_archive_flag_spec= 7338 fi 7339 supports_anon_versioning=no 7340 case `$LD -v 2>/dev/null` in 7341 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7342 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7343 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7344 *\ 2.11.*) ;; # other 2.11 versions 7345 *) supports_anon_versioning=yes ;; 7346 esac 7347 7348 # See if GNU ld supports shared libraries. 7349 case $host_os in 7350 aix3* | aix4* | aix5*) 7351 # On AIX/PPC, the GNU linker is very broken 7352 if test "$host_cpu" != ia64; then 7353 ld_shlibs=no 7354 cat <<EOF 1>&2 7355 7356*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7357*** to be unable to reliably create shared libraries on AIX. 7358*** Therefore, libtool is disabling shared libraries support. If you 7359*** really care for shared libraries, you may want to modify your PATH 7360*** so that a non-GNU linker is found, and then restart. 7361 7362EOF 7363 fi 7364 ;; 7365 7366 amigaos*) 7367 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)' 7368 hardcode_libdir_flag_spec='-L$libdir' 7369 hardcode_minus_L=yes 7370 7371 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7372 # that the semantics of dynamic libraries on AmigaOS, at least up 7373 # to version 4, is to share data among multiple programs linked 7374 # with the same dynamic library. Since this doesn't match the 7375 # behavior of shared libraries on other platforms, we can't use 7376 # them. 7377 ld_shlibs=no 7378 ;; 7379 7380 beos*) 7381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7382 allow_undefined_flag=unsupported 7383 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7384 # support --undefined. This deserves some investigation. FIXME 7385 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7386 else 7387 ld_shlibs=no 7388 fi 7389 ;; 7390 7391 cygwin* | mingw* | pw32*) 7392 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7393 # as there is no search path for DLLs. 7394 hardcode_libdir_flag_spec='-L$libdir' 7395 allow_undefined_flag=unsupported 7396 always_export_symbols=no 7397 enable_shared_with_static_runtimes=yes 7398 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7399 7400 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7402 # If the export-symbols file already is a .def file (1st line 7403 # is EXPORTS), use it as is; otherwise, prepend... 7404 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7405 cp $export_symbols $output_objdir/$soname.def; 7406 else 7407 echo EXPORTS > $output_objdir/$soname.def; 7408 cat $export_symbols >> $output_objdir/$soname.def; 7409 fi~ 7410 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7411 else 7412 ld_shlibs=no 7413 fi 7414 ;; 7415 7416 linux*) 7417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7418 tmp_addflag= 7419 case $cc_basename,$host_cpu in 7420 pgcc*) # Portland Group C compiler 7421 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' 7422 tmp_addflag=' $pic_flag' 7423 ;; 7424 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7425 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' 7426 tmp_addflag=' $pic_flag -Mnomain' ;; 7427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7428 tmp_addflag=' -i_dynamic' ;; 7429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7430 tmp_addflag=' -i_dynamic -nofor_main' ;; 7431 ifc* | ifort*) # Intel Fortran compiler 7432 tmp_addflag=' -nofor_main' ;; 7433 esac 7434 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7435 7436 if test $supports_anon_versioning = yes; then 7437 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7439 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7440 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7441 fi 7442 else 7443 ld_shlibs=no 7444 fi 7445 ;; 7446 7447 netbsd*) 7448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7449 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7450 wlarc= 7451 else 7452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7453 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7454 fi 7455 ;; 7456 7457 solaris* | sysv5*) 7458 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7459 ld_shlibs=no 7460 cat <<EOF 1>&2 7461 7462*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7463*** create shared libraries on Solaris systems. Therefore, libtool 7464*** is disabling shared libraries support. We urge you to upgrade GNU 7465*** binutils to release 2.9.1 or newer. Another option is to modify 7466*** your PATH or compiler configuration so that the native linker is 7467*** used, and then restart. 7468 7469EOF 7470 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7472 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7473 else 7474 ld_shlibs=no 7475 fi 7476 ;; 7477 7478 sunos4*) 7479 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7480 wlarc= 7481 hardcode_direct=yes 7482 hardcode_shlibpath_var=no 7483 ;; 7484 7485 *) 7486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7489 else 7490 ld_shlibs=no 7491 fi 7492 ;; 7493 esac 7494 7495 if test "$ld_shlibs" = no; then 7496 runpath_var= 7497 hardcode_libdir_flag_spec= 7498 export_dynamic_flag_spec= 7499 whole_archive_flag_spec= 7500 fi 7501 else 7502 # PORTME fill in a description of your system's linker (not GNU ld) 7503 case $host_os in 7504 aix3*) 7505 allow_undefined_flag=unsupported 7506 always_export_symbols=yes 7507 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' 7508 # Note: this linker hardcodes the directories in LIBPATH if there 7509 # are no directories specified by -L. 7510 hardcode_minus_L=yes 7511 if test "$GCC" = yes && test -z "$link_static_flag"; then 7512 # Neither direct hardcoding nor static linking is supported with a 7513 # broken collect2. 7514 hardcode_direct=unsupported 7515 fi 7516 ;; 7517 7518 aix4* | aix5*) 7519 if test "$host_cpu" = ia64; then 7520 # On IA64, the linker does run time linking by default, so we don't 7521 # have to do anything special. 7522 aix_use_runtimelinking=no 7523 exp_sym_flag='-Bexport' 7524 no_entry_flag="" 7525 else 7526 # If we're using GNU nm, then we don't want the "-C" option. 7527 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7528 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7529 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' 7530 else 7531 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' 7532 fi 7533 aix_use_runtimelinking=no 7534 7535 # Test if we are trying to use run time linking or normal 7536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7537 # need to do runtime linking. 7538 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7539 for ld_flag in $LDFLAGS; do 7540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7541 aix_use_runtimelinking=yes 7542 break 7543 fi 7544 done 7545 esac 7546 7547 exp_sym_flag='-bexport' 7548 no_entry_flag='-bnoentry' 7549 fi 7550 7551 # When large executables or shared objects are built, AIX ld can 7552 # have problems creating the table of contents. If linking a library 7553 # or program results in "error TOC overflow" add -mminimal-toc to 7554 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7555 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7556 7557 archive_cmds='' 7558 hardcode_direct=yes 7559 hardcode_libdir_separator=':' 7560 link_all_deplibs=yes 7561 7562 if test "$GCC" = yes; then 7563 case $host_os in aix4.[012]|aix4.[012].*) 7564 # We only want to do this on AIX 4.2 and lower, the check 7565 # below for broken collect2 doesn't work under 4.3+ 7566 collect2name=`${CC} -print-prog-name=collect2` 7567 if test -f "$collect2name" && \ 7568 strings "$collect2name" | grep resolve_lib_name >/dev/null 7569 then 7570 # We have reworked collect2 7571 hardcode_direct=yes 7572 else 7573 # We have old collect2 7574 hardcode_direct=unsupported 7575 # It fails to find uninstalled libraries when the uninstalled 7576 # path is not listed in the libpath. Setting hardcode_minus_L 7577 # to unsupported forces relinking 7578 hardcode_minus_L=yes 7579 hardcode_libdir_flag_spec='-L$libdir' 7580 hardcode_libdir_separator= 7581 fi 7582 esac 7583 shared_flag='-shared' 7584 if test "$aix_use_runtimelinking" = yes; then 7585 shared_flag="$shared_flag "'${wl}-G' 7586 fi 7587 else 7588 # not using gcc 7589 if test "$host_cpu" = ia64; then 7590 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7591 # chokes on -Wl,-G. The following line is correct: 7592 shared_flag='-G' 7593 else 7594 if test "$aix_use_runtimelinking" = yes; then 7595 shared_flag='${wl}-G' 7596 else 7597 shared_flag='${wl}-bM:SRE' 7598 fi 7599 fi 7600 fi 7601 7602 # It seems that -bexpall does not export symbols beginning with 7603 # underscore (_), so it is better to generate a list of symbols to export. 7604 always_export_symbols=yes 7605 if test "$aix_use_runtimelinking" = yes; then 7606 # Warning - without using the other runtime loading flags (-brtl), 7607 # -berok will link without error, but may produce a broken library. 7608 allow_undefined_flag='-berok' 7609 # Determine the default libpath from the value encoded in an empty executable. 7610 cat >conftest.$ac_ext <<_ACEOF 7611/* confdefs.h. */ 7612_ACEOF 7613cat confdefs.h >>conftest.$ac_ext 7614cat >>conftest.$ac_ext <<_ACEOF 7615/* end confdefs.h. */ 7616 7617int 7618main () 7619{ 7620 7621 ; 7622 return 0; 7623} 7624_ACEOF 7625rm -f conftest.$ac_objext conftest$ac_exeext 7626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7627 (eval $ac_link) 2>conftest.er1 7628 ac_status=$? 7629 grep -v '^ *+' conftest.er1 >conftest.err 7630 rm -f conftest.er1 7631 cat conftest.err >&5 7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7633 (exit $ac_status); } && 7634 { ac_try='test -z "$ac_c_werror_flag" 7635 || test ! -s conftest.err' 7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7637 (eval $ac_try) 2>&5 7638 ac_status=$? 7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7640 (exit $ac_status); }; } && 7641 { ac_try='test -s conftest$ac_exeext' 7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7643 (eval $ac_try) 2>&5 7644 ac_status=$? 7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7646 (exit $ac_status); }; }; then 7647 7648aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7649}'` 7650# Check for a 64-bit object if we didn't find anything. 7651if 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; } 7652}'`; fi 7653else 7654 echo "$as_me: failed program was:" >&5 7655sed 's/^/| /' conftest.$ac_ext >&5 7656 7657fi 7658rm -f conftest.err conftest.$ac_objext \ 7659 conftest$ac_exeext conftest.$ac_ext 7660if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7661 7662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7663 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7664 else 7665 if test "$host_cpu" = ia64; then 7666 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7667 allow_undefined_flag="-z nodefs" 7668 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 7669 else 7670 # Determine the default libpath from the value encoded in an empty executable. 7671 cat >conftest.$ac_ext <<_ACEOF 7672/* confdefs.h. */ 7673_ACEOF 7674cat confdefs.h >>conftest.$ac_ext 7675cat >>conftest.$ac_ext <<_ACEOF 7676/* end confdefs.h. */ 7677 7678int 7679main () 7680{ 7681 7682 ; 7683 return 0; 7684} 7685_ACEOF 7686rm -f conftest.$ac_objext conftest$ac_exeext 7687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7688 (eval $ac_link) 2>conftest.er1 7689 ac_status=$? 7690 grep -v '^ *+' conftest.er1 >conftest.err 7691 rm -f conftest.er1 7692 cat conftest.err >&5 7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7694 (exit $ac_status); } && 7695 { ac_try='test -z "$ac_c_werror_flag" 7696 || test ! -s conftest.err' 7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7698 (eval $ac_try) 2>&5 7699 ac_status=$? 7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7701 (exit $ac_status); }; } && 7702 { ac_try='test -s conftest$ac_exeext' 7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7704 (eval $ac_try) 2>&5 7705 ac_status=$? 7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7707 (exit $ac_status); }; }; then 7708 7709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7710}'` 7711# Check for a 64-bit object if we didn't find anything. 7712if 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; } 7713}'`; fi 7714else 7715 echo "$as_me: failed program was:" >&5 7716sed 's/^/| /' conftest.$ac_ext >&5 7717 7718fi 7719rm -f conftest.err conftest.$ac_objext \ 7720 conftest$ac_exeext conftest.$ac_ext 7721if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7722 7723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7724 # Warning - without using the other run time loading flags, 7725 # -berok will link without error, but may produce a broken library. 7726 no_undefined_flag=' ${wl}-bernotok' 7727 allow_undefined_flag=' ${wl}-berok' 7728 # -bexpall does not export symbols beginning with underscore (_) 7729 always_export_symbols=yes 7730 # Exported symbols can be pulled into shared objects from archives 7731 whole_archive_flag_spec=' ' 7732 archive_cmds_need_lc=yes 7733 # This is similar to how AIX traditionally builds its shared libraries. 7734 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7735 fi 7736 fi 7737 ;; 7738 7739 amigaos*) 7740 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)' 7741 hardcode_libdir_flag_spec='-L$libdir' 7742 hardcode_minus_L=yes 7743 # see comment about different semantics on the GNU ld section 7744 ld_shlibs=no 7745 ;; 7746 7747 bsdi[45]*) 7748 export_dynamic_flag_spec=-rdynamic 7749 ;; 7750 7751 cygwin* | mingw* | pw32*) 7752 # When not using gcc, we currently assume that we are using 7753 # Microsoft Visual C++. 7754 # hardcode_libdir_flag_spec is actually meaningless, as there is 7755 # no search path for DLLs. 7756 hardcode_libdir_flag_spec=' ' 7757 allow_undefined_flag=unsupported 7758 # Tell ltmain to make .lib files, not .a files. 7759 libext=lib 7760 # Tell ltmain to make .dll files, not .so files. 7761 shrext_cmds=".dll" 7762 # FIXME: Setting linknames here is a bad hack. 7763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7764 # The linker will automatically build a .lib file if we build a DLL. 7765 old_archive_From_new_cmds='true' 7766 # FIXME: Should let the user specify the lib program. 7767 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7768 fix_srcfile_path='`cygpath -w "$srcfile"`' 7769 enable_shared_with_static_runtimes=yes 7770 ;; 7771 7772 darwin* | rhapsody*) 7773 case $host_os in 7774 rhapsody* | darwin1.[012]) 7775 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7776 ;; 7777 *) # Darwin 1.3 on 7778 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7779 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7780 else 7781 case ${MACOSX_DEPLOYMENT_TARGET} in 7782 10.[012]) 7783 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7784 ;; 7785 10.*) 7786 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7787 ;; 7788 esac 7789 fi 7790 ;; 7791 esac 7792 archive_cmds_need_lc=no 7793 hardcode_direct=no 7794 hardcode_automatic=yes 7795 hardcode_shlibpath_var=unsupported 7796 whole_archive_flag_spec='' 7797 link_all_deplibs=yes 7798 if test "$GCC" = yes ; then 7799 output_verbose_link_cmd='echo' 7800 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7801 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7802 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7803 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}' 7804 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}' 7805 else 7806 case $cc_basename in 7807 xlc*) 7808 output_verbose_link_cmd='echo' 7809 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7810 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7811 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7812 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}' 7813 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}' 7814 ;; 7815 *) 7816 ld_shlibs=no 7817 ;; 7818 esac 7819 fi 7820 ;; 7821 7822 dgux*) 7823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7824 hardcode_libdir_flag_spec='-L$libdir' 7825 hardcode_shlibpath_var=no 7826 ;; 7827 7828 freebsd1*) 7829 ld_shlibs=no 7830 ;; 7831 7832 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7833 # support. Future versions do this automatically, but an explicit c++rt0.o 7834 # does not break anything, and helps significantly (at the cost of a little 7835 # extra space). 7836 freebsd2.2*) 7837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7838 hardcode_libdir_flag_spec='-R$libdir' 7839 hardcode_direct=yes 7840 hardcode_shlibpath_var=no 7841 ;; 7842 7843 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7844 freebsd2*) 7845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7846 hardcode_direct=yes 7847 hardcode_minus_L=yes 7848 hardcode_shlibpath_var=no 7849 ;; 7850 7851 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7852 freebsd* | kfreebsd*-gnu | dragonfly*) 7853 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7854 hardcode_libdir_flag_spec='-R$libdir' 7855 hardcode_direct=yes 7856 hardcode_shlibpath_var=no 7857 ;; 7858 7859 hpux9*) 7860 if test "$GCC" = yes; then 7861 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' 7862 else 7863 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' 7864 fi 7865 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7866 hardcode_libdir_separator=: 7867 hardcode_direct=yes 7868 7869 # hardcode_minus_L: Not really in the search PATH, 7870 # but as the default location of the library. 7871 hardcode_minus_L=yes 7872 export_dynamic_flag_spec='${wl}-E' 7873 ;; 7874 7875 hpux10* | hpux11*) 7876 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7877 case $host_cpu in 7878 hppa*64*|ia64*) 7879 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7880 ;; 7881 *) 7882 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7883 ;; 7884 esac 7885 else 7886 case $host_cpu in 7887 hppa*64*|ia64*) 7888 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7889 ;; 7890 *) 7891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7892 ;; 7893 esac 7894 fi 7895 if test "$with_gnu_ld" = no; then 7896 case $host_cpu in 7897 hppa*64*) 7898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7899 hardcode_libdir_flag_spec_ld='+b $libdir' 7900 hardcode_libdir_separator=: 7901 hardcode_direct=no 7902 hardcode_shlibpath_var=no 7903 ;; 7904 ia64*) 7905 hardcode_libdir_flag_spec='-L$libdir' 7906 hardcode_direct=no 7907 hardcode_shlibpath_var=no 7908 7909 # hardcode_minus_L: Not really in the search PATH, 7910 # but as the default location of the library. 7911 hardcode_minus_L=yes 7912 ;; 7913 *) 7914 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7915 hardcode_libdir_separator=: 7916 hardcode_direct=yes 7917 export_dynamic_flag_spec='${wl}-E' 7918 7919 # hardcode_minus_L: Not really in the search PATH, 7920 # but as the default location of the library. 7921 hardcode_minus_L=yes 7922 ;; 7923 esac 7924 fi 7925 ;; 7926 7927 irix5* | irix6* | nonstopux*) 7928 if test "$GCC" = yes; then 7929 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' 7930 else 7931 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' 7932 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7933 fi 7934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7935 hardcode_libdir_separator=: 7936 link_all_deplibs=yes 7937 ;; 7938 7939 netbsd*) 7940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7942 else 7943 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7944 fi 7945 hardcode_libdir_flag_spec='-R$libdir' 7946 hardcode_direct=yes 7947 hardcode_shlibpath_var=no 7948 ;; 7949 7950 newsos6) 7951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7952 hardcode_direct=yes 7953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7954 hardcode_libdir_separator=: 7955 hardcode_shlibpath_var=no 7956 ;; 7957 7958 openbsd*) 7959 hardcode_direct=yes 7960 hardcode_shlibpath_var=no 7961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7963 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7965 export_dynamic_flag_spec='${wl}-E' 7966 else 7967 case $host_os in 7968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7970 hardcode_libdir_flag_spec='-R$libdir' 7971 ;; 7972 *) 7973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7975 ;; 7976 esac 7977 fi 7978 ;; 7979 7980 os2*) 7981 hardcode_libdir_flag_spec='-L$libdir' 7982 hardcode_minus_L=yes 7983 allow_undefined_flag=unsupported 7984 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' 7985 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7986 ;; 7987 7988 osf3*) 7989 if test "$GCC" = yes; then 7990 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7991 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' 7992 else 7993 allow_undefined_flag=' -expect_unresolved \*' 7994 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' 7995 fi 7996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7997 hardcode_libdir_separator=: 7998 ;; 7999 8000 osf4* | osf5*) # as osf3* with the addition of -msym flag 8001 if test "$GCC" = yes; then 8002 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8003 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' 8004 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8005 else 8006 allow_undefined_flag=' -expect_unresolved \*' 8007 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' 8008 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8009 $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' 8010 8011 # Both c and cxx compiler support -rpath directly 8012 hardcode_libdir_flag_spec='-rpath $libdir' 8013 fi 8014 hardcode_libdir_separator=: 8015 ;; 8016 8017 sco3.2v5*) 8018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8019 hardcode_shlibpath_var=no 8020 export_dynamic_flag_spec='${wl}-Bexport' 8021 runpath_var=LD_RUN_PATH 8022 hardcode_runpath_var=yes 8023 ;; 8024 8025 solaris*) 8026 no_undefined_flag=' -z text' 8027 if test "$GCC" = yes; then 8028 wlarc='${wl}' 8029 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8030 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8031 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8032 else 8033 wlarc='' 8034 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8035 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8036 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8037 fi 8038 hardcode_libdir_flag_spec='-R$libdir' 8039 hardcode_shlibpath_var=no 8040 case $host_os in 8041 solaris2.[0-5] | solaris2.[0-5].*) ;; 8042 *) 8043 # The compiler driver will combine linker options so we 8044 # cannot just pass the convience library names through 8045 # without $wl, iff we do not link with $LD. 8046 # Luckily, gcc supports the same syntax we need for Sun Studio. 8047 # Supported since Solaris 2.6 (maybe 2.5.1?) 8048 case $wlarc in 8049 '') 8050 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8051 *) 8052 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' ;; 8053 esac ;; 8054 esac 8055 link_all_deplibs=yes 8056 ;; 8057 8058 sunos4*) 8059 if test "x$host_vendor" = xsequent; then 8060 # Use $CC to link under sequent, because it throws in some extra .o 8061 # files that make .init and .fini sections work. 8062 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8063 else 8064 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8065 fi 8066 hardcode_libdir_flag_spec='-L$libdir' 8067 hardcode_direct=yes 8068 hardcode_minus_L=yes 8069 hardcode_shlibpath_var=no 8070 ;; 8071 8072 sysv4) 8073 case $host_vendor in 8074 sni) 8075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8076 hardcode_direct=yes # is this really true??? 8077 ;; 8078 siemens) 8079 ## LD is ld it makes a PLAMLIB 8080 ## CC just makes a GrossModule. 8081 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8082 reload_cmds='$CC -r -o $output$reload_objs' 8083 hardcode_direct=no 8084 ;; 8085 motorola) 8086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8087 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8088 ;; 8089 esac 8090 runpath_var='LD_RUN_PATH' 8091 hardcode_shlibpath_var=no 8092 ;; 8093 8094 sysv4.3*) 8095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8096 hardcode_shlibpath_var=no 8097 export_dynamic_flag_spec='-Bexport' 8098 ;; 8099 8100 sysv4*MP*) 8101 if test -d /usr/nec; then 8102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8103 hardcode_shlibpath_var=no 8104 runpath_var=LD_RUN_PATH 8105 hardcode_runpath_var=yes 8106 ld_shlibs=yes 8107 fi 8108 ;; 8109 8110 sysv4.2uw2*) 8111 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8112 hardcode_direct=yes 8113 hardcode_minus_L=no 8114 hardcode_shlibpath_var=no 8115 hardcode_runpath_var=yes 8116 runpath_var=LD_RUN_PATH 8117 ;; 8118 8119 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 8120 no_undefined_flag='${wl}-z ${wl}text' 8121 if test "$GCC" = yes; then 8122 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8123 else 8124 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8125 fi 8126 runpath_var='LD_RUN_PATH' 8127 hardcode_shlibpath_var=no 8128 ;; 8129 8130 sysv5*) 8131 no_undefined_flag=' -z text' 8132 # $CC -shared without GNU ld will not create a library from C++ 8133 # object files and a static libstdc++, better avoid it by now 8134 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8135 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8136 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8137 hardcode_libdir_flag_spec= 8138 hardcode_shlibpath_var=no 8139 runpath_var='LD_RUN_PATH' 8140 ;; 8141 8142 uts4*) 8143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8144 hardcode_libdir_flag_spec='-L$libdir' 8145 hardcode_shlibpath_var=no 8146 ;; 8147 8148 *) 8149 ld_shlibs=no 8150 ;; 8151 esac 8152 fi 8153 8154echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8155echo "${ECHO_T}$ld_shlibs" >&6 8156test "$ld_shlibs" = no && can_build_shared=no 8157 8158variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8159if test "$GCC" = yes; then 8160 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8161fi 8162 8163# 8164# Do we need to explicitly link libc? 8165# 8166case "x$archive_cmds_need_lc" in 8167x|xyes) 8168 # Assume -lc should be added 8169 archive_cmds_need_lc=yes 8170 8171 if test "$enable_shared" = yes && test "$GCC" = yes; then 8172 case $archive_cmds in 8173 *'~'*) 8174 # FIXME: we may have to deal with multi-command sequences. 8175 ;; 8176 '$CC '*) 8177 # Test whether the compiler implicitly links with -lc since on some 8178 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8179 # to ld, don't add -lc before -lgcc. 8180 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8181echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8182 $rm conftest* 8183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8184 8185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8186 (eval $ac_compile) 2>&5 8187 ac_status=$? 8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8189 (exit $ac_status); } 2>conftest.err; then 8190 soname=conftest 8191 lib=conftest 8192 libobjs=conftest.$ac_objext 8193 deplibs= 8194 wl=$lt_prog_compiler_wl 8195 compiler_flags=-v 8196 linker_flags=-v 8197 verstring= 8198 output_objdir=. 8199 libname=conftest 8200 lt_save_allow_undefined_flag=$allow_undefined_flag 8201 allow_undefined_flag= 8202 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8203 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8204 ac_status=$? 8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8206 (exit $ac_status); } 8207 then 8208 archive_cmds_need_lc=no 8209 else 8210 archive_cmds_need_lc=yes 8211 fi 8212 allow_undefined_flag=$lt_save_allow_undefined_flag 8213 else 8214 cat conftest.err 1>&5 8215 fi 8216 $rm conftest* 8217 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8218echo "${ECHO_T}$archive_cmds_need_lc" >&6 8219 ;; 8220 esac 8221 fi 8222 ;; 8223esac 8224 8225echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8226echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8227library_names_spec= 8228libname_spec='lib$name' 8229soname_spec= 8230shrext_cmds=".so" 8231postinstall_cmds= 8232postuninstall_cmds= 8233finish_cmds= 8234finish_eval= 8235shlibpath_var= 8236shlibpath_overrides_runpath=unknown 8237version_type=none 8238dynamic_linker="$host_os ld.so" 8239sys_lib_dlsearch_path_spec="/lib /usr/lib" 8240if test "$GCC" = yes; then 8241 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8242 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8243 # if the path contains ";" then we assume it to be the separator 8244 # otherwise default to the standard path separator (i.e. ":") - it is 8245 # assumed that no part of a normal pathname contains ";" but that should 8246 # okay in the real world where ";" in dirpaths is itself problematic. 8247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8248 else 8249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8250 fi 8251else 8252 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8253fi 8254need_lib_prefix=unknown 8255hardcode_into_libs=no 8256 8257# when you set need_version to no, make sure it does not cause -set_version 8258# flags to be left without arguments 8259need_version=unknown 8260 8261case $host_os in 8262aix3*) 8263 version_type=linux 8264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8265 shlibpath_var=LIBPATH 8266 8267 # AIX 3 has no versioning support, so we append a major version to the name. 8268 soname_spec='${libname}${release}${shared_ext}$major' 8269 ;; 8270 8271aix4* | aix5*) 8272 version_type=linux 8273 need_lib_prefix=no 8274 need_version=no 8275 hardcode_into_libs=yes 8276 if test "$host_cpu" = ia64; then 8277 # AIX 5 supports IA64 8278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8279 shlibpath_var=LD_LIBRARY_PATH 8280 else 8281 # With GCC up to 2.95.x, collect2 would create an import file 8282 # for dependence libraries. The import file would start with 8283 # the line `#! .'. This would cause the generated library to 8284 # depend on `.', always an invalid library. This was fixed in 8285 # development snapshots of GCC prior to 3.0. 8286 case $host_os in 8287 aix4 | aix4.[01] | aix4.[01].*) 8288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8289 echo ' yes ' 8290 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8291 : 8292 else 8293 can_build_shared=no 8294 fi 8295 ;; 8296 esac 8297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8298 # soname into executable. Probably we can add versioning support to 8299 # collect2, so additional links can be useful in future. 8300 if test "$aix_use_runtimelinking" = yes; then 8301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8302 # instead of lib<name>.a to let people know that these are not 8303 # typical AIX shared libraries. 8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8305 else 8306 # We preserve .a as extension for shared libraries through AIX4.2 8307 # and later when we are not doing run time linking. 8308 library_names_spec='${libname}${release}.a $libname.a' 8309 soname_spec='${libname}${release}${shared_ext}$major' 8310 fi 8311 shlibpath_var=LIBPATH 8312 fi 8313 ;; 8314 8315amigaos*) 8316 library_names_spec='$libname.ixlibrary $libname.a' 8317 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8318 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' 8319 ;; 8320 8321beos*) 8322 library_names_spec='${libname}${shared_ext}' 8323 dynamic_linker="$host_os ld.so" 8324 shlibpath_var=LIBRARY_PATH 8325 ;; 8326 8327bsdi[45]*) 8328 version_type=linux 8329 need_version=no 8330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8331 soname_spec='${libname}${release}${shared_ext}$major' 8332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8333 shlibpath_var=LD_LIBRARY_PATH 8334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8336 # the default ld.so.conf also contains /usr/contrib/lib and 8337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8338 # libtool to hard-code these into programs 8339 ;; 8340 8341cygwin* | mingw* | pw32*) 8342 version_type=windows 8343 shrext_cmds=".dll" 8344 need_version=no 8345 need_lib_prefix=no 8346 8347 case $GCC,$host_os in 8348 yes,cygwin* | yes,mingw* | yes,pw32*) 8349 library_names_spec='$libname.dll.a' 8350 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8351 postinstall_cmds='base_file=`basename \${file}`~ 8352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8353 dldir=$destdir/`dirname \$dlpath`~ 8354 test -d \$dldir || mkdir -p \$dldir~ 8355 $install_prog $dir/$dlname \$dldir/$dlname~ 8356 chmod a+x \$dldir/$dlname' 8357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8358 dlpath=$dir/\$dldll~ 8359 $rm \$dlpath' 8360 shlibpath_overrides_runpath=yes 8361 8362 case $host_os in 8363 cygwin*) 8364 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8365 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8366 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8367 ;; 8368 mingw*) 8369 # MinGW DLLs use traditional 'lib' prefix 8370 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8372 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8373 # It is most probably a Windows format PATH printed by 8374 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8375 # path with ; separators, and with drive letters. We can handle the 8376 # drive letters (cygwin fileutils understands them), so leave them, 8377 # especially as we might pass files found there to a mingw objdump, 8378 # which wouldn't understand a cygwinified path. Ahh. 8379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8380 else 8381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8382 fi 8383 ;; 8384 pw32*) 8385 # pw32 DLLs use 'pw' prefix rather than 'lib' 8386 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8387 ;; 8388 esac 8389 ;; 8390 8391 *) 8392 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8393 ;; 8394 esac 8395 dynamic_linker='Win32 ld.exe' 8396 # FIXME: first we should search . and the directory the executable is in 8397 shlibpath_var=PATH 8398 ;; 8399 8400darwin* | rhapsody*) 8401 dynamic_linker="$host_os dyld" 8402 version_type=darwin 8403 need_lib_prefix=no 8404 need_version=no 8405 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8406 soname_spec='${libname}${release}${major}$shared_ext' 8407 shlibpath_overrides_runpath=yes 8408 shlibpath_var=DYLD_LIBRARY_PATH 8409 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8410 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8411 if test "$GCC" = yes; then 8412 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"` 8413 else 8414 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8415 fi 8416 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8417 ;; 8418 8419dgux*) 8420 version_type=linux 8421 need_lib_prefix=no 8422 need_version=no 8423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8424 soname_spec='${libname}${release}${shared_ext}$major' 8425 shlibpath_var=LD_LIBRARY_PATH 8426 ;; 8427 8428freebsd1*) 8429 dynamic_linker=no 8430 ;; 8431 8432kfreebsd*-gnu) 8433 version_type=linux 8434 need_lib_prefix=no 8435 need_version=no 8436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8437 soname_spec='${libname}${release}${shared_ext}$major' 8438 shlibpath_var=LD_LIBRARY_PATH 8439 shlibpath_overrides_runpath=no 8440 hardcode_into_libs=yes 8441 dynamic_linker='GNU ld.so' 8442 ;; 8443 8444freebsd* | dragonfly*) 8445 # DragonFly does not have aout. When/if they implement a new 8446 # versioning mechanism, adjust this. 8447 if test -x /usr/bin/objformat; then 8448 objformat=`/usr/bin/objformat` 8449 else 8450 case $host_os in 8451 freebsd[123]*) objformat=aout ;; 8452 *) objformat=elf ;; 8453 esac 8454 fi 8455 version_type=freebsd-$objformat 8456 case $version_type in 8457 freebsd-elf*) 8458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8459 need_version=no 8460 need_lib_prefix=no 8461 ;; 8462 freebsd-*) 8463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8464 need_version=yes 8465 ;; 8466 esac 8467 shlibpath_var=LD_LIBRARY_PATH 8468 case $host_os in 8469 freebsd2*) 8470 shlibpath_overrides_runpath=yes 8471 ;; 8472 freebsd3.[01]* | freebsdelf3.[01]*) 8473 shlibpath_overrides_runpath=yes 8474 hardcode_into_libs=yes 8475 ;; 8476 *) # from 3.2 on 8477 shlibpath_overrides_runpath=no 8478 hardcode_into_libs=yes 8479 ;; 8480 esac 8481 ;; 8482 8483gnu*) 8484 version_type=linux 8485 need_lib_prefix=no 8486 need_version=no 8487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8488 soname_spec='${libname}${release}${shared_ext}$major' 8489 shlibpath_var=LD_LIBRARY_PATH 8490 hardcode_into_libs=yes 8491 ;; 8492 8493hpux9* | hpux10* | hpux11*) 8494 # Give a soname corresponding to the major version so that dld.sl refuses to 8495 # link against other versions. 8496 version_type=sunos 8497 need_lib_prefix=no 8498 need_version=no 8499 case $host_cpu in 8500 ia64*) 8501 shrext_cmds='.so' 8502 hardcode_into_libs=yes 8503 dynamic_linker="$host_os dld.so" 8504 shlibpath_var=LD_LIBRARY_PATH 8505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8507 soname_spec='${libname}${release}${shared_ext}$major' 8508 if test "X$HPUX_IA64_MODE" = X32; then 8509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8510 else 8511 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8512 fi 8513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8514 ;; 8515 hppa*64*) 8516 shrext_cmds='.sl' 8517 hardcode_into_libs=yes 8518 dynamic_linker="$host_os dld.sl" 8519 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8522 soname_spec='${libname}${release}${shared_ext}$major' 8523 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8525 ;; 8526 *) 8527 shrext_cmds='.sl' 8528 dynamic_linker="$host_os dld.sl" 8529 shlibpath_var=SHLIB_PATH 8530 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8532 soname_spec='${libname}${release}${shared_ext}$major' 8533 ;; 8534 esac 8535 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8536 postinstall_cmds='chmod 555 $lib' 8537 ;; 8538 8539irix5* | irix6* | nonstopux*) 8540 case $host_os in 8541 nonstopux*) version_type=nonstopux ;; 8542 *) 8543 if test "$lt_cv_prog_gnu_ld" = yes; then 8544 version_type=linux 8545 else 8546 version_type=irix 8547 fi ;; 8548 esac 8549 need_lib_prefix=no 8550 need_version=no 8551 soname_spec='${libname}${release}${shared_ext}$major' 8552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8553 case $host_os in 8554 irix5* | nonstopux*) 8555 libsuff= shlibsuff= 8556 ;; 8557 *) 8558 case $LD in # libtool.m4 will add one of these switches to LD 8559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8560 libsuff= shlibsuff= libmagic=32-bit;; 8561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8562 libsuff=32 shlibsuff=N32 libmagic=N32;; 8563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8564 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8565 *) libsuff= shlibsuff= libmagic=never-match;; 8566 esac 8567 ;; 8568 esac 8569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8570 shlibpath_overrides_runpath=no 8571 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8572 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8573 hardcode_into_libs=yes 8574 ;; 8575 8576# No shared lib support for Linux oldld, aout, or coff. 8577linux*oldld* | linux*aout* | linux*coff*) 8578 dynamic_linker=no 8579 ;; 8580 8581# This must be Linux ELF. 8582linux*) 8583 version_type=linux 8584 need_lib_prefix=no 8585 need_version=no 8586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8587 soname_spec='${libname}${release}${shared_ext}$major' 8588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8589 shlibpath_var=LD_LIBRARY_PATH 8590 shlibpath_overrides_runpath=no 8591 # This implies no fast_install, which is unacceptable. 8592 # Some rework will be needed to allow for fast_install 8593 # before this can be enabled. 8594 hardcode_into_libs=yes 8595 8596 # Append ld.so.conf contents to the search path 8597 if test -f /etc/ld.so.conf; then 8598 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8600 fi 8601 8602 # We used to test for /lib/ld.so.1 and disable shared libraries on 8603 # powerpc, because MkLinux only supported shared libraries with the 8604 # GNU dynamic linker. Since this was broken with cross compilers, 8605 # most powerpc-linux boxes support dynamic linking these days and 8606 # people can always --disable-shared, the test was removed, and we 8607 # assume the GNU/Linux dynamic linker is in use. 8608 dynamic_linker='GNU/Linux ld.so' 8609 ;; 8610 8611knetbsd*-gnu) 8612 version_type=linux 8613 need_lib_prefix=no 8614 need_version=no 8615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8616 soname_spec='${libname}${release}${shared_ext}$major' 8617 shlibpath_var=LD_LIBRARY_PATH 8618 shlibpath_overrides_runpath=no 8619 hardcode_into_libs=yes 8620 dynamic_linker='GNU ld.so' 8621 ;; 8622 8623netbsd*) 8624 version_type=sunos 8625 need_lib_prefix=no 8626 need_version=no 8627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8630 dynamic_linker='NetBSD (a.out) ld.so' 8631 else 8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8633 soname_spec='${libname}${release}${shared_ext}$major' 8634 dynamic_linker='NetBSD ld.elf_so' 8635 fi 8636 shlibpath_var=LD_LIBRARY_PATH 8637 shlibpath_overrides_runpath=yes 8638 hardcode_into_libs=yes 8639 ;; 8640 8641newsos6) 8642 version_type=linux 8643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8644 shlibpath_var=LD_LIBRARY_PATH 8645 shlibpath_overrides_runpath=yes 8646 ;; 8647 8648nto-qnx*) 8649 version_type=linux 8650 need_lib_prefix=no 8651 need_version=no 8652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8653 soname_spec='${libname}${release}${shared_ext}$major' 8654 shlibpath_var=LD_LIBRARY_PATH 8655 shlibpath_overrides_runpath=yes 8656 ;; 8657 8658openbsd*) 8659 version_type=sunos 8660 need_lib_prefix=no 8661 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8662 case $host_os in 8663 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8664 *) need_version=no ;; 8665 esac 8666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8668 shlibpath_var=LD_LIBRARY_PATH 8669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8670 case $host_os in 8671 openbsd2.[89] | openbsd2.[89].*) 8672 shlibpath_overrides_runpath=no 8673 ;; 8674 *) 8675 shlibpath_overrides_runpath=yes 8676 ;; 8677 esac 8678 else 8679 shlibpath_overrides_runpath=yes 8680 fi 8681 ;; 8682 8683os2*) 8684 libname_spec='$name' 8685 shrext_cmds=".dll" 8686 need_lib_prefix=no 8687 library_names_spec='$libname${shared_ext} $libname.a' 8688 dynamic_linker='OS/2 ld.exe' 8689 shlibpath_var=LIBPATH 8690 ;; 8691 8692osf3* | osf4* | osf5*) 8693 version_type=osf 8694 need_lib_prefix=no 8695 need_version=no 8696 soname_spec='${libname}${release}${shared_ext}$major' 8697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8698 shlibpath_var=LD_LIBRARY_PATH 8699 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8700 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8701 ;; 8702 8703sco3.2v5*) 8704 version_type=osf 8705 soname_spec='${libname}${release}${shared_ext}$major' 8706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8707 shlibpath_var=LD_LIBRARY_PATH 8708 ;; 8709 8710solaris*) 8711 version_type=linux 8712 need_lib_prefix=no 8713 need_version=no 8714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8715 soname_spec='${libname}${release}${shared_ext}$major' 8716 shlibpath_var=LD_LIBRARY_PATH 8717 shlibpath_overrides_runpath=yes 8718 hardcode_into_libs=yes 8719 # ldd complains unless libraries are executable 8720 postinstall_cmds='chmod +x $lib' 8721 ;; 8722 8723sunos4*) 8724 version_type=sunos 8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8726 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8727 shlibpath_var=LD_LIBRARY_PATH 8728 shlibpath_overrides_runpath=yes 8729 if test "$with_gnu_ld" = yes; then 8730 need_lib_prefix=no 8731 fi 8732 need_version=yes 8733 ;; 8734 8735sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8736 version_type=linux 8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8738 soname_spec='${libname}${release}${shared_ext}$major' 8739 shlibpath_var=LD_LIBRARY_PATH 8740 case $host_vendor in 8741 sni) 8742 shlibpath_overrides_runpath=no 8743 need_lib_prefix=no 8744 export_dynamic_flag_spec='${wl}-Blargedynsym' 8745 runpath_var=LD_RUN_PATH 8746 ;; 8747 siemens) 8748 need_lib_prefix=no 8749 ;; 8750 motorola) 8751 need_lib_prefix=no 8752 need_version=no 8753 shlibpath_overrides_runpath=no 8754 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8755 ;; 8756 esac 8757 ;; 8758 8759sysv4*MP*) 8760 if test -d /usr/nec ;then 8761 version_type=linux 8762 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8763 soname_spec='$libname${shared_ext}.$major' 8764 shlibpath_var=LD_LIBRARY_PATH 8765 fi 8766 ;; 8767 8768uts4*) 8769 version_type=linux 8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8771 soname_spec='${libname}${release}${shared_ext}$major' 8772 shlibpath_var=LD_LIBRARY_PATH 8773 ;; 8774 8775*) 8776 dynamic_linker=no 8777 ;; 8778esac 8779echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8780echo "${ECHO_T}$dynamic_linker" >&6 8781test "$dynamic_linker" = no && can_build_shared=no 8782 8783echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8784echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8785hardcode_action= 8786if test -n "$hardcode_libdir_flag_spec" || \ 8787 test -n "$runpath_var" || \ 8788 test "X$hardcode_automatic" = "Xyes" ; then 8789 8790 # We can hardcode non-existant directories. 8791 if test "$hardcode_direct" != no && 8792 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8793 # have to relink, otherwise we might link with an installed library 8794 # when we should be linking with a yet-to-be-installed one 8795 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8796 test "$hardcode_minus_L" != no; then 8797 # Linking always hardcodes the temporary library directory. 8798 hardcode_action=relink 8799 else 8800 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8801 hardcode_action=immediate 8802 fi 8803else 8804 # We cannot hardcode anything, or else we can only hardcode existing 8805 # directories. 8806 hardcode_action=unsupported 8807fi 8808echo "$as_me:$LINENO: result: $hardcode_action" >&5 8809echo "${ECHO_T}$hardcode_action" >&6 8810 8811if test "$hardcode_action" = relink; then 8812 # Fast installation is not supported 8813 enable_fast_install=no 8814elif test "$shlibpath_overrides_runpath" = yes || 8815 test "$enable_shared" = no; then 8816 # Fast installation is not necessary 8817 enable_fast_install=needless 8818fi 8819 8820striplib= 8821old_striplib= 8822echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8823echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8824if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8825 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8826 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8827 echo "$as_me:$LINENO: result: yes" >&5 8828echo "${ECHO_T}yes" >&6 8829else 8830# FIXME - insert some real tests, host_os isn't really good enough 8831 case $host_os in 8832 darwin*) 8833 if test -n "$STRIP" ; then 8834 striplib="$STRIP -x" 8835 echo "$as_me:$LINENO: result: yes" >&5 8836echo "${ECHO_T}yes" >&6 8837 else 8838 echo "$as_me:$LINENO: result: no" >&5 8839echo "${ECHO_T}no" >&6 8840fi 8841 ;; 8842 *) 8843 echo "$as_me:$LINENO: result: no" >&5 8844echo "${ECHO_T}no" >&6 8845 ;; 8846 esac 8847fi 8848 8849if test "x$enable_dlopen" != xyes; then 8850 enable_dlopen=unknown 8851 enable_dlopen_self=unknown 8852 enable_dlopen_self_static=unknown 8853else 8854 lt_cv_dlopen=no 8855 lt_cv_dlopen_libs= 8856 8857 case $host_os in 8858 beos*) 8859 lt_cv_dlopen="load_add_on" 8860 lt_cv_dlopen_libs= 8861 lt_cv_dlopen_self=yes 8862 ;; 8863 8864 mingw* | pw32*) 8865 lt_cv_dlopen="LoadLibrary" 8866 lt_cv_dlopen_libs= 8867 ;; 8868 8869 cygwin*) 8870 lt_cv_dlopen="dlopen" 8871 lt_cv_dlopen_libs= 8872 ;; 8873 8874 darwin*) 8875 # if libdl is installed we need to link against it 8876 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8877echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8878if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8879 echo $ECHO_N "(cached) $ECHO_C" >&6 8880else 8881 ac_check_lib_save_LIBS=$LIBS 8882LIBS="-ldl $LIBS" 8883cat >conftest.$ac_ext <<_ACEOF 8884/* confdefs.h. */ 8885_ACEOF 8886cat confdefs.h >>conftest.$ac_ext 8887cat >>conftest.$ac_ext <<_ACEOF 8888/* end confdefs.h. */ 8889 8890/* Override any gcc2 internal prototype to avoid an error. */ 8891#ifdef __cplusplus 8892extern "C" 8893#endif 8894/* We use char because int might match the return type of a gcc2 8895 builtin and then its argument prototype would still apply. */ 8896char dlopen (); 8897int 8898main () 8899{ 8900dlopen (); 8901 ; 8902 return 0; 8903} 8904_ACEOF 8905rm -f conftest.$ac_objext conftest$ac_exeext 8906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8907 (eval $ac_link) 2>conftest.er1 8908 ac_status=$? 8909 grep -v '^ *+' conftest.er1 >conftest.err 8910 rm -f conftest.er1 8911 cat conftest.err >&5 8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8913 (exit $ac_status); } && 8914 { ac_try='test -z "$ac_c_werror_flag" 8915 || test ! -s conftest.err' 8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8917 (eval $ac_try) 2>&5 8918 ac_status=$? 8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8920 (exit $ac_status); }; } && 8921 { ac_try='test -s conftest$ac_exeext' 8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8923 (eval $ac_try) 2>&5 8924 ac_status=$? 8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8926 (exit $ac_status); }; }; then 8927 ac_cv_lib_dl_dlopen=yes 8928else 8929 echo "$as_me: failed program was:" >&5 8930sed 's/^/| /' conftest.$ac_ext >&5 8931 8932ac_cv_lib_dl_dlopen=no 8933fi 8934rm -f conftest.err conftest.$ac_objext \ 8935 conftest$ac_exeext conftest.$ac_ext 8936LIBS=$ac_check_lib_save_LIBS 8937fi 8938echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8939echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8940if test $ac_cv_lib_dl_dlopen = yes; then 8941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8942else 8943 8944 lt_cv_dlopen="dyld" 8945 lt_cv_dlopen_libs= 8946 lt_cv_dlopen_self=yes 8947 8948fi 8949 8950 ;; 8951 8952 *) 8953 echo "$as_me:$LINENO: checking for shl_load" >&5 8954echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8955if test "${ac_cv_func_shl_load+set}" = set; then 8956 echo $ECHO_N "(cached) $ECHO_C" >&6 8957else 8958 cat >conftest.$ac_ext <<_ACEOF 8959/* confdefs.h. */ 8960_ACEOF 8961cat confdefs.h >>conftest.$ac_ext 8962cat >>conftest.$ac_ext <<_ACEOF 8963/* end confdefs.h. */ 8964/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8965 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8966#define shl_load innocuous_shl_load 8967 8968/* System header to define __stub macros and hopefully few prototypes, 8969 which can conflict with char shl_load (); below. 8970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8971 <limits.h> exists even on freestanding compilers. */ 8972 8973#ifdef __STDC__ 8974# include <limits.h> 8975#else 8976# include <assert.h> 8977#endif 8978 8979#undef shl_load 8980 8981/* Override any gcc2 internal prototype to avoid an error. */ 8982#ifdef __cplusplus 8983extern "C" 8984{ 8985#endif 8986/* We use char because int might match the return type of a gcc2 8987 builtin and then its argument prototype would still apply. */ 8988char shl_load (); 8989/* The GNU C library defines this for functions which it implements 8990 to always fail with ENOSYS. Some functions are actually named 8991 something starting with __ and the normal name is an alias. */ 8992#if defined (__stub_shl_load) || defined (__stub___shl_load) 8993choke me 8994#else 8995char (*f) () = shl_load; 8996#endif 8997#ifdef __cplusplus 8998} 8999#endif 9000 9001int 9002main () 9003{ 9004return f != shl_load; 9005 ; 9006 return 0; 9007} 9008_ACEOF 9009rm -f conftest.$ac_objext conftest$ac_exeext 9010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9011 (eval $ac_link) 2>conftest.er1 9012 ac_status=$? 9013 grep -v '^ *+' conftest.er1 >conftest.err 9014 rm -f conftest.er1 9015 cat conftest.err >&5 9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9017 (exit $ac_status); } && 9018 { ac_try='test -z "$ac_c_werror_flag" 9019 || test ! -s conftest.err' 9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9021 (eval $ac_try) 2>&5 9022 ac_status=$? 9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9024 (exit $ac_status); }; } && 9025 { ac_try='test -s conftest$ac_exeext' 9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9027 (eval $ac_try) 2>&5 9028 ac_status=$? 9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9030 (exit $ac_status); }; }; then 9031 ac_cv_func_shl_load=yes 9032else 9033 echo "$as_me: failed program was:" >&5 9034sed 's/^/| /' conftest.$ac_ext >&5 9035 9036ac_cv_func_shl_load=no 9037fi 9038rm -f conftest.err conftest.$ac_objext \ 9039 conftest$ac_exeext conftest.$ac_ext 9040fi 9041echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9042echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9043if test $ac_cv_func_shl_load = yes; then 9044 lt_cv_dlopen="shl_load" 9045else 9046 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9047echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9048if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9049 echo $ECHO_N "(cached) $ECHO_C" >&6 9050else 9051 ac_check_lib_save_LIBS=$LIBS 9052LIBS="-ldld $LIBS" 9053cat >conftest.$ac_ext <<_ACEOF 9054/* confdefs.h. */ 9055_ACEOF 9056cat confdefs.h >>conftest.$ac_ext 9057cat >>conftest.$ac_ext <<_ACEOF 9058/* end confdefs.h. */ 9059 9060/* Override any gcc2 internal prototype to avoid an error. */ 9061#ifdef __cplusplus 9062extern "C" 9063#endif 9064/* We use char because int might match the return type of a gcc2 9065 builtin and then its argument prototype would still apply. */ 9066char shl_load (); 9067int 9068main () 9069{ 9070shl_load (); 9071 ; 9072 return 0; 9073} 9074_ACEOF 9075rm -f conftest.$ac_objext conftest$ac_exeext 9076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9077 (eval $ac_link) 2>conftest.er1 9078 ac_status=$? 9079 grep -v '^ *+' conftest.er1 >conftest.err 9080 rm -f conftest.er1 9081 cat conftest.err >&5 9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9083 (exit $ac_status); } && 9084 { ac_try='test -z "$ac_c_werror_flag" 9085 || test ! -s conftest.err' 9086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9087 (eval $ac_try) 2>&5 9088 ac_status=$? 9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9090 (exit $ac_status); }; } && 9091 { ac_try='test -s conftest$ac_exeext' 9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9093 (eval $ac_try) 2>&5 9094 ac_status=$? 9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9096 (exit $ac_status); }; }; then 9097 ac_cv_lib_dld_shl_load=yes 9098else 9099 echo "$as_me: failed program was:" >&5 9100sed 's/^/| /' conftest.$ac_ext >&5 9101 9102ac_cv_lib_dld_shl_load=no 9103fi 9104rm -f conftest.err conftest.$ac_objext \ 9105 conftest$ac_exeext conftest.$ac_ext 9106LIBS=$ac_check_lib_save_LIBS 9107fi 9108echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9109echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9110if test $ac_cv_lib_dld_shl_load = yes; then 9111 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9112else 9113 echo "$as_me:$LINENO: checking for dlopen" >&5 9114echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9115if test "${ac_cv_func_dlopen+set}" = set; then 9116 echo $ECHO_N "(cached) $ECHO_C" >&6 9117else 9118 cat >conftest.$ac_ext <<_ACEOF 9119/* confdefs.h. */ 9120_ACEOF 9121cat confdefs.h >>conftest.$ac_ext 9122cat >>conftest.$ac_ext <<_ACEOF 9123/* end confdefs.h. */ 9124/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9125 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9126#define dlopen innocuous_dlopen 9127 9128/* System header to define __stub macros and hopefully few prototypes, 9129 which can conflict with char dlopen (); below. 9130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9131 <limits.h> exists even on freestanding compilers. */ 9132 9133#ifdef __STDC__ 9134# include <limits.h> 9135#else 9136# include <assert.h> 9137#endif 9138 9139#undef dlopen 9140 9141/* Override any gcc2 internal prototype to avoid an error. */ 9142#ifdef __cplusplus 9143extern "C" 9144{ 9145#endif 9146/* We use char because int might match the return type of a gcc2 9147 builtin and then its argument prototype would still apply. */ 9148char dlopen (); 9149/* The GNU C library defines this for functions which it implements 9150 to always fail with ENOSYS. Some functions are actually named 9151 something starting with __ and the normal name is an alias. */ 9152#if defined (__stub_dlopen) || defined (__stub___dlopen) 9153choke me 9154#else 9155char (*f) () = dlopen; 9156#endif 9157#ifdef __cplusplus 9158} 9159#endif 9160 9161int 9162main () 9163{ 9164return f != dlopen; 9165 ; 9166 return 0; 9167} 9168_ACEOF 9169rm -f conftest.$ac_objext conftest$ac_exeext 9170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9171 (eval $ac_link) 2>conftest.er1 9172 ac_status=$? 9173 grep -v '^ *+' conftest.er1 >conftest.err 9174 rm -f conftest.er1 9175 cat conftest.err >&5 9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9177 (exit $ac_status); } && 9178 { ac_try='test -z "$ac_c_werror_flag" 9179 || test ! -s conftest.err' 9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9181 (eval $ac_try) 2>&5 9182 ac_status=$? 9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9184 (exit $ac_status); }; } && 9185 { ac_try='test -s conftest$ac_exeext' 9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9187 (eval $ac_try) 2>&5 9188 ac_status=$? 9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9190 (exit $ac_status); }; }; then 9191 ac_cv_func_dlopen=yes 9192else 9193 echo "$as_me: failed program was:" >&5 9194sed 's/^/| /' conftest.$ac_ext >&5 9195 9196ac_cv_func_dlopen=no 9197fi 9198rm -f conftest.err conftest.$ac_objext \ 9199 conftest$ac_exeext conftest.$ac_ext 9200fi 9201echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9202echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9203if test $ac_cv_func_dlopen = yes; then 9204 lt_cv_dlopen="dlopen" 9205else 9206 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9207echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9208if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9209 echo $ECHO_N "(cached) $ECHO_C" >&6 9210else 9211 ac_check_lib_save_LIBS=$LIBS 9212LIBS="-ldl $LIBS" 9213cat >conftest.$ac_ext <<_ACEOF 9214/* confdefs.h. */ 9215_ACEOF 9216cat confdefs.h >>conftest.$ac_ext 9217cat >>conftest.$ac_ext <<_ACEOF 9218/* end confdefs.h. */ 9219 9220/* Override any gcc2 internal prototype to avoid an error. */ 9221#ifdef __cplusplus 9222extern "C" 9223#endif 9224/* We use char because int might match the return type of a gcc2 9225 builtin and then its argument prototype would still apply. */ 9226char dlopen (); 9227int 9228main () 9229{ 9230dlopen (); 9231 ; 9232 return 0; 9233} 9234_ACEOF 9235rm -f conftest.$ac_objext conftest$ac_exeext 9236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9237 (eval $ac_link) 2>conftest.er1 9238 ac_status=$? 9239 grep -v '^ *+' conftest.er1 >conftest.err 9240 rm -f conftest.er1 9241 cat conftest.err >&5 9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9243 (exit $ac_status); } && 9244 { ac_try='test -z "$ac_c_werror_flag" 9245 || test ! -s conftest.err' 9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9247 (eval $ac_try) 2>&5 9248 ac_status=$? 9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9250 (exit $ac_status); }; } && 9251 { ac_try='test -s conftest$ac_exeext' 9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9253 (eval $ac_try) 2>&5 9254 ac_status=$? 9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9256 (exit $ac_status); }; }; then 9257 ac_cv_lib_dl_dlopen=yes 9258else 9259 echo "$as_me: failed program was:" >&5 9260sed 's/^/| /' conftest.$ac_ext >&5 9261 9262ac_cv_lib_dl_dlopen=no 9263fi 9264rm -f conftest.err conftest.$ac_objext \ 9265 conftest$ac_exeext conftest.$ac_ext 9266LIBS=$ac_check_lib_save_LIBS 9267fi 9268echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9269echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9270if test $ac_cv_lib_dl_dlopen = yes; then 9271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9272else 9273 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9274echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9275if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9276 echo $ECHO_N "(cached) $ECHO_C" >&6 9277else 9278 ac_check_lib_save_LIBS=$LIBS 9279LIBS="-lsvld $LIBS" 9280cat >conftest.$ac_ext <<_ACEOF 9281/* confdefs.h. */ 9282_ACEOF 9283cat confdefs.h >>conftest.$ac_ext 9284cat >>conftest.$ac_ext <<_ACEOF 9285/* end confdefs.h. */ 9286 9287/* Override any gcc2 internal prototype to avoid an error. */ 9288#ifdef __cplusplus 9289extern "C" 9290#endif 9291/* We use char because int might match the return type of a gcc2 9292 builtin and then its argument prototype would still apply. */ 9293char dlopen (); 9294int 9295main () 9296{ 9297dlopen (); 9298 ; 9299 return 0; 9300} 9301_ACEOF 9302rm -f conftest.$ac_objext conftest$ac_exeext 9303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9304 (eval $ac_link) 2>conftest.er1 9305 ac_status=$? 9306 grep -v '^ *+' conftest.er1 >conftest.err 9307 rm -f conftest.er1 9308 cat conftest.err >&5 9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9310 (exit $ac_status); } && 9311 { ac_try='test -z "$ac_c_werror_flag" 9312 || test ! -s conftest.err' 9313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9314 (eval $ac_try) 2>&5 9315 ac_status=$? 9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9317 (exit $ac_status); }; } && 9318 { ac_try='test -s conftest$ac_exeext' 9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9320 (eval $ac_try) 2>&5 9321 ac_status=$? 9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9323 (exit $ac_status); }; }; then 9324 ac_cv_lib_svld_dlopen=yes 9325else 9326 echo "$as_me: failed program was:" >&5 9327sed 's/^/| /' conftest.$ac_ext >&5 9328 9329ac_cv_lib_svld_dlopen=no 9330fi 9331rm -f conftest.err conftest.$ac_objext \ 9332 conftest$ac_exeext conftest.$ac_ext 9333LIBS=$ac_check_lib_save_LIBS 9334fi 9335echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9336echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9337if test $ac_cv_lib_svld_dlopen = yes; then 9338 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9339else 9340 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9341echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9342if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9343 echo $ECHO_N "(cached) $ECHO_C" >&6 9344else 9345 ac_check_lib_save_LIBS=$LIBS 9346LIBS="-ldld $LIBS" 9347cat >conftest.$ac_ext <<_ACEOF 9348/* confdefs.h. */ 9349_ACEOF 9350cat confdefs.h >>conftest.$ac_ext 9351cat >>conftest.$ac_ext <<_ACEOF 9352/* end confdefs.h. */ 9353 9354/* Override any gcc2 internal prototype to avoid an error. */ 9355#ifdef __cplusplus 9356extern "C" 9357#endif 9358/* We use char because int might match the return type of a gcc2 9359 builtin and then its argument prototype would still apply. */ 9360char dld_link (); 9361int 9362main () 9363{ 9364dld_link (); 9365 ; 9366 return 0; 9367} 9368_ACEOF 9369rm -f conftest.$ac_objext conftest$ac_exeext 9370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9371 (eval $ac_link) 2>conftest.er1 9372 ac_status=$? 9373 grep -v '^ *+' conftest.er1 >conftest.err 9374 rm -f conftest.er1 9375 cat conftest.err >&5 9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9377 (exit $ac_status); } && 9378 { ac_try='test -z "$ac_c_werror_flag" 9379 || test ! -s conftest.err' 9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9381 (eval $ac_try) 2>&5 9382 ac_status=$? 9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9384 (exit $ac_status); }; } && 9385 { ac_try='test -s conftest$ac_exeext' 9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9387 (eval $ac_try) 2>&5 9388 ac_status=$? 9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9390 (exit $ac_status); }; }; then 9391 ac_cv_lib_dld_dld_link=yes 9392else 9393 echo "$as_me: failed program was:" >&5 9394sed 's/^/| /' conftest.$ac_ext >&5 9395 9396ac_cv_lib_dld_dld_link=no 9397fi 9398rm -f conftest.err conftest.$ac_objext \ 9399 conftest$ac_exeext conftest.$ac_ext 9400LIBS=$ac_check_lib_save_LIBS 9401fi 9402echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9403echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9404if test $ac_cv_lib_dld_dld_link = yes; then 9405 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9406fi 9407 9408 9409fi 9410 9411 9412fi 9413 9414 9415fi 9416 9417 9418fi 9419 9420 9421fi 9422 9423 ;; 9424 esac 9425 9426 if test "x$lt_cv_dlopen" != xno; then 9427 enable_dlopen=yes 9428 else 9429 enable_dlopen=no 9430 fi 9431 9432 case $lt_cv_dlopen in 9433 dlopen) 9434 save_CPPFLAGS="$CPPFLAGS" 9435 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9436 9437 save_LDFLAGS="$LDFLAGS" 9438 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9439 9440 save_LIBS="$LIBS" 9441 LIBS="$lt_cv_dlopen_libs $LIBS" 9442 9443 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9444echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9445if test "${lt_cv_dlopen_self+set}" = set; then 9446 echo $ECHO_N "(cached) $ECHO_C" >&6 9447else 9448 if test "$cross_compiling" = yes; then : 9449 lt_cv_dlopen_self=cross 9450else 9451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9452 lt_status=$lt_dlunknown 9453 cat > conftest.$ac_ext <<EOF 9454#line 9454 "configure" 9455#include "confdefs.h" 9456 9457#if HAVE_DLFCN_H 9458#include <dlfcn.h> 9459#endif 9460 9461#include <stdio.h> 9462 9463#ifdef RTLD_GLOBAL 9464# define LT_DLGLOBAL RTLD_GLOBAL 9465#else 9466# ifdef DL_GLOBAL 9467# define LT_DLGLOBAL DL_GLOBAL 9468# else 9469# define LT_DLGLOBAL 0 9470# endif 9471#endif 9472 9473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9474 find out it does not work in some platform. */ 9475#ifndef LT_DLLAZY_OR_NOW 9476# ifdef RTLD_LAZY 9477# define LT_DLLAZY_OR_NOW RTLD_LAZY 9478# else 9479# ifdef DL_LAZY 9480# define LT_DLLAZY_OR_NOW DL_LAZY 9481# else 9482# ifdef RTLD_NOW 9483# define LT_DLLAZY_OR_NOW RTLD_NOW 9484# else 9485# ifdef DL_NOW 9486# define LT_DLLAZY_OR_NOW DL_NOW 9487# else 9488# define LT_DLLAZY_OR_NOW 0 9489# endif 9490# endif 9491# endif 9492# endif 9493#endif 9494 9495#ifdef __cplusplus 9496extern "C" void exit (int); 9497#endif 9498 9499void fnord() { int i=42;} 9500int main () 9501{ 9502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9503 int status = $lt_dlunknown; 9504 9505 if (self) 9506 { 9507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9509 /* dlclose (self); */ 9510 } 9511 9512 exit (status); 9513} 9514EOF 9515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9516 (eval $ac_link) 2>&5 9517 ac_status=$? 9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9519 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9520 (./conftest; exit; ) >&5 2>/dev/null 9521 lt_status=$? 9522 case x$lt_status in 9523 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9524 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9525 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9526 esac 9527 else : 9528 # compilation failed 9529 lt_cv_dlopen_self=no 9530 fi 9531fi 9532rm -fr conftest* 9533 9534 9535fi 9536echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9537echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9538 9539 if test "x$lt_cv_dlopen_self" = xyes; then 9540 LDFLAGS="$LDFLAGS $link_static_flag" 9541 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9542echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9543if test "${lt_cv_dlopen_self_static+set}" = set; then 9544 echo $ECHO_N "(cached) $ECHO_C" >&6 9545else 9546 if test "$cross_compiling" = yes; then : 9547 lt_cv_dlopen_self_static=cross 9548else 9549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9550 lt_status=$lt_dlunknown 9551 cat > conftest.$ac_ext <<EOF 9552#line 9552 "configure" 9553#include "confdefs.h" 9554 9555#if HAVE_DLFCN_H 9556#include <dlfcn.h> 9557#endif 9558 9559#include <stdio.h> 9560 9561#ifdef RTLD_GLOBAL 9562# define LT_DLGLOBAL RTLD_GLOBAL 9563#else 9564# ifdef DL_GLOBAL 9565# define LT_DLGLOBAL DL_GLOBAL 9566# else 9567# define LT_DLGLOBAL 0 9568# endif 9569#endif 9570 9571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9572 find out it does not work in some platform. */ 9573#ifndef LT_DLLAZY_OR_NOW 9574# ifdef RTLD_LAZY 9575# define LT_DLLAZY_OR_NOW RTLD_LAZY 9576# else 9577# ifdef DL_LAZY 9578# define LT_DLLAZY_OR_NOW DL_LAZY 9579# else 9580# ifdef RTLD_NOW 9581# define LT_DLLAZY_OR_NOW RTLD_NOW 9582# else 9583# ifdef DL_NOW 9584# define LT_DLLAZY_OR_NOW DL_NOW 9585# else 9586# define LT_DLLAZY_OR_NOW 0 9587# endif 9588# endif 9589# endif 9590# endif 9591#endif 9592 9593#ifdef __cplusplus 9594extern "C" void exit (int); 9595#endif 9596 9597void fnord() { int i=42;} 9598int main () 9599{ 9600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9601 int status = $lt_dlunknown; 9602 9603 if (self) 9604 { 9605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9607 /* dlclose (self); */ 9608 } 9609 9610 exit (status); 9611} 9612EOF 9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9614 (eval $ac_link) 2>&5 9615 ac_status=$? 9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9617 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9618 (./conftest; exit; ) >&5 2>/dev/null 9619 lt_status=$? 9620 case x$lt_status in 9621 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9622 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9623 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9624 esac 9625 else : 9626 # compilation failed 9627 lt_cv_dlopen_self_static=no 9628 fi 9629fi 9630rm -fr conftest* 9631 9632 9633fi 9634echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9635echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9636 fi 9637 9638 CPPFLAGS="$save_CPPFLAGS" 9639 LDFLAGS="$save_LDFLAGS" 9640 LIBS="$save_LIBS" 9641 ;; 9642 esac 9643 9644 case $lt_cv_dlopen_self in 9645 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9646 *) enable_dlopen_self=unknown ;; 9647 esac 9648 9649 case $lt_cv_dlopen_self_static in 9650 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9651 *) enable_dlopen_self_static=unknown ;; 9652 esac 9653fi 9654 9655 9656# Report which librarie types wil actually be built 9657echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9658echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9659echo "$as_me:$LINENO: result: $can_build_shared" >&5 9660echo "${ECHO_T}$can_build_shared" >&6 9661 9662echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9663echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9664test "$can_build_shared" = "no" && enable_shared=no 9665 9666# On AIX, shared libraries and static libraries use the same namespace, and 9667# are all built from PIC. 9668case $host_os in 9669aix3*) 9670 test "$enable_shared" = yes && enable_static=no 9671 if test -n "$RANLIB"; then 9672 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9673 postinstall_cmds='$RANLIB $lib' 9674 fi 9675 ;; 9676 9677aix4* | aix5*) 9678 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9679 test "$enable_shared" = yes && enable_static=no 9680 fi 9681 ;; 9682esac 9683echo "$as_me:$LINENO: result: $enable_shared" >&5 9684echo "${ECHO_T}$enable_shared" >&6 9685 9686echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9687echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9688# Make sure either enable_shared or enable_static is yes. 9689test "$enable_shared" = yes || enable_static=yes 9690echo "$as_me:$LINENO: result: $enable_static" >&5 9691echo "${ECHO_T}$enable_static" >&6 9692 9693# The else clause should only fire when bootstrapping the 9694# libtool distribution, otherwise you forgot to ship ltmain.sh 9695# with your package, and you will get complaints that there are 9696# no rules to generate ltmain.sh. 9697if test -f "$ltmain"; then 9698 # See if we are running on zsh, and set the options which allow our commands through 9699 # without removal of \ escapes. 9700 if test -n "${ZSH_VERSION+set}" ; then 9701 setopt NO_GLOB_SUBST 9702 fi 9703 # Now quote all the things that may contain metacharacters while being 9704 # careful not to overquote the AC_SUBSTed values. We take copies of the 9705 # variables and quote the copies for generation of the libtool script. 9706 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9707 SED SHELL STRIP \ 9708 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9709 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9710 deplibs_check_method reload_flag reload_cmds need_locks \ 9711 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9712 lt_cv_sys_global_symbol_to_c_name_address \ 9713 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9714 old_postinstall_cmds old_postuninstall_cmds \ 9715 compiler \ 9716 CC \ 9717 LD \ 9718 lt_prog_compiler_wl \ 9719 lt_prog_compiler_pic \ 9720 lt_prog_compiler_static \ 9721 lt_prog_compiler_no_builtin_flag \ 9722 export_dynamic_flag_spec \ 9723 thread_safe_flag_spec \ 9724 whole_archive_flag_spec \ 9725 enable_shared_with_static_runtimes \ 9726 old_archive_cmds \ 9727 old_archive_from_new_cmds \ 9728 predep_objects \ 9729 postdep_objects \ 9730 predeps \ 9731 postdeps \ 9732 compiler_lib_search_path \ 9733 archive_cmds \ 9734 archive_expsym_cmds \ 9735 postinstall_cmds \ 9736 postuninstall_cmds \ 9737 old_archive_from_expsyms_cmds \ 9738 allow_undefined_flag \ 9739 no_undefined_flag \ 9740 export_symbols_cmds \ 9741 hardcode_libdir_flag_spec \ 9742 hardcode_libdir_flag_spec_ld \ 9743 hardcode_libdir_separator \ 9744 hardcode_automatic \ 9745 module_cmds \ 9746 module_expsym_cmds \ 9747 lt_cv_prog_compiler_c_o \ 9748 exclude_expsyms \ 9749 include_expsyms; do 9750 9751 case $var in 9752 old_archive_cmds | \ 9753 old_archive_from_new_cmds | \ 9754 archive_cmds | \ 9755 archive_expsym_cmds | \ 9756 module_cmds | \ 9757 module_expsym_cmds | \ 9758 old_archive_from_expsyms_cmds | \ 9759 export_symbols_cmds | \ 9760 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9761 postinstall_cmds | postuninstall_cmds | \ 9762 old_postinstall_cmds | old_postuninstall_cmds | \ 9763 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9764 # Double-quote double-evaled strings. 9765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9766 ;; 9767 *) 9768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9769 ;; 9770 esac 9771 done 9772 9773 case $lt_echo in 9774 *'\$0 --fallback-echo"') 9775 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9776 ;; 9777 esac 9778 9779cfgfile="${ofile}T" 9780 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9781 $rm -f "$cfgfile" 9782 { echo "$as_me:$LINENO: creating $ofile" >&5 9783echo "$as_me: creating $ofile" >&6;} 9784 9785 cat <<__EOF__ >> "$cfgfile" 9786#! $SHELL 9787 9788# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9789# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9790# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9791# 9792# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9793# Free Software Foundation, Inc. 9794# 9795# This file is part of GNU Libtool: 9796# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9797# 9798# This program is free software; you can redistribute it and/or modify 9799# it under the terms of the GNU General Public License as published by 9800# the Free Software Foundation; either version 2 of the License, or 9801# (at your option) any later version. 9802# 9803# This program is distributed in the hope that it will be useful, but 9804# WITHOUT ANY WARRANTY; without even the implied warranty of 9805# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9806# General Public License for more details. 9807# 9808# You should have received a copy of the GNU General Public License 9809# along with this program; if not, write to the Free Software 9810# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9811# 9812# As a special exception to the GNU General Public License, if you 9813# distribute this file as part of a program that contains a 9814# configuration script generated by Autoconf, you may include it under 9815# the same distribution terms that you use for the rest of that program. 9816 9817# A sed program that does not truncate output. 9818SED=$lt_SED 9819 9820# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9821Xsed="$SED -e 1s/^X//" 9822 9823# The HP-UX ksh and POSIX shell print the target directory to stdout 9824# if CDPATH is set. 9825(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9826 9827# The names of the tagged configurations supported by this script. 9828available_tags= 9829 9830# ### BEGIN LIBTOOL CONFIG 9831 9832# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9833 9834# Shell to use when invoking shell scripts. 9835SHELL=$lt_SHELL 9836 9837# Whether or not to build shared libraries. 9838build_libtool_libs=$enable_shared 9839 9840# Whether or not to build static libraries. 9841build_old_libs=$enable_static 9842 9843# Whether or not to add -lc for building shared libraries. 9844build_libtool_need_lc=$archive_cmds_need_lc 9845 9846# Whether or not to disallow shared libs when runtime libs are static 9847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9848 9849# Whether or not to optimize for fast installation. 9850fast_install=$enable_fast_install 9851 9852# The host system. 9853host_alias=$host_alias 9854host=$host 9855host_os=$host_os 9856 9857# The build system. 9858build_alias=$build_alias 9859build=$build 9860build_os=$build_os 9861 9862# An echo program that does not interpret backslashes. 9863echo=$lt_echo 9864 9865# The archiver. 9866AR=$lt_AR 9867AR_FLAGS=$lt_AR_FLAGS 9868 9869# A C compiler. 9870LTCC=$lt_LTCC 9871 9872# A language-specific compiler. 9873CC=$lt_compiler 9874 9875# Is the compiler the GNU C compiler? 9876with_gcc=$GCC 9877 9878# An ERE matcher. 9879EGREP=$lt_EGREP 9880 9881# The linker used to build libraries. 9882LD=$lt_LD 9883 9884# Whether we need hard or soft links. 9885LN_S=$lt_LN_S 9886 9887# A BSD-compatible nm program. 9888NM=$lt_NM 9889 9890# A symbol stripping program 9891STRIP=$lt_STRIP 9892 9893# Used to examine libraries when file_magic_cmd begins "file" 9894MAGIC_CMD=$MAGIC_CMD 9895 9896# Used on cygwin: DLL creation program. 9897DLLTOOL="$DLLTOOL" 9898 9899# Used on cygwin: object dumper. 9900OBJDUMP="$OBJDUMP" 9901 9902# Used on cygwin: assembler. 9903AS="$AS" 9904 9905# The name of the directory that contains temporary libtool files. 9906objdir=$objdir 9907 9908# How to create reloadable object files. 9909reload_flag=$lt_reload_flag 9910reload_cmds=$lt_reload_cmds 9911 9912# How to pass a linker flag through the compiler. 9913wl=$lt_lt_prog_compiler_wl 9914 9915# Object file suffix (normally "o"). 9916objext="$ac_objext" 9917 9918# Old archive suffix (normally "a"). 9919libext="$libext" 9920 9921# Shared library suffix (normally ".so"). 9922shrext_cmds='$shrext_cmds' 9923 9924# Executable file suffix (normally ""). 9925exeext="$exeext" 9926 9927# Additional compiler flags for building library objects. 9928pic_flag=$lt_lt_prog_compiler_pic 9929pic_mode=$pic_mode 9930 9931# What is the maximum length of a command? 9932max_cmd_len=$lt_cv_sys_max_cmd_len 9933 9934# Does compiler simultaneously support -c and -o options? 9935compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9936 9937# Must we lock files when doing compilation? 9938need_locks=$lt_need_locks 9939 9940# Do we need the lib prefix for modules? 9941need_lib_prefix=$need_lib_prefix 9942 9943# Do we need a version for libraries? 9944need_version=$need_version 9945 9946# Whether dlopen is supported. 9947dlopen_support=$enable_dlopen 9948 9949# Whether dlopen of programs is supported. 9950dlopen_self=$enable_dlopen_self 9951 9952# Whether dlopen of statically linked programs is supported. 9953dlopen_self_static=$enable_dlopen_self_static 9954 9955# Compiler flag to prevent dynamic linking. 9956link_static_flag=$lt_lt_prog_compiler_static 9957 9958# Compiler flag to turn off builtin functions. 9959no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9960 9961# Compiler flag to allow reflexive dlopens. 9962export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9963 9964# Compiler flag to generate shared objects directly from archives. 9965whole_archive_flag_spec=$lt_whole_archive_flag_spec 9966 9967# Compiler flag to generate thread-safe objects. 9968thread_safe_flag_spec=$lt_thread_safe_flag_spec 9969 9970# Library versioning type. 9971version_type=$version_type 9972 9973# Format of library name prefix. 9974libname_spec=$lt_libname_spec 9975 9976# List of archive names. First name is the real one, the rest are links. 9977# The last name is the one that the linker finds with -lNAME. 9978library_names_spec=$lt_library_names_spec 9979 9980# The coded name of the library, if different from the real name. 9981soname_spec=$lt_soname_spec 9982 9983# Commands used to build and install an old-style archive. 9984RANLIB=$lt_RANLIB 9985old_archive_cmds=$lt_old_archive_cmds 9986old_postinstall_cmds=$lt_old_postinstall_cmds 9987old_postuninstall_cmds=$lt_old_postuninstall_cmds 9988 9989# Create an old-style archive from a shared archive. 9990old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9991 9992# Create a temporary old-style archive to link instead of a shared archive. 9993old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9994 9995# Commands used to build and install a shared archive. 9996archive_cmds=$lt_archive_cmds 9997archive_expsym_cmds=$lt_archive_expsym_cmds 9998postinstall_cmds=$lt_postinstall_cmds 9999postuninstall_cmds=$lt_postuninstall_cmds 10000 10001# Commands used to build a loadable module (assumed same as above if empty) 10002module_cmds=$lt_module_cmds 10003module_expsym_cmds=$lt_module_expsym_cmds 10004 10005# Commands to strip libraries. 10006old_striplib=$lt_old_striplib 10007striplib=$lt_striplib 10008 10009# Dependencies to place before the objects being linked to create a 10010# shared library. 10011predep_objects=$lt_predep_objects 10012 10013# Dependencies to place after the objects being linked to create a 10014# shared library. 10015postdep_objects=$lt_postdep_objects 10016 10017# Dependencies to place before the objects being linked to create a 10018# shared library. 10019predeps=$lt_predeps 10020 10021# Dependencies to place after the objects being linked to create a 10022# shared library. 10023postdeps=$lt_postdeps 10024 10025# The library search path used internally by the compiler when linking 10026# a shared library. 10027compiler_lib_search_path=$lt_compiler_lib_search_path 10028 10029# Method to check whether dependent libraries are shared objects. 10030deplibs_check_method=$lt_deplibs_check_method 10031 10032# Command to use when deplibs_check_method == file_magic. 10033file_magic_cmd=$lt_file_magic_cmd 10034 10035# Flag that allows shared libraries with undefined symbols to be built. 10036allow_undefined_flag=$lt_allow_undefined_flag 10037 10038# Flag that forces no undefined symbols. 10039no_undefined_flag=$lt_no_undefined_flag 10040 10041# Commands used to finish a libtool library installation in a directory. 10042finish_cmds=$lt_finish_cmds 10043 10044# Same as above, but a single script fragment to be evaled but not shown. 10045finish_eval=$lt_finish_eval 10046 10047# Take the output of nm and produce a listing of raw symbols and C names. 10048global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10049 10050# Transform the output of nm in a proper C declaration 10051global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10052 10053# Transform the output of nm in a C name address pair 10054global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10055 10056# This is the shared library runtime path variable. 10057runpath_var=$runpath_var 10058 10059# This is the shared library path variable. 10060shlibpath_var=$shlibpath_var 10061 10062# Is shlibpath searched before the hard-coded library search path? 10063shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10064 10065# How to hardcode a shared library path into an executable. 10066hardcode_action=$hardcode_action 10067 10068# Whether we should hardcode library paths into libraries. 10069hardcode_into_libs=$hardcode_into_libs 10070 10071# Flag to hardcode \$libdir into a binary during linking. 10072# This must work even if \$libdir does not exist. 10073hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10074 10075# If ld is used when linking, flag to hardcode \$libdir into 10076# a binary during linking. This must work even if \$libdir does 10077# not exist. 10078hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10079 10080# Whether we need a single -rpath flag with a separated argument. 10081hardcode_libdir_separator=$lt_hardcode_libdir_separator 10082 10083# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10084# resulting binary. 10085hardcode_direct=$hardcode_direct 10086 10087# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10088# resulting binary. 10089hardcode_minus_L=$hardcode_minus_L 10090 10091# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10092# the resulting binary. 10093hardcode_shlibpath_var=$hardcode_shlibpath_var 10094 10095# Set to yes if building a shared library automatically hardcodes DIR into the library 10096# and all subsequent libraries and executables linked against it. 10097hardcode_automatic=$hardcode_automatic 10098 10099# Variables whose values should be saved in libtool wrapper scripts and 10100# restored at relink time. 10101variables_saved_for_relink="$variables_saved_for_relink" 10102 10103# Whether libtool must link a program against all its dependency libraries. 10104link_all_deplibs=$link_all_deplibs 10105 10106# Compile-time system search path for libraries 10107sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10108 10109# Run-time system search path for libraries 10110sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10111 10112# Fix the shell variable \$srcfile for the compiler. 10113fix_srcfile_path="$fix_srcfile_path" 10114 10115# Set to yes if exported symbols are required. 10116always_export_symbols=$always_export_symbols 10117 10118# The commands to list exported symbols. 10119export_symbols_cmds=$lt_export_symbols_cmds 10120 10121# The commands to extract the exported symbol list from a shared archive. 10122extract_expsyms_cmds=$lt_extract_expsyms_cmds 10123 10124# Symbols that should not be listed in the preloaded symbols. 10125exclude_expsyms=$lt_exclude_expsyms 10126 10127# Symbols that must always be exported. 10128include_expsyms=$lt_include_expsyms 10129 10130# ### END LIBTOOL CONFIG 10131 10132__EOF__ 10133 10134 10135 case $host_os in 10136 aix3*) 10137 cat <<\EOF >> "$cfgfile" 10138 10139# AIX sometimes has problems with the GCC collect2 program. For some 10140# reason, if we set the COLLECT_NAMES environment variable, the problems 10141# vanish in a puff of smoke. 10142if test "X${COLLECT_NAMES+set}" != Xset; then 10143 COLLECT_NAMES= 10144 export COLLECT_NAMES 10145fi 10146EOF 10147 ;; 10148 esac 10149 10150 # We use sed instead of cat because bash on DJGPP gets confused if 10151 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10152 # text mode, it properly converts lines to CR/LF. This bash problem 10153 # is reportedly fixed, but why not run on old versions too? 10154 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10155 10156 mv -f "$cfgfile" "$ofile" || \ 10157 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10158 chmod +x "$ofile" 10159 10160else 10161 # If there is no Makefile yet, we rely on a make rule to execute 10162 # `config.status --recheck' to rerun these tests and create the 10163 # libtool script then. 10164 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10165 if test -f "$ltmain_in"; then 10166 test -f Makefile && make "$ltmain" 10167 fi 10168fi 10169 10170 10171ac_ext=c 10172ac_cpp='$CPP $CPPFLAGS' 10173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10175ac_compiler_gnu=$ac_cv_c_compiler_gnu 10176 10177CC="$lt_save_CC" 10178 10179 10180# Check whether --with-tags or --without-tags was given. 10181if test "${with_tags+set}" = set; then 10182 withval="$with_tags" 10183 tagnames="$withval" 10184fi; 10185 10186if test -f "$ltmain" && test -n "$tagnames"; then 10187 if test ! -f "${ofile}"; then 10188 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10189echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10190 fi 10191 10192 if test -z "$LTCC"; then 10193 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10194 if test -z "$LTCC"; then 10195 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10196echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10197 else 10198 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10199echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10200 fi 10201 fi 10202 10203 # Extract list of available tagged configurations in $ofile. 10204 # Note that this assumes the entire list is on one line. 10205 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10206 10207 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10208 for tagname in $tagnames; do 10209 IFS="$lt_save_ifs" 10210 # Check whether tagname contains only valid characters 10211 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10212 "") ;; 10213 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10214echo "$as_me: error: invalid tag name: $tagname" >&2;} 10215 { (exit 1); exit 1; }; } 10216 ;; 10217 esac 10218 10219 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10220 then 10221 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10222echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10223 { (exit 1); exit 1; }; } 10224 fi 10225 10226 # Update the list of available tags. 10227 if test -n "$tagname"; then 10228 echo appending configuration tag \"$tagname\" to $ofile 10229 10230 case $tagname in 10231 CXX) 10232 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10233 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10234 (test "X$CXX" != "Xg++"))) ; then 10235 ac_ext=cc 10236ac_cpp='$CXXCPP $CPPFLAGS' 10237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10240 10241 10242 10243 10244archive_cmds_need_lc_CXX=no 10245allow_undefined_flag_CXX= 10246always_export_symbols_CXX=no 10247archive_expsym_cmds_CXX= 10248export_dynamic_flag_spec_CXX= 10249hardcode_direct_CXX=no 10250hardcode_libdir_flag_spec_CXX= 10251hardcode_libdir_flag_spec_ld_CXX= 10252hardcode_libdir_separator_CXX= 10253hardcode_minus_L_CXX=no 10254hardcode_automatic_CXX=no 10255module_cmds_CXX= 10256module_expsym_cmds_CXX= 10257link_all_deplibs_CXX=unknown 10258old_archive_cmds_CXX=$old_archive_cmds 10259no_undefined_flag_CXX= 10260whole_archive_flag_spec_CXX= 10261enable_shared_with_static_runtimes_CXX=no 10262 10263# Dependencies to place before and after the object being linked: 10264predep_objects_CXX= 10265postdep_objects_CXX= 10266predeps_CXX= 10267postdeps_CXX= 10268compiler_lib_search_path_CXX= 10269 10270# Source file extension for C++ test sources. 10271ac_ext=cpp 10272 10273# Object file extension for compiled C++ test sources. 10274objext=o 10275objext_CXX=$objext 10276 10277# Code to be used in simple compile tests 10278lt_simple_compile_test_code="int some_variable = 0;\n" 10279 10280# Code to be used in simple link tests 10281lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 10282 10283# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10284 10285# If no C compiler was specified, use CC. 10286LTCC=${LTCC-"$CC"} 10287 10288# Allow CC to be a program name with arguments. 10289compiler=$CC 10290 10291 10292# save warnings/boilerplate of simple test code 10293ac_outfile=conftest.$ac_objext 10294printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10295eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10296_lt_compiler_boilerplate=`cat conftest.err` 10297$rm conftest* 10298 10299ac_outfile=conftest.$ac_objext 10300printf "$lt_simple_link_test_code" >conftest.$ac_ext 10301eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10302_lt_linker_boilerplate=`cat conftest.err` 10303$rm conftest* 10304 10305 10306# Allow CC to be a program name with arguments. 10307lt_save_CC=$CC 10308lt_save_LD=$LD 10309lt_save_GCC=$GCC 10310GCC=$GXX 10311lt_save_with_gnu_ld=$with_gnu_ld 10312lt_save_path_LD=$lt_cv_path_LD 10313if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10314 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10315else 10316 unset lt_cv_prog_gnu_ld 10317fi 10318if test -n "${lt_cv_path_LDCXX+set}"; then 10319 lt_cv_path_LD=$lt_cv_path_LDCXX 10320else 10321 unset lt_cv_path_LD 10322fi 10323test -z "${LDCXX+set}" || LD=$LDCXX 10324CC=${CXX-"c++"} 10325compiler=$CC 10326compiler_CXX=$CC 10327for cc_temp in $compiler""; do 10328 case $cc_temp in 10329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10331 \-*) ;; 10332 *) break;; 10333 esac 10334done 10335cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10336 10337 10338# We don't want -fno-exception wen compiling C++ code, so set the 10339# no_builtin_flag separately 10340if test "$GXX" = yes; then 10341 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10342else 10343 lt_prog_compiler_no_builtin_flag_CXX= 10344fi 10345 10346if test "$GXX" = yes; then 10347 # Set up default GNU C++ configuration 10348 10349 10350# Check whether --with-gnu-ld or --without-gnu-ld was given. 10351if test "${with_gnu_ld+set}" = set; then 10352 withval="$with_gnu_ld" 10353 test "$withval" = no || with_gnu_ld=yes 10354else 10355 with_gnu_ld=no 10356fi; 10357ac_prog=ld 10358if test "$GCC" = yes; then 10359 # Check if gcc -print-prog-name=ld gives a path. 10360 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10361echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10362 case $host in 10363 *-*-mingw*) 10364 # gcc leaves a trailing carriage return which upsets mingw 10365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10366 *) 10367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10368 esac 10369 case $ac_prog in 10370 # Accept absolute paths. 10371 [\\/]* | ?:[\\/]*) 10372 re_direlt='/[^/][^/]*/\.\./' 10373 # Canonicalize the pathname of ld 10374 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10375 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10376 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10377 done 10378 test -z "$LD" && LD="$ac_prog" 10379 ;; 10380 "") 10381 # If it fails, then pretend we aren't using GCC. 10382 ac_prog=ld 10383 ;; 10384 *) 10385 # If it is relative, then search for the first ld in PATH. 10386 with_gnu_ld=unknown 10387 ;; 10388 esac 10389elif test "$with_gnu_ld" = yes; then 10390 echo "$as_me:$LINENO: checking for GNU ld" >&5 10391echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10392else 10393 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10394echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10395fi 10396if test "${lt_cv_path_LD+set}" = set; then 10397 echo $ECHO_N "(cached) $ECHO_C" >&6 10398else 10399 if test -z "$LD"; then 10400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10401 for ac_dir in $PATH; do 10402 IFS="$lt_save_ifs" 10403 test -z "$ac_dir" && ac_dir=. 10404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10405 lt_cv_path_LD="$ac_dir/$ac_prog" 10406 # Check to see if the program is GNU ld. I'd rather use --version, 10407 # but apparently some variants of GNU ld only accept -v. 10408 # Break only if it was the GNU/non-GNU ld that we prefer. 10409 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10410 *GNU* | *'with BFD'*) 10411 test "$with_gnu_ld" != no && break 10412 ;; 10413 *) 10414 test "$with_gnu_ld" != yes && break 10415 ;; 10416 esac 10417 fi 10418 done 10419 IFS="$lt_save_ifs" 10420else 10421 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10422fi 10423fi 10424 10425LD="$lt_cv_path_LD" 10426if test -n "$LD"; then 10427 echo "$as_me:$LINENO: result: $LD" >&5 10428echo "${ECHO_T}$LD" >&6 10429else 10430 echo "$as_me:$LINENO: result: no" >&5 10431echo "${ECHO_T}no" >&6 10432fi 10433test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10434echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10435 { (exit 1); exit 1; }; } 10436echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10437echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10438if test "${lt_cv_prog_gnu_ld+set}" = set; then 10439 echo $ECHO_N "(cached) $ECHO_C" >&6 10440else 10441 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10442case `$LD -v 2>&1 </dev/null` in 10443*GNU* | *'with BFD'*) 10444 lt_cv_prog_gnu_ld=yes 10445 ;; 10446*) 10447 lt_cv_prog_gnu_ld=no 10448 ;; 10449esac 10450fi 10451echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10452echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10453with_gnu_ld=$lt_cv_prog_gnu_ld 10454 10455 10456 10457 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10458 # archiving commands below assume that GNU ld is being used. 10459 if test "$with_gnu_ld" = yes; then 10460 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10461 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' 10462 10463 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10464 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10465 10466 # If archive_cmds runs LD, not CC, wlarc should be empty 10467 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10468 # investigate it a little bit more. (MM) 10469 wlarc='${wl}' 10470 10471 # ancient GNU ld didn't support --whole-archive et. al. 10472 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10473 grep 'no-whole-archive' > /dev/null; then 10474 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10475 else 10476 whole_archive_flag_spec_CXX= 10477 fi 10478 else 10479 with_gnu_ld=no 10480 wlarc= 10481 10482 # A generic and very simple default shared library creation 10483 # command for GNU C++ for the case where it uses the native 10484 # linker, instead of GNU ld. If possible, this setting should 10485 # overridden to take advantage of the native linker features on 10486 # the platform it is being used on. 10487 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10488 fi 10489 10490 # Commands to make compiler produce verbose output that lists 10491 # what "hidden" libraries, object files and flags are used when 10492 # linking a shared library. 10493 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10494 10495else 10496 GXX=no 10497 with_gnu_ld=no 10498 wlarc= 10499fi 10500 10501# PORTME: fill in a description of your system's C++ link characteristics 10502echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10503echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10504ld_shlibs_CXX=yes 10505case $host_os in 10506 aix3*) 10507 # FIXME: insert proper C++ library support 10508 ld_shlibs_CXX=no 10509 ;; 10510 aix4* | aix5*) 10511 if test "$host_cpu" = ia64; then 10512 # On IA64, the linker does run time linking by default, so we don't 10513 # have to do anything special. 10514 aix_use_runtimelinking=no 10515 exp_sym_flag='-Bexport' 10516 no_entry_flag="" 10517 else 10518 aix_use_runtimelinking=no 10519 10520 # Test if we are trying to use run time linking or normal 10521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10522 # need to do runtime linking. 10523 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10524 for ld_flag in $LDFLAGS; do 10525 case $ld_flag in 10526 *-brtl*) 10527 aix_use_runtimelinking=yes 10528 break 10529 ;; 10530 esac 10531 done 10532 esac 10533 10534 exp_sym_flag='-bexport' 10535 no_entry_flag='-bnoentry' 10536 fi 10537 10538 # When large executables or shared objects are built, AIX ld can 10539 # have problems creating the table of contents. If linking a library 10540 # or program results in "error TOC overflow" add -mminimal-toc to 10541 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10542 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10543 10544 archive_cmds_CXX='' 10545 hardcode_direct_CXX=yes 10546 hardcode_libdir_separator_CXX=':' 10547 link_all_deplibs_CXX=yes 10548 10549 if test "$GXX" = yes; then 10550 case $host_os in aix4.[012]|aix4.[012].*) 10551 # We only want to do this on AIX 4.2 and lower, the check 10552 # below for broken collect2 doesn't work under 4.3+ 10553 collect2name=`${CC} -print-prog-name=collect2` 10554 if test -f "$collect2name" && \ 10555 strings "$collect2name" | grep resolve_lib_name >/dev/null 10556 then 10557 # We have reworked collect2 10558 hardcode_direct_CXX=yes 10559 else 10560 # We have old collect2 10561 hardcode_direct_CXX=unsupported 10562 # It fails to find uninstalled libraries when the uninstalled 10563 # path is not listed in the libpath. Setting hardcode_minus_L 10564 # to unsupported forces relinking 10565 hardcode_minus_L_CXX=yes 10566 hardcode_libdir_flag_spec_CXX='-L$libdir' 10567 hardcode_libdir_separator_CXX= 10568 fi 10569 esac 10570 shared_flag='-shared' 10571 if test "$aix_use_runtimelinking" = yes; then 10572 shared_flag="$shared_flag "'${wl}-G' 10573 fi 10574 else 10575 # not using gcc 10576 if test "$host_cpu" = ia64; then 10577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10578 # chokes on -Wl,-G. The following line is correct: 10579 shared_flag='-G' 10580 else 10581 if test "$aix_use_runtimelinking" = yes; then 10582 shared_flag='${wl}-G' 10583 else 10584 shared_flag='${wl}-bM:SRE' 10585 fi 10586 fi 10587 fi 10588 10589 # It seems that -bexpall does not export symbols beginning with 10590 # underscore (_), so it is better to generate a list of symbols to export. 10591 always_export_symbols_CXX=yes 10592 if test "$aix_use_runtimelinking" = yes; then 10593 # Warning - without using the other runtime loading flags (-brtl), 10594 # -berok will link without error, but may produce a broken library. 10595 allow_undefined_flag_CXX='-berok' 10596 # Determine the default libpath from the value encoded in an empty executable. 10597 cat >conftest.$ac_ext <<_ACEOF 10598/* confdefs.h. */ 10599_ACEOF 10600cat confdefs.h >>conftest.$ac_ext 10601cat >>conftest.$ac_ext <<_ACEOF 10602/* end confdefs.h. */ 10603 10604int 10605main () 10606{ 10607 10608 ; 10609 return 0; 10610} 10611_ACEOF 10612rm -f conftest.$ac_objext conftest$ac_exeext 10613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10614 (eval $ac_link) 2>conftest.er1 10615 ac_status=$? 10616 grep -v '^ *+' conftest.er1 >conftest.err 10617 rm -f conftest.er1 10618 cat conftest.err >&5 10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10620 (exit $ac_status); } && 10621 { ac_try='test -z "$ac_cxx_werror_flag" 10622 || test ! -s conftest.err' 10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10624 (eval $ac_try) 2>&5 10625 ac_status=$? 10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10627 (exit $ac_status); }; } && 10628 { ac_try='test -s conftest$ac_exeext' 10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10630 (eval $ac_try) 2>&5 10631 ac_status=$? 10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10633 (exit $ac_status); }; }; then 10634 10635aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10636}'` 10637# Check for a 64-bit object if we didn't find anything. 10638if 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; } 10639}'`; fi 10640else 10641 echo "$as_me: failed program was:" >&5 10642sed 's/^/| /' conftest.$ac_ext >&5 10643 10644fi 10645rm -f conftest.err conftest.$ac_objext \ 10646 conftest$ac_exeext conftest.$ac_ext 10647if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10648 10649 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10650 10651 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10652 else 10653 if test "$host_cpu" = ia64; then 10654 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10655 allow_undefined_flag_CXX="-z nodefs" 10656 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 10657 else 10658 # Determine the default libpath from the value encoded in an empty executable. 10659 cat >conftest.$ac_ext <<_ACEOF 10660/* confdefs.h. */ 10661_ACEOF 10662cat confdefs.h >>conftest.$ac_ext 10663cat >>conftest.$ac_ext <<_ACEOF 10664/* end confdefs.h. */ 10665 10666int 10667main () 10668{ 10669 10670 ; 10671 return 0; 10672} 10673_ACEOF 10674rm -f conftest.$ac_objext conftest$ac_exeext 10675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10676 (eval $ac_link) 2>conftest.er1 10677 ac_status=$? 10678 grep -v '^ *+' conftest.er1 >conftest.err 10679 rm -f conftest.er1 10680 cat conftest.err >&5 10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10682 (exit $ac_status); } && 10683 { ac_try='test -z "$ac_cxx_werror_flag" 10684 || test ! -s conftest.err' 10685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10686 (eval $ac_try) 2>&5 10687 ac_status=$? 10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10689 (exit $ac_status); }; } && 10690 { ac_try='test -s conftest$ac_exeext' 10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10692 (eval $ac_try) 2>&5 10693 ac_status=$? 10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10695 (exit $ac_status); }; }; then 10696 10697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10698}'` 10699# Check for a 64-bit object if we didn't find anything. 10700if 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; } 10701}'`; fi 10702else 10703 echo "$as_me: failed program was:" >&5 10704sed 's/^/| /' conftest.$ac_ext >&5 10705 10706fi 10707rm -f conftest.err conftest.$ac_objext \ 10708 conftest$ac_exeext conftest.$ac_ext 10709if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10710 10711 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10712 # Warning - without using the other run time loading flags, 10713 # -berok will link without error, but may produce a broken library. 10714 no_undefined_flag_CXX=' ${wl}-bernotok' 10715 allow_undefined_flag_CXX=' ${wl}-berok' 10716 # -bexpall does not export symbols beginning with underscore (_) 10717 always_export_symbols_CXX=yes 10718 # Exported symbols can be pulled into shared objects from archives 10719 whole_archive_flag_spec_CXX=' ' 10720 archive_cmds_need_lc_CXX=yes 10721 # This is similar to how AIX traditionally builds its shared libraries. 10722 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10723 fi 10724 fi 10725 ;; 10726 chorus*) 10727 case $cc_basename in 10728 *) 10729 # FIXME: insert proper C++ library support 10730 ld_shlibs_CXX=no 10731 ;; 10732 esac 10733 ;; 10734 10735 10736 cygwin* | mingw* | pw32*) 10737 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10738 # as there is no search path for DLLs. 10739 hardcode_libdir_flag_spec_CXX='-L$libdir' 10740 allow_undefined_flag_CXX=unsupported 10741 always_export_symbols_CXX=no 10742 enable_shared_with_static_runtimes_CXX=yes 10743 10744 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10745 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10746 # If the export-symbols file already is a .def file (1st line 10747 # is EXPORTS), use it as is; otherwise, prepend... 10748 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10749 cp $export_symbols $output_objdir/$soname.def; 10750 else 10751 echo EXPORTS > $output_objdir/$soname.def; 10752 cat $export_symbols >> $output_objdir/$soname.def; 10753 fi~ 10754 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10755 else 10756 ld_shlibs_CXX=no 10757 fi 10758 ;; 10759 darwin* | rhapsody*) 10760 case $host_os in 10761 rhapsody* | darwin1.[012]) 10762 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10763 ;; 10764 *) # Darwin 1.3 on 10765 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10766 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10767 else 10768 case ${MACOSX_DEPLOYMENT_TARGET} in 10769 10.[012]) 10770 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10771 ;; 10772 10.*) 10773 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10774 ;; 10775 esac 10776 fi 10777 ;; 10778 esac 10779 archive_cmds_need_lc_CXX=no 10780 hardcode_direct_CXX=no 10781 hardcode_automatic_CXX=yes 10782 hardcode_shlibpath_var_CXX=unsupported 10783 whole_archive_flag_spec_CXX='' 10784 link_all_deplibs_CXX=yes 10785 10786 if test "$GXX" = yes ; then 10787 lt_int_apple_cc_single_mod=no 10788 output_verbose_link_cmd='echo' 10789 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10790 lt_int_apple_cc_single_mod=yes 10791 fi 10792 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10793 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10794 else 10795 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' 10796 fi 10797 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10798 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10799 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10800 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}' 10801 else 10802 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}' 10803 fi 10804 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}' 10805 else 10806 case $cc_basename in 10807 xlc*) 10808 output_verbose_link_cmd='echo' 10809 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' 10810 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10811 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10812 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}' 10813 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}' 10814 ;; 10815 *) 10816 ld_shlibs_CXX=no 10817 ;; 10818 esac 10819 fi 10820 ;; 10821 10822 dgux*) 10823 case $cc_basename in 10824 ec++*) 10825 # FIXME: insert proper C++ library support 10826 ld_shlibs_CXX=no 10827 ;; 10828 ghcx*) 10829 # Green Hills C++ Compiler 10830 # FIXME: insert proper C++ library support 10831 ld_shlibs_CXX=no 10832 ;; 10833 *) 10834 # FIXME: insert proper C++ library support 10835 ld_shlibs_CXX=no 10836 ;; 10837 esac 10838 ;; 10839 freebsd[12]*) 10840 # C++ shared libraries reported to be fairly broken before switch to ELF 10841 ld_shlibs_CXX=no 10842 ;; 10843 freebsd-elf*) 10844 archive_cmds_need_lc_CXX=no 10845 ;; 10846 freebsd* | kfreebsd*-gnu | dragonfly*) 10847 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10848 # conventions 10849 ld_shlibs_CXX=yes 10850 ;; 10851 gnu*) 10852 ;; 10853 hpux9*) 10854 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10855 hardcode_libdir_separator_CXX=: 10856 export_dynamic_flag_spec_CXX='${wl}-E' 10857 hardcode_direct_CXX=yes 10858 hardcode_minus_L_CXX=yes # Not in the search PATH, 10859 # but as the default 10860 # location of the library. 10861 10862 case $cc_basename in 10863 CC*) 10864 # FIXME: insert proper C++ library support 10865 ld_shlibs_CXX=no 10866 ;; 10867 aCC*) 10868 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' 10869 # Commands to make compiler produce verbose output that lists 10870 # what "hidden" libraries, object files and flags are used when 10871 # linking a shared library. 10872 # 10873 # There doesn't appear to be a way to prevent this compiler from 10874 # explicitly linking system object files so we need to strip them 10875 # from the output so that they don't get included in the library 10876 # dependencies. 10877 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' 10878 ;; 10879 *) 10880 if test "$GXX" = yes; then 10881 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' 10882 else 10883 # FIXME: insert proper C++ library support 10884 ld_shlibs_CXX=no 10885 fi 10886 ;; 10887 esac 10888 ;; 10889 hpux10*|hpux11*) 10890 if test $with_gnu_ld = no; then 10891 case $host_cpu in 10892 hppa*64*) 10893 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10894 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10895 hardcode_libdir_separator_CXX=: 10896 ;; 10897 ia64*) 10898 hardcode_libdir_flag_spec_CXX='-L$libdir' 10899 ;; 10900 *) 10901 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10902 hardcode_libdir_separator_CXX=: 10903 export_dynamic_flag_spec_CXX='${wl}-E' 10904 ;; 10905 esac 10906 fi 10907 case $host_cpu in 10908 hppa*64*) 10909 hardcode_direct_CXX=no 10910 hardcode_shlibpath_var_CXX=no 10911 ;; 10912 ia64*) 10913 hardcode_direct_CXX=no 10914 hardcode_shlibpath_var_CXX=no 10915 hardcode_minus_L_CXX=yes # Not in the search PATH, 10916 # but as the default 10917 # location of the library. 10918 ;; 10919 *) 10920 hardcode_direct_CXX=yes 10921 hardcode_minus_L_CXX=yes # Not in the search PATH, 10922 # but as the default 10923 # location of the library. 10924 ;; 10925 esac 10926 10927 case $cc_basename in 10928 CC*) 10929 # FIXME: insert proper C++ library support 10930 ld_shlibs_CXX=no 10931 ;; 10932 aCC*) 10933 case $host_cpu in 10934 hppa*64*|ia64*) 10935 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10936 ;; 10937 *) 10938 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10939 ;; 10940 esac 10941 # Commands to make compiler produce verbose output that lists 10942 # what "hidden" libraries, object files and flags are used when 10943 # linking a shared library. 10944 # 10945 # There doesn't appear to be a way to prevent this compiler from 10946 # explicitly linking system object files so we need to strip them 10947 # from the output so that they don't get included in the library 10948 # dependencies. 10949 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' 10950 ;; 10951 *) 10952 if test "$GXX" = yes; then 10953 if test $with_gnu_ld = no; then 10954 case $host_cpu in 10955 ia64*|hppa*64*) 10956 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10957 ;; 10958 *) 10959 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' 10960 ;; 10961 esac 10962 fi 10963 else 10964 # FIXME: insert proper C++ library support 10965 ld_shlibs_CXX=no 10966 fi 10967 ;; 10968 esac 10969 ;; 10970 irix5* | irix6*) 10971 case $cc_basename in 10972 CC*) 10973 # SGI C++ 10974 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' 10975 10976 # Archives containing C++ object files must be created using 10977 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10978 # necessary to make sure instantiated templates are included 10979 # in the archive. 10980 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10981 ;; 10982 *) 10983 if test "$GXX" = yes; then 10984 if test "$with_gnu_ld" = no; then 10985 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' 10986 else 10987 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' 10988 fi 10989 fi 10990 link_all_deplibs_CXX=yes 10991 ;; 10992 esac 10993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10994 hardcode_libdir_separator_CXX=: 10995 ;; 10996 linux*) 10997 case $cc_basename in 10998 KCC*) 10999 # Kuck and Associates, Inc. (KAI) C++ Compiler 11000 11001 # KCC will only create a shared library if the output file 11002 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11003 # to its proper name (with version) after linking. 11004 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' 11005 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' 11006 # Commands to make compiler produce verbose output that lists 11007 # what "hidden" libraries, object files and flags are used when 11008 # linking a shared library. 11009 # 11010 # There doesn't appear to be a way to prevent this compiler from 11011 # explicitly linking system object files so we need to strip them 11012 # from the output so that they don't get included in the library 11013 # dependencies. 11014 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' 11015 11016 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11017 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11018 11019 # Archives containing C++ object files must be created using 11020 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11021 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11022 ;; 11023 icpc*) 11024 # Intel C++ 11025 with_gnu_ld=yes 11026 # version 8.0 and above of icpc choke on multiply defined symbols 11027 # if we add $predep_objects and $postdep_objects, however 7.1 and 11028 # earlier do not add the objects themselves. 11029 case `$CC -V 2>&1` in 11030 *"Version 7."*) 11031 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11032 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' 11033 ;; 11034 *) # Version 8.0 or newer 11035 tmp_idyn= 11036 case $host_cpu in 11037 ia64*) tmp_idyn=' -i_dynamic';; 11038 esac 11039 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11040 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' 11041 ;; 11042 esac 11043 archive_cmds_need_lc_CXX=no 11044 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11045 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11046 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11047 ;; 11048 pgCC*) 11049 # Portland Group C++ compiler 11050 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11051 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' 11052 11053 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11055 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' 11056 ;; 11057 cxx*) 11058 # Compaq C++ 11059 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11060 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' 11061 11062 runpath_var=LD_RUN_PATH 11063 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11064 hardcode_libdir_separator_CXX=: 11065 11066 # Commands to make compiler produce verbose output that lists 11067 # what "hidden" libraries, object files and flags are used when 11068 # linking a shared library. 11069 # 11070 # There doesn't appear to be a way to prevent this compiler from 11071 # explicitly linking system object files so we need to strip them 11072 # from the output so that they don't get included in the library 11073 # dependencies. 11074 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' 11075 ;; 11076 esac 11077 ;; 11078 lynxos*) 11079 # FIXME: insert proper C++ library support 11080 ld_shlibs_CXX=no 11081 ;; 11082 m88k*) 11083 # FIXME: insert proper C++ library support 11084 ld_shlibs_CXX=no 11085 ;; 11086 mvs*) 11087 case $cc_basename in 11088 cxx*) 11089 # FIXME: insert proper C++ library support 11090 ld_shlibs_CXX=no 11091 ;; 11092 *) 11093 # FIXME: insert proper C++ library support 11094 ld_shlibs_CXX=no 11095 ;; 11096 esac 11097 ;; 11098 netbsd*) 11099 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11100 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11101 wlarc= 11102 hardcode_libdir_flag_spec_CXX='-R$libdir' 11103 hardcode_direct_CXX=yes 11104 hardcode_shlibpath_var_CXX=no 11105 fi 11106 # Workaround some broken pre-1.5 toolchains 11107 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11108 ;; 11109 openbsd2*) 11110 # C++ shared libraries are fairly broken 11111 ld_shlibs_CXX=no 11112 ;; 11113 openbsd*) 11114 hardcode_direct_CXX=yes 11115 hardcode_shlibpath_var_CXX=no 11116 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11119 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11120 export_dynamic_flag_spec_CXX='${wl}-E' 11121 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11122 fi 11123 output_verbose_link_cmd='echo' 11124 ;; 11125 osf3*) 11126 case $cc_basename in 11127 KCC*) 11128 # Kuck and Associates, Inc. (KAI) C++ Compiler 11129 11130 # KCC will only create a shared library if the output file 11131 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11132 # to its proper name (with version) after linking. 11133 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' 11134 11135 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11136 hardcode_libdir_separator_CXX=: 11137 11138 # Archives containing C++ object files must be created using 11139 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11140 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11141 11142 ;; 11143 RCC*) 11144 # Rational C++ 2.4.1 11145 # FIXME: insert proper C++ library support 11146 ld_shlibs_CXX=no 11147 ;; 11148 cxx*) 11149 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11150 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' 11151 11152 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11153 hardcode_libdir_separator_CXX=: 11154 11155 # Commands to make compiler produce verbose output that lists 11156 # what "hidden" libraries, object files and flags are used when 11157 # linking a shared library. 11158 # 11159 # There doesn't appear to be a way to prevent this compiler from 11160 # explicitly linking system object files so we need to strip them 11161 # from the output so that they don't get included in the library 11162 # dependencies. 11163 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' 11164 ;; 11165 *) 11166 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11167 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11168 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' 11169 11170 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11171 hardcode_libdir_separator_CXX=: 11172 11173 # Commands to make compiler produce verbose output that lists 11174 # what "hidden" libraries, object files and flags are used when 11175 # linking a shared library. 11176 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11177 11178 else 11179 # FIXME: insert proper C++ library support 11180 ld_shlibs_CXX=no 11181 fi 11182 ;; 11183 esac 11184 ;; 11185 osf4* | osf5*) 11186 case $cc_basename in 11187 KCC*) 11188 # Kuck and Associates, Inc. (KAI) C++ Compiler 11189 11190 # KCC will only create a shared library if the output file 11191 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11192 # to its proper name (with version) after linking. 11193 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' 11194 11195 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11196 hardcode_libdir_separator_CXX=: 11197 11198 # Archives containing C++ object files must be created using 11199 # the KAI C++ compiler. 11200 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11201 ;; 11202 RCC*) 11203 # Rational C++ 2.4.1 11204 # FIXME: insert proper C++ library support 11205 ld_shlibs_CXX=no 11206 ;; 11207 cxx*) 11208 allow_undefined_flag_CXX=' -expect_unresolved \*' 11209 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' 11210 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11211 echo "-hidden">> $lib.exp~ 11212 $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~ 11213 $rm $lib.exp' 11214 11215 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11216 hardcode_libdir_separator_CXX=: 11217 11218 # Commands to make compiler produce verbose output that lists 11219 # what "hidden" libraries, object files and flags are used when 11220 # linking a shared library. 11221 # 11222 # There doesn't appear to be a way to prevent this compiler from 11223 # explicitly linking system object files so we need to strip them 11224 # from the output so that they don't get included in the library 11225 # dependencies. 11226 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' 11227 ;; 11228 *) 11229 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11230 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11231 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' 11232 11233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11234 hardcode_libdir_separator_CXX=: 11235 11236 # Commands to make compiler produce verbose output that lists 11237 # what "hidden" libraries, object files and flags are used when 11238 # linking a shared library. 11239 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11240 11241 else 11242 # FIXME: insert proper C++ library support 11243 ld_shlibs_CXX=no 11244 fi 11245 ;; 11246 esac 11247 ;; 11248 psos*) 11249 # FIXME: insert proper C++ library support 11250 ld_shlibs_CXX=no 11251 ;; 11252 sco*) 11253 archive_cmds_need_lc_CXX=no 11254 case $cc_basename in 11255 CC*) 11256 # FIXME: insert proper C++ library support 11257 ld_shlibs_CXX=no 11258 ;; 11259 *) 11260 # FIXME: insert proper C++ library support 11261 ld_shlibs_CXX=no 11262 ;; 11263 esac 11264 ;; 11265 sunos4*) 11266 case $cc_basename in 11267 CC*) 11268 # Sun C++ 4.x 11269 # FIXME: insert proper C++ library support 11270 ld_shlibs_CXX=no 11271 ;; 11272 lcc*) 11273 # Lucid 11274 # FIXME: insert proper C++ library support 11275 ld_shlibs_CXX=no 11276 ;; 11277 *) 11278 # FIXME: insert proper C++ library support 11279 ld_shlibs_CXX=no 11280 ;; 11281 esac 11282 ;; 11283 solaris*) 11284 case $cc_basename in 11285 CC*) 11286 # Sun C++ 4.2, 5.x and Centerline C++ 11287 archive_cmds_need_lc_CXX=yes 11288 no_undefined_flag_CXX=' -zdefs' 11289 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11290 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11291 $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' 11292 11293 hardcode_libdir_flag_spec_CXX='-R$libdir' 11294 hardcode_shlibpath_var_CXX=no 11295 case $host_os in 11296 solaris2.[0-5] | solaris2.[0-5].*) ;; 11297 *) 11298 # The C++ compiler is used as linker so we must use $wl 11299 # flag to pass the commands to the underlying system 11300 # linker. We must also pass each convience library through 11301 # to the system linker between allextract/defaultextract. 11302 # The C++ compiler will combine linker options so we 11303 # cannot just pass the convience library names through 11304 # without $wl. 11305 # Supported since Solaris 2.6 (maybe 2.5.1?) 11306 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' 11307 ;; 11308 esac 11309 link_all_deplibs_CXX=yes 11310 11311 output_verbose_link_cmd='echo' 11312 11313 # Archives containing C++ object files must be created using 11314 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11315 # necessary to make sure instantiated templates are included 11316 # in the archive. 11317 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11318 ;; 11319 gcx*) 11320 # Green Hills C++ Compiler 11321 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11322 11323 # The C++ compiler must be used to create the archive. 11324 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11325 ;; 11326 *) 11327 # GNU C++ compiler with Solaris linker 11328 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11329 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11330 if $CC --version | grep -v '^2\.7' > /dev/null; then 11331 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11332 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11333 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11334 11335 # Commands to make compiler produce verbose output that lists 11336 # what "hidden" libraries, object files and flags are used when 11337 # linking a shared library. 11338 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11339 else 11340 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11341 # platform. 11342 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11343 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11344 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11345 11346 # Commands to make compiler produce verbose output that lists 11347 # what "hidden" libraries, object files and flags are used when 11348 # linking a shared library. 11349 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11350 fi 11351 11352 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11353 fi 11354 ;; 11355 esac 11356 ;; 11357 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 11358 archive_cmds_need_lc_CXX=no 11359 ;; 11360 tandem*) 11361 case $cc_basename in 11362 NCC*) 11363 # NonStop-UX NCC 3.20 11364 # FIXME: insert proper C++ library support 11365 ld_shlibs_CXX=no 11366 ;; 11367 *) 11368 # FIXME: insert proper C++ library support 11369 ld_shlibs_CXX=no 11370 ;; 11371 esac 11372 ;; 11373 vxworks*) 11374 # FIXME: insert proper C++ library support 11375 ld_shlibs_CXX=no 11376 ;; 11377 *) 11378 # FIXME: insert proper C++ library support 11379 ld_shlibs_CXX=no 11380 ;; 11381esac 11382echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11383echo "${ECHO_T}$ld_shlibs_CXX" >&6 11384test "$ld_shlibs_CXX" = no && can_build_shared=no 11385 11386GCC_CXX="$GXX" 11387LD_CXX="$LD" 11388 11389 11390cat > conftest.$ac_ext <<EOF 11391class Foo 11392{ 11393public: 11394 Foo (void) { a = 0; } 11395private: 11396 int a; 11397}; 11398EOF 11399 11400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11401 (eval $ac_compile) 2>&5 11402 ac_status=$? 11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11404 (exit $ac_status); }; then 11405 # Parse the compiler output and extract the necessary 11406 # objects, libraries and library flags. 11407 11408 # Sentinel used to keep track of whether or not we are before 11409 # the conftest object file. 11410 pre_test_object_deps_done=no 11411 11412 # The `*' in the case matches for architectures that use `case' in 11413 # $output_verbose_cmd can trigger glob expansion during the loop 11414 # eval without this substitution. 11415 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11416 11417 for p in `eval $output_verbose_link_cmd`; do 11418 case $p in 11419 11420 -L* | -R* | -l*) 11421 # Some compilers place space between "-{L,R}" and the path. 11422 # Remove the space. 11423 if test $p = "-L" \ 11424 || test $p = "-R"; then 11425 prev=$p 11426 continue 11427 else 11428 prev= 11429 fi 11430 11431 if test "$pre_test_object_deps_done" = no; then 11432 case $p in 11433 -L* | -R*) 11434 # Internal compiler library paths should come after those 11435 # provided the user. The postdeps already come after the 11436 # user supplied libs so there is no need to process them. 11437 if test -z "$compiler_lib_search_path_CXX"; then 11438 compiler_lib_search_path_CXX="${prev}${p}" 11439 else 11440 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11441 fi 11442 ;; 11443 # The "-l" case would never come before the object being 11444 # linked, so don't bother handling this case. 11445 esac 11446 else 11447 if test -z "$postdeps_CXX"; then 11448 postdeps_CXX="${prev}${p}" 11449 else 11450 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11451 fi 11452 fi 11453 ;; 11454 11455 *.$objext) 11456 # This assumes that the test object file only shows up 11457 # once in the compiler output. 11458 if test "$p" = "conftest.$objext"; then 11459 pre_test_object_deps_done=yes 11460 continue 11461 fi 11462 11463 if test "$pre_test_object_deps_done" = no; then 11464 if test -z "$predep_objects_CXX"; then 11465 predep_objects_CXX="$p" 11466 else 11467 predep_objects_CXX="$predep_objects_CXX $p" 11468 fi 11469 else 11470 if test -z "$postdep_objects_CXX"; then 11471 postdep_objects_CXX="$p" 11472 else 11473 postdep_objects_CXX="$postdep_objects_CXX $p" 11474 fi 11475 fi 11476 ;; 11477 11478 *) ;; # Ignore the rest. 11479 11480 esac 11481 done 11482 11483 # Clean up. 11484 rm -f a.out a.exe 11485else 11486 echo "libtool.m4: error: problem compiling CXX test program" 11487fi 11488 11489$rm -f confest.$objext 11490 11491# PORTME: override above test on systems where it is broken 11492case $host_os in 11493solaris*) 11494 case $cc_basename in 11495 CC*) 11496 # Adding this requires a known-good setup of shared libraries for 11497 # Sun compiler versions before 5.6, else PIC objects from an old 11498 # archive will be linked into the output, leading to subtle bugs. 11499 postdeps_CXX='-lCstd -lCrun' 11500 ;; 11501 esac 11502esac 11503 11504 11505case " $postdeps_CXX " in 11506*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11507esac 11508 11509lt_prog_compiler_wl_CXX= 11510lt_prog_compiler_pic_CXX= 11511lt_prog_compiler_static_CXX= 11512 11513echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11514echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11515 11516 # C++ specific cases for pic, static, wl, etc. 11517 if test "$GXX" = yes; then 11518 lt_prog_compiler_wl_CXX='-Wl,' 11519 lt_prog_compiler_static_CXX='-static' 11520 11521 case $host_os in 11522 aix*) 11523 # All AIX code is PIC. 11524 if test "$host_cpu" = ia64; then 11525 # AIX 5 now supports IA64 processor 11526 lt_prog_compiler_static_CXX='-Bstatic' 11527 fi 11528 ;; 11529 amigaos*) 11530 # FIXME: we need at least 68020 code to build shared libraries, but 11531 # adding the `-m68020' flag to GCC prevents building anything better, 11532 # like `-m68040'. 11533 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11534 ;; 11535 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11536 # PIC is the default for these OSes. 11537 ;; 11538 mingw* | os2* | pw32*) 11539 # This hack is so that the source file can tell whether it is being 11540 # built for inclusion in a dll (and should export symbols for example). 11541 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11542 ;; 11543 darwin* | rhapsody*) 11544 # PIC is the default on this platform 11545 # Common symbols not allowed in MH_DYLIB files 11546 lt_prog_compiler_pic_CXX='-fno-common' 11547 ;; 11548 *djgpp*) 11549 # DJGPP does not support shared libraries at all 11550 lt_prog_compiler_pic_CXX= 11551 ;; 11552 sysv4*MP*) 11553 if test -d /usr/nec; then 11554 lt_prog_compiler_pic_CXX=-Kconform_pic 11555 fi 11556 ;; 11557 hpux*) 11558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11559 # not for PA HP-UX. 11560 case $host_cpu in 11561 hppa*64*|ia64*) 11562 ;; 11563 *) 11564 lt_prog_compiler_pic_CXX='-fPIC' 11565 ;; 11566 esac 11567 ;; 11568 *) 11569 lt_prog_compiler_pic_CXX='-fPIC' 11570 ;; 11571 esac 11572 else 11573 case $host_os in 11574 aix4* | aix5*) 11575 # All AIX code is PIC. 11576 if test "$host_cpu" = ia64; then 11577 # AIX 5 now supports IA64 processor 11578 lt_prog_compiler_static_CXX='-Bstatic' 11579 else 11580 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11581 fi 11582 ;; 11583 chorus*) 11584 case $cc_basename in 11585 cxch68*) 11586 # Green Hills C++ Compiler 11587 # _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" 11588 ;; 11589 esac 11590 ;; 11591 darwin*) 11592 # PIC is the default on this platform 11593 # Common symbols not allowed in MH_DYLIB files 11594 case $cc_basename in 11595 xlc*) 11596 lt_prog_compiler_pic_CXX='-qnocommon' 11597 lt_prog_compiler_wl_CXX='-Wl,' 11598 ;; 11599 esac 11600 ;; 11601 dgux*) 11602 case $cc_basename in 11603 ec++*) 11604 lt_prog_compiler_pic_CXX='-KPIC' 11605 ;; 11606 ghcx*) 11607 # Green Hills C++ Compiler 11608 lt_prog_compiler_pic_CXX='-pic' 11609 ;; 11610 *) 11611 ;; 11612 esac 11613 ;; 11614 freebsd* | kfreebsd*-gnu | dragonfly*) 11615 # FreeBSD uses GNU C++ 11616 ;; 11617 hpux9* | hpux10* | hpux11*) 11618 case $cc_basename in 11619 CC*) 11620 lt_prog_compiler_wl_CXX='-Wl,' 11621 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11622 if test "$host_cpu" != ia64; then 11623 lt_prog_compiler_pic_CXX='+Z' 11624 fi 11625 ;; 11626 aCC*) 11627 lt_prog_compiler_wl_CXX='-Wl,' 11628 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11629 case $host_cpu in 11630 hppa*64*|ia64*) 11631 # +Z the default 11632 ;; 11633 *) 11634 lt_prog_compiler_pic_CXX='+Z' 11635 ;; 11636 esac 11637 ;; 11638 *) 11639 ;; 11640 esac 11641 ;; 11642 irix5* | irix6* | nonstopux*) 11643 case $cc_basename in 11644 CC*) 11645 lt_prog_compiler_wl_CXX='-Wl,' 11646 lt_prog_compiler_static_CXX='-non_shared' 11647 # CC pic flag -KPIC is the default. 11648 ;; 11649 *) 11650 ;; 11651 esac 11652 ;; 11653 linux*) 11654 case $cc_basename in 11655 KCC*) 11656 # KAI C++ Compiler 11657 lt_prog_compiler_wl_CXX='--backend -Wl,' 11658 lt_prog_compiler_pic_CXX='-fPIC' 11659 ;; 11660 icpc* | ecpc*) 11661 # Intel C++ 11662 lt_prog_compiler_wl_CXX='-Wl,' 11663 lt_prog_compiler_pic_CXX='-KPIC' 11664 lt_prog_compiler_static_CXX='-static' 11665 ;; 11666 pgCC*) 11667 # Portland Group C++ compiler. 11668 lt_prog_compiler_wl_CXX='-Wl,' 11669 lt_prog_compiler_pic_CXX='-fpic' 11670 lt_prog_compiler_static_CXX='-Bstatic' 11671 ;; 11672 cxx*) 11673 # Compaq C++ 11674 # Make sure the PIC flag is empty. It appears that all Alpha 11675 # Linux and Compaq Tru64 Unix objects are PIC. 11676 lt_prog_compiler_pic_CXX= 11677 lt_prog_compiler_static_CXX='-non_shared' 11678 ;; 11679 *) 11680 ;; 11681 esac 11682 ;; 11683 lynxos*) 11684 ;; 11685 m88k*) 11686 ;; 11687 mvs*) 11688 case $cc_basename in 11689 cxx*) 11690 lt_prog_compiler_pic_CXX='-W c,exportall' 11691 ;; 11692 *) 11693 ;; 11694 esac 11695 ;; 11696 netbsd*) 11697 ;; 11698 osf3* | osf4* | osf5*) 11699 case $cc_basename in 11700 KCC*) 11701 lt_prog_compiler_wl_CXX='--backend -Wl,' 11702 ;; 11703 RCC*) 11704 # Rational C++ 2.4.1 11705 lt_prog_compiler_pic_CXX='-pic' 11706 ;; 11707 cxx*) 11708 # Digital/Compaq C++ 11709 lt_prog_compiler_wl_CXX='-Wl,' 11710 # Make sure the PIC flag is empty. It appears that all Alpha 11711 # Linux and Compaq Tru64 Unix objects are PIC. 11712 lt_prog_compiler_pic_CXX= 11713 lt_prog_compiler_static_CXX='-non_shared' 11714 ;; 11715 *) 11716 ;; 11717 esac 11718 ;; 11719 psos*) 11720 ;; 11721 sco*) 11722 case $cc_basename in 11723 CC*) 11724 lt_prog_compiler_pic_CXX='-fPIC' 11725 ;; 11726 *) 11727 ;; 11728 esac 11729 ;; 11730 solaris*) 11731 case $cc_basename in 11732 CC*) 11733 # Sun C++ 4.2, 5.x and Centerline C++ 11734 lt_prog_compiler_pic_CXX='-KPIC' 11735 lt_prog_compiler_static_CXX='-Bstatic' 11736 lt_prog_compiler_wl_CXX='-Qoption ld ' 11737 ;; 11738 gcx*) 11739 # Green Hills C++ Compiler 11740 lt_prog_compiler_pic_CXX='-PIC' 11741 ;; 11742 *) 11743 ;; 11744 esac 11745 ;; 11746 sunos4*) 11747 case $cc_basename in 11748 CC*) 11749 # Sun C++ 4.x 11750 lt_prog_compiler_pic_CXX='-pic' 11751 lt_prog_compiler_static_CXX='-Bstatic' 11752 ;; 11753 lcc*) 11754 # Lucid 11755 lt_prog_compiler_pic_CXX='-pic' 11756 ;; 11757 *) 11758 ;; 11759 esac 11760 ;; 11761 tandem*) 11762 case $cc_basename in 11763 NCC*) 11764 # NonStop-UX NCC 3.20 11765 lt_prog_compiler_pic_CXX='-KPIC' 11766 ;; 11767 *) 11768 ;; 11769 esac 11770 ;; 11771 unixware*) 11772 ;; 11773 vxworks*) 11774 ;; 11775 *) 11776 lt_prog_compiler_can_build_shared_CXX=no 11777 ;; 11778 esac 11779 fi 11780 11781echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11782echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11783 11784# 11785# Check to make sure the PIC flag actually works. 11786# 11787if test -n "$lt_prog_compiler_pic_CXX"; then 11788 11789echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11790echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11791if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11792 echo $ECHO_N "(cached) $ECHO_C" >&6 11793else 11794 lt_prog_compiler_pic_works_CXX=no 11795 ac_outfile=conftest.$ac_objext 11796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11797 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11798 # Insert the option either (1) after the last *FLAGS variable, or 11799 # (2) before a word containing "conftest.", or (3) at the end. 11800 # Note that $ac_compile itself does not contain backslashes and begins 11801 # with a dollar sign (not a hyphen), so the echo should work correctly. 11802 # The option is referenced via a variable to avoid confusing sed. 11803 lt_compile=`echo "$ac_compile" | $SED \ 11804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11806 -e 's:$: $lt_compiler_flag:'` 11807 (eval echo "\"\$as_me:11807: $lt_compile\"" >&5) 11808 (eval "$lt_compile" 2>conftest.err) 11809 ac_status=$? 11810 cat conftest.err >&5 11811 echo "$as_me:11811: \$? = $ac_status" >&5 11812 if (exit $ac_status) && test -s "$ac_outfile"; then 11813 # The compiler can only warn and ignore the option if not recognized 11814 # So say no if there are warnings other than the usual output. 11815 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11816 $SED '/^$/d' conftest.err >conftest.er2 11817 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11818 lt_prog_compiler_pic_works_CXX=yes 11819 fi 11820 fi 11821 $rm conftest* 11822 11823fi 11824echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11825echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11826 11827if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11828 case $lt_prog_compiler_pic_CXX in 11829 "" | " "*) ;; 11830 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11831 esac 11832else 11833 lt_prog_compiler_pic_CXX= 11834 lt_prog_compiler_can_build_shared_CXX=no 11835fi 11836 11837fi 11838case $host_os in 11839 # For platforms which do not support PIC, -DPIC is meaningless: 11840 *djgpp*) 11841 lt_prog_compiler_pic_CXX= 11842 ;; 11843 *) 11844 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11845 ;; 11846esac 11847 11848echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11849echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11850if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11851 echo $ECHO_N "(cached) $ECHO_C" >&6 11852else 11853 lt_cv_prog_compiler_c_o_CXX=no 11854 $rm -r conftest 2>/dev/null 11855 mkdir conftest 11856 cd conftest 11857 mkdir out 11858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11859 11860 lt_compiler_flag="-o out/conftest2.$ac_objext" 11861 # Insert the option either (1) after the last *FLAGS variable, or 11862 # (2) before a word containing "conftest.", or (3) at the end. 11863 # Note that $ac_compile itself does not contain backslashes and begins 11864 # with a dollar sign (not a hyphen), so the echo should work correctly. 11865 lt_compile=`echo "$ac_compile" | $SED \ 11866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11868 -e 's:$: $lt_compiler_flag:'` 11869 (eval echo "\"\$as_me:11869: $lt_compile\"" >&5) 11870 (eval "$lt_compile" 2>out/conftest.err) 11871 ac_status=$? 11872 cat out/conftest.err >&5 11873 echo "$as_me:11873: \$? = $ac_status" >&5 11874 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11875 then 11876 # The compiler can only warn and ignore the option if not recognized 11877 # So say no if there are warnings 11878 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11879 $SED '/^$/d' out/conftest.err >out/conftest.er2 11880 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11881 lt_cv_prog_compiler_c_o_CXX=yes 11882 fi 11883 fi 11884 chmod u+w . 2>&5 11885 $rm conftest* 11886 # SGI C++ compiler will create directory out/ii_files/ for 11887 # template instantiation 11888 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11889 $rm out/* && rmdir out 11890 cd .. 11891 rmdir conftest 11892 $rm conftest* 11893 11894fi 11895echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11896echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11897 11898 11899hard_links="nottested" 11900if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11901 # do not overwrite the value of need_locks provided by the user 11902 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11903echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11904 hard_links=yes 11905 $rm conftest* 11906 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11907 touch conftest.a 11908 ln conftest.a conftest.b 2>&5 || hard_links=no 11909 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11910 echo "$as_me:$LINENO: result: $hard_links" >&5 11911echo "${ECHO_T}$hard_links" >&6 11912 if test "$hard_links" = no; then 11913 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11914echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11915 need_locks=warn 11916 fi 11917else 11918 need_locks=no 11919fi 11920 11921echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11922echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11923 11924 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11925 case $host_os in 11926 aix4* | aix5*) 11927 # If we're using GNU nm, then we don't want the "-C" option. 11928 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11929 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11930 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' 11931 else 11932 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' 11933 fi 11934 ;; 11935 pw32*) 11936 export_symbols_cmds_CXX="$ltdll_cmds" 11937 ;; 11938 cygwin* | mingw*) 11939 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' 11940 ;; 11941 *) 11942 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11943 ;; 11944 esac 11945 11946echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11947echo "${ECHO_T}$ld_shlibs_CXX" >&6 11948test "$ld_shlibs_CXX" = no && can_build_shared=no 11949 11950variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11951if test "$GCC" = yes; then 11952 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11953fi 11954 11955# 11956# Do we need to explicitly link libc? 11957# 11958case "x$archive_cmds_need_lc_CXX" in 11959x|xyes) 11960 # Assume -lc should be added 11961 archive_cmds_need_lc_CXX=yes 11962 11963 if test "$enable_shared" = yes && test "$GCC" = yes; then 11964 case $archive_cmds_CXX in 11965 *'~'*) 11966 # FIXME: we may have to deal with multi-command sequences. 11967 ;; 11968 '$CC '*) 11969 # Test whether the compiler implicitly links with -lc since on some 11970 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11971 # to ld, don't add -lc before -lgcc. 11972 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11973echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11974 $rm conftest* 11975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11976 11977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11978 (eval $ac_compile) 2>&5 11979 ac_status=$? 11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11981 (exit $ac_status); } 2>conftest.err; then 11982 soname=conftest 11983 lib=conftest 11984 libobjs=conftest.$ac_objext 11985 deplibs= 11986 wl=$lt_prog_compiler_wl_CXX 11987 compiler_flags=-v 11988 linker_flags=-v 11989 verstring= 11990 output_objdir=. 11991 libname=conftest 11992 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11993 allow_undefined_flag_CXX= 11994 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11995 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11996 ac_status=$? 11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11998 (exit $ac_status); } 11999 then 12000 archive_cmds_need_lc_CXX=no 12001 else 12002 archive_cmds_need_lc_CXX=yes 12003 fi 12004 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12005 else 12006 cat conftest.err 1>&5 12007 fi 12008 $rm conftest* 12009 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12010echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 12011 ;; 12012 esac 12013 fi 12014 ;; 12015esac 12016 12017echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12018echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12019library_names_spec= 12020libname_spec='lib$name' 12021soname_spec= 12022shrext_cmds=".so" 12023postinstall_cmds= 12024postuninstall_cmds= 12025finish_cmds= 12026finish_eval= 12027shlibpath_var= 12028shlibpath_overrides_runpath=unknown 12029version_type=none 12030dynamic_linker="$host_os ld.so" 12031sys_lib_dlsearch_path_spec="/lib /usr/lib" 12032if test "$GCC" = yes; then 12033 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12034 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12035 # if the path contains ";" then we assume it to be the separator 12036 # otherwise default to the standard path separator (i.e. ":") - it is 12037 # assumed that no part of a normal pathname contains ";" but that should 12038 # okay in the real world where ";" in dirpaths is itself problematic. 12039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12040 else 12041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12042 fi 12043else 12044 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12045fi 12046need_lib_prefix=unknown 12047hardcode_into_libs=no 12048 12049# when you set need_version to no, make sure it does not cause -set_version 12050# flags to be left without arguments 12051need_version=unknown 12052 12053case $host_os in 12054aix3*) 12055 version_type=linux 12056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12057 shlibpath_var=LIBPATH 12058 12059 # AIX 3 has no versioning support, so we append a major version to the name. 12060 soname_spec='${libname}${release}${shared_ext}$major' 12061 ;; 12062 12063aix4* | aix5*) 12064 version_type=linux 12065 need_lib_prefix=no 12066 need_version=no 12067 hardcode_into_libs=yes 12068 if test "$host_cpu" = ia64; then 12069 # AIX 5 supports IA64 12070 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12071 shlibpath_var=LD_LIBRARY_PATH 12072 else 12073 # With GCC up to 2.95.x, collect2 would create an import file 12074 # for dependence libraries. The import file would start with 12075 # the line `#! .'. This would cause the generated library to 12076 # depend on `.', always an invalid library. This was fixed in 12077 # development snapshots of GCC prior to 3.0. 12078 case $host_os in 12079 aix4 | aix4.[01] | aix4.[01].*) 12080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12081 echo ' yes ' 12082 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12083 : 12084 else 12085 can_build_shared=no 12086 fi 12087 ;; 12088 esac 12089 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12090 # soname into executable. Probably we can add versioning support to 12091 # collect2, so additional links can be useful in future. 12092 if test "$aix_use_runtimelinking" = yes; then 12093 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12094 # instead of lib<name>.a to let people know that these are not 12095 # typical AIX shared libraries. 12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12097 else 12098 # We preserve .a as extension for shared libraries through AIX4.2 12099 # and later when we are not doing run time linking. 12100 library_names_spec='${libname}${release}.a $libname.a' 12101 soname_spec='${libname}${release}${shared_ext}$major' 12102 fi 12103 shlibpath_var=LIBPATH 12104 fi 12105 ;; 12106 12107amigaos*) 12108 library_names_spec='$libname.ixlibrary $libname.a' 12109 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12110 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' 12111 ;; 12112 12113beos*) 12114 library_names_spec='${libname}${shared_ext}' 12115 dynamic_linker="$host_os ld.so" 12116 shlibpath_var=LIBRARY_PATH 12117 ;; 12118 12119bsdi[45]*) 12120 version_type=linux 12121 need_version=no 12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12123 soname_spec='${libname}${release}${shared_ext}$major' 12124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12125 shlibpath_var=LD_LIBRARY_PATH 12126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12128 # the default ld.so.conf also contains /usr/contrib/lib and 12129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12130 # libtool to hard-code these into programs 12131 ;; 12132 12133cygwin* | mingw* | pw32*) 12134 version_type=windows 12135 shrext_cmds=".dll" 12136 need_version=no 12137 need_lib_prefix=no 12138 12139 case $GCC,$host_os in 12140 yes,cygwin* | yes,mingw* | yes,pw32*) 12141 library_names_spec='$libname.dll.a' 12142 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12143 postinstall_cmds='base_file=`basename \${file}`~ 12144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12145 dldir=$destdir/`dirname \$dlpath`~ 12146 test -d \$dldir || mkdir -p \$dldir~ 12147 $install_prog $dir/$dlname \$dldir/$dlname~ 12148 chmod a+x \$dldir/$dlname' 12149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12150 dlpath=$dir/\$dldll~ 12151 $rm \$dlpath' 12152 shlibpath_overrides_runpath=yes 12153 12154 case $host_os in 12155 cygwin*) 12156 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12157 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12158 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12159 ;; 12160 mingw*) 12161 # MinGW DLLs use traditional 'lib' prefix 12162 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12164 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12165 # It is most probably a Windows format PATH printed by 12166 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12167 # path with ; separators, and with drive letters. We can handle the 12168 # drive letters (cygwin fileutils understands them), so leave them, 12169 # especially as we might pass files found there to a mingw objdump, 12170 # which wouldn't understand a cygwinified path. Ahh. 12171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12172 else 12173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12174 fi 12175 ;; 12176 pw32*) 12177 # pw32 DLLs use 'pw' prefix rather than 'lib' 12178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12179 ;; 12180 esac 12181 ;; 12182 12183 *) 12184 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12185 ;; 12186 esac 12187 dynamic_linker='Win32 ld.exe' 12188 # FIXME: first we should search . and the directory the executable is in 12189 shlibpath_var=PATH 12190 ;; 12191 12192darwin* | rhapsody*) 12193 dynamic_linker="$host_os dyld" 12194 version_type=darwin 12195 need_lib_prefix=no 12196 need_version=no 12197 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12198 soname_spec='${libname}${release}${major}$shared_ext' 12199 shlibpath_overrides_runpath=yes 12200 shlibpath_var=DYLD_LIBRARY_PATH 12201 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12202 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12203 if test "$GCC" = yes; then 12204 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"` 12205 else 12206 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12207 fi 12208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12209 ;; 12210 12211dgux*) 12212 version_type=linux 12213 need_lib_prefix=no 12214 need_version=no 12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12216 soname_spec='${libname}${release}${shared_ext}$major' 12217 shlibpath_var=LD_LIBRARY_PATH 12218 ;; 12219 12220freebsd1*) 12221 dynamic_linker=no 12222 ;; 12223 12224kfreebsd*-gnu) 12225 version_type=linux 12226 need_lib_prefix=no 12227 need_version=no 12228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12229 soname_spec='${libname}${release}${shared_ext}$major' 12230 shlibpath_var=LD_LIBRARY_PATH 12231 shlibpath_overrides_runpath=no 12232 hardcode_into_libs=yes 12233 dynamic_linker='GNU ld.so' 12234 ;; 12235 12236freebsd* | dragonfly*) 12237 # DragonFly does not have aout. When/if they implement a new 12238 # versioning mechanism, adjust this. 12239 if test -x /usr/bin/objformat; then 12240 objformat=`/usr/bin/objformat` 12241 else 12242 case $host_os in 12243 freebsd[123]*) objformat=aout ;; 12244 *) objformat=elf ;; 12245 esac 12246 fi 12247 version_type=freebsd-$objformat 12248 case $version_type in 12249 freebsd-elf*) 12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12251 need_version=no 12252 need_lib_prefix=no 12253 ;; 12254 freebsd-*) 12255 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12256 need_version=yes 12257 ;; 12258 esac 12259 shlibpath_var=LD_LIBRARY_PATH 12260 case $host_os in 12261 freebsd2*) 12262 shlibpath_overrides_runpath=yes 12263 ;; 12264 freebsd3.[01]* | freebsdelf3.[01]*) 12265 shlibpath_overrides_runpath=yes 12266 hardcode_into_libs=yes 12267 ;; 12268 *) # from 3.2 on 12269 shlibpath_overrides_runpath=no 12270 hardcode_into_libs=yes 12271 ;; 12272 esac 12273 ;; 12274 12275gnu*) 12276 version_type=linux 12277 need_lib_prefix=no 12278 need_version=no 12279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12280 soname_spec='${libname}${release}${shared_ext}$major' 12281 shlibpath_var=LD_LIBRARY_PATH 12282 hardcode_into_libs=yes 12283 ;; 12284 12285hpux9* | hpux10* | hpux11*) 12286 # Give a soname corresponding to the major version so that dld.sl refuses to 12287 # link against other versions. 12288 version_type=sunos 12289 need_lib_prefix=no 12290 need_version=no 12291 case $host_cpu in 12292 ia64*) 12293 shrext_cmds='.so' 12294 hardcode_into_libs=yes 12295 dynamic_linker="$host_os dld.so" 12296 shlibpath_var=LD_LIBRARY_PATH 12297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12299 soname_spec='${libname}${release}${shared_ext}$major' 12300 if test "X$HPUX_IA64_MODE" = X32; then 12301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12302 else 12303 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12304 fi 12305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12306 ;; 12307 hppa*64*) 12308 shrext_cmds='.sl' 12309 hardcode_into_libs=yes 12310 dynamic_linker="$host_os dld.sl" 12311 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12314 soname_spec='${libname}${release}${shared_ext}$major' 12315 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12317 ;; 12318 *) 12319 shrext_cmds='.sl' 12320 dynamic_linker="$host_os dld.sl" 12321 shlibpath_var=SHLIB_PATH 12322 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12324 soname_spec='${libname}${release}${shared_ext}$major' 12325 ;; 12326 esac 12327 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12328 postinstall_cmds='chmod 555 $lib' 12329 ;; 12330 12331irix5* | irix6* | nonstopux*) 12332 case $host_os in 12333 nonstopux*) version_type=nonstopux ;; 12334 *) 12335 if test "$lt_cv_prog_gnu_ld" = yes; then 12336 version_type=linux 12337 else 12338 version_type=irix 12339 fi ;; 12340 esac 12341 need_lib_prefix=no 12342 need_version=no 12343 soname_spec='${libname}${release}${shared_ext}$major' 12344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12345 case $host_os in 12346 irix5* | nonstopux*) 12347 libsuff= shlibsuff= 12348 ;; 12349 *) 12350 case $LD in # libtool.m4 will add one of these switches to LD 12351 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12352 libsuff= shlibsuff= libmagic=32-bit;; 12353 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12354 libsuff=32 shlibsuff=N32 libmagic=N32;; 12355 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12356 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12357 *) libsuff= shlibsuff= libmagic=never-match;; 12358 esac 12359 ;; 12360 esac 12361 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12362 shlibpath_overrides_runpath=no 12363 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12364 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12365 hardcode_into_libs=yes 12366 ;; 12367 12368# No shared lib support for Linux oldld, aout, or coff. 12369linux*oldld* | linux*aout* | linux*coff*) 12370 dynamic_linker=no 12371 ;; 12372 12373# This must be Linux ELF. 12374linux*) 12375 version_type=linux 12376 need_lib_prefix=no 12377 need_version=no 12378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12379 soname_spec='${libname}${release}${shared_ext}$major' 12380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12381 shlibpath_var=LD_LIBRARY_PATH 12382 shlibpath_overrides_runpath=no 12383 # This implies no fast_install, which is unacceptable. 12384 # Some rework will be needed to allow for fast_install 12385 # before this can be enabled. 12386 hardcode_into_libs=yes 12387 12388 # Append ld.so.conf contents to the search path 12389 if test -f /etc/ld.so.conf; then 12390 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12391 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12392 fi 12393 12394 # We used to test for /lib/ld.so.1 and disable shared libraries on 12395 # powerpc, because MkLinux only supported shared libraries with the 12396 # GNU dynamic linker. Since this was broken with cross compilers, 12397 # most powerpc-linux boxes support dynamic linking these days and 12398 # people can always --disable-shared, the test was removed, and we 12399 # assume the GNU/Linux dynamic linker is in use. 12400 dynamic_linker='GNU/Linux ld.so' 12401 ;; 12402 12403knetbsd*-gnu) 12404 version_type=linux 12405 need_lib_prefix=no 12406 need_version=no 12407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12408 soname_spec='${libname}${release}${shared_ext}$major' 12409 shlibpath_var=LD_LIBRARY_PATH 12410 shlibpath_overrides_runpath=no 12411 hardcode_into_libs=yes 12412 dynamic_linker='GNU ld.so' 12413 ;; 12414 12415netbsd*) 12416 version_type=sunos 12417 need_lib_prefix=no 12418 need_version=no 12419 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12422 dynamic_linker='NetBSD (a.out) ld.so' 12423 else 12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12425 soname_spec='${libname}${release}${shared_ext}$major' 12426 dynamic_linker='NetBSD ld.elf_so' 12427 fi 12428 shlibpath_var=LD_LIBRARY_PATH 12429 shlibpath_overrides_runpath=yes 12430 hardcode_into_libs=yes 12431 ;; 12432 12433newsos6) 12434 version_type=linux 12435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12436 shlibpath_var=LD_LIBRARY_PATH 12437 shlibpath_overrides_runpath=yes 12438 ;; 12439 12440nto-qnx*) 12441 version_type=linux 12442 need_lib_prefix=no 12443 need_version=no 12444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12445 soname_spec='${libname}${release}${shared_ext}$major' 12446 shlibpath_var=LD_LIBRARY_PATH 12447 shlibpath_overrides_runpath=yes 12448 ;; 12449 12450openbsd*) 12451 version_type=sunos 12452 need_lib_prefix=no 12453 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12454 case $host_os in 12455 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12456 *) need_version=no ;; 12457 esac 12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12460 shlibpath_var=LD_LIBRARY_PATH 12461 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12462 case $host_os in 12463 openbsd2.[89] | openbsd2.[89].*) 12464 shlibpath_overrides_runpath=no 12465 ;; 12466 *) 12467 shlibpath_overrides_runpath=yes 12468 ;; 12469 esac 12470 else 12471 shlibpath_overrides_runpath=yes 12472 fi 12473 ;; 12474 12475os2*) 12476 libname_spec='$name' 12477 shrext_cmds=".dll" 12478 need_lib_prefix=no 12479 library_names_spec='$libname${shared_ext} $libname.a' 12480 dynamic_linker='OS/2 ld.exe' 12481 shlibpath_var=LIBPATH 12482 ;; 12483 12484osf3* | osf4* | osf5*) 12485 version_type=osf 12486 need_lib_prefix=no 12487 need_version=no 12488 soname_spec='${libname}${release}${shared_ext}$major' 12489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12490 shlibpath_var=LD_LIBRARY_PATH 12491 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12492 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12493 ;; 12494 12495sco3.2v5*) 12496 version_type=osf 12497 soname_spec='${libname}${release}${shared_ext}$major' 12498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12499 shlibpath_var=LD_LIBRARY_PATH 12500 ;; 12501 12502solaris*) 12503 version_type=linux 12504 need_lib_prefix=no 12505 need_version=no 12506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12507 soname_spec='${libname}${release}${shared_ext}$major' 12508 shlibpath_var=LD_LIBRARY_PATH 12509 shlibpath_overrides_runpath=yes 12510 hardcode_into_libs=yes 12511 # ldd complains unless libraries are executable 12512 postinstall_cmds='chmod +x $lib' 12513 ;; 12514 12515sunos4*) 12516 version_type=sunos 12517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12518 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12519 shlibpath_var=LD_LIBRARY_PATH 12520 shlibpath_overrides_runpath=yes 12521 if test "$with_gnu_ld" = yes; then 12522 need_lib_prefix=no 12523 fi 12524 need_version=yes 12525 ;; 12526 12527sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12528 version_type=linux 12529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12530 soname_spec='${libname}${release}${shared_ext}$major' 12531 shlibpath_var=LD_LIBRARY_PATH 12532 case $host_vendor in 12533 sni) 12534 shlibpath_overrides_runpath=no 12535 need_lib_prefix=no 12536 export_dynamic_flag_spec='${wl}-Blargedynsym' 12537 runpath_var=LD_RUN_PATH 12538 ;; 12539 siemens) 12540 need_lib_prefix=no 12541 ;; 12542 motorola) 12543 need_lib_prefix=no 12544 need_version=no 12545 shlibpath_overrides_runpath=no 12546 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12547 ;; 12548 esac 12549 ;; 12550 12551sysv4*MP*) 12552 if test -d /usr/nec ;then 12553 version_type=linux 12554 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12555 soname_spec='$libname${shared_ext}.$major' 12556 shlibpath_var=LD_LIBRARY_PATH 12557 fi 12558 ;; 12559 12560uts4*) 12561 version_type=linux 12562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12563 soname_spec='${libname}${release}${shared_ext}$major' 12564 shlibpath_var=LD_LIBRARY_PATH 12565 ;; 12566 12567*) 12568 dynamic_linker=no 12569 ;; 12570esac 12571echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12572echo "${ECHO_T}$dynamic_linker" >&6 12573test "$dynamic_linker" = no && can_build_shared=no 12574 12575echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12576echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12577hardcode_action_CXX= 12578if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12579 test -n "$runpath_var_CXX" || \ 12580 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12581 12582 # We can hardcode non-existant directories. 12583 if test "$hardcode_direct_CXX" != no && 12584 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12585 # have to relink, otherwise we might link with an installed library 12586 # when we should be linking with a yet-to-be-installed one 12587 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12588 test "$hardcode_minus_L_CXX" != no; then 12589 # Linking always hardcodes the temporary library directory. 12590 hardcode_action_CXX=relink 12591 else 12592 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12593 hardcode_action_CXX=immediate 12594 fi 12595else 12596 # We cannot hardcode anything, or else we can only hardcode existing 12597 # directories. 12598 hardcode_action_CXX=unsupported 12599fi 12600echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12601echo "${ECHO_T}$hardcode_action_CXX" >&6 12602 12603if test "$hardcode_action_CXX" = relink; then 12604 # Fast installation is not supported 12605 enable_fast_install=no 12606elif test "$shlibpath_overrides_runpath" = yes || 12607 test "$enable_shared" = no; then 12608 # Fast installation is not necessary 12609 enable_fast_install=needless 12610fi 12611 12612striplib= 12613old_striplib= 12614echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12615echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12616if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12617 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12618 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12619 echo "$as_me:$LINENO: result: yes" >&5 12620echo "${ECHO_T}yes" >&6 12621else 12622# FIXME - insert some real tests, host_os isn't really good enough 12623 case $host_os in 12624 darwin*) 12625 if test -n "$STRIP" ; then 12626 striplib="$STRIP -x" 12627 echo "$as_me:$LINENO: result: yes" >&5 12628echo "${ECHO_T}yes" >&6 12629 else 12630 echo "$as_me:$LINENO: result: no" >&5 12631echo "${ECHO_T}no" >&6 12632fi 12633 ;; 12634 *) 12635 echo "$as_me:$LINENO: result: no" >&5 12636echo "${ECHO_T}no" >&6 12637 ;; 12638 esac 12639fi 12640 12641if test "x$enable_dlopen" != xyes; then 12642 enable_dlopen=unknown 12643 enable_dlopen_self=unknown 12644 enable_dlopen_self_static=unknown 12645else 12646 lt_cv_dlopen=no 12647 lt_cv_dlopen_libs= 12648 12649 case $host_os in 12650 beos*) 12651 lt_cv_dlopen="load_add_on" 12652 lt_cv_dlopen_libs= 12653 lt_cv_dlopen_self=yes 12654 ;; 12655 12656 mingw* | pw32*) 12657 lt_cv_dlopen="LoadLibrary" 12658 lt_cv_dlopen_libs= 12659 ;; 12660 12661 cygwin*) 12662 lt_cv_dlopen="dlopen" 12663 lt_cv_dlopen_libs= 12664 ;; 12665 12666 darwin*) 12667 # if libdl is installed we need to link against it 12668 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12669echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12670if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12671 echo $ECHO_N "(cached) $ECHO_C" >&6 12672else 12673 ac_check_lib_save_LIBS=$LIBS 12674LIBS="-ldl $LIBS" 12675cat >conftest.$ac_ext <<_ACEOF 12676/* confdefs.h. */ 12677_ACEOF 12678cat confdefs.h >>conftest.$ac_ext 12679cat >>conftest.$ac_ext <<_ACEOF 12680/* end confdefs.h. */ 12681 12682/* Override any gcc2 internal prototype to avoid an error. */ 12683#ifdef __cplusplus 12684extern "C" 12685#endif 12686/* We use char because int might match the return type of a gcc2 12687 builtin and then its argument prototype would still apply. */ 12688char dlopen (); 12689int 12690main () 12691{ 12692dlopen (); 12693 ; 12694 return 0; 12695} 12696_ACEOF 12697rm -f conftest.$ac_objext conftest$ac_exeext 12698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12699 (eval $ac_link) 2>conftest.er1 12700 ac_status=$? 12701 grep -v '^ *+' conftest.er1 >conftest.err 12702 rm -f conftest.er1 12703 cat conftest.err >&5 12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12705 (exit $ac_status); } && 12706 { ac_try='test -z "$ac_cxx_werror_flag" 12707 || test ! -s conftest.err' 12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12709 (eval $ac_try) 2>&5 12710 ac_status=$? 12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12712 (exit $ac_status); }; } && 12713 { ac_try='test -s conftest$ac_exeext' 12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12715 (eval $ac_try) 2>&5 12716 ac_status=$? 12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12718 (exit $ac_status); }; }; then 12719 ac_cv_lib_dl_dlopen=yes 12720else 12721 echo "$as_me: failed program was:" >&5 12722sed 's/^/| /' conftest.$ac_ext >&5 12723 12724ac_cv_lib_dl_dlopen=no 12725fi 12726rm -f conftest.err conftest.$ac_objext \ 12727 conftest$ac_exeext conftest.$ac_ext 12728LIBS=$ac_check_lib_save_LIBS 12729fi 12730echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12731echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12732if test $ac_cv_lib_dl_dlopen = yes; then 12733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12734else 12735 12736 lt_cv_dlopen="dyld" 12737 lt_cv_dlopen_libs= 12738 lt_cv_dlopen_self=yes 12739 12740fi 12741 12742 ;; 12743 12744 *) 12745 echo "$as_me:$LINENO: checking for shl_load" >&5 12746echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12747if test "${ac_cv_func_shl_load+set}" = set; then 12748 echo $ECHO_N "(cached) $ECHO_C" >&6 12749else 12750 cat >conftest.$ac_ext <<_ACEOF 12751/* confdefs.h. */ 12752_ACEOF 12753cat confdefs.h >>conftest.$ac_ext 12754cat >>conftest.$ac_ext <<_ACEOF 12755/* end confdefs.h. */ 12756/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12757 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12758#define shl_load innocuous_shl_load 12759 12760/* System header to define __stub macros and hopefully few prototypes, 12761 which can conflict with char shl_load (); below. 12762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12763 <limits.h> exists even on freestanding compilers. */ 12764 12765#ifdef __STDC__ 12766# include <limits.h> 12767#else 12768# include <assert.h> 12769#endif 12770 12771#undef shl_load 12772 12773/* Override any gcc2 internal prototype to avoid an error. */ 12774#ifdef __cplusplus 12775extern "C" 12776{ 12777#endif 12778/* We use char because int might match the return type of a gcc2 12779 builtin and then its argument prototype would still apply. */ 12780char shl_load (); 12781/* The GNU C library defines this for functions which it implements 12782 to always fail with ENOSYS. Some functions are actually named 12783 something starting with __ and the normal name is an alias. */ 12784#if defined (__stub_shl_load) || defined (__stub___shl_load) 12785choke me 12786#else 12787char (*f) () = shl_load; 12788#endif 12789#ifdef __cplusplus 12790} 12791#endif 12792 12793int 12794main () 12795{ 12796return f != shl_load; 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801rm -f conftest.$ac_objext conftest$ac_exeext 12802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12803 (eval $ac_link) 2>conftest.er1 12804 ac_status=$? 12805 grep -v '^ *+' conftest.er1 >conftest.err 12806 rm -f conftest.er1 12807 cat conftest.err >&5 12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12809 (exit $ac_status); } && 12810 { ac_try='test -z "$ac_cxx_werror_flag" 12811 || test ! -s conftest.err' 12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12813 (eval $ac_try) 2>&5 12814 ac_status=$? 12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12816 (exit $ac_status); }; } && 12817 { ac_try='test -s conftest$ac_exeext' 12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12819 (eval $ac_try) 2>&5 12820 ac_status=$? 12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12822 (exit $ac_status); }; }; then 12823 ac_cv_func_shl_load=yes 12824else 12825 echo "$as_me: failed program was:" >&5 12826sed 's/^/| /' conftest.$ac_ext >&5 12827 12828ac_cv_func_shl_load=no 12829fi 12830rm -f conftest.err conftest.$ac_objext \ 12831 conftest$ac_exeext conftest.$ac_ext 12832fi 12833echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12834echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12835if test $ac_cv_func_shl_load = yes; then 12836 lt_cv_dlopen="shl_load" 12837else 12838 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12839echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12840if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12841 echo $ECHO_N "(cached) $ECHO_C" >&6 12842else 12843 ac_check_lib_save_LIBS=$LIBS 12844LIBS="-ldld $LIBS" 12845cat >conftest.$ac_ext <<_ACEOF 12846/* confdefs.h. */ 12847_ACEOF 12848cat confdefs.h >>conftest.$ac_ext 12849cat >>conftest.$ac_ext <<_ACEOF 12850/* end confdefs.h. */ 12851 12852/* Override any gcc2 internal prototype to avoid an error. */ 12853#ifdef __cplusplus 12854extern "C" 12855#endif 12856/* We use char because int might match the return type of a gcc2 12857 builtin and then its argument prototype would still apply. */ 12858char shl_load (); 12859int 12860main () 12861{ 12862shl_load (); 12863 ; 12864 return 0; 12865} 12866_ACEOF 12867rm -f conftest.$ac_objext conftest$ac_exeext 12868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12869 (eval $ac_link) 2>conftest.er1 12870 ac_status=$? 12871 grep -v '^ *+' conftest.er1 >conftest.err 12872 rm -f conftest.er1 12873 cat conftest.err >&5 12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12875 (exit $ac_status); } && 12876 { ac_try='test -z "$ac_cxx_werror_flag" 12877 || test ! -s conftest.err' 12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12879 (eval $ac_try) 2>&5 12880 ac_status=$? 12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12882 (exit $ac_status); }; } && 12883 { ac_try='test -s conftest$ac_exeext' 12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12885 (eval $ac_try) 2>&5 12886 ac_status=$? 12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12888 (exit $ac_status); }; }; then 12889 ac_cv_lib_dld_shl_load=yes 12890else 12891 echo "$as_me: failed program was:" >&5 12892sed 's/^/| /' conftest.$ac_ext >&5 12893 12894ac_cv_lib_dld_shl_load=no 12895fi 12896rm -f conftest.err conftest.$ac_objext \ 12897 conftest$ac_exeext conftest.$ac_ext 12898LIBS=$ac_check_lib_save_LIBS 12899fi 12900echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12901echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12902if test $ac_cv_lib_dld_shl_load = yes; then 12903 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12904else 12905 echo "$as_me:$LINENO: checking for dlopen" >&5 12906echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12907if test "${ac_cv_func_dlopen+set}" = set; then 12908 echo $ECHO_N "(cached) $ECHO_C" >&6 12909else 12910 cat >conftest.$ac_ext <<_ACEOF 12911/* confdefs.h. */ 12912_ACEOF 12913cat confdefs.h >>conftest.$ac_ext 12914cat >>conftest.$ac_ext <<_ACEOF 12915/* end confdefs.h. */ 12916/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12917 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12918#define dlopen innocuous_dlopen 12919 12920/* System header to define __stub macros and hopefully few prototypes, 12921 which can conflict with char dlopen (); below. 12922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12923 <limits.h> exists even on freestanding compilers. */ 12924 12925#ifdef __STDC__ 12926# include <limits.h> 12927#else 12928# include <assert.h> 12929#endif 12930 12931#undef dlopen 12932 12933/* Override any gcc2 internal prototype to avoid an error. */ 12934#ifdef __cplusplus 12935extern "C" 12936{ 12937#endif 12938/* We use char because int might match the return type of a gcc2 12939 builtin and then its argument prototype would still apply. */ 12940char dlopen (); 12941/* The GNU C library defines this for functions which it implements 12942 to always fail with ENOSYS. Some functions are actually named 12943 something starting with __ and the normal name is an alias. */ 12944#if defined (__stub_dlopen) || defined (__stub___dlopen) 12945choke me 12946#else 12947char (*f) () = dlopen; 12948#endif 12949#ifdef __cplusplus 12950} 12951#endif 12952 12953int 12954main () 12955{ 12956return f != dlopen; 12957 ; 12958 return 0; 12959} 12960_ACEOF 12961rm -f conftest.$ac_objext conftest$ac_exeext 12962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12963 (eval $ac_link) 2>conftest.er1 12964 ac_status=$? 12965 grep -v '^ *+' conftest.er1 >conftest.err 12966 rm -f conftest.er1 12967 cat conftest.err >&5 12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12969 (exit $ac_status); } && 12970 { ac_try='test -z "$ac_cxx_werror_flag" 12971 || test ! -s conftest.err' 12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12973 (eval $ac_try) 2>&5 12974 ac_status=$? 12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12976 (exit $ac_status); }; } && 12977 { ac_try='test -s conftest$ac_exeext' 12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12979 (eval $ac_try) 2>&5 12980 ac_status=$? 12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12982 (exit $ac_status); }; }; then 12983 ac_cv_func_dlopen=yes 12984else 12985 echo "$as_me: failed program was:" >&5 12986sed 's/^/| /' conftest.$ac_ext >&5 12987 12988ac_cv_func_dlopen=no 12989fi 12990rm -f conftest.err conftest.$ac_objext \ 12991 conftest$ac_exeext conftest.$ac_ext 12992fi 12993echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12994echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12995if test $ac_cv_func_dlopen = yes; then 12996 lt_cv_dlopen="dlopen" 12997else 12998 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12999echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 13000if test "${ac_cv_lib_dl_dlopen+set}" = set; then 13001 echo $ECHO_N "(cached) $ECHO_C" >&6 13002else 13003 ac_check_lib_save_LIBS=$LIBS 13004LIBS="-ldl $LIBS" 13005cat >conftest.$ac_ext <<_ACEOF 13006/* confdefs.h. */ 13007_ACEOF 13008cat confdefs.h >>conftest.$ac_ext 13009cat >>conftest.$ac_ext <<_ACEOF 13010/* end confdefs.h. */ 13011 13012/* Override any gcc2 internal prototype to avoid an error. */ 13013#ifdef __cplusplus 13014extern "C" 13015#endif 13016/* We use char because int might match the return type of a gcc2 13017 builtin and then its argument prototype would still apply. */ 13018char dlopen (); 13019int 13020main () 13021{ 13022dlopen (); 13023 ; 13024 return 0; 13025} 13026_ACEOF 13027rm -f conftest.$ac_objext conftest$ac_exeext 13028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13029 (eval $ac_link) 2>conftest.er1 13030 ac_status=$? 13031 grep -v '^ *+' conftest.er1 >conftest.err 13032 rm -f conftest.er1 13033 cat conftest.err >&5 13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13035 (exit $ac_status); } && 13036 { ac_try='test -z "$ac_cxx_werror_flag" 13037 || test ! -s conftest.err' 13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13039 (eval $ac_try) 2>&5 13040 ac_status=$? 13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13042 (exit $ac_status); }; } && 13043 { ac_try='test -s conftest$ac_exeext' 13044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13045 (eval $ac_try) 2>&5 13046 ac_status=$? 13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13048 (exit $ac_status); }; }; then 13049 ac_cv_lib_dl_dlopen=yes 13050else 13051 echo "$as_me: failed program was:" >&5 13052sed 's/^/| /' conftest.$ac_ext >&5 13053 13054ac_cv_lib_dl_dlopen=no 13055fi 13056rm -f conftest.err conftest.$ac_objext \ 13057 conftest$ac_exeext conftest.$ac_ext 13058LIBS=$ac_check_lib_save_LIBS 13059fi 13060echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 13061echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 13062if test $ac_cv_lib_dl_dlopen = yes; then 13063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13064else 13065 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 13066echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 13067if test "${ac_cv_lib_svld_dlopen+set}" = set; then 13068 echo $ECHO_N "(cached) $ECHO_C" >&6 13069else 13070 ac_check_lib_save_LIBS=$LIBS 13071LIBS="-lsvld $LIBS" 13072cat >conftest.$ac_ext <<_ACEOF 13073/* confdefs.h. */ 13074_ACEOF 13075cat confdefs.h >>conftest.$ac_ext 13076cat >>conftest.$ac_ext <<_ACEOF 13077/* end confdefs.h. */ 13078 13079/* Override any gcc2 internal prototype to avoid an error. */ 13080#ifdef __cplusplus 13081extern "C" 13082#endif 13083/* We use char because int might match the return type of a gcc2 13084 builtin and then its argument prototype would still apply. */ 13085char dlopen (); 13086int 13087main () 13088{ 13089dlopen (); 13090 ; 13091 return 0; 13092} 13093_ACEOF 13094rm -f conftest.$ac_objext conftest$ac_exeext 13095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13096 (eval $ac_link) 2>conftest.er1 13097 ac_status=$? 13098 grep -v '^ *+' conftest.er1 >conftest.err 13099 rm -f conftest.er1 13100 cat conftest.err >&5 13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13102 (exit $ac_status); } && 13103 { ac_try='test -z "$ac_cxx_werror_flag" 13104 || test ! -s conftest.err' 13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13106 (eval $ac_try) 2>&5 13107 ac_status=$? 13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13109 (exit $ac_status); }; } && 13110 { ac_try='test -s conftest$ac_exeext' 13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13112 (eval $ac_try) 2>&5 13113 ac_status=$? 13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13115 (exit $ac_status); }; }; then 13116 ac_cv_lib_svld_dlopen=yes 13117else 13118 echo "$as_me: failed program was:" >&5 13119sed 's/^/| /' conftest.$ac_ext >&5 13120 13121ac_cv_lib_svld_dlopen=no 13122fi 13123rm -f conftest.err conftest.$ac_objext \ 13124 conftest$ac_exeext conftest.$ac_ext 13125LIBS=$ac_check_lib_save_LIBS 13126fi 13127echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 13128echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 13129if test $ac_cv_lib_svld_dlopen = yes; then 13130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13131else 13132 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 13133echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 13134if test "${ac_cv_lib_dld_dld_link+set}" = set; then 13135 echo $ECHO_N "(cached) $ECHO_C" >&6 13136else 13137 ac_check_lib_save_LIBS=$LIBS 13138LIBS="-ldld $LIBS" 13139cat >conftest.$ac_ext <<_ACEOF 13140/* confdefs.h. */ 13141_ACEOF 13142cat confdefs.h >>conftest.$ac_ext 13143cat >>conftest.$ac_ext <<_ACEOF 13144/* end confdefs.h. */ 13145 13146/* Override any gcc2 internal prototype to avoid an error. */ 13147#ifdef __cplusplus 13148extern "C" 13149#endif 13150/* We use char because int might match the return type of a gcc2 13151 builtin and then its argument prototype would still apply. */ 13152char dld_link (); 13153int 13154main () 13155{ 13156dld_link (); 13157 ; 13158 return 0; 13159} 13160_ACEOF 13161rm -f conftest.$ac_objext conftest$ac_exeext 13162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13163 (eval $ac_link) 2>conftest.er1 13164 ac_status=$? 13165 grep -v '^ *+' conftest.er1 >conftest.err 13166 rm -f conftest.er1 13167 cat conftest.err >&5 13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13169 (exit $ac_status); } && 13170 { ac_try='test -z "$ac_cxx_werror_flag" 13171 || test ! -s conftest.err' 13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13173 (eval $ac_try) 2>&5 13174 ac_status=$? 13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13176 (exit $ac_status); }; } && 13177 { ac_try='test -s conftest$ac_exeext' 13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13179 (eval $ac_try) 2>&5 13180 ac_status=$? 13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13182 (exit $ac_status); }; }; then 13183 ac_cv_lib_dld_dld_link=yes 13184else 13185 echo "$as_me: failed program was:" >&5 13186sed 's/^/| /' conftest.$ac_ext >&5 13187 13188ac_cv_lib_dld_dld_link=no 13189fi 13190rm -f conftest.err conftest.$ac_objext \ 13191 conftest$ac_exeext conftest.$ac_ext 13192LIBS=$ac_check_lib_save_LIBS 13193fi 13194echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 13195echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 13196if test $ac_cv_lib_dld_dld_link = yes; then 13197 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 13198fi 13199 13200 13201fi 13202 13203 13204fi 13205 13206 13207fi 13208 13209 13210fi 13211 13212 13213fi 13214 13215 ;; 13216 esac 13217 13218 if test "x$lt_cv_dlopen" != xno; then 13219 enable_dlopen=yes 13220 else 13221 enable_dlopen=no 13222 fi 13223 13224 case $lt_cv_dlopen in 13225 dlopen) 13226 save_CPPFLAGS="$CPPFLAGS" 13227 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13228 13229 save_LDFLAGS="$LDFLAGS" 13230 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13231 13232 save_LIBS="$LIBS" 13233 LIBS="$lt_cv_dlopen_libs $LIBS" 13234 13235 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 13236echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 13237if test "${lt_cv_dlopen_self+set}" = set; then 13238 echo $ECHO_N "(cached) $ECHO_C" >&6 13239else 13240 if test "$cross_compiling" = yes; then : 13241 lt_cv_dlopen_self=cross 13242else 13243 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13244 lt_status=$lt_dlunknown 13245 cat > conftest.$ac_ext <<EOF 13246#line 13246 "configure" 13247#include "confdefs.h" 13248 13249#if HAVE_DLFCN_H 13250#include <dlfcn.h> 13251#endif 13252 13253#include <stdio.h> 13254 13255#ifdef RTLD_GLOBAL 13256# define LT_DLGLOBAL RTLD_GLOBAL 13257#else 13258# ifdef DL_GLOBAL 13259# define LT_DLGLOBAL DL_GLOBAL 13260# else 13261# define LT_DLGLOBAL 0 13262# endif 13263#endif 13264 13265/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13266 find out it does not work in some platform. */ 13267#ifndef LT_DLLAZY_OR_NOW 13268# ifdef RTLD_LAZY 13269# define LT_DLLAZY_OR_NOW RTLD_LAZY 13270# else 13271# ifdef DL_LAZY 13272# define LT_DLLAZY_OR_NOW DL_LAZY 13273# else 13274# ifdef RTLD_NOW 13275# define LT_DLLAZY_OR_NOW RTLD_NOW 13276# else 13277# ifdef DL_NOW 13278# define LT_DLLAZY_OR_NOW DL_NOW 13279# else 13280# define LT_DLLAZY_OR_NOW 0 13281# endif 13282# endif 13283# endif 13284# endif 13285#endif 13286 13287#ifdef __cplusplus 13288extern "C" void exit (int); 13289#endif 13290 13291void fnord() { int i=42;} 13292int main () 13293{ 13294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13295 int status = $lt_dlunknown; 13296 13297 if (self) 13298 { 13299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13300 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13301 /* dlclose (self); */ 13302 } 13303 13304 exit (status); 13305} 13306EOF 13307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13308 (eval $ac_link) 2>&5 13309 ac_status=$? 13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13311 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13312 (./conftest; exit; ) >&5 2>/dev/null 13313 lt_status=$? 13314 case x$lt_status in 13315 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13316 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13317 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 13318 esac 13319 else : 13320 # compilation failed 13321 lt_cv_dlopen_self=no 13322 fi 13323fi 13324rm -fr conftest* 13325 13326 13327fi 13328echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 13329echo "${ECHO_T}$lt_cv_dlopen_self" >&6 13330 13331 if test "x$lt_cv_dlopen_self" = xyes; then 13332 LDFLAGS="$LDFLAGS $link_static_flag" 13333 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 13334echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 13335if test "${lt_cv_dlopen_self_static+set}" = set; then 13336 echo $ECHO_N "(cached) $ECHO_C" >&6 13337else 13338 if test "$cross_compiling" = yes; then : 13339 lt_cv_dlopen_self_static=cross 13340else 13341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13342 lt_status=$lt_dlunknown 13343 cat > conftest.$ac_ext <<EOF 13344#line 13344 "configure" 13345#include "confdefs.h" 13346 13347#if HAVE_DLFCN_H 13348#include <dlfcn.h> 13349#endif 13350 13351#include <stdio.h> 13352 13353#ifdef RTLD_GLOBAL 13354# define LT_DLGLOBAL RTLD_GLOBAL 13355#else 13356# ifdef DL_GLOBAL 13357# define LT_DLGLOBAL DL_GLOBAL 13358# else 13359# define LT_DLGLOBAL 0 13360# endif 13361#endif 13362 13363/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13364 find out it does not work in some platform. */ 13365#ifndef LT_DLLAZY_OR_NOW 13366# ifdef RTLD_LAZY 13367# define LT_DLLAZY_OR_NOW RTLD_LAZY 13368# else 13369# ifdef DL_LAZY 13370# define LT_DLLAZY_OR_NOW DL_LAZY 13371# else 13372# ifdef RTLD_NOW 13373# define LT_DLLAZY_OR_NOW RTLD_NOW 13374# else 13375# ifdef DL_NOW 13376# define LT_DLLAZY_OR_NOW DL_NOW 13377# else 13378# define LT_DLLAZY_OR_NOW 0 13379# endif 13380# endif 13381# endif 13382# endif 13383#endif 13384 13385#ifdef __cplusplus 13386extern "C" void exit (int); 13387#endif 13388 13389void fnord() { int i=42;} 13390int main () 13391{ 13392 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13393 int status = $lt_dlunknown; 13394 13395 if (self) 13396 { 13397 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13398 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13399 /* dlclose (self); */ 13400 } 13401 13402 exit (status); 13403} 13404EOF 13405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13406 (eval $ac_link) 2>&5 13407 ac_status=$? 13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13409 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13410 (./conftest; exit; ) >&5 2>/dev/null 13411 lt_status=$? 13412 case x$lt_status in 13413 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13414 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13415 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13416 esac 13417 else : 13418 # compilation failed 13419 lt_cv_dlopen_self_static=no 13420 fi 13421fi 13422rm -fr conftest* 13423 13424 13425fi 13426echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13427echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13428 fi 13429 13430 CPPFLAGS="$save_CPPFLAGS" 13431 LDFLAGS="$save_LDFLAGS" 13432 LIBS="$save_LIBS" 13433 ;; 13434 esac 13435 13436 case $lt_cv_dlopen_self in 13437 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13438 *) enable_dlopen_self=unknown ;; 13439 esac 13440 13441 case $lt_cv_dlopen_self_static in 13442 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13443 *) enable_dlopen_self_static=unknown ;; 13444 esac 13445fi 13446 13447 13448# The else clause should only fire when bootstrapping the 13449# libtool distribution, otherwise you forgot to ship ltmain.sh 13450# with your package, and you will get complaints that there are 13451# no rules to generate ltmain.sh. 13452if test -f "$ltmain"; then 13453 # See if we are running on zsh, and set the options which allow our commands through 13454 # without removal of \ escapes. 13455 if test -n "${ZSH_VERSION+set}" ; then 13456 setopt NO_GLOB_SUBST 13457 fi 13458 # Now quote all the things that may contain metacharacters while being 13459 # careful not to overquote the AC_SUBSTed values. We take copies of the 13460 # variables and quote the copies for generation of the libtool script. 13461 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13462 SED SHELL STRIP \ 13463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13465 deplibs_check_method reload_flag reload_cmds need_locks \ 13466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13467 lt_cv_sys_global_symbol_to_c_name_address \ 13468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13469 old_postinstall_cmds old_postuninstall_cmds \ 13470 compiler_CXX \ 13471 CC_CXX \ 13472 LD_CXX \ 13473 lt_prog_compiler_wl_CXX \ 13474 lt_prog_compiler_pic_CXX \ 13475 lt_prog_compiler_static_CXX \ 13476 lt_prog_compiler_no_builtin_flag_CXX \ 13477 export_dynamic_flag_spec_CXX \ 13478 thread_safe_flag_spec_CXX \ 13479 whole_archive_flag_spec_CXX \ 13480 enable_shared_with_static_runtimes_CXX \ 13481 old_archive_cmds_CXX \ 13482 old_archive_from_new_cmds_CXX \ 13483 predep_objects_CXX \ 13484 postdep_objects_CXX \ 13485 predeps_CXX \ 13486 postdeps_CXX \ 13487 compiler_lib_search_path_CXX \ 13488 archive_cmds_CXX \ 13489 archive_expsym_cmds_CXX \ 13490 postinstall_cmds_CXX \ 13491 postuninstall_cmds_CXX \ 13492 old_archive_from_expsyms_cmds_CXX \ 13493 allow_undefined_flag_CXX \ 13494 no_undefined_flag_CXX \ 13495 export_symbols_cmds_CXX \ 13496 hardcode_libdir_flag_spec_CXX \ 13497 hardcode_libdir_flag_spec_ld_CXX \ 13498 hardcode_libdir_separator_CXX \ 13499 hardcode_automatic_CXX \ 13500 module_cmds_CXX \ 13501 module_expsym_cmds_CXX \ 13502 lt_cv_prog_compiler_c_o_CXX \ 13503 exclude_expsyms_CXX \ 13504 include_expsyms_CXX; do 13505 13506 case $var in 13507 old_archive_cmds_CXX | \ 13508 old_archive_from_new_cmds_CXX | \ 13509 archive_cmds_CXX | \ 13510 archive_expsym_cmds_CXX | \ 13511 module_cmds_CXX | \ 13512 module_expsym_cmds_CXX | \ 13513 old_archive_from_expsyms_cmds_CXX | \ 13514 export_symbols_cmds_CXX | \ 13515 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13516 postinstall_cmds | postuninstall_cmds | \ 13517 old_postinstall_cmds | old_postuninstall_cmds | \ 13518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13519 # Double-quote double-evaled strings. 13520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13521 ;; 13522 *) 13523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13524 ;; 13525 esac 13526 done 13527 13528 case $lt_echo in 13529 *'\$0 --fallback-echo"') 13530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13531 ;; 13532 esac 13533 13534cfgfile="$ofile" 13535 13536 cat <<__EOF__ >> "$cfgfile" 13537# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13538 13539# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13540 13541# Shell to use when invoking shell scripts. 13542SHELL=$lt_SHELL 13543 13544# Whether or not to build shared libraries. 13545build_libtool_libs=$enable_shared 13546 13547# Whether or not to build static libraries. 13548build_old_libs=$enable_static 13549 13550# Whether or not to add -lc for building shared libraries. 13551build_libtool_need_lc=$archive_cmds_need_lc_CXX 13552 13553# Whether or not to disallow shared libs when runtime libs are static 13554allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13555 13556# Whether or not to optimize for fast installation. 13557fast_install=$enable_fast_install 13558 13559# The host system. 13560host_alias=$host_alias 13561host=$host 13562host_os=$host_os 13563 13564# The build system. 13565build_alias=$build_alias 13566build=$build 13567build_os=$build_os 13568 13569# An echo program that does not interpret backslashes. 13570echo=$lt_echo 13571 13572# The archiver. 13573AR=$lt_AR 13574AR_FLAGS=$lt_AR_FLAGS 13575 13576# A C compiler. 13577LTCC=$lt_LTCC 13578 13579# A language-specific compiler. 13580CC=$lt_compiler_CXX 13581 13582# Is the compiler the GNU C compiler? 13583with_gcc=$GCC_CXX 13584 13585# An ERE matcher. 13586EGREP=$lt_EGREP 13587 13588# The linker used to build libraries. 13589LD=$lt_LD_CXX 13590 13591# Whether we need hard or soft links. 13592LN_S=$lt_LN_S 13593 13594# A BSD-compatible nm program. 13595NM=$lt_NM 13596 13597# A symbol stripping program 13598STRIP=$lt_STRIP 13599 13600# Used to examine libraries when file_magic_cmd begins "file" 13601MAGIC_CMD=$MAGIC_CMD 13602 13603# Used on cygwin: DLL creation program. 13604DLLTOOL="$DLLTOOL" 13605 13606# Used on cygwin: object dumper. 13607OBJDUMP="$OBJDUMP" 13608 13609# Used on cygwin: assembler. 13610AS="$AS" 13611 13612# The name of the directory that contains temporary libtool files. 13613objdir=$objdir 13614 13615# How to create reloadable object files. 13616reload_flag=$lt_reload_flag 13617reload_cmds=$lt_reload_cmds 13618 13619# How to pass a linker flag through the compiler. 13620wl=$lt_lt_prog_compiler_wl_CXX 13621 13622# Object file suffix (normally "o"). 13623objext="$ac_objext" 13624 13625# Old archive suffix (normally "a"). 13626libext="$libext" 13627 13628# Shared library suffix (normally ".so"). 13629shrext_cmds='$shrext_cmds' 13630 13631# Executable file suffix (normally ""). 13632exeext="$exeext" 13633 13634# Additional compiler flags for building library objects. 13635pic_flag=$lt_lt_prog_compiler_pic_CXX 13636pic_mode=$pic_mode 13637 13638# What is the maximum length of a command? 13639max_cmd_len=$lt_cv_sys_max_cmd_len 13640 13641# Does compiler simultaneously support -c and -o options? 13642compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13643 13644# Must we lock files when doing compilation? 13645need_locks=$lt_need_locks 13646 13647# Do we need the lib prefix for modules? 13648need_lib_prefix=$need_lib_prefix 13649 13650# Do we need a version for libraries? 13651need_version=$need_version 13652 13653# Whether dlopen is supported. 13654dlopen_support=$enable_dlopen 13655 13656# Whether dlopen of programs is supported. 13657dlopen_self=$enable_dlopen_self 13658 13659# Whether dlopen of statically linked programs is supported. 13660dlopen_self_static=$enable_dlopen_self_static 13661 13662# Compiler flag to prevent dynamic linking. 13663link_static_flag=$lt_lt_prog_compiler_static_CXX 13664 13665# Compiler flag to turn off builtin functions. 13666no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13667 13668# Compiler flag to allow reflexive dlopens. 13669export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13670 13671# Compiler flag to generate shared objects directly from archives. 13672whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13673 13674# Compiler flag to generate thread-safe objects. 13675thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13676 13677# Library versioning type. 13678version_type=$version_type 13679 13680# Format of library name prefix. 13681libname_spec=$lt_libname_spec 13682 13683# List of archive names. First name is the real one, the rest are links. 13684# The last name is the one that the linker finds with -lNAME. 13685library_names_spec=$lt_library_names_spec 13686 13687# The coded name of the library, if different from the real name. 13688soname_spec=$lt_soname_spec 13689 13690# Commands used to build and install an old-style archive. 13691RANLIB=$lt_RANLIB 13692old_archive_cmds=$lt_old_archive_cmds_CXX 13693old_postinstall_cmds=$lt_old_postinstall_cmds 13694old_postuninstall_cmds=$lt_old_postuninstall_cmds 13695 13696# Create an old-style archive from a shared archive. 13697old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13698 13699# Create a temporary old-style archive to link instead of a shared archive. 13700old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13701 13702# Commands used to build and install a shared archive. 13703archive_cmds=$lt_archive_cmds_CXX 13704archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13705postinstall_cmds=$lt_postinstall_cmds 13706postuninstall_cmds=$lt_postuninstall_cmds 13707 13708# Commands used to build a loadable module (assumed same as above if empty) 13709module_cmds=$lt_module_cmds_CXX 13710module_expsym_cmds=$lt_module_expsym_cmds_CXX 13711 13712# Commands to strip libraries. 13713old_striplib=$lt_old_striplib 13714striplib=$lt_striplib 13715 13716# Dependencies to place before the objects being linked to create a 13717# shared library. 13718predep_objects=$lt_predep_objects_CXX 13719 13720# Dependencies to place after the objects being linked to create a 13721# shared library. 13722postdep_objects=$lt_postdep_objects_CXX 13723 13724# Dependencies to place before the objects being linked to create a 13725# shared library. 13726predeps=$lt_predeps_CXX 13727 13728# Dependencies to place after the objects being linked to create a 13729# shared library. 13730postdeps=$lt_postdeps_CXX 13731 13732# The library search path used internally by the compiler when linking 13733# a shared library. 13734compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13735 13736# Method to check whether dependent libraries are shared objects. 13737deplibs_check_method=$lt_deplibs_check_method 13738 13739# Command to use when deplibs_check_method == file_magic. 13740file_magic_cmd=$lt_file_magic_cmd 13741 13742# Flag that allows shared libraries with undefined symbols to be built. 13743allow_undefined_flag=$lt_allow_undefined_flag_CXX 13744 13745# Flag that forces no undefined symbols. 13746no_undefined_flag=$lt_no_undefined_flag_CXX 13747 13748# Commands used to finish a libtool library installation in a directory. 13749finish_cmds=$lt_finish_cmds 13750 13751# Same as above, but a single script fragment to be evaled but not shown. 13752finish_eval=$lt_finish_eval 13753 13754# Take the output of nm and produce a listing of raw symbols and C names. 13755global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13756 13757# Transform the output of nm in a proper C declaration 13758global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13759 13760# Transform the output of nm in a C name address pair 13761global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13762 13763# This is the shared library runtime path variable. 13764runpath_var=$runpath_var 13765 13766# This is the shared library path variable. 13767shlibpath_var=$shlibpath_var 13768 13769# Is shlibpath searched before the hard-coded library search path? 13770shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13771 13772# How to hardcode a shared library path into an executable. 13773hardcode_action=$hardcode_action_CXX 13774 13775# Whether we should hardcode library paths into libraries. 13776hardcode_into_libs=$hardcode_into_libs 13777 13778# Flag to hardcode \$libdir into a binary during linking. 13779# This must work even if \$libdir does not exist. 13780hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13781 13782# If ld is used when linking, flag to hardcode \$libdir into 13783# a binary during linking. This must work even if \$libdir does 13784# not exist. 13785hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13786 13787# Whether we need a single -rpath flag with a separated argument. 13788hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13789 13790# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13791# resulting binary. 13792hardcode_direct=$hardcode_direct_CXX 13793 13794# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13795# resulting binary. 13796hardcode_minus_L=$hardcode_minus_L_CXX 13797 13798# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13799# the resulting binary. 13800hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13801 13802# Set to yes if building a shared library automatically hardcodes DIR into the library 13803# and all subsequent libraries and executables linked against it. 13804hardcode_automatic=$hardcode_automatic_CXX 13805 13806# Variables whose values should be saved in libtool wrapper scripts and 13807# restored at relink time. 13808variables_saved_for_relink="$variables_saved_for_relink" 13809 13810# Whether libtool must link a program against all its dependency libraries. 13811link_all_deplibs=$link_all_deplibs_CXX 13812 13813# Compile-time system search path for libraries 13814sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13815 13816# Run-time system search path for libraries 13817sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13818 13819# Fix the shell variable \$srcfile for the compiler. 13820fix_srcfile_path="$fix_srcfile_path_CXX" 13821 13822# Set to yes if exported symbols are required. 13823always_export_symbols=$always_export_symbols_CXX 13824 13825# The commands to list exported symbols. 13826export_symbols_cmds=$lt_export_symbols_cmds_CXX 13827 13828# The commands to extract the exported symbol list from a shared archive. 13829extract_expsyms_cmds=$lt_extract_expsyms_cmds 13830 13831# Symbols that should not be listed in the preloaded symbols. 13832exclude_expsyms=$lt_exclude_expsyms_CXX 13833 13834# Symbols that must always be exported. 13835include_expsyms=$lt_include_expsyms_CXX 13836 13837# ### END LIBTOOL TAG CONFIG: $tagname 13838 13839__EOF__ 13840 13841 13842else 13843 # If there is no Makefile yet, we rely on a make rule to execute 13844 # `config.status --recheck' to rerun these tests and create the 13845 # libtool script then. 13846 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13847 if test -f "$ltmain_in"; then 13848 test -f Makefile && make "$ltmain" 13849 fi 13850fi 13851 13852 13853ac_ext=c 13854ac_cpp='$CPP $CPPFLAGS' 13855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13857ac_compiler_gnu=$ac_cv_c_compiler_gnu 13858 13859CC=$lt_save_CC 13860LDCXX=$LD 13861LD=$lt_save_LD 13862GCC=$lt_save_GCC 13863with_gnu_ldcxx=$with_gnu_ld 13864with_gnu_ld=$lt_save_with_gnu_ld 13865lt_cv_path_LDCXX=$lt_cv_path_LD 13866lt_cv_path_LD=$lt_save_path_LD 13867lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13868lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13869 13870 else 13871 tagname="" 13872 fi 13873 ;; 13874 13875 F77) 13876 if test -n "$F77" && test "X$F77" != "Xno"; then 13877 13878ac_ext=f 13879ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13880ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13881ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13882 13883 13884archive_cmds_need_lc_F77=no 13885allow_undefined_flag_F77= 13886always_export_symbols_F77=no 13887archive_expsym_cmds_F77= 13888export_dynamic_flag_spec_F77= 13889hardcode_direct_F77=no 13890hardcode_libdir_flag_spec_F77= 13891hardcode_libdir_flag_spec_ld_F77= 13892hardcode_libdir_separator_F77= 13893hardcode_minus_L_F77=no 13894hardcode_automatic_F77=no 13895module_cmds_F77= 13896module_expsym_cmds_F77= 13897link_all_deplibs_F77=unknown 13898old_archive_cmds_F77=$old_archive_cmds 13899no_undefined_flag_F77= 13900whole_archive_flag_spec_F77= 13901enable_shared_with_static_runtimes_F77=no 13902 13903# Source file extension for f77 test sources. 13904ac_ext=f 13905 13906# Object file extension for compiled f77 test sources. 13907objext=o 13908objext_F77=$objext 13909 13910# Code to be used in simple compile tests 13911lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13912 13913# Code to be used in simple link tests 13914lt_simple_link_test_code=" program t\n end\n" 13915 13916# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13917 13918# If no C compiler was specified, use CC. 13919LTCC=${LTCC-"$CC"} 13920 13921# Allow CC to be a program name with arguments. 13922compiler=$CC 13923 13924 13925# save warnings/boilerplate of simple test code 13926ac_outfile=conftest.$ac_objext 13927printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13928eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13929_lt_compiler_boilerplate=`cat conftest.err` 13930$rm conftest* 13931 13932ac_outfile=conftest.$ac_objext 13933printf "$lt_simple_link_test_code" >conftest.$ac_ext 13934eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13935_lt_linker_boilerplate=`cat conftest.err` 13936$rm conftest* 13937 13938 13939# Allow CC to be a program name with arguments. 13940lt_save_CC="$CC" 13941CC=${F77-"f77"} 13942compiler=$CC 13943compiler_F77=$CC 13944for cc_temp in $compiler""; do 13945 case $cc_temp in 13946 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13947 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13948 \-*) ;; 13949 *) break;; 13950 esac 13951done 13952cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13953 13954 13955echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13956echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13957echo "$as_me:$LINENO: result: $can_build_shared" >&5 13958echo "${ECHO_T}$can_build_shared" >&6 13959 13960echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13961echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13962test "$can_build_shared" = "no" && enable_shared=no 13963 13964# On AIX, shared libraries and static libraries use the same namespace, and 13965# are all built from PIC. 13966case $host_os in 13967aix3*) 13968 test "$enable_shared" = yes && enable_static=no 13969 if test -n "$RANLIB"; then 13970 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13971 postinstall_cmds='$RANLIB $lib' 13972 fi 13973 ;; 13974aix4* | aix5*) 13975 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13976 test "$enable_shared" = yes && enable_static=no 13977 fi 13978 ;; 13979esac 13980echo "$as_me:$LINENO: result: $enable_shared" >&5 13981echo "${ECHO_T}$enable_shared" >&6 13982 13983echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13984echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13985# Make sure either enable_shared or enable_static is yes. 13986test "$enable_shared" = yes || enable_static=yes 13987echo "$as_me:$LINENO: result: $enable_static" >&5 13988echo "${ECHO_T}$enable_static" >&6 13989 13990test "$ld_shlibs_F77" = no && can_build_shared=no 13991 13992GCC_F77="$G77" 13993LD_F77="$LD" 13994 13995lt_prog_compiler_wl_F77= 13996lt_prog_compiler_pic_F77= 13997lt_prog_compiler_static_F77= 13998 13999echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14000echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14001 14002 if test "$GCC" = yes; then 14003 lt_prog_compiler_wl_F77='-Wl,' 14004 lt_prog_compiler_static_F77='-static' 14005 14006 case $host_os in 14007 aix*) 14008 # All AIX code is PIC. 14009 if test "$host_cpu" = ia64; then 14010 # AIX 5 now supports IA64 processor 14011 lt_prog_compiler_static_F77='-Bstatic' 14012 fi 14013 ;; 14014 14015 amigaos*) 14016 # FIXME: we need at least 68020 code to build shared libraries, but 14017 # adding the `-m68020' flag to GCC prevents building anything better, 14018 # like `-m68040'. 14019 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14020 ;; 14021 14022 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14023 # PIC is the default for these OSes. 14024 ;; 14025 14026 mingw* | pw32* | os2*) 14027 # This hack is so that the source file can tell whether it is being 14028 # built for inclusion in a dll (and should export symbols for example). 14029 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14030 ;; 14031 14032 darwin* | rhapsody*) 14033 # PIC is the default on this platform 14034 # Common symbols not allowed in MH_DYLIB files 14035 lt_prog_compiler_pic_F77='-fno-common' 14036 ;; 14037 14038 msdosdjgpp*) 14039 # Just because we use GCC doesn't mean we suddenly get shared libraries 14040 # on systems that don't support them. 14041 lt_prog_compiler_can_build_shared_F77=no 14042 enable_shared=no 14043 ;; 14044 14045 sysv4*MP*) 14046 if test -d /usr/nec; then 14047 lt_prog_compiler_pic_F77=-Kconform_pic 14048 fi 14049 ;; 14050 14051 hpux*) 14052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14053 # not for PA HP-UX. 14054 case $host_cpu in 14055 hppa*64*|ia64*) 14056 # +Z the default 14057 ;; 14058 *) 14059 lt_prog_compiler_pic_F77='-fPIC' 14060 ;; 14061 esac 14062 ;; 14063 14064 *) 14065 lt_prog_compiler_pic_F77='-fPIC' 14066 ;; 14067 esac 14068 else 14069 # PORTME Check for flag to pass linker flags through the system compiler. 14070 case $host_os in 14071 aix*) 14072 lt_prog_compiler_wl_F77='-Wl,' 14073 if test "$host_cpu" = ia64; then 14074 # AIX 5 now supports IA64 processor 14075 lt_prog_compiler_static_F77='-Bstatic' 14076 else 14077 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14078 fi 14079 ;; 14080 darwin*) 14081 # PIC is the default on this platform 14082 # Common symbols not allowed in MH_DYLIB files 14083 case $cc_basename in 14084 xlc*) 14085 lt_prog_compiler_pic_F77='-qnocommon' 14086 lt_prog_compiler_wl_F77='-Wl,' 14087 ;; 14088 esac 14089 ;; 14090 14091 mingw* | pw32* | os2*) 14092 # This hack is so that the source file can tell whether it is being 14093 # built for inclusion in a dll (and should export symbols for example). 14094 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14095 ;; 14096 14097 hpux9* | hpux10* | hpux11*) 14098 lt_prog_compiler_wl_F77='-Wl,' 14099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14100 # not for PA HP-UX. 14101 case $host_cpu in 14102 hppa*64*|ia64*) 14103 # +Z the default 14104 ;; 14105 *) 14106 lt_prog_compiler_pic_F77='+Z' 14107 ;; 14108 esac 14109 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14110 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14111 ;; 14112 14113 irix5* | irix6* | nonstopux*) 14114 lt_prog_compiler_wl_F77='-Wl,' 14115 # PIC (with -KPIC) is the default. 14116 lt_prog_compiler_static_F77='-non_shared' 14117 ;; 14118 14119 newsos6) 14120 lt_prog_compiler_pic_F77='-KPIC' 14121 lt_prog_compiler_static_F77='-Bstatic' 14122 ;; 14123 14124 linux*) 14125 case $cc_basename in 14126 icc* | ecc*) 14127 lt_prog_compiler_wl_F77='-Wl,' 14128 lt_prog_compiler_pic_F77='-KPIC' 14129 lt_prog_compiler_static_F77='-static' 14130 ;; 14131 pgcc* | pgf77* | pgf90* | pgf95*) 14132 # Portland Group compilers (*not* the Pentium gcc compiler, 14133 # which looks to be a dead project) 14134 lt_prog_compiler_wl_F77='-Wl,' 14135 lt_prog_compiler_pic_F77='-fpic' 14136 lt_prog_compiler_static_F77='-Bstatic' 14137 ;; 14138 ccc*) 14139 lt_prog_compiler_wl_F77='-Wl,' 14140 # All Alpha code is PIC. 14141 lt_prog_compiler_static_F77='-non_shared' 14142 ;; 14143 esac 14144 ;; 14145 14146 osf3* | osf4* | osf5*) 14147 lt_prog_compiler_wl_F77='-Wl,' 14148 # All OSF/1 code is PIC. 14149 lt_prog_compiler_static_F77='-non_shared' 14150 ;; 14151 14152 sco3.2v5*) 14153 lt_prog_compiler_pic_F77='-Kpic' 14154 lt_prog_compiler_static_F77='-dn' 14155 ;; 14156 14157 solaris*) 14158 lt_prog_compiler_pic_F77='-KPIC' 14159 lt_prog_compiler_static_F77='-Bstatic' 14160 case $cc_basename in 14161 f77* | f90* | f95*) 14162 lt_prog_compiler_wl_F77='-Qoption ld ';; 14163 *) 14164 lt_prog_compiler_wl_F77='-Wl,';; 14165 esac 14166 ;; 14167 14168 sunos4*) 14169 lt_prog_compiler_wl_F77='-Qoption ld ' 14170 lt_prog_compiler_pic_F77='-PIC' 14171 lt_prog_compiler_static_F77='-Bstatic' 14172 ;; 14173 14174 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14175 lt_prog_compiler_wl_F77='-Wl,' 14176 lt_prog_compiler_pic_F77='-KPIC' 14177 lt_prog_compiler_static_F77='-Bstatic' 14178 ;; 14179 14180 sysv4*MP*) 14181 if test -d /usr/nec ;then 14182 lt_prog_compiler_pic_F77='-Kconform_pic' 14183 lt_prog_compiler_static_F77='-Bstatic' 14184 fi 14185 ;; 14186 14187 unicos*) 14188 lt_prog_compiler_wl_F77='-Wl,' 14189 lt_prog_compiler_can_build_shared_F77=no 14190 ;; 14191 14192 uts4*) 14193 lt_prog_compiler_pic_F77='-pic' 14194 lt_prog_compiler_static_F77='-Bstatic' 14195 ;; 14196 14197 *) 14198 lt_prog_compiler_can_build_shared_F77=no 14199 ;; 14200 esac 14201 fi 14202 14203echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14204echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 14205 14206# 14207# Check to make sure the PIC flag actually works. 14208# 14209if test -n "$lt_prog_compiler_pic_F77"; then 14210 14211echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14212echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 14213if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14214 echo $ECHO_N "(cached) $ECHO_C" >&6 14215else 14216 lt_prog_compiler_pic_works_F77=no 14217 ac_outfile=conftest.$ac_objext 14218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14219 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14220 # Insert the option either (1) after the last *FLAGS variable, or 14221 # (2) before a word containing "conftest.", or (3) at the end. 14222 # Note that $ac_compile itself does not contain backslashes and begins 14223 # with a dollar sign (not a hyphen), so the echo should work correctly. 14224 # The option is referenced via a variable to avoid confusing sed. 14225 lt_compile=`echo "$ac_compile" | $SED \ 14226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14228 -e 's:$: $lt_compiler_flag:'` 14229 (eval echo "\"\$as_me:14229: $lt_compile\"" >&5) 14230 (eval "$lt_compile" 2>conftest.err) 14231 ac_status=$? 14232 cat conftest.err >&5 14233 echo "$as_me:14233: \$? = $ac_status" >&5 14234 if (exit $ac_status) && test -s "$ac_outfile"; then 14235 # The compiler can only warn and ignore the option if not recognized 14236 # So say no if there are warnings other than the usual output. 14237 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 14238 $SED '/^$/d' conftest.err >conftest.er2 14239 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 14240 lt_prog_compiler_pic_works_F77=yes 14241 fi 14242 fi 14243 $rm conftest* 14244 14245fi 14246echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14247echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 14248 14249if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14250 case $lt_prog_compiler_pic_F77 in 14251 "" | " "*) ;; 14252 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14253 esac 14254else 14255 lt_prog_compiler_pic_F77= 14256 lt_prog_compiler_can_build_shared_F77=no 14257fi 14258 14259fi 14260case $host_os in 14261 # For platforms which do not support PIC, -DPIC is meaningless: 14262 *djgpp*) 14263 lt_prog_compiler_pic_F77= 14264 ;; 14265 *) 14266 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14267 ;; 14268esac 14269 14270echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14271echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14272if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14273 echo $ECHO_N "(cached) $ECHO_C" >&6 14274else 14275 lt_cv_prog_compiler_c_o_F77=no 14276 $rm -r conftest 2>/dev/null 14277 mkdir conftest 14278 cd conftest 14279 mkdir out 14280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14281 14282 lt_compiler_flag="-o out/conftest2.$ac_objext" 14283 # Insert the option either (1) after the last *FLAGS variable, or 14284 # (2) before a word containing "conftest.", or (3) at the end. 14285 # Note that $ac_compile itself does not contain backslashes and begins 14286 # with a dollar sign (not a hyphen), so the echo should work correctly. 14287 lt_compile=`echo "$ac_compile" | $SED \ 14288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14290 -e 's:$: $lt_compiler_flag:'` 14291 (eval echo "\"\$as_me:14291: $lt_compile\"" >&5) 14292 (eval "$lt_compile" 2>out/conftest.err) 14293 ac_status=$? 14294 cat out/conftest.err >&5 14295 echo "$as_me:14295: \$? = $ac_status" >&5 14296 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14297 then 14298 # The compiler can only warn and ignore the option if not recognized 14299 # So say no if there are warnings 14300 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 14301 $SED '/^$/d' out/conftest.err >out/conftest.er2 14302 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14303 lt_cv_prog_compiler_c_o_F77=yes 14304 fi 14305 fi 14306 chmod u+w . 2>&5 14307 $rm conftest* 14308 # SGI C++ compiler will create directory out/ii_files/ for 14309 # template instantiation 14310 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14311 $rm out/* && rmdir out 14312 cd .. 14313 rmdir conftest 14314 $rm conftest* 14315 14316fi 14317echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14318echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 14319 14320 14321hard_links="nottested" 14322if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14323 # do not overwrite the value of need_locks provided by the user 14324 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14325echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14326 hard_links=yes 14327 $rm conftest* 14328 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14329 touch conftest.a 14330 ln conftest.a conftest.b 2>&5 || hard_links=no 14331 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14332 echo "$as_me:$LINENO: result: $hard_links" >&5 14333echo "${ECHO_T}$hard_links" >&6 14334 if test "$hard_links" = no; then 14335 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14336echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14337 need_locks=warn 14338 fi 14339else 14340 need_locks=no 14341fi 14342 14343echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14344echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14345 14346 runpath_var= 14347 allow_undefined_flag_F77= 14348 enable_shared_with_static_runtimes_F77=no 14349 archive_cmds_F77= 14350 archive_expsym_cmds_F77= 14351 old_archive_From_new_cmds_F77= 14352 old_archive_from_expsyms_cmds_F77= 14353 export_dynamic_flag_spec_F77= 14354 whole_archive_flag_spec_F77= 14355 thread_safe_flag_spec_F77= 14356 hardcode_libdir_flag_spec_F77= 14357 hardcode_libdir_flag_spec_ld_F77= 14358 hardcode_libdir_separator_F77= 14359 hardcode_direct_F77=no 14360 hardcode_minus_L_F77=no 14361 hardcode_shlibpath_var_F77=unsupported 14362 link_all_deplibs_F77=unknown 14363 hardcode_automatic_F77=no 14364 module_cmds_F77= 14365 module_expsym_cmds_F77= 14366 always_export_symbols_F77=no 14367 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14368 # include_expsyms should be a list of space-separated symbols to be *always* 14369 # included in the symbol list 14370 include_expsyms_F77= 14371 # exclude_expsyms can be an extended regexp of symbols to exclude 14372 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14374 # as well as any symbol that contains `d'. 14375 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14377 # platforms (ab)use it in PIC code, but their linkers get confused if 14378 # the symbol is explicitly referenced. Since portable code cannot 14379 # rely on this symbol name, it's probably fine to never include it in 14380 # preloaded symbol tables. 14381 extract_expsyms_cmds= 14382 # Just being paranoid about ensuring that cc_basename is set. 14383 for cc_temp in $compiler""; do 14384 case $cc_temp in 14385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14387 \-*) ;; 14388 *) break;; 14389 esac 14390done 14391cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14392 14393 case $host_os in 14394 cygwin* | mingw* | pw32*) 14395 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14396 # When not using gcc, we currently assume that we are using 14397 # Microsoft Visual C++. 14398 if test "$GCC" != yes; then 14399 with_gnu_ld=no 14400 fi 14401 ;; 14402 openbsd*) 14403 with_gnu_ld=no 14404 ;; 14405 esac 14406 14407 ld_shlibs_F77=yes 14408 if test "$with_gnu_ld" = yes; then 14409 # If archive_cmds runs LD, not CC, wlarc should be empty 14410 wlarc='${wl}' 14411 14412 # Set some defaults for GNU ld with shared library support. These 14413 # are reset later if shared libraries are not supported. Putting them 14414 # here allows them to be overridden if necessary. 14415 runpath_var=LD_RUN_PATH 14416 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14417 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14418 # ancient GNU ld didn't support --whole-archive et. al. 14419 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14420 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14421 else 14422 whole_archive_flag_spec_F77= 14423 fi 14424 supports_anon_versioning=no 14425 case `$LD -v 2>/dev/null` in 14426 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14427 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14428 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14429 *\ 2.11.*) ;; # other 2.11 versions 14430 *) supports_anon_versioning=yes ;; 14431 esac 14432 14433 # See if GNU ld supports shared libraries. 14434 case $host_os in 14435 aix3* | aix4* | aix5*) 14436 # On AIX/PPC, the GNU linker is very broken 14437 if test "$host_cpu" != ia64; then 14438 ld_shlibs_F77=no 14439 cat <<EOF 1>&2 14440 14441*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14442*** to be unable to reliably create shared libraries on AIX. 14443*** Therefore, libtool is disabling shared libraries support. If you 14444*** really care for shared libraries, you may want to modify your PATH 14445*** so that a non-GNU linker is found, and then restart. 14446 14447EOF 14448 fi 14449 ;; 14450 14451 amigaos*) 14452 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)' 14453 hardcode_libdir_flag_spec_F77='-L$libdir' 14454 hardcode_minus_L_F77=yes 14455 14456 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14457 # that the semantics of dynamic libraries on AmigaOS, at least up 14458 # to version 4, is to share data among multiple programs linked 14459 # with the same dynamic library. Since this doesn't match the 14460 # behavior of shared libraries on other platforms, we can't use 14461 # them. 14462 ld_shlibs_F77=no 14463 ;; 14464 14465 beos*) 14466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14467 allow_undefined_flag_F77=unsupported 14468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14469 # support --undefined. This deserves some investigation. FIXME 14470 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14471 else 14472 ld_shlibs_F77=no 14473 fi 14474 ;; 14475 14476 cygwin* | mingw* | pw32*) 14477 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14478 # as there is no search path for DLLs. 14479 hardcode_libdir_flag_spec_F77='-L$libdir' 14480 allow_undefined_flag_F77=unsupported 14481 always_export_symbols_F77=no 14482 enable_shared_with_static_runtimes_F77=yes 14483 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14484 14485 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14486 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14487 # If the export-symbols file already is a .def file (1st line 14488 # is EXPORTS), use it as is; otherwise, prepend... 14489 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14490 cp $export_symbols $output_objdir/$soname.def; 14491 else 14492 echo EXPORTS > $output_objdir/$soname.def; 14493 cat $export_symbols >> $output_objdir/$soname.def; 14494 fi~ 14495 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14496 else 14497 ld_shlibs_F77=no 14498 fi 14499 ;; 14500 14501 linux*) 14502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14503 tmp_addflag= 14504 case $cc_basename,$host_cpu in 14505 pgcc*) # Portland Group C compiler 14506 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' 14507 tmp_addflag=' $pic_flag' 14508 ;; 14509 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14510 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' 14511 tmp_addflag=' $pic_flag -Mnomain' ;; 14512 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14513 tmp_addflag=' -i_dynamic' ;; 14514 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14515 tmp_addflag=' -i_dynamic -nofor_main' ;; 14516 ifc* | ifort*) # Intel Fortran compiler 14517 tmp_addflag=' -nofor_main' ;; 14518 esac 14519 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14520 14521 if test $supports_anon_versioning = yes; then 14522 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14523 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14524 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14525 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14526 fi 14527 else 14528 ld_shlibs_F77=no 14529 fi 14530 ;; 14531 14532 netbsd*) 14533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14534 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14535 wlarc= 14536 else 14537 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14538 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14539 fi 14540 ;; 14541 14542 solaris* | sysv5*) 14543 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14544 ld_shlibs_F77=no 14545 cat <<EOF 1>&2 14546 14547*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14548*** create shared libraries on Solaris systems. Therefore, libtool 14549*** is disabling shared libraries support. We urge you to upgrade GNU 14550*** binutils to release 2.9.1 or newer. Another option is to modify 14551*** your PATH or compiler configuration so that the native linker is 14552*** used, and then restart. 14553 14554EOF 14555 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14556 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14557 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14558 else 14559 ld_shlibs_F77=no 14560 fi 14561 ;; 14562 14563 sunos4*) 14564 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14565 wlarc= 14566 hardcode_direct_F77=yes 14567 hardcode_shlibpath_var_F77=no 14568 ;; 14569 14570 *) 14571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14572 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14573 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14574 else 14575 ld_shlibs_F77=no 14576 fi 14577 ;; 14578 esac 14579 14580 if test "$ld_shlibs_F77" = no; then 14581 runpath_var= 14582 hardcode_libdir_flag_spec_F77= 14583 export_dynamic_flag_spec_F77= 14584 whole_archive_flag_spec_F77= 14585 fi 14586 else 14587 # PORTME fill in a description of your system's linker (not GNU ld) 14588 case $host_os in 14589 aix3*) 14590 allow_undefined_flag_F77=unsupported 14591 always_export_symbols_F77=yes 14592 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' 14593 # Note: this linker hardcodes the directories in LIBPATH if there 14594 # are no directories specified by -L. 14595 hardcode_minus_L_F77=yes 14596 if test "$GCC" = yes && test -z "$link_static_flag"; then 14597 # Neither direct hardcoding nor static linking is supported with a 14598 # broken collect2. 14599 hardcode_direct_F77=unsupported 14600 fi 14601 ;; 14602 14603 aix4* | aix5*) 14604 if test "$host_cpu" = ia64; then 14605 # On IA64, the linker does run time linking by default, so we don't 14606 # have to do anything special. 14607 aix_use_runtimelinking=no 14608 exp_sym_flag='-Bexport' 14609 no_entry_flag="" 14610 else 14611 # If we're using GNU nm, then we don't want the "-C" option. 14612 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14613 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14614 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' 14615 else 14616 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' 14617 fi 14618 aix_use_runtimelinking=no 14619 14620 # Test if we are trying to use run time linking or normal 14621 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14622 # need to do runtime linking. 14623 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14624 for ld_flag in $LDFLAGS; do 14625 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14626 aix_use_runtimelinking=yes 14627 break 14628 fi 14629 done 14630 esac 14631 14632 exp_sym_flag='-bexport' 14633 no_entry_flag='-bnoentry' 14634 fi 14635 14636 # When large executables or shared objects are built, AIX ld can 14637 # have problems creating the table of contents. If linking a library 14638 # or program results in "error TOC overflow" add -mminimal-toc to 14639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14641 14642 archive_cmds_F77='' 14643 hardcode_direct_F77=yes 14644 hardcode_libdir_separator_F77=':' 14645 link_all_deplibs_F77=yes 14646 14647 if test "$GCC" = yes; then 14648 case $host_os in aix4.[012]|aix4.[012].*) 14649 # We only want to do this on AIX 4.2 and lower, the check 14650 # below for broken collect2 doesn't work under 4.3+ 14651 collect2name=`${CC} -print-prog-name=collect2` 14652 if test -f "$collect2name" && \ 14653 strings "$collect2name" | grep resolve_lib_name >/dev/null 14654 then 14655 # We have reworked collect2 14656 hardcode_direct_F77=yes 14657 else 14658 # We have old collect2 14659 hardcode_direct_F77=unsupported 14660 # It fails to find uninstalled libraries when the uninstalled 14661 # path is not listed in the libpath. Setting hardcode_minus_L 14662 # to unsupported forces relinking 14663 hardcode_minus_L_F77=yes 14664 hardcode_libdir_flag_spec_F77='-L$libdir' 14665 hardcode_libdir_separator_F77= 14666 fi 14667 esac 14668 shared_flag='-shared' 14669 if test "$aix_use_runtimelinking" = yes; then 14670 shared_flag="$shared_flag "'${wl}-G' 14671 fi 14672 else 14673 # not using gcc 14674 if test "$host_cpu" = ia64; then 14675 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14676 # chokes on -Wl,-G. The following line is correct: 14677 shared_flag='-G' 14678 else 14679 if test "$aix_use_runtimelinking" = yes; then 14680 shared_flag='${wl}-G' 14681 else 14682 shared_flag='${wl}-bM:SRE' 14683 fi 14684 fi 14685 fi 14686 14687 # It seems that -bexpall does not export symbols beginning with 14688 # underscore (_), so it is better to generate a list of symbols to export. 14689 always_export_symbols_F77=yes 14690 if test "$aix_use_runtimelinking" = yes; then 14691 # Warning - without using the other runtime loading flags (-brtl), 14692 # -berok will link without error, but may produce a broken library. 14693 allow_undefined_flag_F77='-berok' 14694 # Determine the default libpath from the value encoded in an empty executable. 14695 cat >conftest.$ac_ext <<_ACEOF 14696 program main 14697 14698 end 14699_ACEOF 14700rm -f conftest.$ac_objext conftest$ac_exeext 14701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14702 (eval $ac_link) 2>conftest.er1 14703 ac_status=$? 14704 grep -v '^ *+' conftest.er1 >conftest.err 14705 rm -f conftest.er1 14706 cat conftest.err >&5 14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14708 (exit $ac_status); } && 14709 { ac_try='test -z "$ac_f77_werror_flag" 14710 || test ! -s conftest.err' 14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14712 (eval $ac_try) 2>&5 14713 ac_status=$? 14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14715 (exit $ac_status); }; } && 14716 { ac_try='test -s conftest$ac_exeext' 14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14718 (eval $ac_try) 2>&5 14719 ac_status=$? 14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14721 (exit $ac_status); }; }; then 14722 14723aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14724}'` 14725# Check for a 64-bit object if we didn't find anything. 14726if 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; } 14727}'`; fi 14728else 14729 echo "$as_me: failed program was:" >&5 14730sed 's/^/| /' conftest.$ac_ext >&5 14731 14732fi 14733rm -f conftest.err conftest.$ac_objext \ 14734 conftest$ac_exeext conftest.$ac_ext 14735if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14736 14737 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14738 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14739 else 14740 if test "$host_cpu" = ia64; then 14741 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14742 allow_undefined_flag_F77="-z nodefs" 14743 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 14744 else 14745 # Determine the default libpath from the value encoded in an empty executable. 14746 cat >conftest.$ac_ext <<_ACEOF 14747 program main 14748 14749 end 14750_ACEOF 14751rm -f conftest.$ac_objext conftest$ac_exeext 14752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14753 (eval $ac_link) 2>conftest.er1 14754 ac_status=$? 14755 grep -v '^ *+' conftest.er1 >conftest.err 14756 rm -f conftest.er1 14757 cat conftest.err >&5 14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14759 (exit $ac_status); } && 14760 { ac_try='test -z "$ac_f77_werror_flag" 14761 || test ! -s conftest.err' 14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14763 (eval $ac_try) 2>&5 14764 ac_status=$? 14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14766 (exit $ac_status); }; } && 14767 { ac_try='test -s conftest$ac_exeext' 14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14769 (eval $ac_try) 2>&5 14770 ac_status=$? 14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14772 (exit $ac_status); }; }; then 14773 14774aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14775}'` 14776# Check for a 64-bit object if we didn't find anything. 14777if 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; } 14778}'`; fi 14779else 14780 echo "$as_me: failed program was:" >&5 14781sed 's/^/| /' conftest.$ac_ext >&5 14782 14783fi 14784rm -f conftest.err conftest.$ac_objext \ 14785 conftest$ac_exeext conftest.$ac_ext 14786if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14787 14788 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14789 # Warning - without using the other run time loading flags, 14790 # -berok will link without error, but may produce a broken library. 14791 no_undefined_flag_F77=' ${wl}-bernotok' 14792 allow_undefined_flag_F77=' ${wl}-berok' 14793 # -bexpall does not export symbols beginning with underscore (_) 14794 always_export_symbols_F77=yes 14795 # Exported symbols can be pulled into shared objects from archives 14796 whole_archive_flag_spec_F77=' ' 14797 archive_cmds_need_lc_F77=yes 14798 # This is similar to how AIX traditionally builds its shared libraries. 14799 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14800 fi 14801 fi 14802 ;; 14803 14804 amigaos*) 14805 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)' 14806 hardcode_libdir_flag_spec_F77='-L$libdir' 14807 hardcode_minus_L_F77=yes 14808 # see comment about different semantics on the GNU ld section 14809 ld_shlibs_F77=no 14810 ;; 14811 14812 bsdi[45]*) 14813 export_dynamic_flag_spec_F77=-rdynamic 14814 ;; 14815 14816 cygwin* | mingw* | pw32*) 14817 # When not using gcc, we currently assume that we are using 14818 # Microsoft Visual C++. 14819 # hardcode_libdir_flag_spec is actually meaningless, as there is 14820 # no search path for DLLs. 14821 hardcode_libdir_flag_spec_F77=' ' 14822 allow_undefined_flag_F77=unsupported 14823 # Tell ltmain to make .lib files, not .a files. 14824 libext=lib 14825 # Tell ltmain to make .dll files, not .so files. 14826 shrext_cmds=".dll" 14827 # FIXME: Setting linknames here is a bad hack. 14828 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14829 # The linker will automatically build a .lib file if we build a DLL. 14830 old_archive_From_new_cmds_F77='true' 14831 # FIXME: Should let the user specify the lib program. 14832 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14833 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14834 enable_shared_with_static_runtimes_F77=yes 14835 ;; 14836 14837 darwin* | rhapsody*) 14838 case $host_os in 14839 rhapsody* | darwin1.[012]) 14840 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14841 ;; 14842 *) # Darwin 1.3 on 14843 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14844 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14845 else 14846 case ${MACOSX_DEPLOYMENT_TARGET} in 14847 10.[012]) 14848 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14849 ;; 14850 10.*) 14851 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14852 ;; 14853 esac 14854 fi 14855 ;; 14856 esac 14857 archive_cmds_need_lc_F77=no 14858 hardcode_direct_F77=no 14859 hardcode_automatic_F77=yes 14860 hardcode_shlibpath_var_F77=unsupported 14861 whole_archive_flag_spec_F77='' 14862 link_all_deplibs_F77=yes 14863 if test "$GCC" = yes ; then 14864 output_verbose_link_cmd='echo' 14865 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14866 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14868 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}' 14869 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}' 14870 else 14871 case $cc_basename in 14872 xlc*) 14873 output_verbose_link_cmd='echo' 14874 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14875 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14876 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14877 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}' 14878 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}' 14879 ;; 14880 *) 14881 ld_shlibs_F77=no 14882 ;; 14883 esac 14884 fi 14885 ;; 14886 14887 dgux*) 14888 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14889 hardcode_libdir_flag_spec_F77='-L$libdir' 14890 hardcode_shlibpath_var_F77=no 14891 ;; 14892 14893 freebsd1*) 14894 ld_shlibs_F77=no 14895 ;; 14896 14897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14898 # support. Future versions do this automatically, but an explicit c++rt0.o 14899 # does not break anything, and helps significantly (at the cost of a little 14900 # extra space). 14901 freebsd2.2*) 14902 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14903 hardcode_libdir_flag_spec_F77='-R$libdir' 14904 hardcode_direct_F77=yes 14905 hardcode_shlibpath_var_F77=no 14906 ;; 14907 14908 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14909 freebsd2*) 14910 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14911 hardcode_direct_F77=yes 14912 hardcode_minus_L_F77=yes 14913 hardcode_shlibpath_var_F77=no 14914 ;; 14915 14916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14917 freebsd* | kfreebsd*-gnu | dragonfly*) 14918 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14919 hardcode_libdir_flag_spec_F77='-R$libdir' 14920 hardcode_direct_F77=yes 14921 hardcode_shlibpath_var_F77=no 14922 ;; 14923 14924 hpux9*) 14925 if test "$GCC" = yes; then 14926 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' 14927 else 14928 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' 14929 fi 14930 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14931 hardcode_libdir_separator_F77=: 14932 hardcode_direct_F77=yes 14933 14934 # hardcode_minus_L: Not really in the search PATH, 14935 # but as the default location of the library. 14936 hardcode_minus_L_F77=yes 14937 export_dynamic_flag_spec_F77='${wl}-E' 14938 ;; 14939 14940 hpux10* | hpux11*) 14941 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14942 case $host_cpu in 14943 hppa*64*|ia64*) 14944 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14945 ;; 14946 *) 14947 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14948 ;; 14949 esac 14950 else 14951 case $host_cpu in 14952 hppa*64*|ia64*) 14953 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14954 ;; 14955 *) 14956 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14957 ;; 14958 esac 14959 fi 14960 if test "$with_gnu_ld" = no; then 14961 case $host_cpu in 14962 hppa*64*) 14963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14964 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14965 hardcode_libdir_separator_F77=: 14966 hardcode_direct_F77=no 14967 hardcode_shlibpath_var_F77=no 14968 ;; 14969 ia64*) 14970 hardcode_libdir_flag_spec_F77='-L$libdir' 14971 hardcode_direct_F77=no 14972 hardcode_shlibpath_var_F77=no 14973 14974 # hardcode_minus_L: Not really in the search PATH, 14975 # but as the default location of the library. 14976 hardcode_minus_L_F77=yes 14977 ;; 14978 *) 14979 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14980 hardcode_libdir_separator_F77=: 14981 hardcode_direct_F77=yes 14982 export_dynamic_flag_spec_F77='${wl}-E' 14983 14984 # hardcode_minus_L: Not really in the search PATH, 14985 # but as the default location of the library. 14986 hardcode_minus_L_F77=yes 14987 ;; 14988 esac 14989 fi 14990 ;; 14991 14992 irix5* | irix6* | nonstopux*) 14993 if test "$GCC" = yes; then 14994 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' 14995 else 14996 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' 14997 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14998 fi 14999 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15000 hardcode_libdir_separator_F77=: 15001 link_all_deplibs_F77=yes 15002 ;; 15003 15004 netbsd*) 15005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15006 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15007 else 15008 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15009 fi 15010 hardcode_libdir_flag_spec_F77='-R$libdir' 15011 hardcode_direct_F77=yes 15012 hardcode_shlibpath_var_F77=no 15013 ;; 15014 15015 newsos6) 15016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15017 hardcode_direct_F77=yes 15018 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15019 hardcode_libdir_separator_F77=: 15020 hardcode_shlibpath_var_F77=no 15021 ;; 15022 15023 openbsd*) 15024 hardcode_direct_F77=yes 15025 hardcode_shlibpath_var_F77=no 15026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15027 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15028 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15029 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15030 export_dynamic_flag_spec_F77='${wl}-E' 15031 else 15032 case $host_os in 15033 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15034 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15035 hardcode_libdir_flag_spec_F77='-R$libdir' 15036 ;; 15037 *) 15038 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15039 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15040 ;; 15041 esac 15042 fi 15043 ;; 15044 15045 os2*) 15046 hardcode_libdir_flag_spec_F77='-L$libdir' 15047 hardcode_minus_L_F77=yes 15048 allow_undefined_flag_F77=unsupported 15049 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' 15050 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15051 ;; 15052 15053 osf3*) 15054 if test "$GCC" = yes; then 15055 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15056 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' 15057 else 15058 allow_undefined_flag_F77=' -expect_unresolved \*' 15059 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' 15060 fi 15061 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15062 hardcode_libdir_separator_F77=: 15063 ;; 15064 15065 osf4* | osf5*) # as osf3* with the addition of -msym flag 15066 if test "$GCC" = yes; then 15067 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15068 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' 15069 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15070 else 15071 allow_undefined_flag_F77=' -expect_unresolved \*' 15072 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' 15073 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~ 15074 $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' 15075 15076 # Both c and cxx compiler support -rpath directly 15077 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15078 fi 15079 hardcode_libdir_separator_F77=: 15080 ;; 15081 15082 sco3.2v5*) 15083 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15084 hardcode_shlibpath_var_F77=no 15085 export_dynamic_flag_spec_F77='${wl}-Bexport' 15086 runpath_var=LD_RUN_PATH 15087 hardcode_runpath_var=yes 15088 ;; 15089 15090 solaris*) 15091 no_undefined_flag_F77=' -z text' 15092 if test "$GCC" = yes; then 15093 wlarc='${wl}' 15094 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15095 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15096 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15097 else 15098 wlarc='' 15099 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15100 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15101 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15102 fi 15103 hardcode_libdir_flag_spec_F77='-R$libdir' 15104 hardcode_shlibpath_var_F77=no 15105 case $host_os in 15106 solaris2.[0-5] | solaris2.[0-5].*) ;; 15107 *) 15108 # The compiler driver will combine linker options so we 15109 # cannot just pass the convience library names through 15110 # without $wl, iff we do not link with $LD. 15111 # Luckily, gcc supports the same syntax we need for Sun Studio. 15112 # Supported since Solaris 2.6 (maybe 2.5.1?) 15113 case $wlarc in 15114 '') 15115 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15116 *) 15117 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' ;; 15118 esac ;; 15119 esac 15120 link_all_deplibs_F77=yes 15121 ;; 15122 15123 sunos4*) 15124 if test "x$host_vendor" = xsequent; then 15125 # Use $CC to link under sequent, because it throws in some extra .o 15126 # files that make .init and .fini sections work. 15127 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15128 else 15129 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15130 fi 15131 hardcode_libdir_flag_spec_F77='-L$libdir' 15132 hardcode_direct_F77=yes 15133 hardcode_minus_L_F77=yes 15134 hardcode_shlibpath_var_F77=no 15135 ;; 15136 15137 sysv4) 15138 case $host_vendor in 15139 sni) 15140 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15141 hardcode_direct_F77=yes # is this really true??? 15142 ;; 15143 siemens) 15144 ## LD is ld it makes a PLAMLIB 15145 ## CC just makes a GrossModule. 15146 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15147 reload_cmds_F77='$CC -r -o $output$reload_objs' 15148 hardcode_direct_F77=no 15149 ;; 15150 motorola) 15151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15152 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15153 ;; 15154 esac 15155 runpath_var='LD_RUN_PATH' 15156 hardcode_shlibpath_var_F77=no 15157 ;; 15158 15159 sysv4.3*) 15160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15161 hardcode_shlibpath_var_F77=no 15162 export_dynamic_flag_spec_F77='-Bexport' 15163 ;; 15164 15165 sysv4*MP*) 15166 if test -d /usr/nec; then 15167 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15168 hardcode_shlibpath_var_F77=no 15169 runpath_var=LD_RUN_PATH 15170 hardcode_runpath_var=yes 15171 ld_shlibs_F77=yes 15172 fi 15173 ;; 15174 15175 sysv4.2uw2*) 15176 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15177 hardcode_direct_F77=yes 15178 hardcode_minus_L_F77=no 15179 hardcode_shlibpath_var_F77=no 15180 hardcode_runpath_var=yes 15181 runpath_var=LD_RUN_PATH 15182 ;; 15183 15184 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 15185 no_undefined_flag_F77='${wl}-z ${wl}text' 15186 if test "$GCC" = yes; then 15187 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15188 else 15189 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15190 fi 15191 runpath_var='LD_RUN_PATH' 15192 hardcode_shlibpath_var_F77=no 15193 ;; 15194 15195 sysv5*) 15196 no_undefined_flag_F77=' -z text' 15197 # $CC -shared without GNU ld will not create a library from C++ 15198 # object files and a static libstdc++, better avoid it by now 15199 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15200 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15201 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15202 hardcode_libdir_flag_spec_F77= 15203 hardcode_shlibpath_var_F77=no 15204 runpath_var='LD_RUN_PATH' 15205 ;; 15206 15207 uts4*) 15208 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15209 hardcode_libdir_flag_spec_F77='-L$libdir' 15210 hardcode_shlibpath_var_F77=no 15211 ;; 15212 15213 *) 15214 ld_shlibs_F77=no 15215 ;; 15216 esac 15217 fi 15218 15219echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15220echo "${ECHO_T}$ld_shlibs_F77" >&6 15221test "$ld_shlibs_F77" = no && can_build_shared=no 15222 15223variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15224if test "$GCC" = yes; then 15225 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15226fi 15227 15228# 15229# Do we need to explicitly link libc? 15230# 15231case "x$archive_cmds_need_lc_F77" in 15232x|xyes) 15233 # Assume -lc should be added 15234 archive_cmds_need_lc_F77=yes 15235 15236 if test "$enable_shared" = yes && test "$GCC" = yes; then 15237 case $archive_cmds_F77 in 15238 *'~'*) 15239 # FIXME: we may have to deal with multi-command sequences. 15240 ;; 15241 '$CC '*) 15242 # Test whether the compiler implicitly links with -lc since on some 15243 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15244 # to ld, don't add -lc before -lgcc. 15245 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15246echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15247 $rm conftest* 15248 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15249 15250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15251 (eval $ac_compile) 2>&5 15252 ac_status=$? 15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15254 (exit $ac_status); } 2>conftest.err; then 15255 soname=conftest 15256 lib=conftest 15257 libobjs=conftest.$ac_objext 15258 deplibs= 15259 wl=$lt_prog_compiler_wl_F77 15260 compiler_flags=-v 15261 linker_flags=-v 15262 verstring= 15263 output_objdir=. 15264 libname=conftest 15265 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15266 allow_undefined_flag_F77= 15267 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15268 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15269 ac_status=$? 15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15271 (exit $ac_status); } 15272 then 15273 archive_cmds_need_lc_F77=no 15274 else 15275 archive_cmds_need_lc_F77=yes 15276 fi 15277 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15278 else 15279 cat conftest.err 1>&5 15280 fi 15281 $rm conftest* 15282 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15283echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 15284 ;; 15285 esac 15286 fi 15287 ;; 15288esac 15289 15290echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15291echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15292library_names_spec= 15293libname_spec='lib$name' 15294soname_spec= 15295shrext_cmds=".so" 15296postinstall_cmds= 15297postuninstall_cmds= 15298finish_cmds= 15299finish_eval= 15300shlibpath_var= 15301shlibpath_overrides_runpath=unknown 15302version_type=none 15303dynamic_linker="$host_os ld.so" 15304sys_lib_dlsearch_path_spec="/lib /usr/lib" 15305if test "$GCC" = yes; then 15306 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15307 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15308 # if the path contains ";" then we assume it to be the separator 15309 # otherwise default to the standard path separator (i.e. ":") - it is 15310 # assumed that no part of a normal pathname contains ";" but that should 15311 # okay in the real world where ";" in dirpaths is itself problematic. 15312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15313 else 15314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15315 fi 15316else 15317 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15318fi 15319need_lib_prefix=unknown 15320hardcode_into_libs=no 15321 15322# when you set need_version to no, make sure it does not cause -set_version 15323# flags to be left without arguments 15324need_version=unknown 15325 15326case $host_os in 15327aix3*) 15328 version_type=linux 15329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15330 shlibpath_var=LIBPATH 15331 15332 # AIX 3 has no versioning support, so we append a major version to the name. 15333 soname_spec='${libname}${release}${shared_ext}$major' 15334 ;; 15335 15336aix4* | aix5*) 15337 version_type=linux 15338 need_lib_prefix=no 15339 need_version=no 15340 hardcode_into_libs=yes 15341 if test "$host_cpu" = ia64; then 15342 # AIX 5 supports IA64 15343 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15344 shlibpath_var=LD_LIBRARY_PATH 15345 else 15346 # With GCC up to 2.95.x, collect2 would create an import file 15347 # for dependence libraries. The import file would start with 15348 # the line `#! .'. This would cause the generated library to 15349 # depend on `.', always an invalid library. This was fixed in 15350 # development snapshots of GCC prior to 3.0. 15351 case $host_os in 15352 aix4 | aix4.[01] | aix4.[01].*) 15353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15354 echo ' yes ' 15355 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15356 : 15357 else 15358 can_build_shared=no 15359 fi 15360 ;; 15361 esac 15362 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15363 # soname into executable. Probably we can add versioning support to 15364 # collect2, so additional links can be useful in future. 15365 if test "$aix_use_runtimelinking" = yes; then 15366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15367 # instead of lib<name>.a to let people know that these are not 15368 # typical AIX shared libraries. 15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15370 else 15371 # We preserve .a as extension for shared libraries through AIX4.2 15372 # and later when we are not doing run time linking. 15373 library_names_spec='${libname}${release}.a $libname.a' 15374 soname_spec='${libname}${release}${shared_ext}$major' 15375 fi 15376 shlibpath_var=LIBPATH 15377 fi 15378 ;; 15379 15380amigaos*) 15381 library_names_spec='$libname.ixlibrary $libname.a' 15382 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15383 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' 15384 ;; 15385 15386beos*) 15387 library_names_spec='${libname}${shared_ext}' 15388 dynamic_linker="$host_os ld.so" 15389 shlibpath_var=LIBRARY_PATH 15390 ;; 15391 15392bsdi[45]*) 15393 version_type=linux 15394 need_version=no 15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15396 soname_spec='${libname}${release}${shared_ext}$major' 15397 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15398 shlibpath_var=LD_LIBRARY_PATH 15399 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15400 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15401 # the default ld.so.conf also contains /usr/contrib/lib and 15402 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15403 # libtool to hard-code these into programs 15404 ;; 15405 15406cygwin* | mingw* | pw32*) 15407 version_type=windows 15408 shrext_cmds=".dll" 15409 need_version=no 15410 need_lib_prefix=no 15411 15412 case $GCC,$host_os in 15413 yes,cygwin* | yes,mingw* | yes,pw32*) 15414 library_names_spec='$libname.dll.a' 15415 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15416 postinstall_cmds='base_file=`basename \${file}`~ 15417 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15418 dldir=$destdir/`dirname \$dlpath`~ 15419 test -d \$dldir || mkdir -p \$dldir~ 15420 $install_prog $dir/$dlname \$dldir/$dlname~ 15421 chmod a+x \$dldir/$dlname' 15422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15423 dlpath=$dir/\$dldll~ 15424 $rm \$dlpath' 15425 shlibpath_overrides_runpath=yes 15426 15427 case $host_os in 15428 cygwin*) 15429 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15430 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15431 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15432 ;; 15433 mingw*) 15434 # MinGW DLLs use traditional 'lib' prefix 15435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15436 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15437 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15438 # It is most probably a Windows format PATH printed by 15439 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15440 # path with ; separators, and with drive letters. We can handle the 15441 # drive letters (cygwin fileutils understands them), so leave them, 15442 # especially as we might pass files found there to a mingw objdump, 15443 # which wouldn't understand a cygwinified path. Ahh. 15444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15445 else 15446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15447 fi 15448 ;; 15449 pw32*) 15450 # pw32 DLLs use 'pw' prefix rather than 'lib' 15451 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15452 ;; 15453 esac 15454 ;; 15455 15456 *) 15457 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15458 ;; 15459 esac 15460 dynamic_linker='Win32 ld.exe' 15461 # FIXME: first we should search . and the directory the executable is in 15462 shlibpath_var=PATH 15463 ;; 15464 15465darwin* | rhapsody*) 15466 dynamic_linker="$host_os dyld" 15467 version_type=darwin 15468 need_lib_prefix=no 15469 need_version=no 15470 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15471 soname_spec='${libname}${release}${major}$shared_ext' 15472 shlibpath_overrides_runpath=yes 15473 shlibpath_var=DYLD_LIBRARY_PATH 15474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15475 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15476 if test "$GCC" = yes; then 15477 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"` 15478 else 15479 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15480 fi 15481 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15482 ;; 15483 15484dgux*) 15485 version_type=linux 15486 need_lib_prefix=no 15487 need_version=no 15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15489 soname_spec='${libname}${release}${shared_ext}$major' 15490 shlibpath_var=LD_LIBRARY_PATH 15491 ;; 15492 15493freebsd1*) 15494 dynamic_linker=no 15495 ;; 15496 15497kfreebsd*-gnu) 15498 version_type=linux 15499 need_lib_prefix=no 15500 need_version=no 15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15502 soname_spec='${libname}${release}${shared_ext}$major' 15503 shlibpath_var=LD_LIBRARY_PATH 15504 shlibpath_overrides_runpath=no 15505 hardcode_into_libs=yes 15506 dynamic_linker='GNU ld.so' 15507 ;; 15508 15509freebsd* | dragonfly*) 15510 # DragonFly does not have aout. When/if they implement a new 15511 # versioning mechanism, adjust this. 15512 if test -x /usr/bin/objformat; then 15513 objformat=`/usr/bin/objformat` 15514 else 15515 case $host_os in 15516 freebsd[123]*) objformat=aout ;; 15517 *) objformat=elf ;; 15518 esac 15519 fi 15520 version_type=freebsd-$objformat 15521 case $version_type in 15522 freebsd-elf*) 15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15524 need_version=no 15525 need_lib_prefix=no 15526 ;; 15527 freebsd-*) 15528 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15529 need_version=yes 15530 ;; 15531 esac 15532 shlibpath_var=LD_LIBRARY_PATH 15533 case $host_os in 15534 freebsd2*) 15535 shlibpath_overrides_runpath=yes 15536 ;; 15537 freebsd3.[01]* | freebsdelf3.[01]*) 15538 shlibpath_overrides_runpath=yes 15539 hardcode_into_libs=yes 15540 ;; 15541 *) # from 3.2 on 15542 shlibpath_overrides_runpath=no 15543 hardcode_into_libs=yes 15544 ;; 15545 esac 15546 ;; 15547 15548gnu*) 15549 version_type=linux 15550 need_lib_prefix=no 15551 need_version=no 15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15553 soname_spec='${libname}${release}${shared_ext}$major' 15554 shlibpath_var=LD_LIBRARY_PATH 15555 hardcode_into_libs=yes 15556 ;; 15557 15558hpux9* | hpux10* | hpux11*) 15559 # Give a soname corresponding to the major version so that dld.sl refuses to 15560 # link against other versions. 15561 version_type=sunos 15562 need_lib_prefix=no 15563 need_version=no 15564 case $host_cpu in 15565 ia64*) 15566 shrext_cmds='.so' 15567 hardcode_into_libs=yes 15568 dynamic_linker="$host_os dld.so" 15569 shlibpath_var=LD_LIBRARY_PATH 15570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15572 soname_spec='${libname}${release}${shared_ext}$major' 15573 if test "X$HPUX_IA64_MODE" = X32; then 15574 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15575 else 15576 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15577 fi 15578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15579 ;; 15580 hppa*64*) 15581 shrext_cmds='.sl' 15582 hardcode_into_libs=yes 15583 dynamic_linker="$host_os dld.sl" 15584 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15585 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15587 soname_spec='${libname}${release}${shared_ext}$major' 15588 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15590 ;; 15591 *) 15592 shrext_cmds='.sl' 15593 dynamic_linker="$host_os dld.sl" 15594 shlibpath_var=SHLIB_PATH 15595 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15597 soname_spec='${libname}${release}${shared_ext}$major' 15598 ;; 15599 esac 15600 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15601 postinstall_cmds='chmod 555 $lib' 15602 ;; 15603 15604irix5* | irix6* | nonstopux*) 15605 case $host_os in 15606 nonstopux*) version_type=nonstopux ;; 15607 *) 15608 if test "$lt_cv_prog_gnu_ld" = yes; then 15609 version_type=linux 15610 else 15611 version_type=irix 15612 fi ;; 15613 esac 15614 need_lib_prefix=no 15615 need_version=no 15616 soname_spec='${libname}${release}${shared_ext}$major' 15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15618 case $host_os in 15619 irix5* | nonstopux*) 15620 libsuff= shlibsuff= 15621 ;; 15622 *) 15623 case $LD in # libtool.m4 will add one of these switches to LD 15624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15625 libsuff= shlibsuff= libmagic=32-bit;; 15626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15627 libsuff=32 shlibsuff=N32 libmagic=N32;; 15628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15629 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15630 *) libsuff= shlibsuff= libmagic=never-match;; 15631 esac 15632 ;; 15633 esac 15634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15635 shlibpath_overrides_runpath=no 15636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15638 hardcode_into_libs=yes 15639 ;; 15640 15641# No shared lib support for Linux oldld, aout, or coff. 15642linux*oldld* | linux*aout* | linux*coff*) 15643 dynamic_linker=no 15644 ;; 15645 15646# This must be Linux ELF. 15647linux*) 15648 version_type=linux 15649 need_lib_prefix=no 15650 need_version=no 15651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15652 soname_spec='${libname}${release}${shared_ext}$major' 15653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15654 shlibpath_var=LD_LIBRARY_PATH 15655 shlibpath_overrides_runpath=no 15656 # This implies no fast_install, which is unacceptable. 15657 # Some rework will be needed to allow for fast_install 15658 # before this can be enabled. 15659 hardcode_into_libs=yes 15660 15661 # Append ld.so.conf contents to the search path 15662 if test -f /etc/ld.so.conf; then 15663 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15665 fi 15666 15667 # We used to test for /lib/ld.so.1 and disable shared libraries on 15668 # powerpc, because MkLinux only supported shared libraries with the 15669 # GNU dynamic linker. Since this was broken with cross compilers, 15670 # most powerpc-linux boxes support dynamic linking these days and 15671 # people can always --disable-shared, the test was removed, and we 15672 # assume the GNU/Linux dynamic linker is in use. 15673 dynamic_linker='GNU/Linux ld.so' 15674 ;; 15675 15676knetbsd*-gnu) 15677 version_type=linux 15678 need_lib_prefix=no 15679 need_version=no 15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15681 soname_spec='${libname}${release}${shared_ext}$major' 15682 shlibpath_var=LD_LIBRARY_PATH 15683 shlibpath_overrides_runpath=no 15684 hardcode_into_libs=yes 15685 dynamic_linker='GNU ld.so' 15686 ;; 15687 15688netbsd*) 15689 version_type=sunos 15690 need_lib_prefix=no 15691 need_version=no 15692 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15695 dynamic_linker='NetBSD (a.out) ld.so' 15696 else 15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15698 soname_spec='${libname}${release}${shared_ext}$major' 15699 dynamic_linker='NetBSD ld.elf_so' 15700 fi 15701 shlibpath_var=LD_LIBRARY_PATH 15702 shlibpath_overrides_runpath=yes 15703 hardcode_into_libs=yes 15704 ;; 15705 15706newsos6) 15707 version_type=linux 15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15709 shlibpath_var=LD_LIBRARY_PATH 15710 shlibpath_overrides_runpath=yes 15711 ;; 15712 15713nto-qnx*) 15714 version_type=linux 15715 need_lib_prefix=no 15716 need_version=no 15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15718 soname_spec='${libname}${release}${shared_ext}$major' 15719 shlibpath_var=LD_LIBRARY_PATH 15720 shlibpath_overrides_runpath=yes 15721 ;; 15722 15723openbsd*) 15724 version_type=sunos 15725 need_lib_prefix=no 15726 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15727 case $host_os in 15728 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15729 *) need_version=no ;; 15730 esac 15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15733 shlibpath_var=LD_LIBRARY_PATH 15734 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15735 case $host_os in 15736 openbsd2.[89] | openbsd2.[89].*) 15737 shlibpath_overrides_runpath=no 15738 ;; 15739 *) 15740 shlibpath_overrides_runpath=yes 15741 ;; 15742 esac 15743 else 15744 shlibpath_overrides_runpath=yes 15745 fi 15746 ;; 15747 15748os2*) 15749 libname_spec='$name' 15750 shrext_cmds=".dll" 15751 need_lib_prefix=no 15752 library_names_spec='$libname${shared_ext} $libname.a' 15753 dynamic_linker='OS/2 ld.exe' 15754 shlibpath_var=LIBPATH 15755 ;; 15756 15757osf3* | osf4* | osf5*) 15758 version_type=osf 15759 need_lib_prefix=no 15760 need_version=no 15761 soname_spec='${libname}${release}${shared_ext}$major' 15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15763 shlibpath_var=LD_LIBRARY_PATH 15764 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15765 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15766 ;; 15767 15768sco3.2v5*) 15769 version_type=osf 15770 soname_spec='${libname}${release}${shared_ext}$major' 15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15772 shlibpath_var=LD_LIBRARY_PATH 15773 ;; 15774 15775solaris*) 15776 version_type=linux 15777 need_lib_prefix=no 15778 need_version=no 15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15780 soname_spec='${libname}${release}${shared_ext}$major' 15781 shlibpath_var=LD_LIBRARY_PATH 15782 shlibpath_overrides_runpath=yes 15783 hardcode_into_libs=yes 15784 # ldd complains unless libraries are executable 15785 postinstall_cmds='chmod +x $lib' 15786 ;; 15787 15788sunos4*) 15789 version_type=sunos 15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15791 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15792 shlibpath_var=LD_LIBRARY_PATH 15793 shlibpath_overrides_runpath=yes 15794 if test "$with_gnu_ld" = yes; then 15795 need_lib_prefix=no 15796 fi 15797 need_version=yes 15798 ;; 15799 15800sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15801 version_type=linux 15802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15803 soname_spec='${libname}${release}${shared_ext}$major' 15804 shlibpath_var=LD_LIBRARY_PATH 15805 case $host_vendor in 15806 sni) 15807 shlibpath_overrides_runpath=no 15808 need_lib_prefix=no 15809 export_dynamic_flag_spec='${wl}-Blargedynsym' 15810 runpath_var=LD_RUN_PATH 15811 ;; 15812 siemens) 15813 need_lib_prefix=no 15814 ;; 15815 motorola) 15816 need_lib_prefix=no 15817 need_version=no 15818 shlibpath_overrides_runpath=no 15819 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15820 ;; 15821 esac 15822 ;; 15823 15824sysv4*MP*) 15825 if test -d /usr/nec ;then 15826 version_type=linux 15827 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15828 soname_spec='$libname${shared_ext}.$major' 15829 shlibpath_var=LD_LIBRARY_PATH 15830 fi 15831 ;; 15832 15833uts4*) 15834 version_type=linux 15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15836 soname_spec='${libname}${release}${shared_ext}$major' 15837 shlibpath_var=LD_LIBRARY_PATH 15838 ;; 15839 15840*) 15841 dynamic_linker=no 15842 ;; 15843esac 15844echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15845echo "${ECHO_T}$dynamic_linker" >&6 15846test "$dynamic_linker" = no && can_build_shared=no 15847 15848echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15849echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15850hardcode_action_F77= 15851if test -n "$hardcode_libdir_flag_spec_F77" || \ 15852 test -n "$runpath_var_F77" || \ 15853 test "X$hardcode_automatic_F77" = "Xyes" ; then 15854 15855 # We can hardcode non-existant directories. 15856 if test "$hardcode_direct_F77" != no && 15857 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15858 # have to relink, otherwise we might link with an installed library 15859 # when we should be linking with a yet-to-be-installed one 15860 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15861 test "$hardcode_minus_L_F77" != no; then 15862 # Linking always hardcodes the temporary library directory. 15863 hardcode_action_F77=relink 15864 else 15865 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15866 hardcode_action_F77=immediate 15867 fi 15868else 15869 # We cannot hardcode anything, or else we can only hardcode existing 15870 # directories. 15871 hardcode_action_F77=unsupported 15872fi 15873echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15874echo "${ECHO_T}$hardcode_action_F77" >&6 15875 15876if test "$hardcode_action_F77" = relink; then 15877 # Fast installation is not supported 15878 enable_fast_install=no 15879elif test "$shlibpath_overrides_runpath" = yes || 15880 test "$enable_shared" = no; then 15881 # Fast installation is not necessary 15882 enable_fast_install=needless 15883fi 15884 15885striplib= 15886old_striplib= 15887echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15888echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15889if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15890 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15891 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15892 echo "$as_me:$LINENO: result: yes" >&5 15893echo "${ECHO_T}yes" >&6 15894else 15895# FIXME - insert some real tests, host_os isn't really good enough 15896 case $host_os in 15897 darwin*) 15898 if test -n "$STRIP" ; then 15899 striplib="$STRIP -x" 15900 echo "$as_me:$LINENO: result: yes" >&5 15901echo "${ECHO_T}yes" >&6 15902 else 15903 echo "$as_me:$LINENO: result: no" >&5 15904echo "${ECHO_T}no" >&6 15905fi 15906 ;; 15907 *) 15908 echo "$as_me:$LINENO: result: no" >&5 15909echo "${ECHO_T}no" >&6 15910 ;; 15911 esac 15912fi 15913 15914 15915 15916# The else clause should only fire when bootstrapping the 15917# libtool distribution, otherwise you forgot to ship ltmain.sh 15918# with your package, and you will get complaints that there are 15919# no rules to generate ltmain.sh. 15920if test -f "$ltmain"; then 15921 # See if we are running on zsh, and set the options which allow our commands through 15922 # without removal of \ escapes. 15923 if test -n "${ZSH_VERSION+set}" ; then 15924 setopt NO_GLOB_SUBST 15925 fi 15926 # Now quote all the things that may contain metacharacters while being 15927 # careful not to overquote the AC_SUBSTed values. We take copies of the 15928 # variables and quote the copies for generation of the libtool script. 15929 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15930 SED SHELL STRIP \ 15931 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15932 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15933 deplibs_check_method reload_flag reload_cmds need_locks \ 15934 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15935 lt_cv_sys_global_symbol_to_c_name_address \ 15936 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15937 old_postinstall_cmds old_postuninstall_cmds \ 15938 compiler_F77 \ 15939 CC_F77 \ 15940 LD_F77 \ 15941 lt_prog_compiler_wl_F77 \ 15942 lt_prog_compiler_pic_F77 \ 15943 lt_prog_compiler_static_F77 \ 15944 lt_prog_compiler_no_builtin_flag_F77 \ 15945 export_dynamic_flag_spec_F77 \ 15946 thread_safe_flag_spec_F77 \ 15947 whole_archive_flag_spec_F77 \ 15948 enable_shared_with_static_runtimes_F77 \ 15949 old_archive_cmds_F77 \ 15950 old_archive_from_new_cmds_F77 \ 15951 predep_objects_F77 \ 15952 postdep_objects_F77 \ 15953 predeps_F77 \ 15954 postdeps_F77 \ 15955 compiler_lib_search_path_F77 \ 15956 archive_cmds_F77 \ 15957 archive_expsym_cmds_F77 \ 15958 postinstall_cmds_F77 \ 15959 postuninstall_cmds_F77 \ 15960 old_archive_from_expsyms_cmds_F77 \ 15961 allow_undefined_flag_F77 \ 15962 no_undefined_flag_F77 \ 15963 export_symbols_cmds_F77 \ 15964 hardcode_libdir_flag_spec_F77 \ 15965 hardcode_libdir_flag_spec_ld_F77 \ 15966 hardcode_libdir_separator_F77 \ 15967 hardcode_automatic_F77 \ 15968 module_cmds_F77 \ 15969 module_expsym_cmds_F77 \ 15970 lt_cv_prog_compiler_c_o_F77 \ 15971 exclude_expsyms_F77 \ 15972 include_expsyms_F77; do 15973 15974 case $var in 15975 old_archive_cmds_F77 | \ 15976 old_archive_from_new_cmds_F77 | \ 15977 archive_cmds_F77 | \ 15978 archive_expsym_cmds_F77 | \ 15979 module_cmds_F77 | \ 15980 module_expsym_cmds_F77 | \ 15981 old_archive_from_expsyms_cmds_F77 | \ 15982 export_symbols_cmds_F77 | \ 15983 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15984 postinstall_cmds | postuninstall_cmds | \ 15985 old_postinstall_cmds | old_postuninstall_cmds | \ 15986 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15987 # Double-quote double-evaled strings. 15988 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15989 ;; 15990 *) 15991 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15992 ;; 15993 esac 15994 done 15995 15996 case $lt_echo in 15997 *'\$0 --fallback-echo"') 15998 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15999 ;; 16000 esac 16001 16002cfgfile="$ofile" 16003 16004 cat <<__EOF__ >> "$cfgfile" 16005# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16006 16007# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16008 16009# Shell to use when invoking shell scripts. 16010SHELL=$lt_SHELL 16011 16012# Whether or not to build shared libraries. 16013build_libtool_libs=$enable_shared 16014 16015# Whether or not to build static libraries. 16016build_old_libs=$enable_static 16017 16018# Whether or not to add -lc for building shared libraries. 16019build_libtool_need_lc=$archive_cmds_need_lc_F77 16020 16021# Whether or not to disallow shared libs when runtime libs are static 16022allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16023 16024# Whether or not to optimize for fast installation. 16025fast_install=$enable_fast_install 16026 16027# The host system. 16028host_alias=$host_alias 16029host=$host 16030host_os=$host_os 16031 16032# The build system. 16033build_alias=$build_alias 16034build=$build 16035build_os=$build_os 16036 16037# An echo program that does not interpret backslashes. 16038echo=$lt_echo 16039 16040# The archiver. 16041AR=$lt_AR 16042AR_FLAGS=$lt_AR_FLAGS 16043 16044# A C compiler. 16045LTCC=$lt_LTCC 16046 16047# A language-specific compiler. 16048CC=$lt_compiler_F77 16049 16050# Is the compiler the GNU C compiler? 16051with_gcc=$GCC_F77 16052 16053# An ERE matcher. 16054EGREP=$lt_EGREP 16055 16056# The linker used to build libraries. 16057LD=$lt_LD_F77 16058 16059# Whether we need hard or soft links. 16060LN_S=$lt_LN_S 16061 16062# A BSD-compatible nm program. 16063NM=$lt_NM 16064 16065# A symbol stripping program 16066STRIP=$lt_STRIP 16067 16068# Used to examine libraries when file_magic_cmd begins "file" 16069MAGIC_CMD=$MAGIC_CMD 16070 16071# Used on cygwin: DLL creation program. 16072DLLTOOL="$DLLTOOL" 16073 16074# Used on cygwin: object dumper. 16075OBJDUMP="$OBJDUMP" 16076 16077# Used on cygwin: assembler. 16078AS="$AS" 16079 16080# The name of the directory that contains temporary libtool files. 16081objdir=$objdir 16082 16083# How to create reloadable object files. 16084reload_flag=$lt_reload_flag 16085reload_cmds=$lt_reload_cmds 16086 16087# How to pass a linker flag through the compiler. 16088wl=$lt_lt_prog_compiler_wl_F77 16089 16090# Object file suffix (normally "o"). 16091objext="$ac_objext" 16092 16093# Old archive suffix (normally "a"). 16094libext="$libext" 16095 16096# Shared library suffix (normally ".so"). 16097shrext_cmds='$shrext_cmds' 16098 16099# Executable file suffix (normally ""). 16100exeext="$exeext" 16101 16102# Additional compiler flags for building library objects. 16103pic_flag=$lt_lt_prog_compiler_pic_F77 16104pic_mode=$pic_mode 16105 16106# What is the maximum length of a command? 16107max_cmd_len=$lt_cv_sys_max_cmd_len 16108 16109# Does compiler simultaneously support -c and -o options? 16110compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16111 16112# Must we lock files when doing compilation? 16113need_locks=$lt_need_locks 16114 16115# Do we need the lib prefix for modules? 16116need_lib_prefix=$need_lib_prefix 16117 16118# Do we need a version for libraries? 16119need_version=$need_version 16120 16121# Whether dlopen is supported. 16122dlopen_support=$enable_dlopen 16123 16124# Whether dlopen of programs is supported. 16125dlopen_self=$enable_dlopen_self 16126 16127# Whether dlopen of statically linked programs is supported. 16128dlopen_self_static=$enable_dlopen_self_static 16129 16130# Compiler flag to prevent dynamic linking. 16131link_static_flag=$lt_lt_prog_compiler_static_F77 16132 16133# Compiler flag to turn off builtin functions. 16134no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16135 16136# Compiler flag to allow reflexive dlopens. 16137export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16138 16139# Compiler flag to generate shared objects directly from archives. 16140whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16141 16142# Compiler flag to generate thread-safe objects. 16143thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16144 16145# Library versioning type. 16146version_type=$version_type 16147 16148# Format of library name prefix. 16149libname_spec=$lt_libname_spec 16150 16151# List of archive names. First name is the real one, the rest are links. 16152# The last name is the one that the linker finds with -lNAME. 16153library_names_spec=$lt_library_names_spec 16154 16155# The coded name of the library, if different from the real name. 16156soname_spec=$lt_soname_spec 16157 16158# Commands used to build and install an old-style archive. 16159RANLIB=$lt_RANLIB 16160old_archive_cmds=$lt_old_archive_cmds_F77 16161old_postinstall_cmds=$lt_old_postinstall_cmds 16162old_postuninstall_cmds=$lt_old_postuninstall_cmds 16163 16164# Create an old-style archive from a shared archive. 16165old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16166 16167# Create a temporary old-style archive to link instead of a shared archive. 16168old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16169 16170# Commands used to build and install a shared archive. 16171archive_cmds=$lt_archive_cmds_F77 16172archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16173postinstall_cmds=$lt_postinstall_cmds 16174postuninstall_cmds=$lt_postuninstall_cmds 16175 16176# Commands used to build a loadable module (assumed same as above if empty) 16177module_cmds=$lt_module_cmds_F77 16178module_expsym_cmds=$lt_module_expsym_cmds_F77 16179 16180# Commands to strip libraries. 16181old_striplib=$lt_old_striplib 16182striplib=$lt_striplib 16183 16184# Dependencies to place before the objects being linked to create a 16185# shared library. 16186predep_objects=$lt_predep_objects_F77 16187 16188# Dependencies to place after the objects being linked to create a 16189# shared library. 16190postdep_objects=$lt_postdep_objects_F77 16191 16192# Dependencies to place before the objects being linked to create a 16193# shared library. 16194predeps=$lt_predeps_F77 16195 16196# Dependencies to place after the objects being linked to create a 16197# shared library. 16198postdeps=$lt_postdeps_F77 16199 16200# The library search path used internally by the compiler when linking 16201# a shared library. 16202compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16203 16204# Method to check whether dependent libraries are shared objects. 16205deplibs_check_method=$lt_deplibs_check_method 16206 16207# Command to use when deplibs_check_method == file_magic. 16208file_magic_cmd=$lt_file_magic_cmd 16209 16210# Flag that allows shared libraries with undefined symbols to be built. 16211allow_undefined_flag=$lt_allow_undefined_flag_F77 16212 16213# Flag that forces no undefined symbols. 16214no_undefined_flag=$lt_no_undefined_flag_F77 16215 16216# Commands used to finish a libtool library installation in a directory. 16217finish_cmds=$lt_finish_cmds 16218 16219# Same as above, but a single script fragment to be evaled but not shown. 16220finish_eval=$lt_finish_eval 16221 16222# Take the output of nm and produce a listing of raw symbols and C names. 16223global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16224 16225# Transform the output of nm in a proper C declaration 16226global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16227 16228# Transform the output of nm in a C name address pair 16229global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16230 16231# This is the shared library runtime path variable. 16232runpath_var=$runpath_var 16233 16234# This is the shared library path variable. 16235shlibpath_var=$shlibpath_var 16236 16237# Is shlibpath searched before the hard-coded library search path? 16238shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16239 16240# How to hardcode a shared library path into an executable. 16241hardcode_action=$hardcode_action_F77 16242 16243# Whether we should hardcode library paths into libraries. 16244hardcode_into_libs=$hardcode_into_libs 16245 16246# Flag to hardcode \$libdir into a binary during linking. 16247# This must work even if \$libdir does not exist. 16248hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16249 16250# If ld is used when linking, flag to hardcode \$libdir into 16251# a binary during linking. This must work even if \$libdir does 16252# not exist. 16253hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16254 16255# Whether we need a single -rpath flag with a separated argument. 16256hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16257 16258# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16259# resulting binary. 16260hardcode_direct=$hardcode_direct_F77 16261 16262# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16263# resulting binary. 16264hardcode_minus_L=$hardcode_minus_L_F77 16265 16266# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16267# the resulting binary. 16268hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16269 16270# Set to yes if building a shared library automatically hardcodes DIR into the library 16271# and all subsequent libraries and executables linked against it. 16272hardcode_automatic=$hardcode_automatic_F77 16273 16274# Variables whose values should be saved in libtool wrapper scripts and 16275# restored at relink time. 16276variables_saved_for_relink="$variables_saved_for_relink" 16277 16278# Whether libtool must link a program against all its dependency libraries. 16279link_all_deplibs=$link_all_deplibs_F77 16280 16281# Compile-time system search path for libraries 16282sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16283 16284# Run-time system search path for libraries 16285sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16286 16287# Fix the shell variable \$srcfile for the compiler. 16288fix_srcfile_path="$fix_srcfile_path_F77" 16289 16290# Set to yes if exported symbols are required. 16291always_export_symbols=$always_export_symbols_F77 16292 16293# The commands to list exported symbols. 16294export_symbols_cmds=$lt_export_symbols_cmds_F77 16295 16296# The commands to extract the exported symbol list from a shared archive. 16297extract_expsyms_cmds=$lt_extract_expsyms_cmds 16298 16299# Symbols that should not be listed in the preloaded symbols. 16300exclude_expsyms=$lt_exclude_expsyms_F77 16301 16302# Symbols that must always be exported. 16303include_expsyms=$lt_include_expsyms_F77 16304 16305# ### END LIBTOOL TAG CONFIG: $tagname 16306 16307__EOF__ 16308 16309 16310else 16311 # If there is no Makefile yet, we rely on a make rule to execute 16312 # `config.status --recheck' to rerun these tests and create the 16313 # libtool script then. 16314 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16315 if test -f "$ltmain_in"; then 16316 test -f Makefile && make "$ltmain" 16317 fi 16318fi 16319 16320 16321ac_ext=c 16322ac_cpp='$CPP $CPPFLAGS' 16323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16325ac_compiler_gnu=$ac_cv_c_compiler_gnu 16326 16327CC="$lt_save_CC" 16328 16329 else 16330 tagname="" 16331 fi 16332 ;; 16333 16334 GCJ) 16335 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16336 16337 16338 16339# Source file extension for Java test sources. 16340ac_ext=java 16341 16342# Object file extension for compiled Java test sources. 16343objext=o 16344objext_GCJ=$objext 16345 16346# Code to be used in simple compile tests 16347lt_simple_compile_test_code="class foo {}\n" 16348 16349# Code to be used in simple link tests 16350lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16351 16352# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16353 16354# If no C compiler was specified, use CC. 16355LTCC=${LTCC-"$CC"} 16356 16357# Allow CC to be a program name with arguments. 16358compiler=$CC 16359 16360 16361# save warnings/boilerplate of simple test code 16362ac_outfile=conftest.$ac_objext 16363printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16364eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16365_lt_compiler_boilerplate=`cat conftest.err` 16366$rm conftest* 16367 16368ac_outfile=conftest.$ac_objext 16369printf "$lt_simple_link_test_code" >conftest.$ac_ext 16370eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16371_lt_linker_boilerplate=`cat conftest.err` 16372$rm conftest* 16373 16374 16375# Allow CC to be a program name with arguments. 16376lt_save_CC="$CC" 16377CC=${GCJ-"gcj"} 16378compiler=$CC 16379compiler_GCJ=$CC 16380for cc_temp in $compiler""; do 16381 case $cc_temp in 16382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16384 \-*) ;; 16385 *) break;; 16386 esac 16387done 16388cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16389 16390 16391# GCJ did not exist at the time GCC didn't implicitly link libc in. 16392archive_cmds_need_lc_GCJ=no 16393 16394old_archive_cmds_GCJ=$old_archive_cmds 16395 16396 16397lt_prog_compiler_no_builtin_flag_GCJ= 16398 16399if test "$GCC" = yes; then 16400 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16401 16402 16403echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16404echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16405if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16406 echo $ECHO_N "(cached) $ECHO_C" >&6 16407else 16408 lt_cv_prog_compiler_rtti_exceptions=no 16409 ac_outfile=conftest.$ac_objext 16410 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16411 lt_compiler_flag="-fno-rtti -fno-exceptions" 16412 # Insert the option either (1) after the last *FLAGS variable, or 16413 # (2) before a word containing "conftest.", or (3) at the end. 16414 # Note that $ac_compile itself does not contain backslashes and begins 16415 # with a dollar sign (not a hyphen), so the echo should work correctly. 16416 # The option is referenced via a variable to avoid confusing sed. 16417 lt_compile=`echo "$ac_compile" | $SED \ 16418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16420 -e 's:$: $lt_compiler_flag:'` 16421 (eval echo "\"\$as_me:16421: $lt_compile\"" >&5) 16422 (eval "$lt_compile" 2>conftest.err) 16423 ac_status=$? 16424 cat conftest.err >&5 16425 echo "$as_me:16425: \$? = $ac_status" >&5 16426 if (exit $ac_status) && test -s "$ac_outfile"; then 16427 # The compiler can only warn and ignore the option if not recognized 16428 # So say no if there are warnings other than the usual output. 16429 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16430 $SED '/^$/d' conftest.err >conftest.er2 16431 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16432 lt_cv_prog_compiler_rtti_exceptions=yes 16433 fi 16434 fi 16435 $rm conftest* 16436 16437fi 16438echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16439echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16440 16441if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16442 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16443else 16444 : 16445fi 16446 16447fi 16448 16449lt_prog_compiler_wl_GCJ= 16450lt_prog_compiler_pic_GCJ= 16451lt_prog_compiler_static_GCJ= 16452 16453echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16454echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16455 16456 if test "$GCC" = yes; then 16457 lt_prog_compiler_wl_GCJ='-Wl,' 16458 lt_prog_compiler_static_GCJ='-static' 16459 16460 case $host_os in 16461 aix*) 16462 # All AIX code is PIC. 16463 if test "$host_cpu" = ia64; then 16464 # AIX 5 now supports IA64 processor 16465 lt_prog_compiler_static_GCJ='-Bstatic' 16466 fi 16467 ;; 16468 16469 amigaos*) 16470 # FIXME: we need at least 68020 code to build shared libraries, but 16471 # adding the `-m68020' flag to GCC prevents building anything better, 16472 # like `-m68040'. 16473 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16474 ;; 16475 16476 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16477 # PIC is the default for these OSes. 16478 ;; 16479 16480 mingw* | pw32* | os2*) 16481 # This hack is so that the source file can tell whether it is being 16482 # built for inclusion in a dll (and should export symbols for example). 16483 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16484 ;; 16485 16486 darwin* | rhapsody*) 16487 # PIC is the default on this platform 16488 # Common symbols not allowed in MH_DYLIB files 16489 lt_prog_compiler_pic_GCJ='-fno-common' 16490 ;; 16491 16492 msdosdjgpp*) 16493 # Just because we use GCC doesn't mean we suddenly get shared libraries 16494 # on systems that don't support them. 16495 lt_prog_compiler_can_build_shared_GCJ=no 16496 enable_shared=no 16497 ;; 16498 16499 sysv4*MP*) 16500 if test -d /usr/nec; then 16501 lt_prog_compiler_pic_GCJ=-Kconform_pic 16502 fi 16503 ;; 16504 16505 hpux*) 16506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16507 # not for PA HP-UX. 16508 case $host_cpu in 16509 hppa*64*|ia64*) 16510 # +Z the default 16511 ;; 16512 *) 16513 lt_prog_compiler_pic_GCJ='-fPIC' 16514 ;; 16515 esac 16516 ;; 16517 16518 *) 16519 lt_prog_compiler_pic_GCJ='-fPIC' 16520 ;; 16521 esac 16522 else 16523 # PORTME Check for flag to pass linker flags through the system compiler. 16524 case $host_os in 16525 aix*) 16526 lt_prog_compiler_wl_GCJ='-Wl,' 16527 if test "$host_cpu" = ia64; then 16528 # AIX 5 now supports IA64 processor 16529 lt_prog_compiler_static_GCJ='-Bstatic' 16530 else 16531 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16532 fi 16533 ;; 16534 darwin*) 16535 # PIC is the default on this platform 16536 # Common symbols not allowed in MH_DYLIB files 16537 case $cc_basename in 16538 xlc*) 16539 lt_prog_compiler_pic_GCJ='-qnocommon' 16540 lt_prog_compiler_wl_GCJ='-Wl,' 16541 ;; 16542 esac 16543 ;; 16544 16545 mingw* | pw32* | os2*) 16546 # This hack is so that the source file can tell whether it is being 16547 # built for inclusion in a dll (and should export symbols for example). 16548 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16549 ;; 16550 16551 hpux9* | hpux10* | hpux11*) 16552 lt_prog_compiler_wl_GCJ='-Wl,' 16553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16554 # not for PA HP-UX. 16555 case $host_cpu in 16556 hppa*64*|ia64*) 16557 # +Z the default 16558 ;; 16559 *) 16560 lt_prog_compiler_pic_GCJ='+Z' 16561 ;; 16562 esac 16563 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16564 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16565 ;; 16566 16567 irix5* | irix6* | nonstopux*) 16568 lt_prog_compiler_wl_GCJ='-Wl,' 16569 # PIC (with -KPIC) is the default. 16570 lt_prog_compiler_static_GCJ='-non_shared' 16571 ;; 16572 16573 newsos6) 16574 lt_prog_compiler_pic_GCJ='-KPIC' 16575 lt_prog_compiler_static_GCJ='-Bstatic' 16576 ;; 16577 16578 linux*) 16579 case $cc_basename in 16580 icc* | ecc*) 16581 lt_prog_compiler_wl_GCJ='-Wl,' 16582 lt_prog_compiler_pic_GCJ='-KPIC' 16583 lt_prog_compiler_static_GCJ='-static' 16584 ;; 16585 pgcc* | pgf77* | pgf90* | pgf95*) 16586 # Portland Group compilers (*not* the Pentium gcc compiler, 16587 # which looks to be a dead project) 16588 lt_prog_compiler_wl_GCJ='-Wl,' 16589 lt_prog_compiler_pic_GCJ='-fpic' 16590 lt_prog_compiler_static_GCJ='-Bstatic' 16591 ;; 16592 ccc*) 16593 lt_prog_compiler_wl_GCJ='-Wl,' 16594 # All Alpha code is PIC. 16595 lt_prog_compiler_static_GCJ='-non_shared' 16596 ;; 16597 esac 16598 ;; 16599 16600 osf3* | osf4* | osf5*) 16601 lt_prog_compiler_wl_GCJ='-Wl,' 16602 # All OSF/1 code is PIC. 16603 lt_prog_compiler_static_GCJ='-non_shared' 16604 ;; 16605 16606 sco3.2v5*) 16607 lt_prog_compiler_pic_GCJ='-Kpic' 16608 lt_prog_compiler_static_GCJ='-dn' 16609 ;; 16610 16611 solaris*) 16612 lt_prog_compiler_pic_GCJ='-KPIC' 16613 lt_prog_compiler_static_GCJ='-Bstatic' 16614 case $cc_basename in 16615 f77* | f90* | f95*) 16616 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16617 *) 16618 lt_prog_compiler_wl_GCJ='-Wl,';; 16619 esac 16620 ;; 16621 16622 sunos4*) 16623 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16624 lt_prog_compiler_pic_GCJ='-PIC' 16625 lt_prog_compiler_static_GCJ='-Bstatic' 16626 ;; 16627 16628 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16629 lt_prog_compiler_wl_GCJ='-Wl,' 16630 lt_prog_compiler_pic_GCJ='-KPIC' 16631 lt_prog_compiler_static_GCJ='-Bstatic' 16632 ;; 16633 16634 sysv4*MP*) 16635 if test -d /usr/nec ;then 16636 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16637 lt_prog_compiler_static_GCJ='-Bstatic' 16638 fi 16639 ;; 16640 16641 unicos*) 16642 lt_prog_compiler_wl_GCJ='-Wl,' 16643 lt_prog_compiler_can_build_shared_GCJ=no 16644 ;; 16645 16646 uts4*) 16647 lt_prog_compiler_pic_GCJ='-pic' 16648 lt_prog_compiler_static_GCJ='-Bstatic' 16649 ;; 16650 16651 *) 16652 lt_prog_compiler_can_build_shared_GCJ=no 16653 ;; 16654 esac 16655 fi 16656 16657echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16658echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16659 16660# 16661# Check to make sure the PIC flag actually works. 16662# 16663if test -n "$lt_prog_compiler_pic_GCJ"; then 16664 16665echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16666echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16667if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16668 echo $ECHO_N "(cached) $ECHO_C" >&6 16669else 16670 lt_prog_compiler_pic_works_GCJ=no 16671 ac_outfile=conftest.$ac_objext 16672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16673 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16674 # Insert the option either (1) after the last *FLAGS variable, or 16675 # (2) before a word containing "conftest.", or (3) at the end. 16676 # Note that $ac_compile itself does not contain backslashes and begins 16677 # with a dollar sign (not a hyphen), so the echo should work correctly. 16678 # The option is referenced via a variable to avoid confusing sed. 16679 lt_compile=`echo "$ac_compile" | $SED \ 16680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16682 -e 's:$: $lt_compiler_flag:'` 16683 (eval echo "\"\$as_me:16683: $lt_compile\"" >&5) 16684 (eval "$lt_compile" 2>conftest.err) 16685 ac_status=$? 16686 cat conftest.err >&5 16687 echo "$as_me:16687: \$? = $ac_status" >&5 16688 if (exit $ac_status) && test -s "$ac_outfile"; then 16689 # The compiler can only warn and ignore the option if not recognized 16690 # So say no if there are warnings other than the usual output. 16691 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16692 $SED '/^$/d' conftest.err >conftest.er2 16693 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16694 lt_prog_compiler_pic_works_GCJ=yes 16695 fi 16696 fi 16697 $rm conftest* 16698 16699fi 16700echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16701echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16702 16703if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16704 case $lt_prog_compiler_pic_GCJ in 16705 "" | " "*) ;; 16706 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16707 esac 16708else 16709 lt_prog_compiler_pic_GCJ= 16710 lt_prog_compiler_can_build_shared_GCJ=no 16711fi 16712 16713fi 16714case $host_os in 16715 # For platforms which do not support PIC, -DPIC is meaningless: 16716 *djgpp*) 16717 lt_prog_compiler_pic_GCJ= 16718 ;; 16719 *) 16720 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16721 ;; 16722esac 16723 16724echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16725echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16726if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16727 echo $ECHO_N "(cached) $ECHO_C" >&6 16728else 16729 lt_cv_prog_compiler_c_o_GCJ=no 16730 $rm -r conftest 2>/dev/null 16731 mkdir conftest 16732 cd conftest 16733 mkdir out 16734 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16735 16736 lt_compiler_flag="-o out/conftest2.$ac_objext" 16737 # Insert the option either (1) after the last *FLAGS variable, or 16738 # (2) before a word containing "conftest.", or (3) at the end. 16739 # Note that $ac_compile itself does not contain backslashes and begins 16740 # with a dollar sign (not a hyphen), so the echo should work correctly. 16741 lt_compile=`echo "$ac_compile" | $SED \ 16742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16744 -e 's:$: $lt_compiler_flag:'` 16745 (eval echo "\"\$as_me:16745: $lt_compile\"" >&5) 16746 (eval "$lt_compile" 2>out/conftest.err) 16747 ac_status=$? 16748 cat out/conftest.err >&5 16749 echo "$as_me:16749: \$? = $ac_status" >&5 16750 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16751 then 16752 # The compiler can only warn and ignore the option if not recognized 16753 # So say no if there are warnings 16754 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16755 $SED '/^$/d' out/conftest.err >out/conftest.er2 16756 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16757 lt_cv_prog_compiler_c_o_GCJ=yes 16758 fi 16759 fi 16760 chmod u+w . 2>&5 16761 $rm conftest* 16762 # SGI C++ compiler will create directory out/ii_files/ for 16763 # template instantiation 16764 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16765 $rm out/* && rmdir out 16766 cd .. 16767 rmdir conftest 16768 $rm conftest* 16769 16770fi 16771echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16772echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16773 16774 16775hard_links="nottested" 16776if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16777 # do not overwrite the value of need_locks provided by the user 16778 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16779echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16780 hard_links=yes 16781 $rm conftest* 16782 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16783 touch conftest.a 16784 ln conftest.a conftest.b 2>&5 || hard_links=no 16785 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16786 echo "$as_me:$LINENO: result: $hard_links" >&5 16787echo "${ECHO_T}$hard_links" >&6 16788 if test "$hard_links" = no; then 16789 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16790echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16791 need_locks=warn 16792 fi 16793else 16794 need_locks=no 16795fi 16796 16797echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16798echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16799 16800 runpath_var= 16801 allow_undefined_flag_GCJ= 16802 enable_shared_with_static_runtimes_GCJ=no 16803 archive_cmds_GCJ= 16804 archive_expsym_cmds_GCJ= 16805 old_archive_From_new_cmds_GCJ= 16806 old_archive_from_expsyms_cmds_GCJ= 16807 export_dynamic_flag_spec_GCJ= 16808 whole_archive_flag_spec_GCJ= 16809 thread_safe_flag_spec_GCJ= 16810 hardcode_libdir_flag_spec_GCJ= 16811 hardcode_libdir_flag_spec_ld_GCJ= 16812 hardcode_libdir_separator_GCJ= 16813 hardcode_direct_GCJ=no 16814 hardcode_minus_L_GCJ=no 16815 hardcode_shlibpath_var_GCJ=unsupported 16816 link_all_deplibs_GCJ=unknown 16817 hardcode_automatic_GCJ=no 16818 module_cmds_GCJ= 16819 module_expsym_cmds_GCJ= 16820 always_export_symbols_GCJ=no 16821 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16822 # include_expsyms should be a list of space-separated symbols to be *always* 16823 # included in the symbol list 16824 include_expsyms_GCJ= 16825 # exclude_expsyms can be an extended regexp of symbols to exclude 16826 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16827 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16828 # as well as any symbol that contains `d'. 16829 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16830 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16831 # platforms (ab)use it in PIC code, but their linkers get confused if 16832 # the symbol is explicitly referenced. Since portable code cannot 16833 # rely on this symbol name, it's probably fine to never include it in 16834 # preloaded symbol tables. 16835 extract_expsyms_cmds= 16836 # Just being paranoid about ensuring that cc_basename is set. 16837 for cc_temp in $compiler""; do 16838 case $cc_temp in 16839 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16840 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16841 \-*) ;; 16842 *) break;; 16843 esac 16844done 16845cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16846 16847 case $host_os in 16848 cygwin* | mingw* | pw32*) 16849 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16850 # When not using gcc, we currently assume that we are using 16851 # Microsoft Visual C++. 16852 if test "$GCC" != yes; then 16853 with_gnu_ld=no 16854 fi 16855 ;; 16856 openbsd*) 16857 with_gnu_ld=no 16858 ;; 16859 esac 16860 16861 ld_shlibs_GCJ=yes 16862 if test "$with_gnu_ld" = yes; then 16863 # If archive_cmds runs LD, not CC, wlarc should be empty 16864 wlarc='${wl}' 16865 16866 # Set some defaults for GNU ld with shared library support. These 16867 # are reset later if shared libraries are not supported. Putting them 16868 # here allows them to be overridden if necessary. 16869 runpath_var=LD_RUN_PATH 16870 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16871 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16872 # ancient GNU ld didn't support --whole-archive et. al. 16873 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16874 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16875 else 16876 whole_archive_flag_spec_GCJ= 16877 fi 16878 supports_anon_versioning=no 16879 case `$LD -v 2>/dev/null` in 16880 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16881 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16882 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16883 *\ 2.11.*) ;; # other 2.11 versions 16884 *) supports_anon_versioning=yes ;; 16885 esac 16886 16887 # See if GNU ld supports shared libraries. 16888 case $host_os in 16889 aix3* | aix4* | aix5*) 16890 # On AIX/PPC, the GNU linker is very broken 16891 if test "$host_cpu" != ia64; then 16892 ld_shlibs_GCJ=no 16893 cat <<EOF 1>&2 16894 16895*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16896*** to be unable to reliably create shared libraries on AIX. 16897*** Therefore, libtool is disabling shared libraries support. If you 16898*** really care for shared libraries, you may want to modify your PATH 16899*** so that a non-GNU linker is found, and then restart. 16900 16901EOF 16902 fi 16903 ;; 16904 16905 amigaos*) 16906 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)' 16907 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16908 hardcode_minus_L_GCJ=yes 16909 16910 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16911 # that the semantics of dynamic libraries on AmigaOS, at least up 16912 # to version 4, is to share data among multiple programs linked 16913 # with the same dynamic library. Since this doesn't match the 16914 # behavior of shared libraries on other platforms, we can't use 16915 # them. 16916 ld_shlibs_GCJ=no 16917 ;; 16918 16919 beos*) 16920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16921 allow_undefined_flag_GCJ=unsupported 16922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16923 # support --undefined. This deserves some investigation. FIXME 16924 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16925 else 16926 ld_shlibs_GCJ=no 16927 fi 16928 ;; 16929 16930 cygwin* | mingw* | pw32*) 16931 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16932 # as there is no search path for DLLs. 16933 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16934 allow_undefined_flag_GCJ=unsupported 16935 always_export_symbols_GCJ=no 16936 enable_shared_with_static_runtimes_GCJ=yes 16937 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16938 16939 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16940 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16941 # If the export-symbols file already is a .def file (1st line 16942 # is EXPORTS), use it as is; otherwise, prepend... 16943 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16944 cp $export_symbols $output_objdir/$soname.def; 16945 else 16946 echo EXPORTS > $output_objdir/$soname.def; 16947 cat $export_symbols >> $output_objdir/$soname.def; 16948 fi~ 16949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16950 else 16951 ld_shlibs_GCJ=no 16952 fi 16953 ;; 16954 16955 linux*) 16956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16957 tmp_addflag= 16958 case $cc_basename,$host_cpu in 16959 pgcc*) # Portland Group C compiler 16960 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' 16961 tmp_addflag=' $pic_flag' 16962 ;; 16963 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16964 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' 16965 tmp_addflag=' $pic_flag -Mnomain' ;; 16966 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16967 tmp_addflag=' -i_dynamic' ;; 16968 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16969 tmp_addflag=' -i_dynamic -nofor_main' ;; 16970 ifc* | ifort*) # Intel Fortran compiler 16971 tmp_addflag=' -nofor_main' ;; 16972 esac 16973 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16974 16975 if test $supports_anon_versioning = yes; then 16976 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16978 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16979 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16980 fi 16981 else 16982 ld_shlibs_GCJ=no 16983 fi 16984 ;; 16985 16986 netbsd*) 16987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16988 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16989 wlarc= 16990 else 16991 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16992 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16993 fi 16994 ;; 16995 16996 solaris* | sysv5*) 16997 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16998 ld_shlibs_GCJ=no 16999 cat <<EOF 1>&2 17000 17001*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17002*** create shared libraries on Solaris systems. Therefore, libtool 17003*** is disabling shared libraries support. We urge you to upgrade GNU 17004*** binutils to release 2.9.1 or newer. Another option is to modify 17005*** your PATH or compiler configuration so that the native linker is 17006*** used, and then restart. 17007 17008EOF 17009 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17010 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17011 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17012 else 17013 ld_shlibs_GCJ=no 17014 fi 17015 ;; 17016 17017 sunos4*) 17018 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17019 wlarc= 17020 hardcode_direct_GCJ=yes 17021 hardcode_shlibpath_var_GCJ=no 17022 ;; 17023 17024 *) 17025 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17026 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17027 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17028 else 17029 ld_shlibs_GCJ=no 17030 fi 17031 ;; 17032 esac 17033 17034 if test "$ld_shlibs_GCJ" = no; then 17035 runpath_var= 17036 hardcode_libdir_flag_spec_GCJ= 17037 export_dynamic_flag_spec_GCJ= 17038 whole_archive_flag_spec_GCJ= 17039 fi 17040 else 17041 # PORTME fill in a description of your system's linker (not GNU ld) 17042 case $host_os in 17043 aix3*) 17044 allow_undefined_flag_GCJ=unsupported 17045 always_export_symbols_GCJ=yes 17046 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' 17047 # Note: this linker hardcodes the directories in LIBPATH if there 17048 # are no directories specified by -L. 17049 hardcode_minus_L_GCJ=yes 17050 if test "$GCC" = yes && test -z "$link_static_flag"; then 17051 # Neither direct hardcoding nor static linking is supported with a 17052 # broken collect2. 17053 hardcode_direct_GCJ=unsupported 17054 fi 17055 ;; 17056 17057 aix4* | aix5*) 17058 if test "$host_cpu" = ia64; then 17059 # On IA64, the linker does run time linking by default, so we don't 17060 # have to do anything special. 17061 aix_use_runtimelinking=no 17062 exp_sym_flag='-Bexport' 17063 no_entry_flag="" 17064 else 17065 # If we're using GNU nm, then we don't want the "-C" option. 17066 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17067 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17068 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' 17069 else 17070 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' 17071 fi 17072 aix_use_runtimelinking=no 17073 17074 # Test if we are trying to use run time linking or normal 17075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17076 # need to do runtime linking. 17077 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17078 for ld_flag in $LDFLAGS; do 17079 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17080 aix_use_runtimelinking=yes 17081 break 17082 fi 17083 done 17084 esac 17085 17086 exp_sym_flag='-bexport' 17087 no_entry_flag='-bnoentry' 17088 fi 17089 17090 # When large executables or shared objects are built, AIX ld can 17091 # have problems creating the table of contents. If linking a library 17092 # or program results in "error TOC overflow" add -mminimal-toc to 17093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17095 17096 archive_cmds_GCJ='' 17097 hardcode_direct_GCJ=yes 17098 hardcode_libdir_separator_GCJ=':' 17099 link_all_deplibs_GCJ=yes 17100 17101 if test "$GCC" = yes; then 17102 case $host_os in aix4.[012]|aix4.[012].*) 17103 # We only want to do this on AIX 4.2 and lower, the check 17104 # below for broken collect2 doesn't work under 4.3+ 17105 collect2name=`${CC} -print-prog-name=collect2` 17106 if test -f "$collect2name" && \ 17107 strings "$collect2name" | grep resolve_lib_name >/dev/null 17108 then 17109 # We have reworked collect2 17110 hardcode_direct_GCJ=yes 17111 else 17112 # We have old collect2 17113 hardcode_direct_GCJ=unsupported 17114 # It fails to find uninstalled libraries when the uninstalled 17115 # path is not listed in the libpath. Setting hardcode_minus_L 17116 # to unsupported forces relinking 17117 hardcode_minus_L_GCJ=yes 17118 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17119 hardcode_libdir_separator_GCJ= 17120 fi 17121 esac 17122 shared_flag='-shared' 17123 if test "$aix_use_runtimelinking" = yes; then 17124 shared_flag="$shared_flag "'${wl}-G' 17125 fi 17126 else 17127 # not using gcc 17128 if test "$host_cpu" = ia64; then 17129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17130 # chokes on -Wl,-G. The following line is correct: 17131 shared_flag='-G' 17132 else 17133 if test "$aix_use_runtimelinking" = yes; then 17134 shared_flag='${wl}-G' 17135 else 17136 shared_flag='${wl}-bM:SRE' 17137 fi 17138 fi 17139 fi 17140 17141 # It seems that -bexpall does not export symbols beginning with 17142 # underscore (_), so it is better to generate a list of symbols to export. 17143 always_export_symbols_GCJ=yes 17144 if test "$aix_use_runtimelinking" = yes; then 17145 # Warning - without using the other runtime loading flags (-brtl), 17146 # -berok will link without error, but may produce a broken library. 17147 allow_undefined_flag_GCJ='-berok' 17148 # Determine the default libpath from the value encoded in an empty executable. 17149 cat >conftest.$ac_ext <<_ACEOF 17150/* confdefs.h. */ 17151_ACEOF 17152cat confdefs.h >>conftest.$ac_ext 17153cat >>conftest.$ac_ext <<_ACEOF 17154/* end confdefs.h. */ 17155 17156int 17157main () 17158{ 17159 17160 ; 17161 return 0; 17162} 17163_ACEOF 17164rm -f conftest.$ac_objext conftest$ac_exeext 17165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17166 (eval $ac_link) 2>conftest.er1 17167 ac_status=$? 17168 grep -v '^ *+' conftest.er1 >conftest.err 17169 rm -f conftest.er1 17170 cat conftest.err >&5 17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17172 (exit $ac_status); } && 17173 { ac_try='test -z "$ac_c_werror_flag" 17174 || test ! -s conftest.err' 17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17176 (eval $ac_try) 2>&5 17177 ac_status=$? 17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17179 (exit $ac_status); }; } && 17180 { ac_try='test -s conftest$ac_exeext' 17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17182 (eval $ac_try) 2>&5 17183 ac_status=$? 17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17185 (exit $ac_status); }; }; then 17186 17187aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17188}'` 17189# Check for a 64-bit object if we didn't find anything. 17190if 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; } 17191}'`; fi 17192else 17193 echo "$as_me: failed program was:" >&5 17194sed 's/^/| /' conftest.$ac_ext >&5 17195 17196fi 17197rm -f conftest.err conftest.$ac_objext \ 17198 conftest$ac_exeext conftest.$ac_ext 17199if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17200 17201 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17202 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17203 else 17204 if test "$host_cpu" = ia64; then 17205 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17206 allow_undefined_flag_GCJ="-z nodefs" 17207 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 17208 else 17209 # Determine the default libpath from the value encoded in an empty executable. 17210 cat >conftest.$ac_ext <<_ACEOF 17211/* confdefs.h. */ 17212_ACEOF 17213cat confdefs.h >>conftest.$ac_ext 17214cat >>conftest.$ac_ext <<_ACEOF 17215/* end confdefs.h. */ 17216 17217int 17218main () 17219{ 17220 17221 ; 17222 return 0; 17223} 17224_ACEOF 17225rm -f conftest.$ac_objext conftest$ac_exeext 17226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17227 (eval $ac_link) 2>conftest.er1 17228 ac_status=$? 17229 grep -v '^ *+' conftest.er1 >conftest.err 17230 rm -f conftest.er1 17231 cat conftest.err >&5 17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17233 (exit $ac_status); } && 17234 { ac_try='test -z "$ac_c_werror_flag" 17235 || test ! -s conftest.err' 17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17237 (eval $ac_try) 2>&5 17238 ac_status=$? 17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17240 (exit $ac_status); }; } && 17241 { ac_try='test -s conftest$ac_exeext' 17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17243 (eval $ac_try) 2>&5 17244 ac_status=$? 17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17246 (exit $ac_status); }; }; then 17247 17248aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17249}'` 17250# Check for a 64-bit object if we didn't find anything. 17251if 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; } 17252}'`; fi 17253else 17254 echo "$as_me: failed program was:" >&5 17255sed 's/^/| /' conftest.$ac_ext >&5 17256 17257fi 17258rm -f conftest.err conftest.$ac_objext \ 17259 conftest$ac_exeext conftest.$ac_ext 17260if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17261 17262 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17263 # Warning - without using the other run time loading flags, 17264 # -berok will link without error, but may produce a broken library. 17265 no_undefined_flag_GCJ=' ${wl}-bernotok' 17266 allow_undefined_flag_GCJ=' ${wl}-berok' 17267 # -bexpall does not export symbols beginning with underscore (_) 17268 always_export_symbols_GCJ=yes 17269 # Exported symbols can be pulled into shared objects from archives 17270 whole_archive_flag_spec_GCJ=' ' 17271 archive_cmds_need_lc_GCJ=yes 17272 # This is similar to how AIX traditionally builds its shared libraries. 17273 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 17274 fi 17275 fi 17276 ;; 17277 17278 amigaos*) 17279 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)' 17280 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17281 hardcode_minus_L_GCJ=yes 17282 # see comment about different semantics on the GNU ld section 17283 ld_shlibs_GCJ=no 17284 ;; 17285 17286 bsdi[45]*) 17287 export_dynamic_flag_spec_GCJ=-rdynamic 17288 ;; 17289 17290 cygwin* | mingw* | pw32*) 17291 # When not using gcc, we currently assume that we are using 17292 # Microsoft Visual C++. 17293 # hardcode_libdir_flag_spec is actually meaningless, as there is 17294 # no search path for DLLs. 17295 hardcode_libdir_flag_spec_GCJ=' ' 17296 allow_undefined_flag_GCJ=unsupported 17297 # Tell ltmain to make .lib files, not .a files. 17298 libext=lib 17299 # Tell ltmain to make .dll files, not .so files. 17300 shrext_cmds=".dll" 17301 # FIXME: Setting linknames here is a bad hack. 17302 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17303 # The linker will automatically build a .lib file if we build a DLL. 17304 old_archive_From_new_cmds_GCJ='true' 17305 # FIXME: Should let the user specify the lib program. 17306 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17307 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17308 enable_shared_with_static_runtimes_GCJ=yes 17309 ;; 17310 17311 darwin* | rhapsody*) 17312 case $host_os in 17313 rhapsody* | darwin1.[012]) 17314 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17315 ;; 17316 *) # Darwin 1.3 on 17317 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17318 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17319 else 17320 case ${MACOSX_DEPLOYMENT_TARGET} in 17321 10.[012]) 17322 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17323 ;; 17324 10.*) 17325 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17326 ;; 17327 esac 17328 fi 17329 ;; 17330 esac 17331 archive_cmds_need_lc_GCJ=no 17332 hardcode_direct_GCJ=no 17333 hardcode_automatic_GCJ=yes 17334 hardcode_shlibpath_var_GCJ=unsupported 17335 whole_archive_flag_spec_GCJ='' 17336 link_all_deplibs_GCJ=yes 17337 if test "$GCC" = yes ; then 17338 output_verbose_link_cmd='echo' 17339 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17340 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17341 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17342 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}' 17343 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}' 17344 else 17345 case $cc_basename in 17346 xlc*) 17347 output_verbose_link_cmd='echo' 17348 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17349 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17350 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17351 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}' 17352 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}' 17353 ;; 17354 *) 17355 ld_shlibs_GCJ=no 17356 ;; 17357 esac 17358 fi 17359 ;; 17360 17361 dgux*) 17362 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17363 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17364 hardcode_shlibpath_var_GCJ=no 17365 ;; 17366 17367 freebsd1*) 17368 ld_shlibs_GCJ=no 17369 ;; 17370 17371 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17372 # support. Future versions do this automatically, but an explicit c++rt0.o 17373 # does not break anything, and helps significantly (at the cost of a little 17374 # extra space). 17375 freebsd2.2*) 17376 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17377 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17378 hardcode_direct_GCJ=yes 17379 hardcode_shlibpath_var_GCJ=no 17380 ;; 17381 17382 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17383 freebsd2*) 17384 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17385 hardcode_direct_GCJ=yes 17386 hardcode_minus_L_GCJ=yes 17387 hardcode_shlibpath_var_GCJ=no 17388 ;; 17389 17390 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17391 freebsd* | kfreebsd*-gnu | dragonfly*) 17392 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17393 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17394 hardcode_direct_GCJ=yes 17395 hardcode_shlibpath_var_GCJ=no 17396 ;; 17397 17398 hpux9*) 17399 if test "$GCC" = yes; then 17400 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' 17401 else 17402 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' 17403 fi 17404 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17405 hardcode_libdir_separator_GCJ=: 17406 hardcode_direct_GCJ=yes 17407 17408 # hardcode_minus_L: Not really in the search PATH, 17409 # but as the default location of the library. 17410 hardcode_minus_L_GCJ=yes 17411 export_dynamic_flag_spec_GCJ='${wl}-E' 17412 ;; 17413 17414 hpux10* | hpux11*) 17415 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17416 case $host_cpu in 17417 hppa*64*|ia64*) 17418 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17419 ;; 17420 *) 17421 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17422 ;; 17423 esac 17424 else 17425 case $host_cpu in 17426 hppa*64*|ia64*) 17427 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17428 ;; 17429 *) 17430 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17431 ;; 17432 esac 17433 fi 17434 if test "$with_gnu_ld" = no; then 17435 case $host_cpu in 17436 hppa*64*) 17437 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17438 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17439 hardcode_libdir_separator_GCJ=: 17440 hardcode_direct_GCJ=no 17441 hardcode_shlibpath_var_GCJ=no 17442 ;; 17443 ia64*) 17444 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17445 hardcode_direct_GCJ=no 17446 hardcode_shlibpath_var_GCJ=no 17447 17448 # hardcode_minus_L: Not really in the search PATH, 17449 # but as the default location of the library. 17450 hardcode_minus_L_GCJ=yes 17451 ;; 17452 *) 17453 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17454 hardcode_libdir_separator_GCJ=: 17455 hardcode_direct_GCJ=yes 17456 export_dynamic_flag_spec_GCJ='${wl}-E' 17457 17458 # hardcode_minus_L: Not really in the search PATH, 17459 # but as the default location of the library. 17460 hardcode_minus_L_GCJ=yes 17461 ;; 17462 esac 17463 fi 17464 ;; 17465 17466 irix5* | irix6* | nonstopux*) 17467 if test "$GCC" = yes; then 17468 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' 17469 else 17470 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' 17471 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17472 fi 17473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17474 hardcode_libdir_separator_GCJ=: 17475 link_all_deplibs_GCJ=yes 17476 ;; 17477 17478 netbsd*) 17479 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17480 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17481 else 17482 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17483 fi 17484 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17485 hardcode_direct_GCJ=yes 17486 hardcode_shlibpath_var_GCJ=no 17487 ;; 17488 17489 newsos6) 17490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17491 hardcode_direct_GCJ=yes 17492 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17493 hardcode_libdir_separator_GCJ=: 17494 hardcode_shlibpath_var_GCJ=no 17495 ;; 17496 17497 openbsd*) 17498 hardcode_direct_GCJ=yes 17499 hardcode_shlibpath_var_GCJ=no 17500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17501 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17502 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17504 export_dynamic_flag_spec_GCJ='${wl}-E' 17505 else 17506 case $host_os in 17507 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17508 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17509 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17510 ;; 17511 *) 17512 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17513 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17514 ;; 17515 esac 17516 fi 17517 ;; 17518 17519 os2*) 17520 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17521 hardcode_minus_L_GCJ=yes 17522 allow_undefined_flag_GCJ=unsupported 17523 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' 17524 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17525 ;; 17526 17527 osf3*) 17528 if test "$GCC" = yes; then 17529 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17530 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' 17531 else 17532 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17533 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' 17534 fi 17535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17536 hardcode_libdir_separator_GCJ=: 17537 ;; 17538 17539 osf4* | osf5*) # as osf3* with the addition of -msym flag 17540 if test "$GCC" = yes; then 17541 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17542 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' 17543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17544 else 17545 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17546 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' 17547 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~ 17548 $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' 17549 17550 # Both c and cxx compiler support -rpath directly 17551 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17552 fi 17553 hardcode_libdir_separator_GCJ=: 17554 ;; 17555 17556 sco3.2v5*) 17557 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17558 hardcode_shlibpath_var_GCJ=no 17559 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17560 runpath_var=LD_RUN_PATH 17561 hardcode_runpath_var=yes 17562 ;; 17563 17564 solaris*) 17565 no_undefined_flag_GCJ=' -z text' 17566 if test "$GCC" = yes; then 17567 wlarc='${wl}' 17568 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17569 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17570 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17571 else 17572 wlarc='' 17573 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17574 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17576 fi 17577 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17578 hardcode_shlibpath_var_GCJ=no 17579 case $host_os in 17580 solaris2.[0-5] | solaris2.[0-5].*) ;; 17581 *) 17582 # The compiler driver will combine linker options so we 17583 # cannot just pass the convience library names through 17584 # without $wl, iff we do not link with $LD. 17585 # Luckily, gcc supports the same syntax we need for Sun Studio. 17586 # Supported since Solaris 2.6 (maybe 2.5.1?) 17587 case $wlarc in 17588 '') 17589 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17590 *) 17591 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' ;; 17592 esac ;; 17593 esac 17594 link_all_deplibs_GCJ=yes 17595 ;; 17596 17597 sunos4*) 17598 if test "x$host_vendor" = xsequent; then 17599 # Use $CC to link under sequent, because it throws in some extra .o 17600 # files that make .init and .fini sections work. 17601 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17602 else 17603 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17604 fi 17605 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17606 hardcode_direct_GCJ=yes 17607 hardcode_minus_L_GCJ=yes 17608 hardcode_shlibpath_var_GCJ=no 17609 ;; 17610 17611 sysv4) 17612 case $host_vendor in 17613 sni) 17614 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17615 hardcode_direct_GCJ=yes # is this really true??? 17616 ;; 17617 siemens) 17618 ## LD is ld it makes a PLAMLIB 17619 ## CC just makes a GrossModule. 17620 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17621 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17622 hardcode_direct_GCJ=no 17623 ;; 17624 motorola) 17625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17626 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17627 ;; 17628 esac 17629 runpath_var='LD_RUN_PATH' 17630 hardcode_shlibpath_var_GCJ=no 17631 ;; 17632 17633 sysv4.3*) 17634 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17635 hardcode_shlibpath_var_GCJ=no 17636 export_dynamic_flag_spec_GCJ='-Bexport' 17637 ;; 17638 17639 sysv4*MP*) 17640 if test -d /usr/nec; then 17641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17642 hardcode_shlibpath_var_GCJ=no 17643 runpath_var=LD_RUN_PATH 17644 hardcode_runpath_var=yes 17645 ld_shlibs_GCJ=yes 17646 fi 17647 ;; 17648 17649 sysv4.2uw2*) 17650 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17651 hardcode_direct_GCJ=yes 17652 hardcode_minus_L_GCJ=no 17653 hardcode_shlibpath_var_GCJ=no 17654 hardcode_runpath_var=yes 17655 runpath_var=LD_RUN_PATH 17656 ;; 17657 17658 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17659 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17660 if test "$GCC" = yes; then 17661 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17662 else 17663 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17664 fi 17665 runpath_var='LD_RUN_PATH' 17666 hardcode_shlibpath_var_GCJ=no 17667 ;; 17668 17669 sysv5*) 17670 no_undefined_flag_GCJ=' -z text' 17671 # $CC -shared without GNU ld will not create a library from C++ 17672 # object files and a static libstdc++, better avoid it by now 17673 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17674 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17675 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17676 hardcode_libdir_flag_spec_GCJ= 17677 hardcode_shlibpath_var_GCJ=no 17678 runpath_var='LD_RUN_PATH' 17679 ;; 17680 17681 uts4*) 17682 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17683 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17684 hardcode_shlibpath_var_GCJ=no 17685 ;; 17686 17687 *) 17688 ld_shlibs_GCJ=no 17689 ;; 17690 esac 17691 fi 17692 17693echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17694echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17695test "$ld_shlibs_GCJ" = no && can_build_shared=no 17696 17697variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17698if test "$GCC" = yes; then 17699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17700fi 17701 17702# 17703# Do we need to explicitly link libc? 17704# 17705case "x$archive_cmds_need_lc_GCJ" in 17706x|xyes) 17707 # Assume -lc should be added 17708 archive_cmds_need_lc_GCJ=yes 17709 17710 if test "$enable_shared" = yes && test "$GCC" = yes; then 17711 case $archive_cmds_GCJ in 17712 *'~'*) 17713 # FIXME: we may have to deal with multi-command sequences. 17714 ;; 17715 '$CC '*) 17716 # Test whether the compiler implicitly links with -lc since on some 17717 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17718 # to ld, don't add -lc before -lgcc. 17719 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17720echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17721 $rm conftest* 17722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17723 17724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17725 (eval $ac_compile) 2>&5 17726 ac_status=$? 17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17728 (exit $ac_status); } 2>conftest.err; then 17729 soname=conftest 17730 lib=conftest 17731 libobjs=conftest.$ac_objext 17732 deplibs= 17733 wl=$lt_prog_compiler_wl_GCJ 17734 compiler_flags=-v 17735 linker_flags=-v 17736 verstring= 17737 output_objdir=. 17738 libname=conftest 17739 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17740 allow_undefined_flag_GCJ= 17741 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17742 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17743 ac_status=$? 17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17745 (exit $ac_status); } 17746 then 17747 archive_cmds_need_lc_GCJ=no 17748 else 17749 archive_cmds_need_lc_GCJ=yes 17750 fi 17751 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17752 else 17753 cat conftest.err 1>&5 17754 fi 17755 $rm conftest* 17756 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17757echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17758 ;; 17759 esac 17760 fi 17761 ;; 17762esac 17763 17764echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17765echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17766library_names_spec= 17767libname_spec='lib$name' 17768soname_spec= 17769shrext_cmds=".so" 17770postinstall_cmds= 17771postuninstall_cmds= 17772finish_cmds= 17773finish_eval= 17774shlibpath_var= 17775shlibpath_overrides_runpath=unknown 17776version_type=none 17777dynamic_linker="$host_os ld.so" 17778sys_lib_dlsearch_path_spec="/lib /usr/lib" 17779if test "$GCC" = yes; then 17780 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17781 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17782 # if the path contains ";" then we assume it to be the separator 17783 # otherwise default to the standard path separator (i.e. ":") - it is 17784 # assumed that no part of a normal pathname contains ";" but that should 17785 # okay in the real world where ";" in dirpaths is itself problematic. 17786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17787 else 17788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17789 fi 17790else 17791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17792fi 17793need_lib_prefix=unknown 17794hardcode_into_libs=no 17795 17796# when you set need_version to no, make sure it does not cause -set_version 17797# flags to be left without arguments 17798need_version=unknown 17799 17800case $host_os in 17801aix3*) 17802 version_type=linux 17803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17804 shlibpath_var=LIBPATH 17805 17806 # AIX 3 has no versioning support, so we append a major version to the name. 17807 soname_spec='${libname}${release}${shared_ext}$major' 17808 ;; 17809 17810aix4* | aix5*) 17811 version_type=linux 17812 need_lib_prefix=no 17813 need_version=no 17814 hardcode_into_libs=yes 17815 if test "$host_cpu" = ia64; then 17816 # AIX 5 supports IA64 17817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17818 shlibpath_var=LD_LIBRARY_PATH 17819 else 17820 # With GCC up to 2.95.x, collect2 would create an import file 17821 # for dependence libraries. The import file would start with 17822 # the line `#! .'. This would cause the generated library to 17823 # depend on `.', always an invalid library. This was fixed in 17824 # development snapshots of GCC prior to 3.0. 17825 case $host_os in 17826 aix4 | aix4.[01] | aix4.[01].*) 17827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17828 echo ' yes ' 17829 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17830 : 17831 else 17832 can_build_shared=no 17833 fi 17834 ;; 17835 esac 17836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17837 # soname into executable. Probably we can add versioning support to 17838 # collect2, so additional links can be useful in future. 17839 if test "$aix_use_runtimelinking" = yes; then 17840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17841 # instead of lib<name>.a to let people know that these are not 17842 # typical AIX shared libraries. 17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17844 else 17845 # We preserve .a as extension for shared libraries through AIX4.2 17846 # and later when we are not doing run time linking. 17847 library_names_spec='${libname}${release}.a $libname.a' 17848 soname_spec='${libname}${release}${shared_ext}$major' 17849 fi 17850 shlibpath_var=LIBPATH 17851 fi 17852 ;; 17853 17854amigaos*) 17855 library_names_spec='$libname.ixlibrary $libname.a' 17856 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17857 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' 17858 ;; 17859 17860beos*) 17861 library_names_spec='${libname}${shared_ext}' 17862 dynamic_linker="$host_os ld.so" 17863 shlibpath_var=LIBRARY_PATH 17864 ;; 17865 17866bsdi[45]*) 17867 version_type=linux 17868 need_version=no 17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17870 soname_spec='${libname}${release}${shared_ext}$major' 17871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17872 shlibpath_var=LD_LIBRARY_PATH 17873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17875 # the default ld.so.conf also contains /usr/contrib/lib and 17876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17877 # libtool to hard-code these into programs 17878 ;; 17879 17880cygwin* | mingw* | pw32*) 17881 version_type=windows 17882 shrext_cmds=".dll" 17883 need_version=no 17884 need_lib_prefix=no 17885 17886 case $GCC,$host_os in 17887 yes,cygwin* | yes,mingw* | yes,pw32*) 17888 library_names_spec='$libname.dll.a' 17889 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17890 postinstall_cmds='base_file=`basename \${file}`~ 17891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17892 dldir=$destdir/`dirname \$dlpath`~ 17893 test -d \$dldir || mkdir -p \$dldir~ 17894 $install_prog $dir/$dlname \$dldir/$dlname~ 17895 chmod a+x \$dldir/$dlname' 17896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17897 dlpath=$dir/\$dldll~ 17898 $rm \$dlpath' 17899 shlibpath_overrides_runpath=yes 17900 17901 case $host_os in 17902 cygwin*) 17903 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17904 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17905 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17906 ;; 17907 mingw*) 17908 # MinGW DLLs use traditional 'lib' prefix 17909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17910 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17911 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17912 # It is most probably a Windows format PATH printed by 17913 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17914 # path with ; separators, and with drive letters. We can handle the 17915 # drive letters (cygwin fileutils understands them), so leave them, 17916 # especially as we might pass files found there to a mingw objdump, 17917 # which wouldn't understand a cygwinified path. Ahh. 17918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17919 else 17920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17921 fi 17922 ;; 17923 pw32*) 17924 # pw32 DLLs use 'pw' prefix rather than 'lib' 17925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17926 ;; 17927 esac 17928 ;; 17929 17930 *) 17931 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17932 ;; 17933 esac 17934 dynamic_linker='Win32 ld.exe' 17935 # FIXME: first we should search . and the directory the executable is in 17936 shlibpath_var=PATH 17937 ;; 17938 17939darwin* | rhapsody*) 17940 dynamic_linker="$host_os dyld" 17941 version_type=darwin 17942 need_lib_prefix=no 17943 need_version=no 17944 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17945 soname_spec='${libname}${release}${major}$shared_ext' 17946 shlibpath_overrides_runpath=yes 17947 shlibpath_var=DYLD_LIBRARY_PATH 17948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17949 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17950 if test "$GCC" = yes; then 17951 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"` 17952 else 17953 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17954 fi 17955 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17956 ;; 17957 17958dgux*) 17959 version_type=linux 17960 need_lib_prefix=no 17961 need_version=no 17962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17963 soname_spec='${libname}${release}${shared_ext}$major' 17964 shlibpath_var=LD_LIBRARY_PATH 17965 ;; 17966 17967freebsd1*) 17968 dynamic_linker=no 17969 ;; 17970 17971kfreebsd*-gnu) 17972 version_type=linux 17973 need_lib_prefix=no 17974 need_version=no 17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17976 soname_spec='${libname}${release}${shared_ext}$major' 17977 shlibpath_var=LD_LIBRARY_PATH 17978 shlibpath_overrides_runpath=no 17979 hardcode_into_libs=yes 17980 dynamic_linker='GNU ld.so' 17981 ;; 17982 17983freebsd* | dragonfly*) 17984 # DragonFly does not have aout. When/if they implement a new 17985 # versioning mechanism, adjust this. 17986 if test -x /usr/bin/objformat; then 17987 objformat=`/usr/bin/objformat` 17988 else 17989 case $host_os in 17990 freebsd[123]*) objformat=aout ;; 17991 *) objformat=elf ;; 17992 esac 17993 fi 17994 version_type=freebsd-$objformat 17995 case $version_type in 17996 freebsd-elf*) 17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17998 need_version=no 17999 need_lib_prefix=no 18000 ;; 18001 freebsd-*) 18002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18003 need_version=yes 18004 ;; 18005 esac 18006 shlibpath_var=LD_LIBRARY_PATH 18007 case $host_os in 18008 freebsd2*) 18009 shlibpath_overrides_runpath=yes 18010 ;; 18011 freebsd3.[01]* | freebsdelf3.[01]*) 18012 shlibpath_overrides_runpath=yes 18013 hardcode_into_libs=yes 18014 ;; 18015 *) # from 3.2 on 18016 shlibpath_overrides_runpath=no 18017 hardcode_into_libs=yes 18018 ;; 18019 esac 18020 ;; 18021 18022gnu*) 18023 version_type=linux 18024 need_lib_prefix=no 18025 need_version=no 18026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18027 soname_spec='${libname}${release}${shared_ext}$major' 18028 shlibpath_var=LD_LIBRARY_PATH 18029 hardcode_into_libs=yes 18030 ;; 18031 18032hpux9* | hpux10* | hpux11*) 18033 # Give a soname corresponding to the major version so that dld.sl refuses to 18034 # link against other versions. 18035 version_type=sunos 18036 need_lib_prefix=no 18037 need_version=no 18038 case $host_cpu in 18039 ia64*) 18040 shrext_cmds='.so' 18041 hardcode_into_libs=yes 18042 dynamic_linker="$host_os dld.so" 18043 shlibpath_var=LD_LIBRARY_PATH 18044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18046 soname_spec='${libname}${release}${shared_ext}$major' 18047 if test "X$HPUX_IA64_MODE" = X32; then 18048 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18049 else 18050 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18051 fi 18052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18053 ;; 18054 hppa*64*) 18055 shrext_cmds='.sl' 18056 hardcode_into_libs=yes 18057 dynamic_linker="$host_os dld.sl" 18058 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18061 soname_spec='${libname}${release}${shared_ext}$major' 18062 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18064 ;; 18065 *) 18066 shrext_cmds='.sl' 18067 dynamic_linker="$host_os dld.sl" 18068 shlibpath_var=SHLIB_PATH 18069 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18071 soname_spec='${libname}${release}${shared_ext}$major' 18072 ;; 18073 esac 18074 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18075 postinstall_cmds='chmod 555 $lib' 18076 ;; 18077 18078irix5* | irix6* | nonstopux*) 18079 case $host_os in 18080 nonstopux*) version_type=nonstopux ;; 18081 *) 18082 if test "$lt_cv_prog_gnu_ld" = yes; then 18083 version_type=linux 18084 else 18085 version_type=irix 18086 fi ;; 18087 esac 18088 need_lib_prefix=no 18089 need_version=no 18090 soname_spec='${libname}${release}${shared_ext}$major' 18091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18092 case $host_os in 18093 irix5* | nonstopux*) 18094 libsuff= shlibsuff= 18095 ;; 18096 *) 18097 case $LD in # libtool.m4 will add one of these switches to LD 18098 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18099 libsuff= shlibsuff= libmagic=32-bit;; 18100 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18101 libsuff=32 shlibsuff=N32 libmagic=N32;; 18102 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18103 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18104 *) libsuff= shlibsuff= libmagic=never-match;; 18105 esac 18106 ;; 18107 esac 18108 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18109 shlibpath_overrides_runpath=no 18110 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18111 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18112 hardcode_into_libs=yes 18113 ;; 18114 18115# No shared lib support for Linux oldld, aout, or coff. 18116linux*oldld* | linux*aout* | linux*coff*) 18117 dynamic_linker=no 18118 ;; 18119 18120# This must be Linux ELF. 18121linux*) 18122 version_type=linux 18123 need_lib_prefix=no 18124 need_version=no 18125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18126 soname_spec='${libname}${release}${shared_ext}$major' 18127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18128 shlibpath_var=LD_LIBRARY_PATH 18129 shlibpath_overrides_runpath=no 18130 # This implies no fast_install, which is unacceptable. 18131 # Some rework will be needed to allow for fast_install 18132 # before this can be enabled. 18133 hardcode_into_libs=yes 18134 18135 # Append ld.so.conf contents to the search path 18136 if test -f /etc/ld.so.conf; then 18137 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18139 fi 18140 18141 # We used to test for /lib/ld.so.1 and disable shared libraries on 18142 # powerpc, because MkLinux only supported shared libraries with the 18143 # GNU dynamic linker. Since this was broken with cross compilers, 18144 # most powerpc-linux boxes support dynamic linking these days and 18145 # people can always --disable-shared, the test was removed, and we 18146 # assume the GNU/Linux dynamic linker is in use. 18147 dynamic_linker='GNU/Linux ld.so' 18148 ;; 18149 18150knetbsd*-gnu) 18151 version_type=linux 18152 need_lib_prefix=no 18153 need_version=no 18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18155 soname_spec='${libname}${release}${shared_ext}$major' 18156 shlibpath_var=LD_LIBRARY_PATH 18157 shlibpath_overrides_runpath=no 18158 hardcode_into_libs=yes 18159 dynamic_linker='GNU ld.so' 18160 ;; 18161 18162netbsd*) 18163 version_type=sunos 18164 need_lib_prefix=no 18165 need_version=no 18166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18169 dynamic_linker='NetBSD (a.out) ld.so' 18170 else 18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18172 soname_spec='${libname}${release}${shared_ext}$major' 18173 dynamic_linker='NetBSD ld.elf_so' 18174 fi 18175 shlibpath_var=LD_LIBRARY_PATH 18176 shlibpath_overrides_runpath=yes 18177 hardcode_into_libs=yes 18178 ;; 18179 18180newsos6) 18181 version_type=linux 18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18183 shlibpath_var=LD_LIBRARY_PATH 18184 shlibpath_overrides_runpath=yes 18185 ;; 18186 18187nto-qnx*) 18188 version_type=linux 18189 need_lib_prefix=no 18190 need_version=no 18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18192 soname_spec='${libname}${release}${shared_ext}$major' 18193 shlibpath_var=LD_LIBRARY_PATH 18194 shlibpath_overrides_runpath=yes 18195 ;; 18196 18197openbsd*) 18198 version_type=sunos 18199 need_lib_prefix=no 18200 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18201 case $host_os in 18202 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18203 *) need_version=no ;; 18204 esac 18205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18207 shlibpath_var=LD_LIBRARY_PATH 18208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18209 case $host_os in 18210 openbsd2.[89] | openbsd2.[89].*) 18211 shlibpath_overrides_runpath=no 18212 ;; 18213 *) 18214 shlibpath_overrides_runpath=yes 18215 ;; 18216 esac 18217 else 18218 shlibpath_overrides_runpath=yes 18219 fi 18220 ;; 18221 18222os2*) 18223 libname_spec='$name' 18224 shrext_cmds=".dll" 18225 need_lib_prefix=no 18226 library_names_spec='$libname${shared_ext} $libname.a' 18227 dynamic_linker='OS/2 ld.exe' 18228 shlibpath_var=LIBPATH 18229 ;; 18230 18231osf3* | osf4* | osf5*) 18232 version_type=osf 18233 need_lib_prefix=no 18234 need_version=no 18235 soname_spec='${libname}${release}${shared_ext}$major' 18236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18237 shlibpath_var=LD_LIBRARY_PATH 18238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18240 ;; 18241 18242sco3.2v5*) 18243 version_type=osf 18244 soname_spec='${libname}${release}${shared_ext}$major' 18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18246 shlibpath_var=LD_LIBRARY_PATH 18247 ;; 18248 18249solaris*) 18250 version_type=linux 18251 need_lib_prefix=no 18252 need_version=no 18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18254 soname_spec='${libname}${release}${shared_ext}$major' 18255 shlibpath_var=LD_LIBRARY_PATH 18256 shlibpath_overrides_runpath=yes 18257 hardcode_into_libs=yes 18258 # ldd complains unless libraries are executable 18259 postinstall_cmds='chmod +x $lib' 18260 ;; 18261 18262sunos4*) 18263 version_type=sunos 18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18266 shlibpath_var=LD_LIBRARY_PATH 18267 shlibpath_overrides_runpath=yes 18268 if test "$with_gnu_ld" = yes; then 18269 need_lib_prefix=no 18270 fi 18271 need_version=yes 18272 ;; 18273 18274sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18275 version_type=linux 18276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18277 soname_spec='${libname}${release}${shared_ext}$major' 18278 shlibpath_var=LD_LIBRARY_PATH 18279 case $host_vendor in 18280 sni) 18281 shlibpath_overrides_runpath=no 18282 need_lib_prefix=no 18283 export_dynamic_flag_spec='${wl}-Blargedynsym' 18284 runpath_var=LD_RUN_PATH 18285 ;; 18286 siemens) 18287 need_lib_prefix=no 18288 ;; 18289 motorola) 18290 need_lib_prefix=no 18291 need_version=no 18292 shlibpath_overrides_runpath=no 18293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18294 ;; 18295 esac 18296 ;; 18297 18298sysv4*MP*) 18299 if test -d /usr/nec ;then 18300 version_type=linux 18301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18302 soname_spec='$libname${shared_ext}.$major' 18303 shlibpath_var=LD_LIBRARY_PATH 18304 fi 18305 ;; 18306 18307uts4*) 18308 version_type=linux 18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18310 soname_spec='${libname}${release}${shared_ext}$major' 18311 shlibpath_var=LD_LIBRARY_PATH 18312 ;; 18313 18314*) 18315 dynamic_linker=no 18316 ;; 18317esac 18318echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18319echo "${ECHO_T}$dynamic_linker" >&6 18320test "$dynamic_linker" = no && can_build_shared=no 18321 18322echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18323echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18324hardcode_action_GCJ= 18325if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18326 test -n "$runpath_var_GCJ" || \ 18327 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18328 18329 # We can hardcode non-existant directories. 18330 if test "$hardcode_direct_GCJ" != no && 18331 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18332 # have to relink, otherwise we might link with an installed library 18333 # when we should be linking with a yet-to-be-installed one 18334 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18335 test "$hardcode_minus_L_GCJ" != no; then 18336 # Linking always hardcodes the temporary library directory. 18337 hardcode_action_GCJ=relink 18338 else 18339 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18340 hardcode_action_GCJ=immediate 18341 fi 18342else 18343 # We cannot hardcode anything, or else we can only hardcode existing 18344 # directories. 18345 hardcode_action_GCJ=unsupported 18346fi 18347echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18348echo "${ECHO_T}$hardcode_action_GCJ" >&6 18349 18350if test "$hardcode_action_GCJ" = relink; then 18351 # Fast installation is not supported 18352 enable_fast_install=no 18353elif test "$shlibpath_overrides_runpath" = yes || 18354 test "$enable_shared" = no; then 18355 # Fast installation is not necessary 18356 enable_fast_install=needless 18357fi 18358 18359striplib= 18360old_striplib= 18361echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 18362echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 18363if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 18364 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18365 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18366 echo "$as_me:$LINENO: result: yes" >&5 18367echo "${ECHO_T}yes" >&6 18368else 18369# FIXME - insert some real tests, host_os isn't really good enough 18370 case $host_os in 18371 darwin*) 18372 if test -n "$STRIP" ; then 18373 striplib="$STRIP -x" 18374 echo "$as_me:$LINENO: result: yes" >&5 18375echo "${ECHO_T}yes" >&6 18376 else 18377 echo "$as_me:$LINENO: result: no" >&5 18378echo "${ECHO_T}no" >&6 18379fi 18380 ;; 18381 *) 18382 echo "$as_me:$LINENO: result: no" >&5 18383echo "${ECHO_T}no" >&6 18384 ;; 18385 esac 18386fi 18387 18388if test "x$enable_dlopen" != xyes; then 18389 enable_dlopen=unknown 18390 enable_dlopen_self=unknown 18391 enable_dlopen_self_static=unknown 18392else 18393 lt_cv_dlopen=no 18394 lt_cv_dlopen_libs= 18395 18396 case $host_os in 18397 beos*) 18398 lt_cv_dlopen="load_add_on" 18399 lt_cv_dlopen_libs= 18400 lt_cv_dlopen_self=yes 18401 ;; 18402 18403 mingw* | pw32*) 18404 lt_cv_dlopen="LoadLibrary" 18405 lt_cv_dlopen_libs= 18406 ;; 18407 18408 cygwin*) 18409 lt_cv_dlopen="dlopen" 18410 lt_cv_dlopen_libs= 18411 ;; 18412 18413 darwin*) 18414 # if libdl is installed we need to link against it 18415 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18416echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18417if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18418 echo $ECHO_N "(cached) $ECHO_C" >&6 18419else 18420 ac_check_lib_save_LIBS=$LIBS 18421LIBS="-ldl $LIBS" 18422cat >conftest.$ac_ext <<_ACEOF 18423/* confdefs.h. */ 18424_ACEOF 18425cat confdefs.h >>conftest.$ac_ext 18426cat >>conftest.$ac_ext <<_ACEOF 18427/* end confdefs.h. */ 18428 18429/* Override any gcc2 internal prototype to avoid an error. */ 18430#ifdef __cplusplus 18431extern "C" 18432#endif 18433/* We use char because int might match the return type of a gcc2 18434 builtin and then its argument prototype would still apply. */ 18435char dlopen (); 18436int 18437main () 18438{ 18439dlopen (); 18440 ; 18441 return 0; 18442} 18443_ACEOF 18444rm -f conftest.$ac_objext conftest$ac_exeext 18445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18446 (eval $ac_link) 2>conftest.er1 18447 ac_status=$? 18448 grep -v '^ *+' conftest.er1 >conftest.err 18449 rm -f conftest.er1 18450 cat conftest.err >&5 18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18452 (exit $ac_status); } && 18453 { ac_try='test -z "$ac_c_werror_flag" 18454 || test ! -s conftest.err' 18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18456 (eval $ac_try) 2>&5 18457 ac_status=$? 18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18459 (exit $ac_status); }; } && 18460 { ac_try='test -s conftest$ac_exeext' 18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18462 (eval $ac_try) 2>&5 18463 ac_status=$? 18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18465 (exit $ac_status); }; }; then 18466 ac_cv_lib_dl_dlopen=yes 18467else 18468 echo "$as_me: failed program was:" >&5 18469sed 's/^/| /' conftest.$ac_ext >&5 18470 18471ac_cv_lib_dl_dlopen=no 18472fi 18473rm -f conftest.err conftest.$ac_objext \ 18474 conftest$ac_exeext conftest.$ac_ext 18475LIBS=$ac_check_lib_save_LIBS 18476fi 18477echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18478echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18479if test $ac_cv_lib_dl_dlopen = yes; then 18480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18481else 18482 18483 lt_cv_dlopen="dyld" 18484 lt_cv_dlopen_libs= 18485 lt_cv_dlopen_self=yes 18486 18487fi 18488 18489 ;; 18490 18491 *) 18492 echo "$as_me:$LINENO: checking for shl_load" >&5 18493echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18494if test "${ac_cv_func_shl_load+set}" = set; then 18495 echo $ECHO_N "(cached) $ECHO_C" >&6 18496else 18497 cat >conftest.$ac_ext <<_ACEOF 18498/* confdefs.h. */ 18499_ACEOF 18500cat confdefs.h >>conftest.$ac_ext 18501cat >>conftest.$ac_ext <<_ACEOF 18502/* end confdefs.h. */ 18503/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18504 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18505#define shl_load innocuous_shl_load 18506 18507/* System header to define __stub macros and hopefully few prototypes, 18508 which can conflict with char shl_load (); below. 18509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18510 <limits.h> exists even on freestanding compilers. */ 18511 18512#ifdef __STDC__ 18513# include <limits.h> 18514#else 18515# include <assert.h> 18516#endif 18517 18518#undef shl_load 18519 18520/* Override any gcc2 internal prototype to avoid an error. */ 18521#ifdef __cplusplus 18522extern "C" 18523{ 18524#endif 18525/* We use char because int might match the return type of a gcc2 18526 builtin and then its argument prototype would still apply. */ 18527char shl_load (); 18528/* The GNU C library defines this for functions which it implements 18529 to always fail with ENOSYS. Some functions are actually named 18530 something starting with __ and the normal name is an alias. */ 18531#if defined (__stub_shl_load) || defined (__stub___shl_load) 18532choke me 18533#else 18534char (*f) () = shl_load; 18535#endif 18536#ifdef __cplusplus 18537} 18538#endif 18539 18540int 18541main () 18542{ 18543return f != shl_load; 18544 ; 18545 return 0; 18546} 18547_ACEOF 18548rm -f conftest.$ac_objext conftest$ac_exeext 18549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18550 (eval $ac_link) 2>conftest.er1 18551 ac_status=$? 18552 grep -v '^ *+' conftest.er1 >conftest.err 18553 rm -f conftest.er1 18554 cat conftest.err >&5 18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18556 (exit $ac_status); } && 18557 { ac_try='test -z "$ac_c_werror_flag" 18558 || test ! -s conftest.err' 18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18560 (eval $ac_try) 2>&5 18561 ac_status=$? 18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18563 (exit $ac_status); }; } && 18564 { ac_try='test -s conftest$ac_exeext' 18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18566 (eval $ac_try) 2>&5 18567 ac_status=$? 18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18569 (exit $ac_status); }; }; then 18570 ac_cv_func_shl_load=yes 18571else 18572 echo "$as_me: failed program was:" >&5 18573sed 's/^/| /' conftest.$ac_ext >&5 18574 18575ac_cv_func_shl_load=no 18576fi 18577rm -f conftest.err conftest.$ac_objext \ 18578 conftest$ac_exeext conftest.$ac_ext 18579fi 18580echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18581echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18582if test $ac_cv_func_shl_load = yes; then 18583 lt_cv_dlopen="shl_load" 18584else 18585 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18586echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18587if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18588 echo $ECHO_N "(cached) $ECHO_C" >&6 18589else 18590 ac_check_lib_save_LIBS=$LIBS 18591LIBS="-ldld $LIBS" 18592cat >conftest.$ac_ext <<_ACEOF 18593/* confdefs.h. */ 18594_ACEOF 18595cat confdefs.h >>conftest.$ac_ext 18596cat >>conftest.$ac_ext <<_ACEOF 18597/* end confdefs.h. */ 18598 18599/* Override any gcc2 internal prototype to avoid an error. */ 18600#ifdef __cplusplus 18601extern "C" 18602#endif 18603/* We use char because int might match the return type of a gcc2 18604 builtin and then its argument prototype would still apply. */ 18605char shl_load (); 18606int 18607main () 18608{ 18609shl_load (); 18610 ; 18611 return 0; 18612} 18613_ACEOF 18614rm -f conftest.$ac_objext conftest$ac_exeext 18615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18616 (eval $ac_link) 2>conftest.er1 18617 ac_status=$? 18618 grep -v '^ *+' conftest.er1 >conftest.err 18619 rm -f conftest.er1 18620 cat conftest.err >&5 18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18622 (exit $ac_status); } && 18623 { ac_try='test -z "$ac_c_werror_flag" 18624 || test ! -s conftest.err' 18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18626 (eval $ac_try) 2>&5 18627 ac_status=$? 18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18629 (exit $ac_status); }; } && 18630 { ac_try='test -s conftest$ac_exeext' 18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18632 (eval $ac_try) 2>&5 18633 ac_status=$? 18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18635 (exit $ac_status); }; }; then 18636 ac_cv_lib_dld_shl_load=yes 18637else 18638 echo "$as_me: failed program was:" >&5 18639sed 's/^/| /' conftest.$ac_ext >&5 18640 18641ac_cv_lib_dld_shl_load=no 18642fi 18643rm -f conftest.err conftest.$ac_objext \ 18644 conftest$ac_exeext conftest.$ac_ext 18645LIBS=$ac_check_lib_save_LIBS 18646fi 18647echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18648echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18649if test $ac_cv_lib_dld_shl_load = yes; then 18650 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18651else 18652 echo "$as_me:$LINENO: checking for dlopen" >&5 18653echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18654if test "${ac_cv_func_dlopen+set}" = set; then 18655 echo $ECHO_N "(cached) $ECHO_C" >&6 18656else 18657 cat >conftest.$ac_ext <<_ACEOF 18658/* confdefs.h. */ 18659_ACEOF 18660cat confdefs.h >>conftest.$ac_ext 18661cat >>conftest.$ac_ext <<_ACEOF 18662/* end confdefs.h. */ 18663/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18664 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18665#define dlopen innocuous_dlopen 18666 18667/* System header to define __stub macros and hopefully few prototypes, 18668 which can conflict with char dlopen (); below. 18669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18670 <limits.h> exists even on freestanding compilers. */ 18671 18672#ifdef __STDC__ 18673# include <limits.h> 18674#else 18675# include <assert.h> 18676#endif 18677 18678#undef dlopen 18679 18680/* Override any gcc2 internal prototype to avoid an error. */ 18681#ifdef __cplusplus 18682extern "C" 18683{ 18684#endif 18685/* We use char because int might match the return type of a gcc2 18686 builtin and then its argument prototype would still apply. */ 18687char dlopen (); 18688/* The GNU C library defines this for functions which it implements 18689 to always fail with ENOSYS. Some functions are actually named 18690 something starting with __ and the normal name is an alias. */ 18691#if defined (__stub_dlopen) || defined (__stub___dlopen) 18692choke me 18693#else 18694char (*f) () = dlopen; 18695#endif 18696#ifdef __cplusplus 18697} 18698#endif 18699 18700int 18701main () 18702{ 18703return f != dlopen; 18704 ; 18705 return 0; 18706} 18707_ACEOF 18708rm -f conftest.$ac_objext conftest$ac_exeext 18709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18710 (eval $ac_link) 2>conftest.er1 18711 ac_status=$? 18712 grep -v '^ *+' conftest.er1 >conftest.err 18713 rm -f conftest.er1 18714 cat conftest.err >&5 18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18716 (exit $ac_status); } && 18717 { ac_try='test -z "$ac_c_werror_flag" 18718 || test ! -s conftest.err' 18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18720 (eval $ac_try) 2>&5 18721 ac_status=$? 18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18723 (exit $ac_status); }; } && 18724 { ac_try='test -s conftest$ac_exeext' 18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18726 (eval $ac_try) 2>&5 18727 ac_status=$? 18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18729 (exit $ac_status); }; }; then 18730 ac_cv_func_dlopen=yes 18731else 18732 echo "$as_me: failed program was:" >&5 18733sed 's/^/| /' conftest.$ac_ext >&5 18734 18735ac_cv_func_dlopen=no 18736fi 18737rm -f conftest.err conftest.$ac_objext \ 18738 conftest$ac_exeext conftest.$ac_ext 18739fi 18740echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18741echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18742if test $ac_cv_func_dlopen = yes; then 18743 lt_cv_dlopen="dlopen" 18744else 18745 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18746echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18747if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18748 echo $ECHO_N "(cached) $ECHO_C" >&6 18749else 18750 ac_check_lib_save_LIBS=$LIBS 18751LIBS="-ldl $LIBS" 18752cat >conftest.$ac_ext <<_ACEOF 18753/* confdefs.h. */ 18754_ACEOF 18755cat confdefs.h >>conftest.$ac_ext 18756cat >>conftest.$ac_ext <<_ACEOF 18757/* end confdefs.h. */ 18758 18759/* Override any gcc2 internal prototype to avoid an error. */ 18760#ifdef __cplusplus 18761extern "C" 18762#endif 18763/* We use char because int might match the return type of a gcc2 18764 builtin and then its argument prototype would still apply. */ 18765char dlopen (); 18766int 18767main () 18768{ 18769dlopen (); 18770 ; 18771 return 0; 18772} 18773_ACEOF 18774rm -f conftest.$ac_objext conftest$ac_exeext 18775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18776 (eval $ac_link) 2>conftest.er1 18777 ac_status=$? 18778 grep -v '^ *+' conftest.er1 >conftest.err 18779 rm -f conftest.er1 18780 cat conftest.err >&5 18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18782 (exit $ac_status); } && 18783 { ac_try='test -z "$ac_c_werror_flag" 18784 || test ! -s conftest.err' 18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18786 (eval $ac_try) 2>&5 18787 ac_status=$? 18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18789 (exit $ac_status); }; } && 18790 { ac_try='test -s conftest$ac_exeext' 18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18792 (eval $ac_try) 2>&5 18793 ac_status=$? 18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18795 (exit $ac_status); }; }; then 18796 ac_cv_lib_dl_dlopen=yes 18797else 18798 echo "$as_me: failed program was:" >&5 18799sed 's/^/| /' conftest.$ac_ext >&5 18800 18801ac_cv_lib_dl_dlopen=no 18802fi 18803rm -f conftest.err conftest.$ac_objext \ 18804 conftest$ac_exeext conftest.$ac_ext 18805LIBS=$ac_check_lib_save_LIBS 18806fi 18807echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18808echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18809if test $ac_cv_lib_dl_dlopen = yes; then 18810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18811else 18812 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18813echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18814if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18815 echo $ECHO_N "(cached) $ECHO_C" >&6 18816else 18817 ac_check_lib_save_LIBS=$LIBS 18818LIBS="-lsvld $LIBS" 18819cat >conftest.$ac_ext <<_ACEOF 18820/* confdefs.h. */ 18821_ACEOF 18822cat confdefs.h >>conftest.$ac_ext 18823cat >>conftest.$ac_ext <<_ACEOF 18824/* end confdefs.h. */ 18825 18826/* Override any gcc2 internal prototype to avoid an error. */ 18827#ifdef __cplusplus 18828extern "C" 18829#endif 18830/* We use char because int might match the return type of a gcc2 18831 builtin and then its argument prototype would still apply. */ 18832char dlopen (); 18833int 18834main () 18835{ 18836dlopen (); 18837 ; 18838 return 0; 18839} 18840_ACEOF 18841rm -f conftest.$ac_objext conftest$ac_exeext 18842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18843 (eval $ac_link) 2>conftest.er1 18844 ac_status=$? 18845 grep -v '^ *+' conftest.er1 >conftest.err 18846 rm -f conftest.er1 18847 cat conftest.err >&5 18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18849 (exit $ac_status); } && 18850 { ac_try='test -z "$ac_c_werror_flag" 18851 || test ! -s conftest.err' 18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18853 (eval $ac_try) 2>&5 18854 ac_status=$? 18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18856 (exit $ac_status); }; } && 18857 { ac_try='test -s conftest$ac_exeext' 18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18859 (eval $ac_try) 2>&5 18860 ac_status=$? 18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18862 (exit $ac_status); }; }; then 18863 ac_cv_lib_svld_dlopen=yes 18864else 18865 echo "$as_me: failed program was:" >&5 18866sed 's/^/| /' conftest.$ac_ext >&5 18867 18868ac_cv_lib_svld_dlopen=no 18869fi 18870rm -f conftest.err conftest.$ac_objext \ 18871 conftest$ac_exeext conftest.$ac_ext 18872LIBS=$ac_check_lib_save_LIBS 18873fi 18874echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18875echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18876if test $ac_cv_lib_svld_dlopen = yes; then 18877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18878else 18879 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18880echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18881if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18882 echo $ECHO_N "(cached) $ECHO_C" >&6 18883else 18884 ac_check_lib_save_LIBS=$LIBS 18885LIBS="-ldld $LIBS" 18886cat >conftest.$ac_ext <<_ACEOF 18887/* confdefs.h. */ 18888_ACEOF 18889cat confdefs.h >>conftest.$ac_ext 18890cat >>conftest.$ac_ext <<_ACEOF 18891/* end confdefs.h. */ 18892 18893/* Override any gcc2 internal prototype to avoid an error. */ 18894#ifdef __cplusplus 18895extern "C" 18896#endif 18897/* We use char because int might match the return type of a gcc2 18898 builtin and then its argument prototype would still apply. */ 18899char dld_link (); 18900int 18901main () 18902{ 18903dld_link (); 18904 ; 18905 return 0; 18906} 18907_ACEOF 18908rm -f conftest.$ac_objext conftest$ac_exeext 18909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18910 (eval $ac_link) 2>conftest.er1 18911 ac_status=$? 18912 grep -v '^ *+' conftest.er1 >conftest.err 18913 rm -f conftest.er1 18914 cat conftest.err >&5 18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18916 (exit $ac_status); } && 18917 { ac_try='test -z "$ac_c_werror_flag" 18918 || test ! -s conftest.err' 18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18920 (eval $ac_try) 2>&5 18921 ac_status=$? 18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18923 (exit $ac_status); }; } && 18924 { ac_try='test -s conftest$ac_exeext' 18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18926 (eval $ac_try) 2>&5 18927 ac_status=$? 18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18929 (exit $ac_status); }; }; then 18930 ac_cv_lib_dld_dld_link=yes 18931else 18932 echo "$as_me: failed program was:" >&5 18933sed 's/^/| /' conftest.$ac_ext >&5 18934 18935ac_cv_lib_dld_dld_link=no 18936fi 18937rm -f conftest.err conftest.$ac_objext \ 18938 conftest$ac_exeext conftest.$ac_ext 18939LIBS=$ac_check_lib_save_LIBS 18940fi 18941echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18942echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18943if test $ac_cv_lib_dld_dld_link = yes; then 18944 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18945fi 18946 18947 18948fi 18949 18950 18951fi 18952 18953 18954fi 18955 18956 18957fi 18958 18959 18960fi 18961 18962 ;; 18963 esac 18964 18965 if test "x$lt_cv_dlopen" != xno; then 18966 enable_dlopen=yes 18967 else 18968 enable_dlopen=no 18969 fi 18970 18971 case $lt_cv_dlopen in 18972 dlopen) 18973 save_CPPFLAGS="$CPPFLAGS" 18974 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18975 18976 save_LDFLAGS="$LDFLAGS" 18977 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18978 18979 save_LIBS="$LIBS" 18980 LIBS="$lt_cv_dlopen_libs $LIBS" 18981 18982 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18983echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18984if test "${lt_cv_dlopen_self+set}" = set; then 18985 echo $ECHO_N "(cached) $ECHO_C" >&6 18986else 18987 if test "$cross_compiling" = yes; then : 18988 lt_cv_dlopen_self=cross 18989else 18990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18991 lt_status=$lt_dlunknown 18992 cat > conftest.$ac_ext <<EOF 18993#line 18993 "configure" 18994#include "confdefs.h" 18995 18996#if HAVE_DLFCN_H 18997#include <dlfcn.h> 18998#endif 18999 19000#include <stdio.h> 19001 19002#ifdef RTLD_GLOBAL 19003# define LT_DLGLOBAL RTLD_GLOBAL 19004#else 19005# ifdef DL_GLOBAL 19006# define LT_DLGLOBAL DL_GLOBAL 19007# else 19008# define LT_DLGLOBAL 0 19009# endif 19010#endif 19011 19012/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19013 find out it does not work in some platform. */ 19014#ifndef LT_DLLAZY_OR_NOW 19015# ifdef RTLD_LAZY 19016# define LT_DLLAZY_OR_NOW RTLD_LAZY 19017# else 19018# ifdef DL_LAZY 19019# define LT_DLLAZY_OR_NOW DL_LAZY 19020# else 19021# ifdef RTLD_NOW 19022# define LT_DLLAZY_OR_NOW RTLD_NOW 19023# else 19024# ifdef DL_NOW 19025# define LT_DLLAZY_OR_NOW DL_NOW 19026# else 19027# define LT_DLLAZY_OR_NOW 0 19028# endif 19029# endif 19030# endif 19031# endif 19032#endif 19033 19034#ifdef __cplusplus 19035extern "C" void exit (int); 19036#endif 19037 19038void fnord() { int i=42;} 19039int main () 19040{ 19041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19042 int status = $lt_dlunknown; 19043 19044 if (self) 19045 { 19046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19047 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19048 /* dlclose (self); */ 19049 } 19050 19051 exit (status); 19052} 19053EOF 19054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19055 (eval $ac_link) 2>&5 19056 ac_status=$? 19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19058 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 19059 (./conftest; exit; ) >&5 2>/dev/null 19060 lt_status=$? 19061 case x$lt_status in 19062 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19063 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19064 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 19065 esac 19066 else : 19067 # compilation failed 19068 lt_cv_dlopen_self=no 19069 fi 19070fi 19071rm -fr conftest* 19072 19073 19074fi 19075echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 19076echo "${ECHO_T}$lt_cv_dlopen_self" >&6 19077 19078 if test "x$lt_cv_dlopen_self" = xyes; then 19079 LDFLAGS="$LDFLAGS $link_static_flag" 19080 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 19081echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 19082if test "${lt_cv_dlopen_self_static+set}" = set; then 19083 echo $ECHO_N "(cached) $ECHO_C" >&6 19084else 19085 if test "$cross_compiling" = yes; then : 19086 lt_cv_dlopen_self_static=cross 19087else 19088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19089 lt_status=$lt_dlunknown 19090 cat > conftest.$ac_ext <<EOF 19091#line 19091 "configure" 19092#include "confdefs.h" 19093 19094#if HAVE_DLFCN_H 19095#include <dlfcn.h> 19096#endif 19097 19098#include <stdio.h> 19099 19100#ifdef RTLD_GLOBAL 19101# define LT_DLGLOBAL RTLD_GLOBAL 19102#else 19103# ifdef DL_GLOBAL 19104# define LT_DLGLOBAL DL_GLOBAL 19105# else 19106# define LT_DLGLOBAL 0 19107# endif 19108#endif 19109 19110/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19111 find out it does not work in some platform. */ 19112#ifndef LT_DLLAZY_OR_NOW 19113# ifdef RTLD_LAZY 19114# define LT_DLLAZY_OR_NOW RTLD_LAZY 19115# else 19116# ifdef DL_LAZY 19117# define LT_DLLAZY_OR_NOW DL_LAZY 19118# else 19119# ifdef RTLD_NOW 19120# define LT_DLLAZY_OR_NOW RTLD_NOW 19121# else 19122# ifdef DL_NOW 19123# define LT_DLLAZY_OR_NOW DL_NOW 19124# else 19125# define LT_DLLAZY_OR_NOW 0 19126# endif 19127# endif 19128# endif 19129# endif 19130#endif 19131 19132#ifdef __cplusplus 19133extern "C" void exit (int); 19134#endif 19135 19136void fnord() { int i=42;} 19137int main () 19138{ 19139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19140 int status = $lt_dlunknown; 19141 19142 if (self) 19143 { 19144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19145 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19146 /* dlclose (self); */ 19147 } 19148 19149 exit (status); 19150} 19151EOF 19152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19153 (eval $ac_link) 2>&5 19154 ac_status=$? 19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19156 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 19157 (./conftest; exit; ) >&5 2>/dev/null 19158 lt_status=$? 19159 case x$lt_status in 19160 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19161 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19162 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 19163 esac 19164 else : 19165 # compilation failed 19166 lt_cv_dlopen_self_static=no 19167 fi 19168fi 19169rm -fr conftest* 19170 19171 19172fi 19173echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 19174echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 19175 fi 19176 19177 CPPFLAGS="$save_CPPFLAGS" 19178 LDFLAGS="$save_LDFLAGS" 19179 LIBS="$save_LIBS" 19180 ;; 19181 esac 19182 19183 case $lt_cv_dlopen_self in 19184 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19185 *) enable_dlopen_self=unknown ;; 19186 esac 19187 19188 case $lt_cv_dlopen_self_static in 19189 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19190 *) enable_dlopen_self_static=unknown ;; 19191 esac 19192fi 19193 19194 19195# The else clause should only fire when bootstrapping the 19196# libtool distribution, otherwise you forgot to ship ltmain.sh 19197# with your package, and you will get complaints that there are 19198# no rules to generate ltmain.sh. 19199if test -f "$ltmain"; then 19200 # See if we are running on zsh, and set the options which allow our commands through 19201 # without removal of \ escapes. 19202 if test -n "${ZSH_VERSION+set}" ; then 19203 setopt NO_GLOB_SUBST 19204 fi 19205 # Now quote all the things that may contain metacharacters while being 19206 # careful not to overquote the AC_SUBSTed values. We take copies of the 19207 # variables and quote the copies for generation of the libtool script. 19208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19209 SED SHELL STRIP \ 19210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19212 deplibs_check_method reload_flag reload_cmds need_locks \ 19213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19214 lt_cv_sys_global_symbol_to_c_name_address \ 19215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19216 old_postinstall_cmds old_postuninstall_cmds \ 19217 compiler_GCJ \ 19218 CC_GCJ \ 19219 LD_GCJ \ 19220 lt_prog_compiler_wl_GCJ \ 19221 lt_prog_compiler_pic_GCJ \ 19222 lt_prog_compiler_static_GCJ \ 19223 lt_prog_compiler_no_builtin_flag_GCJ \ 19224 export_dynamic_flag_spec_GCJ \ 19225 thread_safe_flag_spec_GCJ \ 19226 whole_archive_flag_spec_GCJ \ 19227 enable_shared_with_static_runtimes_GCJ \ 19228 old_archive_cmds_GCJ \ 19229 old_archive_from_new_cmds_GCJ \ 19230 predep_objects_GCJ \ 19231 postdep_objects_GCJ \ 19232 predeps_GCJ \ 19233 postdeps_GCJ \ 19234 compiler_lib_search_path_GCJ \ 19235 archive_cmds_GCJ \ 19236 archive_expsym_cmds_GCJ \ 19237 postinstall_cmds_GCJ \ 19238 postuninstall_cmds_GCJ \ 19239 old_archive_from_expsyms_cmds_GCJ \ 19240 allow_undefined_flag_GCJ \ 19241 no_undefined_flag_GCJ \ 19242 export_symbols_cmds_GCJ \ 19243 hardcode_libdir_flag_spec_GCJ \ 19244 hardcode_libdir_flag_spec_ld_GCJ \ 19245 hardcode_libdir_separator_GCJ \ 19246 hardcode_automatic_GCJ \ 19247 module_cmds_GCJ \ 19248 module_expsym_cmds_GCJ \ 19249 lt_cv_prog_compiler_c_o_GCJ \ 19250 exclude_expsyms_GCJ \ 19251 include_expsyms_GCJ; do 19252 19253 case $var in 19254 old_archive_cmds_GCJ | \ 19255 old_archive_from_new_cmds_GCJ | \ 19256 archive_cmds_GCJ | \ 19257 archive_expsym_cmds_GCJ | \ 19258 module_cmds_GCJ | \ 19259 module_expsym_cmds_GCJ | \ 19260 old_archive_from_expsyms_cmds_GCJ | \ 19261 export_symbols_cmds_GCJ | \ 19262 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19263 postinstall_cmds | postuninstall_cmds | \ 19264 old_postinstall_cmds | old_postuninstall_cmds | \ 19265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19266 # Double-quote double-evaled strings. 19267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19268 ;; 19269 *) 19270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19271 ;; 19272 esac 19273 done 19274 19275 case $lt_echo in 19276 *'\$0 --fallback-echo"') 19277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19278 ;; 19279 esac 19280 19281cfgfile="$ofile" 19282 19283 cat <<__EOF__ >> "$cfgfile" 19284# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19285 19286# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19287 19288# Shell to use when invoking shell scripts. 19289SHELL=$lt_SHELL 19290 19291# Whether or not to build shared libraries. 19292build_libtool_libs=$enable_shared 19293 19294# Whether or not to build static libraries. 19295build_old_libs=$enable_static 19296 19297# Whether or not to add -lc for building shared libraries. 19298build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19299 19300# Whether or not to disallow shared libs when runtime libs are static 19301allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19302 19303# Whether or not to optimize for fast installation. 19304fast_install=$enable_fast_install 19305 19306# The host system. 19307host_alias=$host_alias 19308host=$host 19309host_os=$host_os 19310 19311# The build system. 19312build_alias=$build_alias 19313build=$build 19314build_os=$build_os 19315 19316# An echo program that does not interpret backslashes. 19317echo=$lt_echo 19318 19319# The archiver. 19320AR=$lt_AR 19321AR_FLAGS=$lt_AR_FLAGS 19322 19323# A C compiler. 19324LTCC=$lt_LTCC 19325 19326# A language-specific compiler. 19327CC=$lt_compiler_GCJ 19328 19329# Is the compiler the GNU C compiler? 19330with_gcc=$GCC_GCJ 19331 19332# An ERE matcher. 19333EGREP=$lt_EGREP 19334 19335# The linker used to build libraries. 19336LD=$lt_LD_GCJ 19337 19338# Whether we need hard or soft links. 19339LN_S=$lt_LN_S 19340 19341# A BSD-compatible nm program. 19342NM=$lt_NM 19343 19344# A symbol stripping program 19345STRIP=$lt_STRIP 19346 19347# Used to examine libraries when file_magic_cmd begins "file" 19348MAGIC_CMD=$MAGIC_CMD 19349 19350# Used on cygwin: DLL creation program. 19351DLLTOOL="$DLLTOOL" 19352 19353# Used on cygwin: object dumper. 19354OBJDUMP="$OBJDUMP" 19355 19356# Used on cygwin: assembler. 19357AS="$AS" 19358 19359# The name of the directory that contains temporary libtool files. 19360objdir=$objdir 19361 19362# How to create reloadable object files. 19363reload_flag=$lt_reload_flag 19364reload_cmds=$lt_reload_cmds 19365 19366# How to pass a linker flag through the compiler. 19367wl=$lt_lt_prog_compiler_wl_GCJ 19368 19369# Object file suffix (normally "o"). 19370objext="$ac_objext" 19371 19372# Old archive suffix (normally "a"). 19373libext="$libext" 19374 19375# Shared library suffix (normally ".so"). 19376shrext_cmds='$shrext_cmds' 19377 19378# Executable file suffix (normally ""). 19379exeext="$exeext" 19380 19381# Additional compiler flags for building library objects. 19382pic_flag=$lt_lt_prog_compiler_pic_GCJ 19383pic_mode=$pic_mode 19384 19385# What is the maximum length of a command? 19386max_cmd_len=$lt_cv_sys_max_cmd_len 19387 19388# Does compiler simultaneously support -c and -o options? 19389compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19390 19391# Must we lock files when doing compilation? 19392need_locks=$lt_need_locks 19393 19394# Do we need the lib prefix for modules? 19395need_lib_prefix=$need_lib_prefix 19396 19397# Do we need a version for libraries? 19398need_version=$need_version 19399 19400# Whether dlopen is supported. 19401dlopen_support=$enable_dlopen 19402 19403# Whether dlopen of programs is supported. 19404dlopen_self=$enable_dlopen_self 19405 19406# Whether dlopen of statically linked programs is supported. 19407dlopen_self_static=$enable_dlopen_self_static 19408 19409# Compiler flag to prevent dynamic linking. 19410link_static_flag=$lt_lt_prog_compiler_static_GCJ 19411 19412# Compiler flag to turn off builtin functions. 19413no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19414 19415# Compiler flag to allow reflexive dlopens. 19416export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19417 19418# Compiler flag to generate shared objects directly from archives. 19419whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19420 19421# Compiler flag to generate thread-safe objects. 19422thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19423 19424# Library versioning type. 19425version_type=$version_type 19426 19427# Format of library name prefix. 19428libname_spec=$lt_libname_spec 19429 19430# List of archive names. First name is the real one, the rest are links. 19431# The last name is the one that the linker finds with -lNAME. 19432library_names_spec=$lt_library_names_spec 19433 19434# The coded name of the library, if different from the real name. 19435soname_spec=$lt_soname_spec 19436 19437# Commands used to build and install an old-style archive. 19438RANLIB=$lt_RANLIB 19439old_archive_cmds=$lt_old_archive_cmds_GCJ 19440old_postinstall_cmds=$lt_old_postinstall_cmds 19441old_postuninstall_cmds=$lt_old_postuninstall_cmds 19442 19443# Create an old-style archive from a shared archive. 19444old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19445 19446# Create a temporary old-style archive to link instead of a shared archive. 19447old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19448 19449# Commands used to build and install a shared archive. 19450archive_cmds=$lt_archive_cmds_GCJ 19451archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19452postinstall_cmds=$lt_postinstall_cmds 19453postuninstall_cmds=$lt_postuninstall_cmds 19454 19455# Commands used to build a loadable module (assumed same as above if empty) 19456module_cmds=$lt_module_cmds_GCJ 19457module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19458 19459# Commands to strip libraries. 19460old_striplib=$lt_old_striplib 19461striplib=$lt_striplib 19462 19463# Dependencies to place before the objects being linked to create a 19464# shared library. 19465predep_objects=$lt_predep_objects_GCJ 19466 19467# Dependencies to place after the objects being linked to create a 19468# shared library. 19469postdep_objects=$lt_postdep_objects_GCJ 19470 19471# Dependencies to place before the objects being linked to create a 19472# shared library. 19473predeps=$lt_predeps_GCJ 19474 19475# Dependencies to place after the objects being linked to create a 19476# shared library. 19477postdeps=$lt_postdeps_GCJ 19478 19479# The library search path used internally by the compiler when linking 19480# a shared library. 19481compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19482 19483# Method to check whether dependent libraries are shared objects. 19484deplibs_check_method=$lt_deplibs_check_method 19485 19486# Command to use when deplibs_check_method == file_magic. 19487file_magic_cmd=$lt_file_magic_cmd 19488 19489# Flag that allows shared libraries with undefined symbols to be built. 19490allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19491 19492# Flag that forces no undefined symbols. 19493no_undefined_flag=$lt_no_undefined_flag_GCJ 19494 19495# Commands used to finish a libtool library installation in a directory. 19496finish_cmds=$lt_finish_cmds 19497 19498# Same as above, but a single script fragment to be evaled but not shown. 19499finish_eval=$lt_finish_eval 19500 19501# Take the output of nm and produce a listing of raw symbols and C names. 19502global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19503 19504# Transform the output of nm in a proper C declaration 19505global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19506 19507# Transform the output of nm in a C name address pair 19508global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19509 19510# This is the shared library runtime path variable. 19511runpath_var=$runpath_var 19512 19513# This is the shared library path variable. 19514shlibpath_var=$shlibpath_var 19515 19516# Is shlibpath searched before the hard-coded library search path? 19517shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19518 19519# How to hardcode a shared library path into an executable. 19520hardcode_action=$hardcode_action_GCJ 19521 19522# Whether we should hardcode library paths into libraries. 19523hardcode_into_libs=$hardcode_into_libs 19524 19525# Flag to hardcode \$libdir into a binary during linking. 19526# This must work even if \$libdir does not exist. 19527hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19528 19529# If ld is used when linking, flag to hardcode \$libdir into 19530# a binary during linking. This must work even if \$libdir does 19531# not exist. 19532hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19533 19534# Whether we need a single -rpath flag with a separated argument. 19535hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19536 19537# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19538# resulting binary. 19539hardcode_direct=$hardcode_direct_GCJ 19540 19541# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19542# resulting binary. 19543hardcode_minus_L=$hardcode_minus_L_GCJ 19544 19545# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19546# the resulting binary. 19547hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19548 19549# Set to yes if building a shared library automatically hardcodes DIR into the library 19550# and all subsequent libraries and executables linked against it. 19551hardcode_automatic=$hardcode_automatic_GCJ 19552 19553# Variables whose values should be saved in libtool wrapper scripts and 19554# restored at relink time. 19555variables_saved_for_relink="$variables_saved_for_relink" 19556 19557# Whether libtool must link a program against all its dependency libraries. 19558link_all_deplibs=$link_all_deplibs_GCJ 19559 19560# Compile-time system search path for libraries 19561sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19562 19563# Run-time system search path for libraries 19564sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19565 19566# Fix the shell variable \$srcfile for the compiler. 19567fix_srcfile_path="$fix_srcfile_path_GCJ" 19568 19569# Set to yes if exported symbols are required. 19570always_export_symbols=$always_export_symbols_GCJ 19571 19572# The commands to list exported symbols. 19573export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19574 19575# The commands to extract the exported symbol list from a shared archive. 19576extract_expsyms_cmds=$lt_extract_expsyms_cmds 19577 19578# Symbols that should not be listed in the preloaded symbols. 19579exclude_expsyms=$lt_exclude_expsyms_GCJ 19580 19581# Symbols that must always be exported. 19582include_expsyms=$lt_include_expsyms_GCJ 19583 19584# ### END LIBTOOL TAG CONFIG: $tagname 19585 19586__EOF__ 19587 19588 19589else 19590 # If there is no Makefile yet, we rely on a make rule to execute 19591 # `config.status --recheck' to rerun these tests and create the 19592 # libtool script then. 19593 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19594 if test -f "$ltmain_in"; then 19595 test -f Makefile && make "$ltmain" 19596 fi 19597fi 19598 19599 19600ac_ext=c 19601ac_cpp='$CPP $CPPFLAGS' 19602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19604ac_compiler_gnu=$ac_cv_c_compiler_gnu 19605 19606CC="$lt_save_CC" 19607 19608 else 19609 tagname="" 19610 fi 19611 ;; 19612 19613 RC) 19614 19615 19616 19617# Source file extension for RC test sources. 19618ac_ext=rc 19619 19620# Object file extension for compiled RC test sources. 19621objext=o 19622objext_RC=$objext 19623 19624# Code to be used in simple compile tests 19625lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19626 19627# Code to be used in simple link tests 19628lt_simple_link_test_code="$lt_simple_compile_test_code" 19629 19630# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19631 19632# If no C compiler was specified, use CC. 19633LTCC=${LTCC-"$CC"} 19634 19635# Allow CC to be a program name with arguments. 19636compiler=$CC 19637 19638 19639# save warnings/boilerplate of simple test code 19640ac_outfile=conftest.$ac_objext 19641printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19642eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19643_lt_compiler_boilerplate=`cat conftest.err` 19644$rm conftest* 19645 19646ac_outfile=conftest.$ac_objext 19647printf "$lt_simple_link_test_code" >conftest.$ac_ext 19648eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19649_lt_linker_boilerplate=`cat conftest.err` 19650$rm conftest* 19651 19652 19653# Allow CC to be a program name with arguments. 19654lt_save_CC="$CC" 19655CC=${RC-"windres"} 19656compiler=$CC 19657compiler_RC=$CC 19658for cc_temp in $compiler""; do 19659 case $cc_temp in 19660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19662 \-*) ;; 19663 *) break;; 19664 esac 19665done 19666cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19667 19668lt_cv_prog_compiler_c_o_RC=yes 19669 19670# The else clause should only fire when bootstrapping the 19671# libtool distribution, otherwise you forgot to ship ltmain.sh 19672# with your package, and you will get complaints that there are 19673# no rules to generate ltmain.sh. 19674if test -f "$ltmain"; then 19675 # See if we are running on zsh, and set the options which allow our commands through 19676 # without removal of \ escapes. 19677 if test -n "${ZSH_VERSION+set}" ; then 19678 setopt NO_GLOB_SUBST 19679 fi 19680 # Now quote all the things that may contain metacharacters while being 19681 # careful not to overquote the AC_SUBSTed values. We take copies of the 19682 # variables and quote the copies for generation of the libtool script. 19683 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19684 SED SHELL STRIP \ 19685 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19686 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19687 deplibs_check_method reload_flag reload_cmds need_locks \ 19688 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19689 lt_cv_sys_global_symbol_to_c_name_address \ 19690 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19691 old_postinstall_cmds old_postuninstall_cmds \ 19692 compiler_RC \ 19693 CC_RC \ 19694 LD_RC \ 19695 lt_prog_compiler_wl_RC \ 19696 lt_prog_compiler_pic_RC \ 19697 lt_prog_compiler_static_RC \ 19698 lt_prog_compiler_no_builtin_flag_RC \ 19699 export_dynamic_flag_spec_RC \ 19700 thread_safe_flag_spec_RC \ 19701 whole_archive_flag_spec_RC \ 19702 enable_shared_with_static_runtimes_RC \ 19703 old_archive_cmds_RC \ 19704 old_archive_from_new_cmds_RC \ 19705 predep_objects_RC \ 19706 postdep_objects_RC \ 19707 predeps_RC \ 19708 postdeps_RC \ 19709 compiler_lib_search_path_RC \ 19710 archive_cmds_RC \ 19711 archive_expsym_cmds_RC \ 19712 postinstall_cmds_RC \ 19713 postuninstall_cmds_RC \ 19714 old_archive_from_expsyms_cmds_RC \ 19715 allow_undefined_flag_RC \ 19716 no_undefined_flag_RC \ 19717 export_symbols_cmds_RC \ 19718 hardcode_libdir_flag_spec_RC \ 19719 hardcode_libdir_flag_spec_ld_RC \ 19720 hardcode_libdir_separator_RC \ 19721 hardcode_automatic_RC \ 19722 module_cmds_RC \ 19723 module_expsym_cmds_RC \ 19724 lt_cv_prog_compiler_c_o_RC \ 19725 exclude_expsyms_RC \ 19726 include_expsyms_RC; do 19727 19728 case $var in 19729 old_archive_cmds_RC | \ 19730 old_archive_from_new_cmds_RC | \ 19731 archive_cmds_RC | \ 19732 archive_expsym_cmds_RC | \ 19733 module_cmds_RC | \ 19734 module_expsym_cmds_RC | \ 19735 old_archive_from_expsyms_cmds_RC | \ 19736 export_symbols_cmds_RC | \ 19737 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19738 postinstall_cmds | postuninstall_cmds | \ 19739 old_postinstall_cmds | old_postuninstall_cmds | \ 19740 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19741 # Double-quote double-evaled strings. 19742 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19743 ;; 19744 *) 19745 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19746 ;; 19747 esac 19748 done 19749 19750 case $lt_echo in 19751 *'\$0 --fallback-echo"') 19752 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19753 ;; 19754 esac 19755 19756cfgfile="$ofile" 19757 19758 cat <<__EOF__ >> "$cfgfile" 19759# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19760 19761# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19762 19763# Shell to use when invoking shell scripts. 19764SHELL=$lt_SHELL 19765 19766# Whether or not to build shared libraries. 19767build_libtool_libs=$enable_shared 19768 19769# Whether or not to build static libraries. 19770build_old_libs=$enable_static 19771 19772# Whether or not to add -lc for building shared libraries. 19773build_libtool_need_lc=$archive_cmds_need_lc_RC 19774 19775# Whether or not to disallow shared libs when runtime libs are static 19776allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19777 19778# Whether or not to optimize for fast installation. 19779fast_install=$enable_fast_install 19780 19781# The host system. 19782host_alias=$host_alias 19783host=$host 19784host_os=$host_os 19785 19786# The build system. 19787build_alias=$build_alias 19788build=$build 19789build_os=$build_os 19790 19791# An echo program that does not interpret backslashes. 19792echo=$lt_echo 19793 19794# The archiver. 19795AR=$lt_AR 19796AR_FLAGS=$lt_AR_FLAGS 19797 19798# A C compiler. 19799LTCC=$lt_LTCC 19800 19801# A language-specific compiler. 19802CC=$lt_compiler_RC 19803 19804# Is the compiler the GNU C compiler? 19805with_gcc=$GCC_RC 19806 19807# An ERE matcher. 19808EGREP=$lt_EGREP 19809 19810# The linker used to build libraries. 19811LD=$lt_LD_RC 19812 19813# Whether we need hard or soft links. 19814LN_S=$lt_LN_S 19815 19816# A BSD-compatible nm program. 19817NM=$lt_NM 19818 19819# A symbol stripping program 19820STRIP=$lt_STRIP 19821 19822# Used to examine libraries when file_magic_cmd begins "file" 19823MAGIC_CMD=$MAGIC_CMD 19824 19825# Used on cygwin: DLL creation program. 19826DLLTOOL="$DLLTOOL" 19827 19828# Used on cygwin: object dumper. 19829OBJDUMP="$OBJDUMP" 19830 19831# Used on cygwin: assembler. 19832AS="$AS" 19833 19834# The name of the directory that contains temporary libtool files. 19835objdir=$objdir 19836 19837# How to create reloadable object files. 19838reload_flag=$lt_reload_flag 19839reload_cmds=$lt_reload_cmds 19840 19841# How to pass a linker flag through the compiler. 19842wl=$lt_lt_prog_compiler_wl_RC 19843 19844# Object file suffix (normally "o"). 19845objext="$ac_objext" 19846 19847# Old archive suffix (normally "a"). 19848libext="$libext" 19849 19850# Shared library suffix (normally ".so"). 19851shrext_cmds='$shrext_cmds' 19852 19853# Executable file suffix (normally ""). 19854exeext="$exeext" 19855 19856# Additional compiler flags for building library objects. 19857pic_flag=$lt_lt_prog_compiler_pic_RC 19858pic_mode=$pic_mode 19859 19860# What is the maximum length of a command? 19861max_cmd_len=$lt_cv_sys_max_cmd_len 19862 19863# Does compiler simultaneously support -c and -o options? 19864compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19865 19866# Must we lock files when doing compilation? 19867need_locks=$lt_need_locks 19868 19869# Do we need the lib prefix for modules? 19870need_lib_prefix=$need_lib_prefix 19871 19872# Do we need a version for libraries? 19873need_version=$need_version 19874 19875# Whether dlopen is supported. 19876dlopen_support=$enable_dlopen 19877 19878# Whether dlopen of programs is supported. 19879dlopen_self=$enable_dlopen_self 19880 19881# Whether dlopen of statically linked programs is supported. 19882dlopen_self_static=$enable_dlopen_self_static 19883 19884# Compiler flag to prevent dynamic linking. 19885link_static_flag=$lt_lt_prog_compiler_static_RC 19886 19887# Compiler flag to turn off builtin functions. 19888no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19889 19890# Compiler flag to allow reflexive dlopens. 19891export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19892 19893# Compiler flag to generate shared objects directly from archives. 19894whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19895 19896# Compiler flag to generate thread-safe objects. 19897thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19898 19899# Library versioning type. 19900version_type=$version_type 19901 19902# Format of library name prefix. 19903libname_spec=$lt_libname_spec 19904 19905# List of archive names. First name is the real one, the rest are links. 19906# The last name is the one that the linker finds with -lNAME. 19907library_names_spec=$lt_library_names_spec 19908 19909# The coded name of the library, if different from the real name. 19910soname_spec=$lt_soname_spec 19911 19912# Commands used to build and install an old-style archive. 19913RANLIB=$lt_RANLIB 19914old_archive_cmds=$lt_old_archive_cmds_RC 19915old_postinstall_cmds=$lt_old_postinstall_cmds 19916old_postuninstall_cmds=$lt_old_postuninstall_cmds 19917 19918# Create an old-style archive from a shared archive. 19919old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19920 19921# Create a temporary old-style archive to link instead of a shared archive. 19922old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19923 19924# Commands used to build and install a shared archive. 19925archive_cmds=$lt_archive_cmds_RC 19926archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19927postinstall_cmds=$lt_postinstall_cmds 19928postuninstall_cmds=$lt_postuninstall_cmds 19929 19930# Commands used to build a loadable module (assumed same as above if empty) 19931module_cmds=$lt_module_cmds_RC 19932module_expsym_cmds=$lt_module_expsym_cmds_RC 19933 19934# Commands to strip libraries. 19935old_striplib=$lt_old_striplib 19936striplib=$lt_striplib 19937 19938# Dependencies to place before the objects being linked to create a 19939# shared library. 19940predep_objects=$lt_predep_objects_RC 19941 19942# Dependencies to place after the objects being linked to create a 19943# shared library. 19944postdep_objects=$lt_postdep_objects_RC 19945 19946# Dependencies to place before the objects being linked to create a 19947# shared library. 19948predeps=$lt_predeps_RC 19949 19950# Dependencies to place after the objects being linked to create a 19951# shared library. 19952postdeps=$lt_postdeps_RC 19953 19954# The library search path used internally by the compiler when linking 19955# a shared library. 19956compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19957 19958# Method to check whether dependent libraries are shared objects. 19959deplibs_check_method=$lt_deplibs_check_method 19960 19961# Command to use when deplibs_check_method == file_magic. 19962file_magic_cmd=$lt_file_magic_cmd 19963 19964# Flag that allows shared libraries with undefined symbols to be built. 19965allow_undefined_flag=$lt_allow_undefined_flag_RC 19966 19967# Flag that forces no undefined symbols. 19968no_undefined_flag=$lt_no_undefined_flag_RC 19969 19970# Commands used to finish a libtool library installation in a directory. 19971finish_cmds=$lt_finish_cmds 19972 19973# Same as above, but a single script fragment to be evaled but not shown. 19974finish_eval=$lt_finish_eval 19975 19976# Take the output of nm and produce a listing of raw symbols and C names. 19977global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19978 19979# Transform the output of nm in a proper C declaration 19980global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19981 19982# Transform the output of nm in a C name address pair 19983global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19984 19985# This is the shared library runtime path variable. 19986runpath_var=$runpath_var 19987 19988# This is the shared library path variable. 19989shlibpath_var=$shlibpath_var 19990 19991# Is shlibpath searched before the hard-coded library search path? 19992shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19993 19994# How to hardcode a shared library path into an executable. 19995hardcode_action=$hardcode_action_RC 19996 19997# Whether we should hardcode library paths into libraries. 19998hardcode_into_libs=$hardcode_into_libs 19999 20000# Flag to hardcode \$libdir into a binary during linking. 20001# This must work even if \$libdir does not exist. 20002hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20003 20004# If ld is used when linking, flag to hardcode \$libdir into 20005# a binary during linking. This must work even if \$libdir does 20006# not exist. 20007hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20008 20009# Whether we need a single -rpath flag with a separated argument. 20010hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20011 20012# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20013# resulting binary. 20014hardcode_direct=$hardcode_direct_RC 20015 20016# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20017# resulting binary. 20018hardcode_minus_L=$hardcode_minus_L_RC 20019 20020# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20021# the resulting binary. 20022hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20023 20024# Set to yes if building a shared library automatically hardcodes DIR into the library 20025# and all subsequent libraries and executables linked against it. 20026hardcode_automatic=$hardcode_automatic_RC 20027 20028# Variables whose values should be saved in libtool wrapper scripts and 20029# restored at relink time. 20030variables_saved_for_relink="$variables_saved_for_relink" 20031 20032# Whether libtool must link a program against all its dependency libraries. 20033link_all_deplibs=$link_all_deplibs_RC 20034 20035# Compile-time system search path for libraries 20036sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20037 20038# Run-time system search path for libraries 20039sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20040 20041# Fix the shell variable \$srcfile for the compiler. 20042fix_srcfile_path="$fix_srcfile_path_RC" 20043 20044# Set to yes if exported symbols are required. 20045always_export_symbols=$always_export_symbols_RC 20046 20047# The commands to list exported symbols. 20048export_symbols_cmds=$lt_export_symbols_cmds_RC 20049 20050# The commands to extract the exported symbol list from a shared archive. 20051extract_expsyms_cmds=$lt_extract_expsyms_cmds 20052 20053# Symbols that should not be listed in the preloaded symbols. 20054exclude_expsyms=$lt_exclude_expsyms_RC 20055 20056# Symbols that must always be exported. 20057include_expsyms=$lt_include_expsyms_RC 20058 20059# ### END LIBTOOL TAG CONFIG: $tagname 20060 20061__EOF__ 20062 20063 20064else 20065 # If there is no Makefile yet, we rely on a make rule to execute 20066 # `config.status --recheck' to rerun these tests and create the 20067 # libtool script then. 20068 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20069 if test -f "$ltmain_in"; then 20070 test -f Makefile && make "$ltmain" 20071 fi 20072fi 20073 20074 20075ac_ext=c 20076ac_cpp='$CPP $CPPFLAGS' 20077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20079ac_compiler_gnu=$ac_cv_c_compiler_gnu 20080 20081CC="$lt_save_CC" 20082 20083 ;; 20084 20085 *) 20086 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20087echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20088 { (exit 1); exit 1; }; } 20089 ;; 20090 esac 20091 20092 # Append the new tag name to the list of available tags. 20093 if test -n "$tagname" ; then 20094 available_tags="$available_tags $tagname" 20095 fi 20096 fi 20097 done 20098 IFS="$lt_save_ifs" 20099 20100 # Now substitute the updated list of available tags. 20101 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20102 mv "${ofile}T" "$ofile" 20103 chmod +x "$ofile" 20104 else 20105 rm -f "${ofile}T" 20106 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20107echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20108 { (exit 1); exit 1; }; } 20109 fi 20110fi 20111 20112 20113 20114# This can be used to rebuild libtool when needed 20115LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20116 20117# Always use our own libtool. 20118LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20119 20120# Prevent multiple expansion 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143########################################################################## 20144## ## 20145## Check for standard header files ## 20146## ## 20147########################################################################## 20148echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20149echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 20150if test "${ac_cv_header_stdc+set}" = set; then 20151 echo $ECHO_N "(cached) $ECHO_C" >&6 20152else 20153 cat >conftest.$ac_ext <<_ACEOF 20154/* confdefs.h. */ 20155_ACEOF 20156cat confdefs.h >>conftest.$ac_ext 20157cat >>conftest.$ac_ext <<_ACEOF 20158/* end confdefs.h. */ 20159#include <stdlib.h> 20160#include <stdarg.h> 20161#include <string.h> 20162#include <float.h> 20163 20164int 20165main () 20166{ 20167 20168 ; 20169 return 0; 20170} 20171_ACEOF 20172rm -f conftest.$ac_objext 20173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20174 (eval $ac_compile) 2>conftest.er1 20175 ac_status=$? 20176 grep -v '^ *+' conftest.er1 >conftest.err 20177 rm -f conftest.er1 20178 cat conftest.err >&5 20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20180 (exit $ac_status); } && 20181 { ac_try='test -z "$ac_c_werror_flag" 20182 || test ! -s conftest.err' 20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20184 (eval $ac_try) 2>&5 20185 ac_status=$? 20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20187 (exit $ac_status); }; } && 20188 { ac_try='test -s conftest.$ac_objext' 20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20190 (eval $ac_try) 2>&5 20191 ac_status=$? 20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20193 (exit $ac_status); }; }; then 20194 ac_cv_header_stdc=yes 20195else 20196 echo "$as_me: failed program was:" >&5 20197sed 's/^/| /' conftest.$ac_ext >&5 20198 20199ac_cv_header_stdc=no 20200fi 20201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20202 20203if test $ac_cv_header_stdc = yes; then 20204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20205 cat >conftest.$ac_ext <<_ACEOF 20206/* confdefs.h. */ 20207_ACEOF 20208cat confdefs.h >>conftest.$ac_ext 20209cat >>conftest.$ac_ext <<_ACEOF 20210/* end confdefs.h. */ 20211#include <string.h> 20212 20213_ACEOF 20214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20215 $EGREP "memchr" >/dev/null 2>&1; then 20216 : 20217else 20218 ac_cv_header_stdc=no 20219fi 20220rm -f conftest* 20221 20222fi 20223 20224if test $ac_cv_header_stdc = yes; then 20225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20226 cat >conftest.$ac_ext <<_ACEOF 20227/* confdefs.h. */ 20228_ACEOF 20229cat confdefs.h >>conftest.$ac_ext 20230cat >>conftest.$ac_ext <<_ACEOF 20231/* end confdefs.h. */ 20232#include <stdlib.h> 20233 20234_ACEOF 20235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20236 $EGREP "free" >/dev/null 2>&1; then 20237 : 20238else 20239 ac_cv_header_stdc=no 20240fi 20241rm -f conftest* 20242 20243fi 20244 20245if test $ac_cv_header_stdc = yes; then 20246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20247 if test "$cross_compiling" = yes; then 20248 : 20249else 20250 cat >conftest.$ac_ext <<_ACEOF 20251/* confdefs.h. */ 20252_ACEOF 20253cat confdefs.h >>conftest.$ac_ext 20254cat >>conftest.$ac_ext <<_ACEOF 20255/* end confdefs.h. */ 20256#include <ctype.h> 20257#if ((' ' & 0x0FF) == 0x020) 20258# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20259# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20260#else 20261# define ISLOWER(c) \ 20262 (('a' <= (c) && (c) <= 'i') \ 20263 || ('j' <= (c) && (c) <= 'r') \ 20264 || ('s' <= (c) && (c) <= 'z')) 20265# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20266#endif 20267 20268#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20269int 20270main () 20271{ 20272 int i; 20273 for (i = 0; i < 256; i++) 20274 if (XOR (islower (i), ISLOWER (i)) 20275 || toupper (i) != TOUPPER (i)) 20276 exit(2); 20277 exit (0); 20278} 20279_ACEOF 20280rm -f conftest$ac_exeext 20281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20282 (eval $ac_link) 2>&5 20283 ac_status=$? 20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20287 (eval $ac_try) 2>&5 20288 ac_status=$? 20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20290 (exit $ac_status); }; }; then 20291 : 20292else 20293 echo "$as_me: program exited with status $ac_status" >&5 20294echo "$as_me: failed program was:" >&5 20295sed 's/^/| /' conftest.$ac_ext >&5 20296 20297( exit $ac_status ) 20298ac_cv_header_stdc=no 20299fi 20300rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20301fi 20302fi 20303fi 20304echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20305echo "${ECHO_T}$ac_cv_header_stdc" >&6 20306if test $ac_cv_header_stdc = yes; then 20307 20308cat >>confdefs.h <<\_ACEOF 20309#define STDC_HEADERS 1 20310_ACEOF 20311 20312fi 20313 20314echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 20315echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 20316if test "${ac_cv_header_time+set}" = set; then 20317 echo $ECHO_N "(cached) $ECHO_C" >&6 20318else 20319 cat >conftest.$ac_ext <<_ACEOF 20320/* confdefs.h. */ 20321_ACEOF 20322cat confdefs.h >>conftest.$ac_ext 20323cat >>conftest.$ac_ext <<_ACEOF 20324/* end confdefs.h. */ 20325#include <sys/types.h> 20326#include <sys/time.h> 20327#include <time.h> 20328 20329int 20330main () 20331{ 20332if ((struct tm *) 0) 20333return 0; 20334 ; 20335 return 0; 20336} 20337_ACEOF 20338rm -f conftest.$ac_objext 20339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20340 (eval $ac_compile) 2>conftest.er1 20341 ac_status=$? 20342 grep -v '^ *+' conftest.er1 >conftest.err 20343 rm -f conftest.er1 20344 cat conftest.err >&5 20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20346 (exit $ac_status); } && 20347 { ac_try='test -z "$ac_c_werror_flag" 20348 || test ! -s conftest.err' 20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20350 (eval $ac_try) 2>&5 20351 ac_status=$? 20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20353 (exit $ac_status); }; } && 20354 { ac_try='test -s conftest.$ac_objext' 20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20356 (eval $ac_try) 2>&5 20357 ac_status=$? 20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20359 (exit $ac_status); }; }; then 20360 ac_cv_header_time=yes 20361else 20362 echo "$as_me: failed program was:" >&5 20363sed 's/^/| /' conftest.$ac_ext >&5 20364 20365ac_cv_header_time=no 20366fi 20367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20368fi 20369echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 20370echo "${ECHO_T}$ac_cv_header_time" >&6 20371if test $ac_cv_header_time = yes; then 20372 20373cat >>confdefs.h <<\_ACEOF 20374#define TIME_WITH_SYS_TIME 1 20375_ACEOF 20376 20377fi 20378 20379 20380for ac_header in wchar.h 20381do 20382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20383if eval "test \"\${$as_ac_Header+set}\" = set"; then 20384 echo "$as_me:$LINENO: checking for $ac_header" >&5 20385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20386if eval "test \"\${$as_ac_Header+set}\" = set"; then 20387 echo $ECHO_N "(cached) $ECHO_C" >&6 20388fi 20389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20391else 20392 # Is the header compilable? 20393echo "$as_me:$LINENO: checking $ac_header usability" >&5 20394echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20395cat >conftest.$ac_ext <<_ACEOF 20396/* confdefs.h. */ 20397_ACEOF 20398cat confdefs.h >>conftest.$ac_ext 20399cat >>conftest.$ac_ext <<_ACEOF 20400/* end confdefs.h. */ 20401$ac_includes_default 20402#include <$ac_header> 20403_ACEOF 20404rm -f conftest.$ac_objext 20405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20406 (eval $ac_compile) 2>conftest.er1 20407 ac_status=$? 20408 grep -v '^ *+' conftest.er1 >conftest.err 20409 rm -f conftest.er1 20410 cat conftest.err >&5 20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20412 (exit $ac_status); } && 20413 { ac_try='test -z "$ac_c_werror_flag" 20414 || test ! -s conftest.err' 20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20416 (eval $ac_try) 2>&5 20417 ac_status=$? 20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20419 (exit $ac_status); }; } && 20420 { ac_try='test -s conftest.$ac_objext' 20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20422 (eval $ac_try) 2>&5 20423 ac_status=$? 20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20425 (exit $ac_status); }; }; then 20426 ac_header_compiler=yes 20427else 20428 echo "$as_me: failed program was:" >&5 20429sed 's/^/| /' conftest.$ac_ext >&5 20430 20431ac_header_compiler=no 20432fi 20433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20434echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20435echo "${ECHO_T}$ac_header_compiler" >&6 20436 20437# Is the header present? 20438echo "$as_me:$LINENO: checking $ac_header presence" >&5 20439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20440cat >conftest.$ac_ext <<_ACEOF 20441/* confdefs.h. */ 20442_ACEOF 20443cat confdefs.h >>conftest.$ac_ext 20444cat >>conftest.$ac_ext <<_ACEOF 20445/* end confdefs.h. */ 20446#include <$ac_header> 20447_ACEOF 20448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 20449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 20450 ac_status=$? 20451 grep -v '^ *+' conftest.er1 >conftest.err 20452 rm -f conftest.er1 20453 cat conftest.err >&5 20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20455 (exit $ac_status); } >/dev/null; then 20456 if test -s conftest.err; then 20457 ac_cpp_err=$ac_c_preproc_warn_flag 20458 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20459 else 20460 ac_cpp_err= 20461 fi 20462else 20463 ac_cpp_err=yes 20464fi 20465if test -z "$ac_cpp_err"; then 20466 ac_header_preproc=yes 20467else 20468 echo "$as_me: failed program was:" >&5 20469sed 's/^/| /' conftest.$ac_ext >&5 20470 20471 ac_header_preproc=no 20472fi 20473rm -f conftest.err conftest.$ac_ext 20474echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20475echo "${ECHO_T}$ac_header_preproc" >&6 20476 20477# So? What about this header? 20478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20479 yes:no: ) 20480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20481echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20483echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20484 ac_header_preproc=yes 20485 ;; 20486 no:yes:* ) 20487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20488echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20490echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20492echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20494echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20498echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20499 ( 20500 cat <<\_ASBOX 20501## ----------------------------------- ## 20502## Report this to iodbc@openlinksw.com ## 20503## ----------------------------------- ## 20504_ASBOX 20505 ) | 20506 sed "s/^/$as_me: WARNING: /" >&2 20507 ;; 20508esac 20509echo "$as_me:$LINENO: checking for $ac_header" >&5 20510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20511if eval "test \"\${$as_ac_Header+set}\" = set"; then 20512 echo $ECHO_N "(cached) $ECHO_C" >&6 20513else 20514 eval "$as_ac_Header=\$ac_header_preproc" 20515fi 20516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20518 20519fi 20520if test `eval echo '${'$as_ac_Header'}'` = yes; then 20521 cat >>confdefs.h <<_ACEOF 20522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20523_ACEOF 20524 20525fi 20526 20527done 20528 20529 20530 20531########################################################################## 20532## ## 20533## Check for specific library functions ## 20534## ## 20535########################################################################## 20536 20537 20538 20539 20540 20541 20542for ac_func in strerror setenv asprintf snprintf gettimeofday localtime_r 20543do 20544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20545echo "$as_me:$LINENO: checking for $ac_func" >&5 20546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20547if eval "test \"\${$as_ac_var+set}\" = set"; then 20548 echo $ECHO_N "(cached) $ECHO_C" >&6 20549else 20550 cat >conftest.$ac_ext <<_ACEOF 20551/* confdefs.h. */ 20552_ACEOF 20553cat confdefs.h >>conftest.$ac_ext 20554cat >>conftest.$ac_ext <<_ACEOF 20555/* end confdefs.h. */ 20556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20557 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20558#define $ac_func innocuous_$ac_func 20559 20560/* System header to define __stub macros and hopefully few prototypes, 20561 which can conflict with char $ac_func (); below. 20562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20563 <limits.h> exists even on freestanding compilers. */ 20564 20565#ifdef __STDC__ 20566# include <limits.h> 20567#else 20568# include <assert.h> 20569#endif 20570 20571#undef $ac_func 20572 20573/* Override any gcc2 internal prototype to avoid an error. */ 20574#ifdef __cplusplus 20575extern "C" 20576{ 20577#endif 20578/* We use char because int might match the return type of a gcc2 20579 builtin and then its argument prototype would still apply. */ 20580char $ac_func (); 20581/* The GNU C library defines this for functions which it implements 20582 to always fail with ENOSYS. Some functions are actually named 20583 something starting with __ and the normal name is an alias. */ 20584#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20585choke me 20586#else 20587char (*f) () = $ac_func; 20588#endif 20589#ifdef __cplusplus 20590} 20591#endif 20592 20593int 20594main () 20595{ 20596return f != $ac_func; 20597 ; 20598 return 0; 20599} 20600_ACEOF 20601rm -f conftest.$ac_objext conftest$ac_exeext 20602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20603 (eval $ac_link) 2>conftest.er1 20604 ac_status=$? 20605 grep -v '^ *+' conftest.er1 >conftest.err 20606 rm -f conftest.er1 20607 cat conftest.err >&5 20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20609 (exit $ac_status); } && 20610 { ac_try='test -z "$ac_c_werror_flag" 20611 || test ! -s conftest.err' 20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20613 (eval $ac_try) 2>&5 20614 ac_status=$? 20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20616 (exit $ac_status); }; } && 20617 { ac_try='test -s conftest$ac_exeext' 20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20619 (eval $ac_try) 2>&5 20620 ac_status=$? 20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20622 (exit $ac_status); }; }; then 20623 eval "$as_ac_var=yes" 20624else 20625 echo "$as_me: failed program was:" >&5 20626sed 's/^/| /' conftest.$ac_ext >&5 20627 20628eval "$as_ac_var=no" 20629fi 20630rm -f conftest.err conftest.$ac_objext \ 20631 conftest$ac_exeext conftest.$ac_ext 20632fi 20633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20635if test `eval echo '${'$as_ac_var'}'` = yes; then 20636 cat >>confdefs.h <<_ACEOF 20637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20638_ACEOF 20639 20640fi 20641done 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652for ac_func in wcslen wcscpy wcsncpy wcschr wcscat wcscmp towlower wcsncasecmp 20653do 20654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20655echo "$as_me:$LINENO: checking for $ac_func" >&5 20656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20657if eval "test \"\${$as_ac_var+set}\" = set"; then 20658 echo $ECHO_N "(cached) $ECHO_C" >&6 20659else 20660 cat >conftest.$ac_ext <<_ACEOF 20661/* confdefs.h. */ 20662_ACEOF 20663cat confdefs.h >>conftest.$ac_ext 20664cat >>conftest.$ac_ext <<_ACEOF 20665/* end confdefs.h. */ 20666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20667 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20668#define $ac_func innocuous_$ac_func 20669 20670/* System header to define __stub macros and hopefully few prototypes, 20671 which can conflict with char $ac_func (); below. 20672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20673 <limits.h> exists even on freestanding compilers. */ 20674 20675#ifdef __STDC__ 20676# include <limits.h> 20677#else 20678# include <assert.h> 20679#endif 20680 20681#undef $ac_func 20682 20683/* Override any gcc2 internal prototype to avoid an error. */ 20684#ifdef __cplusplus 20685extern "C" 20686{ 20687#endif 20688/* We use char because int might match the return type of a gcc2 20689 builtin and then its argument prototype would still apply. */ 20690char $ac_func (); 20691/* The GNU C library defines this for functions which it implements 20692 to always fail with ENOSYS. Some functions are actually named 20693 something starting with __ and the normal name is an alias. */ 20694#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20695choke me 20696#else 20697char (*f) () = $ac_func; 20698#endif 20699#ifdef __cplusplus 20700} 20701#endif 20702 20703int 20704main () 20705{ 20706return f != $ac_func; 20707 ; 20708 return 0; 20709} 20710_ACEOF 20711rm -f conftest.$ac_objext conftest$ac_exeext 20712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20713 (eval $ac_link) 2>conftest.er1 20714 ac_status=$? 20715 grep -v '^ *+' conftest.er1 >conftest.err 20716 rm -f conftest.er1 20717 cat conftest.err >&5 20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20719 (exit $ac_status); } && 20720 { ac_try='test -z "$ac_c_werror_flag" 20721 || test ! -s conftest.err' 20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20723 (eval $ac_try) 2>&5 20724 ac_status=$? 20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20726 (exit $ac_status); }; } && 20727 { ac_try='test -s conftest$ac_exeext' 20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20729 (eval $ac_try) 2>&5 20730 ac_status=$? 20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20732 (exit $ac_status); }; }; then 20733 eval "$as_ac_var=yes" 20734else 20735 echo "$as_me: failed program was:" >&5 20736sed 's/^/| /' conftest.$ac_ext >&5 20737 20738eval "$as_ac_var=no" 20739fi 20740rm -f conftest.err conftest.$ac_objext \ 20741 conftest$ac_exeext conftest.$ac_ext 20742fi 20743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20744echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20745if test `eval echo '${'$as_ac_var'}'` = yes; then 20746 cat >>confdefs.h <<_ACEOF 20747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20748_ACEOF 20749 20750fi 20751done 20752 20753 20754 20755########################################################################## 20756## ## 20757## Check if we want to build the GUI applications and libraries ## 20758## ## 20759########################################################################## 20760# Check whether --enable-gui or --disable-gui was given. 20761if test "${enable_gui+set}" = set; then 20762 enableval="$enable_gui" 20763 case "${enableval}" in 20764 yes) USE_GUI=true ;; 20765 no) USE_GUI=false ;; 20766 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-gui" >&5 20767echo "$as_me: error: bad value ${enableval} for --enable-gui" >&2;} 20768 { (exit 1); exit 1; }; } ;; 20769 esac 20770 20771else 20772 USE_GUI=true 20773fi; 20774 20775 20776########################################################################## 20777## ## 20778## Check for GTK library functions ## 20779## ## 20780########################################################################## 20781USE_GTK=false 20782if test x$USE_GUI = xtrue 20783then 20784 no_gtk="" 20785 # Check for GTK+ 2.x 20786 # Check whether --enable-gtktest or --disable-gtktest was given. 20787if test "${enable_gtktest+set}" = set; then 20788 enableval="$enable_gtktest" 20789 20790else 20791 enable_gtktest=yes 20792fi; 20793 20794 pkg_config_args=gtk+-2.0 20795 for module in . 20796 do 20797 case "$module" in 20798 gthread) 20799 pkg_config_args="$pkg_config_args gthread-2.0" 20800 ;; 20801 esac 20802 done 20803 20804 no_gtk="" 20805 20806 # Extract the first word of "pkg-config", so it can be a program name with args. 20807set dummy pkg-config; ac_word=$2 20808echo "$as_me:$LINENO: checking for $ac_word" >&5 20809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20810if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20811 echo $ECHO_N "(cached) $ECHO_C" >&6 20812else 20813 case $PKG_CONFIG in 20814 [\\/]* | ?:[\\/]*) 20815 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20816 ;; 20817 *) 20818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20819for as_dir in $PATH 20820do 20821 IFS=$as_save_IFS 20822 test -z "$as_dir" && as_dir=. 20823 for ac_exec_ext in '' $ac_executable_extensions; do 20824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20825 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20827 break 2 20828 fi 20829done 20830done 20831 20832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 20833 ;; 20834esac 20835fi 20836PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20837 20838if test -n "$PKG_CONFIG"; then 20839 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20840echo "${ECHO_T}$PKG_CONFIG" >&6 20841else 20842 echo "$as_me:$LINENO: result: no" >&5 20843echo "${ECHO_T}no" >&6 20844fi 20845 20846 20847 if test x$PKG_CONFIG != xno ; then 20848 if pkg-config --atleast-pkgconfig-version 0.7 ; then 20849 : 20850 else 20851 echo *** pkg-config too old; version 0.7 or better required. 20852 no_gtk=yes 20853 PKG_CONFIG=no 20854 fi 20855 else 20856 no_gtk=yes 20857 fi 20858 20859 min_gtk_version=2.0.0 20860 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 20861echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 20862 20863 if test x$PKG_CONFIG != xno ; then 20864 ## don't try to run the test against uninstalled libtool libs 20865 if $PKG_CONFIG --uninstalled $pkg_config_args; then 20866 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" 20867 enable_gtktest=no 20868 fi 20869 20870 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then 20871 : 20872 else 20873 no_gtk=yes 20874 fi 20875 fi 20876 20877 if test x"$no_gtk" = x ; then 20878 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` 20879 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` 20880 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 20881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 20882 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 20883 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 20884 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 20885 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 20886 if test "x$enable_gtktest" = "xyes" ; then 20887 ac_save_CFLAGS="$CFLAGS" 20888 ac_save_LIBS="$LIBS" 20889 CFLAGS="$CFLAGS $GTK_CFLAGS" 20890 LIBS="$GTK_LIBS $LIBS" 20891 rm -f conf.gtktest 20892 if test "$cross_compiling" = yes; then 20893 echo $ac_n "cross compiling; assumed OK... $ac_c" 20894else 20895 cat >conftest.$ac_ext <<_ACEOF 20896/* confdefs.h. */ 20897_ACEOF 20898cat confdefs.h >>conftest.$ac_ext 20899cat >>conftest.$ac_ext <<_ACEOF 20900/* end confdefs.h. */ 20901 20902#include <gtk/gtk.h> 20903#include <stdio.h> 20904#include <stdlib.h> 20905 20906int 20907main () 20908{ 20909 int major, minor, micro; 20910 char *tmp_version; 20911 20912 system ("touch conf.gtktest"); 20913 20914 /* HP/UX 9 (%@#!) writes to sscanf strings */ 20915 tmp_version = g_strdup("$min_gtk_version"); 20916 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 20917 printf("%s, bad version string\n", "$min_gtk_version"); 20918 exit(1); 20919 } 20920 20921 if ((gtk_major_version != $gtk_config_major_version) || 20922 (gtk_minor_version != $gtk_config_minor_version) || 20923 (gtk_micro_version != $gtk_config_micro_version)) 20924 { 20925 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 20926 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 20927 gtk_major_version, gtk_minor_version, gtk_micro_version); 20928 printf ("*** was found! If pkg-config was correct, then it is best\n"); 20929 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 20930 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 20931 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 20932 printf("*** required on your system.\n"); 20933 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 20934 printf("*** to point to the correct configuration files\n"); 20935 } 20936 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 20937 (gtk_minor_version != GTK_MINOR_VERSION) || 20938 (gtk_micro_version != GTK_MICRO_VERSION)) 20939 { 20940 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 20941 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 20942 printf("*** library (version %d.%d.%d)\n", 20943 gtk_major_version, gtk_minor_version, gtk_micro_version); 20944 } 20945 else 20946 { 20947 if ((gtk_major_version > major) || 20948 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 20949 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 20950 { 20951 return 0; 20952 } 20953 else 20954 { 20955 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 20956 gtk_major_version, gtk_minor_version, gtk_micro_version); 20957 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 20958 major, minor, micro); 20959 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 20960 printf("***\n"); 20961 printf("*** If you have already installed a sufficiently new version, this error\n"); 20962 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 20963 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 20964 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); 20965 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 20966 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 20967 printf("*** so that the correct libraries are found at run-time))\n"); 20968 } 20969 } 20970 return 1; 20971} 20972 20973_ACEOF 20974rm -f conftest$ac_exeext 20975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20976 (eval $ac_link) 2>&5 20977 ac_status=$? 20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20981 (eval $ac_try) 2>&5 20982 ac_status=$? 20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20984 (exit $ac_status); }; }; then 20985 : 20986else 20987 echo "$as_me: program exited with status $ac_status" >&5 20988echo "$as_me: failed program was:" >&5 20989sed 's/^/| /' conftest.$ac_ext >&5 20990 20991( exit $ac_status ) 20992no_gtk=yes 20993fi 20994rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20995fi 20996 CFLAGS="$ac_save_CFLAGS" 20997 LIBS="$ac_save_LIBS" 20998 fi 20999 fi 21000 if test "x$no_gtk" = x ; then 21001 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 21002echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 21003 : 21004 else 21005 echo "$as_me:$LINENO: result: no" >&5 21006echo "${ECHO_T}no" >&6 21007 if test "$PKG_CONFIG" = "no" ; then 21008 echo "*** A new enough version of pkg-config was not found." 21009 echo "*** See http://pkgconfig.sourceforge.net" 21010 else 21011 if test -f conf.gtktest ; then 21012 : 21013 else 21014 echo "*** Could not run GTK+ test program, checking why..." 21015 ac_save_CFLAGS="$CFLAGS" 21016 ac_save_LIBS="$LIBS" 21017 CFLAGS="$CFLAGS $GTK_CFLAGS" 21018 LIBS="$LIBS $GTK_LIBS" 21019 cat >conftest.$ac_ext <<_ACEOF 21020/* confdefs.h. */ 21021_ACEOF 21022cat confdefs.h >>conftest.$ac_ext 21023cat >>conftest.$ac_ext <<_ACEOF 21024/* end confdefs.h. */ 21025 21026#include <gtk/gtk.h> 21027#include <stdio.h> 21028 21029int 21030main () 21031{ 21032 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 21033 ; 21034 return 0; 21035} 21036_ACEOF 21037rm -f conftest.$ac_objext conftest$ac_exeext 21038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21039 (eval $ac_link) 2>conftest.er1 21040 ac_status=$? 21041 grep -v '^ *+' conftest.er1 >conftest.err 21042 rm -f conftest.er1 21043 cat conftest.err >&5 21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21045 (exit $ac_status); } && 21046 { ac_try='test -z "$ac_c_werror_flag" 21047 || test ! -s conftest.err' 21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21049 (eval $ac_try) 2>&5 21050 ac_status=$? 21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21052 (exit $ac_status); }; } && 21053 { ac_try='test -s conftest$ac_exeext' 21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21055 (eval $ac_try) 2>&5 21056 ac_status=$? 21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21058 (exit $ac_status); }; }; then 21059 echo "*** The test program compiled, but did not run. This usually means" 21060 echo "*** that the run-time linker is not finding GTK+ or finding the wrong" 21061 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" 21062 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 21063 echo "*** to the installed location Also, make sure you have run ldconfig if that" 21064 echo "*** is required on your system" 21065 echo "***" 21066 echo "*** If you have an old version installed, it is best to remove it, although" 21067 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 21068else 21069 echo "$as_me: failed program was:" >&5 21070sed 's/^/| /' conftest.$ac_ext >&5 21071 21072 echo "*** The test program failed to compile or link. See the file config.log for the" 21073 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." 21074fi 21075rm -f conftest.err conftest.$ac_objext \ 21076 conftest$ac_exeext conftest.$ac_ext 21077 CFLAGS="$ac_save_CFLAGS" 21078 LIBS="$ac_save_LIBS" 21079 fi 21080 fi 21081 GTK_CFLAGS="" 21082 GTK_LIBS="" 21083 : 21084 fi 21085 21086 21087 rm -f conf.gtktest 21088 21089 if test x$no_gtk != x 21090 then 21091 # Try GTK 1.2.x instead 21092 no_gtk="" 21093 21094# Check whether --with-gtk-prefix or --without-gtk-prefix was given. 21095if test "${with_gtk_prefix+set}" = set; then 21096 withval="$with_gtk_prefix" 21097 gtk_config_prefix="$withval" 21098else 21099 gtk_config_prefix="" 21100fi; 21101 21102# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. 21103if test "${with_gtk_exec_prefix+set}" = set; then 21104 withval="$with_gtk_exec_prefix" 21105 gtk_config_exec_prefix="$withval" 21106else 21107 gtk_config_exec_prefix="" 21108fi; 21109# Check whether --enable-gtktest or --disable-gtktest was given. 21110if test "${enable_gtktest+set}" = set; then 21111 enableval="$enable_gtktest" 21112 21113else 21114 enable_gtktest=yes 21115fi; 21116 21117 for module in . 21118 do 21119 case "$module" in 21120 gthread) 21121 gtk_config_args="$gtk_config_args gthread" 21122 ;; 21123 esac 21124 done 21125 21126 if test x$gtk_config_exec_prefix != x ; then 21127 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 21128 if test x${GTK_CONFIG+set} != xset ; then 21129 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 21130 fi 21131 fi 21132 if test x$gtk_config_prefix != x ; then 21133 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 21134 if test x${GTK_CONFIG+set} != xset ; then 21135 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 21136 fi 21137 fi 21138 21139 # Extract the first word of "gtk-config", so it can be a program name with args. 21140set dummy gtk-config; ac_word=$2 21141echo "$as_me:$LINENO: checking for $ac_word" >&5 21142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 21143if test "${ac_cv_path_GTK_CONFIG+set}" = set; then 21144 echo $ECHO_N "(cached) $ECHO_C" >&6 21145else 21146 case $GTK_CONFIG in 21147 [\\/]* | ?:[\\/]*) 21148 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 21149 ;; 21150 *) 21151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21152for as_dir in $PATH 21153do 21154 IFS=$as_save_IFS 21155 test -z "$as_dir" && as_dir=. 21156 for ac_exec_ext in '' $ac_executable_extensions; do 21157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21158 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21160 break 2 21161 fi 21162done 21163done 21164 21165 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 21166 ;; 21167esac 21168fi 21169GTK_CONFIG=$ac_cv_path_GTK_CONFIG 21170 21171if test -n "$GTK_CONFIG"; then 21172 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 21173echo "${ECHO_T}$GTK_CONFIG" >&6 21174else 21175 echo "$as_me:$LINENO: result: no" >&5 21176echo "${ECHO_T}no" >&6 21177fi 21178 21179 min_gtk_version=1.2.3 21180 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 21181echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 21182 no_gtk="" 21183 if test "$GTK_CONFIG" = "no" ; then 21184 no_gtk=yes 21185 else 21186 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 21187 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 21188 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 21189 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 21190 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 21191 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 21192 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 21193 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 21194 if test "x$enable_gtktest" = "xyes" ; then 21195 ac_save_CFLAGS="$CFLAGS" 21196 ac_save_LIBS="$LIBS" 21197 CFLAGS="$CFLAGS $GTK_CFLAGS" 21198 LIBS="$GTK_LIBS $LIBS" 21199 rm -f conf.gtktest 21200 if test "$cross_compiling" = yes; then 21201 echo $ac_n "cross compiling; assumed OK... $ac_c" 21202else 21203 cat >conftest.$ac_ext <<_ACEOF 21204/* confdefs.h. */ 21205_ACEOF 21206cat confdefs.h >>conftest.$ac_ext 21207cat >>conftest.$ac_ext <<_ACEOF 21208/* end confdefs.h. */ 21209 21210#include <gtk/gtk.h> 21211#include <stdio.h> 21212#include <stdlib.h> 21213 21214int 21215main () 21216{ 21217 int major, minor, micro; 21218 char *tmp_version; 21219 21220 system ("touch conf.gtktest"); 21221 21222 /* HP/UX 9 (%@#!) writes to sscanf strings */ 21223 tmp_version = g_strdup("$min_gtk_version"); 21224 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 21225 printf("%s, bad version string\n", "$min_gtk_version"); 21226 exit(1); 21227 } 21228 21229 if ((gtk_major_version != $gtk_config_major_version) || 21230 (gtk_minor_version != $gtk_config_minor_version) || 21231 (gtk_micro_version != $gtk_config_micro_version)) 21232 { 21233 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 21234 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 21235 gtk_major_version, gtk_minor_version, gtk_micro_version); 21236 printf ("*** was found! If gtk-config was correct, then it is best\n"); 21237 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 21238 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 21239 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 21240 printf("*** required on your system.\n"); 21241 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 21242 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 21243 printf("*** before re-running configure\n"); 21244 } 21245#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) 21246 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 21247 (gtk_minor_version != GTK_MINOR_VERSION) || 21248 (gtk_micro_version != GTK_MICRO_VERSION)) 21249 { 21250 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 21251 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 21252 printf("*** library (version %d.%d.%d)\n", 21253 gtk_major_version, gtk_minor_version, gtk_micro_version); 21254 } 21255#endif /* defined (GTK_MAJOR_VERSION) ... */ 21256 else 21257 { 21258 if ((gtk_major_version > major) || 21259 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 21260 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 21261 { 21262 return 0; 21263 } 21264 else 21265 { 21266 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 21267 gtk_major_version, gtk_minor_version, gtk_micro_version); 21268 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 21269 major, minor, micro); 21270 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 21271 printf("***\n"); 21272 printf("*** If you have already installed a sufficiently new version, this error\n"); 21273 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 21274 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 21275 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 21276 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 21277 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 21278 printf("*** so that the correct libraries are found at run-time))\n"); 21279 } 21280 } 21281 return 1; 21282} 21283 21284_ACEOF 21285rm -f conftest$ac_exeext 21286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21287 (eval $ac_link) 2>&5 21288 ac_status=$? 21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21292 (eval $ac_try) 2>&5 21293 ac_status=$? 21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21295 (exit $ac_status); }; }; then 21296 : 21297else 21298 echo "$as_me: program exited with status $ac_status" >&5 21299echo "$as_me: failed program was:" >&5 21300sed 's/^/| /' conftest.$ac_ext >&5 21301 21302( exit $ac_status ) 21303no_gtk=yes 21304fi 21305rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21306fi 21307 CFLAGS="$ac_save_CFLAGS" 21308 LIBS="$ac_save_LIBS" 21309 fi 21310 fi 21311 if test "x$no_gtk" = x ; then 21312 echo "$as_me:$LINENO: result: yes" >&5 21313echo "${ECHO_T}yes" >&6 21314 : 21315 else 21316 echo "$as_me:$LINENO: result: no" >&5 21317echo "${ECHO_T}no" >&6 21318 if test "$GTK_CONFIG" = "no" ; then 21319 echo "*** The gtk-config script installed by GTK could not be found" 21320 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 21321 echo "*** your path, or set the GTK_CONFIG environment variable to the" 21322 echo "*** full path to gtk-config." 21323 else 21324 if test -f conf.gtktest ; then 21325 : 21326 else 21327 echo "*** Could not run GTK test program, checking why..." 21328 CFLAGS="$CFLAGS $GTK_CFLAGS" 21329 LIBS="$LIBS $GTK_LIBS" 21330 cat >conftest.$ac_ext <<_ACEOF 21331/* confdefs.h. */ 21332_ACEOF 21333cat confdefs.h >>conftest.$ac_ext 21334cat >>conftest.$ac_ext <<_ACEOF 21335/* end confdefs.h. */ 21336 21337#include <gtk/gtk.h> 21338#include <stdio.h> 21339 21340int 21341main () 21342{ 21343 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 21344 ; 21345 return 0; 21346} 21347_ACEOF 21348rm -f conftest.$ac_objext conftest$ac_exeext 21349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21350 (eval $ac_link) 2>conftest.er1 21351 ac_status=$? 21352 grep -v '^ *+' conftest.er1 >conftest.err 21353 rm -f conftest.er1 21354 cat conftest.err >&5 21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21356 (exit $ac_status); } && 21357 { ac_try='test -z "$ac_c_werror_flag" 21358 || test ! -s conftest.err' 21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21360 (eval $ac_try) 2>&5 21361 ac_status=$? 21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21363 (exit $ac_status); }; } && 21364 { ac_try='test -s conftest$ac_exeext' 21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21366 (eval $ac_try) 2>&5 21367 ac_status=$? 21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21369 (exit $ac_status); }; }; then 21370 echo "*** The test program compiled, but did not run. This usually means" 21371 echo "*** that the run-time linker is not finding GTK or finding the wrong" 21372 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 21373 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 21374 echo "*** to the installed location Also, make sure you have run ldconfig if that" 21375 echo "*** is required on your system" 21376 echo "***" 21377 echo "*** If you have an old version installed, it is best to remove it, although" 21378 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 21379 echo "***" 21380 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 21381 echo "*** came with the system with the command" 21382 echo "***" 21383 echo "*** rpm --erase --nodeps gtk gtk-devel" 21384else 21385 echo "$as_me: failed program was:" >&5 21386sed 's/^/| /' conftest.$ac_ext >&5 21387 21388 echo "*** The test program failed to compile or link. See the file config.log for the" 21389 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 21390 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 21391 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 21392fi 21393rm -f conftest.err conftest.$ac_objext \ 21394 conftest$ac_exeext conftest.$ac_ext 21395 CFLAGS="$ac_save_CFLAGS" 21396 LIBS="$ac_save_LIBS" 21397 fi 21398 fi 21399 GTK_CFLAGS="" 21400 GTK_LIBS="" 21401 : 21402 fi 21403 21404 21405 rm -f conf.gtktest 21406 21407 fi 21408 if test x$no_gtk = x 21409 then 21410 USE_GTK=true 21411 fi 21412fi 21413 21414########################################################################## 21415## ## 21416## Now make the final checks whether we can use GUI extentions ## 21417## ## 21418########################################################################## 21419if test x$USE_GTK = xfalse 21420then 21421 USE_GUI=false 21422fi 21423 21424if test x$USE_GUI = xtrue 21425then 21426 21427cat >>confdefs.h <<\_ACEOF 21428#define GUI 1 21429_ACEOF 21430 21431fi 21432 21433 21434 21435if test x$USE_GUI = xtrue; then 21436 GUI_TRUE= 21437 GUI_FALSE='#' 21438else 21439 GUI_TRUE='#' 21440 GUI_FALSE= 21441fi 21442 21443 21444 21445if test x$USE_GTK = xtrue; then 21446 GTK_TRUE= 21447 GTK_FALSE='#' 21448else 21449 GTK_TRUE='#' 21450 GTK_FALSE= 21451fi 21452 21453 21454 21455########################################################################## 21456## ## 21457## Check for dynamic load module ## 21458## ## 21459########################################################################## 21460 21461 21462 21463 21464for ac_header in dlfcn.h dl.h dld.h 21465do 21466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21467if eval "test \"\${$as_ac_Header+set}\" = set"; then 21468 echo "$as_me:$LINENO: checking for $ac_header" >&5 21469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21470if eval "test \"\${$as_ac_Header+set}\" = set"; then 21471 echo $ECHO_N "(cached) $ECHO_C" >&6 21472fi 21473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21475else 21476 # Is the header compilable? 21477echo "$as_me:$LINENO: checking $ac_header usability" >&5 21478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21479cat >conftest.$ac_ext <<_ACEOF 21480/* confdefs.h. */ 21481_ACEOF 21482cat confdefs.h >>conftest.$ac_ext 21483cat >>conftest.$ac_ext <<_ACEOF 21484/* end confdefs.h. */ 21485$ac_includes_default 21486#include <$ac_header> 21487_ACEOF 21488rm -f conftest.$ac_objext 21489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21490 (eval $ac_compile) 2>conftest.er1 21491 ac_status=$? 21492 grep -v '^ *+' conftest.er1 >conftest.err 21493 rm -f conftest.er1 21494 cat conftest.err >&5 21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21496 (exit $ac_status); } && 21497 { ac_try='test -z "$ac_c_werror_flag" 21498 || test ! -s conftest.err' 21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21500 (eval $ac_try) 2>&5 21501 ac_status=$? 21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21503 (exit $ac_status); }; } && 21504 { ac_try='test -s conftest.$ac_objext' 21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21506 (eval $ac_try) 2>&5 21507 ac_status=$? 21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21509 (exit $ac_status); }; }; then 21510 ac_header_compiler=yes 21511else 21512 echo "$as_me: failed program was:" >&5 21513sed 's/^/| /' conftest.$ac_ext >&5 21514 21515ac_header_compiler=no 21516fi 21517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21519echo "${ECHO_T}$ac_header_compiler" >&6 21520 21521# Is the header present? 21522echo "$as_me:$LINENO: checking $ac_header presence" >&5 21523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21524cat >conftest.$ac_ext <<_ACEOF 21525/* confdefs.h. */ 21526_ACEOF 21527cat confdefs.h >>conftest.$ac_ext 21528cat >>conftest.$ac_ext <<_ACEOF 21529/* end confdefs.h. */ 21530#include <$ac_header> 21531_ACEOF 21532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21534 ac_status=$? 21535 grep -v '^ *+' conftest.er1 >conftest.err 21536 rm -f conftest.er1 21537 cat conftest.err >&5 21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21539 (exit $ac_status); } >/dev/null; then 21540 if test -s conftest.err; then 21541 ac_cpp_err=$ac_c_preproc_warn_flag 21542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21543 else 21544 ac_cpp_err= 21545 fi 21546else 21547 ac_cpp_err=yes 21548fi 21549if test -z "$ac_cpp_err"; then 21550 ac_header_preproc=yes 21551else 21552 echo "$as_me: failed program was:" >&5 21553sed 's/^/| /' conftest.$ac_ext >&5 21554 21555 ac_header_preproc=no 21556fi 21557rm -f conftest.err conftest.$ac_ext 21558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21559echo "${ECHO_T}$ac_header_preproc" >&6 21560 21561# So? What about this header? 21562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21563 yes:no: ) 21564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21568 ac_header_preproc=yes 21569 ;; 21570 no:yes:* ) 21571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21583 ( 21584 cat <<\_ASBOX 21585## ----------------------------------- ## 21586## Report this to iodbc@openlinksw.com ## 21587## ----------------------------------- ## 21588_ASBOX 21589 ) | 21590 sed "s/^/$as_me: WARNING: /" >&2 21591 ;; 21592esac 21593echo "$as_me:$LINENO: checking for $ac_header" >&5 21594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21595if eval "test \"\${$as_ac_Header+set}\" = set"; then 21596 echo $ECHO_N "(cached) $ECHO_C" >&6 21597else 21598 eval "$as_ac_Header=\$ac_header_preproc" 21599fi 21600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21602 21603fi 21604if test `eval echo '${'$as_ac_Header'}'` = yes; then 21605 cat >>confdefs.h <<_ACEOF 21606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21607_ACEOF 21608 21609fi 21610 21611done 21612 21613 21614LIBADD_DL="" 21615 21616echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 21617echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 21618if test "${ac_cv_lib_dl_dlopen+set}" = set; then 21619 echo $ECHO_N "(cached) $ECHO_C" >&6 21620else 21621 ac_check_lib_save_LIBS=$LIBS 21622LIBS="-ldl $LIBS" 21623cat >conftest.$ac_ext <<_ACEOF 21624/* confdefs.h. */ 21625_ACEOF 21626cat confdefs.h >>conftest.$ac_ext 21627cat >>conftest.$ac_ext <<_ACEOF 21628/* end confdefs.h. */ 21629 21630/* Override any gcc2 internal prototype to avoid an error. */ 21631#ifdef __cplusplus 21632extern "C" 21633#endif 21634/* We use char because int might match the return type of a gcc2 21635 builtin and then its argument prototype would still apply. */ 21636char dlopen (); 21637int 21638main () 21639{ 21640dlopen (); 21641 ; 21642 return 0; 21643} 21644_ACEOF 21645rm -f conftest.$ac_objext conftest$ac_exeext 21646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21647 (eval $ac_link) 2>conftest.er1 21648 ac_status=$? 21649 grep -v '^ *+' conftest.er1 >conftest.err 21650 rm -f conftest.er1 21651 cat conftest.err >&5 21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21653 (exit $ac_status); } && 21654 { ac_try='test -z "$ac_c_werror_flag" 21655 || test ! -s conftest.err' 21656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21657 (eval $ac_try) 2>&5 21658 ac_status=$? 21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21660 (exit $ac_status); }; } && 21661 { ac_try='test -s conftest$ac_exeext' 21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21663 (eval $ac_try) 2>&5 21664 ac_status=$? 21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21666 (exit $ac_status); }; }; then 21667 ac_cv_lib_dl_dlopen=yes 21668else 21669 echo "$as_me: failed program was:" >&5 21670sed 's/^/| /' conftest.$ac_ext >&5 21671 21672ac_cv_lib_dl_dlopen=no 21673fi 21674rm -f conftest.err conftest.$ac_objext \ 21675 conftest$ac_exeext conftest.$ac_ext 21676LIBS=$ac_check_lib_save_LIBS 21677fi 21678echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 21679echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 21680if test $ac_cv_lib_dl_dlopen = yes; then 21681 21682cat >>confdefs.h <<\_ACEOF 21683#define HAVE_LIBDL 1 21684_ACEOF 21685 21686 LIBADD_DL="-ldl" 21687else 21688 21689 21690for ac_func in dlopen _dlopen 21691do 21692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21693echo "$as_me:$LINENO: checking for $ac_func" >&5 21694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21695if eval "test \"\${$as_ac_var+set}\" = set"; then 21696 echo $ECHO_N "(cached) $ECHO_C" >&6 21697else 21698 cat >conftest.$ac_ext <<_ACEOF 21699/* confdefs.h. */ 21700_ACEOF 21701cat confdefs.h >>conftest.$ac_ext 21702cat >>conftest.$ac_ext <<_ACEOF 21703/* end confdefs.h. */ 21704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21705 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21706#define $ac_func innocuous_$ac_func 21707 21708/* System header to define __stub macros and hopefully few prototypes, 21709 which can conflict with char $ac_func (); below. 21710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21711 <limits.h> exists even on freestanding compilers. */ 21712 21713#ifdef __STDC__ 21714# include <limits.h> 21715#else 21716# include <assert.h> 21717#endif 21718 21719#undef $ac_func 21720 21721/* Override any gcc2 internal prototype to avoid an error. */ 21722#ifdef __cplusplus 21723extern "C" 21724{ 21725#endif 21726/* We use char because int might match the return type of a gcc2 21727 builtin and then its argument prototype would still apply. */ 21728char $ac_func (); 21729/* The GNU C library defines this for functions which it implements 21730 to always fail with ENOSYS. Some functions are actually named 21731 something starting with __ and the normal name is an alias. */ 21732#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21733choke me 21734#else 21735char (*f) () = $ac_func; 21736#endif 21737#ifdef __cplusplus 21738} 21739#endif 21740 21741int 21742main () 21743{ 21744return f != $ac_func; 21745 ; 21746 return 0; 21747} 21748_ACEOF 21749rm -f conftest.$ac_objext conftest$ac_exeext 21750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21751 (eval $ac_link) 2>conftest.er1 21752 ac_status=$? 21753 grep -v '^ *+' conftest.er1 >conftest.err 21754 rm -f conftest.er1 21755 cat conftest.err >&5 21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21757 (exit $ac_status); } && 21758 { ac_try='test -z "$ac_c_werror_flag" 21759 || test ! -s conftest.err' 21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21761 (eval $ac_try) 2>&5 21762 ac_status=$? 21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21764 (exit $ac_status); }; } && 21765 { ac_try='test -s conftest$ac_exeext' 21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21767 (eval $ac_try) 2>&5 21768 ac_status=$? 21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21770 (exit $ac_status); }; }; then 21771 eval "$as_ac_var=yes" 21772else 21773 echo "$as_me: failed program was:" >&5 21774sed 's/^/| /' conftest.$ac_ext >&5 21775 21776eval "$as_ac_var=no" 21777fi 21778rm -f conftest.err conftest.$ac_objext \ 21779 conftest$ac_exeext conftest.$ac_ext 21780fi 21781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21782echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21783if test `eval echo '${'$as_ac_var'}'` = yes; then 21784 cat >>confdefs.h <<_ACEOF 21785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21786_ACEOF 21787 21788 21789cat >>confdefs.h <<\_ACEOF 21790#define HAVE_LIBDL 1 21791_ACEOF 21792 21793 21794fi 21795done 21796 21797 21798fi 21799 21800 21801echo "$as_me:$LINENO: checking for shl_load" >&5 21802echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 21803if test "${ac_cv_func_shl_load+set}" = set; then 21804 echo $ECHO_N "(cached) $ECHO_C" >&6 21805else 21806 cat >conftest.$ac_ext <<_ACEOF 21807/* confdefs.h. */ 21808_ACEOF 21809cat confdefs.h >>conftest.$ac_ext 21810cat >>conftest.$ac_ext <<_ACEOF 21811/* end confdefs.h. */ 21812/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 21813 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21814#define shl_load innocuous_shl_load 21815 21816/* System header to define __stub macros and hopefully few prototypes, 21817 which can conflict with char shl_load (); below. 21818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21819 <limits.h> exists even on freestanding compilers. */ 21820 21821#ifdef __STDC__ 21822# include <limits.h> 21823#else 21824# include <assert.h> 21825#endif 21826 21827#undef shl_load 21828 21829/* Override any gcc2 internal prototype to avoid an error. */ 21830#ifdef __cplusplus 21831extern "C" 21832{ 21833#endif 21834/* We use char because int might match the return type of a gcc2 21835 builtin and then its argument prototype would still apply. */ 21836char shl_load (); 21837/* The GNU C library defines this for functions which it implements 21838 to always fail with ENOSYS. Some functions are actually named 21839 something starting with __ and the normal name is an alias. */ 21840#if defined (__stub_shl_load) || defined (__stub___shl_load) 21841choke me 21842#else 21843char (*f) () = shl_load; 21844#endif 21845#ifdef __cplusplus 21846} 21847#endif 21848 21849int 21850main () 21851{ 21852return f != shl_load; 21853 ; 21854 return 0; 21855} 21856_ACEOF 21857rm -f conftest.$ac_objext conftest$ac_exeext 21858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21859 (eval $ac_link) 2>conftest.er1 21860 ac_status=$? 21861 grep -v '^ *+' conftest.er1 >conftest.err 21862 rm -f conftest.er1 21863 cat conftest.err >&5 21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21865 (exit $ac_status); } && 21866 { ac_try='test -z "$ac_c_werror_flag" 21867 || test ! -s conftest.err' 21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21869 (eval $ac_try) 2>&5 21870 ac_status=$? 21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21872 (exit $ac_status); }; } && 21873 { ac_try='test -s conftest$ac_exeext' 21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21875 (eval $ac_try) 2>&5 21876 ac_status=$? 21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21878 (exit $ac_status); }; }; then 21879 ac_cv_func_shl_load=yes 21880else 21881 echo "$as_me: failed program was:" >&5 21882sed 's/^/| /' conftest.$ac_ext >&5 21883 21884ac_cv_func_shl_load=no 21885fi 21886rm -f conftest.err conftest.$ac_objext \ 21887 conftest$ac_exeext conftest.$ac_ext 21888fi 21889echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 21890echo "${ECHO_T}$ac_cv_func_shl_load" >&6 21891if test $ac_cv_func_shl_load = yes; then 21892 21893cat >>confdefs.h <<\_ACEOF 21894#define HAVE_SHL_LOAD 1 21895_ACEOF 21896 21897else 21898 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 21899echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 21900if test "${ac_cv_lib_dld_shl_load+set}" = set; then 21901 echo $ECHO_N "(cached) $ECHO_C" >&6 21902else 21903 ac_check_lib_save_LIBS=$LIBS 21904LIBS="-ldld $LIBS" 21905cat >conftest.$ac_ext <<_ACEOF 21906/* confdefs.h. */ 21907_ACEOF 21908cat confdefs.h >>conftest.$ac_ext 21909cat >>conftest.$ac_ext <<_ACEOF 21910/* end confdefs.h. */ 21911 21912/* Override any gcc2 internal prototype to avoid an error. */ 21913#ifdef __cplusplus 21914extern "C" 21915#endif 21916/* We use char because int might match the return type of a gcc2 21917 builtin and then its argument prototype would still apply. */ 21918char shl_load (); 21919int 21920main () 21921{ 21922shl_load (); 21923 ; 21924 return 0; 21925} 21926_ACEOF 21927rm -f conftest.$ac_objext conftest$ac_exeext 21928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21929 (eval $ac_link) 2>conftest.er1 21930 ac_status=$? 21931 grep -v '^ *+' conftest.er1 >conftest.err 21932 rm -f conftest.er1 21933 cat conftest.err >&5 21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21935 (exit $ac_status); } && 21936 { ac_try='test -z "$ac_c_werror_flag" 21937 || test ! -s conftest.err' 21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21939 (eval $ac_try) 2>&5 21940 ac_status=$? 21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21942 (exit $ac_status); }; } && 21943 { ac_try='test -s conftest$ac_exeext' 21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21945 (eval $ac_try) 2>&5 21946 ac_status=$? 21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21948 (exit $ac_status); }; }; then 21949 ac_cv_lib_dld_shl_load=yes 21950else 21951 echo "$as_me: failed program was:" >&5 21952sed 's/^/| /' conftest.$ac_ext >&5 21953 21954ac_cv_lib_dld_shl_load=no 21955fi 21956rm -f conftest.err conftest.$ac_objext \ 21957 conftest$ac_exeext conftest.$ac_ext 21958LIBS=$ac_check_lib_save_LIBS 21959fi 21960echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 21961echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 21962if test $ac_cv_lib_dld_shl_load = yes; then 21963 21964cat >>confdefs.h <<\_ACEOF 21965#define HAVE_SHL_LOAD 1 21966_ACEOF 21967 LIBADD_DL="$LIBADD_DL -ldld" 21968fi 21969 21970 21971fi 21972 21973 21974echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 21975echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 21976if test "${ac_cv_lib_dld_dld_link+set}" = set; then 21977 echo $ECHO_N "(cached) $ECHO_C" >&6 21978else 21979 ac_check_lib_save_LIBS=$LIBS 21980LIBS="-ldld $LIBS" 21981cat >conftest.$ac_ext <<_ACEOF 21982/* confdefs.h. */ 21983_ACEOF 21984cat confdefs.h >>conftest.$ac_ext 21985cat >>conftest.$ac_ext <<_ACEOF 21986/* end confdefs.h. */ 21987 21988/* Override any gcc2 internal prototype to avoid an error. */ 21989#ifdef __cplusplus 21990extern "C" 21991#endif 21992/* We use char because int might match the return type of a gcc2 21993 builtin and then its argument prototype would still apply. */ 21994char dld_link (); 21995int 21996main () 21997{ 21998dld_link (); 21999 ; 22000 return 0; 22001} 22002_ACEOF 22003rm -f conftest.$ac_objext conftest$ac_exeext 22004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22005 (eval $ac_link) 2>conftest.er1 22006 ac_status=$? 22007 grep -v '^ *+' conftest.er1 >conftest.err 22008 rm -f conftest.er1 22009 cat conftest.err >&5 22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22011 (exit $ac_status); } && 22012 { ac_try='test -z "$ac_c_werror_flag" 22013 || test ! -s conftest.err' 22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22015 (eval $ac_try) 2>&5 22016 ac_status=$? 22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22018 (exit $ac_status); }; } && 22019 { ac_try='test -s conftest$ac_exeext' 22020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22021 (eval $ac_try) 2>&5 22022 ac_status=$? 22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22024 (exit $ac_status); }; }; then 22025 ac_cv_lib_dld_dld_link=yes 22026else 22027 echo "$as_me: failed program was:" >&5 22028sed 's/^/| /' conftest.$ac_ext >&5 22029 22030ac_cv_lib_dld_dld_link=no 22031fi 22032rm -f conftest.err conftest.$ac_objext \ 22033 conftest$ac_exeext conftest.$ac_ext 22034LIBS=$ac_check_lib_save_LIBS 22035fi 22036echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 22037echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 22038if test $ac_cv_lib_dld_dld_link = yes; then 22039 22040cat >>confdefs.h <<\_ACEOF 22041#define HAVE_DLD 1 22042_ACEOF 22043 test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld" 22044fi 22045 22046 22047echo "$as_me:$LINENO: checking for NSCreateObjectFileImageFromFile" >&5 22048echo $ECHO_N "checking for NSCreateObjectFileImageFromFile... $ECHO_C" >&6 22049if test "${ac_cv_func_NSCreateObjectFileImageFromFile+set}" = set; then 22050 echo $ECHO_N "(cached) $ECHO_C" >&6 22051else 22052 cat >conftest.$ac_ext <<_ACEOF 22053/* confdefs.h. */ 22054_ACEOF 22055cat confdefs.h >>conftest.$ac_ext 22056cat >>conftest.$ac_ext <<_ACEOF 22057/* end confdefs.h. */ 22058/* Define NSCreateObjectFileImageFromFile to an innocuous variant, in case <limits.h> declares NSCreateObjectFileImageFromFile. 22059 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22060#define NSCreateObjectFileImageFromFile innocuous_NSCreateObjectFileImageFromFile 22061 22062/* System header to define __stub macros and hopefully few prototypes, 22063 which can conflict with char NSCreateObjectFileImageFromFile (); below. 22064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22065 <limits.h> exists even on freestanding compilers. */ 22066 22067#ifdef __STDC__ 22068# include <limits.h> 22069#else 22070# include <assert.h> 22071#endif 22072 22073#undef NSCreateObjectFileImageFromFile 22074 22075/* Override any gcc2 internal prototype to avoid an error. */ 22076#ifdef __cplusplus 22077extern "C" 22078{ 22079#endif 22080/* We use char because int might match the return type of a gcc2 22081 builtin and then its argument prototype would still apply. */ 22082char NSCreateObjectFileImageFromFile (); 22083/* The GNU C library defines this for functions which it implements 22084 to always fail with ENOSYS. Some functions are actually named 22085 something starting with __ and the normal name is an alias. */ 22086#if defined (__stub_NSCreateObjectFileImageFromFile) || defined (__stub___NSCreateObjectFileImageFromFile) 22087choke me 22088#else 22089char (*f) () = NSCreateObjectFileImageFromFile; 22090#endif 22091#ifdef __cplusplus 22092} 22093#endif 22094 22095int 22096main () 22097{ 22098return f != NSCreateObjectFileImageFromFile; 22099 ; 22100 return 0; 22101} 22102_ACEOF 22103rm -f conftest.$ac_objext conftest$ac_exeext 22104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22105 (eval $ac_link) 2>conftest.er1 22106 ac_status=$? 22107 grep -v '^ *+' conftest.er1 >conftest.err 22108 rm -f conftest.er1 22109 cat conftest.err >&5 22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22111 (exit $ac_status); } && 22112 { ac_try='test -z "$ac_c_werror_flag" 22113 || test ! -s conftest.err' 22114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22115 (eval $ac_try) 2>&5 22116 ac_status=$? 22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22118 (exit $ac_status); }; } && 22119 { ac_try='test -s conftest$ac_exeext' 22120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22121 (eval $ac_try) 2>&5 22122 ac_status=$? 22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22124 (exit $ac_status); }; }; then 22125 ac_cv_func_NSCreateObjectFileImageFromFile=yes 22126else 22127 echo "$as_me: failed program was:" >&5 22128sed 's/^/| /' conftest.$ac_ext >&5 22129 22130ac_cv_func_NSCreateObjectFileImageFromFile=no 22131fi 22132rm -f conftest.err conftest.$ac_objext \ 22133 conftest$ac_exeext conftest.$ac_ext 22134fi 22135echo "$as_me:$LINENO: result: $ac_cv_func_NSCreateObjectFileImageFromFile" >&5 22136echo "${ECHO_T}$ac_cv_func_NSCreateObjectFileImageFromFile" >&6 22137if test $ac_cv_func_NSCreateObjectFileImageFromFile = yes; then 22138 22139cat >>confdefs.h <<\_ACEOF 22140#define HAVE_DYLD 1 22141_ACEOF 22142 22143fi 22144 22145 22146 22147 22148echo "$as_me:$LINENO: checking for underscore before symbols" >&5 22149echo $ECHO_N "checking for underscore before symbols... $ECHO_C" >&6 22150if test "${libltdl_cv_uscore+set}" = set; then 22151 echo $ECHO_N "(cached) $ECHO_C" >&6 22152else 22153 22154 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c 22155 ${CC} -c conftest.c > /dev/null 22156 if (nm conftest.o | grep _fnord) > /dev/null; then 22157 libltdl_cv_uscore=yes 22158 else 22159 libltdl_cv_uscore=no 22160 fi 22161 rm -f conftest* 22162 22163fi 22164echo "$as_me:$LINENO: result: $libltdl_cv_uscore" >&5 22165echo "${ECHO_T}$libltdl_cv_uscore" >&6 22166 22167if test x"$libltdl_cv_uscore" = xyes; then 22168 if test x"$ac_cv_func_dlopen" = xyes || 22169 test x"$ac_cv_lib_dl_dlopen" = xyes ; then 22170 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 22171echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 22172if test "${libltdl_cv_need_uscore+set}" = set; then 22173 echo $ECHO_N "(cached) $ECHO_C" >&6 22174else 22175 if test "$cross_compiling" = yes; then 22176 libltdl_cv_need_uscore=no 22177 22178else 22179 cat >conftest.$ac_ext <<_ACEOF 22180/* confdefs.h. */ 22181_ACEOF 22182cat confdefs.h >>conftest.$ac_ext 22183cat >>conftest.$ac_ext <<_ACEOF 22184/* end confdefs.h. */ 22185 22186#if HAVE_DLFCN_H 22187#include <dlfcn.h> 22188#endif 22189 22190#include <stdio.h> 22191 22192#ifdef RTLD_GLOBAL 22193# define LTDL_GLOBAL RTLD_GLOBAL 22194#else 22195# ifdef DL_GLOBAL 22196# define LTDL_GLOBAL DL_GLOBAL 22197# else 22198# define LTDL_GLOBAL 0 22199# endif 22200#endif 22201 22202/* We may have to define LTDL_LAZY_OR_NOW in the command line if we 22203 find out it does not work in some platform. */ 22204#ifndef LTDL_LAZY_OR_NOW 22205# ifdef RTLD_LAZY 22206# define LTDL_LAZY_OR_NOW RTLD_LAZY 22207# else 22208# ifdef DL_LAZY 22209# define LTDL_LAZY_OR_NOW DL_LAZY 22210# else 22211# ifdef RTLD_NOW 22212# define LTDL_LAZY_OR_NOW RTLD_NOW 22213# else 22214# ifdef DL_NOW 22215# define LTDL_LAZY_OR_NOW DL_NOW 22216# else 22217# define LTDL_LAZY_OR_NOW 0 22218# endif 22219# endif 22220# endif 22221# endif 22222#endif 22223 22224fnord () 22225{ 22226 int i = 42; 22227} 22228 22229main () 22230{ 22231 void *self, *ptr1, *ptr2; 22232 self = dlopen (0, LTDL_GLOBAL | LTDL_LAZY_OR_NOW); 22233 if (self) 22234 { 22235 ptr1 = dlsym (self, "fnord"); 22236 ptr2 = dlsym (self, "_fnord"); 22237 if (ptr1 && !ptr2) 22238 { 22239 dlclose (self); 22240 exit (0); 22241 } 22242 } 22243 exit (1); 22244} 22245 22246_ACEOF 22247rm -f conftest$ac_exeext 22248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22249 (eval $ac_link) 2>&5 22250 ac_status=$? 22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22254 (eval $ac_try) 2>&5 22255 ac_status=$? 22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22257 (exit $ac_status); }; }; then 22258 libltdl_cv_need_uscore=no 22259else 22260 echo "$as_me: program exited with status $ac_status" >&5 22261echo "$as_me: failed program was:" >&5 22262sed 's/^/| /' conftest.$ac_ext >&5 22263 22264( exit $ac_status ) 22265libltdl_cv_need_uscore=yes 22266fi 22267rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22268fi 22269fi 22270echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 22271echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 22272 fi 22273fi 22274 22275if test x"$libltdl_cv_need_uscore" = xyes; then 22276 22277cat >>confdefs.h <<\_ACEOF 22278#define NEED_USCORE 1 22279_ACEOF 22280 22281fi 22282 22283 22284########################################################################## 22285## ## 22286## Check if the dl library has the dladdr function ## 22287## ## 22288########################################################################## 22289echo "$as_me:$LINENO: checking for dladdr" >&5 22290echo $ECHO_N "checking for dladdr... $ECHO_C" >&6 22291if test "${ac_cv_func_dladdr+set}" = set; then 22292 echo $ECHO_N "(cached) $ECHO_C" >&6 22293else 22294 cat >conftest.$ac_ext <<_ACEOF 22295/* confdefs.h. */ 22296_ACEOF 22297cat confdefs.h >>conftest.$ac_ext 22298cat >>conftest.$ac_ext <<_ACEOF 22299/* end confdefs.h. */ 22300/* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr. 22301 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22302#define dladdr innocuous_dladdr 22303 22304/* System header to define __stub macros and hopefully few prototypes, 22305 which can conflict with char dladdr (); below. 22306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22307 <limits.h> exists even on freestanding compilers. */ 22308 22309#ifdef __STDC__ 22310# include <limits.h> 22311#else 22312# include <assert.h> 22313#endif 22314 22315#undef dladdr 22316 22317/* Override any gcc2 internal prototype to avoid an error. */ 22318#ifdef __cplusplus 22319extern "C" 22320{ 22321#endif 22322/* We use char because int might match the return type of a gcc2 22323 builtin and then its argument prototype would still apply. */ 22324char dladdr (); 22325/* The GNU C library defines this for functions which it implements 22326 to always fail with ENOSYS. Some functions are actually named 22327 something starting with __ and the normal name is an alias. */ 22328#if defined (__stub_dladdr) || defined (__stub___dladdr) 22329choke me 22330#else 22331char (*f) () = dladdr; 22332#endif 22333#ifdef __cplusplus 22334} 22335#endif 22336 22337int 22338main () 22339{ 22340return f != dladdr; 22341 ; 22342 return 0; 22343} 22344_ACEOF 22345rm -f conftest.$ac_objext conftest$ac_exeext 22346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22347 (eval $ac_link) 2>conftest.er1 22348 ac_status=$? 22349 grep -v '^ *+' conftest.er1 >conftest.err 22350 rm -f conftest.er1 22351 cat conftest.err >&5 22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22353 (exit $ac_status); } && 22354 { ac_try='test -z "$ac_c_werror_flag" 22355 || test ! -s conftest.err' 22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22357 (eval $ac_try) 2>&5 22358 ac_status=$? 22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22360 (exit $ac_status); }; } && 22361 { ac_try='test -s conftest$ac_exeext' 22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22363 (eval $ac_try) 2>&5 22364 ac_status=$? 22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22366 (exit $ac_status); }; }; then 22367 ac_cv_func_dladdr=yes 22368else 22369 echo "$as_me: failed program was:" >&5 22370sed 's/^/| /' conftest.$ac_ext >&5 22371 22372ac_cv_func_dladdr=no 22373fi 22374rm -f conftest.err conftest.$ac_objext \ 22375 conftest$ac_exeext conftest.$ac_ext 22376fi 22377echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5 22378echo "${ECHO_T}$ac_cv_func_dladdr" >&6 22379if test $ac_cv_func_dladdr = yes; then 22380 22381cat >>confdefs.h <<\_ACEOF 22382#define HAVE_DLADDR 1 22383_ACEOF 22384 22385else 22386 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5 22387echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6 22388if test "${ac_cv_lib_dl_dladdr+set}" = set; then 22389 echo $ECHO_N "(cached) $ECHO_C" >&6 22390else 22391 ac_check_lib_save_LIBS=$LIBS 22392LIBS="-ldl $LIBS" 22393cat >conftest.$ac_ext <<_ACEOF 22394/* confdefs.h. */ 22395_ACEOF 22396cat confdefs.h >>conftest.$ac_ext 22397cat >>conftest.$ac_ext <<_ACEOF 22398/* end confdefs.h. */ 22399 22400/* Override any gcc2 internal prototype to avoid an error. */ 22401#ifdef __cplusplus 22402extern "C" 22403#endif 22404/* We use char because int might match the return type of a gcc2 22405 builtin and then its argument prototype would still apply. */ 22406char dladdr (); 22407int 22408main () 22409{ 22410dladdr (); 22411 ; 22412 return 0; 22413} 22414_ACEOF 22415rm -f conftest.$ac_objext conftest$ac_exeext 22416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22417 (eval $ac_link) 2>conftest.er1 22418 ac_status=$? 22419 grep -v '^ *+' conftest.er1 >conftest.err 22420 rm -f conftest.er1 22421 cat conftest.err >&5 22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22423 (exit $ac_status); } && 22424 { ac_try='test -z "$ac_c_werror_flag" 22425 || test ! -s conftest.err' 22426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22427 (eval $ac_try) 2>&5 22428 ac_status=$? 22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22430 (exit $ac_status); }; } && 22431 { ac_try='test -s conftest$ac_exeext' 22432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22433 (eval $ac_try) 2>&5 22434 ac_status=$? 22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22436 (exit $ac_status); }; }; then 22437 ac_cv_lib_dl_dladdr=yes 22438else 22439 echo "$as_me: failed program was:" >&5 22440sed 's/^/| /' conftest.$ac_ext >&5 22441 22442ac_cv_lib_dl_dladdr=no 22443fi 22444rm -f conftest.err conftest.$ac_objext \ 22445 conftest$ac_exeext conftest.$ac_ext 22446LIBS=$ac_check_lib_save_LIBS 22447fi 22448echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5 22449echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6 22450if test $ac_cv_lib_dl_dladdr = yes; then 22451 22452cat >>confdefs.h <<\_ACEOF 22453#define HAVE_DLADDR 1 22454_ACEOF 22455 LIBADD_DL="-ldl" 22456fi 22457 22458 22459fi 22460 22461 22462echo "$as_me:$LINENO: checking for Dl_info" >&5 22463echo $ECHO_N "checking for Dl_info... $ECHO_C" >&6 22464if test "${ac_cv_type_Dl_info+set}" = set; then 22465 echo $ECHO_N "(cached) $ECHO_C" >&6 22466else 22467 cat >conftest.$ac_ext <<_ACEOF 22468/* confdefs.h. */ 22469_ACEOF 22470cat confdefs.h >>conftest.$ac_ext 22471cat >>conftest.$ac_ext <<_ACEOF 22472/* end confdefs.h. */ 22473#include <dlfcn.h> 22474 22475 22476int 22477main () 22478{ 22479if ((Dl_info *) 0) 22480 return 0; 22481if (sizeof (Dl_info)) 22482 return 0; 22483 ; 22484 return 0; 22485} 22486_ACEOF 22487rm -f conftest.$ac_objext 22488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22489 (eval $ac_compile) 2>conftest.er1 22490 ac_status=$? 22491 grep -v '^ *+' conftest.er1 >conftest.err 22492 rm -f conftest.er1 22493 cat conftest.err >&5 22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22495 (exit $ac_status); } && 22496 { ac_try='test -z "$ac_c_werror_flag" 22497 || test ! -s conftest.err' 22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22499 (eval $ac_try) 2>&5 22500 ac_status=$? 22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22502 (exit $ac_status); }; } && 22503 { ac_try='test -s conftest.$ac_objext' 22504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22505 (eval $ac_try) 2>&5 22506 ac_status=$? 22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22508 (exit $ac_status); }; }; then 22509 ac_cv_type_Dl_info=yes 22510else 22511 echo "$as_me: failed program was:" >&5 22512sed 's/^/| /' conftest.$ac_ext >&5 22513 22514ac_cv_type_Dl_info=no 22515fi 22516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22517fi 22518echo "$as_me:$LINENO: result: $ac_cv_type_Dl_info" >&5 22519echo "${ECHO_T}$ac_cv_type_Dl_info" >&6 22520if test $ac_cv_type_Dl_info = yes; then 22521 22522cat >>confdefs.h <<\_ACEOF 22523#define HAVE_DL_INFO 1 22524_ACEOF 22525 22526fi 22527 22528 22529 22530########################################################################## 22531## ## 22532## Set version information ## 22533## ## 22534########################################################################## 22535 22536echo "$as_me:$LINENO: checking for iODBC mode" >&5 22537echo $ECHO_N "checking for iODBC mode... $ECHO_C" >&6 22538# Check whether --enable-odbc3 or --disable-odbc3 was given. 22539if test "${enable_odbc3+set}" = set; then 22540 enableval="$enable_odbc3" 22541 22542 case "${enableval}" in 22543 yes) odbcmode=3 ;; 22544 no) odbcmode=2 22545 { { echo "$as_me:$LINENO: error: --disable-odbc3 temporarily disabled" >&5 22546echo "$as_me: error: --disable-odbc3 temporarily disabled" >&2;} 22547 { (exit 1); exit 1; }; } 22548 ;; 22549 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-odbc3" >&5 22550echo "$as_me: error: bad value ${enableval} for --enable-odbc3" >&2;} 22551 { (exit 1); exit 1; }; } ;; 22552 esac 22553 22554else 22555 22556 odbcmode=3 # set default to ODBC 3.x mode 22557 22558fi; 22559 22560if test "x$odbcmode" = "x3" 22561then 22562 lib_version=$lib3_version 22563 CFLAGS="$CFLAGS -DODBCVER=0x0350 -DIODBC_BUILD=$BUILD_VER" 22564 echo "$as_me:$LINENO: result: ODBC 3.x compatible mode" >&5 22565echo "${ECHO_T}ODBC 3.x compatible mode" >&6 22566else 22567 lib_version=$lib2_version 22568 CFLAGS="$CFLAGS -DODBCVER=0x0250 -DIODBC_BUILD=$BUILD_VER" 22569 echo "$as_me:$LINENO: result: ODBC 2.x compatible mode" >&5 22570echo "${ECHO_T}ODBC 2.x compatible mode" >&6 22571fi 22572 22573 22574 22575 22576########################################################################## 22577## ## 22578## Where to find the system odbc.ini file ** 22579## ## 22580########################################################################## 22581 22582# 22583# First determine the systemwide default directory according 22584# to GNU specifications 22585# 22586echo "$as_me:$LINENO: checking system config directory" >&5 22587echo $ECHO_N "checking system config directory... $ECHO_C" >&6 22588sysinidir=`eval echo $sysconfdir` 22589case "$sysinidir" in 22590NONE*) 22591 sysinidir=$ac_default_prefix/etc 22592 ;; 22593/usr/etc) 22594 sysinidir=/etc 22595 ;; 22596*) 22597 sysinidir=`eval echo $sysconfdir` 22598 ;; 22599esac 22600echo "$as_me:$LINENO: result: $sysinidir" >&5 22601echo "${ECHO_T}$sysinidir" >&6 22602 22603# 22604# Now allow to overrule this directory with a custom setting 22605# 22606echo "$as_me:$LINENO: checking for iODBC ini directory" >&5 22607echo $ECHO_N "checking for iODBC ini directory... $ECHO_C" >&6 22608 22609# Check whether --with-iodbc-inidir or --without-iodbc-inidir was given. 22610if test "${with_iodbc_inidir+set}" = set; then 22611 withval="$with_iodbc_inidir" 22612 22613 case "$withval" in 22614 yes|no) 22615 inidir=$sysinidir 22616 ;; 22617 *) 22618 inidir=$withval 22619 ;; 22620 esac 22621 22622fi; 22623echo "$as_me:$LINENO: result: $inidir" >&5 22624echo "${ECHO_T}$inidir" >&6 22625 22626 22627 22628cat >>confdefs.h <<_ACEOF 22629#define SYS_ODBC_INI "$inidir/odbc.ini" 22630_ACEOF 22631 22632 22633cat >>confdefs.h <<_ACEOF 22634#define SYS_ODBCINST_INI "$inidir/odbcinst.ini" 22635_ACEOF 22636 22637 22638# 22639# Now allow to override default FileDSN directory with a custom setting 22640# 22641filedsnpath=$inidir/ODBCDataSources 22642echo "$as_me:$LINENO: checking for FILEDSN default directory" >&5 22643echo $ECHO_N "checking for FILEDSN default directory... $ECHO_C" >&6 22644 22645# Check whether --with-iodbc-filedsnpath or --without-iodbc-filedsnpath was given. 22646if test "${with_iodbc_filedsnpath+set}" = set; then 22647 withval="$with_iodbc_filedsnpath" 22648 22649 case "$withval" in 22650 yes|no) 22651 filedsnpath=$inidir/ODBCDataSources 22652 ;; 22653 *) 22654 filedsnpath=$withval 22655 ;; 22656 esac 22657 22658fi; 22659echo "$as_me:$LINENO: result: $filedsnpath" >&5 22660echo "${ECHO_T}$filedsnpath" >&6 22661 22662 22663 22664cat >>confdefs.h <<_ACEOF 22665#define DEFAULT_FILEDSNPATH "$filedsnpath" 22666_ACEOF 22667 22668 22669 22670########################################################################## 22671## ## 22672## Create libodbc.so if requested ## 22673## ## 22674########################################################################## 22675 22676echo "$as_me:$LINENO: checking for libodbc.so link" >&5 22677echo $ECHO_N "checking for libodbc.so link... $ECHO_C" >&6 22678# Check whether --enable-libodbc or --disable-libodbc was given. 22679if test "${enable_libodbc+set}" = set; then 22680 enableval="$enable_libodbc" 22681 case "${enableval}" in 22682 yes) install_libodbc=true ;; 22683 no) install_libodbc=false ;; 22684 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libodbc" >&5 22685echo "$as_me: error: bad value ${enableval} for --enable-libodbc" >&2;} 22686 { (exit 1); exit 1; }; } ;; 22687 esac 22688 22689fi; 22690echo "$as_me:$LINENO: result: $install_libodbc" >&5 22691echo "${ECHO_T}$install_libodbc" >&6 22692 22693 22694 22695if test x$install_libodbc = xtrue; then 22696 INSTALL_LIBODBC_TRUE= 22697 INSTALL_LIBODBC_FALSE='#' 22698else 22699 INSTALL_LIBODBC_TRUE='#' 22700 INSTALL_LIBODBC_FALSE= 22701fi 22702 22703 22704 22705########################################################################## 22706## ## 22707## Checkout pthread situation ## 22708## ## 22709########################################################################## 22710 22711# for backward compatibility 22712 22713# Check whether --with-pthreads or --without-pthreads was given. 22714if test "${with_pthreads+set}" = set; then 22715 withval="$with_pthreads" 22716 22717 { echo "$as_me:$LINENO: WARNING: --with-pthreads flag is deprecated, use --enable-pthreads" >&5 22718echo "$as_me: WARNING: --with-pthreads flag is deprecated, use --enable-pthreads" >&2;} 22719 22720fi; 22721 22722 22723echo "$as_me:$LINENO: checking for thread model" >&5 22724echo $ECHO_N "checking for thread model... $ECHO_C" >&6 22725# Check whether --enable-pthreads or --disable-pthreads was given. 22726if test "${enable_pthreads+set}" = set; then 22727 enableval="$enable_pthreads" 22728 case "${enableval}" in 22729 yes) USE_PTHREADS=true ;; 22730 no) USE_PTHREADS=false ;; 22731 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-pthreads" >&5 22732echo "$as_me: error: bad value ${enableval} for --enable-pthreads" >&2;} 22733 { (exit 1); exit 1; }; } ;; 22734 esac 22735 22736else 22737 USE_PTHREADS=true 22738fi; 22739 22740if test x$USE_PTHREADS = xtrue 22741then 22742 echo "$as_me:$LINENO: result: enabled pthread support" >&5 22743echo "${ECHO_T}enabled pthread support" >&6 22744 CPPFLAGS="$CPPFLAGS -DWITH_PTHREADS -D_REENTRANT" 22745 found_lib=false 22746 22747 echo "$as_me:$LINENO: checking for OS dependent thread flags" >&5 22748echo $ECHO_N "checking for OS dependent thread flags... $ECHO_C" >&6 22749 case $host in 22750 *-aix*) 22751 # Unless overruled by the user, we prefer this compiler 22752 if test "x$CC" = "xcc" 22753 then 22754 CC=cc_r7 22755 fi 22756 echo "$as_me:$LINENO: result: using $CC for AIX" >&5 22757echo "${ECHO_T}using $CC for AIX" >&6 22758 ;; 22759 22760 *UnixWare*) 22761 CFLAGS="$CFLAGS -Kthread" 22762 echo "$as_me:$LINENO: result: use -Kthread for UnixWare" >&5 22763echo "${ECHO_T}use -Kthread for UnixWare" >&6 22764 ;; 22765 22766 i345686-dg-dgux*) 22767 CFLAGS="$CFLAGS -D_POSIX4A_DRAFT6_SOURCE" 22768 LIBS="$LIBS -lthread" 22769 echo "$as_me:$LINENO: result: use -lthread for DG/UX" >&5 22770echo "${ECHO_T}use -lthread for DG/UX" >&6 22771 ;; 22772 22773 *-freebsd*) 22774 CFLAGS="$CFLAGS -pthread" 22775 echo "$as_me:$LINENO: result: use -pthread for FreeBSD" >&5 22776echo "${ECHO_T}use -pthread for FreeBSD" >&6 22777 ;; 22778 22779 *-hpux*) 22780 LIBS="$LIBS -lpthread -lcl" 22781 echo "$as_me:$LINENO: result: use -lpthread for HP/UX" >&5 22782echo "${ECHO_T}use -lpthread for HP/UX" >&6 22783 ;; 22784 22785 *-osf3.*) 22786 CPPFLAGS="$CPPFLAGS -DOLD_PTHREADS" 22787 LIBS="$LIBS -lpthreads -lmach -lc_r" 22788 echo "$as_me:$LINENO: result: use -lpthreads for OSF 3.2" >&5 22789echo "${ECHO_T}use -lpthreads for OSF 3.2" >&6 22790 ;; 22791 22792 *-osf4.*) 22793 LIBS="$LIBS -lpthread" 22794 echo "$as_me:$LINENO: result: use -lpthread for OSF 4.x" >&5 22795echo "${ECHO_T}use -lpthread for OSF 4.x" >&6 22796 ;; 22797 22798 *) 22799 echo "$as_me:$LINENO: result: none" >&5 22800echo "${ECHO_T}none" >&6 22801 ;; 22802 esac 22803 22804 # 22805 # Check headers 22806 # 22807 if test "${ac_cv_header_pthread_h+set}" = set; then 22808 echo "$as_me:$LINENO: checking for pthread.h" >&5 22809echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6 22810if test "${ac_cv_header_pthread_h+set}" = set; then 22811 echo $ECHO_N "(cached) $ECHO_C" >&6 22812fi 22813echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 22814echo "${ECHO_T}$ac_cv_header_pthread_h" >&6 22815else 22816 # Is the header compilable? 22817echo "$as_me:$LINENO: checking pthread.h usability" >&5 22818echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6 22819cat >conftest.$ac_ext <<_ACEOF 22820/* confdefs.h. */ 22821_ACEOF 22822cat confdefs.h >>conftest.$ac_ext 22823cat >>conftest.$ac_ext <<_ACEOF 22824/* end confdefs.h. */ 22825$ac_includes_default 22826#include <pthread.h> 22827_ACEOF 22828rm -f conftest.$ac_objext 22829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22830 (eval $ac_compile) 2>conftest.er1 22831 ac_status=$? 22832 grep -v '^ *+' conftest.er1 >conftest.err 22833 rm -f conftest.er1 22834 cat conftest.err >&5 22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22836 (exit $ac_status); } && 22837 { ac_try='test -z "$ac_c_werror_flag" 22838 || test ! -s conftest.err' 22839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22840 (eval $ac_try) 2>&5 22841 ac_status=$? 22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22843 (exit $ac_status); }; } && 22844 { ac_try='test -s conftest.$ac_objext' 22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22846 (eval $ac_try) 2>&5 22847 ac_status=$? 22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22849 (exit $ac_status); }; }; then 22850 ac_header_compiler=yes 22851else 22852 echo "$as_me: failed program was:" >&5 22853sed 's/^/| /' conftest.$ac_ext >&5 22854 22855ac_header_compiler=no 22856fi 22857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22859echo "${ECHO_T}$ac_header_compiler" >&6 22860 22861# Is the header present? 22862echo "$as_me:$LINENO: checking pthread.h presence" >&5 22863echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6 22864cat >conftest.$ac_ext <<_ACEOF 22865/* confdefs.h. */ 22866_ACEOF 22867cat confdefs.h >>conftest.$ac_ext 22868cat >>conftest.$ac_ext <<_ACEOF 22869/* end confdefs.h. */ 22870#include <pthread.h> 22871_ACEOF 22872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 22873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 22874 ac_status=$? 22875 grep -v '^ *+' conftest.er1 >conftest.err 22876 rm -f conftest.er1 22877 cat conftest.err >&5 22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22879 (exit $ac_status); } >/dev/null; then 22880 if test -s conftest.err; then 22881 ac_cpp_err=$ac_c_preproc_warn_flag 22882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22883 else 22884 ac_cpp_err= 22885 fi 22886else 22887 ac_cpp_err=yes 22888fi 22889if test -z "$ac_cpp_err"; then 22890 ac_header_preproc=yes 22891else 22892 echo "$as_me: failed program was:" >&5 22893sed 's/^/| /' conftest.$ac_ext >&5 22894 22895 ac_header_preproc=no 22896fi 22897rm -f conftest.err conftest.$ac_ext 22898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22899echo "${ECHO_T}$ac_header_preproc" >&6 22900 22901# So? What about this header? 22902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22903 yes:no: ) 22904 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5 22905echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 22906 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5 22907echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;} 22908 ac_header_preproc=yes 22909 ;; 22910 no:yes:* ) 22911 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5 22912echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;} 22913 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5 22914echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;} 22915 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5 22916echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;} 22917 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5 22918echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;} 22919 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5 22920echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;} 22921 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5 22922echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;} 22923 ( 22924 cat <<\_ASBOX 22925## ----------------------------------- ## 22926## Report this to iodbc@openlinksw.com ## 22927## ----------------------------------- ## 22928_ASBOX 22929 ) | 22930 sed "s/^/$as_me: WARNING: /" >&2 22931 ;; 22932esac 22933echo "$as_me:$LINENO: checking for pthread.h" >&5 22934echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6 22935if test "${ac_cv_header_pthread_h+set}" = set; then 22936 echo $ECHO_N "(cached) $ECHO_C" >&6 22937else 22938 ac_cv_header_pthread_h=$ac_header_preproc 22939fi 22940echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 22941echo "${ECHO_T}$ac_cv_header_pthread_h" >&6 22942 22943fi 22944 22945 22946 22947 # 22948 # If mutex functions are in C library, we should not need to link 22949 # with -lpthread 22950 # 22951 echo "$as_me:$LINENO: checking for pthread_mutex_lock" >&5 22952echo $ECHO_N "checking for pthread_mutex_lock... $ECHO_C" >&6 22953if test "${ac_cv_func_pthread_mutex_lock+set}" = set; then 22954 echo $ECHO_N "(cached) $ECHO_C" >&6 22955else 22956 cat >conftest.$ac_ext <<_ACEOF 22957/* confdefs.h. */ 22958_ACEOF 22959cat confdefs.h >>conftest.$ac_ext 22960cat >>conftest.$ac_ext <<_ACEOF 22961/* end confdefs.h. */ 22962/* Define pthread_mutex_lock to an innocuous variant, in case <limits.h> declares pthread_mutex_lock. 22963 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22964#define pthread_mutex_lock innocuous_pthread_mutex_lock 22965 22966/* System header to define __stub macros and hopefully few prototypes, 22967 which can conflict with char pthread_mutex_lock (); below. 22968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22969 <limits.h> exists even on freestanding compilers. */ 22970 22971#ifdef __STDC__ 22972# include <limits.h> 22973#else 22974# include <assert.h> 22975#endif 22976 22977#undef pthread_mutex_lock 22978 22979/* Override any gcc2 internal prototype to avoid an error. */ 22980#ifdef __cplusplus 22981extern "C" 22982{ 22983#endif 22984/* We use char because int might match the return type of a gcc2 22985 builtin and then its argument prototype would still apply. */ 22986char pthread_mutex_lock (); 22987/* The GNU C library defines this for functions which it implements 22988 to always fail with ENOSYS. Some functions are actually named 22989 something starting with __ and the normal name is an alias. */ 22990#if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock) 22991choke me 22992#else 22993char (*f) () = pthread_mutex_lock; 22994#endif 22995#ifdef __cplusplus 22996} 22997#endif 22998 22999int 23000main () 23001{ 23002return f != pthread_mutex_lock; 23003 ; 23004 return 0; 23005} 23006_ACEOF 23007rm -f conftest.$ac_objext conftest$ac_exeext 23008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23009 (eval $ac_link) 2>conftest.er1 23010 ac_status=$? 23011 grep -v '^ *+' conftest.er1 >conftest.err 23012 rm -f conftest.er1 23013 cat conftest.err >&5 23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23015 (exit $ac_status); } && 23016 { ac_try='test -z "$ac_c_werror_flag" 23017 || test ! -s conftest.err' 23018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23019 (eval $ac_try) 2>&5 23020 ac_status=$? 23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23022 (exit $ac_status); }; } && 23023 { ac_try='test -s conftest$ac_exeext' 23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23025 (eval $ac_try) 2>&5 23026 ac_status=$? 23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23028 (exit $ac_status); }; }; then 23029 ac_cv_func_pthread_mutex_lock=yes 23030else 23031 echo "$as_me: failed program was:" >&5 23032sed 's/^/| /' conftest.$ac_ext >&5 23033 23034ac_cv_func_pthread_mutex_lock=no 23035fi 23036rm -f conftest.err conftest.$ac_objext \ 23037 conftest$ac_exeext conftest.$ac_ext 23038fi 23039echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_lock" >&5 23040echo "${ECHO_T}$ac_cv_func_pthread_mutex_lock" >&6 23041if test $ac_cv_func_pthread_mutex_lock = yes; then 23042 found_lib=true 23043fi 23044 23045 23046 # 23047 # Check out the various libraries 23048 # 23049 if test x$found_lib = xfalse 23050 then 23051 echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthreads " >&5 23052echo $ECHO_N "checking for pthread_mutex_lock in -lpthreads ... $ECHO_C" >&6 23053ac_save_LIBS="$LIBS" 23054LIBS="-lpthreads $LIBS" 23055 23056cat >conftest.$ac_ext <<_ACEOF 23057/* confdefs.h. */ 23058_ACEOF 23059cat confdefs.h >>conftest.$ac_ext 23060cat >>conftest.$ac_ext <<_ACEOF 23061/* end confdefs.h. */ 23062 23063#ifdef __cplusplus 23064extern "C" 23065#endif 23066 23067#if defined (HAVE_PTHREAD_H) 23068#include <pthread.h> 23069#endif 23070 23071int 23072main () 23073{ 23074pthread_mutex_lock(0) 23075 ; 23076 return 0; 23077} 23078_ACEOF 23079rm -f conftest.$ac_objext conftest$ac_exeext 23080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23081 (eval $ac_link) 2>conftest.er1 23082 ac_status=$? 23083 grep -v '^ *+' conftest.er1 >conftest.err 23084 rm -f conftest.er1 23085 cat conftest.err >&5 23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23087 (exit $ac_status); } && 23088 { ac_try='test -z "$ac_c_werror_flag" 23089 || test ! -s conftest.err' 23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23091 (eval $ac_try) 2>&5 23092 ac_status=$? 23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23094 (exit $ac_status); }; } && 23095 { ac_try='test -s conftest$ac_exeext' 23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23097 (eval $ac_try) 2>&5 23098 ac_status=$? 23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23100 (exit $ac_status); }; }; then 23101 eval "ac_cv_lib_$ac_lib_var=yes" 23102else 23103 echo "$as_me: failed program was:" >&5 23104sed 's/^/| /' conftest.$ac_ext >&5 23105 23106eval "ac_cv_lib_$ac_lib_var=no" 23107fi 23108rm -f conftest.err conftest.$ac_objext \ 23109 conftest$ac_exeext conftest.$ac_ext 23110LIBS="$ac_save_LIBS" 23111if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 23112echo "$as_me:$LINENO: result: yes" >&5 23113echo "${ECHO_T}yes" >&6 23114 23115 LIBS="$LIBS -lpthreads" 23116 found_lib=true 23117 23118else 23119 echo "$as_me:$LINENO: result: no" >&5 23120echo "${ECHO_T}no" >&6 23121fi 23122 23123 fi 23124 if test x$found_lib = xfalse 23125 then 23126 echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread " >&5 23127echo $ECHO_N "checking for pthread_mutex_lock in -lpthread ... $ECHO_C" >&6 23128ac_save_LIBS="$LIBS" 23129LIBS="-lpthread $LIBS" 23130 23131cat >conftest.$ac_ext <<_ACEOF 23132/* confdefs.h. */ 23133_ACEOF 23134cat confdefs.h >>conftest.$ac_ext 23135cat >>conftest.$ac_ext <<_ACEOF 23136/* end confdefs.h. */ 23137 23138#ifdef __cplusplus 23139extern "C" 23140#endif 23141 23142#if defined (HAVE_PTHREAD_H) 23143#include <pthread.h> 23144#endif 23145 23146int 23147main () 23148{ 23149pthread_mutex_lock(0) 23150 ; 23151 return 0; 23152} 23153_ACEOF 23154rm -f conftest.$ac_objext conftest$ac_exeext 23155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23156 (eval $ac_link) 2>conftest.er1 23157 ac_status=$? 23158 grep -v '^ *+' conftest.er1 >conftest.err 23159 rm -f conftest.er1 23160 cat conftest.err >&5 23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23162 (exit $ac_status); } && 23163 { ac_try='test -z "$ac_c_werror_flag" 23164 || test ! -s conftest.err' 23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23166 (eval $ac_try) 2>&5 23167 ac_status=$? 23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23169 (exit $ac_status); }; } && 23170 { ac_try='test -s conftest$ac_exeext' 23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23172 (eval $ac_try) 2>&5 23173 ac_status=$? 23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23175 (exit $ac_status); }; }; then 23176 eval "ac_cv_lib_$ac_lib_var=yes" 23177else 23178 echo "$as_me: failed program was:" >&5 23179sed 's/^/| /' conftest.$ac_ext >&5 23180 23181eval "ac_cv_lib_$ac_lib_var=no" 23182fi 23183rm -f conftest.err conftest.$ac_objext \ 23184 conftest$ac_exeext conftest.$ac_ext 23185LIBS="$ac_save_LIBS" 23186if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 23187echo "$as_me:$LINENO: result: yes" >&5 23188echo "${ECHO_T}yes" >&6 23189 23190 LIBS="$LIBS -lpthread" 23191 found_lib=true 23192 23193else 23194 echo "$as_me:$LINENO: result: no" >&5 23195echo "${ECHO_T}no" >&6 23196fi 23197 23198 fi 23199else 23200 echo "$as_me:$LINENO: result: no thread support" >&5 23201echo "${ECHO_T}no thread support" >&6 23202fi 23203 23204 23205########################################################################## 23206## ## 23207## OS dependent libraries ## 23208## ## 23209########################################################################## 23210LIBADD_OS="" 23211echo "$as_me:$LINENO: checking for OS dependent libraries and link flags" >&5 23212echo $ECHO_N "checking for OS dependent libraries and link flags... $ECHO_C" >&6 23213 23214 23215if false; then 23216 DARWIN_TRUE= 23217 DARWIN_FALSE='#' 23218else 23219 DARWIN_TRUE='#' 23220 DARWIN_FALSE= 23221fi 23222 23223case $host in 23224 *-hpux*) 23225 LDFLAGS="$LDFLAGS -Wl,+s" 23226 echo "$as_me:$LINENO: result: use -Wl,+s for HP/UX" >&5 23227echo "${ECHO_T}use -Wl,+s for HP/UX" >&6 23228 ;; 23229 *-darwin*) 23230 23231 23232if true; then 23233 DARWIN_TRUE= 23234 DARWIN_FALSE='#' 23235else 23236 DARWIN_TRUE='#' 23237 DARWIN_FALSE= 23238fi 23239 23240 CFLAGS="$CFLAGS -DNO_FRAMEWORKS" 23241 LIBADD_OS="-Wl,-framework,Carbon" 23242 echo "$as_me:$LINENO: result: $LIBADD_OS" >&5 23243echo "${ECHO_T}$LIBADD_OS" >&6 23244 ;; 23245 *) 23246 echo "$as_me:$LINENO: result: none" >&5 23247echo "${ECHO_T}none" >&6 23248 ;; 23249esac 23250 23251 23252 23253########################################################################## 23254## ## 23255## Generate Makefiles etc. ## 23256## ## 23257########################################################################## 23258 ac_config_files="$ac_config_files Makefile admin/Makefile admin/libiodbc.spec admin/libiodbc.pc bin/Makefile bin/iodbc-config etc/Makefile man/Makefile man/iodbc-config.1 man/iodbctest.1 man/iodbctestw.1 man/iodbcadm-gtk.1 include/Makefile iodbc/Makefile iodbc/trace/Makefile iodbcinst/Makefile iodbcadm/Makefile iodbcadm/gtk/Makefile drvproxy/Makefile drvproxy/gtk/Makefile samples/Makefile" 23259 23260 ac_config_commands="$ac_config_commands default" 23261 23262cat >confcache <<\_ACEOF 23263# This file is a shell script that caches the results of configure 23264# tests run on this system so they can be shared between configure 23265# scripts and configure runs, see configure's option --config-cache. 23266# It is not useful on other systems. If it contains results you don't 23267# want to keep, you may remove or edit it. 23268# 23269# config.status only pays attention to the cache file if you give it 23270# the --recheck option to rerun configure. 23271# 23272# `ac_cv_env_foo' variables (set or unset) will be overridden when 23273# loading this file, other *unset* `ac_cv_foo' will be assigned the 23274# following values. 23275 23276_ACEOF 23277 23278# The following way of writing the cache mishandles newlines in values, 23279# but we know of no workaround that is simple, portable, and efficient. 23280# So, don't put newlines in cache variables' values. 23281# Ultrix sh set writes to stderr and can't be redirected directly, 23282# and sets the high bit in the cache file unless we assign to the vars. 23283{ 23284 (set) 2>&1 | 23285 case `(ac_space=' '; set | grep ac_space) 2>&1` in 23286 *ac_space=\ *) 23287 # `set' does not quote correctly, so add quotes (double-quote 23288 # substitution turns \\\\ into \\, and sed turns \\ into \). 23289 sed -n \ 23290 "s/'/'\\\\''/g; 23291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23292 ;; 23293 *) 23294 # `set' quotes correctly as required by POSIX, so do not add quotes. 23295 sed -n \ 23296 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 23297 ;; 23298 esac; 23299} | 23300 sed ' 23301 t clear 23302 : clear 23303 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23304 t end 23305 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23306 : end' >>confcache 23307if diff $cache_file confcache >/dev/null 2>&1; then :; else 23308 if test -w $cache_file; then 23309 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 23310 cat confcache >$cache_file 23311 else 23312 echo "not updating unwritable cache $cache_file" 23313 fi 23314fi 23315rm -f confcache 23316 23317test "x$prefix" = xNONE && prefix=$ac_default_prefix 23318# Let make expand exec_prefix. 23319test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23320 23321# VPATH may cause trouble with some makes, so we remove $(srcdir), 23322# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23323# trailing colons and then remove the whole line if VPATH becomes empty 23324# (actually we leave an empty line to preserve line numbers). 23325if test "x$srcdir" = x.; then 23326 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23327s/:*\$(srcdir):*/:/; 23328s/:*\${srcdir}:*/:/; 23329s/:*@srcdir@:*/:/; 23330s/^\([^=]*=[ ]*\):*/\1/; 23331s/:*$//; 23332s/^[^=]*=[ ]*$//; 23333}' 23334fi 23335 23336DEFS=-DHAVE_CONFIG_H 23337 23338ac_libobjs= 23339ac_ltlibobjs= 23340for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23341 # 1. Remove the extension, and $U if already installed. 23342 ac_i=`echo "$ac_i" | 23343 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 23344 # 2. Add them. 23345 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 23346 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 23347done 23348LIBOBJS=$ac_libobjs 23349 23350LTLIBOBJS=$ac_ltlibobjs 23351 23352 23353if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 23354 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 23355Usually this means the macro was only invoked conditionally." >&5 23356echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 23357Usually this means the macro was only invoked conditionally." >&2;} 23358 { (exit 1); exit 1; }; } 23359fi 23360if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23361 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23362Usually this means the macro was only invoked conditionally." >&5 23363echo "$as_me: error: conditional \"AMDEP\" was never defined. 23364Usually this means the macro was only invoked conditionally." >&2;} 23365 { (exit 1); exit 1; }; } 23366fi 23367if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23368 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23369Usually this means the macro was only invoked conditionally." >&5 23370echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23371Usually this means the macro was only invoked conditionally." >&2;} 23372 { (exit 1); exit 1; }; } 23373fi 23374if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23375 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23376Usually this means the macro was only invoked conditionally." >&5 23377echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23378Usually this means the macro was only invoked conditionally." >&2;} 23379 { (exit 1); exit 1; }; } 23380fi 23381if test -z "${GUI_TRUE}" && test -z "${GUI_FALSE}"; then 23382 { { echo "$as_me:$LINENO: error: conditional \"GUI\" was never defined. 23383Usually this means the macro was only invoked conditionally." >&5 23384echo "$as_me: error: conditional \"GUI\" was never defined. 23385Usually this means the macro was only invoked conditionally." >&2;} 23386 { (exit 1); exit 1; }; } 23387fi 23388if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then 23389 { { echo "$as_me:$LINENO: error: conditional \"GTK\" was never defined. 23390Usually this means the macro was only invoked conditionally." >&5 23391echo "$as_me: error: conditional \"GTK\" was never defined. 23392Usually this means the macro was only invoked conditionally." >&2;} 23393 { (exit 1); exit 1; }; } 23394fi 23395if test -z "${INSTALL_LIBODBC_TRUE}" && test -z "${INSTALL_LIBODBC_FALSE}"; then 23396 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBODBC\" was never defined. 23397Usually this means the macro was only invoked conditionally." >&5 23398echo "$as_me: error: conditional \"INSTALL_LIBODBC\" was never defined. 23399Usually this means the macro was only invoked conditionally." >&2;} 23400 { (exit 1); exit 1; }; } 23401fi 23402if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then 23403 { { echo "$as_me:$LINENO: error: conditional \"DARWIN\" was never defined. 23404Usually this means the macro was only invoked conditionally." >&5 23405echo "$as_me: error: conditional \"DARWIN\" was never defined. 23406Usually this means the macro was only invoked conditionally." >&2;} 23407 { (exit 1); exit 1; }; } 23408fi 23409if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then 23410 { { echo "$as_me:$LINENO: error: conditional \"DARWIN\" was never defined. 23411Usually this means the macro was only invoked conditionally." >&5 23412echo "$as_me: error: conditional \"DARWIN\" was never defined. 23413Usually this means the macro was only invoked conditionally." >&2;} 23414 { (exit 1); exit 1; }; } 23415fi 23416 23417: ${CONFIG_STATUS=./config.status} 23418ac_clean_files_save=$ac_clean_files 23419ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23420{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23421echo "$as_me: creating $CONFIG_STATUS" >&6;} 23422cat >$CONFIG_STATUS <<_ACEOF 23423#! $SHELL 23424# Generated by $as_me. 23425# Run this file to recreate the current configuration. 23426# Compiler output produced by configure, useful for debugging 23427# configure, is in config.log if it exists. 23428 23429debug=false 23430ac_cs_recheck=false 23431ac_cs_silent=false 23432SHELL=\${CONFIG_SHELL-$SHELL} 23433_ACEOF 23434 23435cat >>$CONFIG_STATUS <<\_ACEOF 23436## --------------------- ## 23437## M4sh Initialization. ## 23438## --------------------- ## 23439 23440# Be Bourne compatible 23441if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23442 emulate sh 23443 NULLCMD=: 23444 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23445 # is contrary to our usage. Disable this feature. 23446 alias -g '${1+"$@"}'='"$@"' 23447elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23448 set -o posix 23449fi 23450DUALCASE=1; export DUALCASE # for MKS sh 23451 23452# Support unset when possible. 23453if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23454 as_unset=unset 23455else 23456 as_unset=false 23457fi 23458 23459 23460# Work around bugs in pre-3.0 UWIN ksh. 23461$as_unset ENV MAIL MAILPATH 23462PS1='$ ' 23463PS2='> ' 23464PS4='+ ' 23465 23466# NLS nuisances. 23467for as_var in \ 23468 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23469 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23470 LC_TELEPHONE LC_TIME 23471do 23472 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23473 eval $as_var=C; export $as_var 23474 else 23475 $as_unset $as_var 23476 fi 23477done 23478 23479# Required to use basename. 23480if expr a : '\(a\)' >/dev/null 2>&1; then 23481 as_expr=expr 23482else 23483 as_expr=false 23484fi 23485 23486if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 23487 as_basename=basename 23488else 23489 as_basename=false 23490fi 23491 23492 23493# Name of the executable. 23494as_me=`$as_basename "$0" || 23495$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23496 X"$0" : 'X\(//\)$' \| \ 23497 X"$0" : 'X\(/\)$' \| \ 23498 . : '\(.\)' 2>/dev/null || 23499echo X/"$0" | 23500 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 23501 /^X\/\(\/\/\)$/{ s//\1/; q; } 23502 /^X\/\(\/\).*/{ s//\1/; q; } 23503 s/.*/./; q'` 23504 23505 23506# PATH needs CR, and LINENO needs CR and PATH. 23507# Avoid depending upon Character Ranges. 23508as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23509as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23510as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23511as_cr_digits='0123456789' 23512as_cr_alnum=$as_cr_Letters$as_cr_digits 23513 23514# The user is always right. 23515if test "${PATH_SEPARATOR+set}" != set; then 23516 echo "#! /bin/sh" >conf$$.sh 23517 echo "exit 0" >>conf$$.sh 23518 chmod +x conf$$.sh 23519 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23520 PATH_SEPARATOR=';' 23521 else 23522 PATH_SEPARATOR=: 23523 fi 23524 rm -f conf$$.sh 23525fi 23526 23527 23528 as_lineno_1=$LINENO 23529 as_lineno_2=$LINENO 23530 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23531 test "x$as_lineno_1" != "x$as_lineno_2" && 23532 test "x$as_lineno_3" = "x$as_lineno_2" || { 23533 # Find who we are. Look in the path if we contain no path at all 23534 # relative or not. 23535 case $0 in 23536 *[\\/]* ) as_myself=$0 ;; 23537 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23538for as_dir in $PATH 23539do 23540 IFS=$as_save_IFS 23541 test -z "$as_dir" && as_dir=. 23542 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23543done 23544 23545 ;; 23546 esac 23547 # We did not find ourselves, most probably we were run as `sh COMMAND' 23548 # in which case we are not to be found in the path. 23549 if test "x$as_myself" = x; then 23550 as_myself=$0 23551 fi 23552 if test ! -f "$as_myself"; then 23553 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 23554echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 23555 { (exit 1); exit 1; }; } 23556 fi 23557 case $CONFIG_SHELL in 23558 '') 23559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23560for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 23561do 23562 IFS=$as_save_IFS 23563 test -z "$as_dir" && as_dir=. 23564 for as_base in sh bash ksh sh5; do 23565 case $as_dir in 23566 /*) 23567 if ("$as_dir/$as_base" -c ' 23568 as_lineno_1=$LINENO 23569 as_lineno_2=$LINENO 23570 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23571 test "x$as_lineno_1" != "x$as_lineno_2" && 23572 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 23573 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 23574 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 23575 CONFIG_SHELL=$as_dir/$as_base 23576 export CONFIG_SHELL 23577 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 23578 fi;; 23579 esac 23580 done 23581done 23582;; 23583 esac 23584 23585 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23586 # uniformly replaced by the line number. The first 'sed' inserts a 23587 # line-number line before each line; the second 'sed' does the real 23588 # work. The second script uses 'N' to pair each line-number line 23589 # with the numbered line, and appends trailing '-' during 23590 # substitution so that $LINENO is not a special case at line end. 23591 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23592 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 23593 sed '=' <$as_myself | 23594 sed ' 23595 N 23596 s,$,-, 23597 : loop 23598 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 23599 t loop 23600 s,-$,, 23601 s,^['$as_cr_digits']*\n,, 23602 ' >$as_me.lineno && 23603 chmod +x $as_me.lineno || 23604 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 23605echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 23606 { (exit 1); exit 1; }; } 23607 23608 # Don't try to exec as it changes $[0], causing all sort of problems 23609 # (the dirname of $[0] is not the place where we might find the 23610 # original and so on. Autoconf is especially sensible to this). 23611 . ./$as_me.lineno 23612 # Exit status is that of the last command. 23613 exit 23614} 23615 23616 23617case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 23618 *c*,-n*) ECHO_N= ECHO_C=' 23619' ECHO_T=' ' ;; 23620 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 23621 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 23622esac 23623 23624if expr a : '\(a\)' >/dev/null 2>&1; then 23625 as_expr=expr 23626else 23627 as_expr=false 23628fi 23629 23630rm -f conf$$ conf$$.exe conf$$.file 23631echo >conf$$.file 23632if ln -s conf$$.file conf$$ 2>/dev/null; then 23633 # We could just check for DJGPP; but this test a) works b) is more generic 23634 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 23635 if test -f conf$$.exe; then 23636 # Don't use ln at all; we don't have any links 23637 as_ln_s='cp -p' 23638 else 23639 as_ln_s='ln -s' 23640 fi 23641elif ln conf$$.file conf$$ 2>/dev/null; then 23642 as_ln_s=ln 23643else 23644 as_ln_s='cp -p' 23645fi 23646rm -f conf$$ conf$$.exe conf$$.file 23647 23648if mkdir -p . 2>/dev/null; then 23649 as_mkdir_p=: 23650else 23651 test -d ./-p && rmdir ./-p 23652 as_mkdir_p=false 23653fi 23654 23655as_executable_p="test -f" 23656 23657# Sed expression to map a string onto a valid CPP name. 23658as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23659 23660# Sed expression to map a string onto a valid variable name. 23661as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23662 23663 23664# IFS 23665# We need space, tab and new line, in precisely that order. 23666as_nl=' 23667' 23668IFS=" $as_nl" 23669 23670# CDPATH. 23671$as_unset CDPATH 23672 23673exec 6>&1 23674 23675# Open the log real soon, to keep \$[0] and so on meaningful, and to 23676# report actual input values of CONFIG_FILES etc. instead of their 23677# values after options handling. Logging --version etc. is OK. 23678exec 5>>config.log 23679{ 23680 echo 23681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23682## Running $as_me. ## 23683_ASBOX 23684} >&5 23685cat >&5 <<_CSEOF 23686 23687This file was extended by iODBC Driver Manager $as_me 3.52.6, which was 23688generated by GNU Autoconf 2.59. Invocation command line was 23689 23690 CONFIG_FILES = $CONFIG_FILES 23691 CONFIG_HEADERS = $CONFIG_HEADERS 23692 CONFIG_LINKS = $CONFIG_LINKS 23693 CONFIG_COMMANDS = $CONFIG_COMMANDS 23694 $ $0 $@ 23695 23696_CSEOF 23697echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 23698echo >&5 23699_ACEOF 23700 23701# Files that config.status was made for. 23702if test -n "$ac_config_files"; then 23703 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 23704fi 23705 23706if test -n "$ac_config_headers"; then 23707 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 23708fi 23709 23710if test -n "$ac_config_links"; then 23711 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 23712fi 23713 23714if test -n "$ac_config_commands"; then 23715 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 23716fi 23717 23718cat >>$CONFIG_STATUS <<\_ACEOF 23719 23720ac_cs_usage="\ 23721\`$as_me' instantiates files from templates according to the 23722current configuration. 23723 23724Usage: $0 [OPTIONS] [FILE]... 23725 23726 -h, --help print this help, then exit 23727 -V, --version print version number, then exit 23728 -q, --quiet do not print progress messages 23729 -d, --debug don't remove temporary files 23730 --recheck update $as_me by reconfiguring in the same conditions 23731 --file=FILE[:TEMPLATE] 23732 instantiate the configuration file FILE 23733 --header=FILE[:TEMPLATE] 23734 instantiate the configuration header FILE 23735 23736Configuration files: 23737$config_files 23738 23739Configuration headers: 23740$config_headers 23741 23742Configuration commands: 23743$config_commands 23744 23745Report bugs to <bug-autoconf@gnu.org>." 23746_ACEOF 23747 23748cat >>$CONFIG_STATUS <<_ACEOF 23749ac_cs_version="\\ 23750iODBC Driver Manager config.status 3.52.6 23751configured by $0, generated by GNU Autoconf 2.59, 23752 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23753 23754Copyright (C) 2003 Free Software Foundation, Inc. 23755This config.status script is free software; the Free Software Foundation 23756gives unlimited permission to copy, distribute and modify it." 23757srcdir=$srcdir 23758INSTALL="$INSTALL" 23759_ACEOF 23760 23761cat >>$CONFIG_STATUS <<\_ACEOF 23762# If no file are specified by the user, then we need to provide default 23763# value. By we need to know if files were specified by the user. 23764ac_need_defaults=: 23765while test $# != 0 23766do 23767 case $1 in 23768 --*=*) 23769 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23770 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23771 ac_shift=: 23772 ;; 23773 -*) 23774 ac_option=$1 23775 ac_optarg=$2 23776 ac_shift=shift 23777 ;; 23778 *) # This is not an option, so the user has probably given explicit 23779 # arguments. 23780 ac_option=$1 23781 ac_need_defaults=false;; 23782 esac 23783 23784 case $ac_option in 23785 # Handling of the options. 23786_ACEOF 23787cat >>$CONFIG_STATUS <<\_ACEOF 23788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23789 ac_cs_recheck=: ;; 23790 --version | --vers* | -V ) 23791 echo "$ac_cs_version"; exit 0 ;; 23792 --he | --h) 23793 # Conflict between --help and --header 23794 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23795Try \`$0 --help' for more information." >&5 23796echo "$as_me: error: ambiguous option: $1 23797Try \`$0 --help' for more information." >&2;} 23798 { (exit 1); exit 1; }; };; 23799 --help | --hel | -h ) 23800 echo "$ac_cs_usage"; exit 0 ;; 23801 --debug | --d* | -d ) 23802 debug=: ;; 23803 --file | --fil | --fi | --f ) 23804 $ac_shift 23805 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23806 ac_need_defaults=false;; 23807 --header | --heade | --head | --hea ) 23808 $ac_shift 23809 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23810 ac_need_defaults=false;; 23811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23812 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23813 ac_cs_silent=: ;; 23814 23815 # This is an error. 23816 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23817Try \`$0 --help' for more information." >&5 23818echo "$as_me: error: unrecognized option: $1 23819Try \`$0 --help' for more information." >&2;} 23820 { (exit 1); exit 1; }; } ;; 23821 23822 *) ac_config_targets="$ac_config_targets $1" ;; 23823 23824 esac 23825 shift 23826done 23827 23828ac_configure_extra_args= 23829 23830if $ac_cs_silent; then 23831 exec 6>/dev/null 23832 ac_configure_extra_args="$ac_configure_extra_args --silent" 23833fi 23834 23835_ACEOF 23836cat >>$CONFIG_STATUS <<_ACEOF 23837if \$ac_cs_recheck; then 23838 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23839 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23840fi 23841 23842_ACEOF 23843 23844cat >>$CONFIG_STATUS <<_ACEOF 23845# 23846# INIT-COMMANDS section. 23847# 23848 23849AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23850 23851_ACEOF 23852 23853 23854 23855cat >>$CONFIG_STATUS <<\_ACEOF 23856for ac_config_target in $ac_config_targets 23857do 23858 case "$ac_config_target" in 23859 # Handling of arguments. 23860 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23861 "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 23862 "admin/libiodbc.spec" ) CONFIG_FILES="$CONFIG_FILES admin/libiodbc.spec" ;; 23863 "admin/libiodbc.pc" ) CONFIG_FILES="$CONFIG_FILES admin/libiodbc.pc" ;; 23864 "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 23865 "bin/iodbc-config" ) CONFIG_FILES="$CONFIG_FILES bin/iodbc-config" ;; 23866 "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 23867 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 23868 "man/iodbc-config.1" ) CONFIG_FILES="$CONFIG_FILES man/iodbc-config.1" ;; 23869 "man/iodbctest.1" ) CONFIG_FILES="$CONFIG_FILES man/iodbctest.1" ;; 23870 "man/iodbctestw.1" ) CONFIG_FILES="$CONFIG_FILES man/iodbctestw.1" ;; 23871 "man/iodbcadm-gtk.1" ) CONFIG_FILES="$CONFIG_FILES man/iodbcadm-gtk.1" ;; 23872 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 23873 "iodbc/Makefile" ) CONFIG_FILES="$CONFIG_FILES iodbc/Makefile" ;; 23874 "iodbc/trace/Makefile" ) CONFIG_FILES="$CONFIG_FILES iodbc/trace/Makefile" ;; 23875 "iodbcinst/Makefile" ) CONFIG_FILES="$CONFIG_FILES iodbcinst/Makefile" ;; 23876 "iodbcadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES iodbcadm/Makefile" ;; 23877 "iodbcadm/gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES iodbcadm/gtk/Makefile" ;; 23878 "drvproxy/Makefile" ) CONFIG_FILES="$CONFIG_FILES drvproxy/Makefile" ;; 23879 "drvproxy/gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES drvproxy/gtk/Makefile" ;; 23880 "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; 23881 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23882 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 23883 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 23884 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23885echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23886 { (exit 1); exit 1; }; };; 23887 esac 23888done 23889 23890# If the user did not use the arguments to specify the items to instantiate, 23891# then the envvar interface is used. Set only those that are not. 23892# We use the long form for the default assignment because of an extremely 23893# bizarre bug on SunOS 4.1.3. 23894if $ac_need_defaults; then 23895 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23896 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23897 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23898fi 23899 23900# Have a temporary directory for convenience. Make it in the build tree 23901# simply because there is no reason to put it here, and in addition, 23902# creating and moving files from /tmp can sometimes cause problems. 23903# Create a temporary directory, and hook for its removal unless debugging. 23904$debug || 23905{ 23906 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23907 trap '{ (exit 1); exit 1; }' 1 2 13 15 23908} 23909 23910# Create a (secure) tmp directory for tmp files. 23911 23912{ 23913 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23914 test -n "$tmp" && test -d "$tmp" 23915} || 23916{ 23917 tmp=./confstat$$-$RANDOM 23918 (umask 077 && mkdir $tmp) 23919} || 23920{ 23921 echo "$me: cannot create a temporary directory in ." >&2 23922 { (exit 1); exit 1; } 23923} 23924 23925_ACEOF 23926 23927cat >>$CONFIG_STATUS <<_ACEOF 23928 23929# 23930# CONFIG_FILES section. 23931# 23932 23933# No need to generate the scripts if there are no CONFIG_FILES. 23934# This happens for instance when ./config.status config.h 23935if test -n "\$CONFIG_FILES"; then 23936 # Protect against being on the right side of a sed subst in config.status. 23937 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23938 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23939s,@SHELL@,$SHELL,;t t 23940s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23941s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23942s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23943s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23944s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23945s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23946s,@exec_prefix@,$exec_prefix,;t t 23947s,@prefix@,$prefix,;t t 23948s,@program_transform_name@,$program_transform_name,;t t 23949s,@bindir@,$bindir,;t t 23950s,@sbindir@,$sbindir,;t t 23951s,@libexecdir@,$libexecdir,;t t 23952s,@datadir@,$datadir,;t t 23953s,@sysconfdir@,$sysconfdir,;t t 23954s,@sharedstatedir@,$sharedstatedir,;t t 23955s,@localstatedir@,$localstatedir,;t t 23956s,@libdir@,$libdir,;t t 23957s,@includedir@,$includedir,;t t 23958s,@oldincludedir@,$oldincludedir,;t t 23959s,@infodir@,$infodir,;t t 23960s,@mandir@,$mandir,;t t 23961s,@build_alias@,$build_alias,;t t 23962s,@host_alias@,$host_alias,;t t 23963s,@target_alias@,$target_alias,;t t 23964s,@DEFS@,$DEFS,;t t 23965s,@ECHO_C@,$ECHO_C,;t t 23966s,@ECHO_N@,$ECHO_N,;t t 23967s,@ECHO_T@,$ECHO_T,;t t 23968s,@LIBS@,$LIBS,;t t 23969s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23970s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23971s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23972s,@CYGPATH_W@,$CYGPATH_W,;t t 23973s,@PACKAGE@,$PACKAGE,;t t 23974s,@VERSION@,$VERSION,;t t 23975s,@ACLOCAL@,$ACLOCAL,;t t 23976s,@AUTOCONF@,$AUTOCONF,;t t 23977s,@AUTOMAKE@,$AUTOMAKE,;t t 23978s,@AUTOHEADER@,$AUTOHEADER,;t t 23979s,@MAKEINFO@,$MAKEINFO,;t t 23980s,@install_sh@,$install_sh,;t t 23981s,@STRIP@,$STRIP,;t t 23982s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23983s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 23984s,@mkdir_p@,$mkdir_p,;t t 23985s,@AWK@,$AWK,;t t 23986s,@SET_MAKE@,$SET_MAKE,;t t 23987s,@am__leading_dot@,$am__leading_dot,;t t 23988s,@AMTAR@,$AMTAR,;t t 23989s,@am__tar@,$am__tar,;t t 23990s,@am__untar@,$am__untar,;t t 23991s,@build@,$build,;t t 23992s,@build_cpu@,$build_cpu,;t t 23993s,@build_vendor@,$build_vendor,;t t 23994s,@build_os@,$build_os,;t t 23995s,@host@,$host,;t t 23996s,@host_cpu@,$host_cpu,;t t 23997s,@host_vendor@,$host_vendor,;t t 23998s,@host_os@,$host_os,;t t 23999s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 24000s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 24001s,@MAINT@,$MAINT,;t t 24002s,@CC@,$CC,;t t 24003s,@CFLAGS@,$CFLAGS,;t t 24004s,@LDFLAGS@,$LDFLAGS,;t t 24005s,@CPPFLAGS@,$CPPFLAGS,;t t 24006s,@ac_ct_CC@,$ac_ct_CC,;t t 24007s,@EXEEXT@,$EXEEXT,;t t 24008s,@OBJEXT@,$OBJEXT,;t t 24009s,@DEPDIR@,$DEPDIR,;t t 24010s,@am__include@,$am__include,;t t 24011s,@am__quote@,$am__quote,;t t 24012s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 24013s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 24014s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 24015s,@CCDEPMODE@,$CCDEPMODE,;t t 24016s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 24017s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 24018s,@CPP@,$CPP,;t t 24019s,@LN_S@,$LN_S,;t t 24020s,@EGREP@,$EGREP,;t t 24021s,@ECHO@,$ECHO,;t t 24022s,@AR@,$AR,;t t 24023s,@ac_ct_AR@,$ac_ct_AR,;t t 24024s,@RANLIB@,$RANLIB,;t t 24025s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 24026s,@CXX@,$CXX,;t t 24027s,@CXXFLAGS@,$CXXFLAGS,;t t 24028s,@ac_ct_CXX@,$ac_ct_CXX,;t t 24029s,@CXXDEPMODE@,$CXXDEPMODE,;t t 24030s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 24031s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 24032s,@CXXCPP@,$CXXCPP,;t t 24033s,@F77@,$F77,;t t 24034s,@FFLAGS@,$FFLAGS,;t t 24035s,@ac_ct_F77@,$ac_ct_F77,;t t 24036s,@LIBTOOL@,$LIBTOOL,;t t 24037s,@PKG_CONFIG@,$PKG_CONFIG,;t t 24038s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t 24039s,@GTK_LIBS@,$GTK_LIBS,;t t 24040s,@GTK_CONFIG@,$GTK_CONFIG,;t t 24041s,@GUI_TRUE@,$GUI_TRUE,;t t 24042s,@GUI_FALSE@,$GUI_FALSE,;t t 24043s,@GTK_TRUE@,$GTK_TRUE,;t t 24044s,@GTK_FALSE@,$GTK_FALSE,;t t 24045s,@LIBADD_DL@,$LIBADD_DL,;t t 24046s,@odbcmode@,$odbcmode,;t t 24047s,@lib_version@,$lib_version,;t t 24048s,@inidir@,$inidir,;t t 24049s,@filedsnpath@,$filedsnpath,;t t 24050s,@INSTALL_LIBODBC_TRUE@,$INSTALL_LIBODBC_TRUE,;t t 24051s,@INSTALL_LIBODBC_FALSE@,$INSTALL_LIBODBC_FALSE,;t t 24052s,@DARWIN_TRUE@,$DARWIN_TRUE,;t t 24053s,@DARWIN_FALSE@,$DARWIN_FALSE,;t t 24054s,@LIBADD_OS@,$LIBADD_OS,;t t 24055s,@LIBOBJS@,$LIBOBJS,;t t 24056s,@LTLIBOBJS@,$LTLIBOBJS,;t t 24057CEOF 24058 24059_ACEOF 24060 24061 cat >>$CONFIG_STATUS <<\_ACEOF 24062 # Split the substitutions into bite-sized pieces for seds with 24063 # small command number limits, like on Digital OSF/1 and HP-UX. 24064 ac_max_sed_lines=48 24065 ac_sed_frag=1 # Number of current file. 24066 ac_beg=1 # First line for current file. 24067 ac_end=$ac_max_sed_lines # Line after last line for current file. 24068 ac_more_lines=: 24069 ac_sed_cmds= 24070 while $ac_more_lines; do 24071 if test $ac_beg -gt 1; then 24072 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24073 else 24074 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24075 fi 24076 if test ! -s $tmp/subs.frag; then 24077 ac_more_lines=false 24078 else 24079 # The purpose of the label and of the branching condition is to 24080 # speed up the sed processing (if there are no `@' at all, there 24081 # is no need to browse any of the substitutions). 24082 # These are the two extra sed commands mentioned above. 24083 (echo ':t 24084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 24085 if test -z "$ac_sed_cmds"; then 24086 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 24087 else 24088 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 24089 fi 24090 ac_sed_frag=`expr $ac_sed_frag + 1` 24091 ac_beg=$ac_end 24092 ac_end=`expr $ac_end + $ac_max_sed_lines` 24093 fi 24094 done 24095 if test -z "$ac_sed_cmds"; then 24096 ac_sed_cmds=cat 24097 fi 24098fi # test -n "$CONFIG_FILES" 24099 24100_ACEOF 24101cat >>$CONFIG_STATUS <<\_ACEOF 24102for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 24103 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24104 case $ac_file in 24105 - | *:- | *:-:* ) # input from stdin 24106 cat >$tmp/stdin 24107 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24108 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24109 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24110 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24111 * ) ac_file_in=$ac_file.in ;; 24112 esac 24113 24114 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 24115 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24116$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24117 X"$ac_file" : 'X\(//\)[^/]' \| \ 24118 X"$ac_file" : 'X\(//\)$' \| \ 24119 X"$ac_file" : 'X\(/\)' \| \ 24120 . : '\(.\)' 2>/dev/null || 24121echo X"$ac_file" | 24122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24123 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24124 /^X\(\/\/\)$/{ s//\1/; q; } 24125 /^X\(\/\).*/{ s//\1/; q; } 24126 s/.*/./; q'` 24127 { if $as_mkdir_p; then 24128 mkdir -p "$ac_dir" 24129 else 24130 as_dir="$ac_dir" 24131 as_dirs= 24132 while test ! -d "$as_dir"; do 24133 as_dirs="$as_dir $as_dirs" 24134 as_dir=`(dirname "$as_dir") 2>/dev/null || 24135$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24136 X"$as_dir" : 'X\(//\)[^/]' \| \ 24137 X"$as_dir" : 'X\(//\)$' \| \ 24138 X"$as_dir" : 'X\(/\)' \| \ 24139 . : '\(.\)' 2>/dev/null || 24140echo X"$as_dir" | 24141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24142 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24143 /^X\(\/\/\)$/{ s//\1/; q; } 24144 /^X\(\/\).*/{ s//\1/; q; } 24145 s/.*/./; q'` 24146 done 24147 test ! -n "$as_dirs" || mkdir $as_dirs 24148 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24149echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24150 { (exit 1); exit 1; }; }; } 24151 24152 ac_builddir=. 24153 24154if test "$ac_dir" != .; then 24155 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24156 # A "../" for each directory in $ac_dir_suffix. 24157 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24158else 24159 ac_dir_suffix= ac_top_builddir= 24160fi 24161 24162case $srcdir in 24163 .) # No --srcdir option. We are building in place. 24164 ac_srcdir=. 24165 if test -z "$ac_top_builddir"; then 24166 ac_top_srcdir=. 24167 else 24168 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24169 fi ;; 24170 [\\/]* | ?:[\\/]* ) # Absolute path. 24171 ac_srcdir=$srcdir$ac_dir_suffix; 24172 ac_top_srcdir=$srcdir ;; 24173 *) # Relative path. 24174 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24175 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24176esac 24177 24178# Do not use `cd foo && pwd` to compute absolute paths, because 24179# the directories may not exist. 24180case `pwd` in 24181.) ac_abs_builddir="$ac_dir";; 24182*) 24183 case "$ac_dir" in 24184 .) ac_abs_builddir=`pwd`;; 24185 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24186 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24187 esac;; 24188esac 24189case $ac_abs_builddir in 24190.) ac_abs_top_builddir=${ac_top_builddir}.;; 24191*) 24192 case ${ac_top_builddir}. in 24193 .) ac_abs_top_builddir=$ac_abs_builddir;; 24194 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24195 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24196 esac;; 24197esac 24198case $ac_abs_builddir in 24199.) ac_abs_srcdir=$ac_srcdir;; 24200*) 24201 case $ac_srcdir in 24202 .) ac_abs_srcdir=$ac_abs_builddir;; 24203 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24204 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24205 esac;; 24206esac 24207case $ac_abs_builddir in 24208.) ac_abs_top_srcdir=$ac_top_srcdir;; 24209*) 24210 case $ac_top_srcdir in 24211 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24212 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24213 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24214 esac;; 24215esac 24216 24217 24218 case $INSTALL in 24219 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24220 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 24221 esac 24222 24223 if test x"$ac_file" != x-; then 24224 { echo "$as_me:$LINENO: creating $ac_file" >&5 24225echo "$as_me: creating $ac_file" >&6;} 24226 rm -f "$ac_file" 24227 fi 24228 # Let's still pretend it is `configure' which instantiates (i.e., don't 24229 # use $as_me), people would be surprised to read: 24230 # /* config.h. Generated by config.status. */ 24231 if test x"$ac_file" = x-; then 24232 configure_input= 24233 else 24234 configure_input="$ac_file. " 24235 fi 24236 configure_input=$configure_input"Generated from `echo $ac_file_in | 24237 sed 's,.*/,,'` by configure." 24238 24239 # First look for the input files in the build tree, otherwise in the 24240 # src tree. 24241 ac_file_inputs=`IFS=: 24242 for f in $ac_file_in; do 24243 case $f in 24244 -) echo $tmp/stdin ;; 24245 [\\/$]*) 24246 # Absolute (can't be DOS-style, as IFS=:) 24247 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24248echo "$as_me: error: cannot find input file: $f" >&2;} 24249 { (exit 1); exit 1; }; } 24250 echo "$f";; 24251 *) # Relative 24252 if test -f "$f"; then 24253 # Build tree 24254 echo "$f" 24255 elif test -f "$srcdir/$f"; then 24256 # Source tree 24257 echo "$srcdir/$f" 24258 else 24259 # /dev/null tree 24260 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24261echo "$as_me: error: cannot find input file: $f" >&2;} 24262 { (exit 1); exit 1; }; } 24263 fi;; 24264 esac 24265 done` || { (exit 1); exit 1; } 24266_ACEOF 24267cat >>$CONFIG_STATUS <<_ACEOF 24268 sed "$ac_vpsub 24269$extrasub 24270_ACEOF 24271cat >>$CONFIG_STATUS <<\_ACEOF 24272:t 24273/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24274s,@configure_input@,$configure_input,;t t 24275s,@srcdir@,$ac_srcdir,;t t 24276s,@abs_srcdir@,$ac_abs_srcdir,;t t 24277s,@top_srcdir@,$ac_top_srcdir,;t t 24278s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 24279s,@builddir@,$ac_builddir,;t t 24280s,@abs_builddir@,$ac_abs_builddir,;t t 24281s,@top_builddir@,$ac_top_builddir,;t t 24282s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 24283s,@INSTALL@,$ac_INSTALL,;t t 24284" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 24285 rm -f $tmp/stdin 24286 if test x"$ac_file" != x-; then 24287 mv $tmp/out $ac_file 24288 else 24289 cat $tmp/out 24290 rm -f $tmp/out 24291 fi 24292 24293done 24294_ACEOF 24295cat >>$CONFIG_STATUS <<\_ACEOF 24296 24297# 24298# CONFIG_HEADER section. 24299# 24300 24301# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 24302# NAME is the cpp macro being defined and VALUE is the value it is being given. 24303# 24304# ac_d sets the value in "#define NAME VALUE" lines. 24305ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 24306ac_dB='[ ].*$,\1#\2' 24307ac_dC=' ' 24308ac_dD=',;t' 24309# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 24310ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 24311ac_uB='$,\1#\2define\3' 24312ac_uC=' ' 24313ac_uD=',;t' 24314 24315for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 24316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24317 case $ac_file in 24318 - | *:- | *:-:* ) # input from stdin 24319 cat >$tmp/stdin 24320 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24321 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24322 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24324 * ) ac_file_in=$ac_file.in ;; 24325 esac 24326 24327 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 24328echo "$as_me: creating $ac_file" >&6;} 24329 24330 # First look for the input files in the build tree, otherwise in the 24331 # src tree. 24332 ac_file_inputs=`IFS=: 24333 for f in $ac_file_in; do 24334 case $f in 24335 -) echo $tmp/stdin ;; 24336 [\\/$]*) 24337 # Absolute (can't be DOS-style, as IFS=:) 24338 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24339echo "$as_me: error: cannot find input file: $f" >&2;} 24340 { (exit 1); exit 1; }; } 24341 # Do quote $f, to prevent DOS paths from being IFS'd. 24342 echo "$f";; 24343 *) # Relative 24344 if test -f "$f"; then 24345 # Build tree 24346 echo "$f" 24347 elif test -f "$srcdir/$f"; then 24348 # Source tree 24349 echo "$srcdir/$f" 24350 else 24351 # /dev/null tree 24352 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24353echo "$as_me: error: cannot find input file: $f" >&2;} 24354 { (exit 1); exit 1; }; } 24355 fi;; 24356 esac 24357 done` || { (exit 1); exit 1; } 24358 # Remove the trailing spaces. 24359 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 24360 24361_ACEOF 24362 24363# Transform confdefs.h into two sed scripts, `conftest.defines' and 24364# `conftest.undefs', that substitutes the proper values into 24365# config.h.in to produce config.h. The first handles `#define' 24366# templates, and the second `#undef' templates. 24367# And first: Protect against being on the right side of a sed subst in 24368# config.status. Protect against being in an unquoted here document 24369# in config.status. 24370rm -f conftest.defines conftest.undefs 24371# Using a here document instead of a string reduces the quoting nightmare. 24372# Putting comments in sed scripts is not portable. 24373# 24374# `end' is used to avoid that the second main sed command (meant for 24375# 0-ary CPP macros) applies to n-ary macro definitions. 24376# See the Autoconf documentation for `clear'. 24377cat >confdef2sed.sed <<\_ACEOF 24378s/[\\&,]/\\&/g 24379s,[\\$`],\\&,g 24380t clear 24381: clear 24382s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 24383t end 24384s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 24385: end 24386_ACEOF 24387# If some macros were called several times there might be several times 24388# the same #defines, which is useless. Nevertheless, we may not want to 24389# sort them, since we want the *last* AC-DEFINE to be honored. 24390uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 24391sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 24392rm -f confdef2sed.sed 24393 24394# This sed command replaces #undef with comments. This is necessary, for 24395# example, in the case of _POSIX_SOURCE, which is predefined and required 24396# on some systems where configure will not decide to define it. 24397cat >>conftest.undefs <<\_ACEOF 24398s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 24399_ACEOF 24400 24401# Break up conftest.defines because some shells have a limit on the size 24402# of here documents, and old seds have small limits too (100 cmds). 24403echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 24404echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 24405echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 24406echo ' :' >>$CONFIG_STATUS 24407rm -f conftest.tail 24408while grep . conftest.defines >/dev/null 24409do 24410 # Write a limited-size here document to $tmp/defines.sed. 24411 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 24412 # Speed up: don't consider the non `#define' lines. 24413 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 24414 # Work around the forget-to-reset-the-flag bug. 24415 echo 't clr' >>$CONFIG_STATUS 24416 echo ': clr' >>$CONFIG_STATUS 24417 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 24418 echo 'CEOF 24419 sed -f $tmp/defines.sed $tmp/in >$tmp/out 24420 rm -f $tmp/in 24421 mv $tmp/out $tmp/in 24422' >>$CONFIG_STATUS 24423 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 24424 rm -f conftest.defines 24425 mv conftest.tail conftest.defines 24426done 24427rm -f conftest.defines 24428echo ' fi # grep' >>$CONFIG_STATUS 24429echo >>$CONFIG_STATUS 24430 24431# Break up conftest.undefs because some shells have a limit on the size 24432# of here documents, and old seds have small limits too (100 cmds). 24433echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 24434rm -f conftest.tail 24435while grep . conftest.undefs >/dev/null 24436do 24437 # Write a limited-size here document to $tmp/undefs.sed. 24438 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 24439 # Speed up: don't consider the non `#undef' 24440 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 24441 # Work around the forget-to-reset-the-flag bug. 24442 echo 't clr' >>$CONFIG_STATUS 24443 echo ': clr' >>$CONFIG_STATUS 24444 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 24445 echo 'CEOF 24446 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 24447 rm -f $tmp/in 24448 mv $tmp/out $tmp/in 24449' >>$CONFIG_STATUS 24450 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 24451 rm -f conftest.undefs 24452 mv conftest.tail conftest.undefs 24453done 24454rm -f conftest.undefs 24455 24456cat >>$CONFIG_STATUS <<\_ACEOF 24457 # Let's still pretend it is `configure' which instantiates (i.e., don't 24458 # use $as_me), people would be surprised to read: 24459 # /* config.h. Generated by config.status. */ 24460 if test x"$ac_file" = x-; then 24461 echo "/* Generated by configure. */" >$tmp/config.h 24462 else 24463 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 24464 fi 24465 cat $tmp/in >>$tmp/config.h 24466 rm -f $tmp/in 24467 if test x"$ac_file" != x-; then 24468 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 24469 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24470echo "$as_me: $ac_file is unchanged" >&6;} 24471 else 24472 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24473$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24474 X"$ac_file" : 'X\(//\)[^/]' \| \ 24475 X"$ac_file" : 'X\(//\)$' \| \ 24476 X"$ac_file" : 'X\(/\)' \| \ 24477 . : '\(.\)' 2>/dev/null || 24478echo X"$ac_file" | 24479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24480 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24481 /^X\(\/\/\)$/{ s//\1/; q; } 24482 /^X\(\/\).*/{ s//\1/; q; } 24483 s/.*/./; q'` 24484 { if $as_mkdir_p; then 24485 mkdir -p "$ac_dir" 24486 else 24487 as_dir="$ac_dir" 24488 as_dirs= 24489 while test ! -d "$as_dir"; do 24490 as_dirs="$as_dir $as_dirs" 24491 as_dir=`(dirname "$as_dir") 2>/dev/null || 24492$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24493 X"$as_dir" : 'X\(//\)[^/]' \| \ 24494 X"$as_dir" : 'X\(//\)$' \| \ 24495 X"$as_dir" : 'X\(/\)' \| \ 24496 . : '\(.\)' 2>/dev/null || 24497echo X"$as_dir" | 24498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24499 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24500 /^X\(\/\/\)$/{ s//\1/; q; } 24501 /^X\(\/\).*/{ s//\1/; q; } 24502 s/.*/./; q'` 24503 done 24504 test ! -n "$as_dirs" || mkdir $as_dirs 24505 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24506echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24507 { (exit 1); exit 1; }; }; } 24508 24509 rm -f $ac_file 24510 mv $tmp/config.h $ac_file 24511 fi 24512 else 24513 cat $tmp/config.h 24514 rm -f $tmp/config.h 24515 fi 24516# Compute $ac_file's index in $config_headers. 24517_am_stamp_count=1 24518for _am_header in $config_headers :; do 24519 case $_am_header in 24520 $ac_file | $ac_file:* ) 24521 break ;; 24522 * ) 24523 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24524 esac 24525done 24526echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 24527$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24528 X$ac_file : 'X\(//\)[^/]' \| \ 24529 X$ac_file : 'X\(//\)$' \| \ 24530 X$ac_file : 'X\(/\)' \| \ 24531 . : '\(.\)' 2>/dev/null || 24532echo X$ac_file | 24533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24534 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24535 /^X\(\/\/\)$/{ s//\1/; q; } 24536 /^X\(\/\).*/{ s//\1/; q; } 24537 s/.*/./; q'`/stamp-h$_am_stamp_count 24538done 24539_ACEOF 24540cat >>$CONFIG_STATUS <<\_ACEOF 24541 24542# 24543# CONFIG_COMMANDS section. 24544# 24545for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 24546 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 24547 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 24548 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 24549$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24550 X"$ac_dest" : 'X\(//\)[^/]' \| \ 24551 X"$ac_dest" : 'X\(//\)$' \| \ 24552 X"$ac_dest" : 'X\(/\)' \| \ 24553 . : '\(.\)' 2>/dev/null || 24554echo X"$ac_dest" | 24555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24556 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24557 /^X\(\/\/\)$/{ s//\1/; q; } 24558 /^X\(\/\).*/{ s//\1/; q; } 24559 s/.*/./; q'` 24560 { if $as_mkdir_p; then 24561 mkdir -p "$ac_dir" 24562 else 24563 as_dir="$ac_dir" 24564 as_dirs= 24565 while test ! -d "$as_dir"; do 24566 as_dirs="$as_dir $as_dirs" 24567 as_dir=`(dirname "$as_dir") 2>/dev/null || 24568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24569 X"$as_dir" : 'X\(//\)[^/]' \| \ 24570 X"$as_dir" : 'X\(//\)$' \| \ 24571 X"$as_dir" : 'X\(/\)' \| \ 24572 . : '\(.\)' 2>/dev/null || 24573echo X"$as_dir" | 24574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24575 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24576 /^X\(\/\/\)$/{ s//\1/; q; } 24577 /^X\(\/\).*/{ s//\1/; q; } 24578 s/.*/./; q'` 24579 done 24580 test ! -n "$as_dirs" || mkdir $as_dirs 24581 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24582echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24583 { (exit 1); exit 1; }; }; } 24584 24585 ac_builddir=. 24586 24587if test "$ac_dir" != .; then 24588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24589 # A "../" for each directory in $ac_dir_suffix. 24590 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24591else 24592 ac_dir_suffix= ac_top_builddir= 24593fi 24594 24595case $srcdir in 24596 .) # No --srcdir option. We are building in place. 24597 ac_srcdir=. 24598 if test -z "$ac_top_builddir"; then 24599 ac_top_srcdir=. 24600 else 24601 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24602 fi ;; 24603 [\\/]* | ?:[\\/]* ) # Absolute path. 24604 ac_srcdir=$srcdir$ac_dir_suffix; 24605 ac_top_srcdir=$srcdir ;; 24606 *) # Relative path. 24607 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24608 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24609esac 24610 24611# Do not use `cd foo && pwd` to compute absolute paths, because 24612# the directories may not exist. 24613case `pwd` in 24614.) ac_abs_builddir="$ac_dir";; 24615*) 24616 case "$ac_dir" in 24617 .) ac_abs_builddir=`pwd`;; 24618 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24619 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24620 esac;; 24621esac 24622case $ac_abs_builddir in 24623.) ac_abs_top_builddir=${ac_top_builddir}.;; 24624*) 24625 case ${ac_top_builddir}. in 24626 .) ac_abs_top_builddir=$ac_abs_builddir;; 24627 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24628 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24629 esac;; 24630esac 24631case $ac_abs_builddir in 24632.) ac_abs_srcdir=$ac_srcdir;; 24633*) 24634 case $ac_srcdir in 24635 .) ac_abs_srcdir=$ac_abs_builddir;; 24636 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24637 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24638 esac;; 24639esac 24640case $ac_abs_builddir in 24641.) ac_abs_top_srcdir=$ac_top_srcdir;; 24642*) 24643 case $ac_top_srcdir in 24644 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24645 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24646 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24647 esac;; 24648esac 24649 24650 24651 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 24652echo "$as_me: executing $ac_dest commands" >&6;} 24653 case $ac_dest in 24654 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24655 # Strip MF so we end up with the name of the file. 24656 mf=`echo "$mf" | sed -e 's/:.*$//'` 24657 # Check whether this is an Automake generated Makefile or not. 24658 # We used to match only the files named `Makefile.in', but 24659 # some people rename them; so instead we look at the file content. 24660 # Grep'ing the first line is not enough: some people post-process 24661 # each Makefile.in and add a new line on top of each file to say so. 24662 # So let's grep whole file. 24663 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24664 dirpart=`(dirname "$mf") 2>/dev/null || 24665$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24666 X"$mf" : 'X\(//\)[^/]' \| \ 24667 X"$mf" : 'X\(//\)$' \| \ 24668 X"$mf" : 'X\(/\)' \| \ 24669 . : '\(.\)' 2>/dev/null || 24670echo X"$mf" | 24671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24672 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24673 /^X\(\/\/\)$/{ s//\1/; q; } 24674 /^X\(\/\).*/{ s//\1/; q; } 24675 s/.*/./; q'` 24676 else 24677 continue 24678 fi 24679 # Extract the definition of DEPDIR, am__include, and am__quote 24680 # from the Makefile without running `make'. 24681 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24682 test -z "$DEPDIR" && continue 24683 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24684 test -z "am__include" && continue 24685 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24686 # When using ansi2knr, U may be empty or an underscore; expand it 24687 U=`sed -n 's/^U = //p' < "$mf"` 24688 # Find all dependency output files, they are included files with 24689 # $(DEPDIR) in their names. We invoke sed twice because it is the 24690 # simplest approach to changing $(DEPDIR) to its actual value in the 24691 # expansion. 24692 for file in `sed -n " 24693 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24694 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24695 # Make sure the directory exists. 24696 test -f "$dirpart/$file" && continue 24697 fdir=`(dirname "$file") 2>/dev/null || 24698$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24699 X"$file" : 'X\(//\)[^/]' \| \ 24700 X"$file" : 'X\(//\)$' \| \ 24701 X"$file" : 'X\(/\)' \| \ 24702 . : '\(.\)' 2>/dev/null || 24703echo X"$file" | 24704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24705 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24706 /^X\(\/\/\)$/{ s//\1/; q; } 24707 /^X\(\/\).*/{ s//\1/; q; } 24708 s/.*/./; q'` 24709 { if $as_mkdir_p; then 24710 mkdir -p $dirpart/$fdir 24711 else 24712 as_dir=$dirpart/$fdir 24713 as_dirs= 24714 while test ! -d "$as_dir"; do 24715 as_dirs="$as_dir $as_dirs" 24716 as_dir=`(dirname "$as_dir") 2>/dev/null || 24717$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24718 X"$as_dir" : 'X\(//\)[^/]' \| \ 24719 X"$as_dir" : 'X\(//\)$' \| \ 24720 X"$as_dir" : 'X\(/\)' \| \ 24721 . : '\(.\)' 2>/dev/null || 24722echo X"$as_dir" | 24723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24724 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24725 /^X\(\/\/\)$/{ s//\1/; q; } 24726 /^X\(\/\).*/{ s//\1/; q; } 24727 s/.*/./; q'` 24728 done 24729 test ! -n "$as_dirs" || mkdir $as_dirs 24730 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 24731echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 24732 { (exit 1); exit 1; }; }; } 24733 24734 # echo "creating $dirpart/$file" 24735 echo '# dummy' > "$dirpart/$file" 24736 done 24737done 24738 ;; 24739 default ) 24740 chmod 755 bin/iodbc-config 24741 ;; 24742 esac 24743done 24744_ACEOF 24745 24746cat >>$CONFIG_STATUS <<\_ACEOF 24747 24748{ (exit 0); exit 0; } 24749_ACEOF 24750chmod +x $CONFIG_STATUS 24751ac_clean_files=$ac_clean_files_save 24752 24753 24754# configure is writing to config.log, and then calls config.status. 24755# config.status does its own redirection, appending to config.log. 24756# Unfortunately, on DOS this fails, as config.log is still kept open 24757# by configure, so config.status won't be able to write to it; its 24758# output is simply discarded. So we exec the FD to /dev/null, 24759# effectively closing config.log, so it can be properly (re)opened and 24760# appended to by config.status. When coming back to configure, we 24761# need to make the FD available again. 24762if test "$no_create" != yes; then 24763 ac_cs_success=: 24764 ac_config_status_args= 24765 test "$silent" = yes && 24766 ac_config_status_args="$ac_config_status_args --quiet" 24767 exec 5>/dev/null 24768 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24769 exec 5>>config.log 24770 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24771 # would make configure fail if this is the last instruction. 24772 $ac_cs_success || { (exit 1); exit 1; } 24773fi 24774 24775 24776 24777########################################################################## 24778## ## 24779## Display configuration information ## 24780## ## 24781########################################################################## 24782 24783# ---------------------------------------------------------------------- 24784# Color settings 24785# ---------------------------------------------------------------------- 24786B=`tput bold 2>/dev/null` 24787N=`tput sgr0 2>/dev/null` 24788 24789echo "" 24790echo "" 24791echo "${B}${PACKAGE_STRING} configuration summary${N}" 24792echo "${PACKAGE_STRING} configuration summary" | sed 's/./=/g' 24793echo "" 24794echo "${B}Installation variables${N}" 24795echo " layout ${iodbc_layout}" 24796echo " prefix ${prefix}" 24797echo " exec_prefix ${exec_prefix}" 24798echo "" 24799echo "${B}Installation paths${N}" 24800echo " programs ${bindir}" 24801echo " include files ${includedir}" 24802echo " libraries ${libdir}" 24803echo " manual pages ${mandir}" 24804echo "" 24805echo "${B}Configuration files${N}" 24806echo " odbc.ini ${inidir}/odbc.ini" 24807echo " odbcinst.ini ${inidir}/odbcinst.ini" 24808echo " default FILEDSN path ${filedsnpath}" 24809echo "" 24810echo "${B}Extensions${N}" 24811echo " ODBC Version ${odbcmode}" 24812echo " GUI Extensions ${USE_GUI}" 24813echo " ThreadSafe ${USE_PTHREADS}" 24814echo " Install libodbc.so ${install_libodbc}" 24815echo "" 24816