configure revision 53e90a53
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for xf86-video-imstt 1.1.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-imstt' 425PACKAGE_TARNAME='xf86-video-imstt' 426PACKAGE_VERSION='1.1.0' 427PACKAGE_STRING='xf86-video-imstt 1.1.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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS moduledir 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-imstt 1.1.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-imstt 1.1.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 Default xorg module directory 1064 [default=$libdir/xorg/modules] 1065 --with-release-version=STRING 1066 Use release version string in package name 1067 1068Some influential environment variables: 1069 CC C compiler command 1070 CFLAGS C compiler flags 1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1072 nonstandard directory <lib dir> 1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1074 headers in a nonstandard directory <include dir> 1075 CPP C preprocessor 1076 CXX C++ compiler command 1077 CXXFLAGS C++ compiler flags 1078 CXXCPP C++ preprocessor 1079 F77 Fortran 77 compiler command 1080 FFLAGS Fortran 77 compiler flags 1081 PKG_CONFIG path to pkg-config utility 1082 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1083 XORG_LIBS linker flags for XORG, overriding pkg-config 1084 1085Use these variables to override the choices made by `configure' or to help 1086it to find libraries and programs with nonstandard names/locations. 1087 1088Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1089_ACEOF 1090fi 1091 1092if test "$ac_init_help" = "recursive"; then 1093 # If there are subdirs, report their specific --help. 1094 ac_popdir=`pwd` 1095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1096 test -d $ac_dir || continue 1097 ac_builddir=. 1098 1099if test "$ac_dir" != .; then 1100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1101 # A "../" for each directory in $ac_dir_suffix. 1102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1103else 1104 ac_dir_suffix= ac_top_builddir= 1105fi 1106 1107case $srcdir in 1108 .) # No --srcdir option. We are building in place. 1109 ac_srcdir=. 1110 if test -z "$ac_top_builddir"; then 1111 ac_top_srcdir=. 1112 else 1113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1114 fi ;; 1115 [\\/]* | ?:[\\/]* ) # Absolute path. 1116 ac_srcdir=$srcdir$ac_dir_suffix; 1117 ac_top_srcdir=$srcdir ;; 1118 *) # Relative path. 1119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1120 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1121esac 1122 1123# Do not use `cd foo && pwd` to compute absolute paths, because 1124# the directories may not exist. 1125case `pwd` in 1126.) ac_abs_builddir="$ac_dir";; 1127*) 1128 case "$ac_dir" in 1129 .) ac_abs_builddir=`pwd`;; 1130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1131 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1132 esac;; 1133esac 1134case $ac_abs_builddir in 1135.) ac_abs_top_builddir=${ac_top_builddir}.;; 1136*) 1137 case ${ac_top_builddir}. in 1138 .) ac_abs_top_builddir=$ac_abs_builddir;; 1139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1141 esac;; 1142esac 1143case $ac_abs_builddir in 1144.) ac_abs_srcdir=$ac_srcdir;; 1145*) 1146 case $ac_srcdir in 1147 .) ac_abs_srcdir=$ac_abs_builddir;; 1148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1150 esac;; 1151esac 1152case $ac_abs_builddir in 1153.) ac_abs_top_srcdir=$ac_top_srcdir;; 1154*) 1155 case $ac_top_srcdir in 1156 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1159 esac;; 1160esac 1161 1162 cd $ac_dir 1163 # Check for guested configure; otherwise get Cygnus style configure. 1164 if test -f $ac_srcdir/configure.gnu; then 1165 echo 1166 $SHELL $ac_srcdir/configure.gnu --help=recursive 1167 elif test -f $ac_srcdir/configure; then 1168 echo 1169 $SHELL $ac_srcdir/configure --help=recursive 1170 elif test -f $ac_srcdir/configure.ac || 1171 test -f $ac_srcdir/configure.in; then 1172 echo 1173 $ac_configure --help 1174 else 1175 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1176 fi 1177 cd $ac_popdir 1178 done 1179fi 1180 1181test -n "$ac_init_help" && exit 0 1182if $ac_init_version; then 1183 cat <<\_ACEOF 1184xf86-video-imstt configure 1.1.0 1185generated by GNU Autoconf 2.59 1186 1187Copyright (C) 2003 Free Software Foundation, Inc. 1188This configure script is free software; the Free Software Foundation 1189gives unlimited permission to copy, distribute and modify it. 1190_ACEOF 1191 exit 0 1192fi 1193exec 5>config.log 1194cat >&5 <<_ACEOF 1195This file contains any messages produced by compilers while 1196running configure, to aid debugging if configure makes a mistake. 1197 1198It was created by xf86-video-imstt $as_me 1.1.0, which was 1199generated by GNU Autoconf 2.59. Invocation command line was 1200 1201 $ $0 $@ 1202 1203_ACEOF 1204{ 1205cat <<_ASUNAME 1206## --------- ## 1207## Platform. ## 1208## --------- ## 1209 1210hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1211uname -m = `(uname -m) 2>/dev/null || echo unknown` 1212uname -r = `(uname -r) 2>/dev/null || echo unknown` 1213uname -s = `(uname -s) 2>/dev/null || echo unknown` 1214uname -v = `(uname -v) 2>/dev/null || echo unknown` 1215 1216/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1217/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1218 1219/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1220/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1221/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1222hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1223/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1224/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1225/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1226 1227_ASUNAME 1228 1229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1230for as_dir in $PATH 1231do 1232 IFS=$as_save_IFS 1233 test -z "$as_dir" && as_dir=. 1234 echo "PATH: $as_dir" 1235done 1236 1237} >&5 1238 1239cat >&5 <<_ACEOF 1240 1241 1242## ----------- ## 1243## Core tests. ## 1244## ----------- ## 1245 1246_ACEOF 1247 1248 1249# Keep a trace of the command line. 1250# Strip out --no-create and --no-recursion so they do not pile up. 1251# Strip out --silent because we don't want to record it for future runs. 1252# Also quote any args containing shell meta-characters. 1253# Make two passes to allow for proper duplicate-argument suppression. 1254ac_configure_args= 1255ac_configure_args0= 1256ac_configure_args1= 1257ac_sep= 1258ac_must_keep_next=false 1259for ac_pass in 1 2 1260do 1261 for ac_arg 1262 do 1263 case $ac_arg in 1264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1266 | -silent | --silent | --silen | --sile | --sil) 1267 continue ;; 1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1269 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1270 esac 1271 case $ac_pass in 1272 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1273 2) 1274 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1275 if test $ac_must_keep_next = true; then 1276 ac_must_keep_next=false # Got value, back to normal. 1277 else 1278 case $ac_arg in 1279 *=* | --config-cache | -C | -disable-* | --disable-* \ 1280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1282 | -with-* | --with-* | -without-* | --without-* | --x) 1283 case "$ac_configure_args0 " in 1284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1285 esac 1286 ;; 1287 -* ) ac_must_keep_next=true ;; 1288 esac 1289 fi 1290 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1291 # Get rid of the leading space. 1292 ac_sep=" " 1293 ;; 1294 esac 1295 done 1296done 1297$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1298$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1299 1300# When interrupted or exit'd, cleanup temporary files, and complete 1301# config.log. We remove comments because anyway the quotes in there 1302# would cause problems or look ugly. 1303# WARNING: Be sure not to use single quotes in there, as some shells, 1304# such as our DU 5.0 friend, will then `close' the trap. 1305trap 'exit_status=$? 1306 # Save into config.log some information that might help in debugging. 1307 { 1308 echo 1309 1310 cat <<\_ASBOX 1311## ---------------- ## 1312## Cache variables. ## 1313## ---------------- ## 1314_ASBOX 1315 echo 1316 # The following way of writing the cache mishandles newlines in values, 1317{ 1318 (set) 2>&1 | 1319 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1320 *ac_space=\ *) 1321 sed -n \ 1322 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1324 ;; 1325 *) 1326 sed -n \ 1327 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1328 ;; 1329 esac; 1330} 1331 echo 1332 1333 cat <<\_ASBOX 1334## ----------------- ## 1335## Output variables. ## 1336## ----------------- ## 1337_ASBOX 1338 echo 1339 for ac_var in $ac_subst_vars 1340 do 1341 eval ac_val=$`echo $ac_var` 1342 echo "$ac_var='"'"'$ac_val'"'"'" 1343 done | sort 1344 echo 1345 1346 if test -n "$ac_subst_files"; then 1347 cat <<\_ASBOX 1348## ------------- ## 1349## Output files. ## 1350## ------------- ## 1351_ASBOX 1352 echo 1353 for ac_var in $ac_subst_files 1354 do 1355 eval ac_val=$`echo $ac_var` 1356 echo "$ac_var='"'"'$ac_val'"'"'" 1357 done | sort 1358 echo 1359 fi 1360 1361 if test -s confdefs.h; then 1362 cat <<\_ASBOX 1363## ----------- ## 1364## confdefs.h. ## 1365## ----------- ## 1366_ASBOX 1367 echo 1368 sed "/^$/d" confdefs.h | sort 1369 echo 1370 fi 1371 test "$ac_signal" != 0 && 1372 echo "$as_me: caught signal $ac_signal" 1373 echo "$as_me: exit $exit_status" 1374 } >&5 1375 rm -f core *.core && 1376 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1377 exit $exit_status 1378 ' 0 1379for ac_signal in 1 2 13 15; do 1380 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1381done 1382ac_signal=0 1383 1384# confdefs.h avoids OS command line length limits that DEFS can exceed. 1385rm -rf conftest* confdefs.h 1386# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1387echo >confdefs.h 1388 1389# Predefined preprocessor variables. 1390 1391cat >>confdefs.h <<_ACEOF 1392#define PACKAGE_NAME "$PACKAGE_NAME" 1393_ACEOF 1394 1395 1396cat >>confdefs.h <<_ACEOF 1397#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1398_ACEOF 1399 1400 1401cat >>confdefs.h <<_ACEOF 1402#define PACKAGE_VERSION "$PACKAGE_VERSION" 1403_ACEOF 1404 1405 1406cat >>confdefs.h <<_ACEOF 1407#define PACKAGE_STRING "$PACKAGE_STRING" 1408_ACEOF 1409 1410 1411cat >>confdefs.h <<_ACEOF 1412#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1413_ACEOF 1414 1415 1416# Let the site file select an alternate cache file if it wants to. 1417# Prefer explicitly selected file to automatically selected ones. 1418if test -z "$CONFIG_SITE"; then 1419 if test "x$prefix" != xNONE; then 1420 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1421 else 1422 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1423 fi 1424fi 1425for ac_site_file in $CONFIG_SITE; do 1426 if test -r "$ac_site_file"; then 1427 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1428echo "$as_me: loading site script $ac_site_file" >&6;} 1429 sed 's/^/| /' "$ac_site_file" >&5 1430 . "$ac_site_file" 1431 fi 1432done 1433 1434if test -r "$cache_file"; then 1435 # Some versions of bash will fail to source /dev/null (special 1436 # files actually), so we avoid doing that. 1437 if test -f "$cache_file"; then 1438 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1439echo "$as_me: loading cache $cache_file" >&6;} 1440 case $cache_file in 1441 [\\/]* | ?:[\\/]* ) . $cache_file;; 1442 *) . ./$cache_file;; 1443 esac 1444 fi 1445else 1446 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1447echo "$as_me: creating cache $cache_file" >&6;} 1448 >$cache_file 1449fi 1450 1451# Check that the precious variables saved in the cache have kept the same 1452# value. 1453ac_cache_corrupted=false 1454for ac_var in `(set) 2>&1 | 1455 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1456 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1457 eval ac_new_set=\$ac_env_${ac_var}_set 1458 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1459 eval ac_new_val="\$ac_env_${ac_var}_value" 1460 case $ac_old_set,$ac_new_set in 1461 set,) 1462 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1463echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1464 ac_cache_corrupted=: ;; 1465 ,set) 1466 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1467echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1468 ac_cache_corrupted=: ;; 1469 ,);; 1470 *) 1471 if test "x$ac_old_val" != "x$ac_new_val"; then 1472 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1473echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1474 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1475echo "$as_me: former value: $ac_old_val" >&2;} 1476 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1477echo "$as_me: current value: $ac_new_val" >&2;} 1478 ac_cache_corrupted=: 1479 fi;; 1480 esac 1481 # Pass precious variables to config.status. 1482 if test "$ac_new_set" = set; then 1483 case $ac_new_val in 1484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1485 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1486 *) ac_arg=$ac_var=$ac_new_val ;; 1487 esac 1488 case " $ac_configure_args " in 1489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1490 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1491 esac 1492 fi 1493done 1494if $ac_cache_corrupted; then 1495 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1496echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1497 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1498echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1499 { (exit 1); exit 1; }; } 1500fi 1501 1502ac_ext=c 1503ac_cpp='$CPP $CPPFLAGS' 1504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1506ac_compiler_gnu=$ac_cv_c_compiler_gnu 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 1535 1536 ac_config_headers="$ac_config_headers config.h" 1537 1538ac_aux_dir= 1539for ac_dir in . $srcdir/.; do 1540 if test -f $ac_dir/install-sh; then 1541 ac_aux_dir=$ac_dir 1542 ac_install_sh="$ac_aux_dir/install-sh -c" 1543 break 1544 elif test -f $ac_dir/install.sh; then 1545 ac_aux_dir=$ac_dir 1546 ac_install_sh="$ac_aux_dir/install.sh -c" 1547 break 1548 elif test -f $ac_dir/shtool; then 1549 ac_aux_dir=$ac_dir 1550 ac_install_sh="$ac_aux_dir/shtool install -c" 1551 break 1552 fi 1553done 1554if test -z "$ac_aux_dir"; then 1555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5 1556echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;} 1557 { (exit 1); exit 1; }; } 1558fi 1559ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1560ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1561ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1562 1563 1564am__api_version="1.9" 1565# Find a good install program. We prefer a C program (faster), 1566# so one script is as good as another. But avoid the broken or 1567# incompatible versions: 1568# SysV /etc/install, /usr/sbin/install 1569# SunOS /usr/etc/install 1570# IRIX /sbin/install 1571# AIX /bin/install 1572# AmigaOS /C/install, which installs bootblocks on floppy discs 1573# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1574# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1575# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1576# OS/2's system install, which has a completely different semantic 1577# ./install, which can be erroneously created by make from ./install.sh. 1578echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1579echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1580if test -z "$INSTALL"; then 1581if test "${ac_cv_path_install+set}" = set; then 1582 echo $ECHO_N "(cached) $ECHO_C" >&6 1583else 1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1585for as_dir in $PATH 1586do 1587 IFS=$as_save_IFS 1588 test -z "$as_dir" && as_dir=. 1589 # Account for people who put trailing slashes in PATH elements. 1590case $as_dir/ in 1591 ./ | .// | /cC/* | \ 1592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1593 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1594 /usr/ucb/* ) ;; 1595 *) 1596 # OSF1 and SCO ODT 3.0 have their own names for install. 1597 # Don't use installbsd from OSF since it installs stuff as root 1598 # by default. 1599 for ac_prog in ginstall scoinst install; do 1600 for ac_exec_ext in '' $ac_executable_extensions; do 1601 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1602 if test $ac_prog = install && 1603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1604 # AIX install. It has an incompatible calling convention. 1605 : 1606 elif test $ac_prog = install && 1607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1608 # program-specific install script used by HP pwplus--don't use. 1609 : 1610 else 1611 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1612 break 3 1613 fi 1614 fi 1615 done 1616 done 1617 ;; 1618esac 1619done 1620 1621 1622fi 1623 if test "${ac_cv_path_install+set}" = set; then 1624 INSTALL=$ac_cv_path_install 1625 else 1626 # As a last resort, use the slow shell script. We don't cache a 1627 # path for INSTALL within a source directory, because that will 1628 # break other packages using the cache if that directory is 1629 # removed, or if the path is relative. 1630 INSTALL=$ac_install_sh 1631 fi 1632fi 1633echo "$as_me:$LINENO: result: $INSTALL" >&5 1634echo "${ECHO_T}$INSTALL" >&6 1635 1636# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1637# It thinks the first close brace ends the variable substitution. 1638test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1639 1640test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1641 1642test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1643 1644echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1645echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1646# Just in case 1647sleep 1 1648echo timestamp > conftest.file 1649# Do `set' in a subshell so we don't clobber the current shell's 1650# arguments. Must try -L first in case configure is actually a 1651# symlink; some systems play weird games with the mod time of symlinks 1652# (eg FreeBSD returns the mod time of the symlink's containing 1653# directory). 1654if ( 1655 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1656 if test "$*" = "X"; then 1657 # -L didn't work. 1658 set X `ls -t $srcdir/configure conftest.file` 1659 fi 1660 rm -f conftest.file 1661 if test "$*" != "X $srcdir/configure conftest.file" \ 1662 && test "$*" != "X conftest.file $srcdir/configure"; then 1663 1664 # If neither matched, then we have a broken ls. This can happen 1665 # if, for instance, CONFIG_SHELL is bash and it inherits a 1666 # broken ls alias from the environment. This has actually 1667 # happened. Such a system could not be considered "sane". 1668 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1669alias in your environment" >&5 1670echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1671alias in your environment" >&2;} 1672 { (exit 1); exit 1; }; } 1673 fi 1674 1675 test "$2" = conftest.file 1676 ) 1677then 1678 # Ok. 1679 : 1680else 1681 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1682Check your system clock" >&5 1683echo "$as_me: error: newly created file is older than distributed files! 1684Check your system clock" >&2;} 1685 { (exit 1); exit 1; }; } 1686fi 1687echo "$as_me:$LINENO: result: yes" >&5 1688echo "${ECHO_T}yes" >&6 1689test "$program_prefix" != NONE && 1690 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1691# Use a double $ so make ignores it. 1692test "$program_suffix" != NONE && 1693 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1694# Double any \ or $. echo might interpret backslashes. 1695# By default was `s,x,x', remove it if useless. 1696cat <<\_ACEOF >conftest.sed 1697s/[\\$]/&&/g;s/;s,x,x,$// 1698_ACEOF 1699program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1700rm conftest.sed 1701 1702# expand $ac_aux_dir to an absolute path 1703am_aux_dir=`cd $ac_aux_dir && pwd` 1704 1705test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1706# Use eval to expand $SHELL 1707if eval "$MISSING --run true"; then 1708 am_missing_run="$MISSING --run " 1709else 1710 am_missing_run= 1711 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1712echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1713fi 1714 1715if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1716 # We used to keeping the `.' as first argument, in order to 1717 # allow $(mkdir_p) to be used without argument. As in 1718 # $(mkdir_p) $(somedir) 1719 # where $(somedir) is conditionally defined. However this is wrong 1720 # for two reasons: 1721 # 1. if the package is installed by a user who cannot write `.' 1722 # make install will fail, 1723 # 2. the above comment should most certainly read 1724 # $(mkdir_p) $(DESTDIR)$(somedir) 1725 # so it does not work when $(somedir) is undefined and 1726 # $(DESTDIR) is not. 1727 # To support the latter case, we have to write 1728 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1729 # so the `.' trick is pointless. 1730 mkdir_p='mkdir -p --' 1731else 1732 # On NextStep and OpenStep, the `mkdir' command does not 1733 # recognize any option. It will interpret all options as 1734 # directories to create, and then abort because `.' already 1735 # exists. 1736 for d in ./-p ./--version; 1737 do 1738 test -d $d && rmdir $d 1739 done 1740 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1741 if test -f "$ac_aux_dir/mkinstalldirs"; then 1742 mkdir_p='$(mkinstalldirs)' 1743 else 1744 mkdir_p='$(install_sh) -d' 1745 fi 1746fi 1747 1748for ac_prog in gawk mawk nawk awk 1749do 1750 # Extract the first word of "$ac_prog", so it can be a program name with args. 1751set dummy $ac_prog; ac_word=$2 1752echo "$as_me:$LINENO: checking for $ac_word" >&5 1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1754if test "${ac_cv_prog_AWK+set}" = set; then 1755 echo $ECHO_N "(cached) $ECHO_C" >&6 1756else 1757 if test -n "$AWK"; then 1758 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1759else 1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1761for as_dir in $PATH 1762do 1763 IFS=$as_save_IFS 1764 test -z "$as_dir" && as_dir=. 1765 for ac_exec_ext in '' $ac_executable_extensions; do 1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1767 ac_cv_prog_AWK="$ac_prog" 1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1769 break 2 1770 fi 1771done 1772done 1773 1774fi 1775fi 1776AWK=$ac_cv_prog_AWK 1777if test -n "$AWK"; then 1778 echo "$as_me:$LINENO: result: $AWK" >&5 1779echo "${ECHO_T}$AWK" >&6 1780else 1781 echo "$as_me:$LINENO: result: no" >&5 1782echo "${ECHO_T}no" >&6 1783fi 1784 1785 test -n "$AWK" && break 1786done 1787 1788echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1789echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1790set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1791if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1792 echo $ECHO_N "(cached) $ECHO_C" >&6 1793else 1794 cat >conftest.make <<\_ACEOF 1795all: 1796 @echo 'ac_maketemp="$(MAKE)"' 1797_ACEOF 1798# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1799eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1800if test -n "$ac_maketemp"; then 1801 eval ac_cv_prog_make_${ac_make}_set=yes 1802else 1803 eval ac_cv_prog_make_${ac_make}_set=no 1804fi 1805rm -f conftest.make 1806fi 1807if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1808 echo "$as_me:$LINENO: result: yes" >&5 1809echo "${ECHO_T}yes" >&6 1810 SET_MAKE= 1811else 1812 echo "$as_me:$LINENO: result: no" >&5 1813echo "${ECHO_T}no" >&6 1814 SET_MAKE="MAKE=${MAKE-make}" 1815fi 1816 1817rm -rf .tst 2>/dev/null 1818mkdir .tst 2>/dev/null 1819if test -d .tst; then 1820 am__leading_dot=. 1821else 1822 am__leading_dot=_ 1823fi 1824rmdir .tst 2>/dev/null 1825 1826# test to see if srcdir already configured 1827if test "`cd $srcdir && pwd`" != "`pwd`" && 1828 test -f $srcdir/config.status; then 1829 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1830echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1831 { (exit 1); exit 1; }; } 1832fi 1833 1834# test whether we have cygpath 1835if test -z "$CYGPATH_W"; then 1836 if (cygpath --version) >/dev/null 2>/dev/null; then 1837 CYGPATH_W='cygpath -w' 1838 else 1839 CYGPATH_W=echo 1840 fi 1841fi 1842 1843 1844# Define the identity of the package. 1845 PACKAGE='xf86-video-imstt' 1846 VERSION='1.1.0' 1847 1848 1849cat >>confdefs.h <<_ACEOF 1850#define PACKAGE "$PACKAGE" 1851_ACEOF 1852 1853 1854cat >>confdefs.h <<_ACEOF 1855#define VERSION "$VERSION" 1856_ACEOF 1857 1858# Some tools Automake needs. 1859 1860ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1861 1862 1863AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1864 1865 1866AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1867 1868 1869AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1870 1871 1872MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1873 1874install_sh=${install_sh-"$am_aux_dir/install-sh"} 1875 1876# Installed binaries are usually stripped using `strip' when the user 1877# run `make install-strip'. However `strip' might not be the right 1878# tool to use in cross-compilation environments, therefore Automake 1879# will honor the `STRIP' environment variable to overrule this program. 1880if test "$cross_compiling" != no; then 1881 if test -n "$ac_tool_prefix"; then 1882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1883set dummy ${ac_tool_prefix}strip; ac_word=$2 1884echo "$as_me:$LINENO: checking for $ac_word" >&5 1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1886if test "${ac_cv_prog_STRIP+set}" = set; then 1887 echo $ECHO_N "(cached) $ECHO_C" >&6 1888else 1889 if test -n "$STRIP"; then 1890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1891else 1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1893for as_dir in $PATH 1894do 1895 IFS=$as_save_IFS 1896 test -z "$as_dir" && as_dir=. 1897 for ac_exec_ext in '' $ac_executable_extensions; do 1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1899 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1901 break 2 1902 fi 1903done 1904done 1905 1906fi 1907fi 1908STRIP=$ac_cv_prog_STRIP 1909if test -n "$STRIP"; then 1910 echo "$as_me:$LINENO: result: $STRIP" >&5 1911echo "${ECHO_T}$STRIP" >&6 1912else 1913 echo "$as_me:$LINENO: result: no" >&5 1914echo "${ECHO_T}no" >&6 1915fi 1916 1917fi 1918if test -z "$ac_cv_prog_STRIP"; then 1919 ac_ct_STRIP=$STRIP 1920 # Extract the first word of "strip", so it can be a program name with args. 1921set dummy strip; ac_word=$2 1922echo "$as_me:$LINENO: checking for $ac_word" >&5 1923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1924if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1925 echo $ECHO_N "(cached) $ECHO_C" >&6 1926else 1927 if test -n "$ac_ct_STRIP"; then 1928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1929else 1930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1931for as_dir in $PATH 1932do 1933 IFS=$as_save_IFS 1934 test -z "$as_dir" && as_dir=. 1935 for ac_exec_ext in '' $ac_executable_extensions; do 1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1937 ac_cv_prog_ac_ct_STRIP="strip" 1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1939 break 2 1940 fi 1941done 1942done 1943 1944 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1945fi 1946fi 1947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1948if test -n "$ac_ct_STRIP"; then 1949 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1950echo "${ECHO_T}$ac_ct_STRIP" >&6 1951else 1952 echo "$as_me:$LINENO: result: no" >&5 1953echo "${ECHO_T}no" >&6 1954fi 1955 1956 STRIP=$ac_ct_STRIP 1957else 1958 STRIP="$ac_cv_prog_STRIP" 1959fi 1960 1961fi 1962INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1963 1964# We need awk for the "check" target. The system "awk" is bad on 1965# some platforms. 1966# Always define AMTAR for backward compatibility. 1967 1968AMTAR=${AMTAR-"${am_missing_run}tar"} 1969 1970am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1971 1972 1973 1974 1975 1976 1977echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1978echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1979 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1980if test "${enable_maintainer_mode+set}" = set; then 1981 enableval="$enable_maintainer_mode" 1982 USE_MAINTAINER_MODE=$enableval 1983else 1984 USE_MAINTAINER_MODE=no 1985fi; 1986 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1987echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1988 1989 1990if test $USE_MAINTAINER_MODE = yes; then 1991 MAINTAINER_MODE_TRUE= 1992 MAINTAINER_MODE_FALSE='#' 1993else 1994 MAINTAINER_MODE_TRUE='#' 1995 MAINTAINER_MODE_FALSE= 1996fi 1997 1998 MAINT=$MAINTAINER_MODE_TRUE 1999 2000 2001 2002# Checks for programs. 2003# Check whether --enable-static or --disable-static was given. 2004if test "${enable_static+set}" = set; then 2005 enableval="$enable_static" 2006 p=${PACKAGE-default} 2007 case $enableval in 2008 yes) enable_static=yes ;; 2009 no) enable_static=no ;; 2010 *) 2011 enable_static=no 2012 # Look at the argument we got. We use all the common list separators. 2013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2014 for pkg in $enableval; do 2015 IFS="$lt_save_ifs" 2016 if test "X$pkg" = "X$p"; then 2017 enable_static=yes 2018 fi 2019 done 2020 IFS="$lt_save_ifs" 2021 ;; 2022 esac 2023else 2024 enable_static=no 2025fi; 2026 2027 2028# Check whether --enable-shared or --disable-shared was given. 2029if test "${enable_shared+set}" = set; then 2030 enableval="$enable_shared" 2031 p=${PACKAGE-default} 2032 case $enableval in 2033 yes) enable_shared=yes ;; 2034 no) enable_shared=no ;; 2035 *) 2036 enable_shared=no 2037 # Look at the argument we got. We use all the common list separators. 2038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2039 for pkg in $enableval; do 2040 IFS="$lt_save_ifs" 2041 if test "X$pkg" = "X$p"; then 2042 enable_shared=yes 2043 fi 2044 done 2045 IFS="$lt_save_ifs" 2046 ;; 2047 esac 2048else 2049 enable_shared=yes 2050fi; 2051 2052# Check whether --enable-fast-install or --disable-fast-install was given. 2053if test "${enable_fast_install+set}" = set; then 2054 enableval="$enable_fast_install" 2055 p=${PACKAGE-default} 2056 case $enableval in 2057 yes) enable_fast_install=yes ;; 2058 no) enable_fast_install=no ;; 2059 *) 2060 enable_fast_install=no 2061 # Look at the argument we got. We use all the common list separators. 2062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2063 for pkg in $enableval; do 2064 IFS="$lt_save_ifs" 2065 if test "X$pkg" = "X$p"; then 2066 enable_fast_install=yes 2067 fi 2068 done 2069 IFS="$lt_save_ifs" 2070 ;; 2071 esac 2072else 2073 enable_fast_install=yes 2074fi; 2075 2076# Make sure we can run config.sub. 2077$ac_config_sub sun4 >/dev/null 2>&1 || 2078 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2079echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2080 { (exit 1); exit 1; }; } 2081 2082echo "$as_me:$LINENO: checking build system type" >&5 2083echo $ECHO_N "checking build system type... $ECHO_C" >&6 2084if test "${ac_cv_build+set}" = set; then 2085 echo $ECHO_N "(cached) $ECHO_C" >&6 2086else 2087 ac_cv_build_alias=$build_alias 2088test -z "$ac_cv_build_alias" && 2089 ac_cv_build_alias=`$ac_config_guess` 2090test -z "$ac_cv_build_alias" && 2091 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2092echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2093 { (exit 1); exit 1; }; } 2094ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2095 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2096echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2097 { (exit 1); exit 1; }; } 2098 2099fi 2100echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2101echo "${ECHO_T}$ac_cv_build" >&6 2102build=$ac_cv_build 2103build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2104build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2105build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2106 2107 2108echo "$as_me:$LINENO: checking host system type" >&5 2109echo $ECHO_N "checking host system type... $ECHO_C" >&6 2110if test "${ac_cv_host+set}" = set; then 2111 echo $ECHO_N "(cached) $ECHO_C" >&6 2112else 2113 ac_cv_host_alias=$host_alias 2114test -z "$ac_cv_host_alias" && 2115 ac_cv_host_alias=$ac_cv_build_alias 2116ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2117 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2118echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2119 { (exit 1); exit 1; }; } 2120 2121fi 2122echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2123echo "${ECHO_T}$ac_cv_host" >&6 2124host=$ac_cv_host 2125host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2126host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2127host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2128 2129 2130DEPDIR="${am__leading_dot}deps" 2131 2132 ac_config_commands="$ac_config_commands depfiles" 2133 2134 2135am_make=${MAKE-make} 2136cat > confinc << 'END' 2137am__doit: 2138 @echo done 2139.PHONY: am__doit 2140END 2141# If we don't find an include directive, just comment out the code. 2142echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2143echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2144am__include="#" 2145am__quote= 2146_am_result=none 2147# First try GNU make style include. 2148echo "include confinc" > confmf 2149# We grep out `Entering directory' and `Leaving directory' 2150# messages which can occur if `w' ends up in MAKEFLAGS. 2151# In particular we don't look at `^make:' because GNU make might 2152# be invoked under some other name (usually "gmake"), in which 2153# case it prints its new name instead of `make'. 2154if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2155 am__include=include 2156 am__quote= 2157 _am_result=GNU 2158fi 2159# Now try BSD make style include. 2160if test "$am__include" = "#"; then 2161 echo '.include "confinc"' > confmf 2162 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2163 am__include=.include 2164 am__quote="\"" 2165 _am_result=BSD 2166 fi 2167fi 2168 2169 2170echo "$as_me:$LINENO: result: $_am_result" >&5 2171echo "${ECHO_T}$_am_result" >&6 2172rm -f confinc confmf 2173 2174# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2175if test "${enable_dependency_tracking+set}" = set; then 2176 enableval="$enable_dependency_tracking" 2177 2178fi; 2179if test "x$enable_dependency_tracking" != xno; then 2180 am_depcomp="$ac_aux_dir/depcomp" 2181 AMDEPBACKSLASH='\' 2182fi 2183 2184 2185if test "x$enable_dependency_tracking" != xno; then 2186 AMDEP_TRUE= 2187 AMDEP_FALSE='#' 2188else 2189 AMDEP_TRUE='#' 2190 AMDEP_FALSE= 2191fi 2192 2193 2194 2195ac_ext=c 2196ac_cpp='$CPP $CPPFLAGS' 2197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2199ac_compiler_gnu=$ac_cv_c_compiler_gnu 2200if test -n "$ac_tool_prefix"; then 2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2202set dummy ${ac_tool_prefix}gcc; ac_word=$2 2203echo "$as_me:$LINENO: checking for $ac_word" >&5 2204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2205if test "${ac_cv_prog_CC+set}" = set; then 2206 echo $ECHO_N "(cached) $ECHO_C" >&6 2207else 2208 if test -n "$CC"; then 2209 ac_cv_prog_CC="$CC" # Let the user override the test. 2210else 2211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2212for as_dir in $PATH 2213do 2214 IFS=$as_save_IFS 2215 test -z "$as_dir" && as_dir=. 2216 for ac_exec_ext in '' $ac_executable_extensions; do 2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2218 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2220 break 2 2221 fi 2222done 2223done 2224 2225fi 2226fi 2227CC=$ac_cv_prog_CC 2228if test -n "$CC"; then 2229 echo "$as_me:$LINENO: result: $CC" >&5 2230echo "${ECHO_T}$CC" >&6 2231else 2232 echo "$as_me:$LINENO: result: no" >&5 2233echo "${ECHO_T}no" >&6 2234fi 2235 2236fi 2237if test -z "$ac_cv_prog_CC"; then 2238 ac_ct_CC=$CC 2239 # Extract the first word of "gcc", so it can be a program name with args. 2240set dummy gcc; ac_word=$2 2241echo "$as_me:$LINENO: checking for $ac_word" >&5 2242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2243if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2244 echo $ECHO_N "(cached) $ECHO_C" >&6 2245else 2246 if test -n "$ac_ct_CC"; then 2247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2248else 2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2250for as_dir in $PATH 2251do 2252 IFS=$as_save_IFS 2253 test -z "$as_dir" && as_dir=. 2254 for ac_exec_ext in '' $ac_executable_extensions; do 2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2256 ac_cv_prog_ac_ct_CC="gcc" 2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2258 break 2 2259 fi 2260done 2261done 2262 2263fi 2264fi 2265ac_ct_CC=$ac_cv_prog_ac_ct_CC 2266if test -n "$ac_ct_CC"; then 2267 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2268echo "${ECHO_T}$ac_ct_CC" >&6 2269else 2270 echo "$as_me:$LINENO: result: no" >&5 2271echo "${ECHO_T}no" >&6 2272fi 2273 2274 CC=$ac_ct_CC 2275else 2276 CC="$ac_cv_prog_CC" 2277fi 2278 2279if test -z "$CC"; then 2280 if test -n "$ac_tool_prefix"; then 2281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2282set dummy ${ac_tool_prefix}cc; ac_word=$2 2283echo "$as_me:$LINENO: checking for $ac_word" >&5 2284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2285if test "${ac_cv_prog_CC+set}" = set; then 2286 echo $ECHO_N "(cached) $ECHO_C" >&6 2287else 2288 if test -n "$CC"; then 2289 ac_cv_prog_CC="$CC" # Let the user override the test. 2290else 2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2292for as_dir in $PATH 2293do 2294 IFS=$as_save_IFS 2295 test -z "$as_dir" && as_dir=. 2296 for ac_exec_ext in '' $ac_executable_extensions; do 2297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2298 ac_cv_prog_CC="${ac_tool_prefix}cc" 2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2300 break 2 2301 fi 2302done 2303done 2304 2305fi 2306fi 2307CC=$ac_cv_prog_CC 2308if test -n "$CC"; then 2309 echo "$as_me:$LINENO: result: $CC" >&5 2310echo "${ECHO_T}$CC" >&6 2311else 2312 echo "$as_me:$LINENO: result: no" >&5 2313echo "${ECHO_T}no" >&6 2314fi 2315 2316fi 2317if test -z "$ac_cv_prog_CC"; then 2318 ac_ct_CC=$CC 2319 # Extract the first word of "cc", so it can be a program name with args. 2320set dummy cc; ac_word=$2 2321echo "$as_me:$LINENO: checking for $ac_word" >&5 2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2323if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2324 echo $ECHO_N "(cached) $ECHO_C" >&6 2325else 2326 if test -n "$ac_ct_CC"; then 2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2328else 2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2330for as_dir in $PATH 2331do 2332 IFS=$as_save_IFS 2333 test -z "$as_dir" && as_dir=. 2334 for ac_exec_ext in '' $ac_executable_extensions; do 2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2336 ac_cv_prog_ac_ct_CC="cc" 2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2338 break 2 2339 fi 2340done 2341done 2342 2343fi 2344fi 2345ac_ct_CC=$ac_cv_prog_ac_ct_CC 2346if test -n "$ac_ct_CC"; then 2347 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2348echo "${ECHO_T}$ac_ct_CC" >&6 2349else 2350 echo "$as_me:$LINENO: result: no" >&5 2351echo "${ECHO_T}no" >&6 2352fi 2353 2354 CC=$ac_ct_CC 2355else 2356 CC="$ac_cv_prog_CC" 2357fi 2358 2359fi 2360if test -z "$CC"; then 2361 # Extract the first word of "cc", so it can be a program name with args. 2362set dummy cc; ac_word=$2 2363echo "$as_me:$LINENO: checking for $ac_word" >&5 2364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2365if test "${ac_cv_prog_CC+set}" = set; then 2366 echo $ECHO_N "(cached) $ECHO_C" >&6 2367else 2368 if test -n "$CC"; then 2369 ac_cv_prog_CC="$CC" # Let the user override the test. 2370else 2371 ac_prog_rejected=no 2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2373for as_dir in $PATH 2374do 2375 IFS=$as_save_IFS 2376 test -z "$as_dir" && as_dir=. 2377 for ac_exec_ext in '' $ac_executable_extensions; do 2378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2380 ac_prog_rejected=yes 2381 continue 2382 fi 2383 ac_cv_prog_CC="cc" 2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2385 break 2 2386 fi 2387done 2388done 2389 2390if test $ac_prog_rejected = yes; then 2391 # We found a bogon in the path, so make sure we never use it. 2392 set dummy $ac_cv_prog_CC 2393 shift 2394 if test $# != 0; then 2395 # We chose a different compiler from the bogus one. 2396 # However, it has the same basename, so the bogon will be chosen 2397 # first if we set CC to just the basename; use the full file name. 2398 shift 2399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2400 fi 2401fi 2402fi 2403fi 2404CC=$ac_cv_prog_CC 2405if test -n "$CC"; then 2406 echo "$as_me:$LINENO: result: $CC" >&5 2407echo "${ECHO_T}$CC" >&6 2408else 2409 echo "$as_me:$LINENO: result: no" >&5 2410echo "${ECHO_T}no" >&6 2411fi 2412 2413fi 2414if test -z "$CC"; then 2415 if test -n "$ac_tool_prefix"; then 2416 for ac_prog in cl 2417 do 2418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2419set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2420echo "$as_me:$LINENO: checking for $ac_word" >&5 2421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2422if test "${ac_cv_prog_CC+set}" = set; then 2423 echo $ECHO_N "(cached) $ECHO_C" >&6 2424else 2425 if test -n "$CC"; then 2426 ac_cv_prog_CC="$CC" # Let the user override the test. 2427else 2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2429for as_dir in $PATH 2430do 2431 IFS=$as_save_IFS 2432 test -z "$as_dir" && as_dir=. 2433 for ac_exec_ext in '' $ac_executable_extensions; do 2434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2437 break 2 2438 fi 2439done 2440done 2441 2442fi 2443fi 2444CC=$ac_cv_prog_CC 2445if test -n "$CC"; then 2446 echo "$as_me:$LINENO: result: $CC" >&5 2447echo "${ECHO_T}$CC" >&6 2448else 2449 echo "$as_me:$LINENO: result: no" >&5 2450echo "${ECHO_T}no" >&6 2451fi 2452 2453 test -n "$CC" && break 2454 done 2455fi 2456if test -z "$CC"; then 2457 ac_ct_CC=$CC 2458 for ac_prog in cl 2459do 2460 # Extract the first word of "$ac_prog", so it can be a program name with args. 2461set dummy $ac_prog; ac_word=$2 2462echo "$as_me:$LINENO: checking for $ac_word" >&5 2463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2464if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2465 echo $ECHO_N "(cached) $ECHO_C" >&6 2466else 2467 if test -n "$ac_ct_CC"; then 2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2469else 2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471for as_dir in $PATH 2472do 2473 IFS=$as_save_IFS 2474 test -z "$as_dir" && as_dir=. 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2477 ac_cv_prog_ac_ct_CC="$ac_prog" 2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481done 2482done 2483 2484fi 2485fi 2486ac_ct_CC=$ac_cv_prog_ac_ct_CC 2487if test -n "$ac_ct_CC"; then 2488 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2489echo "${ECHO_T}$ac_ct_CC" >&6 2490else 2491 echo "$as_me:$LINENO: result: no" >&5 2492echo "${ECHO_T}no" >&6 2493fi 2494 2495 test -n "$ac_ct_CC" && break 2496done 2497 2498 CC=$ac_ct_CC 2499fi 2500 2501fi 2502 2503 2504test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2505See \`config.log' for more details." >&5 2506echo "$as_me: error: no acceptable C compiler found in \$PATH 2507See \`config.log' for more details." >&2;} 2508 { (exit 1); exit 1; }; } 2509 2510# Provide some information about the compiler. 2511echo "$as_me:$LINENO:" \ 2512 "checking for C compiler version" >&5 2513ac_compiler=`set X $ac_compile; echo $2` 2514{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2515 (eval $ac_compiler --version </dev/null >&5) 2>&5 2516 ac_status=$? 2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2518 (exit $ac_status); } 2519{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2520 (eval $ac_compiler -v </dev/null >&5) 2>&5 2521 ac_status=$? 2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2523 (exit $ac_status); } 2524{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2525 (eval $ac_compiler -V </dev/null >&5) 2>&5 2526 ac_status=$? 2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2528 (exit $ac_status); } 2529 2530cat >conftest.$ac_ext <<_ACEOF 2531/* confdefs.h. */ 2532_ACEOF 2533cat confdefs.h >>conftest.$ac_ext 2534cat >>conftest.$ac_ext <<_ACEOF 2535/* end confdefs.h. */ 2536 2537int 2538main () 2539{ 2540 2541 ; 2542 return 0; 2543} 2544_ACEOF 2545ac_clean_files_save=$ac_clean_files 2546ac_clean_files="$ac_clean_files a.out a.exe b.out" 2547# Try to create an executable without -o first, disregard a.out. 2548# It will help us diagnose broken compilers, and finding out an intuition 2549# of exeext. 2550echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2551echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2552ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2553if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2554 (eval $ac_link_default) 2>&5 2555 ac_status=$? 2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2557 (exit $ac_status); }; then 2558 # Find the output, starting from the most likely. This scheme is 2559# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2560# resort. 2561 2562# Be careful to initialize this variable, since it used to be cached. 2563# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2564ac_cv_exeext= 2565# b.out is created by i960 compilers. 2566for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2567do 2568 test -f "$ac_file" || continue 2569 case $ac_file in 2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2571 ;; 2572 conftest.$ac_ext ) 2573 # This is the source file. 2574 ;; 2575 [ab].out ) 2576 # We found the default executable, but exeext='' is most 2577 # certainly right. 2578 break;; 2579 *.* ) 2580 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2581 # FIXME: I believe we export ac_cv_exeext for Libtool, 2582 # but it would be cool to find out if it's true. Does anybody 2583 # maintain Libtool? --akim. 2584 export ac_cv_exeext 2585 break;; 2586 * ) 2587 break;; 2588 esac 2589done 2590else 2591 echo "$as_me: failed program was:" >&5 2592sed 's/^/| /' conftest.$ac_ext >&5 2593 2594{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2595See \`config.log' for more details." >&5 2596echo "$as_me: error: C compiler cannot create executables 2597See \`config.log' for more details." >&2;} 2598 { (exit 77); exit 77; }; } 2599fi 2600 2601ac_exeext=$ac_cv_exeext 2602echo "$as_me:$LINENO: result: $ac_file" >&5 2603echo "${ECHO_T}$ac_file" >&6 2604 2605# Check the compiler produces executables we can run. If not, either 2606# the compiler is broken, or we cross compile. 2607echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2608echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2609# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2610# If not cross compiling, check that we can run a simple program. 2611if test "$cross_compiling" != yes; then 2612 if { ac_try='./$ac_file' 2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2614 (eval $ac_try) 2>&5 2615 ac_status=$? 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2617 (exit $ac_status); }; }; then 2618 cross_compiling=no 2619 else 2620 if test "$cross_compiling" = maybe; then 2621 cross_compiling=yes 2622 else 2623 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2624If you meant to cross compile, use \`--host'. 2625See \`config.log' for more details." >&5 2626echo "$as_me: error: cannot run C compiled programs. 2627If you meant to cross compile, use \`--host'. 2628See \`config.log' for more details." >&2;} 2629 { (exit 1); exit 1; }; } 2630 fi 2631 fi 2632fi 2633echo "$as_me:$LINENO: result: yes" >&5 2634echo "${ECHO_T}yes" >&6 2635 2636rm -f a.out a.exe conftest$ac_cv_exeext b.out 2637ac_clean_files=$ac_clean_files_save 2638# Check the compiler produces executables we can run. If not, either 2639# the compiler is broken, or we cross compile. 2640echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2641echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2642echo "$as_me:$LINENO: result: $cross_compiling" >&5 2643echo "${ECHO_T}$cross_compiling" >&6 2644 2645echo "$as_me:$LINENO: checking for suffix of executables" >&5 2646echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2648 (eval $ac_link) 2>&5 2649 ac_status=$? 2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2651 (exit $ac_status); }; then 2652 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2653# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2654# work properly (i.e., refer to `conftest.exe'), while it won't with 2655# `rm'. 2656for ac_file in conftest.exe conftest conftest.*; do 2657 test -f "$ac_file" || continue 2658 case $ac_file in 2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2661 export ac_cv_exeext 2662 break;; 2663 * ) break;; 2664 esac 2665done 2666else 2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2668See \`config.log' for more details." >&5 2669echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2670See \`config.log' for more details." >&2;} 2671 { (exit 1); exit 1; }; } 2672fi 2673 2674rm -f conftest$ac_cv_exeext 2675echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2676echo "${ECHO_T}$ac_cv_exeext" >&6 2677 2678rm -f conftest.$ac_ext 2679EXEEXT=$ac_cv_exeext 2680ac_exeext=$EXEEXT 2681echo "$as_me:$LINENO: checking for suffix of object files" >&5 2682echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2683if test "${ac_cv_objext+set}" = set; then 2684 echo $ECHO_N "(cached) $ECHO_C" >&6 2685else 2686 cat >conftest.$ac_ext <<_ACEOF 2687/* confdefs.h. */ 2688_ACEOF 2689cat confdefs.h >>conftest.$ac_ext 2690cat >>conftest.$ac_ext <<_ACEOF 2691/* end confdefs.h. */ 2692 2693int 2694main () 2695{ 2696 2697 ; 2698 return 0; 2699} 2700_ACEOF 2701rm -f conftest.o conftest.obj 2702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2703 (eval $ac_compile) 2>&5 2704 ac_status=$? 2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2706 (exit $ac_status); }; then 2707 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2708 case $ac_file in 2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2711 break;; 2712 esac 2713done 2714else 2715 echo "$as_me: failed program was:" >&5 2716sed 's/^/| /' conftest.$ac_ext >&5 2717 2718{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2719See \`config.log' for more details." >&5 2720echo "$as_me: error: cannot compute suffix of object files: cannot compile 2721See \`config.log' for more details." >&2;} 2722 { (exit 1); exit 1; }; } 2723fi 2724 2725rm -f conftest.$ac_cv_objext conftest.$ac_ext 2726fi 2727echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2728echo "${ECHO_T}$ac_cv_objext" >&6 2729OBJEXT=$ac_cv_objext 2730ac_objext=$OBJEXT 2731echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2732echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2733if test "${ac_cv_c_compiler_gnu+set}" = set; then 2734 echo $ECHO_N "(cached) $ECHO_C" >&6 2735else 2736 cat >conftest.$ac_ext <<_ACEOF 2737/* confdefs.h. */ 2738_ACEOF 2739cat confdefs.h >>conftest.$ac_ext 2740cat >>conftest.$ac_ext <<_ACEOF 2741/* end confdefs.h. */ 2742 2743int 2744main () 2745{ 2746#ifndef __GNUC__ 2747 choke me 2748#endif 2749 2750 ; 2751 return 0; 2752} 2753_ACEOF 2754rm -f conftest.$ac_objext 2755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2756 (eval $ac_compile) 2>conftest.er1 2757 ac_status=$? 2758 grep -v '^ *+' conftest.er1 >conftest.err 2759 rm -f conftest.er1 2760 cat conftest.err >&5 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); } && 2763 { ac_try='test -z "$ac_c_werror_flag" 2764 || test ! -s conftest.err' 2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2766 (eval $ac_try) 2>&5 2767 ac_status=$? 2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2769 (exit $ac_status); }; } && 2770 { ac_try='test -s conftest.$ac_objext' 2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2772 (eval $ac_try) 2>&5 2773 ac_status=$? 2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2775 (exit $ac_status); }; }; then 2776 ac_compiler_gnu=yes 2777else 2778 echo "$as_me: failed program was:" >&5 2779sed 's/^/| /' conftest.$ac_ext >&5 2780 2781ac_compiler_gnu=no 2782fi 2783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2784ac_cv_c_compiler_gnu=$ac_compiler_gnu 2785 2786fi 2787echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2788echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2789GCC=`test $ac_compiler_gnu = yes && echo yes` 2790ac_test_CFLAGS=${CFLAGS+set} 2791ac_save_CFLAGS=$CFLAGS 2792CFLAGS="-g" 2793echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2794echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2795if test "${ac_cv_prog_cc_g+set}" = set; then 2796 echo $ECHO_N "(cached) $ECHO_C" >&6 2797else 2798 cat >conftest.$ac_ext <<_ACEOF 2799/* confdefs.h. */ 2800_ACEOF 2801cat confdefs.h >>conftest.$ac_ext 2802cat >>conftest.$ac_ext <<_ACEOF 2803/* end confdefs.h. */ 2804 2805int 2806main () 2807{ 2808 2809 ; 2810 return 0; 2811} 2812_ACEOF 2813rm -f conftest.$ac_objext 2814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2815 (eval $ac_compile) 2>conftest.er1 2816 ac_status=$? 2817 grep -v '^ *+' conftest.er1 >conftest.err 2818 rm -f conftest.er1 2819 cat conftest.err >&5 2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2821 (exit $ac_status); } && 2822 { ac_try='test -z "$ac_c_werror_flag" 2823 || test ! -s conftest.err' 2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2825 (eval $ac_try) 2>&5 2826 ac_status=$? 2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2828 (exit $ac_status); }; } && 2829 { ac_try='test -s conftest.$ac_objext' 2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2831 (eval $ac_try) 2>&5 2832 ac_status=$? 2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2834 (exit $ac_status); }; }; then 2835 ac_cv_prog_cc_g=yes 2836else 2837 echo "$as_me: failed program was:" >&5 2838sed 's/^/| /' conftest.$ac_ext >&5 2839 2840ac_cv_prog_cc_g=no 2841fi 2842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2843fi 2844echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2845echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2846if test "$ac_test_CFLAGS" = set; then 2847 CFLAGS=$ac_save_CFLAGS 2848elif test $ac_cv_prog_cc_g = yes; then 2849 if test "$GCC" = yes; then 2850 CFLAGS="-g -O2" 2851 else 2852 CFLAGS="-g" 2853 fi 2854else 2855 if test "$GCC" = yes; then 2856 CFLAGS="-O2" 2857 else 2858 CFLAGS= 2859 fi 2860fi 2861echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2862echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2863if test "${ac_cv_prog_cc_stdc+set}" = set; then 2864 echo $ECHO_N "(cached) $ECHO_C" >&6 2865else 2866 ac_cv_prog_cc_stdc=no 2867ac_save_CC=$CC 2868cat >conftest.$ac_ext <<_ACEOF 2869/* confdefs.h. */ 2870_ACEOF 2871cat confdefs.h >>conftest.$ac_ext 2872cat >>conftest.$ac_ext <<_ACEOF 2873/* end confdefs.h. */ 2874#include <stdarg.h> 2875#include <stdio.h> 2876#include <sys/types.h> 2877#include <sys/stat.h> 2878/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2879struct buf { int x; }; 2880FILE * (*rcsopen) (struct buf *, struct stat *, int); 2881static char *e (p, i) 2882 char **p; 2883 int i; 2884{ 2885 return p[i]; 2886} 2887static char *f (char * (*g) (char **, int), char **p, ...) 2888{ 2889 char *s; 2890 va_list v; 2891 va_start (v,p); 2892 s = g (p, va_arg (v,int)); 2893 va_end (v); 2894 return s; 2895} 2896 2897/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2898 function prototypes and stuff, but not '\xHH' hex character constants. 2899 These don't provoke an error unfortunately, instead are silently treated 2900 as 'x'. The following induces an error, until -std1 is added to get 2901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2902 array size at least. It's necessary to write '\x00'==0 to get something 2903 that's true only with -std1. */ 2904int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2905 2906int test (int i, double x); 2907struct s1 {int (*f) (int a);}; 2908struct s2 {int (*f) (double a);}; 2909int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2910int argc; 2911char **argv; 2912int 2913main () 2914{ 2915return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2916 ; 2917 return 0; 2918} 2919_ACEOF 2920# Don't try gcc -ansi; that turns off useful extensions and 2921# breaks some systems' header files. 2922# AIX -qlanglvl=ansi 2923# Ultrix and OSF/1 -std1 2924# HP-UX 10.20 and later -Ae 2925# HP-UX older versions -Aa -D_HPUX_SOURCE 2926# SVR4 -Xc -D__EXTENSIONS__ 2927for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2928do 2929 CC="$ac_save_CC $ac_arg" 2930 rm -f conftest.$ac_objext 2931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2932 (eval $ac_compile) 2>conftest.er1 2933 ac_status=$? 2934 grep -v '^ *+' conftest.er1 >conftest.err 2935 rm -f conftest.er1 2936 cat conftest.err >&5 2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2938 (exit $ac_status); } && 2939 { ac_try='test -z "$ac_c_werror_flag" 2940 || test ! -s conftest.err' 2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2942 (eval $ac_try) 2>&5 2943 ac_status=$? 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); }; } && 2946 { ac_try='test -s conftest.$ac_objext' 2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2948 (eval $ac_try) 2>&5 2949 ac_status=$? 2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951 (exit $ac_status); }; }; then 2952 ac_cv_prog_cc_stdc=$ac_arg 2953break 2954else 2955 echo "$as_me: failed program was:" >&5 2956sed 's/^/| /' conftest.$ac_ext >&5 2957 2958fi 2959rm -f conftest.err conftest.$ac_objext 2960done 2961rm -f conftest.$ac_ext conftest.$ac_objext 2962CC=$ac_save_CC 2963 2964fi 2965 2966case "x$ac_cv_prog_cc_stdc" in 2967 x|xno) 2968 echo "$as_me:$LINENO: result: none needed" >&5 2969echo "${ECHO_T}none needed" >&6 ;; 2970 *) 2971 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2972echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2973 CC="$CC $ac_cv_prog_cc_stdc" ;; 2974esac 2975 2976# Some people use a C++ compiler to compile C. Since we use `exit', 2977# in C++ we need to declare it. In case someone uses the same compiler 2978# for both compiling C and C++ we need to have the C++ compiler decide 2979# the declaration of exit, since it's the most demanding environment. 2980cat >conftest.$ac_ext <<_ACEOF 2981#ifndef __cplusplus 2982 choke me 2983#endif 2984_ACEOF 2985rm -f conftest.$ac_objext 2986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2987 (eval $ac_compile) 2>conftest.er1 2988 ac_status=$? 2989 grep -v '^ *+' conftest.er1 >conftest.err 2990 rm -f conftest.er1 2991 cat conftest.err >&5 2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2993 (exit $ac_status); } && 2994 { ac_try='test -z "$ac_c_werror_flag" 2995 || test ! -s conftest.err' 2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2997 (eval $ac_try) 2>&5 2998 ac_status=$? 2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3000 (exit $ac_status); }; } && 3001 { ac_try='test -s conftest.$ac_objext' 3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3003 (eval $ac_try) 2>&5 3004 ac_status=$? 3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); }; }; then 3007 for ac_declaration in \ 3008 '' \ 3009 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3010 'extern "C" void std::exit (int); using std::exit;' \ 3011 'extern "C" void exit (int) throw ();' \ 3012 'extern "C" void exit (int);' \ 3013 'void exit (int);' 3014do 3015 cat >conftest.$ac_ext <<_ACEOF 3016/* confdefs.h. */ 3017_ACEOF 3018cat confdefs.h >>conftest.$ac_ext 3019cat >>conftest.$ac_ext <<_ACEOF 3020/* end confdefs.h. */ 3021$ac_declaration 3022#include <stdlib.h> 3023int 3024main () 3025{ 3026exit (42); 3027 ; 3028 return 0; 3029} 3030_ACEOF 3031rm -f conftest.$ac_objext 3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3033 (eval $ac_compile) 2>conftest.er1 3034 ac_status=$? 3035 grep -v '^ *+' conftest.er1 >conftest.err 3036 rm -f conftest.er1 3037 cat conftest.err >&5 3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); } && 3040 { ac_try='test -z "$ac_c_werror_flag" 3041 || test ! -s conftest.err' 3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3043 (eval $ac_try) 2>&5 3044 ac_status=$? 3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3046 (exit $ac_status); }; } && 3047 { ac_try='test -s conftest.$ac_objext' 3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3049 (eval $ac_try) 2>&5 3050 ac_status=$? 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); }; }; then 3053 : 3054else 3055 echo "$as_me: failed program was:" >&5 3056sed 's/^/| /' conftest.$ac_ext >&5 3057 3058continue 3059fi 3060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3061 cat >conftest.$ac_ext <<_ACEOF 3062/* confdefs.h. */ 3063_ACEOF 3064cat confdefs.h >>conftest.$ac_ext 3065cat >>conftest.$ac_ext <<_ACEOF 3066/* end confdefs.h. */ 3067$ac_declaration 3068int 3069main () 3070{ 3071exit (42); 3072 ; 3073 return 0; 3074} 3075_ACEOF 3076rm -f conftest.$ac_objext 3077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3078 (eval $ac_compile) 2>conftest.er1 3079 ac_status=$? 3080 grep -v '^ *+' conftest.er1 >conftest.err 3081 rm -f conftest.er1 3082 cat conftest.err >&5 3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3084 (exit $ac_status); } && 3085 { ac_try='test -z "$ac_c_werror_flag" 3086 || test ! -s conftest.err' 3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3088 (eval $ac_try) 2>&5 3089 ac_status=$? 3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3091 (exit $ac_status); }; } && 3092 { ac_try='test -s conftest.$ac_objext' 3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3094 (eval $ac_try) 2>&5 3095 ac_status=$? 3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3097 (exit $ac_status); }; }; then 3098 break 3099else 3100 echo "$as_me: failed program was:" >&5 3101sed 's/^/| /' conftest.$ac_ext >&5 3102 3103fi 3104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3105done 3106rm -f conftest* 3107if test -n "$ac_declaration"; then 3108 echo '#ifdef __cplusplus' >>confdefs.h 3109 echo $ac_declaration >>confdefs.h 3110 echo '#endif' >>confdefs.h 3111fi 3112 3113else 3114 echo "$as_me: failed program was:" >&5 3115sed 's/^/| /' conftest.$ac_ext >&5 3116 3117fi 3118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3119ac_ext=c 3120ac_cpp='$CPP $CPPFLAGS' 3121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3123ac_compiler_gnu=$ac_cv_c_compiler_gnu 3124 3125depcc="$CC" am_compiler_list= 3126 3127echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3128echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3129if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3130 echo $ECHO_N "(cached) $ECHO_C" >&6 3131else 3132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3133 # We make a subdir and do the tests there. Otherwise we can end up 3134 # making bogus files that we don't know about and never remove. For 3135 # instance it was reported that on HP-UX the gcc test will end up 3136 # making a dummy file named `D' -- because `-MD' means `put the output 3137 # in D'. 3138 mkdir conftest.dir 3139 # Copy depcomp to subdir because otherwise we won't find it if we're 3140 # using a relative directory. 3141 cp "$am_depcomp" conftest.dir 3142 cd conftest.dir 3143 # We will build objects and dependencies in a subdirectory because 3144 # it helps to detect inapplicable dependency modes. For instance 3145 # both Tru64's cc and ICC support -MD to output dependencies as a 3146 # side effect of compilation, but ICC will put the dependencies in 3147 # the current directory while Tru64 will put them in the object 3148 # directory. 3149 mkdir sub 3150 3151 am_cv_CC_dependencies_compiler_type=none 3152 if test "$am_compiler_list" = ""; then 3153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3154 fi 3155 for depmode in $am_compiler_list; do 3156 # Setup a source with many dependencies, because some compilers 3157 # like to wrap large dependency lists on column 80 (with \), and 3158 # we should not choose a depcomp mode which is confused by this. 3159 # 3160 # We need to recreate these files for each test, as the compiler may 3161 # overwrite some of them when testing with obscure command lines. 3162 # This happens at least with the AIX C compiler. 3163 : > sub/conftest.c 3164 for i in 1 2 3 4 5 6; do 3165 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3166 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3167 # Solaris 8's {/usr,}/bin/sh. 3168 touch sub/conftst$i.h 3169 done 3170 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3171 3172 case $depmode in 3173 nosideeffect) 3174 # after this tag, mechanisms are not by side-effect, so they'll 3175 # only be used when explicitly requested 3176 if test "x$enable_dependency_tracking" = xyes; then 3177 continue 3178 else 3179 break 3180 fi 3181 ;; 3182 none) break ;; 3183 esac 3184 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3185 # mode. It turns out that the SunPro C++ compiler does not properly 3186 # handle `-M -o', and we need to detect this. 3187 if depmode=$depmode \ 3188 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3190 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3191 >/dev/null 2>conftest.err && 3192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3193 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3195 # icc doesn't choke on unknown options, it will just issue warnings 3196 # or remarks (even with -Werror). So we grep stderr for any message 3197 # that says an option was ignored or not supported. 3198 # When given -MP, icc 7.0 and 7.1 complain thusly: 3199 # icc: Command line warning: ignoring option '-M'; no argument required 3200 # The diagnosis changed in icc 8.0: 3201 # icc: Command line remark: option '-MP' not supported 3202 if (grep 'ignoring option' conftest.err || 3203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3204 am_cv_CC_dependencies_compiler_type=$depmode 3205 break 3206 fi 3207 fi 3208 done 3209 3210 cd .. 3211 rm -rf conftest.dir 3212else 3213 am_cv_CC_dependencies_compiler_type=none 3214fi 3215 3216fi 3217echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3218echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3219CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3220 3221 3222 3223if 3224 test "x$enable_dependency_tracking" != xno \ 3225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3226 am__fastdepCC_TRUE= 3227 am__fastdepCC_FALSE='#' 3228else 3229 am__fastdepCC_TRUE='#' 3230 am__fastdepCC_FALSE= 3231fi 3232 3233 3234echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3235echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3236if test "${lt_cv_path_SED+set}" = set; then 3237 echo $ECHO_N "(cached) $ECHO_C" >&6 3238else 3239 # Loop through the user's path and test for sed and gsed. 3240# Then use that list of sed's as ones to test for truncation. 3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3242for as_dir in $PATH 3243do 3244 IFS=$as_save_IFS 3245 test -z "$as_dir" && as_dir=. 3246 for lt_ac_prog in sed gsed; do 3247 for ac_exec_ext in '' $ac_executable_extensions; do 3248 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3249 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3250 fi 3251 done 3252 done 3253done 3254lt_ac_max=0 3255lt_ac_count=0 3256# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3257# along with /bin/sed that truncates output. 3258for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3259 test ! -f $lt_ac_sed && continue 3260 cat /dev/null > conftest.in 3261 lt_ac_count=0 3262 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3263 # Check for GNU sed and select it if it is found. 3264 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3265 lt_cv_path_SED=$lt_ac_sed 3266 break 3267 fi 3268 while true; do 3269 cat conftest.in conftest.in >conftest.tmp 3270 mv conftest.tmp conftest.in 3271 cp conftest.in conftest.nl 3272 echo >>conftest.nl 3273 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3274 cmp -s conftest.out conftest.nl || break 3275 # 10000 chars as input seems more than enough 3276 test $lt_ac_count -gt 10 && break 3277 lt_ac_count=`expr $lt_ac_count + 1` 3278 if test $lt_ac_count -gt $lt_ac_max; then 3279 lt_ac_max=$lt_ac_count 3280 lt_cv_path_SED=$lt_ac_sed 3281 fi 3282 done 3283done 3284 3285fi 3286 3287SED=$lt_cv_path_SED 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)); 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 9559# An ERE matcher. 9560EGREP=$lt_EGREP 9561 9562# The linker used to build libraries. 9563LD=$lt_LD 9564 9565# Whether we need hard or soft links. 9566LN_S=$lt_LN_S 9567 9568# A BSD-compatible nm program. 9569NM=$lt_NM 9570 9571# A symbol stripping program 9572STRIP=$lt_STRIP 9573 9574# Used to examine libraries when file_magic_cmd begins "file" 9575MAGIC_CMD=$MAGIC_CMD 9576 9577# Used on cygwin: DLL creation program. 9578DLLTOOL="$DLLTOOL" 9579 9580# Used on cygwin: object dumper. 9581OBJDUMP="$OBJDUMP" 9582 9583# Used on cygwin: assembler. 9584AS="$AS" 9585 9586# The name of the directory that contains temporary libtool files. 9587objdir=$objdir 9588 9589# How to create reloadable object files. 9590reload_flag=$lt_reload_flag 9591reload_cmds=$lt_reload_cmds 9592 9593# How to pass a linker flag through the compiler. 9594wl=$lt_lt_prog_compiler_wl 9595 9596# Object file suffix (normally "o"). 9597objext="$ac_objext" 9598 9599# Old archive suffix (normally "a"). 9600libext="$libext" 9601 9602# Shared library suffix (normally ".so"). 9603shrext_cmds='$shrext_cmds' 9604 9605# Executable file suffix (normally ""). 9606exeext="$exeext" 9607 9608# Additional compiler flags for building library objects. 9609pic_flag=$lt_lt_prog_compiler_pic 9610pic_mode=$pic_mode 9611 9612# What is the maximum length of a command? 9613max_cmd_len=$lt_cv_sys_max_cmd_len 9614 9615# Does compiler simultaneously support -c and -o options? 9616compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9617 9618# Must we lock files when doing compilation? 9619need_locks=$lt_need_locks 9620 9621# Do we need the lib prefix for modules? 9622need_lib_prefix=$need_lib_prefix 9623 9624# Do we need a version for libraries? 9625need_version=$need_version 9626 9627# Whether dlopen is supported. 9628dlopen_support=$enable_dlopen 9629 9630# Whether dlopen of programs is supported. 9631dlopen_self=$enable_dlopen_self 9632 9633# Whether dlopen of statically linked programs is supported. 9634dlopen_self_static=$enable_dlopen_self_static 9635 9636# Compiler flag to prevent dynamic linking. 9637link_static_flag=$lt_lt_prog_compiler_static 9638 9639# Compiler flag to turn off builtin functions. 9640no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9641 9642# Compiler flag to allow reflexive dlopens. 9643export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9644 9645# Compiler flag to generate shared objects directly from archives. 9646whole_archive_flag_spec=$lt_whole_archive_flag_spec 9647 9648# Compiler flag to generate thread-safe objects. 9649thread_safe_flag_spec=$lt_thread_safe_flag_spec 9650 9651# Library versioning type. 9652version_type=$version_type 9653 9654# Format of library name prefix. 9655libname_spec=$lt_libname_spec 9656 9657# List of archive names. First name is the real one, the rest are links. 9658# The last name is the one that the linker finds with -lNAME. 9659library_names_spec=$lt_library_names_spec 9660 9661# The coded name of the library, if different from the real name. 9662soname_spec=$lt_soname_spec 9663 9664# Commands used to build and install an old-style archive. 9665RANLIB=$lt_RANLIB 9666old_archive_cmds=$lt_old_archive_cmds 9667old_postinstall_cmds=$lt_old_postinstall_cmds 9668old_postuninstall_cmds=$lt_old_postuninstall_cmds 9669 9670# Create an old-style archive from a shared archive. 9671old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9672 9673# Create a temporary old-style archive to link instead of a shared archive. 9674old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9675 9676# Commands used to build and install a shared archive. 9677archive_cmds=$lt_archive_cmds 9678archive_expsym_cmds=$lt_archive_expsym_cmds 9679postinstall_cmds=$lt_postinstall_cmds 9680postuninstall_cmds=$lt_postuninstall_cmds 9681 9682# Commands used to build a loadable module (assumed same as above if empty) 9683module_cmds=$lt_module_cmds 9684module_expsym_cmds=$lt_module_expsym_cmds 9685 9686# Commands to strip libraries. 9687old_striplib=$lt_old_striplib 9688striplib=$lt_striplib 9689 9690# Dependencies to place before the objects being linked to create a 9691# shared library. 9692predep_objects=$lt_predep_objects 9693 9694# Dependencies to place after the objects being linked to create a 9695# shared library. 9696postdep_objects=$lt_postdep_objects 9697 9698# Dependencies to place before the objects being linked to create a 9699# shared library. 9700predeps=$lt_predeps 9701 9702# Dependencies to place after the objects being linked to create a 9703# shared library. 9704postdeps=$lt_postdeps 9705 9706# The library search path used internally by the compiler when linking 9707# a shared library. 9708compiler_lib_search_path=$lt_compiler_lib_search_path 9709 9710# Method to check whether dependent libraries are shared objects. 9711deplibs_check_method=$lt_deplibs_check_method 9712 9713# Command to use when deplibs_check_method == file_magic. 9714file_magic_cmd=$lt_file_magic_cmd 9715 9716# Flag that allows shared libraries with undefined symbols to be built. 9717allow_undefined_flag=$lt_allow_undefined_flag 9718 9719# Flag that forces no undefined symbols. 9720no_undefined_flag=$lt_no_undefined_flag 9721 9722# Commands used to finish a libtool library installation in a directory. 9723finish_cmds=$lt_finish_cmds 9724 9725# Same as above, but a single script fragment to be evaled but not shown. 9726finish_eval=$lt_finish_eval 9727 9728# Take the output of nm and produce a listing of raw symbols and C names. 9729global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9730 9731# Transform the output of nm in a proper C declaration 9732global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9733 9734# Transform the output of nm in a C name address pair 9735global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9736 9737# This is the shared library runtime path variable. 9738runpath_var=$runpath_var 9739 9740# This is the shared library path variable. 9741shlibpath_var=$shlibpath_var 9742 9743# Is shlibpath searched before the hard-coded library search path? 9744shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9745 9746# How to hardcode a shared library path into an executable. 9747hardcode_action=$hardcode_action 9748 9749# Whether we should hardcode library paths into libraries. 9750hardcode_into_libs=$hardcode_into_libs 9751 9752# Flag to hardcode \$libdir into a binary during linking. 9753# This must work even if \$libdir does not exist. 9754hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9755 9756# If ld is used when linking, flag to hardcode \$libdir into 9757# a binary during linking. This must work even if \$libdir does 9758# not exist. 9759hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9760 9761# Whether we need a single -rpath flag with a separated argument. 9762hardcode_libdir_separator=$lt_hardcode_libdir_separator 9763 9764# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9765# resulting binary. 9766hardcode_direct=$hardcode_direct 9767 9768# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9769# resulting binary. 9770hardcode_minus_L=$hardcode_minus_L 9771 9772# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9773# the resulting binary. 9774hardcode_shlibpath_var=$hardcode_shlibpath_var 9775 9776# Set to yes if building a shared library automatically hardcodes DIR into the library 9777# and all subsequent libraries and executables linked against it. 9778hardcode_automatic=$hardcode_automatic 9779 9780# Variables whose values should be saved in libtool wrapper scripts and 9781# restored at relink time. 9782variables_saved_for_relink="$variables_saved_for_relink" 9783 9784# Whether libtool must link a program against all its dependency libraries. 9785link_all_deplibs=$link_all_deplibs 9786 9787# Compile-time system search path for libraries 9788sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9789 9790# Run-time system search path for libraries 9791sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9792 9793# Fix the shell variable \$srcfile for the compiler. 9794fix_srcfile_path="$fix_srcfile_path" 9795 9796# Set to yes if exported symbols are required. 9797always_export_symbols=$always_export_symbols 9798 9799# The commands to list exported symbols. 9800export_symbols_cmds=$lt_export_symbols_cmds 9801 9802# The commands to extract the exported symbol list from a shared archive. 9803extract_expsyms_cmds=$lt_extract_expsyms_cmds 9804 9805# Symbols that should not be listed in the preloaded symbols. 9806exclude_expsyms=$lt_exclude_expsyms 9807 9808# Symbols that must always be exported. 9809include_expsyms=$lt_include_expsyms 9810 9811# ### END LIBTOOL CONFIG 9812 9813__EOF__ 9814 9815 9816 case $host_os in 9817 aix3*) 9818 cat <<\EOF >> "$cfgfile" 9819 9820# AIX sometimes has problems with the GCC collect2 program. For some 9821# reason, if we set the COLLECT_NAMES environment variable, the problems 9822# vanish in a puff of smoke. 9823if test "X${COLLECT_NAMES+set}" != Xset; then 9824 COLLECT_NAMES= 9825 export COLLECT_NAMES 9826fi 9827EOF 9828 ;; 9829 esac 9830 9831 # We use sed instead of cat because bash on DJGPP gets confused if 9832 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9833 # text mode, it properly converts lines to CR/LF. This bash problem 9834 # is reportedly fixed, but why not run on old versions too? 9835 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9836 9837 mv -f "$cfgfile" "$ofile" || \ 9838 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9839 chmod +x "$ofile" 9840 9841else 9842 # If there is no Makefile yet, we rely on a make rule to execute 9843 # `config.status --recheck' to rerun these tests and create the 9844 # libtool script then. 9845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9846 if test -f "$ltmain_in"; then 9847 test -f Makefile && make "$ltmain" 9848 fi 9849fi 9850 9851 9852ac_ext=c 9853ac_cpp='$CPP $CPPFLAGS' 9854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9856ac_compiler_gnu=$ac_cv_c_compiler_gnu 9857 9858CC="$lt_save_CC" 9859 9860 9861# Check whether --with-tags or --without-tags was given. 9862if test "${with_tags+set}" = set; then 9863 withval="$with_tags" 9864 tagnames="$withval" 9865fi; 9866 9867if test -f "$ltmain" && test -n "$tagnames"; then 9868 if test ! -f "${ofile}"; then 9869 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9870echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9871 fi 9872 9873 if test -z "$LTCC"; then 9874 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9875 if test -z "$LTCC"; then 9876 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9877echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9878 else 9879 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9880echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9881 fi 9882 fi 9883 if test -z "$LTCFLAGS"; then 9884 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9885 fi 9886 9887 # Extract list of available tagged configurations in $ofile. 9888 # Note that this assumes the entire list is on one line. 9889 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9890 9891 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9892 for tagname in $tagnames; do 9893 IFS="$lt_save_ifs" 9894 # Check whether tagname contains only valid characters 9895 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9896 "") ;; 9897 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9898echo "$as_me: error: invalid tag name: $tagname" >&2;} 9899 { (exit 1); exit 1; }; } 9900 ;; 9901 esac 9902 9903 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9904 then 9905 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9906echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9907 { (exit 1); exit 1; }; } 9908 fi 9909 9910 # Update the list of available tags. 9911 if test -n "$tagname"; then 9912 echo appending configuration tag \"$tagname\" to $ofile 9913 9914 case $tagname in 9915 CXX) 9916 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9917 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9918 (test "X$CXX" != "Xg++"))) ; then 9919 ac_ext=cc 9920ac_cpp='$CXXCPP $CPPFLAGS' 9921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9924 9925 9926 9927 9928archive_cmds_need_lc_CXX=no 9929allow_undefined_flag_CXX= 9930always_export_symbols_CXX=no 9931archive_expsym_cmds_CXX= 9932export_dynamic_flag_spec_CXX= 9933hardcode_direct_CXX=no 9934hardcode_libdir_flag_spec_CXX= 9935hardcode_libdir_flag_spec_ld_CXX= 9936hardcode_libdir_separator_CXX= 9937hardcode_minus_L_CXX=no 9938hardcode_shlibpath_var_CXX=unsupported 9939hardcode_automatic_CXX=no 9940module_cmds_CXX= 9941module_expsym_cmds_CXX= 9942link_all_deplibs_CXX=unknown 9943old_archive_cmds_CXX=$old_archive_cmds 9944no_undefined_flag_CXX= 9945whole_archive_flag_spec_CXX= 9946enable_shared_with_static_runtimes_CXX=no 9947 9948# Dependencies to place before and after the object being linked: 9949predep_objects_CXX= 9950postdep_objects_CXX= 9951predeps_CXX= 9952postdeps_CXX= 9953compiler_lib_search_path_CXX= 9954 9955# Source file extension for C++ test sources. 9956ac_ext=cpp 9957 9958# Object file extension for compiled C++ test sources. 9959objext=o 9960objext_CXX=$objext 9961 9962# Code to be used in simple compile tests 9963lt_simple_compile_test_code="int some_variable = 0;\n" 9964 9965# Code to be used in simple link tests 9966lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9967 9968# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9969 9970# If no C compiler was specified, use CC. 9971LTCC=${LTCC-"$CC"} 9972 9973# If no C compiler flags were specified, use CFLAGS. 9974LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9975 9976# Allow CC to be a program name with arguments. 9977compiler=$CC 9978 9979 9980# save warnings/boilerplate of simple test code 9981ac_outfile=conftest.$ac_objext 9982printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9983eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9984_lt_compiler_boilerplate=`cat conftest.err` 9985$rm conftest* 9986 9987ac_outfile=conftest.$ac_objext 9988printf "$lt_simple_link_test_code" >conftest.$ac_ext 9989eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9990_lt_linker_boilerplate=`cat conftest.err` 9991$rm conftest* 9992 9993 9994# Allow CC to be a program name with arguments. 9995lt_save_CC=$CC 9996lt_save_LD=$LD 9997lt_save_GCC=$GCC 9998GCC=$GXX 9999lt_save_with_gnu_ld=$with_gnu_ld 10000lt_save_path_LD=$lt_cv_path_LD 10001if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10002 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10003else 10004 $as_unset lt_cv_prog_gnu_ld 10005fi 10006if test -n "${lt_cv_path_LDCXX+set}"; then 10007 lt_cv_path_LD=$lt_cv_path_LDCXX 10008else 10009 $as_unset lt_cv_path_LD 10010fi 10011test -z "${LDCXX+set}" || LD=$LDCXX 10012CC=${CXX-"c++"} 10013compiler=$CC 10014compiler_CXX=$CC 10015for cc_temp in $compiler""; do 10016 case $cc_temp in 10017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10019 \-*) ;; 10020 *) break;; 10021 esac 10022done 10023cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10024 10025 10026# We don't want -fno-exception wen compiling C++ code, so set the 10027# no_builtin_flag separately 10028if test "$GXX" = yes; then 10029 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10030else 10031 lt_prog_compiler_no_builtin_flag_CXX= 10032fi 10033 10034if test "$GXX" = yes; then 10035 # Set up default GNU C++ configuration 10036 10037 10038# Check whether --with-gnu-ld or --without-gnu-ld was given. 10039if test "${with_gnu_ld+set}" = set; then 10040 withval="$with_gnu_ld" 10041 test "$withval" = no || with_gnu_ld=yes 10042else 10043 with_gnu_ld=no 10044fi; 10045ac_prog=ld 10046if test "$GCC" = yes; then 10047 # Check if gcc -print-prog-name=ld gives a path. 10048 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10049echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10050 case $host in 10051 *-*-mingw*) 10052 # gcc leaves a trailing carriage return which upsets mingw 10053 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10054 *) 10055 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10056 esac 10057 case $ac_prog in 10058 # Accept absolute paths. 10059 [\\/]* | ?:[\\/]*) 10060 re_direlt='/[^/][^/]*/\.\./' 10061 # Canonicalize the pathname of ld 10062 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10063 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10064 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10065 done 10066 test -z "$LD" && LD="$ac_prog" 10067 ;; 10068 "") 10069 # If it fails, then pretend we aren't using GCC. 10070 ac_prog=ld 10071 ;; 10072 *) 10073 # If it is relative, then search for the first ld in PATH. 10074 with_gnu_ld=unknown 10075 ;; 10076 esac 10077elif test "$with_gnu_ld" = yes; then 10078 echo "$as_me:$LINENO: checking for GNU ld" >&5 10079echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10080else 10081 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10082echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10083fi 10084if test "${lt_cv_path_LD+set}" = set; then 10085 echo $ECHO_N "(cached) $ECHO_C" >&6 10086else 10087 if test -z "$LD"; then 10088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10089 for ac_dir in $PATH; do 10090 IFS="$lt_save_ifs" 10091 test -z "$ac_dir" && ac_dir=. 10092 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10093 lt_cv_path_LD="$ac_dir/$ac_prog" 10094 # Check to see if the program is GNU ld. I'd rather use --version, 10095 # but apparently some variants of GNU ld only accept -v. 10096 # Break only if it was the GNU/non-GNU ld that we prefer. 10097 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10098 *GNU* | *'with BFD'*) 10099 test "$with_gnu_ld" != no && break 10100 ;; 10101 *) 10102 test "$with_gnu_ld" != yes && break 10103 ;; 10104 esac 10105 fi 10106 done 10107 IFS="$lt_save_ifs" 10108else 10109 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10110fi 10111fi 10112 10113LD="$lt_cv_path_LD" 10114if test -n "$LD"; then 10115 echo "$as_me:$LINENO: result: $LD" >&5 10116echo "${ECHO_T}$LD" >&6 10117else 10118 echo "$as_me:$LINENO: result: no" >&5 10119echo "${ECHO_T}no" >&6 10120fi 10121test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10122echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10123 { (exit 1); exit 1; }; } 10124echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10125echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10126if test "${lt_cv_prog_gnu_ld+set}" = set; then 10127 echo $ECHO_N "(cached) $ECHO_C" >&6 10128else 10129 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10130case `$LD -v 2>&1 </dev/null` in 10131*GNU* | *'with BFD'*) 10132 lt_cv_prog_gnu_ld=yes 10133 ;; 10134*) 10135 lt_cv_prog_gnu_ld=no 10136 ;; 10137esac 10138fi 10139echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10140echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10141with_gnu_ld=$lt_cv_prog_gnu_ld 10142 10143 10144 10145 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10146 # archiving commands below assume that GNU ld is being used. 10147 if test "$with_gnu_ld" = yes; then 10148 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10149 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' 10150 10151 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10152 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10153 10154 # If archive_cmds runs LD, not CC, wlarc should be empty 10155 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10156 # investigate it a little bit more. (MM) 10157 wlarc='${wl}' 10158 10159 # ancient GNU ld didn't support --whole-archive et. al. 10160 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10161 grep 'no-whole-archive' > /dev/null; then 10162 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10163 else 10164 whole_archive_flag_spec_CXX= 10165 fi 10166 else 10167 with_gnu_ld=no 10168 wlarc= 10169 10170 # A generic and very simple default shared library creation 10171 # command for GNU C++ for the case where it uses the native 10172 # linker, instead of GNU ld. If possible, this setting should 10173 # overridden to take advantage of the native linker features on 10174 # the platform it is being used on. 10175 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10176 fi 10177 10178 # Commands to make compiler produce verbose output that lists 10179 # what "hidden" libraries, object files and flags are used when 10180 # linking a shared library. 10181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10182 10183else 10184 GXX=no 10185 with_gnu_ld=no 10186 wlarc= 10187fi 10188 10189# PORTME: fill in a description of your system's C++ link characteristics 10190echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10191echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10192ld_shlibs_CXX=yes 10193case $host_os in 10194 aix3*) 10195 # FIXME: insert proper C++ library support 10196 ld_shlibs_CXX=no 10197 ;; 10198 aix4* | aix5*) 10199 if test "$host_cpu" = ia64; then 10200 # On IA64, the linker does run time linking by default, so we don't 10201 # have to do anything special. 10202 aix_use_runtimelinking=no 10203 exp_sym_flag='-Bexport' 10204 no_entry_flag="" 10205 else 10206 aix_use_runtimelinking=no 10207 10208 # Test if we are trying to use run time linking or normal 10209 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10210 # need to do runtime linking. 10211 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10212 for ld_flag in $LDFLAGS; do 10213 case $ld_flag in 10214 *-brtl*) 10215 aix_use_runtimelinking=yes 10216 break 10217 ;; 10218 esac 10219 done 10220 ;; 10221 esac 10222 10223 exp_sym_flag='-bexport' 10224 no_entry_flag='-bnoentry' 10225 fi 10226 10227 # When large executables or shared objects are built, AIX ld can 10228 # have problems creating the table of contents. If linking a library 10229 # or program results in "error TOC overflow" add -mminimal-toc to 10230 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10231 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10232 10233 archive_cmds_CXX='' 10234 hardcode_direct_CXX=yes 10235 hardcode_libdir_separator_CXX=':' 10236 link_all_deplibs_CXX=yes 10237 10238 if test "$GXX" = yes; then 10239 case $host_os in aix4.[012]|aix4.[012].*) 10240 # We only want to do this on AIX 4.2 and lower, the check 10241 # below for broken collect2 doesn't work under 4.3+ 10242 collect2name=`${CC} -print-prog-name=collect2` 10243 if test -f "$collect2name" && \ 10244 strings "$collect2name" | grep resolve_lib_name >/dev/null 10245 then 10246 # We have reworked collect2 10247 hardcode_direct_CXX=yes 10248 else 10249 # We have old collect2 10250 hardcode_direct_CXX=unsupported 10251 # It fails to find uninstalled libraries when the uninstalled 10252 # path is not listed in the libpath. Setting hardcode_minus_L 10253 # to unsupported forces relinking 10254 hardcode_minus_L_CXX=yes 10255 hardcode_libdir_flag_spec_CXX='-L$libdir' 10256 hardcode_libdir_separator_CXX= 10257 fi 10258 ;; 10259 esac 10260 shared_flag='-shared' 10261 if test "$aix_use_runtimelinking" = yes; then 10262 shared_flag="$shared_flag "'${wl}-G' 10263 fi 10264 else 10265 # not using gcc 10266 if test "$host_cpu" = ia64; then 10267 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10268 # chokes on -Wl,-G. The following line is correct: 10269 shared_flag='-G' 10270 else 10271 if test "$aix_use_runtimelinking" = yes; then 10272 shared_flag='${wl}-G' 10273 else 10274 shared_flag='${wl}-bM:SRE' 10275 fi 10276 fi 10277 fi 10278 10279 # It seems that -bexpall does not export symbols beginning with 10280 # underscore (_), so it is better to generate a list of symbols to export. 10281 always_export_symbols_CXX=yes 10282 if test "$aix_use_runtimelinking" = yes; then 10283 # Warning - without using the other runtime loading flags (-brtl), 10284 # -berok will link without error, but may produce a broken library. 10285 allow_undefined_flag_CXX='-berok' 10286 # Determine the default libpath from the value encoded in an empty executable. 10287 cat >conftest.$ac_ext <<_ACEOF 10288/* confdefs.h. */ 10289_ACEOF 10290cat confdefs.h >>conftest.$ac_ext 10291cat >>conftest.$ac_ext <<_ACEOF 10292/* end confdefs.h. */ 10293 10294int 10295main () 10296{ 10297 10298 ; 10299 return 0; 10300} 10301_ACEOF 10302rm -f conftest.$ac_objext conftest$ac_exeext 10303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10304 (eval $ac_link) 2>conftest.er1 10305 ac_status=$? 10306 grep -v '^ *+' conftest.er1 >conftest.err 10307 rm -f conftest.er1 10308 cat conftest.err >&5 10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10310 (exit $ac_status); } && 10311 { ac_try='test -z "$ac_cxx_werror_flag" 10312 || test ! -s conftest.err' 10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10314 (eval $ac_try) 2>&5 10315 ac_status=$? 10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10317 (exit $ac_status); }; } && 10318 { ac_try='test -s conftest$ac_exeext' 10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10320 (eval $ac_try) 2>&5 10321 ac_status=$? 10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10323 (exit $ac_status); }; }; then 10324 10325aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10326}'` 10327# Check for a 64-bit object if we didn't find anything. 10328if 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; } 10329}'`; fi 10330else 10331 echo "$as_me: failed program was:" >&5 10332sed 's/^/| /' conftest.$ac_ext >&5 10333 10334fi 10335rm -f conftest.err conftest.$ac_objext \ 10336 conftest$ac_exeext conftest.$ac_ext 10337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10338 10339 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10340 10341 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" 10342 else 10343 if test "$host_cpu" = ia64; then 10344 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10345 allow_undefined_flag_CXX="-z nodefs" 10346 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" 10347 else 10348 # Determine the default libpath from the value encoded in an empty executable. 10349 cat >conftest.$ac_ext <<_ACEOF 10350/* confdefs.h. */ 10351_ACEOF 10352cat confdefs.h >>conftest.$ac_ext 10353cat >>conftest.$ac_ext <<_ACEOF 10354/* end confdefs.h. */ 10355 10356int 10357main () 10358{ 10359 10360 ; 10361 return 0; 10362} 10363_ACEOF 10364rm -f conftest.$ac_objext conftest$ac_exeext 10365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10366 (eval $ac_link) 2>conftest.er1 10367 ac_status=$? 10368 grep -v '^ *+' conftest.er1 >conftest.err 10369 rm -f conftest.er1 10370 cat conftest.err >&5 10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10372 (exit $ac_status); } && 10373 { ac_try='test -z "$ac_cxx_werror_flag" 10374 || test ! -s conftest.err' 10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10376 (eval $ac_try) 2>&5 10377 ac_status=$? 10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10379 (exit $ac_status); }; } && 10380 { ac_try='test -s conftest$ac_exeext' 10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10382 (eval $ac_try) 2>&5 10383 ac_status=$? 10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10385 (exit $ac_status); }; }; then 10386 10387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10388}'` 10389# Check for a 64-bit object if we didn't find anything. 10390if 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; } 10391}'`; fi 10392else 10393 echo "$as_me: failed program was:" >&5 10394sed 's/^/| /' conftest.$ac_ext >&5 10395 10396fi 10397rm -f conftest.err conftest.$ac_objext \ 10398 conftest$ac_exeext conftest.$ac_ext 10399if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10400 10401 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10402 # Warning - without using the other run time loading flags, 10403 # -berok will link without error, but may produce a broken library. 10404 no_undefined_flag_CXX=' ${wl}-bernotok' 10405 allow_undefined_flag_CXX=' ${wl}-berok' 10406 # Exported symbols can be pulled into shared objects from archives 10407 whole_archive_flag_spec_CXX='$convenience' 10408 archive_cmds_need_lc_CXX=yes 10409 # This is similar to how AIX traditionally builds its shared libraries. 10410 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' 10411 fi 10412 fi 10413 ;; 10414 10415 beos*) 10416 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10417 allow_undefined_flag_CXX=unsupported 10418 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10419 # support --undefined. This deserves some investigation. FIXME 10420 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10421 else 10422 ld_shlibs_CXX=no 10423 fi 10424 ;; 10425 10426 chorus*) 10427 case $cc_basename in 10428 *) 10429 # FIXME: insert proper C++ library support 10430 ld_shlibs_CXX=no 10431 ;; 10432 esac 10433 ;; 10434 10435 cygwin* | mingw* | pw32*) 10436 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10437 # as there is no search path for DLLs. 10438 hardcode_libdir_flag_spec_CXX='-L$libdir' 10439 allow_undefined_flag_CXX=unsupported 10440 always_export_symbols_CXX=no 10441 enable_shared_with_static_runtimes_CXX=yes 10442 10443 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10444 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' 10445 # If the export-symbols file already is a .def file (1st line 10446 # is EXPORTS), use it as is; otherwise, prepend... 10447 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10448 cp $export_symbols $output_objdir/$soname.def; 10449 else 10450 echo EXPORTS > $output_objdir/$soname.def; 10451 cat $export_symbols >> $output_objdir/$soname.def; 10452 fi~ 10453 $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' 10454 else 10455 ld_shlibs_CXX=no 10456 fi 10457 ;; 10458 darwin* | rhapsody*) 10459 case $host_os in 10460 rhapsody* | darwin1.[012]) 10461 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10462 ;; 10463 *) # Darwin 1.3 on 10464 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10465 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10466 else 10467 case ${MACOSX_DEPLOYMENT_TARGET} in 10468 10.[012]) 10469 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10470 ;; 10471 10.*) 10472 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10473 ;; 10474 esac 10475 fi 10476 ;; 10477 esac 10478 archive_cmds_need_lc_CXX=no 10479 hardcode_direct_CXX=no 10480 hardcode_automatic_CXX=yes 10481 hardcode_shlibpath_var_CXX=unsupported 10482 whole_archive_flag_spec_CXX='' 10483 link_all_deplibs_CXX=yes 10484 10485 if test "$GXX" = yes ; then 10486 lt_int_apple_cc_single_mod=no 10487 output_verbose_link_cmd='echo' 10488 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10489 lt_int_apple_cc_single_mod=yes 10490 fi 10491 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10492 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10493 else 10494 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' 10495 fi 10496 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10497 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10498 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10499 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}' 10500 else 10501 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}' 10502 fi 10503 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}' 10504 else 10505 case $cc_basename in 10506 xlc*) 10507 output_verbose_link_cmd='echo' 10508 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' 10509 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10511 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}' 10512 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}' 10513 ;; 10514 *) 10515 ld_shlibs_CXX=no 10516 ;; 10517 esac 10518 fi 10519 ;; 10520 10521 dgux*) 10522 case $cc_basename in 10523 ec++*) 10524 # FIXME: insert proper C++ library support 10525 ld_shlibs_CXX=no 10526 ;; 10527 ghcx*) 10528 # Green Hills C++ Compiler 10529 # FIXME: insert proper C++ library support 10530 ld_shlibs_CXX=no 10531 ;; 10532 *) 10533 # FIXME: insert proper C++ library support 10534 ld_shlibs_CXX=no 10535 ;; 10536 esac 10537 ;; 10538 freebsd[12]*) 10539 # C++ shared libraries reported to be fairly broken before switch to ELF 10540 ld_shlibs_CXX=no 10541 ;; 10542 freebsd-elf*) 10543 archive_cmds_need_lc_CXX=no 10544 ;; 10545 freebsd* | kfreebsd*-gnu | dragonfly*) 10546 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10547 # conventions 10548 ld_shlibs_CXX=yes 10549 ;; 10550 gnu*) 10551 ;; 10552 hpux9*) 10553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10554 hardcode_libdir_separator_CXX=: 10555 export_dynamic_flag_spec_CXX='${wl}-E' 10556 hardcode_direct_CXX=yes 10557 hardcode_minus_L_CXX=yes # Not in the search PATH, 10558 # but as the default 10559 # location of the library. 10560 10561 case $cc_basename in 10562 CC*) 10563 # FIXME: insert proper C++ library support 10564 ld_shlibs_CXX=no 10565 ;; 10566 aCC*) 10567 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' 10568 # Commands to make compiler produce verbose output that lists 10569 # what "hidden" libraries, object files and flags are used when 10570 # linking a shared library. 10571 # 10572 # There doesn't appear to be a way to prevent this compiler from 10573 # explicitly linking system object files so we need to strip them 10574 # from the output so that they don't get included in the library 10575 # dependencies. 10576 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' 10577 ;; 10578 *) 10579 if test "$GXX" = yes; then 10580 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' 10581 else 10582 # FIXME: insert proper C++ library support 10583 ld_shlibs_CXX=no 10584 fi 10585 ;; 10586 esac 10587 ;; 10588 hpux10*|hpux11*) 10589 if test $with_gnu_ld = no; then 10590 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10591 hardcode_libdir_separator_CXX=: 10592 10593 case $host_cpu in 10594 hppa*64*|ia64*) 10595 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10596 ;; 10597 *) 10598 export_dynamic_flag_spec_CXX='${wl}-E' 10599 ;; 10600 esac 10601 fi 10602 case $host_cpu in 10603 hppa*64*|ia64*) 10604 hardcode_direct_CXX=no 10605 hardcode_shlibpath_var_CXX=no 10606 ;; 10607 *) 10608 hardcode_direct_CXX=yes 10609 hardcode_minus_L_CXX=yes # Not in the search PATH, 10610 # but as the default 10611 # location of the library. 10612 ;; 10613 esac 10614 10615 case $cc_basename in 10616 CC*) 10617 # FIXME: insert proper C++ library support 10618 ld_shlibs_CXX=no 10619 ;; 10620 aCC*) 10621 case $host_cpu in 10622 hppa*64*) 10623 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10624 ;; 10625 ia64*) 10626 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10627 ;; 10628 *) 10629 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10630 ;; 10631 esac 10632 # Commands to make compiler produce verbose output that lists 10633 # what "hidden" libraries, object files and flags are used when 10634 # linking a shared library. 10635 # 10636 # There doesn't appear to be a way to prevent this compiler from 10637 # explicitly linking system object files so we need to strip them 10638 # from the output so that they don't get included in the library 10639 # dependencies. 10640 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' 10641 ;; 10642 *) 10643 if test "$GXX" = yes; then 10644 if test $with_gnu_ld = no; then 10645 case $host_cpu in 10646 hppa*64*) 10647 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10648 ;; 10649 ia64*) 10650 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10651 ;; 10652 *) 10653 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' 10654 ;; 10655 esac 10656 fi 10657 else 10658 # FIXME: insert proper C++ library support 10659 ld_shlibs_CXX=no 10660 fi 10661 ;; 10662 esac 10663 ;; 10664 interix3*) 10665 hardcode_direct_CXX=no 10666 hardcode_shlibpath_var_CXX=no 10667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10668 export_dynamic_flag_spec_CXX='${wl}-E' 10669 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10670 # Instead, shared libraries are loaded at an image base (0x10000000 by 10671 # default) and relocated if they conflict, which is a slow very memory 10672 # consuming and fragmenting process. To avoid this, we pick a random, 10673 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10674 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10675 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' 10676 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' 10677 ;; 10678 irix5* | irix6*) 10679 case $cc_basename in 10680 CC*) 10681 # SGI C++ 10682 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' 10683 10684 # Archives containing C++ object files must be created using 10685 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10686 # necessary to make sure instantiated templates are included 10687 # in the archive. 10688 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10689 ;; 10690 *) 10691 if test "$GXX" = yes; then 10692 if test "$with_gnu_ld" = no; then 10693 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' 10694 else 10695 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' 10696 fi 10697 fi 10698 link_all_deplibs_CXX=yes 10699 ;; 10700 esac 10701 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10702 hardcode_libdir_separator_CXX=: 10703 ;; 10704 linux*) 10705 case $cc_basename in 10706 KCC*) 10707 # Kuck and Associates, Inc. (KAI) C++ Compiler 10708 10709 # KCC will only create a shared library if the output file 10710 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10711 # to its proper name (with version) after linking. 10712 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' 10713 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' 10714 # Commands to make compiler produce verbose output that lists 10715 # what "hidden" libraries, object files and flags are used when 10716 # linking a shared library. 10717 # 10718 # There doesn't appear to be a way to prevent this compiler from 10719 # explicitly linking system object files so we need to strip them 10720 # from the output so that they don't get included in the library 10721 # dependencies. 10722 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' 10723 10724 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10726 10727 # Archives containing C++ object files must be created using 10728 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10729 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10730 ;; 10731 icpc*) 10732 # Intel C++ 10733 with_gnu_ld=yes 10734 # version 8.0 and above of icpc choke on multiply defined symbols 10735 # if we add $predep_objects and $postdep_objects, however 7.1 and 10736 # earlier do not add the objects themselves. 10737 case `$CC -V 2>&1` in 10738 *"Version 7."*) 10739 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10740 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' 10741 ;; 10742 *) # Version 8.0 or newer 10743 tmp_idyn= 10744 case $host_cpu in 10745 ia64*) tmp_idyn=' -i_dynamic';; 10746 esac 10747 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10748 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' 10749 ;; 10750 esac 10751 archive_cmds_need_lc_CXX=no 10752 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10754 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10755 ;; 10756 pgCC*) 10757 # Portland Group C++ compiler 10758 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10759 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' 10760 10761 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10763 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' 10764 ;; 10765 cxx*) 10766 # Compaq C++ 10767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10768 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' 10769 10770 runpath_var=LD_RUN_PATH 10771 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10772 hardcode_libdir_separator_CXX=: 10773 10774 # Commands to make compiler produce verbose output that lists 10775 # what "hidden" libraries, object files and flags are used when 10776 # linking a shared library. 10777 # 10778 # There doesn't appear to be a way to prevent this compiler from 10779 # explicitly linking system object files so we need to strip them 10780 # from the output so that they don't get included in the library 10781 # dependencies. 10782 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' 10783 ;; 10784 esac 10785 ;; 10786 lynxos*) 10787 # FIXME: insert proper C++ library support 10788 ld_shlibs_CXX=no 10789 ;; 10790 m88k*) 10791 # FIXME: insert proper C++ library support 10792 ld_shlibs_CXX=no 10793 ;; 10794 mvs*) 10795 case $cc_basename in 10796 cxx*) 10797 # FIXME: insert proper C++ library support 10798 ld_shlibs_CXX=no 10799 ;; 10800 *) 10801 # FIXME: insert proper C++ library support 10802 ld_shlibs_CXX=no 10803 ;; 10804 esac 10805 ;; 10806 netbsd*) 10807 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10808 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10809 wlarc= 10810 hardcode_libdir_flag_spec_CXX='-R$libdir' 10811 hardcode_direct_CXX=yes 10812 hardcode_shlibpath_var_CXX=no 10813 fi 10814 # Workaround some broken pre-1.5 toolchains 10815 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10816 ;; 10817 openbsd2*) 10818 # C++ shared libraries are fairly broken 10819 ld_shlibs_CXX=no 10820 ;; 10821 openbsd*) 10822 hardcode_direct_CXX=yes 10823 hardcode_shlibpath_var_CXX=no 10824 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10825 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10826 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10827 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10828 export_dynamic_flag_spec_CXX='${wl}-E' 10829 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10830 fi 10831 output_verbose_link_cmd='echo' 10832 ;; 10833 osf3*) 10834 case $cc_basename in 10835 KCC*) 10836 # Kuck and Associates, Inc. (KAI) C++ Compiler 10837 10838 # KCC will only create a shared library if the output file 10839 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10840 # to its proper name (with version) after linking. 10841 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' 10842 10843 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10844 hardcode_libdir_separator_CXX=: 10845 10846 # Archives containing C++ object files must be created using 10847 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10848 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10849 10850 ;; 10851 RCC*) 10852 # Rational C++ 2.4.1 10853 # FIXME: insert proper C++ library support 10854 ld_shlibs_CXX=no 10855 ;; 10856 cxx*) 10857 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10858 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' 10859 10860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10861 hardcode_libdir_separator_CXX=: 10862 10863 # Commands to make compiler produce verbose output that lists 10864 # what "hidden" libraries, object files and flags are used when 10865 # linking a shared library. 10866 # 10867 # There doesn't appear to be a way to prevent this compiler from 10868 # explicitly linking system object files so we need to strip them 10869 # from the output so that they don't get included in the library 10870 # dependencies. 10871 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' 10872 ;; 10873 *) 10874 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10875 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10876 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' 10877 10878 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10879 hardcode_libdir_separator_CXX=: 10880 10881 # Commands to make compiler produce verbose output that lists 10882 # what "hidden" libraries, object files and flags are used when 10883 # linking a shared library. 10884 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10885 10886 else 10887 # FIXME: insert proper C++ library support 10888 ld_shlibs_CXX=no 10889 fi 10890 ;; 10891 esac 10892 ;; 10893 osf4* | osf5*) 10894 case $cc_basename in 10895 KCC*) 10896 # Kuck and Associates, Inc. (KAI) C++ Compiler 10897 10898 # KCC will only create a shared library if the output file 10899 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10900 # to its proper name (with version) after linking. 10901 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' 10902 10903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10904 hardcode_libdir_separator_CXX=: 10905 10906 # Archives containing C++ object files must be created using 10907 # the KAI C++ compiler. 10908 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10909 ;; 10910 RCC*) 10911 # Rational C++ 2.4.1 10912 # FIXME: insert proper C++ library support 10913 ld_shlibs_CXX=no 10914 ;; 10915 cxx*) 10916 allow_undefined_flag_CXX=' -expect_unresolved \*' 10917 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' 10918 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10919 echo "-hidden">> $lib.exp~ 10920 $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~ 10921 $rm $lib.exp' 10922 10923 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10924 hardcode_libdir_separator_CXX=: 10925 10926 # Commands to make compiler produce verbose output that lists 10927 # what "hidden" libraries, object files and flags are used when 10928 # linking a shared library. 10929 # 10930 # There doesn't appear to be a way to prevent this compiler from 10931 # explicitly linking system object files so we need to strip them 10932 # from the output so that they don't get included in the library 10933 # dependencies. 10934 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' 10935 ;; 10936 *) 10937 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10938 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10939 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' 10940 10941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10942 hardcode_libdir_separator_CXX=: 10943 10944 # Commands to make compiler produce verbose output that lists 10945 # what "hidden" libraries, object files and flags are used when 10946 # linking a shared library. 10947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10948 10949 else 10950 # FIXME: insert proper C++ library support 10951 ld_shlibs_CXX=no 10952 fi 10953 ;; 10954 esac 10955 ;; 10956 psos*) 10957 # FIXME: insert proper C++ library support 10958 ld_shlibs_CXX=no 10959 ;; 10960 sunos4*) 10961 case $cc_basename in 10962 CC*) 10963 # Sun C++ 4.x 10964 # FIXME: insert proper C++ library support 10965 ld_shlibs_CXX=no 10966 ;; 10967 lcc*) 10968 # Lucid 10969 # FIXME: insert proper C++ library support 10970 ld_shlibs_CXX=no 10971 ;; 10972 *) 10973 # FIXME: insert proper C++ library support 10974 ld_shlibs_CXX=no 10975 ;; 10976 esac 10977 ;; 10978 solaris*) 10979 case $cc_basename in 10980 CC*) 10981 # Sun C++ 4.2, 5.x and Centerline C++ 10982 archive_cmds_need_lc_CXX=yes 10983 no_undefined_flag_CXX=' -zdefs' 10984 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10985 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10986 $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' 10987 10988 hardcode_libdir_flag_spec_CXX='-R$libdir' 10989 hardcode_shlibpath_var_CXX=no 10990 case $host_os in 10991 solaris2.[0-5] | solaris2.[0-5].*) ;; 10992 *) 10993 # The C++ compiler is used as linker so we must use $wl 10994 # flag to pass the commands to the underlying system 10995 # linker. We must also pass each convience library through 10996 # to the system linker between allextract/defaultextract. 10997 # The C++ compiler will combine linker options so we 10998 # cannot just pass the convience library names through 10999 # without $wl. 11000 # Supported since Solaris 2.6 (maybe 2.5.1?) 11001 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' 11002 ;; 11003 esac 11004 link_all_deplibs_CXX=yes 11005 11006 output_verbose_link_cmd='echo' 11007 11008 # Archives containing C++ object files must be created using 11009 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11010 # necessary to make sure instantiated templates are included 11011 # in the archive. 11012 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11013 ;; 11014 gcx*) 11015 # Green Hills C++ Compiler 11016 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11017 11018 # The C++ compiler must be used to create the archive. 11019 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11020 ;; 11021 *) 11022 # GNU C++ compiler with Solaris linker 11023 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11024 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11025 if $CC --version | grep -v '^2\.7' > /dev/null; then 11026 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11027 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11028 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11029 11030 # Commands to make compiler produce verbose output that lists 11031 # what "hidden" libraries, object files and flags are used when 11032 # linking a shared library. 11033 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11034 else 11035 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11036 # platform. 11037 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11038 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11039 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11040 11041 # Commands to make compiler produce verbose output that lists 11042 # what "hidden" libraries, object files and flags are used when 11043 # linking a shared library. 11044 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11045 fi 11046 11047 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11048 fi 11049 ;; 11050 esac 11051 ;; 11052 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11053 no_undefined_flag_CXX='${wl}-z,text' 11054 archive_cmds_need_lc_CXX=no 11055 hardcode_shlibpath_var_CXX=no 11056 runpath_var='LD_RUN_PATH' 11057 11058 case $cc_basename in 11059 CC*) 11060 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11061 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11062 ;; 11063 *) 11064 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11065 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11066 ;; 11067 esac 11068 ;; 11069 sysv5* | sco3.2v5* | sco5v6*) 11070 # Note: We can NOT use -z defs as we might desire, because we do not 11071 # link with -lc, and that would cause any symbols used from libc to 11072 # always be unresolved, which means just about no library would 11073 # ever link correctly. If we're not using GNU ld we use -z text 11074 # though, which does catch some bad symbols but isn't as heavy-handed 11075 # as -z defs. 11076 # For security reasons, it is highly recommended that you always 11077 # use absolute paths for naming shared libraries, and exclude the 11078 # DT_RUNPATH tag from executables and libraries. But doing so 11079 # requires that you compile everything twice, which is a pain. 11080 # So that behaviour is only enabled if SCOABSPATH is set to a 11081 # non-empty value in the environment. Most likely only useful for 11082 # creating official distributions of packages. 11083 # This is a hack until libtool officially supports absolute path 11084 # names for shared libraries. 11085 no_undefined_flag_CXX='${wl}-z,text' 11086 allow_undefined_flag_CXX='${wl}-z,nodefs' 11087 archive_cmds_need_lc_CXX=no 11088 hardcode_shlibpath_var_CXX=no 11089 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11090 hardcode_libdir_separator_CXX=':' 11091 link_all_deplibs_CXX=yes 11092 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11093 runpath_var='LD_RUN_PATH' 11094 11095 case $cc_basename in 11096 CC*) 11097 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11098 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11099 ;; 11100 *) 11101 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11102 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11103 ;; 11104 esac 11105 ;; 11106 tandem*) 11107 case $cc_basename in 11108 NCC*) 11109 # NonStop-UX NCC 3.20 11110 # FIXME: insert proper C++ library support 11111 ld_shlibs_CXX=no 11112 ;; 11113 *) 11114 # FIXME: insert proper C++ library support 11115 ld_shlibs_CXX=no 11116 ;; 11117 esac 11118 ;; 11119 vxworks*) 11120 # FIXME: insert proper C++ library support 11121 ld_shlibs_CXX=no 11122 ;; 11123 *) 11124 # FIXME: insert proper C++ library support 11125 ld_shlibs_CXX=no 11126 ;; 11127esac 11128echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11129echo "${ECHO_T}$ld_shlibs_CXX" >&6 11130test "$ld_shlibs_CXX" = no && can_build_shared=no 11131 11132GCC_CXX="$GXX" 11133LD_CXX="$LD" 11134 11135 11136cat > conftest.$ac_ext <<EOF 11137class Foo 11138{ 11139public: 11140 Foo (void) { a = 0; } 11141private: 11142 int a; 11143}; 11144EOF 11145 11146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11147 (eval $ac_compile) 2>&5 11148 ac_status=$? 11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11150 (exit $ac_status); }; then 11151 # Parse the compiler output and extract the necessary 11152 # objects, libraries and library flags. 11153 11154 # Sentinel used to keep track of whether or not we are before 11155 # the conftest object file. 11156 pre_test_object_deps_done=no 11157 11158 # The `*' in the case matches for architectures that use `case' in 11159 # $output_verbose_cmd can trigger glob expansion during the loop 11160 # eval without this substitution. 11161 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11162 11163 for p in `eval $output_verbose_link_cmd`; do 11164 case $p in 11165 11166 -L* | -R* | -l*) 11167 # Some compilers place space between "-{L,R}" and the path. 11168 # Remove the space. 11169 if test $p = "-L" \ 11170 || test $p = "-R"; then 11171 prev=$p 11172 continue 11173 else 11174 prev= 11175 fi 11176 11177 if test "$pre_test_object_deps_done" = no; then 11178 case $p in 11179 -L* | -R*) 11180 # Internal compiler library paths should come after those 11181 # provided the user. The postdeps already come after the 11182 # user supplied libs so there is no need to process them. 11183 if test -z "$compiler_lib_search_path_CXX"; then 11184 compiler_lib_search_path_CXX="${prev}${p}" 11185 else 11186 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11187 fi 11188 ;; 11189 # The "-l" case would never come before the object being 11190 # linked, so don't bother handling this case. 11191 esac 11192 else 11193 if test -z "$postdeps_CXX"; then 11194 postdeps_CXX="${prev}${p}" 11195 else 11196 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11197 fi 11198 fi 11199 ;; 11200 11201 *.$objext) 11202 # This assumes that the test object file only shows up 11203 # once in the compiler output. 11204 if test "$p" = "conftest.$objext"; then 11205 pre_test_object_deps_done=yes 11206 continue 11207 fi 11208 11209 if test "$pre_test_object_deps_done" = no; then 11210 if test -z "$predep_objects_CXX"; then 11211 predep_objects_CXX="$p" 11212 else 11213 predep_objects_CXX="$predep_objects_CXX $p" 11214 fi 11215 else 11216 if test -z "$postdep_objects_CXX"; then 11217 postdep_objects_CXX="$p" 11218 else 11219 postdep_objects_CXX="$postdep_objects_CXX $p" 11220 fi 11221 fi 11222 ;; 11223 11224 *) ;; # Ignore the rest. 11225 11226 esac 11227 done 11228 11229 # Clean up. 11230 rm -f a.out a.exe 11231else 11232 echo "libtool.m4: error: problem compiling CXX test program" 11233fi 11234 11235$rm -f confest.$objext 11236 11237# PORTME: override above test on systems where it is broken 11238case $host_os in 11239interix3*) 11240 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11241 # hack all around it, let's just trust "g++" to DTRT. 11242 predep_objects_CXX= 11243 postdep_objects_CXX= 11244 postdeps_CXX= 11245 ;; 11246 11247solaris*) 11248 case $cc_basename in 11249 CC*) 11250 # Adding this requires a known-good setup of shared libraries for 11251 # Sun compiler versions before 5.6, else PIC objects from an old 11252 # archive will be linked into the output, leading to subtle bugs. 11253 postdeps_CXX='-lCstd -lCrun' 11254 ;; 11255 esac 11256 ;; 11257esac 11258 11259 11260case " $postdeps_CXX " in 11261*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11262esac 11263 11264lt_prog_compiler_wl_CXX= 11265lt_prog_compiler_pic_CXX= 11266lt_prog_compiler_static_CXX= 11267 11268echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11269echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11270 11271 # C++ specific cases for pic, static, wl, etc. 11272 if test "$GXX" = yes; then 11273 lt_prog_compiler_wl_CXX='-Wl,' 11274 lt_prog_compiler_static_CXX='-static' 11275 11276 case $host_os in 11277 aix*) 11278 # All AIX code is PIC. 11279 if test "$host_cpu" = ia64; then 11280 # AIX 5 now supports IA64 processor 11281 lt_prog_compiler_static_CXX='-Bstatic' 11282 fi 11283 ;; 11284 amigaos*) 11285 # FIXME: we need at least 68020 code to build shared libraries, but 11286 # adding the `-m68020' flag to GCC prevents building anything better, 11287 # like `-m68040'. 11288 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11289 ;; 11290 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11291 # PIC is the default for these OSes. 11292 ;; 11293 mingw* | os2* | pw32*) 11294 # This hack is so that the source file can tell whether it is being 11295 # built for inclusion in a dll (and should export symbols for example). 11296 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11297 ;; 11298 darwin* | rhapsody*) 11299 # PIC is the default on this platform 11300 # Common symbols not allowed in MH_DYLIB files 11301 lt_prog_compiler_pic_CXX='-fno-common' 11302 ;; 11303 *djgpp*) 11304 # DJGPP does not support shared libraries at all 11305 lt_prog_compiler_pic_CXX= 11306 ;; 11307 interix3*) 11308 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11309 # Instead, we relocate shared libraries at runtime. 11310 ;; 11311 sysv4*MP*) 11312 if test -d /usr/nec; then 11313 lt_prog_compiler_pic_CXX=-Kconform_pic 11314 fi 11315 ;; 11316 hpux*) 11317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11318 # not for PA HP-UX. 11319 case $host_cpu in 11320 hppa*64*|ia64*) 11321 ;; 11322 *) 11323 lt_prog_compiler_pic_CXX='-fPIC' 11324 ;; 11325 esac 11326 ;; 11327 *) 11328 lt_prog_compiler_pic_CXX='-fPIC' 11329 ;; 11330 esac 11331 else 11332 case $host_os in 11333 aix4* | aix5*) 11334 # All AIX code is PIC. 11335 if test "$host_cpu" = ia64; then 11336 # AIX 5 now supports IA64 processor 11337 lt_prog_compiler_static_CXX='-Bstatic' 11338 else 11339 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11340 fi 11341 ;; 11342 chorus*) 11343 case $cc_basename in 11344 cxch68*) 11345 # Green Hills C++ Compiler 11346 # _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" 11347 ;; 11348 esac 11349 ;; 11350 darwin*) 11351 # PIC is the default on this platform 11352 # Common symbols not allowed in MH_DYLIB files 11353 case $cc_basename in 11354 xlc*) 11355 lt_prog_compiler_pic_CXX='-qnocommon' 11356 lt_prog_compiler_wl_CXX='-Wl,' 11357 ;; 11358 esac 11359 ;; 11360 dgux*) 11361 case $cc_basename in 11362 ec++*) 11363 lt_prog_compiler_pic_CXX='-KPIC' 11364 ;; 11365 ghcx*) 11366 # Green Hills C++ Compiler 11367 lt_prog_compiler_pic_CXX='-pic' 11368 ;; 11369 *) 11370 ;; 11371 esac 11372 ;; 11373 freebsd* | kfreebsd*-gnu | dragonfly*) 11374 # FreeBSD uses GNU C++ 11375 ;; 11376 hpux9* | hpux10* | hpux11*) 11377 case $cc_basename in 11378 CC*) 11379 lt_prog_compiler_wl_CXX='-Wl,' 11380 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11381 if test "$host_cpu" != ia64; then 11382 lt_prog_compiler_pic_CXX='+Z' 11383 fi 11384 ;; 11385 aCC*) 11386 lt_prog_compiler_wl_CXX='-Wl,' 11387 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11388 case $host_cpu in 11389 hppa*64*|ia64*) 11390 # +Z the default 11391 ;; 11392 *) 11393 lt_prog_compiler_pic_CXX='+Z' 11394 ;; 11395 esac 11396 ;; 11397 *) 11398 ;; 11399 esac 11400 ;; 11401 interix*) 11402 # This is c89, which is MS Visual C++ (no shared libs) 11403 # Anyone wants to do a port? 11404 ;; 11405 irix5* | irix6* | nonstopux*) 11406 case $cc_basename in 11407 CC*) 11408 lt_prog_compiler_wl_CXX='-Wl,' 11409 lt_prog_compiler_static_CXX='-non_shared' 11410 # CC pic flag -KPIC is the default. 11411 ;; 11412 *) 11413 ;; 11414 esac 11415 ;; 11416 linux*) 11417 case $cc_basename in 11418 KCC*) 11419 # KAI C++ Compiler 11420 lt_prog_compiler_wl_CXX='--backend -Wl,' 11421 lt_prog_compiler_pic_CXX='-fPIC' 11422 ;; 11423 icpc* | ecpc*) 11424 # Intel C++ 11425 lt_prog_compiler_wl_CXX='-Wl,' 11426 lt_prog_compiler_pic_CXX='-KPIC' 11427 lt_prog_compiler_static_CXX='-static' 11428 ;; 11429 pgCC*) 11430 # Portland Group C++ compiler. 11431 lt_prog_compiler_wl_CXX='-Wl,' 11432 lt_prog_compiler_pic_CXX='-fpic' 11433 lt_prog_compiler_static_CXX='-Bstatic' 11434 ;; 11435 cxx*) 11436 # Compaq C++ 11437 # Make sure the PIC flag is empty. It appears that all Alpha 11438 # Linux and Compaq Tru64 Unix objects are PIC. 11439 lt_prog_compiler_pic_CXX= 11440 lt_prog_compiler_static_CXX='-non_shared' 11441 ;; 11442 *) 11443 ;; 11444 esac 11445 ;; 11446 lynxos*) 11447 ;; 11448 m88k*) 11449 ;; 11450 mvs*) 11451 case $cc_basename in 11452 cxx*) 11453 lt_prog_compiler_pic_CXX='-W c,exportall' 11454 ;; 11455 *) 11456 ;; 11457 esac 11458 ;; 11459 netbsd*) 11460 ;; 11461 osf3* | osf4* | osf5*) 11462 case $cc_basename in 11463 KCC*) 11464 lt_prog_compiler_wl_CXX='--backend -Wl,' 11465 ;; 11466 RCC*) 11467 # Rational C++ 2.4.1 11468 lt_prog_compiler_pic_CXX='-pic' 11469 ;; 11470 cxx*) 11471 # Digital/Compaq C++ 11472 lt_prog_compiler_wl_CXX='-Wl,' 11473 # Make sure the PIC flag is empty. It appears that all Alpha 11474 # Linux and Compaq Tru64 Unix objects are PIC. 11475 lt_prog_compiler_pic_CXX= 11476 lt_prog_compiler_static_CXX='-non_shared' 11477 ;; 11478 *) 11479 ;; 11480 esac 11481 ;; 11482 psos*) 11483 ;; 11484 solaris*) 11485 case $cc_basename in 11486 CC*) 11487 # Sun C++ 4.2, 5.x and Centerline C++ 11488 lt_prog_compiler_pic_CXX='-KPIC' 11489 lt_prog_compiler_static_CXX='-Bstatic' 11490 lt_prog_compiler_wl_CXX='-Qoption ld ' 11491 ;; 11492 gcx*) 11493 # Green Hills C++ Compiler 11494 lt_prog_compiler_pic_CXX='-PIC' 11495 ;; 11496 *) 11497 ;; 11498 esac 11499 ;; 11500 sunos4*) 11501 case $cc_basename in 11502 CC*) 11503 # Sun C++ 4.x 11504 lt_prog_compiler_pic_CXX='-pic' 11505 lt_prog_compiler_static_CXX='-Bstatic' 11506 ;; 11507 lcc*) 11508 # Lucid 11509 lt_prog_compiler_pic_CXX='-pic' 11510 ;; 11511 *) 11512 ;; 11513 esac 11514 ;; 11515 tandem*) 11516 case $cc_basename in 11517 NCC*) 11518 # NonStop-UX NCC 3.20 11519 lt_prog_compiler_pic_CXX='-KPIC' 11520 ;; 11521 *) 11522 ;; 11523 esac 11524 ;; 11525 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11526 case $cc_basename in 11527 CC*) 11528 lt_prog_compiler_wl_CXX='-Wl,' 11529 lt_prog_compiler_pic_CXX='-KPIC' 11530 lt_prog_compiler_static_CXX='-Bstatic' 11531 ;; 11532 esac 11533 ;; 11534 vxworks*) 11535 ;; 11536 *) 11537 lt_prog_compiler_can_build_shared_CXX=no 11538 ;; 11539 esac 11540 fi 11541 11542echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11543echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11544 11545# 11546# Check to make sure the PIC flag actually works. 11547# 11548if test -n "$lt_prog_compiler_pic_CXX"; then 11549 11550echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11551echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11552if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11553 echo $ECHO_N "(cached) $ECHO_C" >&6 11554else 11555 lt_prog_compiler_pic_works_CXX=no 11556 ac_outfile=conftest.$ac_objext 11557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11558 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11559 # Insert the option either (1) after the last *FLAGS variable, or 11560 # (2) before a word containing "conftest.", or (3) at the end. 11561 # Note that $ac_compile itself does not contain backslashes and begins 11562 # with a dollar sign (not a hyphen), so the echo should work correctly. 11563 # The option is referenced via a variable to avoid confusing sed. 11564 lt_compile=`echo "$ac_compile" | $SED \ 11565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11567 -e 's:$: $lt_compiler_flag:'` 11568 (eval echo "\"\$as_me:11568: $lt_compile\"" >&5) 11569 (eval "$lt_compile" 2>conftest.err) 11570 ac_status=$? 11571 cat conftest.err >&5 11572 echo "$as_me:11572: \$? = $ac_status" >&5 11573 if (exit $ac_status) && test -s "$ac_outfile"; then 11574 # The compiler can only warn and ignore the option if not recognized 11575 # So say no if there are warnings other than the usual output. 11576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11579 lt_prog_compiler_pic_works_CXX=yes 11580 fi 11581 fi 11582 $rm conftest* 11583 11584fi 11585echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11586echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11587 11588if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11589 case $lt_prog_compiler_pic_CXX in 11590 "" | " "*) ;; 11591 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11592 esac 11593else 11594 lt_prog_compiler_pic_CXX= 11595 lt_prog_compiler_can_build_shared_CXX=no 11596fi 11597 11598fi 11599case $host_os in 11600 # For platforms which do not support PIC, -DPIC is meaningless: 11601 *djgpp*) 11602 lt_prog_compiler_pic_CXX= 11603 ;; 11604 *) 11605 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11606 ;; 11607esac 11608 11609# 11610# Check to make sure the static flag actually works. 11611# 11612wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11613echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11614echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11615if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11616 echo $ECHO_N "(cached) $ECHO_C" >&6 11617else 11618 lt_prog_compiler_static_works_CXX=no 11619 save_LDFLAGS="$LDFLAGS" 11620 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11621 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11623 # The linker can only warn and ignore the option if not recognized 11624 # So say no if there are warnings 11625 if test -s conftest.err; then 11626 # Append any errors to the config.log. 11627 cat conftest.err 1>&5 11628 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11630 if diff conftest.exp conftest.er2 >/dev/null; then 11631 lt_prog_compiler_static_works_CXX=yes 11632 fi 11633 else 11634 lt_prog_compiler_static_works_CXX=yes 11635 fi 11636 fi 11637 $rm conftest* 11638 LDFLAGS="$save_LDFLAGS" 11639 11640fi 11641echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11642echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11643 11644if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11645 : 11646else 11647 lt_prog_compiler_static_CXX= 11648fi 11649 11650 11651echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11652echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11653if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11654 echo $ECHO_N "(cached) $ECHO_C" >&6 11655else 11656 lt_cv_prog_compiler_c_o_CXX=no 11657 $rm -r conftest 2>/dev/null 11658 mkdir conftest 11659 cd conftest 11660 mkdir out 11661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11662 11663 lt_compiler_flag="-o out/conftest2.$ac_objext" 11664 # Insert the option either (1) after the last *FLAGS variable, or 11665 # (2) before a word containing "conftest.", or (3) at the end. 11666 # Note that $ac_compile itself does not contain backslashes and begins 11667 # with a dollar sign (not a hyphen), so the echo should work correctly. 11668 lt_compile=`echo "$ac_compile" | $SED \ 11669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11671 -e 's:$: $lt_compiler_flag:'` 11672 (eval echo "\"\$as_me:11672: $lt_compile\"" >&5) 11673 (eval "$lt_compile" 2>out/conftest.err) 11674 ac_status=$? 11675 cat out/conftest.err >&5 11676 echo "$as_me:11676: \$? = $ac_status" >&5 11677 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11678 then 11679 # The compiler can only warn and ignore the option if not recognized 11680 # So say no if there are warnings 11681 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11682 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11683 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11684 lt_cv_prog_compiler_c_o_CXX=yes 11685 fi 11686 fi 11687 chmod u+w . 2>&5 11688 $rm conftest* 11689 # SGI C++ compiler will create directory out/ii_files/ for 11690 # template instantiation 11691 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11692 $rm out/* && rmdir out 11693 cd .. 11694 rmdir conftest 11695 $rm conftest* 11696 11697fi 11698echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11699echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11700 11701 11702hard_links="nottested" 11703if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11704 # do not overwrite the value of need_locks provided by the user 11705 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11706echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11707 hard_links=yes 11708 $rm conftest* 11709 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11710 touch conftest.a 11711 ln conftest.a conftest.b 2>&5 || hard_links=no 11712 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11713 echo "$as_me:$LINENO: result: $hard_links" >&5 11714echo "${ECHO_T}$hard_links" >&6 11715 if test "$hard_links" = no; then 11716 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11717echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11718 need_locks=warn 11719 fi 11720else 11721 need_locks=no 11722fi 11723 11724echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11725echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11726 11727 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11728 case $host_os in 11729 aix4* | aix5*) 11730 # If we're using GNU nm, then we don't want the "-C" option. 11731 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11732 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11733 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' 11734 else 11735 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' 11736 fi 11737 ;; 11738 pw32*) 11739 export_symbols_cmds_CXX="$ltdll_cmds" 11740 ;; 11741 cygwin* | mingw*) 11742 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' 11743 ;; 11744 *) 11745 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11746 ;; 11747 esac 11748 11749echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11750echo "${ECHO_T}$ld_shlibs_CXX" >&6 11751test "$ld_shlibs_CXX" = no && can_build_shared=no 11752 11753# 11754# Do we need to explicitly link libc? 11755# 11756case "x$archive_cmds_need_lc_CXX" in 11757x|xyes) 11758 # Assume -lc should be added 11759 archive_cmds_need_lc_CXX=yes 11760 11761 if test "$enable_shared" = yes && test "$GCC" = yes; then 11762 case $archive_cmds_CXX in 11763 *'~'*) 11764 # FIXME: we may have to deal with multi-command sequences. 11765 ;; 11766 '$CC '*) 11767 # Test whether the compiler implicitly links with -lc since on some 11768 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11769 # to ld, don't add -lc before -lgcc. 11770 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11771echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11772 $rm conftest* 11773 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11774 11775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11776 (eval $ac_compile) 2>&5 11777 ac_status=$? 11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11779 (exit $ac_status); } 2>conftest.err; then 11780 soname=conftest 11781 lib=conftest 11782 libobjs=conftest.$ac_objext 11783 deplibs= 11784 wl=$lt_prog_compiler_wl_CXX 11785 pic_flag=$lt_prog_compiler_pic_CXX 11786 compiler_flags=-v 11787 linker_flags=-v 11788 verstring= 11789 output_objdir=. 11790 libname=conftest 11791 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11792 allow_undefined_flag_CXX= 11793 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11794 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11795 ac_status=$? 11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11797 (exit $ac_status); } 11798 then 11799 archive_cmds_need_lc_CXX=no 11800 else 11801 archive_cmds_need_lc_CXX=yes 11802 fi 11803 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11804 else 11805 cat conftest.err 1>&5 11806 fi 11807 $rm conftest* 11808 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11809echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11810 ;; 11811 esac 11812 fi 11813 ;; 11814esac 11815 11816echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11817echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11818library_names_spec= 11819libname_spec='lib$name' 11820soname_spec= 11821shrext_cmds=".so" 11822postinstall_cmds= 11823postuninstall_cmds= 11824finish_cmds= 11825finish_eval= 11826shlibpath_var= 11827shlibpath_overrides_runpath=unknown 11828version_type=none 11829dynamic_linker="$host_os ld.so" 11830sys_lib_dlsearch_path_spec="/lib /usr/lib" 11831if test "$GCC" = yes; then 11832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11833 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11834 # if the path contains ";" then we assume it to be the separator 11835 # otherwise default to the standard path separator (i.e. ":") - it is 11836 # assumed that no part of a normal pathname contains ";" but that should 11837 # okay in the real world where ";" in dirpaths is itself problematic. 11838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11839 else 11840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11841 fi 11842else 11843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11844fi 11845need_lib_prefix=unknown 11846hardcode_into_libs=no 11847 11848# when you set need_version to no, make sure it does not cause -set_version 11849# flags to be left without arguments 11850need_version=unknown 11851 11852case $host_os in 11853aix3*) 11854 version_type=linux 11855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11856 shlibpath_var=LIBPATH 11857 11858 # AIX 3 has no versioning support, so we append a major version to the name. 11859 soname_spec='${libname}${release}${shared_ext}$major' 11860 ;; 11861 11862aix4* | aix5*) 11863 version_type=linux 11864 need_lib_prefix=no 11865 need_version=no 11866 hardcode_into_libs=yes 11867 if test "$host_cpu" = ia64; then 11868 # AIX 5 supports IA64 11869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11870 shlibpath_var=LD_LIBRARY_PATH 11871 else 11872 # With GCC up to 2.95.x, collect2 would create an import file 11873 # for dependence libraries. The import file would start with 11874 # the line `#! .'. This would cause the generated library to 11875 # depend on `.', always an invalid library. This was fixed in 11876 # development snapshots of GCC prior to 3.0. 11877 case $host_os in 11878 aix4 | aix4.[01] | aix4.[01].*) 11879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11880 echo ' yes ' 11881 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11882 : 11883 else 11884 can_build_shared=no 11885 fi 11886 ;; 11887 esac 11888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11889 # soname into executable. Probably we can add versioning support to 11890 # collect2, so additional links can be useful in future. 11891 if test "$aix_use_runtimelinking" = yes; then 11892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11893 # instead of lib<name>.a to let people know that these are not 11894 # typical AIX shared libraries. 11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11896 else 11897 # We preserve .a as extension for shared libraries through AIX4.2 11898 # and later when we are not doing run time linking. 11899 library_names_spec='${libname}${release}.a $libname.a' 11900 soname_spec='${libname}${release}${shared_ext}$major' 11901 fi 11902 shlibpath_var=LIBPATH 11903 fi 11904 ;; 11905 11906amigaos*) 11907 library_names_spec='$libname.ixlibrary $libname.a' 11908 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11909 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' 11910 ;; 11911 11912beos*) 11913 library_names_spec='${libname}${shared_ext}' 11914 dynamic_linker="$host_os ld.so" 11915 shlibpath_var=LIBRARY_PATH 11916 ;; 11917 11918bsdi[45]*) 11919 version_type=linux 11920 need_version=no 11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11922 soname_spec='${libname}${release}${shared_ext}$major' 11923 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11924 shlibpath_var=LD_LIBRARY_PATH 11925 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11926 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11927 # the default ld.so.conf also contains /usr/contrib/lib and 11928 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11929 # libtool to hard-code these into programs 11930 ;; 11931 11932cygwin* | mingw* | pw32*) 11933 version_type=windows 11934 shrext_cmds=".dll" 11935 need_version=no 11936 need_lib_prefix=no 11937 11938 case $GCC,$host_os in 11939 yes,cygwin* | yes,mingw* | yes,pw32*) 11940 library_names_spec='$libname.dll.a' 11941 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11942 postinstall_cmds='base_file=`basename \${file}`~ 11943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11944 dldir=$destdir/`dirname \$dlpath`~ 11945 test -d \$dldir || mkdir -p \$dldir~ 11946 $install_prog $dir/$dlname \$dldir/$dlname~ 11947 chmod a+x \$dldir/$dlname' 11948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11949 dlpath=$dir/\$dldll~ 11950 $rm \$dlpath' 11951 shlibpath_overrides_runpath=yes 11952 11953 case $host_os in 11954 cygwin*) 11955 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11956 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11957 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11958 ;; 11959 mingw*) 11960 # MinGW DLLs use traditional 'lib' prefix 11961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11963 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11964 # It is most probably a Windows format PATH printed by 11965 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11966 # path with ; separators, and with drive letters. We can handle the 11967 # drive letters (cygwin fileutils understands them), so leave them, 11968 # especially as we might pass files found there to a mingw objdump, 11969 # which wouldn't understand a cygwinified path. Ahh. 11970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11971 else 11972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11973 fi 11974 ;; 11975 pw32*) 11976 # pw32 DLLs use 'pw' prefix rather than 'lib' 11977 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11978 ;; 11979 esac 11980 ;; 11981 11982 *) 11983 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11984 ;; 11985 esac 11986 dynamic_linker='Win32 ld.exe' 11987 # FIXME: first we should search . and the directory the executable is in 11988 shlibpath_var=PATH 11989 ;; 11990 11991darwin* | rhapsody*) 11992 dynamic_linker="$host_os dyld" 11993 version_type=darwin 11994 need_lib_prefix=no 11995 need_version=no 11996 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11997 soname_spec='${libname}${release}${major}$shared_ext' 11998 shlibpath_overrides_runpath=yes 11999 shlibpath_var=DYLD_LIBRARY_PATH 12000 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12001 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12002 if test "$GCC" = yes; then 12003 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"` 12004 else 12005 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12006 fi 12007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12008 ;; 12009 12010dgux*) 12011 version_type=linux 12012 need_lib_prefix=no 12013 need_version=no 12014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12015 soname_spec='${libname}${release}${shared_ext}$major' 12016 shlibpath_var=LD_LIBRARY_PATH 12017 ;; 12018 12019freebsd1*) 12020 dynamic_linker=no 12021 ;; 12022 12023kfreebsd*-gnu) 12024 version_type=linux 12025 need_lib_prefix=no 12026 need_version=no 12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12028 soname_spec='${libname}${release}${shared_ext}$major' 12029 shlibpath_var=LD_LIBRARY_PATH 12030 shlibpath_overrides_runpath=no 12031 hardcode_into_libs=yes 12032 dynamic_linker='GNU ld.so' 12033 ;; 12034 12035freebsd* | dragonfly*) 12036 # DragonFly does not have aout. When/if they implement a new 12037 # versioning mechanism, adjust this. 12038 if test -x /usr/bin/objformat; then 12039 objformat=`/usr/bin/objformat` 12040 else 12041 case $host_os in 12042 freebsd[123]*) objformat=aout ;; 12043 *) objformat=elf ;; 12044 esac 12045 fi 12046 version_type=freebsd-$objformat 12047 case $version_type in 12048 freebsd-elf*) 12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12050 need_version=no 12051 need_lib_prefix=no 12052 ;; 12053 freebsd-*) 12054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12055 need_version=yes 12056 ;; 12057 esac 12058 shlibpath_var=LD_LIBRARY_PATH 12059 case $host_os in 12060 freebsd2*) 12061 shlibpath_overrides_runpath=yes 12062 ;; 12063 freebsd3.[01]* | freebsdelf3.[01]*) 12064 shlibpath_overrides_runpath=yes 12065 hardcode_into_libs=yes 12066 ;; 12067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12069 shlibpath_overrides_runpath=no 12070 hardcode_into_libs=yes 12071 ;; 12072 freebsd*) # from 4.6 on 12073 shlibpath_overrides_runpath=yes 12074 hardcode_into_libs=yes 12075 ;; 12076 esac 12077 ;; 12078 12079gnu*) 12080 version_type=linux 12081 need_lib_prefix=no 12082 need_version=no 12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12084 soname_spec='${libname}${release}${shared_ext}$major' 12085 shlibpath_var=LD_LIBRARY_PATH 12086 hardcode_into_libs=yes 12087 ;; 12088 12089hpux9* | hpux10* | hpux11*) 12090 # Give a soname corresponding to the major version so that dld.sl refuses to 12091 # link against other versions. 12092 version_type=sunos 12093 need_lib_prefix=no 12094 need_version=no 12095 case $host_cpu in 12096 ia64*) 12097 shrext_cmds='.so' 12098 hardcode_into_libs=yes 12099 dynamic_linker="$host_os dld.so" 12100 shlibpath_var=LD_LIBRARY_PATH 12101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12103 soname_spec='${libname}${release}${shared_ext}$major' 12104 if test "X$HPUX_IA64_MODE" = X32; then 12105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12106 else 12107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12108 fi 12109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12110 ;; 12111 hppa*64*) 12112 shrext_cmds='.sl' 12113 hardcode_into_libs=yes 12114 dynamic_linker="$host_os dld.sl" 12115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12118 soname_spec='${libname}${release}${shared_ext}$major' 12119 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12121 ;; 12122 *) 12123 shrext_cmds='.sl' 12124 dynamic_linker="$host_os dld.sl" 12125 shlibpath_var=SHLIB_PATH 12126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12128 soname_spec='${libname}${release}${shared_ext}$major' 12129 ;; 12130 esac 12131 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12132 postinstall_cmds='chmod 555 $lib' 12133 ;; 12134 12135interix3*) 12136 version_type=linux 12137 need_lib_prefix=no 12138 need_version=no 12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12140 soname_spec='${libname}${release}${shared_ext}$major' 12141 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12142 shlibpath_var=LD_LIBRARY_PATH 12143 shlibpath_overrides_runpath=no 12144 hardcode_into_libs=yes 12145 ;; 12146 12147irix5* | irix6* | nonstopux*) 12148 case $host_os in 12149 nonstopux*) version_type=nonstopux ;; 12150 *) 12151 if test "$lt_cv_prog_gnu_ld" = yes; then 12152 version_type=linux 12153 else 12154 version_type=irix 12155 fi ;; 12156 esac 12157 need_lib_prefix=no 12158 need_version=no 12159 soname_spec='${libname}${release}${shared_ext}$major' 12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12161 case $host_os in 12162 irix5* | nonstopux*) 12163 libsuff= shlibsuff= 12164 ;; 12165 *) 12166 case $LD in # libtool.m4 will add one of these switches to LD 12167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12168 libsuff= shlibsuff= libmagic=32-bit;; 12169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12170 libsuff=32 shlibsuff=N32 libmagic=N32;; 12171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12172 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12173 *) libsuff= shlibsuff= libmagic=never-match;; 12174 esac 12175 ;; 12176 esac 12177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12178 shlibpath_overrides_runpath=no 12179 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12180 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12181 hardcode_into_libs=yes 12182 ;; 12183 12184# No shared lib support for Linux oldld, aout, or coff. 12185linux*oldld* | linux*aout* | linux*coff*) 12186 dynamic_linker=no 12187 ;; 12188 12189# This must be Linux ELF. 12190linux*) 12191 version_type=linux 12192 need_lib_prefix=no 12193 need_version=no 12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12195 soname_spec='${libname}${release}${shared_ext}$major' 12196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12197 shlibpath_var=LD_LIBRARY_PATH 12198 shlibpath_overrides_runpath=no 12199 # This implies no fast_install, which is unacceptable. 12200 # Some rework will be needed to allow for fast_install 12201 # before this can be enabled. 12202 hardcode_into_libs=yes 12203 12204 # find out which ABI we are using 12205 libsuff= 12206 case "$host_cpu" in 12207 x86_64*|s390x*|powerpc64*) 12208 echo '#line 12208 "configure"' > conftest.$ac_ext 12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12210 (eval $ac_compile) 2>&5 12211 ac_status=$? 12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12213 (exit $ac_status); }; then 12214 case `/usr/bin/file conftest.$ac_objext` in 12215 *64-bit*) 12216 libsuff=64 12217 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 12218 ;; 12219 esac 12220 fi 12221 rm -rf conftest* 12222 ;; 12223 esac 12224 12225 # Append ld.so.conf contents to the search path 12226 if test -f /etc/ld.so.conf; then 12227 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12228 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 12229 fi 12230 12231 # We used to test for /lib/ld.so.1 and disable shared libraries on 12232 # powerpc, because MkLinux only supported shared libraries with the 12233 # GNU dynamic linker. Since this was broken with cross compilers, 12234 # most powerpc-linux boxes support dynamic linking these days and 12235 # people can always --disable-shared, the test was removed, and we 12236 # assume the GNU/Linux dynamic linker is in use. 12237 dynamic_linker='GNU/Linux ld.so' 12238 ;; 12239 12240knetbsd*-gnu) 12241 version_type=linux 12242 need_lib_prefix=no 12243 need_version=no 12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12245 soname_spec='${libname}${release}${shared_ext}$major' 12246 shlibpath_var=LD_LIBRARY_PATH 12247 shlibpath_overrides_runpath=no 12248 hardcode_into_libs=yes 12249 dynamic_linker='GNU ld.so' 12250 ;; 12251 12252netbsd*) 12253 version_type=sunos 12254 need_lib_prefix=no 12255 need_version=no 12256 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12259 dynamic_linker='NetBSD (a.out) ld.so' 12260 else 12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12262 soname_spec='${libname}${release}${shared_ext}$major' 12263 dynamic_linker='NetBSD ld.elf_so' 12264 fi 12265 shlibpath_var=LD_LIBRARY_PATH 12266 shlibpath_overrides_runpath=yes 12267 hardcode_into_libs=yes 12268 ;; 12269 12270newsos6) 12271 version_type=linux 12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12273 shlibpath_var=LD_LIBRARY_PATH 12274 shlibpath_overrides_runpath=yes 12275 ;; 12276 12277nto-qnx*) 12278 version_type=linux 12279 need_lib_prefix=no 12280 need_version=no 12281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12282 soname_spec='${libname}${release}${shared_ext}$major' 12283 shlibpath_var=LD_LIBRARY_PATH 12284 shlibpath_overrides_runpath=yes 12285 ;; 12286 12287openbsd*) 12288 version_type=sunos 12289 sys_lib_dlsearch_path_spec="/usr/lib" 12290 need_lib_prefix=no 12291 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12292 case $host_os in 12293 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12294 *) need_version=no ;; 12295 esac 12296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12298 shlibpath_var=LD_LIBRARY_PATH 12299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12300 case $host_os in 12301 openbsd2.[89] | openbsd2.[89].*) 12302 shlibpath_overrides_runpath=no 12303 ;; 12304 *) 12305 shlibpath_overrides_runpath=yes 12306 ;; 12307 esac 12308 else 12309 shlibpath_overrides_runpath=yes 12310 fi 12311 ;; 12312 12313os2*) 12314 libname_spec='$name' 12315 shrext_cmds=".dll" 12316 need_lib_prefix=no 12317 library_names_spec='$libname${shared_ext} $libname.a' 12318 dynamic_linker='OS/2 ld.exe' 12319 shlibpath_var=LIBPATH 12320 ;; 12321 12322osf3* | osf4* | osf5*) 12323 version_type=osf 12324 need_lib_prefix=no 12325 need_version=no 12326 soname_spec='${libname}${release}${shared_ext}$major' 12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12328 shlibpath_var=LD_LIBRARY_PATH 12329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12331 ;; 12332 12333solaris*) 12334 version_type=linux 12335 need_lib_prefix=no 12336 need_version=no 12337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12338 soname_spec='${libname}${release}${shared_ext}$major' 12339 shlibpath_var=LD_LIBRARY_PATH 12340 shlibpath_overrides_runpath=yes 12341 hardcode_into_libs=yes 12342 # ldd complains unless libraries are executable 12343 postinstall_cmds='chmod +x $lib' 12344 ;; 12345 12346sunos4*) 12347 version_type=sunos 12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12350 shlibpath_var=LD_LIBRARY_PATH 12351 shlibpath_overrides_runpath=yes 12352 if test "$with_gnu_ld" = yes; then 12353 need_lib_prefix=no 12354 fi 12355 need_version=yes 12356 ;; 12357 12358sysv4 | sysv4.3*) 12359 version_type=linux 12360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12361 soname_spec='${libname}${release}${shared_ext}$major' 12362 shlibpath_var=LD_LIBRARY_PATH 12363 case $host_vendor in 12364 sni) 12365 shlibpath_overrides_runpath=no 12366 need_lib_prefix=no 12367 export_dynamic_flag_spec='${wl}-Blargedynsym' 12368 runpath_var=LD_RUN_PATH 12369 ;; 12370 siemens) 12371 need_lib_prefix=no 12372 ;; 12373 motorola) 12374 need_lib_prefix=no 12375 need_version=no 12376 shlibpath_overrides_runpath=no 12377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12378 ;; 12379 esac 12380 ;; 12381 12382sysv4*MP*) 12383 if test -d /usr/nec ;then 12384 version_type=linux 12385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12386 soname_spec='$libname${shared_ext}.$major' 12387 shlibpath_var=LD_LIBRARY_PATH 12388 fi 12389 ;; 12390 12391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12392 version_type=freebsd-elf 12393 need_lib_prefix=no 12394 need_version=no 12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12396 soname_spec='${libname}${release}${shared_ext}$major' 12397 shlibpath_var=LD_LIBRARY_PATH 12398 hardcode_into_libs=yes 12399 if test "$with_gnu_ld" = yes; then 12400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12401 shlibpath_overrides_runpath=no 12402 else 12403 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12404 shlibpath_overrides_runpath=yes 12405 case $host_os in 12406 sco3.2v5*) 12407 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12408 ;; 12409 esac 12410 fi 12411 sys_lib_dlsearch_path_spec='/usr/lib' 12412 ;; 12413 12414uts4*) 12415 version_type=linux 12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12417 soname_spec='${libname}${release}${shared_ext}$major' 12418 shlibpath_var=LD_LIBRARY_PATH 12419 ;; 12420 12421*) 12422 dynamic_linker=no 12423 ;; 12424esac 12425echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12426echo "${ECHO_T}$dynamic_linker" >&6 12427test "$dynamic_linker" = no && can_build_shared=no 12428 12429variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12430if test "$GCC" = yes; then 12431 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12432fi 12433 12434echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12435echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12436hardcode_action_CXX= 12437if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12438 test -n "$runpath_var_CXX" || \ 12439 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12440 12441 # We can hardcode non-existant directories. 12442 if test "$hardcode_direct_CXX" != no && 12443 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12444 # have to relink, otherwise we might link with an installed library 12445 # when we should be linking with a yet-to-be-installed one 12446 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12447 test "$hardcode_minus_L_CXX" != no; then 12448 # Linking always hardcodes the temporary library directory. 12449 hardcode_action_CXX=relink 12450 else 12451 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12452 hardcode_action_CXX=immediate 12453 fi 12454else 12455 # We cannot hardcode anything, or else we can only hardcode existing 12456 # directories. 12457 hardcode_action_CXX=unsupported 12458fi 12459echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12460echo "${ECHO_T}$hardcode_action_CXX" >&6 12461 12462if test "$hardcode_action_CXX" = relink; then 12463 # Fast installation is not supported 12464 enable_fast_install=no 12465elif test "$shlibpath_overrides_runpath" = yes || 12466 test "$enable_shared" = no; then 12467 # Fast installation is not necessary 12468 enable_fast_install=needless 12469fi 12470 12471 12472# The else clause should only fire when bootstrapping the 12473# libtool distribution, otherwise you forgot to ship ltmain.sh 12474# with your package, and you will get complaints that there are 12475# no rules to generate ltmain.sh. 12476if test -f "$ltmain"; then 12477 # See if we are running on zsh, and set the options which allow our commands through 12478 # without removal of \ escapes. 12479 if test -n "${ZSH_VERSION+set}" ; then 12480 setopt NO_GLOB_SUBST 12481 fi 12482 # Now quote all the things that may contain metacharacters while being 12483 # careful not to overquote the AC_SUBSTed values. We take copies of the 12484 # variables and quote the copies for generation of the libtool script. 12485 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12486 SED SHELL STRIP \ 12487 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12488 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12489 deplibs_check_method reload_flag reload_cmds need_locks \ 12490 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12491 lt_cv_sys_global_symbol_to_c_name_address \ 12492 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12493 old_postinstall_cmds old_postuninstall_cmds \ 12494 compiler_CXX \ 12495 CC_CXX \ 12496 LD_CXX \ 12497 lt_prog_compiler_wl_CXX \ 12498 lt_prog_compiler_pic_CXX \ 12499 lt_prog_compiler_static_CXX \ 12500 lt_prog_compiler_no_builtin_flag_CXX \ 12501 export_dynamic_flag_spec_CXX \ 12502 thread_safe_flag_spec_CXX \ 12503 whole_archive_flag_spec_CXX \ 12504 enable_shared_with_static_runtimes_CXX \ 12505 old_archive_cmds_CXX \ 12506 old_archive_from_new_cmds_CXX \ 12507 predep_objects_CXX \ 12508 postdep_objects_CXX \ 12509 predeps_CXX \ 12510 postdeps_CXX \ 12511 compiler_lib_search_path_CXX \ 12512 archive_cmds_CXX \ 12513 archive_expsym_cmds_CXX \ 12514 postinstall_cmds_CXX \ 12515 postuninstall_cmds_CXX \ 12516 old_archive_from_expsyms_cmds_CXX \ 12517 allow_undefined_flag_CXX \ 12518 no_undefined_flag_CXX \ 12519 export_symbols_cmds_CXX \ 12520 hardcode_libdir_flag_spec_CXX \ 12521 hardcode_libdir_flag_spec_ld_CXX \ 12522 hardcode_libdir_separator_CXX \ 12523 hardcode_automatic_CXX \ 12524 module_cmds_CXX \ 12525 module_expsym_cmds_CXX \ 12526 lt_cv_prog_compiler_c_o_CXX \ 12527 exclude_expsyms_CXX \ 12528 include_expsyms_CXX; do 12529 12530 case $var in 12531 old_archive_cmds_CXX | \ 12532 old_archive_from_new_cmds_CXX | \ 12533 archive_cmds_CXX | \ 12534 archive_expsym_cmds_CXX | \ 12535 module_cmds_CXX | \ 12536 module_expsym_cmds_CXX | \ 12537 old_archive_from_expsyms_cmds_CXX | \ 12538 export_symbols_cmds_CXX | \ 12539 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12540 postinstall_cmds | postuninstall_cmds | \ 12541 old_postinstall_cmds | old_postuninstall_cmds | \ 12542 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12543 # Double-quote double-evaled strings. 12544 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12545 ;; 12546 *) 12547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12548 ;; 12549 esac 12550 done 12551 12552 case $lt_echo in 12553 *'\$0 --fallback-echo"') 12554 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12555 ;; 12556 esac 12557 12558cfgfile="$ofile" 12559 12560 cat <<__EOF__ >> "$cfgfile" 12561# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12562 12563# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12564 12565# Shell to use when invoking shell scripts. 12566SHELL=$lt_SHELL 12567 12568# Whether or not to build shared libraries. 12569build_libtool_libs=$enable_shared 12570 12571# Whether or not to build static libraries. 12572build_old_libs=$enable_static 12573 12574# Whether or not to add -lc for building shared libraries. 12575build_libtool_need_lc=$archive_cmds_need_lc_CXX 12576 12577# Whether or not to disallow shared libs when runtime libs are static 12578allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12579 12580# Whether or not to optimize for fast installation. 12581fast_install=$enable_fast_install 12582 12583# The host system. 12584host_alias=$host_alias 12585host=$host 12586host_os=$host_os 12587 12588# The build system. 12589build_alias=$build_alias 12590build=$build 12591build_os=$build_os 12592 12593# An echo program that does not interpret backslashes. 12594echo=$lt_echo 12595 12596# The archiver. 12597AR=$lt_AR 12598AR_FLAGS=$lt_AR_FLAGS 12599 12600# A C compiler. 12601LTCC=$lt_LTCC 12602 12603# LTCC compiler flags. 12604LTCFLAGS=$lt_LTCFLAGS 12605 12606# A language-specific compiler. 12607CC=$lt_compiler_CXX 12608 12609# Is the compiler the GNU C compiler? 12610with_gcc=$GCC_CXX 12611 12612# An ERE matcher. 12613EGREP=$lt_EGREP 12614 12615# The linker used to build libraries. 12616LD=$lt_LD_CXX 12617 12618# Whether we need hard or soft links. 12619LN_S=$lt_LN_S 12620 12621# A BSD-compatible nm program. 12622NM=$lt_NM 12623 12624# A symbol stripping program 12625STRIP=$lt_STRIP 12626 12627# Used to examine libraries when file_magic_cmd begins "file" 12628MAGIC_CMD=$MAGIC_CMD 12629 12630# Used on cygwin: DLL creation program. 12631DLLTOOL="$DLLTOOL" 12632 12633# Used on cygwin: object dumper. 12634OBJDUMP="$OBJDUMP" 12635 12636# Used on cygwin: assembler. 12637AS="$AS" 12638 12639# The name of the directory that contains temporary libtool files. 12640objdir=$objdir 12641 12642# How to create reloadable object files. 12643reload_flag=$lt_reload_flag 12644reload_cmds=$lt_reload_cmds 12645 12646# How to pass a linker flag through the compiler. 12647wl=$lt_lt_prog_compiler_wl_CXX 12648 12649# Object file suffix (normally "o"). 12650objext="$ac_objext" 12651 12652# Old archive suffix (normally "a"). 12653libext="$libext" 12654 12655# Shared library suffix (normally ".so"). 12656shrext_cmds='$shrext_cmds' 12657 12658# Executable file suffix (normally ""). 12659exeext="$exeext" 12660 12661# Additional compiler flags for building library objects. 12662pic_flag=$lt_lt_prog_compiler_pic_CXX 12663pic_mode=$pic_mode 12664 12665# What is the maximum length of a command? 12666max_cmd_len=$lt_cv_sys_max_cmd_len 12667 12668# Does compiler simultaneously support -c and -o options? 12669compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12670 12671# Must we lock files when doing compilation? 12672need_locks=$lt_need_locks 12673 12674# Do we need the lib prefix for modules? 12675need_lib_prefix=$need_lib_prefix 12676 12677# Do we need a version for libraries? 12678need_version=$need_version 12679 12680# Whether dlopen is supported. 12681dlopen_support=$enable_dlopen 12682 12683# Whether dlopen of programs is supported. 12684dlopen_self=$enable_dlopen_self 12685 12686# Whether dlopen of statically linked programs is supported. 12687dlopen_self_static=$enable_dlopen_self_static 12688 12689# Compiler flag to prevent dynamic linking. 12690link_static_flag=$lt_lt_prog_compiler_static_CXX 12691 12692# Compiler flag to turn off builtin functions. 12693no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12694 12695# Compiler flag to allow reflexive dlopens. 12696export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12697 12698# Compiler flag to generate shared objects directly from archives. 12699whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12700 12701# Compiler flag to generate thread-safe objects. 12702thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12703 12704# Library versioning type. 12705version_type=$version_type 12706 12707# Format of library name prefix. 12708libname_spec=$lt_libname_spec 12709 12710# List of archive names. First name is the real one, the rest are links. 12711# The last name is the one that the linker finds with -lNAME. 12712library_names_spec=$lt_library_names_spec 12713 12714# The coded name of the library, if different from the real name. 12715soname_spec=$lt_soname_spec 12716 12717# Commands used to build and install an old-style archive. 12718RANLIB=$lt_RANLIB 12719old_archive_cmds=$lt_old_archive_cmds_CXX 12720old_postinstall_cmds=$lt_old_postinstall_cmds 12721old_postuninstall_cmds=$lt_old_postuninstall_cmds 12722 12723# Create an old-style archive from a shared archive. 12724old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12725 12726# Create a temporary old-style archive to link instead of a shared archive. 12727old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12728 12729# Commands used to build and install a shared archive. 12730archive_cmds=$lt_archive_cmds_CXX 12731archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12732postinstall_cmds=$lt_postinstall_cmds 12733postuninstall_cmds=$lt_postuninstall_cmds 12734 12735# Commands used to build a loadable module (assumed same as above if empty) 12736module_cmds=$lt_module_cmds_CXX 12737module_expsym_cmds=$lt_module_expsym_cmds_CXX 12738 12739# Commands to strip libraries. 12740old_striplib=$lt_old_striplib 12741striplib=$lt_striplib 12742 12743# Dependencies to place before the objects being linked to create a 12744# shared library. 12745predep_objects=$lt_predep_objects_CXX 12746 12747# Dependencies to place after the objects being linked to create a 12748# shared library. 12749postdep_objects=$lt_postdep_objects_CXX 12750 12751# Dependencies to place before the objects being linked to create a 12752# shared library. 12753predeps=$lt_predeps_CXX 12754 12755# Dependencies to place after the objects being linked to create a 12756# shared library. 12757postdeps=$lt_postdeps_CXX 12758 12759# The library search path used internally by the compiler when linking 12760# a shared library. 12761compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12762 12763# Method to check whether dependent libraries are shared objects. 12764deplibs_check_method=$lt_deplibs_check_method 12765 12766# Command to use when deplibs_check_method == file_magic. 12767file_magic_cmd=$lt_file_magic_cmd 12768 12769# Flag that allows shared libraries with undefined symbols to be built. 12770allow_undefined_flag=$lt_allow_undefined_flag_CXX 12771 12772# Flag that forces no undefined symbols. 12773no_undefined_flag=$lt_no_undefined_flag_CXX 12774 12775# Commands used to finish a libtool library installation in a directory. 12776finish_cmds=$lt_finish_cmds 12777 12778# Same as above, but a single script fragment to be evaled but not shown. 12779finish_eval=$lt_finish_eval 12780 12781# Take the output of nm and produce a listing of raw symbols and C names. 12782global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12783 12784# Transform the output of nm in a proper C declaration 12785global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12786 12787# Transform the output of nm in a C name address pair 12788global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12789 12790# This is the shared library runtime path variable. 12791runpath_var=$runpath_var 12792 12793# This is the shared library path variable. 12794shlibpath_var=$shlibpath_var 12795 12796# Is shlibpath searched before the hard-coded library search path? 12797shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12798 12799# How to hardcode a shared library path into an executable. 12800hardcode_action=$hardcode_action_CXX 12801 12802# Whether we should hardcode library paths into libraries. 12803hardcode_into_libs=$hardcode_into_libs 12804 12805# Flag to hardcode \$libdir into a binary during linking. 12806# This must work even if \$libdir does not exist. 12807hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12808 12809# If ld is used when linking, flag to hardcode \$libdir into 12810# a binary during linking. This must work even if \$libdir does 12811# not exist. 12812hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12813 12814# Whether we need a single -rpath flag with a separated argument. 12815hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12816 12817# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12818# resulting binary. 12819hardcode_direct=$hardcode_direct_CXX 12820 12821# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12822# resulting binary. 12823hardcode_minus_L=$hardcode_minus_L_CXX 12824 12825# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12826# the resulting binary. 12827hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12828 12829# Set to yes if building a shared library automatically hardcodes DIR into the library 12830# and all subsequent libraries and executables linked against it. 12831hardcode_automatic=$hardcode_automatic_CXX 12832 12833# Variables whose values should be saved in libtool wrapper scripts and 12834# restored at relink time. 12835variables_saved_for_relink="$variables_saved_for_relink" 12836 12837# Whether libtool must link a program against all its dependency libraries. 12838link_all_deplibs=$link_all_deplibs_CXX 12839 12840# Compile-time system search path for libraries 12841sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12842 12843# Run-time system search path for libraries 12844sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12845 12846# Fix the shell variable \$srcfile for the compiler. 12847fix_srcfile_path="$fix_srcfile_path_CXX" 12848 12849# Set to yes if exported symbols are required. 12850always_export_symbols=$always_export_symbols_CXX 12851 12852# The commands to list exported symbols. 12853export_symbols_cmds=$lt_export_symbols_cmds_CXX 12854 12855# The commands to extract the exported symbol list from a shared archive. 12856extract_expsyms_cmds=$lt_extract_expsyms_cmds 12857 12858# Symbols that should not be listed in the preloaded symbols. 12859exclude_expsyms=$lt_exclude_expsyms_CXX 12860 12861# Symbols that must always be exported. 12862include_expsyms=$lt_include_expsyms_CXX 12863 12864# ### END LIBTOOL TAG CONFIG: $tagname 12865 12866__EOF__ 12867 12868 12869else 12870 # If there is no Makefile yet, we rely on a make rule to execute 12871 # `config.status --recheck' to rerun these tests and create the 12872 # libtool script then. 12873 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12874 if test -f "$ltmain_in"; then 12875 test -f Makefile && make "$ltmain" 12876 fi 12877fi 12878 12879 12880ac_ext=c 12881ac_cpp='$CPP $CPPFLAGS' 12882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12884ac_compiler_gnu=$ac_cv_c_compiler_gnu 12885 12886CC=$lt_save_CC 12887LDCXX=$LD 12888LD=$lt_save_LD 12889GCC=$lt_save_GCC 12890with_gnu_ldcxx=$with_gnu_ld 12891with_gnu_ld=$lt_save_with_gnu_ld 12892lt_cv_path_LDCXX=$lt_cv_path_LD 12893lt_cv_path_LD=$lt_save_path_LD 12894lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12895lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12896 12897 else 12898 tagname="" 12899 fi 12900 ;; 12901 12902 F77) 12903 if test -n "$F77" && test "X$F77" != "Xno"; then 12904 12905ac_ext=f 12906ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12907ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12908ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12909 12910 12911archive_cmds_need_lc_F77=no 12912allow_undefined_flag_F77= 12913always_export_symbols_F77=no 12914archive_expsym_cmds_F77= 12915export_dynamic_flag_spec_F77= 12916hardcode_direct_F77=no 12917hardcode_libdir_flag_spec_F77= 12918hardcode_libdir_flag_spec_ld_F77= 12919hardcode_libdir_separator_F77= 12920hardcode_minus_L_F77=no 12921hardcode_automatic_F77=no 12922module_cmds_F77= 12923module_expsym_cmds_F77= 12924link_all_deplibs_F77=unknown 12925old_archive_cmds_F77=$old_archive_cmds 12926no_undefined_flag_F77= 12927whole_archive_flag_spec_F77= 12928enable_shared_with_static_runtimes_F77=no 12929 12930# Source file extension for f77 test sources. 12931ac_ext=f 12932 12933# Object file extension for compiled f77 test sources. 12934objext=o 12935objext_F77=$objext 12936 12937# Code to be used in simple compile tests 12938lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12939 12940# Code to be used in simple link tests 12941lt_simple_link_test_code=" program t\n end\n" 12942 12943# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12944 12945# If no C compiler was specified, use CC. 12946LTCC=${LTCC-"$CC"} 12947 12948# If no C compiler flags were specified, use CFLAGS. 12949LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12950 12951# Allow CC to be a program name with arguments. 12952compiler=$CC 12953 12954 12955# save warnings/boilerplate of simple test code 12956ac_outfile=conftest.$ac_objext 12957printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12958eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12959_lt_compiler_boilerplate=`cat conftest.err` 12960$rm conftest* 12961 12962ac_outfile=conftest.$ac_objext 12963printf "$lt_simple_link_test_code" >conftest.$ac_ext 12964eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12965_lt_linker_boilerplate=`cat conftest.err` 12966$rm conftest* 12967 12968 12969# Allow CC to be a program name with arguments. 12970lt_save_CC="$CC" 12971CC=${F77-"f77"} 12972compiler=$CC 12973compiler_F77=$CC 12974for cc_temp in $compiler""; do 12975 case $cc_temp in 12976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12978 \-*) ;; 12979 *) break;; 12980 esac 12981done 12982cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12983 12984 12985echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12986echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12987echo "$as_me:$LINENO: result: $can_build_shared" >&5 12988echo "${ECHO_T}$can_build_shared" >&6 12989 12990echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12991echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12992test "$can_build_shared" = "no" && enable_shared=no 12993 12994# On AIX, shared libraries and static libraries use the same namespace, and 12995# are all built from PIC. 12996case $host_os in 12997aix3*) 12998 test "$enable_shared" = yes && enable_static=no 12999 if test -n "$RANLIB"; then 13000 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13001 postinstall_cmds='$RANLIB $lib' 13002 fi 13003 ;; 13004aix4* | aix5*) 13005 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13006 test "$enable_shared" = yes && enable_static=no 13007 fi 13008 ;; 13009esac 13010echo "$as_me:$LINENO: result: $enable_shared" >&5 13011echo "${ECHO_T}$enable_shared" >&6 13012 13013echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13014echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13015# Make sure either enable_shared or enable_static is yes. 13016test "$enable_shared" = yes || enable_static=yes 13017echo "$as_me:$LINENO: result: $enable_static" >&5 13018echo "${ECHO_T}$enable_static" >&6 13019 13020GCC_F77="$G77" 13021LD_F77="$LD" 13022 13023lt_prog_compiler_wl_F77= 13024lt_prog_compiler_pic_F77= 13025lt_prog_compiler_static_F77= 13026 13027echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13028echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13029 13030 if test "$GCC" = yes; then 13031 lt_prog_compiler_wl_F77='-Wl,' 13032 lt_prog_compiler_static_F77='-static' 13033 13034 case $host_os in 13035 aix*) 13036 # All AIX code is PIC. 13037 if test "$host_cpu" = ia64; then 13038 # AIX 5 now supports IA64 processor 13039 lt_prog_compiler_static_F77='-Bstatic' 13040 fi 13041 ;; 13042 13043 amigaos*) 13044 # FIXME: we need at least 68020 code to build shared libraries, but 13045 # adding the `-m68020' flag to GCC prevents building anything better, 13046 # like `-m68040'. 13047 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13048 ;; 13049 13050 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13051 # PIC is the default for these OSes. 13052 ;; 13053 13054 mingw* | pw32* | os2*) 13055 # This hack is so that the source file can tell whether it is being 13056 # built for inclusion in a dll (and should export symbols for example). 13057 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13058 ;; 13059 13060 darwin* | rhapsody*) 13061 # PIC is the default on this platform 13062 # Common symbols not allowed in MH_DYLIB files 13063 lt_prog_compiler_pic_F77='-fno-common' 13064 ;; 13065 13066 interix3*) 13067 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13068 # Instead, we relocate shared libraries at runtime. 13069 ;; 13070 13071 msdosdjgpp*) 13072 # Just because we use GCC doesn't mean we suddenly get shared libraries 13073 # on systems that don't support them. 13074 lt_prog_compiler_can_build_shared_F77=no 13075 enable_shared=no 13076 ;; 13077 13078 sysv4*MP*) 13079 if test -d /usr/nec; then 13080 lt_prog_compiler_pic_F77=-Kconform_pic 13081 fi 13082 ;; 13083 13084 hpux*) 13085 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13086 # not for PA HP-UX. 13087 case $host_cpu in 13088 hppa*64*|ia64*) 13089 # +Z the default 13090 ;; 13091 *) 13092 lt_prog_compiler_pic_F77='-fPIC' 13093 ;; 13094 esac 13095 ;; 13096 13097 *) 13098 lt_prog_compiler_pic_F77='-fPIC' 13099 ;; 13100 esac 13101 else 13102 # PORTME Check for flag to pass linker flags through the system compiler. 13103 case $host_os in 13104 aix*) 13105 lt_prog_compiler_wl_F77='-Wl,' 13106 if test "$host_cpu" = ia64; then 13107 # AIX 5 now supports IA64 processor 13108 lt_prog_compiler_static_F77='-Bstatic' 13109 else 13110 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13111 fi 13112 ;; 13113 darwin*) 13114 # PIC is the default on this platform 13115 # Common symbols not allowed in MH_DYLIB files 13116 case $cc_basename in 13117 xlc*) 13118 lt_prog_compiler_pic_F77='-qnocommon' 13119 lt_prog_compiler_wl_F77='-Wl,' 13120 ;; 13121 esac 13122 ;; 13123 13124 mingw* | pw32* | os2*) 13125 # This hack is so that the source file can tell whether it is being 13126 # built for inclusion in a dll (and should export symbols for example). 13127 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13128 ;; 13129 13130 hpux9* | hpux10* | hpux11*) 13131 lt_prog_compiler_wl_F77='-Wl,' 13132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13133 # not for PA HP-UX. 13134 case $host_cpu in 13135 hppa*64*|ia64*) 13136 # +Z the default 13137 ;; 13138 *) 13139 lt_prog_compiler_pic_F77='+Z' 13140 ;; 13141 esac 13142 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13143 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13144 ;; 13145 13146 irix5* | irix6* | nonstopux*) 13147 lt_prog_compiler_wl_F77='-Wl,' 13148 # PIC (with -KPIC) is the default. 13149 lt_prog_compiler_static_F77='-non_shared' 13150 ;; 13151 13152 newsos6) 13153 lt_prog_compiler_pic_F77='-KPIC' 13154 lt_prog_compiler_static_F77='-Bstatic' 13155 ;; 13156 13157 linux*) 13158 case $cc_basename in 13159 icc* | ecc*) 13160 lt_prog_compiler_wl_F77='-Wl,' 13161 lt_prog_compiler_pic_F77='-KPIC' 13162 lt_prog_compiler_static_F77='-static' 13163 ;; 13164 pgcc* | pgf77* | pgf90* | pgf95*) 13165 # Portland Group compilers (*not* the Pentium gcc compiler, 13166 # which looks to be a dead project) 13167 lt_prog_compiler_wl_F77='-Wl,' 13168 lt_prog_compiler_pic_F77='-fpic' 13169 lt_prog_compiler_static_F77='-Bstatic' 13170 ;; 13171 ccc*) 13172 lt_prog_compiler_wl_F77='-Wl,' 13173 # All Alpha code is PIC. 13174 lt_prog_compiler_static_F77='-non_shared' 13175 ;; 13176 esac 13177 ;; 13178 13179 osf3* | osf4* | osf5*) 13180 lt_prog_compiler_wl_F77='-Wl,' 13181 # All OSF/1 code is PIC. 13182 lt_prog_compiler_static_F77='-non_shared' 13183 ;; 13184 13185 solaris*) 13186 lt_prog_compiler_pic_F77='-KPIC' 13187 lt_prog_compiler_static_F77='-Bstatic' 13188 case $cc_basename in 13189 f77* | f90* | f95*) 13190 lt_prog_compiler_wl_F77='-Qoption ld ';; 13191 *) 13192 lt_prog_compiler_wl_F77='-Wl,';; 13193 esac 13194 ;; 13195 13196 sunos4*) 13197 lt_prog_compiler_wl_F77='-Qoption ld ' 13198 lt_prog_compiler_pic_F77='-PIC' 13199 lt_prog_compiler_static_F77='-Bstatic' 13200 ;; 13201 13202 sysv4 | sysv4.2uw2* | sysv4.3*) 13203 lt_prog_compiler_wl_F77='-Wl,' 13204 lt_prog_compiler_pic_F77='-KPIC' 13205 lt_prog_compiler_static_F77='-Bstatic' 13206 ;; 13207 13208 sysv4*MP*) 13209 if test -d /usr/nec ;then 13210 lt_prog_compiler_pic_F77='-Kconform_pic' 13211 lt_prog_compiler_static_F77='-Bstatic' 13212 fi 13213 ;; 13214 13215 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13216 lt_prog_compiler_wl_F77='-Wl,' 13217 lt_prog_compiler_pic_F77='-KPIC' 13218 lt_prog_compiler_static_F77='-Bstatic' 13219 ;; 13220 13221 unicos*) 13222 lt_prog_compiler_wl_F77='-Wl,' 13223 lt_prog_compiler_can_build_shared_F77=no 13224 ;; 13225 13226 uts4*) 13227 lt_prog_compiler_pic_F77='-pic' 13228 lt_prog_compiler_static_F77='-Bstatic' 13229 ;; 13230 13231 *) 13232 lt_prog_compiler_can_build_shared_F77=no 13233 ;; 13234 esac 13235 fi 13236 13237echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13238echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13239 13240# 13241# Check to make sure the PIC flag actually works. 13242# 13243if test -n "$lt_prog_compiler_pic_F77"; then 13244 13245echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13246echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13247if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13248 echo $ECHO_N "(cached) $ECHO_C" >&6 13249else 13250 lt_prog_compiler_pic_works_F77=no 13251 ac_outfile=conftest.$ac_objext 13252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13253 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13254 # Insert the option either (1) after the last *FLAGS variable, or 13255 # (2) before a word containing "conftest.", or (3) at the end. 13256 # Note that $ac_compile itself does not contain backslashes and begins 13257 # with a dollar sign (not a hyphen), so the echo should work correctly. 13258 # The option is referenced via a variable to avoid confusing sed. 13259 lt_compile=`echo "$ac_compile" | $SED \ 13260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13262 -e 's:$: $lt_compiler_flag:'` 13263 (eval echo "\"\$as_me:13263: $lt_compile\"" >&5) 13264 (eval "$lt_compile" 2>conftest.err) 13265 ac_status=$? 13266 cat conftest.err >&5 13267 echo "$as_me:13267: \$? = $ac_status" >&5 13268 if (exit $ac_status) && test -s "$ac_outfile"; then 13269 # The compiler can only warn and ignore the option if not recognized 13270 # So say no if there are warnings other than the usual output. 13271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13274 lt_prog_compiler_pic_works_F77=yes 13275 fi 13276 fi 13277 $rm conftest* 13278 13279fi 13280echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13281echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13282 13283if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13284 case $lt_prog_compiler_pic_F77 in 13285 "" | " "*) ;; 13286 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13287 esac 13288else 13289 lt_prog_compiler_pic_F77= 13290 lt_prog_compiler_can_build_shared_F77=no 13291fi 13292 13293fi 13294case $host_os in 13295 # For platforms which do not support PIC, -DPIC is meaningless: 13296 *djgpp*) 13297 lt_prog_compiler_pic_F77= 13298 ;; 13299 *) 13300 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13301 ;; 13302esac 13303 13304# 13305# Check to make sure the static flag actually works. 13306# 13307wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13308echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13309echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13310if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13311 echo $ECHO_N "(cached) $ECHO_C" >&6 13312else 13313 lt_prog_compiler_static_works_F77=no 13314 save_LDFLAGS="$LDFLAGS" 13315 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13316 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13317 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13318 # The linker can only warn and ignore the option if not recognized 13319 # So say no if there are warnings 13320 if test -s conftest.err; then 13321 # Append any errors to the config.log. 13322 cat conftest.err 1>&5 13323 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13325 if diff conftest.exp conftest.er2 >/dev/null; then 13326 lt_prog_compiler_static_works_F77=yes 13327 fi 13328 else 13329 lt_prog_compiler_static_works_F77=yes 13330 fi 13331 fi 13332 $rm conftest* 13333 LDFLAGS="$save_LDFLAGS" 13334 13335fi 13336echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13337echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13338 13339if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13340 : 13341else 13342 lt_prog_compiler_static_F77= 13343fi 13344 13345 13346echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13347echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13348if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13349 echo $ECHO_N "(cached) $ECHO_C" >&6 13350else 13351 lt_cv_prog_compiler_c_o_F77=no 13352 $rm -r conftest 2>/dev/null 13353 mkdir conftest 13354 cd conftest 13355 mkdir out 13356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13357 13358 lt_compiler_flag="-o out/conftest2.$ac_objext" 13359 # Insert the option either (1) after the last *FLAGS variable, or 13360 # (2) before a word containing "conftest.", or (3) at the end. 13361 # Note that $ac_compile itself does not contain backslashes and begins 13362 # with a dollar sign (not a hyphen), so the echo should work correctly. 13363 lt_compile=`echo "$ac_compile" | $SED \ 13364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13366 -e 's:$: $lt_compiler_flag:'` 13367 (eval echo "\"\$as_me:13367: $lt_compile\"" >&5) 13368 (eval "$lt_compile" 2>out/conftest.err) 13369 ac_status=$? 13370 cat out/conftest.err >&5 13371 echo "$as_me:13371: \$? = $ac_status" >&5 13372 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13373 then 13374 # The compiler can only warn and ignore the option if not recognized 13375 # So say no if there are warnings 13376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13379 lt_cv_prog_compiler_c_o_F77=yes 13380 fi 13381 fi 13382 chmod u+w . 2>&5 13383 $rm conftest* 13384 # SGI C++ compiler will create directory out/ii_files/ for 13385 # template instantiation 13386 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13387 $rm out/* && rmdir out 13388 cd .. 13389 rmdir conftest 13390 $rm conftest* 13391 13392fi 13393echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13394echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13395 13396 13397hard_links="nottested" 13398if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13399 # do not overwrite the value of need_locks provided by the user 13400 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13401echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13402 hard_links=yes 13403 $rm conftest* 13404 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13405 touch conftest.a 13406 ln conftest.a conftest.b 2>&5 || hard_links=no 13407 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13408 echo "$as_me:$LINENO: result: $hard_links" >&5 13409echo "${ECHO_T}$hard_links" >&6 13410 if test "$hard_links" = no; then 13411 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13412echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13413 need_locks=warn 13414 fi 13415else 13416 need_locks=no 13417fi 13418 13419echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13420echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13421 13422 runpath_var= 13423 allow_undefined_flag_F77= 13424 enable_shared_with_static_runtimes_F77=no 13425 archive_cmds_F77= 13426 archive_expsym_cmds_F77= 13427 old_archive_From_new_cmds_F77= 13428 old_archive_from_expsyms_cmds_F77= 13429 export_dynamic_flag_spec_F77= 13430 whole_archive_flag_spec_F77= 13431 thread_safe_flag_spec_F77= 13432 hardcode_libdir_flag_spec_F77= 13433 hardcode_libdir_flag_spec_ld_F77= 13434 hardcode_libdir_separator_F77= 13435 hardcode_direct_F77=no 13436 hardcode_minus_L_F77=no 13437 hardcode_shlibpath_var_F77=unsupported 13438 link_all_deplibs_F77=unknown 13439 hardcode_automatic_F77=no 13440 module_cmds_F77= 13441 module_expsym_cmds_F77= 13442 always_export_symbols_F77=no 13443 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13444 # include_expsyms should be a list of space-separated symbols to be *always* 13445 # included in the symbol list 13446 include_expsyms_F77= 13447 # exclude_expsyms can be an extended regexp of symbols to exclude 13448 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13449 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13450 # as well as any symbol that contains `d'. 13451 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13453 # platforms (ab)use it in PIC code, but their linkers get confused if 13454 # the symbol is explicitly referenced. Since portable code cannot 13455 # rely on this symbol name, it's probably fine to never include it in 13456 # preloaded symbol tables. 13457 extract_expsyms_cmds= 13458 # Just being paranoid about ensuring that cc_basename is set. 13459 for cc_temp in $compiler""; do 13460 case $cc_temp in 13461 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13462 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13463 \-*) ;; 13464 *) break;; 13465 esac 13466done 13467cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13468 13469 case $host_os in 13470 cygwin* | mingw* | pw32*) 13471 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13472 # When not using gcc, we currently assume that we are using 13473 # Microsoft Visual C++. 13474 if test "$GCC" != yes; then 13475 with_gnu_ld=no 13476 fi 13477 ;; 13478 interix*) 13479 # we just hope/assume this is gcc and not c89 (= MSVC++) 13480 with_gnu_ld=yes 13481 ;; 13482 openbsd*) 13483 with_gnu_ld=no 13484 ;; 13485 esac 13486 13487 ld_shlibs_F77=yes 13488 if test "$with_gnu_ld" = yes; then 13489 # If archive_cmds runs LD, not CC, wlarc should be empty 13490 wlarc='${wl}' 13491 13492 # Set some defaults for GNU ld with shared library support. These 13493 # are reset later if shared libraries are not supported. Putting them 13494 # here allows them to be overridden if necessary. 13495 runpath_var=LD_RUN_PATH 13496 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13497 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13498 # ancient GNU ld didn't support --whole-archive et. al. 13499 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13500 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13501 else 13502 whole_archive_flag_spec_F77= 13503 fi 13504 supports_anon_versioning=no 13505 case `$LD -v 2>/dev/null` in 13506 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13507 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13508 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13509 *\ 2.11.*) ;; # other 2.11 versions 13510 *) supports_anon_versioning=yes ;; 13511 esac 13512 13513 # See if GNU ld supports shared libraries. 13514 case $host_os in 13515 aix3* | aix4* | aix5*) 13516 # On AIX/PPC, the GNU linker is very broken 13517 if test "$host_cpu" != ia64; then 13518 ld_shlibs_F77=no 13519 cat <<EOF 1>&2 13520 13521*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13522*** to be unable to reliably create shared libraries on AIX. 13523*** Therefore, libtool is disabling shared libraries support. If you 13524*** really care for shared libraries, you may want to modify your PATH 13525*** so that a non-GNU linker is found, and then restart. 13526 13527EOF 13528 fi 13529 ;; 13530 13531 amigaos*) 13532 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)' 13533 hardcode_libdir_flag_spec_F77='-L$libdir' 13534 hardcode_minus_L_F77=yes 13535 13536 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13537 # that the semantics of dynamic libraries on AmigaOS, at least up 13538 # to version 4, is to share data among multiple programs linked 13539 # with the same dynamic library. Since this doesn't match the 13540 # behavior of shared libraries on other platforms, we can't use 13541 # them. 13542 ld_shlibs_F77=no 13543 ;; 13544 13545 beos*) 13546 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13547 allow_undefined_flag_F77=unsupported 13548 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13549 # support --undefined. This deserves some investigation. FIXME 13550 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13551 else 13552 ld_shlibs_F77=no 13553 fi 13554 ;; 13555 13556 cygwin* | mingw* | pw32*) 13557 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13558 # as there is no search path for DLLs. 13559 hardcode_libdir_flag_spec_F77='-L$libdir' 13560 allow_undefined_flag_F77=unsupported 13561 always_export_symbols_F77=no 13562 enable_shared_with_static_runtimes_F77=yes 13563 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13564 13565 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13566 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13567 # If the export-symbols file already is a .def file (1st line 13568 # is EXPORTS), use it as is; otherwise, prepend... 13569 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13570 cp $export_symbols $output_objdir/$soname.def; 13571 else 13572 echo EXPORTS > $output_objdir/$soname.def; 13573 cat $export_symbols >> $output_objdir/$soname.def; 13574 fi~ 13575 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13576 else 13577 ld_shlibs_F77=no 13578 fi 13579 ;; 13580 13581 interix3*) 13582 hardcode_direct_F77=no 13583 hardcode_shlibpath_var_F77=no 13584 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13585 export_dynamic_flag_spec_F77='${wl}-E' 13586 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13587 # Instead, shared libraries are loaded at an image base (0x10000000 by 13588 # default) and relocated if they conflict, which is a slow very memory 13589 # consuming and fragmenting process. To avoid this, we pick a random, 13590 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13591 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13592 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' 13593 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' 13594 ;; 13595 13596 linux*) 13597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13598 tmp_addflag= 13599 case $cc_basename,$host_cpu in 13600 pgcc*) # Portland Group C compiler 13601 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' 13602 tmp_addflag=' $pic_flag' 13603 ;; 13604 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13605 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' 13606 tmp_addflag=' $pic_flag -Mnomain' ;; 13607 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13608 tmp_addflag=' -i_dynamic' ;; 13609 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13610 tmp_addflag=' -i_dynamic -nofor_main' ;; 13611 ifc* | ifort*) # Intel Fortran compiler 13612 tmp_addflag=' -nofor_main' ;; 13613 esac 13614 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13615 13616 if test $supports_anon_versioning = yes; then 13617 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13619 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13620 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13621 fi 13622 else 13623 ld_shlibs_F77=no 13624 fi 13625 ;; 13626 13627 netbsd*) 13628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13629 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13630 wlarc= 13631 else 13632 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13633 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13634 fi 13635 ;; 13636 13637 solaris*) 13638 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13639 ld_shlibs_F77=no 13640 cat <<EOF 1>&2 13641 13642*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13643*** create shared libraries on Solaris systems. Therefore, libtool 13644*** is disabling shared libraries support. We urge you to upgrade GNU 13645*** binutils to release 2.9.1 or newer. Another option is to modify 13646*** your PATH or compiler configuration so that the native linker is 13647*** used, and then restart. 13648 13649EOF 13650 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13651 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13652 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13653 else 13654 ld_shlibs_F77=no 13655 fi 13656 ;; 13657 13658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13659 case `$LD -v 2>&1` in 13660 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13661 ld_shlibs_F77=no 13662 cat <<_LT_EOF 1>&2 13663 13664*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13665*** reliably create shared libraries on SCO systems. Therefore, libtool 13666*** is disabling shared libraries support. We urge you to upgrade GNU 13667*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13668*** your PATH or compiler configuration so that the native linker is 13669*** used, and then restart. 13670 13671_LT_EOF 13672 ;; 13673 *) 13674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13675 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13676 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13677 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13678 else 13679 ld_shlibs_F77=no 13680 fi 13681 ;; 13682 esac 13683 ;; 13684 13685 sunos4*) 13686 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13687 wlarc= 13688 hardcode_direct_F77=yes 13689 hardcode_shlibpath_var_F77=no 13690 ;; 13691 13692 *) 13693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13695 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13696 else 13697 ld_shlibs_F77=no 13698 fi 13699 ;; 13700 esac 13701 13702 if test "$ld_shlibs_F77" = no; then 13703 runpath_var= 13704 hardcode_libdir_flag_spec_F77= 13705 export_dynamic_flag_spec_F77= 13706 whole_archive_flag_spec_F77= 13707 fi 13708 else 13709 # PORTME fill in a description of your system's linker (not GNU ld) 13710 case $host_os in 13711 aix3*) 13712 allow_undefined_flag_F77=unsupported 13713 always_export_symbols_F77=yes 13714 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' 13715 # Note: this linker hardcodes the directories in LIBPATH if there 13716 # are no directories specified by -L. 13717 hardcode_minus_L_F77=yes 13718 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13719 # Neither direct hardcoding nor static linking is supported with a 13720 # broken collect2. 13721 hardcode_direct_F77=unsupported 13722 fi 13723 ;; 13724 13725 aix4* | aix5*) 13726 if test "$host_cpu" = ia64; then 13727 # On IA64, the linker does run time linking by default, so we don't 13728 # have to do anything special. 13729 aix_use_runtimelinking=no 13730 exp_sym_flag='-Bexport' 13731 no_entry_flag="" 13732 else 13733 # If we're using GNU nm, then we don't want the "-C" option. 13734 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13735 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13736 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' 13737 else 13738 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' 13739 fi 13740 aix_use_runtimelinking=no 13741 13742 # Test if we are trying to use run time linking or normal 13743 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13744 # need to do runtime linking. 13745 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13746 for ld_flag in $LDFLAGS; do 13747 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13748 aix_use_runtimelinking=yes 13749 break 13750 fi 13751 done 13752 ;; 13753 esac 13754 13755 exp_sym_flag='-bexport' 13756 no_entry_flag='-bnoentry' 13757 fi 13758 13759 # When large executables or shared objects are built, AIX ld can 13760 # have problems creating the table of contents. If linking a library 13761 # or program results in "error TOC overflow" add -mminimal-toc to 13762 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13763 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13764 13765 archive_cmds_F77='' 13766 hardcode_direct_F77=yes 13767 hardcode_libdir_separator_F77=':' 13768 link_all_deplibs_F77=yes 13769 13770 if test "$GCC" = yes; then 13771 case $host_os in aix4.[012]|aix4.[012].*) 13772 # We only want to do this on AIX 4.2 and lower, the check 13773 # below for broken collect2 doesn't work under 4.3+ 13774 collect2name=`${CC} -print-prog-name=collect2` 13775 if test -f "$collect2name" && \ 13776 strings "$collect2name" | grep resolve_lib_name >/dev/null 13777 then 13778 # We have reworked collect2 13779 hardcode_direct_F77=yes 13780 else 13781 # We have old collect2 13782 hardcode_direct_F77=unsupported 13783 # It fails to find uninstalled libraries when the uninstalled 13784 # path is not listed in the libpath. Setting hardcode_minus_L 13785 # to unsupported forces relinking 13786 hardcode_minus_L_F77=yes 13787 hardcode_libdir_flag_spec_F77='-L$libdir' 13788 hardcode_libdir_separator_F77= 13789 fi 13790 ;; 13791 esac 13792 shared_flag='-shared' 13793 if test "$aix_use_runtimelinking" = yes; then 13794 shared_flag="$shared_flag "'${wl}-G' 13795 fi 13796 else 13797 # not using gcc 13798 if test "$host_cpu" = ia64; then 13799 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13800 # chokes on -Wl,-G. The following line is correct: 13801 shared_flag='-G' 13802 else 13803 if test "$aix_use_runtimelinking" = yes; then 13804 shared_flag='${wl}-G' 13805 else 13806 shared_flag='${wl}-bM:SRE' 13807 fi 13808 fi 13809 fi 13810 13811 # It seems that -bexpall does not export symbols beginning with 13812 # underscore (_), so it is better to generate a list of symbols to export. 13813 always_export_symbols_F77=yes 13814 if test "$aix_use_runtimelinking" = yes; then 13815 # Warning - without using the other runtime loading flags (-brtl), 13816 # -berok will link without error, but may produce a broken library. 13817 allow_undefined_flag_F77='-berok' 13818 # Determine the default libpath from the value encoded in an empty executable. 13819 cat >conftest.$ac_ext <<_ACEOF 13820 program main 13821 13822 end 13823_ACEOF 13824rm -f conftest.$ac_objext conftest$ac_exeext 13825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13826 (eval $ac_link) 2>conftest.er1 13827 ac_status=$? 13828 grep -v '^ *+' conftest.er1 >conftest.err 13829 rm -f conftest.er1 13830 cat conftest.err >&5 13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13832 (exit $ac_status); } && 13833 { ac_try='test -z "$ac_f77_werror_flag" 13834 || test ! -s conftest.err' 13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13836 (eval $ac_try) 2>&5 13837 ac_status=$? 13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13839 (exit $ac_status); }; } && 13840 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 13846 13847aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13848}'` 13849# Check for a 64-bit object if we didn't find anything. 13850if 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; } 13851}'`; fi 13852else 13853 echo "$as_me: failed program was:" >&5 13854sed 's/^/| /' conftest.$ac_ext >&5 13855 13856fi 13857rm -f conftest.err conftest.$ac_objext \ 13858 conftest$ac_exeext conftest.$ac_ext 13859if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13860 13861 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13862 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" 13863 else 13864 if test "$host_cpu" = ia64; then 13865 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13866 allow_undefined_flag_F77="-z nodefs" 13867 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" 13868 else 13869 # Determine the default libpath from the value encoded in an empty executable. 13870 cat >conftest.$ac_ext <<_ACEOF 13871 program main 13872 13873 end 13874_ACEOF 13875rm -f conftest.$ac_objext conftest$ac_exeext 13876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13877 (eval $ac_link) 2>conftest.er1 13878 ac_status=$? 13879 grep -v '^ *+' conftest.er1 >conftest.err 13880 rm -f conftest.er1 13881 cat conftest.err >&5 13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13883 (exit $ac_status); } && 13884 { ac_try='test -z "$ac_f77_werror_flag" 13885 || test ! -s conftest.err' 13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13887 (eval $ac_try) 2>&5 13888 ac_status=$? 13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13890 (exit $ac_status); }; } && 13891 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 13897 13898aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13899}'` 13900# Check for a 64-bit object if we didn't find anything. 13901if 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; } 13902}'`; fi 13903else 13904 echo "$as_me: failed program was:" >&5 13905sed 's/^/| /' conftest.$ac_ext >&5 13906 13907fi 13908rm -f conftest.err conftest.$ac_objext \ 13909 conftest$ac_exeext conftest.$ac_ext 13910if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13911 13912 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13913 # Warning - without using the other run time loading flags, 13914 # -berok will link without error, but may produce a broken library. 13915 no_undefined_flag_F77=' ${wl}-bernotok' 13916 allow_undefined_flag_F77=' ${wl}-berok' 13917 # Exported symbols can be pulled into shared objects from archives 13918 whole_archive_flag_spec_F77='$convenience' 13919 archive_cmds_need_lc_F77=yes 13920 # This is similar to how AIX traditionally builds its shared libraries. 13921 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' 13922 fi 13923 fi 13924 ;; 13925 13926 amigaos*) 13927 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)' 13928 hardcode_libdir_flag_spec_F77='-L$libdir' 13929 hardcode_minus_L_F77=yes 13930 # see comment about different semantics on the GNU ld section 13931 ld_shlibs_F77=no 13932 ;; 13933 13934 bsdi[45]*) 13935 export_dynamic_flag_spec_F77=-rdynamic 13936 ;; 13937 13938 cygwin* | mingw* | pw32*) 13939 # When not using gcc, we currently assume that we are using 13940 # Microsoft Visual C++. 13941 # hardcode_libdir_flag_spec is actually meaningless, as there is 13942 # no search path for DLLs. 13943 hardcode_libdir_flag_spec_F77=' ' 13944 allow_undefined_flag_F77=unsupported 13945 # Tell ltmain to make .lib files, not .a files. 13946 libext=lib 13947 # Tell ltmain to make .dll files, not .so files. 13948 shrext_cmds=".dll" 13949 # FIXME: Setting linknames here is a bad hack. 13950 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13951 # The linker will automatically build a .lib file if we build a DLL. 13952 old_archive_From_new_cmds_F77='true' 13953 # FIXME: Should let the user specify the lib program. 13954 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13955 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13956 enable_shared_with_static_runtimes_F77=yes 13957 ;; 13958 13959 darwin* | rhapsody*) 13960 case $host_os in 13961 rhapsody* | darwin1.[012]) 13962 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13963 ;; 13964 *) # Darwin 1.3 on 13965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13966 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13967 else 13968 case ${MACOSX_DEPLOYMENT_TARGET} in 13969 10.[012]) 13970 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13971 ;; 13972 10.*) 13973 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13974 ;; 13975 esac 13976 fi 13977 ;; 13978 esac 13979 archive_cmds_need_lc_F77=no 13980 hardcode_direct_F77=no 13981 hardcode_automatic_F77=yes 13982 hardcode_shlibpath_var_F77=unsupported 13983 whole_archive_flag_spec_F77='' 13984 link_all_deplibs_F77=yes 13985 if test "$GCC" = yes ; then 13986 output_verbose_link_cmd='echo' 13987 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13988 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13989 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13990 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}' 13991 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}' 13992 else 13993 case $cc_basename in 13994 xlc*) 13995 output_verbose_link_cmd='echo' 13996 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 13997 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 13999 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}' 14000 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}' 14001 ;; 14002 *) 14003 ld_shlibs_F77=no 14004 ;; 14005 esac 14006 fi 14007 ;; 14008 14009 dgux*) 14010 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14011 hardcode_libdir_flag_spec_F77='-L$libdir' 14012 hardcode_shlibpath_var_F77=no 14013 ;; 14014 14015 freebsd1*) 14016 ld_shlibs_F77=no 14017 ;; 14018 14019 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14020 # support. Future versions do this automatically, but an explicit c++rt0.o 14021 # does not break anything, and helps significantly (at the cost of a little 14022 # extra space). 14023 freebsd2.2*) 14024 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14025 hardcode_libdir_flag_spec_F77='-R$libdir' 14026 hardcode_direct_F77=yes 14027 hardcode_shlibpath_var_F77=no 14028 ;; 14029 14030 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14031 freebsd2*) 14032 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14033 hardcode_direct_F77=yes 14034 hardcode_minus_L_F77=yes 14035 hardcode_shlibpath_var_F77=no 14036 ;; 14037 14038 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14039 freebsd* | kfreebsd*-gnu | dragonfly*) 14040 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14041 hardcode_libdir_flag_spec_F77='-R$libdir' 14042 hardcode_direct_F77=yes 14043 hardcode_shlibpath_var_F77=no 14044 ;; 14045 14046 hpux9*) 14047 if test "$GCC" = yes; then 14048 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' 14049 else 14050 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' 14051 fi 14052 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14053 hardcode_libdir_separator_F77=: 14054 hardcode_direct_F77=yes 14055 14056 # hardcode_minus_L: Not really in the search PATH, 14057 # but as the default location of the library. 14058 hardcode_minus_L_F77=yes 14059 export_dynamic_flag_spec_F77='${wl}-E' 14060 ;; 14061 14062 hpux10*) 14063 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14064 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14065 else 14066 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14067 fi 14068 if test "$with_gnu_ld" = no; then 14069 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14070 hardcode_libdir_separator_F77=: 14071 14072 hardcode_direct_F77=yes 14073 export_dynamic_flag_spec_F77='${wl}-E' 14074 14075 # hardcode_minus_L: Not really in the search PATH, 14076 # but as the default location of the library. 14077 hardcode_minus_L_F77=yes 14078 fi 14079 ;; 14080 14081 hpux11*) 14082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14083 case $host_cpu in 14084 hppa*64*) 14085 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14086 ;; 14087 ia64*) 14088 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14089 ;; 14090 *) 14091 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14092 ;; 14093 esac 14094 else 14095 case $host_cpu in 14096 hppa*64*) 14097 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14098 ;; 14099 ia64*) 14100 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14101 ;; 14102 *) 14103 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14104 ;; 14105 esac 14106 fi 14107 if test "$with_gnu_ld" = no; then 14108 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14109 hardcode_libdir_separator_F77=: 14110 14111 case $host_cpu in 14112 hppa*64*|ia64*) 14113 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14114 hardcode_direct_F77=no 14115 hardcode_shlibpath_var_F77=no 14116 ;; 14117 *) 14118 hardcode_direct_F77=yes 14119 export_dynamic_flag_spec_F77='${wl}-E' 14120 14121 # hardcode_minus_L: Not really in the search PATH, 14122 # but as the default location of the library. 14123 hardcode_minus_L_F77=yes 14124 ;; 14125 esac 14126 fi 14127 ;; 14128 14129 irix5* | irix6* | nonstopux*) 14130 if test "$GCC" = yes; then 14131 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' 14132 else 14133 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' 14134 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14135 fi 14136 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14137 hardcode_libdir_separator_F77=: 14138 link_all_deplibs_F77=yes 14139 ;; 14140 14141 netbsd*) 14142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14143 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14144 else 14145 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14146 fi 14147 hardcode_libdir_flag_spec_F77='-R$libdir' 14148 hardcode_direct_F77=yes 14149 hardcode_shlibpath_var_F77=no 14150 ;; 14151 14152 newsos6) 14153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14154 hardcode_direct_F77=yes 14155 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14156 hardcode_libdir_separator_F77=: 14157 hardcode_shlibpath_var_F77=no 14158 ;; 14159 14160 openbsd*) 14161 hardcode_direct_F77=yes 14162 hardcode_shlibpath_var_F77=no 14163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14164 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14165 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14166 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14167 export_dynamic_flag_spec_F77='${wl}-E' 14168 else 14169 case $host_os in 14170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14171 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14172 hardcode_libdir_flag_spec_F77='-R$libdir' 14173 ;; 14174 *) 14175 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14176 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14177 ;; 14178 esac 14179 fi 14180 ;; 14181 14182 os2*) 14183 hardcode_libdir_flag_spec_F77='-L$libdir' 14184 hardcode_minus_L_F77=yes 14185 allow_undefined_flag_F77=unsupported 14186 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' 14187 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14188 ;; 14189 14190 osf3*) 14191 if test "$GCC" = yes; then 14192 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14193 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' 14194 else 14195 allow_undefined_flag_F77=' -expect_unresolved \*' 14196 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' 14197 fi 14198 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14199 hardcode_libdir_separator_F77=: 14200 ;; 14201 14202 osf4* | osf5*) # as osf3* with the addition of -msym flag 14203 if test "$GCC" = yes; then 14204 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14205 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' 14206 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14207 else 14208 allow_undefined_flag_F77=' -expect_unresolved \*' 14209 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' 14210 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~ 14211 $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' 14212 14213 # Both c and cxx compiler support -rpath directly 14214 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14215 fi 14216 hardcode_libdir_separator_F77=: 14217 ;; 14218 14219 solaris*) 14220 no_undefined_flag_F77=' -z text' 14221 if test "$GCC" = yes; then 14222 wlarc='${wl}' 14223 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14224 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14225 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14226 else 14227 wlarc='' 14228 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14229 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14231 fi 14232 hardcode_libdir_flag_spec_F77='-R$libdir' 14233 hardcode_shlibpath_var_F77=no 14234 case $host_os in 14235 solaris2.[0-5] | solaris2.[0-5].*) ;; 14236 *) 14237 # The compiler driver will combine linker options so we 14238 # cannot just pass the convience library names through 14239 # without $wl, iff we do not link with $LD. 14240 # Luckily, gcc supports the same syntax we need for Sun Studio. 14241 # Supported since Solaris 2.6 (maybe 2.5.1?) 14242 case $wlarc in 14243 '') 14244 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14245 *) 14246 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' ;; 14247 esac ;; 14248 esac 14249 link_all_deplibs_F77=yes 14250 ;; 14251 14252 sunos4*) 14253 if test "x$host_vendor" = xsequent; then 14254 # Use $CC to link under sequent, because it throws in some extra .o 14255 # files that make .init and .fini sections work. 14256 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14257 else 14258 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14259 fi 14260 hardcode_libdir_flag_spec_F77='-L$libdir' 14261 hardcode_direct_F77=yes 14262 hardcode_minus_L_F77=yes 14263 hardcode_shlibpath_var_F77=no 14264 ;; 14265 14266 sysv4) 14267 case $host_vendor in 14268 sni) 14269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14270 hardcode_direct_F77=yes # is this really true??? 14271 ;; 14272 siemens) 14273 ## LD is ld it makes a PLAMLIB 14274 ## CC just makes a GrossModule. 14275 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14276 reload_cmds_F77='$CC -r -o $output$reload_objs' 14277 hardcode_direct_F77=no 14278 ;; 14279 motorola) 14280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14281 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14282 ;; 14283 esac 14284 runpath_var='LD_RUN_PATH' 14285 hardcode_shlibpath_var_F77=no 14286 ;; 14287 14288 sysv4.3*) 14289 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14290 hardcode_shlibpath_var_F77=no 14291 export_dynamic_flag_spec_F77='-Bexport' 14292 ;; 14293 14294 sysv4*MP*) 14295 if test -d /usr/nec; then 14296 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14297 hardcode_shlibpath_var_F77=no 14298 runpath_var=LD_RUN_PATH 14299 hardcode_runpath_var=yes 14300 ld_shlibs_F77=yes 14301 fi 14302 ;; 14303 14304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14305 no_undefined_flag_F77='${wl}-z,text' 14306 archive_cmds_need_lc_F77=no 14307 hardcode_shlibpath_var_F77=no 14308 runpath_var='LD_RUN_PATH' 14309 14310 if test "$GCC" = yes; then 14311 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14312 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14313 else 14314 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14315 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14316 fi 14317 ;; 14318 14319 sysv5* | sco3.2v5* | sco5v6*) 14320 # Note: We can NOT use -z defs as we might desire, because we do not 14321 # link with -lc, and that would cause any symbols used from libc to 14322 # always be unresolved, which means just about no library would 14323 # ever link correctly. If we're not using GNU ld we use -z text 14324 # though, which does catch some bad symbols but isn't as heavy-handed 14325 # as -z defs. 14326 no_undefined_flag_F77='${wl}-z,text' 14327 allow_undefined_flag_F77='${wl}-z,nodefs' 14328 archive_cmds_need_lc_F77=no 14329 hardcode_shlibpath_var_F77=no 14330 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14331 hardcode_libdir_separator_F77=':' 14332 link_all_deplibs_F77=yes 14333 export_dynamic_flag_spec_F77='${wl}-Bexport' 14334 runpath_var='LD_RUN_PATH' 14335 14336 if test "$GCC" = yes; then 14337 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14338 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14339 else 14340 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14341 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14342 fi 14343 ;; 14344 14345 uts4*) 14346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14347 hardcode_libdir_flag_spec_F77='-L$libdir' 14348 hardcode_shlibpath_var_F77=no 14349 ;; 14350 14351 *) 14352 ld_shlibs_F77=no 14353 ;; 14354 esac 14355 fi 14356 14357echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14358echo "${ECHO_T}$ld_shlibs_F77" >&6 14359test "$ld_shlibs_F77" = no && can_build_shared=no 14360 14361# 14362# Do we need to explicitly link libc? 14363# 14364case "x$archive_cmds_need_lc_F77" in 14365x|xyes) 14366 # Assume -lc should be added 14367 archive_cmds_need_lc_F77=yes 14368 14369 if test "$enable_shared" = yes && test "$GCC" = yes; then 14370 case $archive_cmds_F77 in 14371 *'~'*) 14372 # FIXME: we may have to deal with multi-command sequences. 14373 ;; 14374 '$CC '*) 14375 # Test whether the compiler implicitly links with -lc since on some 14376 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14377 # to ld, don't add -lc before -lgcc. 14378 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14379echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14380 $rm conftest* 14381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14382 14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14384 (eval $ac_compile) 2>&5 14385 ac_status=$? 14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14387 (exit $ac_status); } 2>conftest.err; then 14388 soname=conftest 14389 lib=conftest 14390 libobjs=conftest.$ac_objext 14391 deplibs= 14392 wl=$lt_prog_compiler_wl_F77 14393 pic_flag=$lt_prog_compiler_pic_F77 14394 compiler_flags=-v 14395 linker_flags=-v 14396 verstring= 14397 output_objdir=. 14398 libname=conftest 14399 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14400 allow_undefined_flag_F77= 14401 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14402 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14403 ac_status=$? 14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14405 (exit $ac_status); } 14406 then 14407 archive_cmds_need_lc_F77=no 14408 else 14409 archive_cmds_need_lc_F77=yes 14410 fi 14411 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14412 else 14413 cat conftest.err 1>&5 14414 fi 14415 $rm conftest* 14416 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14417echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14418 ;; 14419 esac 14420 fi 14421 ;; 14422esac 14423 14424echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14425echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14426library_names_spec= 14427libname_spec='lib$name' 14428soname_spec= 14429shrext_cmds=".so" 14430postinstall_cmds= 14431postuninstall_cmds= 14432finish_cmds= 14433finish_eval= 14434shlibpath_var= 14435shlibpath_overrides_runpath=unknown 14436version_type=none 14437dynamic_linker="$host_os ld.so" 14438sys_lib_dlsearch_path_spec="/lib /usr/lib" 14439if test "$GCC" = yes; then 14440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14441 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14442 # if the path contains ";" then we assume it to be the separator 14443 # otherwise default to the standard path separator (i.e. ":") - it is 14444 # assumed that no part of a normal pathname contains ";" but that should 14445 # okay in the real world where ";" in dirpaths is itself problematic. 14446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14447 else 14448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14449 fi 14450else 14451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14452fi 14453need_lib_prefix=unknown 14454hardcode_into_libs=no 14455 14456# when you set need_version to no, make sure it does not cause -set_version 14457# flags to be left without arguments 14458need_version=unknown 14459 14460case $host_os in 14461aix3*) 14462 version_type=linux 14463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14464 shlibpath_var=LIBPATH 14465 14466 # AIX 3 has no versioning support, so we append a major version to the name. 14467 soname_spec='${libname}${release}${shared_ext}$major' 14468 ;; 14469 14470aix4* | aix5*) 14471 version_type=linux 14472 need_lib_prefix=no 14473 need_version=no 14474 hardcode_into_libs=yes 14475 if test "$host_cpu" = ia64; then 14476 # AIX 5 supports IA64 14477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14478 shlibpath_var=LD_LIBRARY_PATH 14479 else 14480 # With GCC up to 2.95.x, collect2 would create an import file 14481 # for dependence libraries. The import file would start with 14482 # the line `#! .'. This would cause the generated library to 14483 # depend on `.', always an invalid library. This was fixed in 14484 # development snapshots of GCC prior to 3.0. 14485 case $host_os in 14486 aix4 | aix4.[01] | aix4.[01].*) 14487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14488 echo ' yes ' 14489 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14490 : 14491 else 14492 can_build_shared=no 14493 fi 14494 ;; 14495 esac 14496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14497 # soname into executable. Probably we can add versioning support to 14498 # collect2, so additional links can be useful in future. 14499 if test "$aix_use_runtimelinking" = yes; then 14500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14501 # instead of lib<name>.a to let people know that these are not 14502 # typical AIX shared libraries. 14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14504 else 14505 # We preserve .a as extension for shared libraries through AIX4.2 14506 # and later when we are not doing run time linking. 14507 library_names_spec='${libname}${release}.a $libname.a' 14508 soname_spec='${libname}${release}${shared_ext}$major' 14509 fi 14510 shlibpath_var=LIBPATH 14511 fi 14512 ;; 14513 14514amigaos*) 14515 library_names_spec='$libname.ixlibrary $libname.a' 14516 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14517 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' 14518 ;; 14519 14520beos*) 14521 library_names_spec='${libname}${shared_ext}' 14522 dynamic_linker="$host_os ld.so" 14523 shlibpath_var=LIBRARY_PATH 14524 ;; 14525 14526bsdi[45]*) 14527 version_type=linux 14528 need_version=no 14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14530 soname_spec='${libname}${release}${shared_ext}$major' 14531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14532 shlibpath_var=LD_LIBRARY_PATH 14533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14535 # the default ld.so.conf also contains /usr/contrib/lib and 14536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14537 # libtool to hard-code these into programs 14538 ;; 14539 14540cygwin* | mingw* | pw32*) 14541 version_type=windows 14542 shrext_cmds=".dll" 14543 need_version=no 14544 need_lib_prefix=no 14545 14546 case $GCC,$host_os in 14547 yes,cygwin* | yes,mingw* | yes,pw32*) 14548 library_names_spec='$libname.dll.a' 14549 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14550 postinstall_cmds='base_file=`basename \${file}`~ 14551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14552 dldir=$destdir/`dirname \$dlpath`~ 14553 test -d \$dldir || mkdir -p \$dldir~ 14554 $install_prog $dir/$dlname \$dldir/$dlname~ 14555 chmod a+x \$dldir/$dlname' 14556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14557 dlpath=$dir/\$dldll~ 14558 $rm \$dlpath' 14559 shlibpath_overrides_runpath=yes 14560 14561 case $host_os in 14562 cygwin*) 14563 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14564 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14565 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14566 ;; 14567 mingw*) 14568 # MinGW DLLs use traditional 'lib' prefix 14569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14571 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14572 # It is most probably a Windows format PATH printed by 14573 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14574 # path with ; separators, and with drive letters. We can handle the 14575 # drive letters (cygwin fileutils understands them), so leave them, 14576 # especially as we might pass files found there to a mingw objdump, 14577 # which wouldn't understand a cygwinified path. Ahh. 14578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14579 else 14580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14581 fi 14582 ;; 14583 pw32*) 14584 # pw32 DLLs use 'pw' prefix rather than 'lib' 14585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14586 ;; 14587 esac 14588 ;; 14589 14590 *) 14591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14592 ;; 14593 esac 14594 dynamic_linker='Win32 ld.exe' 14595 # FIXME: first we should search . and the directory the executable is in 14596 shlibpath_var=PATH 14597 ;; 14598 14599darwin* | rhapsody*) 14600 dynamic_linker="$host_os dyld" 14601 version_type=darwin 14602 need_lib_prefix=no 14603 need_version=no 14604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14605 soname_spec='${libname}${release}${major}$shared_ext' 14606 shlibpath_overrides_runpath=yes 14607 shlibpath_var=DYLD_LIBRARY_PATH 14608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14610 if test "$GCC" = yes; then 14611 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"` 14612 else 14613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14614 fi 14615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14616 ;; 14617 14618dgux*) 14619 version_type=linux 14620 need_lib_prefix=no 14621 need_version=no 14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14623 soname_spec='${libname}${release}${shared_ext}$major' 14624 shlibpath_var=LD_LIBRARY_PATH 14625 ;; 14626 14627freebsd1*) 14628 dynamic_linker=no 14629 ;; 14630 14631kfreebsd*-gnu) 14632 version_type=linux 14633 need_lib_prefix=no 14634 need_version=no 14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14636 soname_spec='${libname}${release}${shared_ext}$major' 14637 shlibpath_var=LD_LIBRARY_PATH 14638 shlibpath_overrides_runpath=no 14639 hardcode_into_libs=yes 14640 dynamic_linker='GNU ld.so' 14641 ;; 14642 14643freebsd* | dragonfly*) 14644 # DragonFly does not have aout. When/if they implement a new 14645 # versioning mechanism, adjust this. 14646 if test -x /usr/bin/objformat; then 14647 objformat=`/usr/bin/objformat` 14648 else 14649 case $host_os in 14650 freebsd[123]*) objformat=aout ;; 14651 *) objformat=elf ;; 14652 esac 14653 fi 14654 version_type=freebsd-$objformat 14655 case $version_type in 14656 freebsd-elf*) 14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14658 need_version=no 14659 need_lib_prefix=no 14660 ;; 14661 freebsd-*) 14662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14663 need_version=yes 14664 ;; 14665 esac 14666 shlibpath_var=LD_LIBRARY_PATH 14667 case $host_os in 14668 freebsd2*) 14669 shlibpath_overrides_runpath=yes 14670 ;; 14671 freebsd3.[01]* | freebsdelf3.[01]*) 14672 shlibpath_overrides_runpath=yes 14673 hardcode_into_libs=yes 14674 ;; 14675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14677 shlibpath_overrides_runpath=no 14678 hardcode_into_libs=yes 14679 ;; 14680 freebsd*) # from 4.6 on 14681 shlibpath_overrides_runpath=yes 14682 hardcode_into_libs=yes 14683 ;; 14684 esac 14685 ;; 14686 14687gnu*) 14688 version_type=linux 14689 need_lib_prefix=no 14690 need_version=no 14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14692 soname_spec='${libname}${release}${shared_ext}$major' 14693 shlibpath_var=LD_LIBRARY_PATH 14694 hardcode_into_libs=yes 14695 ;; 14696 14697hpux9* | hpux10* | hpux11*) 14698 # Give a soname corresponding to the major version so that dld.sl refuses to 14699 # link against other versions. 14700 version_type=sunos 14701 need_lib_prefix=no 14702 need_version=no 14703 case $host_cpu in 14704 ia64*) 14705 shrext_cmds='.so' 14706 hardcode_into_libs=yes 14707 dynamic_linker="$host_os dld.so" 14708 shlibpath_var=LD_LIBRARY_PATH 14709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14711 soname_spec='${libname}${release}${shared_ext}$major' 14712 if test "X$HPUX_IA64_MODE" = X32; then 14713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14714 else 14715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14716 fi 14717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14718 ;; 14719 hppa*64*) 14720 shrext_cmds='.sl' 14721 hardcode_into_libs=yes 14722 dynamic_linker="$host_os dld.sl" 14723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14726 soname_spec='${libname}${release}${shared_ext}$major' 14727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14729 ;; 14730 *) 14731 shrext_cmds='.sl' 14732 dynamic_linker="$host_os dld.sl" 14733 shlibpath_var=SHLIB_PATH 14734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14736 soname_spec='${libname}${release}${shared_ext}$major' 14737 ;; 14738 esac 14739 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14740 postinstall_cmds='chmod 555 $lib' 14741 ;; 14742 14743interix3*) 14744 version_type=linux 14745 need_lib_prefix=no 14746 need_version=no 14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14748 soname_spec='${libname}${release}${shared_ext}$major' 14749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14750 shlibpath_var=LD_LIBRARY_PATH 14751 shlibpath_overrides_runpath=no 14752 hardcode_into_libs=yes 14753 ;; 14754 14755irix5* | irix6* | nonstopux*) 14756 case $host_os in 14757 nonstopux*) version_type=nonstopux ;; 14758 *) 14759 if test "$lt_cv_prog_gnu_ld" = yes; then 14760 version_type=linux 14761 else 14762 version_type=irix 14763 fi ;; 14764 esac 14765 need_lib_prefix=no 14766 need_version=no 14767 soname_spec='${libname}${release}${shared_ext}$major' 14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14769 case $host_os in 14770 irix5* | nonstopux*) 14771 libsuff= shlibsuff= 14772 ;; 14773 *) 14774 case $LD in # libtool.m4 will add one of these switches to LD 14775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14776 libsuff= shlibsuff= libmagic=32-bit;; 14777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14778 libsuff=32 shlibsuff=N32 libmagic=N32;; 14779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14780 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14781 *) libsuff= shlibsuff= libmagic=never-match;; 14782 esac 14783 ;; 14784 esac 14785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14786 shlibpath_overrides_runpath=no 14787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14789 hardcode_into_libs=yes 14790 ;; 14791 14792# No shared lib support for Linux oldld, aout, or coff. 14793linux*oldld* | linux*aout* | linux*coff*) 14794 dynamic_linker=no 14795 ;; 14796 14797# This must be Linux ELF. 14798linux*) 14799 version_type=linux 14800 need_lib_prefix=no 14801 need_version=no 14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14803 soname_spec='${libname}${release}${shared_ext}$major' 14804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14805 shlibpath_var=LD_LIBRARY_PATH 14806 shlibpath_overrides_runpath=no 14807 # This implies no fast_install, which is unacceptable. 14808 # Some rework will be needed to allow for fast_install 14809 # before this can be enabled. 14810 hardcode_into_libs=yes 14811 14812 # find out which ABI we are using 14813 libsuff= 14814 case "$host_cpu" in 14815 x86_64*|s390x*|powerpc64*) 14816 echo '#line 14816 "configure"' > conftest.$ac_ext 14817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14818 (eval $ac_compile) 2>&5 14819 ac_status=$? 14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14821 (exit $ac_status); }; then 14822 case `/usr/bin/file conftest.$ac_objext` in 14823 *64-bit*) 14824 libsuff=64 14825 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14826 ;; 14827 esac 14828 fi 14829 rm -rf conftest* 14830 ;; 14831 esac 14832 14833 # Append ld.so.conf contents to the search path 14834 if test -f /etc/ld.so.conf; then 14835 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14836 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14837 fi 14838 14839 # We used to test for /lib/ld.so.1 and disable shared libraries on 14840 # powerpc, because MkLinux only supported shared libraries with the 14841 # GNU dynamic linker. Since this was broken with cross compilers, 14842 # most powerpc-linux boxes support dynamic linking these days and 14843 # people can always --disable-shared, the test was removed, and we 14844 # assume the GNU/Linux dynamic linker is in use. 14845 dynamic_linker='GNU/Linux ld.so' 14846 ;; 14847 14848knetbsd*-gnu) 14849 version_type=linux 14850 need_lib_prefix=no 14851 need_version=no 14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14853 soname_spec='${libname}${release}${shared_ext}$major' 14854 shlibpath_var=LD_LIBRARY_PATH 14855 shlibpath_overrides_runpath=no 14856 hardcode_into_libs=yes 14857 dynamic_linker='GNU ld.so' 14858 ;; 14859 14860netbsd*) 14861 version_type=sunos 14862 need_lib_prefix=no 14863 need_version=no 14864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14867 dynamic_linker='NetBSD (a.out) ld.so' 14868 else 14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14870 soname_spec='${libname}${release}${shared_ext}$major' 14871 dynamic_linker='NetBSD ld.elf_so' 14872 fi 14873 shlibpath_var=LD_LIBRARY_PATH 14874 shlibpath_overrides_runpath=yes 14875 hardcode_into_libs=yes 14876 ;; 14877 14878newsos6) 14879 version_type=linux 14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14881 shlibpath_var=LD_LIBRARY_PATH 14882 shlibpath_overrides_runpath=yes 14883 ;; 14884 14885nto-qnx*) 14886 version_type=linux 14887 need_lib_prefix=no 14888 need_version=no 14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14890 soname_spec='${libname}${release}${shared_ext}$major' 14891 shlibpath_var=LD_LIBRARY_PATH 14892 shlibpath_overrides_runpath=yes 14893 ;; 14894 14895openbsd*) 14896 version_type=sunos 14897 sys_lib_dlsearch_path_spec="/usr/lib" 14898 need_lib_prefix=no 14899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14900 case $host_os in 14901 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14902 *) need_version=no ;; 14903 esac 14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14906 shlibpath_var=LD_LIBRARY_PATH 14907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14908 case $host_os in 14909 openbsd2.[89] | openbsd2.[89].*) 14910 shlibpath_overrides_runpath=no 14911 ;; 14912 *) 14913 shlibpath_overrides_runpath=yes 14914 ;; 14915 esac 14916 else 14917 shlibpath_overrides_runpath=yes 14918 fi 14919 ;; 14920 14921os2*) 14922 libname_spec='$name' 14923 shrext_cmds=".dll" 14924 need_lib_prefix=no 14925 library_names_spec='$libname${shared_ext} $libname.a' 14926 dynamic_linker='OS/2 ld.exe' 14927 shlibpath_var=LIBPATH 14928 ;; 14929 14930osf3* | osf4* | osf5*) 14931 version_type=osf 14932 need_lib_prefix=no 14933 need_version=no 14934 soname_spec='${libname}${release}${shared_ext}$major' 14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14936 shlibpath_var=LD_LIBRARY_PATH 14937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14939 ;; 14940 14941solaris*) 14942 version_type=linux 14943 need_lib_prefix=no 14944 need_version=no 14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14946 soname_spec='${libname}${release}${shared_ext}$major' 14947 shlibpath_var=LD_LIBRARY_PATH 14948 shlibpath_overrides_runpath=yes 14949 hardcode_into_libs=yes 14950 # ldd complains unless libraries are executable 14951 postinstall_cmds='chmod +x $lib' 14952 ;; 14953 14954sunos4*) 14955 version_type=sunos 14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14957 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14958 shlibpath_var=LD_LIBRARY_PATH 14959 shlibpath_overrides_runpath=yes 14960 if test "$with_gnu_ld" = yes; then 14961 need_lib_prefix=no 14962 fi 14963 need_version=yes 14964 ;; 14965 14966sysv4 | sysv4.3*) 14967 version_type=linux 14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14969 soname_spec='${libname}${release}${shared_ext}$major' 14970 shlibpath_var=LD_LIBRARY_PATH 14971 case $host_vendor in 14972 sni) 14973 shlibpath_overrides_runpath=no 14974 need_lib_prefix=no 14975 export_dynamic_flag_spec='${wl}-Blargedynsym' 14976 runpath_var=LD_RUN_PATH 14977 ;; 14978 siemens) 14979 need_lib_prefix=no 14980 ;; 14981 motorola) 14982 need_lib_prefix=no 14983 need_version=no 14984 shlibpath_overrides_runpath=no 14985 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14986 ;; 14987 esac 14988 ;; 14989 14990sysv4*MP*) 14991 if test -d /usr/nec ;then 14992 version_type=linux 14993 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14994 soname_spec='$libname${shared_ext}.$major' 14995 shlibpath_var=LD_LIBRARY_PATH 14996 fi 14997 ;; 14998 14999sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15000 version_type=freebsd-elf 15001 need_lib_prefix=no 15002 need_version=no 15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15004 soname_spec='${libname}${release}${shared_ext}$major' 15005 shlibpath_var=LD_LIBRARY_PATH 15006 hardcode_into_libs=yes 15007 if test "$with_gnu_ld" = yes; then 15008 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15009 shlibpath_overrides_runpath=no 15010 else 15011 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15012 shlibpath_overrides_runpath=yes 15013 case $host_os in 15014 sco3.2v5*) 15015 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15016 ;; 15017 esac 15018 fi 15019 sys_lib_dlsearch_path_spec='/usr/lib' 15020 ;; 15021 15022uts4*) 15023 version_type=linux 15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15025 soname_spec='${libname}${release}${shared_ext}$major' 15026 shlibpath_var=LD_LIBRARY_PATH 15027 ;; 15028 15029*) 15030 dynamic_linker=no 15031 ;; 15032esac 15033echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15034echo "${ECHO_T}$dynamic_linker" >&6 15035test "$dynamic_linker" = no && can_build_shared=no 15036 15037variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15038if test "$GCC" = yes; then 15039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15040fi 15041 15042echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15043echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15044hardcode_action_F77= 15045if test -n "$hardcode_libdir_flag_spec_F77" || \ 15046 test -n "$runpath_var_F77" || \ 15047 test "X$hardcode_automatic_F77" = "Xyes" ; then 15048 15049 # We can hardcode non-existant directories. 15050 if test "$hardcode_direct_F77" != no && 15051 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15052 # have to relink, otherwise we might link with an installed library 15053 # when we should be linking with a yet-to-be-installed one 15054 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15055 test "$hardcode_minus_L_F77" != no; then 15056 # Linking always hardcodes the temporary library directory. 15057 hardcode_action_F77=relink 15058 else 15059 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15060 hardcode_action_F77=immediate 15061 fi 15062else 15063 # We cannot hardcode anything, or else we can only hardcode existing 15064 # directories. 15065 hardcode_action_F77=unsupported 15066fi 15067echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15068echo "${ECHO_T}$hardcode_action_F77" >&6 15069 15070if test "$hardcode_action_F77" = relink; then 15071 # Fast installation is not supported 15072 enable_fast_install=no 15073elif test "$shlibpath_overrides_runpath" = yes || 15074 test "$enable_shared" = no; then 15075 # Fast installation is not necessary 15076 enable_fast_install=needless 15077fi 15078 15079 15080# The else clause should only fire when bootstrapping the 15081# libtool distribution, otherwise you forgot to ship ltmain.sh 15082# with your package, and you will get complaints that there are 15083# no rules to generate ltmain.sh. 15084if test -f "$ltmain"; then 15085 # See if we are running on zsh, and set the options which allow our commands through 15086 # without removal of \ escapes. 15087 if test -n "${ZSH_VERSION+set}" ; then 15088 setopt NO_GLOB_SUBST 15089 fi 15090 # Now quote all the things that may contain metacharacters while being 15091 # careful not to overquote the AC_SUBSTed values. We take copies of the 15092 # variables and quote the copies for generation of the libtool script. 15093 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15094 SED SHELL STRIP \ 15095 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15096 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15097 deplibs_check_method reload_flag reload_cmds need_locks \ 15098 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15099 lt_cv_sys_global_symbol_to_c_name_address \ 15100 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15101 old_postinstall_cmds old_postuninstall_cmds \ 15102 compiler_F77 \ 15103 CC_F77 \ 15104 LD_F77 \ 15105 lt_prog_compiler_wl_F77 \ 15106 lt_prog_compiler_pic_F77 \ 15107 lt_prog_compiler_static_F77 \ 15108 lt_prog_compiler_no_builtin_flag_F77 \ 15109 export_dynamic_flag_spec_F77 \ 15110 thread_safe_flag_spec_F77 \ 15111 whole_archive_flag_spec_F77 \ 15112 enable_shared_with_static_runtimes_F77 \ 15113 old_archive_cmds_F77 \ 15114 old_archive_from_new_cmds_F77 \ 15115 predep_objects_F77 \ 15116 postdep_objects_F77 \ 15117 predeps_F77 \ 15118 postdeps_F77 \ 15119 compiler_lib_search_path_F77 \ 15120 archive_cmds_F77 \ 15121 archive_expsym_cmds_F77 \ 15122 postinstall_cmds_F77 \ 15123 postuninstall_cmds_F77 \ 15124 old_archive_from_expsyms_cmds_F77 \ 15125 allow_undefined_flag_F77 \ 15126 no_undefined_flag_F77 \ 15127 export_symbols_cmds_F77 \ 15128 hardcode_libdir_flag_spec_F77 \ 15129 hardcode_libdir_flag_spec_ld_F77 \ 15130 hardcode_libdir_separator_F77 \ 15131 hardcode_automatic_F77 \ 15132 module_cmds_F77 \ 15133 module_expsym_cmds_F77 \ 15134 lt_cv_prog_compiler_c_o_F77 \ 15135 exclude_expsyms_F77 \ 15136 include_expsyms_F77; do 15137 15138 case $var in 15139 old_archive_cmds_F77 | \ 15140 old_archive_from_new_cmds_F77 | \ 15141 archive_cmds_F77 | \ 15142 archive_expsym_cmds_F77 | \ 15143 module_cmds_F77 | \ 15144 module_expsym_cmds_F77 | \ 15145 old_archive_from_expsyms_cmds_F77 | \ 15146 export_symbols_cmds_F77 | \ 15147 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15148 postinstall_cmds | postuninstall_cmds | \ 15149 old_postinstall_cmds | old_postuninstall_cmds | \ 15150 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15151 # Double-quote double-evaled strings. 15152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15153 ;; 15154 *) 15155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15156 ;; 15157 esac 15158 done 15159 15160 case $lt_echo in 15161 *'\$0 --fallback-echo"') 15162 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15163 ;; 15164 esac 15165 15166cfgfile="$ofile" 15167 15168 cat <<__EOF__ >> "$cfgfile" 15169# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15170 15171# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15172 15173# Shell to use when invoking shell scripts. 15174SHELL=$lt_SHELL 15175 15176# Whether or not to build shared libraries. 15177build_libtool_libs=$enable_shared 15178 15179# Whether or not to build static libraries. 15180build_old_libs=$enable_static 15181 15182# Whether or not to add -lc for building shared libraries. 15183build_libtool_need_lc=$archive_cmds_need_lc_F77 15184 15185# Whether or not to disallow shared libs when runtime libs are static 15186allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15187 15188# Whether or not to optimize for fast installation. 15189fast_install=$enable_fast_install 15190 15191# The host system. 15192host_alias=$host_alias 15193host=$host 15194host_os=$host_os 15195 15196# The build system. 15197build_alias=$build_alias 15198build=$build 15199build_os=$build_os 15200 15201# An echo program that does not interpret backslashes. 15202echo=$lt_echo 15203 15204# The archiver. 15205AR=$lt_AR 15206AR_FLAGS=$lt_AR_FLAGS 15207 15208# A C compiler. 15209LTCC=$lt_LTCC 15210 15211# LTCC compiler flags. 15212LTCFLAGS=$lt_LTCFLAGS 15213 15214# A language-specific compiler. 15215CC=$lt_compiler_F77 15216 15217# Is the compiler the GNU C compiler? 15218with_gcc=$GCC_F77 15219 15220# An ERE matcher. 15221EGREP=$lt_EGREP 15222 15223# The linker used to build libraries. 15224LD=$lt_LD_F77 15225 15226# Whether we need hard or soft links. 15227LN_S=$lt_LN_S 15228 15229# A BSD-compatible nm program. 15230NM=$lt_NM 15231 15232# A symbol stripping program 15233STRIP=$lt_STRIP 15234 15235# Used to examine libraries when file_magic_cmd begins "file" 15236MAGIC_CMD=$MAGIC_CMD 15237 15238# Used on cygwin: DLL creation program. 15239DLLTOOL="$DLLTOOL" 15240 15241# Used on cygwin: object dumper. 15242OBJDUMP="$OBJDUMP" 15243 15244# Used on cygwin: assembler. 15245AS="$AS" 15246 15247# The name of the directory that contains temporary libtool files. 15248objdir=$objdir 15249 15250# How to create reloadable object files. 15251reload_flag=$lt_reload_flag 15252reload_cmds=$lt_reload_cmds 15253 15254# How to pass a linker flag through the compiler. 15255wl=$lt_lt_prog_compiler_wl_F77 15256 15257# Object file suffix (normally "o"). 15258objext="$ac_objext" 15259 15260# Old archive suffix (normally "a"). 15261libext="$libext" 15262 15263# Shared library suffix (normally ".so"). 15264shrext_cmds='$shrext_cmds' 15265 15266# Executable file suffix (normally ""). 15267exeext="$exeext" 15268 15269# Additional compiler flags for building library objects. 15270pic_flag=$lt_lt_prog_compiler_pic_F77 15271pic_mode=$pic_mode 15272 15273# What is the maximum length of a command? 15274max_cmd_len=$lt_cv_sys_max_cmd_len 15275 15276# Does compiler simultaneously support -c and -o options? 15277compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15278 15279# Must we lock files when doing compilation? 15280need_locks=$lt_need_locks 15281 15282# Do we need the lib prefix for modules? 15283need_lib_prefix=$need_lib_prefix 15284 15285# Do we need a version for libraries? 15286need_version=$need_version 15287 15288# Whether dlopen is supported. 15289dlopen_support=$enable_dlopen 15290 15291# Whether dlopen of programs is supported. 15292dlopen_self=$enable_dlopen_self 15293 15294# Whether dlopen of statically linked programs is supported. 15295dlopen_self_static=$enable_dlopen_self_static 15296 15297# Compiler flag to prevent dynamic linking. 15298link_static_flag=$lt_lt_prog_compiler_static_F77 15299 15300# Compiler flag to turn off builtin functions. 15301no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15302 15303# Compiler flag to allow reflexive dlopens. 15304export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15305 15306# Compiler flag to generate shared objects directly from archives. 15307whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15308 15309# Compiler flag to generate thread-safe objects. 15310thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15311 15312# Library versioning type. 15313version_type=$version_type 15314 15315# Format of library name prefix. 15316libname_spec=$lt_libname_spec 15317 15318# List of archive names. First name is the real one, the rest are links. 15319# The last name is the one that the linker finds with -lNAME. 15320library_names_spec=$lt_library_names_spec 15321 15322# The coded name of the library, if different from the real name. 15323soname_spec=$lt_soname_spec 15324 15325# Commands used to build and install an old-style archive. 15326RANLIB=$lt_RANLIB 15327old_archive_cmds=$lt_old_archive_cmds_F77 15328old_postinstall_cmds=$lt_old_postinstall_cmds 15329old_postuninstall_cmds=$lt_old_postuninstall_cmds 15330 15331# Create an old-style archive from a shared archive. 15332old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15333 15334# Create a temporary old-style archive to link instead of a shared archive. 15335old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15336 15337# Commands used to build and install a shared archive. 15338archive_cmds=$lt_archive_cmds_F77 15339archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15340postinstall_cmds=$lt_postinstall_cmds 15341postuninstall_cmds=$lt_postuninstall_cmds 15342 15343# Commands used to build a loadable module (assumed same as above if empty) 15344module_cmds=$lt_module_cmds_F77 15345module_expsym_cmds=$lt_module_expsym_cmds_F77 15346 15347# Commands to strip libraries. 15348old_striplib=$lt_old_striplib 15349striplib=$lt_striplib 15350 15351# Dependencies to place before the objects being linked to create a 15352# shared library. 15353predep_objects=$lt_predep_objects_F77 15354 15355# Dependencies to place after the objects being linked to create a 15356# shared library. 15357postdep_objects=$lt_postdep_objects_F77 15358 15359# Dependencies to place before the objects being linked to create a 15360# shared library. 15361predeps=$lt_predeps_F77 15362 15363# Dependencies to place after the objects being linked to create a 15364# shared library. 15365postdeps=$lt_postdeps_F77 15366 15367# The library search path used internally by the compiler when linking 15368# a shared library. 15369compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15370 15371# Method to check whether dependent libraries are shared objects. 15372deplibs_check_method=$lt_deplibs_check_method 15373 15374# Command to use when deplibs_check_method == file_magic. 15375file_magic_cmd=$lt_file_magic_cmd 15376 15377# Flag that allows shared libraries with undefined symbols to be built. 15378allow_undefined_flag=$lt_allow_undefined_flag_F77 15379 15380# Flag that forces no undefined symbols. 15381no_undefined_flag=$lt_no_undefined_flag_F77 15382 15383# Commands used to finish a libtool library installation in a directory. 15384finish_cmds=$lt_finish_cmds 15385 15386# Same as above, but a single script fragment to be evaled but not shown. 15387finish_eval=$lt_finish_eval 15388 15389# Take the output of nm and produce a listing of raw symbols and C names. 15390global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15391 15392# Transform the output of nm in a proper C declaration 15393global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15394 15395# Transform the output of nm in a C name address pair 15396global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15397 15398# This is the shared library runtime path variable. 15399runpath_var=$runpath_var 15400 15401# This is the shared library path variable. 15402shlibpath_var=$shlibpath_var 15403 15404# Is shlibpath searched before the hard-coded library search path? 15405shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15406 15407# How to hardcode a shared library path into an executable. 15408hardcode_action=$hardcode_action_F77 15409 15410# Whether we should hardcode library paths into libraries. 15411hardcode_into_libs=$hardcode_into_libs 15412 15413# Flag to hardcode \$libdir into a binary during linking. 15414# This must work even if \$libdir does not exist. 15415hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15416 15417# If ld is used when linking, flag to hardcode \$libdir into 15418# a binary during linking. This must work even if \$libdir does 15419# not exist. 15420hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15421 15422# Whether we need a single -rpath flag with a separated argument. 15423hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15424 15425# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15426# resulting binary. 15427hardcode_direct=$hardcode_direct_F77 15428 15429# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15430# resulting binary. 15431hardcode_minus_L=$hardcode_minus_L_F77 15432 15433# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15434# the resulting binary. 15435hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15436 15437# Set to yes if building a shared library automatically hardcodes DIR into the library 15438# and all subsequent libraries and executables linked against it. 15439hardcode_automatic=$hardcode_automatic_F77 15440 15441# Variables whose values should be saved in libtool wrapper scripts and 15442# restored at relink time. 15443variables_saved_for_relink="$variables_saved_for_relink" 15444 15445# Whether libtool must link a program against all its dependency libraries. 15446link_all_deplibs=$link_all_deplibs_F77 15447 15448# Compile-time system search path for libraries 15449sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15450 15451# Run-time system search path for libraries 15452sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15453 15454# Fix the shell variable \$srcfile for the compiler. 15455fix_srcfile_path="$fix_srcfile_path_F77" 15456 15457# Set to yes if exported symbols are required. 15458always_export_symbols=$always_export_symbols_F77 15459 15460# The commands to list exported symbols. 15461export_symbols_cmds=$lt_export_symbols_cmds_F77 15462 15463# The commands to extract the exported symbol list from a shared archive. 15464extract_expsyms_cmds=$lt_extract_expsyms_cmds 15465 15466# Symbols that should not be listed in the preloaded symbols. 15467exclude_expsyms=$lt_exclude_expsyms_F77 15468 15469# Symbols that must always be exported. 15470include_expsyms=$lt_include_expsyms_F77 15471 15472# ### END LIBTOOL TAG CONFIG: $tagname 15473 15474__EOF__ 15475 15476 15477else 15478 # If there is no Makefile yet, we rely on a make rule to execute 15479 # `config.status --recheck' to rerun these tests and create the 15480 # libtool script then. 15481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15482 if test -f "$ltmain_in"; then 15483 test -f Makefile && make "$ltmain" 15484 fi 15485fi 15486 15487 15488ac_ext=c 15489ac_cpp='$CPP $CPPFLAGS' 15490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15492ac_compiler_gnu=$ac_cv_c_compiler_gnu 15493 15494CC="$lt_save_CC" 15495 15496 else 15497 tagname="" 15498 fi 15499 ;; 15500 15501 GCJ) 15502 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15503 15504 15505 15506# Source file extension for Java test sources. 15507ac_ext=java 15508 15509# Object file extension for compiled Java test sources. 15510objext=o 15511objext_GCJ=$objext 15512 15513# Code to be used in simple compile tests 15514lt_simple_compile_test_code="class foo {}\n" 15515 15516# Code to be used in simple link tests 15517lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15518 15519# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15520 15521# If no C compiler was specified, use CC. 15522LTCC=${LTCC-"$CC"} 15523 15524# If no C compiler flags were specified, use CFLAGS. 15525LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15526 15527# Allow CC to be a program name with arguments. 15528compiler=$CC 15529 15530 15531# save warnings/boilerplate of simple test code 15532ac_outfile=conftest.$ac_objext 15533printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15535_lt_compiler_boilerplate=`cat conftest.err` 15536$rm conftest* 15537 15538ac_outfile=conftest.$ac_objext 15539printf "$lt_simple_link_test_code" >conftest.$ac_ext 15540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15541_lt_linker_boilerplate=`cat conftest.err` 15542$rm conftest* 15543 15544 15545# Allow CC to be a program name with arguments. 15546lt_save_CC="$CC" 15547CC=${GCJ-"gcj"} 15548compiler=$CC 15549compiler_GCJ=$CC 15550for cc_temp in $compiler""; do 15551 case $cc_temp in 15552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15554 \-*) ;; 15555 *) break;; 15556 esac 15557done 15558cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15559 15560 15561# GCJ did not exist at the time GCC didn't implicitly link libc in. 15562archive_cmds_need_lc_GCJ=no 15563 15564old_archive_cmds_GCJ=$old_archive_cmds 15565 15566 15567lt_prog_compiler_no_builtin_flag_GCJ= 15568 15569if test "$GCC" = yes; then 15570 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15571 15572 15573echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15574echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15575if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15576 echo $ECHO_N "(cached) $ECHO_C" >&6 15577else 15578 lt_cv_prog_compiler_rtti_exceptions=no 15579 ac_outfile=conftest.$ac_objext 15580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15581 lt_compiler_flag="-fno-rtti -fno-exceptions" 15582 # Insert the option either (1) after the last *FLAGS variable, or 15583 # (2) before a word containing "conftest.", or (3) at the end. 15584 # Note that $ac_compile itself does not contain backslashes and begins 15585 # with a dollar sign (not a hyphen), so the echo should work correctly. 15586 # The option is referenced via a variable to avoid confusing sed. 15587 lt_compile=`echo "$ac_compile" | $SED \ 15588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15590 -e 's:$: $lt_compiler_flag:'` 15591 (eval echo "\"\$as_me:15591: $lt_compile\"" >&5) 15592 (eval "$lt_compile" 2>conftest.err) 15593 ac_status=$? 15594 cat conftest.err >&5 15595 echo "$as_me:15595: \$? = $ac_status" >&5 15596 if (exit $ac_status) && test -s "$ac_outfile"; then 15597 # The compiler can only warn and ignore the option if not recognized 15598 # So say no if there are warnings other than the usual output. 15599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15602 lt_cv_prog_compiler_rtti_exceptions=yes 15603 fi 15604 fi 15605 $rm conftest* 15606 15607fi 15608echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15609echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15610 15611if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15612 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15613else 15614 : 15615fi 15616 15617fi 15618 15619lt_prog_compiler_wl_GCJ= 15620lt_prog_compiler_pic_GCJ= 15621lt_prog_compiler_static_GCJ= 15622 15623echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15624echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15625 15626 if test "$GCC" = yes; then 15627 lt_prog_compiler_wl_GCJ='-Wl,' 15628 lt_prog_compiler_static_GCJ='-static' 15629 15630 case $host_os in 15631 aix*) 15632 # All AIX code is PIC. 15633 if test "$host_cpu" = ia64; then 15634 # AIX 5 now supports IA64 processor 15635 lt_prog_compiler_static_GCJ='-Bstatic' 15636 fi 15637 ;; 15638 15639 amigaos*) 15640 # FIXME: we need at least 68020 code to build shared libraries, but 15641 # adding the `-m68020' flag to GCC prevents building anything better, 15642 # like `-m68040'. 15643 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15644 ;; 15645 15646 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15647 # PIC is the default for these OSes. 15648 ;; 15649 15650 mingw* | pw32* | os2*) 15651 # This hack is so that the source file can tell whether it is being 15652 # built for inclusion in a dll (and should export symbols for example). 15653 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15654 ;; 15655 15656 darwin* | rhapsody*) 15657 # PIC is the default on this platform 15658 # Common symbols not allowed in MH_DYLIB files 15659 lt_prog_compiler_pic_GCJ='-fno-common' 15660 ;; 15661 15662 interix3*) 15663 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15664 # Instead, we relocate shared libraries at runtime. 15665 ;; 15666 15667 msdosdjgpp*) 15668 # Just because we use GCC doesn't mean we suddenly get shared libraries 15669 # on systems that don't support them. 15670 lt_prog_compiler_can_build_shared_GCJ=no 15671 enable_shared=no 15672 ;; 15673 15674 sysv4*MP*) 15675 if test -d /usr/nec; then 15676 lt_prog_compiler_pic_GCJ=-Kconform_pic 15677 fi 15678 ;; 15679 15680 hpux*) 15681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15682 # not for PA HP-UX. 15683 case $host_cpu in 15684 hppa*64*|ia64*) 15685 # +Z the default 15686 ;; 15687 *) 15688 lt_prog_compiler_pic_GCJ='-fPIC' 15689 ;; 15690 esac 15691 ;; 15692 15693 *) 15694 lt_prog_compiler_pic_GCJ='-fPIC' 15695 ;; 15696 esac 15697 else 15698 # PORTME Check for flag to pass linker flags through the system compiler. 15699 case $host_os in 15700 aix*) 15701 lt_prog_compiler_wl_GCJ='-Wl,' 15702 if test "$host_cpu" = ia64; then 15703 # AIX 5 now supports IA64 processor 15704 lt_prog_compiler_static_GCJ='-Bstatic' 15705 else 15706 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15707 fi 15708 ;; 15709 darwin*) 15710 # PIC is the default on this platform 15711 # Common symbols not allowed in MH_DYLIB files 15712 case $cc_basename in 15713 xlc*) 15714 lt_prog_compiler_pic_GCJ='-qnocommon' 15715 lt_prog_compiler_wl_GCJ='-Wl,' 15716 ;; 15717 esac 15718 ;; 15719 15720 mingw* | pw32* | os2*) 15721 # This hack is so that the source file can tell whether it is being 15722 # built for inclusion in a dll (and should export symbols for example). 15723 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15724 ;; 15725 15726 hpux9* | hpux10* | hpux11*) 15727 lt_prog_compiler_wl_GCJ='-Wl,' 15728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15729 # not for PA HP-UX. 15730 case $host_cpu in 15731 hppa*64*|ia64*) 15732 # +Z the default 15733 ;; 15734 *) 15735 lt_prog_compiler_pic_GCJ='+Z' 15736 ;; 15737 esac 15738 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15739 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15740 ;; 15741 15742 irix5* | irix6* | nonstopux*) 15743 lt_prog_compiler_wl_GCJ='-Wl,' 15744 # PIC (with -KPIC) is the default. 15745 lt_prog_compiler_static_GCJ='-non_shared' 15746 ;; 15747 15748 newsos6) 15749 lt_prog_compiler_pic_GCJ='-KPIC' 15750 lt_prog_compiler_static_GCJ='-Bstatic' 15751 ;; 15752 15753 linux*) 15754 case $cc_basename in 15755 icc* | ecc*) 15756 lt_prog_compiler_wl_GCJ='-Wl,' 15757 lt_prog_compiler_pic_GCJ='-KPIC' 15758 lt_prog_compiler_static_GCJ='-static' 15759 ;; 15760 pgcc* | pgf77* | pgf90* | pgf95*) 15761 # Portland Group compilers (*not* the Pentium gcc compiler, 15762 # which looks to be a dead project) 15763 lt_prog_compiler_wl_GCJ='-Wl,' 15764 lt_prog_compiler_pic_GCJ='-fpic' 15765 lt_prog_compiler_static_GCJ='-Bstatic' 15766 ;; 15767 ccc*) 15768 lt_prog_compiler_wl_GCJ='-Wl,' 15769 # All Alpha code is PIC. 15770 lt_prog_compiler_static_GCJ='-non_shared' 15771 ;; 15772 esac 15773 ;; 15774 15775 osf3* | osf4* | osf5*) 15776 lt_prog_compiler_wl_GCJ='-Wl,' 15777 # All OSF/1 code is PIC. 15778 lt_prog_compiler_static_GCJ='-non_shared' 15779 ;; 15780 15781 solaris*) 15782 lt_prog_compiler_pic_GCJ='-KPIC' 15783 lt_prog_compiler_static_GCJ='-Bstatic' 15784 case $cc_basename in 15785 f77* | f90* | f95*) 15786 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15787 *) 15788 lt_prog_compiler_wl_GCJ='-Wl,';; 15789 esac 15790 ;; 15791 15792 sunos4*) 15793 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15794 lt_prog_compiler_pic_GCJ='-PIC' 15795 lt_prog_compiler_static_GCJ='-Bstatic' 15796 ;; 15797 15798 sysv4 | sysv4.2uw2* | sysv4.3*) 15799 lt_prog_compiler_wl_GCJ='-Wl,' 15800 lt_prog_compiler_pic_GCJ='-KPIC' 15801 lt_prog_compiler_static_GCJ='-Bstatic' 15802 ;; 15803 15804 sysv4*MP*) 15805 if test -d /usr/nec ;then 15806 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15807 lt_prog_compiler_static_GCJ='-Bstatic' 15808 fi 15809 ;; 15810 15811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15812 lt_prog_compiler_wl_GCJ='-Wl,' 15813 lt_prog_compiler_pic_GCJ='-KPIC' 15814 lt_prog_compiler_static_GCJ='-Bstatic' 15815 ;; 15816 15817 unicos*) 15818 lt_prog_compiler_wl_GCJ='-Wl,' 15819 lt_prog_compiler_can_build_shared_GCJ=no 15820 ;; 15821 15822 uts4*) 15823 lt_prog_compiler_pic_GCJ='-pic' 15824 lt_prog_compiler_static_GCJ='-Bstatic' 15825 ;; 15826 15827 *) 15828 lt_prog_compiler_can_build_shared_GCJ=no 15829 ;; 15830 esac 15831 fi 15832 15833echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15834echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15835 15836# 15837# Check to make sure the PIC flag actually works. 15838# 15839if test -n "$lt_prog_compiler_pic_GCJ"; then 15840 15841echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15842echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15843if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15844 echo $ECHO_N "(cached) $ECHO_C" >&6 15845else 15846 lt_prog_compiler_pic_works_GCJ=no 15847 ac_outfile=conftest.$ac_objext 15848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15849 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15850 # Insert the option either (1) after the last *FLAGS variable, or 15851 # (2) before a word containing "conftest.", or (3) at the end. 15852 # Note that $ac_compile itself does not contain backslashes and begins 15853 # with a dollar sign (not a hyphen), so the echo should work correctly. 15854 # The option is referenced via a variable to avoid confusing sed. 15855 lt_compile=`echo "$ac_compile" | $SED \ 15856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15858 -e 's:$: $lt_compiler_flag:'` 15859 (eval echo "\"\$as_me:15859: $lt_compile\"" >&5) 15860 (eval "$lt_compile" 2>conftest.err) 15861 ac_status=$? 15862 cat conftest.err >&5 15863 echo "$as_me:15863: \$? = $ac_status" >&5 15864 if (exit $ac_status) && test -s "$ac_outfile"; then 15865 # The compiler can only warn and ignore the option if not recognized 15866 # So say no if there are warnings other than the usual output. 15867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15870 lt_prog_compiler_pic_works_GCJ=yes 15871 fi 15872 fi 15873 $rm conftest* 15874 15875fi 15876echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15877echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15878 15879if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15880 case $lt_prog_compiler_pic_GCJ in 15881 "" | " "*) ;; 15882 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15883 esac 15884else 15885 lt_prog_compiler_pic_GCJ= 15886 lt_prog_compiler_can_build_shared_GCJ=no 15887fi 15888 15889fi 15890case $host_os in 15891 # For platforms which do not support PIC, -DPIC is meaningless: 15892 *djgpp*) 15893 lt_prog_compiler_pic_GCJ= 15894 ;; 15895 *) 15896 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15897 ;; 15898esac 15899 15900# 15901# Check to make sure the static flag actually works. 15902# 15903wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15904echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15905echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15906if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15907 echo $ECHO_N "(cached) $ECHO_C" >&6 15908else 15909 lt_prog_compiler_static_works_GCJ=no 15910 save_LDFLAGS="$LDFLAGS" 15911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15912 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15914 # The linker can only warn and ignore the option if not recognized 15915 # So say no if there are warnings 15916 if test -s conftest.err; then 15917 # Append any errors to the config.log. 15918 cat conftest.err 1>&5 15919 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15921 if diff conftest.exp conftest.er2 >/dev/null; then 15922 lt_prog_compiler_static_works_GCJ=yes 15923 fi 15924 else 15925 lt_prog_compiler_static_works_GCJ=yes 15926 fi 15927 fi 15928 $rm conftest* 15929 LDFLAGS="$save_LDFLAGS" 15930 15931fi 15932echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15933echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15934 15935if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15936 : 15937else 15938 lt_prog_compiler_static_GCJ= 15939fi 15940 15941 15942echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15943echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15944if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15945 echo $ECHO_N "(cached) $ECHO_C" >&6 15946else 15947 lt_cv_prog_compiler_c_o_GCJ=no 15948 $rm -r conftest 2>/dev/null 15949 mkdir conftest 15950 cd conftest 15951 mkdir out 15952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15953 15954 lt_compiler_flag="-o out/conftest2.$ac_objext" 15955 # Insert the option either (1) after the last *FLAGS variable, or 15956 # (2) before a word containing "conftest.", or (3) at the end. 15957 # Note that $ac_compile itself does not contain backslashes and begins 15958 # with a dollar sign (not a hyphen), so the echo should work correctly. 15959 lt_compile=`echo "$ac_compile" | $SED \ 15960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15962 -e 's:$: $lt_compiler_flag:'` 15963 (eval echo "\"\$as_me:15963: $lt_compile\"" >&5) 15964 (eval "$lt_compile" 2>out/conftest.err) 15965 ac_status=$? 15966 cat out/conftest.err >&5 15967 echo "$as_me:15967: \$? = $ac_status" >&5 15968 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15969 then 15970 # The compiler can only warn and ignore the option if not recognized 15971 # So say no if there are warnings 15972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15975 lt_cv_prog_compiler_c_o_GCJ=yes 15976 fi 15977 fi 15978 chmod u+w . 2>&5 15979 $rm conftest* 15980 # SGI C++ compiler will create directory out/ii_files/ for 15981 # template instantiation 15982 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15983 $rm out/* && rmdir out 15984 cd .. 15985 rmdir conftest 15986 $rm conftest* 15987 15988fi 15989echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15990echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15991 15992 15993hard_links="nottested" 15994if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15995 # do not overwrite the value of need_locks provided by the user 15996 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15997echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15998 hard_links=yes 15999 $rm conftest* 16000 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16001 touch conftest.a 16002 ln conftest.a conftest.b 2>&5 || hard_links=no 16003 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16004 echo "$as_me:$LINENO: result: $hard_links" >&5 16005echo "${ECHO_T}$hard_links" >&6 16006 if test "$hard_links" = no; then 16007 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16008echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16009 need_locks=warn 16010 fi 16011else 16012 need_locks=no 16013fi 16014 16015echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16016echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16017 16018 runpath_var= 16019 allow_undefined_flag_GCJ= 16020 enable_shared_with_static_runtimes_GCJ=no 16021 archive_cmds_GCJ= 16022 archive_expsym_cmds_GCJ= 16023 old_archive_From_new_cmds_GCJ= 16024 old_archive_from_expsyms_cmds_GCJ= 16025 export_dynamic_flag_spec_GCJ= 16026 whole_archive_flag_spec_GCJ= 16027 thread_safe_flag_spec_GCJ= 16028 hardcode_libdir_flag_spec_GCJ= 16029 hardcode_libdir_flag_spec_ld_GCJ= 16030 hardcode_libdir_separator_GCJ= 16031 hardcode_direct_GCJ=no 16032 hardcode_minus_L_GCJ=no 16033 hardcode_shlibpath_var_GCJ=unsupported 16034 link_all_deplibs_GCJ=unknown 16035 hardcode_automatic_GCJ=no 16036 module_cmds_GCJ= 16037 module_expsym_cmds_GCJ= 16038 always_export_symbols_GCJ=no 16039 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16040 # include_expsyms should be a list of space-separated symbols to be *always* 16041 # included in the symbol list 16042 include_expsyms_GCJ= 16043 # exclude_expsyms can be an extended regexp of symbols to exclude 16044 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16046 # as well as any symbol that contains `d'. 16047 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16049 # platforms (ab)use it in PIC code, but their linkers get confused if 16050 # the symbol is explicitly referenced. Since portable code cannot 16051 # rely on this symbol name, it's probably fine to never include it in 16052 # preloaded symbol tables. 16053 extract_expsyms_cmds= 16054 # Just being paranoid about ensuring that cc_basename is set. 16055 for cc_temp in $compiler""; do 16056 case $cc_temp in 16057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16059 \-*) ;; 16060 *) break;; 16061 esac 16062done 16063cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16064 16065 case $host_os in 16066 cygwin* | mingw* | pw32*) 16067 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16068 # When not using gcc, we currently assume that we are using 16069 # Microsoft Visual C++. 16070 if test "$GCC" != yes; then 16071 with_gnu_ld=no 16072 fi 16073 ;; 16074 interix*) 16075 # we just hope/assume this is gcc and not c89 (= MSVC++) 16076 with_gnu_ld=yes 16077 ;; 16078 openbsd*) 16079 with_gnu_ld=no 16080 ;; 16081 esac 16082 16083 ld_shlibs_GCJ=yes 16084 if test "$with_gnu_ld" = yes; then 16085 # If archive_cmds runs LD, not CC, wlarc should be empty 16086 wlarc='${wl}' 16087 16088 # Set some defaults for GNU ld with shared library support. These 16089 # are reset later if shared libraries are not supported. Putting them 16090 # here allows them to be overridden if necessary. 16091 runpath_var=LD_RUN_PATH 16092 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16093 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16094 # ancient GNU ld didn't support --whole-archive et. al. 16095 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16096 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16097 else 16098 whole_archive_flag_spec_GCJ= 16099 fi 16100 supports_anon_versioning=no 16101 case `$LD -v 2>/dev/null` in 16102 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16103 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16104 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16105 *\ 2.11.*) ;; # other 2.11 versions 16106 *) supports_anon_versioning=yes ;; 16107 esac 16108 16109 # See if GNU ld supports shared libraries. 16110 case $host_os in 16111 aix3* | aix4* | aix5*) 16112 # On AIX/PPC, the GNU linker is very broken 16113 if test "$host_cpu" != ia64; then 16114 ld_shlibs_GCJ=no 16115 cat <<EOF 1>&2 16116 16117*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16118*** to be unable to reliably create shared libraries on AIX. 16119*** Therefore, libtool is disabling shared libraries support. If you 16120*** really care for shared libraries, you may want to modify your PATH 16121*** so that a non-GNU linker is found, and then restart. 16122 16123EOF 16124 fi 16125 ;; 16126 16127 amigaos*) 16128 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)' 16129 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16130 hardcode_minus_L_GCJ=yes 16131 16132 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16133 # that the semantics of dynamic libraries on AmigaOS, at least up 16134 # to version 4, is to share data among multiple programs linked 16135 # with the same dynamic library. Since this doesn't match the 16136 # behavior of shared libraries on other platforms, we can't use 16137 # them. 16138 ld_shlibs_GCJ=no 16139 ;; 16140 16141 beos*) 16142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16143 allow_undefined_flag_GCJ=unsupported 16144 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16145 # support --undefined. This deserves some investigation. FIXME 16146 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16147 else 16148 ld_shlibs_GCJ=no 16149 fi 16150 ;; 16151 16152 cygwin* | mingw* | pw32*) 16153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16154 # as there is no search path for DLLs. 16155 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16156 allow_undefined_flag_GCJ=unsupported 16157 always_export_symbols_GCJ=no 16158 enable_shared_with_static_runtimes_GCJ=yes 16159 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16160 16161 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16162 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16163 # If the export-symbols file already is a .def file (1st line 16164 # is EXPORTS), use it as is; otherwise, prepend... 16165 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16166 cp $export_symbols $output_objdir/$soname.def; 16167 else 16168 echo EXPORTS > $output_objdir/$soname.def; 16169 cat $export_symbols >> $output_objdir/$soname.def; 16170 fi~ 16171 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16172 else 16173 ld_shlibs_GCJ=no 16174 fi 16175 ;; 16176 16177 interix3*) 16178 hardcode_direct_GCJ=no 16179 hardcode_shlibpath_var_GCJ=no 16180 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16181 export_dynamic_flag_spec_GCJ='${wl}-E' 16182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16183 # Instead, shared libraries are loaded at an image base (0x10000000 by 16184 # default) and relocated if they conflict, which is a slow very memory 16185 # consuming and fragmenting process. To avoid this, we pick a random, 16186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16187 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16188 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' 16189 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' 16190 ;; 16191 16192 linux*) 16193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16194 tmp_addflag= 16195 case $cc_basename,$host_cpu in 16196 pgcc*) # Portland Group C compiler 16197 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' 16198 tmp_addflag=' $pic_flag' 16199 ;; 16200 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16201 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' 16202 tmp_addflag=' $pic_flag -Mnomain' ;; 16203 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16204 tmp_addflag=' -i_dynamic' ;; 16205 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16206 tmp_addflag=' -i_dynamic -nofor_main' ;; 16207 ifc* | ifort*) # Intel Fortran compiler 16208 tmp_addflag=' -nofor_main' ;; 16209 esac 16210 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16211 16212 if test $supports_anon_versioning = yes; then 16213 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16215 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16216 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16217 fi 16218 else 16219 ld_shlibs_GCJ=no 16220 fi 16221 ;; 16222 16223 netbsd*) 16224 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16225 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16226 wlarc= 16227 else 16228 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16229 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16230 fi 16231 ;; 16232 16233 solaris*) 16234 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16235 ld_shlibs_GCJ=no 16236 cat <<EOF 1>&2 16237 16238*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16239*** create shared libraries on Solaris systems. Therefore, libtool 16240*** is disabling shared libraries support. We urge you to upgrade GNU 16241*** binutils to release 2.9.1 or newer. Another option is to modify 16242*** your PATH or compiler configuration so that the native linker is 16243*** used, and then restart. 16244 16245EOF 16246 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16247 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16248 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16249 else 16250 ld_shlibs_GCJ=no 16251 fi 16252 ;; 16253 16254 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16255 case `$LD -v 2>&1` in 16256 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16257 ld_shlibs_GCJ=no 16258 cat <<_LT_EOF 1>&2 16259 16260*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16261*** reliably create shared libraries on SCO systems. Therefore, libtool 16262*** is disabling shared libraries support. We urge you to upgrade GNU 16263*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16264*** your PATH or compiler configuration so that the native linker is 16265*** used, and then restart. 16266 16267_LT_EOF 16268 ;; 16269 *) 16270 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16271 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16272 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16273 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16274 else 16275 ld_shlibs_GCJ=no 16276 fi 16277 ;; 16278 esac 16279 ;; 16280 16281 sunos4*) 16282 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16283 wlarc= 16284 hardcode_direct_GCJ=yes 16285 hardcode_shlibpath_var_GCJ=no 16286 ;; 16287 16288 *) 16289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16290 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16291 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16292 else 16293 ld_shlibs_GCJ=no 16294 fi 16295 ;; 16296 esac 16297 16298 if test "$ld_shlibs_GCJ" = no; then 16299 runpath_var= 16300 hardcode_libdir_flag_spec_GCJ= 16301 export_dynamic_flag_spec_GCJ= 16302 whole_archive_flag_spec_GCJ= 16303 fi 16304 else 16305 # PORTME fill in a description of your system's linker (not GNU ld) 16306 case $host_os in 16307 aix3*) 16308 allow_undefined_flag_GCJ=unsupported 16309 always_export_symbols_GCJ=yes 16310 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' 16311 # Note: this linker hardcodes the directories in LIBPATH if there 16312 # are no directories specified by -L. 16313 hardcode_minus_L_GCJ=yes 16314 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16315 # Neither direct hardcoding nor static linking is supported with a 16316 # broken collect2. 16317 hardcode_direct_GCJ=unsupported 16318 fi 16319 ;; 16320 16321 aix4* | aix5*) 16322 if test "$host_cpu" = ia64; then 16323 # On IA64, the linker does run time linking by default, so we don't 16324 # have to do anything special. 16325 aix_use_runtimelinking=no 16326 exp_sym_flag='-Bexport' 16327 no_entry_flag="" 16328 else 16329 # If we're using GNU nm, then we don't want the "-C" option. 16330 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16331 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16332 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' 16333 else 16334 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' 16335 fi 16336 aix_use_runtimelinking=no 16337 16338 # Test if we are trying to use run time linking or normal 16339 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16340 # need to do runtime linking. 16341 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16342 for ld_flag in $LDFLAGS; do 16343 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16344 aix_use_runtimelinking=yes 16345 break 16346 fi 16347 done 16348 ;; 16349 esac 16350 16351 exp_sym_flag='-bexport' 16352 no_entry_flag='-bnoentry' 16353 fi 16354 16355 # When large executables or shared objects are built, AIX ld can 16356 # have problems creating the table of contents. If linking a library 16357 # or program results in "error TOC overflow" add -mminimal-toc to 16358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16360 16361 archive_cmds_GCJ='' 16362 hardcode_direct_GCJ=yes 16363 hardcode_libdir_separator_GCJ=':' 16364 link_all_deplibs_GCJ=yes 16365 16366 if test "$GCC" = yes; then 16367 case $host_os in aix4.[012]|aix4.[012].*) 16368 # We only want to do this on AIX 4.2 and lower, the check 16369 # below for broken collect2 doesn't work under 4.3+ 16370 collect2name=`${CC} -print-prog-name=collect2` 16371 if test -f "$collect2name" && \ 16372 strings "$collect2name" | grep resolve_lib_name >/dev/null 16373 then 16374 # We have reworked collect2 16375 hardcode_direct_GCJ=yes 16376 else 16377 # We have old collect2 16378 hardcode_direct_GCJ=unsupported 16379 # It fails to find uninstalled libraries when the uninstalled 16380 # path is not listed in the libpath. Setting hardcode_minus_L 16381 # to unsupported forces relinking 16382 hardcode_minus_L_GCJ=yes 16383 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16384 hardcode_libdir_separator_GCJ= 16385 fi 16386 ;; 16387 esac 16388 shared_flag='-shared' 16389 if test "$aix_use_runtimelinking" = yes; then 16390 shared_flag="$shared_flag "'${wl}-G' 16391 fi 16392 else 16393 # not using gcc 16394 if test "$host_cpu" = ia64; then 16395 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16396 # chokes on -Wl,-G. The following line is correct: 16397 shared_flag='-G' 16398 else 16399 if test "$aix_use_runtimelinking" = yes; then 16400 shared_flag='${wl}-G' 16401 else 16402 shared_flag='${wl}-bM:SRE' 16403 fi 16404 fi 16405 fi 16406 16407 # It seems that -bexpall does not export symbols beginning with 16408 # underscore (_), so it is better to generate a list of symbols to export. 16409 always_export_symbols_GCJ=yes 16410 if test "$aix_use_runtimelinking" = yes; then 16411 # Warning - without using the other runtime loading flags (-brtl), 16412 # -berok will link without error, but may produce a broken library. 16413 allow_undefined_flag_GCJ='-berok' 16414 # Determine the default libpath from the value encoded in an empty executable. 16415 cat >conftest.$ac_ext <<_ACEOF 16416/* confdefs.h. */ 16417_ACEOF 16418cat confdefs.h >>conftest.$ac_ext 16419cat >>conftest.$ac_ext <<_ACEOF 16420/* end confdefs.h. */ 16421 16422int 16423main () 16424{ 16425 16426 ; 16427 return 0; 16428} 16429_ACEOF 16430rm -f conftest.$ac_objext conftest$ac_exeext 16431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16432 (eval $ac_link) 2>conftest.er1 16433 ac_status=$? 16434 grep -v '^ *+' conftest.er1 >conftest.err 16435 rm -f conftest.er1 16436 cat conftest.err >&5 16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16438 (exit $ac_status); } && 16439 { ac_try='test -z "$ac_c_werror_flag" 16440 || test ! -s conftest.err' 16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16442 (eval $ac_try) 2>&5 16443 ac_status=$? 16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16445 (exit $ac_status); }; } && 16446 { ac_try='test -s conftest$ac_exeext' 16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16448 (eval $ac_try) 2>&5 16449 ac_status=$? 16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16451 (exit $ac_status); }; }; then 16452 16453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16454}'` 16455# Check for a 64-bit object if we didn't find anything. 16456if 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; } 16457}'`; fi 16458else 16459 echo "$as_me: failed program was:" >&5 16460sed 's/^/| /' conftest.$ac_ext >&5 16461 16462fi 16463rm -f conftest.err conftest.$ac_objext \ 16464 conftest$ac_exeext conftest.$ac_ext 16465if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16466 16467 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16468 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" 16469 else 16470 if test "$host_cpu" = ia64; then 16471 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16472 allow_undefined_flag_GCJ="-z nodefs" 16473 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" 16474 else 16475 # Determine the default libpath from the value encoded in an empty executable. 16476 cat >conftest.$ac_ext <<_ACEOF 16477/* confdefs.h. */ 16478_ACEOF 16479cat confdefs.h >>conftest.$ac_ext 16480cat >>conftest.$ac_ext <<_ACEOF 16481/* end confdefs.h. */ 16482 16483int 16484main () 16485{ 16486 16487 ; 16488 return 0; 16489} 16490_ACEOF 16491rm -f conftest.$ac_objext conftest$ac_exeext 16492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16493 (eval $ac_link) 2>conftest.er1 16494 ac_status=$? 16495 grep -v '^ *+' conftest.er1 >conftest.err 16496 rm -f conftest.er1 16497 cat conftest.err >&5 16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16499 (exit $ac_status); } && 16500 { ac_try='test -z "$ac_c_werror_flag" 16501 || test ! -s conftest.err' 16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16503 (eval $ac_try) 2>&5 16504 ac_status=$? 16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16506 (exit $ac_status); }; } && 16507 { ac_try='test -s conftest$ac_exeext' 16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16509 (eval $ac_try) 2>&5 16510 ac_status=$? 16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16512 (exit $ac_status); }; }; then 16513 16514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16515}'` 16516# Check for a 64-bit object if we didn't find anything. 16517if 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; } 16518}'`; fi 16519else 16520 echo "$as_me: failed program was:" >&5 16521sed 's/^/| /' conftest.$ac_ext >&5 16522 16523fi 16524rm -f conftest.err conftest.$ac_objext \ 16525 conftest$ac_exeext conftest.$ac_ext 16526if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16527 16528 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16529 # Warning - without using the other run time loading flags, 16530 # -berok will link without error, but may produce a broken library. 16531 no_undefined_flag_GCJ=' ${wl}-bernotok' 16532 allow_undefined_flag_GCJ=' ${wl}-berok' 16533 # Exported symbols can be pulled into shared objects from archives 16534 whole_archive_flag_spec_GCJ='$convenience' 16535 archive_cmds_need_lc_GCJ=yes 16536 # This is similar to how AIX traditionally builds its shared libraries. 16537 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' 16538 fi 16539 fi 16540 ;; 16541 16542 amigaos*) 16543 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)' 16544 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16545 hardcode_minus_L_GCJ=yes 16546 # see comment about different semantics on the GNU ld section 16547 ld_shlibs_GCJ=no 16548 ;; 16549 16550 bsdi[45]*) 16551 export_dynamic_flag_spec_GCJ=-rdynamic 16552 ;; 16553 16554 cygwin* | mingw* | pw32*) 16555 # When not using gcc, we currently assume that we are using 16556 # Microsoft Visual C++. 16557 # hardcode_libdir_flag_spec is actually meaningless, as there is 16558 # no search path for DLLs. 16559 hardcode_libdir_flag_spec_GCJ=' ' 16560 allow_undefined_flag_GCJ=unsupported 16561 # Tell ltmain to make .lib files, not .a files. 16562 libext=lib 16563 # Tell ltmain to make .dll files, not .so files. 16564 shrext_cmds=".dll" 16565 # FIXME: Setting linknames here is a bad hack. 16566 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16567 # The linker will automatically build a .lib file if we build a DLL. 16568 old_archive_From_new_cmds_GCJ='true' 16569 # FIXME: Should let the user specify the lib program. 16570 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16571 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16572 enable_shared_with_static_runtimes_GCJ=yes 16573 ;; 16574 16575 darwin* | rhapsody*) 16576 case $host_os in 16577 rhapsody* | darwin1.[012]) 16578 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16579 ;; 16580 *) # Darwin 1.3 on 16581 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16582 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16583 else 16584 case ${MACOSX_DEPLOYMENT_TARGET} in 16585 10.[012]) 16586 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16587 ;; 16588 10.*) 16589 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16590 ;; 16591 esac 16592 fi 16593 ;; 16594 esac 16595 archive_cmds_need_lc_GCJ=no 16596 hardcode_direct_GCJ=no 16597 hardcode_automatic_GCJ=yes 16598 hardcode_shlibpath_var_GCJ=unsupported 16599 whole_archive_flag_spec_GCJ='' 16600 link_all_deplibs_GCJ=yes 16601 if test "$GCC" = yes ; then 16602 output_verbose_link_cmd='echo' 16603 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16604 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16605 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16606 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}' 16607 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}' 16608 else 16609 case $cc_basename in 16610 xlc*) 16611 output_verbose_link_cmd='echo' 16612 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $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 -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}' 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 ;; 16618 *) 16619 ld_shlibs_GCJ=no 16620 ;; 16621 esac 16622 fi 16623 ;; 16624 16625 dgux*) 16626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16627 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16628 hardcode_shlibpath_var_GCJ=no 16629 ;; 16630 16631 freebsd1*) 16632 ld_shlibs_GCJ=no 16633 ;; 16634 16635 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16636 # support. Future versions do this automatically, but an explicit c++rt0.o 16637 # does not break anything, and helps significantly (at the cost of a little 16638 # extra space). 16639 freebsd2.2*) 16640 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16641 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16642 hardcode_direct_GCJ=yes 16643 hardcode_shlibpath_var_GCJ=no 16644 ;; 16645 16646 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16647 freebsd2*) 16648 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16649 hardcode_direct_GCJ=yes 16650 hardcode_minus_L_GCJ=yes 16651 hardcode_shlibpath_var_GCJ=no 16652 ;; 16653 16654 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16655 freebsd* | kfreebsd*-gnu | dragonfly*) 16656 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16657 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16658 hardcode_direct_GCJ=yes 16659 hardcode_shlibpath_var_GCJ=no 16660 ;; 16661 16662 hpux9*) 16663 if test "$GCC" = yes; then 16664 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' 16665 else 16666 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' 16667 fi 16668 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16669 hardcode_libdir_separator_GCJ=: 16670 hardcode_direct_GCJ=yes 16671 16672 # hardcode_minus_L: Not really in the search PATH, 16673 # but as the default location of the library. 16674 hardcode_minus_L_GCJ=yes 16675 export_dynamic_flag_spec_GCJ='${wl}-E' 16676 ;; 16677 16678 hpux10*) 16679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16680 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16681 else 16682 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16683 fi 16684 if test "$with_gnu_ld" = no; then 16685 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16686 hardcode_libdir_separator_GCJ=: 16687 16688 hardcode_direct_GCJ=yes 16689 export_dynamic_flag_spec_GCJ='${wl}-E' 16690 16691 # hardcode_minus_L: Not really in the search PATH, 16692 # but as the default location of the library. 16693 hardcode_minus_L_GCJ=yes 16694 fi 16695 ;; 16696 16697 hpux11*) 16698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16699 case $host_cpu in 16700 hppa*64*) 16701 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16702 ;; 16703 ia64*) 16704 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16705 ;; 16706 *) 16707 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16708 ;; 16709 esac 16710 else 16711 case $host_cpu in 16712 hppa*64*) 16713 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16714 ;; 16715 ia64*) 16716 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16717 ;; 16718 *) 16719 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16720 ;; 16721 esac 16722 fi 16723 if test "$with_gnu_ld" = no; then 16724 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16725 hardcode_libdir_separator_GCJ=: 16726 16727 case $host_cpu in 16728 hppa*64*|ia64*) 16729 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16730 hardcode_direct_GCJ=no 16731 hardcode_shlibpath_var_GCJ=no 16732 ;; 16733 *) 16734 hardcode_direct_GCJ=yes 16735 export_dynamic_flag_spec_GCJ='${wl}-E' 16736 16737 # hardcode_minus_L: Not really in the search PATH, 16738 # but as the default location of the library. 16739 hardcode_minus_L_GCJ=yes 16740 ;; 16741 esac 16742 fi 16743 ;; 16744 16745 irix5* | irix6* | nonstopux*) 16746 if test "$GCC" = yes; then 16747 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' 16748 else 16749 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' 16750 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16751 fi 16752 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16753 hardcode_libdir_separator_GCJ=: 16754 link_all_deplibs_GCJ=yes 16755 ;; 16756 16757 netbsd*) 16758 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16759 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16760 else 16761 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16762 fi 16763 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16764 hardcode_direct_GCJ=yes 16765 hardcode_shlibpath_var_GCJ=no 16766 ;; 16767 16768 newsos6) 16769 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16770 hardcode_direct_GCJ=yes 16771 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16772 hardcode_libdir_separator_GCJ=: 16773 hardcode_shlibpath_var_GCJ=no 16774 ;; 16775 16776 openbsd*) 16777 hardcode_direct_GCJ=yes 16778 hardcode_shlibpath_var_GCJ=no 16779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16780 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16781 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16782 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16783 export_dynamic_flag_spec_GCJ='${wl}-E' 16784 else 16785 case $host_os in 16786 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16787 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16788 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16789 ;; 16790 *) 16791 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16792 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16793 ;; 16794 esac 16795 fi 16796 ;; 16797 16798 os2*) 16799 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16800 hardcode_minus_L_GCJ=yes 16801 allow_undefined_flag_GCJ=unsupported 16802 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' 16803 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16804 ;; 16805 16806 osf3*) 16807 if test "$GCC" = yes; then 16808 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16809 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' 16810 else 16811 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16812 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' 16813 fi 16814 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16815 hardcode_libdir_separator_GCJ=: 16816 ;; 16817 16818 osf4* | osf5*) # as osf3* with the addition of -msym flag 16819 if test "$GCC" = yes; then 16820 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16821 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' 16822 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16823 else 16824 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16825 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' 16826 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~ 16827 $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' 16828 16829 # Both c and cxx compiler support -rpath directly 16830 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16831 fi 16832 hardcode_libdir_separator_GCJ=: 16833 ;; 16834 16835 solaris*) 16836 no_undefined_flag_GCJ=' -z text' 16837 if test "$GCC" = yes; then 16838 wlarc='${wl}' 16839 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16840 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16841 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16842 else 16843 wlarc='' 16844 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16845 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16847 fi 16848 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16849 hardcode_shlibpath_var_GCJ=no 16850 case $host_os in 16851 solaris2.[0-5] | solaris2.[0-5].*) ;; 16852 *) 16853 # The compiler driver will combine linker options so we 16854 # cannot just pass the convience library names through 16855 # without $wl, iff we do not link with $LD. 16856 # Luckily, gcc supports the same syntax we need for Sun Studio. 16857 # Supported since Solaris 2.6 (maybe 2.5.1?) 16858 case $wlarc in 16859 '') 16860 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16861 *) 16862 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' ;; 16863 esac ;; 16864 esac 16865 link_all_deplibs_GCJ=yes 16866 ;; 16867 16868 sunos4*) 16869 if test "x$host_vendor" = xsequent; then 16870 # Use $CC to link under sequent, because it throws in some extra .o 16871 # files that make .init and .fini sections work. 16872 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16873 else 16874 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16875 fi 16876 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16877 hardcode_direct_GCJ=yes 16878 hardcode_minus_L_GCJ=yes 16879 hardcode_shlibpath_var_GCJ=no 16880 ;; 16881 16882 sysv4) 16883 case $host_vendor in 16884 sni) 16885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16886 hardcode_direct_GCJ=yes # is this really true??? 16887 ;; 16888 siemens) 16889 ## LD is ld it makes a PLAMLIB 16890 ## CC just makes a GrossModule. 16891 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16892 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16893 hardcode_direct_GCJ=no 16894 ;; 16895 motorola) 16896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16897 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16898 ;; 16899 esac 16900 runpath_var='LD_RUN_PATH' 16901 hardcode_shlibpath_var_GCJ=no 16902 ;; 16903 16904 sysv4.3*) 16905 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16906 hardcode_shlibpath_var_GCJ=no 16907 export_dynamic_flag_spec_GCJ='-Bexport' 16908 ;; 16909 16910 sysv4*MP*) 16911 if test -d /usr/nec; then 16912 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16913 hardcode_shlibpath_var_GCJ=no 16914 runpath_var=LD_RUN_PATH 16915 hardcode_runpath_var=yes 16916 ld_shlibs_GCJ=yes 16917 fi 16918 ;; 16919 16920 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16921 no_undefined_flag_GCJ='${wl}-z,text' 16922 archive_cmds_need_lc_GCJ=no 16923 hardcode_shlibpath_var_GCJ=no 16924 runpath_var='LD_RUN_PATH' 16925 16926 if test "$GCC" = yes; then 16927 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16928 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16929 else 16930 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16931 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16932 fi 16933 ;; 16934 16935 sysv5* | sco3.2v5* | sco5v6*) 16936 # Note: We can NOT use -z defs as we might desire, because we do not 16937 # link with -lc, and that would cause any symbols used from libc to 16938 # always be unresolved, which means just about no library would 16939 # ever link correctly. If we're not using GNU ld we use -z text 16940 # though, which does catch some bad symbols but isn't as heavy-handed 16941 # as -z defs. 16942 no_undefined_flag_GCJ='${wl}-z,text' 16943 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16944 archive_cmds_need_lc_GCJ=no 16945 hardcode_shlibpath_var_GCJ=no 16946 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16947 hardcode_libdir_separator_GCJ=':' 16948 link_all_deplibs_GCJ=yes 16949 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16950 runpath_var='LD_RUN_PATH' 16951 16952 if test "$GCC" = yes; then 16953 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16954 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16955 else 16956 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16957 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16958 fi 16959 ;; 16960 16961 uts4*) 16962 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16963 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16964 hardcode_shlibpath_var_GCJ=no 16965 ;; 16966 16967 *) 16968 ld_shlibs_GCJ=no 16969 ;; 16970 esac 16971 fi 16972 16973echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16974echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16975test "$ld_shlibs_GCJ" = no && can_build_shared=no 16976 16977# 16978# Do we need to explicitly link libc? 16979# 16980case "x$archive_cmds_need_lc_GCJ" in 16981x|xyes) 16982 # Assume -lc should be added 16983 archive_cmds_need_lc_GCJ=yes 16984 16985 if test "$enable_shared" = yes && test "$GCC" = yes; then 16986 case $archive_cmds_GCJ in 16987 *'~'*) 16988 # FIXME: we may have to deal with multi-command sequences. 16989 ;; 16990 '$CC '*) 16991 # Test whether the compiler implicitly links with -lc since on some 16992 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16993 # to ld, don't add -lc before -lgcc. 16994 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16995echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16996 $rm conftest* 16997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16998 16999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17000 (eval $ac_compile) 2>&5 17001 ac_status=$? 17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17003 (exit $ac_status); } 2>conftest.err; then 17004 soname=conftest 17005 lib=conftest 17006 libobjs=conftest.$ac_objext 17007 deplibs= 17008 wl=$lt_prog_compiler_wl_GCJ 17009 pic_flag=$lt_prog_compiler_pic_GCJ 17010 compiler_flags=-v 17011 linker_flags=-v 17012 verstring= 17013 output_objdir=. 17014 libname=conftest 17015 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17016 allow_undefined_flag_GCJ= 17017 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17018 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17019 ac_status=$? 17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17021 (exit $ac_status); } 17022 then 17023 archive_cmds_need_lc_GCJ=no 17024 else 17025 archive_cmds_need_lc_GCJ=yes 17026 fi 17027 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17028 else 17029 cat conftest.err 1>&5 17030 fi 17031 $rm conftest* 17032 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17033echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17034 ;; 17035 esac 17036 fi 17037 ;; 17038esac 17039 17040echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17041echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17042library_names_spec= 17043libname_spec='lib$name' 17044soname_spec= 17045shrext_cmds=".so" 17046postinstall_cmds= 17047postuninstall_cmds= 17048finish_cmds= 17049finish_eval= 17050shlibpath_var= 17051shlibpath_overrides_runpath=unknown 17052version_type=none 17053dynamic_linker="$host_os ld.so" 17054sys_lib_dlsearch_path_spec="/lib /usr/lib" 17055if test "$GCC" = yes; then 17056 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17057 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17058 # if the path contains ";" then we assume it to be the separator 17059 # otherwise default to the standard path separator (i.e. ":") - it is 17060 # assumed that no part of a normal pathname contains ";" but that should 17061 # okay in the real world where ";" in dirpaths is itself problematic. 17062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17063 else 17064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17065 fi 17066else 17067 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17068fi 17069need_lib_prefix=unknown 17070hardcode_into_libs=no 17071 17072# when you set need_version to no, make sure it does not cause -set_version 17073# flags to be left without arguments 17074need_version=unknown 17075 17076case $host_os in 17077aix3*) 17078 version_type=linux 17079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17080 shlibpath_var=LIBPATH 17081 17082 # AIX 3 has no versioning support, so we append a major version to the name. 17083 soname_spec='${libname}${release}${shared_ext}$major' 17084 ;; 17085 17086aix4* | aix5*) 17087 version_type=linux 17088 need_lib_prefix=no 17089 need_version=no 17090 hardcode_into_libs=yes 17091 if test "$host_cpu" = ia64; then 17092 # AIX 5 supports IA64 17093 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17094 shlibpath_var=LD_LIBRARY_PATH 17095 else 17096 # With GCC up to 2.95.x, collect2 would create an import file 17097 # for dependence libraries. The import file would start with 17098 # the line `#! .'. This would cause the generated library to 17099 # depend on `.', always an invalid library. This was fixed in 17100 # development snapshots of GCC prior to 3.0. 17101 case $host_os in 17102 aix4 | aix4.[01] | aix4.[01].*) 17103 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17104 echo ' yes ' 17105 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17106 : 17107 else 17108 can_build_shared=no 17109 fi 17110 ;; 17111 esac 17112 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17113 # soname into executable. Probably we can add versioning support to 17114 # collect2, so additional links can be useful in future. 17115 if test "$aix_use_runtimelinking" = yes; then 17116 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17117 # instead of lib<name>.a to let people know that these are not 17118 # typical AIX shared libraries. 17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17120 else 17121 # We preserve .a as extension for shared libraries through AIX4.2 17122 # and later when we are not doing run time linking. 17123 library_names_spec='${libname}${release}.a $libname.a' 17124 soname_spec='${libname}${release}${shared_ext}$major' 17125 fi 17126 shlibpath_var=LIBPATH 17127 fi 17128 ;; 17129 17130amigaos*) 17131 library_names_spec='$libname.ixlibrary $libname.a' 17132 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17133 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' 17134 ;; 17135 17136beos*) 17137 library_names_spec='${libname}${shared_ext}' 17138 dynamic_linker="$host_os ld.so" 17139 shlibpath_var=LIBRARY_PATH 17140 ;; 17141 17142bsdi[45]*) 17143 version_type=linux 17144 need_version=no 17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17146 soname_spec='${libname}${release}${shared_ext}$major' 17147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17148 shlibpath_var=LD_LIBRARY_PATH 17149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17151 # the default ld.so.conf also contains /usr/contrib/lib and 17152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17153 # libtool to hard-code these into programs 17154 ;; 17155 17156cygwin* | mingw* | pw32*) 17157 version_type=windows 17158 shrext_cmds=".dll" 17159 need_version=no 17160 need_lib_prefix=no 17161 17162 case $GCC,$host_os in 17163 yes,cygwin* | yes,mingw* | yes,pw32*) 17164 library_names_spec='$libname.dll.a' 17165 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17166 postinstall_cmds='base_file=`basename \${file}`~ 17167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17168 dldir=$destdir/`dirname \$dlpath`~ 17169 test -d \$dldir || mkdir -p \$dldir~ 17170 $install_prog $dir/$dlname \$dldir/$dlname~ 17171 chmod a+x \$dldir/$dlname' 17172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17173 dlpath=$dir/\$dldll~ 17174 $rm \$dlpath' 17175 shlibpath_overrides_runpath=yes 17176 17177 case $host_os in 17178 cygwin*) 17179 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17181 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17182 ;; 17183 mingw*) 17184 # MinGW DLLs use traditional 'lib' prefix 17185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17186 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17187 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17188 # It is most probably a Windows format PATH printed by 17189 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17190 # path with ; separators, and with drive letters. We can handle the 17191 # drive letters (cygwin fileutils understands them), so leave them, 17192 # especially as we might pass files found there to a mingw objdump, 17193 # which wouldn't understand a cygwinified path. Ahh. 17194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17195 else 17196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17197 fi 17198 ;; 17199 pw32*) 17200 # pw32 DLLs use 'pw' prefix rather than 'lib' 17201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17202 ;; 17203 esac 17204 ;; 17205 17206 *) 17207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17208 ;; 17209 esac 17210 dynamic_linker='Win32 ld.exe' 17211 # FIXME: first we should search . and the directory the executable is in 17212 shlibpath_var=PATH 17213 ;; 17214 17215darwin* | rhapsody*) 17216 dynamic_linker="$host_os dyld" 17217 version_type=darwin 17218 need_lib_prefix=no 17219 need_version=no 17220 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17221 soname_spec='${libname}${release}${major}$shared_ext' 17222 shlibpath_overrides_runpath=yes 17223 shlibpath_var=DYLD_LIBRARY_PATH 17224 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17225 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17226 if test "$GCC" = yes; then 17227 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"` 17228 else 17229 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17230 fi 17231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17232 ;; 17233 17234dgux*) 17235 version_type=linux 17236 need_lib_prefix=no 17237 need_version=no 17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17239 soname_spec='${libname}${release}${shared_ext}$major' 17240 shlibpath_var=LD_LIBRARY_PATH 17241 ;; 17242 17243freebsd1*) 17244 dynamic_linker=no 17245 ;; 17246 17247kfreebsd*-gnu) 17248 version_type=linux 17249 need_lib_prefix=no 17250 need_version=no 17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17252 soname_spec='${libname}${release}${shared_ext}$major' 17253 shlibpath_var=LD_LIBRARY_PATH 17254 shlibpath_overrides_runpath=no 17255 hardcode_into_libs=yes 17256 dynamic_linker='GNU ld.so' 17257 ;; 17258 17259freebsd* | dragonfly*) 17260 # DragonFly does not have aout. When/if they implement a new 17261 # versioning mechanism, adjust this. 17262 if test -x /usr/bin/objformat; then 17263 objformat=`/usr/bin/objformat` 17264 else 17265 case $host_os in 17266 freebsd[123]*) objformat=aout ;; 17267 *) objformat=elf ;; 17268 esac 17269 fi 17270 version_type=freebsd-$objformat 17271 case $version_type in 17272 freebsd-elf*) 17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17274 need_version=no 17275 need_lib_prefix=no 17276 ;; 17277 freebsd-*) 17278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17279 need_version=yes 17280 ;; 17281 esac 17282 shlibpath_var=LD_LIBRARY_PATH 17283 case $host_os in 17284 freebsd2*) 17285 shlibpath_overrides_runpath=yes 17286 ;; 17287 freebsd3.[01]* | freebsdelf3.[01]*) 17288 shlibpath_overrides_runpath=yes 17289 hardcode_into_libs=yes 17290 ;; 17291 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17292 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17293 shlibpath_overrides_runpath=no 17294 hardcode_into_libs=yes 17295 ;; 17296 freebsd*) # from 4.6 on 17297 shlibpath_overrides_runpath=yes 17298 hardcode_into_libs=yes 17299 ;; 17300 esac 17301 ;; 17302 17303gnu*) 17304 version_type=linux 17305 need_lib_prefix=no 17306 need_version=no 17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17308 soname_spec='${libname}${release}${shared_ext}$major' 17309 shlibpath_var=LD_LIBRARY_PATH 17310 hardcode_into_libs=yes 17311 ;; 17312 17313hpux9* | hpux10* | hpux11*) 17314 # Give a soname corresponding to the major version so that dld.sl refuses to 17315 # link against other versions. 17316 version_type=sunos 17317 need_lib_prefix=no 17318 need_version=no 17319 case $host_cpu in 17320 ia64*) 17321 shrext_cmds='.so' 17322 hardcode_into_libs=yes 17323 dynamic_linker="$host_os dld.so" 17324 shlibpath_var=LD_LIBRARY_PATH 17325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17327 soname_spec='${libname}${release}${shared_ext}$major' 17328 if test "X$HPUX_IA64_MODE" = X32; then 17329 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17330 else 17331 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17332 fi 17333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17334 ;; 17335 hppa*64*) 17336 shrext_cmds='.sl' 17337 hardcode_into_libs=yes 17338 dynamic_linker="$host_os dld.sl" 17339 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17342 soname_spec='${libname}${release}${shared_ext}$major' 17343 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17345 ;; 17346 *) 17347 shrext_cmds='.sl' 17348 dynamic_linker="$host_os dld.sl" 17349 shlibpath_var=SHLIB_PATH 17350 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17352 soname_spec='${libname}${release}${shared_ext}$major' 17353 ;; 17354 esac 17355 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17356 postinstall_cmds='chmod 555 $lib' 17357 ;; 17358 17359interix3*) 17360 version_type=linux 17361 need_lib_prefix=no 17362 need_version=no 17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17364 soname_spec='${libname}${release}${shared_ext}$major' 17365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17366 shlibpath_var=LD_LIBRARY_PATH 17367 shlibpath_overrides_runpath=no 17368 hardcode_into_libs=yes 17369 ;; 17370 17371irix5* | irix6* | nonstopux*) 17372 case $host_os in 17373 nonstopux*) version_type=nonstopux ;; 17374 *) 17375 if test "$lt_cv_prog_gnu_ld" = yes; then 17376 version_type=linux 17377 else 17378 version_type=irix 17379 fi ;; 17380 esac 17381 need_lib_prefix=no 17382 need_version=no 17383 soname_spec='${libname}${release}${shared_ext}$major' 17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17385 case $host_os in 17386 irix5* | nonstopux*) 17387 libsuff= shlibsuff= 17388 ;; 17389 *) 17390 case $LD in # libtool.m4 will add one of these switches to LD 17391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17392 libsuff= shlibsuff= libmagic=32-bit;; 17393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17394 libsuff=32 shlibsuff=N32 libmagic=N32;; 17395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17396 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17397 *) libsuff= shlibsuff= libmagic=never-match;; 17398 esac 17399 ;; 17400 esac 17401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17402 shlibpath_overrides_runpath=no 17403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17405 hardcode_into_libs=yes 17406 ;; 17407 17408# No shared lib support for Linux oldld, aout, or coff. 17409linux*oldld* | linux*aout* | linux*coff*) 17410 dynamic_linker=no 17411 ;; 17412 17413# This must be Linux ELF. 17414linux*) 17415 version_type=linux 17416 need_lib_prefix=no 17417 need_version=no 17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17419 soname_spec='${libname}${release}${shared_ext}$major' 17420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17421 shlibpath_var=LD_LIBRARY_PATH 17422 shlibpath_overrides_runpath=no 17423 # This implies no fast_install, which is unacceptable. 17424 # Some rework will be needed to allow for fast_install 17425 # before this can be enabled. 17426 hardcode_into_libs=yes 17427 17428 # find out which ABI we are using 17429 libsuff= 17430 case "$host_cpu" in 17431 x86_64*|s390x*|powerpc64*) 17432 echo '#line 17432 "configure"' > conftest.$ac_ext 17433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17434 (eval $ac_compile) 2>&5 17435 ac_status=$? 17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17437 (exit $ac_status); }; then 17438 case `/usr/bin/file conftest.$ac_objext` in 17439 *64-bit*) 17440 libsuff=64 17441 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17442 ;; 17443 esac 17444 fi 17445 rm -rf conftest* 17446 ;; 17447 esac 17448 17449 # Append ld.so.conf contents to the search path 17450 if test -f /etc/ld.so.conf; then 17451 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17452 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17453 fi 17454 17455 # We used to test for /lib/ld.so.1 and disable shared libraries on 17456 # powerpc, because MkLinux only supported shared libraries with the 17457 # GNU dynamic linker. Since this was broken with cross compilers, 17458 # most powerpc-linux boxes support dynamic linking these days and 17459 # people can always --disable-shared, the test was removed, and we 17460 # assume the GNU/Linux dynamic linker is in use. 17461 dynamic_linker='GNU/Linux ld.so' 17462 ;; 17463 17464knetbsd*-gnu) 17465 version_type=linux 17466 need_lib_prefix=no 17467 need_version=no 17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17469 soname_spec='${libname}${release}${shared_ext}$major' 17470 shlibpath_var=LD_LIBRARY_PATH 17471 shlibpath_overrides_runpath=no 17472 hardcode_into_libs=yes 17473 dynamic_linker='GNU ld.so' 17474 ;; 17475 17476netbsd*) 17477 version_type=sunos 17478 need_lib_prefix=no 17479 need_version=no 17480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17483 dynamic_linker='NetBSD (a.out) ld.so' 17484 else 17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17486 soname_spec='${libname}${release}${shared_ext}$major' 17487 dynamic_linker='NetBSD ld.elf_so' 17488 fi 17489 shlibpath_var=LD_LIBRARY_PATH 17490 shlibpath_overrides_runpath=yes 17491 hardcode_into_libs=yes 17492 ;; 17493 17494newsos6) 17495 version_type=linux 17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17497 shlibpath_var=LD_LIBRARY_PATH 17498 shlibpath_overrides_runpath=yes 17499 ;; 17500 17501nto-qnx*) 17502 version_type=linux 17503 need_lib_prefix=no 17504 need_version=no 17505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17506 soname_spec='${libname}${release}${shared_ext}$major' 17507 shlibpath_var=LD_LIBRARY_PATH 17508 shlibpath_overrides_runpath=yes 17509 ;; 17510 17511openbsd*) 17512 version_type=sunos 17513 sys_lib_dlsearch_path_spec="/usr/lib" 17514 need_lib_prefix=no 17515 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17516 case $host_os in 17517 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17518 *) need_version=no ;; 17519 esac 17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17522 shlibpath_var=LD_LIBRARY_PATH 17523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17524 case $host_os in 17525 openbsd2.[89] | openbsd2.[89].*) 17526 shlibpath_overrides_runpath=no 17527 ;; 17528 *) 17529 shlibpath_overrides_runpath=yes 17530 ;; 17531 esac 17532 else 17533 shlibpath_overrides_runpath=yes 17534 fi 17535 ;; 17536 17537os2*) 17538 libname_spec='$name' 17539 shrext_cmds=".dll" 17540 need_lib_prefix=no 17541 library_names_spec='$libname${shared_ext} $libname.a' 17542 dynamic_linker='OS/2 ld.exe' 17543 shlibpath_var=LIBPATH 17544 ;; 17545 17546osf3* | osf4* | osf5*) 17547 version_type=osf 17548 need_lib_prefix=no 17549 need_version=no 17550 soname_spec='${libname}${release}${shared_ext}$major' 17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17552 shlibpath_var=LD_LIBRARY_PATH 17553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17554 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17555 ;; 17556 17557solaris*) 17558 version_type=linux 17559 need_lib_prefix=no 17560 need_version=no 17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17562 soname_spec='${libname}${release}${shared_ext}$major' 17563 shlibpath_var=LD_LIBRARY_PATH 17564 shlibpath_overrides_runpath=yes 17565 hardcode_into_libs=yes 17566 # ldd complains unless libraries are executable 17567 postinstall_cmds='chmod +x $lib' 17568 ;; 17569 17570sunos4*) 17571 version_type=sunos 17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17573 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17574 shlibpath_var=LD_LIBRARY_PATH 17575 shlibpath_overrides_runpath=yes 17576 if test "$with_gnu_ld" = yes; then 17577 need_lib_prefix=no 17578 fi 17579 need_version=yes 17580 ;; 17581 17582sysv4 | sysv4.3*) 17583 version_type=linux 17584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17585 soname_spec='${libname}${release}${shared_ext}$major' 17586 shlibpath_var=LD_LIBRARY_PATH 17587 case $host_vendor in 17588 sni) 17589 shlibpath_overrides_runpath=no 17590 need_lib_prefix=no 17591 export_dynamic_flag_spec='${wl}-Blargedynsym' 17592 runpath_var=LD_RUN_PATH 17593 ;; 17594 siemens) 17595 need_lib_prefix=no 17596 ;; 17597 motorola) 17598 need_lib_prefix=no 17599 need_version=no 17600 shlibpath_overrides_runpath=no 17601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17602 ;; 17603 esac 17604 ;; 17605 17606sysv4*MP*) 17607 if test -d /usr/nec ;then 17608 version_type=linux 17609 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17610 soname_spec='$libname${shared_ext}.$major' 17611 shlibpath_var=LD_LIBRARY_PATH 17612 fi 17613 ;; 17614 17615sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17616 version_type=freebsd-elf 17617 need_lib_prefix=no 17618 need_version=no 17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17620 soname_spec='${libname}${release}${shared_ext}$major' 17621 shlibpath_var=LD_LIBRARY_PATH 17622 hardcode_into_libs=yes 17623 if test "$with_gnu_ld" = yes; then 17624 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17625 shlibpath_overrides_runpath=no 17626 else 17627 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17628 shlibpath_overrides_runpath=yes 17629 case $host_os in 17630 sco3.2v5*) 17631 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17632 ;; 17633 esac 17634 fi 17635 sys_lib_dlsearch_path_spec='/usr/lib' 17636 ;; 17637 17638uts4*) 17639 version_type=linux 17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17641 soname_spec='${libname}${release}${shared_ext}$major' 17642 shlibpath_var=LD_LIBRARY_PATH 17643 ;; 17644 17645*) 17646 dynamic_linker=no 17647 ;; 17648esac 17649echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17650echo "${ECHO_T}$dynamic_linker" >&6 17651test "$dynamic_linker" = no && can_build_shared=no 17652 17653variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17654if test "$GCC" = yes; then 17655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17656fi 17657 17658echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17659echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17660hardcode_action_GCJ= 17661if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17662 test -n "$runpath_var_GCJ" || \ 17663 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17664 17665 # We can hardcode non-existant directories. 17666 if test "$hardcode_direct_GCJ" != no && 17667 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17668 # have to relink, otherwise we might link with an installed library 17669 # when we should be linking with a yet-to-be-installed one 17670 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17671 test "$hardcode_minus_L_GCJ" != no; then 17672 # Linking always hardcodes the temporary library directory. 17673 hardcode_action_GCJ=relink 17674 else 17675 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17676 hardcode_action_GCJ=immediate 17677 fi 17678else 17679 # We cannot hardcode anything, or else we can only hardcode existing 17680 # directories. 17681 hardcode_action_GCJ=unsupported 17682fi 17683echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17684echo "${ECHO_T}$hardcode_action_GCJ" >&6 17685 17686if test "$hardcode_action_GCJ" = relink; then 17687 # Fast installation is not supported 17688 enable_fast_install=no 17689elif test "$shlibpath_overrides_runpath" = yes || 17690 test "$enable_shared" = no; then 17691 # Fast installation is not necessary 17692 enable_fast_install=needless 17693fi 17694 17695 17696# The else clause should only fire when bootstrapping the 17697# libtool distribution, otherwise you forgot to ship ltmain.sh 17698# with your package, and you will get complaints that there are 17699# no rules to generate ltmain.sh. 17700if test -f "$ltmain"; then 17701 # See if we are running on zsh, and set the options which allow our commands through 17702 # without removal of \ escapes. 17703 if test -n "${ZSH_VERSION+set}" ; then 17704 setopt NO_GLOB_SUBST 17705 fi 17706 # Now quote all the things that may contain metacharacters while being 17707 # careful not to overquote the AC_SUBSTed values. We take copies of the 17708 # variables and quote the copies for generation of the libtool script. 17709 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17710 SED SHELL STRIP \ 17711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17713 deplibs_check_method reload_flag reload_cmds need_locks \ 17714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17715 lt_cv_sys_global_symbol_to_c_name_address \ 17716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17717 old_postinstall_cmds old_postuninstall_cmds \ 17718 compiler_GCJ \ 17719 CC_GCJ \ 17720 LD_GCJ \ 17721 lt_prog_compiler_wl_GCJ \ 17722 lt_prog_compiler_pic_GCJ \ 17723 lt_prog_compiler_static_GCJ \ 17724 lt_prog_compiler_no_builtin_flag_GCJ \ 17725 export_dynamic_flag_spec_GCJ \ 17726 thread_safe_flag_spec_GCJ \ 17727 whole_archive_flag_spec_GCJ \ 17728 enable_shared_with_static_runtimes_GCJ \ 17729 old_archive_cmds_GCJ \ 17730 old_archive_from_new_cmds_GCJ \ 17731 predep_objects_GCJ \ 17732 postdep_objects_GCJ \ 17733 predeps_GCJ \ 17734 postdeps_GCJ \ 17735 compiler_lib_search_path_GCJ \ 17736 archive_cmds_GCJ \ 17737 archive_expsym_cmds_GCJ \ 17738 postinstall_cmds_GCJ \ 17739 postuninstall_cmds_GCJ \ 17740 old_archive_from_expsyms_cmds_GCJ \ 17741 allow_undefined_flag_GCJ \ 17742 no_undefined_flag_GCJ \ 17743 export_symbols_cmds_GCJ \ 17744 hardcode_libdir_flag_spec_GCJ \ 17745 hardcode_libdir_flag_spec_ld_GCJ \ 17746 hardcode_libdir_separator_GCJ \ 17747 hardcode_automatic_GCJ \ 17748 module_cmds_GCJ \ 17749 module_expsym_cmds_GCJ \ 17750 lt_cv_prog_compiler_c_o_GCJ \ 17751 exclude_expsyms_GCJ \ 17752 include_expsyms_GCJ; do 17753 17754 case $var in 17755 old_archive_cmds_GCJ | \ 17756 old_archive_from_new_cmds_GCJ | \ 17757 archive_cmds_GCJ | \ 17758 archive_expsym_cmds_GCJ | \ 17759 module_cmds_GCJ | \ 17760 module_expsym_cmds_GCJ | \ 17761 old_archive_from_expsyms_cmds_GCJ | \ 17762 export_symbols_cmds_GCJ | \ 17763 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17764 postinstall_cmds | postuninstall_cmds | \ 17765 old_postinstall_cmds | old_postuninstall_cmds | \ 17766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17767 # Double-quote double-evaled strings. 17768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17769 ;; 17770 *) 17771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17772 ;; 17773 esac 17774 done 17775 17776 case $lt_echo in 17777 *'\$0 --fallback-echo"') 17778 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17779 ;; 17780 esac 17781 17782cfgfile="$ofile" 17783 17784 cat <<__EOF__ >> "$cfgfile" 17785# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17786 17787# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17788 17789# Shell to use when invoking shell scripts. 17790SHELL=$lt_SHELL 17791 17792# Whether or not to build shared libraries. 17793build_libtool_libs=$enable_shared 17794 17795# Whether or not to build static libraries. 17796build_old_libs=$enable_static 17797 17798# Whether or not to add -lc for building shared libraries. 17799build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17800 17801# Whether or not to disallow shared libs when runtime libs are static 17802allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17803 17804# Whether or not to optimize for fast installation. 17805fast_install=$enable_fast_install 17806 17807# The host system. 17808host_alias=$host_alias 17809host=$host 17810host_os=$host_os 17811 17812# The build system. 17813build_alias=$build_alias 17814build=$build 17815build_os=$build_os 17816 17817# An echo program that does not interpret backslashes. 17818echo=$lt_echo 17819 17820# The archiver. 17821AR=$lt_AR 17822AR_FLAGS=$lt_AR_FLAGS 17823 17824# A C compiler. 17825LTCC=$lt_LTCC 17826 17827# LTCC compiler flags. 17828LTCFLAGS=$lt_LTCFLAGS 17829 17830# A language-specific compiler. 17831CC=$lt_compiler_GCJ 17832 17833# Is the compiler the GNU C compiler? 17834with_gcc=$GCC_GCJ 17835 17836# An ERE matcher. 17837EGREP=$lt_EGREP 17838 17839# The linker used to build libraries. 17840LD=$lt_LD_GCJ 17841 17842# Whether we need hard or soft links. 17843LN_S=$lt_LN_S 17844 17845# A BSD-compatible nm program. 17846NM=$lt_NM 17847 17848# A symbol stripping program 17849STRIP=$lt_STRIP 17850 17851# Used to examine libraries when file_magic_cmd begins "file" 17852MAGIC_CMD=$MAGIC_CMD 17853 17854# Used on cygwin: DLL creation program. 17855DLLTOOL="$DLLTOOL" 17856 17857# Used on cygwin: object dumper. 17858OBJDUMP="$OBJDUMP" 17859 17860# Used on cygwin: assembler. 17861AS="$AS" 17862 17863# The name of the directory that contains temporary libtool files. 17864objdir=$objdir 17865 17866# How to create reloadable object files. 17867reload_flag=$lt_reload_flag 17868reload_cmds=$lt_reload_cmds 17869 17870# How to pass a linker flag through the compiler. 17871wl=$lt_lt_prog_compiler_wl_GCJ 17872 17873# Object file suffix (normally "o"). 17874objext="$ac_objext" 17875 17876# Old archive suffix (normally "a"). 17877libext="$libext" 17878 17879# Shared library suffix (normally ".so"). 17880shrext_cmds='$shrext_cmds' 17881 17882# Executable file suffix (normally ""). 17883exeext="$exeext" 17884 17885# Additional compiler flags for building library objects. 17886pic_flag=$lt_lt_prog_compiler_pic_GCJ 17887pic_mode=$pic_mode 17888 17889# What is the maximum length of a command? 17890max_cmd_len=$lt_cv_sys_max_cmd_len 17891 17892# Does compiler simultaneously support -c and -o options? 17893compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17894 17895# Must we lock files when doing compilation? 17896need_locks=$lt_need_locks 17897 17898# Do we need the lib prefix for modules? 17899need_lib_prefix=$need_lib_prefix 17900 17901# Do we need a version for libraries? 17902need_version=$need_version 17903 17904# Whether dlopen is supported. 17905dlopen_support=$enable_dlopen 17906 17907# Whether dlopen of programs is supported. 17908dlopen_self=$enable_dlopen_self 17909 17910# Whether dlopen of statically linked programs is supported. 17911dlopen_self_static=$enable_dlopen_self_static 17912 17913# Compiler flag to prevent dynamic linking. 17914link_static_flag=$lt_lt_prog_compiler_static_GCJ 17915 17916# Compiler flag to turn off builtin functions. 17917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17918 17919# Compiler flag to allow reflexive dlopens. 17920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17921 17922# Compiler flag to generate shared objects directly from archives. 17923whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17924 17925# Compiler flag to generate thread-safe objects. 17926thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17927 17928# Library versioning type. 17929version_type=$version_type 17930 17931# Format of library name prefix. 17932libname_spec=$lt_libname_spec 17933 17934# List of archive names. First name is the real one, the rest are links. 17935# The last name is the one that the linker finds with -lNAME. 17936library_names_spec=$lt_library_names_spec 17937 17938# The coded name of the library, if different from the real name. 17939soname_spec=$lt_soname_spec 17940 17941# Commands used to build and install an old-style archive. 17942RANLIB=$lt_RANLIB 17943old_archive_cmds=$lt_old_archive_cmds_GCJ 17944old_postinstall_cmds=$lt_old_postinstall_cmds 17945old_postuninstall_cmds=$lt_old_postuninstall_cmds 17946 17947# Create an old-style archive from a shared archive. 17948old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17949 17950# Create a temporary old-style archive to link instead of a shared archive. 17951old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17952 17953# Commands used to build and install a shared archive. 17954archive_cmds=$lt_archive_cmds_GCJ 17955archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17956postinstall_cmds=$lt_postinstall_cmds 17957postuninstall_cmds=$lt_postuninstall_cmds 17958 17959# Commands used to build a loadable module (assumed same as above if empty) 17960module_cmds=$lt_module_cmds_GCJ 17961module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17962 17963# Commands to strip libraries. 17964old_striplib=$lt_old_striplib 17965striplib=$lt_striplib 17966 17967# Dependencies to place before the objects being linked to create a 17968# shared library. 17969predep_objects=$lt_predep_objects_GCJ 17970 17971# Dependencies to place after the objects being linked to create a 17972# shared library. 17973postdep_objects=$lt_postdep_objects_GCJ 17974 17975# Dependencies to place before the objects being linked to create a 17976# shared library. 17977predeps=$lt_predeps_GCJ 17978 17979# Dependencies to place after the objects being linked to create a 17980# shared library. 17981postdeps=$lt_postdeps_GCJ 17982 17983# The library search path used internally by the compiler when linking 17984# a shared library. 17985compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17986 17987# Method to check whether dependent libraries are shared objects. 17988deplibs_check_method=$lt_deplibs_check_method 17989 17990# Command to use when deplibs_check_method == file_magic. 17991file_magic_cmd=$lt_file_magic_cmd 17992 17993# Flag that allows shared libraries with undefined symbols to be built. 17994allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17995 17996# Flag that forces no undefined symbols. 17997no_undefined_flag=$lt_no_undefined_flag_GCJ 17998 17999# Commands used to finish a libtool library installation in a directory. 18000finish_cmds=$lt_finish_cmds 18001 18002# Same as above, but a single script fragment to be evaled but not shown. 18003finish_eval=$lt_finish_eval 18004 18005# Take the output of nm and produce a listing of raw symbols and C names. 18006global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18007 18008# Transform the output of nm in a proper C declaration 18009global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18010 18011# Transform the output of nm in a C name address pair 18012global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18013 18014# This is the shared library runtime path variable. 18015runpath_var=$runpath_var 18016 18017# This is the shared library path variable. 18018shlibpath_var=$shlibpath_var 18019 18020# Is shlibpath searched before the hard-coded library search path? 18021shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18022 18023# How to hardcode a shared library path into an executable. 18024hardcode_action=$hardcode_action_GCJ 18025 18026# Whether we should hardcode library paths into libraries. 18027hardcode_into_libs=$hardcode_into_libs 18028 18029# Flag to hardcode \$libdir into a binary during linking. 18030# This must work even if \$libdir does not exist. 18031hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18032 18033# If ld is used when linking, flag to hardcode \$libdir into 18034# a binary during linking. This must work even if \$libdir does 18035# not exist. 18036hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18037 18038# Whether we need a single -rpath flag with a separated argument. 18039hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18040 18041# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18042# resulting binary. 18043hardcode_direct=$hardcode_direct_GCJ 18044 18045# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18046# resulting binary. 18047hardcode_minus_L=$hardcode_minus_L_GCJ 18048 18049# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18050# the resulting binary. 18051hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18052 18053# Set to yes if building a shared library automatically hardcodes DIR into the library 18054# and all subsequent libraries and executables linked against it. 18055hardcode_automatic=$hardcode_automatic_GCJ 18056 18057# Variables whose values should be saved in libtool wrapper scripts and 18058# restored at relink time. 18059variables_saved_for_relink="$variables_saved_for_relink" 18060 18061# Whether libtool must link a program against all its dependency libraries. 18062link_all_deplibs=$link_all_deplibs_GCJ 18063 18064# Compile-time system search path for libraries 18065sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18066 18067# Run-time system search path for libraries 18068sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18069 18070# Fix the shell variable \$srcfile for the compiler. 18071fix_srcfile_path="$fix_srcfile_path_GCJ" 18072 18073# Set to yes if exported symbols are required. 18074always_export_symbols=$always_export_symbols_GCJ 18075 18076# The commands to list exported symbols. 18077export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18078 18079# The commands to extract the exported symbol list from a shared archive. 18080extract_expsyms_cmds=$lt_extract_expsyms_cmds 18081 18082# Symbols that should not be listed in the preloaded symbols. 18083exclude_expsyms=$lt_exclude_expsyms_GCJ 18084 18085# Symbols that must always be exported. 18086include_expsyms=$lt_include_expsyms_GCJ 18087 18088# ### END LIBTOOL TAG CONFIG: $tagname 18089 18090__EOF__ 18091 18092 18093else 18094 # If there is no Makefile yet, we rely on a make rule to execute 18095 # `config.status --recheck' to rerun these tests and create the 18096 # libtool script then. 18097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18098 if test -f "$ltmain_in"; then 18099 test -f Makefile && make "$ltmain" 18100 fi 18101fi 18102 18103 18104ac_ext=c 18105ac_cpp='$CPP $CPPFLAGS' 18106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18108ac_compiler_gnu=$ac_cv_c_compiler_gnu 18109 18110CC="$lt_save_CC" 18111 18112 else 18113 tagname="" 18114 fi 18115 ;; 18116 18117 RC) 18118 18119 18120 18121# Source file extension for RC test sources. 18122ac_ext=rc 18123 18124# Object file extension for compiled RC test sources. 18125objext=o 18126objext_RC=$objext 18127 18128# Code to be used in simple compile tests 18129lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18130 18131# Code to be used in simple link tests 18132lt_simple_link_test_code="$lt_simple_compile_test_code" 18133 18134# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18135 18136# If no C compiler was specified, use CC. 18137LTCC=${LTCC-"$CC"} 18138 18139# If no C compiler flags were specified, use CFLAGS. 18140LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18141 18142# Allow CC to be a program name with arguments. 18143compiler=$CC 18144 18145 18146# save warnings/boilerplate of simple test code 18147ac_outfile=conftest.$ac_objext 18148printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18149eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18150_lt_compiler_boilerplate=`cat conftest.err` 18151$rm conftest* 18152 18153ac_outfile=conftest.$ac_objext 18154printf "$lt_simple_link_test_code" >conftest.$ac_ext 18155eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18156_lt_linker_boilerplate=`cat conftest.err` 18157$rm conftest* 18158 18159 18160# Allow CC to be a program name with arguments. 18161lt_save_CC="$CC" 18162CC=${RC-"windres"} 18163compiler=$CC 18164compiler_RC=$CC 18165for cc_temp in $compiler""; do 18166 case $cc_temp in 18167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18169 \-*) ;; 18170 *) break;; 18171 esac 18172done 18173cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18174 18175lt_cv_prog_compiler_c_o_RC=yes 18176 18177# The else clause should only fire when bootstrapping the 18178# libtool distribution, otherwise you forgot to ship ltmain.sh 18179# with your package, and you will get complaints that there are 18180# no rules to generate ltmain.sh. 18181if test -f "$ltmain"; then 18182 # See if we are running on zsh, and set the options which allow our commands through 18183 # without removal of \ escapes. 18184 if test -n "${ZSH_VERSION+set}" ; then 18185 setopt NO_GLOB_SUBST 18186 fi 18187 # Now quote all the things that may contain metacharacters while being 18188 # careful not to overquote the AC_SUBSTed values. We take copies of the 18189 # variables and quote the copies for generation of the libtool script. 18190 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18191 SED SHELL STRIP \ 18192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18194 deplibs_check_method reload_flag reload_cmds need_locks \ 18195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18196 lt_cv_sys_global_symbol_to_c_name_address \ 18197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18198 old_postinstall_cmds old_postuninstall_cmds \ 18199 compiler_RC \ 18200 CC_RC \ 18201 LD_RC \ 18202 lt_prog_compiler_wl_RC \ 18203 lt_prog_compiler_pic_RC \ 18204 lt_prog_compiler_static_RC \ 18205 lt_prog_compiler_no_builtin_flag_RC \ 18206 export_dynamic_flag_spec_RC \ 18207 thread_safe_flag_spec_RC \ 18208 whole_archive_flag_spec_RC \ 18209 enable_shared_with_static_runtimes_RC \ 18210 old_archive_cmds_RC \ 18211 old_archive_from_new_cmds_RC \ 18212 predep_objects_RC \ 18213 postdep_objects_RC \ 18214 predeps_RC \ 18215 postdeps_RC \ 18216 compiler_lib_search_path_RC \ 18217 archive_cmds_RC \ 18218 archive_expsym_cmds_RC \ 18219 postinstall_cmds_RC \ 18220 postuninstall_cmds_RC \ 18221 old_archive_from_expsyms_cmds_RC \ 18222 allow_undefined_flag_RC \ 18223 no_undefined_flag_RC \ 18224 export_symbols_cmds_RC \ 18225 hardcode_libdir_flag_spec_RC \ 18226 hardcode_libdir_flag_spec_ld_RC \ 18227 hardcode_libdir_separator_RC \ 18228 hardcode_automatic_RC \ 18229 module_cmds_RC \ 18230 module_expsym_cmds_RC \ 18231 lt_cv_prog_compiler_c_o_RC \ 18232 exclude_expsyms_RC \ 18233 include_expsyms_RC; do 18234 18235 case $var in 18236 old_archive_cmds_RC | \ 18237 old_archive_from_new_cmds_RC | \ 18238 archive_cmds_RC | \ 18239 archive_expsym_cmds_RC | \ 18240 module_cmds_RC | \ 18241 module_expsym_cmds_RC | \ 18242 old_archive_from_expsyms_cmds_RC | \ 18243 export_symbols_cmds_RC | \ 18244 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18245 postinstall_cmds | postuninstall_cmds | \ 18246 old_postinstall_cmds | old_postuninstall_cmds | \ 18247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18248 # Double-quote double-evaled strings. 18249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18250 ;; 18251 *) 18252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18253 ;; 18254 esac 18255 done 18256 18257 case $lt_echo in 18258 *'\$0 --fallback-echo"') 18259 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18260 ;; 18261 esac 18262 18263cfgfile="$ofile" 18264 18265 cat <<__EOF__ >> "$cfgfile" 18266# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18267 18268# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18269 18270# Shell to use when invoking shell scripts. 18271SHELL=$lt_SHELL 18272 18273# Whether or not to build shared libraries. 18274build_libtool_libs=$enable_shared 18275 18276# Whether or not to build static libraries. 18277build_old_libs=$enable_static 18278 18279# Whether or not to add -lc for building shared libraries. 18280build_libtool_need_lc=$archive_cmds_need_lc_RC 18281 18282# Whether or not to disallow shared libs when runtime libs are static 18283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18284 18285# Whether or not to optimize for fast installation. 18286fast_install=$enable_fast_install 18287 18288# The host system. 18289host_alias=$host_alias 18290host=$host 18291host_os=$host_os 18292 18293# The build system. 18294build_alias=$build_alias 18295build=$build 18296build_os=$build_os 18297 18298# An echo program that does not interpret backslashes. 18299echo=$lt_echo 18300 18301# The archiver. 18302AR=$lt_AR 18303AR_FLAGS=$lt_AR_FLAGS 18304 18305# A C compiler. 18306LTCC=$lt_LTCC 18307 18308# LTCC compiler flags. 18309LTCFLAGS=$lt_LTCFLAGS 18310 18311# A language-specific compiler. 18312CC=$lt_compiler_RC 18313 18314# Is the compiler the GNU C compiler? 18315with_gcc=$GCC_RC 18316 18317# An ERE matcher. 18318EGREP=$lt_EGREP 18319 18320# The linker used to build libraries. 18321LD=$lt_LD_RC 18322 18323# Whether we need hard or soft links. 18324LN_S=$lt_LN_S 18325 18326# A BSD-compatible nm program. 18327NM=$lt_NM 18328 18329# A symbol stripping program 18330STRIP=$lt_STRIP 18331 18332# Used to examine libraries when file_magic_cmd begins "file" 18333MAGIC_CMD=$MAGIC_CMD 18334 18335# Used on cygwin: DLL creation program. 18336DLLTOOL="$DLLTOOL" 18337 18338# Used on cygwin: object dumper. 18339OBJDUMP="$OBJDUMP" 18340 18341# Used on cygwin: assembler. 18342AS="$AS" 18343 18344# The name of the directory that contains temporary libtool files. 18345objdir=$objdir 18346 18347# How to create reloadable object files. 18348reload_flag=$lt_reload_flag 18349reload_cmds=$lt_reload_cmds 18350 18351# How to pass a linker flag through the compiler. 18352wl=$lt_lt_prog_compiler_wl_RC 18353 18354# Object file suffix (normally "o"). 18355objext="$ac_objext" 18356 18357# Old archive suffix (normally "a"). 18358libext="$libext" 18359 18360# Shared library suffix (normally ".so"). 18361shrext_cmds='$shrext_cmds' 18362 18363# Executable file suffix (normally ""). 18364exeext="$exeext" 18365 18366# Additional compiler flags for building library objects. 18367pic_flag=$lt_lt_prog_compiler_pic_RC 18368pic_mode=$pic_mode 18369 18370# What is the maximum length of a command? 18371max_cmd_len=$lt_cv_sys_max_cmd_len 18372 18373# Does compiler simultaneously support -c and -o options? 18374compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18375 18376# Must we lock files when doing compilation? 18377need_locks=$lt_need_locks 18378 18379# Do we need the lib prefix for modules? 18380need_lib_prefix=$need_lib_prefix 18381 18382# Do we need a version for libraries? 18383need_version=$need_version 18384 18385# Whether dlopen is supported. 18386dlopen_support=$enable_dlopen 18387 18388# Whether dlopen of programs is supported. 18389dlopen_self=$enable_dlopen_self 18390 18391# Whether dlopen of statically linked programs is supported. 18392dlopen_self_static=$enable_dlopen_self_static 18393 18394# Compiler flag to prevent dynamic linking. 18395link_static_flag=$lt_lt_prog_compiler_static_RC 18396 18397# Compiler flag to turn off builtin functions. 18398no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18399 18400# Compiler flag to allow reflexive dlopens. 18401export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18402 18403# Compiler flag to generate shared objects directly from archives. 18404whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18405 18406# Compiler flag to generate thread-safe objects. 18407thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18408 18409# Library versioning type. 18410version_type=$version_type 18411 18412# Format of library name prefix. 18413libname_spec=$lt_libname_spec 18414 18415# List of archive names. First name is the real one, the rest are links. 18416# The last name is the one that the linker finds with -lNAME. 18417library_names_spec=$lt_library_names_spec 18418 18419# The coded name of the library, if different from the real name. 18420soname_spec=$lt_soname_spec 18421 18422# Commands used to build and install an old-style archive. 18423RANLIB=$lt_RANLIB 18424old_archive_cmds=$lt_old_archive_cmds_RC 18425old_postinstall_cmds=$lt_old_postinstall_cmds 18426old_postuninstall_cmds=$lt_old_postuninstall_cmds 18427 18428# Create an old-style archive from a shared archive. 18429old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18430 18431# Create a temporary old-style archive to link instead of a shared archive. 18432old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18433 18434# Commands used to build and install a shared archive. 18435archive_cmds=$lt_archive_cmds_RC 18436archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18437postinstall_cmds=$lt_postinstall_cmds 18438postuninstall_cmds=$lt_postuninstall_cmds 18439 18440# Commands used to build a loadable module (assumed same as above if empty) 18441module_cmds=$lt_module_cmds_RC 18442module_expsym_cmds=$lt_module_expsym_cmds_RC 18443 18444# Commands to strip libraries. 18445old_striplib=$lt_old_striplib 18446striplib=$lt_striplib 18447 18448# Dependencies to place before the objects being linked to create a 18449# shared library. 18450predep_objects=$lt_predep_objects_RC 18451 18452# Dependencies to place after the objects being linked to create a 18453# shared library. 18454postdep_objects=$lt_postdep_objects_RC 18455 18456# Dependencies to place before the objects being linked to create a 18457# shared library. 18458predeps=$lt_predeps_RC 18459 18460# Dependencies to place after the objects being linked to create a 18461# shared library. 18462postdeps=$lt_postdeps_RC 18463 18464# The library search path used internally by the compiler when linking 18465# a shared library. 18466compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18467 18468# Method to check whether dependent libraries are shared objects. 18469deplibs_check_method=$lt_deplibs_check_method 18470 18471# Command to use when deplibs_check_method == file_magic. 18472file_magic_cmd=$lt_file_magic_cmd 18473 18474# Flag that allows shared libraries with undefined symbols to be built. 18475allow_undefined_flag=$lt_allow_undefined_flag_RC 18476 18477# Flag that forces no undefined symbols. 18478no_undefined_flag=$lt_no_undefined_flag_RC 18479 18480# Commands used to finish a libtool library installation in a directory. 18481finish_cmds=$lt_finish_cmds 18482 18483# Same as above, but a single script fragment to be evaled but not shown. 18484finish_eval=$lt_finish_eval 18485 18486# Take the output of nm and produce a listing of raw symbols and C names. 18487global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18488 18489# Transform the output of nm in a proper C declaration 18490global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18491 18492# Transform the output of nm in a C name address pair 18493global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18494 18495# This is the shared library runtime path variable. 18496runpath_var=$runpath_var 18497 18498# This is the shared library path variable. 18499shlibpath_var=$shlibpath_var 18500 18501# Is shlibpath searched before the hard-coded library search path? 18502shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18503 18504# How to hardcode a shared library path into an executable. 18505hardcode_action=$hardcode_action_RC 18506 18507# Whether we should hardcode library paths into libraries. 18508hardcode_into_libs=$hardcode_into_libs 18509 18510# Flag to hardcode \$libdir into a binary during linking. 18511# This must work even if \$libdir does not exist. 18512hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18513 18514# If ld is used when linking, flag to hardcode \$libdir into 18515# a binary during linking. This must work even if \$libdir does 18516# not exist. 18517hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18518 18519# Whether we need a single -rpath flag with a separated argument. 18520hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18521 18522# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18523# resulting binary. 18524hardcode_direct=$hardcode_direct_RC 18525 18526# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18527# resulting binary. 18528hardcode_minus_L=$hardcode_minus_L_RC 18529 18530# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18531# the resulting binary. 18532hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18533 18534# Set to yes if building a shared library automatically hardcodes DIR into the library 18535# and all subsequent libraries and executables linked against it. 18536hardcode_automatic=$hardcode_automatic_RC 18537 18538# Variables whose values should be saved in libtool wrapper scripts and 18539# restored at relink time. 18540variables_saved_for_relink="$variables_saved_for_relink" 18541 18542# Whether libtool must link a program against all its dependency libraries. 18543link_all_deplibs=$link_all_deplibs_RC 18544 18545# Compile-time system search path for libraries 18546sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18547 18548# Run-time system search path for libraries 18549sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18550 18551# Fix the shell variable \$srcfile for the compiler. 18552fix_srcfile_path="$fix_srcfile_path_RC" 18553 18554# Set to yes if exported symbols are required. 18555always_export_symbols=$always_export_symbols_RC 18556 18557# The commands to list exported symbols. 18558export_symbols_cmds=$lt_export_symbols_cmds_RC 18559 18560# The commands to extract the exported symbol list from a shared archive. 18561extract_expsyms_cmds=$lt_extract_expsyms_cmds 18562 18563# Symbols that should not be listed in the preloaded symbols. 18564exclude_expsyms=$lt_exclude_expsyms_RC 18565 18566# Symbols that must always be exported. 18567include_expsyms=$lt_include_expsyms_RC 18568 18569# ### END LIBTOOL TAG CONFIG: $tagname 18570 18571__EOF__ 18572 18573 18574else 18575 # If there is no Makefile yet, we rely on a make rule to execute 18576 # `config.status --recheck' to rerun these tests and create the 18577 # libtool script then. 18578 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18579 if test -f "$ltmain_in"; then 18580 test -f Makefile && make "$ltmain" 18581 fi 18582fi 18583 18584 18585ac_ext=c 18586ac_cpp='$CPP $CPPFLAGS' 18587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18589ac_compiler_gnu=$ac_cv_c_compiler_gnu 18590 18591CC="$lt_save_CC" 18592 18593 ;; 18594 18595 *) 18596 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18597echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18598 { (exit 1); exit 1; }; } 18599 ;; 18600 esac 18601 18602 # Append the new tag name to the list of available tags. 18603 if test -n "$tagname" ; then 18604 available_tags="$available_tags $tagname" 18605 fi 18606 fi 18607 done 18608 IFS="$lt_save_ifs" 18609 18610 # Now substitute the updated list of available tags. 18611 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18612 mv "${ofile}T" "$ofile" 18613 chmod +x "$ofile" 18614 else 18615 rm -f "${ofile}T" 18616 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18617echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18618 { (exit 1); exit 1; }; } 18619 fi 18620fi 18621 18622 18623 18624# This can be used to rebuild libtool when needed 18625LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18626 18627# Always use our own libtool. 18628LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18629 18630# Prevent multiple expansion 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651ac_ext=c 18652ac_cpp='$CPP $CPPFLAGS' 18653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18655ac_compiler_gnu=$ac_cv_c_compiler_gnu 18656if test -n "$ac_tool_prefix"; then 18657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 18658set dummy ${ac_tool_prefix}gcc; ac_word=$2 18659echo "$as_me:$LINENO: checking for $ac_word" >&5 18660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18661if test "${ac_cv_prog_CC+set}" = set; then 18662 echo $ECHO_N "(cached) $ECHO_C" >&6 18663else 18664 if test -n "$CC"; then 18665 ac_cv_prog_CC="$CC" # Let the user override the test. 18666else 18667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18668for as_dir in $PATH 18669do 18670 IFS=$as_save_IFS 18671 test -z "$as_dir" && as_dir=. 18672 for ac_exec_ext in '' $ac_executable_extensions; do 18673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18674 ac_cv_prog_CC="${ac_tool_prefix}gcc" 18675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18676 break 2 18677 fi 18678done 18679done 18680 18681fi 18682fi 18683CC=$ac_cv_prog_CC 18684if test -n "$CC"; then 18685 echo "$as_me:$LINENO: result: $CC" >&5 18686echo "${ECHO_T}$CC" >&6 18687else 18688 echo "$as_me:$LINENO: result: no" >&5 18689echo "${ECHO_T}no" >&6 18690fi 18691 18692fi 18693if test -z "$ac_cv_prog_CC"; then 18694 ac_ct_CC=$CC 18695 # Extract the first word of "gcc", so it can be a program name with args. 18696set dummy gcc; ac_word=$2 18697echo "$as_me:$LINENO: checking for $ac_word" >&5 18698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18700 echo $ECHO_N "(cached) $ECHO_C" >&6 18701else 18702 if test -n "$ac_ct_CC"; then 18703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18704else 18705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18706for as_dir in $PATH 18707do 18708 IFS=$as_save_IFS 18709 test -z "$as_dir" && as_dir=. 18710 for ac_exec_ext in '' $ac_executable_extensions; do 18711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18712 ac_cv_prog_ac_ct_CC="gcc" 18713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18714 break 2 18715 fi 18716done 18717done 18718 18719fi 18720fi 18721ac_ct_CC=$ac_cv_prog_ac_ct_CC 18722if test -n "$ac_ct_CC"; then 18723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18724echo "${ECHO_T}$ac_ct_CC" >&6 18725else 18726 echo "$as_me:$LINENO: result: no" >&5 18727echo "${ECHO_T}no" >&6 18728fi 18729 18730 CC=$ac_ct_CC 18731else 18732 CC="$ac_cv_prog_CC" 18733fi 18734 18735if test -z "$CC"; then 18736 if test -n "$ac_tool_prefix"; then 18737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18738set dummy ${ac_tool_prefix}cc; ac_word=$2 18739echo "$as_me:$LINENO: checking for $ac_word" >&5 18740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18741if test "${ac_cv_prog_CC+set}" = set; then 18742 echo $ECHO_N "(cached) $ECHO_C" >&6 18743else 18744 if test -n "$CC"; then 18745 ac_cv_prog_CC="$CC" # Let the user override the test. 18746else 18747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18748for as_dir in $PATH 18749do 18750 IFS=$as_save_IFS 18751 test -z "$as_dir" && as_dir=. 18752 for ac_exec_ext in '' $ac_executable_extensions; do 18753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18754 ac_cv_prog_CC="${ac_tool_prefix}cc" 18755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18756 break 2 18757 fi 18758done 18759done 18760 18761fi 18762fi 18763CC=$ac_cv_prog_CC 18764if test -n "$CC"; then 18765 echo "$as_me:$LINENO: result: $CC" >&5 18766echo "${ECHO_T}$CC" >&6 18767else 18768 echo "$as_me:$LINENO: result: no" >&5 18769echo "${ECHO_T}no" >&6 18770fi 18771 18772fi 18773if test -z "$ac_cv_prog_CC"; then 18774 ac_ct_CC=$CC 18775 # Extract the first word of "cc", so it can be a program name with args. 18776set dummy cc; ac_word=$2 18777echo "$as_me:$LINENO: checking for $ac_word" >&5 18778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18779if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18780 echo $ECHO_N "(cached) $ECHO_C" >&6 18781else 18782 if test -n "$ac_ct_CC"; then 18783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18784else 18785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18786for as_dir in $PATH 18787do 18788 IFS=$as_save_IFS 18789 test -z "$as_dir" && as_dir=. 18790 for ac_exec_ext in '' $ac_executable_extensions; do 18791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18792 ac_cv_prog_ac_ct_CC="cc" 18793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18794 break 2 18795 fi 18796done 18797done 18798 18799fi 18800fi 18801ac_ct_CC=$ac_cv_prog_ac_ct_CC 18802if test -n "$ac_ct_CC"; then 18803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18804echo "${ECHO_T}$ac_ct_CC" >&6 18805else 18806 echo "$as_me:$LINENO: result: no" >&5 18807echo "${ECHO_T}no" >&6 18808fi 18809 18810 CC=$ac_ct_CC 18811else 18812 CC="$ac_cv_prog_CC" 18813fi 18814 18815fi 18816if test -z "$CC"; then 18817 # Extract the first word of "cc", so it can be a program name with args. 18818set dummy cc; ac_word=$2 18819echo "$as_me:$LINENO: checking for $ac_word" >&5 18820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18821if test "${ac_cv_prog_CC+set}" = set; then 18822 echo $ECHO_N "(cached) $ECHO_C" >&6 18823else 18824 if test -n "$CC"; then 18825 ac_cv_prog_CC="$CC" # Let the user override the test. 18826else 18827 ac_prog_rejected=no 18828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18829for as_dir in $PATH 18830do 18831 IFS=$as_save_IFS 18832 test -z "$as_dir" && as_dir=. 18833 for ac_exec_ext in '' $ac_executable_extensions; do 18834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 18836 ac_prog_rejected=yes 18837 continue 18838 fi 18839 ac_cv_prog_CC="cc" 18840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18841 break 2 18842 fi 18843done 18844done 18845 18846if test $ac_prog_rejected = yes; then 18847 # We found a bogon in the path, so make sure we never use it. 18848 set dummy $ac_cv_prog_CC 18849 shift 18850 if test $# != 0; then 18851 # We chose a different compiler from the bogus one. 18852 # However, it has the same basename, so the bogon will be chosen 18853 # first if we set CC to just the basename; use the full file name. 18854 shift 18855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 18856 fi 18857fi 18858fi 18859fi 18860CC=$ac_cv_prog_CC 18861if test -n "$CC"; then 18862 echo "$as_me:$LINENO: result: $CC" >&5 18863echo "${ECHO_T}$CC" >&6 18864else 18865 echo "$as_me:$LINENO: result: no" >&5 18866echo "${ECHO_T}no" >&6 18867fi 18868 18869fi 18870if test -z "$CC"; then 18871 if test -n "$ac_tool_prefix"; then 18872 for ac_prog in cl 18873 do 18874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18875set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18876echo "$as_me:$LINENO: checking for $ac_word" >&5 18877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18878if test "${ac_cv_prog_CC+set}" = set; then 18879 echo $ECHO_N "(cached) $ECHO_C" >&6 18880else 18881 if test -n "$CC"; then 18882 ac_cv_prog_CC="$CC" # Let the user override the test. 18883else 18884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18885for as_dir in $PATH 18886do 18887 IFS=$as_save_IFS 18888 test -z "$as_dir" && as_dir=. 18889 for ac_exec_ext in '' $ac_executable_extensions; do 18890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 18892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18893 break 2 18894 fi 18895done 18896done 18897 18898fi 18899fi 18900CC=$ac_cv_prog_CC 18901if test -n "$CC"; then 18902 echo "$as_me:$LINENO: result: $CC" >&5 18903echo "${ECHO_T}$CC" >&6 18904else 18905 echo "$as_me:$LINENO: result: no" >&5 18906echo "${ECHO_T}no" >&6 18907fi 18908 18909 test -n "$CC" && break 18910 done 18911fi 18912if test -z "$CC"; then 18913 ac_ct_CC=$CC 18914 for ac_prog in cl 18915do 18916 # Extract the first word of "$ac_prog", so it can be a program name with args. 18917set dummy $ac_prog; ac_word=$2 18918echo "$as_me:$LINENO: checking for $ac_word" >&5 18919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18920if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18921 echo $ECHO_N "(cached) $ECHO_C" >&6 18922else 18923 if test -n "$ac_ct_CC"; then 18924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18925else 18926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18927for as_dir in $PATH 18928do 18929 IFS=$as_save_IFS 18930 test -z "$as_dir" && as_dir=. 18931 for ac_exec_ext in '' $ac_executable_extensions; do 18932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18933 ac_cv_prog_ac_ct_CC="$ac_prog" 18934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18935 break 2 18936 fi 18937done 18938done 18939 18940fi 18941fi 18942ac_ct_CC=$ac_cv_prog_ac_ct_CC 18943if test -n "$ac_ct_CC"; then 18944 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18945echo "${ECHO_T}$ac_ct_CC" >&6 18946else 18947 echo "$as_me:$LINENO: result: no" >&5 18948echo "${ECHO_T}no" >&6 18949fi 18950 18951 test -n "$ac_ct_CC" && break 18952done 18953 18954 CC=$ac_ct_CC 18955fi 18956 18957fi 18958 18959 18960test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 18961See \`config.log' for more details." >&5 18962echo "$as_me: error: no acceptable C compiler found in \$PATH 18963See \`config.log' for more details." >&2;} 18964 { (exit 1); exit 1; }; } 18965 18966# Provide some information about the compiler. 18967echo "$as_me:$LINENO:" \ 18968 "checking for C compiler version" >&5 18969ac_compiler=`set X $ac_compile; echo $2` 18970{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 18971 (eval $ac_compiler --version </dev/null >&5) 2>&5 18972 ac_status=$? 18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18974 (exit $ac_status); } 18975{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 18976 (eval $ac_compiler -v </dev/null >&5) 2>&5 18977 ac_status=$? 18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18979 (exit $ac_status); } 18980{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 18981 (eval $ac_compiler -V </dev/null >&5) 2>&5 18982 ac_status=$? 18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18984 (exit $ac_status); } 18985 18986echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 18987echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 18988if test "${ac_cv_c_compiler_gnu+set}" = set; then 18989 echo $ECHO_N "(cached) $ECHO_C" >&6 18990else 18991 cat >conftest.$ac_ext <<_ACEOF 18992/* confdefs.h. */ 18993_ACEOF 18994cat confdefs.h >>conftest.$ac_ext 18995cat >>conftest.$ac_ext <<_ACEOF 18996/* end confdefs.h. */ 18997 18998int 18999main () 19000{ 19001#ifndef __GNUC__ 19002 choke me 19003#endif 19004 19005 ; 19006 return 0; 19007} 19008_ACEOF 19009rm -f conftest.$ac_objext 19010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19011 (eval $ac_compile) 2>conftest.er1 19012 ac_status=$? 19013 grep -v '^ *+' conftest.er1 >conftest.err 19014 rm -f conftest.er1 19015 cat conftest.err >&5 19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19017 (exit $ac_status); } && 19018 { ac_try='test -z "$ac_c_werror_flag" 19019 || test ! -s conftest.err' 19020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19021 (eval $ac_try) 2>&5 19022 ac_status=$? 19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19024 (exit $ac_status); }; } && 19025 { ac_try='test -s conftest.$ac_objext' 19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19027 (eval $ac_try) 2>&5 19028 ac_status=$? 19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19030 (exit $ac_status); }; }; then 19031 ac_compiler_gnu=yes 19032else 19033 echo "$as_me: failed program was:" >&5 19034sed 's/^/| /' conftest.$ac_ext >&5 19035 19036ac_compiler_gnu=no 19037fi 19038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19039ac_cv_c_compiler_gnu=$ac_compiler_gnu 19040 19041fi 19042echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19043echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 19044GCC=`test $ac_compiler_gnu = yes && echo yes` 19045ac_test_CFLAGS=${CFLAGS+set} 19046ac_save_CFLAGS=$CFLAGS 19047CFLAGS="-g" 19048echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19049echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 19050if test "${ac_cv_prog_cc_g+set}" = set; then 19051 echo $ECHO_N "(cached) $ECHO_C" >&6 19052else 19053 cat >conftest.$ac_ext <<_ACEOF 19054/* confdefs.h. */ 19055_ACEOF 19056cat confdefs.h >>conftest.$ac_ext 19057cat >>conftest.$ac_ext <<_ACEOF 19058/* end confdefs.h. */ 19059 19060int 19061main () 19062{ 19063 19064 ; 19065 return 0; 19066} 19067_ACEOF 19068rm -f conftest.$ac_objext 19069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19070 (eval $ac_compile) 2>conftest.er1 19071 ac_status=$? 19072 grep -v '^ *+' conftest.er1 >conftest.err 19073 rm -f conftest.er1 19074 cat conftest.err >&5 19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19076 (exit $ac_status); } && 19077 { ac_try='test -z "$ac_c_werror_flag" 19078 || test ! -s conftest.err' 19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19080 (eval $ac_try) 2>&5 19081 ac_status=$? 19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19083 (exit $ac_status); }; } && 19084 { ac_try='test -s conftest.$ac_objext' 19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19086 (eval $ac_try) 2>&5 19087 ac_status=$? 19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19089 (exit $ac_status); }; }; then 19090 ac_cv_prog_cc_g=yes 19091else 19092 echo "$as_me: failed program was:" >&5 19093sed 's/^/| /' conftest.$ac_ext >&5 19094 19095ac_cv_prog_cc_g=no 19096fi 19097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19098fi 19099echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19100echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 19101if test "$ac_test_CFLAGS" = set; then 19102 CFLAGS=$ac_save_CFLAGS 19103elif test $ac_cv_prog_cc_g = yes; then 19104 if test "$GCC" = yes; then 19105 CFLAGS="-g -O2" 19106 else 19107 CFLAGS="-g" 19108 fi 19109else 19110 if test "$GCC" = yes; then 19111 CFLAGS="-O2" 19112 else 19113 CFLAGS= 19114 fi 19115fi 19116echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 19117echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 19118if test "${ac_cv_prog_cc_stdc+set}" = set; then 19119 echo $ECHO_N "(cached) $ECHO_C" >&6 19120else 19121 ac_cv_prog_cc_stdc=no 19122ac_save_CC=$CC 19123cat >conftest.$ac_ext <<_ACEOF 19124/* confdefs.h. */ 19125_ACEOF 19126cat confdefs.h >>conftest.$ac_ext 19127cat >>conftest.$ac_ext <<_ACEOF 19128/* end confdefs.h. */ 19129#include <stdarg.h> 19130#include <stdio.h> 19131#include <sys/types.h> 19132#include <sys/stat.h> 19133/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19134struct buf { int x; }; 19135FILE * (*rcsopen) (struct buf *, struct stat *, int); 19136static char *e (p, i) 19137 char **p; 19138 int i; 19139{ 19140 return p[i]; 19141} 19142static char *f (char * (*g) (char **, int), char **p, ...) 19143{ 19144 char *s; 19145 va_list v; 19146 va_start (v,p); 19147 s = g (p, va_arg (v,int)); 19148 va_end (v); 19149 return s; 19150} 19151 19152/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19153 function prototypes and stuff, but not '\xHH' hex character constants. 19154 These don't provoke an error unfortunately, instead are silently treated 19155 as 'x'. The following induces an error, until -std1 is added to get 19156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19157 array size at least. It's necessary to write '\x00'==0 to get something 19158 that's true only with -std1. */ 19159int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19160 19161int test (int i, double x); 19162struct s1 {int (*f) (int a);}; 19163struct s2 {int (*f) (double a);}; 19164int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19165int argc; 19166char **argv; 19167int 19168main () 19169{ 19170return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19171 ; 19172 return 0; 19173} 19174_ACEOF 19175# Don't try gcc -ansi; that turns off useful extensions and 19176# breaks some systems' header files. 19177# AIX -qlanglvl=ansi 19178# Ultrix and OSF/1 -std1 19179# HP-UX 10.20 and later -Ae 19180# HP-UX older versions -Aa -D_HPUX_SOURCE 19181# SVR4 -Xc -D__EXTENSIONS__ 19182for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19183do 19184 CC="$ac_save_CC $ac_arg" 19185 rm -f conftest.$ac_objext 19186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19187 (eval $ac_compile) 2>conftest.er1 19188 ac_status=$? 19189 grep -v '^ *+' conftest.er1 >conftest.err 19190 rm -f conftest.er1 19191 cat conftest.err >&5 19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19193 (exit $ac_status); } && 19194 { ac_try='test -z "$ac_c_werror_flag" 19195 || test ! -s conftest.err' 19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19197 (eval $ac_try) 2>&5 19198 ac_status=$? 19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19200 (exit $ac_status); }; } && 19201 { ac_try='test -s conftest.$ac_objext' 19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19203 (eval $ac_try) 2>&5 19204 ac_status=$? 19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19206 (exit $ac_status); }; }; then 19207 ac_cv_prog_cc_stdc=$ac_arg 19208break 19209else 19210 echo "$as_me: failed program was:" >&5 19211sed 's/^/| /' conftest.$ac_ext >&5 19212 19213fi 19214rm -f conftest.err conftest.$ac_objext 19215done 19216rm -f conftest.$ac_ext conftest.$ac_objext 19217CC=$ac_save_CC 19218 19219fi 19220 19221case "x$ac_cv_prog_cc_stdc" in 19222 x|xno) 19223 echo "$as_me:$LINENO: result: none needed" >&5 19224echo "${ECHO_T}none needed" >&6 ;; 19225 *) 19226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 19227echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 19228 CC="$CC $ac_cv_prog_cc_stdc" ;; 19229esac 19230 19231# Some people use a C++ compiler to compile C. Since we use `exit', 19232# in C++ we need to declare it. In case someone uses the same compiler 19233# for both compiling C and C++ we need to have the C++ compiler decide 19234# the declaration of exit, since it's the most demanding environment. 19235cat >conftest.$ac_ext <<_ACEOF 19236#ifndef __cplusplus 19237 choke me 19238#endif 19239_ACEOF 19240rm -f conftest.$ac_objext 19241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19242 (eval $ac_compile) 2>conftest.er1 19243 ac_status=$? 19244 grep -v '^ *+' conftest.er1 >conftest.err 19245 rm -f conftest.er1 19246 cat conftest.err >&5 19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19248 (exit $ac_status); } && 19249 { ac_try='test -z "$ac_c_werror_flag" 19250 || test ! -s conftest.err' 19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19252 (eval $ac_try) 2>&5 19253 ac_status=$? 19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19255 (exit $ac_status); }; } && 19256 { ac_try='test -s conftest.$ac_objext' 19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19258 (eval $ac_try) 2>&5 19259 ac_status=$? 19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19261 (exit $ac_status); }; }; then 19262 for ac_declaration in \ 19263 '' \ 19264 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19265 'extern "C" void std::exit (int); using std::exit;' \ 19266 'extern "C" void exit (int) throw ();' \ 19267 'extern "C" void exit (int);' \ 19268 'void exit (int);' 19269do 19270 cat >conftest.$ac_ext <<_ACEOF 19271/* confdefs.h. */ 19272_ACEOF 19273cat confdefs.h >>conftest.$ac_ext 19274cat >>conftest.$ac_ext <<_ACEOF 19275/* end confdefs.h. */ 19276$ac_declaration 19277#include <stdlib.h> 19278int 19279main () 19280{ 19281exit (42); 19282 ; 19283 return 0; 19284} 19285_ACEOF 19286rm -f conftest.$ac_objext 19287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19288 (eval $ac_compile) 2>conftest.er1 19289 ac_status=$? 19290 grep -v '^ *+' conftest.er1 >conftest.err 19291 rm -f conftest.er1 19292 cat conftest.err >&5 19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19294 (exit $ac_status); } && 19295 { ac_try='test -z "$ac_c_werror_flag" 19296 || test ! -s conftest.err' 19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19298 (eval $ac_try) 2>&5 19299 ac_status=$? 19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19301 (exit $ac_status); }; } && 19302 { ac_try='test -s conftest.$ac_objext' 19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19304 (eval $ac_try) 2>&5 19305 ac_status=$? 19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19307 (exit $ac_status); }; }; then 19308 : 19309else 19310 echo "$as_me: failed program was:" >&5 19311sed 's/^/| /' conftest.$ac_ext >&5 19312 19313continue 19314fi 19315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19316 cat >conftest.$ac_ext <<_ACEOF 19317/* confdefs.h. */ 19318_ACEOF 19319cat confdefs.h >>conftest.$ac_ext 19320cat >>conftest.$ac_ext <<_ACEOF 19321/* end confdefs.h. */ 19322$ac_declaration 19323int 19324main () 19325{ 19326exit (42); 19327 ; 19328 return 0; 19329} 19330_ACEOF 19331rm -f conftest.$ac_objext 19332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19333 (eval $ac_compile) 2>conftest.er1 19334 ac_status=$? 19335 grep -v '^ *+' conftest.er1 >conftest.err 19336 rm -f conftest.er1 19337 cat conftest.err >&5 19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19339 (exit $ac_status); } && 19340 { ac_try='test -z "$ac_c_werror_flag" 19341 || test ! -s conftest.err' 19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19343 (eval $ac_try) 2>&5 19344 ac_status=$? 19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19346 (exit $ac_status); }; } && 19347 { ac_try='test -s conftest.$ac_objext' 19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19349 (eval $ac_try) 2>&5 19350 ac_status=$? 19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19352 (exit $ac_status); }; }; then 19353 break 19354else 19355 echo "$as_me: failed program was:" >&5 19356sed 's/^/| /' conftest.$ac_ext >&5 19357 19358fi 19359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19360done 19361rm -f conftest* 19362if test -n "$ac_declaration"; then 19363 echo '#ifdef __cplusplus' >>confdefs.h 19364 echo $ac_declaration >>confdefs.h 19365 echo '#endif' >>confdefs.h 19366fi 19367 19368else 19369 echo "$as_me: failed program was:" >&5 19370sed 's/^/| /' conftest.$ac_ext >&5 19371 19372fi 19373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19374ac_ext=c 19375ac_cpp='$CPP $CPPFLAGS' 19376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19378ac_compiler_gnu=$ac_cv_c_compiler_gnu 19379 19380depcc="$CC" am_compiler_list= 19381 19382echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19383echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19384if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19385 echo $ECHO_N "(cached) $ECHO_C" >&6 19386else 19387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19388 # We make a subdir and do the tests there. Otherwise we can end up 19389 # making bogus files that we don't know about and never remove. For 19390 # instance it was reported that on HP-UX the gcc test will end up 19391 # making a dummy file named `D' -- because `-MD' means `put the output 19392 # in D'. 19393 mkdir conftest.dir 19394 # Copy depcomp to subdir because otherwise we won't find it if we're 19395 # using a relative directory. 19396 cp "$am_depcomp" conftest.dir 19397 cd conftest.dir 19398 # We will build objects and dependencies in a subdirectory because 19399 # it helps to detect inapplicable dependency modes. For instance 19400 # both Tru64's cc and ICC support -MD to output dependencies as a 19401 # side effect of compilation, but ICC will put the dependencies in 19402 # the current directory while Tru64 will put them in the object 19403 # directory. 19404 mkdir sub 19405 19406 am_cv_CC_dependencies_compiler_type=none 19407 if test "$am_compiler_list" = ""; then 19408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19409 fi 19410 for depmode in $am_compiler_list; do 19411 # Setup a source with many dependencies, because some compilers 19412 # like to wrap large dependency lists on column 80 (with \), and 19413 # we should not choose a depcomp mode which is confused by this. 19414 # 19415 # We need to recreate these files for each test, as the compiler may 19416 # overwrite some of them when testing with obscure command lines. 19417 # This happens at least with the AIX C compiler. 19418 : > sub/conftest.c 19419 for i in 1 2 3 4 5 6; do 19420 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19421 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19422 # Solaris 8's {/usr,}/bin/sh. 19423 touch sub/conftst$i.h 19424 done 19425 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19426 19427 case $depmode in 19428 nosideeffect) 19429 # after this tag, mechanisms are not by side-effect, so they'll 19430 # only be used when explicitly requested 19431 if test "x$enable_dependency_tracking" = xyes; then 19432 continue 19433 else 19434 break 19435 fi 19436 ;; 19437 none) break ;; 19438 esac 19439 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19440 # mode. It turns out that the SunPro C++ compiler does not properly 19441 # handle `-M -o', and we need to detect this. 19442 if depmode=$depmode \ 19443 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19444 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19445 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19446 >/dev/null 2>conftest.err && 19447 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19448 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19449 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19450 # icc doesn't choke on unknown options, it will just issue warnings 19451 # or remarks (even with -Werror). So we grep stderr for any message 19452 # that says an option was ignored or not supported. 19453 # When given -MP, icc 7.0 and 7.1 complain thusly: 19454 # icc: Command line warning: ignoring option '-M'; no argument required 19455 # The diagnosis changed in icc 8.0: 19456 # icc: Command line remark: option '-MP' not supported 19457 if (grep 'ignoring option' conftest.err || 19458 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19459 am_cv_CC_dependencies_compiler_type=$depmode 19460 break 19461 fi 19462 fi 19463 done 19464 19465 cd .. 19466 rm -rf conftest.dir 19467else 19468 am_cv_CC_dependencies_compiler_type=none 19469fi 19470 19471fi 19472echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 19473echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 19474CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 19475 19476 19477 19478if 19479 test "x$enable_dependency_tracking" != xno \ 19480 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 19481 am__fastdepCC_TRUE= 19482 am__fastdepCC_FALSE='#' 19483else 19484 am__fastdepCC_TRUE='#' 19485 am__fastdepCC_FALSE= 19486fi 19487 19488 19489 19490 19491 19492 19493 19494# Check whether --with-xorg-module-dir or --without-xorg-module-dir was given. 19495if test "${with_xorg_module_dir+set}" = set; then 19496 withval="$with_xorg_module_dir" 19497 moduledir="$withval" 19498else 19499 moduledir="$libdir/xorg/modules" 19500fi; 19501 19502# Checks for extensions 19503 19504 SAVE_CFLAGS="$CFLAGS" 19505 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19506 cat >conftest.$ac_ext <<_ACEOF 19507/* confdefs.h. */ 19508_ACEOF 19509cat confdefs.h >>conftest.$ac_ext 19510cat >>conftest.$ac_ext <<_ACEOF 19511/* end confdefs.h. */ 19512 19513#include "xorg-server.h" 19514#if !defined RANDR 19515#error RANDR not defined 19516#endif 19517 19518int 19519main () 19520{ 19521 19522 ; 19523 return 0; 19524} 19525_ACEOF 19526rm -f conftest.$ac_objext 19527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19528 (eval $ac_compile) 2>conftest.er1 19529 ac_status=$? 19530 grep -v '^ *+' conftest.er1 >conftest.err 19531 rm -f conftest.er1 19532 cat conftest.err >&5 19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19534 (exit $ac_status); } && 19535 { ac_try='test -z "$ac_c_werror_flag" 19536 || test ! -s conftest.err' 19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19538 (eval $ac_try) 2>&5 19539 ac_status=$? 19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19541 (exit $ac_status); }; } && 19542 { ac_try='test -s conftest.$ac_objext' 19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19544 (eval $ac_try) 2>&5 19545 ac_status=$? 19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19547 (exit $ac_status); }; }; then 19548 _EXT_CHECK=yes 19549else 19550 echo "$as_me: failed program was:" >&5 19551sed 's/^/| /' conftest.$ac_ext >&5 19552 19553_EXT_CHECK=no 19554fi 19555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19556 CFLAGS="$SAVE_CFLAGS" 19557 echo "$as_me:$LINENO: checking if RANDR is defined" >&5 19558echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6 19559 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19560echo "${ECHO_T}$_EXT_CHECK" >&6 19561 if test "$_EXT_CHECK" != no; then 19562 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19563 fi 19564 19565 19566 SAVE_CFLAGS="$CFLAGS" 19567 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 19568 cat >conftest.$ac_ext <<_ACEOF 19569/* confdefs.h. */ 19570_ACEOF 19571cat confdefs.h >>conftest.$ac_ext 19572cat >>conftest.$ac_ext <<_ACEOF 19573/* end confdefs.h. */ 19574 19575#include "xorg-server.h" 19576#if !defined RENDER 19577#error RENDER not defined 19578#endif 19579 19580int 19581main () 19582{ 19583 19584 ; 19585 return 0; 19586} 19587_ACEOF 19588rm -f conftest.$ac_objext 19589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19590 (eval $ac_compile) 2>conftest.er1 19591 ac_status=$? 19592 grep -v '^ *+' conftest.er1 >conftest.err 19593 rm -f conftest.er1 19594 cat conftest.err >&5 19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19596 (exit $ac_status); } && 19597 { ac_try='test -z "$ac_c_werror_flag" 19598 || test ! -s conftest.err' 19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19600 (eval $ac_try) 2>&5 19601 ac_status=$? 19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19603 (exit $ac_status); }; } && 19604 { ac_try='test -s conftest.$ac_objext' 19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19606 (eval $ac_try) 2>&5 19607 ac_status=$? 19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19609 (exit $ac_status); }; }; then 19610 _EXT_CHECK=yes 19611else 19612 echo "$as_me: failed program was:" >&5 19613sed 's/^/| /' conftest.$ac_ext >&5 19614 19615_EXT_CHECK=no 19616fi 19617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19618 CFLAGS="$SAVE_CFLAGS" 19619 echo "$as_me:$LINENO: checking if RENDER is defined" >&5 19620echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6 19621 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 19622echo "${ECHO_T}$_EXT_CHECK" >&6 19623 if test "$_EXT_CHECK" != no; then 19624 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19625 fi 19626 19627 19628# Checks for pkg-config packages 19629 19630 19631if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19632 if test -n "$ac_tool_prefix"; then 19633 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19634set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19635echo "$as_me:$LINENO: checking for $ac_word" >&5 19636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19637if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19638 echo $ECHO_N "(cached) $ECHO_C" >&6 19639else 19640 case $PKG_CONFIG in 19641 [\\/]* | ?:[\\/]*) 19642 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19643 ;; 19644 *) 19645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19646for as_dir in $PATH 19647do 19648 IFS=$as_save_IFS 19649 test -z "$as_dir" && as_dir=. 19650 for ac_exec_ext in '' $ac_executable_extensions; do 19651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19652 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19654 break 2 19655 fi 19656done 19657done 19658 19659 ;; 19660esac 19661fi 19662PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19663 19664if test -n "$PKG_CONFIG"; then 19665 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19666echo "${ECHO_T}$PKG_CONFIG" >&6 19667else 19668 echo "$as_me:$LINENO: result: no" >&5 19669echo "${ECHO_T}no" >&6 19670fi 19671 19672fi 19673if test -z "$ac_cv_path_PKG_CONFIG"; then 19674 ac_pt_PKG_CONFIG=$PKG_CONFIG 19675 # Extract the first word of "pkg-config", so it can be a program name with args. 19676set dummy pkg-config; ac_word=$2 19677echo "$as_me:$LINENO: checking for $ac_word" >&5 19678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19679if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19680 echo $ECHO_N "(cached) $ECHO_C" >&6 19681else 19682 case $ac_pt_PKG_CONFIG in 19683 [\\/]* | ?:[\\/]*) 19684 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19685 ;; 19686 *) 19687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19688for as_dir in $PATH 19689do 19690 IFS=$as_save_IFS 19691 test -z "$as_dir" && as_dir=. 19692 for ac_exec_ext in '' $ac_executable_extensions; do 19693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19694 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19696 break 2 19697 fi 19698done 19699done 19700 19701 ;; 19702esac 19703fi 19704ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19705 19706if test -n "$ac_pt_PKG_CONFIG"; then 19707 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19708echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 19709else 19710 echo "$as_me:$LINENO: result: no" >&5 19711echo "${ECHO_T}no" >&6 19712fi 19713 19714 PKG_CONFIG=$ac_pt_PKG_CONFIG 19715else 19716 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19717fi 19718 19719fi 19720if test -n "$PKG_CONFIG"; then 19721 _pkg_min_version=0.9.0 19722 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19723echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 19724 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19725 echo "$as_me:$LINENO: result: yes" >&5 19726echo "${ECHO_T}yes" >&6 19727 else 19728 echo "$as_me:$LINENO: result: no" >&5 19729echo "${ECHO_T}no" >&6 19730 PKG_CONFIG="" 19731 fi 19732 19733fi 19734 19735pkg_failed=no 19736echo "$as_me:$LINENO: checking for XORG" >&5 19737echo $ECHO_N "checking for XORG... $ECHO_C" >&6 19738 19739if test -n "$PKG_CONFIG"; then 19740 if test -n "$XORG_CFLAGS"; then 19741 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19742 else 19743 if test -n "$PKG_CONFIG" && \ 19744 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 19745 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19746 ac_status=$? 19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19748 (exit $ac_status); }; then 19749 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19750else 19751 pkg_failed=yes 19752fi 19753 fi 19754else 19755 pkg_failed=untried 19756fi 19757if test -n "$PKG_CONFIG"; then 19758 if test -n "$XORG_LIBS"; then 19759 pkg_cv_XORG_LIBS="$XORG_LIBS" 19760 else 19761 if test -n "$PKG_CONFIG" && \ 19762 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 19763 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19764 ac_status=$? 19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19766 (exit $ac_status); }; then 19767 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19768else 19769 pkg_failed=yes 19770fi 19771 fi 19772else 19773 pkg_failed=untried 19774fi 19775 19776 19777 19778if test $pkg_failed = yes; then 19779 19780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19781 _pkg_short_errors_supported=yes 19782else 19783 _pkg_short_errors_supported=no 19784fi 19785 if test $_pkg_short_errors_supported = yes; then 19786 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"` 19787 else 19788 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"` 19789 fi 19790 # Put the nasty error message in config.log where it belongs 19791 echo "$XORG_PKG_ERRORS" >&5 19792 19793 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19794 19795$XORG_PKG_ERRORS 19796 19797Consider adjusting the PKG_CONFIG_PATH environment variable if you 19798installed software in a non-standard prefix. 19799 19800Alternatively, you may set the environment variables XORG_CFLAGS 19801and XORG_LIBS to avoid the need to call pkg-config. 19802See the pkg-config man page for more details. 19803" >&5 19804echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19805 19806$XORG_PKG_ERRORS 19807 19808Consider adjusting the PKG_CONFIG_PATH environment variable if you 19809installed software in a non-standard prefix. 19810 19811Alternatively, you may set the environment variables XORG_CFLAGS 19812and XORG_LIBS to avoid the need to call pkg-config. 19813See the pkg-config man page for more details. 19814" >&2;} 19815 { (exit 1); exit 1; }; } 19816elif test $pkg_failed = untried; then 19817 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19818is in your PATH or set the PKG_CONFIG environment variable to the full 19819path to pkg-config. 19820 19821Alternatively, you may set the environment variables XORG_CFLAGS 19822and XORG_LIBS to avoid the need to call pkg-config. 19823See the pkg-config man page for more details. 19824 19825To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19826See \`config.log' for more details." >&5 19827echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19828is in your PATH or set the PKG_CONFIG environment variable to the full 19829path to pkg-config. 19830 19831Alternatively, you may set the environment variables XORG_CFLAGS 19832and XORG_LIBS to avoid the need to call pkg-config. 19833See the pkg-config man page for more details. 19834 19835To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19836See \`config.log' for more details." >&2;} 19837 { (exit 1); exit 1; }; } 19838else 19839 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19840 XORG_LIBS=$pkg_cv_XORG_LIBS 19841 echo "$as_me:$LINENO: result: yes" >&5 19842echo "${ECHO_T}yes" >&6 19843 : 19844fi 19845sdkdir=$(pkg-config --variable=sdkdir xorg-server) 19846 19847# Checks for libraries. 19848 19849# Checks for header files. 19850echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19851echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19852if test "${ac_cv_header_stdc+set}" = set; then 19853 echo $ECHO_N "(cached) $ECHO_C" >&6 19854else 19855 cat >conftest.$ac_ext <<_ACEOF 19856/* confdefs.h. */ 19857_ACEOF 19858cat confdefs.h >>conftest.$ac_ext 19859cat >>conftest.$ac_ext <<_ACEOF 19860/* end confdefs.h. */ 19861#include <stdlib.h> 19862#include <stdarg.h> 19863#include <string.h> 19864#include <float.h> 19865 19866int 19867main () 19868{ 19869 19870 ; 19871 return 0; 19872} 19873_ACEOF 19874rm -f conftest.$ac_objext 19875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19876 (eval $ac_compile) 2>conftest.er1 19877 ac_status=$? 19878 grep -v '^ *+' conftest.er1 >conftest.err 19879 rm -f conftest.er1 19880 cat conftest.err >&5 19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19882 (exit $ac_status); } && 19883 { ac_try='test -z "$ac_c_werror_flag" 19884 || test ! -s conftest.err' 19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19886 (eval $ac_try) 2>&5 19887 ac_status=$? 19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19889 (exit $ac_status); }; } && 19890 { ac_try='test -s conftest.$ac_objext' 19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19892 (eval $ac_try) 2>&5 19893 ac_status=$? 19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19895 (exit $ac_status); }; }; then 19896 ac_cv_header_stdc=yes 19897else 19898 echo "$as_me: failed program was:" >&5 19899sed 's/^/| /' conftest.$ac_ext >&5 19900 19901ac_cv_header_stdc=no 19902fi 19903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19904 19905if test $ac_cv_header_stdc = yes; then 19906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19907 cat >conftest.$ac_ext <<_ACEOF 19908/* confdefs.h. */ 19909_ACEOF 19910cat confdefs.h >>conftest.$ac_ext 19911cat >>conftest.$ac_ext <<_ACEOF 19912/* end confdefs.h. */ 19913#include <string.h> 19914 19915_ACEOF 19916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19917 $EGREP "memchr" >/dev/null 2>&1; then 19918 : 19919else 19920 ac_cv_header_stdc=no 19921fi 19922rm -f conftest* 19923 19924fi 19925 19926if test $ac_cv_header_stdc = yes; then 19927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19928 cat >conftest.$ac_ext <<_ACEOF 19929/* confdefs.h. */ 19930_ACEOF 19931cat confdefs.h >>conftest.$ac_ext 19932cat >>conftest.$ac_ext <<_ACEOF 19933/* end confdefs.h. */ 19934#include <stdlib.h> 19935 19936_ACEOF 19937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19938 $EGREP "free" >/dev/null 2>&1; then 19939 : 19940else 19941 ac_cv_header_stdc=no 19942fi 19943rm -f conftest* 19944 19945fi 19946 19947if test $ac_cv_header_stdc = yes; then 19948 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19949 if test "$cross_compiling" = yes; then 19950 : 19951else 19952 cat >conftest.$ac_ext <<_ACEOF 19953/* confdefs.h. */ 19954_ACEOF 19955cat confdefs.h >>conftest.$ac_ext 19956cat >>conftest.$ac_ext <<_ACEOF 19957/* end confdefs.h. */ 19958#include <ctype.h> 19959#if ((' ' & 0x0FF) == 0x020) 19960# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19961# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19962#else 19963# define ISLOWER(c) \ 19964 (('a' <= (c) && (c) <= 'i') \ 19965 || ('j' <= (c) && (c) <= 'r') \ 19966 || ('s' <= (c) && (c) <= 'z')) 19967# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19968#endif 19969 19970#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19971int 19972main () 19973{ 19974 int i; 19975 for (i = 0; i < 256; i++) 19976 if (XOR (islower (i), ISLOWER (i)) 19977 || toupper (i) != TOUPPER (i)) 19978 exit(2); 19979 exit (0); 19980} 19981_ACEOF 19982rm -f conftest$ac_exeext 19983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19984 (eval $ac_link) 2>&5 19985 ac_status=$? 19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19989 (eval $ac_try) 2>&5 19990 ac_status=$? 19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19992 (exit $ac_status); }; }; then 19993 : 19994else 19995 echo "$as_me: program exited with status $ac_status" >&5 19996echo "$as_me: failed program was:" >&5 19997sed 's/^/| /' conftest.$ac_ext >&5 19998 19999( exit $ac_status ) 20000ac_cv_header_stdc=no 20001fi 20002rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20003fi 20004fi 20005fi 20006echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20007echo "${ECHO_T}$ac_cv_header_stdc" >&6 20008if test $ac_cv_header_stdc = yes; then 20009 20010cat >>confdefs.h <<\_ACEOF 20011#define STDC_HEADERS 1 20012_ACEOF 20013 20014fi 20015 20016 20017 20018 20019 20020DRIVER_NAME=imstt 20021 20022 20023 20024 20025 20026if test x$APP_MAN_SUFFIX = x ; then 20027 case $host_os in 20028 linux*) APP_MAN_SUFFIX=1x ;; 20029 *) APP_MAN_SUFFIX=1 ;; 20030 esac 20031fi 20032if test x$APP_MAN_DIR = x ; then 20033 case $host_os in 20034 linux*) APP_MAN_DIR='$(mandir)/man1' ;; 20035 *) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;; 20036 esac 20037fi 20038 20039if test x$LIB_MAN_SUFFIX = x ; then 20040 case $host_os in 20041 linux*) LIB_MAN_SUFFIX=3x ;; 20042 *) LIB_MAN_SUFFIX=3 ;; 20043 esac 20044fi 20045if test x$LIB_MAN_DIR = x ; then 20046 case $host_os in 20047 linux*) LIB_MAN_DIR='$(mandir)/man3' ;; 20048 *) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;; 20049 esac 20050fi 20051 20052if test x$FILE_MAN_SUFFIX = x ; then 20053 case $host_os in 20054 linux*) FILE_MAN_SUFFIX=5x ;; 20055 solaris*) FILE_MAN_SUFFIX=4 ;; 20056 *) FILE_MAN_SUFFIX=5 ;; 20057 esac 20058fi 20059if test x$FILE_MAN_DIR = x ; then 20060 case $host_os in 20061 linux*) FILE_MAN_DIR='$(mandir)/man5' ;; 20062 *) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;; 20063 esac 20064fi 20065 20066# In Imake's linux.cf, the misc man suffix & dir was only changed for 20067# LinuxDebian, not other Linuxes, so we leave it unchanged here 20068if test x$MISC_MAN_SUFFIX = x ; then 20069 case $host_os in 20070# linux*) MISC_MAN_SUFFIX=7x ;; 20071 solaris*) MISC_MAN_SUFFIX=5 ;; 20072 *) MISC_MAN_SUFFIX=7 ;; 20073 esac 20074fi 20075if test x$MISC_MAN_DIR = x ; then 20076 case $host_os in 20077# linux*) MISC_MAN_DIR='$(mandir)/man7' ;; 20078 *) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;; 20079 esac 20080fi 20081 20082# In Imake's linux.cf, the driver man suffix & dir was only changed for 20083# LinuxDebian, not other Linuxes, so we leave it unchanged here 20084if test x$DRIVER_MAN_SUFFIX = x ; then 20085 case $host_os in 20086# linux*) DRIVER_MAN_SUFFIX=4x ;; 20087 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20088 *) DRIVER_MAN_SUFFIX=4 ;; 20089 esac 20090fi 20091if test x$DRIVER_MAN_DIR = x ; then 20092 case $host_os in 20093# linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;; 20094 *) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;; 20095 esac 20096fi 20097 20098if test x$ADMIN_MAN_SUFFIX = x ; then 20099 case $host_os in 20100 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20101 *) ADMIN_MAN_SUFFIX=8 ;; 20102 esac 20103fi 20104if test x$ADMIN_MAN_DIR = x ; then 20105 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20106fi 20107 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124# Check whether --with-release-version or --without-release-version was given. 20125if test "${with_release_version+set}" = set; then 20126 withval="$with_release_version" 20127 RELEASE_VERSION="$withval" 20128else 20129 RELEASE_VERSION="" 20130fi; 20131 if test "x$RELEASE_VERSION" != "x"; then 20132 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20133 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20134 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20135echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20136 fi 20137 20138 20139 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20140cat >confcache <<\_ACEOF 20141# This file is a shell script that caches the results of configure 20142# tests run on this system so they can be shared between configure 20143# scripts and configure runs, see configure's option --config-cache. 20144# It is not useful on other systems. If it contains results you don't 20145# want to keep, you may remove or edit it. 20146# 20147# config.status only pays attention to the cache file if you give it 20148# the --recheck option to rerun configure. 20149# 20150# `ac_cv_env_foo' variables (set or unset) will be overridden when 20151# loading this file, other *unset* `ac_cv_foo' will be assigned the 20152# following values. 20153 20154_ACEOF 20155 20156# The following way of writing the cache mishandles newlines in values, 20157# but we know of no workaround that is simple, portable, and efficient. 20158# So, don't put newlines in cache variables' values. 20159# Ultrix sh set writes to stderr and can't be redirected directly, 20160# and sets the high bit in the cache file unless we assign to the vars. 20161{ 20162 (set) 2>&1 | 20163 case `(ac_space=' '; set | grep ac_space) 2>&1` in 20164 *ac_space=\ *) 20165 # `set' does not quote correctly, so add quotes (double-quote 20166 # substitution turns \\\\ into \\, and sed turns \\ into \). 20167 sed -n \ 20168 "s/'/'\\\\''/g; 20169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20170 ;; 20171 *) 20172 # `set' quotes correctly as required by POSIX, so do not add quotes. 20173 sed -n \ 20174 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 20175 ;; 20176 esac; 20177} | 20178 sed ' 20179 t clear 20180 : clear 20181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20182 t end 20183 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20184 : end' >>confcache 20185if diff $cache_file confcache >/dev/null 2>&1; then :; else 20186 if test -w $cache_file; then 20187 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 20188 cat confcache >$cache_file 20189 else 20190 echo "not updating unwritable cache $cache_file" 20191 fi 20192fi 20193rm -f confcache 20194 20195test "x$prefix" = xNONE && prefix=$ac_default_prefix 20196# Let make expand exec_prefix. 20197test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20198 20199# VPATH may cause trouble with some makes, so we remove $(srcdir), 20200# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20201# trailing colons and then remove the whole line if VPATH becomes empty 20202# (actually we leave an empty line to preserve line numbers). 20203if test "x$srcdir" = x.; then 20204 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20205s/:*\$(srcdir):*/:/; 20206s/:*\${srcdir}:*/:/; 20207s/:*@srcdir@:*/:/; 20208s/^\([^=]*=[ ]*\):*/\1/; 20209s/:*$//; 20210s/^[^=]*=[ ]*$//; 20211}' 20212fi 20213 20214DEFS=-DHAVE_CONFIG_H 20215 20216ac_libobjs= 20217ac_ltlibobjs= 20218for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20219 # 1. Remove the extension, and $U if already installed. 20220 ac_i=`echo "$ac_i" | 20221 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 20222 # 2. Add them. 20223 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 20224 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 20225done 20226LIBOBJS=$ac_libobjs 20227 20228LTLIBOBJS=$ac_ltlibobjs 20229 20230 20231if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20232 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20233Usually this means the macro was only invoked conditionally." >&5 20234echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20235Usually this means the macro was only invoked conditionally." >&2;} 20236 { (exit 1); exit 1; }; } 20237fi 20238if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20239 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20240Usually this means the macro was only invoked conditionally." >&5 20241echo "$as_me: error: conditional \"AMDEP\" was never defined. 20242Usually this means the macro was only invoked conditionally." >&2;} 20243 { (exit 1); exit 1; }; } 20244fi 20245if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20246 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20247Usually this means the macro was only invoked conditionally." >&5 20248echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20249Usually this means the macro was only invoked conditionally." >&2;} 20250 { (exit 1); exit 1; }; } 20251fi 20252if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20253 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20254Usually this means the macro was only invoked conditionally." >&5 20255echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20256Usually this means the macro was only invoked conditionally." >&2;} 20257 { (exit 1); exit 1; }; } 20258fi 20259if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20260 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20261Usually this means the macro was only invoked conditionally." >&5 20262echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20263Usually this means the macro was only invoked conditionally." >&2;} 20264 { (exit 1); exit 1; }; } 20265fi 20266 20267: ${CONFIG_STATUS=./config.status} 20268ac_clean_files_save=$ac_clean_files 20269ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20270{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20271echo "$as_me: creating $CONFIG_STATUS" >&6;} 20272cat >$CONFIG_STATUS <<_ACEOF 20273#! $SHELL 20274# Generated by $as_me. 20275# Run this file to recreate the current configuration. 20276# Compiler output produced by configure, useful for debugging 20277# configure, is in config.log if it exists. 20278 20279debug=false 20280ac_cs_recheck=false 20281ac_cs_silent=false 20282SHELL=\${CONFIG_SHELL-$SHELL} 20283_ACEOF 20284 20285cat >>$CONFIG_STATUS <<\_ACEOF 20286## --------------------- ## 20287## M4sh Initialization. ## 20288## --------------------- ## 20289 20290# Be Bourne compatible 20291if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20292 emulate sh 20293 NULLCMD=: 20294 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20295 # is contrary to our usage. Disable this feature. 20296 alias -g '${1+"$@"}'='"$@"' 20297elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20298 set -o posix 20299fi 20300DUALCASE=1; export DUALCASE # for MKS sh 20301 20302# Support unset when possible. 20303if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20304 as_unset=unset 20305else 20306 as_unset=false 20307fi 20308 20309 20310# Work around bugs in pre-3.0 UWIN ksh. 20311$as_unset ENV MAIL MAILPATH 20312PS1='$ ' 20313PS2='> ' 20314PS4='+ ' 20315 20316# NLS nuisances. 20317for as_var in \ 20318 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20319 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20320 LC_TELEPHONE LC_TIME 20321do 20322 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20323 eval $as_var=C; export $as_var 20324 else 20325 $as_unset $as_var 20326 fi 20327done 20328 20329# Required to use basename. 20330if expr a : '\(a\)' >/dev/null 2>&1; then 20331 as_expr=expr 20332else 20333 as_expr=false 20334fi 20335 20336if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 20337 as_basename=basename 20338else 20339 as_basename=false 20340fi 20341 20342 20343# Name of the executable. 20344as_me=`$as_basename "$0" || 20345$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20346 X"$0" : 'X\(//\)$' \| \ 20347 X"$0" : 'X\(/\)$' \| \ 20348 . : '\(.\)' 2>/dev/null || 20349echo X/"$0" | 20350 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20351 /^X\/\(\/\/\)$/{ s//\1/; q; } 20352 /^X\/\(\/\).*/{ s//\1/; q; } 20353 s/.*/./; q'` 20354 20355 20356# PATH needs CR, and LINENO needs CR and PATH. 20357# Avoid depending upon Character Ranges. 20358as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20359as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20360as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20361as_cr_digits='0123456789' 20362as_cr_alnum=$as_cr_Letters$as_cr_digits 20363 20364# The user is always right. 20365if test "${PATH_SEPARATOR+set}" != set; then 20366 echo "#! /bin/sh" >conf$$.sh 20367 echo "exit 0" >>conf$$.sh 20368 chmod +x conf$$.sh 20369 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20370 PATH_SEPARATOR=';' 20371 else 20372 PATH_SEPARATOR=: 20373 fi 20374 rm -f conf$$.sh 20375fi 20376 20377 20378 as_lineno_1=$LINENO 20379 as_lineno_2=$LINENO 20380 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20381 test "x$as_lineno_1" != "x$as_lineno_2" && 20382 test "x$as_lineno_3" = "x$as_lineno_2" || { 20383 # Find who we are. Look in the path if we contain no path at all 20384 # relative or not. 20385 case $0 in 20386 *[\\/]* ) as_myself=$0 ;; 20387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20388for as_dir in $PATH 20389do 20390 IFS=$as_save_IFS 20391 test -z "$as_dir" && as_dir=. 20392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20393done 20394 20395 ;; 20396 esac 20397 # We did not find ourselves, most probably we were run as `sh COMMAND' 20398 # in which case we are not to be found in the path. 20399 if test "x$as_myself" = x; then 20400 as_myself=$0 20401 fi 20402 if test ! -f "$as_myself"; then 20403 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 20404echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 20405 { (exit 1); exit 1; }; } 20406 fi 20407 case $CONFIG_SHELL in 20408 '') 20409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20410for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20411do 20412 IFS=$as_save_IFS 20413 test -z "$as_dir" && as_dir=. 20414 for as_base in sh bash ksh sh5; do 20415 case $as_dir in 20416 /*) 20417 if ("$as_dir/$as_base" -c ' 20418 as_lineno_1=$LINENO 20419 as_lineno_2=$LINENO 20420 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20421 test "x$as_lineno_1" != "x$as_lineno_2" && 20422 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20423 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 20424 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 20425 CONFIG_SHELL=$as_dir/$as_base 20426 export CONFIG_SHELL 20427 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20428 fi;; 20429 esac 20430 done 20431done 20432;; 20433 esac 20434 20435 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20436 # uniformly replaced by the line number. The first 'sed' inserts a 20437 # line-number line before each line; the second 'sed' does the real 20438 # work. The second script uses 'N' to pair each line-number line 20439 # with the numbered line, and appends trailing '-' during 20440 # substitution so that $LINENO is not a special case at line end. 20441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20442 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20443 sed '=' <$as_myself | 20444 sed ' 20445 N 20446 s,$,-, 20447 : loop 20448 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20449 t loop 20450 s,-$,, 20451 s,^['$as_cr_digits']*\n,, 20452 ' >$as_me.lineno && 20453 chmod +x $as_me.lineno || 20454 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 20455echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 20456 { (exit 1); exit 1; }; } 20457 20458 # Don't try to exec as it changes $[0], causing all sort of problems 20459 # (the dirname of $[0] is not the place where we might find the 20460 # original and so on. Autoconf is especially sensible to this). 20461 . ./$as_me.lineno 20462 # Exit status is that of the last command. 20463 exit 20464} 20465 20466 20467case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20468 *c*,-n*) ECHO_N= ECHO_C=' 20469' ECHO_T=' ' ;; 20470 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20471 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20472esac 20473 20474if expr a : '\(a\)' >/dev/null 2>&1; then 20475 as_expr=expr 20476else 20477 as_expr=false 20478fi 20479 20480rm -f conf$$ conf$$.exe conf$$.file 20481echo >conf$$.file 20482if ln -s conf$$.file conf$$ 2>/dev/null; then 20483 # We could just check for DJGPP; but this test a) works b) is more generic 20484 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20485 if test -f conf$$.exe; then 20486 # Don't use ln at all; we don't have any links 20487 as_ln_s='cp -p' 20488 else 20489 as_ln_s='ln -s' 20490 fi 20491elif ln conf$$.file conf$$ 2>/dev/null; then 20492 as_ln_s=ln 20493else 20494 as_ln_s='cp -p' 20495fi 20496rm -f conf$$ conf$$.exe conf$$.file 20497 20498if mkdir -p . 2>/dev/null; then 20499 as_mkdir_p=: 20500else 20501 test -d ./-p && rmdir ./-p 20502 as_mkdir_p=false 20503fi 20504 20505as_executable_p="test -f" 20506 20507# Sed expression to map a string onto a valid CPP name. 20508as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20509 20510# Sed expression to map a string onto a valid variable name. 20511as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20512 20513 20514# IFS 20515# We need space, tab and new line, in precisely that order. 20516as_nl=' 20517' 20518IFS=" $as_nl" 20519 20520# CDPATH. 20521$as_unset CDPATH 20522 20523exec 6>&1 20524 20525# Open the log real soon, to keep \$[0] and so on meaningful, and to 20526# report actual input values of CONFIG_FILES etc. instead of their 20527# values after options handling. Logging --version etc. is OK. 20528exec 5>>config.log 20529{ 20530 echo 20531 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20532## Running $as_me. ## 20533_ASBOX 20534} >&5 20535cat >&5 <<_CSEOF 20536 20537This file was extended by xf86-video-imstt $as_me 1.1.0, which was 20538generated by GNU Autoconf 2.59. Invocation command line was 20539 20540 CONFIG_FILES = $CONFIG_FILES 20541 CONFIG_HEADERS = $CONFIG_HEADERS 20542 CONFIG_LINKS = $CONFIG_LINKS 20543 CONFIG_COMMANDS = $CONFIG_COMMANDS 20544 $ $0 $@ 20545 20546_CSEOF 20547echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20548echo >&5 20549_ACEOF 20550 20551# Files that config.status was made for. 20552if test -n "$ac_config_files"; then 20553 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20554fi 20555 20556if test -n "$ac_config_headers"; then 20557 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20558fi 20559 20560if test -n "$ac_config_links"; then 20561 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20562fi 20563 20564if test -n "$ac_config_commands"; then 20565 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20566fi 20567 20568cat >>$CONFIG_STATUS <<\_ACEOF 20569 20570ac_cs_usage="\ 20571\`$as_me' instantiates files from templates according to the 20572current configuration. 20573 20574Usage: $0 [OPTIONS] [FILE]... 20575 20576 -h, --help print this help, then exit 20577 -V, --version print version number, then exit 20578 -q, --quiet do not print progress messages 20579 -d, --debug don't remove temporary files 20580 --recheck update $as_me by reconfiguring in the same conditions 20581 --file=FILE[:TEMPLATE] 20582 instantiate the configuration file FILE 20583 --header=FILE[:TEMPLATE] 20584 instantiate the configuration header FILE 20585 20586Configuration files: 20587$config_files 20588 20589Configuration headers: 20590$config_headers 20591 20592Configuration commands: 20593$config_commands 20594 20595Report bugs to <bug-autoconf@gnu.org>." 20596_ACEOF 20597 20598cat >>$CONFIG_STATUS <<_ACEOF 20599ac_cs_version="\\ 20600xf86-video-imstt config.status 1.1.0 20601configured by $0, generated by GNU Autoconf 2.59, 20602 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20603 20604Copyright (C) 2003 Free Software Foundation, Inc. 20605This config.status script is free software; the Free Software Foundation 20606gives unlimited permission to copy, distribute and modify it." 20607srcdir=$srcdir 20608INSTALL="$INSTALL" 20609_ACEOF 20610 20611cat >>$CONFIG_STATUS <<\_ACEOF 20612# If no file are specified by the user, then we need to provide default 20613# value. By we need to know if files were specified by the user. 20614ac_need_defaults=: 20615while test $# != 0 20616do 20617 case $1 in 20618 --*=*) 20619 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20620 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20621 ac_shift=: 20622 ;; 20623 -*) 20624 ac_option=$1 20625 ac_optarg=$2 20626 ac_shift=shift 20627 ;; 20628 *) # This is not an option, so the user has probably given explicit 20629 # arguments. 20630 ac_option=$1 20631 ac_need_defaults=false;; 20632 esac 20633 20634 case $ac_option in 20635 # Handling of the options. 20636_ACEOF 20637cat >>$CONFIG_STATUS <<\_ACEOF 20638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20639 ac_cs_recheck=: ;; 20640 --version | --vers* | -V ) 20641 echo "$ac_cs_version"; exit 0 ;; 20642 --he | --h) 20643 # Conflict between --help and --header 20644 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20645Try \`$0 --help' for more information." >&5 20646echo "$as_me: error: ambiguous option: $1 20647Try \`$0 --help' for more information." >&2;} 20648 { (exit 1); exit 1; }; };; 20649 --help | --hel | -h ) 20650 echo "$ac_cs_usage"; exit 0 ;; 20651 --debug | --d* | -d ) 20652 debug=: ;; 20653 --file | --fil | --fi | --f ) 20654 $ac_shift 20655 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20656 ac_need_defaults=false;; 20657 --header | --heade | --head | --hea ) 20658 $ac_shift 20659 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20660 ac_need_defaults=false;; 20661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20662 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20663 ac_cs_silent=: ;; 20664 20665 # This is an error. 20666 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20667Try \`$0 --help' for more information." >&5 20668echo "$as_me: error: unrecognized option: $1 20669Try \`$0 --help' for more information." >&2;} 20670 { (exit 1); exit 1; }; } ;; 20671 20672 *) ac_config_targets="$ac_config_targets $1" ;; 20673 20674 esac 20675 shift 20676done 20677 20678ac_configure_extra_args= 20679 20680if $ac_cs_silent; then 20681 exec 6>/dev/null 20682 ac_configure_extra_args="$ac_configure_extra_args --silent" 20683fi 20684 20685_ACEOF 20686cat >>$CONFIG_STATUS <<_ACEOF 20687if \$ac_cs_recheck; then 20688 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20689 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20690fi 20691 20692_ACEOF 20693 20694cat >>$CONFIG_STATUS <<_ACEOF 20695# 20696# INIT-COMMANDS section. 20697# 20698 20699AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20700 20701_ACEOF 20702 20703 20704 20705cat >>$CONFIG_STATUS <<\_ACEOF 20706for ac_config_target in $ac_config_targets 20707do 20708 case "$ac_config_target" in 20709 # Handling of arguments. 20710 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20711 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20712 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20713 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20714 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20715 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20716echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20717 { (exit 1); exit 1; }; };; 20718 esac 20719done 20720 20721# If the user did not use the arguments to specify the items to instantiate, 20722# then the envvar interface is used. Set only those that are not. 20723# We use the long form for the default assignment because of an extremely 20724# bizarre bug on SunOS 4.1.3. 20725if $ac_need_defaults; then 20726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20729fi 20730 20731# Have a temporary directory for convenience. Make it in the build tree 20732# simply because there is no reason to put it here, and in addition, 20733# creating and moving files from /tmp can sometimes cause problems. 20734# Create a temporary directory, and hook for its removal unless debugging. 20735$debug || 20736{ 20737 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20738 trap '{ (exit 1); exit 1; }' 1 2 13 15 20739} 20740 20741# Create a (secure) tmp directory for tmp files. 20742 20743{ 20744 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20745 test -n "$tmp" && test -d "$tmp" 20746} || 20747{ 20748 tmp=./confstat$$-$RANDOM 20749 (umask 077 && mkdir $tmp) 20750} || 20751{ 20752 echo "$me: cannot create a temporary directory in ." >&2 20753 { (exit 1); exit 1; } 20754} 20755 20756_ACEOF 20757 20758cat >>$CONFIG_STATUS <<_ACEOF 20759 20760# 20761# CONFIG_FILES section. 20762# 20763 20764# No need to generate the scripts if there are no CONFIG_FILES. 20765# This happens for instance when ./config.status config.h 20766if test -n "\$CONFIG_FILES"; then 20767 # Protect against being on the right side of a sed subst in config.status. 20768 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20769 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20770s,@SHELL@,$SHELL,;t t 20771s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20772s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20773s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20774s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20775s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20776s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20777s,@exec_prefix@,$exec_prefix,;t t 20778s,@prefix@,$prefix,;t t 20779s,@program_transform_name@,$program_transform_name,;t t 20780s,@bindir@,$bindir,;t t 20781s,@sbindir@,$sbindir,;t t 20782s,@libexecdir@,$libexecdir,;t t 20783s,@datadir@,$datadir,;t t 20784s,@sysconfdir@,$sysconfdir,;t t 20785s,@sharedstatedir@,$sharedstatedir,;t t 20786s,@localstatedir@,$localstatedir,;t t 20787s,@libdir@,$libdir,;t t 20788s,@includedir@,$includedir,;t t 20789s,@oldincludedir@,$oldincludedir,;t t 20790s,@infodir@,$infodir,;t t 20791s,@mandir@,$mandir,;t t 20792s,@build_alias@,$build_alias,;t t 20793s,@host_alias@,$host_alias,;t t 20794s,@target_alias@,$target_alias,;t t 20795s,@DEFS@,$DEFS,;t t 20796s,@ECHO_C@,$ECHO_C,;t t 20797s,@ECHO_N@,$ECHO_N,;t t 20798s,@ECHO_T@,$ECHO_T,;t t 20799s,@LIBS@,$LIBS,;t t 20800s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20801s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20802s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20803s,@CYGPATH_W@,$CYGPATH_W,;t t 20804s,@PACKAGE@,$PACKAGE,;t t 20805s,@VERSION@,$VERSION,;t t 20806s,@ACLOCAL@,$ACLOCAL,;t t 20807s,@AUTOCONF@,$AUTOCONF,;t t 20808s,@AUTOMAKE@,$AUTOMAKE,;t t 20809s,@AUTOHEADER@,$AUTOHEADER,;t t 20810s,@MAKEINFO@,$MAKEINFO,;t t 20811s,@install_sh@,$install_sh,;t t 20812s,@STRIP@,$STRIP,;t t 20813s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20814s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 20815s,@mkdir_p@,$mkdir_p,;t t 20816s,@AWK@,$AWK,;t t 20817s,@SET_MAKE@,$SET_MAKE,;t t 20818s,@am__leading_dot@,$am__leading_dot,;t t 20819s,@AMTAR@,$AMTAR,;t t 20820s,@am__tar@,$am__tar,;t t 20821s,@am__untar@,$am__untar,;t t 20822s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 20823s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 20824s,@MAINT@,$MAINT,;t t 20825s,@build@,$build,;t t 20826s,@build_cpu@,$build_cpu,;t t 20827s,@build_vendor@,$build_vendor,;t t 20828s,@build_os@,$build_os,;t t 20829s,@host@,$host,;t t 20830s,@host_cpu@,$host_cpu,;t t 20831s,@host_vendor@,$host_vendor,;t t 20832s,@host_os@,$host_os,;t t 20833s,@CC@,$CC,;t t 20834s,@CFLAGS@,$CFLAGS,;t t 20835s,@LDFLAGS@,$LDFLAGS,;t t 20836s,@CPPFLAGS@,$CPPFLAGS,;t t 20837s,@ac_ct_CC@,$ac_ct_CC,;t t 20838s,@EXEEXT@,$EXEEXT,;t t 20839s,@OBJEXT@,$OBJEXT,;t t 20840s,@DEPDIR@,$DEPDIR,;t t 20841s,@am__include@,$am__include,;t t 20842s,@am__quote@,$am__quote,;t t 20843s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 20844s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 20845s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 20846s,@CCDEPMODE@,$CCDEPMODE,;t t 20847s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 20848s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 20849s,@EGREP@,$EGREP,;t t 20850s,@LN_S@,$LN_S,;t t 20851s,@ECHO@,$ECHO,;t t 20852s,@AR@,$AR,;t t 20853s,@ac_ct_AR@,$ac_ct_AR,;t t 20854s,@RANLIB@,$RANLIB,;t t 20855s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20856s,@CPP@,$CPP,;t t 20857s,@CXX@,$CXX,;t t 20858s,@CXXFLAGS@,$CXXFLAGS,;t t 20859s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20860s,@CXXDEPMODE@,$CXXDEPMODE,;t t 20861s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 20862s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 20863s,@CXXCPP@,$CXXCPP,;t t 20864s,@F77@,$F77,;t t 20865s,@FFLAGS@,$FFLAGS,;t t 20866s,@ac_ct_F77@,$ac_ct_F77,;t t 20867s,@LIBTOOL@,$LIBTOOL,;t t 20868s,@PKG_CONFIG@,$PKG_CONFIG,;t t 20869s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 20870s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t 20871s,@XORG_LIBS@,$XORG_LIBS,;t t 20872s,@moduledir@,$moduledir,;t t 20873s,@DRIVER_NAME@,$DRIVER_NAME,;t t 20874s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t 20875s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t 20876s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t 20877s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t 20878s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t 20879s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t 20880s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t 20881s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t 20882s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t 20883s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t 20884s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t 20885s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t 20886s,@LIBOBJS@,$LIBOBJS,;t t 20887s,@LTLIBOBJS@,$LTLIBOBJS,;t t 20888CEOF 20889 20890_ACEOF 20891 20892 cat >>$CONFIG_STATUS <<\_ACEOF 20893 # Split the substitutions into bite-sized pieces for seds with 20894 # small command number limits, like on Digital OSF/1 and HP-UX. 20895 ac_max_sed_lines=48 20896 ac_sed_frag=1 # Number of current file. 20897 ac_beg=1 # First line for current file. 20898 ac_end=$ac_max_sed_lines # Line after last line for current file. 20899 ac_more_lines=: 20900 ac_sed_cmds= 20901 while $ac_more_lines; do 20902 if test $ac_beg -gt 1; then 20903 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20904 else 20905 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20906 fi 20907 if test ! -s $tmp/subs.frag; then 20908 ac_more_lines=false 20909 else 20910 # The purpose of the label and of the branching condition is to 20911 # speed up the sed processing (if there are no `@' at all, there 20912 # is no need to browse any of the substitutions). 20913 # These are the two extra sed commands mentioned above. 20914 (echo ':t 20915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20916 if test -z "$ac_sed_cmds"; then 20917 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20918 else 20919 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20920 fi 20921 ac_sed_frag=`expr $ac_sed_frag + 1` 20922 ac_beg=$ac_end 20923 ac_end=`expr $ac_end + $ac_max_sed_lines` 20924 fi 20925 done 20926 if test -z "$ac_sed_cmds"; then 20927 ac_sed_cmds=cat 20928 fi 20929fi # test -n "$CONFIG_FILES" 20930 20931_ACEOF 20932cat >>$CONFIG_STATUS <<\_ACEOF 20933for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20934 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20935 case $ac_file in 20936 - | *:- | *:-:* ) # input from stdin 20937 cat >$tmp/stdin 20938 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20939 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20940 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20941 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20942 * ) ac_file_in=$ac_file.in ;; 20943 esac 20944 20945 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20946 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20947$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20948 X"$ac_file" : 'X\(//\)[^/]' \| \ 20949 X"$ac_file" : 'X\(//\)$' \| \ 20950 X"$ac_file" : 'X\(/\)' \| \ 20951 . : '\(.\)' 2>/dev/null || 20952echo X"$ac_file" | 20953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20954 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20955 /^X\(\/\/\)$/{ s//\1/; q; } 20956 /^X\(\/\).*/{ s//\1/; q; } 20957 s/.*/./; q'` 20958 { if $as_mkdir_p; then 20959 mkdir -p "$ac_dir" 20960 else 20961 as_dir="$ac_dir" 20962 as_dirs= 20963 while test ! -d "$as_dir"; do 20964 as_dirs="$as_dir $as_dirs" 20965 as_dir=`(dirname "$as_dir") 2>/dev/null || 20966$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20967 X"$as_dir" : 'X\(//\)[^/]' \| \ 20968 X"$as_dir" : 'X\(//\)$' \| \ 20969 X"$as_dir" : 'X\(/\)' \| \ 20970 . : '\(.\)' 2>/dev/null || 20971echo X"$as_dir" | 20972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20973 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20974 /^X\(\/\/\)$/{ s//\1/; q; } 20975 /^X\(\/\).*/{ s//\1/; q; } 20976 s/.*/./; q'` 20977 done 20978 test ! -n "$as_dirs" || mkdir $as_dirs 20979 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20980echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20981 { (exit 1); exit 1; }; }; } 20982 20983 ac_builddir=. 20984 20985if test "$ac_dir" != .; then 20986 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20987 # A "../" for each directory in $ac_dir_suffix. 20988 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20989else 20990 ac_dir_suffix= ac_top_builddir= 20991fi 20992 20993case $srcdir in 20994 .) # No --srcdir option. We are building in place. 20995 ac_srcdir=. 20996 if test -z "$ac_top_builddir"; then 20997 ac_top_srcdir=. 20998 else 20999 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21000 fi ;; 21001 [\\/]* | ?:[\\/]* ) # Absolute path. 21002 ac_srcdir=$srcdir$ac_dir_suffix; 21003 ac_top_srcdir=$srcdir ;; 21004 *) # Relative path. 21005 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21006 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21007esac 21008 21009# Do not use `cd foo && pwd` to compute absolute paths, because 21010# the directories may not exist. 21011case `pwd` in 21012.) ac_abs_builddir="$ac_dir";; 21013*) 21014 case "$ac_dir" in 21015 .) ac_abs_builddir=`pwd`;; 21016 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21017 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21018 esac;; 21019esac 21020case $ac_abs_builddir in 21021.) ac_abs_top_builddir=${ac_top_builddir}.;; 21022*) 21023 case ${ac_top_builddir}. in 21024 .) ac_abs_top_builddir=$ac_abs_builddir;; 21025 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21026 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21027 esac;; 21028esac 21029case $ac_abs_builddir in 21030.) ac_abs_srcdir=$ac_srcdir;; 21031*) 21032 case $ac_srcdir in 21033 .) ac_abs_srcdir=$ac_abs_builddir;; 21034 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21035 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21036 esac;; 21037esac 21038case $ac_abs_builddir in 21039.) ac_abs_top_srcdir=$ac_top_srcdir;; 21040*) 21041 case $ac_top_srcdir in 21042 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21043 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21044 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21045 esac;; 21046esac 21047 21048 21049 case $INSTALL in 21050 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21051 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 21052 esac 21053 21054 if test x"$ac_file" != x-; then 21055 { echo "$as_me:$LINENO: creating $ac_file" >&5 21056echo "$as_me: creating $ac_file" >&6;} 21057 rm -f "$ac_file" 21058 fi 21059 # Let's still pretend it is `configure' which instantiates (i.e., don't 21060 # use $as_me), people would be surprised to read: 21061 # /* config.h. Generated by config.status. */ 21062 if test x"$ac_file" = x-; then 21063 configure_input= 21064 else 21065 configure_input="$ac_file. " 21066 fi 21067 configure_input=$configure_input"Generated from `echo $ac_file_in | 21068 sed 's,.*/,,'` by configure." 21069 21070 # First look for the input files in the build tree, otherwise in the 21071 # src tree. 21072 ac_file_inputs=`IFS=: 21073 for f in $ac_file_in; do 21074 case $f in 21075 -) echo $tmp/stdin ;; 21076 [\\/$]*) 21077 # Absolute (can't be DOS-style, as IFS=:) 21078 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21079echo "$as_me: error: cannot find input file: $f" >&2;} 21080 { (exit 1); exit 1; }; } 21081 echo "$f";; 21082 *) # Relative 21083 if test -f "$f"; then 21084 # Build tree 21085 echo "$f" 21086 elif test -f "$srcdir/$f"; then 21087 # Source tree 21088 echo "$srcdir/$f" 21089 else 21090 # /dev/null tree 21091 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21092echo "$as_me: error: cannot find input file: $f" >&2;} 21093 { (exit 1); exit 1; }; } 21094 fi;; 21095 esac 21096 done` || { (exit 1); exit 1; } 21097_ACEOF 21098cat >>$CONFIG_STATUS <<_ACEOF 21099 sed "$ac_vpsub 21100$extrasub 21101_ACEOF 21102cat >>$CONFIG_STATUS <<\_ACEOF 21103:t 21104/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21105s,@configure_input@,$configure_input,;t t 21106s,@srcdir@,$ac_srcdir,;t t 21107s,@abs_srcdir@,$ac_abs_srcdir,;t t 21108s,@top_srcdir@,$ac_top_srcdir,;t t 21109s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 21110s,@builddir@,$ac_builddir,;t t 21111s,@abs_builddir@,$ac_abs_builddir,;t t 21112s,@top_builddir@,$ac_top_builddir,;t t 21113s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 21114s,@INSTALL@,$ac_INSTALL,;t t 21115" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 21116 rm -f $tmp/stdin 21117 if test x"$ac_file" != x-; then 21118 mv $tmp/out $ac_file 21119 else 21120 cat $tmp/out 21121 rm -f $tmp/out 21122 fi 21123 21124done 21125_ACEOF 21126cat >>$CONFIG_STATUS <<\_ACEOF 21127 21128# 21129# CONFIG_HEADER section. 21130# 21131 21132# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 21133# NAME is the cpp macro being defined and VALUE is the value it is being given. 21134# 21135# ac_d sets the value in "#define NAME VALUE" lines. 21136ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 21137ac_dB='[ ].*$,\1#\2' 21138ac_dC=' ' 21139ac_dD=',;t' 21140# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 21141ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 21142ac_uB='$,\1#\2define\3' 21143ac_uC=' ' 21144ac_uD=',;t' 21145 21146for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 21147 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 21148 case $ac_file in 21149 - | *:- | *:-:* ) # input from stdin 21150 cat >$tmp/stdin 21151 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21153 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 21154 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 21155 * ) ac_file_in=$ac_file.in ;; 21156 esac 21157 21158 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 21159echo "$as_me: creating $ac_file" >&6;} 21160 21161 # First look for the input files in the build tree, otherwise in the 21162 # src tree. 21163 ac_file_inputs=`IFS=: 21164 for f in $ac_file_in; do 21165 case $f in 21166 -) echo $tmp/stdin ;; 21167 [\\/$]*) 21168 # Absolute (can't be DOS-style, as IFS=:) 21169 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21170echo "$as_me: error: cannot find input file: $f" >&2;} 21171 { (exit 1); exit 1; }; } 21172 # Do quote $f, to prevent DOS paths from being IFS'd. 21173 echo "$f";; 21174 *) # Relative 21175 if test -f "$f"; then 21176 # Build tree 21177 echo "$f" 21178 elif test -f "$srcdir/$f"; then 21179 # Source tree 21180 echo "$srcdir/$f" 21181 else 21182 # /dev/null tree 21183 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 21184echo "$as_me: error: cannot find input file: $f" >&2;} 21185 { (exit 1); exit 1; }; } 21186 fi;; 21187 esac 21188 done` || { (exit 1); exit 1; } 21189 # Remove the trailing spaces. 21190 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 21191 21192_ACEOF 21193 21194# Transform confdefs.h into two sed scripts, `conftest.defines' and 21195# `conftest.undefs', that substitutes the proper values into 21196# config.h.in to produce config.h. The first handles `#define' 21197# templates, and the second `#undef' templates. 21198# And first: Protect against being on the right side of a sed subst in 21199# config.status. Protect against being in an unquoted here document 21200# in config.status. 21201rm -f conftest.defines conftest.undefs 21202# Using a here document instead of a string reduces the quoting nightmare. 21203# Putting comments in sed scripts is not portable. 21204# 21205# `end' is used to avoid that the second main sed command (meant for 21206# 0-ary CPP macros) applies to n-ary macro definitions. 21207# See the Autoconf documentation for `clear'. 21208cat >confdef2sed.sed <<\_ACEOF 21209s/[\\&,]/\\&/g 21210s,[\\$`],\\&,g 21211t clear 21212: clear 21213s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 21214t end 21215s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 21216: end 21217_ACEOF 21218# If some macros were called several times there might be several times 21219# the same #defines, which is useless. Nevertheless, we may not want to 21220# sort them, since we want the *last* AC-DEFINE to be honored. 21221uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 21222sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 21223rm -f confdef2sed.sed 21224 21225# This sed command replaces #undef with comments. This is necessary, for 21226# example, in the case of _POSIX_SOURCE, which is predefined and required 21227# on some systems where configure will not decide to define it. 21228cat >>conftest.undefs <<\_ACEOF 21229s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 21230_ACEOF 21231 21232# Break up conftest.defines because some shells have a limit on the size 21233# of here documents, and old seds have small limits too (100 cmds). 21234echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 21235echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 21236echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 21237echo ' :' >>$CONFIG_STATUS 21238rm -f conftest.tail 21239while grep . conftest.defines >/dev/null 21240do 21241 # Write a limited-size here document to $tmp/defines.sed. 21242 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 21243 # Speed up: don't consider the non `#define' lines. 21244 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 21245 # Work around the forget-to-reset-the-flag bug. 21246 echo 't clr' >>$CONFIG_STATUS 21247 echo ': clr' >>$CONFIG_STATUS 21248 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 21249 echo 'CEOF 21250 sed -f $tmp/defines.sed $tmp/in >$tmp/out 21251 rm -f $tmp/in 21252 mv $tmp/out $tmp/in 21253' >>$CONFIG_STATUS 21254 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 21255 rm -f conftest.defines 21256 mv conftest.tail conftest.defines 21257done 21258rm -f conftest.defines 21259echo ' fi # grep' >>$CONFIG_STATUS 21260echo >>$CONFIG_STATUS 21261 21262# Break up conftest.undefs because some shells have a limit on the size 21263# of here documents, and old seds have small limits too (100 cmds). 21264echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 21265rm -f conftest.tail 21266while grep . conftest.undefs >/dev/null 21267do 21268 # Write a limited-size here document to $tmp/undefs.sed. 21269 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 21270 # Speed up: don't consider the non `#undef' 21271 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 21272 # Work around the forget-to-reset-the-flag bug. 21273 echo 't clr' >>$CONFIG_STATUS 21274 echo ': clr' >>$CONFIG_STATUS 21275 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 21276 echo 'CEOF 21277 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 21278 rm -f $tmp/in 21279 mv $tmp/out $tmp/in 21280' >>$CONFIG_STATUS 21281 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 21282 rm -f conftest.undefs 21283 mv conftest.tail conftest.undefs 21284done 21285rm -f conftest.undefs 21286 21287cat >>$CONFIG_STATUS <<\_ACEOF 21288 # Let's still pretend it is `configure' which instantiates (i.e., don't 21289 # use $as_me), people would be surprised to read: 21290 # /* config.h. Generated by config.status. */ 21291 if test x"$ac_file" = x-; then 21292 echo "/* Generated by configure. */" >$tmp/config.h 21293 else 21294 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 21295 fi 21296 cat $tmp/in >>$tmp/config.h 21297 rm -f $tmp/in 21298 if test x"$ac_file" != x-; then 21299 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 21300 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21301echo "$as_me: $ac_file is unchanged" >&6;} 21302 else 21303 ac_dir=`(dirname "$ac_file") 2>/dev/null || 21304$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21305 X"$ac_file" : 'X\(//\)[^/]' \| \ 21306 X"$ac_file" : 'X\(//\)$' \| \ 21307 X"$ac_file" : 'X\(/\)' \| \ 21308 . : '\(.\)' 2>/dev/null || 21309echo X"$ac_file" | 21310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21311 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21312 /^X\(\/\/\)$/{ s//\1/; q; } 21313 /^X\(\/\).*/{ s//\1/; q; } 21314 s/.*/./; q'` 21315 { if $as_mkdir_p; then 21316 mkdir -p "$ac_dir" 21317 else 21318 as_dir="$ac_dir" 21319 as_dirs= 21320 while test ! -d "$as_dir"; do 21321 as_dirs="$as_dir $as_dirs" 21322 as_dir=`(dirname "$as_dir") 2>/dev/null || 21323$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21324 X"$as_dir" : 'X\(//\)[^/]' \| \ 21325 X"$as_dir" : 'X\(//\)$' \| \ 21326 X"$as_dir" : 'X\(/\)' \| \ 21327 . : '\(.\)' 2>/dev/null || 21328echo X"$as_dir" | 21329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21330 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21331 /^X\(\/\/\)$/{ s//\1/; q; } 21332 /^X\(\/\).*/{ s//\1/; q; } 21333 s/.*/./; q'` 21334 done 21335 test ! -n "$as_dirs" || mkdir $as_dirs 21336 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21337echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21338 { (exit 1); exit 1; }; }; } 21339 21340 rm -f $ac_file 21341 mv $tmp/config.h $ac_file 21342 fi 21343 else 21344 cat $tmp/config.h 21345 rm -f $tmp/config.h 21346 fi 21347# Compute $ac_file's index in $config_headers. 21348_am_stamp_count=1 21349for _am_header in $config_headers :; do 21350 case $_am_header in 21351 $ac_file | $ac_file:* ) 21352 break ;; 21353 * ) 21354 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21355 esac 21356done 21357echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 21358$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21359 X$ac_file : 'X\(//\)[^/]' \| \ 21360 X$ac_file : 'X\(//\)$' \| \ 21361 X$ac_file : 'X\(/\)' \| \ 21362 . : '\(.\)' 2>/dev/null || 21363echo X$ac_file | 21364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21365 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21366 /^X\(\/\/\)$/{ s//\1/; q; } 21367 /^X\(\/\).*/{ s//\1/; q; } 21368 s/.*/./; q'`/stamp-h$_am_stamp_count 21369done 21370_ACEOF 21371cat >>$CONFIG_STATUS <<\_ACEOF 21372 21373# 21374# CONFIG_COMMANDS section. 21375# 21376for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21377 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21378 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21379 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21380$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21381 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21382 X"$ac_dest" : 'X\(//\)$' \| \ 21383 X"$ac_dest" : 'X\(/\)' \| \ 21384 . : '\(.\)' 2>/dev/null || 21385echo X"$ac_dest" | 21386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21387 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21388 /^X\(\/\/\)$/{ s//\1/; q; } 21389 /^X\(\/\).*/{ s//\1/; q; } 21390 s/.*/./; q'` 21391 { if $as_mkdir_p; then 21392 mkdir -p "$ac_dir" 21393 else 21394 as_dir="$ac_dir" 21395 as_dirs= 21396 while test ! -d "$as_dir"; do 21397 as_dirs="$as_dir $as_dirs" 21398 as_dir=`(dirname "$as_dir") 2>/dev/null || 21399$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21400 X"$as_dir" : 'X\(//\)[^/]' \| \ 21401 X"$as_dir" : 'X\(//\)$' \| \ 21402 X"$as_dir" : 'X\(/\)' \| \ 21403 . : '\(.\)' 2>/dev/null || 21404echo X"$as_dir" | 21405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21406 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21407 /^X\(\/\/\)$/{ s//\1/; q; } 21408 /^X\(\/\).*/{ s//\1/; q; } 21409 s/.*/./; q'` 21410 done 21411 test ! -n "$as_dirs" || mkdir $as_dirs 21412 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21413echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21414 { (exit 1); exit 1; }; }; } 21415 21416 ac_builddir=. 21417 21418if test "$ac_dir" != .; then 21419 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21420 # A "../" for each directory in $ac_dir_suffix. 21421 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21422else 21423 ac_dir_suffix= ac_top_builddir= 21424fi 21425 21426case $srcdir in 21427 .) # No --srcdir option. We are building in place. 21428 ac_srcdir=. 21429 if test -z "$ac_top_builddir"; then 21430 ac_top_srcdir=. 21431 else 21432 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21433 fi ;; 21434 [\\/]* | ?:[\\/]* ) # Absolute path. 21435 ac_srcdir=$srcdir$ac_dir_suffix; 21436 ac_top_srcdir=$srcdir ;; 21437 *) # Relative path. 21438 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21439 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21440esac 21441 21442# Do not use `cd foo && pwd` to compute absolute paths, because 21443# the directories may not exist. 21444case `pwd` in 21445.) ac_abs_builddir="$ac_dir";; 21446*) 21447 case "$ac_dir" in 21448 .) ac_abs_builddir=`pwd`;; 21449 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21450 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21451 esac;; 21452esac 21453case $ac_abs_builddir in 21454.) ac_abs_top_builddir=${ac_top_builddir}.;; 21455*) 21456 case ${ac_top_builddir}. in 21457 .) ac_abs_top_builddir=$ac_abs_builddir;; 21458 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21459 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21460 esac;; 21461esac 21462case $ac_abs_builddir in 21463.) ac_abs_srcdir=$ac_srcdir;; 21464*) 21465 case $ac_srcdir in 21466 .) ac_abs_srcdir=$ac_abs_builddir;; 21467 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21468 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21469 esac;; 21470esac 21471case $ac_abs_builddir in 21472.) ac_abs_top_srcdir=$ac_top_srcdir;; 21473*) 21474 case $ac_top_srcdir in 21475 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21476 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21477 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21478 esac;; 21479esac 21480 21481 21482 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21483echo "$as_me: executing $ac_dest commands" >&6;} 21484 case $ac_dest in 21485 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21486 # Strip MF so we end up with the name of the file. 21487 mf=`echo "$mf" | sed -e 's/:.*$//'` 21488 # Check whether this is an Automake generated Makefile or not. 21489 # We used to match only the files named `Makefile.in', but 21490 # some people rename them; so instead we look at the file content. 21491 # Grep'ing the first line is not enough: some people post-process 21492 # each Makefile.in and add a new line on top of each file to say so. 21493 # So let's grep whole file. 21494 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21495 dirpart=`(dirname "$mf") 2>/dev/null || 21496$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21497 X"$mf" : 'X\(//\)[^/]' \| \ 21498 X"$mf" : 'X\(//\)$' \| \ 21499 X"$mf" : 'X\(/\)' \| \ 21500 . : '\(.\)' 2>/dev/null || 21501echo X"$mf" | 21502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21503 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21504 /^X\(\/\/\)$/{ s//\1/; q; } 21505 /^X\(\/\).*/{ s//\1/; q; } 21506 s/.*/./; q'` 21507 else 21508 continue 21509 fi 21510 # Extract the definition of DEPDIR, am__include, and am__quote 21511 # from the Makefile without running `make'. 21512 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21513 test -z "$DEPDIR" && continue 21514 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21515 test -z "am__include" && continue 21516 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21517 # When using ansi2knr, U may be empty or an underscore; expand it 21518 U=`sed -n 's/^U = //p' < "$mf"` 21519 # Find all dependency output files, they are included files with 21520 # $(DEPDIR) in their names. We invoke sed twice because it is the 21521 # simplest approach to changing $(DEPDIR) to its actual value in the 21522 # expansion. 21523 for file in `sed -n " 21524 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21525 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21526 # Make sure the directory exists. 21527 test -f "$dirpart/$file" && continue 21528 fdir=`(dirname "$file") 2>/dev/null || 21529$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21530 X"$file" : 'X\(//\)[^/]' \| \ 21531 X"$file" : 'X\(//\)$' \| \ 21532 X"$file" : 'X\(/\)' \| \ 21533 . : '\(.\)' 2>/dev/null || 21534echo X"$file" | 21535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21536 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21537 /^X\(\/\/\)$/{ s//\1/; q; } 21538 /^X\(\/\).*/{ s//\1/; q; } 21539 s/.*/./; q'` 21540 { if $as_mkdir_p; then 21541 mkdir -p $dirpart/$fdir 21542 else 21543 as_dir=$dirpart/$fdir 21544 as_dirs= 21545 while test ! -d "$as_dir"; do 21546 as_dirs="$as_dir $as_dirs" 21547 as_dir=`(dirname "$as_dir") 2>/dev/null || 21548$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21549 X"$as_dir" : 'X\(//\)[^/]' \| \ 21550 X"$as_dir" : 'X\(//\)$' \| \ 21551 X"$as_dir" : 'X\(/\)' \| \ 21552 . : '\(.\)' 2>/dev/null || 21553echo X"$as_dir" | 21554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21555 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21556 /^X\(\/\/\)$/{ s//\1/; q; } 21557 /^X\(\/\).*/{ s//\1/; q; } 21558 s/.*/./; q'` 21559 done 21560 test ! -n "$as_dirs" || mkdir $as_dirs 21561 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21562echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21563 { (exit 1); exit 1; }; }; } 21564 21565 # echo "creating $dirpart/$file" 21566 echo '# dummy' > "$dirpart/$file" 21567 done 21568done 21569 ;; 21570 esac 21571done 21572_ACEOF 21573 21574cat >>$CONFIG_STATUS <<\_ACEOF 21575 21576{ (exit 0); exit 0; } 21577_ACEOF 21578chmod +x $CONFIG_STATUS 21579ac_clean_files=$ac_clean_files_save 21580 21581 21582# configure is writing to config.log, and then calls config.status. 21583# config.status does its own redirection, appending to config.log. 21584# Unfortunately, on DOS this fails, as config.log is still kept open 21585# by configure, so config.status won't be able to write to it; its 21586# output is simply discarded. So we exec the FD to /dev/null, 21587# effectively closing config.log, so it can be properly (re)opened and 21588# appended to by config.status. When coming back to configure, we 21589# need to make the FD available again. 21590if test "$no_create" != yes; then 21591 ac_cs_success=: 21592 ac_config_status_args= 21593 test "$silent" = yes && 21594 ac_config_status_args="$ac_config_status_args --quiet" 21595 exec 5>/dev/null 21596 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21597 exec 5>>config.log 21598 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21599 # would make configure fail if this is the last instruction. 21600 $ac_cs_success || { (exit 1); exit 1; } 21601fi 21602 21603