1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for libxkbui 1.0.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string=`eval $cmd`) 2>/dev/null && 291 echo_test_string=`eval $cmd` && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='libxkbui' 425PACKAGE_TARNAME='libxkbui' 426PACKAGE_VERSION='1.0.2' 427PACKAGE_STRING='libxkbui 1.0.2' 428PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 429 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XKBUI_CFLAGS XKBUI_LIBS LIBOBJS LTLIBOBJS' 468ac_subst_files='' 469 470# Initialize some variables set by options. 471ac_init_help= 472ac_init_version=false 473# The variables have the same names as the options, with 474# dashes changed to underlines. 475cache_file=/dev/null 476exec_prefix=NONE 477no_create= 478no_recursion= 479prefix=NONE 480program_prefix=NONE 481program_suffix=NONE 482program_transform_name=s,x,x, 483silent= 484site= 485srcdir= 486verbose= 487x_includes=NONE 488x_libraries=NONE 489 490# Installation directory options. 491# These are left unexpanded so users can "make install exec_prefix=/foo" 492# and all the variables that are supposed to be based on exec_prefix 493# by default will actually change. 494# Use braces instead of parens because sh, perl, etc. also accept them. 495bindir='${exec_prefix}/bin' 496sbindir='${exec_prefix}/sbin' 497libexecdir='${exec_prefix}/libexec' 498datadir='${prefix}/share' 499sysconfdir='${prefix}/etc' 500sharedstatedir='${prefix}/com' 501localstatedir='${prefix}/var' 502libdir='${exec_prefix}/lib' 503includedir='${prefix}/include' 504oldincludedir='/usr/include' 505infodir='${prefix}/info' 506mandir='${prefix}/man' 507 508ac_prev= 509for ac_option 510do 511 # If the previous option needs an argument, assign it. 512 if test -n "$ac_prev"; then 513 eval "$ac_prev=\$ac_option" 514 ac_prev= 515 continue 516 fi 517 518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 519 520 # Accept the important Cygnus configure options, so we can diagnose typos. 521 522 case $ac_option in 523 524 -bindir | --bindir | --bindi | --bind | --bin | --bi) 525 ac_prev=bindir ;; 526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 527 bindir=$ac_optarg ;; 528 529 -build | --build | --buil | --bui | --bu) 530 ac_prev=build_alias ;; 531 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 532 build_alias=$ac_optarg ;; 533 534 -cache-file | --cache-file | --cache-fil | --cache-fi \ 535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 536 ac_prev=cache_file ;; 537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 539 cache_file=$ac_optarg ;; 540 541 --config-cache | -C) 542 cache_file=config.cache ;; 543 544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 545 ac_prev=datadir ;; 546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 547 | --da=*) 548 datadir=$ac_optarg ;; 549 550 -disable-* | --disable-*) 551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 552 # Reject names that are not valid shell variable names. 553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 555 { (exit 1); exit 1; }; } 556 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 557 eval "enable_$ac_feature=no" ;; 558 559 -enable-* | --enable-*) 560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 561 # Reject names that are not valid shell variable names. 562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 564 { (exit 1); exit 1; }; } 565 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 566 case $ac_option in 567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 568 *) ac_optarg=yes ;; 569 esac 570 eval "enable_$ac_feature='$ac_optarg'" ;; 571 572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 574 | --exec | --exe | --ex) 575 ac_prev=exec_prefix ;; 576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 578 | --exec=* | --exe=* | --ex=*) 579 exec_prefix=$ac_optarg ;; 580 581 -gas | --gas | --ga | --g) 582 # Obsolete; use --with-gas. 583 with_gas=yes ;; 584 585 -help | --help | --hel | --he | -h) 586 ac_init_help=long ;; 587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 588 ac_init_help=recursive ;; 589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 590 ac_init_help=short ;; 591 592 -host | --host | --hos | --ho) 593 ac_prev=host_alias ;; 594 -host=* | --host=* | --hos=* | --ho=*) 595 host_alias=$ac_optarg ;; 596 597 -includedir | --includedir | --includedi | --included | --include \ 598 | --includ | --inclu | --incl | --inc) 599 ac_prev=includedir ;; 600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 601 | --includ=* | --inclu=* | --incl=* | --inc=*) 602 includedir=$ac_optarg ;; 603 604 -infodir | --infodir | --infodi | --infod | --info | --inf) 605 ac_prev=infodir ;; 606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 607 infodir=$ac_optarg ;; 608 609 -libdir | --libdir | --libdi | --libd) 610 ac_prev=libdir ;; 611 -libdir=* | --libdir=* | --libdi=* | --libd=*) 612 libdir=$ac_optarg ;; 613 614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 615 | --libexe | --libex | --libe) 616 ac_prev=libexecdir ;; 617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 618 | --libexe=* | --libex=* | --libe=*) 619 libexecdir=$ac_optarg ;; 620 621 -localstatedir | --localstatedir | --localstatedi | --localstated \ 622 | --localstate | --localstat | --localsta | --localst \ 623 | --locals | --local | --loca | --loc | --lo) 624 ac_prev=localstatedir ;; 625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 628 localstatedir=$ac_optarg ;; 629 630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 631 ac_prev=mandir ;; 632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 633 mandir=$ac_optarg ;; 634 635 -nfp | --nfp | --nf) 636 # Obsolete; use --without-fp. 637 with_fp=no ;; 638 639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 640 | --no-cr | --no-c | -n) 641 no_create=yes ;; 642 643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 645 no_recursion=yes ;; 646 647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 649 | --oldin | --oldi | --old | --ol | --o) 650 ac_prev=oldincludedir ;; 651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 654 oldincludedir=$ac_optarg ;; 655 656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 657 ac_prev=prefix ;; 658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 659 prefix=$ac_optarg ;; 660 661 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 662 | --program-pre | --program-pr | --program-p) 663 ac_prev=program_prefix ;; 664 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 666 program_prefix=$ac_optarg ;; 667 668 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 669 | --program-suf | --program-su | --program-s) 670 ac_prev=program_suffix ;; 671 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 673 program_suffix=$ac_optarg ;; 674 675 -program-transform-name | --program-transform-name \ 676 | --program-transform-nam | --program-transform-na \ 677 | --program-transform-n | --program-transform- \ 678 | --program-transform | --program-transfor \ 679 | --program-transfo | --program-transf \ 680 | --program-trans | --program-tran \ 681 | --progr-tra | --program-tr | --program-t) 682 ac_prev=program_transform_name ;; 683 -program-transform-name=* | --program-transform-name=* \ 684 | --program-transform-nam=* | --program-transform-na=* \ 685 | --program-transform-n=* | --program-transform-=* \ 686 | --program-transform=* | --program-transfor=* \ 687 | --program-transfo=* | --program-transf=* \ 688 | --program-trans=* | --program-tran=* \ 689 | --progr-tra=* | --program-tr=* | --program-t=*) 690 program_transform_name=$ac_optarg ;; 691 692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 693 | -silent | --silent | --silen | --sile | --sil) 694 silent=yes ;; 695 696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 697 ac_prev=sbindir ;; 698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 699 | --sbi=* | --sb=*) 700 sbindir=$ac_optarg ;; 701 702 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 704 | --sharedst | --shareds | --shared | --share | --shar \ 705 | --sha | --sh) 706 ac_prev=sharedstatedir ;; 707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 710 | --sha=* | --sh=*) 711 sharedstatedir=$ac_optarg ;; 712 713 -site | --site | --sit) 714 ac_prev=site ;; 715 -site=* | --site=* | --sit=*) 716 site=$ac_optarg ;; 717 718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 719 ac_prev=srcdir ;; 720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 721 srcdir=$ac_optarg ;; 722 723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 724 | --syscon | --sysco | --sysc | --sys | --sy) 725 ac_prev=sysconfdir ;; 726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 728 sysconfdir=$ac_optarg ;; 729 730 -target | --target | --targe | --targ | --tar | --ta | --t) 731 ac_prev=target_alias ;; 732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 733 target_alias=$ac_optarg ;; 734 735 -v | -verbose | --verbose | --verbos | --verbo | --verb) 736 verbose=yes ;; 737 738 -version | --version | --versio | --versi | --vers | -V) 739 ac_init_version=: ;; 740 741 -with-* | --with-*) 742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 743 # Reject names that are not valid shell variable names. 744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 745 { echo "$as_me: error: invalid package name: $ac_package" >&2 746 { (exit 1); exit 1; }; } 747 ac_package=`echo $ac_package| sed 's/-/_/g'` 748 case $ac_option in 749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 750 *) ac_optarg=yes ;; 751 esac 752 eval "with_$ac_package='$ac_optarg'" ;; 753 754 -without-* | --without-*) 755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 756 # Reject names that are not valid shell variable names. 757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 758 { echo "$as_me: error: invalid package name: $ac_package" >&2 759 { (exit 1); exit 1; }; } 760 ac_package=`echo $ac_package | sed 's/-/_/g'` 761 eval "with_$ac_package=no" ;; 762 763 --x) 764 # Obsolete; use --with-x. 765 with_x=yes ;; 766 767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 768 | --x-incl | --x-inc | --x-in | --x-i) 769 ac_prev=x_includes ;; 770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 772 x_includes=$ac_optarg ;; 773 774 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 776 ac_prev=x_libraries ;; 777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 779 x_libraries=$ac_optarg ;; 780 781 -*) { echo "$as_me: error: unrecognized option: $ac_option 782Try \`$0 --help' for more information." >&2 783 { (exit 1); exit 1; }; } 784 ;; 785 786 *=*) 787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 788 # Reject names that are not valid shell variable names. 789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 791 { (exit 1); exit 1; }; } 792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 793 eval "$ac_envvar='$ac_optarg'" 794 export $ac_envvar ;; 795 796 *) 797 # FIXME: should be removed in autoconf 3.0. 798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 802 ;; 803 804 esac 805done 806 807if test -n "$ac_prev"; then 808 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 809 { echo "$as_me: error: missing argument to $ac_option" >&2 810 { (exit 1); exit 1; }; } 811fi 812 813# Be sure to have absolute paths. 814for ac_var in exec_prefix prefix 815do 816 eval ac_val=$`echo $ac_var` 817 case $ac_val in 818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 820 { (exit 1); exit 1; }; };; 821 esac 822done 823 824# Be sure to have absolute paths. 825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 826 localstatedir libdir includedir oldincludedir infodir mandir 827do 828 eval ac_val=$`echo $ac_var` 829 case $ac_val in 830 [\\/$]* | ?:[\\/]* ) ;; 831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 832 { (exit 1); exit 1; }; };; 833 esac 834done 835 836# There might be people who depend on the old broken behavior: `$host' 837# used to hold the argument of --host etc. 838# FIXME: To remove some day. 839build=$build_alias 840host=$host_alias 841target=$target_alias 842 843# FIXME: To remove some day. 844if test "x$host_alias" != x; then 845 if test "x$build_alias" = x; then 846 cross_compiling=maybe 847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 848 If a cross compiler is detected then cross compile mode will be used." >&2 849 elif test "x$build_alias" != "x$host_alias"; then 850 cross_compiling=yes 851 fi 852fi 853 854ac_tool_prefix= 855test -n "$host_alias" && ac_tool_prefix=$host_alias- 856 857test "$silent" = yes && exec 6>/dev/null 858 859 860# Find the source files, if location was not specified. 861if test -z "$srcdir"; then 862 ac_srcdir_defaulted=yes 863 # Try the directory containing this script, then its parent. 864 ac_confdir=`(dirname "$0") 2>/dev/null || 865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 866 X"$0" : 'X\(//\)[^/]' \| \ 867 X"$0" : 'X\(//\)$' \| \ 868 X"$0" : 'X\(/\)' \| \ 869 . : '\(.\)' 2>/dev/null || 870echo X"$0" | 871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 872 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 873 /^X\(\/\/\)$/{ s//\1/; q; } 874 /^X\(\/\).*/{ s//\1/; q; } 875 s/.*/./; q'` 876 srcdir=$ac_confdir 877 if test ! -r $srcdir/$ac_unique_file; then 878 srcdir=.. 879 fi 880else 881 ac_srcdir_defaulted=no 882fi 883if test ! -r $srcdir/$ac_unique_file; then 884 if test "$ac_srcdir_defaulted" = yes; then 885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 886 { (exit 1); exit 1; }; } 887 else 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 889 { (exit 1); exit 1; }; } 890 fi 891fi 892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 894 { (exit 1); exit 1; }; } 895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 896ac_env_build_alias_set=${build_alias+set} 897ac_env_build_alias_value=$build_alias 898ac_cv_env_build_alias_set=${build_alias+set} 899ac_cv_env_build_alias_value=$build_alias 900ac_env_host_alias_set=${host_alias+set} 901ac_env_host_alias_value=$host_alias 902ac_cv_env_host_alias_set=${host_alias+set} 903ac_cv_env_host_alias_value=$host_alias 904ac_env_target_alias_set=${target_alias+set} 905ac_env_target_alias_value=$target_alias 906ac_cv_env_target_alias_set=${target_alias+set} 907ac_cv_env_target_alias_value=$target_alias 908ac_env_CC_set=${CC+set} 909ac_env_CC_value=$CC 910ac_cv_env_CC_set=${CC+set} 911ac_cv_env_CC_value=$CC 912ac_env_CFLAGS_set=${CFLAGS+set} 913ac_env_CFLAGS_value=$CFLAGS 914ac_cv_env_CFLAGS_set=${CFLAGS+set} 915ac_cv_env_CFLAGS_value=$CFLAGS 916ac_env_LDFLAGS_set=${LDFLAGS+set} 917ac_env_LDFLAGS_value=$LDFLAGS 918ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 919ac_cv_env_LDFLAGS_value=$LDFLAGS 920ac_env_CPPFLAGS_set=${CPPFLAGS+set} 921ac_env_CPPFLAGS_value=$CPPFLAGS 922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 923ac_cv_env_CPPFLAGS_value=$CPPFLAGS 924ac_env_CPP_set=${CPP+set} 925ac_env_CPP_value=$CPP 926ac_cv_env_CPP_set=${CPP+set} 927ac_cv_env_CPP_value=$CPP 928ac_env_CXX_set=${CXX+set} 929ac_env_CXX_value=$CXX 930ac_cv_env_CXX_set=${CXX+set} 931ac_cv_env_CXX_value=$CXX 932ac_env_CXXFLAGS_set=${CXXFLAGS+set} 933ac_env_CXXFLAGS_value=$CXXFLAGS 934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 935ac_cv_env_CXXFLAGS_value=$CXXFLAGS 936ac_env_CXXCPP_set=${CXXCPP+set} 937ac_env_CXXCPP_value=$CXXCPP 938ac_cv_env_CXXCPP_set=${CXXCPP+set} 939ac_cv_env_CXXCPP_value=$CXXCPP 940ac_env_F77_set=${F77+set} 941ac_env_F77_value=$F77 942ac_cv_env_F77_set=${F77+set} 943ac_cv_env_F77_value=$F77 944ac_env_FFLAGS_set=${FFLAGS+set} 945ac_env_FFLAGS_value=$FFLAGS 946ac_cv_env_FFLAGS_set=${FFLAGS+set} 947ac_cv_env_FFLAGS_value=$FFLAGS 948ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 949ac_env_PKG_CONFIG_value=$PKG_CONFIG 950ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 951ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 952ac_env_XKBUI_CFLAGS_set=${XKBUI_CFLAGS+set} 953ac_env_XKBUI_CFLAGS_value=$XKBUI_CFLAGS 954ac_cv_env_XKBUI_CFLAGS_set=${XKBUI_CFLAGS+set} 955ac_cv_env_XKBUI_CFLAGS_value=$XKBUI_CFLAGS 956ac_env_XKBUI_LIBS_set=${XKBUI_LIBS+set} 957ac_env_XKBUI_LIBS_value=$XKBUI_LIBS 958ac_cv_env_XKBUI_LIBS_set=${XKBUI_LIBS+set} 959ac_cv_env_XKBUI_LIBS_value=$XKBUI_LIBS 960 961# 962# Report the --help message. 963# 964if test "$ac_init_help" = "long"; then 965 # Omit some internal or obsolete options to make the list less imposing. 966 # This message is too long to be a string in the A/UX 3.1 sh. 967 cat <<_ACEOF 968\`configure' configures libxkbui 1.0.2 to adapt to many kinds of systems. 969 970Usage: $0 [OPTION]... [VAR=VALUE]... 971 972To assign environment variables (e.g., CC, CFLAGS...), specify them as 973VAR=VALUE. See below for descriptions of some of the useful variables. 974 975Defaults for the options are specified in brackets. 976 977Configuration: 978 -h, --help display this help and exit 979 --help=short display options specific to this package 980 --help=recursive display the short help of all the included packages 981 -V, --version display version information and exit 982 -q, --quiet, --silent do not print \`checking...' messages 983 --cache-file=FILE cache test results in FILE [disabled] 984 -C, --config-cache alias for \`--cache-file=config.cache' 985 -n, --no-create do not create output files 986 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 987 988_ACEOF 989 990 cat <<_ACEOF 991Installation directories: 992 --prefix=PREFIX install architecture-independent files in PREFIX 993 [$ac_default_prefix] 994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 995 [PREFIX] 996 997By default, \`make install' will install all the files in 998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 999an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1000for instance \`--prefix=\$HOME'. 1001 1002For better control, use the options below. 1003 1004Fine tuning of the installation directories: 1005 --bindir=DIR user executables [EPREFIX/bin] 1006 --sbindir=DIR system admin executables [EPREFIX/sbin] 1007 --libexecdir=DIR program executables [EPREFIX/libexec] 1008 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1012 --libdir=DIR object code libraries [EPREFIX/lib] 1013 --includedir=DIR C header files [PREFIX/include] 1014 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1015 --infodir=DIR info documentation [PREFIX/info] 1016 --mandir=DIR man documentation [PREFIX/man] 1017_ACEOF 1018 1019 cat <<\_ACEOF 1020 1021Program names: 1022 --program-prefix=PREFIX prepend PREFIX to installed program names 1023 --program-suffix=SUFFIX append SUFFIX to installed program names 1024 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1025 1026System types: 1027 --build=BUILD configure for building on BUILD [guessed] 1028 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1029_ACEOF 1030fi 1031 1032if test -n "$ac_init_help"; then 1033 case $ac_init_help in 1034 short | recursive ) echo "Configuration of libxkbui 1.0.2:";; 1035 esac 1036 cat <<\_ACEOF 1037 1038Optional Features: 1039 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1040 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1041 --enable-maintainer-mode enable make rules and dependencies not useful 1042 (and sometimes confusing) to the casual installer 1043 --disable-dependency-tracking speeds up one-time build 1044 --enable-dependency-tracking do not reject slow dependency extractors 1045 --enable-shared[=PKGS] 1046 build shared libraries [default=yes] 1047 --enable-static[=PKGS] 1048 build static libraries [default=yes] 1049 --enable-fast-install[=PKGS] 1050 optimize for fast installation [default=yes] 1051 --disable-libtool-lock avoid locking (might break parallel builds) 1052 1053Optional Packages: 1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1056 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1057 --with-pic try to use only PIC/non-PIC objects [default=use 1058 both] 1059 --with-tags[=TAGS] 1060 include additional configurations [automatic] 1061 --with-release-version=STRING 1062 Use release version string in package name 1063 1064Some influential environment variables: 1065 CC C compiler command 1066 CFLAGS C compiler flags 1067 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1068 nonstandard directory <lib dir> 1069 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1070 headers in a nonstandard directory <include dir> 1071 CPP C preprocessor 1072 CXX C++ compiler command 1073 CXXFLAGS C++ compiler flags 1074 CXXCPP C++ preprocessor 1075 F77 Fortran 77 compiler command 1076 FFLAGS Fortran 77 compiler flags 1077 PKG_CONFIG path to pkg-config utility 1078 XKBUI_CFLAGS 1079 C compiler flags for XKBUI, overriding pkg-config 1080 XKBUI_LIBS linker flags for XKBUI, overriding pkg-config 1081 1082Use these variables to override the choices made by `configure' or to help 1083it to find libraries and programs with nonstandard names/locations. 1084 1085Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1086_ACEOF 1087fi 1088 1089if test "$ac_init_help" = "recursive"; then 1090 # If there are subdirs, report their specific --help. 1091 ac_popdir=`pwd` 1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1093 test -d $ac_dir || continue 1094 ac_builddir=. 1095 1096if test "$ac_dir" != .; then 1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1098 # A "../" for each directory in $ac_dir_suffix. 1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1100else 1101 ac_dir_suffix= ac_top_builddir= 1102fi 1103 1104case $srcdir in 1105 .) # No --srcdir option. We are building in place. 1106 ac_srcdir=. 1107 if test -z "$ac_top_builddir"; then 1108 ac_top_srcdir=. 1109 else 1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1111 fi ;; 1112 [\\/]* | ?:[\\/]* ) # Absolute path. 1113 ac_srcdir=$srcdir$ac_dir_suffix; 1114 ac_top_srcdir=$srcdir ;; 1115 *) # Relative path. 1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1117 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1118esac 1119 1120# Do not use `cd foo && pwd` to compute absolute paths, because 1121# the directories may not exist. 1122case `pwd` in 1123.) ac_abs_builddir="$ac_dir";; 1124*) 1125 case "$ac_dir" in 1126 .) ac_abs_builddir=`pwd`;; 1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1128 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1129 esac;; 1130esac 1131case $ac_abs_builddir in 1132.) ac_abs_top_builddir=${ac_top_builddir}.;; 1133*) 1134 case ${ac_top_builddir}. in 1135 .) ac_abs_top_builddir=$ac_abs_builddir;; 1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1138 esac;; 1139esac 1140case $ac_abs_builddir in 1141.) ac_abs_srcdir=$ac_srcdir;; 1142*) 1143 case $ac_srcdir in 1144 .) ac_abs_srcdir=$ac_abs_builddir;; 1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1147 esac;; 1148esac 1149case $ac_abs_builddir in 1150.) ac_abs_top_srcdir=$ac_top_srcdir;; 1151*) 1152 case $ac_top_srcdir in 1153 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1156 esac;; 1157esac 1158 1159 cd $ac_dir 1160 # Check for guested configure; otherwise get Cygnus style configure. 1161 if test -f $ac_srcdir/configure.gnu; then 1162 echo 1163 $SHELL $ac_srcdir/configure.gnu --help=recursive 1164 elif test -f $ac_srcdir/configure; then 1165 echo 1166 $SHELL $ac_srcdir/configure --help=recursive 1167 elif test -f $ac_srcdir/configure.ac || 1168 test -f $ac_srcdir/configure.in; then 1169 echo 1170 $ac_configure --help 1171 else 1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1173 fi 1174 cd $ac_popdir 1175 done 1176fi 1177 1178test -n "$ac_init_help" && exit 0 1179if $ac_init_version; then 1180 cat <<\_ACEOF 1181libxkbui configure 1.0.2 1182generated by GNU Autoconf 2.59 1183 1184Copyright (C) 2003 Free Software Foundation, Inc. 1185This configure script is free software; the Free Software Foundation 1186gives unlimited permission to copy, distribute and modify it. 1187_ACEOF 1188 exit 0 1189fi 1190exec 5>config.log 1191cat >&5 <<_ACEOF 1192This file contains any messages produced by compilers while 1193running configure, to aid debugging if configure makes a mistake. 1194 1195It was created by libxkbui $as_me 1.0.2, which was 1196generated by GNU Autoconf 2.59. Invocation command line was 1197 1198 $ $0 $@ 1199 1200_ACEOF 1201{ 1202cat <<_ASUNAME 1203## --------- ## 1204## Platform. ## 1205## --------- ## 1206 1207hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1208uname -m = `(uname -m) 2>/dev/null || echo unknown` 1209uname -r = `(uname -r) 2>/dev/null || echo unknown` 1210uname -s = `(uname -s) 2>/dev/null || echo unknown` 1211uname -v = `(uname -v) 2>/dev/null || echo unknown` 1212 1213/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1214/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1215 1216/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1217/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1218/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1219hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1220/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1221/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1222/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1223 1224_ASUNAME 1225 1226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1227for as_dir in $PATH 1228do 1229 IFS=$as_save_IFS 1230 test -z "$as_dir" && as_dir=. 1231 echo "PATH: $as_dir" 1232done 1233 1234} >&5 1235 1236cat >&5 <<_ACEOF 1237 1238 1239## ----------- ## 1240## Core tests. ## 1241## ----------- ## 1242 1243_ACEOF 1244 1245 1246# Keep a trace of the command line. 1247# Strip out --no-create and --no-recursion so they do not pile up. 1248# Strip out --silent because we don't want to record it for future runs. 1249# Also quote any args containing shell meta-characters. 1250# Make two passes to allow for proper duplicate-argument suppression. 1251ac_configure_args= 1252ac_configure_args0= 1253ac_configure_args1= 1254ac_sep= 1255ac_must_keep_next=false 1256for ac_pass in 1 2 1257do 1258 for ac_arg 1259 do 1260 case $ac_arg in 1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1263 | -silent | --silent | --silen | --sile | --sil) 1264 continue ;; 1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1267 esac 1268 case $ac_pass in 1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1270 2) 1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1272 if test $ac_must_keep_next = true; then 1273 ac_must_keep_next=false # Got value, back to normal. 1274 else 1275 case $ac_arg in 1276 *=* | --config-cache | -C | -disable-* | --disable-* \ 1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1279 | -with-* | --with-* | -without-* | --without-* | --x) 1280 case "$ac_configure_args0 " in 1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1282 esac 1283 ;; 1284 -* ) ac_must_keep_next=true ;; 1285 esac 1286 fi 1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1288 # Get rid of the leading space. 1289 ac_sep=" " 1290 ;; 1291 esac 1292 done 1293done 1294$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1295$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1296 1297# When interrupted or exit'd, cleanup temporary files, and complete 1298# config.log. We remove comments because anyway the quotes in there 1299# would cause problems or look ugly. 1300# WARNING: Be sure not to use single quotes in there, as some shells, 1301# such as our DU 5.0 friend, will then `close' the trap. 1302trap 'exit_status=$? 1303 # Save into config.log some information that might help in debugging. 1304 { 1305 echo 1306 1307 cat <<\_ASBOX 1308## ---------------- ## 1309## Cache variables. ## 1310## ---------------- ## 1311_ASBOX 1312 echo 1313 # The following way of writing the cache mishandles newlines in values, 1314{ 1315 (set) 2>&1 | 1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1317 *ac_space=\ *) 1318 sed -n \ 1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1321 ;; 1322 *) 1323 sed -n \ 1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1325 ;; 1326 esac; 1327} 1328 echo 1329 1330 cat <<\_ASBOX 1331## ----------------- ## 1332## Output variables. ## 1333## ----------------- ## 1334_ASBOX 1335 echo 1336 for ac_var in $ac_subst_vars 1337 do 1338 eval ac_val=$`echo $ac_var` 1339 echo "$ac_var='"'"'$ac_val'"'"'" 1340 done | sort 1341 echo 1342 1343 if test -n "$ac_subst_files"; then 1344 cat <<\_ASBOX 1345## ------------- ## 1346## Output files. ## 1347## ------------- ## 1348_ASBOX 1349 echo 1350 for ac_var in $ac_subst_files 1351 do 1352 eval ac_val=$`echo $ac_var` 1353 echo "$ac_var='"'"'$ac_val'"'"'" 1354 done | sort 1355 echo 1356 fi 1357 1358 if test -s confdefs.h; then 1359 cat <<\_ASBOX 1360## ----------- ## 1361## confdefs.h. ## 1362## ----------- ## 1363_ASBOX 1364 echo 1365 sed "/^$/d" confdefs.h | sort 1366 echo 1367 fi 1368 test "$ac_signal" != 0 && 1369 echo "$as_me: caught signal $ac_signal" 1370 echo "$as_me: exit $exit_status" 1371 } >&5 1372 rm -f core *.core && 1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1374 exit $exit_status 1375 ' 0 1376for ac_signal in 1 2 13 15; do 1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1378done 1379ac_signal=0 1380 1381# confdefs.h avoids OS command line length limits that DEFS can exceed. 1382rm -rf conftest* confdefs.h 1383# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1384echo >confdefs.h 1385 1386# Predefined preprocessor variables. 1387 1388cat >>confdefs.h <<_ACEOF 1389#define PACKAGE_NAME "$PACKAGE_NAME" 1390_ACEOF 1391 1392 1393cat >>confdefs.h <<_ACEOF 1394#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1395_ACEOF 1396 1397 1398cat >>confdefs.h <<_ACEOF 1399#define PACKAGE_VERSION "$PACKAGE_VERSION" 1400_ACEOF 1401 1402 1403cat >>confdefs.h <<_ACEOF 1404#define PACKAGE_STRING "$PACKAGE_STRING" 1405_ACEOF 1406 1407 1408cat >>confdefs.h <<_ACEOF 1409#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1410_ACEOF 1411 1412 1413# Let the site file select an alternate cache file if it wants to. 1414# Prefer explicitly selected file to automatically selected ones. 1415if test -z "$CONFIG_SITE"; then 1416 if test "x$prefix" != xNONE; then 1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1418 else 1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1420 fi 1421fi 1422for ac_site_file in $CONFIG_SITE; do 1423 if test -r "$ac_site_file"; then 1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1425echo "$as_me: loading site script $ac_site_file" >&6;} 1426 sed 's/^/| /' "$ac_site_file" >&5 1427 . "$ac_site_file" 1428 fi 1429done 1430 1431if test -r "$cache_file"; then 1432 # Some versions of bash will fail to source /dev/null (special 1433 # files actually), so we avoid doing that. 1434 if test -f "$cache_file"; then 1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1436echo "$as_me: loading cache $cache_file" >&6;} 1437 case $cache_file in 1438 [\\/]* | ?:[\\/]* ) . $cache_file;; 1439 *) . ./$cache_file;; 1440 esac 1441 fi 1442else 1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1444echo "$as_me: creating cache $cache_file" >&6;} 1445 >$cache_file 1446fi 1447 1448# Check that the precious variables saved in the cache have kept the same 1449# value. 1450ac_cache_corrupted=false 1451for ac_var in `(set) 2>&1 | 1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1454 eval ac_new_set=\$ac_env_${ac_var}_set 1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1456 eval ac_new_val="\$ac_env_${ac_var}_value" 1457 case $ac_old_set,$ac_new_set in 1458 set,) 1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1460echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1461 ac_cache_corrupted=: ;; 1462 ,set) 1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1464echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1465 ac_cache_corrupted=: ;; 1466 ,);; 1467 *) 1468 if test "x$ac_old_val" != "x$ac_new_val"; then 1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1470echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1472echo "$as_me: former value: $ac_old_val" >&2;} 1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1474echo "$as_me: current value: $ac_new_val" >&2;} 1475 ac_cache_corrupted=: 1476 fi;; 1477 esac 1478 # Pass precious variables to config.status. 1479 if test "$ac_new_set" = set; then 1480 case $ac_new_val in 1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1483 *) ac_arg=$ac_var=$ac_new_val ;; 1484 esac 1485 case " $ac_configure_args " in 1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1488 esac 1489 fi 1490done 1491if $ac_cache_corrupted; then 1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1493echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1495echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1496 { (exit 1); exit 1; }; } 1497fi 1498 1499ac_ext=c 1500ac_cpp='$CPP $CPPFLAGS' 1501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1503ac_compiler_gnu=$ac_cv_c_compiler_gnu 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531am__api_version="1.9" 1532ac_aux_dir= 1533for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1534 if test -f $ac_dir/install-sh; then 1535 ac_aux_dir=$ac_dir 1536 ac_install_sh="$ac_aux_dir/install-sh -c" 1537 break 1538 elif 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/shtool; then 1543 ac_aux_dir=$ac_dir 1544 ac_install_sh="$ac_aux_dir/shtool install -c" 1545 break 1546 fi 1547done 1548if test -z "$ac_aux_dir"; then 1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1550echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1551 { (exit 1); exit 1; }; } 1552fi 1553ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1554ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1556 1557# Find a good install program. We prefer a C program (faster), 1558# so one script is as good as another. But avoid the broken or 1559# incompatible versions: 1560# SysV /etc/install, /usr/sbin/install 1561# SunOS /usr/etc/install 1562# IRIX /sbin/install 1563# AIX /bin/install 1564# AmigaOS /C/install, which installs bootblocks on floppy discs 1565# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1566# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1567# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1568# OS/2's system install, which has a completely different semantic 1569# ./install, which can be erroneously created by make from ./install.sh. 1570echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1571echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1572if test -z "$INSTALL"; then 1573if test "${ac_cv_path_install+set}" = set; then 1574 echo $ECHO_N "(cached) $ECHO_C" >&6 1575else 1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1577for as_dir in $PATH 1578do 1579 IFS=$as_save_IFS 1580 test -z "$as_dir" && as_dir=. 1581 # Account for people who put trailing slashes in PATH elements. 1582case $as_dir/ in 1583 ./ | .// | /cC/* | \ 1584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1585 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1586 /usr/ucb/* ) ;; 1587 *) 1588 # OSF1 and SCO ODT 3.0 have their own names for install. 1589 # Don't use installbsd from OSF since it installs stuff as root 1590 # by default. 1591 for ac_prog in ginstall scoinst install; do 1592 for ac_exec_ext in '' $ac_executable_extensions; do 1593 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1594 if test $ac_prog = install && 1595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1596 # AIX install. It has an incompatible calling convention. 1597 : 1598 elif test $ac_prog = install && 1599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1600 # program-specific install script used by HP pwplus--don't use. 1601 : 1602 else 1603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1604 break 3 1605 fi 1606 fi 1607 done 1608 done 1609 ;; 1610esac 1611done 1612 1613 1614fi 1615 if test "${ac_cv_path_install+set}" = set; then 1616 INSTALL=$ac_cv_path_install 1617 else 1618 # As a last resort, use the slow shell script. We don't cache a 1619 # path for INSTALL within a source directory, because that will 1620 # break other packages using the cache if that directory is 1621 # removed, or if the path is relative. 1622 INSTALL=$ac_install_sh 1623 fi 1624fi 1625echo "$as_me:$LINENO: result: $INSTALL" >&5 1626echo "${ECHO_T}$INSTALL" >&6 1627 1628# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1629# It thinks the first close brace ends the variable substitution. 1630test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1631 1632test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1633 1634test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1635 1636echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1637echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1638# Just in case 1639sleep 1 1640echo timestamp > conftest.file 1641# Do `set' in a subshell so we don't clobber the current shell's 1642# arguments. Must try -L first in case configure is actually a 1643# symlink; some systems play weird games with the mod time of symlinks 1644# (eg FreeBSD returns the mod time of the symlink's containing 1645# directory). 1646if ( 1647 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1648 if test "$*" = "X"; then 1649 # -L didn't work. 1650 set X `ls -t $srcdir/configure conftest.file` 1651 fi 1652 rm -f conftest.file 1653 if test "$*" != "X $srcdir/configure conftest.file" \ 1654 && test "$*" != "X conftest.file $srcdir/configure"; then 1655 1656 # If neither matched, then we have a broken ls. This can happen 1657 # if, for instance, CONFIG_SHELL is bash and it inherits a 1658 # broken ls alias from the environment. This has actually 1659 # happened. Such a system could not be considered "sane". 1660 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1661alias in your environment" >&5 1662echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1663alias in your environment" >&2;} 1664 { (exit 1); exit 1; }; } 1665 fi 1666 1667 test "$2" = conftest.file 1668 ) 1669then 1670 # Ok. 1671 : 1672else 1673 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1674Check your system clock" >&5 1675echo "$as_me: error: newly created file is older than distributed files! 1676Check your system clock" >&2;} 1677 { (exit 1); exit 1; }; } 1678fi 1679echo "$as_me:$LINENO: result: yes" >&5 1680echo "${ECHO_T}yes" >&6 1681test "$program_prefix" != NONE && 1682 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1683# Use a double $ so make ignores it. 1684test "$program_suffix" != NONE && 1685 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1686# Double any \ or $. echo might interpret backslashes. 1687# By default was `s,x,x', remove it if useless. 1688cat <<\_ACEOF >conftest.sed 1689s/[\\$]/&&/g;s/;s,x,x,$// 1690_ACEOF 1691program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1692rm conftest.sed 1693 1694# expand $ac_aux_dir to an absolute path 1695am_aux_dir=`cd $ac_aux_dir && pwd` 1696 1697test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1698# Use eval to expand $SHELL 1699if eval "$MISSING --run true"; then 1700 am_missing_run="$MISSING --run " 1701else 1702 am_missing_run= 1703 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1704echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1705fi 1706 1707if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1708 # We used to keeping the `.' as first argument, in order to 1709 # allow $(mkdir_p) to be used without argument. As in 1710 # $(mkdir_p) $(somedir) 1711 # where $(somedir) is conditionally defined. However this is wrong 1712 # for two reasons: 1713 # 1. if the package is installed by a user who cannot write `.' 1714 # make install will fail, 1715 # 2. the above comment should most certainly read 1716 # $(mkdir_p) $(DESTDIR)$(somedir) 1717 # so it does not work when $(somedir) is undefined and 1718 # $(DESTDIR) is not. 1719 # To support the latter case, we have to write 1720 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1721 # so the `.' trick is pointless. 1722 mkdir_p='mkdir -p --' 1723else 1724 # On NextStep and OpenStep, the `mkdir' command does not 1725 # recognize any option. It will interpret all options as 1726 # directories to create, and then abort because `.' already 1727 # exists. 1728 for d in ./-p ./--version; 1729 do 1730 test -d $d && rmdir $d 1731 done 1732 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1733 if test -f "$ac_aux_dir/mkinstalldirs"; then 1734 mkdir_p='$(mkinstalldirs)' 1735 else 1736 mkdir_p='$(install_sh) -d' 1737 fi 1738fi 1739 1740for ac_prog in gawk mawk nawk awk 1741do 1742 # Extract the first word of "$ac_prog", so it can be a program name with args. 1743set dummy $ac_prog; ac_word=$2 1744echo "$as_me:$LINENO: checking for $ac_word" >&5 1745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1746if test "${ac_cv_prog_AWK+set}" = set; then 1747 echo $ECHO_N "(cached) $ECHO_C" >&6 1748else 1749 if test -n "$AWK"; then 1750 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1751else 1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1753for as_dir in $PATH 1754do 1755 IFS=$as_save_IFS 1756 test -z "$as_dir" && as_dir=. 1757 for ac_exec_ext in '' $ac_executable_extensions; do 1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1759 ac_cv_prog_AWK="$ac_prog" 1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1761 break 2 1762 fi 1763done 1764done 1765 1766fi 1767fi 1768AWK=$ac_cv_prog_AWK 1769if test -n "$AWK"; then 1770 echo "$as_me:$LINENO: result: $AWK" >&5 1771echo "${ECHO_T}$AWK" >&6 1772else 1773 echo "$as_me:$LINENO: result: no" >&5 1774echo "${ECHO_T}no" >&6 1775fi 1776 1777 test -n "$AWK" && break 1778done 1779 1780echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1781echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1782set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1783if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1784 echo $ECHO_N "(cached) $ECHO_C" >&6 1785else 1786 cat >conftest.make <<\_ACEOF 1787all: 1788 @echo 'ac_maketemp="$(MAKE)"' 1789_ACEOF 1790# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1791eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1792if test -n "$ac_maketemp"; then 1793 eval ac_cv_prog_make_${ac_make}_set=yes 1794else 1795 eval ac_cv_prog_make_${ac_make}_set=no 1796fi 1797rm -f conftest.make 1798fi 1799if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1800 echo "$as_me:$LINENO: result: yes" >&5 1801echo "${ECHO_T}yes" >&6 1802 SET_MAKE= 1803else 1804 echo "$as_me:$LINENO: result: no" >&5 1805echo "${ECHO_T}no" >&6 1806 SET_MAKE="MAKE=${MAKE-make}" 1807fi 1808 1809rm -rf .tst 2>/dev/null 1810mkdir .tst 2>/dev/null 1811if test -d .tst; then 1812 am__leading_dot=. 1813else 1814 am__leading_dot=_ 1815fi 1816rmdir .tst 2>/dev/null 1817 1818# test to see if srcdir already configured 1819if test "`cd $srcdir && pwd`" != "`pwd`" && 1820 test -f $srcdir/config.status; then 1821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1822echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1823 { (exit 1); exit 1; }; } 1824fi 1825 1826# test whether we have cygpath 1827if test -z "$CYGPATH_W"; then 1828 if (cygpath --version) >/dev/null 2>/dev/null; then 1829 CYGPATH_W='cygpath -w' 1830 else 1831 CYGPATH_W=echo 1832 fi 1833fi 1834 1835 1836# Define the identity of the package. 1837 PACKAGE='libxkbui' 1838 VERSION='1.0.2' 1839 1840 1841cat >>confdefs.h <<_ACEOF 1842#define PACKAGE "$PACKAGE" 1843_ACEOF 1844 1845 1846cat >>confdefs.h <<_ACEOF 1847#define VERSION "$VERSION" 1848_ACEOF 1849 1850# Some tools Automake needs. 1851 1852ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1853 1854 1855AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1856 1857 1858AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1859 1860 1861AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1862 1863 1864MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1865 1866install_sh=${install_sh-"$am_aux_dir/install-sh"} 1867 1868# Installed binaries are usually stripped using `strip' when the user 1869# run `make install-strip'. However `strip' might not be the right 1870# tool to use in cross-compilation environments, therefore Automake 1871# will honor the `STRIP' environment variable to overrule this program. 1872if test "$cross_compiling" != no; then 1873 if test -n "$ac_tool_prefix"; then 1874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1875set dummy ${ac_tool_prefix}strip; ac_word=$2 1876echo "$as_me:$LINENO: checking for $ac_word" >&5 1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1878if test "${ac_cv_prog_STRIP+set}" = set; then 1879 echo $ECHO_N "(cached) $ECHO_C" >&6 1880else 1881 if test -n "$STRIP"; then 1882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1883else 1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1885for as_dir in $PATH 1886do 1887 IFS=$as_save_IFS 1888 test -z "$as_dir" && as_dir=. 1889 for ac_exec_ext in '' $ac_executable_extensions; do 1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1891 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1893 break 2 1894 fi 1895done 1896done 1897 1898fi 1899fi 1900STRIP=$ac_cv_prog_STRIP 1901if test -n "$STRIP"; then 1902 echo "$as_me:$LINENO: result: $STRIP" >&5 1903echo "${ECHO_T}$STRIP" >&6 1904else 1905 echo "$as_me:$LINENO: result: no" >&5 1906echo "${ECHO_T}no" >&6 1907fi 1908 1909fi 1910if test -z "$ac_cv_prog_STRIP"; then 1911 ac_ct_STRIP=$STRIP 1912 # Extract the first word of "strip", so it can be a program name with args. 1913set dummy strip; ac_word=$2 1914echo "$as_me:$LINENO: checking for $ac_word" >&5 1915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1916if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1917 echo $ECHO_N "(cached) $ECHO_C" >&6 1918else 1919 if test -n "$ac_ct_STRIP"; then 1920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1921else 1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1923for as_dir in $PATH 1924do 1925 IFS=$as_save_IFS 1926 test -z "$as_dir" && as_dir=. 1927 for ac_exec_ext in '' $ac_executable_extensions; do 1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1929 ac_cv_prog_ac_ct_STRIP="strip" 1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1931 break 2 1932 fi 1933done 1934done 1935 1936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1937fi 1938fi 1939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1940if test -n "$ac_ct_STRIP"; then 1941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1942echo "${ECHO_T}$ac_ct_STRIP" >&6 1943else 1944 echo "$as_me:$LINENO: result: no" >&5 1945echo "${ECHO_T}no" >&6 1946fi 1947 1948 STRIP=$ac_ct_STRIP 1949else 1950 STRIP="$ac_cv_prog_STRIP" 1951fi 1952 1953fi 1954INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1955 1956# We need awk for the "check" target. The system "awk" is bad on 1957# some platforms. 1958# Always define AMTAR for backward compatibility. 1959 1960AMTAR=${AMTAR-"${am_missing_run}tar"} 1961 1962am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1963 1964 1965 1966 1967 1968echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1969echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1970 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1971if test "${enable_maintainer_mode+set}" = set; then 1972 enableval="$enable_maintainer_mode" 1973 USE_MAINTAINER_MODE=$enableval 1974else 1975 USE_MAINTAINER_MODE=no 1976fi; 1977 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1978echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1979 1980 1981if test $USE_MAINTAINER_MODE = yes; then 1982 MAINTAINER_MODE_TRUE= 1983 MAINTAINER_MODE_FALSE='#' 1984else 1985 MAINTAINER_MODE_TRUE='#' 1986 MAINTAINER_MODE_FALSE= 1987fi 1988 1989 MAINT=$MAINTAINER_MODE_TRUE 1990 1991 1992 1993 ac_config_headers="$ac_config_headers config.h" 1994 1995 1996# Check for progs 1997ac_ext=c 1998ac_cpp='$CPP $CPPFLAGS' 1999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2001ac_compiler_gnu=$ac_cv_c_compiler_gnu 2002if test -n "$ac_tool_prefix"; then 2003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2004set dummy ${ac_tool_prefix}gcc; ac_word=$2 2005echo "$as_me:$LINENO: checking for $ac_word" >&5 2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2007if test "${ac_cv_prog_CC+set}" = set; then 2008 echo $ECHO_N "(cached) $ECHO_C" >&6 2009else 2010 if test -n "$CC"; then 2011 ac_cv_prog_CC="$CC" # Let the user override the test. 2012else 2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2014for as_dir in $PATH 2015do 2016 IFS=$as_save_IFS 2017 test -z "$as_dir" && as_dir=. 2018 for ac_exec_ext in '' $ac_executable_extensions; do 2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2020 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2022 break 2 2023 fi 2024done 2025done 2026 2027fi 2028fi 2029CC=$ac_cv_prog_CC 2030if test -n "$CC"; then 2031 echo "$as_me:$LINENO: result: $CC" >&5 2032echo "${ECHO_T}$CC" >&6 2033else 2034 echo "$as_me:$LINENO: result: no" >&5 2035echo "${ECHO_T}no" >&6 2036fi 2037 2038fi 2039if test -z "$ac_cv_prog_CC"; then 2040 ac_ct_CC=$CC 2041 # Extract the first word of "gcc", so it can be a program name with args. 2042set dummy gcc; ac_word=$2 2043echo "$as_me:$LINENO: checking for $ac_word" >&5 2044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2045if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2046 echo $ECHO_N "(cached) $ECHO_C" >&6 2047else 2048 if test -n "$ac_ct_CC"; then 2049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2050else 2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2052for as_dir in $PATH 2053do 2054 IFS=$as_save_IFS 2055 test -z "$as_dir" && as_dir=. 2056 for ac_exec_ext in '' $ac_executable_extensions; do 2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2058 ac_cv_prog_ac_ct_CC="gcc" 2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2060 break 2 2061 fi 2062done 2063done 2064 2065fi 2066fi 2067ac_ct_CC=$ac_cv_prog_ac_ct_CC 2068if test -n "$ac_ct_CC"; then 2069 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2070echo "${ECHO_T}$ac_ct_CC" >&6 2071else 2072 echo "$as_me:$LINENO: result: no" >&5 2073echo "${ECHO_T}no" >&6 2074fi 2075 2076 CC=$ac_ct_CC 2077else 2078 CC="$ac_cv_prog_CC" 2079fi 2080 2081if test -z "$CC"; then 2082 if test -n "$ac_tool_prefix"; then 2083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2084set dummy ${ac_tool_prefix}cc; ac_word=$2 2085echo "$as_me:$LINENO: checking for $ac_word" >&5 2086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2087if test "${ac_cv_prog_CC+set}" = set; then 2088 echo $ECHO_N "(cached) $ECHO_C" >&6 2089else 2090 if test -n "$CC"; then 2091 ac_cv_prog_CC="$CC" # Let the user override the test. 2092else 2093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2094for as_dir in $PATH 2095do 2096 IFS=$as_save_IFS 2097 test -z "$as_dir" && as_dir=. 2098 for ac_exec_ext in '' $ac_executable_extensions; do 2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2100 ac_cv_prog_CC="${ac_tool_prefix}cc" 2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2102 break 2 2103 fi 2104done 2105done 2106 2107fi 2108fi 2109CC=$ac_cv_prog_CC 2110if test -n "$CC"; then 2111 echo "$as_me:$LINENO: result: $CC" >&5 2112echo "${ECHO_T}$CC" >&6 2113else 2114 echo "$as_me:$LINENO: result: no" >&5 2115echo "${ECHO_T}no" >&6 2116fi 2117 2118fi 2119if test -z "$ac_cv_prog_CC"; then 2120 ac_ct_CC=$CC 2121 # Extract the first word of "cc", so it can be a program name with args. 2122set dummy cc; ac_word=$2 2123echo "$as_me:$LINENO: checking for $ac_word" >&5 2124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2125if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2126 echo $ECHO_N "(cached) $ECHO_C" >&6 2127else 2128 if test -n "$ac_ct_CC"; then 2129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2130else 2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2132for as_dir in $PATH 2133do 2134 IFS=$as_save_IFS 2135 test -z "$as_dir" && as_dir=. 2136 for ac_exec_ext in '' $ac_executable_extensions; do 2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2138 ac_cv_prog_ac_ct_CC="cc" 2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2140 break 2 2141 fi 2142done 2143done 2144 2145fi 2146fi 2147ac_ct_CC=$ac_cv_prog_ac_ct_CC 2148if test -n "$ac_ct_CC"; then 2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2150echo "${ECHO_T}$ac_ct_CC" >&6 2151else 2152 echo "$as_me:$LINENO: result: no" >&5 2153echo "${ECHO_T}no" >&6 2154fi 2155 2156 CC=$ac_ct_CC 2157else 2158 CC="$ac_cv_prog_CC" 2159fi 2160 2161fi 2162if test -z "$CC"; then 2163 # Extract the first word of "cc", so it can be a program name with args. 2164set dummy cc; ac_word=$2 2165echo "$as_me:$LINENO: checking for $ac_word" >&5 2166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2167if test "${ac_cv_prog_CC+set}" = set; then 2168 echo $ECHO_N "(cached) $ECHO_C" >&6 2169else 2170 if test -n "$CC"; then 2171 ac_cv_prog_CC="$CC" # Let the user override the test. 2172else 2173 ac_prog_rejected=no 2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2175for as_dir in $PATH 2176do 2177 IFS=$as_save_IFS 2178 test -z "$as_dir" && as_dir=. 2179 for ac_exec_ext in '' $ac_executable_extensions; do 2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2181 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2182 ac_prog_rejected=yes 2183 continue 2184 fi 2185 ac_cv_prog_CC="cc" 2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2187 break 2 2188 fi 2189done 2190done 2191 2192if test $ac_prog_rejected = yes; then 2193 # We found a bogon in the path, so make sure we never use it. 2194 set dummy $ac_cv_prog_CC 2195 shift 2196 if test $# != 0; then 2197 # We chose a different compiler from the bogus one. 2198 # However, it has the same basename, so the bogon will be chosen 2199 # first if we set CC to just the basename; use the full file name. 2200 shift 2201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2202 fi 2203fi 2204fi 2205fi 2206CC=$ac_cv_prog_CC 2207if test -n "$CC"; then 2208 echo "$as_me:$LINENO: result: $CC" >&5 2209echo "${ECHO_T}$CC" >&6 2210else 2211 echo "$as_me:$LINENO: result: no" >&5 2212echo "${ECHO_T}no" >&6 2213fi 2214 2215fi 2216if test -z "$CC"; then 2217 if test -n "$ac_tool_prefix"; then 2218 for ac_prog in cl 2219 do 2220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2221set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2222echo "$as_me:$LINENO: checking for $ac_word" >&5 2223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2224if test "${ac_cv_prog_CC+set}" = set; then 2225 echo $ECHO_N "(cached) $ECHO_C" >&6 2226else 2227 if test -n "$CC"; then 2228 ac_cv_prog_CC="$CC" # Let the user override the test. 2229else 2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2231for as_dir in $PATH 2232do 2233 IFS=$as_save_IFS 2234 test -z "$as_dir" && as_dir=. 2235 for ac_exec_ext in '' $ac_executable_extensions; do 2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2239 break 2 2240 fi 2241done 2242done 2243 2244fi 2245fi 2246CC=$ac_cv_prog_CC 2247if test -n "$CC"; then 2248 echo "$as_me:$LINENO: result: $CC" >&5 2249echo "${ECHO_T}$CC" >&6 2250else 2251 echo "$as_me:$LINENO: result: no" >&5 2252echo "${ECHO_T}no" >&6 2253fi 2254 2255 test -n "$CC" && break 2256 done 2257fi 2258if test -z "$CC"; then 2259 ac_ct_CC=$CC 2260 for ac_prog in cl 2261do 2262 # Extract the first word of "$ac_prog", so it can be a program name with args. 2263set dummy $ac_prog; ac_word=$2 2264echo "$as_me:$LINENO: checking for $ac_word" >&5 2265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2267 echo $ECHO_N "(cached) $ECHO_C" >&6 2268else 2269 if test -n "$ac_ct_CC"; then 2270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2271else 2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2273for as_dir in $PATH 2274do 2275 IFS=$as_save_IFS 2276 test -z "$as_dir" && as_dir=. 2277 for ac_exec_ext in '' $ac_executable_extensions; do 2278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2279 ac_cv_prog_ac_ct_CC="$ac_prog" 2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2281 break 2 2282 fi 2283done 2284done 2285 2286fi 2287fi 2288ac_ct_CC=$ac_cv_prog_ac_ct_CC 2289if test -n "$ac_ct_CC"; then 2290 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2291echo "${ECHO_T}$ac_ct_CC" >&6 2292else 2293 echo "$as_me:$LINENO: result: no" >&5 2294echo "${ECHO_T}no" >&6 2295fi 2296 2297 test -n "$ac_ct_CC" && break 2298done 2299 2300 CC=$ac_ct_CC 2301fi 2302 2303fi 2304 2305 2306test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2307See \`config.log' for more details." >&5 2308echo "$as_me: error: no acceptable C compiler found in \$PATH 2309See \`config.log' for more details." >&2;} 2310 { (exit 1); exit 1; }; } 2311 2312# Provide some information about the compiler. 2313echo "$as_me:$LINENO:" \ 2314 "checking for C compiler version" >&5 2315ac_compiler=`set X $ac_compile; echo $2` 2316{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2317 (eval $ac_compiler --version </dev/null >&5) 2>&5 2318 ac_status=$? 2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2320 (exit $ac_status); } 2321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2322 (eval $ac_compiler -v </dev/null >&5) 2>&5 2323 ac_status=$? 2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2325 (exit $ac_status); } 2326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2327 (eval $ac_compiler -V </dev/null >&5) 2>&5 2328 ac_status=$? 2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2330 (exit $ac_status); } 2331 2332cat >conftest.$ac_ext <<_ACEOF 2333/* confdefs.h. */ 2334_ACEOF 2335cat confdefs.h >>conftest.$ac_ext 2336cat >>conftest.$ac_ext <<_ACEOF 2337/* end confdefs.h. */ 2338 2339int 2340main () 2341{ 2342 2343 ; 2344 return 0; 2345} 2346_ACEOF 2347ac_clean_files_save=$ac_clean_files 2348ac_clean_files="$ac_clean_files a.out a.exe b.out" 2349# Try to create an executable without -o first, disregard a.out. 2350# It will help us diagnose broken compilers, and finding out an intuition 2351# of exeext. 2352echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2353echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2354ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2355if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2356 (eval $ac_link_default) 2>&5 2357 ac_status=$? 2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2359 (exit $ac_status); }; then 2360 # Find the output, starting from the most likely. This scheme is 2361# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2362# resort. 2363 2364# Be careful to initialize this variable, since it used to be cached. 2365# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2366ac_cv_exeext= 2367# b.out is created by i960 compilers. 2368for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2369do 2370 test -f "$ac_file" || continue 2371 case $ac_file in 2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2373 ;; 2374 conftest.$ac_ext ) 2375 # This is the source file. 2376 ;; 2377 [ab].out ) 2378 # We found the default executable, but exeext='' is most 2379 # certainly right. 2380 break;; 2381 *.* ) 2382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2383 # FIXME: I believe we export ac_cv_exeext for Libtool, 2384 # but it would be cool to find out if it's true. Does anybody 2385 # maintain Libtool? --akim. 2386 export ac_cv_exeext 2387 break;; 2388 * ) 2389 break;; 2390 esac 2391done 2392else 2393 echo "$as_me: failed program was:" >&5 2394sed 's/^/| /' conftest.$ac_ext >&5 2395 2396{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2397See \`config.log' for more details." >&5 2398echo "$as_me: error: C compiler cannot create executables 2399See \`config.log' for more details." >&2;} 2400 { (exit 77); exit 77; }; } 2401fi 2402 2403ac_exeext=$ac_cv_exeext 2404echo "$as_me:$LINENO: result: $ac_file" >&5 2405echo "${ECHO_T}$ac_file" >&6 2406 2407# Check the compiler produces executables we can run. If not, either 2408# the compiler is broken, or we cross compile. 2409echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2410echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2411# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2412# If not cross compiling, check that we can run a simple program. 2413if test "$cross_compiling" != yes; then 2414 if { ac_try='./$ac_file' 2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2416 (eval $ac_try) 2>&5 2417 ac_status=$? 2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2419 (exit $ac_status); }; }; then 2420 cross_compiling=no 2421 else 2422 if test "$cross_compiling" = maybe; then 2423 cross_compiling=yes 2424 else 2425 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2426If you meant to cross compile, use \`--host'. 2427See \`config.log' for more details." >&5 2428echo "$as_me: error: cannot run C compiled programs. 2429If you meant to cross compile, use \`--host'. 2430See \`config.log' for more details." >&2;} 2431 { (exit 1); exit 1; }; } 2432 fi 2433 fi 2434fi 2435echo "$as_me:$LINENO: result: yes" >&5 2436echo "${ECHO_T}yes" >&6 2437 2438rm -f a.out a.exe conftest$ac_cv_exeext b.out 2439ac_clean_files=$ac_clean_files_save 2440# Check the compiler produces executables we can run. If not, either 2441# the compiler is broken, or we cross compile. 2442echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2443echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2444echo "$as_me:$LINENO: result: $cross_compiling" >&5 2445echo "${ECHO_T}$cross_compiling" >&6 2446 2447echo "$as_me:$LINENO: checking for suffix of executables" >&5 2448echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2450 (eval $ac_link) 2>&5 2451 ac_status=$? 2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2453 (exit $ac_status); }; then 2454 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2455# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2456# work properly (i.e., refer to `conftest.exe'), while it won't with 2457# `rm'. 2458for ac_file in conftest.exe conftest conftest.*; do 2459 test -f "$ac_file" || continue 2460 case $ac_file in 2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2463 export ac_cv_exeext 2464 break;; 2465 * ) break;; 2466 esac 2467done 2468else 2469 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2470See \`config.log' for more details." >&5 2471echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2472See \`config.log' for more details." >&2;} 2473 { (exit 1); exit 1; }; } 2474fi 2475 2476rm -f conftest$ac_cv_exeext 2477echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2478echo "${ECHO_T}$ac_cv_exeext" >&6 2479 2480rm -f conftest.$ac_ext 2481EXEEXT=$ac_cv_exeext 2482ac_exeext=$EXEEXT 2483echo "$as_me:$LINENO: checking for suffix of object files" >&5 2484echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2485if test "${ac_cv_objext+set}" = set; then 2486 echo $ECHO_N "(cached) $ECHO_C" >&6 2487else 2488 cat >conftest.$ac_ext <<_ACEOF 2489/* confdefs.h. */ 2490_ACEOF 2491cat confdefs.h >>conftest.$ac_ext 2492cat >>conftest.$ac_ext <<_ACEOF 2493/* end confdefs.h. */ 2494 2495int 2496main () 2497{ 2498 2499 ; 2500 return 0; 2501} 2502_ACEOF 2503rm -f conftest.o conftest.obj 2504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2505 (eval $ac_compile) 2>&5 2506 ac_status=$? 2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2508 (exit $ac_status); }; then 2509 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2510 case $ac_file in 2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2513 break;; 2514 esac 2515done 2516else 2517 echo "$as_me: failed program was:" >&5 2518sed 's/^/| /' conftest.$ac_ext >&5 2519 2520{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2521See \`config.log' for more details." >&5 2522echo "$as_me: error: cannot compute suffix of object files: cannot compile 2523See \`config.log' for more details." >&2;} 2524 { (exit 1); exit 1; }; } 2525fi 2526 2527rm -f conftest.$ac_cv_objext conftest.$ac_ext 2528fi 2529echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2530echo "${ECHO_T}$ac_cv_objext" >&6 2531OBJEXT=$ac_cv_objext 2532ac_objext=$OBJEXT 2533echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2534echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2535if test "${ac_cv_c_compiler_gnu+set}" = set; then 2536 echo $ECHO_N "(cached) $ECHO_C" >&6 2537else 2538 cat >conftest.$ac_ext <<_ACEOF 2539/* confdefs.h. */ 2540_ACEOF 2541cat confdefs.h >>conftest.$ac_ext 2542cat >>conftest.$ac_ext <<_ACEOF 2543/* end confdefs.h. */ 2544 2545int 2546main () 2547{ 2548#ifndef __GNUC__ 2549 choke me 2550#endif 2551 2552 ; 2553 return 0; 2554} 2555_ACEOF 2556rm -f conftest.$ac_objext 2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2558 (eval $ac_compile) 2>conftest.er1 2559 ac_status=$? 2560 grep -v '^ *+' conftest.er1 >conftest.err 2561 rm -f conftest.er1 2562 cat conftest.err >&5 2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2564 (exit $ac_status); } && 2565 { ac_try='test -z "$ac_c_werror_flag" 2566 || test ! -s conftest.err' 2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2568 (eval $ac_try) 2>&5 2569 ac_status=$? 2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 (exit $ac_status); }; } && 2572 { ac_try='test -s conftest.$ac_objext' 2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2574 (eval $ac_try) 2>&5 2575 ac_status=$? 2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2577 (exit $ac_status); }; }; then 2578 ac_compiler_gnu=yes 2579else 2580 echo "$as_me: failed program was:" >&5 2581sed 's/^/| /' conftest.$ac_ext >&5 2582 2583ac_compiler_gnu=no 2584fi 2585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2586ac_cv_c_compiler_gnu=$ac_compiler_gnu 2587 2588fi 2589echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2590echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2591GCC=`test $ac_compiler_gnu = yes && echo yes` 2592ac_test_CFLAGS=${CFLAGS+set} 2593ac_save_CFLAGS=$CFLAGS 2594CFLAGS="-g" 2595echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2596echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2597if test "${ac_cv_prog_cc_g+set}" = set; then 2598 echo $ECHO_N "(cached) $ECHO_C" >&6 2599else 2600 cat >conftest.$ac_ext <<_ACEOF 2601/* confdefs.h. */ 2602_ACEOF 2603cat confdefs.h >>conftest.$ac_ext 2604cat >>conftest.$ac_ext <<_ACEOF 2605/* end confdefs.h. */ 2606 2607int 2608main () 2609{ 2610 2611 ; 2612 return 0; 2613} 2614_ACEOF 2615rm -f conftest.$ac_objext 2616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2617 (eval $ac_compile) 2>conftest.er1 2618 ac_status=$? 2619 grep -v '^ *+' conftest.er1 >conftest.err 2620 rm -f conftest.er1 2621 cat conftest.err >&5 2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2623 (exit $ac_status); } && 2624 { ac_try='test -z "$ac_c_werror_flag" 2625 || test ! -s conftest.err' 2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2627 (eval $ac_try) 2>&5 2628 ac_status=$? 2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2630 (exit $ac_status); }; } && 2631 { ac_try='test -s conftest.$ac_objext' 2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2633 (eval $ac_try) 2>&5 2634 ac_status=$? 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2636 (exit $ac_status); }; }; then 2637 ac_cv_prog_cc_g=yes 2638else 2639 echo "$as_me: failed program was:" >&5 2640sed 's/^/| /' conftest.$ac_ext >&5 2641 2642ac_cv_prog_cc_g=no 2643fi 2644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2645fi 2646echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2647echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2648if test "$ac_test_CFLAGS" = set; then 2649 CFLAGS=$ac_save_CFLAGS 2650elif test $ac_cv_prog_cc_g = yes; then 2651 if test "$GCC" = yes; then 2652 CFLAGS="-g -O2" 2653 else 2654 CFLAGS="-g" 2655 fi 2656else 2657 if test "$GCC" = yes; then 2658 CFLAGS="-O2" 2659 else 2660 CFLAGS= 2661 fi 2662fi 2663echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2664echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2665if test "${ac_cv_prog_cc_stdc+set}" = set; then 2666 echo $ECHO_N "(cached) $ECHO_C" >&6 2667else 2668 ac_cv_prog_cc_stdc=no 2669ac_save_CC=$CC 2670cat >conftest.$ac_ext <<_ACEOF 2671/* confdefs.h. */ 2672_ACEOF 2673cat confdefs.h >>conftest.$ac_ext 2674cat >>conftest.$ac_ext <<_ACEOF 2675/* end confdefs.h. */ 2676#include <stdarg.h> 2677#include <stdio.h> 2678#include <sys/types.h> 2679#include <sys/stat.h> 2680/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2681struct buf { int x; }; 2682FILE * (*rcsopen) (struct buf *, struct stat *, int); 2683static char *e (p, i) 2684 char **p; 2685 int i; 2686{ 2687 return p[i]; 2688} 2689static char *f (char * (*g) (char **, int), char **p, ...) 2690{ 2691 char *s; 2692 va_list v; 2693 va_start (v,p); 2694 s = g (p, va_arg (v,int)); 2695 va_end (v); 2696 return s; 2697} 2698 2699/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2700 function prototypes and stuff, but not '\xHH' hex character constants. 2701 These don't provoke an error unfortunately, instead are silently treated 2702 as 'x'. The following induces an error, until -std1 is added to get 2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2704 array size at least. It's necessary to write '\x00'==0 to get something 2705 that's true only with -std1. */ 2706int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2707 2708int test (int i, double x); 2709struct s1 {int (*f) (int a);}; 2710struct s2 {int (*f) (double a);}; 2711int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2712int argc; 2713char **argv; 2714int 2715main () 2716{ 2717return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2718 ; 2719 return 0; 2720} 2721_ACEOF 2722# Don't try gcc -ansi; that turns off useful extensions and 2723# breaks some systems' header files. 2724# AIX -qlanglvl=ansi 2725# Ultrix and OSF/1 -std1 2726# HP-UX 10.20 and later -Ae 2727# HP-UX older versions -Aa -D_HPUX_SOURCE 2728# SVR4 -Xc -D__EXTENSIONS__ 2729for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2730do 2731 CC="$ac_save_CC $ac_arg" 2732 rm -f conftest.$ac_objext 2733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2734 (eval $ac_compile) 2>conftest.er1 2735 ac_status=$? 2736 grep -v '^ *+' conftest.er1 >conftest.err 2737 rm -f conftest.er1 2738 cat conftest.err >&5 2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740 (exit $ac_status); } && 2741 { ac_try='test -z "$ac_c_werror_flag" 2742 || test ! -s conftest.err' 2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2744 (eval $ac_try) 2>&5 2745 ac_status=$? 2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2747 (exit $ac_status); }; } && 2748 { ac_try='test -s conftest.$ac_objext' 2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2750 (eval $ac_try) 2>&5 2751 ac_status=$? 2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2753 (exit $ac_status); }; }; then 2754 ac_cv_prog_cc_stdc=$ac_arg 2755break 2756else 2757 echo "$as_me: failed program was:" >&5 2758sed 's/^/| /' conftest.$ac_ext >&5 2759 2760fi 2761rm -f conftest.err conftest.$ac_objext 2762done 2763rm -f conftest.$ac_ext conftest.$ac_objext 2764CC=$ac_save_CC 2765 2766fi 2767 2768case "x$ac_cv_prog_cc_stdc" in 2769 x|xno) 2770 echo "$as_me:$LINENO: result: none needed" >&5 2771echo "${ECHO_T}none needed" >&6 ;; 2772 *) 2773 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2774echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2775 CC="$CC $ac_cv_prog_cc_stdc" ;; 2776esac 2777 2778# Some people use a C++ compiler to compile C. Since we use `exit', 2779# in C++ we need to declare it. In case someone uses the same compiler 2780# for both compiling C and C++ we need to have the C++ compiler decide 2781# the declaration of exit, since it's the most demanding environment. 2782cat >conftest.$ac_ext <<_ACEOF 2783#ifndef __cplusplus 2784 choke me 2785#endif 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 for ac_declaration in \ 2810 '' \ 2811 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2812 'extern "C" void std::exit (int); using std::exit;' \ 2813 'extern "C" void exit (int) throw ();' \ 2814 'extern "C" void exit (int);' \ 2815 'void exit (int);' 2816do 2817 cat >conftest.$ac_ext <<_ACEOF 2818/* confdefs.h. */ 2819_ACEOF 2820cat confdefs.h >>conftest.$ac_ext 2821cat >>conftest.$ac_ext <<_ACEOF 2822/* end confdefs.h. */ 2823$ac_declaration 2824#include <stdlib.h> 2825int 2826main () 2827{ 2828exit (42); 2829 ; 2830 return 0; 2831} 2832_ACEOF 2833rm -f conftest.$ac_objext 2834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2835 (eval $ac_compile) 2>conftest.er1 2836 ac_status=$? 2837 grep -v '^ *+' conftest.er1 >conftest.err 2838 rm -f conftest.er1 2839 cat conftest.err >&5 2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2841 (exit $ac_status); } && 2842 { ac_try='test -z "$ac_c_werror_flag" 2843 || test ! -s conftest.err' 2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2845 (eval $ac_try) 2>&5 2846 ac_status=$? 2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2848 (exit $ac_status); }; } && 2849 { ac_try='test -s conftest.$ac_objext' 2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2851 (eval $ac_try) 2>&5 2852 ac_status=$? 2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2854 (exit $ac_status); }; }; then 2855 : 2856else 2857 echo "$as_me: failed program was:" >&5 2858sed 's/^/| /' conftest.$ac_ext >&5 2859 2860continue 2861fi 2862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2863 cat >conftest.$ac_ext <<_ACEOF 2864/* confdefs.h. */ 2865_ACEOF 2866cat confdefs.h >>conftest.$ac_ext 2867cat >>conftest.$ac_ext <<_ACEOF 2868/* end confdefs.h. */ 2869$ac_declaration 2870int 2871main () 2872{ 2873exit (42); 2874 ; 2875 return 0; 2876} 2877_ACEOF 2878rm -f conftest.$ac_objext 2879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2880 (eval $ac_compile) 2>conftest.er1 2881 ac_status=$? 2882 grep -v '^ *+' conftest.er1 >conftest.err 2883 rm -f conftest.er1 2884 cat conftest.err >&5 2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2886 (exit $ac_status); } && 2887 { ac_try='test -z "$ac_c_werror_flag" 2888 || test ! -s conftest.err' 2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2890 (eval $ac_try) 2>&5 2891 ac_status=$? 2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2893 (exit $ac_status); }; } && 2894 { ac_try='test -s conftest.$ac_objext' 2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2896 (eval $ac_try) 2>&5 2897 ac_status=$? 2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2899 (exit $ac_status); }; }; then 2900 break 2901else 2902 echo "$as_me: failed program was:" >&5 2903sed 's/^/| /' conftest.$ac_ext >&5 2904 2905fi 2906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2907done 2908rm -f conftest* 2909if test -n "$ac_declaration"; then 2910 echo '#ifdef __cplusplus' >>confdefs.h 2911 echo $ac_declaration >>confdefs.h 2912 echo '#endif' >>confdefs.h 2913fi 2914 2915else 2916 echo "$as_me: failed program was:" >&5 2917sed 's/^/| /' conftest.$ac_ext >&5 2918 2919fi 2920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2921ac_ext=c 2922ac_cpp='$CPP $CPPFLAGS' 2923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2925ac_compiler_gnu=$ac_cv_c_compiler_gnu 2926DEPDIR="${am__leading_dot}deps" 2927 2928 ac_config_commands="$ac_config_commands depfiles" 2929 2930 2931am_make=${MAKE-make} 2932cat > confinc << 'END' 2933am__doit: 2934 @echo done 2935.PHONY: am__doit 2936END 2937# If we don't find an include directive, just comment out the code. 2938echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2939echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2940am__include="#" 2941am__quote= 2942_am_result=none 2943# First try GNU make style include. 2944echo "include confinc" > confmf 2945# We grep out `Entering directory' and `Leaving directory' 2946# messages which can occur if `w' ends up in MAKEFLAGS. 2947# In particular we don't look at `^make:' because GNU make might 2948# be invoked under some other name (usually "gmake"), in which 2949# case it prints its new name instead of `make'. 2950if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2951 am__include=include 2952 am__quote= 2953 _am_result=GNU 2954fi 2955# Now try BSD make style include. 2956if test "$am__include" = "#"; then 2957 echo '.include "confinc"' > confmf 2958 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2959 am__include=.include 2960 am__quote="\"" 2961 _am_result=BSD 2962 fi 2963fi 2964 2965 2966echo "$as_me:$LINENO: result: $_am_result" >&5 2967echo "${ECHO_T}$_am_result" >&6 2968rm -f confinc confmf 2969 2970# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2971if test "${enable_dependency_tracking+set}" = set; then 2972 enableval="$enable_dependency_tracking" 2973 2974fi; 2975if test "x$enable_dependency_tracking" != xno; then 2976 am_depcomp="$ac_aux_dir/depcomp" 2977 AMDEPBACKSLASH='\' 2978fi 2979 2980 2981if test "x$enable_dependency_tracking" != xno; then 2982 AMDEP_TRUE= 2983 AMDEP_FALSE='#' 2984else 2985 AMDEP_TRUE='#' 2986 AMDEP_FALSE= 2987fi 2988 2989 2990 2991 2992depcc="$CC" am_compiler_list= 2993 2994echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2995echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2996if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2997 echo $ECHO_N "(cached) $ECHO_C" >&6 2998else 2999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3000 # We make a subdir and do the tests there. Otherwise we can end up 3001 # making bogus files that we don't know about and never remove. For 3002 # instance it was reported that on HP-UX the gcc test will end up 3003 # making a dummy file named `D' -- because `-MD' means `put the output 3004 # in D'. 3005 mkdir conftest.dir 3006 # Copy depcomp to subdir because otherwise we won't find it if we're 3007 # using a relative directory. 3008 cp "$am_depcomp" conftest.dir 3009 cd conftest.dir 3010 # We will build objects and dependencies in a subdirectory because 3011 # it helps to detect inapplicable dependency modes. For instance 3012 # both Tru64's cc and ICC support -MD to output dependencies as a 3013 # side effect of compilation, but ICC will put the dependencies in 3014 # the current directory while Tru64 will put them in the object 3015 # directory. 3016 mkdir sub 3017 3018 am_cv_CC_dependencies_compiler_type=none 3019 if test "$am_compiler_list" = ""; then 3020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3021 fi 3022 for depmode in $am_compiler_list; do 3023 # Setup a source with many dependencies, because some compilers 3024 # like to wrap large dependency lists on column 80 (with \), and 3025 # we should not choose a depcomp mode which is confused by this. 3026 # 3027 # We need to recreate these files for each test, as the compiler may 3028 # overwrite some of them when testing with obscure command lines. 3029 # This happens at least with the AIX C compiler. 3030 : > sub/conftest.c 3031 for i in 1 2 3 4 5 6; do 3032 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3034 # Solaris 8's {/usr,}/bin/sh. 3035 touch sub/conftst$i.h 3036 done 3037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3038 3039 case $depmode in 3040 nosideeffect) 3041 # after this tag, mechanisms are not by side-effect, so they'll 3042 # only be used when explicitly requested 3043 if test "x$enable_dependency_tracking" = xyes; then 3044 continue 3045 else 3046 break 3047 fi 3048 ;; 3049 none) break ;; 3050 esac 3051 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3052 # mode. It turns out that the SunPro C++ compiler does not properly 3053 # handle `-M -o', and we need to detect this. 3054 if depmode=$depmode \ 3055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3058 >/dev/null 2>conftest.err && 3059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3060 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3062 # icc doesn't choke on unknown options, it will just issue warnings 3063 # or remarks (even with -Werror). So we grep stderr for any message 3064 # that says an option was ignored or not supported. 3065 # When given -MP, icc 7.0 and 7.1 complain thusly: 3066 # icc: Command line warning: ignoring option '-M'; no argument required 3067 # The diagnosis changed in icc 8.0: 3068 # icc: Command line remark: option '-MP' not supported 3069 if (grep 'ignoring option' conftest.err || 3070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3071 am_cv_CC_dependencies_compiler_type=$depmode 3072 break 3073 fi 3074 fi 3075 done 3076 3077 cd .. 3078 rm -rf conftest.dir 3079else 3080 am_cv_CC_dependencies_compiler_type=none 3081fi 3082 3083fi 3084echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3085echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3086CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3087 3088 3089 3090if 3091 test "x$enable_dependency_tracking" != xno \ 3092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3093 am__fastdepCC_TRUE= 3094 am__fastdepCC_FALSE='#' 3095else 3096 am__fastdepCC_TRUE='#' 3097 am__fastdepCC_FALSE= 3098fi 3099 3100 3101# Check whether --enable-shared or --disable-shared was given. 3102if test "${enable_shared+set}" = set; then 3103 enableval="$enable_shared" 3104 p=${PACKAGE-default} 3105 case $enableval in 3106 yes) enable_shared=yes ;; 3107 no) enable_shared=no ;; 3108 *) 3109 enable_shared=no 3110 # Look at the argument we got. We use all the common list separators. 3111 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3112 for pkg in $enableval; do 3113 IFS="$lt_save_ifs" 3114 if test "X$pkg" = "X$p"; then 3115 enable_shared=yes 3116 fi 3117 done 3118 IFS="$lt_save_ifs" 3119 ;; 3120 esac 3121else 3122 enable_shared=yes 3123fi; 3124 3125# Check whether --enable-static or --disable-static was given. 3126if test "${enable_static+set}" = set; then 3127 enableval="$enable_static" 3128 p=${PACKAGE-default} 3129 case $enableval in 3130 yes) enable_static=yes ;; 3131 no) enable_static=no ;; 3132 *) 3133 enable_static=no 3134 # Look at the argument we got. We use all the common list separators. 3135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3136 for pkg in $enableval; do 3137 IFS="$lt_save_ifs" 3138 if test "X$pkg" = "X$p"; then 3139 enable_static=yes 3140 fi 3141 done 3142 IFS="$lt_save_ifs" 3143 ;; 3144 esac 3145else 3146 enable_static=yes 3147fi; 3148 3149# Check whether --enable-fast-install or --disable-fast-install was given. 3150if test "${enable_fast_install+set}" = set; then 3151 enableval="$enable_fast_install" 3152 p=${PACKAGE-default} 3153 case $enableval in 3154 yes) enable_fast_install=yes ;; 3155 no) enable_fast_install=no ;; 3156 *) 3157 enable_fast_install=no 3158 # Look at the argument we got. We use all the common list separators. 3159 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3160 for pkg in $enableval; do 3161 IFS="$lt_save_ifs" 3162 if test "X$pkg" = "X$p"; then 3163 enable_fast_install=yes 3164 fi 3165 done 3166 IFS="$lt_save_ifs" 3167 ;; 3168 esac 3169else 3170 enable_fast_install=yes 3171fi; 3172 3173# Make sure we can run config.sub. 3174$ac_config_sub sun4 >/dev/null 2>&1 || 3175 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3176echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3177 { (exit 1); exit 1; }; } 3178 3179echo "$as_me:$LINENO: checking build system type" >&5 3180echo $ECHO_N "checking build system type... $ECHO_C" >&6 3181if test "${ac_cv_build+set}" = set; then 3182 echo $ECHO_N "(cached) $ECHO_C" >&6 3183else 3184 ac_cv_build_alias=$build_alias 3185test -z "$ac_cv_build_alias" && 3186 ac_cv_build_alias=`$ac_config_guess` 3187test -z "$ac_cv_build_alias" && 3188 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3189echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3190 { (exit 1); exit 1; }; } 3191ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3192 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3193echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3194 { (exit 1); exit 1; }; } 3195 3196fi 3197echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3198echo "${ECHO_T}$ac_cv_build" >&6 3199build=$ac_cv_build 3200build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3201build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3202build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3203 3204 3205echo "$as_me:$LINENO: checking host system type" >&5 3206echo $ECHO_N "checking host system type... $ECHO_C" >&6 3207if test "${ac_cv_host+set}" = set; then 3208 echo $ECHO_N "(cached) $ECHO_C" >&6 3209else 3210 ac_cv_host_alias=$host_alias 3211test -z "$ac_cv_host_alias" && 3212 ac_cv_host_alias=$ac_cv_build_alias 3213ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3214 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3215echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3216 { (exit 1); exit 1; }; } 3217 3218fi 3219echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3220echo "${ECHO_T}$ac_cv_host" >&6 3221host=$ac_cv_host 3222host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3223host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3224host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3225 3226 3227echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3228echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3229if test "${lt_cv_path_SED+set}" = set; then 3230 echo $ECHO_N "(cached) $ECHO_C" >&6 3231else 3232 # Loop through the user's path and test for sed and gsed. 3233# Then use that list of sed's as ones to test for truncation. 3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3235for as_dir in $PATH 3236do 3237 IFS=$as_save_IFS 3238 test -z "$as_dir" && as_dir=. 3239 for lt_ac_prog in sed gsed; do 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3242 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3243 fi 3244 done 3245 done 3246done 3247lt_ac_max=0 3248lt_ac_count=0 3249# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3250# along with /bin/sed that truncates output. 3251for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3252 test ! -f $lt_ac_sed && continue 3253 cat /dev/null > conftest.in 3254 lt_ac_count=0 3255 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3256 # Check for GNU sed and select it if it is found. 3257 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3258 lt_cv_path_SED=$lt_ac_sed 3259 break 3260 fi 3261 while true; do 3262 cat conftest.in conftest.in >conftest.tmp 3263 mv conftest.tmp conftest.in 3264 cp conftest.in conftest.nl 3265 echo >>conftest.nl 3266 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3267 cmp -s conftest.out conftest.nl || break 3268 # 10000 chars as input seems more than enough 3269 test $lt_ac_count -gt 10 && break 3270 lt_ac_count=`expr $lt_ac_count + 1` 3271 if test $lt_ac_count -gt $lt_ac_max; then 3272 lt_ac_max=$lt_ac_count 3273 lt_cv_path_SED=$lt_ac_sed 3274 fi 3275 done 3276done 3277 3278fi 3279 3280SED=$lt_cv_path_SED 3281echo "$as_me:$LINENO: result: $SED" >&5 3282echo "${ECHO_T}$SED" >&6 3283 3284echo "$as_me:$LINENO: checking for egrep" >&5 3285echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3286if test "${ac_cv_prog_egrep+set}" = set; then 3287 echo $ECHO_N "(cached) $ECHO_C" >&6 3288else 3289 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3290 then ac_cv_prog_egrep='grep -E' 3291 else ac_cv_prog_egrep='egrep' 3292 fi 3293fi 3294echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3295echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3296 EGREP=$ac_cv_prog_egrep 3297 3298 3299 3300# Check whether --with-gnu-ld or --without-gnu-ld was given. 3301if test "${with_gnu_ld+set}" = set; then 3302 withval="$with_gnu_ld" 3303 test "$withval" = no || with_gnu_ld=yes 3304else 3305 with_gnu_ld=no 3306fi; 3307ac_prog=ld 3308if test "$GCC" = yes; then 3309 # Check if gcc -print-prog-name=ld gives a path. 3310 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3311echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3312 case $host in 3313 *-*-mingw*) 3314 # gcc leaves a trailing carriage return which upsets mingw 3315 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3316 *) 3317 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3318 esac 3319 case $ac_prog in 3320 # Accept absolute paths. 3321 [\\/]* | ?:[\\/]*) 3322 re_direlt='/[^/][^/]*/\.\./' 3323 # Canonicalize the pathname of ld 3324 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3325 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3326 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3327 done 3328 test -z "$LD" && LD="$ac_prog" 3329 ;; 3330 "") 3331 # If it fails, then pretend we aren't using GCC. 3332 ac_prog=ld 3333 ;; 3334 *) 3335 # If it is relative, then search for the first ld in PATH. 3336 with_gnu_ld=unknown 3337 ;; 3338 esac 3339elif test "$with_gnu_ld" = yes; then 3340 echo "$as_me:$LINENO: checking for GNU ld" >&5 3341echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3342else 3343 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3344echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3345fi 3346if test "${lt_cv_path_LD+set}" = set; then 3347 echo $ECHO_N "(cached) $ECHO_C" >&6 3348else 3349 if test -z "$LD"; then 3350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3351 for ac_dir in $PATH; do 3352 IFS="$lt_save_ifs" 3353 test -z "$ac_dir" && ac_dir=. 3354 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3355 lt_cv_path_LD="$ac_dir/$ac_prog" 3356 # Check to see if the program is GNU ld. I'd rather use --version, 3357 # but apparently some variants of GNU ld only accept -v. 3358 # Break only if it was the GNU/non-GNU ld that we prefer. 3359 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3360 *GNU* | *'with BFD'*) 3361 test "$with_gnu_ld" != no && break 3362 ;; 3363 *) 3364 test "$with_gnu_ld" != yes && break 3365 ;; 3366 esac 3367 fi 3368 done 3369 IFS="$lt_save_ifs" 3370else 3371 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3372fi 3373fi 3374 3375LD="$lt_cv_path_LD" 3376if test -n "$LD"; then 3377 echo "$as_me:$LINENO: result: $LD" >&5 3378echo "${ECHO_T}$LD" >&6 3379else 3380 echo "$as_me:$LINENO: result: no" >&5 3381echo "${ECHO_T}no" >&6 3382fi 3383test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3384echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3385 { (exit 1); exit 1; }; } 3386echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3387echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3388if test "${lt_cv_prog_gnu_ld+set}" = set; then 3389 echo $ECHO_N "(cached) $ECHO_C" >&6 3390else 3391 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3392case `$LD -v 2>&1 </dev/null` in 3393*GNU* | *'with BFD'*) 3394 lt_cv_prog_gnu_ld=yes 3395 ;; 3396*) 3397 lt_cv_prog_gnu_ld=no 3398 ;; 3399esac 3400fi 3401echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3402echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3403with_gnu_ld=$lt_cv_prog_gnu_ld 3404 3405 3406echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3407echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3408if test "${lt_cv_ld_reload_flag+set}" = set; then 3409 echo $ECHO_N "(cached) $ECHO_C" >&6 3410else 3411 lt_cv_ld_reload_flag='-r' 3412fi 3413echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3414echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3415reload_flag=$lt_cv_ld_reload_flag 3416case $reload_flag in 3417"" | " "*) ;; 3418*) reload_flag=" $reload_flag" ;; 3419esac 3420reload_cmds='$LD$reload_flag -o $output$reload_objs' 3421case $host_os in 3422 darwin*) 3423 if test "$GCC" = yes; then 3424 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3425 else 3426 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3427 fi 3428 ;; 3429esac 3430 3431echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3432echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3433if test "${lt_cv_path_NM+set}" = set; then 3434 echo $ECHO_N "(cached) $ECHO_C" >&6 3435else 3436 if test -n "$NM"; then 3437 # Let the user override the test. 3438 lt_cv_path_NM="$NM" 3439else 3440 lt_nm_to_check="${ac_tool_prefix}nm" 3441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3442 lt_nm_to_check="$lt_nm_to_check nm" 3443 fi 3444 for lt_tmp_nm in $lt_nm_to_check; do 3445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3446 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3447 IFS="$lt_save_ifs" 3448 test -z "$ac_dir" && ac_dir=. 3449 tmp_nm="$ac_dir/$lt_tmp_nm" 3450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3451 # Check to see if the nm accepts a BSD-compat flag. 3452 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3453 # nm: unknown option "B" ignored 3454 # Tru64's nm complains that /dev/null is an invalid object file 3455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3456 */dev/null* | *'Invalid file or object type'*) 3457 lt_cv_path_NM="$tmp_nm -B" 3458 break 3459 ;; 3460 *) 3461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3462 */dev/null*) 3463 lt_cv_path_NM="$tmp_nm -p" 3464 break 3465 ;; 3466 *) 3467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3468 continue # so that we can try to find one that supports BSD flags 3469 ;; 3470 esac 3471 ;; 3472 esac 3473 fi 3474 done 3475 IFS="$lt_save_ifs" 3476 done 3477 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3478fi 3479fi 3480echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3481echo "${ECHO_T}$lt_cv_path_NM" >&6 3482NM="$lt_cv_path_NM" 3483 3484echo "$as_me:$LINENO: checking whether ln -s works" >&5 3485echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3486LN_S=$as_ln_s 3487if test "$LN_S" = "ln -s"; then 3488 echo "$as_me:$LINENO: result: yes" >&5 3489echo "${ECHO_T}yes" >&6 3490else 3491 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3492echo "${ECHO_T}no, using $LN_S" >&6 3493fi 3494 3495echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3496echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3497if test "${lt_cv_deplibs_check_method+set}" = set; then 3498 echo $ECHO_N "(cached) $ECHO_C" >&6 3499else 3500 lt_cv_file_magic_cmd='$MAGIC_CMD' 3501lt_cv_file_magic_test_file= 3502lt_cv_deplibs_check_method='unknown' 3503# Need to set the preceding variable on all platforms that support 3504# interlibrary dependencies. 3505# 'none' -- dependencies not supported. 3506# `unknown' -- same as none, but documents that we really don't know. 3507# 'pass_all' -- all dependencies passed with no checks. 3508# 'test_compile' -- check by making test program. 3509# 'file_magic [[regex]]' -- check by looking for files in library path 3510# which responds to the $file_magic_cmd with a given extended regex. 3511# If you have `file' or equivalent on your system and you're not sure 3512# whether `pass_all' will *always* work, you probably want this one. 3513 3514case $host_os in 3515aix4* | aix5*) 3516 lt_cv_deplibs_check_method=pass_all 3517 ;; 3518 3519beos*) 3520 lt_cv_deplibs_check_method=pass_all 3521 ;; 3522 3523bsdi[45]*) 3524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3525 lt_cv_file_magic_cmd='/usr/bin/file -L' 3526 lt_cv_file_magic_test_file=/shlib/libc.so 3527 ;; 3528 3529cygwin*) 3530 # func_win32_libid is a shell function defined in ltmain.sh 3531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3532 lt_cv_file_magic_cmd='func_win32_libid' 3533 ;; 3534 3535mingw* | pw32*) 3536 # Base MSYS/MinGW do not provide the 'file' command needed by 3537 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3538 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3539 lt_cv_file_magic_cmd='$OBJDUMP -f' 3540 ;; 3541 3542darwin* | rhapsody*) 3543 lt_cv_deplibs_check_method=pass_all 3544 ;; 3545 3546freebsd* | kfreebsd*-gnu | dragonfly*) 3547 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3548 case $host_cpu in 3549 i*86 ) 3550 # Not sure whether the presence of OpenBSD here was a mistake. 3551 # Let's accept both of them until this is cleared up. 3552 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3553 lt_cv_file_magic_cmd=/usr/bin/file 3554 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3555 ;; 3556 esac 3557 else 3558 lt_cv_deplibs_check_method=pass_all 3559 fi 3560 ;; 3561 3562gnu*) 3563 lt_cv_deplibs_check_method=pass_all 3564 ;; 3565 3566hpux10.20* | hpux11*) 3567 lt_cv_file_magic_cmd=/usr/bin/file 3568 case $host_cpu in 3569 ia64*) 3570 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3571 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3572 ;; 3573 hppa*64*) 3574 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]' 3575 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3576 ;; 3577 *) 3578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3579 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3580 ;; 3581 esac 3582 ;; 3583 3584interix3*) 3585 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3587 ;; 3588 3589irix5* | irix6* | nonstopux*) 3590 case $LD in 3591 *-32|*"-32 ") libmagic=32-bit;; 3592 *-n32|*"-n32 ") libmagic=N32;; 3593 *-64|*"-64 ") libmagic=64-bit;; 3594 *) libmagic=never-match;; 3595 esac 3596 lt_cv_deplibs_check_method=pass_all 3597 ;; 3598 3599# This must be Linux ELF. 3600linux*) 3601 lt_cv_deplibs_check_method=pass_all 3602 ;; 3603 3604netbsd*) 3605 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3607 else 3608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3609 fi 3610 ;; 3611 3612newos6*) 3613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3614 lt_cv_file_magic_cmd=/usr/bin/file 3615 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3616 ;; 3617 3618nto-qnx*) 3619 lt_cv_deplibs_check_method=unknown 3620 ;; 3621 3622openbsd*) 3623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3625 else 3626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3627 fi 3628 ;; 3629 3630osf3* | osf4* | osf5*) 3631 lt_cv_deplibs_check_method=pass_all 3632 ;; 3633 3634solaris*) 3635 lt_cv_deplibs_check_method=pass_all 3636 ;; 3637 3638sysv4 | sysv4.3*) 3639 case $host_vendor in 3640 motorola) 3641 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]' 3642 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3643 ;; 3644 ncr) 3645 lt_cv_deplibs_check_method=pass_all 3646 ;; 3647 sequent) 3648 lt_cv_file_magic_cmd='/bin/file' 3649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3650 ;; 3651 sni) 3652 lt_cv_file_magic_cmd='/bin/file' 3653 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3654 lt_cv_file_magic_test_file=/lib/libc.so 3655 ;; 3656 siemens) 3657 lt_cv_deplibs_check_method=pass_all 3658 ;; 3659 pc) 3660 lt_cv_deplibs_check_method=pass_all 3661 ;; 3662 esac 3663 ;; 3664 3665sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3666 lt_cv_deplibs_check_method=pass_all 3667 ;; 3668esac 3669 3670fi 3671echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3672echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3673file_magic_cmd=$lt_cv_file_magic_cmd 3674deplibs_check_method=$lt_cv_deplibs_check_method 3675test -z "$deplibs_check_method" && deplibs_check_method=unknown 3676 3677 3678 3679 3680# If no C compiler was specified, use CC. 3681LTCC=${LTCC-"$CC"} 3682 3683# If no C compiler flags were specified, use CFLAGS. 3684LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3685 3686# Allow CC to be a program name with arguments. 3687compiler=$CC 3688 3689 3690# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3691if test "${enable_libtool_lock+set}" = set; then 3692 enableval="$enable_libtool_lock" 3693 3694fi; 3695test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3696 3697# Some flags need to be propagated to the compiler or linker for good 3698# libtool support. 3699case $host in 3700ia64-*-hpux*) 3701 # Find out which ABI we are using. 3702 echo 'int i;' > conftest.$ac_ext 3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3704 (eval $ac_compile) 2>&5 3705 ac_status=$? 3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3707 (exit $ac_status); }; then 3708 case `/usr/bin/file conftest.$ac_objext` in 3709 *ELF-32*) 3710 HPUX_IA64_MODE="32" 3711 ;; 3712 *ELF-64*) 3713 HPUX_IA64_MODE="64" 3714 ;; 3715 esac 3716 fi 3717 rm -rf conftest* 3718 ;; 3719*-*-irix6*) 3720 # Find out which ABI we are using. 3721 echo '#line 3721 "configure"' > conftest.$ac_ext 3722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3723 (eval $ac_compile) 2>&5 3724 ac_status=$? 3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3726 (exit $ac_status); }; then 3727 if test "$lt_cv_prog_gnu_ld" = yes; then 3728 case `/usr/bin/file conftest.$ac_objext` in 3729 *32-bit*) 3730 LD="${LD-ld} -melf32bsmip" 3731 ;; 3732 *N32*) 3733 LD="${LD-ld} -melf32bmipn32" 3734 ;; 3735 *64-bit*) 3736 LD="${LD-ld} -melf64bmip" 3737 ;; 3738 esac 3739 else 3740 case `/usr/bin/file conftest.$ac_objext` in 3741 *32-bit*) 3742 LD="${LD-ld} -32" 3743 ;; 3744 *N32*) 3745 LD="${LD-ld} -n32" 3746 ;; 3747 *64-bit*) 3748 LD="${LD-ld} -64" 3749 ;; 3750 esac 3751 fi 3752 fi 3753 rm -rf conftest* 3754 ;; 3755 3756x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3757 # Find out which ABI we are using. 3758 echo 'int i;' > conftest.$ac_ext 3759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3760 (eval $ac_compile) 2>&5 3761 ac_status=$? 3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3763 (exit $ac_status); }; then 3764 case `/usr/bin/file conftest.o` in 3765 *32-bit*) 3766 case $host in 3767 x86_64-*linux*) 3768 LD="${LD-ld} -m elf_i386" 3769 ;; 3770 ppc64-*linux*|powerpc64-*linux*) 3771 LD="${LD-ld} -m elf32ppclinux" 3772 ;; 3773 s390x-*linux*) 3774 LD="${LD-ld} -m elf_s390" 3775 ;; 3776 sparc64-*linux*) 3777 LD="${LD-ld} -m elf32_sparc" 3778 ;; 3779 esac 3780 ;; 3781 *64-bit*) 3782 case $host in 3783 x86_64-*linux*) 3784 LD="${LD-ld} -m elf_x86_64" 3785 ;; 3786 ppc*-*linux*|powerpc*-*linux*) 3787 LD="${LD-ld} -m elf64ppc" 3788 ;; 3789 s390*-*linux*) 3790 LD="${LD-ld} -m elf64_s390" 3791 ;; 3792 sparc*-*linux*) 3793 LD="${LD-ld} -m elf64_sparc" 3794 ;; 3795 esac 3796 ;; 3797 esac 3798 fi 3799 rm -rf conftest* 3800 ;; 3801 3802*-*-sco3.2v5*) 3803 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3804 SAVE_CFLAGS="$CFLAGS" 3805 CFLAGS="$CFLAGS -belf" 3806 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3807echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3808if test "${lt_cv_cc_needs_belf+set}" = set; then 3809 echo $ECHO_N "(cached) $ECHO_C" >&6 3810else 3811 ac_ext=c 3812ac_cpp='$CPP $CPPFLAGS' 3813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3815ac_compiler_gnu=$ac_cv_c_compiler_gnu 3816 3817 cat >conftest.$ac_ext <<_ACEOF 3818/* confdefs.h. */ 3819_ACEOF 3820cat confdefs.h >>conftest.$ac_ext 3821cat >>conftest.$ac_ext <<_ACEOF 3822/* end confdefs.h. */ 3823 3824int 3825main () 3826{ 3827 3828 ; 3829 return 0; 3830} 3831_ACEOF 3832rm -f conftest.$ac_objext conftest$ac_exeext 3833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3834 (eval $ac_link) 2>conftest.er1 3835 ac_status=$? 3836 grep -v '^ *+' conftest.er1 >conftest.err 3837 rm -f conftest.er1 3838 cat conftest.err >&5 3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 (exit $ac_status); } && 3841 { ac_try='test -z "$ac_c_werror_flag" 3842 || test ! -s conftest.err' 3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3844 (eval $ac_try) 2>&5 3845 ac_status=$? 3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3847 (exit $ac_status); }; } && 3848 { ac_try='test -s conftest$ac_exeext' 3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3850 (eval $ac_try) 2>&5 3851 ac_status=$? 3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3853 (exit $ac_status); }; }; then 3854 lt_cv_cc_needs_belf=yes 3855else 3856 echo "$as_me: failed program was:" >&5 3857sed 's/^/| /' conftest.$ac_ext >&5 3858 3859lt_cv_cc_needs_belf=no 3860fi 3861rm -f conftest.err conftest.$ac_objext \ 3862 conftest$ac_exeext conftest.$ac_ext 3863 ac_ext=c 3864ac_cpp='$CPP $CPPFLAGS' 3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3867ac_compiler_gnu=$ac_cv_c_compiler_gnu 3868 3869fi 3870echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3871echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3872 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3873 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3874 CFLAGS="$SAVE_CFLAGS" 3875 fi 3876 ;; 3877sparc*-*solaris*) 3878 # Find out which ABI we are using. 3879 echo 'int i;' > conftest.$ac_ext 3880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3881 (eval $ac_compile) 2>&5 3882 ac_status=$? 3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3884 (exit $ac_status); }; then 3885 case `/usr/bin/file conftest.o` in 3886 *64-bit*) 3887 case $lt_cv_prog_gnu_ld in 3888 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3889 *) LD="${LD-ld} -64" ;; 3890 esac 3891 ;; 3892 esac 3893 fi 3894 rm -rf conftest* 3895 ;; 3896 3897 3898esac 3899 3900need_locks="$enable_libtool_lock" 3901 3902 3903ac_ext=c 3904ac_cpp='$CPP $CPPFLAGS' 3905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3907ac_compiler_gnu=$ac_cv_c_compiler_gnu 3908echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3909echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3910# On Suns, sometimes $CPP names a directory. 3911if test -n "$CPP" && test -d "$CPP"; then 3912 CPP= 3913fi 3914if test -z "$CPP"; then 3915 if test "${ac_cv_prog_CPP+set}" = set; then 3916 echo $ECHO_N "(cached) $ECHO_C" >&6 3917else 3918 # Double quotes because CPP needs to be expanded 3919 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3920 do 3921 ac_preproc_ok=false 3922for ac_c_preproc_warn_flag in '' yes 3923do 3924 # Use a header file that comes with gcc, so configuring glibc 3925 # with a fresh cross-compiler works. 3926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3927 # <limits.h> exists even on freestanding compilers. 3928 # On the NeXT, cc -E runs the code through the compiler's parser, 3929 # not just through cpp. "Syntax error" is here to catch this case. 3930 cat >conftest.$ac_ext <<_ACEOF 3931/* confdefs.h. */ 3932_ACEOF 3933cat confdefs.h >>conftest.$ac_ext 3934cat >>conftest.$ac_ext <<_ACEOF 3935/* end confdefs.h. */ 3936#ifdef __STDC__ 3937# include <limits.h> 3938#else 3939# include <assert.h> 3940#endif 3941 Syntax error 3942_ACEOF 3943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3945 ac_status=$? 3946 grep -v '^ *+' conftest.er1 >conftest.err 3947 rm -f conftest.er1 3948 cat conftest.err >&5 3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3950 (exit $ac_status); } >/dev/null; then 3951 if test -s conftest.err; then 3952 ac_cpp_err=$ac_c_preproc_warn_flag 3953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3954 else 3955 ac_cpp_err= 3956 fi 3957else 3958 ac_cpp_err=yes 3959fi 3960if test -z "$ac_cpp_err"; then 3961 : 3962else 3963 echo "$as_me: failed program was:" >&5 3964sed 's/^/| /' conftest.$ac_ext >&5 3965 3966 # Broken: fails on valid input. 3967continue 3968fi 3969rm -f conftest.err conftest.$ac_ext 3970 3971 # OK, works on sane cases. Now check whether non-existent headers 3972 # can be detected and how. 3973 cat >conftest.$ac_ext <<_ACEOF 3974/* confdefs.h. */ 3975_ACEOF 3976cat confdefs.h >>conftest.$ac_ext 3977cat >>conftest.$ac_ext <<_ACEOF 3978/* end confdefs.h. */ 3979#include <ac_nonexistent.h> 3980_ACEOF 3981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3983 ac_status=$? 3984 grep -v '^ *+' conftest.er1 >conftest.err 3985 rm -f conftest.er1 3986 cat conftest.err >&5 3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3988 (exit $ac_status); } >/dev/null; then 3989 if test -s conftest.err; then 3990 ac_cpp_err=$ac_c_preproc_warn_flag 3991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3992 else 3993 ac_cpp_err= 3994 fi 3995else 3996 ac_cpp_err=yes 3997fi 3998if test -z "$ac_cpp_err"; then 3999 # Broken: success on invalid input. 4000continue 4001else 4002 echo "$as_me: failed program was:" >&5 4003sed 's/^/| /' conftest.$ac_ext >&5 4004 4005 # Passes both tests. 4006ac_preproc_ok=: 4007break 4008fi 4009rm -f conftest.err conftest.$ac_ext 4010 4011done 4012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4013rm -f conftest.err conftest.$ac_ext 4014if $ac_preproc_ok; then 4015 break 4016fi 4017 4018 done 4019 ac_cv_prog_CPP=$CPP 4020 4021fi 4022 CPP=$ac_cv_prog_CPP 4023else 4024 ac_cv_prog_CPP=$CPP 4025fi 4026echo "$as_me:$LINENO: result: $CPP" >&5 4027echo "${ECHO_T}$CPP" >&6 4028ac_preproc_ok=false 4029for ac_c_preproc_warn_flag in '' yes 4030do 4031 # Use a header file that comes with gcc, so configuring glibc 4032 # with a fresh cross-compiler works. 4033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4034 # <limits.h> exists even on freestanding compilers. 4035 # On the NeXT, cc -E runs the code through the compiler's parser, 4036 # not just through cpp. "Syntax error" is here to catch this case. 4037 cat >conftest.$ac_ext <<_ACEOF 4038/* confdefs.h. */ 4039_ACEOF 4040cat confdefs.h >>conftest.$ac_ext 4041cat >>conftest.$ac_ext <<_ACEOF 4042/* end confdefs.h. */ 4043#ifdef __STDC__ 4044# include <limits.h> 4045#else 4046# include <assert.h> 4047#endif 4048 Syntax error 4049_ACEOF 4050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4052 ac_status=$? 4053 grep -v '^ *+' conftest.er1 >conftest.err 4054 rm -f conftest.er1 4055 cat conftest.err >&5 4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4057 (exit $ac_status); } >/dev/null; then 4058 if test -s conftest.err; then 4059 ac_cpp_err=$ac_c_preproc_warn_flag 4060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4061 else 4062 ac_cpp_err= 4063 fi 4064else 4065 ac_cpp_err=yes 4066fi 4067if test -z "$ac_cpp_err"; then 4068 : 4069else 4070 echo "$as_me: failed program was:" >&5 4071sed 's/^/| /' conftest.$ac_ext >&5 4072 4073 # Broken: fails on valid input. 4074continue 4075fi 4076rm -f conftest.err conftest.$ac_ext 4077 4078 # OK, works on sane cases. Now check whether non-existent headers 4079 # can be detected and how. 4080 cat >conftest.$ac_ext <<_ACEOF 4081/* confdefs.h. */ 4082_ACEOF 4083cat confdefs.h >>conftest.$ac_ext 4084cat >>conftest.$ac_ext <<_ACEOF 4085/* end confdefs.h. */ 4086#include <ac_nonexistent.h> 4087_ACEOF 4088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4090 ac_status=$? 4091 grep -v '^ *+' conftest.er1 >conftest.err 4092 rm -f conftest.er1 4093 cat conftest.err >&5 4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4095 (exit $ac_status); } >/dev/null; then 4096 if test -s conftest.err; then 4097 ac_cpp_err=$ac_c_preproc_warn_flag 4098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4099 else 4100 ac_cpp_err= 4101 fi 4102else 4103 ac_cpp_err=yes 4104fi 4105if test -z "$ac_cpp_err"; then 4106 # Broken: success on invalid input. 4107continue 4108else 4109 echo "$as_me: failed program was:" >&5 4110sed 's/^/| /' conftest.$ac_ext >&5 4111 4112 # Passes both tests. 4113ac_preproc_ok=: 4114break 4115fi 4116rm -f conftest.err conftest.$ac_ext 4117 4118done 4119# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4120rm -f conftest.err conftest.$ac_ext 4121if $ac_preproc_ok; then 4122 : 4123else 4124 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4125See \`config.log' for more details." >&5 4126echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4127See \`config.log' for more details." >&2;} 4128 { (exit 1); exit 1; }; } 4129fi 4130 4131ac_ext=c 4132ac_cpp='$CPP $CPPFLAGS' 4133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4135ac_compiler_gnu=$ac_cv_c_compiler_gnu 4136 4137 4138echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4139echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4140if test "${ac_cv_header_stdc+set}" = set; then 4141 echo $ECHO_N "(cached) $ECHO_C" >&6 4142else 4143 cat >conftest.$ac_ext <<_ACEOF 4144/* confdefs.h. */ 4145_ACEOF 4146cat confdefs.h >>conftest.$ac_ext 4147cat >>conftest.$ac_ext <<_ACEOF 4148/* end confdefs.h. */ 4149#include <stdlib.h> 4150#include <stdarg.h> 4151#include <string.h> 4152#include <float.h> 4153 4154int 4155main () 4156{ 4157 4158 ; 4159 return 0; 4160} 4161_ACEOF 4162rm -f conftest.$ac_objext 4163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4164 (eval $ac_compile) 2>conftest.er1 4165 ac_status=$? 4166 grep -v '^ *+' conftest.er1 >conftest.err 4167 rm -f conftest.er1 4168 cat conftest.err >&5 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); } && 4171 { ac_try='test -z "$ac_c_werror_flag" 4172 || test ! -s conftest.err' 4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4174 (eval $ac_try) 2>&5 4175 ac_status=$? 4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4177 (exit $ac_status); }; } && 4178 { ac_try='test -s conftest.$ac_objext' 4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4180 (eval $ac_try) 2>&5 4181 ac_status=$? 4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4183 (exit $ac_status); }; }; then 4184 ac_cv_header_stdc=yes 4185else 4186 echo "$as_me: failed program was:" >&5 4187sed 's/^/| /' conftest.$ac_ext >&5 4188 4189ac_cv_header_stdc=no 4190fi 4191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4192 4193if test $ac_cv_header_stdc = yes; then 4194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4195 cat >conftest.$ac_ext <<_ACEOF 4196/* confdefs.h. */ 4197_ACEOF 4198cat confdefs.h >>conftest.$ac_ext 4199cat >>conftest.$ac_ext <<_ACEOF 4200/* end confdefs.h. */ 4201#include <string.h> 4202 4203_ACEOF 4204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4205 $EGREP "memchr" >/dev/null 2>&1; then 4206 : 4207else 4208 ac_cv_header_stdc=no 4209fi 4210rm -f conftest* 4211 4212fi 4213 4214if test $ac_cv_header_stdc = yes; then 4215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4216 cat >conftest.$ac_ext <<_ACEOF 4217/* confdefs.h. */ 4218_ACEOF 4219cat confdefs.h >>conftest.$ac_ext 4220cat >>conftest.$ac_ext <<_ACEOF 4221/* end confdefs.h. */ 4222#include <stdlib.h> 4223 4224_ACEOF 4225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4226 $EGREP "free" >/dev/null 2>&1; then 4227 : 4228else 4229 ac_cv_header_stdc=no 4230fi 4231rm -f conftest* 4232 4233fi 4234 4235if test $ac_cv_header_stdc = yes; then 4236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4237 if test "$cross_compiling" = yes; then 4238 : 4239else 4240 cat >conftest.$ac_ext <<_ACEOF 4241/* confdefs.h. */ 4242_ACEOF 4243cat confdefs.h >>conftest.$ac_ext 4244cat >>conftest.$ac_ext <<_ACEOF 4245/* end confdefs.h. */ 4246#include <ctype.h> 4247#if ((' ' & 0x0FF) == 0x020) 4248# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4249# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4250#else 4251# define ISLOWER(c) \ 4252 (('a' <= (c) && (c) <= 'i') \ 4253 || ('j' <= (c) && (c) <= 'r') \ 4254 || ('s' <= (c) && (c) <= 'z')) 4255# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4256#endif 4257 4258#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4259int 4260main () 4261{ 4262 int i; 4263 for (i = 0; i < 256; i++) 4264 if (XOR (islower (i), ISLOWER (i)) 4265 || toupper (i) != TOUPPER (i)) 4266 exit(2); 4267 exit (0); 4268} 4269_ACEOF 4270rm -f conftest$ac_exeext 4271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4272 (eval $ac_link) 2>&5 4273 ac_status=$? 4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4277 (eval $ac_try) 2>&5 4278 ac_status=$? 4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4280 (exit $ac_status); }; }; then 4281 : 4282else 4283 echo "$as_me: program exited with status $ac_status" >&5 4284echo "$as_me: failed program was:" >&5 4285sed 's/^/| /' conftest.$ac_ext >&5 4286 4287( exit $ac_status ) 4288ac_cv_header_stdc=no 4289fi 4290rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4291fi 4292fi 4293fi 4294echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4295echo "${ECHO_T}$ac_cv_header_stdc" >&6 4296if test $ac_cv_header_stdc = yes; then 4297 4298cat >>confdefs.h <<\_ACEOF 4299#define STDC_HEADERS 1 4300_ACEOF 4301 4302fi 4303 4304# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4315 inttypes.h stdint.h unistd.h 4316do 4317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4318echo "$as_me:$LINENO: checking for $ac_header" >&5 4319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4320if eval "test \"\${$as_ac_Header+set}\" = set"; then 4321 echo $ECHO_N "(cached) $ECHO_C" >&6 4322else 4323 cat >conftest.$ac_ext <<_ACEOF 4324/* confdefs.h. */ 4325_ACEOF 4326cat confdefs.h >>conftest.$ac_ext 4327cat >>conftest.$ac_ext <<_ACEOF 4328/* end confdefs.h. */ 4329$ac_includes_default 4330 4331#include <$ac_header> 4332_ACEOF 4333rm -f conftest.$ac_objext 4334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4335 (eval $ac_compile) 2>conftest.er1 4336 ac_status=$? 4337 grep -v '^ *+' conftest.er1 >conftest.err 4338 rm -f conftest.er1 4339 cat conftest.err >&5 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4341 (exit $ac_status); } && 4342 { ac_try='test -z "$ac_c_werror_flag" 4343 || test ! -s conftest.err' 4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4345 (eval $ac_try) 2>&5 4346 ac_status=$? 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4348 (exit $ac_status); }; } && 4349 { ac_try='test -s conftest.$ac_objext' 4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4351 (eval $ac_try) 2>&5 4352 ac_status=$? 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4354 (exit $ac_status); }; }; then 4355 eval "$as_ac_Header=yes" 4356else 4357 echo "$as_me: failed program was:" >&5 4358sed 's/^/| /' conftest.$ac_ext >&5 4359 4360eval "$as_ac_Header=no" 4361fi 4362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4363fi 4364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4366if test `eval echo '${'$as_ac_Header'}'` = yes; then 4367 cat >>confdefs.h <<_ACEOF 4368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4369_ACEOF 4370 4371fi 4372 4373done 4374 4375 4376 4377for ac_header in dlfcn.h 4378do 4379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4380if eval "test \"\${$as_ac_Header+set}\" = set"; then 4381 echo "$as_me:$LINENO: checking for $ac_header" >&5 4382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4383if eval "test \"\${$as_ac_Header+set}\" = set"; then 4384 echo $ECHO_N "(cached) $ECHO_C" >&6 4385fi 4386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4388else 4389 # Is the header compilable? 4390echo "$as_me:$LINENO: checking $ac_header usability" >&5 4391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4392cat >conftest.$ac_ext <<_ACEOF 4393/* confdefs.h. */ 4394_ACEOF 4395cat confdefs.h >>conftest.$ac_ext 4396cat >>conftest.$ac_ext <<_ACEOF 4397/* end confdefs.h. */ 4398$ac_includes_default 4399#include <$ac_header> 4400_ACEOF 4401rm -f conftest.$ac_objext 4402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4403 (eval $ac_compile) 2>conftest.er1 4404 ac_status=$? 4405 grep -v '^ *+' conftest.er1 >conftest.err 4406 rm -f conftest.er1 4407 cat conftest.err >&5 4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4409 (exit $ac_status); } && 4410 { ac_try='test -z "$ac_c_werror_flag" 4411 || test ! -s conftest.err' 4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4413 (eval $ac_try) 2>&5 4414 ac_status=$? 4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4416 (exit $ac_status); }; } && 4417 { ac_try='test -s conftest.$ac_objext' 4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4419 (eval $ac_try) 2>&5 4420 ac_status=$? 4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4422 (exit $ac_status); }; }; then 4423 ac_header_compiler=yes 4424else 4425 echo "$as_me: failed program was:" >&5 4426sed 's/^/| /' conftest.$ac_ext >&5 4427 4428ac_header_compiler=no 4429fi 4430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4432echo "${ECHO_T}$ac_header_compiler" >&6 4433 4434# Is the header present? 4435echo "$as_me:$LINENO: checking $ac_header presence" >&5 4436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4437cat >conftest.$ac_ext <<_ACEOF 4438/* confdefs.h. */ 4439_ACEOF 4440cat confdefs.h >>conftest.$ac_ext 4441cat >>conftest.$ac_ext <<_ACEOF 4442/* end confdefs.h. */ 4443#include <$ac_header> 4444_ACEOF 4445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4447 ac_status=$? 4448 grep -v '^ *+' conftest.er1 >conftest.err 4449 rm -f conftest.er1 4450 cat conftest.err >&5 4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); } >/dev/null; then 4453 if test -s conftest.err; then 4454 ac_cpp_err=$ac_c_preproc_warn_flag 4455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4456 else 4457 ac_cpp_err= 4458 fi 4459else 4460 ac_cpp_err=yes 4461fi 4462if test -z "$ac_cpp_err"; then 4463 ac_header_preproc=yes 4464else 4465 echo "$as_me: failed program was:" >&5 4466sed 's/^/| /' conftest.$ac_ext >&5 4467 4468 ac_header_preproc=no 4469fi 4470rm -f conftest.err conftest.$ac_ext 4471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4472echo "${ECHO_T}$ac_header_preproc" >&6 4473 4474# So? What about this header? 4475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4476 yes:no: ) 4477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4481 ac_header_preproc=yes 4482 ;; 4483 no:yes:* ) 4484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4496 ( 4497 cat <<\_ASBOX 4498## ---------------------------------------------------------------------- ## 4499## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 4500## ---------------------------------------------------------------------- ## 4501_ASBOX 4502 ) | 4503 sed "s/^/$as_me: WARNING: /" >&2 4504 ;; 4505esac 4506echo "$as_me:$LINENO: checking for $ac_header" >&5 4507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4508if eval "test \"\${$as_ac_Header+set}\" = set"; then 4509 echo $ECHO_N "(cached) $ECHO_C" >&6 4510else 4511 eval "$as_ac_Header=\$ac_header_preproc" 4512fi 4513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4515 4516fi 4517if test `eval echo '${'$as_ac_Header'}'` = yes; then 4518 cat >>confdefs.h <<_ACEOF 4519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4520_ACEOF 4521 4522fi 4523 4524done 4525 4526ac_ext=cc 4527ac_cpp='$CXXCPP $CPPFLAGS' 4528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4531if test -n "$ac_tool_prefix"; then 4532 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4533 do 4534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4535set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4536echo "$as_me:$LINENO: checking for $ac_word" >&5 4537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4538if test "${ac_cv_prog_CXX+set}" = set; then 4539 echo $ECHO_N "(cached) $ECHO_C" >&6 4540else 4541 if test -n "$CXX"; then 4542 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4543else 4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4545for as_dir in $PATH 4546do 4547 IFS=$as_save_IFS 4548 test -z "$as_dir" && as_dir=. 4549 for ac_exec_ext in '' $ac_executable_extensions; do 4550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4551 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4553 break 2 4554 fi 4555done 4556done 4557 4558fi 4559fi 4560CXX=$ac_cv_prog_CXX 4561if test -n "$CXX"; then 4562 echo "$as_me:$LINENO: result: $CXX" >&5 4563echo "${ECHO_T}$CXX" >&6 4564else 4565 echo "$as_me:$LINENO: result: no" >&5 4566echo "${ECHO_T}no" >&6 4567fi 4568 4569 test -n "$CXX" && break 4570 done 4571fi 4572if test -z "$CXX"; then 4573 ac_ct_CXX=$CXX 4574 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4575do 4576 # Extract the first word of "$ac_prog", so it can be a program name with args. 4577set dummy $ac_prog; ac_word=$2 4578echo "$as_me:$LINENO: checking for $ac_word" >&5 4579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4580if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4581 echo $ECHO_N "(cached) $ECHO_C" >&6 4582else 4583 if test -n "$ac_ct_CXX"; then 4584 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4585else 4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587for as_dir in $PATH 4588do 4589 IFS=$as_save_IFS 4590 test -z "$as_dir" && as_dir=. 4591 for ac_exec_ext in '' $ac_executable_extensions; do 4592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4593 ac_cv_prog_ac_ct_CXX="$ac_prog" 4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4595 break 2 4596 fi 4597done 4598done 4599 4600fi 4601fi 4602ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4603if test -n "$ac_ct_CXX"; then 4604 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4605echo "${ECHO_T}$ac_ct_CXX" >&6 4606else 4607 echo "$as_me:$LINENO: result: no" >&5 4608echo "${ECHO_T}no" >&6 4609fi 4610 4611 test -n "$ac_ct_CXX" && break 4612done 4613test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4614 4615 CXX=$ac_ct_CXX 4616fi 4617 4618 4619# Provide some information about the compiler. 4620echo "$as_me:$LINENO:" \ 4621 "checking for C++ compiler version" >&5 4622ac_compiler=`set X $ac_compile; echo $2` 4623{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4624 (eval $ac_compiler --version </dev/null >&5) 2>&5 4625 ac_status=$? 4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4627 (exit $ac_status); } 4628{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4629 (eval $ac_compiler -v </dev/null >&5) 2>&5 4630 ac_status=$? 4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4632 (exit $ac_status); } 4633{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4634 (eval $ac_compiler -V </dev/null >&5) 2>&5 4635 ac_status=$? 4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4637 (exit $ac_status); } 4638 4639echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4640echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4641if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4642 echo $ECHO_N "(cached) $ECHO_C" >&6 4643else 4644 cat >conftest.$ac_ext <<_ACEOF 4645/* confdefs.h. */ 4646_ACEOF 4647cat confdefs.h >>conftest.$ac_ext 4648cat >>conftest.$ac_ext <<_ACEOF 4649/* end confdefs.h. */ 4650 4651int 4652main () 4653{ 4654#ifndef __GNUC__ 4655 choke me 4656#endif 4657 4658 ; 4659 return 0; 4660} 4661_ACEOF 4662rm -f conftest.$ac_objext 4663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4664 (eval $ac_compile) 2>conftest.er1 4665 ac_status=$? 4666 grep -v '^ *+' conftest.er1 >conftest.err 4667 rm -f conftest.er1 4668 cat conftest.err >&5 4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4670 (exit $ac_status); } && 4671 { ac_try='test -z "$ac_cxx_werror_flag" 4672 || test ! -s conftest.err' 4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4674 (eval $ac_try) 2>&5 4675 ac_status=$? 4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4677 (exit $ac_status); }; } && 4678 { ac_try='test -s conftest.$ac_objext' 4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4680 (eval $ac_try) 2>&5 4681 ac_status=$? 4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 (exit $ac_status); }; }; then 4684 ac_compiler_gnu=yes 4685else 4686 echo "$as_me: failed program was:" >&5 4687sed 's/^/| /' conftest.$ac_ext >&5 4688 4689ac_compiler_gnu=no 4690fi 4691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4692ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4693 4694fi 4695echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4696echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4697GXX=`test $ac_compiler_gnu = yes && echo yes` 4698ac_test_CXXFLAGS=${CXXFLAGS+set} 4699ac_save_CXXFLAGS=$CXXFLAGS 4700CXXFLAGS="-g" 4701echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4702echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4703if test "${ac_cv_prog_cxx_g+set}" = set; then 4704 echo $ECHO_N "(cached) $ECHO_C" >&6 4705else 4706 cat >conftest.$ac_ext <<_ACEOF 4707/* confdefs.h. */ 4708_ACEOF 4709cat confdefs.h >>conftest.$ac_ext 4710cat >>conftest.$ac_ext <<_ACEOF 4711/* end confdefs.h. */ 4712 4713int 4714main () 4715{ 4716 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721rm -f conftest.$ac_objext 4722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4723 (eval $ac_compile) 2>conftest.er1 4724 ac_status=$? 4725 grep -v '^ *+' conftest.er1 >conftest.err 4726 rm -f conftest.er1 4727 cat conftest.err >&5 4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4729 (exit $ac_status); } && 4730 { ac_try='test -z "$ac_cxx_werror_flag" 4731 || test ! -s conftest.err' 4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4733 (eval $ac_try) 2>&5 4734 ac_status=$? 4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4736 (exit $ac_status); }; } && 4737 { ac_try='test -s conftest.$ac_objext' 4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4739 (eval $ac_try) 2>&5 4740 ac_status=$? 4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4742 (exit $ac_status); }; }; then 4743 ac_cv_prog_cxx_g=yes 4744else 4745 echo "$as_me: failed program was:" >&5 4746sed 's/^/| /' conftest.$ac_ext >&5 4747 4748ac_cv_prog_cxx_g=no 4749fi 4750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4751fi 4752echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4753echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4754if test "$ac_test_CXXFLAGS" = set; then 4755 CXXFLAGS=$ac_save_CXXFLAGS 4756elif test $ac_cv_prog_cxx_g = yes; then 4757 if test "$GXX" = yes; then 4758 CXXFLAGS="-g -O2" 4759 else 4760 CXXFLAGS="-g" 4761 fi 4762else 4763 if test "$GXX" = yes; then 4764 CXXFLAGS="-O2" 4765 else 4766 CXXFLAGS= 4767 fi 4768fi 4769for ac_declaration in \ 4770 '' \ 4771 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4772 'extern "C" void std::exit (int); using std::exit;' \ 4773 'extern "C" void exit (int) throw ();' \ 4774 'extern "C" void exit (int);' \ 4775 'void exit (int);' 4776do 4777 cat >conftest.$ac_ext <<_ACEOF 4778/* confdefs.h. */ 4779_ACEOF 4780cat confdefs.h >>conftest.$ac_ext 4781cat >>conftest.$ac_ext <<_ACEOF 4782/* end confdefs.h. */ 4783$ac_declaration 4784#include <stdlib.h> 4785int 4786main () 4787{ 4788exit (42); 4789 ; 4790 return 0; 4791} 4792_ACEOF 4793rm -f conftest.$ac_objext 4794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4795 (eval $ac_compile) 2>conftest.er1 4796 ac_status=$? 4797 grep -v '^ *+' conftest.er1 >conftest.err 4798 rm -f conftest.er1 4799 cat conftest.err >&5 4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4801 (exit $ac_status); } && 4802 { ac_try='test -z "$ac_cxx_werror_flag" 4803 || test ! -s conftest.err' 4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4805 (eval $ac_try) 2>&5 4806 ac_status=$? 4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4808 (exit $ac_status); }; } && 4809 { ac_try='test -s conftest.$ac_objext' 4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4811 (eval $ac_try) 2>&5 4812 ac_status=$? 4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4814 (exit $ac_status); }; }; then 4815 : 4816else 4817 echo "$as_me: failed program was:" >&5 4818sed 's/^/| /' conftest.$ac_ext >&5 4819 4820continue 4821fi 4822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4823 cat >conftest.$ac_ext <<_ACEOF 4824/* confdefs.h. */ 4825_ACEOF 4826cat confdefs.h >>conftest.$ac_ext 4827cat >>conftest.$ac_ext <<_ACEOF 4828/* end confdefs.h. */ 4829$ac_declaration 4830int 4831main () 4832{ 4833exit (42); 4834 ; 4835 return 0; 4836} 4837_ACEOF 4838rm -f conftest.$ac_objext 4839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4840 (eval $ac_compile) 2>conftest.er1 4841 ac_status=$? 4842 grep -v '^ *+' conftest.er1 >conftest.err 4843 rm -f conftest.er1 4844 cat conftest.err >&5 4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4846 (exit $ac_status); } && 4847 { ac_try='test -z "$ac_cxx_werror_flag" 4848 || test ! -s conftest.err' 4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4850 (eval $ac_try) 2>&5 4851 ac_status=$? 4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4853 (exit $ac_status); }; } && 4854 { ac_try='test -s conftest.$ac_objext' 4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4856 (eval $ac_try) 2>&5 4857 ac_status=$? 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859 (exit $ac_status); }; }; then 4860 break 4861else 4862 echo "$as_me: failed program was:" >&5 4863sed 's/^/| /' conftest.$ac_ext >&5 4864 4865fi 4866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4867done 4868rm -f conftest* 4869if test -n "$ac_declaration"; then 4870 echo '#ifdef __cplusplus' >>confdefs.h 4871 echo $ac_declaration >>confdefs.h 4872 echo '#endif' >>confdefs.h 4873fi 4874 4875ac_ext=cc 4876ac_cpp='$CXXCPP $CPPFLAGS' 4877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4880 4881depcc="$CXX" am_compiler_list= 4882 4883echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4884echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4885if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4886 echo $ECHO_N "(cached) $ECHO_C" >&6 4887else 4888 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4889 # We make a subdir and do the tests there. Otherwise we can end up 4890 # making bogus files that we don't know about and never remove. For 4891 # instance it was reported that on HP-UX the gcc test will end up 4892 # making a dummy file named `D' -- because `-MD' means `put the output 4893 # in D'. 4894 mkdir conftest.dir 4895 # Copy depcomp to subdir because otherwise we won't find it if we're 4896 # using a relative directory. 4897 cp "$am_depcomp" conftest.dir 4898 cd conftest.dir 4899 # We will build objects and dependencies in a subdirectory because 4900 # it helps to detect inapplicable dependency modes. For instance 4901 # both Tru64's cc and ICC support -MD to output dependencies as a 4902 # side effect of compilation, but ICC will put the dependencies in 4903 # the current directory while Tru64 will put them in the object 4904 # directory. 4905 mkdir sub 4906 4907 am_cv_CXX_dependencies_compiler_type=none 4908 if test "$am_compiler_list" = ""; then 4909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4910 fi 4911 for depmode in $am_compiler_list; do 4912 # Setup a source with many dependencies, because some compilers 4913 # like to wrap large dependency lists on column 80 (with \), and 4914 # we should not choose a depcomp mode which is confused by this. 4915 # 4916 # We need to recreate these files for each test, as the compiler may 4917 # overwrite some of them when testing with obscure command lines. 4918 # This happens at least with the AIX C compiler. 4919 : > sub/conftest.c 4920 for i in 1 2 3 4 5 6; do 4921 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4922 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4923 # Solaris 8's {/usr,}/bin/sh. 4924 touch sub/conftst$i.h 4925 done 4926 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4927 4928 case $depmode in 4929 nosideeffect) 4930 # after this tag, mechanisms are not by side-effect, so they'll 4931 # only be used when explicitly requested 4932 if test "x$enable_dependency_tracking" = xyes; then 4933 continue 4934 else 4935 break 4936 fi 4937 ;; 4938 none) break ;; 4939 esac 4940 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4941 # mode. It turns out that the SunPro C++ compiler does not properly 4942 # handle `-M -o', and we need to detect this. 4943 if depmode=$depmode \ 4944 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4945 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4946 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4947 >/dev/null 2>conftest.err && 4948 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4949 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4950 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4951 # icc doesn't choke on unknown options, it will just issue warnings 4952 # or remarks (even with -Werror). So we grep stderr for any message 4953 # that says an option was ignored or not supported. 4954 # When given -MP, icc 7.0 and 7.1 complain thusly: 4955 # icc: Command line warning: ignoring option '-M'; no argument required 4956 # The diagnosis changed in icc 8.0: 4957 # icc: Command line remark: option '-MP' not supported 4958 if (grep 'ignoring option' conftest.err || 4959 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4960 am_cv_CXX_dependencies_compiler_type=$depmode 4961 break 4962 fi 4963 fi 4964 done 4965 4966 cd .. 4967 rm -rf conftest.dir 4968else 4969 am_cv_CXX_dependencies_compiler_type=none 4970fi 4971 4972fi 4973echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4974echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4975CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4976 4977 4978 4979if 4980 test "x$enable_dependency_tracking" != xno \ 4981 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4982 am__fastdepCXX_TRUE= 4983 am__fastdepCXX_FALSE='#' 4984else 4985 am__fastdepCXX_TRUE='#' 4986 am__fastdepCXX_FALSE= 4987fi 4988 4989 4990 4991 4992if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4993 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4994 (test "X$CXX" != "Xg++"))) ; then 4995 ac_ext=cc 4996ac_cpp='$CXXCPP $CPPFLAGS' 4997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5000echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5001echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5002if test -z "$CXXCPP"; then 5003 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5004 echo $ECHO_N "(cached) $ECHO_C" >&6 5005else 5006 # Double quotes because CXXCPP needs to be expanded 5007 for CXXCPP in "$CXX -E" "/lib/cpp" 5008 do 5009 ac_preproc_ok=false 5010for ac_cxx_preproc_warn_flag in '' yes 5011do 5012 # Use a header file that comes with gcc, so configuring glibc 5013 # with a fresh cross-compiler works. 5014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5015 # <limits.h> exists even on freestanding compilers. 5016 # On the NeXT, cc -E runs the code through the compiler's parser, 5017 # not just through cpp. "Syntax error" is here to catch this case. 5018 cat >conftest.$ac_ext <<_ACEOF 5019/* confdefs.h. */ 5020_ACEOF 5021cat confdefs.h >>conftest.$ac_ext 5022cat >>conftest.$ac_ext <<_ACEOF 5023/* end confdefs.h. */ 5024#ifdef __STDC__ 5025# include <limits.h> 5026#else 5027# include <assert.h> 5028#endif 5029 Syntax error 5030_ACEOF 5031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5033 ac_status=$? 5034 grep -v '^ *+' conftest.er1 >conftest.err 5035 rm -f conftest.er1 5036 cat conftest.err >&5 5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5038 (exit $ac_status); } >/dev/null; then 5039 if test -s conftest.err; then 5040 ac_cpp_err=$ac_cxx_preproc_warn_flag 5041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5042 else 5043 ac_cpp_err= 5044 fi 5045else 5046 ac_cpp_err=yes 5047fi 5048if test -z "$ac_cpp_err"; then 5049 : 5050else 5051 echo "$as_me: failed program was:" >&5 5052sed 's/^/| /' conftest.$ac_ext >&5 5053 5054 # Broken: fails on valid input. 5055continue 5056fi 5057rm -f conftest.err conftest.$ac_ext 5058 5059 # OK, works on sane cases. Now check whether non-existent headers 5060 # can be detected and how. 5061 cat >conftest.$ac_ext <<_ACEOF 5062/* confdefs.h. */ 5063_ACEOF 5064cat confdefs.h >>conftest.$ac_ext 5065cat >>conftest.$ac_ext <<_ACEOF 5066/* end confdefs.h. */ 5067#include <ac_nonexistent.h> 5068_ACEOF 5069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5071 ac_status=$? 5072 grep -v '^ *+' conftest.er1 >conftest.err 5073 rm -f conftest.er1 5074 cat conftest.err >&5 5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5076 (exit $ac_status); } >/dev/null; then 5077 if test -s conftest.err; then 5078 ac_cpp_err=$ac_cxx_preproc_warn_flag 5079 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5080 else 5081 ac_cpp_err= 5082 fi 5083else 5084 ac_cpp_err=yes 5085fi 5086if test -z "$ac_cpp_err"; then 5087 # Broken: success on invalid input. 5088continue 5089else 5090 echo "$as_me: failed program was:" >&5 5091sed 's/^/| /' conftest.$ac_ext >&5 5092 5093 # Passes both tests. 5094ac_preproc_ok=: 5095break 5096fi 5097rm -f conftest.err conftest.$ac_ext 5098 5099done 5100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5101rm -f conftest.err conftest.$ac_ext 5102if $ac_preproc_ok; then 5103 break 5104fi 5105 5106 done 5107 ac_cv_prog_CXXCPP=$CXXCPP 5108 5109fi 5110 CXXCPP=$ac_cv_prog_CXXCPP 5111else 5112 ac_cv_prog_CXXCPP=$CXXCPP 5113fi 5114echo "$as_me:$LINENO: result: $CXXCPP" >&5 5115echo "${ECHO_T}$CXXCPP" >&6 5116ac_preproc_ok=false 5117for ac_cxx_preproc_warn_flag in '' yes 5118do 5119 # Use a header file that comes with gcc, so configuring glibc 5120 # with a fresh cross-compiler works. 5121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5122 # <limits.h> exists even on freestanding compilers. 5123 # On the NeXT, cc -E runs the code through the compiler's parser, 5124 # not just through cpp. "Syntax error" is here to catch this case. 5125 cat >conftest.$ac_ext <<_ACEOF 5126/* confdefs.h. */ 5127_ACEOF 5128cat confdefs.h >>conftest.$ac_ext 5129cat >>conftest.$ac_ext <<_ACEOF 5130/* end confdefs.h. */ 5131#ifdef __STDC__ 5132# include <limits.h> 5133#else 5134# include <assert.h> 5135#endif 5136 Syntax error 5137_ACEOF 5138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5140 ac_status=$? 5141 grep -v '^ *+' conftest.er1 >conftest.err 5142 rm -f conftest.er1 5143 cat conftest.err >&5 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); } >/dev/null; then 5146 if test -s conftest.err; then 5147 ac_cpp_err=$ac_cxx_preproc_warn_flag 5148 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5149 else 5150 ac_cpp_err= 5151 fi 5152else 5153 ac_cpp_err=yes 5154fi 5155if test -z "$ac_cpp_err"; then 5156 : 5157else 5158 echo "$as_me: failed program was:" >&5 5159sed 's/^/| /' conftest.$ac_ext >&5 5160 5161 # Broken: fails on valid input. 5162continue 5163fi 5164rm -f conftest.err conftest.$ac_ext 5165 5166 # OK, works on sane cases. Now check whether non-existent headers 5167 # can be detected and how. 5168 cat >conftest.$ac_ext <<_ACEOF 5169/* confdefs.h. */ 5170_ACEOF 5171cat confdefs.h >>conftest.$ac_ext 5172cat >>conftest.$ac_ext <<_ACEOF 5173/* end confdefs.h. */ 5174#include <ac_nonexistent.h> 5175_ACEOF 5176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5178 ac_status=$? 5179 grep -v '^ *+' conftest.er1 >conftest.err 5180 rm -f conftest.er1 5181 cat conftest.err >&5 5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5183 (exit $ac_status); } >/dev/null; then 5184 if test -s conftest.err; then 5185 ac_cpp_err=$ac_cxx_preproc_warn_flag 5186 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5187 else 5188 ac_cpp_err= 5189 fi 5190else 5191 ac_cpp_err=yes 5192fi 5193if test -z "$ac_cpp_err"; then 5194 # Broken: success on invalid input. 5195continue 5196else 5197 echo "$as_me: failed program was:" >&5 5198sed 's/^/| /' conftest.$ac_ext >&5 5199 5200 # Passes both tests. 5201ac_preproc_ok=: 5202break 5203fi 5204rm -f conftest.err conftest.$ac_ext 5205 5206done 5207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5208rm -f conftest.err conftest.$ac_ext 5209if $ac_preproc_ok; then 5210 : 5211else 5212 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5213See \`config.log' for more details." >&5 5214echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5215See \`config.log' for more details." >&2;} 5216 { (exit 1); exit 1; }; } 5217fi 5218 5219ac_ext=cc 5220ac_cpp='$CXXCPP $CPPFLAGS' 5221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5224 5225fi 5226 5227 5228ac_ext=f 5229ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5230ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5231ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5232if test -n "$ac_tool_prefix"; then 5233 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5234 do 5235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5236set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5237echo "$as_me:$LINENO: checking for $ac_word" >&5 5238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5239if test "${ac_cv_prog_F77+set}" = set; then 5240 echo $ECHO_N "(cached) $ECHO_C" >&6 5241else 5242 if test -n "$F77"; then 5243 ac_cv_prog_F77="$F77" # Let the user override the test. 5244else 5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5246for as_dir in $PATH 5247do 5248 IFS=$as_save_IFS 5249 test -z "$as_dir" && as_dir=. 5250 for ac_exec_ext in '' $ac_executable_extensions; do 5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5252 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5254 break 2 5255 fi 5256done 5257done 5258 5259fi 5260fi 5261F77=$ac_cv_prog_F77 5262if test -n "$F77"; then 5263 echo "$as_me:$LINENO: result: $F77" >&5 5264echo "${ECHO_T}$F77" >&6 5265else 5266 echo "$as_me:$LINENO: result: no" >&5 5267echo "${ECHO_T}no" >&6 5268fi 5269 5270 test -n "$F77" && break 5271 done 5272fi 5273if test -z "$F77"; then 5274 ac_ct_F77=$F77 5275 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5276do 5277 # Extract the first word of "$ac_prog", so it can be a program name with args. 5278set dummy $ac_prog; ac_word=$2 5279echo "$as_me:$LINENO: checking for $ac_word" >&5 5280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5281if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5282 echo $ECHO_N "(cached) $ECHO_C" >&6 5283else 5284 if test -n "$ac_ct_F77"; then 5285 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5286else 5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5288for as_dir in $PATH 5289do 5290 IFS=$as_save_IFS 5291 test -z "$as_dir" && as_dir=. 5292 for ac_exec_ext in '' $ac_executable_extensions; do 5293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5294 ac_cv_prog_ac_ct_F77="$ac_prog" 5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5296 break 2 5297 fi 5298done 5299done 5300 5301fi 5302fi 5303ac_ct_F77=$ac_cv_prog_ac_ct_F77 5304if test -n "$ac_ct_F77"; then 5305 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5306echo "${ECHO_T}$ac_ct_F77" >&6 5307else 5308 echo "$as_me:$LINENO: result: no" >&5 5309echo "${ECHO_T}no" >&6 5310fi 5311 5312 test -n "$ac_ct_F77" && break 5313done 5314 5315 F77=$ac_ct_F77 5316fi 5317 5318 5319# Provide some information about the compiler. 5320echo "$as_me:5320:" \ 5321 "checking for Fortran 77 compiler version" >&5 5322ac_compiler=`set X $ac_compile; echo $2` 5323{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5324 (eval $ac_compiler --version </dev/null >&5) 2>&5 5325 ac_status=$? 5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5327 (exit $ac_status); } 5328{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5329 (eval $ac_compiler -v </dev/null >&5) 2>&5 5330 ac_status=$? 5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5332 (exit $ac_status); } 5333{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5334 (eval $ac_compiler -V </dev/null >&5) 2>&5 5335 ac_status=$? 5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5337 (exit $ac_status); } 5338rm -f a.out 5339 5340# If we don't use `.F' as extension, the preprocessor is not run on the 5341# input file. (Note that this only needs to work for GNU compilers.) 5342ac_save_ext=$ac_ext 5343ac_ext=F 5344echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5345echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5346if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5347 echo $ECHO_N "(cached) $ECHO_C" >&6 5348else 5349 cat >conftest.$ac_ext <<_ACEOF 5350 program main 5351#ifndef __GNUC__ 5352 choke me 5353#endif 5354 5355 end 5356_ACEOF 5357rm -f conftest.$ac_objext 5358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5359 (eval $ac_compile) 2>conftest.er1 5360 ac_status=$? 5361 grep -v '^ *+' conftest.er1 >conftest.err 5362 rm -f conftest.er1 5363 cat conftest.err >&5 5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5365 (exit $ac_status); } && 5366 { ac_try='test -z "$ac_f77_werror_flag" 5367 || test ! -s conftest.err' 5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5369 (eval $ac_try) 2>&5 5370 ac_status=$? 5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5372 (exit $ac_status); }; } && 5373 { ac_try='test -s conftest.$ac_objext' 5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5375 (eval $ac_try) 2>&5 5376 ac_status=$? 5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5378 (exit $ac_status); }; }; then 5379 ac_compiler_gnu=yes 5380else 5381 echo "$as_me: failed program was:" >&5 5382sed 's/^/| /' conftest.$ac_ext >&5 5383 5384ac_compiler_gnu=no 5385fi 5386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5387ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5388 5389fi 5390echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5391echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5392ac_ext=$ac_save_ext 5393ac_test_FFLAGS=${FFLAGS+set} 5394ac_save_FFLAGS=$FFLAGS 5395FFLAGS= 5396echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5397echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5398if test "${ac_cv_prog_f77_g+set}" = set; then 5399 echo $ECHO_N "(cached) $ECHO_C" >&6 5400else 5401 FFLAGS=-g 5402cat >conftest.$ac_ext <<_ACEOF 5403 program main 5404 5405 end 5406_ACEOF 5407rm -f conftest.$ac_objext 5408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5409 (eval $ac_compile) 2>conftest.er1 5410 ac_status=$? 5411 grep -v '^ *+' conftest.er1 >conftest.err 5412 rm -f conftest.er1 5413 cat conftest.err >&5 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5415 (exit $ac_status); } && 5416 { ac_try='test -z "$ac_f77_werror_flag" 5417 || test ! -s conftest.err' 5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5419 (eval $ac_try) 2>&5 5420 ac_status=$? 5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5422 (exit $ac_status); }; } && 5423 { ac_try='test -s conftest.$ac_objext' 5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5425 (eval $ac_try) 2>&5 5426 ac_status=$? 5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5428 (exit $ac_status); }; }; then 5429 ac_cv_prog_f77_g=yes 5430else 5431 echo "$as_me: failed program was:" >&5 5432sed 's/^/| /' conftest.$ac_ext >&5 5433 5434ac_cv_prog_f77_g=no 5435fi 5436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5437 5438fi 5439echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5440echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5441if test "$ac_test_FFLAGS" = set; then 5442 FFLAGS=$ac_save_FFLAGS 5443elif test $ac_cv_prog_f77_g = yes; then 5444 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5445 FFLAGS="-g -O2" 5446 else 5447 FFLAGS="-g" 5448 fi 5449else 5450 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5451 FFLAGS="-O2" 5452 else 5453 FFLAGS= 5454 fi 5455fi 5456 5457G77=`test $ac_compiler_gnu = yes && echo yes` 5458ac_ext=c 5459ac_cpp='$CPP $CPPFLAGS' 5460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5462ac_compiler_gnu=$ac_cv_c_compiler_gnu 5463 5464 5465 5466# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5467 5468# find the maximum length of command line arguments 5469echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5470echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5471if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5472 echo $ECHO_N "(cached) $ECHO_C" >&6 5473else 5474 i=0 5475 teststring="ABCD" 5476 5477 case $build_os in 5478 msdosdjgpp*) 5479 # On DJGPP, this test can blow up pretty badly due to problems in libc 5480 # (any single argument exceeding 2000 bytes causes a buffer overrun 5481 # during glob expansion). Even if it were fixed, the result of this 5482 # check would be larger than it should be. 5483 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5484 ;; 5485 5486 gnu*) 5487 # Under GNU Hurd, this test is not required because there is 5488 # no limit to the length of command line arguments. 5489 # Libtool will interpret -1 as no limit whatsoever 5490 lt_cv_sys_max_cmd_len=-1; 5491 ;; 5492 5493 cygwin* | mingw*) 5494 # On Win9x/ME, this test blows up -- it succeeds, but takes 5495 # about 5 minutes as the teststring grows exponentially. 5496 # Worse, since 9x/ME are not pre-emptively multitasking, 5497 # you end up with a "frozen" computer, even though with patience 5498 # the test eventually succeeds (with a max line length of 256k). 5499 # Instead, let's just punt: use the minimum linelength reported by 5500 # all of the supported platforms: 8192 (on NT/2K/XP). 5501 lt_cv_sys_max_cmd_len=8192; 5502 ;; 5503 5504 amigaos*) 5505 # On AmigaOS with pdksh, this test takes hours, literally. 5506 # So we just punt and use a minimum line length of 8192. 5507 lt_cv_sys_max_cmd_len=8192; 5508 ;; 5509 5510 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5511 # This has been around since 386BSD, at least. Likely further. 5512 if test -x /sbin/sysctl; then 5513 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5514 elif test -x /usr/sbin/sysctl; then 5515 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5516 else 5517 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5518 fi 5519 # And add a safety zone 5520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5522 ;; 5523 5524 interix*) 5525 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5526 lt_cv_sys_max_cmd_len=196608 5527 ;; 5528 5529 osf*) 5530 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5531 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5532 # nice to cause kernel panics so lets avoid the loop below. 5533 # First set a reasonable default. 5534 lt_cv_sys_max_cmd_len=16384 5535 # 5536 if test -x /sbin/sysconfig; then 5537 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5538 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5539 esac 5540 fi 5541 ;; 5542 sco3.2v5*) 5543 lt_cv_sys_max_cmd_len=102400 5544 ;; 5545 sysv5* | sco5v6* | sysv4.2uw2*) 5546 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5547 if test -n "$kargmax"; then 5548 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5549 else 5550 lt_cv_sys_max_cmd_len=32768 5551 fi 5552 ;; 5553 *) 5554 # If test is not a shell built-in, we'll probably end up computing a 5555 # maximum length that is only half of the actual maximum length, but 5556 # we can't tell. 5557 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5558 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5559 = "XX$teststring") >/dev/null 2>&1 && 5560 new_result=`expr "X$teststring" : ".*" 2>&1` && 5561 lt_cv_sys_max_cmd_len=$new_result && 5562 test $i != 17 # 1/2 MB should be enough 5563 do 5564 i=`expr $i + 1` 5565 teststring=$teststring$teststring 5566 done 5567 teststring= 5568 # Add a significant safety factor because C++ compilers can tack on massive 5569 # amounts of additional arguments before passing them to the linker. 5570 # It appears as though 1/2 is a usable value. 5571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5572 ;; 5573 esac 5574 5575fi 5576 5577if test -n $lt_cv_sys_max_cmd_len ; then 5578 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5579echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5580else 5581 echo "$as_me:$LINENO: result: none" >&5 5582echo "${ECHO_T}none" >&6 5583fi 5584 5585 5586 5587 5588# Check for command to grab the raw symbol name followed by C symbol from nm. 5589echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5590echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5591if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5592 echo $ECHO_N "(cached) $ECHO_C" >&6 5593else 5594 5595# These are sane defaults that work on at least a few old systems. 5596# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5597 5598# Character class describing NM global symbol codes. 5599symcode='[BCDEGRST]' 5600 5601# Regexp to match symbols that can be accessed directly from C. 5602sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5603 5604# Transform an extracted symbol line into a proper C declaration 5605lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5606 5607# Transform an extracted symbol line into symbol name and symbol address 5608lt_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'" 5609 5610# Define system-specific variables. 5611case $host_os in 5612aix*) 5613 symcode='[BCDT]' 5614 ;; 5615cygwin* | mingw* | pw32*) 5616 symcode='[ABCDGISTW]' 5617 ;; 5618hpux*) # Its linker distinguishes data from code symbols 5619 if test "$host_cpu" = ia64; then 5620 symcode='[ABCDEGRST]' 5621 fi 5622 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5623 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'" 5624 ;; 5625linux*) 5626 if test "$host_cpu" = ia64; then 5627 symcode='[ABCDGIRSTW]' 5628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5629 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'" 5630 fi 5631 ;; 5632irix* | nonstopux*) 5633 symcode='[BCDEGRST]' 5634 ;; 5635osf*) 5636 symcode='[BCDEGQRST]' 5637 ;; 5638solaris*) 5639 symcode='[BDRT]' 5640 ;; 5641sco3.2v5*) 5642 symcode='[DT]' 5643 ;; 5644sysv4.2uw2*) 5645 symcode='[DT]' 5646 ;; 5647sysv5* | sco5v6* | unixware* | OpenUNIX*) 5648 symcode='[ABDT]' 5649 ;; 5650sysv4) 5651 symcode='[DFNSTU]' 5652 ;; 5653esac 5654 5655# Handle CRLF in mingw tool chain 5656opt_cr= 5657case $build_os in 5658mingw*) 5659 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5660 ;; 5661esac 5662 5663# If we're using GNU nm, then use its standard symbol codes. 5664case `$NM -V 2>&1` in 5665*GNU* | *'with BFD'*) 5666 symcode='[ABCDGIRSTW]' ;; 5667esac 5668 5669# Try without a prefix undercore, then with it. 5670for ac_symprfx in "" "_"; do 5671 5672 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5673 symxfrm="\\1 $ac_symprfx\\2 \\2" 5674 5675 # Write the raw and C identifiers. 5676 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5677 5678 # Check to see that the pipe works correctly. 5679 pipe_works=no 5680 5681 rm -f conftest* 5682 cat > conftest.$ac_ext <<EOF 5683#ifdef __cplusplus 5684extern "C" { 5685#endif 5686char nm_test_var; 5687void nm_test_func(){} 5688#ifdef __cplusplus 5689} 5690#endif 5691int main(){nm_test_var='a';nm_test_func();return(0);} 5692EOF 5693 5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5695 (eval $ac_compile) 2>&5 5696 ac_status=$? 5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5698 (exit $ac_status); }; then 5699 # Now try to grab the symbols. 5700 nlist=conftest.nm 5701 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5702 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5703 ac_status=$? 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705 (exit $ac_status); } && test -s "$nlist"; then 5706 # Try sorting and uniquifying the output. 5707 if sort "$nlist" | uniq > "$nlist"T; then 5708 mv -f "$nlist"T "$nlist" 5709 else 5710 rm -f "$nlist"T 5711 fi 5712 5713 # Make sure that we snagged all the symbols we need. 5714 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5715 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5716 cat <<EOF > conftest.$ac_ext 5717#ifdef __cplusplus 5718extern "C" { 5719#endif 5720 5721EOF 5722 # Now generate the symbol file. 5723 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5724 5725 cat <<EOF >> conftest.$ac_ext 5726#if defined (__STDC__) && __STDC__ 5727# define lt_ptr_t void * 5728#else 5729# define lt_ptr_t char * 5730# define const 5731#endif 5732 5733/* The mapping between symbol names and symbols. */ 5734const struct { 5735 const char *name; 5736 lt_ptr_t address; 5737} 5738lt_preloaded_symbols[] = 5739{ 5740EOF 5741 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5742 cat <<\EOF >> conftest.$ac_ext 5743 {0, (lt_ptr_t) 0} 5744}; 5745 5746#ifdef __cplusplus 5747} 5748#endif 5749EOF 5750 # Now try linking the two files. 5751 mv conftest.$ac_objext conftstm.$ac_objext 5752 lt_save_LIBS="$LIBS" 5753 lt_save_CFLAGS="$CFLAGS" 5754 LIBS="conftstm.$ac_objext" 5755 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5757 (eval $ac_link) 2>&5 5758 ac_status=$? 5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5760 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5761 pipe_works=yes 5762 fi 5763 LIBS="$lt_save_LIBS" 5764 CFLAGS="$lt_save_CFLAGS" 5765 else 5766 echo "cannot find nm_test_func in $nlist" >&5 5767 fi 5768 else 5769 echo "cannot find nm_test_var in $nlist" >&5 5770 fi 5771 else 5772 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5773 fi 5774 else 5775 echo "$progname: failed program was:" >&5 5776 cat conftest.$ac_ext >&5 5777 fi 5778 rm -f conftest* conftst* 5779 5780 # Do not use the global_symbol_pipe unless it works. 5781 if test "$pipe_works" = yes; then 5782 break 5783 else 5784 lt_cv_sys_global_symbol_pipe= 5785 fi 5786done 5787 5788fi 5789 5790if test -z "$lt_cv_sys_global_symbol_pipe"; then 5791 lt_cv_sys_global_symbol_to_cdecl= 5792fi 5793if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5794 echo "$as_me:$LINENO: result: failed" >&5 5795echo "${ECHO_T}failed" >&6 5796else 5797 echo "$as_me:$LINENO: result: ok" >&5 5798echo "${ECHO_T}ok" >&6 5799fi 5800 5801echo "$as_me:$LINENO: checking for objdir" >&5 5802echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5803if test "${lt_cv_objdir+set}" = set; then 5804 echo $ECHO_N "(cached) $ECHO_C" >&6 5805else 5806 rm -f .libs 2>/dev/null 5807mkdir .libs 2>/dev/null 5808if test -d .libs; then 5809 lt_cv_objdir=.libs 5810else 5811 # MS-DOS does not allow filenames that begin with a dot. 5812 lt_cv_objdir=_libs 5813fi 5814rmdir .libs 2>/dev/null 5815fi 5816echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5817echo "${ECHO_T}$lt_cv_objdir" >&6 5818objdir=$lt_cv_objdir 5819 5820 5821 5822 5823 5824case $host_os in 5825aix3*) 5826 # AIX sometimes has problems with the GCC collect2 program. For some 5827 # reason, if we set the COLLECT_NAMES environment variable, the problems 5828 # vanish in a puff of smoke. 5829 if test "X${COLLECT_NAMES+set}" != Xset; then 5830 COLLECT_NAMES= 5831 export COLLECT_NAMES 5832 fi 5833 ;; 5834esac 5835 5836# Sed substitution that helps us do robust quoting. It backslashifies 5837# metacharacters that are still active within double-quoted strings. 5838Xsed='sed -e 1s/^X//' 5839sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5840 5841# Same as above, but do not quote variable references. 5842double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5843 5844# Sed substitution to delay expansion of an escaped shell variable in a 5845# double_quote_subst'ed string. 5846delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5847 5848# Sed substitution to avoid accidental globbing in evaled expressions 5849no_glob_subst='s/\*/\\\*/g' 5850 5851# Constants: 5852rm="rm -f" 5853 5854# Global variables: 5855default_ofile=libtool 5856can_build_shared=yes 5857 5858# All known linkers require a `.a' archive for static linking (except MSVC, 5859# which needs '.lib'). 5860libext=a 5861ltmain="$ac_aux_dir/ltmain.sh" 5862ofile="$default_ofile" 5863with_gnu_ld="$lt_cv_prog_gnu_ld" 5864 5865if test -n "$ac_tool_prefix"; then 5866 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5867set dummy ${ac_tool_prefix}ar; ac_word=$2 5868echo "$as_me:$LINENO: checking for $ac_word" >&5 5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5870if test "${ac_cv_prog_AR+set}" = set; then 5871 echo $ECHO_N "(cached) $ECHO_C" >&6 5872else 5873 if test -n "$AR"; then 5874 ac_cv_prog_AR="$AR" # Let the user override the test. 5875else 5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5877for as_dir in $PATH 5878do 5879 IFS=$as_save_IFS 5880 test -z "$as_dir" && as_dir=. 5881 for ac_exec_ext in '' $ac_executable_extensions; do 5882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5883 ac_cv_prog_AR="${ac_tool_prefix}ar" 5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5885 break 2 5886 fi 5887done 5888done 5889 5890fi 5891fi 5892AR=$ac_cv_prog_AR 5893if test -n "$AR"; then 5894 echo "$as_me:$LINENO: result: $AR" >&5 5895echo "${ECHO_T}$AR" >&6 5896else 5897 echo "$as_me:$LINENO: result: no" >&5 5898echo "${ECHO_T}no" >&6 5899fi 5900 5901fi 5902if test -z "$ac_cv_prog_AR"; then 5903 ac_ct_AR=$AR 5904 # Extract the first word of "ar", so it can be a program name with args. 5905set dummy ar; ac_word=$2 5906echo "$as_me:$LINENO: checking for $ac_word" >&5 5907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5908if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5909 echo $ECHO_N "(cached) $ECHO_C" >&6 5910else 5911 if test -n "$ac_ct_AR"; then 5912 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5913else 5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5915for as_dir in $PATH 5916do 5917 IFS=$as_save_IFS 5918 test -z "$as_dir" && as_dir=. 5919 for ac_exec_ext in '' $ac_executable_extensions; do 5920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5921 ac_cv_prog_ac_ct_AR="ar" 5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5923 break 2 5924 fi 5925done 5926done 5927 5928 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5929fi 5930fi 5931ac_ct_AR=$ac_cv_prog_ac_ct_AR 5932if test -n "$ac_ct_AR"; then 5933 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5934echo "${ECHO_T}$ac_ct_AR" >&6 5935else 5936 echo "$as_me:$LINENO: result: no" >&5 5937echo "${ECHO_T}no" >&6 5938fi 5939 5940 AR=$ac_ct_AR 5941else 5942 AR="$ac_cv_prog_AR" 5943fi 5944 5945if test -n "$ac_tool_prefix"; then 5946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5947set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5948echo "$as_me:$LINENO: checking for $ac_word" >&5 5949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5950if test "${ac_cv_prog_RANLIB+set}" = set; then 5951 echo $ECHO_N "(cached) $ECHO_C" >&6 5952else 5953 if test -n "$RANLIB"; then 5954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5955else 5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5957for as_dir in $PATH 5958do 5959 IFS=$as_save_IFS 5960 test -z "$as_dir" && as_dir=. 5961 for ac_exec_ext in '' $ac_executable_extensions; do 5962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5965 break 2 5966 fi 5967done 5968done 5969 5970fi 5971fi 5972RANLIB=$ac_cv_prog_RANLIB 5973if test -n "$RANLIB"; then 5974 echo "$as_me:$LINENO: result: $RANLIB" >&5 5975echo "${ECHO_T}$RANLIB" >&6 5976else 5977 echo "$as_me:$LINENO: result: no" >&5 5978echo "${ECHO_T}no" >&6 5979fi 5980 5981fi 5982if test -z "$ac_cv_prog_RANLIB"; then 5983 ac_ct_RANLIB=$RANLIB 5984 # Extract the first word of "ranlib", so it can be a program name with args. 5985set dummy ranlib; ac_word=$2 5986echo "$as_me:$LINENO: checking for $ac_word" >&5 5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5988if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5989 echo $ECHO_N "(cached) $ECHO_C" >&6 5990else 5991 if test -n "$ac_ct_RANLIB"; then 5992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5993else 5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995for as_dir in $PATH 5996do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_exec_ext in '' $ac_executable_extensions; do 6000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6001 ac_cv_prog_ac_ct_RANLIB="ranlib" 6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6003 break 2 6004 fi 6005done 6006done 6007 6008 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6009fi 6010fi 6011ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6012if test -n "$ac_ct_RANLIB"; then 6013 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6014echo "${ECHO_T}$ac_ct_RANLIB" >&6 6015else 6016 echo "$as_me:$LINENO: result: no" >&5 6017echo "${ECHO_T}no" >&6 6018fi 6019 6020 RANLIB=$ac_ct_RANLIB 6021else 6022 RANLIB="$ac_cv_prog_RANLIB" 6023fi 6024 6025if test -n "$ac_tool_prefix"; then 6026 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6027set dummy ${ac_tool_prefix}strip; ac_word=$2 6028echo "$as_me:$LINENO: checking for $ac_word" >&5 6029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6030if test "${ac_cv_prog_STRIP+set}" = set; then 6031 echo $ECHO_N "(cached) $ECHO_C" >&6 6032else 6033 if test -n "$STRIP"; then 6034 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6035else 6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6037for as_dir in $PATH 6038do 6039 IFS=$as_save_IFS 6040 test -z "$as_dir" && as_dir=. 6041 for ac_exec_ext in '' $ac_executable_extensions; do 6042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6043 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6045 break 2 6046 fi 6047done 6048done 6049 6050fi 6051fi 6052STRIP=$ac_cv_prog_STRIP 6053if test -n "$STRIP"; then 6054 echo "$as_me:$LINENO: result: $STRIP" >&5 6055echo "${ECHO_T}$STRIP" >&6 6056else 6057 echo "$as_me:$LINENO: result: no" >&5 6058echo "${ECHO_T}no" >&6 6059fi 6060 6061fi 6062if test -z "$ac_cv_prog_STRIP"; then 6063 ac_ct_STRIP=$STRIP 6064 # Extract the first word of "strip", so it can be a program name with args. 6065set dummy strip; ac_word=$2 6066echo "$as_me:$LINENO: checking for $ac_word" >&5 6067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6068if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6069 echo $ECHO_N "(cached) $ECHO_C" >&6 6070else 6071 if test -n "$ac_ct_STRIP"; then 6072 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6073else 6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6075for as_dir in $PATH 6076do 6077 IFS=$as_save_IFS 6078 test -z "$as_dir" && as_dir=. 6079 for ac_exec_ext in '' $ac_executable_extensions; do 6080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6081 ac_cv_prog_ac_ct_STRIP="strip" 6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6083 break 2 6084 fi 6085done 6086done 6087 6088 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6089fi 6090fi 6091ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6092if test -n "$ac_ct_STRIP"; then 6093 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6094echo "${ECHO_T}$ac_ct_STRIP" >&6 6095else 6096 echo "$as_me:$LINENO: result: no" >&5 6097echo "${ECHO_T}no" >&6 6098fi 6099 6100 STRIP=$ac_ct_STRIP 6101else 6102 STRIP="$ac_cv_prog_STRIP" 6103fi 6104 6105 6106old_CC="$CC" 6107old_CFLAGS="$CFLAGS" 6108 6109# Set sane defaults for various variables 6110test -z "$AR" && AR=ar 6111test -z "$AR_FLAGS" && AR_FLAGS=cru 6112test -z "$AS" && AS=as 6113test -z "$CC" && CC=cc 6114test -z "$LTCC" && LTCC=$CC 6115test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6116test -z "$DLLTOOL" && DLLTOOL=dlltool 6117test -z "$LD" && LD=ld 6118test -z "$LN_S" && LN_S="ln -s" 6119test -z "$MAGIC_CMD" && MAGIC_CMD=file 6120test -z "$NM" && NM=nm 6121test -z "$SED" && SED=sed 6122test -z "$OBJDUMP" && OBJDUMP=objdump 6123test -z "$RANLIB" && RANLIB=: 6124test -z "$STRIP" && STRIP=: 6125test -z "$ac_objext" && ac_objext=o 6126 6127# Determine commands to create old-style static archives. 6128old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6129old_postinstall_cmds='chmod 644 $oldlib' 6130old_postuninstall_cmds= 6131 6132if test -n "$RANLIB"; then 6133 case $host_os in 6134 openbsd*) 6135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6136 ;; 6137 *) 6138 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6139 ;; 6140 esac 6141 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6142fi 6143 6144for cc_temp in $compiler""; do 6145 case $cc_temp in 6146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6148 \-*) ;; 6149 *) break;; 6150 esac 6151done 6152cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6153 6154 6155# Only perform the check for file, if the check method requires it 6156case $deplibs_check_method in 6157file_magic*) 6158 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6159 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6160echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6161if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6162 echo $ECHO_N "(cached) $ECHO_C" >&6 6163else 6164 case $MAGIC_CMD in 6165[\\/*] | ?:[\\/]*) 6166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6167 ;; 6168*) 6169 lt_save_MAGIC_CMD="$MAGIC_CMD" 6170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6171 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6172 for ac_dir in $ac_dummy; do 6173 IFS="$lt_save_ifs" 6174 test -z "$ac_dir" && ac_dir=. 6175 if test -f $ac_dir/${ac_tool_prefix}file; then 6176 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6177 if test -n "$file_magic_test_file"; then 6178 case $deplibs_check_method in 6179 "file_magic "*) 6180 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6182 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6183 $EGREP "$file_magic_regex" > /dev/null; then 6184 : 6185 else 6186 cat <<EOF 1>&2 6187 6188*** Warning: the command libtool uses to detect shared libraries, 6189*** $file_magic_cmd, produces output that libtool cannot recognize. 6190*** The result is that libtool may fail to recognize shared libraries 6191*** as such. This will affect the creation of libtool libraries that 6192*** depend on shared libraries, but programs linked with such libtool 6193*** libraries will work regardless of this problem. Nevertheless, you 6194*** may want to report the problem to your system manager and/or to 6195*** bug-libtool@gnu.org 6196 6197EOF 6198 fi ;; 6199 esac 6200 fi 6201 break 6202 fi 6203 done 6204 IFS="$lt_save_ifs" 6205 MAGIC_CMD="$lt_save_MAGIC_CMD" 6206 ;; 6207esac 6208fi 6209 6210MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6211if test -n "$MAGIC_CMD"; then 6212 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6213echo "${ECHO_T}$MAGIC_CMD" >&6 6214else 6215 echo "$as_me:$LINENO: result: no" >&5 6216echo "${ECHO_T}no" >&6 6217fi 6218 6219if test -z "$lt_cv_path_MAGIC_CMD"; then 6220 if test -n "$ac_tool_prefix"; then 6221 echo "$as_me:$LINENO: checking for file" >&5 6222echo $ECHO_N "checking for file... $ECHO_C" >&6 6223if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6224 echo $ECHO_N "(cached) $ECHO_C" >&6 6225else 6226 case $MAGIC_CMD in 6227[\\/*] | ?:[\\/]*) 6228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6229 ;; 6230*) 6231 lt_save_MAGIC_CMD="$MAGIC_CMD" 6232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6234 for ac_dir in $ac_dummy; do 6235 IFS="$lt_save_ifs" 6236 test -z "$ac_dir" && ac_dir=. 6237 if test -f $ac_dir/file; then 6238 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6239 if test -n "$file_magic_test_file"; then 6240 case $deplibs_check_method in 6241 "file_magic "*) 6242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6245 $EGREP "$file_magic_regex" > /dev/null; then 6246 : 6247 else 6248 cat <<EOF 1>&2 6249 6250*** Warning: the command libtool uses to detect shared libraries, 6251*** $file_magic_cmd, produces output that libtool cannot recognize. 6252*** The result is that libtool may fail to recognize shared libraries 6253*** as such. This will affect the creation of libtool libraries that 6254*** depend on shared libraries, but programs linked with such libtool 6255*** libraries will work regardless of this problem. Nevertheless, you 6256*** may want to report the problem to your system manager and/or to 6257*** bug-libtool@gnu.org 6258 6259EOF 6260 fi ;; 6261 esac 6262 fi 6263 break 6264 fi 6265 done 6266 IFS="$lt_save_ifs" 6267 MAGIC_CMD="$lt_save_MAGIC_CMD" 6268 ;; 6269esac 6270fi 6271 6272MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6273if test -n "$MAGIC_CMD"; then 6274 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6275echo "${ECHO_T}$MAGIC_CMD" >&6 6276else 6277 echo "$as_me:$LINENO: result: no" >&5 6278echo "${ECHO_T}no" >&6 6279fi 6280 6281 else 6282 MAGIC_CMD=: 6283 fi 6284fi 6285 6286 fi 6287 ;; 6288esac 6289 6290enable_dlopen=no 6291enable_win32_dll=no 6292 6293# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6294if test "${enable_libtool_lock+set}" = set; then 6295 enableval="$enable_libtool_lock" 6296 6297fi; 6298test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6299 6300 6301# Check whether --with-pic or --without-pic was given. 6302if test "${with_pic+set}" = set; then 6303 withval="$with_pic" 6304 pic_mode="$withval" 6305else 6306 pic_mode=default 6307fi; 6308test -z "$pic_mode" && pic_mode=default 6309 6310# Use C for the default configuration in the libtool script 6311tagname= 6312lt_save_CC="$CC" 6313ac_ext=c 6314ac_cpp='$CPP $CPPFLAGS' 6315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6317ac_compiler_gnu=$ac_cv_c_compiler_gnu 6318 6319 6320# Source file extension for C test sources. 6321ac_ext=c 6322 6323# Object file extension for compiled C test sources. 6324objext=o 6325objext=$objext 6326 6327# Code to be used in simple compile tests 6328lt_simple_compile_test_code="int some_variable = 0;\n" 6329 6330# Code to be used in simple link tests 6331lt_simple_link_test_code='int main(){return(0);}\n' 6332 6333 6334# If no C compiler was specified, use CC. 6335LTCC=${LTCC-"$CC"} 6336 6337# If no C compiler flags were specified, use CFLAGS. 6338LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6339 6340# Allow CC to be a program name with arguments. 6341compiler=$CC 6342 6343 6344# save warnings/boilerplate of simple test code 6345ac_outfile=conftest.$ac_objext 6346printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6347eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6348_lt_compiler_boilerplate=`cat conftest.err` 6349$rm conftest* 6350 6351ac_outfile=conftest.$ac_objext 6352printf "$lt_simple_link_test_code" >conftest.$ac_ext 6353eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6354_lt_linker_boilerplate=`cat conftest.err` 6355$rm conftest* 6356 6357 6358 6359lt_prog_compiler_no_builtin_flag= 6360 6361if test "$GCC" = yes; then 6362 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6363 6364 6365echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6366echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6367if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6368 echo $ECHO_N "(cached) $ECHO_C" >&6 6369else 6370 lt_cv_prog_compiler_rtti_exceptions=no 6371 ac_outfile=conftest.$ac_objext 6372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6373 lt_compiler_flag="-fno-rtti -fno-exceptions" 6374 # Insert the option either (1) after the last *FLAGS variable, or 6375 # (2) before a word containing "conftest.", or (3) at the end. 6376 # Note that $ac_compile itself does not contain backslashes and begins 6377 # with a dollar sign (not a hyphen), so the echo should work correctly. 6378 # The option is referenced via a variable to avoid confusing sed. 6379 lt_compile=`echo "$ac_compile" | $SED \ 6380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6382 -e 's:$: $lt_compiler_flag:'` 6383 (eval echo "\"\$as_me:6383: $lt_compile\"" >&5) 6384 (eval "$lt_compile" 2>conftest.err) 6385 ac_status=$? 6386 cat conftest.err >&5 6387 echo "$as_me:6387: \$? = $ac_status" >&5 6388 if (exit $ac_status) && test -s "$ac_outfile"; then 6389 # The compiler can only warn and ignore the option if not recognized 6390 # So say no if there are warnings other than the usual output. 6391 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6394 lt_cv_prog_compiler_rtti_exceptions=yes 6395 fi 6396 fi 6397 $rm conftest* 6398 6399fi 6400echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6401echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6402 6403if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6404 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6405else 6406 : 6407fi 6408 6409fi 6410 6411lt_prog_compiler_wl= 6412lt_prog_compiler_pic= 6413lt_prog_compiler_static= 6414 6415echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6416echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6417 6418 if test "$GCC" = yes; then 6419 lt_prog_compiler_wl='-Wl,' 6420 lt_prog_compiler_static='-static' 6421 6422 case $host_os in 6423 aix*) 6424 # All AIX code is PIC. 6425 if test "$host_cpu" = ia64; then 6426 # AIX 5 now supports IA64 processor 6427 lt_prog_compiler_static='-Bstatic' 6428 fi 6429 ;; 6430 6431 amigaos*) 6432 # FIXME: we need at least 68020 code to build shared libraries, but 6433 # adding the `-m68020' flag to GCC prevents building anything better, 6434 # like `-m68040'. 6435 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6436 ;; 6437 6438 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6439 # PIC is the default for these OSes. 6440 ;; 6441 6442 mingw* | pw32* | os2*) 6443 # This hack is so that the source file can tell whether it is being 6444 # built for inclusion in a dll (and should export symbols for example). 6445 lt_prog_compiler_pic='-DDLL_EXPORT' 6446 ;; 6447 6448 darwin* | rhapsody*) 6449 # PIC is the default on this platform 6450 # Common symbols not allowed in MH_DYLIB files 6451 lt_prog_compiler_pic='-fno-common' 6452 ;; 6453 6454 interix3*) 6455 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6456 # Instead, we relocate shared libraries at runtime. 6457 ;; 6458 6459 msdosdjgpp*) 6460 # Just because we use GCC doesn't mean we suddenly get shared libraries 6461 # on systems that don't support them. 6462 lt_prog_compiler_can_build_shared=no 6463 enable_shared=no 6464 ;; 6465 6466 sysv4*MP*) 6467 if test -d /usr/nec; then 6468 lt_prog_compiler_pic=-Kconform_pic 6469 fi 6470 ;; 6471 6472 hpux*) 6473 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6474 # not for PA HP-UX. 6475 case $host_cpu in 6476 hppa*64*|ia64*) 6477 # +Z the default 6478 ;; 6479 *) 6480 lt_prog_compiler_pic='-fPIC' 6481 ;; 6482 esac 6483 ;; 6484 6485 *) 6486 lt_prog_compiler_pic='-fPIC' 6487 ;; 6488 esac 6489 else 6490 # PORTME Check for flag to pass linker flags through the system compiler. 6491 case $host_os in 6492 aix*) 6493 lt_prog_compiler_wl='-Wl,' 6494 if test "$host_cpu" = ia64; then 6495 # AIX 5 now supports IA64 processor 6496 lt_prog_compiler_static='-Bstatic' 6497 else 6498 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6499 fi 6500 ;; 6501 darwin*) 6502 # PIC is the default on this platform 6503 # Common symbols not allowed in MH_DYLIB files 6504 case $cc_basename in 6505 xlc*) 6506 lt_prog_compiler_pic='-qnocommon' 6507 lt_prog_compiler_wl='-Wl,' 6508 ;; 6509 esac 6510 ;; 6511 6512 mingw* | pw32* | os2*) 6513 # This hack is so that the source file can tell whether it is being 6514 # built for inclusion in a dll (and should export symbols for example). 6515 lt_prog_compiler_pic='-DDLL_EXPORT' 6516 ;; 6517 6518 hpux9* | hpux10* | hpux11*) 6519 lt_prog_compiler_wl='-Wl,' 6520 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6521 # not for PA HP-UX. 6522 case $host_cpu in 6523 hppa*64*|ia64*) 6524 # +Z the default 6525 ;; 6526 *) 6527 lt_prog_compiler_pic='+Z' 6528 ;; 6529 esac 6530 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6531 lt_prog_compiler_static='${wl}-a ${wl}archive' 6532 ;; 6533 6534 irix5* | irix6* | nonstopux*) 6535 lt_prog_compiler_wl='-Wl,' 6536 # PIC (with -KPIC) is the default. 6537 lt_prog_compiler_static='-non_shared' 6538 ;; 6539 6540 newsos6) 6541 lt_prog_compiler_pic='-KPIC' 6542 lt_prog_compiler_static='-Bstatic' 6543 ;; 6544 6545 linux*) 6546 case $cc_basename in 6547 icc* | ecc*) 6548 lt_prog_compiler_wl='-Wl,' 6549 lt_prog_compiler_pic='-KPIC' 6550 lt_prog_compiler_static='-static' 6551 ;; 6552 pgcc* | pgf77* | pgf90* | pgf95*) 6553 # Portland Group compilers (*not* the Pentium gcc compiler, 6554 # which looks to be a dead project) 6555 lt_prog_compiler_wl='-Wl,' 6556 lt_prog_compiler_pic='-fpic' 6557 lt_prog_compiler_static='-Bstatic' 6558 ;; 6559 ccc*) 6560 lt_prog_compiler_wl='-Wl,' 6561 # All Alpha code is PIC. 6562 lt_prog_compiler_static='-non_shared' 6563 ;; 6564 esac 6565 ;; 6566 6567 osf3* | osf4* | osf5*) 6568 lt_prog_compiler_wl='-Wl,' 6569 # All OSF/1 code is PIC. 6570 lt_prog_compiler_static='-non_shared' 6571 ;; 6572 6573 solaris*) 6574 lt_prog_compiler_pic='-KPIC' 6575 lt_prog_compiler_static='-Bstatic' 6576 case $cc_basename in 6577 f77* | f90* | f95*) 6578 lt_prog_compiler_wl='-Qoption ld ';; 6579 *) 6580 lt_prog_compiler_wl='-Wl,';; 6581 esac 6582 ;; 6583 6584 sunos4*) 6585 lt_prog_compiler_wl='-Qoption ld ' 6586 lt_prog_compiler_pic='-PIC' 6587 lt_prog_compiler_static='-Bstatic' 6588 ;; 6589 6590 sysv4 | sysv4.2uw2* | sysv4.3*) 6591 lt_prog_compiler_wl='-Wl,' 6592 lt_prog_compiler_pic='-KPIC' 6593 lt_prog_compiler_static='-Bstatic' 6594 ;; 6595 6596 sysv4*MP*) 6597 if test -d /usr/nec ;then 6598 lt_prog_compiler_pic='-Kconform_pic' 6599 lt_prog_compiler_static='-Bstatic' 6600 fi 6601 ;; 6602 6603 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6604 lt_prog_compiler_wl='-Wl,' 6605 lt_prog_compiler_pic='-KPIC' 6606 lt_prog_compiler_static='-Bstatic' 6607 ;; 6608 6609 unicos*) 6610 lt_prog_compiler_wl='-Wl,' 6611 lt_prog_compiler_can_build_shared=no 6612 ;; 6613 6614 uts4*) 6615 lt_prog_compiler_pic='-pic' 6616 lt_prog_compiler_static='-Bstatic' 6617 ;; 6618 6619 *) 6620 lt_prog_compiler_can_build_shared=no 6621 ;; 6622 esac 6623 fi 6624 6625echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6626echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6627 6628# 6629# Check to make sure the PIC flag actually works. 6630# 6631if test -n "$lt_prog_compiler_pic"; then 6632 6633echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6634echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6635if test "${lt_prog_compiler_pic_works+set}" = set; then 6636 echo $ECHO_N "(cached) $ECHO_C" >&6 6637else 6638 lt_prog_compiler_pic_works=no 6639 ac_outfile=conftest.$ac_objext 6640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6641 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6642 # Insert the option either (1) after the last *FLAGS variable, or 6643 # (2) before a word containing "conftest.", or (3) at the end. 6644 # Note that $ac_compile itself does not contain backslashes and begins 6645 # with a dollar sign (not a hyphen), so the echo should work correctly. 6646 # The option is referenced via a variable to avoid confusing sed. 6647 lt_compile=`echo "$ac_compile" | $SED \ 6648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6650 -e 's:$: $lt_compiler_flag:'` 6651 (eval echo "\"\$as_me:6651: $lt_compile\"" >&5) 6652 (eval "$lt_compile" 2>conftest.err) 6653 ac_status=$? 6654 cat conftest.err >&5 6655 echo "$as_me:6655: \$? = $ac_status" >&5 6656 if (exit $ac_status) && test -s "$ac_outfile"; then 6657 # The compiler can only warn and ignore the option if not recognized 6658 # So say no if there are warnings other than the usual output. 6659 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6662 lt_prog_compiler_pic_works=yes 6663 fi 6664 fi 6665 $rm conftest* 6666 6667fi 6668echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6669echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6670 6671if test x"$lt_prog_compiler_pic_works" = xyes; then 6672 case $lt_prog_compiler_pic in 6673 "" | " "*) ;; 6674 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6675 esac 6676else 6677 lt_prog_compiler_pic= 6678 lt_prog_compiler_can_build_shared=no 6679fi 6680 6681fi 6682case $host_os in 6683 # For platforms which do not support PIC, -DPIC is meaningless: 6684 *djgpp*) 6685 lt_prog_compiler_pic= 6686 ;; 6687 *) 6688 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6689 ;; 6690esac 6691 6692# 6693# Check to make sure the static flag actually works. 6694# 6695wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6696echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6697echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6698if test "${lt_prog_compiler_static_works+set}" = set; then 6699 echo $ECHO_N "(cached) $ECHO_C" >&6 6700else 6701 lt_prog_compiler_static_works=no 6702 save_LDFLAGS="$LDFLAGS" 6703 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6704 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6706 # The linker can only warn and ignore the option if not recognized 6707 # So say no if there are warnings 6708 if test -s conftest.err; then 6709 # Append any errors to the config.log. 6710 cat conftest.err 1>&5 6711 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6713 if diff conftest.exp conftest.er2 >/dev/null; then 6714 lt_prog_compiler_static_works=yes 6715 fi 6716 else 6717 lt_prog_compiler_static_works=yes 6718 fi 6719 fi 6720 $rm conftest* 6721 LDFLAGS="$save_LDFLAGS" 6722 6723fi 6724echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6725echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6726 6727if test x"$lt_prog_compiler_static_works" = xyes; then 6728 : 6729else 6730 lt_prog_compiler_static= 6731fi 6732 6733 6734echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6735echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6736if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6737 echo $ECHO_N "(cached) $ECHO_C" >&6 6738else 6739 lt_cv_prog_compiler_c_o=no 6740 $rm -r conftest 2>/dev/null 6741 mkdir conftest 6742 cd conftest 6743 mkdir out 6744 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6745 6746 lt_compiler_flag="-o out/conftest2.$ac_objext" 6747 # Insert the option either (1) after the last *FLAGS variable, or 6748 # (2) before a word containing "conftest.", or (3) at the end. 6749 # Note that $ac_compile itself does not contain backslashes and begins 6750 # with a dollar sign (not a hyphen), so the echo should work correctly. 6751 lt_compile=`echo "$ac_compile" | $SED \ 6752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6754 -e 's:$: $lt_compiler_flag:'` 6755 (eval echo "\"\$as_me:6755: $lt_compile\"" >&5) 6756 (eval "$lt_compile" 2>out/conftest.err) 6757 ac_status=$? 6758 cat out/conftest.err >&5 6759 echo "$as_me:6759: \$? = $ac_status" >&5 6760 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6761 then 6762 # The compiler can only warn and ignore the option if not recognized 6763 # So say no if there are warnings 6764 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6767 lt_cv_prog_compiler_c_o=yes 6768 fi 6769 fi 6770 chmod u+w . 2>&5 6771 $rm conftest* 6772 # SGI C++ compiler will create directory out/ii_files/ for 6773 # template instantiation 6774 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6775 $rm out/* && rmdir out 6776 cd .. 6777 rmdir conftest 6778 $rm conftest* 6779 6780fi 6781echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6782echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6783 6784 6785hard_links="nottested" 6786if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6787 # do not overwrite the value of need_locks provided by the user 6788 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6789echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6790 hard_links=yes 6791 $rm conftest* 6792 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6793 touch conftest.a 6794 ln conftest.a conftest.b 2>&5 || hard_links=no 6795 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6796 echo "$as_me:$LINENO: result: $hard_links" >&5 6797echo "${ECHO_T}$hard_links" >&6 6798 if test "$hard_links" = no; then 6799 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6800echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6801 need_locks=warn 6802 fi 6803else 6804 need_locks=no 6805fi 6806 6807echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6808echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6809 6810 runpath_var= 6811 allow_undefined_flag= 6812 enable_shared_with_static_runtimes=no 6813 archive_cmds= 6814 archive_expsym_cmds= 6815 old_archive_From_new_cmds= 6816 old_archive_from_expsyms_cmds= 6817 export_dynamic_flag_spec= 6818 whole_archive_flag_spec= 6819 thread_safe_flag_spec= 6820 hardcode_libdir_flag_spec= 6821 hardcode_libdir_flag_spec_ld= 6822 hardcode_libdir_separator= 6823 hardcode_direct=no 6824 hardcode_minus_L=no 6825 hardcode_shlibpath_var=unsupported 6826 link_all_deplibs=unknown 6827 hardcode_automatic=no 6828 module_cmds= 6829 module_expsym_cmds= 6830 always_export_symbols=no 6831 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6832 # include_expsyms should be a list of space-separated symbols to be *always* 6833 # included in the symbol list 6834 include_expsyms= 6835 # exclude_expsyms can be an extended regexp of symbols to exclude 6836 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6837 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6838 # as well as any symbol that contains `d'. 6839 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6840 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6841 # platforms (ab)use it in PIC code, but their linkers get confused if 6842 # the symbol is explicitly referenced. Since portable code cannot 6843 # rely on this symbol name, it's probably fine to never include it in 6844 # preloaded symbol tables. 6845 extract_expsyms_cmds= 6846 # Just being paranoid about ensuring that cc_basename is set. 6847 for cc_temp in $compiler""; do 6848 case $cc_temp in 6849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6851 \-*) ;; 6852 *) break;; 6853 esac 6854done 6855cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6856 6857 case $host_os in 6858 cygwin* | mingw* | pw32*) 6859 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6860 # When not using gcc, we currently assume that we are using 6861 # Microsoft Visual C++. 6862 if test "$GCC" != yes; then 6863 with_gnu_ld=no 6864 fi 6865 ;; 6866 interix*) 6867 # we just hope/assume this is gcc and not c89 (= MSVC++) 6868 with_gnu_ld=yes 6869 ;; 6870 openbsd*) 6871 with_gnu_ld=no 6872 ;; 6873 esac 6874 6875 ld_shlibs=yes 6876 if test "$with_gnu_ld" = yes; then 6877 # If archive_cmds runs LD, not CC, wlarc should be empty 6878 wlarc='${wl}' 6879 6880 # Set some defaults for GNU ld with shared library support. These 6881 # are reset later if shared libraries are not supported. Putting them 6882 # here allows them to be overridden if necessary. 6883 runpath_var=LD_RUN_PATH 6884 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6885 export_dynamic_flag_spec='${wl}--export-dynamic' 6886 # ancient GNU ld didn't support --whole-archive et. al. 6887 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6888 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6889 else 6890 whole_archive_flag_spec= 6891 fi 6892 supports_anon_versioning=no 6893 case `$LD -v 2>/dev/null` in 6894 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6895 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6896 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6897 *\ 2.11.*) ;; # other 2.11 versions 6898 *) supports_anon_versioning=yes ;; 6899 esac 6900 6901 # See if GNU ld supports shared libraries. 6902 case $host_os in 6903 aix3* | aix4* | aix5*) 6904 # On AIX/PPC, the GNU linker is very broken 6905 if test "$host_cpu" != ia64; then 6906 ld_shlibs=no 6907 cat <<EOF 1>&2 6908 6909*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6910*** to be unable to reliably create shared libraries on AIX. 6911*** Therefore, libtool is disabling shared libraries support. If you 6912*** really care for shared libraries, you may want to modify your PATH 6913*** so that a non-GNU linker is found, and then restart. 6914 6915EOF 6916 fi 6917 ;; 6918 6919 amigaos*) 6920 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)' 6921 hardcode_libdir_flag_spec='-L$libdir' 6922 hardcode_minus_L=yes 6923 6924 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6925 # that the semantics of dynamic libraries on AmigaOS, at least up 6926 # to version 4, is to share data among multiple programs linked 6927 # with the same dynamic library. Since this doesn't match the 6928 # behavior of shared libraries on other platforms, we can't use 6929 # them. 6930 ld_shlibs=no 6931 ;; 6932 6933 beos*) 6934 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6935 allow_undefined_flag=unsupported 6936 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6937 # support --undefined. This deserves some investigation. FIXME 6938 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6939 else 6940 ld_shlibs=no 6941 fi 6942 ;; 6943 6944 cygwin* | mingw* | pw32*) 6945 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6946 # as there is no search path for DLLs. 6947 hardcode_libdir_flag_spec='-L$libdir' 6948 allow_undefined_flag=unsupported 6949 always_export_symbols=no 6950 enable_shared_with_static_runtimes=yes 6951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6952 6953 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6955 # If the export-symbols file already is a .def file (1st line 6956 # is EXPORTS), use it as is; otherwise, prepend... 6957 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6958 cp $export_symbols $output_objdir/$soname.def; 6959 else 6960 echo EXPORTS > $output_objdir/$soname.def; 6961 cat $export_symbols >> $output_objdir/$soname.def; 6962 fi~ 6963 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6964 else 6965 ld_shlibs=no 6966 fi 6967 ;; 6968 6969 interix3*) 6970 hardcode_direct=no 6971 hardcode_shlibpath_var=no 6972 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6973 export_dynamic_flag_spec='${wl}-E' 6974 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6975 # Instead, shared libraries are loaded at an image base (0x10000000 by 6976 # default) and relocated if they conflict, which is a slow very memory 6977 # consuming and fragmenting process. To avoid this, we pick a random, 6978 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6979 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6981 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6982 ;; 6983 6984 linux*) 6985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6986 tmp_addflag= 6987 case $cc_basename,$host_cpu in 6988 pgcc*) # Portland Group C compiler 6989 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' 6990 tmp_addflag=' $pic_flag' 6991 ;; 6992 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6993 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' 6994 tmp_addflag=' $pic_flag -Mnomain' ;; 6995 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6996 tmp_addflag=' -i_dynamic' ;; 6997 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6998 tmp_addflag=' -i_dynamic -nofor_main' ;; 6999 ifc* | ifort*) # Intel Fortran compiler 7000 tmp_addflag=' -nofor_main' ;; 7001 esac 7002 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7003 7004 if test $supports_anon_versioning = yes; then 7005 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7007 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7008 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7009 fi 7010 else 7011 ld_shlibs=no 7012 fi 7013 ;; 7014 7015 netbsd*) 7016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7017 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7018 wlarc= 7019 else 7020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7022 fi 7023 ;; 7024 7025 solaris*) 7026 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7027 ld_shlibs=no 7028 cat <<EOF 1>&2 7029 7030*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7031*** create shared libraries on Solaris systems. Therefore, libtool 7032*** is disabling shared libraries support. We urge you to upgrade GNU 7033*** binutils to release 2.9.1 or newer. Another option is to modify 7034*** your PATH or compiler configuration so that the native linker is 7035*** used, and then restart. 7036 7037EOF 7038 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7041 else 7042 ld_shlibs=no 7043 fi 7044 ;; 7045 7046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7047 case `$LD -v 2>&1` in 7048 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7049 ld_shlibs=no 7050 cat <<_LT_EOF 1>&2 7051 7052*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7053*** reliably create shared libraries on SCO systems. Therefore, libtool 7054*** is disabling shared libraries support. We urge you to upgrade GNU 7055*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7056*** your PATH or compiler configuration so that the native linker is 7057*** used, and then restart. 7058 7059_LT_EOF 7060 ;; 7061 *) 7062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7063 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7066 else 7067 ld_shlibs=no 7068 fi 7069 ;; 7070 esac 7071 ;; 7072 7073 sunos4*) 7074 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7075 wlarc= 7076 hardcode_direct=yes 7077 hardcode_shlibpath_var=no 7078 ;; 7079 7080 *) 7081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7084 else 7085 ld_shlibs=no 7086 fi 7087 ;; 7088 esac 7089 7090 if test "$ld_shlibs" = no; then 7091 runpath_var= 7092 hardcode_libdir_flag_spec= 7093 export_dynamic_flag_spec= 7094 whole_archive_flag_spec= 7095 fi 7096 else 7097 # PORTME fill in a description of your system's linker (not GNU ld) 7098 case $host_os in 7099 aix3*) 7100 allow_undefined_flag=unsupported 7101 always_export_symbols=yes 7102 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' 7103 # Note: this linker hardcodes the directories in LIBPATH if there 7104 # are no directories specified by -L. 7105 hardcode_minus_L=yes 7106 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7107 # Neither direct hardcoding nor static linking is supported with a 7108 # broken collect2. 7109 hardcode_direct=unsupported 7110 fi 7111 ;; 7112 7113 aix4* | aix5*) 7114 if test "$host_cpu" = ia64; then 7115 # On IA64, the linker does run time linking by default, so we don't 7116 # have to do anything special. 7117 aix_use_runtimelinking=no 7118 exp_sym_flag='-Bexport' 7119 no_entry_flag="" 7120 else 7121 # If we're using GNU nm, then we don't want the "-C" option. 7122 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7123 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7124 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' 7125 else 7126 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' 7127 fi 7128 aix_use_runtimelinking=no 7129 7130 # Test if we are trying to use run time linking or normal 7131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7132 # need to do runtime linking. 7133 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7134 for ld_flag in $LDFLAGS; do 7135 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7136 aix_use_runtimelinking=yes 7137 break 7138 fi 7139 done 7140 ;; 7141 esac 7142 7143 exp_sym_flag='-bexport' 7144 no_entry_flag='-bnoentry' 7145 fi 7146 7147 # When large executables or shared objects are built, AIX ld can 7148 # have problems creating the table of contents. If linking a library 7149 # or program results in "error TOC overflow" add -mminimal-toc to 7150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7152 7153 archive_cmds='' 7154 hardcode_direct=yes 7155 hardcode_libdir_separator=':' 7156 link_all_deplibs=yes 7157 7158 if test "$GCC" = yes; then 7159 case $host_os in aix4.[012]|aix4.[012].*) 7160 # We only want to do this on AIX 4.2 and lower, the check 7161 # below for broken collect2 doesn't work under 4.3+ 7162 collect2name=`${CC} -print-prog-name=collect2` 7163 if test -f "$collect2name" && \ 7164 strings "$collect2name" | grep resolve_lib_name >/dev/null 7165 then 7166 # We have reworked collect2 7167 hardcode_direct=yes 7168 else 7169 # We have old collect2 7170 hardcode_direct=unsupported 7171 # It fails to find uninstalled libraries when the uninstalled 7172 # path is not listed in the libpath. Setting hardcode_minus_L 7173 # to unsupported forces relinking 7174 hardcode_minus_L=yes 7175 hardcode_libdir_flag_spec='-L$libdir' 7176 hardcode_libdir_separator= 7177 fi 7178 ;; 7179 esac 7180 shared_flag='-shared' 7181 if test "$aix_use_runtimelinking" = yes; then 7182 shared_flag="$shared_flag "'${wl}-G' 7183 fi 7184 else 7185 # not using gcc 7186 if test "$host_cpu" = ia64; then 7187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7188 # chokes on -Wl,-G. The following line is correct: 7189 shared_flag='-G' 7190 else 7191 if test "$aix_use_runtimelinking" = yes; then 7192 shared_flag='${wl}-G' 7193 else 7194 shared_flag='${wl}-bM:SRE' 7195 fi 7196 fi 7197 fi 7198 7199 # It seems that -bexpall does not export symbols beginning with 7200 # underscore (_), so it is better to generate a list of symbols to export. 7201 always_export_symbols=yes 7202 if test "$aix_use_runtimelinking" = yes; then 7203 # Warning - without using the other runtime loading flags (-brtl), 7204 # -berok will link without error, but may produce a broken library. 7205 allow_undefined_flag='-berok' 7206 # Determine the default libpath from the value encoded in an empty executable. 7207 cat >conftest.$ac_ext <<_ACEOF 7208/* confdefs.h. */ 7209_ACEOF 7210cat confdefs.h >>conftest.$ac_ext 7211cat >>conftest.$ac_ext <<_ACEOF 7212/* end confdefs.h. */ 7213 7214int 7215main () 7216{ 7217 7218 ; 7219 return 0; 7220} 7221_ACEOF 7222rm -f conftest.$ac_objext conftest$ac_exeext 7223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7224 (eval $ac_link) 2>conftest.er1 7225 ac_status=$? 7226 grep -v '^ *+' conftest.er1 >conftest.err 7227 rm -f conftest.er1 7228 cat conftest.err >&5 7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7230 (exit $ac_status); } && 7231 { ac_try='test -z "$ac_c_werror_flag" 7232 || test ! -s conftest.err' 7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7234 (eval $ac_try) 2>&5 7235 ac_status=$? 7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7237 (exit $ac_status); }; } && 7238 { ac_try='test -s conftest$ac_exeext' 7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7240 (eval $ac_try) 2>&5 7241 ac_status=$? 7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7243 (exit $ac_status); }; }; then 7244 7245aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7246}'` 7247# Check for a 64-bit object if we didn't find anything. 7248if 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; } 7249}'`; fi 7250else 7251 echo "$as_me: failed program was:" >&5 7252sed 's/^/| /' conftest.$ac_ext >&5 7253 7254fi 7255rm -f conftest.err conftest.$ac_objext \ 7256 conftest$ac_exeext conftest.$ac_ext 7257if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7258 7259 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7260 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7261 else 7262 if test "$host_cpu" = ia64; then 7263 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7264 allow_undefined_flag="-z nodefs" 7265 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 7266 else 7267 # Determine the default libpath from the value encoded in an empty executable. 7268 cat >conftest.$ac_ext <<_ACEOF 7269/* confdefs.h. */ 7270_ACEOF 7271cat confdefs.h >>conftest.$ac_ext 7272cat >>conftest.$ac_ext <<_ACEOF 7273/* end confdefs.h. */ 7274 7275int 7276main () 7277{ 7278 7279 ; 7280 return 0; 7281} 7282_ACEOF 7283rm -f conftest.$ac_objext conftest$ac_exeext 7284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7285 (eval $ac_link) 2>conftest.er1 7286 ac_status=$? 7287 grep -v '^ *+' conftest.er1 >conftest.err 7288 rm -f conftest.er1 7289 cat conftest.err >&5 7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7291 (exit $ac_status); } && 7292 { ac_try='test -z "$ac_c_werror_flag" 7293 || test ! -s conftest.err' 7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7295 (eval $ac_try) 2>&5 7296 ac_status=$? 7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7298 (exit $ac_status); }; } && 7299 { ac_try='test -s conftest$ac_exeext' 7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7301 (eval $ac_try) 2>&5 7302 ac_status=$? 7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7304 (exit $ac_status); }; }; then 7305 7306aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7307}'` 7308# Check for a 64-bit object if we didn't find anything. 7309if 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; } 7310}'`; fi 7311else 7312 echo "$as_me: failed program was:" >&5 7313sed 's/^/| /' conftest.$ac_ext >&5 7314 7315fi 7316rm -f conftest.err conftest.$ac_objext \ 7317 conftest$ac_exeext conftest.$ac_ext 7318if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7319 7320 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7321 # Warning - without using the other run time loading flags, 7322 # -berok will link without error, but may produce a broken library. 7323 no_undefined_flag=' ${wl}-bernotok' 7324 allow_undefined_flag=' ${wl}-berok' 7325 # Exported symbols can be pulled into shared objects from archives 7326 whole_archive_flag_spec='$convenience' 7327 archive_cmds_need_lc=yes 7328 # This is similar to how AIX traditionally builds its shared libraries. 7329 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7330 fi 7331 fi 7332 ;; 7333 7334 amigaos*) 7335 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)' 7336 hardcode_libdir_flag_spec='-L$libdir' 7337 hardcode_minus_L=yes 7338 # see comment about different semantics on the GNU ld section 7339 ld_shlibs=no 7340 ;; 7341 7342 bsdi[45]*) 7343 export_dynamic_flag_spec=-rdynamic 7344 ;; 7345 7346 cygwin* | mingw* | pw32*) 7347 # When not using gcc, we currently assume that we are using 7348 # Microsoft Visual C++. 7349 # hardcode_libdir_flag_spec is actually meaningless, as there is 7350 # no search path for DLLs. 7351 hardcode_libdir_flag_spec=' ' 7352 allow_undefined_flag=unsupported 7353 # Tell ltmain to make .lib files, not .a files. 7354 libext=lib 7355 # Tell ltmain to make .dll files, not .so files. 7356 shrext_cmds=".dll" 7357 # FIXME: Setting linknames here is a bad hack. 7358 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7359 # The linker will automatically build a .lib file if we build a DLL. 7360 old_archive_From_new_cmds='true' 7361 # FIXME: Should let the user specify the lib program. 7362 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7363 fix_srcfile_path='`cygpath -w "$srcfile"`' 7364 enable_shared_with_static_runtimes=yes 7365 ;; 7366 7367 darwin* | rhapsody*) 7368 case $host_os in 7369 rhapsody* | darwin1.[012]) 7370 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7371 ;; 7372 *) # Darwin 1.3 on 7373 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7374 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7375 else 7376 case ${MACOSX_DEPLOYMENT_TARGET} in 7377 10.[012]) 7378 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7379 ;; 7380 10.*) 7381 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7382 ;; 7383 esac 7384 fi 7385 ;; 7386 esac 7387 archive_cmds_need_lc=no 7388 hardcode_direct=no 7389 hardcode_automatic=yes 7390 hardcode_shlibpath_var=unsupported 7391 whole_archive_flag_spec='' 7392 link_all_deplibs=yes 7393 if test "$GCC" = yes ; then 7394 output_verbose_link_cmd='echo' 7395 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7396 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7398 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}' 7399 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}' 7400 else 7401 case $cc_basename in 7402 xlc*) 7403 output_verbose_link_cmd='echo' 7404 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7405 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7407 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}' 7408 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}' 7409 ;; 7410 *) 7411 ld_shlibs=no 7412 ;; 7413 esac 7414 fi 7415 ;; 7416 7417 dgux*) 7418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7419 hardcode_libdir_flag_spec='-L$libdir' 7420 hardcode_shlibpath_var=no 7421 ;; 7422 7423 freebsd1*) 7424 ld_shlibs=no 7425 ;; 7426 7427 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7428 # support. Future versions do this automatically, but an explicit c++rt0.o 7429 # does not break anything, and helps significantly (at the cost of a little 7430 # extra space). 7431 freebsd2.2*) 7432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7433 hardcode_libdir_flag_spec='-R$libdir' 7434 hardcode_direct=yes 7435 hardcode_shlibpath_var=no 7436 ;; 7437 7438 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7439 freebsd2*) 7440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7441 hardcode_direct=yes 7442 hardcode_minus_L=yes 7443 hardcode_shlibpath_var=no 7444 ;; 7445 7446 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7447 freebsd* | kfreebsd*-gnu | dragonfly*) 7448 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7449 hardcode_libdir_flag_spec='-R$libdir' 7450 hardcode_direct=yes 7451 hardcode_shlibpath_var=no 7452 ;; 7453 7454 hpux9*) 7455 if test "$GCC" = yes; then 7456 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' 7457 else 7458 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' 7459 fi 7460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7461 hardcode_libdir_separator=: 7462 hardcode_direct=yes 7463 7464 # hardcode_minus_L: Not really in the search PATH, 7465 # but as the default location of the library. 7466 hardcode_minus_L=yes 7467 export_dynamic_flag_spec='${wl}-E' 7468 ;; 7469 7470 hpux10*) 7471 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7472 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7473 else 7474 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7475 fi 7476 if test "$with_gnu_ld" = no; then 7477 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7478 hardcode_libdir_separator=: 7479 7480 hardcode_direct=yes 7481 export_dynamic_flag_spec='${wl}-E' 7482 7483 # hardcode_minus_L: Not really in the search PATH, 7484 # but as the default location of the library. 7485 hardcode_minus_L=yes 7486 fi 7487 ;; 7488 7489 hpux11*) 7490 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7491 case $host_cpu in 7492 hppa*64*) 7493 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7494 ;; 7495 ia64*) 7496 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7497 ;; 7498 *) 7499 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7500 ;; 7501 esac 7502 else 7503 case $host_cpu in 7504 hppa*64*) 7505 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7506 ;; 7507 ia64*) 7508 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7509 ;; 7510 *) 7511 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7512 ;; 7513 esac 7514 fi 7515 if test "$with_gnu_ld" = no; then 7516 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7517 hardcode_libdir_separator=: 7518 7519 case $host_cpu in 7520 hppa*64*|ia64*) 7521 hardcode_libdir_flag_spec_ld='+b $libdir' 7522 hardcode_direct=no 7523 hardcode_shlibpath_var=no 7524 ;; 7525 *) 7526 hardcode_direct=yes 7527 export_dynamic_flag_spec='${wl}-E' 7528 7529 # hardcode_minus_L: Not really in the search PATH, 7530 # but as the default location of the library. 7531 hardcode_minus_L=yes 7532 ;; 7533 esac 7534 fi 7535 ;; 7536 7537 irix5* | irix6* | nonstopux*) 7538 if test "$GCC" = yes; then 7539 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' 7540 else 7541 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' 7542 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7543 fi 7544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7545 hardcode_libdir_separator=: 7546 link_all_deplibs=yes 7547 ;; 7548 7549 netbsd*) 7550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7552 else 7553 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7554 fi 7555 hardcode_libdir_flag_spec='-R$libdir' 7556 hardcode_direct=yes 7557 hardcode_shlibpath_var=no 7558 ;; 7559 7560 newsos6) 7561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7562 hardcode_direct=yes 7563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7564 hardcode_libdir_separator=: 7565 hardcode_shlibpath_var=no 7566 ;; 7567 7568 openbsd*) 7569 hardcode_direct=yes 7570 hardcode_shlibpath_var=no 7571 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7573 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7575 export_dynamic_flag_spec='${wl}-E' 7576 else 7577 case $host_os in 7578 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7580 hardcode_libdir_flag_spec='-R$libdir' 7581 ;; 7582 *) 7583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7585 ;; 7586 esac 7587 fi 7588 ;; 7589 7590 os2*) 7591 hardcode_libdir_flag_spec='-L$libdir' 7592 hardcode_minus_L=yes 7593 allow_undefined_flag=unsupported 7594 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' 7595 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7596 ;; 7597 7598 osf3*) 7599 if test "$GCC" = yes; then 7600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7601 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' 7602 else 7603 allow_undefined_flag=' -expect_unresolved \*' 7604 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' 7605 fi 7606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7607 hardcode_libdir_separator=: 7608 ;; 7609 7610 osf4* | osf5*) # as osf3* with the addition of -msym flag 7611 if test "$GCC" = yes; then 7612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7613 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' 7614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7615 else 7616 allow_undefined_flag=' -expect_unresolved \*' 7617 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' 7618 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7619 $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' 7620 7621 # Both c and cxx compiler support -rpath directly 7622 hardcode_libdir_flag_spec='-rpath $libdir' 7623 fi 7624 hardcode_libdir_separator=: 7625 ;; 7626 7627 solaris*) 7628 no_undefined_flag=' -z text' 7629 if test "$GCC" = yes; then 7630 wlarc='${wl}' 7631 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7632 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7633 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7634 else 7635 wlarc='' 7636 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7637 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7639 fi 7640 hardcode_libdir_flag_spec='-R$libdir' 7641 hardcode_shlibpath_var=no 7642 case $host_os in 7643 solaris2.[0-5] | solaris2.[0-5].*) ;; 7644 *) 7645 # The compiler driver will combine linker options so we 7646 # cannot just pass the convience library names through 7647 # without $wl, iff we do not link with $LD. 7648 # Luckily, gcc supports the same syntax we need for Sun Studio. 7649 # Supported since Solaris 2.6 (maybe 2.5.1?) 7650 case $wlarc in 7651 '') 7652 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7653 *) 7654 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' ;; 7655 esac ;; 7656 esac 7657 link_all_deplibs=yes 7658 ;; 7659 7660 sunos4*) 7661 if test "x$host_vendor" = xsequent; then 7662 # Use $CC to link under sequent, because it throws in some extra .o 7663 # files that make .init and .fini sections work. 7664 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7665 else 7666 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7667 fi 7668 hardcode_libdir_flag_spec='-L$libdir' 7669 hardcode_direct=yes 7670 hardcode_minus_L=yes 7671 hardcode_shlibpath_var=no 7672 ;; 7673 7674 sysv4) 7675 case $host_vendor in 7676 sni) 7677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7678 hardcode_direct=yes # is this really true??? 7679 ;; 7680 siemens) 7681 ## LD is ld it makes a PLAMLIB 7682 ## CC just makes a GrossModule. 7683 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7684 reload_cmds='$CC -r -o $output$reload_objs' 7685 hardcode_direct=no 7686 ;; 7687 motorola) 7688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7689 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7690 ;; 7691 esac 7692 runpath_var='LD_RUN_PATH' 7693 hardcode_shlibpath_var=no 7694 ;; 7695 7696 sysv4.3*) 7697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7698 hardcode_shlibpath_var=no 7699 export_dynamic_flag_spec='-Bexport' 7700 ;; 7701 7702 sysv4*MP*) 7703 if test -d /usr/nec; then 7704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7705 hardcode_shlibpath_var=no 7706 runpath_var=LD_RUN_PATH 7707 hardcode_runpath_var=yes 7708 ld_shlibs=yes 7709 fi 7710 ;; 7711 7712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7713 no_undefined_flag='${wl}-z,text' 7714 archive_cmds_need_lc=no 7715 hardcode_shlibpath_var=no 7716 runpath_var='LD_RUN_PATH' 7717 7718 if test "$GCC" = yes; then 7719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7721 else 7722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7724 fi 7725 ;; 7726 7727 sysv5* | sco3.2v5* | sco5v6*) 7728 # Note: We can NOT use -z defs as we might desire, because we do not 7729 # link with -lc, and that would cause any symbols used from libc to 7730 # always be unresolved, which means just about no library would 7731 # ever link correctly. If we're not using GNU ld we use -z text 7732 # though, which does catch some bad symbols but isn't as heavy-handed 7733 # as -z defs. 7734 no_undefined_flag='${wl}-z,text' 7735 allow_undefined_flag='${wl}-z,nodefs' 7736 archive_cmds_need_lc=no 7737 hardcode_shlibpath_var=no 7738 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7739 hardcode_libdir_separator=':' 7740 link_all_deplibs=yes 7741 export_dynamic_flag_spec='${wl}-Bexport' 7742 runpath_var='LD_RUN_PATH' 7743 7744 if test "$GCC" = yes; then 7745 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7746 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7747 else 7748 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7749 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7750 fi 7751 ;; 7752 7753 uts4*) 7754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7755 hardcode_libdir_flag_spec='-L$libdir' 7756 hardcode_shlibpath_var=no 7757 ;; 7758 7759 *) 7760 ld_shlibs=no 7761 ;; 7762 esac 7763 fi 7764 7765echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7766echo "${ECHO_T}$ld_shlibs" >&6 7767test "$ld_shlibs" = no && can_build_shared=no 7768 7769# 7770# Do we need to explicitly link libc? 7771# 7772case "x$archive_cmds_need_lc" in 7773x|xyes) 7774 # Assume -lc should be added 7775 archive_cmds_need_lc=yes 7776 7777 if test "$enable_shared" = yes && test "$GCC" = yes; then 7778 case $archive_cmds in 7779 *'~'*) 7780 # FIXME: we may have to deal with multi-command sequences. 7781 ;; 7782 '$CC '*) 7783 # Test whether the compiler implicitly links with -lc since on some 7784 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7785 # to ld, don't add -lc before -lgcc. 7786 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7787echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7788 $rm conftest* 7789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7790 7791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7792 (eval $ac_compile) 2>&5 7793 ac_status=$? 7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7795 (exit $ac_status); } 2>conftest.err; then 7796 soname=conftest 7797 lib=conftest 7798 libobjs=conftest.$ac_objext 7799 deplibs= 7800 wl=$lt_prog_compiler_wl 7801 pic_flag=$lt_prog_compiler_pic 7802 compiler_flags=-v 7803 linker_flags=-v 7804 verstring= 7805 output_objdir=. 7806 libname=conftest 7807 lt_save_allow_undefined_flag=$allow_undefined_flag 7808 allow_undefined_flag= 7809 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7810 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7811 ac_status=$? 7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7813 (exit $ac_status); } 7814 then 7815 archive_cmds_need_lc=no 7816 else 7817 archive_cmds_need_lc=yes 7818 fi 7819 allow_undefined_flag=$lt_save_allow_undefined_flag 7820 else 7821 cat conftest.err 1>&5 7822 fi 7823 $rm conftest* 7824 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7825echo "${ECHO_T}$archive_cmds_need_lc" >&6 7826 ;; 7827 esac 7828 fi 7829 ;; 7830esac 7831 7832echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7833echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7834library_names_spec= 7835libname_spec='lib$name' 7836soname_spec= 7837shrext_cmds=".so" 7838postinstall_cmds= 7839postuninstall_cmds= 7840finish_cmds= 7841finish_eval= 7842shlibpath_var= 7843shlibpath_overrides_runpath=unknown 7844version_type=none 7845dynamic_linker="$host_os ld.so" 7846sys_lib_dlsearch_path_spec="/lib /usr/lib" 7847if test "$GCC" = yes; then 7848 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7849 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7850 # if the path contains ";" then we assume it to be the separator 7851 # otherwise default to the standard path separator (i.e. ":") - it is 7852 # assumed that no part of a normal pathname contains ";" but that should 7853 # okay in the real world where ";" in dirpaths is itself problematic. 7854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7855 else 7856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7857 fi 7858else 7859 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7860fi 7861need_lib_prefix=unknown 7862hardcode_into_libs=no 7863 7864# when you set need_version to no, make sure it does not cause -set_version 7865# flags to be left without arguments 7866need_version=unknown 7867 7868case $host_os in 7869aix3*) 7870 version_type=linux 7871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7872 shlibpath_var=LIBPATH 7873 7874 # AIX 3 has no versioning support, so we append a major version to the name. 7875 soname_spec='${libname}${release}${shared_ext}$major' 7876 ;; 7877 7878aix4* | aix5*) 7879 version_type=linux 7880 need_lib_prefix=no 7881 need_version=no 7882 hardcode_into_libs=yes 7883 if test "$host_cpu" = ia64; then 7884 # AIX 5 supports IA64 7885 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7886 shlibpath_var=LD_LIBRARY_PATH 7887 else 7888 # With GCC up to 2.95.x, collect2 would create an import file 7889 # for dependence libraries. The import file would start with 7890 # the line `#! .'. This would cause the generated library to 7891 # depend on `.', always an invalid library. This was fixed in 7892 # development snapshots of GCC prior to 3.0. 7893 case $host_os in 7894 aix4 | aix4.[01] | aix4.[01].*) 7895 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7896 echo ' yes ' 7897 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7898 : 7899 else 7900 can_build_shared=no 7901 fi 7902 ;; 7903 esac 7904 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7905 # soname into executable. Probably we can add versioning support to 7906 # collect2, so additional links can be useful in future. 7907 if test "$aix_use_runtimelinking" = yes; then 7908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7909 # instead of lib<name>.a to let people know that these are not 7910 # typical AIX shared libraries. 7911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7912 else 7913 # We preserve .a as extension for shared libraries through AIX4.2 7914 # and later when we are not doing run time linking. 7915 library_names_spec='${libname}${release}.a $libname.a' 7916 soname_spec='${libname}${release}${shared_ext}$major' 7917 fi 7918 shlibpath_var=LIBPATH 7919 fi 7920 ;; 7921 7922amigaos*) 7923 library_names_spec='$libname.ixlibrary $libname.a' 7924 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7925 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' 7926 ;; 7927 7928beos*) 7929 library_names_spec='${libname}${shared_ext}' 7930 dynamic_linker="$host_os ld.so" 7931 shlibpath_var=LIBRARY_PATH 7932 ;; 7933 7934bsdi[45]*) 7935 version_type=linux 7936 need_version=no 7937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7938 soname_spec='${libname}${release}${shared_ext}$major' 7939 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7940 shlibpath_var=LD_LIBRARY_PATH 7941 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7942 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7943 # the default ld.so.conf also contains /usr/contrib/lib and 7944 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7945 # libtool to hard-code these into programs 7946 ;; 7947 7948cygwin* | mingw* | pw32*) 7949 version_type=windows 7950 shrext_cmds=".dll" 7951 need_version=no 7952 need_lib_prefix=no 7953 7954 case $GCC,$host_os in 7955 yes,cygwin* | yes,mingw* | yes,pw32*) 7956 library_names_spec='$libname.dll.a' 7957 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7958 postinstall_cmds='base_file=`basename \${file}`~ 7959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7960 dldir=$destdir/`dirname \$dlpath`~ 7961 test -d \$dldir || mkdir -p \$dldir~ 7962 $install_prog $dir/$dlname \$dldir/$dlname~ 7963 chmod a+x \$dldir/$dlname' 7964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7965 dlpath=$dir/\$dldll~ 7966 $rm \$dlpath' 7967 shlibpath_overrides_runpath=yes 7968 7969 case $host_os in 7970 cygwin*) 7971 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7972 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7973 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7974 ;; 7975 mingw*) 7976 # MinGW DLLs use traditional 'lib' prefix 7977 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7978 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7979 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7980 # It is most probably a Windows format PATH printed by 7981 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7982 # path with ; separators, and with drive letters. We can handle the 7983 # drive letters (cygwin fileutils understands them), so leave them, 7984 # especially as we might pass files found there to a mingw objdump, 7985 # which wouldn't understand a cygwinified path. Ahh. 7986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7987 else 7988 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7989 fi 7990 ;; 7991 pw32*) 7992 # pw32 DLLs use 'pw' prefix rather than 'lib' 7993 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7994 ;; 7995 esac 7996 ;; 7997 7998 *) 7999 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8000 ;; 8001 esac 8002 dynamic_linker='Win32 ld.exe' 8003 # FIXME: first we should search . and the directory the executable is in 8004 shlibpath_var=PATH 8005 ;; 8006 8007darwin* | rhapsody*) 8008 dynamic_linker="$host_os dyld" 8009 version_type=darwin 8010 need_lib_prefix=no 8011 need_version=no 8012 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8013 soname_spec='${libname}${release}${major}$shared_ext' 8014 shlibpath_overrides_runpath=yes 8015 shlibpath_var=DYLD_LIBRARY_PATH 8016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8017 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8018 if test "$GCC" = yes; then 8019 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"` 8020 else 8021 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8022 fi 8023 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8024 ;; 8025 8026dgux*) 8027 version_type=linux 8028 need_lib_prefix=no 8029 need_version=no 8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8031 soname_spec='${libname}${release}${shared_ext}$major' 8032 shlibpath_var=LD_LIBRARY_PATH 8033 ;; 8034 8035freebsd1*) 8036 dynamic_linker=no 8037 ;; 8038 8039kfreebsd*-gnu) 8040 version_type=linux 8041 need_lib_prefix=no 8042 need_version=no 8043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8044 soname_spec='${libname}${release}${shared_ext}$major' 8045 shlibpath_var=LD_LIBRARY_PATH 8046 shlibpath_overrides_runpath=no 8047 hardcode_into_libs=yes 8048 dynamic_linker='GNU ld.so' 8049 ;; 8050 8051freebsd* | dragonfly*) 8052 # DragonFly does not have aout. When/if they implement a new 8053 # versioning mechanism, adjust this. 8054 if test -x /usr/bin/objformat; then 8055 objformat=`/usr/bin/objformat` 8056 else 8057 case $host_os in 8058 freebsd[123]*) objformat=aout ;; 8059 *) objformat=elf ;; 8060 esac 8061 fi 8062 version_type=freebsd-$objformat 8063 case $version_type in 8064 freebsd-elf*) 8065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8066 need_version=no 8067 need_lib_prefix=no 8068 ;; 8069 freebsd-*) 8070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8071 need_version=yes 8072 ;; 8073 esac 8074 shlibpath_var=LD_LIBRARY_PATH 8075 case $host_os in 8076 freebsd2*) 8077 shlibpath_overrides_runpath=yes 8078 ;; 8079 freebsd3.[01]* | freebsdelf3.[01]*) 8080 shlibpath_overrides_runpath=yes 8081 hardcode_into_libs=yes 8082 ;; 8083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8085 shlibpath_overrides_runpath=no 8086 hardcode_into_libs=yes 8087 ;; 8088 freebsd*) # from 4.6 on 8089 shlibpath_overrides_runpath=yes 8090 hardcode_into_libs=yes 8091 ;; 8092 esac 8093 ;; 8094 8095gnu*) 8096 version_type=linux 8097 need_lib_prefix=no 8098 need_version=no 8099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8100 soname_spec='${libname}${release}${shared_ext}$major' 8101 shlibpath_var=LD_LIBRARY_PATH 8102 hardcode_into_libs=yes 8103 ;; 8104 8105hpux9* | hpux10* | hpux11*) 8106 # Give a soname corresponding to the major version so that dld.sl refuses to 8107 # link against other versions. 8108 version_type=sunos 8109 need_lib_prefix=no 8110 need_version=no 8111 case $host_cpu in 8112 ia64*) 8113 shrext_cmds='.so' 8114 hardcode_into_libs=yes 8115 dynamic_linker="$host_os dld.so" 8116 shlibpath_var=LD_LIBRARY_PATH 8117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8119 soname_spec='${libname}${release}${shared_ext}$major' 8120 if test "X$HPUX_IA64_MODE" = X32; then 8121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8122 else 8123 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8124 fi 8125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8126 ;; 8127 hppa*64*) 8128 shrext_cmds='.sl' 8129 hardcode_into_libs=yes 8130 dynamic_linker="$host_os dld.sl" 8131 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8134 soname_spec='${libname}${release}${shared_ext}$major' 8135 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8137 ;; 8138 *) 8139 shrext_cmds='.sl' 8140 dynamic_linker="$host_os dld.sl" 8141 shlibpath_var=SHLIB_PATH 8142 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8144 soname_spec='${libname}${release}${shared_ext}$major' 8145 ;; 8146 esac 8147 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8148 postinstall_cmds='chmod 555 $lib' 8149 ;; 8150 8151interix3*) 8152 version_type=linux 8153 need_lib_prefix=no 8154 need_version=no 8155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8156 soname_spec='${libname}${release}${shared_ext}$major' 8157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8158 shlibpath_var=LD_LIBRARY_PATH 8159 shlibpath_overrides_runpath=no 8160 hardcode_into_libs=yes 8161 ;; 8162 8163irix5* | irix6* | nonstopux*) 8164 case $host_os in 8165 nonstopux*) version_type=nonstopux ;; 8166 *) 8167 if test "$lt_cv_prog_gnu_ld" = yes; then 8168 version_type=linux 8169 else 8170 version_type=irix 8171 fi ;; 8172 esac 8173 need_lib_prefix=no 8174 need_version=no 8175 soname_spec='${libname}${release}${shared_ext}$major' 8176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8177 case $host_os in 8178 irix5* | nonstopux*) 8179 libsuff= shlibsuff= 8180 ;; 8181 *) 8182 case $LD in # libtool.m4 will add one of these switches to LD 8183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8184 libsuff= shlibsuff= libmagic=32-bit;; 8185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8186 libsuff=32 shlibsuff=N32 libmagic=N32;; 8187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8188 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8189 *) libsuff= shlibsuff= libmagic=never-match;; 8190 esac 8191 ;; 8192 esac 8193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8194 shlibpath_overrides_runpath=no 8195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8197 hardcode_into_libs=yes 8198 ;; 8199 8200# No shared lib support for Linux oldld, aout, or coff. 8201linux*oldld* | linux*aout* | linux*coff*) 8202 dynamic_linker=no 8203 ;; 8204 8205# This must be Linux ELF. 8206linux*) 8207 version_type=linux 8208 need_lib_prefix=no 8209 need_version=no 8210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8211 soname_spec='${libname}${release}${shared_ext}$major' 8212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8213 shlibpath_var=LD_LIBRARY_PATH 8214 shlibpath_overrides_runpath=no 8215 # This implies no fast_install, which is unacceptable. 8216 # Some rework will be needed to allow for fast_install 8217 # before this can be enabled. 8218 hardcode_into_libs=yes 8219 8220 # find out which ABI we are using 8221 libsuff= 8222 case "$host_cpu" in 8223 x86_64*|s390x*|powerpc64*) 8224 echo '#line 8224 "configure"' > conftest.$ac_ext 8225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8226 (eval $ac_compile) 2>&5 8227 ac_status=$? 8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8229 (exit $ac_status); }; then 8230 case `/usr/bin/file conftest.$ac_objext` in 8231 *64-bit*) 8232 libsuff=64 8233 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8234 ;; 8235 esac 8236 fi 8237 rm -rf conftest* 8238 ;; 8239 esac 8240 8241 # Append ld.so.conf contents to the search path 8242 if test -f /etc/ld.so.conf; then 8243 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' ' '` 8244 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8245 fi 8246 8247 # We used to test for /lib/ld.so.1 and disable shared libraries on 8248 # powerpc, because MkLinux only supported shared libraries with the 8249 # GNU dynamic linker. Since this was broken with cross compilers, 8250 # most powerpc-linux boxes support dynamic linking these days and 8251 # people can always --disable-shared, the test was removed, and we 8252 # assume the GNU/Linux dynamic linker is in use. 8253 dynamic_linker='GNU/Linux ld.so' 8254 ;; 8255 8256knetbsd*-gnu) 8257 version_type=linux 8258 need_lib_prefix=no 8259 need_version=no 8260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8261 soname_spec='${libname}${release}${shared_ext}$major' 8262 shlibpath_var=LD_LIBRARY_PATH 8263 shlibpath_overrides_runpath=no 8264 hardcode_into_libs=yes 8265 dynamic_linker='GNU ld.so' 8266 ;; 8267 8268netbsd*) 8269 version_type=sunos 8270 need_lib_prefix=no 8271 need_version=no 8272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8275 dynamic_linker='NetBSD (a.out) ld.so' 8276 else 8277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8278 soname_spec='${libname}${release}${shared_ext}$major' 8279 dynamic_linker='NetBSD ld.elf_so' 8280 fi 8281 shlibpath_var=LD_LIBRARY_PATH 8282 shlibpath_overrides_runpath=yes 8283 hardcode_into_libs=yes 8284 ;; 8285 8286newsos6) 8287 version_type=linux 8288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8289 shlibpath_var=LD_LIBRARY_PATH 8290 shlibpath_overrides_runpath=yes 8291 ;; 8292 8293nto-qnx*) 8294 version_type=linux 8295 need_lib_prefix=no 8296 need_version=no 8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8298 soname_spec='${libname}${release}${shared_ext}$major' 8299 shlibpath_var=LD_LIBRARY_PATH 8300 shlibpath_overrides_runpath=yes 8301 ;; 8302 8303openbsd*) 8304 version_type=sunos 8305 sys_lib_dlsearch_path_spec="/usr/lib" 8306 need_lib_prefix=no 8307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8308 case $host_os in 8309 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8310 *) need_version=no ;; 8311 esac 8312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8314 shlibpath_var=LD_LIBRARY_PATH 8315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8316 case $host_os in 8317 openbsd2.[89] | openbsd2.[89].*) 8318 shlibpath_overrides_runpath=no 8319 ;; 8320 *) 8321 shlibpath_overrides_runpath=yes 8322 ;; 8323 esac 8324 else 8325 shlibpath_overrides_runpath=yes 8326 fi 8327 ;; 8328 8329os2*) 8330 libname_spec='$name' 8331 shrext_cmds=".dll" 8332 need_lib_prefix=no 8333 library_names_spec='$libname${shared_ext} $libname.a' 8334 dynamic_linker='OS/2 ld.exe' 8335 shlibpath_var=LIBPATH 8336 ;; 8337 8338osf3* | osf4* | osf5*) 8339 version_type=osf 8340 need_lib_prefix=no 8341 need_version=no 8342 soname_spec='${libname}${release}${shared_ext}$major' 8343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8344 shlibpath_var=LD_LIBRARY_PATH 8345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8347 ;; 8348 8349solaris*) 8350 version_type=linux 8351 need_lib_prefix=no 8352 need_version=no 8353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8354 soname_spec='${libname}${release}${shared_ext}$major' 8355 shlibpath_var=LD_LIBRARY_PATH 8356 shlibpath_overrides_runpath=yes 8357 hardcode_into_libs=yes 8358 # ldd complains unless libraries are executable 8359 postinstall_cmds='chmod +x $lib' 8360 ;; 8361 8362sunos4*) 8363 version_type=sunos 8364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8366 shlibpath_var=LD_LIBRARY_PATH 8367 shlibpath_overrides_runpath=yes 8368 if test "$with_gnu_ld" = yes; then 8369 need_lib_prefix=no 8370 fi 8371 need_version=yes 8372 ;; 8373 8374sysv4 | sysv4.3*) 8375 version_type=linux 8376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8377 soname_spec='${libname}${release}${shared_ext}$major' 8378 shlibpath_var=LD_LIBRARY_PATH 8379 case $host_vendor in 8380 sni) 8381 shlibpath_overrides_runpath=no 8382 need_lib_prefix=no 8383 export_dynamic_flag_spec='${wl}-Blargedynsym' 8384 runpath_var=LD_RUN_PATH 8385 ;; 8386 siemens) 8387 need_lib_prefix=no 8388 ;; 8389 motorola) 8390 need_lib_prefix=no 8391 need_version=no 8392 shlibpath_overrides_runpath=no 8393 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8394 ;; 8395 esac 8396 ;; 8397 8398sysv4*MP*) 8399 if test -d /usr/nec ;then 8400 version_type=linux 8401 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8402 soname_spec='$libname${shared_ext}.$major' 8403 shlibpath_var=LD_LIBRARY_PATH 8404 fi 8405 ;; 8406 8407sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8408 version_type=freebsd-elf 8409 need_lib_prefix=no 8410 need_version=no 8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8412 soname_spec='${libname}${release}${shared_ext}$major' 8413 shlibpath_var=LD_LIBRARY_PATH 8414 hardcode_into_libs=yes 8415 if test "$with_gnu_ld" = yes; then 8416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8417 shlibpath_overrides_runpath=no 8418 else 8419 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8420 shlibpath_overrides_runpath=yes 8421 case $host_os in 8422 sco3.2v5*) 8423 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8424 ;; 8425 esac 8426 fi 8427 sys_lib_dlsearch_path_spec='/usr/lib' 8428 ;; 8429 8430uts4*) 8431 version_type=linux 8432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8433 soname_spec='${libname}${release}${shared_ext}$major' 8434 shlibpath_var=LD_LIBRARY_PATH 8435 ;; 8436 8437*) 8438 dynamic_linker=no 8439 ;; 8440esac 8441echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8442echo "${ECHO_T}$dynamic_linker" >&6 8443test "$dynamic_linker" = no && can_build_shared=no 8444 8445variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8446if test "$GCC" = yes; then 8447 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8448fi 8449 8450echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8451echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8452hardcode_action= 8453if test -n "$hardcode_libdir_flag_spec" || \ 8454 test -n "$runpath_var" || \ 8455 test "X$hardcode_automatic" = "Xyes" ; then 8456 8457 # We can hardcode non-existant directories. 8458 if test "$hardcode_direct" != no && 8459 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8460 # have to relink, otherwise we might link with an installed library 8461 # when we should be linking with a yet-to-be-installed one 8462 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8463 test "$hardcode_minus_L" != no; then 8464 # Linking always hardcodes the temporary library directory. 8465 hardcode_action=relink 8466 else 8467 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8468 hardcode_action=immediate 8469 fi 8470else 8471 # We cannot hardcode anything, or else we can only hardcode existing 8472 # directories. 8473 hardcode_action=unsupported 8474fi 8475echo "$as_me:$LINENO: result: $hardcode_action" >&5 8476echo "${ECHO_T}$hardcode_action" >&6 8477 8478if test "$hardcode_action" = relink; then 8479 # Fast installation is not supported 8480 enable_fast_install=no 8481elif test "$shlibpath_overrides_runpath" = yes || 8482 test "$enable_shared" = no; then 8483 # Fast installation is not necessary 8484 enable_fast_install=needless 8485fi 8486 8487striplib= 8488old_striplib= 8489echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8490echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8491if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8492 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8493 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8494 echo "$as_me:$LINENO: result: yes" >&5 8495echo "${ECHO_T}yes" >&6 8496else 8497# FIXME - insert some real tests, host_os isn't really good enough 8498 case $host_os in 8499 darwin*) 8500 if test -n "$STRIP" ; then 8501 striplib="$STRIP -x" 8502 echo "$as_me:$LINENO: result: yes" >&5 8503echo "${ECHO_T}yes" >&6 8504 else 8505 echo "$as_me:$LINENO: result: no" >&5 8506echo "${ECHO_T}no" >&6 8507fi 8508 ;; 8509 *) 8510 echo "$as_me:$LINENO: result: no" >&5 8511echo "${ECHO_T}no" >&6 8512 ;; 8513 esac 8514fi 8515 8516if test "x$enable_dlopen" != xyes; then 8517 enable_dlopen=unknown 8518 enable_dlopen_self=unknown 8519 enable_dlopen_self_static=unknown 8520else 8521 lt_cv_dlopen=no 8522 lt_cv_dlopen_libs= 8523 8524 case $host_os in 8525 beos*) 8526 lt_cv_dlopen="load_add_on" 8527 lt_cv_dlopen_libs= 8528 lt_cv_dlopen_self=yes 8529 ;; 8530 8531 mingw* | pw32*) 8532 lt_cv_dlopen="LoadLibrary" 8533 lt_cv_dlopen_libs= 8534 ;; 8535 8536 cygwin*) 8537 lt_cv_dlopen="dlopen" 8538 lt_cv_dlopen_libs= 8539 ;; 8540 8541 darwin*) 8542 # if libdl is installed we need to link against it 8543 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8544echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8545if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8546 echo $ECHO_N "(cached) $ECHO_C" >&6 8547else 8548 ac_check_lib_save_LIBS=$LIBS 8549LIBS="-ldl $LIBS" 8550cat >conftest.$ac_ext <<_ACEOF 8551/* confdefs.h. */ 8552_ACEOF 8553cat confdefs.h >>conftest.$ac_ext 8554cat >>conftest.$ac_ext <<_ACEOF 8555/* end confdefs.h. */ 8556 8557/* Override any gcc2 internal prototype to avoid an error. */ 8558#ifdef __cplusplus 8559extern "C" 8560#endif 8561/* We use char because int might match the return type of a gcc2 8562 builtin and then its argument prototype would still apply. */ 8563char dlopen (); 8564int 8565main () 8566{ 8567dlopen (); 8568 ; 8569 return 0; 8570} 8571_ACEOF 8572rm -f conftest.$ac_objext conftest$ac_exeext 8573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8574 (eval $ac_link) 2>conftest.er1 8575 ac_status=$? 8576 grep -v '^ *+' conftest.er1 >conftest.err 8577 rm -f conftest.er1 8578 cat conftest.err >&5 8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8580 (exit $ac_status); } && 8581 { ac_try='test -z "$ac_c_werror_flag" 8582 || test ! -s conftest.err' 8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8584 (eval $ac_try) 2>&5 8585 ac_status=$? 8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8587 (exit $ac_status); }; } && 8588 { ac_try='test -s conftest$ac_exeext' 8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8590 (eval $ac_try) 2>&5 8591 ac_status=$? 8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8593 (exit $ac_status); }; }; then 8594 ac_cv_lib_dl_dlopen=yes 8595else 8596 echo "$as_me: failed program was:" >&5 8597sed 's/^/| /' conftest.$ac_ext >&5 8598 8599ac_cv_lib_dl_dlopen=no 8600fi 8601rm -f conftest.err conftest.$ac_objext \ 8602 conftest$ac_exeext conftest.$ac_ext 8603LIBS=$ac_check_lib_save_LIBS 8604fi 8605echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8606echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8607if test $ac_cv_lib_dl_dlopen = yes; then 8608 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8609else 8610 8611 lt_cv_dlopen="dyld" 8612 lt_cv_dlopen_libs= 8613 lt_cv_dlopen_self=yes 8614 8615fi 8616 8617 ;; 8618 8619 *) 8620 echo "$as_me:$LINENO: checking for shl_load" >&5 8621echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8622if test "${ac_cv_func_shl_load+set}" = set; then 8623 echo $ECHO_N "(cached) $ECHO_C" >&6 8624else 8625 cat >conftest.$ac_ext <<_ACEOF 8626/* confdefs.h. */ 8627_ACEOF 8628cat confdefs.h >>conftest.$ac_ext 8629cat >>conftest.$ac_ext <<_ACEOF 8630/* end confdefs.h. */ 8631/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8632 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8633#define shl_load innocuous_shl_load 8634 8635/* System header to define __stub macros and hopefully few prototypes, 8636 which can conflict with char shl_load (); below. 8637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8638 <limits.h> exists even on freestanding compilers. */ 8639 8640#ifdef __STDC__ 8641# include <limits.h> 8642#else 8643# include <assert.h> 8644#endif 8645 8646#undef shl_load 8647 8648/* Override any gcc2 internal prototype to avoid an error. */ 8649#ifdef __cplusplus 8650extern "C" 8651{ 8652#endif 8653/* We use char because int might match the return type of a gcc2 8654 builtin and then its argument prototype would still apply. */ 8655char shl_load (); 8656/* The GNU C library defines this for functions which it implements 8657 to always fail with ENOSYS. Some functions are actually named 8658 something starting with __ and the normal name is an alias. */ 8659#if defined (__stub_shl_load) || defined (__stub___shl_load) 8660choke me 8661#else 8662char (*f) () = shl_load; 8663#endif 8664#ifdef __cplusplus 8665} 8666#endif 8667 8668int 8669main () 8670{ 8671return f != shl_load; 8672 ; 8673 return 0; 8674} 8675_ACEOF 8676rm -f conftest.$ac_objext conftest$ac_exeext 8677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8678 (eval $ac_link) 2>conftest.er1 8679 ac_status=$? 8680 grep -v '^ *+' conftest.er1 >conftest.err 8681 rm -f conftest.er1 8682 cat conftest.err >&5 8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8684 (exit $ac_status); } && 8685 { ac_try='test -z "$ac_c_werror_flag" 8686 || test ! -s conftest.err' 8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8688 (eval $ac_try) 2>&5 8689 ac_status=$? 8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8691 (exit $ac_status); }; } && 8692 { ac_try='test -s conftest$ac_exeext' 8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8694 (eval $ac_try) 2>&5 8695 ac_status=$? 8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8697 (exit $ac_status); }; }; then 8698 ac_cv_func_shl_load=yes 8699else 8700 echo "$as_me: failed program was:" >&5 8701sed 's/^/| /' conftest.$ac_ext >&5 8702 8703ac_cv_func_shl_load=no 8704fi 8705rm -f conftest.err conftest.$ac_objext \ 8706 conftest$ac_exeext conftest.$ac_ext 8707fi 8708echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8709echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8710if test $ac_cv_func_shl_load = yes; then 8711 lt_cv_dlopen="shl_load" 8712else 8713 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8714echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8715if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8716 echo $ECHO_N "(cached) $ECHO_C" >&6 8717else 8718 ac_check_lib_save_LIBS=$LIBS 8719LIBS="-ldld $LIBS" 8720cat >conftest.$ac_ext <<_ACEOF 8721/* confdefs.h. */ 8722_ACEOF 8723cat confdefs.h >>conftest.$ac_ext 8724cat >>conftest.$ac_ext <<_ACEOF 8725/* end confdefs.h. */ 8726 8727/* Override any gcc2 internal prototype to avoid an error. */ 8728#ifdef __cplusplus 8729extern "C" 8730#endif 8731/* We use char because int might match the return type of a gcc2 8732 builtin and then its argument prototype would still apply. */ 8733char shl_load (); 8734int 8735main () 8736{ 8737shl_load (); 8738 ; 8739 return 0; 8740} 8741_ACEOF 8742rm -f conftest.$ac_objext conftest$ac_exeext 8743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8744 (eval $ac_link) 2>conftest.er1 8745 ac_status=$? 8746 grep -v '^ *+' conftest.er1 >conftest.err 8747 rm -f conftest.er1 8748 cat conftest.err >&5 8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8750 (exit $ac_status); } && 8751 { ac_try='test -z "$ac_c_werror_flag" 8752 || test ! -s conftest.err' 8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8754 (eval $ac_try) 2>&5 8755 ac_status=$? 8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8757 (exit $ac_status); }; } && 8758 { ac_try='test -s conftest$ac_exeext' 8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8760 (eval $ac_try) 2>&5 8761 ac_status=$? 8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8763 (exit $ac_status); }; }; then 8764 ac_cv_lib_dld_shl_load=yes 8765else 8766 echo "$as_me: failed program was:" >&5 8767sed 's/^/| /' conftest.$ac_ext >&5 8768 8769ac_cv_lib_dld_shl_load=no 8770fi 8771rm -f conftest.err conftest.$ac_objext \ 8772 conftest$ac_exeext conftest.$ac_ext 8773LIBS=$ac_check_lib_save_LIBS 8774fi 8775echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8776echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8777if test $ac_cv_lib_dld_shl_load = yes; then 8778 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8779else 8780 echo "$as_me:$LINENO: checking for dlopen" >&5 8781echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8782if test "${ac_cv_func_dlopen+set}" = set; then 8783 echo $ECHO_N "(cached) $ECHO_C" >&6 8784else 8785 cat >conftest.$ac_ext <<_ACEOF 8786/* confdefs.h. */ 8787_ACEOF 8788cat confdefs.h >>conftest.$ac_ext 8789cat >>conftest.$ac_ext <<_ACEOF 8790/* end confdefs.h. */ 8791/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8792 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8793#define dlopen innocuous_dlopen 8794 8795/* System header to define __stub macros and hopefully few prototypes, 8796 which can conflict with char dlopen (); below. 8797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8798 <limits.h> exists even on freestanding compilers. */ 8799 8800#ifdef __STDC__ 8801# include <limits.h> 8802#else 8803# include <assert.h> 8804#endif 8805 8806#undef dlopen 8807 8808/* Override any gcc2 internal prototype to avoid an error. */ 8809#ifdef __cplusplus 8810extern "C" 8811{ 8812#endif 8813/* We use char because int might match the return type of a gcc2 8814 builtin and then its argument prototype would still apply. */ 8815char dlopen (); 8816/* The GNU C library defines this for functions which it implements 8817 to always fail with ENOSYS. Some functions are actually named 8818 something starting with __ and the normal name is an alias. */ 8819#if defined (__stub_dlopen) || defined (__stub___dlopen) 8820choke me 8821#else 8822char (*f) () = dlopen; 8823#endif 8824#ifdef __cplusplus 8825} 8826#endif 8827 8828int 8829main () 8830{ 8831return f != dlopen; 8832 ; 8833 return 0; 8834} 8835_ACEOF 8836rm -f conftest.$ac_objext conftest$ac_exeext 8837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8838 (eval $ac_link) 2>conftest.er1 8839 ac_status=$? 8840 grep -v '^ *+' conftest.er1 >conftest.err 8841 rm -f conftest.er1 8842 cat conftest.err >&5 8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8844 (exit $ac_status); } && 8845 { ac_try='test -z "$ac_c_werror_flag" 8846 || test ! -s conftest.err' 8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8848 (eval $ac_try) 2>&5 8849 ac_status=$? 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 (exit $ac_status); }; } && 8852 { ac_try='test -s conftest$ac_exeext' 8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8854 (eval $ac_try) 2>&5 8855 ac_status=$? 8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8857 (exit $ac_status); }; }; then 8858 ac_cv_func_dlopen=yes 8859else 8860 echo "$as_me: failed program was:" >&5 8861sed 's/^/| /' conftest.$ac_ext >&5 8862 8863ac_cv_func_dlopen=no 8864fi 8865rm -f conftest.err conftest.$ac_objext \ 8866 conftest$ac_exeext conftest.$ac_ext 8867fi 8868echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8869echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8870if test $ac_cv_func_dlopen = yes; then 8871 lt_cv_dlopen="dlopen" 8872else 8873 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8874echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8875if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8876 echo $ECHO_N "(cached) $ECHO_C" >&6 8877else 8878 ac_check_lib_save_LIBS=$LIBS 8879LIBS="-ldl $LIBS" 8880cat >conftest.$ac_ext <<_ACEOF 8881/* confdefs.h. */ 8882_ACEOF 8883cat confdefs.h >>conftest.$ac_ext 8884cat >>conftest.$ac_ext <<_ACEOF 8885/* end confdefs.h. */ 8886 8887/* Override any gcc2 internal prototype to avoid an error. */ 8888#ifdef __cplusplus 8889extern "C" 8890#endif 8891/* We use char because int might match the return type of a gcc2 8892 builtin and then its argument prototype would still apply. */ 8893char dlopen (); 8894int 8895main () 8896{ 8897dlopen (); 8898 ; 8899 return 0; 8900} 8901_ACEOF 8902rm -f conftest.$ac_objext conftest$ac_exeext 8903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8904 (eval $ac_link) 2>conftest.er1 8905 ac_status=$? 8906 grep -v '^ *+' conftest.er1 >conftest.err 8907 rm -f conftest.er1 8908 cat conftest.err >&5 8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8910 (exit $ac_status); } && 8911 { ac_try='test -z "$ac_c_werror_flag" 8912 || test ! -s conftest.err' 8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8914 (eval $ac_try) 2>&5 8915 ac_status=$? 8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8917 (exit $ac_status); }; } && 8918 { ac_try='test -s conftest$ac_exeext' 8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8920 (eval $ac_try) 2>&5 8921 ac_status=$? 8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8923 (exit $ac_status); }; }; then 8924 ac_cv_lib_dl_dlopen=yes 8925else 8926 echo "$as_me: failed program was:" >&5 8927sed 's/^/| /' conftest.$ac_ext >&5 8928 8929ac_cv_lib_dl_dlopen=no 8930fi 8931rm -f conftest.err conftest.$ac_objext \ 8932 conftest$ac_exeext conftest.$ac_ext 8933LIBS=$ac_check_lib_save_LIBS 8934fi 8935echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8936echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8937if test $ac_cv_lib_dl_dlopen = yes; then 8938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8939else 8940 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8941echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8942if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8943 echo $ECHO_N "(cached) $ECHO_C" >&6 8944else 8945 ac_check_lib_save_LIBS=$LIBS 8946LIBS="-lsvld $LIBS" 8947cat >conftest.$ac_ext <<_ACEOF 8948/* confdefs.h. */ 8949_ACEOF 8950cat confdefs.h >>conftest.$ac_ext 8951cat >>conftest.$ac_ext <<_ACEOF 8952/* end confdefs.h. */ 8953 8954/* Override any gcc2 internal prototype to avoid an error. */ 8955#ifdef __cplusplus 8956extern "C" 8957#endif 8958/* We use char because int might match the return type of a gcc2 8959 builtin and then its argument prototype would still apply. */ 8960char dlopen (); 8961int 8962main () 8963{ 8964dlopen (); 8965 ; 8966 return 0; 8967} 8968_ACEOF 8969rm -f conftest.$ac_objext conftest$ac_exeext 8970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8971 (eval $ac_link) 2>conftest.er1 8972 ac_status=$? 8973 grep -v '^ *+' conftest.er1 >conftest.err 8974 rm -f conftest.er1 8975 cat conftest.err >&5 8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8977 (exit $ac_status); } && 8978 { ac_try='test -z "$ac_c_werror_flag" 8979 || test ! -s conftest.err' 8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8981 (eval $ac_try) 2>&5 8982 ac_status=$? 8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8984 (exit $ac_status); }; } && 8985 { ac_try='test -s conftest$ac_exeext' 8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8987 (eval $ac_try) 2>&5 8988 ac_status=$? 8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8990 (exit $ac_status); }; }; then 8991 ac_cv_lib_svld_dlopen=yes 8992else 8993 echo "$as_me: failed program was:" >&5 8994sed 's/^/| /' conftest.$ac_ext >&5 8995 8996ac_cv_lib_svld_dlopen=no 8997fi 8998rm -f conftest.err conftest.$ac_objext \ 8999 conftest$ac_exeext conftest.$ac_ext 9000LIBS=$ac_check_lib_save_LIBS 9001fi 9002echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9003echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9004if test $ac_cv_lib_svld_dlopen = yes; then 9005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9006else 9007 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9008echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9009if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9010 echo $ECHO_N "(cached) $ECHO_C" >&6 9011else 9012 ac_check_lib_save_LIBS=$LIBS 9013LIBS="-ldld $LIBS" 9014cat >conftest.$ac_ext <<_ACEOF 9015/* confdefs.h. */ 9016_ACEOF 9017cat confdefs.h >>conftest.$ac_ext 9018cat >>conftest.$ac_ext <<_ACEOF 9019/* end confdefs.h. */ 9020 9021/* Override any gcc2 internal prototype to avoid an error. */ 9022#ifdef __cplusplus 9023extern "C" 9024#endif 9025/* We use char because int might match the return type of a gcc2 9026 builtin and then its argument prototype would still apply. */ 9027char dld_link (); 9028int 9029main () 9030{ 9031dld_link (); 9032 ; 9033 return 0; 9034} 9035_ACEOF 9036rm -f conftest.$ac_objext conftest$ac_exeext 9037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9038 (eval $ac_link) 2>conftest.er1 9039 ac_status=$? 9040 grep -v '^ *+' conftest.er1 >conftest.err 9041 rm -f conftest.er1 9042 cat conftest.err >&5 9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 (exit $ac_status); } && 9045 { ac_try='test -z "$ac_c_werror_flag" 9046 || test ! -s conftest.err' 9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9048 (eval $ac_try) 2>&5 9049 ac_status=$? 9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9051 (exit $ac_status); }; } && 9052 { ac_try='test -s conftest$ac_exeext' 9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9054 (eval $ac_try) 2>&5 9055 ac_status=$? 9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9057 (exit $ac_status); }; }; then 9058 ac_cv_lib_dld_dld_link=yes 9059else 9060 echo "$as_me: failed program was:" >&5 9061sed 's/^/| /' conftest.$ac_ext >&5 9062 9063ac_cv_lib_dld_dld_link=no 9064fi 9065rm -f conftest.err conftest.$ac_objext \ 9066 conftest$ac_exeext conftest.$ac_ext 9067LIBS=$ac_check_lib_save_LIBS 9068fi 9069echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9070echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9071if test $ac_cv_lib_dld_dld_link = yes; then 9072 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9073fi 9074 9075 9076fi 9077 9078 9079fi 9080 9081 9082fi 9083 9084 9085fi 9086 9087 9088fi 9089 9090 ;; 9091 esac 9092 9093 if test "x$lt_cv_dlopen" != xno; then 9094 enable_dlopen=yes 9095 else 9096 enable_dlopen=no 9097 fi 9098 9099 case $lt_cv_dlopen in 9100 dlopen) 9101 save_CPPFLAGS="$CPPFLAGS" 9102 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9103 9104 save_LDFLAGS="$LDFLAGS" 9105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9106 9107 save_LIBS="$LIBS" 9108 LIBS="$lt_cv_dlopen_libs $LIBS" 9109 9110 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9111echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9112if test "${lt_cv_dlopen_self+set}" = set; then 9113 echo $ECHO_N "(cached) $ECHO_C" >&6 9114else 9115 if test "$cross_compiling" = yes; then : 9116 lt_cv_dlopen_self=cross 9117else 9118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9119 lt_status=$lt_dlunknown 9120 cat > conftest.$ac_ext <<EOF 9121#line 9121 "configure" 9122#include "confdefs.h" 9123 9124#if HAVE_DLFCN_H 9125#include <dlfcn.h> 9126#endif 9127 9128#include <stdio.h> 9129 9130#ifdef RTLD_GLOBAL 9131# define LT_DLGLOBAL RTLD_GLOBAL 9132#else 9133# ifdef DL_GLOBAL 9134# define LT_DLGLOBAL DL_GLOBAL 9135# else 9136# define LT_DLGLOBAL 0 9137# endif 9138#endif 9139 9140/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9141 find out it does not work in some platform. */ 9142#ifndef LT_DLLAZY_OR_NOW 9143# ifdef RTLD_LAZY 9144# define LT_DLLAZY_OR_NOW RTLD_LAZY 9145# else 9146# ifdef DL_LAZY 9147# define LT_DLLAZY_OR_NOW DL_LAZY 9148# else 9149# ifdef RTLD_NOW 9150# define LT_DLLAZY_OR_NOW RTLD_NOW 9151# else 9152# ifdef DL_NOW 9153# define LT_DLLAZY_OR_NOW DL_NOW 9154# else 9155# define LT_DLLAZY_OR_NOW 0 9156# endif 9157# endif 9158# endif 9159# endif 9160#endif 9161 9162#ifdef __cplusplus 9163extern "C" void exit (int); 9164#endif 9165 9166void fnord() { int i=42;} 9167int main () 9168{ 9169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9170 int status = $lt_dlunknown; 9171 9172 if (self) 9173 { 9174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9175 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9176 /* dlclose (self); */ 9177 } 9178 else 9179 puts (dlerror ()); 9180 9181 exit (status); 9182} 9183EOF 9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9185 (eval $ac_link) 2>&5 9186 ac_status=$? 9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9188 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9189 (./conftest; exit; ) >&5 2>/dev/null 9190 lt_status=$? 9191 case x$lt_status in 9192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9194 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9195 esac 9196 else : 9197 # compilation failed 9198 lt_cv_dlopen_self=no 9199 fi 9200fi 9201rm -fr conftest* 9202 9203 9204fi 9205echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9206echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9207 9208 if test "x$lt_cv_dlopen_self" = xyes; then 9209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9210 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9211echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9212if test "${lt_cv_dlopen_self_static+set}" = set; then 9213 echo $ECHO_N "(cached) $ECHO_C" >&6 9214else 9215 if test "$cross_compiling" = yes; then : 9216 lt_cv_dlopen_self_static=cross 9217else 9218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9219 lt_status=$lt_dlunknown 9220 cat > conftest.$ac_ext <<EOF 9221#line 9221 "configure" 9222#include "confdefs.h" 9223 9224#if HAVE_DLFCN_H 9225#include <dlfcn.h> 9226#endif 9227 9228#include <stdio.h> 9229 9230#ifdef RTLD_GLOBAL 9231# define LT_DLGLOBAL RTLD_GLOBAL 9232#else 9233# ifdef DL_GLOBAL 9234# define LT_DLGLOBAL DL_GLOBAL 9235# else 9236# define LT_DLGLOBAL 0 9237# endif 9238#endif 9239 9240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9241 find out it does not work in some platform. */ 9242#ifndef LT_DLLAZY_OR_NOW 9243# ifdef RTLD_LAZY 9244# define LT_DLLAZY_OR_NOW RTLD_LAZY 9245# else 9246# ifdef DL_LAZY 9247# define LT_DLLAZY_OR_NOW DL_LAZY 9248# else 9249# ifdef RTLD_NOW 9250# define LT_DLLAZY_OR_NOW RTLD_NOW 9251# else 9252# ifdef DL_NOW 9253# define LT_DLLAZY_OR_NOW DL_NOW 9254# else 9255# define LT_DLLAZY_OR_NOW 0 9256# endif 9257# endif 9258# endif 9259# endif 9260#endif 9261 9262#ifdef __cplusplus 9263extern "C" void exit (int); 9264#endif 9265 9266void fnord() { int i=42;} 9267int main () 9268{ 9269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9270 int status = $lt_dlunknown; 9271 9272 if (self) 9273 { 9274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9276 /* dlclose (self); */ 9277 } 9278 else 9279 puts (dlerror ()); 9280 9281 exit (status); 9282} 9283EOF 9284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9285 (eval $ac_link) 2>&5 9286 ac_status=$? 9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9289 (./conftest; exit; ) >&5 2>/dev/null 9290 lt_status=$? 9291 case x$lt_status in 9292 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9293 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9294 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9295 esac 9296 else : 9297 # compilation failed 9298 lt_cv_dlopen_self_static=no 9299 fi 9300fi 9301rm -fr conftest* 9302 9303 9304fi 9305echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9306echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9307 fi 9308 9309 CPPFLAGS="$save_CPPFLAGS" 9310 LDFLAGS="$save_LDFLAGS" 9311 LIBS="$save_LIBS" 9312 ;; 9313 esac 9314 9315 case $lt_cv_dlopen_self in 9316 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9317 *) enable_dlopen_self=unknown ;; 9318 esac 9319 9320 case $lt_cv_dlopen_self_static in 9321 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9322 *) enable_dlopen_self_static=unknown ;; 9323 esac 9324fi 9325 9326 9327# Report which library types will actually be built 9328echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9329echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9330echo "$as_me:$LINENO: result: $can_build_shared" >&5 9331echo "${ECHO_T}$can_build_shared" >&6 9332 9333echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9334echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9335test "$can_build_shared" = "no" && enable_shared=no 9336 9337# On AIX, shared libraries and static libraries use the same namespace, and 9338# are all built from PIC. 9339case $host_os in 9340aix3*) 9341 test "$enable_shared" = yes && enable_static=no 9342 if test -n "$RANLIB"; then 9343 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9344 postinstall_cmds='$RANLIB $lib' 9345 fi 9346 ;; 9347 9348aix4* | aix5*) 9349 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9350 test "$enable_shared" = yes && enable_static=no 9351 fi 9352 ;; 9353esac 9354echo "$as_me:$LINENO: result: $enable_shared" >&5 9355echo "${ECHO_T}$enable_shared" >&6 9356 9357echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9358echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9359# Make sure either enable_shared or enable_static is yes. 9360test "$enable_shared" = yes || enable_static=yes 9361echo "$as_me:$LINENO: result: $enable_static" >&5 9362echo "${ECHO_T}$enable_static" >&6 9363 9364# The else clause should only fire when bootstrapping the 9365# libtool distribution, otherwise you forgot to ship ltmain.sh 9366# with your package, and you will get complaints that there are 9367# no rules to generate ltmain.sh. 9368if test -f "$ltmain"; then 9369 # See if we are running on zsh, and set the options which allow our commands through 9370 # without removal of \ escapes. 9371 if test -n "${ZSH_VERSION+set}" ; then 9372 setopt NO_GLOB_SUBST 9373 fi 9374 # Now quote all the things that may contain metacharacters while being 9375 # careful not to overquote the AC_SUBSTed values. We take copies of the 9376 # variables and quote the copies for generation of the libtool script. 9377 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9378 SED SHELL STRIP \ 9379 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9380 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9381 deplibs_check_method reload_flag reload_cmds need_locks \ 9382 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9383 lt_cv_sys_global_symbol_to_c_name_address \ 9384 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9385 old_postinstall_cmds old_postuninstall_cmds \ 9386 compiler \ 9387 CC \ 9388 LD \ 9389 lt_prog_compiler_wl \ 9390 lt_prog_compiler_pic \ 9391 lt_prog_compiler_static \ 9392 lt_prog_compiler_no_builtin_flag \ 9393 export_dynamic_flag_spec \ 9394 thread_safe_flag_spec \ 9395 whole_archive_flag_spec \ 9396 enable_shared_with_static_runtimes \ 9397 old_archive_cmds \ 9398 old_archive_from_new_cmds \ 9399 predep_objects \ 9400 postdep_objects \ 9401 predeps \ 9402 postdeps \ 9403 compiler_lib_search_path \ 9404 archive_cmds \ 9405 archive_expsym_cmds \ 9406 postinstall_cmds \ 9407 postuninstall_cmds \ 9408 old_archive_from_expsyms_cmds \ 9409 allow_undefined_flag \ 9410 no_undefined_flag \ 9411 export_symbols_cmds \ 9412 hardcode_libdir_flag_spec \ 9413 hardcode_libdir_flag_spec_ld \ 9414 hardcode_libdir_separator \ 9415 hardcode_automatic \ 9416 module_cmds \ 9417 module_expsym_cmds \ 9418 lt_cv_prog_compiler_c_o \ 9419 exclude_expsyms \ 9420 include_expsyms; do 9421 9422 case $var in 9423 old_archive_cmds | \ 9424 old_archive_from_new_cmds | \ 9425 archive_cmds | \ 9426 archive_expsym_cmds | \ 9427 module_cmds | \ 9428 module_expsym_cmds | \ 9429 old_archive_from_expsyms_cmds | \ 9430 export_symbols_cmds | \ 9431 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9432 postinstall_cmds | postuninstall_cmds | \ 9433 old_postinstall_cmds | old_postuninstall_cmds | \ 9434 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9435 # Double-quote double-evaled strings. 9436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9437 ;; 9438 *) 9439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9440 ;; 9441 esac 9442 done 9443 9444 case $lt_echo in 9445 *'\$0 --fallback-echo"') 9446 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9447 ;; 9448 esac 9449 9450cfgfile="${ofile}T" 9451 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9452 $rm -f "$cfgfile" 9453 { echo "$as_me:$LINENO: creating $ofile" >&5 9454echo "$as_me: creating $ofile" >&6;} 9455 9456 cat <<__EOF__ >> "$cfgfile" 9457#! $SHELL 9458 9459# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9460# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9461# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9462# 9463# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9464# Free Software Foundation, Inc. 9465# 9466# This file is part of GNU Libtool: 9467# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9468# 9469# This program is free software; you can redistribute it and/or modify 9470# it under the terms of the GNU General Public License as published by 9471# the Free Software Foundation; either version 2 of the License, or 9472# (at your option) any later version. 9473# 9474# This program is distributed in the hope that it will be useful, but 9475# WITHOUT ANY WARRANTY; without even the implied warranty of 9476# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9477# General Public License for more details. 9478# 9479# You should have received a copy of the GNU General Public License 9480# along with this program; if not, write to the Free Software 9481# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9482# 9483# As a special exception to the GNU General Public License, if you 9484# distribute this file as part of a program that contains a 9485# configuration script generated by Autoconf, you may include it under 9486# the same distribution terms that you use for the rest of that program. 9487 9488# A sed program that does not truncate output. 9489SED=$lt_SED 9490 9491# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9492Xsed="$SED -e 1s/^X//" 9493 9494# The HP-UX ksh and POSIX shell print the target directory to stdout 9495# if CDPATH is set. 9496(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9497 9498# The names of the tagged configurations supported by this script. 9499available_tags= 9500 9501# ### BEGIN LIBTOOL CONFIG 9502 9503# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9504 9505# Shell to use when invoking shell scripts. 9506SHELL=$lt_SHELL 9507 9508# Whether or not to build shared libraries. 9509build_libtool_libs=$enable_shared 9510 9511# Whether or not to build static libraries. 9512build_old_libs=$enable_static 9513 9514# Whether or not to add -lc for building shared libraries. 9515build_libtool_need_lc=$archive_cmds_need_lc 9516 9517# Whether or not to disallow shared libs when runtime libs are static 9518allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9519 9520# Whether or not to optimize for fast installation. 9521fast_install=$enable_fast_install 9522 9523# The host system. 9524host_alias=$host_alias 9525host=$host 9526host_os=$host_os 9527 9528# The build system. 9529build_alias=$build_alias 9530build=$build 9531build_os=$build_os 9532 9533# An echo program that does not interpret backslashes. 9534echo=$lt_echo 9535 9536# The archiver. 9537AR=$lt_AR 9538AR_FLAGS=$lt_AR_FLAGS 9539 9540# A C compiler. 9541LTCC=$lt_LTCC 9542 9543# LTCC compiler flags. 9544LTCFLAGS=$lt_LTCFLAGS 9545 9546# A language-specific compiler. 9547CC=$lt_compiler 9548 9549# Is the compiler the GNU C compiler? 9550with_gcc=$GCC 9551 9552# An ERE matcher. 9553EGREP=$lt_EGREP 9554 9555# The linker used to build libraries. 9556LD=$lt_LD 9557 9558# Whether we need hard or soft links. 9559LN_S=$lt_LN_S 9560 9561# A BSD-compatible nm program. 9562NM=$lt_NM 9563 9564# A symbol stripping program 9565STRIP=$lt_STRIP 9566 9567# Used to examine libraries when file_magic_cmd begins "file" 9568MAGIC_CMD=$MAGIC_CMD 9569 9570# Used on cygwin: DLL creation program. 9571DLLTOOL="$DLLTOOL" 9572 9573# Used on cygwin: object dumper. 9574OBJDUMP="$OBJDUMP" 9575 9576# Used on cygwin: assembler. 9577AS="$AS" 9578 9579# The name of the directory that contains temporary libtool files. 9580objdir=$objdir 9581 9582# How to create reloadable object files. 9583reload_flag=$lt_reload_flag 9584reload_cmds=$lt_reload_cmds 9585 9586# How to pass a linker flag through the compiler. 9587wl=$lt_lt_prog_compiler_wl 9588 9589# Object file suffix (normally "o"). 9590objext="$ac_objext" 9591 9592# Old archive suffix (normally "a"). 9593libext="$libext" 9594 9595# Shared library suffix (normally ".so"). 9596shrext_cmds='$shrext_cmds' 9597 9598# Executable file suffix (normally ""). 9599exeext="$exeext" 9600 9601# Additional compiler flags for building library objects. 9602pic_flag=$lt_lt_prog_compiler_pic 9603pic_mode=$pic_mode 9604 9605# What is the maximum length of a command? 9606max_cmd_len=$lt_cv_sys_max_cmd_len 9607 9608# Does compiler simultaneously support -c and -o options? 9609compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9610 9611# Must we lock files when doing compilation? 9612need_locks=$lt_need_locks 9613 9614# Do we need the lib prefix for modules? 9615need_lib_prefix=$need_lib_prefix 9616 9617# Do we need a version for libraries? 9618need_version=$need_version 9619 9620# Whether dlopen is supported. 9621dlopen_support=$enable_dlopen 9622 9623# Whether dlopen of programs is supported. 9624dlopen_self=$enable_dlopen_self 9625 9626# Whether dlopen of statically linked programs is supported. 9627dlopen_self_static=$enable_dlopen_self_static 9628 9629# Compiler flag to prevent dynamic linking. 9630link_static_flag=$lt_lt_prog_compiler_static 9631 9632# Compiler flag to turn off builtin functions. 9633no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9634 9635# Compiler flag to allow reflexive dlopens. 9636export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9637 9638# Compiler flag to generate shared objects directly from archives. 9639whole_archive_flag_spec=$lt_whole_archive_flag_spec 9640 9641# Compiler flag to generate thread-safe objects. 9642thread_safe_flag_spec=$lt_thread_safe_flag_spec 9643 9644# Library versioning type. 9645version_type=$version_type 9646 9647# Format of library name prefix. 9648libname_spec=$lt_libname_spec 9649 9650# List of archive names. First name is the real one, the rest are links. 9651# The last name is the one that the linker finds with -lNAME. 9652library_names_spec=$lt_library_names_spec 9653 9654# The coded name of the library, if different from the real name. 9655soname_spec=$lt_soname_spec 9656 9657# Commands used to build and install an old-style archive. 9658RANLIB=$lt_RANLIB 9659old_archive_cmds=$lt_old_archive_cmds 9660old_postinstall_cmds=$lt_old_postinstall_cmds 9661old_postuninstall_cmds=$lt_old_postuninstall_cmds 9662 9663# Create an old-style archive from a shared archive. 9664old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9665 9666# Create a temporary old-style archive to link instead of a shared archive. 9667old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9668 9669# Commands used to build and install a shared archive. 9670archive_cmds=$lt_archive_cmds 9671archive_expsym_cmds=$lt_archive_expsym_cmds 9672postinstall_cmds=$lt_postinstall_cmds 9673postuninstall_cmds=$lt_postuninstall_cmds 9674 9675# Commands used to build a loadable module (assumed same as above if empty) 9676module_cmds=$lt_module_cmds 9677module_expsym_cmds=$lt_module_expsym_cmds 9678 9679# Commands to strip libraries. 9680old_striplib=$lt_old_striplib 9681striplib=$lt_striplib 9682 9683# Dependencies to place before the objects being linked to create a 9684# shared library. 9685predep_objects=$lt_predep_objects 9686 9687# Dependencies to place after the objects being linked to create a 9688# shared library. 9689postdep_objects=$lt_postdep_objects 9690 9691# Dependencies to place before the objects being linked to create a 9692# shared library. 9693predeps=$lt_predeps 9694 9695# Dependencies to place after the objects being linked to create a 9696# shared library. 9697postdeps=$lt_postdeps 9698 9699# The library search path used internally by the compiler when linking 9700# a shared library. 9701compiler_lib_search_path=$lt_compiler_lib_search_path 9702 9703# Method to check whether dependent libraries are shared objects. 9704deplibs_check_method=$lt_deplibs_check_method 9705 9706# Command to use when deplibs_check_method == file_magic. 9707file_magic_cmd=$lt_file_magic_cmd 9708 9709# Flag that allows shared libraries with undefined symbols to be built. 9710allow_undefined_flag=$lt_allow_undefined_flag 9711 9712# Flag that forces no undefined symbols. 9713no_undefined_flag=$lt_no_undefined_flag 9714 9715# Commands used to finish a libtool library installation in a directory. 9716finish_cmds=$lt_finish_cmds 9717 9718# Same as above, but a single script fragment to be evaled but not shown. 9719finish_eval=$lt_finish_eval 9720 9721# Take the output of nm and produce a listing of raw symbols and C names. 9722global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9723 9724# Transform the output of nm in a proper C declaration 9725global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9726 9727# Transform the output of nm in a C name address pair 9728global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9729 9730# This is the shared library runtime path variable. 9731runpath_var=$runpath_var 9732 9733# This is the shared library path variable. 9734shlibpath_var=$shlibpath_var 9735 9736# Is shlibpath searched before the hard-coded library search path? 9737shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9738 9739# How to hardcode a shared library path into an executable. 9740hardcode_action=$hardcode_action 9741 9742# Whether we should hardcode library paths into libraries. 9743hardcode_into_libs=$hardcode_into_libs 9744 9745# Flag to hardcode \$libdir into a binary during linking. 9746# This must work even if \$libdir does not exist. 9747hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9748 9749# If ld is used when linking, flag to hardcode \$libdir into 9750# a binary during linking. This must work even if \$libdir does 9751# not exist. 9752hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9753 9754# Whether we need a single -rpath flag with a separated argument. 9755hardcode_libdir_separator=$lt_hardcode_libdir_separator 9756 9757# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9758# resulting binary. 9759hardcode_direct=$hardcode_direct 9760 9761# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9762# resulting binary. 9763hardcode_minus_L=$hardcode_minus_L 9764 9765# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9766# the resulting binary. 9767hardcode_shlibpath_var=$hardcode_shlibpath_var 9768 9769# Set to yes if building a shared library automatically hardcodes DIR into the library 9770# and all subsequent libraries and executables linked against it. 9771hardcode_automatic=$hardcode_automatic 9772 9773# Variables whose values should be saved in libtool wrapper scripts and 9774# restored at relink time. 9775variables_saved_for_relink="$variables_saved_for_relink" 9776 9777# Whether libtool must link a program against all its dependency libraries. 9778link_all_deplibs=$link_all_deplibs 9779 9780# Compile-time system search path for libraries 9781sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9782 9783# Run-time system search path for libraries 9784sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9785 9786# Fix the shell variable \$srcfile for the compiler. 9787fix_srcfile_path="$fix_srcfile_path" 9788 9789# Set to yes if exported symbols are required. 9790always_export_symbols=$always_export_symbols 9791 9792# The commands to list exported symbols. 9793export_symbols_cmds=$lt_export_symbols_cmds 9794 9795# The commands to extract the exported symbol list from a shared archive. 9796extract_expsyms_cmds=$lt_extract_expsyms_cmds 9797 9798# Symbols that should not be listed in the preloaded symbols. 9799exclude_expsyms=$lt_exclude_expsyms 9800 9801# Symbols that must always be exported. 9802include_expsyms=$lt_include_expsyms 9803 9804# ### END LIBTOOL CONFIG 9805 9806__EOF__ 9807 9808 9809 case $host_os in 9810 aix3*) 9811 cat <<\EOF >> "$cfgfile" 9812 9813# AIX sometimes has problems with the GCC collect2 program. For some 9814# reason, if we set the COLLECT_NAMES environment variable, the problems 9815# vanish in a puff of smoke. 9816if test "X${COLLECT_NAMES+set}" != Xset; then 9817 COLLECT_NAMES= 9818 export COLLECT_NAMES 9819fi 9820EOF 9821 ;; 9822 esac 9823 9824 # We use sed instead of cat because bash on DJGPP gets confused if 9825 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9826 # text mode, it properly converts lines to CR/LF. This bash problem 9827 # is reportedly fixed, but why not run on old versions too? 9828 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9829 9830 mv -f "$cfgfile" "$ofile" || \ 9831 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9832 chmod +x "$ofile" 9833 9834else 9835 # If there is no Makefile yet, we rely on a make rule to execute 9836 # `config.status --recheck' to rerun these tests and create the 9837 # libtool script then. 9838 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9839 if test -f "$ltmain_in"; then 9840 test -f Makefile && make "$ltmain" 9841 fi 9842fi 9843 9844 9845ac_ext=c 9846ac_cpp='$CPP $CPPFLAGS' 9847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9849ac_compiler_gnu=$ac_cv_c_compiler_gnu 9850 9851CC="$lt_save_CC" 9852 9853 9854# Check whether --with-tags or --without-tags was given. 9855if test "${with_tags+set}" = set; then 9856 withval="$with_tags" 9857 tagnames="$withval" 9858fi; 9859 9860if test -f "$ltmain" && test -n "$tagnames"; then 9861 if test ! -f "${ofile}"; then 9862 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9863echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9864 fi 9865 9866 if test -z "$LTCC"; then 9867 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9868 if test -z "$LTCC"; then 9869 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9870echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9871 else 9872 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9873echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9874 fi 9875 fi 9876 if test -z "$LTCFLAGS"; then 9877 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9878 fi 9879 9880 # Extract list of available tagged configurations in $ofile. 9881 # Note that this assumes the entire list is on one line. 9882 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9883 9884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9885 for tagname in $tagnames; do 9886 IFS="$lt_save_ifs" 9887 # Check whether tagname contains only valid characters 9888 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9889 "") ;; 9890 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9891echo "$as_me: error: invalid tag name: $tagname" >&2;} 9892 { (exit 1); exit 1; }; } 9893 ;; 9894 esac 9895 9896 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9897 then 9898 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9899echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9900 { (exit 1); exit 1; }; } 9901 fi 9902 9903 # Update the list of available tags. 9904 if test -n "$tagname"; then 9905 echo appending configuration tag \"$tagname\" to $ofile 9906 9907 case $tagname in 9908 CXX) 9909 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9910 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9911 (test "X$CXX" != "Xg++"))) ; then 9912 ac_ext=cc 9913ac_cpp='$CXXCPP $CPPFLAGS' 9914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9917 9918 9919 9920 9921archive_cmds_need_lc_CXX=no 9922allow_undefined_flag_CXX= 9923always_export_symbols_CXX=no 9924archive_expsym_cmds_CXX= 9925export_dynamic_flag_spec_CXX= 9926hardcode_direct_CXX=no 9927hardcode_libdir_flag_spec_CXX= 9928hardcode_libdir_flag_spec_ld_CXX= 9929hardcode_libdir_separator_CXX= 9930hardcode_minus_L_CXX=no 9931hardcode_shlibpath_var_CXX=unsupported 9932hardcode_automatic_CXX=no 9933module_cmds_CXX= 9934module_expsym_cmds_CXX= 9935link_all_deplibs_CXX=unknown 9936old_archive_cmds_CXX=$old_archive_cmds 9937no_undefined_flag_CXX= 9938whole_archive_flag_spec_CXX= 9939enable_shared_with_static_runtimes_CXX=no 9940 9941# Dependencies to place before and after the object being linked: 9942predep_objects_CXX= 9943postdep_objects_CXX= 9944predeps_CXX= 9945postdeps_CXX= 9946compiler_lib_search_path_CXX= 9947 9948# Source file extension for C++ test sources. 9949ac_ext=cpp 9950 9951# Object file extension for compiled C++ test sources. 9952objext=o 9953objext_CXX=$objext 9954 9955# Code to be used in simple compile tests 9956lt_simple_compile_test_code="int some_variable = 0;\n" 9957 9958# Code to be used in simple link tests 9959lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9960 9961# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9962 9963# If no C compiler was specified, use CC. 9964LTCC=${LTCC-"$CC"} 9965 9966# If no C compiler flags were specified, use CFLAGS. 9967LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9968 9969# Allow CC to be a program name with arguments. 9970compiler=$CC 9971 9972 9973# save warnings/boilerplate of simple test code 9974ac_outfile=conftest.$ac_objext 9975printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9977_lt_compiler_boilerplate=`cat conftest.err` 9978$rm conftest* 9979 9980ac_outfile=conftest.$ac_objext 9981printf "$lt_simple_link_test_code" >conftest.$ac_ext 9982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9983_lt_linker_boilerplate=`cat conftest.err` 9984$rm conftest* 9985 9986 9987# Allow CC to be a program name with arguments. 9988lt_save_CC=$CC 9989lt_save_LD=$LD 9990lt_save_GCC=$GCC 9991GCC=$GXX 9992lt_save_with_gnu_ld=$with_gnu_ld 9993lt_save_path_LD=$lt_cv_path_LD 9994if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9995 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9996else 9997 $as_unset lt_cv_prog_gnu_ld 9998fi 9999if test -n "${lt_cv_path_LDCXX+set}"; then 10000 lt_cv_path_LD=$lt_cv_path_LDCXX 10001else 10002 $as_unset lt_cv_path_LD 10003fi 10004test -z "${LDCXX+set}" || LD=$LDCXX 10005CC=${CXX-"c++"} 10006compiler=$CC 10007compiler_CXX=$CC 10008for cc_temp in $compiler""; do 10009 case $cc_temp in 10010 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10011 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10012 \-*) ;; 10013 *) break;; 10014 esac 10015done 10016cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10017 10018 10019# We don't want -fno-exception wen compiling C++ code, so set the 10020# no_builtin_flag separately 10021if test "$GXX" = yes; then 10022 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10023else 10024 lt_prog_compiler_no_builtin_flag_CXX= 10025fi 10026 10027if test "$GXX" = yes; then 10028 # Set up default GNU C++ configuration 10029 10030 10031# Check whether --with-gnu-ld or --without-gnu-ld was given. 10032if test "${with_gnu_ld+set}" = set; then 10033 withval="$with_gnu_ld" 10034 test "$withval" = no || with_gnu_ld=yes 10035else 10036 with_gnu_ld=no 10037fi; 10038ac_prog=ld 10039if test "$GCC" = yes; then 10040 # Check if gcc -print-prog-name=ld gives a path. 10041 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10042echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10043 case $host in 10044 *-*-mingw*) 10045 # gcc leaves a trailing carriage return which upsets mingw 10046 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10047 *) 10048 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10049 esac 10050 case $ac_prog in 10051 # Accept absolute paths. 10052 [\\/]* | ?:[\\/]*) 10053 re_direlt='/[^/][^/]*/\.\./' 10054 # Canonicalize the pathname of ld 10055 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10056 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10057 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10058 done 10059 test -z "$LD" && LD="$ac_prog" 10060 ;; 10061 "") 10062 # If it fails, then pretend we aren't using GCC. 10063 ac_prog=ld 10064 ;; 10065 *) 10066 # If it is relative, then search for the first ld in PATH. 10067 with_gnu_ld=unknown 10068 ;; 10069 esac 10070elif test "$with_gnu_ld" = yes; then 10071 echo "$as_me:$LINENO: checking for GNU ld" >&5 10072echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10073else 10074 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10075echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10076fi 10077if test "${lt_cv_path_LD+set}" = set; then 10078 echo $ECHO_N "(cached) $ECHO_C" >&6 10079else 10080 if test -z "$LD"; then 10081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10082 for ac_dir in $PATH; do 10083 IFS="$lt_save_ifs" 10084 test -z "$ac_dir" && ac_dir=. 10085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10086 lt_cv_path_LD="$ac_dir/$ac_prog" 10087 # Check to see if the program is GNU ld. I'd rather use --version, 10088 # but apparently some variants of GNU ld only accept -v. 10089 # Break only if it was the GNU/non-GNU ld that we prefer. 10090 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10091 *GNU* | *'with BFD'*) 10092 test "$with_gnu_ld" != no && break 10093 ;; 10094 *) 10095 test "$with_gnu_ld" != yes && break 10096 ;; 10097 esac 10098 fi 10099 done 10100 IFS="$lt_save_ifs" 10101else 10102 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10103fi 10104fi 10105 10106LD="$lt_cv_path_LD" 10107if test -n "$LD"; then 10108 echo "$as_me:$LINENO: result: $LD" >&5 10109echo "${ECHO_T}$LD" >&6 10110else 10111 echo "$as_me:$LINENO: result: no" >&5 10112echo "${ECHO_T}no" >&6 10113fi 10114test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10115echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10116 { (exit 1); exit 1; }; } 10117echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10118echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10119if test "${lt_cv_prog_gnu_ld+set}" = set; then 10120 echo $ECHO_N "(cached) $ECHO_C" >&6 10121else 10122 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10123case `$LD -v 2>&1 </dev/null` in 10124*GNU* | *'with BFD'*) 10125 lt_cv_prog_gnu_ld=yes 10126 ;; 10127*) 10128 lt_cv_prog_gnu_ld=no 10129 ;; 10130esac 10131fi 10132echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10133echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10134with_gnu_ld=$lt_cv_prog_gnu_ld 10135 10136 10137 10138 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10139 # archiving commands below assume that GNU ld is being used. 10140 if test "$with_gnu_ld" = yes; then 10141 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10142 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' 10143 10144 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10145 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10146 10147 # If archive_cmds runs LD, not CC, wlarc should be empty 10148 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10149 # investigate it a little bit more. (MM) 10150 wlarc='${wl}' 10151 10152 # ancient GNU ld didn't support --whole-archive et. al. 10153 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10154 grep 'no-whole-archive' > /dev/null; then 10155 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10156 else 10157 whole_archive_flag_spec_CXX= 10158 fi 10159 else 10160 with_gnu_ld=no 10161 wlarc= 10162 10163 # A generic and very simple default shared library creation 10164 # command for GNU C++ for the case where it uses the native 10165 # linker, instead of GNU ld. If possible, this setting should 10166 # overridden to take advantage of the native linker features on 10167 # the platform it is being used on. 10168 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10169 fi 10170 10171 # Commands to make compiler produce verbose output that lists 10172 # what "hidden" libraries, object files and flags are used when 10173 # linking a shared library. 10174 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10175 10176else 10177 GXX=no 10178 with_gnu_ld=no 10179 wlarc= 10180fi 10181 10182# PORTME: fill in a description of your system's C++ link characteristics 10183echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10184echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10185ld_shlibs_CXX=yes 10186case $host_os in 10187 aix3*) 10188 # FIXME: insert proper C++ library support 10189 ld_shlibs_CXX=no 10190 ;; 10191 aix4* | aix5*) 10192 if test "$host_cpu" = ia64; then 10193 # On IA64, the linker does run time linking by default, so we don't 10194 # have to do anything special. 10195 aix_use_runtimelinking=no 10196 exp_sym_flag='-Bexport' 10197 no_entry_flag="" 10198 else 10199 aix_use_runtimelinking=no 10200 10201 # Test if we are trying to use run time linking or normal 10202 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10203 # need to do runtime linking. 10204 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10205 for ld_flag in $LDFLAGS; do 10206 case $ld_flag in 10207 *-brtl*) 10208 aix_use_runtimelinking=yes 10209 break 10210 ;; 10211 esac 10212 done 10213 ;; 10214 esac 10215 10216 exp_sym_flag='-bexport' 10217 no_entry_flag='-bnoentry' 10218 fi 10219 10220 # When large executables or shared objects are built, AIX ld can 10221 # have problems creating the table of contents. If linking a library 10222 # or program results in "error TOC overflow" add -mminimal-toc to 10223 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10224 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10225 10226 archive_cmds_CXX='' 10227 hardcode_direct_CXX=yes 10228 hardcode_libdir_separator_CXX=':' 10229 link_all_deplibs_CXX=yes 10230 10231 if test "$GXX" = yes; then 10232 case $host_os in aix4.[012]|aix4.[012].*) 10233 # We only want to do this on AIX 4.2 and lower, the check 10234 # below for broken collect2 doesn't work under 4.3+ 10235 collect2name=`${CC} -print-prog-name=collect2` 10236 if test -f "$collect2name" && \ 10237 strings "$collect2name" | grep resolve_lib_name >/dev/null 10238 then 10239 # We have reworked collect2 10240 hardcode_direct_CXX=yes 10241 else 10242 # We have old collect2 10243 hardcode_direct_CXX=unsupported 10244 # It fails to find uninstalled libraries when the uninstalled 10245 # path is not listed in the libpath. Setting hardcode_minus_L 10246 # to unsupported forces relinking 10247 hardcode_minus_L_CXX=yes 10248 hardcode_libdir_flag_spec_CXX='-L$libdir' 10249 hardcode_libdir_separator_CXX= 10250 fi 10251 ;; 10252 esac 10253 shared_flag='-shared' 10254 if test "$aix_use_runtimelinking" = yes; then 10255 shared_flag="$shared_flag "'${wl}-G' 10256 fi 10257 else 10258 # not using gcc 10259 if test "$host_cpu" = ia64; then 10260 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10261 # chokes on -Wl,-G. The following line is correct: 10262 shared_flag='-G' 10263 else 10264 if test "$aix_use_runtimelinking" = yes; then 10265 shared_flag='${wl}-G' 10266 else 10267 shared_flag='${wl}-bM:SRE' 10268 fi 10269 fi 10270 fi 10271 10272 # It seems that -bexpall does not export symbols beginning with 10273 # underscore (_), so it is better to generate a list of symbols to export. 10274 always_export_symbols_CXX=yes 10275 if test "$aix_use_runtimelinking" = yes; then 10276 # Warning - without using the other runtime loading flags (-brtl), 10277 # -berok will link without error, but may produce a broken library. 10278 allow_undefined_flag_CXX='-berok' 10279 # Determine the default libpath from the value encoded in an empty executable. 10280 cat >conftest.$ac_ext <<_ACEOF 10281/* confdefs.h. */ 10282_ACEOF 10283cat confdefs.h >>conftest.$ac_ext 10284cat >>conftest.$ac_ext <<_ACEOF 10285/* end confdefs.h. */ 10286 10287int 10288main () 10289{ 10290 10291 ; 10292 return 0; 10293} 10294_ACEOF 10295rm -f conftest.$ac_objext conftest$ac_exeext 10296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10297 (eval $ac_link) 2>conftest.er1 10298 ac_status=$? 10299 grep -v '^ *+' conftest.er1 >conftest.err 10300 rm -f conftest.er1 10301 cat conftest.err >&5 10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10303 (exit $ac_status); } && 10304 { ac_try='test -z "$ac_cxx_werror_flag" 10305 || test ! -s conftest.err' 10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10307 (eval $ac_try) 2>&5 10308 ac_status=$? 10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10310 (exit $ac_status); }; } && 10311 { ac_try='test -s conftest$ac_exeext' 10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10313 (eval $ac_try) 2>&5 10314 ac_status=$? 10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10316 (exit $ac_status); }; }; then 10317 10318aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10319}'` 10320# Check for a 64-bit object if we didn't find anything. 10321if 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; } 10322}'`; fi 10323else 10324 echo "$as_me: failed program was:" >&5 10325sed 's/^/| /' conftest.$ac_ext >&5 10326 10327fi 10328rm -f conftest.err conftest.$ac_objext \ 10329 conftest$ac_exeext conftest.$ac_ext 10330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10331 10332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10333 10334 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10335 else 10336 if test "$host_cpu" = ia64; then 10337 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10338 allow_undefined_flag_CXX="-z nodefs" 10339 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10340 else 10341 # Determine the default libpath from the value encoded in an empty executable. 10342 cat >conftest.$ac_ext <<_ACEOF 10343/* confdefs.h. */ 10344_ACEOF 10345cat confdefs.h >>conftest.$ac_ext 10346cat >>conftest.$ac_ext <<_ACEOF 10347/* end confdefs.h. */ 10348 10349int 10350main () 10351{ 10352 10353 ; 10354 return 0; 10355} 10356_ACEOF 10357rm -f conftest.$ac_objext conftest$ac_exeext 10358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10359 (eval $ac_link) 2>conftest.er1 10360 ac_status=$? 10361 grep -v '^ *+' conftest.er1 >conftest.err 10362 rm -f conftest.er1 10363 cat conftest.err >&5 10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10365 (exit $ac_status); } && 10366 { ac_try='test -z "$ac_cxx_werror_flag" 10367 || test ! -s conftest.err' 10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10369 (eval $ac_try) 2>&5 10370 ac_status=$? 10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10372 (exit $ac_status); }; } && 10373 { ac_try='test -s conftest$ac_exeext' 10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10375 (eval $ac_try) 2>&5 10376 ac_status=$? 10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10378 (exit $ac_status); }; }; then 10379 10380aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10381}'` 10382# Check for a 64-bit object if we didn't find anything. 10383if 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; } 10384}'`; fi 10385else 10386 echo "$as_me: failed program was:" >&5 10387sed 's/^/| /' conftest.$ac_ext >&5 10388 10389fi 10390rm -f conftest.err conftest.$ac_objext \ 10391 conftest$ac_exeext conftest.$ac_ext 10392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10393 10394 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10395 # Warning - without using the other run time loading flags, 10396 # -berok will link without error, but may produce a broken library. 10397 no_undefined_flag_CXX=' ${wl}-bernotok' 10398 allow_undefined_flag_CXX=' ${wl}-berok' 10399 # Exported symbols can be pulled into shared objects from archives 10400 whole_archive_flag_spec_CXX='$convenience' 10401 archive_cmds_need_lc_CXX=yes 10402 # This is similar to how AIX traditionally builds its shared libraries. 10403 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10404 fi 10405 fi 10406 ;; 10407 10408 beos*) 10409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10410 allow_undefined_flag_CXX=unsupported 10411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10412 # support --undefined. This deserves some investigation. FIXME 10413 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10414 else 10415 ld_shlibs_CXX=no 10416 fi 10417 ;; 10418 10419 chorus*) 10420 case $cc_basename in 10421 *) 10422 # FIXME: insert proper C++ library support 10423 ld_shlibs_CXX=no 10424 ;; 10425 esac 10426 ;; 10427 10428 cygwin* | mingw* | pw32*) 10429 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10430 # as there is no search path for DLLs. 10431 hardcode_libdir_flag_spec_CXX='-L$libdir' 10432 allow_undefined_flag_CXX=unsupported 10433 always_export_symbols_CXX=no 10434 enable_shared_with_static_runtimes_CXX=yes 10435 10436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10437 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10438 # If the export-symbols file already is a .def file (1st line 10439 # is EXPORTS), use it as is; otherwise, prepend... 10440 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10441 cp $export_symbols $output_objdir/$soname.def; 10442 else 10443 echo EXPORTS > $output_objdir/$soname.def; 10444 cat $export_symbols >> $output_objdir/$soname.def; 10445 fi~ 10446 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10447 else 10448 ld_shlibs_CXX=no 10449 fi 10450 ;; 10451 darwin* | rhapsody*) 10452 case $host_os in 10453 rhapsody* | darwin1.[012]) 10454 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10455 ;; 10456 *) # Darwin 1.3 on 10457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10458 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10459 else 10460 case ${MACOSX_DEPLOYMENT_TARGET} in 10461 10.[012]) 10462 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10463 ;; 10464 10.*) 10465 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10466 ;; 10467 esac 10468 fi 10469 ;; 10470 esac 10471 archive_cmds_need_lc_CXX=no 10472 hardcode_direct_CXX=no 10473 hardcode_automatic_CXX=yes 10474 hardcode_shlibpath_var_CXX=unsupported 10475 whole_archive_flag_spec_CXX='' 10476 link_all_deplibs_CXX=yes 10477 10478 if test "$GXX" = yes ; then 10479 lt_int_apple_cc_single_mod=no 10480 output_verbose_link_cmd='echo' 10481 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10482 lt_int_apple_cc_single_mod=yes 10483 fi 10484 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10485 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10486 else 10487 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' 10488 fi 10489 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10491 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10492 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}' 10493 else 10494 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}' 10495 fi 10496 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}' 10497 else 10498 case $cc_basename in 10499 xlc*) 10500 output_verbose_link_cmd='echo' 10501 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' 10502 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10503 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10504 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}' 10505 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}' 10506 ;; 10507 *) 10508 ld_shlibs_CXX=no 10509 ;; 10510 esac 10511 fi 10512 ;; 10513 10514 dgux*) 10515 case $cc_basename in 10516 ec++*) 10517 # FIXME: insert proper C++ library support 10518 ld_shlibs_CXX=no 10519 ;; 10520 ghcx*) 10521 # Green Hills C++ Compiler 10522 # FIXME: insert proper C++ library support 10523 ld_shlibs_CXX=no 10524 ;; 10525 *) 10526 # FIXME: insert proper C++ library support 10527 ld_shlibs_CXX=no 10528 ;; 10529 esac 10530 ;; 10531 freebsd[12]*) 10532 # C++ shared libraries reported to be fairly broken before switch to ELF 10533 ld_shlibs_CXX=no 10534 ;; 10535 freebsd-elf*) 10536 archive_cmds_need_lc_CXX=no 10537 ;; 10538 freebsd* | kfreebsd*-gnu | dragonfly*) 10539 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10540 # conventions 10541 ld_shlibs_CXX=yes 10542 ;; 10543 gnu*) 10544 ;; 10545 hpux9*) 10546 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10547 hardcode_libdir_separator_CXX=: 10548 export_dynamic_flag_spec_CXX='${wl}-E' 10549 hardcode_direct_CXX=yes 10550 hardcode_minus_L_CXX=yes # Not in the search PATH, 10551 # but as the default 10552 # location of the library. 10553 10554 case $cc_basename in 10555 CC*) 10556 # FIXME: insert proper C++ library support 10557 ld_shlibs_CXX=no 10558 ;; 10559 aCC*) 10560 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' 10561 # Commands to make compiler produce verbose output that lists 10562 # what "hidden" libraries, object files and flags are used when 10563 # linking a shared library. 10564 # 10565 # There doesn't appear to be a way to prevent this compiler from 10566 # explicitly linking system object files so we need to strip them 10567 # from the output so that they don't get included in the library 10568 # dependencies. 10569 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' 10570 ;; 10571 *) 10572 if test "$GXX" = yes; then 10573 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' 10574 else 10575 # FIXME: insert proper C++ library support 10576 ld_shlibs_CXX=no 10577 fi 10578 ;; 10579 esac 10580 ;; 10581 hpux10*|hpux11*) 10582 if test $with_gnu_ld = no; then 10583 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10584 hardcode_libdir_separator_CXX=: 10585 10586 case $host_cpu in 10587 hppa*64*|ia64*) 10588 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10589 ;; 10590 *) 10591 export_dynamic_flag_spec_CXX='${wl}-E' 10592 ;; 10593 esac 10594 fi 10595 case $host_cpu in 10596 hppa*64*|ia64*) 10597 hardcode_direct_CXX=no 10598 hardcode_shlibpath_var_CXX=no 10599 ;; 10600 *) 10601 hardcode_direct_CXX=yes 10602 hardcode_minus_L_CXX=yes # Not in the search PATH, 10603 # but as the default 10604 # location of the library. 10605 ;; 10606 esac 10607 10608 case $cc_basename in 10609 CC*) 10610 # FIXME: insert proper C++ library support 10611 ld_shlibs_CXX=no 10612 ;; 10613 aCC*) 10614 case $host_cpu in 10615 hppa*64*) 10616 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10617 ;; 10618 ia64*) 10619 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10620 ;; 10621 *) 10622 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10623 ;; 10624 esac 10625 # Commands to make compiler produce verbose output that lists 10626 # what "hidden" libraries, object files and flags are used when 10627 # linking a shared library. 10628 # 10629 # There doesn't appear to be a way to prevent this compiler from 10630 # explicitly linking system object files so we need to strip them 10631 # from the output so that they don't get included in the library 10632 # dependencies. 10633 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' 10634 ;; 10635 *) 10636 if test "$GXX" = yes; then 10637 if test $with_gnu_ld = no; then 10638 case $host_cpu in 10639 hppa*64*) 10640 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10641 ;; 10642 ia64*) 10643 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10644 ;; 10645 *) 10646 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' 10647 ;; 10648 esac 10649 fi 10650 else 10651 # FIXME: insert proper C++ library support 10652 ld_shlibs_CXX=no 10653 fi 10654 ;; 10655 esac 10656 ;; 10657 interix3*) 10658 hardcode_direct_CXX=no 10659 hardcode_shlibpath_var_CXX=no 10660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10661 export_dynamic_flag_spec_CXX='${wl}-E' 10662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10663 # Instead, shared libraries are loaded at an image base (0x10000000 by 10664 # default) and relocated if they conflict, which is a slow very memory 10665 # consuming and fragmenting process. To avoid this, we pick a random, 10666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10667 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10668 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10669 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10670 ;; 10671 irix5* | irix6*) 10672 case $cc_basename in 10673 CC*) 10674 # SGI C++ 10675 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' 10676 10677 # Archives containing C++ object files must be created using 10678 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10679 # necessary to make sure instantiated templates are included 10680 # in the archive. 10681 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10682 ;; 10683 *) 10684 if test "$GXX" = yes; then 10685 if test "$with_gnu_ld" = no; then 10686 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' 10687 else 10688 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' 10689 fi 10690 fi 10691 link_all_deplibs_CXX=yes 10692 ;; 10693 esac 10694 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10695 hardcode_libdir_separator_CXX=: 10696 ;; 10697 linux*) 10698 case $cc_basename in 10699 KCC*) 10700 # Kuck and Associates, Inc. (KAI) C++ Compiler 10701 10702 # KCC will only create a shared library if the output file 10703 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10704 # to its proper name (with version) after linking. 10705 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' 10706 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' 10707 # Commands to make compiler produce verbose output that lists 10708 # what "hidden" libraries, object files and flags are used when 10709 # linking a shared library. 10710 # 10711 # There doesn't appear to be a way to prevent this compiler from 10712 # explicitly linking system object files so we need to strip them 10713 # from the output so that they don't get included in the library 10714 # dependencies. 10715 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' 10716 10717 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10719 10720 # Archives containing C++ object files must be created using 10721 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10722 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10723 ;; 10724 icpc*) 10725 # Intel C++ 10726 with_gnu_ld=yes 10727 # version 8.0 and above of icpc choke on multiply defined symbols 10728 # if we add $predep_objects and $postdep_objects, however 7.1 and 10729 # earlier do not add the objects themselves. 10730 case `$CC -V 2>&1` in 10731 *"Version 7."*) 10732 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10733 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' 10734 ;; 10735 *) # Version 8.0 or newer 10736 tmp_idyn= 10737 case $host_cpu in 10738 ia64*) tmp_idyn=' -i_dynamic';; 10739 esac 10740 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10741 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' 10742 ;; 10743 esac 10744 archive_cmds_need_lc_CXX=no 10745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10747 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10748 ;; 10749 pgCC*) 10750 # Portland Group C++ compiler 10751 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10752 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' 10753 10754 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10756 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' 10757 ;; 10758 cxx*) 10759 # Compaq C++ 10760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10761 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' 10762 10763 runpath_var=LD_RUN_PATH 10764 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10765 hardcode_libdir_separator_CXX=: 10766 10767 # Commands to make compiler produce verbose output that lists 10768 # what "hidden" libraries, object files and flags are used when 10769 # linking a shared library. 10770 # 10771 # There doesn't appear to be a way to prevent this compiler from 10772 # explicitly linking system object files so we need to strip them 10773 # from the output so that they don't get included in the library 10774 # dependencies. 10775 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' 10776 ;; 10777 esac 10778 ;; 10779 lynxos*) 10780 # FIXME: insert proper C++ library support 10781 ld_shlibs_CXX=no 10782 ;; 10783 m88k*) 10784 # FIXME: insert proper C++ library support 10785 ld_shlibs_CXX=no 10786 ;; 10787 mvs*) 10788 case $cc_basename in 10789 cxx*) 10790 # FIXME: insert proper C++ library support 10791 ld_shlibs_CXX=no 10792 ;; 10793 *) 10794 # FIXME: insert proper C++ library support 10795 ld_shlibs_CXX=no 10796 ;; 10797 esac 10798 ;; 10799 netbsd*) 10800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10801 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10802 wlarc= 10803 hardcode_libdir_flag_spec_CXX='-R$libdir' 10804 hardcode_direct_CXX=yes 10805 hardcode_shlibpath_var_CXX=no 10806 fi 10807 # Workaround some broken pre-1.5 toolchains 10808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10809 ;; 10810 openbsd2*) 10811 # C++ shared libraries are fairly broken 10812 ld_shlibs_CXX=no 10813 ;; 10814 openbsd*) 10815 hardcode_direct_CXX=yes 10816 hardcode_shlibpath_var_CXX=no 10817 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10819 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10820 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10821 export_dynamic_flag_spec_CXX='${wl}-E' 10822 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10823 fi 10824 output_verbose_link_cmd='echo' 10825 ;; 10826 osf3*) 10827 case $cc_basename in 10828 KCC*) 10829 # Kuck and Associates, Inc. (KAI) C++ Compiler 10830 10831 # KCC will only create a shared library if the output file 10832 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10833 # to its proper name (with version) after linking. 10834 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' 10835 10836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10837 hardcode_libdir_separator_CXX=: 10838 10839 # Archives containing C++ object files must be created using 10840 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10841 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10842 10843 ;; 10844 RCC*) 10845 # Rational C++ 2.4.1 10846 # FIXME: insert proper C++ library support 10847 ld_shlibs_CXX=no 10848 ;; 10849 cxx*) 10850 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10851 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' 10852 10853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10854 hardcode_libdir_separator_CXX=: 10855 10856 # Commands to make compiler produce verbose output that lists 10857 # what "hidden" libraries, object files and flags are used when 10858 # linking a shared library. 10859 # 10860 # There doesn't appear to be a way to prevent this compiler from 10861 # explicitly linking system object files so we need to strip them 10862 # from the output so that they don't get included in the library 10863 # dependencies. 10864 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' 10865 ;; 10866 *) 10867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10869 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' 10870 10871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10872 hardcode_libdir_separator_CXX=: 10873 10874 # Commands to make compiler produce verbose output that lists 10875 # what "hidden" libraries, object files and flags are used when 10876 # linking a shared library. 10877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10878 10879 else 10880 # FIXME: insert proper C++ library support 10881 ld_shlibs_CXX=no 10882 fi 10883 ;; 10884 esac 10885 ;; 10886 osf4* | osf5*) 10887 case $cc_basename in 10888 KCC*) 10889 # Kuck and Associates, Inc. (KAI) C++ Compiler 10890 10891 # KCC will only create a shared library if the output file 10892 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10893 # to its proper name (with version) after linking. 10894 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' 10895 10896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10897 hardcode_libdir_separator_CXX=: 10898 10899 # Archives containing C++ object files must be created using 10900 # the KAI C++ compiler. 10901 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10902 ;; 10903 RCC*) 10904 # Rational C++ 2.4.1 10905 # FIXME: insert proper C++ library support 10906 ld_shlibs_CXX=no 10907 ;; 10908 cxx*) 10909 allow_undefined_flag_CXX=' -expect_unresolved \*' 10910 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' 10911 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10912 echo "-hidden">> $lib.exp~ 10913 $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~ 10914 $rm $lib.exp' 10915 10916 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10917 hardcode_libdir_separator_CXX=: 10918 10919 # Commands to make compiler produce verbose output that lists 10920 # what "hidden" libraries, object files and flags are used when 10921 # linking a shared library. 10922 # 10923 # There doesn't appear to be a way to prevent this compiler from 10924 # explicitly linking system object files so we need to strip them 10925 # from the output so that they don't get included in the library 10926 # dependencies. 10927 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' 10928 ;; 10929 *) 10930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10932 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' 10933 10934 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10935 hardcode_libdir_separator_CXX=: 10936 10937 # Commands to make compiler produce verbose output that lists 10938 # what "hidden" libraries, object files and flags are used when 10939 # linking a shared library. 10940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10941 10942 else 10943 # FIXME: insert proper C++ library support 10944 ld_shlibs_CXX=no 10945 fi 10946 ;; 10947 esac 10948 ;; 10949 psos*) 10950 # FIXME: insert proper C++ library support 10951 ld_shlibs_CXX=no 10952 ;; 10953 sunos4*) 10954 case $cc_basename in 10955 CC*) 10956 # Sun C++ 4.x 10957 # FIXME: insert proper C++ library support 10958 ld_shlibs_CXX=no 10959 ;; 10960 lcc*) 10961 # Lucid 10962 # FIXME: insert proper C++ library support 10963 ld_shlibs_CXX=no 10964 ;; 10965 *) 10966 # FIXME: insert proper C++ library support 10967 ld_shlibs_CXX=no 10968 ;; 10969 esac 10970 ;; 10971 solaris*) 10972 case $cc_basename in 10973 CC*) 10974 # Sun C++ 4.2, 5.x and Centerline C++ 10975 archive_cmds_need_lc_CXX=yes 10976 no_undefined_flag_CXX=' -zdefs' 10977 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10978 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10979 $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' 10980 10981 hardcode_libdir_flag_spec_CXX='-R$libdir' 10982 hardcode_shlibpath_var_CXX=no 10983 case $host_os in 10984 solaris2.[0-5] | solaris2.[0-5].*) ;; 10985 *) 10986 # The C++ compiler is used as linker so we must use $wl 10987 # flag to pass the commands to the underlying system 10988 # linker. We must also pass each convience library through 10989 # to the system linker between allextract/defaultextract. 10990 # The C++ compiler will combine linker options so we 10991 # cannot just pass the convience library names through 10992 # without $wl. 10993 # Supported since Solaris 2.6 (maybe 2.5.1?) 10994 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' 10995 ;; 10996 esac 10997 link_all_deplibs_CXX=yes 10998 10999 output_verbose_link_cmd='echo' 11000 11001 # Archives containing C++ object files must be created using 11002 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11003 # necessary to make sure instantiated templates are included 11004 # in the archive. 11005 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11006 ;; 11007 gcx*) 11008 # Green Hills C++ Compiler 11009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11010 11011 # The C++ compiler must be used to create the archive. 11012 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11013 ;; 11014 *) 11015 # GNU C++ compiler with Solaris linker 11016 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11017 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11018 if $CC --version | grep -v '^2\.7' > /dev/null; then 11019 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11020 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11021 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11022 11023 # Commands to make compiler produce verbose output that lists 11024 # what "hidden" libraries, object files and flags are used when 11025 # linking a shared library. 11026 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11027 else 11028 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11029 # platform. 11030 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11031 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11032 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11033 11034 # Commands to make compiler produce verbose output that lists 11035 # what "hidden" libraries, object files and flags are used when 11036 # linking a shared library. 11037 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11038 fi 11039 11040 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11041 fi 11042 ;; 11043 esac 11044 ;; 11045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11046 no_undefined_flag_CXX='${wl}-z,text' 11047 archive_cmds_need_lc_CXX=no 11048 hardcode_shlibpath_var_CXX=no 11049 runpath_var='LD_RUN_PATH' 11050 11051 case $cc_basename in 11052 CC*) 11053 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11054 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11055 ;; 11056 *) 11057 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11058 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11059 ;; 11060 esac 11061 ;; 11062 sysv5* | sco3.2v5* | sco5v6*) 11063 # Note: We can NOT use -z defs as we might desire, because we do not 11064 # link with -lc, and that would cause any symbols used from libc to 11065 # always be unresolved, which means just about no library would 11066 # ever link correctly. If we're not using GNU ld we use -z text 11067 # though, which does catch some bad symbols but isn't as heavy-handed 11068 # as -z defs. 11069 # For security reasons, it is highly recommended that you always 11070 # use absolute paths for naming shared libraries, and exclude the 11071 # DT_RUNPATH tag from executables and libraries. But doing so 11072 # requires that you compile everything twice, which is a pain. 11073 # So that behaviour is only enabled if SCOABSPATH is set to a 11074 # non-empty value in the environment. Most likely only useful for 11075 # creating official distributions of packages. 11076 # This is a hack until libtool officially supports absolute path 11077 # names for shared libraries. 11078 no_undefined_flag_CXX='${wl}-z,text' 11079 allow_undefined_flag_CXX='${wl}-z,nodefs' 11080 archive_cmds_need_lc_CXX=no 11081 hardcode_shlibpath_var_CXX=no 11082 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11083 hardcode_libdir_separator_CXX=':' 11084 link_all_deplibs_CXX=yes 11085 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11086 runpath_var='LD_RUN_PATH' 11087 11088 case $cc_basename in 11089 CC*) 11090 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11091 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11092 ;; 11093 *) 11094 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11095 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11096 ;; 11097 esac 11098 ;; 11099 tandem*) 11100 case $cc_basename in 11101 NCC*) 11102 # NonStop-UX NCC 3.20 11103 # FIXME: insert proper C++ library support 11104 ld_shlibs_CXX=no 11105 ;; 11106 *) 11107 # FIXME: insert proper C++ library support 11108 ld_shlibs_CXX=no 11109 ;; 11110 esac 11111 ;; 11112 vxworks*) 11113 # FIXME: insert proper C++ library support 11114 ld_shlibs_CXX=no 11115 ;; 11116 *) 11117 # FIXME: insert proper C++ library support 11118 ld_shlibs_CXX=no 11119 ;; 11120esac 11121echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11122echo "${ECHO_T}$ld_shlibs_CXX" >&6 11123test "$ld_shlibs_CXX" = no && can_build_shared=no 11124 11125GCC_CXX="$GXX" 11126LD_CXX="$LD" 11127 11128 11129cat > conftest.$ac_ext <<EOF 11130class Foo 11131{ 11132public: 11133 Foo (void) { a = 0; } 11134private: 11135 int a; 11136}; 11137EOF 11138 11139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11140 (eval $ac_compile) 2>&5 11141 ac_status=$? 11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11143 (exit $ac_status); }; then 11144 # Parse the compiler output and extract the necessary 11145 # objects, libraries and library flags. 11146 11147 # Sentinel used to keep track of whether or not we are before 11148 # the conftest object file. 11149 pre_test_object_deps_done=no 11150 11151 # The `*' in the case matches for architectures that use `case' in 11152 # $output_verbose_cmd can trigger glob expansion during the loop 11153 # eval without this substitution. 11154 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11155 11156 for p in `eval $output_verbose_link_cmd`; do 11157 case $p in 11158 11159 -L* | -R* | -l*) 11160 # Some compilers place space between "-{L,R}" and the path. 11161 # Remove the space. 11162 if test $p = "-L" \ 11163 || test $p = "-R"; then 11164 prev=$p 11165 continue 11166 else 11167 prev= 11168 fi 11169 11170 if test "$pre_test_object_deps_done" = no; then 11171 case $p in 11172 -L* | -R*) 11173 # Internal compiler library paths should come after those 11174 # provided the user. The postdeps already come after the 11175 # user supplied libs so there is no need to process them. 11176 if test -z "$compiler_lib_search_path_CXX"; then 11177 compiler_lib_search_path_CXX="${prev}${p}" 11178 else 11179 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11180 fi 11181 ;; 11182 # The "-l" case would never come before the object being 11183 # linked, so don't bother handling this case. 11184 esac 11185 else 11186 if test -z "$postdeps_CXX"; then 11187 postdeps_CXX="${prev}${p}" 11188 else 11189 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11190 fi 11191 fi 11192 ;; 11193 11194 *.$objext) 11195 # This assumes that the test object file only shows up 11196 # once in the compiler output. 11197 if test "$p" = "conftest.$objext"; then 11198 pre_test_object_deps_done=yes 11199 continue 11200 fi 11201 11202 if test "$pre_test_object_deps_done" = no; then 11203 if test -z "$predep_objects_CXX"; then 11204 predep_objects_CXX="$p" 11205 else 11206 predep_objects_CXX="$predep_objects_CXX $p" 11207 fi 11208 else 11209 if test -z "$postdep_objects_CXX"; then 11210 postdep_objects_CXX="$p" 11211 else 11212 postdep_objects_CXX="$postdep_objects_CXX $p" 11213 fi 11214 fi 11215 ;; 11216 11217 *) ;; # Ignore the rest. 11218 11219 esac 11220 done 11221 11222 # Clean up. 11223 rm -f a.out a.exe 11224else 11225 echo "libtool.m4: error: problem compiling CXX test program" 11226fi 11227 11228$rm -f confest.$objext 11229 11230# PORTME: override above test on systems where it is broken 11231case $host_os in 11232interix3*) 11233 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11234 # hack all around it, let's just trust "g++" to DTRT. 11235 predep_objects_CXX= 11236 postdep_objects_CXX= 11237 postdeps_CXX= 11238 ;; 11239 11240solaris*) 11241 case $cc_basename in 11242 CC*) 11243 # Adding this requires a known-good setup of shared libraries for 11244 # Sun compiler versions before 5.6, else PIC objects from an old 11245 # archive will be linked into the output, leading to subtle bugs. 11246 postdeps_CXX='-lCstd -lCrun' 11247 ;; 11248 esac 11249 ;; 11250esac 11251 11252 11253case " $postdeps_CXX " in 11254*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11255esac 11256 11257lt_prog_compiler_wl_CXX= 11258lt_prog_compiler_pic_CXX= 11259lt_prog_compiler_static_CXX= 11260 11261echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11262echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11263 11264 # C++ specific cases for pic, static, wl, etc. 11265 if test "$GXX" = yes; then 11266 lt_prog_compiler_wl_CXX='-Wl,' 11267 lt_prog_compiler_static_CXX='-static' 11268 11269 case $host_os in 11270 aix*) 11271 # All AIX code is PIC. 11272 if test "$host_cpu" = ia64; then 11273 # AIX 5 now supports IA64 processor 11274 lt_prog_compiler_static_CXX='-Bstatic' 11275 fi 11276 ;; 11277 amigaos*) 11278 # FIXME: we need at least 68020 code to build shared libraries, but 11279 # adding the `-m68020' flag to GCC prevents building anything better, 11280 # like `-m68040'. 11281 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11282 ;; 11283 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11284 # PIC is the default for these OSes. 11285 ;; 11286 mingw* | os2* | pw32*) 11287 # This hack is so that the source file can tell whether it is being 11288 # built for inclusion in a dll (and should export symbols for example). 11289 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11290 ;; 11291 darwin* | rhapsody*) 11292 # PIC is the default on this platform 11293 # Common symbols not allowed in MH_DYLIB files 11294 lt_prog_compiler_pic_CXX='-fno-common' 11295 ;; 11296 *djgpp*) 11297 # DJGPP does not support shared libraries at all 11298 lt_prog_compiler_pic_CXX= 11299 ;; 11300 interix3*) 11301 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11302 # Instead, we relocate shared libraries at runtime. 11303 ;; 11304 sysv4*MP*) 11305 if test -d /usr/nec; then 11306 lt_prog_compiler_pic_CXX=-Kconform_pic 11307 fi 11308 ;; 11309 hpux*) 11310 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11311 # not for PA HP-UX. 11312 case $host_cpu in 11313 hppa*64*|ia64*) 11314 ;; 11315 *) 11316 lt_prog_compiler_pic_CXX='-fPIC' 11317 ;; 11318 esac 11319 ;; 11320 *) 11321 lt_prog_compiler_pic_CXX='-fPIC' 11322 ;; 11323 esac 11324 else 11325 case $host_os in 11326 aix4* | aix5*) 11327 # All AIX code is PIC. 11328 if test "$host_cpu" = ia64; then 11329 # AIX 5 now supports IA64 processor 11330 lt_prog_compiler_static_CXX='-Bstatic' 11331 else 11332 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11333 fi 11334 ;; 11335 chorus*) 11336 case $cc_basename in 11337 cxch68*) 11338 # Green Hills C++ Compiler 11339 # _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" 11340 ;; 11341 esac 11342 ;; 11343 darwin*) 11344 # PIC is the default on this platform 11345 # Common symbols not allowed in MH_DYLIB files 11346 case $cc_basename in 11347 xlc*) 11348 lt_prog_compiler_pic_CXX='-qnocommon' 11349 lt_prog_compiler_wl_CXX='-Wl,' 11350 ;; 11351 esac 11352 ;; 11353 dgux*) 11354 case $cc_basename in 11355 ec++*) 11356 lt_prog_compiler_pic_CXX='-KPIC' 11357 ;; 11358 ghcx*) 11359 # Green Hills C++ Compiler 11360 lt_prog_compiler_pic_CXX='-pic' 11361 ;; 11362 *) 11363 ;; 11364 esac 11365 ;; 11366 freebsd* | kfreebsd*-gnu | dragonfly*) 11367 # FreeBSD uses GNU C++ 11368 ;; 11369 hpux9* | hpux10* | hpux11*) 11370 case $cc_basename in 11371 CC*) 11372 lt_prog_compiler_wl_CXX='-Wl,' 11373 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11374 if test "$host_cpu" != ia64; then 11375 lt_prog_compiler_pic_CXX='+Z' 11376 fi 11377 ;; 11378 aCC*) 11379 lt_prog_compiler_wl_CXX='-Wl,' 11380 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11381 case $host_cpu in 11382 hppa*64*|ia64*) 11383 # +Z the default 11384 ;; 11385 *) 11386 lt_prog_compiler_pic_CXX='+Z' 11387 ;; 11388 esac 11389 ;; 11390 *) 11391 ;; 11392 esac 11393 ;; 11394 interix*) 11395 # This is c89, which is MS Visual C++ (no shared libs) 11396 # Anyone wants to do a port? 11397 ;; 11398 irix5* | irix6* | nonstopux*) 11399 case $cc_basename in 11400 CC*) 11401 lt_prog_compiler_wl_CXX='-Wl,' 11402 lt_prog_compiler_static_CXX='-non_shared' 11403 # CC pic flag -KPIC is the default. 11404 ;; 11405 *) 11406 ;; 11407 esac 11408 ;; 11409 linux*) 11410 case $cc_basename in 11411 KCC*) 11412 # KAI C++ Compiler 11413 lt_prog_compiler_wl_CXX='--backend -Wl,' 11414 lt_prog_compiler_pic_CXX='-fPIC' 11415 ;; 11416 icpc* | ecpc*) 11417 # Intel C++ 11418 lt_prog_compiler_wl_CXX='-Wl,' 11419 lt_prog_compiler_pic_CXX='-KPIC' 11420 lt_prog_compiler_static_CXX='-static' 11421 ;; 11422 pgCC*) 11423 # Portland Group C++ compiler. 11424 lt_prog_compiler_wl_CXX='-Wl,' 11425 lt_prog_compiler_pic_CXX='-fpic' 11426 lt_prog_compiler_static_CXX='-Bstatic' 11427 ;; 11428 cxx*) 11429 # Compaq C++ 11430 # Make sure the PIC flag is empty. It appears that all Alpha 11431 # Linux and Compaq Tru64 Unix objects are PIC. 11432 lt_prog_compiler_pic_CXX= 11433 lt_prog_compiler_static_CXX='-non_shared' 11434 ;; 11435 *) 11436 ;; 11437 esac 11438 ;; 11439 lynxos*) 11440 ;; 11441 m88k*) 11442 ;; 11443 mvs*) 11444 case $cc_basename in 11445 cxx*) 11446 lt_prog_compiler_pic_CXX='-W c,exportall' 11447 ;; 11448 *) 11449 ;; 11450 esac 11451 ;; 11452 netbsd*) 11453 ;; 11454 osf3* | osf4* | osf5*) 11455 case $cc_basename in 11456 KCC*) 11457 lt_prog_compiler_wl_CXX='--backend -Wl,' 11458 ;; 11459 RCC*) 11460 # Rational C++ 2.4.1 11461 lt_prog_compiler_pic_CXX='-pic' 11462 ;; 11463 cxx*) 11464 # Digital/Compaq C++ 11465 lt_prog_compiler_wl_CXX='-Wl,' 11466 # Make sure the PIC flag is empty. It appears that all Alpha 11467 # Linux and Compaq Tru64 Unix objects are PIC. 11468 lt_prog_compiler_pic_CXX= 11469 lt_prog_compiler_static_CXX='-non_shared' 11470 ;; 11471 *) 11472 ;; 11473 esac 11474 ;; 11475 psos*) 11476 ;; 11477 solaris*) 11478 case $cc_basename in 11479 CC*) 11480 # Sun C++ 4.2, 5.x and Centerline C++ 11481 lt_prog_compiler_pic_CXX='-KPIC' 11482 lt_prog_compiler_static_CXX='-Bstatic' 11483 lt_prog_compiler_wl_CXX='-Qoption ld ' 11484 ;; 11485 gcx*) 11486 # Green Hills C++ Compiler 11487 lt_prog_compiler_pic_CXX='-PIC' 11488 ;; 11489 *) 11490 ;; 11491 esac 11492 ;; 11493 sunos4*) 11494 case $cc_basename in 11495 CC*) 11496 # Sun C++ 4.x 11497 lt_prog_compiler_pic_CXX='-pic' 11498 lt_prog_compiler_static_CXX='-Bstatic' 11499 ;; 11500 lcc*) 11501 # Lucid 11502 lt_prog_compiler_pic_CXX='-pic' 11503 ;; 11504 *) 11505 ;; 11506 esac 11507 ;; 11508 tandem*) 11509 case $cc_basename in 11510 NCC*) 11511 # NonStop-UX NCC 3.20 11512 lt_prog_compiler_pic_CXX='-KPIC' 11513 ;; 11514 *) 11515 ;; 11516 esac 11517 ;; 11518 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11519 case $cc_basename in 11520 CC*) 11521 lt_prog_compiler_wl_CXX='-Wl,' 11522 lt_prog_compiler_pic_CXX='-KPIC' 11523 lt_prog_compiler_static_CXX='-Bstatic' 11524 ;; 11525 esac 11526 ;; 11527 vxworks*) 11528 ;; 11529 *) 11530 lt_prog_compiler_can_build_shared_CXX=no 11531 ;; 11532 esac 11533 fi 11534 11535echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11536echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11537 11538# 11539# Check to make sure the PIC flag actually works. 11540# 11541if test -n "$lt_prog_compiler_pic_CXX"; then 11542 11543echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11544echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11545if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11546 echo $ECHO_N "(cached) $ECHO_C" >&6 11547else 11548 lt_prog_compiler_pic_works_CXX=no 11549 ac_outfile=conftest.$ac_objext 11550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11551 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11552 # Insert the option either (1) after the last *FLAGS variable, or 11553 # (2) before a word containing "conftest.", or (3) at the end. 11554 # Note that $ac_compile itself does not contain backslashes and begins 11555 # with a dollar sign (not a hyphen), so the echo should work correctly. 11556 # The option is referenced via a variable to avoid confusing sed. 11557 lt_compile=`echo "$ac_compile" | $SED \ 11558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11560 -e 's:$: $lt_compiler_flag:'` 11561 (eval echo "\"\$as_me:11561: $lt_compile\"" >&5) 11562 (eval "$lt_compile" 2>conftest.err) 11563 ac_status=$? 11564 cat conftest.err >&5 11565 echo "$as_me:11565: \$? = $ac_status" >&5 11566 if (exit $ac_status) && test -s "$ac_outfile"; then 11567 # The compiler can only warn and ignore the option if not recognized 11568 # So say no if there are warnings other than the usual output. 11569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11572 lt_prog_compiler_pic_works_CXX=yes 11573 fi 11574 fi 11575 $rm conftest* 11576 11577fi 11578echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11579echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11580 11581if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11582 case $lt_prog_compiler_pic_CXX in 11583 "" | " "*) ;; 11584 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11585 esac 11586else 11587 lt_prog_compiler_pic_CXX= 11588 lt_prog_compiler_can_build_shared_CXX=no 11589fi 11590 11591fi 11592case $host_os in 11593 # For platforms which do not support PIC, -DPIC is meaningless: 11594 *djgpp*) 11595 lt_prog_compiler_pic_CXX= 11596 ;; 11597 *) 11598 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11599 ;; 11600esac 11601 11602# 11603# Check to make sure the static flag actually works. 11604# 11605wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11606echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11607echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11608if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11609 echo $ECHO_N "(cached) $ECHO_C" >&6 11610else 11611 lt_prog_compiler_static_works_CXX=no 11612 save_LDFLAGS="$LDFLAGS" 11613 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11614 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11616 # The linker can only warn and ignore the option if not recognized 11617 # So say no if there are warnings 11618 if test -s conftest.err; then 11619 # Append any errors to the config.log. 11620 cat conftest.err 1>&5 11621 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11623 if diff conftest.exp conftest.er2 >/dev/null; then 11624 lt_prog_compiler_static_works_CXX=yes 11625 fi 11626 else 11627 lt_prog_compiler_static_works_CXX=yes 11628 fi 11629 fi 11630 $rm conftest* 11631 LDFLAGS="$save_LDFLAGS" 11632 11633fi 11634echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11635echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11636 11637if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11638 : 11639else 11640 lt_prog_compiler_static_CXX= 11641fi 11642 11643 11644echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11645echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11646if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11647 echo $ECHO_N "(cached) $ECHO_C" >&6 11648else 11649 lt_cv_prog_compiler_c_o_CXX=no 11650 $rm -r conftest 2>/dev/null 11651 mkdir conftest 11652 cd conftest 11653 mkdir out 11654 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11655 11656 lt_compiler_flag="-o out/conftest2.$ac_objext" 11657 # Insert the option either (1) after the last *FLAGS variable, or 11658 # (2) before a word containing "conftest.", or (3) at the end. 11659 # Note that $ac_compile itself does not contain backslashes and begins 11660 # with a dollar sign (not a hyphen), so the echo should work correctly. 11661 lt_compile=`echo "$ac_compile" | $SED \ 11662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11664 -e 's:$: $lt_compiler_flag:'` 11665 (eval echo "\"\$as_me:11665: $lt_compile\"" >&5) 11666 (eval "$lt_compile" 2>out/conftest.err) 11667 ac_status=$? 11668 cat out/conftest.err >&5 11669 echo "$as_me:11669: \$? = $ac_status" >&5 11670 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11671 then 11672 # The compiler can only warn and ignore the option if not recognized 11673 # So say no if there are warnings 11674 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11677 lt_cv_prog_compiler_c_o_CXX=yes 11678 fi 11679 fi 11680 chmod u+w . 2>&5 11681 $rm conftest* 11682 # SGI C++ compiler will create directory out/ii_files/ for 11683 # template instantiation 11684 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11685 $rm out/* && rmdir out 11686 cd .. 11687 rmdir conftest 11688 $rm conftest* 11689 11690fi 11691echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11692echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11693 11694 11695hard_links="nottested" 11696if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11697 # do not overwrite the value of need_locks provided by the user 11698 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11699echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11700 hard_links=yes 11701 $rm conftest* 11702 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11703 touch conftest.a 11704 ln conftest.a conftest.b 2>&5 || hard_links=no 11705 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11706 echo "$as_me:$LINENO: result: $hard_links" >&5 11707echo "${ECHO_T}$hard_links" >&6 11708 if test "$hard_links" = no; then 11709 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11710echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11711 need_locks=warn 11712 fi 11713else 11714 need_locks=no 11715fi 11716 11717echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11718echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11719 11720 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11721 case $host_os in 11722 aix4* | aix5*) 11723 # If we're using GNU nm, then we don't want the "-C" option. 11724 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11726 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' 11727 else 11728 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' 11729 fi 11730 ;; 11731 pw32*) 11732 export_symbols_cmds_CXX="$ltdll_cmds" 11733 ;; 11734 cygwin* | mingw*) 11735 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' 11736 ;; 11737 *) 11738 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11739 ;; 11740 esac 11741 11742echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11743echo "${ECHO_T}$ld_shlibs_CXX" >&6 11744test "$ld_shlibs_CXX" = no && can_build_shared=no 11745 11746# 11747# Do we need to explicitly link libc? 11748# 11749case "x$archive_cmds_need_lc_CXX" in 11750x|xyes) 11751 # Assume -lc should be added 11752 archive_cmds_need_lc_CXX=yes 11753 11754 if test "$enable_shared" = yes && test "$GCC" = yes; then 11755 case $archive_cmds_CXX in 11756 *'~'*) 11757 # FIXME: we may have to deal with multi-command sequences. 11758 ;; 11759 '$CC '*) 11760 # Test whether the compiler implicitly links with -lc since on some 11761 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11762 # to ld, don't add -lc before -lgcc. 11763 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11764echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11765 $rm conftest* 11766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11767 11768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11769 (eval $ac_compile) 2>&5 11770 ac_status=$? 11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11772 (exit $ac_status); } 2>conftest.err; then 11773 soname=conftest 11774 lib=conftest 11775 libobjs=conftest.$ac_objext 11776 deplibs= 11777 wl=$lt_prog_compiler_wl_CXX 11778 pic_flag=$lt_prog_compiler_pic_CXX 11779 compiler_flags=-v 11780 linker_flags=-v 11781 verstring= 11782 output_objdir=. 11783 libname=conftest 11784 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11785 allow_undefined_flag_CXX= 11786 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11787 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11788 ac_status=$? 11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11790 (exit $ac_status); } 11791 then 11792 archive_cmds_need_lc_CXX=no 11793 else 11794 archive_cmds_need_lc_CXX=yes 11795 fi 11796 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11797 else 11798 cat conftest.err 1>&5 11799 fi 11800 $rm conftest* 11801 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11802echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11803 ;; 11804 esac 11805 fi 11806 ;; 11807esac 11808 11809echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11810echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11811library_names_spec= 11812libname_spec='lib$name' 11813soname_spec= 11814shrext_cmds=".so" 11815postinstall_cmds= 11816postuninstall_cmds= 11817finish_cmds= 11818finish_eval= 11819shlibpath_var= 11820shlibpath_overrides_runpath=unknown 11821version_type=none 11822dynamic_linker="$host_os ld.so" 11823sys_lib_dlsearch_path_spec="/lib /usr/lib" 11824if test "$GCC" = yes; then 11825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11826 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11827 # if the path contains ";" then we assume it to be the separator 11828 # otherwise default to the standard path separator (i.e. ":") - it is 11829 # assumed that no part of a normal pathname contains ";" but that should 11830 # okay in the real world where ";" in dirpaths is itself problematic. 11831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11832 else 11833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11834 fi 11835else 11836 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11837fi 11838need_lib_prefix=unknown 11839hardcode_into_libs=no 11840 11841# when you set need_version to no, make sure it does not cause -set_version 11842# flags to be left without arguments 11843need_version=unknown 11844 11845case $host_os in 11846aix3*) 11847 version_type=linux 11848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11849 shlibpath_var=LIBPATH 11850 11851 # AIX 3 has no versioning support, so we append a major version to the name. 11852 soname_spec='${libname}${release}${shared_ext}$major' 11853 ;; 11854 11855aix4* | aix5*) 11856 version_type=linux 11857 need_lib_prefix=no 11858 need_version=no 11859 hardcode_into_libs=yes 11860 if test "$host_cpu" = ia64; then 11861 # AIX 5 supports IA64 11862 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11863 shlibpath_var=LD_LIBRARY_PATH 11864 else 11865 # With GCC up to 2.95.x, collect2 would create an import file 11866 # for dependence libraries. The import file would start with 11867 # the line `#! .'. This would cause the generated library to 11868 # depend on `.', always an invalid library. This was fixed in 11869 # development snapshots of GCC prior to 3.0. 11870 case $host_os in 11871 aix4 | aix4.[01] | aix4.[01].*) 11872 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11873 echo ' yes ' 11874 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11875 : 11876 else 11877 can_build_shared=no 11878 fi 11879 ;; 11880 esac 11881 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11882 # soname into executable. Probably we can add versioning support to 11883 # collect2, so additional links can be useful in future. 11884 if test "$aix_use_runtimelinking" = yes; then 11885 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11886 # instead of lib<name>.a to let people know that these are not 11887 # typical AIX shared libraries. 11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11889 else 11890 # We preserve .a as extension for shared libraries through AIX4.2 11891 # and later when we are not doing run time linking. 11892 library_names_spec='${libname}${release}.a $libname.a' 11893 soname_spec='${libname}${release}${shared_ext}$major' 11894 fi 11895 shlibpath_var=LIBPATH 11896 fi 11897 ;; 11898 11899amigaos*) 11900 library_names_spec='$libname.ixlibrary $libname.a' 11901 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11902 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' 11903 ;; 11904 11905beos*) 11906 library_names_spec='${libname}${shared_ext}' 11907 dynamic_linker="$host_os ld.so" 11908 shlibpath_var=LIBRARY_PATH 11909 ;; 11910 11911bsdi[45]*) 11912 version_type=linux 11913 need_version=no 11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11915 soname_spec='${libname}${release}${shared_ext}$major' 11916 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11917 shlibpath_var=LD_LIBRARY_PATH 11918 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11919 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11920 # the default ld.so.conf also contains /usr/contrib/lib and 11921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11922 # libtool to hard-code these into programs 11923 ;; 11924 11925cygwin* | mingw* | pw32*) 11926 version_type=windows 11927 shrext_cmds=".dll" 11928 need_version=no 11929 need_lib_prefix=no 11930 11931 case $GCC,$host_os in 11932 yes,cygwin* | yes,mingw* | yes,pw32*) 11933 library_names_spec='$libname.dll.a' 11934 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11935 postinstall_cmds='base_file=`basename \${file}`~ 11936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11937 dldir=$destdir/`dirname \$dlpath`~ 11938 test -d \$dldir || mkdir -p \$dldir~ 11939 $install_prog $dir/$dlname \$dldir/$dlname~ 11940 chmod a+x \$dldir/$dlname' 11941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11942 dlpath=$dir/\$dldll~ 11943 $rm \$dlpath' 11944 shlibpath_overrides_runpath=yes 11945 11946 case $host_os in 11947 cygwin*) 11948 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11950 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11951 ;; 11952 mingw*) 11953 # MinGW DLLs use traditional 'lib' prefix 11954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11956 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11957 # It is most probably a Windows format PATH printed by 11958 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11959 # path with ; separators, and with drive letters. We can handle the 11960 # drive letters (cygwin fileutils understands them), so leave them, 11961 # especially as we might pass files found there to a mingw objdump, 11962 # which wouldn't understand a cygwinified path. Ahh. 11963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11964 else 11965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11966 fi 11967 ;; 11968 pw32*) 11969 # pw32 DLLs use 'pw' prefix rather than 'lib' 11970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11971 ;; 11972 esac 11973 ;; 11974 11975 *) 11976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11977 ;; 11978 esac 11979 dynamic_linker='Win32 ld.exe' 11980 # FIXME: first we should search . and the directory the executable is in 11981 shlibpath_var=PATH 11982 ;; 11983 11984darwin* | rhapsody*) 11985 dynamic_linker="$host_os dyld" 11986 version_type=darwin 11987 need_lib_prefix=no 11988 need_version=no 11989 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11990 soname_spec='${libname}${release}${major}$shared_ext' 11991 shlibpath_overrides_runpath=yes 11992 shlibpath_var=DYLD_LIBRARY_PATH 11993 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11994 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11995 if test "$GCC" = yes; then 11996 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"` 11997 else 11998 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11999 fi 12000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12001 ;; 12002 12003dgux*) 12004 version_type=linux 12005 need_lib_prefix=no 12006 need_version=no 12007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12008 soname_spec='${libname}${release}${shared_ext}$major' 12009 shlibpath_var=LD_LIBRARY_PATH 12010 ;; 12011 12012freebsd1*) 12013 dynamic_linker=no 12014 ;; 12015 12016kfreebsd*-gnu) 12017 version_type=linux 12018 need_lib_prefix=no 12019 need_version=no 12020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12021 soname_spec='${libname}${release}${shared_ext}$major' 12022 shlibpath_var=LD_LIBRARY_PATH 12023 shlibpath_overrides_runpath=no 12024 hardcode_into_libs=yes 12025 dynamic_linker='GNU ld.so' 12026 ;; 12027 12028freebsd* | dragonfly*) 12029 # DragonFly does not have aout. When/if they implement a new 12030 # versioning mechanism, adjust this. 12031 if test -x /usr/bin/objformat; then 12032 objformat=`/usr/bin/objformat` 12033 else 12034 case $host_os in 12035 freebsd[123]*) objformat=aout ;; 12036 *) objformat=elf ;; 12037 esac 12038 fi 12039 version_type=freebsd-$objformat 12040 case $version_type in 12041 freebsd-elf*) 12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12043 need_version=no 12044 need_lib_prefix=no 12045 ;; 12046 freebsd-*) 12047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12048 need_version=yes 12049 ;; 12050 esac 12051 shlibpath_var=LD_LIBRARY_PATH 12052 case $host_os in 12053 freebsd2*) 12054 shlibpath_overrides_runpath=yes 12055 ;; 12056 freebsd3.[01]* | freebsdelf3.[01]*) 12057 shlibpath_overrides_runpath=yes 12058 hardcode_into_libs=yes 12059 ;; 12060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12062 shlibpath_overrides_runpath=no 12063 hardcode_into_libs=yes 12064 ;; 12065 freebsd*) # from 4.6 on 12066 shlibpath_overrides_runpath=yes 12067 hardcode_into_libs=yes 12068 ;; 12069 esac 12070 ;; 12071 12072gnu*) 12073 version_type=linux 12074 need_lib_prefix=no 12075 need_version=no 12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12077 soname_spec='${libname}${release}${shared_ext}$major' 12078 shlibpath_var=LD_LIBRARY_PATH 12079 hardcode_into_libs=yes 12080 ;; 12081 12082hpux9* | hpux10* | hpux11*) 12083 # Give a soname corresponding to the major version so that dld.sl refuses to 12084 # link against other versions. 12085 version_type=sunos 12086 need_lib_prefix=no 12087 need_version=no 12088 case $host_cpu in 12089 ia64*) 12090 shrext_cmds='.so' 12091 hardcode_into_libs=yes 12092 dynamic_linker="$host_os dld.so" 12093 shlibpath_var=LD_LIBRARY_PATH 12094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12096 soname_spec='${libname}${release}${shared_ext}$major' 12097 if test "X$HPUX_IA64_MODE" = X32; then 12098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12099 else 12100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12101 fi 12102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12103 ;; 12104 hppa*64*) 12105 shrext_cmds='.sl' 12106 hardcode_into_libs=yes 12107 dynamic_linker="$host_os dld.sl" 12108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12111 soname_spec='${libname}${release}${shared_ext}$major' 12112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12114 ;; 12115 *) 12116 shrext_cmds='.sl' 12117 dynamic_linker="$host_os dld.sl" 12118 shlibpath_var=SHLIB_PATH 12119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12121 soname_spec='${libname}${release}${shared_ext}$major' 12122 ;; 12123 esac 12124 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12125 postinstall_cmds='chmod 555 $lib' 12126 ;; 12127 12128interix3*) 12129 version_type=linux 12130 need_lib_prefix=no 12131 need_version=no 12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12133 soname_spec='${libname}${release}${shared_ext}$major' 12134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12135 shlibpath_var=LD_LIBRARY_PATH 12136 shlibpath_overrides_runpath=no 12137 hardcode_into_libs=yes 12138 ;; 12139 12140irix5* | irix6* | nonstopux*) 12141 case $host_os in 12142 nonstopux*) version_type=nonstopux ;; 12143 *) 12144 if test "$lt_cv_prog_gnu_ld" = yes; then 12145 version_type=linux 12146 else 12147 version_type=irix 12148 fi ;; 12149 esac 12150 need_lib_prefix=no 12151 need_version=no 12152 soname_spec='${libname}${release}${shared_ext}$major' 12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12154 case $host_os in 12155 irix5* | nonstopux*) 12156 libsuff= shlibsuff= 12157 ;; 12158 *) 12159 case $LD in # libtool.m4 will add one of these switches to LD 12160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12161 libsuff= shlibsuff= libmagic=32-bit;; 12162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12163 libsuff=32 shlibsuff=N32 libmagic=N32;; 12164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12165 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12166 *) libsuff= shlibsuff= libmagic=never-match;; 12167 esac 12168 ;; 12169 esac 12170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12171 shlibpath_overrides_runpath=no 12172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12174 hardcode_into_libs=yes 12175 ;; 12176 12177# No shared lib support for Linux oldld, aout, or coff. 12178linux*oldld* | linux*aout* | linux*coff*) 12179 dynamic_linker=no 12180 ;; 12181 12182# This must be Linux ELF. 12183linux*) 12184 version_type=linux 12185 need_lib_prefix=no 12186 need_version=no 12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12188 soname_spec='${libname}${release}${shared_ext}$major' 12189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12190 shlibpath_var=LD_LIBRARY_PATH 12191 shlibpath_overrides_runpath=no 12192 # This implies no fast_install, which is unacceptable. 12193 # Some rework will be needed to allow for fast_install 12194 # before this can be enabled. 12195 hardcode_into_libs=yes 12196 12197 # find out which ABI we are using 12198 libsuff= 12199 case "$host_cpu" in 12200 x86_64*|s390x*|powerpc64*) 12201 echo '#line 12201 "configure"' > conftest.$ac_ext 12202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12203 (eval $ac_compile) 2>&5 12204 ac_status=$? 12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12206 (exit $ac_status); }; then 12207 case `/usr/bin/file conftest.$ac_objext` in 12208 *64-bit*) 12209 libsuff=64 12210 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 12211 ;; 12212 esac 12213 fi 12214 rm -rf conftest* 12215 ;; 12216 esac 12217 12218 # Append ld.so.conf contents to the search path 12219 if test -f /etc/ld.so.conf; then 12220 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' ' '` 12221 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 12222 fi 12223 12224 # We used to test for /lib/ld.so.1 and disable shared libraries on 12225 # powerpc, because MkLinux only supported shared libraries with the 12226 # GNU dynamic linker. Since this was broken with cross compilers, 12227 # most powerpc-linux boxes support dynamic linking these days and 12228 # people can always --disable-shared, the test was removed, and we 12229 # assume the GNU/Linux dynamic linker is in use. 12230 dynamic_linker='GNU/Linux ld.so' 12231 ;; 12232 12233knetbsd*-gnu) 12234 version_type=linux 12235 need_lib_prefix=no 12236 need_version=no 12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12238 soname_spec='${libname}${release}${shared_ext}$major' 12239 shlibpath_var=LD_LIBRARY_PATH 12240 shlibpath_overrides_runpath=no 12241 hardcode_into_libs=yes 12242 dynamic_linker='GNU ld.so' 12243 ;; 12244 12245netbsd*) 12246 version_type=sunos 12247 need_lib_prefix=no 12248 need_version=no 12249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12252 dynamic_linker='NetBSD (a.out) ld.so' 12253 else 12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12255 soname_spec='${libname}${release}${shared_ext}$major' 12256 dynamic_linker='NetBSD ld.elf_so' 12257 fi 12258 shlibpath_var=LD_LIBRARY_PATH 12259 shlibpath_overrides_runpath=yes 12260 hardcode_into_libs=yes 12261 ;; 12262 12263newsos6) 12264 version_type=linux 12265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12266 shlibpath_var=LD_LIBRARY_PATH 12267 shlibpath_overrides_runpath=yes 12268 ;; 12269 12270nto-qnx*) 12271 version_type=linux 12272 need_lib_prefix=no 12273 need_version=no 12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12275 soname_spec='${libname}${release}${shared_ext}$major' 12276 shlibpath_var=LD_LIBRARY_PATH 12277 shlibpath_overrides_runpath=yes 12278 ;; 12279 12280openbsd*) 12281 version_type=sunos 12282 sys_lib_dlsearch_path_spec="/usr/lib" 12283 need_lib_prefix=no 12284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12285 case $host_os in 12286 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12287 *) need_version=no ;; 12288 esac 12289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12291 shlibpath_var=LD_LIBRARY_PATH 12292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12293 case $host_os in 12294 openbsd2.[89] | openbsd2.[89].*) 12295 shlibpath_overrides_runpath=no 12296 ;; 12297 *) 12298 shlibpath_overrides_runpath=yes 12299 ;; 12300 esac 12301 else 12302 shlibpath_overrides_runpath=yes 12303 fi 12304 ;; 12305 12306os2*) 12307 libname_spec='$name' 12308 shrext_cmds=".dll" 12309 need_lib_prefix=no 12310 library_names_spec='$libname${shared_ext} $libname.a' 12311 dynamic_linker='OS/2 ld.exe' 12312 shlibpath_var=LIBPATH 12313 ;; 12314 12315osf3* | osf4* | osf5*) 12316 version_type=osf 12317 need_lib_prefix=no 12318 need_version=no 12319 soname_spec='${libname}${release}${shared_ext}$major' 12320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12321 shlibpath_var=LD_LIBRARY_PATH 12322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12324 ;; 12325 12326solaris*) 12327 version_type=linux 12328 need_lib_prefix=no 12329 need_version=no 12330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12331 soname_spec='${libname}${release}${shared_ext}$major' 12332 shlibpath_var=LD_LIBRARY_PATH 12333 shlibpath_overrides_runpath=yes 12334 hardcode_into_libs=yes 12335 # ldd complains unless libraries are executable 12336 postinstall_cmds='chmod +x $lib' 12337 ;; 12338 12339sunos4*) 12340 version_type=sunos 12341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12342 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12343 shlibpath_var=LD_LIBRARY_PATH 12344 shlibpath_overrides_runpath=yes 12345 if test "$with_gnu_ld" = yes; then 12346 need_lib_prefix=no 12347 fi 12348 need_version=yes 12349 ;; 12350 12351sysv4 | sysv4.3*) 12352 version_type=linux 12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12354 soname_spec='${libname}${release}${shared_ext}$major' 12355 shlibpath_var=LD_LIBRARY_PATH 12356 case $host_vendor in 12357 sni) 12358 shlibpath_overrides_runpath=no 12359 need_lib_prefix=no 12360 export_dynamic_flag_spec='${wl}-Blargedynsym' 12361 runpath_var=LD_RUN_PATH 12362 ;; 12363 siemens) 12364 need_lib_prefix=no 12365 ;; 12366 motorola) 12367 need_lib_prefix=no 12368 need_version=no 12369 shlibpath_overrides_runpath=no 12370 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12371 ;; 12372 esac 12373 ;; 12374 12375sysv4*MP*) 12376 if test -d /usr/nec ;then 12377 version_type=linux 12378 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12379 soname_spec='$libname${shared_ext}.$major' 12380 shlibpath_var=LD_LIBRARY_PATH 12381 fi 12382 ;; 12383 12384sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12385 version_type=freebsd-elf 12386 need_lib_prefix=no 12387 need_version=no 12388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12389 soname_spec='${libname}${release}${shared_ext}$major' 12390 shlibpath_var=LD_LIBRARY_PATH 12391 hardcode_into_libs=yes 12392 if test "$with_gnu_ld" = yes; then 12393 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12394 shlibpath_overrides_runpath=no 12395 else 12396 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12397 shlibpath_overrides_runpath=yes 12398 case $host_os in 12399 sco3.2v5*) 12400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12401 ;; 12402 esac 12403 fi 12404 sys_lib_dlsearch_path_spec='/usr/lib' 12405 ;; 12406 12407uts4*) 12408 version_type=linux 12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12410 soname_spec='${libname}${release}${shared_ext}$major' 12411 shlibpath_var=LD_LIBRARY_PATH 12412 ;; 12413 12414*) 12415 dynamic_linker=no 12416 ;; 12417esac 12418echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12419echo "${ECHO_T}$dynamic_linker" >&6 12420test "$dynamic_linker" = no && can_build_shared=no 12421 12422variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12423if test "$GCC" = yes; then 12424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12425fi 12426 12427echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12428echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12429hardcode_action_CXX= 12430if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12431 test -n "$runpath_var_CXX" || \ 12432 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12433 12434 # We can hardcode non-existant directories. 12435 if test "$hardcode_direct_CXX" != no && 12436 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12437 # have to relink, otherwise we might link with an installed library 12438 # when we should be linking with a yet-to-be-installed one 12439 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12440 test "$hardcode_minus_L_CXX" != no; then 12441 # Linking always hardcodes the temporary library directory. 12442 hardcode_action_CXX=relink 12443 else 12444 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12445 hardcode_action_CXX=immediate 12446 fi 12447else 12448 # We cannot hardcode anything, or else we can only hardcode existing 12449 # directories. 12450 hardcode_action_CXX=unsupported 12451fi 12452echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12453echo "${ECHO_T}$hardcode_action_CXX" >&6 12454 12455if test "$hardcode_action_CXX" = relink; then 12456 # Fast installation is not supported 12457 enable_fast_install=no 12458elif test "$shlibpath_overrides_runpath" = yes || 12459 test "$enable_shared" = no; then 12460 # Fast installation is not necessary 12461 enable_fast_install=needless 12462fi 12463 12464 12465# The else clause should only fire when bootstrapping the 12466# libtool distribution, otherwise you forgot to ship ltmain.sh 12467# with your package, and you will get complaints that there are 12468# no rules to generate ltmain.sh. 12469if test -f "$ltmain"; then 12470 # See if we are running on zsh, and set the options which allow our commands through 12471 # without removal of \ escapes. 12472 if test -n "${ZSH_VERSION+set}" ; then 12473 setopt NO_GLOB_SUBST 12474 fi 12475 # Now quote all the things that may contain metacharacters while being 12476 # careful not to overquote the AC_SUBSTed values. We take copies of the 12477 # variables and quote the copies for generation of the libtool script. 12478 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12479 SED SHELL STRIP \ 12480 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12481 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12482 deplibs_check_method reload_flag reload_cmds need_locks \ 12483 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12484 lt_cv_sys_global_symbol_to_c_name_address \ 12485 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12486 old_postinstall_cmds old_postuninstall_cmds \ 12487 compiler_CXX \ 12488 CC_CXX \ 12489 LD_CXX \ 12490 lt_prog_compiler_wl_CXX \ 12491 lt_prog_compiler_pic_CXX \ 12492 lt_prog_compiler_static_CXX \ 12493 lt_prog_compiler_no_builtin_flag_CXX \ 12494 export_dynamic_flag_spec_CXX \ 12495 thread_safe_flag_spec_CXX \ 12496 whole_archive_flag_spec_CXX \ 12497 enable_shared_with_static_runtimes_CXX \ 12498 old_archive_cmds_CXX \ 12499 old_archive_from_new_cmds_CXX \ 12500 predep_objects_CXX \ 12501 postdep_objects_CXX \ 12502 predeps_CXX \ 12503 postdeps_CXX \ 12504 compiler_lib_search_path_CXX \ 12505 archive_cmds_CXX \ 12506 archive_expsym_cmds_CXX \ 12507 postinstall_cmds_CXX \ 12508 postuninstall_cmds_CXX \ 12509 old_archive_from_expsyms_cmds_CXX \ 12510 allow_undefined_flag_CXX \ 12511 no_undefined_flag_CXX \ 12512 export_symbols_cmds_CXX \ 12513 hardcode_libdir_flag_spec_CXX \ 12514 hardcode_libdir_flag_spec_ld_CXX \ 12515 hardcode_libdir_separator_CXX \ 12516 hardcode_automatic_CXX \ 12517 module_cmds_CXX \ 12518 module_expsym_cmds_CXX \ 12519 lt_cv_prog_compiler_c_o_CXX \ 12520 exclude_expsyms_CXX \ 12521 include_expsyms_CXX; do 12522 12523 case $var in 12524 old_archive_cmds_CXX | \ 12525 old_archive_from_new_cmds_CXX | \ 12526 archive_cmds_CXX | \ 12527 archive_expsym_cmds_CXX | \ 12528 module_cmds_CXX | \ 12529 module_expsym_cmds_CXX | \ 12530 old_archive_from_expsyms_cmds_CXX | \ 12531 export_symbols_cmds_CXX | \ 12532 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12533 postinstall_cmds | postuninstall_cmds | \ 12534 old_postinstall_cmds | old_postuninstall_cmds | \ 12535 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12536 # Double-quote double-evaled strings. 12537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12538 ;; 12539 *) 12540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12541 ;; 12542 esac 12543 done 12544 12545 case $lt_echo in 12546 *'\$0 --fallback-echo"') 12547 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12548 ;; 12549 esac 12550 12551cfgfile="$ofile" 12552 12553 cat <<__EOF__ >> "$cfgfile" 12554# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12555 12556# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12557 12558# Shell to use when invoking shell scripts. 12559SHELL=$lt_SHELL 12560 12561# Whether or not to build shared libraries. 12562build_libtool_libs=$enable_shared 12563 12564# Whether or not to build static libraries. 12565build_old_libs=$enable_static 12566 12567# Whether or not to add -lc for building shared libraries. 12568build_libtool_need_lc=$archive_cmds_need_lc_CXX 12569 12570# Whether or not to disallow shared libs when runtime libs are static 12571allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12572 12573# Whether or not to optimize for fast installation. 12574fast_install=$enable_fast_install 12575 12576# The host system. 12577host_alias=$host_alias 12578host=$host 12579host_os=$host_os 12580 12581# The build system. 12582build_alias=$build_alias 12583build=$build 12584build_os=$build_os 12585 12586# An echo program that does not interpret backslashes. 12587echo=$lt_echo 12588 12589# The archiver. 12590AR=$lt_AR 12591AR_FLAGS=$lt_AR_FLAGS 12592 12593# A C compiler. 12594LTCC=$lt_LTCC 12595 12596# LTCC compiler flags. 12597LTCFLAGS=$lt_LTCFLAGS 12598 12599# A language-specific compiler. 12600CC=$lt_compiler_CXX 12601 12602# Is the compiler the GNU C compiler? 12603with_gcc=$GCC_CXX 12604 12605# An ERE matcher. 12606EGREP=$lt_EGREP 12607 12608# The linker used to build libraries. 12609LD=$lt_LD_CXX 12610 12611# Whether we need hard or soft links. 12612LN_S=$lt_LN_S 12613 12614# A BSD-compatible nm program. 12615NM=$lt_NM 12616 12617# A symbol stripping program 12618STRIP=$lt_STRIP 12619 12620# Used to examine libraries when file_magic_cmd begins "file" 12621MAGIC_CMD=$MAGIC_CMD 12622 12623# Used on cygwin: DLL creation program. 12624DLLTOOL="$DLLTOOL" 12625 12626# Used on cygwin: object dumper. 12627OBJDUMP="$OBJDUMP" 12628 12629# Used on cygwin: assembler. 12630AS="$AS" 12631 12632# The name of the directory that contains temporary libtool files. 12633objdir=$objdir 12634 12635# How to create reloadable object files. 12636reload_flag=$lt_reload_flag 12637reload_cmds=$lt_reload_cmds 12638 12639# How to pass a linker flag through the compiler. 12640wl=$lt_lt_prog_compiler_wl_CXX 12641 12642# Object file suffix (normally "o"). 12643objext="$ac_objext" 12644 12645# Old archive suffix (normally "a"). 12646libext="$libext" 12647 12648# Shared library suffix (normally ".so"). 12649shrext_cmds='$shrext_cmds' 12650 12651# Executable file suffix (normally ""). 12652exeext="$exeext" 12653 12654# Additional compiler flags for building library objects. 12655pic_flag=$lt_lt_prog_compiler_pic_CXX 12656pic_mode=$pic_mode 12657 12658# What is the maximum length of a command? 12659max_cmd_len=$lt_cv_sys_max_cmd_len 12660 12661# Does compiler simultaneously support -c and -o options? 12662compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12663 12664# Must we lock files when doing compilation? 12665need_locks=$lt_need_locks 12666 12667# Do we need the lib prefix for modules? 12668need_lib_prefix=$need_lib_prefix 12669 12670# Do we need a version for libraries? 12671need_version=$need_version 12672 12673# Whether dlopen is supported. 12674dlopen_support=$enable_dlopen 12675 12676# Whether dlopen of programs is supported. 12677dlopen_self=$enable_dlopen_self 12678 12679# Whether dlopen of statically linked programs is supported. 12680dlopen_self_static=$enable_dlopen_self_static 12681 12682# Compiler flag to prevent dynamic linking. 12683link_static_flag=$lt_lt_prog_compiler_static_CXX 12684 12685# Compiler flag to turn off builtin functions. 12686no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12687 12688# Compiler flag to allow reflexive dlopens. 12689export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12690 12691# Compiler flag to generate shared objects directly from archives. 12692whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12693 12694# Compiler flag to generate thread-safe objects. 12695thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12696 12697# Library versioning type. 12698version_type=$version_type 12699 12700# Format of library name prefix. 12701libname_spec=$lt_libname_spec 12702 12703# List of archive names. First name is the real one, the rest are links. 12704# The last name is the one that the linker finds with -lNAME. 12705library_names_spec=$lt_library_names_spec 12706 12707# The coded name of the library, if different from the real name. 12708soname_spec=$lt_soname_spec 12709 12710# Commands used to build and install an old-style archive. 12711RANLIB=$lt_RANLIB 12712old_archive_cmds=$lt_old_archive_cmds_CXX 12713old_postinstall_cmds=$lt_old_postinstall_cmds 12714old_postuninstall_cmds=$lt_old_postuninstall_cmds 12715 12716# Create an old-style archive from a shared archive. 12717old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12718 12719# Create a temporary old-style archive to link instead of a shared archive. 12720old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12721 12722# Commands used to build and install a shared archive. 12723archive_cmds=$lt_archive_cmds_CXX 12724archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12725postinstall_cmds=$lt_postinstall_cmds 12726postuninstall_cmds=$lt_postuninstall_cmds 12727 12728# Commands used to build a loadable module (assumed same as above if empty) 12729module_cmds=$lt_module_cmds_CXX 12730module_expsym_cmds=$lt_module_expsym_cmds_CXX 12731 12732# Commands to strip libraries. 12733old_striplib=$lt_old_striplib 12734striplib=$lt_striplib 12735 12736# Dependencies to place before the objects being linked to create a 12737# shared library. 12738predep_objects=$lt_predep_objects_CXX 12739 12740# Dependencies to place after the objects being linked to create a 12741# shared library. 12742postdep_objects=$lt_postdep_objects_CXX 12743 12744# Dependencies to place before the objects being linked to create a 12745# shared library. 12746predeps=$lt_predeps_CXX 12747 12748# Dependencies to place after the objects being linked to create a 12749# shared library. 12750postdeps=$lt_postdeps_CXX 12751 12752# The library search path used internally by the compiler when linking 12753# a shared library. 12754compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12755 12756# Method to check whether dependent libraries are shared objects. 12757deplibs_check_method=$lt_deplibs_check_method 12758 12759# Command to use when deplibs_check_method == file_magic. 12760file_magic_cmd=$lt_file_magic_cmd 12761 12762# Flag that allows shared libraries with undefined symbols to be built. 12763allow_undefined_flag=$lt_allow_undefined_flag_CXX 12764 12765# Flag that forces no undefined symbols. 12766no_undefined_flag=$lt_no_undefined_flag_CXX 12767 12768# Commands used to finish a libtool library installation in a directory. 12769finish_cmds=$lt_finish_cmds 12770 12771# Same as above, but a single script fragment to be evaled but not shown. 12772finish_eval=$lt_finish_eval 12773 12774# Take the output of nm and produce a listing of raw symbols and C names. 12775global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12776 12777# Transform the output of nm in a proper C declaration 12778global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12779 12780# Transform the output of nm in a C name address pair 12781global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12782 12783# This is the shared library runtime path variable. 12784runpath_var=$runpath_var 12785 12786# This is the shared library path variable. 12787shlibpath_var=$shlibpath_var 12788 12789# Is shlibpath searched before the hard-coded library search path? 12790shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12791 12792# How to hardcode a shared library path into an executable. 12793hardcode_action=$hardcode_action_CXX 12794 12795# Whether we should hardcode library paths into libraries. 12796hardcode_into_libs=$hardcode_into_libs 12797 12798# Flag to hardcode \$libdir into a binary during linking. 12799# This must work even if \$libdir does not exist. 12800hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12801 12802# If ld is used when linking, flag to hardcode \$libdir into 12803# a binary during linking. This must work even if \$libdir does 12804# not exist. 12805hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12806 12807# Whether we need a single -rpath flag with a separated argument. 12808hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12809 12810# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12811# resulting binary. 12812hardcode_direct=$hardcode_direct_CXX 12813 12814# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12815# resulting binary. 12816hardcode_minus_L=$hardcode_minus_L_CXX 12817 12818# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12819# the resulting binary. 12820hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12821 12822# Set to yes if building a shared library automatically hardcodes DIR into the library 12823# and all subsequent libraries and executables linked against it. 12824hardcode_automatic=$hardcode_automatic_CXX 12825 12826# Variables whose values should be saved in libtool wrapper scripts and 12827# restored at relink time. 12828variables_saved_for_relink="$variables_saved_for_relink" 12829 12830# Whether libtool must link a program against all its dependency libraries. 12831link_all_deplibs=$link_all_deplibs_CXX 12832 12833# Compile-time system search path for libraries 12834sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12835 12836# Run-time system search path for libraries 12837sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12838 12839# Fix the shell variable \$srcfile for the compiler. 12840fix_srcfile_path="$fix_srcfile_path_CXX" 12841 12842# Set to yes if exported symbols are required. 12843always_export_symbols=$always_export_symbols_CXX 12844 12845# The commands to list exported symbols. 12846export_symbols_cmds=$lt_export_symbols_cmds_CXX 12847 12848# The commands to extract the exported symbol list from a shared archive. 12849extract_expsyms_cmds=$lt_extract_expsyms_cmds 12850 12851# Symbols that should not be listed in the preloaded symbols. 12852exclude_expsyms=$lt_exclude_expsyms_CXX 12853 12854# Symbols that must always be exported. 12855include_expsyms=$lt_include_expsyms_CXX 12856 12857# ### END LIBTOOL TAG CONFIG: $tagname 12858 12859__EOF__ 12860 12861 12862else 12863 # If there is no Makefile yet, we rely on a make rule to execute 12864 # `config.status --recheck' to rerun these tests and create the 12865 # libtool script then. 12866 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12867 if test -f "$ltmain_in"; then 12868 test -f Makefile && make "$ltmain" 12869 fi 12870fi 12871 12872 12873ac_ext=c 12874ac_cpp='$CPP $CPPFLAGS' 12875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12877ac_compiler_gnu=$ac_cv_c_compiler_gnu 12878 12879CC=$lt_save_CC 12880LDCXX=$LD 12881LD=$lt_save_LD 12882GCC=$lt_save_GCC 12883with_gnu_ldcxx=$with_gnu_ld 12884with_gnu_ld=$lt_save_with_gnu_ld 12885lt_cv_path_LDCXX=$lt_cv_path_LD 12886lt_cv_path_LD=$lt_save_path_LD 12887lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12888lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12889 12890 else 12891 tagname="" 12892 fi 12893 ;; 12894 12895 F77) 12896 if test -n "$F77" && test "X$F77" != "Xno"; then 12897 12898ac_ext=f 12899ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12900ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12901ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12902 12903 12904archive_cmds_need_lc_F77=no 12905allow_undefined_flag_F77= 12906always_export_symbols_F77=no 12907archive_expsym_cmds_F77= 12908export_dynamic_flag_spec_F77= 12909hardcode_direct_F77=no 12910hardcode_libdir_flag_spec_F77= 12911hardcode_libdir_flag_spec_ld_F77= 12912hardcode_libdir_separator_F77= 12913hardcode_minus_L_F77=no 12914hardcode_automatic_F77=no 12915module_cmds_F77= 12916module_expsym_cmds_F77= 12917link_all_deplibs_F77=unknown 12918old_archive_cmds_F77=$old_archive_cmds 12919no_undefined_flag_F77= 12920whole_archive_flag_spec_F77= 12921enable_shared_with_static_runtimes_F77=no 12922 12923# Source file extension for f77 test sources. 12924ac_ext=f 12925 12926# Object file extension for compiled f77 test sources. 12927objext=o 12928objext_F77=$objext 12929 12930# Code to be used in simple compile tests 12931lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12932 12933# Code to be used in simple link tests 12934lt_simple_link_test_code=" program t\n end\n" 12935 12936# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12937 12938# If no C compiler was specified, use CC. 12939LTCC=${LTCC-"$CC"} 12940 12941# If no C compiler flags were specified, use CFLAGS. 12942LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12943 12944# Allow CC to be a program name with arguments. 12945compiler=$CC 12946 12947 12948# save warnings/boilerplate of simple test code 12949ac_outfile=conftest.$ac_objext 12950printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12951eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12952_lt_compiler_boilerplate=`cat conftest.err` 12953$rm conftest* 12954 12955ac_outfile=conftest.$ac_objext 12956printf "$lt_simple_link_test_code" >conftest.$ac_ext 12957eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12958_lt_linker_boilerplate=`cat conftest.err` 12959$rm conftest* 12960 12961 12962# Allow CC to be a program name with arguments. 12963lt_save_CC="$CC" 12964CC=${F77-"f77"} 12965compiler=$CC 12966compiler_F77=$CC 12967for cc_temp in $compiler""; do 12968 case $cc_temp in 12969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12971 \-*) ;; 12972 *) break;; 12973 esac 12974done 12975cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12976 12977 12978echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12979echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12980echo "$as_me:$LINENO: result: $can_build_shared" >&5 12981echo "${ECHO_T}$can_build_shared" >&6 12982 12983echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12984echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12985test "$can_build_shared" = "no" && enable_shared=no 12986 12987# On AIX, shared libraries and static libraries use the same namespace, and 12988# are all built from PIC. 12989case $host_os in 12990aix3*) 12991 test "$enable_shared" = yes && enable_static=no 12992 if test -n "$RANLIB"; then 12993 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12994 postinstall_cmds='$RANLIB $lib' 12995 fi 12996 ;; 12997aix4* | aix5*) 12998 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12999 test "$enable_shared" = yes && enable_static=no 13000 fi 13001 ;; 13002esac 13003echo "$as_me:$LINENO: result: $enable_shared" >&5 13004echo "${ECHO_T}$enable_shared" >&6 13005 13006echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13007echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13008# Make sure either enable_shared or enable_static is yes. 13009test "$enable_shared" = yes || enable_static=yes 13010echo "$as_me:$LINENO: result: $enable_static" >&5 13011echo "${ECHO_T}$enable_static" >&6 13012 13013GCC_F77="$G77" 13014LD_F77="$LD" 13015 13016lt_prog_compiler_wl_F77= 13017lt_prog_compiler_pic_F77= 13018lt_prog_compiler_static_F77= 13019 13020echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13021echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13022 13023 if test "$GCC" = yes; then 13024 lt_prog_compiler_wl_F77='-Wl,' 13025 lt_prog_compiler_static_F77='-static' 13026 13027 case $host_os in 13028 aix*) 13029 # All AIX code is PIC. 13030 if test "$host_cpu" = ia64; then 13031 # AIX 5 now supports IA64 processor 13032 lt_prog_compiler_static_F77='-Bstatic' 13033 fi 13034 ;; 13035 13036 amigaos*) 13037 # FIXME: we need at least 68020 code to build shared libraries, but 13038 # adding the `-m68020' flag to GCC prevents building anything better, 13039 # like `-m68040'. 13040 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13041 ;; 13042 13043 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13044 # PIC is the default for these OSes. 13045 ;; 13046 13047 mingw* | pw32* | os2*) 13048 # This hack is so that the source file can tell whether it is being 13049 # built for inclusion in a dll (and should export symbols for example). 13050 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13051 ;; 13052 13053 darwin* | rhapsody*) 13054 # PIC is the default on this platform 13055 # Common symbols not allowed in MH_DYLIB files 13056 lt_prog_compiler_pic_F77='-fno-common' 13057 ;; 13058 13059 interix3*) 13060 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13061 # Instead, we relocate shared libraries at runtime. 13062 ;; 13063 13064 msdosdjgpp*) 13065 # Just because we use GCC doesn't mean we suddenly get shared libraries 13066 # on systems that don't support them. 13067 lt_prog_compiler_can_build_shared_F77=no 13068 enable_shared=no 13069 ;; 13070 13071 sysv4*MP*) 13072 if test -d /usr/nec; then 13073 lt_prog_compiler_pic_F77=-Kconform_pic 13074 fi 13075 ;; 13076 13077 hpux*) 13078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13079 # not for PA HP-UX. 13080 case $host_cpu in 13081 hppa*64*|ia64*) 13082 # +Z the default 13083 ;; 13084 *) 13085 lt_prog_compiler_pic_F77='-fPIC' 13086 ;; 13087 esac 13088 ;; 13089 13090 *) 13091 lt_prog_compiler_pic_F77='-fPIC' 13092 ;; 13093 esac 13094 else 13095 # PORTME Check for flag to pass linker flags through the system compiler. 13096 case $host_os in 13097 aix*) 13098 lt_prog_compiler_wl_F77='-Wl,' 13099 if test "$host_cpu" = ia64; then 13100 # AIX 5 now supports IA64 processor 13101 lt_prog_compiler_static_F77='-Bstatic' 13102 else 13103 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13104 fi 13105 ;; 13106 darwin*) 13107 # PIC is the default on this platform 13108 # Common symbols not allowed in MH_DYLIB files 13109 case $cc_basename in 13110 xlc*) 13111 lt_prog_compiler_pic_F77='-qnocommon' 13112 lt_prog_compiler_wl_F77='-Wl,' 13113 ;; 13114 esac 13115 ;; 13116 13117 mingw* | pw32* | os2*) 13118 # This hack is so that the source file can tell whether it is being 13119 # built for inclusion in a dll (and should export symbols for example). 13120 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13121 ;; 13122 13123 hpux9* | hpux10* | hpux11*) 13124 lt_prog_compiler_wl_F77='-Wl,' 13125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13126 # not for PA HP-UX. 13127 case $host_cpu in 13128 hppa*64*|ia64*) 13129 # +Z the default 13130 ;; 13131 *) 13132 lt_prog_compiler_pic_F77='+Z' 13133 ;; 13134 esac 13135 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13136 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13137 ;; 13138 13139 irix5* | irix6* | nonstopux*) 13140 lt_prog_compiler_wl_F77='-Wl,' 13141 # PIC (with -KPIC) is the default. 13142 lt_prog_compiler_static_F77='-non_shared' 13143 ;; 13144 13145 newsos6) 13146 lt_prog_compiler_pic_F77='-KPIC' 13147 lt_prog_compiler_static_F77='-Bstatic' 13148 ;; 13149 13150 linux*) 13151 case $cc_basename in 13152 icc* | ecc*) 13153 lt_prog_compiler_wl_F77='-Wl,' 13154 lt_prog_compiler_pic_F77='-KPIC' 13155 lt_prog_compiler_static_F77='-static' 13156 ;; 13157 pgcc* | pgf77* | pgf90* | pgf95*) 13158 # Portland Group compilers (*not* the Pentium gcc compiler, 13159 # which looks to be a dead project) 13160 lt_prog_compiler_wl_F77='-Wl,' 13161 lt_prog_compiler_pic_F77='-fpic' 13162 lt_prog_compiler_static_F77='-Bstatic' 13163 ;; 13164 ccc*) 13165 lt_prog_compiler_wl_F77='-Wl,' 13166 # All Alpha code is PIC. 13167 lt_prog_compiler_static_F77='-non_shared' 13168 ;; 13169 esac 13170 ;; 13171 13172 osf3* | osf4* | osf5*) 13173 lt_prog_compiler_wl_F77='-Wl,' 13174 # All OSF/1 code is PIC. 13175 lt_prog_compiler_static_F77='-non_shared' 13176 ;; 13177 13178 solaris*) 13179 lt_prog_compiler_pic_F77='-KPIC' 13180 lt_prog_compiler_static_F77='-Bstatic' 13181 case $cc_basename in 13182 f77* | f90* | f95*) 13183 lt_prog_compiler_wl_F77='-Qoption ld ';; 13184 *) 13185 lt_prog_compiler_wl_F77='-Wl,';; 13186 esac 13187 ;; 13188 13189 sunos4*) 13190 lt_prog_compiler_wl_F77='-Qoption ld ' 13191 lt_prog_compiler_pic_F77='-PIC' 13192 lt_prog_compiler_static_F77='-Bstatic' 13193 ;; 13194 13195 sysv4 | sysv4.2uw2* | sysv4.3*) 13196 lt_prog_compiler_wl_F77='-Wl,' 13197 lt_prog_compiler_pic_F77='-KPIC' 13198 lt_prog_compiler_static_F77='-Bstatic' 13199 ;; 13200 13201 sysv4*MP*) 13202 if test -d /usr/nec ;then 13203 lt_prog_compiler_pic_F77='-Kconform_pic' 13204 lt_prog_compiler_static_F77='-Bstatic' 13205 fi 13206 ;; 13207 13208 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13209 lt_prog_compiler_wl_F77='-Wl,' 13210 lt_prog_compiler_pic_F77='-KPIC' 13211 lt_prog_compiler_static_F77='-Bstatic' 13212 ;; 13213 13214 unicos*) 13215 lt_prog_compiler_wl_F77='-Wl,' 13216 lt_prog_compiler_can_build_shared_F77=no 13217 ;; 13218 13219 uts4*) 13220 lt_prog_compiler_pic_F77='-pic' 13221 lt_prog_compiler_static_F77='-Bstatic' 13222 ;; 13223 13224 *) 13225 lt_prog_compiler_can_build_shared_F77=no 13226 ;; 13227 esac 13228 fi 13229 13230echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13231echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13232 13233# 13234# Check to make sure the PIC flag actually works. 13235# 13236if test -n "$lt_prog_compiler_pic_F77"; then 13237 13238echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13239echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13240if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13241 echo $ECHO_N "(cached) $ECHO_C" >&6 13242else 13243 lt_prog_compiler_pic_works_F77=no 13244 ac_outfile=conftest.$ac_objext 13245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13246 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13247 # Insert the option either (1) after the last *FLAGS variable, or 13248 # (2) before a word containing "conftest.", or (3) at the end. 13249 # Note that $ac_compile itself does not contain backslashes and begins 13250 # with a dollar sign (not a hyphen), so the echo should work correctly. 13251 # The option is referenced via a variable to avoid confusing sed. 13252 lt_compile=`echo "$ac_compile" | $SED \ 13253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13255 -e 's:$: $lt_compiler_flag:'` 13256 (eval echo "\"\$as_me:13256: $lt_compile\"" >&5) 13257 (eval "$lt_compile" 2>conftest.err) 13258 ac_status=$? 13259 cat conftest.err >&5 13260 echo "$as_me:13260: \$? = $ac_status" >&5 13261 if (exit $ac_status) && test -s "$ac_outfile"; then 13262 # The compiler can only warn and ignore the option if not recognized 13263 # So say no if there are warnings other than the usual output. 13264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13267 lt_prog_compiler_pic_works_F77=yes 13268 fi 13269 fi 13270 $rm conftest* 13271 13272fi 13273echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13274echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13275 13276if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13277 case $lt_prog_compiler_pic_F77 in 13278 "" | " "*) ;; 13279 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13280 esac 13281else 13282 lt_prog_compiler_pic_F77= 13283 lt_prog_compiler_can_build_shared_F77=no 13284fi 13285 13286fi 13287case $host_os in 13288 # For platforms which do not support PIC, -DPIC is meaningless: 13289 *djgpp*) 13290 lt_prog_compiler_pic_F77= 13291 ;; 13292 *) 13293 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13294 ;; 13295esac 13296 13297# 13298# Check to make sure the static flag actually works. 13299# 13300wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13301echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13302echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13303if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13304 echo $ECHO_N "(cached) $ECHO_C" >&6 13305else 13306 lt_prog_compiler_static_works_F77=no 13307 save_LDFLAGS="$LDFLAGS" 13308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13309 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13311 # The linker can only warn and ignore the option if not recognized 13312 # So say no if there are warnings 13313 if test -s conftest.err; then 13314 # Append any errors to the config.log. 13315 cat conftest.err 1>&5 13316 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13318 if diff conftest.exp conftest.er2 >/dev/null; then 13319 lt_prog_compiler_static_works_F77=yes 13320 fi 13321 else 13322 lt_prog_compiler_static_works_F77=yes 13323 fi 13324 fi 13325 $rm conftest* 13326 LDFLAGS="$save_LDFLAGS" 13327 13328fi 13329echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13330echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13331 13332if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13333 : 13334else 13335 lt_prog_compiler_static_F77= 13336fi 13337 13338 13339echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13340echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13341if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13342 echo $ECHO_N "(cached) $ECHO_C" >&6 13343else 13344 lt_cv_prog_compiler_c_o_F77=no 13345 $rm -r conftest 2>/dev/null 13346 mkdir conftest 13347 cd conftest 13348 mkdir out 13349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13350 13351 lt_compiler_flag="-o out/conftest2.$ac_objext" 13352 # Insert the option either (1) after the last *FLAGS variable, or 13353 # (2) before a word containing "conftest.", or (3) at the end. 13354 # Note that $ac_compile itself does not contain backslashes and begins 13355 # with a dollar sign (not a hyphen), so the echo should work correctly. 13356 lt_compile=`echo "$ac_compile" | $SED \ 13357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13359 -e 's:$: $lt_compiler_flag:'` 13360 (eval echo "\"\$as_me:13360: $lt_compile\"" >&5) 13361 (eval "$lt_compile" 2>out/conftest.err) 13362 ac_status=$? 13363 cat out/conftest.err >&5 13364 echo "$as_me:13364: \$? = $ac_status" >&5 13365 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13366 then 13367 # The compiler can only warn and ignore the option if not recognized 13368 # So say no if there are warnings 13369 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13372 lt_cv_prog_compiler_c_o_F77=yes 13373 fi 13374 fi 13375 chmod u+w . 2>&5 13376 $rm conftest* 13377 # SGI C++ compiler will create directory out/ii_files/ for 13378 # template instantiation 13379 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13380 $rm out/* && rmdir out 13381 cd .. 13382 rmdir conftest 13383 $rm conftest* 13384 13385fi 13386echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13387echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13388 13389 13390hard_links="nottested" 13391if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13392 # do not overwrite the value of need_locks provided by the user 13393 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13394echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13395 hard_links=yes 13396 $rm conftest* 13397 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13398 touch conftest.a 13399 ln conftest.a conftest.b 2>&5 || hard_links=no 13400 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13401 echo "$as_me:$LINENO: result: $hard_links" >&5 13402echo "${ECHO_T}$hard_links" >&6 13403 if test "$hard_links" = no; then 13404 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13405echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13406 need_locks=warn 13407 fi 13408else 13409 need_locks=no 13410fi 13411 13412echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13413echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13414 13415 runpath_var= 13416 allow_undefined_flag_F77= 13417 enable_shared_with_static_runtimes_F77=no 13418 archive_cmds_F77= 13419 archive_expsym_cmds_F77= 13420 old_archive_From_new_cmds_F77= 13421 old_archive_from_expsyms_cmds_F77= 13422 export_dynamic_flag_spec_F77= 13423 whole_archive_flag_spec_F77= 13424 thread_safe_flag_spec_F77= 13425 hardcode_libdir_flag_spec_F77= 13426 hardcode_libdir_flag_spec_ld_F77= 13427 hardcode_libdir_separator_F77= 13428 hardcode_direct_F77=no 13429 hardcode_minus_L_F77=no 13430 hardcode_shlibpath_var_F77=unsupported 13431 link_all_deplibs_F77=unknown 13432 hardcode_automatic_F77=no 13433 module_cmds_F77= 13434 module_expsym_cmds_F77= 13435 always_export_symbols_F77=no 13436 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13437 # include_expsyms should be a list of space-separated symbols to be *always* 13438 # included in the symbol list 13439 include_expsyms_F77= 13440 # exclude_expsyms can be an extended regexp of symbols to exclude 13441 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13442 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13443 # as well as any symbol that contains `d'. 13444 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13445 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13446 # platforms (ab)use it in PIC code, but their linkers get confused if 13447 # the symbol is explicitly referenced. Since portable code cannot 13448 # rely on this symbol name, it's probably fine to never include it in 13449 # preloaded symbol tables. 13450 extract_expsyms_cmds= 13451 # Just being paranoid about ensuring that cc_basename is set. 13452 for cc_temp in $compiler""; do 13453 case $cc_temp in 13454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13456 \-*) ;; 13457 *) break;; 13458 esac 13459done 13460cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13461 13462 case $host_os in 13463 cygwin* | mingw* | pw32*) 13464 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13465 # When not using gcc, we currently assume that we are using 13466 # Microsoft Visual C++. 13467 if test "$GCC" != yes; then 13468 with_gnu_ld=no 13469 fi 13470 ;; 13471 interix*) 13472 # we just hope/assume this is gcc and not c89 (= MSVC++) 13473 with_gnu_ld=yes 13474 ;; 13475 openbsd*) 13476 with_gnu_ld=no 13477 ;; 13478 esac 13479 13480 ld_shlibs_F77=yes 13481 if test "$with_gnu_ld" = yes; then 13482 # If archive_cmds runs LD, not CC, wlarc should be empty 13483 wlarc='${wl}' 13484 13485 # Set some defaults for GNU ld with shared library support. These 13486 # are reset later if shared libraries are not supported. Putting them 13487 # here allows them to be overridden if necessary. 13488 runpath_var=LD_RUN_PATH 13489 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13490 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13491 # ancient GNU ld didn't support --whole-archive et. al. 13492 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13493 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13494 else 13495 whole_archive_flag_spec_F77= 13496 fi 13497 supports_anon_versioning=no 13498 case `$LD -v 2>/dev/null` in 13499 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13502 *\ 2.11.*) ;; # other 2.11 versions 13503 *) supports_anon_versioning=yes ;; 13504 esac 13505 13506 # See if GNU ld supports shared libraries. 13507 case $host_os in 13508 aix3* | aix4* | aix5*) 13509 # On AIX/PPC, the GNU linker is very broken 13510 if test "$host_cpu" != ia64; then 13511 ld_shlibs_F77=no 13512 cat <<EOF 1>&2 13513 13514*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13515*** to be unable to reliably create shared libraries on AIX. 13516*** Therefore, libtool is disabling shared libraries support. If you 13517*** really care for shared libraries, you may want to modify your PATH 13518*** so that a non-GNU linker is found, and then restart. 13519 13520EOF 13521 fi 13522 ;; 13523 13524 amigaos*) 13525 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)' 13526 hardcode_libdir_flag_spec_F77='-L$libdir' 13527 hardcode_minus_L_F77=yes 13528 13529 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13530 # that the semantics of dynamic libraries on AmigaOS, at least up 13531 # to version 4, is to share data among multiple programs linked 13532 # with the same dynamic library. Since this doesn't match the 13533 # behavior of shared libraries on other platforms, we can't use 13534 # them. 13535 ld_shlibs_F77=no 13536 ;; 13537 13538 beos*) 13539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13540 allow_undefined_flag_F77=unsupported 13541 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13542 # support --undefined. This deserves some investigation. FIXME 13543 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13544 else 13545 ld_shlibs_F77=no 13546 fi 13547 ;; 13548 13549 cygwin* | mingw* | pw32*) 13550 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13551 # as there is no search path for DLLs. 13552 hardcode_libdir_flag_spec_F77='-L$libdir' 13553 allow_undefined_flag_F77=unsupported 13554 always_export_symbols_F77=no 13555 enable_shared_with_static_runtimes_F77=yes 13556 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13557 13558 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13559 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13560 # If the export-symbols file already is a .def file (1st line 13561 # is EXPORTS), use it as is; otherwise, prepend... 13562 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13563 cp $export_symbols $output_objdir/$soname.def; 13564 else 13565 echo EXPORTS > $output_objdir/$soname.def; 13566 cat $export_symbols >> $output_objdir/$soname.def; 13567 fi~ 13568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13569 else 13570 ld_shlibs_F77=no 13571 fi 13572 ;; 13573 13574 interix3*) 13575 hardcode_direct_F77=no 13576 hardcode_shlibpath_var_F77=no 13577 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13578 export_dynamic_flag_spec_F77='${wl}-E' 13579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13580 # Instead, shared libraries are loaded at an image base (0x10000000 by 13581 # default) and relocated if they conflict, which is a slow very memory 13582 # consuming and fragmenting process. To avoid this, we pick a random, 13583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13584 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13585 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13586 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13587 ;; 13588 13589 linux*) 13590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13591 tmp_addflag= 13592 case $cc_basename,$host_cpu in 13593 pgcc*) # Portland Group C compiler 13594 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' 13595 tmp_addflag=' $pic_flag' 13596 ;; 13597 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13598 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' 13599 tmp_addflag=' $pic_flag -Mnomain' ;; 13600 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13601 tmp_addflag=' -i_dynamic' ;; 13602 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13603 tmp_addflag=' -i_dynamic -nofor_main' ;; 13604 ifc* | ifort*) # Intel Fortran compiler 13605 tmp_addflag=' -nofor_main' ;; 13606 esac 13607 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13608 13609 if test $supports_anon_versioning = yes; then 13610 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13612 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13613 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13614 fi 13615 else 13616 ld_shlibs_F77=no 13617 fi 13618 ;; 13619 13620 netbsd*) 13621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13622 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13623 wlarc= 13624 else 13625 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13626 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13627 fi 13628 ;; 13629 13630 solaris*) 13631 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13632 ld_shlibs_F77=no 13633 cat <<EOF 1>&2 13634 13635*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13636*** create shared libraries on Solaris systems. Therefore, libtool 13637*** is disabling shared libraries support. We urge you to upgrade GNU 13638*** binutils to release 2.9.1 or newer. Another option is to modify 13639*** your PATH or compiler configuration so that the native linker is 13640*** used, and then restart. 13641 13642EOF 13643 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13644 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13645 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13646 else 13647 ld_shlibs_F77=no 13648 fi 13649 ;; 13650 13651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13652 case `$LD -v 2>&1` in 13653 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13654 ld_shlibs_F77=no 13655 cat <<_LT_EOF 1>&2 13656 13657*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13658*** reliably create shared libraries on SCO systems. Therefore, libtool 13659*** is disabling shared libraries support. We urge you to upgrade GNU 13660*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13661*** your PATH or compiler configuration so that the native linker is 13662*** used, and then restart. 13663 13664_LT_EOF 13665 ;; 13666 *) 13667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13668 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13670 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13671 else 13672 ld_shlibs_F77=no 13673 fi 13674 ;; 13675 esac 13676 ;; 13677 13678 sunos4*) 13679 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13680 wlarc= 13681 hardcode_direct_F77=yes 13682 hardcode_shlibpath_var_F77=no 13683 ;; 13684 13685 *) 13686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13687 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13688 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13689 else 13690 ld_shlibs_F77=no 13691 fi 13692 ;; 13693 esac 13694 13695 if test "$ld_shlibs_F77" = no; then 13696 runpath_var= 13697 hardcode_libdir_flag_spec_F77= 13698 export_dynamic_flag_spec_F77= 13699 whole_archive_flag_spec_F77= 13700 fi 13701 else 13702 # PORTME fill in a description of your system's linker (not GNU ld) 13703 case $host_os in 13704 aix3*) 13705 allow_undefined_flag_F77=unsupported 13706 always_export_symbols_F77=yes 13707 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' 13708 # Note: this linker hardcodes the directories in LIBPATH if there 13709 # are no directories specified by -L. 13710 hardcode_minus_L_F77=yes 13711 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13712 # Neither direct hardcoding nor static linking is supported with a 13713 # broken collect2. 13714 hardcode_direct_F77=unsupported 13715 fi 13716 ;; 13717 13718 aix4* | aix5*) 13719 if test "$host_cpu" = ia64; then 13720 # On IA64, the linker does run time linking by default, so we don't 13721 # have to do anything special. 13722 aix_use_runtimelinking=no 13723 exp_sym_flag='-Bexport' 13724 no_entry_flag="" 13725 else 13726 # If we're using GNU nm, then we don't want the "-C" option. 13727 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13728 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13729 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' 13730 else 13731 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' 13732 fi 13733 aix_use_runtimelinking=no 13734 13735 # Test if we are trying to use run time linking or normal 13736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13737 # need to do runtime linking. 13738 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13739 for ld_flag in $LDFLAGS; do 13740 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13741 aix_use_runtimelinking=yes 13742 break 13743 fi 13744 done 13745 ;; 13746 esac 13747 13748 exp_sym_flag='-bexport' 13749 no_entry_flag='-bnoentry' 13750 fi 13751 13752 # When large executables or shared objects are built, AIX ld can 13753 # have problems creating the table of contents. If linking a library 13754 # or program results in "error TOC overflow" add -mminimal-toc to 13755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13757 13758 archive_cmds_F77='' 13759 hardcode_direct_F77=yes 13760 hardcode_libdir_separator_F77=':' 13761 link_all_deplibs_F77=yes 13762 13763 if test "$GCC" = yes; then 13764 case $host_os in aix4.[012]|aix4.[012].*) 13765 # We only want to do this on AIX 4.2 and lower, the check 13766 # below for broken collect2 doesn't work under 4.3+ 13767 collect2name=`${CC} -print-prog-name=collect2` 13768 if test -f "$collect2name" && \ 13769 strings "$collect2name" | grep resolve_lib_name >/dev/null 13770 then 13771 # We have reworked collect2 13772 hardcode_direct_F77=yes 13773 else 13774 # We have old collect2 13775 hardcode_direct_F77=unsupported 13776 # It fails to find uninstalled libraries when the uninstalled 13777 # path is not listed in the libpath. Setting hardcode_minus_L 13778 # to unsupported forces relinking 13779 hardcode_minus_L_F77=yes 13780 hardcode_libdir_flag_spec_F77='-L$libdir' 13781 hardcode_libdir_separator_F77= 13782 fi 13783 ;; 13784 esac 13785 shared_flag='-shared' 13786 if test "$aix_use_runtimelinking" = yes; then 13787 shared_flag="$shared_flag "'${wl}-G' 13788 fi 13789 else 13790 # not using gcc 13791 if test "$host_cpu" = ia64; then 13792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13793 # chokes on -Wl,-G. The following line is correct: 13794 shared_flag='-G' 13795 else 13796 if test "$aix_use_runtimelinking" = yes; then 13797 shared_flag='${wl}-G' 13798 else 13799 shared_flag='${wl}-bM:SRE' 13800 fi 13801 fi 13802 fi 13803 13804 # It seems that -bexpall does not export symbols beginning with 13805 # underscore (_), so it is better to generate a list of symbols to export. 13806 always_export_symbols_F77=yes 13807 if test "$aix_use_runtimelinking" = yes; then 13808 # Warning - without using the other runtime loading flags (-brtl), 13809 # -berok will link without error, but may produce a broken library. 13810 allow_undefined_flag_F77='-berok' 13811 # Determine the default libpath from the value encoded in an empty executable. 13812 cat >conftest.$ac_ext <<_ACEOF 13813 program main 13814 13815 end 13816_ACEOF 13817rm -f conftest.$ac_objext conftest$ac_exeext 13818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13819 (eval $ac_link) 2>conftest.er1 13820 ac_status=$? 13821 grep -v '^ *+' conftest.er1 >conftest.err 13822 rm -f conftest.er1 13823 cat conftest.err >&5 13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13825 (exit $ac_status); } && 13826 { ac_try='test -z "$ac_f77_werror_flag" 13827 || test ! -s conftest.err' 13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13829 (eval $ac_try) 2>&5 13830 ac_status=$? 13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13832 (exit $ac_status); }; } && 13833 { ac_try='test -s conftest$ac_exeext' 13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13835 (eval $ac_try) 2>&5 13836 ac_status=$? 13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13838 (exit $ac_status); }; }; then 13839 13840aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13841}'` 13842# Check for a 64-bit object if we didn't find anything. 13843if 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; } 13844}'`; fi 13845else 13846 echo "$as_me: failed program was:" >&5 13847sed 's/^/| /' conftest.$ac_ext >&5 13848 13849fi 13850rm -f conftest.err conftest.$ac_objext \ 13851 conftest$ac_exeext conftest.$ac_ext 13852if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13853 13854 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13855 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13856 else 13857 if test "$host_cpu" = ia64; then 13858 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13859 allow_undefined_flag_F77="-z nodefs" 13860 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13861 else 13862 # Determine the default libpath from the value encoded in an empty executable. 13863 cat >conftest.$ac_ext <<_ACEOF 13864 program main 13865 13866 end 13867_ACEOF 13868rm -f conftest.$ac_objext conftest$ac_exeext 13869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13870 (eval $ac_link) 2>conftest.er1 13871 ac_status=$? 13872 grep -v '^ *+' conftest.er1 >conftest.err 13873 rm -f conftest.er1 13874 cat conftest.err >&5 13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13876 (exit $ac_status); } && 13877 { ac_try='test -z "$ac_f77_werror_flag" 13878 || test ! -s conftest.err' 13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13880 (eval $ac_try) 2>&5 13881 ac_status=$? 13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13883 (exit $ac_status); }; } && 13884 { ac_try='test -s conftest$ac_exeext' 13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13886 (eval $ac_try) 2>&5 13887 ac_status=$? 13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13889 (exit $ac_status); }; }; then 13890 13891aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13892}'` 13893# Check for a 64-bit object if we didn't find anything. 13894if 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; } 13895}'`; fi 13896else 13897 echo "$as_me: failed program was:" >&5 13898sed 's/^/| /' conftest.$ac_ext >&5 13899 13900fi 13901rm -f conftest.err conftest.$ac_objext \ 13902 conftest$ac_exeext conftest.$ac_ext 13903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13904 13905 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13906 # Warning - without using the other run time loading flags, 13907 # -berok will link without error, but may produce a broken library. 13908 no_undefined_flag_F77=' ${wl}-bernotok' 13909 allow_undefined_flag_F77=' ${wl}-berok' 13910 # Exported symbols can be pulled into shared objects from archives 13911 whole_archive_flag_spec_F77='$convenience' 13912 archive_cmds_need_lc_F77=yes 13913 # This is similar to how AIX traditionally builds its shared libraries. 13914 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13915 fi 13916 fi 13917 ;; 13918 13919 amigaos*) 13920 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)' 13921 hardcode_libdir_flag_spec_F77='-L$libdir' 13922 hardcode_minus_L_F77=yes 13923 # see comment about different semantics on the GNU ld section 13924 ld_shlibs_F77=no 13925 ;; 13926 13927 bsdi[45]*) 13928 export_dynamic_flag_spec_F77=-rdynamic 13929 ;; 13930 13931 cygwin* | mingw* | pw32*) 13932 # When not using gcc, we currently assume that we are using 13933 # Microsoft Visual C++. 13934 # hardcode_libdir_flag_spec is actually meaningless, as there is 13935 # no search path for DLLs. 13936 hardcode_libdir_flag_spec_F77=' ' 13937 allow_undefined_flag_F77=unsupported 13938 # Tell ltmain to make .lib files, not .a files. 13939 libext=lib 13940 # Tell ltmain to make .dll files, not .so files. 13941 shrext_cmds=".dll" 13942 # FIXME: Setting linknames here is a bad hack. 13943 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13944 # The linker will automatically build a .lib file if we build a DLL. 13945 old_archive_From_new_cmds_F77='true' 13946 # FIXME: Should let the user specify the lib program. 13947 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13948 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13949 enable_shared_with_static_runtimes_F77=yes 13950 ;; 13951 13952 darwin* | rhapsody*) 13953 case $host_os in 13954 rhapsody* | darwin1.[012]) 13955 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13956 ;; 13957 *) # Darwin 1.3 on 13958 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13959 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13960 else 13961 case ${MACOSX_DEPLOYMENT_TARGET} in 13962 10.[012]) 13963 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13964 ;; 13965 10.*) 13966 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13967 ;; 13968 esac 13969 fi 13970 ;; 13971 esac 13972 archive_cmds_need_lc_F77=no 13973 hardcode_direct_F77=no 13974 hardcode_automatic_F77=yes 13975 hardcode_shlibpath_var_F77=unsupported 13976 whole_archive_flag_spec_F77='' 13977 link_all_deplibs_F77=yes 13978 if test "$GCC" = yes ; then 13979 output_verbose_link_cmd='echo' 13980 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13981 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13982 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13983 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}' 13984 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}' 13985 else 13986 case $cc_basename in 13987 xlc*) 13988 output_verbose_link_cmd='echo' 13989 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 13990 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13991 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13992 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}' 13993 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}' 13994 ;; 13995 *) 13996 ld_shlibs_F77=no 13997 ;; 13998 esac 13999 fi 14000 ;; 14001 14002 dgux*) 14003 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14004 hardcode_libdir_flag_spec_F77='-L$libdir' 14005 hardcode_shlibpath_var_F77=no 14006 ;; 14007 14008 freebsd1*) 14009 ld_shlibs_F77=no 14010 ;; 14011 14012 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14013 # support. Future versions do this automatically, but an explicit c++rt0.o 14014 # does not break anything, and helps significantly (at the cost of a little 14015 # extra space). 14016 freebsd2.2*) 14017 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14018 hardcode_libdir_flag_spec_F77='-R$libdir' 14019 hardcode_direct_F77=yes 14020 hardcode_shlibpath_var_F77=no 14021 ;; 14022 14023 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14024 freebsd2*) 14025 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14026 hardcode_direct_F77=yes 14027 hardcode_minus_L_F77=yes 14028 hardcode_shlibpath_var_F77=no 14029 ;; 14030 14031 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14032 freebsd* | kfreebsd*-gnu | dragonfly*) 14033 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14034 hardcode_libdir_flag_spec_F77='-R$libdir' 14035 hardcode_direct_F77=yes 14036 hardcode_shlibpath_var_F77=no 14037 ;; 14038 14039 hpux9*) 14040 if test "$GCC" = yes; then 14041 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' 14042 else 14043 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' 14044 fi 14045 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14046 hardcode_libdir_separator_F77=: 14047 hardcode_direct_F77=yes 14048 14049 # hardcode_minus_L: Not really in the search PATH, 14050 # but as the default location of the library. 14051 hardcode_minus_L_F77=yes 14052 export_dynamic_flag_spec_F77='${wl}-E' 14053 ;; 14054 14055 hpux10*) 14056 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14057 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14058 else 14059 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14060 fi 14061 if test "$with_gnu_ld" = no; then 14062 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14063 hardcode_libdir_separator_F77=: 14064 14065 hardcode_direct_F77=yes 14066 export_dynamic_flag_spec_F77='${wl}-E' 14067 14068 # hardcode_minus_L: Not really in the search PATH, 14069 # but as the default location of the library. 14070 hardcode_minus_L_F77=yes 14071 fi 14072 ;; 14073 14074 hpux11*) 14075 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14076 case $host_cpu in 14077 hppa*64*) 14078 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14079 ;; 14080 ia64*) 14081 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14082 ;; 14083 *) 14084 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14085 ;; 14086 esac 14087 else 14088 case $host_cpu in 14089 hppa*64*) 14090 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14091 ;; 14092 ia64*) 14093 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14094 ;; 14095 *) 14096 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14097 ;; 14098 esac 14099 fi 14100 if test "$with_gnu_ld" = no; then 14101 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14102 hardcode_libdir_separator_F77=: 14103 14104 case $host_cpu in 14105 hppa*64*|ia64*) 14106 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14107 hardcode_direct_F77=no 14108 hardcode_shlibpath_var_F77=no 14109 ;; 14110 *) 14111 hardcode_direct_F77=yes 14112 export_dynamic_flag_spec_F77='${wl}-E' 14113 14114 # hardcode_minus_L: Not really in the search PATH, 14115 # but as the default location of the library. 14116 hardcode_minus_L_F77=yes 14117 ;; 14118 esac 14119 fi 14120 ;; 14121 14122 irix5* | irix6* | nonstopux*) 14123 if test "$GCC" = yes; then 14124 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' 14125 else 14126 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' 14127 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14128 fi 14129 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14130 hardcode_libdir_separator_F77=: 14131 link_all_deplibs_F77=yes 14132 ;; 14133 14134 netbsd*) 14135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14136 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14137 else 14138 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14139 fi 14140 hardcode_libdir_flag_spec_F77='-R$libdir' 14141 hardcode_direct_F77=yes 14142 hardcode_shlibpath_var_F77=no 14143 ;; 14144 14145 newsos6) 14146 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14147 hardcode_direct_F77=yes 14148 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14149 hardcode_libdir_separator_F77=: 14150 hardcode_shlibpath_var_F77=no 14151 ;; 14152 14153 openbsd*) 14154 hardcode_direct_F77=yes 14155 hardcode_shlibpath_var_F77=no 14156 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14157 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14158 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14159 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14160 export_dynamic_flag_spec_F77='${wl}-E' 14161 else 14162 case $host_os in 14163 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14164 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14165 hardcode_libdir_flag_spec_F77='-R$libdir' 14166 ;; 14167 *) 14168 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14169 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14170 ;; 14171 esac 14172 fi 14173 ;; 14174 14175 os2*) 14176 hardcode_libdir_flag_spec_F77='-L$libdir' 14177 hardcode_minus_L_F77=yes 14178 allow_undefined_flag_F77=unsupported 14179 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' 14180 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14181 ;; 14182 14183 osf3*) 14184 if test "$GCC" = yes; then 14185 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14186 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' 14187 else 14188 allow_undefined_flag_F77=' -expect_unresolved \*' 14189 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' 14190 fi 14191 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14192 hardcode_libdir_separator_F77=: 14193 ;; 14194 14195 osf4* | osf5*) # as osf3* with the addition of -msym flag 14196 if test "$GCC" = yes; then 14197 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14198 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' 14199 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14200 else 14201 allow_undefined_flag_F77=' -expect_unresolved \*' 14202 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' 14203 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~ 14204 $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' 14205 14206 # Both c and cxx compiler support -rpath directly 14207 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14208 fi 14209 hardcode_libdir_separator_F77=: 14210 ;; 14211 14212 solaris*) 14213 no_undefined_flag_F77=' -z text' 14214 if test "$GCC" = yes; then 14215 wlarc='${wl}' 14216 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14217 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14218 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14219 else 14220 wlarc='' 14221 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14222 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14223 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14224 fi 14225 hardcode_libdir_flag_spec_F77='-R$libdir' 14226 hardcode_shlibpath_var_F77=no 14227 case $host_os in 14228 solaris2.[0-5] | solaris2.[0-5].*) ;; 14229 *) 14230 # The compiler driver will combine linker options so we 14231 # cannot just pass the convience library names through 14232 # without $wl, iff we do not link with $LD. 14233 # Luckily, gcc supports the same syntax we need for Sun Studio. 14234 # Supported since Solaris 2.6 (maybe 2.5.1?) 14235 case $wlarc in 14236 '') 14237 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14238 *) 14239 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' ;; 14240 esac ;; 14241 esac 14242 link_all_deplibs_F77=yes 14243 ;; 14244 14245 sunos4*) 14246 if test "x$host_vendor" = xsequent; then 14247 # Use $CC to link under sequent, because it throws in some extra .o 14248 # files that make .init and .fini sections work. 14249 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14250 else 14251 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14252 fi 14253 hardcode_libdir_flag_spec_F77='-L$libdir' 14254 hardcode_direct_F77=yes 14255 hardcode_minus_L_F77=yes 14256 hardcode_shlibpath_var_F77=no 14257 ;; 14258 14259 sysv4) 14260 case $host_vendor in 14261 sni) 14262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14263 hardcode_direct_F77=yes # is this really true??? 14264 ;; 14265 siemens) 14266 ## LD is ld it makes a PLAMLIB 14267 ## CC just makes a GrossModule. 14268 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14269 reload_cmds_F77='$CC -r -o $output$reload_objs' 14270 hardcode_direct_F77=no 14271 ;; 14272 motorola) 14273 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14274 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14275 ;; 14276 esac 14277 runpath_var='LD_RUN_PATH' 14278 hardcode_shlibpath_var_F77=no 14279 ;; 14280 14281 sysv4.3*) 14282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14283 hardcode_shlibpath_var_F77=no 14284 export_dynamic_flag_spec_F77='-Bexport' 14285 ;; 14286 14287 sysv4*MP*) 14288 if test -d /usr/nec; then 14289 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14290 hardcode_shlibpath_var_F77=no 14291 runpath_var=LD_RUN_PATH 14292 hardcode_runpath_var=yes 14293 ld_shlibs_F77=yes 14294 fi 14295 ;; 14296 14297 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14298 no_undefined_flag_F77='${wl}-z,text' 14299 archive_cmds_need_lc_F77=no 14300 hardcode_shlibpath_var_F77=no 14301 runpath_var='LD_RUN_PATH' 14302 14303 if test "$GCC" = yes; then 14304 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14305 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14306 else 14307 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14308 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14309 fi 14310 ;; 14311 14312 sysv5* | sco3.2v5* | sco5v6*) 14313 # Note: We can NOT use -z defs as we might desire, because we do not 14314 # link with -lc, and that would cause any symbols used from libc to 14315 # always be unresolved, which means just about no library would 14316 # ever link correctly. If we're not using GNU ld we use -z text 14317 # though, which does catch some bad symbols but isn't as heavy-handed 14318 # as -z defs. 14319 no_undefined_flag_F77='${wl}-z,text' 14320 allow_undefined_flag_F77='${wl}-z,nodefs' 14321 archive_cmds_need_lc_F77=no 14322 hardcode_shlibpath_var_F77=no 14323 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14324 hardcode_libdir_separator_F77=':' 14325 link_all_deplibs_F77=yes 14326 export_dynamic_flag_spec_F77='${wl}-Bexport' 14327 runpath_var='LD_RUN_PATH' 14328 14329 if test "$GCC" = yes; then 14330 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14331 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14332 else 14333 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14334 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14335 fi 14336 ;; 14337 14338 uts4*) 14339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14340 hardcode_libdir_flag_spec_F77='-L$libdir' 14341 hardcode_shlibpath_var_F77=no 14342 ;; 14343 14344 *) 14345 ld_shlibs_F77=no 14346 ;; 14347 esac 14348 fi 14349 14350echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14351echo "${ECHO_T}$ld_shlibs_F77" >&6 14352test "$ld_shlibs_F77" = no && can_build_shared=no 14353 14354# 14355# Do we need to explicitly link libc? 14356# 14357case "x$archive_cmds_need_lc_F77" in 14358x|xyes) 14359 # Assume -lc should be added 14360 archive_cmds_need_lc_F77=yes 14361 14362 if test "$enable_shared" = yes && test "$GCC" = yes; then 14363 case $archive_cmds_F77 in 14364 *'~'*) 14365 # FIXME: we may have to deal with multi-command sequences. 14366 ;; 14367 '$CC '*) 14368 # Test whether the compiler implicitly links with -lc since on some 14369 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14370 # to ld, don't add -lc before -lgcc. 14371 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14372echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14373 $rm conftest* 14374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14375 14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14377 (eval $ac_compile) 2>&5 14378 ac_status=$? 14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14380 (exit $ac_status); } 2>conftest.err; then 14381 soname=conftest 14382 lib=conftest 14383 libobjs=conftest.$ac_objext 14384 deplibs= 14385 wl=$lt_prog_compiler_wl_F77 14386 pic_flag=$lt_prog_compiler_pic_F77 14387 compiler_flags=-v 14388 linker_flags=-v 14389 verstring= 14390 output_objdir=. 14391 libname=conftest 14392 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14393 allow_undefined_flag_F77= 14394 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14395 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14396 ac_status=$? 14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14398 (exit $ac_status); } 14399 then 14400 archive_cmds_need_lc_F77=no 14401 else 14402 archive_cmds_need_lc_F77=yes 14403 fi 14404 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14405 else 14406 cat conftest.err 1>&5 14407 fi 14408 $rm conftest* 14409 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14410echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14411 ;; 14412 esac 14413 fi 14414 ;; 14415esac 14416 14417echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14418echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14419library_names_spec= 14420libname_spec='lib$name' 14421soname_spec= 14422shrext_cmds=".so" 14423postinstall_cmds= 14424postuninstall_cmds= 14425finish_cmds= 14426finish_eval= 14427shlibpath_var= 14428shlibpath_overrides_runpath=unknown 14429version_type=none 14430dynamic_linker="$host_os ld.so" 14431sys_lib_dlsearch_path_spec="/lib /usr/lib" 14432if test "$GCC" = yes; then 14433 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14434 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14435 # if the path contains ";" then we assume it to be the separator 14436 # otherwise default to the standard path separator (i.e. ":") - it is 14437 # assumed that no part of a normal pathname contains ";" but that should 14438 # okay in the real world where ";" in dirpaths is itself problematic. 14439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14440 else 14441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14442 fi 14443else 14444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14445fi 14446need_lib_prefix=unknown 14447hardcode_into_libs=no 14448 14449# when you set need_version to no, make sure it does not cause -set_version 14450# flags to be left without arguments 14451need_version=unknown 14452 14453case $host_os in 14454aix3*) 14455 version_type=linux 14456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14457 shlibpath_var=LIBPATH 14458 14459 # AIX 3 has no versioning support, so we append a major version to the name. 14460 soname_spec='${libname}${release}${shared_ext}$major' 14461 ;; 14462 14463aix4* | aix5*) 14464 version_type=linux 14465 need_lib_prefix=no 14466 need_version=no 14467 hardcode_into_libs=yes 14468 if test "$host_cpu" = ia64; then 14469 # AIX 5 supports IA64 14470 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14471 shlibpath_var=LD_LIBRARY_PATH 14472 else 14473 # With GCC up to 2.95.x, collect2 would create an import file 14474 # for dependence libraries. The import file would start with 14475 # the line `#! .'. This would cause the generated library to 14476 # depend on `.', always an invalid library. This was fixed in 14477 # development snapshots of GCC prior to 3.0. 14478 case $host_os in 14479 aix4 | aix4.[01] | aix4.[01].*) 14480 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14481 echo ' yes ' 14482 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14483 : 14484 else 14485 can_build_shared=no 14486 fi 14487 ;; 14488 esac 14489 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14490 # soname into executable. Probably we can add versioning support to 14491 # collect2, so additional links can be useful in future. 14492 if test "$aix_use_runtimelinking" = yes; then 14493 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14494 # instead of lib<name>.a to let people know that these are not 14495 # typical AIX shared libraries. 14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14497 else 14498 # We preserve .a as extension for shared libraries through AIX4.2 14499 # and later when we are not doing run time linking. 14500 library_names_spec='${libname}${release}.a $libname.a' 14501 soname_spec='${libname}${release}${shared_ext}$major' 14502 fi 14503 shlibpath_var=LIBPATH 14504 fi 14505 ;; 14506 14507amigaos*) 14508 library_names_spec='$libname.ixlibrary $libname.a' 14509 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14510 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' 14511 ;; 14512 14513beos*) 14514 library_names_spec='${libname}${shared_ext}' 14515 dynamic_linker="$host_os ld.so" 14516 shlibpath_var=LIBRARY_PATH 14517 ;; 14518 14519bsdi[45]*) 14520 version_type=linux 14521 need_version=no 14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14523 soname_spec='${libname}${release}${shared_ext}$major' 14524 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14525 shlibpath_var=LD_LIBRARY_PATH 14526 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14527 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14528 # the default ld.so.conf also contains /usr/contrib/lib and 14529 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14530 # libtool to hard-code these into programs 14531 ;; 14532 14533cygwin* | mingw* | pw32*) 14534 version_type=windows 14535 shrext_cmds=".dll" 14536 need_version=no 14537 need_lib_prefix=no 14538 14539 case $GCC,$host_os in 14540 yes,cygwin* | yes,mingw* | yes,pw32*) 14541 library_names_spec='$libname.dll.a' 14542 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14543 postinstall_cmds='base_file=`basename \${file}`~ 14544 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14545 dldir=$destdir/`dirname \$dlpath`~ 14546 test -d \$dldir || mkdir -p \$dldir~ 14547 $install_prog $dir/$dlname \$dldir/$dlname~ 14548 chmod a+x \$dldir/$dlname' 14549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14550 dlpath=$dir/\$dldll~ 14551 $rm \$dlpath' 14552 shlibpath_overrides_runpath=yes 14553 14554 case $host_os in 14555 cygwin*) 14556 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14557 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14558 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14559 ;; 14560 mingw*) 14561 # MinGW DLLs use traditional 'lib' prefix 14562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14563 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14564 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14565 # It is most probably a Windows format PATH printed by 14566 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14567 # path with ; separators, and with drive letters. We can handle the 14568 # drive letters (cygwin fileutils understands them), so leave them, 14569 # especially as we might pass files found there to a mingw objdump, 14570 # which wouldn't understand a cygwinified path. Ahh. 14571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14572 else 14573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14574 fi 14575 ;; 14576 pw32*) 14577 # pw32 DLLs use 'pw' prefix rather than 'lib' 14578 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14579 ;; 14580 esac 14581 ;; 14582 14583 *) 14584 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14585 ;; 14586 esac 14587 dynamic_linker='Win32 ld.exe' 14588 # FIXME: first we should search . and the directory the executable is in 14589 shlibpath_var=PATH 14590 ;; 14591 14592darwin* | rhapsody*) 14593 dynamic_linker="$host_os dyld" 14594 version_type=darwin 14595 need_lib_prefix=no 14596 need_version=no 14597 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14598 soname_spec='${libname}${release}${major}$shared_ext' 14599 shlibpath_overrides_runpath=yes 14600 shlibpath_var=DYLD_LIBRARY_PATH 14601 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14602 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14603 if test "$GCC" = yes; then 14604 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"` 14605 else 14606 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14607 fi 14608 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14609 ;; 14610 14611dgux*) 14612 version_type=linux 14613 need_lib_prefix=no 14614 need_version=no 14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14616 soname_spec='${libname}${release}${shared_ext}$major' 14617 shlibpath_var=LD_LIBRARY_PATH 14618 ;; 14619 14620freebsd1*) 14621 dynamic_linker=no 14622 ;; 14623 14624kfreebsd*-gnu) 14625 version_type=linux 14626 need_lib_prefix=no 14627 need_version=no 14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14629 soname_spec='${libname}${release}${shared_ext}$major' 14630 shlibpath_var=LD_LIBRARY_PATH 14631 shlibpath_overrides_runpath=no 14632 hardcode_into_libs=yes 14633 dynamic_linker='GNU ld.so' 14634 ;; 14635 14636freebsd* | dragonfly*) 14637 # DragonFly does not have aout. When/if they implement a new 14638 # versioning mechanism, adjust this. 14639 if test -x /usr/bin/objformat; then 14640 objformat=`/usr/bin/objformat` 14641 else 14642 case $host_os in 14643 freebsd[123]*) objformat=aout ;; 14644 *) objformat=elf ;; 14645 esac 14646 fi 14647 version_type=freebsd-$objformat 14648 case $version_type in 14649 freebsd-elf*) 14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14651 need_version=no 14652 need_lib_prefix=no 14653 ;; 14654 freebsd-*) 14655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14656 need_version=yes 14657 ;; 14658 esac 14659 shlibpath_var=LD_LIBRARY_PATH 14660 case $host_os in 14661 freebsd2*) 14662 shlibpath_overrides_runpath=yes 14663 ;; 14664 freebsd3.[01]* | freebsdelf3.[01]*) 14665 shlibpath_overrides_runpath=yes 14666 hardcode_into_libs=yes 14667 ;; 14668 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14669 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14670 shlibpath_overrides_runpath=no 14671 hardcode_into_libs=yes 14672 ;; 14673 freebsd*) # from 4.6 on 14674 shlibpath_overrides_runpath=yes 14675 hardcode_into_libs=yes 14676 ;; 14677 esac 14678 ;; 14679 14680gnu*) 14681 version_type=linux 14682 need_lib_prefix=no 14683 need_version=no 14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14685 soname_spec='${libname}${release}${shared_ext}$major' 14686 shlibpath_var=LD_LIBRARY_PATH 14687 hardcode_into_libs=yes 14688 ;; 14689 14690hpux9* | hpux10* | hpux11*) 14691 # Give a soname corresponding to the major version so that dld.sl refuses to 14692 # link against other versions. 14693 version_type=sunos 14694 need_lib_prefix=no 14695 need_version=no 14696 case $host_cpu in 14697 ia64*) 14698 shrext_cmds='.so' 14699 hardcode_into_libs=yes 14700 dynamic_linker="$host_os dld.so" 14701 shlibpath_var=LD_LIBRARY_PATH 14702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14704 soname_spec='${libname}${release}${shared_ext}$major' 14705 if test "X$HPUX_IA64_MODE" = X32; then 14706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14707 else 14708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14709 fi 14710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14711 ;; 14712 hppa*64*) 14713 shrext_cmds='.sl' 14714 hardcode_into_libs=yes 14715 dynamic_linker="$host_os dld.sl" 14716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14719 soname_spec='${libname}${release}${shared_ext}$major' 14720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14722 ;; 14723 *) 14724 shrext_cmds='.sl' 14725 dynamic_linker="$host_os dld.sl" 14726 shlibpath_var=SHLIB_PATH 14727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14729 soname_spec='${libname}${release}${shared_ext}$major' 14730 ;; 14731 esac 14732 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14733 postinstall_cmds='chmod 555 $lib' 14734 ;; 14735 14736interix3*) 14737 version_type=linux 14738 need_lib_prefix=no 14739 need_version=no 14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14741 soname_spec='${libname}${release}${shared_ext}$major' 14742 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14743 shlibpath_var=LD_LIBRARY_PATH 14744 shlibpath_overrides_runpath=no 14745 hardcode_into_libs=yes 14746 ;; 14747 14748irix5* | irix6* | nonstopux*) 14749 case $host_os in 14750 nonstopux*) version_type=nonstopux ;; 14751 *) 14752 if test "$lt_cv_prog_gnu_ld" = yes; then 14753 version_type=linux 14754 else 14755 version_type=irix 14756 fi ;; 14757 esac 14758 need_lib_prefix=no 14759 need_version=no 14760 soname_spec='${libname}${release}${shared_ext}$major' 14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14762 case $host_os in 14763 irix5* | nonstopux*) 14764 libsuff= shlibsuff= 14765 ;; 14766 *) 14767 case $LD in # libtool.m4 will add one of these switches to LD 14768 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14769 libsuff= shlibsuff= libmagic=32-bit;; 14770 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14771 libsuff=32 shlibsuff=N32 libmagic=N32;; 14772 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14773 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14774 *) libsuff= shlibsuff= libmagic=never-match;; 14775 esac 14776 ;; 14777 esac 14778 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14779 shlibpath_overrides_runpath=no 14780 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14781 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14782 hardcode_into_libs=yes 14783 ;; 14784 14785# No shared lib support for Linux oldld, aout, or coff. 14786linux*oldld* | linux*aout* | linux*coff*) 14787 dynamic_linker=no 14788 ;; 14789 14790# This must be Linux ELF. 14791linux*) 14792 version_type=linux 14793 need_lib_prefix=no 14794 need_version=no 14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14796 soname_spec='${libname}${release}${shared_ext}$major' 14797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14798 shlibpath_var=LD_LIBRARY_PATH 14799 shlibpath_overrides_runpath=no 14800 # This implies no fast_install, which is unacceptable. 14801 # Some rework will be needed to allow for fast_install 14802 # before this can be enabled. 14803 hardcode_into_libs=yes 14804 14805 # find out which ABI we are using 14806 libsuff= 14807 case "$host_cpu" in 14808 x86_64*|s390x*|powerpc64*) 14809 echo '#line 14809 "configure"' > conftest.$ac_ext 14810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14811 (eval $ac_compile) 2>&5 14812 ac_status=$? 14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14814 (exit $ac_status); }; then 14815 case `/usr/bin/file conftest.$ac_objext` in 14816 *64-bit*) 14817 libsuff=64 14818 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14819 ;; 14820 esac 14821 fi 14822 rm -rf conftest* 14823 ;; 14824 esac 14825 14826 # Append ld.so.conf contents to the search path 14827 if test -f /etc/ld.so.conf; then 14828 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' ' '` 14829 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14830 fi 14831 14832 # We used to test for /lib/ld.so.1 and disable shared libraries on 14833 # powerpc, because MkLinux only supported shared libraries with the 14834 # GNU dynamic linker. Since this was broken with cross compilers, 14835 # most powerpc-linux boxes support dynamic linking these days and 14836 # people can always --disable-shared, the test was removed, and we 14837 # assume the GNU/Linux dynamic linker is in use. 14838 dynamic_linker='GNU/Linux ld.so' 14839 ;; 14840 14841knetbsd*-gnu) 14842 version_type=linux 14843 need_lib_prefix=no 14844 need_version=no 14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14846 soname_spec='${libname}${release}${shared_ext}$major' 14847 shlibpath_var=LD_LIBRARY_PATH 14848 shlibpath_overrides_runpath=no 14849 hardcode_into_libs=yes 14850 dynamic_linker='GNU ld.so' 14851 ;; 14852 14853netbsd*) 14854 version_type=sunos 14855 need_lib_prefix=no 14856 need_version=no 14857 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14860 dynamic_linker='NetBSD (a.out) ld.so' 14861 else 14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14863 soname_spec='${libname}${release}${shared_ext}$major' 14864 dynamic_linker='NetBSD ld.elf_so' 14865 fi 14866 shlibpath_var=LD_LIBRARY_PATH 14867 shlibpath_overrides_runpath=yes 14868 hardcode_into_libs=yes 14869 ;; 14870 14871newsos6) 14872 version_type=linux 14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14874 shlibpath_var=LD_LIBRARY_PATH 14875 shlibpath_overrides_runpath=yes 14876 ;; 14877 14878nto-qnx*) 14879 version_type=linux 14880 need_lib_prefix=no 14881 need_version=no 14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14883 soname_spec='${libname}${release}${shared_ext}$major' 14884 shlibpath_var=LD_LIBRARY_PATH 14885 shlibpath_overrides_runpath=yes 14886 ;; 14887 14888openbsd*) 14889 version_type=sunos 14890 sys_lib_dlsearch_path_spec="/usr/lib" 14891 need_lib_prefix=no 14892 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14893 case $host_os in 14894 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14895 *) need_version=no ;; 14896 esac 14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14899 shlibpath_var=LD_LIBRARY_PATH 14900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14901 case $host_os in 14902 openbsd2.[89] | openbsd2.[89].*) 14903 shlibpath_overrides_runpath=no 14904 ;; 14905 *) 14906 shlibpath_overrides_runpath=yes 14907 ;; 14908 esac 14909 else 14910 shlibpath_overrides_runpath=yes 14911 fi 14912 ;; 14913 14914os2*) 14915 libname_spec='$name' 14916 shrext_cmds=".dll" 14917 need_lib_prefix=no 14918 library_names_spec='$libname${shared_ext} $libname.a' 14919 dynamic_linker='OS/2 ld.exe' 14920 shlibpath_var=LIBPATH 14921 ;; 14922 14923osf3* | osf4* | osf5*) 14924 version_type=osf 14925 need_lib_prefix=no 14926 need_version=no 14927 soname_spec='${libname}${release}${shared_ext}$major' 14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14929 shlibpath_var=LD_LIBRARY_PATH 14930 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14931 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14932 ;; 14933 14934solaris*) 14935 version_type=linux 14936 need_lib_prefix=no 14937 need_version=no 14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14939 soname_spec='${libname}${release}${shared_ext}$major' 14940 shlibpath_var=LD_LIBRARY_PATH 14941 shlibpath_overrides_runpath=yes 14942 hardcode_into_libs=yes 14943 # ldd complains unless libraries are executable 14944 postinstall_cmds='chmod +x $lib' 14945 ;; 14946 14947sunos4*) 14948 version_type=sunos 14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14950 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14951 shlibpath_var=LD_LIBRARY_PATH 14952 shlibpath_overrides_runpath=yes 14953 if test "$with_gnu_ld" = yes; then 14954 need_lib_prefix=no 14955 fi 14956 need_version=yes 14957 ;; 14958 14959sysv4 | sysv4.3*) 14960 version_type=linux 14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14962 soname_spec='${libname}${release}${shared_ext}$major' 14963 shlibpath_var=LD_LIBRARY_PATH 14964 case $host_vendor in 14965 sni) 14966 shlibpath_overrides_runpath=no 14967 need_lib_prefix=no 14968 export_dynamic_flag_spec='${wl}-Blargedynsym' 14969 runpath_var=LD_RUN_PATH 14970 ;; 14971 siemens) 14972 need_lib_prefix=no 14973 ;; 14974 motorola) 14975 need_lib_prefix=no 14976 need_version=no 14977 shlibpath_overrides_runpath=no 14978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14979 ;; 14980 esac 14981 ;; 14982 14983sysv4*MP*) 14984 if test -d /usr/nec ;then 14985 version_type=linux 14986 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14987 soname_spec='$libname${shared_ext}.$major' 14988 shlibpath_var=LD_LIBRARY_PATH 14989 fi 14990 ;; 14991 14992sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14993 version_type=freebsd-elf 14994 need_lib_prefix=no 14995 need_version=no 14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14997 soname_spec='${libname}${release}${shared_ext}$major' 14998 shlibpath_var=LD_LIBRARY_PATH 14999 hardcode_into_libs=yes 15000 if test "$with_gnu_ld" = yes; then 15001 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15002 shlibpath_overrides_runpath=no 15003 else 15004 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15005 shlibpath_overrides_runpath=yes 15006 case $host_os in 15007 sco3.2v5*) 15008 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15009 ;; 15010 esac 15011 fi 15012 sys_lib_dlsearch_path_spec='/usr/lib' 15013 ;; 15014 15015uts4*) 15016 version_type=linux 15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15018 soname_spec='${libname}${release}${shared_ext}$major' 15019 shlibpath_var=LD_LIBRARY_PATH 15020 ;; 15021 15022*) 15023 dynamic_linker=no 15024 ;; 15025esac 15026echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15027echo "${ECHO_T}$dynamic_linker" >&6 15028test "$dynamic_linker" = no && can_build_shared=no 15029 15030variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15031if test "$GCC" = yes; then 15032 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15033fi 15034 15035echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15036echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15037hardcode_action_F77= 15038if test -n "$hardcode_libdir_flag_spec_F77" || \ 15039 test -n "$runpath_var_F77" || \ 15040 test "X$hardcode_automatic_F77" = "Xyes" ; then 15041 15042 # We can hardcode non-existant directories. 15043 if test "$hardcode_direct_F77" != no && 15044 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15045 # have to relink, otherwise we might link with an installed library 15046 # when we should be linking with a yet-to-be-installed one 15047 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15048 test "$hardcode_minus_L_F77" != no; then 15049 # Linking always hardcodes the temporary library directory. 15050 hardcode_action_F77=relink 15051 else 15052 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15053 hardcode_action_F77=immediate 15054 fi 15055else 15056 # We cannot hardcode anything, or else we can only hardcode existing 15057 # directories. 15058 hardcode_action_F77=unsupported 15059fi 15060echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15061echo "${ECHO_T}$hardcode_action_F77" >&6 15062 15063if test "$hardcode_action_F77" = relink; then 15064 # Fast installation is not supported 15065 enable_fast_install=no 15066elif test "$shlibpath_overrides_runpath" = yes || 15067 test "$enable_shared" = no; then 15068 # Fast installation is not necessary 15069 enable_fast_install=needless 15070fi 15071 15072 15073# The else clause should only fire when bootstrapping the 15074# libtool distribution, otherwise you forgot to ship ltmain.sh 15075# with your package, and you will get complaints that there are 15076# no rules to generate ltmain.sh. 15077if test -f "$ltmain"; then 15078 # See if we are running on zsh, and set the options which allow our commands through 15079 # without removal of \ escapes. 15080 if test -n "${ZSH_VERSION+set}" ; then 15081 setopt NO_GLOB_SUBST 15082 fi 15083 # Now quote all the things that may contain metacharacters while being 15084 # careful not to overquote the AC_SUBSTed values. We take copies of the 15085 # variables and quote the copies for generation of the libtool script. 15086 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15087 SED SHELL STRIP \ 15088 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15089 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15090 deplibs_check_method reload_flag reload_cmds need_locks \ 15091 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15092 lt_cv_sys_global_symbol_to_c_name_address \ 15093 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15094 old_postinstall_cmds old_postuninstall_cmds \ 15095 compiler_F77 \ 15096 CC_F77 \ 15097 LD_F77 \ 15098 lt_prog_compiler_wl_F77 \ 15099 lt_prog_compiler_pic_F77 \ 15100 lt_prog_compiler_static_F77 \ 15101 lt_prog_compiler_no_builtin_flag_F77 \ 15102 export_dynamic_flag_spec_F77 \ 15103 thread_safe_flag_spec_F77 \ 15104 whole_archive_flag_spec_F77 \ 15105 enable_shared_with_static_runtimes_F77 \ 15106 old_archive_cmds_F77 \ 15107 old_archive_from_new_cmds_F77 \ 15108 predep_objects_F77 \ 15109 postdep_objects_F77 \ 15110 predeps_F77 \ 15111 postdeps_F77 \ 15112 compiler_lib_search_path_F77 \ 15113 archive_cmds_F77 \ 15114 archive_expsym_cmds_F77 \ 15115 postinstall_cmds_F77 \ 15116 postuninstall_cmds_F77 \ 15117 old_archive_from_expsyms_cmds_F77 \ 15118 allow_undefined_flag_F77 \ 15119 no_undefined_flag_F77 \ 15120 export_symbols_cmds_F77 \ 15121 hardcode_libdir_flag_spec_F77 \ 15122 hardcode_libdir_flag_spec_ld_F77 \ 15123 hardcode_libdir_separator_F77 \ 15124 hardcode_automatic_F77 \ 15125 module_cmds_F77 \ 15126 module_expsym_cmds_F77 \ 15127 lt_cv_prog_compiler_c_o_F77 \ 15128 exclude_expsyms_F77 \ 15129 include_expsyms_F77; do 15130 15131 case $var in 15132 old_archive_cmds_F77 | \ 15133 old_archive_from_new_cmds_F77 | \ 15134 archive_cmds_F77 | \ 15135 archive_expsym_cmds_F77 | \ 15136 module_cmds_F77 | \ 15137 module_expsym_cmds_F77 | \ 15138 old_archive_from_expsyms_cmds_F77 | \ 15139 export_symbols_cmds_F77 | \ 15140 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15141 postinstall_cmds | postuninstall_cmds | \ 15142 old_postinstall_cmds | old_postuninstall_cmds | \ 15143 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15144 # Double-quote double-evaled strings. 15145 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15146 ;; 15147 *) 15148 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15149 ;; 15150 esac 15151 done 15152 15153 case $lt_echo in 15154 *'\$0 --fallback-echo"') 15155 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15156 ;; 15157 esac 15158 15159cfgfile="$ofile" 15160 15161 cat <<__EOF__ >> "$cfgfile" 15162# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15163 15164# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15165 15166# Shell to use when invoking shell scripts. 15167SHELL=$lt_SHELL 15168 15169# Whether or not to build shared libraries. 15170build_libtool_libs=$enable_shared 15171 15172# Whether or not to build static libraries. 15173build_old_libs=$enable_static 15174 15175# Whether or not to add -lc for building shared libraries. 15176build_libtool_need_lc=$archive_cmds_need_lc_F77 15177 15178# Whether or not to disallow shared libs when runtime libs are static 15179allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15180 15181# Whether or not to optimize for fast installation. 15182fast_install=$enable_fast_install 15183 15184# The host system. 15185host_alias=$host_alias 15186host=$host 15187host_os=$host_os 15188 15189# The build system. 15190build_alias=$build_alias 15191build=$build 15192build_os=$build_os 15193 15194# An echo program that does not interpret backslashes. 15195echo=$lt_echo 15196 15197# The archiver. 15198AR=$lt_AR 15199AR_FLAGS=$lt_AR_FLAGS 15200 15201# A C compiler. 15202LTCC=$lt_LTCC 15203 15204# LTCC compiler flags. 15205LTCFLAGS=$lt_LTCFLAGS 15206 15207# A language-specific compiler. 15208CC=$lt_compiler_F77 15209 15210# Is the compiler the GNU C compiler? 15211with_gcc=$GCC_F77 15212 15213# An ERE matcher. 15214EGREP=$lt_EGREP 15215 15216# The linker used to build libraries. 15217LD=$lt_LD_F77 15218 15219# Whether we need hard or soft links. 15220LN_S=$lt_LN_S 15221 15222# A BSD-compatible nm program. 15223NM=$lt_NM 15224 15225# A symbol stripping program 15226STRIP=$lt_STRIP 15227 15228# Used to examine libraries when file_magic_cmd begins "file" 15229MAGIC_CMD=$MAGIC_CMD 15230 15231# Used on cygwin: DLL creation program. 15232DLLTOOL="$DLLTOOL" 15233 15234# Used on cygwin: object dumper. 15235OBJDUMP="$OBJDUMP" 15236 15237# Used on cygwin: assembler. 15238AS="$AS" 15239 15240# The name of the directory that contains temporary libtool files. 15241objdir=$objdir 15242 15243# How to create reloadable object files. 15244reload_flag=$lt_reload_flag 15245reload_cmds=$lt_reload_cmds 15246 15247# How to pass a linker flag through the compiler. 15248wl=$lt_lt_prog_compiler_wl_F77 15249 15250# Object file suffix (normally "o"). 15251objext="$ac_objext" 15252 15253# Old archive suffix (normally "a"). 15254libext="$libext" 15255 15256# Shared library suffix (normally ".so"). 15257shrext_cmds='$shrext_cmds' 15258 15259# Executable file suffix (normally ""). 15260exeext="$exeext" 15261 15262# Additional compiler flags for building library objects. 15263pic_flag=$lt_lt_prog_compiler_pic_F77 15264pic_mode=$pic_mode 15265 15266# What is the maximum length of a command? 15267max_cmd_len=$lt_cv_sys_max_cmd_len 15268 15269# Does compiler simultaneously support -c and -o options? 15270compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15271 15272# Must we lock files when doing compilation? 15273need_locks=$lt_need_locks 15274 15275# Do we need the lib prefix for modules? 15276need_lib_prefix=$need_lib_prefix 15277 15278# Do we need a version for libraries? 15279need_version=$need_version 15280 15281# Whether dlopen is supported. 15282dlopen_support=$enable_dlopen 15283 15284# Whether dlopen of programs is supported. 15285dlopen_self=$enable_dlopen_self 15286 15287# Whether dlopen of statically linked programs is supported. 15288dlopen_self_static=$enable_dlopen_self_static 15289 15290# Compiler flag to prevent dynamic linking. 15291link_static_flag=$lt_lt_prog_compiler_static_F77 15292 15293# Compiler flag to turn off builtin functions. 15294no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15295 15296# Compiler flag to allow reflexive dlopens. 15297export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15298 15299# Compiler flag to generate shared objects directly from archives. 15300whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15301 15302# Compiler flag to generate thread-safe objects. 15303thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15304 15305# Library versioning type. 15306version_type=$version_type 15307 15308# Format of library name prefix. 15309libname_spec=$lt_libname_spec 15310 15311# List of archive names. First name is the real one, the rest are links. 15312# The last name is the one that the linker finds with -lNAME. 15313library_names_spec=$lt_library_names_spec 15314 15315# The coded name of the library, if different from the real name. 15316soname_spec=$lt_soname_spec 15317 15318# Commands used to build and install an old-style archive. 15319RANLIB=$lt_RANLIB 15320old_archive_cmds=$lt_old_archive_cmds_F77 15321old_postinstall_cmds=$lt_old_postinstall_cmds 15322old_postuninstall_cmds=$lt_old_postuninstall_cmds 15323 15324# Create an old-style archive from a shared archive. 15325old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15326 15327# Create a temporary old-style archive to link instead of a shared archive. 15328old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15329 15330# Commands used to build and install a shared archive. 15331archive_cmds=$lt_archive_cmds_F77 15332archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15333postinstall_cmds=$lt_postinstall_cmds 15334postuninstall_cmds=$lt_postuninstall_cmds 15335 15336# Commands used to build a loadable module (assumed same as above if empty) 15337module_cmds=$lt_module_cmds_F77 15338module_expsym_cmds=$lt_module_expsym_cmds_F77 15339 15340# Commands to strip libraries. 15341old_striplib=$lt_old_striplib 15342striplib=$lt_striplib 15343 15344# Dependencies to place before the objects being linked to create a 15345# shared library. 15346predep_objects=$lt_predep_objects_F77 15347 15348# Dependencies to place after the objects being linked to create a 15349# shared library. 15350postdep_objects=$lt_postdep_objects_F77 15351 15352# Dependencies to place before the objects being linked to create a 15353# shared library. 15354predeps=$lt_predeps_F77 15355 15356# Dependencies to place after the objects being linked to create a 15357# shared library. 15358postdeps=$lt_postdeps_F77 15359 15360# The library search path used internally by the compiler when linking 15361# a shared library. 15362compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15363 15364# Method to check whether dependent libraries are shared objects. 15365deplibs_check_method=$lt_deplibs_check_method 15366 15367# Command to use when deplibs_check_method == file_magic. 15368file_magic_cmd=$lt_file_magic_cmd 15369 15370# Flag that allows shared libraries with undefined symbols to be built. 15371allow_undefined_flag=$lt_allow_undefined_flag_F77 15372 15373# Flag that forces no undefined symbols. 15374no_undefined_flag=$lt_no_undefined_flag_F77 15375 15376# Commands used to finish a libtool library installation in a directory. 15377finish_cmds=$lt_finish_cmds 15378 15379# Same as above, but a single script fragment to be evaled but not shown. 15380finish_eval=$lt_finish_eval 15381 15382# Take the output of nm and produce a listing of raw symbols and C names. 15383global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15384 15385# Transform the output of nm in a proper C declaration 15386global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15387 15388# Transform the output of nm in a C name address pair 15389global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15390 15391# This is the shared library runtime path variable. 15392runpath_var=$runpath_var 15393 15394# This is the shared library path variable. 15395shlibpath_var=$shlibpath_var 15396 15397# Is shlibpath searched before the hard-coded library search path? 15398shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15399 15400# How to hardcode a shared library path into an executable. 15401hardcode_action=$hardcode_action_F77 15402 15403# Whether we should hardcode library paths into libraries. 15404hardcode_into_libs=$hardcode_into_libs 15405 15406# Flag to hardcode \$libdir into a binary during linking. 15407# This must work even if \$libdir does not exist. 15408hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15409 15410# If ld is used when linking, flag to hardcode \$libdir into 15411# a binary during linking. This must work even if \$libdir does 15412# not exist. 15413hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15414 15415# Whether we need a single -rpath flag with a separated argument. 15416hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15417 15418# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15419# resulting binary. 15420hardcode_direct=$hardcode_direct_F77 15421 15422# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15423# resulting binary. 15424hardcode_minus_L=$hardcode_minus_L_F77 15425 15426# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15427# the resulting binary. 15428hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15429 15430# Set to yes if building a shared library automatically hardcodes DIR into the library 15431# and all subsequent libraries and executables linked against it. 15432hardcode_automatic=$hardcode_automatic_F77 15433 15434# Variables whose values should be saved in libtool wrapper scripts and 15435# restored at relink time. 15436variables_saved_for_relink="$variables_saved_for_relink" 15437 15438# Whether libtool must link a program against all its dependency libraries. 15439link_all_deplibs=$link_all_deplibs_F77 15440 15441# Compile-time system search path for libraries 15442sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15443 15444# Run-time system search path for libraries 15445sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15446 15447# Fix the shell variable \$srcfile for the compiler. 15448fix_srcfile_path="$fix_srcfile_path_F77" 15449 15450# Set to yes if exported symbols are required. 15451always_export_symbols=$always_export_symbols_F77 15452 15453# The commands to list exported symbols. 15454export_symbols_cmds=$lt_export_symbols_cmds_F77 15455 15456# The commands to extract the exported symbol list from a shared archive. 15457extract_expsyms_cmds=$lt_extract_expsyms_cmds 15458 15459# Symbols that should not be listed in the preloaded symbols. 15460exclude_expsyms=$lt_exclude_expsyms_F77 15461 15462# Symbols that must always be exported. 15463include_expsyms=$lt_include_expsyms_F77 15464 15465# ### END LIBTOOL TAG CONFIG: $tagname 15466 15467__EOF__ 15468 15469 15470else 15471 # If there is no Makefile yet, we rely on a make rule to execute 15472 # `config.status --recheck' to rerun these tests and create the 15473 # libtool script then. 15474 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15475 if test -f "$ltmain_in"; then 15476 test -f Makefile && make "$ltmain" 15477 fi 15478fi 15479 15480 15481ac_ext=c 15482ac_cpp='$CPP $CPPFLAGS' 15483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15485ac_compiler_gnu=$ac_cv_c_compiler_gnu 15486 15487CC="$lt_save_CC" 15488 15489 else 15490 tagname="" 15491 fi 15492 ;; 15493 15494 GCJ) 15495 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15496 15497 15498 15499# Source file extension for Java test sources. 15500ac_ext=java 15501 15502# Object file extension for compiled Java test sources. 15503objext=o 15504objext_GCJ=$objext 15505 15506# Code to be used in simple compile tests 15507lt_simple_compile_test_code="class foo {}\n" 15508 15509# Code to be used in simple link tests 15510lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15511 15512# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15513 15514# If no C compiler was specified, use CC. 15515LTCC=${LTCC-"$CC"} 15516 15517# If no C compiler flags were specified, use CFLAGS. 15518LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15519 15520# Allow CC to be a program name with arguments. 15521compiler=$CC 15522 15523 15524# save warnings/boilerplate of simple test code 15525ac_outfile=conftest.$ac_objext 15526printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15527eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15528_lt_compiler_boilerplate=`cat conftest.err` 15529$rm conftest* 15530 15531ac_outfile=conftest.$ac_objext 15532printf "$lt_simple_link_test_code" >conftest.$ac_ext 15533eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15534_lt_linker_boilerplate=`cat conftest.err` 15535$rm conftest* 15536 15537 15538# Allow CC to be a program name with arguments. 15539lt_save_CC="$CC" 15540CC=${GCJ-"gcj"} 15541compiler=$CC 15542compiler_GCJ=$CC 15543for cc_temp in $compiler""; do 15544 case $cc_temp in 15545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15547 \-*) ;; 15548 *) break;; 15549 esac 15550done 15551cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15552 15553 15554# GCJ did not exist at the time GCC didn't implicitly link libc in. 15555archive_cmds_need_lc_GCJ=no 15556 15557old_archive_cmds_GCJ=$old_archive_cmds 15558 15559 15560lt_prog_compiler_no_builtin_flag_GCJ= 15561 15562if test "$GCC" = yes; then 15563 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15564 15565 15566echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15567echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15568if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15569 echo $ECHO_N "(cached) $ECHO_C" >&6 15570else 15571 lt_cv_prog_compiler_rtti_exceptions=no 15572 ac_outfile=conftest.$ac_objext 15573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15574 lt_compiler_flag="-fno-rtti -fno-exceptions" 15575 # Insert the option either (1) after the last *FLAGS variable, or 15576 # (2) before a word containing "conftest.", or (3) at the end. 15577 # Note that $ac_compile itself does not contain backslashes and begins 15578 # with a dollar sign (not a hyphen), so the echo should work correctly. 15579 # The option is referenced via a variable to avoid confusing sed. 15580 lt_compile=`echo "$ac_compile" | $SED \ 15581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15583 -e 's:$: $lt_compiler_flag:'` 15584 (eval echo "\"\$as_me:15584: $lt_compile\"" >&5) 15585 (eval "$lt_compile" 2>conftest.err) 15586 ac_status=$? 15587 cat conftest.err >&5 15588 echo "$as_me:15588: \$? = $ac_status" >&5 15589 if (exit $ac_status) && test -s "$ac_outfile"; then 15590 # The compiler can only warn and ignore the option if not recognized 15591 # So say no if there are warnings other than the usual output. 15592 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15595 lt_cv_prog_compiler_rtti_exceptions=yes 15596 fi 15597 fi 15598 $rm conftest* 15599 15600fi 15601echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15602echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15603 15604if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15605 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15606else 15607 : 15608fi 15609 15610fi 15611 15612lt_prog_compiler_wl_GCJ= 15613lt_prog_compiler_pic_GCJ= 15614lt_prog_compiler_static_GCJ= 15615 15616echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15617echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15618 15619 if test "$GCC" = yes; then 15620 lt_prog_compiler_wl_GCJ='-Wl,' 15621 lt_prog_compiler_static_GCJ='-static' 15622 15623 case $host_os in 15624 aix*) 15625 # All AIX code is PIC. 15626 if test "$host_cpu" = ia64; then 15627 # AIX 5 now supports IA64 processor 15628 lt_prog_compiler_static_GCJ='-Bstatic' 15629 fi 15630 ;; 15631 15632 amigaos*) 15633 # FIXME: we need at least 68020 code to build shared libraries, but 15634 # adding the `-m68020' flag to GCC prevents building anything better, 15635 # like `-m68040'. 15636 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15637 ;; 15638 15639 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15640 # PIC is the default for these OSes. 15641 ;; 15642 15643 mingw* | pw32* | os2*) 15644 # This hack is so that the source file can tell whether it is being 15645 # built for inclusion in a dll (and should export symbols for example). 15646 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15647 ;; 15648 15649 darwin* | rhapsody*) 15650 # PIC is the default on this platform 15651 # Common symbols not allowed in MH_DYLIB files 15652 lt_prog_compiler_pic_GCJ='-fno-common' 15653 ;; 15654 15655 interix3*) 15656 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15657 # Instead, we relocate shared libraries at runtime. 15658 ;; 15659 15660 msdosdjgpp*) 15661 # Just because we use GCC doesn't mean we suddenly get shared libraries 15662 # on systems that don't support them. 15663 lt_prog_compiler_can_build_shared_GCJ=no 15664 enable_shared=no 15665 ;; 15666 15667 sysv4*MP*) 15668 if test -d /usr/nec; then 15669 lt_prog_compiler_pic_GCJ=-Kconform_pic 15670 fi 15671 ;; 15672 15673 hpux*) 15674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15675 # not for PA HP-UX. 15676 case $host_cpu in 15677 hppa*64*|ia64*) 15678 # +Z the default 15679 ;; 15680 *) 15681 lt_prog_compiler_pic_GCJ='-fPIC' 15682 ;; 15683 esac 15684 ;; 15685 15686 *) 15687 lt_prog_compiler_pic_GCJ='-fPIC' 15688 ;; 15689 esac 15690 else 15691 # PORTME Check for flag to pass linker flags through the system compiler. 15692 case $host_os in 15693 aix*) 15694 lt_prog_compiler_wl_GCJ='-Wl,' 15695 if test "$host_cpu" = ia64; then 15696 # AIX 5 now supports IA64 processor 15697 lt_prog_compiler_static_GCJ='-Bstatic' 15698 else 15699 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15700 fi 15701 ;; 15702 darwin*) 15703 # PIC is the default on this platform 15704 # Common symbols not allowed in MH_DYLIB files 15705 case $cc_basename in 15706 xlc*) 15707 lt_prog_compiler_pic_GCJ='-qnocommon' 15708 lt_prog_compiler_wl_GCJ='-Wl,' 15709 ;; 15710 esac 15711 ;; 15712 15713 mingw* | pw32* | os2*) 15714 # This hack is so that the source file can tell whether it is being 15715 # built for inclusion in a dll (and should export symbols for example). 15716 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15717 ;; 15718 15719 hpux9* | hpux10* | hpux11*) 15720 lt_prog_compiler_wl_GCJ='-Wl,' 15721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15722 # not for PA HP-UX. 15723 case $host_cpu in 15724 hppa*64*|ia64*) 15725 # +Z the default 15726 ;; 15727 *) 15728 lt_prog_compiler_pic_GCJ='+Z' 15729 ;; 15730 esac 15731 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15732 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15733 ;; 15734 15735 irix5* | irix6* | nonstopux*) 15736 lt_prog_compiler_wl_GCJ='-Wl,' 15737 # PIC (with -KPIC) is the default. 15738 lt_prog_compiler_static_GCJ='-non_shared' 15739 ;; 15740 15741 newsos6) 15742 lt_prog_compiler_pic_GCJ='-KPIC' 15743 lt_prog_compiler_static_GCJ='-Bstatic' 15744 ;; 15745 15746 linux*) 15747 case $cc_basename in 15748 icc* | ecc*) 15749 lt_prog_compiler_wl_GCJ='-Wl,' 15750 lt_prog_compiler_pic_GCJ='-KPIC' 15751 lt_prog_compiler_static_GCJ='-static' 15752 ;; 15753 pgcc* | pgf77* | pgf90* | pgf95*) 15754 # Portland Group compilers (*not* the Pentium gcc compiler, 15755 # which looks to be a dead project) 15756 lt_prog_compiler_wl_GCJ='-Wl,' 15757 lt_prog_compiler_pic_GCJ='-fpic' 15758 lt_prog_compiler_static_GCJ='-Bstatic' 15759 ;; 15760 ccc*) 15761 lt_prog_compiler_wl_GCJ='-Wl,' 15762 # All Alpha code is PIC. 15763 lt_prog_compiler_static_GCJ='-non_shared' 15764 ;; 15765 esac 15766 ;; 15767 15768 osf3* | osf4* | osf5*) 15769 lt_prog_compiler_wl_GCJ='-Wl,' 15770 # All OSF/1 code is PIC. 15771 lt_prog_compiler_static_GCJ='-non_shared' 15772 ;; 15773 15774 solaris*) 15775 lt_prog_compiler_pic_GCJ='-KPIC' 15776 lt_prog_compiler_static_GCJ='-Bstatic' 15777 case $cc_basename in 15778 f77* | f90* | f95*) 15779 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15780 *) 15781 lt_prog_compiler_wl_GCJ='-Wl,';; 15782 esac 15783 ;; 15784 15785 sunos4*) 15786 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15787 lt_prog_compiler_pic_GCJ='-PIC' 15788 lt_prog_compiler_static_GCJ='-Bstatic' 15789 ;; 15790 15791 sysv4 | sysv4.2uw2* | sysv4.3*) 15792 lt_prog_compiler_wl_GCJ='-Wl,' 15793 lt_prog_compiler_pic_GCJ='-KPIC' 15794 lt_prog_compiler_static_GCJ='-Bstatic' 15795 ;; 15796 15797 sysv4*MP*) 15798 if test -d /usr/nec ;then 15799 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15800 lt_prog_compiler_static_GCJ='-Bstatic' 15801 fi 15802 ;; 15803 15804 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15805 lt_prog_compiler_wl_GCJ='-Wl,' 15806 lt_prog_compiler_pic_GCJ='-KPIC' 15807 lt_prog_compiler_static_GCJ='-Bstatic' 15808 ;; 15809 15810 unicos*) 15811 lt_prog_compiler_wl_GCJ='-Wl,' 15812 lt_prog_compiler_can_build_shared_GCJ=no 15813 ;; 15814 15815 uts4*) 15816 lt_prog_compiler_pic_GCJ='-pic' 15817 lt_prog_compiler_static_GCJ='-Bstatic' 15818 ;; 15819 15820 *) 15821 lt_prog_compiler_can_build_shared_GCJ=no 15822 ;; 15823 esac 15824 fi 15825 15826echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15827echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15828 15829# 15830# Check to make sure the PIC flag actually works. 15831# 15832if test -n "$lt_prog_compiler_pic_GCJ"; then 15833 15834echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15835echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15836if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15837 echo $ECHO_N "(cached) $ECHO_C" >&6 15838else 15839 lt_prog_compiler_pic_works_GCJ=no 15840 ac_outfile=conftest.$ac_objext 15841 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15842 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15843 # Insert the option either (1) after the last *FLAGS variable, or 15844 # (2) before a word containing "conftest.", or (3) at the end. 15845 # Note that $ac_compile itself does not contain backslashes and begins 15846 # with a dollar sign (not a hyphen), so the echo should work correctly. 15847 # The option is referenced via a variable to avoid confusing sed. 15848 lt_compile=`echo "$ac_compile" | $SED \ 15849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15851 -e 's:$: $lt_compiler_flag:'` 15852 (eval echo "\"\$as_me:15852: $lt_compile\"" >&5) 15853 (eval "$lt_compile" 2>conftest.err) 15854 ac_status=$? 15855 cat conftest.err >&5 15856 echo "$as_me:15856: \$? = $ac_status" >&5 15857 if (exit $ac_status) && test -s "$ac_outfile"; then 15858 # The compiler can only warn and ignore the option if not recognized 15859 # So say no if there are warnings other than the usual output. 15860 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15863 lt_prog_compiler_pic_works_GCJ=yes 15864 fi 15865 fi 15866 $rm conftest* 15867 15868fi 15869echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15870echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15871 15872if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15873 case $lt_prog_compiler_pic_GCJ in 15874 "" | " "*) ;; 15875 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15876 esac 15877else 15878 lt_prog_compiler_pic_GCJ= 15879 lt_prog_compiler_can_build_shared_GCJ=no 15880fi 15881 15882fi 15883case $host_os in 15884 # For platforms which do not support PIC, -DPIC is meaningless: 15885 *djgpp*) 15886 lt_prog_compiler_pic_GCJ= 15887 ;; 15888 *) 15889 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15890 ;; 15891esac 15892 15893# 15894# Check to make sure the static flag actually works. 15895# 15896wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15897echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15898echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15899if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15900 echo $ECHO_N "(cached) $ECHO_C" >&6 15901else 15902 lt_prog_compiler_static_works_GCJ=no 15903 save_LDFLAGS="$LDFLAGS" 15904 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15905 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15906 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15907 # The linker can only warn and ignore the option if not recognized 15908 # So say no if there are warnings 15909 if test -s conftest.err; then 15910 # Append any errors to the config.log. 15911 cat conftest.err 1>&5 15912 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15914 if diff conftest.exp conftest.er2 >/dev/null; then 15915 lt_prog_compiler_static_works_GCJ=yes 15916 fi 15917 else 15918 lt_prog_compiler_static_works_GCJ=yes 15919 fi 15920 fi 15921 $rm conftest* 15922 LDFLAGS="$save_LDFLAGS" 15923 15924fi 15925echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15926echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15927 15928if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15929 : 15930else 15931 lt_prog_compiler_static_GCJ= 15932fi 15933 15934 15935echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15936echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15937if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15938 echo $ECHO_N "(cached) $ECHO_C" >&6 15939else 15940 lt_cv_prog_compiler_c_o_GCJ=no 15941 $rm -r conftest 2>/dev/null 15942 mkdir conftest 15943 cd conftest 15944 mkdir out 15945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15946 15947 lt_compiler_flag="-o out/conftest2.$ac_objext" 15948 # Insert the option either (1) after the last *FLAGS variable, or 15949 # (2) before a word containing "conftest.", or (3) at the end. 15950 # Note that $ac_compile itself does not contain backslashes and begins 15951 # with a dollar sign (not a hyphen), so the echo should work correctly. 15952 lt_compile=`echo "$ac_compile" | $SED \ 15953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15955 -e 's:$: $lt_compiler_flag:'` 15956 (eval echo "\"\$as_me:15956: $lt_compile\"" >&5) 15957 (eval "$lt_compile" 2>out/conftest.err) 15958 ac_status=$? 15959 cat out/conftest.err >&5 15960 echo "$as_me:15960: \$? = $ac_status" >&5 15961 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15962 then 15963 # The compiler can only warn and ignore the option if not recognized 15964 # So say no if there are warnings 15965 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15966 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15967 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15968 lt_cv_prog_compiler_c_o_GCJ=yes 15969 fi 15970 fi 15971 chmod u+w . 2>&5 15972 $rm conftest* 15973 # SGI C++ compiler will create directory out/ii_files/ for 15974 # template instantiation 15975 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15976 $rm out/* && rmdir out 15977 cd .. 15978 rmdir conftest 15979 $rm conftest* 15980 15981fi 15982echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15983echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15984 15985 15986hard_links="nottested" 15987if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15988 # do not overwrite the value of need_locks provided by the user 15989 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15990echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15991 hard_links=yes 15992 $rm conftest* 15993 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15994 touch conftest.a 15995 ln conftest.a conftest.b 2>&5 || hard_links=no 15996 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15997 echo "$as_me:$LINENO: result: $hard_links" >&5 15998echo "${ECHO_T}$hard_links" >&6 15999 if test "$hard_links" = no; then 16000 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16001echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16002 need_locks=warn 16003 fi 16004else 16005 need_locks=no 16006fi 16007 16008echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16009echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16010 16011 runpath_var= 16012 allow_undefined_flag_GCJ= 16013 enable_shared_with_static_runtimes_GCJ=no 16014 archive_cmds_GCJ= 16015 archive_expsym_cmds_GCJ= 16016 old_archive_From_new_cmds_GCJ= 16017 old_archive_from_expsyms_cmds_GCJ= 16018 export_dynamic_flag_spec_GCJ= 16019 whole_archive_flag_spec_GCJ= 16020 thread_safe_flag_spec_GCJ= 16021 hardcode_libdir_flag_spec_GCJ= 16022 hardcode_libdir_flag_spec_ld_GCJ= 16023 hardcode_libdir_separator_GCJ= 16024 hardcode_direct_GCJ=no 16025 hardcode_minus_L_GCJ=no 16026 hardcode_shlibpath_var_GCJ=unsupported 16027 link_all_deplibs_GCJ=unknown 16028 hardcode_automatic_GCJ=no 16029 module_cmds_GCJ= 16030 module_expsym_cmds_GCJ= 16031 always_export_symbols_GCJ=no 16032 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16033 # include_expsyms should be a list of space-separated symbols to be *always* 16034 # included in the symbol list 16035 include_expsyms_GCJ= 16036 # exclude_expsyms can be an extended regexp of symbols to exclude 16037 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16038 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16039 # as well as any symbol that contains `d'. 16040 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16041 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16042 # platforms (ab)use it in PIC code, but their linkers get confused if 16043 # the symbol is explicitly referenced. Since portable code cannot 16044 # rely on this symbol name, it's probably fine to never include it in 16045 # preloaded symbol tables. 16046 extract_expsyms_cmds= 16047 # Just being paranoid about ensuring that cc_basename is set. 16048 for cc_temp in $compiler""; do 16049 case $cc_temp in 16050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16052 \-*) ;; 16053 *) break;; 16054 esac 16055done 16056cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16057 16058 case $host_os in 16059 cygwin* | mingw* | pw32*) 16060 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16061 # When not using gcc, we currently assume that we are using 16062 # Microsoft Visual C++. 16063 if test "$GCC" != yes; then 16064 with_gnu_ld=no 16065 fi 16066 ;; 16067 interix*) 16068 # we just hope/assume this is gcc and not c89 (= MSVC++) 16069 with_gnu_ld=yes 16070 ;; 16071 openbsd*) 16072 with_gnu_ld=no 16073 ;; 16074 esac 16075 16076 ld_shlibs_GCJ=yes 16077 if test "$with_gnu_ld" = yes; then 16078 # If archive_cmds runs LD, not CC, wlarc should be empty 16079 wlarc='${wl}' 16080 16081 # Set some defaults for GNU ld with shared library support. These 16082 # are reset later if shared libraries are not supported. Putting them 16083 # here allows them to be overridden if necessary. 16084 runpath_var=LD_RUN_PATH 16085 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16086 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16087 # ancient GNU ld didn't support --whole-archive et. al. 16088 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16089 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16090 else 16091 whole_archive_flag_spec_GCJ= 16092 fi 16093 supports_anon_versioning=no 16094 case `$LD -v 2>/dev/null` in 16095 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16096 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16097 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16098 *\ 2.11.*) ;; # other 2.11 versions 16099 *) supports_anon_versioning=yes ;; 16100 esac 16101 16102 # See if GNU ld supports shared libraries. 16103 case $host_os in 16104 aix3* | aix4* | aix5*) 16105 # On AIX/PPC, the GNU linker is very broken 16106 if test "$host_cpu" != ia64; then 16107 ld_shlibs_GCJ=no 16108 cat <<EOF 1>&2 16109 16110*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16111*** to be unable to reliably create shared libraries on AIX. 16112*** Therefore, libtool is disabling shared libraries support. If you 16113*** really care for shared libraries, you may want to modify your PATH 16114*** so that a non-GNU linker is found, and then restart. 16115 16116EOF 16117 fi 16118 ;; 16119 16120 amigaos*) 16121 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)' 16122 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16123 hardcode_minus_L_GCJ=yes 16124 16125 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16126 # that the semantics of dynamic libraries on AmigaOS, at least up 16127 # to version 4, is to share data among multiple programs linked 16128 # with the same dynamic library. Since this doesn't match the 16129 # behavior of shared libraries on other platforms, we can't use 16130 # them. 16131 ld_shlibs_GCJ=no 16132 ;; 16133 16134 beos*) 16135 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16136 allow_undefined_flag_GCJ=unsupported 16137 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16138 # support --undefined. This deserves some investigation. FIXME 16139 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16140 else 16141 ld_shlibs_GCJ=no 16142 fi 16143 ;; 16144 16145 cygwin* | mingw* | pw32*) 16146 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16147 # as there is no search path for DLLs. 16148 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16149 allow_undefined_flag_GCJ=unsupported 16150 always_export_symbols_GCJ=no 16151 enable_shared_with_static_runtimes_GCJ=yes 16152 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16153 16154 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16155 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16156 # If the export-symbols file already is a .def file (1st line 16157 # is EXPORTS), use it as is; otherwise, prepend... 16158 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16159 cp $export_symbols $output_objdir/$soname.def; 16160 else 16161 echo EXPORTS > $output_objdir/$soname.def; 16162 cat $export_symbols >> $output_objdir/$soname.def; 16163 fi~ 16164 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16165 else 16166 ld_shlibs_GCJ=no 16167 fi 16168 ;; 16169 16170 interix3*) 16171 hardcode_direct_GCJ=no 16172 hardcode_shlibpath_var_GCJ=no 16173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16174 export_dynamic_flag_spec_GCJ='${wl}-E' 16175 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16176 # Instead, shared libraries are loaded at an image base (0x10000000 by 16177 # default) and relocated if they conflict, which is a slow very memory 16178 # consuming and fragmenting process. To avoid this, we pick a random, 16179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16180 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16181 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16182 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16183 ;; 16184 16185 linux*) 16186 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16187 tmp_addflag= 16188 case $cc_basename,$host_cpu in 16189 pgcc*) # Portland Group C compiler 16190 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' 16191 tmp_addflag=' $pic_flag' 16192 ;; 16193 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16194 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' 16195 tmp_addflag=' $pic_flag -Mnomain' ;; 16196 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16197 tmp_addflag=' -i_dynamic' ;; 16198 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16199 tmp_addflag=' -i_dynamic -nofor_main' ;; 16200 ifc* | ifort*) # Intel Fortran compiler 16201 tmp_addflag=' -nofor_main' ;; 16202 esac 16203 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16204 16205 if test $supports_anon_versioning = yes; then 16206 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16207 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16208 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16209 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16210 fi 16211 else 16212 ld_shlibs_GCJ=no 16213 fi 16214 ;; 16215 16216 netbsd*) 16217 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16218 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16219 wlarc= 16220 else 16221 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16222 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16223 fi 16224 ;; 16225 16226 solaris*) 16227 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16228 ld_shlibs_GCJ=no 16229 cat <<EOF 1>&2 16230 16231*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16232*** create shared libraries on Solaris systems. Therefore, libtool 16233*** is disabling shared libraries support. We urge you to upgrade GNU 16234*** binutils to release 2.9.1 or newer. Another option is to modify 16235*** your PATH or compiler configuration so that the native linker is 16236*** used, and then restart. 16237 16238EOF 16239 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16240 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16241 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16242 else 16243 ld_shlibs_GCJ=no 16244 fi 16245 ;; 16246 16247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16248 case `$LD -v 2>&1` in 16249 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16250 ld_shlibs_GCJ=no 16251 cat <<_LT_EOF 1>&2 16252 16253*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16254*** reliably create shared libraries on SCO systems. Therefore, libtool 16255*** is disabling shared libraries support. We urge you to upgrade GNU 16256*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16257*** your PATH or compiler configuration so that the native linker is 16258*** used, and then restart. 16259 16260_LT_EOF 16261 ;; 16262 *) 16263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16264 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16265 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16266 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16267 else 16268 ld_shlibs_GCJ=no 16269 fi 16270 ;; 16271 esac 16272 ;; 16273 16274 sunos4*) 16275 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16276 wlarc= 16277 hardcode_direct_GCJ=yes 16278 hardcode_shlibpath_var_GCJ=no 16279 ;; 16280 16281 *) 16282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16283 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16284 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16285 else 16286 ld_shlibs_GCJ=no 16287 fi 16288 ;; 16289 esac 16290 16291 if test "$ld_shlibs_GCJ" = no; then 16292 runpath_var= 16293 hardcode_libdir_flag_spec_GCJ= 16294 export_dynamic_flag_spec_GCJ= 16295 whole_archive_flag_spec_GCJ= 16296 fi 16297 else 16298 # PORTME fill in a description of your system's linker (not GNU ld) 16299 case $host_os in 16300 aix3*) 16301 allow_undefined_flag_GCJ=unsupported 16302 always_export_symbols_GCJ=yes 16303 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' 16304 # Note: this linker hardcodes the directories in LIBPATH if there 16305 # are no directories specified by -L. 16306 hardcode_minus_L_GCJ=yes 16307 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16308 # Neither direct hardcoding nor static linking is supported with a 16309 # broken collect2. 16310 hardcode_direct_GCJ=unsupported 16311 fi 16312 ;; 16313 16314 aix4* | aix5*) 16315 if test "$host_cpu" = ia64; then 16316 # On IA64, the linker does run time linking by default, so we don't 16317 # have to do anything special. 16318 aix_use_runtimelinking=no 16319 exp_sym_flag='-Bexport' 16320 no_entry_flag="" 16321 else 16322 # If we're using GNU nm, then we don't want the "-C" option. 16323 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16324 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16325 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' 16326 else 16327 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' 16328 fi 16329 aix_use_runtimelinking=no 16330 16331 # Test if we are trying to use run time linking or normal 16332 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16333 # need to do runtime linking. 16334 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16335 for ld_flag in $LDFLAGS; do 16336 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16337 aix_use_runtimelinking=yes 16338 break 16339 fi 16340 done 16341 ;; 16342 esac 16343 16344 exp_sym_flag='-bexport' 16345 no_entry_flag='-bnoentry' 16346 fi 16347 16348 # When large executables or shared objects are built, AIX ld can 16349 # have problems creating the table of contents. If linking a library 16350 # or program results in "error TOC overflow" add -mminimal-toc to 16351 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16352 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16353 16354 archive_cmds_GCJ='' 16355 hardcode_direct_GCJ=yes 16356 hardcode_libdir_separator_GCJ=':' 16357 link_all_deplibs_GCJ=yes 16358 16359 if test "$GCC" = yes; then 16360 case $host_os in aix4.[012]|aix4.[012].*) 16361 # We only want to do this on AIX 4.2 and lower, the check 16362 # below for broken collect2 doesn't work under 4.3+ 16363 collect2name=`${CC} -print-prog-name=collect2` 16364 if test -f "$collect2name" && \ 16365 strings "$collect2name" | grep resolve_lib_name >/dev/null 16366 then 16367 # We have reworked collect2 16368 hardcode_direct_GCJ=yes 16369 else 16370 # We have old collect2 16371 hardcode_direct_GCJ=unsupported 16372 # It fails to find uninstalled libraries when the uninstalled 16373 # path is not listed in the libpath. Setting hardcode_minus_L 16374 # to unsupported forces relinking 16375 hardcode_minus_L_GCJ=yes 16376 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16377 hardcode_libdir_separator_GCJ= 16378 fi 16379 ;; 16380 esac 16381 shared_flag='-shared' 16382 if test "$aix_use_runtimelinking" = yes; then 16383 shared_flag="$shared_flag "'${wl}-G' 16384 fi 16385 else 16386 # not using gcc 16387 if test "$host_cpu" = ia64; then 16388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16389 # chokes on -Wl,-G. The following line is correct: 16390 shared_flag='-G' 16391 else 16392 if test "$aix_use_runtimelinking" = yes; then 16393 shared_flag='${wl}-G' 16394 else 16395 shared_flag='${wl}-bM:SRE' 16396 fi 16397 fi 16398 fi 16399 16400 # It seems that -bexpall does not export symbols beginning with 16401 # underscore (_), so it is better to generate a list of symbols to export. 16402 always_export_symbols_GCJ=yes 16403 if test "$aix_use_runtimelinking" = yes; then 16404 # Warning - without using the other runtime loading flags (-brtl), 16405 # -berok will link without error, but may produce a broken library. 16406 allow_undefined_flag_GCJ='-berok' 16407 # Determine the default libpath from the value encoded in an empty executable. 16408 cat >conftest.$ac_ext <<_ACEOF 16409/* confdefs.h. */ 16410_ACEOF 16411cat confdefs.h >>conftest.$ac_ext 16412cat >>conftest.$ac_ext <<_ACEOF 16413/* end confdefs.h. */ 16414 16415int 16416main () 16417{ 16418 16419 ; 16420 return 0; 16421} 16422_ACEOF 16423rm -f conftest.$ac_objext conftest$ac_exeext 16424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16425 (eval $ac_link) 2>conftest.er1 16426 ac_status=$? 16427 grep -v '^ *+' conftest.er1 >conftest.err 16428 rm -f conftest.er1 16429 cat conftest.err >&5 16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16431 (exit $ac_status); } && 16432 { ac_try='test -z "$ac_c_werror_flag" 16433 || test ! -s conftest.err' 16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16435 (eval $ac_try) 2>&5 16436 ac_status=$? 16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16438 (exit $ac_status); }; } && 16439 { ac_try='test -s conftest$ac_exeext' 16440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16441 (eval $ac_try) 2>&5 16442 ac_status=$? 16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16444 (exit $ac_status); }; }; then 16445 16446aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16447}'` 16448# Check for a 64-bit object if we didn't find anything. 16449if 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; } 16450}'`; fi 16451else 16452 echo "$as_me: failed program was:" >&5 16453sed 's/^/| /' conftest.$ac_ext >&5 16454 16455fi 16456rm -f conftest.err conftest.$ac_objext \ 16457 conftest$ac_exeext conftest.$ac_ext 16458if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16459 16460 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16461 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16462 else 16463 if test "$host_cpu" = ia64; then 16464 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16465 allow_undefined_flag_GCJ="-z nodefs" 16466 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 16467 else 16468 # Determine the default libpath from the value encoded in an empty executable. 16469 cat >conftest.$ac_ext <<_ACEOF 16470/* confdefs.h. */ 16471_ACEOF 16472cat confdefs.h >>conftest.$ac_ext 16473cat >>conftest.$ac_ext <<_ACEOF 16474/* end confdefs.h. */ 16475 16476int 16477main () 16478{ 16479 16480 ; 16481 return 0; 16482} 16483_ACEOF 16484rm -f conftest.$ac_objext conftest$ac_exeext 16485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16486 (eval $ac_link) 2>conftest.er1 16487 ac_status=$? 16488 grep -v '^ *+' conftest.er1 >conftest.err 16489 rm -f conftest.er1 16490 cat conftest.err >&5 16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16492 (exit $ac_status); } && 16493 { ac_try='test -z "$ac_c_werror_flag" 16494 || test ! -s conftest.err' 16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16496 (eval $ac_try) 2>&5 16497 ac_status=$? 16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16499 (exit $ac_status); }; } && 16500 { ac_try='test -s conftest$ac_exeext' 16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16502 (eval $ac_try) 2>&5 16503 ac_status=$? 16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16505 (exit $ac_status); }; }; then 16506 16507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16508}'` 16509# Check for a 64-bit object if we didn't find anything. 16510if 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; } 16511}'`; fi 16512else 16513 echo "$as_me: failed program was:" >&5 16514sed 's/^/| /' conftest.$ac_ext >&5 16515 16516fi 16517rm -f conftest.err conftest.$ac_objext \ 16518 conftest$ac_exeext conftest.$ac_ext 16519if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16520 16521 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16522 # Warning - without using the other run time loading flags, 16523 # -berok will link without error, but may produce a broken library. 16524 no_undefined_flag_GCJ=' ${wl}-bernotok' 16525 allow_undefined_flag_GCJ=' ${wl}-berok' 16526 # Exported symbols can be pulled into shared objects from archives 16527 whole_archive_flag_spec_GCJ='$convenience' 16528 archive_cmds_need_lc_GCJ=yes 16529 # This is similar to how AIX traditionally builds its shared libraries. 16530 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16531 fi 16532 fi 16533 ;; 16534 16535 amigaos*) 16536 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)' 16537 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16538 hardcode_minus_L_GCJ=yes 16539 # see comment about different semantics on the GNU ld section 16540 ld_shlibs_GCJ=no 16541 ;; 16542 16543 bsdi[45]*) 16544 export_dynamic_flag_spec_GCJ=-rdynamic 16545 ;; 16546 16547 cygwin* | mingw* | pw32*) 16548 # When not using gcc, we currently assume that we are using 16549 # Microsoft Visual C++. 16550 # hardcode_libdir_flag_spec is actually meaningless, as there is 16551 # no search path for DLLs. 16552 hardcode_libdir_flag_spec_GCJ=' ' 16553 allow_undefined_flag_GCJ=unsupported 16554 # Tell ltmain to make .lib files, not .a files. 16555 libext=lib 16556 # Tell ltmain to make .dll files, not .so files. 16557 shrext_cmds=".dll" 16558 # FIXME: Setting linknames here is a bad hack. 16559 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16560 # The linker will automatically build a .lib file if we build a DLL. 16561 old_archive_From_new_cmds_GCJ='true' 16562 # FIXME: Should let the user specify the lib program. 16563 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16564 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16565 enable_shared_with_static_runtimes_GCJ=yes 16566 ;; 16567 16568 darwin* | rhapsody*) 16569 case $host_os in 16570 rhapsody* | darwin1.[012]) 16571 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16572 ;; 16573 *) # Darwin 1.3 on 16574 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16575 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16576 else 16577 case ${MACOSX_DEPLOYMENT_TARGET} in 16578 10.[012]) 16579 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16580 ;; 16581 10.*) 16582 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16583 ;; 16584 esac 16585 fi 16586 ;; 16587 esac 16588 archive_cmds_need_lc_GCJ=no 16589 hardcode_direct_GCJ=no 16590 hardcode_automatic_GCJ=yes 16591 hardcode_shlibpath_var_GCJ=unsupported 16592 whole_archive_flag_spec_GCJ='' 16593 link_all_deplibs_GCJ=yes 16594 if test "$GCC" = yes ; then 16595 output_verbose_link_cmd='echo' 16596 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16597 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16599 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}' 16600 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}' 16601 else 16602 case $cc_basename in 16603 xlc*) 16604 output_verbose_link_cmd='echo' 16605 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16606 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16607 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16608 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}' 16609 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}' 16610 ;; 16611 *) 16612 ld_shlibs_GCJ=no 16613 ;; 16614 esac 16615 fi 16616 ;; 16617 16618 dgux*) 16619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16620 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16621 hardcode_shlibpath_var_GCJ=no 16622 ;; 16623 16624 freebsd1*) 16625 ld_shlibs_GCJ=no 16626 ;; 16627 16628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16629 # support. Future versions do this automatically, but an explicit c++rt0.o 16630 # does not break anything, and helps significantly (at the cost of a little 16631 # extra space). 16632 freebsd2.2*) 16633 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16634 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16635 hardcode_direct_GCJ=yes 16636 hardcode_shlibpath_var_GCJ=no 16637 ;; 16638 16639 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16640 freebsd2*) 16641 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16642 hardcode_direct_GCJ=yes 16643 hardcode_minus_L_GCJ=yes 16644 hardcode_shlibpath_var_GCJ=no 16645 ;; 16646 16647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16648 freebsd* | kfreebsd*-gnu | dragonfly*) 16649 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16650 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16651 hardcode_direct_GCJ=yes 16652 hardcode_shlibpath_var_GCJ=no 16653 ;; 16654 16655 hpux9*) 16656 if test "$GCC" = yes; then 16657 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' 16658 else 16659 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' 16660 fi 16661 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16662 hardcode_libdir_separator_GCJ=: 16663 hardcode_direct_GCJ=yes 16664 16665 # hardcode_minus_L: Not really in the search PATH, 16666 # but as the default location of the library. 16667 hardcode_minus_L_GCJ=yes 16668 export_dynamic_flag_spec_GCJ='${wl}-E' 16669 ;; 16670 16671 hpux10*) 16672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16673 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16674 else 16675 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16676 fi 16677 if test "$with_gnu_ld" = no; then 16678 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16679 hardcode_libdir_separator_GCJ=: 16680 16681 hardcode_direct_GCJ=yes 16682 export_dynamic_flag_spec_GCJ='${wl}-E' 16683 16684 # hardcode_minus_L: Not really in the search PATH, 16685 # but as the default location of the library. 16686 hardcode_minus_L_GCJ=yes 16687 fi 16688 ;; 16689 16690 hpux11*) 16691 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16692 case $host_cpu in 16693 hppa*64*) 16694 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16695 ;; 16696 ia64*) 16697 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16698 ;; 16699 *) 16700 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16701 ;; 16702 esac 16703 else 16704 case $host_cpu in 16705 hppa*64*) 16706 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16707 ;; 16708 ia64*) 16709 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16710 ;; 16711 *) 16712 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16713 ;; 16714 esac 16715 fi 16716 if test "$with_gnu_ld" = no; then 16717 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16718 hardcode_libdir_separator_GCJ=: 16719 16720 case $host_cpu in 16721 hppa*64*|ia64*) 16722 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16723 hardcode_direct_GCJ=no 16724 hardcode_shlibpath_var_GCJ=no 16725 ;; 16726 *) 16727 hardcode_direct_GCJ=yes 16728 export_dynamic_flag_spec_GCJ='${wl}-E' 16729 16730 # hardcode_minus_L: Not really in the search PATH, 16731 # but as the default location of the library. 16732 hardcode_minus_L_GCJ=yes 16733 ;; 16734 esac 16735 fi 16736 ;; 16737 16738 irix5* | irix6* | nonstopux*) 16739 if test "$GCC" = yes; then 16740 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' 16741 else 16742 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' 16743 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16744 fi 16745 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16746 hardcode_libdir_separator_GCJ=: 16747 link_all_deplibs_GCJ=yes 16748 ;; 16749 16750 netbsd*) 16751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16752 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16753 else 16754 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16755 fi 16756 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16757 hardcode_direct_GCJ=yes 16758 hardcode_shlibpath_var_GCJ=no 16759 ;; 16760 16761 newsos6) 16762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16763 hardcode_direct_GCJ=yes 16764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16765 hardcode_libdir_separator_GCJ=: 16766 hardcode_shlibpath_var_GCJ=no 16767 ;; 16768 16769 openbsd*) 16770 hardcode_direct_GCJ=yes 16771 hardcode_shlibpath_var_GCJ=no 16772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16773 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16774 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16775 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16776 export_dynamic_flag_spec_GCJ='${wl}-E' 16777 else 16778 case $host_os in 16779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16780 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16781 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16782 ;; 16783 *) 16784 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16785 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16786 ;; 16787 esac 16788 fi 16789 ;; 16790 16791 os2*) 16792 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16793 hardcode_minus_L_GCJ=yes 16794 allow_undefined_flag_GCJ=unsupported 16795 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' 16796 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16797 ;; 16798 16799 osf3*) 16800 if test "$GCC" = yes; then 16801 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16802 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' 16803 else 16804 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16805 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' 16806 fi 16807 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16808 hardcode_libdir_separator_GCJ=: 16809 ;; 16810 16811 osf4* | osf5*) # as osf3* with the addition of -msym flag 16812 if test "$GCC" = yes; then 16813 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16814 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' 16815 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16816 else 16817 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16818 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' 16819 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~ 16820 $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' 16821 16822 # Both c and cxx compiler support -rpath directly 16823 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16824 fi 16825 hardcode_libdir_separator_GCJ=: 16826 ;; 16827 16828 solaris*) 16829 no_undefined_flag_GCJ=' -z text' 16830 if test "$GCC" = yes; then 16831 wlarc='${wl}' 16832 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16833 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16834 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16835 else 16836 wlarc='' 16837 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16838 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16839 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16840 fi 16841 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16842 hardcode_shlibpath_var_GCJ=no 16843 case $host_os in 16844 solaris2.[0-5] | solaris2.[0-5].*) ;; 16845 *) 16846 # The compiler driver will combine linker options so we 16847 # cannot just pass the convience library names through 16848 # without $wl, iff we do not link with $LD. 16849 # Luckily, gcc supports the same syntax we need for Sun Studio. 16850 # Supported since Solaris 2.6 (maybe 2.5.1?) 16851 case $wlarc in 16852 '') 16853 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16854 *) 16855 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' ;; 16856 esac ;; 16857 esac 16858 link_all_deplibs_GCJ=yes 16859 ;; 16860 16861 sunos4*) 16862 if test "x$host_vendor" = xsequent; then 16863 # Use $CC to link under sequent, because it throws in some extra .o 16864 # files that make .init and .fini sections work. 16865 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16866 else 16867 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16868 fi 16869 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16870 hardcode_direct_GCJ=yes 16871 hardcode_minus_L_GCJ=yes 16872 hardcode_shlibpath_var_GCJ=no 16873 ;; 16874 16875 sysv4) 16876 case $host_vendor in 16877 sni) 16878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16879 hardcode_direct_GCJ=yes # is this really true??? 16880 ;; 16881 siemens) 16882 ## LD is ld it makes a PLAMLIB 16883 ## CC just makes a GrossModule. 16884 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16885 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16886 hardcode_direct_GCJ=no 16887 ;; 16888 motorola) 16889 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16890 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16891 ;; 16892 esac 16893 runpath_var='LD_RUN_PATH' 16894 hardcode_shlibpath_var_GCJ=no 16895 ;; 16896 16897 sysv4.3*) 16898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16899 hardcode_shlibpath_var_GCJ=no 16900 export_dynamic_flag_spec_GCJ='-Bexport' 16901 ;; 16902 16903 sysv4*MP*) 16904 if test -d /usr/nec; then 16905 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16906 hardcode_shlibpath_var_GCJ=no 16907 runpath_var=LD_RUN_PATH 16908 hardcode_runpath_var=yes 16909 ld_shlibs_GCJ=yes 16910 fi 16911 ;; 16912 16913 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16914 no_undefined_flag_GCJ='${wl}-z,text' 16915 archive_cmds_need_lc_GCJ=no 16916 hardcode_shlibpath_var_GCJ=no 16917 runpath_var='LD_RUN_PATH' 16918 16919 if test "$GCC" = yes; then 16920 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16921 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16922 else 16923 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16924 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16925 fi 16926 ;; 16927 16928 sysv5* | sco3.2v5* | sco5v6*) 16929 # Note: We can NOT use -z defs as we might desire, because we do not 16930 # link with -lc, and that would cause any symbols used from libc to 16931 # always be unresolved, which means just about no library would 16932 # ever link correctly. If we're not using GNU ld we use -z text 16933 # though, which does catch some bad symbols but isn't as heavy-handed 16934 # as -z defs. 16935 no_undefined_flag_GCJ='${wl}-z,text' 16936 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16937 archive_cmds_need_lc_GCJ=no 16938 hardcode_shlibpath_var_GCJ=no 16939 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16940 hardcode_libdir_separator_GCJ=':' 16941 link_all_deplibs_GCJ=yes 16942 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16943 runpath_var='LD_RUN_PATH' 16944 16945 if test "$GCC" = yes; then 16946 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16947 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16948 else 16949 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16950 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16951 fi 16952 ;; 16953 16954 uts4*) 16955 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16956 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16957 hardcode_shlibpath_var_GCJ=no 16958 ;; 16959 16960 *) 16961 ld_shlibs_GCJ=no 16962 ;; 16963 esac 16964 fi 16965 16966echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16967echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16968test "$ld_shlibs_GCJ" = no && can_build_shared=no 16969 16970# 16971# Do we need to explicitly link libc? 16972# 16973case "x$archive_cmds_need_lc_GCJ" in 16974x|xyes) 16975 # Assume -lc should be added 16976 archive_cmds_need_lc_GCJ=yes 16977 16978 if test "$enable_shared" = yes && test "$GCC" = yes; then 16979 case $archive_cmds_GCJ in 16980 *'~'*) 16981 # FIXME: we may have to deal with multi-command sequences. 16982 ;; 16983 '$CC '*) 16984 # Test whether the compiler implicitly links with -lc since on some 16985 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16986 # to ld, don't add -lc before -lgcc. 16987 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16988echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16989 $rm conftest* 16990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16991 16992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16993 (eval $ac_compile) 2>&5 16994 ac_status=$? 16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16996 (exit $ac_status); } 2>conftest.err; then 16997 soname=conftest 16998 lib=conftest 16999 libobjs=conftest.$ac_objext 17000 deplibs= 17001 wl=$lt_prog_compiler_wl_GCJ 17002 pic_flag=$lt_prog_compiler_pic_GCJ 17003 compiler_flags=-v 17004 linker_flags=-v 17005 verstring= 17006 output_objdir=. 17007 libname=conftest 17008 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17009 allow_undefined_flag_GCJ= 17010 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17011 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17012 ac_status=$? 17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17014 (exit $ac_status); } 17015 then 17016 archive_cmds_need_lc_GCJ=no 17017 else 17018 archive_cmds_need_lc_GCJ=yes 17019 fi 17020 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17021 else 17022 cat conftest.err 1>&5 17023 fi 17024 $rm conftest* 17025 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17026echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17027 ;; 17028 esac 17029 fi 17030 ;; 17031esac 17032 17033echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17034echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17035library_names_spec= 17036libname_spec='lib$name' 17037soname_spec= 17038shrext_cmds=".so" 17039postinstall_cmds= 17040postuninstall_cmds= 17041finish_cmds= 17042finish_eval= 17043shlibpath_var= 17044shlibpath_overrides_runpath=unknown 17045version_type=none 17046dynamic_linker="$host_os ld.so" 17047sys_lib_dlsearch_path_spec="/lib /usr/lib" 17048if test "$GCC" = yes; then 17049 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17050 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17051 # if the path contains ";" then we assume it to be the separator 17052 # otherwise default to the standard path separator (i.e. ":") - it is 17053 # assumed that no part of a normal pathname contains ";" but that should 17054 # okay in the real world where ";" in dirpaths is itself problematic. 17055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17056 else 17057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17058 fi 17059else 17060 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17061fi 17062need_lib_prefix=unknown 17063hardcode_into_libs=no 17064 17065# when you set need_version to no, make sure it does not cause -set_version 17066# flags to be left without arguments 17067need_version=unknown 17068 17069case $host_os in 17070aix3*) 17071 version_type=linux 17072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17073 shlibpath_var=LIBPATH 17074 17075 # AIX 3 has no versioning support, so we append a major version to the name. 17076 soname_spec='${libname}${release}${shared_ext}$major' 17077 ;; 17078 17079aix4* | aix5*) 17080 version_type=linux 17081 need_lib_prefix=no 17082 need_version=no 17083 hardcode_into_libs=yes 17084 if test "$host_cpu" = ia64; then 17085 # AIX 5 supports IA64 17086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17087 shlibpath_var=LD_LIBRARY_PATH 17088 else 17089 # With GCC up to 2.95.x, collect2 would create an import file 17090 # for dependence libraries. The import file would start with 17091 # the line `#! .'. This would cause the generated library to 17092 # depend on `.', always an invalid library. This was fixed in 17093 # development snapshots of GCC prior to 3.0. 17094 case $host_os in 17095 aix4 | aix4.[01] | aix4.[01].*) 17096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17097 echo ' yes ' 17098 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17099 : 17100 else 17101 can_build_shared=no 17102 fi 17103 ;; 17104 esac 17105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17106 # soname into executable. Probably we can add versioning support to 17107 # collect2, so additional links can be useful in future. 17108 if test "$aix_use_runtimelinking" = yes; then 17109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17110 # instead of lib<name>.a to let people know that these are not 17111 # typical AIX shared libraries. 17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17113 else 17114 # We preserve .a as extension for shared libraries through AIX4.2 17115 # and later when we are not doing run time linking. 17116 library_names_spec='${libname}${release}.a $libname.a' 17117 soname_spec='${libname}${release}${shared_ext}$major' 17118 fi 17119 shlibpath_var=LIBPATH 17120 fi 17121 ;; 17122 17123amigaos*) 17124 library_names_spec='$libname.ixlibrary $libname.a' 17125 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17126 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' 17127 ;; 17128 17129beos*) 17130 library_names_spec='${libname}${shared_ext}' 17131 dynamic_linker="$host_os ld.so" 17132 shlibpath_var=LIBRARY_PATH 17133 ;; 17134 17135bsdi[45]*) 17136 version_type=linux 17137 need_version=no 17138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17139 soname_spec='${libname}${release}${shared_ext}$major' 17140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17141 shlibpath_var=LD_LIBRARY_PATH 17142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17144 # the default ld.so.conf also contains /usr/contrib/lib and 17145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17146 # libtool to hard-code these into programs 17147 ;; 17148 17149cygwin* | mingw* | pw32*) 17150 version_type=windows 17151 shrext_cmds=".dll" 17152 need_version=no 17153 need_lib_prefix=no 17154 17155 case $GCC,$host_os in 17156 yes,cygwin* | yes,mingw* | yes,pw32*) 17157 library_names_spec='$libname.dll.a' 17158 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17159 postinstall_cmds='base_file=`basename \${file}`~ 17160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17161 dldir=$destdir/`dirname \$dlpath`~ 17162 test -d \$dldir || mkdir -p \$dldir~ 17163 $install_prog $dir/$dlname \$dldir/$dlname~ 17164 chmod a+x \$dldir/$dlname' 17165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17166 dlpath=$dir/\$dldll~ 17167 $rm \$dlpath' 17168 shlibpath_overrides_runpath=yes 17169 17170 case $host_os in 17171 cygwin*) 17172 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17175 ;; 17176 mingw*) 17177 # MinGW DLLs use traditional 'lib' prefix 17178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17181 # It is most probably a Windows format PATH printed by 17182 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17183 # path with ; separators, and with drive letters. We can handle the 17184 # drive letters (cygwin fileutils understands them), so leave them, 17185 # especially as we might pass files found there to a mingw objdump, 17186 # which wouldn't understand a cygwinified path. Ahh. 17187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17188 else 17189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17190 fi 17191 ;; 17192 pw32*) 17193 # pw32 DLLs use 'pw' prefix rather than 'lib' 17194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17195 ;; 17196 esac 17197 ;; 17198 17199 *) 17200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17201 ;; 17202 esac 17203 dynamic_linker='Win32 ld.exe' 17204 # FIXME: first we should search . and the directory the executable is in 17205 shlibpath_var=PATH 17206 ;; 17207 17208darwin* | rhapsody*) 17209 dynamic_linker="$host_os dyld" 17210 version_type=darwin 17211 need_lib_prefix=no 17212 need_version=no 17213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17214 soname_spec='${libname}${release}${major}$shared_ext' 17215 shlibpath_overrides_runpath=yes 17216 shlibpath_var=DYLD_LIBRARY_PATH 17217 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17218 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17219 if test "$GCC" = yes; then 17220 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"` 17221 else 17222 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17223 fi 17224 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17225 ;; 17226 17227dgux*) 17228 version_type=linux 17229 need_lib_prefix=no 17230 need_version=no 17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17232 soname_spec='${libname}${release}${shared_ext}$major' 17233 shlibpath_var=LD_LIBRARY_PATH 17234 ;; 17235 17236freebsd1*) 17237 dynamic_linker=no 17238 ;; 17239 17240kfreebsd*-gnu) 17241 version_type=linux 17242 need_lib_prefix=no 17243 need_version=no 17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17245 soname_spec='${libname}${release}${shared_ext}$major' 17246 shlibpath_var=LD_LIBRARY_PATH 17247 shlibpath_overrides_runpath=no 17248 hardcode_into_libs=yes 17249 dynamic_linker='GNU ld.so' 17250 ;; 17251 17252freebsd* | dragonfly*) 17253 # DragonFly does not have aout. When/if they implement a new 17254 # versioning mechanism, adjust this. 17255 if test -x /usr/bin/objformat; then 17256 objformat=`/usr/bin/objformat` 17257 else 17258 case $host_os in 17259 freebsd[123]*) objformat=aout ;; 17260 *) objformat=elf ;; 17261 esac 17262 fi 17263 version_type=freebsd-$objformat 17264 case $version_type in 17265 freebsd-elf*) 17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17267 need_version=no 17268 need_lib_prefix=no 17269 ;; 17270 freebsd-*) 17271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17272 need_version=yes 17273 ;; 17274 esac 17275 shlibpath_var=LD_LIBRARY_PATH 17276 case $host_os in 17277 freebsd2*) 17278 shlibpath_overrides_runpath=yes 17279 ;; 17280 freebsd3.[01]* | freebsdelf3.[01]*) 17281 shlibpath_overrides_runpath=yes 17282 hardcode_into_libs=yes 17283 ;; 17284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17286 shlibpath_overrides_runpath=no 17287 hardcode_into_libs=yes 17288 ;; 17289 freebsd*) # from 4.6 on 17290 shlibpath_overrides_runpath=yes 17291 hardcode_into_libs=yes 17292 ;; 17293 esac 17294 ;; 17295 17296gnu*) 17297 version_type=linux 17298 need_lib_prefix=no 17299 need_version=no 17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17301 soname_spec='${libname}${release}${shared_ext}$major' 17302 shlibpath_var=LD_LIBRARY_PATH 17303 hardcode_into_libs=yes 17304 ;; 17305 17306hpux9* | hpux10* | hpux11*) 17307 # Give a soname corresponding to the major version so that dld.sl refuses to 17308 # link against other versions. 17309 version_type=sunos 17310 need_lib_prefix=no 17311 need_version=no 17312 case $host_cpu in 17313 ia64*) 17314 shrext_cmds='.so' 17315 hardcode_into_libs=yes 17316 dynamic_linker="$host_os dld.so" 17317 shlibpath_var=LD_LIBRARY_PATH 17318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17320 soname_spec='${libname}${release}${shared_ext}$major' 17321 if test "X$HPUX_IA64_MODE" = X32; then 17322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17323 else 17324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17325 fi 17326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17327 ;; 17328 hppa*64*) 17329 shrext_cmds='.sl' 17330 hardcode_into_libs=yes 17331 dynamic_linker="$host_os dld.sl" 17332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17335 soname_spec='${libname}${release}${shared_ext}$major' 17336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17338 ;; 17339 *) 17340 shrext_cmds='.sl' 17341 dynamic_linker="$host_os dld.sl" 17342 shlibpath_var=SHLIB_PATH 17343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17345 soname_spec='${libname}${release}${shared_ext}$major' 17346 ;; 17347 esac 17348 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17349 postinstall_cmds='chmod 555 $lib' 17350 ;; 17351 17352interix3*) 17353 version_type=linux 17354 need_lib_prefix=no 17355 need_version=no 17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17357 soname_spec='${libname}${release}${shared_ext}$major' 17358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17359 shlibpath_var=LD_LIBRARY_PATH 17360 shlibpath_overrides_runpath=no 17361 hardcode_into_libs=yes 17362 ;; 17363 17364irix5* | irix6* | nonstopux*) 17365 case $host_os in 17366 nonstopux*) version_type=nonstopux ;; 17367 *) 17368 if test "$lt_cv_prog_gnu_ld" = yes; then 17369 version_type=linux 17370 else 17371 version_type=irix 17372 fi ;; 17373 esac 17374 need_lib_prefix=no 17375 need_version=no 17376 soname_spec='${libname}${release}${shared_ext}$major' 17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17378 case $host_os in 17379 irix5* | nonstopux*) 17380 libsuff= shlibsuff= 17381 ;; 17382 *) 17383 case $LD in # libtool.m4 will add one of these switches to LD 17384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17385 libsuff= shlibsuff= libmagic=32-bit;; 17386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17387 libsuff=32 shlibsuff=N32 libmagic=N32;; 17388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17389 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17390 *) libsuff= shlibsuff= libmagic=never-match;; 17391 esac 17392 ;; 17393 esac 17394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17395 shlibpath_overrides_runpath=no 17396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17398 hardcode_into_libs=yes 17399 ;; 17400 17401# No shared lib support for Linux oldld, aout, or coff. 17402linux*oldld* | linux*aout* | linux*coff*) 17403 dynamic_linker=no 17404 ;; 17405 17406# This must be Linux ELF. 17407linux*) 17408 version_type=linux 17409 need_lib_prefix=no 17410 need_version=no 17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17412 soname_spec='${libname}${release}${shared_ext}$major' 17413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17414 shlibpath_var=LD_LIBRARY_PATH 17415 shlibpath_overrides_runpath=no 17416 # This implies no fast_install, which is unacceptable. 17417 # Some rework will be needed to allow for fast_install 17418 # before this can be enabled. 17419 hardcode_into_libs=yes 17420 17421 # find out which ABI we are using 17422 libsuff= 17423 case "$host_cpu" in 17424 x86_64*|s390x*|powerpc64*) 17425 echo '#line 17425 "configure"' > conftest.$ac_ext 17426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17427 (eval $ac_compile) 2>&5 17428 ac_status=$? 17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17430 (exit $ac_status); }; then 17431 case `/usr/bin/file conftest.$ac_objext` in 17432 *64-bit*) 17433 libsuff=64 17434 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17435 ;; 17436 esac 17437 fi 17438 rm -rf conftest* 17439 ;; 17440 esac 17441 17442 # Append ld.so.conf contents to the search path 17443 if test -f /etc/ld.so.conf; then 17444 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' ' '` 17445 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17446 fi 17447 17448 # We used to test for /lib/ld.so.1 and disable shared libraries on 17449 # powerpc, because MkLinux only supported shared libraries with the 17450 # GNU dynamic linker. Since this was broken with cross compilers, 17451 # most powerpc-linux boxes support dynamic linking these days and 17452 # people can always --disable-shared, the test was removed, and we 17453 # assume the GNU/Linux dynamic linker is in use. 17454 dynamic_linker='GNU/Linux ld.so' 17455 ;; 17456 17457knetbsd*-gnu) 17458 version_type=linux 17459 need_lib_prefix=no 17460 need_version=no 17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17462 soname_spec='${libname}${release}${shared_ext}$major' 17463 shlibpath_var=LD_LIBRARY_PATH 17464 shlibpath_overrides_runpath=no 17465 hardcode_into_libs=yes 17466 dynamic_linker='GNU ld.so' 17467 ;; 17468 17469netbsd*) 17470 version_type=sunos 17471 need_lib_prefix=no 17472 need_version=no 17473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17476 dynamic_linker='NetBSD (a.out) ld.so' 17477 else 17478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17479 soname_spec='${libname}${release}${shared_ext}$major' 17480 dynamic_linker='NetBSD ld.elf_so' 17481 fi 17482 shlibpath_var=LD_LIBRARY_PATH 17483 shlibpath_overrides_runpath=yes 17484 hardcode_into_libs=yes 17485 ;; 17486 17487newsos6) 17488 version_type=linux 17489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17490 shlibpath_var=LD_LIBRARY_PATH 17491 shlibpath_overrides_runpath=yes 17492 ;; 17493 17494nto-qnx*) 17495 version_type=linux 17496 need_lib_prefix=no 17497 need_version=no 17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17499 soname_spec='${libname}${release}${shared_ext}$major' 17500 shlibpath_var=LD_LIBRARY_PATH 17501 shlibpath_overrides_runpath=yes 17502 ;; 17503 17504openbsd*) 17505 version_type=sunos 17506 sys_lib_dlsearch_path_spec="/usr/lib" 17507 need_lib_prefix=no 17508 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17509 case $host_os in 17510 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17511 *) need_version=no ;; 17512 esac 17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17515 shlibpath_var=LD_LIBRARY_PATH 17516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17517 case $host_os in 17518 openbsd2.[89] | openbsd2.[89].*) 17519 shlibpath_overrides_runpath=no 17520 ;; 17521 *) 17522 shlibpath_overrides_runpath=yes 17523 ;; 17524 esac 17525 else 17526 shlibpath_overrides_runpath=yes 17527 fi 17528 ;; 17529 17530os2*) 17531 libname_spec='$name' 17532 shrext_cmds=".dll" 17533 need_lib_prefix=no 17534 library_names_spec='$libname${shared_ext} $libname.a' 17535 dynamic_linker='OS/2 ld.exe' 17536 shlibpath_var=LIBPATH 17537 ;; 17538 17539osf3* | osf4* | osf5*) 17540 version_type=osf 17541 need_lib_prefix=no 17542 need_version=no 17543 soname_spec='${libname}${release}${shared_ext}$major' 17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17545 shlibpath_var=LD_LIBRARY_PATH 17546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17548 ;; 17549 17550solaris*) 17551 version_type=linux 17552 need_lib_prefix=no 17553 need_version=no 17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17555 soname_spec='${libname}${release}${shared_ext}$major' 17556 shlibpath_var=LD_LIBRARY_PATH 17557 shlibpath_overrides_runpath=yes 17558 hardcode_into_libs=yes 17559 # ldd complains unless libraries are executable 17560 postinstall_cmds='chmod +x $lib' 17561 ;; 17562 17563sunos4*) 17564 version_type=sunos 17565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17566 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17567 shlibpath_var=LD_LIBRARY_PATH 17568 shlibpath_overrides_runpath=yes 17569 if test "$with_gnu_ld" = yes; then 17570 need_lib_prefix=no 17571 fi 17572 need_version=yes 17573 ;; 17574 17575sysv4 | sysv4.3*) 17576 version_type=linux 17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17578 soname_spec='${libname}${release}${shared_ext}$major' 17579 shlibpath_var=LD_LIBRARY_PATH 17580 case $host_vendor in 17581 sni) 17582 shlibpath_overrides_runpath=no 17583 need_lib_prefix=no 17584 export_dynamic_flag_spec='${wl}-Blargedynsym' 17585 runpath_var=LD_RUN_PATH 17586 ;; 17587 siemens) 17588 need_lib_prefix=no 17589 ;; 17590 motorola) 17591 need_lib_prefix=no 17592 need_version=no 17593 shlibpath_overrides_runpath=no 17594 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17595 ;; 17596 esac 17597 ;; 17598 17599sysv4*MP*) 17600 if test -d /usr/nec ;then 17601 version_type=linux 17602 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17603 soname_spec='$libname${shared_ext}.$major' 17604 shlibpath_var=LD_LIBRARY_PATH 17605 fi 17606 ;; 17607 17608sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17609 version_type=freebsd-elf 17610 need_lib_prefix=no 17611 need_version=no 17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17613 soname_spec='${libname}${release}${shared_ext}$major' 17614 shlibpath_var=LD_LIBRARY_PATH 17615 hardcode_into_libs=yes 17616 if test "$with_gnu_ld" = yes; then 17617 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17618 shlibpath_overrides_runpath=no 17619 else 17620 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17621 shlibpath_overrides_runpath=yes 17622 case $host_os in 17623 sco3.2v5*) 17624 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17625 ;; 17626 esac 17627 fi 17628 sys_lib_dlsearch_path_spec='/usr/lib' 17629 ;; 17630 17631uts4*) 17632 version_type=linux 17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17634 soname_spec='${libname}${release}${shared_ext}$major' 17635 shlibpath_var=LD_LIBRARY_PATH 17636 ;; 17637 17638*) 17639 dynamic_linker=no 17640 ;; 17641esac 17642echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17643echo "${ECHO_T}$dynamic_linker" >&6 17644test "$dynamic_linker" = no && can_build_shared=no 17645 17646variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17647if test "$GCC" = yes; then 17648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17649fi 17650 17651echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17652echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17653hardcode_action_GCJ= 17654if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17655 test -n "$runpath_var_GCJ" || \ 17656 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17657 17658 # We can hardcode non-existant directories. 17659 if test "$hardcode_direct_GCJ" != no && 17660 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17661 # have to relink, otherwise we might link with an installed library 17662 # when we should be linking with a yet-to-be-installed one 17663 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17664 test "$hardcode_minus_L_GCJ" != no; then 17665 # Linking always hardcodes the temporary library directory. 17666 hardcode_action_GCJ=relink 17667 else 17668 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17669 hardcode_action_GCJ=immediate 17670 fi 17671else 17672 # We cannot hardcode anything, or else we can only hardcode existing 17673 # directories. 17674 hardcode_action_GCJ=unsupported 17675fi 17676echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17677echo "${ECHO_T}$hardcode_action_GCJ" >&6 17678 17679if test "$hardcode_action_GCJ" = relink; then 17680 # Fast installation is not supported 17681 enable_fast_install=no 17682elif test "$shlibpath_overrides_runpath" = yes || 17683 test "$enable_shared" = no; then 17684 # Fast installation is not necessary 17685 enable_fast_install=needless 17686fi 17687 17688 17689# The else clause should only fire when bootstrapping the 17690# libtool distribution, otherwise you forgot to ship ltmain.sh 17691# with your package, and you will get complaints that there are 17692# no rules to generate ltmain.sh. 17693if test -f "$ltmain"; then 17694 # See if we are running on zsh, and set the options which allow our commands through 17695 # without removal of \ escapes. 17696 if test -n "${ZSH_VERSION+set}" ; then 17697 setopt NO_GLOB_SUBST 17698 fi 17699 # Now quote all the things that may contain metacharacters while being 17700 # careful not to overquote the AC_SUBSTed values. We take copies of the 17701 # variables and quote the copies for generation of the libtool script. 17702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17703 SED SHELL STRIP \ 17704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17706 deplibs_check_method reload_flag reload_cmds need_locks \ 17707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17708 lt_cv_sys_global_symbol_to_c_name_address \ 17709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17710 old_postinstall_cmds old_postuninstall_cmds \ 17711 compiler_GCJ \ 17712 CC_GCJ \ 17713 LD_GCJ \ 17714 lt_prog_compiler_wl_GCJ \ 17715 lt_prog_compiler_pic_GCJ \ 17716 lt_prog_compiler_static_GCJ \ 17717 lt_prog_compiler_no_builtin_flag_GCJ \ 17718 export_dynamic_flag_spec_GCJ \ 17719 thread_safe_flag_spec_GCJ \ 17720 whole_archive_flag_spec_GCJ \ 17721 enable_shared_with_static_runtimes_GCJ \ 17722 old_archive_cmds_GCJ \ 17723 old_archive_from_new_cmds_GCJ \ 17724 predep_objects_GCJ \ 17725 postdep_objects_GCJ \ 17726 predeps_GCJ \ 17727 postdeps_GCJ \ 17728 compiler_lib_search_path_GCJ \ 17729 archive_cmds_GCJ \ 17730 archive_expsym_cmds_GCJ \ 17731 postinstall_cmds_GCJ \ 17732 postuninstall_cmds_GCJ \ 17733 old_archive_from_expsyms_cmds_GCJ \ 17734 allow_undefined_flag_GCJ \ 17735 no_undefined_flag_GCJ \ 17736 export_symbols_cmds_GCJ \ 17737 hardcode_libdir_flag_spec_GCJ \ 17738 hardcode_libdir_flag_spec_ld_GCJ \ 17739 hardcode_libdir_separator_GCJ \ 17740 hardcode_automatic_GCJ \ 17741 module_cmds_GCJ \ 17742 module_expsym_cmds_GCJ \ 17743 lt_cv_prog_compiler_c_o_GCJ \ 17744 exclude_expsyms_GCJ \ 17745 include_expsyms_GCJ; do 17746 17747 case $var in 17748 old_archive_cmds_GCJ | \ 17749 old_archive_from_new_cmds_GCJ | \ 17750 archive_cmds_GCJ | \ 17751 archive_expsym_cmds_GCJ | \ 17752 module_cmds_GCJ | \ 17753 module_expsym_cmds_GCJ | \ 17754 old_archive_from_expsyms_cmds_GCJ | \ 17755 export_symbols_cmds_GCJ | \ 17756 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17757 postinstall_cmds | postuninstall_cmds | \ 17758 old_postinstall_cmds | old_postuninstall_cmds | \ 17759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17760 # Double-quote double-evaled strings. 17761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17762 ;; 17763 *) 17764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17765 ;; 17766 esac 17767 done 17768 17769 case $lt_echo in 17770 *'\$0 --fallback-echo"') 17771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17772 ;; 17773 esac 17774 17775cfgfile="$ofile" 17776 17777 cat <<__EOF__ >> "$cfgfile" 17778# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17779 17780# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17781 17782# Shell to use when invoking shell scripts. 17783SHELL=$lt_SHELL 17784 17785# Whether or not to build shared libraries. 17786build_libtool_libs=$enable_shared 17787 17788# Whether or not to build static libraries. 17789build_old_libs=$enable_static 17790 17791# Whether or not to add -lc for building shared libraries. 17792build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17793 17794# Whether or not to disallow shared libs when runtime libs are static 17795allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17796 17797# Whether or not to optimize for fast installation. 17798fast_install=$enable_fast_install 17799 17800# The host system. 17801host_alias=$host_alias 17802host=$host 17803host_os=$host_os 17804 17805# The build system. 17806build_alias=$build_alias 17807build=$build 17808build_os=$build_os 17809 17810# An echo program that does not interpret backslashes. 17811echo=$lt_echo 17812 17813# The archiver. 17814AR=$lt_AR 17815AR_FLAGS=$lt_AR_FLAGS 17816 17817# A C compiler. 17818LTCC=$lt_LTCC 17819 17820# LTCC compiler flags. 17821LTCFLAGS=$lt_LTCFLAGS 17822 17823# A language-specific compiler. 17824CC=$lt_compiler_GCJ 17825 17826# Is the compiler the GNU C compiler? 17827with_gcc=$GCC_GCJ 17828 17829# An ERE matcher. 17830EGREP=$lt_EGREP 17831 17832# The linker used to build libraries. 17833LD=$lt_LD_GCJ 17834 17835# Whether we need hard or soft links. 17836LN_S=$lt_LN_S 17837 17838# A BSD-compatible nm program. 17839NM=$lt_NM 17840 17841# A symbol stripping program 17842STRIP=$lt_STRIP 17843 17844# Used to examine libraries when file_magic_cmd begins "file" 17845MAGIC_CMD=$MAGIC_CMD 17846 17847# Used on cygwin: DLL creation program. 17848DLLTOOL="$DLLTOOL" 17849 17850# Used on cygwin: object dumper. 17851OBJDUMP="$OBJDUMP" 17852 17853# Used on cygwin: assembler. 17854AS="$AS" 17855 17856# The name of the directory that contains temporary libtool files. 17857objdir=$objdir 17858 17859# How to create reloadable object files. 17860reload_flag=$lt_reload_flag 17861reload_cmds=$lt_reload_cmds 17862 17863# How to pass a linker flag through the compiler. 17864wl=$lt_lt_prog_compiler_wl_GCJ 17865 17866# Object file suffix (normally "o"). 17867objext="$ac_objext" 17868 17869# Old archive suffix (normally "a"). 17870libext="$libext" 17871 17872# Shared library suffix (normally ".so"). 17873shrext_cmds='$shrext_cmds' 17874 17875# Executable file suffix (normally ""). 17876exeext="$exeext" 17877 17878# Additional compiler flags for building library objects. 17879pic_flag=$lt_lt_prog_compiler_pic_GCJ 17880pic_mode=$pic_mode 17881 17882# What is the maximum length of a command? 17883max_cmd_len=$lt_cv_sys_max_cmd_len 17884 17885# Does compiler simultaneously support -c and -o options? 17886compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17887 17888# Must we lock files when doing compilation? 17889need_locks=$lt_need_locks 17890 17891# Do we need the lib prefix for modules? 17892need_lib_prefix=$need_lib_prefix 17893 17894# Do we need a version for libraries? 17895need_version=$need_version 17896 17897# Whether dlopen is supported. 17898dlopen_support=$enable_dlopen 17899 17900# Whether dlopen of programs is supported. 17901dlopen_self=$enable_dlopen_self 17902 17903# Whether dlopen of statically linked programs is supported. 17904dlopen_self_static=$enable_dlopen_self_static 17905 17906# Compiler flag to prevent dynamic linking. 17907link_static_flag=$lt_lt_prog_compiler_static_GCJ 17908 17909# Compiler flag to turn off builtin functions. 17910no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17911 17912# Compiler flag to allow reflexive dlopens. 17913export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17914 17915# Compiler flag to generate shared objects directly from archives. 17916whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17917 17918# Compiler flag to generate thread-safe objects. 17919thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17920 17921# Library versioning type. 17922version_type=$version_type 17923 17924# Format of library name prefix. 17925libname_spec=$lt_libname_spec 17926 17927# List of archive names. First name is the real one, the rest are links. 17928# The last name is the one that the linker finds with -lNAME. 17929library_names_spec=$lt_library_names_spec 17930 17931# The coded name of the library, if different from the real name. 17932soname_spec=$lt_soname_spec 17933 17934# Commands used to build and install an old-style archive. 17935RANLIB=$lt_RANLIB 17936old_archive_cmds=$lt_old_archive_cmds_GCJ 17937old_postinstall_cmds=$lt_old_postinstall_cmds 17938old_postuninstall_cmds=$lt_old_postuninstall_cmds 17939 17940# Create an old-style archive from a shared archive. 17941old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17942 17943# Create a temporary old-style archive to link instead of a shared archive. 17944old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17945 17946# Commands used to build and install a shared archive. 17947archive_cmds=$lt_archive_cmds_GCJ 17948archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17949postinstall_cmds=$lt_postinstall_cmds 17950postuninstall_cmds=$lt_postuninstall_cmds 17951 17952# Commands used to build a loadable module (assumed same as above if empty) 17953module_cmds=$lt_module_cmds_GCJ 17954module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17955 17956# Commands to strip libraries. 17957old_striplib=$lt_old_striplib 17958striplib=$lt_striplib 17959 17960# Dependencies to place before the objects being linked to create a 17961# shared library. 17962predep_objects=$lt_predep_objects_GCJ 17963 17964# Dependencies to place after the objects being linked to create a 17965# shared library. 17966postdep_objects=$lt_postdep_objects_GCJ 17967 17968# Dependencies to place before the objects being linked to create a 17969# shared library. 17970predeps=$lt_predeps_GCJ 17971 17972# Dependencies to place after the objects being linked to create a 17973# shared library. 17974postdeps=$lt_postdeps_GCJ 17975 17976# The library search path used internally by the compiler when linking 17977# a shared library. 17978compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17979 17980# Method to check whether dependent libraries are shared objects. 17981deplibs_check_method=$lt_deplibs_check_method 17982 17983# Command to use when deplibs_check_method == file_magic. 17984file_magic_cmd=$lt_file_magic_cmd 17985 17986# Flag that allows shared libraries with undefined symbols to be built. 17987allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17988 17989# Flag that forces no undefined symbols. 17990no_undefined_flag=$lt_no_undefined_flag_GCJ 17991 17992# Commands used to finish a libtool library installation in a directory. 17993finish_cmds=$lt_finish_cmds 17994 17995# Same as above, but a single script fragment to be evaled but not shown. 17996finish_eval=$lt_finish_eval 17997 17998# Take the output of nm and produce a listing of raw symbols and C names. 17999global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18000 18001# Transform the output of nm in a proper C declaration 18002global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18003 18004# Transform the output of nm in a C name address pair 18005global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18006 18007# This is the shared library runtime path variable. 18008runpath_var=$runpath_var 18009 18010# This is the shared library path variable. 18011shlibpath_var=$shlibpath_var 18012 18013# Is shlibpath searched before the hard-coded library search path? 18014shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18015 18016# How to hardcode a shared library path into an executable. 18017hardcode_action=$hardcode_action_GCJ 18018 18019# Whether we should hardcode library paths into libraries. 18020hardcode_into_libs=$hardcode_into_libs 18021 18022# Flag to hardcode \$libdir into a binary during linking. 18023# This must work even if \$libdir does not exist. 18024hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18025 18026# If ld is used when linking, flag to hardcode \$libdir into 18027# a binary during linking. This must work even if \$libdir does 18028# not exist. 18029hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18030 18031# Whether we need a single -rpath flag with a separated argument. 18032hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18033 18034# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18035# resulting binary. 18036hardcode_direct=$hardcode_direct_GCJ 18037 18038# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18039# resulting binary. 18040hardcode_minus_L=$hardcode_minus_L_GCJ 18041 18042# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18043# the resulting binary. 18044hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18045 18046# Set to yes if building a shared library automatically hardcodes DIR into the library 18047# and all subsequent libraries and executables linked against it. 18048hardcode_automatic=$hardcode_automatic_GCJ 18049 18050# Variables whose values should be saved in libtool wrapper scripts and 18051# restored at relink time. 18052variables_saved_for_relink="$variables_saved_for_relink" 18053 18054# Whether libtool must link a program against all its dependency libraries. 18055link_all_deplibs=$link_all_deplibs_GCJ 18056 18057# Compile-time system search path for libraries 18058sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18059 18060# Run-time system search path for libraries 18061sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18062 18063# Fix the shell variable \$srcfile for the compiler. 18064fix_srcfile_path="$fix_srcfile_path_GCJ" 18065 18066# Set to yes if exported symbols are required. 18067always_export_symbols=$always_export_symbols_GCJ 18068 18069# The commands to list exported symbols. 18070export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18071 18072# The commands to extract the exported symbol list from a shared archive. 18073extract_expsyms_cmds=$lt_extract_expsyms_cmds 18074 18075# Symbols that should not be listed in the preloaded symbols. 18076exclude_expsyms=$lt_exclude_expsyms_GCJ 18077 18078# Symbols that must always be exported. 18079include_expsyms=$lt_include_expsyms_GCJ 18080 18081# ### END LIBTOOL TAG CONFIG: $tagname 18082 18083__EOF__ 18084 18085 18086else 18087 # If there is no Makefile yet, we rely on a make rule to execute 18088 # `config.status --recheck' to rerun these tests and create the 18089 # libtool script then. 18090 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18091 if test -f "$ltmain_in"; then 18092 test -f Makefile && make "$ltmain" 18093 fi 18094fi 18095 18096 18097ac_ext=c 18098ac_cpp='$CPP $CPPFLAGS' 18099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18101ac_compiler_gnu=$ac_cv_c_compiler_gnu 18102 18103CC="$lt_save_CC" 18104 18105 else 18106 tagname="" 18107 fi 18108 ;; 18109 18110 RC) 18111 18112 18113 18114# Source file extension for RC test sources. 18115ac_ext=rc 18116 18117# Object file extension for compiled RC test sources. 18118objext=o 18119objext_RC=$objext 18120 18121# Code to be used in simple compile tests 18122lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18123 18124# Code to be used in simple link tests 18125lt_simple_link_test_code="$lt_simple_compile_test_code" 18126 18127# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18128 18129# If no C compiler was specified, use CC. 18130LTCC=${LTCC-"$CC"} 18131 18132# If no C compiler flags were specified, use CFLAGS. 18133LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18134 18135# Allow CC to be a program name with arguments. 18136compiler=$CC 18137 18138 18139# save warnings/boilerplate of simple test code 18140ac_outfile=conftest.$ac_objext 18141printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18142eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18143_lt_compiler_boilerplate=`cat conftest.err` 18144$rm conftest* 18145 18146ac_outfile=conftest.$ac_objext 18147printf "$lt_simple_link_test_code" >conftest.$ac_ext 18148eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18149_lt_linker_boilerplate=`cat conftest.err` 18150$rm conftest* 18151 18152 18153# Allow CC to be a program name with arguments. 18154lt_save_CC="$CC" 18155CC=${RC-"windres"} 18156compiler=$CC 18157compiler_RC=$CC 18158for cc_temp in $compiler""; do 18159 case $cc_temp in 18160 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18161 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18162 \-*) ;; 18163 *) break;; 18164 esac 18165done 18166cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18167 18168lt_cv_prog_compiler_c_o_RC=yes 18169 18170# The else clause should only fire when bootstrapping the 18171# libtool distribution, otherwise you forgot to ship ltmain.sh 18172# with your package, and you will get complaints that there are 18173# no rules to generate ltmain.sh. 18174if test -f "$ltmain"; then 18175 # See if we are running on zsh, and set the options which allow our commands through 18176 # without removal of \ escapes. 18177 if test -n "${ZSH_VERSION+set}" ; then 18178 setopt NO_GLOB_SUBST 18179 fi 18180 # Now quote all the things that may contain metacharacters while being 18181 # careful not to overquote the AC_SUBSTed values. We take copies of the 18182 # variables and quote the copies for generation of the libtool script. 18183 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18184 SED SHELL STRIP \ 18185 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18186 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18187 deplibs_check_method reload_flag reload_cmds need_locks \ 18188 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18189 lt_cv_sys_global_symbol_to_c_name_address \ 18190 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18191 old_postinstall_cmds old_postuninstall_cmds \ 18192 compiler_RC \ 18193 CC_RC \ 18194 LD_RC \ 18195 lt_prog_compiler_wl_RC \ 18196 lt_prog_compiler_pic_RC \ 18197 lt_prog_compiler_static_RC \ 18198 lt_prog_compiler_no_builtin_flag_RC \ 18199 export_dynamic_flag_spec_RC \ 18200 thread_safe_flag_spec_RC \ 18201 whole_archive_flag_spec_RC \ 18202 enable_shared_with_static_runtimes_RC \ 18203 old_archive_cmds_RC \ 18204 old_archive_from_new_cmds_RC \ 18205 predep_objects_RC \ 18206 postdep_objects_RC \ 18207 predeps_RC \ 18208 postdeps_RC \ 18209 compiler_lib_search_path_RC \ 18210 archive_cmds_RC \ 18211 archive_expsym_cmds_RC \ 18212 postinstall_cmds_RC \ 18213 postuninstall_cmds_RC \ 18214 old_archive_from_expsyms_cmds_RC \ 18215 allow_undefined_flag_RC \ 18216 no_undefined_flag_RC \ 18217 export_symbols_cmds_RC \ 18218 hardcode_libdir_flag_spec_RC \ 18219 hardcode_libdir_flag_spec_ld_RC \ 18220 hardcode_libdir_separator_RC \ 18221 hardcode_automatic_RC \ 18222 module_cmds_RC \ 18223 module_expsym_cmds_RC \ 18224 lt_cv_prog_compiler_c_o_RC \ 18225 exclude_expsyms_RC \ 18226 include_expsyms_RC; do 18227 18228 case $var in 18229 old_archive_cmds_RC | \ 18230 old_archive_from_new_cmds_RC | \ 18231 archive_cmds_RC | \ 18232 archive_expsym_cmds_RC | \ 18233 module_cmds_RC | \ 18234 module_expsym_cmds_RC | \ 18235 old_archive_from_expsyms_cmds_RC | \ 18236 export_symbols_cmds_RC | \ 18237 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18238 postinstall_cmds | postuninstall_cmds | \ 18239 old_postinstall_cmds | old_postuninstall_cmds | \ 18240 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18241 # Double-quote double-evaled strings. 18242 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18243 ;; 18244 *) 18245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18246 ;; 18247 esac 18248 done 18249 18250 case $lt_echo in 18251 *'\$0 --fallback-echo"') 18252 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18253 ;; 18254 esac 18255 18256cfgfile="$ofile" 18257 18258 cat <<__EOF__ >> "$cfgfile" 18259# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18260 18261# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18262 18263# Shell to use when invoking shell scripts. 18264SHELL=$lt_SHELL 18265 18266# Whether or not to build shared libraries. 18267build_libtool_libs=$enable_shared 18268 18269# Whether or not to build static libraries. 18270build_old_libs=$enable_static 18271 18272# Whether or not to add -lc for building shared libraries. 18273build_libtool_need_lc=$archive_cmds_need_lc_RC 18274 18275# Whether or not to disallow shared libs when runtime libs are static 18276allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18277 18278# Whether or not to optimize for fast installation. 18279fast_install=$enable_fast_install 18280 18281# The host system. 18282host_alias=$host_alias 18283host=$host 18284host_os=$host_os 18285 18286# The build system. 18287build_alias=$build_alias 18288build=$build 18289build_os=$build_os 18290 18291# An echo program that does not interpret backslashes. 18292echo=$lt_echo 18293 18294# The archiver. 18295AR=$lt_AR 18296AR_FLAGS=$lt_AR_FLAGS 18297 18298# A C compiler. 18299LTCC=$lt_LTCC 18300 18301# LTCC compiler flags. 18302LTCFLAGS=$lt_LTCFLAGS 18303 18304# A language-specific compiler. 18305CC=$lt_compiler_RC 18306 18307# Is the compiler the GNU C compiler? 18308with_gcc=$GCC_RC 18309 18310# An ERE matcher. 18311EGREP=$lt_EGREP 18312 18313# The linker used to build libraries. 18314LD=$lt_LD_RC 18315 18316# Whether we need hard or soft links. 18317LN_S=$lt_LN_S 18318 18319# A BSD-compatible nm program. 18320NM=$lt_NM 18321 18322# A symbol stripping program 18323STRIP=$lt_STRIP 18324 18325# Used to examine libraries when file_magic_cmd begins "file" 18326MAGIC_CMD=$MAGIC_CMD 18327 18328# Used on cygwin: DLL creation program. 18329DLLTOOL="$DLLTOOL" 18330 18331# Used on cygwin: object dumper. 18332OBJDUMP="$OBJDUMP" 18333 18334# Used on cygwin: assembler. 18335AS="$AS" 18336 18337# The name of the directory that contains temporary libtool files. 18338objdir=$objdir 18339 18340# How to create reloadable object files. 18341reload_flag=$lt_reload_flag 18342reload_cmds=$lt_reload_cmds 18343 18344# How to pass a linker flag through the compiler. 18345wl=$lt_lt_prog_compiler_wl_RC 18346 18347# Object file suffix (normally "o"). 18348objext="$ac_objext" 18349 18350# Old archive suffix (normally "a"). 18351libext="$libext" 18352 18353# Shared library suffix (normally ".so"). 18354shrext_cmds='$shrext_cmds' 18355 18356# Executable file suffix (normally ""). 18357exeext="$exeext" 18358 18359# Additional compiler flags for building library objects. 18360pic_flag=$lt_lt_prog_compiler_pic_RC 18361pic_mode=$pic_mode 18362 18363# What is the maximum length of a command? 18364max_cmd_len=$lt_cv_sys_max_cmd_len 18365 18366# Does compiler simultaneously support -c and -o options? 18367compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18368 18369# Must we lock files when doing compilation? 18370need_locks=$lt_need_locks 18371 18372# Do we need the lib prefix for modules? 18373need_lib_prefix=$need_lib_prefix 18374 18375# Do we need a version for libraries? 18376need_version=$need_version 18377 18378# Whether dlopen is supported. 18379dlopen_support=$enable_dlopen 18380 18381# Whether dlopen of programs is supported. 18382dlopen_self=$enable_dlopen_self 18383 18384# Whether dlopen of statically linked programs is supported. 18385dlopen_self_static=$enable_dlopen_self_static 18386 18387# Compiler flag to prevent dynamic linking. 18388link_static_flag=$lt_lt_prog_compiler_static_RC 18389 18390# Compiler flag to turn off builtin functions. 18391no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18392 18393# Compiler flag to allow reflexive dlopens. 18394export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18395 18396# Compiler flag to generate shared objects directly from archives. 18397whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18398 18399# Compiler flag to generate thread-safe objects. 18400thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18401 18402# Library versioning type. 18403version_type=$version_type 18404 18405# Format of library name prefix. 18406libname_spec=$lt_libname_spec 18407 18408# List of archive names. First name is the real one, the rest are links. 18409# The last name is the one that the linker finds with -lNAME. 18410library_names_spec=$lt_library_names_spec 18411 18412# The coded name of the library, if different from the real name. 18413soname_spec=$lt_soname_spec 18414 18415# Commands used to build and install an old-style archive. 18416RANLIB=$lt_RANLIB 18417old_archive_cmds=$lt_old_archive_cmds_RC 18418old_postinstall_cmds=$lt_old_postinstall_cmds 18419old_postuninstall_cmds=$lt_old_postuninstall_cmds 18420 18421# Create an old-style archive from a shared archive. 18422old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18423 18424# Create a temporary old-style archive to link instead of a shared archive. 18425old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18426 18427# Commands used to build and install a shared archive. 18428archive_cmds=$lt_archive_cmds_RC 18429archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18430postinstall_cmds=$lt_postinstall_cmds 18431postuninstall_cmds=$lt_postuninstall_cmds 18432 18433# Commands used to build a loadable module (assumed same as above if empty) 18434module_cmds=$lt_module_cmds_RC 18435module_expsym_cmds=$lt_module_expsym_cmds_RC 18436 18437# Commands to strip libraries. 18438old_striplib=$lt_old_striplib 18439striplib=$lt_striplib 18440 18441# Dependencies to place before the objects being linked to create a 18442# shared library. 18443predep_objects=$lt_predep_objects_RC 18444 18445# Dependencies to place after the objects being linked to create a 18446# shared library. 18447postdep_objects=$lt_postdep_objects_RC 18448 18449# Dependencies to place before the objects being linked to create a 18450# shared library. 18451predeps=$lt_predeps_RC 18452 18453# Dependencies to place after the objects being linked to create a 18454# shared library. 18455postdeps=$lt_postdeps_RC 18456 18457# The library search path used internally by the compiler when linking 18458# a shared library. 18459compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18460 18461# Method to check whether dependent libraries are shared objects. 18462deplibs_check_method=$lt_deplibs_check_method 18463 18464# Command to use when deplibs_check_method == file_magic. 18465file_magic_cmd=$lt_file_magic_cmd 18466 18467# Flag that allows shared libraries with undefined symbols to be built. 18468allow_undefined_flag=$lt_allow_undefined_flag_RC 18469 18470# Flag that forces no undefined symbols. 18471no_undefined_flag=$lt_no_undefined_flag_RC 18472 18473# Commands used to finish a libtool library installation in a directory. 18474finish_cmds=$lt_finish_cmds 18475 18476# Same as above, but a single script fragment to be evaled but not shown. 18477finish_eval=$lt_finish_eval 18478 18479# Take the output of nm and produce a listing of raw symbols and C names. 18480global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18481 18482# Transform the output of nm in a proper C declaration 18483global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18484 18485# Transform the output of nm in a C name address pair 18486global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18487 18488# This is the shared library runtime path variable. 18489runpath_var=$runpath_var 18490 18491# This is the shared library path variable. 18492shlibpath_var=$shlibpath_var 18493 18494# Is shlibpath searched before the hard-coded library search path? 18495shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18496 18497# How to hardcode a shared library path into an executable. 18498hardcode_action=$hardcode_action_RC 18499 18500# Whether we should hardcode library paths into libraries. 18501hardcode_into_libs=$hardcode_into_libs 18502 18503# Flag to hardcode \$libdir into a binary during linking. 18504# This must work even if \$libdir does not exist. 18505hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18506 18507# If ld is used when linking, flag to hardcode \$libdir into 18508# a binary during linking. This must work even if \$libdir does 18509# not exist. 18510hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18511 18512# Whether we need a single -rpath flag with a separated argument. 18513hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18514 18515# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18516# resulting binary. 18517hardcode_direct=$hardcode_direct_RC 18518 18519# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18520# resulting binary. 18521hardcode_minus_L=$hardcode_minus_L_RC 18522 18523# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18524# the resulting binary. 18525hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18526 18527# Set to yes if building a shared library automatically hardcodes DIR into the library 18528# and all subsequent libraries and executables linked against it. 18529hardcode_automatic=$hardcode_automatic_RC 18530 18531# Variables whose values should be saved in libtool wrapper scripts and 18532# restored at relink time. 18533variables_saved_for_relink="$variables_saved_for_relink" 18534 18535# Whether libtool must link a program against all its dependency libraries. 18536link_all_deplibs=$link_all_deplibs_RC 18537 18538# Compile-time system search path for libraries 18539sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18540 18541# Run-time system search path for libraries 18542sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18543 18544# Fix the shell variable \$srcfile for the compiler. 18545fix_srcfile_path="$fix_srcfile_path_RC" 18546 18547# Set to yes if exported symbols are required. 18548always_export_symbols=$always_export_symbols_RC 18549 18550# The commands to list exported symbols. 18551export_symbols_cmds=$lt_export_symbols_cmds_RC 18552 18553# The commands to extract the exported symbol list from a shared archive. 18554extract_expsyms_cmds=$lt_extract_expsyms_cmds 18555 18556# Symbols that should not be listed in the preloaded symbols. 18557exclude_expsyms=$lt_exclude_expsyms_RC 18558 18559# Symbols that must always be exported. 18560include_expsyms=$lt_include_expsyms_RC 18561 18562# ### END LIBTOOL TAG CONFIG: $tagname 18563 18564__EOF__ 18565 18566 18567else 18568 # If there is no Makefile yet, we rely on a make rule to execute 18569 # `config.status --recheck' to rerun these tests and create the 18570 # libtool script then. 18571 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18572 if test -f "$ltmain_in"; then 18573 test -f Makefile && make "$ltmain" 18574 fi 18575fi 18576 18577 18578ac_ext=c 18579ac_cpp='$CPP $CPPFLAGS' 18580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18582ac_compiler_gnu=$ac_cv_c_compiler_gnu 18583 18584CC="$lt_save_CC" 18585 18586 ;; 18587 18588 *) 18589 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18590echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18591 { (exit 1); exit 1; }; } 18592 ;; 18593 esac 18594 18595 # Append the new tag name to the list of available tags. 18596 if test -n "$tagname" ; then 18597 available_tags="$available_tags $tagname" 18598 fi 18599 fi 18600 done 18601 IFS="$lt_save_ifs" 18602 18603 # Now substitute the updated list of available tags. 18604 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18605 mv "${ofile}T" "$ofile" 18606 chmod +x "$ofile" 18607 else 18608 rm -f "${ofile}T" 18609 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18610echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18611 { (exit 1); exit 1; }; } 18612 fi 18613fi 18614 18615 18616 18617# This can be used to rebuild libtool when needed 18618LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18619 18620# Always use our own libtool. 18621LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18622 18623# Prevent multiple expansion 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645# Check for dependencies 18646 18647 18648if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18649 if test -n "$ac_tool_prefix"; then 18650 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18651set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18652echo "$as_me:$LINENO: checking for $ac_word" >&5 18653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18654if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 18655 echo $ECHO_N "(cached) $ECHO_C" >&6 18656else 18657 case $PKG_CONFIG in 18658 [\\/]* | ?:[\\/]*) 18659 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18660 ;; 18661 *) 18662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18663for as_dir in $PATH 18664do 18665 IFS=$as_save_IFS 18666 test -z "$as_dir" && as_dir=. 18667 for ac_exec_ext in '' $ac_executable_extensions; do 18668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18669 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18671 break 2 18672 fi 18673done 18674done 18675 18676 ;; 18677esac 18678fi 18679PKG_CONFIG=$ac_cv_path_PKG_CONFIG 18680 18681if test -n "$PKG_CONFIG"; then 18682 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 18683echo "${ECHO_T}$PKG_CONFIG" >&6 18684else 18685 echo "$as_me:$LINENO: result: no" >&5 18686echo "${ECHO_T}no" >&6 18687fi 18688 18689fi 18690if test -z "$ac_cv_path_PKG_CONFIG"; then 18691 ac_pt_PKG_CONFIG=$PKG_CONFIG 18692 # Extract the first word of "pkg-config", so it can be a program name with args. 18693set dummy pkg-config; ac_word=$2 18694echo "$as_me:$LINENO: checking for $ac_word" >&5 18695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18696if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 18697 echo $ECHO_N "(cached) $ECHO_C" >&6 18698else 18699 case $ac_pt_PKG_CONFIG in 18700 [\\/]* | ?:[\\/]*) 18701 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 18702 ;; 18703 *) 18704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18705for as_dir in $PATH 18706do 18707 IFS=$as_save_IFS 18708 test -z "$as_dir" && as_dir=. 18709 for ac_exec_ext in '' $ac_executable_extensions; do 18710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18711 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18713 break 2 18714 fi 18715done 18716done 18717 18718 ;; 18719esac 18720fi 18721ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 18722 18723if test -n "$ac_pt_PKG_CONFIG"; then 18724 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 18725echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 18726else 18727 echo "$as_me:$LINENO: result: no" >&5 18728echo "${ECHO_T}no" >&6 18729fi 18730 18731 PKG_CONFIG=$ac_pt_PKG_CONFIG 18732else 18733 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 18734fi 18735 18736fi 18737if test -n "$PKG_CONFIG"; then 18738 _pkg_min_version=0.9.0 18739 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 18740echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 18741 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 18742 echo "$as_me:$LINENO: result: yes" >&5 18743echo "${ECHO_T}yes" >&6 18744 else 18745 echo "$as_me:$LINENO: result: no" >&5 18746echo "${ECHO_T}no" >&6 18747 PKG_CONFIG="" 18748 fi 18749 18750fi 18751 18752pkg_failed=no 18753echo "$as_me:$LINENO: checking for XKBUI" >&5 18754echo $ECHO_N "checking for XKBUI... $ECHO_C" >&6 18755 18756if test -n "$PKG_CONFIG"; then 18757 if test -n "$XKBUI_CFLAGS"; then 18758 pkg_cv_XKBUI_CFLAGS="$XKBUI_CFLAGS" 18759 else 18760 if test -n "$PKG_CONFIG" && \ 18761 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt xkbfile\"") >&5 18762 ($PKG_CONFIG --exists --print-errors "x11 xt xkbfile") 2>&5 18763 ac_status=$? 18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18765 (exit $ac_status); }; then 18766 pkg_cv_XKBUI_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xkbfile" 2>/dev/null` 18767else 18768 pkg_failed=yes 18769fi 18770 fi 18771else 18772 pkg_failed=untried 18773fi 18774if test -n "$PKG_CONFIG"; then 18775 if test -n "$XKBUI_LIBS"; then 18776 pkg_cv_XKBUI_LIBS="$XKBUI_LIBS" 18777 else 18778 if test -n "$PKG_CONFIG" && \ 18779 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt xkbfile\"") >&5 18780 ($PKG_CONFIG --exists --print-errors "x11 xt xkbfile") 2>&5 18781 ac_status=$? 18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18783 (exit $ac_status); }; then 18784 pkg_cv_XKBUI_LIBS=`$PKG_CONFIG --libs "x11 xt xkbfile" 2>/dev/null` 18785else 18786 pkg_failed=yes 18787fi 18788 fi 18789else 18790 pkg_failed=untried 18791fi 18792 18793 18794 18795if test $pkg_failed = yes; then 18796 18797if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18798 _pkg_short_errors_supported=yes 18799else 18800 _pkg_short_errors_supported=no 18801fi 18802 if test $_pkg_short_errors_supported = yes; then 18803 XKBUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xt xkbfile"` 18804 else 18805 XKBUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xt xkbfile"` 18806 fi 18807 # Put the nasty error message in config.log where it belongs 18808 echo "$XKBUI_PKG_ERRORS" >&5 18809 18810 { { echo "$as_me:$LINENO: error: Package requirements (x11 xt xkbfile) were not met: 18811 18812$XKBUI_PKG_ERRORS 18813 18814Consider adjusting the PKG_CONFIG_PATH environment variable if you 18815installed software in a non-standard prefix. 18816 18817Alternatively, you may set the environment variables XKBUI_CFLAGS 18818and XKBUI_LIBS to avoid the need to call pkg-config. 18819See the pkg-config man page for more details. 18820" >&5 18821echo "$as_me: error: Package requirements (x11 xt xkbfile) were not met: 18822 18823$XKBUI_PKG_ERRORS 18824 18825Consider adjusting the PKG_CONFIG_PATH environment variable if you 18826installed software in a non-standard prefix. 18827 18828Alternatively, you may set the environment variables XKBUI_CFLAGS 18829and XKBUI_LIBS to avoid the need to call pkg-config. 18830See the pkg-config man page for more details. 18831" >&2;} 18832 { (exit 1); exit 1; }; } 18833elif test $pkg_failed = untried; then 18834 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 18835is in your PATH or set the PKG_CONFIG environment variable to the full 18836path to pkg-config. 18837 18838Alternatively, you may set the environment variables XKBUI_CFLAGS 18839and XKBUI_LIBS to avoid the need to call pkg-config. 18840See the pkg-config man page for more details. 18841 18842To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 18843See \`config.log' for more details." >&5 18844echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 18845is in your PATH or set the PKG_CONFIG environment variable to the full 18846path to pkg-config. 18847 18848Alternatively, you may set the environment variables XKBUI_CFLAGS 18849and XKBUI_LIBS to avoid the need to call pkg-config. 18850See the pkg-config man page for more details. 18851 18852To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 18853See \`config.log' for more details." >&2;} 18854 { (exit 1); exit 1; }; } 18855else 18856 XKBUI_CFLAGS=$pkg_cv_XKBUI_CFLAGS 18857 XKBUI_LIBS=$pkg_cv_XKBUI_LIBS 18858 echo "$as_me:$LINENO: result: yes" >&5 18859echo "${ECHO_T}yes" >&6 18860 : 18861fi 18862echo "$as_me:$LINENO: checking for library containing hypot" >&5 18863echo $ECHO_N "checking for library containing hypot... $ECHO_C" >&6 18864if test "${ac_cv_search_hypot+set}" = set; then 18865 echo $ECHO_N "(cached) $ECHO_C" >&6 18866else 18867 ac_func_search_save_LIBS=$LIBS 18868ac_cv_search_hypot=no 18869cat >conftest.$ac_ext <<_ACEOF 18870/* confdefs.h. */ 18871_ACEOF 18872cat confdefs.h >>conftest.$ac_ext 18873cat >>conftest.$ac_ext <<_ACEOF 18874/* end confdefs.h. */ 18875 18876/* Override any gcc2 internal prototype to avoid an error. */ 18877#ifdef __cplusplus 18878extern "C" 18879#endif 18880/* We use char because int might match the return type of a gcc2 18881 builtin and then its argument prototype would still apply. */ 18882char hypot (); 18883int 18884main () 18885{ 18886hypot (); 18887 ; 18888 return 0; 18889} 18890_ACEOF 18891rm -f conftest.$ac_objext conftest$ac_exeext 18892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18893 (eval $ac_link) 2>conftest.er1 18894 ac_status=$? 18895 grep -v '^ *+' conftest.er1 >conftest.err 18896 rm -f conftest.er1 18897 cat conftest.err >&5 18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18899 (exit $ac_status); } && 18900 { ac_try='test -z "$ac_c_werror_flag" 18901 || test ! -s conftest.err' 18902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18903 (eval $ac_try) 2>&5 18904 ac_status=$? 18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18906 (exit $ac_status); }; } && 18907 { ac_try='test -s conftest$ac_exeext' 18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18909 (eval $ac_try) 2>&5 18910 ac_status=$? 18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18912 (exit $ac_status); }; }; then 18913 ac_cv_search_hypot="none required" 18914else 18915 echo "$as_me: failed program was:" >&5 18916sed 's/^/| /' conftest.$ac_ext >&5 18917 18918fi 18919rm -f conftest.err conftest.$ac_objext \ 18920 conftest$ac_exeext conftest.$ac_ext 18921if test "$ac_cv_search_hypot" = no; then 18922 for ac_lib in m; do 18923 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18924 cat >conftest.$ac_ext <<_ACEOF 18925/* confdefs.h. */ 18926_ACEOF 18927cat confdefs.h >>conftest.$ac_ext 18928cat >>conftest.$ac_ext <<_ACEOF 18929/* end confdefs.h. */ 18930 18931/* Override any gcc2 internal prototype to avoid an error. */ 18932#ifdef __cplusplus 18933extern "C" 18934#endif 18935/* We use char because int might match the return type of a gcc2 18936 builtin and then its argument prototype would still apply. */ 18937char hypot (); 18938int 18939main () 18940{ 18941hypot (); 18942 ; 18943 return 0; 18944} 18945_ACEOF 18946rm -f conftest.$ac_objext conftest$ac_exeext 18947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18948 (eval $ac_link) 2>conftest.er1 18949 ac_status=$? 18950 grep -v '^ *+' conftest.er1 >conftest.err 18951 rm -f conftest.er1 18952 cat conftest.err >&5 18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18954 (exit $ac_status); } && 18955 { ac_try='test -z "$ac_c_werror_flag" 18956 || test ! -s conftest.err' 18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18958 (eval $ac_try) 2>&5 18959 ac_status=$? 18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18961 (exit $ac_status); }; } && 18962 { ac_try='test -s conftest$ac_exeext' 18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18964 (eval $ac_try) 2>&5 18965 ac_status=$? 18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18967 (exit $ac_status); }; }; then 18968 ac_cv_search_hypot="-l$ac_lib" 18969break 18970else 18971 echo "$as_me: failed program was:" >&5 18972sed 's/^/| /' conftest.$ac_ext >&5 18973 18974fi 18975rm -f conftest.err conftest.$ac_objext \ 18976 conftest$ac_exeext conftest.$ac_ext 18977 done 18978fi 18979LIBS=$ac_func_search_save_LIBS 18980fi 18981echo "$as_me:$LINENO: result: $ac_cv_search_hypot" >&5 18982echo "${ECHO_T}$ac_cv_search_hypot" >&6 18983if test "$ac_cv_search_hypot" != no; then 18984 test "$ac_cv_search_hypot" = "none required" || LIBS="$ac_cv_search_hypot $LIBS" 18985 18986fi 18987 18988 18989 18990 18991 18992 18993 18994# Check whether --with-release-version or --without-release-version was given. 18995if test "${with_release_version+set}" = set; then 18996 withval="$with_release_version" 18997 RELEASE_VERSION="$withval" 18998else 18999 RELEASE_VERSION="" 19000fi; 19001 if test "x$RELEASE_VERSION" != "x"; then 19002 PACKAGE="$PACKAGE-$RELEASE_VERSION" 19003 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 19004 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 19005echo "$as_me: Building with package name set to $PACKAGE" >&6;} 19006 fi 19007 19008 19009 ac_config_files="$ac_config_files Makefile src/Makefile xkbui.pc" 19010cat >confcache <<\_ACEOF 19011# This file is a shell script that caches the results of configure 19012# tests run on this system so they can be shared between configure 19013# scripts and configure runs, see configure's option --config-cache. 19014# It is not useful on other systems. If it contains results you don't 19015# want to keep, you may remove or edit it. 19016# 19017# config.status only pays attention to the cache file if you give it 19018# the --recheck option to rerun configure. 19019# 19020# `ac_cv_env_foo' variables (set or unset) will be overridden when 19021# loading this file, other *unset* `ac_cv_foo' will be assigned the 19022# following values. 19023 19024_ACEOF 19025 19026# The following way of writing the cache mishandles newlines in values, 19027# but we know of no workaround that is simple, portable, and efficient. 19028# So, don't put newlines in cache variables' values. 19029# Ultrix sh set writes to stderr and can't be redirected directly, 19030# and sets the high bit in the cache file unless we assign to the vars. 19031{ 19032 (set) 2>&1 | 19033 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19034 *ac_space=\ *) 19035 # `set' does not quote correctly, so add quotes (double-quote 19036 # substitution turns \\\\ into \\, and sed turns \\ into \). 19037 sed -n \ 19038 "s/'/'\\\\''/g; 19039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19040 ;; 19041 *) 19042 # `set' quotes correctly as required by POSIX, so do not add quotes. 19043 sed -n \ 19044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19045 ;; 19046 esac; 19047} | 19048 sed ' 19049 t clear 19050 : clear 19051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19052 t end 19053 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19054 : end' >>confcache 19055if diff $cache_file confcache >/dev/null 2>&1; then :; else 19056 if test -w $cache_file; then 19057 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19058 cat confcache >$cache_file 19059 else 19060 echo "not updating unwritable cache $cache_file" 19061 fi 19062fi 19063rm -f confcache 19064 19065test "x$prefix" = xNONE && prefix=$ac_default_prefix 19066# Let make expand exec_prefix. 19067test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19068 19069# VPATH may cause trouble with some makes, so we remove $(srcdir), 19070# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19071# trailing colons and then remove the whole line if VPATH becomes empty 19072# (actually we leave an empty line to preserve line numbers). 19073if test "x$srcdir" = x.; then 19074 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19075s/:*\$(srcdir):*/:/; 19076s/:*\${srcdir}:*/:/; 19077s/:*@srcdir@:*/:/; 19078s/^\([^=]*=[ ]*\):*/\1/; 19079s/:*$//; 19080s/^[^=]*=[ ]*$//; 19081}' 19082fi 19083 19084DEFS=-DHAVE_CONFIG_H 19085 19086ac_libobjs= 19087ac_ltlibobjs= 19088for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19089 # 1. Remove the extension, and $U if already installed. 19090 ac_i=`echo "$ac_i" | 19091 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 19092 # 2. Add them. 19093 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 19094 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 19095done 19096LIBOBJS=$ac_libobjs 19097 19098LTLIBOBJS=$ac_ltlibobjs 19099 19100 19101if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19102 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 19103Usually this means the macro was only invoked conditionally." >&5 19104echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 19105Usually this means the macro was only invoked conditionally." >&2;} 19106 { (exit 1); exit 1; }; } 19107fi 19108if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19109 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19110Usually this means the macro was only invoked conditionally." >&5 19111echo "$as_me: error: conditional \"AMDEP\" was never defined. 19112Usually this means the macro was only invoked conditionally." >&2;} 19113 { (exit 1); exit 1; }; } 19114fi 19115if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19116 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19117Usually this means the macro was only invoked conditionally." >&5 19118echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19119Usually this means the macro was only invoked conditionally." >&2;} 19120 { (exit 1); exit 1; }; } 19121fi 19122if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19123 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19124Usually this means the macro was only invoked conditionally." >&5 19125echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19126Usually this means the macro was only invoked conditionally." >&2;} 19127 { (exit 1); exit 1; }; } 19128fi 19129 19130: ${CONFIG_STATUS=./config.status} 19131ac_clean_files_save=$ac_clean_files 19132ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19133{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19134echo "$as_me: creating $CONFIG_STATUS" >&6;} 19135cat >$CONFIG_STATUS <<_ACEOF 19136#! $SHELL 19137# Generated by $as_me. 19138# Run this file to recreate the current configuration. 19139# Compiler output produced by configure, useful for debugging 19140# configure, is in config.log if it exists. 19141 19142debug=false 19143ac_cs_recheck=false 19144ac_cs_silent=false 19145SHELL=\${CONFIG_SHELL-$SHELL} 19146_ACEOF 19147 19148cat >>$CONFIG_STATUS <<\_ACEOF 19149## --------------------- ## 19150## M4sh Initialization. ## 19151## --------------------- ## 19152 19153# Be Bourne compatible 19154if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19155 emulate sh 19156 NULLCMD=: 19157 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19158 # is contrary to our usage. Disable this feature. 19159 alias -g '${1+"$@"}'='"$@"' 19160elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19161 set -o posix 19162fi 19163DUALCASE=1; export DUALCASE # for MKS sh 19164 19165# Support unset when possible. 19166if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19167 as_unset=unset 19168else 19169 as_unset=false 19170fi 19171 19172 19173# Work around bugs in pre-3.0 UWIN ksh. 19174$as_unset ENV MAIL MAILPATH 19175PS1='$ ' 19176PS2='> ' 19177PS4='+ ' 19178 19179# NLS nuisances. 19180for as_var in \ 19181 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19182 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19183 LC_TELEPHONE LC_TIME 19184do 19185 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19186 eval $as_var=C; export $as_var 19187 else 19188 $as_unset $as_var 19189 fi 19190done 19191 19192# Required to use basename. 19193if expr a : '\(a\)' >/dev/null 2>&1; then 19194 as_expr=expr 19195else 19196 as_expr=false 19197fi 19198 19199if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 19200 as_basename=basename 19201else 19202 as_basename=false 19203fi 19204 19205 19206# Name of the executable. 19207as_me=`$as_basename "$0" || 19208$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19209 X"$0" : 'X\(//\)$' \| \ 19210 X"$0" : 'X\(/\)$' \| \ 19211 . : '\(.\)' 2>/dev/null || 19212echo X/"$0" | 19213 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 19214 /^X\/\(\/\/\)$/{ s//\1/; q; } 19215 /^X\/\(\/\).*/{ s//\1/; q; } 19216 s/.*/./; q'` 19217 19218 19219# PATH needs CR, and LINENO needs CR and PATH. 19220# Avoid depending upon Character Ranges. 19221as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19222as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19223as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19224as_cr_digits='0123456789' 19225as_cr_alnum=$as_cr_Letters$as_cr_digits 19226 19227# The user is always right. 19228if test "${PATH_SEPARATOR+set}" != set; then 19229 echo "#! /bin/sh" >conf$$.sh 19230 echo "exit 0" >>conf$$.sh 19231 chmod +x conf$$.sh 19232 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19233 PATH_SEPARATOR=';' 19234 else 19235 PATH_SEPARATOR=: 19236 fi 19237 rm -f conf$$.sh 19238fi 19239 19240 19241 as_lineno_1=$LINENO 19242 as_lineno_2=$LINENO 19243 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19244 test "x$as_lineno_1" != "x$as_lineno_2" && 19245 test "x$as_lineno_3" = "x$as_lineno_2" || { 19246 # Find who we are. Look in the path if we contain no path at all 19247 # relative or not. 19248 case $0 in 19249 *[\\/]* ) as_myself=$0 ;; 19250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19251for as_dir in $PATH 19252do 19253 IFS=$as_save_IFS 19254 test -z "$as_dir" && as_dir=. 19255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19256done 19257 19258 ;; 19259 esac 19260 # We did not find ourselves, most probably we were run as `sh COMMAND' 19261 # in which case we are not to be found in the path. 19262 if test "x$as_myself" = x; then 19263 as_myself=$0 19264 fi 19265 if test ! -f "$as_myself"; then 19266 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 19267echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 19268 { (exit 1); exit 1; }; } 19269 fi 19270 case $CONFIG_SHELL in 19271 '') 19272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19273for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19274do 19275 IFS=$as_save_IFS 19276 test -z "$as_dir" && as_dir=. 19277 for as_base in sh bash ksh sh5; do 19278 case $as_dir in 19279 /*) 19280 if ("$as_dir/$as_base" -c ' 19281 as_lineno_1=$LINENO 19282 as_lineno_2=$LINENO 19283 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19284 test "x$as_lineno_1" != "x$as_lineno_2" && 19285 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 19286 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 19287 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 19288 CONFIG_SHELL=$as_dir/$as_base 19289 export CONFIG_SHELL 19290 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 19291 fi;; 19292 esac 19293 done 19294done 19295;; 19296 esac 19297 19298 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19299 # uniformly replaced by the line number. The first 'sed' inserts a 19300 # line-number line before each line; the second 'sed' does the real 19301 # work. The second script uses 'N' to pair each line-number line 19302 # with the numbered line, and appends trailing '-' during 19303 # substitution so that $LINENO is not a special case at line end. 19304 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19305 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 19306 sed '=' <$as_myself | 19307 sed ' 19308 N 19309 s,$,-, 19310 : loop 19311 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 19312 t loop 19313 s,-$,, 19314 s,^['$as_cr_digits']*\n,, 19315 ' >$as_me.lineno && 19316 chmod +x $as_me.lineno || 19317 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 19318echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 19319 { (exit 1); exit 1; }; } 19320 19321 # Don't try to exec as it changes $[0], causing all sort of problems 19322 # (the dirname of $[0] is not the place where we might find the 19323 # original and so on. Autoconf is especially sensible to this). 19324 . ./$as_me.lineno 19325 # Exit status is that of the last command. 19326 exit 19327} 19328 19329 19330case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 19331 *c*,-n*) ECHO_N= ECHO_C=' 19332' ECHO_T=' ' ;; 19333 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 19334 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 19335esac 19336 19337if expr a : '\(a\)' >/dev/null 2>&1; then 19338 as_expr=expr 19339else 19340 as_expr=false 19341fi 19342 19343rm -f conf$$ conf$$.exe conf$$.file 19344echo >conf$$.file 19345if ln -s conf$$.file conf$$ 2>/dev/null; then 19346 # We could just check for DJGPP; but this test a) works b) is more generic 19347 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19348 if test -f conf$$.exe; then 19349 # Don't use ln at all; we don't have any links 19350 as_ln_s='cp -p' 19351 else 19352 as_ln_s='ln -s' 19353 fi 19354elif ln conf$$.file conf$$ 2>/dev/null; then 19355 as_ln_s=ln 19356else 19357 as_ln_s='cp -p' 19358fi 19359rm -f conf$$ conf$$.exe conf$$.file 19360 19361if mkdir -p . 2>/dev/null; then 19362 as_mkdir_p=: 19363else 19364 test -d ./-p && rmdir ./-p 19365 as_mkdir_p=false 19366fi 19367 19368as_executable_p="test -f" 19369 19370# Sed expression to map a string onto a valid CPP name. 19371as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19372 19373# Sed expression to map a string onto a valid variable name. 19374as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19375 19376 19377# IFS 19378# We need space, tab and new line, in precisely that order. 19379as_nl=' 19380' 19381IFS=" $as_nl" 19382 19383# CDPATH. 19384$as_unset CDPATH 19385 19386exec 6>&1 19387 19388# Open the log real soon, to keep \$[0] and so on meaningful, and to 19389# report actual input values of CONFIG_FILES etc. instead of their 19390# values after options handling. Logging --version etc. is OK. 19391exec 5>>config.log 19392{ 19393 echo 19394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19395## Running $as_me. ## 19396_ASBOX 19397} >&5 19398cat >&5 <<_CSEOF 19399 19400This file was extended by libxkbui $as_me 1.0.2, which was 19401generated by GNU Autoconf 2.59. Invocation command line was 19402 19403 CONFIG_FILES = $CONFIG_FILES 19404 CONFIG_HEADERS = $CONFIG_HEADERS 19405 CONFIG_LINKS = $CONFIG_LINKS 19406 CONFIG_COMMANDS = $CONFIG_COMMANDS 19407 $ $0 $@ 19408 19409_CSEOF 19410echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 19411echo >&5 19412_ACEOF 19413 19414# Files that config.status was made for. 19415if test -n "$ac_config_files"; then 19416 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19417fi 19418 19419if test -n "$ac_config_headers"; then 19420 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19421fi 19422 19423if test -n "$ac_config_links"; then 19424 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19425fi 19426 19427if test -n "$ac_config_commands"; then 19428 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19429fi 19430 19431cat >>$CONFIG_STATUS <<\_ACEOF 19432 19433ac_cs_usage="\ 19434\`$as_me' instantiates files from templates according to the 19435current configuration. 19436 19437Usage: $0 [OPTIONS] [FILE]... 19438 19439 -h, --help print this help, then exit 19440 -V, --version print version number, then exit 19441 -q, --quiet do not print progress messages 19442 -d, --debug don't remove temporary files 19443 --recheck update $as_me by reconfiguring in the same conditions 19444 --file=FILE[:TEMPLATE] 19445 instantiate the configuration file FILE 19446 --header=FILE[:TEMPLATE] 19447 instantiate the configuration header FILE 19448 19449Configuration files: 19450$config_files 19451 19452Configuration headers: 19453$config_headers 19454 19455Configuration commands: 19456$config_commands 19457 19458Report bugs to <bug-autoconf@gnu.org>." 19459_ACEOF 19460 19461cat >>$CONFIG_STATUS <<_ACEOF 19462ac_cs_version="\\ 19463libxkbui config.status 1.0.2 19464configured by $0, generated by GNU Autoconf 2.59, 19465 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19466 19467Copyright (C) 2003 Free Software Foundation, Inc. 19468This config.status script is free software; the Free Software Foundation 19469gives unlimited permission to copy, distribute and modify it." 19470srcdir=$srcdir 19471INSTALL="$INSTALL" 19472_ACEOF 19473 19474cat >>$CONFIG_STATUS <<\_ACEOF 19475# If no file are specified by the user, then we need to provide default 19476# value. By we need to know if files were specified by the user. 19477ac_need_defaults=: 19478while test $# != 0 19479do 19480 case $1 in 19481 --*=*) 19482 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19483 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19484 ac_shift=: 19485 ;; 19486 -*) 19487 ac_option=$1 19488 ac_optarg=$2 19489 ac_shift=shift 19490 ;; 19491 *) # This is not an option, so the user has probably given explicit 19492 # arguments. 19493 ac_option=$1 19494 ac_need_defaults=false;; 19495 esac 19496 19497 case $ac_option in 19498 # Handling of the options. 19499_ACEOF 19500cat >>$CONFIG_STATUS <<\_ACEOF 19501 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19502 ac_cs_recheck=: ;; 19503 --version | --vers* | -V ) 19504 echo "$ac_cs_version"; exit 0 ;; 19505 --he | --h) 19506 # Conflict between --help and --header 19507 { { echo "$as_me:$LINENO: error: ambiguous option: $1 19508Try \`$0 --help' for more information." >&5 19509echo "$as_me: error: ambiguous option: $1 19510Try \`$0 --help' for more information." >&2;} 19511 { (exit 1); exit 1; }; };; 19512 --help | --hel | -h ) 19513 echo "$ac_cs_usage"; exit 0 ;; 19514 --debug | --d* | -d ) 19515 debug=: ;; 19516 --file | --fil | --fi | --f ) 19517 $ac_shift 19518 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 19519 ac_need_defaults=false;; 19520 --header | --heade | --head | --hea ) 19521 $ac_shift 19522 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 19523 ac_need_defaults=false;; 19524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19525 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19526 ac_cs_silent=: ;; 19527 19528 # This is an error. 19529 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 19530Try \`$0 --help' for more information." >&5 19531echo "$as_me: error: unrecognized option: $1 19532Try \`$0 --help' for more information." >&2;} 19533 { (exit 1); exit 1; }; } ;; 19534 19535 *) ac_config_targets="$ac_config_targets $1" ;; 19536 19537 esac 19538 shift 19539done 19540 19541ac_configure_extra_args= 19542 19543if $ac_cs_silent; then 19544 exec 6>/dev/null 19545 ac_configure_extra_args="$ac_configure_extra_args --silent" 19546fi 19547 19548_ACEOF 19549cat >>$CONFIG_STATUS <<_ACEOF 19550if \$ac_cs_recheck; then 19551 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 19552 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19553fi 19554 19555_ACEOF 19556 19557cat >>$CONFIG_STATUS <<_ACEOF 19558# 19559# INIT-COMMANDS section. 19560# 19561 19562AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19563 19564_ACEOF 19565 19566 19567 19568cat >>$CONFIG_STATUS <<\_ACEOF 19569for ac_config_target in $ac_config_targets 19570do 19571 case "$ac_config_target" in 19572 # Handling of arguments. 19573 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19574 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19575 "xkbui.pc" ) CONFIG_FILES="$CONFIG_FILES xkbui.pc" ;; 19576 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19577 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19578 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 19579echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 19580 { (exit 1); exit 1; }; };; 19581 esac 19582done 19583 19584# If the user did not use the arguments to specify the items to instantiate, 19585# then the envvar interface is used. Set only those that are not. 19586# We use the long form for the default assignment because of an extremely 19587# bizarre bug on SunOS 4.1.3. 19588if $ac_need_defaults; then 19589 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19590 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19591 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19592fi 19593 19594# Have a temporary directory for convenience. Make it in the build tree 19595# simply because there is no reason to put it here, and in addition, 19596# creating and moving files from /tmp can sometimes cause problems. 19597# Create a temporary directory, and hook for its removal unless debugging. 19598$debug || 19599{ 19600 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 19601 trap '{ (exit 1); exit 1; }' 1 2 13 15 19602} 19603 19604# Create a (secure) tmp directory for tmp files. 19605 19606{ 19607 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 19608 test -n "$tmp" && test -d "$tmp" 19609} || 19610{ 19611 tmp=./confstat$$-$RANDOM 19612 (umask 077 && mkdir $tmp) 19613} || 19614{ 19615 echo "$me: cannot create a temporary directory in ." >&2 19616 { (exit 1); exit 1; } 19617} 19618 19619_ACEOF 19620 19621cat >>$CONFIG_STATUS <<_ACEOF 19622 19623# 19624# CONFIG_FILES section. 19625# 19626 19627# No need to generate the scripts if there are no CONFIG_FILES. 19628# This happens for instance when ./config.status config.h 19629if test -n "\$CONFIG_FILES"; then 19630 # Protect against being on the right side of a sed subst in config.status. 19631 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 19632 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 19633s,@SHELL@,$SHELL,;t t 19634s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 19635s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 19636s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 19637s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 19638s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 19639s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 19640s,@exec_prefix@,$exec_prefix,;t t 19641s,@prefix@,$prefix,;t t 19642s,@program_transform_name@,$program_transform_name,;t t 19643s,@bindir@,$bindir,;t t 19644s,@sbindir@,$sbindir,;t t 19645s,@libexecdir@,$libexecdir,;t t 19646s,@datadir@,$datadir,;t t 19647s,@sysconfdir@,$sysconfdir,;t t 19648s,@sharedstatedir@,$sharedstatedir,;t t 19649s,@localstatedir@,$localstatedir,;t t 19650s,@libdir@,$libdir,;t t 19651s,@includedir@,$includedir,;t t 19652s,@oldincludedir@,$oldincludedir,;t t 19653s,@infodir@,$infodir,;t t 19654s,@mandir@,$mandir,;t t 19655s,@build_alias@,$build_alias,;t t 19656s,@host_alias@,$host_alias,;t t 19657s,@target_alias@,$target_alias,;t t 19658s,@DEFS@,$DEFS,;t t 19659s,@ECHO_C@,$ECHO_C,;t t 19660s,@ECHO_N@,$ECHO_N,;t t 19661s,@ECHO_T@,$ECHO_T,;t t 19662s,@LIBS@,$LIBS,;t t 19663s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 19664s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 19665s,@INSTALL_DATA@,$INSTALL_DATA,;t t 19666s,@CYGPATH_W@,$CYGPATH_W,;t t 19667s,@PACKAGE@,$PACKAGE,;t t 19668s,@VERSION@,$VERSION,;t t 19669s,@ACLOCAL@,$ACLOCAL,;t t 19670s,@AUTOCONF@,$AUTOCONF,;t t 19671s,@AUTOMAKE@,$AUTOMAKE,;t t 19672s,@AUTOHEADER@,$AUTOHEADER,;t t 19673s,@MAKEINFO@,$MAKEINFO,;t t 19674s,@install_sh@,$install_sh,;t t 19675s,@STRIP@,$STRIP,;t t 19676s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 19677s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 19678s,@mkdir_p@,$mkdir_p,;t t 19679s,@AWK@,$AWK,;t t 19680s,@SET_MAKE@,$SET_MAKE,;t t 19681s,@am__leading_dot@,$am__leading_dot,;t t 19682s,@AMTAR@,$AMTAR,;t t 19683s,@am__tar@,$am__tar,;t t 19684s,@am__untar@,$am__untar,;t t 19685s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 19686s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 19687s,@MAINT@,$MAINT,;t t 19688s,@CC@,$CC,;t t 19689s,@CFLAGS@,$CFLAGS,;t t 19690s,@LDFLAGS@,$LDFLAGS,;t t 19691s,@CPPFLAGS@,$CPPFLAGS,;t t 19692s,@ac_ct_CC@,$ac_ct_CC,;t t 19693s,@EXEEXT@,$EXEEXT,;t t 19694s,@OBJEXT@,$OBJEXT,;t t 19695s,@DEPDIR@,$DEPDIR,;t t 19696s,@am__include@,$am__include,;t t 19697s,@am__quote@,$am__quote,;t t 19698s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 19699s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 19700s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 19701s,@CCDEPMODE@,$CCDEPMODE,;t t 19702s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 19703s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 19704s,@build@,$build,;t t 19705s,@build_cpu@,$build_cpu,;t t 19706s,@build_vendor@,$build_vendor,;t t 19707s,@build_os@,$build_os,;t t 19708s,@host@,$host,;t t 19709s,@host_cpu@,$host_cpu,;t t 19710s,@host_vendor@,$host_vendor,;t t 19711s,@host_os@,$host_os,;t t 19712s,@EGREP@,$EGREP,;t t 19713s,@LN_S@,$LN_S,;t t 19714s,@ECHO@,$ECHO,;t t 19715s,@AR@,$AR,;t t 19716s,@ac_ct_AR@,$ac_ct_AR,;t t 19717s,@RANLIB@,$RANLIB,;t t 19718s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 19719s,@CPP@,$CPP,;t t 19720s,@CXX@,$CXX,;t t 19721s,@CXXFLAGS@,$CXXFLAGS,;t t 19722s,@ac_ct_CXX@,$ac_ct_CXX,;t t 19723s,@CXXDEPMODE@,$CXXDEPMODE,;t t 19724s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 19725s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 19726s,@CXXCPP@,$CXXCPP,;t t 19727s,@F77@,$F77,;t t 19728s,@FFLAGS@,$FFLAGS,;t t 19729s,@ac_ct_F77@,$ac_ct_F77,;t t 19730s,@LIBTOOL@,$LIBTOOL,;t t 19731s,@PKG_CONFIG@,$PKG_CONFIG,;t t 19732s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 19733s,@XKBUI_CFLAGS@,$XKBUI_CFLAGS,;t t 19734s,@XKBUI_LIBS@,$XKBUI_LIBS,;t t 19735s,@LIBOBJS@,$LIBOBJS,;t t 19736s,@LTLIBOBJS@,$LTLIBOBJS,;t t 19737CEOF 19738 19739_ACEOF 19740 19741 cat >>$CONFIG_STATUS <<\_ACEOF 19742 # Split the substitutions into bite-sized pieces for seds with 19743 # small command number limits, like on Digital OSF/1 and HP-UX. 19744 ac_max_sed_lines=48 19745 ac_sed_frag=1 # Number of current file. 19746 ac_beg=1 # First line for current file. 19747 ac_end=$ac_max_sed_lines # Line after last line for current file. 19748 ac_more_lines=: 19749 ac_sed_cmds= 19750 while $ac_more_lines; do 19751 if test $ac_beg -gt 1; then 19752 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19753 else 19754 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 19755 fi 19756 if test ! -s $tmp/subs.frag; then 19757 ac_more_lines=false 19758 else 19759 # The purpose of the label and of the branching condition is to 19760 # speed up the sed processing (if there are no `@' at all, there 19761 # is no need to browse any of the substitutions). 19762 # These are the two extra sed commands mentioned above. 19763 (echo ':t 19764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 19765 if test -z "$ac_sed_cmds"; then 19766 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 19767 else 19768 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 19769 fi 19770 ac_sed_frag=`expr $ac_sed_frag + 1` 19771 ac_beg=$ac_end 19772 ac_end=`expr $ac_end + $ac_max_sed_lines` 19773 fi 19774 done 19775 if test -z "$ac_sed_cmds"; then 19776 ac_sed_cmds=cat 19777 fi 19778fi # test -n "$CONFIG_FILES" 19779 19780_ACEOF 19781cat >>$CONFIG_STATUS <<\_ACEOF 19782for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 19783 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19784 case $ac_file in 19785 - | *:- | *:-:* ) # input from stdin 19786 cat >$tmp/stdin 19787 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19788 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19789 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 19790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 19791 * ) ac_file_in=$ac_file.in ;; 19792 esac 19793 19794 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 19795 ac_dir=`(dirname "$ac_file") 2>/dev/null || 19796$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19797 X"$ac_file" : 'X\(//\)[^/]' \| \ 19798 X"$ac_file" : 'X\(//\)$' \| \ 19799 X"$ac_file" : 'X\(/\)' \| \ 19800 . : '\(.\)' 2>/dev/null || 19801echo X"$ac_file" | 19802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19803 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19804 /^X\(\/\/\)$/{ s//\1/; q; } 19805 /^X\(\/\).*/{ s//\1/; q; } 19806 s/.*/./; q'` 19807 { if $as_mkdir_p; then 19808 mkdir -p "$ac_dir" 19809 else 19810 as_dir="$ac_dir" 19811 as_dirs= 19812 while test ! -d "$as_dir"; do 19813 as_dirs="$as_dir $as_dirs" 19814 as_dir=`(dirname "$as_dir") 2>/dev/null || 19815$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19816 X"$as_dir" : 'X\(//\)[^/]' \| \ 19817 X"$as_dir" : 'X\(//\)$' \| \ 19818 X"$as_dir" : 'X\(/\)' \| \ 19819 . : '\(.\)' 2>/dev/null || 19820echo X"$as_dir" | 19821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 19822 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 19823 /^X\(\/\/\)$/{ s//\1/; q; } 19824 /^X\(\/\).*/{ s//\1/; q; } 19825 s/.*/./; q'` 19826 done 19827 test ! -n "$as_dirs" || mkdir $as_dirs 19828 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 19829echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 19830 { (exit 1); exit 1; }; }; } 19831 19832 ac_builddir=. 19833 19834if test "$ac_dir" != .; then 19835 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19836 # A "../" for each directory in $ac_dir_suffix. 19837 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 19838else 19839 ac_dir_suffix= ac_top_builddir= 19840fi 19841 19842case $srcdir in 19843 .) # No --srcdir option. We are building in place. 19844 ac_srcdir=. 19845 if test -z "$ac_top_builddir"; then 19846 ac_top_srcdir=. 19847 else 19848 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 19849 fi ;; 19850 [\\/]* | ?:[\\/]* ) # Absolute path. 19851 ac_srcdir=$srcdir$ac_dir_suffix; 19852 ac_top_srcdir=$srcdir ;; 19853 *) # Relative path. 19854 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 19855 ac_top_srcdir=$ac_top_builddir$srcdir ;; 19856esac 19857 19858# Do not use `cd foo && pwd` to compute absolute paths, because 19859# the directories may not exist. 19860case `pwd` in 19861.) ac_abs_builddir="$ac_dir";; 19862*) 19863 case "$ac_dir" in 19864 .) ac_abs_builddir=`pwd`;; 19865 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 19866 *) ac_abs_builddir=`pwd`/"$ac_dir";; 19867 esac;; 19868esac 19869case $ac_abs_builddir in 19870.) ac_abs_top_builddir=${ac_top_builddir}.;; 19871*) 19872 case ${ac_top_builddir}. in 19873 .) ac_abs_top_builddir=$ac_abs_builddir;; 19874 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 19875 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 19876 esac;; 19877esac 19878case $ac_abs_builddir in 19879.) ac_abs_srcdir=$ac_srcdir;; 19880*) 19881 case $ac_srcdir in 19882 .) ac_abs_srcdir=$ac_abs_builddir;; 19883 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 19884 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 19885 esac;; 19886esac 19887case $ac_abs_builddir in 19888.) ac_abs_top_srcdir=$ac_top_srcdir;; 19889*) 19890 case $ac_top_srcdir in 19891 .) ac_abs_top_srcdir=$ac_abs_builddir;; 19892 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 19893 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 19894 esac;; 19895esac 19896 19897 19898 case $INSTALL in 19899 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19900 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 19901 esac 19902 19903 if test x"$ac_file" != x-; then 19904 { echo "$as_me:$LINENO: creating $ac_file" >&5 19905echo "$as_me: creating $ac_file" >&6;} 19906 rm -f "$ac_file" 19907 fi 19908 # Let's still pretend it is `configure' which instantiates (i.e., don't 19909 # use $as_me), people would be surprised to read: 19910 # /* config.h. Generated by config.status. */ 19911 if test x"$ac_file" = x-; then 19912 configure_input= 19913 else 19914 configure_input="$ac_file. " 19915 fi 19916 configure_input=$configure_input"Generated from `echo $ac_file_in | 19917 sed 's,.*/,,'` by configure." 19918 19919 # First look for the input files in the build tree, otherwise in the 19920 # src tree. 19921 ac_file_inputs=`IFS=: 19922 for f in $ac_file_in; do 19923 case $f in 19924 -) echo $tmp/stdin ;; 19925 [\\/$]*) 19926 # Absolute (can't be DOS-style, as IFS=:) 19927 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 19928echo "$as_me: error: cannot find input file: $f" >&2;} 19929 { (exit 1); exit 1; }; } 19930 echo "$f";; 19931 *) # Relative 19932 if test -f "$f"; then 19933 # Build tree 19934 echo "$f" 19935 elif test -f "$srcdir/$f"; then 19936 # Source tree 19937 echo "$srcdir/$f" 19938 else 19939 # /dev/null tree 19940 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 19941echo "$as_me: error: cannot find input file: $f" >&2;} 19942 { (exit 1); exit 1; }; } 19943 fi;; 19944 esac 19945 done` || { (exit 1); exit 1; } 19946_ACEOF 19947cat >>$CONFIG_STATUS <<_ACEOF 19948 sed "$ac_vpsub 19949$extrasub 19950_ACEOF 19951cat >>$CONFIG_STATUS <<\_ACEOF 19952:t 19953/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19954s,@configure_input@,$configure_input,;t t 19955s,@srcdir@,$ac_srcdir,;t t 19956s,@abs_srcdir@,$ac_abs_srcdir,;t t 19957s,@top_srcdir@,$ac_top_srcdir,;t t 19958s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 19959s,@builddir@,$ac_builddir,;t t 19960s,@abs_builddir@,$ac_abs_builddir,;t t 19961s,@top_builddir@,$ac_top_builddir,;t t 19962s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 19963s,@INSTALL@,$ac_INSTALL,;t t 19964" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 19965 rm -f $tmp/stdin 19966 if test x"$ac_file" != x-; then 19967 mv $tmp/out $ac_file 19968 else 19969 cat $tmp/out 19970 rm -f $tmp/out 19971 fi 19972 19973done 19974_ACEOF 19975cat >>$CONFIG_STATUS <<\_ACEOF 19976 19977# 19978# CONFIG_HEADER section. 19979# 19980 19981# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 19982# NAME is the cpp macro being defined and VALUE is the value it is being given. 19983# 19984# ac_d sets the value in "#define NAME VALUE" lines. 19985ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 19986ac_dB='[ ].*$,\1#\2' 19987ac_dC=' ' 19988ac_dD=',;t' 19989# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 19990ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 19991ac_uB='$,\1#\2define\3' 19992ac_uC=' ' 19993ac_uD=',;t' 19994 19995for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 19996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 19997 case $ac_file in 19998 - | *:- | *:-:* ) # input from stdin 19999 cat >$tmp/stdin 20000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20004 * ) ac_file_in=$ac_file.in ;; 20005 esac 20006 20007 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 20008echo "$as_me: creating $ac_file" >&6;} 20009 20010 # First look for the input files in the build tree, otherwise in the 20011 # src tree. 20012 ac_file_inputs=`IFS=: 20013 for f in $ac_file_in; do 20014 case $f in 20015 -) echo $tmp/stdin ;; 20016 [\\/$]*) 20017 # Absolute (can't be DOS-style, as IFS=:) 20018 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20019echo "$as_me: error: cannot find input file: $f" >&2;} 20020 { (exit 1); exit 1; }; } 20021 # Do quote $f, to prevent DOS paths from being IFS'd. 20022 echo "$f";; 20023 *) # Relative 20024 if test -f "$f"; then 20025 # Build tree 20026 echo "$f" 20027 elif test -f "$srcdir/$f"; then 20028 # Source tree 20029 echo "$srcdir/$f" 20030 else 20031 # /dev/null tree 20032 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20033echo "$as_me: error: cannot find input file: $f" >&2;} 20034 { (exit 1); exit 1; }; } 20035 fi;; 20036 esac 20037 done` || { (exit 1); exit 1; } 20038 # Remove the trailing spaces. 20039 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20040 20041_ACEOF 20042 20043# Transform confdefs.h into two sed scripts, `conftest.defines' and 20044# `conftest.undefs', that substitutes the proper values into 20045# config.h.in to produce config.h. The first handles `#define' 20046# templates, and the second `#undef' templates. 20047# And first: Protect against being on the right side of a sed subst in 20048# config.status. Protect against being in an unquoted here document 20049# in config.status. 20050rm -f conftest.defines conftest.undefs 20051# Using a here document instead of a string reduces the quoting nightmare. 20052# Putting comments in sed scripts is not portable. 20053# 20054# `end' is used to avoid that the second main sed command (meant for 20055# 0-ary CPP macros) applies to n-ary macro definitions. 20056# See the Autoconf documentation for `clear'. 20057cat >confdef2sed.sed <<\_ACEOF 20058s/[\\&,]/\\&/g 20059s,[\\$`],\\&,g 20060t clear 20061: clear 20062s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 20063t end 20064s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20065: end 20066_ACEOF 20067# If some macros were called several times there might be several times 20068# the same #defines, which is useless. Nevertheless, we may not want to 20069# sort them, since we want the *last* AC-DEFINE to be honored. 20070uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20071sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20072rm -f confdef2sed.sed 20073 20074# This sed command replaces #undef with comments. This is necessary, for 20075# example, in the case of _POSIX_SOURCE, which is predefined and required 20076# on some systems where configure will not decide to define it. 20077cat >>conftest.undefs <<\_ACEOF 20078s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20079_ACEOF 20080 20081# Break up conftest.defines because some shells have a limit on the size 20082# of here documents, and old seds have small limits too (100 cmds). 20083echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20084echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20085echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20086echo ' :' >>$CONFIG_STATUS 20087rm -f conftest.tail 20088while grep . conftest.defines >/dev/null 20089do 20090 # Write a limited-size here document to $tmp/defines.sed. 20091 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20092 # Speed up: don't consider the non `#define' lines. 20093 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20094 # Work around the forget-to-reset-the-flag bug. 20095 echo 't clr' >>$CONFIG_STATUS 20096 echo ': clr' >>$CONFIG_STATUS 20097 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20098 echo 'CEOF 20099 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20100 rm -f $tmp/in 20101 mv $tmp/out $tmp/in 20102' >>$CONFIG_STATUS 20103 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 20104 rm -f conftest.defines 20105 mv conftest.tail conftest.defines 20106done 20107rm -f conftest.defines 20108echo ' fi # grep' >>$CONFIG_STATUS 20109echo >>$CONFIG_STATUS 20110 20111# Break up conftest.undefs because some shells have a limit on the size 20112# of here documents, and old seds have small limits too (100 cmds). 20113echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 20114rm -f conftest.tail 20115while grep . conftest.undefs >/dev/null 20116do 20117 # Write a limited-size here document to $tmp/undefs.sed. 20118 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 20119 # Speed up: don't consider the non `#undef' 20120 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 20121 # Work around the forget-to-reset-the-flag bug. 20122 echo 't clr' >>$CONFIG_STATUS 20123 echo ': clr' >>$CONFIG_STATUS 20124 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 20125 echo 'CEOF 20126 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 20127 rm -f $tmp/in 20128 mv $tmp/out $tmp/in 20129' >>$CONFIG_STATUS 20130 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 20131 rm -f conftest.undefs 20132 mv conftest.tail conftest.undefs 20133done 20134rm -f conftest.undefs 20135 20136cat >>$CONFIG_STATUS <<\_ACEOF 20137 # Let's still pretend it is `configure' which instantiates (i.e., don't 20138 # use $as_me), people would be surprised to read: 20139 # /* config.h. Generated by config.status. */ 20140 if test x"$ac_file" = x-; then 20141 echo "/* Generated by configure. */" >$tmp/config.h 20142 else 20143 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 20144 fi 20145 cat $tmp/in >>$tmp/config.h 20146 rm -f $tmp/in 20147 if test x"$ac_file" != x-; then 20148 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 20149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20150echo "$as_me: $ac_file is unchanged" >&6;} 20151 else 20152 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20153$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20154 X"$ac_file" : 'X\(//\)[^/]' \| \ 20155 X"$ac_file" : 'X\(//\)$' \| \ 20156 X"$ac_file" : 'X\(/\)' \| \ 20157 . : '\(.\)' 2>/dev/null || 20158echo X"$ac_file" | 20159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20160 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20161 /^X\(\/\/\)$/{ s//\1/; q; } 20162 /^X\(\/\).*/{ s//\1/; q; } 20163 s/.*/./; q'` 20164 { if $as_mkdir_p; then 20165 mkdir -p "$ac_dir" 20166 else 20167 as_dir="$ac_dir" 20168 as_dirs= 20169 while test ! -d "$as_dir"; do 20170 as_dirs="$as_dir $as_dirs" 20171 as_dir=`(dirname "$as_dir") 2>/dev/null || 20172$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20173 X"$as_dir" : 'X\(//\)[^/]' \| \ 20174 X"$as_dir" : 'X\(//\)$' \| \ 20175 X"$as_dir" : 'X\(/\)' \| \ 20176 . : '\(.\)' 2>/dev/null || 20177echo X"$as_dir" | 20178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20179 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20180 /^X\(\/\/\)$/{ s//\1/; q; } 20181 /^X\(\/\).*/{ s//\1/; q; } 20182 s/.*/./; q'` 20183 done 20184 test ! -n "$as_dirs" || mkdir $as_dirs 20185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20186echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20187 { (exit 1); exit 1; }; }; } 20188 20189 rm -f $ac_file 20190 mv $tmp/config.h $ac_file 20191 fi 20192 else 20193 cat $tmp/config.h 20194 rm -f $tmp/config.h 20195 fi 20196# Compute $ac_file's index in $config_headers. 20197_am_stamp_count=1 20198for _am_header in $config_headers :; do 20199 case $_am_header in 20200 $ac_file | $ac_file:* ) 20201 break ;; 20202 * ) 20203 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20204 esac 20205done 20206echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 20207$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20208 X$ac_file : 'X\(//\)[^/]' \| \ 20209 X$ac_file : 'X\(//\)$' \| \ 20210 X$ac_file : 'X\(/\)' \| \ 20211 . : '\(.\)' 2>/dev/null || 20212echo X$ac_file | 20213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20214 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20215 /^X\(\/\/\)$/{ s//\1/; q; } 20216 /^X\(\/\).*/{ s//\1/; q; } 20217 s/.*/./; q'`/stamp-h$_am_stamp_count 20218done 20219_ACEOF 20220cat >>$CONFIG_STATUS <<\_ACEOF 20221 20222# 20223# CONFIG_COMMANDS section. 20224# 20225for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 20226 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 20227 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 20228 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 20229$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20230 X"$ac_dest" : 'X\(//\)[^/]' \| \ 20231 X"$ac_dest" : 'X\(//\)$' \| \ 20232 X"$ac_dest" : 'X\(/\)' \| \ 20233 . : '\(.\)' 2>/dev/null || 20234echo X"$ac_dest" | 20235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20236 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20237 /^X\(\/\/\)$/{ s//\1/; q; } 20238 /^X\(\/\).*/{ s//\1/; q; } 20239 s/.*/./; q'` 20240 { if $as_mkdir_p; then 20241 mkdir -p "$ac_dir" 20242 else 20243 as_dir="$ac_dir" 20244 as_dirs= 20245 while test ! -d "$as_dir"; do 20246 as_dirs="$as_dir $as_dirs" 20247 as_dir=`(dirname "$as_dir") 2>/dev/null || 20248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20249 X"$as_dir" : 'X\(//\)[^/]' \| \ 20250 X"$as_dir" : 'X\(//\)$' \| \ 20251 X"$as_dir" : 'X\(/\)' \| \ 20252 . : '\(.\)' 2>/dev/null || 20253echo X"$as_dir" | 20254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20255 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20256 /^X\(\/\/\)$/{ s//\1/; q; } 20257 /^X\(\/\).*/{ s//\1/; q; } 20258 s/.*/./; q'` 20259 done 20260 test ! -n "$as_dirs" || mkdir $as_dirs 20261 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20262echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20263 { (exit 1); exit 1; }; }; } 20264 20265 ac_builddir=. 20266 20267if test "$ac_dir" != .; then 20268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20269 # A "../" for each directory in $ac_dir_suffix. 20270 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20271else 20272 ac_dir_suffix= ac_top_builddir= 20273fi 20274 20275case $srcdir in 20276 .) # No --srcdir option. We are building in place. 20277 ac_srcdir=. 20278 if test -z "$ac_top_builddir"; then 20279 ac_top_srcdir=. 20280 else 20281 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20282 fi ;; 20283 [\\/]* | ?:[\\/]* ) # Absolute path. 20284 ac_srcdir=$srcdir$ac_dir_suffix; 20285 ac_top_srcdir=$srcdir ;; 20286 *) # Relative path. 20287 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20288 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20289esac 20290 20291# Do not use `cd foo && pwd` to compute absolute paths, because 20292# the directories may not exist. 20293case `pwd` in 20294.) ac_abs_builddir="$ac_dir";; 20295*) 20296 case "$ac_dir" in 20297 .) ac_abs_builddir=`pwd`;; 20298 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20299 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20300 esac;; 20301esac 20302case $ac_abs_builddir in 20303.) ac_abs_top_builddir=${ac_top_builddir}.;; 20304*) 20305 case ${ac_top_builddir}. in 20306 .) ac_abs_top_builddir=$ac_abs_builddir;; 20307 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20308 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20309 esac;; 20310esac 20311case $ac_abs_builddir in 20312.) ac_abs_srcdir=$ac_srcdir;; 20313*) 20314 case $ac_srcdir in 20315 .) ac_abs_srcdir=$ac_abs_builddir;; 20316 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20317 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20318 esac;; 20319esac 20320case $ac_abs_builddir in 20321.) ac_abs_top_srcdir=$ac_top_srcdir;; 20322*) 20323 case $ac_top_srcdir in 20324 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20325 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20326 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20327 esac;; 20328esac 20329 20330 20331 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 20332echo "$as_me: executing $ac_dest commands" >&6;} 20333 case $ac_dest in 20334 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20335 # Strip MF so we end up with the name of the file. 20336 mf=`echo "$mf" | sed -e 's/:.*$//'` 20337 # Check whether this is an Automake generated Makefile or not. 20338 # We used to match only the files named `Makefile.in', but 20339 # some people rename them; so instead we look at the file content. 20340 # Grep'ing the first line is not enough: some people post-process 20341 # each Makefile.in and add a new line on top of each file to say so. 20342 # So let's grep whole file. 20343 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 20344 dirpart=`(dirname "$mf") 2>/dev/null || 20345$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20346 X"$mf" : 'X\(//\)[^/]' \| \ 20347 X"$mf" : 'X\(//\)$' \| \ 20348 X"$mf" : 'X\(/\)' \| \ 20349 . : '\(.\)' 2>/dev/null || 20350echo X"$mf" | 20351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20352 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20353 /^X\(\/\/\)$/{ s//\1/; q; } 20354 /^X\(\/\).*/{ s//\1/; q; } 20355 s/.*/./; q'` 20356 else 20357 continue 20358 fi 20359 # Extract the definition of DEPDIR, am__include, and am__quote 20360 # from the Makefile without running `make'. 20361 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20362 test -z "$DEPDIR" && continue 20363 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20364 test -z "am__include" && continue 20365 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20366 # When using ansi2knr, U may be empty or an underscore; expand it 20367 U=`sed -n 's/^U = //p' < "$mf"` 20368 # Find all dependency output files, they are included files with 20369 # $(DEPDIR) in their names. We invoke sed twice because it is the 20370 # simplest approach to changing $(DEPDIR) to its actual value in the 20371 # expansion. 20372 for file in `sed -n " 20373 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20374 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20375 # Make sure the directory exists. 20376 test -f "$dirpart/$file" && continue 20377 fdir=`(dirname "$file") 2>/dev/null || 20378$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20379 X"$file" : 'X\(//\)[^/]' \| \ 20380 X"$file" : 'X\(//\)$' \| \ 20381 X"$file" : 'X\(/\)' \| \ 20382 . : '\(.\)' 2>/dev/null || 20383echo X"$file" | 20384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20385 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20386 /^X\(\/\/\)$/{ s//\1/; q; } 20387 /^X\(\/\).*/{ s//\1/; q; } 20388 s/.*/./; q'` 20389 { if $as_mkdir_p; then 20390 mkdir -p $dirpart/$fdir 20391 else 20392 as_dir=$dirpart/$fdir 20393 as_dirs= 20394 while test ! -d "$as_dir"; do 20395 as_dirs="$as_dir $as_dirs" 20396 as_dir=`(dirname "$as_dir") 2>/dev/null || 20397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20398 X"$as_dir" : 'X\(//\)[^/]' \| \ 20399 X"$as_dir" : 'X\(//\)$' \| \ 20400 X"$as_dir" : 'X\(/\)' \| \ 20401 . : '\(.\)' 2>/dev/null || 20402echo X"$as_dir" | 20403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20404 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20405 /^X\(\/\/\)$/{ s//\1/; q; } 20406 /^X\(\/\).*/{ s//\1/; q; } 20407 s/.*/./; q'` 20408 done 20409 test ! -n "$as_dirs" || mkdir $as_dirs 20410 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 20411echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 20412 { (exit 1); exit 1; }; }; } 20413 20414 # echo "creating $dirpart/$file" 20415 echo '# dummy' > "$dirpart/$file" 20416 done 20417done 20418 ;; 20419 esac 20420done 20421_ACEOF 20422 20423cat >>$CONFIG_STATUS <<\_ACEOF 20424 20425{ (exit 0); exit 0; } 20426_ACEOF 20427chmod +x $CONFIG_STATUS 20428ac_clean_files=$ac_clean_files_save 20429 20430 20431# configure is writing to config.log, and then calls config.status. 20432# config.status does its own redirection, appending to config.log. 20433# Unfortunately, on DOS this fails, as config.log is still kept open 20434# by configure, so config.status won't be able to write to it; its 20435# output is simply discarded. So we exec the FD to /dev/null, 20436# effectively closing config.log, so it can be properly (re)opened and 20437# appended to by config.status. When coming back to configure, we 20438# need to make the FD available again. 20439if test "$no_create" != yes; then 20440 ac_cs_success=: 20441 ac_config_status_args= 20442 test "$silent" = yes && 20443 ac_config_status_args="$ac_config_status_args --quiet" 20444 exec 5>/dev/null 20445 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20446 exec 5>>config.log 20447 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20448 # would make configure fail if this is the last instruction. 20449 $ac_cs_success || { (exit 1); exit 1; } 20450fi 20451 20452