configure revision 226fade8
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for xf86-video-vesa 1.3.0. 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='xf86-video-vesa' 425PACKAGE_TARNAME='xf86-video-vesa' 426PACKAGE_VERSION='1.3.0' 427PACKAGE_STRING='xf86-video-vesa 1.3.0' 428PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 429 430ac_unique_file="Makefile.am" 431# Factoring default headers for most tests. 432ac_includes_default="\ 433#include <stdio.h> 434#if HAVE_SYS_TYPES_H 435# include <sys/types.h> 436#endif 437#if HAVE_SYS_STAT_H 438# include <sys/stat.h> 439#endif 440#if STDC_HEADERS 441# include <stdlib.h> 442# include <stddef.h> 443#else 444# if HAVE_STDLIB_H 445# include <stdlib.h> 446# endif 447#endif 448#if HAVE_STRING_H 449# if !STDC_HEADERS && HAVE_MEMORY_H 450# include <memory.h> 451# endif 452# include <string.h> 453#endif 454#if HAVE_STRINGS_H 455# include <strings.h> 456#endif 457#if HAVE_INTTYPES_H 458# include <inttypes.h> 459#else 460# if HAVE_STDINT_H 461# include <stdint.h> 462# endif 463#endif 464#if HAVE_UNISTD_H 465# include <unistd.h> 466#endif" 467 468ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED 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 moduledir PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS INCLUDES DRIVER_NAME APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS' 469ac_subst_files='' 470 471# Initialize some variables set by options. 472ac_init_help= 473ac_init_version=false 474# The variables have the same names as the options, with 475# dashes changed to underlines. 476cache_file=/dev/null 477exec_prefix=NONE 478no_create= 479no_recursion= 480prefix=NONE 481program_prefix=NONE 482program_suffix=NONE 483program_transform_name=s,x,x, 484silent= 485site= 486srcdir= 487verbose= 488x_includes=NONE 489x_libraries=NONE 490 491# Installation directory options. 492# These are left unexpanded so users can "make install exec_prefix=/foo" 493# and all the variables that are supposed to be based on exec_prefix 494# by default will actually change. 495# Use braces instead of parens because sh, perl, etc. also accept them. 496bindir='${exec_prefix}/bin' 497sbindir='${exec_prefix}/sbin' 498libexecdir='${exec_prefix}/libexec' 499datadir='${prefix}/share' 500sysconfdir='${prefix}/etc' 501sharedstatedir='${prefix}/com' 502localstatedir='${prefix}/var' 503libdir='${exec_prefix}/lib' 504includedir='${prefix}/include' 505oldincludedir='/usr/include' 506infodir='${prefix}/info' 507mandir='${prefix}/man' 508 509ac_prev= 510for ac_option 511do 512 # If the previous option needs an argument, assign it. 513 if test -n "$ac_prev"; then 514 eval "$ac_prev=\$ac_option" 515 ac_prev= 516 continue 517 fi 518 519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 520 521 # Accept the important Cygnus configure options, so we can diagnose typos. 522 523 case $ac_option in 524 525 -bindir | --bindir | --bindi | --bind | --bin | --bi) 526 ac_prev=bindir ;; 527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 528 bindir=$ac_optarg ;; 529 530 -build | --build | --buil | --bui | --bu) 531 ac_prev=build_alias ;; 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 533 build_alias=$ac_optarg ;; 534 535 -cache-file | --cache-file | --cache-fil | --cache-fi \ 536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 537 ac_prev=cache_file ;; 538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 540 cache_file=$ac_optarg ;; 541 542 --config-cache | -C) 543 cache_file=config.cache ;; 544 545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 546 ac_prev=datadir ;; 547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 548 | --da=*) 549 datadir=$ac_optarg ;; 550 551 -disable-* | --disable-*) 552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 553 # Reject names that are not valid shell variable names. 554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 556 { (exit 1); exit 1; }; } 557 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 558 eval "enable_$ac_feature=no" ;; 559 560 -enable-* | --enable-*) 561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 562 # Reject names that are not valid shell variable names. 563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 565 { (exit 1); exit 1; }; } 566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 567 case $ac_option in 568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 569 *) ac_optarg=yes ;; 570 esac 571 eval "enable_$ac_feature='$ac_optarg'" ;; 572 573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 575 | --exec | --exe | --ex) 576 ac_prev=exec_prefix ;; 577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 579 | --exec=* | --exe=* | --ex=*) 580 exec_prefix=$ac_optarg ;; 581 582 -gas | --gas | --ga | --g) 583 # Obsolete; use --with-gas. 584 with_gas=yes ;; 585 586 -help | --help | --hel | --he | -h) 587 ac_init_help=long ;; 588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 589 ac_init_help=recursive ;; 590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 591 ac_init_help=short ;; 592 593 -host | --host | --hos | --ho) 594 ac_prev=host_alias ;; 595 -host=* | --host=* | --hos=* | --ho=*) 596 host_alias=$ac_optarg ;; 597 598 -includedir | --includedir | --includedi | --included | --include \ 599 | --includ | --inclu | --incl | --inc) 600 ac_prev=includedir ;; 601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 602 | --includ=* | --inclu=* | --incl=* | --inc=*) 603 includedir=$ac_optarg ;; 604 605 -infodir | --infodir | --infodi | --infod | --info | --inf) 606 ac_prev=infodir ;; 607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 608 infodir=$ac_optarg ;; 609 610 -libdir | --libdir | --libdi | --libd) 611 ac_prev=libdir ;; 612 -libdir=* | --libdir=* | --libdi=* | --libd=*) 613 libdir=$ac_optarg ;; 614 615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 616 | --libexe | --libex | --libe) 617 ac_prev=libexecdir ;; 618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 619 | --libexe=* | --libex=* | --libe=*) 620 libexecdir=$ac_optarg ;; 621 622 -localstatedir | --localstatedir | --localstatedi | --localstated \ 623 | --localstate | --localstat | --localsta | --localst \ 624 | --locals | --local | --loca | --loc | --lo) 625 ac_prev=localstatedir ;; 626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 629 localstatedir=$ac_optarg ;; 630 631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 632 ac_prev=mandir ;; 633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 634 mandir=$ac_optarg ;; 635 636 -nfp | --nfp | --nf) 637 # Obsolete; use --without-fp. 638 with_fp=no ;; 639 640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 641 | --no-cr | --no-c | -n) 642 no_create=yes ;; 643 644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 646 no_recursion=yes ;; 647 648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 650 | --oldin | --oldi | --old | --ol | --o) 651 ac_prev=oldincludedir ;; 652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 655 oldincludedir=$ac_optarg ;; 656 657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 658 ac_prev=prefix ;; 659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 660 prefix=$ac_optarg ;; 661 662 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 663 | --program-pre | --program-pr | --program-p) 664 ac_prev=program_prefix ;; 665 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 667 program_prefix=$ac_optarg ;; 668 669 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 670 | --program-suf | --program-su | --program-s) 671 ac_prev=program_suffix ;; 672 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 674 program_suffix=$ac_optarg ;; 675 676 -program-transform-name | --program-transform-name \ 677 | --program-transform-nam | --program-transform-na \ 678 | --program-transform-n | --program-transform- \ 679 | --program-transform | --program-transfor \ 680 | --program-transfo | --program-transf \ 681 | --program-trans | --program-tran \ 682 | --progr-tra | --program-tr | --program-t) 683 ac_prev=program_transform_name ;; 684 -program-transform-name=* | --program-transform-name=* \ 685 | --program-transform-nam=* | --program-transform-na=* \ 686 | --program-transform-n=* | --program-transform-=* \ 687 | --program-transform=* | --program-transfor=* \ 688 | --program-transfo=* | --program-transf=* \ 689 | --program-trans=* | --program-tran=* \ 690 | --progr-tra=* | --program-tr=* | --program-t=*) 691 program_transform_name=$ac_optarg ;; 692 693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 694 | -silent | --silent | --silen | --sile | --sil) 695 silent=yes ;; 696 697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 698 ac_prev=sbindir ;; 699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 700 | --sbi=* | --sb=*) 701 sbindir=$ac_optarg ;; 702 703 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 705 | --sharedst | --shareds | --shared | --share | --shar \ 706 | --sha | --sh) 707 ac_prev=sharedstatedir ;; 708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 711 | --sha=* | --sh=*) 712 sharedstatedir=$ac_optarg ;; 713 714 -site | --site | --sit) 715 ac_prev=site ;; 716 -site=* | --site=* | --sit=*) 717 site=$ac_optarg ;; 718 719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 720 ac_prev=srcdir ;; 721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 722 srcdir=$ac_optarg ;; 723 724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 725 | --syscon | --sysco | --sysc | --sys | --sy) 726 ac_prev=sysconfdir ;; 727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 729 sysconfdir=$ac_optarg ;; 730 731 -target | --target | --targe | --targ | --tar | --ta | --t) 732 ac_prev=target_alias ;; 733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 734 target_alias=$ac_optarg ;; 735 736 -v | -verbose | --verbose | --verbos | --verbo | --verb) 737 verbose=yes ;; 738 739 -version | --version | --versio | --versi | --vers | -V) 740 ac_init_version=: ;; 741 742 -with-* | --with-*) 743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 744 # Reject names that are not valid shell variable names. 745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 746 { echo "$as_me: error: invalid package name: $ac_package" >&2 747 { (exit 1); exit 1; }; } 748 ac_package=`echo $ac_package| sed 's/-/_/g'` 749 case $ac_option in 750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 751 *) ac_optarg=yes ;; 752 esac 753 eval "with_$ac_package='$ac_optarg'" ;; 754 755 -without-* | --without-*) 756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 757 # Reject names that are not valid shell variable names. 758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 759 { echo "$as_me: error: invalid package name: $ac_package" >&2 760 { (exit 1); exit 1; }; } 761 ac_package=`echo $ac_package | sed 's/-/_/g'` 762 eval "with_$ac_package=no" ;; 763 764 --x) 765 # Obsolete; use --with-x. 766 with_x=yes ;; 767 768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 769 | --x-incl | --x-inc | --x-in | --x-i) 770 ac_prev=x_includes ;; 771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 773 x_includes=$ac_optarg ;; 774 775 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 777 ac_prev=x_libraries ;; 778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 780 x_libraries=$ac_optarg ;; 781 782 -*) { echo "$as_me: error: unrecognized option: $ac_option 783Try \`$0 --help' for more information." >&2 784 { (exit 1); exit 1; }; } 785 ;; 786 787 *=*) 788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 792 { (exit 1); exit 1; }; } 793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 794 eval "$ac_envvar='$ac_optarg'" 795 export $ac_envvar ;; 796 797 *) 798 # FIXME: should be removed in autoconf 3.0. 799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 803 ;; 804 805 esac 806done 807 808if test -n "$ac_prev"; then 809 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 810 { echo "$as_me: error: missing argument to $ac_option" >&2 811 { (exit 1); exit 1; }; } 812fi 813 814# Be sure to have absolute paths. 815for ac_var in exec_prefix prefix 816do 817 eval ac_val=$`echo $ac_var` 818 case $ac_val in 819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 821 { (exit 1); exit 1; }; };; 822 esac 823done 824 825# Be sure to have absolute paths. 826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 827 localstatedir libdir includedir oldincludedir infodir mandir 828do 829 eval ac_val=$`echo $ac_var` 830 case $ac_val in 831 [\\/$]* | ?:[\\/]* ) ;; 832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 833 { (exit 1); exit 1; }; };; 834 esac 835done 836 837# There might be people who depend on the old broken behavior: `$host' 838# used to hold the argument of --host etc. 839# FIXME: To remove some day. 840build=$build_alias 841host=$host_alias 842target=$target_alias 843 844# FIXME: To remove some day. 845if test "x$host_alias" != x; then 846 if test "x$build_alias" = x; then 847 cross_compiling=maybe 848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 849 If a cross compiler is detected then cross compile mode will be used." >&2 850 elif test "x$build_alias" != "x$host_alias"; then 851 cross_compiling=yes 852 fi 853fi 854 855ac_tool_prefix= 856test -n "$host_alias" && ac_tool_prefix=$host_alias- 857 858test "$silent" = yes && exec 6>/dev/null 859 860 861# Find the source files, if location was not specified. 862if test -z "$srcdir"; then 863 ac_srcdir_defaulted=yes 864 # Try the directory containing this script, then its parent. 865 ac_confdir=`(dirname "$0") 2>/dev/null || 866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 867 X"$0" : 'X\(//\)[^/]' \| \ 868 X"$0" : 'X\(//\)$' \| \ 869 X"$0" : 'X\(/\)' \| \ 870 . : '\(.\)' 2>/dev/null || 871echo X"$0" | 872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 874 /^X\(\/\/\)$/{ s//\1/; q; } 875 /^X\(\/\).*/{ s//\1/; q; } 876 s/.*/./; q'` 877 srcdir=$ac_confdir 878 if test ! -r $srcdir/$ac_unique_file; then 879 srcdir=.. 880 fi 881else 882 ac_srcdir_defaulted=no 883fi 884if test ! -r $srcdir/$ac_unique_file; then 885 if test "$ac_srcdir_defaulted" = yes; then 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 887 { (exit 1); exit 1; }; } 888 else 889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 890 { (exit 1); exit 1; }; } 891 fi 892fi 893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 895 { (exit 1); exit 1; }; } 896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 897ac_env_build_alias_set=${build_alias+set} 898ac_env_build_alias_value=$build_alias 899ac_cv_env_build_alias_set=${build_alias+set} 900ac_cv_env_build_alias_value=$build_alias 901ac_env_host_alias_set=${host_alias+set} 902ac_env_host_alias_value=$host_alias 903ac_cv_env_host_alias_set=${host_alias+set} 904ac_cv_env_host_alias_value=$host_alias 905ac_env_target_alias_set=${target_alias+set} 906ac_env_target_alias_value=$target_alias 907ac_cv_env_target_alias_set=${target_alias+set} 908ac_cv_env_target_alias_value=$target_alias 909ac_env_CC_set=${CC+set} 910ac_env_CC_value=$CC 911ac_cv_env_CC_set=${CC+set} 912ac_cv_env_CC_value=$CC 913ac_env_CFLAGS_set=${CFLAGS+set} 914ac_env_CFLAGS_value=$CFLAGS 915ac_cv_env_CFLAGS_set=${CFLAGS+set} 916ac_cv_env_CFLAGS_value=$CFLAGS 917ac_env_LDFLAGS_set=${LDFLAGS+set} 918ac_env_LDFLAGS_value=$LDFLAGS 919ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920ac_cv_env_LDFLAGS_value=$LDFLAGS 921ac_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_env_CPPFLAGS_value=$CPPFLAGS 923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_cv_env_CPPFLAGS_value=$CPPFLAGS 925ac_env_CPP_set=${CPP+set} 926ac_env_CPP_value=$CPP 927ac_cv_env_CPP_set=${CPP+set} 928ac_cv_env_CPP_value=$CPP 929ac_env_CXX_set=${CXX+set} 930ac_env_CXX_value=$CXX 931ac_cv_env_CXX_set=${CXX+set} 932ac_cv_env_CXX_value=$CXX 933ac_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_env_CXXFLAGS_value=$CXXFLAGS 935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 936ac_cv_env_CXXFLAGS_value=$CXXFLAGS 937ac_env_CXXCPP_set=${CXXCPP+set} 938ac_env_CXXCPP_value=$CXXCPP 939ac_cv_env_CXXCPP_set=${CXXCPP+set} 940ac_cv_env_CXXCPP_value=$CXXCPP 941ac_env_F77_set=${F77+set} 942ac_env_F77_value=$F77 943ac_cv_env_F77_set=${F77+set} 944ac_cv_env_F77_value=$F77 945ac_env_FFLAGS_set=${FFLAGS+set} 946ac_env_FFLAGS_value=$FFLAGS 947ac_cv_env_FFLAGS_set=${FFLAGS+set} 948ac_cv_env_FFLAGS_value=$FFLAGS 949ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 950ac_env_PKG_CONFIG_value=$PKG_CONFIG 951ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 952ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 953ac_env_XORG_CFLAGS_set=${XORG_CFLAGS+set} 954ac_env_XORG_CFLAGS_value=$XORG_CFLAGS 955ac_cv_env_XORG_CFLAGS_set=${XORG_CFLAGS+set} 956ac_cv_env_XORG_CFLAGS_value=$XORG_CFLAGS 957ac_env_XORG_LIBS_set=${XORG_LIBS+set} 958ac_env_XORG_LIBS_value=$XORG_LIBS 959ac_cv_env_XORG_LIBS_set=${XORG_LIBS+set} 960ac_cv_env_XORG_LIBS_value=$XORG_LIBS 961 962# 963# Report the --help message. 964# 965if test "$ac_init_help" = "long"; then 966 # Omit some internal or obsolete options to make the list less imposing. 967 # This message is too long to be a string in the A/UX 3.1 sh. 968 cat <<_ACEOF 969\`configure' configures xf86-video-vesa 1.3.0 to adapt to many kinds of systems. 970 971Usage: $0 [OPTION]... [VAR=VALUE]... 972 973To assign environment variables (e.g., CC, CFLAGS...), specify them as 974VAR=VALUE. See below for descriptions of some of the useful variables. 975 976Defaults for the options are specified in brackets. 977 978Configuration: 979 -h, --help display this help and exit 980 --help=short display options specific to this package 981 --help=recursive display the short help of all the included packages 982 -V, --version display version information and exit 983 -q, --quiet, --silent do not print \`checking...' messages 984 --cache-file=FILE cache test results in FILE [disabled] 985 -C, --config-cache alias for \`--cache-file=config.cache' 986 -n, --no-create do not create output files 987 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 988 989_ACEOF 990 991 cat <<_ACEOF 992Installation directories: 993 --prefix=PREFIX install architecture-independent files in PREFIX 994 [$ac_default_prefix] 995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 996 [PREFIX] 997 998By default, \`make install' will install all the files in 999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1000an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1001for instance \`--prefix=\$HOME'. 1002 1003For better control, use the options below. 1004 1005Fine tuning of the installation directories: 1006 --bindir=DIR user executables [EPREFIX/bin] 1007 --sbindir=DIR system admin executables [EPREFIX/sbin] 1008 --libexecdir=DIR program executables [EPREFIX/libexec] 1009 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1013 --libdir=DIR object code libraries [EPREFIX/lib] 1014 --includedir=DIR C header files [PREFIX/include] 1015 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1016 --infodir=DIR info documentation [PREFIX/info] 1017 --mandir=DIR man documentation [PREFIX/man] 1018_ACEOF 1019 1020 cat <<\_ACEOF 1021 1022Program names: 1023 --program-prefix=PREFIX prepend PREFIX to installed program names 1024 --program-suffix=SUFFIX append SUFFIX to installed program names 1025 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1026 1027System types: 1028 --build=BUILD configure for building on BUILD [guessed] 1029 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1030_ACEOF 1031fi 1032 1033if test -n "$ac_init_help"; then 1034 case $ac_init_help in 1035 short | recursive ) echo "Configuration of xf86-video-vesa 1.3.0:";; 1036 esac 1037 cat <<\_ACEOF 1038 1039Optional Features: 1040 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1041 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1042 --enable-maintainer-mode enable make rules and dependencies not useful 1043 (and sometimes confusing) to the casual installer 1044 --enable-static[=PKGS] 1045 build static libraries [default=no] 1046 --enable-shared[=PKGS] 1047 build shared libraries [default=yes] 1048 --enable-fast-install[=PKGS] 1049 optimize for fast installation [default=yes] 1050 --disable-dependency-tracking speeds up one-time build 1051 --enable-dependency-tracking do not reject slow dependency extractors 1052 --disable-libtool-lock avoid locking (might break parallel builds) 1053 1054Optional Packages: 1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1057 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1058 --with-pic try to use only PIC/non-PIC objects [default=use 1059 both] 1060 --with-tags[=TAGS] 1061 include additional configurations [automatic] 1062 --with-xorg-module-dir=DIR 1063 --with-release-version=STRING 1064 Use release version string in package name 1065 1066Some influential environment variables: 1067 CC C compiler command 1068 CFLAGS C compiler flags 1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1070 nonstandard directory <lib dir> 1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1072 headers in a nonstandard directory <include dir> 1073 CPP C preprocessor 1074 CXX C++ compiler command 1075 CXXFLAGS C++ compiler flags 1076 CXXCPP C++ preprocessor 1077 F77 Fortran 77 compiler command 1078 FFLAGS Fortran 77 compiler flags 1079 PKG_CONFIG path to pkg-config utility 1080 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1081 XORG_LIBS linker flags for XORG, overriding pkg-config 1082 1083Use these variables to override the choices made by `configure' or to help 1084it to find libraries and programs with nonstandard names/locations. 1085 1086Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1087_ACEOF 1088fi 1089 1090if test "$ac_init_help" = "recursive"; then 1091 # If there are subdirs, report their specific --help. 1092 ac_popdir=`pwd` 1093 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1094 test -d $ac_dir || continue 1095 ac_builddir=. 1096 1097if test "$ac_dir" != .; then 1098 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1099 # A "../" for each directory in $ac_dir_suffix. 1100 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1101else 1102 ac_dir_suffix= ac_top_builddir= 1103fi 1104 1105case $srcdir in 1106 .) # No --srcdir option. We are building in place. 1107 ac_srcdir=. 1108 if test -z "$ac_top_builddir"; then 1109 ac_top_srcdir=. 1110 else 1111 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1112 fi ;; 1113 [\\/]* | ?:[\\/]* ) # Absolute path. 1114 ac_srcdir=$srcdir$ac_dir_suffix; 1115 ac_top_srcdir=$srcdir ;; 1116 *) # Relative path. 1117 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1118 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1119esac 1120 1121# Do not use `cd foo && pwd` to compute absolute paths, because 1122# the directories may not exist. 1123case `pwd` in 1124.) ac_abs_builddir="$ac_dir";; 1125*) 1126 case "$ac_dir" in 1127 .) ac_abs_builddir=`pwd`;; 1128 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1129 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1130 esac;; 1131esac 1132case $ac_abs_builddir in 1133.) ac_abs_top_builddir=${ac_top_builddir}.;; 1134*) 1135 case ${ac_top_builddir}. in 1136 .) ac_abs_top_builddir=$ac_abs_builddir;; 1137 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1138 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1139 esac;; 1140esac 1141case $ac_abs_builddir in 1142.) ac_abs_srcdir=$ac_srcdir;; 1143*) 1144 case $ac_srcdir in 1145 .) ac_abs_srcdir=$ac_abs_builddir;; 1146 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1147 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1148 esac;; 1149esac 1150case $ac_abs_builddir in 1151.) ac_abs_top_srcdir=$ac_top_srcdir;; 1152*) 1153 case $ac_top_srcdir in 1154 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1155 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1156 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1157 esac;; 1158esac 1159 1160 cd $ac_dir 1161 # Check for guested configure; otherwise get Cygnus style configure. 1162 if test -f $ac_srcdir/configure.gnu; then 1163 echo 1164 $SHELL $ac_srcdir/configure.gnu --help=recursive 1165 elif test -f $ac_srcdir/configure; then 1166 echo 1167 $SHELL $ac_srcdir/configure --help=recursive 1168 elif test -f $ac_srcdir/configure.ac || 1169 test -f $ac_srcdir/configure.in; then 1170 echo 1171 $ac_configure --help 1172 else 1173 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1174 fi 1175 cd $ac_popdir 1176 done 1177fi 1178 1179test -n "$ac_init_help" && exit 0 1180if $ac_init_version; then 1181 cat <<\_ACEOF 1182xf86-video-vesa configure 1.3.0 1183generated by GNU Autoconf 2.59 1184 1185Copyright (C) 2003 Free Software Foundation, Inc. 1186This configure script is free software; the Free Software Foundation 1187gives unlimited permission to copy, distribute and modify it. 1188_ACEOF 1189 exit 0 1190fi 1191exec 5>config.log 1192cat >&5 <<_ACEOF 1193This file contains any messages produced by compilers while 1194running configure, to aid debugging if configure makes a mistake. 1195 1196It was created by xf86-video-vesa $as_me 1.3.0, which was 1197generated by GNU Autoconf 2.59. Invocation command line was 1198 1199 $ $0 $@ 1200 1201_ACEOF 1202{ 1203cat <<_ASUNAME 1204## --------- ## 1205## Platform. ## 1206## --------- ## 1207 1208hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1209uname -m = `(uname -m) 2>/dev/null || echo unknown` 1210uname -r = `(uname -r) 2>/dev/null || echo unknown` 1211uname -s = `(uname -s) 2>/dev/null || echo unknown` 1212uname -v = `(uname -v) 2>/dev/null || echo unknown` 1213 1214/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1215/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1216 1217/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1218/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1219/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1220hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1221/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1222/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1223/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1224 1225_ASUNAME 1226 1227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1228for as_dir in $PATH 1229do 1230 IFS=$as_save_IFS 1231 test -z "$as_dir" && as_dir=. 1232 echo "PATH: $as_dir" 1233done 1234 1235} >&5 1236 1237cat >&5 <<_ACEOF 1238 1239 1240## ----------- ## 1241## Core tests. ## 1242## ----------- ## 1243 1244_ACEOF 1245 1246 1247# Keep a trace of the command line. 1248# Strip out --no-create and --no-recursion so they do not pile up. 1249# Strip out --silent because we don't want to record it for future runs. 1250# Also quote any args containing shell meta-characters. 1251# Make two passes to allow for proper duplicate-argument suppression. 1252ac_configure_args= 1253ac_configure_args0= 1254ac_configure_args1= 1255ac_sep= 1256ac_must_keep_next=false 1257for ac_pass in 1 2 1258do 1259 for ac_arg 1260 do 1261 case $ac_arg in 1262 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1264 | -silent | --silent | --silen | --sile | --sil) 1265 continue ;; 1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1268 esac 1269 case $ac_pass in 1270 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1271 2) 1272 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1273 if test $ac_must_keep_next = true; then 1274 ac_must_keep_next=false # Got value, back to normal. 1275 else 1276 case $ac_arg in 1277 *=* | --config-cache | -C | -disable-* | --disable-* \ 1278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1280 | -with-* | --with-* | -without-* | --without-* | --x) 1281 case "$ac_configure_args0 " in 1282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1283 esac 1284 ;; 1285 -* ) ac_must_keep_next=true ;; 1286 esac 1287 fi 1288 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1289 # Get rid of the leading space. 1290 ac_sep=" " 1291 ;; 1292 esac 1293 done 1294done 1295$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1296$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1297 1298# When interrupted or exit'd, cleanup temporary files, and complete 1299# config.log. We remove comments because anyway the quotes in there 1300# would cause problems or look ugly. 1301# WARNING: Be sure not to use single quotes in there, as some shells, 1302# such as our DU 5.0 friend, will then `close' the trap. 1303trap 'exit_status=$? 1304 # Save into config.log some information that might help in debugging. 1305 { 1306 echo 1307 1308 cat <<\_ASBOX 1309## ---------------- ## 1310## Cache variables. ## 1311## ---------------- ## 1312_ASBOX 1313 echo 1314 # The following way of writing the cache mishandles newlines in values, 1315{ 1316 (set) 2>&1 | 1317 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1318 *ac_space=\ *) 1319 sed -n \ 1320 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1322 ;; 1323 *) 1324 sed -n \ 1325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1326 ;; 1327 esac; 1328} 1329 echo 1330 1331 cat <<\_ASBOX 1332## ----------------- ## 1333## Output variables. ## 1334## ----------------- ## 1335_ASBOX 1336 echo 1337 for ac_var in $ac_subst_vars 1338 do 1339 eval ac_val=$`echo $ac_var` 1340 echo "$ac_var='"'"'$ac_val'"'"'" 1341 done | sort 1342 echo 1343 1344 if test -n "$ac_subst_files"; then 1345 cat <<\_ASBOX 1346## ------------- ## 1347## Output files. ## 1348## ------------- ## 1349_ASBOX 1350 echo 1351 for ac_var in $ac_subst_files 1352 do 1353 eval ac_val=$`echo $ac_var` 1354 echo "$ac_var='"'"'$ac_val'"'"'" 1355 done | sort 1356 echo 1357 fi 1358 1359 if test -s confdefs.h; then 1360 cat <<\_ASBOX 1361## ----------- ## 1362## confdefs.h. ## 1363## ----------- ## 1364_ASBOX 1365 echo 1366 sed "/^$/d" confdefs.h | sort 1367 echo 1368 fi 1369 test "$ac_signal" != 0 && 1370 echo "$as_me: caught signal $ac_signal" 1371 echo "$as_me: exit $exit_status" 1372 } >&5 1373 rm -f core *.core && 1374 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1375 exit $exit_status 1376 ' 0 1377for ac_signal in 1 2 13 15; do 1378 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1379done 1380ac_signal=0 1381 1382# confdefs.h avoids OS command line length limits that DEFS can exceed. 1383rm -rf conftest* confdefs.h 1384# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1385echo >confdefs.h 1386 1387# Predefined preprocessor variables. 1388 1389cat >>confdefs.h <<_ACEOF 1390#define PACKAGE_NAME "$PACKAGE_NAME" 1391_ACEOF 1392 1393 1394cat >>confdefs.h <<_ACEOF 1395#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1396_ACEOF 1397 1398 1399cat >>confdefs.h <<_ACEOF 1400#define PACKAGE_VERSION "$PACKAGE_VERSION" 1401_ACEOF 1402 1403 1404cat >>confdefs.h <<_ACEOF 1405#define PACKAGE_STRING "$PACKAGE_STRING" 1406_ACEOF 1407 1408 1409cat >>confdefs.h <<_ACEOF 1410#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1411_ACEOF 1412 1413 1414# Let the site file select an alternate cache file if it wants to. 1415# Prefer explicitly selected file to automatically selected ones. 1416if test -z "$CONFIG_SITE"; then 1417 if test "x$prefix" != xNONE; then 1418 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1419 else 1420 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1421 fi 1422fi 1423for ac_site_file in $CONFIG_SITE; do 1424 if test -r "$ac_site_file"; then 1425 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1426echo "$as_me: loading site script $ac_site_file" >&6;} 1427 sed 's/^/| /' "$ac_site_file" >&5 1428 . "$ac_site_file" 1429 fi 1430done 1431 1432if test -r "$cache_file"; then 1433 # Some versions of bash will fail to source /dev/null (special 1434 # files actually), so we avoid doing that. 1435 if test -f "$cache_file"; then 1436 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1437echo "$as_me: loading cache $cache_file" >&6;} 1438 case $cache_file in 1439 [\\/]* | ?:[\\/]* ) . $cache_file;; 1440 *) . ./$cache_file;; 1441 esac 1442 fi 1443else 1444 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1445echo "$as_me: creating cache $cache_file" >&6;} 1446 >$cache_file 1447fi 1448 1449# Check that the precious variables saved in the cache have kept the same 1450# value. 1451ac_cache_corrupted=false 1452for ac_var in `(set) 2>&1 | 1453 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1454 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1455 eval ac_new_set=\$ac_env_${ac_var}_set 1456 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1457 eval ac_new_val="\$ac_env_${ac_var}_value" 1458 case $ac_old_set,$ac_new_set in 1459 set,) 1460 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1461echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1462 ac_cache_corrupted=: ;; 1463 ,set) 1464 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1465echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1466 ac_cache_corrupted=: ;; 1467 ,);; 1468 *) 1469 if test "x$ac_old_val" != "x$ac_new_val"; then 1470 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1471echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1472 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1473echo "$as_me: former value: $ac_old_val" >&2;} 1474 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1475echo "$as_me: current value: $ac_new_val" >&2;} 1476 ac_cache_corrupted=: 1477 fi;; 1478 esac 1479 # Pass precious variables to config.status. 1480 if test "$ac_new_set" = set; then 1481 case $ac_new_val in 1482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1483 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1484 *) ac_arg=$ac_var=$ac_new_val ;; 1485 esac 1486 case " $ac_configure_args " in 1487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1488 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1489 esac 1490 fi 1491done 1492if $ac_cache_corrupted; then 1493 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1494echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1495 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1496echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1497 { (exit 1); exit 1; }; } 1498fi 1499 1500ac_ext=c 1501ac_cpp='$CPP $CPPFLAGS' 1502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1504ac_compiler_gnu=$ac_cv_c_compiler_gnu 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 1531 1532 1533 1534 ac_config_headers="$ac_config_headers config.h" 1535 1536ac_aux_dir= 1537for ac_dir in . $srcdir/.; do 1538 if test -f $ac_dir/install-sh; then 1539 ac_aux_dir=$ac_dir 1540 ac_install_sh="$ac_aux_dir/install-sh -c" 1541 break 1542 elif test -f $ac_dir/install.sh; then 1543 ac_aux_dir=$ac_dir 1544 ac_install_sh="$ac_aux_dir/install.sh -c" 1545 break 1546 elif test -f $ac_dir/shtool; then 1547 ac_aux_dir=$ac_dir 1548 ac_install_sh="$ac_aux_dir/shtool install -c" 1549 break 1550 fi 1551done 1552if test -z "$ac_aux_dir"; then 1553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5 1554echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;} 1555 { (exit 1); exit 1; }; } 1556fi 1557ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1558ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1559ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1560 1561 1562am__api_version="1.9" 1563# Find a good install program. We prefer a C program (faster), 1564# so one script is as good as another. But avoid the broken or 1565# incompatible versions: 1566# SysV /etc/install, /usr/sbin/install 1567# SunOS /usr/etc/install 1568# IRIX /sbin/install 1569# AIX /bin/install 1570# AmigaOS /C/install, which installs bootblocks on floppy discs 1571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1572# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1574# OS/2's system install, which has a completely different semantic 1575# ./install, which can be erroneously created by make from ./install.sh. 1576echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1577echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1578if test -z "$INSTALL"; then 1579if test "${ac_cv_path_install+set}" = set; then 1580 echo $ECHO_N "(cached) $ECHO_C" >&6 1581else 1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1583for as_dir in $PATH 1584do 1585 IFS=$as_save_IFS 1586 test -z "$as_dir" && as_dir=. 1587 # Account for people who put trailing slashes in PATH elements. 1588case $as_dir/ in 1589 ./ | .// | /cC/* | \ 1590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1591 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1592 /usr/ucb/* ) ;; 1593 *) 1594 # OSF1 and SCO ODT 3.0 have their own names for install. 1595 # Don't use installbsd from OSF since it installs stuff as root 1596 # by default. 1597 for ac_prog in ginstall scoinst install; do 1598 for ac_exec_ext in '' $ac_executable_extensions; do 1599 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1600 if test $ac_prog = install && 1601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1602 # AIX install. It has an incompatible calling convention. 1603 : 1604 elif test $ac_prog = install && 1605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1606 # program-specific install script used by HP pwplus--don't use. 1607 : 1608 else 1609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1610 break 3 1611 fi 1612 fi 1613 done 1614 done 1615 ;; 1616esac 1617done 1618 1619 1620fi 1621 if test "${ac_cv_path_install+set}" = set; then 1622 INSTALL=$ac_cv_path_install 1623 else 1624 # As a last resort, use the slow shell script. We don't cache a 1625 # path for INSTALL within a source directory, because that will 1626 # break other packages using the cache if that directory is 1627 # removed, or if the path is relative. 1628 INSTALL=$ac_install_sh 1629 fi 1630fi 1631echo "$as_me:$LINENO: result: $INSTALL" >&5 1632echo "${ECHO_T}$INSTALL" >&6 1633 1634# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1635# It thinks the first close brace ends the variable substitution. 1636test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1637 1638test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1639 1640test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1641 1642echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1643echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1644# Just in case 1645sleep 1 1646echo timestamp > conftest.file 1647# Do `set' in a subshell so we don't clobber the current shell's 1648# arguments. Must try -L first in case configure is actually a 1649# symlink; some systems play weird games with the mod time of symlinks 1650# (eg FreeBSD returns the mod time of the symlink's containing 1651# directory). 1652if ( 1653 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1654 if test "$*" = "X"; then 1655 # -L didn't work. 1656 set X `ls -t $srcdir/configure conftest.file` 1657 fi 1658 rm -f conftest.file 1659 if test "$*" != "X $srcdir/configure conftest.file" \ 1660 && test "$*" != "X conftest.file $srcdir/configure"; then 1661 1662 # If neither matched, then we have a broken ls. This can happen 1663 # if, for instance, CONFIG_SHELL is bash and it inherits a 1664 # broken ls alias from the environment. This has actually 1665 # happened. Such a system could not be considered "sane". 1666 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1667alias in your environment" >&5 1668echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1669alias in your environment" >&2;} 1670 { (exit 1); exit 1; }; } 1671 fi 1672 1673 test "$2" = conftest.file 1674 ) 1675then 1676 # Ok. 1677 : 1678else 1679 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1680Check your system clock" >&5 1681echo "$as_me: error: newly created file is older than distributed files! 1682Check your system clock" >&2;} 1683 { (exit 1); exit 1; }; } 1684fi 1685echo "$as_me:$LINENO: result: yes" >&5 1686echo "${ECHO_T}yes" >&6 1687test "$program_prefix" != NONE && 1688 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1689# Use a double $ so make ignores it. 1690test "$program_suffix" != NONE && 1691 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1692# Double any \ or $. echo might interpret backslashes. 1693# By default was `s,x,x', remove it if useless. 1694cat <<\_ACEOF >conftest.sed 1695s/[\\$]/&&/g;s/;s,x,x,$// 1696_ACEOF 1697program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1698rm conftest.sed 1699 1700# expand $ac_aux_dir to an absolute path 1701am_aux_dir=`cd $ac_aux_dir && pwd` 1702 1703test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1704# Use eval to expand $SHELL 1705if eval "$MISSING --run true"; then 1706 am_missing_run="$MISSING --run " 1707else 1708 am_missing_run= 1709 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1710echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1711fi 1712 1713if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1714 # We used to keeping the `.' as first argument, in order to 1715 # allow $(mkdir_p) to be used without argument. As in 1716 # $(mkdir_p) $(somedir) 1717 # where $(somedir) is conditionally defined. However this is wrong 1718 # for two reasons: 1719 # 1. if the package is installed by a user who cannot write `.' 1720 # make install will fail, 1721 # 2. the above comment should most certainly read 1722 # $(mkdir_p) $(DESTDIR)$(somedir) 1723 # so it does not work when $(somedir) is undefined and 1724 # $(DESTDIR) is not. 1725 # To support the latter case, we have to write 1726 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1727 # so the `.' trick is pointless. 1728 mkdir_p='mkdir -p --' 1729else 1730 # On NextStep and OpenStep, the `mkdir' command does not 1731 # recognize any option. It will interpret all options as 1732 # directories to create, and then abort because `.' already 1733 # exists. 1734 for d in ./-p ./--version; 1735 do 1736 test -d $d && rmdir $d 1737 done 1738 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1739 if test -f "$ac_aux_dir/mkinstalldirs"; then 1740 mkdir_p='$(mkinstalldirs)' 1741 else 1742 mkdir_p='$(install_sh) -d' 1743 fi 1744fi 1745 1746for ac_prog in gawk mawk nawk awk 1747do 1748 # Extract the first word of "$ac_prog", so it can be a program name with args. 1749set dummy $ac_prog; ac_word=$2 1750echo "$as_me:$LINENO: checking for $ac_word" >&5 1751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1752if test "${ac_cv_prog_AWK+set}" = set; then 1753 echo $ECHO_N "(cached) $ECHO_C" >&6 1754else 1755 if test -n "$AWK"; then 1756 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1757else 1758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1759for as_dir in $PATH 1760do 1761 IFS=$as_save_IFS 1762 test -z "$as_dir" && as_dir=. 1763 for ac_exec_ext in '' $ac_executable_extensions; do 1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1765 ac_cv_prog_AWK="$ac_prog" 1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1767 break 2 1768 fi 1769done 1770done 1771 1772fi 1773fi 1774AWK=$ac_cv_prog_AWK 1775if test -n "$AWK"; then 1776 echo "$as_me:$LINENO: result: $AWK" >&5 1777echo "${ECHO_T}$AWK" >&6 1778else 1779 echo "$as_me:$LINENO: result: no" >&5 1780echo "${ECHO_T}no" >&6 1781fi 1782 1783 test -n "$AWK" && break 1784done 1785 1786echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1787echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1788set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1789if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1790 echo $ECHO_N "(cached) $ECHO_C" >&6 1791else 1792 cat >conftest.make <<\_ACEOF 1793all: 1794 @echo 'ac_maketemp="$(MAKE)"' 1795_ACEOF 1796# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1797eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1798if test -n "$ac_maketemp"; then 1799 eval ac_cv_prog_make_${ac_make}_set=yes 1800else 1801 eval ac_cv_prog_make_${ac_make}_set=no 1802fi 1803rm -f conftest.make 1804fi 1805if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1806 echo "$as_me:$LINENO: result: yes" >&5 1807echo "${ECHO_T}yes" >&6 1808 SET_MAKE= 1809else 1810 echo "$as_me:$LINENO: result: no" >&5 1811echo "${ECHO_T}no" >&6 1812 SET_MAKE="MAKE=${MAKE-make}" 1813fi 1814 1815rm -rf .tst 2>/dev/null 1816mkdir .tst 2>/dev/null 1817if test -d .tst; then 1818 am__leading_dot=. 1819else 1820 am__leading_dot=_ 1821fi 1822rmdir .tst 2>/dev/null 1823 1824# test to see if srcdir already configured 1825if test "`cd $srcdir && pwd`" != "`pwd`" && 1826 test -f $srcdir/config.status; then 1827 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1828echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1829 { (exit 1); exit 1; }; } 1830fi 1831 1832# test whether we have cygpath 1833if test -z "$CYGPATH_W"; then 1834 if (cygpath --version) >/dev/null 2>/dev/null; then 1835 CYGPATH_W='cygpath -w' 1836 else 1837 CYGPATH_W=echo 1838 fi 1839fi 1840 1841 1842# Define the identity of the package. 1843 PACKAGE='xf86-video-vesa' 1844 VERSION='1.3.0' 1845 1846 1847cat >>confdefs.h <<_ACEOF 1848#define PACKAGE "$PACKAGE" 1849_ACEOF 1850 1851 1852cat >>confdefs.h <<_ACEOF 1853#define VERSION "$VERSION" 1854_ACEOF 1855 1856# Some tools Automake needs. 1857 1858ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1859 1860 1861AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1862 1863 1864AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1865 1866 1867AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1868 1869 1870MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1871 1872install_sh=${install_sh-"$am_aux_dir/install-sh"} 1873 1874# Installed binaries are usually stripped using `strip' when the user 1875# run `make install-strip'. However `strip' might not be the right 1876# tool to use in cross-compilation environments, therefore Automake 1877# will honor the `STRIP' environment variable to overrule this program. 1878if test "$cross_compiling" != no; then 1879 if test -n "$ac_tool_prefix"; then 1880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1881set dummy ${ac_tool_prefix}strip; ac_word=$2 1882echo "$as_me:$LINENO: checking for $ac_word" >&5 1883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1884if test "${ac_cv_prog_STRIP+set}" = set; then 1885 echo $ECHO_N "(cached) $ECHO_C" >&6 1886else 1887 if test -n "$STRIP"; then 1888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1889else 1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1891for as_dir in $PATH 1892do 1893 IFS=$as_save_IFS 1894 test -z "$as_dir" && as_dir=. 1895 for ac_exec_ext in '' $ac_executable_extensions; do 1896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1897 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1899 break 2 1900 fi 1901done 1902done 1903 1904fi 1905fi 1906STRIP=$ac_cv_prog_STRIP 1907if test -n "$STRIP"; then 1908 echo "$as_me:$LINENO: result: $STRIP" >&5 1909echo "${ECHO_T}$STRIP" >&6 1910else 1911 echo "$as_me:$LINENO: result: no" >&5 1912echo "${ECHO_T}no" >&6 1913fi 1914 1915fi 1916if test -z "$ac_cv_prog_STRIP"; then 1917 ac_ct_STRIP=$STRIP 1918 # Extract the first word of "strip", so it can be a program name with args. 1919set dummy strip; ac_word=$2 1920echo "$as_me:$LINENO: checking for $ac_word" >&5 1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1922if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1923 echo $ECHO_N "(cached) $ECHO_C" >&6 1924else 1925 if test -n "$ac_ct_STRIP"; then 1926 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1927else 1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1929for as_dir in $PATH 1930do 1931 IFS=$as_save_IFS 1932 test -z "$as_dir" && as_dir=. 1933 for ac_exec_ext in '' $ac_executable_extensions; do 1934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1935 ac_cv_prog_ac_ct_STRIP="strip" 1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1937 break 2 1938 fi 1939done 1940done 1941 1942 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1943fi 1944fi 1945ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1946if test -n "$ac_ct_STRIP"; then 1947 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1948echo "${ECHO_T}$ac_ct_STRIP" >&6 1949else 1950 echo "$as_me:$LINENO: result: no" >&5 1951echo "${ECHO_T}no" >&6 1952fi 1953 1954 STRIP=$ac_ct_STRIP 1955else 1956 STRIP="$ac_cv_prog_STRIP" 1957fi 1958 1959fi 1960INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1961 1962# We need awk for the "check" target. The system "awk" is bad on 1963# some platforms. 1964# Always define AMTAR for backward compatibility. 1965 1966AMTAR=${AMTAR-"${am_missing_run}tar"} 1967 1968am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1969 1970 1971 1972 1973 1974 1975echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1976echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1977 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1978if test "${enable_maintainer_mode+set}" = set; then 1979 enableval="$enable_maintainer_mode" 1980 USE_MAINTAINER_MODE=$enableval 1981else 1982 USE_MAINTAINER_MODE=no 1983fi; 1984 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1985echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1986 1987 1988if test $USE_MAINTAINER_MODE = yes; then 1989 MAINTAINER_MODE_TRUE= 1990 MAINTAINER_MODE_FALSE='#' 1991else 1992 MAINTAINER_MODE_TRUE='#' 1993 MAINTAINER_MODE_FALSE= 1994fi 1995 1996 MAINT=$MAINTAINER_MODE_TRUE 1997 1998 1999 2000# Checks for programs. 2001# Check whether --enable-static or --disable-static was given. 2002if test "${enable_static+set}" = set; then 2003 enableval="$enable_static" 2004 p=${PACKAGE-default} 2005 case $enableval in 2006 yes) enable_static=yes ;; 2007 no) enable_static=no ;; 2008 *) 2009 enable_static=no 2010 # Look at the argument we got. We use all the common list separators. 2011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2012 for pkg in $enableval; do 2013 IFS="$lt_save_ifs" 2014 if test "X$pkg" = "X$p"; then 2015 enable_static=yes 2016 fi 2017 done 2018 IFS="$lt_save_ifs" 2019 ;; 2020 esac 2021else 2022 enable_static=no 2023fi; 2024 2025 2026# Check whether --enable-shared or --disable-shared was given. 2027if test "${enable_shared+set}" = set; then 2028 enableval="$enable_shared" 2029 p=${PACKAGE-default} 2030 case $enableval in 2031 yes) enable_shared=yes ;; 2032 no) enable_shared=no ;; 2033 *) 2034 enable_shared=no 2035 # Look at the argument we got. We use all the common list separators. 2036 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2037 for pkg in $enableval; do 2038 IFS="$lt_save_ifs" 2039 if test "X$pkg" = "X$p"; then 2040 enable_shared=yes 2041 fi 2042 done 2043 IFS="$lt_save_ifs" 2044 ;; 2045 esac 2046else 2047 enable_shared=yes 2048fi; 2049 2050# Check whether --enable-fast-install or --disable-fast-install was given. 2051if test "${enable_fast_install+set}" = set; then 2052 enableval="$enable_fast_install" 2053 p=${PACKAGE-default} 2054 case $enableval in 2055 yes) enable_fast_install=yes ;; 2056 no) enable_fast_install=no ;; 2057 *) 2058 enable_fast_install=no 2059 # Look at the argument we got. We use all the common list separators. 2060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2061 for pkg in $enableval; do 2062 IFS="$lt_save_ifs" 2063 if test "X$pkg" = "X$p"; then 2064 enable_fast_install=yes 2065 fi 2066 done 2067 IFS="$lt_save_ifs" 2068 ;; 2069 esac 2070else 2071 enable_fast_install=yes 2072fi; 2073 2074# Make sure we can run config.sub. 2075$ac_config_sub sun4 >/dev/null 2>&1 || 2076 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2077echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2078 { (exit 1); exit 1; }; } 2079 2080echo "$as_me:$LINENO: checking build system type" >&5 2081echo $ECHO_N "checking build system type... $ECHO_C" >&6 2082if test "${ac_cv_build+set}" = set; then 2083 echo $ECHO_N "(cached) $ECHO_C" >&6 2084else 2085 ac_cv_build_alias=$build_alias 2086test -z "$ac_cv_build_alias" && 2087 ac_cv_build_alias=`$ac_config_guess` 2088test -z "$ac_cv_build_alias" && 2089 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2090echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2091 { (exit 1); exit 1; }; } 2092ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2093 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2094echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2095 { (exit 1); exit 1; }; } 2096 2097fi 2098echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2099echo "${ECHO_T}$ac_cv_build" >&6 2100build=$ac_cv_build 2101build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2102build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2103build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2104 2105 2106echo "$as_me:$LINENO: checking host system type" >&5 2107echo $ECHO_N "checking host system type... $ECHO_C" >&6 2108if test "${ac_cv_host+set}" = set; then 2109 echo $ECHO_N "(cached) $ECHO_C" >&6 2110else 2111 ac_cv_host_alias=$host_alias 2112test -z "$ac_cv_host_alias" && 2113 ac_cv_host_alias=$ac_cv_build_alias 2114ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2115 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2116echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2117 { (exit 1); exit 1; }; } 2118 2119fi 2120echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2121echo "${ECHO_T}$ac_cv_host" >&6 2122host=$ac_cv_host 2123host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2124host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2125host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2126 2127 2128DEPDIR="${am__leading_dot}deps" 2129 2130 ac_config_commands="$ac_config_commands depfiles" 2131 2132 2133am_make=${MAKE-make} 2134cat > confinc << 'END' 2135am__doit: 2136 @echo done 2137.PHONY: am__doit 2138END 2139# If we don't find an include directive, just comment out the code. 2140echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2141echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2142am__include="#" 2143am__quote= 2144_am_result=none 2145# First try GNU make style include. 2146echo "include confinc" > confmf 2147# We grep out `Entering directory' and `Leaving directory' 2148# messages which can occur if `w' ends up in MAKEFLAGS. 2149# In particular we don't look at `^make:' because GNU make might 2150# be invoked under some other name (usually "gmake"), in which 2151# case it prints its new name instead of `make'. 2152if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2153 am__include=include 2154 am__quote= 2155 _am_result=GNU 2156fi 2157# Now try BSD make style include. 2158if test "$am__include" = "#"; then 2159 echo '.include "confinc"' > confmf 2160 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2161 am__include=.include 2162 am__quote="\"" 2163 _am_result=BSD 2164 fi 2165fi 2166 2167 2168echo "$as_me:$LINENO: result: $_am_result" >&5 2169echo "${ECHO_T}$_am_result" >&6 2170rm -f confinc confmf 2171 2172# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2173if test "${enable_dependency_tracking+set}" = set; then 2174 enableval="$enable_dependency_tracking" 2175 2176fi; 2177if test "x$enable_dependency_tracking" != xno; then 2178 am_depcomp="$ac_aux_dir/depcomp" 2179 AMDEPBACKSLASH='\' 2180fi 2181 2182 2183if test "x$enable_dependency_tracking" != xno; then 2184 AMDEP_TRUE= 2185 AMDEP_FALSE='#' 2186else 2187 AMDEP_TRUE='#' 2188 AMDEP_FALSE= 2189fi 2190 2191 2192 2193ac_ext=c 2194ac_cpp='$CPP $CPPFLAGS' 2195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2197ac_compiler_gnu=$ac_cv_c_compiler_gnu 2198if test -n "$ac_tool_prefix"; then 2199 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2200set dummy ${ac_tool_prefix}gcc; ac_word=$2 2201echo "$as_me:$LINENO: checking for $ac_word" >&5 2202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2203if test "${ac_cv_prog_CC+set}" = set; then 2204 echo $ECHO_N "(cached) $ECHO_C" >&6 2205else 2206 if test -n "$CC"; then 2207 ac_cv_prog_CC="$CC" # Let the user override the test. 2208else 2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2210for as_dir in $PATH 2211do 2212 IFS=$as_save_IFS 2213 test -z "$as_dir" && as_dir=. 2214 for ac_exec_ext in '' $ac_executable_extensions; do 2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2216 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2218 break 2 2219 fi 2220done 2221done 2222 2223fi 2224fi 2225CC=$ac_cv_prog_CC 2226if test -n "$CC"; then 2227 echo "$as_me:$LINENO: result: $CC" >&5 2228echo "${ECHO_T}$CC" >&6 2229else 2230 echo "$as_me:$LINENO: result: no" >&5 2231echo "${ECHO_T}no" >&6 2232fi 2233 2234fi 2235if test -z "$ac_cv_prog_CC"; then 2236 ac_ct_CC=$CC 2237 # Extract the first word of "gcc", so it can be a program name with args. 2238set dummy gcc; ac_word=$2 2239echo "$as_me:$LINENO: checking for $ac_word" >&5 2240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2241if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2242 echo $ECHO_N "(cached) $ECHO_C" >&6 2243else 2244 if test -n "$ac_ct_CC"; then 2245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2246else 2247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2248for as_dir in $PATH 2249do 2250 IFS=$as_save_IFS 2251 test -z "$as_dir" && as_dir=. 2252 for ac_exec_ext in '' $ac_executable_extensions; do 2253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2254 ac_cv_prog_ac_ct_CC="gcc" 2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2256 break 2 2257 fi 2258done 2259done 2260 2261fi 2262fi 2263ac_ct_CC=$ac_cv_prog_ac_ct_CC 2264if test -n "$ac_ct_CC"; then 2265 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2266echo "${ECHO_T}$ac_ct_CC" >&6 2267else 2268 echo "$as_me:$LINENO: result: no" >&5 2269echo "${ECHO_T}no" >&6 2270fi 2271 2272 CC=$ac_ct_CC 2273else 2274 CC="$ac_cv_prog_CC" 2275fi 2276 2277if test -z "$CC"; then 2278 if test -n "$ac_tool_prefix"; then 2279 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2280set dummy ${ac_tool_prefix}cc; ac_word=$2 2281echo "$as_me:$LINENO: checking for $ac_word" >&5 2282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2283if test "${ac_cv_prog_CC+set}" = set; then 2284 echo $ECHO_N "(cached) $ECHO_C" >&6 2285else 2286 if test -n "$CC"; then 2287 ac_cv_prog_CC="$CC" # Let the user override the test. 2288else 2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2290for as_dir in $PATH 2291do 2292 IFS=$as_save_IFS 2293 test -z "$as_dir" && as_dir=. 2294 for ac_exec_ext in '' $ac_executable_extensions; do 2295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2296 ac_cv_prog_CC="${ac_tool_prefix}cc" 2297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2298 break 2 2299 fi 2300done 2301done 2302 2303fi 2304fi 2305CC=$ac_cv_prog_CC 2306if test -n "$CC"; then 2307 echo "$as_me:$LINENO: result: $CC" >&5 2308echo "${ECHO_T}$CC" >&6 2309else 2310 echo "$as_me:$LINENO: result: no" >&5 2311echo "${ECHO_T}no" >&6 2312fi 2313 2314fi 2315if test -z "$ac_cv_prog_CC"; then 2316 ac_ct_CC=$CC 2317 # Extract the first word of "cc", so it can be a program name with args. 2318set dummy cc; ac_word=$2 2319echo "$as_me:$LINENO: checking for $ac_word" >&5 2320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2321if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2322 echo $ECHO_N "(cached) $ECHO_C" >&6 2323else 2324 if test -n "$ac_ct_CC"; then 2325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2326else 2327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2328for as_dir in $PATH 2329do 2330 IFS=$as_save_IFS 2331 test -z "$as_dir" && as_dir=. 2332 for ac_exec_ext in '' $ac_executable_extensions; do 2333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2334 ac_cv_prog_ac_ct_CC="cc" 2335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2336 break 2 2337 fi 2338done 2339done 2340 2341fi 2342fi 2343ac_ct_CC=$ac_cv_prog_ac_ct_CC 2344if test -n "$ac_ct_CC"; then 2345 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2346echo "${ECHO_T}$ac_ct_CC" >&6 2347else 2348 echo "$as_me:$LINENO: result: no" >&5 2349echo "${ECHO_T}no" >&6 2350fi 2351 2352 CC=$ac_ct_CC 2353else 2354 CC="$ac_cv_prog_CC" 2355fi 2356 2357fi 2358if test -z "$CC"; then 2359 # Extract the first word of "cc", so it can be a program name with args. 2360set dummy cc; ac_word=$2 2361echo "$as_me:$LINENO: checking for $ac_word" >&5 2362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2363if test "${ac_cv_prog_CC+set}" = set; then 2364 echo $ECHO_N "(cached) $ECHO_C" >&6 2365else 2366 if test -n "$CC"; then 2367 ac_cv_prog_CC="$CC" # Let the user override the test. 2368else 2369 ac_prog_rejected=no 2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2371for as_dir in $PATH 2372do 2373 IFS=$as_save_IFS 2374 test -z "$as_dir" && as_dir=. 2375 for ac_exec_ext in '' $ac_executable_extensions; do 2376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2378 ac_prog_rejected=yes 2379 continue 2380 fi 2381 ac_cv_prog_CC="cc" 2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2383 break 2 2384 fi 2385done 2386done 2387 2388if test $ac_prog_rejected = yes; then 2389 # We found a bogon in the path, so make sure we never use it. 2390 set dummy $ac_cv_prog_CC 2391 shift 2392 if test $# != 0; then 2393 # We chose a different compiler from the bogus one. 2394 # However, it has the same basename, so the bogon will be chosen 2395 # first if we set CC to just the basename; use the full file name. 2396 shift 2397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2398 fi 2399fi 2400fi 2401fi 2402CC=$ac_cv_prog_CC 2403if test -n "$CC"; then 2404 echo "$as_me:$LINENO: result: $CC" >&5 2405echo "${ECHO_T}$CC" >&6 2406else 2407 echo "$as_me:$LINENO: result: no" >&5 2408echo "${ECHO_T}no" >&6 2409fi 2410 2411fi 2412if test -z "$CC"; then 2413 if test -n "$ac_tool_prefix"; then 2414 for ac_prog in cl 2415 do 2416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2417set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2418echo "$as_me:$LINENO: checking for $ac_word" >&5 2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2420if test "${ac_cv_prog_CC+set}" = set; then 2421 echo $ECHO_N "(cached) $ECHO_C" >&6 2422else 2423 if test -n "$CC"; then 2424 ac_cv_prog_CC="$CC" # Let the user override the test. 2425else 2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2427for as_dir in $PATH 2428do 2429 IFS=$as_save_IFS 2430 test -z "$as_dir" && as_dir=. 2431 for ac_exec_ext in '' $ac_executable_extensions; do 2432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2435 break 2 2436 fi 2437done 2438done 2439 2440fi 2441fi 2442CC=$ac_cv_prog_CC 2443if test -n "$CC"; then 2444 echo "$as_me:$LINENO: result: $CC" >&5 2445echo "${ECHO_T}$CC" >&6 2446else 2447 echo "$as_me:$LINENO: result: no" >&5 2448echo "${ECHO_T}no" >&6 2449fi 2450 2451 test -n "$CC" && break 2452 done 2453fi 2454if test -z "$CC"; then 2455 ac_ct_CC=$CC 2456 for ac_prog in cl 2457do 2458 # Extract the first word of "$ac_prog", so it can be a program name with args. 2459set dummy $ac_prog; ac_word=$2 2460echo "$as_me:$LINENO: checking for $ac_word" >&5 2461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2463 echo $ECHO_N "(cached) $ECHO_C" >&6 2464else 2465 if test -n "$ac_ct_CC"; then 2466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2467else 2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2469for as_dir in $PATH 2470do 2471 IFS=$as_save_IFS 2472 test -z "$as_dir" && as_dir=. 2473 for ac_exec_ext in '' $ac_executable_extensions; do 2474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2475 ac_cv_prog_ac_ct_CC="$ac_prog" 2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2477 break 2 2478 fi 2479done 2480done 2481 2482fi 2483fi 2484ac_ct_CC=$ac_cv_prog_ac_ct_CC 2485if test -n "$ac_ct_CC"; then 2486 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2487echo "${ECHO_T}$ac_ct_CC" >&6 2488else 2489 echo "$as_me:$LINENO: result: no" >&5 2490echo "${ECHO_T}no" >&6 2491fi 2492 2493 test -n "$ac_ct_CC" && break 2494done 2495 2496 CC=$ac_ct_CC 2497fi 2498 2499fi 2500 2501 2502test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2503See \`config.log' for more details." >&5 2504echo "$as_me: error: no acceptable C compiler found in \$PATH 2505See \`config.log' for more details." >&2;} 2506 { (exit 1); exit 1; }; } 2507 2508# Provide some information about the compiler. 2509echo "$as_me:$LINENO:" \ 2510 "checking for C compiler version" >&5 2511ac_compiler=`set X $ac_compile; echo $2` 2512{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2513 (eval $ac_compiler --version </dev/null >&5) 2>&5 2514 ac_status=$? 2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2516 (exit $ac_status); } 2517{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2518 (eval $ac_compiler -v </dev/null >&5) 2>&5 2519 ac_status=$? 2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2521 (exit $ac_status); } 2522{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2523 (eval $ac_compiler -V </dev/null >&5) 2>&5 2524 ac_status=$? 2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2526 (exit $ac_status); } 2527 2528cat >conftest.$ac_ext <<_ACEOF 2529/* confdefs.h. */ 2530_ACEOF 2531cat confdefs.h >>conftest.$ac_ext 2532cat >>conftest.$ac_ext <<_ACEOF 2533/* end confdefs.h. */ 2534 2535int 2536main () 2537{ 2538 2539 ; 2540 return 0; 2541} 2542_ACEOF 2543ac_clean_files_save=$ac_clean_files 2544ac_clean_files="$ac_clean_files a.out a.exe b.out" 2545# Try to create an executable without -o first, disregard a.out. 2546# It will help us diagnose broken compilers, and finding out an intuition 2547# of exeext. 2548echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2549echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2550ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2551if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2552 (eval $ac_link_default) 2>&5 2553 ac_status=$? 2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2555 (exit $ac_status); }; then 2556 # Find the output, starting from the most likely. This scheme is 2557# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2558# resort. 2559 2560# Be careful to initialize this variable, since it used to be cached. 2561# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2562ac_cv_exeext= 2563# b.out is created by i960 compilers. 2564for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2565do 2566 test -f "$ac_file" || continue 2567 case $ac_file in 2568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2569 ;; 2570 conftest.$ac_ext ) 2571 # This is the source file. 2572 ;; 2573 [ab].out ) 2574 # We found the default executable, but exeext='' is most 2575 # certainly right. 2576 break;; 2577 *.* ) 2578 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2579 # FIXME: I believe we export ac_cv_exeext for Libtool, 2580 # but it would be cool to find out if it's true. Does anybody 2581 # maintain Libtool? --akim. 2582 export ac_cv_exeext 2583 break;; 2584 * ) 2585 break;; 2586 esac 2587done 2588else 2589 echo "$as_me: failed program was:" >&5 2590sed 's/^/| /' conftest.$ac_ext >&5 2591 2592{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2593See \`config.log' for more details." >&5 2594echo "$as_me: error: C compiler cannot create executables 2595See \`config.log' for more details." >&2;} 2596 { (exit 77); exit 77; }; } 2597fi 2598 2599ac_exeext=$ac_cv_exeext 2600echo "$as_me:$LINENO: result: $ac_file" >&5 2601echo "${ECHO_T}$ac_file" >&6 2602 2603# Check the compiler produces executables we can run. If not, either 2604# the compiler is broken, or we cross compile. 2605echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2606echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2607# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2608# If not cross compiling, check that we can run a simple program. 2609if test "$cross_compiling" != yes; then 2610 if { ac_try='./$ac_file' 2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2612 (eval $ac_try) 2>&5 2613 ac_status=$? 2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2615 (exit $ac_status); }; }; then 2616 cross_compiling=no 2617 else 2618 if test "$cross_compiling" = maybe; then 2619 cross_compiling=yes 2620 else 2621 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2622If you meant to cross compile, use \`--host'. 2623See \`config.log' for more details." >&5 2624echo "$as_me: error: cannot run C compiled programs. 2625If you meant to cross compile, use \`--host'. 2626See \`config.log' for more details." >&2;} 2627 { (exit 1); exit 1; }; } 2628 fi 2629 fi 2630fi 2631echo "$as_me:$LINENO: result: yes" >&5 2632echo "${ECHO_T}yes" >&6 2633 2634rm -f a.out a.exe conftest$ac_cv_exeext b.out 2635ac_clean_files=$ac_clean_files_save 2636# Check the compiler produces executables we can run. If not, either 2637# the compiler is broken, or we cross compile. 2638echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2639echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2640echo "$as_me:$LINENO: result: $cross_compiling" >&5 2641echo "${ECHO_T}$cross_compiling" >&6 2642 2643echo "$as_me:$LINENO: checking for suffix of executables" >&5 2644echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2646 (eval $ac_link) 2>&5 2647 ac_status=$? 2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2649 (exit $ac_status); }; then 2650 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2651# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2652# work properly (i.e., refer to `conftest.exe'), while it won't with 2653# `rm'. 2654for ac_file in conftest.exe conftest conftest.*; do 2655 test -f "$ac_file" || continue 2656 case $ac_file in 2657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2659 export ac_cv_exeext 2660 break;; 2661 * ) break;; 2662 esac 2663done 2664else 2665 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2666See \`config.log' for more details." >&5 2667echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2668See \`config.log' for more details." >&2;} 2669 { (exit 1); exit 1; }; } 2670fi 2671 2672rm -f conftest$ac_cv_exeext 2673echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2674echo "${ECHO_T}$ac_cv_exeext" >&6 2675 2676rm -f conftest.$ac_ext 2677EXEEXT=$ac_cv_exeext 2678ac_exeext=$EXEEXT 2679echo "$as_me:$LINENO: checking for suffix of object files" >&5 2680echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2681if test "${ac_cv_objext+set}" = set; then 2682 echo $ECHO_N "(cached) $ECHO_C" >&6 2683else 2684 cat >conftest.$ac_ext <<_ACEOF 2685/* confdefs.h. */ 2686_ACEOF 2687cat confdefs.h >>conftest.$ac_ext 2688cat >>conftest.$ac_ext <<_ACEOF 2689/* end confdefs.h. */ 2690 2691int 2692main () 2693{ 2694 2695 ; 2696 return 0; 2697} 2698_ACEOF 2699rm -f conftest.o conftest.obj 2700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2701 (eval $ac_compile) 2>&5 2702 ac_status=$? 2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); }; then 2705 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2706 case $ac_file in 2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2709 break;; 2710 esac 2711done 2712else 2713 echo "$as_me: failed program was:" >&5 2714sed 's/^/| /' conftest.$ac_ext >&5 2715 2716{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2717See \`config.log' for more details." >&5 2718echo "$as_me: error: cannot compute suffix of object files: cannot compile 2719See \`config.log' for more details." >&2;} 2720 { (exit 1); exit 1; }; } 2721fi 2722 2723rm -f conftest.$ac_cv_objext conftest.$ac_ext 2724fi 2725echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2726echo "${ECHO_T}$ac_cv_objext" >&6 2727OBJEXT=$ac_cv_objext 2728ac_objext=$OBJEXT 2729echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2730echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2731if test "${ac_cv_c_compiler_gnu+set}" = set; then 2732 echo $ECHO_N "(cached) $ECHO_C" >&6 2733else 2734 cat >conftest.$ac_ext <<_ACEOF 2735/* confdefs.h. */ 2736_ACEOF 2737cat confdefs.h >>conftest.$ac_ext 2738cat >>conftest.$ac_ext <<_ACEOF 2739/* end confdefs.h. */ 2740 2741int 2742main () 2743{ 2744#ifndef __GNUC__ 2745 choke me 2746#endif 2747 2748 ; 2749 return 0; 2750} 2751_ACEOF 2752rm -f conftest.$ac_objext 2753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2754 (eval $ac_compile) 2>conftest.er1 2755 ac_status=$? 2756 grep -v '^ *+' conftest.er1 >conftest.err 2757 rm -f conftest.er1 2758 cat conftest.err >&5 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); } && 2761 { ac_try='test -z "$ac_c_werror_flag" 2762 || test ! -s conftest.err' 2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2764 (eval $ac_try) 2>&5 2765 ac_status=$? 2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2767 (exit $ac_status); }; } && 2768 { ac_try='test -s conftest.$ac_objext' 2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2770 (eval $ac_try) 2>&5 2771 ac_status=$? 2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2773 (exit $ac_status); }; }; then 2774 ac_compiler_gnu=yes 2775else 2776 echo "$as_me: failed program was:" >&5 2777sed 's/^/| /' conftest.$ac_ext >&5 2778 2779ac_compiler_gnu=no 2780fi 2781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2782ac_cv_c_compiler_gnu=$ac_compiler_gnu 2783 2784fi 2785echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2786echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2787GCC=`test $ac_compiler_gnu = yes && echo yes` 2788ac_test_CFLAGS=${CFLAGS+set} 2789ac_save_CFLAGS=$CFLAGS 2790CFLAGS="-g" 2791echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2792echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2793if test "${ac_cv_prog_cc_g+set}" = set; then 2794 echo $ECHO_N "(cached) $ECHO_C" >&6 2795else 2796 cat >conftest.$ac_ext <<_ACEOF 2797/* confdefs.h. */ 2798_ACEOF 2799cat confdefs.h >>conftest.$ac_ext 2800cat >>conftest.$ac_ext <<_ACEOF 2801/* end confdefs.h. */ 2802 2803int 2804main () 2805{ 2806 2807 ; 2808 return 0; 2809} 2810_ACEOF 2811rm -f conftest.$ac_objext 2812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2813 (eval $ac_compile) 2>conftest.er1 2814 ac_status=$? 2815 grep -v '^ *+' conftest.er1 >conftest.err 2816 rm -f conftest.er1 2817 cat conftest.err >&5 2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2819 (exit $ac_status); } && 2820 { ac_try='test -z "$ac_c_werror_flag" 2821 || test ! -s conftest.err' 2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2823 (eval $ac_try) 2>&5 2824 ac_status=$? 2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2826 (exit $ac_status); }; } && 2827 { ac_try='test -s conftest.$ac_objext' 2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2829 (eval $ac_try) 2>&5 2830 ac_status=$? 2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2832 (exit $ac_status); }; }; then 2833 ac_cv_prog_cc_g=yes 2834else 2835 echo "$as_me: failed program was:" >&5 2836sed 's/^/| /' conftest.$ac_ext >&5 2837 2838ac_cv_prog_cc_g=no 2839fi 2840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2841fi 2842echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2843echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2844if test "$ac_test_CFLAGS" = set; then 2845 CFLAGS=$ac_save_CFLAGS 2846elif test $ac_cv_prog_cc_g = yes; then 2847 if test "$GCC" = yes; then 2848 CFLAGS="-g -O2" 2849 else 2850 CFLAGS="-g" 2851 fi 2852else 2853 if test "$GCC" = yes; then 2854 CFLAGS="-O2" 2855 else 2856 CFLAGS= 2857 fi 2858fi 2859echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2860echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2861if test "${ac_cv_prog_cc_stdc+set}" = set; then 2862 echo $ECHO_N "(cached) $ECHO_C" >&6 2863else 2864 ac_cv_prog_cc_stdc=no 2865ac_save_CC=$CC 2866cat >conftest.$ac_ext <<_ACEOF 2867/* confdefs.h. */ 2868_ACEOF 2869cat confdefs.h >>conftest.$ac_ext 2870cat >>conftest.$ac_ext <<_ACEOF 2871/* end confdefs.h. */ 2872#include <stdarg.h> 2873#include <stdio.h> 2874#include <sys/types.h> 2875#include <sys/stat.h> 2876/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2877struct buf { int x; }; 2878FILE * (*rcsopen) (struct buf *, struct stat *, int); 2879static char *e (p, i) 2880 char **p; 2881 int i; 2882{ 2883 return p[i]; 2884} 2885static char *f (char * (*g) (char **, int), char **p, ...) 2886{ 2887 char *s; 2888 va_list v; 2889 va_start (v,p); 2890 s = g (p, va_arg (v,int)); 2891 va_end (v); 2892 return s; 2893} 2894 2895/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2896 function prototypes and stuff, but not '\xHH' hex character constants. 2897 These don't provoke an error unfortunately, instead are silently treated 2898 as 'x'. The following induces an error, until -std1 is added to get 2899 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2900 array size at least. It's necessary to write '\x00'==0 to get something 2901 that's true only with -std1. */ 2902int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2903 2904int test (int i, double x); 2905struct s1 {int (*f) (int a);}; 2906struct s2 {int (*f) (double a);}; 2907int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2908int argc; 2909char **argv; 2910int 2911main () 2912{ 2913return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2914 ; 2915 return 0; 2916} 2917_ACEOF 2918# Don't try gcc -ansi; that turns off useful extensions and 2919# breaks some systems' header files. 2920# AIX -qlanglvl=ansi 2921# Ultrix and OSF/1 -std1 2922# HP-UX 10.20 and later -Ae 2923# HP-UX older versions -Aa -D_HPUX_SOURCE 2924# SVR4 -Xc -D__EXTENSIONS__ 2925for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2926do 2927 CC="$ac_save_CC $ac_arg" 2928 rm -f conftest.$ac_objext 2929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2930 (eval $ac_compile) 2>conftest.er1 2931 ac_status=$? 2932 grep -v '^ *+' conftest.er1 >conftest.err 2933 rm -f conftest.er1 2934 cat conftest.err >&5 2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); } && 2937 { ac_try='test -z "$ac_c_werror_flag" 2938 || test ! -s conftest.err' 2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2940 (eval $ac_try) 2>&5 2941 ac_status=$? 2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2943 (exit $ac_status); }; } && 2944 { ac_try='test -s conftest.$ac_objext' 2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2946 (eval $ac_try) 2>&5 2947 ac_status=$? 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); }; }; then 2950 ac_cv_prog_cc_stdc=$ac_arg 2951break 2952else 2953 echo "$as_me: failed program was:" >&5 2954sed 's/^/| /' conftest.$ac_ext >&5 2955 2956fi 2957rm -f conftest.err conftest.$ac_objext 2958done 2959rm -f conftest.$ac_ext conftest.$ac_objext 2960CC=$ac_save_CC 2961 2962fi 2963 2964case "x$ac_cv_prog_cc_stdc" in 2965 x|xno) 2966 echo "$as_me:$LINENO: result: none needed" >&5 2967echo "${ECHO_T}none needed" >&6 ;; 2968 *) 2969 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2970echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2971 CC="$CC $ac_cv_prog_cc_stdc" ;; 2972esac 2973 2974# Some people use a C++ compiler to compile C. Since we use `exit', 2975# in C++ we need to declare it. In case someone uses the same compiler 2976# for both compiling C and C++ we need to have the C++ compiler decide 2977# the declaration of exit, since it's the most demanding environment. 2978cat >conftest.$ac_ext <<_ACEOF 2979#ifndef __cplusplus 2980 choke me 2981#endif 2982_ACEOF 2983rm -f conftest.$ac_objext 2984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2985 (eval $ac_compile) 2>conftest.er1 2986 ac_status=$? 2987 grep -v '^ *+' conftest.er1 >conftest.err 2988 rm -f conftest.er1 2989 cat conftest.err >&5 2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2991 (exit $ac_status); } && 2992 { ac_try='test -z "$ac_c_werror_flag" 2993 || test ! -s conftest.err' 2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2995 (eval $ac_try) 2>&5 2996 ac_status=$? 2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2998 (exit $ac_status); }; } && 2999 { ac_try='test -s conftest.$ac_objext' 3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3001 (eval $ac_try) 2>&5 3002 ac_status=$? 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); }; }; then 3005 for ac_declaration in \ 3006 '' \ 3007 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3008 'extern "C" void std::exit (int); using std::exit;' \ 3009 'extern "C" void exit (int) throw ();' \ 3010 'extern "C" void exit (int);' \ 3011 'void exit (int);' 3012do 3013 cat >conftest.$ac_ext <<_ACEOF 3014/* confdefs.h. */ 3015_ACEOF 3016cat confdefs.h >>conftest.$ac_ext 3017cat >>conftest.$ac_ext <<_ACEOF 3018/* end confdefs.h. */ 3019$ac_declaration 3020#include <stdlib.h> 3021int 3022main () 3023{ 3024exit (42); 3025 ; 3026 return 0; 3027} 3028_ACEOF 3029rm -f conftest.$ac_objext 3030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3031 (eval $ac_compile) 2>conftest.er1 3032 ac_status=$? 3033 grep -v '^ *+' conftest.er1 >conftest.err 3034 rm -f conftest.er1 3035 cat conftest.err >&5 3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3037 (exit $ac_status); } && 3038 { ac_try='test -z "$ac_c_werror_flag" 3039 || test ! -s conftest.err' 3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3041 (eval $ac_try) 2>&5 3042 ac_status=$? 3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3044 (exit $ac_status); }; } && 3045 { ac_try='test -s conftest.$ac_objext' 3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3047 (eval $ac_try) 2>&5 3048 ac_status=$? 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); }; }; then 3051 : 3052else 3053 echo "$as_me: failed program was:" >&5 3054sed 's/^/| /' conftest.$ac_ext >&5 3055 3056continue 3057fi 3058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3059 cat >conftest.$ac_ext <<_ACEOF 3060/* confdefs.h. */ 3061_ACEOF 3062cat confdefs.h >>conftest.$ac_ext 3063cat >>conftest.$ac_ext <<_ACEOF 3064/* end confdefs.h. */ 3065$ac_declaration 3066int 3067main () 3068{ 3069exit (42); 3070 ; 3071 return 0; 3072} 3073_ACEOF 3074rm -f conftest.$ac_objext 3075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3076 (eval $ac_compile) 2>conftest.er1 3077 ac_status=$? 3078 grep -v '^ *+' conftest.er1 >conftest.err 3079 rm -f conftest.er1 3080 cat conftest.err >&5 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3082 (exit $ac_status); } && 3083 { ac_try='test -z "$ac_c_werror_flag" 3084 || test ! -s conftest.err' 3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3086 (eval $ac_try) 2>&5 3087 ac_status=$? 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); }; } && 3090 { ac_try='test -s conftest.$ac_objext' 3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3092 (eval $ac_try) 2>&5 3093 ac_status=$? 3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3095 (exit $ac_status); }; }; then 3096 break 3097else 3098 echo "$as_me: failed program was:" >&5 3099sed 's/^/| /' conftest.$ac_ext >&5 3100 3101fi 3102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3103done 3104rm -f conftest* 3105if test -n "$ac_declaration"; then 3106 echo '#ifdef __cplusplus' >>confdefs.h 3107 echo $ac_declaration >>confdefs.h 3108 echo '#endif' >>confdefs.h 3109fi 3110 3111else 3112 echo "$as_me: failed program was:" >&5 3113sed 's/^/| /' conftest.$ac_ext >&5 3114 3115fi 3116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3117ac_ext=c 3118ac_cpp='$CPP $CPPFLAGS' 3119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3121ac_compiler_gnu=$ac_cv_c_compiler_gnu 3122 3123depcc="$CC" am_compiler_list= 3124 3125echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3126echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3127if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3128 echo $ECHO_N "(cached) $ECHO_C" >&6 3129else 3130 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3131 # We make a subdir and do the tests there. Otherwise we can end up 3132 # making bogus files that we don't know about and never remove. For 3133 # instance it was reported that on HP-UX the gcc test will end up 3134 # making a dummy file named `D' -- because `-MD' means `put the output 3135 # in D'. 3136 mkdir conftest.dir 3137 # Copy depcomp to subdir because otherwise we won't find it if we're 3138 # using a relative directory. 3139 cp "$am_depcomp" conftest.dir 3140 cd conftest.dir 3141 # We will build objects and dependencies in a subdirectory because 3142 # it helps to detect inapplicable dependency modes. For instance 3143 # both Tru64's cc and ICC support -MD to output dependencies as a 3144 # side effect of compilation, but ICC will put the dependencies in 3145 # the current directory while Tru64 will put them in the object 3146 # directory. 3147 mkdir sub 3148 3149 am_cv_CC_dependencies_compiler_type=none 3150 if test "$am_compiler_list" = ""; then 3151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3152 fi 3153 for depmode in $am_compiler_list; do 3154 # Setup a source with many dependencies, because some compilers 3155 # like to wrap large dependency lists on column 80 (with \), and 3156 # we should not choose a depcomp mode which is confused by this. 3157 # 3158 # We need to recreate these files for each test, as the compiler may 3159 # overwrite some of them when testing with obscure command lines. 3160 # This happens at least with the AIX C compiler. 3161 : > sub/conftest.c 3162 for i in 1 2 3 4 5 6; do 3163 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3165 # Solaris 8's {/usr,}/bin/sh. 3166 touch sub/conftst$i.h 3167 done 3168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3169 3170 case $depmode in 3171 nosideeffect) 3172 # after this tag, mechanisms are not by side-effect, so they'll 3173 # only be used when explicitly requested 3174 if test "x$enable_dependency_tracking" = xyes; then 3175 continue 3176 else 3177 break 3178 fi 3179 ;; 3180 none) break ;; 3181 esac 3182 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3183 # mode. It turns out that the SunPro C++ compiler does not properly 3184 # handle `-M -o', and we need to detect this. 3185 if depmode=$depmode \ 3186 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3188 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3189 >/dev/null 2>conftest.err && 3190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3191 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3193 # icc doesn't choke on unknown options, it will just issue warnings 3194 # or remarks (even with -Werror). So we grep stderr for any message 3195 # that says an option was ignored or not supported. 3196 # When given -MP, icc 7.0 and 7.1 complain thusly: 3197 # icc: Command line warning: ignoring option '-M'; no argument required 3198 # The diagnosis changed in icc 8.0: 3199 # icc: Command line remark: option '-MP' not supported 3200 if (grep 'ignoring option' conftest.err || 3201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3202 am_cv_CC_dependencies_compiler_type=$depmode 3203 break 3204 fi 3205 fi 3206 done 3207 3208 cd .. 3209 rm -rf conftest.dir 3210else 3211 am_cv_CC_dependencies_compiler_type=none 3212fi 3213 3214fi 3215echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3216echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3217CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3218 3219 3220 3221if 3222 test "x$enable_dependency_tracking" != xno \ 3223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3224 am__fastdepCC_TRUE= 3225 am__fastdepCC_FALSE='#' 3226else 3227 am__fastdepCC_TRUE='#' 3228 am__fastdepCC_FALSE= 3229fi 3230 3231 3232echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3233echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3234if test "${lt_cv_path_SED+set}" = set; then 3235 echo $ECHO_N "(cached) $ECHO_C" >&6 3236else 3237 # Loop through the user's path and test for sed and gsed. 3238# Then use that list of sed's as ones to test for truncation. 3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3240for as_dir in $PATH 3241do 3242 IFS=$as_save_IFS 3243 test -z "$as_dir" && as_dir=. 3244 for lt_ac_prog in sed gsed; do 3245 for ac_exec_ext in '' $ac_executable_extensions; do 3246 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3247 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3248 fi 3249 done 3250 done 3251done 3252IFS=$as_save_IFS 3253lt_ac_max=0 3254lt_ac_count=0 3255# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3256# along with /bin/sed that truncates output. 3257for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3258 test ! -f $lt_ac_sed && continue 3259 cat /dev/null > conftest.in 3260 lt_ac_count=0 3261 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3262 # Check for GNU sed and select it if it is found. 3263 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3264 lt_cv_path_SED=$lt_ac_sed 3265 break 3266 fi 3267 while true; do 3268 cat conftest.in conftest.in >conftest.tmp 3269 mv conftest.tmp conftest.in 3270 cp conftest.in conftest.nl 3271 echo >>conftest.nl 3272 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3273 cmp -s conftest.out conftest.nl || break 3274 # 10000 chars as input seems more than enough 3275 test $lt_ac_count -gt 10 && break 3276 lt_ac_count=`expr $lt_ac_count + 1` 3277 if test $lt_ac_count -gt $lt_ac_max; then 3278 lt_ac_max=$lt_ac_count 3279 lt_cv_path_SED=$lt_ac_sed 3280 fi 3281 done 3282done 3283 3284fi 3285 3286SED=$lt_cv_path_SED 3287 3288echo "$as_me:$LINENO: result: $SED" >&5 3289echo "${ECHO_T}$SED" >&6 3290 3291echo "$as_me:$LINENO: checking for egrep" >&5 3292echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3293if test "${ac_cv_prog_egrep+set}" = set; then 3294 echo $ECHO_N "(cached) $ECHO_C" >&6 3295else 3296 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3297 then ac_cv_prog_egrep='grep -E' 3298 else ac_cv_prog_egrep='egrep' 3299 fi 3300fi 3301echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3302echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3303 EGREP=$ac_cv_prog_egrep 3304 3305 3306 3307# Check whether --with-gnu-ld or --without-gnu-ld was given. 3308if test "${with_gnu_ld+set}" = set; then 3309 withval="$with_gnu_ld" 3310 test "$withval" = no || with_gnu_ld=yes 3311else 3312 with_gnu_ld=no 3313fi; 3314ac_prog=ld 3315if test "$GCC" = yes; then 3316 # Check if gcc -print-prog-name=ld gives a path. 3317 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3318echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3319 case $host in 3320 *-*-mingw*) 3321 # gcc leaves a trailing carriage return which upsets mingw 3322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3323 *) 3324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3325 esac 3326 case $ac_prog in 3327 # Accept absolute paths. 3328 [\\/]* | ?:[\\/]*) 3329 re_direlt='/[^/][^/]*/\.\./' 3330 # Canonicalize the pathname of ld 3331 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3333 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3334 done 3335 test -z "$LD" && LD="$ac_prog" 3336 ;; 3337 "") 3338 # If it fails, then pretend we aren't using GCC. 3339 ac_prog=ld 3340 ;; 3341 *) 3342 # If it is relative, then search for the first ld in PATH. 3343 with_gnu_ld=unknown 3344 ;; 3345 esac 3346elif test "$with_gnu_ld" = yes; then 3347 echo "$as_me:$LINENO: checking for GNU ld" >&5 3348echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3349else 3350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3351echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3352fi 3353if test "${lt_cv_path_LD+set}" = set; then 3354 echo $ECHO_N "(cached) $ECHO_C" >&6 3355else 3356 if test -z "$LD"; then 3357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3358 for ac_dir in $PATH; do 3359 IFS="$lt_save_ifs" 3360 test -z "$ac_dir" && ac_dir=. 3361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3362 lt_cv_path_LD="$ac_dir/$ac_prog" 3363 # Check to see if the program is GNU ld. I'd rather use --version, 3364 # but apparently some variants of GNU ld only accept -v. 3365 # Break only if it was the GNU/non-GNU ld that we prefer. 3366 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3367 *GNU* | *'with BFD'*) 3368 test "$with_gnu_ld" != no && break 3369 ;; 3370 *) 3371 test "$with_gnu_ld" != yes && break 3372 ;; 3373 esac 3374 fi 3375 done 3376 IFS="$lt_save_ifs" 3377else 3378 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3379fi 3380fi 3381 3382LD="$lt_cv_path_LD" 3383if test -n "$LD"; then 3384 echo "$as_me:$LINENO: result: $LD" >&5 3385echo "${ECHO_T}$LD" >&6 3386else 3387 echo "$as_me:$LINENO: result: no" >&5 3388echo "${ECHO_T}no" >&6 3389fi 3390test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3391echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3392 { (exit 1); exit 1; }; } 3393echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3394echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3395if test "${lt_cv_prog_gnu_ld+set}" = set; then 3396 echo $ECHO_N "(cached) $ECHO_C" >&6 3397else 3398 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3399case `$LD -v 2>&1 </dev/null` in 3400*GNU* | *'with BFD'*) 3401 lt_cv_prog_gnu_ld=yes 3402 ;; 3403*) 3404 lt_cv_prog_gnu_ld=no 3405 ;; 3406esac 3407fi 3408echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3409echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3410with_gnu_ld=$lt_cv_prog_gnu_ld 3411 3412 3413echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3414echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3415if test "${lt_cv_ld_reload_flag+set}" = set; then 3416 echo $ECHO_N "(cached) $ECHO_C" >&6 3417else 3418 lt_cv_ld_reload_flag='-r' 3419fi 3420echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3421echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3422reload_flag=$lt_cv_ld_reload_flag 3423case $reload_flag in 3424"" | " "*) ;; 3425*) reload_flag=" $reload_flag" ;; 3426esac 3427reload_cmds='$LD$reload_flag -o $output$reload_objs' 3428case $host_os in 3429 darwin*) 3430 if test "$GCC" = yes; then 3431 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3432 else 3433 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3434 fi 3435 ;; 3436esac 3437 3438echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3439echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3440if test "${lt_cv_path_NM+set}" = set; then 3441 echo $ECHO_N "(cached) $ECHO_C" >&6 3442else 3443 if test -n "$NM"; then 3444 # Let the user override the test. 3445 lt_cv_path_NM="$NM" 3446else 3447 lt_nm_to_check="${ac_tool_prefix}nm" 3448 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3449 lt_nm_to_check="$lt_nm_to_check nm" 3450 fi 3451 for lt_tmp_nm in $lt_nm_to_check; do 3452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3453 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3454 IFS="$lt_save_ifs" 3455 test -z "$ac_dir" && ac_dir=. 3456 tmp_nm="$ac_dir/$lt_tmp_nm" 3457 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3458 # Check to see if the nm accepts a BSD-compat flag. 3459 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3460 # nm: unknown option "B" ignored 3461 # Tru64's nm complains that /dev/null is an invalid object file 3462 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3463 */dev/null* | *'Invalid file or object type'*) 3464 lt_cv_path_NM="$tmp_nm -B" 3465 break 3466 ;; 3467 *) 3468 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3469 */dev/null*) 3470 lt_cv_path_NM="$tmp_nm -p" 3471 break 3472 ;; 3473 *) 3474 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3475 continue # so that we can try to find one that supports BSD flags 3476 ;; 3477 esac 3478 ;; 3479 esac 3480 fi 3481 done 3482 IFS="$lt_save_ifs" 3483 done 3484 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3485fi 3486fi 3487echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3488echo "${ECHO_T}$lt_cv_path_NM" >&6 3489NM="$lt_cv_path_NM" 3490 3491echo "$as_me:$LINENO: checking whether ln -s works" >&5 3492echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3493LN_S=$as_ln_s 3494if test "$LN_S" = "ln -s"; then 3495 echo "$as_me:$LINENO: result: yes" >&5 3496echo "${ECHO_T}yes" >&6 3497else 3498 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3499echo "${ECHO_T}no, using $LN_S" >&6 3500fi 3501 3502echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3503echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3504if test "${lt_cv_deplibs_check_method+set}" = set; then 3505 echo $ECHO_N "(cached) $ECHO_C" >&6 3506else 3507 lt_cv_file_magic_cmd='$MAGIC_CMD' 3508lt_cv_file_magic_test_file= 3509lt_cv_deplibs_check_method='unknown' 3510# Need to set the preceding variable on all platforms that support 3511# interlibrary dependencies. 3512# 'none' -- dependencies not supported. 3513# `unknown' -- same as none, but documents that we really don't know. 3514# 'pass_all' -- all dependencies passed with no checks. 3515# 'test_compile' -- check by making test program. 3516# 'file_magic [[regex]]' -- check by looking for files in library path 3517# which responds to the $file_magic_cmd with a given extended regex. 3518# If you have `file' or equivalent on your system and you're not sure 3519# whether `pass_all' will *always* work, you probably want this one. 3520 3521case $host_os in 3522aix4* | aix5*) 3523 lt_cv_deplibs_check_method=pass_all 3524 ;; 3525 3526beos*) 3527 lt_cv_deplibs_check_method=pass_all 3528 ;; 3529 3530bsdi[45]*) 3531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3532 lt_cv_file_magic_cmd='/usr/bin/file -L' 3533 lt_cv_file_magic_test_file=/shlib/libc.so 3534 ;; 3535 3536cygwin*) 3537 # func_win32_libid is a shell function defined in ltmain.sh 3538 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3539 lt_cv_file_magic_cmd='func_win32_libid' 3540 ;; 3541 3542mingw* | pw32*) 3543 # Base MSYS/MinGW do not provide the 'file' command needed by 3544 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3545 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3546 lt_cv_file_magic_cmd='$OBJDUMP -f' 3547 ;; 3548 3549darwin* | rhapsody*) 3550 lt_cv_deplibs_check_method=pass_all 3551 ;; 3552 3553freebsd* | kfreebsd*-gnu | dragonfly*) 3554 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3555 case $host_cpu in 3556 i*86 ) 3557 # Not sure whether the presence of OpenBSD here was a mistake. 3558 # Let's accept both of them until this is cleared up. 3559 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3560 lt_cv_file_magic_cmd=/usr/bin/file 3561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3562 ;; 3563 esac 3564 else 3565 lt_cv_deplibs_check_method=pass_all 3566 fi 3567 ;; 3568 3569gnu*) 3570 lt_cv_deplibs_check_method=pass_all 3571 ;; 3572 3573hpux10.20* | hpux11*) 3574 lt_cv_file_magic_cmd=/usr/bin/file 3575 case $host_cpu in 3576 ia64*) 3577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3579 ;; 3580 hppa*64*) 3581 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]' 3582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3583 ;; 3584 *) 3585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3586 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3587 ;; 3588 esac 3589 ;; 3590 3591interix3*) 3592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3594 ;; 3595 3596irix5* | irix6* | nonstopux*) 3597 case $LD in 3598 *-32|*"-32 ") libmagic=32-bit;; 3599 *-n32|*"-n32 ") libmagic=N32;; 3600 *-64|*"-64 ") libmagic=64-bit;; 3601 *) libmagic=never-match;; 3602 esac 3603 lt_cv_deplibs_check_method=pass_all 3604 ;; 3605 3606# This must be Linux ELF. 3607linux*) 3608 lt_cv_deplibs_check_method=pass_all 3609 ;; 3610 3611netbsd*) 3612 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3614 else 3615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3616 fi 3617 ;; 3618 3619newos6*) 3620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3621 lt_cv_file_magic_cmd=/usr/bin/file 3622 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3623 ;; 3624 3625nto-qnx*) 3626 lt_cv_deplibs_check_method=unknown 3627 ;; 3628 3629openbsd*) 3630 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3632 else 3633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3634 fi 3635 ;; 3636 3637osf3* | osf4* | osf5*) 3638 lt_cv_deplibs_check_method=pass_all 3639 ;; 3640 3641solaris*) 3642 lt_cv_deplibs_check_method=pass_all 3643 ;; 3644 3645sysv4 | sysv4.3*) 3646 case $host_vendor in 3647 motorola) 3648 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]' 3649 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3650 ;; 3651 ncr) 3652 lt_cv_deplibs_check_method=pass_all 3653 ;; 3654 sequent) 3655 lt_cv_file_magic_cmd='/bin/file' 3656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3657 ;; 3658 sni) 3659 lt_cv_file_magic_cmd='/bin/file' 3660 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3661 lt_cv_file_magic_test_file=/lib/libc.so 3662 ;; 3663 siemens) 3664 lt_cv_deplibs_check_method=pass_all 3665 ;; 3666 pc) 3667 lt_cv_deplibs_check_method=pass_all 3668 ;; 3669 esac 3670 ;; 3671 3672sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3673 lt_cv_deplibs_check_method=pass_all 3674 ;; 3675esac 3676 3677fi 3678echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3679echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3680file_magic_cmd=$lt_cv_file_magic_cmd 3681deplibs_check_method=$lt_cv_deplibs_check_method 3682test -z "$deplibs_check_method" && deplibs_check_method=unknown 3683 3684 3685 3686 3687# If no C compiler was specified, use CC. 3688LTCC=${LTCC-"$CC"} 3689 3690# If no C compiler flags were specified, use CFLAGS. 3691LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3692 3693# Allow CC to be a program name with arguments. 3694compiler=$CC 3695 3696 3697# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3698if test "${enable_libtool_lock+set}" = set; then 3699 enableval="$enable_libtool_lock" 3700 3701fi; 3702test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3703 3704# Some flags need to be propagated to the compiler or linker for good 3705# libtool support. 3706case $host in 3707ia64-*-hpux*) 3708 # Find out which ABI we are using. 3709 echo 'int i;' > conftest.$ac_ext 3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3711 (eval $ac_compile) 2>&5 3712 ac_status=$? 3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3714 (exit $ac_status); }; then 3715 case `/usr/bin/file conftest.$ac_objext` in 3716 *ELF-32*) 3717 HPUX_IA64_MODE="32" 3718 ;; 3719 *ELF-64*) 3720 HPUX_IA64_MODE="64" 3721 ;; 3722 esac 3723 fi 3724 rm -rf conftest* 3725 ;; 3726*-*-irix6*) 3727 # Find out which ABI we are using. 3728 echo '#line 3728 "configure"' > conftest.$ac_ext 3729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3730 (eval $ac_compile) 2>&5 3731 ac_status=$? 3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3733 (exit $ac_status); }; then 3734 if test "$lt_cv_prog_gnu_ld" = yes; then 3735 case `/usr/bin/file conftest.$ac_objext` in 3736 *32-bit*) 3737 LD="${LD-ld} -melf32bsmip" 3738 ;; 3739 *N32*) 3740 LD="${LD-ld} -melf32bmipn32" 3741 ;; 3742 *64-bit*) 3743 LD="${LD-ld} -melf64bmip" 3744 ;; 3745 esac 3746 else 3747 case `/usr/bin/file conftest.$ac_objext` in 3748 *32-bit*) 3749 LD="${LD-ld} -32" 3750 ;; 3751 *N32*) 3752 LD="${LD-ld} -n32" 3753 ;; 3754 *64-bit*) 3755 LD="${LD-ld} -64" 3756 ;; 3757 esac 3758 fi 3759 fi 3760 rm -rf conftest* 3761 ;; 3762 3763x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3764 # Find out which ABI we are using. 3765 echo 'int i;' > conftest.$ac_ext 3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3767 (eval $ac_compile) 2>&5 3768 ac_status=$? 3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3770 (exit $ac_status); }; then 3771 case `/usr/bin/file conftest.o` in 3772 *32-bit*) 3773 case $host in 3774 x86_64-*linux*) 3775 LD="${LD-ld} -m elf_i386" 3776 ;; 3777 ppc64-*linux*|powerpc64-*linux*) 3778 LD="${LD-ld} -m elf32ppclinux" 3779 ;; 3780 s390x-*linux*) 3781 LD="${LD-ld} -m elf_s390" 3782 ;; 3783 sparc64-*linux*) 3784 LD="${LD-ld} -m elf32_sparc" 3785 ;; 3786 esac 3787 ;; 3788 *64-bit*) 3789 case $host in 3790 x86_64-*linux*) 3791 LD="${LD-ld} -m elf_x86_64" 3792 ;; 3793 ppc*-*linux*|powerpc*-*linux*) 3794 LD="${LD-ld} -m elf64ppc" 3795 ;; 3796 s390*-*linux*) 3797 LD="${LD-ld} -m elf64_s390" 3798 ;; 3799 sparc*-*linux*) 3800 LD="${LD-ld} -m elf64_sparc" 3801 ;; 3802 esac 3803 ;; 3804 esac 3805 fi 3806 rm -rf conftest* 3807 ;; 3808 3809*-*-sco3.2v5*) 3810 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3811 SAVE_CFLAGS="$CFLAGS" 3812 CFLAGS="$CFLAGS -belf" 3813 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3814echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3815if test "${lt_cv_cc_needs_belf+set}" = set; then 3816 echo $ECHO_N "(cached) $ECHO_C" >&6 3817else 3818 ac_ext=c 3819ac_cpp='$CPP $CPPFLAGS' 3820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3822ac_compiler_gnu=$ac_cv_c_compiler_gnu 3823 3824 cat >conftest.$ac_ext <<_ACEOF 3825/* confdefs.h. */ 3826_ACEOF 3827cat confdefs.h >>conftest.$ac_ext 3828cat >>conftest.$ac_ext <<_ACEOF 3829/* end confdefs.h. */ 3830 3831int 3832main () 3833{ 3834 3835 ; 3836 return 0; 3837} 3838_ACEOF 3839rm -f conftest.$ac_objext conftest$ac_exeext 3840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3841 (eval $ac_link) 2>conftest.er1 3842 ac_status=$? 3843 grep -v '^ *+' conftest.er1 >conftest.err 3844 rm -f conftest.er1 3845 cat conftest.err >&5 3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3847 (exit $ac_status); } && 3848 { ac_try='test -z "$ac_c_werror_flag" 3849 || test ! -s conftest.err' 3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3851 (eval $ac_try) 2>&5 3852 ac_status=$? 3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3854 (exit $ac_status); }; } && 3855 { ac_try='test -s conftest$ac_exeext' 3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3857 (eval $ac_try) 2>&5 3858 ac_status=$? 3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); }; }; then 3861 lt_cv_cc_needs_belf=yes 3862else 3863 echo "$as_me: failed program was:" >&5 3864sed 's/^/| /' conftest.$ac_ext >&5 3865 3866lt_cv_cc_needs_belf=no 3867fi 3868rm -f conftest.err conftest.$ac_objext \ 3869 conftest$ac_exeext conftest.$ac_ext 3870 ac_ext=c 3871ac_cpp='$CPP $CPPFLAGS' 3872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3874ac_compiler_gnu=$ac_cv_c_compiler_gnu 3875 3876fi 3877echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3878echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3879 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3880 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3881 CFLAGS="$SAVE_CFLAGS" 3882 fi 3883 ;; 3884sparc*-*solaris*) 3885 # Find out which ABI we are using. 3886 echo 'int i;' > conftest.$ac_ext 3887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3888 (eval $ac_compile) 2>&5 3889 ac_status=$? 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); }; then 3892 case `/usr/bin/file conftest.o` in 3893 *64-bit*) 3894 case $lt_cv_prog_gnu_ld in 3895 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3896 *) LD="${LD-ld} -64" ;; 3897 esac 3898 ;; 3899 esac 3900 fi 3901 rm -rf conftest* 3902 ;; 3903 3904 3905esac 3906 3907need_locks="$enable_libtool_lock" 3908 3909 3910ac_ext=c 3911ac_cpp='$CPP $CPPFLAGS' 3912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3914ac_compiler_gnu=$ac_cv_c_compiler_gnu 3915echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3916echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3917# On Suns, sometimes $CPP names a directory. 3918if test -n "$CPP" && test -d "$CPP"; then 3919 CPP= 3920fi 3921if test -z "$CPP"; then 3922 if test "${ac_cv_prog_CPP+set}" = set; then 3923 echo $ECHO_N "(cached) $ECHO_C" >&6 3924else 3925 # Double quotes because CPP needs to be expanded 3926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3927 do 3928 ac_preproc_ok=false 3929for ac_c_preproc_warn_flag in '' yes 3930do 3931 # Use a header file that comes with gcc, so configuring glibc 3932 # with a fresh cross-compiler works. 3933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3934 # <limits.h> exists even on freestanding compilers. 3935 # On the NeXT, cc -E runs the code through the compiler's parser, 3936 # not just through cpp. "Syntax error" is here to catch this case. 3937 cat >conftest.$ac_ext <<_ACEOF 3938/* confdefs.h. */ 3939_ACEOF 3940cat confdefs.h >>conftest.$ac_ext 3941cat >>conftest.$ac_ext <<_ACEOF 3942/* end confdefs.h. */ 3943#ifdef __STDC__ 3944# include <limits.h> 3945#else 3946# include <assert.h> 3947#endif 3948 Syntax error 3949_ACEOF 3950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3952 ac_status=$? 3953 grep -v '^ *+' conftest.er1 >conftest.err 3954 rm -f conftest.er1 3955 cat conftest.err >&5 3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3957 (exit $ac_status); } >/dev/null; then 3958 if test -s conftest.err; then 3959 ac_cpp_err=$ac_c_preproc_warn_flag 3960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3961 else 3962 ac_cpp_err= 3963 fi 3964else 3965 ac_cpp_err=yes 3966fi 3967if test -z "$ac_cpp_err"; then 3968 : 3969else 3970 echo "$as_me: failed program was:" >&5 3971sed 's/^/| /' conftest.$ac_ext >&5 3972 3973 # Broken: fails on valid input. 3974continue 3975fi 3976rm -f conftest.err conftest.$ac_ext 3977 3978 # OK, works on sane cases. Now check whether non-existent headers 3979 # can be detected and how. 3980 cat >conftest.$ac_ext <<_ACEOF 3981/* confdefs.h. */ 3982_ACEOF 3983cat confdefs.h >>conftest.$ac_ext 3984cat >>conftest.$ac_ext <<_ACEOF 3985/* end confdefs.h. */ 3986#include <ac_nonexistent.h> 3987_ACEOF 3988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3990 ac_status=$? 3991 grep -v '^ *+' conftest.er1 >conftest.err 3992 rm -f conftest.er1 3993 cat conftest.err >&5 3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3995 (exit $ac_status); } >/dev/null; then 3996 if test -s conftest.err; then 3997 ac_cpp_err=$ac_c_preproc_warn_flag 3998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3999 else 4000 ac_cpp_err= 4001 fi 4002else 4003 ac_cpp_err=yes 4004fi 4005if test -z "$ac_cpp_err"; then 4006 # Broken: success on invalid input. 4007continue 4008else 4009 echo "$as_me: failed program was:" >&5 4010sed 's/^/| /' conftest.$ac_ext >&5 4011 4012 # Passes both tests. 4013ac_preproc_ok=: 4014break 4015fi 4016rm -f conftest.err conftest.$ac_ext 4017 4018done 4019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4020rm -f conftest.err conftest.$ac_ext 4021if $ac_preproc_ok; then 4022 break 4023fi 4024 4025 done 4026 ac_cv_prog_CPP=$CPP 4027 4028fi 4029 CPP=$ac_cv_prog_CPP 4030else 4031 ac_cv_prog_CPP=$CPP 4032fi 4033echo "$as_me:$LINENO: result: $CPP" >&5 4034echo "${ECHO_T}$CPP" >&6 4035ac_preproc_ok=false 4036for ac_c_preproc_warn_flag in '' yes 4037do 4038 # Use a header file that comes with gcc, so configuring glibc 4039 # with a fresh cross-compiler works. 4040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4041 # <limits.h> exists even on freestanding compilers. 4042 # On the NeXT, cc -E runs the code through the compiler's parser, 4043 # not just through cpp. "Syntax error" is here to catch this case. 4044 cat >conftest.$ac_ext <<_ACEOF 4045/* confdefs.h. */ 4046_ACEOF 4047cat confdefs.h >>conftest.$ac_ext 4048cat >>conftest.$ac_ext <<_ACEOF 4049/* end confdefs.h. */ 4050#ifdef __STDC__ 4051# include <limits.h> 4052#else 4053# include <assert.h> 4054#endif 4055 Syntax error 4056_ACEOF 4057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4059 ac_status=$? 4060 grep -v '^ *+' conftest.er1 >conftest.err 4061 rm -f conftest.er1 4062 cat conftest.err >&5 4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4064 (exit $ac_status); } >/dev/null; then 4065 if test -s conftest.err; then 4066 ac_cpp_err=$ac_c_preproc_warn_flag 4067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4068 else 4069 ac_cpp_err= 4070 fi 4071else 4072 ac_cpp_err=yes 4073fi 4074if test -z "$ac_cpp_err"; then 4075 : 4076else 4077 echo "$as_me: failed program was:" >&5 4078sed 's/^/| /' conftest.$ac_ext >&5 4079 4080 # Broken: fails on valid input. 4081continue 4082fi 4083rm -f conftest.err conftest.$ac_ext 4084 4085 # OK, works on sane cases. Now check whether non-existent headers 4086 # can be detected and how. 4087 cat >conftest.$ac_ext <<_ACEOF 4088/* confdefs.h. */ 4089_ACEOF 4090cat confdefs.h >>conftest.$ac_ext 4091cat >>conftest.$ac_ext <<_ACEOF 4092/* end confdefs.h. */ 4093#include <ac_nonexistent.h> 4094_ACEOF 4095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4097 ac_status=$? 4098 grep -v '^ *+' conftest.er1 >conftest.err 4099 rm -f conftest.er1 4100 cat conftest.err >&5 4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4102 (exit $ac_status); } >/dev/null; then 4103 if test -s conftest.err; then 4104 ac_cpp_err=$ac_c_preproc_warn_flag 4105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4106 else 4107 ac_cpp_err= 4108 fi 4109else 4110 ac_cpp_err=yes 4111fi 4112if test -z "$ac_cpp_err"; then 4113 # Broken: success on invalid input. 4114continue 4115else 4116 echo "$as_me: failed program was:" >&5 4117sed 's/^/| /' conftest.$ac_ext >&5 4118 4119 # Passes both tests. 4120ac_preproc_ok=: 4121break 4122fi 4123rm -f conftest.err conftest.$ac_ext 4124 4125done 4126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4127rm -f conftest.err conftest.$ac_ext 4128if $ac_preproc_ok; then 4129 : 4130else 4131 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4132See \`config.log' for more details." >&5 4133echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4134See \`config.log' for more details." >&2;} 4135 { (exit 1); exit 1; }; } 4136fi 4137 4138ac_ext=c 4139ac_cpp='$CPP $CPPFLAGS' 4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4142ac_compiler_gnu=$ac_cv_c_compiler_gnu 4143 4144 4145echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4146echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4147if test "${ac_cv_header_stdc+set}" = set; then 4148 echo $ECHO_N "(cached) $ECHO_C" >&6 4149else 4150 cat >conftest.$ac_ext <<_ACEOF 4151/* confdefs.h. */ 4152_ACEOF 4153cat confdefs.h >>conftest.$ac_ext 4154cat >>conftest.$ac_ext <<_ACEOF 4155/* end confdefs.h. */ 4156#include <stdlib.h> 4157#include <stdarg.h> 4158#include <string.h> 4159#include <float.h> 4160 4161int 4162main () 4163{ 4164 4165 ; 4166 return 0; 4167} 4168_ACEOF 4169rm -f conftest.$ac_objext 4170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4171 (eval $ac_compile) 2>conftest.er1 4172 ac_status=$? 4173 grep -v '^ *+' conftest.er1 >conftest.err 4174 rm -f conftest.er1 4175 cat conftest.err >&5 4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4177 (exit $ac_status); } && 4178 { ac_try='test -z "$ac_c_werror_flag" 4179 || test ! -s conftest.err' 4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4181 (eval $ac_try) 2>&5 4182 ac_status=$? 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); }; } && 4185 { ac_try='test -s conftest.$ac_objext' 4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4187 (eval $ac_try) 2>&5 4188 ac_status=$? 4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4190 (exit $ac_status); }; }; then 4191 ac_cv_header_stdc=yes 4192else 4193 echo "$as_me: failed program was:" >&5 4194sed 's/^/| /' conftest.$ac_ext >&5 4195 4196ac_cv_header_stdc=no 4197fi 4198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4199 4200if test $ac_cv_header_stdc = yes; then 4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4202 cat >conftest.$ac_ext <<_ACEOF 4203/* confdefs.h. */ 4204_ACEOF 4205cat confdefs.h >>conftest.$ac_ext 4206cat >>conftest.$ac_ext <<_ACEOF 4207/* end confdefs.h. */ 4208#include <string.h> 4209 4210_ACEOF 4211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4212 $EGREP "memchr" >/dev/null 2>&1; then 4213 : 4214else 4215 ac_cv_header_stdc=no 4216fi 4217rm -f conftest* 4218 4219fi 4220 4221if test $ac_cv_header_stdc = yes; then 4222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4223 cat >conftest.$ac_ext <<_ACEOF 4224/* confdefs.h. */ 4225_ACEOF 4226cat confdefs.h >>conftest.$ac_ext 4227cat >>conftest.$ac_ext <<_ACEOF 4228/* end confdefs.h. */ 4229#include <stdlib.h> 4230 4231_ACEOF 4232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4233 $EGREP "free" >/dev/null 2>&1; then 4234 : 4235else 4236 ac_cv_header_stdc=no 4237fi 4238rm -f conftest* 4239 4240fi 4241 4242if test $ac_cv_header_stdc = yes; then 4243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4244 if test "$cross_compiling" = yes; then 4245 : 4246else 4247 cat >conftest.$ac_ext <<_ACEOF 4248/* confdefs.h. */ 4249_ACEOF 4250cat confdefs.h >>conftest.$ac_ext 4251cat >>conftest.$ac_ext <<_ACEOF 4252/* end confdefs.h. */ 4253#include <ctype.h> 4254#if ((' ' & 0x0FF) == 0x020) 4255# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4256# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4257#else 4258# define ISLOWER(c) \ 4259 (('a' <= (c) && (c) <= 'i') \ 4260 || ('j' <= (c) && (c) <= 'r') \ 4261 || ('s' <= (c) && (c) <= 'z')) 4262# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4263#endif 4264 4265#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4266int 4267main () 4268{ 4269 int i; 4270 for (i = 0; i < 256; i++) 4271 if (XOR (islower (i), ISLOWER (i)) 4272 || toupper (i) != TOUPPER (i)) 4273 exit(2); 4274 exit (0); 4275} 4276_ACEOF 4277rm -f conftest$ac_exeext 4278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4279 (eval $ac_link) 2>&5 4280 ac_status=$? 4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4284 (eval $ac_try) 2>&5 4285 ac_status=$? 4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4287 (exit $ac_status); }; }; then 4288 : 4289else 4290 echo "$as_me: program exited with status $ac_status" >&5 4291echo "$as_me: failed program was:" >&5 4292sed 's/^/| /' conftest.$ac_ext >&5 4293 4294( exit $ac_status ) 4295ac_cv_header_stdc=no 4296fi 4297rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4298fi 4299fi 4300fi 4301echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4302echo "${ECHO_T}$ac_cv_header_stdc" >&6 4303if test $ac_cv_header_stdc = yes; then 4304 4305cat >>confdefs.h <<\_ACEOF 4306#define STDC_HEADERS 1 4307_ACEOF 4308 4309fi 4310 4311# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4322 inttypes.h stdint.h unistd.h 4323do 4324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4325echo "$as_me:$LINENO: checking for $ac_header" >&5 4326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4327if eval "test \"\${$as_ac_Header+set}\" = set"; then 4328 echo $ECHO_N "(cached) $ECHO_C" >&6 4329else 4330 cat >conftest.$ac_ext <<_ACEOF 4331/* confdefs.h. */ 4332_ACEOF 4333cat confdefs.h >>conftest.$ac_ext 4334cat >>conftest.$ac_ext <<_ACEOF 4335/* end confdefs.h. */ 4336$ac_includes_default 4337 4338#include <$ac_header> 4339_ACEOF 4340rm -f conftest.$ac_objext 4341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4342 (eval $ac_compile) 2>conftest.er1 4343 ac_status=$? 4344 grep -v '^ *+' conftest.er1 >conftest.err 4345 rm -f conftest.er1 4346 cat conftest.err >&5 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4348 (exit $ac_status); } && 4349 { ac_try='test -z "$ac_c_werror_flag" 4350 || test ! -s conftest.err' 4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4352 (eval $ac_try) 2>&5 4353 ac_status=$? 4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4355 (exit $ac_status); }; } && 4356 { ac_try='test -s conftest.$ac_objext' 4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4358 (eval $ac_try) 2>&5 4359 ac_status=$? 4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4361 (exit $ac_status); }; }; then 4362 eval "$as_ac_Header=yes" 4363else 4364 echo "$as_me: failed program was:" >&5 4365sed 's/^/| /' conftest.$ac_ext >&5 4366 4367eval "$as_ac_Header=no" 4368fi 4369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4370fi 4371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4373if test `eval echo '${'$as_ac_Header'}'` = yes; then 4374 cat >>confdefs.h <<_ACEOF 4375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4376_ACEOF 4377 4378fi 4379 4380done 4381 4382 4383 4384for ac_header in dlfcn.h 4385do 4386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4387if eval "test \"\${$as_ac_Header+set}\" = set"; then 4388 echo "$as_me:$LINENO: checking for $ac_header" >&5 4389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4390if eval "test \"\${$as_ac_Header+set}\" = set"; then 4391 echo $ECHO_N "(cached) $ECHO_C" >&6 4392fi 4393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4395else 4396 # Is the header compilable? 4397echo "$as_me:$LINENO: checking $ac_header usability" >&5 4398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4399cat >conftest.$ac_ext <<_ACEOF 4400/* confdefs.h. */ 4401_ACEOF 4402cat confdefs.h >>conftest.$ac_ext 4403cat >>conftest.$ac_ext <<_ACEOF 4404/* end confdefs.h. */ 4405$ac_includes_default 4406#include <$ac_header> 4407_ACEOF 4408rm -f conftest.$ac_objext 4409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4410 (eval $ac_compile) 2>conftest.er1 4411 ac_status=$? 4412 grep -v '^ *+' conftest.er1 >conftest.err 4413 rm -f conftest.er1 4414 cat conftest.err >&5 4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4416 (exit $ac_status); } && 4417 { ac_try='test -z "$ac_c_werror_flag" 4418 || test ! -s conftest.err' 4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4420 (eval $ac_try) 2>&5 4421 ac_status=$? 4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4423 (exit $ac_status); }; } && 4424 { ac_try='test -s conftest.$ac_objext' 4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4426 (eval $ac_try) 2>&5 4427 ac_status=$? 4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4429 (exit $ac_status); }; }; then 4430 ac_header_compiler=yes 4431else 4432 echo "$as_me: failed program was:" >&5 4433sed 's/^/| /' conftest.$ac_ext >&5 4434 4435ac_header_compiler=no 4436fi 4437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4439echo "${ECHO_T}$ac_header_compiler" >&6 4440 4441# Is the header present? 4442echo "$as_me:$LINENO: checking $ac_header presence" >&5 4443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4444cat >conftest.$ac_ext <<_ACEOF 4445/* confdefs.h. */ 4446_ACEOF 4447cat confdefs.h >>conftest.$ac_ext 4448cat >>conftest.$ac_ext <<_ACEOF 4449/* end confdefs.h. */ 4450#include <$ac_header> 4451_ACEOF 4452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4454 ac_status=$? 4455 grep -v '^ *+' conftest.er1 >conftest.err 4456 rm -f conftest.er1 4457 cat conftest.err >&5 4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4459 (exit $ac_status); } >/dev/null; then 4460 if test -s conftest.err; then 4461 ac_cpp_err=$ac_c_preproc_warn_flag 4462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4463 else 4464 ac_cpp_err= 4465 fi 4466else 4467 ac_cpp_err=yes 4468fi 4469if test -z "$ac_cpp_err"; then 4470 ac_header_preproc=yes 4471else 4472 echo "$as_me: failed program was:" >&5 4473sed 's/^/| /' conftest.$ac_ext >&5 4474 4475 ac_header_preproc=no 4476fi 4477rm -f conftest.err conftest.$ac_ext 4478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4479echo "${ECHO_T}$ac_header_preproc" >&6 4480 4481# So? What about this header? 4482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4483 yes:no: ) 4484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4488 ac_header_preproc=yes 4489 ;; 4490 no:yes:* ) 4491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4503 ( 4504 cat <<\_ASBOX 4505## ---------------------------------------------------------------------- ## 4506## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 4507## ---------------------------------------------------------------------- ## 4508_ASBOX 4509 ) | 4510 sed "s/^/$as_me: WARNING: /" >&2 4511 ;; 4512esac 4513echo "$as_me:$LINENO: checking for $ac_header" >&5 4514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4515if eval "test \"\${$as_ac_Header+set}\" = set"; then 4516 echo $ECHO_N "(cached) $ECHO_C" >&6 4517else 4518 eval "$as_ac_Header=\$ac_header_preproc" 4519fi 4520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4522 4523fi 4524if test `eval echo '${'$as_ac_Header'}'` = yes; then 4525 cat >>confdefs.h <<_ACEOF 4526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4527_ACEOF 4528 4529fi 4530 4531done 4532 4533ac_ext=cc 4534ac_cpp='$CXXCPP $CPPFLAGS' 4535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4538if test -n "$ac_tool_prefix"; then 4539 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4540 do 4541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4542set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4543echo "$as_me:$LINENO: checking for $ac_word" >&5 4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4545if test "${ac_cv_prog_CXX+set}" = set; then 4546 echo $ECHO_N "(cached) $ECHO_C" >&6 4547else 4548 if test -n "$CXX"; then 4549 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4550else 4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4552for as_dir in $PATH 4553do 4554 IFS=$as_save_IFS 4555 test -z "$as_dir" && as_dir=. 4556 for ac_exec_ext in '' $ac_executable_extensions; do 4557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4560 break 2 4561 fi 4562done 4563done 4564 4565fi 4566fi 4567CXX=$ac_cv_prog_CXX 4568if test -n "$CXX"; then 4569 echo "$as_me:$LINENO: result: $CXX" >&5 4570echo "${ECHO_T}$CXX" >&6 4571else 4572 echo "$as_me:$LINENO: result: no" >&5 4573echo "${ECHO_T}no" >&6 4574fi 4575 4576 test -n "$CXX" && break 4577 done 4578fi 4579if test -z "$CXX"; then 4580 ac_ct_CXX=$CXX 4581 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4582do 4583 # Extract the first word of "$ac_prog", so it can be a program name with args. 4584set dummy $ac_prog; ac_word=$2 4585echo "$as_me:$LINENO: checking for $ac_word" >&5 4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4587if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4588 echo $ECHO_N "(cached) $ECHO_C" >&6 4589else 4590 if test -n "$ac_ct_CXX"; then 4591 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4592else 4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4594for as_dir in $PATH 4595do 4596 IFS=$as_save_IFS 4597 test -z "$as_dir" && as_dir=. 4598 for ac_exec_ext in '' $ac_executable_extensions; do 4599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4600 ac_cv_prog_ac_ct_CXX="$ac_prog" 4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4602 break 2 4603 fi 4604done 4605done 4606 4607fi 4608fi 4609ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4610if test -n "$ac_ct_CXX"; then 4611 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4612echo "${ECHO_T}$ac_ct_CXX" >&6 4613else 4614 echo "$as_me:$LINENO: result: no" >&5 4615echo "${ECHO_T}no" >&6 4616fi 4617 4618 test -n "$ac_ct_CXX" && break 4619done 4620test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4621 4622 CXX=$ac_ct_CXX 4623fi 4624 4625 4626# Provide some information about the compiler. 4627echo "$as_me:$LINENO:" \ 4628 "checking for C++ compiler version" >&5 4629ac_compiler=`set X $ac_compile; echo $2` 4630{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4631 (eval $ac_compiler --version </dev/null >&5) 2>&5 4632 ac_status=$? 4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4634 (exit $ac_status); } 4635{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4636 (eval $ac_compiler -v </dev/null >&5) 2>&5 4637 ac_status=$? 4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4639 (exit $ac_status); } 4640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4641 (eval $ac_compiler -V </dev/null >&5) 2>&5 4642 ac_status=$? 4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4644 (exit $ac_status); } 4645 4646echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4647echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4648if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4649 echo $ECHO_N "(cached) $ECHO_C" >&6 4650else 4651 cat >conftest.$ac_ext <<_ACEOF 4652/* confdefs.h. */ 4653_ACEOF 4654cat confdefs.h >>conftest.$ac_ext 4655cat >>conftest.$ac_ext <<_ACEOF 4656/* end confdefs.h. */ 4657 4658int 4659main () 4660{ 4661#ifndef __GNUC__ 4662 choke me 4663#endif 4664 4665 ; 4666 return 0; 4667} 4668_ACEOF 4669rm -f conftest.$ac_objext 4670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4671 (eval $ac_compile) 2>conftest.er1 4672 ac_status=$? 4673 grep -v '^ *+' conftest.er1 >conftest.err 4674 rm -f conftest.er1 4675 cat conftest.err >&5 4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4677 (exit $ac_status); } && 4678 { ac_try='test -z "$ac_cxx_werror_flag" 4679 || test ! -s conftest.err' 4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4681 (eval $ac_try) 2>&5 4682 ac_status=$? 4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4684 (exit $ac_status); }; } && 4685 { ac_try='test -s conftest.$ac_objext' 4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4687 (eval $ac_try) 2>&5 4688 ac_status=$? 4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4690 (exit $ac_status); }; }; then 4691 ac_compiler_gnu=yes 4692else 4693 echo "$as_me: failed program was:" >&5 4694sed 's/^/| /' conftest.$ac_ext >&5 4695 4696ac_compiler_gnu=no 4697fi 4698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4699ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4700 4701fi 4702echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4703echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4704GXX=`test $ac_compiler_gnu = yes && echo yes` 4705ac_test_CXXFLAGS=${CXXFLAGS+set} 4706ac_save_CXXFLAGS=$CXXFLAGS 4707CXXFLAGS="-g" 4708echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4709echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4710if test "${ac_cv_prog_cxx_g+set}" = set; then 4711 echo $ECHO_N "(cached) $ECHO_C" >&6 4712else 4713 cat >conftest.$ac_ext <<_ACEOF 4714/* confdefs.h. */ 4715_ACEOF 4716cat confdefs.h >>conftest.$ac_ext 4717cat >>conftest.$ac_ext <<_ACEOF 4718/* end confdefs.h. */ 4719 4720int 4721main () 4722{ 4723 4724 ; 4725 return 0; 4726} 4727_ACEOF 4728rm -f conftest.$ac_objext 4729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4730 (eval $ac_compile) 2>conftest.er1 4731 ac_status=$? 4732 grep -v '^ *+' conftest.er1 >conftest.err 4733 rm -f conftest.er1 4734 cat conftest.err >&5 4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4736 (exit $ac_status); } && 4737 { ac_try='test -z "$ac_cxx_werror_flag" 4738 || test ! -s conftest.err' 4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4740 (eval $ac_try) 2>&5 4741 ac_status=$? 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4743 (exit $ac_status); }; } && 4744 { ac_try='test -s conftest.$ac_objext' 4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4746 (eval $ac_try) 2>&5 4747 ac_status=$? 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); }; }; then 4750 ac_cv_prog_cxx_g=yes 4751else 4752 echo "$as_me: failed program was:" >&5 4753sed 's/^/| /' conftest.$ac_ext >&5 4754 4755ac_cv_prog_cxx_g=no 4756fi 4757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4758fi 4759echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4760echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4761if test "$ac_test_CXXFLAGS" = set; then 4762 CXXFLAGS=$ac_save_CXXFLAGS 4763elif test $ac_cv_prog_cxx_g = yes; then 4764 if test "$GXX" = yes; then 4765 CXXFLAGS="-g -O2" 4766 else 4767 CXXFLAGS="-g" 4768 fi 4769else 4770 if test "$GXX" = yes; then 4771 CXXFLAGS="-O2" 4772 else 4773 CXXFLAGS= 4774 fi 4775fi 4776for ac_declaration in \ 4777 '' \ 4778 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4779 'extern "C" void std::exit (int); using std::exit;' \ 4780 'extern "C" void exit (int) throw ();' \ 4781 'extern "C" void exit (int);' \ 4782 'void exit (int);' 4783do 4784 cat >conftest.$ac_ext <<_ACEOF 4785/* confdefs.h. */ 4786_ACEOF 4787cat confdefs.h >>conftest.$ac_ext 4788cat >>conftest.$ac_ext <<_ACEOF 4789/* end confdefs.h. */ 4790$ac_declaration 4791#include <stdlib.h> 4792int 4793main () 4794{ 4795exit (42); 4796 ; 4797 return 0; 4798} 4799_ACEOF 4800rm -f conftest.$ac_objext 4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4802 (eval $ac_compile) 2>conftest.er1 4803 ac_status=$? 4804 grep -v '^ *+' conftest.er1 >conftest.err 4805 rm -f conftest.er1 4806 cat conftest.err >&5 4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4808 (exit $ac_status); } && 4809 { ac_try='test -z "$ac_cxx_werror_flag" 4810 || test ! -s conftest.err' 4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4812 (eval $ac_try) 2>&5 4813 ac_status=$? 4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4815 (exit $ac_status); }; } && 4816 { ac_try='test -s conftest.$ac_objext' 4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4818 (eval $ac_try) 2>&5 4819 ac_status=$? 4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4821 (exit $ac_status); }; }; then 4822 : 4823else 4824 echo "$as_me: failed program was:" >&5 4825sed 's/^/| /' conftest.$ac_ext >&5 4826 4827continue 4828fi 4829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4830 cat >conftest.$ac_ext <<_ACEOF 4831/* confdefs.h. */ 4832_ACEOF 4833cat confdefs.h >>conftest.$ac_ext 4834cat >>conftest.$ac_ext <<_ACEOF 4835/* end confdefs.h. */ 4836$ac_declaration 4837int 4838main () 4839{ 4840exit (42); 4841 ; 4842 return 0; 4843} 4844_ACEOF 4845rm -f conftest.$ac_objext 4846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4847 (eval $ac_compile) 2>conftest.er1 4848 ac_status=$? 4849 grep -v '^ *+' conftest.er1 >conftest.err 4850 rm -f conftest.er1 4851 cat conftest.err >&5 4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4853 (exit $ac_status); } && 4854 { ac_try='test -z "$ac_cxx_werror_flag" 4855 || test ! -s conftest.err' 4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4857 (eval $ac_try) 2>&5 4858 ac_status=$? 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); }; } && 4861 { ac_try='test -s conftest.$ac_objext' 4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4863 (eval $ac_try) 2>&5 4864 ac_status=$? 4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4866 (exit $ac_status); }; }; then 4867 break 4868else 4869 echo "$as_me: failed program was:" >&5 4870sed 's/^/| /' conftest.$ac_ext >&5 4871 4872fi 4873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4874done 4875rm -f conftest* 4876if test -n "$ac_declaration"; then 4877 echo '#ifdef __cplusplus' >>confdefs.h 4878 echo $ac_declaration >>confdefs.h 4879 echo '#endif' >>confdefs.h 4880fi 4881 4882ac_ext=cc 4883ac_cpp='$CXXCPP $CPPFLAGS' 4884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4887 4888depcc="$CXX" am_compiler_list= 4889 4890echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4891echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4892if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4893 echo $ECHO_N "(cached) $ECHO_C" >&6 4894else 4895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4896 # We make a subdir and do the tests there. Otherwise we can end up 4897 # making bogus files that we don't know about and never remove. For 4898 # instance it was reported that on HP-UX the gcc test will end up 4899 # making a dummy file named `D' -- because `-MD' means `put the output 4900 # in D'. 4901 mkdir conftest.dir 4902 # Copy depcomp to subdir because otherwise we won't find it if we're 4903 # using a relative directory. 4904 cp "$am_depcomp" conftest.dir 4905 cd conftest.dir 4906 # We will build objects and dependencies in a subdirectory because 4907 # it helps to detect inapplicable dependency modes. For instance 4908 # both Tru64's cc and ICC support -MD to output dependencies as a 4909 # side effect of compilation, but ICC will put the dependencies in 4910 # the current directory while Tru64 will put them in the object 4911 # directory. 4912 mkdir sub 4913 4914 am_cv_CXX_dependencies_compiler_type=none 4915 if test "$am_compiler_list" = ""; then 4916 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4917 fi 4918 for depmode in $am_compiler_list; do 4919 # Setup a source with many dependencies, because some compilers 4920 # like to wrap large dependency lists on column 80 (with \), and 4921 # we should not choose a depcomp mode which is confused by this. 4922 # 4923 # We need to recreate these files for each test, as the compiler may 4924 # overwrite some of them when testing with obscure command lines. 4925 # This happens at least with the AIX C compiler. 4926 : > sub/conftest.c 4927 for i in 1 2 3 4 5 6; do 4928 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4929 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4930 # Solaris 8's {/usr,}/bin/sh. 4931 touch sub/conftst$i.h 4932 done 4933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4934 4935 case $depmode in 4936 nosideeffect) 4937 # after this tag, mechanisms are not by side-effect, so they'll 4938 # only be used when explicitly requested 4939 if test "x$enable_dependency_tracking" = xyes; then 4940 continue 4941 else 4942 break 4943 fi 4944 ;; 4945 none) break ;; 4946 esac 4947 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4948 # mode. It turns out that the SunPro C++ compiler does not properly 4949 # handle `-M -o', and we need to detect this. 4950 if depmode=$depmode \ 4951 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4953 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4954 >/dev/null 2>conftest.err && 4955 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4956 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4957 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4958 # icc doesn't choke on unknown options, it will just issue warnings 4959 # or remarks (even with -Werror). So we grep stderr for any message 4960 # that says an option was ignored or not supported. 4961 # When given -MP, icc 7.0 and 7.1 complain thusly: 4962 # icc: Command line warning: ignoring option '-M'; no argument required 4963 # The diagnosis changed in icc 8.0: 4964 # icc: Command line remark: option '-MP' not supported 4965 if (grep 'ignoring option' conftest.err || 4966 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4967 am_cv_CXX_dependencies_compiler_type=$depmode 4968 break 4969 fi 4970 fi 4971 done 4972 4973 cd .. 4974 rm -rf conftest.dir 4975else 4976 am_cv_CXX_dependencies_compiler_type=none 4977fi 4978 4979fi 4980echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4981echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4982CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4983 4984 4985 4986if 4987 test "x$enable_dependency_tracking" != xno \ 4988 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4989 am__fastdepCXX_TRUE= 4990 am__fastdepCXX_FALSE='#' 4991else 4992 am__fastdepCXX_TRUE='#' 4993 am__fastdepCXX_FALSE= 4994fi 4995 4996 4997 4998 4999if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5000 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5001 (test "X$CXX" != "Xg++"))) ; then 5002 ac_ext=cc 5003ac_cpp='$CXXCPP $CPPFLAGS' 5004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5007echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5008echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5009if test -z "$CXXCPP"; then 5010 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5011 echo $ECHO_N "(cached) $ECHO_C" >&6 5012else 5013 # Double quotes because CXXCPP needs to be expanded 5014 for CXXCPP in "$CXX -E" "/lib/cpp" 5015 do 5016 ac_preproc_ok=false 5017for ac_cxx_preproc_warn_flag in '' yes 5018do 5019 # Use a header file that comes with gcc, so configuring glibc 5020 # with a fresh cross-compiler works. 5021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5022 # <limits.h> exists even on freestanding compilers. 5023 # On the NeXT, cc -E runs the code through the compiler's parser, 5024 # not just through cpp. "Syntax error" is here to catch this case. 5025 cat >conftest.$ac_ext <<_ACEOF 5026/* confdefs.h. */ 5027_ACEOF 5028cat confdefs.h >>conftest.$ac_ext 5029cat >>conftest.$ac_ext <<_ACEOF 5030/* end confdefs.h. */ 5031#ifdef __STDC__ 5032# include <limits.h> 5033#else 5034# include <assert.h> 5035#endif 5036 Syntax error 5037_ACEOF 5038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5040 ac_status=$? 5041 grep -v '^ *+' conftest.er1 >conftest.err 5042 rm -f conftest.er1 5043 cat conftest.err >&5 5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5045 (exit $ac_status); } >/dev/null; then 5046 if test -s conftest.err; then 5047 ac_cpp_err=$ac_cxx_preproc_warn_flag 5048 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5049 else 5050 ac_cpp_err= 5051 fi 5052else 5053 ac_cpp_err=yes 5054fi 5055if test -z "$ac_cpp_err"; then 5056 : 5057else 5058 echo "$as_me: failed program was:" >&5 5059sed 's/^/| /' conftest.$ac_ext >&5 5060 5061 # Broken: fails on valid input. 5062continue 5063fi 5064rm -f conftest.err conftest.$ac_ext 5065 5066 # OK, works on sane cases. Now check whether non-existent headers 5067 # can be detected and how. 5068 cat >conftest.$ac_ext <<_ACEOF 5069/* confdefs.h. */ 5070_ACEOF 5071cat confdefs.h >>conftest.$ac_ext 5072cat >>conftest.$ac_ext <<_ACEOF 5073/* end confdefs.h. */ 5074#include <ac_nonexistent.h> 5075_ACEOF 5076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5078 ac_status=$? 5079 grep -v '^ *+' conftest.er1 >conftest.err 5080 rm -f conftest.er1 5081 cat conftest.err >&5 5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5083 (exit $ac_status); } >/dev/null; then 5084 if test -s conftest.err; then 5085 ac_cpp_err=$ac_cxx_preproc_warn_flag 5086 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5087 else 5088 ac_cpp_err= 5089 fi 5090else 5091 ac_cpp_err=yes 5092fi 5093if test -z "$ac_cpp_err"; then 5094 # Broken: success on invalid input. 5095continue 5096else 5097 echo "$as_me: failed program was:" >&5 5098sed 's/^/| /' conftest.$ac_ext >&5 5099 5100 # Passes both tests. 5101ac_preproc_ok=: 5102break 5103fi 5104rm -f conftest.err conftest.$ac_ext 5105 5106done 5107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5108rm -f conftest.err conftest.$ac_ext 5109if $ac_preproc_ok; then 5110 break 5111fi 5112 5113 done 5114 ac_cv_prog_CXXCPP=$CXXCPP 5115 5116fi 5117 CXXCPP=$ac_cv_prog_CXXCPP 5118else 5119 ac_cv_prog_CXXCPP=$CXXCPP 5120fi 5121echo "$as_me:$LINENO: result: $CXXCPP" >&5 5122echo "${ECHO_T}$CXXCPP" >&6 5123ac_preproc_ok=false 5124for ac_cxx_preproc_warn_flag in '' yes 5125do 5126 # Use a header file that comes with gcc, so configuring glibc 5127 # with a fresh cross-compiler works. 5128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5129 # <limits.h> exists even on freestanding compilers. 5130 # On the NeXT, cc -E runs the code through the compiler's parser, 5131 # not just through cpp. "Syntax error" is here to catch this case. 5132 cat >conftest.$ac_ext <<_ACEOF 5133/* confdefs.h. */ 5134_ACEOF 5135cat confdefs.h >>conftest.$ac_ext 5136cat >>conftest.$ac_ext <<_ACEOF 5137/* end confdefs.h. */ 5138#ifdef __STDC__ 5139# include <limits.h> 5140#else 5141# include <assert.h> 5142#endif 5143 Syntax error 5144_ACEOF 5145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5147 ac_status=$? 5148 grep -v '^ *+' conftest.er1 >conftest.err 5149 rm -f conftest.er1 5150 cat conftest.err >&5 5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5152 (exit $ac_status); } >/dev/null; then 5153 if test -s conftest.err; then 5154 ac_cpp_err=$ac_cxx_preproc_warn_flag 5155 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5156 else 5157 ac_cpp_err= 5158 fi 5159else 5160 ac_cpp_err=yes 5161fi 5162if test -z "$ac_cpp_err"; then 5163 : 5164else 5165 echo "$as_me: failed program was:" >&5 5166sed 's/^/| /' conftest.$ac_ext >&5 5167 5168 # Broken: fails on valid input. 5169continue 5170fi 5171rm -f conftest.err conftest.$ac_ext 5172 5173 # OK, works on sane cases. Now check whether non-existent headers 5174 # can be detected and how. 5175 cat >conftest.$ac_ext <<_ACEOF 5176/* confdefs.h. */ 5177_ACEOF 5178cat confdefs.h >>conftest.$ac_ext 5179cat >>conftest.$ac_ext <<_ACEOF 5180/* end confdefs.h. */ 5181#include <ac_nonexistent.h> 5182_ACEOF 5183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5185 ac_status=$? 5186 grep -v '^ *+' conftest.er1 >conftest.err 5187 rm -f conftest.er1 5188 cat conftest.err >&5 5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5190 (exit $ac_status); } >/dev/null; then 5191 if test -s conftest.err; then 5192 ac_cpp_err=$ac_cxx_preproc_warn_flag 5193 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5194 else 5195 ac_cpp_err= 5196 fi 5197else 5198 ac_cpp_err=yes 5199fi 5200if test -z "$ac_cpp_err"; then 5201 # Broken: success on invalid input. 5202continue 5203else 5204 echo "$as_me: failed program was:" >&5 5205sed 's/^/| /' conftest.$ac_ext >&5 5206 5207 # Passes both tests. 5208ac_preproc_ok=: 5209break 5210fi 5211rm -f conftest.err conftest.$ac_ext 5212 5213done 5214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5215rm -f conftest.err conftest.$ac_ext 5216if $ac_preproc_ok; then 5217 : 5218else 5219 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5220See \`config.log' for more details." >&5 5221echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5222See \`config.log' for more details." >&2;} 5223 { (exit 1); exit 1; }; } 5224fi 5225 5226ac_ext=cc 5227ac_cpp='$CXXCPP $CPPFLAGS' 5228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5231 5232fi 5233 5234 5235ac_ext=f 5236ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5237ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5238ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5239if test -n "$ac_tool_prefix"; then 5240 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5241 do 5242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5243set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5244echo "$as_me:$LINENO: checking for $ac_word" >&5 5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5246if test "${ac_cv_prog_F77+set}" = set; then 5247 echo $ECHO_N "(cached) $ECHO_C" >&6 5248else 5249 if test -n "$F77"; then 5250 ac_cv_prog_F77="$F77" # Let the user override the test. 5251else 5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5253for as_dir in $PATH 5254do 5255 IFS=$as_save_IFS 5256 test -z "$as_dir" && as_dir=. 5257 for ac_exec_ext in '' $ac_executable_extensions; do 5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5259 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5261 break 2 5262 fi 5263done 5264done 5265 5266fi 5267fi 5268F77=$ac_cv_prog_F77 5269if test -n "$F77"; then 5270 echo "$as_me:$LINENO: result: $F77" >&5 5271echo "${ECHO_T}$F77" >&6 5272else 5273 echo "$as_me:$LINENO: result: no" >&5 5274echo "${ECHO_T}no" >&6 5275fi 5276 5277 test -n "$F77" && break 5278 done 5279fi 5280if test -z "$F77"; then 5281 ac_ct_F77=$F77 5282 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5283do 5284 # Extract the first word of "$ac_prog", so it can be a program name with args. 5285set dummy $ac_prog; ac_word=$2 5286echo "$as_me:$LINENO: checking for $ac_word" >&5 5287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5288if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5289 echo $ECHO_N "(cached) $ECHO_C" >&6 5290else 5291 if test -n "$ac_ct_F77"; then 5292 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5293else 5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH 5296do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5301 ac_cv_prog_ac_ct_F77="$ac_prog" 5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305done 5306done 5307 5308fi 5309fi 5310ac_ct_F77=$ac_cv_prog_ac_ct_F77 5311if test -n "$ac_ct_F77"; then 5312 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5313echo "${ECHO_T}$ac_ct_F77" >&6 5314else 5315 echo "$as_me:$LINENO: result: no" >&5 5316echo "${ECHO_T}no" >&6 5317fi 5318 5319 test -n "$ac_ct_F77" && break 5320done 5321 5322 F77=$ac_ct_F77 5323fi 5324 5325 5326# Provide some information about the compiler. 5327echo "$as_me:5327:" \ 5328 "checking for Fortran 77 compiler version" >&5 5329ac_compiler=`set X $ac_compile; echo $2` 5330{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5331 (eval $ac_compiler --version </dev/null >&5) 2>&5 5332 ac_status=$? 5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5334 (exit $ac_status); } 5335{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5336 (eval $ac_compiler -v </dev/null >&5) 2>&5 5337 ac_status=$? 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5339 (exit $ac_status); } 5340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5341 (eval $ac_compiler -V </dev/null >&5) 2>&5 5342 ac_status=$? 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); } 5345rm -f a.out 5346 5347# If we don't use `.F' as extension, the preprocessor is not run on the 5348# input file. (Note that this only needs to work for GNU compilers.) 5349ac_save_ext=$ac_ext 5350ac_ext=F 5351echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5352echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5353if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5354 echo $ECHO_N "(cached) $ECHO_C" >&6 5355else 5356 cat >conftest.$ac_ext <<_ACEOF 5357 program main 5358#ifndef __GNUC__ 5359 choke me 5360#endif 5361 5362 end 5363_ACEOF 5364rm -f conftest.$ac_objext 5365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5366 (eval $ac_compile) 2>conftest.er1 5367 ac_status=$? 5368 grep -v '^ *+' conftest.er1 >conftest.err 5369 rm -f conftest.er1 5370 cat conftest.err >&5 5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5372 (exit $ac_status); } && 5373 { ac_try='test -z "$ac_f77_werror_flag" 5374 || test ! -s conftest.err' 5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5376 (eval $ac_try) 2>&5 5377 ac_status=$? 5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5379 (exit $ac_status); }; } && 5380 { ac_try='test -s conftest.$ac_objext' 5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5382 (eval $ac_try) 2>&5 5383 ac_status=$? 5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5385 (exit $ac_status); }; }; then 5386 ac_compiler_gnu=yes 5387else 5388 echo "$as_me: failed program was:" >&5 5389sed 's/^/| /' conftest.$ac_ext >&5 5390 5391ac_compiler_gnu=no 5392fi 5393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5394ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5395 5396fi 5397echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5398echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5399ac_ext=$ac_save_ext 5400ac_test_FFLAGS=${FFLAGS+set} 5401ac_save_FFLAGS=$FFLAGS 5402FFLAGS= 5403echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5404echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5405if test "${ac_cv_prog_f77_g+set}" = set; then 5406 echo $ECHO_N "(cached) $ECHO_C" >&6 5407else 5408 FFLAGS=-g 5409cat >conftest.$ac_ext <<_ACEOF 5410 program main 5411 5412 end 5413_ACEOF 5414rm -f conftest.$ac_objext 5415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5416 (eval $ac_compile) 2>conftest.er1 5417 ac_status=$? 5418 grep -v '^ *+' conftest.er1 >conftest.err 5419 rm -f conftest.er1 5420 cat conftest.err >&5 5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5422 (exit $ac_status); } && 5423 { ac_try='test -z "$ac_f77_werror_flag" 5424 || test ! -s conftest.err' 5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5426 (eval $ac_try) 2>&5 5427 ac_status=$? 5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5429 (exit $ac_status); }; } && 5430 { ac_try='test -s conftest.$ac_objext' 5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5432 (eval $ac_try) 2>&5 5433 ac_status=$? 5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5435 (exit $ac_status); }; }; then 5436 ac_cv_prog_f77_g=yes 5437else 5438 echo "$as_me: failed program was:" >&5 5439sed 's/^/| /' conftest.$ac_ext >&5 5440 5441ac_cv_prog_f77_g=no 5442fi 5443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5444 5445fi 5446echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5447echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5448if test "$ac_test_FFLAGS" = set; then 5449 FFLAGS=$ac_save_FFLAGS 5450elif test $ac_cv_prog_f77_g = yes; then 5451 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5452 FFLAGS="-g -O2" 5453 else 5454 FFLAGS="-g" 5455 fi 5456else 5457 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5458 FFLAGS="-O2" 5459 else 5460 FFLAGS= 5461 fi 5462fi 5463 5464G77=`test $ac_compiler_gnu = yes && echo yes` 5465ac_ext=c 5466ac_cpp='$CPP $CPPFLAGS' 5467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5469ac_compiler_gnu=$ac_cv_c_compiler_gnu 5470 5471 5472 5473# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5474 5475# find the maximum length of command line arguments 5476echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5477echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5478if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5479 echo $ECHO_N "(cached) $ECHO_C" >&6 5480else 5481 i=0 5482 teststring="ABCD" 5483 5484 case $build_os in 5485 msdosdjgpp*) 5486 # On DJGPP, this test can blow up pretty badly due to problems in libc 5487 # (any single argument exceeding 2000 bytes causes a buffer overrun 5488 # during glob expansion). Even if it were fixed, the result of this 5489 # check would be larger than it should be. 5490 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5491 ;; 5492 5493 gnu*) 5494 # Under GNU Hurd, this test is not required because there is 5495 # no limit to the length of command line arguments. 5496 # Libtool will interpret -1 as no limit whatsoever 5497 lt_cv_sys_max_cmd_len=-1; 5498 ;; 5499 5500 cygwin* | mingw*) 5501 # On Win9x/ME, this test blows up -- it succeeds, but takes 5502 # about 5 minutes as the teststring grows exponentially. 5503 # Worse, since 9x/ME are not pre-emptively multitasking, 5504 # you end up with a "frozen" computer, even though with patience 5505 # the test eventually succeeds (with a max line length of 256k). 5506 # Instead, let's just punt: use the minimum linelength reported by 5507 # all of the supported platforms: 8192 (on NT/2K/XP). 5508 lt_cv_sys_max_cmd_len=8192; 5509 ;; 5510 5511 amigaos*) 5512 # On AmigaOS with pdksh, this test takes hours, literally. 5513 # So we just punt and use a minimum line length of 8192. 5514 lt_cv_sys_max_cmd_len=8192; 5515 ;; 5516 5517 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5518 # This has been around since 386BSD, at least. Likely further. 5519 if test -x /sbin/sysctl; then 5520 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5521 elif test -x /usr/sbin/sysctl; then 5522 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5523 else 5524 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5525 fi 5526 # And add a safety zone 5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5529 ;; 5530 5531 interix*) 5532 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5533 lt_cv_sys_max_cmd_len=196608 5534 ;; 5535 5536 osf*) 5537 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5538 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5539 # nice to cause kernel panics so lets avoid the loop below. 5540 # First set a reasonable default. 5541 lt_cv_sys_max_cmd_len=16384 5542 # 5543 if test -x /sbin/sysconfig; then 5544 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5545 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5546 esac 5547 fi 5548 ;; 5549 sco3.2v5*) 5550 lt_cv_sys_max_cmd_len=102400 5551 ;; 5552 sysv5* | sco5v6* | sysv4.2uw2*) 5553 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5554 if test -n "$kargmax"; then 5555 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5556 else 5557 lt_cv_sys_max_cmd_len=32768 5558 fi 5559 ;; 5560 *) 5561 # If test is not a shell built-in, we'll probably end up computing a 5562 # maximum length that is only half of the actual maximum length, but 5563 # we can't tell. 5564 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5565 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5566 = "XX$teststring") >/dev/null 2>&1 && 5567 new_result=`expr "X$teststring" : ".*" 2>&1` && 5568 lt_cv_sys_max_cmd_len=$new_result && 5569 test $i != 17 # 1/2 MB should be enough 5570 do 5571 i=`expr $i + 1` 5572 teststring=$teststring$teststring 5573 done 5574 teststring= 5575 # Add a significant safety factor because C++ compilers can tack on massive 5576 # amounts of additional arguments before passing them to the linker. 5577 # It appears as though 1/2 is a usable value. 5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5579 ;; 5580 esac 5581 5582fi 5583 5584if test -n $lt_cv_sys_max_cmd_len ; then 5585 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5586echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5587else 5588 echo "$as_me:$LINENO: result: none" >&5 5589echo "${ECHO_T}none" >&6 5590fi 5591 5592 5593 5594 5595# Check for command to grab the raw symbol name followed by C symbol from nm. 5596echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5597echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5598if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5599 echo $ECHO_N "(cached) $ECHO_C" >&6 5600else 5601 5602# These are sane defaults that work on at least a few old systems. 5603# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5604 5605# Character class describing NM global symbol codes. 5606symcode='[BCDEGRST]' 5607 5608# Regexp to match symbols that can be accessed directly from C. 5609sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5610 5611# Transform an extracted symbol line into a proper C declaration 5612lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5613 5614# Transform an extracted symbol line into symbol name and symbol address 5615lt_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'" 5616 5617# Define system-specific variables. 5618case $host_os in 5619aix*) 5620 symcode='[BCDT]' 5621 ;; 5622cygwin* | mingw* | pw32*) 5623 symcode='[ABCDGISTW]' 5624 ;; 5625hpux*) # Its linker distinguishes data from code symbols 5626 if test "$host_cpu" = ia64; then 5627 symcode='[ABCDEGRST]' 5628 fi 5629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5630 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'" 5631 ;; 5632linux*) 5633 if test "$host_cpu" = ia64; then 5634 symcode='[ABCDGIRSTW]' 5635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5636 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'" 5637 fi 5638 ;; 5639irix* | nonstopux*) 5640 symcode='[BCDEGRST]' 5641 ;; 5642osf*) 5643 symcode='[BCDEGQRST]' 5644 ;; 5645solaris*) 5646 symcode='[BDRT]' 5647 ;; 5648sco3.2v5*) 5649 symcode='[DT]' 5650 ;; 5651sysv4.2uw2*) 5652 symcode='[DT]' 5653 ;; 5654sysv5* | sco5v6* | unixware* | OpenUNIX*) 5655 symcode='[ABDT]' 5656 ;; 5657sysv4) 5658 symcode='[DFNSTU]' 5659 ;; 5660esac 5661 5662# Handle CRLF in mingw tool chain 5663opt_cr= 5664case $build_os in 5665mingw*) 5666 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5667 ;; 5668esac 5669 5670# If we're using GNU nm, then use its standard symbol codes. 5671case `$NM -V 2>&1` in 5672*GNU* | *'with BFD'*) 5673 symcode='[ABCDGIRSTW]' ;; 5674esac 5675 5676# Try without a prefix undercore, then with it. 5677for ac_symprfx in "" "_"; do 5678 5679 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5680 symxfrm="\\1 $ac_symprfx\\2 \\2" 5681 5682 # Write the raw and C identifiers. 5683 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5684 5685 # Check to see that the pipe works correctly. 5686 pipe_works=no 5687 5688 rm -f conftest* 5689 cat > conftest.$ac_ext <<EOF 5690#ifdef __cplusplus 5691extern "C" { 5692#endif 5693char nm_test_var; 5694void nm_test_func(){} 5695#ifdef __cplusplus 5696} 5697#endif 5698int main(){nm_test_var='a';nm_test_func();return(0);} 5699EOF 5700 5701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5702 (eval $ac_compile) 2>&5 5703 ac_status=$? 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705 (exit $ac_status); }; then 5706 # Now try to grab the symbols. 5707 nlist=conftest.nm 5708 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5709 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5710 ac_status=$? 5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5712 (exit $ac_status); } && test -s "$nlist"; then 5713 # Try sorting and uniquifying the output. 5714 if sort "$nlist" | uniq > "$nlist"T; then 5715 mv -f "$nlist"T "$nlist" 5716 else 5717 rm -f "$nlist"T 5718 fi 5719 5720 # Make sure that we snagged all the symbols we need. 5721 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5722 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5723 cat <<EOF > conftest.$ac_ext 5724#ifdef __cplusplus 5725extern "C" { 5726#endif 5727 5728EOF 5729 # Now generate the symbol file. 5730 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5731 5732 cat <<EOF >> conftest.$ac_ext 5733#if defined (__STDC__) && __STDC__ 5734# define lt_ptr_t void * 5735#else 5736# define lt_ptr_t char * 5737# define const 5738#endif 5739 5740/* The mapping between symbol names and symbols. */ 5741const struct { 5742 const char *name; 5743 lt_ptr_t address; 5744} 5745lt_preloaded_symbols[] = 5746{ 5747EOF 5748 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5749 cat <<\EOF >> conftest.$ac_ext 5750 {0, (lt_ptr_t) 0} 5751}; 5752 5753#ifdef __cplusplus 5754} 5755#endif 5756EOF 5757 # Now try linking the two files. 5758 mv conftest.$ac_objext conftstm.$ac_objext 5759 lt_save_LIBS="$LIBS" 5760 lt_save_CFLAGS="$CFLAGS" 5761 LIBS="conftstm.$ac_objext" 5762 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5764 (eval $ac_link) 2>&5 5765 ac_status=$? 5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5767 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5768 pipe_works=yes 5769 fi 5770 LIBS="$lt_save_LIBS" 5771 CFLAGS="$lt_save_CFLAGS" 5772 else 5773 echo "cannot find nm_test_func in $nlist" >&5 5774 fi 5775 else 5776 echo "cannot find nm_test_var in $nlist" >&5 5777 fi 5778 else 5779 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5780 fi 5781 else 5782 echo "$progname: failed program was:" >&5 5783 cat conftest.$ac_ext >&5 5784 fi 5785 rm -f conftest* conftst* 5786 5787 # Do not use the global_symbol_pipe unless it works. 5788 if test "$pipe_works" = yes; then 5789 break 5790 else 5791 lt_cv_sys_global_symbol_pipe= 5792 fi 5793done 5794 5795fi 5796 5797if test -z "$lt_cv_sys_global_symbol_pipe"; then 5798 lt_cv_sys_global_symbol_to_cdecl= 5799fi 5800if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5801 echo "$as_me:$LINENO: result: failed" >&5 5802echo "${ECHO_T}failed" >&6 5803else 5804 echo "$as_me:$LINENO: result: ok" >&5 5805echo "${ECHO_T}ok" >&6 5806fi 5807 5808echo "$as_me:$LINENO: checking for objdir" >&5 5809echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5810if test "${lt_cv_objdir+set}" = set; then 5811 echo $ECHO_N "(cached) $ECHO_C" >&6 5812else 5813 rm -f .libs 2>/dev/null 5814mkdir .libs 2>/dev/null 5815if test -d .libs; then 5816 lt_cv_objdir=.libs 5817else 5818 # MS-DOS does not allow filenames that begin with a dot. 5819 lt_cv_objdir=_libs 5820fi 5821rmdir .libs 2>/dev/null 5822fi 5823echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5824echo "${ECHO_T}$lt_cv_objdir" >&6 5825objdir=$lt_cv_objdir 5826 5827 5828 5829 5830 5831case $host_os in 5832aix3*) 5833 # AIX sometimes has problems with the GCC collect2 program. For some 5834 # reason, if we set the COLLECT_NAMES environment variable, the problems 5835 # vanish in a puff of smoke. 5836 if test "X${COLLECT_NAMES+set}" != Xset; then 5837 COLLECT_NAMES= 5838 export COLLECT_NAMES 5839 fi 5840 ;; 5841esac 5842 5843# Sed substitution that helps us do robust quoting. It backslashifies 5844# metacharacters that are still active within double-quoted strings. 5845Xsed='sed -e 1s/^X//' 5846sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5847 5848# Same as above, but do not quote variable references. 5849double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5850 5851# Sed substitution to delay expansion of an escaped shell variable in a 5852# double_quote_subst'ed string. 5853delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5854 5855# Sed substitution to avoid accidental globbing in evaled expressions 5856no_glob_subst='s/\*/\\\*/g' 5857 5858# Constants: 5859rm="rm -f" 5860 5861# Global variables: 5862default_ofile=libtool 5863can_build_shared=yes 5864 5865# All known linkers require a `.a' archive for static linking (except MSVC, 5866# which needs '.lib'). 5867libext=a 5868ltmain="$ac_aux_dir/ltmain.sh" 5869ofile="$default_ofile" 5870with_gnu_ld="$lt_cv_prog_gnu_ld" 5871 5872if test -n "$ac_tool_prefix"; then 5873 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5874set dummy ${ac_tool_prefix}ar; ac_word=$2 5875echo "$as_me:$LINENO: checking for $ac_word" >&5 5876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5877if test "${ac_cv_prog_AR+set}" = set; then 5878 echo $ECHO_N "(cached) $ECHO_C" >&6 5879else 5880 if test -n "$AR"; then 5881 ac_cv_prog_AR="$AR" # Let the user override the test. 5882else 5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5884for as_dir in $PATH 5885do 5886 IFS=$as_save_IFS 5887 test -z "$as_dir" && as_dir=. 5888 for ac_exec_ext in '' $ac_executable_extensions; do 5889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5890 ac_cv_prog_AR="${ac_tool_prefix}ar" 5891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5892 break 2 5893 fi 5894done 5895done 5896 5897fi 5898fi 5899AR=$ac_cv_prog_AR 5900if test -n "$AR"; then 5901 echo "$as_me:$LINENO: result: $AR" >&5 5902echo "${ECHO_T}$AR" >&6 5903else 5904 echo "$as_me:$LINENO: result: no" >&5 5905echo "${ECHO_T}no" >&6 5906fi 5907 5908fi 5909if test -z "$ac_cv_prog_AR"; then 5910 ac_ct_AR=$AR 5911 # Extract the first word of "ar", so it can be a program name with args. 5912set dummy ar; ac_word=$2 5913echo "$as_me:$LINENO: checking for $ac_word" >&5 5914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5915if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5916 echo $ECHO_N "(cached) $ECHO_C" >&6 5917else 5918 if test -n "$ac_ct_AR"; then 5919 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5920else 5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5922for as_dir in $PATH 5923do 5924 IFS=$as_save_IFS 5925 test -z "$as_dir" && as_dir=. 5926 for ac_exec_ext in '' $ac_executable_extensions; do 5927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5928 ac_cv_prog_ac_ct_AR="ar" 5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5930 break 2 5931 fi 5932done 5933done 5934 5935 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5936fi 5937fi 5938ac_ct_AR=$ac_cv_prog_ac_ct_AR 5939if test -n "$ac_ct_AR"; then 5940 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5941echo "${ECHO_T}$ac_ct_AR" >&6 5942else 5943 echo "$as_me:$LINENO: result: no" >&5 5944echo "${ECHO_T}no" >&6 5945fi 5946 5947 AR=$ac_ct_AR 5948else 5949 AR="$ac_cv_prog_AR" 5950fi 5951 5952if test -n "$ac_tool_prefix"; then 5953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5954set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5955echo "$as_me:$LINENO: checking for $ac_word" >&5 5956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5957if test "${ac_cv_prog_RANLIB+set}" = set; then 5958 echo $ECHO_N "(cached) $ECHO_C" >&6 5959else 5960 if test -n "$RANLIB"; then 5961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5962else 5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5964for as_dir in $PATH 5965do 5966 IFS=$as_save_IFS 5967 test -z "$as_dir" && as_dir=. 5968 for ac_exec_ext in '' $ac_executable_extensions; do 5969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5972 break 2 5973 fi 5974done 5975done 5976 5977fi 5978fi 5979RANLIB=$ac_cv_prog_RANLIB 5980if test -n "$RANLIB"; then 5981 echo "$as_me:$LINENO: result: $RANLIB" >&5 5982echo "${ECHO_T}$RANLIB" >&6 5983else 5984 echo "$as_me:$LINENO: result: no" >&5 5985echo "${ECHO_T}no" >&6 5986fi 5987 5988fi 5989if test -z "$ac_cv_prog_RANLIB"; then 5990 ac_ct_RANLIB=$RANLIB 5991 # Extract the first word of "ranlib", so it can be a program name with args. 5992set dummy ranlib; ac_word=$2 5993echo "$as_me:$LINENO: checking for $ac_word" >&5 5994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5995if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5996 echo $ECHO_N "(cached) $ECHO_C" >&6 5997else 5998 if test -n "$ac_ct_RANLIB"; then 5999 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6000else 6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6002for as_dir in $PATH 6003do 6004 IFS=$as_save_IFS 6005 test -z "$as_dir" && as_dir=. 6006 for ac_exec_ext in '' $ac_executable_extensions; do 6007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6008 ac_cv_prog_ac_ct_RANLIB="ranlib" 6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6010 break 2 6011 fi 6012done 6013done 6014 6015 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6016fi 6017fi 6018ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6019if test -n "$ac_ct_RANLIB"; then 6020 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6021echo "${ECHO_T}$ac_ct_RANLIB" >&6 6022else 6023 echo "$as_me:$LINENO: result: no" >&5 6024echo "${ECHO_T}no" >&6 6025fi 6026 6027 RANLIB=$ac_ct_RANLIB 6028else 6029 RANLIB="$ac_cv_prog_RANLIB" 6030fi 6031 6032if test -n "$ac_tool_prefix"; then 6033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6034set dummy ${ac_tool_prefix}strip; ac_word=$2 6035echo "$as_me:$LINENO: checking for $ac_word" >&5 6036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6037if test "${ac_cv_prog_STRIP+set}" = set; then 6038 echo $ECHO_N "(cached) $ECHO_C" >&6 6039else 6040 if test -n "$STRIP"; then 6041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6042else 6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6044for as_dir in $PATH 6045do 6046 IFS=$as_save_IFS 6047 test -z "$as_dir" && as_dir=. 6048 for ac_exec_ext in '' $ac_executable_extensions; do 6049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6050 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6052 break 2 6053 fi 6054done 6055done 6056 6057fi 6058fi 6059STRIP=$ac_cv_prog_STRIP 6060if test -n "$STRIP"; then 6061 echo "$as_me:$LINENO: result: $STRIP" >&5 6062echo "${ECHO_T}$STRIP" >&6 6063else 6064 echo "$as_me:$LINENO: result: no" >&5 6065echo "${ECHO_T}no" >&6 6066fi 6067 6068fi 6069if test -z "$ac_cv_prog_STRIP"; then 6070 ac_ct_STRIP=$STRIP 6071 # Extract the first word of "strip", so it can be a program name with args. 6072set dummy strip; ac_word=$2 6073echo "$as_me:$LINENO: checking for $ac_word" >&5 6074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6075if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6076 echo $ECHO_N "(cached) $ECHO_C" >&6 6077else 6078 if test -n "$ac_ct_STRIP"; then 6079 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6080else 6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6082for as_dir in $PATH 6083do 6084 IFS=$as_save_IFS 6085 test -z "$as_dir" && as_dir=. 6086 for ac_exec_ext in '' $ac_executable_extensions; do 6087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6088 ac_cv_prog_ac_ct_STRIP="strip" 6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6090 break 2 6091 fi 6092done 6093done 6094 6095 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6096fi 6097fi 6098ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6099if test -n "$ac_ct_STRIP"; then 6100 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6101echo "${ECHO_T}$ac_ct_STRIP" >&6 6102else 6103 echo "$as_me:$LINENO: result: no" >&5 6104echo "${ECHO_T}no" >&6 6105fi 6106 6107 STRIP=$ac_ct_STRIP 6108else 6109 STRIP="$ac_cv_prog_STRIP" 6110fi 6111 6112 6113old_CC="$CC" 6114old_CFLAGS="$CFLAGS" 6115 6116# Set sane defaults for various variables 6117test -z "$AR" && AR=ar 6118test -z "$AR_FLAGS" && AR_FLAGS=cru 6119test -z "$AS" && AS=as 6120test -z "$CC" && CC=cc 6121test -z "$LTCC" && LTCC=$CC 6122test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6123test -z "$DLLTOOL" && DLLTOOL=dlltool 6124test -z "$LD" && LD=ld 6125test -z "$LN_S" && LN_S="ln -s" 6126test -z "$MAGIC_CMD" && MAGIC_CMD=file 6127test -z "$NM" && NM=nm 6128test -z "$SED" && SED=sed 6129test -z "$OBJDUMP" && OBJDUMP=objdump 6130test -z "$RANLIB" && RANLIB=: 6131test -z "$STRIP" && STRIP=: 6132test -z "$ac_objext" && ac_objext=o 6133 6134# Determine commands to create old-style static archives. 6135old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6136old_postinstall_cmds='chmod 644 $oldlib' 6137old_postuninstall_cmds= 6138 6139if test -n "$RANLIB"; then 6140 case $host_os in 6141 openbsd*) 6142 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6143 ;; 6144 *) 6145 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6146 ;; 6147 esac 6148 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6149fi 6150 6151for cc_temp in $compiler""; do 6152 case $cc_temp in 6153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6155 \-*) ;; 6156 *) break;; 6157 esac 6158done 6159cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6160 6161 6162# Only perform the check for file, if the check method requires it 6163case $deplibs_check_method in 6164file_magic*) 6165 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6166 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6167echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6168if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6169 echo $ECHO_N "(cached) $ECHO_C" >&6 6170else 6171 case $MAGIC_CMD in 6172[\\/*] | ?:[\\/]*) 6173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6174 ;; 6175*) 6176 lt_save_MAGIC_CMD="$MAGIC_CMD" 6177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6178 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6179 for ac_dir in $ac_dummy; do 6180 IFS="$lt_save_ifs" 6181 test -z "$ac_dir" && ac_dir=. 6182 if test -f $ac_dir/${ac_tool_prefix}file; then 6183 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6184 if test -n "$file_magic_test_file"; then 6185 case $deplibs_check_method in 6186 "file_magic "*) 6187 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6190 $EGREP "$file_magic_regex" > /dev/null; then 6191 : 6192 else 6193 cat <<EOF 1>&2 6194 6195*** Warning: the command libtool uses to detect shared libraries, 6196*** $file_magic_cmd, produces output that libtool cannot recognize. 6197*** The result is that libtool may fail to recognize shared libraries 6198*** as such. This will affect the creation of libtool libraries that 6199*** depend on shared libraries, but programs linked with such libtool 6200*** libraries will work regardless of this problem. Nevertheless, you 6201*** may want to report the problem to your system manager and/or to 6202*** bug-libtool@gnu.org 6203 6204EOF 6205 fi ;; 6206 esac 6207 fi 6208 break 6209 fi 6210 done 6211 IFS="$lt_save_ifs" 6212 MAGIC_CMD="$lt_save_MAGIC_CMD" 6213 ;; 6214esac 6215fi 6216 6217MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6218if test -n "$MAGIC_CMD"; then 6219 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6220echo "${ECHO_T}$MAGIC_CMD" >&6 6221else 6222 echo "$as_me:$LINENO: result: no" >&5 6223echo "${ECHO_T}no" >&6 6224fi 6225 6226if test -z "$lt_cv_path_MAGIC_CMD"; then 6227 if test -n "$ac_tool_prefix"; then 6228 echo "$as_me:$LINENO: checking for file" >&5 6229echo $ECHO_N "checking for file... $ECHO_C" >&6 6230if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6231 echo $ECHO_N "(cached) $ECHO_C" >&6 6232else 6233 case $MAGIC_CMD in 6234[\\/*] | ?:[\\/]*) 6235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6236 ;; 6237*) 6238 lt_save_MAGIC_CMD="$MAGIC_CMD" 6239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6241 for ac_dir in $ac_dummy; do 6242 IFS="$lt_save_ifs" 6243 test -z "$ac_dir" && ac_dir=. 6244 if test -f $ac_dir/file; then 6245 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6246 if test -n "$file_magic_test_file"; then 6247 case $deplibs_check_method in 6248 "file_magic "*) 6249 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6252 $EGREP "$file_magic_regex" > /dev/null; then 6253 : 6254 else 6255 cat <<EOF 1>&2 6256 6257*** Warning: the command libtool uses to detect shared libraries, 6258*** $file_magic_cmd, produces output that libtool cannot recognize. 6259*** The result is that libtool may fail to recognize shared libraries 6260*** as such. This will affect the creation of libtool libraries that 6261*** depend on shared libraries, but programs linked with such libtool 6262*** libraries will work regardless of this problem. Nevertheless, you 6263*** may want to report the problem to your system manager and/or to 6264*** bug-libtool@gnu.org 6265 6266EOF 6267 fi ;; 6268 esac 6269 fi 6270 break 6271 fi 6272 done 6273 IFS="$lt_save_ifs" 6274 MAGIC_CMD="$lt_save_MAGIC_CMD" 6275 ;; 6276esac 6277fi 6278 6279MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6280if test -n "$MAGIC_CMD"; then 6281 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6282echo "${ECHO_T}$MAGIC_CMD" >&6 6283else 6284 echo "$as_me:$LINENO: result: no" >&5 6285echo "${ECHO_T}no" >&6 6286fi 6287 6288 else 6289 MAGIC_CMD=: 6290 fi 6291fi 6292 6293 fi 6294 ;; 6295esac 6296 6297enable_dlopen=no 6298enable_win32_dll=no 6299 6300# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6301if test "${enable_libtool_lock+set}" = set; then 6302 enableval="$enable_libtool_lock" 6303 6304fi; 6305test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6306 6307 6308# Check whether --with-pic or --without-pic was given. 6309if test "${with_pic+set}" = set; then 6310 withval="$with_pic" 6311 pic_mode="$withval" 6312else 6313 pic_mode=default 6314fi; 6315test -z "$pic_mode" && pic_mode=default 6316 6317# Use C for the default configuration in the libtool script 6318tagname= 6319lt_save_CC="$CC" 6320ac_ext=c 6321ac_cpp='$CPP $CPPFLAGS' 6322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6324ac_compiler_gnu=$ac_cv_c_compiler_gnu 6325 6326 6327# Source file extension for C test sources. 6328ac_ext=c 6329 6330# Object file extension for compiled C test sources. 6331objext=o 6332objext=$objext 6333 6334# Code to be used in simple compile tests 6335lt_simple_compile_test_code="int some_variable = 0;\n" 6336 6337# Code to be used in simple link tests 6338lt_simple_link_test_code='int main(){return(0);}\n' 6339 6340 6341# If no C compiler was specified, use CC. 6342LTCC=${LTCC-"$CC"} 6343 6344# If no C compiler flags were specified, use CFLAGS. 6345LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6346 6347# Allow CC to be a program name with arguments. 6348compiler=$CC 6349 6350 6351# save warnings/boilerplate of simple test code 6352ac_outfile=conftest.$ac_objext 6353printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6354eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6355_lt_compiler_boilerplate=`cat conftest.err` 6356$rm conftest* 6357 6358ac_outfile=conftest.$ac_objext 6359printf "$lt_simple_link_test_code" >conftest.$ac_ext 6360eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6361_lt_linker_boilerplate=`cat conftest.err` 6362$rm conftest* 6363 6364 6365 6366lt_prog_compiler_no_builtin_flag= 6367 6368if test "$GCC" = yes; then 6369 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6370 6371 6372echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6373echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6374if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6375 echo $ECHO_N "(cached) $ECHO_C" >&6 6376else 6377 lt_cv_prog_compiler_rtti_exceptions=no 6378 ac_outfile=conftest.$ac_objext 6379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6380 lt_compiler_flag="-fno-rtti -fno-exceptions" 6381 # Insert the option either (1) after the last *FLAGS variable, or 6382 # (2) before a word containing "conftest.", or (3) at the end. 6383 # Note that $ac_compile itself does not contain backslashes and begins 6384 # with a dollar sign (not a hyphen), so the echo should work correctly. 6385 # The option is referenced via a variable to avoid confusing sed. 6386 lt_compile=`echo "$ac_compile" | $SED \ 6387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6389 -e 's:$: $lt_compiler_flag:'` 6390 (eval echo "\"\$as_me:6390: $lt_compile\"" >&5) 6391 (eval "$lt_compile" 2>conftest.err) 6392 ac_status=$? 6393 cat conftest.err >&5 6394 echo "$as_me:6394: \$? = $ac_status" >&5 6395 if (exit $ac_status) && test -s "$ac_outfile"; then 6396 # The compiler can only warn and ignore the option if not recognized 6397 # So say no if there are warnings other than the usual output. 6398 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6401 lt_cv_prog_compiler_rtti_exceptions=yes 6402 fi 6403 fi 6404 $rm conftest* 6405 6406fi 6407echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6408echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6409 6410if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6411 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6412else 6413 : 6414fi 6415 6416fi 6417 6418lt_prog_compiler_wl= 6419lt_prog_compiler_pic= 6420lt_prog_compiler_static= 6421 6422echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6423echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6424 6425 if test "$GCC" = yes; then 6426 lt_prog_compiler_wl='-Wl,' 6427 lt_prog_compiler_static='-static' 6428 6429 case $host_os in 6430 aix*) 6431 # All AIX code is PIC. 6432 if test "$host_cpu" = ia64; then 6433 # AIX 5 now supports IA64 processor 6434 lt_prog_compiler_static='-Bstatic' 6435 fi 6436 ;; 6437 6438 amigaos*) 6439 # FIXME: we need at least 68020 code to build shared libraries, but 6440 # adding the `-m68020' flag to GCC prevents building anything better, 6441 # like `-m68040'. 6442 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6443 ;; 6444 6445 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6446 # PIC is the default for these OSes. 6447 ;; 6448 6449 mingw* | pw32* | os2*) 6450 # This hack is so that the source file can tell whether it is being 6451 # built for inclusion in a dll (and should export symbols for example). 6452 lt_prog_compiler_pic='-DDLL_EXPORT' 6453 ;; 6454 6455 darwin* | rhapsody*) 6456 # PIC is the default on this platform 6457 # Common symbols not allowed in MH_DYLIB files 6458 lt_prog_compiler_pic='-fno-common' 6459 ;; 6460 6461 interix3*) 6462 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6463 # Instead, we relocate shared libraries at runtime. 6464 ;; 6465 6466 msdosdjgpp*) 6467 # Just because we use GCC doesn't mean we suddenly get shared libraries 6468 # on systems that don't support them. 6469 lt_prog_compiler_can_build_shared=no 6470 enable_shared=no 6471 ;; 6472 6473 sysv4*MP*) 6474 if test -d /usr/nec; then 6475 lt_prog_compiler_pic=-Kconform_pic 6476 fi 6477 ;; 6478 6479 hpux*) 6480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6481 # not for PA HP-UX. 6482 case $host_cpu in 6483 hppa*64*|ia64*) 6484 # +Z the default 6485 ;; 6486 *) 6487 lt_prog_compiler_pic='-fPIC' 6488 ;; 6489 esac 6490 ;; 6491 6492 *) 6493 lt_prog_compiler_pic='-fPIC' 6494 ;; 6495 esac 6496 else 6497 # PORTME Check for flag to pass linker flags through the system compiler. 6498 case $host_os in 6499 aix*) 6500 lt_prog_compiler_wl='-Wl,' 6501 if test "$host_cpu" = ia64; then 6502 # AIX 5 now supports IA64 processor 6503 lt_prog_compiler_static='-Bstatic' 6504 else 6505 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6506 fi 6507 ;; 6508 darwin*) 6509 # PIC is the default on this platform 6510 # Common symbols not allowed in MH_DYLIB files 6511 case $cc_basename in 6512 xlc*) 6513 lt_prog_compiler_pic='-qnocommon' 6514 lt_prog_compiler_wl='-Wl,' 6515 ;; 6516 esac 6517 ;; 6518 6519 mingw* | pw32* | os2*) 6520 # This hack is so that the source file can tell whether it is being 6521 # built for inclusion in a dll (and should export symbols for example). 6522 lt_prog_compiler_pic='-DDLL_EXPORT' 6523 ;; 6524 6525 hpux9* | hpux10* | hpux11*) 6526 lt_prog_compiler_wl='-Wl,' 6527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6528 # not for PA HP-UX. 6529 case $host_cpu in 6530 hppa*64*|ia64*) 6531 # +Z the default 6532 ;; 6533 *) 6534 lt_prog_compiler_pic='+Z' 6535 ;; 6536 esac 6537 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6538 lt_prog_compiler_static='${wl}-a ${wl}archive' 6539 ;; 6540 6541 irix5* | irix6* | nonstopux*) 6542 lt_prog_compiler_wl='-Wl,' 6543 # PIC (with -KPIC) is the default. 6544 lt_prog_compiler_static='-non_shared' 6545 ;; 6546 6547 newsos6) 6548 lt_prog_compiler_pic='-KPIC' 6549 lt_prog_compiler_static='-Bstatic' 6550 ;; 6551 6552 linux*) 6553 case $cc_basename in 6554 icc* | ecc*) 6555 lt_prog_compiler_wl='-Wl,' 6556 lt_prog_compiler_pic='-KPIC' 6557 lt_prog_compiler_static='-static' 6558 ;; 6559 pgcc* | pgf77* | pgf90* | pgf95*) 6560 # Portland Group compilers (*not* the Pentium gcc compiler, 6561 # which looks to be a dead project) 6562 lt_prog_compiler_wl='-Wl,' 6563 lt_prog_compiler_pic='-fpic' 6564 lt_prog_compiler_static='-Bstatic' 6565 ;; 6566 ccc*) 6567 lt_prog_compiler_wl='-Wl,' 6568 # All Alpha code is PIC. 6569 lt_prog_compiler_static='-non_shared' 6570 ;; 6571 esac 6572 ;; 6573 6574 osf3* | osf4* | osf5*) 6575 lt_prog_compiler_wl='-Wl,' 6576 # All OSF/1 code is PIC. 6577 lt_prog_compiler_static='-non_shared' 6578 ;; 6579 6580 solaris*) 6581 lt_prog_compiler_pic='-KPIC' 6582 lt_prog_compiler_static='-Bstatic' 6583 case $cc_basename in 6584 f77* | f90* | f95*) 6585 lt_prog_compiler_wl='-Qoption ld ';; 6586 *) 6587 lt_prog_compiler_wl='-Wl,';; 6588 esac 6589 ;; 6590 6591 sunos4*) 6592 lt_prog_compiler_wl='-Qoption ld ' 6593 lt_prog_compiler_pic='-PIC' 6594 lt_prog_compiler_static='-Bstatic' 6595 ;; 6596 6597 sysv4 | sysv4.2uw2* | sysv4.3*) 6598 lt_prog_compiler_wl='-Wl,' 6599 lt_prog_compiler_pic='-KPIC' 6600 lt_prog_compiler_static='-Bstatic' 6601 ;; 6602 6603 sysv4*MP*) 6604 if test -d /usr/nec ;then 6605 lt_prog_compiler_pic='-Kconform_pic' 6606 lt_prog_compiler_static='-Bstatic' 6607 fi 6608 ;; 6609 6610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6611 lt_prog_compiler_wl='-Wl,' 6612 lt_prog_compiler_pic='-KPIC' 6613 lt_prog_compiler_static='-Bstatic' 6614 ;; 6615 6616 unicos*) 6617 lt_prog_compiler_wl='-Wl,' 6618 lt_prog_compiler_can_build_shared=no 6619 ;; 6620 6621 uts4*) 6622 lt_prog_compiler_pic='-pic' 6623 lt_prog_compiler_static='-Bstatic' 6624 ;; 6625 6626 *) 6627 lt_prog_compiler_can_build_shared=no 6628 ;; 6629 esac 6630 fi 6631 6632echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6633echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6634 6635# 6636# Check to make sure the PIC flag actually works. 6637# 6638if test -n "$lt_prog_compiler_pic"; then 6639 6640echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6641echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6642if test "${lt_prog_compiler_pic_works+set}" = set; then 6643 echo $ECHO_N "(cached) $ECHO_C" >&6 6644else 6645 lt_prog_compiler_pic_works=no 6646 ac_outfile=conftest.$ac_objext 6647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6649 # Insert the option either (1) after the last *FLAGS variable, or 6650 # (2) before a word containing "conftest.", or (3) at the end. 6651 # Note that $ac_compile itself does not contain backslashes and begins 6652 # with a dollar sign (not a hyphen), so the echo should work correctly. 6653 # The option is referenced via a variable to avoid confusing sed. 6654 lt_compile=`echo "$ac_compile" | $SED \ 6655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6657 -e 's:$: $lt_compiler_flag:'` 6658 (eval echo "\"\$as_me:6658: $lt_compile\"" >&5) 6659 (eval "$lt_compile" 2>conftest.err) 6660 ac_status=$? 6661 cat conftest.err >&5 6662 echo "$as_me:6662: \$? = $ac_status" >&5 6663 if (exit $ac_status) && test -s "$ac_outfile"; then 6664 # The compiler can only warn and ignore the option if not recognized 6665 # So say no if there are warnings other than the usual output. 6666 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6669 lt_prog_compiler_pic_works=yes 6670 fi 6671 fi 6672 $rm conftest* 6673 6674fi 6675echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6676echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6677 6678if test x"$lt_prog_compiler_pic_works" = xyes; then 6679 case $lt_prog_compiler_pic in 6680 "" | " "*) ;; 6681 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6682 esac 6683else 6684 lt_prog_compiler_pic= 6685 lt_prog_compiler_can_build_shared=no 6686fi 6687 6688fi 6689case $host_os in 6690 # For platforms which do not support PIC, -DPIC is meaningless: 6691 *djgpp*) 6692 lt_prog_compiler_pic= 6693 ;; 6694 *) 6695 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6696 ;; 6697esac 6698 6699# 6700# Check to make sure the static flag actually works. 6701# 6702wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6703echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6704echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6705if test "${lt_prog_compiler_static_works+set}" = set; then 6706 echo $ECHO_N "(cached) $ECHO_C" >&6 6707else 6708 lt_prog_compiler_static_works=no 6709 save_LDFLAGS="$LDFLAGS" 6710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6711 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6713 # The linker can only warn and ignore the option if not recognized 6714 # So say no if there are warnings 6715 if test -s conftest.err; then 6716 # Append any errors to the config.log. 6717 cat conftest.err 1>&5 6718 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6720 if diff conftest.exp conftest.er2 >/dev/null; then 6721 lt_prog_compiler_static_works=yes 6722 fi 6723 else 6724 lt_prog_compiler_static_works=yes 6725 fi 6726 fi 6727 $rm conftest* 6728 LDFLAGS="$save_LDFLAGS" 6729 6730fi 6731echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6732echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6733 6734if test x"$lt_prog_compiler_static_works" = xyes; then 6735 : 6736else 6737 lt_prog_compiler_static= 6738fi 6739 6740 6741echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6742echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6743if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6744 echo $ECHO_N "(cached) $ECHO_C" >&6 6745else 6746 lt_cv_prog_compiler_c_o=no 6747 $rm -r conftest 2>/dev/null 6748 mkdir conftest 6749 cd conftest 6750 mkdir out 6751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6752 6753 lt_compiler_flag="-o out/conftest2.$ac_objext" 6754 # Insert the option either (1) after the last *FLAGS variable, or 6755 # (2) before a word containing "conftest.", or (3) at the end. 6756 # Note that $ac_compile itself does not contain backslashes and begins 6757 # with a dollar sign (not a hyphen), so the echo should work correctly. 6758 lt_compile=`echo "$ac_compile" | $SED \ 6759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6761 -e 's:$: $lt_compiler_flag:'` 6762 (eval echo "\"\$as_me:6762: $lt_compile\"" >&5) 6763 (eval "$lt_compile" 2>out/conftest.err) 6764 ac_status=$? 6765 cat out/conftest.err >&5 6766 echo "$as_me:6766: \$? = $ac_status" >&5 6767 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6768 then 6769 # The compiler can only warn and ignore the option if not recognized 6770 # So say no if there are warnings 6771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6774 lt_cv_prog_compiler_c_o=yes 6775 fi 6776 fi 6777 chmod u+w . 2>&5 6778 $rm conftest* 6779 # SGI C++ compiler will create directory out/ii_files/ for 6780 # template instantiation 6781 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6782 $rm out/* && rmdir out 6783 cd .. 6784 rmdir conftest 6785 $rm conftest* 6786 6787fi 6788echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6789echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6790 6791 6792hard_links="nottested" 6793if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6794 # do not overwrite the value of need_locks provided by the user 6795 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6796echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6797 hard_links=yes 6798 $rm conftest* 6799 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6800 touch conftest.a 6801 ln conftest.a conftest.b 2>&5 || hard_links=no 6802 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6803 echo "$as_me:$LINENO: result: $hard_links" >&5 6804echo "${ECHO_T}$hard_links" >&6 6805 if test "$hard_links" = no; then 6806 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6807echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6808 need_locks=warn 6809 fi 6810else 6811 need_locks=no 6812fi 6813 6814echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6815echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6816 6817 runpath_var= 6818 allow_undefined_flag= 6819 enable_shared_with_static_runtimes=no 6820 archive_cmds= 6821 archive_expsym_cmds= 6822 old_archive_From_new_cmds= 6823 old_archive_from_expsyms_cmds= 6824 export_dynamic_flag_spec= 6825 whole_archive_flag_spec= 6826 thread_safe_flag_spec= 6827 hardcode_libdir_flag_spec= 6828 hardcode_libdir_flag_spec_ld= 6829 hardcode_libdir_separator= 6830 hardcode_direct=no 6831 hardcode_minus_L=no 6832 hardcode_shlibpath_var=unsupported 6833 link_all_deplibs=unknown 6834 hardcode_automatic=no 6835 module_cmds= 6836 module_expsym_cmds= 6837 always_export_symbols=no 6838 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6839 # include_expsyms should be a list of space-separated symbols to be *always* 6840 # included in the symbol list 6841 include_expsyms= 6842 # exclude_expsyms can be an extended regexp of symbols to exclude 6843 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6845 # as well as any symbol that contains `d'. 6846 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6848 # platforms (ab)use it in PIC code, but their linkers get confused if 6849 # the symbol is explicitly referenced. Since portable code cannot 6850 # rely on this symbol name, it's probably fine to never include it in 6851 # preloaded symbol tables. 6852 extract_expsyms_cmds= 6853 # Just being paranoid about ensuring that cc_basename is set. 6854 for cc_temp in $compiler""; do 6855 case $cc_temp in 6856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6858 \-*) ;; 6859 *) break;; 6860 esac 6861done 6862cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6863 6864 case $host_os in 6865 cygwin* | mingw* | pw32*) 6866 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6867 # When not using gcc, we currently assume that we are using 6868 # Microsoft Visual C++. 6869 if test "$GCC" != yes; then 6870 with_gnu_ld=no 6871 fi 6872 ;; 6873 interix*) 6874 # we just hope/assume this is gcc and not c89 (= MSVC++) 6875 with_gnu_ld=yes 6876 ;; 6877 openbsd*) 6878 with_gnu_ld=no 6879 ;; 6880 esac 6881 6882 ld_shlibs=yes 6883 if test "$with_gnu_ld" = yes; then 6884 # If archive_cmds runs LD, not CC, wlarc should be empty 6885 wlarc='${wl}' 6886 6887 # Set some defaults for GNU ld with shared library support. These 6888 # are reset later if shared libraries are not supported. Putting them 6889 # here allows them to be overridden if necessary. 6890 runpath_var=LD_RUN_PATH 6891 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6892 export_dynamic_flag_spec='${wl}--export-dynamic' 6893 # ancient GNU ld didn't support --whole-archive et. al. 6894 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6895 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6896 else 6897 whole_archive_flag_spec= 6898 fi 6899 supports_anon_versioning=no 6900 case `$LD -v 2>/dev/null` in 6901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6904 *\ 2.11.*) ;; # other 2.11 versions 6905 *) supports_anon_versioning=yes ;; 6906 esac 6907 6908 # See if GNU ld supports shared libraries. 6909 case $host_os in 6910 aix3* | aix4* | aix5*) 6911 # On AIX/PPC, the GNU linker is very broken 6912 if test "$host_cpu" != ia64; then 6913 ld_shlibs=no 6914 cat <<EOF 1>&2 6915 6916*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6917*** to be unable to reliably create shared libraries on AIX. 6918*** Therefore, libtool is disabling shared libraries support. If you 6919*** really care for shared libraries, you may want to modify your PATH 6920*** so that a non-GNU linker is found, and then restart. 6921 6922EOF 6923 fi 6924 ;; 6925 6926 amigaos*) 6927 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)' 6928 hardcode_libdir_flag_spec='-L$libdir' 6929 hardcode_minus_L=yes 6930 6931 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6932 # that the semantics of dynamic libraries on AmigaOS, at least up 6933 # to version 4, is to share data among multiple programs linked 6934 # with the same dynamic library. Since this doesn't match the 6935 # behavior of shared libraries on other platforms, we can't use 6936 # them. 6937 ld_shlibs=no 6938 ;; 6939 6940 beos*) 6941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6942 allow_undefined_flag=unsupported 6943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6944 # support --undefined. This deserves some investigation. FIXME 6945 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6946 else 6947 ld_shlibs=no 6948 fi 6949 ;; 6950 6951 cygwin* | mingw* | pw32*) 6952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6953 # as there is no search path for DLLs. 6954 hardcode_libdir_flag_spec='-L$libdir' 6955 allow_undefined_flag=unsupported 6956 always_export_symbols=no 6957 enable_shared_with_static_runtimes=yes 6958 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6959 6960 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6962 # If the export-symbols file already is a .def file (1st line 6963 # is EXPORTS), use it as is; otherwise, prepend... 6964 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6965 cp $export_symbols $output_objdir/$soname.def; 6966 else 6967 echo EXPORTS > $output_objdir/$soname.def; 6968 cat $export_symbols >> $output_objdir/$soname.def; 6969 fi~ 6970 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6971 else 6972 ld_shlibs=no 6973 fi 6974 ;; 6975 6976 interix3*) 6977 hardcode_direct=no 6978 hardcode_shlibpath_var=no 6979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6980 export_dynamic_flag_spec='${wl}-E' 6981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6982 # Instead, shared libraries are loaded at an image base (0x10000000 by 6983 # default) and relocated if they conflict, which is a slow very memory 6984 # consuming and fragmenting process. To avoid this, we pick a random, 6985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6986 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6988 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' 6989 ;; 6990 6991 linux*) 6992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6993 tmp_addflag= 6994 case $cc_basename,$host_cpu in 6995 pgcc*) # Portland Group C compiler 6996 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' 6997 tmp_addflag=' $pic_flag' 6998 ;; 6999 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7000 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' 7001 tmp_addflag=' $pic_flag -Mnomain' ;; 7002 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7003 tmp_addflag=' -i_dynamic' ;; 7004 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7005 tmp_addflag=' -i_dynamic -nofor_main' ;; 7006 ifc* | ifort*) # Intel Fortran compiler 7007 tmp_addflag=' -nofor_main' ;; 7008 esac 7009 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7010 7011 if test $supports_anon_versioning = yes; then 7012 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7014 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7015 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7016 fi 7017 else 7018 ld_shlibs=no 7019 fi 7020 ;; 7021 7022 netbsd*) 7023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7024 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7025 wlarc= 7026 else 7027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7029 fi 7030 ;; 7031 7032 solaris*) 7033 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7034 ld_shlibs=no 7035 cat <<EOF 1>&2 7036 7037*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7038*** create shared libraries on Solaris systems. Therefore, libtool 7039*** is disabling shared libraries support. We urge you to upgrade GNU 7040*** binutils to release 2.9.1 or newer. Another option is to modify 7041*** your PATH or compiler configuration so that the native linker is 7042*** used, and then restart. 7043 7044EOF 7045 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7048 else 7049 ld_shlibs=no 7050 fi 7051 ;; 7052 7053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7054 case `$LD -v 2>&1` in 7055 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7056 ld_shlibs=no 7057 cat <<_LT_EOF 1>&2 7058 7059*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7060*** reliably create shared libraries on SCO systems. Therefore, libtool 7061*** is disabling shared libraries support. We urge you to upgrade GNU 7062*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7063*** your PATH or compiler configuration so that the native linker is 7064*** used, and then restart. 7065 7066_LT_EOF 7067 ;; 7068 *) 7069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7070 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7072 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7073 else 7074 ld_shlibs=no 7075 fi 7076 ;; 7077 esac 7078 ;; 7079 7080 sunos4*) 7081 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7082 wlarc= 7083 hardcode_direct=yes 7084 hardcode_shlibpath_var=no 7085 ;; 7086 7087 *) 7088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7091 else 7092 ld_shlibs=no 7093 fi 7094 ;; 7095 esac 7096 7097 if test "$ld_shlibs" = no; then 7098 runpath_var= 7099 hardcode_libdir_flag_spec= 7100 export_dynamic_flag_spec= 7101 whole_archive_flag_spec= 7102 fi 7103 else 7104 # PORTME fill in a description of your system's linker (not GNU ld) 7105 case $host_os in 7106 aix3*) 7107 allow_undefined_flag=unsupported 7108 always_export_symbols=yes 7109 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' 7110 # Note: this linker hardcodes the directories in LIBPATH if there 7111 # are no directories specified by -L. 7112 hardcode_minus_L=yes 7113 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7114 # Neither direct hardcoding nor static linking is supported with a 7115 # broken collect2. 7116 hardcode_direct=unsupported 7117 fi 7118 ;; 7119 7120 aix4* | aix5*) 7121 if test "$host_cpu" = ia64; then 7122 # On IA64, the linker does run time linking by default, so we don't 7123 # have to do anything special. 7124 aix_use_runtimelinking=no 7125 exp_sym_flag='-Bexport' 7126 no_entry_flag="" 7127 else 7128 # If we're using GNU nm, then we don't want the "-C" option. 7129 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7130 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7131 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' 7132 else 7133 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' 7134 fi 7135 aix_use_runtimelinking=no 7136 7137 # Test if we are trying to use run time linking or normal 7138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7139 # need to do runtime linking. 7140 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7141 for ld_flag in $LDFLAGS; do 7142 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7143 aix_use_runtimelinking=yes 7144 break 7145 fi 7146 done 7147 ;; 7148 esac 7149 7150 exp_sym_flag='-bexport' 7151 no_entry_flag='-bnoentry' 7152 fi 7153 7154 # When large executables or shared objects are built, AIX ld can 7155 # have problems creating the table of contents. If linking a library 7156 # or program results in "error TOC overflow" add -mminimal-toc to 7157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7159 7160 archive_cmds='' 7161 hardcode_direct=yes 7162 hardcode_libdir_separator=':' 7163 link_all_deplibs=yes 7164 7165 if test "$GCC" = yes; then 7166 case $host_os in aix4.[012]|aix4.[012].*) 7167 # We only want to do this on AIX 4.2 and lower, the check 7168 # below for broken collect2 doesn't work under 4.3+ 7169 collect2name=`${CC} -print-prog-name=collect2` 7170 if test -f "$collect2name" && \ 7171 strings "$collect2name" | grep resolve_lib_name >/dev/null 7172 then 7173 # We have reworked collect2 7174 hardcode_direct=yes 7175 else 7176 # We have old collect2 7177 hardcode_direct=unsupported 7178 # It fails to find uninstalled libraries when the uninstalled 7179 # path is not listed in the libpath. Setting hardcode_minus_L 7180 # to unsupported forces relinking 7181 hardcode_minus_L=yes 7182 hardcode_libdir_flag_spec='-L$libdir' 7183 hardcode_libdir_separator= 7184 fi 7185 ;; 7186 esac 7187 shared_flag='-shared' 7188 if test "$aix_use_runtimelinking" = yes; then 7189 shared_flag="$shared_flag "'${wl}-G' 7190 fi 7191 else 7192 # not using gcc 7193 if test "$host_cpu" = ia64; then 7194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7195 # chokes on -Wl,-G. The following line is correct: 7196 shared_flag='-G' 7197 else 7198 if test "$aix_use_runtimelinking" = yes; then 7199 shared_flag='${wl}-G' 7200 else 7201 shared_flag='${wl}-bM:SRE' 7202 fi 7203 fi 7204 fi 7205 7206 # It seems that -bexpall does not export symbols beginning with 7207 # underscore (_), so it is better to generate a list of symbols to export. 7208 always_export_symbols=yes 7209 if test "$aix_use_runtimelinking" = yes; then 7210 # Warning - without using the other runtime loading flags (-brtl), 7211 # -berok will link without error, but may produce a broken library. 7212 allow_undefined_flag='-berok' 7213 # Determine the default libpath from the value encoded in an empty executable. 7214 cat >conftest.$ac_ext <<_ACEOF 7215/* confdefs.h. */ 7216_ACEOF 7217cat confdefs.h >>conftest.$ac_ext 7218cat >>conftest.$ac_ext <<_ACEOF 7219/* end confdefs.h. */ 7220 7221int 7222main () 7223{ 7224 7225 ; 7226 return 0; 7227} 7228_ACEOF 7229rm -f conftest.$ac_objext conftest$ac_exeext 7230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7231 (eval $ac_link) 2>conftest.er1 7232 ac_status=$? 7233 grep -v '^ *+' conftest.er1 >conftest.err 7234 rm -f conftest.er1 7235 cat conftest.err >&5 7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7237 (exit $ac_status); } && 7238 { ac_try='test -z "$ac_c_werror_flag" 7239 || test ! -s conftest.err' 7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7241 (eval $ac_try) 2>&5 7242 ac_status=$? 7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7244 (exit $ac_status); }; } && 7245 { ac_try='test -s conftest$ac_exeext' 7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7247 (eval $ac_try) 2>&5 7248 ac_status=$? 7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7250 (exit $ac_status); }; }; then 7251 7252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7253}'` 7254# Check for a 64-bit object if we didn't find anything. 7255if 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; } 7256}'`; fi 7257else 7258 echo "$as_me: failed program was:" >&5 7259sed 's/^/| /' conftest.$ac_ext >&5 7260 7261fi 7262rm -f conftest.err conftest.$ac_objext \ 7263 conftest$ac_exeext conftest.$ac_ext 7264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7265 7266 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7267 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" 7268 else 7269 if test "$host_cpu" = ia64; then 7270 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7271 allow_undefined_flag="-z nodefs" 7272 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" 7273 else 7274 # Determine the default libpath from the value encoded in an empty executable. 7275 cat >conftest.$ac_ext <<_ACEOF 7276/* confdefs.h. */ 7277_ACEOF 7278cat confdefs.h >>conftest.$ac_ext 7279cat >>conftest.$ac_ext <<_ACEOF 7280/* end confdefs.h. */ 7281 7282int 7283main () 7284{ 7285 7286 ; 7287 return 0; 7288} 7289_ACEOF 7290rm -f conftest.$ac_objext conftest$ac_exeext 7291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7292 (eval $ac_link) 2>conftest.er1 7293 ac_status=$? 7294 grep -v '^ *+' conftest.er1 >conftest.err 7295 rm -f conftest.er1 7296 cat conftest.err >&5 7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7298 (exit $ac_status); } && 7299 { ac_try='test -z "$ac_c_werror_flag" 7300 || test ! -s conftest.err' 7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7302 (eval $ac_try) 2>&5 7303 ac_status=$? 7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7305 (exit $ac_status); }; } && 7306 { ac_try='test -s conftest$ac_exeext' 7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7308 (eval $ac_try) 2>&5 7309 ac_status=$? 7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7311 (exit $ac_status); }; }; then 7312 7313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7314}'` 7315# Check for a 64-bit object if we didn't find anything. 7316if 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; } 7317}'`; fi 7318else 7319 echo "$as_me: failed program was:" >&5 7320sed 's/^/| /' conftest.$ac_ext >&5 7321 7322fi 7323rm -f conftest.err conftest.$ac_objext \ 7324 conftest$ac_exeext conftest.$ac_ext 7325if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7326 7327 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7328 # Warning - without using the other run time loading flags, 7329 # -berok will link without error, but may produce a broken library. 7330 no_undefined_flag=' ${wl}-bernotok' 7331 allow_undefined_flag=' ${wl}-berok' 7332 # Exported symbols can be pulled into shared objects from archives 7333 whole_archive_flag_spec='$convenience' 7334 archive_cmds_need_lc=yes 7335 # This is similar to how AIX traditionally builds its shared libraries. 7336 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' 7337 fi 7338 fi 7339 ;; 7340 7341 amigaos*) 7342 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)' 7343 hardcode_libdir_flag_spec='-L$libdir' 7344 hardcode_minus_L=yes 7345 # see comment about different semantics on the GNU ld section 7346 ld_shlibs=no 7347 ;; 7348 7349 bsdi[45]*) 7350 export_dynamic_flag_spec=-rdynamic 7351 ;; 7352 7353 cygwin* | mingw* | pw32*) 7354 # When not using gcc, we currently assume that we are using 7355 # Microsoft Visual C++. 7356 # hardcode_libdir_flag_spec is actually meaningless, as there is 7357 # no search path for DLLs. 7358 hardcode_libdir_flag_spec=' ' 7359 allow_undefined_flag=unsupported 7360 # Tell ltmain to make .lib files, not .a files. 7361 libext=lib 7362 # Tell ltmain to make .dll files, not .so files. 7363 shrext_cmds=".dll" 7364 # FIXME: Setting linknames here is a bad hack. 7365 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7366 # The linker will automatically build a .lib file if we build a DLL. 7367 old_archive_From_new_cmds='true' 7368 # FIXME: Should let the user specify the lib program. 7369 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7370 fix_srcfile_path='`cygpath -w "$srcfile"`' 7371 enable_shared_with_static_runtimes=yes 7372 ;; 7373 7374 darwin* | rhapsody*) 7375 case $host_os in 7376 rhapsody* | darwin1.[012]) 7377 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7378 ;; 7379 *) # Darwin 1.3 on 7380 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7381 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7382 else 7383 case ${MACOSX_DEPLOYMENT_TARGET} in 7384 10.[012]) 7385 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7386 ;; 7387 10.*) 7388 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7389 ;; 7390 esac 7391 fi 7392 ;; 7393 esac 7394 archive_cmds_need_lc=no 7395 hardcode_direct=no 7396 hardcode_automatic=yes 7397 hardcode_shlibpath_var=unsupported 7398 whole_archive_flag_spec='' 7399 link_all_deplibs=yes 7400 if test "$GCC" = yes ; then 7401 output_verbose_link_cmd='echo' 7402 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7403 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7405 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}' 7406 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}' 7407 else 7408 case $cc_basename in 7409 xlc*) 7410 output_verbose_link_cmd='echo' 7411 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7412 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7414 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}' 7415 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}' 7416 ;; 7417 *) 7418 ld_shlibs=no 7419 ;; 7420 esac 7421 fi 7422 ;; 7423 7424 dgux*) 7425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7426 hardcode_libdir_flag_spec='-L$libdir' 7427 hardcode_shlibpath_var=no 7428 ;; 7429 7430 freebsd1*) 7431 ld_shlibs=no 7432 ;; 7433 7434 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7435 # support. Future versions do this automatically, but an explicit c++rt0.o 7436 # does not break anything, and helps significantly (at the cost of a little 7437 # extra space). 7438 freebsd2.2*) 7439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7440 hardcode_libdir_flag_spec='-R$libdir' 7441 hardcode_direct=yes 7442 hardcode_shlibpath_var=no 7443 ;; 7444 7445 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7446 freebsd2*) 7447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7448 hardcode_direct=yes 7449 hardcode_minus_L=yes 7450 hardcode_shlibpath_var=no 7451 ;; 7452 7453 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7454 freebsd* | kfreebsd*-gnu | dragonfly*) 7455 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7456 hardcode_libdir_flag_spec='-R$libdir' 7457 hardcode_direct=yes 7458 hardcode_shlibpath_var=no 7459 ;; 7460 7461 hpux9*) 7462 if test "$GCC" = yes; then 7463 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' 7464 else 7465 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' 7466 fi 7467 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7468 hardcode_libdir_separator=: 7469 hardcode_direct=yes 7470 7471 # hardcode_minus_L: Not really in the search PATH, 7472 # but as the default location of the library. 7473 hardcode_minus_L=yes 7474 export_dynamic_flag_spec='${wl}-E' 7475 ;; 7476 7477 hpux10*) 7478 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7479 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7480 else 7481 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7482 fi 7483 if test "$with_gnu_ld" = no; then 7484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7485 hardcode_libdir_separator=: 7486 7487 hardcode_direct=yes 7488 export_dynamic_flag_spec='${wl}-E' 7489 7490 # hardcode_minus_L: Not really in the search PATH, 7491 # but as the default location of the library. 7492 hardcode_minus_L=yes 7493 fi 7494 ;; 7495 7496 hpux11*) 7497 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7498 case $host_cpu in 7499 hppa*64*) 7500 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7501 ;; 7502 ia64*) 7503 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7504 ;; 7505 *) 7506 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7507 ;; 7508 esac 7509 else 7510 case $host_cpu in 7511 hppa*64*) 7512 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7513 ;; 7514 ia64*) 7515 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7516 ;; 7517 *) 7518 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7519 ;; 7520 esac 7521 fi 7522 if test "$with_gnu_ld" = no; then 7523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7524 hardcode_libdir_separator=: 7525 7526 case $host_cpu in 7527 hppa*64*|ia64*) 7528 hardcode_libdir_flag_spec_ld='+b $libdir' 7529 hardcode_direct=no 7530 hardcode_shlibpath_var=no 7531 ;; 7532 *) 7533 hardcode_direct=yes 7534 export_dynamic_flag_spec='${wl}-E' 7535 7536 # hardcode_minus_L: Not really in the search PATH, 7537 # but as the default location of the library. 7538 hardcode_minus_L=yes 7539 ;; 7540 esac 7541 fi 7542 ;; 7543 7544 irix5* | irix6* | nonstopux*) 7545 if test "$GCC" = yes; then 7546 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' 7547 else 7548 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' 7549 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7550 fi 7551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7552 hardcode_libdir_separator=: 7553 link_all_deplibs=yes 7554 ;; 7555 7556 netbsd*) 7557 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7559 else 7560 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7561 fi 7562 hardcode_libdir_flag_spec='-R$libdir' 7563 hardcode_direct=yes 7564 hardcode_shlibpath_var=no 7565 ;; 7566 7567 newsos6) 7568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7569 hardcode_direct=yes 7570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7571 hardcode_libdir_separator=: 7572 hardcode_shlibpath_var=no 7573 ;; 7574 7575 openbsd*) 7576 hardcode_direct=yes 7577 hardcode_shlibpath_var=no 7578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7580 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7582 export_dynamic_flag_spec='${wl}-E' 7583 else 7584 case $host_os in 7585 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7587 hardcode_libdir_flag_spec='-R$libdir' 7588 ;; 7589 *) 7590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7592 ;; 7593 esac 7594 fi 7595 ;; 7596 7597 os2*) 7598 hardcode_libdir_flag_spec='-L$libdir' 7599 hardcode_minus_L=yes 7600 allow_undefined_flag=unsupported 7601 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' 7602 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7603 ;; 7604 7605 osf3*) 7606 if test "$GCC" = yes; then 7607 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7608 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' 7609 else 7610 allow_undefined_flag=' -expect_unresolved \*' 7611 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' 7612 fi 7613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7614 hardcode_libdir_separator=: 7615 ;; 7616 7617 osf4* | osf5*) # as osf3* with the addition of -msym flag 7618 if test "$GCC" = yes; then 7619 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7620 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' 7621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7622 else 7623 allow_undefined_flag=' -expect_unresolved \*' 7624 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' 7625 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7626 $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' 7627 7628 # Both c and cxx compiler support -rpath directly 7629 hardcode_libdir_flag_spec='-rpath $libdir' 7630 fi 7631 hardcode_libdir_separator=: 7632 ;; 7633 7634 solaris*) 7635 no_undefined_flag=' -z text' 7636 if test "$GCC" = yes; then 7637 wlarc='${wl}' 7638 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7639 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7640 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7641 else 7642 wlarc='' 7643 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7644 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7645 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7646 fi 7647 hardcode_libdir_flag_spec='-R$libdir' 7648 hardcode_shlibpath_var=no 7649 case $host_os in 7650 solaris2.[0-5] | solaris2.[0-5].*) ;; 7651 *) 7652 # The compiler driver will combine linker options so we 7653 # cannot just pass the convience library names through 7654 # without $wl, iff we do not link with $LD. 7655 # Luckily, gcc supports the same syntax we need for Sun Studio. 7656 # Supported since Solaris 2.6 (maybe 2.5.1?) 7657 case $wlarc in 7658 '') 7659 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7660 *) 7661 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' ;; 7662 esac ;; 7663 esac 7664 link_all_deplibs=yes 7665 ;; 7666 7667 sunos4*) 7668 if test "x$host_vendor" = xsequent; then 7669 # Use $CC to link under sequent, because it throws in some extra .o 7670 # files that make .init and .fini sections work. 7671 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7672 else 7673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7674 fi 7675 hardcode_libdir_flag_spec='-L$libdir' 7676 hardcode_direct=yes 7677 hardcode_minus_L=yes 7678 hardcode_shlibpath_var=no 7679 ;; 7680 7681 sysv4) 7682 case $host_vendor in 7683 sni) 7684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7685 hardcode_direct=yes # is this really true??? 7686 ;; 7687 siemens) 7688 ## LD is ld it makes a PLAMLIB 7689 ## CC just makes a GrossModule. 7690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7691 reload_cmds='$CC -r -o $output$reload_objs' 7692 hardcode_direct=no 7693 ;; 7694 motorola) 7695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7697 ;; 7698 esac 7699 runpath_var='LD_RUN_PATH' 7700 hardcode_shlibpath_var=no 7701 ;; 7702 7703 sysv4.3*) 7704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7705 hardcode_shlibpath_var=no 7706 export_dynamic_flag_spec='-Bexport' 7707 ;; 7708 7709 sysv4*MP*) 7710 if test -d /usr/nec; then 7711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7712 hardcode_shlibpath_var=no 7713 runpath_var=LD_RUN_PATH 7714 hardcode_runpath_var=yes 7715 ld_shlibs=yes 7716 fi 7717 ;; 7718 7719 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7720 no_undefined_flag='${wl}-z,text' 7721 archive_cmds_need_lc=no 7722 hardcode_shlibpath_var=no 7723 runpath_var='LD_RUN_PATH' 7724 7725 if test "$GCC" = yes; then 7726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7728 else 7729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7731 fi 7732 ;; 7733 7734 sysv5* | sco3.2v5* | sco5v6*) 7735 # Note: We can NOT use -z defs as we might desire, because we do not 7736 # link with -lc, and that would cause any symbols used from libc to 7737 # always be unresolved, which means just about no library would 7738 # ever link correctly. If we're not using GNU ld we use -z text 7739 # though, which does catch some bad symbols but isn't as heavy-handed 7740 # as -z defs. 7741 no_undefined_flag='${wl}-z,text' 7742 allow_undefined_flag='${wl}-z,nodefs' 7743 archive_cmds_need_lc=no 7744 hardcode_shlibpath_var=no 7745 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7746 hardcode_libdir_separator=':' 7747 link_all_deplibs=yes 7748 export_dynamic_flag_spec='${wl}-Bexport' 7749 runpath_var='LD_RUN_PATH' 7750 7751 if test "$GCC" = yes; then 7752 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7753 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7754 else 7755 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7756 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7757 fi 7758 ;; 7759 7760 uts4*) 7761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7762 hardcode_libdir_flag_spec='-L$libdir' 7763 hardcode_shlibpath_var=no 7764 ;; 7765 7766 *) 7767 ld_shlibs=no 7768 ;; 7769 esac 7770 fi 7771 7772echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7773echo "${ECHO_T}$ld_shlibs" >&6 7774test "$ld_shlibs" = no && can_build_shared=no 7775 7776# 7777# Do we need to explicitly link libc? 7778# 7779case "x$archive_cmds_need_lc" in 7780x|xyes) 7781 # Assume -lc should be added 7782 archive_cmds_need_lc=yes 7783 7784 if test "$enable_shared" = yes && test "$GCC" = yes; then 7785 case $archive_cmds in 7786 *'~'*) 7787 # FIXME: we may have to deal with multi-command sequences. 7788 ;; 7789 '$CC '*) 7790 # Test whether the compiler implicitly links with -lc since on some 7791 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7792 # to ld, don't add -lc before -lgcc. 7793 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7794echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7795 $rm conftest* 7796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7797 7798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7799 (eval $ac_compile) 2>&5 7800 ac_status=$? 7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7802 (exit $ac_status); } 2>conftest.err; then 7803 soname=conftest 7804 lib=conftest 7805 libobjs=conftest.$ac_objext 7806 deplibs= 7807 wl=$lt_prog_compiler_wl 7808 pic_flag=$lt_prog_compiler_pic 7809 compiler_flags=-v 7810 linker_flags=-v 7811 verstring= 7812 output_objdir=. 7813 libname=conftest 7814 lt_save_allow_undefined_flag=$allow_undefined_flag 7815 allow_undefined_flag= 7816 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7817 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7818 ac_status=$? 7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7820 (exit $ac_status); } 7821 then 7822 archive_cmds_need_lc=no 7823 else 7824 archive_cmds_need_lc=yes 7825 fi 7826 allow_undefined_flag=$lt_save_allow_undefined_flag 7827 else 7828 cat conftest.err 1>&5 7829 fi 7830 $rm conftest* 7831 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7832echo "${ECHO_T}$archive_cmds_need_lc" >&6 7833 ;; 7834 esac 7835 fi 7836 ;; 7837esac 7838 7839echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7840echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7841library_names_spec= 7842libname_spec='lib$name' 7843soname_spec= 7844shrext_cmds=".so" 7845postinstall_cmds= 7846postuninstall_cmds= 7847finish_cmds= 7848finish_eval= 7849shlibpath_var= 7850shlibpath_overrides_runpath=unknown 7851version_type=none 7852dynamic_linker="$host_os ld.so" 7853sys_lib_dlsearch_path_spec="/lib /usr/lib" 7854if test "$GCC" = yes; then 7855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7856 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7857 # if the path contains ";" then we assume it to be the separator 7858 # otherwise default to the standard path separator (i.e. ":") - it is 7859 # assumed that no part of a normal pathname contains ";" but that should 7860 # okay in the real world where ";" in dirpaths is itself problematic. 7861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7862 else 7863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7864 fi 7865else 7866 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7867fi 7868need_lib_prefix=unknown 7869hardcode_into_libs=no 7870 7871# when you set need_version to no, make sure it does not cause -set_version 7872# flags to be left without arguments 7873need_version=unknown 7874 7875case $host_os in 7876aix3*) 7877 version_type=linux 7878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7879 shlibpath_var=LIBPATH 7880 7881 # AIX 3 has no versioning support, so we append a major version to the name. 7882 soname_spec='${libname}${release}${shared_ext}$major' 7883 ;; 7884 7885aix4* | aix5*) 7886 version_type=linux 7887 need_lib_prefix=no 7888 need_version=no 7889 hardcode_into_libs=yes 7890 if test "$host_cpu" = ia64; then 7891 # AIX 5 supports IA64 7892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7893 shlibpath_var=LD_LIBRARY_PATH 7894 else 7895 # With GCC up to 2.95.x, collect2 would create an import file 7896 # for dependence libraries. The import file would start with 7897 # the line `#! .'. This would cause the generated library to 7898 # depend on `.', always an invalid library. This was fixed in 7899 # development snapshots of GCC prior to 3.0. 7900 case $host_os in 7901 aix4 | aix4.[01] | aix4.[01].*) 7902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7903 echo ' yes ' 7904 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7905 : 7906 else 7907 can_build_shared=no 7908 fi 7909 ;; 7910 esac 7911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7912 # soname into executable. Probably we can add versioning support to 7913 # collect2, so additional links can be useful in future. 7914 if test "$aix_use_runtimelinking" = yes; then 7915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7916 # instead of lib<name>.a to let people know that these are not 7917 # typical AIX shared libraries. 7918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7919 else 7920 # We preserve .a as extension for shared libraries through AIX4.2 7921 # and later when we are not doing run time linking. 7922 library_names_spec='${libname}${release}.a $libname.a' 7923 soname_spec='${libname}${release}${shared_ext}$major' 7924 fi 7925 shlibpath_var=LIBPATH 7926 fi 7927 ;; 7928 7929amigaos*) 7930 library_names_spec='$libname.ixlibrary $libname.a' 7931 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7932 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' 7933 ;; 7934 7935beos*) 7936 library_names_spec='${libname}${shared_ext}' 7937 dynamic_linker="$host_os ld.so" 7938 shlibpath_var=LIBRARY_PATH 7939 ;; 7940 7941bsdi[45]*) 7942 version_type=linux 7943 need_version=no 7944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7945 soname_spec='${libname}${release}${shared_ext}$major' 7946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7947 shlibpath_var=LD_LIBRARY_PATH 7948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7950 # the default ld.so.conf also contains /usr/contrib/lib and 7951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7952 # libtool to hard-code these into programs 7953 ;; 7954 7955cygwin* | mingw* | pw32*) 7956 version_type=windows 7957 shrext_cmds=".dll" 7958 need_version=no 7959 need_lib_prefix=no 7960 7961 case $GCC,$host_os in 7962 yes,cygwin* | yes,mingw* | yes,pw32*) 7963 library_names_spec='$libname.dll.a' 7964 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7965 postinstall_cmds='base_file=`basename \${file}`~ 7966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7967 dldir=$destdir/`dirname \$dlpath`~ 7968 test -d \$dldir || mkdir -p \$dldir~ 7969 $install_prog $dir/$dlname \$dldir/$dlname~ 7970 chmod a+x \$dldir/$dlname' 7971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7972 dlpath=$dir/\$dldll~ 7973 $rm \$dlpath' 7974 shlibpath_overrides_runpath=yes 7975 7976 case $host_os in 7977 cygwin*) 7978 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7979 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7980 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7981 ;; 7982 mingw*) 7983 # MinGW DLLs use traditional 'lib' prefix 7984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7986 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7987 # It is most probably a Windows format PATH printed by 7988 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7989 # path with ; separators, and with drive letters. We can handle the 7990 # drive letters (cygwin fileutils understands them), so leave them, 7991 # especially as we might pass files found there to a mingw objdump, 7992 # which wouldn't understand a cygwinified path. Ahh. 7993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7994 else 7995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7996 fi 7997 ;; 7998 pw32*) 7999 # pw32 DLLs use 'pw' prefix rather than 'lib' 8000 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8001 ;; 8002 esac 8003 ;; 8004 8005 *) 8006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8007 ;; 8008 esac 8009 dynamic_linker='Win32 ld.exe' 8010 # FIXME: first we should search . and the directory the executable is in 8011 shlibpath_var=PATH 8012 ;; 8013 8014darwin* | rhapsody*) 8015 dynamic_linker="$host_os dyld" 8016 version_type=darwin 8017 need_lib_prefix=no 8018 need_version=no 8019 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8020 soname_spec='${libname}${release}${major}$shared_ext' 8021 shlibpath_overrides_runpath=yes 8022 shlibpath_var=DYLD_LIBRARY_PATH 8023 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8024 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8025 if test "$GCC" = yes; then 8026 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"` 8027 else 8028 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8029 fi 8030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8031 ;; 8032 8033dgux*) 8034 version_type=linux 8035 need_lib_prefix=no 8036 need_version=no 8037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8038 soname_spec='${libname}${release}${shared_ext}$major' 8039 shlibpath_var=LD_LIBRARY_PATH 8040 ;; 8041 8042freebsd1*) 8043 dynamic_linker=no 8044 ;; 8045 8046kfreebsd*-gnu) 8047 version_type=linux 8048 need_lib_prefix=no 8049 need_version=no 8050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8051 soname_spec='${libname}${release}${shared_ext}$major' 8052 shlibpath_var=LD_LIBRARY_PATH 8053 shlibpath_overrides_runpath=no 8054 hardcode_into_libs=yes 8055 dynamic_linker='GNU ld.so' 8056 ;; 8057 8058freebsd* | dragonfly*) 8059 # DragonFly does not have aout. When/if they implement a new 8060 # versioning mechanism, adjust this. 8061 if test -x /usr/bin/objformat; then 8062 objformat=`/usr/bin/objformat` 8063 else 8064 case $host_os in 8065 freebsd[123]*) objformat=aout ;; 8066 *) objformat=elf ;; 8067 esac 8068 fi 8069 version_type=freebsd-$objformat 8070 case $version_type in 8071 freebsd-elf*) 8072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8073 need_version=no 8074 need_lib_prefix=no 8075 ;; 8076 freebsd-*) 8077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8078 need_version=yes 8079 ;; 8080 esac 8081 shlibpath_var=LD_LIBRARY_PATH 8082 case $host_os in 8083 freebsd2*) 8084 shlibpath_overrides_runpath=yes 8085 ;; 8086 freebsd3.[01]* | freebsdelf3.[01]*) 8087 shlibpath_overrides_runpath=yes 8088 hardcode_into_libs=yes 8089 ;; 8090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8092 shlibpath_overrides_runpath=no 8093 hardcode_into_libs=yes 8094 ;; 8095 freebsd*) # from 4.6 on 8096 shlibpath_overrides_runpath=yes 8097 hardcode_into_libs=yes 8098 ;; 8099 esac 8100 ;; 8101 8102gnu*) 8103 version_type=linux 8104 need_lib_prefix=no 8105 need_version=no 8106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8107 soname_spec='${libname}${release}${shared_ext}$major' 8108 shlibpath_var=LD_LIBRARY_PATH 8109 hardcode_into_libs=yes 8110 ;; 8111 8112hpux9* | hpux10* | hpux11*) 8113 # Give a soname corresponding to the major version so that dld.sl refuses to 8114 # link against other versions. 8115 version_type=sunos 8116 need_lib_prefix=no 8117 need_version=no 8118 case $host_cpu in 8119 ia64*) 8120 shrext_cmds='.so' 8121 hardcode_into_libs=yes 8122 dynamic_linker="$host_os dld.so" 8123 shlibpath_var=LD_LIBRARY_PATH 8124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8126 soname_spec='${libname}${release}${shared_ext}$major' 8127 if test "X$HPUX_IA64_MODE" = X32; then 8128 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8129 else 8130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8131 fi 8132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8133 ;; 8134 hppa*64*) 8135 shrext_cmds='.sl' 8136 hardcode_into_libs=yes 8137 dynamic_linker="$host_os dld.sl" 8138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8141 soname_spec='${libname}${release}${shared_ext}$major' 8142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8144 ;; 8145 *) 8146 shrext_cmds='.sl' 8147 dynamic_linker="$host_os dld.sl" 8148 shlibpath_var=SHLIB_PATH 8149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8151 soname_spec='${libname}${release}${shared_ext}$major' 8152 ;; 8153 esac 8154 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8155 postinstall_cmds='chmod 555 $lib' 8156 ;; 8157 8158interix3*) 8159 version_type=linux 8160 need_lib_prefix=no 8161 need_version=no 8162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8163 soname_spec='${libname}${release}${shared_ext}$major' 8164 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8165 shlibpath_var=LD_LIBRARY_PATH 8166 shlibpath_overrides_runpath=no 8167 hardcode_into_libs=yes 8168 ;; 8169 8170irix5* | irix6* | nonstopux*) 8171 case $host_os in 8172 nonstopux*) version_type=nonstopux ;; 8173 *) 8174 if test "$lt_cv_prog_gnu_ld" = yes; then 8175 version_type=linux 8176 else 8177 version_type=irix 8178 fi ;; 8179 esac 8180 need_lib_prefix=no 8181 need_version=no 8182 soname_spec='${libname}${release}${shared_ext}$major' 8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8184 case $host_os in 8185 irix5* | nonstopux*) 8186 libsuff= shlibsuff= 8187 ;; 8188 *) 8189 case $LD in # libtool.m4 will add one of these switches to LD 8190 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8191 libsuff= shlibsuff= libmagic=32-bit;; 8192 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8193 libsuff=32 shlibsuff=N32 libmagic=N32;; 8194 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8195 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8196 *) libsuff= shlibsuff= libmagic=never-match;; 8197 esac 8198 ;; 8199 esac 8200 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8201 shlibpath_overrides_runpath=no 8202 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8203 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8204 hardcode_into_libs=yes 8205 ;; 8206 8207# No shared lib support for Linux oldld, aout, or coff. 8208linux*oldld* | linux*aout* | linux*coff*) 8209 dynamic_linker=no 8210 ;; 8211 8212# This must be Linux ELF. 8213linux*) 8214 version_type=linux 8215 need_lib_prefix=no 8216 need_version=no 8217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8218 soname_spec='${libname}${release}${shared_ext}$major' 8219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8220 shlibpath_var=LD_LIBRARY_PATH 8221 shlibpath_overrides_runpath=no 8222 # This implies no fast_install, which is unacceptable. 8223 # Some rework will be needed to allow for fast_install 8224 # before this can be enabled. 8225 hardcode_into_libs=yes 8226 8227 # find out which ABI we are using 8228 libsuff= 8229 case "$host_cpu" in 8230 x86_64*|s390x*|powerpc64*) 8231 echo '#line 8231 "configure"' > conftest.$ac_ext 8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8233 (eval $ac_compile) 2>&5 8234 ac_status=$? 8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8236 (exit $ac_status); }; then 8237 case `/usr/bin/file conftest.$ac_objext` in 8238 *64-bit*) 8239 libsuff=64 8240 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8241 ;; 8242 esac 8243 fi 8244 rm -rf conftest* 8245 ;; 8246 esac 8247 8248 # Append ld.so.conf contents to the search path 8249 if test -f /etc/ld.so.conf; then 8250 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8251 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8252 fi 8253 8254 # We used to test for /lib/ld.so.1 and disable shared libraries on 8255 # powerpc, because MkLinux only supported shared libraries with the 8256 # GNU dynamic linker. Since this was broken with cross compilers, 8257 # most powerpc-linux boxes support dynamic linking these days and 8258 # people can always --disable-shared, the test was removed, and we 8259 # assume the GNU/Linux dynamic linker is in use. 8260 dynamic_linker='GNU/Linux ld.so' 8261 ;; 8262 8263knetbsd*-gnu) 8264 version_type=linux 8265 need_lib_prefix=no 8266 need_version=no 8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8268 soname_spec='${libname}${release}${shared_ext}$major' 8269 shlibpath_var=LD_LIBRARY_PATH 8270 shlibpath_overrides_runpath=no 8271 hardcode_into_libs=yes 8272 dynamic_linker='GNU ld.so' 8273 ;; 8274 8275netbsd*) 8276 version_type=sunos 8277 need_lib_prefix=no 8278 need_version=no 8279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8282 dynamic_linker='NetBSD (a.out) ld.so' 8283 else 8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8285 soname_spec='${libname}${release}${shared_ext}$major' 8286 dynamic_linker='NetBSD ld.elf_so' 8287 fi 8288 shlibpath_var=LD_LIBRARY_PATH 8289 shlibpath_overrides_runpath=yes 8290 hardcode_into_libs=yes 8291 ;; 8292 8293newsos6) 8294 version_type=linux 8295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8296 shlibpath_var=LD_LIBRARY_PATH 8297 shlibpath_overrides_runpath=yes 8298 ;; 8299 8300nto-qnx*) 8301 version_type=linux 8302 need_lib_prefix=no 8303 need_version=no 8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8305 soname_spec='${libname}${release}${shared_ext}$major' 8306 shlibpath_var=LD_LIBRARY_PATH 8307 shlibpath_overrides_runpath=yes 8308 ;; 8309 8310openbsd*) 8311 version_type=sunos 8312 sys_lib_dlsearch_path_spec="/usr/lib" 8313 need_lib_prefix=no 8314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8315 case $host_os in 8316 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8317 *) need_version=no ;; 8318 esac 8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8321 shlibpath_var=LD_LIBRARY_PATH 8322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8323 case $host_os in 8324 openbsd2.[89] | openbsd2.[89].*) 8325 shlibpath_overrides_runpath=no 8326 ;; 8327 *) 8328 shlibpath_overrides_runpath=yes 8329 ;; 8330 esac 8331 else 8332 shlibpath_overrides_runpath=yes 8333 fi 8334 ;; 8335 8336os2*) 8337 libname_spec='$name' 8338 shrext_cmds=".dll" 8339 need_lib_prefix=no 8340 library_names_spec='$libname${shared_ext} $libname.a' 8341 dynamic_linker='OS/2 ld.exe' 8342 shlibpath_var=LIBPATH 8343 ;; 8344 8345osf3* | osf4* | osf5*) 8346 version_type=osf 8347 need_lib_prefix=no 8348 need_version=no 8349 soname_spec='${libname}${release}${shared_ext}$major' 8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8351 shlibpath_var=LD_LIBRARY_PATH 8352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8354 ;; 8355 8356solaris*) 8357 version_type=linux 8358 need_lib_prefix=no 8359 need_version=no 8360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8361 soname_spec='${libname}${release}${shared_ext}$major' 8362 shlibpath_var=LD_LIBRARY_PATH 8363 shlibpath_overrides_runpath=yes 8364 hardcode_into_libs=yes 8365 # ldd complains unless libraries are executable 8366 postinstall_cmds='chmod +x $lib' 8367 ;; 8368 8369sunos4*) 8370 version_type=sunos 8371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8372 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8373 shlibpath_var=LD_LIBRARY_PATH 8374 shlibpath_overrides_runpath=yes 8375 if test "$with_gnu_ld" = yes; then 8376 need_lib_prefix=no 8377 fi 8378 need_version=yes 8379 ;; 8380 8381sysv4 | sysv4.3*) 8382 version_type=linux 8383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8384 soname_spec='${libname}${release}${shared_ext}$major' 8385 shlibpath_var=LD_LIBRARY_PATH 8386 case $host_vendor in 8387 sni) 8388 shlibpath_overrides_runpath=no 8389 need_lib_prefix=no 8390 export_dynamic_flag_spec='${wl}-Blargedynsym' 8391 runpath_var=LD_RUN_PATH 8392 ;; 8393 siemens) 8394 need_lib_prefix=no 8395 ;; 8396 motorola) 8397 need_lib_prefix=no 8398 need_version=no 8399 shlibpath_overrides_runpath=no 8400 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8401 ;; 8402 esac 8403 ;; 8404 8405sysv4*MP*) 8406 if test -d /usr/nec ;then 8407 version_type=linux 8408 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8409 soname_spec='$libname${shared_ext}.$major' 8410 shlibpath_var=LD_LIBRARY_PATH 8411 fi 8412 ;; 8413 8414sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8415 version_type=freebsd-elf 8416 need_lib_prefix=no 8417 need_version=no 8418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8419 soname_spec='${libname}${release}${shared_ext}$major' 8420 shlibpath_var=LD_LIBRARY_PATH 8421 hardcode_into_libs=yes 8422 if test "$with_gnu_ld" = yes; then 8423 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8424 shlibpath_overrides_runpath=no 8425 else 8426 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8427 shlibpath_overrides_runpath=yes 8428 case $host_os in 8429 sco3.2v5*) 8430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8431 ;; 8432 esac 8433 fi 8434 sys_lib_dlsearch_path_spec='/usr/lib' 8435 ;; 8436 8437uts4*) 8438 version_type=linux 8439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8440 soname_spec='${libname}${release}${shared_ext}$major' 8441 shlibpath_var=LD_LIBRARY_PATH 8442 ;; 8443 8444*) 8445 dynamic_linker=no 8446 ;; 8447esac 8448echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8449echo "${ECHO_T}$dynamic_linker" >&6 8450test "$dynamic_linker" = no && can_build_shared=no 8451 8452variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8453if test "$GCC" = yes; then 8454 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8455fi 8456 8457echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8458echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8459hardcode_action= 8460if test -n "$hardcode_libdir_flag_spec" || \ 8461 test -n "$runpath_var" || \ 8462 test "X$hardcode_automatic" = "Xyes" ; then 8463 8464 # We can hardcode non-existant directories. 8465 if test "$hardcode_direct" != no && 8466 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8467 # have to relink, otherwise we might link with an installed library 8468 # when we should be linking with a yet-to-be-installed one 8469 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8470 test "$hardcode_minus_L" != no; then 8471 # Linking always hardcodes the temporary library directory. 8472 hardcode_action=relink 8473 else 8474 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8475 hardcode_action=immediate 8476 fi 8477else 8478 # We cannot hardcode anything, or else we can only hardcode existing 8479 # directories. 8480 hardcode_action=unsupported 8481fi 8482echo "$as_me:$LINENO: result: $hardcode_action" >&5 8483echo "${ECHO_T}$hardcode_action" >&6 8484 8485if test "$hardcode_action" = relink; then 8486 # Fast installation is not supported 8487 enable_fast_install=no 8488elif test "$shlibpath_overrides_runpath" = yes || 8489 test "$enable_shared" = no; then 8490 # Fast installation is not necessary 8491 enable_fast_install=needless 8492fi 8493 8494striplib= 8495old_striplib= 8496echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8497echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8498if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8499 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8500 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8501 echo "$as_me:$LINENO: result: yes" >&5 8502echo "${ECHO_T}yes" >&6 8503else 8504# FIXME - insert some real tests, host_os isn't really good enough 8505 case $host_os in 8506 darwin*) 8507 if test -n "$STRIP" ; then 8508 striplib="$STRIP -x" 8509 echo "$as_me:$LINENO: result: yes" >&5 8510echo "${ECHO_T}yes" >&6 8511 else 8512 echo "$as_me:$LINENO: result: no" >&5 8513echo "${ECHO_T}no" >&6 8514fi 8515 ;; 8516 *) 8517 echo "$as_me:$LINENO: result: no" >&5 8518echo "${ECHO_T}no" >&6 8519 ;; 8520 esac 8521fi 8522 8523if test "x$enable_dlopen" != xyes; then 8524 enable_dlopen=unknown 8525 enable_dlopen_self=unknown 8526 enable_dlopen_self_static=unknown 8527else 8528 lt_cv_dlopen=no 8529 lt_cv_dlopen_libs= 8530 8531 case $host_os in 8532 beos*) 8533 lt_cv_dlopen="load_add_on" 8534 lt_cv_dlopen_libs= 8535 lt_cv_dlopen_self=yes 8536 ;; 8537 8538 mingw* | pw32*) 8539 lt_cv_dlopen="LoadLibrary" 8540 lt_cv_dlopen_libs= 8541 ;; 8542 8543 cygwin*) 8544 lt_cv_dlopen="dlopen" 8545 lt_cv_dlopen_libs= 8546 ;; 8547 8548 darwin*) 8549 # if libdl is installed we need to link against it 8550 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8551echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8552if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8553 echo $ECHO_N "(cached) $ECHO_C" >&6 8554else 8555 ac_check_lib_save_LIBS=$LIBS 8556LIBS="-ldl $LIBS" 8557cat >conftest.$ac_ext <<_ACEOF 8558/* confdefs.h. */ 8559_ACEOF 8560cat confdefs.h >>conftest.$ac_ext 8561cat >>conftest.$ac_ext <<_ACEOF 8562/* end confdefs.h. */ 8563 8564/* Override any gcc2 internal prototype to avoid an error. */ 8565#ifdef __cplusplus 8566extern "C" 8567#endif 8568/* We use char because int might match the return type of a gcc2 8569 builtin and then its argument prototype would still apply. */ 8570char dlopen (); 8571int 8572main () 8573{ 8574dlopen (); 8575 ; 8576 return 0; 8577} 8578_ACEOF 8579rm -f conftest.$ac_objext conftest$ac_exeext 8580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8581 (eval $ac_link) 2>conftest.er1 8582 ac_status=$? 8583 grep -v '^ *+' conftest.er1 >conftest.err 8584 rm -f conftest.er1 8585 cat conftest.err >&5 8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8587 (exit $ac_status); } && 8588 { ac_try='test -z "$ac_c_werror_flag" 8589 || test ! -s conftest.err' 8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8591 (eval $ac_try) 2>&5 8592 ac_status=$? 8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8594 (exit $ac_status); }; } && 8595 { ac_try='test -s conftest$ac_exeext' 8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8597 (eval $ac_try) 2>&5 8598 ac_status=$? 8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8600 (exit $ac_status); }; }; then 8601 ac_cv_lib_dl_dlopen=yes 8602else 8603 echo "$as_me: failed program was:" >&5 8604sed 's/^/| /' conftest.$ac_ext >&5 8605 8606ac_cv_lib_dl_dlopen=no 8607fi 8608rm -f conftest.err conftest.$ac_objext \ 8609 conftest$ac_exeext conftest.$ac_ext 8610LIBS=$ac_check_lib_save_LIBS 8611fi 8612echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8613echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8614if test $ac_cv_lib_dl_dlopen = yes; then 8615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8616else 8617 8618 lt_cv_dlopen="dyld" 8619 lt_cv_dlopen_libs= 8620 lt_cv_dlopen_self=yes 8621 8622fi 8623 8624 ;; 8625 8626 *) 8627 echo "$as_me:$LINENO: checking for shl_load" >&5 8628echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8629if test "${ac_cv_func_shl_load+set}" = set; then 8630 echo $ECHO_N "(cached) $ECHO_C" >&6 8631else 8632 cat >conftest.$ac_ext <<_ACEOF 8633/* confdefs.h. */ 8634_ACEOF 8635cat confdefs.h >>conftest.$ac_ext 8636cat >>conftest.$ac_ext <<_ACEOF 8637/* end confdefs.h. */ 8638/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8639 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8640#define shl_load innocuous_shl_load 8641 8642/* System header to define __stub macros and hopefully few prototypes, 8643 which can conflict with char shl_load (); below. 8644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8645 <limits.h> exists even on freestanding compilers. */ 8646 8647#ifdef __STDC__ 8648# include <limits.h> 8649#else 8650# include <assert.h> 8651#endif 8652 8653#undef shl_load 8654 8655/* Override any gcc2 internal prototype to avoid an error. */ 8656#ifdef __cplusplus 8657extern "C" 8658{ 8659#endif 8660/* We use char because int might match the return type of a gcc2 8661 builtin and then its argument prototype would still apply. */ 8662char shl_load (); 8663/* The GNU C library defines this for functions which it implements 8664 to always fail with ENOSYS. Some functions are actually named 8665 something starting with __ and the normal name is an alias. */ 8666#if defined (__stub_shl_load) || defined (__stub___shl_load) 8667choke me 8668#else 8669char (*f) () = shl_load; 8670#endif 8671#ifdef __cplusplus 8672} 8673#endif 8674 8675int 8676main () 8677{ 8678return f != shl_load; 8679 ; 8680 return 0; 8681} 8682_ACEOF 8683rm -f conftest.$ac_objext conftest$ac_exeext 8684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8685 (eval $ac_link) 2>conftest.er1 8686 ac_status=$? 8687 grep -v '^ *+' conftest.er1 >conftest.err 8688 rm -f conftest.er1 8689 cat conftest.err >&5 8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8691 (exit $ac_status); } && 8692 { ac_try='test -z "$ac_c_werror_flag" 8693 || test ! -s conftest.err' 8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8695 (eval $ac_try) 2>&5 8696 ac_status=$? 8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8698 (exit $ac_status); }; } && 8699 { ac_try='test -s conftest$ac_exeext' 8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8701 (eval $ac_try) 2>&5 8702 ac_status=$? 8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8704 (exit $ac_status); }; }; then 8705 ac_cv_func_shl_load=yes 8706else 8707 echo "$as_me: failed program was:" >&5 8708sed 's/^/| /' conftest.$ac_ext >&5 8709 8710ac_cv_func_shl_load=no 8711fi 8712rm -f conftest.err conftest.$ac_objext \ 8713 conftest$ac_exeext conftest.$ac_ext 8714fi 8715echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8716echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8717if test $ac_cv_func_shl_load = yes; then 8718 lt_cv_dlopen="shl_load" 8719else 8720 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8721echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8722if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8723 echo $ECHO_N "(cached) $ECHO_C" >&6 8724else 8725 ac_check_lib_save_LIBS=$LIBS 8726LIBS="-ldld $LIBS" 8727cat >conftest.$ac_ext <<_ACEOF 8728/* confdefs.h. */ 8729_ACEOF 8730cat confdefs.h >>conftest.$ac_ext 8731cat >>conftest.$ac_ext <<_ACEOF 8732/* end confdefs.h. */ 8733 8734/* Override any gcc2 internal prototype to avoid an error. */ 8735#ifdef __cplusplus 8736extern "C" 8737#endif 8738/* We use char because int might match the return type of a gcc2 8739 builtin and then its argument prototype would still apply. */ 8740char shl_load (); 8741int 8742main () 8743{ 8744shl_load (); 8745 ; 8746 return 0; 8747} 8748_ACEOF 8749rm -f conftest.$ac_objext conftest$ac_exeext 8750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8751 (eval $ac_link) 2>conftest.er1 8752 ac_status=$? 8753 grep -v '^ *+' conftest.er1 >conftest.err 8754 rm -f conftest.er1 8755 cat conftest.err >&5 8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8757 (exit $ac_status); } && 8758 { ac_try='test -z "$ac_c_werror_flag" 8759 || test ! -s conftest.err' 8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8761 (eval $ac_try) 2>&5 8762 ac_status=$? 8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8764 (exit $ac_status); }; } && 8765 { ac_try='test -s conftest$ac_exeext' 8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8767 (eval $ac_try) 2>&5 8768 ac_status=$? 8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8770 (exit $ac_status); }; }; then 8771 ac_cv_lib_dld_shl_load=yes 8772else 8773 echo "$as_me: failed program was:" >&5 8774sed 's/^/| /' conftest.$ac_ext >&5 8775 8776ac_cv_lib_dld_shl_load=no 8777fi 8778rm -f conftest.err conftest.$ac_objext \ 8779 conftest$ac_exeext conftest.$ac_ext 8780LIBS=$ac_check_lib_save_LIBS 8781fi 8782echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8783echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8784if test $ac_cv_lib_dld_shl_load = yes; then 8785 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8786else 8787 echo "$as_me:$LINENO: checking for dlopen" >&5 8788echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8789if test "${ac_cv_func_dlopen+set}" = set; then 8790 echo $ECHO_N "(cached) $ECHO_C" >&6 8791else 8792 cat >conftest.$ac_ext <<_ACEOF 8793/* confdefs.h. */ 8794_ACEOF 8795cat confdefs.h >>conftest.$ac_ext 8796cat >>conftest.$ac_ext <<_ACEOF 8797/* end confdefs.h. */ 8798/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8799 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8800#define dlopen innocuous_dlopen 8801 8802/* System header to define __stub macros and hopefully few prototypes, 8803 which can conflict with char dlopen (); below. 8804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8805 <limits.h> exists even on freestanding compilers. */ 8806 8807#ifdef __STDC__ 8808# include <limits.h> 8809#else 8810# include <assert.h> 8811#endif 8812 8813#undef dlopen 8814 8815/* Override any gcc2 internal prototype to avoid an error. */ 8816#ifdef __cplusplus 8817extern "C" 8818{ 8819#endif 8820/* We use char because int might match the return type of a gcc2 8821 builtin and then its argument prototype would still apply. */ 8822char dlopen (); 8823/* The GNU C library defines this for functions which it implements 8824 to always fail with ENOSYS. Some functions are actually named 8825 something starting with __ and the normal name is an alias. */ 8826#if defined (__stub_dlopen) || defined (__stub___dlopen) 8827choke me 8828#else 8829char (*f) () = dlopen; 8830#endif 8831#ifdef __cplusplus 8832} 8833#endif 8834 8835int 8836main () 8837{ 8838return f != dlopen; 8839 ; 8840 return 0; 8841} 8842_ACEOF 8843rm -f conftest.$ac_objext conftest$ac_exeext 8844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8845 (eval $ac_link) 2>conftest.er1 8846 ac_status=$? 8847 grep -v '^ *+' conftest.er1 >conftest.err 8848 rm -f conftest.er1 8849 cat conftest.err >&5 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 (exit $ac_status); } && 8852 { ac_try='test -z "$ac_c_werror_flag" 8853 || test ! -s conftest.err' 8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8855 (eval $ac_try) 2>&5 8856 ac_status=$? 8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8858 (exit $ac_status); }; } && 8859 { ac_try='test -s conftest$ac_exeext' 8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8861 (eval $ac_try) 2>&5 8862 ac_status=$? 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 (exit $ac_status); }; }; then 8865 ac_cv_func_dlopen=yes 8866else 8867 echo "$as_me: failed program was:" >&5 8868sed 's/^/| /' conftest.$ac_ext >&5 8869 8870ac_cv_func_dlopen=no 8871fi 8872rm -f conftest.err conftest.$ac_objext \ 8873 conftest$ac_exeext conftest.$ac_ext 8874fi 8875echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8876echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8877if test $ac_cv_func_dlopen = yes; then 8878 lt_cv_dlopen="dlopen" 8879else 8880 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8881echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8882if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8883 echo $ECHO_N "(cached) $ECHO_C" >&6 8884else 8885 ac_check_lib_save_LIBS=$LIBS 8886LIBS="-ldl $LIBS" 8887cat >conftest.$ac_ext <<_ACEOF 8888/* confdefs.h. */ 8889_ACEOF 8890cat confdefs.h >>conftest.$ac_ext 8891cat >>conftest.$ac_ext <<_ACEOF 8892/* end confdefs.h. */ 8893 8894/* Override any gcc2 internal prototype to avoid an error. */ 8895#ifdef __cplusplus 8896extern "C" 8897#endif 8898/* We use char because int might match the return type of a gcc2 8899 builtin and then its argument prototype would still apply. */ 8900char dlopen (); 8901int 8902main () 8903{ 8904dlopen (); 8905 ; 8906 return 0; 8907} 8908_ACEOF 8909rm -f conftest.$ac_objext conftest$ac_exeext 8910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8911 (eval $ac_link) 2>conftest.er1 8912 ac_status=$? 8913 grep -v '^ *+' conftest.er1 >conftest.err 8914 rm -f conftest.er1 8915 cat conftest.err >&5 8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8917 (exit $ac_status); } && 8918 { ac_try='test -z "$ac_c_werror_flag" 8919 || test ! -s conftest.err' 8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8921 (eval $ac_try) 2>&5 8922 ac_status=$? 8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8924 (exit $ac_status); }; } && 8925 { ac_try='test -s conftest$ac_exeext' 8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8927 (eval $ac_try) 2>&5 8928 ac_status=$? 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8930 (exit $ac_status); }; }; then 8931 ac_cv_lib_dl_dlopen=yes 8932else 8933 echo "$as_me: failed program was:" >&5 8934sed 's/^/| /' conftest.$ac_ext >&5 8935 8936ac_cv_lib_dl_dlopen=no 8937fi 8938rm -f conftest.err conftest.$ac_objext \ 8939 conftest$ac_exeext conftest.$ac_ext 8940LIBS=$ac_check_lib_save_LIBS 8941fi 8942echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8943echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8944if test $ac_cv_lib_dl_dlopen = yes; then 8945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8946else 8947 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8948echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8949if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8950 echo $ECHO_N "(cached) $ECHO_C" >&6 8951else 8952 ac_check_lib_save_LIBS=$LIBS 8953LIBS="-lsvld $LIBS" 8954cat >conftest.$ac_ext <<_ACEOF 8955/* confdefs.h. */ 8956_ACEOF 8957cat confdefs.h >>conftest.$ac_ext 8958cat >>conftest.$ac_ext <<_ACEOF 8959/* end confdefs.h. */ 8960 8961/* Override any gcc2 internal prototype to avoid an error. */ 8962#ifdef __cplusplus 8963extern "C" 8964#endif 8965/* We use char because int might match the return type of a gcc2 8966 builtin and then its argument prototype would still apply. */ 8967char dlopen (); 8968int 8969main () 8970{ 8971dlopen (); 8972 ; 8973 return 0; 8974} 8975_ACEOF 8976rm -f conftest.$ac_objext conftest$ac_exeext 8977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8978 (eval $ac_link) 2>conftest.er1 8979 ac_status=$? 8980 grep -v '^ *+' conftest.er1 >conftest.err 8981 rm -f conftest.er1 8982 cat conftest.err >&5 8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8984 (exit $ac_status); } && 8985 { ac_try='test -z "$ac_c_werror_flag" 8986 || test ! -s conftest.err' 8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8988 (eval $ac_try) 2>&5 8989 ac_status=$? 8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8991 (exit $ac_status); }; } && 8992 { ac_try='test -s conftest$ac_exeext' 8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8994 (eval $ac_try) 2>&5 8995 ac_status=$? 8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8997 (exit $ac_status); }; }; then 8998 ac_cv_lib_svld_dlopen=yes 8999else 9000 echo "$as_me: failed program was:" >&5 9001sed 's/^/| /' conftest.$ac_ext >&5 9002 9003ac_cv_lib_svld_dlopen=no 9004fi 9005rm -f conftest.err conftest.$ac_objext \ 9006 conftest$ac_exeext conftest.$ac_ext 9007LIBS=$ac_check_lib_save_LIBS 9008fi 9009echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9010echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9011if test $ac_cv_lib_svld_dlopen = yes; then 9012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9013else 9014 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9015echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9016if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9017 echo $ECHO_N "(cached) $ECHO_C" >&6 9018else 9019 ac_check_lib_save_LIBS=$LIBS 9020LIBS="-ldld $LIBS" 9021cat >conftest.$ac_ext <<_ACEOF 9022/* confdefs.h. */ 9023_ACEOF 9024cat confdefs.h >>conftest.$ac_ext 9025cat >>conftest.$ac_ext <<_ACEOF 9026/* end confdefs.h. */ 9027 9028/* Override any gcc2 internal prototype to avoid an error. */ 9029#ifdef __cplusplus 9030extern "C" 9031#endif 9032/* We use char because int might match the return type of a gcc2 9033 builtin and then its argument prototype would still apply. */ 9034char dld_link (); 9035int 9036main () 9037{ 9038dld_link (); 9039 ; 9040 return 0; 9041} 9042_ACEOF 9043rm -f conftest.$ac_objext conftest$ac_exeext 9044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9045 (eval $ac_link) 2>conftest.er1 9046 ac_status=$? 9047 grep -v '^ *+' conftest.er1 >conftest.err 9048 rm -f conftest.er1 9049 cat conftest.err >&5 9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9051 (exit $ac_status); } && 9052 { ac_try='test -z "$ac_c_werror_flag" 9053 || test ! -s conftest.err' 9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9055 (eval $ac_try) 2>&5 9056 ac_status=$? 9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9058 (exit $ac_status); }; } && 9059 { ac_try='test -s conftest$ac_exeext' 9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9061 (eval $ac_try) 2>&5 9062 ac_status=$? 9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9064 (exit $ac_status); }; }; then 9065 ac_cv_lib_dld_dld_link=yes 9066else 9067 echo "$as_me: failed program was:" >&5 9068sed 's/^/| /' conftest.$ac_ext >&5 9069 9070ac_cv_lib_dld_dld_link=no 9071fi 9072rm -f conftest.err conftest.$ac_objext \ 9073 conftest$ac_exeext conftest.$ac_ext 9074LIBS=$ac_check_lib_save_LIBS 9075fi 9076echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9077echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9078if test $ac_cv_lib_dld_dld_link = yes; then 9079 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9080fi 9081 9082 9083fi 9084 9085 9086fi 9087 9088 9089fi 9090 9091 9092fi 9093 9094 9095fi 9096 9097 ;; 9098 esac 9099 9100 if test "x$lt_cv_dlopen" != xno; then 9101 enable_dlopen=yes 9102 else 9103 enable_dlopen=no 9104 fi 9105 9106 case $lt_cv_dlopen in 9107 dlopen) 9108 save_CPPFLAGS="$CPPFLAGS" 9109 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9110 9111 save_LDFLAGS="$LDFLAGS" 9112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9113 9114 save_LIBS="$LIBS" 9115 LIBS="$lt_cv_dlopen_libs $LIBS" 9116 9117 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9118echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9119if test "${lt_cv_dlopen_self+set}" = set; then 9120 echo $ECHO_N "(cached) $ECHO_C" >&6 9121else 9122 if test "$cross_compiling" = yes; then : 9123 lt_cv_dlopen_self=cross 9124else 9125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9126 lt_status=$lt_dlunknown 9127 cat > conftest.$ac_ext <<EOF 9128#line 9128 "configure" 9129#include "confdefs.h" 9130 9131#if HAVE_DLFCN_H 9132#include <dlfcn.h> 9133#endif 9134 9135#include <stdio.h> 9136 9137#ifdef RTLD_GLOBAL 9138# define LT_DLGLOBAL RTLD_GLOBAL 9139#else 9140# ifdef DL_GLOBAL 9141# define LT_DLGLOBAL DL_GLOBAL 9142# else 9143# define LT_DLGLOBAL 0 9144# endif 9145#endif 9146 9147/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9148 find out it does not work in some platform. */ 9149#ifndef LT_DLLAZY_OR_NOW 9150# ifdef RTLD_LAZY 9151# define LT_DLLAZY_OR_NOW RTLD_LAZY 9152# else 9153# ifdef DL_LAZY 9154# define LT_DLLAZY_OR_NOW DL_LAZY 9155# else 9156# ifdef RTLD_NOW 9157# define LT_DLLAZY_OR_NOW RTLD_NOW 9158# else 9159# ifdef DL_NOW 9160# define LT_DLLAZY_OR_NOW DL_NOW 9161# else 9162# define LT_DLLAZY_OR_NOW 0 9163# endif 9164# endif 9165# endif 9166# endif 9167#endif 9168 9169#ifdef __cplusplus 9170extern "C" void exit (int); 9171#endif 9172 9173void fnord() { int i=42;} 9174int main () 9175{ 9176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9177 int status = $lt_dlunknown; 9178 9179 if (self) 9180 { 9181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9183 /* dlclose (self); */ 9184 } 9185 else 9186 puts (dlerror ()); 9187 9188 exit (status); 9189} 9190EOF 9191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9192 (eval $ac_link) 2>&5 9193 ac_status=$? 9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9196 (./conftest; exit; ) >&5 2>/dev/null 9197 lt_status=$? 9198 case x$lt_status in 9199 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9200 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9201 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9202 esac 9203 else : 9204 # compilation failed 9205 lt_cv_dlopen_self=no 9206 fi 9207fi 9208rm -fr conftest* 9209 9210 9211fi 9212echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9213echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9214 9215 if test "x$lt_cv_dlopen_self" = xyes; then 9216 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9217 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9218echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9219if test "${lt_cv_dlopen_self_static+set}" = set; then 9220 echo $ECHO_N "(cached) $ECHO_C" >&6 9221else 9222 if test "$cross_compiling" = yes; then : 9223 lt_cv_dlopen_self_static=cross 9224else 9225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9226 lt_status=$lt_dlunknown 9227 cat > conftest.$ac_ext <<EOF 9228#line 9228 "configure" 9229#include "confdefs.h" 9230 9231#if HAVE_DLFCN_H 9232#include <dlfcn.h> 9233#endif 9234 9235#include <stdio.h> 9236 9237#ifdef RTLD_GLOBAL 9238# define LT_DLGLOBAL RTLD_GLOBAL 9239#else 9240# ifdef DL_GLOBAL 9241# define LT_DLGLOBAL DL_GLOBAL 9242# else 9243# define LT_DLGLOBAL 0 9244# endif 9245#endif 9246 9247/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9248 find out it does not work in some platform. */ 9249#ifndef LT_DLLAZY_OR_NOW 9250# ifdef RTLD_LAZY 9251# define LT_DLLAZY_OR_NOW RTLD_LAZY 9252# else 9253# ifdef DL_LAZY 9254# define LT_DLLAZY_OR_NOW DL_LAZY 9255# else 9256# ifdef RTLD_NOW 9257# define LT_DLLAZY_OR_NOW RTLD_NOW 9258# else 9259# ifdef DL_NOW 9260# define LT_DLLAZY_OR_NOW DL_NOW 9261# else 9262# define LT_DLLAZY_OR_NOW 0 9263# endif 9264# endif 9265# endif 9266# endif 9267#endif 9268 9269#ifdef __cplusplus 9270extern "C" void exit (int); 9271#endif 9272 9273void fnord() { int i=42;} 9274int main () 9275{ 9276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9277 int status = $lt_dlunknown; 9278 9279 if (self) 9280 { 9281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9282 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9283 /* dlclose (self); */ 9284 } 9285 else 9286 puts (dlerror ()); 9287 9288 exit (status); 9289} 9290EOF 9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9292 (eval $ac_link) 2>&5 9293 ac_status=$? 9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9295 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9296 (./conftest; exit; ) >&5 2>/dev/null 9297 lt_status=$? 9298 case x$lt_status in 9299 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9300 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9301 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9302 esac 9303 else : 9304 # compilation failed 9305 lt_cv_dlopen_self_static=no 9306 fi 9307fi 9308rm -fr conftest* 9309 9310 9311fi 9312echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9313echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9314 fi 9315 9316 CPPFLAGS="$save_CPPFLAGS" 9317 LDFLAGS="$save_LDFLAGS" 9318 LIBS="$save_LIBS" 9319 ;; 9320 esac 9321 9322 case $lt_cv_dlopen_self in 9323 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9324 *) enable_dlopen_self=unknown ;; 9325 esac 9326 9327 case $lt_cv_dlopen_self_static in 9328 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9329 *) enable_dlopen_self_static=unknown ;; 9330 esac 9331fi 9332 9333 9334# Report which library types will actually be built 9335echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9336echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9337echo "$as_me:$LINENO: result: $can_build_shared" >&5 9338echo "${ECHO_T}$can_build_shared" >&6 9339 9340echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9341echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9342test "$can_build_shared" = "no" && enable_shared=no 9343 9344# On AIX, shared libraries and static libraries use the same namespace, and 9345# are all built from PIC. 9346case $host_os in 9347aix3*) 9348 test "$enable_shared" = yes && enable_static=no 9349 if test -n "$RANLIB"; then 9350 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9351 postinstall_cmds='$RANLIB $lib' 9352 fi 9353 ;; 9354 9355aix4* | aix5*) 9356 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9357 test "$enable_shared" = yes && enable_static=no 9358 fi 9359 ;; 9360esac 9361echo "$as_me:$LINENO: result: $enable_shared" >&5 9362echo "${ECHO_T}$enable_shared" >&6 9363 9364echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9365echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9366# Make sure either enable_shared or enable_static is yes. 9367test "$enable_shared" = yes || enable_static=yes 9368echo "$as_me:$LINENO: result: $enable_static" >&5 9369echo "${ECHO_T}$enable_static" >&6 9370 9371# The else clause should only fire when bootstrapping the 9372# libtool distribution, otherwise you forgot to ship ltmain.sh 9373# with your package, and you will get complaints that there are 9374# no rules to generate ltmain.sh. 9375if test -f "$ltmain"; then 9376 # See if we are running on zsh, and set the options which allow our commands through 9377 # without removal of \ escapes. 9378 if test -n "${ZSH_VERSION+set}" ; then 9379 setopt NO_GLOB_SUBST 9380 fi 9381 # Now quote all the things that may contain metacharacters while being 9382 # careful not to overquote the AC_SUBSTed values. We take copies of the 9383 # variables and quote the copies for generation of the libtool script. 9384 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9385 SED SHELL STRIP \ 9386 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9387 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9388 deplibs_check_method reload_flag reload_cmds need_locks \ 9389 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9390 lt_cv_sys_global_symbol_to_c_name_address \ 9391 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9392 old_postinstall_cmds old_postuninstall_cmds \ 9393 compiler \ 9394 CC \ 9395 LD \ 9396 lt_prog_compiler_wl \ 9397 lt_prog_compiler_pic \ 9398 lt_prog_compiler_static \ 9399 lt_prog_compiler_no_builtin_flag \ 9400 export_dynamic_flag_spec \ 9401 thread_safe_flag_spec \ 9402 whole_archive_flag_spec \ 9403 enable_shared_with_static_runtimes \ 9404 old_archive_cmds \ 9405 old_archive_from_new_cmds \ 9406 predep_objects \ 9407 postdep_objects \ 9408 predeps \ 9409 postdeps \ 9410 compiler_lib_search_path \ 9411 archive_cmds \ 9412 archive_expsym_cmds \ 9413 postinstall_cmds \ 9414 postuninstall_cmds \ 9415 old_archive_from_expsyms_cmds \ 9416 allow_undefined_flag \ 9417 no_undefined_flag \ 9418 export_symbols_cmds \ 9419 hardcode_libdir_flag_spec \ 9420 hardcode_libdir_flag_spec_ld \ 9421 hardcode_libdir_separator \ 9422 hardcode_automatic \ 9423 module_cmds \ 9424 module_expsym_cmds \ 9425 lt_cv_prog_compiler_c_o \ 9426 exclude_expsyms \ 9427 include_expsyms; do 9428 9429 case $var in 9430 old_archive_cmds | \ 9431 old_archive_from_new_cmds | \ 9432 archive_cmds | \ 9433 archive_expsym_cmds | \ 9434 module_cmds | \ 9435 module_expsym_cmds | \ 9436 old_archive_from_expsyms_cmds | \ 9437 export_symbols_cmds | \ 9438 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9439 postinstall_cmds | postuninstall_cmds | \ 9440 old_postinstall_cmds | old_postuninstall_cmds | \ 9441 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9442 # Double-quote double-evaled strings. 9443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9444 ;; 9445 *) 9446 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9447 ;; 9448 esac 9449 done 9450 9451 case $lt_echo in 9452 *'\$0 --fallback-echo"') 9453 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9454 ;; 9455 esac 9456 9457cfgfile="${ofile}T" 9458 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9459 $rm -f "$cfgfile" 9460 { echo "$as_me:$LINENO: creating $ofile" >&5 9461echo "$as_me: creating $ofile" >&6;} 9462 9463 cat <<__EOF__ >> "$cfgfile" 9464#! $SHELL 9465 9466# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9467# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9468# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9469# 9470# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9471# Free Software Foundation, Inc. 9472# 9473# This file is part of GNU Libtool: 9474# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9475# 9476# This program is free software; you can redistribute it and/or modify 9477# it under the terms of the GNU General Public License as published by 9478# the Free Software Foundation; either version 2 of the License, or 9479# (at your option) any later version. 9480# 9481# This program is distributed in the hope that it will be useful, but 9482# WITHOUT ANY WARRANTY; without even the implied warranty of 9483# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9484# General Public License for more details. 9485# 9486# You should have received a copy of the GNU General Public License 9487# along with this program; if not, write to the Free Software 9488# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9489# 9490# As a special exception to the GNU General Public License, if you 9491# distribute this file as part of a program that contains a 9492# configuration script generated by Autoconf, you may include it under 9493# the same distribution terms that you use for the rest of that program. 9494 9495# A sed program that does not truncate output. 9496SED=$lt_SED 9497 9498# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9499Xsed="$SED -e 1s/^X//" 9500 9501# The HP-UX ksh and POSIX shell print the target directory to stdout 9502# if CDPATH is set. 9503(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9504 9505# The names of the tagged configurations supported by this script. 9506available_tags= 9507 9508# ### BEGIN LIBTOOL CONFIG 9509 9510# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9511 9512# Shell to use when invoking shell scripts. 9513SHELL=$lt_SHELL 9514 9515# Whether or not to build shared libraries. 9516build_libtool_libs=$enable_shared 9517 9518# Whether or not to build static libraries. 9519build_old_libs=$enable_static 9520 9521# Whether or not to add -lc for building shared libraries. 9522build_libtool_need_lc=$archive_cmds_need_lc 9523 9524# Whether or not to disallow shared libs when runtime libs are static 9525allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9526 9527# Whether or not to optimize for fast installation. 9528fast_install=$enable_fast_install 9529 9530# The host system. 9531host_alias=$host_alias 9532host=$host 9533host_os=$host_os 9534 9535# The build system. 9536build_alias=$build_alias 9537build=$build 9538build_os=$build_os 9539 9540# An echo program that does not interpret backslashes. 9541echo=$lt_echo 9542 9543# The archiver. 9544AR=$lt_AR 9545AR_FLAGS=$lt_AR_FLAGS 9546 9547# A C compiler. 9548LTCC=$lt_LTCC 9549 9550# LTCC compiler flags. 9551LTCFLAGS=$lt_LTCFLAGS 9552 9553# A language-specific compiler. 9554CC=$lt_compiler 9555 9556# Is the compiler the GNU C compiler? 9557with_gcc=$GCC 9558 9559gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 9560gcc_ver=\`gcc -dumpversion\` 9561 9562# An ERE matcher. 9563EGREP=$lt_EGREP 9564 9565# The linker used to build libraries. 9566LD=$lt_LD 9567 9568# Whether we need hard or soft links. 9569LN_S=$lt_LN_S 9570 9571# A BSD-compatible nm program. 9572NM=$lt_NM 9573 9574# A symbol stripping program 9575STRIP=$lt_STRIP 9576 9577# Used to examine libraries when file_magic_cmd begins "file" 9578MAGIC_CMD=$MAGIC_CMD 9579 9580# Used on cygwin: DLL creation program. 9581DLLTOOL="$DLLTOOL" 9582 9583# Used on cygwin: object dumper. 9584OBJDUMP="$OBJDUMP" 9585 9586# Used on cygwin: assembler. 9587AS="$AS" 9588 9589# The name of the directory that contains temporary libtool files. 9590objdir=$objdir 9591 9592# How to create reloadable object files. 9593reload_flag=$lt_reload_flag 9594reload_cmds=$lt_reload_cmds 9595 9596# How to pass a linker flag through the compiler. 9597wl=$lt_lt_prog_compiler_wl 9598 9599# Object file suffix (normally "o"). 9600objext="$ac_objext" 9601 9602# Old archive suffix (normally "a"). 9603libext="$libext" 9604 9605# Shared library suffix (normally ".so"). 9606shrext_cmds='$shrext_cmds' 9607 9608# Executable file suffix (normally ""). 9609exeext="$exeext" 9610 9611# Additional compiler flags for building library objects. 9612pic_flag=$lt_lt_prog_compiler_pic 9613pic_mode=$pic_mode 9614 9615# What is the maximum length of a command? 9616max_cmd_len=$lt_cv_sys_max_cmd_len 9617 9618# Does compiler simultaneously support -c and -o options? 9619compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9620 9621# Must we lock files when doing compilation? 9622need_locks=$lt_need_locks 9623 9624# Do we need the lib prefix for modules? 9625need_lib_prefix=$need_lib_prefix 9626 9627# Do we need a version for libraries? 9628need_version=$need_version 9629 9630# Whether dlopen is supported. 9631dlopen_support=$enable_dlopen 9632 9633# Whether dlopen of programs is supported. 9634dlopen_self=$enable_dlopen_self 9635 9636# Whether dlopen of statically linked programs is supported. 9637dlopen_self_static=$enable_dlopen_self_static 9638 9639# Compiler flag to prevent dynamic linking. 9640link_static_flag=$lt_lt_prog_compiler_static 9641 9642# Compiler flag to turn off builtin functions. 9643no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9644 9645# Compiler flag to allow reflexive dlopens. 9646export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9647 9648# Compiler flag to generate shared objects directly from archives. 9649whole_archive_flag_spec=$lt_whole_archive_flag_spec 9650 9651# Compiler flag to generate thread-safe objects. 9652thread_safe_flag_spec=$lt_thread_safe_flag_spec 9653 9654# Library versioning type. 9655version_type=$version_type 9656 9657# Format of library name prefix. 9658libname_spec=$lt_libname_spec 9659 9660# List of archive names. First name is the real one, the rest are links. 9661# The last name is the one that the linker finds with -lNAME. 9662library_names_spec=$lt_library_names_spec 9663 9664# The coded name of the library, if different from the real name. 9665soname_spec=$lt_soname_spec 9666 9667# Commands used to build and install an old-style archive. 9668RANLIB=$lt_RANLIB 9669old_archive_cmds=$lt_old_archive_cmds 9670old_postinstall_cmds=$lt_old_postinstall_cmds 9671old_postuninstall_cmds=$lt_old_postuninstall_cmds 9672 9673# Create an old-style archive from a shared archive. 9674old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9675 9676# Create a temporary old-style archive to link instead of a shared archive. 9677old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9678 9679# Commands used to build and install a shared archive. 9680archive_cmds=$lt_archive_cmds 9681archive_expsym_cmds=$lt_archive_expsym_cmds 9682postinstall_cmds=$lt_postinstall_cmds 9683postuninstall_cmds=$lt_postuninstall_cmds 9684 9685# Commands used to build a loadable module (assumed same as above if empty) 9686module_cmds=$lt_module_cmds 9687module_expsym_cmds=$lt_module_expsym_cmds 9688 9689# Commands to strip libraries. 9690old_striplib=$lt_old_striplib 9691striplib=$lt_striplib 9692 9693# Dependencies to place before the objects being linked to create a 9694# shared library. 9695predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9696 9697# Dependencies to place after the objects being linked to create a 9698# shared library. 9699postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9700 9701# Dependencies to place before the objects being linked to create a 9702# shared library. 9703predeps=$lt_predeps 9704 9705# Dependencies to place after the objects being linked to create a 9706# shared library. 9707postdeps=$lt_postdeps 9708 9709# The library search path used internally by the compiler when linking 9710# a shared library. 9711compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9712 9713# Method to check whether dependent libraries are shared objects. 9714deplibs_check_method=$lt_deplibs_check_method 9715 9716# Command to use when deplibs_check_method == file_magic. 9717file_magic_cmd=$lt_file_magic_cmd 9718 9719# Flag that allows shared libraries with undefined symbols to be built. 9720allow_undefined_flag=$lt_allow_undefined_flag 9721 9722# Flag that forces no undefined symbols. 9723no_undefined_flag=$lt_no_undefined_flag 9724 9725# Commands used to finish a libtool library installation in a directory. 9726finish_cmds=$lt_finish_cmds 9727 9728# Same as above, but a single script fragment to be evaled but not shown. 9729finish_eval=$lt_finish_eval 9730 9731# Take the output of nm and produce a listing of raw symbols and C names. 9732global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9733 9734# Transform the output of nm in a proper C declaration 9735global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9736 9737# Transform the output of nm in a C name address pair 9738global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9739 9740# This is the shared library runtime path variable. 9741runpath_var=$runpath_var 9742 9743# This is the shared library path variable. 9744shlibpath_var=$shlibpath_var 9745 9746# Is shlibpath searched before the hard-coded library search path? 9747shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9748 9749# How to hardcode a shared library path into an executable. 9750hardcode_action=$hardcode_action 9751 9752# Whether we should hardcode library paths into libraries. 9753hardcode_into_libs=$hardcode_into_libs 9754 9755# Flag to hardcode \$libdir into a binary during linking. 9756# This must work even if \$libdir does not exist. 9757hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9758 9759# If ld is used when linking, flag to hardcode \$libdir into 9760# a binary during linking. This must work even if \$libdir does 9761# not exist. 9762hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9763 9764# Whether we need a single -rpath flag with a separated argument. 9765hardcode_libdir_separator=$lt_hardcode_libdir_separator 9766 9767# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9768# resulting binary. 9769hardcode_direct=$hardcode_direct 9770 9771# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9772# resulting binary. 9773hardcode_minus_L=$hardcode_minus_L 9774 9775# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9776# the resulting binary. 9777hardcode_shlibpath_var=$hardcode_shlibpath_var 9778 9779# Set to yes if building a shared library automatically hardcodes DIR into the library 9780# and all subsequent libraries and executables linked against it. 9781hardcode_automatic=$hardcode_automatic 9782 9783# Variables whose values should be saved in libtool wrapper scripts and 9784# restored at relink time. 9785variables_saved_for_relink="$variables_saved_for_relink" 9786 9787# Whether libtool must link a program against all its dependency libraries. 9788link_all_deplibs=$link_all_deplibs 9789 9790# Compile-time system search path for libraries 9791sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9792 9793# Run-time system search path for libraries 9794sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9795 9796# Fix the shell variable \$srcfile for the compiler. 9797fix_srcfile_path="$fix_srcfile_path" 9798 9799# Set to yes if exported symbols are required. 9800always_export_symbols=$always_export_symbols 9801 9802# The commands to list exported symbols. 9803export_symbols_cmds=$lt_export_symbols_cmds 9804 9805# The commands to extract the exported symbol list from a shared archive. 9806extract_expsyms_cmds=$lt_extract_expsyms_cmds 9807 9808# Symbols that should not be listed in the preloaded symbols. 9809exclude_expsyms=$lt_exclude_expsyms 9810 9811# Symbols that must always be exported. 9812include_expsyms=$lt_include_expsyms 9813 9814# ### END LIBTOOL CONFIG 9815 9816__EOF__ 9817 9818 9819 case $host_os in 9820 aix3*) 9821 cat <<\EOF >> "$cfgfile" 9822 9823# AIX sometimes has problems with the GCC collect2 program. For some 9824# reason, if we set the COLLECT_NAMES environment variable, the problems 9825# vanish in a puff of smoke. 9826if test "X${COLLECT_NAMES+set}" != Xset; then 9827 COLLECT_NAMES= 9828 export COLLECT_NAMES 9829fi 9830EOF 9831 ;; 9832 esac 9833 9834 # We use sed instead of cat because bash on DJGPP gets confused if 9835 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9836 # text mode, it properly converts lines to CR/LF. This bash problem 9837 # is reportedly fixed, but why not run on old versions too? 9838 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9839 9840 mv -f "$cfgfile" "$ofile" || \ 9841 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9842 chmod +x "$ofile" 9843 9844else 9845 # If there is no Makefile yet, we rely on a make rule to execute 9846 # `config.status --recheck' to rerun these tests and create the 9847 # libtool script then. 9848 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9849 if test -f "$ltmain_in"; then 9850 test -f Makefile && make "$ltmain" 9851 fi 9852fi 9853 9854 9855ac_ext=c 9856ac_cpp='$CPP $CPPFLAGS' 9857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9859ac_compiler_gnu=$ac_cv_c_compiler_gnu 9860 9861CC="$lt_save_CC" 9862 9863 9864# Check whether --with-tags or --without-tags was given. 9865if test "${with_tags+set}" = set; then 9866 withval="$with_tags" 9867 tagnames="$withval" 9868fi; 9869 9870if test -f "$ltmain" && test -n "$tagnames"; then 9871 if test ! -f "${ofile}"; then 9872 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9873echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9874 fi 9875 9876 if test -z "$LTCC"; then 9877 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9878 if test -z "$LTCC"; then 9879 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9880echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9881 else 9882 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9883echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9884 fi 9885 fi 9886 if test -z "$LTCFLAGS"; then 9887 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9888 fi 9889 9890 # Extract list of available tagged configurations in $ofile. 9891 # Note that this assumes the entire list is on one line. 9892 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9893 9894 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9895 for tagname in $tagnames; do 9896 IFS="$lt_save_ifs" 9897 # Check whether tagname contains only valid characters 9898 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9899 "") ;; 9900 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9901echo "$as_me: error: invalid tag name: $tagname" >&2;} 9902 { (exit 1); exit 1; }; } 9903 ;; 9904 esac 9905 9906 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9907 then 9908 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9909echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9910 { (exit 1); exit 1; }; } 9911 fi 9912 9913 # Update the list of available tags. 9914 if test -n "$tagname"; then 9915 echo appending configuration tag \"$tagname\" to $ofile 9916 9917 case $tagname in 9918 CXX) 9919 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9920 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9921 (test "X$CXX" != "Xg++"))) ; then 9922 ac_ext=cc 9923ac_cpp='$CXXCPP $CPPFLAGS' 9924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9927 9928 9929 9930 9931archive_cmds_need_lc_CXX=no 9932allow_undefined_flag_CXX= 9933always_export_symbols_CXX=no 9934archive_expsym_cmds_CXX= 9935export_dynamic_flag_spec_CXX= 9936hardcode_direct_CXX=no 9937hardcode_libdir_flag_spec_CXX= 9938hardcode_libdir_flag_spec_ld_CXX= 9939hardcode_libdir_separator_CXX= 9940hardcode_minus_L_CXX=no 9941hardcode_shlibpath_var_CXX=unsupported 9942hardcode_automatic_CXX=no 9943module_cmds_CXX= 9944module_expsym_cmds_CXX= 9945link_all_deplibs_CXX=unknown 9946old_archive_cmds_CXX=$old_archive_cmds 9947no_undefined_flag_CXX= 9948whole_archive_flag_spec_CXX= 9949enable_shared_with_static_runtimes_CXX=no 9950 9951# Dependencies to place before and after the object being linked: 9952predep_objects_CXX= 9953postdep_objects_CXX= 9954predeps_CXX= 9955postdeps_CXX= 9956compiler_lib_search_path_CXX= 9957 9958# Source file extension for C++ test sources. 9959ac_ext=cpp 9960 9961# Object file extension for compiled C++ test sources. 9962objext=o 9963objext_CXX=$objext 9964 9965# Code to be used in simple compile tests 9966lt_simple_compile_test_code="int some_variable = 0;\n" 9967 9968# Code to be used in simple link tests 9969lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9970 9971# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9972 9973# If no C compiler was specified, use CC. 9974LTCC=${LTCC-"$CC"} 9975 9976# If no C compiler flags were specified, use CFLAGS. 9977LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9978 9979# Allow CC to be a program name with arguments. 9980compiler=$CC 9981 9982 9983# save warnings/boilerplate of simple test code 9984ac_outfile=conftest.$ac_objext 9985printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9986eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9987_lt_compiler_boilerplate=`cat conftest.err` 9988$rm conftest* 9989 9990ac_outfile=conftest.$ac_objext 9991printf "$lt_simple_link_test_code" >conftest.$ac_ext 9992eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9993_lt_linker_boilerplate=`cat conftest.err` 9994$rm conftest* 9995 9996 9997# Allow CC to be a program name with arguments. 9998lt_save_CC=$CC 9999lt_save_LD=$LD 10000lt_save_GCC=$GCC 10001GCC=$GXX 10002lt_save_with_gnu_ld=$with_gnu_ld 10003lt_save_path_LD=$lt_cv_path_LD 10004if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10005 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10006else 10007 $as_unset lt_cv_prog_gnu_ld 10008fi 10009if test -n "${lt_cv_path_LDCXX+set}"; then 10010 lt_cv_path_LD=$lt_cv_path_LDCXX 10011else 10012 $as_unset lt_cv_path_LD 10013fi 10014test -z "${LDCXX+set}" || LD=$LDCXX 10015CC=${CXX-"c++"} 10016compiler=$CC 10017compiler_CXX=$CC 10018for cc_temp in $compiler""; do 10019 case $cc_temp in 10020 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10021 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10022 \-*) ;; 10023 *) break;; 10024 esac 10025done 10026cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10027 10028 10029# We don't want -fno-exception wen compiling C++ code, so set the 10030# no_builtin_flag separately 10031if test "$GXX" = yes; then 10032 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10033else 10034 lt_prog_compiler_no_builtin_flag_CXX= 10035fi 10036 10037if test "$GXX" = yes; then 10038 # Set up default GNU C++ configuration 10039 10040 10041# Check whether --with-gnu-ld or --without-gnu-ld was given. 10042if test "${with_gnu_ld+set}" = set; then 10043 withval="$with_gnu_ld" 10044 test "$withval" = no || with_gnu_ld=yes 10045else 10046 with_gnu_ld=no 10047fi; 10048ac_prog=ld 10049if test "$GCC" = yes; then 10050 # Check if gcc -print-prog-name=ld gives a path. 10051 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10052echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10053 case $host in 10054 *-*-mingw*) 10055 # gcc leaves a trailing carriage return which upsets mingw 10056 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10057 *) 10058 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10059 esac 10060 case $ac_prog in 10061 # Accept absolute paths. 10062 [\\/]* | ?:[\\/]*) 10063 re_direlt='/[^/][^/]*/\.\./' 10064 # Canonicalize the pathname of ld 10065 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10066 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10067 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10068 done 10069 test -z "$LD" && LD="$ac_prog" 10070 ;; 10071 "") 10072 # If it fails, then pretend we aren't using GCC. 10073 ac_prog=ld 10074 ;; 10075 *) 10076 # If it is relative, then search for the first ld in PATH. 10077 with_gnu_ld=unknown 10078 ;; 10079 esac 10080elif test "$with_gnu_ld" = yes; then 10081 echo "$as_me:$LINENO: checking for GNU ld" >&5 10082echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10083else 10084 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10085echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10086fi 10087if test "${lt_cv_path_LD+set}" = set; then 10088 echo $ECHO_N "(cached) $ECHO_C" >&6 10089else 10090 if test -z "$LD"; then 10091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10092 for ac_dir in $PATH; do 10093 IFS="$lt_save_ifs" 10094 test -z "$ac_dir" && ac_dir=. 10095 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10096 lt_cv_path_LD="$ac_dir/$ac_prog" 10097 # Check to see if the program is GNU ld. I'd rather use --version, 10098 # but apparently some variants of GNU ld only accept -v. 10099 # Break only if it was the GNU/non-GNU ld that we prefer. 10100 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10101 *GNU* | *'with BFD'*) 10102 test "$with_gnu_ld" != no && break 10103 ;; 10104 *) 10105 test "$with_gnu_ld" != yes && break 10106 ;; 10107 esac 10108 fi 10109 done 10110 IFS="$lt_save_ifs" 10111else 10112 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10113fi 10114fi 10115 10116LD="$lt_cv_path_LD" 10117if test -n "$LD"; then 10118 echo "$as_me:$LINENO: result: $LD" >&5 10119echo "${ECHO_T}$LD" >&6 10120else 10121 echo "$as_me:$LINENO: result: no" >&5 10122echo "${ECHO_T}no" >&6 10123fi 10124test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10125echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10126 { (exit 1); exit 1; }; } 10127echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10128echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10129if test "${lt_cv_prog_gnu_ld+set}" = set; then 10130 echo $ECHO_N "(cached) $ECHO_C" >&6 10131else 10132 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10133case `$LD -v 2>&1 </dev/null` in 10134*GNU* | *'with BFD'*) 10135 lt_cv_prog_gnu_ld=yes 10136 ;; 10137*) 10138 lt_cv_prog_gnu_ld=no 10139 ;; 10140esac 10141fi 10142echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10143echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10144with_gnu_ld=$lt_cv_prog_gnu_ld 10145 10146 10147 10148 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10149 # archiving commands below assume that GNU ld is being used. 10150 if test "$with_gnu_ld" = yes; then 10151 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10152 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' 10153 10154 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10155 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10156 10157 # If archive_cmds runs LD, not CC, wlarc should be empty 10158 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10159 # investigate it a little bit more. (MM) 10160 wlarc='${wl}' 10161 10162 # ancient GNU ld didn't support --whole-archive et. al. 10163 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10164 grep 'no-whole-archive' > /dev/null; then 10165 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10166 else 10167 whole_archive_flag_spec_CXX= 10168 fi 10169 else 10170 with_gnu_ld=no 10171 wlarc= 10172 10173 # A generic and very simple default shared library creation 10174 # command for GNU C++ for the case where it uses the native 10175 # linker, instead of GNU ld. If possible, this setting should 10176 # overridden to take advantage of the native linker features on 10177 # the platform it is being used on. 10178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10179 fi 10180 10181 # Commands to make compiler produce verbose output that lists 10182 # what "hidden" libraries, object files and flags are used when 10183 # linking a shared library. 10184 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10185 10186else 10187 GXX=no 10188 with_gnu_ld=no 10189 wlarc= 10190fi 10191 10192# PORTME: fill in a description of your system's C++ link characteristics 10193echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10194echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10195ld_shlibs_CXX=yes 10196case $host_os in 10197 aix3*) 10198 # FIXME: insert proper C++ library support 10199 ld_shlibs_CXX=no 10200 ;; 10201 aix4* | aix5*) 10202 if test "$host_cpu" = ia64; then 10203 # On IA64, the linker does run time linking by default, so we don't 10204 # have to do anything special. 10205 aix_use_runtimelinking=no 10206 exp_sym_flag='-Bexport' 10207 no_entry_flag="" 10208 else 10209 aix_use_runtimelinking=no 10210 10211 # Test if we are trying to use run time linking or normal 10212 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10213 # need to do runtime linking. 10214 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10215 for ld_flag in $LDFLAGS; do 10216 case $ld_flag in 10217 *-brtl*) 10218 aix_use_runtimelinking=yes 10219 break 10220 ;; 10221 esac 10222 done 10223 ;; 10224 esac 10225 10226 exp_sym_flag='-bexport' 10227 no_entry_flag='-bnoentry' 10228 fi 10229 10230 # When large executables or shared objects are built, AIX ld can 10231 # have problems creating the table of contents. If linking a library 10232 # or program results in "error TOC overflow" add -mminimal-toc to 10233 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10234 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10235 10236 archive_cmds_CXX='' 10237 hardcode_direct_CXX=yes 10238 hardcode_libdir_separator_CXX=':' 10239 link_all_deplibs_CXX=yes 10240 10241 if test "$GXX" = yes; then 10242 case $host_os in aix4.[012]|aix4.[012].*) 10243 # We only want to do this on AIX 4.2 and lower, the check 10244 # below for broken collect2 doesn't work under 4.3+ 10245 collect2name=`${CC} -print-prog-name=collect2` 10246 if test -f "$collect2name" && \ 10247 strings "$collect2name" | grep resolve_lib_name >/dev/null 10248 then 10249 # We have reworked collect2 10250 hardcode_direct_CXX=yes 10251 else 10252 # We have old collect2 10253 hardcode_direct_CXX=unsupported 10254 # It fails to find uninstalled libraries when the uninstalled 10255 # path is not listed in the libpath. Setting hardcode_minus_L 10256 # to unsupported forces relinking 10257 hardcode_minus_L_CXX=yes 10258 hardcode_libdir_flag_spec_CXX='-L$libdir' 10259 hardcode_libdir_separator_CXX= 10260 fi 10261 ;; 10262 esac 10263 shared_flag='-shared' 10264 if test "$aix_use_runtimelinking" = yes; then 10265 shared_flag="$shared_flag "'${wl}-G' 10266 fi 10267 else 10268 # not using gcc 10269 if test "$host_cpu" = ia64; then 10270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10271 # chokes on -Wl,-G. The following line is correct: 10272 shared_flag='-G' 10273 else 10274 if test "$aix_use_runtimelinking" = yes; then 10275 shared_flag='${wl}-G' 10276 else 10277 shared_flag='${wl}-bM:SRE' 10278 fi 10279 fi 10280 fi 10281 10282 # It seems that -bexpall does not export symbols beginning with 10283 # underscore (_), so it is better to generate a list of symbols to export. 10284 always_export_symbols_CXX=yes 10285 if test "$aix_use_runtimelinking" = yes; then 10286 # Warning - without using the other runtime loading flags (-brtl), 10287 # -berok will link without error, but may produce a broken library. 10288 allow_undefined_flag_CXX='-berok' 10289 # Determine the default libpath from the value encoded in an empty executable. 10290 cat >conftest.$ac_ext <<_ACEOF 10291/* confdefs.h. */ 10292_ACEOF 10293cat confdefs.h >>conftest.$ac_ext 10294cat >>conftest.$ac_ext <<_ACEOF 10295/* end confdefs.h. */ 10296 10297int 10298main () 10299{ 10300 10301 ; 10302 return 0; 10303} 10304_ACEOF 10305rm -f conftest.$ac_objext conftest$ac_exeext 10306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10307 (eval $ac_link) 2>conftest.er1 10308 ac_status=$? 10309 grep -v '^ *+' conftest.er1 >conftest.err 10310 rm -f conftest.er1 10311 cat conftest.err >&5 10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10313 (exit $ac_status); } && 10314 { ac_try='test -z "$ac_cxx_werror_flag" 10315 || test ! -s conftest.err' 10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10317 (eval $ac_try) 2>&5 10318 ac_status=$? 10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10320 (exit $ac_status); }; } && 10321 { ac_try='test -s conftest$ac_exeext' 10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10323 (eval $ac_try) 2>&5 10324 ac_status=$? 10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10326 (exit $ac_status); }; }; then 10327 10328aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10329}'` 10330# Check for a 64-bit object if we didn't find anything. 10331if 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; } 10332}'`; fi 10333else 10334 echo "$as_me: failed program was:" >&5 10335sed 's/^/| /' conftest.$ac_ext >&5 10336 10337fi 10338rm -f conftest.err conftest.$ac_objext \ 10339 conftest$ac_exeext conftest.$ac_ext 10340if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10341 10342 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10343 10344 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" 10345 else 10346 if test "$host_cpu" = ia64; then 10347 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10348 allow_undefined_flag_CXX="-z nodefs" 10349 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" 10350 else 10351 # Determine the default libpath from the value encoded in an empty executable. 10352 cat >conftest.$ac_ext <<_ACEOF 10353/* confdefs.h. */ 10354_ACEOF 10355cat confdefs.h >>conftest.$ac_ext 10356cat >>conftest.$ac_ext <<_ACEOF 10357/* end confdefs.h. */ 10358 10359int 10360main () 10361{ 10362 10363 ; 10364 return 0; 10365} 10366_ACEOF 10367rm -f conftest.$ac_objext conftest$ac_exeext 10368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10369 (eval $ac_link) 2>conftest.er1 10370 ac_status=$? 10371 grep -v '^ *+' conftest.er1 >conftest.err 10372 rm -f conftest.er1 10373 cat conftest.err >&5 10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10375 (exit $ac_status); } && 10376 { ac_try='test -z "$ac_cxx_werror_flag" 10377 || test ! -s conftest.err' 10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10379 (eval $ac_try) 2>&5 10380 ac_status=$? 10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10382 (exit $ac_status); }; } && 10383 { ac_try='test -s conftest$ac_exeext' 10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10385 (eval $ac_try) 2>&5 10386 ac_status=$? 10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10388 (exit $ac_status); }; }; then 10389 10390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10391}'` 10392# Check for a 64-bit object if we didn't find anything. 10393if 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; } 10394}'`; fi 10395else 10396 echo "$as_me: failed program was:" >&5 10397sed 's/^/| /' conftest.$ac_ext >&5 10398 10399fi 10400rm -f conftest.err conftest.$ac_objext \ 10401 conftest$ac_exeext conftest.$ac_ext 10402if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10403 10404 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10405 # Warning - without using the other run time loading flags, 10406 # -berok will link without error, but may produce a broken library. 10407 no_undefined_flag_CXX=' ${wl}-bernotok' 10408 allow_undefined_flag_CXX=' ${wl}-berok' 10409 # Exported symbols can be pulled into shared objects from archives 10410 whole_archive_flag_spec_CXX='$convenience' 10411 archive_cmds_need_lc_CXX=yes 10412 # This is similar to how AIX traditionally builds its shared libraries. 10413 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' 10414 fi 10415 fi 10416 ;; 10417 10418 beos*) 10419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10420 allow_undefined_flag_CXX=unsupported 10421 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10422 # support --undefined. This deserves some investigation. FIXME 10423 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10424 else 10425 ld_shlibs_CXX=no 10426 fi 10427 ;; 10428 10429 chorus*) 10430 case $cc_basename in 10431 *) 10432 # FIXME: insert proper C++ library support 10433 ld_shlibs_CXX=no 10434 ;; 10435 esac 10436 ;; 10437 10438 cygwin* | mingw* | pw32*) 10439 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10440 # as there is no search path for DLLs. 10441 hardcode_libdir_flag_spec_CXX='-L$libdir' 10442 allow_undefined_flag_CXX=unsupported 10443 always_export_symbols_CXX=no 10444 enable_shared_with_static_runtimes_CXX=yes 10445 10446 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10447 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' 10448 # If the export-symbols file already is a .def file (1st line 10449 # is EXPORTS), use it as is; otherwise, prepend... 10450 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10451 cp $export_symbols $output_objdir/$soname.def; 10452 else 10453 echo EXPORTS > $output_objdir/$soname.def; 10454 cat $export_symbols >> $output_objdir/$soname.def; 10455 fi~ 10456 $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' 10457 else 10458 ld_shlibs_CXX=no 10459 fi 10460 ;; 10461 darwin* | rhapsody*) 10462 case $host_os in 10463 rhapsody* | darwin1.[012]) 10464 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10465 ;; 10466 *) # Darwin 1.3 on 10467 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10468 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10469 else 10470 case ${MACOSX_DEPLOYMENT_TARGET} in 10471 10.[012]) 10472 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10473 ;; 10474 10.*) 10475 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10476 ;; 10477 esac 10478 fi 10479 ;; 10480 esac 10481 archive_cmds_need_lc_CXX=no 10482 hardcode_direct_CXX=no 10483 hardcode_automatic_CXX=yes 10484 hardcode_shlibpath_var_CXX=unsupported 10485 whole_archive_flag_spec_CXX='' 10486 link_all_deplibs_CXX=yes 10487 10488 if test "$GXX" = yes ; then 10489 lt_int_apple_cc_single_mod=no 10490 output_verbose_link_cmd='echo' 10491 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10492 lt_int_apple_cc_single_mod=yes 10493 fi 10494 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10495 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10496 else 10497 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' 10498 fi 10499 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10501 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10502 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}' 10503 else 10504 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}' 10505 fi 10506 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}' 10507 else 10508 case $cc_basename in 10509 xlc*) 10510 output_verbose_link_cmd='echo' 10511 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' 10512 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10513 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10514 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}' 10515 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}' 10516 ;; 10517 *) 10518 ld_shlibs_CXX=no 10519 ;; 10520 esac 10521 fi 10522 ;; 10523 10524 dgux*) 10525 case $cc_basename in 10526 ec++*) 10527 # FIXME: insert proper C++ library support 10528 ld_shlibs_CXX=no 10529 ;; 10530 ghcx*) 10531 # Green Hills C++ Compiler 10532 # FIXME: insert proper C++ library support 10533 ld_shlibs_CXX=no 10534 ;; 10535 *) 10536 # FIXME: insert proper C++ library support 10537 ld_shlibs_CXX=no 10538 ;; 10539 esac 10540 ;; 10541 freebsd[12]*) 10542 # C++ shared libraries reported to be fairly broken before switch to ELF 10543 ld_shlibs_CXX=no 10544 ;; 10545 freebsd-elf*) 10546 archive_cmds_need_lc_CXX=no 10547 ;; 10548 freebsd* | kfreebsd*-gnu | dragonfly*) 10549 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10550 # conventions 10551 ld_shlibs_CXX=yes 10552 ;; 10553 gnu*) 10554 ;; 10555 hpux9*) 10556 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10557 hardcode_libdir_separator_CXX=: 10558 export_dynamic_flag_spec_CXX='${wl}-E' 10559 hardcode_direct_CXX=yes 10560 hardcode_minus_L_CXX=yes # Not in the search PATH, 10561 # but as the default 10562 # location of the library. 10563 10564 case $cc_basename in 10565 CC*) 10566 # FIXME: insert proper C++ library support 10567 ld_shlibs_CXX=no 10568 ;; 10569 aCC*) 10570 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' 10571 # Commands to make compiler produce verbose output that lists 10572 # what "hidden" libraries, object files and flags are used when 10573 # linking a shared library. 10574 # 10575 # There doesn't appear to be a way to prevent this compiler from 10576 # explicitly linking system object files so we need to strip them 10577 # from the output so that they don't get included in the library 10578 # dependencies. 10579 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' 10580 ;; 10581 *) 10582 if test "$GXX" = yes; then 10583 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' 10584 else 10585 # FIXME: insert proper C++ library support 10586 ld_shlibs_CXX=no 10587 fi 10588 ;; 10589 esac 10590 ;; 10591 hpux10*|hpux11*) 10592 if test $with_gnu_ld = no; then 10593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10594 hardcode_libdir_separator_CXX=: 10595 10596 case $host_cpu in 10597 hppa*64*|ia64*) 10598 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10599 ;; 10600 *) 10601 export_dynamic_flag_spec_CXX='${wl}-E' 10602 ;; 10603 esac 10604 fi 10605 case $host_cpu in 10606 hppa*64*|ia64*) 10607 hardcode_direct_CXX=no 10608 hardcode_shlibpath_var_CXX=no 10609 ;; 10610 *) 10611 hardcode_direct_CXX=yes 10612 hardcode_minus_L_CXX=yes # Not in the search PATH, 10613 # but as the default 10614 # location of the library. 10615 ;; 10616 esac 10617 10618 case $cc_basename in 10619 CC*) 10620 # FIXME: insert proper C++ library support 10621 ld_shlibs_CXX=no 10622 ;; 10623 aCC*) 10624 case $host_cpu in 10625 hppa*64*) 10626 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10627 ;; 10628 ia64*) 10629 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10630 ;; 10631 *) 10632 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10633 ;; 10634 esac 10635 # Commands to make compiler produce verbose output that lists 10636 # what "hidden" libraries, object files and flags are used when 10637 # linking a shared library. 10638 # 10639 # There doesn't appear to be a way to prevent this compiler from 10640 # explicitly linking system object files so we need to strip them 10641 # from the output so that they don't get included in the library 10642 # dependencies. 10643 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' 10644 ;; 10645 *) 10646 if test "$GXX" = yes; then 10647 if test $with_gnu_ld = no; then 10648 case $host_cpu in 10649 hppa*64*) 10650 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10651 ;; 10652 ia64*) 10653 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10654 ;; 10655 *) 10656 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' 10657 ;; 10658 esac 10659 fi 10660 else 10661 # FIXME: insert proper C++ library support 10662 ld_shlibs_CXX=no 10663 fi 10664 ;; 10665 esac 10666 ;; 10667 interix3*) 10668 hardcode_direct_CXX=no 10669 hardcode_shlibpath_var_CXX=no 10670 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10671 export_dynamic_flag_spec_CXX='${wl}-E' 10672 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10673 # Instead, shared libraries are loaded at an image base (0x10000000 by 10674 # default) and relocated if they conflict, which is a slow very memory 10675 # consuming and fragmenting process. To avoid this, we pick a random, 10676 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10677 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10678 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' 10679 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' 10680 ;; 10681 irix5* | irix6*) 10682 case $cc_basename in 10683 CC*) 10684 # SGI C++ 10685 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' 10686 10687 # Archives containing C++ object files must be created using 10688 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10689 # necessary to make sure instantiated templates are included 10690 # in the archive. 10691 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10692 ;; 10693 *) 10694 if test "$GXX" = yes; then 10695 if test "$with_gnu_ld" = no; then 10696 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' 10697 else 10698 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' 10699 fi 10700 fi 10701 link_all_deplibs_CXX=yes 10702 ;; 10703 esac 10704 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10705 hardcode_libdir_separator_CXX=: 10706 ;; 10707 linux*) 10708 case $cc_basename in 10709 KCC*) 10710 # Kuck and Associates, Inc. (KAI) C++ Compiler 10711 10712 # KCC will only create a shared library if the output file 10713 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10714 # to its proper name (with version) after linking. 10715 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' 10716 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' 10717 # Commands to make compiler produce verbose output that lists 10718 # what "hidden" libraries, object files and flags are used when 10719 # linking a shared library. 10720 # 10721 # There doesn't appear to be a way to prevent this compiler from 10722 # explicitly linking system object files so we need to strip them 10723 # from the output so that they don't get included in the library 10724 # dependencies. 10725 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' 10726 10727 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10728 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10729 10730 # Archives containing C++ object files must be created using 10731 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10732 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10733 ;; 10734 icpc*) 10735 # Intel C++ 10736 with_gnu_ld=yes 10737 # version 8.0 and above of icpc choke on multiply defined symbols 10738 # if we add $predep_objects and $postdep_objects, however 7.1 and 10739 # earlier do not add the objects themselves. 10740 case `$CC -V 2>&1` in 10741 *"Version 7."*) 10742 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10743 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' 10744 ;; 10745 *) # Version 8.0 or newer 10746 tmp_idyn= 10747 case $host_cpu in 10748 ia64*) tmp_idyn=' -i_dynamic';; 10749 esac 10750 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10751 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' 10752 ;; 10753 esac 10754 archive_cmds_need_lc_CXX=no 10755 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10757 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10758 ;; 10759 pgCC*) 10760 # Portland Group C++ compiler 10761 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10762 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' 10763 10764 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10766 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' 10767 ;; 10768 cxx*) 10769 # Compaq C++ 10770 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10771 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' 10772 10773 runpath_var=LD_RUN_PATH 10774 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10775 hardcode_libdir_separator_CXX=: 10776 10777 # Commands to make compiler produce verbose output that lists 10778 # what "hidden" libraries, object files and flags are used when 10779 # linking a shared library. 10780 # 10781 # There doesn't appear to be a way to prevent this compiler from 10782 # explicitly linking system object files so we need to strip them 10783 # from the output so that they don't get included in the library 10784 # dependencies. 10785 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' 10786 ;; 10787 esac 10788 ;; 10789 lynxos*) 10790 # FIXME: insert proper C++ library support 10791 ld_shlibs_CXX=no 10792 ;; 10793 m88k*) 10794 # FIXME: insert proper C++ library support 10795 ld_shlibs_CXX=no 10796 ;; 10797 mvs*) 10798 case $cc_basename in 10799 cxx*) 10800 # FIXME: insert proper C++ library support 10801 ld_shlibs_CXX=no 10802 ;; 10803 *) 10804 # FIXME: insert proper C++ library support 10805 ld_shlibs_CXX=no 10806 ;; 10807 esac 10808 ;; 10809 netbsd*) 10810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10811 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10812 wlarc= 10813 hardcode_libdir_flag_spec_CXX='-R$libdir' 10814 hardcode_direct_CXX=yes 10815 hardcode_shlibpath_var_CXX=no 10816 fi 10817 # Workaround some broken pre-1.5 toolchains 10818 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10819 ;; 10820 openbsd2*) 10821 # C++ shared libraries are fairly broken 10822 ld_shlibs_CXX=no 10823 ;; 10824 openbsd*) 10825 hardcode_direct_CXX=yes 10826 hardcode_shlibpath_var_CXX=no 10827 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10828 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10830 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10831 export_dynamic_flag_spec_CXX='${wl}-E' 10832 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10833 fi 10834 output_verbose_link_cmd='echo' 10835 ;; 10836 osf3*) 10837 case $cc_basename in 10838 KCC*) 10839 # Kuck and Associates, Inc. (KAI) C++ Compiler 10840 10841 # KCC will only create a shared library if the output file 10842 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10843 # to its proper name (with version) after linking. 10844 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' 10845 10846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10847 hardcode_libdir_separator_CXX=: 10848 10849 # Archives containing C++ object files must be created using 10850 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10851 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10852 10853 ;; 10854 RCC*) 10855 # Rational C++ 2.4.1 10856 # FIXME: insert proper C++ library support 10857 ld_shlibs_CXX=no 10858 ;; 10859 cxx*) 10860 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10861 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' 10862 10863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10864 hardcode_libdir_separator_CXX=: 10865 10866 # Commands to make compiler produce verbose output that lists 10867 # what "hidden" libraries, object files and flags are used when 10868 # linking a shared library. 10869 # 10870 # There doesn't appear to be a way to prevent this compiler from 10871 # explicitly linking system object files so we need to strip them 10872 # from the output so that they don't get included in the library 10873 # dependencies. 10874 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' 10875 ;; 10876 *) 10877 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10878 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10879 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' 10880 10881 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10882 hardcode_libdir_separator_CXX=: 10883 10884 # Commands to make compiler produce verbose output that lists 10885 # what "hidden" libraries, object files and flags are used when 10886 # linking a shared library. 10887 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10888 10889 else 10890 # FIXME: insert proper C++ library support 10891 ld_shlibs_CXX=no 10892 fi 10893 ;; 10894 esac 10895 ;; 10896 osf4* | osf5*) 10897 case $cc_basename in 10898 KCC*) 10899 # Kuck and Associates, Inc. (KAI) C++ Compiler 10900 10901 # KCC will only create a shared library if the output file 10902 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10903 # to its proper name (with version) after linking. 10904 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' 10905 10906 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10907 hardcode_libdir_separator_CXX=: 10908 10909 # Archives containing C++ object files must be created using 10910 # the KAI C++ compiler. 10911 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10912 ;; 10913 RCC*) 10914 # Rational C++ 2.4.1 10915 # FIXME: insert proper C++ library support 10916 ld_shlibs_CXX=no 10917 ;; 10918 cxx*) 10919 allow_undefined_flag_CXX=' -expect_unresolved \*' 10920 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' 10921 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10922 echo "-hidden">> $lib.exp~ 10923 $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~ 10924 $rm $lib.exp' 10925 10926 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10927 hardcode_libdir_separator_CXX=: 10928 10929 # Commands to make compiler produce verbose output that lists 10930 # what "hidden" libraries, object files and flags are used when 10931 # linking a shared library. 10932 # 10933 # There doesn't appear to be a way to prevent this compiler from 10934 # explicitly linking system object files so we need to strip them 10935 # from the output so that they don't get included in the library 10936 # dependencies. 10937 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' 10938 ;; 10939 *) 10940 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10941 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10942 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' 10943 10944 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10945 hardcode_libdir_separator_CXX=: 10946 10947 # Commands to make compiler produce verbose output that lists 10948 # what "hidden" libraries, object files and flags are used when 10949 # linking a shared library. 10950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10951 10952 else 10953 # FIXME: insert proper C++ library support 10954 ld_shlibs_CXX=no 10955 fi 10956 ;; 10957 esac 10958 ;; 10959 psos*) 10960 # FIXME: insert proper C++ library support 10961 ld_shlibs_CXX=no 10962 ;; 10963 sunos4*) 10964 case $cc_basename in 10965 CC*) 10966 # Sun C++ 4.x 10967 # FIXME: insert proper C++ library support 10968 ld_shlibs_CXX=no 10969 ;; 10970 lcc*) 10971 # Lucid 10972 # FIXME: insert proper C++ library support 10973 ld_shlibs_CXX=no 10974 ;; 10975 *) 10976 # FIXME: insert proper C++ library support 10977 ld_shlibs_CXX=no 10978 ;; 10979 esac 10980 ;; 10981 solaris*) 10982 case $cc_basename in 10983 CC*) 10984 # Sun C++ 4.2, 5.x and Centerline C++ 10985 archive_cmds_need_lc_CXX=yes 10986 no_undefined_flag_CXX=' -zdefs' 10987 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10988 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10989 $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' 10990 10991 hardcode_libdir_flag_spec_CXX='-R$libdir' 10992 hardcode_shlibpath_var_CXX=no 10993 case $host_os in 10994 solaris2.[0-5] | solaris2.[0-5].*) ;; 10995 *) 10996 # The C++ compiler is used as linker so we must use $wl 10997 # flag to pass the commands to the underlying system 10998 # linker. We must also pass each convience library through 10999 # to the system linker between allextract/defaultextract. 11000 # The C++ compiler will combine linker options so we 11001 # cannot just pass the convience library names through 11002 # without $wl. 11003 # Supported since Solaris 2.6 (maybe 2.5.1?) 11004 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' 11005 ;; 11006 esac 11007 link_all_deplibs_CXX=yes 11008 11009 output_verbose_link_cmd='echo' 11010 11011 # Archives containing C++ object files must be created using 11012 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11013 # necessary to make sure instantiated templates are included 11014 # in the archive. 11015 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11016 ;; 11017 gcx*) 11018 # Green Hills C++ Compiler 11019 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11020 11021 # The C++ compiler must be used to create the archive. 11022 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11023 ;; 11024 *) 11025 # GNU C++ compiler with Solaris linker 11026 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11027 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11028 if $CC --version | grep -v '^2\.7' > /dev/null; then 11029 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11030 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11031 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11032 11033 # Commands to make compiler produce verbose output that lists 11034 # what "hidden" libraries, object files and flags are used when 11035 # linking a shared library. 11036 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11037 else 11038 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11039 # platform. 11040 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11041 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11042 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11043 11044 # Commands to make compiler produce verbose output that lists 11045 # what "hidden" libraries, object files and flags are used when 11046 # linking a shared library. 11047 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11048 fi 11049 11050 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11051 fi 11052 ;; 11053 esac 11054 ;; 11055 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11056 no_undefined_flag_CXX='${wl}-z,text' 11057 archive_cmds_need_lc_CXX=no 11058 hardcode_shlibpath_var_CXX=no 11059 runpath_var='LD_RUN_PATH' 11060 11061 case $cc_basename in 11062 CC*) 11063 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11064 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11065 ;; 11066 *) 11067 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11068 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11069 ;; 11070 esac 11071 ;; 11072 sysv5* | sco3.2v5* | sco5v6*) 11073 # Note: We can NOT use -z defs as we might desire, because we do not 11074 # link with -lc, and that would cause any symbols used from libc to 11075 # always be unresolved, which means just about no library would 11076 # ever link correctly. If we're not using GNU ld we use -z text 11077 # though, which does catch some bad symbols but isn't as heavy-handed 11078 # as -z defs. 11079 # For security reasons, it is highly recommended that you always 11080 # use absolute paths for naming shared libraries, and exclude the 11081 # DT_RUNPATH tag from executables and libraries. But doing so 11082 # requires that you compile everything twice, which is a pain. 11083 # So that behaviour is only enabled if SCOABSPATH is set to a 11084 # non-empty value in the environment. Most likely only useful for 11085 # creating official distributions of packages. 11086 # This is a hack until libtool officially supports absolute path 11087 # names for shared libraries. 11088 no_undefined_flag_CXX='${wl}-z,text' 11089 allow_undefined_flag_CXX='${wl}-z,nodefs' 11090 archive_cmds_need_lc_CXX=no 11091 hardcode_shlibpath_var_CXX=no 11092 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11093 hardcode_libdir_separator_CXX=':' 11094 link_all_deplibs_CXX=yes 11095 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11096 runpath_var='LD_RUN_PATH' 11097 11098 case $cc_basename in 11099 CC*) 11100 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11101 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11102 ;; 11103 *) 11104 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11105 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11106 ;; 11107 esac 11108 ;; 11109 tandem*) 11110 case $cc_basename in 11111 NCC*) 11112 # NonStop-UX NCC 3.20 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 ;; 11120 esac 11121 ;; 11122 vxworks*) 11123 # FIXME: insert proper C++ library support 11124 ld_shlibs_CXX=no 11125 ;; 11126 *) 11127 # FIXME: insert proper C++ library support 11128 ld_shlibs_CXX=no 11129 ;; 11130esac 11131echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11132echo "${ECHO_T}$ld_shlibs_CXX" >&6 11133test "$ld_shlibs_CXX" = no && can_build_shared=no 11134 11135GCC_CXX="$GXX" 11136LD_CXX="$LD" 11137 11138 11139cat > conftest.$ac_ext <<EOF 11140class Foo 11141{ 11142public: 11143 Foo (void) { a = 0; } 11144private: 11145 int a; 11146}; 11147EOF 11148 11149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11150 (eval $ac_compile) 2>&5 11151 ac_status=$? 11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11153 (exit $ac_status); }; then 11154 # Parse the compiler output and extract the necessary 11155 # objects, libraries and library flags. 11156 11157 # Sentinel used to keep track of whether or not we are before 11158 # the conftest object file. 11159 pre_test_object_deps_done=no 11160 11161 # The `*' in the case matches for architectures that use `case' in 11162 # $output_verbose_cmd can trigger glob expansion during the loop 11163 # eval without this substitution. 11164 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11165 11166 for p in `eval $output_verbose_link_cmd`; do 11167 case $p in 11168 11169 -L* | -R* | -l*) 11170 # Some compilers place space between "-{L,R}" and the path. 11171 # Remove the space. 11172 if test $p = "-L" \ 11173 || test $p = "-R"; then 11174 prev=$p 11175 continue 11176 else 11177 prev= 11178 fi 11179 11180 if test "$pre_test_object_deps_done" = no; then 11181 case $p in 11182 -L* | -R*) 11183 # Internal compiler library paths should come after those 11184 # provided the user. The postdeps already come after the 11185 # user supplied libs so there is no need to process them. 11186 if test -z "$compiler_lib_search_path_CXX"; then 11187 compiler_lib_search_path_CXX="${prev}${p}" 11188 else 11189 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11190 fi 11191 ;; 11192 # The "-l" case would never come before the object being 11193 # linked, so don't bother handling this case. 11194 esac 11195 else 11196 if test -z "$postdeps_CXX"; then 11197 postdeps_CXX="${prev}${p}" 11198 else 11199 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11200 fi 11201 fi 11202 ;; 11203 11204 *.$objext) 11205 # This assumes that the test object file only shows up 11206 # once in the compiler output. 11207 if test "$p" = "conftest.$objext"; then 11208 pre_test_object_deps_done=yes 11209 continue 11210 fi 11211 11212 if test "$pre_test_object_deps_done" = no; then 11213 if test -z "$predep_objects_CXX"; then 11214 predep_objects_CXX="$p" 11215 else 11216 predep_objects_CXX="$predep_objects_CXX $p" 11217 fi 11218 else 11219 if test -z "$postdep_objects_CXX"; then 11220 postdep_objects_CXX="$p" 11221 else 11222 postdep_objects_CXX="$postdep_objects_CXX $p" 11223 fi 11224 fi 11225 ;; 11226 11227 *) ;; # Ignore the rest. 11228 11229 esac 11230 done 11231 11232 # Clean up. 11233 rm -f a.out a.exe 11234else 11235 echo "libtool.m4: error: problem compiling CXX test program" 11236fi 11237 11238$rm -f confest.$objext 11239 11240# PORTME: override above test on systems where it is broken 11241case $host_os in 11242interix3*) 11243 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11244 # hack all around it, let's just trust "g++" to DTRT. 11245 predep_objects_CXX= 11246 postdep_objects_CXX= 11247 postdeps_CXX= 11248 ;; 11249 11250solaris*) 11251 case $cc_basename in 11252 CC*) 11253 # Adding this requires a known-good setup of shared libraries for 11254 # Sun compiler versions before 5.6, else PIC objects from an old 11255 # archive will be linked into the output, leading to subtle bugs. 11256 postdeps_CXX='-lCstd -lCrun' 11257 ;; 11258 esac 11259 ;; 11260esac 11261 11262 11263case " $postdeps_CXX " in 11264*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11265esac 11266 11267lt_prog_compiler_wl_CXX= 11268lt_prog_compiler_pic_CXX= 11269lt_prog_compiler_static_CXX= 11270 11271echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11272echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11273 11274 # C++ specific cases for pic, static, wl, etc. 11275 if test "$GXX" = yes; then 11276 lt_prog_compiler_wl_CXX='-Wl,' 11277 lt_prog_compiler_static_CXX='-static' 11278 11279 case $host_os in 11280 aix*) 11281 # All AIX code is PIC. 11282 if test "$host_cpu" = ia64; then 11283 # AIX 5 now supports IA64 processor 11284 lt_prog_compiler_static_CXX='-Bstatic' 11285 fi 11286 ;; 11287 amigaos*) 11288 # FIXME: we need at least 68020 code to build shared libraries, but 11289 # adding the `-m68020' flag to GCC prevents building anything better, 11290 # like `-m68040'. 11291 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11292 ;; 11293 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11294 # PIC is the default for these OSes. 11295 ;; 11296 mingw* | os2* | pw32*) 11297 # This hack is so that the source file can tell whether it is being 11298 # built for inclusion in a dll (and should export symbols for example). 11299 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11300 ;; 11301 darwin* | rhapsody*) 11302 # PIC is the default on this platform 11303 # Common symbols not allowed in MH_DYLIB files 11304 lt_prog_compiler_pic_CXX='-fno-common' 11305 ;; 11306 *djgpp*) 11307 # DJGPP does not support shared libraries at all 11308 lt_prog_compiler_pic_CXX= 11309 ;; 11310 interix3*) 11311 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11312 # Instead, we relocate shared libraries at runtime. 11313 ;; 11314 sysv4*MP*) 11315 if test -d /usr/nec; then 11316 lt_prog_compiler_pic_CXX=-Kconform_pic 11317 fi 11318 ;; 11319 hpux*) 11320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11321 # not for PA HP-UX. 11322 case $host_cpu in 11323 hppa*64*|ia64*) 11324 ;; 11325 *) 11326 lt_prog_compiler_pic_CXX='-fPIC' 11327 ;; 11328 esac 11329 ;; 11330 *) 11331 lt_prog_compiler_pic_CXX='-fPIC' 11332 ;; 11333 esac 11334 else 11335 case $host_os in 11336 aix4* | aix5*) 11337 # All AIX code is PIC. 11338 if test "$host_cpu" = ia64; then 11339 # AIX 5 now supports IA64 processor 11340 lt_prog_compiler_static_CXX='-Bstatic' 11341 else 11342 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11343 fi 11344 ;; 11345 chorus*) 11346 case $cc_basename in 11347 cxch68*) 11348 # Green Hills C++ Compiler 11349 # _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" 11350 ;; 11351 esac 11352 ;; 11353 darwin*) 11354 # PIC is the default on this platform 11355 # Common symbols not allowed in MH_DYLIB files 11356 case $cc_basename in 11357 xlc*) 11358 lt_prog_compiler_pic_CXX='-qnocommon' 11359 lt_prog_compiler_wl_CXX='-Wl,' 11360 ;; 11361 esac 11362 ;; 11363 dgux*) 11364 case $cc_basename in 11365 ec++*) 11366 lt_prog_compiler_pic_CXX='-KPIC' 11367 ;; 11368 ghcx*) 11369 # Green Hills C++ Compiler 11370 lt_prog_compiler_pic_CXX='-pic' 11371 ;; 11372 *) 11373 ;; 11374 esac 11375 ;; 11376 freebsd* | kfreebsd*-gnu | dragonfly*) 11377 # FreeBSD uses GNU C++ 11378 ;; 11379 hpux9* | hpux10* | hpux11*) 11380 case $cc_basename in 11381 CC*) 11382 lt_prog_compiler_wl_CXX='-Wl,' 11383 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11384 if test "$host_cpu" != ia64; then 11385 lt_prog_compiler_pic_CXX='+Z' 11386 fi 11387 ;; 11388 aCC*) 11389 lt_prog_compiler_wl_CXX='-Wl,' 11390 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11391 case $host_cpu in 11392 hppa*64*|ia64*) 11393 # +Z the default 11394 ;; 11395 *) 11396 lt_prog_compiler_pic_CXX='+Z' 11397 ;; 11398 esac 11399 ;; 11400 *) 11401 ;; 11402 esac 11403 ;; 11404 interix*) 11405 # This is c89, which is MS Visual C++ (no shared libs) 11406 # Anyone wants to do a port? 11407 ;; 11408 irix5* | irix6* | nonstopux*) 11409 case $cc_basename in 11410 CC*) 11411 lt_prog_compiler_wl_CXX='-Wl,' 11412 lt_prog_compiler_static_CXX='-non_shared' 11413 # CC pic flag -KPIC is the default. 11414 ;; 11415 *) 11416 ;; 11417 esac 11418 ;; 11419 linux*) 11420 case $cc_basename in 11421 KCC*) 11422 # KAI C++ Compiler 11423 lt_prog_compiler_wl_CXX='--backend -Wl,' 11424 lt_prog_compiler_pic_CXX='-fPIC' 11425 ;; 11426 icpc* | ecpc*) 11427 # Intel C++ 11428 lt_prog_compiler_wl_CXX='-Wl,' 11429 lt_prog_compiler_pic_CXX='-KPIC' 11430 lt_prog_compiler_static_CXX='-static' 11431 ;; 11432 pgCC*) 11433 # Portland Group C++ compiler. 11434 lt_prog_compiler_wl_CXX='-Wl,' 11435 lt_prog_compiler_pic_CXX='-fpic' 11436 lt_prog_compiler_static_CXX='-Bstatic' 11437 ;; 11438 cxx*) 11439 # Compaq C++ 11440 # Make sure the PIC flag is empty. It appears that all Alpha 11441 # Linux and Compaq Tru64 Unix objects are PIC. 11442 lt_prog_compiler_pic_CXX= 11443 lt_prog_compiler_static_CXX='-non_shared' 11444 ;; 11445 *) 11446 ;; 11447 esac 11448 ;; 11449 lynxos*) 11450 ;; 11451 m88k*) 11452 ;; 11453 mvs*) 11454 case $cc_basename in 11455 cxx*) 11456 lt_prog_compiler_pic_CXX='-W c,exportall' 11457 ;; 11458 *) 11459 ;; 11460 esac 11461 ;; 11462 netbsd*) 11463 ;; 11464 osf3* | osf4* | osf5*) 11465 case $cc_basename in 11466 KCC*) 11467 lt_prog_compiler_wl_CXX='--backend -Wl,' 11468 ;; 11469 RCC*) 11470 # Rational C++ 2.4.1 11471 lt_prog_compiler_pic_CXX='-pic' 11472 ;; 11473 cxx*) 11474 # Digital/Compaq C++ 11475 lt_prog_compiler_wl_CXX='-Wl,' 11476 # Make sure the PIC flag is empty. It appears that all Alpha 11477 # Linux and Compaq Tru64 Unix objects are PIC. 11478 lt_prog_compiler_pic_CXX= 11479 lt_prog_compiler_static_CXX='-non_shared' 11480 ;; 11481 *) 11482 ;; 11483 esac 11484 ;; 11485 psos*) 11486 ;; 11487 solaris*) 11488 case $cc_basename in 11489 CC*) 11490 # Sun C++ 4.2, 5.x and Centerline C++ 11491 lt_prog_compiler_pic_CXX='-KPIC' 11492 lt_prog_compiler_static_CXX='-Bstatic' 11493 lt_prog_compiler_wl_CXX='-Qoption ld ' 11494 ;; 11495 gcx*) 11496 # Green Hills C++ Compiler 11497 lt_prog_compiler_pic_CXX='-PIC' 11498 ;; 11499 *) 11500 ;; 11501 esac 11502 ;; 11503 sunos4*) 11504 case $cc_basename in 11505 CC*) 11506 # Sun C++ 4.x 11507 lt_prog_compiler_pic_CXX='-pic' 11508 lt_prog_compiler_static_CXX='-Bstatic' 11509 ;; 11510 lcc*) 11511 # Lucid 11512 lt_prog_compiler_pic_CXX='-pic' 11513 ;; 11514 *) 11515 ;; 11516 esac 11517 ;; 11518 tandem*) 11519 case $cc_basename in 11520 NCC*) 11521 # NonStop-UX NCC 3.20 11522 lt_prog_compiler_pic_CXX='-KPIC' 11523 ;; 11524 *) 11525 ;; 11526 esac 11527 ;; 11528 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11529 case $cc_basename in 11530 CC*) 11531 lt_prog_compiler_wl_CXX='-Wl,' 11532 lt_prog_compiler_pic_CXX='-KPIC' 11533 lt_prog_compiler_static_CXX='-Bstatic' 11534 ;; 11535 esac 11536 ;; 11537 vxworks*) 11538 ;; 11539 *) 11540 lt_prog_compiler_can_build_shared_CXX=no 11541 ;; 11542 esac 11543 fi 11544 11545echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11546echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11547 11548# 11549# Check to make sure the PIC flag actually works. 11550# 11551if test -n "$lt_prog_compiler_pic_CXX"; then 11552 11553echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11554echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11555if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11556 echo $ECHO_N "(cached) $ECHO_C" >&6 11557else 11558 lt_prog_compiler_pic_works_CXX=no 11559 ac_outfile=conftest.$ac_objext 11560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11561 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11562 # Insert the option either (1) after the last *FLAGS variable, or 11563 # (2) before a word containing "conftest.", or (3) at the end. 11564 # Note that $ac_compile itself does not contain backslashes and begins 11565 # with a dollar sign (not a hyphen), so the echo should work correctly. 11566 # The option is referenced via a variable to avoid confusing sed. 11567 lt_compile=`echo "$ac_compile" | $SED \ 11568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11570 -e 's:$: $lt_compiler_flag:'` 11571 (eval echo "\"\$as_me:11571: $lt_compile\"" >&5) 11572 (eval "$lt_compile" 2>conftest.err) 11573 ac_status=$? 11574 cat conftest.err >&5 11575 echo "$as_me:11575: \$? = $ac_status" >&5 11576 if (exit $ac_status) && test -s "$ac_outfile"; then 11577 # The compiler can only warn and ignore the option if not recognized 11578 # So say no if there are warnings other than the usual output. 11579 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11582 lt_prog_compiler_pic_works_CXX=yes 11583 fi 11584 fi 11585 $rm conftest* 11586 11587fi 11588echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11589echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11590 11591if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11592 case $lt_prog_compiler_pic_CXX in 11593 "" | " "*) ;; 11594 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11595 esac 11596else 11597 lt_prog_compiler_pic_CXX= 11598 lt_prog_compiler_can_build_shared_CXX=no 11599fi 11600 11601fi 11602case $host_os in 11603 # For platforms which do not support PIC, -DPIC is meaningless: 11604 *djgpp*) 11605 lt_prog_compiler_pic_CXX= 11606 ;; 11607 *) 11608 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11609 ;; 11610esac 11611 11612# 11613# Check to make sure the static flag actually works. 11614# 11615wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11616echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11617echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11618if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11619 echo $ECHO_N "(cached) $ECHO_C" >&6 11620else 11621 lt_prog_compiler_static_works_CXX=no 11622 save_LDFLAGS="$LDFLAGS" 11623 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11624 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11625 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11626 # The linker can only warn and ignore the option if not recognized 11627 # So say no if there are warnings 11628 if test -s conftest.err; then 11629 # Append any errors to the config.log. 11630 cat conftest.err 1>&5 11631 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11633 if diff conftest.exp conftest.er2 >/dev/null; then 11634 lt_prog_compiler_static_works_CXX=yes 11635 fi 11636 else 11637 lt_prog_compiler_static_works_CXX=yes 11638 fi 11639 fi 11640 $rm conftest* 11641 LDFLAGS="$save_LDFLAGS" 11642 11643fi 11644echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11645echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11646 11647if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11648 : 11649else 11650 lt_prog_compiler_static_CXX= 11651fi 11652 11653 11654echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11655echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11656if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11657 echo $ECHO_N "(cached) $ECHO_C" >&6 11658else 11659 lt_cv_prog_compiler_c_o_CXX=no 11660 $rm -r conftest 2>/dev/null 11661 mkdir conftest 11662 cd conftest 11663 mkdir out 11664 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11665 11666 lt_compiler_flag="-o out/conftest2.$ac_objext" 11667 # Insert the option either (1) after the last *FLAGS variable, or 11668 # (2) before a word containing "conftest.", or (3) at the end. 11669 # Note that $ac_compile itself does not contain backslashes and begins 11670 # with a dollar sign (not a hyphen), so the echo should work correctly. 11671 lt_compile=`echo "$ac_compile" | $SED \ 11672 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11674 -e 's:$: $lt_compiler_flag:'` 11675 (eval echo "\"\$as_me:11675: $lt_compile\"" >&5) 11676 (eval "$lt_compile" 2>out/conftest.err) 11677 ac_status=$? 11678 cat out/conftest.err >&5 11679 echo "$as_me:11679: \$? = $ac_status" >&5 11680 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11681 then 11682 # The compiler can only warn and ignore the option if not recognized 11683 # So say no if there are warnings 11684 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11685 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11686 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11687 lt_cv_prog_compiler_c_o_CXX=yes 11688 fi 11689 fi 11690 chmod u+w . 2>&5 11691 $rm conftest* 11692 # SGI C++ compiler will create directory out/ii_files/ for 11693 # template instantiation 11694 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11695 $rm out/* && rmdir out 11696 cd .. 11697 rmdir conftest 11698 $rm conftest* 11699 11700fi 11701echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11702echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11703 11704 11705hard_links="nottested" 11706if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11707 # do not overwrite the value of need_locks provided by the user 11708 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11709echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11710 hard_links=yes 11711 $rm conftest* 11712 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11713 touch conftest.a 11714 ln conftest.a conftest.b 2>&5 || hard_links=no 11715 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11716 echo "$as_me:$LINENO: result: $hard_links" >&5 11717echo "${ECHO_T}$hard_links" >&6 11718 if test "$hard_links" = no; then 11719 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11720echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11721 need_locks=warn 11722 fi 11723else 11724 need_locks=no 11725fi 11726 11727echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11728echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11729 11730 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11731 case $host_os in 11732 aix4* | aix5*) 11733 # If we're using GNU nm, then we don't want the "-C" option. 11734 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11735 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11736 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' 11737 else 11738 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' 11739 fi 11740 ;; 11741 pw32*) 11742 export_symbols_cmds_CXX="$ltdll_cmds" 11743 ;; 11744 cygwin* | mingw*) 11745 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' 11746 ;; 11747 *) 11748 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11749 ;; 11750 esac 11751 11752echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11753echo "${ECHO_T}$ld_shlibs_CXX" >&6 11754test "$ld_shlibs_CXX" = no && can_build_shared=no 11755 11756# 11757# Do we need to explicitly link libc? 11758# 11759case "x$archive_cmds_need_lc_CXX" in 11760x|xyes) 11761 # Assume -lc should be added 11762 archive_cmds_need_lc_CXX=yes 11763 11764 if test "$enable_shared" = yes && test "$GCC" = yes; then 11765 case $archive_cmds_CXX in 11766 *'~'*) 11767 # FIXME: we may have to deal with multi-command sequences. 11768 ;; 11769 '$CC '*) 11770 # Test whether the compiler implicitly links with -lc since on some 11771 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11772 # to ld, don't add -lc before -lgcc. 11773 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11774echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11775 $rm conftest* 11776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11777 11778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11779 (eval $ac_compile) 2>&5 11780 ac_status=$? 11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11782 (exit $ac_status); } 2>conftest.err; then 11783 soname=conftest 11784 lib=conftest 11785 libobjs=conftest.$ac_objext 11786 deplibs= 11787 wl=$lt_prog_compiler_wl_CXX 11788 pic_flag=$lt_prog_compiler_pic_CXX 11789 compiler_flags=-v 11790 linker_flags=-v 11791 verstring= 11792 output_objdir=. 11793 libname=conftest 11794 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11795 allow_undefined_flag_CXX= 11796 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11797 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11798 ac_status=$? 11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11800 (exit $ac_status); } 11801 then 11802 archive_cmds_need_lc_CXX=no 11803 else 11804 archive_cmds_need_lc_CXX=yes 11805 fi 11806 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11807 else 11808 cat conftest.err 1>&5 11809 fi 11810 $rm conftest* 11811 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11812echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11813 ;; 11814 esac 11815 fi 11816 ;; 11817esac 11818 11819echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11820echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11821library_names_spec= 11822libname_spec='lib$name' 11823soname_spec= 11824shrext_cmds=".so" 11825postinstall_cmds= 11826postuninstall_cmds= 11827finish_cmds= 11828finish_eval= 11829shlibpath_var= 11830shlibpath_overrides_runpath=unknown 11831version_type=none 11832dynamic_linker="$host_os ld.so" 11833sys_lib_dlsearch_path_spec="/lib /usr/lib" 11834if test "$GCC" = yes; then 11835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11836 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11837 # if the path contains ";" then we assume it to be the separator 11838 # otherwise default to the standard path separator (i.e. ":") - it is 11839 # assumed that no part of a normal pathname contains ";" but that should 11840 # okay in the real world where ";" in dirpaths is itself problematic. 11841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11842 else 11843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11844 fi 11845else 11846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11847fi 11848need_lib_prefix=unknown 11849hardcode_into_libs=no 11850 11851# when you set need_version to no, make sure it does not cause -set_version 11852# flags to be left without arguments 11853need_version=unknown 11854 11855case $host_os in 11856aix3*) 11857 version_type=linux 11858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11859 shlibpath_var=LIBPATH 11860 11861 # AIX 3 has no versioning support, so we append a major version to the name. 11862 soname_spec='${libname}${release}${shared_ext}$major' 11863 ;; 11864 11865aix4* | aix5*) 11866 version_type=linux 11867 need_lib_prefix=no 11868 need_version=no 11869 hardcode_into_libs=yes 11870 if test "$host_cpu" = ia64; then 11871 # AIX 5 supports IA64 11872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11873 shlibpath_var=LD_LIBRARY_PATH 11874 else 11875 # With GCC up to 2.95.x, collect2 would create an import file 11876 # for dependence libraries. The import file would start with 11877 # the line `#! .'. This would cause the generated library to 11878 # depend on `.', always an invalid library. This was fixed in 11879 # development snapshots of GCC prior to 3.0. 11880 case $host_os in 11881 aix4 | aix4.[01] | aix4.[01].*) 11882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11883 echo ' yes ' 11884 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11885 : 11886 else 11887 can_build_shared=no 11888 fi 11889 ;; 11890 esac 11891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11892 # soname into executable. Probably we can add versioning support to 11893 # collect2, so additional links can be useful in future. 11894 if test "$aix_use_runtimelinking" = yes; then 11895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11896 # instead of lib<name>.a to let people know that these are not 11897 # typical AIX shared libraries. 11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11899 else 11900 # We preserve .a as extension for shared libraries through AIX4.2 11901 # and later when we are not doing run time linking. 11902 library_names_spec='${libname}${release}.a $libname.a' 11903 soname_spec='${libname}${release}${shared_ext}$major' 11904 fi 11905 shlibpath_var=LIBPATH 11906 fi 11907 ;; 11908 11909amigaos*) 11910 library_names_spec='$libname.ixlibrary $libname.a' 11911 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11912 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' 11913 ;; 11914 11915beos*) 11916 library_names_spec='${libname}${shared_ext}' 11917 dynamic_linker="$host_os ld.so" 11918 shlibpath_var=LIBRARY_PATH 11919 ;; 11920 11921bsdi[45]*) 11922 version_type=linux 11923 need_version=no 11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11925 soname_spec='${libname}${release}${shared_ext}$major' 11926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11927 shlibpath_var=LD_LIBRARY_PATH 11928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11930 # the default ld.so.conf also contains /usr/contrib/lib and 11931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11932 # libtool to hard-code these into programs 11933 ;; 11934 11935cygwin* | mingw* | pw32*) 11936 version_type=windows 11937 shrext_cmds=".dll" 11938 need_version=no 11939 need_lib_prefix=no 11940 11941 case $GCC,$host_os in 11942 yes,cygwin* | yes,mingw* | yes,pw32*) 11943 library_names_spec='$libname.dll.a' 11944 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11945 postinstall_cmds='base_file=`basename \${file}`~ 11946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11947 dldir=$destdir/`dirname \$dlpath`~ 11948 test -d \$dldir || mkdir -p \$dldir~ 11949 $install_prog $dir/$dlname \$dldir/$dlname~ 11950 chmod a+x \$dldir/$dlname' 11951 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11952 dlpath=$dir/\$dldll~ 11953 $rm \$dlpath' 11954 shlibpath_overrides_runpath=yes 11955 11956 case $host_os in 11957 cygwin*) 11958 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11959 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11960 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11961 ;; 11962 mingw*) 11963 # MinGW DLLs use traditional 'lib' prefix 11964 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11966 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11967 # It is most probably a Windows format PATH printed by 11968 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11969 # path with ; separators, and with drive letters. We can handle the 11970 # drive letters (cygwin fileutils understands them), so leave them, 11971 # especially as we might pass files found there to a mingw objdump, 11972 # which wouldn't understand a cygwinified path. Ahh. 11973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11974 else 11975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11976 fi 11977 ;; 11978 pw32*) 11979 # pw32 DLLs use 'pw' prefix rather than 'lib' 11980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11981 ;; 11982 esac 11983 ;; 11984 11985 *) 11986 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11987 ;; 11988 esac 11989 dynamic_linker='Win32 ld.exe' 11990 # FIXME: first we should search . and the directory the executable is in 11991 shlibpath_var=PATH 11992 ;; 11993 11994darwin* | rhapsody*) 11995 dynamic_linker="$host_os dyld" 11996 version_type=darwin 11997 need_lib_prefix=no 11998 need_version=no 11999 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12000 soname_spec='${libname}${release}${major}$shared_ext' 12001 shlibpath_overrides_runpath=yes 12002 shlibpath_var=DYLD_LIBRARY_PATH 12003 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12004 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12005 if test "$GCC" = yes; then 12006 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"` 12007 else 12008 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12009 fi 12010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12011 ;; 12012 12013dgux*) 12014 version_type=linux 12015 need_lib_prefix=no 12016 need_version=no 12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12018 soname_spec='${libname}${release}${shared_ext}$major' 12019 shlibpath_var=LD_LIBRARY_PATH 12020 ;; 12021 12022freebsd1*) 12023 dynamic_linker=no 12024 ;; 12025 12026kfreebsd*-gnu) 12027 version_type=linux 12028 need_lib_prefix=no 12029 need_version=no 12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12031 soname_spec='${libname}${release}${shared_ext}$major' 12032 shlibpath_var=LD_LIBRARY_PATH 12033 shlibpath_overrides_runpath=no 12034 hardcode_into_libs=yes 12035 dynamic_linker='GNU ld.so' 12036 ;; 12037 12038freebsd* | dragonfly*) 12039 # DragonFly does not have aout. When/if they implement a new 12040 # versioning mechanism, adjust this. 12041 if test -x /usr/bin/objformat; then 12042 objformat=`/usr/bin/objformat` 12043 else 12044 case $host_os in 12045 freebsd[123]*) objformat=aout ;; 12046 *) objformat=elf ;; 12047 esac 12048 fi 12049 version_type=freebsd-$objformat 12050 case $version_type in 12051 freebsd-elf*) 12052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12053 need_version=no 12054 need_lib_prefix=no 12055 ;; 12056 freebsd-*) 12057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12058 need_version=yes 12059 ;; 12060 esac 12061 shlibpath_var=LD_LIBRARY_PATH 12062 case $host_os in 12063 freebsd2*) 12064 shlibpath_overrides_runpath=yes 12065 ;; 12066 freebsd3.[01]* | freebsdelf3.[01]*) 12067 shlibpath_overrides_runpath=yes 12068 hardcode_into_libs=yes 12069 ;; 12070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12072 shlibpath_overrides_runpath=no 12073 hardcode_into_libs=yes 12074 ;; 12075 freebsd*) # from 4.6 on 12076 shlibpath_overrides_runpath=yes 12077 hardcode_into_libs=yes 12078 ;; 12079 esac 12080 ;; 12081 12082gnu*) 12083 version_type=linux 12084 need_lib_prefix=no 12085 need_version=no 12086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12087 soname_spec='${libname}${release}${shared_ext}$major' 12088 shlibpath_var=LD_LIBRARY_PATH 12089 hardcode_into_libs=yes 12090 ;; 12091 12092hpux9* | hpux10* | hpux11*) 12093 # Give a soname corresponding to the major version so that dld.sl refuses to 12094 # link against other versions. 12095 version_type=sunos 12096 need_lib_prefix=no 12097 need_version=no 12098 case $host_cpu in 12099 ia64*) 12100 shrext_cmds='.so' 12101 hardcode_into_libs=yes 12102 dynamic_linker="$host_os dld.so" 12103 shlibpath_var=LD_LIBRARY_PATH 12104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12106 soname_spec='${libname}${release}${shared_ext}$major' 12107 if test "X$HPUX_IA64_MODE" = X32; then 12108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12109 else 12110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12111 fi 12112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12113 ;; 12114 hppa*64*) 12115 shrext_cmds='.sl' 12116 hardcode_into_libs=yes 12117 dynamic_linker="$host_os dld.sl" 12118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12124 ;; 12125 *) 12126 shrext_cmds='.sl' 12127 dynamic_linker="$host_os dld.sl" 12128 shlibpath_var=SHLIB_PATH 12129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12131 soname_spec='${libname}${release}${shared_ext}$major' 12132 ;; 12133 esac 12134 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12135 postinstall_cmds='chmod 555 $lib' 12136 ;; 12137 12138interix3*) 12139 version_type=linux 12140 need_lib_prefix=no 12141 need_version=no 12142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12143 soname_spec='${libname}${release}${shared_ext}$major' 12144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12145 shlibpath_var=LD_LIBRARY_PATH 12146 shlibpath_overrides_runpath=no 12147 hardcode_into_libs=yes 12148 ;; 12149 12150irix5* | irix6* | nonstopux*) 12151 case $host_os in 12152 nonstopux*) version_type=nonstopux ;; 12153 *) 12154 if test "$lt_cv_prog_gnu_ld" = yes; then 12155 version_type=linux 12156 else 12157 version_type=irix 12158 fi ;; 12159 esac 12160 need_lib_prefix=no 12161 need_version=no 12162 soname_spec='${libname}${release}${shared_ext}$major' 12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12164 case $host_os in 12165 irix5* | nonstopux*) 12166 libsuff= shlibsuff= 12167 ;; 12168 *) 12169 case $LD in # libtool.m4 will add one of these switches to LD 12170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12171 libsuff= shlibsuff= libmagic=32-bit;; 12172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12173 libsuff=32 shlibsuff=N32 libmagic=N32;; 12174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12175 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12176 *) libsuff= shlibsuff= libmagic=never-match;; 12177 esac 12178 ;; 12179 esac 12180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12181 shlibpath_overrides_runpath=no 12182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12184 hardcode_into_libs=yes 12185 ;; 12186 12187# No shared lib support for Linux oldld, aout, or coff. 12188linux*oldld* | linux*aout* | linux*coff*) 12189 dynamic_linker=no 12190 ;; 12191 12192# This must be Linux ELF. 12193linux*) 12194 version_type=linux 12195 need_lib_prefix=no 12196 need_version=no 12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12198 soname_spec='${libname}${release}${shared_ext}$major' 12199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12200 shlibpath_var=LD_LIBRARY_PATH 12201 shlibpath_overrides_runpath=no 12202 # This implies no fast_install, which is unacceptable. 12203 # Some rework will be needed to allow for fast_install 12204 # before this can be enabled. 12205 hardcode_into_libs=yes 12206 12207 # find out which ABI we are using 12208 libsuff= 12209 case "$host_cpu" in 12210 x86_64*|s390x*|powerpc64*) 12211 echo '#line 12211 "configure"' > conftest.$ac_ext 12212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12213 (eval $ac_compile) 2>&5 12214 ac_status=$? 12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12216 (exit $ac_status); }; then 12217 case `/usr/bin/file conftest.$ac_objext` in 12218 *64-bit*) 12219 libsuff=64 12220 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 12221 ;; 12222 esac 12223 fi 12224 rm -rf conftest* 12225 ;; 12226 esac 12227 12228 # Append ld.so.conf contents to the search path 12229 if test -f /etc/ld.so.conf; then 12230 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12231 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 12232 fi 12233 12234 # We used to test for /lib/ld.so.1 and disable shared libraries on 12235 # powerpc, because MkLinux only supported shared libraries with the 12236 # GNU dynamic linker. Since this was broken with cross compilers, 12237 # most powerpc-linux boxes support dynamic linking these days and 12238 # people can always --disable-shared, the test was removed, and we 12239 # assume the GNU/Linux dynamic linker is in use. 12240 dynamic_linker='GNU/Linux ld.so' 12241 ;; 12242 12243knetbsd*-gnu) 12244 version_type=linux 12245 need_lib_prefix=no 12246 need_version=no 12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12248 soname_spec='${libname}${release}${shared_ext}$major' 12249 shlibpath_var=LD_LIBRARY_PATH 12250 shlibpath_overrides_runpath=no 12251 hardcode_into_libs=yes 12252 dynamic_linker='GNU ld.so' 12253 ;; 12254 12255netbsd*) 12256 version_type=sunos 12257 need_lib_prefix=no 12258 need_version=no 12259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12262 dynamic_linker='NetBSD (a.out) ld.so' 12263 else 12264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12265 soname_spec='${libname}${release}${shared_ext}$major' 12266 dynamic_linker='NetBSD ld.elf_so' 12267 fi 12268 shlibpath_var=LD_LIBRARY_PATH 12269 shlibpath_overrides_runpath=yes 12270 hardcode_into_libs=yes 12271 ;; 12272 12273newsos6) 12274 version_type=linux 12275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12276 shlibpath_var=LD_LIBRARY_PATH 12277 shlibpath_overrides_runpath=yes 12278 ;; 12279 12280nto-qnx*) 12281 version_type=linux 12282 need_lib_prefix=no 12283 need_version=no 12284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12285 soname_spec='${libname}${release}${shared_ext}$major' 12286 shlibpath_var=LD_LIBRARY_PATH 12287 shlibpath_overrides_runpath=yes 12288 ;; 12289 12290openbsd*) 12291 version_type=sunos 12292 sys_lib_dlsearch_path_spec="/usr/lib" 12293 need_lib_prefix=no 12294 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12295 case $host_os in 12296 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12297 *) need_version=no ;; 12298 esac 12299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12301 shlibpath_var=LD_LIBRARY_PATH 12302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12303 case $host_os in 12304 openbsd2.[89] | openbsd2.[89].*) 12305 shlibpath_overrides_runpath=no 12306 ;; 12307 *) 12308 shlibpath_overrides_runpath=yes 12309 ;; 12310 esac 12311 else 12312 shlibpath_overrides_runpath=yes 12313 fi 12314 ;; 12315 12316os2*) 12317 libname_spec='$name' 12318 shrext_cmds=".dll" 12319 need_lib_prefix=no 12320 library_names_spec='$libname${shared_ext} $libname.a' 12321 dynamic_linker='OS/2 ld.exe' 12322 shlibpath_var=LIBPATH 12323 ;; 12324 12325osf3* | osf4* | osf5*) 12326 version_type=osf 12327 need_lib_prefix=no 12328 need_version=no 12329 soname_spec='${libname}${release}${shared_ext}$major' 12330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12331 shlibpath_var=LD_LIBRARY_PATH 12332 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12333 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12334 ;; 12335 12336solaris*) 12337 version_type=linux 12338 need_lib_prefix=no 12339 need_version=no 12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12341 soname_spec='${libname}${release}${shared_ext}$major' 12342 shlibpath_var=LD_LIBRARY_PATH 12343 shlibpath_overrides_runpath=yes 12344 hardcode_into_libs=yes 12345 # ldd complains unless libraries are executable 12346 postinstall_cmds='chmod +x $lib' 12347 ;; 12348 12349sunos4*) 12350 version_type=sunos 12351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12352 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12353 shlibpath_var=LD_LIBRARY_PATH 12354 shlibpath_overrides_runpath=yes 12355 if test "$with_gnu_ld" = yes; then 12356 need_lib_prefix=no 12357 fi 12358 need_version=yes 12359 ;; 12360 12361sysv4 | sysv4.3*) 12362 version_type=linux 12363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12364 soname_spec='${libname}${release}${shared_ext}$major' 12365 shlibpath_var=LD_LIBRARY_PATH 12366 case $host_vendor in 12367 sni) 12368 shlibpath_overrides_runpath=no 12369 need_lib_prefix=no 12370 export_dynamic_flag_spec='${wl}-Blargedynsym' 12371 runpath_var=LD_RUN_PATH 12372 ;; 12373 siemens) 12374 need_lib_prefix=no 12375 ;; 12376 motorola) 12377 need_lib_prefix=no 12378 need_version=no 12379 shlibpath_overrides_runpath=no 12380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12381 ;; 12382 esac 12383 ;; 12384 12385sysv4*MP*) 12386 if test -d /usr/nec ;then 12387 version_type=linux 12388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12389 soname_spec='$libname${shared_ext}.$major' 12390 shlibpath_var=LD_LIBRARY_PATH 12391 fi 12392 ;; 12393 12394sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12395 version_type=freebsd-elf 12396 need_lib_prefix=no 12397 need_version=no 12398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12399 soname_spec='${libname}${release}${shared_ext}$major' 12400 shlibpath_var=LD_LIBRARY_PATH 12401 hardcode_into_libs=yes 12402 if test "$with_gnu_ld" = yes; then 12403 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12404 shlibpath_overrides_runpath=no 12405 else 12406 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12407 shlibpath_overrides_runpath=yes 12408 case $host_os in 12409 sco3.2v5*) 12410 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12411 ;; 12412 esac 12413 fi 12414 sys_lib_dlsearch_path_spec='/usr/lib' 12415 ;; 12416 12417uts4*) 12418 version_type=linux 12419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12420 soname_spec='${libname}${release}${shared_ext}$major' 12421 shlibpath_var=LD_LIBRARY_PATH 12422 ;; 12423 12424*) 12425 dynamic_linker=no 12426 ;; 12427esac 12428echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12429echo "${ECHO_T}$dynamic_linker" >&6 12430test "$dynamic_linker" = no && can_build_shared=no 12431 12432variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12433if test "$GCC" = yes; then 12434 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12435fi 12436 12437echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12438echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12439hardcode_action_CXX= 12440if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12441 test -n "$runpath_var_CXX" || \ 12442 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12443 12444 # We can hardcode non-existant directories. 12445 if test "$hardcode_direct_CXX" != no && 12446 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12447 # have to relink, otherwise we might link with an installed library 12448 # when we should be linking with a yet-to-be-installed one 12449 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12450 test "$hardcode_minus_L_CXX" != no; then 12451 # Linking always hardcodes the temporary library directory. 12452 hardcode_action_CXX=relink 12453 else 12454 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12455 hardcode_action_CXX=immediate 12456 fi 12457else 12458 # We cannot hardcode anything, or else we can only hardcode existing 12459 # directories. 12460 hardcode_action_CXX=unsupported 12461fi 12462echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12463echo "${ECHO_T}$hardcode_action_CXX" >&6 12464 12465if test "$hardcode_action_CXX" = relink; then 12466 # Fast installation is not supported 12467 enable_fast_install=no 12468elif test "$shlibpath_overrides_runpath" = yes || 12469 test "$enable_shared" = no; then 12470 # Fast installation is not necessary 12471 enable_fast_install=needless 12472fi 12473 12474 12475# The else clause should only fire when bootstrapping the 12476# libtool distribution, otherwise you forgot to ship ltmain.sh 12477# with your package, and you will get complaints that there are 12478# no rules to generate ltmain.sh. 12479if test -f "$ltmain"; then 12480 # See if we are running on zsh, and set the options which allow our commands through 12481 # without removal of \ escapes. 12482 if test -n "${ZSH_VERSION+set}" ; then 12483 setopt NO_GLOB_SUBST 12484 fi 12485 # Now quote all the things that may contain metacharacters while being 12486 # careful not to overquote the AC_SUBSTed values. We take copies of the 12487 # variables and quote the copies for generation of the libtool script. 12488 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12489 SED SHELL STRIP \ 12490 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12491 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12492 deplibs_check_method reload_flag reload_cmds need_locks \ 12493 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12494 lt_cv_sys_global_symbol_to_c_name_address \ 12495 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12496 old_postinstall_cmds old_postuninstall_cmds \ 12497 compiler_CXX \ 12498 CC_CXX \ 12499 LD_CXX \ 12500 lt_prog_compiler_wl_CXX \ 12501 lt_prog_compiler_pic_CXX \ 12502 lt_prog_compiler_static_CXX \ 12503 lt_prog_compiler_no_builtin_flag_CXX \ 12504 export_dynamic_flag_spec_CXX \ 12505 thread_safe_flag_spec_CXX \ 12506 whole_archive_flag_spec_CXX \ 12507 enable_shared_with_static_runtimes_CXX \ 12508 old_archive_cmds_CXX \ 12509 old_archive_from_new_cmds_CXX \ 12510 predep_objects_CXX \ 12511 postdep_objects_CXX \ 12512 predeps_CXX \ 12513 postdeps_CXX \ 12514 compiler_lib_search_path_CXX \ 12515 archive_cmds_CXX \ 12516 archive_expsym_cmds_CXX \ 12517 postinstall_cmds_CXX \ 12518 postuninstall_cmds_CXX \ 12519 old_archive_from_expsyms_cmds_CXX \ 12520 allow_undefined_flag_CXX \ 12521 no_undefined_flag_CXX \ 12522 export_symbols_cmds_CXX \ 12523 hardcode_libdir_flag_spec_CXX \ 12524 hardcode_libdir_flag_spec_ld_CXX \ 12525 hardcode_libdir_separator_CXX \ 12526 hardcode_automatic_CXX \ 12527 module_cmds_CXX \ 12528 module_expsym_cmds_CXX \ 12529 lt_cv_prog_compiler_c_o_CXX \ 12530 exclude_expsyms_CXX \ 12531 include_expsyms_CXX; do 12532 12533 case $var in 12534 old_archive_cmds_CXX | \ 12535 old_archive_from_new_cmds_CXX | \ 12536 archive_cmds_CXX | \ 12537 archive_expsym_cmds_CXX | \ 12538 module_cmds_CXX | \ 12539 module_expsym_cmds_CXX | \ 12540 old_archive_from_expsyms_cmds_CXX | \ 12541 export_symbols_cmds_CXX | \ 12542 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12543 postinstall_cmds | postuninstall_cmds | \ 12544 old_postinstall_cmds | old_postuninstall_cmds | \ 12545 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12546 # Double-quote double-evaled strings. 12547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12548 ;; 12549 *) 12550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12551 ;; 12552 esac 12553 done 12554 12555 case $lt_echo in 12556 *'\$0 --fallback-echo"') 12557 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12558 ;; 12559 esac 12560 12561cfgfile="$ofile" 12562 12563 cat <<__EOF__ >> "$cfgfile" 12564# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12565 12566# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12567 12568# Shell to use when invoking shell scripts. 12569SHELL=$lt_SHELL 12570 12571# Whether or not to build shared libraries. 12572build_libtool_libs=$enable_shared 12573 12574# Whether or not to build static libraries. 12575build_old_libs=$enable_static 12576 12577# Whether or not to add -lc for building shared libraries. 12578build_libtool_need_lc=$archive_cmds_need_lc_CXX 12579 12580# Whether or not to disallow shared libs when runtime libs are static 12581allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12582 12583# Whether or not to optimize for fast installation. 12584fast_install=$enable_fast_install 12585 12586# The host system. 12587host_alias=$host_alias 12588host=$host 12589host_os=$host_os 12590 12591# The build system. 12592build_alias=$build_alias 12593build=$build 12594build_os=$build_os 12595 12596# An echo program that does not interpret backslashes. 12597echo=$lt_echo 12598 12599# The archiver. 12600AR=$lt_AR 12601AR_FLAGS=$lt_AR_FLAGS 12602 12603# A C compiler. 12604LTCC=$lt_LTCC 12605 12606# LTCC compiler flags. 12607LTCFLAGS=$lt_LTCFLAGS 12608 12609# A language-specific compiler. 12610CC=$lt_compiler_CXX 12611 12612# Is the compiler the GNU C compiler? 12613with_gcc=$GCC_CXX 12614 12615gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 12616gcc_ver=\`gcc -dumpversion\` 12617 12618# An ERE matcher. 12619EGREP=$lt_EGREP 12620 12621# The linker used to build libraries. 12622LD=$lt_LD_CXX 12623 12624# Whether we need hard or soft links. 12625LN_S=$lt_LN_S 12626 12627# A BSD-compatible nm program. 12628NM=$lt_NM 12629 12630# A symbol stripping program 12631STRIP=$lt_STRIP 12632 12633# Used to examine libraries when file_magic_cmd begins "file" 12634MAGIC_CMD=$MAGIC_CMD 12635 12636# Used on cygwin: DLL creation program. 12637DLLTOOL="$DLLTOOL" 12638 12639# Used on cygwin: object dumper. 12640OBJDUMP="$OBJDUMP" 12641 12642# Used on cygwin: assembler. 12643AS="$AS" 12644 12645# The name of the directory that contains temporary libtool files. 12646objdir=$objdir 12647 12648# How to create reloadable object files. 12649reload_flag=$lt_reload_flag 12650reload_cmds=$lt_reload_cmds 12651 12652# How to pass a linker flag through the compiler. 12653wl=$lt_lt_prog_compiler_wl_CXX 12654 12655# Object file suffix (normally "o"). 12656objext="$ac_objext" 12657 12658# Old archive suffix (normally "a"). 12659libext="$libext" 12660 12661# Shared library suffix (normally ".so"). 12662shrext_cmds='$shrext_cmds' 12663 12664# Executable file suffix (normally ""). 12665exeext="$exeext" 12666 12667# Additional compiler flags for building library objects. 12668pic_flag=$lt_lt_prog_compiler_pic_CXX 12669pic_mode=$pic_mode 12670 12671# What is the maximum length of a command? 12672max_cmd_len=$lt_cv_sys_max_cmd_len 12673 12674# Does compiler simultaneously support -c and -o options? 12675compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12676 12677# Must we lock files when doing compilation? 12678need_locks=$lt_need_locks 12679 12680# Do we need the lib prefix for modules? 12681need_lib_prefix=$need_lib_prefix 12682 12683# Do we need a version for libraries? 12684need_version=$need_version 12685 12686# Whether dlopen is supported. 12687dlopen_support=$enable_dlopen 12688 12689# Whether dlopen of programs is supported. 12690dlopen_self=$enable_dlopen_self 12691 12692# Whether dlopen of statically linked programs is supported. 12693dlopen_self_static=$enable_dlopen_self_static 12694 12695# Compiler flag to prevent dynamic linking. 12696link_static_flag=$lt_lt_prog_compiler_static_CXX 12697 12698# Compiler flag to turn off builtin functions. 12699no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12700 12701# Compiler flag to allow reflexive dlopens. 12702export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12703 12704# Compiler flag to generate shared objects directly from archives. 12705whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12706 12707# Compiler flag to generate thread-safe objects. 12708thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12709 12710# Library versioning type. 12711version_type=$version_type 12712 12713# Format of library name prefix. 12714libname_spec=$lt_libname_spec 12715 12716# List of archive names. First name is the real one, the rest are links. 12717# The last name is the one that the linker finds with -lNAME. 12718library_names_spec=$lt_library_names_spec 12719 12720# The coded name of the library, if different from the real name. 12721soname_spec=$lt_soname_spec 12722 12723# Commands used to build and install an old-style archive. 12724RANLIB=$lt_RANLIB 12725old_archive_cmds=$lt_old_archive_cmds_CXX 12726old_postinstall_cmds=$lt_old_postinstall_cmds 12727old_postuninstall_cmds=$lt_old_postuninstall_cmds 12728 12729# Create an old-style archive from a shared archive. 12730old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12731 12732# Create a temporary old-style archive to link instead of a shared archive. 12733old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12734 12735# Commands used to build and install a shared archive. 12736archive_cmds=$lt_archive_cmds_CXX 12737archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12738postinstall_cmds=$lt_postinstall_cmds 12739postuninstall_cmds=$lt_postuninstall_cmds 12740 12741# Commands used to build a loadable module (assumed same as above if empty) 12742module_cmds=$lt_module_cmds_CXX 12743module_expsym_cmds=$lt_module_expsym_cmds_CXX 12744 12745# Commands to strip libraries. 12746old_striplib=$lt_old_striplib 12747striplib=$lt_striplib 12748 12749# Dependencies to place before the objects being linked to create a 12750# shared library. 12751predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12752 12753# Dependencies to place after the objects being linked to create a 12754# shared library. 12755postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12756 12757# Dependencies to place before the objects being linked to create a 12758# shared library. 12759predeps=$lt_predeps_CXX 12760 12761# Dependencies to place after the objects being linked to create a 12762# shared library. 12763postdeps=$lt_postdeps_CXX 12764 12765# The library search path used internally by the compiler when linking 12766# a shared library. 12767compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12768 12769# Method to check whether dependent libraries are shared objects. 12770deplibs_check_method=$lt_deplibs_check_method 12771 12772# Command to use when deplibs_check_method == file_magic. 12773file_magic_cmd=$lt_file_magic_cmd 12774 12775# Flag that allows shared libraries with undefined symbols to be built. 12776allow_undefined_flag=$lt_allow_undefined_flag_CXX 12777 12778# Flag that forces no undefined symbols. 12779no_undefined_flag=$lt_no_undefined_flag_CXX 12780 12781# Commands used to finish a libtool library installation in a directory. 12782finish_cmds=$lt_finish_cmds 12783 12784# Same as above, but a single script fragment to be evaled but not shown. 12785finish_eval=$lt_finish_eval 12786 12787# Take the output of nm and produce a listing of raw symbols and C names. 12788global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12789 12790# Transform the output of nm in a proper C declaration 12791global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12792 12793# Transform the output of nm in a C name address pair 12794global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12795 12796# This is the shared library runtime path variable. 12797runpath_var=$runpath_var 12798 12799# This is the shared library path variable. 12800shlibpath_var=$shlibpath_var 12801 12802# Is shlibpath searched before the hard-coded library search path? 12803shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12804 12805# How to hardcode a shared library path into an executable. 12806hardcode_action=$hardcode_action_CXX 12807 12808# Whether we should hardcode library paths into libraries. 12809hardcode_into_libs=$hardcode_into_libs 12810 12811# Flag to hardcode \$libdir into a binary during linking. 12812# This must work even if \$libdir does not exist. 12813hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12814 12815# If ld is used when linking, flag to hardcode \$libdir into 12816# a binary during linking. This must work even if \$libdir does 12817# not exist. 12818hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12819 12820# Whether we need a single -rpath flag with a separated argument. 12821hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12822 12823# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12824# resulting binary. 12825hardcode_direct=$hardcode_direct_CXX 12826 12827# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12828# resulting binary. 12829hardcode_minus_L=$hardcode_minus_L_CXX 12830 12831# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12832# the resulting binary. 12833hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12834 12835# Set to yes if building a shared library automatically hardcodes DIR into the library 12836# and all subsequent libraries and executables linked against it. 12837hardcode_automatic=$hardcode_automatic_CXX 12838 12839# Variables whose values should be saved in libtool wrapper scripts and 12840# restored at relink time. 12841variables_saved_for_relink="$variables_saved_for_relink" 12842 12843# Whether libtool must link a program against all its dependency libraries. 12844link_all_deplibs=$link_all_deplibs_CXX 12845 12846# Compile-time system search path for libraries 12847sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12848 12849# Run-time system search path for libraries 12850sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12851 12852# Fix the shell variable \$srcfile for the compiler. 12853fix_srcfile_path="$fix_srcfile_path_CXX" 12854 12855# Set to yes if exported symbols are required. 12856always_export_symbols=$always_export_symbols_CXX 12857 12858# The commands to list exported symbols. 12859export_symbols_cmds=$lt_export_symbols_cmds_CXX 12860 12861# The commands to extract the exported symbol list from a shared archive. 12862extract_expsyms_cmds=$lt_extract_expsyms_cmds 12863 12864# Symbols that should not be listed in the preloaded symbols. 12865exclude_expsyms=$lt_exclude_expsyms_CXX 12866 12867# Symbols that must always be exported. 12868include_expsyms=$lt_include_expsyms_CXX 12869 12870# ### END LIBTOOL TAG CONFIG: $tagname 12871 12872__EOF__ 12873 12874 12875else 12876 # If there is no Makefile yet, we rely on a make rule to execute 12877 # `config.status --recheck' to rerun these tests and create the 12878 # libtool script then. 12879 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12880 if test -f "$ltmain_in"; then 12881 test -f Makefile && make "$ltmain" 12882 fi 12883fi 12884 12885 12886ac_ext=c 12887ac_cpp='$CPP $CPPFLAGS' 12888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12890ac_compiler_gnu=$ac_cv_c_compiler_gnu 12891 12892CC=$lt_save_CC 12893LDCXX=$LD 12894LD=$lt_save_LD 12895GCC=$lt_save_GCC 12896with_gnu_ldcxx=$with_gnu_ld 12897with_gnu_ld=$lt_save_with_gnu_ld 12898lt_cv_path_LDCXX=$lt_cv_path_LD 12899lt_cv_path_LD=$lt_save_path_LD 12900lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12901lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12902 12903 else 12904 tagname="" 12905 fi 12906 ;; 12907 12908 F77) 12909 if test -n "$F77" && test "X$F77" != "Xno"; then 12910 12911ac_ext=f 12912ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12913ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12914ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12915 12916 12917archive_cmds_need_lc_F77=no 12918allow_undefined_flag_F77= 12919always_export_symbols_F77=no 12920archive_expsym_cmds_F77= 12921export_dynamic_flag_spec_F77= 12922hardcode_direct_F77=no 12923hardcode_libdir_flag_spec_F77= 12924hardcode_libdir_flag_spec_ld_F77= 12925hardcode_libdir_separator_F77= 12926hardcode_minus_L_F77=no 12927hardcode_automatic_F77=no 12928module_cmds_F77= 12929module_expsym_cmds_F77= 12930link_all_deplibs_F77=unknown 12931old_archive_cmds_F77=$old_archive_cmds 12932no_undefined_flag_F77= 12933whole_archive_flag_spec_F77= 12934enable_shared_with_static_runtimes_F77=no 12935 12936# Source file extension for f77 test sources. 12937ac_ext=f 12938 12939# Object file extension for compiled f77 test sources. 12940objext=o 12941objext_F77=$objext 12942 12943# Code to be used in simple compile tests 12944lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12945 12946# Code to be used in simple link tests 12947lt_simple_link_test_code=" program t\n end\n" 12948 12949# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12950 12951# If no C compiler was specified, use CC. 12952LTCC=${LTCC-"$CC"} 12953 12954# If no C compiler flags were specified, use CFLAGS. 12955LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12956 12957# Allow CC to be a program name with arguments. 12958compiler=$CC 12959 12960 12961# save warnings/boilerplate of simple test code 12962ac_outfile=conftest.$ac_objext 12963printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12964eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12965_lt_compiler_boilerplate=`cat conftest.err` 12966$rm conftest* 12967 12968ac_outfile=conftest.$ac_objext 12969printf "$lt_simple_link_test_code" >conftest.$ac_ext 12970eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12971_lt_linker_boilerplate=`cat conftest.err` 12972$rm conftest* 12973 12974 12975# Allow CC to be a program name with arguments. 12976lt_save_CC="$CC" 12977CC=${F77-"f77"} 12978compiler=$CC 12979compiler_F77=$CC 12980for cc_temp in $compiler""; do 12981 case $cc_temp in 12982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12984 \-*) ;; 12985 *) break;; 12986 esac 12987done 12988cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12989 12990 12991echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12992echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12993echo "$as_me:$LINENO: result: $can_build_shared" >&5 12994echo "${ECHO_T}$can_build_shared" >&6 12995 12996echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12997echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12998test "$can_build_shared" = "no" && enable_shared=no 12999 13000# On AIX, shared libraries and static libraries use the same namespace, and 13001# are all built from PIC. 13002case $host_os in 13003aix3*) 13004 test "$enable_shared" = yes && enable_static=no 13005 if test -n "$RANLIB"; then 13006 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13007 postinstall_cmds='$RANLIB $lib' 13008 fi 13009 ;; 13010aix4* | aix5*) 13011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13012 test "$enable_shared" = yes && enable_static=no 13013 fi 13014 ;; 13015esac 13016echo "$as_me:$LINENO: result: $enable_shared" >&5 13017echo "${ECHO_T}$enable_shared" >&6 13018 13019echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13020echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13021# Make sure either enable_shared or enable_static is yes. 13022test "$enable_shared" = yes || enable_static=yes 13023echo "$as_me:$LINENO: result: $enable_static" >&5 13024echo "${ECHO_T}$enable_static" >&6 13025 13026GCC_F77="$G77" 13027LD_F77="$LD" 13028 13029lt_prog_compiler_wl_F77= 13030lt_prog_compiler_pic_F77= 13031lt_prog_compiler_static_F77= 13032 13033echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13034echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13035 13036 if test "$GCC" = yes; then 13037 lt_prog_compiler_wl_F77='-Wl,' 13038 lt_prog_compiler_static_F77='-static' 13039 13040 case $host_os in 13041 aix*) 13042 # All AIX code is PIC. 13043 if test "$host_cpu" = ia64; then 13044 # AIX 5 now supports IA64 processor 13045 lt_prog_compiler_static_F77='-Bstatic' 13046 fi 13047 ;; 13048 13049 amigaos*) 13050 # FIXME: we need at least 68020 code to build shared libraries, but 13051 # adding the `-m68020' flag to GCC prevents building anything better, 13052 # like `-m68040'. 13053 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13054 ;; 13055 13056 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13057 # PIC is the default for these OSes. 13058 ;; 13059 13060 mingw* | pw32* | os2*) 13061 # This hack is so that the source file can tell whether it is being 13062 # built for inclusion in a dll (and should export symbols for example). 13063 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13064 ;; 13065 13066 darwin* | rhapsody*) 13067 # PIC is the default on this platform 13068 # Common symbols not allowed in MH_DYLIB files 13069 lt_prog_compiler_pic_F77='-fno-common' 13070 ;; 13071 13072 interix3*) 13073 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13074 # Instead, we relocate shared libraries at runtime. 13075 ;; 13076 13077 msdosdjgpp*) 13078 # Just because we use GCC doesn't mean we suddenly get shared libraries 13079 # on systems that don't support them. 13080 lt_prog_compiler_can_build_shared_F77=no 13081 enable_shared=no 13082 ;; 13083 13084 sysv4*MP*) 13085 if test -d /usr/nec; then 13086 lt_prog_compiler_pic_F77=-Kconform_pic 13087 fi 13088 ;; 13089 13090 hpux*) 13091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13092 # not for PA HP-UX. 13093 case $host_cpu in 13094 hppa*64*|ia64*) 13095 # +Z the default 13096 ;; 13097 *) 13098 lt_prog_compiler_pic_F77='-fPIC' 13099 ;; 13100 esac 13101 ;; 13102 13103 *) 13104 lt_prog_compiler_pic_F77='-fPIC' 13105 ;; 13106 esac 13107 else 13108 # PORTME Check for flag to pass linker flags through the system compiler. 13109 case $host_os in 13110 aix*) 13111 lt_prog_compiler_wl_F77='-Wl,' 13112 if test "$host_cpu" = ia64; then 13113 # AIX 5 now supports IA64 processor 13114 lt_prog_compiler_static_F77='-Bstatic' 13115 else 13116 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13117 fi 13118 ;; 13119 darwin*) 13120 # PIC is the default on this platform 13121 # Common symbols not allowed in MH_DYLIB files 13122 case $cc_basename in 13123 xlc*) 13124 lt_prog_compiler_pic_F77='-qnocommon' 13125 lt_prog_compiler_wl_F77='-Wl,' 13126 ;; 13127 esac 13128 ;; 13129 13130 mingw* | pw32* | os2*) 13131 # This hack is so that the source file can tell whether it is being 13132 # built for inclusion in a dll (and should export symbols for example). 13133 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13134 ;; 13135 13136 hpux9* | hpux10* | hpux11*) 13137 lt_prog_compiler_wl_F77='-Wl,' 13138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13139 # not for PA HP-UX. 13140 case $host_cpu in 13141 hppa*64*|ia64*) 13142 # +Z the default 13143 ;; 13144 *) 13145 lt_prog_compiler_pic_F77='+Z' 13146 ;; 13147 esac 13148 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13149 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13150 ;; 13151 13152 irix5* | irix6* | nonstopux*) 13153 lt_prog_compiler_wl_F77='-Wl,' 13154 # PIC (with -KPIC) is the default. 13155 lt_prog_compiler_static_F77='-non_shared' 13156 ;; 13157 13158 newsos6) 13159 lt_prog_compiler_pic_F77='-KPIC' 13160 lt_prog_compiler_static_F77='-Bstatic' 13161 ;; 13162 13163 linux*) 13164 case $cc_basename in 13165 icc* | ecc*) 13166 lt_prog_compiler_wl_F77='-Wl,' 13167 lt_prog_compiler_pic_F77='-KPIC' 13168 lt_prog_compiler_static_F77='-static' 13169 ;; 13170 pgcc* | pgf77* | pgf90* | pgf95*) 13171 # Portland Group compilers (*not* the Pentium gcc compiler, 13172 # which looks to be a dead project) 13173 lt_prog_compiler_wl_F77='-Wl,' 13174 lt_prog_compiler_pic_F77='-fpic' 13175 lt_prog_compiler_static_F77='-Bstatic' 13176 ;; 13177 ccc*) 13178 lt_prog_compiler_wl_F77='-Wl,' 13179 # All Alpha code is PIC. 13180 lt_prog_compiler_static_F77='-non_shared' 13181 ;; 13182 esac 13183 ;; 13184 13185 osf3* | osf4* | osf5*) 13186 lt_prog_compiler_wl_F77='-Wl,' 13187 # All OSF/1 code is PIC. 13188 lt_prog_compiler_static_F77='-non_shared' 13189 ;; 13190 13191 solaris*) 13192 lt_prog_compiler_pic_F77='-KPIC' 13193 lt_prog_compiler_static_F77='-Bstatic' 13194 case $cc_basename in 13195 f77* | f90* | f95*) 13196 lt_prog_compiler_wl_F77='-Qoption ld ';; 13197 *) 13198 lt_prog_compiler_wl_F77='-Wl,';; 13199 esac 13200 ;; 13201 13202 sunos4*) 13203 lt_prog_compiler_wl_F77='-Qoption ld ' 13204 lt_prog_compiler_pic_F77='-PIC' 13205 lt_prog_compiler_static_F77='-Bstatic' 13206 ;; 13207 13208 sysv4 | sysv4.2uw2* | sysv4.3*) 13209 lt_prog_compiler_wl_F77='-Wl,' 13210 lt_prog_compiler_pic_F77='-KPIC' 13211 lt_prog_compiler_static_F77='-Bstatic' 13212 ;; 13213 13214 sysv4*MP*) 13215 if test -d /usr/nec ;then 13216 lt_prog_compiler_pic_F77='-Kconform_pic' 13217 lt_prog_compiler_static_F77='-Bstatic' 13218 fi 13219 ;; 13220 13221 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13222 lt_prog_compiler_wl_F77='-Wl,' 13223 lt_prog_compiler_pic_F77='-KPIC' 13224 lt_prog_compiler_static_F77='-Bstatic' 13225 ;; 13226 13227 unicos*) 13228 lt_prog_compiler_wl_F77='-Wl,' 13229 lt_prog_compiler_can_build_shared_F77=no 13230 ;; 13231 13232 uts4*) 13233 lt_prog_compiler_pic_F77='-pic' 13234 lt_prog_compiler_static_F77='-Bstatic' 13235 ;; 13236 13237 *) 13238 lt_prog_compiler_can_build_shared_F77=no 13239 ;; 13240 esac 13241 fi 13242 13243echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13244echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13245 13246# 13247# Check to make sure the PIC flag actually works. 13248# 13249if test -n "$lt_prog_compiler_pic_F77"; then 13250 13251echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13252echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13253if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13254 echo $ECHO_N "(cached) $ECHO_C" >&6 13255else 13256 lt_prog_compiler_pic_works_F77=no 13257 ac_outfile=conftest.$ac_objext 13258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13259 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13260 # Insert the option either (1) after the last *FLAGS variable, or 13261 # (2) before a word containing "conftest.", or (3) at the end. 13262 # Note that $ac_compile itself does not contain backslashes and begins 13263 # with a dollar sign (not a hyphen), so the echo should work correctly. 13264 # The option is referenced via a variable to avoid confusing sed. 13265 lt_compile=`echo "$ac_compile" | $SED \ 13266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13268 -e 's:$: $lt_compiler_flag:'` 13269 (eval echo "\"\$as_me:13269: $lt_compile\"" >&5) 13270 (eval "$lt_compile" 2>conftest.err) 13271 ac_status=$? 13272 cat conftest.err >&5 13273 echo "$as_me:13273: \$? = $ac_status" >&5 13274 if (exit $ac_status) && test -s "$ac_outfile"; then 13275 # The compiler can only warn and ignore the option if not recognized 13276 # So say no if there are warnings other than the usual output. 13277 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13280 lt_prog_compiler_pic_works_F77=yes 13281 fi 13282 fi 13283 $rm conftest* 13284 13285fi 13286echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13287echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13288 13289if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13290 case $lt_prog_compiler_pic_F77 in 13291 "" | " "*) ;; 13292 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13293 esac 13294else 13295 lt_prog_compiler_pic_F77= 13296 lt_prog_compiler_can_build_shared_F77=no 13297fi 13298 13299fi 13300case $host_os in 13301 # For platforms which do not support PIC, -DPIC is meaningless: 13302 *djgpp*) 13303 lt_prog_compiler_pic_F77= 13304 ;; 13305 *) 13306 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13307 ;; 13308esac 13309 13310# 13311# Check to make sure the static flag actually works. 13312# 13313wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13314echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13315echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13316if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13317 echo $ECHO_N "(cached) $ECHO_C" >&6 13318else 13319 lt_prog_compiler_static_works_F77=no 13320 save_LDFLAGS="$LDFLAGS" 13321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13322 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13324 # The linker can only warn and ignore the option if not recognized 13325 # So say no if there are warnings 13326 if test -s conftest.err; then 13327 # Append any errors to the config.log. 13328 cat conftest.err 1>&5 13329 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13331 if diff conftest.exp conftest.er2 >/dev/null; then 13332 lt_prog_compiler_static_works_F77=yes 13333 fi 13334 else 13335 lt_prog_compiler_static_works_F77=yes 13336 fi 13337 fi 13338 $rm conftest* 13339 LDFLAGS="$save_LDFLAGS" 13340 13341fi 13342echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13343echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13344 13345if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13346 : 13347else 13348 lt_prog_compiler_static_F77= 13349fi 13350 13351 13352echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13353echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13354if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13355 echo $ECHO_N "(cached) $ECHO_C" >&6 13356else 13357 lt_cv_prog_compiler_c_o_F77=no 13358 $rm -r conftest 2>/dev/null 13359 mkdir conftest 13360 cd conftest 13361 mkdir out 13362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13363 13364 lt_compiler_flag="-o out/conftest2.$ac_objext" 13365 # Insert the option either (1) after the last *FLAGS variable, or 13366 # (2) before a word containing "conftest.", or (3) at the end. 13367 # Note that $ac_compile itself does not contain backslashes and begins 13368 # with a dollar sign (not a hyphen), so the echo should work correctly. 13369 lt_compile=`echo "$ac_compile" | $SED \ 13370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13372 -e 's:$: $lt_compiler_flag:'` 13373 (eval echo "\"\$as_me:13373: $lt_compile\"" >&5) 13374 (eval "$lt_compile" 2>out/conftest.err) 13375 ac_status=$? 13376 cat out/conftest.err >&5 13377 echo "$as_me:13377: \$? = $ac_status" >&5 13378 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13379 then 13380 # The compiler can only warn and ignore the option if not recognized 13381 # So say no if there are warnings 13382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13385 lt_cv_prog_compiler_c_o_F77=yes 13386 fi 13387 fi 13388 chmod u+w . 2>&5 13389 $rm conftest* 13390 # SGI C++ compiler will create directory out/ii_files/ for 13391 # template instantiation 13392 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13393 $rm out/* && rmdir out 13394 cd .. 13395 rmdir conftest 13396 $rm conftest* 13397 13398fi 13399echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13400echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13401 13402 13403hard_links="nottested" 13404if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13405 # do not overwrite the value of need_locks provided by the user 13406 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13407echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13408 hard_links=yes 13409 $rm conftest* 13410 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13411 touch conftest.a 13412 ln conftest.a conftest.b 2>&5 || hard_links=no 13413 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13414 echo "$as_me:$LINENO: result: $hard_links" >&5 13415echo "${ECHO_T}$hard_links" >&6 13416 if test "$hard_links" = no; then 13417 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13418echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13419 need_locks=warn 13420 fi 13421else 13422 need_locks=no 13423fi 13424 13425echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13426echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13427 13428 runpath_var= 13429 allow_undefined_flag_F77= 13430 enable_shared_with_static_runtimes_F77=no 13431 archive_cmds_F77= 13432 archive_expsym_cmds_F77= 13433 old_archive_From_new_cmds_F77= 13434 old_archive_from_expsyms_cmds_F77= 13435 export_dynamic_flag_spec_F77= 13436 whole_archive_flag_spec_F77= 13437 thread_safe_flag_spec_F77= 13438 hardcode_libdir_flag_spec_F77= 13439 hardcode_libdir_flag_spec_ld_F77= 13440 hardcode_libdir_separator_F77= 13441 hardcode_direct_F77=no 13442 hardcode_minus_L_F77=no 13443 hardcode_shlibpath_var_F77=unsupported 13444 link_all_deplibs_F77=unknown 13445 hardcode_automatic_F77=no 13446 module_cmds_F77= 13447 module_expsym_cmds_F77= 13448 always_export_symbols_F77=no 13449 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13450 # include_expsyms should be a list of space-separated symbols to be *always* 13451 # included in the symbol list 13452 include_expsyms_F77= 13453 # exclude_expsyms can be an extended regexp of symbols to exclude 13454 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13455 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13456 # as well as any symbol that contains `d'. 13457 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13458 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13459 # platforms (ab)use it in PIC code, but their linkers get confused if 13460 # the symbol is explicitly referenced. Since portable code cannot 13461 # rely on this symbol name, it's probably fine to never include it in 13462 # preloaded symbol tables. 13463 extract_expsyms_cmds= 13464 # Just being paranoid about ensuring that cc_basename is set. 13465 for cc_temp in $compiler""; do 13466 case $cc_temp in 13467 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13468 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13469 \-*) ;; 13470 *) break;; 13471 esac 13472done 13473cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13474 13475 case $host_os in 13476 cygwin* | mingw* | pw32*) 13477 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13478 # When not using gcc, we currently assume that we are using 13479 # Microsoft Visual C++. 13480 if test "$GCC" != yes; then 13481 with_gnu_ld=no 13482 fi 13483 ;; 13484 interix*) 13485 # we just hope/assume this is gcc and not c89 (= MSVC++) 13486 with_gnu_ld=yes 13487 ;; 13488 openbsd*) 13489 with_gnu_ld=no 13490 ;; 13491 esac 13492 13493 ld_shlibs_F77=yes 13494 if test "$with_gnu_ld" = yes; then 13495 # If archive_cmds runs LD, not CC, wlarc should be empty 13496 wlarc='${wl}' 13497 13498 # Set some defaults for GNU ld with shared library support. These 13499 # are reset later if shared libraries are not supported. Putting them 13500 # here allows them to be overridden if necessary. 13501 runpath_var=LD_RUN_PATH 13502 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13503 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13504 # ancient GNU ld didn't support --whole-archive et. al. 13505 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13506 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13507 else 13508 whole_archive_flag_spec_F77= 13509 fi 13510 supports_anon_versioning=no 13511 case `$LD -v 2>/dev/null` in 13512 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13515 *\ 2.11.*) ;; # other 2.11 versions 13516 *) supports_anon_versioning=yes ;; 13517 esac 13518 13519 # See if GNU ld supports shared libraries. 13520 case $host_os in 13521 aix3* | aix4* | aix5*) 13522 # On AIX/PPC, the GNU linker is very broken 13523 if test "$host_cpu" != ia64; then 13524 ld_shlibs_F77=no 13525 cat <<EOF 1>&2 13526 13527*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13528*** to be unable to reliably create shared libraries on AIX. 13529*** Therefore, libtool is disabling shared libraries support. If you 13530*** really care for shared libraries, you may want to modify your PATH 13531*** so that a non-GNU linker is found, and then restart. 13532 13533EOF 13534 fi 13535 ;; 13536 13537 amigaos*) 13538 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)' 13539 hardcode_libdir_flag_spec_F77='-L$libdir' 13540 hardcode_minus_L_F77=yes 13541 13542 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13543 # that the semantics of dynamic libraries on AmigaOS, at least up 13544 # to version 4, is to share data among multiple programs linked 13545 # with the same dynamic library. Since this doesn't match the 13546 # behavior of shared libraries on other platforms, we can't use 13547 # them. 13548 ld_shlibs_F77=no 13549 ;; 13550 13551 beos*) 13552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13553 allow_undefined_flag_F77=unsupported 13554 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13555 # support --undefined. This deserves some investigation. FIXME 13556 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13557 else 13558 ld_shlibs_F77=no 13559 fi 13560 ;; 13561 13562 cygwin* | mingw* | pw32*) 13563 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13564 # as there is no search path for DLLs. 13565 hardcode_libdir_flag_spec_F77='-L$libdir' 13566 allow_undefined_flag_F77=unsupported 13567 always_export_symbols_F77=no 13568 enable_shared_with_static_runtimes_F77=yes 13569 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13570 13571 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13572 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13573 # If the export-symbols file already is a .def file (1st line 13574 # is EXPORTS), use it as is; otherwise, prepend... 13575 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13576 cp $export_symbols $output_objdir/$soname.def; 13577 else 13578 echo EXPORTS > $output_objdir/$soname.def; 13579 cat $export_symbols >> $output_objdir/$soname.def; 13580 fi~ 13581 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13582 else 13583 ld_shlibs_F77=no 13584 fi 13585 ;; 13586 13587 interix3*) 13588 hardcode_direct_F77=no 13589 hardcode_shlibpath_var_F77=no 13590 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13591 export_dynamic_flag_spec_F77='${wl}-E' 13592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13593 # Instead, shared libraries are loaded at an image base (0x10000000 by 13594 # default) and relocated if they conflict, which is a slow very memory 13595 # consuming and fragmenting process. To avoid this, we pick a random, 13596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13597 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13598 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' 13599 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' 13600 ;; 13601 13602 linux*) 13603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13604 tmp_addflag= 13605 case $cc_basename,$host_cpu in 13606 pgcc*) # Portland Group C compiler 13607 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' 13608 tmp_addflag=' $pic_flag' 13609 ;; 13610 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13611 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' 13612 tmp_addflag=' $pic_flag -Mnomain' ;; 13613 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13614 tmp_addflag=' -i_dynamic' ;; 13615 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13616 tmp_addflag=' -i_dynamic -nofor_main' ;; 13617 ifc* | ifort*) # Intel Fortran compiler 13618 tmp_addflag=' -nofor_main' ;; 13619 esac 13620 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13621 13622 if test $supports_anon_versioning = yes; then 13623 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13625 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13626 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13627 fi 13628 else 13629 ld_shlibs_F77=no 13630 fi 13631 ;; 13632 13633 netbsd*) 13634 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13635 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13636 wlarc= 13637 else 13638 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13639 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13640 fi 13641 ;; 13642 13643 solaris*) 13644 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13645 ld_shlibs_F77=no 13646 cat <<EOF 1>&2 13647 13648*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13649*** create shared libraries on Solaris systems. Therefore, libtool 13650*** is disabling shared libraries support. We urge you to upgrade GNU 13651*** binutils to release 2.9.1 or newer. Another option is to modify 13652*** your PATH or compiler configuration so that the native linker is 13653*** used, and then restart. 13654 13655EOF 13656 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13657 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13658 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13659 else 13660 ld_shlibs_F77=no 13661 fi 13662 ;; 13663 13664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13665 case `$LD -v 2>&1` in 13666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13667 ld_shlibs_F77=no 13668 cat <<_LT_EOF 1>&2 13669 13670*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13671*** reliably create shared libraries on SCO systems. Therefore, libtool 13672*** is disabling shared libraries support. We urge you to upgrade GNU 13673*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13674*** your PATH or compiler configuration so that the native linker is 13675*** used, and then restart. 13676 13677_LT_EOF 13678 ;; 13679 *) 13680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13681 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13682 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13683 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13684 else 13685 ld_shlibs_F77=no 13686 fi 13687 ;; 13688 esac 13689 ;; 13690 13691 sunos4*) 13692 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13693 wlarc= 13694 hardcode_direct_F77=yes 13695 hardcode_shlibpath_var_F77=no 13696 ;; 13697 13698 *) 13699 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13700 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13701 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13702 else 13703 ld_shlibs_F77=no 13704 fi 13705 ;; 13706 esac 13707 13708 if test "$ld_shlibs_F77" = no; then 13709 runpath_var= 13710 hardcode_libdir_flag_spec_F77= 13711 export_dynamic_flag_spec_F77= 13712 whole_archive_flag_spec_F77= 13713 fi 13714 else 13715 # PORTME fill in a description of your system's linker (not GNU ld) 13716 case $host_os in 13717 aix3*) 13718 allow_undefined_flag_F77=unsupported 13719 always_export_symbols_F77=yes 13720 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' 13721 # Note: this linker hardcodes the directories in LIBPATH if there 13722 # are no directories specified by -L. 13723 hardcode_minus_L_F77=yes 13724 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13725 # Neither direct hardcoding nor static linking is supported with a 13726 # broken collect2. 13727 hardcode_direct_F77=unsupported 13728 fi 13729 ;; 13730 13731 aix4* | aix5*) 13732 if test "$host_cpu" = ia64; then 13733 # On IA64, the linker does run time linking by default, so we don't 13734 # have to do anything special. 13735 aix_use_runtimelinking=no 13736 exp_sym_flag='-Bexport' 13737 no_entry_flag="" 13738 else 13739 # If we're using GNU nm, then we don't want the "-C" option. 13740 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13741 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13742 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' 13743 else 13744 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' 13745 fi 13746 aix_use_runtimelinking=no 13747 13748 # Test if we are trying to use run time linking or normal 13749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13750 # need to do runtime linking. 13751 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13752 for ld_flag in $LDFLAGS; do 13753 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13754 aix_use_runtimelinking=yes 13755 break 13756 fi 13757 done 13758 ;; 13759 esac 13760 13761 exp_sym_flag='-bexport' 13762 no_entry_flag='-bnoentry' 13763 fi 13764 13765 # When large executables or shared objects are built, AIX ld can 13766 # have problems creating the table of contents. If linking a library 13767 # or program results in "error TOC overflow" add -mminimal-toc to 13768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13770 13771 archive_cmds_F77='' 13772 hardcode_direct_F77=yes 13773 hardcode_libdir_separator_F77=':' 13774 link_all_deplibs_F77=yes 13775 13776 if test "$GCC" = yes; then 13777 case $host_os in aix4.[012]|aix4.[012].*) 13778 # We only want to do this on AIX 4.2 and lower, the check 13779 # below for broken collect2 doesn't work under 4.3+ 13780 collect2name=`${CC} -print-prog-name=collect2` 13781 if test -f "$collect2name" && \ 13782 strings "$collect2name" | grep resolve_lib_name >/dev/null 13783 then 13784 # We have reworked collect2 13785 hardcode_direct_F77=yes 13786 else 13787 # We have old collect2 13788 hardcode_direct_F77=unsupported 13789 # It fails to find uninstalled libraries when the uninstalled 13790 # path is not listed in the libpath. Setting hardcode_minus_L 13791 # to unsupported forces relinking 13792 hardcode_minus_L_F77=yes 13793 hardcode_libdir_flag_spec_F77='-L$libdir' 13794 hardcode_libdir_separator_F77= 13795 fi 13796 ;; 13797 esac 13798 shared_flag='-shared' 13799 if test "$aix_use_runtimelinking" = yes; then 13800 shared_flag="$shared_flag "'${wl}-G' 13801 fi 13802 else 13803 # not using gcc 13804 if test "$host_cpu" = ia64; then 13805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13806 # chokes on -Wl,-G. The following line is correct: 13807 shared_flag='-G' 13808 else 13809 if test "$aix_use_runtimelinking" = yes; then 13810 shared_flag='${wl}-G' 13811 else 13812 shared_flag='${wl}-bM:SRE' 13813 fi 13814 fi 13815 fi 13816 13817 # It seems that -bexpall does not export symbols beginning with 13818 # underscore (_), so it is better to generate a list of symbols to export. 13819 always_export_symbols_F77=yes 13820 if test "$aix_use_runtimelinking" = yes; then 13821 # Warning - without using the other runtime loading flags (-brtl), 13822 # -berok will link without error, but may produce a broken library. 13823 allow_undefined_flag_F77='-berok' 13824 # Determine the default libpath from the value encoded in an empty executable. 13825 cat >conftest.$ac_ext <<_ACEOF 13826 program main 13827 13828 end 13829_ACEOF 13830rm -f conftest.$ac_objext conftest$ac_exeext 13831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13832 (eval $ac_link) 2>conftest.er1 13833 ac_status=$? 13834 grep -v '^ *+' conftest.er1 >conftest.err 13835 rm -f conftest.er1 13836 cat conftest.err >&5 13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13838 (exit $ac_status); } && 13839 { ac_try='test -z "$ac_f77_werror_flag" 13840 || test ! -s conftest.err' 13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13842 (eval $ac_try) 2>&5 13843 ac_status=$? 13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13845 (exit $ac_status); }; } && 13846 { ac_try='test -s conftest$ac_exeext' 13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13848 (eval $ac_try) 2>&5 13849 ac_status=$? 13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13851 (exit $ac_status); }; }; then 13852 13853aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13854}'` 13855# Check for a 64-bit object if we didn't find anything. 13856if 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; } 13857}'`; fi 13858else 13859 echo "$as_me: failed program was:" >&5 13860sed 's/^/| /' conftest.$ac_ext >&5 13861 13862fi 13863rm -f conftest.err conftest.$ac_objext \ 13864 conftest$ac_exeext conftest.$ac_ext 13865if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13866 13867 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13868 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" 13869 else 13870 if test "$host_cpu" = ia64; then 13871 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13872 allow_undefined_flag_F77="-z nodefs" 13873 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" 13874 else 13875 # Determine the default libpath from the value encoded in an empty executable. 13876 cat >conftest.$ac_ext <<_ACEOF 13877 program main 13878 13879 end 13880_ACEOF 13881rm -f conftest.$ac_objext conftest$ac_exeext 13882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13883 (eval $ac_link) 2>conftest.er1 13884 ac_status=$? 13885 grep -v '^ *+' conftest.er1 >conftest.err 13886 rm -f conftest.er1 13887 cat conftest.err >&5 13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13889 (exit $ac_status); } && 13890 { ac_try='test -z "$ac_f77_werror_flag" 13891 || test ! -s conftest.err' 13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13893 (eval $ac_try) 2>&5 13894 ac_status=$? 13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13896 (exit $ac_status); }; } && 13897 { ac_try='test -s conftest$ac_exeext' 13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13899 (eval $ac_try) 2>&5 13900 ac_status=$? 13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13902 (exit $ac_status); }; }; then 13903 13904aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13905}'` 13906# Check for a 64-bit object if we didn't find anything. 13907if 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; } 13908}'`; fi 13909else 13910 echo "$as_me: failed program was:" >&5 13911sed 's/^/| /' conftest.$ac_ext >&5 13912 13913fi 13914rm -f conftest.err conftest.$ac_objext \ 13915 conftest$ac_exeext conftest.$ac_ext 13916if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13917 13918 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13919 # Warning - without using the other run time loading flags, 13920 # -berok will link without error, but may produce a broken library. 13921 no_undefined_flag_F77=' ${wl}-bernotok' 13922 allow_undefined_flag_F77=' ${wl}-berok' 13923 # Exported symbols can be pulled into shared objects from archives 13924 whole_archive_flag_spec_F77='$convenience' 13925 archive_cmds_need_lc_F77=yes 13926 # This is similar to how AIX traditionally builds its shared libraries. 13927 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' 13928 fi 13929 fi 13930 ;; 13931 13932 amigaos*) 13933 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)' 13934 hardcode_libdir_flag_spec_F77='-L$libdir' 13935 hardcode_minus_L_F77=yes 13936 # see comment about different semantics on the GNU ld section 13937 ld_shlibs_F77=no 13938 ;; 13939 13940 bsdi[45]*) 13941 export_dynamic_flag_spec_F77=-rdynamic 13942 ;; 13943 13944 cygwin* | mingw* | pw32*) 13945 # When not using gcc, we currently assume that we are using 13946 # Microsoft Visual C++. 13947 # hardcode_libdir_flag_spec is actually meaningless, as there is 13948 # no search path for DLLs. 13949 hardcode_libdir_flag_spec_F77=' ' 13950 allow_undefined_flag_F77=unsupported 13951 # Tell ltmain to make .lib files, not .a files. 13952 libext=lib 13953 # Tell ltmain to make .dll files, not .so files. 13954 shrext_cmds=".dll" 13955 # FIXME: Setting linknames here is a bad hack. 13956 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13957 # The linker will automatically build a .lib file if we build a DLL. 13958 old_archive_From_new_cmds_F77='true' 13959 # FIXME: Should let the user specify the lib program. 13960 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13961 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13962 enable_shared_with_static_runtimes_F77=yes 13963 ;; 13964 13965 darwin* | rhapsody*) 13966 case $host_os in 13967 rhapsody* | darwin1.[012]) 13968 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13969 ;; 13970 *) # Darwin 1.3 on 13971 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13972 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13973 else 13974 case ${MACOSX_DEPLOYMENT_TARGET} in 13975 10.[012]) 13976 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13977 ;; 13978 10.*) 13979 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13980 ;; 13981 esac 13982 fi 13983 ;; 13984 esac 13985 archive_cmds_need_lc_F77=no 13986 hardcode_direct_F77=no 13987 hardcode_automatic_F77=yes 13988 hardcode_shlibpath_var_F77=unsupported 13989 whole_archive_flag_spec_F77='' 13990 link_all_deplibs_F77=yes 13991 if test "$GCC" = yes ; then 13992 output_verbose_link_cmd='echo' 13993 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13994 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13995 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13996 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}' 13997 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}' 13998 else 13999 case $cc_basename in 14000 xlc*) 14001 output_verbose_link_cmd='echo' 14002 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14003 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14004 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14005 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}' 14006 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}' 14007 ;; 14008 *) 14009 ld_shlibs_F77=no 14010 ;; 14011 esac 14012 fi 14013 ;; 14014 14015 dgux*) 14016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14017 hardcode_libdir_flag_spec_F77='-L$libdir' 14018 hardcode_shlibpath_var_F77=no 14019 ;; 14020 14021 freebsd1*) 14022 ld_shlibs_F77=no 14023 ;; 14024 14025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14026 # support. Future versions do this automatically, but an explicit c++rt0.o 14027 # does not break anything, and helps significantly (at the cost of a little 14028 # extra space). 14029 freebsd2.2*) 14030 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14031 hardcode_libdir_flag_spec_F77='-R$libdir' 14032 hardcode_direct_F77=yes 14033 hardcode_shlibpath_var_F77=no 14034 ;; 14035 14036 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14037 freebsd2*) 14038 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14039 hardcode_direct_F77=yes 14040 hardcode_minus_L_F77=yes 14041 hardcode_shlibpath_var_F77=no 14042 ;; 14043 14044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14045 freebsd* | kfreebsd*-gnu | dragonfly*) 14046 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14047 hardcode_libdir_flag_spec_F77='-R$libdir' 14048 hardcode_direct_F77=yes 14049 hardcode_shlibpath_var_F77=no 14050 ;; 14051 14052 hpux9*) 14053 if test "$GCC" = yes; then 14054 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' 14055 else 14056 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' 14057 fi 14058 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14059 hardcode_libdir_separator_F77=: 14060 hardcode_direct_F77=yes 14061 14062 # hardcode_minus_L: Not really in the search PATH, 14063 # but as the default location of the library. 14064 hardcode_minus_L_F77=yes 14065 export_dynamic_flag_spec_F77='${wl}-E' 14066 ;; 14067 14068 hpux10*) 14069 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14070 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14071 else 14072 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14073 fi 14074 if test "$with_gnu_ld" = no; then 14075 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14076 hardcode_libdir_separator_F77=: 14077 14078 hardcode_direct_F77=yes 14079 export_dynamic_flag_spec_F77='${wl}-E' 14080 14081 # hardcode_minus_L: Not really in the search PATH, 14082 # but as the default location of the library. 14083 hardcode_minus_L_F77=yes 14084 fi 14085 ;; 14086 14087 hpux11*) 14088 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14089 case $host_cpu in 14090 hppa*64*) 14091 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14092 ;; 14093 ia64*) 14094 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14095 ;; 14096 *) 14097 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14098 ;; 14099 esac 14100 else 14101 case $host_cpu in 14102 hppa*64*) 14103 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14104 ;; 14105 ia64*) 14106 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14107 ;; 14108 *) 14109 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14110 ;; 14111 esac 14112 fi 14113 if test "$with_gnu_ld" = no; then 14114 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14115 hardcode_libdir_separator_F77=: 14116 14117 case $host_cpu in 14118 hppa*64*|ia64*) 14119 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14120 hardcode_direct_F77=no 14121 hardcode_shlibpath_var_F77=no 14122 ;; 14123 *) 14124 hardcode_direct_F77=yes 14125 export_dynamic_flag_spec_F77='${wl}-E' 14126 14127 # hardcode_minus_L: Not really in the search PATH, 14128 # but as the default location of the library. 14129 hardcode_minus_L_F77=yes 14130 ;; 14131 esac 14132 fi 14133 ;; 14134 14135 irix5* | irix6* | nonstopux*) 14136 if test "$GCC" = yes; then 14137 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' 14138 else 14139 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' 14140 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14141 fi 14142 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14143 hardcode_libdir_separator_F77=: 14144 link_all_deplibs_F77=yes 14145 ;; 14146 14147 netbsd*) 14148 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14149 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14150 else 14151 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14152 fi 14153 hardcode_libdir_flag_spec_F77='-R$libdir' 14154 hardcode_direct_F77=yes 14155 hardcode_shlibpath_var_F77=no 14156 ;; 14157 14158 newsos6) 14159 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14160 hardcode_direct_F77=yes 14161 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14162 hardcode_libdir_separator_F77=: 14163 hardcode_shlibpath_var_F77=no 14164 ;; 14165 14166 openbsd*) 14167 hardcode_direct_F77=yes 14168 hardcode_shlibpath_var_F77=no 14169 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14170 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14171 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14172 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14173 export_dynamic_flag_spec_F77='${wl}-E' 14174 else 14175 case $host_os in 14176 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14177 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14178 hardcode_libdir_flag_spec_F77='-R$libdir' 14179 ;; 14180 *) 14181 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14182 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14183 ;; 14184 esac 14185 fi 14186 ;; 14187 14188 os2*) 14189 hardcode_libdir_flag_spec_F77='-L$libdir' 14190 hardcode_minus_L_F77=yes 14191 allow_undefined_flag_F77=unsupported 14192 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' 14193 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14194 ;; 14195 14196 osf3*) 14197 if test "$GCC" = yes; then 14198 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14199 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' 14200 else 14201 allow_undefined_flag_F77=' -expect_unresolved \*' 14202 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' 14203 fi 14204 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14205 hardcode_libdir_separator_F77=: 14206 ;; 14207 14208 osf4* | osf5*) # as osf3* with the addition of -msym flag 14209 if test "$GCC" = yes; then 14210 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14211 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' 14212 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14213 else 14214 allow_undefined_flag_F77=' -expect_unresolved \*' 14215 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' 14216 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~ 14217 $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' 14218 14219 # Both c and cxx compiler support -rpath directly 14220 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14221 fi 14222 hardcode_libdir_separator_F77=: 14223 ;; 14224 14225 solaris*) 14226 no_undefined_flag_F77=' -z text' 14227 if test "$GCC" = yes; then 14228 wlarc='${wl}' 14229 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14230 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14231 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14232 else 14233 wlarc='' 14234 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14235 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14236 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14237 fi 14238 hardcode_libdir_flag_spec_F77='-R$libdir' 14239 hardcode_shlibpath_var_F77=no 14240 case $host_os in 14241 solaris2.[0-5] | solaris2.[0-5].*) ;; 14242 *) 14243 # The compiler driver will combine linker options so we 14244 # cannot just pass the convience library names through 14245 # without $wl, iff we do not link with $LD. 14246 # Luckily, gcc supports the same syntax we need for Sun Studio. 14247 # Supported since Solaris 2.6 (maybe 2.5.1?) 14248 case $wlarc in 14249 '') 14250 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14251 *) 14252 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' ;; 14253 esac ;; 14254 esac 14255 link_all_deplibs_F77=yes 14256 ;; 14257 14258 sunos4*) 14259 if test "x$host_vendor" = xsequent; then 14260 # Use $CC to link under sequent, because it throws in some extra .o 14261 # files that make .init and .fini sections work. 14262 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14263 else 14264 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14265 fi 14266 hardcode_libdir_flag_spec_F77='-L$libdir' 14267 hardcode_direct_F77=yes 14268 hardcode_minus_L_F77=yes 14269 hardcode_shlibpath_var_F77=no 14270 ;; 14271 14272 sysv4) 14273 case $host_vendor in 14274 sni) 14275 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14276 hardcode_direct_F77=yes # is this really true??? 14277 ;; 14278 siemens) 14279 ## LD is ld it makes a PLAMLIB 14280 ## CC just makes a GrossModule. 14281 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14282 reload_cmds_F77='$CC -r -o $output$reload_objs' 14283 hardcode_direct_F77=no 14284 ;; 14285 motorola) 14286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14287 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14288 ;; 14289 esac 14290 runpath_var='LD_RUN_PATH' 14291 hardcode_shlibpath_var_F77=no 14292 ;; 14293 14294 sysv4.3*) 14295 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14296 hardcode_shlibpath_var_F77=no 14297 export_dynamic_flag_spec_F77='-Bexport' 14298 ;; 14299 14300 sysv4*MP*) 14301 if test -d /usr/nec; then 14302 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14303 hardcode_shlibpath_var_F77=no 14304 runpath_var=LD_RUN_PATH 14305 hardcode_runpath_var=yes 14306 ld_shlibs_F77=yes 14307 fi 14308 ;; 14309 14310 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14311 no_undefined_flag_F77='${wl}-z,text' 14312 archive_cmds_need_lc_F77=no 14313 hardcode_shlibpath_var_F77=no 14314 runpath_var='LD_RUN_PATH' 14315 14316 if test "$GCC" = yes; then 14317 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14318 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14319 else 14320 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14321 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14322 fi 14323 ;; 14324 14325 sysv5* | sco3.2v5* | sco5v6*) 14326 # Note: We can NOT use -z defs as we might desire, because we do not 14327 # link with -lc, and that would cause any symbols used from libc to 14328 # always be unresolved, which means just about no library would 14329 # ever link correctly. If we're not using GNU ld we use -z text 14330 # though, which does catch some bad symbols but isn't as heavy-handed 14331 # as -z defs. 14332 no_undefined_flag_F77='${wl}-z,text' 14333 allow_undefined_flag_F77='${wl}-z,nodefs' 14334 archive_cmds_need_lc_F77=no 14335 hardcode_shlibpath_var_F77=no 14336 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14337 hardcode_libdir_separator_F77=':' 14338 link_all_deplibs_F77=yes 14339 export_dynamic_flag_spec_F77='${wl}-Bexport' 14340 runpath_var='LD_RUN_PATH' 14341 14342 if test "$GCC" = yes; then 14343 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14344 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14345 else 14346 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14347 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14348 fi 14349 ;; 14350 14351 uts4*) 14352 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14353 hardcode_libdir_flag_spec_F77='-L$libdir' 14354 hardcode_shlibpath_var_F77=no 14355 ;; 14356 14357 *) 14358 ld_shlibs_F77=no 14359 ;; 14360 esac 14361 fi 14362 14363echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14364echo "${ECHO_T}$ld_shlibs_F77" >&6 14365test "$ld_shlibs_F77" = no && can_build_shared=no 14366 14367# 14368# Do we need to explicitly link libc? 14369# 14370case "x$archive_cmds_need_lc_F77" in 14371x|xyes) 14372 # Assume -lc should be added 14373 archive_cmds_need_lc_F77=yes 14374 14375 if test "$enable_shared" = yes && test "$GCC" = yes; then 14376 case $archive_cmds_F77 in 14377 *'~'*) 14378 # FIXME: we may have to deal with multi-command sequences. 14379 ;; 14380 '$CC '*) 14381 # Test whether the compiler implicitly links with -lc since on some 14382 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14383 # to ld, don't add -lc before -lgcc. 14384 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14385echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14386 $rm conftest* 14387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14388 14389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14390 (eval $ac_compile) 2>&5 14391 ac_status=$? 14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14393 (exit $ac_status); } 2>conftest.err; then 14394 soname=conftest 14395 lib=conftest 14396 libobjs=conftest.$ac_objext 14397 deplibs= 14398 wl=$lt_prog_compiler_wl_F77 14399 pic_flag=$lt_prog_compiler_pic_F77 14400 compiler_flags=-v 14401 linker_flags=-v 14402 verstring= 14403 output_objdir=. 14404 libname=conftest 14405 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14406 allow_undefined_flag_F77= 14407 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14408 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14409 ac_status=$? 14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14411 (exit $ac_status); } 14412 then 14413 archive_cmds_need_lc_F77=no 14414 else 14415 archive_cmds_need_lc_F77=yes 14416 fi 14417 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14418 else 14419 cat conftest.err 1>&5 14420 fi 14421 $rm conftest* 14422 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14423echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14424 ;; 14425 esac 14426 fi 14427 ;; 14428esac 14429 14430echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14431echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14432library_names_spec= 14433libname_spec='lib$name' 14434soname_spec= 14435shrext_cmds=".so" 14436postinstall_cmds= 14437postuninstall_cmds= 14438finish_cmds= 14439finish_eval= 14440shlibpath_var= 14441shlibpath_overrides_runpath=unknown 14442version_type=none 14443dynamic_linker="$host_os ld.so" 14444sys_lib_dlsearch_path_spec="/lib /usr/lib" 14445if test "$GCC" = yes; then 14446 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14447 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14448 # if the path contains ";" then we assume it to be the separator 14449 # otherwise default to the standard path separator (i.e. ":") - it is 14450 # assumed that no part of a normal pathname contains ";" but that should 14451 # okay in the real world where ";" in dirpaths is itself problematic. 14452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14453 else 14454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14455 fi 14456else 14457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14458fi 14459need_lib_prefix=unknown 14460hardcode_into_libs=no 14461 14462# when you set need_version to no, make sure it does not cause -set_version 14463# flags to be left without arguments 14464need_version=unknown 14465 14466case $host_os in 14467aix3*) 14468 version_type=linux 14469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14470 shlibpath_var=LIBPATH 14471 14472 # AIX 3 has no versioning support, so we append a major version to the name. 14473 soname_spec='${libname}${release}${shared_ext}$major' 14474 ;; 14475 14476aix4* | aix5*) 14477 version_type=linux 14478 need_lib_prefix=no 14479 need_version=no 14480 hardcode_into_libs=yes 14481 if test "$host_cpu" = ia64; then 14482 # AIX 5 supports IA64 14483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14484 shlibpath_var=LD_LIBRARY_PATH 14485 else 14486 # With GCC up to 2.95.x, collect2 would create an import file 14487 # for dependence libraries. The import file would start with 14488 # the line `#! .'. This would cause the generated library to 14489 # depend on `.', always an invalid library. This was fixed in 14490 # development snapshots of GCC prior to 3.0. 14491 case $host_os in 14492 aix4 | aix4.[01] | aix4.[01].*) 14493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14494 echo ' yes ' 14495 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14496 : 14497 else 14498 can_build_shared=no 14499 fi 14500 ;; 14501 esac 14502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14503 # soname into executable. Probably we can add versioning support to 14504 # collect2, so additional links can be useful in future. 14505 if test "$aix_use_runtimelinking" = yes; then 14506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14507 # instead of lib<name>.a to let people know that these are not 14508 # typical AIX shared libraries. 14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14510 else 14511 # We preserve .a as extension for shared libraries through AIX4.2 14512 # and later when we are not doing run time linking. 14513 library_names_spec='${libname}${release}.a $libname.a' 14514 soname_spec='${libname}${release}${shared_ext}$major' 14515 fi 14516 shlibpath_var=LIBPATH 14517 fi 14518 ;; 14519 14520amigaos*) 14521 library_names_spec='$libname.ixlibrary $libname.a' 14522 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14523 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' 14524 ;; 14525 14526beos*) 14527 library_names_spec='${libname}${shared_ext}' 14528 dynamic_linker="$host_os ld.so" 14529 shlibpath_var=LIBRARY_PATH 14530 ;; 14531 14532bsdi[45]*) 14533 version_type=linux 14534 need_version=no 14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14536 soname_spec='${libname}${release}${shared_ext}$major' 14537 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14538 shlibpath_var=LD_LIBRARY_PATH 14539 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14540 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14541 # the default ld.so.conf also contains /usr/contrib/lib and 14542 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14543 # libtool to hard-code these into programs 14544 ;; 14545 14546cygwin* | mingw* | pw32*) 14547 version_type=windows 14548 shrext_cmds=".dll" 14549 need_version=no 14550 need_lib_prefix=no 14551 14552 case $GCC,$host_os in 14553 yes,cygwin* | yes,mingw* | yes,pw32*) 14554 library_names_spec='$libname.dll.a' 14555 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14556 postinstall_cmds='base_file=`basename \${file}`~ 14557 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14558 dldir=$destdir/`dirname \$dlpath`~ 14559 test -d \$dldir || mkdir -p \$dldir~ 14560 $install_prog $dir/$dlname \$dldir/$dlname~ 14561 chmod a+x \$dldir/$dlname' 14562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14563 dlpath=$dir/\$dldll~ 14564 $rm \$dlpath' 14565 shlibpath_overrides_runpath=yes 14566 14567 case $host_os in 14568 cygwin*) 14569 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14570 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14571 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14572 ;; 14573 mingw*) 14574 # MinGW DLLs use traditional 'lib' prefix 14575 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14577 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14578 # It is most probably a Windows format PATH printed by 14579 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14580 # path with ; separators, and with drive letters. We can handle the 14581 # drive letters (cygwin fileutils understands them), so leave them, 14582 # especially as we might pass files found there to a mingw objdump, 14583 # which wouldn't understand a cygwinified path. Ahh. 14584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14585 else 14586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14587 fi 14588 ;; 14589 pw32*) 14590 # pw32 DLLs use 'pw' prefix rather than 'lib' 14591 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14592 ;; 14593 esac 14594 ;; 14595 14596 *) 14597 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14598 ;; 14599 esac 14600 dynamic_linker='Win32 ld.exe' 14601 # FIXME: first we should search . and the directory the executable is in 14602 shlibpath_var=PATH 14603 ;; 14604 14605darwin* | rhapsody*) 14606 dynamic_linker="$host_os dyld" 14607 version_type=darwin 14608 need_lib_prefix=no 14609 need_version=no 14610 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14611 soname_spec='${libname}${release}${major}$shared_ext' 14612 shlibpath_overrides_runpath=yes 14613 shlibpath_var=DYLD_LIBRARY_PATH 14614 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14615 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14616 if test "$GCC" = yes; then 14617 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"` 14618 else 14619 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14620 fi 14621 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14622 ;; 14623 14624dgux*) 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 ;; 14632 14633freebsd1*) 14634 dynamic_linker=no 14635 ;; 14636 14637kfreebsd*-gnu) 14638 version_type=linux 14639 need_lib_prefix=no 14640 need_version=no 14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14642 soname_spec='${libname}${release}${shared_ext}$major' 14643 shlibpath_var=LD_LIBRARY_PATH 14644 shlibpath_overrides_runpath=no 14645 hardcode_into_libs=yes 14646 dynamic_linker='GNU ld.so' 14647 ;; 14648 14649freebsd* | dragonfly*) 14650 # DragonFly does not have aout. When/if they implement a new 14651 # versioning mechanism, adjust this. 14652 if test -x /usr/bin/objformat; then 14653 objformat=`/usr/bin/objformat` 14654 else 14655 case $host_os in 14656 freebsd[123]*) objformat=aout ;; 14657 *) objformat=elf ;; 14658 esac 14659 fi 14660 version_type=freebsd-$objformat 14661 case $version_type in 14662 freebsd-elf*) 14663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14664 need_version=no 14665 need_lib_prefix=no 14666 ;; 14667 freebsd-*) 14668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14669 need_version=yes 14670 ;; 14671 esac 14672 shlibpath_var=LD_LIBRARY_PATH 14673 case $host_os in 14674 freebsd2*) 14675 shlibpath_overrides_runpath=yes 14676 ;; 14677 freebsd3.[01]* | freebsdelf3.[01]*) 14678 shlibpath_overrides_runpath=yes 14679 hardcode_into_libs=yes 14680 ;; 14681 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14682 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14683 shlibpath_overrides_runpath=no 14684 hardcode_into_libs=yes 14685 ;; 14686 freebsd*) # from 4.6 on 14687 shlibpath_overrides_runpath=yes 14688 hardcode_into_libs=yes 14689 ;; 14690 esac 14691 ;; 14692 14693gnu*) 14694 version_type=linux 14695 need_lib_prefix=no 14696 need_version=no 14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14698 soname_spec='${libname}${release}${shared_ext}$major' 14699 shlibpath_var=LD_LIBRARY_PATH 14700 hardcode_into_libs=yes 14701 ;; 14702 14703hpux9* | hpux10* | hpux11*) 14704 # Give a soname corresponding to the major version so that dld.sl refuses to 14705 # link against other versions. 14706 version_type=sunos 14707 need_lib_prefix=no 14708 need_version=no 14709 case $host_cpu in 14710 ia64*) 14711 shrext_cmds='.so' 14712 hardcode_into_libs=yes 14713 dynamic_linker="$host_os dld.so" 14714 shlibpath_var=LD_LIBRARY_PATH 14715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14717 soname_spec='${libname}${release}${shared_ext}$major' 14718 if test "X$HPUX_IA64_MODE" = X32; then 14719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14720 else 14721 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14722 fi 14723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14724 ;; 14725 hppa*64*) 14726 shrext_cmds='.sl' 14727 hardcode_into_libs=yes 14728 dynamic_linker="$host_os dld.sl" 14729 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14732 soname_spec='${libname}${release}${shared_ext}$major' 14733 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14735 ;; 14736 *) 14737 shrext_cmds='.sl' 14738 dynamic_linker="$host_os dld.sl" 14739 shlibpath_var=SHLIB_PATH 14740 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14742 soname_spec='${libname}${release}${shared_ext}$major' 14743 ;; 14744 esac 14745 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14746 postinstall_cmds='chmod 555 $lib' 14747 ;; 14748 14749interix3*) 14750 version_type=linux 14751 need_lib_prefix=no 14752 need_version=no 14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14754 soname_spec='${libname}${release}${shared_ext}$major' 14755 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14756 shlibpath_var=LD_LIBRARY_PATH 14757 shlibpath_overrides_runpath=no 14758 hardcode_into_libs=yes 14759 ;; 14760 14761irix5* | irix6* | nonstopux*) 14762 case $host_os in 14763 nonstopux*) version_type=nonstopux ;; 14764 *) 14765 if test "$lt_cv_prog_gnu_ld" = yes; then 14766 version_type=linux 14767 else 14768 version_type=irix 14769 fi ;; 14770 esac 14771 need_lib_prefix=no 14772 need_version=no 14773 soname_spec='${libname}${release}${shared_ext}$major' 14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14775 case $host_os in 14776 irix5* | nonstopux*) 14777 libsuff= shlibsuff= 14778 ;; 14779 *) 14780 case $LD in # libtool.m4 will add one of these switches to LD 14781 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14782 libsuff= shlibsuff= libmagic=32-bit;; 14783 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14784 libsuff=32 shlibsuff=N32 libmagic=N32;; 14785 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14786 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14787 *) libsuff= shlibsuff= libmagic=never-match;; 14788 esac 14789 ;; 14790 esac 14791 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14792 shlibpath_overrides_runpath=no 14793 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14794 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14795 hardcode_into_libs=yes 14796 ;; 14797 14798# No shared lib support for Linux oldld, aout, or coff. 14799linux*oldld* | linux*aout* | linux*coff*) 14800 dynamic_linker=no 14801 ;; 14802 14803# This must be Linux ELF. 14804linux*) 14805 version_type=linux 14806 need_lib_prefix=no 14807 need_version=no 14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14809 soname_spec='${libname}${release}${shared_ext}$major' 14810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14811 shlibpath_var=LD_LIBRARY_PATH 14812 shlibpath_overrides_runpath=no 14813 # This implies no fast_install, which is unacceptable. 14814 # Some rework will be needed to allow for fast_install 14815 # before this can be enabled. 14816 hardcode_into_libs=yes 14817 14818 # find out which ABI we are using 14819 libsuff= 14820 case "$host_cpu" in 14821 x86_64*|s390x*|powerpc64*) 14822 echo '#line 14822 "configure"' > conftest.$ac_ext 14823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14824 (eval $ac_compile) 2>&5 14825 ac_status=$? 14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14827 (exit $ac_status); }; then 14828 case `/usr/bin/file conftest.$ac_objext` in 14829 *64-bit*) 14830 libsuff=64 14831 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14832 ;; 14833 esac 14834 fi 14835 rm -rf conftest* 14836 ;; 14837 esac 14838 14839 # Append ld.so.conf contents to the search path 14840 if test -f /etc/ld.so.conf; then 14841 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14842 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14843 fi 14844 14845 # We used to test for /lib/ld.so.1 and disable shared libraries on 14846 # powerpc, because MkLinux only supported shared libraries with the 14847 # GNU dynamic linker. Since this was broken with cross compilers, 14848 # most powerpc-linux boxes support dynamic linking these days and 14849 # people can always --disable-shared, the test was removed, and we 14850 # assume the GNU/Linux dynamic linker is in use. 14851 dynamic_linker='GNU/Linux ld.so' 14852 ;; 14853 14854knetbsd*-gnu) 14855 version_type=linux 14856 need_lib_prefix=no 14857 need_version=no 14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14859 soname_spec='${libname}${release}${shared_ext}$major' 14860 shlibpath_var=LD_LIBRARY_PATH 14861 shlibpath_overrides_runpath=no 14862 hardcode_into_libs=yes 14863 dynamic_linker='GNU ld.so' 14864 ;; 14865 14866netbsd*) 14867 version_type=sunos 14868 need_lib_prefix=no 14869 need_version=no 14870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14873 dynamic_linker='NetBSD (a.out) ld.so' 14874 else 14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14876 soname_spec='${libname}${release}${shared_ext}$major' 14877 dynamic_linker='NetBSD ld.elf_so' 14878 fi 14879 shlibpath_var=LD_LIBRARY_PATH 14880 shlibpath_overrides_runpath=yes 14881 hardcode_into_libs=yes 14882 ;; 14883 14884newsos6) 14885 version_type=linux 14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14887 shlibpath_var=LD_LIBRARY_PATH 14888 shlibpath_overrides_runpath=yes 14889 ;; 14890 14891nto-qnx*) 14892 version_type=linux 14893 need_lib_prefix=no 14894 need_version=no 14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14896 soname_spec='${libname}${release}${shared_ext}$major' 14897 shlibpath_var=LD_LIBRARY_PATH 14898 shlibpath_overrides_runpath=yes 14899 ;; 14900 14901openbsd*) 14902 version_type=sunos 14903 sys_lib_dlsearch_path_spec="/usr/lib" 14904 need_lib_prefix=no 14905 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14906 case $host_os in 14907 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14908 *) need_version=no ;; 14909 esac 14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14912 shlibpath_var=LD_LIBRARY_PATH 14913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14914 case $host_os in 14915 openbsd2.[89] | openbsd2.[89].*) 14916 shlibpath_overrides_runpath=no 14917 ;; 14918 *) 14919 shlibpath_overrides_runpath=yes 14920 ;; 14921 esac 14922 else 14923 shlibpath_overrides_runpath=yes 14924 fi 14925 ;; 14926 14927os2*) 14928 libname_spec='$name' 14929 shrext_cmds=".dll" 14930 need_lib_prefix=no 14931 library_names_spec='$libname${shared_ext} $libname.a' 14932 dynamic_linker='OS/2 ld.exe' 14933 shlibpath_var=LIBPATH 14934 ;; 14935 14936osf3* | osf4* | osf5*) 14937 version_type=osf 14938 need_lib_prefix=no 14939 need_version=no 14940 soname_spec='${libname}${release}${shared_ext}$major' 14941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14942 shlibpath_var=LD_LIBRARY_PATH 14943 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14944 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14945 ;; 14946 14947solaris*) 14948 version_type=linux 14949 need_lib_prefix=no 14950 need_version=no 14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14952 soname_spec='${libname}${release}${shared_ext}$major' 14953 shlibpath_var=LD_LIBRARY_PATH 14954 shlibpath_overrides_runpath=yes 14955 hardcode_into_libs=yes 14956 # ldd complains unless libraries are executable 14957 postinstall_cmds='chmod +x $lib' 14958 ;; 14959 14960sunos4*) 14961 version_type=sunos 14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14963 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14964 shlibpath_var=LD_LIBRARY_PATH 14965 shlibpath_overrides_runpath=yes 14966 if test "$with_gnu_ld" = yes; then 14967 need_lib_prefix=no 14968 fi 14969 need_version=yes 14970 ;; 14971 14972sysv4 | sysv4.3*) 14973 version_type=linux 14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14975 soname_spec='${libname}${release}${shared_ext}$major' 14976 shlibpath_var=LD_LIBRARY_PATH 14977 case $host_vendor in 14978 sni) 14979 shlibpath_overrides_runpath=no 14980 need_lib_prefix=no 14981 export_dynamic_flag_spec='${wl}-Blargedynsym' 14982 runpath_var=LD_RUN_PATH 14983 ;; 14984 siemens) 14985 need_lib_prefix=no 14986 ;; 14987 motorola) 14988 need_lib_prefix=no 14989 need_version=no 14990 shlibpath_overrides_runpath=no 14991 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14992 ;; 14993 esac 14994 ;; 14995 14996sysv4*MP*) 14997 if test -d /usr/nec ;then 14998 version_type=linux 14999 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15000 soname_spec='$libname${shared_ext}.$major' 15001 shlibpath_var=LD_LIBRARY_PATH 15002 fi 15003 ;; 15004 15005sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15006 version_type=freebsd-elf 15007 need_lib_prefix=no 15008 need_version=no 15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15010 soname_spec='${libname}${release}${shared_ext}$major' 15011 shlibpath_var=LD_LIBRARY_PATH 15012 hardcode_into_libs=yes 15013 if test "$with_gnu_ld" = yes; then 15014 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15015 shlibpath_overrides_runpath=no 15016 else 15017 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15018 shlibpath_overrides_runpath=yes 15019 case $host_os in 15020 sco3.2v5*) 15021 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15022 ;; 15023 esac 15024 fi 15025 sys_lib_dlsearch_path_spec='/usr/lib' 15026 ;; 15027 15028uts4*) 15029 version_type=linux 15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15031 soname_spec='${libname}${release}${shared_ext}$major' 15032 shlibpath_var=LD_LIBRARY_PATH 15033 ;; 15034 15035*) 15036 dynamic_linker=no 15037 ;; 15038esac 15039echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15040echo "${ECHO_T}$dynamic_linker" >&6 15041test "$dynamic_linker" = no && can_build_shared=no 15042 15043variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15044if test "$GCC" = yes; then 15045 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15046fi 15047 15048echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15049echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15050hardcode_action_F77= 15051if test -n "$hardcode_libdir_flag_spec_F77" || \ 15052 test -n "$runpath_var_F77" || \ 15053 test "X$hardcode_automatic_F77" = "Xyes" ; then 15054 15055 # We can hardcode non-existant directories. 15056 if test "$hardcode_direct_F77" != no && 15057 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15058 # have to relink, otherwise we might link with an installed library 15059 # when we should be linking with a yet-to-be-installed one 15060 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15061 test "$hardcode_minus_L_F77" != no; then 15062 # Linking always hardcodes the temporary library directory. 15063 hardcode_action_F77=relink 15064 else 15065 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15066 hardcode_action_F77=immediate 15067 fi 15068else 15069 # We cannot hardcode anything, or else we can only hardcode existing 15070 # directories. 15071 hardcode_action_F77=unsupported 15072fi 15073echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15074echo "${ECHO_T}$hardcode_action_F77" >&6 15075 15076if test "$hardcode_action_F77" = relink; then 15077 # Fast installation is not supported 15078 enable_fast_install=no 15079elif test "$shlibpath_overrides_runpath" = yes || 15080 test "$enable_shared" = no; then 15081 # Fast installation is not necessary 15082 enable_fast_install=needless 15083fi 15084 15085 15086# The else clause should only fire when bootstrapping the 15087# libtool distribution, otherwise you forgot to ship ltmain.sh 15088# with your package, and you will get complaints that there are 15089# no rules to generate ltmain.sh. 15090if test -f "$ltmain"; then 15091 # See if we are running on zsh, and set the options which allow our commands through 15092 # without removal of \ escapes. 15093 if test -n "${ZSH_VERSION+set}" ; then 15094 setopt NO_GLOB_SUBST 15095 fi 15096 # Now quote all the things that may contain metacharacters while being 15097 # careful not to overquote the AC_SUBSTed values. We take copies of the 15098 # variables and quote the copies for generation of the libtool script. 15099 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15100 SED SHELL STRIP \ 15101 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15102 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15103 deplibs_check_method reload_flag reload_cmds need_locks \ 15104 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15105 lt_cv_sys_global_symbol_to_c_name_address \ 15106 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15107 old_postinstall_cmds old_postuninstall_cmds \ 15108 compiler_F77 \ 15109 CC_F77 \ 15110 LD_F77 \ 15111 lt_prog_compiler_wl_F77 \ 15112 lt_prog_compiler_pic_F77 \ 15113 lt_prog_compiler_static_F77 \ 15114 lt_prog_compiler_no_builtin_flag_F77 \ 15115 export_dynamic_flag_spec_F77 \ 15116 thread_safe_flag_spec_F77 \ 15117 whole_archive_flag_spec_F77 \ 15118 enable_shared_with_static_runtimes_F77 \ 15119 old_archive_cmds_F77 \ 15120 old_archive_from_new_cmds_F77 \ 15121 predep_objects_F77 \ 15122 postdep_objects_F77 \ 15123 predeps_F77 \ 15124 postdeps_F77 \ 15125 compiler_lib_search_path_F77 \ 15126 archive_cmds_F77 \ 15127 archive_expsym_cmds_F77 \ 15128 postinstall_cmds_F77 \ 15129 postuninstall_cmds_F77 \ 15130 old_archive_from_expsyms_cmds_F77 \ 15131 allow_undefined_flag_F77 \ 15132 no_undefined_flag_F77 \ 15133 export_symbols_cmds_F77 \ 15134 hardcode_libdir_flag_spec_F77 \ 15135 hardcode_libdir_flag_spec_ld_F77 \ 15136 hardcode_libdir_separator_F77 \ 15137 hardcode_automatic_F77 \ 15138 module_cmds_F77 \ 15139 module_expsym_cmds_F77 \ 15140 lt_cv_prog_compiler_c_o_F77 \ 15141 exclude_expsyms_F77 \ 15142 include_expsyms_F77; do 15143 15144 case $var in 15145 old_archive_cmds_F77 | \ 15146 old_archive_from_new_cmds_F77 | \ 15147 archive_cmds_F77 | \ 15148 archive_expsym_cmds_F77 | \ 15149 module_cmds_F77 | \ 15150 module_expsym_cmds_F77 | \ 15151 old_archive_from_expsyms_cmds_F77 | \ 15152 export_symbols_cmds_F77 | \ 15153 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15154 postinstall_cmds | postuninstall_cmds | \ 15155 old_postinstall_cmds | old_postuninstall_cmds | \ 15156 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15157 # Double-quote double-evaled strings. 15158 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15159 ;; 15160 *) 15161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15162 ;; 15163 esac 15164 done 15165 15166 case $lt_echo in 15167 *'\$0 --fallback-echo"') 15168 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15169 ;; 15170 esac 15171 15172cfgfile="$ofile" 15173 15174 cat <<__EOF__ >> "$cfgfile" 15175# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15176 15177# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15178 15179# Shell to use when invoking shell scripts. 15180SHELL=$lt_SHELL 15181 15182# Whether or not to build shared libraries. 15183build_libtool_libs=$enable_shared 15184 15185# Whether or not to build static libraries. 15186build_old_libs=$enable_static 15187 15188# Whether or not to add -lc for building shared libraries. 15189build_libtool_need_lc=$archive_cmds_need_lc_F77 15190 15191# Whether or not to disallow shared libs when runtime libs are static 15192allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15193 15194# Whether or not to optimize for fast installation. 15195fast_install=$enable_fast_install 15196 15197# The host system. 15198host_alias=$host_alias 15199host=$host 15200host_os=$host_os 15201 15202# The build system. 15203build_alias=$build_alias 15204build=$build 15205build_os=$build_os 15206 15207# An echo program that does not interpret backslashes. 15208echo=$lt_echo 15209 15210# The archiver. 15211AR=$lt_AR 15212AR_FLAGS=$lt_AR_FLAGS 15213 15214# A C compiler. 15215LTCC=$lt_LTCC 15216 15217# LTCC compiler flags. 15218LTCFLAGS=$lt_LTCFLAGS 15219 15220# A language-specific compiler. 15221CC=$lt_compiler_F77 15222 15223# Is the compiler the GNU C compiler? 15224with_gcc=$GCC_F77 15225 15226gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 15227gcc_ver=\`gcc -dumpversion\` 15228 15229# An ERE matcher. 15230EGREP=$lt_EGREP 15231 15232# The linker used to build libraries. 15233LD=$lt_LD_F77 15234 15235# Whether we need hard or soft links. 15236LN_S=$lt_LN_S 15237 15238# A BSD-compatible nm program. 15239NM=$lt_NM 15240 15241# A symbol stripping program 15242STRIP=$lt_STRIP 15243 15244# Used to examine libraries when file_magic_cmd begins "file" 15245MAGIC_CMD=$MAGIC_CMD 15246 15247# Used on cygwin: DLL creation program. 15248DLLTOOL="$DLLTOOL" 15249 15250# Used on cygwin: object dumper. 15251OBJDUMP="$OBJDUMP" 15252 15253# Used on cygwin: assembler. 15254AS="$AS" 15255 15256# The name of the directory that contains temporary libtool files. 15257objdir=$objdir 15258 15259# How to create reloadable object files. 15260reload_flag=$lt_reload_flag 15261reload_cmds=$lt_reload_cmds 15262 15263# How to pass a linker flag through the compiler. 15264wl=$lt_lt_prog_compiler_wl_F77 15265 15266# Object file suffix (normally "o"). 15267objext="$ac_objext" 15268 15269# Old archive suffix (normally "a"). 15270libext="$libext" 15271 15272# Shared library suffix (normally ".so"). 15273shrext_cmds='$shrext_cmds' 15274 15275# Executable file suffix (normally ""). 15276exeext="$exeext" 15277 15278# Additional compiler flags for building library objects. 15279pic_flag=$lt_lt_prog_compiler_pic_F77 15280pic_mode=$pic_mode 15281 15282# What is the maximum length of a command? 15283max_cmd_len=$lt_cv_sys_max_cmd_len 15284 15285# Does compiler simultaneously support -c and -o options? 15286compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15287 15288# Must we lock files when doing compilation? 15289need_locks=$lt_need_locks 15290 15291# Do we need the lib prefix for modules? 15292need_lib_prefix=$need_lib_prefix 15293 15294# Do we need a version for libraries? 15295need_version=$need_version 15296 15297# Whether dlopen is supported. 15298dlopen_support=$enable_dlopen 15299 15300# Whether dlopen of programs is supported. 15301dlopen_self=$enable_dlopen_self 15302 15303# Whether dlopen of statically linked programs is supported. 15304dlopen_self_static=$enable_dlopen_self_static 15305 15306# Compiler flag to prevent dynamic linking. 15307link_static_flag=$lt_lt_prog_compiler_static_F77 15308 15309# Compiler flag to turn off builtin functions. 15310no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15311 15312# Compiler flag to allow reflexive dlopens. 15313export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15314 15315# Compiler flag to generate shared objects directly from archives. 15316whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15317 15318# Compiler flag to generate thread-safe objects. 15319thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15320 15321# Library versioning type. 15322version_type=$version_type 15323 15324# Format of library name prefix. 15325libname_spec=$lt_libname_spec 15326 15327# List of archive names. First name is the real one, the rest are links. 15328# The last name is the one that the linker finds with -lNAME. 15329library_names_spec=$lt_library_names_spec 15330 15331# The coded name of the library, if different from the real name. 15332soname_spec=$lt_soname_spec 15333 15334# Commands used to build and install an old-style archive. 15335RANLIB=$lt_RANLIB 15336old_archive_cmds=$lt_old_archive_cmds_F77 15337old_postinstall_cmds=$lt_old_postinstall_cmds 15338old_postuninstall_cmds=$lt_old_postuninstall_cmds 15339 15340# Create an old-style archive from a shared archive. 15341old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15342 15343# Create a temporary old-style archive to link instead of a shared archive. 15344old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15345 15346# Commands used to build and install a shared archive. 15347archive_cmds=$lt_archive_cmds_F77 15348archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15349postinstall_cmds=$lt_postinstall_cmds 15350postuninstall_cmds=$lt_postuninstall_cmds 15351 15352# Commands used to build a loadable module (assumed same as above if empty) 15353module_cmds=$lt_module_cmds_F77 15354module_expsym_cmds=$lt_module_expsym_cmds_F77 15355 15356# Commands to strip libraries. 15357old_striplib=$lt_old_striplib 15358striplib=$lt_striplib 15359 15360# Dependencies to place before the objects being linked to create a 15361# shared library. 15362predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15363 15364# Dependencies to place after the objects being linked to create a 15365# shared library. 15366postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15367 15368# Dependencies to place before the objects being linked to create a 15369# shared library. 15370predeps=$lt_predeps_F77 15371 15372# Dependencies to place after the objects being linked to create a 15373# shared library. 15374postdeps=$lt_postdeps_F77 15375 15376# The library search path used internally by the compiler when linking 15377# a shared library. 15378compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15379 15380# Method to check whether dependent libraries are shared objects. 15381deplibs_check_method=$lt_deplibs_check_method 15382 15383# Command to use when deplibs_check_method == file_magic. 15384file_magic_cmd=$lt_file_magic_cmd 15385 15386# Flag that allows shared libraries with undefined symbols to be built. 15387allow_undefined_flag=$lt_allow_undefined_flag_F77 15388 15389# Flag that forces no undefined symbols. 15390no_undefined_flag=$lt_no_undefined_flag_F77 15391 15392# Commands used to finish a libtool library installation in a directory. 15393finish_cmds=$lt_finish_cmds 15394 15395# Same as above, but a single script fragment to be evaled but not shown. 15396finish_eval=$lt_finish_eval 15397 15398# Take the output of nm and produce a listing of raw symbols and C names. 15399global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15400 15401# Transform the output of nm in a proper C declaration 15402global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15403 15404# Transform the output of nm in a C name address pair 15405global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15406 15407# This is the shared library runtime path variable. 15408runpath_var=$runpath_var 15409 15410# This is the shared library path variable. 15411shlibpath_var=$shlibpath_var 15412 15413# Is shlibpath searched before the hard-coded library search path? 15414shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15415 15416# How to hardcode a shared library path into an executable. 15417hardcode_action=$hardcode_action_F77 15418 15419# Whether we should hardcode library paths into libraries. 15420hardcode_into_libs=$hardcode_into_libs 15421 15422# Flag to hardcode \$libdir into a binary during linking. 15423# This must work even if \$libdir does not exist. 15424hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15425 15426# If ld is used when linking, flag to hardcode \$libdir into 15427# a binary during linking. This must work even if \$libdir does 15428# not exist. 15429hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15430 15431# Whether we need a single -rpath flag with a separated argument. 15432hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15433 15434# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15435# resulting binary. 15436hardcode_direct=$hardcode_direct_F77 15437 15438# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15439# resulting binary. 15440hardcode_minus_L=$hardcode_minus_L_F77 15441 15442# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15443# the resulting binary. 15444hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15445 15446# Set to yes if building a shared library automatically hardcodes DIR into the library 15447# and all subsequent libraries and executables linked against it. 15448hardcode_automatic=$hardcode_automatic_F77 15449 15450# Variables whose values should be saved in libtool wrapper scripts and 15451# restored at relink time. 15452variables_saved_for_relink="$variables_saved_for_relink" 15453 15454# Whether libtool must link a program against all its dependency libraries. 15455link_all_deplibs=$link_all_deplibs_F77 15456 15457# Compile-time system search path for libraries 15458sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15459 15460# Run-time system search path for libraries 15461sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15462 15463# Fix the shell variable \$srcfile for the compiler. 15464fix_srcfile_path="$fix_srcfile_path_F77" 15465 15466# Set to yes if exported symbols are required. 15467always_export_symbols=$always_export_symbols_F77 15468 15469# The commands to list exported symbols. 15470export_symbols_cmds=$lt_export_symbols_cmds_F77 15471 15472# The commands to extract the exported symbol list from a shared archive. 15473extract_expsyms_cmds=$lt_extract_expsyms_cmds 15474 15475# Symbols that should not be listed in the preloaded symbols. 15476exclude_expsyms=$lt_exclude_expsyms_F77 15477 15478# Symbols that must always be exported. 15479include_expsyms=$lt_include_expsyms_F77 15480 15481# ### END LIBTOOL TAG CONFIG: $tagname 15482 15483__EOF__ 15484 15485 15486else 15487 # If there is no Makefile yet, we rely on a make rule to execute 15488 # `config.status --recheck' to rerun these tests and create the 15489 # libtool script then. 15490 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15491 if test -f "$ltmain_in"; then 15492 test -f Makefile && make "$ltmain" 15493 fi 15494fi 15495 15496 15497ac_ext=c 15498ac_cpp='$CPP $CPPFLAGS' 15499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15501ac_compiler_gnu=$ac_cv_c_compiler_gnu 15502 15503CC="$lt_save_CC" 15504 15505 else 15506 tagname="" 15507 fi 15508 ;; 15509 15510 GCJ) 15511 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15512 15513 15514 15515# Source file extension for Java test sources. 15516ac_ext=java 15517 15518# Object file extension for compiled Java test sources. 15519objext=o 15520objext_GCJ=$objext 15521 15522# Code to be used in simple compile tests 15523lt_simple_compile_test_code="class foo {}\n" 15524 15525# Code to be used in simple link tests 15526lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15527 15528# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15529 15530# If no C compiler was specified, use CC. 15531LTCC=${LTCC-"$CC"} 15532 15533# If no C compiler flags were specified, use CFLAGS. 15534LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15535 15536# Allow CC to be a program name with arguments. 15537compiler=$CC 15538 15539 15540# save warnings/boilerplate of simple test code 15541ac_outfile=conftest.$ac_objext 15542printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15543eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15544_lt_compiler_boilerplate=`cat conftest.err` 15545$rm conftest* 15546 15547ac_outfile=conftest.$ac_objext 15548printf "$lt_simple_link_test_code" >conftest.$ac_ext 15549eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15550_lt_linker_boilerplate=`cat conftest.err` 15551$rm conftest* 15552 15553 15554# Allow CC to be a program name with arguments. 15555lt_save_CC="$CC" 15556CC=${GCJ-"gcj"} 15557compiler=$CC 15558compiler_GCJ=$CC 15559for cc_temp in $compiler""; do 15560 case $cc_temp in 15561 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15562 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15563 \-*) ;; 15564 *) break;; 15565 esac 15566done 15567cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15568 15569 15570# GCJ did not exist at the time GCC didn't implicitly link libc in. 15571archive_cmds_need_lc_GCJ=no 15572 15573old_archive_cmds_GCJ=$old_archive_cmds 15574 15575 15576lt_prog_compiler_no_builtin_flag_GCJ= 15577 15578if test "$GCC" = yes; then 15579 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15580 15581 15582echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15583echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15584if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15585 echo $ECHO_N "(cached) $ECHO_C" >&6 15586else 15587 lt_cv_prog_compiler_rtti_exceptions=no 15588 ac_outfile=conftest.$ac_objext 15589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15590 lt_compiler_flag="-fno-rtti -fno-exceptions" 15591 # Insert the option either (1) after the last *FLAGS variable, or 15592 # (2) before a word containing "conftest.", or (3) at the end. 15593 # Note that $ac_compile itself does not contain backslashes and begins 15594 # with a dollar sign (not a hyphen), so the echo should work correctly. 15595 # The option is referenced via a variable to avoid confusing sed. 15596 lt_compile=`echo "$ac_compile" | $SED \ 15597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15599 -e 's:$: $lt_compiler_flag:'` 15600 (eval echo "\"\$as_me:15600: $lt_compile\"" >&5) 15601 (eval "$lt_compile" 2>conftest.err) 15602 ac_status=$? 15603 cat conftest.err >&5 15604 echo "$as_me:15604: \$? = $ac_status" >&5 15605 if (exit $ac_status) && test -s "$ac_outfile"; then 15606 # The compiler can only warn and ignore the option if not recognized 15607 # So say no if there are warnings other than the usual output. 15608 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15610 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15611 lt_cv_prog_compiler_rtti_exceptions=yes 15612 fi 15613 fi 15614 $rm conftest* 15615 15616fi 15617echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15618echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15619 15620if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15621 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15622else 15623 : 15624fi 15625 15626fi 15627 15628lt_prog_compiler_wl_GCJ= 15629lt_prog_compiler_pic_GCJ= 15630lt_prog_compiler_static_GCJ= 15631 15632echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15633echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15634 15635 if test "$GCC" = yes; then 15636 lt_prog_compiler_wl_GCJ='-Wl,' 15637 lt_prog_compiler_static_GCJ='-static' 15638 15639 case $host_os in 15640 aix*) 15641 # All AIX code is PIC. 15642 if test "$host_cpu" = ia64; then 15643 # AIX 5 now supports IA64 processor 15644 lt_prog_compiler_static_GCJ='-Bstatic' 15645 fi 15646 ;; 15647 15648 amigaos*) 15649 # FIXME: we need at least 68020 code to build shared libraries, but 15650 # adding the `-m68020' flag to GCC prevents building anything better, 15651 # like `-m68040'. 15652 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15653 ;; 15654 15655 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15656 # PIC is the default for these OSes. 15657 ;; 15658 15659 mingw* | pw32* | os2*) 15660 # This hack is so that the source file can tell whether it is being 15661 # built for inclusion in a dll (and should export symbols for example). 15662 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15663 ;; 15664 15665 darwin* | rhapsody*) 15666 # PIC is the default on this platform 15667 # Common symbols not allowed in MH_DYLIB files 15668 lt_prog_compiler_pic_GCJ='-fno-common' 15669 ;; 15670 15671 interix3*) 15672 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15673 # Instead, we relocate shared libraries at runtime. 15674 ;; 15675 15676 msdosdjgpp*) 15677 # Just because we use GCC doesn't mean we suddenly get shared libraries 15678 # on systems that don't support them. 15679 lt_prog_compiler_can_build_shared_GCJ=no 15680 enable_shared=no 15681 ;; 15682 15683 sysv4*MP*) 15684 if test -d /usr/nec; then 15685 lt_prog_compiler_pic_GCJ=-Kconform_pic 15686 fi 15687 ;; 15688 15689 hpux*) 15690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15691 # not for PA HP-UX. 15692 case $host_cpu in 15693 hppa*64*|ia64*) 15694 # +Z the default 15695 ;; 15696 *) 15697 lt_prog_compiler_pic_GCJ='-fPIC' 15698 ;; 15699 esac 15700 ;; 15701 15702 *) 15703 lt_prog_compiler_pic_GCJ='-fPIC' 15704 ;; 15705 esac 15706 else 15707 # PORTME Check for flag to pass linker flags through the system compiler. 15708 case $host_os in 15709 aix*) 15710 lt_prog_compiler_wl_GCJ='-Wl,' 15711 if test "$host_cpu" = ia64; then 15712 # AIX 5 now supports IA64 processor 15713 lt_prog_compiler_static_GCJ='-Bstatic' 15714 else 15715 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15716 fi 15717 ;; 15718 darwin*) 15719 # PIC is the default on this platform 15720 # Common symbols not allowed in MH_DYLIB files 15721 case $cc_basename in 15722 xlc*) 15723 lt_prog_compiler_pic_GCJ='-qnocommon' 15724 lt_prog_compiler_wl_GCJ='-Wl,' 15725 ;; 15726 esac 15727 ;; 15728 15729 mingw* | pw32* | os2*) 15730 # This hack is so that the source file can tell whether it is being 15731 # built for inclusion in a dll (and should export symbols for example). 15732 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15733 ;; 15734 15735 hpux9* | hpux10* | hpux11*) 15736 lt_prog_compiler_wl_GCJ='-Wl,' 15737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15738 # not for PA HP-UX. 15739 case $host_cpu in 15740 hppa*64*|ia64*) 15741 # +Z the default 15742 ;; 15743 *) 15744 lt_prog_compiler_pic_GCJ='+Z' 15745 ;; 15746 esac 15747 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15748 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15749 ;; 15750 15751 irix5* | irix6* | nonstopux*) 15752 lt_prog_compiler_wl_GCJ='-Wl,' 15753 # PIC (with -KPIC) is the default. 15754 lt_prog_compiler_static_GCJ='-non_shared' 15755 ;; 15756 15757 newsos6) 15758 lt_prog_compiler_pic_GCJ='-KPIC' 15759 lt_prog_compiler_static_GCJ='-Bstatic' 15760 ;; 15761 15762 linux*) 15763 case $cc_basename in 15764 icc* | ecc*) 15765 lt_prog_compiler_wl_GCJ='-Wl,' 15766 lt_prog_compiler_pic_GCJ='-KPIC' 15767 lt_prog_compiler_static_GCJ='-static' 15768 ;; 15769 pgcc* | pgf77* | pgf90* | pgf95*) 15770 # Portland Group compilers (*not* the Pentium gcc compiler, 15771 # which looks to be a dead project) 15772 lt_prog_compiler_wl_GCJ='-Wl,' 15773 lt_prog_compiler_pic_GCJ='-fpic' 15774 lt_prog_compiler_static_GCJ='-Bstatic' 15775 ;; 15776 ccc*) 15777 lt_prog_compiler_wl_GCJ='-Wl,' 15778 # All Alpha code is PIC. 15779 lt_prog_compiler_static_GCJ='-non_shared' 15780 ;; 15781 esac 15782 ;; 15783 15784 osf3* | osf4* | osf5*) 15785 lt_prog_compiler_wl_GCJ='-Wl,' 15786 # All OSF/1 code is PIC. 15787 lt_prog_compiler_static_GCJ='-non_shared' 15788 ;; 15789 15790 solaris*) 15791 lt_prog_compiler_pic_GCJ='-KPIC' 15792 lt_prog_compiler_static_GCJ='-Bstatic' 15793 case $cc_basename in 15794 f77* | f90* | f95*) 15795 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15796 *) 15797 lt_prog_compiler_wl_GCJ='-Wl,';; 15798 esac 15799 ;; 15800 15801 sunos4*) 15802 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15803 lt_prog_compiler_pic_GCJ='-PIC' 15804 lt_prog_compiler_static_GCJ='-Bstatic' 15805 ;; 15806 15807 sysv4 | sysv4.2uw2* | sysv4.3*) 15808 lt_prog_compiler_wl_GCJ='-Wl,' 15809 lt_prog_compiler_pic_GCJ='-KPIC' 15810 lt_prog_compiler_static_GCJ='-Bstatic' 15811 ;; 15812 15813 sysv4*MP*) 15814 if test -d /usr/nec ;then 15815 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15816 lt_prog_compiler_static_GCJ='-Bstatic' 15817 fi 15818 ;; 15819 15820 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15821 lt_prog_compiler_wl_GCJ='-Wl,' 15822 lt_prog_compiler_pic_GCJ='-KPIC' 15823 lt_prog_compiler_static_GCJ='-Bstatic' 15824 ;; 15825 15826 unicos*) 15827 lt_prog_compiler_wl_GCJ='-Wl,' 15828 lt_prog_compiler_can_build_shared_GCJ=no 15829 ;; 15830 15831 uts4*) 15832 lt_prog_compiler_pic_GCJ='-pic' 15833 lt_prog_compiler_static_GCJ='-Bstatic' 15834 ;; 15835 15836 *) 15837 lt_prog_compiler_can_build_shared_GCJ=no 15838 ;; 15839 esac 15840 fi 15841 15842echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15843echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15844 15845# 15846# Check to make sure the PIC flag actually works. 15847# 15848if test -n "$lt_prog_compiler_pic_GCJ"; then 15849 15850echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15851echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15852if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15853 echo $ECHO_N "(cached) $ECHO_C" >&6 15854else 15855 lt_prog_compiler_pic_works_GCJ=no 15856 ac_outfile=conftest.$ac_objext 15857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15858 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15859 # Insert the option either (1) after the last *FLAGS variable, or 15860 # (2) before a word containing "conftest.", or (3) at the end. 15861 # Note that $ac_compile itself does not contain backslashes and begins 15862 # with a dollar sign (not a hyphen), so the echo should work correctly. 15863 # The option is referenced via a variable to avoid confusing sed. 15864 lt_compile=`echo "$ac_compile" | $SED \ 15865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15867 -e 's:$: $lt_compiler_flag:'` 15868 (eval echo "\"\$as_me:15868: $lt_compile\"" >&5) 15869 (eval "$lt_compile" 2>conftest.err) 15870 ac_status=$? 15871 cat conftest.err >&5 15872 echo "$as_me:15872: \$? = $ac_status" >&5 15873 if (exit $ac_status) && test -s "$ac_outfile"; then 15874 # The compiler can only warn and ignore the option if not recognized 15875 # So say no if there are warnings other than the usual output. 15876 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15879 lt_prog_compiler_pic_works_GCJ=yes 15880 fi 15881 fi 15882 $rm conftest* 15883 15884fi 15885echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15886echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15887 15888if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15889 case $lt_prog_compiler_pic_GCJ in 15890 "" | " "*) ;; 15891 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15892 esac 15893else 15894 lt_prog_compiler_pic_GCJ= 15895 lt_prog_compiler_can_build_shared_GCJ=no 15896fi 15897 15898fi 15899case $host_os in 15900 # For platforms which do not support PIC, -DPIC is meaningless: 15901 *djgpp*) 15902 lt_prog_compiler_pic_GCJ= 15903 ;; 15904 *) 15905 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15906 ;; 15907esac 15908 15909# 15910# Check to make sure the static flag actually works. 15911# 15912wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15913echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15914echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15915if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15916 echo $ECHO_N "(cached) $ECHO_C" >&6 15917else 15918 lt_prog_compiler_static_works_GCJ=no 15919 save_LDFLAGS="$LDFLAGS" 15920 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15921 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15922 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15923 # The linker can only warn and ignore the option if not recognized 15924 # So say no if there are warnings 15925 if test -s conftest.err; then 15926 # Append any errors to the config.log. 15927 cat conftest.err 1>&5 15928 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15930 if diff conftest.exp conftest.er2 >/dev/null; then 15931 lt_prog_compiler_static_works_GCJ=yes 15932 fi 15933 else 15934 lt_prog_compiler_static_works_GCJ=yes 15935 fi 15936 fi 15937 $rm conftest* 15938 LDFLAGS="$save_LDFLAGS" 15939 15940fi 15941echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15942echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15943 15944if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15945 : 15946else 15947 lt_prog_compiler_static_GCJ= 15948fi 15949 15950 15951echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15952echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15953if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15954 echo $ECHO_N "(cached) $ECHO_C" >&6 15955else 15956 lt_cv_prog_compiler_c_o_GCJ=no 15957 $rm -r conftest 2>/dev/null 15958 mkdir conftest 15959 cd conftest 15960 mkdir out 15961 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15962 15963 lt_compiler_flag="-o out/conftest2.$ac_objext" 15964 # Insert the option either (1) after the last *FLAGS variable, or 15965 # (2) before a word containing "conftest.", or (3) at the end. 15966 # Note that $ac_compile itself does not contain backslashes and begins 15967 # with a dollar sign (not a hyphen), so the echo should work correctly. 15968 lt_compile=`echo "$ac_compile" | $SED \ 15969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15971 -e 's:$: $lt_compiler_flag:'` 15972 (eval echo "\"\$as_me:15972: $lt_compile\"" >&5) 15973 (eval "$lt_compile" 2>out/conftest.err) 15974 ac_status=$? 15975 cat out/conftest.err >&5 15976 echo "$as_me:15976: \$? = $ac_status" >&5 15977 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15978 then 15979 # The compiler can only warn and ignore the option if not recognized 15980 # So say no if there are warnings 15981 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15984 lt_cv_prog_compiler_c_o_GCJ=yes 15985 fi 15986 fi 15987 chmod u+w . 2>&5 15988 $rm conftest* 15989 # SGI C++ compiler will create directory out/ii_files/ for 15990 # template instantiation 15991 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15992 $rm out/* && rmdir out 15993 cd .. 15994 rmdir conftest 15995 $rm conftest* 15996 15997fi 15998echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15999echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16000 16001 16002hard_links="nottested" 16003if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16004 # do not overwrite the value of need_locks provided by the user 16005 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16006echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16007 hard_links=yes 16008 $rm conftest* 16009 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16010 touch conftest.a 16011 ln conftest.a conftest.b 2>&5 || hard_links=no 16012 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16013 echo "$as_me:$LINENO: result: $hard_links" >&5 16014echo "${ECHO_T}$hard_links" >&6 16015 if test "$hard_links" = no; then 16016 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16017echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16018 need_locks=warn 16019 fi 16020else 16021 need_locks=no 16022fi 16023 16024echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16025echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16026 16027 runpath_var= 16028 allow_undefined_flag_GCJ= 16029 enable_shared_with_static_runtimes_GCJ=no 16030 archive_cmds_GCJ= 16031 archive_expsym_cmds_GCJ= 16032 old_archive_From_new_cmds_GCJ= 16033 old_archive_from_expsyms_cmds_GCJ= 16034 export_dynamic_flag_spec_GCJ= 16035 whole_archive_flag_spec_GCJ= 16036 thread_safe_flag_spec_GCJ= 16037 hardcode_libdir_flag_spec_GCJ= 16038 hardcode_libdir_flag_spec_ld_GCJ= 16039 hardcode_libdir_separator_GCJ= 16040 hardcode_direct_GCJ=no 16041 hardcode_minus_L_GCJ=no 16042 hardcode_shlibpath_var_GCJ=unsupported 16043 link_all_deplibs_GCJ=unknown 16044 hardcode_automatic_GCJ=no 16045 module_cmds_GCJ= 16046 module_expsym_cmds_GCJ= 16047 always_export_symbols_GCJ=no 16048 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16049 # include_expsyms should be a list of space-separated symbols to be *always* 16050 # included in the symbol list 16051 include_expsyms_GCJ= 16052 # exclude_expsyms can be an extended regexp of symbols to exclude 16053 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16054 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16055 # as well as any symbol that contains `d'. 16056 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16057 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16058 # platforms (ab)use it in PIC code, but their linkers get confused if 16059 # the symbol is explicitly referenced. Since portable code cannot 16060 # rely on this symbol name, it's probably fine to never include it in 16061 # preloaded symbol tables. 16062 extract_expsyms_cmds= 16063 # Just being paranoid about ensuring that cc_basename is set. 16064 for cc_temp in $compiler""; do 16065 case $cc_temp in 16066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16068 \-*) ;; 16069 *) break;; 16070 esac 16071done 16072cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16073 16074 case $host_os in 16075 cygwin* | mingw* | pw32*) 16076 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16077 # When not using gcc, we currently assume that we are using 16078 # Microsoft Visual C++. 16079 if test "$GCC" != yes; then 16080 with_gnu_ld=no 16081 fi 16082 ;; 16083 interix*) 16084 # we just hope/assume this is gcc and not c89 (= MSVC++) 16085 with_gnu_ld=yes 16086 ;; 16087 openbsd*) 16088 with_gnu_ld=no 16089 ;; 16090 esac 16091 16092 ld_shlibs_GCJ=yes 16093 if test "$with_gnu_ld" = yes; then 16094 # If archive_cmds runs LD, not CC, wlarc should be empty 16095 wlarc='${wl}' 16096 16097 # Set some defaults for GNU ld with shared library support. These 16098 # are reset later if shared libraries are not supported. Putting them 16099 # here allows them to be overridden if necessary. 16100 runpath_var=LD_RUN_PATH 16101 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16102 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16103 # ancient GNU ld didn't support --whole-archive et. al. 16104 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16105 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16106 else 16107 whole_archive_flag_spec_GCJ= 16108 fi 16109 supports_anon_versioning=no 16110 case `$LD -v 2>/dev/null` in 16111 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16112 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16113 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16114 *\ 2.11.*) ;; # other 2.11 versions 16115 *) supports_anon_versioning=yes ;; 16116 esac 16117 16118 # See if GNU ld supports shared libraries. 16119 case $host_os in 16120 aix3* | aix4* | aix5*) 16121 # On AIX/PPC, the GNU linker is very broken 16122 if test "$host_cpu" != ia64; then 16123 ld_shlibs_GCJ=no 16124 cat <<EOF 1>&2 16125 16126*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16127*** to be unable to reliably create shared libraries on AIX. 16128*** Therefore, libtool is disabling shared libraries support. If you 16129*** really care for shared libraries, you may want to modify your PATH 16130*** so that a non-GNU linker is found, and then restart. 16131 16132EOF 16133 fi 16134 ;; 16135 16136 amigaos*) 16137 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)' 16138 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16139 hardcode_minus_L_GCJ=yes 16140 16141 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16142 # that the semantics of dynamic libraries on AmigaOS, at least up 16143 # to version 4, is to share data among multiple programs linked 16144 # with the same dynamic library. Since this doesn't match the 16145 # behavior of shared libraries on other platforms, we can't use 16146 # them. 16147 ld_shlibs_GCJ=no 16148 ;; 16149 16150 beos*) 16151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16152 allow_undefined_flag_GCJ=unsupported 16153 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16154 # support --undefined. This deserves some investigation. FIXME 16155 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16156 else 16157 ld_shlibs_GCJ=no 16158 fi 16159 ;; 16160 16161 cygwin* | mingw* | pw32*) 16162 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16163 # as there is no search path for DLLs. 16164 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16165 allow_undefined_flag_GCJ=unsupported 16166 always_export_symbols_GCJ=no 16167 enable_shared_with_static_runtimes_GCJ=yes 16168 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16169 16170 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16171 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16172 # If the export-symbols file already is a .def file (1st line 16173 # is EXPORTS), use it as is; otherwise, prepend... 16174 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16175 cp $export_symbols $output_objdir/$soname.def; 16176 else 16177 echo EXPORTS > $output_objdir/$soname.def; 16178 cat $export_symbols >> $output_objdir/$soname.def; 16179 fi~ 16180 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16181 else 16182 ld_shlibs_GCJ=no 16183 fi 16184 ;; 16185 16186 interix3*) 16187 hardcode_direct_GCJ=no 16188 hardcode_shlibpath_var_GCJ=no 16189 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16190 export_dynamic_flag_spec_GCJ='${wl}-E' 16191 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16192 # Instead, shared libraries are loaded at an image base (0x10000000 by 16193 # default) and relocated if they conflict, which is a slow very memory 16194 # consuming and fragmenting process. To avoid this, we pick a random, 16195 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16196 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16197 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' 16198 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' 16199 ;; 16200 16201 linux*) 16202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16203 tmp_addflag= 16204 case $cc_basename,$host_cpu in 16205 pgcc*) # Portland Group C compiler 16206 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' 16207 tmp_addflag=' $pic_flag' 16208 ;; 16209 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16210 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' 16211 tmp_addflag=' $pic_flag -Mnomain' ;; 16212 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16213 tmp_addflag=' -i_dynamic' ;; 16214 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16215 tmp_addflag=' -i_dynamic -nofor_main' ;; 16216 ifc* | ifort*) # Intel Fortran compiler 16217 tmp_addflag=' -nofor_main' ;; 16218 esac 16219 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16220 16221 if test $supports_anon_versioning = yes; then 16222 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16224 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16225 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16226 fi 16227 else 16228 ld_shlibs_GCJ=no 16229 fi 16230 ;; 16231 16232 netbsd*) 16233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16234 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16235 wlarc= 16236 else 16237 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16238 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16239 fi 16240 ;; 16241 16242 solaris*) 16243 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16244 ld_shlibs_GCJ=no 16245 cat <<EOF 1>&2 16246 16247*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16248*** create shared libraries on Solaris systems. Therefore, libtool 16249*** is disabling shared libraries support. We urge you to upgrade GNU 16250*** binutils to release 2.9.1 or newer. Another option is to modify 16251*** your PATH or compiler configuration so that the native linker is 16252*** used, and then restart. 16253 16254EOF 16255 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16256 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16257 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16258 else 16259 ld_shlibs_GCJ=no 16260 fi 16261 ;; 16262 16263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16264 case `$LD -v 2>&1` in 16265 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16266 ld_shlibs_GCJ=no 16267 cat <<_LT_EOF 1>&2 16268 16269*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16270*** reliably create shared libraries on SCO systems. Therefore, libtool 16271*** is disabling shared libraries support. We urge you to upgrade GNU 16272*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16273*** your PATH or compiler configuration so that the native linker is 16274*** used, and then restart. 16275 16276_LT_EOF 16277 ;; 16278 *) 16279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16280 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16281 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16282 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16283 else 16284 ld_shlibs_GCJ=no 16285 fi 16286 ;; 16287 esac 16288 ;; 16289 16290 sunos4*) 16291 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16292 wlarc= 16293 hardcode_direct_GCJ=yes 16294 hardcode_shlibpath_var_GCJ=no 16295 ;; 16296 16297 *) 16298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16299 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16300 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16301 else 16302 ld_shlibs_GCJ=no 16303 fi 16304 ;; 16305 esac 16306 16307 if test "$ld_shlibs_GCJ" = no; then 16308 runpath_var= 16309 hardcode_libdir_flag_spec_GCJ= 16310 export_dynamic_flag_spec_GCJ= 16311 whole_archive_flag_spec_GCJ= 16312 fi 16313 else 16314 # PORTME fill in a description of your system's linker (not GNU ld) 16315 case $host_os in 16316 aix3*) 16317 allow_undefined_flag_GCJ=unsupported 16318 always_export_symbols_GCJ=yes 16319 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' 16320 # Note: this linker hardcodes the directories in LIBPATH if there 16321 # are no directories specified by -L. 16322 hardcode_minus_L_GCJ=yes 16323 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16324 # Neither direct hardcoding nor static linking is supported with a 16325 # broken collect2. 16326 hardcode_direct_GCJ=unsupported 16327 fi 16328 ;; 16329 16330 aix4* | aix5*) 16331 if test "$host_cpu" = ia64; then 16332 # On IA64, the linker does run time linking by default, so we don't 16333 # have to do anything special. 16334 aix_use_runtimelinking=no 16335 exp_sym_flag='-Bexport' 16336 no_entry_flag="" 16337 else 16338 # If we're using GNU nm, then we don't want the "-C" option. 16339 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16340 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16341 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' 16342 else 16343 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' 16344 fi 16345 aix_use_runtimelinking=no 16346 16347 # Test if we are trying to use run time linking or normal 16348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16349 # need to do runtime linking. 16350 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16351 for ld_flag in $LDFLAGS; do 16352 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16353 aix_use_runtimelinking=yes 16354 break 16355 fi 16356 done 16357 ;; 16358 esac 16359 16360 exp_sym_flag='-bexport' 16361 no_entry_flag='-bnoentry' 16362 fi 16363 16364 # When large executables or shared objects are built, AIX ld can 16365 # have problems creating the table of contents. If linking a library 16366 # or program results in "error TOC overflow" add -mminimal-toc to 16367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16369 16370 archive_cmds_GCJ='' 16371 hardcode_direct_GCJ=yes 16372 hardcode_libdir_separator_GCJ=':' 16373 link_all_deplibs_GCJ=yes 16374 16375 if test "$GCC" = yes; then 16376 case $host_os in aix4.[012]|aix4.[012].*) 16377 # We only want to do this on AIX 4.2 and lower, the check 16378 # below for broken collect2 doesn't work under 4.3+ 16379 collect2name=`${CC} -print-prog-name=collect2` 16380 if test -f "$collect2name" && \ 16381 strings "$collect2name" | grep resolve_lib_name >/dev/null 16382 then 16383 # We have reworked collect2 16384 hardcode_direct_GCJ=yes 16385 else 16386 # We have old collect2 16387 hardcode_direct_GCJ=unsupported 16388 # It fails to find uninstalled libraries when the uninstalled 16389 # path is not listed in the libpath. Setting hardcode_minus_L 16390 # to unsupported forces relinking 16391 hardcode_minus_L_GCJ=yes 16392 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16393 hardcode_libdir_separator_GCJ= 16394 fi 16395 ;; 16396 esac 16397 shared_flag='-shared' 16398 if test "$aix_use_runtimelinking" = yes; then 16399 shared_flag="$shared_flag "'${wl}-G' 16400 fi 16401 else 16402 # not using gcc 16403 if test "$host_cpu" = ia64; then 16404 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16405 # chokes on -Wl,-G. The following line is correct: 16406 shared_flag='-G' 16407 else 16408 if test "$aix_use_runtimelinking" = yes; then 16409 shared_flag='${wl}-G' 16410 else 16411 shared_flag='${wl}-bM:SRE' 16412 fi 16413 fi 16414 fi 16415 16416 # It seems that -bexpall does not export symbols beginning with 16417 # underscore (_), so it is better to generate a list of symbols to export. 16418 always_export_symbols_GCJ=yes 16419 if test "$aix_use_runtimelinking" = yes; then 16420 # Warning - without using the other runtime loading flags (-brtl), 16421 # -berok will link without error, but may produce a broken library. 16422 allow_undefined_flag_GCJ='-berok' 16423 # Determine the default libpath from the value encoded in an empty executable. 16424 cat >conftest.$ac_ext <<_ACEOF 16425/* confdefs.h. */ 16426_ACEOF 16427cat confdefs.h >>conftest.$ac_ext 16428cat >>conftest.$ac_ext <<_ACEOF 16429/* end confdefs.h. */ 16430 16431int 16432main () 16433{ 16434 16435 ; 16436 return 0; 16437} 16438_ACEOF 16439rm -f conftest.$ac_objext conftest$ac_exeext 16440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16441 (eval $ac_link) 2>conftest.er1 16442 ac_status=$? 16443 grep -v '^ *+' conftest.er1 >conftest.err 16444 rm -f conftest.er1 16445 cat conftest.err >&5 16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16447 (exit $ac_status); } && 16448 { ac_try='test -z "$ac_c_werror_flag" 16449 || test ! -s conftest.err' 16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16451 (eval $ac_try) 2>&5 16452 ac_status=$? 16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16454 (exit $ac_status); }; } && 16455 { ac_try='test -s conftest$ac_exeext' 16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16457 (eval $ac_try) 2>&5 16458 ac_status=$? 16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16460 (exit $ac_status); }; }; then 16461 16462aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16463}'` 16464# Check for a 64-bit object if we didn't find anything. 16465if 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; } 16466}'`; fi 16467else 16468 echo "$as_me: failed program was:" >&5 16469sed 's/^/| /' conftest.$ac_ext >&5 16470 16471fi 16472rm -f conftest.err conftest.$ac_objext \ 16473 conftest$ac_exeext conftest.$ac_ext 16474if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16475 16476 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16477 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" 16478 else 16479 if test "$host_cpu" = ia64; then 16480 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16481 allow_undefined_flag_GCJ="-z nodefs" 16482 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" 16483 else 16484 # Determine the default libpath from the value encoded in an empty executable. 16485 cat >conftest.$ac_ext <<_ACEOF 16486/* confdefs.h. */ 16487_ACEOF 16488cat confdefs.h >>conftest.$ac_ext 16489cat >>conftest.$ac_ext <<_ACEOF 16490/* end confdefs.h. */ 16491 16492int 16493main () 16494{ 16495 16496 ; 16497 return 0; 16498} 16499_ACEOF 16500rm -f conftest.$ac_objext conftest$ac_exeext 16501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16502 (eval $ac_link) 2>conftest.er1 16503 ac_status=$? 16504 grep -v '^ *+' conftest.er1 >conftest.err 16505 rm -f conftest.er1 16506 cat conftest.err >&5 16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16508 (exit $ac_status); } && 16509 { ac_try='test -z "$ac_c_werror_flag" 16510 || test ! -s conftest.err' 16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16512 (eval $ac_try) 2>&5 16513 ac_status=$? 16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16515 (exit $ac_status); }; } && 16516 { ac_try='test -s conftest$ac_exeext' 16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16518 (eval $ac_try) 2>&5 16519 ac_status=$? 16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16521 (exit $ac_status); }; }; then 16522 16523aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16524}'` 16525# Check for a 64-bit object if we didn't find anything. 16526if 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; } 16527}'`; fi 16528else 16529 echo "$as_me: failed program was:" >&5 16530sed 's/^/| /' conftest.$ac_ext >&5 16531 16532fi 16533rm -f conftest.err conftest.$ac_objext \ 16534 conftest$ac_exeext conftest.$ac_ext 16535if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16536 16537 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16538 # Warning - without using the other run time loading flags, 16539 # -berok will link without error, but may produce a broken library. 16540 no_undefined_flag_GCJ=' ${wl}-bernotok' 16541 allow_undefined_flag_GCJ=' ${wl}-berok' 16542 # Exported symbols can be pulled into shared objects from archives 16543 whole_archive_flag_spec_GCJ='$convenience' 16544 archive_cmds_need_lc_GCJ=yes 16545 # This is similar to how AIX traditionally builds its shared libraries. 16546 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' 16547 fi 16548 fi 16549 ;; 16550 16551 amigaos*) 16552 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)' 16553 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16554 hardcode_minus_L_GCJ=yes 16555 # see comment about different semantics on the GNU ld section 16556 ld_shlibs_GCJ=no 16557 ;; 16558 16559 bsdi[45]*) 16560 export_dynamic_flag_spec_GCJ=-rdynamic 16561 ;; 16562 16563 cygwin* | mingw* | pw32*) 16564 # When not using gcc, we currently assume that we are using 16565 # Microsoft Visual C++. 16566 # hardcode_libdir_flag_spec is actually meaningless, as there is 16567 # no search path for DLLs. 16568 hardcode_libdir_flag_spec_GCJ=' ' 16569 allow_undefined_flag_GCJ=unsupported 16570 # Tell ltmain to make .lib files, not .a files. 16571 libext=lib 16572 # Tell ltmain to make .dll files, not .so files. 16573 shrext_cmds=".dll" 16574 # FIXME: Setting linknames here is a bad hack. 16575 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16576 # The linker will automatically build a .lib file if we build a DLL. 16577 old_archive_From_new_cmds_GCJ='true' 16578 # FIXME: Should let the user specify the lib program. 16579 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16580 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16581 enable_shared_with_static_runtimes_GCJ=yes 16582 ;; 16583 16584 darwin* | rhapsody*) 16585 case $host_os in 16586 rhapsody* | darwin1.[012]) 16587 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16588 ;; 16589 *) # Darwin 1.3 on 16590 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16591 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16592 else 16593 case ${MACOSX_DEPLOYMENT_TARGET} in 16594 10.[012]) 16595 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16596 ;; 16597 10.*) 16598 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16599 ;; 16600 esac 16601 fi 16602 ;; 16603 esac 16604 archive_cmds_need_lc_GCJ=no 16605 hardcode_direct_GCJ=no 16606 hardcode_automatic_GCJ=yes 16607 hardcode_shlibpath_var_GCJ=unsupported 16608 whole_archive_flag_spec_GCJ='' 16609 link_all_deplibs_GCJ=yes 16610 if test "$GCC" = yes ; then 16611 output_verbose_link_cmd='echo' 16612 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16613 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16614 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16615 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}' 16616 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}' 16617 else 16618 case $cc_basename in 16619 xlc*) 16620 output_verbose_link_cmd='echo' 16621 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16622 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16624 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}' 16625 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}' 16626 ;; 16627 *) 16628 ld_shlibs_GCJ=no 16629 ;; 16630 esac 16631 fi 16632 ;; 16633 16634 dgux*) 16635 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16636 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16637 hardcode_shlibpath_var_GCJ=no 16638 ;; 16639 16640 freebsd1*) 16641 ld_shlibs_GCJ=no 16642 ;; 16643 16644 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16645 # support. Future versions do this automatically, but an explicit c++rt0.o 16646 # does not break anything, and helps significantly (at the cost of a little 16647 # extra space). 16648 freebsd2.2*) 16649 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16650 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16651 hardcode_direct_GCJ=yes 16652 hardcode_shlibpath_var_GCJ=no 16653 ;; 16654 16655 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16656 freebsd2*) 16657 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16658 hardcode_direct_GCJ=yes 16659 hardcode_minus_L_GCJ=yes 16660 hardcode_shlibpath_var_GCJ=no 16661 ;; 16662 16663 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16664 freebsd* | kfreebsd*-gnu | dragonfly*) 16665 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16666 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16667 hardcode_direct_GCJ=yes 16668 hardcode_shlibpath_var_GCJ=no 16669 ;; 16670 16671 hpux9*) 16672 if test "$GCC" = yes; then 16673 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' 16674 else 16675 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' 16676 fi 16677 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16678 hardcode_libdir_separator_GCJ=: 16679 hardcode_direct_GCJ=yes 16680 16681 # hardcode_minus_L: Not really in the search PATH, 16682 # but as the default location of the library. 16683 hardcode_minus_L_GCJ=yes 16684 export_dynamic_flag_spec_GCJ='${wl}-E' 16685 ;; 16686 16687 hpux10*) 16688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16689 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16690 else 16691 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16692 fi 16693 if test "$with_gnu_ld" = no; then 16694 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16695 hardcode_libdir_separator_GCJ=: 16696 16697 hardcode_direct_GCJ=yes 16698 export_dynamic_flag_spec_GCJ='${wl}-E' 16699 16700 # hardcode_minus_L: Not really in the search PATH, 16701 # but as the default location of the library. 16702 hardcode_minus_L_GCJ=yes 16703 fi 16704 ;; 16705 16706 hpux11*) 16707 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16708 case $host_cpu in 16709 hppa*64*) 16710 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16711 ;; 16712 ia64*) 16713 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16714 ;; 16715 *) 16716 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16717 ;; 16718 esac 16719 else 16720 case $host_cpu in 16721 hppa*64*) 16722 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16723 ;; 16724 ia64*) 16725 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16726 ;; 16727 *) 16728 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16729 ;; 16730 esac 16731 fi 16732 if test "$with_gnu_ld" = no; then 16733 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16734 hardcode_libdir_separator_GCJ=: 16735 16736 case $host_cpu in 16737 hppa*64*|ia64*) 16738 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16739 hardcode_direct_GCJ=no 16740 hardcode_shlibpath_var_GCJ=no 16741 ;; 16742 *) 16743 hardcode_direct_GCJ=yes 16744 export_dynamic_flag_spec_GCJ='${wl}-E' 16745 16746 # hardcode_minus_L: Not really in the search PATH, 16747 # but as the default location of the library. 16748 hardcode_minus_L_GCJ=yes 16749 ;; 16750 esac 16751 fi 16752 ;; 16753 16754 irix5* | irix6* | nonstopux*) 16755 if test "$GCC" = yes; then 16756 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' 16757 else 16758 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' 16759 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16760 fi 16761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16762 hardcode_libdir_separator_GCJ=: 16763 link_all_deplibs_GCJ=yes 16764 ;; 16765 16766 netbsd*) 16767 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16768 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16769 else 16770 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16771 fi 16772 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16773 hardcode_direct_GCJ=yes 16774 hardcode_shlibpath_var_GCJ=no 16775 ;; 16776 16777 newsos6) 16778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16779 hardcode_direct_GCJ=yes 16780 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16781 hardcode_libdir_separator_GCJ=: 16782 hardcode_shlibpath_var_GCJ=no 16783 ;; 16784 16785 openbsd*) 16786 hardcode_direct_GCJ=yes 16787 hardcode_shlibpath_var_GCJ=no 16788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16789 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16790 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16791 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16792 export_dynamic_flag_spec_GCJ='${wl}-E' 16793 else 16794 case $host_os in 16795 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16796 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16797 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16798 ;; 16799 *) 16800 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16801 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16802 ;; 16803 esac 16804 fi 16805 ;; 16806 16807 os2*) 16808 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16809 hardcode_minus_L_GCJ=yes 16810 allow_undefined_flag_GCJ=unsupported 16811 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' 16812 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16813 ;; 16814 16815 osf3*) 16816 if test "$GCC" = yes; then 16817 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16818 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' 16819 else 16820 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16821 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' 16822 fi 16823 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16824 hardcode_libdir_separator_GCJ=: 16825 ;; 16826 16827 osf4* | osf5*) # as osf3* with the addition of -msym flag 16828 if test "$GCC" = yes; then 16829 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16830 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' 16831 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16832 else 16833 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16834 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' 16835 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~ 16836 $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' 16837 16838 # Both c and cxx compiler support -rpath directly 16839 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16840 fi 16841 hardcode_libdir_separator_GCJ=: 16842 ;; 16843 16844 solaris*) 16845 no_undefined_flag_GCJ=' -z text' 16846 if test "$GCC" = yes; then 16847 wlarc='${wl}' 16848 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16849 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16850 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16851 else 16852 wlarc='' 16853 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16854 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16855 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16856 fi 16857 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16858 hardcode_shlibpath_var_GCJ=no 16859 case $host_os in 16860 solaris2.[0-5] | solaris2.[0-5].*) ;; 16861 *) 16862 # The compiler driver will combine linker options so we 16863 # cannot just pass the convience library names through 16864 # without $wl, iff we do not link with $LD. 16865 # Luckily, gcc supports the same syntax we need for Sun Studio. 16866 # Supported since Solaris 2.6 (maybe 2.5.1?) 16867 case $wlarc in 16868 '') 16869 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16870 *) 16871 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' ;; 16872 esac ;; 16873 esac 16874 link_all_deplibs_GCJ=yes 16875 ;; 16876 16877 sunos4*) 16878 if test "x$host_vendor" = xsequent; then 16879 # Use $CC to link under sequent, because it throws in some extra .o 16880 # files that make .init and .fini sections work. 16881 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16882 else 16883 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16884 fi 16885 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16886 hardcode_direct_GCJ=yes 16887 hardcode_minus_L_GCJ=yes 16888 hardcode_shlibpath_var_GCJ=no 16889 ;; 16890 16891 sysv4) 16892 case $host_vendor in 16893 sni) 16894 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16895 hardcode_direct_GCJ=yes # is this really true??? 16896 ;; 16897 siemens) 16898 ## LD is ld it makes a PLAMLIB 16899 ## CC just makes a GrossModule. 16900 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16901 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16902 hardcode_direct_GCJ=no 16903 ;; 16904 motorola) 16905 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16906 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16907 ;; 16908 esac 16909 runpath_var='LD_RUN_PATH' 16910 hardcode_shlibpath_var_GCJ=no 16911 ;; 16912 16913 sysv4.3*) 16914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16915 hardcode_shlibpath_var_GCJ=no 16916 export_dynamic_flag_spec_GCJ='-Bexport' 16917 ;; 16918 16919 sysv4*MP*) 16920 if test -d /usr/nec; then 16921 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16922 hardcode_shlibpath_var_GCJ=no 16923 runpath_var=LD_RUN_PATH 16924 hardcode_runpath_var=yes 16925 ld_shlibs_GCJ=yes 16926 fi 16927 ;; 16928 16929 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16930 no_undefined_flag_GCJ='${wl}-z,text' 16931 archive_cmds_need_lc_GCJ=no 16932 hardcode_shlibpath_var_GCJ=no 16933 runpath_var='LD_RUN_PATH' 16934 16935 if test "$GCC" = yes; then 16936 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16937 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16938 else 16939 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16940 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16941 fi 16942 ;; 16943 16944 sysv5* | sco3.2v5* | sco5v6*) 16945 # Note: We can NOT use -z defs as we might desire, because we do not 16946 # link with -lc, and that would cause any symbols used from libc to 16947 # always be unresolved, which means just about no library would 16948 # ever link correctly. If we're not using GNU ld we use -z text 16949 # though, which does catch some bad symbols but isn't as heavy-handed 16950 # as -z defs. 16951 no_undefined_flag_GCJ='${wl}-z,text' 16952 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16953 archive_cmds_need_lc_GCJ=no 16954 hardcode_shlibpath_var_GCJ=no 16955 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16956 hardcode_libdir_separator_GCJ=':' 16957 link_all_deplibs_GCJ=yes 16958 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16959 runpath_var='LD_RUN_PATH' 16960 16961 if test "$GCC" = yes; then 16962 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16963 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16964 else 16965 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16966 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16967 fi 16968 ;; 16969 16970 uts4*) 16971 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16972 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16973 hardcode_shlibpath_var_GCJ=no 16974 ;; 16975 16976 *) 16977 ld_shlibs_GCJ=no 16978 ;; 16979 esac 16980 fi 16981 16982echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16983echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16984test "$ld_shlibs_GCJ" = no && can_build_shared=no 16985 16986# 16987# Do we need to explicitly link libc? 16988# 16989case "x$archive_cmds_need_lc_GCJ" in 16990x|xyes) 16991 # Assume -lc should be added 16992 archive_cmds_need_lc_GCJ=yes 16993 16994 if test "$enable_shared" = yes && test "$GCC" = yes; then 16995 case $archive_cmds_GCJ in 16996 *'~'*) 16997 # FIXME: we may have to deal with multi-command sequences. 16998 ;; 16999 '$CC '*) 17000 # Test whether the compiler implicitly links with -lc since on some 17001 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17002 # to ld, don't add -lc before -lgcc. 17003 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17004echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17005 $rm conftest* 17006 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17007 17008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17009 (eval $ac_compile) 2>&5 17010 ac_status=$? 17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17012 (exit $ac_status); } 2>conftest.err; then 17013 soname=conftest 17014 lib=conftest 17015 libobjs=conftest.$ac_objext 17016 deplibs= 17017 wl=$lt_prog_compiler_wl_GCJ 17018 pic_flag=$lt_prog_compiler_pic_GCJ 17019 compiler_flags=-v 17020 linker_flags=-v 17021 verstring= 17022 output_objdir=. 17023 libname=conftest 17024 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17025 allow_undefined_flag_GCJ= 17026 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17027 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17028 ac_status=$? 17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17030 (exit $ac_status); } 17031 then 17032 archive_cmds_need_lc_GCJ=no 17033 else 17034 archive_cmds_need_lc_GCJ=yes 17035 fi 17036 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17037 else 17038 cat conftest.err 1>&5 17039 fi 17040 $rm conftest* 17041 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17042echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17043 ;; 17044 esac 17045 fi 17046 ;; 17047esac 17048 17049echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17050echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17051library_names_spec= 17052libname_spec='lib$name' 17053soname_spec= 17054shrext_cmds=".so" 17055postinstall_cmds= 17056postuninstall_cmds= 17057finish_cmds= 17058finish_eval= 17059shlibpath_var= 17060shlibpath_overrides_runpath=unknown 17061version_type=none 17062dynamic_linker="$host_os ld.so" 17063sys_lib_dlsearch_path_spec="/lib /usr/lib" 17064if test "$GCC" = yes; then 17065 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17066 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17067 # if the path contains ";" then we assume it to be the separator 17068 # otherwise default to the standard path separator (i.e. ":") - it is 17069 # assumed that no part of a normal pathname contains ";" but that should 17070 # okay in the real world where ";" in dirpaths is itself problematic. 17071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17072 else 17073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17074 fi 17075else 17076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17077fi 17078need_lib_prefix=unknown 17079hardcode_into_libs=no 17080 17081# when you set need_version to no, make sure it does not cause -set_version 17082# flags to be left without arguments 17083need_version=unknown 17084 17085case $host_os in 17086aix3*) 17087 version_type=linux 17088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17089 shlibpath_var=LIBPATH 17090 17091 # AIX 3 has no versioning support, so we append a major version to the name. 17092 soname_spec='${libname}${release}${shared_ext}$major' 17093 ;; 17094 17095aix4* | aix5*) 17096 version_type=linux 17097 need_lib_prefix=no 17098 need_version=no 17099 hardcode_into_libs=yes 17100 if test "$host_cpu" = ia64; then 17101 # AIX 5 supports IA64 17102 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17103 shlibpath_var=LD_LIBRARY_PATH 17104 else 17105 # With GCC up to 2.95.x, collect2 would create an import file 17106 # for dependence libraries. The import file would start with 17107 # the line `#! .'. This would cause the generated library to 17108 # depend on `.', always an invalid library. This was fixed in 17109 # development snapshots of GCC prior to 3.0. 17110 case $host_os in 17111 aix4 | aix4.[01] | aix4.[01].*) 17112 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17113 echo ' yes ' 17114 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17115 : 17116 else 17117 can_build_shared=no 17118 fi 17119 ;; 17120 esac 17121 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17122 # soname into executable. Probably we can add versioning support to 17123 # collect2, so additional links can be useful in future. 17124 if test "$aix_use_runtimelinking" = yes; then 17125 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17126 # instead of lib<name>.a to let people know that these are not 17127 # typical AIX shared libraries. 17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17129 else 17130 # We preserve .a as extension for shared libraries through AIX4.2 17131 # and later when we are not doing run time linking. 17132 library_names_spec='${libname}${release}.a $libname.a' 17133 soname_spec='${libname}${release}${shared_ext}$major' 17134 fi 17135 shlibpath_var=LIBPATH 17136 fi 17137 ;; 17138 17139amigaos*) 17140 library_names_spec='$libname.ixlibrary $libname.a' 17141 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17142 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' 17143 ;; 17144 17145beos*) 17146 library_names_spec='${libname}${shared_ext}' 17147 dynamic_linker="$host_os ld.so" 17148 shlibpath_var=LIBRARY_PATH 17149 ;; 17150 17151bsdi[45]*) 17152 version_type=linux 17153 need_version=no 17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17155 soname_spec='${libname}${release}${shared_ext}$major' 17156 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17157 shlibpath_var=LD_LIBRARY_PATH 17158 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17159 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17160 # the default ld.so.conf also contains /usr/contrib/lib and 17161 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17162 # libtool to hard-code these into programs 17163 ;; 17164 17165cygwin* | mingw* | pw32*) 17166 version_type=windows 17167 shrext_cmds=".dll" 17168 need_version=no 17169 need_lib_prefix=no 17170 17171 case $GCC,$host_os in 17172 yes,cygwin* | yes,mingw* | yes,pw32*) 17173 library_names_spec='$libname.dll.a' 17174 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17175 postinstall_cmds='base_file=`basename \${file}`~ 17176 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17177 dldir=$destdir/`dirname \$dlpath`~ 17178 test -d \$dldir || mkdir -p \$dldir~ 17179 $install_prog $dir/$dlname \$dldir/$dlname~ 17180 chmod a+x \$dldir/$dlname' 17181 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17182 dlpath=$dir/\$dldll~ 17183 $rm \$dlpath' 17184 shlibpath_overrides_runpath=yes 17185 17186 case $host_os in 17187 cygwin*) 17188 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17189 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17190 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17191 ;; 17192 mingw*) 17193 # MinGW DLLs use traditional 'lib' prefix 17194 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17195 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17196 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17197 # It is most probably a Windows format PATH printed by 17198 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17199 # path with ; separators, and with drive letters. We can handle the 17200 # drive letters (cygwin fileutils understands them), so leave them, 17201 # especially as we might pass files found there to a mingw objdump, 17202 # which wouldn't understand a cygwinified path. Ahh. 17203 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17204 else 17205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17206 fi 17207 ;; 17208 pw32*) 17209 # pw32 DLLs use 'pw' prefix rather than 'lib' 17210 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17211 ;; 17212 esac 17213 ;; 17214 17215 *) 17216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17217 ;; 17218 esac 17219 dynamic_linker='Win32 ld.exe' 17220 # FIXME: first we should search . and the directory the executable is in 17221 shlibpath_var=PATH 17222 ;; 17223 17224darwin* | rhapsody*) 17225 dynamic_linker="$host_os dyld" 17226 version_type=darwin 17227 need_lib_prefix=no 17228 need_version=no 17229 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17230 soname_spec='${libname}${release}${major}$shared_ext' 17231 shlibpath_overrides_runpath=yes 17232 shlibpath_var=DYLD_LIBRARY_PATH 17233 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17234 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17235 if test "$GCC" = yes; then 17236 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"` 17237 else 17238 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17239 fi 17240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17241 ;; 17242 17243dgux*) 17244 version_type=linux 17245 need_lib_prefix=no 17246 need_version=no 17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17248 soname_spec='${libname}${release}${shared_ext}$major' 17249 shlibpath_var=LD_LIBRARY_PATH 17250 ;; 17251 17252freebsd1*) 17253 dynamic_linker=no 17254 ;; 17255 17256kfreebsd*-gnu) 17257 version_type=linux 17258 need_lib_prefix=no 17259 need_version=no 17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17261 soname_spec='${libname}${release}${shared_ext}$major' 17262 shlibpath_var=LD_LIBRARY_PATH 17263 shlibpath_overrides_runpath=no 17264 hardcode_into_libs=yes 17265 dynamic_linker='GNU ld.so' 17266 ;; 17267 17268freebsd* | dragonfly*) 17269 # DragonFly does not have aout. When/if they implement a new 17270 # versioning mechanism, adjust this. 17271 if test -x /usr/bin/objformat; then 17272 objformat=`/usr/bin/objformat` 17273 else 17274 case $host_os in 17275 freebsd[123]*) objformat=aout ;; 17276 *) objformat=elf ;; 17277 esac 17278 fi 17279 version_type=freebsd-$objformat 17280 case $version_type in 17281 freebsd-elf*) 17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17283 need_version=no 17284 need_lib_prefix=no 17285 ;; 17286 freebsd-*) 17287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17288 need_version=yes 17289 ;; 17290 esac 17291 shlibpath_var=LD_LIBRARY_PATH 17292 case $host_os in 17293 freebsd2*) 17294 shlibpath_overrides_runpath=yes 17295 ;; 17296 freebsd3.[01]* | freebsdelf3.[01]*) 17297 shlibpath_overrides_runpath=yes 17298 hardcode_into_libs=yes 17299 ;; 17300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17302 shlibpath_overrides_runpath=no 17303 hardcode_into_libs=yes 17304 ;; 17305 freebsd*) # from 4.6 on 17306 shlibpath_overrides_runpath=yes 17307 hardcode_into_libs=yes 17308 ;; 17309 esac 17310 ;; 17311 17312gnu*) 17313 version_type=linux 17314 need_lib_prefix=no 17315 need_version=no 17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17317 soname_spec='${libname}${release}${shared_ext}$major' 17318 shlibpath_var=LD_LIBRARY_PATH 17319 hardcode_into_libs=yes 17320 ;; 17321 17322hpux9* | hpux10* | hpux11*) 17323 # Give a soname corresponding to the major version so that dld.sl refuses to 17324 # link against other versions. 17325 version_type=sunos 17326 need_lib_prefix=no 17327 need_version=no 17328 case $host_cpu in 17329 ia64*) 17330 shrext_cmds='.so' 17331 hardcode_into_libs=yes 17332 dynamic_linker="$host_os dld.so" 17333 shlibpath_var=LD_LIBRARY_PATH 17334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17336 soname_spec='${libname}${release}${shared_ext}$major' 17337 if test "X$HPUX_IA64_MODE" = X32; then 17338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17339 else 17340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17341 fi 17342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17343 ;; 17344 hppa*64*) 17345 shrext_cmds='.sl' 17346 hardcode_into_libs=yes 17347 dynamic_linker="$host_os dld.sl" 17348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17351 soname_spec='${libname}${release}${shared_ext}$major' 17352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17354 ;; 17355 *) 17356 shrext_cmds='.sl' 17357 dynamic_linker="$host_os dld.sl" 17358 shlibpath_var=SHLIB_PATH 17359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17361 soname_spec='${libname}${release}${shared_ext}$major' 17362 ;; 17363 esac 17364 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17365 postinstall_cmds='chmod 555 $lib' 17366 ;; 17367 17368interix3*) 17369 version_type=linux 17370 need_lib_prefix=no 17371 need_version=no 17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17373 soname_spec='${libname}${release}${shared_ext}$major' 17374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17375 shlibpath_var=LD_LIBRARY_PATH 17376 shlibpath_overrides_runpath=no 17377 hardcode_into_libs=yes 17378 ;; 17379 17380irix5* | irix6* | nonstopux*) 17381 case $host_os in 17382 nonstopux*) version_type=nonstopux ;; 17383 *) 17384 if test "$lt_cv_prog_gnu_ld" = yes; then 17385 version_type=linux 17386 else 17387 version_type=irix 17388 fi ;; 17389 esac 17390 need_lib_prefix=no 17391 need_version=no 17392 soname_spec='${libname}${release}${shared_ext}$major' 17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17394 case $host_os in 17395 irix5* | nonstopux*) 17396 libsuff= shlibsuff= 17397 ;; 17398 *) 17399 case $LD in # libtool.m4 will add one of these switches to LD 17400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17401 libsuff= shlibsuff= libmagic=32-bit;; 17402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17403 libsuff=32 shlibsuff=N32 libmagic=N32;; 17404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17405 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17406 *) libsuff= shlibsuff= libmagic=never-match;; 17407 esac 17408 ;; 17409 esac 17410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17411 shlibpath_overrides_runpath=no 17412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17414 hardcode_into_libs=yes 17415 ;; 17416 17417# No shared lib support for Linux oldld, aout, or coff. 17418linux*oldld* | linux*aout* | linux*coff*) 17419 dynamic_linker=no 17420 ;; 17421 17422# This must be Linux ELF. 17423linux*) 17424 version_type=linux 17425 need_lib_prefix=no 17426 need_version=no 17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17428 soname_spec='${libname}${release}${shared_ext}$major' 17429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17430 shlibpath_var=LD_LIBRARY_PATH 17431 shlibpath_overrides_runpath=no 17432 # This implies no fast_install, which is unacceptable. 17433 # Some rework will be needed to allow for fast_install 17434 # before this can be enabled. 17435 hardcode_into_libs=yes 17436 17437 # find out which ABI we are using 17438 libsuff= 17439 case "$host_cpu" in 17440 x86_64*|s390x*|powerpc64*) 17441 echo '#line 17441 "configure"' > conftest.$ac_ext 17442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17443 (eval $ac_compile) 2>&5 17444 ac_status=$? 17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17446 (exit $ac_status); }; then 17447 case `/usr/bin/file conftest.$ac_objext` in 17448 *64-bit*) 17449 libsuff=64 17450 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17451 ;; 17452 esac 17453 fi 17454 rm -rf conftest* 17455 ;; 17456 esac 17457 17458 # Append ld.so.conf contents to the search path 17459 if test -f /etc/ld.so.conf; then 17460 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17461 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17462 fi 17463 17464 # We used to test for /lib/ld.so.1 and disable shared libraries on 17465 # powerpc, because MkLinux only supported shared libraries with the 17466 # GNU dynamic linker. Since this was broken with cross compilers, 17467 # most powerpc-linux boxes support dynamic linking these days and 17468 # people can always --disable-shared, the test was removed, and we 17469 # assume the GNU/Linux dynamic linker is in use. 17470 dynamic_linker='GNU/Linux ld.so' 17471 ;; 17472 17473knetbsd*-gnu) 17474 version_type=linux 17475 need_lib_prefix=no 17476 need_version=no 17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17478 soname_spec='${libname}${release}${shared_ext}$major' 17479 shlibpath_var=LD_LIBRARY_PATH 17480 shlibpath_overrides_runpath=no 17481 hardcode_into_libs=yes 17482 dynamic_linker='GNU ld.so' 17483 ;; 17484 17485netbsd*) 17486 version_type=sunos 17487 need_lib_prefix=no 17488 need_version=no 17489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17492 dynamic_linker='NetBSD (a.out) ld.so' 17493 else 17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17495 soname_spec='${libname}${release}${shared_ext}$major' 17496 dynamic_linker='NetBSD ld.elf_so' 17497 fi 17498 shlibpath_var=LD_LIBRARY_PATH 17499 shlibpath_overrides_runpath=yes 17500 hardcode_into_libs=yes 17501 ;; 17502 17503newsos6) 17504 version_type=linux 17505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17506 shlibpath_var=LD_LIBRARY_PATH 17507 shlibpath_overrides_runpath=yes 17508 ;; 17509 17510nto-qnx*) 17511 version_type=linux 17512 need_lib_prefix=no 17513 need_version=no 17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17515 soname_spec='${libname}${release}${shared_ext}$major' 17516 shlibpath_var=LD_LIBRARY_PATH 17517 shlibpath_overrides_runpath=yes 17518 ;; 17519 17520openbsd*) 17521 version_type=sunos 17522 sys_lib_dlsearch_path_spec="/usr/lib" 17523 need_lib_prefix=no 17524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17525 case $host_os in 17526 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17527 *) need_version=no ;; 17528 esac 17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17531 shlibpath_var=LD_LIBRARY_PATH 17532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17533 case $host_os in 17534 openbsd2.[89] | openbsd2.[89].*) 17535 shlibpath_overrides_runpath=no 17536 ;; 17537 *) 17538 shlibpath_overrides_runpath=yes 17539 ;; 17540 esac 17541 else 17542 shlibpath_overrides_runpath=yes 17543 fi 17544 ;; 17545 17546os2*) 17547 libname_spec='$name' 17548 shrext_cmds=".dll" 17549 need_lib_prefix=no 17550 library_names_spec='$libname${shared_ext} $libname.a' 17551 dynamic_linker='OS/2 ld.exe' 17552 shlibpath_var=LIBPATH 17553 ;; 17554 17555osf3* | osf4* | osf5*) 17556 version_type=osf 17557 need_lib_prefix=no 17558 need_version=no 17559 soname_spec='${libname}${release}${shared_ext}$major' 17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17561 shlibpath_var=LD_LIBRARY_PATH 17562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17564 ;; 17565 17566solaris*) 17567 version_type=linux 17568 need_lib_prefix=no 17569 need_version=no 17570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17571 soname_spec='${libname}${release}${shared_ext}$major' 17572 shlibpath_var=LD_LIBRARY_PATH 17573 shlibpath_overrides_runpath=yes 17574 hardcode_into_libs=yes 17575 # ldd complains unless libraries are executable 17576 postinstall_cmds='chmod +x $lib' 17577 ;; 17578 17579sunos4*) 17580 version_type=sunos 17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17583 shlibpath_var=LD_LIBRARY_PATH 17584 shlibpath_overrides_runpath=yes 17585 if test "$with_gnu_ld" = yes; then 17586 need_lib_prefix=no 17587 fi 17588 need_version=yes 17589 ;; 17590 17591sysv4 | sysv4.3*) 17592 version_type=linux 17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17594 soname_spec='${libname}${release}${shared_ext}$major' 17595 shlibpath_var=LD_LIBRARY_PATH 17596 case $host_vendor in 17597 sni) 17598 shlibpath_overrides_runpath=no 17599 need_lib_prefix=no 17600 export_dynamic_flag_spec='${wl}-Blargedynsym' 17601 runpath_var=LD_RUN_PATH 17602 ;; 17603 siemens) 17604 need_lib_prefix=no 17605 ;; 17606 motorola) 17607 need_lib_prefix=no 17608 need_version=no 17609 shlibpath_overrides_runpath=no 17610 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17611 ;; 17612 esac 17613 ;; 17614 17615sysv4*MP*) 17616 if test -d /usr/nec ;then 17617 version_type=linux 17618 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17619 soname_spec='$libname${shared_ext}.$major' 17620 shlibpath_var=LD_LIBRARY_PATH 17621 fi 17622 ;; 17623 17624sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17625 version_type=freebsd-elf 17626 need_lib_prefix=no 17627 need_version=no 17628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17629 soname_spec='${libname}${release}${shared_ext}$major' 17630 shlibpath_var=LD_LIBRARY_PATH 17631 hardcode_into_libs=yes 17632 if test "$with_gnu_ld" = yes; then 17633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17634 shlibpath_overrides_runpath=no 17635 else 17636 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17637 shlibpath_overrides_runpath=yes 17638 case $host_os in 17639 sco3.2v5*) 17640 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17641 ;; 17642 esac 17643 fi 17644 sys_lib_dlsearch_path_spec='/usr/lib' 17645 ;; 17646 17647uts4*) 17648 version_type=linux 17649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17650 soname_spec='${libname}${release}${shared_ext}$major' 17651 shlibpath_var=LD_LIBRARY_PATH 17652 ;; 17653 17654*) 17655 dynamic_linker=no 17656 ;; 17657esac 17658echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17659echo "${ECHO_T}$dynamic_linker" >&6 17660test "$dynamic_linker" = no && can_build_shared=no 17661 17662variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17663if test "$GCC" = yes; then 17664 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17665fi 17666 17667echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17668echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17669hardcode_action_GCJ= 17670if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17671 test -n "$runpath_var_GCJ" || \ 17672 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17673 17674 # We can hardcode non-existant directories. 17675 if test "$hardcode_direct_GCJ" != no && 17676 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17677 # have to relink, otherwise we might link with an installed library 17678 # when we should be linking with a yet-to-be-installed one 17679 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17680 test "$hardcode_minus_L_GCJ" != no; then 17681 # Linking always hardcodes the temporary library directory. 17682 hardcode_action_GCJ=relink 17683 else 17684 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17685 hardcode_action_GCJ=immediate 17686 fi 17687else 17688 # We cannot hardcode anything, or else we can only hardcode existing 17689 # directories. 17690 hardcode_action_GCJ=unsupported 17691fi 17692echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17693echo "${ECHO_T}$hardcode_action_GCJ" >&6 17694 17695if test "$hardcode_action_GCJ" = relink; then 17696 # Fast installation is not supported 17697 enable_fast_install=no 17698elif test "$shlibpath_overrides_runpath" = yes || 17699 test "$enable_shared" = no; then 17700 # Fast installation is not necessary 17701 enable_fast_install=needless 17702fi 17703 17704 17705# The else clause should only fire when bootstrapping the 17706# libtool distribution, otherwise you forgot to ship ltmain.sh 17707# with your package, and you will get complaints that there are 17708# no rules to generate ltmain.sh. 17709if test -f "$ltmain"; then 17710 # See if we are running on zsh, and set the options which allow our commands through 17711 # without removal of \ escapes. 17712 if test -n "${ZSH_VERSION+set}" ; then 17713 setopt NO_GLOB_SUBST 17714 fi 17715 # Now quote all the things that may contain metacharacters while being 17716 # careful not to overquote the AC_SUBSTed values. We take copies of the 17717 # variables and quote the copies for generation of the libtool script. 17718 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17719 SED SHELL STRIP \ 17720 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17721 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17722 deplibs_check_method reload_flag reload_cmds need_locks \ 17723 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17724 lt_cv_sys_global_symbol_to_c_name_address \ 17725 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17726 old_postinstall_cmds old_postuninstall_cmds \ 17727 compiler_GCJ \ 17728 CC_GCJ \ 17729 LD_GCJ \ 17730 lt_prog_compiler_wl_GCJ \ 17731 lt_prog_compiler_pic_GCJ \ 17732 lt_prog_compiler_static_GCJ \ 17733 lt_prog_compiler_no_builtin_flag_GCJ \ 17734 export_dynamic_flag_spec_GCJ \ 17735 thread_safe_flag_spec_GCJ \ 17736 whole_archive_flag_spec_GCJ \ 17737 enable_shared_with_static_runtimes_GCJ \ 17738 old_archive_cmds_GCJ \ 17739 old_archive_from_new_cmds_GCJ \ 17740 predep_objects_GCJ \ 17741 postdep_objects_GCJ \ 17742 predeps_GCJ \ 17743 postdeps_GCJ \ 17744 compiler_lib_search_path_GCJ \ 17745 archive_cmds_GCJ \ 17746 archive_expsym_cmds_GCJ \ 17747 postinstall_cmds_GCJ \ 17748 postuninstall_cmds_GCJ \ 17749 old_archive_from_expsyms_cmds_GCJ \ 17750 allow_undefined_flag_GCJ \ 17751 no_undefined_flag_GCJ \ 17752 export_symbols_cmds_GCJ \ 17753 hardcode_libdir_flag_spec_GCJ \ 17754 hardcode_libdir_flag_spec_ld_GCJ \ 17755 hardcode_libdir_separator_GCJ \ 17756 hardcode_automatic_GCJ \ 17757 module_cmds_GCJ \ 17758 module_expsym_cmds_GCJ \ 17759 lt_cv_prog_compiler_c_o_GCJ \ 17760 exclude_expsyms_GCJ \ 17761 include_expsyms_GCJ; do 17762 17763 case $var in 17764 old_archive_cmds_GCJ | \ 17765 old_archive_from_new_cmds_GCJ | \ 17766 archive_cmds_GCJ | \ 17767 archive_expsym_cmds_GCJ | \ 17768 module_cmds_GCJ | \ 17769 module_expsym_cmds_GCJ | \ 17770 old_archive_from_expsyms_cmds_GCJ | \ 17771 export_symbols_cmds_GCJ | \ 17772 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17773 postinstall_cmds | postuninstall_cmds | \ 17774 old_postinstall_cmds | old_postuninstall_cmds | \ 17775 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17776 # Double-quote double-evaled strings. 17777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17778 ;; 17779 *) 17780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17781 ;; 17782 esac 17783 done 17784 17785 case $lt_echo in 17786 *'\$0 --fallback-echo"') 17787 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17788 ;; 17789 esac 17790 17791cfgfile="$ofile" 17792 17793 cat <<__EOF__ >> "$cfgfile" 17794# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17795 17796# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17797 17798# Shell to use when invoking shell scripts. 17799SHELL=$lt_SHELL 17800 17801# Whether or not to build shared libraries. 17802build_libtool_libs=$enable_shared 17803 17804# Whether or not to build static libraries. 17805build_old_libs=$enable_static 17806 17807# Whether or not to add -lc for building shared libraries. 17808build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17809 17810# Whether or not to disallow shared libs when runtime libs are static 17811allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17812 17813# Whether or not to optimize for fast installation. 17814fast_install=$enable_fast_install 17815 17816# The host system. 17817host_alias=$host_alias 17818host=$host 17819host_os=$host_os 17820 17821# The build system. 17822build_alias=$build_alias 17823build=$build 17824build_os=$build_os 17825 17826# An echo program that does not interpret backslashes. 17827echo=$lt_echo 17828 17829# The archiver. 17830AR=$lt_AR 17831AR_FLAGS=$lt_AR_FLAGS 17832 17833# A C compiler. 17834LTCC=$lt_LTCC 17835 17836# LTCC compiler flags. 17837LTCFLAGS=$lt_LTCFLAGS 17838 17839# A language-specific compiler. 17840CC=$lt_compiler_GCJ 17841 17842# Is the compiler the GNU C compiler? 17843with_gcc=$GCC_GCJ 17844 17845gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 17846gcc_ver=\`gcc -dumpversion\` 17847 17848# An ERE matcher. 17849EGREP=$lt_EGREP 17850 17851# The linker used to build libraries. 17852LD=$lt_LD_GCJ 17853 17854# Whether we need hard or soft links. 17855LN_S=$lt_LN_S 17856 17857# A BSD-compatible nm program. 17858NM=$lt_NM 17859 17860# A symbol stripping program 17861STRIP=$lt_STRIP 17862 17863# Used to examine libraries when file_magic_cmd begins "file" 17864MAGIC_CMD=$MAGIC_CMD 17865 17866# Used on cygwin: DLL creation program. 17867DLLTOOL="$DLLTOOL" 17868 17869# Used on cygwin: object dumper. 17870OBJDUMP="$OBJDUMP" 17871 17872# Used on cygwin: assembler. 17873AS="$AS" 17874 17875# The name of the directory that contains temporary libtool files. 17876objdir=$objdir 17877 17878# How to create reloadable object files. 17879reload_flag=$lt_reload_flag 17880reload_cmds=$lt_reload_cmds 17881 17882# How to pass a linker flag through the compiler. 17883wl=$lt_lt_prog_compiler_wl_GCJ 17884 17885# Object file suffix (normally "o"). 17886objext="$ac_objext" 17887 17888# Old archive suffix (normally "a"). 17889libext="$libext" 17890 17891# Shared library suffix (normally ".so"). 17892shrext_cmds='$shrext_cmds' 17893 17894# Executable file suffix (normally ""). 17895exeext="$exeext" 17896 17897# Additional compiler flags for building library objects. 17898pic_flag=$lt_lt_prog_compiler_pic_GCJ 17899pic_mode=$pic_mode 17900 17901# What is the maximum length of a command? 17902max_cmd_len=$lt_cv_sys_max_cmd_len 17903 17904# Does compiler simultaneously support -c and -o options? 17905compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17906 17907# Must we lock files when doing compilation? 17908need_locks=$lt_need_locks 17909 17910# Do we need the lib prefix for modules? 17911need_lib_prefix=$need_lib_prefix 17912 17913# Do we need a version for libraries? 17914need_version=$need_version 17915 17916# Whether dlopen is supported. 17917dlopen_support=$enable_dlopen 17918 17919# Whether dlopen of programs is supported. 17920dlopen_self=$enable_dlopen_self 17921 17922# Whether dlopen of statically linked programs is supported. 17923dlopen_self_static=$enable_dlopen_self_static 17924 17925# Compiler flag to prevent dynamic linking. 17926link_static_flag=$lt_lt_prog_compiler_static_GCJ 17927 17928# Compiler flag to turn off builtin functions. 17929no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17930 17931# Compiler flag to allow reflexive dlopens. 17932export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17933 17934# Compiler flag to generate shared objects directly from archives. 17935whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17936 17937# Compiler flag to generate thread-safe objects. 17938thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17939 17940# Library versioning type. 17941version_type=$version_type 17942 17943# Format of library name prefix. 17944libname_spec=$lt_libname_spec 17945 17946# List of archive names. First name is the real one, the rest are links. 17947# The last name is the one that the linker finds with -lNAME. 17948library_names_spec=$lt_library_names_spec 17949 17950# The coded name of the library, if different from the real name. 17951soname_spec=$lt_soname_spec 17952 17953# Commands used to build and install an old-style archive. 17954RANLIB=$lt_RANLIB 17955old_archive_cmds=$lt_old_archive_cmds_GCJ 17956old_postinstall_cmds=$lt_old_postinstall_cmds 17957old_postuninstall_cmds=$lt_old_postuninstall_cmds 17958 17959# Create an old-style archive from a shared archive. 17960old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17961 17962# Create a temporary old-style archive to link instead of a shared archive. 17963old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17964 17965# Commands used to build and install a shared archive. 17966archive_cmds=$lt_archive_cmds_GCJ 17967archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17968postinstall_cmds=$lt_postinstall_cmds 17969postuninstall_cmds=$lt_postuninstall_cmds 17970 17971# Commands used to build a loadable module (assumed same as above if empty) 17972module_cmds=$lt_module_cmds_GCJ 17973module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17974 17975# Commands to strip libraries. 17976old_striplib=$lt_old_striplib 17977striplib=$lt_striplib 17978 17979# Dependencies to place before the objects being linked to create a 17980# shared library. 17981predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17982 17983# Dependencies to place after the objects being linked to create a 17984# shared library. 17985postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17986 17987# Dependencies to place before the objects being linked to create a 17988# shared library. 17989predeps=$lt_predeps_GCJ 17990 17991# Dependencies to place after the objects being linked to create a 17992# shared library. 17993postdeps=$lt_postdeps_GCJ 17994 17995# The library search path used internally by the compiler when linking 17996# a shared library. 17997compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17998 17999# Method to check whether dependent libraries are shared objects. 18000deplibs_check_method=$lt_deplibs_check_method 18001 18002# Command to use when deplibs_check_method == file_magic. 18003file_magic_cmd=$lt_file_magic_cmd 18004 18005# Flag that allows shared libraries with undefined symbols to be built. 18006allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18007 18008# Flag that forces no undefined symbols. 18009no_undefined_flag=$lt_no_undefined_flag_GCJ 18010 18011# Commands used to finish a libtool library installation in a directory. 18012finish_cmds=$lt_finish_cmds 18013 18014# Same as above, but a single script fragment to be evaled but not shown. 18015finish_eval=$lt_finish_eval 18016 18017# Take the output of nm and produce a listing of raw symbols and C names. 18018global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18019 18020# Transform the output of nm in a proper C declaration 18021global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18022 18023# Transform the output of nm in a C name address pair 18024global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18025 18026# This is the shared library runtime path variable. 18027runpath_var=$runpath_var 18028 18029# This is the shared library path variable. 18030shlibpath_var=$shlibpath_var 18031 18032# Is shlibpath searched before the hard-coded library search path? 18033shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18034 18035# How to hardcode a shared library path into an executable. 18036hardcode_action=$hardcode_action_GCJ 18037 18038# Whether we should hardcode library paths into libraries. 18039hardcode_into_libs=$hardcode_into_libs 18040 18041# Flag to hardcode \$libdir into a binary during linking. 18042# This must work even if \$libdir does not exist. 18043hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18044 18045# If ld is used when linking, flag to hardcode \$libdir into 18046# a binary during linking. This must work even if \$libdir does 18047# not exist. 18048hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18049 18050# Whether we need a single -rpath flag with a separated argument. 18051hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18052 18053# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18054# resulting binary. 18055hardcode_direct=$hardcode_direct_GCJ 18056 18057# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18058# resulting binary. 18059hardcode_minus_L=$hardcode_minus_L_GCJ 18060 18061# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18062# the resulting binary. 18063hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18064 18065# Set to yes if building a shared library automatically hardcodes DIR into the library 18066# and all subsequent libraries and executables linked against it. 18067hardcode_automatic=$hardcode_automatic_GCJ 18068 18069# Variables whose values should be saved in libtool wrapper scripts and 18070# restored at relink time. 18071variables_saved_for_relink="$variables_saved_for_relink" 18072 18073# Whether libtool must link a program against all its dependency libraries. 18074link_all_deplibs=$link_all_deplibs_GCJ 18075 18076# Compile-time system search path for libraries 18077sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18078 18079# Run-time system search path for libraries 18080sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18081 18082# Fix the shell variable \$srcfile for the compiler. 18083fix_srcfile_path="$fix_srcfile_path_GCJ" 18084 18085# Set to yes if exported symbols are required. 18086always_export_symbols=$always_export_symbols_GCJ 18087 18088# The commands to list exported symbols. 18089export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18090 18091# The commands to extract the exported symbol list from a shared archive. 18092extract_expsyms_cmds=$lt_extract_expsyms_cmds 18093 18094# Symbols that should not be listed in the preloaded symbols. 18095exclude_expsyms=$lt_exclude_expsyms_GCJ 18096 18097# Symbols that must always be exported. 18098include_expsyms=$lt_include_expsyms_GCJ 18099 18100# ### END LIBTOOL TAG CONFIG: $tagname 18101 18102__EOF__ 18103 18104 18105else 18106 # If there is no Makefile yet, we rely on a make rule to execute 18107 # `config.status --recheck' to rerun these tests and create the 18108 # libtool script then. 18109 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18110 if test -f "$ltmain_in"; then 18111 test -f Makefile && make "$ltmain" 18112 fi 18113fi 18114 18115 18116ac_ext=c 18117ac_cpp='$CPP $CPPFLAGS' 18118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18120ac_compiler_gnu=$ac_cv_c_compiler_gnu 18121 18122CC="$lt_save_CC" 18123 18124 else 18125 tagname="" 18126 fi 18127 ;; 18128 18129 RC) 18130 18131 18132 18133# Source file extension for RC test sources. 18134ac_ext=rc 18135 18136# Object file extension for compiled RC test sources. 18137objext=o 18138objext_RC=$objext 18139 18140# Code to be used in simple compile tests 18141lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18142 18143# Code to be used in simple link tests 18144lt_simple_link_test_code="$lt_simple_compile_test_code" 18145 18146# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18147 18148# If no C compiler was specified, use CC. 18149LTCC=${LTCC-"$CC"} 18150 18151# If no C compiler flags were specified, use CFLAGS. 18152LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18153 18154# Allow CC to be a program name with arguments. 18155compiler=$CC 18156 18157 18158# save warnings/boilerplate of simple test code 18159ac_outfile=conftest.$ac_objext 18160printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18161eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18162_lt_compiler_boilerplate=`cat conftest.err` 18163$rm conftest* 18164 18165ac_outfile=conftest.$ac_objext 18166printf "$lt_simple_link_test_code" >conftest.$ac_ext 18167eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18168_lt_linker_boilerplate=`cat conftest.err` 18169$rm conftest* 18170 18171 18172# Allow CC to be a program name with arguments. 18173lt_save_CC="$CC" 18174CC=${RC-"windres"} 18175compiler=$CC 18176compiler_RC=$CC 18177for cc_temp in $compiler""; do 18178 case $cc_temp in 18179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18181 \-*) ;; 18182 *) break;; 18183 esac 18184done 18185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18186 18187lt_cv_prog_compiler_c_o_RC=yes 18188 18189# The else clause should only fire when bootstrapping the 18190# libtool distribution, otherwise you forgot to ship ltmain.sh 18191# with your package, and you will get complaints that there are 18192# no rules to generate ltmain.sh. 18193if test -f "$ltmain"; then 18194 # See if we are running on zsh, and set the options which allow our commands through 18195 # without removal of \ escapes. 18196 if test -n "${ZSH_VERSION+set}" ; then 18197 setopt NO_GLOB_SUBST 18198 fi 18199 # Now quote all the things that may contain metacharacters while being 18200 # careful not to overquote the AC_SUBSTed values. We take copies of the 18201 # variables and quote the copies for generation of the libtool script. 18202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18203 SED SHELL STRIP \ 18204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18206 deplibs_check_method reload_flag reload_cmds need_locks \ 18207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18208 lt_cv_sys_global_symbol_to_c_name_address \ 18209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18210 old_postinstall_cmds old_postuninstall_cmds \ 18211 compiler_RC \ 18212 CC_RC \ 18213 LD_RC \ 18214 lt_prog_compiler_wl_RC \ 18215 lt_prog_compiler_pic_RC \ 18216 lt_prog_compiler_static_RC \ 18217 lt_prog_compiler_no_builtin_flag_RC \ 18218 export_dynamic_flag_spec_RC \ 18219 thread_safe_flag_spec_RC \ 18220 whole_archive_flag_spec_RC \ 18221 enable_shared_with_static_runtimes_RC \ 18222 old_archive_cmds_RC \ 18223 old_archive_from_new_cmds_RC \ 18224 predep_objects_RC \ 18225 postdep_objects_RC \ 18226 predeps_RC \ 18227 postdeps_RC \ 18228 compiler_lib_search_path_RC \ 18229 archive_cmds_RC \ 18230 archive_expsym_cmds_RC \ 18231 postinstall_cmds_RC \ 18232 postuninstall_cmds_RC \ 18233 old_archive_from_expsyms_cmds_RC \ 18234 allow_undefined_flag_RC \ 18235 no_undefined_flag_RC \ 18236 export_symbols_cmds_RC \ 18237 hardcode_libdir_flag_spec_RC \ 18238 hardcode_libdir_flag_spec_ld_RC \ 18239 hardcode_libdir_separator_RC \ 18240 hardcode_automatic_RC \ 18241 module_cmds_RC \ 18242 module_expsym_cmds_RC \ 18243 lt_cv_prog_compiler_c_o_RC \ 18244 exclude_expsyms_RC \ 18245 include_expsyms_RC; do 18246 18247 case $var in 18248 old_archive_cmds_RC | \ 18249 old_archive_from_new_cmds_RC | \ 18250 archive_cmds_RC | \ 18251 archive_expsym_cmds_RC | \ 18252 module_cmds_RC | \ 18253 module_expsym_cmds_RC | \ 18254 old_archive_from_expsyms_cmds_RC | \ 18255 export_symbols_cmds_RC | \ 18256 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18257 postinstall_cmds | postuninstall_cmds | \ 18258 old_postinstall_cmds | old_postuninstall_cmds | \ 18259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18260 # Double-quote double-evaled strings. 18261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18262 ;; 18263 *) 18264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18265 ;; 18266 esac 18267 done 18268 18269 case $lt_echo in 18270 *'\$0 --fallback-echo"') 18271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18272 ;; 18273 esac 18274 18275cfgfile="$ofile" 18276 18277 cat <<__EOF__ >> "$cfgfile" 18278# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18279 18280# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18281 18282# Shell to use when invoking shell scripts. 18283SHELL=$lt_SHELL 18284 18285# Whether or not to build shared libraries. 18286build_libtool_libs=$enable_shared 18287 18288# Whether or not to build static libraries. 18289build_old_libs=$enable_static 18290 18291# Whether or not to add -lc for building shared libraries. 18292build_libtool_need_lc=$archive_cmds_need_lc_RC 18293 18294# Whether or not to disallow shared libs when runtime libs are static 18295allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18296 18297# Whether or not to optimize for fast installation. 18298fast_install=$enable_fast_install 18299 18300# The host system. 18301host_alias=$host_alias 18302host=$host 18303host_os=$host_os 18304 18305# The build system. 18306build_alias=$build_alias 18307build=$build 18308build_os=$build_os 18309 18310# An echo program that does not interpret backslashes. 18311echo=$lt_echo 18312 18313# The archiver. 18314AR=$lt_AR 18315AR_FLAGS=$lt_AR_FLAGS 18316 18317# A C compiler. 18318LTCC=$lt_LTCC 18319 18320# LTCC compiler flags. 18321LTCFLAGS=$lt_LTCFLAGS 18322 18323# A language-specific compiler. 18324CC=$lt_compiler_RC 18325 18326# Is the compiler the GNU C compiler? 18327with_gcc=$GCC_RC 18328 18329gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 18330gcc_ver=\`gcc -dumpversion\` 18331 18332# An ERE matcher. 18333EGREP=$lt_EGREP 18334 18335# The linker used to build libraries. 18336LD=$lt_LD_RC 18337 18338# Whether we need hard or soft links. 18339LN_S=$lt_LN_S 18340 18341# A BSD-compatible nm program. 18342NM=$lt_NM 18343 18344# A symbol stripping program 18345STRIP=$lt_STRIP 18346 18347# Used to examine libraries when file_magic_cmd begins "file" 18348MAGIC_CMD=$MAGIC_CMD 18349 18350# Used on cygwin: DLL creation program. 18351DLLTOOL="$DLLTOOL" 18352 18353# Used on cygwin: object dumper. 18354OBJDUMP="$OBJDUMP" 18355 18356# Used on cygwin: assembler. 18357AS="$AS" 18358 18359# The name of the directory that contains temporary libtool files. 18360objdir=$objdir 18361 18362# How to create reloadable object files. 18363reload_flag=$lt_reload_flag 18364reload_cmds=$lt_reload_cmds 18365 18366# How to pass a linker flag through the compiler. 18367wl=$lt_lt_prog_compiler_wl_RC 18368 18369# Object file suffix (normally "o"). 18370objext="$ac_objext" 18371 18372# Old archive suffix (normally "a"). 18373libext="$libext" 18374 18375# Shared library suffix (normally ".so"). 18376shrext_cmds='$shrext_cmds' 18377 18378# Executable file suffix (normally ""). 18379exeext="$exeext" 18380 18381# Additional compiler flags for building library objects. 18382pic_flag=$lt_lt_prog_compiler_pic_RC 18383pic_mode=$pic_mode 18384 18385# What is the maximum length of a command? 18386max_cmd_len=$lt_cv_sys_max_cmd_len 18387 18388# Does compiler simultaneously support -c and -o options? 18389compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18390 18391# Must we lock files when doing compilation? 18392need_locks=$lt_need_locks 18393 18394# Do we need the lib prefix for modules? 18395need_lib_prefix=$need_lib_prefix 18396 18397# Do we need a version for libraries? 18398need_version=$need_version 18399 18400# Whether dlopen is supported. 18401dlopen_support=$enable_dlopen 18402 18403# Whether dlopen of programs is supported. 18404dlopen_self=$enable_dlopen_self 18405 18406# Whether dlopen of statically linked programs is supported. 18407dlopen_self_static=$enable_dlopen_self_static 18408 18409# Compiler flag to prevent dynamic linking. 18410link_static_flag=$lt_lt_prog_compiler_static_RC 18411 18412# Compiler flag to turn off builtin functions. 18413no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18414 18415# Compiler flag to allow reflexive dlopens. 18416export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18417 18418# Compiler flag to generate shared objects directly from archives. 18419whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18420 18421# Compiler flag to generate thread-safe objects. 18422thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18423 18424# Library versioning type. 18425version_type=$version_type 18426 18427# Format of library name prefix. 18428libname_spec=$lt_libname_spec 18429 18430# List of archive names. First name is the real one, the rest are links. 18431# The last name is the one that the linker finds with -lNAME. 18432library_names_spec=$lt_library_names_spec 18433 18434# The coded name of the library, if different from the real name. 18435soname_spec=$lt_soname_spec 18436 18437# Commands used to build and install an old-style archive. 18438RANLIB=$lt_RANLIB 18439old_archive_cmds=$lt_old_archive_cmds_RC 18440old_postinstall_cmds=$lt_old_postinstall_cmds 18441old_postuninstall_cmds=$lt_old_postuninstall_cmds 18442 18443# Create an old-style archive from a shared archive. 18444old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18445 18446# Create a temporary old-style archive to link instead of a shared archive. 18447old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18448 18449# Commands used to build and install a shared archive. 18450archive_cmds=$lt_archive_cmds_RC 18451archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18452postinstall_cmds=$lt_postinstall_cmds 18453postuninstall_cmds=$lt_postuninstall_cmds 18454 18455# Commands used to build a loadable module (assumed same as above if empty) 18456module_cmds=$lt_module_cmds_RC 18457module_expsym_cmds=$lt_module_expsym_cmds_RC 18458 18459# Commands to strip libraries. 18460old_striplib=$lt_old_striplib 18461striplib=$lt_striplib 18462 18463# Dependencies to place before the objects being linked to create a 18464# shared library. 18465predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18466 18467# Dependencies to place after the objects being linked to create a 18468# shared library. 18469postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18470 18471# Dependencies to place before the objects being linked to create a 18472# shared library. 18473predeps=$lt_predeps_RC 18474 18475# Dependencies to place after the objects being linked to create a 18476# shared library. 18477postdeps=$lt_postdeps_RC 18478 18479# The library search path used internally by the compiler when linking 18480# a shared library. 18481compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18482 18483# Method to check whether dependent libraries are shared objects. 18484deplibs_check_method=$lt_deplibs_check_method 18485 18486# Command to use when deplibs_check_method == file_magic. 18487file_magic_cmd=$lt_file_magic_cmd 18488 18489# Flag that allows shared libraries with undefined symbols to be built. 18490allow_undefined_flag=$lt_allow_undefined_flag_RC 18491 18492# Flag that forces no undefined symbols. 18493no_undefined_flag=$lt_no_undefined_flag_RC 18494 18495# Commands used to finish a libtool library installation in a directory. 18496finish_cmds=$lt_finish_cmds 18497 18498# Same as above, but a single script fragment to be evaled but not shown. 18499finish_eval=$lt_finish_eval 18500 18501# Take the output of nm and produce a listing of raw symbols and C names. 18502global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18503 18504# Transform the output of nm in a proper C declaration 18505global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18506 18507# Transform the output of nm in a C name address pair 18508global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18509 18510# This is the shared library runtime path variable. 18511runpath_var=$runpath_var 18512 18513# This is the shared library path variable. 18514shlibpath_var=$shlibpath_var 18515 18516# Is shlibpath searched before the hard-coded library search path? 18517shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18518 18519# How to hardcode a shared library path into an executable. 18520hardcode_action=$hardcode_action_RC 18521 18522# Whether we should hardcode library paths into libraries. 18523hardcode_into_libs=$hardcode_into_libs 18524 18525# Flag to hardcode \$libdir into a binary during linking. 18526# This must work even if \$libdir does not exist. 18527hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18528 18529# If ld is used when linking, flag to hardcode \$libdir into 18530# a binary during linking. This must work even if \$libdir does 18531# not exist. 18532hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18533 18534# Whether we need a single -rpath flag with a separated argument. 18535hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18536 18537# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18538# resulting binary. 18539hardcode_direct=$hardcode_direct_RC 18540 18541# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18542# resulting binary. 18543hardcode_minus_L=$hardcode_minus_L_RC 18544 18545# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18546# the resulting binary. 18547hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18548 18549# Set to yes if building a shared library automatically hardcodes DIR into the library 18550# and all subsequent libraries and executables linked against it. 18551hardcode_automatic=$hardcode_automatic_RC 18552 18553# Variables whose values should be saved in libtool wrapper scripts and 18554# restored at relink time. 18555variables_saved_for_relink="$variables_saved_for_relink" 18556 18557# Whether libtool must link a program against all its dependency libraries. 18558link_all_deplibs=$link_all_deplibs_RC 18559 18560# Compile-time system search path for libraries 18561sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18562 18563# Run-time system search path for libraries 18564sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18565 18566# Fix the shell variable \$srcfile for the compiler. 18567fix_srcfile_path="$fix_srcfile_path_RC" 18568 18569# Set to yes if exported symbols are required. 18570always_export_symbols=$always_export_symbols_RC 18571 18572# The commands to list exported symbols. 18573export_symbols_cmds=$lt_export_symbols_cmds_RC 18574 18575# The commands to extract the exported symbol list from a shared archive. 18576extract_expsyms_cmds=$lt_extract_expsyms_cmds 18577 18578# Symbols that should not be listed in the preloaded symbols. 18579exclude_expsyms=$lt_exclude_expsyms_RC 18580 18581# Symbols that must always be exported. 18582include_expsyms=$lt_include_expsyms_RC 18583 18584# ### END LIBTOOL TAG CONFIG: $tagname 18585 18586__EOF__ 18587 18588 18589else 18590 # If there is no Makefile yet, we rely on a make rule to execute 18591 # `config.status --recheck' to rerun these tests and create the 18592 # libtool script then. 18593 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18594 if test -f "$ltmain_in"; then 18595 test -f Makefile && make "$ltmain" 18596 fi 18597fi 18598 18599 18600ac_ext=c 18601ac_cpp='$CPP $CPPFLAGS' 18602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18604ac_compiler_gnu=$ac_cv_c_compiler_gnu 18605 18606CC="$lt_save_CC" 18607 18608 ;; 18609 18610 *) 18611 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18612echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18613 { (exit 1); exit 1; }; } 18614 ;; 18615 esac 18616 18617 # Append the new tag name to the list of available tags. 18618 if test -n "$tagname" ; then 18619 available_tags="$available_tags $tagname" 18620 fi 18621 fi 18622 done 18623 IFS="$lt_save_ifs" 18624 18625 # Now substitute the updated list of available tags. 18626 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18627 mv "${ofile}T" "$ofile" 18628 chmod +x "$ofile" 18629 else 18630 rm -f "${ofile}T" 18631 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18632echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18633 { (exit 1); exit 1; }; } 18634 fi 18635fi 18636 18637 18638 18639# This can be used to rebuild libtool when needed 18640LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18641 18642# Always use our own libtool. 18643LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18644 18645# Prevent multiple expansion 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666ac_ext=c 18667ac_cpp='$CPP $CPPFLAGS' 18668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18670ac_compiler_gnu=$ac_cv_c_compiler_gnu 18671if test -n "$ac_tool_prefix"; then 18672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 18673set dummy ${ac_tool_prefix}gcc; ac_word=$2 18674echo "$as_me:$LINENO: checking for $ac_word" >&5 18675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18676if test "${ac_cv_prog_CC+set}" = set; then 18677 echo $ECHO_N "(cached) $ECHO_C" >&6 18678else 18679 if test -n "$CC"; then 18680 ac_cv_prog_CC="$CC" # Let the user override the test. 18681else 18682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18683for as_dir in $PATH 18684do 18685 IFS=$as_save_IFS 18686 test -z "$as_dir" && as_dir=. 18687 for ac_exec_ext in '' $ac_executable_extensions; do 18688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18689 ac_cv_prog_CC="${ac_tool_prefix}gcc" 18690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18691 break 2 18692 fi 18693done 18694done 18695 18696fi 18697fi 18698CC=$ac_cv_prog_CC 18699if test -n "$CC"; then 18700 echo "$as_me:$LINENO: result: $CC" >&5 18701echo "${ECHO_T}$CC" >&6 18702else 18703 echo "$as_me:$LINENO: result: no" >&5 18704echo "${ECHO_T}no" >&6 18705fi 18706 18707fi 18708if test -z "$ac_cv_prog_CC"; then 18709 ac_ct_CC=$CC 18710 # Extract the first word of "gcc", so it can be a program name with args. 18711set dummy gcc; ac_word=$2 18712echo "$as_me:$LINENO: checking for $ac_word" >&5 18713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18714if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18715 echo $ECHO_N "(cached) $ECHO_C" >&6 18716else 18717 if test -n "$ac_ct_CC"; then 18718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18719else 18720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18721for as_dir in $PATH 18722do 18723 IFS=$as_save_IFS 18724 test -z "$as_dir" && as_dir=. 18725 for ac_exec_ext in '' $ac_executable_extensions; do 18726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18727 ac_cv_prog_ac_ct_CC="gcc" 18728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18729 break 2 18730 fi 18731done 18732done 18733 18734fi 18735fi 18736ac_ct_CC=$ac_cv_prog_ac_ct_CC 18737if test -n "$ac_ct_CC"; then 18738 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18739echo "${ECHO_T}$ac_ct_CC" >&6 18740else 18741 echo "$as_me:$LINENO: result: no" >&5 18742echo "${ECHO_T}no" >&6 18743fi 18744 18745 CC=$ac_ct_CC 18746else 18747 CC="$ac_cv_prog_CC" 18748fi 18749 18750if test -z "$CC"; then 18751 if test -n "$ac_tool_prefix"; then 18752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18753set dummy ${ac_tool_prefix}cc; ac_word=$2 18754echo "$as_me:$LINENO: checking for $ac_word" >&5 18755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18756if test "${ac_cv_prog_CC+set}" = set; then 18757 echo $ECHO_N "(cached) $ECHO_C" >&6 18758else 18759 if test -n "$CC"; then 18760 ac_cv_prog_CC="$CC" # Let the user override the test. 18761else 18762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18763for as_dir in $PATH 18764do 18765 IFS=$as_save_IFS 18766 test -z "$as_dir" && as_dir=. 18767 for ac_exec_ext in '' $ac_executable_extensions; do 18768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18769 ac_cv_prog_CC="${ac_tool_prefix}cc" 18770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18771 break 2 18772 fi 18773done 18774done 18775 18776fi 18777fi 18778CC=$ac_cv_prog_CC 18779if test -n "$CC"; then 18780 echo "$as_me:$LINENO: result: $CC" >&5 18781echo "${ECHO_T}$CC" >&6 18782else 18783 echo "$as_me:$LINENO: result: no" >&5 18784echo "${ECHO_T}no" >&6 18785fi 18786 18787fi 18788if test -z "$ac_cv_prog_CC"; then 18789 ac_ct_CC=$CC 18790 # Extract the first word of "cc", so it can be a program name with args. 18791set dummy cc; ac_word=$2 18792echo "$as_me:$LINENO: checking for $ac_word" >&5 18793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18794if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18795 echo $ECHO_N "(cached) $ECHO_C" >&6 18796else 18797 if test -n "$ac_ct_CC"; then 18798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18799else 18800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18801for as_dir in $PATH 18802do 18803 IFS=$as_save_IFS 18804 test -z "$as_dir" && as_dir=. 18805 for ac_exec_ext in '' $ac_executable_extensions; do 18806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18807 ac_cv_prog_ac_ct_CC="cc" 18808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18809 break 2 18810 fi 18811done 18812done 18813 18814fi 18815fi 18816ac_ct_CC=$ac_cv_prog_ac_ct_CC 18817if test -n "$ac_ct_CC"; then 18818 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18819echo "${ECHO_T}$ac_ct_CC" >&6 18820else 18821 echo "$as_me:$LINENO: result: no" >&5 18822echo "${ECHO_T}no" >&6 18823fi 18824 18825 CC=$ac_ct_CC 18826else 18827 CC="$ac_cv_prog_CC" 18828fi 18829 18830fi 18831if test -z "$CC"; then 18832 # Extract the first word of "cc", so it can be a program name with args. 18833set dummy cc; ac_word=$2 18834echo "$as_me:$LINENO: checking for $ac_word" >&5 18835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18836if test "${ac_cv_prog_CC+set}" = set; then 18837 echo $ECHO_N "(cached) $ECHO_C" >&6 18838else 18839 if test -n "$CC"; then 18840 ac_cv_prog_CC="$CC" # Let the user override the test. 18841else 18842 ac_prog_rejected=no 18843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18844for as_dir in $PATH 18845do 18846 IFS=$as_save_IFS 18847 test -z "$as_dir" && as_dir=. 18848 for ac_exec_ext in '' $ac_executable_extensions; do 18849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18850 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 18851 ac_prog_rejected=yes 18852 continue 18853 fi 18854 ac_cv_prog_CC="cc" 18855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18856 break 2 18857 fi 18858done 18859done 18860 18861if test $ac_prog_rejected = yes; then 18862 # We found a bogon in the path, so make sure we never use it. 18863 set dummy $ac_cv_prog_CC 18864 shift 18865 if test $# != 0; then 18866 # We chose a different compiler from the bogus one. 18867 # However, it has the same basename, so the bogon will be chosen 18868 # first if we set CC to just the basename; use the full file name. 18869 shift 18870 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 18871 fi 18872fi 18873fi 18874fi 18875CC=$ac_cv_prog_CC 18876if test -n "$CC"; then 18877 echo "$as_me:$LINENO: result: $CC" >&5 18878echo "${ECHO_T}$CC" >&6 18879else 18880 echo "$as_me:$LINENO: result: no" >&5 18881echo "${ECHO_T}no" >&6 18882fi 18883 18884fi 18885if test -z "$CC"; then 18886 if test -n "$ac_tool_prefix"; then 18887 for ac_prog in cl 18888 do 18889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18890set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18891echo "$as_me:$LINENO: checking for $ac_word" >&5 18892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18893if test "${ac_cv_prog_CC+set}" = set; then 18894 echo $ECHO_N "(cached) $ECHO_C" >&6 18895else 18896 if test -n "$CC"; then 18897 ac_cv_prog_CC="$CC" # Let the user override the test. 18898else 18899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18900for as_dir in $PATH 18901do 18902 IFS=$as_save_IFS 18903 test -z "$as_dir" && as_dir=. 18904 for ac_exec_ext in '' $ac_executable_extensions; do 18905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18906 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 18907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18908 break 2 18909 fi 18910done 18911done 18912 18913fi 18914fi 18915CC=$ac_cv_prog_CC 18916if test -n "$CC"; then 18917 echo "$as_me:$LINENO: result: $CC" >&5 18918echo "${ECHO_T}$CC" >&6 18919else 18920 echo "$as_me:$LINENO: result: no" >&5 18921echo "${ECHO_T}no" >&6 18922fi 18923 18924 test -n "$CC" && break 18925 done 18926fi 18927if test -z "$CC"; then 18928 ac_ct_CC=$CC 18929 for ac_prog in cl 18930do 18931 # Extract the first word of "$ac_prog", so it can be a program name with args. 18932set dummy $ac_prog; ac_word=$2 18933echo "$as_me:$LINENO: checking for $ac_word" >&5 18934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18936 echo $ECHO_N "(cached) $ECHO_C" >&6 18937else 18938 if test -n "$ac_ct_CC"; then 18939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18940else 18941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18942for as_dir in $PATH 18943do 18944 IFS=$as_save_IFS 18945 test -z "$as_dir" && as_dir=. 18946 for ac_exec_ext in '' $ac_executable_extensions; do 18947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18948 ac_cv_prog_ac_ct_CC="$ac_prog" 18949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18950 break 2 18951 fi 18952done 18953done 18954 18955fi 18956fi 18957ac_ct_CC=$ac_cv_prog_ac_ct_CC 18958if test -n "$ac_ct_CC"; then 18959 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18960echo "${ECHO_T}$ac_ct_CC" >&6 18961else 18962 echo "$as_me:$LINENO: result: no" >&5 18963echo "${ECHO_T}no" >&6 18964fi 18965 18966 test -n "$ac_ct_CC" && break 18967done 18968 18969 CC=$ac_ct_CC 18970fi 18971 18972fi 18973 18974 18975test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 18976See \`config.log' for more details." >&5 18977echo "$as_me: error: no acceptable C compiler found in \$PATH 18978See \`config.log' for more details." >&2;} 18979 { (exit 1); exit 1; }; } 18980 18981# Provide some information about the compiler. 18982echo "$as_me:$LINENO:" \ 18983 "checking for C compiler version" >&5 18984ac_compiler=`set X $ac_compile; echo $2` 18985{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 18986 (eval $ac_compiler --version </dev/null >&5) 2>&5 18987 ac_status=$? 18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18989 (exit $ac_status); } 18990{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 18991 (eval $ac_compiler -v </dev/null >&5) 2>&5 18992 ac_status=$? 18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18994 (exit $ac_status); } 18995{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 18996 (eval $ac_compiler -V </dev/null >&5) 2>&5 18997 ac_status=$? 18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18999 (exit $ac_status); } 19000 19001echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19002echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 19003if test "${ac_cv_c_compiler_gnu+set}" = set; then 19004 echo $ECHO_N "(cached) $ECHO_C" >&6 19005else 19006 cat >conftest.$ac_ext <<_ACEOF 19007/* confdefs.h. */ 19008_ACEOF 19009cat confdefs.h >>conftest.$ac_ext 19010cat >>conftest.$ac_ext <<_ACEOF 19011/* end confdefs.h. */ 19012 19013int 19014main () 19015{ 19016#ifndef __GNUC__ 19017 choke me 19018#endif 19019 19020 ; 19021 return 0; 19022} 19023_ACEOF 19024rm -f conftest.$ac_objext 19025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19026 (eval $ac_compile) 2>conftest.er1 19027 ac_status=$? 19028 grep -v '^ *+' conftest.er1 >conftest.err 19029 rm -f conftest.er1 19030 cat conftest.err >&5 19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19032 (exit $ac_status); } && 19033 { ac_try='test -z "$ac_c_werror_flag" 19034 || test ! -s conftest.err' 19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19036 (eval $ac_try) 2>&5 19037 ac_status=$? 19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19039 (exit $ac_status); }; } && 19040 { ac_try='test -s conftest.$ac_objext' 19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19042 (eval $ac_try) 2>&5 19043 ac_status=$? 19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19045 (exit $ac_status); }; }; then 19046 ac_compiler_gnu=yes 19047else 19048 echo "$as_me: failed program was:" >&5 19049sed 's/^/| /' conftest.$ac_ext >&5 19050 19051ac_compiler_gnu=no 19052fi 19053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19054ac_cv_c_compiler_gnu=$ac_compiler_gnu 19055 19056fi 19057echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19058echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 19059GCC=`test $ac_compiler_gnu = yes && echo yes` 19060ac_test_CFLAGS=${CFLAGS+set} 19061ac_save_CFLAGS=$CFLAGS 19062CFLAGS="-g" 19063echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19064echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 19065if test "${ac_cv_prog_cc_g+set}" = set; then 19066 echo $ECHO_N "(cached) $ECHO_C" >&6 19067else 19068 cat >conftest.$ac_ext <<_ACEOF 19069/* confdefs.h. */ 19070_ACEOF 19071cat confdefs.h >>conftest.$ac_ext 19072cat >>conftest.$ac_ext <<_ACEOF 19073/* end confdefs.h. */ 19074 19075int 19076main () 19077{ 19078 19079 ; 19080 return 0; 19081} 19082_ACEOF 19083rm -f conftest.$ac_objext 19084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19085 (eval $ac_compile) 2>conftest.er1 19086 ac_status=$? 19087 grep -v '^ *+' conftest.er1 >conftest.err 19088 rm -f conftest.er1 19089 cat conftest.err >&5 19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19091 (exit $ac_status); } && 19092 { ac_try='test -z "$ac_c_werror_flag" 19093 || test ! -s conftest.err' 19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19095 (eval $ac_try) 2>&5 19096 ac_status=$? 19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19098 (exit $ac_status); }; } && 19099 { ac_try='test -s conftest.$ac_objext' 19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19101 (eval $ac_try) 2>&5 19102 ac_status=$? 19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19104 (exit $ac_status); }; }; then 19105 ac_cv_prog_cc_g=yes 19106else 19107 echo "$as_me: failed program was:" >&5 19108sed 's/^/| /' conftest.$ac_ext >&5 19109 19110ac_cv_prog_cc_g=no 19111fi 19112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19113fi 19114echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19115echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 19116if test "$ac_test_CFLAGS" = set; then 19117 CFLAGS=$ac_save_CFLAGS 19118elif test $ac_cv_prog_cc_g = yes; then 19119 if test "$GCC" = yes; then 19120 CFLAGS="-g -O2" 19121 else 19122 CFLAGS="-g" 19123 fi 19124else 19125 if test "$GCC" = yes; then 19126 CFLAGS="-O2" 19127 else 19128 CFLAGS= 19129 fi 19130fi 19131echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 19132echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 19133if test "${ac_cv_prog_cc_stdc+set}" = set; then 19134 echo $ECHO_N "(cached) $ECHO_C" >&6 19135else 19136 ac_cv_prog_cc_stdc=no 19137ac_save_CC=$CC 19138cat >conftest.$ac_ext <<_ACEOF 19139/* confdefs.h. */ 19140_ACEOF 19141cat confdefs.h >>conftest.$ac_ext 19142cat >>conftest.$ac_ext <<_ACEOF 19143/* end confdefs.h. */ 19144#include <stdarg.h> 19145#include <stdio.h> 19146#include <sys/types.h> 19147#include <sys/stat.h> 19148/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19149struct buf { int x; }; 19150FILE * (*rcsopen) (struct buf *, struct stat *, int); 19151static char *e (p, i) 19152 char **p; 19153 int i; 19154{ 19155 return p[i]; 19156} 19157static char *f (char * (*g) (char **, int), char **p, ...) 19158{ 19159 char *s; 19160 va_list v; 19161 va_start (v,p); 19162 s = g (p, va_arg (v,int)); 19163 va_end (v); 19164 return s; 19165} 19166 19167/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19168 function prototypes and stuff, but not '\xHH' hex character constants. 19169 These don't provoke an error unfortunately, instead are silently treated 19170 as 'x'. The following induces an error, until -std1 is added to get 19171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19172 array size at least. It's necessary to write '\x00'==0 to get something 19173 that's true only with -std1. */ 19174int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19175 19176int test (int i, double x); 19177struct s1 {int (*f) (int a);}; 19178struct s2 {int (*f) (double a);}; 19179int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19180int argc; 19181char **argv; 19182int 19183main () 19184{ 19185return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19186 ; 19187 return 0; 19188} 19189_ACEOF 19190# Don't try gcc -ansi; that turns off useful extensions and 19191# breaks some systems' header files. 19192# AIX -qlanglvl=ansi 19193# Ultrix and OSF/1 -std1 19194# HP-UX 10.20 and later -Ae 19195# HP-UX older versions -Aa -D_HPUX_SOURCE 19196# SVR4 -Xc -D__EXTENSIONS__ 19197for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19198do 19199 CC="$ac_save_CC $ac_arg" 19200 rm -f conftest.$ac_objext 19201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19202 (eval $ac_compile) 2>conftest.er1 19203 ac_status=$? 19204 grep -v '^ *+' conftest.er1 >conftest.err 19205 rm -f conftest.er1 19206 cat conftest.err >&5 19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19208 (exit $ac_status); } && 19209 { ac_try='test -z "$ac_c_werror_flag" 19210 || test ! -s conftest.err' 19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19212 (eval $ac_try) 2>&5 19213 ac_status=$? 19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19215 (exit $ac_status); }; } && 19216 { ac_try='test -s conftest.$ac_objext' 19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19218 (eval $ac_try) 2>&5 19219 ac_status=$? 19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19221 (exit $ac_status); }; }; then 19222 ac_cv_prog_cc_stdc=$ac_arg 19223break 19224else 19225 echo "$as_me: failed program was:" >&5 19226sed 's/^/| /' conftest.$ac_ext >&5 19227 19228fi 19229rm -f conftest.err conftest.$ac_objext 19230done 19231rm -f conftest.$ac_ext conftest.$ac_objext 19232CC=$ac_save_CC 19233 19234fi 19235 19236case "x$ac_cv_prog_cc_stdc" in 19237 x|xno) 19238 echo "$as_me:$LINENO: result: none needed" >&5 19239echo "${ECHO_T}none needed" >&6 ;; 19240 *) 19241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 19242echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 19243 CC="$CC $ac_cv_prog_cc_stdc" ;; 19244esac 19245 19246# Some people use a C++ compiler to compile C. Since we use `exit', 19247# in C++ we need to declare it. In case someone uses the same compiler 19248# for both compiling C and C++ we need to have the C++ compiler decide 19249# the declaration of exit, since it's the most demanding environment. 19250cat >conftest.$ac_ext <<_ACEOF 19251#ifndef __cplusplus 19252 choke me 19253#endif 19254_ACEOF 19255rm -f conftest.$ac_objext 19256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19257 (eval $ac_compile) 2>conftest.er1 19258 ac_status=$? 19259 grep -v '^ *+' conftest.er1 >conftest.err 19260 rm -f conftest.er1 19261 cat conftest.err >&5 19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19263 (exit $ac_status); } && 19264 { ac_try='test -z "$ac_c_werror_flag" 19265 || test ! -s conftest.err' 19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19267 (eval $ac_try) 2>&5 19268 ac_status=$? 19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19270 (exit $ac_status); }; } && 19271 { ac_try='test -s conftest.$ac_objext' 19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19273 (eval $ac_try) 2>&5 19274 ac_status=$? 19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19276 (exit $ac_status); }; }; then 19277 for ac_declaration in \ 19278 '' \ 19279 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19280 'extern "C" void std::exit (int); using std::exit;' \ 19281 'extern "C" void exit (int) throw ();' \ 19282 'extern "C" void exit (int);' \ 19283 'void exit (int);' 19284do 19285 cat >conftest.$ac_ext <<_ACEOF 19286/* confdefs.h. */ 19287_ACEOF 19288cat confdefs.h >>conftest.$ac_ext 19289cat >>conftest.$ac_ext <<_ACEOF 19290/* end confdefs.h. */ 19291$ac_declaration 19292#include <stdlib.h> 19293int 19294main () 19295{ 19296exit (42); 19297 ; 19298 return 0; 19299} 19300_ACEOF 19301rm -f conftest.$ac_objext 19302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19303 (eval $ac_compile) 2>conftest.er1 19304 ac_status=$? 19305 grep -v '^ *+' conftest.er1 >conftest.err 19306 rm -f conftest.er1 19307 cat conftest.err >&5 19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19309 (exit $ac_status); } && 19310 { ac_try='test -z "$ac_c_werror_flag" 19311 || test ! -s conftest.err' 19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19313 (eval $ac_try) 2>&5 19314 ac_status=$? 19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19316 (exit $ac_status); }; } && 19317 { ac_try='test -s conftest.$ac_objext' 19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19319 (eval $ac_try) 2>&5 19320 ac_status=$? 19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19322 (exit $ac_status); }; }; then 19323 : 19324else 19325 echo "$as_me: failed program was:" >&5 19326sed 's/^/| /' conftest.$ac_ext >&5 19327 19328continue 19329fi 19330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19331 cat >conftest.$ac_ext <<_ACEOF 19332/* confdefs.h. */ 19333_ACEOF 19334cat confdefs.h >>conftest.$ac_ext 19335cat >>conftest.$ac_ext <<_ACEOF 19336/* end confdefs.h. */ 19337$ac_declaration 19338int 19339main () 19340{ 19341exit (42); 19342 ; 19343 return 0; 19344} 19345_ACEOF 19346rm -f conftest.$ac_objext 19347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19348 (eval $ac_compile) 2>conftest.er1 19349 ac_status=$? 19350 grep -v '^ *+' conftest.er1 >conftest.err 19351 rm -f conftest.er1 19352 cat conftest.err >&5 19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19354 (exit $ac_status); } && 19355 { ac_try='test -z "$ac_c_werror_flag" 19356 || test ! -s conftest.err' 19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19358 (eval $ac_try) 2>&5 19359 ac_status=$? 19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19361 (exit $ac_status); }; } && 19362 { ac_try='test -s conftest.$ac_objext' 19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19364 (eval $ac_try) 2>&5 19365 ac_status=$? 19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19367 (exit $ac_status); }; }; then 19368 break 19369else 19370 echo "$as_me: failed program was:" >&5 19371sed 's/^/| /' conftest.$ac_ext >&5 19372 19373fi 19374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19375done 19376rm -f conftest* 19377if test -n "$ac_declaration"; then 19378 echo '#ifdef __cplusplus' >>confdefs.h 19379 echo $ac_declaration >>confdefs.h 19380 echo '#endif' >>confdefs.h 19381fi 19382 19383else 19384 echo "$as_me: failed program was:" >&5 19385sed 's/^/| /' conftest.$ac_ext >&5 19386 19387fi 19388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19389ac_ext=c 19390ac_cpp='$CPP $CPPFLAGS' 19391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19393ac_compiler_gnu=$ac_cv_c_compiler_gnu 19394 19395depcc="$CC" am_compiler_list= 19396 19397echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19398echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19399if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19400 echo $ECHO_N "(cached) $ECHO_C" >&6 19401else 19402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19403 # We make a subdir and do the tests there. Otherwise we can end up 19404 # making bogus files that we don't know about and never remove. For 19405 # instance it was reported that on HP-UX the gcc test will end up 19406 # making a dummy file named `D' -- because `-MD' means `put the output 19407 # in D'. 19408 mkdir conftest.dir 19409 # Copy depcomp to subdir because otherwise we won't find it if we're 19410 # using a relative directory. 19411 cp "$am_depcomp" conftest.dir 19412 cd conftest.dir 19413 # We will build objects and dependencies in a subdirectory because 19414 # it helps to detect inapplicable dependency modes. For instance 19415 # both Tru64's cc and ICC support -MD to output dependencies as a 19416 # side effect of compilation, but ICC will put the dependencies in 19417 # the current directory while Tru64 will put them in the object 19418 # directory. 19419 mkdir sub 19420 19421 am_cv_CC_dependencies_compiler_type=none 19422 if test "$am_compiler_list" = ""; then 19423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19424 fi 19425 for depmode in $am_compiler_list; do 19426 # Setup a source with many dependencies, because some compilers 19427 # like to wrap large dependency lists on column 80 (with \), and 19428 # we should not choose a depcomp mode which is confused by this. 19429 # 19430 # We need to recreate these files for each test, as the compiler may 19431 # overwrite some of them when testing with obscure command lines. 19432 # This happens at least with the AIX C compiler. 19433 : > sub/conftest.c 19434 for i in 1 2 3 4 5 6; do 19435 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19437 # Solaris 8's {/usr,}/bin/sh. 19438 touch sub/conftst$i.h 19439 done 19440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19441 19442 case $depmode in 19443 nosideeffect) 19444 # after this tag, mechanisms are not by side-effect, so they'll 19445 # only be used when explicitly requested 19446 if test "x$enable_dependency_tracking" = xyes; then 19447 continue 19448 else 19449 break 19450 fi 19451 ;; 19452 none) break ;; 19453 esac 19454 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19455 # mode. It turns out that the SunPro C++ compiler does not properly 19456 # handle `-M -o', and we need to detect this. 19457 if depmode=$depmode \ 19458 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19459 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19460 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19461 >/dev/null 2>conftest.err && 19462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19463 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19465 # icc doesn't choke on unknown options, it will just issue warnings 19466 # or remarks (even with -Werror). So we grep stderr for any message 19467 # that says an option was ignored or not supported. 19468 # When given -MP, icc 7.0 and 7.1 complain thusly: 19469 # icc: Command line warning: ignoring option '-M'; no argument required 19470 # The diagnosis changed in icc 8.0: 19471 # icc: Command line remark: option '-MP' not supported 19472 if (grep 'ignoring option' conftest.err || 19473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19474 am_cv_CC_dependencies_compiler_type=$depmode 19475 break 19476 fi 19477 fi 19478 done 19479 19480 cd .. 19481 rm -rf conftest.dir 19482else 19483 am_cv_CC_dependencies_compiler_type=none 19484fi 19485 19486fi 19487echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19488echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 19489CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19490 19491 19492 19493if 19494 test "x$enable_dependency_tracking" != xno \ 19495 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19496 am__fastdepCC_TRUE= 19497 am__fastdepCC_FALSE='#' 19498else 19499 am__fastdepCC_TRUE='#' 19500 am__fastdepCC_FALSE= 19501fi 19502 19503 19504 19505 19506 19507 19508 19509# Check whether --with-xorg-module-dir or --without-xorg-module-dir was given. 19510if test "${with_xorg_module_dir+set}" = set; then 19511 withval="$with_xorg_module_dir" 19512 moduledir="$withval" 19513else 19514 moduledir="$libdir/xorg/modules" 19515fi; 19516 19517 19518 19519# Checks for extensions 19520 19521 SAVE_CFLAGS="$CFLAGS" 19522 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19523 cat >conftest.$ac_ext <<_ACEOF 19524/* confdefs.h. */ 19525_ACEOF 19526cat confdefs.h >>conftest.$ac_ext 19527cat >>conftest.$ac_ext <<_ACEOF 19528/* end confdefs.h. */ 19529 19530#include "xorg-server.h" 19531#if !defined RANDR 19532#error RANDR not defined 19533#endif 19534 19535int 19536main () 19537{ 19538 19539 ; 19540 return 0; 19541} 19542_ACEOF 19543rm -f conftest.$ac_objext 19544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19545 (eval $ac_compile) 2>conftest.er1 19546 ac_status=$? 19547 grep -v '^ *+' conftest.er1 >conftest.err 19548 rm -f conftest.er1 19549 cat conftest.err >&5 19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19551 (exit $ac_status); } && 19552 { ac_try='test -z "$ac_c_werror_flag" 19553 || test ! -s conftest.err' 19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19555 (eval $ac_try) 2>&5 19556 ac_status=$? 19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19558 (exit $ac_status); }; } && 19559 { ac_try='test -s conftest.$ac_objext' 19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19561 (eval $ac_try) 2>&5 19562 ac_status=$? 19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19564 (exit $ac_status); }; }; then 19565 _EXT_CHECK=yes 19566else 19567 echo "$as_me: failed program was:" >&5 19568sed 's/^/| /' conftest.$ac_ext >&5 19569 19570_EXT_CHECK=no 19571fi 19572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19573 CFLAGS="$SAVE_CFLAGS" 19574 echo "$as_me:$LINENO: checking if RANDR is defined" >&5 19575echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6 19576 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19577echo "${ECHO_T}$_EXT_CHECK" >&6 19578 if test "$_EXT_CHECK" != no; then 19579 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19580 fi 19581 19582 19583 SAVE_CFLAGS="$CFLAGS" 19584 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19585 cat >conftest.$ac_ext <<_ACEOF 19586/* confdefs.h. */ 19587_ACEOF 19588cat confdefs.h >>conftest.$ac_ext 19589cat >>conftest.$ac_ext <<_ACEOF 19590/* end confdefs.h. */ 19591 19592#include "xorg-server.h" 19593#if !defined RENDER 19594#error RENDER not defined 19595#endif 19596 19597int 19598main () 19599{ 19600 19601 ; 19602 return 0; 19603} 19604_ACEOF 19605rm -f conftest.$ac_objext 19606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19607 (eval $ac_compile) 2>conftest.er1 19608 ac_status=$? 19609 grep -v '^ *+' conftest.er1 >conftest.err 19610 rm -f conftest.er1 19611 cat conftest.err >&5 19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19613 (exit $ac_status); } && 19614 { ac_try='test -z "$ac_c_werror_flag" 19615 || test ! -s conftest.err' 19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19617 (eval $ac_try) 2>&5 19618 ac_status=$? 19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19620 (exit $ac_status); }; } && 19621 { ac_try='test -s conftest.$ac_objext' 19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19623 (eval $ac_try) 2>&5 19624 ac_status=$? 19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19626 (exit $ac_status); }; }; then 19627 _EXT_CHECK=yes 19628else 19629 echo "$as_me: failed program was:" >&5 19630sed 's/^/| /' conftest.$ac_ext >&5 19631 19632_EXT_CHECK=no 19633fi 19634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19635 CFLAGS="$SAVE_CFLAGS" 19636 echo "$as_me:$LINENO: checking if RENDER is defined" >&5 19637echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6 19638 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19639echo "${ECHO_T}$_EXT_CHECK" >&6 19640 if test "$_EXT_CHECK" != no; then 19641 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19642 fi 19643 19644 19645 SAVE_CFLAGS="$CFLAGS" 19646 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19647 cat >conftest.$ac_ext <<_ACEOF 19648/* confdefs.h. */ 19649_ACEOF 19650cat confdefs.h >>conftest.$ac_ext 19651cat >>conftest.$ac_ext <<_ACEOF 19652/* end confdefs.h. */ 19653 19654#include "xorg-server.h" 19655#if !defined DPMSExtension 19656#error DPMSExtension not defined 19657#endif 19658 19659int 19660main () 19661{ 19662 19663 ; 19664 return 0; 19665} 19666_ACEOF 19667rm -f conftest.$ac_objext 19668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19669 (eval $ac_compile) 2>conftest.er1 19670 ac_status=$? 19671 grep -v '^ *+' conftest.er1 >conftest.err 19672 rm -f conftest.er1 19673 cat conftest.err >&5 19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19675 (exit $ac_status); } && 19676 { ac_try='test -z "$ac_c_werror_flag" 19677 || test ! -s conftest.err' 19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19679 (eval $ac_try) 2>&5 19680 ac_status=$? 19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19682 (exit $ac_status); }; } && 19683 { ac_try='test -s conftest.$ac_objext' 19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19685 (eval $ac_try) 2>&5 19686 ac_status=$? 19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19688 (exit $ac_status); }; }; then 19689 _EXT_CHECK=yes 19690else 19691 echo "$as_me: failed program was:" >&5 19692sed 's/^/| /' conftest.$ac_ext >&5 19693 19694_EXT_CHECK=no 19695fi 19696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19697 CFLAGS="$SAVE_CFLAGS" 19698 echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 19699echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6 19700 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19701echo "${ECHO_T}$_EXT_CHECK" >&6 19702 if test "$_EXT_CHECK" != no; then 19703 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19704 fi 19705 19706 19707# Checks for pkg-config packages 19708 19709 19710if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19711 if test -n "$ac_tool_prefix"; then 19712 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19713set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19714echo "$as_me:$LINENO: checking for $ac_word" >&5 19715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19716if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19717 echo $ECHO_N "(cached) $ECHO_C" >&6 19718else 19719 case $PKG_CONFIG in 19720 [\\/]* | ?:[\\/]*) 19721 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19722 ;; 19723 *) 19724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19725for as_dir in $PATH 19726do 19727 IFS=$as_save_IFS 19728 test -z "$as_dir" && as_dir=. 19729 for ac_exec_ext in '' $ac_executable_extensions; do 19730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19731 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19733 break 2 19734 fi 19735done 19736done 19737 19738 ;; 19739esac 19740fi 19741PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19742 19743if test -n "$PKG_CONFIG"; then 19744 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19745echo "${ECHO_T}$PKG_CONFIG" >&6 19746else 19747 echo "$as_me:$LINENO: result: no" >&5 19748echo "${ECHO_T}no" >&6 19749fi 19750 19751fi 19752if test -z "$ac_cv_path_PKG_CONFIG"; then 19753 ac_pt_PKG_CONFIG=$PKG_CONFIG 19754 # Extract the first word of "pkg-config", so it can be a program name with args. 19755set dummy pkg-config; ac_word=$2 19756echo "$as_me:$LINENO: checking for $ac_word" >&5 19757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19758if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19759 echo $ECHO_N "(cached) $ECHO_C" >&6 19760else 19761 case $ac_pt_PKG_CONFIG in 19762 [\\/]* | ?:[\\/]*) 19763 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19764 ;; 19765 *) 19766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19767for as_dir in $PATH 19768do 19769 IFS=$as_save_IFS 19770 test -z "$as_dir" && as_dir=. 19771 for ac_exec_ext in '' $ac_executable_extensions; do 19772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19773 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19775 break 2 19776 fi 19777done 19778done 19779 19780 ;; 19781esac 19782fi 19783ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19784 19785if test -n "$ac_pt_PKG_CONFIG"; then 19786 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19787echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 19788else 19789 echo "$as_me:$LINENO: result: no" >&5 19790echo "${ECHO_T}no" >&6 19791fi 19792 19793 PKG_CONFIG=$ac_pt_PKG_CONFIG 19794else 19795 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19796fi 19797 19798fi 19799if test -n "$PKG_CONFIG"; then 19800 _pkg_min_version=0.9.0 19801 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19802echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 19803 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19804 echo "$as_me:$LINENO: result: yes" >&5 19805echo "${ECHO_T}yes" >&6 19806 else 19807 echo "$as_me:$LINENO: result: no" >&5 19808echo "${ECHO_T}no" >&6 19809 PKG_CONFIG="" 19810 fi 19811 19812fi 19813 19814pkg_failed=no 19815echo "$as_me:$LINENO: checking for XORG" >&5 19816echo $ECHO_N "checking for XORG... $ECHO_C" >&6 19817 19818if test -n "$PKG_CONFIG"; then 19819 if test -n "$XORG_CFLAGS"; then 19820 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19821 else 19822 if test -n "$PKG_CONFIG" && \ 19823 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 19824 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19825 ac_status=$? 19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19827 (exit $ac_status); }; then 19828 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19829else 19830 pkg_failed=yes 19831fi 19832 fi 19833else 19834 pkg_failed=untried 19835fi 19836if test -n "$PKG_CONFIG"; then 19837 if test -n "$XORG_LIBS"; then 19838 pkg_cv_XORG_LIBS="$XORG_LIBS" 19839 else 19840 if test -n "$PKG_CONFIG" && \ 19841 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 19842 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19843 ac_status=$? 19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19845 (exit $ac_status); }; then 19846 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19847else 19848 pkg_failed=yes 19849fi 19850 fi 19851else 19852 pkg_failed=untried 19853fi 19854 19855 19856 19857if test $pkg_failed = yes; then 19858 19859if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19860 _pkg_short_errors_supported=yes 19861else 19862 _pkg_short_errors_supported=no 19863fi 19864 if test $_pkg_short_errors_supported = yes; then 19865 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"` 19866 else 19867 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"` 19868 fi 19869 # Put the nasty error message in config.log where it belongs 19870 echo "$XORG_PKG_ERRORS" >&5 19871 19872 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19873 19874$XORG_PKG_ERRORS 19875 19876Consider adjusting the PKG_CONFIG_PATH environment variable if you 19877installed software in a non-standard prefix. 19878 19879Alternatively, you may set the environment variables XORG_CFLAGS 19880and XORG_LIBS to avoid the need to call pkg-config. 19881See the pkg-config man page for more details. 19882" >&5 19883echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19884 19885$XORG_PKG_ERRORS 19886 19887Consider adjusting the PKG_CONFIG_PATH environment variable if you 19888installed software in a non-standard prefix. 19889 19890Alternatively, you may set the environment variables XORG_CFLAGS 19891and XORG_LIBS to avoid the need to call pkg-config. 19892See the pkg-config man page for more details. 19893" >&2;} 19894 { (exit 1); exit 1; }; } 19895elif test $pkg_failed = untried; then 19896 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19897is in your PATH or set the PKG_CONFIG environment variable to the full 19898path to pkg-config. 19899 19900Alternatively, you may set the environment variables XORG_CFLAGS 19901and XORG_LIBS to avoid the need to call pkg-config. 19902See the pkg-config man page for more details. 19903 19904To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19905See \`config.log' for more details." >&5 19906echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19907is in your PATH or set the PKG_CONFIG environment variable to the full 19908path to pkg-config. 19909 19910Alternatively, you may set the environment variables XORG_CFLAGS 19911and XORG_LIBS to avoid the need to call pkg-config. 19912See the pkg-config man page for more details. 19913 19914To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19915See \`config.log' for more details." >&2;} 19916 { (exit 1); exit 1; }; } 19917else 19918 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19919 XORG_LIBS=$pkg_cv_XORG_LIBS 19920 echo "$as_me:$LINENO: result: yes" >&5 19921echo "${ECHO_T}yes" >&6 19922 : 19923fi 19924sdkdir=$(pkg-config --variable=sdkdir xorg-server) 19925 19926CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src' 19927INCLUDES="$XORG_INCS -I${sdkdir} "'-I$(top_srcdir)/src -I$(prefix)/include' 19928 19929 19930 19931# Checks for libraries. 19932 19933# Checks for header files. 19934echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19935echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19936if test "${ac_cv_header_stdc+set}" = set; then 19937 echo $ECHO_N "(cached) $ECHO_C" >&6 19938else 19939 cat >conftest.$ac_ext <<_ACEOF 19940/* confdefs.h. */ 19941_ACEOF 19942cat confdefs.h >>conftest.$ac_ext 19943cat >>conftest.$ac_ext <<_ACEOF 19944/* end confdefs.h. */ 19945#include <stdlib.h> 19946#include <stdarg.h> 19947#include <string.h> 19948#include <float.h> 19949 19950int 19951main () 19952{ 19953 19954 ; 19955 return 0; 19956} 19957_ACEOF 19958rm -f conftest.$ac_objext 19959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19960 (eval $ac_compile) 2>conftest.er1 19961 ac_status=$? 19962 grep -v '^ *+' conftest.er1 >conftest.err 19963 rm -f conftest.er1 19964 cat conftest.err >&5 19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19966 (exit $ac_status); } && 19967 { ac_try='test -z "$ac_c_werror_flag" 19968 || test ! -s conftest.err' 19969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19970 (eval $ac_try) 2>&5 19971 ac_status=$? 19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19973 (exit $ac_status); }; } && 19974 { ac_try='test -s conftest.$ac_objext' 19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19976 (eval $ac_try) 2>&5 19977 ac_status=$? 19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19979 (exit $ac_status); }; }; then 19980 ac_cv_header_stdc=yes 19981else 19982 echo "$as_me: failed program was:" >&5 19983sed 's/^/| /' conftest.$ac_ext >&5 19984 19985ac_cv_header_stdc=no 19986fi 19987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19988 19989if test $ac_cv_header_stdc = yes; then 19990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19991 cat >conftest.$ac_ext <<_ACEOF 19992/* confdefs.h. */ 19993_ACEOF 19994cat confdefs.h >>conftest.$ac_ext 19995cat >>conftest.$ac_ext <<_ACEOF 19996/* end confdefs.h. */ 19997#include <string.h> 19998 19999_ACEOF 20000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20001 $EGREP "memchr" >/dev/null 2>&1; then 20002 : 20003else 20004 ac_cv_header_stdc=no 20005fi 20006rm -f conftest* 20007 20008fi 20009 20010if test $ac_cv_header_stdc = yes; then 20011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20012 cat >conftest.$ac_ext <<_ACEOF 20013/* confdefs.h. */ 20014_ACEOF 20015cat confdefs.h >>conftest.$ac_ext 20016cat >>conftest.$ac_ext <<_ACEOF 20017/* end confdefs.h. */ 20018#include <stdlib.h> 20019 20020_ACEOF 20021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20022 $EGREP "free" >/dev/null 2>&1; then 20023 : 20024else 20025 ac_cv_header_stdc=no 20026fi 20027rm -f conftest* 20028 20029fi 20030 20031if test $ac_cv_header_stdc = yes; then 20032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20033 if test "$cross_compiling" = yes; then 20034 : 20035else 20036 cat >conftest.$ac_ext <<_ACEOF 20037/* confdefs.h. */ 20038_ACEOF 20039cat confdefs.h >>conftest.$ac_ext 20040cat >>conftest.$ac_ext <<_ACEOF 20041/* end confdefs.h. */ 20042#include <ctype.h> 20043#if ((' ' & 0x0FF) == 0x020) 20044# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20045# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20046#else 20047# define ISLOWER(c) \ 20048 (('a' <= (c) && (c) <= 'i') \ 20049 || ('j' <= (c) && (c) <= 'r') \ 20050 || ('s' <= (c) && (c) <= 'z')) 20051# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20052#endif 20053 20054#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20055int 20056main () 20057{ 20058 int i; 20059 for (i = 0; i < 256; i++) 20060 if (XOR (islower (i), ISLOWER (i)) 20061 || toupper (i) != TOUPPER (i)) 20062 exit(2); 20063 exit (0); 20064} 20065_ACEOF 20066rm -f conftest$ac_exeext 20067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20068 (eval $ac_link) 2>&5 20069 ac_status=$? 20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20073 (eval $ac_try) 2>&5 20074 ac_status=$? 20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20076 (exit $ac_status); }; }; then 20077 : 20078else 20079 echo "$as_me: program exited with status $ac_status" >&5 20080echo "$as_me: failed program was:" >&5 20081sed 's/^/| /' conftest.$ac_ext >&5 20082 20083( exit $ac_status ) 20084ac_cv_header_stdc=no 20085fi 20086rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20087fi 20088fi 20089fi 20090echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20091echo "${ECHO_T}$ac_cv_header_stdc" >&6 20092if test $ac_cv_header_stdc = yes; then 20093 20094cat >>confdefs.h <<\_ACEOF 20095#define STDC_HEADERS 1 20096_ACEOF 20097 20098fi 20099 20100 20101DRIVER_NAME=vesa 20102 20103 20104 20105 20106 20107if test x$APP_MAN_SUFFIX = x ; then 20108 APP_MAN_SUFFIX=1 20109fi 20110if test x$APP_MAN_DIR = x ; then 20111 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20112fi 20113 20114if test x$LIB_MAN_SUFFIX = x ; then 20115 LIB_MAN_SUFFIX=3 20116fi 20117if test x$LIB_MAN_DIR = x ; then 20118 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20119fi 20120 20121if test x$FILE_MAN_SUFFIX = x ; then 20122 case $host_os in 20123 solaris*) FILE_MAN_SUFFIX=4 ;; 20124 *) FILE_MAN_SUFFIX=5 ;; 20125 esac 20126fi 20127if test x$FILE_MAN_DIR = x ; then 20128 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20129fi 20130 20131if test x$MISC_MAN_SUFFIX = x ; then 20132 case $host_os in 20133 solaris*) MISC_MAN_SUFFIX=5 ;; 20134 *) MISC_MAN_SUFFIX=7 ;; 20135 esac 20136fi 20137if test x$MISC_MAN_DIR = x ; then 20138 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20139fi 20140 20141if test x$DRIVER_MAN_SUFFIX = x ; then 20142 case $host_os in 20143 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20144 *) DRIVER_MAN_SUFFIX=4 ;; 20145 esac 20146fi 20147if test x$DRIVER_MAN_DIR = x ; then 20148 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20149fi 20150 20151if test x$ADMIN_MAN_SUFFIX = x ; then 20152 case $host_os in 20153 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20154 *) ADMIN_MAN_SUFFIX=8 ;; 20155 esac 20156fi 20157if test x$ADMIN_MAN_DIR = x ; then 20158 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20159fi 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 20170 20171 20172 20173 20174 20175 20176 20177# Check whether --with-release-version or --without-release-version was given. 20178if test "${with_release_version+set}" = set; then 20179 withval="$with_release_version" 20180 RELEASE_VERSION="$withval" 20181else 20182 RELEASE_VERSION="" 20183fi; 20184 if test "x$RELEASE_VERSION" != "x"; then 20185 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20186 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20187 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20188echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20189 fi 20190 20191 20192 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20193cat >confcache <<\_ACEOF 20194# This file is a shell script that caches the results of configure 20195# tests run on this system so they can be shared between configure 20196# scripts and configure runs, see configure's option --config-cache. 20197# It is not useful on other systems. If it contains results you don't 20198# want to keep, you may remove or edit it. 20199# 20200# config.status only pays attention to the cache file if you give it 20201# the --recheck option to rerun configure. 20202# 20203# `ac_cv_env_foo' variables (set or unset) will be overridden when 20204# loading this file, other *unset* `ac_cv_foo' will be assigned the 20205# following values. 20206 20207_ACEOF 20208 20209# The following way of writing the cache mishandles newlines in values, 20210# but we know of no workaround that is simple, portable, and efficient. 20211# So, don't put newlines in cache variables' values. 20212# Ultrix sh set writes to stderr and can't be redirected directly, 20213# and sets the high bit in the cache file unless we assign to the vars. 20214{ 20215 (set) 2>&1 | 20216 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20217 *ac_space=\ *) 20218 # `set' does not quote correctly, so add quotes (double-quote 20219 # substitution turns \\\\ into \\, and sed turns \\ into \). 20220 sed -n \ 20221 "s/'/'\\\\''/g; 20222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20223 ;; 20224 *) 20225 # `set' quotes correctly as required by POSIX, so do not add quotes. 20226 sed -n \ 20227 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20228 ;; 20229 esac; 20230} | 20231 sed ' 20232 t clear 20233 : clear 20234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20235 t end 20236 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20237 : end' >>confcache 20238if diff $cache_file confcache >/dev/null 2>&1; then :; else 20239 if test -w $cache_file; then 20240 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20241 cat confcache >$cache_file 20242 else 20243 echo "not updating unwritable cache $cache_file" 20244 fi 20245fi 20246rm -f confcache 20247 20248test "x$prefix" = xNONE && prefix=$ac_default_prefix 20249# Let make expand exec_prefix. 20250test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20251 20252# VPATH may cause trouble with some makes, so we remove $(srcdir), 20253# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20254# trailing colons and then remove the whole line if VPATH becomes empty 20255# (actually we leave an empty line to preserve line numbers). 20256if test "x$srcdir" = x.; then 20257 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20258s/:*\$(srcdir):*/:/; 20259s/:*\${srcdir}:*/:/; 20260s/:*@srcdir@:*/:/; 20261s/^\([^=]*=[ ]*\):*/\1/; 20262s/:*$//; 20263s/^[^=]*=[ ]*$//; 20264}' 20265fi 20266 20267DEFS=-DHAVE_CONFIG_H 20268 20269ac_libobjs= 20270ac_ltlibobjs= 20271for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20272 # 1. Remove the extension, and $U if already installed. 20273 ac_i=`echo "$ac_i" | 20274 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20275 # 2. Add them. 20276 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20277 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20278done 20279LIBOBJS=$ac_libobjs 20280 20281LTLIBOBJS=$ac_ltlibobjs 20282 20283 20284if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20285 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20286Usually this means the macro was only invoked conditionally." >&5 20287echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20288Usually this means the macro was only invoked conditionally." >&2;} 20289 { (exit 1); exit 1; }; } 20290fi 20291if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20292 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20293Usually this means the macro was only invoked conditionally." >&5 20294echo "$as_me: error: conditional \"AMDEP\" was never defined. 20295Usually this means the macro was only invoked conditionally." >&2;} 20296 { (exit 1); exit 1; }; } 20297fi 20298if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20299 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20300Usually this means the macro was only invoked conditionally." >&5 20301echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20302Usually this means the macro was only invoked conditionally." >&2;} 20303 { (exit 1); exit 1; }; } 20304fi 20305if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20306 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20307Usually this means the macro was only invoked conditionally." >&5 20308echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20309Usually this means the macro was only invoked conditionally." >&2;} 20310 { (exit 1); exit 1; }; } 20311fi 20312if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20313 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20314Usually this means the macro was only invoked conditionally." >&5 20315echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20316Usually this means the macro was only invoked conditionally." >&2;} 20317 { (exit 1); exit 1; }; } 20318fi 20319 20320: ${CONFIG_STATUS=./config.status} 20321ac_clean_files_save=$ac_clean_files 20322ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20323{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20324echo "$as_me: creating $CONFIG_STATUS" >&6;} 20325cat >$CONFIG_STATUS <<_ACEOF 20326#! $SHELL 20327# Generated by $as_me. 20328# Run this file to recreate the current configuration. 20329# Compiler output produced by configure, useful for debugging 20330# configure, is in config.log if it exists. 20331 20332debug=false 20333ac_cs_recheck=false 20334ac_cs_silent=false 20335SHELL=\${CONFIG_SHELL-$SHELL} 20336_ACEOF 20337 20338cat >>$CONFIG_STATUS <<\_ACEOF 20339## --------------------- ## 20340## M4sh Initialization. ## 20341## --------------------- ## 20342 20343# Be Bourne compatible 20344if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20345 emulate sh 20346 NULLCMD=: 20347 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20348 # is contrary to our usage. Disable this feature. 20349 alias -g '${1+"$@"}'='"$@"' 20350elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20351 set -o posix 20352fi 20353DUALCASE=1; export DUALCASE # for MKS sh 20354 20355# Support unset when possible. 20356if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20357 as_unset=unset 20358else 20359 as_unset=false 20360fi 20361 20362 20363# Work around bugs in pre-3.0 UWIN ksh. 20364$as_unset ENV MAIL MAILPATH 20365PS1='$ ' 20366PS2='> ' 20367PS4='+ ' 20368 20369# NLS nuisances. 20370for as_var in \ 20371 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20372 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20373 LC_TELEPHONE LC_TIME 20374do 20375 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20376 eval $as_var=C; export $as_var 20377 else 20378 $as_unset $as_var 20379 fi 20380done 20381 20382# Required to use basename. 20383if expr a : '\(a\)' >/dev/null 2>&1; then 20384 as_expr=expr 20385else 20386 as_expr=false 20387fi 20388 20389if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20390 as_basename=basename 20391else 20392 as_basename=false 20393fi 20394 20395 20396# Name of the executable. 20397as_me=`$as_basename "$0" || 20398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20399 X"$0" : 'X\(//\)$' \| \ 20400 X"$0" : 'X\(/\)$' \| \ 20401 . : '\(.\)' 2>/dev/null || 20402echo X/"$0" | 20403 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20404 /^X\/\(\/\/\)$/{ s//\1/; q; } 20405 /^X\/\(\/\).*/{ s//\1/; q; } 20406 s/.*/./; q'` 20407 20408 20409# PATH needs CR, and LINENO needs CR and PATH. 20410# Avoid depending upon Character Ranges. 20411as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20412as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20413as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20414as_cr_digits='0123456789' 20415as_cr_alnum=$as_cr_Letters$as_cr_digits 20416 20417# The user is always right. 20418if test "${PATH_SEPARATOR+set}" != set; then 20419 echo "#! /bin/sh" >conf$$.sh 20420 echo "exit 0" >>conf$$.sh 20421 chmod +x conf$$.sh 20422 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20423 PATH_SEPARATOR=';' 20424 else 20425 PATH_SEPARATOR=: 20426 fi 20427 rm -f conf$$.sh 20428fi 20429 20430 20431 as_lineno_1=$LINENO 20432 as_lineno_2=$LINENO 20433 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20434 test "x$as_lineno_1" != "x$as_lineno_2" && 20435 test "x$as_lineno_3" = "x$as_lineno_2" || { 20436 # Find who we are. Look in the path if we contain no path at all 20437 # relative or not. 20438 case $0 in 20439 *[\\/]* ) as_myself=$0 ;; 20440 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20441for as_dir in $PATH 20442do 20443 IFS=$as_save_IFS 20444 test -z "$as_dir" && as_dir=. 20445 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20446done 20447 20448 ;; 20449 esac 20450 # We did not find ourselves, most probably we were run as `sh COMMAND' 20451 # in which case we are not to be found in the path. 20452 if test "x$as_myself" = x; then 20453 as_myself=$0 20454 fi 20455 if test ! -f "$as_myself"; then 20456 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20457echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20458 { (exit 1); exit 1; }; } 20459 fi 20460 case $CONFIG_SHELL in 20461 '') 20462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20463for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20464do 20465 IFS=$as_save_IFS 20466 test -z "$as_dir" && as_dir=. 20467 for as_base in sh bash ksh sh5; do 20468 case $as_dir in 20469 /*) 20470 if ("$as_dir/$as_base" -c ' 20471 as_lineno_1=$LINENO 20472 as_lineno_2=$LINENO 20473 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20474 test "x$as_lineno_1" != "x$as_lineno_2" && 20475 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20476 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20477 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20478 CONFIG_SHELL=$as_dir/$as_base 20479 export CONFIG_SHELL 20480 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20481 fi;; 20482 esac 20483 done 20484done 20485;; 20486 esac 20487 20488 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20489 # uniformly replaced by the line number. The first 'sed' inserts a 20490 # line-number line before each line; the second 'sed' does the real 20491 # work. The second script uses 'N' to pair each line-number line 20492 # with the numbered line, and appends trailing '-' during 20493 # substitution so that $LINENO is not a special case at line end. 20494 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20495 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20496 sed '=' <$as_myself | 20497 sed ' 20498 N 20499 s,$,-, 20500 : loop 20501 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20502 t loop 20503 s,-$,, 20504 s,^['$as_cr_digits']*\n,, 20505 ' >$as_me.lineno && 20506 chmod +x $as_me.lineno || 20507 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20508echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20509 { (exit 1); exit 1; }; } 20510 20511 # Don't try to exec as it changes $[0], causing all sort of problems 20512 # (the dirname of $[0] is not the place where we might find the 20513 # original and so on. Autoconf is especially sensible to this). 20514 . ./$as_me.lineno 20515 # Exit status is that of the last command. 20516 exit 20517} 20518 20519 20520case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20521 *c*,-n*) ECHO_N= ECHO_C=' 20522' ECHO_T=' ' ;; 20523 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20524 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20525esac 20526 20527if expr a : '\(a\)' >/dev/null 2>&1; then 20528 as_expr=expr 20529else 20530 as_expr=false 20531fi 20532 20533rm -f conf$$ conf$$.exe conf$$.file 20534echo >conf$$.file 20535if ln -s conf$$.file conf$$ 2>/dev/null; then 20536 # We could just check for DJGPP; but this test a) works b) is more generic 20537 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20538 if test -f conf$$.exe; then 20539 # Don't use ln at all; we don't have any links 20540 as_ln_s='cp -p' 20541 else 20542 as_ln_s='ln -s' 20543 fi 20544elif ln conf$$.file conf$$ 2>/dev/null; then 20545 as_ln_s=ln 20546else 20547 as_ln_s='cp -p' 20548fi 20549rm -f conf$$ conf$$.exe conf$$.file 20550 20551if mkdir -p . 2>/dev/null; then 20552 as_mkdir_p=: 20553else 20554 test -d ./-p && rmdir ./-p 20555 as_mkdir_p=false 20556fi 20557 20558as_executable_p="test -f" 20559 20560# Sed expression to map a string onto a valid CPP name. 20561as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20562 20563# Sed expression to map a string onto a valid variable name. 20564as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20565 20566 20567# IFS 20568# We need space, tab and new line, in precisely that order. 20569as_nl=' 20570' 20571IFS=" $as_nl" 20572 20573# CDPATH. 20574$as_unset CDPATH 20575 20576exec 6>&1 20577 20578# Open the log real soon, to keep \$[0] and so on meaningful, and to 20579# report actual input values of CONFIG_FILES etc. instead of their 20580# values after options handling. Logging --version etc. is OK. 20581exec 5>>config.log 20582{ 20583 echo 20584 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20585## Running $as_me. ## 20586_ASBOX 20587} >&5 20588cat >&5 <<_CSEOF 20589 20590This file was extended by xf86-video-vesa $as_me 1.3.0, which was 20591generated by GNU Autoconf 2.59. Invocation command line was 20592 20593 CONFIG_FILES = $CONFIG_FILES 20594 CONFIG_HEADERS = $CONFIG_HEADERS 20595 CONFIG_LINKS = $CONFIG_LINKS 20596 CONFIG_COMMANDS = $CONFIG_COMMANDS 20597 $ $0 $@ 20598 20599_CSEOF 20600echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20601echo >&5 20602_ACEOF 20603 20604# Files that config.status was made for. 20605if test -n "$ac_config_files"; then 20606 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20607fi 20608 20609if test -n "$ac_config_headers"; then 20610 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20611fi 20612 20613if test -n "$ac_config_links"; then 20614 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20615fi 20616 20617if test -n "$ac_config_commands"; then 20618 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20619fi 20620 20621cat >>$CONFIG_STATUS <<\_ACEOF 20622 20623ac_cs_usage="\ 20624\`$as_me' instantiates files from templates according to the 20625current configuration. 20626 20627Usage: $0 [OPTIONS] [FILE]... 20628 20629 -h, --help print this help, then exit 20630 -V, --version print version number, then exit 20631 -q, --quiet do not print progress messages 20632 -d, --debug don't remove temporary files 20633 --recheck update $as_me by reconfiguring in the same conditions 20634 --file=FILE[:TEMPLATE] 20635 instantiate the configuration file FILE 20636 --header=FILE[:TEMPLATE] 20637 instantiate the configuration header FILE 20638 20639Configuration files: 20640$config_files 20641 20642Configuration headers: 20643$config_headers 20644 20645Configuration commands: 20646$config_commands 20647 20648Report bugs to <bug-autoconf@gnu.org>." 20649_ACEOF 20650 20651cat >>$CONFIG_STATUS <<_ACEOF 20652ac_cs_version="\\ 20653xf86-video-vesa config.status 1.3.0 20654configured by $0, generated by GNU Autoconf 2.59, 20655 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20656 20657Copyright (C) 2003 Free Software Foundation, Inc. 20658This config.status script is free software; the Free Software Foundation 20659gives unlimited permission to copy, distribute and modify it." 20660srcdir=$srcdir 20661INSTALL="$INSTALL" 20662_ACEOF 20663 20664cat >>$CONFIG_STATUS <<\_ACEOF 20665# If no file are specified by the user, then we need to provide default 20666# value. By we need to know if files were specified by the user. 20667ac_need_defaults=: 20668while test $# != 0 20669do 20670 case $1 in 20671 --*=*) 20672 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20673 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20674 ac_shift=: 20675 ;; 20676 -*) 20677 ac_option=$1 20678 ac_optarg=$2 20679 ac_shift=shift 20680 ;; 20681 *) # This is not an option, so the user has probably given explicit 20682 # arguments. 20683 ac_option=$1 20684 ac_need_defaults=false;; 20685 esac 20686 20687 case $ac_option in 20688 # Handling of the options. 20689_ACEOF 20690cat >>$CONFIG_STATUS <<\_ACEOF 20691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20692 ac_cs_recheck=: ;; 20693 --version | --vers* | -V ) 20694 echo "$ac_cs_version"; exit 0 ;; 20695 --he | --h) 20696 # Conflict between --help and --header 20697 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20698Try \`$0 --help' for more information." >&5 20699echo "$as_me: error: ambiguous option: $1 20700Try \`$0 --help' for more information." >&2;} 20701 { (exit 1); exit 1; }; };; 20702 --help | --hel | -h ) 20703 echo "$ac_cs_usage"; exit 0 ;; 20704 --debug | --d* | -d ) 20705 debug=: ;; 20706 --file | --fil | --fi | --f ) 20707 $ac_shift 20708 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20709 ac_need_defaults=false;; 20710 --header | --heade | --head | --hea ) 20711 $ac_shift 20712 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20713 ac_need_defaults=false;; 20714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20715 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20716 ac_cs_silent=: ;; 20717 20718 # This is an error. 20719 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20720Try \`$0 --help' for more information." >&5 20721echo "$as_me: error: unrecognized option: $1 20722Try \`$0 --help' for more information." >&2;} 20723 { (exit 1); exit 1; }; } ;; 20724 20725 *) ac_config_targets="$ac_config_targets $1" ;; 20726 20727 esac 20728 shift 20729done 20730 20731ac_configure_extra_args= 20732 20733if $ac_cs_silent; then 20734 exec 6>/dev/null 20735 ac_configure_extra_args="$ac_configure_extra_args --silent" 20736fi 20737 20738_ACEOF 20739cat >>$CONFIG_STATUS <<_ACEOF 20740if \$ac_cs_recheck; then 20741 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20742 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20743fi 20744 20745_ACEOF 20746 20747cat >>$CONFIG_STATUS <<_ACEOF 20748# 20749# INIT-COMMANDS section. 20750# 20751 20752AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20753 20754_ACEOF 20755 20756 20757 20758cat >>$CONFIG_STATUS <<\_ACEOF 20759for ac_config_target in $ac_config_targets 20760do 20761 case "$ac_config_target" in 20762 # Handling of arguments. 20763 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20764 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20765 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20766 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20767 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20769echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20770 { (exit 1); exit 1; }; };; 20771 esac 20772done 20773 20774# If the user did not use the arguments to specify the items to instantiate, 20775# then the envvar interface is used. Set only those that are not. 20776# We use the long form for the default assignment because of an extremely 20777# bizarre bug on SunOS 4.1.3. 20778if $ac_need_defaults; then 20779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20782fi 20783 20784# Have a temporary directory for convenience. Make it in the build tree 20785# simply because there is no reason to put it here, and in addition, 20786# creating and moving files from /tmp can sometimes cause problems. 20787# Create a temporary directory, and hook for its removal unless debugging. 20788$debug || 20789{ 20790 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20791 trap '{ (exit 1); exit 1; }' 1 2 13 15 20792} 20793 20794# Create a (secure) tmp directory for tmp files. 20795 20796{ 20797 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20798 test -n "$tmp" && test -d "$tmp" 20799} || 20800{ 20801 tmp=./confstat$$-$RANDOM 20802 (umask 077 && mkdir $tmp) 20803} || 20804{ 20805 echo "$me: cannot create a temporary directory in ." >&2 20806 { (exit 1); exit 1; } 20807} 20808 20809_ACEOF 20810 20811cat >>$CONFIG_STATUS <<_ACEOF 20812 20813# 20814# CONFIG_FILES section. 20815# 20816 20817# No need to generate the scripts if there are no CONFIG_FILES. 20818# This happens for instance when ./config.status config.h 20819if test -n "\$CONFIG_FILES"; then 20820 # Protect against being on the right side of a sed subst in config.status. 20821 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20822 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20823s,@SHELL@,$SHELL,;t t 20824s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20825s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20826s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20827s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20828s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20829s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20830s,@exec_prefix@,$exec_prefix,;t t 20831s,@prefix@,$prefix,;t t 20832s,@program_transform_name@,$program_transform_name,;t t 20833s,@bindir@,$bindir,;t t 20834s,@sbindir@,$sbindir,;t t 20835s,@libexecdir@,$libexecdir,;t t 20836s,@datadir@,$datadir,;t t 20837s,@sysconfdir@,$sysconfdir,;t t 20838s,@sharedstatedir@,$sharedstatedir,;t t 20839s,@localstatedir@,$localstatedir,;t t 20840s,@libdir@,$libdir,;t t 20841s,@includedir@,$includedir,;t t 20842s,@oldincludedir@,$oldincludedir,;t t 20843s,@infodir@,$infodir,;t t 20844s,@mandir@,$mandir,;t t 20845s,@build_alias@,$build_alias,;t t 20846s,@host_alias@,$host_alias,;t t 20847s,@target_alias@,$target_alias,;t t 20848s,@DEFS@,$DEFS,;t t 20849s,@ECHO_C@,$ECHO_C,;t t 20850s,@ECHO_N@,$ECHO_N,;t t 20851s,@ECHO_T@,$ECHO_T,;t t 20852s,@LIBS@,$LIBS,;t t 20853s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20854s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20855s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20856s,@CYGPATH_W@,$CYGPATH_W,;t t 20857s,@PACKAGE@,$PACKAGE,;t t 20858s,@VERSION@,$VERSION,;t t 20859s,@ACLOCAL@,$ACLOCAL,;t t 20860s,@AUTOCONF@,$AUTOCONF,;t t 20861s,@AUTOMAKE@,$AUTOMAKE,;t t 20862s,@AUTOHEADER@,$AUTOHEADER,;t t 20863s,@MAKEINFO@,$MAKEINFO,;t t 20864s,@install_sh@,$install_sh,;t t 20865s,@STRIP@,$STRIP,;t t 20866s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20867s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 20868s,@mkdir_p@,$mkdir_p,;t t 20869s,@AWK@,$AWK,;t t 20870s,@SET_MAKE@,$SET_MAKE,;t t 20871s,@am__leading_dot@,$am__leading_dot,;t t 20872s,@AMTAR@,$AMTAR,;t t 20873s,@am__tar@,$am__tar,;t t 20874s,@am__untar@,$am__untar,;t t 20875s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 20876s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 20877s,@MAINT@,$MAINT,;t t 20878s,@build@,$build,;t t 20879s,@build_cpu@,$build_cpu,;t t 20880s,@build_vendor@,$build_vendor,;t t 20881s,@build_os@,$build_os,;t t 20882s,@host@,$host,;t t 20883s,@host_cpu@,$host_cpu,;t t 20884s,@host_vendor@,$host_vendor,;t t 20885s,@host_os@,$host_os,;t t 20886s,@CC@,$CC,;t t 20887s,@CFLAGS@,$CFLAGS,;t t 20888s,@LDFLAGS@,$LDFLAGS,;t t 20889s,@CPPFLAGS@,$CPPFLAGS,;t t 20890s,@ac_ct_CC@,$ac_ct_CC,;t t 20891s,@EXEEXT@,$EXEEXT,;t t 20892s,@OBJEXT@,$OBJEXT,;t t 20893s,@DEPDIR@,$DEPDIR,;t t 20894s,@am__include@,$am__include,;t t 20895s,@am__quote@,$am__quote,;t t 20896s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 20897s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 20898s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 20899s,@CCDEPMODE@,$CCDEPMODE,;t t 20900s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 20901s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 20902s,@SED@,$SED,;t t 20903s,@EGREP@,$EGREP,;t t 20904s,@LN_S@,$LN_S,;t t 20905s,@ECHO@,$ECHO,;t t 20906s,@AR@,$AR,;t t 20907s,@ac_ct_AR@,$ac_ct_AR,;t t 20908s,@RANLIB@,$RANLIB,;t t 20909s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20910s,@CPP@,$CPP,;t t 20911s,@CXX@,$CXX,;t t 20912s,@CXXFLAGS@,$CXXFLAGS,;t t 20913s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20914s,@CXXDEPMODE@,$CXXDEPMODE,;t t 20915s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 20916s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 20917s,@CXXCPP@,$CXXCPP,;t t 20918s,@F77@,$F77,;t t 20919s,@FFLAGS@,$FFLAGS,;t t 20920s,@ac_ct_F77@,$ac_ct_F77,;t t 20921s,@LIBTOOL@,$LIBTOOL,;t t 20922s,@moduledir@,$moduledir,;t t 20923s,@PKG_CONFIG@,$PKG_CONFIG,;t t 20924s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 20925s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t 20926s,@XORG_LIBS@,$XORG_LIBS,;t t 20927s,@INCLUDES@,$INCLUDES,;t t 20928s,@DRIVER_NAME@,$DRIVER_NAME,;t t 20929s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t 20930s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t 20931s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t 20932s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t 20933s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t 20934s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t 20935s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t 20936s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t 20937s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t 20938s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t 20939s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t 20940s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t 20941s,@LIBOBJS@,$LIBOBJS,;t t 20942s,@LTLIBOBJS@,$LTLIBOBJS,;t t 20943CEOF 20944 20945_ACEOF 20946 20947 cat >>$CONFIG_STATUS <<\_ACEOF 20948 # Split the substitutions into bite-sized pieces for seds with 20949 # small command number limits, like on Digital OSF/1 and HP-UX. 20950 ac_max_sed_lines=48 20951 ac_sed_frag=1 # Number of current file. 20952 ac_beg=1 # First line for current file. 20953 ac_end=$ac_max_sed_lines # Line after last line for current file. 20954 ac_more_lines=: 20955 ac_sed_cmds= 20956 while $ac_more_lines; do 20957 if test $ac_beg -gt 1; then 20958 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20959 else 20960 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20961 fi 20962 if test ! -s $tmp/subs.frag; then 20963 ac_more_lines=false 20964 else 20965 # The purpose of the label and of the branching condition is to 20966 # speed up the sed processing (if there are no `@' at all, there 20967 # is no need to browse any of the substitutions). 20968 # These are the two extra sed commands mentioned above. 20969 (echo ':t 20970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20971 if test -z "$ac_sed_cmds"; then 20972 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20973 else 20974 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20975 fi 20976 ac_sed_frag=`expr $ac_sed_frag + 1` 20977 ac_beg=$ac_end 20978 ac_end=`expr $ac_end + $ac_max_sed_lines` 20979 fi 20980 done 20981 if test -z "$ac_sed_cmds"; then 20982 ac_sed_cmds=cat 20983 fi 20984fi # test -n "$CONFIG_FILES" 20985 20986_ACEOF 20987cat >>$CONFIG_STATUS <<\_ACEOF 20988for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20990 case $ac_file in 20991 - | *:- | *:-:* ) # input from stdin 20992 cat >$tmp/stdin 20993 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20995 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20996 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20997 * ) ac_file_in=$ac_file.in ;; 20998 esac 20999 21000 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 21001 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21002$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21003 X"$ac_file" : 'X\(//\)[^/]' \| \ 21004 X"$ac_file" : 'X\(//\)$' \| \ 21005 X"$ac_file" : 'X\(/\)' \| \ 21006 . : '\(.\)' 2>/dev/null || 21007echo X"$ac_file" | 21008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21009 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21010 /^X\(\/\/\)$/{ s//\1/; q; } 21011 /^X\(\/\).*/{ s//\1/; q; } 21012 s/.*/./; q'` 21013 { if $as_mkdir_p; then 21014 mkdir -p "$ac_dir" 21015 else 21016 as_dir="$ac_dir" 21017 as_dirs= 21018 while test ! -d "$as_dir"; do 21019 as_dirs="$as_dir $as_dirs" 21020 as_dir=`(dirname "$as_dir") 2>/dev/null || 21021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21022 X"$as_dir" : 'X\(//\)[^/]' \| \ 21023 X"$as_dir" : 'X\(//\)$' \| \ 21024 X"$as_dir" : 'X\(/\)' \| \ 21025 . : '\(.\)' 2>/dev/null || 21026echo X"$as_dir" | 21027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21028 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21029 /^X\(\/\/\)$/{ s//\1/; q; } 21030 /^X\(\/\).*/{ s//\1/; q; } 21031 s/.*/./; q'` 21032 done 21033 test ! -n "$as_dirs" || mkdir $as_dirs 21034 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21035echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21036 { (exit 1); exit 1; }; }; } 21037 21038 ac_builddir=. 21039 21040if test "$ac_dir" != .; then 21041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21042 # A "../" for each directory in $ac_dir_suffix. 21043 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21044else 21045 ac_dir_suffix= ac_top_builddir= 21046fi 21047 21048case $srcdir in 21049 .) # No --srcdir option. We are building in place. 21050 ac_srcdir=. 21051 if test -z "$ac_top_builddir"; then 21052 ac_top_srcdir=. 21053 else 21054 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21055 fi ;; 21056 [\\/]* | ?:[\\/]* ) # Absolute path. 21057 ac_srcdir=$srcdir$ac_dir_suffix; 21058 ac_top_srcdir=$srcdir ;; 21059 *) # Relative path. 21060 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21061 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21062esac 21063 21064# Do not use `cd foo && pwd` to compute absolute paths, because 21065# the directories may not exist. 21066case `pwd` in 21067.) ac_abs_builddir="$ac_dir";; 21068*) 21069 case "$ac_dir" in 21070 .) ac_abs_builddir=`pwd`;; 21071 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21072 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21073 esac;; 21074esac 21075case $ac_abs_builddir in 21076.) ac_abs_top_builddir=${ac_top_builddir}.;; 21077*) 21078 case ${ac_top_builddir}. in 21079 .) ac_abs_top_builddir=$ac_abs_builddir;; 21080 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21081 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21082 esac;; 21083esac 21084case $ac_abs_builddir in 21085.) ac_abs_srcdir=$ac_srcdir;; 21086*) 21087 case $ac_srcdir in 21088 .) ac_abs_srcdir=$ac_abs_builddir;; 21089 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21090 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21091 esac;; 21092esac 21093case $ac_abs_builddir in 21094.) ac_abs_top_srcdir=$ac_top_srcdir;; 21095*) 21096 case $ac_top_srcdir in 21097 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21098 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21099 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21100 esac;; 21101esac 21102 21103 21104 case $INSTALL in 21105 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21106 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21107 esac 21108 21109 if test x"$ac_file" != x-; then 21110 { echo "$as_me:$LINENO: creating $ac_file" >&5 21111echo "$as_me: creating $ac_file" >&6;} 21112 rm -f "$ac_file" 21113 fi 21114 # Let's still pretend it is `configure' which instantiates (i.e., don't 21115 # use $as_me), people would be surprised to read: 21116 # /* config.h. Generated by config.status. */ 21117 if test x"$ac_file" = x-; then 21118 configure_input= 21119 else 21120 configure_input="$ac_file. " 21121 fi 21122 configure_input=$configure_input"Generated from `echo $ac_file_in | 21123 sed 's,.*/,,'` by configure." 21124 21125 # First look for the input files in the build tree, otherwise in the 21126 # src tree. 21127 ac_file_inputs=`IFS=: 21128 for f in $ac_file_in; do 21129 case $f in 21130 -) echo $tmp/stdin ;; 21131 [\\/$]*) 21132 # Absolute (can't be DOS-style, as IFS=:) 21133 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21134echo "$as_me: error: cannot find input file: $f" >&2;} 21135 { (exit 1); exit 1; }; } 21136 echo "$f";; 21137 *) # Relative 21138 if test -f "$f"; then 21139 # Build tree 21140 echo "$f" 21141 elif test -f "$srcdir/$f"; then 21142 # Source tree 21143 echo "$srcdir/$f" 21144 else 21145 # /dev/null tree 21146 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21147echo "$as_me: error: cannot find input file: $f" >&2;} 21148 { (exit 1); exit 1; }; } 21149 fi;; 21150 esac 21151 done` || { (exit 1); exit 1; } 21152_ACEOF 21153cat >>$CONFIG_STATUS <<_ACEOF 21154 sed "$ac_vpsub 21155$extrasub 21156_ACEOF 21157cat >>$CONFIG_STATUS <<\_ACEOF 21158:t 21159/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21160s,@configure_input@,$configure_input,;t t 21161s,@srcdir@,$ac_srcdir,;t t 21162s,@abs_srcdir@,$ac_abs_srcdir,;t t 21163s,@top_srcdir@,$ac_top_srcdir,;t t 21164s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21165s,@builddir@,$ac_builddir,;t t 21166s,@abs_builddir@,$ac_abs_builddir,;t t 21167s,@top_builddir@,$ac_top_builddir,;t t 21168s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21169s,@INSTALL@,$ac_INSTALL,;t t 21170" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21171 rm -f $tmp/stdin 21172 if test x"$ac_file" != x-; then 21173 mv $tmp/out $ac_file 21174 else 21175 cat $tmp/out 21176 rm -f $tmp/out 21177 fi 21178 21179done 21180_ACEOF 21181cat >>$CONFIG_STATUS <<\_ACEOF 21182 21183# 21184# CONFIG_HEADER section. 21185# 21186 21187# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21188# NAME is the cpp macro being defined and VALUE is the value it is being given. 21189# 21190# ac_d sets the value in "#define NAME VALUE" lines. 21191ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21192ac_dB='[ ].*$,\1#\2' 21193ac_dC=' ' 21194ac_dD=',;t' 21195# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21196ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21197ac_uB='$,\1#\2define\3' 21198ac_uC=' ' 21199ac_uD=',;t' 21200 21201for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21203 case $ac_file in 21204 - | *:- | *:-:* ) # input from stdin 21205 cat >$tmp/stdin 21206 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21208 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21209 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21210 * ) ac_file_in=$ac_file.in ;; 21211 esac 21212 21213 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21214echo "$as_me: creating $ac_file" >&6;} 21215 21216 # First look for the input files in the build tree, otherwise in the 21217 # src tree. 21218 ac_file_inputs=`IFS=: 21219 for f in $ac_file_in; do 21220 case $f in 21221 -) echo $tmp/stdin ;; 21222 [\\/$]*) 21223 # Absolute (can't be DOS-style, as IFS=:) 21224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21225echo "$as_me: error: cannot find input file: $f" >&2;} 21226 { (exit 1); exit 1; }; } 21227 # Do quote $f, to prevent DOS paths from being IFS'd. 21228 echo "$f";; 21229 *) # Relative 21230 if test -f "$f"; then 21231 # Build tree 21232 echo "$f" 21233 elif test -f "$srcdir/$f"; then 21234 # Source tree 21235 echo "$srcdir/$f" 21236 else 21237 # /dev/null tree 21238 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21239echo "$as_me: error: cannot find input file: $f" >&2;} 21240 { (exit 1); exit 1; }; } 21241 fi;; 21242 esac 21243 done` || { (exit 1); exit 1; } 21244 # Remove the trailing spaces. 21245 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21246 21247_ACEOF 21248 21249# Transform confdefs.h into two sed scripts, `conftest.defines' and 21250# `conftest.undefs', that substitutes the proper values into 21251# config.h.in to produce config.h. The first handles `#define' 21252# templates, and the second `#undef' templates. 21253# And first: Protect against being on the right side of a sed subst in 21254# config.status. Protect against being in an unquoted here document 21255# in config.status. 21256rm -f conftest.defines conftest.undefs 21257# Using a here document instead of a string reduces the quoting nightmare. 21258# Putting comments in sed scripts is not portable. 21259# 21260# `end' is used to avoid that the second main sed command (meant for 21261# 0-ary CPP macros) applies to n-ary macro definitions. 21262# See the Autoconf documentation for `clear'. 21263cat >confdef2sed.sed <<\_ACEOF 21264s/[\\&,]/\\&/g 21265s,[\\$`],\\&,g 21266t clear 21267: clear 21268s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 21269t end 21270s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21271: end 21272_ACEOF 21273# If some macros were called several times there might be several times 21274# the same #defines, which is useless. Nevertheless, we may not want to 21275# sort them, since we want the *last* AC-DEFINE to be honored. 21276uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21277sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21278rm -f confdef2sed.sed 21279 21280# This sed command replaces #undef with comments. This is necessary, for 21281# example, in the case of _POSIX_SOURCE, which is predefined and required 21282# on some systems where configure will not decide to define it. 21283cat >>conftest.undefs <<\_ACEOF 21284s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21285_ACEOF 21286 21287# Break up conftest.defines because some shells have a limit on the size 21288# of here documents, and old seds have small limits too (100 cmds). 21289echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21290echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21291echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21292echo ' :' >>$CONFIG_STATUS 21293rm -f conftest.tail 21294while grep . conftest.defines >/dev/null 21295do 21296 # Write a limited-size here document to $tmp/defines.sed. 21297 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 21298 # Speed up: don't consider the non `#define' lines. 21299 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 21300 # Work around the forget-to-reset-the-flag bug. 21301 echo 't clr' >>$CONFIG_STATUS 21302 echo ': clr' >>$CONFIG_STATUS 21303 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 21304 echo 'CEOF 21305 sed -f $tmp/defines.sed $tmp/in >$tmp/out 21306 rm -f $tmp/in 21307 mv $tmp/out $tmp/in 21308' >>$CONFIG_STATUS 21309 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21310 rm -f conftest.defines 21311 mv conftest.tail conftest.defines 21312done 21313rm -f conftest.defines 21314echo ' fi # grep' >>$CONFIG_STATUS 21315echo >>$CONFIG_STATUS 21316 21317# Break up conftest.undefs because some shells have a limit on the size 21318# of here documents, and old seds have small limits too (100 cmds). 21319echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21320rm -f conftest.tail 21321while grep . conftest.undefs >/dev/null 21322do 21323 # Write a limited-size here document to $tmp/undefs.sed. 21324 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21325 # Speed up: don't consider the non `#undef' 21326 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21327 # Work around the forget-to-reset-the-flag bug. 21328 echo 't clr' >>$CONFIG_STATUS 21329 echo ': clr' >>$CONFIG_STATUS 21330 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21331 echo 'CEOF 21332 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21333 rm -f $tmp/in 21334 mv $tmp/out $tmp/in 21335' >>$CONFIG_STATUS 21336 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21337 rm -f conftest.undefs 21338 mv conftest.tail conftest.undefs 21339done 21340rm -f conftest.undefs 21341 21342cat >>$CONFIG_STATUS <<\_ACEOF 21343 # Let's still pretend it is `configure' which instantiates (i.e., don't 21344 # use $as_me), people would be surprised to read: 21345 # /* config.h. Generated by config.status. */ 21346 if test x"$ac_file" = x-; then 21347 echo "/* Generated by configure. */" >$tmp/config.h 21348 else 21349 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21350 fi 21351 cat $tmp/in >>$tmp/config.h 21352 rm -f $tmp/in 21353 if test x"$ac_file" != x-; then 21354 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21355 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21356echo "$as_me: $ac_file is unchanged" >&6;} 21357 else 21358 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21359$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21360 X"$ac_file" : 'X\(//\)[^/]' \| \ 21361 X"$ac_file" : 'X\(//\)$' \| \ 21362 X"$ac_file" : 'X\(/\)' \| \ 21363 . : '\(.\)' 2>/dev/null || 21364echo X"$ac_file" | 21365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21366 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21367 /^X\(\/\/\)$/{ s//\1/; q; } 21368 /^X\(\/\).*/{ s//\1/; q; } 21369 s/.*/./; q'` 21370 { if $as_mkdir_p; then 21371 mkdir -p "$ac_dir" 21372 else 21373 as_dir="$ac_dir" 21374 as_dirs= 21375 while test ! -d "$as_dir"; do 21376 as_dirs="$as_dir $as_dirs" 21377 as_dir=`(dirname "$as_dir") 2>/dev/null || 21378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21379 X"$as_dir" : 'X\(//\)[^/]' \| \ 21380 X"$as_dir" : 'X\(//\)$' \| \ 21381 X"$as_dir" : 'X\(/\)' \| \ 21382 . : '\(.\)' 2>/dev/null || 21383echo X"$as_dir" | 21384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21385 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21386 /^X\(\/\/\)$/{ s//\1/; q; } 21387 /^X\(\/\).*/{ s//\1/; q; } 21388 s/.*/./; q'` 21389 done 21390 test ! -n "$as_dirs" || mkdir $as_dirs 21391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21392echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21393 { (exit 1); exit 1; }; }; } 21394 21395 rm -f $ac_file 21396 mv $tmp/config.h $ac_file 21397 fi 21398 else 21399 cat $tmp/config.h 21400 rm -f $tmp/config.h 21401 fi 21402# Compute $ac_file's index in $config_headers. 21403_am_stamp_count=1 21404for _am_header in $config_headers :; do 21405 case $_am_header in 21406 $ac_file | $ac_file:* ) 21407 break ;; 21408 * ) 21409 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21410 esac 21411done 21412echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 21413$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21414 X$ac_file : 'X\(//\)[^/]' \| \ 21415 X$ac_file : 'X\(//\)$' \| \ 21416 X$ac_file : 'X\(/\)' \| \ 21417 . : '\(.\)' 2>/dev/null || 21418echo X$ac_file | 21419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21420 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21421 /^X\(\/\/\)$/{ s//\1/; q; } 21422 /^X\(\/\).*/{ s//\1/; q; } 21423 s/.*/./; q'`/stamp-h$_am_stamp_count 21424done 21425_ACEOF 21426cat >>$CONFIG_STATUS <<\_ACEOF 21427 21428# 21429# CONFIG_COMMANDS section. 21430# 21431for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21432 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21433 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21434 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21435$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21436 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21437 X"$ac_dest" : 'X\(//\)$' \| \ 21438 X"$ac_dest" : 'X\(/\)' \| \ 21439 . : '\(.\)' 2>/dev/null || 21440echo X"$ac_dest" | 21441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21442 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21443 /^X\(\/\/\)$/{ s//\1/; q; } 21444 /^X\(\/\).*/{ s//\1/; q; } 21445 s/.*/./; q'` 21446 { if $as_mkdir_p; then 21447 mkdir -p "$ac_dir" 21448 else 21449 as_dir="$ac_dir" 21450 as_dirs= 21451 while test ! -d "$as_dir"; do 21452 as_dirs="$as_dir $as_dirs" 21453 as_dir=`(dirname "$as_dir") 2>/dev/null || 21454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21455 X"$as_dir" : 'X\(//\)[^/]' \| \ 21456 X"$as_dir" : 'X\(//\)$' \| \ 21457 X"$as_dir" : 'X\(/\)' \| \ 21458 . : '\(.\)' 2>/dev/null || 21459echo X"$as_dir" | 21460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21461 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21462 /^X\(\/\/\)$/{ s//\1/; q; } 21463 /^X\(\/\).*/{ s//\1/; q; } 21464 s/.*/./; q'` 21465 done 21466 test ! -n "$as_dirs" || mkdir $as_dirs 21467 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21468echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21469 { (exit 1); exit 1; }; }; } 21470 21471 ac_builddir=. 21472 21473if test "$ac_dir" != .; then 21474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21475 # A "../" for each directory in $ac_dir_suffix. 21476 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21477else 21478 ac_dir_suffix= ac_top_builddir= 21479fi 21480 21481case $srcdir in 21482 .) # No --srcdir option. We are building in place. 21483 ac_srcdir=. 21484 if test -z "$ac_top_builddir"; then 21485 ac_top_srcdir=. 21486 else 21487 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21488 fi ;; 21489 [\\/]* | ?:[\\/]* ) # Absolute path. 21490 ac_srcdir=$srcdir$ac_dir_suffix; 21491 ac_top_srcdir=$srcdir ;; 21492 *) # Relative path. 21493 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21494 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21495esac 21496 21497# Do not use `cd foo && pwd` to compute absolute paths, because 21498# the directories may not exist. 21499case `pwd` in 21500.) ac_abs_builddir="$ac_dir";; 21501*) 21502 case "$ac_dir" in 21503 .) ac_abs_builddir=`pwd`;; 21504 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21505 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21506 esac;; 21507esac 21508case $ac_abs_builddir in 21509.) ac_abs_top_builddir=${ac_top_builddir}.;; 21510*) 21511 case ${ac_top_builddir}. in 21512 .) ac_abs_top_builddir=$ac_abs_builddir;; 21513 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21514 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21515 esac;; 21516esac 21517case $ac_abs_builddir in 21518.) ac_abs_srcdir=$ac_srcdir;; 21519*) 21520 case $ac_srcdir in 21521 .) ac_abs_srcdir=$ac_abs_builddir;; 21522 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21523 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21524 esac;; 21525esac 21526case $ac_abs_builddir in 21527.) ac_abs_top_srcdir=$ac_top_srcdir;; 21528*) 21529 case $ac_top_srcdir in 21530 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21531 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21532 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21533 esac;; 21534esac 21535 21536 21537 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21538echo "$as_me: executing $ac_dest commands" >&6;} 21539 case $ac_dest in 21540 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21541 # Strip MF so we end up with the name of the file. 21542 mf=`echo "$mf" | sed -e 's/:.*$//'` 21543 # Check whether this is an Automake generated Makefile or not. 21544 # We used to match only the files named `Makefile.in', but 21545 # some people rename them; so instead we look at the file content. 21546 # Grep'ing the first line is not enough: some people post-process 21547 # each Makefile.in and add a new line on top of each file to say so. 21548 # So let's grep whole file. 21549 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21550 dirpart=`(dirname "$mf") 2>/dev/null || 21551$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21552 X"$mf" : 'X\(//\)[^/]' \| \ 21553 X"$mf" : 'X\(//\)$' \| \ 21554 X"$mf" : 'X\(/\)' \| \ 21555 . : '\(.\)' 2>/dev/null || 21556echo X"$mf" | 21557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21558 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21559 /^X\(\/\/\)$/{ s//\1/; q; } 21560 /^X\(\/\).*/{ s//\1/; q; } 21561 s/.*/./; q'` 21562 else 21563 continue 21564 fi 21565 # Extract the definition of DEPDIR, am__include, and am__quote 21566 # from the Makefile without running `make'. 21567 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21568 test -z "$DEPDIR" && continue 21569 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21570 test -z "am__include" && continue 21571 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21572 # When using ansi2knr, U may be empty or an underscore; expand it 21573 U=`sed -n 's/^U = //p' < "$mf"` 21574 # Find all dependency output files, they are included files with 21575 # $(DEPDIR) in their names. We invoke sed twice because it is the 21576 # simplest approach to changing $(DEPDIR) to its actual value in the 21577 # expansion. 21578 for file in `sed -n " 21579 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21580 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21581 # Make sure the directory exists. 21582 test -f "$dirpart/$file" && continue 21583 fdir=`(dirname "$file") 2>/dev/null || 21584$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21585 X"$file" : 'X\(//\)[^/]' \| \ 21586 X"$file" : 'X\(//\)$' \| \ 21587 X"$file" : 'X\(/\)' \| \ 21588 . : '\(.\)' 2>/dev/null || 21589echo X"$file" | 21590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21591 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21592 /^X\(\/\/\)$/{ s//\1/; q; } 21593 /^X\(\/\).*/{ s//\1/; q; } 21594 s/.*/./; q'` 21595 { if $as_mkdir_p; then 21596 mkdir -p $dirpart/$fdir 21597 else 21598 as_dir=$dirpart/$fdir 21599 as_dirs= 21600 while test ! -d "$as_dir"; do 21601 as_dirs="$as_dir $as_dirs" 21602 as_dir=`(dirname "$as_dir") 2>/dev/null || 21603$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21604 X"$as_dir" : 'X\(//\)[^/]' \| \ 21605 X"$as_dir" : 'X\(//\)$' \| \ 21606 X"$as_dir" : 'X\(/\)' \| \ 21607 . : '\(.\)' 2>/dev/null || 21608echo X"$as_dir" | 21609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21610 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21611 /^X\(\/\/\)$/{ s//\1/; q; } 21612 /^X\(\/\).*/{ s//\1/; q; } 21613 s/.*/./; q'` 21614 done 21615 test ! -n "$as_dirs" || mkdir $as_dirs 21616 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21617echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21618 { (exit 1); exit 1; }; }; } 21619 21620 # echo "creating $dirpart/$file" 21621 echo '# dummy' > "$dirpart/$file" 21622 done 21623done 21624 ;; 21625 esac 21626done 21627_ACEOF 21628 21629cat >>$CONFIG_STATUS <<\_ACEOF 21630 21631{ (exit 0); exit 0; } 21632_ACEOF 21633chmod +x $CONFIG_STATUS 21634ac_clean_files=$ac_clean_files_save 21635 21636 21637# configure is writing to config.log, and then calls config.status. 21638# config.status does its own redirection, appending to config.log. 21639# Unfortunately, on DOS this fails, as config.log is still kept open 21640# by configure, so config.status won't be able to write to it; its 21641# output is simply discarded. So we exec the FD to /dev/null, 21642# effectively closing config.log, so it can be properly (re)opened and 21643# appended to by config.status. When coming back to configure, we 21644# need to make the FD available again. 21645if test "$no_create" != yes; then 21646 ac_cs_success=: 21647 ac_config_status_args= 21648 test "$silent" = yes && 21649 ac_config_status_args="$ac_config_status_args --quiet" 21650 exec 5>/dev/null 21651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21652 exec 5>>config.log 21653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21654 # would make configure fail if this is the last instruction. 21655 $ac_cs_success || { (exit 1); exit 1; } 21656fi 21657 21658